diff --git a/.agents/skills/cli-admin/references/my-pending-app-invites-record.md b/.agents/skills/cli-admin/references/my-pending-app-invites-record.md index 06b80adddb..6612385e76 100644 --- a/.agents/skills/cli-admin/references/my-pending-app-invites-record.md +++ b/.agents/skills/cli-admin/references/my-pending-app-invites-record.md @@ -12,7 +12,6 @@ csdk my-pending-app-invites-record list --where.. --orderBy < csdk my-pending-app-invites-record list --limit 10 --after csdk my-pending-app-invites-record find-first --where.. csdk my-pending-app-invites-record get --id -csdk my-pending-app-invites-record create --channel --expiresAt --senderId csdk my-pending-app-invites-record update --id [--channel ] [--expiresAt ] [--senderId ] csdk my-pending-app-invites-record delete --id ``` @@ -55,12 +54,6 @@ csdk my-pending-app-invites-record list --select id,id csdk my-pending-app-invites-record list --where.id.equalTo --orderBy ID_ASC ``` -### Create a myPendingAppInvitesRecord - -```bash -csdk my-pending-app-invites-record create --channel --expiresAt --senderId -``` - ### Get a myPendingAppInvitesRecord by id ```bash diff --git a/.agents/skills/cli-admin/references/my-pending-org-invites-record.md b/.agents/skills/cli-admin/references/my-pending-org-invites-record.md index b58f10b26a..96f2a4a834 100644 --- a/.agents/skills/cli-admin/references/my-pending-org-invites-record.md +++ b/.agents/skills/cli-admin/references/my-pending-org-invites-record.md @@ -12,7 +12,6 @@ csdk my-pending-org-invites-record list --where.. --orderBy < csdk my-pending-org-invites-record list --limit 10 --after csdk my-pending-org-invites-record find-first --where.. csdk my-pending-org-invites-record get --id -csdk my-pending-org-invites-record create --channel --entityId --expiresAt --senderId csdk my-pending-org-invites-record update --id [--channel ] [--entityId ] [--expiresAt ] [--senderId ] csdk my-pending-org-invites-record delete --id ``` @@ -55,12 +54,6 @@ csdk my-pending-org-invites-record list --select id,id csdk my-pending-org-invites-record list --where.id.equalTo --orderBy ID_ASC ``` -### Create a myPendingOrgInvitesRecord - -```bash -csdk my-pending-org-invites-record create --channel --entityId --expiresAt --senderId -``` - ### Get a myPendingOrgInvitesRecord by id ```bash diff --git a/.agents/skills/cli-admin/references/org-get-managers-record.md b/.agents/skills/cli-admin/references/org-get-managers-record.md index 92560d77bd..563e9f6634 100644 --- a/.agents/skills/cli-admin/references/org-get-managers-record.md +++ b/.agents/skills/cli-admin/references/org-get-managers-record.md @@ -12,7 +12,6 @@ csdk org-get-managers-record list --where.. --orderBy csdk org-get-managers-record find-first --where.. csdk org-get-managers-record get --id -csdk org-get-managers-record create --depth --userId csdk org-get-managers-record update --id [--depth ] [--userId ] csdk org-get-managers-record delete --id ``` @@ -55,12 +54,6 @@ csdk org-get-managers-record list --select id,id csdk org-get-managers-record list --where.id.equalTo --orderBy ID_ASC ``` -### Create a orgGetManagersRecord - -```bash -csdk org-get-managers-record create --depth --userId -``` - ### Get a orgGetManagersRecord by id ```bash diff --git a/.agents/skills/cli-admin/references/org-get-subordinates-record.md b/.agents/skills/cli-admin/references/org-get-subordinates-record.md index 316fba7e86..bcbea758d5 100644 --- a/.agents/skills/cli-admin/references/org-get-subordinates-record.md +++ b/.agents/skills/cli-admin/references/org-get-subordinates-record.md @@ -12,7 +12,6 @@ csdk org-get-subordinates-record list --where.. --orderBy csdk org-get-subordinates-record find-first --where.. csdk org-get-subordinates-record get --id -csdk org-get-subordinates-record create --depth --userId csdk org-get-subordinates-record update --id [--depth ] [--userId ] csdk org-get-subordinates-record delete --id ``` @@ -55,12 +54,6 @@ csdk org-get-subordinates-record list --select id,id csdk org-get-subordinates-record list --where.id.equalTo --orderBy ID_ASC ``` -### Create a orgGetSubordinatesRecord - -```bash -csdk org-get-subordinates-record create --depth --userId -``` - ### Get a orgGetSubordinatesRecord by id ```bash diff --git a/.agents/skills/cli-agent/references/agent-resource.md b/.agents/skills/cli-agent/references/agent-resource.md index bceb942c3b..6f7cf1e64c 100644 --- a/.agents/skills/cli-agent/references/agent-resource.md +++ b/.agents/skills/cli-agent/references/agent-resource.md @@ -7,7 +7,7 @@ CRUD operations for AgentResource records via csdk CLI **pgvector embedding fields:** `embedding` High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. -**Unified Search API fields:** `bodyTrgmSimilarity`, `descriptionTrgmSimilarity`, `kindTrgmSimilarity`, `search`, `searchScore`, `titleTrgmSimilarity` +**Unified Search API fields:** `bodyTrgmSimilarity`, `descriptionTrgmSimilarity`, `embeddingModelTrgmSimilarity`, `kindTrgmSimilarity`, `search`, `searchScore`, `titleTrgmSimilarity` Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. ## Usage @@ -97,6 +97,12 @@ csdk agent-resource list --where.trgmBody.value "approximate query" --where.trgm csdk agent-resource list --where.trgmDescription.value "approximate query" --where.trgmDescription.threshold 0.3 --select title,descriptionTrgmSimilarity ``` +### Fuzzy search via trigram similarity (`trgmEmbeddingModel`) + +```bash +csdk agent-resource list --where.trgmEmbeddingModel.value "approximate query" --where.trgmEmbeddingModel.threshold 0.3 --select title,embeddingModelTrgmSimilarity +``` + ### Fuzzy search via trigram similarity (`trgmKind`) ```bash @@ -118,7 +124,7 @@ csdk agent-resource list --where.trgmTitle.value "approximate query" --where.trg ### Composite search (unifiedSearch dispatches to all text adapters) ```bash -csdk agent-resource list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,descriptionTrgmSimilarity,kindTrgmSimilarity,tsvRank,searchScore,titleTrgmSimilarity +csdk agent-resource list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,descriptionTrgmSimilarity,embeddingModelTrgmSimilarity,kindTrgmSimilarity,tsvRank,searchScore,titleTrgmSimilarity ``` ### Search with pagination and field projection diff --git a/.agents/skills/cli-agent/references/platform-agent-resource.md b/.agents/skills/cli-agent/references/platform-agent-resource.md index a9f282704f..2400709f08 100644 --- a/.agents/skills/cli-agent/references/platform-agent-resource.md +++ b/.agents/skills/cli-agent/references/platform-agent-resource.md @@ -7,7 +7,7 @@ CRUD operations for PlatformAgentResource records via csdk CLI **pgvector embedding fields:** `embedding` High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. -**Unified Search API fields:** `bodyTrgmSimilarity`, `descriptionTrgmSimilarity`, `kindTrgmSimilarity`, `search`, `searchScore`, `titleTrgmSimilarity` +**Unified Search API fields:** `bodyTrgmSimilarity`, `descriptionTrgmSimilarity`, `embeddingModelTrgmSimilarity`, `kindTrgmSimilarity`, `search`, `searchScore`, `titleTrgmSimilarity` Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. ## Usage @@ -97,6 +97,12 @@ csdk platform-agent-resource list --where.trgmBody.value "approximate query" --w csdk platform-agent-resource list --where.trgmDescription.value "approximate query" --where.trgmDescription.threshold 0.3 --select title,descriptionTrgmSimilarity ``` +### Fuzzy search via trigram similarity (`trgmEmbeddingModel`) + +```bash +csdk platform-agent-resource list --where.trgmEmbeddingModel.value "approximate query" --where.trgmEmbeddingModel.threshold 0.3 --select title,embeddingModelTrgmSimilarity +``` + ### Fuzzy search via trigram similarity (`trgmKind`) ```bash @@ -118,7 +124,7 @@ csdk platform-agent-resource list --where.trgmTitle.value "approximate query" -- ### Composite search (unifiedSearch dispatches to all text adapters) ```bash -csdk platform-agent-resource list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,descriptionTrgmSimilarity,kindTrgmSimilarity,tsvRank,searchScore,titleTrgmSimilarity +csdk platform-agent-resource list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,descriptionTrgmSimilarity,embeddingModelTrgmSimilarity,kindTrgmSimilarity,tsvRank,searchScore,titleTrgmSimilarity ``` ### Search with pagination and field projection diff --git a/.agents/skills/cli-api/SKILL.md b/.agents/skills/cli-api/SKILL.md index a9fc2f456a..85f06a290e 100644 --- a/.agents/skills/cli-api/SKILL.md +++ b/.agents/skills/cli-api/SKILL.md @@ -1,13 +1,13 @@ --- name: cli-api -description: CLI tool (csdk) for the api API — provides CRUD commands for 90 tables and 49 custom operations +description: CLI tool (csdk) for the api API — provides CRUD commands for 91 tables and 45 custom operations --- # cli-api -CLI tool (csdk) for the api API — provides CRUD commands for 90 tables and 49 custom operations +CLI tool (csdk) for the api API — provides CRUD commands for 91 tables and 45 custom operations ## Usage @@ -105,6 +105,7 @@ See the `references/` directory for detailed per-entity API documentation: - [platform-get-site-previews-record](references/platform-get-site-previews-record.md) - [platform-managed-domain](references/platform-managed-domain.md) - [platform-page](references/platform-page.md) +- [platform-reserved-subdomain](references/platform-reserved-subdomain.md) - [platform-site-app-link](references/platform-site-app-link.md) - [platform-site](references/platform-site.md) - [platform-site-deep-link](references/platform-site-deep-link.md) @@ -146,7 +147,6 @@ See the `references/` directory for detailed per-entity API documentation: - [view-rule](references/view-rule.md) - [view-table](references/view-table.md) - [webauthn-setting](references/webauthn-setting.md) -- [api-schema-names](references/api-schema-names.md) - [apply-registry-defaults](references/apply-registry-defaults.md) - [email-shared-account](references/email-shared-account.md) - [get-site-preview-commit](references/get-site-preview-commit.md) @@ -158,9 +158,6 @@ See the `references/` directory for detailed per-entity API documentation: - [platform-sites-deep-link-url](references/platform-sites-deep-link-url.md) - [platform-sites-site-origin](references/platform-sites-site-origin.md) - [platform-verify-site-preview-token](references/platform-verify-site-preview-token.md) -- [resolve-deep-link](references/resolve-deep-link.md) -- [resolve-route](references/resolve-route.md) -- [resolve-site-app-links](references/resolve-site-app-links.md) - [sites-deep-link-url](references/sites-deep-link-url.md) - [sites-site-origin](references/sites-site-origin.md) - [verify-site-preview-token](references/verify-site-preview-token.md) diff --git a/.agents/skills/cli-api/references/api-setting.md b/.agents/skills/cli-api/references/api-setting.md index eee61b53fc..bf20bd1161 100644 --- a/.agents/skills/cli-api/references/api-setting.md +++ b/.agents/skills/cli-api/references/api-setting.md @@ -12,8 +12,8 @@ csdk api-setting list --where.. --orderBy csdk api-setting list --limit 10 --after csdk api-setting find-first --where.. csdk api-setting get --id -csdk api-setting create --apiId --databaseId [--enableAggregates ] [--enableBulk ] [--enableConnectionFilter ] [--enableDirectUploads ] [--enableI18N ] [--enableIntrospection ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--idleInTransactionTimeoutMs ] [--lockTimeoutMs ] [--maxConcurrentRequests ] [--maxPageSize ] [--maxQueryCost ] [--maxQueryDepth ] [--maxQueueWaitMs ] [--maxRequestBytes ] [--options ] [--rateLimitBurst ] [--rateLimitRpm ] [--statementTimeoutMs ] -csdk api-setting update --id [--apiId ] [--databaseId ] [--enableAggregates ] [--enableBulk ] [--enableConnectionFilter ] [--enableDirectUploads ] [--enableI18N ] [--enableIntrospection ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--idleInTransactionTimeoutMs ] [--lockTimeoutMs ] [--maxConcurrentRequests ] [--maxPageSize ] [--maxQueryCost ] [--maxQueryDepth ] [--maxQueueWaitMs ] [--maxRequestBytes ] [--options ] [--rateLimitBurst ] [--rateLimitRpm ] [--statementTimeoutMs ] +csdk api-setting create --apiId --databaseId [--enableAggregates ] [--enableBulk ] [--enableConnectionFilter ] [--enableI18N ] [--enableIntrospection ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--idleInTransactionTimeoutMs ] [--lockTimeoutMs ] [--maxConcurrentRequests ] [--maxPageSize ] [--maxQueryCost ] [--maxQueryDepth ] [--maxQueueWaitMs ] [--maxRequestBytes ] [--options ] [--rateLimitBurst ] [--rateLimitRpm ] [--statementTimeoutMs ] +csdk api-setting update --id [--apiId ] [--databaseId ] [--enableAggregates ] [--enableBulk ] [--enableConnectionFilter ] [--enableI18N ] [--enableIntrospection ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--idleInTransactionTimeoutMs ] [--lockTimeoutMs ] [--maxConcurrentRequests ] [--maxPageSize ] [--maxQueryCost ] [--maxQueryDepth ] [--maxQueueWaitMs ] [--maxRequestBytes ] [--options ] [--rateLimitBurst ] [--rateLimitRpm ] [--statementTimeoutMs ] csdk api-setting delete --id ``` @@ -58,7 +58,7 @@ csdk api-setting list --where.id.equalTo --orderBy ID_ASC ### Create a apiSetting ```bash -csdk api-setting create --apiId --databaseId [--enableAggregates ] [--enableBulk ] [--enableConnectionFilter ] [--enableDirectUploads ] [--enableI18N ] [--enableIntrospection ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--idleInTransactionTimeoutMs ] [--lockTimeoutMs ] [--maxConcurrentRequests ] [--maxPageSize ] [--maxQueryCost ] [--maxQueryDepth ] [--maxQueueWaitMs ] [--maxRequestBytes ] [--options ] [--rateLimitBurst ] [--rateLimitRpm ] [--statementTimeoutMs ] +csdk api-setting create --apiId --databaseId [--enableAggregates ] [--enableBulk ] [--enableConnectionFilter ] [--enableI18N ] [--enableIntrospection ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--idleInTransactionTimeoutMs ] [--lockTimeoutMs ] [--maxConcurrentRequests ] [--maxPageSize ] [--maxQueryCost ] [--maxQueryDepth ] [--maxQueueWaitMs ] [--maxRequestBytes ] [--options ] [--rateLimitBurst ] [--rateLimitRpm ] [--statementTimeoutMs ] ``` ### Get a apiSetting by id diff --git a/.agents/skills/cli-api/references/api.md b/.agents/skills/cli-api/references/api.md index 8df212fb8f..5009b445ab 100644 --- a/.agents/skills/cli-api/references/api.md +++ b/.agents/skills/cli-api/references/api.md @@ -12,8 +12,8 @@ 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 [--anonRole ] [--config ] [--dbname ] [--isPublished ] [--roleName ] -csdk api update --id [--anonRole ] [--config ] [--databaseId ] [--dbname ] [--isPublished ] [--name ] [--roleName ] +csdk api create --databaseId --name [--anonRole ] [--config ] [--isPublished ] [--roleName ] +csdk api update --id [--anonRole ] [--config ] [--databaseId ] [--isPublished ] [--name ] [--roleName ] csdk api delete --id ``` @@ -58,7 +58,7 @@ csdk api list --where.id.equalTo --orderBy ID_ASC ### Create a api ```bash -csdk api create --databaseId --name [--anonRole ] [--config ] [--dbname ] [--isPublished ] [--roleName ] +csdk api create --databaseId --name [--anonRole ] [--config ] [--isPublished ] [--roleName ] ``` ### Get a api by id diff --git a/.agents/skills/cli-api/references/ast-migration.md b/.agents/skills/cli-api/references/ast-migration.md index 5d9bf5e6d5..842b7e9421 100644 --- a/.agents/skills/cli-api/references/ast-migration.md +++ b/.agents/skills/cli-api/references/ast-migration.md @@ -12,7 +12,6 @@ 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 --actionId --actionName --actorId --databaseId --deploy --deploys --name --payload --requires --revert --verify csdk ast-migration update --id [--actionId ] [--actionName ] [--actorId ] [--databaseId ] [--deploy ] [--deploys ] [--name ] [--payload ] [--requires ] [--revert ] [--verify ] csdk ast-migration delete --id ``` @@ -55,12 +54,6 @@ csdk ast-migration list --select id,id csdk ast-migration list --where.id.equalTo --orderBy ID_ASC ``` -### Create a astMigration - -```bash -csdk ast-migration create --actionId --actionName --actorId --databaseId --deploy --deploys --name --payload --requires --revert --verify -``` - ### Get a astMigration by id ```bash diff --git a/.agents/skills/cli-api/references/database-setting.md b/.agents/skills/cli-api/references/database-setting.md index 214576ec5f..14f40d4a6b 100644 --- a/.agents/skills/cli-api/references/database-setting.md +++ b/.agents/skills/cli-api/references/database-setting.md @@ -12,8 +12,8 @@ csdk database-setting list --where.. --orderBy csdk database-setting list --limit 10 --after csdk database-setting find-first --where.. csdk database-setting get --id -csdk database-setting create --databaseId [--annotations ] [--creditsPerCent ] [--enableAggregates ] [--enableBilling ] [--enableBulk ] [--enableConnectionFilter ] [--enableDirectUploads ] [--enableI18N ] [--enableIntrospection ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--idleInTransactionTimeoutMs ] [--labels ] [--lockTimeoutMs ] [--maxConcurrentRequests ] [--maxPageSize ] [--maxQueryCost ] [--maxQueryDepth ] [--maxQueueWaitMs ] [--maxRequestBytes ] [--options ] [--rateLimitBurst ] [--rateLimitRpm ] [--statementTimeoutMs ] -csdk database-setting update --id [--annotations ] [--creditsPerCent ] [--databaseId ] [--enableAggregates ] [--enableBilling ] [--enableBulk ] [--enableConnectionFilter ] [--enableDirectUploads ] [--enableI18N ] [--enableIntrospection ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--idleInTransactionTimeoutMs ] [--labels ] [--lockTimeoutMs ] [--maxConcurrentRequests ] [--maxPageSize ] [--maxQueryCost ] [--maxQueryDepth ] [--maxQueueWaitMs ] [--maxRequestBytes ] [--options ] [--rateLimitBurst ] [--rateLimitRpm ] [--statementTimeoutMs ] +csdk database-setting create --databaseId [--annotations ] [--creditsPerCent ] [--enableAggregates ] [--enableBilling ] [--enableBulk ] [--enableConnectionFilter ] [--enableI18N ] [--enableIntrospection ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--idleInTransactionTimeoutMs ] [--labels ] [--lockTimeoutMs ] [--maxConcurrentRequests ] [--maxPageSize ] [--maxQueryCost ] [--maxQueryDepth ] [--maxQueueWaitMs ] [--maxRequestBytes ] [--options ] [--rateLimitBurst ] [--rateLimitRpm ] [--statementTimeoutMs ] +csdk database-setting update --id [--annotations ] [--creditsPerCent ] [--databaseId ] [--enableAggregates ] [--enableBilling ] [--enableBulk ] [--enableConnectionFilter ] [--enableI18N ] [--enableIntrospection ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--idleInTransactionTimeoutMs ] [--labels ] [--lockTimeoutMs ] [--maxConcurrentRequests ] [--maxPageSize ] [--maxQueryCost ] [--maxQueryDepth ] [--maxQueueWaitMs ] [--maxRequestBytes ] [--options ] [--rateLimitBurst ] [--rateLimitRpm ] [--statementTimeoutMs ] csdk database-setting delete --id ``` @@ -58,7 +58,7 @@ csdk database-setting list --where.id.equalTo --orderBy ID_ASC ### Create a databaseSetting ```bash -csdk database-setting create --databaseId [--annotations ] [--creditsPerCent ] [--enableAggregates ] [--enableBilling ] [--enableBulk ] [--enableConnectionFilter ] [--enableDirectUploads ] [--enableI18N ] [--enableIntrospection ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--idleInTransactionTimeoutMs ] [--labels ] [--lockTimeoutMs ] [--maxConcurrentRequests ] [--maxPageSize ] [--maxQueryCost ] [--maxQueryDepth ] [--maxQueueWaitMs ] [--maxRequestBytes ] [--options ] [--rateLimitBurst ] [--rateLimitRpm ] [--statementTimeoutMs ] +csdk database-setting create --databaseId [--annotations ] [--creditsPerCent ] [--enableAggregates ] [--enableBilling ] [--enableBulk ] [--enableConnectionFilter ] [--enableI18N ] [--enableIntrospection ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--idleInTransactionTimeoutMs ] [--labels ] [--lockTimeoutMs ] [--maxConcurrentRequests ] [--maxPageSize ] [--maxQueryCost ] [--maxQueryDepth ] [--maxQueueWaitMs ] [--maxRequestBytes ] [--options ] [--rateLimitBurst ] [--rateLimitRpm ] [--statementTimeoutMs ] ``` ### Get a databaseSetting by id diff --git a/.agents/skills/cli-api/references/get-site-previews-record.md b/.agents/skills/cli-api/references/get-site-previews-record.md index 3aae32349f..0fded732bd 100644 --- a/.agents/skills/cli-api/references/get-site-previews-record.md +++ b/.agents/skills/cli-api/references/get-site-previews-record.md @@ -12,7 +12,6 @@ csdk get-site-previews-record list --where.. --orderBy csdk get-site-previews-record find-first --where.. csdk get-site-previews-record get --id -csdk get-site-previews-record create --commitId --name csdk get-site-previews-record update --id [--commitId ] [--name ] csdk get-site-previews-record delete --id ``` @@ -55,12 +54,6 @@ csdk get-site-previews-record list --select id,id csdk get-site-previews-record list --where.id.equalTo --orderBy ID_ASC ``` -### Create a getSitePreviewsRecord - -```bash -csdk get-site-previews-record create --commitId --name -``` - ### Get a getSitePreviewsRecord by id ```bash diff --git a/.agents/skills/cli-api/references/list-suspended-databases-record.md b/.agents/skills/cli-api/references/list-suspended-databases-record.md index 5ec3545edc..16e31fb381 100644 --- a/.agents/skills/cli-api/references/list-suspended-databases-record.md +++ b/.agents/skills/cli-api/references/list-suspended-databases-record.md @@ -12,7 +12,6 @@ csdk list-suspended-databases-record list --where.. --orderBy csdk list-suspended-databases-record list --limit 10 --after csdk list-suspended-databases-record find-first --where.. csdk list-suspended-databases-record get --id -csdk list-suspended-databases-record create --name --ownerId --suspendedAt --suspendedReason csdk list-suspended-databases-record update --id [--name ] [--ownerId ] [--suspendedAt ] [--suspendedReason ] csdk list-suspended-databases-record delete --id ``` @@ -55,12 +54,6 @@ csdk list-suspended-databases-record list --select id,id csdk list-suspended-databases-record list --where.id.equalTo --orderBy ID_ASC ``` -### Create a listSuspendedDatabasesRecord - -```bash -csdk list-suspended-databases-record create --name --ownerId --suspendedAt --suspendedReason -``` - ### Get a listSuspendedDatabasesRecord by id ```bash diff --git a/.agents/skills/cli-api/references/platform-api-setting.md b/.agents/skills/cli-api/references/platform-api-setting.md index aada14730f..7882c7f79d 100644 --- a/.agents/skills/cli-api/references/platform-api-setting.md +++ b/.agents/skills/cli-api/references/platform-api-setting.md @@ -12,8 +12,8 @@ csdk platform-api-setting list --where.. --orderBy csdk platform-api-setting list --limit 10 --after csdk platform-api-setting find-first --where.. csdk platform-api-setting get --id -csdk platform-api-setting create --apiId [--enableAggregates ] [--enableBulk ] [--enableConnectionFilter ] [--enableDirectUploads ] [--enableI18N ] [--enableIntrospection ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--idleInTransactionTimeoutMs ] [--lockTimeoutMs ] [--maxConcurrentRequests ] [--maxPageSize ] [--maxQueryCost ] [--maxQueryDepth ] [--maxQueueWaitMs ] [--maxRequestBytes ] [--options ] [--rateLimitBurst ] [--rateLimitRpm ] [--statementTimeoutMs ] -csdk platform-api-setting update --id [--apiId ] [--enableAggregates ] [--enableBulk ] [--enableConnectionFilter ] [--enableDirectUploads ] [--enableI18N ] [--enableIntrospection ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--idleInTransactionTimeoutMs ] [--lockTimeoutMs ] [--maxConcurrentRequests ] [--maxPageSize ] [--maxQueryCost ] [--maxQueryDepth ] [--maxQueueWaitMs ] [--maxRequestBytes ] [--options ] [--rateLimitBurst ] [--rateLimitRpm ] [--statementTimeoutMs ] +csdk platform-api-setting create --apiId [--enableAggregates ] [--enableBulk ] [--enableConnectionFilter ] [--enableI18N ] [--enableIntrospection ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--idleInTransactionTimeoutMs ] [--lockTimeoutMs ] [--maxConcurrentRequests ] [--maxPageSize ] [--maxQueryCost ] [--maxQueryDepth ] [--maxQueueWaitMs ] [--maxRequestBytes ] [--options ] [--rateLimitBurst ] [--rateLimitRpm ] [--statementTimeoutMs ] +csdk platform-api-setting update --id [--apiId ] [--enableAggregates ] [--enableBulk ] [--enableConnectionFilter ] [--enableI18N ] [--enableIntrospection ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--idleInTransactionTimeoutMs ] [--lockTimeoutMs ] [--maxConcurrentRequests ] [--maxPageSize ] [--maxQueryCost ] [--maxQueryDepth ] [--maxQueueWaitMs ] [--maxRequestBytes ] [--options ] [--rateLimitBurst ] [--rateLimitRpm ] [--statementTimeoutMs ] csdk platform-api-setting delete --id ``` @@ -58,7 +58,7 @@ csdk platform-api-setting list --where.id.equalTo --orderBy ID_ASC ### Create a platformApiSetting ```bash -csdk platform-api-setting create --apiId [--enableAggregates ] [--enableBulk ] [--enableConnectionFilter ] [--enableDirectUploads ] [--enableI18N ] [--enableIntrospection ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--idleInTransactionTimeoutMs ] [--lockTimeoutMs ] [--maxConcurrentRequests ] [--maxPageSize ] [--maxQueryCost ] [--maxQueryDepth ] [--maxQueueWaitMs ] [--maxRequestBytes ] [--options ] [--rateLimitBurst ] [--rateLimitRpm ] [--statementTimeoutMs ] +csdk platform-api-setting create --apiId [--enableAggregates ] [--enableBulk ] [--enableConnectionFilter ] [--enableI18N ] [--enableIntrospection ] [--enableLlm ] [--enableLtree ] [--enableManyToMany ] [--enablePostgis ] [--enablePresignedUploads ] [--enableRealtime ] [--enableSearch ] [--idleInTransactionTimeoutMs ] [--lockTimeoutMs ] [--maxConcurrentRequests ] [--maxPageSize ] [--maxQueryCost ] [--maxQueryDepth ] [--maxQueueWaitMs ] [--maxRequestBytes ] [--options ] [--rateLimitBurst ] [--rateLimitRpm ] [--statementTimeoutMs ] ``` ### Get a platformApiSetting by id diff --git a/.agents/skills/cli-api/references/platform-api.md b/.agents/skills/cli-api/references/platform-api.md index 19250b7e37..a6af782ef8 100644 --- a/.agents/skills/cli-api/references/platform-api.md +++ b/.agents/skills/cli-api/references/platform-api.md @@ -12,8 +12,8 @@ csdk platform-api list --where.. --orderBy csdk platform-api list --limit 10 --after csdk platform-api find-first --where.. csdk platform-api get --id -csdk platform-api create --name [--anonRole ] [--config ] [--dbname ] [--isPublished ] [--roleName ] -csdk platform-api update --id [--anonRole ] [--config ] [--dbname ] [--isPublished ] [--name ] [--roleName ] +csdk platform-api create --name [--anonRole ] [--config ] [--isPublished ] [--roleName ] +csdk platform-api update --id [--anonRole ] [--config ] [--isPublished ] [--name ] [--roleName ] csdk platform-api delete --id ``` @@ -58,7 +58,7 @@ csdk platform-api list --where.id.equalTo --orderBy ID_ASC ### Create a platformApi ```bash -csdk platform-api create --name [--anonRole ] [--config ] [--dbname ] [--isPublished ] [--roleName ] +csdk platform-api create --name [--anonRole ] [--config ] [--isPublished ] [--roleName ] ``` ### Get a platformApi by id diff --git a/.agents/skills/cli-api/references/platform-get-site-previews-record.md b/.agents/skills/cli-api/references/platform-get-site-previews-record.md index 39e4208862..3bc42591b7 100644 --- a/.agents/skills/cli-api/references/platform-get-site-previews-record.md +++ b/.agents/skills/cli-api/references/platform-get-site-previews-record.md @@ -12,7 +12,6 @@ csdk platform-get-site-previews-record list --where.. --order csdk platform-get-site-previews-record list --limit 10 --after csdk platform-get-site-previews-record find-first --where.. csdk platform-get-site-previews-record get --id -csdk platform-get-site-previews-record create --commitId --name csdk platform-get-site-previews-record update --id [--commitId ] [--name ] csdk platform-get-site-previews-record delete --id ``` @@ -55,12 +54,6 @@ csdk platform-get-site-previews-record list --select id,id csdk platform-get-site-previews-record list --where.id.equalTo --orderBy ID_ASC ``` -### Create a platformGetSitePreviewsRecord - -```bash -csdk platform-get-site-previews-record create --commitId --name -``` - ### Get a platformGetSitePreviewsRecord by id ```bash diff --git a/.agents/skills/cli-api/references/platform-reserved-subdomain.md b/.agents/skills/cli-api/references/platform-reserved-subdomain.md new file mode 100644 index 0000000000..b074f84226 --- /dev/null +++ b/.agents/skills/cli-api/references/platform-reserved-subdomain.md @@ -0,0 +1,68 @@ +# platformReservedSubdomain + + + +CRUD operations for PlatformReservedSubdomain records via csdk CLI + +## Usage + +```bash +csdk platform-reserved-subdomain list +csdk platform-reserved-subdomain list --where.. --orderBy +csdk platform-reserved-subdomain list --limit 10 --after +csdk platform-reserved-subdomain find-first --where.. +csdk platform-reserved-subdomain get --id +csdk platform-reserved-subdomain create --label [--createdByPrincipal ] [--match ] [--reason ] [--updatedByPrincipal ] +csdk platform-reserved-subdomain update --id [--createdByPrincipal ] [--label ] [--match ] [--reason ] [--updatedByPrincipal ] +csdk platform-reserved-subdomain delete --id +``` + +## Examples + +### List platformReservedSubdomain records + +```bash +csdk platform-reserved-subdomain list +``` + +### List platformReservedSubdomain records with pagination + +```bash +csdk platform-reserved-subdomain list --limit 10 --offset 0 +``` + +### List platformReservedSubdomain records with cursor pagination + +```bash +csdk platform-reserved-subdomain list --limit 10 --after +``` + +### Find first matching platformReservedSubdomain + +```bash +csdk platform-reserved-subdomain find-first --where.id.equalTo +``` + +### List platformReservedSubdomain records with field selection + +```bash +csdk platform-reserved-subdomain list --select id,id +``` + +### List platformReservedSubdomain records with filtering and ordering + +```bash +csdk platform-reserved-subdomain list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformReservedSubdomain + +```bash +csdk platform-reserved-subdomain create --label [--createdByPrincipal ] [--match ] [--reason ] [--updatedByPrincipal ] +``` + +### Get a platformReservedSubdomain by id + +```bash +csdk platform-reserved-subdomain get --id +``` diff --git a/.agents/skills/cli-api/references/sql-action.md b/.agents/skills/cli-api/references/sql-action.md index c772242c0c..ffbd464ab8 100644 --- a/.agents/skills/cli-api/references/sql-action.md +++ b/.agents/skills/cli-api/references/sql-action.md @@ -12,7 +12,6 @@ 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 --actionId --actionName --actorId --content --databaseId --deploy --deps --name --payload --revert --verify csdk sql-action update --id [--actionId ] [--actionName ] [--actorId ] [--content ] [--databaseId ] [--deploy ] [--deps ] [--name ] [--payload ] [--revert ] [--verify ] csdk sql-action delete --id ``` @@ -55,12 +54,6 @@ csdk sql-action list --select id,id csdk sql-action list --where.id.equalTo --orderBy ID_ASC ``` -### Create a sqlAction - -```bash -csdk sql-action create --actionId --actionName --actorId --content --databaseId --deploy --deps --name --payload --revert --verify -``` - ### Get a sqlAction by id ```bash diff --git a/.agents/skills/cli-auth/SKILL.md b/.agents/skills/cli-auth/SKILL.md index e6cbdedc26..7b31e2ebd6 100644 --- a/.agents/skills/cli-auth/SKILL.md +++ b/.agents/skills/cli-auth/SKILL.md @@ -1,13 +1,13 @@ --- name: cli-auth -description: CLI tool (csdk) for the auth API — provides CRUD commands for 15 tables and 61 custom operations +description: CLI tool (csdk) for the auth API — provides CRUD commands for 15 tables and 66 custom operations --- # cli-auth -CLI tool (csdk) for the auth API — provides CRUD commands for 15 tables and 61 custom operations +CLI tool (csdk) for the auth API — provides CRUD commands for 15 tables and 66 custom operations ## Usage @@ -77,6 +77,7 @@ See the `references/` directory for detailed per-entity API documentation: - [current-user-id](references/current-user-id.md) - [get-mfa-status](references/get-mfa-status.md) - [require-step-up](references/require-step-up.md) +- [sign-in-options](references/sign-in-options.md) - [approve-device](references/approve-device.md) - [check-password](references/check-password.md) - [complete-mfa-challenge](references/complete-mfa-challenge.md) @@ -86,6 +87,7 @@ See the `references/` directory for detailed per-entity API documentation: - [create-child-principal](references/create-child-principal.md) - [create-org-api-key](references/create-org-api-key.md) - [create-org-principal](references/create-org-principal.md) +- [create-principal](references/create-principal.md) - [create-principal-from-preset](references/create-principal-from-preset.md) - [delete-org-principal](references/delete-org-principal.md) - [delete-principal](references/delete-principal.md) @@ -96,6 +98,8 @@ See the `references/` directory for detailed per-entity API documentation: - [enable-email-mfa](references/enable-email-mfa.md) - [enable-sms-mfa](references/enable-sms-mfa.md) - [enable-totp](references/enable-totp.md) +- [ensure-auth-csrf](references/ensure-auth-csrf.md) +- [exchange-native-handoff](references/exchange-native-handoff.md) - [extend-token-expires](references/extend-token-expires.md) - [forgot-password](references/forgot-password.md) - [generate-backup-codes](references/generate-backup-codes.md) @@ -104,6 +108,7 @@ See the `references/` directory for detailed per-entity API documentation: - [provision-bucket](references/provision-bucket.md) - [refresh-access-token](references/refresh-access-token.md) - [request-cross-origin-token](references/request-cross-origin-token.md) +- [request-device-approval](references/request-device-approval.md) - [request-magic-link](references/request-magic-link.md) - [reset-password](references/reset-password.md) - [revoke-api-key](references/revoke-api-key.md) diff --git a/.agents/skills/cli-auth/references/create-api-key.md b/.agents/skills/cli-auth/references/create-api-key.md index 065a468e00..7c94c04b8c 100644 --- a/.agents/skills/cli-auth/references/create-api-key.md +++ b/.agents/skills/cli-auth/references/create-api-key.md @@ -2,7 +2,7 @@ -Execute the createApiKey mutation +Mint an API key for the current user; the plaintext key is returned once. access_level: full_access (default) or read_only. mfa_level: none (default) or verified; verified needs a fresh MFA proof on the calling session. A key minted while authenticated by another API key never outlives that key. ## Usage diff --git a/.agents/skills/cli-auth/references/create-principal.md b/.agents/skills/cli-auth/references/create-principal.md new file mode 100644 index 0000000000..1f44abdf3d --- /dev/null +++ b/.agents/skills/cli-auth/references/create-principal.md @@ -0,0 +1,19 @@ +# createPrincipal + + + +Execute the createPrincipal mutation + +## Usage + +```bash +csdk create-principal --input.bypassStepUp --input.clientMutationId --input.entityIds --input.isReadOnly --input.name --input.useAdminOwner +``` + +## Examples + +### Run createPrincipal + +```bash +csdk create-principal --input.bypassStepUp --input.clientMutationId --input.entityIds --input.isReadOnly --input.name --input.useAdminOwner +``` diff --git a/.agents/skills/cli-auth/references/ensure-auth-csrf.md b/.agents/skills/cli-auth/references/ensure-auth-csrf.md new file mode 100644 index 0000000000..7f59c76d73 --- /dev/null +++ b/.agents/skills/cli-auth/references/ensure-auth-csrf.md @@ -0,0 +1,19 @@ +# ensureAuthCsrf + + + +Execute the ensureAuthCsrf mutation + +## Usage + +```bash +csdk ensure-auth-csrf --input.clientMutationId --input.existingToken +``` + +## Examples + +### Run ensureAuthCsrf + +```bash +csdk ensure-auth-csrf --input.clientMutationId --input.existingToken +``` diff --git a/.agents/skills/cli-auth/references/exchange-native-handoff.md b/.agents/skills/cli-auth/references/exchange-native-handoff.md new file mode 100644 index 0000000000..c7f8bdce0b --- /dev/null +++ b/.agents/skills/cli-auth/references/exchange-native-handoff.md @@ -0,0 +1,19 @@ +# exchangeNativeHandoff + + + +Execute the exchangeNativeHandoff mutation + +## Usage + +```bash +csdk exchange-native-handoff --input.clientMutationId --input.code --input.codeVerifier --input.credentialKind +``` + +## Examples + +### Run exchangeNativeHandoff + +```bash +csdk exchange-native-handoff --input.clientMutationId --input.code --input.codeVerifier --input.credentialKind +``` diff --git a/.agents/skills/cli-auth/references/identity-provider.md b/.agents/skills/cli-auth/references/identity-provider.md index 25b9bc7ccb..796c97e64e 100644 --- a/.agents/skills/cli-auth/references/identity-provider.md +++ b/.agents/skills/cli-auth/references/identity-provider.md @@ -12,7 +12,6 @@ csdk identity-provider list --where.. --orderBy csdk identity-provider list --limit 10 --after csdk identity-provider find-first --where.. csdk identity-provider get --id -csdk identity-provider create --displayName --enabled --kind --slug csdk identity-provider update --id [--displayName ] [--enabled ] [--kind ] [--slug ] csdk identity-provider delete --id ``` @@ -55,12 +54,6 @@ csdk identity-provider list --select id,id csdk identity-provider list --where.id.equalTo --orderBy ID_ASC ``` -### Create a identityProvider - -```bash -csdk identity-provider create --displayName --enabled --kind --slug -``` - ### Get a identityProvider by id ```bash diff --git a/.agents/skills/cli-auth/references/org-api-key-list.md b/.agents/skills/cli-auth/references/org-api-key-list.md index 9ed324e519..999d45f75a 100644 --- a/.agents/skills/cli-auth/references/org-api-key-list.md +++ b/.agents/skills/cli-auth/references/org-api-key-list.md @@ -12,7 +12,6 @@ csdk org-api-key-list list --where.. --orderBy csdk org-api-key-list list --limit 10 --after csdk org-api-key-list find-first --where.. csdk org-api-key-list get --id -csdk org-api-key-list create --accessLevel --expiresAt --keyId --lastUsedAt --mfaLevel --name --orgId --principalId --revokedAt csdk org-api-key-list update --id [--accessLevel ] [--expiresAt ] [--keyId ] [--lastUsedAt ] [--mfaLevel ] [--name ] [--orgId ] [--principalId ] [--revokedAt ] csdk org-api-key-list delete --id ``` @@ -55,12 +54,6 @@ csdk org-api-key-list list --select id,id csdk org-api-key-list list --where.id.equalTo --orderBy ID_ASC ``` -### Create a orgApiKeyList - -```bash -csdk org-api-key-list create --accessLevel --expiresAt --keyId --lastUsedAt --mfaLevel --name --orgId --principalId --revokedAt -``` - ### Get a orgApiKeyList by id ```bash diff --git a/.agents/skills/cli-auth/references/principal-entity.md b/.agents/skills/cli-auth/references/principal-entity.md index b6da8bb066..cd2b402e5e 100644 --- a/.agents/skills/cli-auth/references/principal-entity.md +++ b/.agents/skills/cli-auth/references/principal-entity.md @@ -12,7 +12,6 @@ csdk principal-entity list --where.. --orderBy csdk principal-entity list --limit 10 --after csdk principal-entity find-first --where.. csdk principal-entity get --id -csdk principal-entity create --entityId --ownerId --principalId csdk principal-entity update --id [--entityId ] [--ownerId ] [--principalId ] csdk principal-entity delete --id ``` @@ -55,12 +54,6 @@ csdk principal-entity list --select id,id csdk principal-entity list --where.id.equalTo --orderBy ID_ASC ``` -### Create a principalEntity - -```bash -csdk principal-entity create --entityId --ownerId --principalId -``` - ### Get a principalEntity by id ```bash diff --git a/.agents/skills/cli-auth/references/principal-scope-override.md b/.agents/skills/cli-auth/references/principal-scope-override.md index 7b8505eb21..d59e2cc989 100644 --- a/.agents/skills/cli-auth/references/principal-scope-override.md +++ b/.agents/skills/cli-auth/references/principal-scope-override.md @@ -12,7 +12,6 @@ csdk principal-scope-override list --where.. --orderBy csdk principal-scope-override find-first --where.. csdk principal-scope-override get --id -csdk principal-scope-override create --allowedMask --isActive --isReadOnly --membershipType --principalId --useAdminOwner csdk principal-scope-override update --id [--allowedMask ] [--isActive ] [--isReadOnly ] [--membershipType ] [--principalId ] [--useAdminOwner ] csdk principal-scope-override delete --id ``` @@ -55,12 +54,6 @@ csdk principal-scope-override list --select id,id csdk principal-scope-override list --where.id.equalTo --orderBy ID_ASC ``` -### Create a principalScopeOverride - -```bash -csdk principal-scope-override create --allowedMask --isActive --isReadOnly --membershipType --principalId --useAdminOwner -``` - ### Get a principalScopeOverride by id ```bash diff --git a/.agents/skills/cli-auth/references/principal.md b/.agents/skills/cli-auth/references/principal.md index 6a7ffcf339..273df493ec 100644 --- a/.agents/skills/cli-auth/references/principal.md +++ b/.agents/skills/cli-auth/references/principal.md @@ -12,7 +12,6 @@ csdk principal list --where.. --orderBy csdk principal list --limit 10 --after csdk principal find-first --where.. csdk principal get --principalId -csdk principal create --apiKeyMaxDuration --bypassStepUp --createdBySessionId --depth --expiresAt --id --isReadOnly --name --ownerId --parentPrincipalId --useAdminOwner --userId csdk principal update --principalId [--apiKeyMaxDuration ] [--bypassStepUp ] [--createdBySessionId ] [--depth ] [--expiresAt ] [--id ] [--isReadOnly ] [--name ] [--ownerId ] [--parentPrincipalId ] [--useAdminOwner ] [--userId ] csdk principal delete --principalId ``` @@ -55,12 +54,6 @@ csdk principal list --select id,principalId csdk principal list --where.principalId.equalTo --orderBy PRINCIPAL_ID_ASC ``` -### Create a principal - -```bash -csdk principal create --apiKeyMaxDuration --bypassStepUp --createdBySessionId --depth --expiresAt --id --isReadOnly --name --ownerId --parentPrincipalId --useAdminOwner --userId -``` - ### Get a principal by principalId ```bash diff --git a/.agents/skills/cli-auth/references/request-device-approval.md b/.agents/skills/cli-auth/references/request-device-approval.md new file mode 100644 index 0000000000..beedbae8db --- /dev/null +++ b/.agents/skills/cli-auth/references/request-device-approval.md @@ -0,0 +1,19 @@ +# requestDeviceApproval + + + +Execute the requestDeviceApproval mutation + +## Usage + +```bash +csdk request-device-approval --input.clientMutationId --input.deviceToken --input.next --input.userId +``` + +## Examples + +### Run requestDeviceApproval + +```bash +csdk request-device-approval --input.clientMutationId --input.deviceToken --input.next --input.userId +``` diff --git a/.agents/skills/cli-auth/references/request-magic-link.md b/.agents/skills/cli-auth/references/request-magic-link.md index b46352f88e..520de6ae3a 100644 --- a/.agents/skills/cli-auth/references/request-magic-link.md +++ b/.agents/skills/cli-auth/references/request-magic-link.md @@ -7,7 +7,7 @@ Execute the requestMagicLink mutation ## Usage ```bash -csdk request-magic-link --input.clientMutationId --input.email --input.next +csdk request-magic-link --input.clientMutationId --input.codeChallenge --input.email --input.nativeRedirectUri --input.next ``` ## Examples @@ -15,5 +15,5 @@ csdk request-magic-link --input.clientMutationId --input.email ### Run requestMagicLink ```bash -csdk request-magic-link --input.clientMutationId --input.email --input.next +csdk request-magic-link --input.clientMutationId --input.codeChallenge --input.email --input.nativeRedirectUri --input.next ``` diff --git a/.agents/skills/cli-auth/references/set-password.md b/.agents/skills/cli-auth/references/set-password.md index a142c5366f..7ce0bbb271 100644 --- a/.agents/skills/cli-auth/references/set-password.md +++ b/.agents/skills/cli-auth/references/set-password.md @@ -7,7 +7,7 @@ Execute the setPassword mutation ## Usage ```bash -csdk set-password --input.clientMutationId --input.currentPassword --input.newPassword +csdk set-password --input.clientMutationId --input.currentPassword --input.newPassword --input.signOutOtherSessions ``` ## Examples @@ -15,5 +15,5 @@ csdk set-password --input.clientMutationId --input.currentPassword --input.currentPassword --input.newPassword +csdk set-password --input.clientMutationId --input.currentPassword --input.newPassword --input.signOutOtherSessions ``` diff --git a/.agents/skills/cli-auth/references/sign-in-options.md b/.agents/skills/cli-auth/references/sign-in-options.md new file mode 100644 index 0000000000..3817d2f2fd --- /dev/null +++ b/.agents/skills/cli-auth/references/sign-in-options.md @@ -0,0 +1,19 @@ +# signInOptions + + + +Execute the signInOptions query + +## Usage + +```bash +csdk sign-in-options +``` + +## Examples + +### Run signInOptions + +```bash +csdk sign-in-options +``` diff --git a/.agents/skills/cli-auth/references/user-connected-account.md b/.agents/skills/cli-auth/references/user-connected-account.md index d7d943ebd0..4456bbc264 100644 --- a/.agents/skills/cli-auth/references/user-connected-account.md +++ b/.agents/skills/cli-auth/references/user-connected-account.md @@ -12,7 +12,6 @@ csdk user-connected-account list --where.. --orderBy csdk user-connected-account list --limit 10 --after csdk user-connected-account find-first --where.. csdk user-connected-account get --id -csdk user-connected-account create --details --identifier --isVerified --ownerId --service csdk user-connected-account update --id [--details ] [--identifier ] [--isVerified ] [--ownerId ] [--service ] csdk user-connected-account delete --id ``` @@ -55,12 +54,6 @@ csdk user-connected-account list --select id,id csdk user-connected-account list --where.id.equalTo --orderBy ID_ASC ``` -### Create a userConnectedAccount - -```bash -csdk user-connected-account create --details --identifier --isVerified --ownerId --service -``` - ### Get a userConnectedAccount by id ```bash diff --git a/.agents/skills/cli-auth/references/verify-email.md b/.agents/skills/cli-auth/references/verify-email.md index 07f6bb5f40..c17644b830 100644 --- a/.agents/skills/cli-auth/references/verify-email.md +++ b/.agents/skills/cli-auth/references/verify-email.md @@ -7,7 +7,7 @@ Execute the verifyEmail mutation ## Usage ```bash -csdk verify-email --input.clientMutationId --input.emailId --input.token +csdk verify-email --input.clientMutationId --input.emailId --input.password --input.token ``` ## Examples @@ -15,5 +15,5 @@ csdk verify-email --input.clientMutationId --input.emailId --inp ### Run verifyEmail ```bash -csdk verify-email --input.clientMutationId --input.emailId --input.token +csdk verify-email --input.clientMutationId --input.emailId --input.password --input.token ``` diff --git a/.agents/skills/cli-compute/SKILL.md b/.agents/skills/cli-compute/SKILL.md index af0f7f1826..94069d0921 100644 --- a/.agents/skills/cli-compute/SKILL.md +++ b/.agents/skills/cli-compute/SKILL.md @@ -1,13 +1,13 @@ --- name: cli-compute -description: CLI tool (csdk) for the compute API — provides CRUD commands for 123 tables and 64 custom operations +description: CLI tool (csdk) for the compute API — provides CRUD commands for 123 tables and 65 custom operations --- # cli-compute -CLI tool (csdk) for the compute API — provides CRUD commands for 123 tables and 64 custom operations +CLI tool (csdk) for the compute API — provides CRUD commands for 123 tables and 65 custom operations ## Usage @@ -59,7 +59,6 @@ See the `references/` directory for detailed per-entity API documentation: - [embedder](references/embedder.md) - [build](references/build.md) - [build-step](references/build-step.md) -- [builder-binding](references/builder-binding.md) - [content-preset](references/content-preset.md) - [database-function-graph](references/database-function-graph.md) - [database-function-graph-execution-cancel-request](references/database-function-graph-execution-cancel-request.md) @@ -103,7 +102,6 @@ See the `references/` directory for detailed per-entity API documentation: - [namespace-event](references/namespace-event.md) - [platform-build](references/platform-build.md) - [platform-build-step](references/platform-build-step.md) -- [platform-builder-binding](references/platform-builder-binding.md) - [platform-function-api-binding](references/platform-function-api-binding.md) - [platform-function-capability-binding](references/platform-function-capability-binding.md) - [platform-function-definition](references/platform-function-definition.md) @@ -150,6 +148,7 @@ See the `references/` directory for detailed per-entity API documentation: - [platform-resources-health](references/platform-resources-health.md) - [platform-resources-requirements-state](references/platform-resources-requirements-state.md) - [platform-resources-resolved-requirement](references/platform-resources-resolved-requirement.md) +- [platform-service-binding](references/platform-service-binding.md) - [platform-webhook-endpoint](references/platform-webhook-endpoint.md) - [platform-webhook-event](references/platform-webhook-event.md) - [proposal-comment](references/proposal-comment.md) @@ -178,6 +177,7 @@ See the `references/` directory for detailed per-entity API documentation: - [resources-health](references/resources-health.md) - [resources-requirements-state](references/resources-requirements-state.md) - [resources-resolved-requirement](references/resources-resolved-requirement.md) +- [service-binding](references/service-binding.md) - [webhook-endpoint](references/webhook-endpoint.md) - [webhook-event](references/webhook-event.md) - [database-read-function-graph](references/database-read-function-graph.md) @@ -188,6 +188,7 @@ See the `references/` directory for detailed per-entity API documentation: - [add-node-and-save](references/add-node-and-save.md) - [approve-node](references/approve-node.md) - [copy-graph](references/copy-graph.md) +- [create-function-graph](references/create-function-graph.md) - [database-add-edge](references/database-add-edge.md) - [database-add-edge-and-save](references/database-add-edge-and-save.md) - [database-add-node](references/database-add-node.md) diff --git a/.agents/skills/cli-compute/references/create-function-graph.md b/.agents/skills/cli-compute/references/create-function-graph.md new file mode 100644 index 0000000000..e49c9d3432 --- /dev/null +++ b/.agents/skills/cli-compute/references/create-function-graph.md @@ -0,0 +1,19 @@ +# createFunctionGraph + + + +Execute the createFunctionGraph mutation + +## Usage + +```bash +csdk create-function-graph --input.clientMutationId --input.context --input.createdBy --input.definitionsCommitId --input.description --input.name --input.scopeId +``` + +## Examples + +### Run createFunctionGraph + +```bash +csdk create-function-graph --input.clientMutationId --input.context --input.createdBy --input.definitionsCommitId --input.description --input.name --input.scopeId +``` diff --git a/.agents/skills/cli-compute/references/database-function-graph.md b/.agents/skills/cli-compute/references/database-function-graph.md index 993a4f19ee..d3109b7e0a 100644 --- a/.agents/skills/cli-compute/references/database-function-graph.md +++ b/.agents/skills/cli-compute/references/database-function-graph.md @@ -12,7 +12,6 @@ csdk database-function-graph list --where.. --orderBy csdk database-function-graph find-first --where.. csdk database-function-graph get --id -csdk database-function-graph create --context --createdBy --databaseId --definitionsCommitId --description --isValid --name --storeId --validationErrors csdk database-function-graph update --id [--context ] [--createdBy ] [--databaseId ] [--definitionsCommitId ] [--description ] [--isValid ] [--name ] [--storeId ] [--validationErrors ] csdk database-function-graph delete --id ``` @@ -55,12 +54,6 @@ csdk database-function-graph list --select id,id csdk database-function-graph list --where.id.equalTo --orderBy ID_ASC ``` -### Create a databaseFunctionGraph - -```bash -csdk database-function-graph create --context --createdBy --databaseId --definitionsCommitId --description --isValid --name --storeId --validationErrors -``` - ### Get a databaseFunctionGraph by id ```bash diff --git a/.agents/skills/cli-compute/references/database-graph-get-all-tree-nodes-record.md b/.agents/skills/cli-compute/references/database-graph-get-all-tree-nodes-record.md index e8a15fc597..e60575b3c9 100644 --- a/.agents/skills/cli-compute/references/database-graph-get-all-tree-nodes-record.md +++ b/.agents/skills/cli-compute/references/database-graph-get-all-tree-nodes-record.md @@ -12,7 +12,6 @@ csdk database-graph-get-all-tree-nodes-record list --where.. csdk database-graph-get-all-tree-nodes-record list --limit 10 --after csdk database-graph-get-all-tree-nodes-record find-first --where.. csdk database-graph-get-all-tree-nodes-record get --id -csdk database-graph-get-all-tree-nodes-record create --data --path csdk database-graph-get-all-tree-nodes-record update --id [--data ] [--path ] csdk database-graph-get-all-tree-nodes-record delete --id ``` @@ -55,12 +54,6 @@ csdk database-graph-get-all-tree-nodes-record list --select id,id csdk database-graph-get-all-tree-nodes-record list --where.id.equalTo --orderBy ID_ASC ``` -### Create a databaseGraphGetAllTreeNodesRecord - -```bash -csdk database-graph-get-all-tree-nodes-record create --data --path -``` - ### Get a databaseGraphGetAllTreeNodesRecord by id ```bash diff --git a/.agents/skills/cli-compute/references/function-graph.md b/.agents/skills/cli-compute/references/function-graph.md index 7b47faaf05..3b66b799da 100644 --- a/.agents/skills/cli-compute/references/function-graph.md +++ b/.agents/skills/cli-compute/references/function-graph.md @@ -12,7 +12,6 @@ csdk function-graph list --where.. --orderBy csdk function-graph list --limit 10 --after csdk function-graph find-first --where.. csdk function-graph get --id -csdk function-graph create --context --createdBy --definitionsCommitId --description --isValid --name --scopeId --storeId --validationErrors csdk function-graph update --id [--context ] [--createdBy ] [--definitionsCommitId ] [--description ] [--isValid ] [--name ] [--scopeId ] [--storeId ] [--validationErrors ] csdk function-graph delete --id ``` @@ -55,12 +54,6 @@ csdk function-graph list --select id,id csdk function-graph list --where.id.equalTo --orderBy ID_ASC ``` -### Create a functionGraph - -```bash -csdk function-graph create --context --createdBy --definitionsCommitId --description --isValid --name --scopeId --storeId --validationErrors -``` - ### Get a functionGraph by id ```bash diff --git a/.agents/skills/cli-compute/references/get-all-tree-nodes-record.md b/.agents/skills/cli-compute/references/get-all-tree-nodes-record.md index 716547df9a..c4bf91bf6a 100644 --- a/.agents/skills/cli-compute/references/get-all-tree-nodes-record.md +++ b/.agents/skills/cli-compute/references/get-all-tree-nodes-record.md @@ -12,7 +12,6 @@ csdk get-all-tree-nodes-record list --where.. --orderBy csdk get-all-tree-nodes-record find-first --where.. csdk get-all-tree-nodes-record get --id -csdk get-all-tree-nodes-record create --data --path csdk get-all-tree-nodes-record update --id [--data ] [--path ] csdk get-all-tree-nodes-record delete --id ``` @@ -55,12 +54,6 @@ csdk get-all-tree-nodes-record list --select id,id csdk get-all-tree-nodes-record list --where.id.equalTo --orderBy ID_ASC ``` -### Create a getAllTreeNodesRecord - -```bash -csdk get-all-tree-nodes-record create --data --path -``` - ### Get a getAllTreeNodesRecord by id ```bash diff --git a/.agents/skills/cli-compute/references/infra-get-all-tree-nodes-record.md b/.agents/skills/cli-compute/references/infra-get-all-tree-nodes-record.md index 7a6a8404d2..fb0bb29b53 100644 --- a/.agents/skills/cli-compute/references/infra-get-all-tree-nodes-record.md +++ b/.agents/skills/cli-compute/references/infra-get-all-tree-nodes-record.md @@ -12,7 +12,6 @@ csdk infra-get-all-tree-nodes-record list --where.. --orderBy csdk infra-get-all-tree-nodes-record list --limit 10 --after csdk infra-get-all-tree-nodes-record find-first --where.. csdk infra-get-all-tree-nodes-record get --id -csdk infra-get-all-tree-nodes-record create --data --path csdk infra-get-all-tree-nodes-record update --id [--data ] [--path ] csdk infra-get-all-tree-nodes-record delete --id ``` @@ -55,12 +54,6 @@ csdk infra-get-all-tree-nodes-record list --select id,id csdk infra-get-all-tree-nodes-record list --where.id.equalTo --orderBy ID_ASC ``` -### Create a infraGetAllTreeNodesRecord - -```bash -csdk infra-get-all-tree-nodes-record create --data --path -``` - ### Get a infraGetAllTreeNodesRecord by id ```bash diff --git a/.agents/skills/cli-compute/references/platform-infra-get-all-tree-nodes-record.md b/.agents/skills/cli-compute/references/platform-infra-get-all-tree-nodes-record.md index d39b53c3c8..58a6ee1c91 100644 --- a/.agents/skills/cli-compute/references/platform-infra-get-all-tree-nodes-record.md +++ b/.agents/skills/cli-compute/references/platform-infra-get-all-tree-nodes-record.md @@ -12,7 +12,6 @@ csdk platform-infra-get-all-tree-nodes-record list --where.. csdk platform-infra-get-all-tree-nodes-record list --limit 10 --after csdk platform-infra-get-all-tree-nodes-record find-first --where.. csdk platform-infra-get-all-tree-nodes-record get --id -csdk platform-infra-get-all-tree-nodes-record create --data --path csdk platform-infra-get-all-tree-nodes-record update --id [--data ] [--path ] csdk platform-infra-get-all-tree-nodes-record delete --id ``` @@ -55,12 +54,6 @@ csdk platform-infra-get-all-tree-nodes-record list --select id,id csdk platform-infra-get-all-tree-nodes-record list --where.id.equalTo --orderBy ID_ASC ``` -### Create a platformInfraGetAllTreeNodesRecord - -```bash -csdk platform-infra-get-all-tree-nodes-record create --data --path -``` - ### Get a platformInfraGetAllTreeNodesRecord by id ```bash diff --git a/.agents/skills/cli-compute/references/platform-proposal-comment.md b/.agents/skills/cli-compute/references/platform-proposal-comment.md index b0446a7d5b..16b20af41d 100644 --- a/.agents/skills/cli-compute/references/platform-proposal-comment.md +++ b/.agents/skills/cli-compute/references/platform-proposal-comment.md @@ -7,7 +7,7 @@ CRUD operations for PlatformProposalComment records via csdk CLI **pgvector embedding fields:** `embedding` High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. -**Unified Search API fields:** `bodyTrgmSimilarity`, `pathTrgmSimilarity`, `search`, `searchScore` +**Unified Search API fields:** `bodyTrgmSimilarity`, `embeddingModelTrgmSimilarity`, `pathTrgmSimilarity`, `search`, `searchScore` Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. ## Usage @@ -91,6 +91,12 @@ EMBEDDER_PROVIDER=ollama csdk platform-proposal-comment update --embedding "new csdk platform-proposal-comment list --where.trgmBody.value "approximate query" --where.trgmBody.threshold 0.3 --select title,bodyTrgmSimilarity ``` +### Fuzzy search via trigram similarity (`trgmEmbeddingModel`) + +```bash +csdk platform-proposal-comment list --where.trgmEmbeddingModel.value "approximate query" --where.trgmEmbeddingModel.threshold 0.3 --select title,embeddingModelTrgmSimilarity +``` + ### Fuzzy search via trigram similarity (`trgmPath`) ```bash @@ -106,7 +112,7 @@ csdk platform-proposal-comment list --where.search "search query" --select title ### Composite search (unifiedSearch dispatches to all text adapters) ```bash -csdk platform-proposal-comment list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,pathTrgmSimilarity,tsvRank,searchScore +csdk platform-proposal-comment list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,embeddingModelTrgmSimilarity,pathTrgmSimilarity,tsvRank,searchScore ``` ### Search with pagination and field projection diff --git a/.agents/skills/cli-compute/references/platform-proposal.md b/.agents/skills/cli-compute/references/platform-proposal.md index 8db3dd024a..d4e9eb43c1 100644 --- a/.agents/skills/cli-compute/references/platform-proposal.md +++ b/.agents/skills/cli-compute/references/platform-proposal.md @@ -7,7 +7,7 @@ CRUD operations for PlatformProposal records via csdk CLI **pgvector embedding fields:** `embedding` High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. -**Unified Search API fields:** `bodyTrgmSimilarity`, `closedReasonTrgmSimilarity`, `kindTrgmSimilarity`, `mergeCommitTrgmSimilarity`, `mergeMethodTrgmSimilarity`, `resolutionTrgmSimilarity`, `search`, `searchScore`, `sourceRefTrgmSimilarity`, `statusTrgmSimilarity`, `targetRefTrgmSimilarity`, `titleTrgmSimilarity` +**Unified Search API fields:** `bodyTrgmSimilarity`, `closedReasonTrgmSimilarity`, `embeddingModelTrgmSimilarity`, `kindTrgmSimilarity`, `mergeCommitTrgmSimilarity`, `mergeMethodTrgmSimilarity`, `resolutionTrgmSimilarity`, `search`, `searchScore`, `sourceRefTrgmSimilarity`, `statusTrgmSimilarity`, `targetRefTrgmSimilarity`, `titleTrgmSimilarity` Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. ## Usage @@ -97,6 +97,12 @@ csdk platform-proposal list --where.trgmBody.value "approximate query" --where.t csdk platform-proposal list --where.trgmClosedReason.value "approximate query" --where.trgmClosedReason.threshold 0.3 --select title,closedReasonTrgmSimilarity ``` +### Fuzzy search via trigram similarity (`trgmEmbeddingModel`) + +```bash +csdk platform-proposal list --where.trgmEmbeddingModel.value "approximate query" --where.trgmEmbeddingModel.threshold 0.3 --select title,embeddingModelTrgmSimilarity +``` + ### Fuzzy search via trigram similarity (`trgmKind`) ```bash @@ -154,7 +160,7 @@ csdk platform-proposal list --where.trgmTitle.value "approximate query" --where. ### Composite search (unifiedSearch dispatches to all text adapters) ```bash -csdk platform-proposal list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,closedReasonTrgmSimilarity,kindTrgmSimilarity,mergeCommitTrgmSimilarity,mergeMethodTrgmSimilarity,resolutionTrgmSimilarity,tsvRank,searchScore,sourceRefTrgmSimilarity,statusTrgmSimilarity,targetRefTrgmSimilarity,titleTrgmSimilarity +csdk platform-proposal list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,closedReasonTrgmSimilarity,embeddingModelTrgmSimilarity,kindTrgmSimilarity,mergeCommitTrgmSimilarity,mergeMethodTrgmSimilarity,resolutionTrgmSimilarity,tsvRank,searchScore,sourceRefTrgmSimilarity,statusTrgmSimilarity,targetRefTrgmSimilarity,titleTrgmSimilarity ``` ### Search with pagination and field projection diff --git a/.agents/skills/cli-compute/references/platform-repository.md b/.agents/skills/cli-compute/references/platform-repository.md index 1c712608af..f3711a98e4 100644 --- a/.agents/skills/cli-compute/references/platform-repository.md +++ b/.agents/skills/cli-compute/references/platform-repository.md @@ -7,7 +7,7 @@ CRUD operations for PlatformRepository records via csdk CLI **pgvector embedding fields:** `embedding` High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. -**Unified Search API fields:** `cloneUrlTrgmSimilarity`, `defaultBranchTrgmSimilarity`, `descriptionTrgmSimilarity`, `externalIdTrgmSimilarity`, `nameTrgmSimilarity`, `providerTrgmSimilarity`, `search`, `searchScore`, `slugTrgmSimilarity`, `visibilityTrgmSimilarity` +**Unified Search API fields:** `cloneUrlTrgmSimilarity`, `defaultBranchTrgmSimilarity`, `descriptionTrgmSimilarity`, `embeddingModelTrgmSimilarity`, `externalIdTrgmSimilarity`, `nameTrgmSimilarity`, `providerTrgmSimilarity`, `search`, `searchScore`, `slugTrgmSimilarity`, `visibilityTrgmSimilarity` Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. ## Usage @@ -103,6 +103,12 @@ csdk platform-repository list --where.trgmDefaultBranch.value "approximate query csdk platform-repository list --where.trgmDescription.value "approximate query" --where.trgmDescription.threshold 0.3 --select title,descriptionTrgmSimilarity ``` +### Fuzzy search via trigram similarity (`trgmEmbeddingModel`) + +```bash +csdk platform-repository list --where.trgmEmbeddingModel.value "approximate query" --where.trgmEmbeddingModel.threshold 0.3 --select title,embeddingModelTrgmSimilarity +``` + ### Fuzzy search via trigram similarity (`trgmExternalId`) ```bash @@ -142,7 +148,7 @@ csdk platform-repository list --where.trgmVisibility.value "approximate query" - ### Composite search (unifiedSearch dispatches to all text adapters) ```bash -csdk platform-repository list --where.unifiedSearch "search query" --select title,cloneUrlTrgmSimilarity,defaultBranchTrgmSimilarity,descriptionTrgmSimilarity,externalIdTrgmSimilarity,nameTrgmSimilarity,providerTrgmSimilarity,tsvRank,searchScore,slugTrgmSimilarity,visibilityTrgmSimilarity +csdk platform-repository list --where.unifiedSearch "search query" --select title,cloneUrlTrgmSimilarity,defaultBranchTrgmSimilarity,descriptionTrgmSimilarity,embeddingModelTrgmSimilarity,externalIdTrgmSimilarity,nameTrgmSimilarity,providerTrgmSimilarity,tsvRank,searchScore,slugTrgmSimilarity,visibilityTrgmSimilarity ``` ### Search with pagination and field projection diff --git a/.agents/skills/cli-compute/references/platform-resource-declared-capacity.md b/.agents/skills/cli-compute/references/platform-resource-declared-capacity.md index 43982689db..3ff95fff1a 100644 --- a/.agents/skills/cli-compute/references/platform-resource-declared-capacity.md +++ b/.agents/skills/cli-compute/references/platform-resource-declared-capacity.md @@ -12,7 +12,6 @@ csdk platform-resource-declared-capacity list --where.. --ord csdk platform-resource-declared-capacity list --limit 10 --after csdk platform-resource-declared-capacity find-first --where.. csdk platform-resource-declared-capacity get --id -csdk platform-resource-declared-capacity create --cpuLimitMillicores --cpuRequestMillicores --installationId --isTransient --kind --memoryLimitBytes --memoryRequestBytes --namespaceId --podCountMax --podCountMin --source --sourceId --storageSizeBytes --storageTotalBytes csdk platform-resource-declared-capacity update --id [--cpuLimitMillicores ] [--cpuRequestMillicores ] [--installationId ] [--isTransient ] [--kind ] [--memoryLimitBytes ] [--memoryRequestBytes ] [--namespaceId ] [--podCountMax ] [--podCountMin ] [--source ] [--sourceId ] [--storageSizeBytes ] [--storageTotalBytes ] csdk platform-resource-declared-capacity delete --id ``` @@ -55,12 +54,6 @@ csdk platform-resource-declared-capacity list --select id,id csdk platform-resource-declared-capacity list --where.id.equalTo --orderBy ID_ASC ``` -### Create a platformResourceDeclaredCapacity - -```bash -csdk platform-resource-declared-capacity create --cpuLimitMillicores --cpuRequestMillicores --installationId --isTransient --kind --memoryLimitBytes --memoryRequestBytes --namespaceId --podCountMax --podCountMin --source --sourceId --storageSizeBytes --storageTotalBytes -``` - ### Get a platformResourceDeclaredCapacity by id ```bash diff --git a/.agents/skills/cli-compute/references/platform-resource-observed-storage.md b/.agents/skills/cli-compute/references/platform-resource-observed-storage.md index bec73ec6a3..b078988c14 100644 --- a/.agents/skills/cli-compute/references/platform-resource-observed-storage.md +++ b/.agents/skills/cli-compute/references/platform-resource-observed-storage.md @@ -12,7 +12,6 @@ csdk platform-resource-observed-storage list --where.. --orde csdk platform-resource-observed-storage list --limit 10 --after csdk platform-resource-observed-storage find-first --where.. csdk platform-resource-observed-storage get --id -csdk platform-resource-observed-storage create --capacity --capacityBytes --claimName --declaredStorageClass --declaredStorageSizeBytes --declaredStorageTotalBytes --installationId --isBound --kind --namespaceId --phase --requested --requestedBytes --resourceId --resourceStatus --slug --storageClass --storageName csdk platform-resource-observed-storage update --id [--capacity ] [--capacityBytes ] [--claimName ] [--declaredStorageClass ] [--declaredStorageSizeBytes ] [--declaredStorageTotalBytes ] [--installationId ] [--isBound ] [--kind ] [--namespaceId ] [--phase ] [--requested ] [--requestedBytes ] [--resourceId ] [--resourceStatus ] [--slug ] [--storageClass ] [--storageName ] csdk platform-resource-observed-storage delete --id ``` @@ -55,12 +54,6 @@ csdk platform-resource-observed-storage list --select id,id csdk platform-resource-observed-storage list --where.id.equalTo --orderBy ID_ASC ``` -### Create a platformResourceObservedStorage - -```bash -csdk platform-resource-observed-storage create --capacity --capacityBytes --claimName --declaredStorageClass --declaredStorageSizeBytes --declaredStorageTotalBytes --installationId --isBound --kind --namespaceId --phase --requested --requestedBytes --resourceId --resourceStatus --slug --storageClass --storageName -``` - ### Get a platformResourceObservedStorage by id ```bash diff --git a/.agents/skills/cli-compute/references/platform-resource-utilization.md b/.agents/skills/cli-compute/references/platform-resource-utilization.md index d50a119c6c..6604501716 100644 --- a/.agents/skills/cli-compute/references/platform-resource-utilization.md +++ b/.agents/skills/cli-compute/references/platform-resource-utilization.md @@ -12,7 +12,6 @@ csdk platform-resource-utilization list --where.. --orderBy < csdk platform-resource-utilization list --limit 10 --after csdk platform-resource-utilization find-first --where.. csdk platform-resource-utilization get --id -csdk platform-resource-utilization create --avgMemoryBytes --cpuLimitMillicores --cpuPeakUtilization --cpuRequestHeadroomMillicores --cpuRequestMillicores --date --gbSeconds --kind --maxCpuMillicores --maxMemoryBytes --memoryLimitBytes --memoryPeakUtilization --memoryRequestBytes --memoryRequestHeadroomBytes --namespaceId --replicas --resourceId --runtimeSeconds --sampleCount csdk platform-resource-utilization update --id [--avgMemoryBytes ] [--cpuLimitMillicores ] [--cpuPeakUtilization ] [--cpuRequestHeadroomMillicores ] [--cpuRequestMillicores ] [--date ] [--gbSeconds ] [--kind ] [--maxCpuMillicores ] [--maxMemoryBytes ] [--memoryLimitBytes ] [--memoryPeakUtilization ] [--memoryRequestBytes ] [--memoryRequestHeadroomBytes ] [--namespaceId ] [--replicas ] [--resourceId ] [--runtimeSeconds ] [--sampleCount ] csdk platform-resource-utilization delete --id ``` @@ -55,12 +54,6 @@ csdk platform-resource-utilization list --select id,id csdk platform-resource-utilization list --where.id.equalTo --orderBy ID_ASC ``` -### Create a platformResourceUtilization - -```bash -csdk platform-resource-utilization create --avgMemoryBytes --cpuLimitMillicores --cpuPeakUtilization --cpuRequestHeadroomMillicores --cpuRequestMillicores --date --gbSeconds --kind --maxCpuMillicores --maxMemoryBytes --memoryLimitBytes --memoryPeakUtilization --memoryRequestBytes --memoryRequestHeadroomBytes --namespaceId --replicas --resourceId --runtimeSeconds --sampleCount -``` - ### Get a platformResourceUtilization by id ```bash diff --git a/.agents/skills/cli-compute/references/platform-resources-health.md b/.agents/skills/cli-compute/references/platform-resources-health.md index e6a540cfd7..200078555e 100644 --- a/.agents/skills/cli-compute/references/platform-resources-health.md +++ b/.agents/skills/cli-compute/references/platform-resources-health.md @@ -12,7 +12,6 @@ csdk platform-resources-health list --where.. --orderBy csdk platform-resources-health find-first --where.. csdk platform-resources-health get --id -csdk platform-resources-health create --annotations --cpuLimitMillicores --cpuRequestMillicores --createdBy --createdByPrincipal --errorCount --imageRef --installationId --integrations --kind --labels --lastError --lastHeartbeatAt --memoryLimitBytes --memoryRequestBytes --name --namespaceId --realm --replicas --requiredConfigs --requiredSecrets --resourceDefinitionId --slug --spec --status --statusDetail --statusObserved --storageClass --storageSizeBytes --storageTotalBytes --updatedBy --updatedByPrincipal csdk platform-resources-health update --id [--annotations ] [--cpuLimitMillicores ] [--cpuRequestMillicores ] [--createdBy ] [--createdByPrincipal ] [--errorCount ] [--imageRef ] [--installationId ] [--integrations ] [--kind ] [--labels ] [--lastError ] [--lastHeartbeatAt ] [--memoryLimitBytes ] [--memoryRequestBytes ] [--name ] [--namespaceId ] [--realm ] [--replicas ] [--requiredConfigs ] [--requiredSecrets ] [--resourceDefinitionId ] [--slug ] [--spec ] [--status ] [--statusDetail ] [--statusObserved ] [--storageClass ] [--storageSizeBytes ] [--storageTotalBytes ] [--updatedBy ] [--updatedByPrincipal ] csdk platform-resources-health delete --id ``` @@ -55,12 +54,6 @@ csdk platform-resources-health list --select id,id csdk platform-resources-health list --where.id.equalTo --orderBy ID_ASC ``` -### Create a platformResourcesHealth - -```bash -csdk platform-resources-health create --annotations --cpuLimitMillicores --cpuRequestMillicores --createdBy --createdByPrincipal --errorCount --imageRef --installationId --integrations --kind --labels --lastError --lastHeartbeatAt --memoryLimitBytes --memoryRequestBytes --name --namespaceId --realm --replicas --requiredConfigs --requiredSecrets --resourceDefinitionId --slug --spec --status --statusDetail --statusObserved --storageClass --storageSizeBytes --storageTotalBytes --updatedBy --updatedByPrincipal -``` - ### Get a platformResourcesHealth by id ```bash diff --git a/.agents/skills/cli-compute/references/platform-resources-requirements-state.md b/.agents/skills/cli-compute/references/platform-resources-requirements-state.md index cccb239d7e..4889c2e8be 100644 --- a/.agents/skills/cli-compute/references/platform-resources-requirements-state.md +++ b/.agents/skills/cli-compute/references/platform-resources-requirements-state.md @@ -12,7 +12,6 @@ csdk platform-resources-requirements-state list --where.. --o csdk platform-resources-requirements-state list --limit 10 --after csdk platform-resources-requirements-state find-first --where.. csdk platform-resources-requirements-state get --id -csdk platform-resources-requirements-state create --configHash --configObjectName --requirementsHash --resourceId --secretsHash --secretsObjectName --slug csdk platform-resources-requirements-state update --id [--configHash ] [--configObjectName ] [--requirementsHash ] [--resourceId ] [--secretsHash ] [--secretsObjectName ] [--slug ] csdk platform-resources-requirements-state delete --id ``` @@ -55,12 +54,6 @@ csdk platform-resources-requirements-state list --select id,id csdk platform-resources-requirements-state list --where.id.equalTo --orderBy ID_ASC ``` -### Create a platformResourcesRequirementsState - -```bash -csdk platform-resources-requirements-state create --configHash --configObjectName --requirementsHash --resourceId --secretsHash --secretsObjectName --slug -``` - ### Get a platformResourcesRequirementsState by id ```bash diff --git a/.agents/skills/cli-compute/references/platform-resources-resolved-requirement.md b/.agents/skills/cli-compute/references/platform-resources-resolved-requirement.md index 80d8b1a776..1b8c831c58 100644 --- a/.agents/skills/cli-compute/references/platform-resources-resolved-requirement.md +++ b/.agents/skills/cli-compute/references/platform-resources-resolved-requirement.md @@ -12,7 +12,6 @@ csdk platform-resources-resolved-requirement list --where.. - csdk platform-resources-resolved-requirement list --limit 10 --after csdk platform-resources-resolved-requirement find-first --where.. csdk platform-resources-resolved-requirement get --id -csdk platform-resources-resolved-requirement create --atomId --configObjectName --name --namespaceId --present --realm --required --requirementKind --resourceId --secretsObjectName --slug csdk platform-resources-resolved-requirement update --id [--atomId ] [--configObjectName ] [--name ] [--namespaceId ] [--present ] [--realm ] [--required ] [--requirementKind ] [--resourceId ] [--secretsObjectName ] [--slug ] csdk platform-resources-resolved-requirement delete --id ``` @@ -55,12 +54,6 @@ csdk platform-resources-resolved-requirement list --select id,id csdk platform-resources-resolved-requirement list --where.id.equalTo --orderBy ID_ASC ``` -### Create a platformResourcesResolvedRequirement - -```bash -csdk platform-resources-resolved-requirement create --atomId --configObjectName --name --namespaceId --present --realm --required --requirementKind --resourceId --secretsObjectName --slug -``` - ### Get a platformResourcesResolvedRequirement by id ```bash diff --git a/.agents/skills/cli-compute/references/platform-service-binding.md b/.agents/skills/cli-compute/references/platform-service-binding.md new file mode 100644 index 0000000000..ad0e5da311 --- /dev/null +++ b/.agents/skills/cli-compute/references/platform-service-binding.md @@ -0,0 +1,68 @@ +# platformServiceBinding + + + +CRUD operations for PlatformServiceBinding records via csdk CLI + +## Usage + +```bash +csdk platform-service-binding list +csdk platform-service-binding list --where.. --orderBy +csdk platform-service-binding list --limit 10 --after +csdk platform-service-binding find-first --where.. +csdk platform-service-binding get --id +csdk platform-service-binding create --installationId --installationScope --kind --namespaceId [--createdBy ] [--createdByPrincipal ] [--lastError ] [--metadata ] [--observedHost ] [--realm ] [--status ] [--updatedBy ] [--updatedByPrincipal ] +csdk platform-service-binding update --id [--createdBy ] [--createdByPrincipal ] [--installationId ] [--installationScope ] [--kind ] [--lastError ] [--metadata ] [--namespaceId ] [--observedHost ] [--realm ] [--status ] [--updatedBy ] [--updatedByPrincipal ] +csdk platform-service-binding delete --id +``` + +## Examples + +### List platformServiceBinding records + +```bash +csdk platform-service-binding list +``` + +### List platformServiceBinding records with pagination + +```bash +csdk platform-service-binding list --limit 10 --offset 0 +``` + +### List platformServiceBinding records with cursor pagination + +```bash +csdk platform-service-binding list --limit 10 --after +``` + +### Find first matching platformServiceBinding + +```bash +csdk platform-service-binding find-first --where.id.equalTo +``` + +### List platformServiceBinding records with field selection + +```bash +csdk platform-service-binding list --select id,id +``` + +### List platformServiceBinding records with filtering and ordering + +```bash +csdk platform-service-binding list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a platformServiceBinding + +```bash +csdk platform-service-binding create --installationId --installationScope --kind --namespaceId [--createdBy ] [--createdByPrincipal ] [--lastError ] [--metadata ] [--observedHost ] [--realm ] [--status ] [--updatedBy ] [--updatedByPrincipal ] +``` + +### Get a platformServiceBinding by id + +```bash +csdk platform-service-binding get --id +``` diff --git a/.agents/skills/cli-compute/references/proposal-comment.md b/.agents/skills/cli-compute/references/proposal-comment.md index 38f4b281bd..98d84ab86f 100644 --- a/.agents/skills/cli-compute/references/proposal-comment.md +++ b/.agents/skills/cli-compute/references/proposal-comment.md @@ -7,7 +7,7 @@ CRUD operations for ProposalComment records via csdk CLI **pgvector embedding fields:** `embedding` High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. -**Unified Search API fields:** `bodyTrgmSimilarity`, `pathTrgmSimilarity`, `search`, `searchScore` +**Unified Search API fields:** `bodyTrgmSimilarity`, `embeddingModelTrgmSimilarity`, `pathTrgmSimilarity`, `search`, `searchScore` Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. ## Usage @@ -91,6 +91,12 @@ EMBEDDER_PROVIDER=ollama csdk proposal-comment update --embedding "new text to e csdk proposal-comment list --where.trgmBody.value "approximate query" --where.trgmBody.threshold 0.3 --select title,bodyTrgmSimilarity ``` +### Fuzzy search via trigram similarity (`trgmEmbeddingModel`) + +```bash +csdk proposal-comment list --where.trgmEmbeddingModel.value "approximate query" --where.trgmEmbeddingModel.threshold 0.3 --select title,embeddingModelTrgmSimilarity +``` + ### Fuzzy search via trigram similarity (`trgmPath`) ```bash @@ -106,7 +112,7 @@ csdk proposal-comment list --where.search "search query" --select title,tsvRank ### Composite search (unifiedSearch dispatches to all text adapters) ```bash -csdk proposal-comment list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,pathTrgmSimilarity,tsvRank,searchScore +csdk proposal-comment list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,embeddingModelTrgmSimilarity,pathTrgmSimilarity,tsvRank,searchScore ``` ### Search with pagination and field projection diff --git a/.agents/skills/cli-compute/references/proposal.md b/.agents/skills/cli-compute/references/proposal.md index 1aa8e96621..35329be8ef 100644 --- a/.agents/skills/cli-compute/references/proposal.md +++ b/.agents/skills/cli-compute/references/proposal.md @@ -7,7 +7,7 @@ CRUD operations for Proposal records via csdk CLI **pgvector embedding fields:** `embedding` High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. -**Unified Search API fields:** `bodyTrgmSimilarity`, `closedReasonTrgmSimilarity`, `kindTrgmSimilarity`, `mergeCommitTrgmSimilarity`, `mergeMethodTrgmSimilarity`, `resolutionTrgmSimilarity`, `search`, `searchScore`, `sourceRefTrgmSimilarity`, `statusTrgmSimilarity`, `targetRefTrgmSimilarity`, `titleTrgmSimilarity` +**Unified Search API fields:** `bodyTrgmSimilarity`, `closedReasonTrgmSimilarity`, `embeddingModelTrgmSimilarity`, `kindTrgmSimilarity`, `mergeCommitTrgmSimilarity`, `mergeMethodTrgmSimilarity`, `resolutionTrgmSimilarity`, `search`, `searchScore`, `sourceRefTrgmSimilarity`, `statusTrgmSimilarity`, `targetRefTrgmSimilarity`, `titleTrgmSimilarity` Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. ## Usage @@ -97,6 +97,12 @@ csdk proposal list --where.trgmBody.value "approximate query" --where.trgmBody.t csdk proposal list --where.trgmClosedReason.value "approximate query" --where.trgmClosedReason.threshold 0.3 --select title,closedReasonTrgmSimilarity ``` +### Fuzzy search via trigram similarity (`trgmEmbeddingModel`) + +```bash +csdk proposal list --where.trgmEmbeddingModel.value "approximate query" --where.trgmEmbeddingModel.threshold 0.3 --select title,embeddingModelTrgmSimilarity +``` + ### Fuzzy search via trigram similarity (`trgmKind`) ```bash @@ -154,7 +160,7 @@ csdk proposal list --where.trgmTitle.value "approximate query" --where.trgmTitle ### Composite search (unifiedSearch dispatches to all text adapters) ```bash -csdk proposal list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,closedReasonTrgmSimilarity,kindTrgmSimilarity,mergeCommitTrgmSimilarity,mergeMethodTrgmSimilarity,resolutionTrgmSimilarity,tsvRank,searchScore,sourceRefTrgmSimilarity,statusTrgmSimilarity,targetRefTrgmSimilarity,titleTrgmSimilarity +csdk proposal list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,closedReasonTrgmSimilarity,embeddingModelTrgmSimilarity,kindTrgmSimilarity,mergeCommitTrgmSimilarity,mergeMethodTrgmSimilarity,resolutionTrgmSimilarity,tsvRank,searchScore,sourceRefTrgmSimilarity,statusTrgmSimilarity,targetRefTrgmSimilarity,titleTrgmSimilarity ``` ### Search with pagination and field projection diff --git a/.agents/skills/cli-compute/references/repository.md b/.agents/skills/cli-compute/references/repository.md index 3d8aa93e43..c5f79eab04 100644 --- a/.agents/skills/cli-compute/references/repository.md +++ b/.agents/skills/cli-compute/references/repository.md @@ -7,7 +7,7 @@ CRUD operations for Repository records via csdk CLI **pgvector embedding fields:** `embedding` High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. -**Unified Search API fields:** `cloneUrlTrgmSimilarity`, `defaultBranchTrgmSimilarity`, `descriptionTrgmSimilarity`, `externalIdTrgmSimilarity`, `nameTrgmSimilarity`, `providerTrgmSimilarity`, `search`, `searchScore`, `slugTrgmSimilarity`, `visibilityTrgmSimilarity` +**Unified Search API fields:** `cloneUrlTrgmSimilarity`, `defaultBranchTrgmSimilarity`, `descriptionTrgmSimilarity`, `embeddingModelTrgmSimilarity`, `externalIdTrgmSimilarity`, `nameTrgmSimilarity`, `providerTrgmSimilarity`, `search`, `searchScore`, `slugTrgmSimilarity`, `visibilityTrgmSimilarity` Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. ## Usage @@ -103,6 +103,12 @@ csdk repository list --where.trgmDefaultBranch.value "approximate query" --where csdk repository list --where.trgmDescription.value "approximate query" --where.trgmDescription.threshold 0.3 --select title,descriptionTrgmSimilarity ``` +### Fuzzy search via trigram similarity (`trgmEmbeddingModel`) + +```bash +csdk repository list --where.trgmEmbeddingModel.value "approximate query" --where.trgmEmbeddingModel.threshold 0.3 --select title,embeddingModelTrgmSimilarity +``` + ### Fuzzy search via trigram similarity (`trgmExternalId`) ```bash @@ -142,7 +148,7 @@ csdk repository list --where.trgmVisibility.value "approximate query" --where.tr ### Composite search (unifiedSearch dispatches to all text adapters) ```bash -csdk repository list --where.unifiedSearch "search query" --select title,cloneUrlTrgmSimilarity,defaultBranchTrgmSimilarity,descriptionTrgmSimilarity,externalIdTrgmSimilarity,nameTrgmSimilarity,providerTrgmSimilarity,tsvRank,searchScore,slugTrgmSimilarity,visibilityTrgmSimilarity +csdk repository list --where.unifiedSearch "search query" --select title,cloneUrlTrgmSimilarity,defaultBranchTrgmSimilarity,descriptionTrgmSimilarity,embeddingModelTrgmSimilarity,externalIdTrgmSimilarity,nameTrgmSimilarity,providerTrgmSimilarity,tsvRank,searchScore,slugTrgmSimilarity,visibilityTrgmSimilarity ``` ### Search with pagination and field projection diff --git a/.agents/skills/cli-compute/references/resource-declared-capacity.md b/.agents/skills/cli-compute/references/resource-declared-capacity.md index 679f182458..f086d9ab02 100644 --- a/.agents/skills/cli-compute/references/resource-declared-capacity.md +++ b/.agents/skills/cli-compute/references/resource-declared-capacity.md @@ -12,7 +12,6 @@ csdk resource-declared-capacity list --where.. --orderBy csdk resource-declared-capacity find-first --where.. csdk resource-declared-capacity get --id -csdk resource-declared-capacity create --cpuLimitMillicores --cpuRequestMillicores --installationId --isTransient --kind --memoryLimitBytes --memoryRequestBytes --namespaceId --podCountMax --podCountMin --source --sourceId --storageSizeBytes --storageTotalBytes csdk resource-declared-capacity update --id [--cpuLimitMillicores ] [--cpuRequestMillicores ] [--installationId ] [--isTransient ] [--kind ] [--memoryLimitBytes ] [--memoryRequestBytes ] [--namespaceId ] [--podCountMax ] [--podCountMin ] [--source ] [--sourceId ] [--storageSizeBytes ] [--storageTotalBytes ] csdk resource-declared-capacity delete --id ``` @@ -55,12 +54,6 @@ csdk resource-declared-capacity list --select id,id csdk resource-declared-capacity list --where.id.equalTo --orderBy ID_ASC ``` -### Create a resourceDeclaredCapacity - -```bash -csdk resource-declared-capacity create --cpuLimitMillicores --cpuRequestMillicores --installationId --isTransient --kind --memoryLimitBytes --memoryRequestBytes --namespaceId --podCountMax --podCountMin --source --sourceId --storageSizeBytes --storageTotalBytes -``` - ### Get a resourceDeclaredCapacity by id ```bash diff --git a/.agents/skills/cli-compute/references/resource-observed-storage.md b/.agents/skills/cli-compute/references/resource-observed-storage.md index b9f74d2221..2ca3c396ab 100644 --- a/.agents/skills/cli-compute/references/resource-observed-storage.md +++ b/.agents/skills/cli-compute/references/resource-observed-storage.md @@ -12,7 +12,6 @@ csdk resource-observed-storage list --where.. --orderBy csdk resource-observed-storage find-first --where.. csdk resource-observed-storage get --id -csdk resource-observed-storage create --capacity --capacityBytes --claimName --declaredStorageClass --declaredStorageSizeBytes --declaredStorageTotalBytes --installationId --isBound --kind --namespaceId --phase --requested --requestedBytes --resourceId --resourceStatus --slug --storageClass --storageName csdk resource-observed-storage update --id [--capacity ] [--capacityBytes ] [--claimName ] [--declaredStorageClass ] [--declaredStorageSizeBytes ] [--declaredStorageTotalBytes ] [--installationId ] [--isBound ] [--kind ] [--namespaceId ] [--phase ] [--requested ] [--requestedBytes ] [--resourceId ] [--resourceStatus ] [--slug ] [--storageClass ] [--storageName ] csdk resource-observed-storage delete --id ``` @@ -55,12 +54,6 @@ csdk resource-observed-storage list --select id,id csdk resource-observed-storage list --where.id.equalTo --orderBy ID_ASC ``` -### Create a resourceObservedStorage - -```bash -csdk resource-observed-storage create --capacity --capacityBytes --claimName --declaredStorageClass --declaredStorageSizeBytes --declaredStorageTotalBytes --installationId --isBound --kind --namespaceId --phase --requested --requestedBytes --resourceId --resourceStatus --slug --storageClass --storageName -``` - ### Get a resourceObservedStorage by id ```bash diff --git a/.agents/skills/cli-compute/references/resource-utilization.md b/.agents/skills/cli-compute/references/resource-utilization.md index 7d67a62cbf..adc76c8615 100644 --- a/.agents/skills/cli-compute/references/resource-utilization.md +++ b/.agents/skills/cli-compute/references/resource-utilization.md @@ -12,7 +12,6 @@ csdk resource-utilization list --where.. --orderBy csdk resource-utilization list --limit 10 --after csdk resource-utilization find-first --where.. csdk resource-utilization get --id -csdk resource-utilization create --avgMemoryBytes --cpuLimitMillicores --cpuPeakUtilization --cpuRequestHeadroomMillicores --cpuRequestMillicores --date --gbSeconds --kind --maxCpuMillicores --maxMemoryBytes --memoryLimitBytes --memoryPeakUtilization --memoryRequestBytes --memoryRequestHeadroomBytes --namespaceId --replicas --resourceId --runtimeSeconds --sampleCount csdk resource-utilization update --id [--avgMemoryBytes ] [--cpuLimitMillicores ] [--cpuPeakUtilization ] [--cpuRequestHeadroomMillicores ] [--cpuRequestMillicores ] [--date ] [--gbSeconds ] [--kind ] [--maxCpuMillicores ] [--maxMemoryBytes ] [--memoryLimitBytes ] [--memoryPeakUtilization ] [--memoryRequestBytes ] [--memoryRequestHeadroomBytes ] [--namespaceId ] [--replicas ] [--resourceId ] [--runtimeSeconds ] [--sampleCount ] csdk resource-utilization delete --id ``` @@ -55,12 +54,6 @@ csdk resource-utilization list --select id,id csdk resource-utilization list --where.id.equalTo --orderBy ID_ASC ``` -### Create a resourceUtilization - -```bash -csdk resource-utilization create --avgMemoryBytes --cpuLimitMillicores --cpuPeakUtilization --cpuRequestHeadroomMillicores --cpuRequestMillicores --date --gbSeconds --kind --maxCpuMillicores --maxMemoryBytes --memoryLimitBytes --memoryPeakUtilization --memoryRequestBytes --memoryRequestHeadroomBytes --namespaceId --replicas --resourceId --runtimeSeconds --sampleCount -``` - ### Get a resourceUtilization by id ```bash diff --git a/.agents/skills/cli-compute/references/resources-health.md b/.agents/skills/cli-compute/references/resources-health.md index e177136cb3..9f78336622 100644 --- a/.agents/skills/cli-compute/references/resources-health.md +++ b/.agents/skills/cli-compute/references/resources-health.md @@ -12,7 +12,6 @@ csdk resources-health list --where.. --orderBy csdk resources-health list --limit 10 --after csdk resources-health find-first --where.. csdk resources-health get --id -csdk resources-health create --annotations --cpuLimitMillicores --cpuRequestMillicores --createdBy --createdByPrincipal --databaseId --errorCount --imageRef --installationId --integrations --kind --labels --lastError --lastHeartbeatAt --memoryLimitBytes --memoryRequestBytes --name --namespaceId --realm --replicas --requiredConfigs --requiredSecrets --resourceDefinitionId --slug --spec --status --statusDetail --statusObserved --storageClass --storageSizeBytes --storageTotalBytes --updatedBy --updatedByPrincipal csdk resources-health update --id [--annotations ] [--cpuLimitMillicores ] [--cpuRequestMillicores ] [--createdBy ] [--createdByPrincipal ] [--databaseId ] [--errorCount ] [--imageRef ] [--installationId ] [--integrations ] [--kind ] [--labels ] [--lastError ] [--lastHeartbeatAt ] [--memoryLimitBytes ] [--memoryRequestBytes ] [--name ] [--namespaceId ] [--realm ] [--replicas ] [--requiredConfigs ] [--requiredSecrets ] [--resourceDefinitionId ] [--slug ] [--spec ] [--status ] [--statusDetail ] [--statusObserved ] [--storageClass ] [--storageSizeBytes ] [--storageTotalBytes ] [--updatedBy ] [--updatedByPrincipal ] csdk resources-health delete --id ``` @@ -55,12 +54,6 @@ csdk resources-health list --select id,id csdk resources-health list --where.id.equalTo --orderBy ID_ASC ``` -### Create a resourcesHealth - -```bash -csdk resources-health create --annotations --cpuLimitMillicores --cpuRequestMillicores --createdBy --createdByPrincipal --databaseId --errorCount --imageRef --installationId --integrations --kind --labels --lastError --lastHeartbeatAt --memoryLimitBytes --memoryRequestBytes --name --namespaceId --realm --replicas --requiredConfigs --requiredSecrets --resourceDefinitionId --slug --spec --status --statusDetail --statusObserved --storageClass --storageSizeBytes --storageTotalBytes --updatedBy --updatedByPrincipal -``` - ### Get a resourcesHealth by id ```bash diff --git a/.agents/skills/cli-compute/references/resources-requirements-state.md b/.agents/skills/cli-compute/references/resources-requirements-state.md index e66d666603..bd8d5db7ef 100644 --- a/.agents/skills/cli-compute/references/resources-requirements-state.md +++ b/.agents/skills/cli-compute/references/resources-requirements-state.md @@ -12,7 +12,6 @@ csdk resources-requirements-state list --where.. --orderBy csdk resources-requirements-state find-first --where.. csdk resources-requirements-state get --id -csdk resources-requirements-state create --configHash --configObjectName --requirementsHash --resourceId --secretsHash --secretsObjectName --slug csdk resources-requirements-state update --id [--configHash ] [--configObjectName ] [--requirementsHash ] [--resourceId ] [--secretsHash ] [--secretsObjectName ] [--slug ] csdk resources-requirements-state delete --id ``` @@ -55,12 +54,6 @@ csdk resources-requirements-state list --select id,id csdk resources-requirements-state list --where.id.equalTo --orderBy ID_ASC ``` -### Create a resourcesRequirementsState - -```bash -csdk resources-requirements-state create --configHash --configObjectName --requirementsHash --resourceId --secretsHash --secretsObjectName --slug -``` - ### Get a resourcesRequirementsState by id ```bash diff --git a/.agents/skills/cli-compute/references/resources-resolved-requirement.md b/.agents/skills/cli-compute/references/resources-resolved-requirement.md index b5d7c57a79..6831b204e2 100644 --- a/.agents/skills/cli-compute/references/resources-resolved-requirement.md +++ b/.agents/skills/cli-compute/references/resources-resolved-requirement.md @@ -12,7 +12,6 @@ csdk resources-resolved-requirement list --where.. --orderBy csdk resources-resolved-requirement list --limit 10 --after csdk resources-resolved-requirement find-first --where.. csdk resources-resolved-requirement get --id -csdk resources-resolved-requirement create --atomId --configObjectName --name --namespaceId --present --realm --required --requirementKind --resourceId --secretsObjectName --slug csdk resources-resolved-requirement update --id [--atomId ] [--configObjectName ] [--name ] [--namespaceId ] [--present ] [--realm ] [--required ] [--requirementKind ] [--resourceId ] [--secretsObjectName ] [--slug ] csdk resources-resolved-requirement delete --id ``` @@ -55,12 +54,6 @@ csdk resources-resolved-requirement list --select id,id csdk resources-resolved-requirement list --where.id.equalTo --orderBy ID_ASC ``` -### Create a resourcesResolvedRequirement - -```bash -csdk resources-resolved-requirement create --atomId --configObjectName --name --namespaceId --present --realm --required --requirementKind --resourceId --secretsObjectName --slug -``` - ### Get a resourcesResolvedRequirement by id ```bash diff --git a/.agents/skills/cli-compute/references/service-binding.md b/.agents/skills/cli-compute/references/service-binding.md new file mode 100644 index 0000000000..b50ecfe71c --- /dev/null +++ b/.agents/skills/cli-compute/references/service-binding.md @@ -0,0 +1,68 @@ +# serviceBinding + + + +CRUD operations for ServiceBinding records via csdk CLI + +## Usage + +```bash +csdk service-binding list +csdk service-binding list --where.. --orderBy +csdk service-binding list --limit 10 --after +csdk service-binding find-first --where.. +csdk service-binding get --id +csdk service-binding create --databaseId --installationId --installationScope --kind --namespaceId [--createdBy ] [--createdByPrincipal ] [--lastError ] [--metadata ] [--observedHost ] [--realm ] [--status ] [--updatedBy ] [--updatedByPrincipal ] +csdk service-binding update --id [--createdBy ] [--createdByPrincipal ] [--databaseId ] [--installationId ] [--installationScope ] [--kind ] [--lastError ] [--metadata ] [--namespaceId ] [--observedHost ] [--realm ] [--status ] [--updatedBy ] [--updatedByPrincipal ] +csdk service-binding delete --id +``` + +## Examples + +### List serviceBinding records + +```bash +csdk service-binding list +``` + +### List serviceBinding records with pagination + +```bash +csdk service-binding list --limit 10 --offset 0 +``` + +### List serviceBinding records with cursor pagination + +```bash +csdk service-binding list --limit 10 --after +``` + +### Find first matching serviceBinding + +```bash +csdk service-binding find-first --where.id.equalTo +``` + +### List serviceBinding records with field selection + +```bash +csdk service-binding list --select id,id +``` + +### List serviceBinding records with filtering and ordering + +```bash +csdk service-binding list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a serviceBinding + +```bash +csdk service-binding create --databaseId --installationId --installationScope --kind --namespaceId [--createdBy ] [--createdByPrincipal ] [--lastError ] [--metadata ] [--observedHost ] [--realm ] [--status ] [--updatedBy ] [--updatedByPrincipal ] +``` + +### Get a serviceBinding by id + +```bash +csdk service-binding get --id +``` diff --git a/.agents/skills/cli-config/references/app-internal-secret.md b/.agents/skills/cli-config/references/app-internal-secret.md index 6f4f9f5cfe..7ede417e61 100644 --- a/.agents/skills/cli-config/references/app-internal-secret.md +++ b/.agents/skills/cli-config/references/app-internal-secret.md @@ -12,7 +12,6 @@ csdk app-internal-secret list --where.. --orderBy csdk app-internal-secret list --limit 10 --after csdk app-internal-secret find-first --where.. csdk app-internal-secret get --id -csdk app-internal-secret create --annotations --description --labels --name --realm --retiredAt --rotatedAt csdk app-internal-secret update --id [--annotations ] [--description ] [--labels ] [--name ] [--realm ] [--retiredAt ] [--rotatedAt ] csdk app-internal-secret delete --id ``` @@ -55,12 +54,6 @@ csdk app-internal-secret list --select id,id csdk app-internal-secret list --where.id.equalTo --orderBy ID_ASC ``` -### Create a appInternalSecret - -```bash -csdk app-internal-secret create --annotations --description --labels --name --realm --retiredAt --rotatedAt -``` - ### Get a appInternalSecret by id ```bash diff --git a/.agents/skills/cli-config/references/internal-secret.md b/.agents/skills/cli-config/references/internal-secret.md index 397696c82b..7535ad700c 100644 --- a/.agents/skills/cli-config/references/internal-secret.md +++ b/.agents/skills/cli-config/references/internal-secret.md @@ -12,7 +12,6 @@ csdk internal-secret list --where.. --orderBy csdk internal-secret list --limit 10 --after csdk internal-secret find-first --where.. csdk internal-secret get --id -csdk internal-secret create --annotations --databaseId --description --labels --name --realm --retiredAt --rotatedAt csdk internal-secret update --id [--annotations ] [--databaseId ] [--description ] [--labels ] [--name ] [--realm ] [--retiredAt ] [--rotatedAt ] csdk internal-secret delete --id ``` @@ -55,12 +54,6 @@ csdk internal-secret list --select id,id csdk internal-secret list --where.id.equalTo --orderBy ID_ASC ``` -### Create a internalSecret - -```bash -csdk internal-secret create --annotations --databaseId --description --labels --name --realm --retiredAt --rotatedAt -``` - ### Get a internalSecret by id ```bash diff --git a/.agents/skills/cli-config/references/platform-internal-secret.md b/.agents/skills/cli-config/references/platform-internal-secret.md index 4c61905356..3c805baa56 100644 --- a/.agents/skills/cli-config/references/platform-internal-secret.md +++ b/.agents/skills/cli-config/references/platform-internal-secret.md @@ -12,7 +12,6 @@ csdk platform-internal-secret list --where.. --orderBy csdk platform-internal-secret find-first --where.. csdk platform-internal-secret get --id -csdk platform-internal-secret create --annotations --description --labels --name --realm --retiredAt --rotatedAt csdk platform-internal-secret update --id [--annotations ] [--description ] [--labels ] [--name ] [--realm ] [--retiredAt ] [--rotatedAt ] csdk platform-internal-secret delete --id ``` @@ -55,12 +54,6 @@ csdk platform-internal-secret list --select id,id csdk platform-internal-secret list --where.id.equalTo --orderBy ID_ASC ``` -### Create a platformInternalSecret - -```bash -csdk platform-internal-secret create --annotations --description --labels --name --realm --retiredAt --rotatedAt -``` - ### Get a platformInternalSecret by id ```bash diff --git a/.agents/skills/cli-config/references/platform-secret.md b/.agents/skills/cli-config/references/platform-secret.md index b2fb25d0e6..2b2d2e37a1 100644 --- a/.agents/skills/cli-config/references/platform-secret.md +++ b/.agents/skills/cli-config/references/platform-secret.md @@ -12,7 +12,6 @@ csdk platform-secret list --where.. --orderBy csdk platform-secret list --limit 10 --after csdk platform-secret find-first --where.. csdk platform-secret get --id -csdk platform-secret create --annotations --description --labels --name --namespaceId --provider --realm --retiredAt --rotatedAt csdk platform-secret update --id [--annotations ] [--description ] [--labels ] [--name ] [--namespaceId ] [--provider ] [--realm ] [--retiredAt ] [--rotatedAt ] csdk platform-secret delete --id ``` @@ -55,12 +54,6 @@ csdk platform-secret list --select id,id csdk platform-secret list --where.id.equalTo --orderBy ID_ASC ``` -### Create a platformSecret - -```bash -csdk platform-secret create --annotations --description --labels --name --namespaceId --provider --realm --retiredAt --rotatedAt -``` - ### Get a platformSecret by id ```bash diff --git a/.agents/skills/cli-config/references/secret.md b/.agents/skills/cli-config/references/secret.md index 78363f4ea4..e26ee321c8 100644 --- a/.agents/skills/cli-config/references/secret.md +++ b/.agents/skills/cli-config/references/secret.md @@ -12,7 +12,6 @@ csdk secret list --where.. --orderBy csdk secret list --limit 10 --after csdk secret find-first --where.. csdk secret get --id -csdk secret create --annotations --databaseId --description --labels --name --namespaceId --provider --realm --retiredAt --rotatedAt csdk secret update --id [--annotations ] [--databaseId ] [--description ] [--labels ] [--name ] [--namespaceId ] [--provider ] [--realm ] [--retiredAt ] [--rotatedAt ] csdk secret delete --id ``` @@ -55,12 +54,6 @@ csdk secret list --select id,id csdk secret list --where.id.equalTo --orderBy ID_ASC ``` -### Create a secret - -```bash -csdk secret create --annotations --databaseId --description --labels --name --namespaceId --provider --realm --retiredAt --rotatedAt -``` - ### Get a secret by id ```bash diff --git a/.agents/skills/cli-infra/references/platform-infra-get-all-tree-nodes-record.md b/.agents/skills/cli-infra/references/platform-infra-get-all-tree-nodes-record.md index d39b53c3c8..58a6ee1c91 100644 --- a/.agents/skills/cli-infra/references/platform-infra-get-all-tree-nodes-record.md +++ b/.agents/skills/cli-infra/references/platform-infra-get-all-tree-nodes-record.md @@ -12,7 +12,6 @@ csdk platform-infra-get-all-tree-nodes-record list --where.. csdk platform-infra-get-all-tree-nodes-record list --limit 10 --after csdk platform-infra-get-all-tree-nodes-record find-first --where.. csdk platform-infra-get-all-tree-nodes-record get --id -csdk platform-infra-get-all-tree-nodes-record create --data --path csdk platform-infra-get-all-tree-nodes-record update --id [--data ] [--path ] csdk platform-infra-get-all-tree-nodes-record delete --id ``` @@ -55,12 +54,6 @@ csdk platform-infra-get-all-tree-nodes-record list --select id,id csdk platform-infra-get-all-tree-nodes-record list --where.id.equalTo --orderBy ID_ASC ``` -### Create a platformInfraGetAllTreeNodesRecord - -```bash -csdk platform-infra-get-all-tree-nodes-record create --data --path -``` - ### Get a platformInfraGetAllTreeNodesRecord by id ```bash diff --git a/.agents/skills/cli-modules/references/blueprint-construction.md b/.agents/skills/cli-modules/references/blueprint-construction.md index 697a91ecc1..94c05e5185 100644 --- a/.agents/skills/cli-modules/references/blueprint-construction.md +++ b/.agents/skills/cli-modules/references/blueprint-construction.md @@ -12,8 +12,8 @@ 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 [--constructedAt ] [--constructedDefinition ] [--schemaId ] [--status ] [--tableMap ] -csdk blueprint-construction update --id [--blueprintId ] [--constructedAt ] [--constructedDefinition ] [--databaseId ] [--schemaId ] [--status ] [--tableMap ] +csdk blueprint-construction create --blueprintId --databaseId [--constructedAt ] [--constructedDefinition ] [--error ] [--schemaId ] [--status ] [--tableMap ] +csdk blueprint-construction update --id [--blueprintId ] [--constructedAt ] [--constructedDefinition ] [--databaseId ] [--error ] [--schemaId ] [--status ] [--tableMap ] csdk blueprint-construction delete --id ``` @@ -58,7 +58,7 @@ csdk blueprint-construction list --where.id.equalTo --orderBy ID_ASC ### Create a blueprintConstruction ```bash -csdk blueprint-construction create --blueprintId --databaseId [--constructedAt ] [--constructedDefinition ] [--schemaId ] [--status ] [--tableMap ] +csdk blueprint-construction create --blueprintId --databaseId [--constructedAt ] [--constructedDefinition ] [--error ] [--schemaId ] [--status ] [--tableMap ] ``` ### Get a blueprintConstruction by id diff --git a/.agents/skills/cli-modules/references/construct-blueprint.md b/.agents/skills/cli-modules/references/construct-blueprint.md index 9ff5c9623f..b59041cfc5 100644 --- a/.agents/skills/cli-modules/references/construct-blueprint.md +++ b/.agents/skills/cli-modules/references/construct-blueprint.md @@ -2,7 +2,7 @@ -Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). A table entry either names its table (table_name plus optional schema_name) or references one an installed module generated ("module": {"type": "agent", "scope": "org", "table": "message"}), which resolves through the module row's recorded table ids and raises when it matches nothing instead of creating an empty table. After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID. A failure raises its coded error to the caller and rolls back the whole construction, including the construction record. +Requests a build of a blueprint: snapshots its definition into a pending blueprint_construction row, enqueues the blueprint:construct job that runs metaschema_private.construct_blueprint_run on it, and returns the construction id immediately. Poll the row: pending -> constructing -> constructed (table_map populated) or failed (error holds the coded error). schema_id is the default schema for tables without an explicit schema_name. ## Usage diff --git a/.agents/skills/cli-modules/references/db-usage-module.md b/.agents/skills/cli-modules/references/db-usage-module.md index a365281b88..4e864fb2f6 100644 --- a/.agents/skills/cli-modules/references/db-usage-module.md +++ b/.agents/skills/cli-modules/references/db-usage-module.md @@ -12,8 +12,8 @@ csdk db-usage-module list --where.. --orderBy csdk db-usage-module list --limit 10 --after csdk db-usage-module find-first --where.. csdk db-usage-module get --id -csdk db-usage-module create --databaseId --scope [--apiName ] [--collectDbQueryStatsFunction ] [--collectDbTableStatsFunction ] [--defaultCapabilities ] [--entityField ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--queryStatsLogTableId ] [--queryStatsLogTableName ] [--queryStatsSummaryTableId ] [--queryStatsSummaryTableName ] [--retention ] [--rollupDbQueryStatsUsageSummaryFunction ] [--rollupDbTableStatsUsageSummaryFunction ] [--schemaId ] [--tableStatsLogTableId ] [--tableStatsLogTableName ] [--tableStatsSummaryTableId ] [--tableStatsSummaryTableName ] -csdk db-usage-module update --id [--apiName ] [--collectDbQueryStatsFunction ] [--collectDbTableStatsFunction ] [--databaseId ] [--defaultCapabilities ] [--entityField ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--queryStatsLogTableId ] [--queryStatsLogTableName ] [--queryStatsSummaryTableId ] [--queryStatsSummaryTableName ] [--retention ] [--rollupDbQueryStatsUsageSummaryFunction ] [--rollupDbTableStatsUsageSummaryFunction ] [--schemaId ] [--scope ] [--tableStatsLogTableId ] [--tableStatsLogTableName ] [--tableStatsSummaryTableId ] [--tableStatsSummaryTableName ] +csdk db-usage-module create --databaseId --scope [--apiName ] [--collectDbQueryStatsFunction ] [--collectDbTableStatsFunction ] [--defaultCapabilities ] [--entityField ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--queryStatsLogTableId ] [--queryStatsLogTableName ] [--queryStatsSummaryTableId ] [--queryStatsSummaryTableName ] [--readDbQueryStatsUsagePeriodFunction ] [--readDbTableStatsUsagePeriodFunction ] [--retention ] [--rollupDbQueryStatsUsageSummaryFunction ] [--rollupDbTableStatsUsageSummaryFunction ] [--schemaId ] [--tableStatsLogTableId ] [--tableStatsLogTableName ] [--tableStatsSummaryTableId ] [--tableStatsSummaryTableName ] +csdk db-usage-module update --id [--apiName ] [--collectDbQueryStatsFunction ] [--collectDbTableStatsFunction ] [--databaseId ] [--defaultCapabilities ] [--entityField ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--queryStatsLogTableId ] [--queryStatsLogTableName ] [--queryStatsSummaryTableId ] [--queryStatsSummaryTableName ] [--readDbQueryStatsUsagePeriodFunction ] [--readDbTableStatsUsagePeriodFunction ] [--retention ] [--rollupDbQueryStatsUsageSummaryFunction ] [--rollupDbTableStatsUsageSummaryFunction ] [--schemaId ] [--scope ] [--tableStatsLogTableId ] [--tableStatsLogTableName ] [--tableStatsSummaryTableId ] [--tableStatsSummaryTableName ] csdk db-usage-module delete --id ``` @@ -58,7 +58,7 @@ csdk db-usage-module list --where.id.equalTo --orderBy ID_ASC ### Create a dbUsageModule ```bash -csdk db-usage-module create --databaseId --scope [--apiName ] [--collectDbQueryStatsFunction ] [--collectDbTableStatsFunction ] [--defaultCapabilities ] [--entityField ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--queryStatsLogTableId ] [--queryStatsLogTableName ] [--queryStatsSummaryTableId ] [--queryStatsSummaryTableName ] [--retention ] [--rollupDbQueryStatsUsageSummaryFunction ] [--rollupDbTableStatsUsageSummaryFunction ] [--schemaId ] [--tableStatsLogTableId ] [--tableStatsLogTableName ] [--tableStatsSummaryTableId ] [--tableStatsSummaryTableName ] +csdk db-usage-module create --databaseId --scope [--apiName ] [--collectDbQueryStatsFunction ] [--collectDbTableStatsFunction ] [--defaultCapabilities ] [--entityField ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--queryStatsLogTableId ] [--queryStatsLogTableName ] [--queryStatsSummaryTableId ] [--queryStatsSummaryTableName ] [--readDbQueryStatsUsagePeriodFunction ] [--readDbTableStatsUsagePeriodFunction ] [--retention ] [--rollupDbQueryStatsUsageSummaryFunction ] [--rollupDbTableStatsUsageSummaryFunction ] [--schemaId ] [--tableStatsLogTableId ] [--tableStatsLogTableName ] [--tableStatsSummaryTableId ] [--tableStatsSummaryTableName ] ``` ### Get a dbUsageModule by id diff --git a/.agents/skills/cli-modules/references/domain-module.md b/.agents/skills/cli-modules/references/domain-module.md index dec550e2ce..08f695f101 100644 --- a/.agents/skills/cli-modules/references/domain-module.md +++ b/.agents/skills/cli-modules/references/domain-module.md @@ -12,8 +12,8 @@ csdk domain-module list --where.. --orderBy csdk domain-module list --limit 10 --after csdk domain-module find-first --where.. csdk domain-module get --id -csdk domain-module create --databaseId --scope [--apiName ] [--catalogModuleId ] [--defaultCapabilities ] [--domainEventsTableId ] [--domainEventsTableName ] [--domainVerificationsTableId ] [--domainVerificationsTableName ] [--domainsTableId ] [--domainsTableName ] [--entityField ] [--entityTableId ] [--managedDomainsTableId ] [--managedDomainsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] -csdk domain-module update --id [--apiName ] [--catalogModuleId ] [--databaseId ] [--defaultCapabilities ] [--domainEventsTableId ] [--domainEventsTableName ] [--domainVerificationsTableId ] [--domainVerificationsTableName ] [--domainsTableId ] [--domainsTableName ] [--entityField ] [--entityTableId ] [--managedDomainsTableId ] [--managedDomainsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] [--scope ] +csdk domain-module create --databaseId --scope [--apiName ] [--catalogModuleId ] [--defaultCapabilities ] [--defaultReservedSubdomains ] [--domainEventsTableId ] [--domainEventsTableName ] [--domainVerificationsTableId ] [--domainVerificationsTableName ] [--domainsTableId ] [--domainsTableName ] [--entityField ] [--entityTableId ] [--managedDomainsTableId ] [--managedDomainsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--reservedSubdomainsTableId ] [--reservedSubdomainsTableName ] [--schemaId ] [--sweepUnverifiedDomainsFunction ] +csdk domain-module update --id [--apiName ] [--catalogModuleId ] [--databaseId ] [--defaultCapabilities ] [--defaultReservedSubdomains ] [--domainEventsTableId ] [--domainEventsTableName ] [--domainVerificationsTableId ] [--domainVerificationsTableName ] [--domainsTableId ] [--domainsTableName ] [--entityField ] [--entityTableId ] [--managedDomainsTableId ] [--managedDomainsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--reservedSubdomainsTableId ] [--reservedSubdomainsTableName ] [--schemaId ] [--scope ] [--sweepUnverifiedDomainsFunction ] csdk domain-module delete --id ``` @@ -58,7 +58,7 @@ csdk domain-module list --where.id.equalTo --orderBy ID_ASC ### Create a domainModule ```bash -csdk domain-module create --databaseId --scope [--apiName ] [--catalogModuleId ] [--defaultCapabilities ] [--domainEventsTableId ] [--domainEventsTableName ] [--domainVerificationsTableId ] [--domainVerificationsTableName ] [--domainsTableId ] [--domainsTableName ] [--entityField ] [--entityTableId ] [--managedDomainsTableId ] [--managedDomainsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--schemaId ] +csdk domain-module create --databaseId --scope [--apiName ] [--catalogModuleId ] [--defaultCapabilities ] [--defaultReservedSubdomains ] [--domainEventsTableId ] [--domainEventsTableName ] [--domainVerificationsTableId ] [--domainVerificationsTableName ] [--domainsTableId ] [--domainsTableName ] [--entityField ] [--entityTableId ] [--managedDomainsTableId ] [--managedDomainsTableName ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--reservedSubdomainsTableId ] [--reservedSubdomainsTableName ] [--schemaId ] [--sweepUnverifiedDomainsFunction ] ``` ### Get a domainModule by id diff --git a/.agents/skills/cli-modules/references/resource-module.md b/.agents/skills/cli-modules/references/resource-module.md index cefbafe76e..b63de11dcf 100644 --- a/.agents/skills/cli-modules/references/resource-module.md +++ b/.agents/skills/cli-modules/references/resource-module.md @@ -12,8 +12,8 @@ csdk resource-module list --where.. --orderBy csdk resource-module list --limit 10 --after csdk resource-module find-first --where.. csdk resource-module get --id -csdk resource-module create --databaseId --scope [--apiName ] [--builderBindingsTableId ] [--builderBindingsTableName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--installationStoreName ] [--merkleStoreModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--registryBindingsTableId ] [--registryBindingsTableName ] [--requirementsStateViewName ] [--resolvedRequirementsViewName ] [--resourceBillingRollupFunction ] [--resourceDefinitionsTableId ] [--resourceDefinitionsTableName ] [--resourceEventsTableId ] [--resourceEventsTableName ] [--resourceInstallationsTableId ] [--resourceInstallationsTableName ] [--resourceStatusChecksTableId ] [--resourceStatusChecksTableName ] [--resourceUsageLogTableId ] [--resourceUsageLogTableName ] [--resourceUsageSummaryTableId ] [--resourceUsageSummaryTableName ] [--resourcesTableId ] [--resourcesTableName ] [--rollupResourceUsageSummaryFunction ] [--schemaId ] -csdk resource-module update --id [--apiName ] [--builderBindingsTableId ] [--builderBindingsTableName ] [--databaseId ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--installationStoreName ] [--merkleStoreModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--registryBindingsTableId ] [--registryBindingsTableName ] [--requirementsStateViewName ] [--resolvedRequirementsViewName ] [--resourceBillingRollupFunction ] [--resourceDefinitionsTableId ] [--resourceDefinitionsTableName ] [--resourceEventsTableId ] [--resourceEventsTableName ] [--resourceInstallationsTableId ] [--resourceInstallationsTableName ] [--resourceStatusChecksTableId ] [--resourceStatusChecksTableName ] [--resourceUsageLogTableId ] [--resourceUsageLogTableName ] [--resourceUsageSummaryTableId ] [--resourceUsageSummaryTableName ] [--resourcesTableId ] [--resourcesTableName ] [--rollupResourceUsageSummaryFunction ] [--schemaId ] [--scope ] +csdk resource-module create --databaseId --scope [--apiName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--installationStoreName ] [--merkleStoreModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--registryBindingsTableId ] [--registryBindingsTableName ] [--requirementsStateViewName ] [--resolvedRequirementsViewName ] [--resourceBillingRollupFunction ] [--resourceDefinitionsTableId ] [--resourceDefinitionsTableName ] [--resourceEventsTableId ] [--resourceEventsTableName ] [--resourceInstallationsTableId ] [--resourceInstallationsTableName ] [--resourceStatusChecksTableId ] [--resourceStatusChecksTableName ] [--resourceUsageLogTableId ] [--resourceUsageLogTableName ] [--resourceUsageSummaryTableId ] [--resourceUsageSummaryTableName ] [--resourcesTableId ] [--resourcesTableName ] [--rollupResourceUsageSummaryFunction ] [--schemaId ] [--serviceBindingsTableId ] [--serviceBindingsTableName ] +csdk resource-module update --id [--apiName ] [--databaseId ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--installationStoreName ] [--merkleStoreModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--registryBindingsTableId ] [--registryBindingsTableName ] [--requirementsStateViewName ] [--resolvedRequirementsViewName ] [--resourceBillingRollupFunction ] [--resourceDefinitionsTableId ] [--resourceDefinitionsTableName ] [--resourceEventsTableId ] [--resourceEventsTableName ] [--resourceInstallationsTableId ] [--resourceInstallationsTableName ] [--resourceStatusChecksTableId ] [--resourceStatusChecksTableName ] [--resourceUsageLogTableId ] [--resourceUsageLogTableName ] [--resourceUsageSummaryTableId ] [--resourceUsageSummaryTableName ] [--resourcesTableId ] [--resourcesTableName ] [--rollupResourceUsageSummaryFunction ] [--schemaId ] [--scope ] [--serviceBindingsTableId ] [--serviceBindingsTableName ] csdk resource-module delete --id ``` @@ -58,7 +58,7 @@ csdk resource-module list --where.id.equalTo --orderBy ID_ASC ### Create a resourceModule ```bash -csdk resource-module create --databaseId --scope [--apiName ] [--builderBindingsTableId ] [--builderBindingsTableName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--installationStoreName ] [--merkleStoreModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--registryBindingsTableId ] [--registryBindingsTableName ] [--requirementsStateViewName ] [--resolvedRequirementsViewName ] [--resourceBillingRollupFunction ] [--resourceDefinitionsTableId ] [--resourceDefinitionsTableName ] [--resourceEventsTableId ] [--resourceEventsTableName ] [--resourceInstallationsTableId ] [--resourceInstallationsTableName ] [--resourceStatusChecksTableId ] [--resourceStatusChecksTableName ] [--resourceUsageLogTableId ] [--resourceUsageLogTableName ] [--resourceUsageSummaryTableId ] [--resourceUsageSummaryTableName ] [--resourcesTableId ] [--resourcesTableName ] [--rollupResourceUsageSummaryFunction ] [--schemaId ] +csdk resource-module create --databaseId --scope [--apiName ] [--defaultCapabilities ] [--entityField ] [--entityTableId ] [--installationStoreName ] [--merkleStoreModuleId ] [--namespaceModuleId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provisions ] [--publicSchemaName ] [--registryBindingsTableId ] [--registryBindingsTableName ] [--requirementsStateViewName ] [--resolvedRequirementsViewName ] [--resourceBillingRollupFunction ] [--resourceDefinitionsTableId ] [--resourceDefinitionsTableName ] [--resourceEventsTableId ] [--resourceEventsTableName ] [--resourceInstallationsTableId ] [--resourceInstallationsTableName ] [--resourceStatusChecksTableId ] [--resourceStatusChecksTableName ] [--resourceUsageLogTableId ] [--resourceUsageLogTableName ] [--resourceUsageSummaryTableId ] [--resourceUsageSummaryTableName ] [--resourcesTableId ] [--resourcesTableName ] [--rollupResourceUsageSummaryFunction ] [--schemaId ] [--serviceBindingsTableId ] [--serviceBindingsTableName ] ``` ### Get a resourceModule by id diff --git a/.agents/skills/cli-modules/references/storage-log-module.md b/.agents/skills/cli-modules/references/storage-log-module.md index 10fdfdd436..37121d12fb 100644 --- a/.agents/skills/cli-modules/references/storage-log-module.md +++ b/.agents/skills/cli-modules/references/storage-log-module.md @@ -12,8 +12,8 @@ csdk storage-log-module list --where.. --orderBy csdk storage-log-module list --limit 10 --after csdk storage-log-module find-first --where.. csdk storage-log-module get --id -csdk storage-log-module create --databaseId --scope [--apiName ] [--entityField ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--retention ] [--rollupFunctionName ] [--schemaId ] [--storageLogTableId ] [--storageLogTableName ] [--usageSummaryTableId ] [--usageSummaryTableName ] -csdk storage-log-module update --id [--apiName ] [--databaseId ] [--entityField ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--retention ] [--rollupFunctionName ] [--schemaId ] [--scope ] [--storageLogTableId ] [--storageLogTableName ] [--usageSummaryTableId ] [--usageSummaryTableName ] +csdk storage-log-module create --databaseId --scope [--apiName ] [--entityField ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--readStorageUsagePeriodFunction ] [--retention ] [--rollupFunctionName ] [--schemaId ] [--storageLogTableId ] [--storageLogTableName ] [--usageSummaryTableId ] [--usageSummaryTableName ] +csdk storage-log-module update --id [--apiName ] [--databaseId ] [--entityField ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--readStorageUsagePeriodFunction ] [--retention ] [--rollupFunctionName ] [--schemaId ] [--scope ] [--storageLogTableId ] [--storageLogTableName ] [--usageSummaryTableId ] [--usageSummaryTableName ] csdk storage-log-module delete --id ``` @@ -58,7 +58,7 @@ csdk storage-log-module list --where.id.equalTo --orderBy ID_ASC ### Create a storageLogModule ```bash -csdk storage-log-module create --databaseId --scope [--apiName ] [--entityField ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--retention ] [--rollupFunctionName ] [--schemaId ] [--storageLogTableId ] [--storageLogTableName ] [--usageSummaryTableId ] [--usageSummaryTableName ] +csdk storage-log-module create --databaseId --scope [--apiName ] [--entityField ] [--interval ] [--prefix ] [--premake ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--publicSchemaName ] [--readStorageUsagePeriodFunction ] [--retention ] [--rollupFunctionName ] [--schemaId ] [--storageLogTableId ] [--storageLogTableName ] [--usageSummaryTableId ] [--usageSummaryTableName ] ``` ### Get a storageLogModule by id diff --git a/.agents/skills/cli-modules/references/storage-module.md b/.agents/skills/cli-modules/references/storage-module.md index 2e02f73639..031c8e5337 100644 --- a/.agents/skills/cli-modules/references/storage-module.md +++ b/.agents/skills/cli-modules/references/storage-module.md @@ -12,8 +12,8 @@ csdk storage-module list --where.. --orderBy csdk storage-module list --limit 10 --after csdk storage-module find-first --where.. csdk storage-module get --id -csdk storage-module create --databaseId --scope [--allowedOrigins ] [--apiName ] [--bucketsTableId ] [--bucketsTableName ] [--cacheTtlSeconds ] [--catalogModuleId ] [--confirmUploadDelay ] [--defaultCapabilities ] [--defaultMaxFileSize ] [--downloadUrlExpirySeconds ] [--endpoint ] [--entityField ] [--entityTableId ] [--fileEventsTableId ] [--filesTableId ] [--filesTableName ] [--hasAuditLog ] [--hasConfirmUpload ] [--hasContentHash ] [--hasCustomKeys ] [--hasPathShares ] [--hasVersioning ] [--key ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--maxFilenameLength ] [--pathSharesTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provider ] [--provisions ] [--publicSchemaName ] [--publicUrlPrefix ] [--region ] [--restrictReads ] [--schemaId ] [--uploadUrlExpirySeconds ] -csdk storage-module update --id [--allowedOrigins ] [--apiName ] [--bucketsTableId ] [--bucketsTableName ] [--cacheTtlSeconds ] [--catalogModuleId ] [--confirmUploadDelay ] [--databaseId ] [--defaultCapabilities ] [--defaultMaxFileSize ] [--downloadUrlExpirySeconds ] [--endpoint ] [--entityField ] [--entityTableId ] [--fileEventsTableId ] [--filesTableId ] [--filesTableName ] [--hasAuditLog ] [--hasConfirmUpload ] [--hasContentHash ] [--hasCustomKeys ] [--hasPathShares ] [--hasVersioning ] [--key ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--maxFilenameLength ] [--pathSharesTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provider ] [--provisions ] [--publicSchemaName ] [--publicUrlPrefix ] [--region ] [--restrictReads ] [--schemaId ] [--scope ] [--uploadUrlExpirySeconds ] +csdk storage-module create --databaseId --scope [--allowedOrigins ] [--apiName ] [--bucketsTableId ] [--bucketsTableName ] [--cacheTtlSeconds ] [--catalogModuleId ] [--confirmUploadDelay ] [--defaultCapabilities ] [--defaultMaxFileSize ] [--downloadUrlExpirySeconds ] [--endpoint ] [--entityField ] [--entityTableId ] [--fileEventsTableId ] [--filesTableId ] [--filesTableName ] [--hasAuditLog ] [--hasContentHash ] [--hasCustomKeys ] [--hasPathShares ] [--hasVersioning ] [--key ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--maxFilenameLength ] [--pathSharesTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provider ] [--provisions ] [--publicSchemaName ] [--publicUrlPrefix ] [--region ] [--restrictReads ] [--schemaId ] [--uploadUrlExpirySeconds ] +csdk storage-module update --id [--allowedOrigins ] [--apiName ] [--bucketsTableId ] [--bucketsTableName ] [--cacheTtlSeconds ] [--catalogModuleId ] [--confirmUploadDelay ] [--databaseId ] [--defaultCapabilities ] [--defaultMaxFileSize ] [--downloadUrlExpirySeconds ] [--endpoint ] [--entityField ] [--entityTableId ] [--fileEventsTableId ] [--filesTableId ] [--filesTableName ] [--hasAuditLog ] [--hasContentHash ] [--hasCustomKeys ] [--hasPathShares ] [--hasVersioning ] [--key ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--maxFilenameLength ] [--pathSharesTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provider ] [--provisions ] [--publicSchemaName ] [--publicUrlPrefix ] [--region ] [--restrictReads ] [--schemaId ] [--scope ] [--uploadUrlExpirySeconds ] csdk storage-module delete --id ``` @@ -58,7 +58,7 @@ csdk storage-module list --where.id.equalTo --orderBy ID_ASC ### Create a storageModule ```bash -csdk storage-module create --databaseId --scope [--allowedOrigins ] [--apiName ] [--bucketsTableId ] [--bucketsTableName ] [--cacheTtlSeconds ] [--catalogModuleId ] [--confirmUploadDelay ] [--defaultCapabilities ] [--defaultMaxFileSize ] [--downloadUrlExpirySeconds ] [--endpoint ] [--entityField ] [--entityTableId ] [--fileEventsTableId ] [--filesTableId ] [--filesTableName ] [--hasAuditLog ] [--hasConfirmUpload ] [--hasContentHash ] [--hasCustomKeys ] [--hasPathShares ] [--hasVersioning ] [--key ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--maxFilenameLength ] [--pathSharesTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provider ] [--provisions ] [--publicSchemaName ] [--publicUrlPrefix ] [--region ] [--restrictReads ] [--schemaId ] [--uploadUrlExpirySeconds ] +csdk storage-module create --databaseId --scope [--allowedOrigins ] [--apiName ] [--bucketsTableId ] [--bucketsTableName ] [--cacheTtlSeconds ] [--catalogModuleId ] [--confirmUploadDelay ] [--defaultCapabilities ] [--defaultMaxFileSize ] [--downloadUrlExpirySeconds ] [--endpoint ] [--entityField ] [--entityTableId ] [--fileEventsTableId ] [--filesTableId ] [--filesTableName ] [--hasAuditLog ] [--hasContentHash ] [--hasCustomKeys ] [--hasPathShares ] [--hasVersioning ] [--key ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--maxFilenameLength ] [--pathSharesTableId ] [--policies ] [--prefix ] [--privateApiName ] [--privateSchemaId ] [--privateSchemaName ] [--provider ] [--provisions ] [--publicSchemaName ] [--publicUrlPrefix ] [--region ] [--restrictReads ] [--schemaId ] [--uploadUrlExpirySeconds ] ``` ### Get a storageModule by id diff --git a/.agents/skills/cli-objects/references/get-all-tree-nodes-record.md b/.agents/skills/cli-objects/references/get-all-tree-nodes-record.md index 716547df9a..c4bf91bf6a 100644 --- a/.agents/skills/cli-objects/references/get-all-tree-nodes-record.md +++ b/.agents/skills/cli-objects/references/get-all-tree-nodes-record.md @@ -12,7 +12,6 @@ csdk get-all-tree-nodes-record list --where.. --orderBy csdk get-all-tree-nodes-record find-first --where.. csdk get-all-tree-nodes-record get --id -csdk get-all-tree-nodes-record create --data --path csdk get-all-tree-nodes-record update --id [--data ] [--path ] csdk get-all-tree-nodes-record delete --id ``` @@ -55,12 +54,6 @@ csdk get-all-tree-nodes-record list --select id,id csdk get-all-tree-nodes-record list --where.id.equalTo --orderBy ID_ASC ``` -### Create a getAllTreeNodesRecord - -```bash -csdk get-all-tree-nodes-record create --data --path -``` - ### Get a getAllTreeNodesRecord by id ```bash diff --git a/.agents/skills/cli-remote/SKILL.md b/.agents/skills/cli-remote/SKILL.md index 466f90a757..218296a606 100644 --- a/.agents/skills/cli-remote/SKILL.md +++ b/.agents/skills/cli-remote/SKILL.md @@ -1,13 +1,13 @@ --- name: cli-remote -description: CLI tool (csdk) for the remote API — provides CRUD commands for 3 tables and 2 custom operations +description: CLI tool (csdk) for the remote API — provides CRUD commands for 3 tables and 3 custom operations --- # cli-remote -CLI tool (csdk) for the remote API — provides CRUD commands for 3 tables and 2 custom operations +CLI tool (csdk) for the remote API — provides CRUD commands for 3 tables and 3 custom operations ## Usage @@ -59,5 +59,6 @@ See the `references/` directory for detailed per-entity API documentation: - [machine](references/machine.md) - [machine-message](references/machine-message.md) - [machine-session](references/machine-session.md) +- [current-database-id](references/current-database-id.md) - [machines-enroll](references/machines-enroll.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/cli-remote/references/current-database-id.md b/.agents/skills/cli-remote/references/current-database-id.md new file mode 100644 index 0000000000..a4414dd70e --- /dev/null +++ b/.agents/skills/cli-remote/references/current-database-id.md @@ -0,0 +1,19 @@ +# currentDatabaseId + + + +Execute the currentDatabaseId query + +## Usage + +```bash +csdk current-database-id +``` + +## Examples + +### Run currentDatabaseId + +```bash +csdk current-database-id +``` diff --git a/.agents/skills/cli-storage/references/file.md b/.agents/skills/cli-storage/references/file.md index 1c0a83b556..2218b170ea 100644 --- a/.agents/skills/cli-storage/references/file.md +++ b/.agents/skills/cli-storage/references/file.md @@ -12,8 +12,7 @@ csdk file list --where.. --orderBy csdk file list --limit 10 --after csdk file find-first --where.. csdk file get --id -csdk file create --actorId --bucketId --key --mimeType --size [--contentHash ] [--description ] [--expiryEnqueuedAt ] [--filename ] [--promotedAt ] [--status ] [--tags ] [--upload ] -csdk file update --id [--actorId ] [--bucketId ] [--contentHash ] [--description ] [--expiryEnqueuedAt ] [--filename ] [--key ] [--mimeType ] [--promotedAt ] [--size ] [--status ] [--tags ] [--upload ] +csdk file update --id [--actorId ] [--bucketId ] [--contentHash ] [--databaseId ] [--description ] [--downloadUrl ] [--expiryEnqueuedAt ] [--filePath ] [--filename ] [--isPublic ] [--key ] [--mimeType ] [--promotedAt ] [--rejectionReason ] [--size ] [--status ] [--tags ] [--upload ] [--uploadUrl ] [--uploadVersions ] csdk file delete --id ``` @@ -55,12 +54,6 @@ csdk file list --select id,id csdk file list --where.id.equalTo --orderBy ID_ASC ``` -### Create a file - -```bash -csdk file create --actorId --bucketId --key --mimeType --size [--contentHash ] [--description ] [--expiryEnqueuedAt ] [--filename ] [--promotedAt ] [--status ] [--tags ] [--upload ] -``` - ### Get a file by id ```bash diff --git a/.agents/skills/cli-storage/references/platform-file.md b/.agents/skills/cli-storage/references/platform-file.md index d00baee1d4..b9eb886f25 100644 --- a/.agents/skills/cli-storage/references/platform-file.md +++ b/.agents/skills/cli-storage/references/platform-file.md @@ -12,8 +12,7 @@ csdk platform-file list --where.. --orderBy csdk platform-file list --limit 10 --after csdk platform-file find-first --where.. csdk platform-file get --id -csdk platform-file create --actorId --bucketId --key --mimeType --size [--contentHash ] [--description ] [--expiryEnqueuedAt ] [--filename ] [--promotedAt ] [--status ] [--tags ] [--upload ] -csdk platform-file update --id [--actorId ] [--bucketId ] [--contentHash ] [--description ] [--expiryEnqueuedAt ] [--filename ] [--key ] [--mimeType ] [--promotedAt ] [--size ] [--status ] [--tags ] [--upload ] +csdk platform-file update --id [--actorId ] [--bucketId ] [--contentHash ] [--description ] [--downloadUrl ] [--expiryEnqueuedAt ] [--filePath ] [--filename ] [--isPublic ] [--key ] [--mimeType ] [--promotedAt ] [--rejectionReason ] [--size ] [--status ] [--tags ] [--upload ] [--uploadUrl ] [--uploadVersions ] csdk platform-file delete --id ``` @@ -55,12 +54,6 @@ csdk platform-file list --select id,id csdk platform-file list --where.id.equalTo --orderBy ID_ASC ``` -### Create a platformFile - -```bash -csdk platform-file create --actorId --bucketId --key --mimeType --size [--contentHash ] [--description ] [--expiryEnqueuedAt ] [--filename ] [--promotedAt ] [--status ] [--tags ] [--upload ] -``` - ### Get a platformFile by id ```bash diff --git a/.agents/skills/cli-storage/references/upload-file.md b/.agents/skills/cli-storage/references/upload-file.md index a40c597d3d..41bde2c806 100644 --- a/.agents/skills/cli-storage/references/upload-file.md +++ b/.agents/skills/cli-storage/references/upload-file.md @@ -7,7 +7,7 @@ Upload a file: resolves the bucket by key, creates the file row, and returns a p ## Usage ```bash -csdk upload-file --input.bucketKey --input.contentHash --input.contentType --input.filename --input.isPublic --input.key --input.size +csdk upload-file --input.bucketKey --input.contentHash --input.contentType --input.databaseId --input.filename --input.isPublic --input.key --input.size ``` ## Examples @@ -15,5 +15,5 @@ csdk upload-file --input.bucketKey --input.contentHash --input ### Run uploadFile ```bash -csdk upload-file --input.bucketKey --input.contentHash --input.contentType --input.filename --input.isPublic --input.key --input.size +csdk upload-file --input.bucketKey --input.contentHash --input.contentType --input.databaseId --input.filename --input.isPublic --input.key --input.size ``` diff --git a/.agents/skills/cli-storage/references/upload-files.md b/.agents/skills/cli-storage/references/upload-files.md index a10316506f..5c98d1bb57 100644 --- a/.agents/skills/cli-storage/references/upload-files.md +++ b/.agents/skills/cli-storage/references/upload-files.md @@ -7,7 +7,7 @@ Upload multiple files: resolves the bucket by key, creates file rows, and return ## Usage ```bash -csdk upload-files --input.bucketKey --input.files --input.isPublic +csdk upload-files --input.bucketKey --input.databaseId --input.files --input.isPublic ``` ## Examples @@ -15,5 +15,5 @@ csdk upload-files --input.bucketKey --input.files --input.files --input.isPublic +csdk upload-files --input.bucketKey --input.databaseId --input.files --input.isPublic ``` diff --git a/.agents/skills/hooks-admin/references/my-pending-app-invites-record.md b/.agents/skills/hooks-admin/references/my-pending-app-invites-record.md index fa616cccf9..ffc196a22b 100644 --- a/.agents/skills/hooks-admin/references/my-pending-app-invites-record.md +++ b/.agents/skills/hooks-admin/references/my-pending-app-invites-record.md @@ -9,7 +9,6 @@ React Query hooks for MyPendingAppInvitesRecord data operations ```typescript useMyPendingAppInvitesQuery({ selection: { fields: { channel: true, createdAt: true, expiresAt: true, id: true, senderId: true } } }) useMyPendingAppInvitesRecordQuery({ id: '', selection: { fields: { channel: true, createdAt: true, expiresAt: true, id: true, senderId: true } } }) -useCreateMyPendingAppInvitesRecordMutation({ selection: { fields: { id: true } } }) useUpdateMyPendingAppInvitesRecordMutation({ selection: { fields: { id: true } } }) useDeleteMyPendingAppInvitesRecordMutation({}) ``` @@ -23,12 +22,3 @@ const { data, isLoading } = useMyPendingAppInvitesQuery({ selection: { fields: { channel: true, createdAt: true, expiresAt: true, id: true, senderId: true } }, }); ``` - -### Create a myPendingAppInvitesRecord - -```typescript -const { mutate } = useCreateMyPendingAppInvitesRecordMutation({ - selection: { fields: { id: true } }, -}); -mutate({ channel: '', expiresAt: '', senderId: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/my-pending-org-invites-record.md b/.agents/skills/hooks-admin/references/my-pending-org-invites-record.md index 5c04330cbb..8d62003322 100644 --- a/.agents/skills/hooks-admin/references/my-pending-org-invites-record.md +++ b/.agents/skills/hooks-admin/references/my-pending-org-invites-record.md @@ -9,7 +9,6 @@ React Query hooks for MyPendingOrgInvitesRecord data operations ```typescript useMyPendingOrgInvitesQuery({ selection: { fields: { channel: true, createdAt: true, entityId: true, expiresAt: true, id: true, senderId: true } } }) useMyPendingOrgInvitesRecordQuery({ id: '', selection: { fields: { channel: true, createdAt: true, entityId: true, expiresAt: true, id: true, senderId: true } } }) -useCreateMyPendingOrgInvitesRecordMutation({ selection: { fields: { id: true } } }) useUpdateMyPendingOrgInvitesRecordMutation({ selection: { fields: { id: true } } }) useDeleteMyPendingOrgInvitesRecordMutation({}) ``` @@ -23,12 +22,3 @@ const { data, isLoading } = useMyPendingOrgInvitesQuery({ selection: { fields: { channel: true, createdAt: true, entityId: true, expiresAt: true, id: true, senderId: true } }, }); ``` - -### Create a myPendingOrgInvitesRecord - -```typescript -const { mutate } = useCreateMyPendingOrgInvitesRecordMutation({ - selection: { fields: { id: true } }, -}); -mutate({ channel: '', entityId: '', expiresAt: '', senderId: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/org-get-managers-record.md b/.agents/skills/hooks-admin/references/org-get-managers-record.md index 5dfe8a96ce..4553bca135 100644 --- a/.agents/skills/hooks-admin/references/org-get-managers-record.md +++ b/.agents/skills/hooks-admin/references/org-get-managers-record.md @@ -8,7 +8,6 @@ React Query hooks for OrgGetManagersRecord data operations ```typescript useOrgGetManagersQuery({ selection: { fields: { depth: true, userId: true } } }) -useCreateOrgGetManagersRecordMutation({ selection: { fields: { id: true } } }) ``` ## Examples @@ -20,12 +19,3 @@ const { data, isLoading } = useOrgGetManagersQuery({ selection: { fields: { depth: true, userId: true } }, }); ``` - -### Create a orgGetManagersRecord - -```typescript -const { mutate } = useCreateOrgGetManagersRecordMutation({ - selection: { fields: { id: true } }, -}); -mutate({ depth: '', userId: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/org-get-subordinates-record.md b/.agents/skills/hooks-admin/references/org-get-subordinates-record.md index 2fab2927f6..1b0bed475b 100644 --- a/.agents/skills/hooks-admin/references/org-get-subordinates-record.md +++ b/.agents/skills/hooks-admin/references/org-get-subordinates-record.md @@ -8,7 +8,6 @@ React Query hooks for OrgGetSubordinatesRecord data operations ```typescript useOrgGetSubordinatesQuery({ selection: { fields: { depth: true, userId: true } } }) -useCreateOrgGetSubordinatesRecordMutation({ selection: { fields: { id: true } } }) ``` ## Examples @@ -20,12 +19,3 @@ const { data, isLoading } = useOrgGetSubordinatesQuery({ selection: { fields: { depth: true, userId: true } }, }); ``` - -### Create a orgGetSubordinatesRecord - -```typescript -const { mutate } = useCreateOrgGetSubordinatesRecordMutation({ - selection: { fields: { id: true } }, -}); -mutate({ depth: '', userId: '' }); -``` diff --git a/.agents/skills/hooks-admin/references/org-member-profile.md b/.agents/skills/hooks-admin/references/org-member-profile.md index d3246c0ad5..de570a564c 100644 --- a/.agents/skills/hooks-admin/references/org-member-profile.md +++ b/.agents/skills/hooks-admin/references/org-member-profile.md @@ -7,8 +7,8 @@ Per-membership profile information visible to other entity members (display name ## Usage ```typescript -useOrgMemberProfilesQuery({ selection: { fields: { actorId: true, bio: true, createdAt: true, displayName: true, email: true, entityId: true, id: true, membershipId: true, profilePicture: true, title: true, updatedAt: true } } }) -useOrgMemberProfileQuery({ id: '', selection: { fields: { actorId: true, bio: true, createdAt: true, displayName: true, email: true, entityId: true, id: true, membershipId: true, profilePicture: true, title: true, updatedAt: true } } }) +useOrgMemberProfilesQuery({ selection: { fields: { actorId: true, bio: true, createdAt: true, displayName: true, email: true, entityId: true, id: true, membershipId: true, profilePicture: true, profilePictureUrl: true, profilePictureVersions: true, title: true, updatedAt: true } } }) +useOrgMemberProfileQuery({ id: '', selection: { fields: { actorId: true, bio: true, createdAt: true, displayName: true, email: true, entityId: true, id: true, membershipId: true, profilePicture: true, profilePictureUrl: true, profilePictureVersions: true, title: true, updatedAt: true } } }) useCreateOrgMemberProfileMutation({ selection: { fields: { id: true } } }) useUpdateOrgMemberProfileMutation({ selection: { fields: { id: true } } }) useDeleteOrgMemberProfileMutation({}) @@ -20,7 +20,7 @@ useDeleteOrgMemberProfileMutation({}) ```typescript const { data, isLoading } = useOrgMemberProfilesQuery({ - selection: { fields: { actorId: true, bio: true, createdAt: true, displayName: true, email: true, entityId: true, id: true, membershipId: true, profilePicture: true, title: true, updatedAt: true } }, + selection: { fields: { actorId: true, bio: true, createdAt: true, displayName: true, email: true, entityId: true, id: true, membershipId: true, profilePicture: true, profilePictureUrl: true, profilePictureVersions: true, title: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useOrgMemberProfilesQuery({ const { mutate } = useCreateOrgMemberProfileMutation({ selection: { fields: { id: true } }, }); -mutate({ actorId: '', bio: '', displayName: '', email: '', entityId: '', membershipId: '', profilePicture: '', title: '' }); +mutate({ actorId: '', bio: '', displayName: '', email: '', entityId: '', membershipId: '', profilePicture: '', profilePictureUrl: '', profilePictureVersions: '', title: '' }); ``` diff --git a/.agents/skills/hooks-agent/references/agent-resource.md b/.agents/skills/hooks-agent/references/agent-resource.md index 9e1943b71b..b1597a24fa 100644 --- a/.agents/skills/hooks-agent/references/agent-resource.md +++ b/.agents/skills/hooks-agent/references/agent-resource.md @@ -7,8 +7,8 @@ Unified skills and knowledge resources for agent retrieval ## Usage ```typescript -useAgentResourcesQuery({ selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) -useAgentResourceQuery({ id: '', selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useAgentResourcesQuery({ selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useAgentResourceQuery({ id: '', selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) useCreateAgentResourceMutation({ selection: { fields: { id: true } } }) useUpdateAgentResourceMutation({ selection: { fields: { id: true } } }) useDeleteAgentResourceMutation({}) @@ -20,7 +20,7 @@ useDeleteAgentResourceMutation({}) ```typescript const { data, isLoading } = useAgentResourcesQuery({ - selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useAgentResourcesQuery({ const { mutate } = useCreateAgentResourceMutation({ selection: { fields: { id: true } }, }); -mutate({ archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }); +mutate({ archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }); ``` diff --git a/.agents/skills/hooks-agent/references/platform-agent-resource.md b/.agents/skills/hooks-agent/references/platform-agent-resource.md index 949b128265..a8f89c9e16 100644 --- a/.agents/skills/hooks-agent/references/platform-agent-resource.md +++ b/.agents/skills/hooks-agent/references/platform-agent-resource.md @@ -7,8 +7,8 @@ Unified skills and knowledge resources for agent retrieval ## Usage ```typescript -usePlatformAgentResourcesQuery({ selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) -usePlatformAgentResourceQuery({ id: '', selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +usePlatformAgentResourcesQuery({ selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +usePlatformAgentResourceQuery({ id: '', selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) useCreatePlatformAgentResourceMutation({ selection: { fields: { id: true } } }) useUpdatePlatformAgentResourceMutation({ selection: { fields: { id: true } } }) useDeletePlatformAgentResourceMutation({}) @@ -20,7 +20,7 @@ useDeletePlatformAgentResourceMutation({}) ```typescript const { data, isLoading } = usePlatformAgentResourcesQuery({ - selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePlatformAgentResourcesQuery({ const { mutate } = useCreatePlatformAgentResourceMutation({ selection: { fields: { id: true } }, }); -mutate({ archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }); +mutate({ archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }); ``` diff --git a/.agents/skills/hooks-api/SKILL.md b/.agents/skills/hooks-api/SKILL.md index ddadf430a3..467ad85f2b 100644 --- a/.agents/skills/hooks-api/SKILL.md +++ b/.agents/skills/hooks-api/SKILL.md @@ -1,13 +1,13 @@ --- name: hooks-api -description: React Query hooks for the api API — provides typed query and mutation hooks for 90 tables and 49 custom operations +description: React Query hooks for the api API — provides typed query and mutation hooks for 91 tables and 45 custom operations --- # hooks-api -React Query hooks for the api API — provides typed query and mutation hooks for 90 tables and 49 custom operations +React Query hooks for the api API — provides typed query and mutation hooks for 91 tables and 45 custom operations ## Usage @@ -87,6 +87,7 @@ See the `references/` directory for detailed per-entity API documentation: - [platform-get-site-previews-record](references/platform-get-site-previews-record.md) - [platform-managed-domain](references/platform-managed-domain.md) - [platform-page](references/platform-page.md) +- [platform-reserved-subdomain](references/platform-reserved-subdomain.md) - [platform-site-app-link](references/platform-site-app-link.md) - [platform-site](references/platform-site.md) - [platform-site-deep-link](references/platform-site-deep-link.md) @@ -128,7 +129,6 @@ See the `references/` directory for detailed per-entity API documentation: - [view-rule](references/view-rule.md) - [view-table](references/view-table.md) - [webauthn-setting](references/webauthn-setting.md) -- [api-schema-names](references/api-schema-names.md) - [apply-registry-defaults](references/apply-registry-defaults.md) - [email-shared-account](references/email-shared-account.md) - [get-site-preview-commit](references/get-site-preview-commit.md) @@ -140,9 +140,6 @@ See the `references/` directory for detailed per-entity API documentation: - [platform-sites-deep-link-url](references/platform-sites-deep-link-url.md) - [platform-sites-site-origin](references/platform-sites-site-origin.md) - [platform-verify-site-preview-token](references/platform-verify-site-preview-token.md) -- [resolve-deep-link](references/resolve-deep-link.md) -- [resolve-route](references/resolve-route.md) -- [resolve-site-app-links](references/resolve-site-app-links.md) - [sites-deep-link-url](references/sites-deep-link-url.md) - [sites-site-origin](references/sites-site-origin.md) - [verify-site-preview-token](references/verify-site-preview-token.md) diff --git a/.agents/skills/hooks-api/references/api-setting.md b/.agents/skills/hooks-api/references/api-setting.md index 40fed017c8..272d769542 100644 --- a/.agents/skills/hooks-api/references/api-setting.md +++ b/.agents/skills/hooks-api/references/api-setting.md @@ -7,8 +7,8 @@ Per-API feature flag overrides; NULL columns inherit from database_settings ## Usage ```typescript -useApiSettingsQuery({ selection: { fields: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } } }) -useApiSettingQuery({ id: '', selection: { fields: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } } }) +useApiSettingsQuery({ selection: { fields: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } } }) +useApiSettingQuery({ id: '', selection: { fields: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } } }) useCreateApiSettingMutation({ selection: { fields: { id: true } } }) useUpdateApiSettingMutation({ selection: { fields: { id: true } } }) useDeleteApiSettingMutation({}) @@ -20,7 +20,7 @@ useDeleteApiSettingMutation({}) ```typescript const { data, isLoading } = useApiSettingsQuery({ - selection: { fields: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, + selection: { fields: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useApiSettingsQuery({ const { mutate } = useCreateApiSettingMutation({ selection: { fields: { id: true } }, }); -mutate({ apiId: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }); +mutate({ apiId: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }); ``` diff --git a/.agents/skills/hooks-api/references/api.md b/.agents/skills/hooks-api/references/api.md index 30167e3754..4db835068c 100644 --- a/.agents/skills/hooks-api/references/api.md +++ b/.agents/skills/hooks-api/references/api.md @@ -7,8 +7,8 @@ API surfaces exposed by this scope; publication makes a surface bindable from ot ## Usage ```typescript -useApisQuery({ selection: { fields: { anonRole: true, config: true, createdAt: true, databaseId: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } } }) -useApiQuery({ id: '', selection: { fields: { anonRole: true, config: true, createdAt: true, databaseId: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } } }) +useApisQuery({ selection: { fields: { anonRole: true, config: true, createdAt: true, databaseId: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } } }) +useApiQuery({ id: '', selection: { fields: { anonRole: true, config: true, createdAt: true, databaseId: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } } }) useCreateApiMutation({ selection: { fields: { id: true } } }) useUpdateApiMutation({ selection: { fields: { id: true } } }) useDeleteApiMutation({}) @@ -20,7 +20,7 @@ useDeleteApiMutation({}) ```typescript const { data, isLoading } = useApisQuery({ - selection: { fields: { anonRole: true, config: true, createdAt: true, databaseId: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }, + selection: { fields: { anonRole: true, config: true, createdAt: true, databaseId: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useApisQuery({ const { mutate } = useCreateApiMutation({ selection: { fields: { id: true } }, }); -mutate({ anonRole: '', config: '', databaseId: '', dbname: '', isPublished: '', name: '', roleName: '' }); +mutate({ anonRole: '', config: '', databaseId: '', isPublished: '', name: '', roleName: '', serviceHostname: '' }); ``` diff --git a/.agents/skills/hooks-api/references/ast-migration.md b/.agents/skills/hooks-api/references/ast-migration.md index 9e09f7c1c2..3d2cf951e8 100644 --- a/.agents/skills/hooks-api/references/ast-migration.md +++ b/.agents/skills/hooks-api/references/ast-migration.md @@ -9,7 +9,6 @@ React Query hooks for AstMigration data operations ```typescript useAstMigrationsQuery({ selection: { fields: { actionId: true, actionName: true, actorId: true, createdAt: true, databaseId: true, deploy: true, deploys: true, id: true, name: true, payload: true, requires: true, revert: true, verify: true } } }) useAstMigrationQuery({ id: '', selection: { fields: { actionId: true, actionName: true, actorId: true, createdAt: true, databaseId: true, deploy: true, deploys: true, id: true, name: true, payload: true, requires: true, revert: true, verify: true } } }) -useCreateAstMigrationMutation({ selection: { fields: { id: true } } }) useUpdateAstMigrationMutation({ selection: { fields: { id: true } } }) useDeleteAstMigrationMutation({}) ``` @@ -23,12 +22,3 @@ const { data, isLoading } = useAstMigrationsQuery({ selection: { fields: { actionId: true, actionName: true, actorId: true, createdAt: true, databaseId: true, deploy: true, deploys: true, id: true, name: true, payload: true, requires: true, revert: true, verify: true } }, }); ``` - -### Create a astMigration - -```typescript -const { mutate } = useCreateAstMigrationMutation({ - selection: { fields: { id: true } }, -}); -mutate({ actionId: '', actionName: '', actorId: '', databaseId: '', deploy: '', deploys: '', name: '', payload: '', requires: '', revert: '', verify: '' }); -``` diff --git a/.agents/skills/hooks-api/references/database-setting.md b/.agents/skills/hooks-api/references/database-setting.md index f80adea2c9..179727b59d 100644 --- a/.agents/skills/hooks-api/references/database-setting.md +++ b/.agents/skills/hooks-api/references/database-setting.md @@ -7,8 +7,8 @@ Scope-wide feature flags and settings; controls which platform features are avai ## Usage ```typescript -useDatabaseSettingsQuery({ selection: { fields: { annotations: true, createdAt: true, creditsPerCent: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } } }) -useDatabaseSettingQuery({ id: '', selection: { fields: { annotations: true, createdAt: true, creditsPerCent: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } } }) +useDatabaseSettingsQuery({ selection: { fields: { annotations: true, createdAt: true, creditsPerCent: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } } }) +useDatabaseSettingQuery({ id: '', selection: { fields: { annotations: true, createdAt: true, creditsPerCent: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } } }) useCreateDatabaseSettingMutation({ selection: { fields: { id: true } } }) useUpdateDatabaseSettingMutation({ selection: { fields: { id: true } } }) useDeleteDatabaseSettingMutation({}) @@ -20,7 +20,7 @@ useDeleteDatabaseSettingMutation({}) ```typescript const { data, isLoading } = useDatabaseSettingsQuery({ - selection: { fields: { annotations: true, createdAt: true, creditsPerCent: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, + selection: { fields: { annotations: true, createdAt: true, creditsPerCent: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useDatabaseSettingsQuery({ const { mutate } = useCreateDatabaseSettingMutation({ selection: { fields: { id: true } }, }); -mutate({ annotations: '', creditsPerCent: '', databaseId: '', enableAggregates: '', enableBilling: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', labels: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }); +mutate({ annotations: '', creditsPerCent: '', databaseId: '', enableAggregates: '', enableBilling: '', enableBulk: '', enableConnectionFilter: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', labels: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }); ``` diff --git a/.agents/skills/hooks-api/references/get-site-previews-record.md b/.agents/skills/hooks-api/references/get-site-previews-record.md index 69caaec7ff..e390acb788 100644 --- a/.agents/skills/hooks-api/references/get-site-previews-record.md +++ b/.agents/skills/hooks-api/references/get-site-previews-record.md @@ -8,7 +8,6 @@ React Query hooks for GetSitePreviewsRecord data operations ```typescript useGetSitePreviewsQuery({ selection: { fields: { commitId: true, name: true } } }) -useCreateGetSitePreviewsRecordMutation({ selection: { fields: { id: true } } }) ``` ## Examples @@ -20,12 +19,3 @@ const { data, isLoading } = useGetSitePreviewsQuery({ selection: { fields: { commitId: true, name: true } }, }); ``` - -### Create a getSitePreviewsRecord - -```typescript -const { mutate } = useCreateGetSitePreviewsRecordMutation({ - selection: { fields: { id: true } }, -}); -mutate({ commitId: '', name: '' }); -``` diff --git a/.agents/skills/hooks-api/references/list-suspended-databases-record.md b/.agents/skills/hooks-api/references/list-suspended-databases-record.md index e244c3b578..1f043293e3 100644 --- a/.agents/skills/hooks-api/references/list-suspended-databases-record.md +++ b/.agents/skills/hooks-api/references/list-suspended-databases-record.md @@ -9,7 +9,6 @@ React Query hooks for ListSuspendedDatabasesRecord data operations ```typescript useListSuspendedDatabasesQuery({ selection: { fields: { id: true, name: true, ownerId: true, suspendedAt: true, suspendedReason: true } } }) useListSuspendedDatabasesRecordQuery({ id: '', selection: { fields: { id: true, name: true, ownerId: true, suspendedAt: true, suspendedReason: true } } }) -useCreateListSuspendedDatabasesRecordMutation({ selection: { fields: { id: true } } }) useUpdateListSuspendedDatabasesRecordMutation({ selection: { fields: { id: true } } }) useDeleteListSuspendedDatabasesRecordMutation({}) ``` @@ -23,12 +22,3 @@ const { data, isLoading } = useListSuspendedDatabasesQuery({ selection: { fields: { id: true, name: true, ownerId: true, suspendedAt: true, suspendedReason: true } }, }); ``` - -### Create a listSuspendedDatabasesRecord - -```typescript -const { mutate } = useCreateListSuspendedDatabasesRecordMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', ownerId: '', suspendedAt: '', suspendedReason: '' }); -``` diff --git a/.agents/skills/hooks-api/references/platform-api-setting.md b/.agents/skills/hooks-api/references/platform-api-setting.md index 3b8d6e4821..7461092f6e 100644 --- a/.agents/skills/hooks-api/references/platform-api-setting.md +++ b/.agents/skills/hooks-api/references/platform-api-setting.md @@ -7,8 +7,8 @@ Per-API feature flag overrides; NULL columns inherit from database_settings ## Usage ```typescript -usePlatformApiSettingsQuery({ selection: { fields: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } } }) -usePlatformApiSettingQuery({ id: '', selection: { fields: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } } }) +usePlatformApiSettingsQuery({ selection: { fields: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } } }) +usePlatformApiSettingQuery({ id: '', selection: { fields: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } } }) useCreatePlatformApiSettingMutation({ selection: { fields: { id: true } } }) useUpdatePlatformApiSettingMutation({ selection: { fields: { id: true } } }) useDeletePlatformApiSettingMutation({}) @@ -20,7 +20,7 @@ useDeletePlatformApiSettingMutation({}) ```typescript const { data, isLoading } = usePlatformApiSettingsQuery({ - selection: { fields: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, + selection: { fields: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePlatformApiSettingsQuery({ const { mutate } = useCreatePlatformApiSettingMutation({ selection: { fields: { id: true } }, }); -mutate({ apiId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }); +mutate({ apiId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }); ``` diff --git a/.agents/skills/hooks-api/references/platform-api.md b/.agents/skills/hooks-api/references/platform-api.md index 27d363ff58..634c423671 100644 --- a/.agents/skills/hooks-api/references/platform-api.md +++ b/.agents/skills/hooks-api/references/platform-api.md @@ -7,8 +7,8 @@ API surfaces exposed by this scope; publication makes a surface bindable from ot ## Usage ```typescript -usePlatformApisQuery({ selection: { fields: { anonRole: true, config: true, createdAt: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } } }) -usePlatformApiQuery({ id: '', selection: { fields: { anonRole: true, config: true, createdAt: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } } }) +usePlatformApisQuery({ selection: { fields: { anonRole: true, config: true, createdAt: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } } }) +usePlatformApiQuery({ id: '', selection: { fields: { anonRole: true, config: true, createdAt: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } } }) useCreatePlatformApiMutation({ selection: { fields: { id: true } } }) useUpdatePlatformApiMutation({ selection: { fields: { id: true } } }) useDeletePlatformApiMutation({}) @@ -20,7 +20,7 @@ useDeletePlatformApiMutation({}) ```typescript const { data, isLoading } = usePlatformApisQuery({ - selection: { fields: { anonRole: true, config: true, createdAt: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }, + selection: { fields: { anonRole: true, config: true, createdAt: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePlatformApisQuery({ const { mutate } = useCreatePlatformApiMutation({ selection: { fields: { id: true } }, }); -mutate({ anonRole: '', config: '', dbname: '', isPublished: '', name: '', roleName: '' }); +mutate({ anonRole: '', config: '', isPublished: '', name: '', roleName: '', serviceHostname: '' }); ``` diff --git a/.agents/skills/hooks-api/references/platform-get-site-previews-record.md b/.agents/skills/hooks-api/references/platform-get-site-previews-record.md index 5c90fa0be3..ab618cedf4 100644 --- a/.agents/skills/hooks-api/references/platform-get-site-previews-record.md +++ b/.agents/skills/hooks-api/references/platform-get-site-previews-record.md @@ -8,7 +8,6 @@ React Query hooks for PlatformGetSitePreviewsRecord data operations ```typescript usePlatformGetSitePreviewsQuery({ selection: { fields: { commitId: true, name: true } } }) -useCreatePlatformGetSitePreviewsRecordMutation({ selection: { fields: { id: true } } }) ``` ## Examples @@ -20,12 +19,3 @@ const { data, isLoading } = usePlatformGetSitePreviewsQuery({ selection: { fields: { commitId: true, name: true } }, }); ``` - -### Create a platformGetSitePreviewsRecord - -```typescript -const { mutate } = useCreatePlatformGetSitePreviewsRecordMutation({ - selection: { fields: { id: true } }, -}); -mutate({ commitId: '', name: '' }); -``` diff --git a/.agents/skills/hooks-api/references/platform-reserved-subdomain.md b/.agents/skills/hooks-api/references/platform-reserved-subdomain.md new file mode 100644 index 0000000000..e5de5be5e7 --- /dev/null +++ b/.agents/skills/hooks-api/references/platform-reserved-subdomain.md @@ -0,0 +1,34 @@ +# platformReservedSubdomain + + + +Subdomain labels no tenant may claim under a platform apex + +## Usage + +```typescript +usePlatformReservedSubdomainsQuery({ selection: { fields: { createdAt: true, createdByPrincipal: true, id: true, label: true, match: true, reason: true, updatedAt: true, updatedByPrincipal: true } } }) +usePlatformReservedSubdomainQuery({ id: '', selection: { fields: { createdAt: true, createdByPrincipal: true, id: true, label: true, match: true, reason: true, updatedAt: true, updatedByPrincipal: true } } }) +useCreatePlatformReservedSubdomainMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformReservedSubdomainMutation({ selection: { fields: { id: true } } }) +useDeletePlatformReservedSubdomainMutation({}) +``` + +## Examples + +### List all platformReservedSubdomains + +```typescript +const { data, isLoading } = usePlatformReservedSubdomainsQuery({ + selection: { fields: { createdAt: true, createdByPrincipal: true, id: true, label: true, match: true, reason: true, updatedAt: true, updatedByPrincipal: true } }, +}); +``` + +### Create a platformReservedSubdomain + +```typescript +const { mutate } = useCreatePlatformReservedSubdomainMutation({ + selection: { fields: { id: true } }, +}); +mutate({ createdByPrincipal: '', label: '', match: '', reason: '', updatedByPrincipal: '' }); +``` diff --git a/.agents/skills/hooks-api/references/platform-site-metadatum.md b/.agents/skills/hooks-api/references/platform-site-metadatum.md index 5442c8a295..d94ded315d 100644 --- a/.agents/skills/hooks-api/references/platform-site-metadatum.md +++ b/.agents/skills/hooks-api/references/platform-site-metadatum.md @@ -7,8 +7,8 @@ SEO and social sharing metadata for a site surface ## Usage ```typescript -usePlatformSiteMetadataQuery({ selection: { fields: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } } }) -usePlatformSiteMetadatumQuery({ id: '', selection: { fields: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } } }) +usePlatformSiteMetadataQuery({ selection: { fields: { appleTouchIcon: true, appleTouchIconUrl: true, appleTouchIconVersions: true, canonicalUrl: true, commitId: true, createdAt: true, description: true, favicon: true, faviconUrl: true, faviconVersions: true, id: true, logo: true, logoUrl: true, logoVersions: true, ogImage: true, ogImageUrl: true, ogImageVersions: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } } }) +usePlatformSiteMetadatumQuery({ id: '', selection: { fields: { appleTouchIcon: true, appleTouchIconUrl: true, appleTouchIconVersions: true, canonicalUrl: true, commitId: true, createdAt: true, description: true, favicon: true, faviconUrl: true, faviconVersions: true, id: true, logo: true, logoUrl: true, logoVersions: true, ogImage: true, ogImageUrl: true, ogImageVersions: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } } }) useCreatePlatformSiteMetadatumMutation({ selection: { fields: { id: true } } }) useUpdatePlatformSiteMetadatumMutation({ selection: { fields: { id: true } } }) useDeletePlatformSiteMetadatumMutation({}) @@ -20,7 +20,7 @@ useDeletePlatformSiteMetadatumMutation({}) ```typescript const { data, isLoading } = usePlatformSiteMetadataQuery({ - selection: { fields: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }, + selection: { fields: { appleTouchIcon: true, appleTouchIconUrl: true, appleTouchIconVersions: true, canonicalUrl: true, commitId: true, createdAt: true, description: true, favicon: true, faviconUrl: true, faviconVersions: true, id: true, logo: true, logoUrl: true, logoVersions: true, ogImage: true, ogImageUrl: true, ogImageVersions: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePlatformSiteMetadataQuery({ const { mutate } = useCreatePlatformSiteMetadatumMutation({ selection: { fields: { id: true } }, }); -mutate({ appleTouchIcon: '', canonicalUrl: '', commitId: '', description: '', favicon: '', logo: '', ogImage: '', robots: '', robotsSeededFrom: '', siteId: '', storeId: '', title: '' }); +mutate({ appleTouchIcon: '', appleTouchIconUrl: '', appleTouchIconVersions: '', canonicalUrl: '', commitId: '', description: '', favicon: '', faviconUrl: '', faviconVersions: '', logo: '', logoUrl: '', logoVersions: '', ogImage: '', ogImageUrl: '', ogImageVersions: '', robots: '', robotsSeededFrom: '', siteId: '', storeId: '', title: '' }); ``` diff --git a/.agents/skills/hooks-api/references/site-metadatum.md b/.agents/skills/hooks-api/references/site-metadatum.md index 55ebc82b21..384dc7d40b 100644 --- a/.agents/skills/hooks-api/references/site-metadatum.md +++ b/.agents/skills/hooks-api/references/site-metadatum.md @@ -7,8 +7,8 @@ SEO and social sharing metadata for a site surface ## Usage ```typescript -useSiteMetadataQuery({ selection: { fields: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, databaseId: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } } }) -useSiteMetadatumQuery({ id: '', selection: { fields: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, databaseId: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } } }) +useSiteMetadataQuery({ selection: { fields: { appleTouchIcon: true, appleTouchIconUrl: true, appleTouchIconVersions: true, canonicalUrl: true, commitId: true, createdAt: true, databaseId: true, description: true, favicon: true, faviconUrl: true, faviconVersions: true, id: true, logo: true, logoUrl: true, logoVersions: true, ogImage: true, ogImageUrl: true, ogImageVersions: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } } }) +useSiteMetadatumQuery({ id: '', selection: { fields: { appleTouchIcon: true, appleTouchIconUrl: true, appleTouchIconVersions: true, canonicalUrl: true, commitId: true, createdAt: true, databaseId: true, description: true, favicon: true, faviconUrl: true, faviconVersions: true, id: true, logo: true, logoUrl: true, logoVersions: true, ogImage: true, ogImageUrl: true, ogImageVersions: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } } }) useCreateSiteMetadatumMutation({ selection: { fields: { id: true } } }) useUpdateSiteMetadatumMutation({ selection: { fields: { id: true } } }) useDeleteSiteMetadatumMutation({}) @@ -20,7 +20,7 @@ useDeleteSiteMetadatumMutation({}) ```typescript const { data, isLoading } = useSiteMetadataQuery({ - selection: { fields: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, databaseId: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }, + selection: { fields: { appleTouchIcon: true, appleTouchIconUrl: true, appleTouchIconVersions: true, canonicalUrl: true, commitId: true, createdAt: true, databaseId: true, description: true, favicon: true, faviconUrl: true, faviconVersions: true, id: true, logo: true, logoUrl: true, logoVersions: true, ogImage: true, ogImageUrl: true, ogImageVersions: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useSiteMetadataQuery({ const { mutate } = useCreateSiteMetadatumMutation({ selection: { fields: { id: true } }, }); -mutate({ appleTouchIcon: '', canonicalUrl: '', commitId: '', databaseId: '', description: '', favicon: '', logo: '', ogImage: '', robots: '', robotsSeededFrom: '', siteId: '', storeId: '', title: '' }); +mutate({ appleTouchIcon: '', appleTouchIconUrl: '', appleTouchIconVersions: '', canonicalUrl: '', commitId: '', databaseId: '', description: '', favicon: '', faviconUrl: '', faviconVersions: '', logo: '', logoUrl: '', logoVersions: '', ogImage: '', ogImageUrl: '', ogImageVersions: '', robots: '', robotsSeededFrom: '', siteId: '', storeId: '', title: '' }); ``` diff --git a/.agents/skills/hooks-api/references/sql-action.md b/.agents/skills/hooks-api/references/sql-action.md index 061a015953..588731ed5c 100644 --- a/.agents/skills/hooks-api/references/sql-action.md +++ b/.agents/skills/hooks-api/references/sql-action.md @@ -9,7 +9,6 @@ React Query hooks for SqlAction data operations ```typescript useSqlActionsQuery({ selection: { fields: { actionId: true, actionName: true, actorId: true, content: true, createdAt: true, databaseId: true, deploy: true, deps: true, id: true, name: true, payload: true, revert: true, verify: true } } }) useSqlActionQuery({ id: '', selection: { fields: { actionId: true, actionName: true, actorId: true, content: true, createdAt: true, databaseId: true, deploy: true, deps: true, id: true, name: true, payload: true, revert: true, verify: true } } }) -useCreateSqlActionMutation({ selection: { fields: { id: true } } }) useUpdateSqlActionMutation({ selection: { fields: { id: true } } }) useDeleteSqlActionMutation({}) ``` @@ -23,12 +22,3 @@ const { data, isLoading } = useSqlActionsQuery({ selection: { fields: { actionId: true, actionName: true, actorId: true, content: true, createdAt: true, databaseId: true, deploy: true, deps: true, id: true, name: true, payload: true, revert: true, verify: true } }, }); ``` - -### Create a sqlAction - -```typescript -const { mutate } = useCreateSqlActionMutation({ - selection: { fields: { id: true } }, -}); -mutate({ actionId: '', actionName: '', actorId: '', content: '', databaseId: '', deploy: '', deps: '', name: '', payload: '', revert: '', verify: '' }); -``` diff --git a/.agents/skills/hooks-auth/SKILL.md b/.agents/skills/hooks-auth/SKILL.md index c2930123b3..3dffc5a404 100644 --- a/.agents/skills/hooks-auth/SKILL.md +++ b/.agents/skills/hooks-auth/SKILL.md @@ -1,13 +1,13 @@ --- name: hooks-auth -description: React Query hooks for the auth API — provides typed query and mutation hooks for 15 tables and 61 custom operations +description: React Query hooks for the auth API — provides typed query and mutation hooks for 15 tables and 66 custom operations --- # hooks-auth -React Query hooks for the auth API — provides typed query and mutation hooks for 15 tables and 61 custom operations +React Query hooks for the auth API — provides typed query and mutation hooks for 15 tables and 66 custom operations ## Usage @@ -59,6 +59,7 @@ See the `references/` directory for detailed per-entity API documentation: - [current-user-id](references/current-user-id.md) - [get-mfa-status](references/get-mfa-status.md) - [require-step-up](references/require-step-up.md) +- [sign-in-options](references/sign-in-options.md) - [approve-device](references/approve-device.md) - [check-password](references/check-password.md) - [complete-mfa-challenge](references/complete-mfa-challenge.md) @@ -68,6 +69,7 @@ See the `references/` directory for detailed per-entity API documentation: - [create-child-principal](references/create-child-principal.md) - [create-org-api-key](references/create-org-api-key.md) - [create-org-principal](references/create-org-principal.md) +- [create-principal](references/create-principal.md) - [create-principal-from-preset](references/create-principal-from-preset.md) - [delete-org-principal](references/delete-org-principal.md) - [delete-principal](references/delete-principal.md) @@ -78,6 +80,8 @@ See the `references/` directory for detailed per-entity API documentation: - [enable-email-mfa](references/enable-email-mfa.md) - [enable-sms-mfa](references/enable-sms-mfa.md) - [enable-totp](references/enable-totp.md) +- [ensure-auth-csrf](references/ensure-auth-csrf.md) +- [exchange-native-handoff](references/exchange-native-handoff.md) - [extend-token-expires](references/extend-token-expires.md) - [forgot-password](references/forgot-password.md) - [generate-backup-codes](references/generate-backup-codes.md) @@ -86,6 +90,7 @@ See the `references/` directory for detailed per-entity API documentation: - [provision-bucket](references/provision-bucket.md) - [refresh-access-token](references/refresh-access-token.md) - [request-cross-origin-token](references/request-cross-origin-token.md) +- [request-device-approval](references/request-device-approval.md) - [request-magic-link](references/request-magic-link.md) - [reset-password](references/reset-password.md) - [revoke-api-key](references/revoke-api-key.md) diff --git a/.agents/skills/hooks-auth/references/create-api-key.md b/.agents/skills/hooks-auth/references/create-api-key.md index f90173478d..06fbe08d54 100644 --- a/.agents/skills/hooks-auth/references/create-api-key.md +++ b/.agents/skills/hooks-auth/references/create-api-key.md @@ -2,7 +2,7 @@ -React Query mutation hook for createApiKey +Mint an API key for the current user; the plaintext key is returned once. access_level: full_access (default) or read_only. mfa_level: none (default) or verified; verified needs a fresh MFA proof on the calling session. A key minted while authenticated by another API key never outlives that key. ## Usage diff --git a/.agents/skills/hooks-auth/references/create-principal.md b/.agents/skills/hooks-auth/references/create-principal.md new file mode 100644 index 0000000000..0a1ee702e4 --- /dev/null +++ b/.agents/skills/hooks-auth/references/create-principal.md @@ -0,0 +1,20 @@ +# createPrincipal + + + +React Query mutation hook for createPrincipal + +## Usage + +```typescript +const { mutate } = useCreatePrincipalMutation(); mutate({ input: { bypassStepUp: '', entityIds: '', isReadOnly: '', name: '', useAdminOwner: '' } }); +``` + +## Examples + +### Use useCreatePrincipalMutation + +```typescript +const { mutate, isLoading } = useCreatePrincipalMutation(); +mutate({ input: { bypassStepUp: '', entityIds: '', isReadOnly: '', name: '', useAdminOwner: '' } }); +``` diff --git a/.agents/skills/hooks-auth/references/ensure-auth-csrf.md b/.agents/skills/hooks-auth/references/ensure-auth-csrf.md new file mode 100644 index 0000000000..d04ae69d3d --- /dev/null +++ b/.agents/skills/hooks-auth/references/ensure-auth-csrf.md @@ -0,0 +1,20 @@ +# ensureAuthCsrf + + + +React Query mutation hook for ensureAuthCsrf + +## Usage + +```typescript +const { mutate } = useEnsureAuthCsrfMutation(); mutate({ input: { existingToken: '' } }); +``` + +## Examples + +### Use useEnsureAuthCsrfMutation + +```typescript +const { mutate, isLoading } = useEnsureAuthCsrfMutation(); +mutate({ input: { existingToken: '' } }); +``` diff --git a/.agents/skills/hooks-auth/references/exchange-native-handoff.md b/.agents/skills/hooks-auth/references/exchange-native-handoff.md new file mode 100644 index 0000000000..b99bbc0c4a --- /dev/null +++ b/.agents/skills/hooks-auth/references/exchange-native-handoff.md @@ -0,0 +1,20 @@ +# exchangeNativeHandoff + + + +React Query mutation hook for exchangeNativeHandoff + +## Usage + +```typescript +const { mutate } = useExchangeNativeHandoffMutation(); mutate({ input: { code: '', codeVerifier: '', credentialKind: '' } }); +``` + +## Examples + +### Use useExchangeNativeHandoffMutation + +```typescript +const { mutate, isLoading } = useExchangeNativeHandoffMutation(); +mutate({ input: { code: '', codeVerifier: '', credentialKind: '' } }); +``` diff --git a/.agents/skills/hooks-auth/references/identity-provider.md b/.agents/skills/hooks-auth/references/identity-provider.md index 69322b6b16..123083f23a 100644 --- a/.agents/skills/hooks-auth/references/identity-provider.md +++ b/.agents/skills/hooks-auth/references/identity-provider.md @@ -8,7 +8,6 @@ React Query hooks for IdentityProvider data operations ```typescript useIdentityProvidersQuery({ selection: { fields: { displayName: true, enabled: true, kind: true, slug: true } } }) -useCreateIdentityProviderMutation({ selection: { fields: { id: true } } }) ``` ## Examples @@ -20,12 +19,3 @@ const { data, isLoading } = useIdentityProvidersQuery({ selection: { fields: { displayName: true, enabled: true, kind: true, slug: true } }, }); ``` - -### Create a identityProvider - -```typescript -const { mutate } = useCreateIdentityProviderMutation({ - selection: { fields: { id: true } }, -}); -mutate({ displayName: '', enabled: '', kind: '', slug: '' }); -``` diff --git a/.agents/skills/hooks-auth/references/org-api-key-list.md b/.agents/skills/hooks-auth/references/org-api-key-list.md index 965eedcc1a..54b8e68dd8 100644 --- a/.agents/skills/hooks-auth/references/org-api-key-list.md +++ b/.agents/skills/hooks-auth/references/org-api-key-list.md @@ -9,7 +9,6 @@ React Query hooks for OrgApiKeyList data operations ```typescript useOrgApiKeyListsQuery({ selection: { fields: { accessLevel: true, createdAt: true, expiresAt: true, id: true, keyId: true, lastUsedAt: true, mfaLevel: true, name: true, orgId: true, principalId: true, revokedAt: true, updatedAt: true } } }) useOrgApiKeyListQuery({ id: '', selection: { fields: { accessLevel: true, createdAt: true, expiresAt: true, id: true, keyId: true, lastUsedAt: true, mfaLevel: true, name: true, orgId: true, principalId: true, revokedAt: true, updatedAt: true } } }) -useCreateOrgApiKeyListMutation({ selection: { fields: { id: true } } }) useUpdateOrgApiKeyListMutation({ selection: { fields: { id: true } } }) useDeleteOrgApiKeyListMutation({}) ``` @@ -23,12 +22,3 @@ const { data, isLoading } = useOrgApiKeyListsQuery({ selection: { fields: { accessLevel: true, createdAt: true, expiresAt: true, id: true, keyId: true, lastUsedAt: true, mfaLevel: true, name: true, orgId: true, principalId: true, revokedAt: true, updatedAt: true } }, }); ``` - -### Create a orgApiKeyList - -```typescript -const { mutate } = useCreateOrgApiKeyListMutation({ - selection: { fields: { id: true } }, -}); -mutate({ accessLevel: '', expiresAt: '', keyId: '', lastUsedAt: '', mfaLevel: '', name: '', orgId: '', principalId: '', revokedAt: '' }); -``` diff --git a/.agents/skills/hooks-auth/references/principal-entity.md b/.agents/skills/hooks-auth/references/principal-entity.md index 189cf1d605..50a33090f9 100644 --- a/.agents/skills/hooks-auth/references/principal-entity.md +++ b/.agents/skills/hooks-auth/references/principal-entity.md @@ -9,7 +9,6 @@ Association table scoping principals to specific organizations ```typescript usePrincipalEntitiesQuery({ selection: { fields: { createdAt: true, entityId: true, id: true, ownerId: true, principalId: true, updatedAt: true } } }) usePrincipalEntityQuery({ id: '', selection: { fields: { createdAt: true, entityId: true, id: true, ownerId: true, principalId: true, updatedAt: true } } }) -useCreatePrincipalEntityMutation({ selection: { fields: { id: true } } }) useUpdatePrincipalEntityMutation({ selection: { fields: { id: true } } }) useDeletePrincipalEntityMutation({}) ``` @@ -23,12 +22,3 @@ const { data, isLoading } = usePrincipalEntitiesQuery({ selection: { fields: { createdAt: true, entityId: true, id: true, ownerId: true, principalId: true, updatedAt: true } }, }); ``` - -### Create a principalEntity - -```typescript -const { mutate } = useCreatePrincipalEntityMutation({ - selection: { fields: { id: true } }, -}); -mutate({ entityId: '', ownerId: '', principalId: '' }); -``` diff --git a/.agents/skills/hooks-auth/references/principal-scope-override.md b/.agents/skills/hooks-auth/references/principal-scope-override.md index 05e8536225..8b18f93722 100644 --- a/.agents/skills/hooks-auth/references/principal-scope-override.md +++ b/.agents/skills/hooks-auth/references/principal-scope-override.md @@ -9,7 +9,6 @@ Per-scope capability overrides for principals. No row = full access; row exists ```typescript usePrincipalScopeOverridesQuery({ selection: { fields: { allowedMask: true, createdAt: true, id: true, isActive: true, isReadOnly: true, membershipType: true, principalId: true, updatedAt: true, useAdminOwner: true } } }) usePrincipalScopeOverrideQuery({ id: '', selection: { fields: { allowedMask: true, createdAt: true, id: true, isActive: true, isReadOnly: true, membershipType: true, principalId: true, updatedAt: true, useAdminOwner: true } } }) -useCreatePrincipalScopeOverrideMutation({ selection: { fields: { id: true } } }) useUpdatePrincipalScopeOverrideMutation({ selection: { fields: { id: true } } }) useDeletePrincipalScopeOverrideMutation({}) ``` @@ -23,12 +22,3 @@ const { data, isLoading } = usePrincipalScopeOverridesQuery({ selection: { fields: { allowedMask: true, createdAt: true, id: true, isActive: true, isReadOnly: true, membershipType: true, principalId: true, updatedAt: true, useAdminOwner: true } }, }); ``` - -### Create a principalScopeOverride - -```typescript -const { mutate } = useCreatePrincipalScopeOverrideMutation({ - selection: { fields: { id: true } }, -}); -mutate({ allowedMask: '', isActive: '', isReadOnly: '', membershipType: '', principalId: '', useAdminOwner: '' }); -``` diff --git a/.agents/skills/hooks-auth/references/principal.md b/.agents/skills/hooks-auth/references/principal.md index 02066a3381..cad6a2154f 100644 --- a/.agents/skills/hooks-auth/references/principal.md +++ b/.agents/skills/hooks-auth/references/principal.md @@ -9,7 +9,6 @@ Scoped sub-identities (API keys and agents) with precomputed SPRT ```typescript usePrincipalsQuery({ selection: { fields: { apiKeyMaxDuration: true, bypassStepUp: true, createdAt: true, createdBySessionId: true, depth: true, expiresAt: true, id: true, isReadOnly: true, name: true, ownerId: true, parentPrincipalId: true, updatedAt: true, useAdminOwner: true, userId: true } } }) usePrincipalQuery({ principalId: '', selection: { fields: { apiKeyMaxDuration: true, bypassStepUp: true, createdAt: true, createdBySessionId: true, depth: true, expiresAt: true, id: true, isReadOnly: true, name: true, ownerId: true, parentPrincipalId: true, updatedAt: true, useAdminOwner: true, userId: true } } }) -useCreatePrincipalMutation({ selection: { fields: { principalId: true } } }) useUpdatePrincipalMutation({ selection: { fields: { principalId: true } } }) useDeletePrincipalMutation({}) ``` @@ -23,12 +22,3 @@ const { data, isLoading } = usePrincipalsQuery({ selection: { fields: { apiKeyMaxDuration: true, bypassStepUp: true, createdAt: true, createdBySessionId: true, depth: true, expiresAt: true, id: true, isReadOnly: true, name: true, ownerId: true, parentPrincipalId: true, updatedAt: true, useAdminOwner: true, userId: true } }, }); ``` - -### Create a principal - -```typescript -const { mutate } = useCreatePrincipalMutation({ - selection: { fields: { principalId: true } }, -}); -mutate({ apiKeyMaxDuration: '', bypassStepUp: '', createdBySessionId: '', depth: '', expiresAt: '', id: '', isReadOnly: '', name: '', ownerId: '', parentPrincipalId: '', useAdminOwner: '', userId: '' }); -``` diff --git a/.agents/skills/hooks-auth/references/request-device-approval.md b/.agents/skills/hooks-auth/references/request-device-approval.md new file mode 100644 index 0000000000..71a4005c32 --- /dev/null +++ b/.agents/skills/hooks-auth/references/request-device-approval.md @@ -0,0 +1,20 @@ +# requestDeviceApproval + + + +React Query mutation hook for requestDeviceApproval + +## Usage + +```typescript +const { mutate } = useRequestDeviceApprovalMutation(); mutate({ input: { deviceToken: '', next: '', userId: '' } }); +``` + +## Examples + +### Use useRequestDeviceApprovalMutation + +```typescript +const { mutate, isLoading } = useRequestDeviceApprovalMutation(); +mutate({ input: { deviceToken: '', next: '', userId: '' } }); +``` diff --git a/.agents/skills/hooks-auth/references/request-magic-link.md b/.agents/skills/hooks-auth/references/request-magic-link.md index 249240c4d5..159f386d5d 100644 --- a/.agents/skills/hooks-auth/references/request-magic-link.md +++ b/.agents/skills/hooks-auth/references/request-magic-link.md @@ -7,7 +7,7 @@ React Query mutation hook for requestMagicLink ## Usage ```typescript -const { mutate } = useRequestMagicLinkMutation(); mutate({ input: { email: '', next: '' } }); +const { mutate } = useRequestMagicLinkMutation(); mutate({ input: { codeChallenge: '', email: '', nativeRedirectUri: '', next: '' } }); ``` ## Examples @@ -16,5 +16,5 @@ const { mutate } = useRequestMagicLinkMutation(); mutate({ input: { email: '', next: '' } }); +mutate({ input: { codeChallenge: '', email: '', nativeRedirectUri: '', next: '' } }); ``` diff --git a/.agents/skills/hooks-auth/references/set-password.md b/.agents/skills/hooks-auth/references/set-password.md index 91b80a3d53..ff091798bb 100644 --- a/.agents/skills/hooks-auth/references/set-password.md +++ b/.agents/skills/hooks-auth/references/set-password.md @@ -7,7 +7,7 @@ React Query mutation hook for setPassword ## Usage ```typescript -const { mutate } = useSetPasswordMutation(); mutate({ input: { currentPassword: '', newPassword: '' } }); +const { mutate } = useSetPasswordMutation(); mutate({ input: { currentPassword: '', newPassword: '', signOutOtherSessions: '' } }); ``` ## Examples @@ -16,5 +16,5 @@ const { mutate } = useSetPasswordMutation(); mutate({ input: { currentPassword: ```typescript const { mutate, isLoading } = useSetPasswordMutation(); -mutate({ input: { currentPassword: '', newPassword: '' } }); +mutate({ input: { currentPassword: '', newPassword: '', signOutOtherSessions: '' } }); ``` diff --git a/.agents/skills/hooks-auth/references/sign-in-options.md b/.agents/skills/hooks-auth/references/sign-in-options.md new file mode 100644 index 0000000000..33b93083b1 --- /dev/null +++ b/.agents/skills/hooks-auth/references/sign-in-options.md @@ -0,0 +1,19 @@ +# signInOptions + + + +React Query query hook for signInOptions + +## Usage + +```typescript +useSignInOptionsQuery() +``` + +## Examples + +### Use useSignInOptionsQuery + +```typescript +const { data, isLoading } = useSignInOptionsQuery(); +``` diff --git a/.agents/skills/hooks-auth/references/user-connected-account.md b/.agents/skills/hooks-auth/references/user-connected-account.md index 2a89f114f1..12c6ac26d2 100644 --- a/.agents/skills/hooks-auth/references/user-connected-account.md +++ b/.agents/skills/hooks-auth/references/user-connected-account.md @@ -9,7 +9,6 @@ React Query hooks for UserConnectedAccount data operations ```typescript useUserConnectedAccountsQuery({ selection: { fields: { createdAt: true, details: true, id: true, identifier: true, isVerified: true, ownerId: true, service: true, updatedAt: true } } }) useUserConnectedAccountQuery({ id: '', selection: { fields: { createdAt: true, details: true, id: true, identifier: true, isVerified: true, ownerId: true, service: true, updatedAt: true } } }) -useCreateUserConnectedAccountMutation({ selection: { fields: { id: true } } }) useUpdateUserConnectedAccountMutation({ selection: { fields: { id: true } } }) useDeleteUserConnectedAccountMutation({}) ``` @@ -23,12 +22,3 @@ const { data, isLoading } = useUserConnectedAccountsQuery({ selection: { fields: { createdAt: true, details: true, id: true, identifier: true, isVerified: true, ownerId: true, service: true, updatedAt: true } }, }); ``` - -### Create a userConnectedAccount - -```typescript -const { mutate } = useCreateUserConnectedAccountMutation({ - selection: { fields: { id: true } }, -}); -mutate({ details: '', identifier: '', isVerified: '', ownerId: '', service: '' }); -``` diff --git a/.agents/skills/hooks-auth/references/user.md b/.agents/skills/hooks-auth/references/user.md index edcd995b1e..ac2497c066 100644 --- a/.agents/skills/hooks-auth/references/user.md +++ b/.agents/skills/hooks-auth/references/user.md @@ -7,8 +7,8 @@ React Query hooks for User data operations ## Usage ```typescript -useUsersQuery({ selection: { fields: { createdAt: true, displayName: true, displayNameTrgmSimilarity: true, id: true, profilePicture: true, searchScore: true, searchTsv: true, searchTsvRank: true, type: true, updatedAt: true, username: true } } }) -useUserQuery({ id: '', selection: { fields: { createdAt: true, displayName: true, displayNameTrgmSimilarity: true, id: true, profilePicture: true, searchScore: true, searchTsv: true, searchTsvRank: true, type: true, updatedAt: true, username: true } } }) +useUsersQuery({ selection: { fields: { createdAt: true, displayName: true, displayNameTrgmSimilarity: true, id: true, profilePicture: true, profilePictureUrl: true, profilePictureVersions: true, searchScore: true, searchTsv: true, searchTsvRank: true, type: true, updatedAt: true, username: true } } }) +useUserQuery({ id: '', selection: { fields: { createdAt: true, displayName: true, displayNameTrgmSimilarity: true, id: true, profilePicture: true, profilePictureUrl: true, profilePictureVersions: true, searchScore: true, searchTsv: true, searchTsvRank: true, type: true, updatedAt: true, username: true } } }) useCreateUserMutation({ selection: { fields: { id: true } } }) useUpdateUserMutation({ selection: { fields: { id: true } } }) useDeleteUserMutation({}) @@ -20,7 +20,7 @@ useDeleteUserMutation({}) ```typescript const { data, isLoading } = useUsersQuery({ - selection: { fields: { createdAt: true, displayName: true, displayNameTrgmSimilarity: true, id: true, profilePicture: true, searchScore: true, searchTsv: true, searchTsvRank: true, type: true, updatedAt: true, username: true } }, + selection: { fields: { createdAt: true, displayName: true, displayNameTrgmSimilarity: true, id: true, profilePicture: true, profilePictureUrl: true, profilePictureVersions: true, searchScore: true, searchTsv: true, searchTsvRank: true, type: true, updatedAt: true, username: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useUsersQuery({ const { mutate } = useCreateUserMutation({ selection: { fields: { id: true } }, }); -mutate({ displayName: '', displayNameTrgmSimilarity: '', profilePicture: '', searchScore: '', searchTsv: '', searchTsvRank: '', type: '', username: '' }); +mutate({ displayName: '', displayNameTrgmSimilarity: '', profilePicture: '', profilePictureUrl: '', profilePictureVersions: '', searchScore: '', searchTsv: '', searchTsvRank: '', type: '', username: '' }); ``` diff --git a/.agents/skills/hooks-auth/references/verify-email.md b/.agents/skills/hooks-auth/references/verify-email.md index 1f404805ba..703aa8a4ff 100644 --- a/.agents/skills/hooks-auth/references/verify-email.md +++ b/.agents/skills/hooks-auth/references/verify-email.md @@ -7,7 +7,7 @@ React Query mutation hook for verifyEmail ## Usage ```typescript -const { mutate } = useVerifyEmailMutation(); mutate({ input: { emailId: '', token: '' } }); +const { mutate } = useVerifyEmailMutation(); mutate({ input: { emailId: '', password: '', token: '' } }); ``` ## Examples @@ -16,5 +16,5 @@ const { mutate } = useVerifyEmailMutation(); mutate({ input: { emailId: '' ```typescript const { mutate, isLoading } = useVerifyEmailMutation(); -mutate({ input: { emailId: '', token: '' } }); +mutate({ input: { emailId: '', password: '', token: '' } }); ``` diff --git a/.agents/skills/hooks-compute/SKILL.md b/.agents/skills/hooks-compute/SKILL.md index e5bdfffbe0..b8dcbad4c8 100644 --- a/.agents/skills/hooks-compute/SKILL.md +++ b/.agents/skills/hooks-compute/SKILL.md @@ -1,13 +1,13 @@ --- name: hooks-compute -description: React Query hooks for the compute API — provides typed query and mutation hooks for 123 tables and 64 custom operations +description: React Query hooks for the compute API — provides typed query and mutation hooks for 123 tables and 65 custom operations --- # hooks-compute -React Query hooks for the compute API — provides typed query and mutation hooks for 123 tables and 64 custom operations +React Query hooks for the compute API — provides typed query and mutation hooks for 123 tables and 65 custom operations ## Usage @@ -40,7 +40,6 @@ See the `references/` directory for detailed per-entity API documentation: - [build](references/build.md) - [build-step](references/build-step.md) -- [builder-binding](references/builder-binding.md) - [content-preset](references/content-preset.md) - [database-function-graph](references/database-function-graph.md) - [database-function-graph-execution-cancel-request](references/database-function-graph-execution-cancel-request.md) @@ -84,7 +83,6 @@ See the `references/` directory for detailed per-entity API documentation: - [namespace-event](references/namespace-event.md) - [platform-build](references/platform-build.md) - [platform-build-step](references/platform-build-step.md) -- [platform-builder-binding](references/platform-builder-binding.md) - [platform-function-api-binding](references/platform-function-api-binding.md) - [platform-function-capability-binding](references/platform-function-capability-binding.md) - [platform-function-definition](references/platform-function-definition.md) @@ -131,6 +129,7 @@ See the `references/` directory for detailed per-entity API documentation: - [platform-resources-health](references/platform-resources-health.md) - [platform-resources-requirements-state](references/platform-resources-requirements-state.md) - [platform-resources-resolved-requirement](references/platform-resources-resolved-requirement.md) +- [platform-service-binding](references/platform-service-binding.md) - [platform-webhook-endpoint](references/platform-webhook-endpoint.md) - [platform-webhook-event](references/platform-webhook-event.md) - [proposal-comment](references/proposal-comment.md) @@ -159,6 +158,7 @@ See the `references/` directory for detailed per-entity API documentation: - [resources-health](references/resources-health.md) - [resources-requirements-state](references/resources-requirements-state.md) - [resources-resolved-requirement](references/resources-resolved-requirement.md) +- [service-binding](references/service-binding.md) - [webhook-endpoint](references/webhook-endpoint.md) - [webhook-event](references/webhook-event.md) - [database-read-function-graph](references/database-read-function-graph.md) @@ -169,6 +169,7 @@ See the `references/` directory for detailed per-entity API documentation: - [add-node-and-save](references/add-node-and-save.md) - [approve-node](references/approve-node.md) - [copy-graph](references/copy-graph.md) +- [create-function-graph](references/create-function-graph.md) - [database-add-edge](references/database-add-edge.md) - [database-add-edge-and-save](references/database-add-edge-and-save.md) - [database-add-node](references/database-add-node.md) diff --git a/.agents/skills/hooks-compute/references/build.md b/.agents/skills/hooks-compute/references/build.md index 78ef9abf79..e4382de090 100644 --- a/.agents/skills/hooks-compute/references/build.md +++ b/.agents/skills/hooks-compute/references/build.md @@ -7,8 +7,8 @@ One run of a repository workflow: its commit, its job, and what it produced ## Usage ```typescript -useBuildsQuery({ selection: { fields: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, databaseId: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } } }) -useBuildQuery({ id: '', selection: { fields: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, databaseId: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } } }) +useBuildsQuery({ selection: { fields: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, databaseId: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, logsUrl: true, logsVersions: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } } }) +useBuildQuery({ id: '', selection: { fields: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, databaseId: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, logsUrl: true, logsVersions: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } } }) useCreateBuildMutation({ selection: { fields: { id: true } } }) useUpdateBuildMutation({ selection: { fields: { id: true } } }) useDeleteBuildMutation({}) @@ -20,7 +20,7 @@ useDeleteBuildMutation({}) ```typescript const { data, isLoading } = useBuildsQuery({ - selection: { fields: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, databaseId: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }, + selection: { fields: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, databaseId: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, logsUrl: true, logsVersions: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useBuildsQuery({ const { mutate } = useCreateBuildMutation({ selection: { fields: { id: true } }, }); -mutate({ actorId: '', attempt: '', commitSha: '', conclusion: '', createdByPrincipal: '', databaseId: '', eventId: '', finishedAt: '', imageRef: '', jobId: '', logs: '', matrixKey: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }); +mutate({ actorId: '', attempt: '', commitSha: '', conclusion: '', createdByPrincipal: '', databaseId: '', eventId: '', finishedAt: '', imageRef: '', jobId: '', logs: '', logsUrl: '', logsVersions: '', matrixKey: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/create-function-graph.md b/.agents/skills/hooks-compute/references/create-function-graph.md new file mode 100644 index 0000000000..5b37361187 --- /dev/null +++ b/.agents/skills/hooks-compute/references/create-function-graph.md @@ -0,0 +1,20 @@ +# createFunctionGraph + + + +React Query mutation hook for createFunctionGraph + +## Usage + +```typescript +const { mutate } = useCreateFunctionGraphMutation(); mutate({ input: '' }); +``` + +## Examples + +### Use useCreateFunctionGraphMutation + +```typescript +const { mutate, isLoading } = useCreateFunctionGraphMutation(); +mutate({ input: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/database-function-graph.md b/.agents/skills/hooks-compute/references/database-function-graph.md index 7a6d045cba..35232fbbdc 100644 --- a/.agents/skills/hooks-compute/references/database-function-graph.md +++ b/.agents/skills/hooks-compute/references/database-function-graph.md @@ -9,7 +9,6 @@ Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store ```typescript useDatabaseFunctionGraphsQuery({ selection: { fields: { context: true, createdAt: true, createdBy: true, databaseId: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, storeId: true, updatedAt: true, validationErrors: true } } }) useDatabaseFunctionGraphQuery({ id: '', selection: { fields: { context: true, createdAt: true, createdBy: true, databaseId: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, storeId: true, updatedAt: true, validationErrors: true } } }) -useCreateDatabaseFunctionGraphMutation({ selection: { fields: { id: true } } }) useUpdateDatabaseFunctionGraphMutation({ selection: { fields: { id: true } } }) useDeleteDatabaseFunctionGraphMutation({}) ``` @@ -23,12 +22,3 @@ const { data, isLoading } = useDatabaseFunctionGraphsQuery({ selection: { fields: { context: true, createdAt: true, createdBy: true, databaseId: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, storeId: true, updatedAt: true, validationErrors: true } }, }); ``` - -### Create a databaseFunctionGraph - -```typescript -const { mutate } = useCreateDatabaseFunctionGraphMutation({ - selection: { fields: { id: true } }, -}); -mutate({ context: '', createdBy: '', databaseId: '', definitionsCommitId: '', description: '', isValid: '', name: '', storeId: '', validationErrors: '' }); -``` diff --git a/.agents/skills/hooks-compute/references/database-graph-get-all-tree-nodes-record.md b/.agents/skills/hooks-compute/references/database-graph-get-all-tree-nodes-record.md index b5367ab410..63d3125854 100644 --- a/.agents/skills/hooks-compute/references/database-graph-get-all-tree-nodes-record.md +++ b/.agents/skills/hooks-compute/references/database-graph-get-all-tree-nodes-record.md @@ -8,7 +8,6 @@ React Query hooks for DatabaseGraphGetAllTreeNodesRecord data operations ```typescript useDatabaseGraphGetAllTreeNodesQuery({ selection: { fields: { data: true, path: true } } }) -useCreateDatabaseGraphGetAllTreeNodesRecordMutation({ selection: { fields: { id: true } } }) ``` ## Examples @@ -20,12 +19,3 @@ const { data, isLoading } = useDatabaseGraphGetAllTreeNodesQuery({ selection: { fields: { data: true, path: true } }, }); ``` - -### Create a databaseGraphGetAllTreeNodesRecord - -```typescript -const { mutate } = useCreateDatabaseGraphGetAllTreeNodesRecordMutation({ - selection: { fields: { id: true } }, -}); -mutate({ data: '', path: '' }); -``` diff --git a/.agents/skills/hooks-compute/references/function-graph.md b/.agents/skills/hooks-compute/references/function-graph.md index b727bffefd..1120170741 100644 --- a/.agents/skills/hooks-compute/references/function-graph.md +++ b/.agents/skills/hooks-compute/references/function-graph.md @@ -9,7 +9,6 @@ Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store ```typescript useFunctionGraphsQuery({ selection: { fields: { context: true, createdAt: true, createdBy: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, scopeId: true, storeId: true, updatedAt: true, validationErrors: true } } }) useFunctionGraphQuery({ id: '', selection: { fields: { context: true, createdAt: true, createdBy: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, scopeId: true, storeId: true, updatedAt: true, validationErrors: true } } }) -useCreateFunctionGraphMutation({ selection: { fields: { id: true } } }) useUpdateFunctionGraphMutation({ selection: { fields: { id: true } } }) useDeleteFunctionGraphMutation({}) ``` @@ -23,12 +22,3 @@ const { data, isLoading } = useFunctionGraphsQuery({ selection: { fields: { context: true, createdAt: true, createdBy: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, scopeId: true, storeId: true, updatedAt: true, validationErrors: true } }, }); ``` - -### Create a functionGraph - -```typescript -const { mutate } = useCreateFunctionGraphMutation({ - selection: { fields: { id: true } }, -}); -mutate({ context: '', createdBy: '', definitionsCommitId: '', description: '', isValid: '', name: '', scopeId: '', storeId: '', validationErrors: '' }); -``` diff --git a/.agents/skills/hooks-compute/references/get-all-tree-nodes-record.md b/.agents/skills/hooks-compute/references/get-all-tree-nodes-record.md index 4bd0d0c0bd..d7494a9f6d 100644 --- a/.agents/skills/hooks-compute/references/get-all-tree-nodes-record.md +++ b/.agents/skills/hooks-compute/references/get-all-tree-nodes-record.md @@ -8,7 +8,6 @@ React Query hooks for GetAllTreeNodesRecord data operations ```typescript useGetAllTreeNodesQuery({ selection: { fields: { data: true, path: true } } }) -useCreateGetAllTreeNodesRecordMutation({ selection: { fields: { id: true } } }) ``` ## Examples @@ -20,12 +19,3 @@ const { data, isLoading } = useGetAllTreeNodesQuery({ selection: { fields: { data: true, path: true } }, }); ``` - -### Create a getAllTreeNodesRecord - -```typescript -const { mutate } = useCreateGetAllTreeNodesRecordMutation({ - selection: { fields: { id: true } }, -}); -mutate({ data: '', path: '' }); -``` diff --git a/.agents/skills/hooks-compute/references/infra-get-all-tree-nodes-record.md b/.agents/skills/hooks-compute/references/infra-get-all-tree-nodes-record.md index 9da55ec5b2..9170bb9305 100644 --- a/.agents/skills/hooks-compute/references/infra-get-all-tree-nodes-record.md +++ b/.agents/skills/hooks-compute/references/infra-get-all-tree-nodes-record.md @@ -8,7 +8,6 @@ React Query hooks for InfraGetAllTreeNodesRecord data operations ```typescript useInfraGetAllTreeNodesQuery({ selection: { fields: { data: true, path: true } } }) -useCreateInfraGetAllTreeNodesRecordMutation({ selection: { fields: { id: true } } }) ``` ## Examples @@ -20,12 +19,3 @@ const { data, isLoading } = useInfraGetAllTreeNodesQuery({ selection: { fields: { data: true, path: true } }, }); ``` - -### Create a infraGetAllTreeNodesRecord - -```typescript -const { mutate } = useCreateInfraGetAllTreeNodesRecordMutation({ - selection: { fields: { id: true } }, -}); -mutate({ data: '', path: '' }); -``` diff --git a/.agents/skills/hooks-compute/references/integration-provider.md b/.agents/skills/hooks-compute/references/integration-provider.md index 52558b616c..876f048b52 100644 --- a/.agents/skills/hooks-compute/references/integration-provider.md +++ b/.agents/skills/hooks-compute/references/integration-provider.md @@ -7,8 +7,8 @@ Branded catalog of external service integrations and their canonical secret/conf ## Usage ```typescript -useIntegrationProvidersQuery({ selection: { fields: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, name: true, requiredConfigs: true, requiredSecrets: true, slug: true, updatedAt: true } } }) -useIntegrationProviderQuery({ id: '', selection: { fields: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, name: true, requiredConfigs: true, requiredSecrets: true, slug: true, updatedAt: true } } }) +useIntegrationProvidersQuery({ selection: { fields: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, logoUrl: true, logoVersions: true, name: true, requiredConfigs: true, requiredSecrets: true, slug: true, updatedAt: true } } }) +useIntegrationProviderQuery({ id: '', selection: { fields: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, logoUrl: true, logoVersions: true, name: true, requiredConfigs: true, requiredSecrets: true, slug: true, updatedAt: true } } }) useCreateIntegrationProviderMutation({ selection: { fields: { id: true } } }) useUpdateIntegrationProviderMutation({ selection: { fields: { id: true } } }) useDeleteIntegrationProviderMutation({}) @@ -20,7 +20,7 @@ useDeleteIntegrationProviderMutation({}) ```typescript const { data, isLoading } = useIntegrationProvidersQuery({ - selection: { fields: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, name: true, requiredConfigs: true, requiredSecrets: true, slug: true, updatedAt: true } }, + selection: { fields: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, logoUrl: true, logoVersions: true, name: true, requiredConfigs: true, requiredSecrets: true, slug: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useIntegrationProvidersQuery({ const { mutate } = useCreateIntegrationProviderMutation({ selection: { fields: { id: true } }, }); -mutate({ brand: '', category: '', description: '', icon: '', logo: '', name: '', requiredConfigs: '', requiredSecrets: '', slug: '' }); +mutate({ brand: '', category: '', description: '', icon: '', logo: '', logoUrl: '', logoVersions: '', name: '', requiredConfigs: '', requiredSecrets: '', slug: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/platform-build.md b/.agents/skills/hooks-compute/references/platform-build.md index cf60bcc0e1..7acfed9f89 100644 --- a/.agents/skills/hooks-compute/references/platform-build.md +++ b/.agents/skills/hooks-compute/references/platform-build.md @@ -7,8 +7,8 @@ One run of a repository workflow: its commit, its job, and what it produced ## Usage ```typescript -usePlatformBuildsQuery({ selection: { fields: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } } }) -usePlatformBuildQuery({ id: '', selection: { fields: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } } }) +usePlatformBuildsQuery({ selection: { fields: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, logsUrl: true, logsVersions: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } } }) +usePlatformBuildQuery({ id: '', selection: { fields: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, logsUrl: true, logsVersions: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } } }) useCreatePlatformBuildMutation({ selection: { fields: { id: true } } }) useUpdatePlatformBuildMutation({ selection: { fields: { id: true } } }) useDeletePlatformBuildMutation({}) @@ -20,7 +20,7 @@ useDeletePlatformBuildMutation({}) ```typescript const { data, isLoading } = usePlatformBuildsQuery({ - selection: { fields: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }, + selection: { fields: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, logsUrl: true, logsVersions: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePlatformBuildsQuery({ const { mutate } = useCreatePlatformBuildMutation({ selection: { fields: { id: true } }, }); -mutate({ actorId: '', attempt: '', commitSha: '', conclusion: '', createdByPrincipal: '', eventId: '', finishedAt: '', imageRef: '', jobId: '', logs: '', matrixKey: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }); +mutate({ actorId: '', attempt: '', commitSha: '', conclusion: '', createdByPrincipal: '', eventId: '', finishedAt: '', imageRef: '', jobId: '', logs: '', logsUrl: '', logsVersions: '', matrixKey: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/platform-infra-get-all-tree-nodes-record.md b/.agents/skills/hooks-compute/references/platform-infra-get-all-tree-nodes-record.md index bccdb05379..182cdab1f4 100644 --- a/.agents/skills/hooks-compute/references/platform-infra-get-all-tree-nodes-record.md +++ b/.agents/skills/hooks-compute/references/platform-infra-get-all-tree-nodes-record.md @@ -8,7 +8,6 @@ React Query hooks for PlatformInfraGetAllTreeNodesRecord data operations ```typescript usePlatformInfraGetAllTreeNodesQuery({ selection: { fields: { data: true, path: true } } }) -useCreatePlatformInfraGetAllTreeNodesRecordMutation({ selection: { fields: { id: true } } }) ``` ## Examples @@ -20,12 +19,3 @@ const { data, isLoading } = usePlatformInfraGetAllTreeNodesQuery({ selection: { fields: { data: true, path: true } }, }); ``` - -### Create a platformInfraGetAllTreeNodesRecord - -```typescript -const { mutate } = useCreatePlatformInfraGetAllTreeNodesRecordMutation({ - selection: { fields: { id: true } }, -}); -mutate({ data: '', path: '' }); -``` diff --git a/.agents/skills/hooks-compute/references/platform-proposal-comment.md b/.agents/skills/hooks-compute/references/platform-proposal-comment.md index 96b29d7bac..133810ca4c 100644 --- a/.agents/skills/hooks-compute/references/platform-proposal-comment.md +++ b/.agents/skills/hooks-compute/references/platform-proposal-comment.md @@ -7,8 +7,8 @@ Comments on a local proposal, optionally anchored to a line ## Usage ```typescript -usePlatformProposalCommentsQuery({ selection: { fields: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) -usePlatformProposalCommentQuery({ id: '', selection: { fields: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +usePlatformProposalCommentsQuery({ selection: { fields: { actorId: true, attachments: true, attachmentsUrl: true, attachmentsVersions: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +usePlatformProposalCommentQuery({ id: '', selection: { fields: { actorId: true, attachments: true, attachmentsUrl: true, attachmentsVersions: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) useCreatePlatformProposalCommentMutation({ selection: { fields: { id: true } } }) useUpdatePlatformProposalCommentMutation({ selection: { fields: { id: true } } }) useDeletePlatformProposalCommentMutation({}) @@ -20,7 +20,7 @@ useDeletePlatformProposalCommentMutation({}) ```typescript const { data, isLoading } = usePlatformProposalCommentsQuery({ - selection: { fields: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { actorId: true, attachments: true, attachmentsUrl: true, attachmentsVersions: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePlatformProposalCommentsQuery({ const { mutate } = useCreatePlatformProposalCommentMutation({ selection: { fields: { id: true } }, }); -mutate({ actorId: '', attachments: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }); +mutate({ actorId: '', attachments: '', attachmentsUrl: '', attachmentsVersions: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/platform-proposal.md b/.agents/skills/hooks-compute/references/platform-proposal.md index a0a959571e..de81418cfa 100644 --- a/.agents/skills/hooks-compute/references/platform-proposal.md +++ b/.agents/skills/hooks-compute/references/platform-proposal.md @@ -7,8 +7,8 @@ Proposals against a repository: issues, changes to merge, discussions and decisi ## Usage ```typescript -usePlatformProposalsQuery({ selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) -usePlatformProposalQuery({ id: '', selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +usePlatformProposalsQuery({ selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +usePlatformProposalQuery({ id: '', selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) useCreatePlatformProposalMutation({ selection: { fields: { id: true } } }) useUpdatePlatformProposalMutation({ selection: { fields: { id: true } } }) useDeletePlatformProposalMutation({}) @@ -20,7 +20,7 @@ useDeletePlatformProposalMutation({}) ```typescript const { data, isLoading } = usePlatformProposalsQuery({ - selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePlatformProposalsQuery({ const { mutate } = useCreatePlatformProposalMutation({ selection: { fields: { id: true } }, }); -mutate({ actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', decidedAt: '', dueAt: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }); +mutate({ actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', decidedAt: '', dueAt: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/platform-repository.md b/.agents/skills/hooks-compute/references/platform-repository.md index 7cab10e5de..ef3a3b5f4a 100644 --- a/.agents/skills/hooks-compute/references/platform-repository.md +++ b/.agents/skills/hooks-compute/references/platform-repository.md @@ -7,8 +7,8 @@ Source repositories, hosted locally or on an external provider ## Usage ```typescript -usePlatformRepositoriesQuery({ selection: { fields: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } } }) -usePlatformRepositoryQuery({ id: '', selection: { fields: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } } }) +usePlatformRepositoriesQuery({ selection: { fields: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } } }) +usePlatformRepositoryQuery({ id: '', selection: { fields: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } } }) useCreatePlatformRepositoryMutation({ selection: { fields: { id: true } } }) useUpdatePlatformRepositoryMutation({ selection: { fields: { id: true } } }) useDeletePlatformRepositoryMutation({}) @@ -20,7 +20,7 @@ useDeletePlatformRepositoryMutation({}) ```typescript const { data, isLoading } = usePlatformRepositoriesQuery({ - selection: { fields: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }, + selection: { fields: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePlatformRepositoriesQuery({ const { mutate } = useCreatePlatformRepositoryMutation({ selection: { fields: { id: true } }, }); -mutate({ cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }); +mutate({ cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/platform-resource-declared-capacity.md b/.agents/skills/hooks-compute/references/platform-resource-declared-capacity.md index 802a3d2f5a..58b0f21372 100644 --- a/.agents/skills/hooks-compute/references/platform-resource-declared-capacity.md +++ b/.agents/skills/hooks-compute/references/platform-resource-declared-capacity.md @@ -8,7 +8,6 @@ React Query hooks for PlatformResourceDeclaredCapacity data operations ```typescript usePlatformResourceDeclaredCapacitiesQuery({ selection: { fields: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true, storageTotalBytes: true } } }) -useCreatePlatformResourceDeclaredCapacityMutation({ selection: { fields: { id: true } } }) ``` ## Examples @@ -20,12 +19,3 @@ const { data, isLoading } = usePlatformResourceDeclaredCapacitiesQuery({ selection: { fields: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true, storageTotalBytes: true } }, }); ``` - -### Create a platformResourceDeclaredCapacity - -```typescript -const { mutate } = useCreatePlatformResourceDeclaredCapacityMutation({ - selection: { fields: { id: true } }, -}); -mutate({ cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '', storageTotalBytes: '' }); -``` diff --git a/.agents/skills/hooks-compute/references/platform-resource-observed-storage.md b/.agents/skills/hooks-compute/references/platform-resource-observed-storage.md index faa5c6c104..1647e7be6b 100644 --- a/.agents/skills/hooks-compute/references/platform-resource-observed-storage.md +++ b/.agents/skills/hooks-compute/references/platform-resource-observed-storage.md @@ -8,7 +8,6 @@ React Query hooks for PlatformResourceObservedStorage data operations ```typescript usePlatformResourceObservedStoragesQuery({ selection: { fields: { capacity: true, capacityBytes: true, claimName: true, declaredStorageClass: true, declaredStorageSizeBytes: true, declaredStorageTotalBytes: true, installationId: true, isBound: true, kind: true, namespaceId: true, phase: true, requested: true, requestedBytes: true, resourceId: true, resourceStatus: true, slug: true, storageClass: true, storageName: true } } }) -useCreatePlatformResourceObservedStorageMutation({ selection: { fields: { id: true } } }) ``` ## Examples @@ -20,12 +19,3 @@ const { data, isLoading } = usePlatformResourceObservedStoragesQuery({ selection: { fields: { capacity: true, capacityBytes: true, claimName: true, declaredStorageClass: true, declaredStorageSizeBytes: true, declaredStorageTotalBytes: true, installationId: true, isBound: true, kind: true, namespaceId: true, phase: true, requested: true, requestedBytes: true, resourceId: true, resourceStatus: true, slug: true, storageClass: true, storageName: true } }, }); ``` - -### Create a platformResourceObservedStorage - -```typescript -const { mutate } = useCreatePlatformResourceObservedStorageMutation({ - selection: { fields: { id: true } }, -}); -mutate({ capacity: '', capacityBytes: '', claimName: '', declaredStorageClass: '', declaredStorageSizeBytes: '', declaredStorageTotalBytes: '', installationId: '', isBound: '', kind: '', namespaceId: '', phase: '', requested: '', requestedBytes: '', resourceId: '', resourceStatus: '', slug: '', storageClass: '', storageName: '' }); -``` diff --git a/.agents/skills/hooks-compute/references/platform-resource-utilization.md b/.agents/skills/hooks-compute/references/platform-resource-utilization.md index 445ced6e91..2e0922da7c 100644 --- a/.agents/skills/hooks-compute/references/platform-resource-utilization.md +++ b/.agents/skills/hooks-compute/references/platform-resource-utilization.md @@ -8,7 +8,6 @@ React Query hooks for PlatformResourceUtilization data operations ```typescript usePlatformResourceUtilizationsQuery({ selection: { fields: { avgMemoryBytes: true, cpuLimitMillicores: true, cpuPeakUtilization: true, cpuRequestHeadroomMillicores: true, cpuRequestMillicores: true, date: true, gbSeconds: true, kind: true, maxCpuMillicores: true, maxMemoryBytes: true, memoryLimitBytes: true, memoryPeakUtilization: true, memoryRequestBytes: true, memoryRequestHeadroomBytes: true, namespaceId: true, replicas: true, resourceId: true, runtimeSeconds: true, sampleCount: true } } }) -useCreatePlatformResourceUtilizationMutation({ selection: { fields: { id: true } } }) ``` ## Examples @@ -20,12 +19,3 @@ const { data, isLoading } = usePlatformResourceUtilizationsQuery({ selection: { fields: { avgMemoryBytes: true, cpuLimitMillicores: true, cpuPeakUtilization: true, cpuRequestHeadroomMillicores: true, cpuRequestMillicores: true, date: true, gbSeconds: true, kind: true, maxCpuMillicores: true, maxMemoryBytes: true, memoryLimitBytes: true, memoryPeakUtilization: true, memoryRequestBytes: true, memoryRequestHeadroomBytes: true, namespaceId: true, replicas: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }, }); ``` - -### Create a platformResourceUtilization - -```typescript -const { mutate } = useCreatePlatformResourceUtilizationMutation({ - selection: { fields: { id: true } }, -}); -mutate({ avgMemoryBytes: '', cpuLimitMillicores: '', cpuPeakUtilization: '', cpuRequestHeadroomMillicores: '', cpuRequestMillicores: '', date: '', gbSeconds: '', kind: '', maxCpuMillicores: '', maxMemoryBytes: '', memoryLimitBytes: '', memoryPeakUtilization: '', memoryRequestBytes: '', memoryRequestHeadroomBytes: '', namespaceId: '', replicas: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }); -``` diff --git a/.agents/skills/hooks-compute/references/platform-resources-health.md b/.agents/skills/hooks-compute/references/platform-resources-health.md index 21c583cfbb..6febc521d2 100644 --- a/.agents/skills/hooks-compute/references/platform-resources-health.md +++ b/.agents/skills/hooks-compute/references/platform-resources-health.md @@ -9,7 +9,6 @@ React Query hooks for PlatformResourcesHealth data operations ```typescript usePlatformResourcesHealthsQuery({ selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) usePlatformResourcesHealthQuery({ id: '', selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) -useCreatePlatformResourcesHealthMutation({ selection: { fields: { id: true } } }) useUpdatePlatformResourcesHealthMutation({ selection: { fields: { id: true } } }) useDeletePlatformResourcesHealthMutation({}) ``` @@ -23,12 +22,3 @@ const { data, isLoading } = usePlatformResourcesHealthsQuery({ selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); ``` - -### Create a platformResourcesHealth - -```typescript -const { mutate } = useCreatePlatformResourcesHealthMutation({ - selection: { fields: { id: true } }, -}); -mutate({ annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }); -``` diff --git a/.agents/skills/hooks-compute/references/platform-resources-requirements-state.md b/.agents/skills/hooks-compute/references/platform-resources-requirements-state.md index 08a9e382f8..1ed8acb7be 100644 --- a/.agents/skills/hooks-compute/references/platform-resources-requirements-state.md +++ b/.agents/skills/hooks-compute/references/platform-resources-requirements-state.md @@ -8,7 +8,6 @@ React Query hooks for PlatformResourcesRequirementsState data operations ```typescript usePlatformResourcesRequirementsStatesQuery({ selection: { fields: { configHash: true, configObjectName: true, requirementsHash: true, resourceId: true, secretsHash: true, secretsObjectName: true, slug: true } } }) -useCreatePlatformResourcesRequirementsStateMutation({ selection: { fields: { id: true } } }) ``` ## Examples @@ -20,12 +19,3 @@ const { data, isLoading } = usePlatformResourcesRequirementsStatesQuery({ selection: { fields: { configHash: true, configObjectName: true, requirementsHash: true, resourceId: true, secretsHash: true, secretsObjectName: true, slug: true } }, }); ``` - -### Create a platformResourcesRequirementsState - -```typescript -const { mutate } = useCreatePlatformResourcesRequirementsStateMutation({ - selection: { fields: { id: true } }, -}); -mutate({ configHash: '', configObjectName: '', requirementsHash: '', resourceId: '', secretsHash: '', secretsObjectName: '', slug: '' }); -``` diff --git a/.agents/skills/hooks-compute/references/platform-resources-resolved-requirement.md b/.agents/skills/hooks-compute/references/platform-resources-resolved-requirement.md index 3a38f0b29c..7e461e350c 100644 --- a/.agents/skills/hooks-compute/references/platform-resources-resolved-requirement.md +++ b/.agents/skills/hooks-compute/references/platform-resources-resolved-requirement.md @@ -8,7 +8,6 @@ React Query hooks for PlatformResourcesResolvedRequirement data operations ```typescript usePlatformResourcesResolvedRequirementsQuery({ selection: { fields: { atomId: true, configObjectName: true, name: true, namespaceId: true, present: true, realm: true, required: true, requirementKind: true, resourceId: true, secretsObjectName: true, slug: true } } }) -useCreatePlatformResourcesResolvedRequirementMutation({ selection: { fields: { id: true } } }) ``` ## Examples @@ -20,12 +19,3 @@ const { data, isLoading } = usePlatformResourcesResolvedRequirementsQuery({ selection: { fields: { atomId: true, configObjectName: true, name: true, namespaceId: true, present: true, realm: true, required: true, requirementKind: true, resourceId: true, secretsObjectName: true, slug: true } }, }); ``` - -### Create a platformResourcesResolvedRequirement - -```typescript -const { mutate } = useCreatePlatformResourcesResolvedRequirementMutation({ - selection: { fields: { id: true } }, -}); -mutate({ atomId: '', configObjectName: '', name: '', namespaceId: '', present: '', realm: '', required: '', requirementKind: '', resourceId: '', secretsObjectName: '', slug: '' }); -``` diff --git a/.agents/skills/hooks-compute/references/platform-service-binding.md b/.agents/skills/hooks-compute/references/platform-service-binding.md new file mode 100644 index 0000000000..177616e9d3 --- /dev/null +++ b/.agents/skills/hooks-compute/references/platform-service-binding.md @@ -0,0 +1,34 @@ +# platformServiceBinding + + + +Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + +## Usage + +```typescript +usePlatformServiceBindingsQuery({ selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, installationScope: true, kind: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +usePlatformServiceBindingQuery({ id: '', selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, installationScope: true, kind: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useCreatePlatformServiceBindingMutation({ selection: { fields: { id: true } } }) +useUpdatePlatformServiceBindingMutation({ selection: { fields: { id: true } } }) +useDeletePlatformServiceBindingMutation({}) +``` + +## Examples + +### List all platformServiceBindings + +```typescript +const { data, isLoading } = usePlatformServiceBindingsQuery({ + selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, installationScope: true, kind: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); +``` + +### Create a platformServiceBinding + +```typescript +const { mutate } = useCreatePlatformServiceBindingMutation({ + selection: { fields: { id: true } }, +}); +mutate({ createdBy: '', createdByPrincipal: '', installationId: '', installationScope: '', kind: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }); +``` diff --git a/.agents/skills/hooks-compute/references/proposal-comment.md b/.agents/skills/hooks-compute/references/proposal-comment.md index 43828d4365..2563f9be2c 100644 --- a/.agents/skills/hooks-compute/references/proposal-comment.md +++ b/.agents/skills/hooks-compute/references/proposal-comment.md @@ -7,8 +7,8 @@ Comments on a local proposal, optionally anchored to a line ## Usage ```typescript -useProposalCommentsQuery({ selection: { fields: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) -useProposalCommentQuery({ id: '', selection: { fields: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useProposalCommentsQuery({ selection: { fields: { actorId: true, attachments: true, attachmentsUrl: true, attachmentsVersions: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useProposalCommentQuery({ id: '', selection: { fields: { actorId: true, attachments: true, attachmentsUrl: true, attachmentsVersions: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) useCreateProposalCommentMutation({ selection: { fields: { id: true } } }) useUpdateProposalCommentMutation({ selection: { fields: { id: true } } }) useDeleteProposalCommentMutation({}) @@ -20,7 +20,7 @@ useDeleteProposalCommentMutation({}) ```typescript const { data, isLoading } = useProposalCommentsQuery({ - selection: { fields: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { actorId: true, attachments: true, attachmentsUrl: true, attachmentsVersions: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useProposalCommentsQuery({ const { mutate } = useCreateProposalCommentMutation({ selection: { fields: { id: true } }, }); -mutate({ actorId: '', attachments: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }); +mutate({ actorId: '', attachments: '', attachmentsUrl: '', attachmentsVersions: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/proposal.md b/.agents/skills/hooks-compute/references/proposal.md index 1dabe08642..e3373de036 100644 --- a/.agents/skills/hooks-compute/references/proposal.md +++ b/.agents/skills/hooks-compute/references/proposal.md @@ -7,8 +7,8 @@ Proposals against a repository: issues, changes to merge, discussions and decisi ## Usage ```typescript -useProposalsQuery({ selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) -useProposalQuery({ id: '', selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useProposalsQuery({ selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useProposalQuery({ id: '', selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) useCreateProposalMutation({ selection: { fields: { id: true } } }) useUpdateProposalMutation({ selection: { fields: { id: true } } }) useDeleteProposalMutation({}) @@ -20,7 +20,7 @@ useDeleteProposalMutation({}) ```typescript const { data, isLoading } = useProposalsQuery({ - selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useProposalsQuery({ const { mutate } = useCreateProposalMutation({ selection: { fields: { id: true } }, }); -mutate({ actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', decidedAt: '', dueAt: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }); +mutate({ actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', decidedAt: '', dueAt: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/repository.md b/.agents/skills/hooks-compute/references/repository.md index 30eb2ec3f8..fbeadaf0de 100644 --- a/.agents/skills/hooks-compute/references/repository.md +++ b/.agents/skills/hooks-compute/references/repository.md @@ -7,8 +7,8 @@ Source repositories, hosted locally or on an external provider ## Usage ```typescript -useRepositoriesQuery({ selection: { fields: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } } }) -useRepositoryQuery({ id: '', selection: { fields: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } } }) +useRepositoriesQuery({ selection: { fields: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } } }) +useRepositoryQuery({ id: '', selection: { fields: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } } }) useCreateRepositoryMutation({ selection: { fields: { id: true } } }) useUpdateRepositoryMutation({ selection: { fields: { id: true } } }) useDeleteRepositoryMutation({}) @@ -20,7 +20,7 @@ useDeleteRepositoryMutation({}) ```typescript const { data, isLoading } = useRepositoriesQuery({ - selection: { fields: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }, + selection: { fields: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useRepositoriesQuery({ const { mutate } = useCreateRepositoryMutation({ selection: { fields: { id: true } }, }); -mutate({ cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }); +mutate({ cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }); ``` diff --git a/.agents/skills/hooks-compute/references/resource-declared-capacity.md b/.agents/skills/hooks-compute/references/resource-declared-capacity.md index e2a64d8ac9..10bc429200 100644 --- a/.agents/skills/hooks-compute/references/resource-declared-capacity.md +++ b/.agents/skills/hooks-compute/references/resource-declared-capacity.md @@ -8,7 +8,6 @@ React Query hooks for ResourceDeclaredCapacity data operations ```typescript useResourceDeclaredCapacitiesQuery({ selection: { fields: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true, storageTotalBytes: true } } }) -useCreateResourceDeclaredCapacityMutation({ selection: { fields: { id: true } } }) ``` ## Examples @@ -20,12 +19,3 @@ const { data, isLoading } = useResourceDeclaredCapacitiesQuery({ selection: { fields: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true, storageTotalBytes: true } }, }); ``` - -### Create a resourceDeclaredCapacity - -```typescript -const { mutate } = useCreateResourceDeclaredCapacityMutation({ - selection: { fields: { id: true } }, -}); -mutate({ cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '', storageTotalBytes: '' }); -``` diff --git a/.agents/skills/hooks-compute/references/resource-observed-storage.md b/.agents/skills/hooks-compute/references/resource-observed-storage.md index c16534b2a5..89ea7c0ce9 100644 --- a/.agents/skills/hooks-compute/references/resource-observed-storage.md +++ b/.agents/skills/hooks-compute/references/resource-observed-storage.md @@ -8,7 +8,6 @@ React Query hooks for ResourceObservedStorage data operations ```typescript useResourceObservedStoragesQuery({ selection: { fields: { capacity: true, capacityBytes: true, claimName: true, declaredStorageClass: true, declaredStorageSizeBytes: true, declaredStorageTotalBytes: true, installationId: true, isBound: true, kind: true, namespaceId: true, phase: true, requested: true, requestedBytes: true, resourceId: true, resourceStatus: true, slug: true, storageClass: true, storageName: true } } }) -useCreateResourceObservedStorageMutation({ selection: { fields: { id: true } } }) ``` ## Examples @@ -20,12 +19,3 @@ const { data, isLoading } = useResourceObservedStoragesQuery({ selection: { fields: { capacity: true, capacityBytes: true, claimName: true, declaredStorageClass: true, declaredStorageSizeBytes: true, declaredStorageTotalBytes: true, installationId: true, isBound: true, kind: true, namespaceId: true, phase: true, requested: true, requestedBytes: true, resourceId: true, resourceStatus: true, slug: true, storageClass: true, storageName: true } }, }); ``` - -### Create a resourceObservedStorage - -```typescript -const { mutate } = useCreateResourceObservedStorageMutation({ - selection: { fields: { id: true } }, -}); -mutate({ capacity: '', capacityBytes: '', claimName: '', declaredStorageClass: '', declaredStorageSizeBytes: '', declaredStorageTotalBytes: '', installationId: '', isBound: '', kind: '', namespaceId: '', phase: '', requested: '', requestedBytes: '', resourceId: '', resourceStatus: '', slug: '', storageClass: '', storageName: '' }); -``` diff --git a/.agents/skills/hooks-compute/references/resource-utilization.md b/.agents/skills/hooks-compute/references/resource-utilization.md index bac248c8da..91e193d03c 100644 --- a/.agents/skills/hooks-compute/references/resource-utilization.md +++ b/.agents/skills/hooks-compute/references/resource-utilization.md @@ -8,7 +8,6 @@ React Query hooks for ResourceUtilization data operations ```typescript useResourceUtilizationsQuery({ selection: { fields: { avgMemoryBytes: true, cpuLimitMillicores: true, cpuPeakUtilization: true, cpuRequestHeadroomMillicores: true, cpuRequestMillicores: true, date: true, gbSeconds: true, kind: true, maxCpuMillicores: true, maxMemoryBytes: true, memoryLimitBytes: true, memoryPeakUtilization: true, memoryRequestBytes: true, memoryRequestHeadroomBytes: true, namespaceId: true, replicas: true, resourceId: true, runtimeSeconds: true, sampleCount: true } } }) -useCreateResourceUtilizationMutation({ selection: { fields: { id: true } } }) ``` ## Examples @@ -20,12 +19,3 @@ const { data, isLoading } = useResourceUtilizationsQuery({ selection: { fields: { avgMemoryBytes: true, cpuLimitMillicores: true, cpuPeakUtilization: true, cpuRequestHeadroomMillicores: true, cpuRequestMillicores: true, date: true, gbSeconds: true, kind: true, maxCpuMillicores: true, maxMemoryBytes: true, memoryLimitBytes: true, memoryPeakUtilization: true, memoryRequestBytes: true, memoryRequestHeadroomBytes: true, namespaceId: true, replicas: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }, }); ``` - -### Create a resourceUtilization - -```typescript -const { mutate } = useCreateResourceUtilizationMutation({ - selection: { fields: { id: true } }, -}); -mutate({ avgMemoryBytes: '', cpuLimitMillicores: '', cpuPeakUtilization: '', cpuRequestHeadroomMillicores: '', cpuRequestMillicores: '', date: '', gbSeconds: '', kind: '', maxCpuMillicores: '', maxMemoryBytes: '', memoryLimitBytes: '', memoryPeakUtilization: '', memoryRequestBytes: '', memoryRequestHeadroomBytes: '', namespaceId: '', replicas: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }); -``` diff --git a/.agents/skills/hooks-compute/references/resources-health.md b/.agents/skills/hooks-compute/references/resources-health.md index 014be82473..608751c439 100644 --- a/.agents/skills/hooks-compute/references/resources-health.md +++ b/.agents/skills/hooks-compute/references/resources-health.md @@ -9,7 +9,6 @@ React Query hooks for ResourcesHealth data operations ```typescript useResourcesHealthsQuery({ selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) useResourcesHealthQuery({ id: '', selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) -useCreateResourcesHealthMutation({ selection: { fields: { id: true } } }) useUpdateResourcesHealthMutation({ selection: { fields: { id: true } } }) useDeleteResourcesHealthMutation({}) ``` @@ -23,12 +22,3 @@ const { data, isLoading } = useResourcesHealthsQuery({ selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); ``` - -### Create a resourcesHealth - -```typescript -const { mutate } = useCreateResourcesHealthMutation({ - selection: { fields: { id: true } }, -}); -mutate({ annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }); -``` diff --git a/.agents/skills/hooks-compute/references/resources-requirements-state.md b/.agents/skills/hooks-compute/references/resources-requirements-state.md index b9837f47dc..50f89fc072 100644 --- a/.agents/skills/hooks-compute/references/resources-requirements-state.md +++ b/.agents/skills/hooks-compute/references/resources-requirements-state.md @@ -8,7 +8,6 @@ React Query hooks for ResourcesRequirementsState data operations ```typescript useResourcesRequirementsStatesQuery({ selection: { fields: { configHash: true, configObjectName: true, requirementsHash: true, resourceId: true, secretsHash: true, secretsObjectName: true, slug: true } } }) -useCreateResourcesRequirementsStateMutation({ selection: { fields: { id: true } } }) ``` ## Examples @@ -20,12 +19,3 @@ const { data, isLoading } = useResourcesRequirementsStatesQuery({ selection: { fields: { configHash: true, configObjectName: true, requirementsHash: true, resourceId: true, secretsHash: true, secretsObjectName: true, slug: true } }, }); ``` - -### Create a resourcesRequirementsState - -```typescript -const { mutate } = useCreateResourcesRequirementsStateMutation({ - selection: { fields: { id: true } }, -}); -mutate({ configHash: '', configObjectName: '', requirementsHash: '', resourceId: '', secretsHash: '', secretsObjectName: '', slug: '' }); -``` diff --git a/.agents/skills/hooks-compute/references/resources-resolved-requirement.md b/.agents/skills/hooks-compute/references/resources-resolved-requirement.md index 57db567f6d..491764d4d8 100644 --- a/.agents/skills/hooks-compute/references/resources-resolved-requirement.md +++ b/.agents/skills/hooks-compute/references/resources-resolved-requirement.md @@ -8,7 +8,6 @@ React Query hooks for ResourcesResolvedRequirement data operations ```typescript useResourcesResolvedRequirementsQuery({ selection: { fields: { atomId: true, configObjectName: true, name: true, namespaceId: true, present: true, realm: true, required: true, requirementKind: true, resourceId: true, secretsObjectName: true, slug: true } } }) -useCreateResourcesResolvedRequirementMutation({ selection: { fields: { id: true } } }) ``` ## Examples @@ -20,12 +19,3 @@ const { data, isLoading } = useResourcesResolvedRequirementsQuery({ selection: { fields: { atomId: true, configObjectName: true, name: true, namespaceId: true, present: true, realm: true, required: true, requirementKind: true, resourceId: true, secretsObjectName: true, slug: true } }, }); ``` - -### Create a resourcesResolvedRequirement - -```typescript -const { mutate } = useCreateResourcesResolvedRequirementMutation({ - selection: { fields: { id: true } }, -}); -mutate({ atomId: '', configObjectName: '', name: '', namespaceId: '', present: '', realm: '', required: '', requirementKind: '', resourceId: '', secretsObjectName: '', slug: '' }); -``` diff --git a/.agents/skills/hooks-compute/references/service-binding.md b/.agents/skills/hooks-compute/references/service-binding.md new file mode 100644 index 0000000000..4728410b9b --- /dev/null +++ b/.agents/skills/hooks-compute/references/service-binding.md @@ -0,0 +1,34 @@ +# serviceBinding + + + +Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + +## Usage + +```typescript +useServiceBindingsQuery({ selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, installationScope: true, kind: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useServiceBindingQuery({ id: '', selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, installationScope: true, kind: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } } }) +useCreateServiceBindingMutation({ selection: { fields: { id: true } } }) +useUpdateServiceBindingMutation({ selection: { fields: { id: true } } }) +useDeleteServiceBindingMutation({}) +``` + +## Examples + +### List all serviceBindings + +```typescript +const { data, isLoading } = useServiceBindingsQuery({ + selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, installationScope: true, kind: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); +``` + +### Create a serviceBinding + +```typescript +const { mutate } = useCreateServiceBindingMutation({ + selection: { fields: { id: true } }, +}); +mutate({ createdBy: '', createdByPrincipal: '', databaseId: '', installationId: '', installationScope: '', kind: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }); +``` diff --git a/.agents/skills/hooks-config/references/app-internal-secret.md b/.agents/skills/hooks-config/references/app-internal-secret.md index 6c18c578d1..716713247e 100644 --- a/.agents/skills/hooks-config/references/app-internal-secret.md +++ b/.agents/skills/hooks-config/references/app-internal-secret.md @@ -9,7 +9,6 @@ React Query hooks for AppInternalSecret data operations ```typescript useAppInternalSecretsQuery({ selection: { fields: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } } }) useAppInternalSecretQuery({ id: '', selection: { fields: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } } }) -useCreateAppInternalSecretMutation({ selection: { fields: { id: true } } }) useUpdateAppInternalSecretMutation({ selection: { fields: { id: true } } }) useDeleteAppInternalSecretMutation({}) ``` @@ -23,12 +22,3 @@ const { data, isLoading } = useAppInternalSecretsQuery({ selection: { fields: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }, }); ``` - -### Create a appInternalSecret - -```typescript -const { mutate } = useCreateAppInternalSecretMutation({ - selection: { fields: { id: true } }, -}); -mutate({ annotations: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }); -``` diff --git a/.agents/skills/hooks-config/references/internal-secret.md b/.agents/skills/hooks-config/references/internal-secret.md index 3f1ccf4c46..0db404a984 100644 --- a/.agents/skills/hooks-config/references/internal-secret.md +++ b/.agents/skills/hooks-config/references/internal-secret.md @@ -9,7 +9,6 @@ React Query hooks for InternalSecret data operations ```typescript useInternalSecretsQuery({ selection: { fields: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } } }) useInternalSecretQuery({ id: '', selection: { fields: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } } }) -useCreateInternalSecretMutation({ selection: { fields: { id: true } } }) useUpdateInternalSecretMutation({ selection: { fields: { id: true } } }) useDeleteInternalSecretMutation({}) ``` @@ -23,12 +22,3 @@ const { data, isLoading } = useInternalSecretsQuery({ selection: { fields: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }, }); ``` - -### Create a internalSecret - -```typescript -const { mutate } = useCreateInternalSecretMutation({ - selection: { fields: { id: true } }, -}); -mutate({ annotations: '', databaseId: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }); -``` diff --git a/.agents/skills/hooks-config/references/platform-internal-secret.md b/.agents/skills/hooks-config/references/platform-internal-secret.md index d305bbbd27..2b3ddec3c0 100644 --- a/.agents/skills/hooks-config/references/platform-internal-secret.md +++ b/.agents/skills/hooks-config/references/platform-internal-secret.md @@ -9,7 +9,6 @@ React Query hooks for PlatformInternalSecret data operations ```typescript usePlatformInternalSecretsQuery({ selection: { fields: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } } }) usePlatformInternalSecretQuery({ id: '', selection: { fields: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } } }) -useCreatePlatformInternalSecretMutation({ selection: { fields: { id: true } } }) useUpdatePlatformInternalSecretMutation({ selection: { fields: { id: true } } }) useDeletePlatformInternalSecretMutation({}) ``` @@ -23,12 +22,3 @@ const { data, isLoading } = usePlatformInternalSecretsQuery({ selection: { fields: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }, }); ``` - -### Create a platformInternalSecret - -```typescript -const { mutate } = useCreatePlatformInternalSecretMutation({ - selection: { fields: { id: true } }, -}); -mutate({ annotations: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }); -``` diff --git a/.agents/skills/hooks-config/references/platform-secret.md b/.agents/skills/hooks-config/references/platform-secret.md index a5e119597a..f1d43d5497 100644 --- a/.agents/skills/hooks-config/references/platform-secret.md +++ b/.agents/skills/hooks-config/references/platform-secret.md @@ -9,7 +9,6 @@ React Query hooks for PlatformSecret data operations ```typescript usePlatformSecretsQuery({ selection: { fields: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } } }) usePlatformSecretQuery({ id: '', selection: { fields: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } } }) -useCreatePlatformSecretMutation({ selection: { fields: { id: true } } }) useUpdatePlatformSecretMutation({ selection: { fields: { id: true } } }) useDeletePlatformSecretMutation({}) ``` @@ -23,12 +22,3 @@ const { data, isLoading } = usePlatformSecretsQuery({ selection: { fields: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }, }); ``` - -### Create a platformSecret - -```typescript -const { mutate } = useCreatePlatformSecretMutation({ - selection: { fields: { id: true } }, -}); -mutate({ annotations: '', description: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', retiredAt: '', rotatedAt: '' }); -``` diff --git a/.agents/skills/hooks-config/references/secret.md b/.agents/skills/hooks-config/references/secret.md index 9a91078106..a26a0b7353 100644 --- a/.agents/skills/hooks-config/references/secret.md +++ b/.agents/skills/hooks-config/references/secret.md @@ -9,7 +9,6 @@ React Query hooks for Secret data operations ```typescript useSecretsQuery({ selection: { fields: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } } }) useSecretQuery({ id: '', selection: { fields: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } } }) -useCreateSecretMutation({ selection: { fields: { id: true } } }) useUpdateSecretMutation({ selection: { fields: { id: true } } }) useDeleteSecretMutation({}) ``` @@ -23,12 +22,3 @@ const { data, isLoading } = useSecretsQuery({ selection: { fields: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }, }); ``` - -### Create a secret - -```typescript -const { mutate } = useCreateSecretMutation({ - selection: { fields: { id: true } }, -}); -mutate({ annotations: '', databaseId: '', description: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', retiredAt: '', rotatedAt: '' }); -``` diff --git a/.agents/skills/hooks-infra/references/platform-infra-get-all-tree-nodes-record.md b/.agents/skills/hooks-infra/references/platform-infra-get-all-tree-nodes-record.md index bccdb05379..182cdab1f4 100644 --- a/.agents/skills/hooks-infra/references/platform-infra-get-all-tree-nodes-record.md +++ b/.agents/skills/hooks-infra/references/platform-infra-get-all-tree-nodes-record.md @@ -8,7 +8,6 @@ React Query hooks for PlatformInfraGetAllTreeNodesRecord data operations ```typescript usePlatformInfraGetAllTreeNodesQuery({ selection: { fields: { data: true, path: true } } }) -useCreatePlatformInfraGetAllTreeNodesRecordMutation({ selection: { fields: { id: true } } }) ``` ## Examples @@ -20,12 +19,3 @@ const { data, isLoading } = usePlatformInfraGetAllTreeNodesQuery({ selection: { fields: { data: true, path: true } }, }); ``` - -### Create a platformInfraGetAllTreeNodesRecord - -```typescript -const { mutate } = useCreatePlatformInfraGetAllTreeNodesRecordMutation({ - selection: { fields: { id: true } }, -}); -mutate({ data: '', path: '' }); -``` diff --git a/.agents/skills/hooks-modules/references/blueprint-construction.md b/.agents/skills/hooks-modules/references/blueprint-construction.md index 62644e566a..84f4a51edf 100644 --- a/.agents/skills/hooks-modules/references/blueprint-construction.md +++ b/.agents/skills/hooks-modules/references/blueprint-construction.md @@ -2,13 +2,13 @@ -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. +Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. 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, including failed ones. ## Usage ```typescript -useBlueprintConstructionsQuery({ selection: { fields: { blueprintId: true, constructedAt: true, constructedDefinition: true, createdAt: true, databaseId: true, id: true, schemaId: true, status: true, tableMap: true, updatedAt: true } } }) -useBlueprintConstructionQuery({ id: '', selection: { fields: { blueprintId: true, constructedAt: true, constructedDefinition: true, createdAt: true, databaseId: true, id: true, schemaId: true, status: true, tableMap: true, updatedAt: true } } }) +useBlueprintConstructionsQuery({ selection: { fields: { blueprintId: true, constructedAt: true, constructedDefinition: true, createdAt: true, databaseId: true, error: true, id: true, schemaId: true, status: true, tableMap: true, updatedAt: true } } }) +useBlueprintConstructionQuery({ id: '', selection: { fields: { blueprintId: true, constructedAt: true, constructedDefinition: true, createdAt: true, databaseId: true, error: true, id: true, schemaId: true, status: true, tableMap: true, updatedAt: true } } }) useCreateBlueprintConstructionMutation({ selection: { fields: { id: true } } }) useUpdateBlueprintConstructionMutation({ selection: { fields: { id: true } } }) useDeleteBlueprintConstructionMutation({}) @@ -20,7 +20,7 @@ useDeleteBlueprintConstructionMutation({}) ```typescript const { data, isLoading } = useBlueprintConstructionsQuery({ - selection: { fields: { blueprintId: true, constructedAt: true, constructedDefinition: true, createdAt: true, databaseId: true, id: true, schemaId: true, status: true, tableMap: true, updatedAt: true } }, + selection: { fields: { blueprintId: true, constructedAt: true, constructedDefinition: true, createdAt: true, databaseId: true, error: true, id: true, schemaId: true, status: true, tableMap: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useBlueprintConstructionsQuery({ const { mutate } = useCreateBlueprintConstructionMutation({ selection: { fields: { id: true } }, }); -mutate({ blueprintId: '', constructedAt: '', constructedDefinition: '', databaseId: '', schemaId: '', status: '', tableMap: '' }); +mutate({ blueprintId: '', constructedAt: '', constructedDefinition: '', databaseId: '', error: '', schemaId: '', status: '', tableMap: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/construct-blueprint.md b/.agents/skills/hooks-modules/references/construct-blueprint.md index d36ddac233..c6f310ce01 100644 --- a/.agents/skills/hooks-modules/references/construct-blueprint.md +++ b/.agents/skills/hooks-modules/references/construct-blueprint.md @@ -2,7 +2,7 @@ -Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). A table entry either names its table (table_name plus optional schema_name) or references one an installed module generated ("module": {"type": "agent", "scope": "org", "table": "message"}), which resolves through the module row's recorded table ids and raises when it matches nothing instead of creating an empty table. After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID. A failure raises its coded error to the caller and rolls back the whole construction, including the construction record. +Requests a build of a blueprint: snapshots its definition into a pending blueprint_construction row, enqueues the blueprint:construct job that runs metaschema_private.construct_blueprint_run on it, and returns the construction id immediately. Poll the row: pending -> constructing -> constructed (table_map populated) or failed (error holds the coded error). schema_id is the default schema for tables without an explicit schema_name. ## Usage diff --git a/.agents/skills/hooks-modules/references/db-usage-module.md b/.agents/skills/hooks-modules/references/db-usage-module.md index f97d403ca7..a7608b7059 100644 --- a/.agents/skills/hooks-modules/references/db-usage-module.md +++ b/.agents/skills/hooks-modules/references/db-usage-module.md @@ -7,8 +7,8 @@ React Query hooks for DbUsageModule data operations ## Usage ```typescript -useDbUsageModulesQuery({ selection: { fields: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } } }) -useDbUsageModuleQuery({ id: '', selection: { fields: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } } }) +useDbUsageModulesQuery({ selection: { fields: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, readDbQueryStatsUsagePeriodFunction: true, readDbTableStatsUsagePeriodFunction: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } } }) +useDbUsageModuleQuery({ id: '', selection: { fields: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, readDbQueryStatsUsagePeriodFunction: true, readDbTableStatsUsagePeriodFunction: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } } }) useCreateDbUsageModuleMutation({ selection: { fields: { id: true } } }) useUpdateDbUsageModuleMutation({ selection: { fields: { id: true } } }) useDeleteDbUsageModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteDbUsageModuleMutation({}) ```typescript const { data, isLoading } = useDbUsageModulesQuery({ - selection: { fields: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }, + selection: { fields: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, readDbQueryStatsUsagePeriodFunction: true, readDbTableStatsUsagePeriodFunction: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useDbUsageModulesQuery({ const { mutate } = useCreateDbUsageModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ apiName: '', collectDbQueryStatsFunction: '', collectDbTableStatsFunction: '', databaseId: '', defaultCapabilities: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsSummaryTableId: '', queryStatsSummaryTableName: '', retention: '', rollupDbQueryStatsUsageSummaryFunction: '', rollupDbTableStatsUsageSummaryFunction: '', schemaId: '', scope: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsSummaryTableId: '', tableStatsSummaryTableName: '' }); +mutate({ apiName: '', collectDbQueryStatsFunction: '', collectDbTableStatsFunction: '', databaseId: '', defaultCapabilities: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsSummaryTableId: '', queryStatsSummaryTableName: '', readDbQueryStatsUsagePeriodFunction: '', readDbTableStatsUsagePeriodFunction: '', retention: '', rollupDbQueryStatsUsageSummaryFunction: '', rollupDbTableStatsUsageSummaryFunction: '', schemaId: '', scope: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsSummaryTableId: '', tableStatsSummaryTableName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/domain-module.md b/.agents/skills/hooks-modules/references/domain-module.md index 0eb8fd223c..bb4e4ebc40 100644 --- a/.agents/skills/hooks-modules/references/domain-module.md +++ b/.agents/skills/hooks-modules/references/domain-module.md @@ -7,8 +7,8 @@ React Query hooks for DomainModule data operations ## Usage ```typescript -useDomainModulesQuery({ selection: { fields: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } } }) -useDomainModuleQuery({ id: '', selection: { fields: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } } }) +useDomainModulesQuery({ selection: { fields: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, defaultReservedSubdomains: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, reservedSubdomainsTableId: true, reservedSubdomainsTableName: true, schemaId: true, scope: true, sweepUnverifiedDomainsFunction: true } } }) +useDomainModuleQuery({ id: '', selection: { fields: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, defaultReservedSubdomains: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, reservedSubdomainsTableId: true, reservedSubdomainsTableName: true, schemaId: true, scope: true, sweepUnverifiedDomainsFunction: true } } }) useCreateDomainModuleMutation({ selection: { fields: { id: true } } }) useUpdateDomainModuleMutation({ selection: { fields: { id: true } } }) useDeleteDomainModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteDomainModuleMutation({}) ```typescript const { data, isLoading } = useDomainModulesQuery({ - selection: { fields: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }, + selection: { fields: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, defaultReservedSubdomains: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, reservedSubdomainsTableId: true, reservedSubdomainsTableName: true, schemaId: true, scope: true, sweepUnverifiedDomainsFunction: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useDomainModulesQuery({ const { mutate } = useCreateDomainModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ apiName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', domainEventsTableId: '', domainEventsTableName: '', domainVerificationsTableId: '', domainVerificationsTableName: '', domainsTableId: '', domainsTableName: '', entityField: '', entityTableId: '', managedDomainsTableId: '', managedDomainsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }); +mutate({ apiName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', defaultReservedSubdomains: '', domainEventsTableId: '', domainEventsTableName: '', domainVerificationsTableId: '', domainVerificationsTableName: '', domainsTableId: '', domainsTableName: '', entityField: '', entityTableId: '', managedDomainsTableId: '', managedDomainsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', reservedSubdomainsTableId: '', reservedSubdomainsTableName: '', schemaId: '', scope: '', sweepUnverifiedDomainsFunction: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/resource-module.md b/.agents/skills/hooks-modules/references/resource-module.md index 547951ab8c..91bfc86b40 100644 --- a/.agents/skills/hooks-modules/references/resource-module.md +++ b/.agents/skills/hooks-modules/references/resource-module.md @@ -7,8 +7,8 @@ React Query hooks for ResourceModule data operations ## Usage ```typescript -useResourceModulesQuery({ selection: { fields: { apiName: true, builderBindingsTableId: true, builderBindingsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registryBindingsTableId: true, registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true } } }) -useResourceModuleQuery({ id: '', selection: { fields: { apiName: true, builderBindingsTableId: true, builderBindingsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registryBindingsTableId: true, registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true } } }) +useResourceModulesQuery({ selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registryBindingsTableId: true, registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true, serviceBindingsTableId: true, serviceBindingsTableName: true } } }) +useResourceModuleQuery({ id: '', selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registryBindingsTableId: true, registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true, serviceBindingsTableId: true, serviceBindingsTableName: true } } }) useCreateResourceModuleMutation({ selection: { fields: { id: true } } }) useUpdateResourceModuleMutation({ selection: { fields: { id: true } } }) useDeleteResourceModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteResourceModuleMutation({}) ```typescript const { data, isLoading } = useResourceModulesQuery({ - selection: { fields: { apiName: true, builderBindingsTableId: true, builderBindingsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registryBindingsTableId: true, registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true } }, + selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registryBindingsTableId: true, registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true, serviceBindingsTableId: true, serviceBindingsTableName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useResourceModulesQuery({ const { mutate } = useCreateResourceModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ apiName: '', builderBindingsTableId: '', builderBindingsTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', registryBindingsTableId: '', registryBindingsTableName: '', requirementsStateViewName: '', resolvedRequirementsViewName: '', resourceBillingRollupFunction: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceEventsTableId: '', resourceEventsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourceStatusChecksTableId: '', resourceStatusChecksTableName: '', resourceUsageLogTableId: '', resourceUsageLogTableName: '', resourceUsageSummaryTableId: '', resourceUsageSummaryTableName: '', resourcesTableId: '', resourcesTableName: '', rollupResourceUsageSummaryFunction: '', schemaId: '', scope: '' }); +mutate({ apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', registryBindingsTableId: '', registryBindingsTableName: '', requirementsStateViewName: '', resolvedRequirementsViewName: '', resourceBillingRollupFunction: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceEventsTableId: '', resourceEventsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourceStatusChecksTableId: '', resourceStatusChecksTableName: '', resourceUsageLogTableId: '', resourceUsageLogTableName: '', resourceUsageSummaryTableId: '', resourceUsageSummaryTableName: '', resourcesTableId: '', resourcesTableName: '', rollupResourceUsageSummaryFunction: '', schemaId: '', scope: '', serviceBindingsTableId: '', serviceBindingsTableName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/storage-log-module.md b/.agents/skills/hooks-modules/references/storage-log-module.md index ee5d76203a..4ef56b12da 100644 --- a/.agents/skills/hooks-modules/references/storage-log-module.md +++ b/.agents/skills/hooks-modules/references/storage-log-module.md @@ -7,8 +7,8 @@ React Query hooks for StorageLogModule data operations ## Usage ```typescript -useStorageLogModulesQuery({ selection: { fields: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } } }) -useStorageLogModuleQuery({ id: '', selection: { fields: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } } }) +useStorageLogModulesQuery({ selection: { fields: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, readStorageUsagePeriodFunction: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } } }) +useStorageLogModuleQuery({ id: '', selection: { fields: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, readStorageUsagePeriodFunction: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } } }) useCreateStorageLogModuleMutation({ selection: { fields: { id: true } } }) useUpdateStorageLogModuleMutation({ selection: { fields: { id: true } } }) useDeleteStorageLogModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteStorageLogModuleMutation({}) ```typescript const { data, isLoading } = useStorageLogModulesQuery({ - selection: { fields: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }, + selection: { fields: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, readStorageUsagePeriodFunction: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useStorageLogModulesQuery({ const { mutate } = useCreateStorageLogModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ apiName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', storageLogTableId: '', storageLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }); +mutate({ apiName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', readStorageUsagePeriodFunction: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', storageLogTableId: '', storageLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/storage-module.md b/.agents/skills/hooks-modules/references/storage-module.md index 772da59447..e2979b54b8 100644 --- a/.agents/skills/hooks-modules/references/storage-module.md +++ b/.agents/skills/hooks-modules/references/storage-module.md @@ -7,8 +7,8 @@ React Query hooks for StorageModule data operations ## Usage ```typescript -useStorageModulesQuery({ selection: { fields: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } } }) -useStorageModuleQuery({ id: '', selection: { fields: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } } }) +useStorageModulesQuery({ selection: { fields: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } } }) +useStorageModuleQuery({ id: '', selection: { fields: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } } }) useCreateStorageModuleMutation({ selection: { fields: { id: true } } }) useUpdateStorageModuleMutation({ selection: { fields: { id: true } } }) useDeleteStorageModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteStorageModuleMutation({}) ```typescript const { data, isLoading } = useStorageModulesQuery({ - selection: { fields: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }, + selection: { fields: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useStorageModulesQuery({ const { mutate } = useCreateStorageModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasConfirmUpload: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', key: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', region: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }); +mutate({ allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', key: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', region: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }); ``` diff --git a/.agents/skills/hooks-objects/references/get-all-tree-nodes-record.md b/.agents/skills/hooks-objects/references/get-all-tree-nodes-record.md index 4bd0d0c0bd..d7494a9f6d 100644 --- a/.agents/skills/hooks-objects/references/get-all-tree-nodes-record.md +++ b/.agents/skills/hooks-objects/references/get-all-tree-nodes-record.md @@ -8,7 +8,6 @@ React Query hooks for GetAllTreeNodesRecord data operations ```typescript useGetAllTreeNodesQuery({ selection: { fields: { data: true, path: true } } }) -useCreateGetAllTreeNodesRecordMutation({ selection: { fields: { id: true } } }) ``` ## Examples @@ -20,12 +19,3 @@ const { data, isLoading } = useGetAllTreeNodesQuery({ selection: { fields: { data: true, path: true } }, }); ``` - -### Create a getAllTreeNodesRecord - -```typescript -const { mutate } = useCreateGetAllTreeNodesRecordMutation({ - selection: { fields: { id: true } }, -}); -mutate({ data: '', path: '' }); -``` diff --git a/.agents/skills/hooks-remote/SKILL.md b/.agents/skills/hooks-remote/SKILL.md index 5bc8c15fc0..5550704686 100644 --- a/.agents/skills/hooks-remote/SKILL.md +++ b/.agents/skills/hooks-remote/SKILL.md @@ -1,13 +1,13 @@ --- name: hooks-remote -description: React Query hooks for the remote API — provides typed query and mutation hooks for 3 tables and 2 custom operations +description: React Query hooks for the remote API — provides typed query and mutation hooks for 3 tables and 3 custom operations --- # hooks-remote -React Query hooks for the remote API — provides typed query and mutation hooks for 3 tables and 2 custom operations +React Query hooks for the remote API — provides typed query and mutation hooks for 3 tables and 3 custom operations ## Usage @@ -41,5 +41,6 @@ See the `references/` directory for detailed per-entity API documentation: - [machine](references/machine.md) - [machine-message](references/machine-message.md) - [machine-session](references/machine-session.md) +- [current-database-id](references/current-database-id.md) - [machines-enroll](references/machines-enroll.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/hooks-remote/references/current-database-id.md b/.agents/skills/hooks-remote/references/current-database-id.md new file mode 100644 index 0000000000..072139e50f --- /dev/null +++ b/.agents/skills/hooks-remote/references/current-database-id.md @@ -0,0 +1,19 @@ +# currentDatabaseId + + + +React Query query hook for currentDatabaseId + +## Usage + +```typescript +useCurrentDatabaseIdQuery() +``` + +## Examples + +### Use useCurrentDatabaseIdQuery + +```typescript +const { data, isLoading } = useCurrentDatabaseIdQuery(); +``` diff --git a/.agents/skills/hooks-storage/references/file.md b/.agents/skills/hooks-storage/references/file.md index a377f4aba8..49e198cbbb 100644 --- a/.agents/skills/hooks-storage/references/file.md +++ b/.agents/skills/hooks-storage/references/file.md @@ -7,9 +7,8 @@ Individual file records within buckets, with immutable identity fields and mutab ## Usage ```typescript -useFilesQuery({ selection: { fields: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } } }) -useFileQuery({ id: '', selection: { fields: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } } }) -useCreateFileMutation({ selection: { fields: { id: true } } }) +useFilesQuery({ selection: { fields: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true, uploadUrl: true, uploadVersions: true } } }) +useFileQuery({ id: '', selection: { fields: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true, uploadUrl: true, uploadVersions: true } } }) useUpdateFileMutation({ selection: { fields: { id: true } } }) useDeleteFileMutation({}) ``` @@ -20,15 +19,6 @@ useDeleteFileMutation({}) ```typescript const { data, isLoading } = useFilesQuery({ - selection: { fields: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }, + selection: { fields: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true, uploadUrl: true, uploadVersions: true } }, }); ``` - -### Create a file - -```typescript -const { mutate } = useCreateFileMutation({ - selection: { fields: { id: true } }, -}); -mutate({ actorId: '', bucketId: '', contentHash: '', databaseId: '', description: '', downloadUrl: '', expiryEnqueuedAt: '', filePath: '', filename: '', isPublic: '', key: '', mimeType: '', promotedAt: '', size: '', status: '', tags: '', upload: '' }); -``` diff --git a/.agents/skills/hooks-storage/references/platform-file.md b/.agents/skills/hooks-storage/references/platform-file.md index 4ff067bc01..146723a879 100644 --- a/.agents/skills/hooks-storage/references/platform-file.md +++ b/.agents/skills/hooks-storage/references/platform-file.md @@ -7,9 +7,8 @@ Individual file records within buckets, with immutable identity fields and mutab ## Usage ```typescript -usePlatformFilesQuery({ selection: { fields: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } } }) -usePlatformFileQuery({ id: '', selection: { fields: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } } }) -useCreatePlatformFileMutation({ selection: { fields: { id: true } } }) +usePlatformFilesQuery({ selection: { fields: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true, uploadUrl: true, uploadVersions: true } } }) +usePlatformFileQuery({ id: '', selection: { fields: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true, uploadUrl: true, uploadVersions: true } } }) useUpdatePlatformFileMutation({ selection: { fields: { id: true } } }) useDeletePlatformFileMutation({}) ``` @@ -20,15 +19,6 @@ useDeletePlatformFileMutation({}) ```typescript const { data, isLoading } = usePlatformFilesQuery({ - selection: { fields: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }, + selection: { fields: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true, uploadUrl: true, uploadVersions: true } }, }); ``` - -### Create a platformFile - -```typescript -const { mutate } = useCreatePlatformFileMutation({ - selection: { fields: { id: true } }, -}); -mutate({ actorId: '', bucketId: '', contentHash: '', description: '', downloadUrl: '', expiryEnqueuedAt: '', filePath: '', filename: '', isPublic: '', key: '', mimeType: '', promotedAt: '', size: '', status: '', tags: '', upload: '' }); -``` diff --git a/.agents/skills/hooks-storage/references/upload-files.md b/.agents/skills/hooks-storage/references/upload-files.md index 8ad18d676f..a384f61896 100644 --- a/.agents/skills/hooks-storage/references/upload-files.md +++ b/.agents/skills/hooks-storage/references/upload-files.md @@ -7,7 +7,7 @@ Upload multiple files: resolves the bucket by key, creates file rows, and return ## Usage ```typescript -const { mutate } = useUploadFilesMutation(); mutate({ input: { bucketKey: '', files: '', isPublic: '' } }); +const { mutate } = useUploadFilesMutation(); mutate({ input: { bucketKey: '', databaseId: '', files: '', isPublic: '' } }); ``` ## Examples @@ -16,5 +16,5 @@ const { mutate } = useUploadFilesMutation(); mutate({ input: { bucketKey: '', files: '', isPublic: '' } }); +mutate({ input: { bucketKey: '', databaseId: '', files: '', isPublic: '' } }); ``` diff --git a/.agents/skills/orm-admin/references/my-pending-app-invites-record.md b/.agents/skills/orm-admin/references/my-pending-app-invites-record.md index 59bf302e8f..c176a73570 100644 --- a/.agents/skills/orm-admin/references/my-pending-app-invites-record.md +++ b/.agents/skills/orm-admin/references/my-pending-app-invites-record.md @@ -9,7 +9,6 @@ ORM operations for MyPendingAppInvitesRecord records ```typescript db.myPendingAppInvitesRecord.findMany({ select: { id: true } }).execute() db.myPendingAppInvitesRecord.findOne({ id: '', select: { id: true } }).execute() -db.myPendingAppInvitesRecord.create({ data: { channel: '', expiresAt: '', senderId: '' }, select: { id: true } }).execute() db.myPendingAppInvitesRecord.update({ where: { id: '' }, data: { channel: '' }, select: { id: true } }).execute() db.myPendingAppInvitesRecord.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.myPendingAppInvitesRecord.findMany({ select: { id: true, channel: true } }).execute(); ``` - -### Create a myPendingAppInvitesRecord - -```typescript -const item = await db.myPendingAppInvitesRecord.create({ - data: { channel: '', expiresAt: '', senderId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/my-pending-org-invites-record.md b/.agents/skills/orm-admin/references/my-pending-org-invites-record.md index 4a468dde32..8f9b7c316f 100644 --- a/.agents/skills/orm-admin/references/my-pending-org-invites-record.md +++ b/.agents/skills/orm-admin/references/my-pending-org-invites-record.md @@ -9,7 +9,6 @@ ORM operations for MyPendingOrgInvitesRecord records ```typescript db.myPendingOrgInvitesRecord.findMany({ select: { id: true } }).execute() db.myPendingOrgInvitesRecord.findOne({ id: '', select: { id: true } }).execute() -db.myPendingOrgInvitesRecord.create({ data: { channel: '', entityId: '', expiresAt: '', senderId: '' }, select: { id: true } }).execute() db.myPendingOrgInvitesRecord.update({ where: { id: '' }, data: { channel: '' }, select: { id: true } }).execute() db.myPendingOrgInvitesRecord.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.myPendingOrgInvitesRecord.findMany({ select: { id: true, channel: true } }).execute(); ``` - -### Create a myPendingOrgInvitesRecord - -```typescript -const item = await db.myPendingOrgInvitesRecord.create({ - data: { channel: '', entityId: '', expiresAt: '', senderId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/org-get-managers-record.md b/.agents/skills/orm-admin/references/org-get-managers-record.md index 8ded76acf2..3b3f7037fd 100644 --- a/.agents/skills/orm-admin/references/org-get-managers-record.md +++ b/.agents/skills/orm-admin/references/org-get-managers-record.md @@ -9,7 +9,6 @@ ORM operations for OrgGetManagersRecord records ```typescript db.orgGetManagersRecord.findMany({ select: { id: true } }).execute() db.orgGetManagersRecord.findOne({ id: '', select: { id: true } }).execute() -db.orgGetManagersRecord.create({ data: { depth: '', userId: '' }, select: { id: true } }).execute() db.orgGetManagersRecord.update({ where: { id: '' }, data: { depth: '' }, select: { id: true } }).execute() db.orgGetManagersRecord.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.orgGetManagersRecord.findMany({ select: { id: true, depth: true } }).execute(); ``` - -### Create a orgGetManagersRecord - -```typescript -const item = await db.orgGetManagersRecord.create({ - data: { depth: '', userId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/org-get-subordinates-record.md b/.agents/skills/orm-admin/references/org-get-subordinates-record.md index b70c485233..b903214447 100644 --- a/.agents/skills/orm-admin/references/org-get-subordinates-record.md +++ b/.agents/skills/orm-admin/references/org-get-subordinates-record.md @@ -9,7 +9,6 @@ ORM operations for OrgGetSubordinatesRecord records ```typescript db.orgGetSubordinatesRecord.findMany({ select: { id: true } }).execute() db.orgGetSubordinatesRecord.findOne({ id: '', select: { id: true } }).execute() -db.orgGetSubordinatesRecord.create({ data: { depth: '', userId: '' }, select: { id: true } }).execute() db.orgGetSubordinatesRecord.update({ where: { id: '' }, data: { depth: '' }, select: { id: true } }).execute() db.orgGetSubordinatesRecord.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.orgGetSubordinatesRecord.findMany({ select: { id: true, depth: true } }).execute(); ``` - -### Create a orgGetSubordinatesRecord - -```typescript -const item = await db.orgGetSubordinatesRecord.create({ - data: { depth: '', userId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-admin/references/org-member-profile.md b/.agents/skills/orm-admin/references/org-member-profile.md index 85d5a83e3d..b7f3491e57 100644 --- a/.agents/skills/orm-admin/references/org-member-profile.md +++ b/.agents/skills/orm-admin/references/org-member-profile.md @@ -9,7 +9,7 @@ Per-membership profile information visible to other entity members (display name ```typescript db.orgMemberProfile.findMany({ select: { id: true } }).execute() db.orgMemberProfile.findOne({ id: '', select: { id: true } }).execute() -db.orgMemberProfile.create({ data: { actorId: '', bio: '', displayName: '', email: '', entityId: '', membershipId: '', profilePicture: '', title: '' }, select: { id: true } }).execute() +db.orgMemberProfile.create({ data: { actorId: '', bio: '', displayName: '', email: '', entityId: '', membershipId: '', profilePicture: '', profilePictureUrl: '', profilePictureVersions: '', title: '' }, select: { id: true } }).execute() db.orgMemberProfile.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() db.orgMemberProfile.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.orgMemberProfile.findMany({ ```typescript const item = await db.orgMemberProfile.create({ - data: { actorId: '', bio: '', displayName: '', email: '', entityId: '', membershipId: '', profilePicture: '', title: '' }, + data: { actorId: '', bio: '', displayName: '', email: '', entityId: '', membershipId: '', profilePicture: '', profilePictureUrl: '', profilePictureVersions: '', title: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-agent/references/agent-resource.md b/.agents/skills/orm-agent/references/agent-resource.md index 3a237ea2cc..fec539a13d 100644 --- a/.agents/skills/orm-agent/references/agent-resource.md +++ b/.agents/skills/orm-agent/references/agent-resource.md @@ -15,7 +15,7 @@ Fields provided by the Unified Search plugin. Includes full-text search (tsvecto ```typescript db.agentResource.findMany({ select: { id: true } }).execute() db.agentResource.findOne({ id: '', select: { id: true } }).execute() -db.agentResource.create({ data: { archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() +db.agentResource.create({ data: { archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() db.agentResource.update({ where: { id: '' }, data: { archivedAt: '' }, select: { id: true } }).execute() db.agentResource.delete({ where: { id: '' } }).execute() ``` @@ -34,7 +34,7 @@ const items = await db.agentResource.findMany({ ```typescript const item = await db.agentResource.create({ - data: { archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, + data: { archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-agent/references/platform-agent-resource.md b/.agents/skills/orm-agent/references/platform-agent-resource.md index 8e8d07664f..5696cbb6e6 100644 --- a/.agents/skills/orm-agent/references/platform-agent-resource.md +++ b/.agents/skills/orm-agent/references/platform-agent-resource.md @@ -15,7 +15,7 @@ Fields provided by the Unified Search plugin. Includes full-text search (tsvecto ```typescript db.platformAgentResource.findMany({ select: { id: true } }).execute() db.platformAgentResource.findOne({ id: '', select: { id: true } }).execute() -db.platformAgentResource.create({ data: { archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() +db.platformAgentResource.create({ data: { archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() db.platformAgentResource.update({ where: { id: '' }, data: { archivedAt: '' }, select: { id: true } }).execute() db.platformAgentResource.delete({ where: { id: '' } }).execute() ``` @@ -34,7 +34,7 @@ const items = await db.platformAgentResource.findMany({ ```typescript const item = await db.platformAgentResource.create({ - data: { archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, + data: { archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/SKILL.md b/.agents/skills/orm-api/SKILL.md index 4c61e2919f..c721509b4f 100644 --- a/.agents/skills/orm-api/SKILL.md +++ b/.agents/skills/orm-api/SKILL.md @@ -1,13 +1,13 @@ --- name: orm-api -description: ORM client for the api API — provides typed CRUD operations for 90 tables and 49 custom operations +description: ORM client for the api API — provides typed CRUD operations for 91 tables and 45 custom operations --- # orm-api -ORM client for the api API — provides typed CRUD operations for 90 tables and 49 custom operations +ORM client for the api API — provides typed CRUD operations for 91 tables and 45 custom operations ## Usage @@ -86,6 +86,7 @@ See the `references/` directory for detailed per-entity API documentation: - [platform-get-site-previews-record](references/platform-get-site-previews-record.md) - [platform-managed-domain](references/platform-managed-domain.md) - [platform-page](references/platform-page.md) +- [platform-reserved-subdomain](references/platform-reserved-subdomain.md) - [platform-site-app-link](references/platform-site-app-link.md) - [platform-site](references/platform-site.md) - [platform-site-deep-link](references/platform-site-deep-link.md) @@ -127,7 +128,6 @@ See the `references/` directory for detailed per-entity API documentation: - [view-rule](references/view-rule.md) - [view-table](references/view-table.md) - [webauthn-setting](references/webauthn-setting.md) -- [api-schema-names](references/api-schema-names.md) - [apply-registry-defaults](references/apply-registry-defaults.md) - [email-shared-account](references/email-shared-account.md) - [get-site-preview-commit](references/get-site-preview-commit.md) @@ -139,9 +139,6 @@ See the `references/` directory for detailed per-entity API documentation: - [platform-sites-deep-link-url](references/platform-sites-deep-link-url.md) - [platform-sites-site-origin](references/platform-sites-site-origin.md) - [platform-verify-site-preview-token](references/platform-verify-site-preview-token.md) -- [resolve-deep-link](references/resolve-deep-link.md) -- [resolve-route](references/resolve-route.md) -- [resolve-site-app-links](references/resolve-site-app-links.md) - [sites-deep-link-url](references/sites-deep-link-url.md) - [sites-site-origin](references/sites-site-origin.md) - [verify-site-preview-token](references/verify-site-preview-token.md) diff --git a/.agents/skills/orm-api/references/api-setting.md b/.agents/skills/orm-api/references/api-setting.md index 6f883614b8..7338b263e4 100644 --- a/.agents/skills/orm-api/references/api-setting.md +++ b/.agents/skills/orm-api/references/api-setting.md @@ -9,7 +9,7 @@ Per-API feature flag overrides; NULL columns inherit from database_settings ```typescript db.apiSetting.findMany({ select: { id: true } }).execute() db.apiSetting.findOne({ id: '', select: { id: true } }).execute() -db.apiSetting.create({ data: { apiId: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute() +db.apiSetting.create({ data: { apiId: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute() db.apiSetting.update({ where: { id: '' }, data: { apiId: '' }, select: { id: true } }).execute() db.apiSetting.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.apiSetting.findMany({ ```typescript const item = await db.apiSetting.create({ - data: { apiId: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, + data: { apiId: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/api.md b/.agents/skills/orm-api/references/api.md index a575a7c3f1..6ad5e83b63 100644 --- a/.agents/skills/orm-api/references/api.md +++ b/.agents/skills/orm-api/references/api.md @@ -9,7 +9,7 @@ API surfaces exposed by this scope; publication makes a surface bindable from ot ```typescript db.api.findMany({ select: { id: true } }).execute() db.api.findOne({ id: '', select: { id: true } }).execute() -db.api.create({ data: { anonRole: '', config: '', databaseId: '', dbname: '', isPublished: '', name: '', roleName: '' }, select: { id: true } }).execute() +db.api.create({ data: { anonRole: '', config: '', databaseId: '', isPublished: '', name: '', roleName: '', serviceHostname: '' }, select: { id: true } }).execute() db.api.update({ where: { id: '' }, data: { anonRole: '' }, select: { id: true } }).execute() db.api.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.api.findMany({ ```typescript const item = await db.api.create({ - data: { anonRole: '', config: '', databaseId: '', dbname: '', isPublished: '', name: '', roleName: '' }, + data: { anonRole: '', config: '', databaseId: '', isPublished: '', name: '', roleName: '', serviceHostname: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/ast-migration.md b/.agents/skills/orm-api/references/ast-migration.md index 63e6e1b356..30d5b18082 100644 --- a/.agents/skills/orm-api/references/ast-migration.md +++ b/.agents/skills/orm-api/references/ast-migration.md @@ -9,7 +9,6 @@ ORM operations for AstMigration records ```typescript db.astMigration.findMany({ select: { id: true } }).execute() db.astMigration.findOne({ id: '', select: { id: true } }).execute() -db.astMigration.create({ data: { actionId: '', actionName: '', actorId: '', databaseId: '', deploy: '', deploys: '', name: '', payload: '', requires: '', revert: '', verify: '' }, select: { id: true } }).execute() db.astMigration.update({ where: { id: '' }, data: { actionId: '' }, select: { id: true } }).execute() db.astMigration.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.astMigration.findMany({ select: { id: true, actionId: true } }).execute(); ``` - -### Create a astMigration - -```typescript -const item = await db.astMigration.create({ - data: { actionId: '', actionName: '', actorId: '', databaseId: '', deploy: '', deploys: '', name: '', payload: '', requires: '', revert: '', verify: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-api/references/database-setting.md b/.agents/skills/orm-api/references/database-setting.md index 5db2b4d64e..9ac250c2ed 100644 --- a/.agents/skills/orm-api/references/database-setting.md +++ b/.agents/skills/orm-api/references/database-setting.md @@ -9,7 +9,7 @@ Scope-wide feature flags and settings; controls which platform features are avai ```typescript db.databaseSetting.findMany({ select: { id: true } }).execute() db.databaseSetting.findOne({ id: '', select: { id: true } }).execute() -db.databaseSetting.create({ data: { annotations: '', creditsPerCent: '', databaseId: '', enableAggregates: '', enableBilling: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', labels: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute() +db.databaseSetting.create({ data: { annotations: '', creditsPerCent: '', databaseId: '', enableAggregates: '', enableBilling: '', enableBulk: '', enableConnectionFilter: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', labels: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute() db.databaseSetting.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute() db.databaseSetting.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.databaseSetting.findMany({ ```typescript const item = await db.databaseSetting.create({ - data: { annotations: '', creditsPerCent: '', databaseId: '', enableAggregates: '', enableBilling: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', labels: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, + data: { annotations: '', creditsPerCent: '', databaseId: '', enableAggregates: '', enableBilling: '', enableBulk: '', enableConnectionFilter: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', labels: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/get-site-previews-record.md b/.agents/skills/orm-api/references/get-site-previews-record.md index f0e497ea8a..969a92dda6 100644 --- a/.agents/skills/orm-api/references/get-site-previews-record.md +++ b/.agents/skills/orm-api/references/get-site-previews-record.md @@ -9,7 +9,6 @@ ORM operations for GetSitePreviewsRecord records ```typescript db.getSitePreviewsRecord.findMany({ select: { id: true } }).execute() db.getSitePreviewsRecord.findOne({ id: '', select: { id: true } }).execute() -db.getSitePreviewsRecord.create({ data: { commitId: '', name: '' }, select: { id: true } }).execute() db.getSitePreviewsRecord.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute() db.getSitePreviewsRecord.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.getSitePreviewsRecord.findMany({ select: { id: true, commitId: true } }).execute(); ``` - -### Create a getSitePreviewsRecord - -```typescript -const item = await db.getSitePreviewsRecord.create({ - data: { commitId: '', name: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-api/references/list-suspended-databases-record.md b/.agents/skills/orm-api/references/list-suspended-databases-record.md index 362b1c48af..0aa3f13253 100644 --- a/.agents/skills/orm-api/references/list-suspended-databases-record.md +++ b/.agents/skills/orm-api/references/list-suspended-databases-record.md @@ -9,7 +9,6 @@ ORM operations for ListSuspendedDatabasesRecord records ```typescript db.listSuspendedDatabasesRecord.findMany({ select: { id: true } }).execute() db.listSuspendedDatabasesRecord.findOne({ id: '', select: { id: true } }).execute() -db.listSuspendedDatabasesRecord.create({ data: { name: '', ownerId: '', suspendedAt: '', suspendedReason: '' }, select: { id: true } }).execute() db.listSuspendedDatabasesRecord.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() db.listSuspendedDatabasesRecord.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.listSuspendedDatabasesRecord.findMany({ select: { id: true, name: true } }).execute(); ``` - -### Create a listSuspendedDatabasesRecord - -```typescript -const item = await db.listSuspendedDatabasesRecord.create({ - data: { name: '', ownerId: '', suspendedAt: '', suspendedReason: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-api/references/platform-api-setting.md b/.agents/skills/orm-api/references/platform-api-setting.md index 4a56b02175..bc04f61687 100644 --- a/.agents/skills/orm-api/references/platform-api-setting.md +++ b/.agents/skills/orm-api/references/platform-api-setting.md @@ -9,7 +9,7 @@ Per-API feature flag overrides; NULL columns inherit from database_settings ```typescript db.platformApiSetting.findMany({ select: { id: true } }).execute() db.platformApiSetting.findOne({ id: '', select: { id: true } }).execute() -db.platformApiSetting.create({ data: { apiId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute() +db.platformApiSetting.create({ data: { apiId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute() db.platformApiSetting.update({ where: { id: '' }, data: { apiId: '' }, select: { id: true } }).execute() db.platformApiSetting.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.platformApiSetting.findMany({ ```typescript const item = await db.platformApiSetting.create({ - data: { apiId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, + data: { apiId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/platform-api.md b/.agents/skills/orm-api/references/platform-api.md index 1dfcdea283..816408a274 100644 --- a/.agents/skills/orm-api/references/platform-api.md +++ b/.agents/skills/orm-api/references/platform-api.md @@ -9,7 +9,7 @@ API surfaces exposed by this scope; publication makes a surface bindable from ot ```typescript db.platformApi.findMany({ select: { id: true } }).execute() db.platformApi.findOne({ id: '', select: { id: true } }).execute() -db.platformApi.create({ data: { anonRole: '', config: '', dbname: '', isPublished: '', name: '', roleName: '' }, select: { id: true } }).execute() +db.platformApi.create({ data: { anonRole: '', config: '', isPublished: '', name: '', roleName: '', serviceHostname: '' }, select: { id: true } }).execute() db.platformApi.update({ where: { id: '' }, data: { anonRole: '' }, select: { id: true } }).execute() db.platformApi.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.platformApi.findMany({ ```typescript const item = await db.platformApi.create({ - data: { anonRole: '', config: '', dbname: '', isPublished: '', name: '', roleName: '' }, + data: { anonRole: '', config: '', isPublished: '', name: '', roleName: '', serviceHostname: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/platform-get-site-previews-record.md b/.agents/skills/orm-api/references/platform-get-site-previews-record.md index 8335467d56..9344fbee60 100644 --- a/.agents/skills/orm-api/references/platform-get-site-previews-record.md +++ b/.agents/skills/orm-api/references/platform-get-site-previews-record.md @@ -9,7 +9,6 @@ ORM operations for PlatformGetSitePreviewsRecord records ```typescript db.platformGetSitePreviewsRecord.findMany({ select: { id: true } }).execute() db.platformGetSitePreviewsRecord.findOne({ id: '', select: { id: true } }).execute() -db.platformGetSitePreviewsRecord.create({ data: { commitId: '', name: '' }, select: { id: true } }).execute() db.platformGetSitePreviewsRecord.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute() db.platformGetSitePreviewsRecord.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.platformGetSitePreviewsRecord.findMany({ select: { id: true, commitId: true } }).execute(); ``` - -### Create a platformGetSitePreviewsRecord - -```typescript -const item = await db.platformGetSitePreviewsRecord.create({ - data: { commitId: '', name: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-api/references/platform-reserved-subdomain.md b/.agents/skills/orm-api/references/platform-reserved-subdomain.md new file mode 100644 index 0000000000..fb8ac4ffd8 --- /dev/null +++ b/.agents/skills/orm-api/references/platform-reserved-subdomain.md @@ -0,0 +1,34 @@ +# platformReservedSubdomain + + + +Subdomain labels no tenant may claim under a platform apex + +## Usage + +```typescript +db.platformReservedSubdomain.findMany({ select: { id: true } }).execute() +db.platformReservedSubdomain.findOne({ id: '', select: { id: true } }).execute() +db.platformReservedSubdomain.create({ data: { createdByPrincipal: '', label: '', match: '', reason: '', updatedByPrincipal: '' }, select: { id: true } }).execute() +db.platformReservedSubdomain.update({ where: { id: '' }, data: { createdByPrincipal: '' }, select: { id: true } }).execute() +db.platformReservedSubdomain.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformReservedSubdomain records + +```typescript +const items = await db.platformReservedSubdomain.findMany({ + select: { id: true, createdByPrincipal: true } +}).execute(); +``` + +### Create a platformReservedSubdomain + +```typescript +const item = await db.platformReservedSubdomain.create({ + data: { createdByPrincipal: '', label: '', match: '', reason: '', updatedByPrincipal: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/platform-site-metadatum.md b/.agents/skills/orm-api/references/platform-site-metadatum.md index bc51cb5a38..962e0b8499 100644 --- a/.agents/skills/orm-api/references/platform-site-metadatum.md +++ b/.agents/skills/orm-api/references/platform-site-metadatum.md @@ -9,7 +9,7 @@ SEO and social sharing metadata for a site surface ```typescript db.platformSiteMetadatum.findMany({ select: { id: true } }).execute() db.platformSiteMetadatum.findOne({ id: '', select: { id: true } }).execute() -db.platformSiteMetadatum.create({ data: { appleTouchIcon: '', canonicalUrl: '', commitId: '', description: '', favicon: '', logo: '', ogImage: '', robots: '', robotsSeededFrom: '', siteId: '', storeId: '', title: '' }, select: { id: true } }).execute() +db.platformSiteMetadatum.create({ data: { appleTouchIcon: '', appleTouchIconUrl: '', appleTouchIconVersions: '', canonicalUrl: '', commitId: '', description: '', favicon: '', faviconUrl: '', faviconVersions: '', logo: '', logoUrl: '', logoVersions: '', ogImage: '', ogImageUrl: '', ogImageVersions: '', robots: '', robotsSeededFrom: '', siteId: '', storeId: '', title: '' }, select: { id: true } }).execute() db.platformSiteMetadatum.update({ where: { id: '' }, data: { appleTouchIcon: '' }, select: { id: true } }).execute() db.platformSiteMetadatum.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.platformSiteMetadatum.findMany({ ```typescript const item = await db.platformSiteMetadatum.create({ - data: { appleTouchIcon: '', canonicalUrl: '', commitId: '', description: '', favicon: '', logo: '', ogImage: '', robots: '', robotsSeededFrom: '', siteId: '', storeId: '', title: '' }, + data: { appleTouchIcon: '', appleTouchIconUrl: '', appleTouchIconVersions: '', canonicalUrl: '', commitId: '', description: '', favicon: '', faviconUrl: '', faviconVersions: '', logo: '', logoUrl: '', logoVersions: '', ogImage: '', ogImageUrl: '', ogImageVersions: '', robots: '', robotsSeededFrom: '', siteId: '', storeId: '', title: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/site-metadatum.md b/.agents/skills/orm-api/references/site-metadatum.md index ab274450fa..32775d0cbf 100644 --- a/.agents/skills/orm-api/references/site-metadatum.md +++ b/.agents/skills/orm-api/references/site-metadatum.md @@ -9,7 +9,7 @@ SEO and social sharing metadata for a site surface ```typescript db.siteMetadatum.findMany({ select: { id: true } }).execute() db.siteMetadatum.findOne({ id: '', select: { id: true } }).execute() -db.siteMetadatum.create({ data: { appleTouchIcon: '', canonicalUrl: '', commitId: '', databaseId: '', description: '', favicon: '', logo: '', ogImage: '', robots: '', robotsSeededFrom: '', siteId: '', storeId: '', title: '' }, select: { id: true } }).execute() +db.siteMetadatum.create({ data: { appleTouchIcon: '', appleTouchIconUrl: '', appleTouchIconVersions: '', canonicalUrl: '', commitId: '', databaseId: '', description: '', favicon: '', faviconUrl: '', faviconVersions: '', logo: '', logoUrl: '', logoVersions: '', ogImage: '', ogImageUrl: '', ogImageVersions: '', robots: '', robotsSeededFrom: '', siteId: '', storeId: '', title: '' }, select: { id: true } }).execute() db.siteMetadatum.update({ where: { id: '' }, data: { appleTouchIcon: '' }, select: { id: true } }).execute() db.siteMetadatum.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.siteMetadatum.findMany({ ```typescript const item = await db.siteMetadatum.create({ - data: { appleTouchIcon: '', canonicalUrl: '', commitId: '', databaseId: '', description: '', favicon: '', logo: '', ogImage: '', robots: '', robotsSeededFrom: '', siteId: '', storeId: '', title: '' }, + data: { appleTouchIcon: '', appleTouchIconUrl: '', appleTouchIconVersions: '', canonicalUrl: '', commitId: '', databaseId: '', description: '', favicon: '', faviconUrl: '', faviconVersions: '', logo: '', logoUrl: '', logoVersions: '', ogImage: '', ogImageUrl: '', ogImageVersions: '', robots: '', robotsSeededFrom: '', siteId: '', storeId: '', title: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/sql-action.md b/.agents/skills/orm-api/references/sql-action.md index 9be7c5bcd0..71ad95f4a7 100644 --- a/.agents/skills/orm-api/references/sql-action.md +++ b/.agents/skills/orm-api/references/sql-action.md @@ -9,7 +9,6 @@ ORM operations for SqlAction records ```typescript db.sqlAction.findMany({ select: { id: true } }).execute() db.sqlAction.findOne({ id: '', select: { id: true } }).execute() -db.sqlAction.create({ data: { actionId: '', actionName: '', actorId: '', content: '', databaseId: '', deploy: '', deps: '', name: '', payload: '', revert: '', verify: '' }, select: { id: true } }).execute() db.sqlAction.update({ where: { id: '' }, data: { actionId: '' }, select: { id: true } }).execute() db.sqlAction.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.sqlAction.findMany({ select: { id: true, actionId: true } }).execute(); ``` - -### Create a sqlAction - -```typescript -const item = await db.sqlAction.create({ - data: { actionId: '', actionName: '', actorId: '', content: '', databaseId: '', deploy: '', deps: '', name: '', payload: '', revert: '', verify: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-auth/SKILL.md b/.agents/skills/orm-auth/SKILL.md index e9c93d8f59..e6568d4fa2 100644 --- a/.agents/skills/orm-auth/SKILL.md +++ b/.agents/skills/orm-auth/SKILL.md @@ -1,13 +1,13 @@ --- name: orm-auth -description: ORM client for the auth API — provides typed CRUD operations for 15 tables and 61 custom operations +description: ORM client for the auth API — provides typed CRUD operations for 15 tables and 66 custom operations --- # orm-auth -ORM client for the auth API — provides typed CRUD operations for 15 tables and 61 custom operations +ORM client for the auth API — provides typed CRUD operations for 15 tables and 66 custom operations ## Usage @@ -58,6 +58,7 @@ See the `references/` directory for detailed per-entity API documentation: - [current-user-id](references/current-user-id.md) - [get-mfa-status](references/get-mfa-status.md) - [require-step-up](references/require-step-up.md) +- [sign-in-options](references/sign-in-options.md) - [approve-device](references/approve-device.md) - [check-password](references/check-password.md) - [complete-mfa-challenge](references/complete-mfa-challenge.md) @@ -67,6 +68,7 @@ See the `references/` directory for detailed per-entity API documentation: - [create-child-principal](references/create-child-principal.md) - [create-org-api-key](references/create-org-api-key.md) - [create-org-principal](references/create-org-principal.md) +- [create-principal](references/create-principal.md) - [create-principal-from-preset](references/create-principal-from-preset.md) - [delete-org-principal](references/delete-org-principal.md) - [delete-principal](references/delete-principal.md) @@ -77,6 +79,8 @@ See the `references/` directory for detailed per-entity API documentation: - [enable-email-mfa](references/enable-email-mfa.md) - [enable-sms-mfa](references/enable-sms-mfa.md) - [enable-totp](references/enable-totp.md) +- [ensure-auth-csrf](references/ensure-auth-csrf.md) +- [exchange-native-handoff](references/exchange-native-handoff.md) - [extend-token-expires](references/extend-token-expires.md) - [forgot-password](references/forgot-password.md) - [generate-backup-codes](references/generate-backup-codes.md) @@ -85,6 +89,7 @@ See the `references/` directory for detailed per-entity API documentation: - [provision-bucket](references/provision-bucket.md) - [refresh-access-token](references/refresh-access-token.md) - [request-cross-origin-token](references/request-cross-origin-token.md) +- [request-device-approval](references/request-device-approval.md) - [request-magic-link](references/request-magic-link.md) - [reset-password](references/reset-password.md) - [revoke-api-key](references/revoke-api-key.md) diff --git a/.agents/skills/orm-auth/references/create-api-key.md b/.agents/skills/orm-auth/references/create-api-key.md index 23aea2eaae..21ad2d6a38 100644 --- a/.agents/skills/orm-auth/references/create-api-key.md +++ b/.agents/skills/orm-auth/references/create-api-key.md @@ -2,7 +2,7 @@ -Execute the createApiKey mutation +Mint an API key for the current user; the plaintext key is returned once. access_level: full_access (default) or read_only. mfa_level: none (default) or verified; verified needs a fresh MFA proof on the calling session. A key minted while authenticated by another API key never outlives that key. ## Usage diff --git a/.agents/skills/orm-auth/references/create-principal.md b/.agents/skills/orm-auth/references/create-principal.md new file mode 100644 index 0000000000..fcc5a1fa5a --- /dev/null +++ b/.agents/skills/orm-auth/references/create-principal.md @@ -0,0 +1,19 @@ +# createPrincipal + + + +Execute the createPrincipal mutation + +## Usage + +```typescript +db.mutation.createPrincipal({ input: { bypassStepUp: '', entityIds: '', isReadOnly: '', name: '', useAdminOwner: '' } }).execute() +``` + +## Examples + +### Run createPrincipal + +```typescript +const result = await db.mutation.createPrincipal({ input: { bypassStepUp: '', entityIds: '', isReadOnly: '', name: '', useAdminOwner: '' } }).execute(); +``` diff --git a/.agents/skills/orm-auth/references/ensure-auth-csrf.md b/.agents/skills/orm-auth/references/ensure-auth-csrf.md new file mode 100644 index 0000000000..f052131582 --- /dev/null +++ b/.agents/skills/orm-auth/references/ensure-auth-csrf.md @@ -0,0 +1,19 @@ +# ensureAuthCsrf + + + +Execute the ensureAuthCsrf mutation + +## Usage + +```typescript +db.mutation.ensureAuthCsrf({ input: { existingToken: '' } }).execute() +``` + +## Examples + +### Run ensureAuthCsrf + +```typescript +const result = await db.mutation.ensureAuthCsrf({ input: { existingToken: '' } }).execute(); +``` diff --git a/.agents/skills/orm-auth/references/exchange-native-handoff.md b/.agents/skills/orm-auth/references/exchange-native-handoff.md new file mode 100644 index 0000000000..2daeeb0410 --- /dev/null +++ b/.agents/skills/orm-auth/references/exchange-native-handoff.md @@ -0,0 +1,19 @@ +# exchangeNativeHandoff + + + +Execute the exchangeNativeHandoff mutation + +## Usage + +```typescript +db.mutation.exchangeNativeHandoff({ input: { code: '', codeVerifier: '', credentialKind: '' } }).execute() +``` + +## Examples + +### Run exchangeNativeHandoff + +```typescript +const result = await db.mutation.exchangeNativeHandoff({ input: { code: '', codeVerifier: '', credentialKind: '' } }).execute(); +``` diff --git a/.agents/skills/orm-auth/references/identity-provider.md b/.agents/skills/orm-auth/references/identity-provider.md index 94d0dbcda4..dc46db241a 100644 --- a/.agents/skills/orm-auth/references/identity-provider.md +++ b/.agents/skills/orm-auth/references/identity-provider.md @@ -9,7 +9,6 @@ ORM operations for IdentityProvider records ```typescript db.identityProvider.findMany({ select: { id: true } }).execute() db.identityProvider.findOne({ id: '', select: { id: true } }).execute() -db.identityProvider.create({ data: { displayName: '', enabled: '', kind: '', slug: '' }, select: { id: true } }).execute() db.identityProvider.update({ where: { id: '' }, data: { displayName: '' }, select: { id: true } }).execute() db.identityProvider.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.identityProvider.findMany({ select: { id: true, displayName: true } }).execute(); ``` - -### Create a identityProvider - -```typescript -const item = await db.identityProvider.create({ - data: { displayName: '', enabled: '', kind: '', slug: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-auth/references/org-api-key-list.md b/.agents/skills/orm-auth/references/org-api-key-list.md index 162102648b..f5c20cb24d 100644 --- a/.agents/skills/orm-auth/references/org-api-key-list.md +++ b/.agents/skills/orm-auth/references/org-api-key-list.md @@ -9,7 +9,6 @@ ORM operations for OrgApiKeyList records ```typescript db.orgApiKeyList.findMany({ select: { id: true } }).execute() db.orgApiKeyList.findOne({ id: '', select: { id: true } }).execute() -db.orgApiKeyList.create({ data: { accessLevel: '', expiresAt: '', keyId: '', lastUsedAt: '', mfaLevel: '', name: '', orgId: '', principalId: '', revokedAt: '' }, select: { id: true } }).execute() db.orgApiKeyList.update({ where: { id: '' }, data: { accessLevel: '' }, select: { id: true } }).execute() db.orgApiKeyList.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.orgApiKeyList.findMany({ select: { id: true, accessLevel: true } }).execute(); ``` - -### Create a orgApiKeyList - -```typescript -const item = await db.orgApiKeyList.create({ - data: { accessLevel: '', expiresAt: '', keyId: '', lastUsedAt: '', mfaLevel: '', name: '', orgId: '', principalId: '', revokedAt: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-auth/references/principal-entity.md b/.agents/skills/orm-auth/references/principal-entity.md index c30c0c6dc1..975b3c4e7c 100644 --- a/.agents/skills/orm-auth/references/principal-entity.md +++ b/.agents/skills/orm-auth/references/principal-entity.md @@ -9,7 +9,6 @@ Association table scoping principals to specific organizations ```typescript db.principalEntity.findMany({ select: { id: true } }).execute() db.principalEntity.findOne({ id: '', select: { id: true } }).execute() -db.principalEntity.create({ data: { entityId: '', ownerId: '', principalId: '' }, select: { id: true } }).execute() db.principalEntity.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute() db.principalEntity.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.principalEntity.findMany({ select: { id: true, entityId: true } }).execute(); ``` - -### Create a principalEntity - -```typescript -const item = await db.principalEntity.create({ - data: { entityId: '', ownerId: '', principalId: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-auth/references/principal-scope-override.md b/.agents/skills/orm-auth/references/principal-scope-override.md index 3763ab214c..65956e678d 100644 --- a/.agents/skills/orm-auth/references/principal-scope-override.md +++ b/.agents/skills/orm-auth/references/principal-scope-override.md @@ -9,7 +9,6 @@ Per-scope capability overrides for principals. No row = full access; row exists ```typescript db.principalScopeOverride.findMany({ select: { id: true } }).execute() db.principalScopeOverride.findOne({ id: '', select: { id: true } }).execute() -db.principalScopeOverride.create({ data: { allowedMask: '', isActive: '', isReadOnly: '', membershipType: '', principalId: '', useAdminOwner: '' }, select: { id: true } }).execute() db.principalScopeOverride.update({ where: { id: '' }, data: { allowedMask: '' }, select: { id: true } }).execute() db.principalScopeOverride.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.principalScopeOverride.findMany({ select: { id: true, allowedMask: true } }).execute(); ``` - -### Create a principalScopeOverride - -```typescript -const item = await db.principalScopeOverride.create({ - data: { allowedMask: '', isActive: '', isReadOnly: '', membershipType: '', principalId: '', useAdminOwner: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-auth/references/principal.md b/.agents/skills/orm-auth/references/principal.md index 5564db2326..82274ce038 100644 --- a/.agents/skills/orm-auth/references/principal.md +++ b/.agents/skills/orm-auth/references/principal.md @@ -9,7 +9,6 @@ Scoped sub-identities (API keys and agents) with precomputed SPRT ```typescript db.principal.findMany({ select: { id: true } }).execute() db.principal.findOne({ principalId: '', select: { id: true } }).execute() -db.principal.create({ data: { apiKeyMaxDuration: '', bypassStepUp: '', createdBySessionId: '', depth: '', expiresAt: '', id: '', isReadOnly: '', name: '', ownerId: '', parentPrincipalId: '', useAdminOwner: '', userId: '' }, select: { id: true } }).execute() db.principal.update({ where: { principalId: '' }, data: { apiKeyMaxDuration: '' }, select: { id: true } }).execute() db.principal.delete({ where: { principalId: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.principal.findMany({ select: { principalId: true, apiKeyMaxDuration: true } }).execute(); ``` - -### Create a principal - -```typescript -const item = await db.principal.create({ - data: { apiKeyMaxDuration: '', bypassStepUp: '', createdBySessionId: '', depth: '', expiresAt: '', id: '', isReadOnly: '', name: '', ownerId: '', parentPrincipalId: '', useAdminOwner: '', userId: '' }, - select: { principalId: true } -}).execute(); -``` diff --git a/.agents/skills/orm-auth/references/request-device-approval.md b/.agents/skills/orm-auth/references/request-device-approval.md new file mode 100644 index 0000000000..bb0a80098a --- /dev/null +++ b/.agents/skills/orm-auth/references/request-device-approval.md @@ -0,0 +1,19 @@ +# requestDeviceApproval + + + +Execute the requestDeviceApproval mutation + +## Usage + +```typescript +db.mutation.requestDeviceApproval({ input: { deviceToken: '', next: '', userId: '' } }).execute() +``` + +## Examples + +### Run requestDeviceApproval + +```typescript +const result = await db.mutation.requestDeviceApproval({ input: { deviceToken: '', next: '', userId: '' } }).execute(); +``` diff --git a/.agents/skills/orm-auth/references/request-magic-link.md b/.agents/skills/orm-auth/references/request-magic-link.md index 091a0e1f41..9802b4854e 100644 --- a/.agents/skills/orm-auth/references/request-magic-link.md +++ b/.agents/skills/orm-auth/references/request-magic-link.md @@ -7,7 +7,7 @@ Execute the requestMagicLink mutation ## Usage ```typescript -db.mutation.requestMagicLink({ input: { email: '', next: '' } }).execute() +db.mutation.requestMagicLink({ input: { codeChallenge: '', email: '', nativeRedirectUri: '', next: '' } }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.mutation.requestMagicLink({ input: { email: '', next: '' } }) ### Run requestMagicLink ```typescript -const result = await db.mutation.requestMagicLink({ input: { email: '', next: '' } }).execute(); +const result = await db.mutation.requestMagicLink({ input: { codeChallenge: '', email: '', nativeRedirectUri: '', next: '' } }).execute(); ``` diff --git a/.agents/skills/orm-auth/references/set-password.md b/.agents/skills/orm-auth/references/set-password.md index 599e1aac53..1e5ab5adee 100644 --- a/.agents/skills/orm-auth/references/set-password.md +++ b/.agents/skills/orm-auth/references/set-password.md @@ -7,7 +7,7 @@ Execute the setPassword mutation ## Usage ```typescript -db.mutation.setPassword({ input: { currentPassword: '', newPassword: '' } }).execute() +db.mutation.setPassword({ input: { currentPassword: '', newPassword: '', signOutOtherSessions: '' } }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.mutation.setPassword({ input: { currentPassword: '', newPassword: '', newPassword: '' } }).execute(); +const result = await db.mutation.setPassword({ input: { currentPassword: '', newPassword: '', signOutOtherSessions: '' } }).execute(); ``` diff --git a/.agents/skills/orm-auth/references/sign-in-options.md b/.agents/skills/orm-auth/references/sign-in-options.md new file mode 100644 index 0000000000..2531da1640 --- /dev/null +++ b/.agents/skills/orm-auth/references/sign-in-options.md @@ -0,0 +1,19 @@ +# signInOptions + + + +Execute the signInOptions query + +## Usage + +```typescript +db.query.signInOptions().execute() +``` + +## Examples + +### Run signInOptions + +```typescript +const result = await db.query.signInOptions().execute(); +``` diff --git a/.agents/skills/orm-auth/references/user-connected-account.md b/.agents/skills/orm-auth/references/user-connected-account.md index 5d4ca6ca0b..a51d907c73 100644 --- a/.agents/skills/orm-auth/references/user-connected-account.md +++ b/.agents/skills/orm-auth/references/user-connected-account.md @@ -9,7 +9,6 @@ ORM operations for UserConnectedAccount records ```typescript db.userConnectedAccount.findMany({ select: { id: true } }).execute() db.userConnectedAccount.findOne({ id: '', select: { id: true } }).execute() -db.userConnectedAccount.create({ data: { details: '', identifier: '', isVerified: '', ownerId: '', service: '' }, select: { id: true } }).execute() db.userConnectedAccount.update({ where: { id: '' }, data: { details: '' }, select: { id: true } }).execute() db.userConnectedAccount.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.userConnectedAccount.findMany({ select: { id: true, details: true } }).execute(); ``` - -### Create a userConnectedAccount - -```typescript -const item = await db.userConnectedAccount.create({ - data: { details: '', identifier: '', isVerified: '', ownerId: '', service: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-auth/references/user.md b/.agents/skills/orm-auth/references/user.md index 172232015b..e8a4385766 100644 --- a/.agents/skills/orm-auth/references/user.md +++ b/.agents/skills/orm-auth/references/user.md @@ -12,7 +12,7 @@ Fields provided by the Unified Search plugin. Includes full-text search (tsvecto ```typescript db.user.findMany({ select: { id: true } }).execute() db.user.findOne({ id: '', select: { id: true } }).execute() -db.user.create({ data: { displayName: '', displayNameTrgmSimilarity: '', profilePicture: '', searchScore: '', searchTsv: '', searchTsvRank: '', type: '', username: '' }, select: { id: true } }).execute() +db.user.create({ data: { displayName: '', displayNameTrgmSimilarity: '', profilePicture: '', profilePictureUrl: '', profilePictureVersions: '', searchScore: '', searchTsv: '', searchTsvRank: '', type: '', username: '' }, select: { id: true } }).execute() db.user.update({ where: { id: '' }, data: { displayName: '' }, select: { id: true } }).execute() db.user.delete({ where: { id: '' } }).execute() ``` @@ -31,7 +31,7 @@ const items = await db.user.findMany({ ```typescript const item = await db.user.create({ - data: { displayName: '', displayNameTrgmSimilarity: '', profilePicture: '', searchScore: '', searchTsv: '', searchTsvRank: '', type: '', username: '' }, + data: { displayName: '', displayNameTrgmSimilarity: '', profilePicture: '', profilePictureUrl: '', profilePictureVersions: '', searchScore: '', searchTsv: '', searchTsvRank: '', type: '', username: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-auth/references/verify-email.md b/.agents/skills/orm-auth/references/verify-email.md index 773e857183..b8b18f3ba0 100644 --- a/.agents/skills/orm-auth/references/verify-email.md +++ b/.agents/skills/orm-auth/references/verify-email.md @@ -7,7 +7,7 @@ Execute the verifyEmail mutation ## Usage ```typescript -db.mutation.verifyEmail({ input: { emailId: '', token: '' } }).execute() +db.mutation.verifyEmail({ input: { emailId: '', password: '', token: '' } }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.mutation.verifyEmail({ input: { emailId: '', token: '' } }).exe ### Run verifyEmail ```typescript -const result = await db.mutation.verifyEmail({ input: { emailId: '', token: '' } }).execute(); +const result = await db.mutation.verifyEmail({ input: { emailId: '', password: '', token: '' } }).execute(); ``` diff --git a/.agents/skills/orm-compute/SKILL.md b/.agents/skills/orm-compute/SKILL.md index 33b621bbb0..2249646f2f 100644 --- a/.agents/skills/orm-compute/SKILL.md +++ b/.agents/skills/orm-compute/SKILL.md @@ -1,13 +1,13 @@ --- name: orm-compute -description: ORM client for the compute API — provides typed CRUD operations for 123 tables and 64 custom operations +description: ORM client for the compute API — provides typed CRUD operations for 123 tables and 65 custom operations --- # orm-compute -ORM client for the compute API — provides typed CRUD operations for 123 tables and 64 custom operations +ORM client for the compute API — provides typed CRUD operations for 123 tables and 65 custom operations ## Usage @@ -15,7 +15,7 @@ ORM client for the compute API — provides typed CRUD operations for 123 tables // Import the ORM client import { db } from './orm'; -// Available models: build, buildStep, builderBinding, contentPreset, databaseFunctionGraph, databaseFunctionGraphExecutionCancelRequest, databaseFunctionGraphExecution, databaseFunctionGraphExecutionNodeState, ... +// Available models: build, buildStep, contentPreset, databaseFunctionGraph, databaseFunctionGraphExecutionCancelRequest, databaseFunctionGraphExecution, databaseFunctionGraphExecutionNodeState, databaseFunctionGraphExecutionOutput, ... db..findMany({ select: { id: true } }).execute() db..findOne({ id: '', select: { id: true } }).execute() db..create({ data: { ... }, select: { id: true } }).execute() @@ -39,7 +39,6 @@ See the `references/` directory for detailed per-entity API documentation: - [build](references/build.md) - [build-step](references/build-step.md) -- [builder-binding](references/builder-binding.md) - [content-preset](references/content-preset.md) - [database-function-graph](references/database-function-graph.md) - [database-function-graph-execution-cancel-request](references/database-function-graph-execution-cancel-request.md) @@ -83,7 +82,6 @@ See the `references/` directory for detailed per-entity API documentation: - [namespace-event](references/namespace-event.md) - [platform-build](references/platform-build.md) - [platform-build-step](references/platform-build-step.md) -- [platform-builder-binding](references/platform-builder-binding.md) - [platform-function-api-binding](references/platform-function-api-binding.md) - [platform-function-capability-binding](references/platform-function-capability-binding.md) - [platform-function-definition](references/platform-function-definition.md) @@ -130,6 +128,7 @@ See the `references/` directory for detailed per-entity API documentation: - [platform-resources-health](references/platform-resources-health.md) - [platform-resources-requirements-state](references/platform-resources-requirements-state.md) - [platform-resources-resolved-requirement](references/platform-resources-resolved-requirement.md) +- [platform-service-binding](references/platform-service-binding.md) - [platform-webhook-endpoint](references/platform-webhook-endpoint.md) - [platform-webhook-event](references/platform-webhook-event.md) - [proposal-comment](references/proposal-comment.md) @@ -158,6 +157,7 @@ See the `references/` directory for detailed per-entity API documentation: - [resources-health](references/resources-health.md) - [resources-requirements-state](references/resources-requirements-state.md) - [resources-resolved-requirement](references/resources-resolved-requirement.md) +- [service-binding](references/service-binding.md) - [webhook-endpoint](references/webhook-endpoint.md) - [webhook-event](references/webhook-event.md) - [database-read-function-graph](references/database-read-function-graph.md) @@ -168,6 +168,7 @@ See the `references/` directory for detailed per-entity API documentation: - [add-node-and-save](references/add-node-and-save.md) - [approve-node](references/approve-node.md) - [copy-graph](references/copy-graph.md) +- [create-function-graph](references/create-function-graph.md) - [database-add-edge](references/database-add-edge.md) - [database-add-edge-and-save](references/database-add-edge-and-save.md) - [database-add-node](references/database-add-node.md) diff --git a/.agents/skills/orm-compute/references/build.md b/.agents/skills/orm-compute/references/build.md index 2aae3fe18b..87d6317edd 100644 --- a/.agents/skills/orm-compute/references/build.md +++ b/.agents/skills/orm-compute/references/build.md @@ -9,7 +9,7 @@ One run of a repository workflow: its commit, its job, and what it produced ```typescript db.build.findMany({ select: { id: true } }).execute() db.build.findOne({ id: '', select: { id: true } }).execute() -db.build.create({ data: { actorId: '', attempt: '', commitSha: '', conclusion: '', createdByPrincipal: '', databaseId: '', eventId: '', finishedAt: '', imageRef: '', jobId: '', logs: '', matrixKey: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }, select: { id: true } }).execute() +db.build.create({ data: { actorId: '', attempt: '', commitSha: '', conclusion: '', createdByPrincipal: '', databaseId: '', eventId: '', finishedAt: '', imageRef: '', jobId: '', logs: '', logsUrl: '', logsVersions: '', matrixKey: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }, select: { id: true } }).execute() db.build.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() db.build.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.build.findMany({ ```typescript const item = await db.build.create({ - data: { actorId: '', attempt: '', commitSha: '', conclusion: '', createdByPrincipal: '', databaseId: '', eventId: '', finishedAt: '', imageRef: '', jobId: '', logs: '', matrixKey: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }, + data: { actorId: '', attempt: '', commitSha: '', conclusion: '', createdByPrincipal: '', databaseId: '', eventId: '', finishedAt: '', imageRef: '', jobId: '', logs: '', logsUrl: '', logsVersions: '', matrixKey: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/create-function-graph.md b/.agents/skills/orm-compute/references/create-function-graph.md new file mode 100644 index 0000000000..9b0b4af04f --- /dev/null +++ b/.agents/skills/orm-compute/references/create-function-graph.md @@ -0,0 +1,19 @@ +# createFunctionGraph + + + +Execute the createFunctionGraph mutation + +## Usage + +```typescript +db.mutation.createFunctionGraph({ input: '' }).execute() +``` + +## Examples + +### Run createFunctionGraph + +```typescript +const result = await db.mutation.createFunctionGraph({ input: '' }).execute(); +``` diff --git a/.agents/skills/orm-compute/references/database-function-graph.md b/.agents/skills/orm-compute/references/database-function-graph.md index b0757adae7..4e765bcf43 100644 --- a/.agents/skills/orm-compute/references/database-function-graph.md +++ b/.agents/skills/orm-compute/references/database-function-graph.md @@ -9,7 +9,6 @@ Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store ```typescript db.databaseFunctionGraph.findMany({ select: { id: true } }).execute() db.databaseFunctionGraph.findOne({ id: '', select: { id: true } }).execute() -db.databaseFunctionGraph.create({ data: { context: '', createdBy: '', databaseId: '', definitionsCommitId: '', description: '', isValid: '', name: '', storeId: '', validationErrors: '' }, select: { id: true } }).execute() db.databaseFunctionGraph.update({ where: { id: '' }, data: { context: '' }, select: { id: true } }).execute() db.databaseFunctionGraph.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.databaseFunctionGraph.findMany({ select: { id: true, context: true } }).execute(); ``` - -### Create a databaseFunctionGraph - -```typescript -const item = await db.databaseFunctionGraph.create({ - data: { context: '', createdBy: '', databaseId: '', definitionsCommitId: '', description: '', isValid: '', name: '', storeId: '', validationErrors: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-compute/references/database-graph-get-all-tree-nodes-record.md b/.agents/skills/orm-compute/references/database-graph-get-all-tree-nodes-record.md index d83ab97956..fcc817a504 100644 --- a/.agents/skills/orm-compute/references/database-graph-get-all-tree-nodes-record.md +++ b/.agents/skills/orm-compute/references/database-graph-get-all-tree-nodes-record.md @@ -9,7 +9,6 @@ ORM operations for DatabaseGraphGetAllTreeNodesRecord records ```typescript db.databaseGraphGetAllTreeNodesRecord.findMany({ select: { id: true } }).execute() db.databaseGraphGetAllTreeNodesRecord.findOne({ id: '', select: { id: true } }).execute() -db.databaseGraphGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute() db.databaseGraphGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute() db.databaseGraphGetAllTreeNodesRecord.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.databaseGraphGetAllTreeNodesRecord.findMany({ select: { id: true, data: true } }).execute(); ``` - -### Create a databaseGraphGetAllTreeNodesRecord - -```typescript -const item = await db.databaseGraphGetAllTreeNodesRecord.create({ - data: { data: '', path: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-compute/references/function-graph.md b/.agents/skills/orm-compute/references/function-graph.md index 000be117e2..f4e8f5b2f9 100644 --- a/.agents/skills/orm-compute/references/function-graph.md +++ b/.agents/skills/orm-compute/references/function-graph.md @@ -9,7 +9,6 @@ Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store ```typescript db.functionGraph.findMany({ select: { id: true } }).execute() db.functionGraph.findOne({ id: '', select: { id: true } }).execute() -db.functionGraph.create({ data: { context: '', createdBy: '', definitionsCommitId: '', description: '', isValid: '', name: '', scopeId: '', storeId: '', validationErrors: '' }, select: { id: true } }).execute() db.functionGraph.update({ where: { id: '' }, data: { context: '' }, select: { id: true } }).execute() db.functionGraph.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.functionGraph.findMany({ select: { id: true, context: true } }).execute(); ``` - -### Create a functionGraph - -```typescript -const item = await db.functionGraph.create({ - data: { context: '', createdBy: '', definitionsCommitId: '', description: '', isValid: '', name: '', scopeId: '', storeId: '', validationErrors: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-compute/references/get-all-tree-nodes-record.md b/.agents/skills/orm-compute/references/get-all-tree-nodes-record.md index 93d06bad2d..6e95ca0845 100644 --- a/.agents/skills/orm-compute/references/get-all-tree-nodes-record.md +++ b/.agents/skills/orm-compute/references/get-all-tree-nodes-record.md @@ -9,7 +9,6 @@ ORM operations for GetAllTreeNodesRecord records ```typescript db.getAllTreeNodesRecord.findMany({ select: { id: true } }).execute() db.getAllTreeNodesRecord.findOne({ id: '', select: { id: true } }).execute() -db.getAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute() db.getAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute() db.getAllTreeNodesRecord.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.getAllTreeNodesRecord.findMany({ select: { id: true, data: true } }).execute(); ``` - -### Create a getAllTreeNodesRecord - -```typescript -const item = await db.getAllTreeNodesRecord.create({ - data: { data: '', path: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-compute/references/infra-get-all-tree-nodes-record.md b/.agents/skills/orm-compute/references/infra-get-all-tree-nodes-record.md index b5ec386e2c..6c4ad6e248 100644 --- a/.agents/skills/orm-compute/references/infra-get-all-tree-nodes-record.md +++ b/.agents/skills/orm-compute/references/infra-get-all-tree-nodes-record.md @@ -9,7 +9,6 @@ ORM operations for InfraGetAllTreeNodesRecord records ```typescript db.infraGetAllTreeNodesRecord.findMany({ select: { id: true } }).execute() db.infraGetAllTreeNodesRecord.findOne({ id: '', select: { id: true } }).execute() -db.infraGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute() db.infraGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute() db.infraGetAllTreeNodesRecord.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.infraGetAllTreeNodesRecord.findMany({ select: { id: true, data: true } }).execute(); ``` - -### Create a infraGetAllTreeNodesRecord - -```typescript -const item = await db.infraGetAllTreeNodesRecord.create({ - data: { data: '', path: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-compute/references/integration-provider.md b/.agents/skills/orm-compute/references/integration-provider.md index b9265dafd5..ea467136f8 100644 --- a/.agents/skills/orm-compute/references/integration-provider.md +++ b/.agents/skills/orm-compute/references/integration-provider.md @@ -9,7 +9,7 @@ Branded catalog of external service integrations and their canonical secret/conf ```typescript db.integrationProvider.findMany({ select: { id: true } }).execute() db.integrationProvider.findOne({ id: '', select: { id: true } }).execute() -db.integrationProvider.create({ data: { brand: '', category: '', description: '', icon: '', logo: '', name: '', requiredConfigs: '', requiredSecrets: '', slug: '' }, select: { id: true } }).execute() +db.integrationProvider.create({ data: { brand: '', category: '', description: '', icon: '', logo: '', logoUrl: '', logoVersions: '', name: '', requiredConfigs: '', requiredSecrets: '', slug: '' }, select: { id: true } }).execute() db.integrationProvider.update({ where: { id: '' }, data: { brand: '' }, select: { id: true } }).execute() db.integrationProvider.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.integrationProvider.findMany({ ```typescript const item = await db.integrationProvider.create({ - data: { brand: '', category: '', description: '', icon: '', logo: '', name: '', requiredConfigs: '', requiredSecrets: '', slug: '' }, + data: { brand: '', category: '', description: '', icon: '', logo: '', logoUrl: '', logoVersions: '', name: '', requiredConfigs: '', requiredSecrets: '', slug: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/platform-build.md b/.agents/skills/orm-compute/references/platform-build.md index 65524c26f0..3ebc0edd6f 100644 --- a/.agents/skills/orm-compute/references/platform-build.md +++ b/.agents/skills/orm-compute/references/platform-build.md @@ -9,7 +9,7 @@ One run of a repository workflow: its commit, its job, and what it produced ```typescript db.platformBuild.findMany({ select: { id: true } }).execute() db.platformBuild.findOne({ id: '', select: { id: true } }).execute() -db.platformBuild.create({ data: { actorId: '', attempt: '', commitSha: '', conclusion: '', createdByPrincipal: '', eventId: '', finishedAt: '', imageRef: '', jobId: '', logs: '', matrixKey: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }, select: { id: true } }).execute() +db.platformBuild.create({ data: { actorId: '', attempt: '', commitSha: '', conclusion: '', createdByPrincipal: '', eventId: '', finishedAt: '', imageRef: '', jobId: '', logs: '', logsUrl: '', logsVersions: '', matrixKey: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }, select: { id: true } }).execute() db.platformBuild.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() db.platformBuild.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.platformBuild.findMany({ ```typescript const item = await db.platformBuild.create({ - data: { actorId: '', attempt: '', commitSha: '', conclusion: '', createdByPrincipal: '', eventId: '', finishedAt: '', imageRef: '', jobId: '', logs: '', matrixKey: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }, + data: { actorId: '', attempt: '', commitSha: '', conclusion: '', createdByPrincipal: '', eventId: '', finishedAt: '', imageRef: '', jobId: '', logs: '', logsUrl: '', logsVersions: '', matrixKey: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/platform-infra-get-all-tree-nodes-record.md b/.agents/skills/orm-compute/references/platform-infra-get-all-tree-nodes-record.md index c2617deed0..a69075b97a 100644 --- a/.agents/skills/orm-compute/references/platform-infra-get-all-tree-nodes-record.md +++ b/.agents/skills/orm-compute/references/platform-infra-get-all-tree-nodes-record.md @@ -9,7 +9,6 @@ ORM operations for PlatformInfraGetAllTreeNodesRecord records ```typescript db.platformInfraGetAllTreeNodesRecord.findMany({ select: { id: true } }).execute() db.platformInfraGetAllTreeNodesRecord.findOne({ id: '', select: { id: true } }).execute() -db.platformInfraGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute() db.platformInfraGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute() db.platformInfraGetAllTreeNodesRecord.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.platformInfraGetAllTreeNodesRecord.findMany({ select: { id: true, data: true } }).execute(); ``` - -### Create a platformInfraGetAllTreeNodesRecord - -```typescript -const item = await db.platformInfraGetAllTreeNodesRecord.create({ - data: { data: '', path: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-compute/references/platform-proposal-comment.md b/.agents/skills/orm-compute/references/platform-proposal-comment.md index f1807f8aab..46869a8fac 100644 --- a/.agents/skills/orm-compute/references/platform-proposal-comment.md +++ b/.agents/skills/orm-compute/references/platform-proposal-comment.md @@ -15,7 +15,7 @@ Fields provided by the Unified Search plugin. Includes full-text search (tsvecto ```typescript db.platformProposalComment.findMany({ select: { id: true } }).execute() db.platformProposalComment.findOne({ id: '', select: { id: true } }).execute() -db.platformProposalComment.create({ data: { actorId: '', attachments: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() +db.platformProposalComment.create({ data: { actorId: '', attachments: '', attachmentsUrl: '', attachmentsVersions: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() db.platformProposalComment.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() db.platformProposalComment.delete({ where: { id: '' } }).execute() ``` @@ -34,7 +34,7 @@ const items = await db.platformProposalComment.findMany({ ```typescript const item = await db.platformProposalComment.create({ - data: { actorId: '', attachments: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }, + data: { actorId: '', attachments: '', attachmentsUrl: '', attachmentsVersions: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/platform-proposal.md b/.agents/skills/orm-compute/references/platform-proposal.md index ac7791b4b6..123c30f1c3 100644 --- a/.agents/skills/orm-compute/references/platform-proposal.md +++ b/.agents/skills/orm-compute/references/platform-proposal.md @@ -15,7 +15,7 @@ Fields provided by the Unified Search plugin. Includes full-text search (tsvecto ```typescript db.platformProposal.findMany({ select: { id: true } }).execute() db.platformProposal.findOne({ id: '', select: { id: true } }).execute() -db.platformProposal.create({ data: { actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', decidedAt: '', dueAt: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() +db.platformProposal.create({ data: { actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', decidedAt: '', dueAt: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() db.platformProposal.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() db.platformProposal.delete({ where: { id: '' } }).execute() ``` @@ -34,7 +34,7 @@ const items = await db.platformProposal.findMany({ ```typescript const item = await db.platformProposal.create({ - data: { actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', decidedAt: '', dueAt: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, + data: { actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', decidedAt: '', dueAt: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/platform-repository.md b/.agents/skills/orm-compute/references/platform-repository.md index b5cafd0f7f..eea2660db8 100644 --- a/.agents/skills/orm-compute/references/platform-repository.md +++ b/.agents/skills/orm-compute/references/platform-repository.md @@ -15,7 +15,7 @@ Fields provided by the Unified Search plugin. Includes full-text search (tsvecto ```typescript db.platformRepository.findMany({ select: { id: true } }).execute() db.platformRepository.findOne({ id: '', select: { id: true } }).execute() -db.platformRepository.create({ data: { cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }, select: { id: true } }).execute() +db.platformRepository.create({ data: { cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }, select: { id: true } }).execute() db.platformRepository.update({ where: { id: '' }, data: { cloneUrl: '' }, select: { id: true } }).execute() db.platformRepository.delete({ where: { id: '' } }).execute() ``` @@ -34,7 +34,7 @@ const items = await db.platformRepository.findMany({ ```typescript const item = await db.platformRepository.create({ - data: { cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }, + data: { cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/platform-resource-declared-capacity.md b/.agents/skills/orm-compute/references/platform-resource-declared-capacity.md index e684acf225..41e68590b5 100644 --- a/.agents/skills/orm-compute/references/platform-resource-declared-capacity.md +++ b/.agents/skills/orm-compute/references/platform-resource-declared-capacity.md @@ -9,7 +9,6 @@ ORM operations for PlatformResourceDeclaredCapacity records ```typescript db.platformResourceDeclaredCapacity.findMany({ select: { id: true } }).execute() db.platformResourceDeclaredCapacity.findOne({ id: '', select: { id: true } }).execute() -db.platformResourceDeclaredCapacity.create({ data: { cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '', storageTotalBytes: '' }, select: { id: true } }).execute() db.platformResourceDeclaredCapacity.update({ where: { id: '' }, data: { cpuLimitMillicores: '' }, select: { id: true } }).execute() db.platformResourceDeclaredCapacity.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.platformResourceDeclaredCapacity.findMany({ select: { id: true, cpuLimitMillicores: true } }).execute(); ``` - -### Create a platformResourceDeclaredCapacity - -```typescript -const item = await db.platformResourceDeclaredCapacity.create({ - data: { cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '', storageTotalBytes: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-compute/references/platform-resource-observed-storage.md b/.agents/skills/orm-compute/references/platform-resource-observed-storage.md index d972742369..600f2dd35a 100644 --- a/.agents/skills/orm-compute/references/platform-resource-observed-storage.md +++ b/.agents/skills/orm-compute/references/platform-resource-observed-storage.md @@ -9,7 +9,6 @@ ORM operations for PlatformResourceObservedStorage records ```typescript db.platformResourceObservedStorage.findMany({ select: { id: true } }).execute() db.platformResourceObservedStorage.findOne({ id: '', select: { id: true } }).execute() -db.platformResourceObservedStorage.create({ data: { capacity: '', capacityBytes: '', claimName: '', declaredStorageClass: '', declaredStorageSizeBytes: '', declaredStorageTotalBytes: '', installationId: '', isBound: '', kind: '', namespaceId: '', phase: '', requested: '', requestedBytes: '', resourceId: '', resourceStatus: '', slug: '', storageClass: '', storageName: '' }, select: { id: true } }).execute() db.platformResourceObservedStorage.update({ where: { id: '' }, data: { capacity: '' }, select: { id: true } }).execute() db.platformResourceObservedStorage.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.platformResourceObservedStorage.findMany({ select: { id: true, capacity: true } }).execute(); ``` - -### Create a platformResourceObservedStorage - -```typescript -const item = await db.platformResourceObservedStorage.create({ - data: { capacity: '', capacityBytes: '', claimName: '', declaredStorageClass: '', declaredStorageSizeBytes: '', declaredStorageTotalBytes: '', installationId: '', isBound: '', kind: '', namespaceId: '', phase: '', requested: '', requestedBytes: '', resourceId: '', resourceStatus: '', slug: '', storageClass: '', storageName: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-compute/references/platform-resource-utilization.md b/.agents/skills/orm-compute/references/platform-resource-utilization.md index 8ea11dd257..6463930f51 100644 --- a/.agents/skills/orm-compute/references/platform-resource-utilization.md +++ b/.agents/skills/orm-compute/references/platform-resource-utilization.md @@ -9,7 +9,6 @@ ORM operations for PlatformResourceUtilization records ```typescript db.platformResourceUtilization.findMany({ select: { id: true } }).execute() db.platformResourceUtilization.findOne({ id: '', select: { id: true } }).execute() -db.platformResourceUtilization.create({ data: { avgMemoryBytes: '', cpuLimitMillicores: '', cpuPeakUtilization: '', cpuRequestHeadroomMillicores: '', cpuRequestMillicores: '', date: '', gbSeconds: '', kind: '', maxCpuMillicores: '', maxMemoryBytes: '', memoryLimitBytes: '', memoryPeakUtilization: '', memoryRequestBytes: '', memoryRequestHeadroomBytes: '', namespaceId: '', replicas: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }, select: { id: true } }).execute() db.platformResourceUtilization.update({ where: { id: '' }, data: { avgMemoryBytes: '' }, select: { id: true } }).execute() db.platformResourceUtilization.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.platformResourceUtilization.findMany({ select: { id: true, avgMemoryBytes: true } }).execute(); ``` - -### Create a platformResourceUtilization - -```typescript -const item = await db.platformResourceUtilization.create({ - data: { avgMemoryBytes: '', cpuLimitMillicores: '', cpuPeakUtilization: '', cpuRequestHeadroomMillicores: '', cpuRequestMillicores: '', date: '', gbSeconds: '', kind: '', maxCpuMillicores: '', maxMemoryBytes: '', memoryLimitBytes: '', memoryPeakUtilization: '', memoryRequestBytes: '', memoryRequestHeadroomBytes: '', namespaceId: '', replicas: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-compute/references/platform-resources-health.md b/.agents/skills/orm-compute/references/platform-resources-health.md index f2a3a0467e..44db3cdb42 100644 --- a/.agents/skills/orm-compute/references/platform-resources-health.md +++ b/.agents/skills/orm-compute/references/platform-resources-health.md @@ -9,7 +9,6 @@ ORM operations for PlatformResourcesHealth records ```typescript db.platformResourcesHealth.findMany({ select: { id: true } }).execute() db.platformResourcesHealth.findOne({ id: '', select: { id: true } }).execute() -db.platformResourcesHealth.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() db.platformResourcesHealth.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute() db.platformResourcesHealth.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.platformResourcesHealth.findMany({ select: { id: true, annotations: true } }).execute(); ``` - -### Create a platformResourcesHealth - -```typescript -const item = await db.platformResourcesHealth.create({ - data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-compute/references/platform-resources-requirements-state.md b/.agents/skills/orm-compute/references/platform-resources-requirements-state.md index 9b611be13c..503ee47491 100644 --- a/.agents/skills/orm-compute/references/platform-resources-requirements-state.md +++ b/.agents/skills/orm-compute/references/platform-resources-requirements-state.md @@ -9,7 +9,6 @@ ORM operations for PlatformResourcesRequirementsState records ```typescript db.platformResourcesRequirementsState.findMany({ select: { id: true } }).execute() db.platformResourcesRequirementsState.findOne({ id: '', select: { id: true } }).execute() -db.platformResourcesRequirementsState.create({ data: { configHash: '', configObjectName: '', requirementsHash: '', resourceId: '', secretsHash: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute() db.platformResourcesRequirementsState.update({ where: { id: '' }, data: { configHash: '' }, select: { id: true } }).execute() db.platformResourcesRequirementsState.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.platformResourcesRequirementsState.findMany({ select: { id: true, configHash: true } }).execute(); ``` - -### Create a platformResourcesRequirementsState - -```typescript -const item = await db.platformResourcesRequirementsState.create({ - data: { configHash: '', configObjectName: '', requirementsHash: '', resourceId: '', secretsHash: '', secretsObjectName: '', slug: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-compute/references/platform-resources-resolved-requirement.md b/.agents/skills/orm-compute/references/platform-resources-resolved-requirement.md index 2a00b02690..8107dd7d26 100644 --- a/.agents/skills/orm-compute/references/platform-resources-resolved-requirement.md +++ b/.agents/skills/orm-compute/references/platform-resources-resolved-requirement.md @@ -9,7 +9,6 @@ ORM operations for PlatformResourcesResolvedRequirement records ```typescript db.platformResourcesResolvedRequirement.findMany({ select: { id: true } }).execute() db.platformResourcesResolvedRequirement.findOne({ id: '', select: { id: true } }).execute() -db.platformResourcesResolvedRequirement.create({ data: { atomId: '', configObjectName: '', name: '', namespaceId: '', present: '', realm: '', required: '', requirementKind: '', resourceId: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute() db.platformResourcesResolvedRequirement.update({ where: { id: '' }, data: { atomId: '' }, select: { id: true } }).execute() db.platformResourcesResolvedRequirement.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.platformResourcesResolvedRequirement.findMany({ select: { id: true, atomId: true } }).execute(); ``` - -### Create a platformResourcesResolvedRequirement - -```typescript -const item = await db.platformResourcesResolvedRequirement.create({ - data: { atomId: '', configObjectName: '', name: '', namespaceId: '', present: '', realm: '', required: '', requirementKind: '', resourceId: '', secretsObjectName: '', slug: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-compute/references/platform-service-binding.md b/.agents/skills/orm-compute/references/platform-service-binding.md new file mode 100644 index 0000000000..fcdd4d70ae --- /dev/null +++ b/.agents/skills/orm-compute/references/platform-service-binding.md @@ -0,0 +1,34 @@ +# platformServiceBinding + + + +Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + +## Usage + +```typescript +db.platformServiceBinding.findMany({ select: { id: true } }).execute() +db.platformServiceBinding.findOne({ id: '', select: { id: true } }).execute() +db.platformServiceBinding.create({ data: { createdBy: '', createdByPrincipal: '', installationId: '', installationScope: '', kind: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() +db.platformServiceBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() +db.platformServiceBinding.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all platformServiceBinding records + +```typescript +const items = await db.platformServiceBinding.findMany({ + select: { id: true, createdBy: true } +}).execute(); +``` + +### Create a platformServiceBinding + +```typescript +const item = await db.platformServiceBinding.create({ + data: { createdBy: '', createdByPrincipal: '', installationId: '', installationScope: '', kind: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-compute/references/proposal-comment.md b/.agents/skills/orm-compute/references/proposal-comment.md index 83de788c02..7578fe5b2c 100644 --- a/.agents/skills/orm-compute/references/proposal-comment.md +++ b/.agents/skills/orm-compute/references/proposal-comment.md @@ -15,7 +15,7 @@ Fields provided by the Unified Search plugin. Includes full-text search (tsvecto ```typescript db.proposalComment.findMany({ select: { id: true } }).execute() db.proposalComment.findOne({ id: '', select: { id: true } }).execute() -db.proposalComment.create({ data: { actorId: '', attachments: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() +db.proposalComment.create({ data: { actorId: '', attachments: '', attachmentsUrl: '', attachmentsVersions: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() db.proposalComment.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() db.proposalComment.delete({ where: { id: '' } }).execute() ``` @@ -34,7 +34,7 @@ const items = await db.proposalComment.findMany({ ```typescript const item = await db.proposalComment.create({ - data: { actorId: '', attachments: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }, + data: { actorId: '', attachments: '', attachmentsUrl: '', attachmentsVersions: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/proposal.md b/.agents/skills/orm-compute/references/proposal.md index c4851f192a..e9ab465b73 100644 --- a/.agents/skills/orm-compute/references/proposal.md +++ b/.agents/skills/orm-compute/references/proposal.md @@ -15,7 +15,7 @@ Fields provided by the Unified Search plugin. Includes full-text search (tsvecto ```typescript db.proposal.findMany({ select: { id: true } }).execute() db.proposal.findOne({ id: '', select: { id: true } }).execute() -db.proposal.create({ data: { actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', decidedAt: '', dueAt: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() +db.proposal.create({ data: { actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', decidedAt: '', dueAt: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() db.proposal.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() db.proposal.delete({ where: { id: '' } }).execute() ``` @@ -34,7 +34,7 @@ const items = await db.proposal.findMany({ ```typescript const item = await db.proposal.create({ - data: { actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', decidedAt: '', dueAt: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, + data: { actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', decidedAt: '', dueAt: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/repository.md b/.agents/skills/orm-compute/references/repository.md index bc31e9b96e..98e414c9ad 100644 --- a/.agents/skills/orm-compute/references/repository.md +++ b/.agents/skills/orm-compute/references/repository.md @@ -15,7 +15,7 @@ Fields provided by the Unified Search plugin. Includes full-text search (tsvecto ```typescript db.repository.findMany({ select: { id: true } }).execute() db.repository.findOne({ id: '', select: { id: true } }).execute() -db.repository.create({ data: { cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }, select: { id: true } }).execute() +db.repository.create({ data: { cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }, select: { id: true } }).execute() db.repository.update({ where: { id: '' }, data: { cloneUrl: '' }, select: { id: true } }).execute() db.repository.delete({ where: { id: '' } }).execute() ``` @@ -34,7 +34,7 @@ const items = await db.repository.findMany({ ```typescript const item = await db.repository.create({ - data: { cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }, + data: { cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-compute/references/resource-declared-capacity.md b/.agents/skills/orm-compute/references/resource-declared-capacity.md index 48f2b8168c..514440604a 100644 --- a/.agents/skills/orm-compute/references/resource-declared-capacity.md +++ b/.agents/skills/orm-compute/references/resource-declared-capacity.md @@ -9,7 +9,6 @@ ORM operations for ResourceDeclaredCapacity records ```typescript db.resourceDeclaredCapacity.findMany({ select: { id: true } }).execute() db.resourceDeclaredCapacity.findOne({ id: '', select: { id: true } }).execute() -db.resourceDeclaredCapacity.create({ data: { cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '', storageTotalBytes: '' }, select: { id: true } }).execute() db.resourceDeclaredCapacity.update({ where: { id: '' }, data: { cpuLimitMillicores: '' }, select: { id: true } }).execute() db.resourceDeclaredCapacity.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.resourceDeclaredCapacity.findMany({ select: { id: true, cpuLimitMillicores: true } }).execute(); ``` - -### Create a resourceDeclaredCapacity - -```typescript -const item = await db.resourceDeclaredCapacity.create({ - data: { cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '', storageTotalBytes: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-compute/references/resource-observed-storage.md b/.agents/skills/orm-compute/references/resource-observed-storage.md index 7e716f8195..63d94b08c7 100644 --- a/.agents/skills/orm-compute/references/resource-observed-storage.md +++ b/.agents/skills/orm-compute/references/resource-observed-storage.md @@ -9,7 +9,6 @@ ORM operations for ResourceObservedStorage records ```typescript db.resourceObservedStorage.findMany({ select: { id: true } }).execute() db.resourceObservedStorage.findOne({ id: '', select: { id: true } }).execute() -db.resourceObservedStorage.create({ data: { capacity: '', capacityBytes: '', claimName: '', declaredStorageClass: '', declaredStorageSizeBytes: '', declaredStorageTotalBytes: '', installationId: '', isBound: '', kind: '', namespaceId: '', phase: '', requested: '', requestedBytes: '', resourceId: '', resourceStatus: '', slug: '', storageClass: '', storageName: '' }, select: { id: true } }).execute() db.resourceObservedStorage.update({ where: { id: '' }, data: { capacity: '' }, select: { id: true } }).execute() db.resourceObservedStorage.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.resourceObservedStorage.findMany({ select: { id: true, capacity: true } }).execute(); ``` - -### Create a resourceObservedStorage - -```typescript -const item = await db.resourceObservedStorage.create({ - data: { capacity: '', capacityBytes: '', claimName: '', declaredStorageClass: '', declaredStorageSizeBytes: '', declaredStorageTotalBytes: '', installationId: '', isBound: '', kind: '', namespaceId: '', phase: '', requested: '', requestedBytes: '', resourceId: '', resourceStatus: '', slug: '', storageClass: '', storageName: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-compute/references/resource-utilization.md b/.agents/skills/orm-compute/references/resource-utilization.md index 9954462927..95cec5c84a 100644 --- a/.agents/skills/orm-compute/references/resource-utilization.md +++ b/.agents/skills/orm-compute/references/resource-utilization.md @@ -9,7 +9,6 @@ ORM operations for ResourceUtilization records ```typescript db.resourceUtilization.findMany({ select: { id: true } }).execute() db.resourceUtilization.findOne({ id: '', select: { id: true } }).execute() -db.resourceUtilization.create({ data: { avgMemoryBytes: '', cpuLimitMillicores: '', cpuPeakUtilization: '', cpuRequestHeadroomMillicores: '', cpuRequestMillicores: '', date: '', gbSeconds: '', kind: '', maxCpuMillicores: '', maxMemoryBytes: '', memoryLimitBytes: '', memoryPeakUtilization: '', memoryRequestBytes: '', memoryRequestHeadroomBytes: '', namespaceId: '', replicas: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }, select: { id: true } }).execute() db.resourceUtilization.update({ where: { id: '' }, data: { avgMemoryBytes: '' }, select: { id: true } }).execute() db.resourceUtilization.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.resourceUtilization.findMany({ select: { id: true, avgMemoryBytes: true } }).execute(); ``` - -### Create a resourceUtilization - -```typescript -const item = await db.resourceUtilization.create({ - data: { avgMemoryBytes: '', cpuLimitMillicores: '', cpuPeakUtilization: '', cpuRequestHeadroomMillicores: '', cpuRequestMillicores: '', date: '', gbSeconds: '', kind: '', maxCpuMillicores: '', maxMemoryBytes: '', memoryLimitBytes: '', memoryPeakUtilization: '', memoryRequestBytes: '', memoryRequestHeadroomBytes: '', namespaceId: '', replicas: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-compute/references/resources-health.md b/.agents/skills/orm-compute/references/resources-health.md index aef5dee277..a523b4ee56 100644 --- a/.agents/skills/orm-compute/references/resources-health.md +++ b/.agents/skills/orm-compute/references/resources-health.md @@ -9,7 +9,6 @@ ORM operations for ResourcesHealth records ```typescript db.resourcesHealth.findMany({ select: { id: true } }).execute() db.resourcesHealth.findOne({ id: '', select: { id: true } }).execute() -db.resourcesHealth.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() db.resourcesHealth.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute() db.resourcesHealth.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.resourcesHealth.findMany({ select: { id: true, annotations: true } }).execute(); ``` - -### Create a resourcesHealth - -```typescript -const item = await db.resourcesHealth.create({ - data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-compute/references/resources-requirements-state.md b/.agents/skills/orm-compute/references/resources-requirements-state.md index 9aaa4a6f81..8815b6b679 100644 --- a/.agents/skills/orm-compute/references/resources-requirements-state.md +++ b/.agents/skills/orm-compute/references/resources-requirements-state.md @@ -9,7 +9,6 @@ ORM operations for ResourcesRequirementsState records ```typescript db.resourcesRequirementsState.findMany({ select: { id: true } }).execute() db.resourcesRequirementsState.findOne({ id: '', select: { id: true } }).execute() -db.resourcesRequirementsState.create({ data: { configHash: '', configObjectName: '', requirementsHash: '', resourceId: '', secretsHash: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute() db.resourcesRequirementsState.update({ where: { id: '' }, data: { configHash: '' }, select: { id: true } }).execute() db.resourcesRequirementsState.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.resourcesRequirementsState.findMany({ select: { id: true, configHash: true } }).execute(); ``` - -### Create a resourcesRequirementsState - -```typescript -const item = await db.resourcesRequirementsState.create({ - data: { configHash: '', configObjectName: '', requirementsHash: '', resourceId: '', secretsHash: '', secretsObjectName: '', slug: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-compute/references/resources-resolved-requirement.md b/.agents/skills/orm-compute/references/resources-resolved-requirement.md index c5745db39b..465c522608 100644 --- a/.agents/skills/orm-compute/references/resources-resolved-requirement.md +++ b/.agents/skills/orm-compute/references/resources-resolved-requirement.md @@ -9,7 +9,6 @@ ORM operations for ResourcesResolvedRequirement records ```typescript db.resourcesResolvedRequirement.findMany({ select: { id: true } }).execute() db.resourcesResolvedRequirement.findOne({ id: '', select: { id: true } }).execute() -db.resourcesResolvedRequirement.create({ data: { atomId: '', configObjectName: '', name: '', namespaceId: '', present: '', realm: '', required: '', requirementKind: '', resourceId: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute() db.resourcesResolvedRequirement.update({ where: { id: '' }, data: { atomId: '' }, select: { id: true } }).execute() db.resourcesResolvedRequirement.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.resourcesResolvedRequirement.findMany({ select: { id: true, atomId: true } }).execute(); ``` - -### Create a resourcesResolvedRequirement - -```typescript -const item = await db.resourcesResolvedRequirement.create({ - data: { atomId: '', configObjectName: '', name: '', namespaceId: '', present: '', realm: '', required: '', requirementKind: '', resourceId: '', secretsObjectName: '', slug: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-compute/references/service-binding.md b/.agents/skills/orm-compute/references/service-binding.md new file mode 100644 index 0000000000..c792818c84 --- /dev/null +++ b/.agents/skills/orm-compute/references/service-binding.md @@ -0,0 +1,34 @@ +# serviceBinding + + + +Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + +## Usage + +```typescript +db.serviceBinding.findMany({ select: { id: true } }).execute() +db.serviceBinding.findOne({ id: '', select: { id: true } }).execute() +db.serviceBinding.create({ data: { createdBy: '', createdByPrincipal: '', databaseId: '', installationId: '', installationScope: '', kind: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute() +db.serviceBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() +db.serviceBinding.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all serviceBinding records + +```typescript +const items = await db.serviceBinding.findMany({ + select: { id: true, createdBy: true } +}).execute(); +``` + +### Create a serviceBinding + +```typescript +const item = await db.serviceBinding.create({ + data: { createdBy: '', createdByPrincipal: '', databaseId: '', installationId: '', installationScope: '', kind: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-config/references/app-internal-secret.md b/.agents/skills/orm-config/references/app-internal-secret.md index 3837d92563..d0e9be621c 100644 --- a/.agents/skills/orm-config/references/app-internal-secret.md +++ b/.agents/skills/orm-config/references/app-internal-secret.md @@ -9,7 +9,6 @@ ORM operations for AppInternalSecret records ```typescript db.appInternalSecret.findMany({ select: { id: true } }).execute() db.appInternalSecret.findOne({ id: '', select: { id: true } }).execute() -db.appInternalSecret.create({ data: { annotations: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute() db.appInternalSecret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute() db.appInternalSecret.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.appInternalSecret.findMany({ select: { id: true, annotations: true } }).execute(); ``` - -### Create a appInternalSecret - -```typescript -const item = await db.appInternalSecret.create({ - data: { annotations: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-config/references/internal-secret.md b/.agents/skills/orm-config/references/internal-secret.md index 1b33b6952c..1aa02858c8 100644 --- a/.agents/skills/orm-config/references/internal-secret.md +++ b/.agents/skills/orm-config/references/internal-secret.md @@ -9,7 +9,6 @@ ORM operations for InternalSecret records ```typescript db.internalSecret.findMany({ select: { id: true } }).execute() db.internalSecret.findOne({ id: '', select: { id: true } }).execute() -db.internalSecret.create({ data: { annotations: '', databaseId: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute() db.internalSecret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute() db.internalSecret.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.internalSecret.findMany({ select: { id: true, annotations: true } }).execute(); ``` - -### Create a internalSecret - -```typescript -const item = await db.internalSecret.create({ - data: { annotations: '', databaseId: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-config/references/platform-internal-secret.md b/.agents/skills/orm-config/references/platform-internal-secret.md index fc1a433bb5..4f9ea63916 100644 --- a/.agents/skills/orm-config/references/platform-internal-secret.md +++ b/.agents/skills/orm-config/references/platform-internal-secret.md @@ -9,7 +9,6 @@ ORM operations for PlatformInternalSecret records ```typescript db.platformInternalSecret.findMany({ select: { id: true } }).execute() db.platformInternalSecret.findOne({ id: '', select: { id: true } }).execute() -db.platformInternalSecret.create({ data: { annotations: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute() db.platformInternalSecret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute() db.platformInternalSecret.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.platformInternalSecret.findMany({ select: { id: true, annotations: true } }).execute(); ``` - -### Create a platformInternalSecret - -```typescript -const item = await db.platformInternalSecret.create({ - data: { annotations: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-config/references/platform-secret.md b/.agents/skills/orm-config/references/platform-secret.md index 93a09b98be..6b8d3bde04 100644 --- a/.agents/skills/orm-config/references/platform-secret.md +++ b/.agents/skills/orm-config/references/platform-secret.md @@ -9,7 +9,6 @@ ORM operations for PlatformSecret records ```typescript db.platformSecret.findMany({ select: { id: true } }).execute() db.platformSecret.findOne({ id: '', select: { id: true } }).execute() -db.platformSecret.create({ data: { annotations: '', description: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute() db.platformSecret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute() db.platformSecret.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.platformSecret.findMany({ select: { id: true, annotations: true } }).execute(); ``` - -### Create a platformSecret - -```typescript -const item = await db.platformSecret.create({ - data: { annotations: '', description: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', retiredAt: '', rotatedAt: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-config/references/secret.md b/.agents/skills/orm-config/references/secret.md index 413b3a245b..0b13502c6b 100644 --- a/.agents/skills/orm-config/references/secret.md +++ b/.agents/skills/orm-config/references/secret.md @@ -9,7 +9,6 @@ ORM operations for Secret records ```typescript db.secret.findMany({ select: { id: true } }).execute() db.secret.findOne({ id: '', select: { id: true } }).execute() -db.secret.create({ data: { annotations: '', databaseId: '', description: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute() db.secret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute() db.secret.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.secret.findMany({ select: { id: true, annotations: true } }).execute(); ``` - -### Create a secret - -```typescript -const item = await db.secret.create({ - data: { annotations: '', databaseId: '', description: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', retiredAt: '', rotatedAt: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-infra/references/platform-infra-get-all-tree-nodes-record.md b/.agents/skills/orm-infra/references/platform-infra-get-all-tree-nodes-record.md index c2617deed0..a69075b97a 100644 --- a/.agents/skills/orm-infra/references/platform-infra-get-all-tree-nodes-record.md +++ b/.agents/skills/orm-infra/references/platform-infra-get-all-tree-nodes-record.md @@ -9,7 +9,6 @@ ORM operations for PlatformInfraGetAllTreeNodesRecord records ```typescript db.platformInfraGetAllTreeNodesRecord.findMany({ select: { id: true } }).execute() db.platformInfraGetAllTreeNodesRecord.findOne({ id: '', select: { id: true } }).execute() -db.platformInfraGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute() db.platformInfraGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute() db.platformInfraGetAllTreeNodesRecord.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.platformInfraGetAllTreeNodesRecord.findMany({ select: { id: true, data: true } }).execute(); ``` - -### Create a platformInfraGetAllTreeNodesRecord - -```typescript -const item = await db.platformInfraGetAllTreeNodesRecord.create({ - data: { data: '', path: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-modules/references/blueprint-construction.md b/.agents/skills/orm-modules/references/blueprint-construction.md index 9c081fe747..733eb3569a 100644 --- a/.agents/skills/orm-modules/references/blueprint-construction.md +++ b/.agents/skills/orm-modules/references/blueprint-construction.md @@ -2,14 +2,14 @@ -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. +Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. 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, including failed ones. ## Usage ```typescript db.blueprintConstruction.findMany({ select: { id: true } }).execute() db.blueprintConstruction.findOne({ id: '', select: { id: true } }).execute() -db.blueprintConstruction.create({ data: { blueprintId: '', constructedAt: '', constructedDefinition: '', databaseId: '', schemaId: '', status: '', tableMap: '' }, select: { id: true } }).execute() +db.blueprintConstruction.create({ data: { blueprintId: '', constructedAt: '', constructedDefinition: '', databaseId: '', error: '', schemaId: '', status: '', tableMap: '' }, select: { id: true } }).execute() db.blueprintConstruction.update({ where: { id: '' }, data: { blueprintId: '' }, select: { id: true } }).execute() db.blueprintConstruction.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.blueprintConstruction.findMany({ ```typescript const item = await db.blueprintConstruction.create({ - data: { blueprintId: '', constructedAt: '', constructedDefinition: '', databaseId: '', schemaId: '', status: '', tableMap: '' }, + data: { blueprintId: '', constructedAt: '', constructedDefinition: '', databaseId: '', error: '', schemaId: '', status: '', tableMap: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/construct-blueprint.md b/.agents/skills/orm-modules/references/construct-blueprint.md index 7e05c41c57..a35f495b7b 100644 --- a/.agents/skills/orm-modules/references/construct-blueprint.md +++ b/.agents/skills/orm-modules/references/construct-blueprint.md @@ -2,7 +2,7 @@ -Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). A table entry either names its table (table_name plus optional schema_name) or references one an installed module generated ("module": {"type": "agent", "scope": "org", "table": "message"}), which resolves through the module row's recorded table ids and raises when it matches nothing instead of creating an empty table. After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID. A failure raises its coded error to the caller and rolls back the whole construction, including the construction record. +Requests a build of a blueprint: snapshots its definition into a pending blueprint_construction row, enqueues the blueprint:construct job that runs metaschema_private.construct_blueprint_run on it, and returns the construction id immediately. Poll the row: pending -> constructing -> constructed (table_map populated) or failed (error holds the coded error). schema_id is the default schema for tables without an explicit schema_name. ## Usage diff --git a/.agents/skills/orm-modules/references/db-usage-module.md b/.agents/skills/orm-modules/references/db-usage-module.md index aeb0ddb80d..5617611596 100644 --- a/.agents/skills/orm-modules/references/db-usage-module.md +++ b/.agents/skills/orm-modules/references/db-usage-module.md @@ -9,7 +9,7 @@ ORM operations for DbUsageModule records ```typescript db.dbUsageModule.findMany({ select: { id: true } }).execute() db.dbUsageModule.findOne({ id: '', select: { id: true } }).execute() -db.dbUsageModule.create({ data: { apiName: '', collectDbQueryStatsFunction: '', collectDbTableStatsFunction: '', databaseId: '', defaultCapabilities: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsSummaryTableId: '', queryStatsSummaryTableName: '', retention: '', rollupDbQueryStatsUsageSummaryFunction: '', rollupDbTableStatsUsageSummaryFunction: '', schemaId: '', scope: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsSummaryTableId: '', tableStatsSummaryTableName: '' }, select: { id: true } }).execute() +db.dbUsageModule.create({ data: { apiName: '', collectDbQueryStatsFunction: '', collectDbTableStatsFunction: '', databaseId: '', defaultCapabilities: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsSummaryTableId: '', queryStatsSummaryTableName: '', readDbQueryStatsUsagePeriodFunction: '', readDbTableStatsUsagePeriodFunction: '', retention: '', rollupDbQueryStatsUsageSummaryFunction: '', rollupDbTableStatsUsageSummaryFunction: '', schemaId: '', scope: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsSummaryTableId: '', tableStatsSummaryTableName: '' }, select: { id: true } }).execute() db.dbUsageModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() db.dbUsageModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.dbUsageModule.findMany({ ```typescript const item = await db.dbUsageModule.create({ - data: { apiName: '', collectDbQueryStatsFunction: '', collectDbTableStatsFunction: '', databaseId: '', defaultCapabilities: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsSummaryTableId: '', queryStatsSummaryTableName: '', retention: '', rollupDbQueryStatsUsageSummaryFunction: '', rollupDbTableStatsUsageSummaryFunction: '', schemaId: '', scope: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsSummaryTableId: '', tableStatsSummaryTableName: '' }, + data: { apiName: '', collectDbQueryStatsFunction: '', collectDbTableStatsFunction: '', databaseId: '', defaultCapabilities: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsSummaryTableId: '', queryStatsSummaryTableName: '', readDbQueryStatsUsagePeriodFunction: '', readDbTableStatsUsagePeriodFunction: '', retention: '', rollupDbQueryStatsUsageSummaryFunction: '', rollupDbTableStatsUsageSummaryFunction: '', schemaId: '', scope: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsSummaryTableId: '', tableStatsSummaryTableName: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/domain-module.md b/.agents/skills/orm-modules/references/domain-module.md index 894c368280..821ed6b9b8 100644 --- a/.agents/skills/orm-modules/references/domain-module.md +++ b/.agents/skills/orm-modules/references/domain-module.md @@ -9,7 +9,7 @@ ORM operations for DomainModule records ```typescript db.domainModule.findMany({ select: { id: true } }).execute() db.domainModule.findOne({ id: '', select: { id: true } }).execute() -db.domainModule.create({ data: { apiName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', domainEventsTableId: '', domainEventsTableName: '', domainVerificationsTableId: '', domainVerificationsTableName: '', domainsTableId: '', domainsTableName: '', entityField: '', entityTableId: '', managedDomainsTableId: '', managedDomainsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute() +db.domainModule.create({ data: { apiName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', defaultReservedSubdomains: '', domainEventsTableId: '', domainEventsTableName: '', domainVerificationsTableId: '', domainVerificationsTableName: '', domainsTableId: '', domainsTableName: '', entityField: '', entityTableId: '', managedDomainsTableId: '', managedDomainsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', reservedSubdomainsTableId: '', reservedSubdomainsTableName: '', schemaId: '', scope: '', sweepUnverifiedDomainsFunction: '' }, select: { id: true } }).execute() db.domainModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() db.domainModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.domainModule.findMany({ ```typescript const item = await db.domainModule.create({ - data: { apiName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', domainEventsTableId: '', domainEventsTableName: '', domainVerificationsTableId: '', domainVerificationsTableName: '', domainsTableId: '', domainsTableName: '', entityField: '', entityTableId: '', managedDomainsTableId: '', managedDomainsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, + data: { apiName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', defaultReservedSubdomains: '', domainEventsTableId: '', domainEventsTableName: '', domainVerificationsTableId: '', domainVerificationsTableName: '', domainsTableId: '', domainsTableName: '', entityField: '', entityTableId: '', managedDomainsTableId: '', managedDomainsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', reservedSubdomainsTableId: '', reservedSubdomainsTableName: '', schemaId: '', scope: '', sweepUnverifiedDomainsFunction: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/resource-module.md b/.agents/skills/orm-modules/references/resource-module.md index 7456fd88b2..6454c3f735 100644 --- a/.agents/skills/orm-modules/references/resource-module.md +++ b/.agents/skills/orm-modules/references/resource-module.md @@ -9,7 +9,7 @@ ORM operations for ResourceModule records ```typescript db.resourceModule.findMany({ select: { id: true } }).execute() db.resourceModule.findOne({ id: '', select: { id: true } }).execute() -db.resourceModule.create({ data: { apiName: '', builderBindingsTableId: '', builderBindingsTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', registryBindingsTableId: '', registryBindingsTableName: '', requirementsStateViewName: '', resolvedRequirementsViewName: '', resourceBillingRollupFunction: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceEventsTableId: '', resourceEventsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourceStatusChecksTableId: '', resourceStatusChecksTableName: '', resourceUsageLogTableId: '', resourceUsageLogTableName: '', resourceUsageSummaryTableId: '', resourceUsageSummaryTableName: '', resourcesTableId: '', resourcesTableName: '', rollupResourceUsageSummaryFunction: '', schemaId: '', scope: '' }, select: { id: true } }).execute() +db.resourceModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', registryBindingsTableId: '', registryBindingsTableName: '', requirementsStateViewName: '', resolvedRequirementsViewName: '', resourceBillingRollupFunction: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceEventsTableId: '', resourceEventsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourceStatusChecksTableId: '', resourceStatusChecksTableName: '', resourceUsageLogTableId: '', resourceUsageLogTableName: '', resourceUsageSummaryTableId: '', resourceUsageSummaryTableName: '', resourcesTableId: '', resourcesTableName: '', rollupResourceUsageSummaryFunction: '', schemaId: '', scope: '', serviceBindingsTableId: '', serviceBindingsTableName: '' }, select: { id: true } }).execute() db.resourceModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() db.resourceModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.resourceModule.findMany({ ```typescript const item = await db.resourceModule.create({ - data: { apiName: '', builderBindingsTableId: '', builderBindingsTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', registryBindingsTableId: '', registryBindingsTableName: '', requirementsStateViewName: '', resolvedRequirementsViewName: '', resourceBillingRollupFunction: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceEventsTableId: '', resourceEventsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourceStatusChecksTableId: '', resourceStatusChecksTableName: '', resourceUsageLogTableId: '', resourceUsageLogTableName: '', resourceUsageSummaryTableId: '', resourceUsageSummaryTableName: '', resourcesTableId: '', resourcesTableName: '', rollupResourceUsageSummaryFunction: '', schemaId: '', scope: '' }, + data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', registryBindingsTableId: '', registryBindingsTableName: '', requirementsStateViewName: '', resolvedRequirementsViewName: '', resourceBillingRollupFunction: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceEventsTableId: '', resourceEventsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourceStatusChecksTableId: '', resourceStatusChecksTableName: '', resourceUsageLogTableId: '', resourceUsageLogTableName: '', resourceUsageSummaryTableId: '', resourceUsageSummaryTableName: '', resourcesTableId: '', resourcesTableName: '', rollupResourceUsageSummaryFunction: '', schemaId: '', scope: '', serviceBindingsTableId: '', serviceBindingsTableName: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/storage-log-module.md b/.agents/skills/orm-modules/references/storage-log-module.md index d6808a3fbc..db5b8fec57 100644 --- a/.agents/skills/orm-modules/references/storage-log-module.md +++ b/.agents/skills/orm-modules/references/storage-log-module.md @@ -9,7 +9,7 @@ ORM operations for StorageLogModule records ```typescript db.storageLogModule.findMany({ select: { id: true } }).execute() db.storageLogModule.findOne({ id: '', select: { id: true } }).execute() -db.storageLogModule.create({ data: { apiName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', storageLogTableId: '', storageLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute() +db.storageLogModule.create({ data: { apiName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', readStorageUsagePeriodFunction: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', storageLogTableId: '', storageLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute() db.storageLogModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute() db.storageLogModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.storageLogModule.findMany({ ```typescript const item = await db.storageLogModule.create({ - data: { apiName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', storageLogTableId: '', storageLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }, + data: { apiName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', readStorageUsagePeriodFunction: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', storageLogTableId: '', storageLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/storage-module.md b/.agents/skills/orm-modules/references/storage-module.md index f3e3acf8a7..63aa1177be 100644 --- a/.agents/skills/orm-modules/references/storage-module.md +++ b/.agents/skills/orm-modules/references/storage-module.md @@ -9,7 +9,7 @@ ORM operations for StorageModule records ```typescript db.storageModule.findMany({ select: { id: true } }).execute() db.storageModule.findOne({ id: '', select: { id: true } }).execute() -db.storageModule.create({ data: { allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasConfirmUpload: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', key: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', region: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }, select: { id: true } }).execute() +db.storageModule.create({ data: { allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', key: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', region: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }, select: { id: true } }).execute() db.storageModule.update({ where: { id: '' }, data: { allowedOrigins: '' }, select: { id: true } }).execute() db.storageModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.storageModule.findMany({ ```typescript const item = await db.storageModule.create({ - data: { allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasConfirmUpload: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', key: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', region: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }, + data: { allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', key: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', region: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-objects/references/get-all-tree-nodes-record.md b/.agents/skills/orm-objects/references/get-all-tree-nodes-record.md index 93d06bad2d..6e95ca0845 100644 --- a/.agents/skills/orm-objects/references/get-all-tree-nodes-record.md +++ b/.agents/skills/orm-objects/references/get-all-tree-nodes-record.md @@ -9,7 +9,6 @@ ORM operations for GetAllTreeNodesRecord records ```typescript db.getAllTreeNodesRecord.findMany({ select: { id: true } }).execute() db.getAllTreeNodesRecord.findOne({ id: '', select: { id: true } }).execute() -db.getAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute() db.getAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute() db.getAllTreeNodesRecord.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.getAllTreeNodesRecord.findMany({ select: { id: true, data: true } }).execute(); ``` - -### Create a getAllTreeNodesRecord - -```typescript -const item = await db.getAllTreeNodesRecord.create({ - data: { data: '', path: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-remote/SKILL.md b/.agents/skills/orm-remote/SKILL.md index cc937bceed..1c7d61ae14 100644 --- a/.agents/skills/orm-remote/SKILL.md +++ b/.agents/skills/orm-remote/SKILL.md @@ -1,13 +1,13 @@ --- name: orm-remote -description: ORM client for the remote API — provides typed CRUD operations for 3 tables and 2 custom operations +description: ORM client for the remote API — provides typed CRUD operations for 3 tables and 3 custom operations --- # orm-remote -ORM client for the remote API — provides typed CRUD operations for 3 tables and 2 custom operations +ORM client for the remote API — provides typed CRUD operations for 3 tables and 3 custom operations ## Usage @@ -40,5 +40,6 @@ See the `references/` directory for detailed per-entity API documentation: - [machine](references/machine.md) - [machine-message](references/machine-message.md) - [machine-session](references/machine-session.md) +- [current-database-id](references/current-database-id.md) - [machines-enroll](references/machines-enroll.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/orm-remote/references/current-database-id.md b/.agents/skills/orm-remote/references/current-database-id.md new file mode 100644 index 0000000000..5877233d74 --- /dev/null +++ b/.agents/skills/orm-remote/references/current-database-id.md @@ -0,0 +1,19 @@ +# currentDatabaseId + + + +Execute the currentDatabaseId query + +## Usage + +```typescript +db.query.currentDatabaseId().execute() +``` + +## Examples + +### Run currentDatabaseId + +```typescript +const result = await db.query.currentDatabaseId().execute(); +``` diff --git a/.agents/skills/orm-storage/references/file.md b/.agents/skills/orm-storage/references/file.md index c528fdeb8b..ff6d77cb8a 100644 --- a/.agents/skills/orm-storage/references/file.md +++ b/.agents/skills/orm-storage/references/file.md @@ -9,7 +9,6 @@ Individual file records within buckets, with immutable identity fields and mutab ```typescript db.file.findMany({ select: { id: true } }).execute() db.file.findOne({ id: '', select: { id: true } }).execute() -db.file.create({ data: { actorId: '', bucketId: '', contentHash: '', databaseId: '', description: '', downloadUrl: '', expiryEnqueuedAt: '', filePath: '', filename: '', isPublic: '', key: '', mimeType: '', promotedAt: '', size: '', status: '', tags: '', upload: '' }, select: { id: true } }).execute() db.file.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() db.file.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.file.findMany({ select: { id: true, actorId: true } }).execute(); ``` - -### Create a file - -```typescript -const item = await db.file.create({ - data: { actorId: '', bucketId: '', contentHash: '', databaseId: '', description: '', downloadUrl: '', expiryEnqueuedAt: '', filePath: '', filename: '', isPublic: '', key: '', mimeType: '', promotedAt: '', size: '', status: '', tags: '', upload: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-storage/references/platform-file.md b/.agents/skills/orm-storage/references/platform-file.md index 66cbc1eaa6..c9fae29f2f 100644 --- a/.agents/skills/orm-storage/references/platform-file.md +++ b/.agents/skills/orm-storage/references/platform-file.md @@ -9,7 +9,6 @@ Individual file records within buckets, with immutable identity fields and mutab ```typescript db.platformFile.findMany({ select: { id: true } }).execute() db.platformFile.findOne({ id: '', select: { id: true } }).execute() -db.platformFile.create({ data: { actorId: '', bucketId: '', contentHash: '', description: '', downloadUrl: '', expiryEnqueuedAt: '', filePath: '', filename: '', isPublic: '', key: '', mimeType: '', promotedAt: '', size: '', status: '', tags: '', upload: '' }, select: { id: true } }).execute() db.platformFile.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() db.platformFile.delete({ where: { id: '' } }).execute() ``` @@ -23,12 +22,3 @@ const items = await db.platformFile.findMany({ select: { id: true, actorId: true } }).execute(); ``` - -### Create a platformFile - -```typescript -const item = await db.platformFile.create({ - data: { actorId: '', bucketId: '', contentHash: '', description: '', downloadUrl: '', expiryEnqueuedAt: '', filePath: '', filename: '', isPublic: '', key: '', mimeType: '', promotedAt: '', size: '', status: '', tags: '', upload: '' }, - select: { id: true } -}).execute(); -``` diff --git a/.agents/skills/orm-storage/references/upload-files.md b/.agents/skills/orm-storage/references/upload-files.md index 811de7b398..4d88d3b043 100644 --- a/.agents/skills/orm-storage/references/upload-files.md +++ b/.agents/skills/orm-storage/references/upload-files.md @@ -7,7 +7,7 @@ Upload multiple files: resolves the bucket by key, creates file rows, and return ## Usage ```typescript -db.mutation.uploadFiles({ input: { bucketKey: '', files: '', isPublic: '' } }).execute() +db.mutation.uploadFiles({ input: { bucketKey: '', databaseId: '', files: '', isPublic: '' } }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.mutation.uploadFiles({ input: { bucketKey: '', files: '', files: '', isPublic: '' } }).execute(); +const result = await db.mutation.uploadFiles({ input: { bucketKey: '', databaseId: '', files: '', isPublic: '' } }).execute(); ``` diff --git a/sdk/constructive-cli/src/admin/cli/README.md b/sdk/constructive-cli/src/admin/cli/README.md index 54c0915d77..2420f7569e 100644 --- a/sdk/constructive-cli/src/admin/cli/README.md +++ b/sdk/constructive-cli/src/admin/cli/README.md @@ -407,7 +407,6 @@ CRUD operations for MyPendingAppInvitesRecord records. | `list` | List all myPendingAppInvitesRecord records | | `find-first` | Find first matching myPendingAppInvitesRecord record | | `get` | Get a myPendingAppInvitesRecord by id | -| `create` | Create a new myPendingAppInvitesRecord | | `update` | Update an existing myPendingAppInvitesRecord | | `delete` | Delete a myPendingAppInvitesRecord | @@ -432,7 +431,6 @@ CRUD operations for MyPendingOrgInvitesRecord records. | `list` | List all myPendingOrgInvitesRecord records | | `find-first` | Find first matching myPendingOrgInvitesRecord record | | `get` | Get a myPendingOrgInvitesRecord by id | -| `create` | Create a new myPendingOrgInvitesRecord | | `update` | Update an existing myPendingOrgInvitesRecord | | `delete` | Delete a myPendingOrgInvitesRecord | @@ -626,7 +624,6 @@ CRUD operations for OrgGetManagersRecord records. | `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 | @@ -648,7 +645,6 @@ CRUD operations for OrgGetSubordinatesRecord records. | `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 | @@ -780,6 +776,8 @@ CRUD operations for OrgMemberProfile records. | `id` | UUID | | `membershipId` | UUID | | `profilePicture` | Image | +| `profilePictureUrl` | String | +| `profilePictureVersions` | FileVersion | | `title` | String | | `updatedAt` | Datetime | diff --git a/sdk/constructive-cli/src/admin/cli/commands/my-pending-app-invites-record.ts b/sdk/constructive-cli/src/admin/cli/commands/my-pending-app-invites-record.ts index c59e6c6505..bfe91ccc9c 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/my-pending-app-invites-record.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/my-pending-app-invites-record.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateMyPendingAppInvitesRecordInput, MyPendingAppInvitesRecordPatch, MyPendingAppInvitesRecordSelect, MyPendingAppInvitesRecordFilter, @@ -40,7 +39,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -57,8 +56,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -122,56 +119,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'channel', - message: 'channel', - required: true, - }, - { - type: 'text', - name: 'expiresAt', - message: 'expiresAt', - required: true, - }, - { - type: 'text', - name: 'senderId', - message: 'senderId', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateMyPendingAppInvitesRecordInput['myPendingAppInvitesRecord']; - const client = getClient(); - const result = await client.myPendingAppInvitesRecord - .create({ - data: { - channel: cleanedData.channel, - expiresAt: cleanedData.expiresAt, - senderId: cleanedData.senderId, - }, - select: { - channel: true, - createdAt: true, - expiresAt: true, - id: true, - senderId: true, - }, - }) - .execute(); - console.log(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/admin/cli/commands/my-pending-org-invites-record.ts b/sdk/constructive-cli/src/admin/cli/commands/my-pending-org-invites-record.ts index b173292810..05628abd75 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/my-pending-org-invites-record.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/my-pending-org-invites-record.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateMyPendingOrgInvitesRecordInput, MyPendingOrgInvitesRecordPatch, MyPendingOrgInvitesRecordSelect, MyPendingOrgInvitesRecordFilter, @@ -41,7 +40,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -58,8 +57,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -125,64 +122,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'channel', - message: 'channel', - required: true, - }, - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: true, - }, - { - type: 'text', - name: 'expiresAt', - message: 'expiresAt', - required: true, - }, - { - type: 'text', - name: 'senderId', - message: 'senderId', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateMyPendingOrgInvitesRecordInput['myPendingOrgInvitesRecord']; - const client = getClient(); - const result = await client.myPendingOrgInvitesRecord - .create({ - data: { - channel: cleanedData.channel, - entityId: cleanedData.entityId, - expiresAt: cleanedData.expiresAt, - senderId: cleanedData.senderId, - }, - select: { - channel: true, - createdAt: true, - entityId: true, - expiresAt: true, - id: true, - senderId: true, - }, - }) - .execute(); - console.log(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/admin/cli/commands/org-get-managers-record.ts b/sdk/constructive-cli/src/admin/cli/commands/org-get-managers-record.ts index 5f71e46bfe..b6dee3e94d 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/org-get-managers-record.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/org-get-managers-record.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateOrgGetManagersRecordInput, OrgGetManagersRecordPatch, OrgGetManagersRecordSelect, OrgGetManagersRecordFilter, @@ -37,7 +36,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -54,8 +53,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -113,46 +110,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'depth', - message: 'depth', - required: true, - }, - { - type: 'text', - name: 'userId', - message: 'userId', - 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: { - depth: cleanedData.depth, - userId: cleanedData.userId, - }, - select: { - depth: true, - userId: true, - }, - }) - .execute(); - console.log(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/admin/cli/commands/org-get-subordinates-record.ts b/sdk/constructive-cli/src/admin/cli/commands/org-get-subordinates-record.ts index 0118c800c3..f79f902aed 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/org-get-subordinates-record.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/org-get-subordinates-record.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateOrgGetSubordinatesRecordInput, OrgGetSubordinatesRecordPatch, OrgGetSubordinatesRecordSelect, OrgGetSubordinatesRecordFilter, @@ -37,7 +36,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -54,8 +53,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -113,46 +110,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'depth', - message: 'depth', - required: true, - }, - { - type: 'text', - name: 'userId', - message: 'userId', - 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: { - depth: cleanedData.depth, - userId: cleanedData.userId, - }, - select: { - depth: true, - userId: true, - }, - }) - .execute(); - console.log(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/admin/cli/commands/org-member-profile.ts b/sdk/constructive-cli/src/admin/cli/commands/org-member-profile.ts index 2ee08ef06a..15ab54202b 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/org-member-profile.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/org-member-profile.ts @@ -25,6 +25,8 @@ const fieldSchema: FieldSchema = { id: 'uuid', membershipId: 'uuid', profilePicture: 'string', + profilePictureUrl: 'string', + profilePictureVersions: 'string', title: 'string', updatedAt: 'string', }; diff --git a/sdk/constructive-cli/src/admin/orm/README.md b/sdk/constructive-cli/src/admin/orm/README.md index 0a5e8c1664..103185f21e 100644 --- a/sdk/constructive-cli/src/admin/orm/README.md +++ b/sdk/constructive-cli/src/admin/orm/README.md @@ -31,16 +31,16 @@ const db = createClient({ | `appMembershipDefault` | findMany, findOne, create, update, delete | | `appOwnerGrant` | findMany, findOne, create, update, delete | | `membershipType` | findMany, findOne, create, update, delete | -| `myPendingAppInvitesRecord` | findMany, findOne, create, update, delete | -| `myPendingOrgInvitesRecord` | findMany, findOne, create, update, delete | +| `myPendingAppInvitesRecord` | findMany, findOne, update, delete | +| `myPendingOrgInvitesRecord` | findMany, findOne, update, delete | | `orgAdminGrant` | findMany, findOne, create, update, delete | | `orgCapabilityDefaultCapability` | findMany, findOne, create, update, delete | | `orgCapabilityDefaultGrant` | findMany, findOne, create, update, delete | | `orgChartEdge` | findMany, findOne, create, update, delete | | `orgChartEdgeGrant` | findMany, findOne, create, update, delete | | `orgClaimedInvite` | findMany, findOne, create, update, delete | -| `orgGetManagersRecord` | findMany, findOne, create, update, delete | -| `orgGetSubordinatesRecord` | findMany, findOne, create, update, delete | +| `orgGetManagersRecord` | findMany, findOne, update, delete | +| `orgGetSubordinatesRecord` | findMany, findOne, update, delete | | `orgGrant` | findMany, findOne, create, update, delete | | `orgInvite` | findMany, findOne, create, update, delete | | `orgMember` | findMany, findOne, create, update, delete | @@ -438,9 +438,6 @@ const items = await db.myPendingAppInvitesRecord.findMany({ select: { channel: t // Get one by id const item = await db.myPendingAppInvitesRecord.findOne({ id: '', select: { channel: true, createdAt: true, expiresAt: true, id: true, senderId: true } }).execute(); -// Create -const created = await db.myPendingAppInvitesRecord.create({ data: { channel: '', expiresAt: '', senderId: '' }, select: { id: true } }).execute(); - // Update const updated = await db.myPendingAppInvitesRecord.update({ where: { id: '' }, data: { channel: '' }, select: { id: true } }).execute(); @@ -472,9 +469,6 @@ const items = await db.myPendingOrgInvitesRecord.findMany({ select: { channel: t // Get one by id const item = await db.myPendingOrgInvitesRecord.findOne({ id: '', select: { channel: true, createdAt: true, entityId: true, expiresAt: true, id: true, senderId: true } }).execute(); -// Create -const created = await db.myPendingOrgInvitesRecord.create({ data: { channel: '', entityId: '', expiresAt: '', senderId: '' }, select: { id: true } }).execute(); - // Update const updated = await db.myPendingOrgInvitesRecord.update({ where: { id: '' }, data: { channel: '' }, select: { id: true } }).execute(); @@ -713,9 +707,6 @@ const items = await db.orgGetManagersRecord.findMany({ select: { depth: true, us // Get one by id const item = await db.orgGetManagersRecord.findOne({ id: '', select: { depth: true, userId: true } }).execute(); -// Create -const created = await db.orgGetManagersRecord.create({ data: { depth: '', userId: '' }, select: { id: true } }).execute(); - // Update const updated = await db.orgGetManagersRecord.update({ where: { id: '' }, data: { depth: '' }, select: { id: true } }).execute(); @@ -743,9 +734,6 @@ const items = await db.orgGetSubordinatesRecord.findMany({ select: { depth: true // Get one by id const item = await db.orgGetSubordinatesRecord.findOne({ id: '', select: { depth: true, userId: true } }).execute(); -// Create -const created = await db.orgGetSubordinatesRecord.create({ data: { depth: '', userId: '' }, select: { id: true } }).execute(); - // Update const updated = await db.orgGetSubordinatesRecord.update({ where: { id: '' }, data: { depth: '' }, select: { id: true } }).execute(); @@ -884,6 +872,8 @@ CRUD operations for OrgMemberProfile records. | `id` | UUID | No | | `membershipId` | UUID | Yes | | `profilePicture` | ConstructiveInternalTypeImage | Yes | +| `profilePictureUrl` | String | Yes | +| `profilePictureVersions` | FileVersion | Yes | | `title` | String | Yes | | `updatedAt` | Datetime | No | @@ -891,13 +881,13 @@ CRUD operations for OrgMemberProfile records. ```typescript // List all orgMemberProfile records -const items = await db.orgMemberProfile.findMany({ select: { actorId: true, bio: true, createdAt: true, displayName: true, email: true, entityId: true, id: true, membershipId: true, profilePicture: true, title: true, updatedAt: true } }).execute(); +const items = await db.orgMemberProfile.findMany({ select: { actorId: true, bio: true, createdAt: true, displayName: true, email: true, entityId: true, id: true, membershipId: true, profilePicture: true, profilePictureUrl: true, profilePictureVersions: true, title: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgMemberProfile.findOne({ id: '', select: { actorId: true, bio: true, createdAt: true, displayName: true, email: true, entityId: true, id: true, membershipId: true, profilePicture: true, title: true, updatedAt: true } }).execute(); +const item = await db.orgMemberProfile.findOne({ id: '', select: { actorId: true, bio: true, createdAt: true, displayName: true, email: true, entityId: true, id: true, membershipId: true, profilePicture: true, profilePictureUrl: true, profilePictureVersions: true, title: true, updatedAt: true } }).execute(); // Create -const created = await db.orgMemberProfile.create({ data: { actorId: '', bio: '', displayName: '', email: '', entityId: '', membershipId: '', profilePicture: '', title: '' }, select: { id: true } }).execute(); +const created = await db.orgMemberProfile.create({ data: { actorId: '', bio: '', displayName: '', email: '', entityId: '', membershipId: '', profilePicture: '', profilePictureUrl: '', profilePictureVersions: '', title: '' }, select: { id: true } }).execute(); // Update const updated = await db.orgMemberProfile.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); diff --git a/sdk/constructive-cli/src/admin/orm/input-types.ts b/sdk/constructive-cli/src/admin/orm/input-types.ts index 9bc1f6a8e9..ce8804f4d9 100644 --- a/sdk/constructive-cli/src/admin/orm/input-types.ts +++ b/sdk/constructive-cli/src/admin/orm/input-types.ts @@ -233,6 +233,7 @@ export interface UUIDListFilter { // ============ Custom Scalar Types ============ export type ConstructiveInternalTypeEmail = unknown; export type ConstructiveInternalTypeImage = unknown; +export type FileVersion = unknown; /** Records of admin role grants and revocations between members */ // ============ Entity Types ============ export interface AppAdminGrant { @@ -576,6 +577,10 @@ export interface OrgMemberProfile { membershipId?: string | null; /** Profile picture visible to other entity members */ profilePicture?: ConstructiveInternalTypeImage | null; + /** URL to fetch `profilePicture`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + profilePictureUrl?: string | null; + /** The versions rendered beside `profilePicture`, narrowest first, each with a URL. Empty when there are none. */ + profilePictureVersions?: FileVersion[] | null; /** Job title or role description visible to other entity members */ title?: string | null; updatedAt?: string | null; @@ -987,6 +992,13 @@ export type OrgMemberProfileSelect = { id?: boolean; membershipId?: boolean; profilePicture?: boolean; + profilePictureUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + profilePictureVersions?: boolean; title?: boolean; updatedAt?: boolean; membership?: { @@ -2582,14 +2594,6 @@ export interface DeleteMembershipTypeInput { clientMutationId?: string; id: number; } -export interface CreateMyPendingAppInvitesRecordInput { - clientMutationId?: string; - myPendingAppInvitesRecord: { - channel?: string; - expiresAt?: string; - senderId: string; - }; -} export interface MyPendingAppInvitesRecordPatch { channel?: string | null; expiresAt?: string | null; @@ -2604,15 +2608,6 @@ export interface DeleteMyPendingAppInvitesRecordInput { clientMutationId?: string; id: string; } -export interface CreateMyPendingOrgInvitesRecordInput { - clientMutationId?: string; - myPendingOrgInvitesRecord: { - channel?: string; - entityId: string; - expiresAt?: string; - senderId: string; - }; -} export interface MyPendingOrgInvitesRecordPatch { channel?: string | null; entityId?: string | null; @@ -2776,13 +2771,6 @@ export interface DeleteOrgClaimedInviteInput { clientMutationId?: string; id: string; } -export interface CreateOrgGetManagersRecordInput { - clientMutationId?: string; - orgGetManagersRecord: { - depth?: number; - userId: string; - }; -} export interface OrgGetManagersRecordPatch { depth?: number | null; userId?: string | null; @@ -2796,13 +2784,6 @@ export interface DeleteOrgGetManagersRecordInput { clientMutationId?: string; id: string; } -export interface CreateOrgGetSubordinatesRecordInput { - clientMutationId?: string; - orgGetSubordinatesRecord: { - depth?: number; - userId: string; - }; -} export interface OrgGetSubordinatesRecordPatch { depth?: number | null; userId?: string | null; @@ -2931,7 +2912,6 @@ export interface OrgMemberProfilePatch { entityId?: string | null; membershipId?: string | null; profilePicture?: ConstructiveInternalTypeImage | null; - profilePictureUpload?: File | null; title?: string | null; } export interface UpdateOrgMemberProfileInput { diff --git a/sdk/constructive-cli/src/admin/orm/models/myPendingAppInvitesRecord.ts b/sdk/constructive-cli/src/admin/orm/models/myPendingAppInvitesRecord.ts index 498d67ae85..dc0fa5a44f 100644 --- a/sdk/constructive-cli/src/admin/orm/models/myPendingAppInvitesRecord.ts +++ b/sdk/constructive-cli/src/admin/orm/models/myPendingAppInvitesRecord.ts @@ -29,7 +29,6 @@ import type { MyPendingAppInvitesRecordSelect, MyPendingAppInvitesRecordFilter, MyPendingAppInvitesRecordsOrderBy, - CreateMyPendingAppInvitesRecordInput, UpdateMyPendingAppInvitesRecordInput, MyPendingAppInvitesRecordPatch, } from '../input-types'; @@ -146,31 +145,4 @@ export class MyPendingAppInvitesRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createMyPendingAppInvitesRecord: { - myPendingAppInvitesRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'MyPendingAppInvitesRecord', - 'createMyPendingAppInvitesRecord', - 'myPendingAppInvitesRecord', - args.select, - args.data, - 'CreateMyPendingAppInvitesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'MyPendingAppInvitesRecord', - fieldName: 'createMyPendingAppInvitesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/admin/orm/models/myPendingOrgInvitesRecord.ts b/sdk/constructive-cli/src/admin/orm/models/myPendingOrgInvitesRecord.ts index b5913b8869..274dc17d9e 100644 --- a/sdk/constructive-cli/src/admin/orm/models/myPendingOrgInvitesRecord.ts +++ b/sdk/constructive-cli/src/admin/orm/models/myPendingOrgInvitesRecord.ts @@ -29,7 +29,6 @@ import type { MyPendingOrgInvitesRecordSelect, MyPendingOrgInvitesRecordFilter, MyPendingOrgInvitesRecordsOrderBy, - CreateMyPendingOrgInvitesRecordInput, UpdateMyPendingOrgInvitesRecordInput, MyPendingOrgInvitesRecordPatch, } from '../input-types'; @@ -146,31 +145,4 @@ export class MyPendingOrgInvitesRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createMyPendingOrgInvitesRecord: { - myPendingOrgInvitesRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'MyPendingOrgInvitesRecord', - 'createMyPendingOrgInvitesRecord', - 'myPendingOrgInvitesRecord', - args.select, - args.data, - 'CreateMyPendingOrgInvitesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'MyPendingOrgInvitesRecord', - fieldName: 'createMyPendingOrgInvitesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/admin/orm/models/orgGetManagersRecord.ts b/sdk/constructive-cli/src/admin/orm/models/orgGetManagersRecord.ts index 7c333b76d3..21f4008311 100644 --- a/sdk/constructive-cli/src/admin/orm/models/orgGetManagersRecord.ts +++ b/sdk/constructive-cli/src/admin/orm/models/orgGetManagersRecord.ts @@ -29,7 +29,6 @@ import type { OrgGetManagersRecordSelect, OrgGetManagersRecordFilter, OrgGetManagersRecordsOrderBy, - CreateOrgGetManagersRecordInput, UpdateOrgGetManagersRecordInput, OrgGetManagersRecordPatch, } from '../input-types'; @@ -104,31 +103,4 @@ export class OrgGetManagersRecordModel { }), }); } - 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/admin/orm/models/orgGetSubordinatesRecord.ts b/sdk/constructive-cli/src/admin/orm/models/orgGetSubordinatesRecord.ts index f259e10434..a5b89052df 100644 --- a/sdk/constructive-cli/src/admin/orm/models/orgGetSubordinatesRecord.ts +++ b/sdk/constructive-cli/src/admin/orm/models/orgGetSubordinatesRecord.ts @@ -29,7 +29,6 @@ import type { OrgGetSubordinatesRecordSelect, OrgGetSubordinatesRecordFilter, OrgGetSubordinatesRecordsOrderBy, - CreateOrgGetSubordinatesRecordInput, UpdateOrgGetSubordinatesRecordInput, OrgGetSubordinatesRecordPatch, } from '../input-types'; @@ -106,31 +105,4 @@ export class OrgGetSubordinatesRecordModel { }), }); } - 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/agent/cli/README.md b/sdk/constructive-cli/src/agent/cli/README.md index 99b5135a32..4fc5d63bfd 100644 --- a/sdk/constructive-cli/src/agent/cli/README.md +++ b/sdk/constructive-cli/src/agent/cli/README.md @@ -394,6 +394,8 @@ CRUD operations for AgentResource records. | `description` | String | | `descriptionTrgmSimilarity` | Float | | `embedding` | Vector | +| `embeddingModel` | String | +| `embeddingModelTrgmSimilarity` | Float | | `embeddingUpdatedAt` | Datetime | | `embeddingVectorDistance` | Float | | `id` | UUID | @@ -418,7 +420,7 @@ CRUD operations for AgentResource records. > **pgvector embedding fields:** `embedding` > High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. -> **Unified Search API fields:** `bodyTrgmSimilarity`, `descriptionTrgmSimilarity`, `kindTrgmSimilarity`, `search`, `searchScore`, `titleTrgmSimilarity` +> **Unified Search API fields:** `bodyTrgmSimilarity`, `descriptionTrgmSimilarity`, `embeddingModelTrgmSimilarity`, `kindTrgmSimilarity`, `search`, `searchScore`, `titleTrgmSimilarity` > Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. **Search Examples:** @@ -453,6 +455,11 @@ csdk agent-resource list --where.trgmBody.value "approximate query" --where.trgm csdk agent-resource list --where.trgmDescription.value "approximate query" --where.trgmDescription.threshold 0.3 --select title,descriptionTrgmSimilarity ``` +*Fuzzy search via trigram similarity (`trgmEmbeddingModel`):* +```bash +csdk agent-resource list --where.trgmEmbeddingModel.value "approximate query" --where.trgmEmbeddingModel.threshold 0.3 --select title,embeddingModelTrgmSimilarity +``` + *Fuzzy search via trigram similarity (`trgmKind`):* ```bash csdk agent-resource list --where.trgmKind.value "approximate query" --where.trgmKind.threshold 0.3 --select title,kindTrgmSimilarity @@ -470,7 +477,7 @@ csdk agent-resource list --where.trgmTitle.value "approximate query" --where.trg *Composite search (unifiedSearch dispatches to all text adapters):* ```bash -csdk agent-resource list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,descriptionTrgmSimilarity,kindTrgmSimilarity,tsvRank,searchScore,titleTrgmSimilarity +csdk agent-resource list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,descriptionTrgmSimilarity,embeddingModelTrgmSimilarity,kindTrgmSimilarity,tsvRank,searchScore,titleTrgmSimilarity ``` *Search with pagination and field projection:* @@ -932,6 +939,8 @@ CRUD operations for PlatformAgentResource records. | `description` | String | | `descriptionTrgmSimilarity` | Float | | `embedding` | Vector | +| `embeddingModel` | String | +| `embeddingModelTrgmSimilarity` | Float | | `embeddingUpdatedAt` | Datetime | | `embeddingVectorDistance` | Float | | `id` | UUID | @@ -956,7 +965,7 @@ CRUD operations for PlatformAgentResource records. > **pgvector embedding fields:** `embedding` > High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. -> **Unified Search API fields:** `bodyTrgmSimilarity`, `descriptionTrgmSimilarity`, `kindTrgmSimilarity`, `search`, `searchScore`, `titleTrgmSimilarity` +> **Unified Search API fields:** `bodyTrgmSimilarity`, `descriptionTrgmSimilarity`, `embeddingModelTrgmSimilarity`, `kindTrgmSimilarity`, `search`, `searchScore`, `titleTrgmSimilarity` > Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. **Search Examples:** @@ -991,6 +1000,11 @@ csdk platform-agent-resource list --where.trgmBody.value "approximate query" --w csdk platform-agent-resource list --where.trgmDescription.value "approximate query" --where.trgmDescription.threshold 0.3 --select title,descriptionTrgmSimilarity ``` +*Fuzzy search via trigram similarity (`trgmEmbeddingModel`):* +```bash +csdk platform-agent-resource list --where.trgmEmbeddingModel.value "approximate query" --where.trgmEmbeddingModel.threshold 0.3 --select title,embeddingModelTrgmSimilarity +``` + *Fuzzy search via trigram similarity (`trgmKind`):* ```bash csdk platform-agent-resource list --where.trgmKind.value "approximate query" --where.trgmKind.threshold 0.3 --select title,kindTrgmSimilarity @@ -1008,7 +1022,7 @@ csdk platform-agent-resource list --where.trgmTitle.value "approximate query" -- *Composite search (unifiedSearch dispatches to all text adapters):* ```bash -csdk platform-agent-resource list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,descriptionTrgmSimilarity,kindTrgmSimilarity,tsvRank,searchScore,titleTrgmSimilarity +csdk platform-agent-resource list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,descriptionTrgmSimilarity,embeddingModelTrgmSimilarity,kindTrgmSimilarity,tsvRank,searchScore,titleTrgmSimilarity ``` *Search with pagination and field projection:* diff --git a/sdk/constructive-cli/src/agent/cli/commands/agent-resource.ts b/sdk/constructive-cli/src/agent/cli/commands/agent-resource.ts index 0141f622ed..db0c400c4a 100644 --- a/sdk/constructive-cli/src/agent/cli/commands/agent-resource.ts +++ b/sdk/constructive-cli/src/agent/cli/commands/agent-resource.ts @@ -26,6 +26,8 @@ const fieldSchema: FieldSchema = { description: 'string', descriptionTrgmSimilarity: 'float', embedding: 'string', + embeddingModel: 'string', + embeddingModelTrgmSimilarity: 'float', embeddingUpdatedAt: 'string', embeddingVectorDistance: 'float', id: 'uuid', @@ -203,6 +205,10 @@ async function handleSearch(argv: Partial>, _prompter: I value: query, threshold: 0.3, }, + trgmEmbeddingModel: { + value: query, + threshold: 0.3, + }, trgmKind: { value: query, threshold: 0.3, diff --git a/sdk/constructive-cli/src/agent/cli/commands/platform-agent-resource.ts b/sdk/constructive-cli/src/agent/cli/commands/platform-agent-resource.ts index 404dbea326..ec3818a987 100644 --- a/sdk/constructive-cli/src/agent/cli/commands/platform-agent-resource.ts +++ b/sdk/constructive-cli/src/agent/cli/commands/platform-agent-resource.ts @@ -25,6 +25,8 @@ const fieldSchema: FieldSchema = { description: 'string', descriptionTrgmSimilarity: 'float', embedding: 'string', + embeddingModel: 'string', + embeddingModelTrgmSimilarity: 'float', embeddingUpdatedAt: 'string', embeddingVectorDistance: 'float', id: 'uuid', @@ -208,6 +210,10 @@ async function handleSearch(argv: Partial>, _prompter: I value: query, threshold: 0.3, }, + trgmEmbeddingModel: { + value: query, + threshold: 0.3, + }, trgmKind: { value: query, threshold: 0.3, diff --git a/sdk/constructive-cli/src/agent/orm/README.md b/sdk/constructive-cli/src/agent/orm/README.md index a201a35f2d..26e6cd58ff 100644 --- a/sdk/constructive-cli/src/agent/orm/README.md +++ b/sdk/constructive-cli/src/agent/orm/README.md @@ -351,6 +351,8 @@ CRUD operations for AgentResource records. | `description` | String | Yes | | `descriptionTrgmSimilarity` | Float | Yes | | `embedding` | Vector | Yes | +| `embeddingModel` | String | Yes | +| `embeddingModelTrgmSimilarity` | Float | Yes | | `embeddingUpdatedAt` | Datetime | Yes | | `embeddingVectorDistance` | Float | Yes | | `id` | UUID | No | @@ -374,13 +376,13 @@ CRUD operations for AgentResource records. ```typescript // List all agentResource records -const items = await db.agentResource.findMany({ select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.agentResource.findMany({ select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.agentResource.findOne({ id: '', select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.agentResource.findOne({ id: '', select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.agentResource.create({ data: { archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const created = await db.agentResource.create({ data: { archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentResource.update({ where: { id: '' }, data: { archivedAt: '' }, select: { id: true } }).execute(); @@ -882,6 +884,8 @@ CRUD operations for PlatformAgentResource records. | `description` | String | Yes | | `descriptionTrgmSimilarity` | Float | Yes | | `embedding` | Vector | Yes | +| `embeddingModel` | String | Yes | +| `embeddingModelTrgmSimilarity` | Float | Yes | | `embeddingUpdatedAt` | Datetime | Yes | | `embeddingVectorDistance` | Float | Yes | | `id` | UUID | No | @@ -905,13 +909,13 @@ CRUD operations for PlatformAgentResource records. ```typescript // List all platformAgentResource records -const items = await db.platformAgentResource.findMany({ select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.platformAgentResource.findMany({ select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformAgentResource.findOne({ id: '', select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.platformAgentResource.findOne({ id: '', select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformAgentResource.create({ data: { archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const created = await db.platformAgentResource.create({ data: { archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformAgentResource.update({ where: { id: '' }, data: { archivedAt: '' }, select: { id: true } }).execute(); diff --git a/sdk/constructive-cli/src/agent/orm/input-types.ts b/sdk/constructive-cli/src/agent/orm/input-types.ts index 203bbeda25..fc4524c9f2 100644 --- a/sdk/constructive-cli/src/agent/orm/input-types.ts +++ b/sdk/constructive-cli/src/agent/orm/input-types.ts @@ -407,6 +407,9 @@ export interface AgentResource { /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ descriptionTrgmSimilarity?: number | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -758,6 +761,9 @@ export interface PlatformAgentResource { /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ descriptionTrgmSimilarity?: number | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -1262,6 +1268,8 @@ export type AgentResourceSelect = { description?: boolean; descriptionTrgmSimilarity?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; id?: boolean; @@ -1598,6 +1606,8 @@ export type PlatformAgentResourceSelect = { description?: boolean; descriptionTrgmSimilarity?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; id?: boolean; @@ -2066,6 +2076,8 @@ export interface AgentResourceFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -2094,6 +2106,8 @@ export interface AgentResourceFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `title` column. */ @@ -2632,6 +2646,8 @@ export interface PlatformAgentResourceFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -2664,6 +2680,8 @@ export interface PlatformAgentResourceFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `title` column. */ @@ -3141,6 +3159,10 @@ export type AgentResourceOrderBy = | 'DESCRIPTION_TRGM_SIMILARITY_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -3561,6 +3583,10 @@ export type PlatformAgentResourceOrderBy = | 'DESCRIPTION_TRGM_SIMILARITY_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -4838,10 +4864,12 @@ export interface VectorNearbyInput { includeChunks?: boolean; /** Similarity metric to use (default: COSINE). */ metric?: VectorMetric; - /** Natural language text to embed server-side for similarity search. Mutually exclusive with `vector` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** The model that produced `vector`. On a column that records the model of each row's vector, only rows embedded with this model are compared; vectors of two models are not comparable. Filled in server-side when `text` is embedded. */ + model?: string; + /** Natural language text to embed server-side for similarity search. Provide exactly one of `text` or `vector`; sending both or neither is an error. Blank text on its own counts as not given. Requires the LLM plugin to be configured with an embedding provider. */ text?: string; /** Query vector for similarity search. */ - vector: number[]; + vector?: number[]; } /** A filter to be used against many `AgentResourceChunk` object types. All fields are combined with a logical ‘and.’ */ export interface AgentResourceToManyAgentResourceChunkFilter { @@ -5266,7 +5294,7 @@ export interface AgentResourceChunkInput { /** Policy-required field derived from source table (used by AuthzRelatedEntityMembership) */ databaseId?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; metadata?: Record; @@ -5286,7 +5314,7 @@ export interface AgentResourceInput { /** Brief description of this resource */ description?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** Whether this resource is active and retrievable */ @@ -5581,7 +5609,7 @@ export interface PlatformAgentResourceChunkInput { chunkIndex?: number; createdAt?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; metadata?: Record; @@ -5600,7 +5628,7 @@ export interface PlatformAgentResourceInput { /** Brief description of this resource */ description?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** Whether this resource is active and retrievable */ @@ -6992,6 +7020,8 @@ export interface AgentResourceFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -7020,6 +7050,8 @@ export interface AgentResourceFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `title` column. */ @@ -7181,6 +7213,8 @@ export interface PlatformAgentResourceFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -7213,6 +7247,8 @@ export interface PlatformAgentResourceFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `title` column. */ diff --git a/sdk/constructive-cli/src/api/README.md b/sdk/constructive-cli/src/api/README.md index ed2d731670..f6c834f65d 100644 --- a/sdk/constructive-cli/src/api/README.md +++ b/sdk/constructive-cli/src/api/README.md @@ -8,8 +8,8 @@ ## Overview -- **Tables:** 90 -- **Custom queries:** 18 +- **Tables:** 91 +- **Custom queries:** 14 - **Custom mutations:** 31 **Generators:** ORM, CLI diff --git a/sdk/constructive-cli/src/api/cli/README.md b/sdk/constructive-cli/src/api/cli/README.md index 11b2d3237c..24d2e7e4ac 100644 --- a/sdk/constructive-cli/src/api/cli/README.md +++ b/sdk/constructive-cli/src/api/cli/README.md @@ -75,6 +75,7 @@ csdk auth set-token | `platform-get-site-previews-record` | platformGetSitePreviewsRecord CRUD operations | | `platform-managed-domain` | platformManagedDomain CRUD operations | | `platform-page` | platformPage CRUD operations | +| `platform-reserved-subdomain` | platformReservedSubdomain CRUD operations | | `platform-site-app-link` | platformSiteAppLink CRUD operations | | `platform-site` | platformSite CRUD operations | | `platform-site-deep-link` | platformSiteDeepLink CRUD operations | @@ -116,7 +117,6 @@ csdk auth set-token | `view-rule` | viewRule CRUD operations | | `view-table` | viewTable CRUD operations | | `webauthn-setting` | webauthnSetting CRUD operations | -| `api-schema-names` | apiSchemaNames | | `apply-registry-defaults` | applyRegistryDefaults | | `email-shared-account` | emailSharedAccount | | `get-site-preview-commit` | getSitePreviewCommit | @@ -128,9 +128,6 @@ csdk auth set-token | `platform-sites-deep-link-url` | platformSitesDeepLinkUrl | | `platform-sites-site-origin` | platformSitesSiteOrigin | | `platform-verify-site-preview-token` | platformVerifySitePreviewToken | -| `resolve-deep-link` | resolveDeepLink | -| `resolve-route` | resolveRoute | -| `resolve-site-app-links` | resolveSiteAppLinks | | `sites-deep-link-url` | sitesDeepLinkUrl | | `sites-site-origin` | sitesSiteOrigin | | `verify-site-preview-token` | verifySitePreviewToken | @@ -240,15 +237,15 @@ CRUD operations for Api records. | `config` | JSON | | `createdAt` | Datetime | | `databaseId` | UUID | -| `dbname` | String | | `id` | UUID | | `isPublished` | Boolean | | `name` | String | | `roleName` | String | +| `serviceHostname` | String | | `updatedAt` | Datetime | **Required create fields:** `databaseId`, `name` -**Optional create fields (backend defaults):** `anonRole`, `config`, `dbname`, `isPublished`, `roleName` +**Optional create fields (backend defaults):** `anonRole`, `config`, `isPublished`, `roleName` ### `api-schema` @@ -299,7 +296,6 @@ CRUD operations for ApiSetting records. | `enableAggregates` | Boolean | | `enableBulk` | Boolean | | `enableConnectionFilter` | Boolean | -| `enableDirectUploads` | Boolean | | `enableI18N` | Boolean | | `enableIntrospection` | Boolean | | `enableLlm` | Boolean | @@ -325,7 +321,7 @@ CRUD operations for ApiSetting records. | `updatedAt` | Datetime | **Required create fields:** `apiId`, `databaseId` -**Optional create fields (backend defaults):** `enableAggregates`, `enableBulk`, `enableConnectionFilter`, `enableDirectUploads`, `enableI18N`, `enableIntrospection`, `enableLlm`, `enableLtree`, `enableManyToMany`, `enablePostgis`, `enablePresignedUploads`, `enableRealtime`, `enableSearch`, `idleInTransactionTimeoutMs`, `lockTimeoutMs`, `maxConcurrentRequests`, `maxPageSize`, `maxQueryCost`, `maxQueryDepth`, `maxQueueWaitMs`, `maxRequestBytes`, `options`, `rateLimitBurst`, `rateLimitRpm`, `statementTimeoutMs` +**Optional create fields (backend defaults):** `enableAggregates`, `enableBulk`, `enableConnectionFilter`, `enableI18N`, `enableIntrospection`, `enableLlm`, `enableLtree`, `enableManyToMany`, `enablePostgis`, `enablePresignedUploads`, `enableRealtime`, `enableSearch`, `idleInTransactionTimeoutMs`, `lockTimeoutMs`, `maxConcurrentRequests`, `maxPageSize`, `maxQueryCost`, `maxQueryDepth`, `maxQueueWaitMs`, `maxRequestBytes`, `options`, `rateLimitBurst`, `rateLimitRpm`, `statementTimeoutMs` ### `ast-migration` @@ -336,7 +332,6 @@ CRUD operations for AstMigration records. | `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 | @@ -508,7 +503,6 @@ CRUD operations for DatabaseSetting records. | `enableBilling` | Boolean | | `enableBulk` | Boolean | | `enableConnectionFilter` | Boolean | -| `enableDirectUploads` | Boolean | | `enableI18N` | Boolean | | `enableIntrospection` | Boolean | | `enableLlm` | Boolean | @@ -535,7 +529,7 @@ CRUD operations for DatabaseSetting records. | `updatedAt` | Datetime | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `annotations`, `creditsPerCent`, `enableAggregates`, `enableBilling`, `enableBulk`, `enableConnectionFilter`, `enableDirectUploads`, `enableI18N`, `enableIntrospection`, `enableLlm`, `enableLtree`, `enableManyToMany`, `enablePostgis`, `enablePresignedUploads`, `enableRealtime`, `enableSearch`, `idleInTransactionTimeoutMs`, `labels`, `lockTimeoutMs`, `maxConcurrentRequests`, `maxPageSize`, `maxQueryCost`, `maxQueryDepth`, `maxQueueWaitMs`, `maxRequestBytes`, `options`, `rateLimitBurst`, `rateLimitRpm`, `statementTimeoutMs` +**Optional create fields (backend defaults):** `annotations`, `creditsPerCent`, `enableAggregates`, `enableBilling`, `enableBulk`, `enableConnectionFilter`, `enableI18N`, `enableIntrospection`, `enableLlm`, `enableLtree`, `enableManyToMany`, `enablePostgis`, `enablePresignedUploads`, `enableRealtime`, `enableSearch`, `idleInTransactionTimeoutMs`, `labels`, `lockTimeoutMs`, `maxConcurrentRequests`, `maxPageSize`, `maxQueryCost`, `maxQueryDepth`, `maxQueueWaitMs`, `maxRequestBytes`, `options`, `rateLimitBurst`, `rateLimitRpm`, `statementTimeoutMs` ### `database-transfer` @@ -1201,7 +1195,6 @@ CRUD operations for GetSitePreviewsRecord records. | `list` | List all getSitePreviewsRecord records | | `find-first` | Find first matching getSitePreviewsRecord record | | `get` | Get a getSitePreviewsRecord by id | -| `create` | Create a new getSitePreviewsRecord | | `update` | Update an existing getSitePreviewsRecord | | `delete` | Delete a getSitePreviewsRecord | @@ -1291,7 +1284,6 @@ CRUD operations for ListSuspendedDatabasesRecord records. | `list` | List all listSuspendedDatabasesRecord records | | `find-first` | Find first matching listSuspendedDatabasesRecord record | | `get` | Get a listSuspendedDatabasesRecord by id | -| `create` | Create a new listSuspendedDatabasesRecord | | `update` | Update an existing listSuspendedDatabasesRecord | | `delete` | Delete a listSuspendedDatabasesRecord | @@ -1457,15 +1449,15 @@ CRUD operations for PlatformApi records. | `anonRole` | String | | `config` | JSON | | `createdAt` | Datetime | -| `dbname` | String | | `id` | UUID | | `isPublished` | Boolean | | `name` | String | | `roleName` | String | +| `serviceHostname` | String | | `updatedAt` | Datetime | **Required create fields:** `name` -**Optional create fields (backend defaults):** `anonRole`, `config`, `dbname`, `isPublished`, `roleName` +**Optional create fields (backend defaults):** `anonRole`, `config`, `isPublished`, `roleName` ### `platform-api-schema` @@ -1514,7 +1506,6 @@ CRUD operations for PlatformApiSetting records. | `enableAggregates` | Boolean | | `enableBulk` | Boolean | | `enableConnectionFilter` | Boolean | -| `enableDirectUploads` | Boolean | | `enableI18N` | Boolean | | `enableIntrospection` | Boolean | | `enableLlm` | Boolean | @@ -1540,7 +1531,7 @@ CRUD operations for PlatformApiSetting records. | `updatedAt` | Datetime | **Required create fields:** `apiId` -**Optional create fields (backend defaults):** `enableAggregates`, `enableBulk`, `enableConnectionFilter`, `enableDirectUploads`, `enableI18N`, `enableIntrospection`, `enableLlm`, `enableLtree`, `enableManyToMany`, `enablePostgis`, `enablePresignedUploads`, `enableRealtime`, `enableSearch`, `idleInTransactionTimeoutMs`, `lockTimeoutMs`, `maxConcurrentRequests`, `maxPageSize`, `maxQueryCost`, `maxQueryDepth`, `maxQueueWaitMs`, `maxRequestBytes`, `options`, `rateLimitBurst`, `rateLimitRpm`, `statementTimeoutMs` +**Optional create fields (backend defaults):** `enableAggregates`, `enableBulk`, `enableConnectionFilter`, `enableI18N`, `enableIntrospection`, `enableLlm`, `enableLtree`, `enableManyToMany`, `enablePostgis`, `enablePresignedUploads`, `enableRealtime`, `enableSearch`, `idleInTransactionTimeoutMs`, `lockTimeoutMs`, `maxConcurrentRequests`, `maxPageSize`, `maxQueryCost`, `maxQueryDepth`, `maxQueueWaitMs`, `maxRequestBytes`, `options`, `rateLimitBurst`, `rateLimitRpm`, `statementTimeoutMs` ### `platform-cors-setting` @@ -1773,7 +1764,6 @@ CRUD operations for PlatformGetSitePreviewsRecord records. | `list` | List all platformGetSitePreviewsRecord records | | `find-first` | Find first matching platformGetSitePreviewsRecord record | | `get` | Get a platformGetSitePreviewsRecord by id | -| `create` | Create a new platformGetSitePreviewsRecord | | `update` | Update an existing platformGetSitePreviewsRecord | | `delete` | Delete a platformGetSitePreviewsRecord | @@ -1852,6 +1842,35 @@ CRUD operations for PlatformPage records. **Required create fields:** `content`, `siteId`, `slug` **Optional create fields (backend defaults):** `commitId`, `seededFrom`, `storeId` +### `platform-reserved-subdomain` + +CRUD operations for PlatformReservedSubdomain records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformReservedSubdomain records | +| `find-first` | Find first matching platformReservedSubdomain record | +| `get` | Get a platformReservedSubdomain by id | +| `create` | Create a new platformReservedSubdomain | +| `update` | Update an existing platformReservedSubdomain | +| `delete` | Delete a platformReservedSubdomain | + +**Fields:** + +| Field | Type | +|-------|------| +| `createdAt` | Datetime | +| `createdByPrincipal` | UUID | +| `id` | UUID | +| `label` | String | +| `match` | String | +| `reason` | String | +| `updatedAt` | Datetime | +| `updatedByPrincipal` | UUID | + +**Required create fields:** `label` +**Optional create fields (backend defaults):** `createdByPrincipal`, `match`, `reason`, `updatedByPrincipal` + ### `platform-site-app-link` CRUD operations for PlatformSiteAppLink records. @@ -1990,14 +2009,22 @@ CRUD operations for PlatformSiteMetadatum records. | Field | Type | |-------|------| | `appleTouchIcon` | Image | +| `appleTouchIconUrl` | String | +| `appleTouchIconVersions` | FileVersion | | `canonicalUrl` | String | | `commitId` | UUID | | `createdAt` | Datetime | | `description` | String | | `favicon` | Image | +| `faviconUrl` | String | +| `faviconVersions` | FileVersion | | `id` | UUID | | `logo` | Image | +| `logoUrl` | String | +| `logoVersions` | FileVersion | | `ogImage` | Image | +| `ogImageUrl` | String | +| `ogImageVersions` | FileVersion | | `robots` | String | | `robotsSeededFrom` | JSON | | `siteId` | UUID | @@ -2538,15 +2565,23 @@ CRUD operations for SiteMetadatum records. | Field | Type | |-------|------| | `appleTouchIcon` | Image | +| `appleTouchIconUrl` | String | +| `appleTouchIconVersions` | FileVersion | | `canonicalUrl` | String | | `commitId` | UUID | | `createdAt` | Datetime | | `databaseId` | UUID | | `description` | String | | `favicon` | Image | +| `faviconUrl` | String | +| `faviconVersions` | FileVersion | | `id` | UUID | | `logo` | Image | +| `logoUrl` | String | +| `logoVersions` | FileVersion | | `ogImage` | Image | +| `ogImageUrl` | String | +| `ogImageVersions` | FileVersion | | `robots` | String | | `robotsSeededFrom` | JSON | | `siteId` | UUID | @@ -2720,7 +2755,6 @@ CRUD operations for SqlAction records. | `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 | @@ -3168,17 +3202,6 @@ CRUD operations for WebauthnSetting records. ## Custom Operations -### `api-schema-names` - -apiSchemaNames - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--targetApiId` | UUID | - ### `apply-registry-defaults` applyRegistryDefaults @@ -3305,42 +3328,6 @@ platformVerifySitePreviewToken | `--siteId` | UUID | | `--token` | String | -### `resolve-deep-link` - -resolveDeepLink - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--linkSlug` | String | - | `--targetSiteId` | UUID | - -### `resolve-route` - -resolveRoute - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--requestHost` | String | - | `--requestMethod` | String | - | `--requestPath` | String | - -### `resolve-site-app-links` - -resolveSiteAppLinks - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--targetSiteId` | UUID | - ### `sites-deep-link-url` sitesDeepLinkUrl diff --git a/sdk/constructive-cli/src/api/cli/commands.ts b/sdk/constructive-cli/src/api/cli/commands.ts index 407d060a60..c397ac0d60 100644 --- a/sdk/constructive-cli/src/api/cli/commands.ts +++ b/sdk/constructive-cli/src/api/cli/commands.ts @@ -55,6 +55,7 @@ import platformEmailSiteIdentityCmd from './commands/platform-email-site-identit import platformGetSitePreviewsRecordCmd from './commands/platform-get-site-previews-record'; import platformManagedDomainCmd from './commands/platform-managed-domain'; import platformPageCmd from './commands/platform-page'; +import platformReservedSubdomainCmd from './commands/platform-reserved-subdomain'; import platformSiteAppLinkCmd from './commands/platform-site-app-link'; import platformSiteCmd from './commands/platform-site'; import platformSiteDeepLinkCmd from './commands/platform-site-deep-link'; @@ -96,7 +97,6 @@ import viewGrantCmd from './commands/view-grant'; import viewRuleCmd from './commands/view-rule'; import viewTableCmd from './commands/view-table'; import webauthnSettingCmd from './commands/webauthn-setting'; -import apiSchemaNamesCmd from './commands/api-schema-names'; import applyRegistryDefaultsCmd from './commands/apply-registry-defaults'; import emailSharedAccountCmd from './commands/email-shared-account'; import getSitePreviewCommitCmd from './commands/get-site-preview-commit'; @@ -108,9 +108,6 @@ import platformPagePublishedCmd from './commands/platform-page-published'; import platformSitesDeepLinkUrlCmd from './commands/platform-sites-deep-link-url'; import platformSitesSiteOriginCmd from './commands/platform-sites-site-origin'; import platformVerifySitePreviewTokenCmd from './commands/platform-verify-site-preview-token'; -import resolveDeepLinkCmd from './commands/resolve-deep-link'; -import resolveRouteCmd from './commands/resolve-route'; -import resolveSiteAppLinksCmd from './commands/resolve-site-app-links'; import sitesDeepLinkUrlCmd from './commands/sites-deep-link-url'; import sitesSiteOriginCmd from './commands/sites-site-origin'; import verifySitePreviewTokenCmd from './commands/verify-site-preview-token'; @@ -204,6 +201,7 @@ const createCommandMap: () => Record< 'platform-get-site-previews-record': platformGetSitePreviewsRecordCmd, 'platform-managed-domain': platformManagedDomainCmd, 'platform-page': platformPageCmd, + 'platform-reserved-subdomain': platformReservedSubdomainCmd, 'platform-site-app-link': platformSiteAppLinkCmd, 'platform-site': platformSiteCmd, 'platform-site-deep-link': platformSiteDeepLinkCmd, @@ -245,7 +243,6 @@ const createCommandMap: () => Record< 'view-rule': viewRuleCmd, 'view-table': viewTableCmd, 'webauthn-setting': webauthnSettingCmd, - 'api-schema-names': apiSchemaNamesCmd, 'apply-registry-defaults': applyRegistryDefaultsCmd, 'email-shared-account': emailSharedAccountCmd, 'get-site-preview-commit': getSitePreviewCommitCmd, @@ -257,9 +254,6 @@ const createCommandMap: () => Record< 'platform-sites-deep-link-url': platformSitesDeepLinkUrlCmd, 'platform-sites-site-origin': platformSitesSiteOriginCmd, 'platform-verify-site-preview-token': platformVerifySitePreviewTokenCmd, - 'resolve-deep-link': resolveDeepLinkCmd, - 'resolve-route': resolveRouteCmd, - 'resolve-site-app-links': resolveSiteAppLinksCmd, 'sites-deep-link-url': sitesDeepLinkUrlCmd, 'sites-site-origin': sitesSiteOriginCmd, 'verify-site-preview-token': verifySitePreviewTokenCmd, @@ -296,7 +290,7 @@ const createCommandMap: () => Record< 'update-function-from-source': updateFunctionFromSourceCmd, }); const usage = - "\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n api api CRUD operations\n api-schema apiSchema CRUD operations\n api-setting apiSetting CRUD operations\n ast-migration astMigration CRUD operations\n check-constraint checkConstraint CRUD operations\n composite-type compositeType CRUD operations\n cors-setting corsSetting CRUD operations\n database database CRUD operations\n database-setting databaseSetting CRUD operations\n database-transfer databaseTransfer CRUD operations\n default-privilege defaultPrivilege CRUD operations\n derive derive CRUD operations\n domain domain CRUD operations\n domain-event domainEvent CRUD operations\n domain-type domainType CRUD operations\n domain-verification domainVerification CRUD operations\n email-identity emailIdentity CRUD operations\n email-provider-account emailProviderAccount CRUD operations\n email-site-identity emailSiteIdentity CRUD operations\n embedding-chunk embeddingChunk CRUD operations\n enum enum CRUD operations\n exclusion-constraint exclusionConstraint CRUD operations\n field-behavior fieldBehavior CRUD operations\n field field CRUD operations\n foreign-key-constraint-behavior foreignKeyConstraintBehavior CRUD operations\n foreign-key-constraint foreignKeyConstraint CRUD operations\n full-text-search fullTextSearch CRUD operations\n function function CRUD operations\n get-site-previews-record getSitePreviewsRecord CRUD operations\n identity-provider-registry identityProviderRegistry CRUD operations\n index index CRUD operations\n list-suspended-databases-record listSuspendedDatabasesRecord CRUD operations\n managed-domain managedDomain CRUD operations\n node-type-registry nodeTypeRegistry CRUD operations\n page page CRUD operations\n partition partition CRUD operations\n platform-api platformApi CRUD operations\n platform-api-schema platformApiSchema CRUD operations\n platform-api-setting platformApiSetting CRUD operations\n platform-cors-setting platformCorsSetting CRUD operations\n platform-domain platformDomain CRUD operations\n platform-domain-event platformDomainEvent CRUD operations\n platform-domain-verification platformDomainVerification CRUD operations\n platform-email-identity platformEmailIdentity CRUD operations\n platform-email-provider-account platformEmailProviderAccount CRUD operations\n platform-email-site-identity platformEmailSiteIdentity CRUD operations\n platform-get-site-previews-record platformGetSitePreviewsRecord CRUD operations\n platform-managed-domain platformManagedDomain CRUD operations\n platform-page platformPage CRUD operations\n platform-site-app-link platformSiteAppLink CRUD operations\n platform-site platformSite CRUD operations\n platform-site-deep-link platformSiteDeepLink CRUD operations\n platform-site-error-page platformSiteErrorPage CRUD operations\n platform-site-metadatum platformSiteMetadatum CRUD operations\n platform-site-module platformSiteModule CRUD operations\n platform-site-release platformSiteRelease CRUD operations\n platform-site-theme platformSiteTheme CRUD operations\n platform-site-web-config platformSiteWebConfig CRUD operations\n policy policy CRUD operations\n primary-key-constraint primaryKeyConstraint CRUD operations\n pubkey-setting pubkeySetting CRUD operations\n redirect redirect CRUD operations\n rls-setting rlsSetting CRUD operations\n route route CRUD operations\n schema schema CRUD operations\n schema-grant schemaGrant CRUD operations\n site-app-link siteAppLink CRUD operations\n site site CRUD operations\n site-deep-link siteDeepLink CRUD operations\n site-error-page siteErrorPage CRUD operations\n site-metadatum siteMetadatum CRUD operations\n site-module siteModule CRUD operations\n site-release siteRelease CRUD operations\n site-theme siteTheme CRUD operations\n site-web-config siteWebConfig CRUD operations\n spatial-relation spatialRelation CRUD operations\n sql-action sqlAction CRUD operations\n table-behavior tableBehavior CRUD operations\n table table CRUD operations\n table-grant tableGrant CRUD operations\n trigger trigger CRUD operations\n trigger-function triggerFunction CRUD operations\n unique-constraint-behavior uniqueConstraintBehavior CRUD operations\n unique-constraint uniqueConstraint CRUD operations\n view-behavior viewBehavior CRUD operations\n view view CRUD operations\n view-grant viewGrant CRUD operations\n view-rule viewRule CRUD operations\n view-table viewTable CRUD operations\n webauthn-setting webauthnSetting CRUD operations\n api-schema-names apiSchemaNames\n apply-registry-defaults applyRegistryDefaults\n email-shared-account emailSharedAccount\n get-site-preview-commit getSitePreviewCommit\n get-site-release-manifest getSiteReleaseManifest\n page-published pagePublished\n platform-get-site-preview-commit platformGetSitePreviewCommit\n platform-get-site-release-manifest platformGetSiteReleaseManifest\n platform-page-published platformPagePublished\n platform-sites-deep-link-url platformSitesDeepLinkUrl\n platform-sites-site-origin platformSitesSiteOrigin\n platform-verify-site-preview-token platformVerifySitePreviewToken\n resolve-deep-link resolveDeepLink\n resolve-route resolveRoute\n resolve-site-app-links resolveSiteAppLinks\n sites-deep-link-url sitesDeepLinkUrl\n sites-site-origin sitesSiteOrigin\n verify-site-preview-token verifySitePreviewToken\n accept-database-transfer acceptDatabaseTransfer\n apply-rls applyRls\n cancel-database-transfer cancelDatabaseTransfer\n create-function-from-source Creates a `Function` from its `CREATE FUNCTION` source text.\n delete-site-preview deleteSitePreview\n domains-assign-subdomain domainsAssignSubdomain\n mint-site-preview-token mintSitePreviewToken\n pages-install-pages pagesInstallPages\n platform-delete-site-preview platformDeleteSitePreview\n platform-domains-assign-subdomain platformDomainsAssignSubdomain\n platform-mint-site-preview-token platformMintSitePreviewToken\n platform-pages-install-pages platformPagesInstallPages\n platform-provision-site-preview platformProvisionSitePreview\n platform-set-site-preview platformSetSitePreview\n platform-site-metadata-install-robots platformSiteMetadataInstallRobots\n platform-sites-install-content-preset platformSitesInstallContentPreset\n platform-sites-install-mantra platformSitesInstallMantra\n platform-sites-provision-static-site platformSitesProvisionStaticSite\n provision-bucket Reconcile an S3 bucket for a logical bucket in the database.\nRecords the request on the bucket row via RLS; the bucket's job\ntrigger then enqueues the same storage:provision_bucket job used on\nINSERT, and repeated requests collapse into one pending job. This is\nidempotent for an already-reconciled bucket; failures become GraphQL\nerrors.\n provision-site-preview provisionSitePreview\n reject-database-transfer rejectDatabaseTransfer\n request-database Requests a database and returns a ticket (database_provision_module row) to poll.\n\nPass exactly one of preset_slug or modules. Pass organization_id to have the organization own the database from the start (the caller must be an owner of that organization); the requesting user is still the identity bootstrapped into the new database. Omit it for a personal database. The pool, presets, and owner bootstrap are private implementation details: a warm pool hit fulfills the ticket immediately (fulfilled_at set, deferred owner bootstrap), otherwise the database is cold-provisioned asynchronously with exactly the requested modules. Poll the ticket until status = 'completed'; it then carries database_id and fulfilled_at.\n\nExample usage:\n SELECT * FROM metaschema_public.request_database('my_app', 'example.com', preset_slug := 'full');\n SELECT * FROM metaschema_public.request_database('my_app', 'example.com', modules := '[\"users_module\", \"emails_module\"]'::jsonb);\n SELECT * FROM metaschema_public.request_database('team_app', 'example.com', preset_slug := 'full', organization_id := '00000000-0000-0000-0000-000000000000'::uuid);\n set-field-order setFieldOrder\n set-site-preview setSitePreview\n site-metadata-install-robots siteMetadataInstallRobots\n sites-install-content-preset sitesInstallContentPreset\n sites-install-mantra sitesInstallMantra\n sites-provision-static-site sitesProvisionStaticSite\n suspend-database suspendDatabase\n unsuspend-database unsuspendDatabase\n update-function-from-source Replaces a `Function`'s definition from its source text; its database, schema and exposure are unchanged.\n\n --help, -h Show this help message\n --version, -v Show version\n"; + "\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n api api CRUD operations\n api-schema apiSchema CRUD operations\n api-setting apiSetting CRUD operations\n ast-migration astMigration CRUD operations\n check-constraint checkConstraint CRUD operations\n composite-type compositeType CRUD operations\n cors-setting corsSetting CRUD operations\n database database CRUD operations\n database-setting databaseSetting CRUD operations\n database-transfer databaseTransfer CRUD operations\n default-privilege defaultPrivilege CRUD operations\n derive derive CRUD operations\n domain domain CRUD operations\n domain-event domainEvent CRUD operations\n domain-type domainType CRUD operations\n domain-verification domainVerification CRUD operations\n email-identity emailIdentity CRUD operations\n email-provider-account emailProviderAccount CRUD operations\n email-site-identity emailSiteIdentity CRUD operations\n embedding-chunk embeddingChunk CRUD operations\n enum enum CRUD operations\n exclusion-constraint exclusionConstraint CRUD operations\n field-behavior fieldBehavior CRUD operations\n field field CRUD operations\n foreign-key-constraint-behavior foreignKeyConstraintBehavior CRUD operations\n foreign-key-constraint foreignKeyConstraint CRUD operations\n full-text-search fullTextSearch CRUD operations\n function function CRUD operations\n get-site-previews-record getSitePreviewsRecord CRUD operations\n identity-provider-registry identityProviderRegistry CRUD operations\n index index CRUD operations\n list-suspended-databases-record listSuspendedDatabasesRecord CRUD operations\n managed-domain managedDomain CRUD operations\n node-type-registry nodeTypeRegistry CRUD operations\n page page CRUD operations\n partition partition CRUD operations\n platform-api platformApi CRUD operations\n platform-api-schema platformApiSchema CRUD operations\n platform-api-setting platformApiSetting CRUD operations\n platform-cors-setting platformCorsSetting CRUD operations\n platform-domain platformDomain CRUD operations\n platform-domain-event platformDomainEvent CRUD operations\n platform-domain-verification platformDomainVerification CRUD operations\n platform-email-identity platformEmailIdentity CRUD operations\n platform-email-provider-account platformEmailProviderAccount CRUD operations\n platform-email-site-identity platformEmailSiteIdentity CRUD operations\n platform-get-site-previews-record platformGetSitePreviewsRecord CRUD operations\n platform-managed-domain platformManagedDomain CRUD operations\n platform-page platformPage CRUD operations\n platform-reserved-subdomain platformReservedSubdomain CRUD operations\n platform-site-app-link platformSiteAppLink CRUD operations\n platform-site platformSite CRUD operations\n platform-site-deep-link platformSiteDeepLink CRUD operations\n platform-site-error-page platformSiteErrorPage CRUD operations\n platform-site-metadatum platformSiteMetadatum CRUD operations\n platform-site-module platformSiteModule CRUD operations\n platform-site-release platformSiteRelease CRUD operations\n platform-site-theme platformSiteTheme CRUD operations\n platform-site-web-config platformSiteWebConfig CRUD operations\n policy policy CRUD operations\n primary-key-constraint primaryKeyConstraint CRUD operations\n pubkey-setting pubkeySetting CRUD operations\n redirect redirect CRUD operations\n rls-setting rlsSetting CRUD operations\n route route CRUD operations\n schema schema CRUD operations\n schema-grant schemaGrant CRUD operations\n site-app-link siteAppLink CRUD operations\n site site CRUD operations\n site-deep-link siteDeepLink CRUD operations\n site-error-page siteErrorPage CRUD operations\n site-metadatum siteMetadatum CRUD operations\n site-module siteModule CRUD operations\n site-release siteRelease CRUD operations\n site-theme siteTheme CRUD operations\n site-web-config siteWebConfig CRUD operations\n spatial-relation spatialRelation CRUD operations\n sql-action sqlAction CRUD operations\n table-behavior tableBehavior CRUD operations\n table table CRUD operations\n table-grant tableGrant CRUD operations\n trigger trigger CRUD operations\n trigger-function triggerFunction CRUD operations\n unique-constraint-behavior uniqueConstraintBehavior CRUD operations\n unique-constraint uniqueConstraint CRUD operations\n view-behavior viewBehavior CRUD operations\n view view CRUD operations\n view-grant viewGrant CRUD operations\n view-rule viewRule CRUD operations\n view-table viewTable CRUD operations\n webauthn-setting webauthnSetting CRUD operations\n apply-registry-defaults applyRegistryDefaults\n email-shared-account emailSharedAccount\n get-site-preview-commit getSitePreviewCommit\n get-site-release-manifest getSiteReleaseManifest\n page-published pagePublished\n platform-get-site-preview-commit platformGetSitePreviewCommit\n platform-get-site-release-manifest platformGetSiteReleaseManifest\n platform-page-published platformPagePublished\n platform-sites-deep-link-url platformSitesDeepLinkUrl\n platform-sites-site-origin platformSitesSiteOrigin\n platform-verify-site-preview-token platformVerifySitePreviewToken\n sites-deep-link-url sitesDeepLinkUrl\n sites-site-origin sitesSiteOrigin\n verify-site-preview-token verifySitePreviewToken\n accept-database-transfer acceptDatabaseTransfer\n apply-rls applyRls\n cancel-database-transfer cancelDatabaseTransfer\n create-function-from-source Creates a `Function` from its `CREATE FUNCTION` source text.\n delete-site-preview deleteSitePreview\n domains-assign-subdomain domainsAssignSubdomain\n mint-site-preview-token mintSitePreviewToken\n pages-install-pages pagesInstallPages\n platform-delete-site-preview platformDeleteSitePreview\n platform-domains-assign-subdomain platformDomainsAssignSubdomain\n platform-mint-site-preview-token platformMintSitePreviewToken\n platform-pages-install-pages platformPagesInstallPages\n platform-provision-site-preview platformProvisionSitePreview\n platform-set-site-preview platformSetSitePreview\n platform-site-metadata-install-robots platformSiteMetadataInstallRobots\n platform-sites-install-content-preset platformSitesInstallContentPreset\n platform-sites-install-mantra platformSitesInstallMantra\n platform-sites-provision-static-site platformSitesProvisionStaticSite\n provision-bucket Reconcile an S3 bucket for a logical bucket in the database.\nRecords the request on the bucket row via RLS; the bucket's job\ntrigger then enqueues the same storage:provision_bucket job used on\nINSERT, and repeated requests collapse into one pending job. This is\nidempotent for an already-reconciled bucket; failures become GraphQL\nerrors.\n provision-site-preview provisionSitePreview\n reject-database-transfer rejectDatabaseTransfer\n request-database Requests a database and returns a ticket (database_provision_module row) to poll.\n\nPass exactly one of preset_slug or modules. Pass organization_id to have the organization own the database from the start (the caller must be an owner of that organization); the requesting user is still the identity bootstrapped into the new database. Omit it for a personal database. The pool, presets, and owner bootstrap are private implementation details: a warm pool hit fulfills the ticket immediately (fulfilled_at set, deferred owner bootstrap), otherwise the database is cold-provisioned asynchronously with exactly the requested modules. Poll the ticket until status = 'completed'; it then carries database_id and fulfilled_at.\n\nExample usage:\n SELECT * FROM metaschema_public.request_database('my_app', 'example.com', preset_slug := 'full');\n SELECT * FROM metaschema_public.request_database('my_app', 'example.com', modules := '[\"users_module\", \"emails_module\"]'::jsonb);\n SELECT * FROM metaschema_public.request_database('team_app', 'example.com', preset_slug := 'full', organization_id := '00000000-0000-0000-0000-000000000000'::uuid);\n set-field-order setFieldOrder\n set-site-preview setSitePreview\n site-metadata-install-robots siteMetadataInstallRobots\n sites-install-content-preset sitesInstallContentPreset\n sites-install-mantra sitesInstallMantra\n sites-provision-static-site sitesProvisionStaticSite\n suspend-database suspendDatabase\n unsuspend-database unsuspendDatabase\n update-function-from-source Replaces a `Function`'s definition from its source text; its database, schema and exposure are unchanged.\n\n --help, -h Show this help message\n --version, -v Show version\n"; export const commands = async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-cli/src/api/cli/commands/api-setting.ts b/sdk/constructive-cli/src/api/cli/commands/api-setting.ts index d1f652b230..cdc629beb0 100644 --- a/sdk/constructive-cli/src/api/cli/commands/api-setting.ts +++ b/sdk/constructive-cli/src/api/cli/commands/api-setting.ts @@ -22,7 +22,6 @@ const fieldSchema: FieldSchema = { enableAggregates: 'boolean', enableBulk: 'boolean', enableConnectionFilter: 'boolean', - enableDirectUploads: 'boolean', enableI18N: 'boolean', enableIntrospection: 'boolean', enableLlm: 'boolean', @@ -104,7 +103,6 @@ async function handleList(argv: Partial>, _prompter: Inq enableAggregates: true, enableBulk: true, enableConnectionFilter: true, - enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, @@ -154,7 +152,6 @@ async function handleFindFirst(argv: Partial>, _prompter enableAggregates: true, enableBulk: true, enableConnectionFilter: true, - enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, @@ -216,7 +213,6 @@ async function handleGet(argv: Partial>, prompter: Inqui enableAggregates: true, enableBulk: true, enableConnectionFilter: true, - enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, @@ -288,13 +284,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'boolean', - name: 'enableDirectUploads', - message: 'enableDirectUploads', - required: false, - skipPrompt: true, - }, { type: 'boolean', name: 'enableI18N', @@ -454,7 +443,6 @@ async function handleCreate(argv: Partial>, prompter: In enableAggregates: cleanedData.enableAggregates, enableBulk: cleanedData.enableBulk, enableConnectionFilter: cleanedData.enableConnectionFilter, - enableDirectUploads: cleanedData.enableDirectUploads, enableI18N: cleanedData.enableI18N, enableIntrospection: cleanedData.enableIntrospection, enableLlm: cleanedData.enableLlm, @@ -484,7 +472,6 @@ async function handleCreate(argv: Partial>, prompter: In enableAggregates: true, enableBulk: true, enableConnectionFilter: true, - enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, @@ -562,13 +549,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'boolean', - name: 'enableDirectUploads', - message: 'enableDirectUploads', - required: false, - skipPrompt: true, - }, { type: 'boolean', name: 'enableI18N', @@ -731,7 +711,6 @@ async function handleUpdate(argv: Partial>, prompter: In enableAggregates: cleanedData.enableAggregates, enableBulk: cleanedData.enableBulk, enableConnectionFilter: cleanedData.enableConnectionFilter, - enableDirectUploads: cleanedData.enableDirectUploads, enableI18N: cleanedData.enableI18N, enableIntrospection: cleanedData.enableIntrospection, enableLlm: cleanedData.enableLlm, @@ -761,7 +740,6 @@ async function handleUpdate(argv: Partial>, prompter: In enableAggregates: true, enableBulk: true, enableConnectionFilter: true, - enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, diff --git a/sdk/constructive-cli/src/api/cli/commands/api.ts b/sdk/constructive-cli/src/api/cli/commands/api.ts index d7efd0643c..8aee704f86 100644 --- a/sdk/constructive-cli/src/api/cli/commands/api.ts +++ b/sdk/constructive-cli/src/api/cli/commands/api.ts @@ -20,11 +20,11 @@ const fieldSchema: FieldSchema = { config: 'json', createdAt: 'string', databaseId: 'uuid', - dbname: 'string', id: 'uuid', isPublished: 'boolean', name: 'string', roleName: 'string', + serviceHostname: 'string', updatedAt: 'string', }; const usage = @@ -82,7 +82,6 @@ async function handleList(argv: Partial>, _prompter: Inq config: true, createdAt: true, databaseId: true, - dbname: true, id: true, isPublished: true, name: true, @@ -112,7 +111,6 @@ async function handleFindFirst(argv: Partial>, _prompter config: true, createdAt: true, databaseId: true, - dbname: true, id: true, isPublished: true, name: true, @@ -154,7 +152,6 @@ async function handleGet(argv: Partial>, prompter: Inqui config: true, createdAt: true, databaseId: true, - dbname: true, id: true, isPublished: true, name: true, @@ -195,13 +192,6 @@ async function handleCreate(argv: Partial>, prompter: In message: 'databaseId', required: true, }, - { - type: 'text', - name: 'dbname', - message: 'dbname', - required: false, - skipPrompt: true, - }, { type: 'boolean', name: 'isPublished', @@ -232,7 +222,6 @@ async function handleCreate(argv: Partial>, prompter: In anonRole: cleanedData.anonRole, config: cleanedData.config, databaseId: cleanedData.databaseId, - dbname: cleanedData.dbname, isPublished: cleanedData.isPublished, name: cleanedData.name, roleName: cleanedData.roleName, @@ -242,7 +231,6 @@ async function handleCreate(argv: Partial>, prompter: In config: true, createdAt: true, databaseId: true, - dbname: true, id: true, isPublished: true, name: true, @@ -289,13 +277,6 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'databaseId', required: false, }, - { - type: 'text', - name: 'dbname', - message: 'dbname', - required: false, - skipPrompt: true, - }, { type: 'boolean', name: 'isPublished', @@ -329,7 +310,6 @@ async function handleUpdate(argv: Partial>, prompter: In anonRole: cleanedData.anonRole, config: cleanedData.config, databaseId: cleanedData.databaseId, - dbname: cleanedData.dbname, isPublished: cleanedData.isPublished, name: cleanedData.name, roleName: cleanedData.roleName, @@ -339,7 +319,6 @@ async function handleUpdate(argv: Partial>, prompter: In config: true, createdAt: true, databaseId: true, - dbname: true, id: true, isPublished: true, name: true, diff --git a/sdk/constructive-cli/src/api/cli/commands/ast-migration.ts b/sdk/constructive-cli/src/api/cli/commands/ast-migration.ts index 03949dcec5..e9c5395981 100644 --- a/sdk/constructive-cli/src/api/cli/commands/ast-migration.ts +++ b/sdk/constructive-cli/src/api/cli/commands/ast-migration.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateAstMigrationInput, AstMigrationPatch, AstMigrationSelect, AstMigrationFilter, @@ -48,7 +47,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -65,8 +64,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -138,120 +135,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'actionId', - message: 'actionId', - required: true, - }, - { - type: 'text', - name: 'actionName', - message: 'actionName', - required: true, - }, - { - type: 'text', - name: 'actorId', - message: 'actorId', - required: true, - }, - { - type: 'text', - name: 'databaseId', - message: 'databaseId', - required: true, - }, - { - type: 'json', - name: 'deploy', - message: 'deploy', - required: true, - }, - { - type: 'text', - name: 'deploys', - message: 'deploys', - required: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: true, - }, - { - type: 'json', - name: 'payload', - message: 'payload', - required: true, - }, - { - type: 'text', - name: 'requires', - message: 'requires', - required: true, - }, - { - type: 'json', - name: 'revert', - message: 'revert', - required: true, - }, - { - type: 'json', - name: 'verify', - message: 'verify', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateAstMigrationInput['astMigration']; - const client = getClient(); - const result = await client.astMigration - .create({ - data: { - actionId: cleanedData.actionId, - actionName: cleanedData.actionName, - actorId: cleanedData.actorId, - databaseId: cleanedData.databaseId, - deploy: cleanedData.deploy, - deploys: cleanedData.deploys, - name: cleanedData.name, - payload: cleanedData.payload, - requires: cleanedData.requires, - revert: cleanedData.revert, - verify: cleanedData.verify, - }, - select: { - actionId: true, - actionName: true, - actorId: true, - createdAt: true, - databaseId: true, - deploy: true, - deploys: true, - id: true, - name: true, - payload: true, - requires: true, - revert: true, - verify: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/api/cli/commands/database-setting.ts b/sdk/constructive-cli/src/api/cli/commands/database-setting.ts index 2f2204abf0..beb72c46dd 100644 --- a/sdk/constructive-cli/src/api/cli/commands/database-setting.ts +++ b/sdk/constructive-cli/src/api/cli/commands/database-setting.ts @@ -24,7 +24,6 @@ const fieldSchema: FieldSchema = { enableBilling: 'boolean', enableBulk: 'boolean', enableConnectionFilter: 'boolean', - enableDirectUploads: 'boolean', enableI18N: 'boolean', enableIntrospection: 'boolean', enableLlm: 'boolean', @@ -109,7 +108,6 @@ async function handleList(argv: Partial>, _prompter: Inq enableBilling: true, enableBulk: true, enableConnectionFilter: true, - enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, @@ -162,7 +160,6 @@ async function handleFindFirst(argv: Partial>, _prompter enableBilling: true, enableBulk: true, enableConnectionFilter: true, - enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, @@ -227,7 +224,6 @@ async function handleGet(argv: Partial>, prompter: Inqui enableBilling: true, enableBulk: true, enableConnectionFilter: true, - enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, @@ -315,13 +311,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'boolean', - name: 'enableDirectUploads', - message: 'enableDirectUploads', - required: false, - skipPrompt: true, - }, { type: 'boolean', name: 'enableI18N', @@ -493,7 +482,6 @@ async function handleCreate(argv: Partial>, prompter: In enableBilling: cleanedData.enableBilling, enableBulk: cleanedData.enableBulk, enableConnectionFilter: cleanedData.enableConnectionFilter, - enableDirectUploads: cleanedData.enableDirectUploads, enableI18N: cleanedData.enableI18N, enableIntrospection: cleanedData.enableIntrospection, enableLlm: cleanedData.enableLlm, @@ -526,7 +514,6 @@ async function handleCreate(argv: Partial>, prompter: In enableBilling: true, enableBulk: true, enableConnectionFilter: true, - enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, @@ -620,13 +607,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'boolean', - name: 'enableDirectUploads', - message: 'enableDirectUploads', - required: false, - skipPrompt: true, - }, { type: 'boolean', name: 'enableI18N', @@ -798,7 +778,6 @@ async function handleUpdate(argv: Partial>, prompter: In enableBilling: cleanedData.enableBilling, enableBulk: cleanedData.enableBulk, enableConnectionFilter: cleanedData.enableConnectionFilter, - enableDirectUploads: cleanedData.enableDirectUploads, enableI18N: cleanedData.enableI18N, enableIntrospection: cleanedData.enableIntrospection, enableLlm: cleanedData.enableLlm, @@ -831,7 +810,6 @@ async function handleUpdate(argv: Partial>, prompter: In enableBilling: true, enableBulk: true, enableConnectionFilter: true, - enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, diff --git a/sdk/constructive-cli/src/api/cli/commands/get-site-previews-record.ts b/sdk/constructive-cli/src/api/cli/commands/get-site-previews-record.ts index c451a67725..2747f2e59d 100644 --- a/sdk/constructive-cli/src/api/cli/commands/get-site-previews-record.ts +++ b/sdk/constructive-cli/src/api/cli/commands/get-site-previews-record.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateGetSitePreviewsRecordInput, GetSitePreviewsRecordPatch, GetSitePreviewsRecordSelect, GetSitePreviewsRecordFilter, @@ -37,7 +36,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -54,8 +53,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -113,46 +110,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'commitId', - message: 'commitId', - required: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateGetSitePreviewsRecordInput['getSitePreviewsRecord']; - const client = getClient(); - const result = await client.getSitePreviewsRecord - .create({ - data: { - commitId: cleanedData.commitId, - name: cleanedData.name, - }, - select: { - commitId: true, - name: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/api/cli/commands/list-suspended-databases-record.ts b/sdk/constructive-cli/src/api/cli/commands/list-suspended-databases-record.ts index d33a796eef..9a8add754e 100644 --- a/sdk/constructive-cli/src/api/cli/commands/list-suspended-databases-record.ts +++ b/sdk/constructive-cli/src/api/cli/commands/list-suspended-databases-record.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateListSuspendedDatabasesRecordInput, ListSuspendedDatabasesRecordPatch, ListSuspendedDatabasesRecordSelect, ListSuspendedDatabasesRecordFilter, @@ -40,7 +39,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -57,8 +56,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -122,63 +119,3 @@ async function handleFindFirst(argv: Partial>, _prompter 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: 'ownerId', - message: 'ownerId', - required: true, - }, - { - type: 'text', - name: 'suspendedAt', - message: 'suspendedAt', - required: true, - }, - { - type: 'text', - name: 'suspendedReason', - message: 'suspendedReason', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateListSuspendedDatabasesRecordInput['listSuspendedDatabasesRecord']; - const client = getClient(); - const result = await client.listSuspendedDatabasesRecord - .create({ - data: { - name: cleanedData.name, - ownerId: cleanedData.ownerId, - suspendedAt: cleanedData.suspendedAt, - suspendedReason: cleanedData.suspendedReason, - }, - select: { - id: true, - name: true, - ownerId: true, - suspendedAt: true, - suspendedReason: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/api/cli/commands/platform-api-setting.ts b/sdk/constructive-cli/src/api/cli/commands/platform-api-setting.ts index adeb216356..bba93745ae 100644 --- a/sdk/constructive-cli/src/api/cli/commands/platform-api-setting.ts +++ b/sdk/constructive-cli/src/api/cli/commands/platform-api-setting.ts @@ -21,7 +21,6 @@ const fieldSchema: FieldSchema = { enableAggregates: 'boolean', enableBulk: 'boolean', enableConnectionFilter: 'boolean', - enableDirectUploads: 'boolean', enableI18N: 'boolean', enableIntrospection: 'boolean', enableLlm: 'boolean', @@ -102,7 +101,6 @@ async function handleList(argv: Partial>, _prompter: Inq enableAggregates: true, enableBulk: true, enableConnectionFilter: true, - enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, @@ -155,7 +153,6 @@ async function handleFindFirst(argv: Partial>, _prompter enableAggregates: true, enableBulk: true, enableConnectionFilter: true, - enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, @@ -220,7 +217,6 @@ async function handleGet(argv: Partial>, prompter: Inqui enableAggregates: true, enableBulk: true, enableConnectionFilter: true, - enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, @@ -286,13 +282,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'boolean', - name: 'enableDirectUploads', - message: 'enableDirectUploads', - required: false, - skipPrompt: true, - }, { type: 'boolean', name: 'enableI18N', @@ -454,7 +443,6 @@ async function handleCreate(argv: Partial>, prompter: In enableAggregates: cleanedData.enableAggregates, enableBulk: cleanedData.enableBulk, enableConnectionFilter: cleanedData.enableConnectionFilter, - enableDirectUploads: cleanedData.enableDirectUploads, enableI18N: cleanedData.enableI18N, enableIntrospection: cleanedData.enableIntrospection, enableLlm: cleanedData.enableLlm, @@ -483,7 +471,6 @@ async function handleCreate(argv: Partial>, prompter: In enableAggregates: true, enableBulk: true, enableConnectionFilter: true, - enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, @@ -555,13 +542,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'boolean', - name: 'enableDirectUploads', - message: 'enableDirectUploads', - required: false, - skipPrompt: true, - }, { type: 'boolean', name: 'enableI18N', @@ -723,7 +703,6 @@ async function handleUpdate(argv: Partial>, prompter: In enableAggregates: cleanedData.enableAggregates, enableBulk: cleanedData.enableBulk, enableConnectionFilter: cleanedData.enableConnectionFilter, - enableDirectUploads: cleanedData.enableDirectUploads, enableI18N: cleanedData.enableI18N, enableIntrospection: cleanedData.enableIntrospection, enableLlm: cleanedData.enableLlm, @@ -752,7 +731,6 @@ async function handleUpdate(argv: Partial>, prompter: In enableAggregates: true, enableBulk: true, enableConnectionFilter: true, - enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, diff --git a/sdk/constructive-cli/src/api/cli/commands/platform-api.ts b/sdk/constructive-cli/src/api/cli/commands/platform-api.ts index 6338ed05c9..63a1663114 100644 --- a/sdk/constructive-cli/src/api/cli/commands/platform-api.ts +++ b/sdk/constructive-cli/src/api/cli/commands/platform-api.ts @@ -19,11 +19,11 @@ const fieldSchema: FieldSchema = { anonRole: 'string', config: 'json', createdAt: 'string', - dbname: 'string', id: 'uuid', isPublished: 'boolean', name: 'string', roleName: 'string', + serviceHostname: 'string', updatedAt: 'string', }; const usage = @@ -80,7 +80,6 @@ async function handleList(argv: Partial>, _prompter: Inq anonRole: true, config: true, createdAt: true, - dbname: true, id: true, isPublished: true, name: true, @@ -109,7 +108,6 @@ async function handleFindFirst(argv: Partial>, _prompter anonRole: true, config: true, createdAt: true, - dbname: true, id: true, isPublished: true, name: true, @@ -150,7 +148,6 @@ async function handleGet(argv: Partial>, prompter: Inqui anonRole: true, config: true, createdAt: true, - dbname: true, id: true, isPublished: true, name: true, @@ -185,13 +182,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'dbname', - message: 'dbname', - required: false, - skipPrompt: true, - }, { type: 'boolean', name: 'isPublished', @@ -224,7 +214,6 @@ async function handleCreate(argv: Partial>, prompter: In data: { anonRole: cleanedData.anonRole, config: cleanedData.config, - dbname: cleanedData.dbname, isPublished: cleanedData.isPublished, name: cleanedData.name, roleName: cleanedData.roleName, @@ -233,7 +222,6 @@ async function handleCreate(argv: Partial>, prompter: In anonRole: true, config: true, createdAt: true, - dbname: true, id: true, isPublished: true, name: true, @@ -274,13 +262,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'dbname', - message: 'dbname', - required: false, - skipPrompt: true, - }, { type: 'boolean', name: 'isPublished', @@ -313,7 +294,6 @@ async function handleUpdate(argv: Partial>, prompter: In data: { anonRole: cleanedData.anonRole, config: cleanedData.config, - dbname: cleanedData.dbname, isPublished: cleanedData.isPublished, name: cleanedData.name, roleName: cleanedData.roleName, @@ -322,7 +302,6 @@ async function handleUpdate(argv: Partial>, prompter: In anonRole: true, config: true, createdAt: true, - dbname: true, id: true, isPublished: true, name: true, diff --git a/sdk/constructive-cli/src/api/cli/commands/platform-get-site-previews-record.ts b/sdk/constructive-cli/src/api/cli/commands/platform-get-site-previews-record.ts index c3f9d9b6b0..794cf4d66c 100644 --- a/sdk/constructive-cli/src/api/cli/commands/platform-get-site-previews-record.ts +++ b/sdk/constructive-cli/src/api/cli/commands/platform-get-site-previews-record.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreatePlatformGetSitePreviewsRecordInput, PlatformGetSitePreviewsRecordPatch, PlatformGetSitePreviewsRecordSelect, PlatformGetSitePreviewsRecordFilter, @@ -37,7 +36,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -54,8 +53,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -113,46 +110,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'commitId', - message: 'commitId', - required: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreatePlatformGetSitePreviewsRecordInput['platformGetSitePreviewsRecord']; - const client = getClient(); - const result = await client.platformGetSitePreviewsRecord - .create({ - data: { - commitId: cleanedData.commitId, - name: cleanedData.name, - }, - select: { - commitId: true, - name: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/api/cli/commands/platform-reserved-subdomain.ts b/sdk/constructive-cli/src/api/cli/commands/platform-reserved-subdomain.ts new file mode 100644 index 0000000000..5d5c1eb2ca --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/commands/platform-reserved-subdomain.ts @@ -0,0 +1,359 @@ +/** + * CLI commands for PlatformReservedSubdomain + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; +import { getClient } from '../executor'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; +import type { FieldSchema } from '../utils'; +import type { + CreatePlatformReservedSubdomainInput, + PlatformReservedSubdomainPatch, + PlatformReservedSubdomainSelect, + PlatformReservedSubdomainFilter, + PlatformReservedSubdomainOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + createdAt: 'string', + createdByPrincipal: 'uuid', + id: 'uuid', + label: 'string', + match: 'string', + reason: 'string', + updatedAt: 'string', + updatedByPrincipal: 'uuid', +}; +const usage = + '\nplatform-reserved-subdomain \n\nCommands:\n list List platformReservedSubdomain records\n find-first Find first matching platformReservedSubdomain record\n get Get a platformReservedSubdomain by ID\n create Create a new platformReservedSubdomain\n update Update an existing platformReservedSubdomain\n delete Delete a platformReservedSubdomain\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + if (argv.help || argv.h) { + console.log(usage); + process.exit(0); + } + const { first: subcommand, newArgv } = extractFirst(argv); + if (!subcommand) { + const answer = await prompter.prompt(argv, [ + { + type: 'autocomplete', + name: 'subcommand', + message: 'What do you want to do?', + options: ['list', 'find-first', 'get', 'create', 'update', 'delete'], + }, + ]); + return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); + } + return handleTableSubcommand(subcommand, newArgv, prompter); +}; +async function handleTableSubcommand( + subcommand: string, + argv: Partial>, + prompter: Inquirerer +) { + switch (subcommand) { + case 'list': + return handleList(argv, prompter); + case 'find-first': + return handleFindFirst(argv, prompter); + case 'get': + return handleGet(argv, prompter); + case 'create': + return handleCreate(argv, prompter); + case 'update': + return handleUpdate(argv, prompter); + case 'delete': + return handleDelete(argv, prompter); + default: + console.log(usage); + process.exit(1); + } +} +async function handleList(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + createdAt: true, + createdByPrincipal: true, + id: true, + label: true, + match: true, + reason: true, + updatedAt: true, + updatedByPrincipal: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + PlatformReservedSubdomainSelect, + PlatformReservedSubdomainFilter, + PlatformReservedSubdomainOrderBy + > & { + select: PlatformReservedSubdomainSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformReservedSubdomain.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to list records.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + createdAt: true, + createdByPrincipal: true, + id: true, + label: true, + match: true, + reason: true, + updatedAt: true, + updatedByPrincipal: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + PlatformReservedSubdomainSelect, + PlatformReservedSubdomainFilter, + PlatformReservedSubdomainOrderBy + > & { + select: PlatformReservedSubdomainSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.platformReservedSubdomain.findFirst(findFirstArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to find record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleGet(argv: Partial>, prompter: Inquirerer) { + try { + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const client = getClient(); + const result = await client.platformReservedSubdomain + .findOne({ + id: answers.id as string, + select: { + createdAt: true, + createdByPrincipal: true, + id: true, + label: true, + match: true, + reason: true, + updatedAt: true, + updatedByPrincipal: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'label', + message: 'label', + required: true, + }, + { + type: 'text', + name: 'match', + message: 'match', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'reason', + message: 'reason', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlatformReservedSubdomainInput['platformReservedSubdomain']; + const client = getClient(); + const result = await client.platformReservedSubdomain + .create({ + data: { + createdByPrincipal: cleanedData.createdByPrincipal, + label: cleanedData.label, + match: cleanedData.match, + reason: cleanedData.reason, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + createdAt: true, + createdByPrincipal: true, + id: true, + label: true, + match: true, + reason: true, + updatedAt: true, + updatedByPrincipal: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleUpdate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + { + type: 'text', + name: 'createdByPrincipal', + message: 'createdByPrincipal', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'label', + message: 'label', + required: false, + }, + { + type: 'text', + name: 'match', + message: 'match', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'reason', + message: 'reason', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'updatedByPrincipal', + message: 'updatedByPrincipal', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformReservedSubdomainPatch; + const client = getClient(); + const result = await client.platformReservedSubdomain + .update({ + where: { + id: answers.id as string, + }, + data: { + createdByPrincipal: cleanedData.createdByPrincipal, + label: cleanedData.label, + match: cleanedData.match, + reason: cleanedData.reason, + updatedByPrincipal: cleanedData.updatedByPrincipal, + }, + select: { + createdAt: true, + createdByPrincipal: true, + id: true, + label: true, + match: true, + reason: true, + updatedAt: true, + updatedByPrincipal: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to update record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleDelete(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.platformReservedSubdomain + .delete({ + where: { + id: answers.id as string, + }, + select: { + id: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to delete record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} diff --git a/sdk/constructive-cli/src/api/cli/commands/platform-site-metadatum.ts b/sdk/constructive-cli/src/api/cli/commands/platform-site-metadatum.ts index 3d498d4aa9..885f230ab4 100644 --- a/sdk/constructive-cli/src/api/cli/commands/platform-site-metadatum.ts +++ b/sdk/constructive-cli/src/api/cli/commands/platform-site-metadatum.ts @@ -17,14 +17,22 @@ import type { import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { appleTouchIcon: 'string', + appleTouchIconUrl: 'string', + appleTouchIconVersions: 'string', canonicalUrl: 'string', commitId: 'uuid', createdAt: 'string', description: 'string', favicon: 'string', + faviconUrl: 'string', + faviconVersions: 'string', id: 'uuid', logo: 'string', + logoUrl: 'string', + logoVersions: 'string', ogImage: 'string', + ogImageUrl: 'string', + ogImageVersions: 'string', robots: 'string', robotsSeededFrom: 'json', siteId: 'uuid', diff --git a/sdk/constructive-cli/src/api/cli/commands/resolve-deep-link.ts b/sdk/constructive-cli/src/api/cli/commands/resolve-deep-link.ts deleted file mode 100644 index 61d1d15ae2..0000000000 --- a/sdk/constructive-cli/src/api/cli/commands/resolve-deep-link.ts +++ /dev/null @@ -1,43 +0,0 @@ -/** - * CLI command for query resolveDeepLink - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../executor'; -import type { ResolveDeepLinkVariables } from '../../orm/query'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log('resolve-deep-link - resolveDeepLink\n\nUsage: resolve-deep-link [OPTIONS]\n'); - process.exit(0); - } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'linkSlug', - message: 'linkSlug', - }, - { - type: 'text', - name: 'targetSiteId', - message: 'targetSiteId', - }, - ]); - const client = getClient(); - const result = await client.query - .resolveDeepLink(answers as unknown as ResolveDeepLinkVariables) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: resolveDeepLink'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/api/cli/commands/resolve-route.ts b/sdk/constructive-cli/src/api/cli/commands/resolve-route.ts deleted file mode 100644 index 45af777b53..0000000000 --- a/sdk/constructive-cli/src/api/cli/commands/resolve-route.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** - * CLI command for query resolveRoute - * @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 { ResolveRouteVariables } from '../../orm/query'; -import type { ResolveRouteRecordSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log('resolve-route - resolveRoute\n\nUsage: resolve-route [OPTIONS]\n'); - process.exit(0); - } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'requestHost', - message: 'requestHost', - }, - { - type: 'text', - name: 'requestMethod', - message: 'requestMethod', - }, - { - type: 'text', - name: 'requestPath', - message: 'requestPath', - }, - ]); - const client = getClient(); - const selectFields = buildSelectFromPaths((argv.select as string) ?? ''); - const result = await client.query - .resolveRoute( - answers as unknown as ResolveRouteVariables, - { - select: selectFields, - } as unknown as { - select: ResolveRouteRecordSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: resolveRoute'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/api/cli/commands/site-metadatum.ts b/sdk/constructive-cli/src/api/cli/commands/site-metadatum.ts index 7bc2be1a76..a9d9c77267 100644 --- a/sdk/constructive-cli/src/api/cli/commands/site-metadatum.ts +++ b/sdk/constructive-cli/src/api/cli/commands/site-metadatum.ts @@ -17,15 +17,23 @@ import type { import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { appleTouchIcon: 'string', + appleTouchIconUrl: 'string', + appleTouchIconVersions: 'string', canonicalUrl: 'string', commitId: 'uuid', createdAt: 'string', databaseId: 'uuid', description: 'string', favicon: 'string', + faviconUrl: 'string', + faviconVersions: 'string', id: 'uuid', logo: 'string', + logoUrl: 'string', + logoVersions: 'string', ogImage: 'string', + ogImageUrl: 'string', + ogImageVersions: 'string', robots: 'string', robotsSeededFrom: 'json', siteId: 'uuid', diff --git a/sdk/constructive-cli/src/api/cli/commands/sql-action.ts b/sdk/constructive-cli/src/api/cli/commands/sql-action.ts index 7bffadff1d..79691fd002 100644 --- a/sdk/constructive-cli/src/api/cli/commands/sql-action.ts +++ b/sdk/constructive-cli/src/api/cli/commands/sql-action.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateSqlActionInput, SqlActionPatch, SqlActionSelect, SqlActionFilter, @@ -48,7 +47,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -65,8 +64,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -138,117 +135,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'actionId', - message: 'actionId', - required: true, - }, - { - type: 'text', - name: 'actionName', - message: 'actionName', - required: true, - }, - { - type: 'text', - name: 'actorId', - message: 'actorId', - required: true, - }, - { - type: 'text', - name: 'content', - message: 'content', - required: true, - }, - { - type: 'text', - name: 'databaseId', - message: 'databaseId', - required: true, - }, - { - type: 'text', - name: 'deploy', - message: 'deploy', - required: true, - }, - { - type: 'text', - name: 'deps', - message: 'deps', - required: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: true, - }, - { - type: 'json', - name: 'payload', - message: 'payload', - required: true, - }, - { - type: 'text', - name: 'revert', - message: 'revert', - required: true, - }, - { - type: 'text', - name: 'verify', - message: 'verify', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as CreateSqlActionInput['sqlAction']; - const client = getClient(); - const result = await client.sqlAction - .create({ - data: { - actionId: cleanedData.actionId, - actionName: cleanedData.actionName, - actorId: cleanedData.actorId, - content: cleanedData.content, - databaseId: cleanedData.databaseId, - deploy: cleanedData.deploy, - deps: cleanedData.deps, - name: cleanedData.name, - payload: cleanedData.payload, - revert: cleanedData.revert, - verify: cleanedData.verify, - }, - select: { - actionId: true, - actionName: true, - actorId: true, - content: true, - createdAt: true, - databaseId: true, - deploy: true, - deps: true, - id: true, - name: true, - payload: true, - revert: true, - verify: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/api/orm/README.md b/sdk/constructive-cli/src/api/orm/README.md index 02e465c85e..fb5e6acbf6 100644 --- a/sdk/constructive-cli/src/api/orm/README.md +++ b/sdk/constructive-cli/src/api/orm/README.md @@ -24,7 +24,7 @@ const db = createClient({ | `api` | findMany, findOne, create, update, delete | | `apiSchema` | findMany, findOne, create, update, delete | | `apiSetting` | findMany, findOne, create, update, delete | -| `astMigration` | findMany, findOne, create, update, delete | +| `astMigration` | findMany, findOne, update, delete | | `checkConstraint` | findMany, findOne, create, update, delete | | `compositeType` | findMany, findOne, create, update, delete | | `corsSetting` | findMany, findOne, create, update, delete | @@ -49,10 +49,10 @@ const db = createClient({ | `foreignKeyConstraint` | findMany, findOne, create, update, delete | | `fullTextSearch` | findMany, findOne, create, update, delete | | `function` | findMany, findOne, create, update, delete | -| `getSitePreviewsRecord` | findMany, findOne, create, update, delete | +| `getSitePreviewsRecord` | findMany, findOne, update, delete | | `identityProviderRegistry` | findMany, findOne, create, update, delete | | `index` | findMany, findOne, create, update, delete | -| `listSuspendedDatabasesRecord` | findMany, findOne, create, update, delete | +| `listSuspendedDatabasesRecord` | findMany, findOne, update, delete | | `managedDomain` | findMany, findOne, create, update, delete | | `nodeTypeRegistry` | findMany, findOne, create, update, delete | | `page` | findMany, findOne, create, update, delete | @@ -67,9 +67,10 @@ const db = createClient({ | `platformEmailIdentity` | findMany, findOne, create, update, delete | | `platformEmailProviderAccount` | findMany, findOne, create, update, delete | | `platformEmailSiteIdentity` | findMany, findOne, create, update, delete | -| `platformGetSitePreviewsRecord` | findMany, findOne, create, update, delete | +| `platformGetSitePreviewsRecord` | findMany, findOne, update, delete | | `platformManagedDomain` | findMany, findOne, create, update, delete | | `platformPage` | findMany, findOne, create, update, delete | +| `platformReservedSubdomain` | findMany, findOne, create, update, delete | | `platformSiteAppLink` | findMany, findOne, create, update, delete | | `platformSite` | findMany, findOne, create, update, delete | | `platformSiteDeepLink` | findMany, findOne, create, update, delete | @@ -97,7 +98,7 @@ const db = createClient({ | `siteTheme` | findMany, findOne, create, update, delete | | `siteWebConfig` | findMany, findOne, create, update, delete | | `spatialRelation` | findMany, findOne, create, update, delete | -| `sqlAction` | findMany, findOne, create, update, delete | +| `sqlAction` | findMany, findOne, update, delete | | `tableBehavior` | findMany, findOne, create, update, delete | | `table` | findMany, findOne, create, update, delete | | `tableGrant` | findMany, findOne, create, update, delete | @@ -126,24 +127,24 @@ CRUD operations for Api records. | `config` | JSON | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | -| `dbname` | String | Yes | | `id` | UUID | No | | `isPublished` | Boolean | Yes | | `name` | String | Yes | | `roleName` | String | Yes | +| `serviceHostname` | String | Yes | | `updatedAt` | Datetime | No | **Operations:** ```typescript // List all api records -const items = await db.api.findMany({ select: { anonRole: true, config: true, createdAt: true, databaseId: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); +const items = await db.api.findMany({ select: { anonRole: true, config: true, createdAt: true, databaseId: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.api.findOne({ id: '', select: { anonRole: true, config: true, createdAt: true, databaseId: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); +const item = await db.api.findOne({ id: '', select: { anonRole: true, config: true, createdAt: true, databaseId: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } }).execute(); // Create -const created = await db.api.create({ data: { anonRole: '', config: '', databaseId: '', dbname: '', isPublished: '', name: '', roleName: '' }, select: { id: true } }).execute(); +const created = await db.api.create({ data: { anonRole: '', config: '', databaseId: '', isPublished: '', name: '', roleName: '', serviceHostname: '' }, select: { id: true } }).execute(); // Update const updated = await db.api.update({ where: { id: '' }, data: { anonRole: '' }, select: { id: true } }).execute(); @@ -200,7 +201,6 @@ CRUD operations for ApiSetting records. | `enableAggregates` | Boolean | Yes | | `enableBulk` | Boolean | Yes | | `enableConnectionFilter` | Boolean | Yes | -| `enableDirectUploads` | Boolean | Yes | | `enableI18N` | Boolean | Yes | | `enableIntrospection` | Boolean | Yes | | `enableLlm` | Boolean | Yes | @@ -229,13 +229,13 @@ CRUD operations for ApiSetting records. ```typescript // List all apiSetting records -const items = await db.apiSetting.findMany({ select: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const items = await db.apiSetting.findMany({ select: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.apiSetting.findOne({ id: '', select: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const item = await db.apiSetting.findOne({ id: '', select: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Create -const created = await db.apiSetting.create({ data: { apiId: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); +const created = await db.apiSetting.create({ data: { apiId: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); // Update const updated = await db.apiSetting.update({ where: { id: '' }, data: { apiId: '' }, select: { id: true } }).execute(); @@ -275,9 +275,6 @@ const items = await db.astMigration.findMany({ select: { actionId: true, actionN // Get one by id const item = await db.astMigration.findOne({ id: '', select: { actionId: true, actionName: true, actorId: true, createdAt: true, databaseId: true, deploy: true, deploys: true, id: true, name: true, payload: true, requires: true, revert: true, verify: true } }).execute(); -// Create -const created = await db.astMigration.create({ data: { actionId: '', actionName: '', actorId: '', databaseId: '', deploy: '', deploys: '', name: '', payload: '', requires: '', revert: '', verify: '' }, select: { id: true } }).execute(); - // Update const updated = await db.astMigration.update({ where: { id: '' }, data: { actionId: '' }, select: { id: true } }).execute(); @@ -453,7 +450,6 @@ CRUD operations for DatabaseSetting records. | `enableBilling` | Boolean | Yes | | `enableBulk` | Boolean | Yes | | `enableConnectionFilter` | Boolean | Yes | -| `enableDirectUploads` | Boolean | Yes | | `enableI18N` | Boolean | Yes | | `enableIntrospection` | Boolean | Yes | | `enableLlm` | Boolean | Yes | @@ -483,13 +479,13 @@ CRUD operations for DatabaseSetting records. ```typescript // List all databaseSetting records -const items = await db.databaseSetting.findMany({ select: { annotations: true, createdAt: true, creditsPerCent: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const items = await db.databaseSetting.findMany({ select: { annotations: true, createdAt: true, creditsPerCent: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.databaseSetting.findOne({ id: '', select: { annotations: true, createdAt: true, creditsPerCent: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const item = await db.databaseSetting.findOne({ id: '', select: { annotations: true, createdAt: true, creditsPerCent: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Create -const created = await db.databaseSetting.create({ data: { annotations: '', creditsPerCent: '', databaseId: '', enableAggregates: '', enableBilling: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', labels: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); +const created = await db.databaseSetting.create({ data: { annotations: '', creditsPerCent: '', databaseId: '', enableAggregates: '', enableBilling: '', enableBulk: '', enableConnectionFilter: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', labels: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); // Update const updated = await db.databaseSetting.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -1307,9 +1303,6 @@ const items = await db.getSitePreviewsRecord.findMany({ select: { commitId: true // Get one by id const item = await db.getSitePreviewsRecord.findOne({ id: '', select: { commitId: true, name: true } }).execute(); -// Create -const created = await db.getSitePreviewsRecord.create({ data: { commitId: '', name: '' }, select: { id: true } }).execute(); - // Update const updated = await db.getSitePreviewsRecord.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); @@ -1422,9 +1415,6 @@ const items = await db.listSuspendedDatabasesRecord.findMany({ select: { id: tru // Get one by id const item = await db.listSuspendedDatabasesRecord.findOne({ id: '', select: { id: true, name: true, ownerId: true, suspendedAt: true, suspendedReason: true } }).execute(); -// Create -const created = await db.listSuspendedDatabasesRecord.create({ data: { name: '', ownerId: '', suspendedAt: '', suspendedReason: '' }, select: { id: true } }).execute(); - // Update const updated = await db.listSuspendedDatabasesRecord.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); @@ -1601,24 +1591,24 @@ CRUD operations for PlatformApi records. | `anonRole` | String | Yes | | `config` | JSON | Yes | | `createdAt` | Datetime | No | -| `dbname` | String | Yes | | `id` | UUID | No | | `isPublished` | Boolean | Yes | | `name` | String | Yes | | `roleName` | String | Yes | +| `serviceHostname` | String | Yes | | `updatedAt` | Datetime | No | **Operations:** ```typescript // List all platformApi records -const items = await db.platformApi.findMany({ select: { anonRole: true, config: true, createdAt: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); +const items = await db.platformApi.findMany({ select: { anonRole: true, config: true, createdAt: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.platformApi.findOne({ id: '', select: { anonRole: true, config: true, createdAt: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); +const item = await db.platformApi.findOne({ id: '', select: { anonRole: true, config: true, createdAt: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } }).execute(); // Create -const created = await db.platformApi.create({ data: { anonRole: '', config: '', dbname: '', isPublished: '', name: '', roleName: '' }, select: { id: true } }).execute(); +const created = await db.platformApi.create({ data: { anonRole: '', config: '', isPublished: '', name: '', roleName: '', serviceHostname: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformApi.update({ where: { id: '' }, data: { anonRole: '' }, select: { id: true } }).execute(); @@ -1673,7 +1663,6 @@ CRUD operations for PlatformApiSetting records. | `enableAggregates` | Boolean | Yes | | `enableBulk` | Boolean | Yes | | `enableConnectionFilter` | Boolean | Yes | -| `enableDirectUploads` | Boolean | Yes | | `enableI18N` | Boolean | Yes | | `enableIntrospection` | Boolean | Yes | | `enableLlm` | Boolean | Yes | @@ -1702,13 +1691,13 @@ CRUD operations for PlatformApiSetting records. ```typescript // List all platformApiSetting records -const items = await db.platformApiSetting.findMany({ select: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const items = await db.platformApiSetting.findMany({ select: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.platformApiSetting.findOne({ id: '', select: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const item = await db.platformApiSetting.findOne({ id: '', select: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Create -const created = await db.platformApiSetting.create({ data: { apiId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); +const created = await db.platformApiSetting.create({ data: { apiId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformApiSetting.update({ where: { id: '' }, data: { apiId: '' }, select: { id: true } }).execute(); @@ -2010,9 +1999,6 @@ const items = await db.platformGetSitePreviewsRecord.findMany({ select: { commit // Get one by id const item = await db.platformGetSitePreviewsRecord.findOne({ id: '', select: { commitId: true, name: true } }).execute(); -// Create -const created = await db.platformGetSitePreviewsRecord.create({ data: { commitId: '', name: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformGetSitePreviewsRecord.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); @@ -2100,6 +2086,42 @@ const updated = await db.platformPage.update({ where: { id: '' }, data: { const deleted = await db.platformPage.delete({ where: { id: '' } }).execute(); ``` +### `db.platformReservedSubdomain` + +CRUD operations for PlatformReservedSubdomain records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `id` | UUID | No | +| `label` | String | Yes | +| `match` | String | Yes | +| `reason` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformReservedSubdomain records +const items = await db.platformReservedSubdomain.findMany({ select: { createdAt: true, createdByPrincipal: true, id: true, label: true, match: true, reason: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformReservedSubdomain.findOne({ id: '', select: { createdAt: true, createdByPrincipal: true, id: true, label: true, match: true, reason: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformReservedSubdomain.create({ data: { createdByPrincipal: '', label: '', match: '', reason: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformReservedSubdomain.update({ where: { id: '' }, data: { createdByPrincipal: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformReservedSubdomain.delete({ where: { id: '' } }).execute(); +``` + ### `db.platformSiteAppLink` CRUD operations for PlatformSiteAppLink records. @@ -2258,14 +2280,22 @@ CRUD operations for PlatformSiteMetadatum records. | Field | Type | Editable | |-------|------|----------| | `appleTouchIcon` | ConstructiveInternalTypeImage | Yes | +| `appleTouchIconUrl` | String | Yes | +| `appleTouchIconVersions` | FileVersion | Yes | | `canonicalUrl` | String | Yes | | `commitId` | UUID | Yes | | `createdAt` | Datetime | No | | `description` | String | Yes | | `favicon` | ConstructiveInternalTypeImage | Yes | +| `faviconUrl` | String | Yes | +| `faviconVersions` | FileVersion | Yes | | `id` | UUID | No | | `logo` | ConstructiveInternalTypeImage | Yes | +| `logoUrl` | String | Yes | +| `logoVersions` | FileVersion | Yes | | `ogImage` | ConstructiveInternalTypeImage | Yes | +| `ogImageUrl` | String | Yes | +| `ogImageVersions` | FileVersion | Yes | | `robots` | String | Yes | | `robotsSeededFrom` | JSON | Yes | | `siteId` | UUID | Yes | @@ -2277,13 +2307,13 @@ CRUD operations for PlatformSiteMetadatum records. ```typescript // List all platformSiteMetadatum records -const items = await db.platformSiteMetadatum.findMany({ select: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); +const items = await db.platformSiteMetadatum.findMany({ select: { appleTouchIcon: true, appleTouchIconUrl: true, appleTouchIconVersions: true, canonicalUrl: true, commitId: true, createdAt: true, description: true, favicon: true, faviconUrl: true, faviconVersions: true, id: true, logo: true, logoUrl: true, logoVersions: true, ogImage: true, ogImageUrl: true, ogImageVersions: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.platformSiteMetadatum.findOne({ id: '', select: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); +const item = await db.platformSiteMetadatum.findOne({ id: '', select: { appleTouchIcon: true, appleTouchIconUrl: true, appleTouchIconVersions: true, canonicalUrl: true, commitId: true, createdAt: true, description: true, favicon: true, faviconUrl: true, faviconVersions: true, id: true, logo: true, logoUrl: true, logoVersions: true, ogImage: true, ogImageUrl: true, ogImageVersions: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); // Create -const created = await db.platformSiteMetadatum.create({ data: { appleTouchIcon: '', canonicalUrl: '', commitId: '', description: '', favicon: '', logo: '', ogImage: '', robots: '', robotsSeededFrom: '', siteId: '', storeId: '', title: '' }, select: { id: true } }).execute(); +const created = await db.platformSiteMetadatum.create({ data: { appleTouchIcon: '', appleTouchIconUrl: '', appleTouchIconVersions: '', canonicalUrl: '', commitId: '', description: '', favicon: '', faviconUrl: '', faviconVersions: '', logo: '', logoUrl: '', logoVersions: '', ogImage: '', ogImageUrl: '', ogImageVersions: '', robots: '', robotsSeededFrom: '', siteId: '', storeId: '', title: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformSiteMetadatum.update({ where: { id: '' }, data: { appleTouchIcon: '' }, select: { id: true } }).execute(); @@ -2926,15 +2956,23 @@ CRUD operations for SiteMetadatum records. | Field | Type | Editable | |-------|------|----------| | `appleTouchIcon` | ConstructiveInternalTypeImage | Yes | +| `appleTouchIconUrl` | String | Yes | +| `appleTouchIconVersions` | FileVersion | Yes | | `canonicalUrl` | String | Yes | | `commitId` | UUID | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | | `description` | String | Yes | | `favicon` | ConstructiveInternalTypeImage | Yes | +| `faviconUrl` | String | Yes | +| `faviconVersions` | FileVersion | Yes | | `id` | UUID | No | | `logo` | ConstructiveInternalTypeImage | Yes | +| `logoUrl` | String | Yes | +| `logoVersions` | FileVersion | Yes | | `ogImage` | ConstructiveInternalTypeImage | Yes | +| `ogImageUrl` | String | Yes | +| `ogImageVersions` | FileVersion | Yes | | `robots` | String | Yes | | `robotsSeededFrom` | JSON | Yes | | `siteId` | UUID | Yes | @@ -2946,13 +2984,13 @@ CRUD operations for SiteMetadatum records. ```typescript // List all siteMetadatum records -const items = await db.siteMetadatum.findMany({ select: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, databaseId: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); +const items = await db.siteMetadatum.findMany({ select: { appleTouchIcon: true, appleTouchIconUrl: true, appleTouchIconVersions: true, canonicalUrl: true, commitId: true, createdAt: true, databaseId: true, description: true, favicon: true, faviconUrl: true, faviconVersions: true, id: true, logo: true, logoUrl: true, logoVersions: true, ogImage: true, ogImageUrl: true, ogImageVersions: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.siteMetadatum.findOne({ id: '', select: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, databaseId: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); +const item = await db.siteMetadatum.findOne({ id: '', select: { appleTouchIcon: true, appleTouchIconUrl: true, appleTouchIconVersions: true, canonicalUrl: true, commitId: true, createdAt: true, databaseId: true, description: true, favicon: true, faviconUrl: true, faviconVersions: true, id: true, logo: true, logoUrl: true, logoVersions: true, ogImage: true, ogImageUrl: true, ogImageVersions: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); // Create -const created = await db.siteMetadatum.create({ data: { appleTouchIcon: '', canonicalUrl: '', commitId: '', databaseId: '', description: '', favicon: '', logo: '', ogImage: '', robots: '', robotsSeededFrom: '', siteId: '', storeId: '', title: '' }, select: { id: true } }).execute(); +const created = await db.siteMetadatum.create({ data: { appleTouchIcon: '', appleTouchIconUrl: '', appleTouchIconVersions: '', canonicalUrl: '', commitId: '', databaseId: '', description: '', favicon: '', faviconUrl: '', faviconVersions: '', logo: '', logoUrl: '', logoVersions: '', ogImage: '', ogImageUrl: '', ogImageVersions: '', robots: '', robotsSeededFrom: '', siteId: '', storeId: '', title: '' }, select: { id: true } }).execute(); // Update const updated = await db.siteMetadatum.update({ where: { id: '' }, data: { appleTouchIcon: '' }, select: { id: true } }).execute(); @@ -3181,9 +3219,6 @@ const items = await db.sqlAction.findMany({ select: { actionId: true, actionName // Get one by id const item = await db.sqlAction.findOne({ id: '', select: { actionId: true, actionName: true, actorId: true, content: true, createdAt: true, databaseId: true, deploy: true, deps: true, id: true, name: true, payload: true, revert: true, verify: true } }).execute(); -// Create -const created = await db.sqlAction.create({ data: { actionId: '', actionName: '', actorId: '', content: '', databaseId: '', deploy: '', deps: '', name: '', payload: '', revert: '', verify: '' }, select: { id: true } }).execute(); - // Update const updated = await db.sqlAction.update({ where: { id: '' }, data: { actionId: '' }, select: { id: true } }).execute(); @@ -3706,21 +3741,6 @@ const deleted = await db.webauthnSetting.delete({ where: { id: '' } }).exe ## Custom Operations -### `db.query.apiSchemaNames` - -apiSchemaNames - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `targetApiId` | UUID | - -```typescript -const result = await db.query.apiSchemaNames({ targetApiId: '' }).execute(); -``` - ### `db.query.applyRegistryDefaults` applyRegistryDefaults @@ -3891,54 +3911,6 @@ platformVerifySitePreviewToken const result = await db.query.platformVerifySitePreviewToken({ siteId: '', token: '' }).execute(); ``` -### `db.query.resolveDeepLink` - -resolveDeepLink - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `linkSlug` | String | - | `targetSiteId` | UUID | - -```typescript -const result = await db.query.resolveDeepLink({ linkSlug: '', targetSiteId: '' }).execute(); -``` - -### `db.query.resolveRoute` - -resolveRoute - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `requestHost` | String | - | `requestMethod` | String | - | `requestPath` | String | - -```typescript -const result = await db.query.resolveRoute({ requestHost: '', requestMethod: '', requestPath: '' }).execute(); -``` - -### `db.query.resolveSiteAppLinks` - -resolveSiteAppLinks - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `targetSiteId` | UUID | - -```typescript -const result = await db.query.resolveSiteAppLinks({ targetSiteId: '' }).execute(); -``` - ### `db.query.sitesDeepLinkUrl` sitesDeepLinkUrl diff --git a/sdk/constructive-cli/src/api/orm/index.ts b/sdk/constructive-cli/src/api/orm/index.ts index 038b8785ac..eb190bc93d 100644 --- a/sdk/constructive-cli/src/api/orm/index.ts +++ b/sdk/constructive-cli/src/api/orm/index.ts @@ -54,6 +54,7 @@ import { PlatformEmailSiteIdentityModel } from './models/platformEmailSiteIdenti import { PlatformGetSitePreviewsRecordModel } from './models/platformGetSitePreviewsRecord'; import { PlatformManagedDomainModel } from './models/platformManagedDomain'; import { PlatformPageModel } from './models/platformPage'; +import { PlatformReservedSubdomainModel } from './models/platformReservedSubdomain'; import { PlatformSiteAppLinkModel } from './models/platformSiteAppLink'; import { PlatformSiteModel } from './models/platformSite'; import { PlatformSiteDeepLinkModel } from './models/platformSiteDeepLink'; @@ -179,6 +180,7 @@ export function createClient(config: OrmClientConfig) { platformGetSitePreviewsRecord: new PlatformGetSitePreviewsRecordModel(client), platformManagedDomain: new PlatformManagedDomainModel(client), platformPage: new PlatformPageModel(client), + platformReservedSubdomain: new PlatformReservedSubdomainModel(client), platformSiteAppLink: new PlatformSiteAppLinkModel(client), platformSite: new PlatformSiteModel(client), platformSiteDeepLink: new PlatformSiteDeepLinkModel(client), diff --git a/sdk/constructive-cli/src/api/orm/input-types.ts b/sdk/constructive-cli/src/api/orm/input-types.ts index f4e5da7908..775dc37d17 100644 --- a/sdk/constructive-cli/src/api/orm/input-types.ts +++ b/sdk/constructive-cli/src/api/orm/input-types.ts @@ -235,6 +235,7 @@ export type ApiExposureLevel = 'EXPOSABLE' | 'INTERNAL_ONLY' | 'NEVER_EXPOSE'; export type ObjectCategory = 'APP' | 'AUTH' | 'CAPABILITIES' | 'CORE' | 'MEMBERSHIPS' | 'MODULE'; // ============ Custom Scalar Types ============ export type ConstructiveInternalTypeImage = unknown; +export type FileVersion = unknown; /** API surfaces exposed by this scope; publication makes a surface bindable from other scopes */ // ============ Entity Types ============ export interface Api { @@ -245,8 +246,6 @@ export interface Api { createdAt?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; - /** Database this API surface serves */ - dbname?: string | null; id: string; /** Whether other scopes may see and route to this API surface */ isPublished?: boolean | null; @@ -254,6 +253,7 @@ export interface Api { name?: string | null; /** Authenticated role the API executes as */ roleName?: string | null; + serviceHostname?: string | null; updatedAt?: string | null; } /** Join table linking API surfaces to the metaschema schemas they expose */ @@ -281,8 +281,6 @@ export interface ApiSetting { enableBulk?: boolean | null; /** Override: enable connection filter (NULL = inherit from database_settings) */ enableConnectionFilter?: boolean | null; - /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ - enableDirectUploads?: boolean | null; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean | null; /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ @@ -412,8 +410,6 @@ export interface DatabaseSetting { enableBulk?: boolean | null; /** Enable connection filter (where argument) in the GraphQL API */ enableConnectionFilter?: boolean | null; - /** Enable direct (multipart) file upload mutations in the GraphQL API */ - enableDirectUploads?: boolean | null; /** Enable internationalization plugin (localeStrings field, translation table discovery) in the GraphQL API */ enableI18N?: boolean | null; /** Enable GraphQL schema introspection queries in the GraphQL API. A tenant may only ever lower a bound, so the stored default is the permissive end: turning introspection off is the opt-in. */ @@ -945,8 +941,6 @@ export interface PlatformApi { /** Module-specific configuration for this API surface */ config?: Record | null; createdAt?: string | null; - /** Database this API surface serves */ - dbname?: string | null; id: string; /** Whether other scopes may see and route to this API surface */ isPublished?: boolean | null; @@ -954,6 +948,7 @@ export interface PlatformApi { name?: string | null; /** Authenticated role the API executes as */ roleName?: string | null; + serviceHostname?: string | null; updatedAt?: string | null; } /** Join table linking API surfaces to the metaschema schemas they expose */ @@ -977,8 +972,6 @@ export interface PlatformApiSetting { enableBulk?: boolean | null; /** Override: enable connection filter (NULL = inherit from database_settings) */ enableConnectionFilter?: boolean | null; - /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ - enableDirectUploads?: boolean | null; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean | null; /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ @@ -1229,6 +1222,20 @@ export interface PlatformPage { /** Timestamp of last modification */ updatedAt?: string | null; } +/** Subdomain labels no tenant may claim under a platform apex */ +export interface PlatformReservedSubdomain { + createdAt?: string | null; + createdByPrincipal?: string | null; + id: string; + /** Lowercase subdomain label, or the label prefix/suffix the match names */ + label?: string | null; + /** How the label matches a claimed label: exact, prefix or suffix */ + match?: string | null; + /** Why the label is reserved (free text, e.g. platform, brand, lookalike) */ + reason?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; +} /** Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) */ export interface PlatformSiteAppLink { /** App-owned store identity this association serves (app_store_identities row in this scope's app plane; the association carries no store facts of its own) */ @@ -1305,6 +1312,10 @@ export interface PlatformSiteErrorPage { export interface PlatformSiteMetadatum { /** Apple touch icon image (home-screen bookmark) */ appleTouchIcon?: ConstructiveInternalTypeImage | null; + /** URL to fetch `appleTouchIcon`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + appleTouchIconUrl?: string | null; + /** The versions rendered beside `appleTouchIcon`, narrowest first, each with a URL. Empty when there are none. */ + appleTouchIconVersions?: FileVersion[] | null; /** Canonical URL emitted in for this site */ canonicalUrl?: string | null; /** Infra store commit for the current content (stamped by the versioned trigger on every write) */ @@ -1314,11 +1325,23 @@ export interface PlatformSiteMetadatum { description?: string | null; /** Site favicon image */ favicon?: ConstructiveInternalTypeImage | null; + /** URL to fetch `favicon`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + faviconUrl?: string | null; + /** The versions rendered beside `favicon`, narrowest first, each with a URL. Empty when there are none. */ + faviconVersions?: FileVersion[] | null; id: string; /** Primary site logo image */ logo?: ConstructiveInternalTypeImage | null; + /** URL to fetch `logo`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + logoUrl?: string | null; + /** The versions rendered beside `logo`, narrowest first, each with a URL. Empty when there are none. */ + logoVersions?: FileVersion[] | null; /** Open Graph image used when sharing site links */ ogImage?: ConstructiveInternalTypeImage | null; + /** URL to fetch `ogImage`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + ogImageUrl?: string | null; + /** The versions rendered beside `ogImage`, narrowest first, each with a URL. Empty when there are none. */ + ogImageVersions?: FileVersion[] | null; /** robots meta directive (e.g. index,follow / noindex,nofollow) */ robots?: string | null; /** Provenance of the robots value: the content preset (kind, slug, catalog commit_id) an install applied, or NULL when it was authored directly */ @@ -1645,6 +1668,10 @@ export interface SiteErrorPage { export interface SiteMetadatum { /** Apple touch icon image (home-screen bookmark) */ appleTouchIcon?: ConstructiveInternalTypeImage | null; + /** URL to fetch `appleTouchIcon`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + appleTouchIconUrl?: string | null; + /** The versions rendered beside `appleTouchIcon`, narrowest first, each with a URL. Empty when there are none. */ + appleTouchIconVersions?: FileVersion[] | null; /** Canonical URL emitted in for this site */ canonicalUrl?: string | null; /** Infra store commit for the current content (stamped by the versioned trigger on every write) */ @@ -1656,11 +1683,23 @@ export interface SiteMetadatum { description?: string | null; /** Site favicon image */ favicon?: ConstructiveInternalTypeImage | null; + /** URL to fetch `favicon`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + faviconUrl?: string | null; + /** The versions rendered beside `favicon`, narrowest first, each with a URL. Empty when there are none. */ + faviconVersions?: FileVersion[] | null; id: string; /** Primary site logo image */ logo?: ConstructiveInternalTypeImage | null; + /** URL to fetch `logo`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + logoUrl?: string | null; + /** The versions rendered beside `logo`, narrowest first, each with a URL. Empty when there are none. */ + logoVersions?: FileVersion[] | null; /** Open Graph image used when sharing site links */ ogImage?: ConstructiveInternalTypeImage | null; + /** URL to fetch `ogImage`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + ogImageUrl?: string | null; + /** The versions rendered beside `ogImage`, narrowest first, each with a URL. Empty when there are none. */ + ogImageVersions?: FileVersion[] | null; /** robots meta directive (e.g. index,follow / noindex,nofollow) */ robots?: string | null; /** Provenance of the robots value: the content preset (kind, slug, catalog commit_id) an install applied, or NULL when it was authored directly */ @@ -2203,6 +2242,7 @@ export interface PlatformManagedDomainRelations { export interface PlatformPageRelations { site?: PlatformSite | null; } +export interface PlatformReservedSubdomainRelations {} export interface PlatformSiteAppLinkRelations { site?: PlatformSite | null; } @@ -2490,6 +2530,8 @@ export type PlatformGetSitePreviewsRecordWithRelations = PlatformGetSitePreviews export type PlatformManagedDomainWithRelations = PlatformManagedDomain & PlatformManagedDomainRelations; export type PlatformPageWithRelations = PlatformPage & PlatformPageRelations; +export type PlatformReservedSubdomainWithRelations = PlatformReservedSubdomain & + PlatformReservedSubdomainRelations; export type PlatformSiteAppLinkWithRelations = PlatformSiteAppLink & PlatformSiteAppLinkRelations; export type PlatformSiteWithRelations = PlatformSite & PlatformSiteRelations; export type PlatformSiteDeepLinkWithRelations = PlatformSiteDeepLink & @@ -2543,11 +2585,11 @@ export type ApiSelect = { config?: boolean; createdAt?: boolean; databaseId?: boolean; - dbname?: boolean; id?: boolean; isPublished?: boolean; name?: boolean; roleName?: boolean; + serviceHostname?: boolean; updatedAt?: boolean; apiSetting?: { select: ApiSettingSelect; @@ -2586,7 +2628,6 @@ export type ApiSettingSelect = { enableAggregates?: boolean; enableBulk?: boolean; enableConnectionFilter?: boolean; - enableDirectUploads?: boolean; enableI18N?: boolean; enableIntrospection?: boolean; enableLlm?: boolean; @@ -2905,7 +2946,6 @@ export type DatabaseSettingSelect = { enableBilling?: boolean; enableBulk?: boolean; enableConnectionFilter?: boolean; - enableDirectUploads?: boolean; enableI18N?: boolean; enableIntrospection?: boolean; enableLlm?: boolean; @@ -3547,11 +3587,11 @@ export type PlatformApiSelect = { anonRole?: boolean; config?: boolean; createdAt?: boolean; - dbname?: boolean; id?: boolean; isPublished?: boolean; name?: boolean; roleName?: boolean; + serviceHostname?: boolean; updatedAt?: boolean; platformApiSettingByApiId?: { select: PlatformApiSettingSelect; @@ -3585,7 +3625,6 @@ export type PlatformApiSettingSelect = { enableAggregates?: boolean; enableBulk?: boolean; enableConnectionFilter?: boolean; - enableDirectUploads?: boolean; enableI18N?: boolean; enableIntrospection?: boolean; enableLlm?: boolean; @@ -3802,6 +3841,16 @@ export type PlatformPageSelect = { select: PlatformSiteSelect; }; }; +export type PlatformReservedSubdomainSelect = { + createdAt?: boolean; + createdByPrincipal?: boolean; + id?: boolean; + label?: boolean; + match?: boolean; + reason?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; +}; export type PlatformSiteAppLinkSelect = { appStoreIdentityId?: boolean; createdAt?: boolean; @@ -3906,14 +3955,42 @@ export type PlatformSiteErrorPageSelect = { }; export type PlatformSiteMetadatumSelect = { appleTouchIcon?: boolean; + appleTouchIconUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + appleTouchIconVersions?: boolean; canonicalUrl?: boolean; commitId?: boolean; createdAt?: boolean; description?: boolean; favicon?: boolean; + faviconUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + faviconVersions?: boolean; id?: boolean; logo?: boolean; + logoUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + logoVersions?: boolean; ogImage?: boolean; + ogImageUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + ogImageVersions?: boolean; robots?: boolean; robotsSeededFrom?: boolean; siteId?: boolean; @@ -4357,15 +4434,43 @@ export type SiteErrorPageSelect = { }; export type SiteMetadatumSelect = { appleTouchIcon?: boolean; + appleTouchIconUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + appleTouchIconVersions?: boolean; canonicalUrl?: boolean; commitId?: boolean; createdAt?: boolean; databaseId?: boolean; description?: boolean; favicon?: boolean; + faviconUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + faviconVersions?: boolean; id?: boolean; logo?: boolean; + logoUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + logoVersions?: boolean; ogImage?: boolean; + ogImageUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + ogImageVersions?: boolean; robots?: boolean; robotsSeededFrom?: boolean; siteId?: boolean; @@ -4949,8 +5054,6 @@ export interface ApiFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isPublished` field. */ @@ -5007,8 +5110,6 @@ export interface ApiSettingFilter { enableBulk?: BooleanFilter; /** Filter by the object’s `enableConnectionFilter` field. */ enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; /** Filter by the object’s `enableIntrospection` field. */ @@ -5373,8 +5474,6 @@ export interface DatabaseSettingFilter { enableBulk?: BooleanFilter; /** Filter by the object’s `enableConnectionFilter` field. */ enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; /** Filter by the object’s `enableIntrospection` field. */ @@ -6478,8 +6577,6 @@ export interface PlatformApiFilter { config?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isPublished` field. */ @@ -6544,8 +6641,6 @@ export interface PlatformApiSettingFilter { enableBulk?: BooleanFilter; /** Filter by the object’s `enableConnectionFilter` field. */ enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; /** Filter by the object’s `enableIntrospection` field. */ @@ -6936,6 +7031,30 @@ export interface PlatformPageFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } +export interface PlatformReservedSubdomainFilter { + /** Checks for all expressions in this list. */ + and?: PlatformReservedSubdomainFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `match` field. */ + match?: StringFilter; + /** Negates the expression. */ + not?: PlatformReservedSubdomainFilter; + /** Checks for any expressions in this list. */ + or?: PlatformReservedSubdomainFilter[]; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} export interface PlatformSiteAppLinkFilter { /** Checks for all expressions in this list. */ and?: PlatformSiteAppLinkFilter[]; @@ -8650,8 +8769,6 @@ export type ApiOrderBy = | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DBNAME_ASC' - | 'DBNAME_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_PUBLISHED_ASC' @@ -8694,8 +8811,6 @@ export type ApiSettingOrderBy = | 'ENABLE_BULK_DESC' | 'ENABLE_CONNECTION_FILTER_ASC' | 'ENABLE_CONNECTION_FILTER_DESC' - | 'ENABLE_DIRECT_UPLOADS_ASC' - | 'ENABLE_DIRECT_UPLOADS_DESC' | 'ENABLE_I18N_ASC' | 'ENABLE_I18N_DESC' | 'ENABLE_INTROSPECTION_ASC' @@ -8886,8 +9001,6 @@ export type DatabaseSettingOrderBy = | 'ENABLE_BULK_DESC' | 'ENABLE_CONNECTION_FILTER_ASC' | 'ENABLE_CONNECTION_FILTER_DESC' - | 'ENABLE_DIRECT_UPLOADS_ASC' - | 'ENABLE_DIRECT_UPLOADS_DESC' | 'ENABLE_I18N_ASC' | 'ENABLE_I18N_DESC' | 'ENABLE_INTROSPECTION_ASC' @@ -9726,8 +9839,6 @@ export type PlatformApiOrderBy = | 'CONFIG_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'DBNAME_ASC' - | 'DBNAME_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_PUBLISHED_ASC' @@ -9766,8 +9877,6 @@ export type PlatformApiSettingOrderBy = | 'ENABLE_BULK_DESC' | 'ENABLE_CONNECTION_FILTER_ASC' | 'ENABLE_CONNECTION_FILTER_DESC' - | 'ENABLE_DIRECT_UPLOADS_ASC' - | 'ENABLE_DIRECT_UPLOADS_DESC' | 'ENABLE_I18N_ASC' | 'ENABLE_I18N_DESC' | 'ENABLE_INTROSPECTION_ASC' @@ -10063,6 +10172,26 @@ export type PlatformPageOrderBy = | 'STORE_ID_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type PlatformReservedSubdomainOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'MATCH_ASC' + | 'MATCH_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REASON_ASC' + | 'REASON_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type PlatformSiteAppLinkOrderBy = | 'APP_STORE_IDENTITY_ID_ASC' | 'APP_STORE_IDENTITY_ID_DESC' @@ -11144,7 +11273,6 @@ export interface CreateApiInput { anonRole?: string; config?: Record; databaseId: string; - dbname?: string; isPublished?: boolean; name: string; roleName?: string; @@ -11154,7 +11282,6 @@ export interface ApiPatch { anonRole?: string | null; config?: Record | null; databaseId?: string | null; - dbname?: string | null; isPublished?: boolean | null; name?: string | null; roleName?: string | null; @@ -11198,7 +11325,6 @@ export interface CreateApiSettingInput { enableAggregates?: boolean; enableBulk?: boolean; enableConnectionFilter?: boolean; - enableDirectUploads?: boolean; enableI18N?: boolean; enableIntrospection?: boolean; enableLlm?: boolean; @@ -11228,7 +11354,6 @@ export interface ApiSettingPatch { enableAggregates?: boolean | null; enableBulk?: boolean | null; enableConnectionFilter?: boolean | null; - enableDirectUploads?: boolean | null; enableI18N?: boolean | null; enableIntrospection?: boolean | null; enableLlm?: boolean | null; @@ -11260,22 +11385,6 @@ export interface DeleteApiSettingInput { clientMutationId?: string; id: string; } -export interface CreateAstMigrationInput { - clientMutationId?: string; - astMigration: { - actionId: string; - actionName?: string; - actorId: string; - databaseId: string; - deploy?: Record; - deploys?: string; - name?: string; - payload?: Record; - requires?: string[]; - revert?: Record; - verify?: Record; - }; -} export interface AstMigrationPatch { actionId?: string | null; actionName?: string | null; @@ -11428,7 +11537,6 @@ export interface CreateDatabaseSettingInput { enableBilling?: boolean; enableBulk?: boolean; enableConnectionFilter?: boolean; - enableDirectUploads?: boolean; enableI18N?: boolean; enableIntrospection?: boolean; enableLlm?: boolean; @@ -11461,7 +11569,6 @@ export interface DatabaseSettingPatch { enableBilling?: boolean | null; enableBulk?: boolean | null; enableConnectionFilter?: boolean | null; - enableDirectUploads?: boolean | null; enableI18N?: boolean | null; enableIntrospection?: boolean | null; enableLlm?: boolean | null; @@ -12214,13 +12321,6 @@ export interface DeleteFunctionInput { clientMutationId?: string; id: string; } -export interface CreateGetSitePreviewsRecordInput { - clientMutationId?: string; - getSitePreviewsRecord: { - commitId: string; - name?: string; - }; -} export interface GetSitePreviewsRecordPatch { commitId?: string | null; name?: string | null; @@ -12312,15 +12412,6 @@ export interface DeleteIndexInput { clientMutationId?: string; id: string; } -export interface CreateListSuspendedDatabasesRecordInput { - clientMutationId?: string; - listSuspendedDatabasesRecord: { - name?: string; - ownerId: string; - suspendedAt?: string; - suspendedReason?: string; - }; -} export interface ListSuspendedDatabasesRecordPatch { name?: string | null; ownerId?: string | null; @@ -12479,7 +12570,6 @@ export interface CreatePlatformApiInput { platformApi: { anonRole?: string; config?: Record; - dbname?: string; isPublished?: boolean; name: string; roleName?: string; @@ -12488,7 +12578,6 @@ export interface CreatePlatformApiInput { export interface PlatformApiPatch { anonRole?: string | null; config?: Record | null; - dbname?: string | null; isPublished?: boolean | null; name?: string | null; roleName?: string | null; @@ -12529,7 +12618,6 @@ export interface CreatePlatformApiSettingInput { enableAggregates?: boolean; enableBulk?: boolean; enableConnectionFilter?: boolean; - enableDirectUploads?: boolean; enableI18N?: boolean; enableIntrospection?: boolean; enableLlm?: boolean; @@ -12558,7 +12646,6 @@ export interface PlatformApiSettingPatch { enableAggregates?: boolean | null; enableBulk?: boolean | null; enableConnectionFilter?: boolean | null; - enableDirectUploads?: boolean | null; enableI18N?: boolean | null; enableIntrospection?: boolean | null; enableLlm?: boolean | null; @@ -12814,13 +12901,6 @@ export interface DeletePlatformEmailSiteIdentityInput { clientMutationId?: string; id: string; } -export interface CreatePlatformGetSitePreviewsRecordInput { - clientMutationId?: string; - platformGetSitePreviewsRecord: { - commitId: string; - name?: string; - }; -} export interface PlatformGetSitePreviewsRecordPatch { commitId?: string | null; name?: string | null; @@ -12902,6 +12982,32 @@ export interface DeletePlatformPageInput { clientMutationId?: string; id: string; } +export interface CreatePlatformReservedSubdomainInput { + clientMutationId?: string; + platformReservedSubdomain: { + createdByPrincipal?: string; + label: string; + match?: string; + reason?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformReservedSubdomainPatch { + createdByPrincipal?: string | null; + label?: string | null; + match?: string | null; + reason?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformReservedSubdomainInput { + clientMutationId?: string; + id: string; + platformReservedSubdomainPatch: PlatformReservedSubdomainPatch; +} +export interface DeletePlatformReservedSubdomainInput { + clientMutationId?: string; + id: string; +} export interface CreatePlatformSiteAppLinkInput { clientMutationId?: string; platformSiteAppLink: { @@ -13035,16 +13141,12 @@ export interface CreatePlatformSiteMetadatumInput { } export interface PlatformSiteMetadatumPatch { appleTouchIcon?: ConstructiveInternalTypeImage | null; - appleTouchIconUpload?: File | null; canonicalUrl?: string | null; commitId?: string | null; description?: string | null; favicon?: ConstructiveInternalTypeImage | null; - faviconUpload?: File | null; logo?: ConstructiveInternalTypeImage | null; - logoUpload?: File | null; ogImage?: ConstructiveInternalTypeImage | null; - ogImageUpload?: File | null; robots?: string | null; robotsSeededFrom?: Record | null; siteId?: string | null; @@ -13594,17 +13696,13 @@ export interface CreateSiteMetadatumInput { } export interface SiteMetadatumPatch { appleTouchIcon?: ConstructiveInternalTypeImage | null; - appleTouchIconUpload?: File | null; canonicalUrl?: string | null; commitId?: string | null; databaseId?: string | null; description?: string | null; favicon?: ConstructiveInternalTypeImage | null; - faviconUpload?: File | null; logo?: ConstructiveInternalTypeImage | null; - logoUpload?: File | null; ogImage?: ConstructiveInternalTypeImage | null; - ogImageUpload?: File | null; robots?: string | null; robotsSeededFrom?: Record | null; siteId?: string | null; @@ -13768,22 +13866,6 @@ export interface DeleteSpatialRelationInput { clientMutationId?: string; id: string; } -export interface CreateSqlActionInput { - clientMutationId?: string; - sqlAction: { - actionId: string; - actionName?: string; - actorId: string; - content?: string; - databaseId: string; - deploy?: string; - deps?: string[]; - name?: string; - payload?: Record; - revert?: string; - verify?: string; - }; -} export interface SqlActionPatch { actionId?: string | null; actionName?: string | null; @@ -15627,8 +15709,6 @@ export interface ApiInput { createdAt?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; - /** Database this API surface serves */ - dbname?: string; id?: string; /** Whether other scopes may see and route to this API surface */ isPublished?: boolean; @@ -15663,8 +15743,6 @@ export interface ApiSettingInput { enableBulk?: boolean; /** Override: enable connection filter (NULL = inherit from database_settings) */ enableConnectionFilter?: boolean; - /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ - enableDirectUploads?: boolean; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean; /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ @@ -15780,8 +15858,6 @@ export interface DatabaseSettingInput { enableBulk?: boolean; /** Enable connection filter (where argument) in the GraphQL API */ enableConnectionFilter?: boolean; - /** Enable direct (multipart) file upload mutations in the GraphQL API */ - enableDirectUploads?: boolean; /** Enable internationalization plugin (localeStrings field, translation table discovery) in the GraphQL API */ enableI18N?: boolean; /** Enable GraphQL schema introspection queries in the GraphQL API. A tenant may only ever lower a bound, so the stored default is the permissive end: turning introspection off is the opt-in. */ @@ -16319,8 +16395,6 @@ export interface PlatformApiInput { /** Module-specific configuration for this API surface */ config?: Record; createdAt?: string; - /** Database this API surface serves */ - dbname?: string; id?: string; /** Whether other scopes may see and route to this API surface */ isPublished?: boolean; @@ -16351,8 +16425,6 @@ export interface PlatformApiSettingInput { enableBulk?: boolean; /** Override: enable connection filter (NULL = inherit from database_settings) */ enableConnectionFilter?: boolean; - /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ - enableDirectUploads?: boolean; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean; /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ @@ -16599,6 +16671,20 @@ export interface PlatformPageInput { /** Timestamp of last modification */ updatedAt?: string; } +/** An input for mutations affecting `PlatformReservedSubdomain` */ +export interface PlatformReservedSubdomainInput { + createdAt?: string; + createdByPrincipal?: string; + id?: string; + /** Lowercase subdomain label, or the label prefix/suffix the match names */ + label: string; + /** How the label matches a claimed label: exact, prefix or suffix */ + match?: string; + /** Why the label is reserved (free text, e.g. platform, brand, lookalike) */ + reason?: string; + updatedAt?: string; + updatedByPrincipal?: string; +} /** An input for mutations affecting `PlatformSiteAppLink` */ export interface PlatformSiteAppLinkInput { /** App-owned store identity this association serves (app_store_identities row in this scope's app plane; the association carries no store facts of its own) */ @@ -19675,8 +19761,6 @@ export interface ApiFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isPublished` field. */ @@ -20445,8 +20529,6 @@ export interface PlatformApiFilter { config?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isPublished` field. */ @@ -20706,8 +20788,6 @@ export interface ApiSettingFilter { enableBulk?: BooleanFilter; /** Filter by the object’s `enableConnectionFilter` field. */ enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; /** Filter by the object’s `enableIntrospection` field. */ @@ -20874,8 +20954,6 @@ export interface PlatformApiSettingFilter { enableBulk?: BooleanFilter; /** Filter by the object’s `enableConnectionFilter` field. */ enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; /** Filter by the object’s `enableIntrospection` field. */ @@ -21069,44 +21147,6 @@ export interface BigIntFilter { notIn?: string[]; } // ============ Payload/Return Types (for custom operations) ============ -export interface ResolveRouteRecord { - domainId?: string | null; - hostname?: string | null; - matchedPath?: string | null; - matchedWildcard?: boolean | null; - method?: string | null; - priority?: number | null; - resolvedConfig?: Record | null; - routeBindingId?: string | null; - servingLane?: string | null; - targetCatalogId?: string | null; - targetModule?: string | null; - targetOwnerKey?: string | null; - targetOwnerScope?: string | null; - targetSourceId?: string | null; - tlsSecretName?: string | null; - tlsStatus?: string | null; - verificationStatus?: string | null; -} -export type ResolveRouteRecordSelect = { - domainId?: boolean; - hostname?: boolean; - matchedPath?: boolean; - matchedWildcard?: boolean; - method?: boolean; - priority?: boolean; - resolvedConfig?: boolean; - routeBindingId?: boolean; - servingLane?: boolean; - targetCatalogId?: boolean; - targetModule?: boolean; - targetOwnerKey?: boolean; - targetOwnerScope?: boolean; - targetSourceId?: boolean; - tlsSecretName?: boolean; - tlsStatus?: boolean; - verificationStatus?: boolean; -}; export interface AcceptDatabaseTransferPayload { clientMutationId?: string | null; result?: boolean | null; @@ -23421,6 +23461,51 @@ export type DeletePlatformPagePayloadSelect = { select: PlatformPageEdgeSelect; }; }; +export interface CreatePlatformReservedSubdomainPayload { + clientMutationId?: string | null; + /** The `PlatformReservedSubdomain` that was created by this mutation. */ + platformReservedSubdomain?: PlatformReservedSubdomain | null; + platformReservedSubdomainEdge?: PlatformReservedSubdomainEdge | null; +} +export type CreatePlatformReservedSubdomainPayloadSelect = { + clientMutationId?: boolean; + platformReservedSubdomain?: { + select: PlatformReservedSubdomainSelect; + }; + platformReservedSubdomainEdge?: { + select: PlatformReservedSubdomainEdgeSelect; + }; +}; +export interface UpdatePlatformReservedSubdomainPayload { + clientMutationId?: string | null; + /** The `PlatformReservedSubdomain` that was updated by this mutation. */ + platformReservedSubdomain?: PlatformReservedSubdomain | null; + platformReservedSubdomainEdge?: PlatformReservedSubdomainEdge | null; +} +export type UpdatePlatformReservedSubdomainPayloadSelect = { + clientMutationId?: boolean; + platformReservedSubdomain?: { + select: PlatformReservedSubdomainSelect; + }; + platformReservedSubdomainEdge?: { + select: PlatformReservedSubdomainEdgeSelect; + }; +}; +export interface DeletePlatformReservedSubdomainPayload { + clientMutationId?: string | null; + /** The `PlatformReservedSubdomain` that was deleted by this mutation. */ + platformReservedSubdomain?: PlatformReservedSubdomain | null; + platformReservedSubdomainEdge?: PlatformReservedSubdomainEdge | null; +} +export type DeletePlatformReservedSubdomainPayloadSelect = { + clientMutationId?: boolean; + platformReservedSubdomain?: { + select: PlatformReservedSubdomainSelect; + }; + platformReservedSubdomainEdge?: { + select: PlatformReservedSubdomainEdgeSelect; + }; +}; export interface CreatePlatformSiteAppLinkPayload { clientMutationId?: string | null; /** The `PlatformSiteAppLink` that was created by this mutation. */ @@ -25929,6 +26014,18 @@ export type PlatformPageEdgeSelect = { select: PlatformPageSelect; }; }; +/** A `PlatformReservedSubdomain` edge in the connection. */ +export interface PlatformReservedSubdomainEdge { + cursor?: string | null; + /** The `PlatformReservedSubdomain` at the end of the edge. */ + node?: PlatformReservedSubdomain | null; +} +export type PlatformReservedSubdomainEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformReservedSubdomainSelect; + }; +}; /** A `PlatformSiteAppLink` edge in the connection. */ export interface PlatformSiteAppLinkEdge { cursor?: string | null; diff --git a/sdk/constructive-cli/src/api/orm/models/astMigration.ts b/sdk/constructive-cli/src/api/orm/models/astMigration.ts index bfcc5f455a..ca429d54b2 100644 --- a/sdk/constructive-cli/src/api/orm/models/astMigration.ts +++ b/sdk/constructive-cli/src/api/orm/models/astMigration.ts @@ -29,7 +29,6 @@ import type { AstMigrationSelect, AstMigrationFilter, AstMigrationOrderBy, - CreateAstMigrationInput, UpdateAstMigrationInput, AstMigrationPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class AstMigrationModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAstMigration: { - astMigration: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AstMigration', - 'createAstMigration', - 'astMigration', - args.select, - args.data, - 'CreateAstMigrationInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AstMigration', - fieldName: 'createAstMigration', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/api/orm/models/getSitePreviewsRecord.ts b/sdk/constructive-cli/src/api/orm/models/getSitePreviewsRecord.ts index dc2c778221..9c58fd8f10 100644 --- a/sdk/constructive-cli/src/api/orm/models/getSitePreviewsRecord.ts +++ b/sdk/constructive-cli/src/api/orm/models/getSitePreviewsRecord.ts @@ -29,7 +29,6 @@ import type { GetSitePreviewsRecordSelect, GetSitePreviewsRecordFilter, GetSitePreviewsRecordsOrderBy, - CreateGetSitePreviewsRecordInput, UpdateGetSitePreviewsRecordInput, GetSitePreviewsRecordPatch, } from '../input-types'; @@ -104,31 +103,4 @@ export class GetSitePreviewsRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createGetSitePreviewsRecord: { - getSitePreviewsRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'GetSitePreviewsRecord', - 'createGetSitePreviewsRecord', - 'getSitePreviewsRecord', - args.select, - args.data, - 'CreateGetSitePreviewsRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'GetSitePreviewsRecord', - fieldName: 'createGetSitePreviewsRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/api/orm/models/index.ts b/sdk/constructive-cli/src/api/orm/models/index.ts index 207f507c84..3cd2ba5b52 100644 --- a/sdk/constructive-cli/src/api/orm/models/index.ts +++ b/sdk/constructive-cli/src/api/orm/models/index.ts @@ -52,6 +52,7 @@ export { PlatformEmailSiteIdentityModel } from './platformEmailSiteIdentity'; export { PlatformGetSitePreviewsRecordModel } from './platformGetSitePreviewsRecord'; export { PlatformManagedDomainModel } from './platformManagedDomain'; export { PlatformPageModel } from './platformPage'; +export { PlatformReservedSubdomainModel } from './platformReservedSubdomain'; export { PlatformSiteAppLinkModel } from './platformSiteAppLink'; export { PlatformSiteModel } from './platformSite'; export { PlatformSiteDeepLinkModel } from './platformSiteDeepLink'; diff --git a/sdk/constructive-cli/src/api/orm/models/listSuspendedDatabasesRecord.ts b/sdk/constructive-cli/src/api/orm/models/listSuspendedDatabasesRecord.ts index d479aad622..49858b365a 100644 --- a/sdk/constructive-cli/src/api/orm/models/listSuspendedDatabasesRecord.ts +++ b/sdk/constructive-cli/src/api/orm/models/listSuspendedDatabasesRecord.ts @@ -29,7 +29,6 @@ import type { ListSuspendedDatabasesRecordSelect, ListSuspendedDatabasesRecordFilter, ListSuspendedDatabasesRecordsOrderBy, - CreateListSuspendedDatabasesRecordInput, UpdateListSuspendedDatabasesRecordInput, ListSuspendedDatabasesRecordPatch, } from '../input-types'; @@ -160,31 +159,4 @@ export class ListSuspendedDatabasesRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createListSuspendedDatabasesRecord: { - listSuspendedDatabasesRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ListSuspendedDatabasesRecord', - 'createListSuspendedDatabasesRecord', - 'listSuspendedDatabasesRecord', - args.select, - args.data, - 'CreateListSuspendedDatabasesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ListSuspendedDatabasesRecord', - fieldName: 'createListSuspendedDatabasesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/api/orm/models/platformGetSitePreviewsRecord.ts b/sdk/constructive-cli/src/api/orm/models/platformGetSitePreviewsRecord.ts index b2282eaa16..e037d0890f 100644 --- a/sdk/constructive-cli/src/api/orm/models/platformGetSitePreviewsRecord.ts +++ b/sdk/constructive-cli/src/api/orm/models/platformGetSitePreviewsRecord.ts @@ -29,7 +29,6 @@ import type { PlatformGetSitePreviewsRecordSelect, PlatformGetSitePreviewsRecordFilter, PlatformGetSitePreviewsRecordsOrderBy, - CreatePlatformGetSitePreviewsRecordInput, UpdatePlatformGetSitePreviewsRecordInput, PlatformGetSitePreviewsRecordPatch, } from '../input-types'; @@ -117,37 +116,4 @@ export class PlatformGetSitePreviewsRecordModel { }), }); } - create( - args: CreateArgs< - S, - CreatePlatformGetSitePreviewsRecordInput['platformGetSitePreviewsRecord'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformGetSitePreviewsRecord: { - platformGetSitePreviewsRecord: InferSelectResult< - PlatformGetSitePreviewsRecordWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformGetSitePreviewsRecord', - 'createPlatformGetSitePreviewsRecord', - 'platformGetSitePreviewsRecord', - args.select, - args.data, - 'CreatePlatformGetSitePreviewsRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformGetSitePreviewsRecord', - fieldName: 'createPlatformGetSitePreviewsRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/api/orm/models/platformReservedSubdomain.ts b/sdk/constructive-cli/src/api/orm/models/platformReservedSubdomain.ts new file mode 100644 index 0000000000..ab3f3b97e5 --- /dev/null +++ b/sdk/constructive-cli/src/api/orm/models/platformReservedSubdomain.ts @@ -0,0 +1,247 @@ +/** + * PlatformReservedSubdomain model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformReservedSubdomain, + PlatformReservedSubdomainWithRelations, + PlatformReservedSubdomainSelect, + PlatformReservedSubdomainFilter, + PlatformReservedSubdomainOrderBy, + CreatePlatformReservedSubdomainInput, + UpdatePlatformReservedSubdomainInput, + PlatformReservedSubdomainPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformReservedSubdomainModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformReservedSubdomains: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformReservedSubdomain', + 'platformReservedSubdomains', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformReservedSubdomainFilter', + 'PlatformReservedSubdomainOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformReservedSubdomain', + fieldName: 'platformReservedSubdomains', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformReservedSubdomain: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformReservedSubdomain', + 'platformReservedSubdomains', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformReservedSubdomainFilter', + 'PlatformReservedSubdomainOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformReservedSubdomain', + fieldName: 'platformReservedSubdomain', + document, + variables, + transform: (data: { + platformReservedSubdomains?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformReservedSubdomain: data.platformReservedSubdomains?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformReservedSubdomain: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformReservedSubdomain', + 'platformReservedSubdomains', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformReservedSubdomainFilter', + 'PlatformReservedSubdomainOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformReservedSubdomain', + fieldName: 'platformReservedSubdomain', + document, + variables, + transform: (data: { + platformReservedSubdomains?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformReservedSubdomain: data.platformReservedSubdomains?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformReservedSubdomain: { + platformReservedSubdomain: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformReservedSubdomain', + 'createPlatformReservedSubdomain', + 'platformReservedSubdomain', + args.select, + args.data, + 'CreatePlatformReservedSubdomainInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformReservedSubdomain', + fieldName: 'createPlatformReservedSubdomain', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformReservedSubdomainPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformReservedSubdomain: { + platformReservedSubdomain: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformReservedSubdomain', + 'updatePlatformReservedSubdomain', + 'platformReservedSubdomain', + args.select, + args.where.id, + args.data, + 'UpdatePlatformReservedSubdomainInput', + 'id', + 'platformReservedSubdomainPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformReservedSubdomain', + fieldName: 'updatePlatformReservedSubdomain', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformReservedSubdomain: { + platformReservedSubdomain: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformReservedSubdomain', + 'deletePlatformReservedSubdomain', + 'platformReservedSubdomain', + { + id: args.where.id, + }, + 'DeletePlatformReservedSubdomainInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformReservedSubdomain', + fieldName: 'deletePlatformReservedSubdomain', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/api/orm/models/sqlAction.ts b/sdk/constructive-cli/src/api/orm/models/sqlAction.ts index 74b4418688..d9b77d8c06 100644 --- a/sdk/constructive-cli/src/api/orm/models/sqlAction.ts +++ b/sdk/constructive-cli/src/api/orm/models/sqlAction.ts @@ -29,7 +29,6 @@ import type { SqlActionSelect, SqlActionFilter, SqlActionOrderBy, - CreateSqlActionInput, UpdateSqlActionInput, SqlActionPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class SqlActionModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createSqlAction: { - sqlAction: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'SqlAction', - 'createSqlAction', - 'sqlAction', - args.select, - args.data, - 'CreateSqlActionInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'SqlAction', - fieldName: 'createSqlAction', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/api/orm/query/index.ts b/sdk/constructive-cli/src/api/orm/query/index.ts index 12ea7b4e72..cfae605185 100644 --- a/sdk/constructive-cli/src/api/orm/query/index.ts +++ b/sdk/constructive-cli/src/api/orm/query/index.ts @@ -6,11 +6,7 @@ import { OrmClient } from '../client'; import { QueryBuilder, buildCustomDocument } from '../query-builder'; import type { InferSelectResult, StrictSelect } from '../select-types'; -import type { ResolveRouteRecord, ResolveRouteRecordSelect } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export interface ApiSchemaNamesVariables { - targetApiId?: string; -} export interface ApplyRegistryDefaultsVariables { data?: unknown; nodeType?: string; @@ -50,18 +46,6 @@ export interface PlatformVerifySitePreviewTokenVariables { siteId?: string; token?: string; } -export interface ResolveDeepLinkVariables { - linkSlug?: string; - targetSiteId?: string; -} -export interface ResolveRouteVariables { - requestHost?: string; - requestMethod?: string; - requestPath?: string; -} -export interface ResolveSiteAppLinksVariables { - targetSiteId?: string; -} export interface SitesDeepLinkUrlVariables { linkSlug?: string; targetSiteId?: string; @@ -75,35 +59,6 @@ export interface VerifySitePreviewTokenVariables { } export function createQueryOperations(client: OrmClient) { return { - apiSchemaNames: ( - args: ApiSchemaNamesVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - apiSchemaNames: unknown | null; - }>({ - client, - operation: 'query', - operationName: 'ApiSchemaNames', - fieldName: 'apiSchemaNames', - ...buildCustomDocument( - 'query', - 'ApiSchemaNames', - 'apiSchemaNames', - options?.select, - args, - [ - { - name: 'targetApiId', - type: 'UUID', - }, - ], - connectionFieldsMap, - undefined - ), - }), applyRegistryDefaults: ( args: ApplyRegistryDefaultsVariables, options?: { @@ -449,105 +404,6 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - resolveDeepLink: ( - args: ResolveDeepLinkVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - resolveDeepLink: unknown | null; - }>({ - client, - operation: 'query', - operationName: 'ResolveDeepLink', - fieldName: 'resolveDeepLink', - ...buildCustomDocument( - 'query', - 'ResolveDeepLink', - 'resolveDeepLink', - options?.select, - args, - [ - { - name: 'linkSlug', - type: 'String', - }, - { - name: 'targetSiteId', - type: 'UUID', - }, - ], - connectionFieldsMap, - undefined - ), - }), - resolveRoute: ( - args: ResolveRouteVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - resolveRoute: InferSelectResult | null; - }>({ - client, - operation: 'query', - operationName: 'ResolveRoute', - fieldName: 'resolveRoute', - ...buildCustomDocument( - 'query', - 'ResolveRoute', - 'resolveRoute', - options.select, - args, - [ - { - name: 'requestHost', - type: 'String', - }, - { - name: 'requestMethod', - type: 'String', - }, - { - name: 'requestPath', - type: 'String', - }, - ], - connectionFieldsMap, - 'ResolveRouteRecord' - ), - }), - resolveSiteAppLinks: ( - args: ResolveSiteAppLinksVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - resolveSiteAppLinks: unknown | null; - }>({ - client, - operation: 'query', - operationName: 'ResolveSiteAppLinks', - fieldName: 'resolveSiteAppLinks', - ...buildCustomDocument( - 'query', - 'ResolveSiteAppLinks', - 'resolveSiteAppLinks', - options?.select, - args, - [ - { - name: 'targetSiteId', - type: 'UUID', - }, - ], - connectionFieldsMap, - undefined - ), - }), sitesDeepLinkUrl: ( args: SitesDeepLinkUrlVariables, options?: { diff --git a/sdk/constructive-cli/src/auth/README.md b/sdk/constructive-cli/src/auth/README.md index 111ed4bd64..a93e03cf0c 100644 --- a/sdk/constructive-cli/src/auth/README.md +++ b/sdk/constructive-cli/src/auth/README.md @@ -9,8 +9,8 @@ ## Overview - **Tables:** 15 -- **Custom queries:** 6 -- **Custom mutations:** 55 +- **Custom queries:** 7 +- **Custom mutations:** 59 **Generators:** ORM, CLI diff --git a/sdk/constructive-cli/src/auth/cli/README.md b/sdk/constructive-cli/src/auth/cli/README.md index 0faf72f418..41f70c8118 100644 --- a/sdk/constructive-cli/src/auth/cli/README.md +++ b/sdk/constructive-cli/src/auth/cli/README.md @@ -47,15 +47,17 @@ csdk auth set-token | `current-user-id` | currentUserId | | `get-mfa-status` | getMfaStatus | | `require-step-up` | requireStepUp | +| `sign-in-options` | signInOptions | | `approve-device` | approveDevice | | `check-password` | checkPassword | | `complete-mfa-challenge` | completeMfaChallenge | | `confirm-delete-account` | confirmDeleteAccount | | `confirm-totp-setup` | confirmTotpSetup | -| `create-api-key` | createApiKey | +| `create-api-key` | Mint an API key for the current user; the plaintext key is returned once. access_level: full_access (default) or read_only. mfa_level: none (default) or verified; verified needs a fresh MFA proof on the calling session. A key minted while authenticated by another API key never outlives that key. | | `create-child-principal` | createChildPrincipal | | `create-org-api-key` | createOrgApiKey | | `create-org-principal` | createOrgPrincipal | +| `create-principal` | createPrincipal | | `create-principal-from-preset` | createPrincipalFromPreset | | `delete-org-principal` | deleteOrgPrincipal | | `delete-principal` | deletePrincipal | @@ -66,6 +68,8 @@ csdk auth set-token | `enable-email-mfa` | enableEmailMfa | | `enable-sms-mfa` | enableSmsMfa | | `enable-totp` | enableTotp | +| `ensure-auth-csrf` | ensureAuthCsrf | +| `exchange-native-handoff` | exchangeNativeHandoff | | `extend-token-expires` | extendTokenExpires | | `forgot-password` | forgotPassword | | `generate-backup-codes` | generateBackupCodes | @@ -79,6 +83,7 @@ idempotent for an already-reconciled bucket; failures become GraphQL errors. | | `refresh-access-token` | refreshAccessToken | | `request-cross-origin-token` | requestCrossOriginToken | +| `request-device-approval` | requestDeviceApproval | | `request-magic-link` | requestMagicLink | | `reset-password` | resetPassword | | `revoke-api-key` | revokeApiKey | @@ -246,7 +251,6 @@ CRUD operations for IdentityProvider records. | `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 | @@ -270,7 +274,6 @@ CRUD operations for OrgApiKeyList records. | `list` | List all orgApiKeyList records | | `find-first` | Find first matching orgApiKeyList record | | `get` | Get a orgApiKeyList by id | -| `create` | Create a new orgApiKeyList | | `update` | Update an existing orgApiKeyList | | `delete` | Delete a orgApiKeyList | @@ -332,7 +335,6 @@ CRUD operations for Principal records. | `list` | List all principal records | | `find-first` | Find first matching principal record | | `get` | Get a principal by principalId | -| `create` | Create a new principal | | `update` | Update an existing principal | | `delete` | Delete a principal | @@ -366,7 +368,6 @@ CRUD operations for PrincipalEntity records. | `list` | List all principalEntity records | | `find-first` | Find first matching principalEntity record | | `get` | Get a principalEntity by id | -| `create` | Create a new principalEntity | | `update` | Update an existing principalEntity | | `delete` | Delete a principalEntity | @@ -392,7 +393,6 @@ CRUD operations for PrincipalScopeOverride records. | `list` | List all principalScopeOverride records | | `find-first` | Find first matching principalScopeOverride record | | `get` | Get a principalScopeOverride by id | -| `create` | Create a new principalScopeOverride | | `update` | Update an existing principalScopeOverride | | `delete` | Delete a principalScopeOverride | @@ -443,7 +443,6 @@ CRUD operations for UserConnectedAccount records. | `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 | @@ -485,6 +484,8 @@ CRUD operations for User records. | `displayNameTrgmSimilarity` | Float | | `id` | UUID | | `profilePicture` | Image | +| `profilePictureUrl` | String | +| `profilePictureVersions` | FileVersion | | `searchScore` | Float | | `searchTsv` | FullText | | `searchTsvRank` | Float | @@ -657,6 +658,13 @@ requireStepUp |----------|------| | `--stepUpType` | String | +### `sign-in-options` + +signInOptions + +- **Type:** query +- **Arguments:** none + ### `approve-device` approveDevice @@ -727,7 +735,7 @@ confirmTotpSetup ### `create-api-key` -createApiKey +Mint an API key for the current user; the plaintext key is returned once. access_level: full_access (default) or read_only. mfa_level: none (default) or verified; verified needs a fresh MFA proof on the calling session. A key minted while authenticated by another API key never outlives that key. - **Type:** mutation - **Arguments:** @@ -792,6 +800,22 @@ createOrgPrincipal | `--input.orgId` | UUID | | `--input.useAdminOwner` | Boolean | +### `create-principal` + +createPrincipal + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.bypassStepUp` | Boolean | + | `--input.clientMutationId` | String | + | `--input.entityIds` | UUID | + | `--input.isReadOnly` | Boolean | + | `--input.name` | String | + | `--input.useAdminOwner` | Boolean | + ### `create-principal-from-preset` createPrincipalFromPreset @@ -910,6 +934,32 @@ enableTotp |----------|------| | `--input.clientMutationId` | String | +### `ensure-auth-csrf` + +ensureAuthCsrf + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.existingToken` | String | + +### `exchange-native-handoff` + +exchangeNativeHandoff + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.code` | String | + | `--input.codeVerifier` | String | + | `--input.credentialKind` | String | + ### `extend-token-expires` extendTokenExpires @@ -955,7 +1005,7 @@ linkIdentity | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.ticket` | String (required) | + | `--input.ticket` | String | ### `mint-access-token` @@ -1015,6 +1065,20 @@ requestCrossOriginToken | `--input.password` | String | | `--input.rememberMe` | Boolean | +### `request-device-approval` + +requestDeviceApproval + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.deviceToken` | String | + | `--input.next` | String | + | `--input.userId` | UUID | + ### `request-magic-link` requestMagicLink @@ -1025,7 +1089,9 @@ requestMagicLink | Argument | Type | |----------|------| | `--input.clientMutationId` | String | + | `--input.codeChallenge` | String | | `--input.email` | String | + | `--input.nativeRedirectUri` | String | | `--input.next` | String | ### `reset-password` @@ -1164,6 +1230,7 @@ setPassword | `--input.clientMutationId` | String | | `--input.currentPassword` | String | | `--input.newPassword` | String | + | `--input.signOutOtherSessions` | Boolean | ### `set-principal-entities` @@ -1343,6 +1410,7 @@ verifyEmail |----------|------| | `--input.clientMutationId` | String | | `--input.emailId` | UUID | + | `--input.password` | String | | `--input.token` | String | ### `verify-password` diff --git a/sdk/constructive-cli/src/auth/cli/commands.ts b/sdk/constructive-cli/src/auth/cli/commands.ts index 15a3a321e7..dd5b6c3886 100644 --- a/sdk/constructive-cli/src/auth/cli/commands.ts +++ b/sdk/constructive-cli/src/auth/cli/commands.ts @@ -27,6 +27,7 @@ import currentUserAgentCmd from './commands/current-user-agent'; import currentUserIdCmd from './commands/current-user-id'; import getMfaStatusCmd from './commands/get-mfa-status'; import requireStepUpCmd from './commands/require-step-up'; +import signInOptionsCmd from './commands/sign-in-options'; import approveDeviceCmd from './commands/approve-device'; import checkPasswordCmd from './commands/check-password'; import completeMfaChallengeCmd from './commands/complete-mfa-challenge'; @@ -36,6 +37,7 @@ import createApiKeyCmd from './commands/create-api-key'; import createChildPrincipalCmd from './commands/create-child-principal'; import createOrgApiKeyCmd from './commands/create-org-api-key'; import createOrgPrincipalCmd from './commands/create-org-principal'; +import createPrincipalCmd from './commands/create-principal'; import createPrincipalFromPresetCmd from './commands/create-principal-from-preset'; import deleteOrgPrincipalCmd from './commands/delete-org-principal'; import deletePrincipalCmd from './commands/delete-principal'; @@ -46,6 +48,8 @@ import disconnectAccountCmd from './commands/disconnect-account'; import enableEmailMfaCmd from './commands/enable-email-mfa'; import enableSmsMfaCmd from './commands/enable-sms-mfa'; import enableTotpCmd from './commands/enable-totp'; +import ensureAuthCsrfCmd from './commands/ensure-auth-csrf'; +import exchangeNativeHandoffCmd from './commands/exchange-native-handoff'; import extendTokenExpiresCmd from './commands/extend-token-expires'; import forgotPasswordCmd from './commands/forgot-password'; import generateBackupCodesCmd from './commands/generate-backup-codes'; @@ -54,6 +58,7 @@ import mintAccessTokenCmd from './commands/mint-access-token'; import provisionBucketCmd from './commands/provision-bucket'; import refreshAccessTokenCmd from './commands/refresh-access-token'; import requestCrossOriginTokenCmd from './commands/request-cross-origin-token'; +import requestDeviceApprovalCmd from './commands/request-device-approval'; import requestMagicLinkCmd from './commands/request-magic-link'; import resetPasswordCmd from './commands/reset-password'; import revokeApiKeyCmd from './commands/revoke-api-key'; @@ -113,6 +118,7 @@ const createCommandMap: () => Record< 'current-user-id': currentUserIdCmd, 'get-mfa-status': getMfaStatusCmd, 'require-step-up': requireStepUpCmd, + 'sign-in-options': signInOptionsCmd, 'approve-device': approveDeviceCmd, 'check-password': checkPasswordCmd, 'complete-mfa-challenge': completeMfaChallengeCmd, @@ -122,6 +128,7 @@ const createCommandMap: () => Record< 'create-child-principal': createChildPrincipalCmd, 'create-org-api-key': createOrgApiKeyCmd, 'create-org-principal': createOrgPrincipalCmd, + 'create-principal': createPrincipalCmd, 'create-principal-from-preset': createPrincipalFromPresetCmd, 'delete-org-principal': deleteOrgPrincipalCmd, 'delete-principal': deletePrincipalCmd, @@ -132,6 +139,8 @@ const createCommandMap: () => Record< 'enable-email-mfa': enableEmailMfaCmd, 'enable-sms-mfa': enableSmsMfaCmd, 'enable-totp': enableTotpCmd, + 'ensure-auth-csrf': ensureAuthCsrfCmd, + 'exchange-native-handoff': exchangeNativeHandoffCmd, 'extend-token-expires': extendTokenExpiresCmd, 'forgot-password': forgotPasswordCmd, 'generate-backup-codes': generateBackupCodesCmd, @@ -140,6 +149,7 @@ const createCommandMap: () => Record< 'provision-bucket': provisionBucketCmd, 'refresh-access-token': refreshAccessTokenCmd, 'request-cross-origin-token': requestCrossOriginTokenCmd, + 'request-device-approval': requestDeviceApprovalCmd, 'request-magic-link': requestMagicLinkCmd, 'reset-password': resetPasswordCmd, 'revoke-api-key': revokeApiKeyCmd, @@ -170,7 +180,7 @@ const createCommandMap: () => Record< 'verify-totp': verifyTotpCmd, }); const usage = - "\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n audit-log-auth auditLogAuth CRUD operations\n crypto-address cryptoAddress CRUD operations\n email email CRUD operations\n identity-provider identityProvider CRUD operations\n org-api-key-list orgApiKeyList CRUD operations\n phone-number phoneNumber CRUD operations\n principal principal CRUD operations\n principal-entity principalEntity CRUD operations\n principal-scope-override principalScopeOverride CRUD operations\n role-type roleType CRUD operations\n user-connected-account userConnectedAccount CRUD operations\n user user CRUD operations\n user-setting userSetting CRUD operations\n user-settings-security userSettingsSecurity CRUD operations\n webauthn-credential webauthnCredential CRUD operations\n current-ip-address currentIpAddress\n current-user currentUser\n current-user-agent currentUserAgent\n current-user-id currentUserId\n get-mfa-status getMfaStatus\n require-step-up requireStepUp\n approve-device approveDevice\n check-password checkPassword\n complete-mfa-challenge completeMfaChallenge\n confirm-delete-account confirmDeleteAccount\n confirm-totp-setup confirmTotpSetup\n create-api-key createApiKey\n create-child-principal createChildPrincipal\n create-org-api-key createOrgApiKey\n create-org-principal createOrgPrincipal\n create-principal-from-preset createPrincipalFromPreset\n delete-org-principal deleteOrgPrincipal\n delete-principal deletePrincipal\n disable-email-mfa disableEmailMfa\n disable-sms-mfa disableSmsMfa\n disable-totp disableTotp\n disconnect-account disconnectAccount\n enable-email-mfa enableEmailMfa\n enable-sms-mfa enableSmsMfa\n enable-totp enableTotp\n extend-token-expires extendTokenExpires\n forgot-password forgotPassword\n generate-backup-codes generateBackupCodes\n link-identity linkIdentity\n mint-access-token mintAccessToken\n provision-bucket Reconcile an S3 bucket for a logical bucket in the database.\nRecords the request on the bucket row via RLS; the bucket's job\ntrigger then enqueues the same storage:provision_bucket job used on\nINSERT, and repeated requests collapse into one pending job. This is\nidempotent for an already-reconciled bucket; failures become GraphQL\nerrors.\n refresh-access-token refreshAccessToken\n request-cross-origin-token requestCrossOriginToken\n request-magic-link requestMagicLink\n reset-password resetPassword\n revoke-api-key revokeApiKey\n revoke-org-api-key revokeOrgApiKey\n revoke-session revokeSession\n send-account-deletion-email sendAccountDeletionEmail\n send-mfa-challenge-code sendMfaChallengeCode\n send-phone-verification-code sendPhoneVerificationCode\n send-sms-otp sendSmsOtp\n send-step-up-code sendStepUpCode\n send-verification-email sendVerificationEmail\n set-password setPassword\n set-principal-entities setPrincipalEntities\n set-principal-scope setPrincipalScope\n sign-in signIn\n sign-in-cross-origin signInCrossOrigin\n sign-in-magic-link signInMagicLink\n sign-in-sms-otp signInSmsOtp\n sign-out signOut\n sign-up signUp\n sign-up-magic-link signUpMagicLink\n sign-up-sms signUpSms\n update-principal updatePrincipal\n verify-email verifyEmail\n verify-password verifyPassword\n verify-phone verifyPhone\n verify-step-up-code verifyStepUpCode\n verify-totp verifyTotp\n\n --help, -h Show this help message\n --version, -v Show version\n"; + "\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n audit-log-auth auditLogAuth CRUD operations\n crypto-address cryptoAddress CRUD operations\n email email CRUD operations\n identity-provider identityProvider CRUD operations\n org-api-key-list orgApiKeyList CRUD operations\n phone-number phoneNumber CRUD operations\n principal principal CRUD operations\n principal-entity principalEntity CRUD operations\n principal-scope-override principalScopeOverride CRUD operations\n role-type roleType CRUD operations\n user-connected-account userConnectedAccount CRUD operations\n user user CRUD operations\n user-setting userSetting CRUD operations\n user-settings-security userSettingsSecurity CRUD operations\n webauthn-credential webauthnCredential CRUD operations\n current-ip-address currentIpAddress\n current-user currentUser\n current-user-agent currentUserAgent\n current-user-id currentUserId\n get-mfa-status getMfaStatus\n require-step-up requireStepUp\n sign-in-options signInOptions\n approve-device approveDevice\n check-password checkPassword\n complete-mfa-challenge completeMfaChallenge\n confirm-delete-account confirmDeleteAccount\n confirm-totp-setup confirmTotpSetup\n create-api-key Mint an API key for the current user; the plaintext key is returned once. access_level: full_access (default) or read_only. mfa_level: none (default) or verified; verified needs a fresh MFA proof on the calling session. A key minted while authenticated by another API key never outlives that key.\n create-child-principal createChildPrincipal\n create-org-api-key createOrgApiKey\n create-org-principal createOrgPrincipal\n create-principal createPrincipal\n create-principal-from-preset createPrincipalFromPreset\n delete-org-principal deleteOrgPrincipal\n delete-principal deletePrincipal\n disable-email-mfa disableEmailMfa\n disable-sms-mfa disableSmsMfa\n disable-totp disableTotp\n disconnect-account disconnectAccount\n enable-email-mfa enableEmailMfa\n enable-sms-mfa enableSmsMfa\n enable-totp enableTotp\n ensure-auth-csrf ensureAuthCsrf\n exchange-native-handoff exchangeNativeHandoff\n extend-token-expires extendTokenExpires\n forgot-password forgotPassword\n generate-backup-codes generateBackupCodes\n link-identity linkIdentity\n mint-access-token mintAccessToken\n provision-bucket Reconcile an S3 bucket for a logical bucket in the database.\nRecords the request on the bucket row via RLS; the bucket's job\ntrigger then enqueues the same storage:provision_bucket job used on\nINSERT, and repeated requests collapse into one pending job. This is\nidempotent for an already-reconciled bucket; failures become GraphQL\nerrors.\n refresh-access-token refreshAccessToken\n request-cross-origin-token requestCrossOriginToken\n request-device-approval requestDeviceApproval\n request-magic-link requestMagicLink\n reset-password resetPassword\n revoke-api-key revokeApiKey\n revoke-org-api-key revokeOrgApiKey\n revoke-session revokeSession\n send-account-deletion-email sendAccountDeletionEmail\n send-mfa-challenge-code sendMfaChallengeCode\n send-phone-verification-code sendPhoneVerificationCode\n send-sms-otp sendSmsOtp\n send-step-up-code sendStepUpCode\n send-verification-email sendVerificationEmail\n set-password setPassword\n set-principal-entities setPrincipalEntities\n set-principal-scope setPrincipalScope\n sign-in signIn\n sign-in-cross-origin signInCrossOrigin\n sign-in-magic-link signInMagicLink\n sign-in-sms-otp signInSmsOtp\n sign-out signOut\n sign-up signUp\n sign-up-magic-link signUpMagicLink\n sign-up-sms signUpSms\n update-principal updatePrincipal\n verify-email verifyEmail\n verify-password verifyPassword\n verify-phone verifyPhone\n verify-step-up-code verifyStepUpCode\n verify-totp verifyTotp\n\n --help, -h Show this help message\n --version, -v Show version\n"; export const commands = async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-cli/src/auth/cli/commands/create-api-key.ts b/sdk/constructive-cli/src/auth/cli/commands/create-api-key.ts index 672db1229b..f16a3f4d4d 100644 --- a/sdk/constructive-cli/src/auth/cli/commands/create-api-key.ts +++ b/sdk/constructive-cli/src/auth/cli/commands/create-api-key.ts @@ -15,7 +15,9 @@ export default async ( ) => { try { if (argv.help || argv.h) { - console.log('create-api-key - createApiKey\n\nUsage: create-api-key [OPTIONS]\n'); + console.log( + 'create-api-key - Mint an API key for the current user; the plaintext key is returned once. access_level: full_access (default) or read_only. mfa_level: none (default) or verified; verified needs a fresh MFA proof on the calling session. A key minted while authenticated by another API key never outlives that key.\n\nUsage: create-api-key [OPTIONS]\n' + ); process.exit(0); } const answers = await prompter.prompt(argv, [ diff --git a/sdk/constructive-cli/src/auth/cli/commands/create-principal.ts b/sdk/constructive-cli/src/auth/cli/commands/create-principal.ts new file mode 100644 index 0000000000..02e185a1e8 --- /dev/null +++ b/sdk/constructive-cli/src/auth/cli/commands/create-principal.ts @@ -0,0 +1,51 @@ +/** + * CLI command for mutation createPrincipal + * @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 { CreatePrincipalVariables } from '../../orm/mutation'; +import type { CreatePrincipalPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log('create-principal - createPrincipal\n\nUsage: create-principal [OPTIONS]\n'); + process.exit(0); + } + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'input', + message: + 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', + required: true, + }, + ]); + const client = getClient(); + const parsedAnswers = unflattenDotNotation(answers); + const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); + const result = await client.mutation + .createPrincipal( + parsedAnswers as unknown as CreatePrincipalVariables, + { + select: selectFields, + } as unknown as { + select: CreatePrincipalPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: createPrincipal'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/auth/cli/commands/ensure-auth-csrf.ts b/sdk/constructive-cli/src/auth/cli/commands/ensure-auth-csrf.ts new file mode 100644 index 0000000000..3067ccb4ee --- /dev/null +++ b/sdk/constructive-cli/src/auth/cli/commands/ensure-auth-csrf.ts @@ -0,0 +1,51 @@ +/** + * CLI command for mutation ensureAuthCsrf + * @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 { EnsureAuthCsrfVariables } from '../../orm/mutation'; +import type { EnsureAuthCsrfPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log('ensure-auth-csrf - ensureAuthCsrf\n\nUsage: ensure-auth-csrf [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 + .ensureAuthCsrf( + parsedAnswers as unknown as EnsureAuthCsrfVariables, + { + select: selectFields, + } as unknown as { + select: EnsureAuthCsrfPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: ensureAuthCsrf'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/auth/cli/commands/exchange-native-handoff.ts b/sdk/constructive-cli/src/auth/cli/commands/exchange-native-handoff.ts new file mode 100644 index 0000000000..7b27cd8990 --- /dev/null +++ b/sdk/constructive-cli/src/auth/cli/commands/exchange-native-handoff.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation exchangeNativeHandoff + * @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 { ExchangeNativeHandoffVariables } from '../../orm/mutation'; +import type { ExchangeNativeHandoffPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'exchange-native-handoff - exchangeNativeHandoff\n\nUsage: exchange-native-handoff [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 + .exchangeNativeHandoff( + parsedAnswers as unknown as ExchangeNativeHandoffVariables, + { + select: selectFields, + } as unknown as { + select: ExchangeNativeHandoffPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: exchangeNativeHandoff'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/auth/cli/commands/identity-provider.ts b/sdk/constructive-cli/src/auth/cli/commands/identity-provider.ts index 27af14d3ed..b6f0e741d7 100644 --- a/sdk/constructive-cli/src/auth/cli/commands/identity-provider.ts +++ b/sdk/constructive-cli/src/auth/cli/commands/identity-provider.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateIdentityProviderInput, IdentityProviderPatch, IdentityProviderSelect, IdentityProviderFilter, @@ -39,7 +38,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -56,8 +55,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -111,62 +108,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'displayName', - message: 'displayName', - required: true, - }, - { - type: 'boolean', - name: 'enabled', - message: 'enabled', - required: true, - }, - { - type: 'text', - name: 'kind', - message: 'kind', - required: true, - }, - { - type: 'text', - name: 'slug', - message: 'slug', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateIdentityProviderInput['identityProvider']; - const client = getClient(); - const result = await client.identityProvider - .create({ - data: { - displayName: cleanedData.displayName, - enabled: cleanedData.enabled, - kind: cleanedData.kind, - slug: cleanedData.slug, - }, - select: { - displayName: true, - enabled: true, - kind: true, - slug: true, - }, - }) - .execute(); - console.log(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/auth/cli/commands/org-api-key-list.ts b/sdk/constructive-cli/src/auth/cli/commands/org-api-key-list.ts index dd56fa3f2c..d97afec410 100644 --- a/sdk/constructive-cli/src/auth/cli/commands/org-api-key-list.ts +++ b/sdk/constructive-cli/src/auth/cli/commands/org-api-key-list.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateOrgApiKeyListInput, OrgApiKeyListPatch, OrgApiKeyListSelect, OrgApiKeyListFilter, @@ -47,7 +46,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -64,8 +63,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -135,105 +132,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'accessLevel', - message: 'accessLevel', - required: true, - }, - { - type: 'text', - name: 'expiresAt', - message: 'expiresAt', - required: true, - }, - { - type: 'text', - name: 'keyId', - message: 'keyId', - required: true, - }, - { - type: 'text', - name: 'lastUsedAt', - message: 'lastUsedAt', - required: true, - }, - { - type: 'text', - name: 'mfaLevel', - message: 'mfaLevel', - required: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: true, - }, - { - type: 'text', - name: 'orgId', - message: 'orgId', - required: true, - }, - { - type: 'text', - name: 'principalId', - message: 'principalId', - required: true, - }, - { - type: 'text', - name: 'revokedAt', - message: 'revokedAt', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateOrgApiKeyListInput['orgApiKeyList']; - const client = getClient(); - const result = await client.orgApiKeyList - .create({ - data: { - accessLevel: cleanedData.accessLevel, - expiresAt: cleanedData.expiresAt, - keyId: cleanedData.keyId, - lastUsedAt: cleanedData.lastUsedAt, - mfaLevel: cleanedData.mfaLevel, - name: cleanedData.name, - orgId: cleanedData.orgId, - principalId: cleanedData.principalId, - revokedAt: cleanedData.revokedAt, - }, - select: { - accessLevel: true, - createdAt: true, - expiresAt: true, - id: true, - keyId: true, - lastUsedAt: true, - mfaLevel: true, - name: true, - orgId: true, - principalId: true, - revokedAt: 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/auth/cli/commands/principal-entity.ts b/sdk/constructive-cli/src/auth/cli/commands/principal-entity.ts index 4a8ac9da18..1b5170c3c8 100644 --- a/sdk/constructive-cli/src/auth/cli/commands/principal-entity.ts +++ b/sdk/constructive-cli/src/auth/cli/commands/principal-entity.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreatePrincipalEntityInput, PrincipalEntityPatch, PrincipalEntitySelect, PrincipalEntityFilter, @@ -41,7 +40,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -58,8 +57,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -117,57 +114,3 @@ async function handleFindFirst(argv: Partial>, _prompter 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: 'ownerId', - message: 'ownerId', - required: true, - }, - { - type: 'text', - name: 'principalId', - message: 'principalId', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreatePrincipalEntityInput['principalEntity']; - const client = getClient(); - const result = await client.principalEntity - .create({ - data: { - entityId: cleanedData.entityId, - ownerId: cleanedData.ownerId, - principalId: cleanedData.principalId, - }, - select: { - createdAt: true, - entityId: true, - id: true, - ownerId: true, - principalId: true, - updatedAt: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/auth/cli/commands/principal-scope-override.ts b/sdk/constructive-cli/src/auth/cli/commands/principal-scope-override.ts index 8a73f19ceb..7bf9c7fa55 100644 --- a/sdk/constructive-cli/src/auth/cli/commands/principal-scope-override.ts +++ b/sdk/constructive-cli/src/auth/cli/commands/principal-scope-override.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreatePrincipalScopeOverrideInput, PrincipalScopeOverridePatch, PrincipalScopeOverrideSelect, PrincipalScopeOverrideFilter, @@ -44,7 +43,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -61,8 +60,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -134,81 +131,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'allowedMask', - message: 'allowedMask', - required: true, - }, - { - type: 'boolean', - name: 'isActive', - message: 'isActive', - required: true, - }, - { - type: 'boolean', - name: 'isReadOnly', - message: 'isReadOnly', - required: true, - }, - { - type: 'text', - name: 'membershipType', - message: 'membershipType', - required: true, - }, - { - type: 'text', - name: 'principalId', - message: 'principalId', - required: true, - }, - { - type: 'boolean', - name: 'useAdminOwner', - message: 'useAdminOwner', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreatePrincipalScopeOverrideInput['principalScopeOverride']; - const client = getClient(); - const result = await client.principalScopeOverride - .create({ - data: { - allowedMask: cleanedData.allowedMask, - isActive: cleanedData.isActive, - isReadOnly: cleanedData.isReadOnly, - membershipType: cleanedData.membershipType, - principalId: cleanedData.principalId, - useAdminOwner: cleanedData.useAdminOwner, - }, - select: { - allowedMask: true, - createdAt: true, - id: true, - isActive: true, - isReadOnly: true, - membershipType: true, - principalId: true, - updatedAt: true, - useAdminOwner: true, - }, - }) - .execute(); - console.log(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/auth/cli/commands/principal.ts b/sdk/constructive-cli/src/auth/cli/commands/principal.ts index 18ddd25a25..d8b28e3c12 100644 --- a/sdk/constructive-cli/src/auth/cli/commands/principal.ts +++ b/sdk/constructive-cli/src/auth/cli/commands/principal.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreatePrincipalInput, PrincipalPatch, PrincipalSelect, PrincipalFilter, @@ -49,7 +48,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -66,8 +65,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -141,118 +138,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'apiKeyMaxDuration', - message: 'apiKeyMaxDuration', - required: true, - }, - { - type: 'boolean', - name: 'bypassStepUp', - message: 'bypassStepUp', - required: true, - }, - { - type: 'text', - name: 'createdBySessionId', - message: 'createdBySessionId', - required: true, - }, - { - type: 'text', - name: 'depth', - message: 'depth', - required: true, - }, - { - type: 'text', - name: 'expiresAt', - message: 'expiresAt', - required: true, - }, - { - type: 'boolean', - name: 'isReadOnly', - message: 'isReadOnly', - required: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: true, - }, - { - type: 'text', - name: 'ownerId', - message: 'ownerId', - required: true, - }, - { - type: 'text', - name: 'parentPrincipalId', - message: 'parentPrincipalId', - required: true, - }, - { - type: 'boolean', - name: 'useAdminOwner', - message: 'useAdminOwner', - required: true, - }, - { - type: 'text', - name: 'userId', - message: 'userId', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as CreatePrincipalInput['principal']; - const client = getClient(); - const result = await client.principal - .create({ - data: { - apiKeyMaxDuration: cleanedData.apiKeyMaxDuration, - bypassStepUp: cleanedData.bypassStepUp, - createdBySessionId: cleanedData.createdBySessionId, - depth: cleanedData.depth, - expiresAt: cleanedData.expiresAt, - isReadOnly: cleanedData.isReadOnly, - name: cleanedData.name, - ownerId: cleanedData.ownerId, - parentPrincipalId: cleanedData.parentPrincipalId, - useAdminOwner: cleanedData.useAdminOwner, - userId: cleanedData.userId, - }, - select: { - apiKeyMaxDuration: true, - bypassStepUp: true, - createdAt: true, - createdBySessionId: true, - depth: true, - expiresAt: true, - id: true, - isReadOnly: true, - name: true, - ownerId: true, - parentPrincipalId: true, - updatedAt: true, - useAdminOwner: true, - userId: true, - }, - }) - .execute(); - console.log(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/auth/cli/commands/request-device-approval.ts b/sdk/constructive-cli/src/auth/cli/commands/request-device-approval.ts new file mode 100644 index 0000000000..42bcfbcebc --- /dev/null +++ b/sdk/constructive-cli/src/auth/cli/commands/request-device-approval.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation requestDeviceApproval + * @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 { RequestDeviceApprovalVariables } from '../../orm/mutation'; +import type { RequestDeviceApprovalPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'request-device-approval - requestDeviceApproval\n\nUsage: request-device-approval [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 + .requestDeviceApproval( + parsedAnswers as unknown as RequestDeviceApprovalVariables, + { + select: selectFields, + } as unknown as { + select: RequestDeviceApprovalPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: requestDeviceApproval'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/api/cli/commands/api-schema-names.ts b/sdk/constructive-cli/src/auth/cli/commands/sign-in-options.ts similarity index 56% rename from sdk/constructive-cli/src/api/cli/commands/api-schema-names.ts rename to sdk/constructive-cli/src/auth/cli/commands/sign-in-options.ts index 5ab8637bb6..f2bd79f6d8 100644 --- a/sdk/constructive-cli/src/api/cli/commands/api-schema-names.ts +++ b/sdk/constructive-cli/src/auth/cli/commands/sign-in-options.ts @@ -1,11 +1,12 @@ /** - * CLI command for query apiSchemaNames + * CLI command for query signInOptions * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ import { CLIOptions, Inquirerer } from 'inquirerer'; import { getClient } from '../executor'; -import type { ApiSchemaNamesVariables } from '../../orm/query'; +import { buildSelectFromPaths } from '../utils'; +import type { SignInOptionsRecordSelect } from '../../orm/input-types'; export default async ( argv: Partial>, prompter: Inquirerer, @@ -13,23 +14,21 @@ export default async ( ) => { try { if (argv.help || argv.h) { - console.log('api-schema-names - apiSchemaNames\n\nUsage: api-schema-names [OPTIONS]\n'); + console.log('sign-in-options - signInOptions\n\nUsage: sign-in-options [OPTIONS]\n'); process.exit(0); } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'targetApiId', - message: 'targetApiId', - }, - ]); const client = getClient(); + const selectFields = buildSelectFromPaths((argv.select as string) ?? ''); const result = await client.query - .apiSchemaNames(answers as unknown as ApiSchemaNamesVariables) + .signInOptions({ + select: selectFields, + } as unknown as { + select: SignInOptionsRecordSelect; + }) .execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { - console.error('Failed: apiSchemaNames'); + console.error('Failed: signInOptions'); if (error instanceof Error) { console.error(error.message); } diff --git a/sdk/constructive-cli/src/auth/cli/commands/user-connected-account.ts b/sdk/constructive-cli/src/auth/cli/commands/user-connected-account.ts index 1aca163fb5..3652750f9e 100644 --- a/sdk/constructive-cli/src/auth/cli/commands/user-connected-account.ts +++ b/sdk/constructive-cli/src/auth/cli/commands/user-connected-account.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateUserConnectedAccountInput, UserConnectedAccountPatch, UserConnectedAccountSelect, UserConnectedAccountFilter, @@ -43,7 +42,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -60,8 +59,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -131,73 +128,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'json', - name: 'details', - message: 'details', - required: true, - }, - { - type: 'text', - name: 'identifier', - message: 'identifier', - required: true, - }, - { - type: 'boolean', - name: 'isVerified', - message: 'isVerified', - required: true, - }, - { - type: 'text', - name: 'ownerId', - message: 'ownerId', - required: true, - }, - { - type: 'text', - name: 'service', - message: 'service', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateUserConnectedAccountInput['userConnectedAccount']; - const client = getClient(); - const result = await client.userConnectedAccount - .create({ - data: { - details: cleanedData.details, - identifier: cleanedData.identifier, - isVerified: cleanedData.isVerified, - ownerId: cleanedData.ownerId, - service: cleanedData.service, - }, - select: { - createdAt: true, - details: true, - id: true, - identifier: true, - isVerified: true, - ownerId: true, - service: 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/auth/cli/commands/user.ts b/sdk/constructive-cli/src/auth/cli/commands/user.ts index 17123dc0e9..1e8a574e6d 100644 --- a/sdk/constructive-cli/src/auth/cli/commands/user.ts +++ b/sdk/constructive-cli/src/auth/cli/commands/user.ts @@ -21,6 +21,8 @@ const fieldSchema: FieldSchema = { displayNameTrgmSimilarity: 'float', id: 'uuid', profilePicture: 'string', + profilePictureUrl: 'string', + profilePictureVersions: 'string', searchScore: 'float', searchTsv: 'string', searchTsvRank: 'float', diff --git a/sdk/constructive-cli/src/auth/orm/README.md b/sdk/constructive-cli/src/auth/orm/README.md index 954a86ca4c..b40e577322 100644 --- a/sdk/constructive-cli/src/auth/orm/README.md +++ b/sdk/constructive-cli/src/auth/orm/README.md @@ -24,14 +24,14 @@ const db = createClient({ | `auditLogAuth` | findMany, findOne, create, update, delete | | `cryptoAddress` | findMany, findOne, create, update, delete | | `email` | findMany, findOne, create, update, delete | -| `identityProvider` | findMany, findOne, create, update, delete | -| `orgApiKeyList` | findMany, findOne, create, update, delete | +| `identityProvider` | findMany, findOne, update, delete | +| `orgApiKeyList` | findMany, findOne, update, delete | | `phoneNumber` | findMany, findOne, create, update, delete | -| `principal` | findMany, findOne, create, update, delete | -| `principalEntity` | findMany, findOne, create, update, delete | -| `principalScopeOverride` | findMany, findOne, create, update, delete | +| `principal` | findMany, findOne, update, delete | +| `principalEntity` | findMany, findOne, update, delete | +| `principalScopeOverride` | findMany, findOne, update, delete | | `roleType` | findMany, findOne, create, update, delete | -| `userConnectedAccount` | findMany, findOne, create, update, delete | +| `userConnectedAccount` | findMany, findOne, update, delete | | `user` | findMany, findOne, create, update, delete | | `userSetting` | findMany, findOne, create, update, delete | | `userSettingsSecurity` | findMany, findOne, create, update, delete | @@ -170,9 +170,6 @@ const items = await db.identityProvider.findMany({ select: { displayName: true, // Get one by id const item = await db.identityProvider.findOne({ id: '', select: { displayName: true, enabled: true, kind: true, slug: true } }).execute(); -// Create -const created = await db.identityProvider.create({ data: { displayName: '', enabled: '', kind: '', slug: '' }, select: { id: true } }).execute(); - // Update const updated = await db.identityProvider.update({ where: { id: '' }, data: { displayName: '' }, select: { id: true } }).execute(); @@ -210,9 +207,6 @@ const items = await db.orgApiKeyList.findMany({ select: { accessLevel: true, cre // Get one by id const item = await db.orgApiKeyList.findOne({ id: '', select: { accessLevel: true, createdAt: true, expiresAt: true, id: true, keyId: true, lastUsedAt: true, mfaLevel: true, name: true, orgId: true, principalId: true, revokedAt: true, updatedAt: true } }).execute(); -// Create -const created = await db.orgApiKeyList.create({ data: { accessLevel: '', expiresAt: '', keyId: '', lastUsedAt: '', mfaLevel: '', name: '', orgId: '', principalId: '', revokedAt: '' }, select: { id: true } }).execute(); - // Update const updated = await db.orgApiKeyList.update({ where: { id: '' }, data: { accessLevel: '' }, select: { id: true } }).execute(); @@ -289,9 +283,6 @@ const items = await db.principal.findMany({ select: { apiKeyMaxDuration: true, b // Get one by principalId const item = await db.principal.findOne({ principalId: '', select: { apiKeyMaxDuration: true, bypassStepUp: true, createdAt: true, createdBySessionId: true, depth: true, expiresAt: true, id: true, isReadOnly: true, name: true, ownerId: true, parentPrincipalId: true, updatedAt: true, useAdminOwner: true, userId: true } }).execute(); -// Create -const created = await db.principal.create({ data: { apiKeyMaxDuration: '', bypassStepUp: '', createdBySessionId: '', depth: '', expiresAt: '', id: '', isReadOnly: '', name: '', ownerId: '', parentPrincipalId: '', useAdminOwner: '', userId: '' }, select: { principalId: true } }).execute(); - // Update const updated = await db.principal.update({ where: { principalId: '' }, data: { apiKeyMaxDuration: '' }, select: { principalId: true } }).execute(); @@ -323,9 +314,6 @@ const items = await db.principalEntity.findMany({ select: { createdAt: true, ent // Get one by id const item = await db.principalEntity.findOne({ id: '', select: { createdAt: true, entityId: true, id: true, ownerId: true, principalId: true, updatedAt: true } }).execute(); -// Create -const created = await db.principalEntity.create({ data: { entityId: '', ownerId: '', principalId: '' }, select: { id: true } }).execute(); - // Update const updated = await db.principalEntity.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); @@ -360,9 +348,6 @@ const items = await db.principalScopeOverride.findMany({ select: { allowedMask: // Get one by id const item = await db.principalScopeOverride.findOne({ id: '', select: { allowedMask: true, createdAt: true, id: true, isActive: true, isReadOnly: true, membershipType: true, principalId: true, updatedAt: true, useAdminOwner: true } }).execute(); -// Create -const created = await db.principalScopeOverride.create({ data: { allowedMask: '', isActive: '', isReadOnly: '', membershipType: '', principalId: '', useAdminOwner: '' }, select: { id: true } }).execute(); - // Update const updated = await db.principalScopeOverride.update({ where: { id: '' }, data: { allowedMask: '' }, select: { id: true } }).execute(); @@ -426,9 +411,6 @@ const items = await db.userConnectedAccount.findMany({ select: { createdAt: true // Get one by id const item = await db.userConnectedAccount.findOne({ id: '', select: { createdAt: true, details: true, id: true, identifier: true, isVerified: true, ownerId: true, service: true, updatedAt: true } }).execute(); -// Create -const created = await db.userConnectedAccount.create({ data: { details: '', identifier: '', isVerified: '', ownerId: '', service: '' }, select: { id: true } }).execute(); - // Update const updated = await db.userConnectedAccount.update({ where: { id: '' }, data: { details: '' }, select: { id: true } }).execute(); @@ -449,6 +431,8 @@ CRUD operations for User records. | `displayNameTrgmSimilarity` | Float | Yes | | `id` | UUID | No | | `profilePicture` | ConstructiveInternalTypeImage | Yes | +| `profilePictureUrl` | String | Yes | +| `profilePictureVersions` | FileVersion | Yes | | `searchScore` | Float | Yes | | `searchTsv` | FullText | Yes | | `searchTsvRank` | Float | Yes | @@ -460,13 +444,13 @@ CRUD operations for User records. ```typescript // List all user records -const items = await db.user.findMany({ select: { createdAt: true, displayName: true, displayNameTrgmSimilarity: true, id: true, profilePicture: true, searchScore: true, searchTsv: true, searchTsvRank: true, type: true, updatedAt: true, username: true } }).execute(); +const items = await db.user.findMany({ select: { createdAt: true, displayName: true, displayNameTrgmSimilarity: true, id: true, profilePicture: true, profilePictureUrl: true, profilePictureVersions: true, searchScore: true, searchTsv: true, searchTsvRank: true, type: true, updatedAt: true, username: true } }).execute(); // Get one by id -const item = await db.user.findOne({ id: '', select: { createdAt: true, displayName: true, displayNameTrgmSimilarity: true, id: true, profilePicture: true, searchScore: true, searchTsv: true, searchTsvRank: true, type: true, updatedAt: true, username: true } }).execute(); +const item = await db.user.findOne({ id: '', select: { createdAt: true, displayName: true, displayNameTrgmSimilarity: true, id: true, profilePicture: true, profilePictureUrl: true, profilePictureVersions: true, searchScore: true, searchTsv: true, searchTsvRank: true, type: true, updatedAt: true, username: true } }).execute(); // Create -const created = await db.user.create({ data: { displayName: '', displayNameTrgmSimilarity: '', profilePicture: '', searchScore: '', searchTsv: '', searchTsvRank: '', type: '', username: '' }, select: { id: true } }).execute(); +const created = await db.user.create({ data: { displayName: '', displayNameTrgmSimilarity: '', profilePicture: '', profilePictureUrl: '', profilePictureVersions: '', searchScore: '', searchTsv: '', searchTsvRank: '', type: '', username: '' }, select: { id: true } }).execute(); // Update const updated = await db.user.update({ where: { id: '' }, data: { displayName: '' }, select: { id: true } }).execute(); @@ -662,6 +646,17 @@ requireStepUp const result = await db.query.requireStepUp({ stepUpType: '' }).execute(); ``` +### `db.query.signInOptions` + +signInOptions + +- **Type:** query +- **Arguments:** none + +```typescript +const result = await db.query.signInOptions().execute(); +``` + ### `db.mutation.approveDevice` approveDevice @@ -739,7 +734,7 @@ const result = await db.mutation.confirmTotpSetup({ input: { totpValue: '', isReadOnly: '', name: '', orgId: '', useAdminOwner: '' } }).execute(); ``` +### `db.mutation.createPrincipal` + +createPrincipal + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CreatePrincipalInput (required) | + +```typescript +const result = await db.mutation.createPrincipal({ input: { bypassStepUp: '', entityIds: '', isReadOnly: '', name: '', useAdminOwner: '' } }).execute(); +``` + ### `db.mutation.createPrincipalFromPreset` createPrincipalFromPreset @@ -947,6 +957,36 @@ enableTotp const result = await db.mutation.enableTotp({ input: '' }).execute(); ``` +### `db.mutation.ensureAuthCsrf` + +ensureAuthCsrf + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | EnsureAuthCsrfInput (required) | + +```typescript +const result = await db.mutation.ensureAuthCsrf({ input: { existingToken: '' } }).execute(); +``` + +### `db.mutation.exchangeNativeHandoff` + +exchangeNativeHandoff + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ExchangeNativeHandoffInput (required) | + +```typescript +const result = await db.mutation.exchangeNativeHandoff({ input: { code: '', codeVerifier: '', credentialKind: '' } }).execute(); +``` + ### `db.mutation.extendTokenExpires` extendTokenExpires @@ -1072,6 +1112,21 @@ requestCrossOriginToken const result = await db.mutation.requestCrossOriginToken({ input: { email: '', origin: '', password: '', rememberMe: '' } }).execute(); ``` +### `db.mutation.requestDeviceApproval` + +requestDeviceApproval + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | RequestDeviceApprovalInput (required) | + +```typescript +const result = await db.mutation.requestDeviceApproval({ input: { deviceToken: '', next: '', userId: '' } }).execute(); +``` + ### `db.mutation.requestMagicLink` requestMagicLink @@ -1084,7 +1139,7 @@ requestMagicLink | `input` | RequestMagicLinkInput (required) | ```typescript -const result = await db.mutation.requestMagicLink({ input: { email: '', next: '' } }).execute(); +const result = await db.mutation.requestMagicLink({ input: { codeChallenge: '', email: '', nativeRedirectUri: '', next: '' } }).execute(); ``` ### `db.mutation.resetPassword` @@ -1249,7 +1304,7 @@ setPassword | `input` | SetPasswordInput (required) | ```typescript -const result = await db.mutation.setPassword({ input: { currentPassword: '', newPassword: '' } }).execute(); +const result = await db.mutation.setPassword({ input: { currentPassword: '', newPassword: '', signOutOtherSessions: '' } }).execute(); ``` ### `db.mutation.setPrincipalEntities` @@ -1429,7 +1484,7 @@ verifyEmail | `input` | VerifyEmailInput (required) | ```typescript -const result = await db.mutation.verifyEmail({ input: { emailId: '', token: '' } }).execute(); +const result = await db.mutation.verifyEmail({ input: { emailId: '', password: '', token: '' } }).execute(); ``` ### `db.mutation.verifyPassword` diff --git a/sdk/constructive-cli/src/auth/orm/input-types.ts b/sdk/constructive-cli/src/auth/orm/input-types.ts index f1489beef6..f46e6397da 100644 --- a/sdk/constructive-cli/src/auth/orm/input-types.ts +++ b/sdk/constructive-cli/src/auth/orm/input-types.ts @@ -235,6 +235,7 @@ export type Base64EncodedBinary = unknown; export type ConstructiveInternalTypeEmail = unknown; export type ConstructiveInternalTypeImage = unknown; export type ConstructiveInternalTypeOrigin = unknown; +export type FileVersion = unknown; /** Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) */ // ============ Entity Types ============ export interface AuditLogAuth { @@ -402,6 +403,10 @@ export interface User { displayNameTrgmSimilarity?: number | null; id: string; profilePicture?: ConstructiveInternalTypeImage | null; + /** URL to fetch `profilePicture`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + profilePictureUrl?: string | null; + /** The versions rendered beside `profilePicture`, narrowest first, each with a URL. Empty when there are none. */ + profilePictureVersions?: FileVersion[] | null; /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ searchScore?: number | null; searchTsv?: string | null; @@ -718,6 +723,13 @@ export type UserSelect = { displayNameTrgmSimilarity?: boolean; id?: boolean; profilePicture?: boolean; + profilePictureUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + profilePictureVersions?: boolean; searchScore?: boolean; searchTsv?: boolean; searchTsvRank?: boolean; @@ -1678,15 +1690,6 @@ export interface DeleteEmailInput { clientMutationId?: string; id: string; } -export interface CreateIdentityProviderInput { - clientMutationId?: string; - identityProvider: { - displayName?: string; - enabled?: boolean; - kind?: string; - slug?: string; - }; -} export interface IdentityProviderPatch { displayName?: string | null; enabled?: boolean | null; @@ -1702,20 +1705,6 @@ export interface DeleteIdentityProviderInput { clientMutationId?: string; id: string; } -export interface CreateOrgApiKeyListInput { - clientMutationId?: string; - orgApiKeyList: { - accessLevel?: string; - expiresAt?: string; - keyId: string; - lastUsedAt?: string; - mfaLevel?: string; - name?: string; - orgId: string; - principalId: string; - revokedAt?: string; - }; -} export interface OrgApiKeyListPatch { accessLevel?: string | null; expiresAt?: string | null; @@ -1764,22 +1753,6 @@ export interface DeletePhoneNumberInput { clientMutationId?: string; id: string; } -export interface CreatePrincipalInput { - clientMutationId?: string; - principal: { - apiKeyMaxDuration?: string; - bypassStepUp?: boolean; - createdBySessionId: string; - depth?: number; - expiresAt?: string; - isReadOnly?: boolean; - name?: string; - ownerId: string; - parentPrincipalId: string; - useAdminOwner?: boolean; - userId: string; - }; -} export interface PrincipalPatch { apiKeyMaxDuration?: string | null; bypassStepUp?: boolean | null; @@ -1802,14 +1775,6 @@ export interface DeletePrincipalInput { clientMutationId?: string; principalId: string; } -export interface CreatePrincipalEntityInput { - clientMutationId?: string; - principalEntity: { - entityId: string; - ownerId: string; - principalId: string; - }; -} export interface PrincipalEntityPatch { entityId?: string | null; ownerId?: string | null; @@ -1824,17 +1789,6 @@ export interface DeletePrincipalEntityInput { clientMutationId?: string; id: string; } -export interface CreatePrincipalScopeOverrideInput { - clientMutationId?: string; - principalScopeOverride: { - allowedMask?: string; - isActive?: boolean; - isReadOnly?: boolean; - membershipType?: number; - principalId: string; - useAdminOwner?: boolean; - }; -} export interface PrincipalScopeOverridePatch { allowedMask?: string | null; isActive?: boolean | null; @@ -1870,16 +1824,6 @@ export interface DeleteRoleTypeInput { clientMutationId?: string; id: number; } -export interface CreateUserConnectedAccountInput { - clientMutationId?: string; - userConnectedAccount: { - details?: Record; - identifier?: string; - isVerified?: boolean; - ownerId: string; - service?: string; - }; -} export interface UserConnectedAccountPatch { details?: Record | null; identifier?: string | null; @@ -1908,7 +1852,6 @@ export interface CreateUserInput { export interface UserPatch { displayName?: string | null; profilePicture?: ConstructiveInternalTypeImage | null; - profilePictureUpload?: File | null; type?: number | null; username?: string | null; } @@ -2088,6 +2031,14 @@ export interface CreateOrgPrincipalInput { orgId?: string; useAdminOwner?: boolean; } +export interface CreatePrincipalInput { + bypassStepUp?: boolean; + clientMutationId?: string; + entityIds?: string[]; + isReadOnly?: boolean; + name?: string; + useAdminOwner?: boolean; +} export interface CreatePrincipalFromPresetInput { clientMutationId?: string; entityIds?: string[]; @@ -2122,6 +2073,16 @@ export interface EnableSmsMfaInput { export interface EnableTotpInput { clientMutationId?: string; } +export interface EnsureAuthCsrfInput { + clientMutationId?: string; + existingToken?: string; +} +export interface ExchangeNativeHandoffInput { + clientMutationId?: string; + code?: string; + codeVerifier?: string; + credentialKind?: string; +} export interface ExtendTokenExpiresInput { amount?: IntervalInput; clientMutationId?: string; @@ -2135,7 +2096,7 @@ export interface GenerateBackupCodesInput { } export interface LinkIdentityInput { clientMutationId?: string; - ticket: string; + ticket?: string; } export interface MintAccessTokenInput { accessTtl?: IntervalInput; @@ -2163,9 +2124,17 @@ export interface RequestCrossOriginTokenInput { password?: string; rememberMe?: boolean; } +export interface RequestDeviceApprovalInput { + clientMutationId?: string; + deviceToken?: string; + next?: string; + userId?: string; +} export interface RequestMagicLinkInput { clientMutationId?: string; + codeChallenge?: string; email?: string; + nativeRedirectUri?: string; next?: string; } export interface ResetPasswordInput { @@ -2216,6 +2185,7 @@ export interface SetPasswordInput { clientMutationId?: string; currentPassword?: string; newPassword?: string; + signOutOtherSessions?: boolean; } export interface SetPrincipalEntitiesInput { clientMutationId?: string; @@ -2290,6 +2260,7 @@ export interface SignUpSmsInput { export interface VerifyEmailInput { clientMutationId?: string; emailId?: string; + password?: string; token?: string; } export interface VerifyPasswordInput { @@ -3644,6 +3615,46 @@ export type GetMfaStatusRecordSelect = { smsMfaEnabled?: boolean; totpEnabled?: boolean; }; +export interface SignInOptionsRecord { + allowAnonymousSessions?: boolean | null; + allowEmailOtpSignIn?: boolean | null; + allowIdentitySignIn?: boolean | null; + allowIdentitySignUp?: boolean | null; + allowMagicLinkSignIn?: boolean | null; + allowMagicLinkSignUp?: boolean | null; + allowPasswordSignIn?: boolean | null; + allowPasswordSignUp?: boolean | null; + allowSignUp?: boolean | null; + allowSmsSignIn?: boolean | null; + allowSmsSignUp?: boolean | null; + allowWebauthnSignIn?: boolean | null; + allowWebauthnSignUp?: boolean | null; + allowWebauthnUsernameless?: boolean | null; + enableCaptcha?: boolean | null; + identityProviders?: Record | null; + requireMfa?: boolean | null; + signUpRequiresInvite?: boolean | null; +} +export type SignInOptionsRecordSelect = { + allowAnonymousSessions?: boolean; + allowEmailOtpSignIn?: boolean; + allowIdentitySignIn?: boolean; + allowIdentitySignUp?: boolean; + allowMagicLinkSignIn?: boolean; + allowMagicLinkSignUp?: boolean; + allowPasswordSignIn?: boolean; + allowPasswordSignUp?: boolean; + allowSignUp?: boolean; + allowSmsSignIn?: boolean; + allowSmsSignUp?: boolean; + allowWebauthnSignIn?: boolean; + allowWebauthnSignUp?: boolean; + allowWebauthnUsernameless?: boolean; + enableCaptcha?: boolean; + identityProviders?: boolean; + requireMfa?: boolean; + signUpRequiresInvite?: boolean; +}; export interface ApproveDevicePayload { clientMutationId?: string | null; result?: boolean | null; @@ -3720,6 +3731,14 @@ export type CreateOrgPrincipalPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface CreatePrincipalPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type CreatePrincipalPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface CreatePrincipalFromPresetPayload { clientMutationId?: string | null; result?: string | null; @@ -3800,6 +3819,24 @@ export type EnableTotpPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface EnsureAuthCsrfPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type EnsureAuthCsrfPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ExchangeNativeHandoffPayload { + clientMutationId?: string | null; + result?: ExchangeNativeHandoffRecord | null; +} +export type ExchangeNativeHandoffPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: ExchangeNativeHandoffRecordSelect; + }; +}; export interface ExtendTokenExpiresPayload { clientMutationId?: string | null; result?: ExtendTokenExpiresRecord[] | null; @@ -3875,6 +3912,14 @@ export type RequestCrossOriginTokenPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface RequestDeviceApprovalPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type RequestDeviceApprovalPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface RequestMagicLinkPayload { clientMutationId?: string | null; } @@ -4285,14 +4330,6 @@ export type DeletePhoneNumberPayloadSelect = { select: PhoneNumberEdgeSelect; }; }; -export interface CreatePrincipalPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type CreatePrincipalPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; export interface CreateRoleTypePayload { clientMutationId?: string | null; /** The `RoleType` that was created by this mutation. */ @@ -4556,6 +4593,22 @@ export type CreateOrgApiKeyRecordSelect = { expiresAt?: boolean; keyId?: boolean; }; +export interface ExchangeNativeHandoffRecord { + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + id?: string | null; + isVerified?: boolean | null; + totpEnabled?: boolean | null; + userId?: string | null; +} +export type ExchangeNativeHandoffRecordSelect = { + accessToken?: boolean; + accessTokenExpiresAt?: boolean; + id?: boolean; + isVerified?: boolean; + totpEnabled?: boolean; + userId?: boolean; +}; export interface ExtendTokenExpiresRecord { expiresAt?: string | null; id?: string | null; @@ -4643,18 +4696,22 @@ export type SignInCrossOriginRecordSelect = { export interface SignInMagicLinkRecord { accessToken?: string | null; accessTokenExpiresAt?: string | null; + codeChallenge?: string | null; deviceApprovalRequired?: boolean | null; mfaChallengeToken?: string | null; mfaRequired?: boolean | null; + nativeRedirectUri?: string | null; outDeviceToken?: string | null; userId?: string | null; } export type SignInMagicLinkRecordSelect = { accessToken?: boolean; accessTokenExpiresAt?: boolean; + codeChallenge?: boolean; deviceApprovalRequired?: boolean; mfaChallengeToken?: boolean; mfaRequired?: boolean; + nativeRedirectUri?: boolean; outDeviceToken?: boolean; userId?: boolean; }; @@ -4679,12 +4736,16 @@ export type SignInSmsOtpRecordSelect = { export interface SignUpMagicLinkRecord { accessToken?: string | null; accessTokenExpiresAt?: string | null; + codeChallenge?: string | null; + nativeRedirectUri?: string | null; outDeviceToken?: string | null; userId?: string | null; } export type SignUpMagicLinkRecordSelect = { accessToken?: boolean; accessTokenExpiresAt?: boolean; + codeChallenge?: boolean; + nativeRedirectUri?: boolean; outDeviceToken?: boolean; userId?: boolean; }; diff --git a/sdk/constructive-cli/src/auth/orm/models/identityProvider.ts b/sdk/constructive-cli/src/auth/orm/models/identityProvider.ts index cdc672145c..fde90fea4b 100644 --- a/sdk/constructive-cli/src/auth/orm/models/identityProvider.ts +++ b/sdk/constructive-cli/src/auth/orm/models/identityProvider.ts @@ -29,7 +29,6 @@ import type { IdentityProviderSelect, IdentityProviderFilter, IdentityProviderOrderBy, - CreateIdentityProviderInput, UpdateIdentityProviderInput, IdentityProviderPatch, } from '../input-types'; @@ -104,31 +103,4 @@ export class IdentityProviderModel { }), }); } - 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/auth/orm/models/orgApiKeyList.ts b/sdk/constructive-cli/src/auth/orm/models/orgApiKeyList.ts index fe7120ee8a..4c7c4cee0a 100644 --- a/sdk/constructive-cli/src/auth/orm/models/orgApiKeyList.ts +++ b/sdk/constructive-cli/src/auth/orm/models/orgApiKeyList.ts @@ -29,7 +29,6 @@ import type { OrgApiKeyListSelect, OrgApiKeyListFilter, OrgApiKeyListOrderBy, - CreateOrgApiKeyListInput, UpdateOrgApiKeyListInput, OrgApiKeyListPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class OrgApiKeyListModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgApiKeyList: { - orgApiKeyList: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgApiKeyList', - 'createOrgApiKeyList', - 'orgApiKeyList', - args.select, - args.data, - 'CreateOrgApiKeyListInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgApiKeyList', - fieldName: 'createOrgApiKeyList', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/auth/orm/models/principal.ts b/sdk/constructive-cli/src/auth/orm/models/principal.ts index 05e5aa400c..ff1e4994ed 100644 --- a/sdk/constructive-cli/src/auth/orm/models/principal.ts +++ b/sdk/constructive-cli/src/auth/orm/models/principal.ts @@ -29,7 +29,6 @@ import type { PrincipalSelect, PrincipalFilter, PrincipalOrderBy, - CreatePrincipalInput, UpdatePrincipalInput, PrincipalPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class PrincipalModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPrincipal: { - principal: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'Principal', - 'createPrincipal', - 'principal', - args.select, - args.data, - 'CreatePrincipalInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Principal', - fieldName: 'createPrincipal', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/auth/orm/models/principalEntity.ts b/sdk/constructive-cli/src/auth/orm/models/principalEntity.ts index 516e110743..580fbe4f6f 100644 --- a/sdk/constructive-cli/src/auth/orm/models/principalEntity.ts +++ b/sdk/constructive-cli/src/auth/orm/models/principalEntity.ts @@ -29,7 +29,6 @@ import type { PrincipalEntitySelect, PrincipalEntityFilter, PrincipalEntityOrderBy, - CreatePrincipalEntityInput, UpdatePrincipalEntityInput, PrincipalEntityPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class PrincipalEntityModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPrincipalEntity: { - principalEntity: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PrincipalEntity', - 'createPrincipalEntity', - 'principalEntity', - args.select, - args.data, - 'CreatePrincipalEntityInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PrincipalEntity', - fieldName: 'createPrincipalEntity', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/auth/orm/models/principalScopeOverride.ts b/sdk/constructive-cli/src/auth/orm/models/principalScopeOverride.ts index 3d3e7bedd3..fb315ec75c 100644 --- a/sdk/constructive-cli/src/auth/orm/models/principalScopeOverride.ts +++ b/sdk/constructive-cli/src/auth/orm/models/principalScopeOverride.ts @@ -29,7 +29,6 @@ import type { PrincipalScopeOverrideSelect, PrincipalScopeOverrideFilter, PrincipalScopeOverrideOrderBy, - CreatePrincipalScopeOverrideInput, UpdatePrincipalScopeOverrideInput, PrincipalScopeOverridePatch, } from '../input-types'; @@ -146,31 +145,4 @@ export class PrincipalScopeOverrideModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPrincipalScopeOverride: { - principalScopeOverride: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PrincipalScopeOverride', - 'createPrincipalScopeOverride', - 'principalScopeOverride', - args.select, - args.data, - 'CreatePrincipalScopeOverrideInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PrincipalScopeOverride', - fieldName: 'createPrincipalScopeOverride', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/auth/orm/models/userConnectedAccount.ts b/sdk/constructive-cli/src/auth/orm/models/userConnectedAccount.ts index a2344afdf4..8edfaf1d67 100644 --- a/sdk/constructive-cli/src/auth/orm/models/userConnectedAccount.ts +++ b/sdk/constructive-cli/src/auth/orm/models/userConnectedAccount.ts @@ -29,7 +29,6 @@ import type { UserConnectedAccountSelect, UserConnectedAccountFilter, UserConnectedAccountOrderBy, - CreateUserConnectedAccountInput, UpdateUserConnectedAccountInput, UserConnectedAccountPatch, } from '../input-types'; @@ -146,31 +145,4 @@ export class UserConnectedAccountModel { }), }); } - 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/auth/orm/mutation/index.ts b/sdk/constructive-cli/src/auth/orm/mutation/index.ts index 39394d78e4..eebc1bc3d7 100644 --- a/sdk/constructive-cli/src/auth/orm/mutation/index.ts +++ b/sdk/constructive-cli/src/auth/orm/mutation/index.ts @@ -16,6 +16,7 @@ import type { CreateChildPrincipalInput, CreateOrgApiKeyInput, CreateOrgPrincipalInput, + CreatePrincipalInput, CreatePrincipalFromPresetInput, DeleteOrgPrincipalInput, DeletePrincipalInput, @@ -26,6 +27,8 @@ import type { EnableEmailMfaInput, EnableSmsMfaInput, EnableTotpInput, + EnsureAuthCsrfInput, + ExchangeNativeHandoffInput, ExtendTokenExpiresInput, ForgotPasswordInput, GenerateBackupCodesInput, @@ -34,6 +37,7 @@ import type { ProvisionBucketInput, RefreshAccessTokenInput, RequestCrossOriginTokenInput, + RequestDeviceApprovalInput, RequestMagicLinkInput, ResetPasswordInput, RevokeApiKeyInput, @@ -71,6 +75,7 @@ import type { CreateChildPrincipalPayload, CreateOrgApiKeyPayload, CreateOrgPrincipalPayload, + CreatePrincipalPayload, CreatePrincipalFromPresetPayload, DeleteOrgPrincipalPayload, DeletePrincipalPayload, @@ -81,6 +86,8 @@ import type { EnableEmailMfaPayload, EnableSmsMfaPayload, EnableTotpPayload, + EnsureAuthCsrfPayload, + ExchangeNativeHandoffPayload, ExtendTokenExpiresPayload, ForgotPasswordPayload, GenerateBackupCodesPayload, @@ -89,6 +96,7 @@ import type { ProvisionBucketPayload, RefreshAccessTokenPayload, RequestCrossOriginTokenPayload, + RequestDeviceApprovalPayload, RequestMagicLinkPayload, ResetPasswordPayload, RevokeApiKeyPayload, @@ -126,6 +134,7 @@ import type { CreateChildPrincipalPayloadSelect, CreateOrgApiKeyPayloadSelect, CreateOrgPrincipalPayloadSelect, + CreatePrincipalPayloadSelect, CreatePrincipalFromPresetPayloadSelect, DeleteOrgPrincipalPayloadSelect, DeletePrincipalPayloadSelect, @@ -136,6 +145,8 @@ import type { EnableEmailMfaPayloadSelect, EnableSmsMfaPayloadSelect, EnableTotpPayloadSelect, + EnsureAuthCsrfPayloadSelect, + ExchangeNativeHandoffPayloadSelect, ExtendTokenExpiresPayloadSelect, ForgotPasswordPayloadSelect, GenerateBackupCodesPayloadSelect, @@ -144,6 +155,7 @@ import type { ProvisionBucketPayloadSelect, RefreshAccessTokenPayloadSelect, RequestCrossOriginTokenPayloadSelect, + RequestDeviceApprovalPayloadSelect, RequestMagicLinkPayloadSelect, ResetPasswordPayloadSelect, RevokeApiKeyPayloadSelect, @@ -189,6 +201,10 @@ export interface ConfirmDeleteAccountVariables { export interface ConfirmTotpSetupVariables { input: ConfirmTotpSetupInput; } +/** + * Variables for createApiKey + * Mint an API key for the current user; the plaintext key is returned once. access_level: full_access (default) or read_only. mfa_level: none (default) or verified; verified needs a fresh MFA proof on the calling session. A key minted while authenticated by another API key never outlives that key. + */ export interface CreateApiKeyVariables { input: CreateApiKeyInput; } @@ -201,6 +217,9 @@ export interface CreateOrgApiKeyVariables { export interface CreateOrgPrincipalVariables { input: CreateOrgPrincipalInput; } +export interface CreatePrincipalVariables { + input: CreatePrincipalInput; +} export interface CreatePrincipalFromPresetVariables { input: CreatePrincipalFromPresetInput; } @@ -231,6 +250,12 @@ export interface EnableSmsMfaVariables { export interface EnableTotpVariables { input: EnableTotpInput; } +export interface EnsureAuthCsrfVariables { + input: EnsureAuthCsrfInput; +} +export interface ExchangeNativeHandoffVariables { + input: ExchangeNativeHandoffInput; +} export interface ExtendTokenExpiresVariables { input: ExtendTokenExpiresInput; } @@ -264,6 +289,9 @@ export interface RefreshAccessTokenVariables { export interface RequestCrossOriginTokenVariables { input: RequestCrossOriginTokenInput; } +export interface RequestDeviceApprovalVariables { + input: RequestDeviceApprovalInput; +} export interface RequestMagicLinkVariables { input: RequestMagicLinkInput; } @@ -611,6 +639,35 @@ export function createMutationOperations(client: OrmClient) { 'CreateOrgPrincipalPayload' ), }), + createPrincipal: ( + args: CreatePrincipalVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + createPrincipal: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'CreatePrincipal', + fieldName: 'createPrincipal', + ...buildCustomDocument( + 'mutation', + 'CreatePrincipal', + 'createPrincipal', + options.select, + args, + [ + { + name: 'input', + type: 'CreatePrincipalInput!', + }, + ], + connectionFieldsMap, + 'CreatePrincipalPayload' + ), + }), createPrincipalFromPreset: ( args: CreatePrincipalFromPresetVariables, options: { @@ -901,6 +958,64 @@ export function createMutationOperations(client: OrmClient) { 'EnableTotpPayload' ), }), + ensureAuthCsrf: ( + args: EnsureAuthCsrfVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + ensureAuthCsrf: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'EnsureAuthCsrf', + fieldName: 'ensureAuthCsrf', + ...buildCustomDocument( + 'mutation', + 'EnsureAuthCsrf', + 'ensureAuthCsrf', + options.select, + args, + [ + { + name: 'input', + type: 'EnsureAuthCsrfInput!', + }, + ], + connectionFieldsMap, + 'EnsureAuthCsrfPayload' + ), + }), + exchangeNativeHandoff: ( + args: ExchangeNativeHandoffVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + exchangeNativeHandoff: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ExchangeNativeHandoff', + fieldName: 'exchangeNativeHandoff', + ...buildCustomDocument( + 'mutation', + 'ExchangeNativeHandoff', + 'exchangeNativeHandoff', + options.select, + args, + [ + { + name: 'input', + type: 'ExchangeNativeHandoffInput!', + }, + ], + connectionFieldsMap, + 'ExchangeNativeHandoffPayload' + ), + }), extendTokenExpires: ( args: ExtendTokenExpiresVariables, options: { @@ -1133,6 +1248,35 @@ export function createMutationOperations(client: OrmClient) { 'RequestCrossOriginTokenPayload' ), }), + requestDeviceApproval: ( + args: RequestDeviceApprovalVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + requestDeviceApproval: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'RequestDeviceApproval', + fieldName: 'requestDeviceApproval', + ...buildCustomDocument( + 'mutation', + 'RequestDeviceApproval', + 'requestDeviceApproval', + options.select, + args, + [ + { + name: 'input', + type: 'RequestDeviceApprovalInput!', + }, + ], + connectionFieldsMap, + 'RequestDeviceApprovalPayload' + ), + }), requestMagicLink: ( args: RequestMagicLinkVariables, options: { diff --git a/sdk/constructive-cli/src/auth/orm/query/index.ts b/sdk/constructive-cli/src/auth/orm/query/index.ts index 671fb80d21..aa77870a50 100644 --- a/sdk/constructive-cli/src/auth/orm/query/index.ts +++ b/sdk/constructive-cli/src/auth/orm/query/index.ts @@ -9,8 +9,10 @@ import type { InferSelectResult, StrictSelect } from '../select-types'; import type { User, GetMfaStatusRecord, + SignInOptionsRecord, UserSelect, GetMfaStatusRecordSelect, + SignInOptionsRecordSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; export interface RequireStepUpVariables { @@ -150,5 +152,28 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), + signInOptions: ( + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + signInOptions: InferSelectResult | null; + }>({ + client, + operation: 'query', + operationName: 'SignInOptions', + fieldName: 'signInOptions', + ...buildCustomDocument( + 'query', + 'SignInOptions', + 'signInOptions', + options.select, + undefined, + [], + connectionFieldsMap, + 'SignInOptionsRecord' + ), + }), }; } diff --git a/sdk/constructive-cli/src/compute/README.md b/sdk/constructive-cli/src/compute/README.md index 30ad39c3a3..1d27495a31 100644 --- a/sdk/constructive-cli/src/compute/README.md +++ b/sdk/constructive-cli/src/compute/README.md @@ -10,7 +10,7 @@ - **Tables:** 123 - **Custom queries:** 2 -- **Custom mutations:** 62 +- **Custom mutations:** 63 **Generators:** ORM, CLI diff --git a/sdk/constructive-cli/src/compute/cli/README.md b/sdk/constructive-cli/src/compute/cli/README.md index bd769d9599..ce04e93e69 100644 --- a/sdk/constructive-cli/src/compute/cli/README.md +++ b/sdk/constructive-cli/src/compute/cli/README.md @@ -28,7 +28,6 @@ csdk auth set-token | `config` | Manage config key-value store (per-context) | | `build` | build CRUD operations | | `build-step` | buildStep CRUD operations | -| `builder-binding` | builderBinding CRUD operations | | `content-preset` | contentPreset CRUD operations | | `database-function-graph` | databaseFunctionGraph CRUD operations | | `database-function-graph-execution-cancel-request` | databaseFunctionGraphExecutionCancelRequest CRUD operations | @@ -72,7 +71,6 @@ csdk auth set-token | `namespace-event` | namespaceEvent CRUD operations | | `platform-build` | platformBuild CRUD operations | | `platform-build-step` | platformBuildStep CRUD operations | -| `platform-builder-binding` | platformBuilderBinding CRUD operations | | `platform-function-api-binding` | platformFunctionApiBinding CRUD operations | | `platform-function-capability-binding` | platformFunctionCapabilityBinding CRUD operations | | `platform-function-definition` | platformFunctionDefinition CRUD operations | @@ -119,6 +117,7 @@ csdk auth set-token | `platform-resources-health` | platformResourcesHealth CRUD operations | | `platform-resources-requirements-state` | platformResourcesRequirementsState CRUD operations | | `platform-resources-resolved-requirement` | platformResourcesResolvedRequirement CRUD operations | +| `platform-service-binding` | platformServiceBinding CRUD operations | | `platform-webhook-endpoint` | platformWebhookEndpoint CRUD operations | | `platform-webhook-event` | platformWebhookEvent CRUD operations | | `proposal-comment` | proposalComment CRUD operations | @@ -147,6 +146,7 @@ csdk auth set-token | `resources-health` | resourcesHealth CRUD operations | | `resources-requirements-state` | resourcesRequirementsState CRUD operations | | `resources-resolved-requirement` | resourcesResolvedRequirement CRUD operations | +| `service-binding` | serviceBinding CRUD operations | | `webhook-endpoint` | webhookEndpoint CRUD operations | | `webhook-event` | webhookEvent CRUD operations | | `database-read-function-graph` | databaseReadFunctionGraph | @@ -157,6 +157,7 @@ csdk auth set-token | `add-node-and-save` | addNodeAndSave | | `approve-node` | approveNode | | `copy-graph` | copyGraph | +| `create-function-graph` | createFunctionGraph | | `database-add-edge` | databaseAddEdge | | `database-add-edge-and-save` | databaseAddEdgeAndSave | | `database-add-node` | databaseAddNode | @@ -290,6 +291,8 @@ CRUD operations for Build records. | `imageRef` | String | | `jobId` | BigInt | | `logs` | Upload | +| `logsUrl` | String | +| `logsVersions` | FileVersion | | `matrixKey` | String | | `metadata` | JSON | | `proposalId` | UUID | @@ -341,42 +344,6 @@ CRUD operations for BuildStep records. **Required create fields:** `buildId`, `name`, `seq` **Optional create fields (backend defaults):** `createdByPrincipal`, `exitCode`, `finishedAt`, `kind`, `logBytes`, `logOffset`, `parentSeq`, `recordedAt`, `startedAt`, `status`, `summary` -### `builder-binding` - -CRUD operations for BuilderBinding records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all builderBinding records | -| `find-first` | Find first matching builderBinding record | -| `get` | Get a builderBinding by id | -| `create` | Create a new builderBinding | -| `update` | Update an existing builderBinding | -| `delete` | Delete a builderBinding | - -**Fields:** - -| Field | Type | -|-------|------| -| `createdAt` | Datetime | -| `createdBy` | UUID | -| `createdByPrincipal` | UUID | -| `databaseId` | UUID | -| `id` | UUID | -| `installationId` | UUID | -| `lastError` | String | -| `metadata` | JSON | -| `namespaceId` | UUID | -| `observedHost` | String | -| `realm` | String | -| `status` | String | -| `updatedAt` | Datetime | -| `updatedBy` | UUID | -| `updatedByPrincipal` | UUID | - -**Required create fields:** `databaseId`, `installationId`, `namespaceId` -**Optional create fields (backend defaults):** `createdBy`, `createdByPrincipal`, `lastError`, `metadata`, `observedHost`, `realm`, `status`, `updatedBy`, `updatedByPrincipal` - ### `content-preset` CRUD operations for ContentPreset records. @@ -418,7 +385,6 @@ CRUD operations for DatabaseFunctionGraph records. | `list` | List all databaseFunctionGraph records | | `find-first` | Find first matching databaseFunctionGraph record | | `get` | Get a databaseFunctionGraph by id | -| `create` | Create a new databaseFunctionGraph | | `update` | Update an existing databaseFunctionGraph | | `delete` | Delete a databaseFunctionGraph | @@ -625,7 +591,6 @@ CRUD operations for DatabaseGraphGetAllTreeNodesRecord records. | `list` | List all databaseGraphGetAllTreeNodesRecord records | | `find-first` | Find first matching databaseGraphGetAllTreeNodesRecord record | | `get` | Get a databaseGraphGetAllTreeNodesRecord by id | -| `create` | Create a new databaseGraphGetAllTreeNodesRecord | | `update` | Update an existing databaseGraphGetAllTreeNodesRecord | | `delete` | Delete a databaseGraphGetAllTreeNodesRecord | @@ -1021,7 +986,6 @@ CRUD operations for FunctionGraph records. | `list` | List all functionGraph records | | `find-first` | Find first matching functionGraph record | | `get` | Get a functionGraph by id | -| `create` | Create a new functionGraph | | `update` | Update an existing functionGraph | | `delete` | Delete a functionGraph | @@ -1393,7 +1357,6 @@ CRUD operations for GetAllTreeNodesRecord records. | `list` | List all getAllTreeNodesRecord records | | `find-first` | Find first matching getAllTreeNodesRecord record | | `get` | Get a getAllTreeNodesRecord by id | -| `create` | Create a new getAllTreeNodesRecord | | `update` | Update an existing getAllTreeNodesRecord | | `delete` | Delete a getAllTreeNodesRecord | @@ -1518,7 +1481,6 @@ CRUD operations for InfraGetAllTreeNodesRecord records. | `list` | List all infraGetAllTreeNodesRecord records | | `find-first` | Find first matching infraGetAllTreeNodesRecord record | | `get` | Get a infraGetAllTreeNodesRecord by id | -| `create` | Create a new infraGetAllTreeNodesRecord | | `update` | Update an existing infraGetAllTreeNodesRecord | | `delete` | Delete a infraGetAllTreeNodesRecord | @@ -1634,6 +1596,8 @@ CRUD operations for IntegrationProvider records. | `icon` | String | | `id` | UUID | | `logo` | Image | +| `logoUrl` | String | +| `logoVersions` | FileVersion | | `name` | String | | `requiredConfigs` | ResourceRequirement | | `requiredSecrets` | ResourceRequirement | @@ -1736,6 +1700,8 @@ CRUD operations for PlatformBuild records. | `imageRef` | String | | `jobId` | BigInt | | `logs` | Upload | +| `logsUrl` | String | +| `logsVersions` | FileVersion | | `matrixKey` | String | | `metadata` | JSON | | `proposalId` | UUID | @@ -1786,41 +1752,6 @@ CRUD operations for PlatformBuildStep records. **Required create fields:** `buildId`, `name`, `seq` **Optional create fields (backend defaults):** `createdByPrincipal`, `exitCode`, `finishedAt`, `kind`, `logBytes`, `logOffset`, `parentSeq`, `recordedAt`, `startedAt`, `status`, `summary` -### `platform-builder-binding` - -CRUD operations for PlatformBuilderBinding records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all platformBuilderBinding records | -| `find-first` | Find first matching platformBuilderBinding record | -| `get` | Get a platformBuilderBinding by id | -| `create` | Create a new platformBuilderBinding | -| `update` | Update an existing platformBuilderBinding | -| `delete` | Delete a platformBuilderBinding | - -**Fields:** - -| Field | Type | -|-------|------| -| `createdAt` | Datetime | -| `createdBy` | UUID | -| `createdByPrincipal` | UUID | -| `id` | UUID | -| `installationId` | UUID | -| `lastError` | String | -| `metadata` | JSON | -| `namespaceId` | UUID | -| `observedHost` | String | -| `realm` | String | -| `status` | String | -| `updatedAt` | Datetime | -| `updatedBy` | UUID | -| `updatedByPrincipal` | UUID | - -**Required create fields:** `installationId`, `namespaceId` -**Optional create fields (backend defaults):** `createdBy`, `createdByPrincipal`, `lastError`, `metadata`, `observedHost`, `realm`, `status`, `updatedBy`, `updatedByPrincipal` - ### `platform-function-api-binding` CRUD operations for PlatformFunctionApiBinding records. @@ -2275,7 +2206,6 @@ CRUD operations for PlatformInfraGetAllTreeNodesRecord records. | `list` | List all platformInfraGetAllTreeNodesRecord records | | `find-first` | Find first matching platformInfraGetAllTreeNodesRecord record | | `get` | Get a platformInfraGetAllTreeNodesRecord by id | -| `create` | Create a new platformInfraGetAllTreeNodesRecord | | `update` | Update an existing platformInfraGetAllTreeNodesRecord | | `delete` | Delete a platformInfraGetAllTreeNodesRecord | @@ -2511,12 +2441,16 @@ CRUD operations for PlatformProposalComment records. |-------|------| | `actorId` | UUID | | `attachments` | Upload | +| `attachmentsUrl` | String | +| `attachmentsVersions` | FileVersion | | `body` | String | | `bodyTrgmSimilarity` | Float | | `createdAt` | Datetime | | `createdBy` | UUID | | `createdByPrincipal` | UUID | | `embedding` | Vector | +| `embeddingModel` | String | +| `embeddingModelTrgmSimilarity` | Float | | `embeddingUpdatedAt` | Datetime | | `embeddingVectorDistance` | Float | | `id` | UUID | @@ -2538,7 +2472,7 @@ CRUD operations for PlatformProposalComment records. > **pgvector embedding fields:** `embedding` > High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. -> **Unified Search API fields:** `bodyTrgmSimilarity`, `pathTrgmSimilarity`, `search`, `searchScore` +> **Unified Search API fields:** `bodyTrgmSimilarity`, `embeddingModelTrgmSimilarity`, `pathTrgmSimilarity`, `search`, `searchScore` > Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. **Search Examples:** @@ -2568,6 +2502,11 @@ EMBEDDER_PROVIDER=ollama csdk platform-proposal-comment update --embedding "new csdk platform-proposal-comment list --where.trgmBody.value "approximate query" --where.trgmBody.threshold 0.3 --select title,bodyTrgmSimilarity ``` +*Fuzzy search via trigram similarity (`trgmEmbeddingModel`):* +```bash +csdk platform-proposal-comment list --where.trgmEmbeddingModel.value "approximate query" --where.trgmEmbeddingModel.threshold 0.3 --select title,embeddingModelTrgmSimilarity +``` + *Fuzzy search via trigram similarity (`trgmPath`):* ```bash csdk platform-proposal-comment list --where.trgmPath.value "approximate query" --where.trgmPath.threshold 0.3 --select title,pathTrgmSimilarity @@ -2580,7 +2519,7 @@ csdk platform-proposal-comment list --where.search "search query" --select title *Composite search (unifiedSearch dispatches to all text adapters):* ```bash -csdk platform-proposal-comment list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,pathTrgmSimilarity,tsvRank,searchScore +csdk platform-proposal-comment list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,embeddingModelTrgmSimilarity,pathTrgmSimilarity,tsvRank,searchScore ``` *Search with pagination and field projection:* @@ -2619,6 +2558,8 @@ CRUD operations for PlatformProposal records. | `decidedAt` | Datetime | | `dueAt` | Datetime | | `embedding` | Vector | +| `embeddingModel` | String | +| `embeddingModelTrgmSimilarity` | Float | | `embeddingUpdatedAt` | Datetime | | `embeddingVectorDistance` | Float | | `id` | UUID | @@ -2657,7 +2598,7 @@ CRUD operations for PlatformProposal records. > **pgvector embedding fields:** `embedding` > High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. -> **Unified Search API fields:** `bodyTrgmSimilarity`, `closedReasonTrgmSimilarity`, `kindTrgmSimilarity`, `mergeCommitTrgmSimilarity`, `mergeMethodTrgmSimilarity`, `resolutionTrgmSimilarity`, `search`, `searchScore`, `sourceRefTrgmSimilarity`, `statusTrgmSimilarity`, `targetRefTrgmSimilarity`, `titleTrgmSimilarity` +> **Unified Search API fields:** `bodyTrgmSimilarity`, `closedReasonTrgmSimilarity`, `embeddingModelTrgmSimilarity`, `kindTrgmSimilarity`, `mergeCommitTrgmSimilarity`, `mergeMethodTrgmSimilarity`, `resolutionTrgmSimilarity`, `search`, `searchScore`, `sourceRefTrgmSimilarity`, `statusTrgmSimilarity`, `targetRefTrgmSimilarity`, `titleTrgmSimilarity` > Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. **Search Examples:** @@ -2692,6 +2633,11 @@ csdk platform-proposal list --where.trgmBody.value "approximate query" --where.t csdk platform-proposal list --where.trgmClosedReason.value "approximate query" --where.trgmClosedReason.threshold 0.3 --select title,closedReasonTrgmSimilarity ``` +*Fuzzy search via trigram similarity (`trgmEmbeddingModel`):* +```bash +csdk platform-proposal list --where.trgmEmbeddingModel.value "approximate query" --where.trgmEmbeddingModel.threshold 0.3 --select title,embeddingModelTrgmSimilarity +``` + *Fuzzy search via trigram similarity (`trgmKind`):* ```bash csdk platform-proposal list --where.trgmKind.value "approximate query" --where.trgmKind.threshold 0.3 --select title,kindTrgmSimilarity @@ -2739,7 +2685,7 @@ csdk platform-proposal list --where.trgmTitle.value "approximate query" --where. *Composite search (unifiedSearch dispatches to all text adapters):* ```bash -csdk platform-proposal list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,closedReasonTrgmSimilarity,kindTrgmSimilarity,mergeCommitTrgmSimilarity,mergeMethodTrgmSimilarity,resolutionTrgmSimilarity,tsvRank,searchScore,sourceRefTrgmSimilarity,statusTrgmSimilarity,targetRefTrgmSimilarity,titleTrgmSimilarity +csdk platform-proposal list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,closedReasonTrgmSimilarity,embeddingModelTrgmSimilarity,kindTrgmSimilarity,mergeCommitTrgmSimilarity,mergeMethodTrgmSimilarity,resolutionTrgmSimilarity,tsvRank,searchScore,sourceRefTrgmSimilarity,statusTrgmSimilarity,targetRefTrgmSimilarity,titleTrgmSimilarity ``` *Search with pagination and field projection:* @@ -3088,6 +3034,8 @@ CRUD operations for PlatformRepository records. | `description` | String | | `descriptionTrgmSimilarity` | Float | | `embedding` | Vector | +| `embeddingModel` | String | +| `embeddingModelTrgmSimilarity` | Float | | `embeddingUpdatedAt` | Datetime | | `embeddingVectorDistance` | Float | | `externalId` | String | @@ -3116,7 +3064,7 @@ CRUD operations for PlatformRepository records. > **pgvector embedding fields:** `embedding` > High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. -> **Unified Search API fields:** `cloneUrlTrgmSimilarity`, `defaultBranchTrgmSimilarity`, `descriptionTrgmSimilarity`, `externalIdTrgmSimilarity`, `nameTrgmSimilarity`, `providerTrgmSimilarity`, `search`, `searchScore`, `slugTrgmSimilarity`, `visibilityTrgmSimilarity` +> **Unified Search API fields:** `cloneUrlTrgmSimilarity`, `defaultBranchTrgmSimilarity`, `descriptionTrgmSimilarity`, `embeddingModelTrgmSimilarity`, `externalIdTrgmSimilarity`, `nameTrgmSimilarity`, `providerTrgmSimilarity`, `search`, `searchScore`, `slugTrgmSimilarity`, `visibilityTrgmSimilarity` > Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. **Search Examples:** @@ -3156,6 +3104,11 @@ csdk platform-repository list --where.trgmDefaultBranch.value "approximate query csdk platform-repository list --where.trgmDescription.value "approximate query" --where.trgmDescription.threshold 0.3 --select title,descriptionTrgmSimilarity ``` +*Fuzzy search via trigram similarity (`trgmEmbeddingModel`):* +```bash +csdk platform-repository list --where.trgmEmbeddingModel.value "approximate query" --where.trgmEmbeddingModel.threshold 0.3 --select title,embeddingModelTrgmSimilarity +``` + *Fuzzy search via trigram similarity (`trgmExternalId`):* ```bash csdk platform-repository list --where.trgmExternalId.value "approximate query" --where.trgmExternalId.threshold 0.3 --select title,externalIdTrgmSimilarity @@ -3188,7 +3141,7 @@ csdk platform-repository list --where.trgmVisibility.value "approximate query" - *Composite search (unifiedSearch dispatches to all text adapters):* ```bash -csdk platform-repository list --where.unifiedSearch "search query" --select title,cloneUrlTrgmSimilarity,defaultBranchTrgmSimilarity,descriptionTrgmSimilarity,externalIdTrgmSimilarity,nameTrgmSimilarity,providerTrgmSimilarity,tsvRank,searchScore,slugTrgmSimilarity,visibilityTrgmSimilarity +csdk platform-repository list --where.unifiedSearch "search query" --select title,cloneUrlTrgmSimilarity,defaultBranchTrgmSimilarity,descriptionTrgmSimilarity,embeddingModelTrgmSimilarity,externalIdTrgmSimilarity,nameTrgmSimilarity,providerTrgmSimilarity,tsvRank,searchScore,slugTrgmSimilarity,visibilityTrgmSimilarity ``` *Search with pagination and field projection:* @@ -3360,7 +3313,6 @@ CRUD operations for PlatformResourceDeclaredCapacity records. | `list` | List all platformResourceDeclaredCapacity records | | `find-first` | Find first matching platformResourceDeclaredCapacity record | | `get` | Get a platformResourceDeclaredCapacity by id | -| `create` | Create a new platformResourceDeclaredCapacity | | `update` | Update an existing platformResourceDeclaredCapacity | | `delete` | Delete a platformResourceDeclaredCapacity | @@ -3499,7 +3451,6 @@ CRUD operations for PlatformResourceObservedStorage records. | `list` | List all platformResourceObservedStorage records | | `find-first` | Find first matching platformResourceObservedStorage record | | `get` | Get a platformResourceObservedStorage by id | -| `create` | Create a new platformResourceObservedStorage | | `update` | Update an existing platformResourceObservedStorage | | `delete` | Delete a platformResourceObservedStorage | @@ -3625,7 +3576,6 @@ CRUD operations for PlatformResourceUtilization records. | `list` | List all platformResourceUtilization records | | `find-first` | Find first matching platformResourceUtilization record | | `get` | Get a platformResourceUtilization by id | -| `create` | Create a new platformResourceUtilization | | `update` | Update an existing platformResourceUtilization | | `delete` | Delete a platformResourceUtilization | @@ -3664,7 +3614,6 @@ CRUD operations for PlatformResourcesHealth records. | `list` | List all platformResourcesHealth records | | `find-first` | Find first matching platformResourcesHealth record | | `get` | Get a platformResourcesHealth by id | -| `create` | Create a new platformResourcesHealth | | `update` | Update an existing platformResourcesHealth | | `delete` | Delete a platformResourcesHealth | @@ -3719,7 +3668,6 @@ CRUD operations for PlatformResourcesRequirementsState records. | `list` | List all platformResourcesRequirementsState records | | `find-first` | Find first matching platformResourcesRequirementsState record | | `get` | Get a platformResourcesRequirementsState by id | -| `create` | Create a new platformResourcesRequirementsState | | `update` | Update an existing platformResourcesRequirementsState | | `delete` | Delete a platformResourcesRequirementsState | @@ -3746,7 +3694,6 @@ CRUD operations for PlatformResourcesResolvedRequirement records. | `list` | List all platformResourcesResolvedRequirement records | | `find-first` | Find first matching platformResourcesResolvedRequirement record | | `get` | Get a platformResourcesResolvedRequirement by id | -| `create` | Create a new platformResourcesResolvedRequirement | | `update` | Update an existing platformResourcesResolvedRequirement | | `delete` | Delete a platformResourcesResolvedRequirement | @@ -3768,6 +3715,43 @@ CRUD operations for PlatformResourcesResolvedRequirement records. **Required create fields:** `atomId`, `configObjectName`, `name`, `namespaceId`, `present`, `realm`, `required`, `requirementKind`, `resourceId`, `secretsObjectName`, `slug` +### `platform-service-binding` + +CRUD operations for PlatformServiceBinding records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all platformServiceBinding records | +| `find-first` | Find first matching platformServiceBinding record | +| `get` | Get a platformServiceBinding by id | +| `create` | Create a new platformServiceBinding | +| `update` | Update an existing platformServiceBinding | +| `delete` | Delete a platformServiceBinding | + +**Fields:** + +| Field | Type | +|-------|------| +| `createdAt` | Datetime | +| `createdBy` | UUID | +| `createdByPrincipal` | UUID | +| `id` | UUID | +| `installationId` | UUID | +| `installationScope` | String | +| `kind` | String | +| `lastError` | String | +| `metadata` | JSON | +| `namespaceId` | UUID | +| `observedHost` | String | +| `realm` | String | +| `status` | String | +| `updatedAt` | Datetime | +| `updatedBy` | UUID | +| `updatedByPrincipal` | UUID | + +**Required create fields:** `installationId`, `installationScope`, `kind`, `namespaceId` +**Optional create fields (backend defaults):** `createdBy`, `createdByPrincipal`, `lastError`, `metadata`, `observedHost`, `realm`, `status`, `updatedBy`, `updatedByPrincipal` + ### `platform-webhook-endpoint` CRUD operations for PlatformWebhookEndpoint records. @@ -3857,6 +3841,8 @@ CRUD operations for ProposalComment records. |-------|------| | `actorId` | UUID | | `attachments` | Upload | +| `attachmentsUrl` | String | +| `attachmentsVersions` | FileVersion | | `body` | String | | `bodyTrgmSimilarity` | Float | | `createdAt` | Datetime | @@ -3864,6 +3850,8 @@ CRUD operations for ProposalComment records. | `createdByPrincipal` | UUID | | `databaseId` | UUID | | `embedding` | Vector | +| `embeddingModel` | String | +| `embeddingModelTrgmSimilarity` | Float | | `embeddingUpdatedAt` | Datetime | | `embeddingVectorDistance` | Float | | `id` | UUID | @@ -3885,7 +3873,7 @@ CRUD operations for ProposalComment records. > **pgvector embedding fields:** `embedding` > High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. -> **Unified Search API fields:** `bodyTrgmSimilarity`, `pathTrgmSimilarity`, `search`, `searchScore` +> **Unified Search API fields:** `bodyTrgmSimilarity`, `embeddingModelTrgmSimilarity`, `pathTrgmSimilarity`, `search`, `searchScore` > Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. **Search Examples:** @@ -3915,6 +3903,11 @@ EMBEDDER_PROVIDER=ollama csdk proposal-comment update --embedding "new text to e csdk proposal-comment list --where.trgmBody.value "approximate query" --where.trgmBody.threshold 0.3 --select title,bodyTrgmSimilarity ``` +*Fuzzy search via trigram similarity (`trgmEmbeddingModel`):* +```bash +csdk proposal-comment list --where.trgmEmbeddingModel.value "approximate query" --where.trgmEmbeddingModel.threshold 0.3 --select title,embeddingModelTrgmSimilarity +``` + *Fuzzy search via trigram similarity (`trgmPath`):* ```bash csdk proposal-comment list --where.trgmPath.value "approximate query" --where.trgmPath.threshold 0.3 --select title,pathTrgmSimilarity @@ -3927,7 +3920,7 @@ csdk proposal-comment list --where.search "search query" --select title,tsvRank *Composite search (unifiedSearch dispatches to all text adapters):* ```bash -csdk proposal-comment list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,pathTrgmSimilarity,tsvRank,searchScore +csdk proposal-comment list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,embeddingModelTrgmSimilarity,pathTrgmSimilarity,tsvRank,searchScore ``` *Search with pagination and field projection:* @@ -3967,6 +3960,8 @@ CRUD operations for Proposal records. | `decidedAt` | Datetime | | `dueAt` | Datetime | | `embedding` | Vector | +| `embeddingModel` | String | +| `embeddingModelTrgmSimilarity` | Float | | `embeddingUpdatedAt` | Datetime | | `embeddingVectorDistance` | Float | | `id` | UUID | @@ -4005,7 +4000,7 @@ CRUD operations for Proposal records. > **pgvector embedding fields:** `embedding` > High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. -> **Unified Search API fields:** `bodyTrgmSimilarity`, `closedReasonTrgmSimilarity`, `kindTrgmSimilarity`, `mergeCommitTrgmSimilarity`, `mergeMethodTrgmSimilarity`, `resolutionTrgmSimilarity`, `search`, `searchScore`, `sourceRefTrgmSimilarity`, `statusTrgmSimilarity`, `targetRefTrgmSimilarity`, `titleTrgmSimilarity` +> **Unified Search API fields:** `bodyTrgmSimilarity`, `closedReasonTrgmSimilarity`, `embeddingModelTrgmSimilarity`, `kindTrgmSimilarity`, `mergeCommitTrgmSimilarity`, `mergeMethodTrgmSimilarity`, `resolutionTrgmSimilarity`, `search`, `searchScore`, `sourceRefTrgmSimilarity`, `statusTrgmSimilarity`, `targetRefTrgmSimilarity`, `titleTrgmSimilarity` > Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. **Search Examples:** @@ -4040,6 +4035,11 @@ csdk proposal list --where.trgmBody.value "approximate query" --where.trgmBody.t csdk proposal list --where.trgmClosedReason.value "approximate query" --where.trgmClosedReason.threshold 0.3 --select title,closedReasonTrgmSimilarity ``` +*Fuzzy search via trigram similarity (`trgmEmbeddingModel`):* +```bash +csdk proposal list --where.trgmEmbeddingModel.value "approximate query" --where.trgmEmbeddingModel.threshold 0.3 --select title,embeddingModelTrgmSimilarity +``` + *Fuzzy search via trigram similarity (`trgmKind`):* ```bash csdk proposal list --where.trgmKind.value "approximate query" --where.trgmKind.threshold 0.3 --select title,kindTrgmSimilarity @@ -4087,7 +4087,7 @@ csdk proposal list --where.trgmTitle.value "approximate query" --where.trgmTitle *Composite search (unifiedSearch dispatches to all text adapters):* ```bash -csdk proposal list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,closedReasonTrgmSimilarity,kindTrgmSimilarity,mergeCommitTrgmSimilarity,mergeMethodTrgmSimilarity,resolutionTrgmSimilarity,tsvRank,searchScore,sourceRefTrgmSimilarity,statusTrgmSimilarity,targetRefTrgmSimilarity,titleTrgmSimilarity +csdk proposal list --where.unifiedSearch "search query" --select title,bodyTrgmSimilarity,closedReasonTrgmSimilarity,embeddingModelTrgmSimilarity,kindTrgmSimilarity,mergeCommitTrgmSimilarity,mergeMethodTrgmSimilarity,resolutionTrgmSimilarity,tsvRank,searchScore,sourceRefTrgmSimilarity,statusTrgmSimilarity,targetRefTrgmSimilarity,titleTrgmSimilarity ``` *Search with pagination and field projection:* @@ -4444,6 +4444,8 @@ CRUD operations for Repository records. | `description` | String | | `descriptionTrgmSimilarity` | Float | | `embedding` | Vector | +| `embeddingModel` | String | +| `embeddingModelTrgmSimilarity` | Float | | `embeddingUpdatedAt` | Datetime | | `embeddingVectorDistance` | Float | | `externalId` | String | @@ -4472,7 +4474,7 @@ CRUD operations for Repository records. > **pgvector embedding fields:** `embedding` > High-dimensional vector columns for semantic similarity search. Query via the Unified Search API pgvector adapter using cosine, L2, or inner-product distance. Supports chunk-aware search: set `includeChunks: true` in VectorNearbyInput to transparently query across parent and chunk embeddings, returning the minimum distance. -> **Unified Search API fields:** `cloneUrlTrgmSimilarity`, `defaultBranchTrgmSimilarity`, `descriptionTrgmSimilarity`, `externalIdTrgmSimilarity`, `nameTrgmSimilarity`, `providerTrgmSimilarity`, `search`, `searchScore`, `slugTrgmSimilarity`, `visibilityTrgmSimilarity` +> **Unified Search API fields:** `cloneUrlTrgmSimilarity`, `defaultBranchTrgmSimilarity`, `descriptionTrgmSimilarity`, `embeddingModelTrgmSimilarity`, `externalIdTrgmSimilarity`, `nameTrgmSimilarity`, `providerTrgmSimilarity`, `search`, `searchScore`, `slugTrgmSimilarity`, `visibilityTrgmSimilarity` > Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. **Search Examples:** @@ -4512,6 +4514,11 @@ csdk repository list --where.trgmDefaultBranch.value "approximate query" --where csdk repository list --where.trgmDescription.value "approximate query" --where.trgmDescription.threshold 0.3 --select title,descriptionTrgmSimilarity ``` +*Fuzzy search via trigram similarity (`trgmEmbeddingModel`):* +```bash +csdk repository list --where.trgmEmbeddingModel.value "approximate query" --where.trgmEmbeddingModel.threshold 0.3 --select title,embeddingModelTrgmSimilarity +``` + *Fuzzy search via trigram similarity (`trgmExternalId`):* ```bash csdk repository list --where.trgmExternalId.value "approximate query" --where.trgmExternalId.threshold 0.3 --select title,externalIdTrgmSimilarity @@ -4544,7 +4551,7 @@ csdk repository list --where.trgmVisibility.value "approximate query" --where.tr *Composite search (unifiedSearch dispatches to all text adapters):* ```bash -csdk repository list --where.unifiedSearch "search query" --select title,cloneUrlTrgmSimilarity,defaultBranchTrgmSimilarity,descriptionTrgmSimilarity,externalIdTrgmSimilarity,nameTrgmSimilarity,providerTrgmSimilarity,tsvRank,searchScore,slugTrgmSimilarity,visibilityTrgmSimilarity +csdk repository list --where.unifiedSearch "search query" --select title,cloneUrlTrgmSimilarity,defaultBranchTrgmSimilarity,descriptionTrgmSimilarity,embeddingModelTrgmSimilarity,externalIdTrgmSimilarity,nameTrgmSimilarity,providerTrgmSimilarity,tsvRank,searchScore,slugTrgmSimilarity,visibilityTrgmSimilarity ``` *Search with pagination and field projection:* @@ -4720,7 +4727,6 @@ CRUD operations for ResourceDeclaredCapacity records. | `list` | List all resourceDeclaredCapacity records | | `find-first` | Find first matching resourceDeclaredCapacity record | | `get` | Get a resourceDeclaredCapacity by id | -| `create` | Create a new resourceDeclaredCapacity | | `update` | Update an existing resourceDeclaredCapacity | | `delete` | Delete a resourceDeclaredCapacity | @@ -4862,7 +4868,6 @@ CRUD operations for ResourceObservedStorage records. | `list` | List all resourceObservedStorage records | | `find-first` | Find first matching resourceObservedStorage record | | `get` | Get a resourceObservedStorage by id | -| `create` | Create a new resourceObservedStorage | | `update` | Update an existing resourceObservedStorage | | `delete` | Delete a resourceObservedStorage | @@ -4991,7 +4996,6 @@ CRUD operations for ResourceUtilization records. | `list` | List all resourceUtilization records | | `find-first` | Find first matching resourceUtilization record | | `get` | Get a resourceUtilization by id | -| `create` | Create a new resourceUtilization | | `update` | Update an existing resourceUtilization | | `delete` | Delete a resourceUtilization | @@ -5030,7 +5034,6 @@ CRUD operations for ResourcesHealth records. | `list` | List all resourcesHealth records | | `find-first` | Find first matching resourcesHealth record | | `get` | Get a resourcesHealth by id | -| `create` | Create a new resourcesHealth | | `update` | Update an existing resourcesHealth | | `delete` | Delete a resourcesHealth | @@ -5086,7 +5089,6 @@ CRUD operations for ResourcesRequirementsState records. | `list` | List all resourcesRequirementsState records | | `find-first` | Find first matching resourcesRequirementsState record | | `get` | Get a resourcesRequirementsState by id | -| `create` | Create a new resourcesRequirementsState | | `update` | Update an existing resourcesRequirementsState | | `delete` | Delete a resourcesRequirementsState | @@ -5113,7 +5115,6 @@ CRUD operations for ResourcesResolvedRequirement records. | `list` | List all resourcesResolvedRequirement records | | `find-first` | Find first matching resourcesResolvedRequirement record | | `get` | Get a resourcesResolvedRequirement by id | -| `create` | Create a new resourcesResolvedRequirement | | `update` | Update an existing resourcesResolvedRequirement | | `delete` | Delete a resourcesResolvedRequirement | @@ -5135,6 +5136,44 @@ CRUD operations for ResourcesResolvedRequirement records. **Required create fields:** `atomId`, `configObjectName`, `name`, `namespaceId`, `present`, `realm`, `required`, `requirementKind`, `resourceId`, `secretsObjectName`, `slug` +### `service-binding` + +CRUD operations for ServiceBinding records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all serviceBinding records | +| `find-first` | Find first matching serviceBinding record | +| `get` | Get a serviceBinding by id | +| `create` | Create a new serviceBinding | +| `update` | Update an existing serviceBinding | +| `delete` | Delete a serviceBinding | + +**Fields:** + +| Field | Type | +|-------|------| +| `createdAt` | Datetime | +| `createdBy` | UUID | +| `createdByPrincipal` | UUID | +| `databaseId` | UUID | +| `id` | UUID | +| `installationId` | UUID | +| `installationScope` | String | +| `kind` | String | +| `lastError` | String | +| `metadata` | JSON | +| `namespaceId` | UUID | +| `observedHost` | String | +| `realm` | String | +| `status` | String | +| `updatedAt` | Datetime | +| `updatedBy` | UUID | +| `updatedByPrincipal` | UUID | + +**Required create fields:** `databaseId`, `installationId`, `installationScope`, `kind`, `namespaceId` +**Optional create fields (backend defaults):** `createdBy`, `createdByPrincipal`, `lastError`, `metadata`, `observedHost`, `realm`, `status`, `updatedBy`, `updatedByPrincipal` + ### `webhook-endpoint` CRUD operations for WebhookEndpoint records. @@ -5331,6 +5370,23 @@ copyGraph | `--input.name` | String | | `--input.scopeId` | UUID | +### `create-function-graph` + +createFunctionGraph + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.context` | String | + | `--input.createdBy` | UUID | + | `--input.definitionsCommitId` | UUID | + | `--input.description` | String | + | `--input.name` | String | + | `--input.scopeId` | UUID | + ### `database-add-edge` databaseAddEdge diff --git a/sdk/constructive-cli/src/compute/cli/commands.ts b/sdk/constructive-cli/src/compute/cli/commands.ts index 78aee3f9d0..7c446400dc 100644 --- a/sdk/constructive-cli/src/compute/cli/commands.ts +++ b/sdk/constructive-cli/src/compute/cli/commands.ts @@ -8,7 +8,6 @@ import contextCmd from './commands/context'; import authCmd from './commands/auth'; import buildCmd from './commands/build'; import buildStepCmd from './commands/build-step'; -import builderBindingCmd from './commands/builder-binding'; import contentPresetCmd from './commands/content-preset'; import databaseFunctionGraphCmd from './commands/database-function-graph'; import databaseFunctionGraphExecutionCancelRequestCmd from './commands/database-function-graph-execution-cancel-request'; @@ -52,7 +51,6 @@ import namespaceCmd from './commands/namespace'; import namespaceEventCmd from './commands/namespace-event'; import platformBuildCmd from './commands/platform-build'; import platformBuildStepCmd from './commands/platform-build-step'; -import platformBuilderBindingCmd from './commands/platform-builder-binding'; import platformFunctionApiBindingCmd from './commands/platform-function-api-binding'; import platformFunctionCapabilityBindingCmd from './commands/platform-function-capability-binding'; import platformFunctionDefinitionCmd from './commands/platform-function-definition'; @@ -99,6 +97,7 @@ import platformResourceUtilizationCmd from './commands/platform-resource-utiliza import platformResourcesHealthCmd from './commands/platform-resources-health'; import platformResourcesRequirementsStateCmd from './commands/platform-resources-requirements-state'; import platformResourcesResolvedRequirementCmd from './commands/platform-resources-resolved-requirement'; +import platformServiceBindingCmd from './commands/platform-service-binding'; import platformWebhookEndpointCmd from './commands/platform-webhook-endpoint'; import platformWebhookEventCmd from './commands/platform-webhook-event'; import proposalCommentCmd from './commands/proposal-comment'; @@ -127,6 +126,7 @@ import resourceUtilizationCmd from './commands/resource-utilization'; import resourcesHealthCmd from './commands/resources-health'; import resourcesRequirementsStateCmd from './commands/resources-requirements-state'; import resourcesResolvedRequirementCmd from './commands/resources-resolved-requirement'; +import serviceBindingCmd from './commands/service-binding'; import webhookEndpointCmd from './commands/webhook-endpoint'; import webhookEventCmd from './commands/webhook-event'; import databaseReadFunctionGraphCmd from './commands/database-read-function-graph'; @@ -137,6 +137,7 @@ import addNodeCmd from './commands/add-node'; import addNodeAndSaveCmd from './commands/add-node-and-save'; import approveNodeCmd from './commands/approve-node'; import copyGraphCmd from './commands/copy-graph'; +import createFunctionGraphCmd from './commands/create-function-graph'; import databaseAddEdgeCmd from './commands/database-add-edge'; import databaseAddEdgeAndSaveCmd from './commands/database-add-edge-and-save'; import databaseAddNodeCmd from './commands/database-add-node'; @@ -205,7 +206,6 @@ const createCommandMap: () => Record< auth: authCmd, build: buildCmd, 'build-step': buildStepCmd, - 'builder-binding': builderBindingCmd, 'content-preset': contentPresetCmd, 'database-function-graph': databaseFunctionGraphCmd, 'database-function-graph-execution-cancel-request': @@ -250,7 +250,6 @@ const createCommandMap: () => Record< 'namespace-event': namespaceEventCmd, 'platform-build': platformBuildCmd, 'platform-build-step': platformBuildStepCmd, - 'platform-builder-binding': platformBuilderBindingCmd, 'platform-function-api-binding': platformFunctionApiBindingCmd, 'platform-function-capability-binding': platformFunctionCapabilityBindingCmd, 'platform-function-definition': platformFunctionDefinitionCmd, @@ -297,6 +296,7 @@ const createCommandMap: () => Record< 'platform-resources-health': platformResourcesHealthCmd, 'platform-resources-requirements-state': platformResourcesRequirementsStateCmd, 'platform-resources-resolved-requirement': platformResourcesResolvedRequirementCmd, + 'platform-service-binding': platformServiceBindingCmd, 'platform-webhook-endpoint': platformWebhookEndpointCmd, 'platform-webhook-event': platformWebhookEventCmd, 'proposal-comment': proposalCommentCmd, @@ -325,6 +325,7 @@ const createCommandMap: () => Record< 'resources-health': resourcesHealthCmd, 'resources-requirements-state': resourcesRequirementsStateCmd, 'resources-resolved-requirement': resourcesResolvedRequirementCmd, + 'service-binding': serviceBindingCmd, 'webhook-endpoint': webhookEndpointCmd, 'webhook-event': webhookEventCmd, 'database-read-function-graph': databaseReadFunctionGraphCmd, @@ -335,6 +336,7 @@ const createCommandMap: () => Record< 'add-node-and-save': addNodeAndSaveCmd, 'approve-node': approveNodeCmd, 'copy-graph': copyGraphCmd, + 'create-function-graph': createFunctionGraphCmd, 'database-add-edge': databaseAddEdgeCmd, 'database-add-edge-and-save': databaseAddEdgeAndSaveCmd, 'database-add-node': databaseAddNodeCmd, @@ -393,7 +395,7 @@ const createCommandMap: () => Record< 'validate-function-graph': validateFunctionGraphCmd, }); const usage = - "\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n build build CRUD operations\n build-step buildStep CRUD operations\n builder-binding builderBinding CRUD operations\n content-preset contentPreset CRUD operations\n database-function-graph databaseFunctionGraph CRUD operations\n database-function-graph-execution-cancel-request databaseFunctionGraphExecutionCancelRequest CRUD operations\n database-function-graph-execution databaseFunctionGraphExecution CRUD operations\n database-function-graph-execution-node-state databaseFunctionGraphExecutionNodeState CRUD operations\n database-function-graph-execution-output databaseFunctionGraphExecutionOutput CRUD operations\n database-graph-commit databaseGraphCommit CRUD operations\n database-graph-get-all-tree-nodes-record databaseGraphGetAllTreeNodesRecord CRUD operations\n database-graph-object databaseGraphObject CRUD operations\n database-graph-ref databaseGraphRef CRUD operations\n database-graph-store databaseGraphStore CRUD operations\n db-preset dbPreset CRUD operations\n function-api-binding functionApiBinding CRUD operations\n function-capability-binding functionCapabilityBinding CRUD operations\n function-definition functionDefinition CRUD operations\n function-deployment functionDeployment CRUD operations\n function-deployment-event functionDeploymentEvent CRUD operations\n function-execution-log functionExecutionLog CRUD operations\n function-graph-commit functionGraphCommit CRUD operations\n function-graph functionGraph CRUD operations\n function-graph-execution-cancel-request functionGraphExecutionCancelRequest CRUD operations\n function-graph-execution functionGraphExecution CRUD operations\n function-graph-execution-node-state functionGraphExecutionNodeState CRUD operations\n function-graph-execution-output functionGraphExecutionOutput CRUD operations\n function-graph-object functionGraphObject CRUD operations\n function-graph-ref functionGraphRef CRUD operations\n function-graph-store functionGraphStore CRUD operations\n function-invocation-attempt functionInvocationAttempt CRUD operations\n function-invocation functionInvocation CRUD operations\n function-schedule functionSchedule CRUD operations\n get-all-tree-nodes-record getAllTreeNodesRecord CRUD operations\n image image CRUD operations\n image-grant imageGrant CRUD operations\n infra-commit infraCommit CRUD operations\n infra-get-all-tree-nodes-record infraGetAllTreeNodesRecord CRUD operations\n infra-object infraObject CRUD operations\n infra-ref infraRef CRUD operations\n infra-store infraStore CRUD operations\n integration-provider integrationProvider CRUD operations\n namespace namespace CRUD operations\n namespace-event namespaceEvent CRUD operations\n platform-build platformBuild CRUD operations\n platform-build-step platformBuildStep CRUD operations\n platform-builder-binding platformBuilderBinding CRUD operations\n platform-function-api-binding platformFunctionApiBinding CRUD operations\n platform-function-capability-binding platformFunctionCapabilityBinding CRUD operations\n platform-function-definition platformFunctionDefinition CRUD operations\n platform-function-deployment platformFunctionDeployment CRUD operations\n platform-function-deployment-event platformFunctionDeploymentEvent CRUD operations\n platform-function-execution-log platformFunctionExecutionLog CRUD operations\n platform-function-invocation-attempt platformFunctionInvocationAttempt CRUD operations\n platform-function-invocation platformFunctionInvocation CRUD operations\n platform-function-schedule platformFunctionSchedule CRUD operations\n platform-image platformImage CRUD operations\n platform-image-grant platformImageGrant CRUD operations\n platform-infra-commit platformInfraCommit CRUD operations\n platform-infra-get-all-tree-nodes-record platformInfraGetAllTreeNodesRecord CRUD operations\n platform-infra-object platformInfraObject CRUD operations\n platform-infra-ref platformInfraRef CRUD operations\n platform-infra-store platformInfraStore CRUD operations\n platform-k-8-s-resource-kind platformK8sResourceKind CRUD operations\n platform-k-8-s-spec-rule platformK8sSpecRule CRUD operations\n platform-namespace platformNamespace CRUD operations\n platform-namespace-event platformNamespaceEvent CRUD operations\n platform-proposal-comment platformProposalComment CRUD operations\n platform-proposal platformProposal CRUD operations\n platform-proposal-file-view platformProposalFileView CRUD operations\n platform-proposal-reaction platformProposalReaction CRUD operations\n platform-proposal-review platformProposalReview CRUD operations\n platform-proposals-chunk platformProposalsChunk CRUD operations\n platform-registry-binding platformRegistryBinding CRUD operations\n platform-registry platformRegistry CRUD operations\n platform-registry-grant platformRegistryGrant CRUD operations\n platform-repository platformRepository CRUD operations\n platform-repository-event platformRepositoryEvent CRUD operations\n platform-repository-required-check platformRepositoryRequiredCheck CRUD operations\n platform-repository-workflow platformRepositoryWorkflow CRUD operations\n platform-resource platformResource CRUD operations\n platform-resource-declared-capacity platformResourceDeclaredCapacity CRUD operations\n platform-resource-definition platformResourceDefinition CRUD operations\n platform-resource-event platformResourceEvent CRUD operations\n platform-resource-installation platformResourceInstallation CRUD operations\n platform-resource-observed-storage platformResourceObservedStorage CRUD operations\n platform-resource-status-check platformResourceStatusCheck CRUD operations\n platform-resource-usage-log platformResourceUsageLog CRUD operations\n platform-resource-usage-summary platformResourceUsageSummary CRUD operations\n platform-resource-utilization platformResourceUtilization CRUD operations\n platform-resources-health platformResourcesHealth CRUD operations\n platform-resources-requirements-state platformResourcesRequirementsState CRUD operations\n platform-resources-resolved-requirement platformResourcesResolvedRequirement CRUD operations\n platform-webhook-endpoint platformWebhookEndpoint CRUD operations\n platform-webhook-event platformWebhookEvent CRUD operations\n proposal-comment proposalComment CRUD operations\n proposal proposal CRUD operations\n proposal-file-view proposalFileView CRUD operations\n proposal-reaction proposalReaction CRUD operations\n proposal-review proposalReview CRUD operations\n proposals-chunk proposalsChunk CRUD operations\n registry-binding registryBinding CRUD operations\n registry registry CRUD operations\n registry-grant registryGrant CRUD operations\n repository repository CRUD operations\n repository-event repositoryEvent CRUD operations\n repository-required-check repositoryRequiredCheck CRUD operations\n repository-workflow repositoryWorkflow CRUD operations\n resource resource CRUD operations\n resource-declared-capacity resourceDeclaredCapacity CRUD operations\n resource-definition resourceDefinition CRUD operations\n resource-event resourceEvent CRUD operations\n resource-installation resourceInstallation CRUD operations\n resource-observed-storage resourceObservedStorage CRUD operations\n resource-status-check resourceStatusCheck CRUD operations\n resource-usage-log resourceUsageLog CRUD operations\n resource-usage-summary resourceUsageSummary CRUD operations\n resource-utilization resourceUtilization CRUD operations\n resources-health resourcesHealth CRUD operations\n resources-requirements-state resourcesRequirementsState CRUD operations\n resources-resolved-requirement resourcesResolvedRequirement CRUD operations\n webhook-endpoint webhookEndpoint CRUD operations\n webhook-event webhookEvent CRUD operations\n database-read-function-graph databaseReadFunctionGraph\n read-function-graph readFunctionGraph\n add-edge addEdge\n add-edge-and-save addEdgeAndSave\n add-node addNode\n add-node-and-save addNodeAndSave\n approve-node approveNode\n copy-graph copyGraph\n database-add-edge databaseAddEdge\n database-add-edge-and-save databaseAddEdgeAndSave\n database-add-node databaseAddNode\n database-add-node-and-save databaseAddNodeAndSave\n database-approve-node databaseApproveNode\n database-copy-graph databaseCopyGraph\n database-create-function-graph databaseCreateFunctionGraph\n database-graph-init-empty-repo databaseGraphInitEmptyRepo\n database-graph-insert-node-at-path databaseGraphInsertNodeAtPath\n database-graph-insert-nodes-at-paths databaseGraphInsertNodesAtPaths\n database-graph-set-and-commit databaseGraphSetAndCommit\n database-graph-set-data-at-path databaseGraphSetDataAtPath\n database-graph-set-many-and-commit databaseGraphSetManyAndCommit\n database-import-definitions databaseImportDefinitions\n database-import-graph-json databaseImportGraphJson\n database-save-graph databaseSaveGraph\n database-start-execution databaseStartExecution\n database-validate-function-graph databaseValidateFunctionGraph\n function-execution-logs-append functionExecutionLogsAppend\n function-invocations-create-page functionInvocationsCreatePage\n function-invocations-create-sync functionInvocationsCreateSync\n import-definitions importDefinitions\n import-graph-json importGraphJson\n infra-init-empty-repo infraInitEmptyRepo\n infra-insert-node-at-path infraInsertNodeAtPath\n infra-insert-nodes-at-paths infraInsertNodesAtPaths\n infra-set-and-commit infraSetAndCommit\n infra-set-data-at-path infraSetDataAtPath\n infra-set-many-and-commit infraSetManyAndCommit\n init-empty-repo initEmptyRepo\n insert-node-at-path insertNodeAtPath\n insert-nodes-at-paths insertNodesAtPaths\n platform-function-execution-logs-append platformFunctionExecutionLogsAppend\n platform-function-invocations-create-page platformFunctionInvocationsCreatePage\n platform-function-invocations-create-sync platformFunctionInvocationsCreateSync\n platform-infra-init-empty-repo platformInfraInitEmptyRepo\n platform-infra-insert-node-at-path platformInfraInsertNodeAtPath\n platform-infra-insert-nodes-at-paths platformInfraInsertNodesAtPaths\n platform-infra-set-and-commit platformInfraSetAndCommit\n platform-infra-set-data-at-path platformInfraSetDataAtPath\n platform-infra-set-many-and-commit platformInfraSetManyAndCommit\n platform-resource-installations-install platformResourceInstallationsInstall\n platform-resource-installations-rollback platformResourceInstallationsRollback\n platform-resource-installations-uninstall platformResourceInstallationsUninstall\n platform-resource-installations-upgrade platformResourceInstallationsUpgrade\n provision-bucket Reconcile an S3 bucket for a logical bucket in the database.\nRecords the request on the bucket row via RLS; the bucket's job\ntrigger then enqueues the same storage:provision_bucket job used on\nINSERT, and repeated requests collapse into one pending job. This is\nidempotent for an already-reconciled bucket; failures become GraphQL\nerrors.\n resource-installations-install resourceInstallationsInstall\n resource-installations-rollback resourceInstallationsRollback\n resource-installations-uninstall resourceInstallationsUninstall\n resource-installations-upgrade resourceInstallationsUpgrade\n save-graph saveGraph\n set-and-commit setAndCommit\n set-data-at-path setDataAtPath\n set-many-and-commit setManyAndCommit\n start-execution startExecution\n validate-function-graph validateFunctionGraph\n\n --help, -h Show this help message\n --version, -v Show version\n"; + "\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n build build CRUD operations\n build-step buildStep CRUD operations\n content-preset contentPreset CRUD operations\n database-function-graph databaseFunctionGraph CRUD operations\n database-function-graph-execution-cancel-request databaseFunctionGraphExecutionCancelRequest CRUD operations\n database-function-graph-execution databaseFunctionGraphExecution CRUD operations\n database-function-graph-execution-node-state databaseFunctionGraphExecutionNodeState CRUD operations\n database-function-graph-execution-output databaseFunctionGraphExecutionOutput CRUD operations\n database-graph-commit databaseGraphCommit CRUD operations\n database-graph-get-all-tree-nodes-record databaseGraphGetAllTreeNodesRecord CRUD operations\n database-graph-object databaseGraphObject CRUD operations\n database-graph-ref databaseGraphRef CRUD operations\n database-graph-store databaseGraphStore CRUD operations\n db-preset dbPreset CRUD operations\n function-api-binding functionApiBinding CRUD operations\n function-capability-binding functionCapabilityBinding CRUD operations\n function-definition functionDefinition CRUD operations\n function-deployment functionDeployment CRUD operations\n function-deployment-event functionDeploymentEvent CRUD operations\n function-execution-log functionExecutionLog CRUD operations\n function-graph-commit functionGraphCommit CRUD operations\n function-graph functionGraph CRUD operations\n function-graph-execution-cancel-request functionGraphExecutionCancelRequest CRUD operations\n function-graph-execution functionGraphExecution CRUD operations\n function-graph-execution-node-state functionGraphExecutionNodeState CRUD operations\n function-graph-execution-output functionGraphExecutionOutput CRUD operations\n function-graph-object functionGraphObject CRUD operations\n function-graph-ref functionGraphRef CRUD operations\n function-graph-store functionGraphStore CRUD operations\n function-invocation-attempt functionInvocationAttempt CRUD operations\n function-invocation functionInvocation CRUD operations\n function-schedule functionSchedule CRUD operations\n get-all-tree-nodes-record getAllTreeNodesRecord CRUD operations\n image image CRUD operations\n image-grant imageGrant CRUD operations\n infra-commit infraCommit CRUD operations\n infra-get-all-tree-nodes-record infraGetAllTreeNodesRecord CRUD operations\n infra-object infraObject CRUD operations\n infra-ref infraRef CRUD operations\n infra-store infraStore CRUD operations\n integration-provider integrationProvider CRUD operations\n namespace namespace CRUD operations\n namespace-event namespaceEvent CRUD operations\n platform-build platformBuild CRUD operations\n platform-build-step platformBuildStep CRUD operations\n platform-function-api-binding platformFunctionApiBinding CRUD operations\n platform-function-capability-binding platformFunctionCapabilityBinding CRUD operations\n platform-function-definition platformFunctionDefinition CRUD operations\n platform-function-deployment platformFunctionDeployment CRUD operations\n platform-function-deployment-event platformFunctionDeploymentEvent CRUD operations\n platform-function-execution-log platformFunctionExecutionLog CRUD operations\n platform-function-invocation-attempt platformFunctionInvocationAttempt CRUD operations\n platform-function-invocation platformFunctionInvocation CRUD operations\n platform-function-schedule platformFunctionSchedule CRUD operations\n platform-image platformImage CRUD operations\n platform-image-grant platformImageGrant CRUD operations\n platform-infra-commit platformInfraCommit CRUD operations\n platform-infra-get-all-tree-nodes-record platformInfraGetAllTreeNodesRecord CRUD operations\n platform-infra-object platformInfraObject CRUD operations\n platform-infra-ref platformInfraRef CRUD operations\n platform-infra-store platformInfraStore CRUD operations\n platform-k-8-s-resource-kind platformK8sResourceKind CRUD operations\n platform-k-8-s-spec-rule platformK8sSpecRule CRUD operations\n platform-namespace platformNamespace CRUD operations\n platform-namespace-event platformNamespaceEvent CRUD operations\n platform-proposal-comment platformProposalComment CRUD operations\n platform-proposal platformProposal CRUD operations\n platform-proposal-file-view platformProposalFileView CRUD operations\n platform-proposal-reaction platformProposalReaction CRUD operations\n platform-proposal-review platformProposalReview CRUD operations\n platform-proposals-chunk platformProposalsChunk CRUD operations\n platform-registry-binding platformRegistryBinding CRUD operations\n platform-registry platformRegistry CRUD operations\n platform-registry-grant platformRegistryGrant CRUD operations\n platform-repository platformRepository CRUD operations\n platform-repository-event platformRepositoryEvent CRUD operations\n platform-repository-required-check platformRepositoryRequiredCheck CRUD operations\n platform-repository-workflow platformRepositoryWorkflow CRUD operations\n platform-resource platformResource CRUD operations\n platform-resource-declared-capacity platformResourceDeclaredCapacity CRUD operations\n platform-resource-definition platformResourceDefinition CRUD operations\n platform-resource-event platformResourceEvent CRUD operations\n platform-resource-installation platformResourceInstallation CRUD operations\n platform-resource-observed-storage platformResourceObservedStorage CRUD operations\n platform-resource-status-check platformResourceStatusCheck CRUD operations\n platform-resource-usage-log platformResourceUsageLog CRUD operations\n platform-resource-usage-summary platformResourceUsageSummary CRUD operations\n platform-resource-utilization platformResourceUtilization CRUD operations\n platform-resources-health platformResourcesHealth CRUD operations\n platform-resources-requirements-state platformResourcesRequirementsState CRUD operations\n platform-resources-resolved-requirement platformResourcesResolvedRequirement CRUD operations\n platform-service-binding platformServiceBinding CRUD operations\n platform-webhook-endpoint platformWebhookEndpoint CRUD operations\n platform-webhook-event platformWebhookEvent CRUD operations\n proposal-comment proposalComment CRUD operations\n proposal proposal CRUD operations\n proposal-file-view proposalFileView CRUD operations\n proposal-reaction proposalReaction CRUD operations\n proposal-review proposalReview CRUD operations\n proposals-chunk proposalsChunk CRUD operations\n registry-binding registryBinding CRUD operations\n registry registry CRUD operations\n registry-grant registryGrant CRUD operations\n repository repository CRUD operations\n repository-event repositoryEvent CRUD operations\n repository-required-check repositoryRequiredCheck CRUD operations\n repository-workflow repositoryWorkflow CRUD operations\n resource resource CRUD operations\n resource-declared-capacity resourceDeclaredCapacity CRUD operations\n resource-definition resourceDefinition CRUD operations\n resource-event resourceEvent CRUD operations\n resource-installation resourceInstallation CRUD operations\n resource-observed-storage resourceObservedStorage CRUD operations\n resource-status-check resourceStatusCheck CRUD operations\n resource-usage-log resourceUsageLog CRUD operations\n resource-usage-summary resourceUsageSummary CRUD operations\n resource-utilization resourceUtilization CRUD operations\n resources-health resourcesHealth CRUD operations\n resources-requirements-state resourcesRequirementsState CRUD operations\n resources-resolved-requirement resourcesResolvedRequirement CRUD operations\n service-binding serviceBinding CRUD operations\n webhook-endpoint webhookEndpoint CRUD operations\n webhook-event webhookEvent CRUD operations\n database-read-function-graph databaseReadFunctionGraph\n read-function-graph readFunctionGraph\n add-edge addEdge\n add-edge-and-save addEdgeAndSave\n add-node addNode\n add-node-and-save addNodeAndSave\n approve-node approveNode\n copy-graph copyGraph\n create-function-graph createFunctionGraph\n database-add-edge databaseAddEdge\n database-add-edge-and-save databaseAddEdgeAndSave\n database-add-node databaseAddNode\n database-add-node-and-save databaseAddNodeAndSave\n database-approve-node databaseApproveNode\n database-copy-graph databaseCopyGraph\n database-create-function-graph databaseCreateFunctionGraph\n database-graph-init-empty-repo databaseGraphInitEmptyRepo\n database-graph-insert-node-at-path databaseGraphInsertNodeAtPath\n database-graph-insert-nodes-at-paths databaseGraphInsertNodesAtPaths\n database-graph-set-and-commit databaseGraphSetAndCommit\n database-graph-set-data-at-path databaseGraphSetDataAtPath\n database-graph-set-many-and-commit databaseGraphSetManyAndCommit\n database-import-definitions databaseImportDefinitions\n database-import-graph-json databaseImportGraphJson\n database-save-graph databaseSaveGraph\n database-start-execution databaseStartExecution\n database-validate-function-graph databaseValidateFunctionGraph\n function-execution-logs-append functionExecutionLogsAppend\n function-invocations-create-page functionInvocationsCreatePage\n function-invocations-create-sync functionInvocationsCreateSync\n import-definitions importDefinitions\n import-graph-json importGraphJson\n infra-init-empty-repo infraInitEmptyRepo\n infra-insert-node-at-path infraInsertNodeAtPath\n infra-insert-nodes-at-paths infraInsertNodesAtPaths\n infra-set-and-commit infraSetAndCommit\n infra-set-data-at-path infraSetDataAtPath\n infra-set-many-and-commit infraSetManyAndCommit\n init-empty-repo initEmptyRepo\n insert-node-at-path insertNodeAtPath\n insert-nodes-at-paths insertNodesAtPaths\n platform-function-execution-logs-append platformFunctionExecutionLogsAppend\n platform-function-invocations-create-page platformFunctionInvocationsCreatePage\n platform-function-invocations-create-sync platformFunctionInvocationsCreateSync\n platform-infra-init-empty-repo platformInfraInitEmptyRepo\n platform-infra-insert-node-at-path platformInfraInsertNodeAtPath\n platform-infra-insert-nodes-at-paths platformInfraInsertNodesAtPaths\n platform-infra-set-and-commit platformInfraSetAndCommit\n platform-infra-set-data-at-path platformInfraSetDataAtPath\n platform-infra-set-many-and-commit platformInfraSetManyAndCommit\n platform-resource-installations-install platformResourceInstallationsInstall\n platform-resource-installations-rollback platformResourceInstallationsRollback\n platform-resource-installations-uninstall platformResourceInstallationsUninstall\n platform-resource-installations-upgrade platformResourceInstallationsUpgrade\n provision-bucket Reconcile an S3 bucket for a logical bucket in the database.\nRecords the request on the bucket row via RLS; the bucket's job\ntrigger then enqueues the same storage:provision_bucket job used on\nINSERT, and repeated requests collapse into one pending job. This is\nidempotent for an already-reconciled bucket; failures become GraphQL\nerrors.\n resource-installations-install resourceInstallationsInstall\n resource-installations-rollback resourceInstallationsRollback\n resource-installations-uninstall resourceInstallationsUninstall\n resource-installations-upgrade resourceInstallationsUpgrade\n save-graph saveGraph\n set-and-commit setAndCommit\n set-data-at-path setDataAtPath\n set-many-and-commit setManyAndCommit\n start-execution startExecution\n validate-function-graph validateFunctionGraph\n\n --help, -h Show this help message\n --version, -v Show version\n"; export const commands = async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-cli/src/compute/cli/commands/build.ts b/sdk/constructive-cli/src/compute/cli/commands/build.ts index 5d263c986e..e08abf96f6 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/build.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/build.ts @@ -29,6 +29,8 @@ const fieldSchema: FieldSchema = { imageRef: 'string', jobId: 'int', logs: 'string', + logsUrl: 'string', + logsVersions: 'string', matrixKey: 'string', metadata: 'json', proposalId: 'uuid', diff --git a/sdk/constructive-cli/src/compute/cli/commands/create-function-graph.ts b/sdk/constructive-cli/src/compute/cli/commands/create-function-graph.ts new file mode 100644 index 0000000000..66d253466e --- /dev/null +++ b/sdk/constructive-cli/src/compute/cli/commands/create-function-graph.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation createFunctionGraph + * @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 { CreateFunctionGraphVariables } from '../../orm/mutation'; +import type { CreateFunctionGraphPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'create-function-graph - createFunctionGraph\n\nUsage: create-function-graph [OPTIONS]\n' + ); + process.exit(0); + } + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'input', + message: + 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', + required: true, + }, + ]); + const client = getClient(); + const parsedAnswers = unflattenDotNotation(answers); + const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); + const result = await client.mutation + .createFunctionGraph( + parsedAnswers as unknown as CreateFunctionGraphVariables, + { + select: selectFields, + } as unknown as { + select: CreateFunctionGraphPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: createFunctionGraph'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/compute/cli/commands/database-function-graph.ts b/sdk/constructive-cli/src/compute/cli/commands/database-function-graph.ts index aecc43c3f5..54e91b3f2c 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/database-function-graph.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/database-function-graph.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateDatabaseFunctionGraphInput, DatabaseFunctionGraphPatch, DatabaseFunctionGraphSelect, DatabaseFunctionGraphFilter, @@ -47,7 +46,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'get', 'create', 'update', 'delete'], + options: ['list', 'find-first', 'get', 'update', 'delete'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -66,8 +65,6 @@ async function handleTableSubcommand( return handleFindFirst(argv, prompter); case 'get': return handleGet(argv, prompter); - case 'create': - return handleCreate(argv, prompter); case 'update': return handleUpdate(argv, prompter); case 'delete': @@ -188,108 +185,6 @@ async function handleGet(argv: Partial>, prompter: Inqui process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'context', - message: 'context', - required: true, - }, - { - type: 'text', - name: 'createdBy', - message: 'createdBy', - required: true, - }, - { - type: 'text', - name: 'databaseId', - message: 'databaseId', - required: true, - }, - { - type: 'text', - name: 'definitionsCommitId', - message: 'definitionsCommitId', - required: true, - }, - { - type: 'text', - name: 'description', - message: 'description', - required: true, - }, - { - type: 'boolean', - name: 'isValid', - message: 'isValid', - required: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: true, - }, - { - type: 'text', - name: 'storeId', - message: 'storeId', - required: true, - }, - { - type: 'json', - name: 'validationErrors', - message: 'validationErrors', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateDatabaseFunctionGraphInput['databaseFunctionGraph']; - const client = getClient(); - const result = await client.databaseFunctionGraph - .create({ - data: { - context: cleanedData.context, - createdBy: cleanedData.createdBy, - databaseId: cleanedData.databaseId, - definitionsCommitId: cleanedData.definitionsCommitId, - description: cleanedData.description, - isValid: cleanedData.isValid, - name: cleanedData.name, - storeId: cleanedData.storeId, - validationErrors: cleanedData.validationErrors, - }, - select: { - context: true, - createdAt: true, - createdBy: true, - databaseId: true, - definitionsCommitId: true, - description: true, - id: true, - isValid: true, - name: true, - storeId: true, - updatedAt: true, - validationErrors: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} async function handleUpdate(argv: Partial>, prompter: Inquirerer) { try { const rawAnswers = await prompter.prompt(argv, [ diff --git a/sdk/constructive-cli/src/compute/cli/commands/database-graph-get-all-tree-nodes-record.ts b/sdk/constructive-cli/src/compute/cli/commands/database-graph-get-all-tree-nodes-record.ts index dfe58474b3..f2447260b7 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/database-graph-get-all-tree-nodes-record.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/database-graph-get-all-tree-nodes-record.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateDatabaseGraphGetAllTreeNodesRecordInput, DatabaseGraphGetAllTreeNodesRecordPatch, DatabaseGraphGetAllTreeNodesRecordSelect, DatabaseGraphGetAllTreeNodesRecordFilter, @@ -37,7 +36,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -54,8 +53,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -115,46 +112,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'json', - name: 'data', - message: 'data', - required: true, - }, - { - type: 'text', - name: 'path', - message: 'path', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateDatabaseGraphGetAllTreeNodesRecordInput['databaseGraphGetAllTreeNodesRecord']; - const client = getClient(); - const result = await client.databaseGraphGetAllTreeNodesRecord - .create({ - data: { - data: cleanedData.data, - path: cleanedData.path, - }, - select: { - data: true, - path: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/compute/cli/commands/function-graph.ts b/sdk/constructive-cli/src/compute/cli/commands/function-graph.ts index a83dd2610a..f85a4f5d54 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/function-graph.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/function-graph.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateFunctionGraphInput, FunctionGraphPatch, FunctionGraphSelect, FunctionGraphFilter, @@ -47,7 +46,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'get', 'create', 'update', 'delete'], + options: ['list', 'find-first', 'get', 'update', 'delete'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -66,8 +65,6 @@ async function handleTableSubcommand( return handleFindFirst(argv, prompter); case 'get': return handleGet(argv, prompter); - case 'create': - return handleCreate(argv, prompter); case 'update': return handleUpdate(argv, prompter); case 'delete': @@ -180,108 +177,6 @@ async function handleGet(argv: Partial>, prompter: Inqui process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'context', - message: 'context', - required: true, - }, - { - type: 'text', - name: 'createdBy', - message: 'createdBy', - required: true, - }, - { - type: 'text', - name: 'definitionsCommitId', - message: 'definitionsCommitId', - required: true, - }, - { - type: 'text', - name: 'description', - message: 'description', - required: true, - }, - { - type: 'boolean', - name: 'isValid', - message: 'isValid', - required: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: true, - }, - { - type: 'text', - name: 'scopeId', - message: 'scopeId', - required: true, - }, - { - type: 'text', - name: 'storeId', - message: 'storeId', - required: true, - }, - { - type: 'json', - name: 'validationErrors', - message: 'validationErrors', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateFunctionGraphInput['functionGraph']; - const client = getClient(); - const result = await client.functionGraph - .create({ - data: { - context: cleanedData.context, - createdBy: cleanedData.createdBy, - definitionsCommitId: cleanedData.definitionsCommitId, - description: cleanedData.description, - isValid: cleanedData.isValid, - name: cleanedData.name, - scopeId: cleanedData.scopeId, - storeId: cleanedData.storeId, - validationErrors: cleanedData.validationErrors, - }, - select: { - context: true, - createdAt: true, - createdBy: true, - definitionsCommitId: true, - description: true, - id: true, - isValid: true, - name: true, - scopeId: true, - storeId: true, - updatedAt: true, - validationErrors: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} async function handleUpdate(argv: Partial>, prompter: Inquirerer) { try { const rawAnswers = await prompter.prompt(argv, [ diff --git a/sdk/constructive-cli/src/compute/cli/commands/get-all-tree-nodes-record.ts b/sdk/constructive-cli/src/compute/cli/commands/get-all-tree-nodes-record.ts index 31c495de36..72a4fd0cd9 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/get-all-tree-nodes-record.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/get-all-tree-nodes-record.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateGetAllTreeNodesRecordInput, GetAllTreeNodesRecordPatch, GetAllTreeNodesRecordSelect, GetAllTreeNodesRecordFilter, @@ -37,7 +36,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -54,8 +53,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -113,46 +110,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'json', - name: 'data', - message: 'data', - required: true, - }, - { - type: 'text', - name: 'path', - message: 'path', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateGetAllTreeNodesRecordInput['getAllTreeNodesRecord']; - const client = getClient(); - const result = await client.getAllTreeNodesRecord - .create({ - data: { - data: cleanedData.data, - path: cleanedData.path, - }, - select: { - data: true, - path: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/compute/cli/commands/infra-get-all-tree-nodes-record.ts b/sdk/constructive-cli/src/compute/cli/commands/infra-get-all-tree-nodes-record.ts index e269d06e08..d1def16bd0 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/infra-get-all-tree-nodes-record.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/infra-get-all-tree-nodes-record.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateInfraGetAllTreeNodesRecordInput, InfraGetAllTreeNodesRecordPatch, InfraGetAllTreeNodesRecordSelect, InfraGetAllTreeNodesRecordFilter, @@ -37,7 +36,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -54,8 +53,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -113,46 +110,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'json', - name: 'data', - message: 'data', - required: true, - }, - { - type: 'text', - name: 'path', - message: 'path', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateInfraGetAllTreeNodesRecordInput['infraGetAllTreeNodesRecord']; - const client = getClient(); - const result = await client.infraGetAllTreeNodesRecord - .create({ - data: { - data: cleanedData.data, - path: cleanedData.path, - }, - select: { - data: true, - path: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/compute/cli/commands/integration-provider.ts b/sdk/constructive-cli/src/compute/cli/commands/integration-provider.ts index a498efe701..a6af27158e 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/integration-provider.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/integration-provider.ts @@ -23,6 +23,8 @@ const fieldSchema: FieldSchema = { icon: 'string', id: 'uuid', logo: 'string', + logoUrl: 'string', + logoVersions: 'string', name: 'string', requiredConfigs: 'string', requiredSecrets: 'string', diff --git a/sdk/constructive-cli/src/compute/cli/commands/platform-build.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-build.ts index 41f5e875cf..d18155d227 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/platform-build.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-build.ts @@ -28,6 +28,8 @@ const fieldSchema: FieldSchema = { imageRef: 'string', jobId: 'int', logs: 'string', + logsUrl: 'string', + logsVersions: 'string', matrixKey: 'string', metadata: 'json', proposalId: 'uuid', diff --git a/sdk/constructive-cli/src/compute/cli/commands/platform-infra-get-all-tree-nodes-record.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-infra-get-all-tree-nodes-record.ts index 6283b9d768..6282f9ac8b 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/platform-infra-get-all-tree-nodes-record.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-infra-get-all-tree-nodes-record.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreatePlatformInfraGetAllTreeNodesRecordInput, PlatformInfraGetAllTreeNodesRecordPatch, PlatformInfraGetAllTreeNodesRecordSelect, PlatformInfraGetAllTreeNodesRecordFilter, @@ -37,7 +36,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -54,8 +53,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -115,46 +112,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'json', - name: 'data', - message: 'data', - required: true, - }, - { - type: 'text', - name: 'path', - message: 'path', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreatePlatformInfraGetAllTreeNodesRecordInput['platformInfraGetAllTreeNodesRecord']; - const client = getClient(); - const result = await client.platformInfraGetAllTreeNodesRecord - .create({ - data: { - data: cleanedData.data, - path: cleanedData.path, - }, - select: { - data: true, - path: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/compute/cli/commands/platform-proposal-comment.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-proposal-comment.ts index dff5e671ed..1d7acad2ea 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/platform-proposal-comment.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-proposal-comment.ts @@ -18,12 +18,16 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { actorId: 'uuid', attachments: 'string', + attachmentsUrl: 'string', + attachmentsVersions: 'string', body: 'string', bodyTrgmSimilarity: 'float', createdAt: 'string', createdBy: 'uuid', createdByPrincipal: 'uuid', embedding: 'string', + embeddingModel: 'string', + embeddingModelTrgmSimilarity: 'float', embeddingUpdatedAt: 'string', embeddingVectorDistance: 'float', id: 'uuid', @@ -196,6 +200,10 @@ async function handleSearch(argv: Partial>, _prompter: I value: query, threshold: 0.3, }, + trgmEmbeddingModel: { + value: query, + threshold: 0.3, + }, trgmPath: { value: query, threshold: 0.3, diff --git a/sdk/constructive-cli/src/compute/cli/commands/platform-proposal.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-proposal.ts index f5aea1030a..881c967e99 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/platform-proposal.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-proposal.ts @@ -27,6 +27,8 @@ const fieldSchema: FieldSchema = { decidedAt: 'string', dueAt: 'string', embedding: 'string', + embeddingModel: 'string', + embeddingModelTrgmSimilarity: 'float', embeddingUpdatedAt: 'string', embeddingVectorDistance: 'float', id: 'uuid', @@ -236,6 +238,10 @@ async function handleSearch(argv: Partial>, _prompter: I value: query, threshold: 0.3, }, + trgmEmbeddingModel: { + value: query, + threshold: 0.3, + }, trgmKind: { value: query, threshold: 0.3, diff --git a/sdk/constructive-cli/src/compute/cli/commands/platform-repository.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-repository.ts index de65dc3034..88e3435fde 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/platform-repository.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-repository.ts @@ -26,6 +26,8 @@ const fieldSchema: FieldSchema = { description: 'string', descriptionTrgmSimilarity: 'float', embedding: 'string', + embeddingModel: 'string', + embeddingModelTrgmSimilarity: 'float', embeddingUpdatedAt: 'string', embeddingVectorDistance: 'float', externalId: 'string', @@ -219,6 +221,10 @@ async function handleSearch(argv: Partial>, _prompter: I value: query, threshold: 0.3, }, + trgmEmbeddingModel: { + value: query, + threshold: 0.3, + }, trgmExternalId: { value: query, threshold: 0.3, diff --git a/sdk/constructive-cli/src/compute/cli/commands/platform-resource-declared-capacity.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-resource-declared-capacity.ts index f75ec770cd..2ccb7efe79 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/platform-resource-declared-capacity.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-resource-declared-capacity.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreatePlatformResourceDeclaredCapacityInput, PlatformResourceDeclaredCapacityPatch, PlatformResourceDeclaredCapacitySelect, PlatformResourceDeclaredCapacityFilter, @@ -49,7 +48,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -66,8 +65,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -149,142 +146,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'cpuLimitMillicores', - message: 'cpuLimitMillicores', - required: true, - }, - { - type: 'text', - name: 'cpuRequestMillicores', - message: 'cpuRequestMillicores', - required: true, - }, - { - type: 'text', - name: 'installationId', - message: 'installationId', - required: true, - }, - { - type: 'boolean', - name: 'isTransient', - message: 'isTransient', - required: true, - }, - { - type: 'text', - name: 'kind', - message: 'kind', - required: true, - }, - { - type: 'text', - name: 'memoryLimitBytes', - message: 'memoryLimitBytes', - required: true, - }, - { - type: 'text', - name: 'memoryRequestBytes', - message: 'memoryRequestBytes', - required: true, - }, - { - type: 'text', - name: 'namespaceId', - message: 'namespaceId', - required: true, - }, - { - type: 'text', - name: 'podCountMax', - message: 'podCountMax', - required: true, - }, - { - type: 'text', - name: 'podCountMin', - message: 'podCountMin', - required: true, - }, - { - type: 'text', - name: 'source', - message: 'source', - required: true, - }, - { - type: 'text', - name: 'sourceId', - message: 'sourceId', - required: true, - }, - { - type: 'text', - name: 'storageSizeBytes', - message: 'storageSizeBytes', - required: true, - }, - { - type: 'text', - name: 'storageTotalBytes', - message: 'storageTotalBytes', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreatePlatformResourceDeclaredCapacityInput['platformResourceDeclaredCapacity']; - const client = getClient(); - const result = await client.platformResourceDeclaredCapacity - .create({ - data: { - cpuLimitMillicores: cleanedData.cpuLimitMillicores, - cpuRequestMillicores: cleanedData.cpuRequestMillicores, - installationId: cleanedData.installationId, - isTransient: cleanedData.isTransient, - kind: cleanedData.kind, - memoryLimitBytes: cleanedData.memoryLimitBytes, - memoryRequestBytes: cleanedData.memoryRequestBytes, - namespaceId: cleanedData.namespaceId, - podCountMax: cleanedData.podCountMax, - podCountMin: cleanedData.podCountMin, - source: cleanedData.source, - sourceId: cleanedData.sourceId, - storageSizeBytes: cleanedData.storageSizeBytes, - storageTotalBytes: cleanedData.storageTotalBytes, - }, - select: { - cpuLimitMillicores: true, - cpuRequestMillicores: true, - installationId: true, - isTransient: true, - kind: true, - memoryLimitBytes: true, - memoryRequestBytes: true, - namespaceId: true, - podCountMax: true, - podCountMin: true, - source: true, - sourceId: true, - storageSizeBytes: true, - storageTotalBytes: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/compute/cli/commands/platform-resource-observed-storage.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-resource-observed-storage.ts index 6e739bbb6c..d31ba73a11 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/platform-resource-observed-storage.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-resource-observed-storage.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreatePlatformResourceObservedStorageInput, PlatformResourceObservedStoragePatch, PlatformResourceObservedStorageSelect, PlatformResourceObservedStorageFilter, @@ -53,7 +52,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -70,8 +69,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -161,174 +158,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'capacity', - message: 'capacity', - required: true, - }, - { - type: 'text', - name: 'capacityBytes', - message: 'capacityBytes', - required: true, - }, - { - type: 'text', - name: 'claimName', - message: 'claimName', - required: true, - }, - { - type: 'text', - name: 'declaredStorageClass', - message: 'declaredStorageClass', - required: true, - }, - { - type: 'text', - name: 'declaredStorageSizeBytes', - message: 'declaredStorageSizeBytes', - required: true, - }, - { - type: 'text', - name: 'declaredStorageTotalBytes', - message: 'declaredStorageTotalBytes', - required: true, - }, - { - type: 'text', - name: 'installationId', - message: 'installationId', - required: true, - }, - { - type: 'boolean', - name: 'isBound', - message: 'isBound', - required: true, - }, - { - type: 'text', - name: 'kind', - message: 'kind', - required: true, - }, - { - type: 'text', - name: 'namespaceId', - message: 'namespaceId', - required: true, - }, - { - type: 'text', - name: 'phase', - message: 'phase', - required: true, - }, - { - type: 'text', - name: 'requested', - message: 'requested', - required: true, - }, - { - type: 'text', - name: 'requestedBytes', - message: 'requestedBytes', - required: true, - }, - { - type: 'text', - name: 'resourceId', - message: 'resourceId', - required: true, - }, - { - type: 'text', - name: 'resourceStatus', - message: 'resourceStatus', - required: true, - }, - { - type: 'text', - name: 'slug', - message: 'slug', - required: true, - }, - { - type: 'text', - name: 'storageClass', - message: 'storageClass', - required: true, - }, - { - type: 'text', - name: 'storageName', - message: 'storageName', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreatePlatformResourceObservedStorageInput['platformResourceObservedStorage']; - const client = getClient(); - const result = await client.platformResourceObservedStorage - .create({ - data: { - capacity: cleanedData.capacity, - capacityBytes: cleanedData.capacityBytes, - claimName: cleanedData.claimName, - declaredStorageClass: cleanedData.declaredStorageClass, - declaredStorageSizeBytes: cleanedData.declaredStorageSizeBytes, - declaredStorageTotalBytes: cleanedData.declaredStorageTotalBytes, - installationId: cleanedData.installationId, - isBound: cleanedData.isBound, - kind: cleanedData.kind, - namespaceId: cleanedData.namespaceId, - phase: cleanedData.phase, - requested: cleanedData.requested, - requestedBytes: cleanedData.requestedBytes, - resourceId: cleanedData.resourceId, - resourceStatus: cleanedData.resourceStatus, - slug: cleanedData.slug, - storageClass: cleanedData.storageClass, - storageName: cleanedData.storageName, - }, - select: { - capacity: true, - capacityBytes: true, - claimName: true, - declaredStorageClass: true, - declaredStorageSizeBytes: true, - declaredStorageTotalBytes: true, - installationId: true, - isBound: true, - kind: true, - namespaceId: true, - phase: true, - requested: true, - requestedBytes: true, - resourceId: true, - resourceStatus: true, - slug: true, - storageClass: true, - storageName: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/compute/cli/commands/platform-resource-utilization.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-resource-utilization.ts index 9581ffc9f8..7d7d216993 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/platform-resource-utilization.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-resource-utilization.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreatePlatformResourceUtilizationInput, PlatformResourceUtilizationPatch, PlatformResourceUtilizationSelect, PlatformResourceUtilizationFilter, @@ -54,7 +53,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -71,8 +70,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -164,182 +161,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'avgMemoryBytes', - message: 'avgMemoryBytes', - required: true, - }, - { - type: 'text', - name: 'cpuLimitMillicores', - message: 'cpuLimitMillicores', - required: true, - }, - { - type: 'text', - name: 'cpuPeakUtilization', - message: 'cpuPeakUtilization', - required: true, - }, - { - type: 'text', - name: 'cpuRequestHeadroomMillicores', - message: 'cpuRequestHeadroomMillicores', - required: true, - }, - { - type: 'text', - name: 'cpuRequestMillicores', - message: 'cpuRequestMillicores', - required: true, - }, - { - type: 'text', - name: 'date', - message: 'date', - required: true, - }, - { - type: 'text', - name: 'gbSeconds', - message: 'gbSeconds', - required: true, - }, - { - type: 'text', - name: 'kind', - message: 'kind', - required: true, - }, - { - type: 'text', - name: 'maxCpuMillicores', - message: 'maxCpuMillicores', - required: true, - }, - { - type: 'text', - name: 'maxMemoryBytes', - message: 'maxMemoryBytes', - required: true, - }, - { - type: 'text', - name: 'memoryLimitBytes', - message: 'memoryLimitBytes', - required: true, - }, - { - type: 'text', - name: 'memoryPeakUtilization', - message: 'memoryPeakUtilization', - required: true, - }, - { - type: 'text', - name: 'memoryRequestBytes', - message: 'memoryRequestBytes', - required: true, - }, - { - type: 'text', - name: 'memoryRequestHeadroomBytes', - message: 'memoryRequestHeadroomBytes', - required: true, - }, - { - type: 'text', - name: 'namespaceId', - message: 'namespaceId', - required: true, - }, - { - type: 'text', - name: 'replicas', - message: 'replicas', - required: true, - }, - { - type: 'text', - name: 'resourceId', - message: 'resourceId', - required: true, - }, - { - type: 'text', - name: 'runtimeSeconds', - message: 'runtimeSeconds', - required: true, - }, - { - type: 'text', - name: 'sampleCount', - message: 'sampleCount', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreatePlatformResourceUtilizationInput['platformResourceUtilization']; - const client = getClient(); - const result = await client.platformResourceUtilization - .create({ - data: { - avgMemoryBytes: cleanedData.avgMemoryBytes, - cpuLimitMillicores: cleanedData.cpuLimitMillicores, - cpuPeakUtilization: cleanedData.cpuPeakUtilization, - cpuRequestHeadroomMillicores: cleanedData.cpuRequestHeadroomMillicores, - cpuRequestMillicores: cleanedData.cpuRequestMillicores, - date: cleanedData.date, - gbSeconds: cleanedData.gbSeconds, - kind: cleanedData.kind, - maxCpuMillicores: cleanedData.maxCpuMillicores, - maxMemoryBytes: cleanedData.maxMemoryBytes, - memoryLimitBytes: cleanedData.memoryLimitBytes, - memoryPeakUtilization: cleanedData.memoryPeakUtilization, - memoryRequestBytes: cleanedData.memoryRequestBytes, - memoryRequestHeadroomBytes: cleanedData.memoryRequestHeadroomBytes, - namespaceId: cleanedData.namespaceId, - replicas: cleanedData.replicas, - resourceId: cleanedData.resourceId, - runtimeSeconds: cleanedData.runtimeSeconds, - sampleCount: cleanedData.sampleCount, - }, - select: { - avgMemoryBytes: true, - cpuLimitMillicores: true, - cpuPeakUtilization: true, - cpuRequestHeadroomMillicores: true, - cpuRequestMillicores: true, - date: true, - gbSeconds: true, - kind: true, - maxCpuMillicores: true, - maxMemoryBytes: true, - memoryLimitBytes: true, - memoryPeakUtilization: true, - memoryRequestBytes: true, - memoryRequestHeadroomBytes: true, - namespaceId: true, - replicas: true, - resourceId: true, - runtimeSeconds: true, - sampleCount: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/compute/cli/commands/platform-resources-health.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-resources-health.ts index cea3a6b3c7..53fb0e852d 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/platform-resources-health.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-resources-health.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreatePlatformResourcesHealthInput, PlatformResourcesHealthPatch, PlatformResourcesHealthSelect, PlatformResourcesHealthFilter, @@ -70,7 +69,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -87,8 +86,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -212,289 +209,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'json', - name: 'annotations', - message: 'annotations', - required: true, - }, - { - type: 'text', - name: 'cpuLimitMillicores', - message: 'cpuLimitMillicores', - required: true, - }, - { - type: 'text', - name: 'cpuRequestMillicores', - message: 'cpuRequestMillicores', - required: true, - }, - { - type: 'text', - name: 'createdBy', - message: 'createdBy', - required: true, - }, - { - type: 'text', - name: 'createdByPrincipal', - message: 'createdByPrincipal', - required: true, - }, - { - type: 'text', - name: 'errorCount', - message: 'errorCount', - required: true, - }, - { - type: 'text', - name: 'imageRef', - message: 'imageRef', - required: true, - }, - { - type: 'text', - name: 'installationId', - message: 'installationId', - required: true, - }, - { - type: 'text', - name: 'integrations', - message: 'integrations', - required: true, - }, - { - type: 'text', - name: 'kind', - message: 'kind', - required: true, - }, - { - type: 'json', - name: 'labels', - message: 'labels', - required: true, - }, - { - type: 'text', - name: 'lastError', - message: 'lastError', - required: true, - }, - { - type: 'text', - name: 'lastHeartbeatAt', - message: 'lastHeartbeatAt', - required: true, - }, - { - type: 'text', - name: 'memoryLimitBytes', - message: 'memoryLimitBytes', - required: true, - }, - { - type: 'text', - name: 'memoryRequestBytes', - message: 'memoryRequestBytes', - required: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: true, - }, - { - type: 'text', - name: 'namespaceId', - message: 'namespaceId', - required: true, - }, - { - type: 'text', - name: 'realm', - message: 'realm', - required: true, - }, - { - type: 'text', - name: 'replicas', - message: 'replicas', - required: true, - }, - { - type: 'text', - name: 'requiredConfigs', - message: 'requiredConfigs', - required: true, - }, - { - type: 'text', - name: 'requiredSecrets', - message: 'requiredSecrets', - required: true, - }, - { - type: 'text', - name: 'resourceDefinitionId', - message: 'resourceDefinitionId', - required: true, - }, - { - type: 'text', - name: 'slug', - message: 'slug', - required: true, - }, - { - type: 'json', - name: 'spec', - message: 'spec', - required: true, - }, - { - type: 'text', - name: 'status', - message: 'status', - required: true, - }, - { - type: 'text', - name: 'statusDetail', - message: 'statusDetail', - required: true, - }, - { - type: 'json', - name: 'statusObserved', - message: 'statusObserved', - required: true, - }, - { - type: 'text', - name: 'storageClass', - message: 'storageClass', - required: true, - }, - { - type: 'text', - name: 'storageSizeBytes', - message: 'storageSizeBytes', - required: true, - }, - { - type: 'text', - name: 'storageTotalBytes', - message: 'storageTotalBytes', - required: true, - }, - { - type: 'text', - name: 'updatedBy', - message: 'updatedBy', - required: true, - }, - { - type: 'text', - name: 'updatedByPrincipal', - message: 'updatedByPrincipal', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreatePlatformResourcesHealthInput['platformResourcesHealth']; - const client = getClient(); - const result = await client.platformResourcesHealth - .create({ - data: { - annotations: cleanedData.annotations, - cpuLimitMillicores: cleanedData.cpuLimitMillicores, - cpuRequestMillicores: cleanedData.cpuRequestMillicores, - createdBy: cleanedData.createdBy, - createdByPrincipal: cleanedData.createdByPrincipal, - errorCount: cleanedData.errorCount, - imageRef: cleanedData.imageRef, - installationId: cleanedData.installationId, - integrations: cleanedData.integrations, - kind: cleanedData.kind, - labels: cleanedData.labels, - lastError: cleanedData.lastError, - lastHeartbeatAt: cleanedData.lastHeartbeatAt, - memoryLimitBytes: cleanedData.memoryLimitBytes, - memoryRequestBytes: cleanedData.memoryRequestBytes, - name: cleanedData.name, - namespaceId: cleanedData.namespaceId, - realm: cleanedData.realm, - replicas: cleanedData.replicas, - requiredConfigs: cleanedData.requiredConfigs, - requiredSecrets: cleanedData.requiredSecrets, - resourceDefinitionId: cleanedData.resourceDefinitionId, - slug: cleanedData.slug, - spec: cleanedData.spec, - status: cleanedData.status, - statusDetail: cleanedData.statusDetail, - statusObserved: cleanedData.statusObserved, - storageClass: cleanedData.storageClass, - storageSizeBytes: cleanedData.storageSizeBytes, - storageTotalBytes: cleanedData.storageTotalBytes, - updatedBy: cleanedData.updatedBy, - updatedByPrincipal: cleanedData.updatedByPrincipal, - }, - select: { - annotations: true, - cpuLimitMillicores: true, - cpuRequestMillicores: true, - createdAt: true, - createdBy: true, - createdByPrincipal: true, - errorCount: true, - id: true, - imageRef: true, - installationId: true, - integrations: true, - kind: true, - labels: true, - lastError: true, - lastHeartbeatAt: true, - memoryLimitBytes: true, - memoryRequestBytes: true, - name: true, - namespaceId: true, - realm: true, - replicas: true, - requiredConfigs: true, - requiredSecrets: true, - resourceDefinitionId: true, - slug: true, - spec: true, - status: true, - statusDetail: true, - statusObserved: true, - storageClass: true, - storageSizeBytes: true, - storageTotalBytes: true, - updatedAt: true, - updatedBy: true, - updatedByPrincipal: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/compute/cli/commands/platform-resources-requirements-state.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-resources-requirements-state.ts index 1ce47d2c3b..603fe8b32c 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/platform-resources-requirements-state.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-resources-requirements-state.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreatePlatformResourcesRequirementsStateInput, PlatformResourcesRequirementsStatePatch, PlatformResourcesRequirementsStateSelect, PlatformResourcesRequirementsStateFilter, @@ -42,7 +41,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -59,8 +58,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -130,86 +127,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'configHash', - message: 'configHash', - required: true, - }, - { - type: 'text', - name: 'configObjectName', - message: 'configObjectName', - required: true, - }, - { - type: 'text', - name: 'requirementsHash', - message: 'requirementsHash', - required: true, - }, - { - type: 'text', - name: 'resourceId', - message: 'resourceId', - required: true, - }, - { - type: 'text', - name: 'secretsHash', - message: 'secretsHash', - required: true, - }, - { - type: 'text', - name: 'secretsObjectName', - message: 'secretsObjectName', - required: true, - }, - { - type: 'text', - name: 'slug', - message: 'slug', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreatePlatformResourcesRequirementsStateInput['platformResourcesRequirementsState']; - const client = getClient(); - const result = await client.platformResourcesRequirementsState - .create({ - data: { - configHash: cleanedData.configHash, - configObjectName: cleanedData.configObjectName, - requirementsHash: cleanedData.requirementsHash, - resourceId: cleanedData.resourceId, - secretsHash: cleanedData.secretsHash, - secretsObjectName: cleanedData.secretsObjectName, - slug: cleanedData.slug, - }, - select: { - configHash: true, - configObjectName: true, - requirementsHash: true, - resourceId: true, - secretsHash: true, - secretsObjectName: true, - slug: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/compute/cli/commands/platform-resources-resolved-requirement.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-resources-resolved-requirement.ts index d0be9608b4..4ce290fbe5 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/platform-resources-resolved-requirement.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-resources-resolved-requirement.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreatePlatformResourcesResolvedRequirementInput, PlatformResourcesResolvedRequirementPatch, PlatformResourcesResolvedRequirementSelect, PlatformResourcesResolvedRequirementFilter, @@ -46,7 +45,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -63,8 +62,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -144,118 +141,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'atomId', - message: 'atomId', - required: true, - }, - { - type: 'text', - name: 'configObjectName', - message: 'configObjectName', - required: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: true, - }, - { - type: 'text', - name: 'namespaceId', - message: 'namespaceId', - required: true, - }, - { - type: 'boolean', - name: 'present', - message: 'present', - required: true, - }, - { - type: 'text', - name: 'realm', - message: 'realm', - required: true, - }, - { - type: 'boolean', - name: 'required', - message: 'required', - required: true, - }, - { - type: 'text', - name: 'requirementKind', - message: 'requirementKind', - required: true, - }, - { - type: 'text', - name: 'resourceId', - message: 'resourceId', - required: true, - }, - { - type: 'text', - name: 'secretsObjectName', - message: 'secretsObjectName', - required: true, - }, - { - type: 'text', - name: 'slug', - message: 'slug', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreatePlatformResourcesResolvedRequirementInput['platformResourcesResolvedRequirement']; - const client = getClient(); - const result = await client.platformResourcesResolvedRequirement - .create({ - data: { - atomId: cleanedData.atomId, - configObjectName: cleanedData.configObjectName, - name: cleanedData.name, - namespaceId: cleanedData.namespaceId, - present: cleanedData.present, - realm: cleanedData.realm, - required: cleanedData.required, - requirementKind: cleanedData.requirementKind, - resourceId: cleanedData.resourceId, - secretsObjectName: cleanedData.secretsObjectName, - slug: cleanedData.slug, - }, - select: { - atomId: true, - configObjectName: true, - name: true, - namespaceId: true, - present: true, - realm: true, - required: true, - requirementKind: true, - resourceId: true, - secretsObjectName: true, - slug: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/compute/cli/commands/platform-builder-binding.ts b/sdk/constructive-cli/src/compute/cli/commands/platform-service-binding.ts similarity index 84% rename from sdk/constructive-cli/src/compute/cli/commands/platform-builder-binding.ts rename to sdk/constructive-cli/src/compute/cli/commands/platform-service-binding.ts index a58bb731f5..2696642efb 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/platform-builder-binding.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/platform-service-binding.ts @@ -1,5 +1,5 @@ /** - * CLI commands for PlatformBuilderBinding + * CLI commands for PlatformServiceBinding * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -8,11 +8,11 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreatePlatformBuilderBindingInput, - PlatformBuilderBindingPatch, - PlatformBuilderBindingSelect, - PlatformBuilderBindingFilter, - PlatformBuilderBindingOrderBy, + CreatePlatformServiceBindingInput, + PlatformServiceBindingPatch, + PlatformServiceBindingSelect, + PlatformServiceBindingFilter, + PlatformServiceBindingOrderBy, } from '../../orm/input-types'; import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { @@ -21,6 +21,8 @@ const fieldSchema: FieldSchema = { createdByPrincipal: 'uuid', id: 'uuid', installationId: 'uuid', + installationScope: 'string', + kind: 'string', lastError: 'string', metadata: 'json', namespaceId: 'uuid', @@ -32,7 +34,7 @@ const fieldSchema: FieldSchema = { updatedByPrincipal: 'uuid', }; const usage = - '\nplatform-builder-binding \n\nCommands:\n list List platformBuilderBinding records\n find-first Find first matching platformBuilderBinding record\n get Get a platformBuilderBinding by ID\n create Create a new platformBuilderBinding\n update Update an existing platformBuilderBinding\n delete Delete a platformBuilderBinding\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; + '\nplatform-service-binding \n\nCommands:\n list List platformServiceBinding records\n find-first Find first matching platformServiceBinding record\n get Get a platformServiceBinding by ID\n create Create a new platformServiceBinding\n update Update an existing platformServiceBinding\n delete Delete a platformServiceBinding\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; export default async ( argv: Partial>, prompter: Inquirerer, @@ -87,6 +89,8 @@ async function handleList(argv: Partial>, _prompter: Inq createdByPrincipal: true, id: true, installationId: true, + installationScope: true, + kind: true, lastError: true, metadata: true, namespaceId: true, @@ -99,15 +103,15 @@ async function handleList(argv: Partial>, _prompter: Inq }; const findManyArgs = parseFindManyArgs< FindManyArgs< - PlatformBuilderBindingSelect, - PlatformBuilderBindingFilter, - PlatformBuilderBindingOrderBy + PlatformServiceBindingSelect, + PlatformServiceBindingFilter, + PlatformServiceBindingOrderBy > & { - select: PlatformBuilderBindingSelect; + select: PlatformServiceBindingSelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.platformBuilderBinding.findMany(findManyArgs).execute(); + const result = await client.platformServiceBinding.findMany(findManyArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to list records.'); @@ -125,6 +129,8 @@ async function handleFindFirst(argv: Partial>, _prompter createdByPrincipal: true, id: true, installationId: true, + installationScope: true, + kind: true, lastError: true, metadata: true, namespaceId: true, @@ -137,15 +143,15 @@ async function handleFindFirst(argv: Partial>, _prompter }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< - PlatformBuilderBindingSelect, - PlatformBuilderBindingFilter, - PlatformBuilderBindingOrderBy + PlatformServiceBindingSelect, + PlatformServiceBindingFilter, + PlatformServiceBindingOrderBy > & { - select: PlatformBuilderBindingSelect; + select: PlatformServiceBindingSelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.platformBuilderBinding.findFirst(findFirstArgs).execute(); + const result = await client.platformServiceBinding.findFirst(findFirstArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to find record.'); @@ -166,7 +172,7 @@ async function handleGet(argv: Partial>, prompter: Inqui }, ]); const client = getClient(); - const result = await client.platformBuilderBinding + const result = await client.platformServiceBinding .findOne({ id: answers.id as string, select: { @@ -175,6 +181,8 @@ async function handleGet(argv: Partial>, prompter: Inqui createdByPrincipal: true, id: true, installationId: true, + installationScope: true, + kind: true, lastError: true, metadata: true, namespaceId: true, @@ -219,6 +227,18 @@ async function handleCreate(argv: Partial>, prompter: In message: 'installationId', required: true, }, + { + type: 'text', + name: 'installationScope', + message: 'installationScope', + required: true, + }, + { + type: 'text', + name: 'kind', + message: 'kind', + required: true, + }, { type: 'text', name: 'lastError', @@ -279,14 +299,16 @@ async function handleCreate(argv: Partial>, prompter: In const cleanedData = stripUndefined( answers, fieldSchema - ) as CreatePlatformBuilderBindingInput['platformBuilderBinding']; + ) as CreatePlatformServiceBindingInput['platformServiceBinding']; const client = getClient(); - const result = await client.platformBuilderBinding + const result = await client.platformServiceBinding .create({ data: { createdBy: cleanedData.createdBy, createdByPrincipal: cleanedData.createdByPrincipal, installationId: cleanedData.installationId, + installationScope: cleanedData.installationScope, + kind: cleanedData.kind, lastError: cleanedData.lastError, metadata: cleanedData.metadata, namespaceId: cleanedData.namespaceId, @@ -302,6 +324,8 @@ async function handleCreate(argv: Partial>, prompter: In createdByPrincipal: true, id: true, installationId: true, + installationScope: true, + kind: true, lastError: true, metadata: true, namespaceId: true, @@ -352,6 +376,18 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'installationId', required: false, }, + { + type: 'text', + name: 'installationScope', + message: 'installationScope', + required: false, + }, + { + type: 'text', + name: 'kind', + message: 'kind', + required: false, + }, { type: 'text', name: 'lastError', @@ -409,9 +445,9 @@ async function handleUpdate(argv: Partial>, prompter: In }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as PlatformBuilderBindingPatch; + const cleanedData = stripUndefined(answers, fieldSchema) as PlatformServiceBindingPatch; const client = getClient(); - const result = await client.platformBuilderBinding + const result = await client.platformServiceBinding .update({ where: { id: answers.id as string, @@ -420,6 +456,8 @@ async function handleUpdate(argv: Partial>, prompter: In createdBy: cleanedData.createdBy, createdByPrincipal: cleanedData.createdByPrincipal, installationId: cleanedData.installationId, + installationScope: cleanedData.installationScope, + kind: cleanedData.kind, lastError: cleanedData.lastError, metadata: cleanedData.metadata, namespaceId: cleanedData.namespaceId, @@ -435,6 +473,8 @@ async function handleUpdate(argv: Partial>, prompter: In createdByPrincipal: true, id: true, installationId: true, + installationScope: true, + kind: true, lastError: true, metadata: true, namespaceId: true, @@ -468,7 +508,7 @@ async function handleDelete(argv: Partial>, prompter: In ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const client = getClient(); - const result = await client.platformBuilderBinding + const result = await client.platformServiceBinding .delete({ where: { id: answers.id as string, diff --git a/sdk/constructive-cli/src/compute/cli/commands/proposal-comment.ts b/sdk/constructive-cli/src/compute/cli/commands/proposal-comment.ts index a5c3983227..7c67a1dea0 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/proposal-comment.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/proposal-comment.ts @@ -18,6 +18,8 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { actorId: 'uuid', attachments: 'string', + attachmentsUrl: 'string', + attachmentsVersions: 'string', body: 'string', bodyTrgmSimilarity: 'float', createdAt: 'string', @@ -25,6 +27,8 @@ const fieldSchema: FieldSchema = { createdByPrincipal: 'uuid', databaseId: 'uuid', embedding: 'string', + embeddingModel: 'string', + embeddingModelTrgmSimilarity: 'float', embeddingUpdatedAt: 'string', embeddingVectorDistance: 'float', id: 'uuid', @@ -189,6 +193,10 @@ async function handleSearch(argv: Partial>, _prompter: I value: query, threshold: 0.3, }, + trgmEmbeddingModel: { + value: query, + threshold: 0.3, + }, trgmPath: { value: query, threshold: 0.3, diff --git a/sdk/constructive-cli/src/compute/cli/commands/proposal.ts b/sdk/constructive-cli/src/compute/cli/commands/proposal.ts index e234a05877..de10b15a23 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/proposal.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/proposal.ts @@ -28,6 +28,8 @@ const fieldSchema: FieldSchema = { decidedAt: 'string', dueAt: 'string', embedding: 'string', + embeddingModel: 'string', + embeddingModelTrgmSimilarity: 'float', embeddingUpdatedAt: 'string', embeddingVectorDistance: 'float', id: 'uuid', @@ -237,6 +239,10 @@ async function handleSearch(argv: Partial>, _prompter: I value: query, threshold: 0.3, }, + trgmEmbeddingModel: { + value: query, + threshold: 0.3, + }, trgmKind: { value: query, threshold: 0.3, diff --git a/sdk/constructive-cli/src/compute/cli/commands/repository.ts b/sdk/constructive-cli/src/compute/cli/commands/repository.ts index 84be0a6415..f30f6a236f 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/repository.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/repository.ts @@ -27,6 +27,8 @@ const fieldSchema: FieldSchema = { description: 'string', descriptionTrgmSimilarity: 'float', embedding: 'string', + embeddingModel: 'string', + embeddingModelTrgmSimilarity: 'float', embeddingUpdatedAt: 'string', embeddingVectorDistance: 'float', externalId: 'string', @@ -214,6 +216,10 @@ async function handleSearch(argv: Partial>, _prompter: I value: query, threshold: 0.3, }, + trgmEmbeddingModel: { + value: query, + threshold: 0.3, + }, trgmExternalId: { value: query, threshold: 0.3, diff --git a/sdk/constructive-cli/src/compute/cli/commands/resource-declared-capacity.ts b/sdk/constructive-cli/src/compute/cli/commands/resource-declared-capacity.ts index 19c05f90f9..768ce9e132 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/resource-declared-capacity.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/resource-declared-capacity.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateResourceDeclaredCapacityInput, ResourceDeclaredCapacityPatch, ResourceDeclaredCapacitySelect, ResourceDeclaredCapacityFilter, @@ -49,7 +48,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -66,8 +65,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -149,142 +146,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'cpuLimitMillicores', - message: 'cpuLimitMillicores', - required: true, - }, - { - type: 'text', - name: 'cpuRequestMillicores', - message: 'cpuRequestMillicores', - required: true, - }, - { - type: 'text', - name: 'installationId', - message: 'installationId', - required: true, - }, - { - type: 'boolean', - name: 'isTransient', - message: 'isTransient', - required: true, - }, - { - type: 'text', - name: 'kind', - message: 'kind', - required: true, - }, - { - type: 'text', - name: 'memoryLimitBytes', - message: 'memoryLimitBytes', - required: true, - }, - { - type: 'text', - name: 'memoryRequestBytes', - message: 'memoryRequestBytes', - required: true, - }, - { - type: 'text', - name: 'namespaceId', - message: 'namespaceId', - required: true, - }, - { - type: 'text', - name: 'podCountMax', - message: 'podCountMax', - required: true, - }, - { - type: 'text', - name: 'podCountMin', - message: 'podCountMin', - required: true, - }, - { - type: 'text', - name: 'source', - message: 'source', - required: true, - }, - { - type: 'text', - name: 'sourceId', - message: 'sourceId', - required: true, - }, - { - type: 'text', - name: 'storageSizeBytes', - message: 'storageSizeBytes', - required: true, - }, - { - type: 'text', - name: 'storageTotalBytes', - message: 'storageTotalBytes', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateResourceDeclaredCapacityInput['resourceDeclaredCapacity']; - const client = getClient(); - const result = await client.resourceDeclaredCapacity - .create({ - data: { - cpuLimitMillicores: cleanedData.cpuLimitMillicores, - cpuRequestMillicores: cleanedData.cpuRequestMillicores, - installationId: cleanedData.installationId, - isTransient: cleanedData.isTransient, - kind: cleanedData.kind, - memoryLimitBytes: cleanedData.memoryLimitBytes, - memoryRequestBytes: cleanedData.memoryRequestBytes, - namespaceId: cleanedData.namespaceId, - podCountMax: cleanedData.podCountMax, - podCountMin: cleanedData.podCountMin, - source: cleanedData.source, - sourceId: cleanedData.sourceId, - storageSizeBytes: cleanedData.storageSizeBytes, - storageTotalBytes: cleanedData.storageTotalBytes, - }, - select: { - cpuLimitMillicores: true, - cpuRequestMillicores: true, - installationId: true, - isTransient: true, - kind: true, - memoryLimitBytes: true, - memoryRequestBytes: true, - namespaceId: true, - podCountMax: true, - podCountMin: true, - source: true, - sourceId: true, - storageSizeBytes: true, - storageTotalBytes: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/compute/cli/commands/resource-observed-storage.ts b/sdk/constructive-cli/src/compute/cli/commands/resource-observed-storage.ts index 3e7dad23c7..398d073875 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/resource-observed-storage.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/resource-observed-storage.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateResourceObservedStorageInput, ResourceObservedStoragePatch, ResourceObservedStorageSelect, ResourceObservedStorageFilter, @@ -53,7 +52,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -70,8 +69,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -161,174 +158,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'capacity', - message: 'capacity', - required: true, - }, - { - type: 'text', - name: 'capacityBytes', - message: 'capacityBytes', - required: true, - }, - { - type: 'text', - name: 'claimName', - message: 'claimName', - required: true, - }, - { - type: 'text', - name: 'declaredStorageClass', - message: 'declaredStorageClass', - required: true, - }, - { - type: 'text', - name: 'declaredStorageSizeBytes', - message: 'declaredStorageSizeBytes', - required: true, - }, - { - type: 'text', - name: 'declaredStorageTotalBytes', - message: 'declaredStorageTotalBytes', - required: true, - }, - { - type: 'text', - name: 'installationId', - message: 'installationId', - required: true, - }, - { - type: 'boolean', - name: 'isBound', - message: 'isBound', - required: true, - }, - { - type: 'text', - name: 'kind', - message: 'kind', - required: true, - }, - { - type: 'text', - name: 'namespaceId', - message: 'namespaceId', - required: true, - }, - { - type: 'text', - name: 'phase', - message: 'phase', - required: true, - }, - { - type: 'text', - name: 'requested', - message: 'requested', - required: true, - }, - { - type: 'text', - name: 'requestedBytes', - message: 'requestedBytes', - required: true, - }, - { - type: 'text', - name: 'resourceId', - message: 'resourceId', - required: true, - }, - { - type: 'text', - name: 'resourceStatus', - message: 'resourceStatus', - required: true, - }, - { - type: 'text', - name: 'slug', - message: 'slug', - required: true, - }, - { - type: 'text', - name: 'storageClass', - message: 'storageClass', - required: true, - }, - { - type: 'text', - name: 'storageName', - message: 'storageName', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateResourceObservedStorageInput['resourceObservedStorage']; - const client = getClient(); - const result = await client.resourceObservedStorage - .create({ - data: { - capacity: cleanedData.capacity, - capacityBytes: cleanedData.capacityBytes, - claimName: cleanedData.claimName, - declaredStorageClass: cleanedData.declaredStorageClass, - declaredStorageSizeBytes: cleanedData.declaredStorageSizeBytes, - declaredStorageTotalBytes: cleanedData.declaredStorageTotalBytes, - installationId: cleanedData.installationId, - isBound: cleanedData.isBound, - kind: cleanedData.kind, - namespaceId: cleanedData.namespaceId, - phase: cleanedData.phase, - requested: cleanedData.requested, - requestedBytes: cleanedData.requestedBytes, - resourceId: cleanedData.resourceId, - resourceStatus: cleanedData.resourceStatus, - slug: cleanedData.slug, - storageClass: cleanedData.storageClass, - storageName: cleanedData.storageName, - }, - select: { - capacity: true, - capacityBytes: true, - claimName: true, - declaredStorageClass: true, - declaredStorageSizeBytes: true, - declaredStorageTotalBytes: true, - installationId: true, - isBound: true, - kind: true, - namespaceId: true, - phase: true, - requested: true, - requestedBytes: true, - resourceId: true, - resourceStatus: true, - slug: true, - storageClass: true, - storageName: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/compute/cli/commands/resource-utilization.ts b/sdk/constructive-cli/src/compute/cli/commands/resource-utilization.ts index bf97744728..e67a6c46c4 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/resource-utilization.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/resource-utilization.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateResourceUtilizationInput, ResourceUtilizationPatch, ResourceUtilizationSelect, ResourceUtilizationFilter, @@ -54,7 +53,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -71,8 +70,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -164,182 +161,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'avgMemoryBytes', - message: 'avgMemoryBytes', - required: true, - }, - { - type: 'text', - name: 'cpuLimitMillicores', - message: 'cpuLimitMillicores', - required: true, - }, - { - type: 'text', - name: 'cpuPeakUtilization', - message: 'cpuPeakUtilization', - required: true, - }, - { - type: 'text', - name: 'cpuRequestHeadroomMillicores', - message: 'cpuRequestHeadroomMillicores', - required: true, - }, - { - type: 'text', - name: 'cpuRequestMillicores', - message: 'cpuRequestMillicores', - required: true, - }, - { - type: 'text', - name: 'date', - message: 'date', - required: true, - }, - { - type: 'text', - name: 'gbSeconds', - message: 'gbSeconds', - required: true, - }, - { - type: 'text', - name: 'kind', - message: 'kind', - required: true, - }, - { - type: 'text', - name: 'maxCpuMillicores', - message: 'maxCpuMillicores', - required: true, - }, - { - type: 'text', - name: 'maxMemoryBytes', - message: 'maxMemoryBytes', - required: true, - }, - { - type: 'text', - name: 'memoryLimitBytes', - message: 'memoryLimitBytes', - required: true, - }, - { - type: 'text', - name: 'memoryPeakUtilization', - message: 'memoryPeakUtilization', - required: true, - }, - { - type: 'text', - name: 'memoryRequestBytes', - message: 'memoryRequestBytes', - required: true, - }, - { - type: 'text', - name: 'memoryRequestHeadroomBytes', - message: 'memoryRequestHeadroomBytes', - required: true, - }, - { - type: 'text', - name: 'namespaceId', - message: 'namespaceId', - required: true, - }, - { - type: 'text', - name: 'replicas', - message: 'replicas', - required: true, - }, - { - type: 'text', - name: 'resourceId', - message: 'resourceId', - required: true, - }, - { - type: 'text', - name: 'runtimeSeconds', - message: 'runtimeSeconds', - required: true, - }, - { - type: 'text', - name: 'sampleCount', - message: 'sampleCount', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateResourceUtilizationInput['resourceUtilization']; - const client = getClient(); - const result = await client.resourceUtilization - .create({ - data: { - avgMemoryBytes: cleanedData.avgMemoryBytes, - cpuLimitMillicores: cleanedData.cpuLimitMillicores, - cpuPeakUtilization: cleanedData.cpuPeakUtilization, - cpuRequestHeadroomMillicores: cleanedData.cpuRequestHeadroomMillicores, - cpuRequestMillicores: cleanedData.cpuRequestMillicores, - date: cleanedData.date, - gbSeconds: cleanedData.gbSeconds, - kind: cleanedData.kind, - maxCpuMillicores: cleanedData.maxCpuMillicores, - maxMemoryBytes: cleanedData.maxMemoryBytes, - memoryLimitBytes: cleanedData.memoryLimitBytes, - memoryPeakUtilization: cleanedData.memoryPeakUtilization, - memoryRequestBytes: cleanedData.memoryRequestBytes, - memoryRequestHeadroomBytes: cleanedData.memoryRequestHeadroomBytes, - namespaceId: cleanedData.namespaceId, - replicas: cleanedData.replicas, - resourceId: cleanedData.resourceId, - runtimeSeconds: cleanedData.runtimeSeconds, - sampleCount: cleanedData.sampleCount, - }, - select: { - avgMemoryBytes: true, - cpuLimitMillicores: true, - cpuPeakUtilization: true, - cpuRequestHeadroomMillicores: true, - cpuRequestMillicores: true, - date: true, - gbSeconds: true, - kind: true, - maxCpuMillicores: true, - maxMemoryBytes: true, - memoryLimitBytes: true, - memoryPeakUtilization: true, - memoryRequestBytes: true, - memoryRequestHeadroomBytes: true, - namespaceId: true, - replicas: true, - resourceId: true, - runtimeSeconds: true, - sampleCount: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/compute/cli/commands/resources-health.ts b/sdk/constructive-cli/src/compute/cli/commands/resources-health.ts index e8f1d1a366..4718bfd3cd 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/resources-health.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/resources-health.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateResourcesHealthInput, ResourcesHealthPatch, ResourcesHealthSelect, ResourcesHealthFilter, @@ -71,7 +70,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -88,8 +87,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -207,297 +204,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'json', - name: 'annotations', - message: 'annotations', - required: true, - }, - { - type: 'text', - name: 'cpuLimitMillicores', - message: 'cpuLimitMillicores', - required: true, - }, - { - type: 'text', - name: 'cpuRequestMillicores', - message: 'cpuRequestMillicores', - required: true, - }, - { - type: 'text', - name: 'createdBy', - message: 'createdBy', - required: true, - }, - { - type: 'text', - name: 'createdByPrincipal', - message: 'createdByPrincipal', - required: true, - }, - { - type: 'text', - name: 'databaseId', - message: 'databaseId', - required: true, - }, - { - type: 'text', - name: 'errorCount', - message: 'errorCount', - required: true, - }, - { - type: 'text', - name: 'imageRef', - message: 'imageRef', - required: true, - }, - { - type: 'text', - name: 'installationId', - message: 'installationId', - required: true, - }, - { - type: 'text', - name: 'integrations', - message: 'integrations', - required: true, - }, - { - type: 'text', - name: 'kind', - message: 'kind', - required: true, - }, - { - type: 'json', - name: 'labels', - message: 'labels', - required: true, - }, - { - type: 'text', - name: 'lastError', - message: 'lastError', - required: true, - }, - { - type: 'text', - name: 'lastHeartbeatAt', - message: 'lastHeartbeatAt', - required: true, - }, - { - type: 'text', - name: 'memoryLimitBytes', - message: 'memoryLimitBytes', - required: true, - }, - { - type: 'text', - name: 'memoryRequestBytes', - message: 'memoryRequestBytes', - required: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: true, - }, - { - type: 'text', - name: 'namespaceId', - message: 'namespaceId', - required: true, - }, - { - type: 'text', - name: 'realm', - message: 'realm', - required: true, - }, - { - type: 'text', - name: 'replicas', - message: 'replicas', - required: true, - }, - { - type: 'text', - name: 'requiredConfigs', - message: 'requiredConfigs', - required: true, - }, - { - type: 'text', - name: 'requiredSecrets', - message: 'requiredSecrets', - required: true, - }, - { - type: 'text', - name: 'resourceDefinitionId', - message: 'resourceDefinitionId', - required: true, - }, - { - type: 'text', - name: 'slug', - message: 'slug', - required: true, - }, - { - type: 'json', - name: 'spec', - message: 'spec', - required: true, - }, - { - type: 'text', - name: 'status', - message: 'status', - required: true, - }, - { - type: 'text', - name: 'statusDetail', - message: 'statusDetail', - required: true, - }, - { - type: 'json', - name: 'statusObserved', - message: 'statusObserved', - required: true, - }, - { - type: 'text', - name: 'storageClass', - message: 'storageClass', - required: true, - }, - { - type: 'text', - name: 'storageSizeBytes', - message: 'storageSizeBytes', - required: true, - }, - { - type: 'text', - name: 'storageTotalBytes', - message: 'storageTotalBytes', - required: true, - }, - { - type: 'text', - name: 'updatedBy', - message: 'updatedBy', - required: true, - }, - { - type: 'text', - name: 'updatedByPrincipal', - message: 'updatedByPrincipal', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateResourcesHealthInput['resourcesHealth']; - const client = getClient(); - const result = await client.resourcesHealth - .create({ - data: { - annotations: cleanedData.annotations, - cpuLimitMillicores: cleanedData.cpuLimitMillicores, - cpuRequestMillicores: cleanedData.cpuRequestMillicores, - createdBy: cleanedData.createdBy, - createdByPrincipal: cleanedData.createdByPrincipal, - databaseId: cleanedData.databaseId, - errorCount: cleanedData.errorCount, - imageRef: cleanedData.imageRef, - installationId: cleanedData.installationId, - integrations: cleanedData.integrations, - kind: cleanedData.kind, - labels: cleanedData.labels, - lastError: cleanedData.lastError, - lastHeartbeatAt: cleanedData.lastHeartbeatAt, - memoryLimitBytes: cleanedData.memoryLimitBytes, - memoryRequestBytes: cleanedData.memoryRequestBytes, - name: cleanedData.name, - namespaceId: cleanedData.namespaceId, - realm: cleanedData.realm, - replicas: cleanedData.replicas, - requiredConfigs: cleanedData.requiredConfigs, - requiredSecrets: cleanedData.requiredSecrets, - resourceDefinitionId: cleanedData.resourceDefinitionId, - slug: cleanedData.slug, - spec: cleanedData.spec, - status: cleanedData.status, - statusDetail: cleanedData.statusDetail, - statusObserved: cleanedData.statusObserved, - storageClass: cleanedData.storageClass, - storageSizeBytes: cleanedData.storageSizeBytes, - storageTotalBytes: cleanedData.storageTotalBytes, - updatedBy: cleanedData.updatedBy, - updatedByPrincipal: cleanedData.updatedByPrincipal, - }, - select: { - annotations: true, - cpuLimitMillicores: true, - cpuRequestMillicores: true, - createdAt: true, - createdBy: true, - createdByPrincipal: true, - databaseId: true, - errorCount: true, - id: true, - imageRef: true, - installationId: true, - integrations: true, - kind: true, - labels: true, - lastError: true, - lastHeartbeatAt: true, - memoryLimitBytes: true, - memoryRequestBytes: true, - name: true, - namespaceId: true, - realm: true, - replicas: true, - requiredConfigs: true, - requiredSecrets: true, - resourceDefinitionId: true, - slug: true, - spec: true, - status: true, - statusDetail: true, - statusObserved: true, - storageClass: true, - storageSizeBytes: true, - storageTotalBytes: true, - updatedAt: true, - updatedBy: true, - updatedByPrincipal: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/compute/cli/commands/resources-requirements-state.ts b/sdk/constructive-cli/src/compute/cli/commands/resources-requirements-state.ts index 50c8a947a1..1317e983f3 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/resources-requirements-state.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/resources-requirements-state.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateResourcesRequirementsStateInput, ResourcesRequirementsStatePatch, ResourcesRequirementsStateSelect, ResourcesRequirementsStateFilter, @@ -42,7 +41,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -59,8 +58,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -128,86 +125,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'configHash', - message: 'configHash', - required: true, - }, - { - type: 'text', - name: 'configObjectName', - message: 'configObjectName', - required: true, - }, - { - type: 'text', - name: 'requirementsHash', - message: 'requirementsHash', - required: true, - }, - { - type: 'text', - name: 'resourceId', - message: 'resourceId', - required: true, - }, - { - type: 'text', - name: 'secretsHash', - message: 'secretsHash', - required: true, - }, - { - type: 'text', - name: 'secretsObjectName', - message: 'secretsObjectName', - required: true, - }, - { - type: 'text', - name: 'slug', - message: 'slug', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateResourcesRequirementsStateInput['resourcesRequirementsState']; - const client = getClient(); - const result = await client.resourcesRequirementsState - .create({ - data: { - configHash: cleanedData.configHash, - configObjectName: cleanedData.configObjectName, - requirementsHash: cleanedData.requirementsHash, - resourceId: cleanedData.resourceId, - secretsHash: cleanedData.secretsHash, - secretsObjectName: cleanedData.secretsObjectName, - slug: cleanedData.slug, - }, - select: { - configHash: true, - configObjectName: true, - requirementsHash: true, - resourceId: true, - secretsHash: true, - secretsObjectName: true, - slug: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/compute/cli/commands/resources-resolved-requirement.ts b/sdk/constructive-cli/src/compute/cli/commands/resources-resolved-requirement.ts index 39e325234e..4fd1b7194e 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/resources-resolved-requirement.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/resources-resolved-requirement.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateResourcesResolvedRequirementInput, ResourcesResolvedRequirementPatch, ResourcesResolvedRequirementSelect, ResourcesResolvedRequirementFilter, @@ -46,7 +45,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -63,8 +62,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -140,118 +137,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'atomId', - message: 'atomId', - required: true, - }, - { - type: 'text', - name: 'configObjectName', - message: 'configObjectName', - required: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: true, - }, - { - type: 'text', - name: 'namespaceId', - message: 'namespaceId', - required: true, - }, - { - type: 'boolean', - name: 'present', - message: 'present', - required: true, - }, - { - type: 'text', - name: 'realm', - message: 'realm', - required: true, - }, - { - type: 'boolean', - name: 'required', - message: 'required', - required: true, - }, - { - type: 'text', - name: 'requirementKind', - message: 'requirementKind', - required: true, - }, - { - type: 'text', - name: 'resourceId', - message: 'resourceId', - required: true, - }, - { - type: 'text', - name: 'secretsObjectName', - message: 'secretsObjectName', - required: true, - }, - { - type: 'text', - name: 'slug', - message: 'slug', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateResourcesResolvedRequirementInput['resourcesResolvedRequirement']; - const client = getClient(); - const result = await client.resourcesResolvedRequirement - .create({ - data: { - atomId: cleanedData.atomId, - configObjectName: cleanedData.configObjectName, - name: cleanedData.name, - namespaceId: cleanedData.namespaceId, - present: cleanedData.present, - realm: cleanedData.realm, - required: cleanedData.required, - requirementKind: cleanedData.requirementKind, - resourceId: cleanedData.resourceId, - secretsObjectName: cleanedData.secretsObjectName, - slug: cleanedData.slug, - }, - select: { - atomId: true, - configObjectName: true, - name: true, - namespaceId: true, - present: true, - realm: true, - required: true, - requirementKind: true, - resourceId: true, - secretsObjectName: true, - slug: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/compute/cli/commands/builder-binding.ts b/sdk/constructive-cli/src/compute/cli/commands/service-binding.ts similarity index 86% rename from sdk/constructive-cli/src/compute/cli/commands/builder-binding.ts rename to sdk/constructive-cli/src/compute/cli/commands/service-binding.ts index 2e0f437fce..8995e03eaf 100644 --- a/sdk/constructive-cli/src/compute/cli/commands/builder-binding.ts +++ b/sdk/constructive-cli/src/compute/cli/commands/service-binding.ts @@ -1,5 +1,5 @@ /** - * CLI commands for BuilderBinding + * CLI commands for ServiceBinding * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -8,11 +8,11 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateBuilderBindingInput, - BuilderBindingPatch, - BuilderBindingSelect, - BuilderBindingFilter, - BuilderBindingOrderBy, + CreateServiceBindingInput, + ServiceBindingPatch, + ServiceBindingSelect, + ServiceBindingFilter, + ServiceBindingOrderBy, } from '../../orm/input-types'; import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { @@ -22,6 +22,8 @@ const fieldSchema: FieldSchema = { databaseId: 'uuid', id: 'uuid', installationId: 'uuid', + installationScope: 'string', + kind: 'string', lastError: 'string', metadata: 'json', namespaceId: 'uuid', @@ -33,7 +35,7 @@ const fieldSchema: FieldSchema = { updatedByPrincipal: 'uuid', }; const usage = - '\nbuilder-binding \n\nCommands:\n list List builderBinding records\n find-first Find first matching builderBinding record\n get Get a builderBinding by ID\n create Create a new builderBinding\n update Update an existing builderBinding\n delete Delete a builderBinding\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; + '\nservice-binding \n\nCommands:\n list List serviceBinding records\n find-first Find first matching serviceBinding record\n get Get a serviceBinding by ID\n create Create a new serviceBinding\n update Update an existing serviceBinding\n delete Delete a serviceBinding\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; export default async ( argv: Partial>, prompter: Inquirerer, @@ -89,6 +91,8 @@ async function handleList(argv: Partial>, _prompter: Inq databaseId: true, id: true, installationId: true, + installationScope: true, + kind: true, lastError: true, metadata: true, namespaceId: true, @@ -100,12 +104,12 @@ async function handleList(argv: Partial>, _prompter: Inq updatedByPrincipal: true, }; const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: BuilderBindingSelect; + FindManyArgs & { + select: ServiceBindingSelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.builderBinding.findMany(findManyArgs).execute(); + const result = await client.serviceBinding.findMany(findManyArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to list records.'); @@ -124,6 +128,8 @@ async function handleFindFirst(argv: Partial>, _prompter databaseId: true, id: true, installationId: true, + installationScope: true, + kind: true, lastError: true, metadata: true, namespaceId: true, @@ -135,12 +141,12 @@ async function handleFindFirst(argv: Partial>, _prompter updatedByPrincipal: true, }; const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: BuilderBindingSelect; + FindFirstArgs & { + select: ServiceBindingSelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.builderBinding.findFirst(findFirstArgs).execute(); + const result = await client.serviceBinding.findFirst(findFirstArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to find record.'); @@ -161,7 +167,7 @@ async function handleGet(argv: Partial>, prompter: Inqui }, ]); const client = getClient(); - const result = await client.builderBinding + const result = await client.serviceBinding .findOne({ id: answers.id as string, select: { @@ -171,6 +177,8 @@ async function handleGet(argv: Partial>, prompter: Inqui databaseId: true, id: true, installationId: true, + installationScope: true, + kind: true, lastError: true, metadata: true, namespaceId: true, @@ -221,6 +229,18 @@ async function handleCreate(argv: Partial>, prompter: In message: 'installationId', required: true, }, + { + type: 'text', + name: 'installationScope', + message: 'installationScope', + required: true, + }, + { + type: 'text', + name: 'kind', + message: 'kind', + required: true, + }, { type: 'text', name: 'lastError', @@ -281,15 +301,17 @@ async function handleCreate(argv: Partial>, prompter: In const cleanedData = stripUndefined( answers, fieldSchema - ) as CreateBuilderBindingInput['builderBinding']; + ) as CreateServiceBindingInput['serviceBinding']; const client = getClient(); - const result = await client.builderBinding + const result = await client.serviceBinding .create({ data: { createdBy: cleanedData.createdBy, createdByPrincipal: cleanedData.createdByPrincipal, databaseId: cleanedData.databaseId, installationId: cleanedData.installationId, + installationScope: cleanedData.installationScope, + kind: cleanedData.kind, lastError: cleanedData.lastError, metadata: cleanedData.metadata, namespaceId: cleanedData.namespaceId, @@ -306,6 +328,8 @@ async function handleCreate(argv: Partial>, prompter: In databaseId: true, id: true, installationId: true, + installationScope: true, + kind: true, lastError: true, metadata: true, namespaceId: true, @@ -362,6 +386,18 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'installationId', required: false, }, + { + type: 'text', + name: 'installationScope', + message: 'installationScope', + required: false, + }, + { + type: 'text', + name: 'kind', + message: 'kind', + required: false, + }, { type: 'text', name: 'lastError', @@ -419,9 +455,9 @@ async function handleUpdate(argv: Partial>, prompter: In }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as BuilderBindingPatch; + const cleanedData = stripUndefined(answers, fieldSchema) as ServiceBindingPatch; const client = getClient(); - const result = await client.builderBinding + const result = await client.serviceBinding .update({ where: { id: answers.id as string, @@ -431,6 +467,8 @@ async function handleUpdate(argv: Partial>, prompter: In createdByPrincipal: cleanedData.createdByPrincipal, databaseId: cleanedData.databaseId, installationId: cleanedData.installationId, + installationScope: cleanedData.installationScope, + kind: cleanedData.kind, lastError: cleanedData.lastError, metadata: cleanedData.metadata, namespaceId: cleanedData.namespaceId, @@ -447,6 +485,8 @@ async function handleUpdate(argv: Partial>, prompter: In databaseId: true, id: true, installationId: true, + installationScope: true, + kind: true, lastError: true, metadata: true, namespaceId: true, @@ -480,7 +520,7 @@ async function handleDelete(argv: Partial>, prompter: In ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const client = getClient(); - const result = await client.builderBinding + const result = await client.serviceBinding .delete({ where: { id: answers.id as string, diff --git a/sdk/constructive-cli/src/compute/orm/README.md b/sdk/constructive-cli/src/compute/orm/README.md index 68d50bcb97..abcdd72723 100644 --- a/sdk/constructive-cli/src/compute/orm/README.md +++ b/sdk/constructive-cli/src/compute/orm/README.md @@ -23,15 +23,14 @@ const db = createClient({ |-------|------------| | `build` | findMany, findOne, create, update, delete | | `buildStep` | findMany, findOne, create, update, delete | -| `builderBinding` | findMany, findOne, create, update, delete | | `contentPreset` | findMany, findOne, create, update, delete | -| `databaseFunctionGraph` | findMany, findOne, create, update, delete | +| `databaseFunctionGraph` | findMany, findOne, update, delete | | `databaseFunctionGraphExecutionCancelRequest` | findMany, findOne, create, update, delete | | `databaseFunctionGraphExecution` | findMany, findOne, create, update, delete | | `databaseFunctionGraphExecutionNodeState` | findMany, findOne, create, update, delete | | `databaseFunctionGraphExecutionOutput` | findMany, findOne, create, update, delete | | `databaseGraphCommit` | findMany, findOne, create, update, delete | -| `databaseGraphGetAllTreeNodesRecord` | findMany, findOne, create, update, delete | +| `databaseGraphGetAllTreeNodesRecord` | findMany, findOne, update, delete | | `databaseGraphObject` | findMany, findOne, create, update, delete | | `databaseGraphRef` | findMany, findOne, create, update, delete | | `databaseGraphStore` | findMany, findOne, create, update, delete | @@ -43,7 +42,7 @@ const db = createClient({ | `functionDeploymentEvent` | findMany, findOne, create, update, delete | | `functionExecutionLog` | findMany, findOne, create, update, delete | | `functionGraphCommit` | findMany, findOne, create, update, delete | -| `functionGraph` | findMany, findOne, create, update, delete | +| `functionGraph` | findMany, findOne, update, delete | | `functionGraphExecutionCancelRequest` | findMany, findOne, create, update, delete | | `functionGraphExecution` | findMany, findOne, create, update, delete | | `functionGraphExecutionNodeState` | findMany, findOne, create, update, delete | @@ -54,11 +53,11 @@ const db = createClient({ | `functionInvocationAttempt` | findMany, findOne, create, update, delete | | `functionInvocation` | findMany, findOne, create, update, delete | | `functionSchedule` | findMany, findOne, create, update, delete | -| `getAllTreeNodesRecord` | findMany, findOne, create, update, delete | +| `getAllTreeNodesRecord` | findMany, findOne, update, delete | | `image` | findMany, findOne, create, update, delete | | `imageGrant` | findMany, findOne, create, update, delete | | `infraCommit` | findMany, findOne, create, update, delete | -| `infraGetAllTreeNodesRecord` | findMany, findOne, create, update, delete | +| `infraGetAllTreeNodesRecord` | findMany, findOne, update, delete | | `infraObject` | findMany, findOne, create, update, delete | | `infraRef` | findMany, findOne, create, update, delete | | `infraStore` | findMany, findOne, create, update, delete | @@ -67,7 +66,6 @@ const db = createClient({ | `namespaceEvent` | findMany, findOne, create, update, delete | | `platformBuild` | findMany, findOne, create, update, delete | | `platformBuildStep` | findMany, findOne, create, update, delete | -| `platformBuilderBinding` | findMany, findOne, create, update, delete | | `platformFunctionApiBinding` | findMany, findOne, create, update, delete | | `platformFunctionCapabilityBinding` | findMany, findOne, create, update, delete | | `platformFunctionDefinition` | findMany, findOne, create, update, delete | @@ -80,7 +78,7 @@ const db = createClient({ | `platformImage` | findMany, findOne, create, update, delete | | `platformImageGrant` | findMany, findOne, create, update, delete | | `platformInfraCommit` | findMany, findOne, create, update, delete | -| `platformInfraGetAllTreeNodesRecord` | findMany, findOne, create, update, delete | +| `platformInfraGetAllTreeNodesRecord` | findMany, findOne, update, delete | | `platformInfraObject` | findMany, findOne, create, update, delete | | `platformInfraRef` | findMany, findOne, create, update, delete | | `platformInfraStore` | findMany, findOne, create, update, delete | @@ -102,18 +100,19 @@ const db = createClient({ | `platformRepositoryRequiredCheck` | findMany, findOne, create, update, delete | | `platformRepositoryWorkflow` | findMany, findOne, create, update, delete | | `platformResource` | findMany, findOne, create, update, delete | -| `platformResourceDeclaredCapacity` | findMany, findOne, create, update, delete | +| `platformResourceDeclaredCapacity` | findMany, findOne, update, delete | | `platformResourceDefinition` | findMany, findOne, create, update, delete | | `platformResourceEvent` | findMany, findOne, create, update, delete | | `platformResourceInstallation` | findMany, findOne, create, update, delete | -| `platformResourceObservedStorage` | findMany, findOne, create, update, delete | +| `platformResourceObservedStorage` | findMany, findOne, update, delete | | `platformResourceStatusCheck` | findMany, findOne, create, update, delete | | `platformResourceUsageLog` | findMany, findOne, create, update, delete | | `platformResourceUsageSummary` | findMany, findOne, create, update, delete | -| `platformResourceUtilization` | findMany, findOne, create, update, delete | -| `platformResourcesHealth` | findMany, findOne, create, update, delete | -| `platformResourcesRequirementsState` | findMany, findOne, create, update, delete | -| `platformResourcesResolvedRequirement` | findMany, findOne, create, update, delete | +| `platformResourceUtilization` | findMany, findOne, update, delete | +| `platformResourcesHealth` | findMany, findOne, update, delete | +| `platformResourcesRequirementsState` | findMany, findOne, update, delete | +| `platformResourcesResolvedRequirement` | findMany, findOne, update, delete | +| `platformServiceBinding` | findMany, findOne, create, update, delete | | `platformWebhookEndpoint` | findMany, findOne, create, update, delete | | `platformWebhookEvent` | findMany, findOne, create, update, delete | | `proposalComment` | findMany, findOne, create, update, delete | @@ -130,18 +129,19 @@ const db = createClient({ | `repositoryRequiredCheck` | findMany, findOne, create, update, delete | | `repositoryWorkflow` | findMany, findOne, create, update, delete | | `resource` | findMany, findOne, create, update, delete | -| `resourceDeclaredCapacity` | findMany, findOne, create, update, delete | +| `resourceDeclaredCapacity` | findMany, findOne, update, delete | | `resourceDefinition` | findMany, findOne, create, update, delete | | `resourceEvent` | findMany, findOne, create, update, delete | | `resourceInstallation` | findMany, findOne, create, update, delete | -| `resourceObservedStorage` | findMany, findOne, create, update, delete | +| `resourceObservedStorage` | findMany, findOne, update, delete | | `resourceStatusCheck` | findMany, findOne, create, update, delete | | `resourceUsageLog` | findMany, findOne, create, update, delete | | `resourceUsageSummary` | findMany, findOne, create, update, delete | -| `resourceUtilization` | findMany, findOne, create, update, delete | -| `resourcesHealth` | findMany, findOne, create, update, delete | -| `resourcesRequirementsState` | findMany, findOne, create, update, delete | -| `resourcesResolvedRequirement` | findMany, findOne, create, update, delete | +| `resourceUtilization` | findMany, findOne, update, delete | +| `resourcesHealth` | findMany, findOne, update, delete | +| `resourcesRequirementsState` | findMany, findOne, update, delete | +| `resourcesResolvedRequirement` | findMany, findOne, update, delete | +| `serviceBinding` | findMany, findOne, create, update, delete | | `webhookEndpoint` | findMany, findOne, create, update, delete | | `webhookEvent` | findMany, findOne, create, update, delete | @@ -168,6 +168,8 @@ CRUD operations for Build records. | `imageRef` | String | Yes | | `jobId` | BigInt | Yes | | `logs` | ConstructiveInternalTypeUpload | Yes | +| `logsUrl` | String | Yes | +| `logsVersions` | FileVersion | Yes | | `matrixKey` | String | Yes | | `metadata` | JSON | Yes | | `proposalId` | UUID | Yes | @@ -183,13 +185,13 @@ CRUD operations for Build records. ```typescript // List all build records -const items = await db.build.findMany({ select: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, databaseId: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }).execute(); +const items = await db.build.findMany({ select: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, databaseId: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, logsUrl: true, logsVersions: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }).execute(); // Get one by id -const item = await db.build.findOne({ id: '', select: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, databaseId: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }).execute(); +const item = await db.build.findOne({ id: '', select: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, databaseId: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, logsUrl: true, logsVersions: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }).execute(); // Create -const created = await db.build.create({ data: { actorId: '', attempt: '', commitSha: '', conclusion: '', createdByPrincipal: '', databaseId: '', eventId: '', finishedAt: '', imageRef: '', jobId: '', logs: '', matrixKey: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }, select: { id: true } }).execute(); +const created = await db.build.create({ data: { actorId: '', attempt: '', commitSha: '', conclusion: '', createdByPrincipal: '', databaseId: '', eventId: '', finishedAt: '', imageRef: '', jobId: '', logs: '', logsUrl: '', logsVersions: '', matrixKey: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }, select: { id: true } }).execute(); // Update const updated = await db.build.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -242,49 +244,6 @@ const updated = await db.buildStep.update({ where: { id: '' }, data: { bui const deleted = await db.buildStep.delete({ where: { id: '' } }).execute(); ``` -### `db.builderBinding` - -CRUD operations for BuilderBinding records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `createdAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `createdByPrincipal` | UUID | Yes | -| `databaseId` | UUID | Yes | -| `id` | UUID | No | -| `installationId` | UUID | Yes | -| `lastError` | String | Yes | -| `metadata` | JSON | Yes | -| `namespaceId` | UUID | Yes | -| `observedHost` | String | Yes | -| `realm` | String | Yes | -| `status` | String | Yes | -| `updatedAt` | Datetime | No | -| `updatedBy` | UUID | Yes | -| `updatedByPrincipal` | UUID | Yes | - -**Operations:** - -```typescript -// List all builderBinding records -const items = await db.builderBinding.findMany({ select: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); - -// Get one by id -const item = await db.builderBinding.findOne({ id: '', select: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); - -// Create -const created = await db.builderBinding.create({ data: { createdBy: '', createdByPrincipal: '', databaseId: '', installationId: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.builderBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.builderBinding.delete({ where: { id: '' } }).execute(); -``` - ### `db.contentPreset` CRUD operations for ContentPreset records. @@ -354,9 +313,6 @@ const items = await db.databaseFunctionGraph.findMany({ select: { context: true, // Get one by id const item = await db.databaseFunctionGraph.findOne({ id: '', select: { context: true, createdAt: true, createdBy: true, databaseId: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, storeId: true, updatedAt: true, validationErrors: true } }).execute(); -// Create -const created = await db.databaseFunctionGraph.create({ data: { context: '', createdBy: '', databaseId: '', definitionsCommitId: '', description: '', isValid: '', name: '', storeId: '', validationErrors: '' }, select: { id: true } }).execute(); - // Update const updated = await db.databaseFunctionGraph.update({ where: { id: '' }, data: { context: '' }, select: { id: true } }).execute(); @@ -595,9 +551,6 @@ const items = await db.databaseGraphGetAllTreeNodesRecord.findMany({ select: { d // Get one by id const item = await db.databaseGraphGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); -// Create -const created = await db.databaseGraphGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); - // Update const updated = await db.databaseGraphGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); @@ -1086,9 +1039,6 @@ const items = await db.functionGraph.findMany({ select: { context: true, created // Get one by id const item = await db.functionGraph.findOne({ id: '', select: { context: true, createdAt: true, createdBy: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, scopeId: true, storeId: true, updatedAt: true, validationErrors: true } }).execute(); -// Create -const created = await db.functionGraph.create({ data: { context: '', createdBy: '', definitionsCommitId: '', description: '', isValid: '', name: '', scopeId: '', storeId: '', validationErrors: '' }, select: { id: true } }).execute(); - // Update const updated = await db.functionGraph.update({ where: { id: '' }, data: { context: '' }, select: { id: true } }).execute(); @@ -1527,9 +1477,6 @@ const items = await db.getAllTreeNodesRecord.findMany({ select: { data: true, pa // Get one by id const item = await db.getAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); -// Create -const created = await db.getAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); - // Update const updated = await db.getAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); @@ -1681,9 +1628,6 @@ const items = await db.infraGetAllTreeNodesRecord.findMany({ select: { data: tru // Get one by id const item = await db.infraGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); -// Create -const created = await db.infraGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); - // Update const updated = await db.infraGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); @@ -1806,6 +1750,8 @@ CRUD operations for IntegrationProvider records. | `icon` | String | Yes | | `id` | UUID | No | | `logo` | ConstructiveInternalTypeImage | Yes | +| `logoUrl` | String | Yes | +| `logoVersions` | FileVersion | Yes | | `name` | String | Yes | | `requiredConfigs` | ResourceRequirement | Yes | | `requiredSecrets` | ResourceRequirement | Yes | @@ -1816,13 +1762,13 @@ CRUD operations for IntegrationProvider records. ```typescript // List all integrationProvider records -const items = await db.integrationProvider.findMany({ select: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, name: true, requiredConfigs: true, requiredSecrets: true, slug: true, updatedAt: true } }).execute(); +const items = await db.integrationProvider.findMany({ select: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, logoUrl: true, logoVersions: true, name: true, requiredConfigs: true, requiredSecrets: true, slug: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.integrationProvider.findOne({ id: '', select: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, name: true, requiredConfigs: true, requiredSecrets: true, slug: true, updatedAt: true } }).execute(); +const item = await db.integrationProvider.findOne({ id: '', select: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, logoUrl: true, logoVersions: true, name: true, requiredConfigs: true, requiredSecrets: true, slug: true, updatedAt: true } }).execute(); // Create -const created = await db.integrationProvider.create({ data: { brand: '', category: '', description: '', icon: '', logo: '', name: '', requiredConfigs: '', requiredSecrets: '', slug: '' }, select: { id: true } }).execute(); +const created = await db.integrationProvider.create({ data: { brand: '', category: '', description: '', icon: '', logo: '', logoUrl: '', logoVersions: '', name: '', requiredConfigs: '', requiredSecrets: '', slug: '' }, select: { id: true } }).execute(); // Update const updated = await db.integrationProvider.update({ where: { id: '' }, data: { brand: '' }, select: { id: true } }).execute(); @@ -1929,6 +1875,8 @@ CRUD operations for PlatformBuild records. | `imageRef` | String | Yes | | `jobId` | BigInt | Yes | | `logs` | ConstructiveInternalTypeUpload | Yes | +| `logsUrl` | String | Yes | +| `logsVersions` | FileVersion | Yes | | `matrixKey` | String | Yes | | `metadata` | JSON | Yes | | `proposalId` | UUID | Yes | @@ -1944,13 +1892,13 @@ CRUD operations for PlatformBuild records. ```typescript // List all platformBuild records -const items = await db.platformBuild.findMany({ select: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }).execute(); +const items = await db.platformBuild.findMany({ select: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, logsUrl: true, logsVersions: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }).execute(); // Get one by id -const item = await db.platformBuild.findOne({ id: '', select: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }).execute(); +const item = await db.platformBuild.findOne({ id: '', select: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, logsUrl: true, logsVersions: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }).execute(); // Create -const created = await db.platformBuild.create({ data: { actorId: '', attempt: '', commitSha: '', conclusion: '', createdByPrincipal: '', eventId: '', finishedAt: '', imageRef: '', jobId: '', logs: '', matrixKey: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }, select: { id: true } }).execute(); +const created = await db.platformBuild.create({ data: { actorId: '', attempt: '', commitSha: '', conclusion: '', createdByPrincipal: '', eventId: '', finishedAt: '', imageRef: '', jobId: '', logs: '', logsUrl: '', logsVersions: '', matrixKey: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformBuild.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -2002,48 +1950,6 @@ const updated = await db.platformBuildStep.update({ where: { id: '' }, dat const deleted = await db.platformBuildStep.delete({ where: { id: '' } }).execute(); ``` -### `db.platformBuilderBinding` - -CRUD operations for PlatformBuilderBinding records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `createdAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `createdByPrincipal` | UUID | Yes | -| `id` | UUID | No | -| `installationId` | UUID | Yes | -| `lastError` | String | Yes | -| `metadata` | JSON | Yes | -| `namespaceId` | UUID | Yes | -| `observedHost` | String | Yes | -| `realm` | String | Yes | -| `status` | String | Yes | -| `updatedAt` | Datetime | No | -| `updatedBy` | UUID | Yes | -| `updatedByPrincipal` | UUID | Yes | - -**Operations:** - -```typescript -// List all platformBuilderBinding records -const items = await db.platformBuilderBinding.findMany({ select: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); - -// Get one by id -const item = await db.platformBuilderBinding.findOne({ id: '', select: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); - -// Create -const created = await db.platformBuilderBinding.create({ data: { createdBy: '', createdByPrincipal: '', installationId: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.platformBuilderBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.platformBuilderBinding.delete({ where: { id: '' } }).execute(); -``` - ### `db.platformFunctionApiBinding` CRUD operations for PlatformFunctionApiBinding records. @@ -2593,9 +2499,6 @@ const items = await db.platformInfraGetAllTreeNodesRecord.findMany({ select: { d // Get one by id const item = await db.platformInfraGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); -// Create -const created = await db.platformInfraGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformInfraGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); @@ -2865,12 +2768,16 @@ CRUD operations for PlatformProposalComment records. |-------|------|----------| | `actorId` | UUID | Yes | | `attachments` | ConstructiveInternalTypeUpload | Yes | +| `attachmentsUrl` | String | Yes | +| `attachmentsVersions` | FileVersion | Yes | | `body` | String | Yes | | `bodyTrgmSimilarity` | Float | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | | `createdByPrincipal` | UUID | Yes | | `embedding` | Vector | Yes | +| `embeddingModel` | String | Yes | +| `embeddingModelTrgmSimilarity` | Float | Yes | | `embeddingUpdatedAt` | Datetime | Yes | | `embeddingVectorDistance` | Float | Yes | | `id` | UUID | No | @@ -2891,13 +2798,13 @@ CRUD operations for PlatformProposalComment records. ```typescript // List all platformProposalComment records -const items = await db.platformProposalComment.findMany({ select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.platformProposalComment.findMany({ select: { actorId: true, attachments: true, attachmentsUrl: true, attachmentsVersions: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformProposalComment.findOne({ id: '', select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.platformProposalComment.findOne({ id: '', select: { actorId: true, attachments: true, attachmentsUrl: true, attachmentsVersions: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformProposalComment.create({ data: { actorId: '', attachments: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const created = await db.platformProposalComment.create({ data: { actorId: '', attachments: '', attachmentsUrl: '', attachmentsVersions: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformProposalComment.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -2931,6 +2838,8 @@ CRUD operations for PlatformProposal records. | `decidedAt` | Datetime | Yes | | `dueAt` | Datetime | Yes | | `embedding` | Vector | Yes | +| `embeddingModel` | String | Yes | +| `embeddingModelTrgmSimilarity` | Float | Yes | | `embeddingUpdatedAt` | Datetime | Yes | | `embeddingVectorDistance` | Float | Yes | | `id` | UUID | No | @@ -2968,13 +2877,13 @@ CRUD operations for PlatformProposal records. ```typescript // List all platformProposal records -const items = await db.platformProposal.findMany({ select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.platformProposal.findMany({ select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformProposal.findOne({ id: '', select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.platformProposal.findOne({ id: '', select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformProposal.create({ data: { actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', decidedAt: '', dueAt: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const created = await db.platformProposal.create({ data: { actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', decidedAt: '', dueAt: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformProposal.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -3301,6 +3210,8 @@ CRUD operations for PlatformRepository records. | `description` | String | Yes | | `descriptionTrgmSimilarity` | Float | Yes | | `embedding` | Vector | Yes | +| `embeddingModel` | String | Yes | +| `embeddingModelTrgmSimilarity` | Float | Yes | | `embeddingUpdatedAt` | Datetime | Yes | | `embeddingVectorDistance` | Float | Yes | | `externalId` | String | Yes | @@ -3328,13 +3239,13 @@ CRUD operations for PlatformRepository records. ```typescript // List all platformRepository records -const items = await db.platformRepository.findMany({ select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); +const items = await db.platformRepository.findMany({ select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); // Get one by id -const item = await db.platformRepository.findOne({ id: '', select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); +const item = await db.platformRepository.findOne({ id: '', select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); // Create -const created = await db.platformRepository.create({ data: { cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }, select: { id: true } }).execute(); +const created = await db.platformRepository.create({ data: { cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformRepository.update({ where: { id: '' }, data: { cloneUrl: '' }, select: { id: true } }).execute(); @@ -3563,9 +3474,6 @@ const items = await db.platformResourceDeclaredCapacity.findMany({ select: { cpu // Get one by id const item = await db.platformResourceDeclaredCapacity.findOne({ id: '', select: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true, storageTotalBytes: true } }).execute(); -// Create -const created = await db.platformResourceDeclaredCapacity.create({ data: { cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '', storageTotalBytes: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformResourceDeclaredCapacity.update({ where: { id: '' }, data: { cpuLimitMillicores: '' }, select: { id: true } }).execute(); @@ -3735,9 +3643,6 @@ const items = await db.platformResourceObservedStorage.findMany({ select: { capa // Get one by id const item = await db.platformResourceObservedStorage.findOne({ id: '', select: { capacity: true, capacityBytes: true, claimName: true, declaredStorageClass: true, declaredStorageSizeBytes: true, declaredStorageTotalBytes: true, installationId: true, isBound: true, kind: true, namespaceId: true, phase: true, requested: true, requestedBytes: true, resourceId: true, resourceStatus: true, slug: true, storageClass: true, storageName: true } }).execute(); -// Create -const created = await db.platformResourceObservedStorage.create({ data: { capacity: '', capacityBytes: '', claimName: '', declaredStorageClass: '', declaredStorageSizeBytes: '', declaredStorageTotalBytes: '', installationId: '', isBound: '', kind: '', namespaceId: '', phase: '', requested: '', requestedBytes: '', resourceId: '', resourceStatus: '', slug: '', storageClass: '', storageName: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformResourceObservedStorage.update({ where: { id: '' }, data: { capacity: '' }, select: { id: true } }).execute(); @@ -3891,9 +3796,6 @@ const items = await db.platformResourceUtilization.findMany({ select: { avgMemor // Get one by id const item = await db.platformResourceUtilization.findOne({ id: '', select: { avgMemoryBytes: true, cpuLimitMillicores: true, cpuPeakUtilization: true, cpuRequestHeadroomMillicores: true, cpuRequestMillicores: true, date: true, gbSeconds: true, kind: true, maxCpuMillicores: true, maxMemoryBytes: true, memoryLimitBytes: true, memoryPeakUtilization: true, memoryRequestBytes: true, memoryRequestHeadroomBytes: true, namespaceId: true, replicas: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }).execute(); -// Create -const created = await db.platformResourceUtilization.create({ data: { avgMemoryBytes: '', cpuLimitMillicores: '', cpuPeakUtilization: '', cpuRequestHeadroomMillicores: '', cpuRequestMillicores: '', date: '', gbSeconds: '', kind: '', maxCpuMillicores: '', maxMemoryBytes: '', memoryLimitBytes: '', memoryPeakUtilization: '', memoryRequestBytes: '', memoryRequestHeadroomBytes: '', namespaceId: '', replicas: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformResourceUtilization.update({ where: { id: '' }, data: { avgMemoryBytes: '' }, select: { id: true } }).execute(); @@ -3954,9 +3856,6 @@ const items = await db.platformResourcesHealth.findMany({ select: { annotations: // Get one by id const item = await db.platformResourcesHealth.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); -// Create -const created = await db.platformResourcesHealth.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformResourcesHealth.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -3989,9 +3888,6 @@ const items = await db.platformResourcesRequirementsState.findMany({ select: { c // Get one by id const item = await db.platformResourcesRequirementsState.findOne({ id: '', select: { configHash: true, configObjectName: true, requirementsHash: true, resourceId: true, secretsHash: true, secretsObjectName: true, slug: true } }).execute(); -// Create -const created = await db.platformResourcesRequirementsState.create({ data: { configHash: '', configObjectName: '', requirementsHash: '', resourceId: '', secretsHash: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformResourcesRequirementsState.update({ where: { id: '' }, data: { configHash: '' }, select: { id: true } }).execute(); @@ -4028,9 +3924,6 @@ const items = await db.platformResourcesResolvedRequirement.findMany({ select: { // Get one by id const item = await db.platformResourcesResolvedRequirement.findOne({ id: '', select: { atomId: true, configObjectName: true, name: true, namespaceId: true, present: true, realm: true, required: true, requirementKind: true, resourceId: true, secretsObjectName: true, slug: true } }).execute(); -// Create -const created = await db.platformResourcesResolvedRequirement.create({ data: { atomId: '', configObjectName: '', name: '', namespaceId: '', present: '', realm: '', required: '', requirementKind: '', resourceId: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformResourcesResolvedRequirement.update({ where: { id: '' }, data: { atomId: '' }, select: { id: true } }).execute(); @@ -4038,6 +3931,50 @@ const updated = await db.platformResourcesResolvedRequirement.update({ where: { const deleted = await db.platformResourcesResolvedRequirement.delete({ where: { id: '' } }).execute(); ``` +### `db.platformServiceBinding` + +CRUD operations for PlatformServiceBinding records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `id` | UUID | No | +| `installationId` | UUID | Yes | +| `installationScope` | String | Yes | +| `kind` | String | Yes | +| `lastError` | String | Yes | +| `metadata` | JSON | Yes | +| `namespaceId` | UUID | Yes | +| `observedHost` | String | Yes | +| `realm` | String | Yes | +| `status` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformServiceBinding records +const items = await db.platformServiceBinding.findMany({ select: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, installationScope: true, kind: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformServiceBinding.findOne({ id: '', select: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, installationScope: true, kind: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformServiceBinding.create({ data: { createdBy: '', createdByPrincipal: '', installationId: '', installationScope: '', kind: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformServiceBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformServiceBinding.delete({ where: { id: '' } }).execute(); +``` + ### `db.platformWebhookEndpoint` CRUD operations for PlatformWebhookEndpoint records. @@ -4131,6 +4068,8 @@ CRUD operations for ProposalComment records. |-------|------|----------| | `actorId` | UUID | Yes | | `attachments` | ConstructiveInternalTypeUpload | Yes | +| `attachmentsUrl` | String | Yes | +| `attachmentsVersions` | FileVersion | Yes | | `body` | String | Yes | | `bodyTrgmSimilarity` | Float | Yes | | `createdAt` | Datetime | No | @@ -4138,6 +4077,8 @@ CRUD operations for ProposalComment records. | `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `embedding` | Vector | Yes | +| `embeddingModel` | String | Yes | +| `embeddingModelTrgmSimilarity` | Float | Yes | | `embeddingUpdatedAt` | Datetime | Yes | | `embeddingVectorDistance` | Float | Yes | | `id` | UUID | No | @@ -4158,13 +4099,13 @@ CRUD operations for ProposalComment records. ```typescript // List all proposalComment records -const items = await db.proposalComment.findMany({ select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.proposalComment.findMany({ select: { actorId: true, attachments: true, attachmentsUrl: true, attachmentsVersions: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.proposalComment.findOne({ id: '', select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.proposalComment.findOne({ id: '', select: { actorId: true, attachments: true, attachmentsUrl: true, attachmentsVersions: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.proposalComment.create({ data: { actorId: '', attachments: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const created = await db.proposalComment.create({ data: { actorId: '', attachments: '', attachmentsUrl: '', attachmentsVersions: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.proposalComment.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -4199,6 +4140,8 @@ CRUD operations for Proposal records. | `decidedAt` | Datetime | Yes | | `dueAt` | Datetime | Yes | | `embedding` | Vector | Yes | +| `embeddingModel` | String | Yes | +| `embeddingModelTrgmSimilarity` | Float | Yes | | `embeddingUpdatedAt` | Datetime | Yes | | `embeddingVectorDistance` | Float | Yes | | `id` | UUID | No | @@ -4236,13 +4179,13 @@ CRUD operations for Proposal records. ```typescript // List all proposal records -const items = await db.proposal.findMany({ select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.proposal.findMany({ select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.proposal.findOne({ id: '', select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.proposal.findOne({ id: '', select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.proposal.create({ data: { actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', decidedAt: '', dueAt: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const created = await db.proposal.create({ data: { actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', decidedAt: '', dueAt: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.proposal.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -4577,6 +4520,8 @@ CRUD operations for Repository records. | `description` | String | Yes | | `descriptionTrgmSimilarity` | Float | Yes | | `embedding` | Vector | Yes | +| `embeddingModel` | String | Yes | +| `embeddingModelTrgmSimilarity` | Float | Yes | | `embeddingUpdatedAt` | Datetime | Yes | | `embeddingVectorDistance` | Float | Yes | | `externalId` | String | Yes | @@ -4604,13 +4549,13 @@ CRUD operations for Repository records. ```typescript // List all repository records -const items = await db.repository.findMany({ select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); +const items = await db.repository.findMany({ select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); // Get one by id -const item = await db.repository.findOne({ id: '', select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); +const item = await db.repository.findOne({ id: '', select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); // Create -const created = await db.repository.create({ data: { cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }, select: { id: true } }).execute(); +const created = await db.repository.create({ data: { cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }, select: { id: true } }).execute(); // Update const updated = await db.repository.update({ where: { id: '' }, data: { cloneUrl: '' }, select: { id: true } }).execute(); @@ -4843,9 +4788,6 @@ const items = await db.resourceDeclaredCapacity.findMany({ select: { cpuLimitMil // Get one by id const item = await db.resourceDeclaredCapacity.findOne({ id: '', select: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true, storageTotalBytes: true } }).execute(); -// Create -const created = await db.resourceDeclaredCapacity.create({ data: { cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '', storageTotalBytes: '' }, select: { id: true } }).execute(); - // Update const updated = await db.resourceDeclaredCapacity.update({ where: { id: '' }, data: { cpuLimitMillicores: '' }, select: { id: true } }).execute(); @@ -5018,9 +4960,6 @@ const items = await db.resourceObservedStorage.findMany({ select: { capacity: tr // Get one by id const item = await db.resourceObservedStorage.findOne({ id: '', select: { capacity: true, capacityBytes: true, claimName: true, declaredStorageClass: true, declaredStorageSizeBytes: true, declaredStorageTotalBytes: true, installationId: true, isBound: true, kind: true, namespaceId: true, phase: true, requested: true, requestedBytes: true, resourceId: true, resourceStatus: true, slug: true, storageClass: true, storageName: true } }).execute(); -// Create -const created = await db.resourceObservedStorage.create({ data: { capacity: '', capacityBytes: '', claimName: '', declaredStorageClass: '', declaredStorageSizeBytes: '', declaredStorageTotalBytes: '', installationId: '', isBound: '', kind: '', namespaceId: '', phase: '', requested: '', requestedBytes: '', resourceId: '', resourceStatus: '', slug: '', storageClass: '', storageName: '' }, select: { id: true } }).execute(); - // Update const updated = await db.resourceObservedStorage.update({ where: { id: '' }, data: { capacity: '' }, select: { id: true } }).execute(); @@ -5177,9 +5116,6 @@ const items = await db.resourceUtilization.findMany({ select: { avgMemoryBytes: // Get one by id const item = await db.resourceUtilization.findOne({ id: '', select: { avgMemoryBytes: true, cpuLimitMillicores: true, cpuPeakUtilization: true, cpuRequestHeadroomMillicores: true, cpuRequestMillicores: true, date: true, gbSeconds: true, kind: true, maxCpuMillicores: true, maxMemoryBytes: true, memoryLimitBytes: true, memoryPeakUtilization: true, memoryRequestBytes: true, memoryRequestHeadroomBytes: true, namespaceId: true, replicas: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }).execute(); -// Create -const created = await db.resourceUtilization.create({ data: { avgMemoryBytes: '', cpuLimitMillicores: '', cpuPeakUtilization: '', cpuRequestHeadroomMillicores: '', cpuRequestMillicores: '', date: '', gbSeconds: '', kind: '', maxCpuMillicores: '', maxMemoryBytes: '', memoryLimitBytes: '', memoryPeakUtilization: '', memoryRequestBytes: '', memoryRequestHeadroomBytes: '', namespaceId: '', replicas: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }, select: { id: true } }).execute(); - // Update const updated = await db.resourceUtilization.update({ where: { id: '' }, data: { avgMemoryBytes: '' }, select: { id: true } }).execute(); @@ -5241,9 +5177,6 @@ const items = await db.resourcesHealth.findMany({ select: { annotations: true, c // Get one by id const item = await db.resourcesHealth.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); -// Create -const created = await db.resourcesHealth.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); - // Update const updated = await db.resourcesHealth.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -5276,9 +5209,6 @@ const items = await db.resourcesRequirementsState.findMany({ select: { configHas // Get one by id const item = await db.resourcesRequirementsState.findOne({ id: '', select: { configHash: true, configObjectName: true, requirementsHash: true, resourceId: true, secretsHash: true, secretsObjectName: true, slug: true } }).execute(); -// Create -const created = await db.resourcesRequirementsState.create({ data: { configHash: '', configObjectName: '', requirementsHash: '', resourceId: '', secretsHash: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute(); - // Update const updated = await db.resourcesRequirementsState.update({ where: { id: '' }, data: { configHash: '' }, select: { id: true } }).execute(); @@ -5315,9 +5245,6 @@ const items = await db.resourcesResolvedRequirement.findMany({ select: { atomId: // Get one by id const item = await db.resourcesResolvedRequirement.findOne({ id: '', select: { atomId: true, configObjectName: true, name: true, namespaceId: true, present: true, realm: true, required: true, requirementKind: true, resourceId: true, secretsObjectName: true, slug: true } }).execute(); -// Create -const created = await db.resourcesResolvedRequirement.create({ data: { atomId: '', configObjectName: '', name: '', namespaceId: '', present: '', realm: '', required: '', requirementKind: '', resourceId: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute(); - // Update const updated = await db.resourcesResolvedRequirement.update({ where: { id: '' }, data: { atomId: '' }, select: { id: true } }).execute(); @@ -5325,6 +5252,51 @@ const updated = await db.resourcesResolvedRequirement.update({ where: { id: '' } }).execute(); ``` +### `db.serviceBinding` + +CRUD operations for ServiceBinding records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `id` | UUID | No | +| `installationId` | UUID | Yes | +| `installationScope` | String | Yes | +| `kind` | String | Yes | +| `lastError` | String | Yes | +| `metadata` | JSON | Yes | +| `namespaceId` | UUID | Yes | +| `observedHost` | String | Yes | +| `realm` | String | Yes | +| `status` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all serviceBinding records +const items = await db.serviceBinding.findMany({ select: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, installationScope: true, kind: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.serviceBinding.findOne({ id: '', select: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, installationScope: true, kind: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.serviceBinding.create({ data: { createdBy: '', createdByPrincipal: '', databaseId: '', installationId: '', installationScope: '', kind: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.serviceBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.serviceBinding.delete({ where: { id: '' } }).execute(); +``` + ### `db.webhookEndpoint` CRUD operations for WebhookEndpoint records. @@ -5532,6 +5504,21 @@ copyGraph const result = await db.mutation.copyGraph({ input: { graphId: '', name: '', scopeId: '' } }).execute(); ``` +### `db.mutation.createFunctionGraph` + +createFunctionGraph + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CreateFunctionGraphInput (required) | + +```typescript +const result = await db.mutation.createFunctionGraph({ input: '' }).execute(); +``` + ### `db.mutation.databaseAddEdge` databaseAddEdge diff --git a/sdk/constructive-cli/src/compute/orm/index.ts b/sdk/constructive-cli/src/compute/orm/index.ts index 01033dc125..bc4368881e 100644 --- a/sdk/constructive-cli/src/compute/orm/index.ts +++ b/sdk/constructive-cli/src/compute/orm/index.ts @@ -7,7 +7,6 @@ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; import { BuildModel } from './models/build'; import { BuildStepModel } from './models/buildStep'; -import { BuilderBindingModel } from './models/builderBinding'; import { ContentPresetModel } from './models/contentPreset'; import { DatabaseFunctionGraphModel } from './models/databaseFunctionGraph'; import { DatabaseFunctionGraphExecutionCancelRequestModel } from './models/databaseFunctionGraphExecutionCancelRequest'; @@ -51,7 +50,6 @@ import { NamespaceModel } from './models/namespace'; import { NamespaceEventModel } from './models/namespaceEvent'; import { PlatformBuildModel } from './models/platformBuild'; import { PlatformBuildStepModel } from './models/platformBuildStep'; -import { PlatformBuilderBindingModel } from './models/platformBuilderBinding'; import { PlatformFunctionApiBindingModel } from './models/platformFunctionApiBinding'; import { PlatformFunctionCapabilityBindingModel } from './models/platformFunctionCapabilityBinding'; import { PlatformFunctionDefinitionModel } from './models/platformFunctionDefinition'; @@ -98,6 +96,7 @@ import { PlatformResourceUtilizationModel } from './models/platformResourceUtili import { PlatformResourcesHealthModel } from './models/platformResourcesHealth'; import { PlatformResourcesRequirementsStateModel } from './models/platformResourcesRequirementsState'; import { PlatformResourcesResolvedRequirementModel } from './models/platformResourcesResolvedRequirement'; +import { PlatformServiceBindingModel } from './models/platformServiceBinding'; import { PlatformWebhookEndpointModel } from './models/platformWebhookEndpoint'; import { PlatformWebhookEventModel } from './models/platformWebhookEvent'; import { ProposalCommentModel } from './models/proposalComment'; @@ -126,6 +125,7 @@ import { ResourceUtilizationModel } from './models/resourceUtilization'; import { ResourcesHealthModel } from './models/resourcesHealth'; import { ResourcesRequirementsStateModel } from './models/resourcesRequirementsState'; import { ResourcesResolvedRequirementModel } from './models/resourcesResolvedRequirement'; +import { ServiceBindingModel } from './models/serviceBinding'; import { WebhookEndpointModel } from './models/webhookEndpoint'; import { WebhookEventModel } from './models/webhookEvent'; import { createQueryOperations } from './query'; @@ -165,7 +165,6 @@ export function createClient(config: OrmClientConfig) { return { build: new BuildModel(client), buildStep: new BuildStepModel(client), - builderBinding: new BuilderBindingModel(client), contentPreset: new ContentPresetModel(client), databaseFunctionGraph: new DatabaseFunctionGraphModel(client), databaseFunctionGraphExecutionCancelRequest: @@ -212,7 +211,6 @@ export function createClient(config: OrmClientConfig) { namespaceEvent: new NamespaceEventModel(client), platformBuild: new PlatformBuildModel(client), platformBuildStep: new PlatformBuildStepModel(client), - platformBuilderBinding: new PlatformBuilderBindingModel(client), platformFunctionApiBinding: new PlatformFunctionApiBindingModel(client), platformFunctionCapabilityBinding: new PlatformFunctionCapabilityBindingModel(client), platformFunctionDefinition: new PlatformFunctionDefinitionModel(client), @@ -259,6 +257,7 @@ export function createClient(config: OrmClientConfig) { platformResourcesHealth: new PlatformResourcesHealthModel(client), platformResourcesRequirementsState: new PlatformResourcesRequirementsStateModel(client), platformResourcesResolvedRequirement: new PlatformResourcesResolvedRequirementModel(client), + platformServiceBinding: new PlatformServiceBindingModel(client), platformWebhookEndpoint: new PlatformWebhookEndpointModel(client), platformWebhookEvent: new PlatformWebhookEventModel(client), proposalComment: new ProposalCommentModel(client), @@ -287,6 +286,7 @@ export function createClient(config: OrmClientConfig) { resourcesHealth: new ResourcesHealthModel(client), resourcesRequirementsState: new ResourcesRequirementsStateModel(client), resourcesResolvedRequirement: new ResourcesResolvedRequirementModel(client), + serviceBinding: new ServiceBindingModel(client), webhookEndpoint: new WebhookEndpointModel(client), webhookEvent: new WebhookEventModel(client), query: createQueryOperations(client), diff --git a/sdk/constructive-cli/src/compute/orm/input-types.ts b/sdk/constructive-cli/src/compute/orm/input-types.ts index c4f3a14a61..8402de3335 100644 --- a/sdk/constructive-cli/src/compute/orm/input-types.ts +++ b/sdk/constructive-cli/src/compute/orm/input-types.ts @@ -234,6 +234,7 @@ export interface UUIDListFilter { export type Base64EncodedBinary = unknown; export type ConstructiveInternalTypeImage = unknown; export type ConstructiveInternalTypeUpload = unknown; +export type FileVersion = unknown; export type ResourceRequirement = unknown; /** One run of a repository workflow: its commit, its job, and what it produced */ // ============ Entity Types ============ @@ -261,6 +262,10 @@ export interface Build { jobId?: string | null; /** Build log object in storage; step rows slice it by byte range */ logs?: ConstructiveInternalTypeUpload | null; + /** URL to fetch `logs`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + logsUrl?: string | null; + /** The versions rendered beside `logs`, narrowest first, each with a URL. Empty when there are none. */ + logsVersions?: FileVersion[] | null; /** Matrix shard identity; NULL for a non-matrix build */ matrixKey?: string | null; /** Build detail (step results, durations, failure reason) */ @@ -315,32 +320,6 @@ export interface BuildStep { /** Parsed detail: failure message, assertion diff, counts, annotations */ summary?: Record | null; } -/** Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST */ -export interface BuilderBinding { - createdAt?: string | null; - createdBy?: string | null; - createdByPrincipal?: string | null; - /** Database that owns this resource (database-scoped isolation) */ - databaseId?: string | null; - id: string; - /** BuildKit resource installation serving this binding; may belong to another resource scope */ - installationId?: string | null; - /** Most recent projection failure */ - lastError?: string | null; - /** Reconciler detail (projection timestamps and diagnostics) */ - metadata?: Record | null; - /** Namespace whose builds use this BuildKit installation */ - namespaceId?: string | null; - /** BuildKit address last projected into the namespace (NULL = never projected) */ - observedHost?: string | null; - /** Lane this binding applies to (NULL = the scope's default lane) */ - realm?: string | null; - /** Projection state of BUILDKIT_HOST: pending, active, failed */ - status?: string | null; - updatedAt?: string | null; - updatedBy?: string | null; - updatedByPrincipal?: string | null; -} /** Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store */ export interface ContentPreset { /** Whether this preset is selectable at provision time */ @@ -1315,6 +1294,10 @@ export interface IntegrationProvider { id: string; /** Provider logo as an image domain value (url, id, key, bucket, provider) */ logo?: ConstructiveInternalTypeImage | null; + /** URL to fetch `logo`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + logoUrl?: string | null; + /** The versions rendered beside `logo`, narrowest first, each with a URL. Empty when there are none. */ + logoVersions?: FileVersion[] | null; /** Human-readable brand name (e.g. 'Mailgun', 'PostgreSQL') */ name?: string | null; /** Canonical config requirements for this provider: array of (name, required, provider) tuples. Used by the UI to auto-fill function/resource required_configs. */ @@ -1395,6 +1378,10 @@ export interface PlatformBuild { jobId?: string | null; /** Build log object in storage; step rows slice it by byte range */ logs?: ConstructiveInternalTypeUpload | null; + /** URL to fetch `logs`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + logsUrl?: string | null; + /** The versions rendered beside `logs`, narrowest first, each with a URL. Empty when there are none. */ + logsVersions?: FileVersion[] | null; /** Matrix shard identity; NULL for a non-matrix build */ matrixKey?: string | null; /** Build detail (step results, durations, failure reason) */ @@ -1447,30 +1434,6 @@ export interface PlatformBuildStep { /** Parsed detail: failure message, assertion diff, counts, annotations */ summary?: Record | null; } -/** Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST */ -export interface PlatformBuilderBinding { - createdAt?: string | null; - createdBy?: string | null; - createdByPrincipal?: string | null; - id: string; - /** BuildKit resource installation serving this binding; may belong to another resource scope */ - installationId?: string | null; - /** Most recent projection failure */ - lastError?: string | null; - /** Reconciler detail (projection timestamps and diagnostics) */ - metadata?: Record | null; - /** Namespace whose builds use this BuildKit installation */ - namespaceId?: string | null; - /** BuildKit address last projected into the namespace (NULL = never projected) */ - observedHost?: string | null; - /** Lane this binding applies to (NULL = the scope's default lane) */ - realm?: string | null; - /** Projection state of BUILDKIT_HOST: pending, active, failed */ - status?: string | null; - updatedAt?: string | null; - updatedBy?: string | null; - updatedByPrincipal?: string | null; -} /** Join table binding function definitions to API endpoints with per-binding alias and config */ export interface PlatformFunctionApiBinding { /** Binding alias (e.g. default, staging, production) */ @@ -2004,6 +1967,10 @@ export interface PlatformProposalComment { actorId?: string | null; /** Files referenced by the comment body, in the order they were attached */ attachments?: ConstructiveInternalTypeUpload[] | null; + /** URL to fetch `attachments`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + attachmentsUrl?: string[] | null; + /** The versions rendered beside `attachments`, narrowest first, each with a URL. Empty when there are none. */ + attachmentsVersions?: FileVersion[] | null; /** Comment text */ body?: string | null; /** TRGM similarity when searching `body`. Returns null when no trgm search filter is active. */ @@ -2012,6 +1979,9 @@ export interface PlatformProposalComment { createdBy?: string | null; createdByPrincipal?: string | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -2057,6 +2027,9 @@ export interface PlatformProposal { /** When this is wanted by (NULL when nothing is promised) */ dueAt?: string | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -2297,6 +2270,9 @@ export interface PlatformRepository { /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ descriptionTrgmSimilarity?: number | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -2720,6 +2696,34 @@ export interface PlatformResourcesResolvedRequirement { secretsObjectName?: string | null; slug?: string | null; } +/** Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config */ +export interface PlatformServiceBinding { + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + id: string; + /** Resource installation serving this binding, in the installations table of installation_scope */ + installationId?: string | null; + /** Scope whose installations table holds installation_id: this scope or platform */ + installationScope?: string | null; + /** Service this binding projects: builder (BUILDKIT_HOST) or git (GIT_PROVIDER + GIT_SERVICE_URL) */ + kind?: string | null; + /** Most recent projection failure */ + lastError?: string | null; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: Record | null; + /** Namespace whose builds use this BuildKit installation */ + namespaceId?: string | null; + /** Service address last projected into the namespace (NULL = never projected) */ + observedHost?: string | null; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string | null; + /** Projection state of the bound address: pending, active, failed */ + status?: string | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} /** Webhook route authority: (host, path) -> function task_identifier invoked through the webhook channel, with provider, signing-secret reference, and replay window */ export interface PlatformWebhookEndpoint { /** Whether this endpoint currently accepts deliveries */ @@ -2776,6 +2780,10 @@ export interface ProposalComment { actorId?: string | null; /** Files referenced by the comment body, in the order they were attached */ attachments?: ConstructiveInternalTypeUpload[] | null; + /** URL to fetch `attachments`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + attachmentsUrl?: string[] | null; + /** The versions rendered beside `attachments`, narrowest first, each with a URL. Empty when there are none. */ + attachmentsVersions?: FileVersion[] | null; /** Comment text */ body?: string | null; /** TRGM similarity when searching `body`. Returns null when no trgm search filter is active. */ @@ -2786,6 +2794,9 @@ export interface ProposalComment { /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -2833,6 +2844,9 @@ export interface Proposal { /** When this is wanted by (NULL when nothing is promised) */ dueAt?: string | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -3089,6 +3103,9 @@ export interface Repository { /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ descriptionTrgmSimilarity?: number | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -3533,6 +3550,36 @@ export interface ResourcesResolvedRequirement { secretsObjectName?: string | null; slug?: string | null; } +/** Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config */ +export interface ServiceBinding { + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + id: string; + /** Resource installation serving this binding, in the installations table of installation_scope */ + installationId?: string | null; + /** Scope whose installations table holds installation_id: this scope or platform */ + installationScope?: string | null; + /** Service this binding projects: builder (BUILDKIT_HOST) or git (GIT_PROVIDER + GIT_SERVICE_URL) */ + kind?: string | null; + /** Most recent projection failure */ + lastError?: string | null; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: Record | null; + /** Namespace whose builds use this BuildKit installation */ + namespaceId?: string | null; + /** Service address last projected into the namespace (NULL = never projected) */ + observedHost?: string | null; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string | null; + /** Projection state of the bound address: pending, active, failed */ + status?: string | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} /** Webhook route authority: (host, path) -> function task_identifier invoked through the webhook channel, with provider, signing-secret reference, and replay window */ export interface WebhookEndpoint { /** Whether this endpoint currently accepts deliveries */ @@ -3607,9 +3654,6 @@ export interface BuildRelations { workflow?: RepositoryWorkflow | null; } export interface BuildStepRelations {} -export interface BuilderBindingRelations { - namespace?: Namespace | null; -} export interface ContentPresetRelations {} export interface DatabaseFunctionGraphRelations { databaseFunctionGraphExecutionsByGraphId?: ConnectionResult; @@ -3643,7 +3687,7 @@ export interface FunctionDefinitionRelations { webhookEndpoints?: ConnectionResult; } export interface FunctionDeploymentRelations { - namespace?: Namespace | null; + namespaceByNamespaceIdAndDatabaseId?: Namespace | null; } export interface FunctionDeploymentEventRelations {} export interface FunctionExecutionLogRelations {} @@ -3683,13 +3727,13 @@ export interface InfraRefRelations {} export interface InfraStoreRelations {} export interface IntegrationProviderRelations {} export interface NamespaceRelations { - builderBindings?: ConnectionResult; - functionDeployments?: ConnectionResult; - registryBindings?: ConnectionResult; - resourceDefinitions?: ConnectionResult; - resourceInstallations?: ConnectionResult; - resources?: ConnectionResult; - webhookEndpoints?: ConnectionResult; + functionDeploymentsByNamespaceIdAndDatabaseId?: ConnectionResult; + registryBindingsByNamespaceIdAndDatabaseId?: ConnectionResult; + resourceDefinitionsByNamespaceIdAndDatabaseId?: ConnectionResult; + resourceInstallationsByNamespaceIdAndDatabaseId?: ConnectionResult; + resourcesByNamespaceIdAndDatabaseId?: ConnectionResult; + serviceBindingsByNamespaceIdAndDatabaseId?: ConnectionResult; + webhookEndpointsByNamespaceIdAndDatabaseId?: ConnectionResult; } export interface NamespaceEventRelations {} export interface PlatformBuildRelations { @@ -3699,9 +3743,6 @@ export interface PlatformBuildRelations { workflow?: PlatformRepositoryWorkflow | null; } export interface PlatformBuildStepRelations {} -export interface PlatformBuilderBindingRelations { - namespace?: PlatformNamespace | null; -} export interface PlatformFunctionApiBindingRelations { functionDefinition?: PlatformFunctionDefinition | null; platformFunctionInvocationsByApiBindingId?: ConnectionResult; @@ -3742,12 +3783,12 @@ export interface PlatformInfraStoreRelations {} export interface PlatformK8sResourceKindRelations {} export interface PlatformK8sSpecRuleRelations {} export interface PlatformNamespaceRelations { - platformBuilderBindingsByNamespaceId?: ConnectionResult; platformFunctionDeploymentsByNamespaceId?: ConnectionResult; platformRegistryBindingsByNamespaceId?: ConnectionResult; platformResourceDefinitionsByNamespaceId?: ConnectionResult; platformResourceInstallationsByNamespaceId?: ConnectionResult; platformResourcesByNamespaceId?: ConnectionResult; + platformServiceBindingsByNamespaceId?: ConnectionResult; platformWebhookEndpointsByNamespaceId?: ConnectionResult; } export interface PlatformNamespaceEventRelations {} @@ -3839,6 +3880,9 @@ export interface PlatformResourceUtilizationRelations {} export interface PlatformResourcesHealthRelations {} export interface PlatformResourcesRequirementsStateRelations {} export interface PlatformResourcesResolvedRequirementRelations {} +export interface PlatformServiceBindingRelations { + namespace?: PlatformNamespace | null; +} export interface PlatformWebhookEndpointRelations { functionDefinition?: PlatformFunctionDefinition | null; namespace?: PlatformNamespace | null; @@ -3876,7 +3920,7 @@ export interface ProposalsChunkRelations { proposals?: Proposal | null; } export interface RegistryBindingRelations { - namespace?: Namespace | null; + namespaceByNamespaceIdAndDatabaseId?: Namespace | null; registry?: Registry | null; } export interface RegistryRelations { @@ -3910,18 +3954,18 @@ export interface RepositoryWorkflowRelations { } export interface ResourceRelations { installation?: ResourceInstallation | null; - namespace?: Namespace | null; + namespaceByNamespaceIdAndDatabaseId?: Namespace | null; resourceDefinition?: ResourceDefinition | null; resourceStatusChecks?: ConnectionResult; } export interface ResourceDeclaredCapacityRelations {} export interface ResourceDefinitionRelations { - namespace?: Namespace | null; + namespaceByNamespaceIdAndDatabaseId?: Namespace | null; resources?: ConnectionResult; } export interface ResourceEventRelations {} export interface ResourceInstallationRelations { - namespace?: Namespace | null; + namespaceByNamespaceIdAndDatabaseId?: Namespace | null; registriesByInstallationId?: ConnectionResult; resourcesByInstallationId?: ConnectionResult; } @@ -3935,9 +3979,12 @@ export interface ResourceUtilizationRelations {} export interface ResourcesHealthRelations {} export interface ResourcesRequirementsStateRelations {} export interface ResourcesResolvedRequirementRelations {} +export interface ServiceBindingRelations { + namespaceByNamespaceIdAndDatabaseId?: Namespace | null; +} export interface WebhookEndpointRelations { functionDefinition?: FunctionDefinition | null; - namespace?: Namespace | null; + namespaceByNamespaceIdAndDatabaseId?: Namespace | null; webhookEventsByEndpointId?: ConnectionResult; } export interface WebhookEventRelations { @@ -3946,7 +3993,6 @@ export interface WebhookEventRelations { // ============ Entity Types With Relations ============ export type BuildWithRelations = Build & BuildRelations; export type BuildStepWithRelations = BuildStep & BuildStepRelations; -export type BuilderBindingWithRelations = BuilderBinding & BuilderBindingRelations; export type ContentPresetWithRelations = ContentPreset & ContentPresetRelations; export type DatabaseFunctionGraphWithRelations = DatabaseFunctionGraph & DatabaseFunctionGraphRelations; @@ -4007,8 +4053,6 @@ export type NamespaceWithRelations = Namespace & NamespaceRelations; export type NamespaceEventWithRelations = NamespaceEvent & NamespaceEventRelations; export type PlatformBuildWithRelations = PlatformBuild & PlatformBuildRelations; export type PlatformBuildStepWithRelations = PlatformBuildStep & PlatformBuildStepRelations; -export type PlatformBuilderBindingWithRelations = PlatformBuilderBinding & - PlatformBuilderBindingRelations; export type PlatformFunctionApiBindingWithRelations = PlatformFunctionApiBinding & PlatformFunctionApiBindingRelations; export type PlatformFunctionCapabilityBindingWithRelations = PlatformFunctionCapabilityBinding & @@ -4089,6 +4133,8 @@ export type PlatformResourcesRequirementsStateWithRelations = PlatformResourcesR PlatformResourcesRequirementsStateRelations; export type PlatformResourcesResolvedRequirementWithRelations = PlatformResourcesResolvedRequirement & PlatformResourcesResolvedRequirementRelations; +export type PlatformServiceBindingWithRelations = PlatformServiceBinding & + PlatformServiceBindingRelations; export type PlatformWebhookEndpointWithRelations = PlatformWebhookEndpoint & PlatformWebhookEndpointRelations; export type PlatformWebhookEventWithRelations = PlatformWebhookEvent & @@ -4126,6 +4172,7 @@ export type ResourcesRequirementsStateWithRelations = ResourcesRequirementsState ResourcesRequirementsStateRelations; export type ResourcesResolvedRequirementWithRelations = ResourcesResolvedRequirement & ResourcesResolvedRequirementRelations; +export type ServiceBindingWithRelations = ServiceBinding & ServiceBindingRelations; export type WebhookEndpointWithRelations = WebhookEndpoint & WebhookEndpointRelations; export type WebhookEventWithRelations = WebhookEvent & WebhookEventRelations; // ============ Entity Select Types ============ @@ -4143,6 +4190,13 @@ export type BuildSelect = { imageRef?: boolean; jobId?: boolean; logs?: boolean; + logsUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + logsVersions?: boolean; matrixKey?: boolean; metadata?: boolean; proposalId?: boolean; @@ -4184,26 +4238,6 @@ export type BuildStepSelect = { status?: boolean; summary?: boolean; }; -export type BuilderBindingSelect = { - createdAt?: boolean; - createdBy?: boolean; - createdByPrincipal?: boolean; - databaseId?: boolean; - id?: boolean; - installationId?: boolean; - lastError?: boolean; - metadata?: boolean; - namespaceId?: boolean; - observedHost?: boolean; - realm?: boolean; - status?: boolean; - updatedAt?: boolean; - updatedBy?: boolean; - updatedByPrincipal?: boolean; - namespace?: { - select: NamespaceSelect; - }; -}; export type ContentPresetSelect = { active?: boolean; commitId?: boolean; @@ -4508,7 +4542,7 @@ export type FunctionDeploymentSelect = { timeoutSeconds?: boolean; updatedAt?: boolean; updatedByPrincipal?: boolean; - namespace?: { + namespaceByNamespaceIdAndDatabaseId?: { select: NamespaceSelect; }; }; @@ -4829,6 +4863,13 @@ export type IntegrationProviderSelect = { icon?: boolean; id?: boolean; logo?: boolean; + logoUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + logoVersions?: boolean; name?: boolean; requiredConfigs?: boolean; requiredSecrets?: boolean; @@ -4850,43 +4891,43 @@ export type NamespaceSelect = { namespaceName?: boolean; status?: boolean; updatedAt?: boolean; - builderBindings?: { - select: BuilderBindingSelect; - first?: number; - filter?: BuilderBindingFilter; - orderBy?: BuilderBindingOrderBy[]; - }; - functionDeployments?: { + functionDeploymentsByNamespaceIdAndDatabaseId?: { select: FunctionDeploymentSelect; first?: number; filter?: FunctionDeploymentFilter; orderBy?: FunctionDeploymentOrderBy[]; }; - registryBindings?: { + registryBindingsByNamespaceIdAndDatabaseId?: { select: RegistryBindingSelect; first?: number; filter?: RegistryBindingFilter; orderBy?: RegistryBindingOrderBy[]; }; - resourceDefinitions?: { + resourceDefinitionsByNamespaceIdAndDatabaseId?: { select: ResourceDefinitionSelect; first?: number; filter?: ResourceDefinitionFilter; orderBy?: ResourceDefinitionOrderBy[]; }; - resourceInstallations?: { + resourceInstallationsByNamespaceIdAndDatabaseId?: { select: ResourceInstallationSelect; first?: number; filter?: ResourceInstallationFilter; orderBy?: ResourceInstallationOrderBy[]; }; - resources?: { + resourcesByNamespaceIdAndDatabaseId?: { select: ResourceSelect; first?: number; filter?: ResourceFilter; orderBy?: ResourceOrderBy[]; }; - webhookEndpoints?: { + serviceBindingsByNamespaceIdAndDatabaseId?: { + select: ServiceBindingSelect; + first?: number; + filter?: ServiceBindingFilter; + orderBy?: ServiceBindingOrderBy[]; + }; + webhookEndpointsByNamespaceIdAndDatabaseId?: { select: WebhookEndpointSelect; first?: number; filter?: WebhookEndpointFilter; @@ -4916,6 +4957,13 @@ export type PlatformBuildSelect = { imageRef?: boolean; jobId?: boolean; logs?: boolean; + logsUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + logsVersions?: boolean; matrixKey?: boolean; metadata?: boolean; proposalId?: boolean; @@ -4956,25 +5004,6 @@ export type PlatformBuildStepSelect = { status?: boolean; summary?: boolean; }; -export type PlatformBuilderBindingSelect = { - createdAt?: boolean; - createdBy?: boolean; - createdByPrincipal?: boolean; - id?: boolean; - installationId?: boolean; - lastError?: boolean; - metadata?: boolean; - namespaceId?: boolean; - observedHost?: boolean; - realm?: boolean; - status?: boolean; - updatedAt?: boolean; - updatedBy?: boolean; - updatedByPrincipal?: boolean; - namespace?: { - select: PlatformNamespaceSelect; - }; -}; export type PlatformFunctionApiBindingSelect = { alias?: boolean; apiId?: boolean; @@ -5313,12 +5342,6 @@ export type PlatformNamespaceSelect = { namespaceName?: boolean; status?: boolean; updatedAt?: boolean; - platformBuilderBindingsByNamespaceId?: { - select: PlatformBuilderBindingSelect; - first?: number; - filter?: PlatformBuilderBindingFilter; - orderBy?: PlatformBuilderBindingOrderBy[]; - }; platformFunctionDeploymentsByNamespaceId?: { select: PlatformFunctionDeploymentSelect; first?: number; @@ -5349,6 +5372,12 @@ export type PlatformNamespaceSelect = { filter?: PlatformResourceFilter; orderBy?: PlatformResourceOrderBy[]; }; + platformServiceBindingsByNamespaceId?: { + select: PlatformServiceBindingSelect; + first?: number; + filter?: PlatformServiceBindingFilter; + orderBy?: PlatformServiceBindingOrderBy[]; + }; platformWebhookEndpointsByNamespaceId?: { select: PlatformWebhookEndpointSelect; first?: number; @@ -5368,12 +5397,21 @@ export type PlatformNamespaceEventSelect = { export type PlatformProposalCommentSelect = { actorId?: boolean; attachments?: boolean; + attachmentsUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + attachmentsVersions?: boolean; body?: boolean; bodyTrgmSimilarity?: boolean; createdAt?: boolean; createdBy?: boolean; createdByPrincipal?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; id?: boolean; @@ -5411,6 +5449,8 @@ export type PlatformProposalSelect = { decidedAt?: boolean; dueAt?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; id?: boolean; @@ -5648,6 +5688,8 @@ export type PlatformRepositorySelect = { description?: boolean; descriptionTrgmSimilarity?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; externalId?: boolean; @@ -6049,6 +6091,27 @@ export type PlatformResourcesResolvedRequirementSelect = { secretsObjectName?: boolean; slug?: boolean; }; +export type PlatformServiceBindingSelect = { + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + id?: boolean; + installationId?: boolean; + installationScope?: boolean; + kind?: boolean; + lastError?: boolean; + metadata?: boolean; + namespaceId?: boolean; + observedHost?: boolean; + realm?: boolean; + status?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + namespace?: { + select: PlatformNamespaceSelect; + }; +}; export type PlatformWebhookEndpointSelect = { active?: boolean; createdAt?: boolean; @@ -6098,6 +6161,13 @@ export type PlatformWebhookEventSelect = { export type ProposalCommentSelect = { actorId?: boolean; attachments?: boolean; + attachmentsUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + attachmentsVersions?: boolean; body?: boolean; bodyTrgmSimilarity?: boolean; createdAt?: boolean; @@ -6105,6 +6175,8 @@ export type ProposalCommentSelect = { createdByPrincipal?: boolean; databaseId?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; id?: boolean; @@ -6143,6 +6215,8 @@ export type ProposalSelect = { decidedAt?: boolean; dueAt?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; id?: boolean; @@ -6315,7 +6389,7 @@ export type RegistryBindingSelect = { updatedAt?: boolean; updatedBy?: boolean; updatedByPrincipal?: boolean; - namespace?: { + namespaceByNamespaceIdAndDatabaseId?: { select: NamespaceSelect; }; registry?: { @@ -6388,6 +6462,8 @@ export type RepositorySelect = { description?: boolean; descriptionTrgmSimilarity?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; externalId?: boolean; @@ -6558,7 +6634,7 @@ export type ResourceSelect = { installation?: { select: ResourceInstallationSelect; }; - namespace?: { + namespaceByNamespaceIdAndDatabaseId?: { select: NamespaceSelect; }; resourceDefinition?: { @@ -6609,7 +6685,7 @@ export type ResourceDefinitionSelect = { updatedAt?: boolean; updatedBy?: boolean; updatedByPrincipal?: boolean; - namespace?: { + namespaceByNamespaceIdAndDatabaseId?: { select: NamespaceSelect; }; resources?: { @@ -6646,7 +6722,7 @@ export type ResourceInstallationSelect = { updatedAt?: boolean; updatedBy?: boolean; updatedByPrincipal?: boolean; - namespace?: { + namespaceByNamespaceIdAndDatabaseId?: { select: NamespaceSelect; }; registriesByInstallationId?: { @@ -6800,6 +6876,28 @@ export type ResourcesResolvedRequirementSelect = { secretsObjectName?: boolean; slug?: boolean; }; +export type ServiceBindingSelect = { + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + id?: boolean; + installationId?: boolean; + installationScope?: boolean; + kind?: boolean; + lastError?: boolean; + metadata?: boolean; + namespaceId?: boolean; + observedHost?: boolean; + realm?: boolean; + status?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + namespaceByNamespaceIdAndDatabaseId?: { + select: NamespaceSelect; + }; +}; export type WebhookEndpointSelect = { active?: boolean; createdAt?: boolean; @@ -6820,7 +6918,7 @@ export type WebhookEndpointSelect = { functionDefinition?: { select: FunctionDefinitionSelect; }; - namespace?: { + namespaceByNamespaceIdAndDatabaseId?: { select: NamespaceSelect; }; webhookEventsByEndpointId?: { @@ -6957,46 +7055,6 @@ export interface BuildStepFilter { /** Filter by the object’s `summary` field. */ summary?: JSONFilter; } -export interface BuilderBindingFilter { - /** Checks for all expressions in this list. */ - and?: BuilderBindingFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `createdByPrincipal` field. */ - createdByPrincipal?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: BuilderBindingFilter; - /** Filter by the object’s `observedHost` field. */ - observedHost?: StringFilter; - /** Checks for any expressions in this list. */ - or?: BuilderBindingFilter[]; - /** Filter by the object’s `realm` field. */ - realm?: StringFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `updatedByPrincipal` field. */ - updatedByPrincipal?: UUIDFilter; -} export interface ContentPresetFilter { /** Filter by the object’s `active` field. */ active?: BooleanFilter; @@ -7557,8 +7615,8 @@ export interface FunctionDeploymentFilter { lastError?: StringFilter; /** Filter by the object’s `lastErrorAt` field. */ lastErrorAt?: DatetimeFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -8271,10 +8329,6 @@ export interface NamespaceFilter { and?: NamespaceFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; - /** Filter by the object’s `builderBindings` relation. */ - builderBindings?: NamespaceToManyBuilderBindingFilter; - /** `builderBindings` exist. */ - builderBindingsExist?: boolean; /** Filter by the object’s `clusterId` field. */ clusterId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -8283,10 +8337,10 @@ export interface NamespaceFilter { databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; - /** Filter by the object’s `functionDeployments` relation. */ - functionDeployments?: NamespaceToManyFunctionDeploymentFilter; - /** `functionDeployments` exist. */ - functionDeploymentsExist?: boolean; + /** Filter by the object’s `functionDeploymentsByNamespaceIdAndDatabaseId` relation. */ + functionDeploymentsByNamespaceIdAndDatabaseId?: NamespaceToManyFunctionDeploymentFilter; + /** `functionDeploymentsByNamespaceIdAndDatabaseId` exist. */ + functionDeploymentsByNamespaceIdAndDatabaseIdExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isActive` field. */ @@ -8305,30 +8359,34 @@ export interface NamespaceFilter { not?: NamespaceFilter; /** Checks for any expressions in this list. */ or?: NamespaceFilter[]; - /** Filter by the object’s `registryBindings` relation. */ - registryBindings?: NamespaceToManyRegistryBindingFilter; - /** `registryBindings` exist. */ - registryBindingsExist?: boolean; - /** Filter by the object’s `resourceDefinitions` relation. */ - resourceDefinitions?: NamespaceToManyResourceDefinitionFilter; - /** `resourceDefinitions` exist. */ - resourceDefinitionsExist?: boolean; - /** Filter by the object’s `resourceInstallations` relation. */ - resourceInstallations?: NamespaceToManyResourceInstallationFilter; - /** `resourceInstallations` exist. */ - resourceInstallationsExist?: boolean; - /** Filter by the object’s `resources` relation. */ - resources?: NamespaceToManyResourceFilter; - /** `resources` exist. */ - resourcesExist?: boolean; + /** Filter by the object’s `registryBindingsByNamespaceIdAndDatabaseId` relation. */ + registryBindingsByNamespaceIdAndDatabaseId?: NamespaceToManyRegistryBindingFilter; + /** `registryBindingsByNamespaceIdAndDatabaseId` exist. */ + registryBindingsByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `resourceDefinitionsByNamespaceIdAndDatabaseId` relation. */ + resourceDefinitionsByNamespaceIdAndDatabaseId?: NamespaceToManyResourceDefinitionFilter; + /** `resourceDefinitionsByNamespaceIdAndDatabaseId` exist. */ + resourceDefinitionsByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `resourceInstallationsByNamespaceIdAndDatabaseId` relation. */ + resourceInstallationsByNamespaceIdAndDatabaseId?: NamespaceToManyResourceInstallationFilter; + /** `resourceInstallationsByNamespaceIdAndDatabaseId` exist. */ + resourceInstallationsByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `resourcesByNamespaceIdAndDatabaseId` relation. */ + resourcesByNamespaceIdAndDatabaseId?: NamespaceToManyResourceFilter; + /** `resourcesByNamespaceIdAndDatabaseId` exist. */ + resourcesByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `serviceBindingsByNamespaceIdAndDatabaseId` relation. */ + serviceBindingsByNamespaceIdAndDatabaseId?: NamespaceToManyServiceBindingFilter; + /** `serviceBindingsByNamespaceIdAndDatabaseId` exist. */ + serviceBindingsByNamespaceIdAndDatabaseIdExist?: boolean; /** Filter by the object’s `status` field. */ status?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `webhookEndpoints` relation. */ - webhookEndpoints?: NamespaceToManyWebhookEndpointFilter; - /** `webhookEndpoints` exist. */ - webhookEndpointsExist?: boolean; + /** Filter by the object’s `webhookEndpointsByNamespaceIdAndDatabaseId` relation. */ + webhookEndpointsByNamespaceIdAndDatabaseId?: NamespaceToManyWebhookEndpointFilter; + /** `webhookEndpointsByNamespaceIdAndDatabaseId` exist. */ + webhookEndpointsByNamespaceIdAndDatabaseIdExist?: boolean; } export interface NamespaceEventFilter { /** Filter by the object’s `actorId` field. */ @@ -8458,44 +8516,6 @@ export interface PlatformBuildStepFilter { /** Filter by the object’s `summary` field. */ summary?: JSONFilter; } -export interface PlatformBuilderBindingFilter { - /** Checks for all expressions in this list. */ - and?: PlatformBuilderBindingFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `createdByPrincipal` field. */ - createdByPrincipal?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: PlatformNamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: PlatformBuilderBindingFilter; - /** Filter by the object’s `observedHost` field. */ - observedHost?: StringFilter; - /** Checks for any expressions in this list. */ - or?: PlatformBuilderBindingFilter[]; - /** Filter by the object’s `realm` field. */ - realm?: StringFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `updatedByPrincipal` field. */ - updatedByPrincipal?: UUIDFilter; -} export interface PlatformFunctionApiBindingFilter { /** Filter by the object’s `alias` field. */ alias?: StringFilter; @@ -9166,10 +9186,6 @@ export interface PlatformNamespaceFilter { not?: PlatformNamespaceFilter; /** Checks for any expressions in this list. */ or?: PlatformNamespaceFilter[]; - /** Filter by the object’s `platformBuilderBindingsByNamespaceId` relation. */ - platformBuilderBindingsByNamespaceId?: PlatformNamespaceToManyPlatformBuilderBindingFilter; - /** `platformBuilderBindingsByNamespaceId` exist. */ - platformBuilderBindingsByNamespaceIdExist?: boolean; /** Filter by the object’s `platformFunctionDeploymentsByNamespaceId` relation. */ platformFunctionDeploymentsByNamespaceId?: PlatformNamespaceToManyPlatformFunctionDeploymentFilter; /** `platformFunctionDeploymentsByNamespaceId` exist. */ @@ -9190,6 +9206,10 @@ export interface PlatformNamespaceFilter { platformResourcesByNamespaceId?: PlatformNamespaceToManyPlatformResourceFilter; /** `platformResourcesByNamespaceId` exist. */ platformResourcesByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformServiceBindingsByNamespaceId` relation. */ + platformServiceBindingsByNamespaceId?: PlatformNamespaceToManyPlatformServiceBindingFilter; + /** `platformServiceBindingsByNamespaceId` exist. */ + platformServiceBindingsByNamespaceIdExist?: boolean; /** Filter by the object’s `platformWebhookEndpointsByNamespaceId` relation. */ platformWebhookEndpointsByNamespaceId?: PlatformNamespaceToManyPlatformWebhookEndpointFilter; /** `platformWebhookEndpointsByNamespaceId` exist. */ @@ -9238,6 +9258,8 @@ export interface PlatformProposalCommentFilter { createdByPrincipal?: UUIDFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -9266,6 +9288,8 @@ export interface PlatformProposalCommentFilter { search?: FullTextFilter; /** TRGM search on the `body` column. */ trgmBody?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `path` column. */ trgmPath?: TrgmSearchInput; /** TSV search on the `search` column. */ @@ -9312,6 +9336,8 @@ export interface PlatformProposalFilter { dueAt?: DatetimeFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -9386,6 +9412,8 @@ export interface PlatformProposalFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `closed_reason` column. */ trgmClosedReason?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `merge_commit` column. */ @@ -9712,6 +9740,8 @@ export interface PlatformRepositoryFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `externalId` field. */ @@ -9762,6 +9792,8 @@ export interface PlatformRepositoryFilter { trgmDefaultBranch?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `external_id` column. */ trgmExternalId?: TrgmSearchInput; /** TRGM search on the `name` column. */ @@ -10447,6 +10479,48 @@ export interface PlatformResourcesResolvedRequirementFilter { /** Filter by the object’s `slug` field. */ slug?: StringFilter; } +export interface PlatformServiceBindingFilter { + /** Checks for all expressions in this list. */ + and?: PlatformServiceBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `installationScope` field. */ + installationScope?: StringFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformServiceBindingFilter; + /** Filter by the object’s `observedHost` field. */ + observedHost?: StringFilter; + /** Checks for any expressions in this list. */ + or?: PlatformServiceBindingFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} export interface PlatformWebhookEndpointFilter { /** Filter by the object’s `active` field. */ active?: BooleanFilter; @@ -10546,6 +10620,8 @@ export interface ProposalCommentFilter { databaseId?: UUIDFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -10574,6 +10650,8 @@ export interface ProposalCommentFilter { search?: FullTextFilter; /** TRGM search on the `body` column. */ trgmBody?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `path` column. */ trgmPath?: TrgmSearchInput; /** TSV search on the `search` column. */ @@ -10626,6 +10704,8 @@ export interface ProposalFilter { dueAt?: DatetimeFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -10696,6 +10776,8 @@ export interface ProposalFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `closed_reason` column. */ trgmClosedReason?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `merge_commit` column. */ @@ -10896,8 +10978,8 @@ export interface RegistryBindingFilter { id?: UUIDFilter; /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -11042,6 +11124,8 @@ export interface RepositoryFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `externalId` field. */ @@ -11088,6 +11172,8 @@ export interface RepositoryFilter { trgmDefaultBranch?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `external_id` column. */ trgmExternalId?: TrgmSearchInput; /** TRGM search on the `name` column. */ @@ -11290,8 +11376,8 @@ export interface ResourceFilter { memoryRequestBytes?: BigIntFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -11396,8 +11482,8 @@ export interface ResourceDefinitionFilter { labels?: JSONFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -11462,8 +11548,8 @@ export interface ResourceInstallationFilter { id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -11795,6 +11881,50 @@ export interface ResourcesResolvedRequirementFilter { /** Filter by the object’s `slug` field. */ slug?: StringFilter; } +export interface ServiceBindingFilter { + /** Checks for all expressions in this list. */ + and?: ServiceBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `installationScope` field. */ + installationScope?: StringFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ServiceBindingFilter; + /** Filter by the object’s `observedHost` field. */ + observedHost?: StringFilter; + /** Checks for any expressions in this list. */ + or?: ServiceBindingFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} export interface WebhookEndpointFilter { /** Filter by the object’s `active` field. */ active?: BooleanFilter; @@ -11816,8 +11946,8 @@ export interface WebhookEndpointFilter { host?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -11966,40 +12096,6 @@ export type BuildStepOrderBy = | 'STATUS_DESC' | 'SUMMARY_ASC' | 'SUMMARY_DESC'; -export type BuilderBindingOrderBy = - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'CREATED_BY_PRINCIPAL_ASC' - | 'CREATED_BY_PRINCIPAL_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'INSTALLATION_ID_ASC' - | 'INSTALLATION_ID_DESC' - | 'LAST_ERROR_ASC' - | 'LAST_ERROR_DESC' - | 'METADATA_ASC' - | 'METADATA_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' - | 'NATURAL' - | 'OBSERVED_HOST_ASC' - | 'OBSERVED_HOST_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'REALM_ASC' - | 'REALM_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'UPDATED_BY_PRINCIPAL_ASC' - | 'UPDATED_BY_PRINCIPAL_DESC'; export type ContentPresetOrderBy = | 'ACTIVE_ASC' | 'ACTIVE_DESC' @@ -13198,38 +13294,6 @@ export type PlatformBuildStepOrderBy = | 'STATUS_DESC' | 'SUMMARY_ASC' | 'SUMMARY_DESC'; -export type PlatformBuilderBindingOrderBy = - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'CREATED_BY_PRINCIPAL_ASC' - | 'CREATED_BY_PRINCIPAL_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'INSTALLATION_ID_ASC' - | 'INSTALLATION_ID_DESC' - | 'LAST_ERROR_ASC' - | 'LAST_ERROR_DESC' - | 'METADATA_ASC' - | 'METADATA_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' - | 'NATURAL' - | 'OBSERVED_HOST_ASC' - | 'OBSERVED_HOST_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'REALM_ASC' - | 'REALM_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'UPDATED_BY_PRINCIPAL_ASC' - | 'UPDATED_BY_PRINCIPAL_DESC'; export type PlatformFunctionApiBindingOrderBy = | 'ALIAS_ASC' | 'ALIAS_DESC' @@ -13829,6 +13893,10 @@ export type PlatformProposalCommentOrderBy = | 'CREATED_BY_PRINCIPAL_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -13885,6 +13953,10 @@ export type PlatformProposalOrderBy = | 'DUE_AT_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -14185,6 +14257,10 @@ export type PlatformRepositoryOrderBy = | 'DESCRIPTION_TRGM_SIMILARITY_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -14766,6 +14842,42 @@ export type PlatformResourcesResolvedRequirementOrderBy = | 'SECRETS_OBJECT_NAME_DESC' | 'SLUG_ASC' | 'SLUG_DESC'; +export type PlatformServiceBindingOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INSTALLATION_ID_ASC' + | 'INSTALLATION_ID_DESC' + | 'INSTALLATION_SCOPE_ASC' + | 'INSTALLATION_SCOPE_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'OBSERVED_HOST_ASC' + | 'OBSERVED_HOST_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type PlatformWebhookEndpointOrderBy = | 'ACTIVE_ASC' | 'ACTIVE_DESC' @@ -14847,6 +14959,10 @@ export type ProposalCommentOrderBy = | 'DATABASE_ID_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -14905,6 +15021,10 @@ export type ProposalOrderBy = | 'DUE_AT_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -15221,6 +15341,10 @@ export type RepositoryOrderBy = | 'DESCRIPTION_TRGM_SIMILARITY_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -15824,6 +15948,44 @@ export type ResourcesResolvedRequirementOrderBy = | 'SECRETS_OBJECT_NAME_DESC' | 'SLUG_ASC' | 'SLUG_DESC'; +export type ServiceBindingOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INSTALLATION_ID_ASC' + | 'INSTALLATION_ID_DESC' + | 'INSTALLATION_SCOPE_ASC' + | 'INSTALLATION_SCOPE_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'OBSERVED_HOST_ASC' + | 'OBSERVED_HOST_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type WebhookEndpointOrderBy = | 'ACTIVE_ASC' | 'ACTIVE_DESC' @@ -15927,7 +16089,6 @@ export interface BuildPatch { imageRef?: string | null; jobId?: string | null; logs?: ConstructiveInternalTypeUpload | null; - logsUpload?: File | null; matrixKey?: string | null; metadata?: Record | null; proposalId?: string | null; @@ -15992,46 +16153,6 @@ export interface DeleteBuildStepInput { clientMutationId?: string; id: string; } -export interface CreateBuilderBindingInput { - clientMutationId?: string; - builderBinding: { - createdBy?: string; - createdByPrincipal?: string; - databaseId: string; - installationId: string; - lastError?: string; - metadata?: Record; - namespaceId: string; - observedHost?: string; - realm?: string; - status?: string; - updatedBy?: string; - updatedByPrincipal?: string; - }; -} -export interface BuilderBindingPatch { - createdBy?: string | null; - createdByPrincipal?: string | null; - databaseId?: string | null; - installationId?: string | null; - lastError?: string | null; - metadata?: Record | null; - namespaceId?: string | null; - observedHost?: string | null; - realm?: string | null; - status?: string | null; - updatedBy?: string | null; - updatedByPrincipal?: string | null; -} -export interface UpdateBuilderBindingInput { - clientMutationId?: string; - id: string; - builderBindingPatch: BuilderBindingPatch; -} -export interface DeleteBuilderBindingInput { - clientMutationId?: string; - id: string; -} export interface CreateContentPresetInput { clientMutationId?: string; contentPreset: { @@ -16064,20 +16185,6 @@ export interface DeleteContentPresetInput { clientMutationId?: string; id: string; } -export interface CreateDatabaseFunctionGraphInput { - clientMutationId?: string; - databaseFunctionGraph: { - context?: string; - createdBy?: string; - databaseId: string; - definitionsCommitId: string; - description?: string; - isValid?: boolean; - name?: string; - storeId: string; - validationErrors?: Record; - }; -} export interface DatabaseFunctionGraphPatch { context?: string | null; createdBy?: string | null; @@ -16304,13 +16411,6 @@ export interface DeleteDatabaseGraphCommitInput { clientMutationId?: string; id: string; } -export interface CreateDatabaseGraphGetAllTreeNodesRecordInput { - clientMutationId?: string; - databaseGraphGetAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; -} export interface DatabaseGraphGetAllTreeNodesRecordPatch { data?: Record | null; path?: string[] | null; @@ -16726,20 +16826,6 @@ export interface DeleteFunctionGraphCommitInput { clientMutationId?: string; id: string; } -export interface CreateFunctionGraphInput { - clientMutationId?: string; - functionGraph: { - context?: string; - createdBy?: string; - definitionsCommitId: string; - description?: string; - isValid?: boolean; - name?: string; - scopeId: string; - storeId: string; - validationErrors?: Record; - }; -} export interface FunctionGraphPatch { context?: string | null; createdBy?: string | null; @@ -17144,13 +17230,6 @@ export interface DeleteFunctionScheduleInput { clientMutationId?: string; id: string; } -export interface CreateGetAllTreeNodesRecordInput { - clientMutationId?: string; - getAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; -} export interface GetAllTreeNodesRecordPatch { data?: Record | null; path?: string[] | null; @@ -17278,13 +17357,6 @@ export interface DeleteInfraCommitInput { clientMutationId?: string; id: string; } -export interface CreateInfraGetAllTreeNodesRecordInput { - clientMutationId?: string; - infraGetAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; -} export interface InfraGetAllTreeNodesRecordPatch { data?: Record | null; path?: string[] | null; @@ -17388,7 +17460,6 @@ export interface IntegrationProviderPatch { description?: string | null; icon?: string | null; logo?: ConstructiveInternalTypeImage | null; - logoUpload?: File | null; name?: string | null; requiredConfigs?: ResourceRequirementInput[] | null; requiredSecrets?: ResourceRequirementInput[] | null; @@ -17504,7 +17575,6 @@ export interface PlatformBuildPatch { imageRef?: string | null; jobId?: string | null; logs?: ConstructiveInternalTypeUpload | null; - logsUpload?: File | null; matrixKey?: string | null; metadata?: Record | null; proposalId?: string | null; @@ -17568,44 +17638,6 @@ export interface DeletePlatformBuildStepInput { clientMutationId?: string; id: string; } -export interface CreatePlatformBuilderBindingInput { - clientMutationId?: string; - platformBuilderBinding: { - createdBy?: string; - createdByPrincipal?: string; - installationId: string; - lastError?: string; - metadata?: Record; - namespaceId: string; - observedHost?: string; - realm?: string; - status?: string; - updatedBy?: string; - updatedByPrincipal?: string; - }; -} -export interface PlatformBuilderBindingPatch { - createdBy?: string | null; - createdByPrincipal?: string | null; - installationId?: string | null; - lastError?: string | null; - metadata?: Record | null; - namespaceId?: string | null; - observedHost?: string | null; - realm?: string | null; - status?: string | null; - updatedBy?: string | null; - updatedByPrincipal?: string | null; -} -export interface UpdatePlatformBuilderBindingInput { - clientMutationId?: string; - id: string; - platformBuilderBindingPatch: PlatformBuilderBindingPatch; -} -export interface DeletePlatformBuilderBindingInput { - clientMutationId?: string; - id: string; -} export interface CreatePlatformFunctionApiBindingInput { clientMutationId?: string; platformFunctionApiBinding: { @@ -18114,13 +18146,6 @@ export interface DeletePlatformInfraCommitInput { clientMutationId?: string; id: string; } -export interface CreatePlatformInfraGetAllTreeNodesRecordInput { - clientMutationId?: string; - platformInfraGetAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; -} export interface PlatformInfraGetAllTreeNodesRecordPatch { data?: Record | null; path?: string[] | null; @@ -18892,25 +18917,6 @@ export interface DeletePlatformResourceInput { clientMutationId?: string; id: string; } -export interface CreatePlatformResourceDeclaredCapacityInput { - clientMutationId?: string; - platformResourceDeclaredCapacity: { - cpuLimitMillicores?: string; - cpuRequestMillicores?: string; - installationId: string; - isTransient?: boolean; - kind?: string; - memoryLimitBytes?: string; - memoryRequestBytes?: string; - namespaceId: string; - podCountMax?: number; - podCountMin?: number; - source?: string; - sourceId: string; - storageSizeBytes?: string; - storageTotalBytes?: string; - }; -} export interface PlatformResourceDeclaredCapacityPatch { cpuLimitMillicores?: string | null; cpuRequestMillicores?: string | null; @@ -19052,29 +19058,6 @@ export interface DeletePlatformResourceInstallationInput { clientMutationId?: string; id: string; } -export interface CreatePlatformResourceObservedStorageInput { - clientMutationId?: string; - platformResourceObservedStorage: { - capacity?: string; - capacityBytes?: string; - claimName?: string; - declaredStorageClass?: string; - declaredStorageSizeBytes?: string; - declaredStorageTotalBytes?: string; - installationId: string; - isBound?: boolean; - kind?: string; - namespaceId: string; - phase?: string; - requested?: string; - requestedBytes?: string; - resourceId: string; - resourceStatus?: string; - slug?: string; - storageClass?: string; - storageName?: string; - }; -} export interface PlatformResourceObservedStoragePatch { capacity?: string | null; capacityBytes?: string | null; @@ -19196,30 +19179,6 @@ export interface DeletePlatformResourceUsageSummaryInput { clientMutationId?: string; id: string; } -export interface CreatePlatformResourceUtilizationInput { - clientMutationId?: string; - platformResourceUtilization: { - avgMemoryBytes?: string; - cpuLimitMillicores?: string; - cpuPeakUtilization?: string; - cpuRequestHeadroomMillicores?: string; - cpuRequestMillicores?: string; - date?: string; - gbSeconds?: string; - kind?: string; - maxCpuMillicores?: string; - maxMemoryBytes?: string; - memoryLimitBytes?: string; - memoryPeakUtilization?: string; - memoryRequestBytes?: string; - memoryRequestHeadroomBytes?: string; - namespaceId: string; - replicas?: number; - resourceId: string; - runtimeSeconds?: string; - sampleCount?: number; - }; -} export interface PlatformResourceUtilizationPatch { avgMemoryBytes?: string | null; cpuLimitMillicores?: string | null; @@ -19250,43 +19209,6 @@ export interface DeletePlatformResourceUtilizationInput { clientMutationId?: string; id: string; } -export interface CreatePlatformResourcesHealthInput { - clientMutationId?: string; - platformResourcesHealth: { - annotations?: Record; - cpuLimitMillicores?: string; - cpuRequestMillicores?: string; - createdBy?: string; - createdByPrincipal?: string; - errorCount?: number; - imageRef?: string; - installationId: string; - integrations?: string[]; - kind?: string; - labels?: Record; - lastError?: string; - lastHeartbeatAt?: string; - memoryLimitBytes?: string; - memoryRequestBytes?: string; - name?: string; - namespaceId: string; - realm?: string; - replicas?: number; - requiredConfigs?: ResourceRequirement[]; - requiredSecrets?: ResourceRequirement[]; - resourceDefinitionId: string; - slug?: string; - spec?: Record; - status?: string; - statusDetail?: string; - statusObserved?: Record; - storageClass?: string; - storageSizeBytes?: string; - storageTotalBytes?: string; - updatedBy?: string; - updatedByPrincipal?: string; - }; -} export interface PlatformResourcesHealthPatch { annotations?: Record | null; cpuLimitMillicores?: string | null; @@ -19330,18 +19252,6 @@ export interface DeletePlatformResourcesHealthInput { clientMutationId?: string; id: string; } -export interface CreatePlatformResourcesRequirementsStateInput { - clientMutationId?: string; - platformResourcesRequirementsState: { - configHash?: string; - configObjectName?: string; - requirementsHash?: string; - resourceId: string; - secretsHash?: string; - secretsObjectName?: string; - slug?: string; - }; -} export interface PlatformResourcesRequirementsStatePatch { configHash?: string | null; configObjectName?: string | null; @@ -19360,22 +19270,6 @@ export interface DeletePlatformResourcesRequirementsStateInput { clientMutationId?: string; id: string; } -export interface CreatePlatformResourcesResolvedRequirementInput { - clientMutationId?: string; - platformResourcesResolvedRequirement: { - atomId: string; - configObjectName?: string; - name?: string; - namespaceId: string; - present?: boolean; - realm?: string; - required?: boolean; - requirementKind?: string; - resourceId: string; - secretsObjectName?: string; - slug?: string; - }; -} export interface PlatformResourcesResolvedRequirementPatch { atomId?: string | null; configObjectName?: string | null; @@ -19398,6 +19292,48 @@ export interface DeletePlatformResourcesResolvedRequirementInput { clientMutationId?: string; id: string; } +export interface CreatePlatformServiceBindingInput { + clientMutationId?: string; + platformServiceBinding: { + createdBy?: string; + createdByPrincipal?: string; + installationId: string; + installationScope: string; + kind: string; + lastError?: string; + metadata?: Record; + namespaceId: string; + observedHost?: string; + realm?: string; + status?: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformServiceBindingPatch { + createdBy?: string | null; + createdByPrincipal?: string | null; + installationId?: string | null; + installationScope?: string | null; + kind?: string | null; + lastError?: string | null; + metadata?: Record | null; + namespaceId?: string | null; + observedHost?: string | null; + realm?: string | null; + status?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformServiceBindingInput { + clientMutationId?: string; + id: string; + platformServiceBindingPatch: PlatformServiceBindingPatch; +} +export interface DeletePlatformServiceBindingInput { + clientMutationId?: string; + id: string; +} export interface CreatePlatformWebhookEndpointInput { clientMutationId?: string; platformWebhookEndpoint: { @@ -20059,25 +19995,6 @@ export interface DeleteResourceInput { clientMutationId?: string; id: string; } -export interface CreateResourceDeclaredCapacityInput { - clientMutationId?: string; - resourceDeclaredCapacity: { - cpuLimitMillicores?: string; - cpuRequestMillicores?: string; - installationId: string; - isTransient?: boolean; - kind?: string; - memoryLimitBytes?: string; - memoryRequestBytes?: string; - namespaceId: string; - podCountMax?: number; - podCountMin?: number; - source?: string; - sourceId: string; - storageSizeBytes?: string; - storageTotalBytes?: string; - }; -} export interface ResourceDeclaredCapacityPatch { cpuLimitMillicores?: string | null; cpuRequestMillicores?: string | null; @@ -20225,29 +20142,6 @@ export interface DeleteResourceInstallationInput { clientMutationId?: string; id: string; } -export interface CreateResourceObservedStorageInput { - clientMutationId?: string; - resourceObservedStorage: { - capacity?: string; - capacityBytes?: string; - claimName?: string; - declaredStorageClass?: string; - declaredStorageSizeBytes?: string; - declaredStorageTotalBytes?: string; - installationId: string; - isBound?: boolean; - kind?: string; - namespaceId: string; - phase?: string; - requested?: string; - requestedBytes?: string; - resourceId: string; - resourceStatus?: string; - slug?: string; - storageClass?: string; - storageName?: string; - }; -} export interface ResourceObservedStoragePatch { capacity?: string | null; capacityBytes?: string | null; @@ -20375,30 +20269,6 @@ export interface DeleteResourceUsageSummaryInput { clientMutationId?: string; id: string; } -export interface CreateResourceUtilizationInput { - clientMutationId?: string; - resourceUtilization: { - avgMemoryBytes?: string; - cpuLimitMillicores?: string; - cpuPeakUtilization?: string; - cpuRequestHeadroomMillicores?: string; - cpuRequestMillicores?: string; - date?: string; - gbSeconds?: string; - kind?: string; - maxCpuMillicores?: string; - maxMemoryBytes?: string; - memoryLimitBytes?: string; - memoryPeakUtilization?: string; - memoryRequestBytes?: string; - memoryRequestHeadroomBytes?: string; - namespaceId: string; - replicas?: number; - resourceId: string; - runtimeSeconds?: string; - sampleCount?: number; - }; -} export interface ResourceUtilizationPatch { avgMemoryBytes?: string | null; cpuLimitMillicores?: string | null; @@ -20429,44 +20299,6 @@ export interface DeleteResourceUtilizationInput { clientMutationId?: string; id: string; } -export interface CreateResourcesHealthInput { - clientMutationId?: string; - resourcesHealth: { - annotations?: Record; - cpuLimitMillicores?: string; - cpuRequestMillicores?: string; - createdBy?: string; - createdByPrincipal?: string; - databaseId: string; - errorCount?: number; - imageRef?: string; - installationId: string; - integrations?: string[]; - kind?: string; - labels?: Record; - lastError?: string; - lastHeartbeatAt?: string; - memoryLimitBytes?: string; - memoryRequestBytes?: string; - name?: string; - namespaceId: string; - realm?: string; - replicas?: number; - requiredConfigs?: ResourceRequirement[]; - requiredSecrets?: ResourceRequirement[]; - resourceDefinitionId: string; - slug?: string; - spec?: Record; - status?: string; - statusDetail?: string; - statusObserved?: Record; - storageClass?: string; - storageSizeBytes?: string; - storageTotalBytes?: string; - updatedBy?: string; - updatedByPrincipal?: string; - }; -} export interface ResourcesHealthPatch { annotations?: Record | null; cpuLimitMillicores?: string | null; @@ -20511,18 +20343,6 @@ export interface DeleteResourcesHealthInput { clientMutationId?: string; id: string; } -export interface CreateResourcesRequirementsStateInput { - clientMutationId?: string; - resourcesRequirementsState: { - configHash?: string; - configObjectName?: string; - requirementsHash?: string; - resourceId: string; - secretsHash?: string; - secretsObjectName?: string; - slug?: string; - }; -} export interface ResourcesRequirementsStatePatch { configHash?: string | null; configObjectName?: string | null; @@ -20541,22 +20361,6 @@ export interface DeleteResourcesRequirementsStateInput { clientMutationId?: string; id: string; } -export interface CreateResourcesResolvedRequirementInput { - clientMutationId?: string; - resourcesResolvedRequirement: { - atomId: string; - configObjectName?: string; - name?: string; - namespaceId: string; - present?: boolean; - realm?: string; - required?: boolean; - requirementKind?: string; - resourceId: string; - secretsObjectName?: string; - slug?: string; - }; -} export interface ResourcesResolvedRequirementPatch { atomId?: string | null; configObjectName?: string | null; @@ -20579,6 +20383,50 @@ export interface DeleteResourcesResolvedRequirementInput { clientMutationId?: string; id: string; } +export interface CreateServiceBindingInput { + clientMutationId?: string; + serviceBinding: { + createdBy?: string; + createdByPrincipal?: string; + databaseId: string; + installationId: string; + installationScope: string; + kind: string; + lastError?: string; + metadata?: Record; + namespaceId: string; + observedHost?: string; + realm?: string; + status?: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface ServiceBindingPatch { + createdBy?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + installationId?: string | null; + installationScope?: string | null; + kind?: string | null; + lastError?: string | null; + metadata?: Record | null; + namespaceId?: string | null; + observedHost?: string | null; + realm?: string | null; + status?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateServiceBindingInput { + clientMutationId?: string; + id: string; + serviceBindingPatch: ServiceBindingPatch; +} +export interface DeleteServiceBindingInput { + clientMutationId?: string; + id: string; +} export interface CreateWebhookEndpointInput { clientMutationId?: string; webhookEndpoint: { @@ -20682,13 +20530,13 @@ export const connectionFieldsMap = { imageGrants: 'ImageGrant', }, Namespace: { - builderBindings: 'BuilderBinding', - functionDeployments: 'FunctionDeployment', - registryBindings: 'RegistryBinding', - resourceDefinitions: 'ResourceDefinition', - resourceInstallations: 'ResourceInstallation', - resources: 'Resource', - webhookEndpoints: 'WebhookEndpoint', + functionDeploymentsByNamespaceIdAndDatabaseId: 'FunctionDeployment', + registryBindingsByNamespaceIdAndDatabaseId: 'RegistryBinding', + resourceDefinitionsByNamespaceIdAndDatabaseId: 'ResourceDefinition', + resourceInstallationsByNamespaceIdAndDatabaseId: 'ResourceInstallation', + resourcesByNamespaceIdAndDatabaseId: 'Resource', + serviceBindingsByNamespaceIdAndDatabaseId: 'ServiceBinding', + webhookEndpointsByNamespaceIdAndDatabaseId: 'WebhookEndpoint', }, PlatformFunctionApiBinding: { platformFunctionInvocationsByApiBindingId: 'PlatformFunctionInvocation', @@ -20703,12 +20551,12 @@ export const connectionFieldsMap = { platformImageGrantsByImageId: 'PlatformImageGrant', }, PlatformNamespace: { - platformBuilderBindingsByNamespaceId: 'PlatformBuilderBinding', platformFunctionDeploymentsByNamespaceId: 'PlatformFunctionDeployment', platformRegistryBindingsByNamespaceId: 'PlatformRegistryBinding', platformResourceDefinitionsByNamespaceId: 'PlatformResourceDefinition', platformResourceInstallationsByNamespaceId: 'PlatformResourceInstallation', platformResourcesByNamespaceId: 'PlatformResource', + platformServiceBindingsByNamespaceId: 'PlatformServiceBinding', platformWebhookEndpointsByNamespaceId: 'PlatformWebhookEndpoint', }, PlatformProposalComment: { @@ -20852,6 +20700,15 @@ export interface CopyGraphInput { name?: string; scopeId?: string; } +export interface CreateFunctionGraphInput { + clientMutationId?: string; + context?: string; + createdBy?: string; + definitionsCommitId?: string; + description?: string; + name?: string; + scopeId?: string; +} export interface DatabaseAddEdgeInput { clientMutationId?: string; context?: string; @@ -21488,15 +21345,6 @@ export interface ConstructiveInternalTypeImageFilter { /** Not included in the specified list. */ notIn?: ConstructiveInternalTypeImage[]; } -/** A filter to be used against many `BuilderBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface NamespaceToManyBuilderBindingFilter { - /** Filters to entities where every related entity matches. */ - every?: BuilderBindingFilter; - /** Filters to entities where no related entity matches. */ - none?: BuilderBindingFilter; - /** Filters to entities where at least one related entity matches. */ - some?: BuilderBindingFilter; -} /** A filter to be used against many `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ export interface NamespaceToManyFunctionDeploymentFilter { /** Filters to entities where every related entity matches. */ @@ -21542,6 +21390,15 @@ export interface NamespaceToManyResourceFilter { /** Filters to entities where at least one related entity matches. */ some?: ResourceFilter; } +/** A filter to be used against many `ServiceBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceToManyServiceBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: ServiceBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: ServiceBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ServiceBindingFilter; +} /** A filter to be used against many `WebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ export interface NamespaceToManyWebhookEndpointFilter { /** Filters to entities where every related entity matches. */ @@ -21605,15 +21462,6 @@ export interface PlatformImageToManyPlatformImageGrantFilter { /** Filters to entities where at least one related entity matches. */ some?: PlatformImageGrantFilter; } -/** A filter to be used against many `PlatformBuilderBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformNamespaceToManyPlatformBuilderBindingFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformBuilderBindingFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformBuilderBindingFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformBuilderBindingFilter; -} /** A filter to be used against many `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformNamespaceToManyPlatformFunctionDeploymentFilter { /** Filters to entities where every related entity matches. */ @@ -21659,6 +21507,15 @@ export interface PlatformNamespaceToManyPlatformResourceFilter { /** Filters to entities where at least one related entity matches. */ some?: PlatformResourceFilter; } +/** A filter to be used against many `PlatformServiceBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceToManyPlatformServiceBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformServiceBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformServiceBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformServiceBindingFilter; +} /** A filter to be used against many `PlatformWebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformNamespaceToManyPlatformWebhookEndpointFilter { /** Filters to entities where every related entity matches. */ @@ -21812,10 +21669,12 @@ export interface VectorNearbyInput { includeChunks?: boolean; /** Similarity metric to use (default: COSINE). */ metric?: VectorMetric; - /** Natural language text to embed server-side for similarity search. Mutually exclusive with `vector` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** The model that produced `vector`. On a column that records the model of each row's vector, only rows embedded with this model are compared; vectors of two models are not comparable. Filled in server-side when `text` is embedded. */ + model?: string; + /** Natural language text to embed server-side for similarity search. Provide exactly one of `text` or `vector`; sending both or neither is an error. Blank text on its own counts as not given. Requires the LLM plugin to be configured with an embedding provider. */ text?: string; /** Query vector for similarity search. */ - vector: number[]; + vector?: number[]; } /** A filter to be used against many `PlatformProposal` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformProposalToManyPlatformProposalFilter { @@ -22322,32 +22181,6 @@ export interface BuildStepInput { /** Parsed detail: failure message, assertion diff, counts, annotations */ summary?: Record; } -/** An input for mutations affecting `BuilderBinding` */ -export interface BuilderBindingInput { - createdAt?: string; - createdBy?: string; - createdByPrincipal?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - id?: string; - /** BuildKit resource installation serving this binding; may belong to another resource scope */ - installationId: string; - /** Most recent projection failure */ - lastError?: string; - /** Reconciler detail (projection timestamps and diagnostics) */ - metadata?: Record; - /** Namespace whose builds use this BuildKit installation */ - namespaceId: string; - /** BuildKit address last projected into the namespace (NULL = never projected) */ - observedHost?: string; - /** Lane this binding applies to (NULL = the scope's default lane) */ - realm?: string; - /** Projection state of BUILDKIT_HOST: pending, active, failed */ - status?: string; - updatedAt?: string; - updatedBy?: string; - updatedByPrincipal?: string; -} /** An input for mutations affecting `ContentPreset` */ export interface ContentPresetInput { /** Whether this preset is selectable at provision time */ @@ -23384,30 +23217,6 @@ export interface PlatformBuildStepInput { /** Parsed detail: failure message, assertion diff, counts, annotations */ summary?: Record; } -/** An input for mutations affecting `PlatformBuilderBinding` */ -export interface PlatformBuilderBindingInput { - createdAt?: string; - createdBy?: string; - createdByPrincipal?: string; - id?: string; - /** BuildKit resource installation serving this binding; may belong to another resource scope */ - installationId: string; - /** Most recent projection failure */ - lastError?: string; - /** Reconciler detail (projection timestamps and diagnostics) */ - metadata?: Record; - /** Namespace whose builds use this BuildKit installation */ - namespaceId: string; - /** BuildKit address last projected into the namespace (NULL = never projected) */ - observedHost?: string; - /** Lane this binding applies to (NULL = the scope's default lane) */ - realm?: string; - /** Projection state of BUILDKIT_HOST: pending, active, failed */ - status?: string; - updatedAt?: string; - updatedBy?: string; - updatedByPrincipal?: string; -} /** An input for mutations affecting `PlatformFunctionApiBinding` */ export interface PlatformFunctionApiBindingInput { /** Binding alias (e.g. default, staging, production) */ @@ -23933,7 +23742,7 @@ export interface PlatformProposalCommentInput { createdBy?: string; createdByPrincipal?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** Line within path the comment is anchored to */ @@ -23966,7 +23775,7 @@ export interface PlatformProposalInput { /** When this is wanted by (NULL when nothing is promised) */ dueAt?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** issue (a report or plan), change (merge one ref into another), discussion (an open question), decision (a question answered) */ @@ -24065,7 +23874,7 @@ export interface PlatformProposalsChunkInput { chunkIndex?: number; createdAt?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; metadata?: Record; @@ -24166,7 +23975,7 @@ export interface PlatformRepositoryInput { /** What this repository holds */ description?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; /** Identifier of this repository in the external provider (NULL for local) */ externalId?: string; @@ -24460,6 +24269,34 @@ export interface PlatformResourceUsageSummaryInput { /** Number of raw samples aggregated into this summary */ sampleCount?: number; } +/** An input for mutations affecting `PlatformServiceBinding` */ +export interface PlatformServiceBindingInput { + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + id?: string; + /** Resource installation serving this binding, in the installations table of installation_scope */ + installationId: string; + /** Scope whose installations table holds installation_id: this scope or platform */ + installationScope: string; + /** Service this binding projects: builder (BUILDKIT_HOST) or git (GIT_PROVIDER + GIT_SERVICE_URL) */ + kind: string; + /** Most recent projection failure */ + lastError?: string; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: Record; + /** Namespace whose builds use this BuildKit installation */ + namespaceId: string; + /** Service address last projected into the namespace (NULL = never projected) */ + observedHost?: string; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string; + /** Projection state of the bound address: pending, active, failed */ + status?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} /** An input for mutations affecting `PlatformWebhookEndpoint` */ export interface PlatformWebhookEndpointInput { /** Whether this endpoint currently accepts deliveries */ @@ -24522,7 +24359,7 @@ export interface ProposalCommentInput { createdBy?: string; createdByPrincipal?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** Line within path the comment is anchored to */ @@ -24555,7 +24392,7 @@ export interface ProposalInput { /** When this is wanted by (NULL when nothing is promised) */ dueAt?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** issue (a report or plan), change (merge one ref into another), discussion (an open question), decision (a question answered) */ @@ -24656,7 +24493,7 @@ export interface ProposalsChunkInput { /** Policy-required field derived from source table (used by AuthzRelatedEntityMembership) */ databaseId?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; metadata?: Record; @@ -24765,7 +24602,7 @@ export interface RepositoryInput { /** What this repository holds */ description?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; /** Identifier of this repository in the external provider (NULL for local) */ externalId?: string; @@ -25056,6 +24893,36 @@ export interface ResourceUsageSummaryInput { /** Number of raw samples aggregated into this summary */ sampleCount?: number; } +/** An input for mutations affecting `ServiceBinding` */ +export interface ServiceBindingInput { + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** Resource installation serving this binding, in the installations table of installation_scope */ + installationId: string; + /** Scope whose installations table holds installation_id: this scope or platform */ + installationScope: string; + /** Service this binding projects: builder (BUILDKIT_HOST) or git (GIT_PROVIDER + GIT_SERVICE_URL) */ + kind: string; + /** Most recent projection failure */ + lastError?: string; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: Record; + /** Namespace whose builds use this BuildKit installation */ + namespaceId: string; + /** Service address last projected into the namespace (NULL = never projected) */ + observedHost?: string; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string; + /** Projection state of the bound address: pending, active, failed */ + status?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} /** An input for mutations affecting `WebhookEndpoint` */ export interface WebhookEndpointInput { /** Whether this endpoint currently accepts deliveries */ @@ -25555,8 +25422,8 @@ export interface WebhookEndpointFilter { host?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -25874,47 +25741,6 @@ export interface ImageGrantFilter { /** Filter by the object’s `updatedByPrincipal` field. */ updatedByPrincipal?: UUIDFilter; } -/** A filter to be used against `BuilderBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface BuilderBindingFilter { - /** Checks for all expressions in this list. */ - and?: BuilderBindingFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `createdByPrincipal` field. */ - createdByPrincipal?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: BuilderBindingFilter; - /** Filter by the object’s `observedHost` field. */ - observedHost?: StringFilter; - /** Checks for any expressions in this list. */ - or?: BuilderBindingFilter[]; - /** Filter by the object’s `realm` field. */ - realm?: StringFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `updatedByPrincipal` field. */ - updatedByPrincipal?: UUIDFilter; -} /** A filter to be used against `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ export interface FunctionDeploymentFilter { /** Checks for all expressions in this list. */ @@ -25945,8 +25771,8 @@ export interface FunctionDeploymentFilter { lastError?: StringFilter; /** Filter by the object’s `lastErrorAt` field. */ lastErrorAt?: DatetimeFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -25992,8 +25818,8 @@ export interface RegistryBindingFilter { id?: UUIDFilter; /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -26049,8 +25875,8 @@ export interface ResourceDefinitionFilter { labels?: JSONFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -26092,8 +25918,8 @@ export interface ResourceInstallationFilter { id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -26171,8 +25997,8 @@ export interface ResourceFilter { memoryRequestBytes?: BigIntFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -26214,6 +26040,51 @@ export interface ResourceFilter { /** Filter by the object’s `updatedByPrincipal` field. */ updatedByPrincipal?: UUIDFilter; } +/** A filter to be used against `ServiceBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface ServiceBindingFilter { + /** Checks for all expressions in this list. */ + and?: ServiceBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `installationScope` field. */ + installationScope?: StringFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ServiceBindingFilter; + /** Filter by the object’s `observedHost` field. */ + observedHost?: StringFilter; + /** Checks for any expressions in this list. */ + or?: ServiceBindingFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} /** A filter to be used against `PlatformFunctionInvocation` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformFunctionInvocationFilter { /** Filter by the object’s `actorId` field. */ @@ -26456,45 +26327,6 @@ export interface PlatformImageGrantFilter { /** Filter by the object’s `updatedByPrincipal` field. */ updatedByPrincipal?: UUIDFilter; } -/** A filter to be used against `PlatformBuilderBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformBuilderBindingFilter { - /** Checks for all expressions in this list. */ - and?: PlatformBuilderBindingFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `createdByPrincipal` field. */ - createdByPrincipal?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: PlatformNamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: PlatformBuilderBindingFilter; - /** Filter by the object’s `observedHost` field. */ - observedHost?: StringFilter; - /** Checks for any expressions in this list. */ - or?: PlatformBuilderBindingFilter[]; - /** Filter by the object’s `realm` field. */ - realm?: StringFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `updatedByPrincipal` field. */ - updatedByPrincipal?: UUIDFilter; -} /** A filter to be used against `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformFunctionDeploymentFilter { /** Checks for all expressions in this list. */ @@ -26784,6 +26616,49 @@ export interface PlatformResourceFilter { /** Filter by the object’s `updatedByPrincipal` field. */ updatedByPrincipal?: UUIDFilter; } +/** A filter to be used against `PlatformServiceBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformServiceBindingFilter { + /** Checks for all expressions in this list. */ + and?: PlatformServiceBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `installationScope` field. */ + installationScope?: StringFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformServiceBindingFilter; + /** Filter by the object’s `observedHost` field. */ + observedHost?: StringFilter; + /** Checks for any expressions in this list. */ + or?: PlatformServiceBindingFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} /** A filter to be used against `PlatformProposalReaction` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformProposalReactionFilter { /** Filter by the object’s `actorId` field. */ @@ -26845,6 +26720,8 @@ export interface PlatformProposalFilter { dueAt?: DatetimeFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -26919,6 +26796,8 @@ export interface PlatformProposalFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `closed_reason` column. */ trgmClosedReason?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `merge_commit` column. */ @@ -27039,6 +26918,8 @@ export interface PlatformProposalCommentFilter { createdByPrincipal?: UUIDFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -27067,6 +26948,8 @@ export interface PlatformProposalCommentFilter { search?: FullTextFilter; /** TRGM search on the `body` column. */ trgmBody?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `path` column. */ trgmPath?: TrgmSearchInput; /** TSV search on the `search` column. */ @@ -27553,6 +27436,8 @@ export interface ProposalFilter { dueAt?: DatetimeFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -27623,6 +27508,8 @@ export interface ProposalFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `closed_reason` column. */ trgmClosedReason?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `merge_commit` column. */ @@ -27678,6 +27565,8 @@ export interface ProposalCommentFilter { databaseId?: UUIDFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -27706,6 +27595,8 @@ export interface ProposalCommentFilter { search?: FullTextFilter; /** TRGM search on the `body` column. */ trgmBody?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `path` column. */ trgmPath?: TrgmSearchInput; /** TSV search on the `search` column. */ @@ -28419,6 +28310,8 @@ export interface RepositoryFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `externalId` field. */ @@ -28465,6 +28358,8 @@ export interface RepositoryFilter { trgmDefaultBranch?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `external_id` column. */ trgmExternalId?: TrgmSearchInput; /** TRGM search on the `name` column. */ @@ -28502,10 +28397,6 @@ export interface NamespaceFilter { and?: NamespaceFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; - /** Filter by the object’s `builderBindings` relation. */ - builderBindings?: NamespaceToManyBuilderBindingFilter; - /** `builderBindings` exist. */ - builderBindingsExist?: boolean; /** Filter by the object’s `clusterId` field. */ clusterId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -28514,10 +28405,10 @@ export interface NamespaceFilter { databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; - /** Filter by the object’s `functionDeployments` relation. */ - functionDeployments?: NamespaceToManyFunctionDeploymentFilter; - /** `functionDeployments` exist. */ - functionDeploymentsExist?: boolean; + /** Filter by the object’s `functionDeploymentsByNamespaceIdAndDatabaseId` relation. */ + functionDeploymentsByNamespaceIdAndDatabaseId?: NamespaceToManyFunctionDeploymentFilter; + /** `functionDeploymentsByNamespaceIdAndDatabaseId` exist. */ + functionDeploymentsByNamespaceIdAndDatabaseIdExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isActive` field. */ @@ -28536,30 +28427,34 @@ export interface NamespaceFilter { not?: NamespaceFilter; /** Checks for any expressions in this list. */ or?: NamespaceFilter[]; - /** Filter by the object’s `registryBindings` relation. */ - registryBindings?: NamespaceToManyRegistryBindingFilter; - /** `registryBindings` exist. */ - registryBindingsExist?: boolean; - /** Filter by the object’s `resourceDefinitions` relation. */ - resourceDefinitions?: NamespaceToManyResourceDefinitionFilter; - /** `resourceDefinitions` exist. */ - resourceDefinitionsExist?: boolean; - /** Filter by the object’s `resourceInstallations` relation. */ - resourceInstallations?: NamespaceToManyResourceInstallationFilter; - /** `resourceInstallations` exist. */ - resourceInstallationsExist?: boolean; - /** Filter by the object’s `resources` relation. */ - resources?: NamespaceToManyResourceFilter; - /** `resources` exist. */ - resourcesExist?: boolean; + /** Filter by the object’s `registryBindingsByNamespaceIdAndDatabaseId` relation. */ + registryBindingsByNamespaceIdAndDatabaseId?: NamespaceToManyRegistryBindingFilter; + /** `registryBindingsByNamespaceIdAndDatabaseId` exist. */ + registryBindingsByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `resourceDefinitionsByNamespaceIdAndDatabaseId` relation. */ + resourceDefinitionsByNamespaceIdAndDatabaseId?: NamespaceToManyResourceDefinitionFilter; + /** `resourceDefinitionsByNamespaceIdAndDatabaseId` exist. */ + resourceDefinitionsByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `resourceInstallationsByNamespaceIdAndDatabaseId` relation. */ + resourceInstallationsByNamespaceIdAndDatabaseId?: NamespaceToManyResourceInstallationFilter; + /** `resourceInstallationsByNamespaceIdAndDatabaseId` exist. */ + resourceInstallationsByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `resourcesByNamespaceIdAndDatabaseId` relation. */ + resourcesByNamespaceIdAndDatabaseId?: NamespaceToManyResourceFilter; + /** `resourcesByNamespaceIdAndDatabaseId` exist. */ + resourcesByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `serviceBindingsByNamespaceIdAndDatabaseId` relation. */ + serviceBindingsByNamespaceIdAndDatabaseId?: NamespaceToManyServiceBindingFilter; + /** `serviceBindingsByNamespaceIdAndDatabaseId` exist. */ + serviceBindingsByNamespaceIdAndDatabaseIdExist?: boolean; /** Filter by the object’s `status` field. */ status?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `webhookEndpoints` relation. */ - webhookEndpoints?: NamespaceToManyWebhookEndpointFilter; - /** `webhookEndpoints` exist. */ - webhookEndpointsExist?: boolean; + /** Filter by the object’s `webhookEndpointsByNamespaceIdAndDatabaseId` relation. */ + webhookEndpointsByNamespaceIdAndDatabaseId?: NamespaceToManyWebhookEndpointFilter; + /** `webhookEndpointsByNamespaceIdAndDatabaseId` exist. */ + webhookEndpointsByNamespaceIdAndDatabaseIdExist?: boolean; } /** A filter to be used against `FunctionGraph` object types. All fields are combined with a logical ‘and.’ */ export interface FunctionGraphFilter { @@ -28624,6 +28519,8 @@ export interface PlatformRepositoryFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `externalId` field. */ @@ -28674,6 +28571,8 @@ export interface PlatformRepositoryFilter { trgmDefaultBranch?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `external_id` column. */ trgmExternalId?: TrgmSearchInput; /** TRGM search on the `name` column. */ @@ -28786,10 +28685,6 @@ export interface PlatformNamespaceFilter { not?: PlatformNamespaceFilter; /** Checks for any expressions in this list. */ or?: PlatformNamespaceFilter[]; - /** Filter by the object’s `platformBuilderBindingsByNamespaceId` relation. */ - platformBuilderBindingsByNamespaceId?: PlatformNamespaceToManyPlatformBuilderBindingFilter; - /** `platformBuilderBindingsByNamespaceId` exist. */ - platformBuilderBindingsByNamespaceIdExist?: boolean; /** Filter by the object’s `platformFunctionDeploymentsByNamespaceId` relation. */ platformFunctionDeploymentsByNamespaceId?: PlatformNamespaceToManyPlatformFunctionDeploymentFilter; /** `platformFunctionDeploymentsByNamespaceId` exist. */ @@ -28810,6 +28705,10 @@ export interface PlatformNamespaceFilter { platformResourcesByNamespaceId?: PlatformNamespaceToManyPlatformResourceFilter; /** `platformResourcesByNamespaceId` exist. */ platformResourcesByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformServiceBindingsByNamespaceId` relation. */ + platformServiceBindingsByNamespaceId?: PlatformNamespaceToManyPlatformServiceBindingFilter; + /** `platformServiceBindingsByNamespaceId` exist. */ + platformServiceBindingsByNamespaceIdExist?: boolean; /** Filter by the object’s `platformWebhookEndpointsByNamespaceId` relation. */ platformWebhookEndpointsByNamespaceId?: PlatformNamespaceToManyPlatformWebhookEndpointFilter; /** `platformWebhookEndpointsByNamespaceId` exist. */ @@ -28976,6 +28875,14 @@ export type CopyGraphPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface CreateFunctionGraphPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type CreateFunctionGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface DatabaseAddEdgePayload { clientMutationId?: string | null; result?: string | null; @@ -29563,51 +29470,6 @@ export type DeleteBuildStepPayloadSelect = { }; clientMutationId?: boolean; }; -export interface CreateBuilderBindingPayload { - /** The `BuilderBinding` that was created by this mutation. */ - builderBinding?: BuilderBinding | null; - builderBindingEdge?: BuilderBindingEdge | null; - clientMutationId?: string | null; -} -export type CreateBuilderBindingPayloadSelect = { - builderBinding?: { - select: BuilderBindingSelect; - }; - builderBindingEdge?: { - select: BuilderBindingEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateBuilderBindingPayload { - /** The `BuilderBinding` that was updated by this mutation. */ - builderBinding?: BuilderBinding | null; - builderBindingEdge?: BuilderBindingEdge | null; - clientMutationId?: string | null; -} -export type UpdateBuilderBindingPayloadSelect = { - builderBinding?: { - select: BuilderBindingSelect; - }; - builderBindingEdge?: { - select: BuilderBindingEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteBuilderBindingPayload { - /** The `BuilderBinding` that was deleted by this mutation. */ - builderBinding?: BuilderBinding | null; - builderBindingEdge?: BuilderBindingEdge | null; - clientMutationId?: string | null; -} -export type DeleteBuilderBindingPayloadSelect = { - builderBinding?: { - select: BuilderBindingSelect; - }; - builderBindingEdge?: { - select: BuilderBindingEdgeSelect; - }; - clientMutationId?: boolean; -}; export interface CreateContentPresetPayload { clientMutationId?: string | null; /** The `ContentPreset` that was created by this mutation. */ @@ -30403,14 +30265,6 @@ export type DeleteFunctionGraphCommitPayloadSelect = { select: FunctionGraphCommitEdgeSelect; }; }; -export interface CreateFunctionGraphPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type CreateFunctionGraphPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; export interface UpdateFunctionGraphPayload { clientMutationId?: string | null; /** The `FunctionGraph` that was updated by this mutation. */ @@ -31386,51 +31240,6 @@ export type DeletePlatformBuildStepPayloadSelect = { select: PlatformBuildStepEdgeSelect; }; }; -export interface CreatePlatformBuilderBindingPayload { - clientMutationId?: string | null; - /** The `PlatformBuilderBinding` that was created by this mutation. */ - platformBuilderBinding?: PlatformBuilderBinding | null; - platformBuilderBindingEdge?: PlatformBuilderBindingEdge | null; -} -export type CreatePlatformBuilderBindingPayloadSelect = { - clientMutationId?: boolean; - platformBuilderBinding?: { - select: PlatformBuilderBindingSelect; - }; - platformBuilderBindingEdge?: { - select: PlatformBuilderBindingEdgeSelect; - }; -}; -export interface UpdatePlatformBuilderBindingPayload { - clientMutationId?: string | null; - /** The `PlatformBuilderBinding` that was updated by this mutation. */ - platformBuilderBinding?: PlatformBuilderBinding | null; - platformBuilderBindingEdge?: PlatformBuilderBindingEdge | null; -} -export type UpdatePlatformBuilderBindingPayloadSelect = { - clientMutationId?: boolean; - platformBuilderBinding?: { - select: PlatformBuilderBindingSelect; - }; - platformBuilderBindingEdge?: { - select: PlatformBuilderBindingEdgeSelect; - }; -}; -export interface DeletePlatformBuilderBindingPayload { - clientMutationId?: string | null; - /** The `PlatformBuilderBinding` that was deleted by this mutation. */ - platformBuilderBinding?: PlatformBuilderBinding | null; - platformBuilderBindingEdge?: PlatformBuilderBindingEdge | null; -} -export type DeletePlatformBuilderBindingPayloadSelect = { - clientMutationId?: boolean; - platformBuilderBinding?: { - select: PlatformBuilderBindingSelect; - }; - platformBuilderBindingEdge?: { - select: PlatformBuilderBindingEdgeSelect; - }; -}; export interface CreatePlatformFunctionApiBindingPayload { clientMutationId?: string | null; /** The `PlatformFunctionApiBinding` that was created by this mutation. */ @@ -33186,6 +32995,51 @@ export type DeletePlatformResourceUsageSummaryPayloadSelect = { select: PlatformResourceUsageSummaryEdgeSelect; }; }; +export interface CreatePlatformServiceBindingPayload { + clientMutationId?: string | null; + /** The `PlatformServiceBinding` that was created by this mutation. */ + platformServiceBinding?: PlatformServiceBinding | null; + platformServiceBindingEdge?: PlatformServiceBindingEdge | null; +} +export type CreatePlatformServiceBindingPayloadSelect = { + clientMutationId?: boolean; + platformServiceBinding?: { + select: PlatformServiceBindingSelect; + }; + platformServiceBindingEdge?: { + select: PlatformServiceBindingEdgeSelect; + }; +}; +export interface UpdatePlatformServiceBindingPayload { + clientMutationId?: string | null; + /** The `PlatformServiceBinding` that was updated by this mutation. */ + platformServiceBinding?: PlatformServiceBinding | null; + platformServiceBindingEdge?: PlatformServiceBindingEdge | null; +} +export type UpdatePlatformServiceBindingPayloadSelect = { + clientMutationId?: boolean; + platformServiceBinding?: { + select: PlatformServiceBindingSelect; + }; + platformServiceBindingEdge?: { + select: PlatformServiceBindingEdgeSelect; + }; +}; +export interface DeletePlatformServiceBindingPayload { + clientMutationId?: string | null; + /** The `PlatformServiceBinding` that was deleted by this mutation. */ + platformServiceBinding?: PlatformServiceBinding | null; + platformServiceBindingEdge?: PlatformServiceBindingEdge | null; +} +export type DeletePlatformServiceBindingPayloadSelect = { + clientMutationId?: boolean; + platformServiceBinding?: { + select: PlatformServiceBindingSelect; + }; + platformServiceBindingEdge?: { + select: PlatformServiceBindingEdgeSelect; + }; +}; export interface CreatePlatformWebhookEndpointPayload { clientMutationId?: string | null; /** The `PlatformWebhookEndpoint` that was created by this mutation. */ @@ -34176,6 +34030,51 @@ export type DeleteResourceUsageSummaryPayloadSelect = { select: ResourceUsageSummaryEdgeSelect; }; }; +export interface CreateServiceBindingPayload { + clientMutationId?: string | null; + /** The `ServiceBinding` that was created by this mutation. */ + serviceBinding?: ServiceBinding | null; + serviceBindingEdge?: ServiceBindingEdge | null; +} +export type CreateServiceBindingPayloadSelect = { + clientMutationId?: boolean; + serviceBinding?: { + select: ServiceBindingSelect; + }; + serviceBindingEdge?: { + select: ServiceBindingEdgeSelect; + }; +}; +export interface UpdateServiceBindingPayload { + clientMutationId?: string | null; + /** The `ServiceBinding` that was updated by this mutation. */ + serviceBinding?: ServiceBinding | null; + serviceBindingEdge?: ServiceBindingEdge | null; +} +export type UpdateServiceBindingPayloadSelect = { + clientMutationId?: boolean; + serviceBinding?: { + select: ServiceBindingSelect; + }; + serviceBindingEdge?: { + select: ServiceBindingEdgeSelect; + }; +}; +export interface DeleteServiceBindingPayload { + clientMutationId?: string | null; + /** The `ServiceBinding` that was deleted by this mutation. */ + serviceBinding?: ServiceBinding | null; + serviceBindingEdge?: ServiceBindingEdge | null; +} +export type DeleteServiceBindingPayloadSelect = { + clientMutationId?: boolean; + serviceBinding?: { + select: ServiceBindingSelect; + }; + serviceBindingEdge?: { + select: ServiceBindingEdgeSelect; + }; +}; export interface CreateWebhookEndpointPayload { clientMutationId?: string | null; /** The `WebhookEndpoint` that was created by this mutation. */ @@ -34362,18 +34261,6 @@ export type BuildStepEdgeSelect = { select: BuildStepSelect; }; }; -/** A `BuilderBinding` edge in the connection. */ -export interface BuilderBindingEdge { - cursor?: string | null; - /** The `BuilderBinding` at the end of the edge. */ - node?: BuilderBinding | null; -} -export type BuilderBindingEdgeSelect = { - cursor?: boolean; - node?: { - select: BuilderBindingSelect; - }; -}; /** A `ContentPreset` edge in the connection. */ export interface ContentPresetEdge { cursor?: string | null; @@ -34806,18 +34693,6 @@ export type PlatformBuildStepEdgeSelect = { select: PlatformBuildStepSelect; }; }; -/** A `PlatformBuilderBinding` edge in the connection. */ -export interface PlatformBuilderBindingEdge { - cursor?: string | null; - /** The `PlatformBuilderBinding` at the end of the edge. */ - node?: PlatformBuilderBinding | null; -} -export type PlatformBuilderBindingEdgeSelect = { - cursor?: boolean; - node?: { - select: PlatformBuilderBindingSelect; - }; -}; /** A `PlatformFunctionApiBinding` edge in the connection. */ export interface PlatformFunctionApiBindingEdge { cursor?: string | null; @@ -35262,6 +35137,18 @@ export type PlatformResourceUsageSummaryEdgeSelect = { select: PlatformResourceUsageSummarySelect; }; }; +/** A `PlatformServiceBinding` edge in the connection. */ +export interface PlatformServiceBindingEdge { + cursor?: string | null; + /** The `PlatformServiceBinding` at the end of the edge. */ + node?: PlatformServiceBinding | null; +} +export type PlatformServiceBindingEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformServiceBindingSelect; + }; +}; /** A `PlatformWebhookEndpoint` edge in the connection. */ export interface PlatformWebhookEndpointEdge { cursor?: string | null; @@ -35526,6 +35413,18 @@ export type ResourceUsageSummaryEdgeSelect = { select: ResourceUsageSummarySelect; }; }; +/** A `ServiceBinding` edge in the connection. */ +export interface ServiceBindingEdge { + cursor?: string | null; + /** The `ServiceBinding` at the end of the edge. */ + node?: ServiceBinding | null; +} +export type ServiceBindingEdgeSelect = { + cursor?: boolean; + node?: { + select: ServiceBindingSelect; + }; +}; /** A `WebhookEndpoint` edge in the connection. */ export interface WebhookEndpointEdge { cursor?: string | null; diff --git a/sdk/constructive-cli/src/compute/orm/models/databaseFunctionGraph.ts b/sdk/constructive-cli/src/compute/orm/models/databaseFunctionGraph.ts index aa52534b19..358312ae7d 100644 --- a/sdk/constructive-cli/src/compute/orm/models/databaseFunctionGraph.ts +++ b/sdk/constructive-cli/src/compute/orm/models/databaseFunctionGraph.ts @@ -29,7 +29,6 @@ import type { DatabaseFunctionGraphSelect, DatabaseFunctionGraphFilter, DatabaseFunctionGraphOrderBy, - CreateDatabaseFunctionGraphInput, UpdateDatabaseFunctionGraphInput, DatabaseFunctionGraphPatch, } from '../input-types'; @@ -146,33 +145,6 @@ export class DatabaseFunctionGraphModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createDatabaseFunctionGraph: { - databaseFunctionGraph: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'DatabaseFunctionGraph', - 'createDatabaseFunctionGraph', - 'databaseFunctionGraph', - args.select, - args.data, - 'CreateDatabaseFunctionGraphInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'DatabaseFunctionGraph', - fieldName: 'createDatabaseFunctionGraph', - document, - variables, - }); - } update( args: UpdateArgs< S, diff --git a/sdk/constructive-cli/src/compute/orm/models/databaseGraphGetAllTreeNodesRecord.ts b/sdk/constructive-cli/src/compute/orm/models/databaseGraphGetAllTreeNodesRecord.ts index f3a254b255..141a458a79 100644 --- a/sdk/constructive-cli/src/compute/orm/models/databaseGraphGetAllTreeNodesRecord.ts +++ b/sdk/constructive-cli/src/compute/orm/models/databaseGraphGetAllTreeNodesRecord.ts @@ -29,7 +29,6 @@ import type { DatabaseGraphGetAllTreeNodesRecordSelect, DatabaseGraphGetAllTreeNodesRecordFilter, DatabaseGraphGetAllTreeNodesRecordsOrderBy, - CreateDatabaseGraphGetAllTreeNodesRecordInput, UpdateDatabaseGraphGetAllTreeNodesRecordInput, DatabaseGraphGetAllTreeNodesRecordPatch, } from '../input-types'; @@ -117,37 +116,4 @@ export class DatabaseGraphGetAllTreeNodesRecordModel { }), }); } - create( - args: CreateArgs< - S, - CreateDatabaseGraphGetAllTreeNodesRecordInput['databaseGraphGetAllTreeNodesRecord'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createDatabaseGraphGetAllTreeNodesRecord: { - databaseGraphGetAllTreeNodesRecord: InferSelectResult< - DatabaseGraphGetAllTreeNodesRecordWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'DatabaseGraphGetAllTreeNodesRecord', - 'createDatabaseGraphGetAllTreeNodesRecord', - 'databaseGraphGetAllTreeNodesRecord', - args.select, - args.data, - 'CreateDatabaseGraphGetAllTreeNodesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'DatabaseGraphGetAllTreeNodesRecord', - fieldName: 'createDatabaseGraphGetAllTreeNodesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/compute/orm/models/functionGraph.ts b/sdk/constructive-cli/src/compute/orm/models/functionGraph.ts index 8355e31658..b94c844768 100644 --- a/sdk/constructive-cli/src/compute/orm/models/functionGraph.ts +++ b/sdk/constructive-cli/src/compute/orm/models/functionGraph.ts @@ -29,7 +29,6 @@ import type { FunctionGraphSelect, FunctionGraphFilter, FunctionGraphOrderBy, - CreateFunctionGraphInput, UpdateFunctionGraphInput, FunctionGraphPatch, } from '../input-types'; @@ -144,33 +143,6 @@ export class FunctionGraphModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createFunctionGraph: { - functionGraph: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'FunctionGraph', - 'createFunctionGraph', - 'functionGraph', - args.select, - args.data, - 'CreateFunctionGraphInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'FunctionGraph', - fieldName: 'createFunctionGraph', - document, - variables, - }); - } update( args: UpdateArgs< S, diff --git a/sdk/constructive-cli/src/compute/orm/models/getAllTreeNodesRecord.ts b/sdk/constructive-cli/src/compute/orm/models/getAllTreeNodesRecord.ts index 00f51d01f7..275a902f66 100644 --- a/sdk/constructive-cli/src/compute/orm/models/getAllTreeNodesRecord.ts +++ b/sdk/constructive-cli/src/compute/orm/models/getAllTreeNodesRecord.ts @@ -29,7 +29,6 @@ import type { GetAllTreeNodesRecordSelect, GetAllTreeNodesRecordFilter, GetAllTreeNodesRecordsOrderBy, - CreateGetAllTreeNodesRecordInput, UpdateGetAllTreeNodesRecordInput, GetAllTreeNodesRecordPatch, } from '../input-types'; @@ -104,31 +103,4 @@ export class GetAllTreeNodesRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createGetAllTreeNodesRecord: { - getAllTreeNodesRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'GetAllTreeNodesRecord', - 'createGetAllTreeNodesRecord', - 'getAllTreeNodesRecord', - args.select, - args.data, - 'CreateGetAllTreeNodesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'GetAllTreeNodesRecord', - fieldName: 'createGetAllTreeNodesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/compute/orm/models/index.ts b/sdk/constructive-cli/src/compute/orm/models/index.ts index 3b2af275ae..dfb31b3c70 100644 --- a/sdk/constructive-cli/src/compute/orm/models/index.ts +++ b/sdk/constructive-cli/src/compute/orm/models/index.ts @@ -5,7 +5,6 @@ */ export { BuildModel } from './build'; export { BuildStepModel } from './buildStep'; -export { BuilderBindingModel } from './builderBinding'; export { ContentPresetModel } from './contentPreset'; export { DatabaseFunctionGraphModel } from './databaseFunctionGraph'; export { DatabaseFunctionGraphExecutionCancelRequestModel } from './databaseFunctionGraphExecutionCancelRequest'; @@ -49,7 +48,6 @@ export { NamespaceModel } from './namespace'; export { NamespaceEventModel } from './namespaceEvent'; export { PlatformBuildModel } from './platformBuild'; export { PlatformBuildStepModel } from './platformBuildStep'; -export { PlatformBuilderBindingModel } from './platformBuilderBinding'; export { PlatformFunctionApiBindingModel } from './platformFunctionApiBinding'; export { PlatformFunctionCapabilityBindingModel } from './platformFunctionCapabilityBinding'; export { PlatformFunctionDefinitionModel } from './platformFunctionDefinition'; @@ -96,6 +94,7 @@ export { PlatformResourceUtilizationModel } from './platformResourceUtilization' export { PlatformResourcesHealthModel } from './platformResourcesHealth'; export { PlatformResourcesRequirementsStateModel } from './platformResourcesRequirementsState'; export { PlatformResourcesResolvedRequirementModel } from './platformResourcesResolvedRequirement'; +export { PlatformServiceBindingModel } from './platformServiceBinding'; export { PlatformWebhookEndpointModel } from './platformWebhookEndpoint'; export { PlatformWebhookEventModel } from './platformWebhookEvent'; export { ProposalCommentModel } from './proposalComment'; @@ -124,5 +123,6 @@ export { ResourceUtilizationModel } from './resourceUtilization'; export { ResourcesHealthModel } from './resourcesHealth'; export { ResourcesRequirementsStateModel } from './resourcesRequirementsState'; export { ResourcesResolvedRequirementModel } from './resourcesResolvedRequirement'; +export { ServiceBindingModel } from './serviceBinding'; export { WebhookEndpointModel } from './webhookEndpoint'; export { WebhookEventModel } from './webhookEvent'; diff --git a/sdk/constructive-cli/src/compute/orm/models/infraGetAllTreeNodesRecord.ts b/sdk/constructive-cli/src/compute/orm/models/infraGetAllTreeNodesRecord.ts index 7f2e31d467..e3f66b257e 100644 --- a/sdk/constructive-cli/src/compute/orm/models/infraGetAllTreeNodesRecord.ts +++ b/sdk/constructive-cli/src/compute/orm/models/infraGetAllTreeNodesRecord.ts @@ -29,7 +29,6 @@ import type { InfraGetAllTreeNodesRecordSelect, InfraGetAllTreeNodesRecordFilter, InfraGetAllTreeNodesRecordsOrderBy, - CreateInfraGetAllTreeNodesRecordInput, UpdateInfraGetAllTreeNodesRecordInput, InfraGetAllTreeNodesRecordPatch, } from '../input-types'; @@ -109,31 +108,4 @@ export class InfraGetAllTreeNodesRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createInfraGetAllTreeNodesRecord: { - infraGetAllTreeNodesRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'InfraGetAllTreeNodesRecord', - 'createInfraGetAllTreeNodesRecord', - 'infraGetAllTreeNodesRecord', - args.select, - args.data, - 'CreateInfraGetAllTreeNodesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'InfraGetAllTreeNodesRecord', - fieldName: 'createInfraGetAllTreeNodesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/compute/orm/models/platformBuilderBinding.ts b/sdk/constructive-cli/src/compute/orm/models/platformBuilderBinding.ts deleted file mode 100644 index 09a8daa1ed..0000000000 --- a/sdk/constructive-cli/src/compute/orm/models/platformBuilderBinding.ts +++ /dev/null @@ -1,247 +0,0 @@ -/** - * PlatformBuilderBinding model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - PlatformBuilderBinding, - PlatformBuilderBindingWithRelations, - PlatformBuilderBindingSelect, - PlatformBuilderBindingFilter, - PlatformBuilderBindingOrderBy, - CreatePlatformBuilderBindingInput, - UpdatePlatformBuilderBindingInput, - PlatformBuilderBindingPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class PlatformBuilderBindingModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - platformBuilderBindings: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'PlatformBuilderBinding', - 'platformBuilderBindings', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'PlatformBuilderBindingFilter', - 'PlatformBuilderBindingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlatformBuilderBinding', - fieldName: 'platformBuilderBindings', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - platformBuilderBinding: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'PlatformBuilderBinding', - 'platformBuilderBindings', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'PlatformBuilderBindingFilter', - 'PlatformBuilderBindingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlatformBuilderBinding', - fieldName: 'platformBuilderBinding', - document, - variables, - transform: (data: { - platformBuilderBindings?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - platformBuilderBinding: data.platformBuilderBindings?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - platformBuilderBinding: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'PlatformBuilderBinding', - 'platformBuilderBindings', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'PlatformBuilderBindingFilter', - 'PlatformBuilderBindingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlatformBuilderBinding', - fieldName: 'platformBuilderBinding', - document, - variables, - transform: (data: { - platformBuilderBindings?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - platformBuilderBinding: data.platformBuilderBindings?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformBuilderBinding: { - platformBuilderBinding: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformBuilderBinding', - 'createPlatformBuilderBinding', - 'platformBuilderBinding', - args.select, - args.data, - 'CreatePlatformBuilderBindingInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformBuilderBinding', - fieldName: 'createPlatformBuilderBinding', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - PlatformBuilderBindingPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updatePlatformBuilderBinding: { - platformBuilderBinding: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'PlatformBuilderBinding', - 'updatePlatformBuilderBinding', - 'platformBuilderBinding', - args.select, - args.where.id, - args.data, - 'UpdatePlatformBuilderBindingInput', - 'id', - 'platformBuilderBindingPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformBuilderBinding', - fieldName: 'updatePlatformBuilderBinding', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deletePlatformBuilderBinding: { - platformBuilderBinding: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'PlatformBuilderBinding', - 'deletePlatformBuilderBinding', - 'platformBuilderBinding', - { - id: args.where.id, - }, - 'DeletePlatformBuilderBindingInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformBuilderBinding', - fieldName: 'deletePlatformBuilderBinding', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/compute/orm/models/platformInfraGetAllTreeNodesRecord.ts b/sdk/constructive-cli/src/compute/orm/models/platformInfraGetAllTreeNodesRecord.ts index e0e0a2aeaa..522c666bd3 100644 --- a/sdk/constructive-cli/src/compute/orm/models/platformInfraGetAllTreeNodesRecord.ts +++ b/sdk/constructive-cli/src/compute/orm/models/platformInfraGetAllTreeNodesRecord.ts @@ -29,7 +29,6 @@ import type { PlatformInfraGetAllTreeNodesRecordSelect, PlatformInfraGetAllTreeNodesRecordFilter, PlatformInfraGetAllTreeNodesRecordsOrderBy, - CreatePlatformInfraGetAllTreeNodesRecordInput, UpdatePlatformInfraGetAllTreeNodesRecordInput, PlatformInfraGetAllTreeNodesRecordPatch, } from '../input-types'; @@ -117,37 +116,4 @@ export class PlatformInfraGetAllTreeNodesRecordModel { }), }); } - create( - args: CreateArgs< - S, - CreatePlatformInfraGetAllTreeNodesRecordInput['platformInfraGetAllTreeNodesRecord'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformInfraGetAllTreeNodesRecord: { - platformInfraGetAllTreeNodesRecord: InferSelectResult< - PlatformInfraGetAllTreeNodesRecordWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformInfraGetAllTreeNodesRecord', - 'createPlatformInfraGetAllTreeNodesRecord', - 'platformInfraGetAllTreeNodesRecord', - args.select, - args.data, - 'CreatePlatformInfraGetAllTreeNodesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformInfraGetAllTreeNodesRecord', - fieldName: 'createPlatformInfraGetAllTreeNodesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/compute/orm/models/platformResourceDeclaredCapacity.ts b/sdk/constructive-cli/src/compute/orm/models/platformResourceDeclaredCapacity.ts index 66a88f859d..c61ba71d35 100644 --- a/sdk/constructive-cli/src/compute/orm/models/platformResourceDeclaredCapacity.ts +++ b/sdk/constructive-cli/src/compute/orm/models/platformResourceDeclaredCapacity.ts @@ -29,7 +29,6 @@ import type { PlatformResourceDeclaredCapacitySelect, PlatformResourceDeclaredCapacityFilter, PlatformResourceDeclaredCapacityOrderBy, - CreatePlatformResourceDeclaredCapacityInput, UpdatePlatformResourceDeclaredCapacityInput, PlatformResourceDeclaredCapacityPatch, } from '../input-types'; @@ -118,37 +117,4 @@ export class PlatformResourceDeclaredCapacityModel { }), }); } - create( - args: CreateArgs< - S, - CreatePlatformResourceDeclaredCapacityInput['platformResourceDeclaredCapacity'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformResourceDeclaredCapacity: { - platformResourceDeclaredCapacity: InferSelectResult< - PlatformResourceDeclaredCapacityWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformResourceDeclaredCapacity', - 'createPlatformResourceDeclaredCapacity', - 'platformResourceDeclaredCapacity', - args.select, - args.data, - 'CreatePlatformResourceDeclaredCapacityInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformResourceDeclaredCapacity', - fieldName: 'createPlatformResourceDeclaredCapacity', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/compute/orm/models/platformResourceObservedStorage.ts b/sdk/constructive-cli/src/compute/orm/models/platformResourceObservedStorage.ts index 80a274b483..5a5654a907 100644 --- a/sdk/constructive-cli/src/compute/orm/models/platformResourceObservedStorage.ts +++ b/sdk/constructive-cli/src/compute/orm/models/platformResourceObservedStorage.ts @@ -29,7 +29,6 @@ import type { PlatformResourceObservedStorageSelect, PlatformResourceObservedStorageFilter, PlatformResourceObservedStorageOrderBy, - CreatePlatformResourceObservedStorageInput, UpdatePlatformResourceObservedStorageInput, PlatformResourceObservedStoragePatch, } from '../input-types'; @@ -117,37 +116,4 @@ export class PlatformResourceObservedStorageModel { }), }); } - create( - args: CreateArgs< - S, - CreatePlatformResourceObservedStorageInput['platformResourceObservedStorage'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformResourceObservedStorage: { - platformResourceObservedStorage: InferSelectResult< - PlatformResourceObservedStorageWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformResourceObservedStorage', - 'createPlatformResourceObservedStorage', - 'platformResourceObservedStorage', - args.select, - args.data, - 'CreatePlatformResourceObservedStorageInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformResourceObservedStorage', - fieldName: 'createPlatformResourceObservedStorage', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/compute/orm/models/platformResourceUtilization.ts b/sdk/constructive-cli/src/compute/orm/models/platformResourceUtilization.ts index 040d38000e..2c7bffa084 100644 --- a/sdk/constructive-cli/src/compute/orm/models/platformResourceUtilization.ts +++ b/sdk/constructive-cli/src/compute/orm/models/platformResourceUtilization.ts @@ -29,7 +29,6 @@ import type { PlatformResourceUtilizationSelect, PlatformResourceUtilizationFilter, PlatformResourceUtilizationOrderBy, - CreatePlatformResourceUtilizationInput, UpdatePlatformResourceUtilizationInput, PlatformResourceUtilizationPatch, } from '../input-types'; @@ -113,31 +112,4 @@ export class PlatformResourceUtilizationModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformResourceUtilization: { - platformResourceUtilization: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformResourceUtilization', - 'createPlatformResourceUtilization', - 'platformResourceUtilization', - args.select, - args.data, - 'CreatePlatformResourceUtilizationInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformResourceUtilization', - fieldName: 'createPlatformResourceUtilization', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/compute/orm/models/platformResourcesHealth.ts b/sdk/constructive-cli/src/compute/orm/models/platformResourcesHealth.ts index 0f0efa3e31..7249c4259c 100644 --- a/sdk/constructive-cli/src/compute/orm/models/platformResourcesHealth.ts +++ b/sdk/constructive-cli/src/compute/orm/models/platformResourcesHealth.ts @@ -29,7 +29,6 @@ import type { PlatformResourcesHealthSelect, PlatformResourcesHealthFilter, PlatformResourcesHealthOrderBy, - CreatePlatformResourcesHealthInput, UpdatePlatformResourcesHealthInput, PlatformResourcesHealthPatch, } from '../input-types'; @@ -146,31 +145,4 @@ export class PlatformResourcesHealthModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformResourcesHealth: { - platformResourcesHealth: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformResourcesHealth', - 'createPlatformResourcesHealth', - 'platformResourcesHealth', - args.select, - args.data, - 'CreatePlatformResourcesHealthInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformResourcesHealth', - fieldName: 'createPlatformResourcesHealth', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/compute/orm/models/platformResourcesRequirementsState.ts b/sdk/constructive-cli/src/compute/orm/models/platformResourcesRequirementsState.ts index ab6152e426..4eb7854059 100644 --- a/sdk/constructive-cli/src/compute/orm/models/platformResourcesRequirementsState.ts +++ b/sdk/constructive-cli/src/compute/orm/models/platformResourcesRequirementsState.ts @@ -29,7 +29,6 @@ import type { PlatformResourcesRequirementsStateSelect, PlatformResourcesRequirementsStateFilter, PlatformResourcesRequirementsStateOrderBy, - CreatePlatformResourcesRequirementsStateInput, UpdatePlatformResourcesRequirementsStateInput, PlatformResourcesRequirementsStatePatch, } from '../input-types'; @@ -118,37 +117,4 @@ export class PlatformResourcesRequirementsStateModel { }), }); } - create( - args: CreateArgs< - S, - CreatePlatformResourcesRequirementsStateInput['platformResourcesRequirementsState'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformResourcesRequirementsState: { - platformResourcesRequirementsState: InferSelectResult< - PlatformResourcesRequirementsStateWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformResourcesRequirementsState', - 'createPlatformResourcesRequirementsState', - 'platformResourcesRequirementsState', - args.select, - args.data, - 'CreatePlatformResourcesRequirementsStateInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformResourcesRequirementsState', - fieldName: 'createPlatformResourcesRequirementsState', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/compute/orm/models/platformResourcesResolvedRequirement.ts b/sdk/constructive-cli/src/compute/orm/models/platformResourcesResolvedRequirement.ts index d7d7bf4ed0..0326681f64 100644 --- a/sdk/constructive-cli/src/compute/orm/models/platformResourcesResolvedRequirement.ts +++ b/sdk/constructive-cli/src/compute/orm/models/platformResourcesResolvedRequirement.ts @@ -29,7 +29,6 @@ import type { PlatformResourcesResolvedRequirementSelect, PlatformResourcesResolvedRequirementFilter, PlatformResourcesResolvedRequirementOrderBy, - CreatePlatformResourcesResolvedRequirementInput, UpdatePlatformResourcesResolvedRequirementInput, PlatformResourcesResolvedRequirementPatch, } from '../input-types'; @@ -118,37 +117,4 @@ export class PlatformResourcesResolvedRequirementModel { }), }); } - create( - args: CreateArgs< - S, - CreatePlatformResourcesResolvedRequirementInput['platformResourcesResolvedRequirement'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformResourcesResolvedRequirement: { - platformResourcesResolvedRequirement: InferSelectResult< - PlatformResourcesResolvedRequirementWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformResourcesResolvedRequirement', - 'createPlatformResourcesResolvedRequirement', - 'platformResourcesResolvedRequirement', - args.select, - args.data, - 'CreatePlatformResourcesResolvedRequirementInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformResourcesResolvedRequirement', - fieldName: 'createPlatformResourcesResolvedRequirement', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/compute/orm/models/platformServiceBinding.ts b/sdk/constructive-cli/src/compute/orm/models/platformServiceBinding.ts new file mode 100644 index 0000000000..e50381b94d --- /dev/null +++ b/sdk/constructive-cli/src/compute/orm/models/platformServiceBinding.ts @@ -0,0 +1,247 @@ +/** + * PlatformServiceBinding model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformServiceBinding, + PlatformServiceBindingWithRelations, + PlatformServiceBindingSelect, + PlatformServiceBindingFilter, + PlatformServiceBindingOrderBy, + CreatePlatformServiceBindingInput, + UpdatePlatformServiceBindingInput, + PlatformServiceBindingPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformServiceBindingModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformServiceBindings: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformServiceBinding', + 'platformServiceBindings', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformServiceBindingFilter', + 'PlatformServiceBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformServiceBinding', + fieldName: 'platformServiceBindings', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformServiceBinding: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformServiceBinding', + 'platformServiceBindings', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformServiceBindingFilter', + 'PlatformServiceBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformServiceBinding', + fieldName: 'platformServiceBinding', + document, + variables, + transform: (data: { + platformServiceBindings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformServiceBinding: data.platformServiceBindings?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformServiceBinding: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformServiceBinding', + 'platformServiceBindings', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformServiceBindingFilter', + 'PlatformServiceBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformServiceBinding', + fieldName: 'platformServiceBinding', + document, + variables, + transform: (data: { + platformServiceBindings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformServiceBinding: data.platformServiceBindings?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformServiceBinding: { + platformServiceBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformServiceBinding', + 'createPlatformServiceBinding', + 'platformServiceBinding', + args.select, + args.data, + 'CreatePlatformServiceBindingInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformServiceBinding', + fieldName: 'createPlatformServiceBinding', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformServiceBindingPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformServiceBinding: { + platformServiceBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformServiceBinding', + 'updatePlatformServiceBinding', + 'platformServiceBinding', + args.select, + args.where.id, + args.data, + 'UpdatePlatformServiceBindingInput', + 'id', + 'platformServiceBindingPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformServiceBinding', + fieldName: 'updatePlatformServiceBinding', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformServiceBinding: { + platformServiceBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformServiceBinding', + 'deletePlatformServiceBinding', + 'platformServiceBinding', + { + id: args.where.id, + }, + 'DeletePlatformServiceBindingInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformServiceBinding', + fieldName: 'deletePlatformServiceBinding', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/compute/orm/models/resourceDeclaredCapacity.ts b/sdk/constructive-cli/src/compute/orm/models/resourceDeclaredCapacity.ts index 6340979a98..3ea2e93607 100644 --- a/sdk/constructive-cli/src/compute/orm/models/resourceDeclaredCapacity.ts +++ b/sdk/constructive-cli/src/compute/orm/models/resourceDeclaredCapacity.ts @@ -29,7 +29,6 @@ import type { ResourceDeclaredCapacitySelect, ResourceDeclaredCapacityFilter, ResourceDeclaredCapacityOrderBy, - CreateResourceDeclaredCapacityInput, UpdateResourceDeclaredCapacityInput, ResourceDeclaredCapacityPatch, } from '../input-types'; @@ -106,31 +105,4 @@ export class ResourceDeclaredCapacityModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createResourceDeclaredCapacity: { - resourceDeclaredCapacity: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ResourceDeclaredCapacity', - 'createResourceDeclaredCapacity', - 'resourceDeclaredCapacity', - args.select, - args.data, - 'CreateResourceDeclaredCapacityInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ResourceDeclaredCapacity', - fieldName: 'createResourceDeclaredCapacity', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/compute/orm/models/resourceObservedStorage.ts b/sdk/constructive-cli/src/compute/orm/models/resourceObservedStorage.ts index 75769aef61..2d9c328e85 100644 --- a/sdk/constructive-cli/src/compute/orm/models/resourceObservedStorage.ts +++ b/sdk/constructive-cli/src/compute/orm/models/resourceObservedStorage.ts @@ -29,7 +29,6 @@ import type { ResourceObservedStorageSelect, ResourceObservedStorageFilter, ResourceObservedStorageOrderBy, - CreateResourceObservedStorageInput, UpdateResourceObservedStorageInput, ResourceObservedStoragePatch, } from '../input-types'; @@ -106,31 +105,4 @@ export class ResourceObservedStorageModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createResourceObservedStorage: { - resourceObservedStorage: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ResourceObservedStorage', - 'createResourceObservedStorage', - 'resourceObservedStorage', - args.select, - args.data, - 'CreateResourceObservedStorageInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ResourceObservedStorage', - fieldName: 'createResourceObservedStorage', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/compute/orm/models/resourceUtilization.ts b/sdk/constructive-cli/src/compute/orm/models/resourceUtilization.ts index 3620486000..6704ad6230 100644 --- a/sdk/constructive-cli/src/compute/orm/models/resourceUtilization.ts +++ b/sdk/constructive-cli/src/compute/orm/models/resourceUtilization.ts @@ -29,7 +29,6 @@ import type { ResourceUtilizationSelect, ResourceUtilizationFilter, ResourceUtilizationOrderBy, - CreateResourceUtilizationInput, UpdateResourceUtilizationInput, ResourceUtilizationPatch, } from '../input-types'; @@ -104,31 +103,4 @@ export class ResourceUtilizationModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createResourceUtilization: { - resourceUtilization: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ResourceUtilization', - 'createResourceUtilization', - 'resourceUtilization', - args.select, - args.data, - 'CreateResourceUtilizationInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ResourceUtilization', - fieldName: 'createResourceUtilization', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/compute/orm/models/resourcesHealth.ts b/sdk/constructive-cli/src/compute/orm/models/resourcesHealth.ts index 1ac97bab3d..6b66d67938 100644 --- a/sdk/constructive-cli/src/compute/orm/models/resourcesHealth.ts +++ b/sdk/constructive-cli/src/compute/orm/models/resourcesHealth.ts @@ -29,7 +29,6 @@ import type { ResourcesHealthSelect, ResourcesHealthFilter, ResourcesHealthOrderBy, - CreateResourcesHealthInput, UpdateResourcesHealthInput, ResourcesHealthPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class ResourcesHealthModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createResourcesHealth: { - resourcesHealth: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ResourcesHealth', - 'createResourcesHealth', - 'resourcesHealth', - args.select, - args.data, - 'CreateResourcesHealthInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ResourcesHealth', - fieldName: 'createResourcesHealth', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/compute/orm/models/resourcesRequirementsState.ts b/sdk/constructive-cli/src/compute/orm/models/resourcesRequirementsState.ts index 8ce68f6a31..85dbd5a7d1 100644 --- a/sdk/constructive-cli/src/compute/orm/models/resourcesRequirementsState.ts +++ b/sdk/constructive-cli/src/compute/orm/models/resourcesRequirementsState.ts @@ -29,7 +29,6 @@ import type { ResourcesRequirementsStateSelect, ResourcesRequirementsStateFilter, ResourcesRequirementsStateOrderBy, - CreateResourcesRequirementsStateInput, UpdateResourcesRequirementsStateInput, ResourcesRequirementsStatePatch, } from '../input-types'; @@ -109,31 +108,4 @@ export class ResourcesRequirementsStateModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createResourcesRequirementsState: { - resourcesRequirementsState: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ResourcesRequirementsState', - 'createResourcesRequirementsState', - 'resourcesRequirementsState', - args.select, - args.data, - 'CreateResourcesRequirementsStateInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ResourcesRequirementsState', - fieldName: 'createResourcesRequirementsState', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/compute/orm/models/resourcesResolvedRequirement.ts b/sdk/constructive-cli/src/compute/orm/models/resourcesResolvedRequirement.ts index 40680dcfb3..2a9d9d1034 100644 --- a/sdk/constructive-cli/src/compute/orm/models/resourcesResolvedRequirement.ts +++ b/sdk/constructive-cli/src/compute/orm/models/resourcesResolvedRequirement.ts @@ -29,7 +29,6 @@ import type { ResourcesResolvedRequirementSelect, ResourcesResolvedRequirementFilter, ResourcesResolvedRequirementOrderBy, - CreateResourcesResolvedRequirementInput, UpdateResourcesResolvedRequirementInput, ResourcesResolvedRequirementPatch, } from '../input-types'; @@ -117,31 +116,4 @@ export class ResourcesResolvedRequirementModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createResourcesResolvedRequirement: { - resourcesResolvedRequirement: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ResourcesResolvedRequirement', - 'createResourcesResolvedRequirement', - 'resourcesResolvedRequirement', - args.select, - args.data, - 'CreateResourcesResolvedRequirementInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ResourcesResolvedRequirement', - fieldName: 'createResourcesResolvedRequirement', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/compute/orm/models/builderBinding.ts b/sdk/constructive-cli/src/compute/orm/models/serviceBinding.ts similarity index 53% rename from sdk/constructive-cli/src/compute/orm/models/builderBinding.ts rename to sdk/constructive-cli/src/compute/orm/models/serviceBinding.ts index 0d5d7843e3..be7061a21b 100644 --- a/sdk/constructive-cli/src/compute/orm/models/builderBinding.ts +++ b/sdk/constructive-cli/src/compute/orm/models/serviceBinding.ts @@ -1,5 +1,5 @@ /** - * BuilderBinding model for ORM client + * ServiceBinding model for ORM client * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -24,28 +24,28 @@ import type { StrictSelect, } from '../select-types'; import type { - BuilderBinding, - BuilderBindingWithRelations, - BuilderBindingSelect, - BuilderBindingFilter, - BuilderBindingOrderBy, - CreateBuilderBindingInput, - UpdateBuilderBindingInput, - BuilderBindingPatch, + ServiceBinding, + ServiceBindingWithRelations, + ServiceBindingSelect, + ServiceBindingFilter, + ServiceBindingOrderBy, + CreateServiceBindingInput, + UpdateServiceBindingInput, + ServiceBindingPatch, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export class BuilderBindingModel { +export class ServiceBindingModel { constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { + findMany( + args: FindManyArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - builderBindings: ConnectionResult>; + serviceBindings: ConnectionResult>; }> { const { document, variables } = buildFindManyDocument( - 'BuilderBinding', - 'builderBindings', + 'ServiceBinding', + 'serviceBindings', args.select, { where: args?.where, @@ -56,65 +56,65 @@ export class BuilderBindingModel { before: args?.before, offset: args?.offset, }, - 'BuilderBindingFilter', - 'BuilderBindingOrderBy', + 'ServiceBindingFilter', + 'ServiceBindingOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'BuilderBinding', - fieldName: 'builderBindings', + operationName: 'ServiceBinding', + fieldName: 'serviceBindings', document, variables, }); } - findFirst( - args: FindFirstArgs & { + findFirst( + args: FindFirstArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - builderBinding: InferSelectResult | null; + serviceBinding: InferSelectResult | null; }> { const { document, variables } = buildFindFirstDocument( - 'BuilderBinding', - 'builderBindings', + 'ServiceBinding', + 'serviceBindings', args.select, { where: args?.where, orderBy: args?.orderBy as string[] | undefined, }, - 'BuilderBindingFilter', - 'BuilderBindingOrderBy', + 'ServiceBindingFilter', + 'ServiceBindingOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'BuilderBinding', - fieldName: 'builderBinding', + operationName: 'ServiceBinding', + fieldName: 'serviceBinding', document, variables, transform: (data: { - builderBindings?: { - nodes?: InferSelectResult[]; + serviceBindings?: { + nodes?: InferSelectResult[]; }; }) => ({ - builderBinding: data.builderBindings?.nodes?.[0] ?? null, + serviceBinding: data.serviceBindings?.nodes?.[0] ?? null, }), }); } - findOne( + findOne( args: { id: string; select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - builderBinding: InferSelectResult | null; + serviceBinding: InferSelectResult | null; }> { const { document, variables } = buildFindManyDocument( - 'BuilderBinding', - 'builderBindings', + 'ServiceBinding', + 'serviceBindings', args.select, { where: { @@ -124,91 +124,91 @@ export class BuilderBindingModel { }, first: 1, }, - 'BuilderBindingFilter', - 'BuilderBindingOrderBy', + 'ServiceBindingFilter', + 'ServiceBindingOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'BuilderBinding', - fieldName: 'builderBinding', + operationName: 'ServiceBinding', + fieldName: 'serviceBinding', document, variables, transform: (data: { - builderBindings?: { - nodes?: InferSelectResult[]; + serviceBindings?: { + nodes?: InferSelectResult[]; }; }) => ({ - builderBinding: data.builderBindings?.nodes?.[0] ?? null, + serviceBinding: data.serviceBindings?.nodes?.[0] ?? null, }), }); } - create( - args: CreateArgs & { + create( + args: CreateArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - createBuilderBinding: { - builderBinding: InferSelectResult; + createServiceBinding: { + serviceBinding: InferSelectResult; }; }> { const { document, variables } = buildCreateDocument( - 'BuilderBinding', - 'createBuilderBinding', - 'builderBinding', + 'ServiceBinding', + 'createServiceBinding', + 'serviceBinding', args.select, args.data, - 'CreateBuilderBindingInput', + 'CreateServiceBindingInput', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'BuilderBinding', - fieldName: 'createBuilderBinding', + operationName: 'ServiceBinding', + fieldName: 'createServiceBinding', document, variables, }); } - update( + update( args: UpdateArgs< S, { id: string; }, - BuilderBindingPatch + ServiceBindingPatch > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - updateBuilderBinding: { - builderBinding: InferSelectResult; + updateServiceBinding: { + serviceBinding: InferSelectResult; }; }> { const { document, variables } = buildUpdateByPkDocument( - 'BuilderBinding', - 'updateBuilderBinding', - 'builderBinding', + 'ServiceBinding', + 'updateServiceBinding', + 'serviceBinding', args.select, args.where.id, args.data, - 'UpdateBuilderBindingInput', + 'UpdateServiceBindingInput', 'id', - 'builderBindingPatch', + 'serviceBindingPatch', connectionFieldsMap, undefined ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'BuilderBinding', - fieldName: 'updateBuilderBinding', + operationName: 'ServiceBinding', + fieldName: 'updateServiceBinding', document, variables, }); } - delete( + delete( args: DeleteArgs< { id: string; @@ -216,28 +216,28 @@ export class BuilderBindingModel { S > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - deleteBuilderBinding: { - builderBinding: InferSelectResult; + deleteServiceBinding: { + serviceBinding: InferSelectResult; }; }> { const { document, variables } = buildDeleteByPkDocument( - 'BuilderBinding', - 'deleteBuilderBinding', - 'builderBinding', + 'ServiceBinding', + 'deleteServiceBinding', + 'serviceBinding', { id: args.where.id, }, - 'DeleteBuilderBindingInput', + 'DeleteServiceBindingInput', args.select, connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'BuilderBinding', - fieldName: 'deleteBuilderBinding', + operationName: 'ServiceBinding', + fieldName: 'deleteServiceBinding', document, variables, }); diff --git a/sdk/constructive-cli/src/compute/orm/mutation/index.ts b/sdk/constructive-cli/src/compute/orm/mutation/index.ts index 48ca756e41..3b03efb8a3 100644 --- a/sdk/constructive-cli/src/compute/orm/mutation/index.ts +++ b/sdk/constructive-cli/src/compute/orm/mutation/index.ts @@ -13,6 +13,7 @@ import type { AddNodeAndSaveInput, ApproveNodeInput, CopyGraphInput, + CreateFunctionGraphInput, DatabaseAddEdgeInput, DatabaseAddEdgeAndSaveInput, DatabaseAddNodeInput, @@ -75,6 +76,7 @@ import type { AddNodeAndSavePayload, ApproveNodePayload, CopyGraphPayload, + CreateFunctionGraphPayload, DatabaseAddEdgePayload, DatabaseAddEdgeAndSavePayload, DatabaseAddNodePayload, @@ -137,6 +139,7 @@ import type { AddNodeAndSavePayloadSelect, ApproveNodePayloadSelect, CopyGraphPayloadSelect, + CreateFunctionGraphPayloadSelect, DatabaseAddEdgePayloadSelect, DatabaseAddEdgeAndSavePayloadSelect, DatabaseAddNodePayloadSelect, @@ -213,6 +216,9 @@ export interface ApproveNodeVariables { export interface CopyGraphVariables { input: CopyGraphInput; } +export interface CreateFunctionGraphVariables { + input: CreateFunctionGraphInput; +} export interface DatabaseAddEdgeVariables { input: DatabaseAddEdgeInput; } @@ -566,6 +572,35 @@ export function createMutationOperations(client: OrmClient) { 'CopyGraphPayload' ), }), + createFunctionGraph: ( + args: CreateFunctionGraphVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + createFunctionGraph: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'CreateFunctionGraph', + fieldName: 'createFunctionGraph', + ...buildCustomDocument( + 'mutation', + 'CreateFunctionGraph', + 'createFunctionGraph', + options.select, + args, + [ + { + name: 'input', + type: 'CreateFunctionGraphInput!', + }, + ], + connectionFieldsMap, + 'CreateFunctionGraphPayload' + ), + }), databaseAddEdge: ( args: DatabaseAddEdgeVariables, options: { diff --git a/sdk/constructive-cli/src/config/cli/README.md b/sdk/constructive-cli/src/config/cli/README.md index 7c20cf8de5..0909ad51a6 100644 --- a/sdk/constructive-cli/src/config/cli/README.md +++ b/sdk/constructive-cli/src/config/cli/README.md @@ -112,7 +112,6 @@ CRUD operations for AppInternalSecret records. | `list` | List all appInternalSecret records | | `find-first` | Find first matching appInternalSecret record | | `get` | Get a appInternalSecret by id | -| `create` | Create a new appInternalSecret | | `update` | Update an existing appInternalSecret | | `delete` | Delete a appInternalSecret | @@ -211,7 +210,6 @@ CRUD operations for InternalSecret records. | `list` | List all internalSecret records | | `find-first` | Find first matching internalSecret record | | `get` | Get a internalSecret by id | -| `create` | Create a new internalSecret | | `update` | Update an existing internalSecret | | `delete` | Delete a internalSecret | @@ -309,7 +307,6 @@ CRUD operations for PlatformInternalSecret records. | `list` | List all platformInternalSecret records | | `find-first` | Find first matching platformInternalSecret record | | `get` | Get a platformInternalSecret by id | -| `create` | Create a new platformInternalSecret | | `update` | Update an existing platformInternalSecret | | `delete` | Delete a platformInternalSecret | @@ -339,7 +336,6 @@ CRUD operations for PlatformSecret records. | `list` | List all platformSecret records | | `find-first` | Find first matching platformSecret record | | `get` | Get a platformSecret by id | -| `create` | Create a new platformSecret | | `update` | Update an existing platformSecret | | `delete` | Delete a platformSecret | @@ -371,7 +367,6 @@ CRUD operations for Secret records. | `list` | List all secret records | | `find-first` | Find first matching secret record | | `get` | Get a secret by id | -| `create` | Create a new secret | | `update` | Update an existing secret | | `delete` | Delete a secret | diff --git a/sdk/constructive-cli/src/config/cli/commands/app-internal-secret.ts b/sdk/constructive-cli/src/config/cli/commands/app-internal-secret.ts index 76ed14eb12..bed0ca09dc 100644 --- a/sdk/constructive-cli/src/config/cli/commands/app-internal-secret.ts +++ b/sdk/constructive-cli/src/config/cli/commands/app-internal-secret.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateAppInternalSecretInput, AppInternalSecretPatch, AppInternalSecretSelect, AppInternalSecretFilter, @@ -45,7 +44,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -62,8 +61,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -129,89 +126,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'json', - name: 'annotations', - message: 'annotations', - required: true, - }, - { - type: 'text', - name: 'description', - message: 'description', - required: true, - }, - { - type: 'json', - name: 'labels', - message: 'labels', - required: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: true, - }, - { - type: 'text', - name: 'realm', - message: 'realm', - required: true, - }, - { - type: 'text', - name: 'retiredAt', - message: 'retiredAt', - required: true, - }, - { - type: 'text', - name: 'rotatedAt', - message: 'rotatedAt', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateAppInternalSecretInput['appInternalSecret']; - const client = getClient(); - const result = await client.appInternalSecret - .create({ - data: { - annotations: cleanedData.annotations, - description: cleanedData.description, - labels: cleanedData.labels, - name: cleanedData.name, - realm: cleanedData.realm, - retiredAt: cleanedData.retiredAt, - rotatedAt: cleanedData.rotatedAt, - }, - select: { - annotations: true, - createdAt: true, - description: true, - id: true, - labels: true, - name: true, - realm: true, - retiredAt: true, - rotatedAt: true, - updatedAt: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/config/cli/commands/internal-secret.ts b/sdk/constructive-cli/src/config/cli/commands/internal-secret.ts index 54517c08d9..ef7b2d2cfb 100644 --- a/sdk/constructive-cli/src/config/cli/commands/internal-secret.ts +++ b/sdk/constructive-cli/src/config/cli/commands/internal-secret.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateInternalSecretInput, InternalSecretPatch, InternalSecretSelect, InternalSecretFilter, @@ -46,7 +45,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -63,8 +62,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -132,97 +129,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'json', - name: 'annotations', - message: 'annotations', - required: true, - }, - { - type: 'text', - name: 'databaseId', - message: 'databaseId', - required: true, - }, - { - type: 'text', - name: 'description', - message: 'description', - required: true, - }, - { - type: 'json', - name: 'labels', - message: 'labels', - required: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: true, - }, - { - type: 'text', - name: 'realm', - message: 'realm', - required: true, - }, - { - type: 'text', - name: 'retiredAt', - message: 'retiredAt', - required: true, - }, - { - type: 'text', - name: 'rotatedAt', - message: 'rotatedAt', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateInternalSecretInput['internalSecret']; - const client = getClient(); - const result = await client.internalSecret - .create({ - data: { - annotations: cleanedData.annotations, - databaseId: cleanedData.databaseId, - description: cleanedData.description, - labels: cleanedData.labels, - name: cleanedData.name, - realm: cleanedData.realm, - retiredAt: cleanedData.retiredAt, - rotatedAt: cleanedData.rotatedAt, - }, - select: { - annotations: true, - createdAt: true, - databaseId: true, - description: true, - id: true, - labels: true, - name: true, - realm: true, - retiredAt: true, - rotatedAt: true, - updatedAt: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/config/cli/commands/platform-internal-secret.ts b/sdk/constructive-cli/src/config/cli/commands/platform-internal-secret.ts index 2d00f183cd..d35c8d04e9 100644 --- a/sdk/constructive-cli/src/config/cli/commands/platform-internal-secret.ts +++ b/sdk/constructive-cli/src/config/cli/commands/platform-internal-secret.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreatePlatformInternalSecretInput, PlatformInternalSecretPatch, PlatformInternalSecretSelect, PlatformInternalSecretFilter, @@ -45,7 +44,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -62,8 +61,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -137,89 +134,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'json', - name: 'annotations', - message: 'annotations', - required: true, - }, - { - type: 'text', - name: 'description', - message: 'description', - required: true, - }, - { - type: 'json', - name: 'labels', - message: 'labels', - required: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: true, - }, - { - type: 'text', - name: 'realm', - message: 'realm', - required: true, - }, - { - type: 'text', - name: 'retiredAt', - message: 'retiredAt', - required: true, - }, - { - type: 'text', - name: 'rotatedAt', - message: 'rotatedAt', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreatePlatformInternalSecretInput['platformInternalSecret']; - const client = getClient(); - const result = await client.platformInternalSecret - .create({ - data: { - annotations: cleanedData.annotations, - description: cleanedData.description, - labels: cleanedData.labels, - name: cleanedData.name, - realm: cleanedData.realm, - retiredAt: cleanedData.retiredAt, - rotatedAt: cleanedData.rotatedAt, - }, - select: { - annotations: true, - createdAt: true, - description: true, - id: true, - labels: true, - name: true, - realm: true, - retiredAt: true, - rotatedAt: true, - updatedAt: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/config/cli/commands/platform-secret.ts b/sdk/constructive-cli/src/config/cli/commands/platform-secret.ts index fec0aa4339..aa567b0cd9 100644 --- a/sdk/constructive-cli/src/config/cli/commands/platform-secret.ts +++ b/sdk/constructive-cli/src/config/cli/commands/platform-secret.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreatePlatformSecretInput, PlatformSecretPatch, PlatformSecretSelect, PlatformSecretFilter, @@ -47,7 +46,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -64,8 +63,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -135,105 +132,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'json', - name: 'annotations', - message: 'annotations', - required: true, - }, - { - type: 'text', - name: 'description', - message: 'description', - required: true, - }, - { - type: 'json', - name: 'labels', - message: 'labels', - required: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: true, - }, - { - type: 'text', - name: 'namespaceId', - message: 'namespaceId', - required: true, - }, - { - type: 'text', - name: 'provider', - message: 'provider', - required: true, - }, - { - type: 'text', - name: 'realm', - message: 'realm', - required: true, - }, - { - type: 'text', - name: 'retiredAt', - message: 'retiredAt', - required: true, - }, - { - type: 'text', - name: 'rotatedAt', - message: 'rotatedAt', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreatePlatformSecretInput['platformSecret']; - const client = getClient(); - const result = await client.platformSecret - .create({ - data: { - annotations: cleanedData.annotations, - description: cleanedData.description, - labels: cleanedData.labels, - name: cleanedData.name, - namespaceId: cleanedData.namespaceId, - provider: cleanedData.provider, - realm: cleanedData.realm, - retiredAt: cleanedData.retiredAt, - rotatedAt: cleanedData.rotatedAt, - }, - select: { - annotations: true, - createdAt: true, - description: true, - id: true, - labels: true, - name: true, - namespaceId: true, - provider: true, - realm: true, - retiredAt: true, - rotatedAt: true, - updatedAt: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/config/cli/commands/secret.ts b/sdk/constructive-cli/src/config/cli/commands/secret.ts index 49d2e99237..065f9ed661 100644 --- a/sdk/constructive-cli/src/config/cli/commands/secret.ts +++ b/sdk/constructive-cli/src/config/cli/commands/secret.ts @@ -7,13 +7,7 @@ import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; -import type { - CreateSecretInput, - SecretPatch, - SecretSelect, - SecretFilter, - SecretOrderBy, -} from '../../orm/input-types'; +import type { SecretPatch, SecretSelect, SecretFilter, SecretOrderBy } from '../../orm/input-types'; import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { annotations: 'json', @@ -48,7 +42,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -65,8 +59,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -138,110 +130,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'json', - name: 'annotations', - message: 'annotations', - required: true, - }, - { - type: 'text', - name: 'databaseId', - message: 'databaseId', - required: true, - }, - { - type: 'text', - name: 'description', - message: 'description', - required: true, - }, - { - type: 'json', - name: 'labels', - message: 'labels', - required: true, - }, - { - type: 'text', - name: 'name', - message: 'name', - required: true, - }, - { - type: 'text', - name: 'namespaceId', - message: 'namespaceId', - required: true, - }, - { - type: 'text', - name: 'provider', - message: 'provider', - required: true, - }, - { - type: 'text', - name: 'realm', - message: 'realm', - required: true, - }, - { - type: 'text', - name: 'retiredAt', - message: 'retiredAt', - required: true, - }, - { - type: 'text', - name: 'rotatedAt', - message: 'rotatedAt', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as CreateSecretInput['secret']; - const client = getClient(); - const result = await client.secret - .create({ - data: { - annotations: cleanedData.annotations, - databaseId: cleanedData.databaseId, - description: cleanedData.description, - labels: cleanedData.labels, - name: cleanedData.name, - namespaceId: cleanedData.namespaceId, - provider: cleanedData.provider, - realm: cleanedData.realm, - retiredAt: cleanedData.retiredAt, - rotatedAt: cleanedData.rotatedAt, - }, - select: { - annotations: true, - createdAt: true, - databaseId: true, - description: true, - id: true, - labels: true, - name: true, - namespaceId: true, - provider: true, - realm: true, - retiredAt: true, - rotatedAt: true, - updatedAt: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/config/orm/README.md b/sdk/constructive-cli/src/config/orm/README.md index 8e9c44033d..b52d2f9776 100644 --- a/sdk/constructive-cli/src/config/orm/README.md +++ b/sdk/constructive-cli/src/config/orm/README.md @@ -21,15 +21,15 @@ const db = createClient({ | Model | Operations | |-------|------------| -| `appInternalSecret` | findMany, findOne, create, update, delete | +| `appInternalSecret` | findMany, findOne, update, delete | | `config` | findMany, findOne, create, update, delete | | `internalConfig` | findMany, findOne, create, update, delete | -| `internalSecret` | findMany, findOne, create, update, delete | +| `internalSecret` | findMany, findOne, update, delete | | `platformConfig` | findMany, findOne, create, update, delete | | `platformInternalConfig` | findMany, findOne, create, update, delete | -| `platformInternalSecret` | findMany, findOne, create, update, delete | -| `platformSecret` | findMany, findOne, create, update, delete | -| `secret` | findMany, findOne, create, update, delete | +| `platformInternalSecret` | findMany, findOne, update, delete | +| `platformSecret` | findMany, findOne, update, delete | +| `secret` | findMany, findOne, update, delete | ## Table Operations @@ -61,9 +61,6 @@ const items = await db.appInternalSecret.findMany({ select: { annotations: true, // Get one by id const item = await db.appInternalSecret.findOne({ id: '', select: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); -// Create -const created = await db.appInternalSecret.create({ data: { annotations: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute(); - // Update const updated = await db.appInternalSecret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -183,9 +180,6 @@ const items = await db.internalSecret.findMany({ select: { annotations: true, cr // Get one by id const item = await db.internalSecret.findOne({ id: '', select: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); -// Create -const created = await db.internalSecret.create({ data: { annotations: '', databaseId: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute(); - // Update const updated = await db.internalSecret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -302,9 +296,6 @@ const items = await db.platformInternalSecret.findMany({ select: { annotations: // Get one by id const item = await db.platformInternalSecret.findOne({ id: '', select: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); -// Create -const created = await db.platformInternalSecret.create({ data: { annotations: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformInternalSecret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -342,9 +333,6 @@ const items = await db.platformSecret.findMany({ select: { annotations: true, cr // Get one by id const item = await db.platformSecret.findOne({ id: '', select: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); -// Create -const created = await db.platformSecret.create({ data: { annotations: '', description: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformSecret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -383,9 +371,6 @@ const items = await db.secret.findMany({ select: { annotations: true, createdAt: // Get one by id const item = await db.secret.findOne({ id: '', select: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); -// Create -const created = await db.secret.create({ data: { annotations: '', databaseId: '', description: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute(); - // Update const updated = await db.secret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); diff --git a/sdk/constructive-cli/src/config/orm/input-types.ts b/sdk/constructive-cli/src/config/orm/input-types.ts index 317d86e5b9..bd666714a5 100644 --- a/sdk/constructive-cli/src/config/orm/input-types.ts +++ b/sdk/constructive-cli/src/config/orm/input-types.ts @@ -1095,18 +1095,6 @@ export type SecretOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; // ============ CRUD Input Types ============ -export interface CreateAppInternalSecretInput { - clientMutationId?: string; - appInternalSecret: { - annotations?: Record; - description?: string; - labels?: Record; - name?: string; - realm?: string; - retiredAt?: string; - rotatedAt?: string; - }; -} export interface AppInternalSecretPatch { annotations?: Record | null; description?: string | null; @@ -1199,19 +1187,6 @@ export interface DeleteInternalConfigInput { clientMutationId?: string; id: string; } -export interface CreateInternalSecretInput { - clientMutationId?: string; - internalSecret: { - annotations?: Record; - databaseId: string; - description?: string; - labels?: Record; - name?: string; - realm?: string; - retiredAt?: string; - rotatedAt?: string; - }; -} export interface InternalSecretPatch { annotations?: Record | null; databaseId?: string | null; @@ -1301,18 +1276,6 @@ export interface DeletePlatformInternalConfigInput { clientMutationId?: string; id: string; } -export interface CreatePlatformInternalSecretInput { - clientMutationId?: string; - platformInternalSecret: { - annotations?: Record; - description?: string; - labels?: Record; - name?: string; - realm?: string; - retiredAt?: string; - rotatedAt?: string; - }; -} export interface PlatformInternalSecretPatch { annotations?: Record | null; description?: string | null; @@ -1331,20 +1294,6 @@ export interface DeletePlatformInternalSecretInput { clientMutationId?: string; id: string; } -export interface CreatePlatformSecretInput { - clientMutationId?: string; - platformSecret: { - annotations?: Record; - description?: string; - labels?: Record; - name?: string; - namespaceId: string; - provider?: string; - realm?: string; - retiredAt?: string; - rotatedAt?: string; - }; -} export interface PlatformSecretPatch { annotations?: Record | null; description?: string | null; @@ -1365,21 +1314,6 @@ export interface DeletePlatformSecretInput { clientMutationId?: string; id: string; } -export interface CreateSecretInput { - clientMutationId?: string; - secret: { - annotations?: Record; - databaseId: string; - description?: string; - labels?: Record; - name?: string; - namespaceId: string; - provider?: string; - realm?: string; - retiredAt?: string; - rotatedAt?: string; - }; -} export interface SecretPatch { annotations?: Record | null; databaseId?: string | null; diff --git a/sdk/constructive-cli/src/config/orm/models/appInternalSecret.ts b/sdk/constructive-cli/src/config/orm/models/appInternalSecret.ts index 6efc1ad009..d876c61ee7 100644 --- a/sdk/constructive-cli/src/config/orm/models/appInternalSecret.ts +++ b/sdk/constructive-cli/src/config/orm/models/appInternalSecret.ts @@ -29,7 +29,6 @@ import type { AppInternalSecretSelect, AppInternalSecretFilter, AppInternalSecretOrderBy, - CreateAppInternalSecretInput, UpdateAppInternalSecretInput, AppInternalSecretPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class AppInternalSecretModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppInternalSecret: { - appInternalSecret: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppInternalSecret', - 'createAppInternalSecret', - 'appInternalSecret', - args.select, - args.data, - 'CreateAppInternalSecretInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppInternalSecret', - fieldName: 'createAppInternalSecret', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/config/orm/models/internalSecret.ts b/sdk/constructive-cli/src/config/orm/models/internalSecret.ts index daeef23c68..443924fe70 100644 --- a/sdk/constructive-cli/src/config/orm/models/internalSecret.ts +++ b/sdk/constructive-cli/src/config/orm/models/internalSecret.ts @@ -29,7 +29,6 @@ import type { InternalSecretSelect, InternalSecretFilter, InternalSecretOrderBy, - CreateInternalSecretInput, UpdateInternalSecretInput, InternalSecretPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class InternalSecretModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createInternalSecret: { - internalSecret: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'InternalSecret', - 'createInternalSecret', - 'internalSecret', - args.select, - args.data, - 'CreateInternalSecretInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'InternalSecret', - fieldName: 'createInternalSecret', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/config/orm/models/platformInternalSecret.ts b/sdk/constructive-cli/src/config/orm/models/platformInternalSecret.ts index 35e0c7b538..0f246265ec 100644 --- a/sdk/constructive-cli/src/config/orm/models/platformInternalSecret.ts +++ b/sdk/constructive-cli/src/config/orm/models/platformInternalSecret.ts @@ -29,7 +29,6 @@ import type { PlatformInternalSecretSelect, PlatformInternalSecretFilter, PlatformInternalSecretOrderBy, - CreatePlatformInternalSecretInput, UpdatePlatformInternalSecretInput, PlatformInternalSecretPatch, } from '../input-types'; @@ -146,31 +145,4 @@ export class PlatformInternalSecretModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformInternalSecret: { - platformInternalSecret: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformInternalSecret', - 'createPlatformInternalSecret', - 'platformInternalSecret', - args.select, - args.data, - 'CreatePlatformInternalSecretInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformInternalSecret', - fieldName: 'createPlatformInternalSecret', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/config/orm/models/platformSecret.ts b/sdk/constructive-cli/src/config/orm/models/platformSecret.ts index 03c0e23540..4c51afe005 100644 --- a/sdk/constructive-cli/src/config/orm/models/platformSecret.ts +++ b/sdk/constructive-cli/src/config/orm/models/platformSecret.ts @@ -29,7 +29,6 @@ import type { PlatformSecretSelect, PlatformSecretFilter, PlatformSecretOrderBy, - CreatePlatformSecretInput, UpdatePlatformSecretInput, PlatformSecretPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class PlatformSecretModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformSecret: { - platformSecret: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformSecret', - 'createPlatformSecret', - 'platformSecret', - args.select, - args.data, - 'CreatePlatformSecretInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformSecret', - fieldName: 'createPlatformSecret', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/config/orm/models/secret.ts b/sdk/constructive-cli/src/config/orm/models/secret.ts index 37571240d8..580d275fdb 100644 --- a/sdk/constructive-cli/src/config/orm/models/secret.ts +++ b/sdk/constructive-cli/src/config/orm/models/secret.ts @@ -29,7 +29,6 @@ import type { SecretSelect, SecretFilter, SecretOrderBy, - CreateSecretInput, UpdateSecretInput, SecretPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class SecretModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createSecret: { - secret: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'Secret', - 'createSecret', - 'secret', - args.select, - args.data, - 'CreateSecretInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Secret', - fieldName: 'createSecret', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/infra/cli/README.md b/sdk/constructive-cli/src/infra/cli/README.md index ad1d69fee5..b4c79dda18 100644 --- a/sdk/constructive-cli/src/infra/cli/README.md +++ b/sdk/constructive-cli/src/infra/cli/README.md @@ -258,7 +258,6 @@ CRUD operations for PlatformInfraGetAllTreeNodesRecord records. | `list` | List all platformInfraGetAllTreeNodesRecord records | | `find-first` | Find first matching platformInfraGetAllTreeNodesRecord record | | `get` | Get a platformInfraGetAllTreeNodesRecord by id | -| `create` | Create a new platformInfraGetAllTreeNodesRecord | | `update` | Update an existing platformInfraGetAllTreeNodesRecord | | `delete` | Delete a platformInfraGetAllTreeNodesRecord | diff --git a/sdk/constructive-cli/src/infra/cli/commands/platform-infra-get-all-tree-nodes-record.ts b/sdk/constructive-cli/src/infra/cli/commands/platform-infra-get-all-tree-nodes-record.ts index 6283b9d768..6282f9ac8b 100644 --- a/sdk/constructive-cli/src/infra/cli/commands/platform-infra-get-all-tree-nodes-record.ts +++ b/sdk/constructive-cli/src/infra/cli/commands/platform-infra-get-all-tree-nodes-record.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreatePlatformInfraGetAllTreeNodesRecordInput, PlatformInfraGetAllTreeNodesRecordPatch, PlatformInfraGetAllTreeNodesRecordSelect, PlatformInfraGetAllTreeNodesRecordFilter, @@ -37,7 +36,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -54,8 +53,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -115,46 +112,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'json', - name: 'data', - message: 'data', - required: true, - }, - { - type: 'text', - name: 'path', - message: 'path', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreatePlatformInfraGetAllTreeNodesRecordInput['platformInfraGetAllTreeNodesRecord']; - const client = getClient(); - const result = await client.platformInfraGetAllTreeNodesRecord - .create({ - data: { - data: cleanedData.data, - path: cleanedData.path, - }, - select: { - data: true, - path: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/infra/orm/README.md b/sdk/constructive-cli/src/infra/orm/README.md index 63c0b0f3e5..82604daf03 100644 --- a/sdk/constructive-cli/src/infra/orm/README.md +++ b/sdk/constructive-cli/src/infra/orm/README.md @@ -26,7 +26,7 @@ const db = createClient({ | `namespace` | findMany, findOne, create, update, delete | | `namespaceEvent` | findMany, findOne, create, update, delete | | `platformInfraCommit` | findMany, findOne, create, update, delete | -| `platformInfraGetAllTreeNodesRecord` | findMany, findOne, create, update, delete | +| `platformInfraGetAllTreeNodesRecord` | findMany, findOne, update, delete | | `platformInfraObject` | findMany, findOne, create, update, delete | | `platformInfraRef` | findMany, findOne, create, update, delete | | `platformInfraStore` | findMany, findOne, create, update, delete | @@ -248,9 +248,6 @@ const items = await db.platformInfraGetAllTreeNodesRecord.findMany({ select: { d // Get one by id const item = await db.platformInfraGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); -// Create -const created = await db.platformInfraGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformInfraGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); diff --git a/sdk/constructive-cli/src/infra/orm/input-types.ts b/sdk/constructive-cli/src/infra/orm/input-types.ts index 10a6c604ec..498b6592bf 100644 --- a/sdk/constructive-cli/src/infra/orm/input-types.ts +++ b/sdk/constructive-cli/src/infra/orm/input-types.ts @@ -1245,13 +1245,6 @@ export interface DeletePlatformInfraCommitInput { clientMutationId?: string; id: string; } -export interface CreatePlatformInfraGetAllTreeNodesRecordInput { - clientMutationId?: string; - platformInfraGetAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; -} export interface PlatformInfraGetAllTreeNodesRecordPatch { data?: Record | null; path?: string[] | null; diff --git a/sdk/constructive-cli/src/infra/orm/models/platformInfraGetAllTreeNodesRecord.ts b/sdk/constructive-cli/src/infra/orm/models/platformInfraGetAllTreeNodesRecord.ts index e0e0a2aeaa..522c666bd3 100644 --- a/sdk/constructive-cli/src/infra/orm/models/platformInfraGetAllTreeNodesRecord.ts +++ b/sdk/constructive-cli/src/infra/orm/models/platformInfraGetAllTreeNodesRecord.ts @@ -29,7 +29,6 @@ import type { PlatformInfraGetAllTreeNodesRecordSelect, PlatformInfraGetAllTreeNodesRecordFilter, PlatformInfraGetAllTreeNodesRecordsOrderBy, - CreatePlatformInfraGetAllTreeNodesRecordInput, UpdatePlatformInfraGetAllTreeNodesRecordInput, PlatformInfraGetAllTreeNodesRecordPatch, } from '../input-types'; @@ -117,37 +116,4 @@ export class PlatformInfraGetAllTreeNodesRecordModel { }), }); } - create( - args: CreateArgs< - S, - CreatePlatformInfraGetAllTreeNodesRecordInput['platformInfraGetAllTreeNodesRecord'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformInfraGetAllTreeNodesRecord: { - platformInfraGetAllTreeNodesRecord: InferSelectResult< - PlatformInfraGetAllTreeNodesRecordWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformInfraGetAllTreeNodesRecord', - 'createPlatformInfraGetAllTreeNodesRecord', - 'platformInfraGetAllTreeNodesRecord', - args.select, - args.data, - 'CreatePlatformInfraGetAllTreeNodesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformInfraGetAllTreeNodesRecord', - fieldName: 'createPlatformInfraGetAllTreeNodesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/modules/cli/README.md b/sdk/constructive-cli/src/modules/cli/README.md index 1334f3510d..94370ac629 100644 --- a/sdk/constructive-cli/src/modules/cli/README.md +++ b/sdk/constructive-cli/src/modules/cli/README.md @@ -114,7 +114,7 @@ csdk auth set-token | `webauthn-auth-module` | webauthnAuthModule CRUD operations | | `webauthn-credentials-module` | webauthnCredentialsModule CRUD operations | | `webhook-module` | webhookModule CRUD operations | -| `construct-blueprint` | Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). A table entry either names its table (table_name plus optional schema_name) or references one an installed module generated ("module": {"type": "agent", "scope": "org", "table": "message"}), which resolves through the module row's recorded table ids and raises when it matches nothing instead of creating an empty table. After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID. A failure raises its coded error to the caller and rolls back the whole construction, including the construction record. | +| `construct-blueprint` | Requests a build of a blueprint: snapshots its definition into a pending blueprint_construction row, enqueues the blueprint:construct job that runs metaschema_private.construct_blueprint_run on it, and returns the construction id immediately. Poll the row: pending -> constructing -> constructed (table_map populated) or failed (error holds the coded error). schema_id is the default schema for tables without an explicit schema_name. | | `copy-template-to-blueprint` | Creates a new blueprint by copying a template definition. Checks visibility: owners can always copy their own templates, others require public visibility. Increments the template copy_count. Returns the new blueprint ID. | | `provision-bucket` | Reconcile an S3 bucket for a logical bucket in the database. Records the request on the bucket row via RLS; the bucket's job @@ -517,6 +517,7 @@ CRUD operations for BlueprintConstruction records. | `constructedDefinition` | JSON | | `createdAt` | Datetime | | `databaseId` | UUID | +| `error` | JSON | | `id` | UUID | | `schemaId` | UUID | | `status` | String | @@ -524,7 +525,7 @@ CRUD operations for BlueprintConstruction records. | `updatedAt` | Datetime | **Required create fields:** `blueprintId`, `databaseId` -**Optional create fields (backend defaults):** `constructedAt`, `constructedDefinition`, `schemaId`, `status`, `tableMap` +**Optional create fields (backend defaults):** `constructedAt`, `constructedDefinition`, `error`, `schemaId`, `status`, `tableMap` ### `blueprint-template` @@ -1157,6 +1158,8 @@ CRUD operations for DbUsageModule records. | `queryStatsLogTableName` | String | | `queryStatsSummaryTableId` | UUID | | `queryStatsSummaryTableName` | String | +| `readDbQueryStatsUsagePeriodFunction` | String | +| `readDbTableStatsUsagePeriodFunction` | String | | `retention` | String | | `rollupDbQueryStatsUsageSummaryFunction` | String | | `rollupDbTableStatsUsageSummaryFunction` | String | @@ -1168,7 +1171,7 @@ CRUD operations for DbUsageModule records. | `tableStatsSummaryTableName` | String | **Required create fields:** `databaseId`, `scope` -**Optional create fields (backend defaults):** `apiName`, `collectDbQueryStatsFunction`, `collectDbTableStatsFunction`, `defaultCapabilities`, `entityField`, `interval`, `prefix`, `premake`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `publicSchemaName`, `queryStatsLogTableId`, `queryStatsLogTableName`, `queryStatsSummaryTableId`, `queryStatsSummaryTableName`, `retention`, `rollupDbQueryStatsUsageSummaryFunction`, `rollupDbTableStatsUsageSummaryFunction`, `schemaId`, `tableStatsLogTableId`, `tableStatsLogTableName`, `tableStatsSummaryTableId`, `tableStatsSummaryTableName` +**Optional create fields (backend defaults):** `apiName`, `collectDbQueryStatsFunction`, `collectDbTableStatsFunction`, `defaultCapabilities`, `entityField`, `interval`, `prefix`, `premake`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `publicSchemaName`, `queryStatsLogTableId`, `queryStatsLogTableName`, `queryStatsSummaryTableId`, `queryStatsSummaryTableName`, `readDbQueryStatsUsagePeriodFunction`, `readDbTableStatsUsagePeriodFunction`, `retention`, `rollupDbQueryStatsUsageSummaryFunction`, `rollupDbTableStatsUsageSummaryFunction`, `schemaId`, `tableStatsLogTableId`, `tableStatsLogTableName`, `tableStatsSummaryTableId`, `tableStatsSummaryTableName` ### `default-ids-module` @@ -1274,6 +1277,7 @@ CRUD operations for DomainModule records. | `catalogModuleId` | UUID | | `databaseId` | UUID | | `defaultCapabilities` | String | +| `defaultReservedSubdomains` | JSON | | `domainEventsTableId` | UUID | | `domainEventsTableName` | String | | `domainVerificationsTableId` | UUID | @@ -1292,11 +1296,14 @@ CRUD operations for DomainModule records. | `privateSchemaName` | String | | `provisions` | JSON | | `publicSchemaName` | String | +| `reservedSubdomainsTableId` | UUID | +| `reservedSubdomainsTableName` | String | | `schemaId` | UUID | | `scope` | String | +| `sweepUnverifiedDomainsFunction` | String | **Required create fields:** `databaseId`, `scope` -**Optional create fields (backend defaults):** `apiName`, `catalogModuleId`, `defaultCapabilities`, `domainEventsTableId`, `domainEventsTableName`, `domainVerificationsTableId`, `domainVerificationsTableName`, `domainsTableId`, `domainsTableName`, `entityField`, `entityTableId`, `managedDomainsTableId`, `managedDomainsTableName`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `schemaId` +**Optional create fields (backend defaults):** `apiName`, `catalogModuleId`, `defaultCapabilities`, `defaultReservedSubdomains`, `domainEventsTableId`, `domainEventsTableName`, `domainVerificationsTableId`, `domainVerificationsTableName`, `domainsTableId`, `domainsTableName`, `entityField`, `entityTableId`, `managedDomainsTableId`, `managedDomainsTableName`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `reservedSubdomainsTableId`, `reservedSubdomainsTableName`, `schemaId`, `sweepUnverifiedDomainsFunction` ### `email-sender-module` @@ -3019,8 +3026,6 @@ CRUD operations for ResourceModule records. | Field | Type | |-------|------| | `apiName` | String | -| `builderBindingsTableId` | UUID | -| `builderBindingsTableName` | String | | `databaseId` | UUID | | `defaultCapabilities` | String | | `entityField` | String | @@ -3058,9 +3063,11 @@ CRUD operations for ResourceModule records. | `rollupResourceUsageSummaryFunction` | String | | `schemaId` | UUID | | `scope` | String | +| `serviceBindingsTableId` | UUID | +| `serviceBindingsTableName` | String | **Required create fields:** `databaseId`, `scope` -**Optional create fields (backend defaults):** `apiName`, `builderBindingsTableId`, `builderBindingsTableName`, `defaultCapabilities`, `entityField`, `entityTableId`, `installationStoreName`, `merkleStoreModuleId`, `namespaceModuleId`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `registryBindingsTableId`, `registryBindingsTableName`, `requirementsStateViewName`, `resolvedRequirementsViewName`, `resourceBillingRollupFunction`, `resourceDefinitionsTableId`, `resourceDefinitionsTableName`, `resourceEventsTableId`, `resourceEventsTableName`, `resourceInstallationsTableId`, `resourceInstallationsTableName`, `resourceStatusChecksTableId`, `resourceStatusChecksTableName`, `resourceUsageLogTableId`, `resourceUsageLogTableName`, `resourceUsageSummaryTableId`, `resourceUsageSummaryTableName`, `resourcesTableId`, `resourcesTableName`, `rollupResourceUsageSummaryFunction`, `schemaId` +**Optional create fields (backend defaults):** `apiName`, `defaultCapabilities`, `entityField`, `entityTableId`, `installationStoreName`, `merkleStoreModuleId`, `namespaceModuleId`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provisions`, `publicSchemaName`, `registryBindingsTableId`, `registryBindingsTableName`, `requirementsStateViewName`, `resolvedRequirementsViewName`, `resourceBillingRollupFunction`, `resourceDefinitionsTableId`, `resourceDefinitionsTableName`, `resourceEventsTableId`, `resourceEventsTableName`, `resourceInstallationsTableId`, `resourceInstallationsTableName`, `resourceStatusChecksTableId`, `resourceStatusChecksTableName`, `resourceUsageLogTableId`, `resourceUsageLogTableName`, `resourceUsageSummaryTableId`, `resourceUsageSummaryTableName`, `resourcesTableId`, `resourcesTableName`, `rollupResourceUsageSummaryFunction`, `schemaId`, `serviceBindingsTableId`, `serviceBindingsTableName` ### `rls-module` @@ -3350,6 +3357,7 @@ CRUD operations for StorageLogModule records. | `privateSchemaId` | UUID | | `privateSchemaName` | String | | `publicSchemaName` | String | +| `readStorageUsagePeriodFunction` | String | | `retention` | String | | `rollupFunctionName` | String | | `schemaId` | UUID | @@ -3360,7 +3368,7 @@ CRUD operations for StorageLogModule records. | `usageSummaryTableName` | String | **Required create fields:** `databaseId`, `scope` -**Optional create fields (backend defaults):** `apiName`, `entityField`, `interval`, `prefix`, `premake`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `publicSchemaName`, `retention`, `rollupFunctionName`, `schemaId`, `storageLogTableId`, `storageLogTableName`, `usageSummaryTableId`, `usageSummaryTableName` +**Optional create fields (backend defaults):** `apiName`, `entityField`, `interval`, `prefix`, `premake`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `publicSchemaName`, `readStorageUsagePeriodFunction`, `retention`, `rollupFunctionName`, `schemaId`, `storageLogTableId`, `storageLogTableName`, `usageSummaryTableId`, `usageSummaryTableName` ### `storage-module` @@ -3397,7 +3405,6 @@ CRUD operations for StorageModule records. | `filesTableId` | UUID | | `filesTableName` | String | | `hasAuditLog` | Boolean | -| `hasConfirmUpload` | Boolean | | `hasContentHash` | Boolean | | `hasCustomKeys` | Boolean | | `hasPathShares` | Boolean | @@ -3424,7 +3431,7 @@ CRUD operations for StorageModule records. | `uploadUrlExpirySeconds` | Int | **Required create fields:** `databaseId`, `scope` -**Optional create fields (backend defaults):** `allowedOrigins`, `apiName`, `bucketsTableId`, `bucketsTableName`, `cacheTtlSeconds`, `catalogModuleId`, `confirmUploadDelay`, `defaultCapabilities`, `defaultMaxFileSize`, `downloadUrlExpirySeconds`, `endpoint`, `entityField`, `entityTableId`, `fileEventsTableId`, `filesTableId`, `filesTableName`, `hasAuditLog`, `hasConfirmUpload`, `hasContentHash`, `hasCustomKeys`, `hasPathShares`, `hasVersioning`, `key`, `maxBulkFiles`, `maxBulkTotalSize`, `maxFilenameLength`, `pathSharesTableId`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provider`, `provisions`, `publicSchemaName`, `publicUrlPrefix`, `region`, `restrictReads`, `schemaId`, `uploadUrlExpirySeconds` +**Optional create fields (backend defaults):** `allowedOrigins`, `apiName`, `bucketsTableId`, `bucketsTableName`, `cacheTtlSeconds`, `catalogModuleId`, `confirmUploadDelay`, `defaultCapabilities`, `defaultMaxFileSize`, `downloadUrlExpirySeconds`, `endpoint`, `entityField`, `entityTableId`, `fileEventsTableId`, `filesTableId`, `filesTableName`, `hasAuditLog`, `hasContentHash`, `hasCustomKeys`, `hasPathShares`, `hasVersioning`, `key`, `maxBulkFiles`, `maxBulkTotalSize`, `maxFilenameLength`, `pathSharesTableId`, `policies`, `prefix`, `privateApiName`, `privateSchemaId`, `privateSchemaName`, `provider`, `provisions`, `publicSchemaName`, `publicUrlPrefix`, `region`, `restrictReads`, `schemaId`, `uploadUrlExpirySeconds` ### `transfer-log-module` @@ -3775,7 +3782,7 @@ CRUD operations for WebhookModule records. ### `construct-blueprint` -Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). A table entry either names its table (table_name plus optional schema_name) or references one an installed module generated ("module": {"type": "agent", "scope": "org", "table": "message"}), which resolves through the module row's recorded table ids and raises when it matches nothing instead of creating an empty table. After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID. A failure raises its coded error to the caller and rolls back the whole construction, including the construction record. +Requests a build of a blueprint: snapshots its definition into a pending blueprint_construction row, enqueues the blueprint:construct job that runs metaschema_private.construct_blueprint_run on it, and returns the construction id immediately. Poll the row: pending -> constructing -> constructed (table_map populated) or failed (error holds the coded error). schema_id is the default schema for tables without an explicit schema_name. - **Type:** mutation - **Arguments:** diff --git a/sdk/constructive-cli/src/modules/cli/commands.ts b/sdk/constructive-cli/src/modules/cli/commands.ts index 3f3384e5d4..f036b3b1a9 100644 --- a/sdk/constructive-cli/src/modules/cli/commands.ts +++ b/sdk/constructive-cli/src/modules/cli/commands.ts @@ -200,7 +200,7 @@ const createCommandMap: () => Record< 'provision-bucket': provisionBucketCmd, }); const usage = - '\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n agent-module agentModule CRUD operations\n api-surface-module apiSurfaceModule CRUD operations\n app-module appModule CRUD operations\n billing-module billingModule CRUD operations\n billing-provider-module billingProviderModule CRUD operations\n blueprint blueprint CRUD operations\n blueprint-construction blueprintConstruction CRUD operations\n blueprint-template blueprintTemplate CRUD operations\n capabilities-module capabilitiesModule CRUD operations\n catalog-module catalogModule CRUD operations\n cluster-module clusterModule CRUD operations\n compute-log-module computeLogModule CRUD operations\n connected-accounts-module connectedAccountsModule CRUD operations\n content-preset-module contentPresetModule CRUD operations\n crypto-addresses-module cryptoAddressesModule CRUD operations\n crypto-auth-module cryptoAuthModule CRUD operations\n data-capabilities-field dataCapabilitiesField CRUD operations\n database-provision-module databaseProvisionModule CRUD operations\n database-settings-module databaseSettingsModule CRUD operations\n db-pool-config dbPoolConfig CRUD operations\n db-pool dbPool CRUD operations\n db-preset-module dbPresetModule CRUD operations\n db-usage-module dbUsageModule CRUD operations\n default-ids-module defaultIdsModule CRUD operations\n denormalized-table-field denormalizedTableField CRUD operations\n devices-module devicesModule CRUD operations\n domain-module domainModule CRUD operations\n email-sender-module emailSenderModule CRUD operations\n emails-module emailsModule CRUD operations\n entity-type-provision entityTypeProvision CRUD operations\n events-module eventsModule CRUD operations\n file-ref-field fileRefField CRUD operations\n function-deployment-module functionDeploymentModule CRUD operations\n function-invocation-module functionInvocationModule CRUD operations\n function-module functionModule CRUD operations\n graph-execution-module graphExecutionModule CRUD operations\n graph-module graphModule CRUD operations\n hierarchy-module hierarchyModule CRUD operations\n i-18-n-module i18NModule CRUD operations\n identity-providers-module identityProvidersModule CRUD operations\n image-module imageModule CRUD operations\n inference-log-module inferenceLogModule CRUD operations\n infra-config-module infraConfigModule CRUD operations\n infra-secrets-module infraSecretsModule CRUD operations\n integration-providers-module integrationProvidersModule CRUD operations\n internal-config-module internalConfigModule CRUD operations\n internal-secrets-module internalSecretsModule CRUD operations\n invites-module invitesModule CRUD operations\n k-8-s-admission-module k8sAdmissionModule CRUD operations\n limits-module limitsModule CRUD operations\n machine-module machineModule CRUD operations\n membership-types-module membershipTypesModule CRUD operations\n memberships-module membershipsModule CRUD operations\n merkle-store-module merkleStoreModule CRUD operations\n namespace-module namespaceModule CRUD operations\n notifications-module notificationsModule CRUD operations\n oauth-requests-module oauthRequestsModule CRUD operations\n pages-module pagesModule CRUD operations\n phone-numbers-module phoneNumbersModule CRUD operations\n plans-module plansModule CRUD operations\n principal-auth-module principalAuthModule CRUD operations\n profiles-module profilesModule CRUD operations\n rate-limit-meters-module rateLimitMetersModule CRUD operations\n rate-limits-module rateLimitsModule CRUD operations\n realtime-module realtimeModule CRUD operations\n refusal-log-module refusalLogModule CRUD operations\n relation-provision relationProvision CRUD operations\n repository-module repositoryModule CRUD operations\n resource-module resourceModule CRUD operations\n rls-module rlsModule CRUD operations\n route-module routeModule CRUD operations\n scope-types-module scopeTypesModule CRUD operations\n secure-table-provision secureTableProvision CRUD operations\n session-secrets-module sessionSecretsModule CRUD operations\n sessions-module sessionsModule CRUD operations\n site-surface-module siteSurfaceModule CRUD operations\n storage-log-module storageLogModule CRUD operations\n storage-module storageModule CRUD operations\n transfer-log-module transferLogModule CRUD operations\n user-auth-module userAuthModule CRUD operations\n user-credentials-module userCredentialsModule CRUD operations\n user-settings-module userSettingsModule CRUD operations\n user-settings-security-module userSettingsSecurityModule CRUD operations\n user-state-module userStateModule CRUD operations\n users-module usersModule CRUD operations\n webauthn-auth-module webauthnAuthModule CRUD operations\n webauthn-credentials-module webauthnCredentialsModule CRUD operations\n webhook-module webhookModule CRUD operations\n construct-blueprint Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry \u2014 provisions entity tables, membership modules, and security. When a prefix already exists (e.g., \'org\'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope (\'app\' or \'org\' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). A table entry either names its table (table_name plus optional schema_name) or references one an installed module generated ("module": {"type": "agent", "scope": "org", "table": "message"}), which resolves through the module row\'s recorded table ids and raises when it matches nothing instead of creating an empty table. After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] \u2014 resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID. A failure raises its coded error to the caller and rolls back the whole construction, including the construction record.\n copy-template-to-blueprint Creates a new blueprint by copying a template definition. Checks visibility: owners can always copy their own templates, others require public visibility. Increments the template copy_count. Returns the new blueprint ID.\n provision-bucket Reconcile an S3 bucket for a logical bucket in the database.\nRecords the request on the bucket row via RLS; the bucket\'s job\ntrigger then enqueues the same storage:provision_bucket job used on\nINSERT, and repeated requests collapse into one pending job. This is\nidempotent for an already-reconciled bucket; failures become GraphQL\nerrors.\n\n --help, -h Show this help message\n --version, -v Show version\n'; + "\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n agent-module agentModule CRUD operations\n api-surface-module apiSurfaceModule CRUD operations\n app-module appModule CRUD operations\n billing-module billingModule CRUD operations\n billing-provider-module billingProviderModule CRUD operations\n blueprint blueprint CRUD operations\n blueprint-construction blueprintConstruction CRUD operations\n blueprint-template blueprintTemplate CRUD operations\n capabilities-module capabilitiesModule CRUD operations\n catalog-module catalogModule CRUD operations\n cluster-module clusterModule CRUD operations\n compute-log-module computeLogModule CRUD operations\n connected-accounts-module connectedAccountsModule CRUD operations\n content-preset-module contentPresetModule CRUD operations\n crypto-addresses-module cryptoAddressesModule CRUD operations\n crypto-auth-module cryptoAuthModule CRUD operations\n data-capabilities-field dataCapabilitiesField CRUD operations\n database-provision-module databaseProvisionModule CRUD operations\n database-settings-module databaseSettingsModule CRUD operations\n db-pool-config dbPoolConfig CRUD operations\n db-pool dbPool CRUD operations\n db-preset-module dbPresetModule CRUD operations\n db-usage-module dbUsageModule CRUD operations\n default-ids-module defaultIdsModule CRUD operations\n denormalized-table-field denormalizedTableField CRUD operations\n devices-module devicesModule CRUD operations\n domain-module domainModule CRUD operations\n email-sender-module emailSenderModule CRUD operations\n emails-module emailsModule CRUD operations\n entity-type-provision entityTypeProvision CRUD operations\n events-module eventsModule CRUD operations\n file-ref-field fileRefField CRUD operations\n function-deployment-module functionDeploymentModule CRUD operations\n function-invocation-module functionInvocationModule CRUD operations\n function-module functionModule CRUD operations\n graph-execution-module graphExecutionModule CRUD operations\n graph-module graphModule CRUD operations\n hierarchy-module hierarchyModule CRUD operations\n i-18-n-module i18NModule CRUD operations\n identity-providers-module identityProvidersModule CRUD operations\n image-module imageModule CRUD operations\n inference-log-module inferenceLogModule CRUD operations\n infra-config-module infraConfigModule CRUD operations\n infra-secrets-module infraSecretsModule CRUD operations\n integration-providers-module integrationProvidersModule CRUD operations\n internal-config-module internalConfigModule CRUD operations\n internal-secrets-module internalSecretsModule CRUD operations\n invites-module invitesModule CRUD operations\n k-8-s-admission-module k8sAdmissionModule CRUD operations\n limits-module limitsModule CRUD operations\n machine-module machineModule CRUD operations\n membership-types-module membershipTypesModule CRUD operations\n memberships-module membershipsModule CRUD operations\n merkle-store-module merkleStoreModule CRUD operations\n namespace-module namespaceModule CRUD operations\n notifications-module notificationsModule CRUD operations\n oauth-requests-module oauthRequestsModule CRUD operations\n pages-module pagesModule CRUD operations\n phone-numbers-module phoneNumbersModule CRUD operations\n plans-module plansModule CRUD operations\n principal-auth-module principalAuthModule CRUD operations\n profiles-module profilesModule CRUD operations\n rate-limit-meters-module rateLimitMetersModule CRUD operations\n rate-limits-module rateLimitsModule CRUD operations\n realtime-module realtimeModule CRUD operations\n refusal-log-module refusalLogModule CRUD operations\n relation-provision relationProvision CRUD operations\n repository-module repositoryModule CRUD operations\n resource-module resourceModule CRUD operations\n rls-module rlsModule CRUD operations\n route-module routeModule CRUD operations\n scope-types-module scopeTypesModule CRUD operations\n secure-table-provision secureTableProvision CRUD operations\n session-secrets-module sessionSecretsModule CRUD operations\n sessions-module sessionsModule CRUD operations\n site-surface-module siteSurfaceModule CRUD operations\n storage-log-module storageLogModule CRUD operations\n storage-module storageModule CRUD operations\n transfer-log-module transferLogModule CRUD operations\n user-auth-module userAuthModule CRUD operations\n user-credentials-module userCredentialsModule CRUD operations\n user-settings-module userSettingsModule CRUD operations\n user-settings-security-module userSettingsSecurityModule CRUD operations\n user-state-module userStateModule CRUD operations\n users-module usersModule CRUD operations\n webauthn-auth-module webauthnAuthModule CRUD operations\n webauthn-credentials-module webauthnCredentialsModule CRUD operations\n webhook-module webhookModule CRUD operations\n construct-blueprint Requests a build of a blueprint: snapshots its definition into a pending blueprint_construction row, enqueues the blueprint:construct job that runs metaschema_private.construct_blueprint_run on it, and returns the construction id immediately. Poll the row: pending -> constructing -> constructed (table_map populated) or failed (error holds the coded error). schema_id is the default schema for tables without an explicit schema_name.\n copy-template-to-blueprint Creates a new blueprint by copying a template definition. Checks visibility: owners can always copy their own templates, others require public visibility. Increments the template copy_count. Returns the new blueprint ID.\n provision-bucket Reconcile an S3 bucket for a logical bucket in the database.\nRecords the request on the bucket row via RLS; the bucket's job\ntrigger then enqueues the same storage:provision_bucket job used on\nINSERT, and repeated requests collapse into one pending job. This is\nidempotent for an already-reconciled bucket; failures become GraphQL\nerrors.\n\n --help, -h Show this help message\n --version, -v Show version\n"; export const commands = async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-cli/src/modules/cli/commands/blueprint-construction.ts b/sdk/constructive-cli/src/modules/cli/commands/blueprint-construction.ts index 0a5f93fccd..fdb653770f 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/blueprint-construction.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/blueprint-construction.ts @@ -21,6 +21,7 @@ const fieldSchema: FieldSchema = { constructedDefinition: 'json', createdAt: 'string', databaseId: 'uuid', + error: 'json', id: 'uuid', schemaId: 'uuid', status: 'string', @@ -83,6 +84,7 @@ async function handleList(argv: Partial>, _prompter: Inq constructedDefinition: true, createdAt: true, databaseId: true, + error: true, id: true, schemaId: true, status: true, @@ -117,6 +119,7 @@ async function handleFindFirst(argv: Partial>, _prompter constructedDefinition: true, createdAt: true, databaseId: true, + error: true, id: true, schemaId: true, status: true, @@ -163,6 +166,7 @@ async function handleGet(argv: Partial>, prompter: Inqui constructedDefinition: true, createdAt: true, databaseId: true, + error: true, id: true, schemaId: true, status: true, @@ -209,6 +213,13 @@ async function handleCreate(argv: Partial>, prompter: In message: 'databaseId', required: true, }, + { + type: 'json', + name: 'error', + message: 'error', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -244,6 +255,7 @@ async function handleCreate(argv: Partial>, prompter: In constructedAt: cleanedData.constructedAt, constructedDefinition: cleanedData.constructedDefinition, databaseId: cleanedData.databaseId, + error: cleanedData.error, schemaId: cleanedData.schemaId, status: cleanedData.status, tableMap: cleanedData.tableMap, @@ -254,6 +266,7 @@ async function handleCreate(argv: Partial>, prompter: In constructedDefinition: true, createdAt: true, databaseId: true, + error: true, id: true, schemaId: true, status: true, @@ -306,6 +319,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'databaseId', required: false, }, + { + type: 'json', + name: 'error', + message: 'error', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -341,6 +361,7 @@ async function handleUpdate(argv: Partial>, prompter: In constructedAt: cleanedData.constructedAt, constructedDefinition: cleanedData.constructedDefinition, databaseId: cleanedData.databaseId, + error: cleanedData.error, schemaId: cleanedData.schemaId, status: cleanedData.status, tableMap: cleanedData.tableMap, @@ -351,6 +372,7 @@ async function handleUpdate(argv: Partial>, prompter: In constructedDefinition: true, createdAt: true, databaseId: true, + error: true, id: true, schemaId: true, status: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/construct-blueprint.ts b/sdk/constructive-cli/src/modules/cli/commands/construct-blueprint.ts index da487655b6..65bec14a7a 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/construct-blueprint.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/construct-blueprint.ts @@ -16,7 +16,7 @@ export default async ( try { if (argv.help || argv.h) { console.log( - 'construct-blueprint - Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry \u2014 provisions entity tables, membership modules, and security. When a prefix already exists (e.g., \'org\'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope (\'app\' or \'org\' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). A table entry either names its table (table_name plus optional schema_name) or references one an installed module generated ("module": {"type": "agent", "scope": "org", "table": "message"}), which resolves through the module row\'s recorded table ids and raises when it matches nothing instead of creating an empty table. After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] \u2014 resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID. A failure raises its coded error to the caller and rolls back the whole construction, including the construction record.\n\nUsage: construct-blueprint [OPTIONS]\n' + 'construct-blueprint - Requests a build of a blueprint: snapshots its definition into a pending blueprint_construction row, enqueues the blueprint:construct job that runs metaschema_private.construct_blueprint_run on it, and returns the construction id immediately. Poll the row: pending -> constructing -> constructed (table_map populated) or failed (error holds the coded error). schema_id is the default schema for tables without an explicit schema_name.\n\nUsage: construct-blueprint [OPTIONS]\n' ); process.exit(0); } diff --git a/sdk/constructive-cli/src/modules/cli/commands/db-usage-module.ts b/sdk/constructive-cli/src/modules/cli/commands/db-usage-module.ts index 491f743647..268e32f222 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/db-usage-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/db-usage-module.ts @@ -34,6 +34,8 @@ const fieldSchema: FieldSchema = { queryStatsLogTableName: 'string', queryStatsSummaryTableId: 'uuid', queryStatsSummaryTableName: 'string', + readDbQueryStatsUsagePeriodFunction: 'string', + readDbTableStatsUsagePeriodFunction: 'string', retention: 'string', rollupDbQueryStatsUsageSummaryFunction: 'string', rollupDbTableStatsUsageSummaryFunction: 'string', @@ -113,6 +115,8 @@ async function handleList(argv: Partial>, _prompter: Inq queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, + readDbQueryStatsUsagePeriodFunction: true, + readDbTableStatsUsagePeriodFunction: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, @@ -160,6 +164,8 @@ async function handleFindFirst(argv: Partial>, _prompter queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, + readDbQueryStatsUsagePeriodFunction: true, + readDbTableStatsUsagePeriodFunction: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, @@ -219,6 +225,8 @@ async function handleGet(argv: Partial>, prompter: Inqui queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, + readDbQueryStatsUsagePeriodFunction: true, + readDbTableStatsUsagePeriodFunction: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, @@ -361,6 +369,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'readDbQueryStatsUsagePeriodFunction', + message: 'readDbQueryStatsUsagePeriodFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'readDbTableStatsUsagePeriodFunction', + message: 'readDbTableStatsUsagePeriodFunction', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'retention', @@ -450,6 +472,8 @@ async function handleCreate(argv: Partial>, prompter: In queryStatsLogTableName: cleanedData.queryStatsLogTableName, queryStatsSummaryTableId: cleanedData.queryStatsSummaryTableId, queryStatsSummaryTableName: cleanedData.queryStatsSummaryTableName, + readDbQueryStatsUsagePeriodFunction: cleanedData.readDbQueryStatsUsagePeriodFunction, + readDbTableStatsUsagePeriodFunction: cleanedData.readDbTableStatsUsagePeriodFunction, retention: cleanedData.retention, rollupDbQueryStatsUsageSummaryFunction: cleanedData.rollupDbQueryStatsUsageSummaryFunction, @@ -481,6 +505,8 @@ async function handleCreate(argv: Partial>, prompter: In queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, + readDbQueryStatsUsagePeriodFunction: true, + readDbTableStatsUsagePeriodFunction: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, @@ -629,6 +655,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'readDbQueryStatsUsagePeriodFunction', + message: 'readDbQueryStatsUsagePeriodFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'readDbTableStatsUsagePeriodFunction', + message: 'readDbTableStatsUsagePeriodFunction', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'retention', @@ -718,6 +758,8 @@ async function handleUpdate(argv: Partial>, prompter: In queryStatsLogTableName: cleanedData.queryStatsLogTableName, queryStatsSummaryTableId: cleanedData.queryStatsSummaryTableId, queryStatsSummaryTableName: cleanedData.queryStatsSummaryTableName, + readDbQueryStatsUsagePeriodFunction: cleanedData.readDbQueryStatsUsagePeriodFunction, + readDbTableStatsUsagePeriodFunction: cleanedData.readDbTableStatsUsagePeriodFunction, retention: cleanedData.retention, rollupDbQueryStatsUsageSummaryFunction: cleanedData.rollupDbQueryStatsUsageSummaryFunction, @@ -749,6 +791,8 @@ async function handleUpdate(argv: Partial>, prompter: In queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, + readDbQueryStatsUsagePeriodFunction: true, + readDbTableStatsUsagePeriodFunction: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/domain-module.ts b/sdk/constructive-cli/src/modules/cli/commands/domain-module.ts index 5b7d9e2ed3..316a21c2e3 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/domain-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/domain-module.ts @@ -20,6 +20,7 @@ const fieldSchema: FieldSchema = { catalogModuleId: 'uuid', databaseId: 'uuid', defaultCapabilities: 'string', + defaultReservedSubdomains: 'json', domainEventsTableId: 'uuid', domainEventsTableName: 'string', domainVerificationsTableId: 'uuid', @@ -38,8 +39,11 @@ const fieldSchema: FieldSchema = { privateSchemaName: 'string', provisions: 'json', publicSchemaName: 'string', + reservedSubdomainsTableId: 'uuid', + reservedSubdomainsTableName: 'string', schemaId: 'uuid', scope: 'string', + sweepUnverifiedDomainsFunction: 'string', }; const usage = '\ndomain-module \n\nCommands:\n list List domainModule records\n find-first Find first matching domainModule record\n get Get a domainModule by ID\n create Create a new domainModule\n update Update an existing domainModule\n delete Delete a domainModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; @@ -96,6 +100,7 @@ async function handleList(argv: Partial>, _prompter: Inq catalogModuleId: true, databaseId: true, defaultCapabilities: true, + defaultReservedSubdomains: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, @@ -114,8 +119,11 @@ async function handleList(argv: Partial>, _prompter: Inq privateSchemaName: true, provisions: true, publicSchemaName: true, + reservedSubdomainsTableId: true, + reservedSubdomainsTableName: true, schemaId: true, scope: true, + sweepUnverifiedDomainsFunction: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -140,6 +148,7 @@ async function handleFindFirst(argv: Partial>, _prompter catalogModuleId: true, databaseId: true, defaultCapabilities: true, + defaultReservedSubdomains: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, @@ -158,8 +167,11 @@ async function handleFindFirst(argv: Partial>, _prompter privateSchemaName: true, provisions: true, publicSchemaName: true, + reservedSubdomainsTableId: true, + reservedSubdomainsTableName: true, schemaId: true, scope: true, + sweepUnverifiedDomainsFunction: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -196,6 +208,7 @@ async function handleGet(argv: Partial>, prompter: Inqui catalogModuleId: true, databaseId: true, defaultCapabilities: true, + defaultReservedSubdomains: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, @@ -214,8 +227,11 @@ async function handleGet(argv: Partial>, prompter: Inqui privateSchemaName: true, provisions: true, publicSchemaName: true, + reservedSubdomainsTableId: true, + reservedSubdomainsTableName: true, schemaId: true, scope: true, + sweepUnverifiedDomainsFunction: true, }, }) .execute(); @@ -258,6 +274,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'json', + name: 'defaultReservedSubdomains', + message: 'defaultReservedSubdomains', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'domainEventsTableId', @@ -377,6 +400,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'reservedSubdomainsTableId', + message: 'reservedSubdomainsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'reservedSubdomainsTableName', + message: 'reservedSubdomainsTableName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -390,6 +427,13 @@ async function handleCreate(argv: Partial>, prompter: In message: 'scope', required: true, }, + { + type: 'text', + name: 'sweepUnverifiedDomainsFunction', + message: 'sweepUnverifiedDomainsFunction', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -404,6 +448,7 @@ async function handleCreate(argv: Partial>, prompter: In catalogModuleId: cleanedData.catalogModuleId, databaseId: cleanedData.databaseId, defaultCapabilities: cleanedData.defaultCapabilities, + defaultReservedSubdomains: cleanedData.defaultReservedSubdomains, domainEventsTableId: cleanedData.domainEventsTableId, domainEventsTableName: cleanedData.domainEventsTableName, domainVerificationsTableId: cleanedData.domainVerificationsTableId, @@ -421,14 +466,18 @@ async function handleCreate(argv: Partial>, prompter: In privateSchemaName: cleanedData.privateSchemaName, provisions: cleanedData.provisions, publicSchemaName: cleanedData.publicSchemaName, + reservedSubdomainsTableId: cleanedData.reservedSubdomainsTableId, + reservedSubdomainsTableName: cleanedData.reservedSubdomainsTableName, schemaId: cleanedData.schemaId, scope: cleanedData.scope, + sweepUnverifiedDomainsFunction: cleanedData.sweepUnverifiedDomainsFunction, }, select: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, + defaultReservedSubdomains: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, @@ -447,8 +496,11 @@ async function handleCreate(argv: Partial>, prompter: In privateSchemaName: true, provisions: true, publicSchemaName: true, + reservedSubdomainsTableId: true, + reservedSubdomainsTableName: true, schemaId: true, scope: true, + sweepUnverifiedDomainsFunction: true, }, }) .execute(); @@ -497,6 +549,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'json', + name: 'defaultReservedSubdomains', + message: 'defaultReservedSubdomains', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'domainEventsTableId', @@ -616,6 +675,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'reservedSubdomainsTableId', + message: 'reservedSubdomainsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'reservedSubdomainsTableName', + message: 'reservedSubdomainsTableName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'schemaId', @@ -629,6 +702,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'scope', required: false, }, + { + type: 'text', + name: 'sweepUnverifiedDomainsFunction', + message: 'sweepUnverifiedDomainsFunction', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as DomainModulePatch; @@ -643,6 +723,7 @@ async function handleUpdate(argv: Partial>, prompter: In catalogModuleId: cleanedData.catalogModuleId, databaseId: cleanedData.databaseId, defaultCapabilities: cleanedData.defaultCapabilities, + defaultReservedSubdomains: cleanedData.defaultReservedSubdomains, domainEventsTableId: cleanedData.domainEventsTableId, domainEventsTableName: cleanedData.domainEventsTableName, domainVerificationsTableId: cleanedData.domainVerificationsTableId, @@ -660,14 +741,18 @@ async function handleUpdate(argv: Partial>, prompter: In privateSchemaName: cleanedData.privateSchemaName, provisions: cleanedData.provisions, publicSchemaName: cleanedData.publicSchemaName, + reservedSubdomainsTableId: cleanedData.reservedSubdomainsTableId, + reservedSubdomainsTableName: cleanedData.reservedSubdomainsTableName, schemaId: cleanedData.schemaId, scope: cleanedData.scope, + sweepUnverifiedDomainsFunction: cleanedData.sweepUnverifiedDomainsFunction, }, select: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, + defaultReservedSubdomains: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, @@ -686,8 +771,11 @@ async function handleUpdate(argv: Partial>, prompter: In privateSchemaName: true, provisions: true, publicSchemaName: true, + reservedSubdomainsTableId: true, + reservedSubdomainsTableName: true, schemaId: true, scope: true, + sweepUnverifiedDomainsFunction: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/modules/cli/commands/resource-module.ts b/sdk/constructive-cli/src/modules/cli/commands/resource-module.ts index 50621949a7..7466f15d8f 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/resource-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/resource-module.ts @@ -17,8 +17,6 @@ import type { import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { apiName: 'string', - builderBindingsTableId: 'uuid', - builderBindingsTableName: 'string', databaseId: 'uuid', defaultCapabilities: 'string', entityField: 'string', @@ -56,6 +54,8 @@ const fieldSchema: FieldSchema = { rollupResourceUsageSummaryFunction: 'string', schemaId: 'uuid', scope: 'string', + serviceBindingsTableId: 'uuid', + serviceBindingsTableName: 'string', }; const usage = '\nresource-module \n\nCommands:\n list List resourceModule records\n find-first Find first matching resourceModule record\n get Get a resourceModule by ID\n create Create a new resourceModule\n update Update an existing resourceModule\n delete Delete a resourceModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; @@ -109,8 +109,6 @@ async function handleList(argv: Partial>, _prompter: Inq try { const defaultSelect = { apiName: true, - builderBindingsTableId: true, - builderBindingsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, @@ -148,6 +146,8 @@ async function handleList(argv: Partial>, _prompter: Inq rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true, + serviceBindingsTableId: true, + serviceBindingsTableName: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -169,8 +169,6 @@ async function handleFindFirst(argv: Partial>, _prompter try { const defaultSelect = { apiName: true, - builderBindingsTableId: true, - builderBindingsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, @@ -208,6 +206,8 @@ async function handleFindFirst(argv: Partial>, _prompter rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true, + serviceBindingsTableId: true, + serviceBindingsTableName: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -241,8 +241,6 @@ async function handleGet(argv: Partial>, prompter: Inqui id: answers.id as string, select: { apiName: true, - builderBindingsTableId: true, - builderBindingsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, @@ -280,6 +278,8 @@ async function handleGet(argv: Partial>, prompter: Inqui rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true, + serviceBindingsTableId: true, + serviceBindingsTableName: true, }, }) .execute(); @@ -302,20 +302,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'builderBindingsTableId', - message: 'builderBindingsTableId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'builderBindingsTableName', - message: 'builderBindingsTableName', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'databaseId', @@ -566,6 +552,20 @@ async function handleCreate(argv: Partial>, prompter: In message: 'scope', required: true, }, + { + type: 'text', + name: 'serviceBindingsTableId', + message: 'serviceBindingsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'serviceBindingsTableName', + message: 'serviceBindingsTableName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -577,8 +577,6 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { apiName: cleanedData.apiName, - builderBindingsTableId: cleanedData.builderBindingsTableId, - builderBindingsTableName: cleanedData.builderBindingsTableName, databaseId: cleanedData.databaseId, defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, @@ -615,11 +613,11 @@ async function handleCreate(argv: Partial>, prompter: In rollupResourceUsageSummaryFunction: cleanedData.rollupResourceUsageSummaryFunction, schemaId: cleanedData.schemaId, scope: cleanedData.scope, + serviceBindingsTableId: cleanedData.serviceBindingsTableId, + serviceBindingsTableName: cleanedData.serviceBindingsTableName, }, select: { apiName: true, - builderBindingsTableId: true, - builderBindingsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, @@ -657,6 +655,8 @@ async function handleCreate(argv: Partial>, prompter: In rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true, + serviceBindingsTableId: true, + serviceBindingsTableName: true, }, }) .execute(); @@ -685,20 +685,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'builderBindingsTableId', - message: 'builderBindingsTableId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'builderBindingsTableName', - message: 'builderBindingsTableName', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'databaseId', @@ -949,6 +935,20 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'scope', required: false, }, + { + type: 'text', + name: 'serviceBindingsTableId', + message: 'serviceBindingsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'serviceBindingsTableName', + message: 'serviceBindingsTableName', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as ResourceModulePatch; @@ -960,8 +960,6 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { apiName: cleanedData.apiName, - builderBindingsTableId: cleanedData.builderBindingsTableId, - builderBindingsTableName: cleanedData.builderBindingsTableName, databaseId: cleanedData.databaseId, defaultCapabilities: cleanedData.defaultCapabilities, entityField: cleanedData.entityField, @@ -998,11 +996,11 @@ async function handleUpdate(argv: Partial>, prompter: In rollupResourceUsageSummaryFunction: cleanedData.rollupResourceUsageSummaryFunction, schemaId: cleanedData.schemaId, scope: cleanedData.scope, + serviceBindingsTableId: cleanedData.serviceBindingsTableId, + serviceBindingsTableName: cleanedData.serviceBindingsTableName, }, select: { apiName: true, - builderBindingsTableId: true, - builderBindingsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, @@ -1040,6 +1038,8 @@ async function handleUpdate(argv: Partial>, prompter: In rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true, + serviceBindingsTableId: true, + serviceBindingsTableName: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/modules/cli/commands/storage-log-module.ts b/sdk/constructive-cli/src/modules/cli/commands/storage-log-module.ts index 8f7e1acda4..cca4511736 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/storage-log-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/storage-log-module.ts @@ -27,6 +27,7 @@ const fieldSchema: FieldSchema = { privateSchemaId: 'uuid', privateSchemaName: 'string', publicSchemaName: 'string', + readStorageUsagePeriodFunction: 'string', retention: 'string', rollupFunctionName: 'string', schemaId: 'uuid', @@ -98,6 +99,7 @@ async function handleList(argv: Partial>, _prompter: Inq privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, + readStorageUsagePeriodFunction: true, retention: true, rollupFunctionName: true, schemaId: true, @@ -137,6 +139,7 @@ async function handleFindFirst(argv: Partial>, _prompter privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, + readStorageUsagePeriodFunction: true, retention: true, rollupFunctionName: true, schemaId: true, @@ -188,6 +191,7 @@ async function handleGet(argv: Partial>, prompter: Inqui privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, + readStorageUsagePeriodFunction: true, retention: true, rollupFunctionName: true, schemaId: true, @@ -280,6 +284,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'readStorageUsagePeriodFunction', + message: 'readStorageUsagePeriodFunction', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'retention', @@ -355,6 +366,7 @@ async function handleCreate(argv: Partial>, prompter: In privateSchemaId: cleanedData.privateSchemaId, privateSchemaName: cleanedData.privateSchemaName, publicSchemaName: cleanedData.publicSchemaName, + readStorageUsagePeriodFunction: cleanedData.readStorageUsagePeriodFunction, retention: cleanedData.retention, rollupFunctionName: cleanedData.rollupFunctionName, schemaId: cleanedData.schemaId, @@ -376,6 +388,7 @@ async function handleCreate(argv: Partial>, prompter: In privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, + readStorageUsagePeriodFunction: true, retention: true, rollupFunctionName: true, schemaId: true, @@ -474,6 +487,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'readStorageUsagePeriodFunction', + message: 'readStorageUsagePeriodFunction', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'retention', @@ -549,6 +569,7 @@ async function handleUpdate(argv: Partial>, prompter: In privateSchemaId: cleanedData.privateSchemaId, privateSchemaName: cleanedData.privateSchemaName, publicSchemaName: cleanedData.publicSchemaName, + readStorageUsagePeriodFunction: cleanedData.readStorageUsagePeriodFunction, retention: cleanedData.retention, rollupFunctionName: cleanedData.rollupFunctionName, schemaId: cleanedData.schemaId, @@ -570,6 +591,7 @@ async function handleUpdate(argv: Partial>, prompter: In privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, + readStorageUsagePeriodFunction: true, retention: true, rollupFunctionName: true, schemaId: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/storage-module.ts b/sdk/constructive-cli/src/modules/cli/commands/storage-module.ts index dfd0941682..a3f9813692 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/storage-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/storage-module.ts @@ -34,7 +34,6 @@ const fieldSchema: FieldSchema = { filesTableId: 'uuid', filesTableName: 'string', hasAuditLog: 'boolean', - hasConfirmUpload: 'boolean', hasContentHash: 'boolean', hasCustomKeys: 'boolean', hasPathShares: 'boolean', @@ -129,7 +128,6 @@ async function handleList(argv: Partial>, _prompter: Inq filesTableId: true, filesTableName: true, hasAuditLog: true, - hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, @@ -192,7 +190,6 @@ async function handleFindFirst(argv: Partial>, _prompter filesTableId: true, filesTableName: true, hasAuditLog: true, - hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, @@ -267,7 +264,6 @@ async function handleGet(argv: Partial>, prompter: Inqui filesTableId: true, filesTableName: true, hasAuditLog: true, - hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, @@ -432,13 +428,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'boolean', - name: 'hasConfirmUpload', - message: 'hasConfirmUpload', - required: false, - skipPrompt: true, - }, { type: 'boolean', name: 'hasContentHash', @@ -627,7 +616,6 @@ async function handleCreate(argv: Partial>, prompter: In filesTableId: cleanedData.filesTableId, filesTableName: cleanedData.filesTableName, hasAuditLog: cleanedData.hasAuditLog, - hasConfirmUpload: cleanedData.hasConfirmUpload, hasContentHash: cleanedData.hasContentHash, hasCustomKeys: cleanedData.hasCustomKeys, hasPathShares: cleanedData.hasPathShares, @@ -671,7 +659,6 @@ async function handleCreate(argv: Partial>, prompter: In filesTableId: true, filesTableName: true, hasAuditLog: true, - hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, @@ -842,13 +829,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'boolean', - name: 'hasConfirmUpload', - message: 'hasConfirmUpload', - required: false, - skipPrompt: true, - }, { type: 'boolean', name: 'hasContentHash', @@ -1037,7 +1017,6 @@ async function handleUpdate(argv: Partial>, prompter: In filesTableId: cleanedData.filesTableId, filesTableName: cleanedData.filesTableName, hasAuditLog: cleanedData.hasAuditLog, - hasConfirmUpload: cleanedData.hasConfirmUpload, hasContentHash: cleanedData.hasContentHash, hasCustomKeys: cleanedData.hasCustomKeys, hasPathShares: cleanedData.hasPathShares, @@ -1081,7 +1060,6 @@ async function handleUpdate(argv: Partial>, prompter: In filesTableId: true, filesTableName: true, hasAuditLog: true, - hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, diff --git a/sdk/constructive-cli/src/modules/orm/README.md b/sdk/constructive-cli/src/modules/orm/README.md index 73e6574eaa..b7b873e859 100644 --- a/sdk/constructive-cli/src/modules/orm/README.md +++ b/sdk/constructive-cli/src/modules/orm/README.md @@ -498,6 +498,7 @@ CRUD operations for BlueprintConstruction records. | `constructedDefinition` | JSON | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | +| `error` | JSON | Yes | | `id` | UUID | No | | `schemaId` | UUID | Yes | | `status` | String | Yes | @@ -508,13 +509,13 @@ CRUD operations for BlueprintConstruction records. ```typescript // List all blueprintConstruction records -const items = await db.blueprintConstruction.findMany({ select: { blueprintId: true, constructedAt: true, constructedDefinition: true, createdAt: true, databaseId: true, id: true, schemaId: true, status: true, tableMap: true, updatedAt: true } }).execute(); +const items = await db.blueprintConstruction.findMany({ select: { blueprintId: true, constructedAt: true, constructedDefinition: true, createdAt: true, databaseId: true, error: true, id: true, schemaId: true, status: true, tableMap: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.blueprintConstruction.findOne({ id: '', select: { blueprintId: true, constructedAt: true, constructedDefinition: true, createdAt: true, databaseId: true, id: true, schemaId: true, status: true, tableMap: true, updatedAt: true } }).execute(); +const item = await db.blueprintConstruction.findOne({ id: '', select: { blueprintId: true, constructedAt: true, constructedDefinition: true, createdAt: true, databaseId: true, error: true, id: true, schemaId: true, status: true, tableMap: true, updatedAt: true } }).execute(); // Create -const created = await db.blueprintConstruction.create({ data: { blueprintId: '', constructedAt: '', constructedDefinition: '', databaseId: '', schemaId: '', status: '', tableMap: '' }, select: { id: true } }).execute(); +const created = await db.blueprintConstruction.create({ data: { blueprintId: '', constructedAt: '', constructedDefinition: '', databaseId: '', error: '', schemaId: '', status: '', tableMap: '' }, select: { id: true } }).execute(); // Update const updated = await db.blueprintConstruction.update({ where: { id: '' }, data: { blueprintId: '' }, select: { id: true } }).execute(); @@ -1250,6 +1251,8 @@ CRUD operations for DbUsageModule records. | `queryStatsLogTableName` | String | Yes | | `queryStatsSummaryTableId` | UUID | Yes | | `queryStatsSummaryTableName` | String | Yes | +| `readDbQueryStatsUsagePeriodFunction` | String | Yes | +| `readDbTableStatsUsagePeriodFunction` | String | Yes | | `retention` | String | Yes | | `rollupDbQueryStatsUsageSummaryFunction` | String | Yes | | `rollupDbTableStatsUsageSummaryFunction` | String | Yes | @@ -1264,13 +1267,13 @@ CRUD operations for DbUsageModule records. ```typescript // List all dbUsageModule records -const items = await db.dbUsageModule.findMany({ select: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }).execute(); +const items = await db.dbUsageModule.findMany({ select: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, readDbQueryStatsUsagePeriodFunction: true, readDbTableStatsUsagePeriodFunction: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }).execute(); // Get one by id -const item = await db.dbUsageModule.findOne({ id: '', select: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }).execute(); +const item = await db.dbUsageModule.findOne({ id: '', select: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, readDbQueryStatsUsagePeriodFunction: true, readDbTableStatsUsagePeriodFunction: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }).execute(); // Create -const created = await db.dbUsageModule.create({ data: { apiName: '', collectDbQueryStatsFunction: '', collectDbTableStatsFunction: '', databaseId: '', defaultCapabilities: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsSummaryTableId: '', queryStatsSummaryTableName: '', retention: '', rollupDbQueryStatsUsageSummaryFunction: '', rollupDbTableStatsUsageSummaryFunction: '', schemaId: '', scope: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsSummaryTableId: '', tableStatsSummaryTableName: '' }, select: { id: true } }).execute(); +const created = await db.dbUsageModule.create({ data: { apiName: '', collectDbQueryStatsFunction: '', collectDbTableStatsFunction: '', databaseId: '', defaultCapabilities: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsSummaryTableId: '', queryStatsSummaryTableName: '', readDbQueryStatsUsagePeriodFunction: '', readDbTableStatsUsagePeriodFunction: '', retention: '', rollupDbQueryStatsUsageSummaryFunction: '', rollupDbTableStatsUsageSummaryFunction: '', schemaId: '', scope: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsSummaryTableId: '', tableStatsSummaryTableName: '' }, select: { id: true } }).execute(); // Update const updated = await db.dbUsageModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -1396,6 +1399,7 @@ CRUD operations for DomainModule records. | `catalogModuleId` | UUID | Yes | | `databaseId` | UUID | Yes | | `defaultCapabilities` | String | Yes | +| `defaultReservedSubdomains` | JSON | Yes | | `domainEventsTableId` | UUID | Yes | | `domainEventsTableName` | String | Yes | | `domainVerificationsTableId` | UUID | Yes | @@ -1414,20 +1418,23 @@ CRUD operations for DomainModule records. | `privateSchemaName` | String | Yes | | `provisions` | JSON | Yes | | `publicSchemaName` | String | Yes | +| `reservedSubdomainsTableId` | UUID | Yes | +| `reservedSubdomainsTableName` | String | Yes | | `schemaId` | UUID | Yes | | `scope` | String | Yes | +| `sweepUnverifiedDomainsFunction` | String | Yes | **Operations:** ```typescript // List all domainModule records -const items = await db.domainModule.findMany({ select: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const items = await db.domainModule.findMany({ select: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, defaultReservedSubdomains: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, reservedSubdomainsTableId: true, reservedSubdomainsTableName: true, schemaId: true, scope: true, sweepUnverifiedDomainsFunction: true } }).execute(); // Get one by id -const item = await db.domainModule.findOne({ id: '', select: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const item = await db.domainModule.findOne({ id: '', select: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, defaultReservedSubdomains: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, reservedSubdomainsTableId: true, reservedSubdomainsTableName: true, schemaId: true, scope: true, sweepUnverifiedDomainsFunction: true } }).execute(); // Create -const created = await db.domainModule.create({ data: { apiName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', domainEventsTableId: '', domainEventsTableName: '', domainVerificationsTableId: '', domainVerificationsTableName: '', domainsTableId: '', domainsTableName: '', entityField: '', entityTableId: '', managedDomainsTableId: '', managedDomainsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.domainModule.create({ data: { apiName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', defaultReservedSubdomains: '', domainEventsTableId: '', domainEventsTableName: '', domainVerificationsTableId: '', domainVerificationsTableName: '', domainsTableId: '', domainsTableName: '', entityField: '', entityTableId: '', managedDomainsTableId: '', managedDomainsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', reservedSubdomainsTableId: '', reservedSubdomainsTableName: '', schemaId: '', scope: '', sweepUnverifiedDomainsFunction: '' }, select: { id: true } }).execute(); // Update const updated = await db.domainModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -3435,8 +3442,6 @@ CRUD operations for ResourceModule records. | Field | Type | Editable | |-------|------|----------| | `apiName` | String | Yes | -| `builderBindingsTableId` | UUID | Yes | -| `builderBindingsTableName` | String | Yes | | `databaseId` | UUID | Yes | | `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | @@ -3474,18 +3479,20 @@ CRUD operations for ResourceModule records. | `rollupResourceUsageSummaryFunction` | String | Yes | | `schemaId` | UUID | Yes | | `scope` | String | Yes | +| `serviceBindingsTableId` | UUID | Yes | +| `serviceBindingsTableName` | String | Yes | **Operations:** ```typescript // List all resourceModule records -const items = await db.resourceModule.findMany({ select: { apiName: true, builderBindingsTableId: true, builderBindingsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registryBindingsTableId: true, registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true } }).execute(); +const items = await db.resourceModule.findMany({ select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registryBindingsTableId: true, registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true, serviceBindingsTableId: true, serviceBindingsTableName: true } }).execute(); // Get one by id -const item = await db.resourceModule.findOne({ id: '', select: { apiName: true, builderBindingsTableId: true, builderBindingsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registryBindingsTableId: true, registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true } }).execute(); +const item = await db.resourceModule.findOne({ id: '', select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registryBindingsTableId: true, registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true, serviceBindingsTableId: true, serviceBindingsTableName: true } }).execute(); // Create -const created = await db.resourceModule.create({ data: { apiName: '', builderBindingsTableId: '', builderBindingsTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', registryBindingsTableId: '', registryBindingsTableName: '', requirementsStateViewName: '', resolvedRequirementsViewName: '', resourceBillingRollupFunction: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceEventsTableId: '', resourceEventsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourceStatusChecksTableId: '', resourceStatusChecksTableName: '', resourceUsageLogTableId: '', resourceUsageLogTableName: '', resourceUsageSummaryTableId: '', resourceUsageSummaryTableName: '', resourcesTableId: '', resourcesTableName: '', rollupResourceUsageSummaryFunction: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.resourceModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', registryBindingsTableId: '', registryBindingsTableName: '', requirementsStateViewName: '', resolvedRequirementsViewName: '', resourceBillingRollupFunction: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceEventsTableId: '', resourceEventsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourceStatusChecksTableId: '', resourceStatusChecksTableName: '', resourceUsageLogTableId: '', resourceUsageLogTableName: '', resourceUsageSummaryTableId: '', resourceUsageSummaryTableName: '', resourcesTableId: '', resourcesTableName: '', rollupResourceUsageSummaryFunction: '', schemaId: '', scope: '', serviceBindingsTableId: '', serviceBindingsTableName: '' }, select: { id: true } }).execute(); // Update const updated = await db.resourceModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -3822,6 +3829,7 @@ CRUD operations for StorageLogModule records. | `privateSchemaId` | UUID | Yes | | `privateSchemaName` | String | Yes | | `publicSchemaName` | String | Yes | +| `readStorageUsagePeriodFunction` | String | Yes | | `retention` | String | Yes | | `rollupFunctionName` | String | Yes | | `schemaId` | UUID | Yes | @@ -3835,13 +3843,13 @@ CRUD operations for StorageLogModule records. ```typescript // List all storageLogModule records -const items = await db.storageLogModule.findMany({ select: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); +const items = await db.storageLogModule.findMany({ select: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, readStorageUsagePeriodFunction: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); // Get one by id -const item = await db.storageLogModule.findOne({ id: '', select: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); +const item = await db.storageLogModule.findOne({ id: '', select: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, readStorageUsagePeriodFunction: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); // Create -const created = await db.storageLogModule.create({ data: { apiName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', storageLogTableId: '', storageLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute(); +const created = await db.storageLogModule.create({ data: { apiName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', readStorageUsagePeriodFunction: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', storageLogTableId: '', storageLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute(); // Update const updated = await db.storageLogModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -3876,7 +3884,6 @@ CRUD operations for StorageModule records. | `filesTableId` | UUID | Yes | | `filesTableName` | String | Yes | | `hasAuditLog` | Boolean | Yes | -| `hasConfirmUpload` | Boolean | Yes | | `hasContentHash` | Boolean | Yes | | `hasCustomKeys` | Boolean | Yes | | `hasPathShares` | Boolean | Yes | @@ -3906,13 +3913,13 @@ CRUD operations for StorageModule records. ```typescript // List all storageModule records -const items = await db.storageModule.findMany({ select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); +const items = await db.storageModule.findMany({ select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); // Get one by id -const item = await db.storageModule.findOne({ id: '', select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); +const item = await db.storageModule.findOne({ id: '', select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); // Create -const created = await db.storageModule.create({ data: { allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasConfirmUpload: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', key: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', region: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }, select: { id: true } }).execute(); +const created = await db.storageModule.create({ data: { allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', key: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', region: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }, select: { id: true } }).execute(); // Update const updated = await db.storageModule.update({ where: { id: '' }, data: { allowedOrigins: '' }, select: { id: true } }).execute(); @@ -4340,7 +4347,7 @@ const deleted = await db.webhookModule.delete({ where: { id: '' } }).execu ### `db.mutation.constructBlueprint` -Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). A table entry either names its table (table_name plus optional schema_name) or references one an installed module generated ("module": {"type": "agent", "scope": "org", "table": "message"}), which resolves through the module row's recorded table ids and raises when it matches nothing instead of creating an empty table. After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID. A failure raises its coded error to the caller and rolls back the whole construction, including the construction record. +Requests a build of a blueprint: snapshots its definition into a pending blueprint_construction row, enqueues the blueprint:construct job that runs metaschema_private.construct_blueprint_run on it, and returns the construction id immediately. Poll the row: pending -> constructing -> constructed (table_map populated) or failed (error holds the coded error). schema_id is the default schema for tables without an explicit schema_name. - **Type:** mutation - **Arguments:** diff --git a/sdk/constructive-cli/src/modules/orm/input-types.ts b/sdk/constructive-cli/src/modules/orm/input-types.ts index ca44c2dad1..1e2b8d3965 100644 --- a/sdk/constructive-cli/src/modules/orm/input-types.ts +++ b/sdk/constructive-cli/src/modules/orm/input-types.ts @@ -461,7 +461,7 @@ export interface Blueprint { /** Timestamp when this blueprint 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. */ +/** Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. 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, including failed ones. */ export interface BlueprintConstruction { /** The blueprint that was constructed. */ blueprintId?: string | null; @@ -473,11 +473,13 @@ export interface BlueprintConstruction { createdAt?: string | null; /** The database the blueprint was constructed into. */ databaseId?: string | null; + /** The coded error ({"code", "context", "class"} as raised through errors.raise_error, or {"code": , "message"} for a database error) a failed construction ended with. NULL unless status is failed. */ + error?: Record | null; /** Unique identifier for this construction attempt. */ id: string; /** 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. A failed construction raises and rolls back, so it leaves no row. */ + /** Execution state of this construction attempt. pending: enqueued, the blueprint:construct job has not started. constructing: the job is executing. constructed: successfully completed. failed: the job raised; the build rolled back and error carries its coded error. */ status?: 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; @@ -866,6 +868,8 @@ export interface DbUsageModule { queryStatsLogTableName?: string | null; queryStatsSummaryTableId?: string | null; queryStatsSummaryTableName?: string | null; + readDbQueryStatsUsagePeriodFunction?: string | null; + readDbTableStatsUsagePeriodFunction?: string | null; retention?: string | null; rollupDbQueryStatsUsageSummaryFunction?: string | null; rollupDbTableStatsUsageSummaryFunction?: string | null; @@ -908,6 +912,7 @@ export interface DomainModule { catalogModuleId?: string | null; databaseId?: string | null; defaultCapabilities?: string[] | null; + defaultReservedSubdomains?: Record | null; domainEventsTableId?: string | null; domainEventsTableName?: string | null; domainVerificationsTableId?: string | null; @@ -926,8 +931,11 @@ export interface DomainModule { privateSchemaName?: string | null; provisions?: Record | null; publicSchemaName?: string | null; + reservedSubdomainsTableId?: string | null; + reservedSubdomainsTableName?: string | null; schemaId?: string | null; scope?: string | null; + sweepUnverifiedDomainsFunction?: string | null; } export interface EmailSenderModule { apiName?: string | null; @@ -1167,7 +1175,6 @@ export interface EntityTypeProvision { * - 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 } @@ -2214,8 +2221,6 @@ export interface RepositoryModule { } export interface ResourceModule { apiName?: string | null; - builderBindingsTableId?: string | null; - builderBindingsTableName?: string | null; databaseId?: string | null; defaultCapabilities?: string[] | null; entityField?: string | null; @@ -2253,6 +2258,8 @@ export interface ResourceModule { rollupResourceUsageSummaryFunction?: string | null; schemaId?: string | null; scope?: string | null; + serviceBindingsTableId?: string | null; + serviceBindingsTableName?: string | null; } export interface RlsModule { apiName?: string | null; @@ -2409,6 +2416,7 @@ export interface StorageLogModule { privateSchemaId?: string | null; privateSchemaName?: string | null; publicSchemaName?: string | null; + readStorageUsagePeriodFunction?: string | null; retention?: string | null; rollupFunctionName?: string | null; schemaId?: string | null; @@ -2437,7 +2445,6 @@ export interface StorageModule { filesTableId?: string | null; filesTableName?: string | null; hasAuditLog?: boolean | null; - hasConfirmUpload?: boolean | null; hasContentHash?: boolean | null; hasCustomKeys?: boolean | null; hasPathShares?: boolean | null; @@ -3158,6 +3165,7 @@ export type BlueprintConstructionSelect = { constructedDefinition?: boolean; createdAt?: boolean; databaseId?: boolean; + error?: boolean; id?: boolean; schemaId?: boolean; status?: boolean; @@ -3557,6 +3565,8 @@ export type DbUsageModuleSelect = { queryStatsLogTableName?: boolean; queryStatsSummaryTableId?: boolean; queryStatsSummaryTableName?: boolean; + readDbQueryStatsUsagePeriodFunction?: boolean; + readDbTableStatsUsagePeriodFunction?: boolean; retention?: boolean; rollupDbQueryStatsUsageSummaryFunction?: boolean; rollupDbTableStatsUsageSummaryFunction?: boolean; @@ -3599,6 +3609,7 @@ export type DomainModuleSelect = { catalogModuleId?: boolean; databaseId?: boolean; defaultCapabilities?: boolean; + defaultReservedSubdomains?: boolean; domainEventsTableId?: boolean; domainEventsTableName?: boolean; domainVerificationsTableId?: boolean; @@ -3617,8 +3628,11 @@ export type DomainModuleSelect = { privateSchemaName?: boolean; provisions?: boolean; publicSchemaName?: boolean; + reservedSubdomainsTableId?: boolean; + reservedSubdomainsTableName?: boolean; schemaId?: boolean; scope?: boolean; + sweepUnverifiedDomainsFunction?: boolean; catalogModule?: { select: CatalogModuleSelect; }; @@ -4666,8 +4680,6 @@ export type RepositoryModuleSelect = { }; export type ResourceModuleSelect = { apiName?: boolean; - builderBindingsTableId?: boolean; - builderBindingsTableName?: boolean; databaseId?: boolean; defaultCapabilities?: boolean; entityField?: boolean; @@ -4705,6 +4717,8 @@ export type ResourceModuleSelect = { rollupResourceUsageSummaryFunction?: boolean; schemaId?: boolean; scope?: boolean; + serviceBindingsTableId?: boolean; + serviceBindingsTableName?: boolean; merkleStoreModule?: { select: MerkleStoreModuleSelect; }; @@ -4872,6 +4886,7 @@ export type StorageLogModuleSelect = { privateSchemaId?: boolean; privateSchemaName?: boolean; publicSchemaName?: boolean; + readStorageUsagePeriodFunction?: boolean; retention?: boolean; rollupFunctionName?: boolean; schemaId?: boolean; @@ -4900,7 +4915,6 @@ export type StorageModuleSelect = { filesTableId?: boolean; filesTableName?: boolean; hasAuditLog?: boolean; - hasConfirmUpload?: boolean; hasContentHash?: boolean; hasCustomKeys?: boolean; hasPathShares?: boolean; @@ -5589,6 +5603,8 @@ export interface BlueprintConstructionFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `error` field. */ + error?: JSONFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Negates the expression. */ @@ -6371,6 +6387,10 @@ export interface DbUsageModuleFilter { queryStatsSummaryTableId?: UUIDFilter; /** Filter by the object’s `queryStatsSummaryTableName` field. */ queryStatsSummaryTableName?: StringFilter; + /** Filter by the object’s `readDbQueryStatsUsagePeriodFunction` field. */ + readDbQueryStatsUsagePeriodFunction?: StringFilter; + /** Filter by the object’s `readDbTableStatsUsagePeriodFunction` field. */ + readDbTableStatsUsagePeriodFunction?: StringFilter; /** Filter by the object’s `retention` field. */ retention?: StringFilter; /** Filter by the object’s `rollupDbQueryStatsUsageSummaryFunction` field. */ @@ -6471,6 +6491,8 @@ export interface DomainModuleFilter { databaseId?: UUIDFilter; /** Filter by the object’s `defaultCapabilities` field. */ defaultCapabilities?: StringListFilter; + /** Filter by the object’s `defaultReservedSubdomains` field. */ + defaultReservedSubdomains?: JSONFilter; /** Filter by the object’s `domainEventsTableId` field. */ domainEventsTableId?: UUIDFilter; /** Filter by the object’s `domainEventsTableName` field. */ @@ -6511,6 +6533,10 @@ export interface DomainModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `reservedSubdomainsTableId` field. */ + reservedSubdomainsTableId?: UUIDFilter; + /** Filter by the object’s `reservedSubdomainsTableName` field. */ + reservedSubdomainsTableName?: StringFilter; /** Filter by the object’s `routeModules` relation. */ routeModules?: DomainModuleToManyRouteModuleFilter; /** `routeModules` exist. */ @@ -6519,6 +6545,8 @@ export interface DomainModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `sweepUnverifiedDomainsFunction` field. */ + sweepUnverifiedDomainsFunction?: StringFilter; } export interface EmailSenderModuleFilter { /** Checks for all expressions in this list. */ @@ -8619,10 +8647,6 @@ export interface ResourceModuleFilter { and?: ResourceModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; - /** Filter by the object’s `builderBindingsTableId` field. */ - builderBindingsTableId?: UUIDFilter; - /** Filter by the object’s `builderBindingsTableName` field. */ - builderBindingsTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `defaultCapabilities` field. */ @@ -8709,6 +8733,10 @@ export interface ResourceModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `serviceBindingsTableId` field. */ + serviceBindingsTableId?: UUIDFilter; + /** Filter by the object’s `serviceBindingsTableName` field. */ + serviceBindingsTableName?: StringFilter; } export interface RlsModuleFilter { /** Checks for all expressions in this list. */ @@ -9041,6 +9069,8 @@ export interface StorageLogModuleFilter { privateSchemaName?: StringFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `readStorageUsagePeriodFunction` field. */ + readStorageUsagePeriodFunction?: StringFilter; /** Filter by the object’s `retention` field. */ retention?: StringFilter; /** Filter by the object’s `rollupFunctionName` field. */ @@ -9101,8 +9131,6 @@ export interface StorageModuleFilter { filesTableName?: StringFilter; /** Filter by the object’s `hasAuditLog` field. */ hasAuditLog?: BooleanFilter; - /** Filter by the object’s `hasConfirmUpload` field. */ - hasConfirmUpload?: BooleanFilter; /** Filter by the object’s `hasContentHash` field. */ hasContentHash?: BooleanFilter; /** Filter by the object’s `hasCustomKeys` field. */ @@ -9968,6 +9996,8 @@ export type BlueprintConstructionOrderBy = | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ERROR_ASC' + | 'ERROR_DESC' | 'ID_ASC' | 'ID_DESC' | 'NATURAL' @@ -10643,6 +10673,10 @@ export type DbUsageModuleOrderBy = | 'QUERY_STATS_SUMMARY_TABLE_ID_DESC' | 'QUERY_STATS_SUMMARY_TABLE_NAME_ASC' | 'QUERY_STATS_SUMMARY_TABLE_NAME_DESC' + | 'READ_DB_QUERY_STATS_USAGE_PERIOD_FUNCTION_ASC' + | 'READ_DB_QUERY_STATS_USAGE_PERIOD_FUNCTION_DESC' + | 'READ_DB_TABLE_STATS_USAGE_PERIOD_FUNCTION_ASC' + | 'READ_DB_TABLE_STATS_USAGE_PERIOD_FUNCTION_DESC' | 'RETENTION_ASC' | 'RETENTION_DESC' | 'ROLLUP_DB_QUERY_STATS_USAGE_SUMMARY_FUNCTION_ASC' @@ -10724,6 +10758,8 @@ export type DomainModuleOrderBy = | 'DATABASE_ID_DESC' | 'DEFAULT_CAPABILITIES_ASC' | 'DEFAULT_CAPABILITIES_DESC' + | 'DEFAULT_RESERVED_SUBDOMAINS_ASC' + | 'DEFAULT_RESERVED_SUBDOMAINS_DESC' | 'DOMAINS_TABLE_ID_ASC' | 'DOMAINS_TABLE_ID_DESC' | 'DOMAINS_TABLE_NAME_ASC' @@ -10763,10 +10799,16 @@ export type DomainModuleOrderBy = | 'PROVISIONS_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' + | 'RESERVED_SUBDOMAINS_TABLE_ID_ASC' + | 'RESERVED_SUBDOMAINS_TABLE_ID_DESC' + | 'RESERVED_SUBDOMAINS_TABLE_NAME_ASC' + | 'RESERVED_SUBDOMAINS_TABLE_NAME_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' - | 'SCOPE_DESC'; + | 'SCOPE_DESC' + | 'SWEEP_UNVERIFIED_DOMAINS_FUNCTION_ASC' + | 'SWEEP_UNVERIFIED_DOMAINS_FUNCTION_DESC'; export type EmailSenderModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' @@ -12618,10 +12660,6 @@ export type RepositoryModuleOrderBy = export type ResourceModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' - | 'BUILDER_BINDINGS_TABLE_ID_ASC' - | 'BUILDER_BINDINGS_TABLE_ID_DESC' - | 'BUILDER_BINDINGS_TABLE_NAME_ASC' - | 'BUILDER_BINDINGS_TABLE_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DEFAULT_CAPABILITIES_ASC' @@ -12698,7 +12736,11 @@ export type ResourceModuleOrderBy = | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' - | 'SCOPE_DESC'; + | 'SCOPE_DESC' + | 'SERVICE_BINDINGS_TABLE_ID_ASC' + | 'SERVICE_BINDINGS_TABLE_ID_DESC' + | 'SERVICE_BINDINGS_TABLE_NAME_ASC' + | 'SERVICE_BINDINGS_TABLE_NAME_DESC'; export type RlsModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' @@ -12979,6 +13021,8 @@ export type StorageLogModuleOrderBy = | 'PRIVATE_SCHEMA_NAME_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' + | 'READ_STORAGE_USAGE_PERIOD_FUNCTION_ASC' + | 'READ_STORAGE_USAGE_PERIOD_FUNCTION_DESC' | 'RETENTION_ASC' | 'RETENTION_DESC' | 'ROLLUP_FUNCTION_NAME_ASC' @@ -13032,8 +13076,6 @@ export type StorageModuleOrderBy = | 'FILE_EVENTS_TABLE_ID_DESC' | 'HAS_AUDIT_LOG_ASC' | 'HAS_AUDIT_LOG_DESC' - | 'HAS_CONFIRM_UPLOAD_ASC' - | 'HAS_CONFIRM_UPLOAD_DESC' | 'HAS_CONTENT_HASH_ASC' | 'HAS_CONTENT_HASH_DESC' | 'HAS_CUSTOM_KEYS_ASC' @@ -13893,6 +13935,7 @@ export interface CreateBlueprintConstructionInput { constructedAt?: string; constructedDefinition?: Record; databaseId: string; + error?: Record; schemaId?: string; status?: string; tableMap?: Record; @@ -13903,6 +13946,7 @@ export interface BlueprintConstructionPatch { constructedAt?: string | null; constructedDefinition?: Record | null; databaseId?: string | null; + error?: Record | null; schemaId?: string | null; status?: string | null; tableMap?: Record | null; @@ -14688,6 +14732,8 @@ export interface CreateDbUsageModuleInput { queryStatsLogTableName?: string; queryStatsSummaryTableId?: string; queryStatsSummaryTableName?: string; + readDbQueryStatsUsagePeriodFunction?: string; + readDbTableStatsUsagePeriodFunction?: string; retention?: string; rollupDbQueryStatsUsageSummaryFunction?: string; rollupDbTableStatsUsageSummaryFunction?: string; @@ -14717,6 +14763,8 @@ export interface DbUsageModulePatch { queryStatsLogTableName?: string | null; queryStatsSummaryTableId?: string | null; queryStatsSummaryTableName?: string | null; + readDbQueryStatsUsagePeriodFunction?: string | null; + readDbTableStatsUsagePeriodFunction?: string | null; retention?: string | null; rollupDbQueryStatsUsageSummaryFunction?: string | null; rollupDbTableStatsUsageSummaryFunction?: string | null; @@ -14827,6 +14875,7 @@ export interface CreateDomainModuleInput { catalogModuleId?: string; databaseId: string; defaultCapabilities?: string[]; + defaultReservedSubdomains?: Record; domainEventsTableId?: string; domainEventsTableName?: string; domainVerificationsTableId?: string; @@ -14844,8 +14893,11 @@ export interface CreateDomainModuleInput { privateSchemaName?: string; provisions?: Record; publicSchemaName?: string; + reservedSubdomainsTableId?: string; + reservedSubdomainsTableName?: string; schemaId?: string; scope: string; + sweepUnverifiedDomainsFunction?: string; }; } export interface DomainModulePatch { @@ -14853,6 +14905,7 @@ export interface DomainModulePatch { catalogModuleId?: string | null; databaseId?: string | null; defaultCapabilities?: string[] | null; + defaultReservedSubdomains?: Record | null; domainEventsTableId?: string | null; domainEventsTableName?: string | null; domainVerificationsTableId?: string | null; @@ -14870,8 +14923,11 @@ export interface DomainModulePatch { privateSchemaName?: string | null; provisions?: Record | null; publicSchemaName?: string | null; + reservedSubdomainsTableId?: string | null; + reservedSubdomainsTableName?: string | null; schemaId?: string | null; scope?: string | null; + sweepUnverifiedDomainsFunction?: string | null; } export interface UpdateDomainModuleInput { clientMutationId?: string; @@ -17132,8 +17188,6 @@ export interface CreateResourceModuleInput { clientMutationId?: string; resourceModule: { apiName?: string; - builderBindingsTableId?: string; - builderBindingsTableName?: string; databaseId: string; defaultCapabilities?: string[]; entityField?: string; @@ -17170,12 +17224,12 @@ export interface CreateResourceModuleInput { rollupResourceUsageSummaryFunction?: string; schemaId?: string; scope: string; + serviceBindingsTableId?: string; + serviceBindingsTableName?: string; }; } export interface ResourceModulePatch { apiName?: string | null; - builderBindingsTableId?: string | null; - builderBindingsTableName?: string | null; databaseId?: string | null; defaultCapabilities?: string[] | null; entityField?: string | null; @@ -17212,6 +17266,8 @@ export interface ResourceModulePatch { rollupResourceUsageSummaryFunction?: string | null; schemaId?: string | null; scope?: string | null; + serviceBindingsTableId?: string | null; + serviceBindingsTableName?: string | null; } export interface UpdateResourceModuleInput { clientMutationId?: string; @@ -17559,6 +17615,7 @@ export interface CreateStorageLogModuleInput { privateSchemaId?: string; privateSchemaName?: string; publicSchemaName?: string; + readStorageUsagePeriodFunction?: string; retention?: string; rollupFunctionName?: string; schemaId?: string; @@ -17580,6 +17637,7 @@ export interface StorageLogModulePatch { privateSchemaId?: string | null; privateSchemaName?: string | null; publicSchemaName?: string | null; + readStorageUsagePeriodFunction?: string | null; retention?: string | null; rollupFunctionName?: string | null; schemaId?: string | null; @@ -17619,7 +17677,6 @@ export interface CreateStorageModuleInput { filesTableId?: string; filesTableName?: string; hasAuditLog?: boolean; - hasConfirmUpload?: boolean; hasContentHash?: boolean; hasCustomKeys?: boolean; hasPathShares?: boolean; @@ -17664,7 +17721,6 @@ export interface StorageModulePatch { filesTableId?: string | null; filesTableName?: string | null; hasAuditLog?: boolean | null; - hasConfirmUpload?: boolean | null; hasContentHash?: boolean | null; hasCustomKeys?: boolean | null; hasPathShares?: boolean | null; @@ -18741,11 +18797,13 @@ export interface BlueprintConstructionInput { createdAt?: string; /** The database the blueprint was constructed into. */ databaseId: string; + /** The coded error ({"code", "context", "class"} as raised through errors.raise_error, or {"code": , "message"} for a database error) a failed construction ended with. NULL unless status is failed. */ + error?: Record; /** Unique identifier for this construction attempt. */ id?: 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. A failed construction raises and rolls back, so it leaves no row. */ + /** Execution state of this construction attempt. pending: enqueued, the blueprint:construct job has not started. constructing: the job is executing. constructed: successfully completed. failed: the job raised; the build rolled back and error carries its coded error. */ status?: string; /** Mapping of table names to created table UUIDs, populated after successful construction. Format: {"products": "uuid", "categories": "uuid", ...}. Defaults to empty object. */ tableMap?: Record; @@ -19165,6 +19223,8 @@ export interface DbUsageModuleInput { queryStatsLogTableName?: string; queryStatsSummaryTableId?: string; queryStatsSummaryTableName?: string; + readDbQueryStatsUsagePeriodFunction?: string; + readDbTableStatsUsagePeriodFunction?: string; retention?: string; rollupDbQueryStatsUsageSummaryFunction?: string; rollupDbTableStatsUsageSummaryFunction?: string; @@ -19211,6 +19271,7 @@ export interface DomainModuleInput { catalogModuleId?: string; databaseId: string; defaultCapabilities?: string[]; + defaultReservedSubdomains?: Record; domainEventsTableId?: string; domainEventsTableName?: string; domainVerificationsTableId?: string; @@ -19229,8 +19290,11 @@ export interface DomainModuleInput { privateSchemaName?: string; provisions?: Record; publicSchemaName?: string; + reservedSubdomainsTableId?: string; + reservedSubdomainsTableName?: string; schemaId?: string; scope: string; + sweepUnverifiedDomainsFunction?: string; } /** An input for mutations affecting `EmailSenderModule` */ export interface EmailSenderModuleInput { @@ -19463,7 +19527,6 @@ export interface EntityTypeProvisionInput { * - 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 } @@ -20507,8 +20570,6 @@ export interface RepositoryModuleInput { /** An input for mutations affecting `ResourceModule` */ export interface ResourceModuleInput { apiName?: string; - builderBindingsTableId?: string; - builderBindingsTableName?: string; databaseId: string; defaultCapabilities?: string[]; entityField?: string; @@ -20546,6 +20607,8 @@ export interface ResourceModuleInput { rollupResourceUsageSummaryFunction?: string; schemaId?: string; scope: string; + serviceBindingsTableId?: string; + serviceBindingsTableName?: string; } /** An input for mutations affecting `RlsModule` */ export interface RlsModuleInput { @@ -20708,6 +20771,7 @@ export interface StorageLogModuleInput { privateSchemaId?: string; privateSchemaName?: string; publicSchemaName?: string; + readStorageUsagePeriodFunction?: string; retention?: string; rollupFunctionName?: string; schemaId?: string; @@ -20737,7 +20801,6 @@ export interface StorageModuleInput { filesTableId?: string; filesTableName?: string; hasAuditLog?: boolean; - hasConfirmUpload?: boolean; hasContentHash?: boolean; hasCustomKeys?: boolean; hasPathShares?: boolean; @@ -20945,6 +21008,8 @@ export interface BlueprintConstructionFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `error` field. */ + error?: JSONFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Negates the expression. */ @@ -21223,6 +21288,8 @@ export interface DomainModuleFilter { databaseId?: UUIDFilter; /** Filter by the object’s `defaultCapabilities` field. */ defaultCapabilities?: StringListFilter; + /** Filter by the object’s `defaultReservedSubdomains` field. */ + defaultReservedSubdomains?: JSONFilter; /** Filter by the object’s `domainEventsTableId` field. */ domainEventsTableId?: UUIDFilter; /** Filter by the object’s `domainEventsTableName` field. */ @@ -21263,6 +21330,10 @@ export interface DomainModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `reservedSubdomainsTableId` field. */ + reservedSubdomainsTableId?: UUIDFilter; + /** Filter by the object’s `reservedSubdomainsTableName` field. */ + reservedSubdomainsTableName?: StringFilter; /** Filter by the object’s `routeModules` relation. */ routeModules?: DomainModuleToManyRouteModuleFilter; /** `routeModules` exist. */ @@ -21271,6 +21342,8 @@ export interface DomainModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `sweepUnverifiedDomainsFunction` field. */ + sweepUnverifiedDomainsFunction?: StringFilter; } /** A filter to be used against `RouteModule` object types. All fields are combined with a logical ‘and.’ */ export interface RouteModuleFilter { @@ -21884,10 +21957,6 @@ export interface ResourceModuleFilter { and?: ResourceModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; - /** Filter by the object’s `builderBindingsTableId` field. */ - builderBindingsTableId?: UUIDFilter; - /** Filter by the object’s `builderBindingsTableName` field. */ - builderBindingsTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `defaultCapabilities` field. */ @@ -21974,6 +22043,10 @@ export interface ResourceModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `serviceBindingsTableId` field. */ + serviceBindingsTableId?: UUIDFilter; + /** Filter by the object’s `serviceBindingsTableName` field. */ + serviceBindingsTableName?: StringFilter; } /** A filter to be used against `EmailSenderModule` object types. All fields are combined with a logical ‘and.’ */ export interface EmailSenderModuleFilter { @@ -22833,8 +22906,6 @@ export interface StorageModuleFilter { filesTableName?: StringFilter; /** Filter by the object’s `hasAuditLog` field. */ hasAuditLog?: BooleanFilter; - /** Filter by the object’s `hasConfirmUpload` field. */ - hasConfirmUpload?: BooleanFilter; /** Filter by the object’s `hasContentHash` field. */ hasContentHash?: BooleanFilter; /** Filter by the object’s `hasCustomKeys` field. */ diff --git a/sdk/constructive-cli/src/modules/orm/mutation/index.ts b/sdk/constructive-cli/src/modules/orm/mutation/index.ts index e59de99a2e..26ad9b2410 100644 --- a/sdk/constructive-cli/src/modules/orm/mutation/index.ts +++ b/sdk/constructive-cli/src/modules/orm/mutation/index.ts @@ -20,7 +20,7 @@ import type { import { connectionFieldsMap } from '../input-types'; /** * Variables for constructBlueprint - * Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). A table entry either names its table (table_name plus optional schema_name) or references one an installed module generated ("module": {"type": "agent", "scope": "org", "table": "message"}), which resolves through the module row's recorded table ids and raises when it matches nothing instead of creating an empty table. After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID. A failure raises its coded error to the caller and rolls back the whole construction, including the construction record. + * Requests a build of a blueprint: snapshots its definition into a pending blueprint_construction row, enqueues the blueprint:construct job that runs metaschema_private.construct_blueprint_run on it, and returns the construction id immediately. Poll the row: pending -> constructing -> constructed (table_map populated) or failed (error holds the coded error). schema_id is the default schema for tables without an explicit schema_name. */ export interface ConstructBlueprintVariables { input: ConstructBlueprintInput; diff --git a/sdk/constructive-cli/src/objects/cli/README.md b/sdk/constructive-cli/src/objects/cli/README.md index d32e2e93d9..9a869530ae 100644 --- a/sdk/constructive-cli/src/objects/cli/README.md +++ b/sdk/constructive-cli/src/objects/cli/README.md @@ -124,7 +124,6 @@ CRUD operations for GetAllTreeNodesRecord records. | `list` | List all getAllTreeNodesRecord records | | `find-first` | Find first matching getAllTreeNodesRecord record | | `get` | Get a getAllTreeNodesRecord by id | -| `create` | Create a new getAllTreeNodesRecord | | `update` | Update an existing getAllTreeNodesRecord | | `delete` | Delete a getAllTreeNodesRecord | diff --git a/sdk/constructive-cli/src/objects/cli/commands/get-all-tree-nodes-record.ts b/sdk/constructive-cli/src/objects/cli/commands/get-all-tree-nodes-record.ts index 31c495de36..72a4fd0cd9 100644 --- a/sdk/constructive-cli/src/objects/cli/commands/get-all-tree-nodes-record.ts +++ b/sdk/constructive-cli/src/objects/cli/commands/get-all-tree-nodes-record.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateGetAllTreeNodesRecordInput, GetAllTreeNodesRecordPatch, GetAllTreeNodesRecordSelect, GetAllTreeNodesRecordFilter, @@ -37,7 +36,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -54,8 +53,6 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(argv, prompter); - case 'create': - return handleCreate(argv, prompter); default: console.log(usage); process.exit(1); @@ -113,46 +110,3 @@ async function handleFindFirst(argv: Partial>, _prompter process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'json', - name: 'data', - message: 'data', - required: true, - }, - { - type: 'text', - name: 'path', - message: 'path', - required: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateGetAllTreeNodesRecordInput['getAllTreeNodesRecord']; - const client = getClient(); - const result = await client.getAllTreeNodesRecord - .create({ - data: { - data: cleanedData.data, - path: cleanedData.path, - }, - select: { - data: true, - path: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} diff --git a/sdk/constructive-cli/src/objects/orm/README.md b/sdk/constructive-cli/src/objects/orm/README.md index 866cd6f1ef..f5b1e0ead1 100644 --- a/sdk/constructive-cli/src/objects/orm/README.md +++ b/sdk/constructive-cli/src/objects/orm/README.md @@ -22,7 +22,7 @@ const db = createClient({ | Model | Operations | |-------|------------| | `commit` | findMany, findOne, create, update, delete | -| `getAllTreeNodesRecord` | findMany, findOne, create, update, delete | +| `getAllTreeNodesRecord` | findMany, findOne, update, delete | | `object` | findMany, findOne, create, update, delete | | `ref` | findMany, findOne, create, update, delete | | `store` | findMany, findOne, create, update, delete | @@ -86,9 +86,6 @@ const items = await db.getAllTreeNodesRecord.findMany({ select: { data: true, pa // Get one by id const item = await db.getAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); -// Create -const created = await db.getAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); - // Update const updated = await db.getAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); diff --git a/sdk/constructive-cli/src/objects/orm/input-types.ts b/sdk/constructive-cli/src/objects/orm/input-types.ts index fbe09b35cb..faa72ecfe0 100644 --- a/sdk/constructive-cli/src/objects/orm/input-types.ts +++ b/sdk/constructive-cli/src/objects/orm/input-types.ts @@ -558,13 +558,6 @@ export interface DeleteCommitInput { clientMutationId?: string; id: string; } -export interface CreateGetAllTreeNodesRecordInput { - clientMutationId?: string; - getAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; -} export interface GetAllTreeNodesRecordPatch { data?: Record | null; path?: string[] | null; diff --git a/sdk/constructive-cli/src/objects/orm/models/getAllTreeNodesRecord.ts b/sdk/constructive-cli/src/objects/orm/models/getAllTreeNodesRecord.ts index 00f51d01f7..275a902f66 100644 --- a/sdk/constructive-cli/src/objects/orm/models/getAllTreeNodesRecord.ts +++ b/sdk/constructive-cli/src/objects/orm/models/getAllTreeNodesRecord.ts @@ -29,7 +29,6 @@ import type { GetAllTreeNodesRecordSelect, GetAllTreeNodesRecordFilter, GetAllTreeNodesRecordsOrderBy, - CreateGetAllTreeNodesRecordInput, UpdateGetAllTreeNodesRecordInput, GetAllTreeNodesRecordPatch, } from '../input-types'; @@ -104,31 +103,4 @@ export class GetAllTreeNodesRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createGetAllTreeNodesRecord: { - getAllTreeNodesRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'GetAllTreeNodesRecord', - 'createGetAllTreeNodesRecord', - 'getAllTreeNodesRecord', - args.select, - args.data, - 'CreateGetAllTreeNodesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'GetAllTreeNodesRecord', - fieldName: 'createGetAllTreeNodesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-cli/src/remote/README.md b/sdk/constructive-cli/src/remote/README.md index 9dd2d4d9cb..2e22b6aba1 100644 --- a/sdk/constructive-cli/src/remote/README.md +++ b/sdk/constructive-cli/src/remote/README.md @@ -9,7 +9,7 @@ ## Overview - **Tables:** 3 -- **Custom queries:** 0 +- **Custom queries:** 1 - **Custom mutations:** 2 **Generators:** ORM, CLI diff --git a/sdk/constructive-cli/src/remote/cli/README.md b/sdk/constructive-cli/src/remote/cli/README.md index afc3f9beff..060838bb45 100644 --- a/sdk/constructive-cli/src/remote/cli/README.md +++ b/sdk/constructive-cli/src/remote/cli/README.md @@ -29,6 +29,7 @@ csdk auth set-token | `machine` | machine CRUD operations | | `machine-message` | machineMessage CRUD operations | | `machine-session` | machineSession CRUD operations | +| `current-database-id` | currentDatabaseId | | `machines-enroll` | machinesEnroll | | `provision-bucket` | Reconcile an S3 bucket for a logical bucket in the database. Records the request on the bucket row via RLS; the bucket's job @@ -199,6 +200,13 @@ CRUD operations for MachineSession records. ## Custom Operations +### `current-database-id` + +currentDatabaseId + +- **Type:** query +- **Arguments:** none + ### `machines-enroll` machinesEnroll diff --git a/sdk/constructive-cli/src/remote/cli/commands.ts b/sdk/constructive-cli/src/remote/cli/commands.ts index e51b43e0e5..05b8a47c5b 100644 --- a/sdk/constructive-cli/src/remote/cli/commands.ts +++ b/sdk/constructive-cli/src/remote/cli/commands.ts @@ -9,6 +9,7 @@ import authCmd from './commands/auth'; import machineCmd from './commands/machine'; import machineMessageCmd from './commands/machine-message'; import machineSessionCmd from './commands/machine-session'; +import currentDatabaseIdCmd from './commands/current-database-id'; import machinesEnrollCmd from './commands/machines-enroll'; import provisionBucketCmd from './commands/provision-bucket'; const createCommandMap: () => Record< @@ -24,11 +25,12 @@ const createCommandMap: () => Record< machine: machineCmd, 'machine-message': machineMessageCmd, 'machine-session': machineSessionCmd, + 'current-database-id': currentDatabaseIdCmd, 'machines-enroll': machinesEnrollCmd, 'provision-bucket': provisionBucketCmd, }); const usage = - "\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n machine machine CRUD operations\n machine-message machineMessage CRUD operations\n machine-session machineSession CRUD operations\n machines-enroll machinesEnroll\n provision-bucket Reconcile an S3 bucket for a logical bucket in the database.\nRecords the request on the bucket row via RLS; the bucket's job\ntrigger then enqueues the same storage:provision_bucket job used on\nINSERT, and repeated requests collapse into one pending job. This is\nidempotent for an already-reconciled bucket; failures become GraphQL\nerrors.\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 machine machine CRUD operations\n machine-message machineMessage CRUD operations\n machine-session machineSession CRUD operations\n current-database-id currentDatabaseId\n machines-enroll machinesEnroll\n provision-bucket Reconcile an S3 bucket for a logical bucket in the database.\nRecords the request on the bucket row via RLS; the bucket's job\ntrigger then enqueues the same storage:provision_bucket job used on\nINSERT, and repeated requests collapse into one pending job. This is\nidempotent for an already-reconciled bucket; failures become GraphQL\nerrors.\n\n --help, -h Show this help message\n --version, -v Show version\n"; export const commands = async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-cli/src/api/cli/commands/resolve-site-app-links.ts b/sdk/constructive-cli/src/remote/cli/commands/current-database-id.ts similarity index 52% rename from sdk/constructive-cli/src/api/cli/commands/resolve-site-app-links.ts rename to sdk/constructive-cli/src/remote/cli/commands/current-database-id.ts index 5a08de23a1..674a964532 100644 --- a/sdk/constructive-cli/src/api/cli/commands/resolve-site-app-links.ts +++ b/sdk/constructive-cli/src/remote/cli/commands/current-database-id.ts @@ -1,11 +1,10 @@ /** - * CLI command for query resolveSiteAppLinks + * CLI command for query currentDatabaseId * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ import { CLIOptions, Inquirerer } from 'inquirerer'; import { getClient } from '../executor'; -import type { ResolveSiteAppLinksVariables } from '../../orm/query'; export default async ( argv: Partial>, prompter: Inquirerer, @@ -14,24 +13,15 @@ export default async ( try { if (argv.help || argv.h) { console.log( - 'resolve-site-app-links - resolveSiteAppLinks\n\nUsage: resolve-site-app-links [OPTIONS]\n' + 'current-database-id - currentDatabaseId\n\nUsage: current-database-id [OPTIONS]\n' ); process.exit(0); } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'targetSiteId', - message: 'targetSiteId', - }, - ]); const client = getClient(); - const result = await client.query - .resolveSiteAppLinks(answers as unknown as ResolveSiteAppLinksVariables) - .execute(); + const result = await client.query.currentDatabaseId().execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { - console.error('Failed: resolveSiteAppLinks'); + console.error('Failed: currentDatabaseId'); if (error instanceof Error) { console.error(error.message); } diff --git a/sdk/constructive-cli/src/remote/orm/README.md b/sdk/constructive-cli/src/remote/orm/README.md index eb2fdd09aa..b76819b71e 100644 --- a/sdk/constructive-cli/src/remote/orm/README.md +++ b/sdk/constructive-cli/src/remote/orm/README.md @@ -169,6 +169,17 @@ const deleted = await db.machineSession.delete({ where: { id: '' } }).exec ## Custom Operations +### `db.query.currentDatabaseId` + +currentDatabaseId + +- **Type:** query +- **Arguments:** none + +```typescript +const result = await db.query.currentDatabaseId().execute(); +``` + ### `db.mutation.machinesEnroll` machinesEnroll diff --git a/sdk/constructive-cli/src/remote/orm/index.ts b/sdk/constructive-cli/src/remote/orm/index.ts index e166dd236a..554ce59ad1 100644 --- a/sdk/constructive-cli/src/remote/orm/index.ts +++ b/sdk/constructive-cli/src/remote/orm/index.ts @@ -8,12 +8,14 @@ import type { OrmClientConfig } from './client'; import { MachineModel } from './models/machine'; import { MachineMessageModel } from './models/machineMessage'; import { MachineSessionModel } from './models/machineSession'; +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 @@ -44,6 +46,7 @@ export function createClient(config: OrmClientConfig) { machine: new MachineModel(client), machineMessage: new MachineMessageModel(client), machineSession: new MachineSessionModel(client), + query: createQueryOperations(client), mutation: createMutationOperations(client), }; } diff --git a/sdk/constructive-cli/src/remote/orm/query/index.ts b/sdk/constructive-cli/src/remote/orm/query/index.ts new file mode 100644 index 0000000000..901e0de080 --- /dev/null +++ b/sdk/constructive-cli/src/remote/orm/query/index.ts @@ -0,0 +1,32 @@ +/** + * Custom query operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { QueryBuilder, buildCustomDocument } from '../query-builder'; +import type { InferSelectResult, StrictSelect } from '../select-types'; +import { connectionFieldsMap } from '../input-types'; +export function createQueryOperations(client: OrmClient) { + return { + currentDatabaseId: (options?: { select?: Record }) => + new QueryBuilder<{ + currentDatabaseId: string | null; + }>({ + client, + operation: 'query', + operationName: 'CurrentDatabaseId', + fieldName: 'currentDatabaseId', + ...buildCustomDocument( + 'query', + 'CurrentDatabaseId', + 'currentDatabaseId', + options?.select, + undefined, + [], + connectionFieldsMap, + undefined + ), + }), + }; +} diff --git a/sdk/constructive-cli/src/storage/cli/README.md b/sdk/constructive-cli/src/storage/cli/README.md index 9074edd5bb..773bd73f9b 100644 --- a/sdk/constructive-cli/src/storage/cli/README.md +++ b/sdk/constructive-cli/src/storage/cli/README.md @@ -133,7 +133,6 @@ CRUD operations for File records. | `list` | List all file records | | `find-first` | Find first matching file record | | `get` | Get a file by id | -| `create` | Create a new file | | `update` | Update an existing file | | `delete` | Delete a file | @@ -156,14 +155,16 @@ CRUD operations for File records. | `key` | String | | `mimeType` | String | | `promotedAt` | Datetime | +| `rejectionReason` | String | | `size` | BigInt | | `status` | FileStatus | | `tags` | String | | `updatedAt` | Datetime | | `upload` | Upload | +| `uploadUrl` | String | +| `uploadVersions` | FileVersion | -**Required create fields:** `actorId`, `bucketId`, `key`, `mimeType`, `size` -**Optional create fields (backend defaults):** `contentHash`, `description`, `expiryEnqueuedAt`, `filename`, `promotedAt`, `status`, `tags`, `upload` +**Required create fields:** `actorId`, `bucketId`, `contentHash`, `databaseId`, `description`, `downloadUrl`, `expiryEnqueuedAt`, `filePath`, `filename`, `isPublic`, `key`, `mimeType`, `promotedAt`, `rejectionReason`, `size`, `status`, `tags`, `upload`, `uploadUrl`, `uploadVersions` ### `platform-bucket` @@ -213,7 +214,6 @@ CRUD operations for PlatformFile records. | `list` | List all platformFile records | | `find-first` | Find first matching platformFile record | | `get` | Get a platformFile by id | -| `create` | Create a new platformFile | | `update` | Update an existing platformFile | | `delete` | Delete a platformFile | @@ -235,14 +235,16 @@ CRUD operations for PlatformFile records. | `key` | String | | `mimeType` | String | | `promotedAt` | Datetime | +| `rejectionReason` | String | | `size` | BigInt | | `status` | FileStatus | | `tags` | String | | `updatedAt` | Datetime | | `upload` | Upload | +| `uploadUrl` | String | +| `uploadVersions` | FileVersion | -**Required create fields:** `actorId`, `bucketId`, `key`, `mimeType`, `size` -**Optional create fields (backend defaults):** `contentHash`, `description`, `expiryEnqueuedAt`, `filename`, `promotedAt`, `status`, `tags`, `upload` +**Required create fields:** `actorId`, `bucketId`, `contentHash`, `description`, `downloadUrl`, `expiryEnqueuedAt`, `filePath`, `filename`, `isPublic`, `key`, `mimeType`, `promotedAt`, `rejectionReason`, `size`, `status`, `tags`, `upload`, `uploadUrl`, `uploadVersions` ## Custom Operations @@ -301,6 +303,7 @@ Upload a file: resolves the bucket by key, creates the file row, and returns a p | `--input.bucketKey` | String | | `--input.contentHash` | String (required) | | `--input.contentType` | String (required) | + | `--input.databaseId` | UUID | | `--input.filename` | String | | `--input.isPublic` | Boolean | | `--input.key` | String | @@ -316,6 +319,7 @@ Upload multiple files: resolves the bucket by key, creates file rows, and return | Argument | Type | |----------|------| | `--input.bucketKey` | String | + | `--input.databaseId` | UUID | | `--input.files` | UploadFileBulkFileInput (required) | | `--input.isPublic` | Boolean | diff --git a/sdk/constructive-cli/src/storage/cli/commands/file.ts b/sdk/constructive-cli/src/storage/cli/commands/file.ts index 12119e4eb2..124c7288e5 100644 --- a/sdk/constructive-cli/src/storage/cli/commands/file.ts +++ b/sdk/constructive-cli/src/storage/cli/commands/file.ts @@ -7,13 +7,7 @@ import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; -import type { - CreateFileInput, - FilePatch, - FileSelect, - FileFilter, - FileOrderBy, -} from '../../orm/input-types'; +import type { FilePatch, FileSelect, FileFilter, FileOrderBy } from '../../orm/input-types'; import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { actorId: 'uuid', @@ -31,11 +25,14 @@ const fieldSchema: FieldSchema = { key: 'string', mimeType: 'string', promotedAt: 'string', + rejectionReason: 'string', size: 'int', status: 'string', tags: 'string', updatedAt: 'string', upload: 'string', + uploadUrl: 'string', + uploadVersions: 'string', }; const usage = '\nfile \n\nCommands:\n list List file records\n find-first Find first matching file record\n get Get a file by ID\n create Create a new file\n update Update an existing file\n delete Delete a file\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; @@ -55,7 +52,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'get', 'create', 'update', 'delete'], + options: ['list', 'find-first', 'get', 'update', 'delete'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -74,8 +71,6 @@ async function handleTableSubcommand( return handleFindFirst(argv, prompter); case 'get': return handleGet(argv, prompter); - case 'create': - return handleCreate(argv, prompter); case 'update': return handleUpdate(argv, prompter); case 'delete': @@ -92,18 +87,25 @@ async function handleList(argv: Partial>, _prompter: Inq bucketId: true, contentHash: true, createdAt: true, + databaseId: true, description: true, + downloadUrl: true, expiryEnqueuedAt: true, + filePath: true, filename: true, id: true, + isPublic: true, key: true, mimeType: true, promotedAt: true, + rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true, + uploadUrl: true, + uploadVersions: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -128,18 +130,25 @@ async function handleFindFirst(argv: Partial>, _prompter bucketId: true, contentHash: true, createdAt: true, + databaseId: true, description: true, + downloadUrl: true, expiryEnqueuedAt: true, + filePath: true, filename: true, id: true, + isPublic: true, key: true, mimeType: true, promotedAt: true, + rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true, + uploadUrl: true, + uploadVersions: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -176,18 +185,25 @@ async function handleGet(argv: Partial>, prompter: Inqui bucketId: true, contentHash: true, createdAt: true, + databaseId: true, description: true, + downloadUrl: true, expiryEnqueuedAt: true, + filePath: true, filename: true, id: true, + isPublic: true, key: true, mimeType: true, promotedAt: true, + rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true, + uploadUrl: true, + uploadVersions: true, }, }) .execute(); @@ -200,145 +216,6 @@ async function handleGet(argv: Partial>, prompter: Inqui process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'actorId', - message: 'actorId', - required: true, - }, - { - type: 'text', - name: 'bucketId', - message: 'bucketId', - required: true, - }, - { - type: 'text', - name: 'contentHash', - message: 'contentHash', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'description', - message: 'description', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'expiryEnqueuedAt', - message: 'expiryEnqueuedAt', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'filename', - message: 'filename', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'key', - message: 'key', - required: true, - }, - { - type: 'text', - name: 'mimeType', - message: 'mimeType', - required: true, - }, - { - type: 'text', - name: 'promotedAt', - message: 'promotedAt', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'size', - message: 'size', - required: true, - }, - { - type: 'text', - name: 'status', - message: 'status', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'tags', - message: 'tags', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'upload', - message: 'upload', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as CreateFileInput['file']; - const client = getClient(); - const result = await client.file - .create({ - data: { - actorId: cleanedData.actorId, - bucketId: cleanedData.bucketId, - contentHash: cleanedData.contentHash, - description: cleanedData.description, - expiryEnqueuedAt: cleanedData.expiryEnqueuedAt, - filename: cleanedData.filename, - key: cleanedData.key, - mimeType: cleanedData.mimeType, - promotedAt: cleanedData.promotedAt, - size: cleanedData.size, - status: cleanedData.status, - tags: cleanedData.tags, - upload: cleanedData.upload, - }, - select: { - actorId: true, - bucketId: true, - contentHash: true, - createdAt: true, - description: true, - expiryEnqueuedAt: true, - filename: true, - id: true, - key: true, - mimeType: true, - promotedAt: true, - size: true, - status: true, - tags: true, - updatedAt: true, - upload: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} async function handleUpdate(argv: Partial>, prompter: Inquirerer) { try { const rawAnswers = await prompter.prompt(argv, [ @@ -365,28 +242,48 @@ async function handleUpdate(argv: Partial>, prompter: In name: 'contentHash', message: 'contentHash', required: false, - skipPrompt: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, }, { type: 'text', name: 'description', message: 'description', required: false, - skipPrompt: true, + }, + { + type: 'text', + name: 'downloadUrl', + message: 'downloadUrl', + required: false, }, { type: 'text', name: 'expiryEnqueuedAt', message: 'expiryEnqueuedAt', required: false, - skipPrompt: true, + }, + { + type: 'text', + name: 'filePath', + message: 'filePath', + required: false, }, { type: 'text', name: 'filename', message: 'filename', required: false, - skipPrompt: true, + }, + { + type: 'boolean', + name: 'isPublic', + message: 'isPublic', + required: false, }, { type: 'text', @@ -405,7 +302,12 @@ async function handleUpdate(argv: Partial>, prompter: In name: 'promotedAt', message: 'promotedAt', required: false, - skipPrompt: true, + }, + { + type: 'text', + name: 'rejectionReason', + message: 'rejectionReason', + required: false, }, { type: 'text', @@ -418,21 +320,30 @@ async function handleUpdate(argv: Partial>, prompter: In name: 'status', message: 'status', required: false, - skipPrompt: true, }, { type: 'text', name: 'tags', message: 'tags', required: false, - skipPrompt: true, }, { type: 'text', name: 'upload', message: 'upload', required: false, - skipPrompt: true, + }, + { + type: 'text', + name: 'uploadUrl', + message: 'uploadUrl', + required: false, + }, + { + type: 'text', + name: 'uploadVersions', + message: 'uploadVersions', + required: false, }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); @@ -447,34 +358,48 @@ async function handleUpdate(argv: Partial>, prompter: In actorId: cleanedData.actorId, bucketId: cleanedData.bucketId, contentHash: cleanedData.contentHash, + databaseId: cleanedData.databaseId, description: cleanedData.description, + downloadUrl: cleanedData.downloadUrl, expiryEnqueuedAt: cleanedData.expiryEnqueuedAt, + filePath: cleanedData.filePath, filename: cleanedData.filename, + isPublic: cleanedData.isPublic, key: cleanedData.key, mimeType: cleanedData.mimeType, promotedAt: cleanedData.promotedAt, + rejectionReason: cleanedData.rejectionReason, size: cleanedData.size, status: cleanedData.status, tags: cleanedData.tags, upload: cleanedData.upload, + uploadUrl: cleanedData.uploadUrl, + uploadVersions: cleanedData.uploadVersions, }, select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, + databaseId: true, description: true, + downloadUrl: true, expiryEnqueuedAt: true, + filePath: true, filename: true, id: true, + isPublic: true, key: true, mimeType: true, promotedAt: true, + rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true, + uploadUrl: true, + uploadVersions: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/storage/cli/commands/platform-file.ts b/sdk/constructive-cli/src/storage/cli/commands/platform-file.ts index 6b64a314a7..b20b462bdd 100644 --- a/sdk/constructive-cli/src/storage/cli/commands/platform-file.ts +++ b/sdk/constructive-cli/src/storage/cli/commands/platform-file.ts @@ -8,7 +8,6 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreatePlatformFileInput, PlatformFilePatch, PlatformFileSelect, PlatformFileFilter, @@ -30,11 +29,14 @@ const fieldSchema: FieldSchema = { key: 'string', mimeType: 'string', promotedAt: 'string', + rejectionReason: 'string', size: 'int', status: 'string', tags: 'string', updatedAt: 'string', upload: 'string', + uploadUrl: 'string', + uploadVersions: 'string', }; const usage = '\nplatform-file \n\nCommands:\n list List platformFile records\n find-first Find first matching platformFile record\n get Get a platformFile by ID\n create Create a new platformFile\n update Update an existing platformFile\n delete Delete a platformFile\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; @@ -54,7 +56,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'get', 'create', 'update', 'delete'], + options: ['list', 'find-first', 'get', 'update', 'delete'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -73,8 +75,6 @@ async function handleTableSubcommand( return handleFindFirst(argv, prompter); case 'get': return handleGet(argv, prompter); - case 'create': - return handleCreate(argv, prompter); case 'update': return handleUpdate(argv, prompter); case 'delete': @@ -92,17 +92,23 @@ async function handleList(argv: Partial>, _prompter: Inq contentHash: true, createdAt: true, description: true, + downloadUrl: true, expiryEnqueuedAt: true, + filePath: true, filename: true, id: true, + isPublic: true, key: true, mimeType: true, promotedAt: true, + rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true, + uploadUrl: true, + uploadVersions: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -128,17 +134,23 @@ async function handleFindFirst(argv: Partial>, _prompter contentHash: true, createdAt: true, description: true, + downloadUrl: true, expiryEnqueuedAt: true, + filePath: true, filename: true, id: true, + isPublic: true, key: true, mimeType: true, promotedAt: true, + rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true, + uploadUrl: true, + uploadVersions: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -176,17 +188,23 @@ async function handleGet(argv: Partial>, prompter: Inqui contentHash: true, createdAt: true, description: true, + downloadUrl: true, expiryEnqueuedAt: true, + filePath: true, filename: true, id: true, + isPublic: true, key: true, mimeType: true, promotedAt: true, + rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true, + uploadUrl: true, + uploadVersions: true, }, }) .execute(); @@ -199,148 +217,6 @@ async function handleGet(argv: Partial>, prompter: Inqui process.exit(1); } } -async function handleCreate(argv: Partial>, prompter: Inquirerer) { - try { - const rawAnswers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'actorId', - message: 'actorId', - required: true, - }, - { - type: 'text', - name: 'bucketId', - message: 'bucketId', - required: true, - }, - { - type: 'text', - name: 'contentHash', - message: 'contentHash', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'description', - message: 'description', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'expiryEnqueuedAt', - message: 'expiryEnqueuedAt', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'filename', - message: 'filename', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'key', - message: 'key', - required: true, - }, - { - type: 'text', - name: 'mimeType', - message: 'mimeType', - required: true, - }, - { - type: 'text', - name: 'promotedAt', - message: 'promotedAt', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'size', - message: 'size', - required: true, - }, - { - type: 'text', - name: 'status', - message: 'status', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'tags', - message: 'tags', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'upload', - message: 'upload', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreatePlatformFileInput['platformFile']; - const client = getClient(); - const result = await client.platformFile - .create({ - data: { - actorId: cleanedData.actorId, - bucketId: cleanedData.bucketId, - contentHash: cleanedData.contentHash, - description: cleanedData.description, - expiryEnqueuedAt: cleanedData.expiryEnqueuedAt, - filename: cleanedData.filename, - key: cleanedData.key, - mimeType: cleanedData.mimeType, - promotedAt: cleanedData.promotedAt, - size: cleanedData.size, - status: cleanedData.status, - tags: cleanedData.tags, - upload: cleanedData.upload, - }, - select: { - actorId: true, - bucketId: true, - contentHash: true, - createdAt: true, - description: true, - expiryEnqueuedAt: true, - filename: true, - id: true, - key: true, - mimeType: true, - promotedAt: true, - size: true, - status: true, - tags: true, - updatedAt: true, - upload: true, - }, - }) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to create record.'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -} async function handleUpdate(argv: Partial>, prompter: Inquirerer) { try { const rawAnswers = await prompter.prompt(argv, [ @@ -367,28 +243,42 @@ async function handleUpdate(argv: Partial>, prompter: In name: 'contentHash', message: 'contentHash', required: false, - skipPrompt: true, }, { type: 'text', name: 'description', message: 'description', required: false, - skipPrompt: true, + }, + { + type: 'text', + name: 'downloadUrl', + message: 'downloadUrl', + required: false, }, { type: 'text', name: 'expiryEnqueuedAt', message: 'expiryEnqueuedAt', required: false, - skipPrompt: true, + }, + { + type: 'text', + name: 'filePath', + message: 'filePath', + required: false, }, { type: 'text', name: 'filename', message: 'filename', required: false, - skipPrompt: true, + }, + { + type: 'boolean', + name: 'isPublic', + message: 'isPublic', + required: false, }, { type: 'text', @@ -407,7 +297,12 @@ async function handleUpdate(argv: Partial>, prompter: In name: 'promotedAt', message: 'promotedAt', required: false, - skipPrompt: true, + }, + { + type: 'text', + name: 'rejectionReason', + message: 'rejectionReason', + required: false, }, { type: 'text', @@ -420,21 +315,30 @@ async function handleUpdate(argv: Partial>, prompter: In name: 'status', message: 'status', required: false, - skipPrompt: true, }, { type: 'text', name: 'tags', message: 'tags', required: false, - skipPrompt: true, }, { type: 'text', name: 'upload', message: 'upload', required: false, - skipPrompt: true, + }, + { + type: 'text', + name: 'uploadUrl', + message: 'uploadUrl', + required: false, + }, + { + type: 'text', + name: 'uploadVersions', + message: 'uploadVersions', + required: false, }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); @@ -450,15 +354,21 @@ async function handleUpdate(argv: Partial>, prompter: In bucketId: cleanedData.bucketId, contentHash: cleanedData.contentHash, description: cleanedData.description, + downloadUrl: cleanedData.downloadUrl, expiryEnqueuedAt: cleanedData.expiryEnqueuedAt, + filePath: cleanedData.filePath, filename: cleanedData.filename, + isPublic: cleanedData.isPublic, key: cleanedData.key, mimeType: cleanedData.mimeType, promotedAt: cleanedData.promotedAt, + rejectionReason: cleanedData.rejectionReason, size: cleanedData.size, status: cleanedData.status, tags: cleanedData.tags, upload: cleanedData.upload, + uploadUrl: cleanedData.uploadUrl, + uploadVersions: cleanedData.uploadVersions, }, select: { actorId: true, @@ -466,17 +376,23 @@ async function handleUpdate(argv: Partial>, prompter: In contentHash: true, createdAt: true, description: true, + downloadUrl: true, expiryEnqueuedAt: true, + filePath: true, filename: true, id: true, + isPublic: true, key: true, mimeType: true, promotedAt: true, + rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true, + uploadUrl: true, + uploadVersions: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/storage/orm/README.md b/sdk/constructive-cli/src/storage/orm/README.md index a4e42cc98d..cafc1e5a6a 100644 --- a/sdk/constructive-cli/src/storage/orm/README.md +++ b/sdk/constructive-cli/src/storage/orm/README.md @@ -22,9 +22,9 @@ const db = createClient({ | Model | Operations | |-------|------------| | `bucket` | findMany, findOne, create, update, delete | -| `file` | findMany, findOne, create, update, delete | +| `file` | findMany, findOne, update, delete | | `platformBucket` | findMany, findOne, create, update, delete | -| `platformFile` | findMany, findOne, create, update, delete | +| `platformFile` | findMany, findOne, update, delete | ## Table Operations @@ -98,23 +98,23 @@ CRUD operations for File records. | `key` | String | Yes | | `mimeType` | String | Yes | | `promotedAt` | Datetime | Yes | +| `rejectionReason` | String | Yes | | `size` | BigInt | Yes | | `status` | FileStatus | Yes | | `tags` | String | Yes | | `updatedAt` | Datetime | No | | `upload` | ConstructiveInternalTypeUpload | Yes | +| `uploadUrl` | String | Yes | +| `uploadVersions` | FileVersion | Yes | **Operations:** ```typescript // List all file records -const items = await db.file.findMany({ select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); +const items = await db.file.findMany({ select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true, uploadUrl: true, uploadVersions: true } }).execute(); // Get one by id -const item = await db.file.findOne({ id: '', select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); - -// Create -const created = await db.file.create({ data: { actorId: '', bucketId: '', contentHash: '', databaseId: '', description: '', downloadUrl: '', expiryEnqueuedAt: '', filePath: '', filename: '', isPublic: '', key: '', mimeType: '', promotedAt: '', size: '', status: '', tags: '', upload: '' }, select: { id: true } }).execute(); +const item = await db.file.findOne({ id: '', select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true, uploadUrl: true, uploadVersions: true } }).execute(); // Update const updated = await db.file.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -191,23 +191,23 @@ CRUD operations for PlatformFile records. | `key` | String | Yes | | `mimeType` | String | Yes | | `promotedAt` | Datetime | Yes | +| `rejectionReason` | String | Yes | | `size` | BigInt | Yes | | `status` | FileStatus | Yes | | `tags` | String | Yes | | `updatedAt` | Datetime | No | | `upload` | ConstructiveInternalTypeUpload | Yes | +| `uploadUrl` | String | Yes | +| `uploadVersions` | FileVersion | Yes | **Operations:** ```typescript // List all platformFile records -const items = await db.platformFile.findMany({ select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); +const items = await db.platformFile.findMany({ select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true, uploadUrl: true, uploadVersions: true } }).execute(); // Get one by id -const item = await db.platformFile.findOne({ id: '', select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); - -// Create -const created = await db.platformFile.create({ data: { actorId: '', bucketId: '', contentHash: '', description: '', downloadUrl: '', expiryEnqueuedAt: '', filePath: '', filename: '', isPublic: '', key: '', mimeType: '', promotedAt: '', size: '', status: '', tags: '', upload: '' }, select: { id: true } }).execute(); +const item = await db.platformFile.findOne({ id: '', select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true, uploadUrl: true, uploadVersions: true } }).execute(); // Update const updated = await db.platformFile.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -295,7 +295,7 @@ Upload multiple files: resolves the bucket by key, creates file rows, and return | `input` | UploadFileBulkInput (required) | ```typescript -const result = await db.mutation.uploadFiles({ input: { bucketKey: '', files: '', isPublic: '' } }).execute(); +const result = await db.mutation.uploadFiles({ input: { bucketKey: '', databaseId: '', files: '', isPublic: '' } }).execute(); ``` ### `db.mutation.uploadPlatformFile` diff --git a/sdk/constructive-cli/src/storage/orm/input-types.ts b/sdk/constructive-cli/src/storage/orm/input-types.ts index ffb823c7ee..91cc57b1e1 100644 --- a/sdk/constructive-cli/src/storage/orm/input-types.ts +++ b/sdk/constructive-cli/src/storage/orm/input-types.ts @@ -232,9 +232,10 @@ export interface UUIDListFilter { } // ============ Enum Types ============ export type BucketType = 'PRIVATE' | 'PUBLIC' | 'TEMP'; -export type FileStatus = 'EXPIRED' | 'PROCESSED' | 'REJECTED' | 'REQUESTED' | 'UPLOADED'; +export type FileStatus = 'PROCESSED' | 'REJECTED' | 'REQUESTED' | 'UPLOADED'; // ============ Custom Scalar Types ============ export type ConstructiveInternalTypeUpload = unknown; +export type FileVersion = unknown; /** Logical storage containers that group files with shared access policies and CDN behavior */ // ============ Entity Types ============ export interface Bucket { @@ -287,7 +288,7 @@ export interface File { databaseId?: string | null; /** Human-readable description or alt text for the file (mutable) */ description?: string | null; - /** URL to download this file. For public files, returns the public URL. For private files, returns a time-limited presigned URL. */ + /** URL to download this file. For public files, returns the public URL. For private files, returns a time-limited presigned URL. Null until the upload is confirmed (status uploaded or processed), and for a rejected file. */ downloadUrl?: string | null; /** When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. */ expiryEnqueuedAt?: string | null; @@ -303,15 +304,21 @@ export interface File { mimeType?: string | null; /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ promotedAt?: string | null; + /** Why the upload was rejected (declared MIME, extension and magic bytes disagreed, size mismatch, ...). NULL unless status is rejected. */ + rejectionReason?: string | null; /** File size in bytes. Immutable after INSERT. */ size?: string | null; - /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ + /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes). A requested row whose bytes never arrive within upload_url_expiry_seconds is deleted by the confirm loop. */ status?: FileStatus | null; /** User-defined tags for categorization and search (mutable) */ tags?: string[] | null; updatedAt?: string | null; /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ upload?: ConstructiveInternalTypeUpload | null; + /** URL to fetch `upload`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + uploadUrl?: string | null; + /** The versions rendered beside `upload`, narrowest first, each with a URL. Empty when there are none. */ + uploadVersions?: FileVersion[] | null; } /** Logical storage containers that group files with shared access policies and CDN behavior */ export interface PlatformBucket { @@ -360,7 +367,7 @@ export interface PlatformFile { createdAt?: string | null; /** Human-readable description or alt text for the file (mutable) */ description?: string | null; - /** URL to download this file. For public files, returns the public URL. For private files, returns a time-limited presigned URL. */ + /** URL to download this file. For public files, returns the public URL. For private files, returns a time-limited presigned URL. Null until the upload is confirmed (status uploaded or processed), and for a rejected file. */ downloadUrl?: string | null; /** When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. */ expiryEnqueuedAt?: string | null; @@ -376,15 +383,21 @@ export interface PlatformFile { mimeType?: string | null; /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ promotedAt?: string | null; + /** Why the upload was rejected (declared MIME, extension and magic bytes disagreed, size mismatch, ...). NULL unless status is rejected. */ + rejectionReason?: string | null; /** File size in bytes. Immutable after INSERT. */ size?: string | null; - /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ + /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes). A requested row whose bytes never arrive within upload_url_expiry_seconds is deleted by the confirm loop. */ status?: FileStatus | null; /** User-defined tags for categorization and search (mutable) */ tags?: string[] | null; updatedAt?: string | null; /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ upload?: ConstructiveInternalTypeUpload | null; + /** URL to fetch `upload`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + uploadUrl?: string | null; + /** The versions rendered beside `upload`, narrowest first, each with a URL. Empty when there are none. */ + uploadVersions?: FileVersion[] | null; } // ============ Relation Helper Types ============ export interface ConnectionResult { @@ -473,11 +486,19 @@ export type FileSelect = { key?: boolean; mimeType?: boolean; promotedAt?: boolean; + rejectionReason?: boolean; size?: boolean; status?: boolean; tags?: boolean; updatedAt?: boolean; upload?: boolean; + uploadUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + uploadVersions?: boolean; bucket?: { select: BucketSelect; }; @@ -532,11 +553,19 @@ export type PlatformFileSelect = { key?: boolean; mimeType?: boolean; promotedAt?: boolean; + rejectionReason?: boolean; size?: boolean; status?: boolean; tags?: boolean; updatedAt?: boolean; upload?: boolean; + uploadUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + uploadVersions?: boolean; bucket?: { select: PlatformBucketSelect; }; @@ -633,6 +662,8 @@ export interface FileFilter { or?: FileFilter[]; /** Filter by the object’s `promotedAt` field. */ promotedAt?: DatetimeFilter; + /** Filter by the object’s `rejectionReason` field. */ + rejectionReason?: StringFilter; /** Filter by the object’s `size` field. */ size?: BigIntFilter; /** Filter by the object’s `status` field. */ @@ -731,6 +762,8 @@ export interface PlatformFileFilter { or?: PlatformFileFilter[]; /** Filter by the object’s `promotedAt` field. */ promotedAt?: DatetimeFilter; + /** Filter by the object’s `rejectionReason` field. */ + rejectionReason?: StringFilter; /** Filter by the object’s `size` field. */ size?: BigIntFilter; /** Filter by the object’s `status` field. */ @@ -813,6 +846,8 @@ export type FileOrderBy = | 'PRIMARY_KEY_DESC' | 'PROMOTED_AT_ASC' | 'PROMOTED_AT_DESC' + | 'REJECTION_REASON_ASC' + | 'REJECTION_REASON_DESC' | 'SIZE_ASC' | 'SIZE_DESC' | 'STATUS_ASC' @@ -889,6 +924,8 @@ export type PlatformFileOrderBy = | 'PRIMARY_KEY_DESC' | 'PROMOTED_AT_ASC' | 'PROMOTED_AT_DESC' + | 'REJECTION_REASON_ASC' + | 'REJECTION_REASON_DESC' | 'SIZE_ASC' | 'SIZE_DESC' | 'STATUS_ASC' @@ -946,24 +983,6 @@ export interface DeleteBucketInput { clientMutationId?: string; id: string; } -export interface CreateFileInput { - clientMutationId?: string; - file: { - actorId: string; - bucketId: string; - contentHash?: string; - description?: string; - expiryEnqueuedAt?: string; - filename?: string; - key: string; - mimeType: string; - promotedAt?: string; - size: string; - status?: FileStatus; - tags?: string[]; - upload?: ConstructiveInternalTypeUpload; - }; -} export interface FilePatch { actorId?: string | null; bucketId?: string | null; @@ -976,11 +995,11 @@ export interface FilePatch { key?: string | null; mimeType?: string | null; promotedAt?: string | null; + rejectionReason?: string | null; size?: string | null; status?: FileStatus | null; tags?: string[] | null; upload?: ConstructiveInternalTypeUpload | null; - uploadUpload?: File | null; } export interface UpdateFileInput { clientMutationId?: string; @@ -1035,24 +1054,6 @@ export interface DeletePlatformBucketInput { clientMutationId?: string; id: string; } -export interface CreatePlatformFileInput { - clientMutationId?: string; - platformFile: { - actorId: string; - bucketId: string; - contentHash?: string; - description?: string; - expiryEnqueuedAt?: string; - filename?: string; - key: string; - mimeType: string; - promotedAt?: string; - size: string; - status?: FileStatus; - tags?: string[]; - upload?: ConstructiveInternalTypeUpload; - }; -} export interface PlatformFilePatch { actorId?: string | null; bucketId?: string | null; @@ -1064,11 +1065,11 @@ export interface PlatformFilePatch { key?: string | null; mimeType?: string | null; promotedAt?: string | null; + rejectionReason?: string | null; size?: string | null; status?: FileStatus | null; tags?: string[] | null; upload?: ConstructiveInternalTypeUpload | null; - uploadUpload?: File | null; } export interface UpdatePlatformFileInput { clientMutationId?: string; @@ -1117,6 +1118,8 @@ export interface UploadFileInput { contentHash: string; /** MIME type of the file */ contentType: string; + /** Database the file belongs to. Omit for the database of the current session; a caller who is not a member of the named database is refused. */ + databaseId?: string; /** Original filename (optional) */ filename?: string; /** Which default bucket to resolve when bucketKey is omitted: the public one (true) or the private one (default false). Ignored when bucketKey is given. */ @@ -1129,6 +1132,8 @@ export interface UploadFileInput { export interface UploadFileBulkInput { /** Bucket key (e.g., "public", "private"). Omit to use the database's default bucket for the requested access. */ bucketKey?: string; + /** Database the file belongs to. Omit for the database of the current session; a caller who is not a member of the named database is refused. */ + databaseId?: string; /** Array of files to upload */ files: UploadFileBulkFileInput[]; /** Which default bucket to resolve when bucketKey is omitted. Ignored when bucketKey is given. */ @@ -1359,38 +1364,6 @@ export interface IntervalInput { /** A quantity of years. */ years?: number; } -/** An input for mutations affecting `File` */ -export interface FileInput { - /** User who uploaded this file. Forced to current_user_id() on INSERT. Used for UPDATE/DELETE authorization. */ - actorId: string; - /** Bucket this file belongs to. Determines owner_id and is_public via inheritance trigger. */ - bucketId: string; - /** SHA-256 content hash for integrity verification and dedup. In default mode, equals the S3 key. In custom key mode, stored separately. */ - contentHash?: string; - createdAt?: string; - /** Human-readable description or alt text for the file (mutable) */ - description?: string; - /** When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. */ - expiryEnqueuedAt?: string; - /** Original filename provided by the uploader. Used for display and Content-Disposition header on download. */ - filename?: string; - id?: string; - /** S3 object key for this file, unique within its bucket */ - key: string; - /** MIME type of the file (e.g. image/png, application/pdf). Immutable after INSERT. */ - mimeType: string; - /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ - promotedAt?: string; - /** File size in bytes. Immutable after INSERT. */ - size: string; - /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ - status?: FileStatus; - /** User-defined tags for categorization and search (mutable) */ - tags?: string[]; - updatedAt?: string; - /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ - upload?: ConstructiveInternalTypeUpload; -} /** An input for mutations affecting `PlatformBucket` */ export interface PlatformBucketInput { /** User who created this bucket. Forced to current_user_id() on INSERT. */ @@ -1425,38 +1398,6 @@ export interface PlatformBucketInput { type?: BucketType; updatedAt?: string; } -/** An input for mutations affecting `PlatformFile` */ -export interface PlatformFileInput { - /** User who uploaded this file. Forced to current_user_id() on INSERT. Used for UPDATE/DELETE authorization. */ - actorId: string; - /** Bucket this file belongs to. Determines owner_id and is_public via inheritance trigger. */ - bucketId: string; - /** SHA-256 content hash for integrity verification and dedup. In default mode, equals the S3 key. In custom key mode, stored separately. */ - contentHash?: string; - createdAt?: string; - /** Human-readable description or alt text for the file (mutable) */ - description?: string; - /** When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. */ - expiryEnqueuedAt?: string; - /** Original filename provided by the uploader. Used for display and Content-Disposition header on download. */ - filename?: string; - id?: string; - /** S3 object key for this file, unique within its bucket */ - key: string; - /** MIME type of the file (e.g. image/png, application/pdf). Immutable after INSERT. */ - mimeType: string; - /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ - promotedAt?: string; - /** File size in bytes. Immutable after INSERT. */ - size: string; - /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ - status?: FileStatus; - /** User-defined tags for categorization and search (mutable) */ - tags?: string[]; - updatedAt?: string; - /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ - upload?: ConstructiveInternalTypeUpload; -} export interface UploadFileBulkFileInput { /** SHA-256 content hash (hex-encoded, 64 chars) */ contentHash: string; @@ -1574,6 +1515,8 @@ export interface FileFilter { or?: FileFilter[]; /** Filter by the object’s `promotedAt` field. */ promotedAt?: DatetimeFilter; + /** Filter by the object’s `rejectionReason` field. */ + rejectionReason?: StringFilter; /** Filter by the object’s `size` field. */ size?: BigIntFilter; /** Filter by the object’s `status` field. */ @@ -1674,6 +1617,8 @@ export interface PlatformFileFilter { or?: PlatformFileFilter[]; /** Filter by the object’s `promotedAt` field. */ promotedAt?: DatetimeFilter; + /** Filter by the object’s `rejectionReason` field. */ + rejectionReason?: StringFilter; /** Filter by the object’s `size` field. */ size?: BigIntFilter; /** Filter by the object’s `status` field. */ @@ -1956,6 +1901,8 @@ export interface UploadFilePayload { fileId: string; /** The S3 object key */ key: string; + /** The exact headers the PUT to uploadUrl must send (Content-Type and every header the URL is signed over, e.g. x-amz-checksum-sha256 and x-amz-meta-upload-id). Forward them as-is. Null if deduplicated. */ + uploadHeaders?: Record | null; /** Presigned PUT URL (null if deduplicated) */ uploadUrl?: string | null; } @@ -1965,6 +1912,7 @@ export type UploadFilePayloadSelect = { file?: boolean; fileId?: boolean; key?: boolean; + uploadHeaders?: boolean; uploadUrl?: boolean; }; export interface UploadFileBulkPayload { @@ -1986,6 +1934,8 @@ export interface UploadPlatformFilePayload { fileId: string; /** The S3 object key */ key: string; + /** The exact headers the PUT to uploadUrl must send (Content-Type and every header the URL is signed over, e.g. x-amz-checksum-sha256 and x-amz-meta-upload-id). Forward them as-is. Null if deduplicated. */ + uploadHeaders?: Record | null; /** Presigned PUT URL (null if deduplicated) */ uploadUrl?: string | null; } @@ -1995,6 +1945,7 @@ export type UploadPlatformFilePayloadSelect = { file?: boolean; fileId?: boolean; key?: boolean; + uploadHeaders?: boolean; uploadUrl?: boolean; }; export interface UploadPlatformFileBulkPayload { @@ -2050,21 +2001,6 @@ export type DeleteBucketPayloadSelect = { }; clientMutationId?: boolean; }; -export interface CreateFilePayload { - clientMutationId?: string | null; - /** The `File` that was created by this mutation. */ - file?: File | null; - fileEdge?: FileEdge | null; -} -export type CreateFilePayloadSelect = { - clientMutationId?: boolean; - file?: { - select: FileSelect; - }; - fileEdge?: { - select: FileEdgeSelect; - }; -}; export interface UpdateFilePayload { clientMutationId?: string | null; /** The `File` that was updated by this mutation. */ @@ -2140,21 +2076,6 @@ export type DeletePlatformBucketPayloadSelect = { select: PlatformBucketEdgeSelect; }; }; -export interface CreatePlatformFilePayload { - clientMutationId?: string | null; - /** The `PlatformFile` that was created by this mutation. */ - platformFile?: PlatformFile | null; - platformFileEdge?: PlatformFileEdge | null; -} -export type CreatePlatformFilePayloadSelect = { - clientMutationId?: boolean; - platformFile?: { - select: PlatformFileSelect; - }; - platformFileEdge?: { - select: PlatformFileEdgeSelect; - }; -}; export interface UpdatePlatformFilePayload { clientMutationId?: string | null; /** The `PlatformFile` that was updated by this mutation. */ @@ -2216,6 +2137,8 @@ export interface UploadFileBulkFilePayload { file?: Record | null; fileId: string; key: string; + /** The exact headers the PUT to uploadUrl must send. */ + uploadHeaders?: Record | null; uploadUrl?: string | null; } export type UploadFileBulkFilePayloadSelect = { @@ -2224,6 +2147,7 @@ export type UploadFileBulkFilePayloadSelect = { file?: boolean; fileId?: boolean; key?: boolean; + uploadHeaders?: boolean; uploadUrl?: boolean; }; export interface UploadPlatformFileBulkFilePayload { @@ -2233,6 +2157,8 @@ export interface UploadPlatformFileBulkFilePayload { file?: Record | null; fileId: string; key: string; + /** The exact headers the PUT to uploadUrl must send. */ + uploadHeaders?: Record | null; uploadUrl?: string | null; } export type UploadPlatformFileBulkFilePayloadSelect = { @@ -2241,6 +2167,7 @@ export type UploadPlatformFileBulkFilePayloadSelect = { file?: boolean; fileId?: boolean; key?: boolean; + uploadHeaders?: boolean; uploadUrl?: boolean; }; /** A `Bucket` edge in the connection. */ diff --git a/sdk/constructive-cli/src/storage/orm/models/file.ts b/sdk/constructive-cli/src/storage/orm/models/file.ts index a2d0e48ee3..e702b67170 100644 --- a/sdk/constructive-cli/src/storage/orm/models/file.ts +++ b/sdk/constructive-cli/src/storage/orm/models/file.ts @@ -29,7 +29,6 @@ import type { FileSelect, FileFilter, FileOrderBy, - CreateFileInput, UpdateFileInput, FilePatch, } from '../input-types'; @@ -144,33 +143,6 @@ export class FileModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createFile: { - file: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'File', - 'createFile', - 'file', - args.select, - args.data, - 'CreateFileInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'File', - fieldName: 'createFile', - document, - variables, - }); - } update( args: UpdateArgs< S, diff --git a/sdk/constructive-cli/src/storage/orm/models/platformFile.ts b/sdk/constructive-cli/src/storage/orm/models/platformFile.ts index bfc7890e99..921d7f3f92 100644 --- a/sdk/constructive-cli/src/storage/orm/models/platformFile.ts +++ b/sdk/constructive-cli/src/storage/orm/models/platformFile.ts @@ -29,7 +29,6 @@ import type { PlatformFileSelect, PlatformFileFilter, PlatformFileOrderBy, - CreatePlatformFileInput, UpdatePlatformFileInput, PlatformFilePatch, } from '../input-types'; @@ -144,33 +143,6 @@ export class PlatformFileModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformFile: { - platformFile: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformFile', - 'createPlatformFile', - 'platformFile', - args.select, - args.data, - 'CreatePlatformFileInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformFile', - fieldName: 'createPlatformFile', - document, - variables, - }); - } update( args: UpdateArgs< S, diff --git a/sdk/constructive-react/src/admin/hooks/README.md b/sdk/constructive-react/src/admin/hooks/README.md index 9ec9e73be9..0278fbe1bf 100644 --- a/sdk/constructive-react/src/admin/hooks/README.md +++ b/sdk/constructive-react/src/admin/hooks/README.md @@ -84,12 +84,10 @@ function App() { | `useDeleteMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | | `useMyPendingAppInvitesQuery` | Query | List all myPendingAppInvites | | `useMyPendingAppInvitesRecordQuery` | Query | Get one myPendingAppInvitesRecord | -| `useCreateMyPendingAppInvitesRecordMutation` | Mutation | Create a myPendingAppInvitesRecord | | `useUpdateMyPendingAppInvitesRecordMutation` | Mutation | Update a myPendingAppInvitesRecord | | `useDeleteMyPendingAppInvitesRecordMutation` | Mutation | Delete a myPendingAppInvitesRecord | | `useMyPendingOrgInvitesQuery` | Query | List all myPendingOrgInvites | | `useMyPendingOrgInvitesRecordQuery` | Query | Get one myPendingOrgInvitesRecord | -| `useCreateMyPendingOrgInvitesRecordMutation` | Mutation | Create a myPendingOrgInvitesRecord | | `useUpdateMyPendingOrgInvitesRecordMutation` | Mutation | Update a myPendingOrgInvitesRecord | | `useDeleteMyPendingOrgInvitesRecordMutation` | Mutation | Delete a myPendingOrgInvitesRecord | | `useOrgAdminGrantsQuery` | Query | Records of admin role grants and revocations between members | @@ -123,9 +121,7 @@ function App() { | `useUpdateOrgClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | | `useDeleteOrgClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | | `useOrgGetManagersQuery` | Query | List all orgGetManagers | -| `useCreateOrgGetManagersRecordMutation` | Mutation | Create a orgGetManagersRecord | | `useOrgGetSubordinatesQuery` | Query | List all orgGetSubordinates | -| `useCreateOrgGetSubordinatesRecordMutation` | Mutation | Create a orgGetSubordinatesRecord | | `useOrgGrantsQuery` | Query | Records of individual capability grants and revocations for members via bitmask | | `useOrgGrantQuery` | Query | Records of individual capability grants and revocations for members via bitmask | | `useCreateOrgGrantMutation` | Mutation | Records of individual capability grants and revocations for members via bitmask | @@ -409,11 +405,6 @@ const { data: item } = useMyPendingAppInvitesRecordQuery({ selection: { fields: { channel: true, createdAt: true, expiresAt: true, id: true, senderId: true } }, }); -// Create a myPendingAppInvitesRecord -const { mutate: create } = useCreateMyPendingAppInvitesRecordMutation({ - selection: { fields: { id: true } }, -}); -create({ channel: '', expiresAt: '', senderId: '' }); ``` ### MyPendingOrgInvitesRecord @@ -430,11 +421,6 @@ const { data: item } = useMyPendingOrgInvitesRecordQuery({ selection: { fields: { channel: true, createdAt: true, entityId: true, expiresAt: true, id: true, senderId: true } }, }); -// Create a myPendingOrgInvitesRecord -const { mutate: create } = useCreateMyPendingOrgInvitesRecordMutation({ - selection: { fields: { id: true } }, -}); -create({ channel: '', entityId: '', expiresAt: '', senderId: '' }); ``` ### OrgAdminGrant @@ -571,11 +557,6 @@ const { data, isLoading } = useOrgGetManagersQuery({ selection: { fields: { depth: true, userId: true } }, }); -// Create a orgGetManagersRecord -const { mutate: create } = useCreateOrgGetManagersRecordMutation({ - selection: { fields: { id: true } }, -}); -create({ depth: '', userId: '' }); ``` ### OrgGetSubordinatesRecord @@ -586,11 +567,6 @@ const { data, isLoading } = useOrgGetSubordinatesQuery({ selection: { fields: { depth: true, userId: true } }, }); -// Create a orgGetSubordinatesRecord -const { mutate: create } = useCreateOrgGetSubordinatesRecordMutation({ - selection: { fields: { id: true } }, -}); -create({ depth: '', userId: '' }); ``` ### OrgGrant @@ -661,20 +637,20 @@ create({ actorId: '', entityId: '', isAdmin: '' }); ```typescript // List all orgMemberProfiles const { data, isLoading } = useOrgMemberProfilesQuery({ - selection: { fields: { actorId: true, bio: true, createdAt: true, displayName: true, email: true, entityId: true, id: true, membershipId: true, profilePicture: true, title: true, updatedAt: true } }, + selection: { fields: { actorId: true, bio: true, createdAt: true, displayName: true, email: true, entityId: true, id: true, membershipId: true, profilePicture: true, profilePictureUrl: true, profilePictureVersions: true, title: true, updatedAt: true } }, }); // Get one orgMemberProfile const { data: item } = useOrgMemberProfileQuery({ id: '', - selection: { fields: { actorId: true, bio: true, createdAt: true, displayName: true, email: true, entityId: true, id: true, membershipId: true, profilePicture: true, title: true, updatedAt: true } }, + selection: { fields: { actorId: true, bio: true, createdAt: true, displayName: true, email: true, entityId: true, id: true, membershipId: true, profilePicture: true, profilePictureUrl: true, profilePictureVersions: true, title: true, updatedAt: true } }, }); // Create a orgMemberProfile const { mutate: create } = useCreateOrgMemberProfileMutation({ selection: { fields: { id: true } }, }); -create({ actorId: '', bio: '', displayName: '', email: '', entityId: '', membershipId: '', profilePicture: '', title: '' }); +create({ actorId: '', bio: '', displayName: '', email: '', entityId: '', membershipId: '', profilePicture: '', profilePictureUrl: '', profilePictureVersions: '', title: '' }); ``` ### OrgMembership diff --git a/sdk/constructive-react/src/admin/hooks/mutations/index.ts b/sdk/constructive-react/src/admin/hooks/mutations/index.ts index 9da3dda5d2..19c059086f 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/index.ts @@ -33,8 +33,6 @@ export * from './useDeleteAppOwnerGrantMutation'; export * from './useCreateMembershipTypeMutation'; export * from './useUpdateMembershipTypeMutation'; export * from './useDeleteMembershipTypeMutation'; -export * from './useCreateMyPendingAppInvitesRecordMutation'; -export * from './useCreateMyPendingOrgInvitesRecordMutation'; export * from './useCreateOrgAdminGrantMutation'; export * from './useUpdateOrgAdminGrantMutation'; export * from './useDeleteOrgAdminGrantMutation'; @@ -53,8 +51,6 @@ export * from './useDeleteOrgChartEdgeGrantMutation'; export * from './useCreateOrgClaimedInviteMutation'; export * from './useUpdateOrgClaimedInviteMutation'; export * from './useDeleteOrgClaimedInviteMutation'; -export * from './useCreateOrgGetManagersRecordMutation'; -export * from './useCreateOrgGetSubordinatesRecordMutation'; export * from './useCreateOrgGrantMutation'; export * from './useUpdateOrgGrantMutation'; export * from './useDeleteOrgGrantMutation'; diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateMyPendingAppInvitesRecordMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateMyPendingAppInvitesRecordMutation.ts deleted file mode 100644 index c0720ca0e6..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateMyPendingAppInvitesRecordMutation.ts +++ /dev/null @@ -1,97 +0,0 @@ -/** - * Create mutation hook for MyPendingAppInvitesRecord - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { myPendingAppInvitesRecordKeys } from '../query-keys'; -import { myPendingAppInvitesRecordMutationKeys } from '../mutation-keys'; -import type { - MyPendingAppInvitesRecordSelect, - MyPendingAppInvitesRecordWithRelations, - CreateMyPendingAppInvitesRecordInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - MyPendingAppInvitesRecordSelect, - MyPendingAppInvitesRecordWithRelations, - CreateMyPendingAppInvitesRecordInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a MyPendingAppInvitesRecord - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateMyPendingAppInvitesRecordMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateMyPendingAppInvitesRecordMutation< - S extends MyPendingAppInvitesRecordSelect, ->( - params: { - selection: { - fields: S & MyPendingAppInvitesRecordSelect; - } & HookStrictSelect, MyPendingAppInvitesRecordSelect>; - } & Omit< - UseMutationOptions< - { - createMyPendingAppInvitesRecord: { - myPendingAppInvitesRecord: InferSelectResult; - }; - }, - Error, - CreateMyPendingAppInvitesRecordInput['myPendingAppInvitesRecord'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createMyPendingAppInvitesRecord: { - myPendingAppInvitesRecord: InferSelectResult; - }; - }, - Error, - CreateMyPendingAppInvitesRecordInput['myPendingAppInvitesRecord'] ->; -export function useCreateMyPendingAppInvitesRecordMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - CreateMyPendingAppInvitesRecordInput['myPendingAppInvitesRecord'] - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: myPendingAppInvitesRecordMutationKeys.create(), - mutationFn: (data: CreateMyPendingAppInvitesRecordInput['myPendingAppInvitesRecord']) => - getClient() - .myPendingAppInvitesRecord.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: myPendingAppInvitesRecordKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateMyPendingOrgInvitesRecordMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateMyPendingOrgInvitesRecordMutation.ts deleted file mode 100644 index df5f551ac6..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateMyPendingOrgInvitesRecordMutation.ts +++ /dev/null @@ -1,97 +0,0 @@ -/** - * Create mutation hook for MyPendingOrgInvitesRecord - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { myPendingOrgInvitesRecordKeys } from '../query-keys'; -import { myPendingOrgInvitesRecordMutationKeys } from '../mutation-keys'; -import type { - MyPendingOrgInvitesRecordSelect, - MyPendingOrgInvitesRecordWithRelations, - CreateMyPendingOrgInvitesRecordInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - MyPendingOrgInvitesRecordSelect, - MyPendingOrgInvitesRecordWithRelations, - CreateMyPendingOrgInvitesRecordInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a MyPendingOrgInvitesRecord - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateMyPendingOrgInvitesRecordMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateMyPendingOrgInvitesRecordMutation< - S extends MyPendingOrgInvitesRecordSelect, ->( - params: { - selection: { - fields: S & MyPendingOrgInvitesRecordSelect; - } & HookStrictSelect, MyPendingOrgInvitesRecordSelect>; - } & Omit< - UseMutationOptions< - { - createMyPendingOrgInvitesRecord: { - myPendingOrgInvitesRecord: InferSelectResult; - }; - }, - Error, - CreateMyPendingOrgInvitesRecordInput['myPendingOrgInvitesRecord'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createMyPendingOrgInvitesRecord: { - myPendingOrgInvitesRecord: InferSelectResult; - }; - }, - Error, - CreateMyPendingOrgInvitesRecordInput['myPendingOrgInvitesRecord'] ->; -export function useCreateMyPendingOrgInvitesRecordMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - CreateMyPendingOrgInvitesRecordInput['myPendingOrgInvitesRecord'] - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: myPendingOrgInvitesRecordMutationKeys.create(), - mutationFn: (data: CreateMyPendingOrgInvitesRecordInput['myPendingOrgInvitesRecord']) => - getClient() - .myPendingOrgInvitesRecord.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: myPendingOrgInvitesRecordKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgGetManagersRecordMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgGetManagersRecordMutation.ts deleted file mode 100644 index 949ce41041..0000000000 --- a/sdk/constructive-react/src/admin/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/admin/hooks/mutations/useCreateOrgGetSubordinatesRecordMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgGetSubordinatesRecordMutation.ts deleted file mode 100644 index 237f47a7e3..0000000000 --- a/sdk/constructive-react/src/admin/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/admin/orm/README.md b/sdk/constructive-react/src/admin/orm/README.md index 0a5e8c1664..103185f21e 100644 --- a/sdk/constructive-react/src/admin/orm/README.md +++ b/sdk/constructive-react/src/admin/orm/README.md @@ -31,16 +31,16 @@ const db = createClient({ | `appMembershipDefault` | findMany, findOne, create, update, delete | | `appOwnerGrant` | findMany, findOne, create, update, delete | | `membershipType` | findMany, findOne, create, update, delete | -| `myPendingAppInvitesRecord` | findMany, findOne, create, update, delete | -| `myPendingOrgInvitesRecord` | findMany, findOne, create, update, delete | +| `myPendingAppInvitesRecord` | findMany, findOne, update, delete | +| `myPendingOrgInvitesRecord` | findMany, findOne, update, delete | | `orgAdminGrant` | findMany, findOne, create, update, delete | | `orgCapabilityDefaultCapability` | findMany, findOne, create, update, delete | | `orgCapabilityDefaultGrant` | findMany, findOne, create, update, delete | | `orgChartEdge` | findMany, findOne, create, update, delete | | `orgChartEdgeGrant` | findMany, findOne, create, update, delete | | `orgClaimedInvite` | findMany, findOne, create, update, delete | -| `orgGetManagersRecord` | findMany, findOne, create, update, delete | -| `orgGetSubordinatesRecord` | findMany, findOne, create, update, delete | +| `orgGetManagersRecord` | findMany, findOne, update, delete | +| `orgGetSubordinatesRecord` | findMany, findOne, update, delete | | `orgGrant` | findMany, findOne, create, update, delete | | `orgInvite` | findMany, findOne, create, update, delete | | `orgMember` | findMany, findOne, create, update, delete | @@ -438,9 +438,6 @@ const items = await db.myPendingAppInvitesRecord.findMany({ select: { channel: t // Get one by id const item = await db.myPendingAppInvitesRecord.findOne({ id: '', select: { channel: true, createdAt: true, expiresAt: true, id: true, senderId: true } }).execute(); -// Create -const created = await db.myPendingAppInvitesRecord.create({ data: { channel: '', expiresAt: '', senderId: '' }, select: { id: true } }).execute(); - // Update const updated = await db.myPendingAppInvitesRecord.update({ where: { id: '' }, data: { channel: '' }, select: { id: true } }).execute(); @@ -472,9 +469,6 @@ const items = await db.myPendingOrgInvitesRecord.findMany({ select: { channel: t // Get one by id const item = await db.myPendingOrgInvitesRecord.findOne({ id: '', select: { channel: true, createdAt: true, entityId: true, expiresAt: true, id: true, senderId: true } }).execute(); -// Create -const created = await db.myPendingOrgInvitesRecord.create({ data: { channel: '', entityId: '', expiresAt: '', senderId: '' }, select: { id: true } }).execute(); - // Update const updated = await db.myPendingOrgInvitesRecord.update({ where: { id: '' }, data: { channel: '' }, select: { id: true } }).execute(); @@ -713,9 +707,6 @@ const items = await db.orgGetManagersRecord.findMany({ select: { depth: true, us // Get one by id const item = await db.orgGetManagersRecord.findOne({ id: '', select: { depth: true, userId: true } }).execute(); -// Create -const created = await db.orgGetManagersRecord.create({ data: { depth: '', userId: '' }, select: { id: true } }).execute(); - // Update const updated = await db.orgGetManagersRecord.update({ where: { id: '' }, data: { depth: '' }, select: { id: true } }).execute(); @@ -743,9 +734,6 @@ const items = await db.orgGetSubordinatesRecord.findMany({ select: { depth: true // Get one by id const item = await db.orgGetSubordinatesRecord.findOne({ id: '', select: { depth: true, userId: true } }).execute(); -// Create -const created = await db.orgGetSubordinatesRecord.create({ data: { depth: '', userId: '' }, select: { id: true } }).execute(); - // Update const updated = await db.orgGetSubordinatesRecord.update({ where: { id: '' }, data: { depth: '' }, select: { id: true } }).execute(); @@ -884,6 +872,8 @@ CRUD operations for OrgMemberProfile records. | `id` | UUID | No | | `membershipId` | UUID | Yes | | `profilePicture` | ConstructiveInternalTypeImage | Yes | +| `profilePictureUrl` | String | Yes | +| `profilePictureVersions` | FileVersion | Yes | | `title` | String | Yes | | `updatedAt` | Datetime | No | @@ -891,13 +881,13 @@ CRUD operations for OrgMemberProfile records. ```typescript // List all orgMemberProfile records -const items = await db.orgMemberProfile.findMany({ select: { actorId: true, bio: true, createdAt: true, displayName: true, email: true, entityId: true, id: true, membershipId: true, profilePicture: true, title: true, updatedAt: true } }).execute(); +const items = await db.orgMemberProfile.findMany({ select: { actorId: true, bio: true, createdAt: true, displayName: true, email: true, entityId: true, id: true, membershipId: true, profilePicture: true, profilePictureUrl: true, profilePictureVersions: true, title: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgMemberProfile.findOne({ id: '', select: { actorId: true, bio: true, createdAt: true, displayName: true, email: true, entityId: true, id: true, membershipId: true, profilePicture: true, title: true, updatedAt: true } }).execute(); +const item = await db.orgMemberProfile.findOne({ id: '', select: { actorId: true, bio: true, createdAt: true, displayName: true, email: true, entityId: true, id: true, membershipId: true, profilePicture: true, profilePictureUrl: true, profilePictureVersions: true, title: true, updatedAt: true } }).execute(); // Create -const created = await db.orgMemberProfile.create({ data: { actorId: '', bio: '', displayName: '', email: '', entityId: '', membershipId: '', profilePicture: '', title: '' }, select: { id: true } }).execute(); +const created = await db.orgMemberProfile.create({ data: { actorId: '', bio: '', displayName: '', email: '', entityId: '', membershipId: '', profilePicture: '', profilePictureUrl: '', profilePictureVersions: '', title: '' }, select: { id: true } }).execute(); // Update const updated = await db.orgMemberProfile.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); diff --git a/sdk/constructive-react/src/admin/orm/input-types.ts b/sdk/constructive-react/src/admin/orm/input-types.ts index 9bc1f6a8e9..ce8804f4d9 100644 --- a/sdk/constructive-react/src/admin/orm/input-types.ts +++ b/sdk/constructive-react/src/admin/orm/input-types.ts @@ -233,6 +233,7 @@ export interface UUIDListFilter { // ============ Custom Scalar Types ============ export type ConstructiveInternalTypeEmail = unknown; export type ConstructiveInternalTypeImage = unknown; +export type FileVersion = unknown; /** Records of admin role grants and revocations between members */ // ============ Entity Types ============ export interface AppAdminGrant { @@ -576,6 +577,10 @@ export interface OrgMemberProfile { membershipId?: string | null; /** Profile picture visible to other entity members */ profilePicture?: ConstructiveInternalTypeImage | null; + /** URL to fetch `profilePicture`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + profilePictureUrl?: string | null; + /** The versions rendered beside `profilePicture`, narrowest first, each with a URL. Empty when there are none. */ + profilePictureVersions?: FileVersion[] | null; /** Job title or role description visible to other entity members */ title?: string | null; updatedAt?: string | null; @@ -987,6 +992,13 @@ export type OrgMemberProfileSelect = { id?: boolean; membershipId?: boolean; profilePicture?: boolean; + profilePictureUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + profilePictureVersions?: boolean; title?: boolean; updatedAt?: boolean; membership?: { @@ -2582,14 +2594,6 @@ export interface DeleteMembershipTypeInput { clientMutationId?: string; id: number; } -export interface CreateMyPendingAppInvitesRecordInput { - clientMutationId?: string; - myPendingAppInvitesRecord: { - channel?: string; - expiresAt?: string; - senderId: string; - }; -} export interface MyPendingAppInvitesRecordPatch { channel?: string | null; expiresAt?: string | null; @@ -2604,15 +2608,6 @@ export interface DeleteMyPendingAppInvitesRecordInput { clientMutationId?: string; id: string; } -export interface CreateMyPendingOrgInvitesRecordInput { - clientMutationId?: string; - myPendingOrgInvitesRecord: { - channel?: string; - entityId: string; - expiresAt?: string; - senderId: string; - }; -} export interface MyPendingOrgInvitesRecordPatch { channel?: string | null; entityId?: string | null; @@ -2776,13 +2771,6 @@ export interface DeleteOrgClaimedInviteInput { clientMutationId?: string; id: string; } -export interface CreateOrgGetManagersRecordInput { - clientMutationId?: string; - orgGetManagersRecord: { - depth?: number; - userId: string; - }; -} export interface OrgGetManagersRecordPatch { depth?: number | null; userId?: string | null; @@ -2796,13 +2784,6 @@ export interface DeleteOrgGetManagersRecordInput { clientMutationId?: string; id: string; } -export interface CreateOrgGetSubordinatesRecordInput { - clientMutationId?: string; - orgGetSubordinatesRecord: { - depth?: number; - userId: string; - }; -} export interface OrgGetSubordinatesRecordPatch { depth?: number | null; userId?: string | null; @@ -2931,7 +2912,6 @@ export interface OrgMemberProfilePatch { entityId?: string | null; membershipId?: string | null; profilePicture?: ConstructiveInternalTypeImage | null; - profilePictureUpload?: File | null; title?: string | null; } export interface UpdateOrgMemberProfileInput { diff --git a/sdk/constructive-react/src/admin/orm/models/myPendingAppInvitesRecord.ts b/sdk/constructive-react/src/admin/orm/models/myPendingAppInvitesRecord.ts index 498d67ae85..dc0fa5a44f 100644 --- a/sdk/constructive-react/src/admin/orm/models/myPendingAppInvitesRecord.ts +++ b/sdk/constructive-react/src/admin/orm/models/myPendingAppInvitesRecord.ts @@ -29,7 +29,6 @@ import type { MyPendingAppInvitesRecordSelect, MyPendingAppInvitesRecordFilter, MyPendingAppInvitesRecordsOrderBy, - CreateMyPendingAppInvitesRecordInput, UpdateMyPendingAppInvitesRecordInput, MyPendingAppInvitesRecordPatch, } from '../input-types'; @@ -146,31 +145,4 @@ export class MyPendingAppInvitesRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createMyPendingAppInvitesRecord: { - myPendingAppInvitesRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'MyPendingAppInvitesRecord', - 'createMyPendingAppInvitesRecord', - 'myPendingAppInvitesRecord', - args.select, - args.data, - 'CreateMyPendingAppInvitesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'MyPendingAppInvitesRecord', - fieldName: 'createMyPendingAppInvitesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/admin/orm/models/myPendingOrgInvitesRecord.ts b/sdk/constructive-react/src/admin/orm/models/myPendingOrgInvitesRecord.ts index b5913b8869..274dc17d9e 100644 --- a/sdk/constructive-react/src/admin/orm/models/myPendingOrgInvitesRecord.ts +++ b/sdk/constructive-react/src/admin/orm/models/myPendingOrgInvitesRecord.ts @@ -29,7 +29,6 @@ import type { MyPendingOrgInvitesRecordSelect, MyPendingOrgInvitesRecordFilter, MyPendingOrgInvitesRecordsOrderBy, - CreateMyPendingOrgInvitesRecordInput, UpdateMyPendingOrgInvitesRecordInput, MyPendingOrgInvitesRecordPatch, } from '../input-types'; @@ -146,31 +145,4 @@ export class MyPendingOrgInvitesRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createMyPendingOrgInvitesRecord: { - myPendingOrgInvitesRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'MyPendingOrgInvitesRecord', - 'createMyPendingOrgInvitesRecord', - 'myPendingOrgInvitesRecord', - args.select, - args.data, - 'CreateMyPendingOrgInvitesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'MyPendingOrgInvitesRecord', - fieldName: 'createMyPendingOrgInvitesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/admin/orm/models/orgGetManagersRecord.ts b/sdk/constructive-react/src/admin/orm/models/orgGetManagersRecord.ts index 7c333b76d3..21f4008311 100644 --- a/sdk/constructive-react/src/admin/orm/models/orgGetManagersRecord.ts +++ b/sdk/constructive-react/src/admin/orm/models/orgGetManagersRecord.ts @@ -29,7 +29,6 @@ import type { OrgGetManagersRecordSelect, OrgGetManagersRecordFilter, OrgGetManagersRecordsOrderBy, - CreateOrgGetManagersRecordInput, UpdateOrgGetManagersRecordInput, OrgGetManagersRecordPatch, } from '../input-types'; @@ -104,31 +103,4 @@ export class OrgGetManagersRecordModel { }), }); } - 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/admin/orm/models/orgGetSubordinatesRecord.ts b/sdk/constructive-react/src/admin/orm/models/orgGetSubordinatesRecord.ts index f259e10434..a5b89052df 100644 --- a/sdk/constructive-react/src/admin/orm/models/orgGetSubordinatesRecord.ts +++ b/sdk/constructive-react/src/admin/orm/models/orgGetSubordinatesRecord.ts @@ -29,7 +29,6 @@ import type { OrgGetSubordinatesRecordSelect, OrgGetSubordinatesRecordFilter, OrgGetSubordinatesRecordsOrderBy, - CreateOrgGetSubordinatesRecordInput, UpdateOrgGetSubordinatesRecordInput, OrgGetSubordinatesRecordPatch, } from '../input-types'; @@ -106,31 +105,4 @@ export class OrgGetSubordinatesRecordModel { }), }); } - 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/admin/schema-types.ts b/sdk/constructive-react/src/admin/schema-types.ts index eb45142cdc..b422caee79 100644 --- a/sdk/constructive-react/src/admin/schema-types.ts +++ b/sdk/constructive-react/src/admin/schema-types.ts @@ -2146,8 +2146,6 @@ export interface OrgMemberProfilePatch { membershipId?: string; /** Profile picture visible to other entity members */ profilePicture?: ConstructiveInternalTypeImage; - /** Upload for Profile picture visible to other entity members */ - profilePictureUpload?: File; /** Job title or role description visible to other entity members */ title?: string; updatedAt?: string; @@ -3349,21 +3347,27 @@ export interface UpdateOrgOwnerGrantPayload { /** Information about a database table */ export interface MetaTable { constraints: MetaConstraints; + /** Description written for this table, or null */ + description?: string | null; fields: MetaField[]; foreignKeyConstraints: MetaForeignKeyConstraint[]; - /** i18n metadata (null if no @i18n tag) */ + /** i18n metadata (null if the table is not translatable) */ i18n?: MetaI18n | null; indexes: MetaIndex[]; inflection: MetaInflection; + /** Whether this table only links rows of two other tables; the link appears in their manyToMany relations */ + isJunction: boolean; + /** 'table' when rows are stored in this table, 'view' when they come from a view of other tables */ + kind: string; /** Final GraphQL output type name */ name: string; primaryKeyConstraints: MetaPrimaryKeyConstraint[]; query: MetaQuery; - /** Realtime metadata (null if no @realtime tag) */ + /** Realtime metadata (null if the table has no change subscriptions) */ realtime?: MetaRealtime | null; relations: MetaRelations; schemaName: string; - /** Provisioning scope metadata (null if no @scope tag) */ + /** Provisioning scope metadata (null if the table has no scope) */ scope?: MetaScope | null; /** Search metadata (null if no search configured) */ search?: MetaSearch | null; @@ -3588,15 +3592,27 @@ export interface MetaConstraints { } /** Information about a table field/column */ export interface MetaField { + /** Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. */ + allowedValues?: string[] | null; /** PostgreSQL column name */ columnName: string; description?: string | null; /** Enum metadata if this field has an enum type */ enumValues?: MetaEnum | null; + /** Set when the field holds files; null otherwise. Set on a table's own fields only. */ + file?: MetaFileField | null; hasDefault: boolean; + /** Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. */ + isComputed?: boolean | null; isForeignKey: boolean; isNotNull: boolean; isPrimaryKey: boolean; + /** Whether a create must provide this field. Set on a table's own fields only. */ + isRequiredOnCreate?: boolean | null; + /** Whether a create may set this field. Set on a table's own fields only. */ + isWritableOnCreate?: boolean | null; + /** Whether an update may change this field. Set on a table's own fields only. */ + isWritableOnUpdate?: boolean | null; /** Final GraphQL field name */ name: string; type: MetaType; @@ -3610,7 +3626,7 @@ export interface MetaForeignKeyConstraint { referencedFields: string[]; referencedTable: string; } -/** i18n metadata for a table with @i18n tag */ +/** i18n metadata for a translatable table */ export interface MetaI18n { /** Fields that are translatable */ translatableFields: MetaI18nField[]; @@ -3625,7 +3641,7 @@ export interface MetaIndex { isUnique: boolean; name: string; } -/** Table inflection names */ +/** Type and field names generated for this table */ export interface MetaInflection { allRows: string; conditionType: string; @@ -3653,7 +3669,7 @@ export interface MetaQuery { one?: string | null; update?: string | null; } -/** Realtime metadata for a table with @realtime tag */ +/** Realtime metadata for a table with change subscriptions */ export interface MetaRealtime { /** The generated subscription field name (e.g. onPostChanged) */ subscriptionFieldName: string; @@ -3668,13 +3684,13 @@ export interface MetaRelations { } /** Provisioning scope metadata for a table */ export interface MetaScope { - /** SQL name of the entity table for entity scopes, else null */ + /** Name of the entity table for entity scopes, else null */ entityTable?: string | null; - /** Inflected scope key column (e.g. databaseId, orgId), null for global tiers */ + /** Field name of the scope key (e.g. databaseId, orgId), null for global tiers */ keyColumn?: string | null; /** Provisioning scope: 'platform', 'app', 'database', or an entity scope (e.g. 'org') */ scope: string; - /** Provenance of the scope metadata (always 'smartTag') */ + /** Where this scope metadata comes from */ source: string; /** Coarse bucket: 'global', 'database', or 'entity' */ tier: string; @@ -3692,17 +3708,17 @@ export interface MetaSearch { } /** Storage metadata for a table */ export interface MetaStorage { - /** GraphQL type name of the plane's buckets table */ + /** GraphQL type name of the paired buckets table */ bucketsType: string; /** Computed download-URL field on the files type; null on the buckets side */ downloadUrlField?: string | null; - /** GraphQL type name of the plane's files table */ + /** GraphQL type name of the paired files table */ filesType: string; /** Whether this table is a storage buckets table */ isBucketsTable: boolean; /** Whether this table is a storage files table */ isFilesTable: boolean; - /** The plane's GraphQL upload surface */ + /** Upload mutations and types for this storage */ upload: MetaStorageUpload; } /** Information about a unique constraint */ @@ -3717,6 +3733,15 @@ export interface MetaEnum { /** Allowed values for this enum */ values: string[]; } +/** How a field holds files */ +export interface MetaFileField { + /** GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise */ + filesType?: string | null; + /** Whether the field holds a list of files */ + isMultiple: boolean; + /** image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. */ + kind: string; +} /** Information about a PostgreSQL type */ export interface MetaType { /** Scalar serialization contract (null for plain scalars) */ @@ -3725,7 +3750,13 @@ export interface MetaType { hasDefault?: boolean | null; isArray: boolean; isNotNull?: boolean | null; + /** Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. */ + maxLength?: number | null; pgType: string; + /** Most significant digits a decimal number may hold. Null when unbounded. */ + precision?: number | null; + /** Digits a decimal number keeps after the decimal point. Null when unbounded. */ + scale?: number | null; subtype?: string | null; } /** Reference to a related table */ @@ -3744,6 +3775,8 @@ export interface MetaBelongsToRelation { fieldName?: string | null; isUnique: boolean; keys: MetaField[]; + /** Fields on the referenced table that keys point at, in the same order as keys */ + refKeys: MetaField[]; references: MetaRefTable; type?: string | null; } @@ -3753,6 +3786,8 @@ export interface MetaHasRelation { isUnique: boolean; keys: MetaField[]; referencedBy: MetaRefTable; + /** Fields on the related table that point at this table, in the same order as keys */ + remoteKeys: MetaField[]; type?: string | null; } /** A many-to-many relation via junction table */ @@ -3775,7 +3810,7 @@ export interface MetaSearchColumn { /** Column name (camelCase) */ name: string; } -/** Per-table search configuration from @searchConfig smart tag */ +/** Per-table search configuration */ export interface MetaSearchConfig { /** Exponential decay factor per day */ boostRecencyDecay?: number | null; @@ -3786,7 +3821,7 @@ export interface MetaSearchConfig { /** JSON-encoded per-adapter score weights */ weights?: string | null; } -/** The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from */ +/** The upload mutations and types for a storage table pair */ export interface MetaStorageUpload { /** Per-file input type inside the bulk input */ bulkFileInputType: string; @@ -3804,14 +3839,14 @@ export interface MetaStorageUpload { mutation: string; /** Payload type of the single upload mutation */ payloadType: string; - /** Whether the upload input requires ownerId (entity-keyed plane) */ + /** Whether the upload input requires ownerId */ requiresOwnerId: boolean; } -/** How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. */ +/** How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. */ export interface MetaScalarEncoding { /** For 'vector': declared length, else null. */ dimensions?: number | null; - /** For 'ltree': values are dot-separated path strings. */ + /** For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). */ dotPath?: boolean | null; /** For 'vector': element scalar (e.g. 'float'). */ elementType?: string | null; diff --git a/sdk/constructive-react/src/admin/types.ts b/sdk/constructive-react/src/admin/types.ts index 732ffd45fd..bcf013a6d4 100644 --- a/sdk/constructive-react/src/admin/types.ts +++ b/sdk/constructive-react/src/admin/types.ts @@ -5,6 +5,7 @@ */ export type ConstructiveInternalTypeEmail = unknown; export type ConstructiveInternalTypeImage = unknown; +export type FileVersion = unknown; export interface AppAdminGrant { actorId: string | null; createdAt: string | null; @@ -232,6 +233,8 @@ export interface OrgMemberProfile { id: string | null; membershipId: string | null; profilePicture: ConstructiveInternalTypeImage | null; + profilePictureUrl: string | null; + profilePictureVersions: FileVersion[] | null; title: string | null; updatedAt: string | null; } diff --git a/sdk/constructive-react/src/agent/hooks/README.md b/sdk/constructive-react/src/agent/hooks/README.md index d6393fc930..0cf1e2e558 100644 --- a/sdk/constructive-react/src/agent/hooks/README.md +++ b/sdk/constructive-react/src/agent/hooks/README.md @@ -313,20 +313,20 @@ create({ agentResourceId: '', body: '', chunkIndex: '', datab ```typescript // List all agentResources const { data, isLoading } = useAgentResourcesQuery({ - selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Get one agentResource const { data: item } = useAgentResourceQuery({ id: '', - selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Create a agentResource const { mutate: create } = useCreateAgentResourceMutation({ selection: { fields: { id: true } }, }); -create({ archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }); +create({ archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }); ``` ### AgentRun @@ -565,20 +565,20 @@ create({ body: '', chunkIndex: '', embedding: '', embedding ```typescript // List all platformAgentResources const { data, isLoading } = usePlatformAgentResourcesQuery({ - selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Get one platformAgentResource const { data: item } = usePlatformAgentResourceQuery({ id: '', - selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Create a platformAgentResource const { mutate: create } = useCreatePlatformAgentResourceMutation({ selection: { fields: { id: true } }, }); -create({ archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }); +create({ archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }); ``` ### PlatformAgentRun diff --git a/sdk/constructive-react/src/agent/orm/README.md b/sdk/constructive-react/src/agent/orm/README.md index a201a35f2d..26e6cd58ff 100644 --- a/sdk/constructive-react/src/agent/orm/README.md +++ b/sdk/constructive-react/src/agent/orm/README.md @@ -351,6 +351,8 @@ CRUD operations for AgentResource records. | `description` | String | Yes | | `descriptionTrgmSimilarity` | Float | Yes | | `embedding` | Vector | Yes | +| `embeddingModel` | String | Yes | +| `embeddingModelTrgmSimilarity` | Float | Yes | | `embeddingUpdatedAt` | Datetime | Yes | | `embeddingVectorDistance` | Float | Yes | | `id` | UUID | No | @@ -374,13 +376,13 @@ CRUD operations for AgentResource records. ```typescript // List all agentResource records -const items = await db.agentResource.findMany({ select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.agentResource.findMany({ select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.agentResource.findOne({ id: '', select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.agentResource.findOne({ id: '', select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.agentResource.create({ data: { archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const created = await db.agentResource.create({ data: { archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentResource.update({ where: { id: '' }, data: { archivedAt: '' }, select: { id: true } }).execute(); @@ -882,6 +884,8 @@ CRUD operations for PlatformAgentResource records. | `description` | String | Yes | | `descriptionTrgmSimilarity` | Float | Yes | | `embedding` | Vector | Yes | +| `embeddingModel` | String | Yes | +| `embeddingModelTrgmSimilarity` | Float | Yes | | `embeddingUpdatedAt` | Datetime | Yes | | `embeddingVectorDistance` | Float | Yes | | `id` | UUID | No | @@ -905,13 +909,13 @@ CRUD operations for PlatformAgentResource records. ```typescript // List all platformAgentResource records -const items = await db.platformAgentResource.findMany({ select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.platformAgentResource.findMany({ select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformAgentResource.findOne({ id: '', select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.platformAgentResource.findOne({ id: '', select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformAgentResource.create({ data: { archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const created = await db.platformAgentResource.create({ data: { archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformAgentResource.update({ where: { id: '' }, data: { archivedAt: '' }, select: { id: true } }).execute(); diff --git a/sdk/constructive-react/src/agent/orm/input-types.ts b/sdk/constructive-react/src/agent/orm/input-types.ts index 203bbeda25..fc4524c9f2 100644 --- a/sdk/constructive-react/src/agent/orm/input-types.ts +++ b/sdk/constructive-react/src/agent/orm/input-types.ts @@ -407,6 +407,9 @@ export interface AgentResource { /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ descriptionTrgmSimilarity?: number | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -758,6 +761,9 @@ export interface PlatformAgentResource { /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ descriptionTrgmSimilarity?: number | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -1262,6 +1268,8 @@ export type AgentResourceSelect = { description?: boolean; descriptionTrgmSimilarity?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; id?: boolean; @@ -1598,6 +1606,8 @@ export type PlatformAgentResourceSelect = { description?: boolean; descriptionTrgmSimilarity?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; id?: boolean; @@ -2066,6 +2076,8 @@ export interface AgentResourceFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -2094,6 +2106,8 @@ export interface AgentResourceFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `title` column. */ @@ -2632,6 +2646,8 @@ export interface PlatformAgentResourceFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -2664,6 +2680,8 @@ export interface PlatformAgentResourceFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `title` column. */ @@ -3141,6 +3159,10 @@ export type AgentResourceOrderBy = | 'DESCRIPTION_TRGM_SIMILARITY_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -3561,6 +3583,10 @@ export type PlatformAgentResourceOrderBy = | 'DESCRIPTION_TRGM_SIMILARITY_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -4838,10 +4864,12 @@ export interface VectorNearbyInput { includeChunks?: boolean; /** Similarity metric to use (default: COSINE). */ metric?: VectorMetric; - /** Natural language text to embed server-side for similarity search. Mutually exclusive with `vector` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** The model that produced `vector`. On a column that records the model of each row's vector, only rows embedded with this model are compared; vectors of two models are not comparable. Filled in server-side when `text` is embedded. */ + model?: string; + /** Natural language text to embed server-side for similarity search. Provide exactly one of `text` or `vector`; sending both or neither is an error. Blank text on its own counts as not given. Requires the LLM plugin to be configured with an embedding provider. */ text?: string; /** Query vector for similarity search. */ - vector: number[]; + vector?: number[]; } /** A filter to be used against many `AgentResourceChunk` object types. All fields are combined with a logical ‘and.’ */ export interface AgentResourceToManyAgentResourceChunkFilter { @@ -5266,7 +5294,7 @@ export interface AgentResourceChunkInput { /** Policy-required field derived from source table (used by AuthzRelatedEntityMembership) */ databaseId?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; metadata?: Record; @@ -5286,7 +5314,7 @@ export interface AgentResourceInput { /** Brief description of this resource */ description?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** Whether this resource is active and retrievable */ @@ -5581,7 +5609,7 @@ export interface PlatformAgentResourceChunkInput { chunkIndex?: number; createdAt?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; metadata?: Record; @@ -5600,7 +5628,7 @@ export interface PlatformAgentResourceInput { /** Brief description of this resource */ description?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** Whether this resource is active and retrievable */ @@ -6992,6 +7020,8 @@ export interface AgentResourceFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -7020,6 +7050,8 @@ export interface AgentResourceFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `title` column. */ @@ -7181,6 +7213,8 @@ export interface PlatformAgentResourceFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -7213,6 +7247,8 @@ export interface PlatformAgentResourceFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `title` column. */ diff --git a/sdk/constructive-react/src/agent/schema-types.ts b/sdk/constructive-react/src/agent/schema-types.ts index 11db8cff08..71132d9d91 100644 --- a/sdk/constructive-react/src/agent/schema-types.ts +++ b/sdk/constructive-react/src/agent/schema-types.ts @@ -276,6 +276,10 @@ export type AgentResourceOrderBy = | 'DESCRIPTION_TRGM_SIMILARITY_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -708,6 +712,10 @@ export type PlatformAgentResourceOrderBy = | 'DESCRIPTION_TRGM_SIMILARITY_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -1510,7 +1518,7 @@ export interface AgentResourceChunkInput { /** Policy-required field derived from source table (used by AuthzRelatedEntityMembership) */ databaseId?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; metadata?: unknown; @@ -1525,7 +1533,7 @@ export interface AgentResourceChunkPatch { /** Policy-required field derived from source table (used by AuthzRelatedEntityMembership) */ databaseId?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; metadata?: unknown; @@ -1555,6 +1563,8 @@ export interface AgentResourceFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -1583,6 +1593,8 @@ export interface AgentResourceFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `title` column. */ @@ -1620,7 +1632,7 @@ export interface AgentResourceInput { /** Brief description of this resource */ description?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** Whether this resource is active and retrievable */ @@ -1655,7 +1667,7 @@ export interface AgentResourcePatch { /** Brief description of this resource */ description?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** Whether this resource is active and retrievable */ @@ -3091,7 +3103,7 @@ export interface PlatformAgentResourceChunkInput { chunkIndex?: number; createdAt?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; metadata?: unknown; @@ -3104,7 +3116,7 @@ export interface PlatformAgentResourceChunkPatch { chunkIndex?: number; createdAt?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; metadata?: unknown; @@ -3129,6 +3141,8 @@ export interface PlatformAgentResourceFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -3161,6 +3175,8 @@ export interface PlatformAgentResourceFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `title` column. */ @@ -3196,7 +3212,7 @@ export interface PlatformAgentResourceInput { /** Brief description of this resource */ description?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** Whether this resource is active and retrievable */ @@ -3229,7 +3245,7 @@ export interface PlatformAgentResourcePatch { /** Brief description of this resource */ description?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** Whether this resource is active and retrievable */ @@ -4134,10 +4150,12 @@ export interface VectorNearbyInput { includeChunks?: boolean; /** Similarity metric to use (default: COSINE). */ metric?: VectorMetric; - /** Natural language text to embed server-side for similarity search. Mutually exclusive with `vector` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** The model that produced `vector`. On a column that records the model of each row's vector, only rows embedded with this model are compared; vectors of two models are not comparable. Filled in server-side when `text` is embedded. */ + model?: string; + /** Natural language text to embed server-side for similarity search. Provide exactly one of `text` or `vector`; sending both or neither is an error. Blank text on its own counts as not given. Requires the LLM plugin to be configured with an embedding provider. */ text?: string; /** Query vector for similarity search. */ - vector: number[]; + vector?: number[]; } /** Root meta schema type */ export interface MetaSchema { @@ -4755,21 +4773,27 @@ export interface UpdatePlatformAgentThreadPayload { /** Information about a database table */ export interface MetaTable { constraints: MetaConstraints; + /** Description written for this table, or null */ + description?: string | null; fields: MetaField[]; foreignKeyConstraints: MetaForeignKeyConstraint[]; - /** i18n metadata (null if no @i18n tag) */ + /** i18n metadata (null if the table is not translatable) */ i18n?: MetaI18n | null; indexes: MetaIndex[]; inflection: MetaInflection; + /** Whether this table only links rows of two other tables; the link appears in their manyToMany relations */ + isJunction: boolean; + /** 'table' when rows are stored in this table, 'view' when they come from a view of other tables */ + kind: string; /** Final GraphQL output type name */ name: string; primaryKeyConstraints: MetaPrimaryKeyConstraint[]; query: MetaQuery; - /** Realtime metadata (null if no @realtime tag) */ + /** Realtime metadata (null if the table has no change subscriptions) */ realtime?: MetaRealtime | null; relations: MetaRelations; schemaName: string; - /** Provisioning scope metadata (null if no @scope tag) */ + /** Provisioning scope metadata (null if the table has no scope) */ scope?: MetaScope | null; /** Search metadata (null if no search configured) */ search?: MetaSearch | null; @@ -4942,15 +4966,27 @@ export interface MetaConstraints { } /** Information about a table field/column */ export interface MetaField { + /** Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. */ + allowedValues?: string[] | null; /** PostgreSQL column name */ columnName: string; description?: string | null; /** Enum metadata if this field has an enum type */ enumValues?: MetaEnum | null; + /** Set when the field holds files; null otherwise. Set on a table's own fields only. */ + file?: MetaFileField | null; hasDefault: boolean; + /** Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. */ + isComputed?: boolean | null; isForeignKey: boolean; isNotNull: boolean; isPrimaryKey: boolean; + /** Whether a create must provide this field. Set on a table's own fields only. */ + isRequiredOnCreate?: boolean | null; + /** Whether a create may set this field. Set on a table's own fields only. */ + isWritableOnCreate?: boolean | null; + /** Whether an update may change this field. Set on a table's own fields only. */ + isWritableOnUpdate?: boolean | null; /** Final GraphQL field name */ name: string; type: MetaType; @@ -4964,7 +5000,7 @@ export interface MetaForeignKeyConstraint { referencedFields: string[]; referencedTable: string; } -/** i18n metadata for a table with @i18n tag */ +/** i18n metadata for a translatable table */ export interface MetaI18n { /** Fields that are translatable */ translatableFields: MetaI18nField[]; @@ -4979,7 +5015,7 @@ export interface MetaIndex { isUnique: boolean; name: string; } -/** Table inflection names */ +/** Type and field names generated for this table */ export interface MetaInflection { allRows: string; conditionType: string; @@ -5007,7 +5043,7 @@ export interface MetaQuery { one?: string | null; update?: string | null; } -/** Realtime metadata for a table with @realtime tag */ +/** Realtime metadata for a table with change subscriptions */ export interface MetaRealtime { /** The generated subscription field name (e.g. onPostChanged) */ subscriptionFieldName: string; @@ -5022,13 +5058,13 @@ export interface MetaRelations { } /** Provisioning scope metadata for a table */ export interface MetaScope { - /** SQL name of the entity table for entity scopes, else null */ + /** Name of the entity table for entity scopes, else null */ entityTable?: string | null; - /** Inflected scope key column (e.g. databaseId, orgId), null for global tiers */ + /** Field name of the scope key (e.g. databaseId, orgId), null for global tiers */ keyColumn?: string | null; /** Provisioning scope: 'platform', 'app', 'database', or an entity scope (e.g. 'org') */ scope: string; - /** Provenance of the scope metadata (always 'smartTag') */ + /** Where this scope metadata comes from */ source: string; /** Coarse bucket: 'global', 'database', or 'entity' */ tier: string; @@ -5046,17 +5082,17 @@ export interface MetaSearch { } /** Storage metadata for a table */ export interface MetaStorage { - /** GraphQL type name of the plane's buckets table */ + /** GraphQL type name of the paired buckets table */ bucketsType: string; /** Computed download-URL field on the files type; null on the buckets side */ downloadUrlField?: string | null; - /** GraphQL type name of the plane's files table */ + /** GraphQL type name of the paired files table */ filesType: string; /** Whether this table is a storage buckets table */ isBucketsTable: boolean; /** Whether this table is a storage files table */ isFilesTable: boolean; - /** The plane's GraphQL upload surface */ + /** Upload mutations and types for this storage */ upload: MetaStorageUpload; } /** Information about a unique constraint */ @@ -5071,6 +5107,15 @@ export interface MetaEnum { /** Allowed values for this enum */ values: string[]; } +/** How a field holds files */ +export interface MetaFileField { + /** GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise */ + filesType?: string | null; + /** Whether the field holds a list of files */ + isMultiple: boolean; + /** image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. */ + kind: string; +} /** Information about a PostgreSQL type */ export interface MetaType { /** Scalar serialization contract (null for plain scalars) */ @@ -5079,7 +5124,13 @@ export interface MetaType { hasDefault?: boolean | null; isArray: boolean; isNotNull?: boolean | null; + /** Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. */ + maxLength?: number | null; pgType: string; + /** Most significant digits a decimal number may hold. Null when unbounded. */ + precision?: number | null; + /** Digits a decimal number keeps after the decimal point. Null when unbounded. */ + scale?: number | null; subtype?: string | null; } /** Reference to a related table */ @@ -5098,6 +5149,8 @@ export interface MetaBelongsToRelation { fieldName?: string | null; isUnique: boolean; keys: MetaField[]; + /** Fields on the referenced table that keys point at, in the same order as keys */ + refKeys: MetaField[]; references: MetaRefTable; type?: string | null; } @@ -5107,6 +5160,8 @@ export interface MetaHasRelation { isUnique: boolean; keys: MetaField[]; referencedBy: MetaRefTable; + /** Fields on the related table that point at this table, in the same order as keys */ + remoteKeys: MetaField[]; type?: string | null; } /** A many-to-many relation via junction table */ @@ -5129,7 +5184,7 @@ export interface MetaSearchColumn { /** Column name (camelCase) */ name: string; } -/** Per-table search configuration from @searchConfig smart tag */ +/** Per-table search configuration */ export interface MetaSearchConfig { /** Exponential decay factor per day */ boostRecencyDecay?: number | null; @@ -5140,7 +5195,7 @@ export interface MetaSearchConfig { /** JSON-encoded per-adapter score weights */ weights?: string | null; } -/** The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from */ +/** The upload mutations and types for a storage table pair */ export interface MetaStorageUpload { /** Per-file input type inside the bulk input */ bulkFileInputType: string; @@ -5158,14 +5213,14 @@ export interface MetaStorageUpload { mutation: string; /** Payload type of the single upload mutation */ payloadType: string; - /** Whether the upload input requires ownerId (entity-keyed plane) */ + /** Whether the upload input requires ownerId */ requiresOwnerId: boolean; } -/** How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. */ +/** How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. */ export interface MetaScalarEncoding { /** For 'vector': declared length, else null. */ dimensions?: number | null; - /** For 'ltree': values are dot-separated path strings. */ + /** For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). */ dotPath?: boolean | null; /** For 'vector': element scalar (e.g. 'float'). */ elementType?: string | null; diff --git a/sdk/constructive-react/src/agent/types.ts b/sdk/constructive-react/src/agent/types.ts index 9ace562097..26f58492f5 100644 --- a/sdk/constructive-react/src/agent/types.ts +++ b/sdk/constructive-react/src/agent/types.ts @@ -114,6 +114,8 @@ export interface AgentResource { description: string | null; descriptionTrgmSimilarity: number | null; embedding: number[] | null; + embeddingModel: string | null; + embeddingModelTrgmSimilarity: number | null; embeddingUpdatedAt: string | null; embeddingVectorDistance: number | null; id: string | null; @@ -324,6 +326,8 @@ export interface PlatformAgentResource { description: string | null; descriptionTrgmSimilarity: number | null; embedding: number[] | null; + embeddingModel: string | null; + embeddingModelTrgmSimilarity: number | null; embeddingUpdatedAt: string | null; embeddingVectorDistance: number | null; id: string | null; diff --git a/sdk/constructive-react/src/api/README.md b/sdk/constructive-react/src/api/README.md index ed648007ba..f7bbb8d3e0 100644 --- a/sdk/constructive-react/src/api/README.md +++ b/sdk/constructive-react/src/api/README.md @@ -8,8 +8,8 @@ ## Overview -- **Tables:** 90 -- **Custom queries:** 18 +- **Tables:** 91 +- **Custom queries:** 14 - **Custom mutations:** 31 **Generators:** ORM, React Query diff --git a/sdk/constructive-react/src/api/hooks/README.md b/sdk/constructive-react/src/api/hooks/README.md index b723c91d0a..cf907150b2 100644 --- a/sdk/constructive-react/src/api/hooks/README.md +++ b/sdk/constructive-react/src/api/hooks/README.md @@ -49,7 +49,6 @@ function App() { | `useDeleteApiSettingMutation` | Mutation | Per-API feature flag overrides; NULL columns inherit from database_settings | | `useAstMigrationsQuery` | Query | List all astMigrations | | `useAstMigrationQuery` | Query | Get one astMigration | -| `useCreateAstMigrationMutation` | Mutation | Create a astMigration | | `useUpdateAstMigrationMutation` | Mutation | Update a astMigration | | `useDeleteAstMigrationMutation` | Mutation | Delete a astMigration | | `useCheckConstraintsQuery` | Query | List all checkConstraints | @@ -173,7 +172,6 @@ function App() { | `useUpdateFunctionMutation` | Mutation | Update a function | | `useDeleteFunctionMutation` | Mutation | Delete a function | | `useGetSitePreviewsQuery` | Query | List all getSitePreviews | -| `useCreateGetSitePreviewsRecordMutation` | Mutation | Create a getSitePreviewsRecord | | `useIdentityProviderRegistriesQuery` | Query | List all identityProviderRegistries | | `useIdentityProviderRegistryQuery` | Query | Get one identityProviderRegistry | | `useCreateIdentityProviderRegistryMutation` | Mutation | Create a identityProviderRegistry | @@ -186,7 +184,6 @@ function App() { | `useDeleteIndexMutation` | Mutation | Delete a index | | `useListSuspendedDatabasesQuery` | Query | List all listSuspendedDatabases | | `useListSuspendedDatabasesRecordQuery` | Query | Get one listSuspendedDatabasesRecord | -| `useCreateListSuspendedDatabasesRecordMutation` | Mutation | Create a listSuspendedDatabasesRecord | | `useUpdateListSuspendedDatabasesRecordMutation` | Mutation | Update a listSuspendedDatabasesRecord | | `useDeleteListSuspendedDatabasesRecordMutation` | Mutation | Delete a listSuspendedDatabasesRecord | | `useManagedDomainsQuery` | Query | Platform-operated hostnames whose DNS and certificate lifecycle the platform drives | @@ -260,7 +257,6 @@ function App() { | `useUpdatePlatformEmailSiteIdentityMutation` | Mutation | Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. | | `useDeletePlatformEmailSiteIdentityMutation` | Mutation | Binds a site to the identity it sends as. Unique on site_id: one identity per site, but many sites may share an identity. | | `usePlatformGetSitePreviewsQuery` | Query | List all platformGetSitePreviews | -| `useCreatePlatformGetSitePreviewsRecordMutation` | Mutation | Create a platformGetSitePreviewsRecord | | `usePlatformManagedDomainsQuery` | Query | Platform-operated hostnames whose DNS and certificate lifecycle the platform drives | | `usePlatformManagedDomainQuery` | Query | Platform-operated hostnames whose DNS and certificate lifecycle the platform drives | | `useCreatePlatformManagedDomainMutation` | Mutation | Platform-operated hostnames whose DNS and certificate lifecycle the platform drives | @@ -271,6 +267,11 @@ function App() { | `useCreatePlatformPageMutation` | Mutation | Site-owned page content — merkle-versioned head over the infra store; never a routing surface | | `useUpdatePlatformPageMutation` | Mutation | Site-owned page content — merkle-versioned head over the infra store; never a routing surface | | `useDeletePlatformPageMutation` | Mutation | Site-owned page content — merkle-versioned head over the infra store; never a routing surface | +| `usePlatformReservedSubdomainsQuery` | Query | Subdomain labels no tenant may claim under a platform apex | +| `usePlatformReservedSubdomainQuery` | Query | Subdomain labels no tenant may claim under a platform apex | +| `useCreatePlatformReservedSubdomainMutation` | Mutation | Subdomain labels no tenant may claim under a platform apex | +| `useUpdatePlatformReservedSubdomainMutation` | Mutation | Subdomain labels no tenant may claim under a platform apex | +| `useDeletePlatformReservedSubdomainMutation` | Mutation | Subdomain labels no tenant may claim under a platform apex | | `usePlatformSiteAppLinksQuery` | Query | Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) | | `usePlatformSiteAppLinkQuery` | Query | Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) | | `useCreatePlatformSiteAppLinkMutation` | Mutation | Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) | @@ -408,7 +409,6 @@ function App() { | `useDeleteSpatialRelationMutation` | Mutation | Delete a spatialRelation | | `useSqlActionsQuery` | Query | List all sqlActions | | `useSqlActionQuery` | Query | Get one sqlAction | -| `useCreateSqlActionMutation` | Mutation | Create a sqlAction | | `useUpdateSqlActionMutation` | Mutation | Update a sqlAction | | `useDeleteSqlActionMutation` | Mutation | Delete a sqlAction | | `useTableBehaviorsQuery` | Query | List all tableBehaviors | @@ -476,7 +476,6 @@ function App() { | `useCreateWebauthnSettingMutation` | Mutation | WebAuthn/passkey runtime configuration; relying party options and typed references to the credential/session storage | | `useUpdateWebauthnSettingMutation` | Mutation | WebAuthn/passkey runtime configuration; relying party options and typed references to the credential/session storage | | `useDeleteWebauthnSettingMutation` | Mutation | WebAuthn/passkey runtime configuration; relying party options and typed references to the credential/session storage | -| `useApiSchemaNamesQuery` | Query | apiSchemaNames | | `useApplyRegistryDefaultsQuery` | Query | applyRegistryDefaults | | `useEmailSharedAccountQuery` | Query | emailSharedAccount | | `useGetSitePreviewCommitQuery` | Query | getSitePreviewCommit | @@ -488,9 +487,6 @@ function App() { | `usePlatformSitesDeepLinkUrlQuery` | Query | platformSitesDeepLinkUrl | | `usePlatformSitesSiteOriginQuery` | Query | platformSitesSiteOrigin | | `usePlatformVerifySitePreviewTokenQuery` | Query | platformVerifySitePreviewToken | -| `useResolveDeepLinkQuery` | Query | resolveDeepLink | -| `useResolveRouteQuery` | Query | resolveRoute | -| `useResolveSiteAppLinksQuery` | Query | resolveSiteAppLinks | | `useSitesDeepLinkUrlQuery` | Query | sitesDeepLinkUrl | | `useSitesSiteOriginQuery` | Query | sitesSiteOrigin | | `useVerifySitePreviewTokenQuery` | Query | verifySitePreviewToken | @@ -545,20 +541,20 @@ Example usage: ```typescript // List all apis const { data, isLoading } = useApisQuery({ - selection: { fields: { anonRole: true, config: true, createdAt: true, databaseId: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }, + selection: { fields: { anonRole: true, config: true, createdAt: true, databaseId: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } }, }); // Get one api const { data: item } = useApiQuery({ id: '', - selection: { fields: { anonRole: true, config: true, createdAt: true, databaseId: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }, + selection: { fields: { anonRole: true, config: true, createdAt: true, databaseId: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } }, }); // Create a api const { mutate: create } = useCreateApiMutation({ selection: { fields: { id: true } }, }); -create({ anonRole: '', config: '', databaseId: '', dbname: '', isPublished: '', name: '', roleName: '' }); +create({ anonRole: '', config: '', databaseId: '', isPublished: '', name: '', roleName: '', serviceHostname: '' }); ``` ### ApiSchema @@ -587,20 +583,20 @@ create({ apiId: '', databaseId: '', schemaId: '' }); ```typescript // List all apiSettings const { data, isLoading } = useApiSettingsQuery({ - selection: { fields: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, + selection: { fields: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, }); // Get one apiSetting const { data: item } = useApiSettingQuery({ id: '', - selection: { fields: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, + selection: { fields: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, }); // Create a apiSetting const { mutate: create } = useCreateApiSettingMutation({ selection: { fields: { id: true } }, }); -create({ apiId: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }); +create({ apiId: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }); ``` ### AstMigration @@ -617,11 +613,6 @@ const { data: item } = useAstMigrationQuery({ selection: { fields: { actionId: true, actionName: true, actorId: true, createdAt: true, databaseId: true, deploy: true, deploys: true, id: true, name: true, payload: true, requires: true, revert: true, verify: true } }, }); -// Create a astMigration -const { mutate: create } = useCreateAstMigrationMutation({ - selection: { fields: { id: true } }, -}); -create({ actionId: '', actionName: '', actorId: '', databaseId: '', deploy: '', deploys: '', name: '', payload: '', requires: '', revert: '', verify: '' }); ``` ### CheckConstraint @@ -713,20 +704,20 @@ create({ hash: '', label: '', name: '', ownerId: '', ```typescript // List all databaseSettings const { data, isLoading } = useDatabaseSettingsQuery({ - selection: { fields: { annotations: true, createdAt: true, creditsPerCent: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, + selection: { fields: { annotations: true, createdAt: true, creditsPerCent: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, }); // Get one databaseSetting const { data: item } = useDatabaseSettingQuery({ id: '', - selection: { fields: { annotations: true, createdAt: true, creditsPerCent: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, + selection: { fields: { annotations: true, createdAt: true, creditsPerCent: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, }); // Create a databaseSetting const { mutate: create } = useCreateDatabaseSettingMutation({ selection: { fields: { id: true } }, }); -create({ annotations: '', creditsPerCent: '', databaseId: '', enableAggregates: '', enableBilling: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', labels: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }); +create({ annotations: '', creditsPerCent: '', databaseId: '', enableAggregates: '', enableBilling: '', enableBulk: '', enableConnectionFilter: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', labels: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }); ``` ### DatabaseTransfer @@ -1136,11 +1127,6 @@ const { data, isLoading } = useGetSitePreviewsQuery({ selection: { fields: { commitId: true, name: true } }, }); -// Create a getSitePreviewsRecord -const { mutate: create } = useCreateGetSitePreviewsRecordMutation({ - selection: { fields: { id: true } }, -}); -create({ commitId: '', name: '' }); ``` ### IdentityProviderRegistry @@ -1199,11 +1185,6 @@ const { data: item } = useListSuspendedDatabasesRecordQuery({ selection: { fields: { id: true, name: true, ownerId: true, suspendedAt: true, suspendedReason: true } }, }); -// Create a listSuspendedDatabasesRecord -const { mutate: create } = useCreateListSuspendedDatabasesRecordMutation({ - selection: { fields: { id: true } }, -}); -create({ name: '', ownerId: '', suspendedAt: '', suspendedReason: '' }); ``` ### ManagedDomain @@ -1295,20 +1276,20 @@ create({ databaseId: '', interval: '', isParented: '', na ```typescript // List all platformApis const { data, isLoading } = usePlatformApisQuery({ - selection: { fields: { anonRole: true, config: true, createdAt: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }, + selection: { fields: { anonRole: true, config: true, createdAt: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } }, }); // Get one platformApi const { data: item } = usePlatformApiQuery({ id: '', - selection: { fields: { anonRole: true, config: true, createdAt: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }, + selection: { fields: { anonRole: true, config: true, createdAt: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } }, }); // Create a platformApi const { mutate: create } = useCreatePlatformApiMutation({ selection: { fields: { id: true } }, }); -create({ anonRole: '', config: '', dbname: '', isPublished: '', name: '', roleName: '' }); +create({ anonRole: '', config: '', isPublished: '', name: '', roleName: '', serviceHostname: '' }); ``` ### PlatformApiSchema @@ -1337,20 +1318,20 @@ create({ apiId: '', schemaId: '' }); ```typescript // List all platformApiSettings const { data, isLoading } = usePlatformApiSettingsQuery({ - selection: { fields: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, + selection: { fields: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, }); // Get one platformApiSetting const { data: item } = usePlatformApiSettingQuery({ id: '', - selection: { fields: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, + selection: { fields: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }, }); // Create a platformApiSetting const { mutate: create } = useCreatePlatformApiSettingMutation({ selection: { fields: { id: true } }, }); -create({ apiId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }); +create({ apiId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }); ``` ### PlatformCorsSetting @@ -1508,11 +1489,6 @@ const { data, isLoading } = usePlatformGetSitePreviewsQuery({ selection: { fields: { commitId: true, name: true } }, }); -// Create a platformGetSitePreviewsRecord -const { mutate: create } = useCreatePlatformGetSitePreviewsRecordMutation({ - selection: { fields: { id: true } }, -}); -create({ commitId: '', name: '' }); ``` ### PlatformManagedDomain @@ -1557,6 +1533,27 @@ const { mutate: create } = useCreatePlatformPageMutation({ create({ commitId: '', content: '', seededFrom: '', siteId: '', slug: '', storeId: '' }); ``` +### PlatformReservedSubdomain + +```typescript +// List all platformReservedSubdomains +const { data, isLoading } = usePlatformReservedSubdomainsQuery({ + selection: { fields: { createdAt: true, createdByPrincipal: true, id: true, label: true, match: true, reason: true, updatedAt: true, updatedByPrincipal: true } }, +}); + +// Get one platformReservedSubdomain +const { data: item } = usePlatformReservedSubdomainQuery({ + id: '', + selection: { fields: { createdAt: true, createdByPrincipal: true, id: true, label: true, match: true, reason: true, updatedAt: true, updatedByPrincipal: true } }, +}); + +// Create a platformReservedSubdomain +const { mutate: create } = useCreatePlatformReservedSubdomainMutation({ + selection: { fields: { id: true } }, +}); +create({ createdByPrincipal: '', label: '', match: '', reason: '', updatedByPrincipal: '' }); +``` + ### PlatformSiteAppLink ```typescript @@ -1646,20 +1643,20 @@ create({ objectPath: '', siteId: '', statusCode: '' }); ```typescript // List all platformSiteMetadata const { data, isLoading } = usePlatformSiteMetadataQuery({ - selection: { fields: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }, + selection: { fields: { appleTouchIcon: true, appleTouchIconUrl: true, appleTouchIconVersions: true, canonicalUrl: true, commitId: true, createdAt: true, description: true, favicon: true, faviconUrl: true, faviconVersions: true, id: true, logo: true, logoUrl: true, logoVersions: true, ogImage: true, ogImageUrl: true, ogImageVersions: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }, }); // Get one platformSiteMetadatum const { data: item } = usePlatformSiteMetadatumQuery({ id: '', - selection: { fields: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }, + selection: { fields: { appleTouchIcon: true, appleTouchIconUrl: true, appleTouchIconVersions: true, canonicalUrl: true, commitId: true, createdAt: true, description: true, favicon: true, faviconUrl: true, faviconVersions: true, id: true, logo: true, logoUrl: true, logoVersions: true, ogImage: true, ogImageUrl: true, ogImageVersions: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }, }); // Create a platformSiteMetadatum const { mutate: create } = useCreatePlatformSiteMetadatumMutation({ selection: { fields: { id: true } }, }); -create({ appleTouchIcon: '', canonicalUrl: '', commitId: '', description: '', favicon: '', logo: '', ogImage: '', robots: '', robotsSeededFrom: '', siteId: '', storeId: '', title: '' }); +create({ appleTouchIcon: '', appleTouchIconUrl: '', appleTouchIconVersions: '', canonicalUrl: '', commitId: '', description: '', favicon: '', faviconUrl: '', faviconVersions: '', logo: '', logoUrl: '', logoVersions: '', ogImage: '', ogImageUrl: '', ogImageVersions: '', robots: '', robotsSeededFrom: '', siteId: '', storeId: '', title: '' }); ``` ### PlatformSiteModule @@ -2003,20 +2000,20 @@ create({ databaseId: '', objectPath: '', siteId: '', statusC ```typescript // List all siteMetadata const { data, isLoading } = useSiteMetadataQuery({ - selection: { fields: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, databaseId: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }, + selection: { fields: { appleTouchIcon: true, appleTouchIconUrl: true, appleTouchIconVersions: true, canonicalUrl: true, commitId: true, createdAt: true, databaseId: true, description: true, favicon: true, faviconUrl: true, faviconVersions: true, id: true, logo: true, logoUrl: true, logoVersions: true, ogImage: true, ogImageUrl: true, ogImageVersions: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }, }); // Get one siteMetadatum const { data: item } = useSiteMetadatumQuery({ id: '', - selection: { fields: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, databaseId: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }, + selection: { fields: { appleTouchIcon: true, appleTouchIconUrl: true, appleTouchIconVersions: true, canonicalUrl: true, commitId: true, createdAt: true, databaseId: true, description: true, favicon: true, faviconUrl: true, faviconVersions: true, id: true, logo: true, logoUrl: true, logoVersions: true, ogImage: true, ogImageUrl: true, ogImageVersions: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }, }); // Create a siteMetadatum const { mutate: create } = useCreateSiteMetadatumMutation({ selection: { fields: { id: true } }, }); -create({ appleTouchIcon: '', canonicalUrl: '', commitId: '', databaseId: '', description: '', favicon: '', logo: '', ogImage: '', robots: '', robotsSeededFrom: '', siteId: '', storeId: '', title: '' }); +create({ appleTouchIcon: '', appleTouchIconUrl: '', appleTouchIconVersions: '', canonicalUrl: '', commitId: '', databaseId: '', description: '', favicon: '', faviconUrl: '', faviconVersions: '', logo: '', logoUrl: '', logoVersions: '', ogImage: '', ogImageUrl: '', ogImageVersions: '', robots: '', robotsSeededFrom: '', siteId: '', storeId: '', title: '' }); ``` ### SiteModule @@ -2138,11 +2135,6 @@ const { data: item } = useSqlActionQuery({ selection: { fields: { actionId: true, actionName: true, actorId: true, content: true, createdAt: true, databaseId: true, deploy: true, deps: true, id: true, name: true, payload: true, revert: true, verify: true } }, }); -// Create a sqlAction -const { mutate: create } = useCreateSqlActionMutation({ - selection: { fields: { id: true } }, -}); -create({ actionId: '', actionName: '', actorId: '', content: '', databaseId: '', deploy: '', deps: '', name: '', payload: '', revert: '', verify: '' }); ``` ### TableBehavior @@ -2420,17 +2412,6 @@ create({ attestationType: '', challengeExpirySeconds: '', creden ## Custom Operation Hooks -### `useApiSchemaNamesQuery` - -apiSchemaNames - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `targetApiId` | UUID | - ### `useApplyRegistryDefaultsQuery` applyRegistryDefaults @@ -2557,42 +2538,6 @@ platformVerifySitePreviewToken | `siteId` | UUID | | `token` | String | -### `useResolveDeepLinkQuery` - -resolveDeepLink - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `linkSlug` | String | - | `targetSiteId` | UUID | - -### `useResolveRouteQuery` - -resolveRoute - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `requestHost` | String | - | `requestMethod` | String | - | `requestPath` | String | - -### `useResolveSiteAppLinksQuery` - -resolveSiteAppLinks - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `targetSiteId` | UUID | - ### `useSitesDeepLinkUrlQuery` sitesDeepLinkUrl diff --git a/sdk/constructive-react/src/api/hooks/index.ts b/sdk/constructive-react/src/api/hooks/index.ts index e69ef19c9e..71e1007a30 100644 --- a/sdk/constructive-react/src/api/hooks/index.ts +++ b/sdk/constructive-react/src/api/hooks/index.ts @@ -2,7 +2,7 @@ * GraphQL SDK * @generated by @constructive-io/graphql-codegen * - * Tables: Api, ApiSchema, ApiSetting, AstMigration, CheckConstraint, CompositeType, CorsSetting, Database, DatabaseSetting, DatabaseTransfer, DefaultPrivilege, Derive, Domain, DomainEvent, DomainType, DomainVerification, EmailIdentity, EmailProviderAccount, EmailSiteIdentity, EmbeddingChunk, Enum, ExclusionConstraint, FieldBehavior, Field, ForeignKeyConstraintBehavior, ForeignKeyConstraint, FullTextSearch, Function, GetSitePreviewsRecord, IdentityProviderRegistry, Index, ListSuspendedDatabasesRecord, ManagedDomain, NodeTypeRegistry, Page, Partition, PlatformApi, PlatformApiSchema, PlatformApiSetting, PlatformCorsSetting, PlatformDomain, PlatformDomainEvent, PlatformDomainVerification, PlatformEmailIdentity, PlatformEmailProviderAccount, PlatformEmailSiteIdentity, PlatformGetSitePreviewsRecord, PlatformManagedDomain, PlatformPage, PlatformSiteAppLink, PlatformSite, PlatformSiteDeepLink, PlatformSiteErrorPage, PlatformSiteMetadatum, PlatformSiteModule, PlatformSiteRelease, PlatformSiteTheme, PlatformSiteWebConfig, Policy, PrimaryKeyConstraint, PubkeySetting, Redirect, RlsSetting, Route, Schema, SchemaGrant, SiteAppLink, Site, SiteDeepLink, SiteErrorPage, SiteMetadatum, SiteModule, SiteRelease, SiteTheme, SiteWebConfig, SpatialRelation, SqlAction, TableBehavior, Table, TableGrant, Trigger, TriggerFunction, UniqueConstraintBehavior, UniqueConstraint, ViewBehavior, View, ViewGrant, ViewRule, ViewTable, WebauthnSetting + * Tables: Api, ApiSchema, ApiSetting, AstMigration, CheckConstraint, CompositeType, CorsSetting, Database, DatabaseSetting, DatabaseTransfer, DefaultPrivilege, Derive, Domain, DomainEvent, DomainType, DomainVerification, EmailIdentity, EmailProviderAccount, EmailSiteIdentity, EmbeddingChunk, Enum, ExclusionConstraint, FieldBehavior, Field, ForeignKeyConstraintBehavior, ForeignKeyConstraint, FullTextSearch, Function, GetSitePreviewsRecord, IdentityProviderRegistry, Index, ListSuspendedDatabasesRecord, ManagedDomain, NodeTypeRegistry, Page, Partition, PlatformApi, PlatformApiSchema, PlatformApiSetting, PlatformCorsSetting, PlatformDomain, PlatformDomainEvent, PlatformDomainVerification, PlatformEmailIdentity, PlatformEmailProviderAccount, PlatformEmailSiteIdentity, PlatformGetSitePreviewsRecord, PlatformManagedDomain, PlatformPage, PlatformReservedSubdomain, PlatformSiteAppLink, PlatformSite, PlatformSiteDeepLink, PlatformSiteErrorPage, PlatformSiteMetadatum, PlatformSiteModule, PlatformSiteRelease, PlatformSiteTheme, PlatformSiteWebConfig, Policy, PrimaryKeyConstraint, PubkeySetting, Redirect, RlsSetting, Route, Schema, SchemaGrant, SiteAppLink, Site, SiteDeepLink, SiteErrorPage, SiteMetadatum, SiteModule, SiteRelease, SiteTheme, SiteWebConfig, SpatialRelation, SqlAction, TableBehavior, Table, TableGrant, Trigger, TriggerFunction, UniqueConstraintBehavior, UniqueConstraint, ViewBehavior, View, ViewGrant, ViewRule, ViewTable, WebauthnSetting * * Usage: * diff --git a/sdk/constructive-react/src/api/hooks/invalidation.ts b/sdk/constructive-react/src/api/hooks/invalidation.ts index 64a35bc6ca..37608f665a 100644 --- a/sdk/constructive-react/src/api/hooks/invalidation.ts +++ b/sdk/constructive-react/src/api/hooks/invalidation.ts @@ -64,6 +64,7 @@ import { platformGetSitePreviewsRecordKeys, platformManagedDomainKeys, platformPageKeys, + platformReservedSubdomainKeys, platformSiteAppLinkKeys, platformSiteKeys, platformSiteDeepLinkKeys, @@ -934,6 +935,23 @@ export const invalidate = { queryKey: platformPageKeys.detail(id), }), }, + /** Invalidate platformReservedSubdomain queries */ platformReservedSubdomain: { + /** Invalidate all platformReservedSubdomain queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformReservedSubdomainKeys.all, + }), + /** Invalidate platformReservedSubdomain list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformReservedSubdomainKeys.lists(), + }), + /** Invalidate a specific platformReservedSubdomain */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformReservedSubdomainKeys.detail(id), + }), + }, /** Invalidate platformSiteAppLink queries */ platformSiteAppLink: { /** Invalidate all platformSiteAppLink queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1976,6 +1994,14 @@ export const remove = { queryKey: platformPageKeys.detail(id), }); }, + /** Remove platformReservedSubdomain from cache */ platformReservedSubdomain: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformReservedSubdomainKeys.detail(id), + }); + }, /** Remove platformSiteAppLink from cache */ platformSiteAppLink: ( queryClient: QueryClient, id: string | number diff --git a/sdk/constructive-react/src/api/hooks/mutation-keys.ts b/sdk/constructive-react/src/api/hooks/mutation-keys.ts index 8f71c0e390..f856c54a5f 100644 --- a/sdk/constructive-react/src/api/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/api/hooks/mutation-keys.ts @@ -476,6 +476,18 @@ export const platformPageMutationKeys = { /** Delete platformPage mutation key */ delete: (id: string | number) => ['mutation', 'platformpage', 'delete', id] as const, } as const; +export const platformReservedSubdomainMutationKeys = { + /** All platformReservedSubdomain mutation keys */ all: [ + 'mutation', + 'platformreservedsubdomain', + ] as const, + /** Create platformReservedSubdomain mutation key */ create: () => + ['mutation', 'platformreservedsubdomain', 'create'] as const, + /** Update platformReservedSubdomain mutation key */ update: (id: string | number) => + ['mutation', 'platformreservedsubdomain', 'update', id] as const, + /** Delete platformReservedSubdomain mutation key */ delete: (id: string | number) => + ['mutation', 'platformreservedsubdomain', 'delete', id] as const, +} as const; export const platformSiteAppLinkMutationKeys = { /** All platformSiteAppLink mutation keys */ all: ['mutation', 'platformsiteapplink'] as const, /** Create platformSiteAppLink mutation key */ create: () => @@ -1072,6 +1084,7 @@ export const mutationKeys = { platformGetSitePreviewsRecord: platformGetSitePreviewsRecordMutationKeys, platformManagedDomain: platformManagedDomainMutationKeys, platformPage: platformPageMutationKeys, + platformReservedSubdomain: platformReservedSubdomainMutationKeys, platformSiteAppLink: platformSiteAppLinkMutationKeys, platformSite: platformSiteMutationKeys, platformSiteDeepLink: platformSiteDeepLinkMutationKeys, diff --git a/sdk/constructive-react/src/api/hooks/mutations/index.ts b/sdk/constructive-react/src/api/hooks/mutations/index.ts index 213cbbadd2..f98b70db38 100644 --- a/sdk/constructive-react/src/api/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/api/hooks/mutations/index.ts @@ -12,7 +12,6 @@ export * from './useDeleteApiSchemaMutation'; export * from './useCreateApiSettingMutation'; export * from './useUpdateApiSettingMutation'; export * from './useDeleteApiSettingMutation'; -export * from './useCreateAstMigrationMutation'; export * from './useCreateCheckConstraintMutation'; export * from './useUpdateCheckConstraintMutation'; export * from './useDeleteCheckConstraintMutation'; @@ -85,14 +84,12 @@ export * from './useDeleteFullTextSearchMutation'; export * from './useCreateFunctionMutation'; export * from './useUpdateFunctionMutation'; export * from './useDeleteFunctionMutation'; -export * from './useCreateGetSitePreviewsRecordMutation'; export * from './useCreateIdentityProviderRegistryMutation'; export * from './useUpdateIdentityProviderRegistryMutation'; export * from './useDeleteIdentityProviderRegistryMutation'; export * from './useCreateIndexMutation'; export * from './useUpdateIndexMutation'; export * from './useDeleteIndexMutation'; -export * from './useCreateListSuspendedDatabasesRecordMutation'; export * from './useCreateManagedDomainMutation'; export * from './useUpdateManagedDomainMutation'; export * from './useDeleteManagedDomainMutation'; @@ -135,13 +132,15 @@ export * from './useDeletePlatformEmailProviderAccountMutation'; export * from './useCreatePlatformEmailSiteIdentityMutation'; export * from './useUpdatePlatformEmailSiteIdentityMutation'; export * from './useDeletePlatformEmailSiteIdentityMutation'; -export * from './useCreatePlatformGetSitePreviewsRecordMutation'; export * from './useCreatePlatformManagedDomainMutation'; export * from './useUpdatePlatformManagedDomainMutation'; export * from './useDeletePlatformManagedDomainMutation'; export * from './useCreatePlatformPageMutation'; export * from './useUpdatePlatformPageMutation'; export * from './useDeletePlatformPageMutation'; +export * from './useCreatePlatformReservedSubdomainMutation'; +export * from './useUpdatePlatformReservedSubdomainMutation'; +export * from './useDeletePlatformReservedSubdomainMutation'; export * from './useCreatePlatformSiteAppLinkMutation'; export * from './useUpdatePlatformSiteAppLinkMutation'; export * from './useDeletePlatformSiteAppLinkMutation'; @@ -223,7 +222,6 @@ export * from './useDeleteSiteWebConfigMutation'; export * from './useCreateSpatialRelationMutation'; export * from './useUpdateSpatialRelationMutation'; export * from './useDeleteSpatialRelationMutation'; -export * from './useCreateSqlActionMutation'; export * from './useCreateTableBehaviorMutation'; export * from './useUpdateTableBehaviorMutation'; export * from './useDeleteTableBehaviorMutation'; diff --git a/sdk/constructive-react/src/api/hooks/mutations/useCreateAstMigrationMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateAstMigrationMutation.ts deleted file mode 100644 index 7f9caacb12..0000000000 --- a/sdk/constructive-react/src/api/hooks/mutations/useCreateAstMigrationMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Create mutation hook for AstMigration - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { astMigrationKeys } from '../query-keys'; -import { astMigrationMutationKeys } from '../mutation-keys'; -import type { - AstMigrationSelect, - AstMigrationWithRelations, - CreateAstMigrationInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AstMigrationSelect, - AstMigrationWithRelations, - CreateAstMigrationInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a AstMigration - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAstMigrationMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAstMigrationMutation( - params: { - selection: { - fields: S & AstMigrationSelect; - } & HookStrictSelect, AstMigrationSelect>; - } & Omit< - UseMutationOptions< - { - createAstMigration: { - astMigration: InferSelectResult; - }; - }, - Error, - CreateAstMigrationInput['astMigration'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAstMigration: { - astMigration: InferSelectResult; - }; - }, - Error, - CreateAstMigrationInput['astMigration'] ->; -export function useCreateAstMigrationMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: astMigrationMutationKeys.create(), - mutationFn: (data: CreateAstMigrationInput['astMigration']) => - getClient() - .astMigration.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: astMigrationKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useCreateGetSitePreviewsRecordMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateGetSitePreviewsRecordMutation.ts deleted file mode 100644 index a4db420795..0000000000 --- a/sdk/constructive-react/src/api/hooks/mutations/useCreateGetSitePreviewsRecordMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Create mutation hook for GetSitePreviewsRecord - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { getSitePreviewsRecordKeys } from '../query-keys'; -import { getSitePreviewsRecordMutationKeys } from '../mutation-keys'; -import type { - GetSitePreviewsRecordSelect, - GetSitePreviewsRecordWithRelations, - CreateGetSitePreviewsRecordInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - GetSitePreviewsRecordSelect, - GetSitePreviewsRecordWithRelations, - CreateGetSitePreviewsRecordInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a GetSitePreviewsRecord - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateGetSitePreviewsRecordMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateGetSitePreviewsRecordMutation( - params: { - selection: { - fields: S & GetSitePreviewsRecordSelect; - } & HookStrictSelect, GetSitePreviewsRecordSelect>; - } & Omit< - UseMutationOptions< - { - createGetSitePreviewsRecord: { - getSitePreviewsRecord: InferSelectResult; - }; - }, - Error, - CreateGetSitePreviewsRecordInput['getSitePreviewsRecord'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createGetSitePreviewsRecord: { - getSitePreviewsRecord: InferSelectResult; - }; - }, - Error, - CreateGetSitePreviewsRecordInput['getSitePreviewsRecord'] ->; -export function useCreateGetSitePreviewsRecordMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: getSitePreviewsRecordMutationKeys.create(), - mutationFn: (data: CreateGetSitePreviewsRecordInput['getSitePreviewsRecord']) => - getClient() - .getSitePreviewsRecord.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: getSitePreviewsRecordKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useCreateListSuspendedDatabasesRecordMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateListSuspendedDatabasesRecordMutation.ts deleted file mode 100644 index c8eb955473..0000000000 --- a/sdk/constructive-react/src/api/hooks/mutations/useCreateListSuspendedDatabasesRecordMutation.ts +++ /dev/null @@ -1,100 +0,0 @@ -/** - * Create mutation hook for ListSuspendedDatabasesRecord - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { listSuspendedDatabasesRecordKeys } from '../query-keys'; -import { listSuspendedDatabasesRecordMutationKeys } from '../mutation-keys'; -import type { - ListSuspendedDatabasesRecordSelect, - ListSuspendedDatabasesRecordWithRelations, - CreateListSuspendedDatabasesRecordInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - ListSuspendedDatabasesRecordSelect, - ListSuspendedDatabasesRecordWithRelations, - CreateListSuspendedDatabasesRecordInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a ListSuspendedDatabasesRecord - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateListSuspendedDatabasesRecordMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateListSuspendedDatabasesRecordMutation< - S extends ListSuspendedDatabasesRecordSelect, ->( - params: { - selection: { - fields: S & ListSuspendedDatabasesRecordSelect; - } & HookStrictSelect, ListSuspendedDatabasesRecordSelect>; - } & Omit< - UseMutationOptions< - { - createListSuspendedDatabasesRecord: { - listSuspendedDatabasesRecord: InferSelectResult< - ListSuspendedDatabasesRecordWithRelations, - S - >; - }; - }, - Error, - CreateListSuspendedDatabasesRecordInput['listSuspendedDatabasesRecord'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createListSuspendedDatabasesRecord: { - listSuspendedDatabasesRecord: InferSelectResult; - }; - }, - Error, - CreateListSuspendedDatabasesRecordInput['listSuspendedDatabasesRecord'] ->; -export function useCreateListSuspendedDatabasesRecordMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - CreateListSuspendedDatabasesRecordInput['listSuspendedDatabasesRecord'] - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: listSuspendedDatabasesRecordMutationKeys.create(), - mutationFn: (data: CreateListSuspendedDatabasesRecordInput['listSuspendedDatabasesRecord']) => - getClient() - .listSuspendedDatabasesRecord.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: listSuspendedDatabasesRecordKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useCreatePlatformGetSitePreviewsRecordMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreatePlatformGetSitePreviewsRecordMutation.ts deleted file mode 100644 index c2f3e8c5c5..0000000000 --- a/sdk/constructive-react/src/api/hooks/mutations/useCreatePlatformGetSitePreviewsRecordMutation.ts +++ /dev/null @@ -1,103 +0,0 @@ -/** - * Create mutation hook for PlatformGetSitePreviewsRecord - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformGetSitePreviewsRecordKeys } from '../query-keys'; -import { platformGetSitePreviewsRecordMutationKeys } from '../mutation-keys'; -import type { - PlatformGetSitePreviewsRecordSelect, - PlatformGetSitePreviewsRecordWithRelations, - CreatePlatformGetSitePreviewsRecordInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PlatformGetSitePreviewsRecordSelect, - PlatformGetSitePreviewsRecordWithRelations, - CreatePlatformGetSitePreviewsRecordInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a PlatformGetSitePreviewsRecord - * - * @example - * ```tsx - * const { mutate, isPending } = useCreatePlatformGetSitePreviewsRecordMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreatePlatformGetSitePreviewsRecordMutation< - S extends PlatformGetSitePreviewsRecordSelect, ->( - params: { - selection: { - fields: S & PlatformGetSitePreviewsRecordSelect; - } & HookStrictSelect, PlatformGetSitePreviewsRecordSelect>; - } & Omit< - UseMutationOptions< - { - createPlatformGetSitePreviewsRecord: { - platformGetSitePreviewsRecord: InferSelectResult< - PlatformGetSitePreviewsRecordWithRelations, - S - >; - }; - }, - Error, - CreatePlatformGetSitePreviewsRecordInput['platformGetSitePreviewsRecord'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createPlatformGetSitePreviewsRecord: { - platformGetSitePreviewsRecord: InferSelectResult< - PlatformGetSitePreviewsRecordWithRelations, - S - >; - }; - }, - Error, - CreatePlatformGetSitePreviewsRecordInput['platformGetSitePreviewsRecord'] ->; -export function useCreatePlatformGetSitePreviewsRecordMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - CreatePlatformGetSitePreviewsRecordInput['platformGetSitePreviewsRecord'] - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: platformGetSitePreviewsRecordMutationKeys.create(), - mutationFn: (data: CreatePlatformGetSitePreviewsRecordInput['platformGetSitePreviewsRecord']) => - getClient() - .platformGetSitePreviewsRecord.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: platformGetSitePreviewsRecordKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useCreatePlatformReservedSubdomainMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreatePlatformReservedSubdomainMutation.ts new file mode 100644 index 0000000000..0f4e41e3bc --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useCreatePlatformReservedSubdomainMutation.ts @@ -0,0 +1,97 @@ +/** + * Subdomain labels no tenant may claim under a platform apex + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformReservedSubdomainKeys } from '../query-keys'; +import { platformReservedSubdomainMutationKeys } from '../mutation-keys'; +import type { + PlatformReservedSubdomainSelect, + PlatformReservedSubdomainWithRelations, + CreatePlatformReservedSubdomainInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformReservedSubdomainSelect, + PlatformReservedSubdomainWithRelations, + CreatePlatformReservedSubdomainInput, +} from '../../orm/input-types'; +/** + * Subdomain labels no tenant may claim under a platform apex + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformReservedSubdomainMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformReservedSubdomainMutation< + S extends PlatformReservedSubdomainSelect, +>( + params: { + selection: { + fields: S & PlatformReservedSubdomainSelect; + } & HookStrictSelect, PlatformReservedSubdomainSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformReservedSubdomain: { + platformReservedSubdomain: InferSelectResult; + }; + }, + Error, + CreatePlatformReservedSubdomainInput['platformReservedSubdomain'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformReservedSubdomain: { + platformReservedSubdomain: InferSelectResult; + }; + }, + Error, + CreatePlatformReservedSubdomainInput['platformReservedSubdomain'] +>; +export function useCreatePlatformReservedSubdomainMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + CreatePlatformReservedSubdomainInput['platformReservedSubdomain'] + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformReservedSubdomainMutationKeys.create(), + mutationFn: (data: CreatePlatformReservedSubdomainInput['platformReservedSubdomain']) => + getClient() + .platformReservedSubdomain.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformReservedSubdomainKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useCreateSqlActionMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateSqlActionMutation.ts deleted file mode 100644 index d8eaa7564f..0000000000 --- a/sdk/constructive-react/src/api/hooks/mutations/useCreateSqlActionMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Create mutation hook for SqlAction - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { sqlActionKeys } from '../query-keys'; -import { sqlActionMutationKeys } from '../mutation-keys'; -import type { - SqlActionSelect, - SqlActionWithRelations, - CreateSqlActionInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - SqlActionSelect, - SqlActionWithRelations, - CreateSqlActionInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a SqlAction - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateSqlActionMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateSqlActionMutation( - params: { - selection: { - fields: S & SqlActionSelect; - } & HookStrictSelect, SqlActionSelect>; - } & Omit< - UseMutationOptions< - { - createSqlAction: { - sqlAction: InferSelectResult; - }; - }, - Error, - CreateSqlActionInput['sqlAction'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createSqlAction: { - sqlAction: InferSelectResult; - }; - }, - Error, - CreateSqlActionInput['sqlAction'] ->; -export function useCreateSqlActionMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: sqlActionMutationKeys.create(), - mutationFn: (data: CreateSqlActionInput['sqlAction']) => - getClient() - .sqlAction.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: sqlActionKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useDeletePlatformReservedSubdomainMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeletePlatformReservedSubdomainMutation.ts new file mode 100644 index 0000000000..7926f92d95 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useDeletePlatformReservedSubdomainMutation.ts @@ -0,0 +1,106 @@ +/** + * Subdomain labels no tenant may claim under a platform apex + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformReservedSubdomainKeys } from '../query-keys'; +import { platformReservedSubdomainMutationKeys } from '../mutation-keys'; +import type { + PlatformReservedSubdomainSelect, + PlatformReservedSubdomainWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformReservedSubdomainSelect, + PlatformReservedSubdomainWithRelations, +} from '../../orm/input-types'; +/** + * Subdomain labels no tenant may claim under a platform apex + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlatformReservedSubdomainMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlatformReservedSubdomainMutation< + S extends PlatformReservedSubdomainSelect, +>( + params: { + selection: { + fields: S & PlatformReservedSubdomainSelect; + } & HookStrictSelect, PlatformReservedSubdomainSelect>; + } & Omit< + UseMutationOptions< + { + deletePlatformReservedSubdomain: { + platformReservedSubdomain: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlatformReservedSubdomain: { + platformReservedSubdomain: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePlatformReservedSubdomainMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformReservedSubdomainMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .platformReservedSubdomain.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: platformReservedSubdomainKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformReservedSubdomainKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useUpdatePlatformReservedSubdomainMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdatePlatformReservedSubdomainMutation.ts new file mode 100644 index 0000000000..117598d865 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useUpdatePlatformReservedSubdomainMutation.ts @@ -0,0 +1,118 @@ +/** + * Subdomain labels no tenant may claim under a platform apex + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformReservedSubdomainKeys } from '../query-keys'; +import { platformReservedSubdomainMutationKeys } from '../mutation-keys'; +import type { + PlatformReservedSubdomainSelect, + PlatformReservedSubdomainWithRelations, + PlatformReservedSubdomainPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformReservedSubdomainSelect, + PlatformReservedSubdomainWithRelations, + PlatformReservedSubdomainPatch, +} from '../../orm/input-types'; +/** + * Subdomain labels no tenant may claim under a platform apex + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformReservedSubdomainMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformReservedSubdomainPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformReservedSubdomainMutation< + S extends PlatformReservedSubdomainSelect, +>( + params: { + selection: { + fields: S & PlatformReservedSubdomainSelect; + } & HookStrictSelect, PlatformReservedSubdomainSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformReservedSubdomain: { + platformReservedSubdomain: InferSelectResult; + }; + }, + Error, + { + id: string; + platformReservedSubdomainPatch: PlatformReservedSubdomainPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformReservedSubdomain: { + platformReservedSubdomain: InferSelectResult; + }; + }, + Error, + { + id: string; + platformReservedSubdomainPatch: PlatformReservedSubdomainPatch; + } +>; +export function useUpdatePlatformReservedSubdomainMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformReservedSubdomainPatch: PlatformReservedSubdomainPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformReservedSubdomainMutationKeys.all, + mutationFn: ({ + id, + platformReservedSubdomainPatch, + }: { + id: string; + platformReservedSubdomainPatch: PlatformReservedSubdomainPatch; + }) => + getClient() + .platformReservedSubdomain.update({ + where: { + id, + }, + data: platformReservedSubdomainPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformReservedSubdomainKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformReservedSubdomainKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/queries/index.ts b/sdk/constructive-react/src/api/hooks/queries/index.ts index b57ad83438..0afaf213b5 100644 --- a/sdk/constructive-react/src/api/hooks/queries/index.ts +++ b/sdk/constructive-react/src/api/hooks/queries/index.ts @@ -99,6 +99,8 @@ export * from './usePlatformManagedDomainsQuery'; export * from './usePlatformManagedDomainQuery'; export * from './usePlatformPagesQuery'; export * from './usePlatformPageQuery'; +export * from './usePlatformReservedSubdomainsQuery'; +export * from './usePlatformReservedSubdomainQuery'; export * from './usePlatformSiteAppLinksQuery'; export * from './usePlatformSiteAppLinkQuery'; export * from './usePlatformSitesQuery'; @@ -181,7 +183,6 @@ export * from './useViewTablesQuery'; export * from './useViewTableQuery'; export * from './useWebauthnSettingsQuery'; export * from './useWebauthnSettingQuery'; -export * from './useApiSchemaNamesQuery'; export * from './useApplyRegistryDefaultsQuery'; export * from './useEmailSharedAccountQuery'; export * from './useGetSitePreviewCommitQuery'; @@ -193,9 +194,6 @@ export * from './usePlatformPagePublishedQuery'; export * from './usePlatformSitesDeepLinkUrlQuery'; export * from './usePlatformSitesSiteOriginQuery'; export * from './usePlatformVerifySitePreviewTokenQuery'; -export * from './useResolveDeepLinkQuery'; -export * from './useResolveRouteQuery'; -export * from './useResolveSiteAppLinksQuery'; export * from './useSitesDeepLinkUrlQuery'; export * from './useSitesSiteOriginQuery'; export * from './useVerifySitePreviewTokenQuery'; diff --git a/sdk/constructive-react/src/api/hooks/queries/useApiSchemaNamesQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useApiSchemaNamesQuery.ts deleted file mode 100644 index 1d45b38894..0000000000 --- a/sdk/constructive-react/src/api/hooks/queries/useApiSchemaNamesQuery.ts +++ /dev/null @@ -1,105 +0,0 @@ -/** - * Custom query hook for apiSchemaNames - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-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 { ApiSchemaNamesVariables } from '../../orm/query'; -export type { ApiSchemaNamesVariables } from '../../orm/query'; -/** Query key factory - re-exported from query-keys.ts */ -export const apiSchemaNamesQueryKey = customQueryKeys.apiSchemaNames; -/** - * Query hook for apiSchemaNames - * - * @example - * ```tsx - * const { data, isLoading } = useApiSchemaNamesQuery({ variables: { targetApiId } }); - * - * if (data?.apiSchemaNames) { - * console.log(data.apiSchemaNames); - * } - * ``` - */ -export function useApiSchemaNamesQuery< - TData = { - apiSchemaNames: unknown | null; - }, ->( - params?: { - variables?: ApiSchemaNamesVariables; - } & Omit< - UseQueryOptions< - { - apiSchemaNames: unknown | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useApiSchemaNamesQuery< - TData = { - apiSchemaNames: unknown | null; - }, ->( - params?: { - variables?: ApiSchemaNamesVariables; - } & Omit< - UseQueryOptions< - { - apiSchemaNames: unknown | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult { - const variables = params?.variables ?? {}; - const { variables: _variables, ...queryOptions } = params ?? {}; - void _variables; - return useQuery({ - queryKey: apiSchemaNamesQueryKey(variables), - queryFn: () => getClient().query.apiSchemaNames(variables).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch apiSchemaNames without React hooks - * - * @example - * ```ts - * const data = await fetchApiSchemaNamesQuery({ variables: { targetApiId } }); - * ``` - */ -export async function fetchApiSchemaNamesQuery(params?: { variables?: ApiSchemaNamesVariables }) { - const variables = params?.variables ?? {}; - return getClient().query.apiSchemaNames(variables).unwrap(); -} -/** - * Prefetch apiSchemaNames for SSR or cache warming - * - * @example - * ```ts - * await prefetchApiSchemaNamesQuery(queryClient, { variables: { targetApiId } }); - * ``` - */ -export async function prefetchApiSchemaNamesQuery( - queryClient: QueryClient, - params?: { - variables?: ApiSchemaNamesVariables; - } -): Promise { - const variables = params?.variables ?? {}; - await queryClient.prefetchQuery({ - queryKey: apiSchemaNamesQueryKey(variables), - queryFn: () => getClient().query.apiSchemaNames(variables).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/api/hooks/queries/usePlatformReservedSubdomainQuery.ts b/sdk/constructive-react/src/api/hooks/queries/usePlatformReservedSubdomainQuery.ts new file mode 100644 index 0000000000..20cb32de19 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/queries/usePlatformReservedSubdomainQuery.ts @@ -0,0 +1,151 @@ +/** + * Subdomain labels no tenant may claim under a platform apex + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformReservedSubdomainKeys } from '../query-keys'; +import type { + PlatformReservedSubdomainSelect, + PlatformReservedSubdomainWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformReservedSubdomainSelect, + PlatformReservedSubdomainWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformReservedSubdomainQueryKey = platformReservedSubdomainKeys.detail; +/** + * Subdomain labels no tenant may claim under a platform apex + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformReservedSubdomainQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformReservedSubdomainQuery< + S extends PlatformReservedSubdomainSelect, + TData = { + platformReservedSubdomain: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformReservedSubdomainSelect>; + } & Omit< + UseQueryOptions< + { + platformReservedSubdomain: InferSelectResult< + PlatformReservedSubdomainWithRelations, + S + > | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformReservedSubdomainQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformReservedSubdomainKeys.detail(params.id), + queryFn: () => + getClient() + .platformReservedSubdomain.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Subdomain labels no tenant may claim under a platform apex + * + * @example + * ```ts + * const data = await fetchPlatformReservedSubdomainQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformReservedSubdomainQuery< + S extends PlatformReservedSubdomainSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformReservedSubdomainSelect>; +}): Promise<{ + platformReservedSubdomain: InferSelectResult | null; +}>; +export async function fetchPlatformReservedSubdomainQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformReservedSubdomain.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Subdomain labels no tenant may claim under a platform apex + * + * @example + * ```ts + * await prefetchPlatformReservedSubdomainQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformReservedSubdomainQuery< + S extends PlatformReservedSubdomainSelect, +>( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformReservedSubdomainSelect>; + } +): Promise; +export async function prefetchPlatformReservedSubdomainQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformReservedSubdomainKeys.detail(params.id), + queryFn: () => + getClient() + .platformReservedSubdomain.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/api/hooks/queries/usePlatformReservedSubdomainsQuery.ts b/sdk/constructive-react/src/api/hooks/queries/usePlatformReservedSubdomainsQuery.ts new file mode 100644 index 0000000000..6f7cea223d --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/queries/usePlatformReservedSubdomainsQuery.ts @@ -0,0 +1,182 @@ +/** + * Subdomain labels no tenant may claim under a platform apex + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { platformReservedSubdomainKeys } from '../query-keys'; +import type { + PlatformReservedSubdomainSelect, + PlatformReservedSubdomainWithRelations, + PlatformReservedSubdomainFilter, + PlatformReservedSubdomainOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformReservedSubdomainSelect, + PlatformReservedSubdomainWithRelations, + PlatformReservedSubdomainFilter, + PlatformReservedSubdomainOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformReservedSubdomainsQueryKey = platformReservedSubdomainKeys.list; +/** + * Subdomain labels no tenant may claim under a platform apex + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformReservedSubdomainsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformReservedSubdomainsQuery< + S extends PlatformReservedSubdomainSelect, + TData = { + platformReservedSubdomains: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformReservedSubdomainSelect>; + } & Omit< + UseQueryOptions< + { + platformReservedSubdomains: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformReservedSubdomainsQuery( + params: { + selection: ListSelectionConfig< + PlatformReservedSubdomainSelect, + PlatformReservedSubdomainFilter, + PlatformReservedSubdomainOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformReservedSubdomainSelect, + PlatformReservedSubdomainFilter, + PlatformReservedSubdomainOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformReservedSubdomainKeys.list(args), + queryFn: () => getClient().platformReservedSubdomain.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Subdomain labels no tenant may claim under a platform apex + * + * @example + * ```ts + * const data = await fetchPlatformReservedSubdomainsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformReservedSubdomainsQuery< + S extends PlatformReservedSubdomainSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformReservedSubdomainSelect>; +}): Promise<{ + platformReservedSubdomains: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchPlatformReservedSubdomainsQuery(params: { + selection: ListSelectionConfig< + PlatformReservedSubdomainSelect, + PlatformReservedSubdomainFilter, + PlatformReservedSubdomainOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformReservedSubdomainSelect, + PlatformReservedSubdomainFilter, + PlatformReservedSubdomainOrderBy + >(params.selection); + return getClient().platformReservedSubdomain.findMany(args).unwrap(); +} +/** + * Subdomain labels no tenant may claim under a platform apex + * + * @example + * ```ts + * await prefetchPlatformReservedSubdomainsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformReservedSubdomainsQuery< + S extends PlatformReservedSubdomainSelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformReservedSubdomainSelect>; + } +): Promise; +export async function prefetchPlatformReservedSubdomainsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformReservedSubdomainSelect, + PlatformReservedSubdomainFilter, + PlatformReservedSubdomainOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformReservedSubdomainSelect, + PlatformReservedSubdomainFilter, + PlatformReservedSubdomainOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformReservedSubdomainKeys.list(args), + queryFn: () => getClient().platformReservedSubdomain.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/api/hooks/queries/useResolveDeepLinkQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useResolveDeepLinkQuery.ts deleted file mode 100644 index 61add404ea..0000000000 --- a/sdk/constructive-react/src/api/hooks/queries/useResolveDeepLinkQuery.ts +++ /dev/null @@ -1,105 +0,0 @@ -/** - * Custom query hook for resolveDeepLink - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-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 { ResolveDeepLinkVariables } from '../../orm/query'; -export type { ResolveDeepLinkVariables } from '../../orm/query'; -/** Query key factory - re-exported from query-keys.ts */ -export const resolveDeepLinkQueryKey = customQueryKeys.resolveDeepLink; -/** - * Query hook for resolveDeepLink - * - * @example - * ```tsx - * const { data, isLoading } = useResolveDeepLinkQuery({ variables: { linkSlug, targetSiteId } }); - * - * if (data?.resolveDeepLink) { - * console.log(data.resolveDeepLink); - * } - * ``` - */ -export function useResolveDeepLinkQuery< - TData = { - resolveDeepLink: unknown | null; - }, ->( - params?: { - variables?: ResolveDeepLinkVariables; - } & Omit< - UseQueryOptions< - { - resolveDeepLink: unknown | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useResolveDeepLinkQuery< - TData = { - resolveDeepLink: unknown | null; - }, ->( - params?: { - variables?: ResolveDeepLinkVariables; - } & Omit< - UseQueryOptions< - { - resolveDeepLink: unknown | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult { - const variables = params?.variables ?? {}; - const { variables: _variables, ...queryOptions } = params ?? {}; - void _variables; - return useQuery({ - queryKey: resolveDeepLinkQueryKey(variables), - queryFn: () => getClient().query.resolveDeepLink(variables).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch resolveDeepLink without React hooks - * - * @example - * ```ts - * const data = await fetchResolveDeepLinkQuery({ variables: { linkSlug, targetSiteId } }); - * ``` - */ -export async function fetchResolveDeepLinkQuery(params?: { variables?: ResolveDeepLinkVariables }) { - const variables = params?.variables ?? {}; - return getClient().query.resolveDeepLink(variables).unwrap(); -} -/** - * Prefetch resolveDeepLink for SSR or cache warming - * - * @example - * ```ts - * await prefetchResolveDeepLinkQuery(queryClient, { variables: { linkSlug, targetSiteId } }); - * ``` - */ -export async function prefetchResolveDeepLinkQuery( - queryClient: QueryClient, - params?: { - variables?: ResolveDeepLinkVariables; - } -): Promise { - const variables = params?.variables ?? {}; - await queryClient.prefetchQuery({ - queryKey: resolveDeepLinkQueryKey(variables), - queryFn: () => getClient().query.resolveDeepLink(variables).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/api/hooks/queries/useResolveRouteQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useResolveRouteQuery.ts deleted file mode 100644 index 6986d75350..0000000000 --- a/sdk/constructive-react/src/api/hooks/queries/useResolveRouteQuery.ts +++ /dev/null @@ -1,139 +0,0 @@ -/** - * Custom query hook for resolveRoute - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-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 { ResolveRouteVariables } from '../../orm/query'; -import type { ResolveRouteRecordSelect, ResolveRouteRecord } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { ResolveRouteVariables } from '../../orm/query'; -export type { ResolveRouteRecordSelect } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const resolveRouteQueryKey = customQueryKeys.resolveRoute; -/** - * Query hook for resolveRoute - * - * @example - * ```tsx - * const { data, isLoading } = useResolveRouteQuery({ variables: { requestHost, requestMethod, requestPath }, selection: { fields: { id: true } } }); - * - * if (data?.resolveRoute) { - * console.log(data.resolveRoute); - * } - * ``` - */ -export function useResolveRouteQuery< - S extends ResolveRouteRecordSelect, - TData = { - resolveRoute: InferSelectResult | null; - }, ->( - params: { - variables?: ResolveRouteVariables; - selection: { - fields: S & ResolveRouteRecordSelect; - } & HookStrictSelect, ResolveRouteRecordSelect>; - } & Omit< - UseQueryOptions< - { - resolveRoute: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useResolveRouteQuery( - params: { - variables?: ResolveRouteVariables; - 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: resolveRouteQueryKey(variables), - queryFn: () => - getClient() - .query.resolveRoute(variables, { - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Fetch resolveRoute without React hooks - * - * @example - * ```ts - * const data = await fetchResolveRouteQuery({ variables: { requestHost, requestMethod, requestPath }, selection: { fields: { id: true } } }); - * ``` - */ -export async function fetchResolveRouteQuery(params: { - variables?: ResolveRouteVariables; - selection: { - fields: S & ResolveRouteRecordSelect; - } & HookStrictSelect, ResolveRouteRecordSelect>; -}): Promise<{ - resolveRoute: InferSelectResult | null; -}>; -export async function fetchResolveRouteQuery(params: { - variables?: ResolveRouteVariables; - selection: SelectionConfig; -}) { - const variables = params.variables ?? {}; - const args = buildSelectionArgs(params.selection); - return getClient() - .query.resolveRoute(variables, { - select: args.select, - }) - .unwrap(); -} -/** - * Prefetch resolveRoute for SSR or cache warming - * - * @example - * ```ts - * await prefetchResolveRouteQuery(queryClient, { variables: { requestHost, requestMethod, requestPath }, selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchResolveRouteQuery( - queryClient: QueryClient, - params: { - variables?: ResolveRouteVariables; - selection: { - fields: S & ResolveRouteRecordSelect; - } & HookStrictSelect, ResolveRouteRecordSelect>; - } -): Promise; -export async function prefetchResolveRouteQuery( - queryClient: QueryClient, - params: { - variables?: ResolveRouteVariables; - selection: SelectionConfig; - } -): Promise { - const variables = params.variables ?? {}; - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: resolveRouteQueryKey(variables), - queryFn: () => - getClient() - .query.resolveRoute(variables, { - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/api/hooks/queries/useResolveSiteAppLinksQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useResolveSiteAppLinksQuery.ts deleted file mode 100644 index 0accd74a08..0000000000 --- a/sdk/constructive-react/src/api/hooks/queries/useResolveSiteAppLinksQuery.ts +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Custom query hook for resolveSiteAppLinks - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-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 { ResolveSiteAppLinksVariables } from '../../orm/query'; -export type { ResolveSiteAppLinksVariables } from '../../orm/query'; -/** Query key factory - re-exported from query-keys.ts */ -export const resolveSiteAppLinksQueryKey = customQueryKeys.resolveSiteAppLinks; -/** - * Query hook for resolveSiteAppLinks - * - * @example - * ```tsx - * const { data, isLoading } = useResolveSiteAppLinksQuery({ variables: { targetSiteId } }); - * - * if (data?.resolveSiteAppLinks) { - * console.log(data.resolveSiteAppLinks); - * } - * ``` - */ -export function useResolveSiteAppLinksQuery< - TData = { - resolveSiteAppLinks: unknown | null; - }, ->( - params?: { - variables?: ResolveSiteAppLinksVariables; - } & Omit< - UseQueryOptions< - { - resolveSiteAppLinks: unknown | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useResolveSiteAppLinksQuery< - TData = { - resolveSiteAppLinks: unknown | null; - }, ->( - params?: { - variables?: ResolveSiteAppLinksVariables; - } & Omit< - UseQueryOptions< - { - resolveSiteAppLinks: unknown | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult { - const variables = params?.variables ?? {}; - const { variables: _variables, ...queryOptions } = params ?? {}; - void _variables; - return useQuery({ - queryKey: resolveSiteAppLinksQueryKey(variables), - queryFn: () => getClient().query.resolveSiteAppLinks(variables).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch resolveSiteAppLinks without React hooks - * - * @example - * ```ts - * const data = await fetchResolveSiteAppLinksQuery({ variables: { targetSiteId } }); - * ``` - */ -export async function fetchResolveSiteAppLinksQuery(params?: { - variables?: ResolveSiteAppLinksVariables; -}) { - const variables = params?.variables ?? {}; - return getClient().query.resolveSiteAppLinks(variables).unwrap(); -} -/** - * Prefetch resolveSiteAppLinks for SSR or cache warming - * - * @example - * ```ts - * await prefetchResolveSiteAppLinksQuery(queryClient, { variables: { targetSiteId } }); - * ``` - */ -export async function prefetchResolveSiteAppLinksQuery( - queryClient: QueryClient, - params?: { - variables?: ResolveSiteAppLinksVariables; - } -): Promise { - const variables = params?.variables ?? {}; - await queryClient.prefetchQuery({ - queryKey: resolveSiteAppLinksQueryKey(variables), - queryFn: () => getClient().query.resolveSiteAppLinks(variables).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/api/hooks/query-keys.ts b/sdk/constructive-react/src/api/hooks/query-keys.ts index c534c4c09a..d63b5908f6 100644 --- a/sdk/constructive-react/src/api/hooks/query-keys.ts +++ b/sdk/constructive-react/src/api/hooks/query-keys.ts @@ -465,6 +465,15 @@ export const platformPageKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...platformPageKeys.details(), id] as const, } as const; +export const platformReservedSubdomainKeys = { + /** All platformReservedSubdomain queries */ all: ['platformreservedsubdomain'] as const, + /** List query keys */ lists: () => [...platformReservedSubdomainKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformReservedSubdomainKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...platformReservedSubdomainKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformReservedSubdomainKeys.details(), id] as const, +} as const; export const platformSiteAppLinkKeys = { /** All platformSiteAppLink queries */ all: ['platformsiteapplink'] as const, /** List query keys */ lists: () => [...platformSiteAppLinkKeys.all, 'list'] as const, @@ -840,8 +849,6 @@ export const webauthnSettingKeys = { // ============================================================================ export const customQueryKeys = { - /** Query key for apiSchemaNames */ apiSchemaNames: (variables?: object) => - ['apiSchemaNames', variables] as const, /** Query key for applyRegistryDefaults */ applyRegistryDefaults: (variables?: object) => ['applyRegistryDefaults', variables] as const, /** Query key for emailSharedAccount */ emailSharedAccount: () => ['emailSharedAccount'] as const, @@ -866,12 +873,6 @@ export const customQueryKeys = { /** Query key for platformVerifySitePreviewToken */ platformVerifySitePreviewToken: ( variables?: object ) => ['platformVerifySitePreviewToken', variables] as const, - /** Query key for resolveDeepLink */ resolveDeepLink: (variables?: object) => - ['resolveDeepLink', variables] as const, - /** Query key for resolveRoute */ resolveRoute: (variables?: object) => - ['resolveRoute', variables] as const, - /** Query key for resolveSiteAppLinks */ resolveSiteAppLinks: (variables?: object) => - ['resolveSiteAppLinks', variables] as const, /** Query key for sitesDeepLinkUrl */ sitesDeepLinkUrl: (variables?: object) => ['sitesDeepLinkUrl', variables] as const, /** Query key for sitesSiteOrigin */ sitesSiteOrigin: (variables?: object) => @@ -951,6 +952,7 @@ export const queryKeys = { platformGetSitePreviewsRecord: platformGetSitePreviewsRecordKeys, platformManagedDomain: platformManagedDomainKeys, platformPage: platformPageKeys, + platformReservedSubdomain: platformReservedSubdomainKeys, platformSiteAppLink: platformSiteAppLinkKeys, platformSite: platformSiteKeys, platformSiteDeepLink: platformSiteDeepLinkKeys, diff --git a/sdk/constructive-react/src/api/orm/README.md b/sdk/constructive-react/src/api/orm/README.md index 02e465c85e..fb5e6acbf6 100644 --- a/sdk/constructive-react/src/api/orm/README.md +++ b/sdk/constructive-react/src/api/orm/README.md @@ -24,7 +24,7 @@ const db = createClient({ | `api` | findMany, findOne, create, update, delete | | `apiSchema` | findMany, findOne, create, update, delete | | `apiSetting` | findMany, findOne, create, update, delete | -| `astMigration` | findMany, findOne, create, update, delete | +| `astMigration` | findMany, findOne, update, delete | | `checkConstraint` | findMany, findOne, create, update, delete | | `compositeType` | findMany, findOne, create, update, delete | | `corsSetting` | findMany, findOne, create, update, delete | @@ -49,10 +49,10 @@ const db = createClient({ | `foreignKeyConstraint` | findMany, findOne, create, update, delete | | `fullTextSearch` | findMany, findOne, create, update, delete | | `function` | findMany, findOne, create, update, delete | -| `getSitePreviewsRecord` | findMany, findOne, create, update, delete | +| `getSitePreviewsRecord` | findMany, findOne, update, delete | | `identityProviderRegistry` | findMany, findOne, create, update, delete | | `index` | findMany, findOne, create, update, delete | -| `listSuspendedDatabasesRecord` | findMany, findOne, create, update, delete | +| `listSuspendedDatabasesRecord` | findMany, findOne, update, delete | | `managedDomain` | findMany, findOne, create, update, delete | | `nodeTypeRegistry` | findMany, findOne, create, update, delete | | `page` | findMany, findOne, create, update, delete | @@ -67,9 +67,10 @@ const db = createClient({ | `platformEmailIdentity` | findMany, findOne, create, update, delete | | `platformEmailProviderAccount` | findMany, findOne, create, update, delete | | `platformEmailSiteIdentity` | findMany, findOne, create, update, delete | -| `platformGetSitePreviewsRecord` | findMany, findOne, create, update, delete | +| `platformGetSitePreviewsRecord` | findMany, findOne, update, delete | | `platformManagedDomain` | findMany, findOne, create, update, delete | | `platformPage` | findMany, findOne, create, update, delete | +| `platformReservedSubdomain` | findMany, findOne, create, update, delete | | `platformSiteAppLink` | findMany, findOne, create, update, delete | | `platformSite` | findMany, findOne, create, update, delete | | `platformSiteDeepLink` | findMany, findOne, create, update, delete | @@ -97,7 +98,7 @@ const db = createClient({ | `siteTheme` | findMany, findOne, create, update, delete | | `siteWebConfig` | findMany, findOne, create, update, delete | | `spatialRelation` | findMany, findOne, create, update, delete | -| `sqlAction` | findMany, findOne, create, update, delete | +| `sqlAction` | findMany, findOne, update, delete | | `tableBehavior` | findMany, findOne, create, update, delete | | `table` | findMany, findOne, create, update, delete | | `tableGrant` | findMany, findOne, create, update, delete | @@ -126,24 +127,24 @@ CRUD operations for Api records. | `config` | JSON | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | -| `dbname` | String | Yes | | `id` | UUID | No | | `isPublished` | Boolean | Yes | | `name` | String | Yes | | `roleName` | String | Yes | +| `serviceHostname` | String | Yes | | `updatedAt` | Datetime | No | **Operations:** ```typescript // List all api records -const items = await db.api.findMany({ select: { anonRole: true, config: true, createdAt: true, databaseId: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); +const items = await db.api.findMany({ select: { anonRole: true, config: true, createdAt: true, databaseId: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.api.findOne({ id: '', select: { anonRole: true, config: true, createdAt: true, databaseId: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); +const item = await db.api.findOne({ id: '', select: { anonRole: true, config: true, createdAt: true, databaseId: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } }).execute(); // Create -const created = await db.api.create({ data: { anonRole: '', config: '', databaseId: '', dbname: '', isPublished: '', name: '', roleName: '' }, select: { id: true } }).execute(); +const created = await db.api.create({ data: { anonRole: '', config: '', databaseId: '', isPublished: '', name: '', roleName: '', serviceHostname: '' }, select: { id: true } }).execute(); // Update const updated = await db.api.update({ where: { id: '' }, data: { anonRole: '' }, select: { id: true } }).execute(); @@ -200,7 +201,6 @@ CRUD operations for ApiSetting records. | `enableAggregates` | Boolean | Yes | | `enableBulk` | Boolean | Yes | | `enableConnectionFilter` | Boolean | Yes | -| `enableDirectUploads` | Boolean | Yes | | `enableI18N` | Boolean | Yes | | `enableIntrospection` | Boolean | Yes | | `enableLlm` | Boolean | Yes | @@ -229,13 +229,13 @@ CRUD operations for ApiSetting records. ```typescript // List all apiSetting records -const items = await db.apiSetting.findMany({ select: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const items = await db.apiSetting.findMany({ select: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.apiSetting.findOne({ id: '', select: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const item = await db.apiSetting.findOne({ id: '', select: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Create -const created = await db.apiSetting.create({ data: { apiId: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); +const created = await db.apiSetting.create({ data: { apiId: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); // Update const updated = await db.apiSetting.update({ where: { id: '' }, data: { apiId: '' }, select: { id: true } }).execute(); @@ -275,9 +275,6 @@ const items = await db.astMigration.findMany({ select: { actionId: true, actionN // Get one by id const item = await db.astMigration.findOne({ id: '', select: { actionId: true, actionName: true, actorId: true, createdAt: true, databaseId: true, deploy: true, deploys: true, id: true, name: true, payload: true, requires: true, revert: true, verify: true } }).execute(); -// Create -const created = await db.astMigration.create({ data: { actionId: '', actionName: '', actorId: '', databaseId: '', deploy: '', deploys: '', name: '', payload: '', requires: '', revert: '', verify: '' }, select: { id: true } }).execute(); - // Update const updated = await db.astMigration.update({ where: { id: '' }, data: { actionId: '' }, select: { id: true } }).execute(); @@ -453,7 +450,6 @@ CRUD operations for DatabaseSetting records. | `enableBilling` | Boolean | Yes | | `enableBulk` | Boolean | Yes | | `enableConnectionFilter` | Boolean | Yes | -| `enableDirectUploads` | Boolean | Yes | | `enableI18N` | Boolean | Yes | | `enableIntrospection` | Boolean | Yes | | `enableLlm` | Boolean | Yes | @@ -483,13 +479,13 @@ CRUD operations for DatabaseSetting records. ```typescript // List all databaseSetting records -const items = await db.databaseSetting.findMany({ select: { annotations: true, createdAt: true, creditsPerCent: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const items = await db.databaseSetting.findMany({ select: { annotations: true, createdAt: true, creditsPerCent: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.databaseSetting.findOne({ id: '', select: { annotations: true, createdAt: true, creditsPerCent: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const item = await db.databaseSetting.findOne({ id: '', select: { annotations: true, createdAt: true, creditsPerCent: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Create -const created = await db.databaseSetting.create({ data: { annotations: '', creditsPerCent: '', databaseId: '', enableAggregates: '', enableBilling: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', labels: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); +const created = await db.databaseSetting.create({ data: { annotations: '', creditsPerCent: '', databaseId: '', enableAggregates: '', enableBilling: '', enableBulk: '', enableConnectionFilter: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', labels: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); // Update const updated = await db.databaseSetting.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -1307,9 +1303,6 @@ const items = await db.getSitePreviewsRecord.findMany({ select: { commitId: true // Get one by id const item = await db.getSitePreviewsRecord.findOne({ id: '', select: { commitId: true, name: true } }).execute(); -// Create -const created = await db.getSitePreviewsRecord.create({ data: { commitId: '', name: '' }, select: { id: true } }).execute(); - // Update const updated = await db.getSitePreviewsRecord.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); @@ -1422,9 +1415,6 @@ const items = await db.listSuspendedDatabasesRecord.findMany({ select: { id: tru // Get one by id const item = await db.listSuspendedDatabasesRecord.findOne({ id: '', select: { id: true, name: true, ownerId: true, suspendedAt: true, suspendedReason: true } }).execute(); -// Create -const created = await db.listSuspendedDatabasesRecord.create({ data: { name: '', ownerId: '', suspendedAt: '', suspendedReason: '' }, select: { id: true } }).execute(); - // Update const updated = await db.listSuspendedDatabasesRecord.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); @@ -1601,24 +1591,24 @@ CRUD operations for PlatformApi records. | `anonRole` | String | Yes | | `config` | JSON | Yes | | `createdAt` | Datetime | No | -| `dbname` | String | Yes | | `id` | UUID | No | | `isPublished` | Boolean | Yes | | `name` | String | Yes | | `roleName` | String | Yes | +| `serviceHostname` | String | Yes | | `updatedAt` | Datetime | No | **Operations:** ```typescript // List all platformApi records -const items = await db.platformApi.findMany({ select: { anonRole: true, config: true, createdAt: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); +const items = await db.platformApi.findMany({ select: { anonRole: true, config: true, createdAt: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.platformApi.findOne({ id: '', select: { anonRole: true, config: true, createdAt: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); +const item = await db.platformApi.findOne({ id: '', select: { anonRole: true, config: true, createdAt: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } }).execute(); // Create -const created = await db.platformApi.create({ data: { anonRole: '', config: '', dbname: '', isPublished: '', name: '', roleName: '' }, select: { id: true } }).execute(); +const created = await db.platformApi.create({ data: { anonRole: '', config: '', isPublished: '', name: '', roleName: '', serviceHostname: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformApi.update({ where: { id: '' }, data: { anonRole: '' }, select: { id: true } }).execute(); @@ -1673,7 +1663,6 @@ CRUD operations for PlatformApiSetting records. | `enableAggregates` | Boolean | Yes | | `enableBulk` | Boolean | Yes | | `enableConnectionFilter` | Boolean | Yes | -| `enableDirectUploads` | Boolean | Yes | | `enableI18N` | Boolean | Yes | | `enableIntrospection` | Boolean | Yes | | `enableLlm` | Boolean | Yes | @@ -1702,13 +1691,13 @@ CRUD operations for PlatformApiSetting records. ```typescript // List all platformApiSetting records -const items = await db.platformApiSetting.findMany({ select: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const items = await db.platformApiSetting.findMany({ select: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.platformApiSetting.findOne({ id: '', select: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const item = await db.platformApiSetting.findOne({ id: '', select: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Create -const created = await db.platformApiSetting.create({ data: { apiId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); +const created = await db.platformApiSetting.create({ data: { apiId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformApiSetting.update({ where: { id: '' }, data: { apiId: '' }, select: { id: true } }).execute(); @@ -2010,9 +1999,6 @@ const items = await db.platformGetSitePreviewsRecord.findMany({ select: { commit // Get one by id const item = await db.platformGetSitePreviewsRecord.findOne({ id: '', select: { commitId: true, name: true } }).execute(); -// Create -const created = await db.platformGetSitePreviewsRecord.create({ data: { commitId: '', name: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformGetSitePreviewsRecord.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); @@ -2100,6 +2086,42 @@ const updated = await db.platformPage.update({ where: { id: '' }, data: { const deleted = await db.platformPage.delete({ where: { id: '' } }).execute(); ``` +### `db.platformReservedSubdomain` + +CRUD operations for PlatformReservedSubdomain records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `id` | UUID | No | +| `label` | String | Yes | +| `match` | String | Yes | +| `reason` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformReservedSubdomain records +const items = await db.platformReservedSubdomain.findMany({ select: { createdAt: true, createdByPrincipal: true, id: true, label: true, match: true, reason: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformReservedSubdomain.findOne({ id: '', select: { createdAt: true, createdByPrincipal: true, id: true, label: true, match: true, reason: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformReservedSubdomain.create({ data: { createdByPrincipal: '', label: '', match: '', reason: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformReservedSubdomain.update({ where: { id: '' }, data: { createdByPrincipal: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformReservedSubdomain.delete({ where: { id: '' } }).execute(); +``` + ### `db.platformSiteAppLink` CRUD operations for PlatformSiteAppLink records. @@ -2258,14 +2280,22 @@ CRUD operations for PlatformSiteMetadatum records. | Field | Type | Editable | |-------|------|----------| | `appleTouchIcon` | ConstructiveInternalTypeImage | Yes | +| `appleTouchIconUrl` | String | Yes | +| `appleTouchIconVersions` | FileVersion | Yes | | `canonicalUrl` | String | Yes | | `commitId` | UUID | Yes | | `createdAt` | Datetime | No | | `description` | String | Yes | | `favicon` | ConstructiveInternalTypeImage | Yes | +| `faviconUrl` | String | Yes | +| `faviconVersions` | FileVersion | Yes | | `id` | UUID | No | | `logo` | ConstructiveInternalTypeImage | Yes | +| `logoUrl` | String | Yes | +| `logoVersions` | FileVersion | Yes | | `ogImage` | ConstructiveInternalTypeImage | Yes | +| `ogImageUrl` | String | Yes | +| `ogImageVersions` | FileVersion | Yes | | `robots` | String | Yes | | `robotsSeededFrom` | JSON | Yes | | `siteId` | UUID | Yes | @@ -2277,13 +2307,13 @@ CRUD operations for PlatformSiteMetadatum records. ```typescript // List all platformSiteMetadatum records -const items = await db.platformSiteMetadatum.findMany({ select: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); +const items = await db.platformSiteMetadatum.findMany({ select: { appleTouchIcon: true, appleTouchIconUrl: true, appleTouchIconVersions: true, canonicalUrl: true, commitId: true, createdAt: true, description: true, favicon: true, faviconUrl: true, faviconVersions: true, id: true, logo: true, logoUrl: true, logoVersions: true, ogImage: true, ogImageUrl: true, ogImageVersions: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.platformSiteMetadatum.findOne({ id: '', select: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); +const item = await db.platformSiteMetadatum.findOne({ id: '', select: { appleTouchIcon: true, appleTouchIconUrl: true, appleTouchIconVersions: true, canonicalUrl: true, commitId: true, createdAt: true, description: true, favicon: true, faviconUrl: true, faviconVersions: true, id: true, logo: true, logoUrl: true, logoVersions: true, ogImage: true, ogImageUrl: true, ogImageVersions: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); // Create -const created = await db.platformSiteMetadatum.create({ data: { appleTouchIcon: '', canonicalUrl: '', commitId: '', description: '', favicon: '', logo: '', ogImage: '', robots: '', robotsSeededFrom: '', siteId: '', storeId: '', title: '' }, select: { id: true } }).execute(); +const created = await db.platformSiteMetadatum.create({ data: { appleTouchIcon: '', appleTouchIconUrl: '', appleTouchIconVersions: '', canonicalUrl: '', commitId: '', description: '', favicon: '', faviconUrl: '', faviconVersions: '', logo: '', logoUrl: '', logoVersions: '', ogImage: '', ogImageUrl: '', ogImageVersions: '', robots: '', robotsSeededFrom: '', siteId: '', storeId: '', title: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformSiteMetadatum.update({ where: { id: '' }, data: { appleTouchIcon: '' }, select: { id: true } }).execute(); @@ -2926,15 +2956,23 @@ CRUD operations for SiteMetadatum records. | Field | Type | Editable | |-------|------|----------| | `appleTouchIcon` | ConstructiveInternalTypeImage | Yes | +| `appleTouchIconUrl` | String | Yes | +| `appleTouchIconVersions` | FileVersion | Yes | | `canonicalUrl` | String | Yes | | `commitId` | UUID | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | | `description` | String | Yes | | `favicon` | ConstructiveInternalTypeImage | Yes | +| `faviconUrl` | String | Yes | +| `faviconVersions` | FileVersion | Yes | | `id` | UUID | No | | `logo` | ConstructiveInternalTypeImage | Yes | +| `logoUrl` | String | Yes | +| `logoVersions` | FileVersion | Yes | | `ogImage` | ConstructiveInternalTypeImage | Yes | +| `ogImageUrl` | String | Yes | +| `ogImageVersions` | FileVersion | Yes | | `robots` | String | Yes | | `robotsSeededFrom` | JSON | Yes | | `siteId` | UUID | Yes | @@ -2946,13 +2984,13 @@ CRUD operations for SiteMetadatum records. ```typescript // List all siteMetadatum records -const items = await db.siteMetadatum.findMany({ select: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, databaseId: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); +const items = await db.siteMetadatum.findMany({ select: { appleTouchIcon: true, appleTouchIconUrl: true, appleTouchIconVersions: true, canonicalUrl: true, commitId: true, createdAt: true, databaseId: true, description: true, favicon: true, faviconUrl: true, faviconVersions: true, id: true, logo: true, logoUrl: true, logoVersions: true, ogImage: true, ogImageUrl: true, ogImageVersions: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.siteMetadatum.findOne({ id: '', select: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, databaseId: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); +const item = await db.siteMetadatum.findOne({ id: '', select: { appleTouchIcon: true, appleTouchIconUrl: true, appleTouchIconVersions: true, canonicalUrl: true, commitId: true, createdAt: true, databaseId: true, description: true, favicon: true, faviconUrl: true, faviconVersions: true, id: true, logo: true, logoUrl: true, logoVersions: true, ogImage: true, ogImageUrl: true, ogImageVersions: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); // Create -const created = await db.siteMetadatum.create({ data: { appleTouchIcon: '', canonicalUrl: '', commitId: '', databaseId: '', description: '', favicon: '', logo: '', ogImage: '', robots: '', robotsSeededFrom: '', siteId: '', storeId: '', title: '' }, select: { id: true } }).execute(); +const created = await db.siteMetadatum.create({ data: { appleTouchIcon: '', appleTouchIconUrl: '', appleTouchIconVersions: '', canonicalUrl: '', commitId: '', databaseId: '', description: '', favicon: '', faviconUrl: '', faviconVersions: '', logo: '', logoUrl: '', logoVersions: '', ogImage: '', ogImageUrl: '', ogImageVersions: '', robots: '', robotsSeededFrom: '', siteId: '', storeId: '', title: '' }, select: { id: true } }).execute(); // Update const updated = await db.siteMetadatum.update({ where: { id: '' }, data: { appleTouchIcon: '' }, select: { id: true } }).execute(); @@ -3181,9 +3219,6 @@ const items = await db.sqlAction.findMany({ select: { actionId: true, actionName // Get one by id const item = await db.sqlAction.findOne({ id: '', select: { actionId: true, actionName: true, actorId: true, content: true, createdAt: true, databaseId: true, deploy: true, deps: true, id: true, name: true, payload: true, revert: true, verify: true } }).execute(); -// Create -const created = await db.sqlAction.create({ data: { actionId: '', actionName: '', actorId: '', content: '', databaseId: '', deploy: '', deps: '', name: '', payload: '', revert: '', verify: '' }, select: { id: true } }).execute(); - // Update const updated = await db.sqlAction.update({ where: { id: '' }, data: { actionId: '' }, select: { id: true } }).execute(); @@ -3706,21 +3741,6 @@ const deleted = await db.webauthnSetting.delete({ where: { id: '' } }).exe ## Custom Operations -### `db.query.apiSchemaNames` - -apiSchemaNames - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `targetApiId` | UUID | - -```typescript -const result = await db.query.apiSchemaNames({ targetApiId: '' }).execute(); -``` - ### `db.query.applyRegistryDefaults` applyRegistryDefaults @@ -3891,54 +3911,6 @@ platformVerifySitePreviewToken const result = await db.query.platformVerifySitePreviewToken({ siteId: '', token: '' }).execute(); ``` -### `db.query.resolveDeepLink` - -resolveDeepLink - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `linkSlug` | String | - | `targetSiteId` | UUID | - -```typescript -const result = await db.query.resolveDeepLink({ linkSlug: '', targetSiteId: '' }).execute(); -``` - -### `db.query.resolveRoute` - -resolveRoute - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `requestHost` | String | - | `requestMethod` | String | - | `requestPath` | String | - -```typescript -const result = await db.query.resolveRoute({ requestHost: '', requestMethod: '', requestPath: '' }).execute(); -``` - -### `db.query.resolveSiteAppLinks` - -resolveSiteAppLinks - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `targetSiteId` | UUID | - -```typescript -const result = await db.query.resolveSiteAppLinks({ targetSiteId: '' }).execute(); -``` - ### `db.query.sitesDeepLinkUrl` sitesDeepLinkUrl diff --git a/sdk/constructive-react/src/api/orm/index.ts b/sdk/constructive-react/src/api/orm/index.ts index 038b8785ac..eb190bc93d 100644 --- a/sdk/constructive-react/src/api/orm/index.ts +++ b/sdk/constructive-react/src/api/orm/index.ts @@ -54,6 +54,7 @@ import { PlatformEmailSiteIdentityModel } from './models/platformEmailSiteIdenti import { PlatformGetSitePreviewsRecordModel } from './models/platformGetSitePreviewsRecord'; import { PlatformManagedDomainModel } from './models/platformManagedDomain'; import { PlatformPageModel } from './models/platformPage'; +import { PlatformReservedSubdomainModel } from './models/platformReservedSubdomain'; import { PlatformSiteAppLinkModel } from './models/platformSiteAppLink'; import { PlatformSiteModel } from './models/platformSite'; import { PlatformSiteDeepLinkModel } from './models/platformSiteDeepLink'; @@ -179,6 +180,7 @@ export function createClient(config: OrmClientConfig) { platformGetSitePreviewsRecord: new PlatformGetSitePreviewsRecordModel(client), platformManagedDomain: new PlatformManagedDomainModel(client), platformPage: new PlatformPageModel(client), + platformReservedSubdomain: new PlatformReservedSubdomainModel(client), platformSiteAppLink: new PlatformSiteAppLinkModel(client), platformSite: new PlatformSiteModel(client), platformSiteDeepLink: new PlatformSiteDeepLinkModel(client), diff --git a/sdk/constructive-react/src/api/orm/input-types.ts b/sdk/constructive-react/src/api/orm/input-types.ts index f4e5da7908..775dc37d17 100644 --- a/sdk/constructive-react/src/api/orm/input-types.ts +++ b/sdk/constructive-react/src/api/orm/input-types.ts @@ -235,6 +235,7 @@ export type ApiExposureLevel = 'EXPOSABLE' | 'INTERNAL_ONLY' | 'NEVER_EXPOSE'; export type ObjectCategory = 'APP' | 'AUTH' | 'CAPABILITIES' | 'CORE' | 'MEMBERSHIPS' | 'MODULE'; // ============ Custom Scalar Types ============ export type ConstructiveInternalTypeImage = unknown; +export type FileVersion = unknown; /** API surfaces exposed by this scope; publication makes a surface bindable from other scopes */ // ============ Entity Types ============ export interface Api { @@ -245,8 +246,6 @@ export interface Api { createdAt?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; - /** Database this API surface serves */ - dbname?: string | null; id: string; /** Whether other scopes may see and route to this API surface */ isPublished?: boolean | null; @@ -254,6 +253,7 @@ export interface Api { name?: string | null; /** Authenticated role the API executes as */ roleName?: string | null; + serviceHostname?: string | null; updatedAt?: string | null; } /** Join table linking API surfaces to the metaschema schemas they expose */ @@ -281,8 +281,6 @@ export interface ApiSetting { enableBulk?: boolean | null; /** Override: enable connection filter (NULL = inherit from database_settings) */ enableConnectionFilter?: boolean | null; - /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ - enableDirectUploads?: boolean | null; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean | null; /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ @@ -412,8 +410,6 @@ export interface DatabaseSetting { enableBulk?: boolean | null; /** Enable connection filter (where argument) in the GraphQL API */ enableConnectionFilter?: boolean | null; - /** Enable direct (multipart) file upload mutations in the GraphQL API */ - enableDirectUploads?: boolean | null; /** Enable internationalization plugin (localeStrings field, translation table discovery) in the GraphQL API */ enableI18N?: boolean | null; /** Enable GraphQL schema introspection queries in the GraphQL API. A tenant may only ever lower a bound, so the stored default is the permissive end: turning introspection off is the opt-in. */ @@ -945,8 +941,6 @@ export interface PlatformApi { /** Module-specific configuration for this API surface */ config?: Record | null; createdAt?: string | null; - /** Database this API surface serves */ - dbname?: string | null; id: string; /** Whether other scopes may see and route to this API surface */ isPublished?: boolean | null; @@ -954,6 +948,7 @@ export interface PlatformApi { name?: string | null; /** Authenticated role the API executes as */ roleName?: string | null; + serviceHostname?: string | null; updatedAt?: string | null; } /** Join table linking API surfaces to the metaschema schemas they expose */ @@ -977,8 +972,6 @@ export interface PlatformApiSetting { enableBulk?: boolean | null; /** Override: enable connection filter (NULL = inherit from database_settings) */ enableConnectionFilter?: boolean | null; - /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ - enableDirectUploads?: boolean | null; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean | null; /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ @@ -1229,6 +1222,20 @@ export interface PlatformPage { /** Timestamp of last modification */ updatedAt?: string | null; } +/** Subdomain labels no tenant may claim under a platform apex */ +export interface PlatformReservedSubdomain { + createdAt?: string | null; + createdByPrincipal?: string | null; + id: string; + /** Lowercase subdomain label, or the label prefix/suffix the match names */ + label?: string | null; + /** How the label matches a claimed label: exact, prefix or suffix */ + match?: string | null; + /** Why the label is reserved (free text, e.g. platform, brand, lookalike) */ + reason?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; +} /** Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) */ export interface PlatformSiteAppLink { /** App-owned store identity this association serves (app_store_identities row in this scope's app plane; the association carries no store facts of its own) */ @@ -1305,6 +1312,10 @@ export interface PlatformSiteErrorPage { export interface PlatformSiteMetadatum { /** Apple touch icon image (home-screen bookmark) */ appleTouchIcon?: ConstructiveInternalTypeImage | null; + /** URL to fetch `appleTouchIcon`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + appleTouchIconUrl?: string | null; + /** The versions rendered beside `appleTouchIcon`, narrowest first, each with a URL. Empty when there are none. */ + appleTouchIconVersions?: FileVersion[] | null; /** Canonical URL emitted in for this site */ canonicalUrl?: string | null; /** Infra store commit for the current content (stamped by the versioned trigger on every write) */ @@ -1314,11 +1325,23 @@ export interface PlatformSiteMetadatum { description?: string | null; /** Site favicon image */ favicon?: ConstructiveInternalTypeImage | null; + /** URL to fetch `favicon`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + faviconUrl?: string | null; + /** The versions rendered beside `favicon`, narrowest first, each with a URL. Empty when there are none. */ + faviconVersions?: FileVersion[] | null; id: string; /** Primary site logo image */ logo?: ConstructiveInternalTypeImage | null; + /** URL to fetch `logo`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + logoUrl?: string | null; + /** The versions rendered beside `logo`, narrowest first, each with a URL. Empty when there are none. */ + logoVersions?: FileVersion[] | null; /** Open Graph image used when sharing site links */ ogImage?: ConstructiveInternalTypeImage | null; + /** URL to fetch `ogImage`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + ogImageUrl?: string | null; + /** The versions rendered beside `ogImage`, narrowest first, each with a URL. Empty when there are none. */ + ogImageVersions?: FileVersion[] | null; /** robots meta directive (e.g. index,follow / noindex,nofollow) */ robots?: string | null; /** Provenance of the robots value: the content preset (kind, slug, catalog commit_id) an install applied, or NULL when it was authored directly */ @@ -1645,6 +1668,10 @@ export interface SiteErrorPage { export interface SiteMetadatum { /** Apple touch icon image (home-screen bookmark) */ appleTouchIcon?: ConstructiveInternalTypeImage | null; + /** URL to fetch `appleTouchIcon`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + appleTouchIconUrl?: string | null; + /** The versions rendered beside `appleTouchIcon`, narrowest first, each with a URL. Empty when there are none. */ + appleTouchIconVersions?: FileVersion[] | null; /** Canonical URL emitted in for this site */ canonicalUrl?: string | null; /** Infra store commit for the current content (stamped by the versioned trigger on every write) */ @@ -1656,11 +1683,23 @@ export interface SiteMetadatum { description?: string | null; /** Site favicon image */ favicon?: ConstructiveInternalTypeImage | null; + /** URL to fetch `favicon`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + faviconUrl?: string | null; + /** The versions rendered beside `favicon`, narrowest first, each with a URL. Empty when there are none. */ + faviconVersions?: FileVersion[] | null; id: string; /** Primary site logo image */ logo?: ConstructiveInternalTypeImage | null; + /** URL to fetch `logo`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + logoUrl?: string | null; + /** The versions rendered beside `logo`, narrowest first, each with a URL. Empty when there are none. */ + logoVersions?: FileVersion[] | null; /** Open Graph image used when sharing site links */ ogImage?: ConstructiveInternalTypeImage | null; + /** URL to fetch `ogImage`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + ogImageUrl?: string | null; + /** The versions rendered beside `ogImage`, narrowest first, each with a URL. Empty when there are none. */ + ogImageVersions?: FileVersion[] | null; /** robots meta directive (e.g. index,follow / noindex,nofollow) */ robots?: string | null; /** Provenance of the robots value: the content preset (kind, slug, catalog commit_id) an install applied, or NULL when it was authored directly */ @@ -2203,6 +2242,7 @@ export interface PlatformManagedDomainRelations { export interface PlatformPageRelations { site?: PlatformSite | null; } +export interface PlatformReservedSubdomainRelations {} export interface PlatformSiteAppLinkRelations { site?: PlatformSite | null; } @@ -2490,6 +2530,8 @@ export type PlatformGetSitePreviewsRecordWithRelations = PlatformGetSitePreviews export type PlatformManagedDomainWithRelations = PlatformManagedDomain & PlatformManagedDomainRelations; export type PlatformPageWithRelations = PlatformPage & PlatformPageRelations; +export type PlatformReservedSubdomainWithRelations = PlatformReservedSubdomain & + PlatformReservedSubdomainRelations; export type PlatformSiteAppLinkWithRelations = PlatformSiteAppLink & PlatformSiteAppLinkRelations; export type PlatformSiteWithRelations = PlatformSite & PlatformSiteRelations; export type PlatformSiteDeepLinkWithRelations = PlatformSiteDeepLink & @@ -2543,11 +2585,11 @@ export type ApiSelect = { config?: boolean; createdAt?: boolean; databaseId?: boolean; - dbname?: boolean; id?: boolean; isPublished?: boolean; name?: boolean; roleName?: boolean; + serviceHostname?: boolean; updatedAt?: boolean; apiSetting?: { select: ApiSettingSelect; @@ -2586,7 +2628,6 @@ export type ApiSettingSelect = { enableAggregates?: boolean; enableBulk?: boolean; enableConnectionFilter?: boolean; - enableDirectUploads?: boolean; enableI18N?: boolean; enableIntrospection?: boolean; enableLlm?: boolean; @@ -2905,7 +2946,6 @@ export type DatabaseSettingSelect = { enableBilling?: boolean; enableBulk?: boolean; enableConnectionFilter?: boolean; - enableDirectUploads?: boolean; enableI18N?: boolean; enableIntrospection?: boolean; enableLlm?: boolean; @@ -3547,11 +3587,11 @@ export type PlatformApiSelect = { anonRole?: boolean; config?: boolean; createdAt?: boolean; - dbname?: boolean; id?: boolean; isPublished?: boolean; name?: boolean; roleName?: boolean; + serviceHostname?: boolean; updatedAt?: boolean; platformApiSettingByApiId?: { select: PlatformApiSettingSelect; @@ -3585,7 +3625,6 @@ export type PlatformApiSettingSelect = { enableAggregates?: boolean; enableBulk?: boolean; enableConnectionFilter?: boolean; - enableDirectUploads?: boolean; enableI18N?: boolean; enableIntrospection?: boolean; enableLlm?: boolean; @@ -3802,6 +3841,16 @@ export type PlatformPageSelect = { select: PlatformSiteSelect; }; }; +export type PlatformReservedSubdomainSelect = { + createdAt?: boolean; + createdByPrincipal?: boolean; + id?: boolean; + label?: boolean; + match?: boolean; + reason?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; +}; export type PlatformSiteAppLinkSelect = { appStoreIdentityId?: boolean; createdAt?: boolean; @@ -3906,14 +3955,42 @@ export type PlatformSiteErrorPageSelect = { }; export type PlatformSiteMetadatumSelect = { appleTouchIcon?: boolean; + appleTouchIconUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + appleTouchIconVersions?: boolean; canonicalUrl?: boolean; commitId?: boolean; createdAt?: boolean; description?: boolean; favicon?: boolean; + faviconUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + faviconVersions?: boolean; id?: boolean; logo?: boolean; + logoUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + logoVersions?: boolean; ogImage?: boolean; + ogImageUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + ogImageVersions?: boolean; robots?: boolean; robotsSeededFrom?: boolean; siteId?: boolean; @@ -4357,15 +4434,43 @@ export type SiteErrorPageSelect = { }; export type SiteMetadatumSelect = { appleTouchIcon?: boolean; + appleTouchIconUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + appleTouchIconVersions?: boolean; canonicalUrl?: boolean; commitId?: boolean; createdAt?: boolean; databaseId?: boolean; description?: boolean; favicon?: boolean; + faviconUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + faviconVersions?: boolean; id?: boolean; logo?: boolean; + logoUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + logoVersions?: boolean; ogImage?: boolean; + ogImageUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + ogImageVersions?: boolean; robots?: boolean; robotsSeededFrom?: boolean; siteId?: boolean; @@ -4949,8 +5054,6 @@ export interface ApiFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isPublished` field. */ @@ -5007,8 +5110,6 @@ export interface ApiSettingFilter { enableBulk?: BooleanFilter; /** Filter by the object’s `enableConnectionFilter` field. */ enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; /** Filter by the object’s `enableIntrospection` field. */ @@ -5373,8 +5474,6 @@ export interface DatabaseSettingFilter { enableBulk?: BooleanFilter; /** Filter by the object’s `enableConnectionFilter` field. */ enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; /** Filter by the object’s `enableIntrospection` field. */ @@ -6478,8 +6577,6 @@ export interface PlatformApiFilter { config?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isPublished` field. */ @@ -6544,8 +6641,6 @@ export interface PlatformApiSettingFilter { enableBulk?: BooleanFilter; /** Filter by the object’s `enableConnectionFilter` field. */ enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; /** Filter by the object’s `enableIntrospection` field. */ @@ -6936,6 +7031,30 @@ export interface PlatformPageFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } +export interface PlatformReservedSubdomainFilter { + /** Checks for all expressions in this list. */ + and?: PlatformReservedSubdomainFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `match` field. */ + match?: StringFilter; + /** Negates the expression. */ + not?: PlatformReservedSubdomainFilter; + /** Checks for any expressions in this list. */ + or?: PlatformReservedSubdomainFilter[]; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} export interface PlatformSiteAppLinkFilter { /** Checks for all expressions in this list. */ and?: PlatformSiteAppLinkFilter[]; @@ -8650,8 +8769,6 @@ export type ApiOrderBy = | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DBNAME_ASC' - | 'DBNAME_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_PUBLISHED_ASC' @@ -8694,8 +8811,6 @@ export type ApiSettingOrderBy = | 'ENABLE_BULK_DESC' | 'ENABLE_CONNECTION_FILTER_ASC' | 'ENABLE_CONNECTION_FILTER_DESC' - | 'ENABLE_DIRECT_UPLOADS_ASC' - | 'ENABLE_DIRECT_UPLOADS_DESC' | 'ENABLE_I18N_ASC' | 'ENABLE_I18N_DESC' | 'ENABLE_INTROSPECTION_ASC' @@ -8886,8 +9001,6 @@ export type DatabaseSettingOrderBy = | 'ENABLE_BULK_DESC' | 'ENABLE_CONNECTION_FILTER_ASC' | 'ENABLE_CONNECTION_FILTER_DESC' - | 'ENABLE_DIRECT_UPLOADS_ASC' - | 'ENABLE_DIRECT_UPLOADS_DESC' | 'ENABLE_I18N_ASC' | 'ENABLE_I18N_DESC' | 'ENABLE_INTROSPECTION_ASC' @@ -9726,8 +9839,6 @@ export type PlatformApiOrderBy = | 'CONFIG_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'DBNAME_ASC' - | 'DBNAME_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_PUBLISHED_ASC' @@ -9766,8 +9877,6 @@ export type PlatformApiSettingOrderBy = | 'ENABLE_BULK_DESC' | 'ENABLE_CONNECTION_FILTER_ASC' | 'ENABLE_CONNECTION_FILTER_DESC' - | 'ENABLE_DIRECT_UPLOADS_ASC' - | 'ENABLE_DIRECT_UPLOADS_DESC' | 'ENABLE_I18N_ASC' | 'ENABLE_I18N_DESC' | 'ENABLE_INTROSPECTION_ASC' @@ -10063,6 +10172,26 @@ export type PlatformPageOrderBy = | 'STORE_ID_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type PlatformReservedSubdomainOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'MATCH_ASC' + | 'MATCH_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REASON_ASC' + | 'REASON_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type PlatformSiteAppLinkOrderBy = | 'APP_STORE_IDENTITY_ID_ASC' | 'APP_STORE_IDENTITY_ID_DESC' @@ -11144,7 +11273,6 @@ export interface CreateApiInput { anonRole?: string; config?: Record; databaseId: string; - dbname?: string; isPublished?: boolean; name: string; roleName?: string; @@ -11154,7 +11282,6 @@ export interface ApiPatch { anonRole?: string | null; config?: Record | null; databaseId?: string | null; - dbname?: string | null; isPublished?: boolean | null; name?: string | null; roleName?: string | null; @@ -11198,7 +11325,6 @@ export interface CreateApiSettingInput { enableAggregates?: boolean; enableBulk?: boolean; enableConnectionFilter?: boolean; - enableDirectUploads?: boolean; enableI18N?: boolean; enableIntrospection?: boolean; enableLlm?: boolean; @@ -11228,7 +11354,6 @@ export interface ApiSettingPatch { enableAggregates?: boolean | null; enableBulk?: boolean | null; enableConnectionFilter?: boolean | null; - enableDirectUploads?: boolean | null; enableI18N?: boolean | null; enableIntrospection?: boolean | null; enableLlm?: boolean | null; @@ -11260,22 +11385,6 @@ export interface DeleteApiSettingInput { clientMutationId?: string; id: string; } -export interface CreateAstMigrationInput { - clientMutationId?: string; - astMigration: { - actionId: string; - actionName?: string; - actorId: string; - databaseId: string; - deploy?: Record; - deploys?: string; - name?: string; - payload?: Record; - requires?: string[]; - revert?: Record; - verify?: Record; - }; -} export interface AstMigrationPatch { actionId?: string | null; actionName?: string | null; @@ -11428,7 +11537,6 @@ export interface CreateDatabaseSettingInput { enableBilling?: boolean; enableBulk?: boolean; enableConnectionFilter?: boolean; - enableDirectUploads?: boolean; enableI18N?: boolean; enableIntrospection?: boolean; enableLlm?: boolean; @@ -11461,7 +11569,6 @@ export interface DatabaseSettingPatch { enableBilling?: boolean | null; enableBulk?: boolean | null; enableConnectionFilter?: boolean | null; - enableDirectUploads?: boolean | null; enableI18N?: boolean | null; enableIntrospection?: boolean | null; enableLlm?: boolean | null; @@ -12214,13 +12321,6 @@ export interface DeleteFunctionInput { clientMutationId?: string; id: string; } -export interface CreateGetSitePreviewsRecordInput { - clientMutationId?: string; - getSitePreviewsRecord: { - commitId: string; - name?: string; - }; -} export interface GetSitePreviewsRecordPatch { commitId?: string | null; name?: string | null; @@ -12312,15 +12412,6 @@ export interface DeleteIndexInput { clientMutationId?: string; id: string; } -export interface CreateListSuspendedDatabasesRecordInput { - clientMutationId?: string; - listSuspendedDatabasesRecord: { - name?: string; - ownerId: string; - suspendedAt?: string; - suspendedReason?: string; - }; -} export interface ListSuspendedDatabasesRecordPatch { name?: string | null; ownerId?: string | null; @@ -12479,7 +12570,6 @@ export interface CreatePlatformApiInput { platformApi: { anonRole?: string; config?: Record; - dbname?: string; isPublished?: boolean; name: string; roleName?: string; @@ -12488,7 +12578,6 @@ export interface CreatePlatformApiInput { export interface PlatformApiPatch { anonRole?: string | null; config?: Record | null; - dbname?: string | null; isPublished?: boolean | null; name?: string | null; roleName?: string | null; @@ -12529,7 +12618,6 @@ export interface CreatePlatformApiSettingInput { enableAggregates?: boolean; enableBulk?: boolean; enableConnectionFilter?: boolean; - enableDirectUploads?: boolean; enableI18N?: boolean; enableIntrospection?: boolean; enableLlm?: boolean; @@ -12558,7 +12646,6 @@ export interface PlatformApiSettingPatch { enableAggregates?: boolean | null; enableBulk?: boolean | null; enableConnectionFilter?: boolean | null; - enableDirectUploads?: boolean | null; enableI18N?: boolean | null; enableIntrospection?: boolean | null; enableLlm?: boolean | null; @@ -12814,13 +12901,6 @@ export interface DeletePlatformEmailSiteIdentityInput { clientMutationId?: string; id: string; } -export interface CreatePlatformGetSitePreviewsRecordInput { - clientMutationId?: string; - platformGetSitePreviewsRecord: { - commitId: string; - name?: string; - }; -} export interface PlatformGetSitePreviewsRecordPatch { commitId?: string | null; name?: string | null; @@ -12902,6 +12982,32 @@ export interface DeletePlatformPageInput { clientMutationId?: string; id: string; } +export interface CreatePlatformReservedSubdomainInput { + clientMutationId?: string; + platformReservedSubdomain: { + createdByPrincipal?: string; + label: string; + match?: string; + reason?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformReservedSubdomainPatch { + createdByPrincipal?: string | null; + label?: string | null; + match?: string | null; + reason?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformReservedSubdomainInput { + clientMutationId?: string; + id: string; + platformReservedSubdomainPatch: PlatformReservedSubdomainPatch; +} +export interface DeletePlatformReservedSubdomainInput { + clientMutationId?: string; + id: string; +} export interface CreatePlatformSiteAppLinkInput { clientMutationId?: string; platformSiteAppLink: { @@ -13035,16 +13141,12 @@ export interface CreatePlatformSiteMetadatumInput { } export interface PlatformSiteMetadatumPatch { appleTouchIcon?: ConstructiveInternalTypeImage | null; - appleTouchIconUpload?: File | null; canonicalUrl?: string | null; commitId?: string | null; description?: string | null; favicon?: ConstructiveInternalTypeImage | null; - faviconUpload?: File | null; logo?: ConstructiveInternalTypeImage | null; - logoUpload?: File | null; ogImage?: ConstructiveInternalTypeImage | null; - ogImageUpload?: File | null; robots?: string | null; robotsSeededFrom?: Record | null; siteId?: string | null; @@ -13594,17 +13696,13 @@ export interface CreateSiteMetadatumInput { } export interface SiteMetadatumPatch { appleTouchIcon?: ConstructiveInternalTypeImage | null; - appleTouchIconUpload?: File | null; canonicalUrl?: string | null; commitId?: string | null; databaseId?: string | null; description?: string | null; favicon?: ConstructiveInternalTypeImage | null; - faviconUpload?: File | null; logo?: ConstructiveInternalTypeImage | null; - logoUpload?: File | null; ogImage?: ConstructiveInternalTypeImage | null; - ogImageUpload?: File | null; robots?: string | null; robotsSeededFrom?: Record | null; siteId?: string | null; @@ -13768,22 +13866,6 @@ export interface DeleteSpatialRelationInput { clientMutationId?: string; id: string; } -export interface CreateSqlActionInput { - clientMutationId?: string; - sqlAction: { - actionId: string; - actionName?: string; - actorId: string; - content?: string; - databaseId: string; - deploy?: string; - deps?: string[]; - name?: string; - payload?: Record; - revert?: string; - verify?: string; - }; -} export interface SqlActionPatch { actionId?: string | null; actionName?: string | null; @@ -15627,8 +15709,6 @@ export interface ApiInput { createdAt?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; - /** Database this API surface serves */ - dbname?: string; id?: string; /** Whether other scopes may see and route to this API surface */ isPublished?: boolean; @@ -15663,8 +15743,6 @@ export interface ApiSettingInput { enableBulk?: boolean; /** Override: enable connection filter (NULL = inherit from database_settings) */ enableConnectionFilter?: boolean; - /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ - enableDirectUploads?: boolean; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean; /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ @@ -15780,8 +15858,6 @@ export interface DatabaseSettingInput { enableBulk?: boolean; /** Enable connection filter (where argument) in the GraphQL API */ enableConnectionFilter?: boolean; - /** Enable direct (multipart) file upload mutations in the GraphQL API */ - enableDirectUploads?: boolean; /** Enable internationalization plugin (localeStrings field, translation table discovery) in the GraphQL API */ enableI18N?: boolean; /** Enable GraphQL schema introspection queries in the GraphQL API. A tenant may only ever lower a bound, so the stored default is the permissive end: turning introspection off is the opt-in. */ @@ -16319,8 +16395,6 @@ export interface PlatformApiInput { /** Module-specific configuration for this API surface */ config?: Record; createdAt?: string; - /** Database this API surface serves */ - dbname?: string; id?: string; /** Whether other scopes may see and route to this API surface */ isPublished?: boolean; @@ -16351,8 +16425,6 @@ export interface PlatformApiSettingInput { enableBulk?: boolean; /** Override: enable connection filter (NULL = inherit from database_settings) */ enableConnectionFilter?: boolean; - /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ - enableDirectUploads?: boolean; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean; /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ @@ -16599,6 +16671,20 @@ export interface PlatformPageInput { /** Timestamp of last modification */ updatedAt?: string; } +/** An input for mutations affecting `PlatformReservedSubdomain` */ +export interface PlatformReservedSubdomainInput { + createdAt?: string; + createdByPrincipal?: string; + id?: string; + /** Lowercase subdomain label, or the label prefix/suffix the match names */ + label: string; + /** How the label matches a claimed label: exact, prefix or suffix */ + match?: string; + /** Why the label is reserved (free text, e.g. platform, brand, lookalike) */ + reason?: string; + updatedAt?: string; + updatedByPrincipal?: string; +} /** An input for mutations affecting `PlatformSiteAppLink` */ export interface PlatformSiteAppLinkInput { /** App-owned store identity this association serves (app_store_identities row in this scope's app plane; the association carries no store facts of its own) */ @@ -19675,8 +19761,6 @@ export interface ApiFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isPublished` field. */ @@ -20445,8 +20529,6 @@ export interface PlatformApiFilter { config?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isPublished` field. */ @@ -20706,8 +20788,6 @@ export interface ApiSettingFilter { enableBulk?: BooleanFilter; /** Filter by the object’s `enableConnectionFilter` field. */ enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; /** Filter by the object’s `enableIntrospection` field. */ @@ -20874,8 +20954,6 @@ export interface PlatformApiSettingFilter { enableBulk?: BooleanFilter; /** Filter by the object’s `enableConnectionFilter` field. */ enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; /** Filter by the object’s `enableIntrospection` field. */ @@ -21069,44 +21147,6 @@ export interface BigIntFilter { notIn?: string[]; } // ============ Payload/Return Types (for custom operations) ============ -export interface ResolveRouteRecord { - domainId?: string | null; - hostname?: string | null; - matchedPath?: string | null; - matchedWildcard?: boolean | null; - method?: string | null; - priority?: number | null; - resolvedConfig?: Record | null; - routeBindingId?: string | null; - servingLane?: string | null; - targetCatalogId?: string | null; - targetModule?: string | null; - targetOwnerKey?: string | null; - targetOwnerScope?: string | null; - targetSourceId?: string | null; - tlsSecretName?: string | null; - tlsStatus?: string | null; - verificationStatus?: string | null; -} -export type ResolveRouteRecordSelect = { - domainId?: boolean; - hostname?: boolean; - matchedPath?: boolean; - matchedWildcard?: boolean; - method?: boolean; - priority?: boolean; - resolvedConfig?: boolean; - routeBindingId?: boolean; - servingLane?: boolean; - targetCatalogId?: boolean; - targetModule?: boolean; - targetOwnerKey?: boolean; - targetOwnerScope?: boolean; - targetSourceId?: boolean; - tlsSecretName?: boolean; - tlsStatus?: boolean; - verificationStatus?: boolean; -}; export interface AcceptDatabaseTransferPayload { clientMutationId?: string | null; result?: boolean | null; @@ -23421,6 +23461,51 @@ export type DeletePlatformPagePayloadSelect = { select: PlatformPageEdgeSelect; }; }; +export interface CreatePlatformReservedSubdomainPayload { + clientMutationId?: string | null; + /** The `PlatformReservedSubdomain` that was created by this mutation. */ + platformReservedSubdomain?: PlatformReservedSubdomain | null; + platformReservedSubdomainEdge?: PlatformReservedSubdomainEdge | null; +} +export type CreatePlatformReservedSubdomainPayloadSelect = { + clientMutationId?: boolean; + platformReservedSubdomain?: { + select: PlatformReservedSubdomainSelect; + }; + platformReservedSubdomainEdge?: { + select: PlatformReservedSubdomainEdgeSelect; + }; +}; +export interface UpdatePlatformReservedSubdomainPayload { + clientMutationId?: string | null; + /** The `PlatformReservedSubdomain` that was updated by this mutation. */ + platformReservedSubdomain?: PlatformReservedSubdomain | null; + platformReservedSubdomainEdge?: PlatformReservedSubdomainEdge | null; +} +export type UpdatePlatformReservedSubdomainPayloadSelect = { + clientMutationId?: boolean; + platformReservedSubdomain?: { + select: PlatformReservedSubdomainSelect; + }; + platformReservedSubdomainEdge?: { + select: PlatformReservedSubdomainEdgeSelect; + }; +}; +export interface DeletePlatformReservedSubdomainPayload { + clientMutationId?: string | null; + /** The `PlatformReservedSubdomain` that was deleted by this mutation. */ + platformReservedSubdomain?: PlatformReservedSubdomain | null; + platformReservedSubdomainEdge?: PlatformReservedSubdomainEdge | null; +} +export type DeletePlatformReservedSubdomainPayloadSelect = { + clientMutationId?: boolean; + platformReservedSubdomain?: { + select: PlatformReservedSubdomainSelect; + }; + platformReservedSubdomainEdge?: { + select: PlatformReservedSubdomainEdgeSelect; + }; +}; export interface CreatePlatformSiteAppLinkPayload { clientMutationId?: string | null; /** The `PlatformSiteAppLink` that was created by this mutation. */ @@ -25929,6 +26014,18 @@ export type PlatformPageEdgeSelect = { select: PlatformPageSelect; }; }; +/** A `PlatformReservedSubdomain` edge in the connection. */ +export interface PlatformReservedSubdomainEdge { + cursor?: string | null; + /** The `PlatformReservedSubdomain` at the end of the edge. */ + node?: PlatformReservedSubdomain | null; +} +export type PlatformReservedSubdomainEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformReservedSubdomainSelect; + }; +}; /** A `PlatformSiteAppLink` edge in the connection. */ export interface PlatformSiteAppLinkEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/api/orm/models/astMigration.ts b/sdk/constructive-react/src/api/orm/models/astMigration.ts index bfcc5f455a..ca429d54b2 100644 --- a/sdk/constructive-react/src/api/orm/models/astMigration.ts +++ b/sdk/constructive-react/src/api/orm/models/astMigration.ts @@ -29,7 +29,6 @@ import type { AstMigrationSelect, AstMigrationFilter, AstMigrationOrderBy, - CreateAstMigrationInput, UpdateAstMigrationInput, AstMigrationPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class AstMigrationModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAstMigration: { - astMigration: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AstMigration', - 'createAstMigration', - 'astMigration', - args.select, - args.data, - 'CreateAstMigrationInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AstMigration', - fieldName: 'createAstMigration', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/api/orm/models/getSitePreviewsRecord.ts b/sdk/constructive-react/src/api/orm/models/getSitePreviewsRecord.ts index dc2c778221..9c58fd8f10 100644 --- a/sdk/constructive-react/src/api/orm/models/getSitePreviewsRecord.ts +++ b/sdk/constructive-react/src/api/orm/models/getSitePreviewsRecord.ts @@ -29,7 +29,6 @@ import type { GetSitePreviewsRecordSelect, GetSitePreviewsRecordFilter, GetSitePreviewsRecordsOrderBy, - CreateGetSitePreviewsRecordInput, UpdateGetSitePreviewsRecordInput, GetSitePreviewsRecordPatch, } from '../input-types'; @@ -104,31 +103,4 @@ export class GetSitePreviewsRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createGetSitePreviewsRecord: { - getSitePreviewsRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'GetSitePreviewsRecord', - 'createGetSitePreviewsRecord', - 'getSitePreviewsRecord', - args.select, - args.data, - 'CreateGetSitePreviewsRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'GetSitePreviewsRecord', - fieldName: 'createGetSitePreviewsRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/api/orm/models/index.ts b/sdk/constructive-react/src/api/orm/models/index.ts index 207f507c84..3cd2ba5b52 100644 --- a/sdk/constructive-react/src/api/orm/models/index.ts +++ b/sdk/constructive-react/src/api/orm/models/index.ts @@ -52,6 +52,7 @@ export { PlatformEmailSiteIdentityModel } from './platformEmailSiteIdentity'; export { PlatformGetSitePreviewsRecordModel } from './platformGetSitePreviewsRecord'; export { PlatformManagedDomainModel } from './platformManagedDomain'; export { PlatformPageModel } from './platformPage'; +export { PlatformReservedSubdomainModel } from './platformReservedSubdomain'; export { PlatformSiteAppLinkModel } from './platformSiteAppLink'; export { PlatformSiteModel } from './platformSite'; export { PlatformSiteDeepLinkModel } from './platformSiteDeepLink'; diff --git a/sdk/constructive-react/src/api/orm/models/listSuspendedDatabasesRecord.ts b/sdk/constructive-react/src/api/orm/models/listSuspendedDatabasesRecord.ts index d479aad622..49858b365a 100644 --- a/sdk/constructive-react/src/api/orm/models/listSuspendedDatabasesRecord.ts +++ b/sdk/constructive-react/src/api/orm/models/listSuspendedDatabasesRecord.ts @@ -29,7 +29,6 @@ import type { ListSuspendedDatabasesRecordSelect, ListSuspendedDatabasesRecordFilter, ListSuspendedDatabasesRecordsOrderBy, - CreateListSuspendedDatabasesRecordInput, UpdateListSuspendedDatabasesRecordInput, ListSuspendedDatabasesRecordPatch, } from '../input-types'; @@ -160,31 +159,4 @@ export class ListSuspendedDatabasesRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createListSuspendedDatabasesRecord: { - listSuspendedDatabasesRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ListSuspendedDatabasesRecord', - 'createListSuspendedDatabasesRecord', - 'listSuspendedDatabasesRecord', - args.select, - args.data, - 'CreateListSuspendedDatabasesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ListSuspendedDatabasesRecord', - fieldName: 'createListSuspendedDatabasesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/api/orm/models/platformGetSitePreviewsRecord.ts b/sdk/constructive-react/src/api/orm/models/platformGetSitePreviewsRecord.ts index b2282eaa16..e037d0890f 100644 --- a/sdk/constructive-react/src/api/orm/models/platformGetSitePreviewsRecord.ts +++ b/sdk/constructive-react/src/api/orm/models/platformGetSitePreviewsRecord.ts @@ -29,7 +29,6 @@ import type { PlatformGetSitePreviewsRecordSelect, PlatformGetSitePreviewsRecordFilter, PlatformGetSitePreviewsRecordsOrderBy, - CreatePlatformGetSitePreviewsRecordInput, UpdatePlatformGetSitePreviewsRecordInput, PlatformGetSitePreviewsRecordPatch, } from '../input-types'; @@ -117,37 +116,4 @@ export class PlatformGetSitePreviewsRecordModel { }), }); } - create( - args: CreateArgs< - S, - CreatePlatformGetSitePreviewsRecordInput['platformGetSitePreviewsRecord'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformGetSitePreviewsRecord: { - platformGetSitePreviewsRecord: InferSelectResult< - PlatformGetSitePreviewsRecordWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformGetSitePreviewsRecord', - 'createPlatformGetSitePreviewsRecord', - 'platformGetSitePreviewsRecord', - args.select, - args.data, - 'CreatePlatformGetSitePreviewsRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformGetSitePreviewsRecord', - fieldName: 'createPlatformGetSitePreviewsRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/api/orm/models/platformReservedSubdomain.ts b/sdk/constructive-react/src/api/orm/models/platformReservedSubdomain.ts new file mode 100644 index 0000000000..ab3f3b97e5 --- /dev/null +++ b/sdk/constructive-react/src/api/orm/models/platformReservedSubdomain.ts @@ -0,0 +1,247 @@ +/** + * PlatformReservedSubdomain model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformReservedSubdomain, + PlatformReservedSubdomainWithRelations, + PlatformReservedSubdomainSelect, + PlatformReservedSubdomainFilter, + PlatformReservedSubdomainOrderBy, + CreatePlatformReservedSubdomainInput, + UpdatePlatformReservedSubdomainInput, + PlatformReservedSubdomainPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformReservedSubdomainModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformReservedSubdomains: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformReservedSubdomain', + 'platformReservedSubdomains', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformReservedSubdomainFilter', + 'PlatformReservedSubdomainOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformReservedSubdomain', + fieldName: 'platformReservedSubdomains', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformReservedSubdomain: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformReservedSubdomain', + 'platformReservedSubdomains', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformReservedSubdomainFilter', + 'PlatformReservedSubdomainOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformReservedSubdomain', + fieldName: 'platformReservedSubdomain', + document, + variables, + transform: (data: { + platformReservedSubdomains?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformReservedSubdomain: data.platformReservedSubdomains?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformReservedSubdomain: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformReservedSubdomain', + 'platformReservedSubdomains', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformReservedSubdomainFilter', + 'PlatformReservedSubdomainOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformReservedSubdomain', + fieldName: 'platformReservedSubdomain', + document, + variables, + transform: (data: { + platformReservedSubdomains?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformReservedSubdomain: data.platformReservedSubdomains?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformReservedSubdomain: { + platformReservedSubdomain: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformReservedSubdomain', + 'createPlatformReservedSubdomain', + 'platformReservedSubdomain', + args.select, + args.data, + 'CreatePlatformReservedSubdomainInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformReservedSubdomain', + fieldName: 'createPlatformReservedSubdomain', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformReservedSubdomainPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformReservedSubdomain: { + platformReservedSubdomain: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformReservedSubdomain', + 'updatePlatformReservedSubdomain', + 'platformReservedSubdomain', + args.select, + args.where.id, + args.data, + 'UpdatePlatformReservedSubdomainInput', + 'id', + 'platformReservedSubdomainPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformReservedSubdomain', + fieldName: 'updatePlatformReservedSubdomain', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformReservedSubdomain: { + platformReservedSubdomain: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformReservedSubdomain', + 'deletePlatformReservedSubdomain', + 'platformReservedSubdomain', + { + id: args.where.id, + }, + 'DeletePlatformReservedSubdomainInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformReservedSubdomain', + fieldName: 'deletePlatformReservedSubdomain', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/api/orm/models/sqlAction.ts b/sdk/constructive-react/src/api/orm/models/sqlAction.ts index 74b4418688..d9b77d8c06 100644 --- a/sdk/constructive-react/src/api/orm/models/sqlAction.ts +++ b/sdk/constructive-react/src/api/orm/models/sqlAction.ts @@ -29,7 +29,6 @@ import type { SqlActionSelect, SqlActionFilter, SqlActionOrderBy, - CreateSqlActionInput, UpdateSqlActionInput, SqlActionPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class SqlActionModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createSqlAction: { - sqlAction: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'SqlAction', - 'createSqlAction', - 'sqlAction', - args.select, - args.data, - 'CreateSqlActionInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'SqlAction', - fieldName: 'createSqlAction', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/api/orm/query/index.ts b/sdk/constructive-react/src/api/orm/query/index.ts index 12ea7b4e72..cfae605185 100644 --- a/sdk/constructive-react/src/api/orm/query/index.ts +++ b/sdk/constructive-react/src/api/orm/query/index.ts @@ -6,11 +6,7 @@ import { OrmClient } from '../client'; import { QueryBuilder, buildCustomDocument } from '../query-builder'; import type { InferSelectResult, StrictSelect } from '../select-types'; -import type { ResolveRouteRecord, ResolveRouteRecordSelect } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export interface ApiSchemaNamesVariables { - targetApiId?: string; -} export interface ApplyRegistryDefaultsVariables { data?: unknown; nodeType?: string; @@ -50,18 +46,6 @@ export interface PlatformVerifySitePreviewTokenVariables { siteId?: string; token?: string; } -export interface ResolveDeepLinkVariables { - linkSlug?: string; - targetSiteId?: string; -} -export interface ResolveRouteVariables { - requestHost?: string; - requestMethod?: string; - requestPath?: string; -} -export interface ResolveSiteAppLinksVariables { - targetSiteId?: string; -} export interface SitesDeepLinkUrlVariables { linkSlug?: string; targetSiteId?: string; @@ -75,35 +59,6 @@ export interface VerifySitePreviewTokenVariables { } export function createQueryOperations(client: OrmClient) { return { - apiSchemaNames: ( - args: ApiSchemaNamesVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - apiSchemaNames: unknown | null; - }>({ - client, - operation: 'query', - operationName: 'ApiSchemaNames', - fieldName: 'apiSchemaNames', - ...buildCustomDocument( - 'query', - 'ApiSchemaNames', - 'apiSchemaNames', - options?.select, - args, - [ - { - name: 'targetApiId', - type: 'UUID', - }, - ], - connectionFieldsMap, - undefined - ), - }), applyRegistryDefaults: ( args: ApplyRegistryDefaultsVariables, options?: { @@ -449,105 +404,6 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - resolveDeepLink: ( - args: ResolveDeepLinkVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - resolveDeepLink: unknown | null; - }>({ - client, - operation: 'query', - operationName: 'ResolveDeepLink', - fieldName: 'resolveDeepLink', - ...buildCustomDocument( - 'query', - 'ResolveDeepLink', - 'resolveDeepLink', - options?.select, - args, - [ - { - name: 'linkSlug', - type: 'String', - }, - { - name: 'targetSiteId', - type: 'UUID', - }, - ], - connectionFieldsMap, - undefined - ), - }), - resolveRoute: ( - args: ResolveRouteVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - resolveRoute: InferSelectResult | null; - }>({ - client, - operation: 'query', - operationName: 'ResolveRoute', - fieldName: 'resolveRoute', - ...buildCustomDocument( - 'query', - 'ResolveRoute', - 'resolveRoute', - options.select, - args, - [ - { - name: 'requestHost', - type: 'String', - }, - { - name: 'requestMethod', - type: 'String', - }, - { - name: 'requestPath', - type: 'String', - }, - ], - connectionFieldsMap, - 'ResolveRouteRecord' - ), - }), - resolveSiteAppLinks: ( - args: ResolveSiteAppLinksVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - resolveSiteAppLinks: unknown | null; - }>({ - client, - operation: 'query', - operationName: 'ResolveSiteAppLinks', - fieldName: 'resolveSiteAppLinks', - ...buildCustomDocument( - 'query', - 'ResolveSiteAppLinks', - 'resolveSiteAppLinks', - options?.select, - args, - [ - { - name: 'targetSiteId', - type: 'UUID', - }, - ], - connectionFieldsMap, - undefined - ), - }), sitesDeepLinkUrl: ( args: SitesDeepLinkUrlVariables, options?: { diff --git a/sdk/constructive-react/src/api/schema-types.ts b/sdk/constructive-react/src/api/schema-types.ts index eb20b05828..9afba4a2a1 100644 --- a/sdk/constructive-react/src/api/schema-types.ts +++ b/sdk/constructive-react/src/api/schema-types.ts @@ -54,6 +54,7 @@ import type { PlatformGetSitePreviewsRecord, PlatformManagedDomain, PlatformPage, + PlatformReservedSubdomain, PlatformSite, PlatformSiteAppLink, PlatformSiteDeepLink, @@ -125,8 +126,6 @@ export type ApiOrderBy = | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DBNAME_ASC' - | 'DBNAME_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_PUBLISHED_ASC' @@ -171,8 +170,6 @@ export type ApiSettingOrderBy = | 'ENABLE_BULK_DESC' | 'ENABLE_CONNECTION_FILTER_ASC' | 'ENABLE_CONNECTION_FILTER_DESC' - | 'ENABLE_DIRECT_UPLOADS_ASC' - | 'ENABLE_DIRECT_UPLOADS_DESC' | 'ENABLE_I18N_ASC' | 'ENABLE_I18N_DESC' | 'ENABLE_INTROSPECTION_ASC' @@ -369,8 +366,6 @@ export type DatabaseSettingOrderBy = | 'ENABLE_BULK_DESC' | 'ENABLE_CONNECTION_FILTER_ASC' | 'ENABLE_CONNECTION_FILTER_DESC' - | 'ENABLE_DIRECT_UPLOADS_ASC' - | 'ENABLE_DIRECT_UPLOADS_DESC' | 'ENABLE_I18N_ASC' | 'ENABLE_I18N_DESC' | 'ENABLE_INTROSPECTION_ASC' @@ -1214,8 +1209,6 @@ export type PlatformApiOrderBy = | 'CONFIG_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'DBNAME_ASC' - | 'DBNAME_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_PUBLISHED_ASC' @@ -1256,8 +1249,6 @@ export type PlatformApiSettingOrderBy = | 'ENABLE_BULK_DESC' | 'ENABLE_CONNECTION_FILTER_ASC' | 'ENABLE_CONNECTION_FILTER_DESC' - | 'ENABLE_DIRECT_UPLOADS_ASC' - | 'ENABLE_DIRECT_UPLOADS_DESC' | 'ENABLE_I18N_ASC' | 'ENABLE_I18N_DESC' | 'ENABLE_INTROSPECTION_ASC' @@ -1554,6 +1545,27 @@ export type PlatformPageOrderBy = | 'STORE_ID_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `PlatformReservedSubdomain`. */ +export type PlatformReservedSubdomainOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'MATCH_ASC' + | 'MATCH_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REASON_ASC' + | 'REASON_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; /** Methods to use when ordering `PlatformSiteAppLink`. */ export type PlatformSiteAppLinkOrderBy = | 'APP_STORE_IDENTITY_ID_ASC' @@ -2722,8 +2734,6 @@ export interface ApiFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isPublished` field. */ @@ -2748,8 +2758,6 @@ export interface ApiInput { createdAt?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; - /** Database this API surface serves */ - dbname?: string; id?: string; /** Whether other scopes may see and route to this API surface */ isPublished?: boolean; @@ -2768,8 +2776,6 @@ export interface ApiPatch { createdAt?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string; - /** Database this API surface serves */ - dbname?: string; id?: string; /** Whether other scopes may see and route to this API surface */ isPublished?: boolean; @@ -2846,8 +2852,6 @@ export interface ApiSettingFilter { enableBulk?: BooleanFilter; /** Filter by the object’s `enableConnectionFilter` field. */ enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; /** Filter by the object’s `enableIntrospection` field. */ @@ -2912,8 +2916,6 @@ export interface ApiSettingInput { enableBulk?: boolean; /** Override: enable connection filter (NULL = inherit from database_settings) */ enableConnectionFilter?: boolean; - /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ - enableDirectUploads?: boolean; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean; /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ @@ -2972,8 +2974,6 @@ export interface ApiSettingPatch { enableBulk?: boolean; /** Override: enable connection filter (NULL = inherit from database_settings) */ enableConnectionFilter?: boolean; - /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ - enableDirectUploads?: boolean; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean; /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ @@ -3538,6 +3538,11 @@ export interface CreatePlatformPageInput { /** The `PlatformPage` to be created by this mutation. */ platformPage: PlatformPageInput; } +export interface CreatePlatformReservedSubdomainInput { + clientMutationId?: string; + /** The `PlatformReservedSubdomain` to be created by this mutation. */ + platformReservedSubdomain: PlatformReservedSubdomainInput; +} export interface CreatePlatformSiteAppLinkInput { clientMutationId?: string; /** The `PlatformSiteAppLink` to be created by this mutation. */ @@ -3945,8 +3950,6 @@ export interface DatabaseSettingFilter { enableBulk?: BooleanFilter; /** Filter by the object’s `enableConnectionFilter` field. */ enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; /** Filter by the object’s `enableIntrospection` field. */ @@ -4017,8 +4020,6 @@ export interface DatabaseSettingInput { enableBulk?: boolean; /** Enable connection filter (where argument) in the GraphQL API */ enableConnectionFilter?: boolean; - /** Enable direct (multipart) file upload mutations in the GraphQL API */ - enableDirectUploads?: boolean; /** Enable internationalization plugin (localeStrings field, translation table discovery) in the GraphQL API */ enableI18N?: boolean; /** Enable GraphQL schema introspection queries in the GraphQL API. A tenant may only ever lower a bound, so the stored default is the permissive end: turning introspection off is the opt-in. */ @@ -4083,8 +4084,6 @@ export interface DatabaseSettingPatch { enableBulk?: boolean; /** Enable connection filter (where argument) in the GraphQL API */ enableConnectionFilter?: boolean; - /** Enable direct (multipart) file upload mutations in the GraphQL API */ - enableDirectUploads?: boolean; /** Enable internationalization plugin (localeStrings field, translation table discovery) in the GraphQL API */ enableI18N?: boolean; /** Enable GraphQL schema introspection queries in the GraphQL API. A tenant may only ever lower a bound, so the stored default is the permissive end: turning introspection off is the opt-in. */ @@ -4740,6 +4739,10 @@ export interface DeletePlatformPageInput { /** Unique page identifier */ id: string; } +export interface DeletePlatformReservedSubdomainInput { + clientMutationId?: string; + id: string; +} export interface DeletePlatformSiteAppLinkInput { clientMutationId?: string; id: string; @@ -6971,8 +6974,6 @@ export interface PlatformApiFilter { config?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isPublished` field. */ @@ -7007,8 +7008,6 @@ export interface PlatformApiInput { /** Module-specific configuration for this API surface */ config?: unknown; createdAt?: string; - /** Database this API surface serves */ - dbname?: string; id?: string; /** Whether other scopes may see and route to this API surface */ isPublished?: boolean; @@ -7025,8 +7024,6 @@ export interface PlatformApiPatch { /** Module-specific configuration for this API surface */ config?: unknown; createdAt?: string; - /** Database this API surface serves */ - dbname?: string; id?: string; /** Whether other scopes may see and route to this API surface */ isPublished?: boolean; @@ -7095,8 +7092,6 @@ export interface PlatformApiSettingFilter { enableBulk?: BooleanFilter; /** Filter by the object’s `enableConnectionFilter` field. */ enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; /** Filter by the object’s `enableIntrospection` field. */ @@ -7159,8 +7154,6 @@ export interface PlatformApiSettingInput { enableBulk?: boolean; /** Override: enable connection filter (NULL = inherit from database_settings) */ enableConnectionFilter?: boolean; - /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ - enableDirectUploads?: boolean; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean; /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ @@ -7217,8 +7210,6 @@ export interface PlatformApiSettingPatch { enableBulk?: boolean; /** Override: enable connection filter (NULL = inherit from database_settings) */ enableConnectionFilter?: boolean; - /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ - enableDirectUploads?: boolean; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean; /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ @@ -8101,6 +8092,59 @@ export interface PlatformProvisionSitePreviewInput { name?: string; siteId?: string; } +/** A filter to be used against `PlatformReservedSubdomain` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformReservedSubdomainFilter { + /** Checks for all expressions in this list. */ + and?: PlatformReservedSubdomainFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `match` field. */ + match?: StringFilter; + /** Negates the expression. */ + not?: PlatformReservedSubdomainFilter; + /** Checks for any expressions in this list. */ + or?: PlatformReservedSubdomainFilter[]; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +/** An input for mutations affecting `PlatformReservedSubdomain` */ +export interface PlatformReservedSubdomainInput { + createdAt?: string; + createdByPrincipal?: string; + id?: string; + /** Lowercase subdomain label, or the label prefix/suffix the match names */ + label: string; + /** How the label matches a claimed label: exact, prefix or suffix */ + match?: string; + /** Why the label is reserved (free text, e.g. platform, brand, lookalike) */ + reason?: string; + updatedAt?: string; + updatedByPrincipal?: string; +} +/** Represents an update to a `PlatformReservedSubdomain`. Fields that are set will be updated. */ +export interface PlatformReservedSubdomainPatch { + createdAt?: string; + createdByPrincipal?: string; + id?: string; + /** Lowercase subdomain label, or the label prefix/suffix the match names */ + label?: string; + /** How the label matches a claimed label: exact, prefix or suffix */ + match?: string; + /** Why the label is reserved (free text, e.g. platform, brand, lookalike) */ + reason?: string; + updatedAt?: string; + updatedByPrincipal?: string; +} export interface PlatformSetSitePreviewInput { clientMutationId?: string; targetCommitId?: string; @@ -8462,8 +8506,6 @@ export interface PlatformSiteMetadatumInput { export interface PlatformSiteMetadatumPatch { /** Apple touch icon image (home-screen bookmark) */ appleTouchIcon?: ConstructiveInternalTypeImage; - /** Upload for Apple touch icon image (home-screen bookmark) */ - appleTouchIconUpload?: File; /** Canonical URL emitted in for this site */ canonicalUrl?: string; /** Infra store commit for the current content (stamped by the versioned trigger on every write) */ @@ -8473,17 +8515,11 @@ export interface PlatformSiteMetadatumPatch { description?: string; /** Site favicon image */ favicon?: ConstructiveInternalTypeImage; - /** Upload for Site favicon image */ - faviconUpload?: File; id?: string; /** Primary site logo image */ logo?: ConstructiveInternalTypeImage; - /** Upload for Primary site logo image */ - logoUpload?: File; /** Open Graph image used when sharing site links */ ogImage?: ConstructiveInternalTypeImage; - /** Upload for Open Graph image used when sharing site links */ - ogImageUpload?: File; /** robots meta directive (e.g. index,follow / noindex,nofollow) */ robots?: string; /** Provenance of the robots value: the content preset (kind, slug, catalog commit_id) an install applied, or NULL when it was authored directly */ @@ -10112,8 +10148,6 @@ export interface SiteMetadatumInput { export interface SiteMetadatumPatch { /** Apple touch icon image (home-screen bookmark) */ appleTouchIcon?: ConstructiveInternalTypeImage; - /** Upload for Apple touch icon image (home-screen bookmark) */ - appleTouchIconUpload?: File; /** Canonical URL emitted in for this site */ canonicalUrl?: string; /** Infra store commit for the current content (stamped by the versioned trigger on every write) */ @@ -10125,17 +10159,11 @@ export interface SiteMetadatumPatch { description?: string; /** Site favicon image */ favicon?: ConstructiveInternalTypeImage; - /** Upload for Site favicon image */ - faviconUpload?: File; id?: string; /** Primary site logo image */ logo?: ConstructiveInternalTypeImage; - /** Upload for Primary site logo image */ - logoUpload?: File; /** Open Graph image used when sharing site links */ ogImage?: ConstructiveInternalTypeImage; - /** Upload for Open Graph image used when sharing site links */ - ogImageUpload?: File; /** robots meta directive (e.g. index,follow / noindex,nofollow) */ robots?: string; /** Provenance of the robots value: the content preset (kind, slug, catalog commit_id) an install applied, or NULL when it was authored directly */ @@ -11674,6 +11702,12 @@ export interface UpdatePlatformPageInput { /** An object where the defined keys will be set on the `PlatformPage` being updated. */ platformPagePatch: PlatformPagePatch; } +export interface UpdatePlatformReservedSubdomainInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlatformReservedSubdomain` being updated. */ + platformReservedSubdomainPatch: PlatformReservedSubdomainPatch; +} export interface UpdatePlatformSiteAppLinkInput { clientMutationId?: string; id: string; @@ -12751,6 +12785,13 @@ export interface PlatformPageConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `PlatformReservedSubdomain` values. */ +export interface PlatformReservedSubdomainConnection { + edges: PlatformReservedSubdomainEdge[]; + nodes: PlatformReservedSubdomain[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `PlatformSiteAppLink` values. */ export interface PlatformSiteAppLinkConnection { edges: PlatformSiteAppLinkEdge[]; @@ -12842,25 +12883,6 @@ export interface RedirectConnection { pageInfo: PageInfo; totalCount: number; } -export interface ResolveRouteRecord { - domainId?: string | null; - hostname?: string | null; - matchedPath?: string | null; - matchedWildcard?: boolean | null; - method?: string | null; - priority?: number | null; - resolvedConfig?: unknown | null; - routeBindingId?: string | null; - servingLane?: string | null; - targetCatalogId?: string | null; - targetModule?: string | null; - targetOwnerKey?: string | null; - targetOwnerScope?: string | null; - targetSourceId?: string | null; - tlsSecretName?: string | null; - tlsStatus?: string | null; - verificationStatus?: string | null; -} /** A connection to a list of `RlsSetting` values. */ export interface RlsSettingConnection { edges: RlsSettingEdge[]; @@ -13338,6 +13360,12 @@ export interface CreatePlatformPagePayload { platformPage?: PlatformPage | null; platformPageEdge?: PlatformPageEdge | null; } +export interface CreatePlatformReservedSubdomainPayload { + clientMutationId?: string | null; + /** The `PlatformReservedSubdomain` that was created by this mutation. */ + platformReservedSubdomain?: PlatformReservedSubdomain | null; + platformReservedSubdomainEdge?: PlatformReservedSubdomainEdge | null; +} export interface CreatePlatformSitePayload { clientMutationId?: string | null; /** The `PlatformSite` that was created by this mutation. */ @@ -13848,6 +13876,12 @@ export interface DeletePlatformPagePayload { platformPage?: PlatformPage | null; platformPageEdge?: PlatformPageEdge | null; } +export interface DeletePlatformReservedSubdomainPayload { + clientMutationId?: string | null; + /** The `PlatformReservedSubdomain` that was deleted by this mutation. */ + platformReservedSubdomain?: PlatformReservedSubdomain | null; + platformReservedSubdomainEdge?: PlatformReservedSubdomainEdge | null; +} export interface DeletePlatformSitePayload { clientMutationId?: string | null; /** The `PlatformSite` that was deleted by this mutation. */ @@ -14472,6 +14506,12 @@ export interface UpdatePlatformPagePayload { platformPage?: PlatformPage | null; platformPageEdge?: PlatformPageEdge | null; } +export interface UpdatePlatformReservedSubdomainPayload { + clientMutationId?: string | null; + /** The `PlatformReservedSubdomain` that was updated by this mutation. */ + platformReservedSubdomain?: PlatformReservedSubdomain | null; + platformReservedSubdomainEdge?: PlatformReservedSubdomainEdge | null; +} export interface UpdatePlatformSitePayload { clientMutationId?: string | null; /** The `PlatformSite` that was updated by this mutation. */ @@ -14715,21 +14755,27 @@ export interface UpdateWebauthnSettingPayload { /** Information about a database table */ export interface MetaTable { constraints: MetaConstraints; + /** Description written for this table, or null */ + description?: string | null; fields: MetaField[]; foreignKeyConstraints: MetaForeignKeyConstraint[]; - /** i18n metadata (null if no @i18n tag) */ + /** i18n metadata (null if the table is not translatable) */ i18n?: MetaI18n | null; indexes: MetaIndex[]; inflection: MetaInflection; + /** Whether this table only links rows of two other tables; the link appears in their manyToMany relations */ + isJunction: boolean; + /** 'table' when rows are stored in this table, 'view' when they come from a view of other tables */ + kind: string; /** Final GraphQL output type name */ name: string; primaryKeyConstraints: MetaPrimaryKeyConstraint[]; query: MetaQuery; - /** Realtime metadata (null if no @realtime tag) */ + /** Realtime metadata (null if the table has no change subscriptions) */ realtime?: MetaRealtime | null; relations: MetaRelations; schemaName: string; - /** Provisioning scope metadata (null if no @scope tag) */ + /** Provisioning scope metadata (null if the table has no scope) */ scope?: MetaScope | null; /** Search metadata (null if no search configured) */ search?: MetaSearch | null; @@ -15044,6 +15090,12 @@ export interface PlatformPageEdge { /** The `PlatformPage` at the end of the edge. */ node?: PlatformPage | null; } +/** A `PlatformReservedSubdomain` edge in the connection. */ +export interface PlatformReservedSubdomainEdge { + cursor?: string | null; + /** The `PlatformReservedSubdomain` at the end of the edge. */ + node?: PlatformReservedSubdomain | null; +} /** A `PlatformSiteAppLink` edge in the connection. */ export interface PlatformSiteAppLinkEdge { cursor?: string | null; @@ -15380,15 +15432,27 @@ export interface MetaConstraints { } /** Information about a table field/column */ export interface MetaField { + /** Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. */ + allowedValues?: string[] | null; /** PostgreSQL column name */ columnName: string; description?: string | null; /** Enum metadata if this field has an enum type */ enumValues?: MetaEnum | null; + /** Set when the field holds files; null otherwise. Set on a table's own fields only. */ + file?: MetaFileField | null; hasDefault: boolean; + /** Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. */ + isComputed?: boolean | null; isForeignKey: boolean; isNotNull: boolean; isPrimaryKey: boolean; + /** Whether a create must provide this field. Set on a table's own fields only. */ + isRequiredOnCreate?: boolean | null; + /** Whether a create may set this field. Set on a table's own fields only. */ + isWritableOnCreate?: boolean | null; + /** Whether an update may change this field. Set on a table's own fields only. */ + isWritableOnUpdate?: boolean | null; /** Final GraphQL field name */ name: string; type: MetaType; @@ -15402,7 +15466,7 @@ export interface MetaForeignKeyConstraint { referencedFields: string[]; referencedTable: string; } -/** i18n metadata for a table with @i18n tag */ +/** i18n metadata for a translatable table */ export interface MetaI18n { /** Fields that are translatable */ translatableFields: MetaI18nField[]; @@ -15417,7 +15481,7 @@ export interface MetaIndex { isUnique: boolean; name: string; } -/** Table inflection names */ +/** Type and field names generated for this table */ export interface MetaInflection { allRows: string; conditionType: string; @@ -15445,7 +15509,7 @@ export interface MetaQuery { one?: string | null; update?: string | null; } -/** Realtime metadata for a table with @realtime tag */ +/** Realtime metadata for a table with change subscriptions */ export interface MetaRealtime { /** The generated subscription field name (e.g. onPostChanged) */ subscriptionFieldName: string; @@ -15460,13 +15524,13 @@ export interface MetaRelations { } /** Provisioning scope metadata for a table */ export interface MetaScope { - /** SQL name of the entity table for entity scopes, else null */ + /** Name of the entity table for entity scopes, else null */ entityTable?: string | null; - /** Inflected scope key column (e.g. databaseId, orgId), null for global tiers */ + /** Field name of the scope key (e.g. databaseId, orgId), null for global tiers */ keyColumn?: string | null; /** Provisioning scope: 'platform', 'app', 'database', or an entity scope (e.g. 'org') */ scope: string; - /** Provenance of the scope metadata (always 'smartTag') */ + /** Where this scope metadata comes from */ source: string; /** Coarse bucket: 'global', 'database', or 'entity' */ tier: string; @@ -15484,17 +15548,17 @@ export interface MetaSearch { } /** Storage metadata for a table */ export interface MetaStorage { - /** GraphQL type name of the plane's buckets table */ + /** GraphQL type name of the paired buckets table */ bucketsType: string; /** Computed download-URL field on the files type; null on the buckets side */ downloadUrlField?: string | null; - /** GraphQL type name of the plane's files table */ + /** GraphQL type name of the paired files table */ filesType: string; /** Whether this table is a storage buckets table */ isBucketsTable: boolean; /** Whether this table is a storage files table */ isFilesTable: boolean; - /** The plane's GraphQL upload surface */ + /** Upload mutations and types for this storage */ upload: MetaStorageUpload; } /** Information about a unique constraint */ @@ -15509,6 +15573,15 @@ export interface MetaEnum { /** Allowed values for this enum */ values: string[]; } +/** How a field holds files */ +export interface MetaFileField { + /** GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise */ + filesType?: string | null; + /** Whether the field holds a list of files */ + isMultiple: boolean; + /** image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. */ + kind: string; +} /** Information about a PostgreSQL type */ export interface MetaType { /** Scalar serialization contract (null for plain scalars) */ @@ -15517,7 +15590,13 @@ export interface MetaType { hasDefault?: boolean | null; isArray: boolean; isNotNull?: boolean | null; + /** Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. */ + maxLength?: number | null; pgType: string; + /** Most significant digits a decimal number may hold. Null when unbounded. */ + precision?: number | null; + /** Digits a decimal number keeps after the decimal point. Null when unbounded. */ + scale?: number | null; subtype?: string | null; } /** Reference to a related table */ @@ -15536,6 +15615,8 @@ export interface MetaBelongsToRelation { fieldName?: string | null; isUnique: boolean; keys: MetaField[]; + /** Fields on the referenced table that keys point at, in the same order as keys */ + refKeys: MetaField[]; references: MetaRefTable; type?: string | null; } @@ -15545,6 +15626,8 @@ export interface MetaHasRelation { isUnique: boolean; keys: MetaField[]; referencedBy: MetaRefTable; + /** Fields on the related table that point at this table, in the same order as keys */ + remoteKeys: MetaField[]; type?: string | null; } /** A many-to-many relation via junction table */ @@ -15567,7 +15650,7 @@ export interface MetaSearchColumn { /** Column name (camelCase) */ name: string; } -/** Per-table search configuration from @searchConfig smart tag */ +/** Per-table search configuration */ export interface MetaSearchConfig { /** Exponential decay factor per day */ boostRecencyDecay?: number | null; @@ -15578,7 +15661,7 @@ export interface MetaSearchConfig { /** JSON-encoded per-adapter score weights */ weights?: string | null; } -/** The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from */ +/** The upload mutations and types for a storage table pair */ export interface MetaStorageUpload { /** Per-file input type inside the bulk input */ bulkFileInputType: string; @@ -15596,14 +15679,14 @@ export interface MetaStorageUpload { mutation: string; /** Payload type of the single upload mutation */ payloadType: string; - /** Whether the upload input requires ownerId (entity-keyed plane) */ + /** Whether the upload input requires ownerId */ requiresOwnerId: boolean; } -/** How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. */ +/** How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. */ export interface MetaScalarEncoding { /** For 'vector': declared length, else null. */ dimensions?: number | null; - /** For 'ltree': values are dot-separated path strings. */ + /** For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). */ dotPath?: boolean | null; /** For 'vector': element scalar (e.g. 'float'). */ elementType?: string | null; diff --git a/sdk/constructive-react/src/api/types.ts b/sdk/constructive-react/src/api/types.ts index 89bc1cf1c7..6ebe299e4c 100644 --- a/sdk/constructive-react/src/api/types.ts +++ b/sdk/constructive-react/src/api/types.ts @@ -5,16 +5,17 @@ */ import type { ApiExposureLevel, ObjectCategory } from './schema-types'; export type ConstructiveInternalTypeImage = unknown; +export type FileVersion = unknown; export interface Api { anonRole: string | null; config: unknown | null; createdAt: string | null; databaseId: string | null; - dbname: string | null; id: string | null; isPublished: boolean | null; name: string | null; roleName: string | null; + serviceHostname: string | null; updatedAt: string | null; } export interface ApiSchema { @@ -32,7 +33,6 @@ export interface ApiSetting { enableAggregates: boolean | null; enableBulk: boolean | null; enableConnectionFilter: boolean | null; - enableDirectUploads: boolean | null; enableI18N: boolean | null; enableIntrospection: boolean | null; enableLlm: boolean | null; @@ -129,7 +129,6 @@ export interface DatabaseSetting { enableBilling: boolean | null; enableBulk: boolean | null; enableConnectionFilter: boolean | null; - enableDirectUploads: boolean | null; enableI18N: boolean | null; enableIntrospection: boolean | null; enableLlm: boolean | null; @@ -549,11 +548,11 @@ export interface PlatformApi { anonRole: string | null; config: unknown | null; createdAt: string | null; - dbname: string | null; id: string | null; isPublished: boolean | null; name: string | null; roleName: string | null; + serviceHostname: string | null; updatedAt: string | null; } export interface PlatformApiSchema { @@ -569,7 +568,6 @@ export interface PlatformApiSetting { enableAggregates: boolean | null; enableBulk: boolean | null; enableConnectionFilter: boolean | null; - enableDirectUploads: boolean | null; enableI18N: boolean | null; enableIntrospection: boolean | null; enableLlm: boolean | null; @@ -717,6 +715,16 @@ export interface PlatformPage { storeId: string | null; updatedAt: string | null; } +export interface PlatformReservedSubdomain { + createdAt: string | null; + createdByPrincipal: string | null; + id: string | null; + label: string | null; + match: string | null; + reason: string | null; + updatedAt: string | null; + updatedByPrincipal: string | null; +} export interface PlatformSiteAppLink { appStoreIdentityId: string | null; createdAt: string | null; @@ -764,14 +772,22 @@ export interface PlatformSiteErrorPage { } export interface PlatformSiteMetadatum { appleTouchIcon: ConstructiveInternalTypeImage | null; + appleTouchIconUrl: string | null; + appleTouchIconVersions: FileVersion[] | null; canonicalUrl: string | null; commitId: string | null; createdAt: string | null; description: string | null; favicon: ConstructiveInternalTypeImage | null; + faviconUrl: string | null; + faviconVersions: FileVersion[] | null; id: string | null; logo: ConstructiveInternalTypeImage | null; + logoUrl: string | null; + logoVersions: FileVersion[] | null; ogImage: ConstructiveInternalTypeImage | null; + ogImageUrl: string | null; + ogImageVersions: FileVersion[] | null; robots: string | null; robotsSeededFrom: unknown | null; siteId: string | null; @@ -990,15 +1006,23 @@ export interface SiteErrorPage { } export interface SiteMetadatum { appleTouchIcon: ConstructiveInternalTypeImage | null; + appleTouchIconUrl: string | null; + appleTouchIconVersions: FileVersion[] | null; canonicalUrl: string | null; commitId: string | null; createdAt: string | null; databaseId: string | null; description: string | null; favicon: ConstructiveInternalTypeImage | null; + faviconUrl: string | null; + faviconVersions: FileVersion[] | null; id: string | null; logo: ConstructiveInternalTypeImage | null; + logoUrl: string | null; + logoVersions: FileVersion[] | null; ogImage: ConstructiveInternalTypeImage | null; + ogImageUrl: string | null; + ogImageVersions: FileVersion[] | null; robots: string | null; robotsSeededFrom: unknown | null; siteId: string | null; diff --git a/sdk/constructive-react/src/auth/README.md b/sdk/constructive-react/src/auth/README.md index c4ed001355..344572674b 100644 --- a/sdk/constructive-react/src/auth/README.md +++ b/sdk/constructive-react/src/auth/README.md @@ -9,8 +9,8 @@ ## Overview - **Tables:** 15 -- **Custom queries:** 6 -- **Custom mutations:** 55 +- **Custom queries:** 7 +- **Custom mutations:** 59 **Generators:** ORM, React Query diff --git a/sdk/constructive-react/src/auth/hooks/README.md b/sdk/constructive-react/src/auth/hooks/README.md index 5cf4da76c9..b77da0f314 100644 --- a/sdk/constructive-react/src/auth/hooks/README.md +++ b/sdk/constructive-react/src/auth/hooks/README.md @@ -48,10 +48,8 @@ function App() { | `useUpdateEmailMutation` | Mutation | User email addresses with verification and primary-email management | | `useDeleteEmailMutation` | Mutation | User email addresses with verification and primary-email management | | `useIdentityProvidersQuery` | Query | List all identityProviders | -| `useCreateIdentityProviderMutation` | Mutation | Create a identityProvider | | `useOrgApiKeyListsQuery` | Query | List all orgApiKeyLists | | `useOrgApiKeyListQuery` | Query | Get one orgApiKeyList | -| `useCreateOrgApiKeyListMutation` | Mutation | Create a orgApiKeyList | | `useUpdateOrgApiKeyListMutation` | Mutation | Update a orgApiKeyList | | `useDeleteOrgApiKeyListMutation` | Mutation | Delete a orgApiKeyList | | `usePhoneNumbersQuery` | Query | User phone numbers with country code, verification, and primary-number management | @@ -61,17 +59,14 @@ function App() { | `useDeletePhoneNumberMutation` | Mutation | User phone numbers with country code, verification, and primary-number management | | `usePrincipalsQuery` | Query | Scoped sub-identities (API keys and agents) with precomputed SPRT | | `usePrincipalQuery` | Query | Scoped sub-identities (API keys and agents) with precomputed SPRT | -| `useCreatePrincipalMutation` | Mutation | Scoped sub-identities (API keys and agents) with precomputed SPRT | | `useUpdatePrincipalMutation` | Mutation | Scoped sub-identities (API keys and agents) with precomputed SPRT | | `useDeletePrincipalMutation` | Mutation | Scoped sub-identities (API keys and agents) with precomputed SPRT | | `usePrincipalEntitiesQuery` | Query | Association table scoping principals to specific organizations | | `usePrincipalEntityQuery` | Query | Association table scoping principals to specific organizations | -| `useCreatePrincipalEntityMutation` | Mutation | Association table scoping principals to specific organizations | | `useUpdatePrincipalEntityMutation` | Mutation | Association table scoping principals to specific organizations | | `useDeletePrincipalEntityMutation` | Mutation | Association table scoping principals to specific organizations | | `usePrincipalScopeOverridesQuery` | Query | Per-scope capability overrides for principals. No row = full access; row exists = apply restrictions. | | `usePrincipalScopeOverrideQuery` | Query | Per-scope capability overrides for principals. No row = full access; row exists = apply restrictions. | -| `useCreatePrincipalScopeOverrideMutation` | Mutation | Per-scope capability overrides for principals. No row = full access; row exists = apply restrictions. | | `useUpdatePrincipalScopeOverrideMutation` | Mutation | Per-scope capability overrides for principals. No row = full access; row exists = apply restrictions. | | `useDeletePrincipalScopeOverrideMutation` | Mutation | Per-scope capability overrides for principals. No row = full access; row exists = apply restrictions. | | `useRoleTypesQuery` | Query | List all roleTypes | @@ -81,7 +76,6 @@ function App() { | `useDeleteRoleTypeMutation` | Mutation | Delete a roleType | | `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 | | `useUsersQuery` | Query | List all users | @@ -110,15 +104,17 @@ function App() { | `useCurrentUserIdQuery` | Query | currentUserId | | `useGetMfaStatusQuery` | Query | getMfaStatus | | `useRequireStepUpQuery` | Query | requireStepUp | +| `useSignInOptionsQuery` | Query | signInOptions | | `useApproveDeviceMutation` | Mutation | approveDevice | | `useCheckPasswordMutation` | Mutation | checkPassword | | `useCompleteMfaChallengeMutation` | Mutation | completeMfaChallenge | | `useConfirmDeleteAccountMutation` | Mutation | confirmDeleteAccount | | `useConfirmTotpSetupMutation` | Mutation | confirmTotpSetup | -| `useCreateApiKeyMutation` | Mutation | createApiKey | +| `useCreateApiKeyMutation` | Mutation | Mint an API key for the current user; the plaintext key is returned once. access_level: full_access (default) or read_only. mfa_level: none (default) or verified; verified needs a fresh MFA proof on the calling session. A key minted while authenticated by another API key never outlives that key. | | `useCreateChildPrincipalMutation` | Mutation | createChildPrincipal | | `useCreateOrgApiKeyMutation` | Mutation | createOrgApiKey | | `useCreateOrgPrincipalMutation` | Mutation | createOrgPrincipal | +| `useCreatePrincipalMutation` | Mutation | createPrincipal | | `useCreatePrincipalFromPresetMutation` | Mutation | createPrincipalFromPreset | | `useDeleteOrgPrincipalMutation` | Mutation | deleteOrgPrincipal | | `useDeletePrincipalMutation` | Mutation | deletePrincipal | @@ -129,6 +125,8 @@ function App() { | `useEnableEmailMfaMutation` | Mutation | enableEmailMfa | | `useEnableSmsMfaMutation` | Mutation | enableSmsMfa | | `useEnableTotpMutation` | Mutation | enableTotp | +| `useEnsureAuthCsrfMutation` | Mutation | ensureAuthCsrf | +| `useExchangeNativeHandoffMutation` | Mutation | exchangeNativeHandoff | | `useExtendTokenExpiresMutation` | Mutation | extendTokenExpires | | `useForgotPasswordMutation` | Mutation | forgotPassword | | `useGenerateBackupCodesMutation` | Mutation | generateBackupCodes | @@ -142,6 +140,7 @@ idempotent for an already-reconciled bucket; failures become GraphQL errors. | | `useRefreshAccessTokenMutation` | Mutation | refreshAccessToken | | `useRequestCrossOriginTokenMutation` | Mutation | requestCrossOriginToken | +| `useRequestDeviceApprovalMutation` | Mutation | requestDeviceApproval | | `useRequestMagicLinkMutation` | Mutation | requestMagicLink | | `useResetPasswordMutation` | Mutation | resetPassword | | `useRevokeApiKeyMutation` | Mutation | revokeApiKey | @@ -244,11 +243,6 @@ const { data, isLoading } = useIdentityProvidersQuery({ selection: { fields: { displayName: true, enabled: true, kind: true, slug: true } }, }); -// Create a identityProvider -const { mutate: create } = useCreateIdentityProviderMutation({ - selection: { fields: { id: true } }, -}); -create({ displayName: '', enabled: '', kind: '', slug: '' }); ``` ### OrgApiKeyList @@ -265,11 +259,6 @@ const { data: item } = useOrgApiKeyListQuery({ selection: { fields: { accessLevel: true, createdAt: true, expiresAt: true, id: true, keyId: true, lastUsedAt: true, mfaLevel: true, name: true, orgId: true, principalId: true, revokedAt: true, updatedAt: true } }, }); -// Create a orgApiKeyList -const { mutate: create } = useCreateOrgApiKeyListMutation({ - selection: { fields: { id: true } }, -}); -create({ accessLevel: '', expiresAt: '', keyId: '', lastUsedAt: '', mfaLevel: '', name: '', orgId: '', principalId: '', revokedAt: '' }); ``` ### PhoneNumber @@ -307,11 +296,6 @@ const { data: item } = usePrincipalQuery({ selection: { fields: { apiKeyMaxDuration: true, bypassStepUp: true, createdAt: true, createdBySessionId: true, depth: true, expiresAt: true, id: true, isReadOnly: true, name: true, ownerId: true, parentPrincipalId: true, updatedAt: true, useAdminOwner: true, userId: true } }, }); -// Create a principal -const { mutate: create } = useCreatePrincipalMutation({ - selection: { fields: { principalId: true } }, -}); -create({ apiKeyMaxDuration: '', bypassStepUp: '', createdBySessionId: '', depth: '', expiresAt: '', id: '', isReadOnly: '', name: '', ownerId: '', parentPrincipalId: '', useAdminOwner: '', userId: '' }); ``` ### PrincipalEntity @@ -328,11 +312,6 @@ const { data: item } = usePrincipalEntityQuery({ selection: { fields: { createdAt: true, entityId: true, id: true, ownerId: true, principalId: true, updatedAt: true } }, }); -// Create a principalEntity -const { mutate: create } = useCreatePrincipalEntityMutation({ - selection: { fields: { id: true } }, -}); -create({ entityId: '', ownerId: '', principalId: '' }); ``` ### PrincipalScopeOverride @@ -349,11 +328,6 @@ const { data: item } = usePrincipalScopeOverrideQuery({ selection: { fields: { allowedMask: true, createdAt: true, id: true, isActive: true, isReadOnly: true, membershipType: true, principalId: true, updatedAt: true, useAdminOwner: true } }, }); -// Create a principalScopeOverride -const { mutate: create } = useCreatePrincipalScopeOverrideMutation({ - selection: { fields: { id: true } }, -}); -create({ allowedMask: '', isActive: '', isReadOnly: '', membershipType: '', principalId: '', useAdminOwner: '' }); ``` ### RoleType @@ -391,11 +365,6 @@ const { data: item } = useUserConnectedAccountQuery({ selection: { fields: { createdAt: true, details: true, id: true, identifier: true, isVerified: true, ownerId: true, service: true, updatedAt: true } }, }); -// Create a userConnectedAccount -const { mutate: create } = useCreateUserConnectedAccountMutation({ - selection: { fields: { id: true } }, -}); -create({ details: '', identifier: '', isVerified: '', ownerId: '', service: '' }); ``` ### User @@ -403,20 +372,20 @@ create({ details: '', identifier: '', isVerified: '', own ```typescript // List all users const { data, isLoading } = useUsersQuery({ - selection: { fields: { createdAt: true, displayName: true, displayNameTrgmSimilarity: true, id: true, profilePicture: true, searchScore: true, searchTsv: true, searchTsvRank: true, type: true, updatedAt: true, username: true } }, + selection: { fields: { createdAt: true, displayName: true, displayNameTrgmSimilarity: true, id: true, profilePicture: true, profilePictureUrl: true, profilePictureVersions: true, searchScore: true, searchTsv: true, searchTsvRank: true, type: true, updatedAt: true, username: true } }, }); // Get one user const { data: item } = useUserQuery({ id: '', - selection: { fields: { createdAt: true, displayName: true, displayNameTrgmSimilarity: true, id: true, profilePicture: true, searchScore: true, searchTsv: true, searchTsvRank: true, type: true, updatedAt: true, username: true } }, + selection: { fields: { createdAt: true, displayName: true, displayNameTrgmSimilarity: true, id: true, profilePicture: true, profilePictureUrl: true, profilePictureVersions: true, searchScore: true, searchTsv: true, searchTsvRank: true, type: true, updatedAt: true, username: true } }, }); // Create a user const { mutate: create } = useCreateUserMutation({ selection: { fields: { id: true } }, }); -create({ displayName: '', displayNameTrgmSimilarity: '', profilePicture: '', searchScore: '', searchTsv: '', searchTsvRank: '', type: '', username: '' }); +create({ displayName: '', displayNameTrgmSimilarity: '', profilePicture: '', profilePictureUrl: '', profilePictureVersions: '', searchScore: '', searchTsv: '', searchTsvRank: '', type: '', username: '' }); ``` ### UserSetting @@ -530,6 +499,13 @@ requireStepUp |----------|------| | `stepUpType` | String | +### `useSignInOptionsQuery` + +signInOptions + +- **Type:** query +- **Arguments:** none + ### `useApproveDeviceMutation` approveDevice @@ -587,7 +563,7 @@ confirmTotpSetup ### `useCreateApiKeyMutation` -createApiKey +Mint an API key for the current user; the plaintext key is returned once. access_level: full_access (default) or read_only. mfa_level: none (default) or verified; verified needs a fresh MFA proof on the calling session. A key minted while authenticated by another API key never outlives that key. - **Type:** mutation - **Arguments:** @@ -629,6 +605,17 @@ createOrgPrincipal |----------|------| | `input` | CreateOrgPrincipalInput (required) | +### `useCreatePrincipalMutation` + +createPrincipal + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CreatePrincipalInput (required) | + ### `useCreatePrincipalFromPresetMutation` createPrincipalFromPreset @@ -739,6 +726,28 @@ enableTotp |----------|------| | `input` | EnableTotpInput (required) | +### `useEnsureAuthCsrfMutation` + +ensureAuthCsrf + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | EnsureAuthCsrfInput (required) | + +### `useExchangeNativeHandoffMutation` + +exchangeNativeHandoff + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ExchangeNativeHandoffInput (required) | + ### `useExtendTokenExpiresMutation` extendTokenExpires @@ -832,6 +841,17 @@ requestCrossOriginToken |----------|------| | `input` | RequestCrossOriginTokenInput (required) | +### `useRequestDeviceApprovalMutation` + +requestDeviceApproval + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | RequestDeviceApprovalInput (required) | + ### `useRequestMagicLinkMutation` requestMagicLink diff --git a/sdk/constructive-react/src/auth/hooks/mutation-keys.ts b/sdk/constructive-react/src/auth/hooks/mutation-keys.ts index ea11abc608..0c60b69197 100644 --- a/sdk/constructive-react/src/auth/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/auth/hooks/mutation-keys.ts @@ -194,6 +194,10 @@ export const customMutationKeys = { identifier ? (['mutation', 'createOrgPrincipal', identifier] as const) : (['mutation', 'createOrgPrincipal'] as const), + /** Mutation key for createPrincipal */ createPrincipal: (identifier?: string) => + identifier + ? (['mutation', 'createPrincipal', identifier] as const) + : (['mutation', 'createPrincipal'] as const), /** Mutation key for createPrincipalFromPreset */ createPrincipalFromPreset: ( identifier?: string ) => @@ -236,6 +240,14 @@ export const customMutationKeys = { identifier ? (['mutation', 'enableTotp', identifier] as const) : (['mutation', 'enableTotp'] as const), + /** Mutation key for ensureAuthCsrf */ ensureAuthCsrf: (identifier?: string) => + identifier + ? (['mutation', 'ensureAuthCsrf', identifier] as const) + : (['mutation', 'ensureAuthCsrf'] as const), + /** Mutation key for exchangeNativeHandoff */ exchangeNativeHandoff: (identifier?: string) => + identifier + ? (['mutation', 'exchangeNativeHandoff', identifier] as const) + : (['mutation', 'exchangeNativeHandoff'] as const), /** Mutation key for extendTokenExpires */ extendTokenExpires: (identifier?: string) => identifier ? (['mutation', 'extendTokenExpires', identifier] as const) @@ -268,6 +280,10 @@ export const customMutationKeys = { identifier ? (['mutation', 'requestCrossOriginToken', identifier] as const) : (['mutation', 'requestCrossOriginToken'] as const), + /** Mutation key for requestDeviceApproval */ requestDeviceApproval: (identifier?: string) => + identifier + ? (['mutation', 'requestDeviceApproval', identifier] as const) + : (['mutation', 'requestDeviceApproval'] as const), /** Mutation key for requestMagicLink */ requestMagicLink: (identifier?: string) => identifier ? (['mutation', 'requestMagicLink', identifier] as const) diff --git a/sdk/constructive-react/src/auth/hooks/mutations/index.ts b/sdk/constructive-react/src/auth/hooks/mutations/index.ts index ef74460847..aa70ee66e5 100644 --- a/sdk/constructive-react/src/auth/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/auth/hooks/mutations/index.ts @@ -12,18 +12,12 @@ export * from './useDeleteCryptoAddressMutation'; export * from './useCreateEmailMutation'; export * from './useUpdateEmailMutation'; export * from './useDeleteEmailMutation'; -export * from './useCreateIdentityProviderMutation'; -export * from './useCreateOrgApiKeyListMutation'; export * from './useCreatePhoneNumberMutation'; export * from './useUpdatePhoneNumberMutation'; export * from './useDeletePhoneNumberMutation'; -export * from './useCreatePrincipalMutation'; -export * from './useCreatePrincipalEntityMutation'; -export * from './useCreatePrincipalScopeOverrideMutation'; export * from './useCreateRoleTypeMutation'; export * from './useUpdateRoleTypeMutation'; export * from './useDeleteRoleTypeMutation'; -export * from './useCreateUserConnectedAccountMutation'; export * from './useCreateUserMutation'; export * from './useUpdateUserMutation'; export * from './useDeleteUserMutation'; @@ -45,6 +39,7 @@ export * from './useCreateApiKeyMutation'; export * from './useCreateChildPrincipalMutation'; export * from './useCreateOrgApiKeyMutation'; export * from './useCreateOrgPrincipalMutation'; +export * from './useCreatePrincipalMutation'; export * from './useCreatePrincipalFromPresetMutation'; export * from './useDeleteOrgPrincipalMutation'; export * from './useDeletePrincipalMutation'; @@ -55,6 +50,8 @@ export * from './useDisconnectAccountMutation'; export * from './useEnableEmailMfaMutation'; export * from './useEnableSmsMfaMutation'; export * from './useEnableTotpMutation'; +export * from './useEnsureAuthCsrfMutation'; +export * from './useExchangeNativeHandoffMutation'; export * from './useExtendTokenExpiresMutation'; export * from './useForgotPasswordMutation'; export * from './useGenerateBackupCodesMutation'; @@ -63,6 +60,7 @@ export * from './useMintAccessTokenMutation'; export * from './useProvisionBucketMutation'; export * from './useRefreshAccessTokenMutation'; export * from './useRequestCrossOriginTokenMutation'; +export * from './useRequestDeviceApprovalMutation'; export * from './useRequestMagicLinkMutation'; export * from './useResetPasswordMutation'; export * from './useRevokeApiKeyMutation'; diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useCreateIdentityProviderMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useCreateIdentityProviderMutation.ts deleted file mode 100644 index 157d07d899..0000000000 --- a/sdk/constructive-react/src/auth/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/auth/hooks/mutations/useCreateOrgApiKeyListMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useCreateOrgApiKeyListMutation.ts deleted file mode 100644 index 8ee7097912..0000000000 --- a/sdk/constructive-react/src/auth/hooks/mutations/useCreateOrgApiKeyListMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Create mutation hook for OrgApiKeyList - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgApiKeyListKeys } from '../query-keys'; -import { orgApiKeyListMutationKeys } from '../mutation-keys'; -import type { - OrgApiKeyListSelect, - OrgApiKeyListWithRelations, - CreateOrgApiKeyListInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - OrgApiKeyListSelect, - OrgApiKeyListWithRelations, - CreateOrgApiKeyListInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a OrgApiKeyList - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateOrgApiKeyListMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateOrgApiKeyListMutation( - params: { - selection: { - fields: S & OrgApiKeyListSelect; - } & HookStrictSelect, OrgApiKeyListSelect>; - } & Omit< - UseMutationOptions< - { - createOrgApiKeyList: { - orgApiKeyList: InferSelectResult; - }; - }, - Error, - CreateOrgApiKeyListInput['orgApiKeyList'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createOrgApiKeyList: { - orgApiKeyList: InferSelectResult; - }; - }, - Error, - CreateOrgApiKeyListInput['orgApiKeyList'] ->; -export function useCreateOrgApiKeyListMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: orgApiKeyListMutationKeys.create(), - mutationFn: (data: CreateOrgApiKeyListInput['orgApiKeyList']) => - getClient() - .orgApiKeyList.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: orgApiKeyListKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useCreatePrincipalEntityMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useCreatePrincipalEntityMutation.ts deleted file mode 100644 index 16edd29ff9..0000000000 --- a/sdk/constructive-react/src/auth/hooks/mutations/useCreatePrincipalEntityMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Association table scoping principals to specific organizations - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { principalEntityKeys } from '../query-keys'; -import { principalEntityMutationKeys } from '../mutation-keys'; -import type { - PrincipalEntitySelect, - PrincipalEntityWithRelations, - CreatePrincipalEntityInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PrincipalEntitySelect, - PrincipalEntityWithRelations, - CreatePrincipalEntityInput, -} from '../../orm/input-types'; -/** - * Association table scoping principals to specific organizations - * - * @example - * ```tsx - * const { mutate, isPending } = useCreatePrincipalEntityMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreatePrincipalEntityMutation( - params: { - selection: { - fields: S & PrincipalEntitySelect; - } & HookStrictSelect, PrincipalEntitySelect>; - } & Omit< - UseMutationOptions< - { - createPrincipalEntity: { - principalEntity: InferSelectResult; - }; - }, - Error, - CreatePrincipalEntityInput['principalEntity'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createPrincipalEntity: { - principalEntity: InferSelectResult; - }; - }, - Error, - CreatePrincipalEntityInput['principalEntity'] ->; -export function useCreatePrincipalEntityMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: principalEntityMutationKeys.create(), - mutationFn: (data: CreatePrincipalEntityInput['principalEntity']) => - getClient() - .principalEntity.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: principalEntityKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useCreatePrincipalMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useCreatePrincipalMutation.ts index 6b805d782c..17061d7b9a 100644 --- a/sdk/constructive-react/src/auth/hooks/mutations/useCreatePrincipalMutation.ts +++ b/sdk/constructive-react/src/auth/hooks/mutations/useCreatePrincipalMutation.ts @@ -1,88 +1,55 @@ /** - * Scoped sub-identities (API keys and agents) with precomputed SPRT + * Custom mutation hook for createPrincipal * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; +import { useMutation } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; import { getClient } from '../client'; import { buildSelectionArgs } from '../selection'; import type { SelectionConfig } from '../selection'; -import { principalKeys } from '../query-keys'; -import { principalMutationKeys } from '../mutation-keys'; -import type { - PrincipalSelect, - PrincipalWithRelations, - CreatePrincipalInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PrincipalSelect, - PrincipalWithRelations, - CreatePrincipalInput, -} from '../../orm/input-types'; -/** - * Scoped sub-identities (API keys and agents) with precomputed SPRT - * - * @example - * ```tsx - * const { mutate, isPending } = useCreatePrincipalMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreatePrincipalMutation( +import { customMutationKeys } from '../mutation-keys'; +import type { CreatePrincipalVariables } from '../../orm/mutation'; +import type { CreatePrincipalPayloadSelect, CreatePrincipalPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { CreatePrincipalVariables } from '../../orm/mutation'; +export type { CreatePrincipalPayloadSelect } from '../../orm/input-types'; +export function useCreatePrincipalMutation( params: { selection: { - fields: S & PrincipalSelect; - } & HookStrictSelect, PrincipalSelect>; + fields: S & CreatePrincipalPayloadSelect; + } & HookStrictSelect, CreatePrincipalPayloadSelect>; } & Omit< UseMutationOptions< { - createPrincipal: { - principal: InferSelectResult; - }; + createPrincipal: InferSelectResult | null; }, Error, - CreatePrincipalInput['principal'] + CreatePrincipalVariables >, 'mutationFn' > ): UseMutationResult< { - createPrincipal: { - principal: InferSelectResult; - }; + createPrincipal: InferSelectResult | null; }, Error, - CreatePrincipalInput['principal'] ->; -export function useCreatePrincipalMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); + CreatePrincipalVariables +> { + const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; - const queryClient = useQueryClient(); return useMutation({ - mutationKey: principalMutationKeys.create(), - mutationFn: (data: CreatePrincipalInput['principal']) => + mutationKey: customMutationKeys.createPrincipal(), + mutationFn: (variables: CreatePrincipalVariables) => getClient() - .principal.create({ - data, + .mutation.createPrincipal(variables, { select: args.select, - }) + } as { + select: S; + } & StrictSelect) .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: principalKeys.lists(), - }); - }, ...mutationOptions, }); } diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useCreatePrincipalScopeOverrideMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useCreatePrincipalScopeOverrideMutation.ts deleted file mode 100644 index 9d93c21aef..0000000000 --- a/sdk/constructive-react/src/auth/hooks/mutations/useCreatePrincipalScopeOverrideMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Per-scope capability overrides for principals. No row = full access; row exists = apply restrictions. - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { principalScopeOverrideKeys } from '../query-keys'; -import { principalScopeOverrideMutationKeys } from '../mutation-keys'; -import type { - PrincipalScopeOverrideSelect, - PrincipalScopeOverrideWithRelations, - CreatePrincipalScopeOverrideInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PrincipalScopeOverrideSelect, - PrincipalScopeOverrideWithRelations, - CreatePrincipalScopeOverrideInput, -} from '../../orm/input-types'; -/** - * Per-scope capability overrides for principals. No row = full access; row exists = apply restrictions. - * - * @example - * ```tsx - * const { mutate, isPending } = useCreatePrincipalScopeOverrideMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreatePrincipalScopeOverrideMutation( - params: { - selection: { - fields: S & PrincipalScopeOverrideSelect; - } & HookStrictSelect, PrincipalScopeOverrideSelect>; - } & Omit< - UseMutationOptions< - { - createPrincipalScopeOverride: { - principalScopeOverride: InferSelectResult; - }; - }, - Error, - CreatePrincipalScopeOverrideInput['principalScopeOverride'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createPrincipalScopeOverride: { - principalScopeOverride: InferSelectResult; - }; - }, - Error, - CreatePrincipalScopeOverrideInput['principalScopeOverride'] ->; -export function useCreatePrincipalScopeOverrideMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: principalScopeOverrideMutationKeys.create(), - mutationFn: (data: CreatePrincipalScopeOverrideInput['principalScopeOverride']) => - getClient() - .principalScopeOverride.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: principalScopeOverrideKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useCreateUserConnectedAccountMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useCreateUserConnectedAccountMutation.ts deleted file mode 100644 index 6c0f3a5194..0000000000 --- a/sdk/constructive-react/src/auth/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/auth/hooks/mutations/useEnsureAuthCsrfMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useEnsureAuthCsrfMutation.ts new file mode 100644 index 0000000000..1d9693d499 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useEnsureAuthCsrfMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for ensureAuthCsrf + * @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 { EnsureAuthCsrfVariables } from '../../orm/mutation'; +import type { EnsureAuthCsrfPayloadSelect, EnsureAuthCsrfPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { EnsureAuthCsrfVariables } from '../../orm/mutation'; +export type { EnsureAuthCsrfPayloadSelect } from '../../orm/input-types'; +export function useEnsureAuthCsrfMutation( + params: { + selection: { + fields: S & EnsureAuthCsrfPayloadSelect; + } & HookStrictSelect, EnsureAuthCsrfPayloadSelect>; + } & Omit< + UseMutationOptions< + { + ensureAuthCsrf: InferSelectResult | null; + }, + Error, + EnsureAuthCsrfVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + ensureAuthCsrf: InferSelectResult | null; + }, + Error, + EnsureAuthCsrfVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.ensureAuthCsrf(), + mutationFn: (variables: EnsureAuthCsrfVariables) => + getClient() + .mutation.ensureAuthCsrf(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useExchangeNativeHandoffMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useExchangeNativeHandoffMutation.ts new file mode 100644 index 0000000000..6eec737c16 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useExchangeNativeHandoffMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for exchangeNativeHandoff + * @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 { ExchangeNativeHandoffVariables } from '../../orm/mutation'; +import type { + ExchangeNativeHandoffPayloadSelect, + ExchangeNativeHandoffPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { ExchangeNativeHandoffVariables } from '../../orm/mutation'; +export type { ExchangeNativeHandoffPayloadSelect } from '../../orm/input-types'; +export function useExchangeNativeHandoffMutation( + params: { + selection: { + fields: S & ExchangeNativeHandoffPayloadSelect; + } & HookStrictSelect, ExchangeNativeHandoffPayloadSelect>; + } & Omit< + UseMutationOptions< + { + exchangeNativeHandoff: InferSelectResult | null; + }, + Error, + ExchangeNativeHandoffVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + exchangeNativeHandoff: InferSelectResult | null; + }, + Error, + ExchangeNativeHandoffVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.exchangeNativeHandoff(), + mutationFn: (variables: ExchangeNativeHandoffVariables) => + getClient() + .mutation.exchangeNativeHandoff(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useRequestDeviceApprovalMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useRequestDeviceApprovalMutation.ts new file mode 100644 index 0000000000..f6c28723c4 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useRequestDeviceApprovalMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for requestDeviceApproval + * @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 { RequestDeviceApprovalVariables } from '../../orm/mutation'; +import type { + RequestDeviceApprovalPayloadSelect, + RequestDeviceApprovalPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { RequestDeviceApprovalVariables } from '../../orm/mutation'; +export type { RequestDeviceApprovalPayloadSelect } from '../../orm/input-types'; +export function useRequestDeviceApprovalMutation( + params: { + selection: { + fields: S & RequestDeviceApprovalPayloadSelect; + } & HookStrictSelect, RequestDeviceApprovalPayloadSelect>; + } & Omit< + UseMutationOptions< + { + requestDeviceApproval: InferSelectResult | null; + }, + Error, + RequestDeviceApprovalVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + requestDeviceApproval: InferSelectResult | null; + }, + Error, + RequestDeviceApprovalVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.requestDeviceApproval(), + mutationFn: (variables: RequestDeviceApprovalVariables) => + getClient() + .mutation.requestDeviceApproval(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/queries/index.ts b/sdk/constructive-react/src/auth/hooks/queries/index.ts index 0baeef2927..06ae02a663 100644 --- a/sdk/constructive-react/src/auth/hooks/queries/index.ts +++ b/sdk/constructive-react/src/auth/hooks/queries/index.ts @@ -38,3 +38,4 @@ export * from './useCurrentUserAgentQuery'; export * from './useCurrentUserIdQuery'; export * from './useGetMfaStatusQuery'; export * from './useRequireStepUpQuery'; +export * from './useSignInOptionsQuery'; diff --git a/sdk/constructive-react/src/auth/hooks/queries/useSignInOptionsQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/useSignInOptionsQuery.ts new file mode 100644 index 0000000000..f94a924d57 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/queries/useSignInOptionsQuery.ts @@ -0,0 +1,127 @@ +/** + * Custom query hook for signInOptions + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-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 { SignInOptionsRecordSelect, SignInOptionsRecord } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { SignInOptionsRecordSelect } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const signInOptionsQueryKey = customQueryKeys.signInOptions; +/** + * Query hook for signInOptions + * + * @example + * ```tsx + * const { data, isLoading } = useSignInOptionsQuery({ selection: { fields: { id: true } } }); + * + * if (data?.signInOptions) { + * console.log(data.signInOptions); + * } + * ``` + */ +export function useSignInOptionsQuery< + S extends SignInOptionsRecordSelect, + TData = { + signInOptions: InferSelectResult | null; + }, +>( + params: { + selection: { + fields: S & SignInOptionsRecordSelect; + } & HookStrictSelect, SignInOptionsRecordSelect>; + } & Omit< + UseQueryOptions< + { + signInOptions: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useSignInOptionsQuery( + params: { + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: signInOptionsQueryKey(), + queryFn: () => + getClient() + .query.signInOptions({ + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch signInOptions without React hooks + * + * @example + * ```ts + * const data = await fetchSignInOptionsQuery({ selection: { fields: { id: true } } }); + * ``` + */ +export async function fetchSignInOptionsQuery(params: { + selection: { + fields: S & SignInOptionsRecordSelect; + } & HookStrictSelect, SignInOptionsRecordSelect>; +}): Promise<{ + signInOptions: InferSelectResult | null; +}>; +export async function fetchSignInOptionsQuery(params: { + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .query.signInOptions({ + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch signInOptions for SSR or cache warming + * + * @example + * ```ts + * await prefetchSignInOptionsQuery(queryClient, { selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchSignInOptionsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S & SignInOptionsRecordSelect; + } & HookStrictSelect, SignInOptionsRecordSelect>; + } +): Promise; +export async function prefetchSignInOptionsQuery( + queryClient: QueryClient, + params: { + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: signInOptionsQueryKey(), + queryFn: () => + getClient() + .query.signInOptions({ + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/query-keys.ts b/sdk/constructive-react/src/auth/hooks/query-keys.ts index 57cfc97741..5d00c09400 100644 --- a/sdk/constructive-react/src/auth/hooks/query-keys.ts +++ b/sdk/constructive-react/src/auth/hooks/query-keys.ts @@ -167,6 +167,7 @@ export const customQueryKeys = { /** Query key for getMfaStatus */ getMfaStatus: () => ['getMfaStatus'] as const, /** Query key for requireStepUp */ requireStepUp: (variables?: object) => ['requireStepUp', variables] as const, + /** Query key for signInOptions */ signInOptions: () => ['signInOptions'] as const, } as const; /** diff --git a/sdk/constructive-react/src/auth/orm/README.md b/sdk/constructive-react/src/auth/orm/README.md index 954a86ca4c..b40e577322 100644 --- a/sdk/constructive-react/src/auth/orm/README.md +++ b/sdk/constructive-react/src/auth/orm/README.md @@ -24,14 +24,14 @@ const db = createClient({ | `auditLogAuth` | findMany, findOne, create, update, delete | | `cryptoAddress` | findMany, findOne, create, update, delete | | `email` | findMany, findOne, create, update, delete | -| `identityProvider` | findMany, findOne, create, update, delete | -| `orgApiKeyList` | findMany, findOne, create, update, delete | +| `identityProvider` | findMany, findOne, update, delete | +| `orgApiKeyList` | findMany, findOne, update, delete | | `phoneNumber` | findMany, findOne, create, update, delete | -| `principal` | findMany, findOne, create, update, delete | -| `principalEntity` | findMany, findOne, create, update, delete | -| `principalScopeOverride` | findMany, findOne, create, update, delete | +| `principal` | findMany, findOne, update, delete | +| `principalEntity` | findMany, findOne, update, delete | +| `principalScopeOverride` | findMany, findOne, update, delete | | `roleType` | findMany, findOne, create, update, delete | -| `userConnectedAccount` | findMany, findOne, create, update, delete | +| `userConnectedAccount` | findMany, findOne, update, delete | | `user` | findMany, findOne, create, update, delete | | `userSetting` | findMany, findOne, create, update, delete | | `userSettingsSecurity` | findMany, findOne, create, update, delete | @@ -170,9 +170,6 @@ const items = await db.identityProvider.findMany({ select: { displayName: true, // Get one by id const item = await db.identityProvider.findOne({ id: '', select: { displayName: true, enabled: true, kind: true, slug: true } }).execute(); -// Create -const created = await db.identityProvider.create({ data: { displayName: '', enabled: '', kind: '', slug: '' }, select: { id: true } }).execute(); - // Update const updated = await db.identityProvider.update({ where: { id: '' }, data: { displayName: '' }, select: { id: true } }).execute(); @@ -210,9 +207,6 @@ const items = await db.orgApiKeyList.findMany({ select: { accessLevel: true, cre // Get one by id const item = await db.orgApiKeyList.findOne({ id: '', select: { accessLevel: true, createdAt: true, expiresAt: true, id: true, keyId: true, lastUsedAt: true, mfaLevel: true, name: true, orgId: true, principalId: true, revokedAt: true, updatedAt: true } }).execute(); -// Create -const created = await db.orgApiKeyList.create({ data: { accessLevel: '', expiresAt: '', keyId: '', lastUsedAt: '', mfaLevel: '', name: '', orgId: '', principalId: '', revokedAt: '' }, select: { id: true } }).execute(); - // Update const updated = await db.orgApiKeyList.update({ where: { id: '' }, data: { accessLevel: '' }, select: { id: true } }).execute(); @@ -289,9 +283,6 @@ const items = await db.principal.findMany({ select: { apiKeyMaxDuration: true, b // Get one by principalId const item = await db.principal.findOne({ principalId: '', select: { apiKeyMaxDuration: true, bypassStepUp: true, createdAt: true, createdBySessionId: true, depth: true, expiresAt: true, id: true, isReadOnly: true, name: true, ownerId: true, parentPrincipalId: true, updatedAt: true, useAdminOwner: true, userId: true } }).execute(); -// Create -const created = await db.principal.create({ data: { apiKeyMaxDuration: '', bypassStepUp: '', createdBySessionId: '', depth: '', expiresAt: '', id: '', isReadOnly: '', name: '', ownerId: '', parentPrincipalId: '', useAdminOwner: '', userId: '' }, select: { principalId: true } }).execute(); - // Update const updated = await db.principal.update({ where: { principalId: '' }, data: { apiKeyMaxDuration: '' }, select: { principalId: true } }).execute(); @@ -323,9 +314,6 @@ const items = await db.principalEntity.findMany({ select: { createdAt: true, ent // Get one by id const item = await db.principalEntity.findOne({ id: '', select: { createdAt: true, entityId: true, id: true, ownerId: true, principalId: true, updatedAt: true } }).execute(); -// Create -const created = await db.principalEntity.create({ data: { entityId: '', ownerId: '', principalId: '' }, select: { id: true } }).execute(); - // Update const updated = await db.principalEntity.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); @@ -360,9 +348,6 @@ const items = await db.principalScopeOverride.findMany({ select: { allowedMask: // Get one by id const item = await db.principalScopeOverride.findOne({ id: '', select: { allowedMask: true, createdAt: true, id: true, isActive: true, isReadOnly: true, membershipType: true, principalId: true, updatedAt: true, useAdminOwner: true } }).execute(); -// Create -const created = await db.principalScopeOverride.create({ data: { allowedMask: '', isActive: '', isReadOnly: '', membershipType: '', principalId: '', useAdminOwner: '' }, select: { id: true } }).execute(); - // Update const updated = await db.principalScopeOverride.update({ where: { id: '' }, data: { allowedMask: '' }, select: { id: true } }).execute(); @@ -426,9 +411,6 @@ const items = await db.userConnectedAccount.findMany({ select: { createdAt: true // Get one by id const item = await db.userConnectedAccount.findOne({ id: '', select: { createdAt: true, details: true, id: true, identifier: true, isVerified: true, ownerId: true, service: true, updatedAt: true } }).execute(); -// Create -const created = await db.userConnectedAccount.create({ data: { details: '', identifier: '', isVerified: '', ownerId: '', service: '' }, select: { id: true } }).execute(); - // Update const updated = await db.userConnectedAccount.update({ where: { id: '' }, data: { details: '' }, select: { id: true } }).execute(); @@ -449,6 +431,8 @@ CRUD operations for User records. | `displayNameTrgmSimilarity` | Float | Yes | | `id` | UUID | No | | `profilePicture` | ConstructiveInternalTypeImage | Yes | +| `profilePictureUrl` | String | Yes | +| `profilePictureVersions` | FileVersion | Yes | | `searchScore` | Float | Yes | | `searchTsv` | FullText | Yes | | `searchTsvRank` | Float | Yes | @@ -460,13 +444,13 @@ CRUD operations for User records. ```typescript // List all user records -const items = await db.user.findMany({ select: { createdAt: true, displayName: true, displayNameTrgmSimilarity: true, id: true, profilePicture: true, searchScore: true, searchTsv: true, searchTsvRank: true, type: true, updatedAt: true, username: true } }).execute(); +const items = await db.user.findMany({ select: { createdAt: true, displayName: true, displayNameTrgmSimilarity: true, id: true, profilePicture: true, profilePictureUrl: true, profilePictureVersions: true, searchScore: true, searchTsv: true, searchTsvRank: true, type: true, updatedAt: true, username: true } }).execute(); // Get one by id -const item = await db.user.findOne({ id: '', select: { createdAt: true, displayName: true, displayNameTrgmSimilarity: true, id: true, profilePicture: true, searchScore: true, searchTsv: true, searchTsvRank: true, type: true, updatedAt: true, username: true } }).execute(); +const item = await db.user.findOne({ id: '', select: { createdAt: true, displayName: true, displayNameTrgmSimilarity: true, id: true, profilePicture: true, profilePictureUrl: true, profilePictureVersions: true, searchScore: true, searchTsv: true, searchTsvRank: true, type: true, updatedAt: true, username: true } }).execute(); // Create -const created = await db.user.create({ data: { displayName: '', displayNameTrgmSimilarity: '', profilePicture: '', searchScore: '', searchTsv: '', searchTsvRank: '', type: '', username: '' }, select: { id: true } }).execute(); +const created = await db.user.create({ data: { displayName: '', displayNameTrgmSimilarity: '', profilePicture: '', profilePictureUrl: '', profilePictureVersions: '', searchScore: '', searchTsv: '', searchTsvRank: '', type: '', username: '' }, select: { id: true } }).execute(); // Update const updated = await db.user.update({ where: { id: '' }, data: { displayName: '' }, select: { id: true } }).execute(); @@ -662,6 +646,17 @@ requireStepUp const result = await db.query.requireStepUp({ stepUpType: '' }).execute(); ``` +### `db.query.signInOptions` + +signInOptions + +- **Type:** query +- **Arguments:** none + +```typescript +const result = await db.query.signInOptions().execute(); +``` + ### `db.mutation.approveDevice` approveDevice @@ -739,7 +734,7 @@ const result = await db.mutation.confirmTotpSetup({ input: { totpValue: '', isReadOnly: '', name: '', orgId: '', useAdminOwner: '' } }).execute(); ``` +### `db.mutation.createPrincipal` + +createPrincipal + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CreatePrincipalInput (required) | + +```typescript +const result = await db.mutation.createPrincipal({ input: { bypassStepUp: '', entityIds: '', isReadOnly: '', name: '', useAdminOwner: '' } }).execute(); +``` + ### `db.mutation.createPrincipalFromPreset` createPrincipalFromPreset @@ -947,6 +957,36 @@ enableTotp const result = await db.mutation.enableTotp({ input: '' }).execute(); ``` +### `db.mutation.ensureAuthCsrf` + +ensureAuthCsrf + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | EnsureAuthCsrfInput (required) | + +```typescript +const result = await db.mutation.ensureAuthCsrf({ input: { existingToken: '' } }).execute(); +``` + +### `db.mutation.exchangeNativeHandoff` + +exchangeNativeHandoff + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ExchangeNativeHandoffInput (required) | + +```typescript +const result = await db.mutation.exchangeNativeHandoff({ input: { code: '', codeVerifier: '', credentialKind: '' } }).execute(); +``` + ### `db.mutation.extendTokenExpires` extendTokenExpires @@ -1072,6 +1112,21 @@ requestCrossOriginToken const result = await db.mutation.requestCrossOriginToken({ input: { email: '', origin: '', password: '', rememberMe: '' } }).execute(); ``` +### `db.mutation.requestDeviceApproval` + +requestDeviceApproval + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | RequestDeviceApprovalInput (required) | + +```typescript +const result = await db.mutation.requestDeviceApproval({ input: { deviceToken: '', next: '', userId: '' } }).execute(); +``` + ### `db.mutation.requestMagicLink` requestMagicLink @@ -1084,7 +1139,7 @@ requestMagicLink | `input` | RequestMagicLinkInput (required) | ```typescript -const result = await db.mutation.requestMagicLink({ input: { email: '', next: '' } }).execute(); +const result = await db.mutation.requestMagicLink({ input: { codeChallenge: '', email: '', nativeRedirectUri: '', next: '' } }).execute(); ``` ### `db.mutation.resetPassword` @@ -1249,7 +1304,7 @@ setPassword | `input` | SetPasswordInput (required) | ```typescript -const result = await db.mutation.setPassword({ input: { currentPassword: '', newPassword: '' } }).execute(); +const result = await db.mutation.setPassword({ input: { currentPassword: '', newPassword: '', signOutOtherSessions: '' } }).execute(); ``` ### `db.mutation.setPrincipalEntities` @@ -1429,7 +1484,7 @@ verifyEmail | `input` | VerifyEmailInput (required) | ```typescript -const result = await db.mutation.verifyEmail({ input: { emailId: '', token: '' } }).execute(); +const result = await db.mutation.verifyEmail({ input: { emailId: '', password: '', token: '' } }).execute(); ``` ### `db.mutation.verifyPassword` diff --git a/sdk/constructive-react/src/auth/orm/input-types.ts b/sdk/constructive-react/src/auth/orm/input-types.ts index f1489beef6..f46e6397da 100644 --- a/sdk/constructive-react/src/auth/orm/input-types.ts +++ b/sdk/constructive-react/src/auth/orm/input-types.ts @@ -235,6 +235,7 @@ export type Base64EncodedBinary = unknown; export type ConstructiveInternalTypeEmail = unknown; export type ConstructiveInternalTypeImage = unknown; export type ConstructiveInternalTypeOrigin = unknown; +export type FileVersion = unknown; /** Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) */ // ============ Entity Types ============ export interface AuditLogAuth { @@ -402,6 +403,10 @@ export interface User { displayNameTrgmSimilarity?: number | null; id: string; profilePicture?: ConstructiveInternalTypeImage | null; + /** URL to fetch `profilePicture`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + profilePictureUrl?: string | null; + /** The versions rendered beside `profilePicture`, narrowest first, each with a URL. Empty when there are none. */ + profilePictureVersions?: FileVersion[] | null; /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ searchScore?: number | null; searchTsv?: string | null; @@ -718,6 +723,13 @@ export type UserSelect = { displayNameTrgmSimilarity?: boolean; id?: boolean; profilePicture?: boolean; + profilePictureUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + profilePictureVersions?: boolean; searchScore?: boolean; searchTsv?: boolean; searchTsvRank?: boolean; @@ -1678,15 +1690,6 @@ export interface DeleteEmailInput { clientMutationId?: string; id: string; } -export interface CreateIdentityProviderInput { - clientMutationId?: string; - identityProvider: { - displayName?: string; - enabled?: boolean; - kind?: string; - slug?: string; - }; -} export interface IdentityProviderPatch { displayName?: string | null; enabled?: boolean | null; @@ -1702,20 +1705,6 @@ export interface DeleteIdentityProviderInput { clientMutationId?: string; id: string; } -export interface CreateOrgApiKeyListInput { - clientMutationId?: string; - orgApiKeyList: { - accessLevel?: string; - expiresAt?: string; - keyId: string; - lastUsedAt?: string; - mfaLevel?: string; - name?: string; - orgId: string; - principalId: string; - revokedAt?: string; - }; -} export interface OrgApiKeyListPatch { accessLevel?: string | null; expiresAt?: string | null; @@ -1764,22 +1753,6 @@ export interface DeletePhoneNumberInput { clientMutationId?: string; id: string; } -export interface CreatePrincipalInput { - clientMutationId?: string; - principal: { - apiKeyMaxDuration?: string; - bypassStepUp?: boolean; - createdBySessionId: string; - depth?: number; - expiresAt?: string; - isReadOnly?: boolean; - name?: string; - ownerId: string; - parentPrincipalId: string; - useAdminOwner?: boolean; - userId: string; - }; -} export interface PrincipalPatch { apiKeyMaxDuration?: string | null; bypassStepUp?: boolean | null; @@ -1802,14 +1775,6 @@ export interface DeletePrincipalInput { clientMutationId?: string; principalId: string; } -export interface CreatePrincipalEntityInput { - clientMutationId?: string; - principalEntity: { - entityId: string; - ownerId: string; - principalId: string; - }; -} export interface PrincipalEntityPatch { entityId?: string | null; ownerId?: string | null; @@ -1824,17 +1789,6 @@ export interface DeletePrincipalEntityInput { clientMutationId?: string; id: string; } -export interface CreatePrincipalScopeOverrideInput { - clientMutationId?: string; - principalScopeOverride: { - allowedMask?: string; - isActive?: boolean; - isReadOnly?: boolean; - membershipType?: number; - principalId: string; - useAdminOwner?: boolean; - }; -} export interface PrincipalScopeOverridePatch { allowedMask?: string | null; isActive?: boolean | null; @@ -1870,16 +1824,6 @@ export interface DeleteRoleTypeInput { clientMutationId?: string; id: number; } -export interface CreateUserConnectedAccountInput { - clientMutationId?: string; - userConnectedAccount: { - details?: Record; - identifier?: string; - isVerified?: boolean; - ownerId: string; - service?: string; - }; -} export interface UserConnectedAccountPatch { details?: Record | null; identifier?: string | null; @@ -1908,7 +1852,6 @@ export interface CreateUserInput { export interface UserPatch { displayName?: string | null; profilePicture?: ConstructiveInternalTypeImage | null; - profilePictureUpload?: File | null; type?: number | null; username?: string | null; } @@ -2088,6 +2031,14 @@ export interface CreateOrgPrincipalInput { orgId?: string; useAdminOwner?: boolean; } +export interface CreatePrincipalInput { + bypassStepUp?: boolean; + clientMutationId?: string; + entityIds?: string[]; + isReadOnly?: boolean; + name?: string; + useAdminOwner?: boolean; +} export interface CreatePrincipalFromPresetInput { clientMutationId?: string; entityIds?: string[]; @@ -2122,6 +2073,16 @@ export interface EnableSmsMfaInput { export interface EnableTotpInput { clientMutationId?: string; } +export interface EnsureAuthCsrfInput { + clientMutationId?: string; + existingToken?: string; +} +export interface ExchangeNativeHandoffInput { + clientMutationId?: string; + code?: string; + codeVerifier?: string; + credentialKind?: string; +} export interface ExtendTokenExpiresInput { amount?: IntervalInput; clientMutationId?: string; @@ -2135,7 +2096,7 @@ export interface GenerateBackupCodesInput { } export interface LinkIdentityInput { clientMutationId?: string; - ticket: string; + ticket?: string; } export interface MintAccessTokenInput { accessTtl?: IntervalInput; @@ -2163,9 +2124,17 @@ export interface RequestCrossOriginTokenInput { password?: string; rememberMe?: boolean; } +export interface RequestDeviceApprovalInput { + clientMutationId?: string; + deviceToken?: string; + next?: string; + userId?: string; +} export interface RequestMagicLinkInput { clientMutationId?: string; + codeChallenge?: string; email?: string; + nativeRedirectUri?: string; next?: string; } export interface ResetPasswordInput { @@ -2216,6 +2185,7 @@ export interface SetPasswordInput { clientMutationId?: string; currentPassword?: string; newPassword?: string; + signOutOtherSessions?: boolean; } export interface SetPrincipalEntitiesInput { clientMutationId?: string; @@ -2290,6 +2260,7 @@ export interface SignUpSmsInput { export interface VerifyEmailInput { clientMutationId?: string; emailId?: string; + password?: string; token?: string; } export interface VerifyPasswordInput { @@ -3644,6 +3615,46 @@ export type GetMfaStatusRecordSelect = { smsMfaEnabled?: boolean; totpEnabled?: boolean; }; +export interface SignInOptionsRecord { + allowAnonymousSessions?: boolean | null; + allowEmailOtpSignIn?: boolean | null; + allowIdentitySignIn?: boolean | null; + allowIdentitySignUp?: boolean | null; + allowMagicLinkSignIn?: boolean | null; + allowMagicLinkSignUp?: boolean | null; + allowPasswordSignIn?: boolean | null; + allowPasswordSignUp?: boolean | null; + allowSignUp?: boolean | null; + allowSmsSignIn?: boolean | null; + allowSmsSignUp?: boolean | null; + allowWebauthnSignIn?: boolean | null; + allowWebauthnSignUp?: boolean | null; + allowWebauthnUsernameless?: boolean | null; + enableCaptcha?: boolean | null; + identityProviders?: Record | null; + requireMfa?: boolean | null; + signUpRequiresInvite?: boolean | null; +} +export type SignInOptionsRecordSelect = { + allowAnonymousSessions?: boolean; + allowEmailOtpSignIn?: boolean; + allowIdentitySignIn?: boolean; + allowIdentitySignUp?: boolean; + allowMagicLinkSignIn?: boolean; + allowMagicLinkSignUp?: boolean; + allowPasswordSignIn?: boolean; + allowPasswordSignUp?: boolean; + allowSignUp?: boolean; + allowSmsSignIn?: boolean; + allowSmsSignUp?: boolean; + allowWebauthnSignIn?: boolean; + allowWebauthnSignUp?: boolean; + allowWebauthnUsernameless?: boolean; + enableCaptcha?: boolean; + identityProviders?: boolean; + requireMfa?: boolean; + signUpRequiresInvite?: boolean; +}; export interface ApproveDevicePayload { clientMutationId?: string | null; result?: boolean | null; @@ -3720,6 +3731,14 @@ export type CreateOrgPrincipalPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface CreatePrincipalPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type CreatePrincipalPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface CreatePrincipalFromPresetPayload { clientMutationId?: string | null; result?: string | null; @@ -3800,6 +3819,24 @@ export type EnableTotpPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface EnsureAuthCsrfPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type EnsureAuthCsrfPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ExchangeNativeHandoffPayload { + clientMutationId?: string | null; + result?: ExchangeNativeHandoffRecord | null; +} +export type ExchangeNativeHandoffPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: ExchangeNativeHandoffRecordSelect; + }; +}; export interface ExtendTokenExpiresPayload { clientMutationId?: string | null; result?: ExtendTokenExpiresRecord[] | null; @@ -3875,6 +3912,14 @@ export type RequestCrossOriginTokenPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface RequestDeviceApprovalPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type RequestDeviceApprovalPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface RequestMagicLinkPayload { clientMutationId?: string | null; } @@ -4285,14 +4330,6 @@ export type DeletePhoneNumberPayloadSelect = { select: PhoneNumberEdgeSelect; }; }; -export interface CreatePrincipalPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type CreatePrincipalPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; export interface CreateRoleTypePayload { clientMutationId?: string | null; /** The `RoleType` that was created by this mutation. */ @@ -4556,6 +4593,22 @@ export type CreateOrgApiKeyRecordSelect = { expiresAt?: boolean; keyId?: boolean; }; +export interface ExchangeNativeHandoffRecord { + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + id?: string | null; + isVerified?: boolean | null; + totpEnabled?: boolean | null; + userId?: string | null; +} +export type ExchangeNativeHandoffRecordSelect = { + accessToken?: boolean; + accessTokenExpiresAt?: boolean; + id?: boolean; + isVerified?: boolean; + totpEnabled?: boolean; + userId?: boolean; +}; export interface ExtendTokenExpiresRecord { expiresAt?: string | null; id?: string | null; @@ -4643,18 +4696,22 @@ export type SignInCrossOriginRecordSelect = { export interface SignInMagicLinkRecord { accessToken?: string | null; accessTokenExpiresAt?: string | null; + codeChallenge?: string | null; deviceApprovalRequired?: boolean | null; mfaChallengeToken?: string | null; mfaRequired?: boolean | null; + nativeRedirectUri?: string | null; outDeviceToken?: string | null; userId?: string | null; } export type SignInMagicLinkRecordSelect = { accessToken?: boolean; accessTokenExpiresAt?: boolean; + codeChallenge?: boolean; deviceApprovalRequired?: boolean; mfaChallengeToken?: boolean; mfaRequired?: boolean; + nativeRedirectUri?: boolean; outDeviceToken?: boolean; userId?: boolean; }; @@ -4679,12 +4736,16 @@ export type SignInSmsOtpRecordSelect = { export interface SignUpMagicLinkRecord { accessToken?: string | null; accessTokenExpiresAt?: string | null; + codeChallenge?: string | null; + nativeRedirectUri?: string | null; outDeviceToken?: string | null; userId?: string | null; } export type SignUpMagicLinkRecordSelect = { accessToken?: boolean; accessTokenExpiresAt?: boolean; + codeChallenge?: boolean; + nativeRedirectUri?: boolean; outDeviceToken?: boolean; userId?: boolean; }; diff --git a/sdk/constructive-react/src/auth/orm/models/identityProvider.ts b/sdk/constructive-react/src/auth/orm/models/identityProvider.ts index cdc672145c..fde90fea4b 100644 --- a/sdk/constructive-react/src/auth/orm/models/identityProvider.ts +++ b/sdk/constructive-react/src/auth/orm/models/identityProvider.ts @@ -29,7 +29,6 @@ import type { IdentityProviderSelect, IdentityProviderFilter, IdentityProviderOrderBy, - CreateIdentityProviderInput, UpdateIdentityProviderInput, IdentityProviderPatch, } from '../input-types'; @@ -104,31 +103,4 @@ export class IdentityProviderModel { }), }); } - 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/auth/orm/models/orgApiKeyList.ts b/sdk/constructive-react/src/auth/orm/models/orgApiKeyList.ts index fe7120ee8a..4c7c4cee0a 100644 --- a/sdk/constructive-react/src/auth/orm/models/orgApiKeyList.ts +++ b/sdk/constructive-react/src/auth/orm/models/orgApiKeyList.ts @@ -29,7 +29,6 @@ import type { OrgApiKeyListSelect, OrgApiKeyListFilter, OrgApiKeyListOrderBy, - CreateOrgApiKeyListInput, UpdateOrgApiKeyListInput, OrgApiKeyListPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class OrgApiKeyListModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgApiKeyList: { - orgApiKeyList: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgApiKeyList', - 'createOrgApiKeyList', - 'orgApiKeyList', - args.select, - args.data, - 'CreateOrgApiKeyListInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgApiKeyList', - fieldName: 'createOrgApiKeyList', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/auth/orm/models/principal.ts b/sdk/constructive-react/src/auth/orm/models/principal.ts index 05e5aa400c..ff1e4994ed 100644 --- a/sdk/constructive-react/src/auth/orm/models/principal.ts +++ b/sdk/constructive-react/src/auth/orm/models/principal.ts @@ -29,7 +29,6 @@ import type { PrincipalSelect, PrincipalFilter, PrincipalOrderBy, - CreatePrincipalInput, UpdatePrincipalInput, PrincipalPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class PrincipalModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPrincipal: { - principal: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'Principal', - 'createPrincipal', - 'principal', - args.select, - args.data, - 'CreatePrincipalInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Principal', - fieldName: 'createPrincipal', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/auth/orm/models/principalEntity.ts b/sdk/constructive-react/src/auth/orm/models/principalEntity.ts index 516e110743..580fbe4f6f 100644 --- a/sdk/constructive-react/src/auth/orm/models/principalEntity.ts +++ b/sdk/constructive-react/src/auth/orm/models/principalEntity.ts @@ -29,7 +29,6 @@ import type { PrincipalEntitySelect, PrincipalEntityFilter, PrincipalEntityOrderBy, - CreatePrincipalEntityInput, UpdatePrincipalEntityInput, PrincipalEntityPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class PrincipalEntityModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPrincipalEntity: { - principalEntity: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PrincipalEntity', - 'createPrincipalEntity', - 'principalEntity', - args.select, - args.data, - 'CreatePrincipalEntityInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PrincipalEntity', - fieldName: 'createPrincipalEntity', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/auth/orm/models/principalScopeOverride.ts b/sdk/constructive-react/src/auth/orm/models/principalScopeOverride.ts index 3d3e7bedd3..fb315ec75c 100644 --- a/sdk/constructive-react/src/auth/orm/models/principalScopeOverride.ts +++ b/sdk/constructive-react/src/auth/orm/models/principalScopeOverride.ts @@ -29,7 +29,6 @@ import type { PrincipalScopeOverrideSelect, PrincipalScopeOverrideFilter, PrincipalScopeOverrideOrderBy, - CreatePrincipalScopeOverrideInput, UpdatePrincipalScopeOverrideInput, PrincipalScopeOverridePatch, } from '../input-types'; @@ -146,31 +145,4 @@ export class PrincipalScopeOverrideModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPrincipalScopeOverride: { - principalScopeOverride: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PrincipalScopeOverride', - 'createPrincipalScopeOverride', - 'principalScopeOverride', - args.select, - args.data, - 'CreatePrincipalScopeOverrideInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PrincipalScopeOverride', - fieldName: 'createPrincipalScopeOverride', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/auth/orm/models/userConnectedAccount.ts b/sdk/constructive-react/src/auth/orm/models/userConnectedAccount.ts index a2344afdf4..8edfaf1d67 100644 --- a/sdk/constructive-react/src/auth/orm/models/userConnectedAccount.ts +++ b/sdk/constructive-react/src/auth/orm/models/userConnectedAccount.ts @@ -29,7 +29,6 @@ import type { UserConnectedAccountSelect, UserConnectedAccountFilter, UserConnectedAccountOrderBy, - CreateUserConnectedAccountInput, UpdateUserConnectedAccountInput, UserConnectedAccountPatch, } from '../input-types'; @@ -146,31 +145,4 @@ export class UserConnectedAccountModel { }), }); } - 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/auth/orm/mutation/index.ts b/sdk/constructive-react/src/auth/orm/mutation/index.ts index 39394d78e4..eebc1bc3d7 100644 --- a/sdk/constructive-react/src/auth/orm/mutation/index.ts +++ b/sdk/constructive-react/src/auth/orm/mutation/index.ts @@ -16,6 +16,7 @@ import type { CreateChildPrincipalInput, CreateOrgApiKeyInput, CreateOrgPrincipalInput, + CreatePrincipalInput, CreatePrincipalFromPresetInput, DeleteOrgPrincipalInput, DeletePrincipalInput, @@ -26,6 +27,8 @@ import type { EnableEmailMfaInput, EnableSmsMfaInput, EnableTotpInput, + EnsureAuthCsrfInput, + ExchangeNativeHandoffInput, ExtendTokenExpiresInput, ForgotPasswordInput, GenerateBackupCodesInput, @@ -34,6 +37,7 @@ import type { ProvisionBucketInput, RefreshAccessTokenInput, RequestCrossOriginTokenInput, + RequestDeviceApprovalInput, RequestMagicLinkInput, ResetPasswordInput, RevokeApiKeyInput, @@ -71,6 +75,7 @@ import type { CreateChildPrincipalPayload, CreateOrgApiKeyPayload, CreateOrgPrincipalPayload, + CreatePrincipalPayload, CreatePrincipalFromPresetPayload, DeleteOrgPrincipalPayload, DeletePrincipalPayload, @@ -81,6 +86,8 @@ import type { EnableEmailMfaPayload, EnableSmsMfaPayload, EnableTotpPayload, + EnsureAuthCsrfPayload, + ExchangeNativeHandoffPayload, ExtendTokenExpiresPayload, ForgotPasswordPayload, GenerateBackupCodesPayload, @@ -89,6 +96,7 @@ import type { ProvisionBucketPayload, RefreshAccessTokenPayload, RequestCrossOriginTokenPayload, + RequestDeviceApprovalPayload, RequestMagicLinkPayload, ResetPasswordPayload, RevokeApiKeyPayload, @@ -126,6 +134,7 @@ import type { CreateChildPrincipalPayloadSelect, CreateOrgApiKeyPayloadSelect, CreateOrgPrincipalPayloadSelect, + CreatePrincipalPayloadSelect, CreatePrincipalFromPresetPayloadSelect, DeleteOrgPrincipalPayloadSelect, DeletePrincipalPayloadSelect, @@ -136,6 +145,8 @@ import type { EnableEmailMfaPayloadSelect, EnableSmsMfaPayloadSelect, EnableTotpPayloadSelect, + EnsureAuthCsrfPayloadSelect, + ExchangeNativeHandoffPayloadSelect, ExtendTokenExpiresPayloadSelect, ForgotPasswordPayloadSelect, GenerateBackupCodesPayloadSelect, @@ -144,6 +155,7 @@ import type { ProvisionBucketPayloadSelect, RefreshAccessTokenPayloadSelect, RequestCrossOriginTokenPayloadSelect, + RequestDeviceApprovalPayloadSelect, RequestMagicLinkPayloadSelect, ResetPasswordPayloadSelect, RevokeApiKeyPayloadSelect, @@ -189,6 +201,10 @@ export interface ConfirmDeleteAccountVariables { export interface ConfirmTotpSetupVariables { input: ConfirmTotpSetupInput; } +/** + * Variables for createApiKey + * Mint an API key for the current user; the plaintext key is returned once. access_level: full_access (default) or read_only. mfa_level: none (default) or verified; verified needs a fresh MFA proof on the calling session. A key minted while authenticated by another API key never outlives that key. + */ export interface CreateApiKeyVariables { input: CreateApiKeyInput; } @@ -201,6 +217,9 @@ export interface CreateOrgApiKeyVariables { export interface CreateOrgPrincipalVariables { input: CreateOrgPrincipalInput; } +export interface CreatePrincipalVariables { + input: CreatePrincipalInput; +} export interface CreatePrincipalFromPresetVariables { input: CreatePrincipalFromPresetInput; } @@ -231,6 +250,12 @@ export interface EnableSmsMfaVariables { export interface EnableTotpVariables { input: EnableTotpInput; } +export interface EnsureAuthCsrfVariables { + input: EnsureAuthCsrfInput; +} +export interface ExchangeNativeHandoffVariables { + input: ExchangeNativeHandoffInput; +} export interface ExtendTokenExpiresVariables { input: ExtendTokenExpiresInput; } @@ -264,6 +289,9 @@ export interface RefreshAccessTokenVariables { export interface RequestCrossOriginTokenVariables { input: RequestCrossOriginTokenInput; } +export interface RequestDeviceApprovalVariables { + input: RequestDeviceApprovalInput; +} export interface RequestMagicLinkVariables { input: RequestMagicLinkInput; } @@ -611,6 +639,35 @@ export function createMutationOperations(client: OrmClient) { 'CreateOrgPrincipalPayload' ), }), + createPrincipal: ( + args: CreatePrincipalVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + createPrincipal: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'CreatePrincipal', + fieldName: 'createPrincipal', + ...buildCustomDocument( + 'mutation', + 'CreatePrincipal', + 'createPrincipal', + options.select, + args, + [ + { + name: 'input', + type: 'CreatePrincipalInput!', + }, + ], + connectionFieldsMap, + 'CreatePrincipalPayload' + ), + }), createPrincipalFromPreset: ( args: CreatePrincipalFromPresetVariables, options: { @@ -901,6 +958,64 @@ export function createMutationOperations(client: OrmClient) { 'EnableTotpPayload' ), }), + ensureAuthCsrf: ( + args: EnsureAuthCsrfVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + ensureAuthCsrf: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'EnsureAuthCsrf', + fieldName: 'ensureAuthCsrf', + ...buildCustomDocument( + 'mutation', + 'EnsureAuthCsrf', + 'ensureAuthCsrf', + options.select, + args, + [ + { + name: 'input', + type: 'EnsureAuthCsrfInput!', + }, + ], + connectionFieldsMap, + 'EnsureAuthCsrfPayload' + ), + }), + exchangeNativeHandoff: ( + args: ExchangeNativeHandoffVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + exchangeNativeHandoff: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ExchangeNativeHandoff', + fieldName: 'exchangeNativeHandoff', + ...buildCustomDocument( + 'mutation', + 'ExchangeNativeHandoff', + 'exchangeNativeHandoff', + options.select, + args, + [ + { + name: 'input', + type: 'ExchangeNativeHandoffInput!', + }, + ], + connectionFieldsMap, + 'ExchangeNativeHandoffPayload' + ), + }), extendTokenExpires: ( args: ExtendTokenExpiresVariables, options: { @@ -1133,6 +1248,35 @@ export function createMutationOperations(client: OrmClient) { 'RequestCrossOriginTokenPayload' ), }), + requestDeviceApproval: ( + args: RequestDeviceApprovalVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + requestDeviceApproval: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'RequestDeviceApproval', + fieldName: 'requestDeviceApproval', + ...buildCustomDocument( + 'mutation', + 'RequestDeviceApproval', + 'requestDeviceApproval', + options.select, + args, + [ + { + name: 'input', + type: 'RequestDeviceApprovalInput!', + }, + ], + connectionFieldsMap, + 'RequestDeviceApprovalPayload' + ), + }), requestMagicLink: ( args: RequestMagicLinkVariables, options: { diff --git a/sdk/constructive-react/src/auth/orm/query/index.ts b/sdk/constructive-react/src/auth/orm/query/index.ts index 671fb80d21..aa77870a50 100644 --- a/sdk/constructive-react/src/auth/orm/query/index.ts +++ b/sdk/constructive-react/src/auth/orm/query/index.ts @@ -9,8 +9,10 @@ import type { InferSelectResult, StrictSelect } from '../select-types'; import type { User, GetMfaStatusRecord, + SignInOptionsRecord, UserSelect, GetMfaStatusRecordSelect, + SignInOptionsRecordSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; export interface RequireStepUpVariables { @@ -150,5 +152,28 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), + signInOptions: ( + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + signInOptions: InferSelectResult | null; + }>({ + client, + operation: 'query', + operationName: 'SignInOptions', + fieldName: 'signInOptions', + ...buildCustomDocument( + 'query', + 'SignInOptions', + 'signInOptions', + options.select, + undefined, + [], + connectionFieldsMap, + 'SignInOptionsRecord' + ), + }), }; } diff --git a/sdk/constructive-react/src/auth/schema-types.ts b/sdk/constructive-react/src/auth/schema-types.ts index 36a2507f9f..9cdc5f06f3 100644 --- a/sdk/constructive-react/src/auth/schema-types.ts +++ b/sdk/constructive-react/src/auth/schema-types.ts @@ -950,6 +950,16 @@ export interface EnableSmsMfaInput { export interface EnableTotpInput { clientMutationId?: string; } +export interface EnsureAuthCsrfInput { + clientMutationId?: string; + existingToken?: string; +} +export interface ExchangeNativeHandoffInput { + clientMutationId?: string; + code?: string; + codeVerifier?: string; + credentialKind?: string; +} export interface ExtendTokenExpiresInput { amount?: IntervalInput; clientMutationId?: string; @@ -1024,7 +1034,7 @@ export interface IntervalInput { } export interface LinkIdentityInput { clientMutationId?: string; - ticket: string; + ticket?: string; } export interface MintAccessTokenInput { accessTtl?: IntervalInput; @@ -1288,9 +1298,17 @@ export interface RequestCrossOriginTokenInput { password?: string; rememberMe?: boolean; } +export interface RequestDeviceApprovalInput { + clientMutationId?: string; + deviceToken?: string; + next?: string; + userId?: string; +} export interface RequestMagicLinkInput { clientMutationId?: string; + codeChallenge?: string; email?: string; + nativeRedirectUri?: string; next?: string; } export interface ResetPasswordInput { @@ -1364,6 +1382,7 @@ export interface SetPasswordInput { clientMutationId?: string; currentPassword?: string; newPassword?: string; + signOutOtherSessions?: boolean; } export interface SetPrincipalEntitiesInput { clientMutationId?: string; @@ -1704,8 +1723,6 @@ export interface UserPatch { displayName?: string; id?: string; profilePicture?: ConstructiveInternalTypeImage; - /** File upload for the `profilePicture` field. */ - profilePictureUpload?: File; type?: number; updatedAt?: string; username?: string; @@ -1878,6 +1895,7 @@ export interface UserToManyWebauthnCredentialFilter { export interface VerifyEmailInput { clientMutationId?: string; emailId?: string; + password?: string; token?: string; } export interface VerifyPasswordInput { @@ -2070,6 +2088,26 @@ export interface RoleTypeConnection { pageInfo: PageInfo; totalCount: number; } +export interface SignInOptionsRecord { + allowAnonymousSessions?: boolean | null; + allowEmailOtpSignIn?: boolean | null; + allowIdentitySignIn?: boolean | null; + allowIdentitySignUp?: boolean | null; + allowMagicLinkSignIn?: boolean | null; + allowMagicLinkSignUp?: boolean | null; + allowPasswordSignIn?: boolean | null; + allowPasswordSignUp?: boolean | null; + allowSignUp?: boolean | null; + allowSmsSignIn?: boolean | null; + allowSmsSignUp?: boolean | null; + allowWebauthnSignIn?: boolean | null; + allowWebauthnSignUp?: boolean | null; + allowWebauthnUsernameless?: boolean | null; + enableCaptcha?: boolean | null; + identityProviders?: unknown | null; + requireMfa?: boolean | null; + signUpRequiresInvite?: boolean | null; +} /** A connection to a list of `UserConnectedAccount` values. */ export interface UserConnectedAccountConnection { edges: UserConnectedAccountEdge[]; @@ -2292,6 +2330,14 @@ export interface EnableTotpPayload { clientMutationId?: string | null; result?: string | null; } +export interface EnsureAuthCsrfPayload { + clientMutationId?: string | null; + result?: string | null; +} +export interface ExchangeNativeHandoffPayload { + clientMutationId?: string | null; + result?: ExchangeNativeHandoffRecord | null; +} export interface ExtendTokenExpiresPayload { clientMutationId?: string | null; result?: ExtendTokenExpiresRecord[] | null; @@ -2328,6 +2374,10 @@ export interface RequestCrossOriginTokenPayload { clientMutationId?: string | null; result?: string | null; } +export interface RequestDeviceApprovalPayload { + clientMutationId?: string | null; + result?: boolean | null; +} export interface RequestMagicLinkPayload { clientMutationId?: string | null; } @@ -2494,21 +2544,27 @@ export interface VerifyTotpPayload { /** Information about a database table */ export interface MetaTable { constraints: MetaConstraints; + /** Description written for this table, or null */ + description?: string | null; fields: MetaField[]; foreignKeyConstraints: MetaForeignKeyConstraint[]; - /** i18n metadata (null if no @i18n tag) */ + /** i18n metadata (null if the table is not translatable) */ i18n?: MetaI18n | null; indexes: MetaIndex[]; inflection: MetaInflection; + /** Whether this table only links rows of two other tables; the link appears in their manyToMany relations */ + isJunction: boolean; + /** 'table' when rows are stored in this table, 'view' when they come from a view of other tables */ + kind: string; /** Final GraphQL output type name */ name: string; primaryKeyConstraints: MetaPrimaryKeyConstraint[]; query: MetaQuery; - /** Realtime metadata (null if no @realtime tag) */ + /** Realtime metadata (null if the table has no change subscriptions) */ realtime?: MetaRealtime | null; relations: MetaRelations; schemaName: string; - /** Provisioning scope metadata (null if no @scope tag) */ + /** Provisioning scope metadata (null if the table has no scope) */ scope?: MetaScope | null; /** Search metadata (null if no search configured) */ search?: MetaSearch | null; @@ -2638,6 +2694,14 @@ export interface CreateOrgApiKeyRecord { expiresAt?: string | null; keyId?: string | null; } +export interface ExchangeNativeHandoffRecord { + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + id?: string | null; + isVerified?: boolean | null; + totpEnabled?: boolean | null; + userId?: string | null; +} export interface ExtendTokenExpiresRecord { expiresAt?: string | null; id?: string | null; @@ -2683,9 +2747,11 @@ export interface SignInCrossOriginRecord { export interface SignInMagicLinkRecord { accessToken?: string | null; accessTokenExpiresAt?: string | null; + codeChallenge?: string | null; deviceApprovalRequired?: boolean | null; mfaChallengeToken?: string | null; mfaRequired?: boolean | null; + nativeRedirectUri?: string | null; outDeviceToken?: string | null; userId?: string | null; } @@ -2701,6 +2767,8 @@ export interface SignInSmsOtpRecord { export interface SignUpMagicLinkRecord { accessToken?: string | null; accessTokenExpiresAt?: string | null; + codeChallenge?: string | null; + nativeRedirectUri?: string | null; outDeviceToken?: string | null; userId?: string | null; } @@ -2718,15 +2786,27 @@ export interface MetaConstraints { } /** Information about a table field/column */ export interface MetaField { + /** Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. */ + allowedValues?: string[] | null; /** PostgreSQL column name */ columnName: string; description?: string | null; /** Enum metadata if this field has an enum type */ enumValues?: MetaEnum | null; + /** Set when the field holds files; null otherwise. Set on a table's own fields only. */ + file?: MetaFileField | null; hasDefault: boolean; + /** Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. */ + isComputed?: boolean | null; isForeignKey: boolean; isNotNull: boolean; isPrimaryKey: boolean; + /** Whether a create must provide this field. Set on a table's own fields only. */ + isRequiredOnCreate?: boolean | null; + /** Whether a create may set this field. Set on a table's own fields only. */ + isWritableOnCreate?: boolean | null; + /** Whether an update may change this field. Set on a table's own fields only. */ + isWritableOnUpdate?: boolean | null; /** Final GraphQL field name */ name: string; type: MetaType; @@ -2740,7 +2820,7 @@ export interface MetaForeignKeyConstraint { referencedFields: string[]; referencedTable: string; } -/** i18n metadata for a table with @i18n tag */ +/** i18n metadata for a translatable table */ export interface MetaI18n { /** Fields that are translatable */ translatableFields: MetaI18nField[]; @@ -2755,7 +2835,7 @@ export interface MetaIndex { isUnique: boolean; name: string; } -/** Table inflection names */ +/** Type and field names generated for this table */ export interface MetaInflection { allRows: string; conditionType: string; @@ -2783,7 +2863,7 @@ export interface MetaQuery { one?: string | null; update?: string | null; } -/** Realtime metadata for a table with @realtime tag */ +/** Realtime metadata for a table with change subscriptions */ export interface MetaRealtime { /** The generated subscription field name (e.g. onPostChanged) */ subscriptionFieldName: string; @@ -2798,13 +2878,13 @@ export interface MetaRelations { } /** Provisioning scope metadata for a table */ export interface MetaScope { - /** SQL name of the entity table for entity scopes, else null */ + /** Name of the entity table for entity scopes, else null */ entityTable?: string | null; - /** Inflected scope key column (e.g. databaseId, orgId), null for global tiers */ + /** Field name of the scope key (e.g. databaseId, orgId), null for global tiers */ keyColumn?: string | null; /** Provisioning scope: 'platform', 'app', 'database', or an entity scope (e.g. 'org') */ scope: string; - /** Provenance of the scope metadata (always 'smartTag') */ + /** Where this scope metadata comes from */ source: string; /** Coarse bucket: 'global', 'database', or 'entity' */ tier: string; @@ -2822,17 +2902,17 @@ export interface MetaSearch { } /** Storage metadata for a table */ export interface MetaStorage { - /** GraphQL type name of the plane's buckets table */ + /** GraphQL type name of the paired buckets table */ bucketsType: string; /** Computed download-URL field on the files type; null on the buckets side */ downloadUrlField?: string | null; - /** GraphQL type name of the plane's files table */ + /** GraphQL type name of the paired files table */ filesType: string; /** Whether this table is a storage buckets table */ isBucketsTable: boolean; /** Whether this table is a storage files table */ isFilesTable: boolean; - /** The plane's GraphQL upload surface */ + /** Upload mutations and types for this storage */ upload: MetaStorageUpload; } /** Information about a unique constraint */ @@ -2847,6 +2927,15 @@ export interface MetaEnum { /** Allowed values for this enum */ values: string[]; } +/** How a field holds files */ +export interface MetaFileField { + /** GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise */ + filesType?: string | null; + /** Whether the field holds a list of files */ + isMultiple: boolean; + /** image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. */ + kind: string; +} /** Information about a PostgreSQL type */ export interface MetaType { /** Scalar serialization contract (null for plain scalars) */ @@ -2855,7 +2944,13 @@ export interface MetaType { hasDefault?: boolean | null; isArray: boolean; isNotNull?: boolean | null; + /** Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. */ + maxLength?: number | null; pgType: string; + /** Most significant digits a decimal number may hold. Null when unbounded. */ + precision?: number | null; + /** Digits a decimal number keeps after the decimal point. Null when unbounded. */ + scale?: number | null; subtype?: string | null; } /** Reference to a related table */ @@ -2874,6 +2969,8 @@ export interface MetaBelongsToRelation { fieldName?: string | null; isUnique: boolean; keys: MetaField[]; + /** Fields on the referenced table that keys point at, in the same order as keys */ + refKeys: MetaField[]; references: MetaRefTable; type?: string | null; } @@ -2883,6 +2980,8 @@ export interface MetaHasRelation { isUnique: boolean; keys: MetaField[]; referencedBy: MetaRefTable; + /** Fields on the related table that point at this table, in the same order as keys */ + remoteKeys: MetaField[]; type?: string | null; } /** A many-to-many relation via junction table */ @@ -2905,7 +3004,7 @@ export interface MetaSearchColumn { /** Column name (camelCase) */ name: string; } -/** Per-table search configuration from @searchConfig smart tag */ +/** Per-table search configuration */ export interface MetaSearchConfig { /** Exponential decay factor per day */ boostRecencyDecay?: number | null; @@ -2916,7 +3015,7 @@ export interface MetaSearchConfig { /** JSON-encoded per-adapter score weights */ weights?: string | null; } -/** The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from */ +/** The upload mutations and types for a storage table pair */ export interface MetaStorageUpload { /** Per-file input type inside the bulk input */ bulkFileInputType: string; @@ -2934,14 +3033,14 @@ export interface MetaStorageUpload { mutation: string; /** Payload type of the single upload mutation */ payloadType: string; - /** Whether the upload input requires ownerId (entity-keyed plane) */ + /** Whether the upload input requires ownerId */ requiresOwnerId: boolean; } -/** How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. */ +/** How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. */ export interface MetaScalarEncoding { /** For 'vector': declared length, else null. */ dimensions?: number | null; - /** For 'ltree': values are dot-separated path strings. */ + /** For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). */ dotPath?: boolean | null; /** For 'vector': element scalar (e.g. 'float'). */ elementType?: string | null; diff --git a/sdk/constructive-react/src/auth/types.ts b/sdk/constructive-react/src/auth/types.ts index 8660cb4629..8e9a469d74 100644 --- a/sdk/constructive-react/src/auth/types.ts +++ b/sdk/constructive-react/src/auth/types.ts @@ -7,6 +7,7 @@ export type Base64EncodedBinary = unknown; export type ConstructiveInternalTypeEmail = unknown; export type ConstructiveInternalTypeImage = unknown; export type ConstructiveInternalTypeOrigin = unknown; +export type FileVersion = unknown; export interface AuditLogAuth { actorId: string | null; createdAt: string | null; @@ -124,6 +125,8 @@ export interface User { displayNameTrgmSimilarity: number | null; id: string | null; profilePicture: ConstructiveInternalTypeImage | null; + profilePictureUrl: string | null; + profilePictureVersions: FileVersion[] | null; searchScore: number | null; searchTsv: string | null; searchTsvRank: number | null; diff --git a/sdk/constructive-react/src/compute/README.md b/sdk/constructive-react/src/compute/README.md index fb5eba2a8b..6b4ab2a270 100644 --- a/sdk/constructive-react/src/compute/README.md +++ b/sdk/constructive-react/src/compute/README.md @@ -10,7 +10,7 @@ - **Tables:** 123 - **Custom queries:** 2 -- **Custom mutations:** 62 +- **Custom mutations:** 63 **Generators:** ORM, React Query diff --git a/sdk/constructive-react/src/compute/hooks/README.md b/sdk/constructive-react/src/compute/hooks/README.md index f023257150..0af6452d0f 100644 --- a/sdk/constructive-react/src/compute/hooks/README.md +++ b/sdk/constructive-react/src/compute/hooks/README.md @@ -42,11 +42,6 @@ function App() { | `useCreateBuildStepMutation` | Mutation | Partitioned append-only step and test results of a build, keyed into its log object | | `useUpdateBuildStepMutation` | Mutation | Partitioned append-only step and test results of a build, keyed into its log object | | `useDeleteBuildStepMutation` | Mutation | Partitioned append-only step and test results of a build, keyed into its log object | -| `useBuilderBindingsQuery` | Query | Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST | -| `useBuilderBindingQuery` | Query | Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST | -| `useCreateBuilderBindingMutation` | Mutation | Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST | -| `useUpdateBuilderBindingMutation` | Mutation | Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST | -| `useDeleteBuilderBindingMutation` | Mutation | Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST | | `useContentPresetsQuery` | Query | Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store | | `useContentPresetQuery` | Query | Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store | | `useCreateContentPresetMutation` | Mutation | Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store | @@ -54,7 +49,6 @@ function App() { | `useDeleteContentPresetMutation` | Mutation | Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store | | `useDatabaseFunctionGraphsQuery` | Query | Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store | | `useDatabaseFunctionGraphQuery` | Query | Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store | -| `useCreateDatabaseFunctionGraphMutation` | Mutation | Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store | | `useUpdateDatabaseFunctionGraphMutation` | Mutation | Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store | | `useDeleteDatabaseFunctionGraphMutation` | Mutation | Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store | | `useDatabaseFunctionGraphExecutionCancelRequestsQuery` | Query | Requests to stop a graph execution; each insert settles it cancelled and tears down the Jobs its nodes dispatched | @@ -83,7 +77,6 @@ function App() { | `useUpdateDatabaseGraphCommitMutation` | Mutation | Commit history — each commit snapshots a tree root for a store | | `useDeleteDatabaseGraphCommitMutation` | Mutation | Commit history — each commit snapshots a tree root for a store | | `useDatabaseGraphGetAllTreeNodesQuery` | Query | List all databaseGraphGetAllTreeNodes | -| `useCreateDatabaseGraphGetAllTreeNodesRecordMutation` | Mutation | Create a databaseGraphGetAllTreeNodesRecord | | `useDatabaseGraphObjectsQuery` | Query | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | | `useDatabaseGraphObjectQuery` | Query | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | | `useCreateDatabaseGraphObjectMutation` | Mutation | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | @@ -141,7 +134,6 @@ function App() { | `useDeleteFunctionGraphCommitMutation` | Mutation | Commit history — each commit snapshots a tree root for a store | | `useFunctionGraphsQuery` | Query | Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store | | `useFunctionGraphQuery` | Query | Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store | -| `useCreateFunctionGraphMutation` | Mutation | Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store | | `useUpdateFunctionGraphMutation` | Mutation | Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store | | `useDeleteFunctionGraphMutation` | Mutation | Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store | | `useFunctionGraphExecutionCancelRequestsQuery` | Query | Requests to stop a graph execution; each insert settles it cancelled and tears down the Jobs its nodes dispatched | @@ -195,7 +187,6 @@ function App() { | `useUpdateFunctionScheduleMutation` | Mutation | Function schedules — user-facing cron schedules synced into the worker scheduler (app_jobs.scheduled_jobs) | | `useDeleteFunctionScheduleMutation` | Mutation | Function schedules — user-facing cron schedules synced into the worker scheduler (app_jobs.scheduled_jobs) | | `useGetAllTreeNodesQuery` | Query | List all getAllTreeNodes | -| `useCreateGetAllTreeNodesRecordMutation` | Mutation | Create a getAllTreeNodesRecord | | `useImagesQuery` | Query | Container image catalog: images available to run as functions, resources, and builds | | `useImageQuery` | Query | Container image catalog: images available to run as functions, resources, and builds | | `useCreateImageMutation` | Mutation | Container image catalog: images available to run as functions, resources, and builds | @@ -212,7 +203,6 @@ function App() { | `useUpdateInfraCommitMutation` | Mutation | Commit history — each commit snapshots a tree root for a store | | `useDeleteInfraCommitMutation` | Mutation | Commit history — each commit snapshots a tree root for a store | | `useInfraGetAllTreeNodesQuery` | Query | List all infraGetAllTreeNodes | -| `useCreateInfraGetAllTreeNodesRecordMutation` | Mutation | Create a infraGetAllTreeNodesRecord | | `useInfraObjectsQuery` | Query | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | | `useInfraObjectQuery` | Query | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | | `useCreateInfraObjectMutation` | Mutation | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | @@ -253,11 +243,6 @@ function App() { | `useCreatePlatformBuildStepMutation` | Mutation | Partitioned append-only step and test results of a build, keyed into its log object | | `useUpdatePlatformBuildStepMutation` | Mutation | Partitioned append-only step and test results of a build, keyed into its log object | | `useDeletePlatformBuildStepMutation` | Mutation | Partitioned append-only step and test results of a build, keyed into its log object | -| `usePlatformBuilderBindingsQuery` | Query | Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST | -| `usePlatformBuilderBindingQuery` | Query | Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST | -| `useCreatePlatformBuilderBindingMutation` | Mutation | Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST | -| `useUpdatePlatformBuilderBindingMutation` | Mutation | Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST | -| `useDeletePlatformBuilderBindingMutation` | Mutation | Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST | | `usePlatformFunctionApiBindingsQuery` | Query | Join table binding function definitions to API endpoints with per-binding alias and config | | `usePlatformFunctionApiBindingQuery` | Query | Join table binding function definitions to API endpoints with per-binding alias and config | | `useCreatePlatformFunctionApiBindingMutation` | Mutation | Join table binding function definitions to API endpoints with per-binding alias and config | @@ -319,7 +304,6 @@ function App() { | `useUpdatePlatformInfraCommitMutation` | Mutation | Commit history — each commit snapshots a tree root for a store | | `useDeletePlatformInfraCommitMutation` | Mutation | Commit history — each commit snapshots a tree root for a store | | `usePlatformInfraGetAllTreeNodesQuery` | Query | List all platformInfraGetAllTreeNodes | -| `useCreatePlatformInfraGetAllTreeNodesRecordMutation` | Mutation | Create a platformInfraGetAllTreeNodesRecord | | `usePlatformInfraObjectsQuery` | Query | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | | `usePlatformInfraObjectQuery` | Query | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | | `useCreatePlatformInfraObjectMutation` | Mutation | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | @@ -426,7 +410,6 @@ function App() { | `useUpdatePlatformResourceMutation` | Mutation | Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace | | `useDeletePlatformResourceMutation` | Mutation | Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace | | `usePlatformResourceDeclaredCapacitiesQuery` | Query | List all platformResourceDeclaredCapacities | -| `useCreatePlatformResourceDeclaredCapacityMutation` | Mutation | Create a platformResourceDeclaredCapacity | | `usePlatformResourceDefinitionsQuery` | Query | Resource definitions — templates for resource kinds declaring default spec and secret/config requirements | | `usePlatformResourceDefinitionQuery` | Query | Resource definitions — templates for resource kinds declaring default spec and secret/config requirements | | `useCreatePlatformResourceDefinitionMutation` | Mutation | Resource definitions — templates for resource kinds declaring default spec and secret/config requirements | @@ -443,7 +426,6 @@ function App() { | `useUpdatePlatformResourceInstallationMutation` | Mutation | Installed resource bundle ("release") — groups a set of resources; params are merkle-versioned in the scope's shared infra store for rollback | | `useDeletePlatformResourceInstallationMutation` | Mutation | Installed resource bundle ("release") — groups a set of resources; params are merkle-versioned in the scope's shared infra store for rollback | | `usePlatformResourceObservedStoragesQuery` | Query | List all platformResourceObservedStorages | -| `useCreatePlatformResourceObservedStorageMutation` | Mutation | Create a platformResourceObservedStorage | | `usePlatformResourceStatusChecksQuery` | Query | On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) | | `usePlatformResourceStatusCheckQuery` | Query | On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) | | `useCreatePlatformResourceStatusCheckMutation` | Mutation | On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) | @@ -460,16 +442,17 @@ function App() { | `useUpdatePlatformResourceUsageSummaryMutation` | Mutation | Resource usage summaries — runtime seconds, GB-seconds, and max gauges per (resource, namespace, day); resource_id-NULL rows are namespace-grain totals | | `useDeletePlatformResourceUsageSummaryMutation` | Mutation | Resource usage summaries — runtime seconds, GB-seconds, and max gauges per (resource, namespace, day); resource_id-NULL rows are namespace-grain totals | | `usePlatformResourceUtilizationsQuery` | Query | List all platformResourceUtilizations | -| `useCreatePlatformResourceUtilizationMutation` | Mutation | Create a platformResourceUtilization | | `usePlatformResourcesHealthsQuery` | Query | List all platformResourcesHealths | | `usePlatformResourcesHealthQuery` | Query | Get one platformResourcesHealth | -| `useCreatePlatformResourcesHealthMutation` | Mutation | Create a platformResourcesHealth | | `useUpdatePlatformResourcesHealthMutation` | Mutation | Update a platformResourcesHealth | | `useDeletePlatformResourcesHealthMutation` | Mutation | Delete a platformResourcesHealth | | `usePlatformResourcesRequirementsStatesQuery` | Query | List all platformResourcesRequirementsStates | -| `useCreatePlatformResourcesRequirementsStateMutation` | Mutation | Create a platformResourcesRequirementsState | | `usePlatformResourcesResolvedRequirementsQuery` | Query | List all platformResourcesResolvedRequirements | -| `useCreatePlatformResourcesResolvedRequirementMutation` | Mutation | Create a platformResourcesResolvedRequirement | +| `usePlatformServiceBindingsQuery` | Query | Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config | +| `usePlatformServiceBindingQuery` | Query | Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config | +| `useCreatePlatformServiceBindingMutation` | Mutation | Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config | +| `useUpdatePlatformServiceBindingMutation` | Mutation | Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config | +| `useDeletePlatformServiceBindingMutation` | Mutation | Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config | | `usePlatformWebhookEndpointsQuery` | Query | Webhook route authority: (host, path) -> function task_identifier invoked through the webhook channel, with provider, signing-secret reference, and replay window | | `usePlatformWebhookEndpointQuery` | Query | Webhook route authority: (host, path) -> function task_identifier invoked through the webhook channel, with provider, signing-secret reference, and replay window | | `useCreatePlatformWebhookEndpointMutation` | Mutation | Webhook route authority: (host, path) -> function task_identifier invoked through the webhook channel, with provider, signing-secret reference, and replay window | @@ -551,7 +534,6 @@ function App() { | `useUpdateResourceMutation` | Mutation | Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace | | `useDeleteResourceMutation` | Mutation | Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace | | `useResourceDeclaredCapacitiesQuery` | Query | List all resourceDeclaredCapacities | -| `useCreateResourceDeclaredCapacityMutation` | Mutation | Create a resourceDeclaredCapacity | | `useResourceDefinitionsQuery` | Query | Resource definitions — templates for resource kinds declaring default spec and secret/config requirements | | `useResourceDefinitionQuery` | Query | Resource definitions — templates for resource kinds declaring default spec and secret/config requirements | | `useCreateResourceDefinitionMutation` | Mutation | Resource definitions — templates for resource kinds declaring default spec and secret/config requirements | @@ -568,7 +550,6 @@ function App() { | `useUpdateResourceInstallationMutation` | Mutation | Installed resource bundle ("release") — groups a set of resources; params are merkle-versioned in the scope's shared infra store for rollback | | `useDeleteResourceInstallationMutation` | Mutation | Installed resource bundle ("release") — groups a set of resources; params are merkle-versioned in the scope's shared infra store for rollback | | `useResourceObservedStoragesQuery` | Query | List all resourceObservedStorages | -| `useCreateResourceObservedStorageMutation` | Mutation | Create a resourceObservedStorage | | `useResourceStatusChecksQuery` | Query | On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) | | `useResourceStatusCheckQuery` | Query | On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) | | `useCreateResourceStatusCheckMutation` | Mutation | On-demand resource status checks — diagnostic snapshots from the runtime (K8s status, conditions, log tails) | @@ -585,16 +566,17 @@ function App() { | `useUpdateResourceUsageSummaryMutation` | Mutation | Resource usage summaries — runtime seconds, GB-seconds, and max gauges per (resource, namespace, day); resource_id-NULL rows are namespace-grain totals | | `useDeleteResourceUsageSummaryMutation` | Mutation | Resource usage summaries — runtime seconds, GB-seconds, and max gauges per (resource, namespace, day); resource_id-NULL rows are namespace-grain totals | | `useResourceUtilizationsQuery` | Query | List all resourceUtilizations | -| `useCreateResourceUtilizationMutation` | Mutation | Create a resourceUtilization | | `useResourcesHealthsQuery` | Query | List all resourcesHealths | | `useResourcesHealthQuery` | Query | Get one resourcesHealth | -| `useCreateResourcesHealthMutation` | Mutation | Create a resourcesHealth | | `useUpdateResourcesHealthMutation` | Mutation | Update a resourcesHealth | | `useDeleteResourcesHealthMutation` | Mutation | Delete a resourcesHealth | | `useResourcesRequirementsStatesQuery` | Query | List all resourcesRequirementsStates | -| `useCreateResourcesRequirementsStateMutation` | Mutation | Create a resourcesRequirementsState | | `useResourcesResolvedRequirementsQuery` | Query | List all resourcesResolvedRequirements | -| `useCreateResourcesResolvedRequirementMutation` | Mutation | Create a resourcesResolvedRequirement | +| `useServiceBindingsQuery` | Query | Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config | +| `useServiceBindingQuery` | Query | Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config | +| `useCreateServiceBindingMutation` | Mutation | Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config | +| `useUpdateServiceBindingMutation` | Mutation | Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config | +| `useDeleteServiceBindingMutation` | Mutation | Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config | | `useWebhookEndpointsQuery` | Query | Webhook route authority: (host, path) -> function task_identifier invoked through the webhook channel, with provider, signing-secret reference, and replay window | | `useWebhookEndpointQuery` | Query | Webhook route authority: (host, path) -> function task_identifier invoked through the webhook channel, with provider, signing-secret reference, and replay window | | `useCreateWebhookEndpointMutation` | Mutation | Webhook route authority: (host, path) -> function task_identifier invoked through the webhook channel, with provider, signing-secret reference, and replay window | @@ -613,6 +595,7 @@ function App() { | `useAddNodeAndSaveMutation` | Mutation | addNodeAndSave | | `useApproveNodeMutation` | Mutation | approveNode | | `useCopyGraphMutation` | Mutation | copyGraph | +| `useCreateFunctionGraphMutation` | Mutation | createFunctionGraph | | `useDatabaseAddEdgeMutation` | Mutation | databaseAddEdge | | `useDatabaseAddEdgeAndSaveMutation` | Mutation | databaseAddEdgeAndSave | | `useDatabaseAddNodeMutation` | Mutation | databaseAddNode | @@ -682,20 +665,20 @@ errors. | ```typescript // List all builds const { data, isLoading } = useBuildsQuery({ - selection: { fields: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, databaseId: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }, + selection: { fields: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, databaseId: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, logsUrl: true, logsVersions: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }, }); // Get one build const { data: item } = useBuildQuery({ id: '', - selection: { fields: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, databaseId: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }, + selection: { fields: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, databaseId: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, logsUrl: true, logsVersions: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }, }); // Create a build const { mutate: create } = useCreateBuildMutation({ selection: { fields: { id: true } }, }); -create({ actorId: '', attempt: '', commitSha: '', conclusion: '', createdByPrincipal: '', databaseId: '', eventId: '', finishedAt: '', imageRef: '', jobId: '', logs: '', matrixKey: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }); +create({ actorId: '', attempt: '', commitSha: '', conclusion: '', createdByPrincipal: '', databaseId: '', eventId: '', finishedAt: '', imageRef: '', jobId: '', logs: '', logsUrl: '', logsVersions: '', matrixKey: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }); ``` ### BuildStep @@ -719,27 +702,6 @@ const { mutate: create } = useCreateBuildStepMutation({ create({ buildId: '', createdByPrincipal: '', databaseId: '', exitCode: '', finishedAt: '', kind: '', logBytes: '', logOffset: '', name: '', parentSeq: '', recordedAt: '', seq: '', startedAt: '', status: '', summary: '' }); ``` -### BuilderBinding - -```typescript -// List all builderBindings -const { data, isLoading } = useBuilderBindingsQuery({ - selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, -}); - -// Get one builderBinding -const { data: item } = useBuilderBindingQuery({ - id: '', - selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, -}); - -// Create a builderBinding -const { mutate: create } = useCreateBuilderBindingMutation({ - selection: { fields: { id: true } }, -}); -create({ createdBy: '', createdByPrincipal: '', databaseId: '', installationId: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }); -``` - ### ContentPreset ```typescript @@ -775,11 +737,6 @@ const { data: item } = useDatabaseFunctionGraphQuery({ selection: { fields: { context: true, createdAt: true, createdBy: true, databaseId: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, storeId: true, updatedAt: true, validationErrors: true } }, }); -// Create a databaseFunctionGraph -const { mutate: create } = useCreateDatabaseFunctionGraphMutation({ - selection: { fields: { id: true } }, -}); -create({ context: '', createdBy: '', databaseId: '', definitionsCommitId: '', description: '', isValid: '', name: '', storeId: '', validationErrors: '' }); ``` ### DatabaseFunctionGraphExecutionCancelRequest @@ -895,11 +852,6 @@ const { data, isLoading } = useDatabaseGraphGetAllTreeNodesQuery({ selection: { fields: { data: true, path: true } }, }); -// Create a databaseGraphGetAllTreeNodesRecord -const { mutate: create } = useCreateDatabaseGraphGetAllTreeNodesRecordMutation({ - selection: { fields: { id: true } }, -}); -create({ data: '', path: '' }); ``` ### DatabaseGraphObject @@ -1147,11 +1099,6 @@ const { data: item } = useFunctionGraphQuery({ selection: { fields: { context: true, createdAt: true, createdBy: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, scopeId: true, storeId: true, updatedAt: true, validationErrors: true } }, }); -// Create a functionGraph -const { mutate: create } = useCreateFunctionGraphMutation({ - selection: { fields: { id: true } }, -}); -create({ context: '', createdBy: '', definitionsCommitId: '', description: '', isValid: '', name: '', scopeId: '', storeId: '', validationErrors: '' }); ``` ### FunctionGraphExecutionCancelRequest @@ -1372,11 +1319,6 @@ const { data, isLoading } = useGetAllTreeNodesQuery({ selection: { fields: { data: true, path: true } }, }); -// Create a getAllTreeNodesRecord -const { mutate: create } = useCreateGetAllTreeNodesRecordMutation({ - selection: { fields: { id: true } }, -}); -create({ data: '', path: '' }); ``` ### Image @@ -1450,11 +1392,6 @@ const { data, isLoading } = useInfraGetAllTreeNodesQuery({ selection: { fields: { data: true, path: true } }, }); -// Create a infraGetAllTreeNodesRecord -const { mutate: create } = useCreateInfraGetAllTreeNodesRecordMutation({ - selection: { fields: { id: true } }, -}); -create({ data: '', path: '' }); ``` ### InfraObject @@ -1525,20 +1462,20 @@ create({ databaseId: '', hash: '', name: '' }); ```typescript // List all integrationProviders const { data, isLoading } = useIntegrationProvidersQuery({ - selection: { fields: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, name: true, requiredConfigs: true, requiredSecrets: true, slug: true, updatedAt: true } }, + selection: { fields: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, logoUrl: true, logoVersions: true, name: true, requiredConfigs: true, requiredSecrets: true, slug: true, updatedAt: true } }, }); // Get one integrationProvider const { data: item } = useIntegrationProviderQuery({ id: '', - selection: { fields: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, name: true, requiredConfigs: true, requiredSecrets: true, slug: true, updatedAt: true } }, + selection: { fields: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, logoUrl: true, logoVersions: true, name: true, requiredConfigs: true, requiredSecrets: true, slug: true, updatedAt: true } }, }); // Create a integrationProvider const { mutate: create } = useCreateIntegrationProviderMutation({ selection: { fields: { id: true } }, }); -create({ brand: '', category: '', description: '', icon: '', logo: '', name: '', requiredConfigs: '', requiredSecrets: '', slug: '' }); +create({ brand: '', category: '', description: '', icon: '', logo: '', logoUrl: '', logoVersions: '', name: '', requiredConfigs: '', requiredSecrets: '', slug: '' }); ``` ### Namespace @@ -1588,20 +1525,20 @@ create({ actorId: '', databaseId: '', eventType: '', message ```typescript // List all platformBuilds const { data, isLoading } = usePlatformBuildsQuery({ - selection: { fields: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }, + selection: { fields: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, logsUrl: true, logsVersions: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }, }); // Get one platformBuild const { data: item } = usePlatformBuildQuery({ id: '', - selection: { fields: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }, + selection: { fields: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, logsUrl: true, logsVersions: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }, }); // Create a platformBuild const { mutate: create } = useCreatePlatformBuildMutation({ selection: { fields: { id: true } }, }); -create({ actorId: '', attempt: '', commitSha: '', conclusion: '', createdByPrincipal: '', eventId: '', finishedAt: '', imageRef: '', jobId: '', logs: '', matrixKey: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }); +create({ actorId: '', attempt: '', commitSha: '', conclusion: '', createdByPrincipal: '', eventId: '', finishedAt: '', imageRef: '', jobId: '', logs: '', logsUrl: '', logsVersions: '', matrixKey: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }); ``` ### PlatformBuildStep @@ -1625,27 +1562,6 @@ const { mutate: create } = useCreatePlatformBuildStepMutation({ create({ buildId: '', createdByPrincipal: '', exitCode: '', finishedAt: '', kind: '', logBytes: '', logOffset: '', name: '', parentSeq: '', recordedAt: '', seq: '', startedAt: '', status: '', summary: '' }); ``` -### PlatformBuilderBinding - -```typescript -// List all platformBuilderBindings -const { data, isLoading } = usePlatformBuilderBindingsQuery({ - selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, -}); - -// Get one platformBuilderBinding -const { data: item } = usePlatformBuilderBindingQuery({ - id: '', - selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, -}); - -// Create a platformBuilderBinding -const { mutate: create } = useCreatePlatformBuilderBindingMutation({ - selection: { fields: { id: true } }, -}); -create({ createdBy: '', createdByPrincipal: '', installationId: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }); -``` - ### PlatformFunctionApiBinding ```typescript @@ -1906,11 +1822,6 @@ const { data, isLoading } = usePlatformInfraGetAllTreeNodesQuery({ selection: { fields: { data: true, path: true } }, }); -// Create a platformInfraGetAllTreeNodesRecord -const { mutate: create } = useCreatePlatformInfraGetAllTreeNodesRecordMutation({ - selection: { fields: { id: true } }, -}); -create({ data: '', path: '' }); ``` ### PlatformInfraObject @@ -2065,20 +1976,20 @@ create({ actorId: '', eventType: '', message: '', metadata ```typescript // List all platformProposalComments const { data, isLoading } = usePlatformProposalCommentsQuery({ - selection: { fields: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { actorId: true, attachments: true, attachmentsUrl: true, attachmentsVersions: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Get one platformProposalComment const { data: item } = usePlatformProposalCommentQuery({ id: '', - selection: { fields: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { actorId: true, attachments: true, attachmentsUrl: true, attachmentsVersions: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Create a platformProposalComment const { mutate: create } = useCreatePlatformProposalCommentMutation({ selection: { fields: { id: true } }, }); -create({ actorId: '', attachments: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }); +create({ actorId: '', attachments: '', attachmentsUrl: '', attachmentsVersions: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }); ``` ### PlatformProposal @@ -2086,20 +1997,20 @@ create({ actorId: '', attachments: '', body: '', bodyTrgmS ```typescript // List all platformProposals const { data, isLoading } = usePlatformProposalsQuery({ - selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Get one platformProposal const { data: item } = usePlatformProposalQuery({ id: '', - selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Create a platformProposal const { mutate: create } = useCreatePlatformProposalMutation({ selection: { fields: { id: true } }, }); -create({ actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', decidedAt: '', dueAt: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }); +create({ actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', decidedAt: '', dueAt: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }); ``` ### PlatformProposalFileView @@ -2254,20 +2165,20 @@ create({ actions: '', createdByPrincipal: '', expiresAt: '', - selection: { fields: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }, + selection: { fields: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }, }); // Create a platformRepository const { mutate: create } = useCreatePlatformRepositoryMutation({ selection: { fields: { id: true } }, }); -create({ cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }); +create({ cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }); ``` ### PlatformRepositoryEvent @@ -2362,11 +2273,6 @@ const { data, isLoading } = usePlatformResourceDeclaredCapacitiesQuery({ selection: { fields: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true, storageTotalBytes: true } }, }); -// Create a platformResourceDeclaredCapacity -const { mutate: create } = useCreatePlatformResourceDeclaredCapacityMutation({ - selection: { fields: { id: true } }, -}); -create({ cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '', storageTotalBytes: '' }); ``` ### PlatformResourceDefinition @@ -2440,11 +2346,6 @@ const { data, isLoading } = usePlatformResourceObservedStoragesQuery({ selection: { fields: { capacity: true, capacityBytes: true, claimName: true, declaredStorageClass: true, declaredStorageSizeBytes: true, declaredStorageTotalBytes: true, installationId: true, isBound: true, kind: true, namespaceId: true, phase: true, requested: true, requestedBytes: true, resourceId: true, resourceStatus: true, slug: true, storageClass: true, storageName: true } }, }); -// Create a platformResourceObservedStorage -const { mutate: create } = useCreatePlatformResourceObservedStorageMutation({ - selection: { fields: { id: true } }, -}); -create({ capacity: '', capacityBytes: '', claimName: '', declaredStorageClass: '', declaredStorageSizeBytes: '', declaredStorageTotalBytes: '', installationId: '', isBound: '', kind: '', namespaceId: '', phase: '', requested: '', requestedBytes: '', resourceId: '', resourceStatus: '', slug: '', storageClass: '', storageName: '' }); ``` ### PlatformResourceStatusCheck @@ -2518,11 +2419,6 @@ const { data, isLoading } = usePlatformResourceUtilizationsQuery({ selection: { fields: { avgMemoryBytes: true, cpuLimitMillicores: true, cpuPeakUtilization: true, cpuRequestHeadroomMillicores: true, cpuRequestMillicores: true, date: true, gbSeconds: true, kind: true, maxCpuMillicores: true, maxMemoryBytes: true, memoryLimitBytes: true, memoryPeakUtilization: true, memoryRequestBytes: true, memoryRequestHeadroomBytes: true, namespaceId: true, replicas: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }, }); -// Create a platformResourceUtilization -const { mutate: create } = useCreatePlatformResourceUtilizationMutation({ - selection: { fields: { id: true } }, -}); -create({ avgMemoryBytes: '', cpuLimitMillicores: '', cpuPeakUtilization: '', cpuRequestHeadroomMillicores: '', cpuRequestMillicores: '', date: '', gbSeconds: '', kind: '', maxCpuMillicores: '', maxMemoryBytes: '', memoryLimitBytes: '', memoryPeakUtilization: '', memoryRequestBytes: '', memoryRequestHeadroomBytes: '', namespaceId: '', replicas: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }); ``` ### PlatformResourcesHealth @@ -2539,11 +2435,6 @@ const { data: item } = usePlatformResourcesHealthQuery({ selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); -// Create a platformResourcesHealth -const { mutate: create } = useCreatePlatformResourcesHealthMutation({ - selection: { fields: { id: true } }, -}); -create({ annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }); ``` ### PlatformResourcesRequirementsState @@ -2554,11 +2445,6 @@ const { data, isLoading } = usePlatformResourcesRequirementsStatesQuery({ selection: { fields: { configHash: true, configObjectName: true, requirementsHash: true, resourceId: true, secretsHash: true, secretsObjectName: true, slug: true } }, }); -// Create a platformResourcesRequirementsState -const { mutate: create } = useCreatePlatformResourcesRequirementsStateMutation({ - selection: { fields: { id: true } }, -}); -create({ configHash: '', configObjectName: '', requirementsHash: '', resourceId: '', secretsHash: '', secretsObjectName: '', slug: '' }); ``` ### PlatformResourcesResolvedRequirement @@ -2569,11 +2455,27 @@ const { data, isLoading } = usePlatformResourcesResolvedRequirementsQuery({ selection: { fields: { atomId: true, configObjectName: true, name: true, namespaceId: true, present: true, realm: true, required: true, requirementKind: true, resourceId: true, secretsObjectName: true, slug: true } }, }); -// Create a platformResourcesResolvedRequirement -const { mutate: create } = useCreatePlatformResourcesResolvedRequirementMutation({ +``` + +### PlatformServiceBinding + +```typescript +// List all platformServiceBindings +const { data, isLoading } = usePlatformServiceBindingsQuery({ + selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, installationScope: true, kind: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); + +// Get one platformServiceBinding +const { data: item } = usePlatformServiceBindingQuery({ + id: '', + selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, installationScope: true, kind: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); + +// Create a platformServiceBinding +const { mutate: create } = useCreatePlatformServiceBindingMutation({ selection: { fields: { id: true } }, }); -create({ atomId: '', configObjectName: '', name: '', namespaceId: '', present: '', realm: '', required: '', requirementKind: '', resourceId: '', secretsObjectName: '', slug: '' }); +create({ createdBy: '', createdByPrincipal: '', installationId: '', installationScope: '', kind: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }); ``` ### PlatformWebhookEndpoint @@ -2623,20 +2525,20 @@ create({ endpointId: '', error: '', externalEventId: '', i ```typescript // List all proposalComments const { data, isLoading } = useProposalCommentsQuery({ - selection: { fields: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { actorId: true, attachments: true, attachmentsUrl: true, attachmentsVersions: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Get one proposalComment const { data: item } = useProposalCommentQuery({ id: '', - selection: { fields: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { actorId: true, attachments: true, attachmentsUrl: true, attachmentsVersions: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Create a proposalComment const { mutate: create } = useCreateProposalCommentMutation({ selection: { fields: { id: true } }, }); -create({ actorId: '', attachments: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }); +create({ actorId: '', attachments: '', attachmentsUrl: '', attachmentsVersions: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }); ``` ### Proposal @@ -2644,20 +2546,20 @@ create({ actorId: '', attachments: '', body: '', bodyTrgmS ```typescript // List all proposals const { data, isLoading } = useProposalsQuery({ - selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Get one proposal const { data: item } = useProposalQuery({ id: '', - selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, + selection: { fields: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); // Create a proposal const { mutate: create } = useCreateProposalMutation({ selection: { fields: { id: true } }, }); -create({ actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', decidedAt: '', dueAt: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }); +create({ actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', decidedAt: '', dueAt: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }); ``` ### ProposalFileView @@ -2812,20 +2714,20 @@ create({ actions: '', createdByPrincipal: '', databaseId: '' ```typescript // List all repositories const { data, isLoading } = useRepositoriesQuery({ - selection: { fields: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }, + selection: { fields: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }, }); // Get one repository const { data: item } = useRepositoryQuery({ id: '', - selection: { fields: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }, + selection: { fields: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }, }); // Create a repository const { mutate: create } = useCreateRepositoryMutation({ selection: { fields: { id: true } }, }); -create({ cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }); +create({ cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }); ``` ### RepositoryEvent @@ -2920,11 +2822,6 @@ const { data, isLoading } = useResourceDeclaredCapacitiesQuery({ selection: { fields: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true, storageTotalBytes: true } }, }); -// Create a resourceDeclaredCapacity -const { mutate: create } = useCreateResourceDeclaredCapacityMutation({ - selection: { fields: { id: true } }, -}); -create({ cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '', storageTotalBytes: '' }); ``` ### ResourceDefinition @@ -2998,11 +2895,6 @@ const { data, isLoading } = useResourceObservedStoragesQuery({ selection: { fields: { capacity: true, capacityBytes: true, claimName: true, declaredStorageClass: true, declaredStorageSizeBytes: true, declaredStorageTotalBytes: true, installationId: true, isBound: true, kind: true, namespaceId: true, phase: true, requested: true, requestedBytes: true, resourceId: true, resourceStatus: true, slug: true, storageClass: true, storageName: true } }, }); -// Create a resourceObservedStorage -const { mutate: create } = useCreateResourceObservedStorageMutation({ - selection: { fields: { id: true } }, -}); -create({ capacity: '', capacityBytes: '', claimName: '', declaredStorageClass: '', declaredStorageSizeBytes: '', declaredStorageTotalBytes: '', installationId: '', isBound: '', kind: '', namespaceId: '', phase: '', requested: '', requestedBytes: '', resourceId: '', resourceStatus: '', slug: '', storageClass: '', storageName: '' }); ``` ### ResourceStatusCheck @@ -3076,11 +2968,6 @@ const { data, isLoading } = useResourceUtilizationsQuery({ selection: { fields: { avgMemoryBytes: true, cpuLimitMillicores: true, cpuPeakUtilization: true, cpuRequestHeadroomMillicores: true, cpuRequestMillicores: true, date: true, gbSeconds: true, kind: true, maxCpuMillicores: true, maxMemoryBytes: true, memoryLimitBytes: true, memoryPeakUtilization: true, memoryRequestBytes: true, memoryRequestHeadroomBytes: true, namespaceId: true, replicas: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }, }); -// Create a resourceUtilization -const { mutate: create } = useCreateResourceUtilizationMutation({ - selection: { fields: { id: true } }, -}); -create({ avgMemoryBytes: '', cpuLimitMillicores: '', cpuPeakUtilization: '', cpuRequestHeadroomMillicores: '', cpuRequestMillicores: '', date: '', gbSeconds: '', kind: '', maxCpuMillicores: '', maxMemoryBytes: '', memoryLimitBytes: '', memoryPeakUtilization: '', memoryRequestBytes: '', memoryRequestHeadroomBytes: '', namespaceId: '', replicas: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }); ``` ### ResourcesHealth @@ -3097,11 +2984,6 @@ const { data: item } = useResourcesHealthQuery({ selection: { fields: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, }); -// Create a resourcesHealth -const { mutate: create } = useCreateResourcesHealthMutation({ - selection: { fields: { id: true } }, -}); -create({ annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }); ``` ### ResourcesRequirementsState @@ -3112,11 +2994,6 @@ const { data, isLoading } = useResourcesRequirementsStatesQuery({ selection: { fields: { configHash: true, configObjectName: true, requirementsHash: true, resourceId: true, secretsHash: true, secretsObjectName: true, slug: true } }, }); -// Create a resourcesRequirementsState -const { mutate: create } = useCreateResourcesRequirementsStateMutation({ - selection: { fields: { id: true } }, -}); -create({ configHash: '', configObjectName: '', requirementsHash: '', resourceId: '', secretsHash: '', secretsObjectName: '', slug: '' }); ``` ### ResourcesResolvedRequirement @@ -3127,11 +3004,27 @@ const { data, isLoading } = useResourcesResolvedRequirementsQuery({ selection: { fields: { atomId: true, configObjectName: true, name: true, namespaceId: true, present: true, realm: true, required: true, requirementKind: true, resourceId: true, secretsObjectName: true, slug: true } }, }); -// Create a resourcesResolvedRequirement -const { mutate: create } = useCreateResourcesResolvedRequirementMutation({ +``` + +### ServiceBinding + +```typescript +// List all serviceBindings +const { data, isLoading } = useServiceBindingsQuery({ + selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, installationScope: true, kind: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); + +// Get one serviceBinding +const { data: item } = useServiceBindingQuery({ + id: '', + selection: { fields: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, installationScope: true, kind: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }, +}); + +// Create a serviceBinding +const { mutate: create } = useCreateServiceBindingMutation({ selection: { fields: { id: true } }, }); -create({ atomId: '', configObjectName: '', name: '', namespaceId: '', present: '', realm: '', required: '', requirementKind: '', resourceId: '', secretsObjectName: '', slug: '' }); +create({ createdBy: '', createdByPrincipal: '', databaseId: '', installationId: '', installationScope: '', kind: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }); ``` ### WebhookEndpoint @@ -3266,6 +3159,17 @@ copyGraph |----------|------| | `input` | CopyGraphInput (required) | +### `useCreateFunctionGraphMutation` + +createFunctionGraph + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CreateFunctionGraphInput (required) | + ### `useDatabaseAddEdgeMutation` databaseAddEdge diff --git a/sdk/constructive-react/src/compute/hooks/index.ts b/sdk/constructive-react/src/compute/hooks/index.ts index bf82de3c32..1a18ecdbfd 100644 --- a/sdk/constructive-react/src/compute/hooks/index.ts +++ b/sdk/constructive-react/src/compute/hooks/index.ts @@ -2,7 +2,7 @@ * GraphQL SDK * @generated by @constructive-io/graphql-codegen * - * Tables: Build, BuildStep, BuilderBinding, ContentPreset, DatabaseFunctionGraph, DatabaseFunctionGraphExecutionCancelRequest, DatabaseFunctionGraphExecution, DatabaseFunctionGraphExecutionNodeState, DatabaseFunctionGraphExecutionOutput, DatabaseGraphCommit, DatabaseGraphGetAllTreeNodesRecord, DatabaseGraphObject, DatabaseGraphRef, DatabaseGraphStore, DbPreset, FunctionApiBinding, FunctionCapabilityBinding, FunctionDefinition, FunctionDeployment, FunctionDeploymentEvent, FunctionExecutionLog, FunctionGraphCommit, FunctionGraph, FunctionGraphExecutionCancelRequest, FunctionGraphExecution, FunctionGraphExecutionNodeState, FunctionGraphExecutionOutput, FunctionGraphObject, FunctionGraphRef, FunctionGraphStore, FunctionInvocationAttempt, FunctionInvocation, FunctionSchedule, GetAllTreeNodesRecord, Image, ImageGrant, InfraCommit, InfraGetAllTreeNodesRecord, InfraObject, InfraRef, InfraStore, IntegrationProvider, Namespace, NamespaceEvent, PlatformBuild, PlatformBuildStep, PlatformBuilderBinding, PlatformFunctionApiBinding, PlatformFunctionCapabilityBinding, PlatformFunctionDefinition, PlatformFunctionDeployment, PlatformFunctionDeploymentEvent, PlatformFunctionExecutionLog, PlatformFunctionInvocationAttempt, PlatformFunctionInvocation, PlatformFunctionSchedule, PlatformImage, PlatformImageGrant, PlatformInfraCommit, PlatformInfraGetAllTreeNodesRecord, PlatformInfraObject, PlatformInfraRef, PlatformInfraStore, PlatformK8sResourceKind, PlatformK8sSpecRule, PlatformNamespace, PlatformNamespaceEvent, PlatformProposalComment, PlatformProposal, PlatformProposalFileView, PlatformProposalReaction, PlatformProposalReview, PlatformProposalsChunk, PlatformRegistryBinding, PlatformRegistry, PlatformRegistryGrant, PlatformRepository, PlatformRepositoryEvent, PlatformRepositoryRequiredCheck, PlatformRepositoryWorkflow, PlatformResource, PlatformResourceDeclaredCapacity, PlatformResourceDefinition, PlatformResourceEvent, PlatformResourceInstallation, PlatformResourceObservedStorage, PlatformResourceStatusCheck, PlatformResourceUsageLog, PlatformResourceUsageSummary, PlatformResourceUtilization, PlatformResourcesHealth, PlatformResourcesRequirementsState, PlatformResourcesResolvedRequirement, PlatformWebhookEndpoint, PlatformWebhookEvent, ProposalComment, Proposal, ProposalFileView, ProposalReaction, ProposalReview, ProposalsChunk, RegistryBinding, Registry, RegistryGrant, Repository, RepositoryEvent, RepositoryRequiredCheck, RepositoryWorkflow, Resource, ResourceDeclaredCapacity, ResourceDefinition, ResourceEvent, ResourceInstallation, ResourceObservedStorage, ResourceStatusCheck, ResourceUsageLog, ResourceUsageSummary, ResourceUtilization, ResourcesHealth, ResourcesRequirementsState, ResourcesResolvedRequirement, WebhookEndpoint, WebhookEvent + * Tables: Build, BuildStep, ContentPreset, DatabaseFunctionGraph, DatabaseFunctionGraphExecutionCancelRequest, DatabaseFunctionGraphExecution, DatabaseFunctionGraphExecutionNodeState, DatabaseFunctionGraphExecutionOutput, DatabaseGraphCommit, DatabaseGraphGetAllTreeNodesRecord, DatabaseGraphObject, DatabaseGraphRef, DatabaseGraphStore, DbPreset, FunctionApiBinding, FunctionCapabilityBinding, FunctionDefinition, FunctionDeployment, FunctionDeploymentEvent, FunctionExecutionLog, FunctionGraphCommit, FunctionGraph, FunctionGraphExecutionCancelRequest, FunctionGraphExecution, FunctionGraphExecutionNodeState, FunctionGraphExecutionOutput, FunctionGraphObject, FunctionGraphRef, FunctionGraphStore, FunctionInvocationAttempt, FunctionInvocation, FunctionSchedule, GetAllTreeNodesRecord, Image, ImageGrant, InfraCommit, InfraGetAllTreeNodesRecord, InfraObject, InfraRef, InfraStore, IntegrationProvider, Namespace, NamespaceEvent, PlatformBuild, PlatformBuildStep, PlatformFunctionApiBinding, PlatformFunctionCapabilityBinding, PlatformFunctionDefinition, PlatformFunctionDeployment, PlatformFunctionDeploymentEvent, PlatformFunctionExecutionLog, PlatformFunctionInvocationAttempt, PlatformFunctionInvocation, PlatformFunctionSchedule, PlatformImage, PlatformImageGrant, PlatformInfraCommit, PlatformInfraGetAllTreeNodesRecord, PlatformInfraObject, PlatformInfraRef, PlatformInfraStore, PlatformK8sResourceKind, PlatformK8sSpecRule, PlatformNamespace, PlatformNamespaceEvent, PlatformProposalComment, PlatformProposal, PlatformProposalFileView, PlatformProposalReaction, PlatformProposalReview, PlatformProposalsChunk, PlatformRegistryBinding, PlatformRegistry, PlatformRegistryGrant, PlatformRepository, PlatformRepositoryEvent, PlatformRepositoryRequiredCheck, PlatformRepositoryWorkflow, PlatformResource, PlatformResourceDeclaredCapacity, PlatformResourceDefinition, PlatformResourceEvent, PlatformResourceInstallation, PlatformResourceObservedStorage, PlatformResourceStatusCheck, PlatformResourceUsageLog, PlatformResourceUsageSummary, PlatformResourceUtilization, PlatformResourcesHealth, PlatformResourcesRequirementsState, PlatformResourcesResolvedRequirement, PlatformServiceBinding, PlatformWebhookEndpoint, PlatformWebhookEvent, ProposalComment, Proposal, ProposalFileView, ProposalReaction, ProposalReview, ProposalsChunk, RegistryBinding, Registry, RegistryGrant, Repository, RepositoryEvent, RepositoryRequiredCheck, RepositoryWorkflow, Resource, ResourceDeclaredCapacity, ResourceDefinition, ResourceEvent, ResourceInstallation, ResourceObservedStorage, ResourceStatusCheck, ResourceUsageLog, ResourceUsageSummary, ResourceUtilization, ResourcesHealth, ResourcesRequirementsState, ResourcesResolvedRequirement, ServiceBinding, WebhookEndpoint, WebhookEvent * * Usage: * diff --git a/sdk/constructive-react/src/compute/hooks/invalidation.ts b/sdk/constructive-react/src/compute/hooks/invalidation.ts index f54368135f..8ddf2be8d8 100644 --- a/sdk/constructive-react/src/compute/hooks/invalidation.ts +++ b/sdk/constructive-react/src/compute/hooks/invalidation.ts @@ -17,7 +17,6 @@ import type { QueryClient } from '@tanstack/react-query'; import { buildKeys, buildStepKeys, - builderBindingKeys, contentPresetKeys, databaseFunctionGraphKeys, databaseFunctionGraphExecutionCancelRequestKeys, @@ -61,7 +60,6 @@ import { namespaceEventKeys, platformBuildKeys, platformBuildStepKeys, - platformBuilderBindingKeys, platformFunctionApiBindingKeys, platformFunctionCapabilityBindingKeys, platformFunctionDefinitionKeys, @@ -108,6 +106,7 @@ import { platformResourcesHealthKeys, platformResourcesRequirementsStateKeys, platformResourcesResolvedRequirementKeys, + platformServiceBindingKeys, platformWebhookEndpointKeys, platformWebhookEventKeys, proposalCommentKeys, @@ -136,6 +135,7 @@ import { resourcesHealthKeys, resourcesRequirementsStateKeys, resourcesResolvedRequirementKeys, + serviceBindingKeys, webhookEndpointKeys, webhookEventKeys, } from './query-keys'; @@ -190,23 +190,6 @@ export const invalidate = { queryKey: buildStepKeys.detail(id), }), }, - /** Invalidate builderBinding queries */ builderBinding: { - /** Invalidate all builderBinding queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: builderBindingKeys.all, - }), - /** Invalidate builderBinding list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: builderBindingKeys.lists(), - }), - /** Invalidate a specific builderBinding */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: builderBindingKeys.detail(id), - }), - }, /** Invalidate contentPreset queries */ contentPreset: { /** Invalidate all contentPreset queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -957,23 +940,6 @@ export const invalidate = { queryKey: platformBuildStepKeys.detail(id), }), }, - /** Invalidate platformBuilderBinding queries */ platformBuilderBinding: { - /** Invalidate all platformBuilderBinding queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: platformBuilderBindingKeys.all, - }), - /** Invalidate platformBuilderBinding list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: platformBuilderBindingKeys.lists(), - }), - /** Invalidate a specific platformBuilderBinding */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: platformBuilderBindingKeys.detail(id), - }), - }, /** Invalidate platformFunctionApiBinding queries */ platformFunctionApiBinding: { /** Invalidate all platformFunctionApiBinding queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1787,6 +1753,23 @@ export const invalidate = { queryKey: platformResourcesResolvedRequirementKeys.detail(id), }), }, + /** Invalidate platformServiceBinding queries */ platformServiceBinding: { + /** Invalidate all platformServiceBinding queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformServiceBindingKeys.all, + }), + /** Invalidate platformServiceBinding list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: platformServiceBindingKeys.lists(), + }), + /** Invalidate a specific platformServiceBinding */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: platformServiceBindingKeys.detail(id), + }), + }, /** Invalidate platformWebhookEndpoint queries */ platformWebhookEndpoint: { /** Invalidate all platformWebhookEndpoint queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -2254,6 +2237,23 @@ export const invalidate = { queryKey: resourcesResolvedRequirementKeys.detail(id), }), }, + /** Invalidate serviceBinding queries */ serviceBinding: { + /** Invalidate all serviceBinding queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: serviceBindingKeys.all, + }), + /** Invalidate serviceBinding list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: serviceBindingKeys.lists(), + }), + /** Invalidate a specific serviceBinding */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: serviceBindingKeys.detail(id), + }), + }, /** Invalidate webhookEndpoint queries */ webhookEndpoint: { /** Invalidate all webhookEndpoint queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -2311,14 +2311,6 @@ export const remove = { queryKey: buildStepKeys.detail(id), }); }, - /** Remove builderBinding from cache */ builderBinding: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: builderBindingKeys.detail(id), - }); - }, /** Remove contentPreset from cache */ contentPreset: ( queryClient: QueryClient, id: string | number @@ -2643,14 +2635,6 @@ export const remove = { queryKey: platformBuildStepKeys.detail(id), }); }, - /** Remove platformBuilderBinding from cache */ platformBuilderBinding: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: platformBuilderBindingKeys.detail(id), - }); - }, /** Remove platformFunctionApiBinding from cache */ platformFunctionApiBinding: ( queryClient: QueryClient, id: string | number @@ -3017,6 +3001,14 @@ export const remove = { queryKey: platformResourcesResolvedRequirementKeys.detail(id), }); }, + /** Remove platformServiceBinding from cache */ platformServiceBinding: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: platformServiceBindingKeys.detail(id), + }); + }, /** Remove platformWebhookEndpoint from cache */ platformWebhookEndpoint: ( queryClient: QueryClient, id: string | number @@ -3232,6 +3224,14 @@ export const remove = { queryKey: resourcesResolvedRequirementKeys.detail(id), }); }, + /** Remove serviceBinding from cache */ serviceBinding: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: serviceBindingKeys.detail(id), + }); + }, /** Remove webhookEndpoint from cache */ webhookEndpoint: ( queryClient: QueryClient, id: string | number diff --git a/sdk/constructive-react/src/compute/hooks/mutation-keys.ts b/sdk/constructive-react/src/compute/hooks/mutation-keys.ts index 849257673e..1146ef771d 100644 --- a/sdk/constructive-react/src/compute/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/compute/hooks/mutation-keys.ts @@ -34,15 +34,6 @@ export const buildStepMutationKeys = { /** Delete buildStep mutation key */ delete: (id: string | number) => ['mutation', 'buildstep', 'delete', id] as const, } as const; -export const builderBindingMutationKeys = { - /** All builderBinding mutation keys */ all: ['mutation', 'builderbinding'] as const, - /** Create builderBinding mutation key */ create: () => - ['mutation', 'builderbinding', 'create'] as const, - /** Update builderBinding mutation key */ update: (id: string | number) => - ['mutation', 'builderbinding', 'update', id] as const, - /** Delete builderBinding mutation key */ delete: (id: string | number) => - ['mutation', 'builderbinding', 'delete', id] as const, -} as const; export const contentPresetMutationKeys = { /** All contentPreset mutation keys */ all: ['mutation', 'contentpreset'] as const, /** Create contentPreset mutation key */ create: () => @@ -473,18 +464,6 @@ export const platformBuildStepMutationKeys = { /** Delete platformBuildStep mutation key */ delete: (id: string | number) => ['mutation', 'platformbuildstep', 'delete', id] as const, } as const; -export const platformBuilderBindingMutationKeys = { - /** All platformBuilderBinding mutation keys */ all: [ - 'mutation', - 'platformbuilderbinding', - ] as const, - /** Create platformBuilderBinding mutation key */ create: () => - ['mutation', 'platformbuilderbinding', 'create'] as const, - /** Update platformBuilderBinding mutation key */ update: (id: string | number) => - ['mutation', 'platformbuilderbinding', 'update', id] as const, - /** Delete platformBuilderBinding mutation key */ delete: (id: string | number) => - ['mutation', 'platformbuilderbinding', 'delete', id] as const, -} as const; export const platformFunctionApiBindingMutationKeys = { /** All platformFunctionApiBinding mutation keys */ all: [ 'mutation', @@ -1001,6 +980,18 @@ export const platformResourcesResolvedRequirementMutationKeys = { /** Delete platformResourcesResolvedRequirement mutation key */ delete: (id: string | number) => ['mutation', 'platformresourcesresolvedrequirement', 'delete', id] as const, } as const; +export const platformServiceBindingMutationKeys = { + /** All platformServiceBinding mutation keys */ all: [ + 'mutation', + 'platformservicebinding', + ] as const, + /** Create platformServiceBinding mutation key */ create: () => + ['mutation', 'platformservicebinding', 'create'] as const, + /** Update platformServiceBinding mutation key */ update: (id: string | number) => + ['mutation', 'platformservicebinding', 'update', id] as const, + /** Delete platformServiceBinding mutation key */ delete: (id: string | number) => + ['mutation', 'platformservicebinding', 'delete', id] as const, +} as const; export const platformWebhookEndpointMutationKeys = { /** All platformWebhookEndpoint mutation keys */ all: [ 'mutation', @@ -1267,6 +1258,15 @@ export const resourcesResolvedRequirementMutationKeys = { /** Delete resourcesResolvedRequirement mutation key */ delete: (id: string | number) => ['mutation', 'resourcesresolvedrequirement', 'delete', id] as const, } as const; +export const serviceBindingMutationKeys = { + /** All serviceBinding mutation keys */ all: ['mutation', 'servicebinding'] as const, + /** Create serviceBinding mutation key */ create: () => + ['mutation', 'servicebinding', 'create'] as const, + /** Update serviceBinding mutation key */ update: (id: string | number) => + ['mutation', 'servicebinding', 'update', id] as const, + /** Delete serviceBinding mutation key */ delete: (id: string | number) => + ['mutation', 'servicebinding', 'delete', id] as const, +} as const; export const webhookEndpointMutationKeys = { /** All webhookEndpoint mutation keys */ all: ['mutation', 'webhookendpoint'] as const, /** Create webhookEndpoint mutation key */ create: () => @@ -1315,6 +1315,10 @@ export const customMutationKeys = { identifier ? (['mutation', 'copyGraph', identifier] as const) : (['mutation', 'copyGraph'] as const), + /** Mutation key for createFunctionGraph */ createFunctionGraph: (identifier?: string) => + identifier + ? (['mutation', 'createFunctionGraph', identifier] as const) + : (['mutation', 'createFunctionGraph'] as const), /** Mutation key for databaseAddEdge */ databaseAddEdge: (identifier?: string) => identifier ? (['mutation', 'databaseAddEdge', identifier] as const) @@ -1617,7 +1621,6 @@ export const customMutationKeys = { export const mutationKeys = { build: buildMutationKeys, buildStep: buildStepMutationKeys, - builderBinding: builderBindingMutationKeys, contentPreset: contentPresetMutationKeys, databaseFunctionGraph: databaseFunctionGraphMutationKeys, databaseFunctionGraphExecutionCancelRequest: @@ -1662,7 +1665,6 @@ export const mutationKeys = { namespaceEvent: namespaceEventMutationKeys, platformBuild: platformBuildMutationKeys, platformBuildStep: platformBuildStepMutationKeys, - platformBuilderBinding: platformBuilderBindingMutationKeys, platformFunctionApiBinding: platformFunctionApiBindingMutationKeys, platformFunctionCapabilityBinding: platformFunctionCapabilityBindingMutationKeys, platformFunctionDefinition: platformFunctionDefinitionMutationKeys, @@ -1709,6 +1711,7 @@ export const mutationKeys = { platformResourcesHealth: platformResourcesHealthMutationKeys, platformResourcesRequirementsState: platformResourcesRequirementsStateMutationKeys, platformResourcesResolvedRequirement: platformResourcesResolvedRequirementMutationKeys, + platformServiceBinding: platformServiceBindingMutationKeys, platformWebhookEndpoint: platformWebhookEndpointMutationKeys, platformWebhookEvent: platformWebhookEventMutationKeys, proposalComment: proposalCommentMutationKeys, @@ -1737,6 +1740,7 @@ export const mutationKeys = { resourcesHealth: resourcesHealthMutationKeys, resourcesRequirementsState: resourcesRequirementsStateMutationKeys, resourcesResolvedRequirement: resourcesResolvedRequirementMutationKeys, + serviceBinding: serviceBindingMutationKeys, webhookEndpoint: webhookEndpointMutationKeys, webhookEvent: webhookEventMutationKeys, custom: customMutationKeys, diff --git a/sdk/constructive-react/src/compute/hooks/mutations/index.ts b/sdk/constructive-react/src/compute/hooks/mutations/index.ts index e1eb9a75e4..9ce84db159 100644 --- a/sdk/constructive-react/src/compute/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/compute/hooks/mutations/index.ts @@ -9,13 +9,9 @@ export * from './useDeleteBuildMutation'; export * from './useCreateBuildStepMutation'; export * from './useUpdateBuildStepMutation'; export * from './useDeleteBuildStepMutation'; -export * from './useCreateBuilderBindingMutation'; -export * from './useUpdateBuilderBindingMutation'; -export * from './useDeleteBuilderBindingMutation'; export * from './useCreateContentPresetMutation'; export * from './useUpdateContentPresetMutation'; export * from './useDeleteContentPresetMutation'; -export * from './useCreateDatabaseFunctionGraphMutation'; export * from './useUpdateDatabaseFunctionGraphMutation'; export * from './useDeleteDatabaseFunctionGraphMutation'; export * from './useCreateDatabaseFunctionGraphExecutionCancelRequestMutation'; @@ -33,7 +29,6 @@ export * from './useDeleteDatabaseFunctionGraphExecutionOutputMutation'; export * from './useCreateDatabaseGraphCommitMutation'; export * from './useUpdateDatabaseGraphCommitMutation'; export * from './useDeleteDatabaseGraphCommitMutation'; -export * from './useCreateDatabaseGraphGetAllTreeNodesRecordMutation'; export * from './useCreateDatabaseGraphObjectMutation'; export * from './useUpdateDatabaseGraphObjectMutation'; export * from './useDeleteDatabaseGraphObjectMutation'; @@ -67,7 +62,6 @@ export * from './useDeleteFunctionExecutionLogMutation'; export * from './useCreateFunctionGraphCommitMutation'; export * from './useUpdateFunctionGraphCommitMutation'; export * from './useDeleteFunctionGraphCommitMutation'; -export * from './useCreateFunctionGraphMutation'; export * from './useUpdateFunctionGraphMutation'; export * from './useDeleteFunctionGraphMutation'; export * from './useCreateFunctionGraphExecutionCancelRequestMutation'; @@ -100,7 +94,6 @@ export * from './useDeleteFunctionInvocationMutation'; export * from './useCreateFunctionScheduleMutation'; export * from './useUpdateFunctionScheduleMutation'; export * from './useDeleteFunctionScheduleMutation'; -export * from './useCreateGetAllTreeNodesRecordMutation'; export * from './useCreateImageMutation'; export * from './useUpdateImageMutation'; export * from './useDeleteImageMutation'; @@ -110,7 +103,6 @@ export * from './useDeleteImageGrantMutation'; export * from './useCreateInfraCommitMutation'; export * from './useUpdateInfraCommitMutation'; export * from './useDeleteInfraCommitMutation'; -export * from './useCreateInfraGetAllTreeNodesRecordMutation'; export * from './useCreateInfraObjectMutation'; export * from './useUpdateInfraObjectMutation'; export * from './useDeleteInfraObjectMutation'; @@ -135,9 +127,6 @@ export * from './useDeletePlatformBuildMutation'; export * from './useCreatePlatformBuildStepMutation'; export * from './useUpdatePlatformBuildStepMutation'; export * from './useDeletePlatformBuildStepMutation'; -export * from './useCreatePlatformBuilderBindingMutation'; -export * from './useUpdatePlatformBuilderBindingMutation'; -export * from './useDeletePlatformBuilderBindingMutation'; export * from './useCreatePlatformFunctionApiBindingMutation'; export * from './useUpdatePlatformFunctionApiBindingMutation'; export * from './useDeletePlatformFunctionApiBindingMutation'; @@ -174,7 +163,6 @@ export * from './useDeletePlatformImageGrantMutation'; export * from './useCreatePlatformInfraCommitMutation'; export * from './useUpdatePlatformInfraCommitMutation'; export * from './useDeletePlatformInfraCommitMutation'; -export * from './useCreatePlatformInfraGetAllTreeNodesRecordMutation'; export * from './useCreatePlatformInfraObjectMutation'; export * from './useUpdatePlatformInfraObjectMutation'; export * from './useDeletePlatformInfraObjectMutation'; @@ -238,7 +226,6 @@ export * from './useDeletePlatformRepositoryWorkflowMutation'; export * from './useCreatePlatformResourceMutation'; export * from './useUpdatePlatformResourceMutation'; export * from './useDeletePlatformResourceMutation'; -export * from './useCreatePlatformResourceDeclaredCapacityMutation'; export * from './useCreatePlatformResourceDefinitionMutation'; export * from './useUpdatePlatformResourceDefinitionMutation'; export * from './useDeletePlatformResourceDefinitionMutation'; @@ -248,7 +235,6 @@ export * from './useDeletePlatformResourceEventMutation'; export * from './useCreatePlatformResourceInstallationMutation'; export * from './useUpdatePlatformResourceInstallationMutation'; export * from './useDeletePlatformResourceInstallationMutation'; -export * from './useCreatePlatformResourceObservedStorageMutation'; export * from './useCreatePlatformResourceStatusCheckMutation'; export * from './useUpdatePlatformResourceStatusCheckMutation'; export * from './useDeletePlatformResourceStatusCheckMutation'; @@ -258,10 +244,9 @@ export * from './useDeletePlatformResourceUsageLogMutation'; export * from './useCreatePlatformResourceUsageSummaryMutation'; export * from './useUpdatePlatformResourceUsageSummaryMutation'; export * from './useDeletePlatformResourceUsageSummaryMutation'; -export * from './useCreatePlatformResourceUtilizationMutation'; -export * from './useCreatePlatformResourcesHealthMutation'; -export * from './useCreatePlatformResourcesRequirementsStateMutation'; -export * from './useCreatePlatformResourcesResolvedRequirementMutation'; +export * from './useCreatePlatformServiceBindingMutation'; +export * from './useUpdatePlatformServiceBindingMutation'; +export * from './useDeletePlatformServiceBindingMutation'; export * from './useCreatePlatformWebhookEndpointMutation'; export * from './useUpdatePlatformWebhookEndpointMutation'; export * from './useDeletePlatformWebhookEndpointMutation'; @@ -310,7 +295,6 @@ export * from './useDeleteRepositoryWorkflowMutation'; export * from './useCreateResourceMutation'; export * from './useUpdateResourceMutation'; export * from './useDeleteResourceMutation'; -export * from './useCreateResourceDeclaredCapacityMutation'; export * from './useCreateResourceDefinitionMutation'; export * from './useUpdateResourceDefinitionMutation'; export * from './useDeleteResourceDefinitionMutation'; @@ -320,7 +304,6 @@ export * from './useDeleteResourceEventMutation'; export * from './useCreateResourceInstallationMutation'; export * from './useUpdateResourceInstallationMutation'; export * from './useDeleteResourceInstallationMutation'; -export * from './useCreateResourceObservedStorageMutation'; export * from './useCreateResourceStatusCheckMutation'; export * from './useUpdateResourceStatusCheckMutation'; export * from './useDeleteResourceStatusCheckMutation'; @@ -330,10 +313,9 @@ export * from './useDeleteResourceUsageLogMutation'; export * from './useCreateResourceUsageSummaryMutation'; export * from './useUpdateResourceUsageSummaryMutation'; export * from './useDeleteResourceUsageSummaryMutation'; -export * from './useCreateResourceUtilizationMutation'; -export * from './useCreateResourcesHealthMutation'; -export * from './useCreateResourcesRequirementsStateMutation'; -export * from './useCreateResourcesResolvedRequirementMutation'; +export * from './useCreateServiceBindingMutation'; +export * from './useUpdateServiceBindingMutation'; +export * from './useDeleteServiceBindingMutation'; export * from './useCreateWebhookEndpointMutation'; export * from './useUpdateWebhookEndpointMutation'; export * from './useDeleteWebhookEndpointMutation'; @@ -346,6 +328,7 @@ export * from './useAddNodeMutation'; export * from './useAddNodeAndSaveMutation'; export * from './useApproveNodeMutation'; export * from './useCopyGraphMutation'; +export * from './useCreateFunctionGraphMutation'; export * from './useDatabaseAddEdgeMutation'; export * from './useDatabaseAddEdgeAndSaveMutation'; export * from './useDatabaseAddNodeMutation'; diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateBuilderBindingMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateBuilderBindingMutation.ts deleted file mode 100644 index 4aceb82c89..0000000000 --- a/sdk/constructive-react/src/compute/hooks/mutations/useCreateBuilderBindingMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { builderBindingKeys } from '../query-keys'; -import { builderBindingMutationKeys } from '../mutation-keys'; -import type { - BuilderBindingSelect, - BuilderBindingWithRelations, - CreateBuilderBindingInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - BuilderBindingSelect, - BuilderBindingWithRelations, - CreateBuilderBindingInput, -} from '../../orm/input-types'; -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateBuilderBindingMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateBuilderBindingMutation( - params: { - selection: { - fields: S & BuilderBindingSelect; - } & HookStrictSelect, BuilderBindingSelect>; - } & Omit< - UseMutationOptions< - { - createBuilderBinding: { - builderBinding: InferSelectResult; - }; - }, - Error, - CreateBuilderBindingInput['builderBinding'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createBuilderBinding: { - builderBinding: InferSelectResult; - }; - }, - Error, - CreateBuilderBindingInput['builderBinding'] ->; -export function useCreateBuilderBindingMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: builderBindingMutationKeys.create(), - mutationFn: (data: CreateBuilderBindingInput['builderBinding']) => - getClient() - .builderBinding.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: builderBindingKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateDatabaseFunctionGraphMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateDatabaseFunctionGraphMutation.ts deleted file mode 100644 index 06acd7ea6f..0000000000 --- a/sdk/constructive-react/src/compute/hooks/mutations/useCreateDatabaseFunctionGraphMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { databaseFunctionGraphKeys } from '../query-keys'; -import { databaseFunctionGraphMutationKeys } from '../mutation-keys'; -import type { - DatabaseFunctionGraphSelect, - DatabaseFunctionGraphWithRelations, - CreateDatabaseFunctionGraphInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - DatabaseFunctionGraphSelect, - DatabaseFunctionGraphWithRelations, - CreateDatabaseFunctionGraphInput, -} from '../../orm/input-types'; -/** - * Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateDatabaseFunctionGraphMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateDatabaseFunctionGraphMutation( - params: { - selection: { - fields: S & DatabaseFunctionGraphSelect; - } & HookStrictSelect, DatabaseFunctionGraphSelect>; - } & Omit< - UseMutationOptions< - { - createDatabaseFunctionGraph: { - databaseFunctionGraph: InferSelectResult; - }; - }, - Error, - CreateDatabaseFunctionGraphInput['databaseFunctionGraph'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createDatabaseFunctionGraph: { - databaseFunctionGraph: InferSelectResult; - }; - }, - Error, - CreateDatabaseFunctionGraphInput['databaseFunctionGraph'] ->; -export function useCreateDatabaseFunctionGraphMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: databaseFunctionGraphMutationKeys.create(), - mutationFn: (data: CreateDatabaseFunctionGraphInput['databaseFunctionGraph']) => - getClient() - .databaseFunctionGraph.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: databaseFunctionGraphKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateDatabaseGraphGetAllTreeNodesRecordMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateDatabaseGraphGetAllTreeNodesRecordMutation.ts deleted file mode 100644 index beed0adea1..0000000000 --- a/sdk/constructive-react/src/compute/hooks/mutations/useCreateDatabaseGraphGetAllTreeNodesRecordMutation.ts +++ /dev/null @@ -1,105 +0,0 @@ -/** - * Create mutation hook for DatabaseGraphGetAllTreeNodesRecord - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { databaseGraphGetAllTreeNodesRecordKeys } from '../query-keys'; -import { databaseGraphGetAllTreeNodesRecordMutationKeys } from '../mutation-keys'; -import type { - DatabaseGraphGetAllTreeNodesRecordSelect, - DatabaseGraphGetAllTreeNodesRecordWithRelations, - CreateDatabaseGraphGetAllTreeNodesRecordInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - DatabaseGraphGetAllTreeNodesRecordSelect, - DatabaseGraphGetAllTreeNodesRecordWithRelations, - CreateDatabaseGraphGetAllTreeNodesRecordInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a DatabaseGraphGetAllTreeNodesRecord - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateDatabaseGraphGetAllTreeNodesRecordMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateDatabaseGraphGetAllTreeNodesRecordMutation< - S extends DatabaseGraphGetAllTreeNodesRecordSelect, ->( - params: { - selection: { - fields: S & DatabaseGraphGetAllTreeNodesRecordSelect; - } & HookStrictSelect, DatabaseGraphGetAllTreeNodesRecordSelect>; - } & Omit< - UseMutationOptions< - { - createDatabaseGraphGetAllTreeNodesRecord: { - databaseGraphGetAllTreeNodesRecord: InferSelectResult< - DatabaseGraphGetAllTreeNodesRecordWithRelations, - S - >; - }; - }, - Error, - CreateDatabaseGraphGetAllTreeNodesRecordInput['databaseGraphGetAllTreeNodesRecord'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createDatabaseGraphGetAllTreeNodesRecord: { - databaseGraphGetAllTreeNodesRecord: InferSelectResult< - DatabaseGraphGetAllTreeNodesRecordWithRelations, - S - >; - }; - }, - Error, - CreateDatabaseGraphGetAllTreeNodesRecordInput['databaseGraphGetAllTreeNodesRecord'] ->; -export function useCreateDatabaseGraphGetAllTreeNodesRecordMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - CreateDatabaseGraphGetAllTreeNodesRecordInput['databaseGraphGetAllTreeNodesRecord'] - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: databaseGraphGetAllTreeNodesRecordMutationKeys.create(), - mutationFn: ( - data: CreateDatabaseGraphGetAllTreeNodesRecordInput['databaseGraphGetAllTreeNodesRecord'] - ) => - getClient() - .databaseGraphGetAllTreeNodesRecord.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: databaseGraphGetAllTreeNodesRecordKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateFunctionGraphMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateFunctionGraphMutation.ts index 63532d7f17..28c4256e0b 100644 --- a/sdk/constructive-react/src/compute/hooks/mutations/useCreateFunctionGraphMutation.ts +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreateFunctionGraphMutation.ts @@ -1,88 +1,58 @@ /** - * Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store + * Custom mutation hook for createFunctionGraph * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; +import { useMutation } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; import { getClient } from '../client'; import { buildSelectionArgs } from '../selection'; import type { SelectionConfig } from '../selection'; -import { functionGraphKeys } from '../query-keys'; -import { functionGraphMutationKeys } from '../mutation-keys'; +import { customMutationKeys } from '../mutation-keys'; +import type { CreateFunctionGraphVariables } from '../../orm/mutation'; import type { - FunctionGraphSelect, - FunctionGraphWithRelations, - CreateFunctionGraphInput, + CreateFunctionGraphPayloadSelect, + CreateFunctionGraphPayload, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - FunctionGraphSelect, - FunctionGraphWithRelations, - CreateFunctionGraphInput, -} from '../../orm/input-types'; -/** - * Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateFunctionGraphMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateFunctionGraphMutation( +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { CreateFunctionGraphVariables } from '../../orm/mutation'; +export type { CreateFunctionGraphPayloadSelect } from '../../orm/input-types'; +export function useCreateFunctionGraphMutation( params: { selection: { - fields: S & FunctionGraphSelect; - } & HookStrictSelect, FunctionGraphSelect>; + fields: S & CreateFunctionGraphPayloadSelect; + } & HookStrictSelect, CreateFunctionGraphPayloadSelect>; } & Omit< UseMutationOptions< { - createFunctionGraph: { - functionGraph: InferSelectResult; - }; + createFunctionGraph: InferSelectResult | null; }, Error, - CreateFunctionGraphInput['functionGraph'] + CreateFunctionGraphVariables >, 'mutationFn' > ): UseMutationResult< { - createFunctionGraph: { - functionGraph: InferSelectResult; - }; + createFunctionGraph: InferSelectResult | null; }, Error, - CreateFunctionGraphInput['functionGraph'] ->; -export function useCreateFunctionGraphMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); + CreateFunctionGraphVariables +> { + const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; - const queryClient = useQueryClient(); return useMutation({ - mutationKey: functionGraphMutationKeys.create(), - mutationFn: (data: CreateFunctionGraphInput['functionGraph']) => + mutationKey: customMutationKeys.createFunctionGraph(), + mutationFn: (variables: CreateFunctionGraphVariables) => getClient() - .functionGraph.create({ - data, + .mutation.createFunctionGraph(variables, { select: args.select, - }) + } as { + select: S; + } & StrictSelect) .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: functionGraphKeys.lists(), - }); - }, ...mutationOptions, }); } diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateGetAllTreeNodesRecordMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateGetAllTreeNodesRecordMutation.ts deleted file mode 100644 index 5a0447b6b9..0000000000 --- a/sdk/constructive-react/src/compute/hooks/mutations/useCreateGetAllTreeNodesRecordMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Create mutation hook for GetAllTreeNodesRecord - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { getAllTreeNodesRecordKeys } from '../query-keys'; -import { getAllTreeNodesRecordMutationKeys } from '../mutation-keys'; -import type { - GetAllTreeNodesRecordSelect, - GetAllTreeNodesRecordWithRelations, - CreateGetAllTreeNodesRecordInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - GetAllTreeNodesRecordSelect, - GetAllTreeNodesRecordWithRelations, - CreateGetAllTreeNodesRecordInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a GetAllTreeNodesRecord - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateGetAllTreeNodesRecordMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateGetAllTreeNodesRecordMutation( - params: { - selection: { - fields: S & GetAllTreeNodesRecordSelect; - } & HookStrictSelect, GetAllTreeNodesRecordSelect>; - } & Omit< - UseMutationOptions< - { - createGetAllTreeNodesRecord: { - getAllTreeNodesRecord: InferSelectResult; - }; - }, - Error, - CreateGetAllTreeNodesRecordInput['getAllTreeNodesRecord'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createGetAllTreeNodesRecord: { - getAllTreeNodesRecord: InferSelectResult; - }; - }, - Error, - CreateGetAllTreeNodesRecordInput['getAllTreeNodesRecord'] ->; -export function useCreateGetAllTreeNodesRecordMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: getAllTreeNodesRecordMutationKeys.create(), - mutationFn: (data: CreateGetAllTreeNodesRecordInput['getAllTreeNodesRecord']) => - getClient() - .getAllTreeNodesRecord.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: getAllTreeNodesRecordKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateInfraGetAllTreeNodesRecordMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateInfraGetAllTreeNodesRecordMutation.ts deleted file mode 100644 index 18fab59dfb..0000000000 --- a/sdk/constructive-react/src/compute/hooks/mutations/useCreateInfraGetAllTreeNodesRecordMutation.ts +++ /dev/null @@ -1,97 +0,0 @@ -/** - * Create mutation hook for InfraGetAllTreeNodesRecord - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { infraGetAllTreeNodesRecordKeys } from '../query-keys'; -import { infraGetAllTreeNodesRecordMutationKeys } from '../mutation-keys'; -import type { - InfraGetAllTreeNodesRecordSelect, - InfraGetAllTreeNodesRecordWithRelations, - CreateInfraGetAllTreeNodesRecordInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - InfraGetAllTreeNodesRecordSelect, - InfraGetAllTreeNodesRecordWithRelations, - CreateInfraGetAllTreeNodesRecordInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a InfraGetAllTreeNodesRecord - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateInfraGetAllTreeNodesRecordMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateInfraGetAllTreeNodesRecordMutation< - S extends InfraGetAllTreeNodesRecordSelect, ->( - params: { - selection: { - fields: S & InfraGetAllTreeNodesRecordSelect; - } & HookStrictSelect, InfraGetAllTreeNodesRecordSelect>; - } & Omit< - UseMutationOptions< - { - createInfraGetAllTreeNodesRecord: { - infraGetAllTreeNodesRecord: InferSelectResult; - }; - }, - Error, - CreateInfraGetAllTreeNodesRecordInput['infraGetAllTreeNodesRecord'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createInfraGetAllTreeNodesRecord: { - infraGetAllTreeNodesRecord: InferSelectResult; - }; - }, - Error, - CreateInfraGetAllTreeNodesRecordInput['infraGetAllTreeNodesRecord'] ->; -export function useCreateInfraGetAllTreeNodesRecordMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - CreateInfraGetAllTreeNodesRecordInput['infraGetAllTreeNodesRecord'] - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: infraGetAllTreeNodesRecordMutationKeys.create(), - mutationFn: (data: CreateInfraGetAllTreeNodesRecordInput['infraGetAllTreeNodesRecord']) => - getClient() - .infraGetAllTreeNodesRecord.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: infraGetAllTreeNodesRecordKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformBuilderBindingMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformBuilderBindingMutation.ts deleted file mode 100644 index 5bf54919a9..0000000000 --- a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformBuilderBindingMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformBuilderBindingKeys } from '../query-keys'; -import { platformBuilderBindingMutationKeys } from '../mutation-keys'; -import type { - PlatformBuilderBindingSelect, - PlatformBuilderBindingWithRelations, - CreatePlatformBuilderBindingInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PlatformBuilderBindingSelect, - PlatformBuilderBindingWithRelations, - CreatePlatformBuilderBindingInput, -} from '../../orm/input-types'; -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * - * @example - * ```tsx - * const { mutate, isPending } = useCreatePlatformBuilderBindingMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreatePlatformBuilderBindingMutation( - params: { - selection: { - fields: S & PlatformBuilderBindingSelect; - } & HookStrictSelect, PlatformBuilderBindingSelect>; - } & Omit< - UseMutationOptions< - { - createPlatformBuilderBinding: { - platformBuilderBinding: InferSelectResult; - }; - }, - Error, - CreatePlatformBuilderBindingInput['platformBuilderBinding'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createPlatformBuilderBinding: { - platformBuilderBinding: InferSelectResult; - }; - }, - Error, - CreatePlatformBuilderBindingInput['platformBuilderBinding'] ->; -export function useCreatePlatformBuilderBindingMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: platformBuilderBindingMutationKeys.create(), - mutationFn: (data: CreatePlatformBuilderBindingInput['platformBuilderBinding']) => - getClient() - .platformBuilderBinding.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: platformBuilderBindingKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformInfraGetAllTreeNodesRecordMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformInfraGetAllTreeNodesRecordMutation.ts deleted file mode 100644 index 13b05cd0de..0000000000 --- a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformInfraGetAllTreeNodesRecordMutation.ts +++ /dev/null @@ -1,105 +0,0 @@ -/** - * Create mutation hook for PlatformInfraGetAllTreeNodesRecord - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformInfraGetAllTreeNodesRecordKeys } from '../query-keys'; -import { platformInfraGetAllTreeNodesRecordMutationKeys } from '../mutation-keys'; -import type { - PlatformInfraGetAllTreeNodesRecordSelect, - PlatformInfraGetAllTreeNodesRecordWithRelations, - CreatePlatformInfraGetAllTreeNodesRecordInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PlatformInfraGetAllTreeNodesRecordSelect, - PlatformInfraGetAllTreeNodesRecordWithRelations, - CreatePlatformInfraGetAllTreeNodesRecordInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a PlatformInfraGetAllTreeNodesRecord - * - * @example - * ```tsx - * const { mutate, isPending } = useCreatePlatformInfraGetAllTreeNodesRecordMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreatePlatformInfraGetAllTreeNodesRecordMutation< - S extends PlatformInfraGetAllTreeNodesRecordSelect, ->( - params: { - selection: { - fields: S & PlatformInfraGetAllTreeNodesRecordSelect; - } & HookStrictSelect, PlatformInfraGetAllTreeNodesRecordSelect>; - } & Omit< - UseMutationOptions< - { - createPlatformInfraGetAllTreeNodesRecord: { - platformInfraGetAllTreeNodesRecord: InferSelectResult< - PlatformInfraGetAllTreeNodesRecordWithRelations, - S - >; - }; - }, - Error, - CreatePlatformInfraGetAllTreeNodesRecordInput['platformInfraGetAllTreeNodesRecord'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createPlatformInfraGetAllTreeNodesRecord: { - platformInfraGetAllTreeNodesRecord: InferSelectResult< - PlatformInfraGetAllTreeNodesRecordWithRelations, - S - >; - }; - }, - Error, - CreatePlatformInfraGetAllTreeNodesRecordInput['platformInfraGetAllTreeNodesRecord'] ->; -export function useCreatePlatformInfraGetAllTreeNodesRecordMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - CreatePlatformInfraGetAllTreeNodesRecordInput['platformInfraGetAllTreeNodesRecord'] - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: platformInfraGetAllTreeNodesRecordMutationKeys.create(), - mutationFn: ( - data: CreatePlatformInfraGetAllTreeNodesRecordInput['platformInfraGetAllTreeNodesRecord'] - ) => - getClient() - .platformInfraGetAllTreeNodesRecord.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: platformInfraGetAllTreeNodesRecordKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourceDeclaredCapacityMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourceDeclaredCapacityMutation.ts deleted file mode 100644 index 020666b1c4..0000000000 --- a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourceDeclaredCapacityMutation.ts +++ /dev/null @@ -1,105 +0,0 @@ -/** - * Create mutation hook for PlatformResourceDeclaredCapacity - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformResourceDeclaredCapacityKeys } from '../query-keys'; -import { platformResourceDeclaredCapacityMutationKeys } from '../mutation-keys'; -import type { - PlatformResourceDeclaredCapacitySelect, - PlatformResourceDeclaredCapacityWithRelations, - CreatePlatformResourceDeclaredCapacityInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PlatformResourceDeclaredCapacitySelect, - PlatformResourceDeclaredCapacityWithRelations, - CreatePlatformResourceDeclaredCapacityInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a PlatformResourceDeclaredCapacity - * - * @example - * ```tsx - * const { mutate, isPending } = useCreatePlatformResourceDeclaredCapacityMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreatePlatformResourceDeclaredCapacityMutation< - S extends PlatformResourceDeclaredCapacitySelect, ->( - params: { - selection: { - fields: S & PlatformResourceDeclaredCapacitySelect; - } & HookStrictSelect, PlatformResourceDeclaredCapacitySelect>; - } & Omit< - UseMutationOptions< - { - createPlatformResourceDeclaredCapacity: { - platformResourceDeclaredCapacity: InferSelectResult< - PlatformResourceDeclaredCapacityWithRelations, - S - >; - }; - }, - Error, - CreatePlatformResourceDeclaredCapacityInput['platformResourceDeclaredCapacity'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createPlatformResourceDeclaredCapacity: { - platformResourceDeclaredCapacity: InferSelectResult< - PlatformResourceDeclaredCapacityWithRelations, - S - >; - }; - }, - Error, - CreatePlatformResourceDeclaredCapacityInput['platformResourceDeclaredCapacity'] ->; -export function useCreatePlatformResourceDeclaredCapacityMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - CreatePlatformResourceDeclaredCapacityInput['platformResourceDeclaredCapacity'] - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: platformResourceDeclaredCapacityMutationKeys.create(), - mutationFn: ( - data: CreatePlatformResourceDeclaredCapacityInput['platformResourceDeclaredCapacity'] - ) => - getClient() - .platformResourceDeclaredCapacity.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: platformResourceDeclaredCapacityKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourceObservedStorageMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourceObservedStorageMutation.ts deleted file mode 100644 index 8de6986922..0000000000 --- a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourceObservedStorageMutation.ts +++ /dev/null @@ -1,105 +0,0 @@ -/** - * Create mutation hook for PlatformResourceObservedStorage - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformResourceObservedStorageKeys } from '../query-keys'; -import { platformResourceObservedStorageMutationKeys } from '../mutation-keys'; -import type { - PlatformResourceObservedStorageSelect, - PlatformResourceObservedStorageWithRelations, - CreatePlatformResourceObservedStorageInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PlatformResourceObservedStorageSelect, - PlatformResourceObservedStorageWithRelations, - CreatePlatformResourceObservedStorageInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a PlatformResourceObservedStorage - * - * @example - * ```tsx - * const { mutate, isPending } = useCreatePlatformResourceObservedStorageMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreatePlatformResourceObservedStorageMutation< - S extends PlatformResourceObservedStorageSelect, ->( - params: { - selection: { - fields: S & PlatformResourceObservedStorageSelect; - } & HookStrictSelect, PlatformResourceObservedStorageSelect>; - } & Omit< - UseMutationOptions< - { - createPlatformResourceObservedStorage: { - platformResourceObservedStorage: InferSelectResult< - PlatformResourceObservedStorageWithRelations, - S - >; - }; - }, - Error, - CreatePlatformResourceObservedStorageInput['platformResourceObservedStorage'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createPlatformResourceObservedStorage: { - platformResourceObservedStorage: InferSelectResult< - PlatformResourceObservedStorageWithRelations, - S - >; - }; - }, - Error, - CreatePlatformResourceObservedStorageInput['platformResourceObservedStorage'] ->; -export function useCreatePlatformResourceObservedStorageMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - CreatePlatformResourceObservedStorageInput['platformResourceObservedStorage'] - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: platformResourceObservedStorageMutationKeys.create(), - mutationFn: ( - data: CreatePlatformResourceObservedStorageInput['platformResourceObservedStorage'] - ) => - getClient() - .platformResourceObservedStorage.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: platformResourceObservedStorageKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourceUtilizationMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourceUtilizationMutation.ts deleted file mode 100644 index c29fc2a562..0000000000 --- a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourceUtilizationMutation.ts +++ /dev/null @@ -1,100 +0,0 @@ -/** - * Create mutation hook for PlatformResourceUtilization - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformResourceUtilizationKeys } from '../query-keys'; -import { platformResourceUtilizationMutationKeys } from '../mutation-keys'; -import type { - PlatformResourceUtilizationSelect, - PlatformResourceUtilizationWithRelations, - CreatePlatformResourceUtilizationInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PlatformResourceUtilizationSelect, - PlatformResourceUtilizationWithRelations, - CreatePlatformResourceUtilizationInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a PlatformResourceUtilization - * - * @example - * ```tsx - * const { mutate, isPending } = useCreatePlatformResourceUtilizationMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreatePlatformResourceUtilizationMutation< - S extends PlatformResourceUtilizationSelect, ->( - params: { - selection: { - fields: S & PlatformResourceUtilizationSelect; - } & HookStrictSelect, PlatformResourceUtilizationSelect>; - } & Omit< - UseMutationOptions< - { - createPlatformResourceUtilization: { - platformResourceUtilization: InferSelectResult< - PlatformResourceUtilizationWithRelations, - S - >; - }; - }, - Error, - CreatePlatformResourceUtilizationInput['platformResourceUtilization'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createPlatformResourceUtilization: { - platformResourceUtilization: InferSelectResult; - }; - }, - Error, - CreatePlatformResourceUtilizationInput['platformResourceUtilization'] ->; -export function useCreatePlatformResourceUtilizationMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - CreatePlatformResourceUtilizationInput['platformResourceUtilization'] - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: platformResourceUtilizationMutationKeys.create(), - mutationFn: (data: CreatePlatformResourceUtilizationInput['platformResourceUtilization']) => - getClient() - .platformResourceUtilization.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: platformResourceUtilizationKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourcesHealthMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourcesHealthMutation.ts deleted file mode 100644 index f2157eba58..0000000000 --- a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourcesHealthMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Create mutation hook for PlatformResourcesHealth - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformResourcesHealthKeys } from '../query-keys'; -import { platformResourcesHealthMutationKeys } from '../mutation-keys'; -import type { - PlatformResourcesHealthSelect, - PlatformResourcesHealthWithRelations, - CreatePlatformResourcesHealthInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PlatformResourcesHealthSelect, - PlatformResourcesHealthWithRelations, - CreatePlatformResourcesHealthInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a PlatformResourcesHealth - * - * @example - * ```tsx - * const { mutate, isPending } = useCreatePlatformResourcesHealthMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreatePlatformResourcesHealthMutation( - params: { - selection: { - fields: S & PlatformResourcesHealthSelect; - } & HookStrictSelect, PlatformResourcesHealthSelect>; - } & Omit< - UseMutationOptions< - { - createPlatformResourcesHealth: { - platformResourcesHealth: InferSelectResult; - }; - }, - Error, - CreatePlatformResourcesHealthInput['platformResourcesHealth'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createPlatformResourcesHealth: { - platformResourcesHealth: InferSelectResult; - }; - }, - Error, - CreatePlatformResourcesHealthInput['platformResourcesHealth'] ->; -export function useCreatePlatformResourcesHealthMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: platformResourcesHealthMutationKeys.create(), - mutationFn: (data: CreatePlatformResourcesHealthInput['platformResourcesHealth']) => - getClient() - .platformResourcesHealth.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: platformResourcesHealthKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourcesRequirementsStateMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourcesRequirementsStateMutation.ts deleted file mode 100644 index 57e2f93f58..0000000000 --- a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourcesRequirementsStateMutation.ts +++ /dev/null @@ -1,105 +0,0 @@ -/** - * Create mutation hook for PlatformResourcesRequirementsState - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformResourcesRequirementsStateKeys } from '../query-keys'; -import { platformResourcesRequirementsStateMutationKeys } from '../mutation-keys'; -import type { - PlatformResourcesRequirementsStateSelect, - PlatformResourcesRequirementsStateWithRelations, - CreatePlatformResourcesRequirementsStateInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PlatformResourcesRequirementsStateSelect, - PlatformResourcesRequirementsStateWithRelations, - CreatePlatformResourcesRequirementsStateInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a PlatformResourcesRequirementsState - * - * @example - * ```tsx - * const { mutate, isPending } = useCreatePlatformResourcesRequirementsStateMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreatePlatformResourcesRequirementsStateMutation< - S extends PlatformResourcesRequirementsStateSelect, ->( - params: { - selection: { - fields: S & PlatformResourcesRequirementsStateSelect; - } & HookStrictSelect, PlatformResourcesRequirementsStateSelect>; - } & Omit< - UseMutationOptions< - { - createPlatformResourcesRequirementsState: { - platformResourcesRequirementsState: InferSelectResult< - PlatformResourcesRequirementsStateWithRelations, - S - >; - }; - }, - Error, - CreatePlatformResourcesRequirementsStateInput['platformResourcesRequirementsState'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createPlatformResourcesRequirementsState: { - platformResourcesRequirementsState: InferSelectResult< - PlatformResourcesRequirementsStateWithRelations, - S - >; - }; - }, - Error, - CreatePlatformResourcesRequirementsStateInput['platformResourcesRequirementsState'] ->; -export function useCreatePlatformResourcesRequirementsStateMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - CreatePlatformResourcesRequirementsStateInput['platformResourcesRequirementsState'] - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: platformResourcesRequirementsStateMutationKeys.create(), - mutationFn: ( - data: CreatePlatformResourcesRequirementsStateInput['platformResourcesRequirementsState'] - ) => - getClient() - .platformResourcesRequirementsState.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: platformResourcesRequirementsStateKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourcesResolvedRequirementMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourcesResolvedRequirementMutation.ts deleted file mode 100644 index 6a037c2326..0000000000 --- a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformResourcesResolvedRequirementMutation.ts +++ /dev/null @@ -1,105 +0,0 @@ -/** - * Create mutation hook for PlatformResourcesResolvedRequirement - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformResourcesResolvedRequirementKeys } from '../query-keys'; -import { platformResourcesResolvedRequirementMutationKeys } from '../mutation-keys'; -import type { - PlatformResourcesResolvedRequirementSelect, - PlatformResourcesResolvedRequirementWithRelations, - CreatePlatformResourcesResolvedRequirementInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PlatformResourcesResolvedRequirementSelect, - PlatformResourcesResolvedRequirementWithRelations, - CreatePlatformResourcesResolvedRequirementInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a PlatformResourcesResolvedRequirement - * - * @example - * ```tsx - * const { mutate, isPending } = useCreatePlatformResourcesResolvedRequirementMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreatePlatformResourcesResolvedRequirementMutation< - S extends PlatformResourcesResolvedRequirementSelect, ->( - params: { - selection: { - fields: S & PlatformResourcesResolvedRequirementSelect; - } & HookStrictSelect, PlatformResourcesResolvedRequirementSelect>; - } & Omit< - UseMutationOptions< - { - createPlatformResourcesResolvedRequirement: { - platformResourcesResolvedRequirement: InferSelectResult< - PlatformResourcesResolvedRequirementWithRelations, - S - >; - }; - }, - Error, - CreatePlatformResourcesResolvedRequirementInput['platformResourcesResolvedRequirement'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createPlatformResourcesResolvedRequirement: { - platformResourcesResolvedRequirement: InferSelectResult< - PlatformResourcesResolvedRequirementWithRelations, - S - >; - }; - }, - Error, - CreatePlatformResourcesResolvedRequirementInput['platformResourcesResolvedRequirement'] ->; -export function useCreatePlatformResourcesResolvedRequirementMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - CreatePlatformResourcesResolvedRequirementInput['platformResourcesResolvedRequirement'] - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: platformResourcesResolvedRequirementMutationKeys.create(), - mutationFn: ( - data: CreatePlatformResourcesResolvedRequirementInput['platformResourcesResolvedRequirement'] - ) => - getClient() - .platformResourcesResolvedRequirement.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: platformResourcesResolvedRequirementKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformServiceBindingMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformServiceBindingMutation.ts new file mode 100644 index 0000000000..e56418dfe4 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreatePlatformServiceBindingMutation.ts @@ -0,0 +1,91 @@ +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformServiceBindingKeys } from '../query-keys'; +import { platformServiceBindingMutationKeys } from '../mutation-keys'; +import type { + PlatformServiceBindingSelect, + PlatformServiceBindingWithRelations, + CreatePlatformServiceBindingInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformServiceBindingSelect, + PlatformServiceBindingWithRelations, + CreatePlatformServiceBindingInput, +} from '../../orm/input-types'; +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlatformServiceBindingMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlatformServiceBindingMutation( + params: { + selection: { + fields: S & PlatformServiceBindingSelect; + } & HookStrictSelect, PlatformServiceBindingSelect>; + } & Omit< + UseMutationOptions< + { + createPlatformServiceBinding: { + platformServiceBinding: InferSelectResult; + }; + }, + Error, + CreatePlatformServiceBindingInput['platformServiceBinding'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlatformServiceBinding: { + platformServiceBinding: InferSelectResult; + }; + }, + Error, + CreatePlatformServiceBindingInput['platformServiceBinding'] +>; +export function useCreatePlatformServiceBindingMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformServiceBindingMutationKeys.create(), + mutationFn: (data: CreatePlatformServiceBindingInput['platformServiceBinding']) => + getClient() + .platformServiceBinding.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: platformServiceBindingKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourceDeclaredCapacityMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourceDeclaredCapacityMutation.ts deleted file mode 100644 index ccb4c7b2c6..0000000000 --- a/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourceDeclaredCapacityMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Create mutation hook for ResourceDeclaredCapacity - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { resourceDeclaredCapacityKeys } from '../query-keys'; -import { resourceDeclaredCapacityMutationKeys } from '../mutation-keys'; -import type { - ResourceDeclaredCapacitySelect, - ResourceDeclaredCapacityWithRelations, - CreateResourceDeclaredCapacityInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - ResourceDeclaredCapacitySelect, - ResourceDeclaredCapacityWithRelations, - CreateResourceDeclaredCapacityInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a ResourceDeclaredCapacity - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateResourceDeclaredCapacityMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateResourceDeclaredCapacityMutation( - params: { - selection: { - fields: S & ResourceDeclaredCapacitySelect; - } & HookStrictSelect, ResourceDeclaredCapacitySelect>; - } & Omit< - UseMutationOptions< - { - createResourceDeclaredCapacity: { - resourceDeclaredCapacity: InferSelectResult; - }; - }, - Error, - CreateResourceDeclaredCapacityInput['resourceDeclaredCapacity'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createResourceDeclaredCapacity: { - resourceDeclaredCapacity: InferSelectResult; - }; - }, - Error, - CreateResourceDeclaredCapacityInput['resourceDeclaredCapacity'] ->; -export function useCreateResourceDeclaredCapacityMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: resourceDeclaredCapacityMutationKeys.create(), - mutationFn: (data: CreateResourceDeclaredCapacityInput['resourceDeclaredCapacity']) => - getClient() - .resourceDeclaredCapacity.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: resourceDeclaredCapacityKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourceObservedStorageMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourceObservedStorageMutation.ts deleted file mode 100644 index 6a226a4e57..0000000000 --- a/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourceObservedStorageMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Create mutation hook for ResourceObservedStorage - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { resourceObservedStorageKeys } from '../query-keys'; -import { resourceObservedStorageMutationKeys } from '../mutation-keys'; -import type { - ResourceObservedStorageSelect, - ResourceObservedStorageWithRelations, - CreateResourceObservedStorageInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - ResourceObservedStorageSelect, - ResourceObservedStorageWithRelations, - CreateResourceObservedStorageInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a ResourceObservedStorage - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateResourceObservedStorageMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateResourceObservedStorageMutation( - params: { - selection: { - fields: S & ResourceObservedStorageSelect; - } & HookStrictSelect, ResourceObservedStorageSelect>; - } & Omit< - UseMutationOptions< - { - createResourceObservedStorage: { - resourceObservedStorage: InferSelectResult; - }; - }, - Error, - CreateResourceObservedStorageInput['resourceObservedStorage'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createResourceObservedStorage: { - resourceObservedStorage: InferSelectResult; - }; - }, - Error, - CreateResourceObservedStorageInput['resourceObservedStorage'] ->; -export function useCreateResourceObservedStorageMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: resourceObservedStorageMutationKeys.create(), - mutationFn: (data: CreateResourceObservedStorageInput['resourceObservedStorage']) => - getClient() - .resourceObservedStorage.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: resourceObservedStorageKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourceUtilizationMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourceUtilizationMutation.ts deleted file mode 100644 index 05250fd177..0000000000 --- a/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourceUtilizationMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Create mutation hook for ResourceUtilization - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { resourceUtilizationKeys } from '../query-keys'; -import { resourceUtilizationMutationKeys } from '../mutation-keys'; -import type { - ResourceUtilizationSelect, - ResourceUtilizationWithRelations, - CreateResourceUtilizationInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - ResourceUtilizationSelect, - ResourceUtilizationWithRelations, - CreateResourceUtilizationInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a ResourceUtilization - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateResourceUtilizationMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateResourceUtilizationMutation( - params: { - selection: { - fields: S & ResourceUtilizationSelect; - } & HookStrictSelect, ResourceUtilizationSelect>; - } & Omit< - UseMutationOptions< - { - createResourceUtilization: { - resourceUtilization: InferSelectResult; - }; - }, - Error, - CreateResourceUtilizationInput['resourceUtilization'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createResourceUtilization: { - resourceUtilization: InferSelectResult; - }; - }, - Error, - CreateResourceUtilizationInput['resourceUtilization'] ->; -export function useCreateResourceUtilizationMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: resourceUtilizationMutationKeys.create(), - mutationFn: (data: CreateResourceUtilizationInput['resourceUtilization']) => - getClient() - .resourceUtilization.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: resourceUtilizationKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourcesHealthMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourcesHealthMutation.ts deleted file mode 100644 index 9ffeb3b510..0000000000 --- a/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourcesHealthMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Create mutation hook for ResourcesHealth - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { resourcesHealthKeys } from '../query-keys'; -import { resourcesHealthMutationKeys } from '../mutation-keys'; -import type { - ResourcesHealthSelect, - ResourcesHealthWithRelations, - CreateResourcesHealthInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - ResourcesHealthSelect, - ResourcesHealthWithRelations, - CreateResourcesHealthInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a ResourcesHealth - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateResourcesHealthMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateResourcesHealthMutation( - params: { - selection: { - fields: S & ResourcesHealthSelect; - } & HookStrictSelect, ResourcesHealthSelect>; - } & Omit< - UseMutationOptions< - { - createResourcesHealth: { - resourcesHealth: InferSelectResult; - }; - }, - Error, - CreateResourcesHealthInput['resourcesHealth'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createResourcesHealth: { - resourcesHealth: InferSelectResult; - }; - }, - Error, - CreateResourcesHealthInput['resourcesHealth'] ->; -export function useCreateResourcesHealthMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: resourcesHealthMutationKeys.create(), - mutationFn: (data: CreateResourcesHealthInput['resourcesHealth']) => - getClient() - .resourcesHealth.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: resourcesHealthKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourcesRequirementsStateMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourcesRequirementsStateMutation.ts deleted file mode 100644 index 0f2461e6a4..0000000000 --- a/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourcesRequirementsStateMutation.ts +++ /dev/null @@ -1,97 +0,0 @@ -/** - * Create mutation hook for ResourcesRequirementsState - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { resourcesRequirementsStateKeys } from '../query-keys'; -import { resourcesRequirementsStateMutationKeys } from '../mutation-keys'; -import type { - ResourcesRequirementsStateSelect, - ResourcesRequirementsStateWithRelations, - CreateResourcesRequirementsStateInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - ResourcesRequirementsStateSelect, - ResourcesRequirementsStateWithRelations, - CreateResourcesRequirementsStateInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a ResourcesRequirementsState - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateResourcesRequirementsStateMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateResourcesRequirementsStateMutation< - S extends ResourcesRequirementsStateSelect, ->( - params: { - selection: { - fields: S & ResourcesRequirementsStateSelect; - } & HookStrictSelect, ResourcesRequirementsStateSelect>; - } & Omit< - UseMutationOptions< - { - createResourcesRequirementsState: { - resourcesRequirementsState: InferSelectResult; - }; - }, - Error, - CreateResourcesRequirementsStateInput['resourcesRequirementsState'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createResourcesRequirementsState: { - resourcesRequirementsState: InferSelectResult; - }; - }, - Error, - CreateResourcesRequirementsStateInput['resourcesRequirementsState'] ->; -export function useCreateResourcesRequirementsStateMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - CreateResourcesRequirementsStateInput['resourcesRequirementsState'] - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: resourcesRequirementsStateMutationKeys.create(), - mutationFn: (data: CreateResourcesRequirementsStateInput['resourcesRequirementsState']) => - getClient() - .resourcesRequirementsState.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: resourcesRequirementsStateKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourcesResolvedRequirementMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourcesResolvedRequirementMutation.ts deleted file mode 100644 index 0e6d9c55a7..0000000000 --- a/sdk/constructive-react/src/compute/hooks/mutations/useCreateResourcesResolvedRequirementMutation.ts +++ /dev/null @@ -1,100 +0,0 @@ -/** - * Create mutation hook for ResourcesResolvedRequirement - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { resourcesResolvedRequirementKeys } from '../query-keys'; -import { resourcesResolvedRequirementMutationKeys } from '../mutation-keys'; -import type { - ResourcesResolvedRequirementSelect, - ResourcesResolvedRequirementWithRelations, - CreateResourcesResolvedRequirementInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - ResourcesResolvedRequirementSelect, - ResourcesResolvedRequirementWithRelations, - CreateResourcesResolvedRequirementInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a ResourcesResolvedRequirement - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateResourcesResolvedRequirementMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateResourcesResolvedRequirementMutation< - S extends ResourcesResolvedRequirementSelect, ->( - params: { - selection: { - fields: S & ResourcesResolvedRequirementSelect; - } & HookStrictSelect, ResourcesResolvedRequirementSelect>; - } & Omit< - UseMutationOptions< - { - createResourcesResolvedRequirement: { - resourcesResolvedRequirement: InferSelectResult< - ResourcesResolvedRequirementWithRelations, - S - >; - }; - }, - Error, - CreateResourcesResolvedRequirementInput['resourcesResolvedRequirement'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createResourcesResolvedRequirement: { - resourcesResolvedRequirement: InferSelectResult; - }; - }, - Error, - CreateResourcesResolvedRequirementInput['resourcesResolvedRequirement'] ->; -export function useCreateResourcesResolvedRequirementMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - CreateResourcesResolvedRequirementInput['resourcesResolvedRequirement'] - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: resourcesResolvedRequirementMutationKeys.create(), - mutationFn: (data: CreateResourcesResolvedRequirementInput['resourcesResolvedRequirement']) => - getClient() - .resourcesResolvedRequirement.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: resourcesResolvedRequirementKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useCreateServiceBindingMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useCreateServiceBindingMutation.ts new file mode 100644 index 0000000000..f75bc965d6 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useCreateServiceBindingMutation.ts @@ -0,0 +1,91 @@ +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { serviceBindingKeys } from '../query-keys'; +import { serviceBindingMutationKeys } from '../mutation-keys'; +import type { + ServiceBindingSelect, + ServiceBindingWithRelations, + CreateServiceBindingInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ServiceBindingSelect, + ServiceBindingWithRelations, + CreateServiceBindingInput, +} from '../../orm/input-types'; +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateServiceBindingMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateServiceBindingMutation( + params: { + selection: { + fields: S & ServiceBindingSelect; + } & HookStrictSelect, ServiceBindingSelect>; + } & Omit< + UseMutationOptions< + { + createServiceBinding: { + serviceBinding: InferSelectResult; + }; + }, + Error, + CreateServiceBindingInput['serviceBinding'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createServiceBinding: { + serviceBinding: InferSelectResult; + }; + }, + Error, + CreateServiceBindingInput['serviceBinding'] +>; +export function useCreateServiceBindingMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: serviceBindingMutationKeys.create(), + mutationFn: (data: CreateServiceBindingInput['serviceBinding']) => + getClient() + .serviceBinding.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: serviceBindingKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformBuilderBindingMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformServiceBindingMutation.ts similarity index 51% rename from sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformBuilderBindingMutation.ts rename to sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformServiceBindingMutation.ts index df71f1af3f..dd98f4f1d8 100644 --- a/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformBuilderBindingMutation.ts +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeletePlatformServiceBindingMutation.ts @@ -1,5 +1,5 @@ /** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -9,39 +9,39 @@ import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-quer import { getClient } from '../client'; import { buildSelectionArgs } from '../selection'; import type { SelectionConfig } from '../selection'; -import { platformBuilderBindingKeys } from '../query-keys'; -import { platformBuilderBindingMutationKeys } from '../mutation-keys'; +import { platformServiceBindingKeys } from '../query-keys'; +import { platformServiceBindingMutationKeys } from '../mutation-keys'; import type { - PlatformBuilderBindingSelect, - PlatformBuilderBindingWithRelations, + PlatformServiceBindingSelect, + PlatformServiceBindingWithRelations, } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { - PlatformBuilderBindingSelect, - PlatformBuilderBindingWithRelations, + PlatformServiceBindingSelect, + PlatformServiceBindingWithRelations, } from '../../orm/input-types'; /** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config * * @example * ```tsx - * const { mutate, isPending } = useDeletePlatformBuilderBindingMutation({ + * const { mutate, isPending } = useDeletePlatformServiceBindingMutation({ * selection: { fields: { id: true } }, * }); * * mutate({ id: 'value-to-delete' }); * ``` */ -export function useDeletePlatformBuilderBindingMutation( +export function useDeletePlatformServiceBindingMutation( params: { selection: { - fields: S & PlatformBuilderBindingSelect; - } & HookStrictSelect, PlatformBuilderBindingSelect>; + fields: S & PlatformServiceBindingSelect; + } & HookStrictSelect, PlatformServiceBindingSelect>; } & Omit< UseMutationOptions< { - deletePlatformBuilderBinding: { - platformBuilderBinding: InferSelectResult; + deletePlatformServiceBinding: { + platformServiceBinding: InferSelectResult; }; }, Error, @@ -53,8 +53,8 @@ export function useDeletePlatformBuilderBindingMutation ): UseMutationResult< { - deletePlatformBuilderBinding: { - platformBuilderBinding: InferSelectResult; + deletePlatformServiceBinding: { + platformServiceBinding: InferSelectResult; }; }, Error, @@ -62,9 +62,9 @@ export function useDeletePlatformBuilderBindingMutation; -export function useDeletePlatformBuilderBindingMutation( +export function useDeletePlatformServiceBindingMutation( params: { - selection: SelectionConfig; + selection: SelectionConfig; } & Omit< UseMutationOptions< any, @@ -76,15 +76,15 @@ export function useDeletePlatformBuilderBindingMutation( 'mutationFn' > ) { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; const queryClient = useQueryClient(); return useMutation({ - mutationKey: platformBuilderBindingMutationKeys.all, + mutationKey: platformServiceBindingMutationKeys.all, mutationFn: ({ id }: { id: string }) => getClient() - .platformBuilderBinding.delete({ + .platformServiceBinding.delete({ where: { id, }, @@ -93,10 +93,10 @@ export function useDeletePlatformBuilderBindingMutation( .unwrap(), onSuccess: (_, variables) => { queryClient.removeQueries({ - queryKey: platformBuilderBindingKeys.detail(variables.id), + queryKey: platformServiceBindingKeys.detail(variables.id), }); queryClient.invalidateQueries({ - queryKey: platformBuilderBindingKeys.lists(), + queryKey: platformServiceBindingKeys.lists(), }); }, ...mutationOptions, diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteBuilderBindingMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteServiceBindingMutation.ts similarity index 53% rename from sdk/constructive-react/src/compute/hooks/mutations/useDeleteBuilderBindingMutation.ts rename to sdk/constructive-react/src/compute/hooks/mutations/useDeleteServiceBindingMutation.ts index 26004519c8..b6b2c29414 100644 --- a/sdk/constructive-react/src/compute/hooks/mutations/useDeleteBuilderBindingMutation.ts +++ b/sdk/constructive-react/src/compute/hooks/mutations/useDeleteServiceBindingMutation.ts @@ -1,5 +1,5 @@ /** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -9,33 +9,33 @@ import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-quer import { getClient } from '../client'; import { buildSelectionArgs } from '../selection'; import type { SelectionConfig } from '../selection'; -import { builderBindingKeys } from '../query-keys'; -import { builderBindingMutationKeys } from '../mutation-keys'; -import type { BuilderBindingSelect, BuilderBindingWithRelations } from '../../orm/input-types'; +import { serviceBindingKeys } from '../query-keys'; +import { serviceBindingMutationKeys } from '../mutation-keys'; +import type { ServiceBindingSelect, ServiceBindingWithRelations } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { BuilderBindingSelect, BuilderBindingWithRelations } from '../../orm/input-types'; +export type { ServiceBindingSelect, ServiceBindingWithRelations } from '../../orm/input-types'; /** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config * * @example * ```tsx - * const { mutate, isPending } = useDeleteBuilderBindingMutation({ + * const { mutate, isPending } = useDeleteServiceBindingMutation({ * selection: { fields: { id: true } }, * }); * * mutate({ id: 'value-to-delete' }); * ``` */ -export function useDeleteBuilderBindingMutation( +export function useDeleteServiceBindingMutation( params: { selection: { - fields: S & BuilderBindingSelect; - } & HookStrictSelect, BuilderBindingSelect>; + fields: S & ServiceBindingSelect; + } & HookStrictSelect, ServiceBindingSelect>; } & Omit< UseMutationOptions< { - deleteBuilderBinding: { - builderBinding: InferSelectResult; + deleteServiceBinding: { + serviceBinding: InferSelectResult; }; }, Error, @@ -47,8 +47,8 @@ export function useDeleteBuilderBindingMutation( > ): UseMutationResult< { - deleteBuilderBinding: { - builderBinding: InferSelectResult; + deleteServiceBinding: { + serviceBinding: InferSelectResult; }; }, Error, @@ -56,9 +56,9 @@ export function useDeleteBuilderBindingMutation( id: string; } >; -export function useDeleteBuilderBindingMutation( +export function useDeleteServiceBindingMutation( params: { - selection: SelectionConfig; + selection: SelectionConfig; } & Omit< UseMutationOptions< any, @@ -70,15 +70,15 @@ export function useDeleteBuilderBindingMutation( 'mutationFn' > ) { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; const queryClient = useQueryClient(); return useMutation({ - mutationKey: builderBindingMutationKeys.all, + mutationKey: serviceBindingMutationKeys.all, mutationFn: ({ id }: { id: string }) => getClient() - .builderBinding.delete({ + .serviceBinding.delete({ where: { id, }, @@ -87,10 +87,10 @@ export function useDeleteBuilderBindingMutation( .unwrap(), onSuccess: (_, variables) => { queryClient.removeQueries({ - queryKey: builderBindingKeys.detail(variables.id), + queryKey: serviceBindingKeys.detail(variables.id), }); queryClient.invalidateQueries({ - queryKey: builderBindingKeys.lists(), + queryKey: serviceBindingKeys.lists(), }); }, ...mutationOptions, diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateBuilderBindingMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateBuilderBindingMutation.ts deleted file mode 100644 index 8e095c6826..0000000000 --- a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateBuilderBindingMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { builderBindingKeys } from '../query-keys'; -import { builderBindingMutationKeys } from '../mutation-keys'; -import type { - BuilderBindingSelect, - BuilderBindingWithRelations, - BuilderBindingPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - BuilderBindingSelect, - BuilderBindingWithRelations, - BuilderBindingPatch, -} from '../../orm/input-types'; -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateBuilderBindingMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', builderBindingPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateBuilderBindingMutation( - params: { - selection: { - fields: S & BuilderBindingSelect; - } & HookStrictSelect, BuilderBindingSelect>; - } & Omit< - UseMutationOptions< - { - updateBuilderBinding: { - builderBinding: InferSelectResult; - }; - }, - Error, - { - id: string; - builderBindingPatch: BuilderBindingPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateBuilderBinding: { - builderBinding: InferSelectResult; - }; - }, - Error, - { - id: string; - builderBindingPatch: BuilderBindingPatch; - } ->; -export function useUpdateBuilderBindingMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - builderBindingPatch: BuilderBindingPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: builderBindingMutationKeys.all, - mutationFn: ({ - id, - builderBindingPatch, - }: { - id: string; - builderBindingPatch: BuilderBindingPatch; - }) => - getClient() - .builderBinding.update({ - where: { - id, - }, - data: builderBindingPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: builderBindingKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: builderBindingKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformBuilderBindingMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformBuilderBindingMutation.ts deleted file mode 100644 index c4bb465f60..0000000000 --- a/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformBuilderBindingMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformBuilderBindingKeys } from '../query-keys'; -import { platformBuilderBindingMutationKeys } from '../mutation-keys'; -import type { - PlatformBuilderBindingSelect, - PlatformBuilderBindingWithRelations, - PlatformBuilderBindingPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PlatformBuilderBindingSelect, - PlatformBuilderBindingWithRelations, - PlatformBuilderBindingPatch, -} from '../../orm/input-types'; -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdatePlatformBuilderBindingMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', platformBuilderBindingPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdatePlatformBuilderBindingMutation( - params: { - selection: { - fields: S & PlatformBuilderBindingSelect; - } & HookStrictSelect, PlatformBuilderBindingSelect>; - } & Omit< - UseMutationOptions< - { - updatePlatformBuilderBinding: { - platformBuilderBinding: InferSelectResult; - }; - }, - Error, - { - id: string; - platformBuilderBindingPatch: PlatformBuilderBindingPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updatePlatformBuilderBinding: { - platformBuilderBinding: InferSelectResult; - }; - }, - Error, - { - id: string; - platformBuilderBindingPatch: PlatformBuilderBindingPatch; - } ->; -export function useUpdatePlatformBuilderBindingMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - platformBuilderBindingPatch: PlatformBuilderBindingPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: platformBuilderBindingMutationKeys.all, - mutationFn: ({ - id, - platformBuilderBindingPatch, - }: { - id: string; - platformBuilderBindingPatch: PlatformBuilderBindingPatch; - }) => - getClient() - .platformBuilderBinding.update({ - where: { - id, - }, - data: platformBuilderBindingPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: platformBuilderBindingKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: platformBuilderBindingKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformServiceBindingMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformServiceBindingMutation.ts new file mode 100644 index 0000000000..4a9bf984e1 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdatePlatformServiceBindingMutation.ts @@ -0,0 +1,116 @@ +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformServiceBindingKeys } from '../query-keys'; +import { platformServiceBindingMutationKeys } from '../mutation-keys'; +import type { + PlatformServiceBindingSelect, + PlatformServiceBindingWithRelations, + PlatformServiceBindingPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformServiceBindingSelect, + PlatformServiceBindingWithRelations, + PlatformServiceBindingPatch, +} from '../../orm/input-types'; +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlatformServiceBindingMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', platformServiceBindingPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlatformServiceBindingMutation( + params: { + selection: { + fields: S & PlatformServiceBindingSelect; + } & HookStrictSelect, PlatformServiceBindingSelect>; + } & Omit< + UseMutationOptions< + { + updatePlatformServiceBinding: { + platformServiceBinding: InferSelectResult; + }; + }, + Error, + { + id: string; + platformServiceBindingPatch: PlatformServiceBindingPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlatformServiceBinding: { + platformServiceBinding: InferSelectResult; + }; + }, + Error, + { + id: string; + platformServiceBindingPatch: PlatformServiceBindingPatch; + } +>; +export function useUpdatePlatformServiceBindingMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + platformServiceBindingPatch: PlatformServiceBindingPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: platformServiceBindingMutationKeys.all, + mutationFn: ({ + id, + platformServiceBindingPatch, + }: { + id: string; + platformServiceBindingPatch: PlatformServiceBindingPatch; + }) => + getClient() + .platformServiceBinding.update({ + where: { + id, + }, + data: platformServiceBindingPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: platformServiceBindingKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: platformServiceBindingKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/mutations/useUpdateServiceBindingMutation.ts b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateServiceBindingMutation.ts new file mode 100644 index 0000000000..5d67543217 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/mutations/useUpdateServiceBindingMutation.ts @@ -0,0 +1,116 @@ +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { serviceBindingKeys } from '../query-keys'; +import { serviceBindingMutationKeys } from '../mutation-keys'; +import type { + ServiceBindingSelect, + ServiceBindingWithRelations, + ServiceBindingPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ServiceBindingSelect, + ServiceBindingWithRelations, + ServiceBindingPatch, +} from '../../orm/input-types'; +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateServiceBindingMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', serviceBindingPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateServiceBindingMutation( + params: { + selection: { + fields: S & ServiceBindingSelect; + } & HookStrictSelect, ServiceBindingSelect>; + } & Omit< + UseMutationOptions< + { + updateServiceBinding: { + serviceBinding: InferSelectResult; + }; + }, + Error, + { + id: string; + serviceBindingPatch: ServiceBindingPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateServiceBinding: { + serviceBinding: InferSelectResult; + }; + }, + Error, + { + id: string; + serviceBindingPatch: ServiceBindingPatch; + } +>; +export function useUpdateServiceBindingMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + serviceBindingPatch: ServiceBindingPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: serviceBindingMutationKeys.all, + mutationFn: ({ + id, + serviceBindingPatch, + }: { + id: string; + serviceBindingPatch: ServiceBindingPatch; + }) => + getClient() + .serviceBinding.update({ + where: { + id, + }, + data: serviceBindingPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: serviceBindingKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: serviceBindingKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/index.ts b/sdk/constructive-react/src/compute/hooks/queries/index.ts index 8c7e240a7a..6fcae8413e 100644 --- a/sdk/constructive-react/src/compute/hooks/queries/index.ts +++ b/sdk/constructive-react/src/compute/hooks/queries/index.ts @@ -7,8 +7,6 @@ export * from './useBuildsQuery'; export * from './useBuildQuery'; export * from './useBuildStepsQuery'; export * from './useBuildStepQuery'; -export * from './useBuilderBindingsQuery'; -export * from './useBuilderBindingQuery'; export * from './useContentPresetsQuery'; export * from './useContentPresetQuery'; export * from './useDatabaseFunctionGraphsQuery'; @@ -92,8 +90,6 @@ export * from './usePlatformBuildsQuery'; export * from './usePlatformBuildQuery'; export * from './usePlatformBuildStepsQuery'; export * from './usePlatformBuildStepQuery'; -export * from './usePlatformBuilderBindingsQuery'; -export * from './usePlatformBuilderBindingQuery'; export * from './usePlatformFunctionApiBindingsQuery'; export * from './usePlatformFunctionApiBindingQuery'; export * from './usePlatformFunctionCapabilityBindingsQuery'; @@ -180,6 +176,8 @@ export * from './usePlatformResourcesHealthsQuery'; export * from './usePlatformResourcesHealthQuery'; export * from './usePlatformResourcesRequirementsStatesQuery'; export * from './usePlatformResourcesResolvedRequirementsQuery'; +export * from './usePlatformServiceBindingsQuery'; +export * from './usePlatformServiceBindingQuery'; export * from './usePlatformWebhookEndpointsQuery'; export * from './usePlatformWebhookEndpointQuery'; export * from './usePlatformWebhookEventsQuery'; @@ -231,6 +229,8 @@ export * from './useResourcesHealthsQuery'; export * from './useResourcesHealthQuery'; export * from './useResourcesRequirementsStatesQuery'; export * from './useResourcesResolvedRequirementsQuery'; +export * from './useServiceBindingsQuery'; +export * from './useServiceBindingQuery'; export * from './useWebhookEndpointsQuery'; export * from './useWebhookEndpointQuery'; export * from './useWebhookEventsQuery'; diff --git a/sdk/constructive-react/src/compute/hooks/queries/useBuilderBindingQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useBuilderBindingQuery.ts deleted file mode 100644 index 54533ab4ac..0000000000 --- a/sdk/constructive-react/src/compute/hooks/queries/useBuilderBindingQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { builderBindingKeys } from '../query-keys'; -import type { BuilderBindingSelect, BuilderBindingWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { BuilderBindingSelect, BuilderBindingWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const builderBindingQueryKey = builderBindingKeys.detail; -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * - * @example - * ```tsx - * const { data, isLoading } = useBuilderBindingQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useBuilderBindingQuery< - S extends BuilderBindingSelect, - TData = { - builderBinding: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, BuilderBindingSelect>; - } & Omit< - UseQueryOptions< - { - builderBinding: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useBuilderBindingQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: builderBindingKeys.detail(params.id), - queryFn: () => - getClient() - .builderBinding.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * - * @example - * ```ts - * const data = await fetchBuilderBindingQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchBuilderBindingQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, BuilderBindingSelect>; -}): Promise<{ - builderBinding: InferSelectResult | null; -}>; -export async function fetchBuilderBindingQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .builderBinding.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * - * @example - * ```ts - * await prefetchBuilderBindingQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchBuilderBindingQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, BuilderBindingSelect>; - } -): Promise; -export async function prefetchBuilderBindingQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: builderBindingKeys.detail(params.id), - queryFn: () => - getClient() - .builderBinding.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useBuilderBindingsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useBuilderBindingsQuery.ts deleted file mode 100644 index dd88c3c42c..0000000000 --- a/sdk/constructive-react/src/compute/hooks/queries/useBuilderBindingsQuery.ts +++ /dev/null @@ -1,159 +0,0 @@ -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { builderBindingKeys } from '../query-keys'; -import type { - BuilderBindingSelect, - BuilderBindingWithRelations, - BuilderBindingFilter, - BuilderBindingOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - BuilderBindingSelect, - BuilderBindingWithRelations, - BuilderBindingFilter, - BuilderBindingOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const builderBindingsQueryKey = builderBindingKeys.list; -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * - * @example - * ```tsx - * const { data, isLoading } = useBuilderBindingsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useBuilderBindingsQuery< - S extends BuilderBindingSelect, - TData = { - builderBindings: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, BuilderBindingSelect>; - } & Omit< - UseQueryOptions< - { - builderBindings: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useBuilderBindingsQuery( - params: { - selection: ListSelectionConfig< - BuilderBindingSelect, - BuilderBindingFilter, - BuilderBindingOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - BuilderBindingSelect, - BuilderBindingFilter, - BuilderBindingOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: builderBindingKeys.list(args), - queryFn: () => getClient().builderBinding.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * - * @example - * ```ts - * const data = await fetchBuilderBindingsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchBuilderBindingsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, BuilderBindingSelect>; -}): Promise<{ - builderBindings: ConnectionResult>; -}>; -export async function fetchBuilderBindingsQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs< - BuilderBindingSelect, - BuilderBindingFilter, - BuilderBindingOrderBy - >(params.selection); - return getClient().builderBinding.findMany(args).unwrap(); -} -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * - * @example - * ```ts - * await prefetchBuilderBindingsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchBuilderBindingsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, BuilderBindingSelect>; - } -): Promise; -export async function prefetchBuilderBindingsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - BuilderBindingSelect, - BuilderBindingFilter, - BuilderBindingOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - BuilderBindingSelect, - BuilderBindingFilter, - BuilderBindingOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: builderBindingKeys.list(args), - queryFn: () => getClient().builderBinding.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformBuilderBindingQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformBuilderBindingQuery.ts deleted file mode 100644 index 638ca58416..0000000000 --- a/sdk/constructive-react/src/compute/hooks/queries/usePlatformBuilderBindingQuery.ts +++ /dev/null @@ -1,146 +0,0 @@ -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformBuilderBindingKeys } from '../query-keys'; -import type { - PlatformBuilderBindingSelect, - PlatformBuilderBindingWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PlatformBuilderBindingSelect, - PlatformBuilderBindingWithRelations, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const platformBuilderBindingQueryKey = platformBuilderBindingKeys.detail; -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * - * @example - * ```tsx - * const { data, isLoading } = usePlatformBuilderBindingQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function usePlatformBuilderBindingQuery< - S extends PlatformBuilderBindingSelect, - TData = { - platformBuilderBinding: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, PlatformBuilderBindingSelect>; - } & Omit< - UseQueryOptions< - { - platformBuilderBinding: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function usePlatformBuilderBindingQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: platformBuilderBindingKeys.detail(params.id), - queryFn: () => - getClient() - .platformBuilderBinding.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * - * @example - * ```ts - * const data = await fetchPlatformBuilderBindingQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchPlatformBuilderBindingQuery< - S extends PlatformBuilderBindingSelect, ->(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, PlatformBuilderBindingSelect>; -}): Promise<{ - platformBuilderBinding: InferSelectResult | null; -}>; -export async function fetchPlatformBuilderBindingQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .platformBuilderBinding.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * - * @example - * ```ts - * await prefetchPlatformBuilderBindingQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchPlatformBuilderBindingQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, PlatformBuilderBindingSelect>; - } -): Promise; -export async function prefetchPlatformBuilderBindingQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: platformBuilderBindingKeys.detail(params.id), - queryFn: () => - getClient() - .platformBuilderBinding.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformBuilderBindingsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformBuilderBindingsQuery.ts deleted file mode 100644 index 9071bbe899..0000000000 --- a/sdk/constructive-react/src/compute/hooks/queries/usePlatformBuilderBindingsQuery.ts +++ /dev/null @@ -1,180 +0,0 @@ -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { platformBuilderBindingKeys } from '../query-keys'; -import type { - PlatformBuilderBindingSelect, - PlatformBuilderBindingWithRelations, - PlatformBuilderBindingFilter, - PlatformBuilderBindingOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - PlatformBuilderBindingSelect, - PlatformBuilderBindingWithRelations, - PlatformBuilderBindingFilter, - PlatformBuilderBindingOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const platformBuilderBindingsQueryKey = platformBuilderBindingKeys.list; -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * - * @example - * ```tsx - * const { data, isLoading } = usePlatformBuilderBindingsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function usePlatformBuilderBindingsQuery< - S extends PlatformBuilderBindingSelect, - TData = { - platformBuilderBindings: ConnectionResult< - InferSelectResult - >; - }, ->( - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, PlatformBuilderBindingSelect>; - } & Omit< - UseQueryOptions< - { - platformBuilderBindings: ConnectionResult< - InferSelectResult - >; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function usePlatformBuilderBindingsQuery( - params: { - selection: ListSelectionConfig< - PlatformBuilderBindingSelect, - PlatformBuilderBindingFilter, - PlatformBuilderBindingOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - PlatformBuilderBindingSelect, - PlatformBuilderBindingFilter, - PlatformBuilderBindingOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: platformBuilderBindingKeys.list(args), - queryFn: () => getClient().platformBuilderBinding.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * - * @example - * ```ts - * const data = await fetchPlatformBuilderBindingsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchPlatformBuilderBindingsQuery< - S extends PlatformBuilderBindingSelect, ->(params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, PlatformBuilderBindingSelect>; -}): Promise<{ - platformBuilderBindings: ConnectionResult< - InferSelectResult - >; -}>; -export async function fetchPlatformBuilderBindingsQuery(params: { - selection: ListSelectionConfig< - PlatformBuilderBindingSelect, - PlatformBuilderBindingFilter, - PlatformBuilderBindingOrderBy - >; -}) { - const args = buildListSelectionArgs< - PlatformBuilderBindingSelect, - PlatformBuilderBindingFilter, - PlatformBuilderBindingOrderBy - >(params.selection); - return getClient().platformBuilderBinding.findMany(args).unwrap(); -} -/** - * Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST - * - * @example - * ```ts - * await prefetchPlatformBuilderBindingsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchPlatformBuilderBindingsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, PlatformBuilderBindingSelect>; - } -): Promise; -export async function prefetchPlatformBuilderBindingsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - PlatformBuilderBindingSelect, - PlatformBuilderBindingFilter, - PlatformBuilderBindingOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - PlatformBuilderBindingSelect, - PlatformBuilderBindingFilter, - PlatformBuilderBindingOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: platformBuilderBindingKeys.list(args), - queryFn: () => getClient().platformBuilderBinding.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformServiceBindingQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformServiceBindingQuery.ts new file mode 100644 index 0000000000..e644793718 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformServiceBindingQuery.ts @@ -0,0 +1,146 @@ +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { platformServiceBindingKeys } from '../query-keys'; +import type { + PlatformServiceBindingSelect, + PlatformServiceBindingWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlatformServiceBindingSelect, + PlatformServiceBindingWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformServiceBindingQueryKey = platformServiceBindingKeys.detail; +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformServiceBindingQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlatformServiceBindingQuery< + S extends PlatformServiceBindingSelect, + TData = { + platformServiceBinding: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformServiceBindingSelect>; + } & Omit< + UseQueryOptions< + { + platformServiceBinding: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformServiceBindingQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformServiceBindingKeys.detail(params.id), + queryFn: () => + getClient() + .platformServiceBinding.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * + * @example + * ```ts + * const data = await fetchPlatformServiceBindingQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlatformServiceBindingQuery< + S extends PlatformServiceBindingSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformServiceBindingSelect>; +}): Promise<{ + platformServiceBinding: InferSelectResult | null; +}>; +export async function fetchPlatformServiceBindingQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .platformServiceBinding.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * + * @example + * ```ts + * await prefetchPlatformServiceBindingQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlatformServiceBindingQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlatformServiceBindingSelect>; + } +): Promise; +export async function prefetchPlatformServiceBindingQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformServiceBindingKeys.detail(params.id), + queryFn: () => + getClient() + .platformServiceBinding.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/usePlatformServiceBindingsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/usePlatformServiceBindingsQuery.ts new file mode 100644 index 0000000000..d3db6328cc --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/usePlatformServiceBindingsQuery.ts @@ -0,0 +1,180 @@ +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { platformServiceBindingKeys } from '../query-keys'; +import type { + PlatformServiceBindingSelect, + PlatformServiceBindingWithRelations, + PlatformServiceBindingFilter, + PlatformServiceBindingOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlatformServiceBindingSelect, + PlatformServiceBindingWithRelations, + PlatformServiceBindingFilter, + PlatformServiceBindingOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const platformServiceBindingsQueryKey = platformServiceBindingKeys.list; +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * + * @example + * ```tsx + * const { data, isLoading } = usePlatformServiceBindingsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlatformServiceBindingsQuery< + S extends PlatformServiceBindingSelect, + TData = { + platformServiceBindings: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformServiceBindingSelect>; + } & Omit< + UseQueryOptions< + { + platformServiceBindings: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlatformServiceBindingsQuery( + params: { + selection: ListSelectionConfig< + PlatformServiceBindingSelect, + PlatformServiceBindingFilter, + PlatformServiceBindingOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PlatformServiceBindingSelect, + PlatformServiceBindingFilter, + PlatformServiceBindingOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: platformServiceBindingKeys.list(args), + queryFn: () => getClient().platformServiceBinding.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * + * @example + * ```ts + * const data = await fetchPlatformServiceBindingsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlatformServiceBindingsQuery< + S extends PlatformServiceBindingSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformServiceBindingSelect>; +}): Promise<{ + platformServiceBindings: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchPlatformServiceBindingsQuery(params: { + selection: ListSelectionConfig< + PlatformServiceBindingSelect, + PlatformServiceBindingFilter, + PlatformServiceBindingOrderBy + >; +}) { + const args = buildListSelectionArgs< + PlatformServiceBindingSelect, + PlatformServiceBindingFilter, + PlatformServiceBindingOrderBy + >(params.selection); + return getClient().platformServiceBinding.findMany(args).unwrap(); +} +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * + * @example + * ```ts + * await prefetchPlatformServiceBindingsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlatformServiceBindingsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PlatformServiceBindingSelect>; + } +): Promise; +export async function prefetchPlatformServiceBindingsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PlatformServiceBindingSelect, + PlatformServiceBindingFilter, + PlatformServiceBindingOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PlatformServiceBindingSelect, + PlatformServiceBindingFilter, + PlatformServiceBindingOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: platformServiceBindingKeys.list(args), + queryFn: () => getClient().platformServiceBinding.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useServiceBindingQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useServiceBindingQuery.ts new file mode 100644 index 0000000000..41206d8a77 --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useServiceBindingQuery.ts @@ -0,0 +1,138 @@ +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { serviceBindingKeys } from '../query-keys'; +import type { ServiceBindingSelect, ServiceBindingWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ServiceBindingSelect, ServiceBindingWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const serviceBindingQueryKey = serviceBindingKeys.detail; +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * + * @example + * ```tsx + * const { data, isLoading } = useServiceBindingQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useServiceBindingQuery< + S extends ServiceBindingSelect, + TData = { + serviceBinding: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ServiceBindingSelect>; + } & Omit< + UseQueryOptions< + { + serviceBinding: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useServiceBindingQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: serviceBindingKeys.detail(params.id), + queryFn: () => + getClient() + .serviceBinding.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * + * @example + * ```ts + * const data = await fetchServiceBindingQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchServiceBindingQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ServiceBindingSelect>; +}): Promise<{ + serviceBinding: InferSelectResult | null; +}>; +export async function fetchServiceBindingQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .serviceBinding.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * + * @example + * ```ts + * await prefetchServiceBindingQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchServiceBindingQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ServiceBindingSelect>; + } +): Promise; +export async function prefetchServiceBindingQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: serviceBindingKeys.detail(params.id), + queryFn: () => + getClient() + .serviceBinding.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/queries/useServiceBindingsQuery.ts b/sdk/constructive-react/src/compute/hooks/queries/useServiceBindingsQuery.ts new file mode 100644 index 0000000000..17c297adda --- /dev/null +++ b/sdk/constructive-react/src/compute/hooks/queries/useServiceBindingsQuery.ts @@ -0,0 +1,159 @@ +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { serviceBindingKeys } from '../query-keys'; +import type { + ServiceBindingSelect, + ServiceBindingWithRelations, + ServiceBindingFilter, + ServiceBindingOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + ServiceBindingSelect, + ServiceBindingWithRelations, + ServiceBindingFilter, + ServiceBindingOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const serviceBindingsQueryKey = serviceBindingKeys.list; +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * + * @example + * ```tsx + * const { data, isLoading } = useServiceBindingsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useServiceBindingsQuery< + S extends ServiceBindingSelect, + TData = { + serviceBindings: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ServiceBindingSelect>; + } & Omit< + UseQueryOptions< + { + serviceBindings: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useServiceBindingsQuery( + params: { + selection: ListSelectionConfig< + ServiceBindingSelect, + ServiceBindingFilter, + ServiceBindingOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + ServiceBindingSelect, + ServiceBindingFilter, + ServiceBindingOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: serviceBindingKeys.list(args), + queryFn: () => getClient().serviceBinding.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * + * @example + * ```ts + * const data = await fetchServiceBindingsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchServiceBindingsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ServiceBindingSelect>; +}): Promise<{ + serviceBindings: ConnectionResult>; +}>; +export async function fetchServiceBindingsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + ServiceBindingSelect, + ServiceBindingFilter, + ServiceBindingOrderBy + >(params.selection); + return getClient().serviceBinding.findMany(args).unwrap(); +} +/** + * Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config + * + * @example + * ```ts + * await prefetchServiceBindingsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchServiceBindingsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ServiceBindingSelect>; + } +): Promise; +export async function prefetchServiceBindingsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + ServiceBindingSelect, + ServiceBindingFilter, + ServiceBindingOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + ServiceBindingSelect, + ServiceBindingFilter, + ServiceBindingOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: serviceBindingKeys.list(args), + queryFn: () => getClient().serviceBinding.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/compute/hooks/query-keys.ts b/sdk/constructive-react/src/compute/hooks/query-keys.ts index 47f4410b39..b34c4fbf0e 100644 --- a/sdk/constructive-react/src/compute/hooks/query-keys.ts +++ b/sdk/constructive-react/src/compute/hooks/query-keys.ts @@ -37,15 +37,6 @@ export const buildStepKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...buildStepKeys.details(), id] as const, } as const; -export const builderBindingKeys = { - /** All builderBinding queries */ all: ['builderbinding'] as const, - /** List query keys */ lists: () => [...builderBindingKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...builderBindingKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...builderBindingKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...builderBindingKeys.details(), id] as const, -} as const; export const contentPresetKeys = { /** All contentPreset queries */ all: ['contentpreset'] as const, /** List query keys */ lists: () => [...contentPresetKeys.all, 'list'] as const, @@ -461,15 +452,6 @@ export const platformBuildStepKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...platformBuildStepKeys.details(), id] as const, } as const; -export const platformBuilderBindingKeys = { - /** All platformBuilderBinding queries */ all: ['platformbuilderbinding'] as const, - /** List query keys */ lists: () => [...platformBuilderBindingKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...platformBuilderBindingKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...platformBuilderBindingKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...platformBuilderBindingKeys.details(), id] as const, -} as const; export const platformFunctionApiBindingKeys = { /** All platformFunctionApiBinding queries */ all: ['platformfunctionapibinding'] as const, /** List query keys */ lists: () => [...platformFunctionApiBindingKeys.all, 'list'] as const, @@ -928,6 +910,15 @@ export const platformResourcesResolvedRequirementKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...platformResourcesResolvedRequirementKeys.details(), id] as const, } as const; +export const platformServiceBindingKeys = { + /** All platformServiceBinding queries */ all: ['platformservicebinding'] as const, + /** List query keys */ lists: () => [...platformServiceBindingKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...platformServiceBindingKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...platformServiceBindingKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...platformServiceBindingKeys.details(), id] as const, +} as const; export const platformWebhookEndpointKeys = { /** All platformWebhookEndpoint queries */ all: ['platformwebhookendpoint'] as const, /** List query keys */ lists: () => [...platformWebhookEndpointKeys.all, 'list'] as const, @@ -1182,6 +1173,15 @@ export const resourcesResolvedRequirementKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...resourcesResolvedRequirementKeys.details(), id] as const, } as const; +export const serviceBindingKeys = { + /** All serviceBinding queries */ all: ['servicebinding'] as const, + /** List query keys */ lists: () => [...serviceBindingKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...serviceBindingKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...serviceBindingKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...serviceBindingKeys.details(), id] as const, +} as const; export const webhookEndpointKeys = { /** All webhookEndpoint queries */ all: ['webhookendpoint'] as const, /** List query keys */ lists: () => [...webhookEndpointKeys.all, 'list'] as const, @@ -1236,7 +1236,6 @@ export const customQueryKeys = { export const queryKeys = { build: buildKeys, buildStep: buildStepKeys, - builderBinding: builderBindingKeys, contentPreset: contentPresetKeys, databaseFunctionGraph: databaseFunctionGraphKeys, databaseFunctionGraphExecutionCancelRequest: databaseFunctionGraphExecutionCancelRequestKeys, @@ -1280,7 +1279,6 @@ export const queryKeys = { namespaceEvent: namespaceEventKeys, platformBuild: platformBuildKeys, platformBuildStep: platformBuildStepKeys, - platformBuilderBinding: platformBuilderBindingKeys, platformFunctionApiBinding: platformFunctionApiBindingKeys, platformFunctionCapabilityBinding: platformFunctionCapabilityBindingKeys, platformFunctionDefinition: platformFunctionDefinitionKeys, @@ -1327,6 +1325,7 @@ export const queryKeys = { platformResourcesHealth: platformResourcesHealthKeys, platformResourcesRequirementsState: platformResourcesRequirementsStateKeys, platformResourcesResolvedRequirement: platformResourcesResolvedRequirementKeys, + platformServiceBinding: platformServiceBindingKeys, platformWebhookEndpoint: platformWebhookEndpointKeys, platformWebhookEvent: platformWebhookEventKeys, proposalComment: proposalCommentKeys, @@ -1355,6 +1354,7 @@ export const queryKeys = { resourcesHealth: resourcesHealthKeys, resourcesRequirementsState: resourcesRequirementsStateKeys, resourcesResolvedRequirement: resourcesResolvedRequirementKeys, + serviceBinding: serviceBindingKeys, webhookEndpoint: webhookEndpointKeys, webhookEvent: webhookEventKeys, custom: customQueryKeys, diff --git a/sdk/constructive-react/src/compute/orm/README.md b/sdk/constructive-react/src/compute/orm/README.md index 68d50bcb97..abcdd72723 100644 --- a/sdk/constructive-react/src/compute/orm/README.md +++ b/sdk/constructive-react/src/compute/orm/README.md @@ -23,15 +23,14 @@ const db = createClient({ |-------|------------| | `build` | findMany, findOne, create, update, delete | | `buildStep` | findMany, findOne, create, update, delete | -| `builderBinding` | findMany, findOne, create, update, delete | | `contentPreset` | findMany, findOne, create, update, delete | -| `databaseFunctionGraph` | findMany, findOne, create, update, delete | +| `databaseFunctionGraph` | findMany, findOne, update, delete | | `databaseFunctionGraphExecutionCancelRequest` | findMany, findOne, create, update, delete | | `databaseFunctionGraphExecution` | findMany, findOne, create, update, delete | | `databaseFunctionGraphExecutionNodeState` | findMany, findOne, create, update, delete | | `databaseFunctionGraphExecutionOutput` | findMany, findOne, create, update, delete | | `databaseGraphCommit` | findMany, findOne, create, update, delete | -| `databaseGraphGetAllTreeNodesRecord` | findMany, findOne, create, update, delete | +| `databaseGraphGetAllTreeNodesRecord` | findMany, findOne, update, delete | | `databaseGraphObject` | findMany, findOne, create, update, delete | | `databaseGraphRef` | findMany, findOne, create, update, delete | | `databaseGraphStore` | findMany, findOne, create, update, delete | @@ -43,7 +42,7 @@ const db = createClient({ | `functionDeploymentEvent` | findMany, findOne, create, update, delete | | `functionExecutionLog` | findMany, findOne, create, update, delete | | `functionGraphCommit` | findMany, findOne, create, update, delete | -| `functionGraph` | findMany, findOne, create, update, delete | +| `functionGraph` | findMany, findOne, update, delete | | `functionGraphExecutionCancelRequest` | findMany, findOne, create, update, delete | | `functionGraphExecution` | findMany, findOne, create, update, delete | | `functionGraphExecutionNodeState` | findMany, findOne, create, update, delete | @@ -54,11 +53,11 @@ const db = createClient({ | `functionInvocationAttempt` | findMany, findOne, create, update, delete | | `functionInvocation` | findMany, findOne, create, update, delete | | `functionSchedule` | findMany, findOne, create, update, delete | -| `getAllTreeNodesRecord` | findMany, findOne, create, update, delete | +| `getAllTreeNodesRecord` | findMany, findOne, update, delete | | `image` | findMany, findOne, create, update, delete | | `imageGrant` | findMany, findOne, create, update, delete | | `infraCommit` | findMany, findOne, create, update, delete | -| `infraGetAllTreeNodesRecord` | findMany, findOne, create, update, delete | +| `infraGetAllTreeNodesRecord` | findMany, findOne, update, delete | | `infraObject` | findMany, findOne, create, update, delete | | `infraRef` | findMany, findOne, create, update, delete | | `infraStore` | findMany, findOne, create, update, delete | @@ -67,7 +66,6 @@ const db = createClient({ | `namespaceEvent` | findMany, findOne, create, update, delete | | `platformBuild` | findMany, findOne, create, update, delete | | `platformBuildStep` | findMany, findOne, create, update, delete | -| `platformBuilderBinding` | findMany, findOne, create, update, delete | | `platformFunctionApiBinding` | findMany, findOne, create, update, delete | | `platformFunctionCapabilityBinding` | findMany, findOne, create, update, delete | | `platformFunctionDefinition` | findMany, findOne, create, update, delete | @@ -80,7 +78,7 @@ const db = createClient({ | `platformImage` | findMany, findOne, create, update, delete | | `platformImageGrant` | findMany, findOne, create, update, delete | | `platformInfraCommit` | findMany, findOne, create, update, delete | -| `platformInfraGetAllTreeNodesRecord` | findMany, findOne, create, update, delete | +| `platformInfraGetAllTreeNodesRecord` | findMany, findOne, update, delete | | `platformInfraObject` | findMany, findOne, create, update, delete | | `platformInfraRef` | findMany, findOne, create, update, delete | | `platformInfraStore` | findMany, findOne, create, update, delete | @@ -102,18 +100,19 @@ const db = createClient({ | `platformRepositoryRequiredCheck` | findMany, findOne, create, update, delete | | `platformRepositoryWorkflow` | findMany, findOne, create, update, delete | | `platformResource` | findMany, findOne, create, update, delete | -| `platformResourceDeclaredCapacity` | findMany, findOne, create, update, delete | +| `platformResourceDeclaredCapacity` | findMany, findOne, update, delete | | `platformResourceDefinition` | findMany, findOne, create, update, delete | | `platformResourceEvent` | findMany, findOne, create, update, delete | | `platformResourceInstallation` | findMany, findOne, create, update, delete | -| `platformResourceObservedStorage` | findMany, findOne, create, update, delete | +| `platformResourceObservedStorage` | findMany, findOne, update, delete | | `platformResourceStatusCheck` | findMany, findOne, create, update, delete | | `platformResourceUsageLog` | findMany, findOne, create, update, delete | | `platformResourceUsageSummary` | findMany, findOne, create, update, delete | -| `platformResourceUtilization` | findMany, findOne, create, update, delete | -| `platformResourcesHealth` | findMany, findOne, create, update, delete | -| `platformResourcesRequirementsState` | findMany, findOne, create, update, delete | -| `platformResourcesResolvedRequirement` | findMany, findOne, create, update, delete | +| `platformResourceUtilization` | findMany, findOne, update, delete | +| `platformResourcesHealth` | findMany, findOne, update, delete | +| `platformResourcesRequirementsState` | findMany, findOne, update, delete | +| `platformResourcesResolvedRequirement` | findMany, findOne, update, delete | +| `platformServiceBinding` | findMany, findOne, create, update, delete | | `platformWebhookEndpoint` | findMany, findOne, create, update, delete | | `platformWebhookEvent` | findMany, findOne, create, update, delete | | `proposalComment` | findMany, findOne, create, update, delete | @@ -130,18 +129,19 @@ const db = createClient({ | `repositoryRequiredCheck` | findMany, findOne, create, update, delete | | `repositoryWorkflow` | findMany, findOne, create, update, delete | | `resource` | findMany, findOne, create, update, delete | -| `resourceDeclaredCapacity` | findMany, findOne, create, update, delete | +| `resourceDeclaredCapacity` | findMany, findOne, update, delete | | `resourceDefinition` | findMany, findOne, create, update, delete | | `resourceEvent` | findMany, findOne, create, update, delete | | `resourceInstallation` | findMany, findOne, create, update, delete | -| `resourceObservedStorage` | findMany, findOne, create, update, delete | +| `resourceObservedStorage` | findMany, findOne, update, delete | | `resourceStatusCheck` | findMany, findOne, create, update, delete | | `resourceUsageLog` | findMany, findOne, create, update, delete | | `resourceUsageSummary` | findMany, findOne, create, update, delete | -| `resourceUtilization` | findMany, findOne, create, update, delete | -| `resourcesHealth` | findMany, findOne, create, update, delete | -| `resourcesRequirementsState` | findMany, findOne, create, update, delete | -| `resourcesResolvedRequirement` | findMany, findOne, create, update, delete | +| `resourceUtilization` | findMany, findOne, update, delete | +| `resourcesHealth` | findMany, findOne, update, delete | +| `resourcesRequirementsState` | findMany, findOne, update, delete | +| `resourcesResolvedRequirement` | findMany, findOne, update, delete | +| `serviceBinding` | findMany, findOne, create, update, delete | | `webhookEndpoint` | findMany, findOne, create, update, delete | | `webhookEvent` | findMany, findOne, create, update, delete | @@ -168,6 +168,8 @@ CRUD operations for Build records. | `imageRef` | String | Yes | | `jobId` | BigInt | Yes | | `logs` | ConstructiveInternalTypeUpload | Yes | +| `logsUrl` | String | Yes | +| `logsVersions` | FileVersion | Yes | | `matrixKey` | String | Yes | | `metadata` | JSON | Yes | | `proposalId` | UUID | Yes | @@ -183,13 +185,13 @@ CRUD operations for Build records. ```typescript // List all build records -const items = await db.build.findMany({ select: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, databaseId: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }).execute(); +const items = await db.build.findMany({ select: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, databaseId: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, logsUrl: true, logsVersions: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }).execute(); // Get one by id -const item = await db.build.findOne({ id: '', select: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, databaseId: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }).execute(); +const item = await db.build.findOne({ id: '', select: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, databaseId: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, logsUrl: true, logsVersions: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }).execute(); // Create -const created = await db.build.create({ data: { actorId: '', attempt: '', commitSha: '', conclusion: '', createdByPrincipal: '', databaseId: '', eventId: '', finishedAt: '', imageRef: '', jobId: '', logs: '', matrixKey: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }, select: { id: true } }).execute(); +const created = await db.build.create({ data: { actorId: '', attempt: '', commitSha: '', conclusion: '', createdByPrincipal: '', databaseId: '', eventId: '', finishedAt: '', imageRef: '', jobId: '', logs: '', logsUrl: '', logsVersions: '', matrixKey: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }, select: { id: true } }).execute(); // Update const updated = await db.build.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -242,49 +244,6 @@ const updated = await db.buildStep.update({ where: { id: '' }, data: { bui const deleted = await db.buildStep.delete({ where: { id: '' } }).execute(); ``` -### `db.builderBinding` - -CRUD operations for BuilderBinding records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `createdAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `createdByPrincipal` | UUID | Yes | -| `databaseId` | UUID | Yes | -| `id` | UUID | No | -| `installationId` | UUID | Yes | -| `lastError` | String | Yes | -| `metadata` | JSON | Yes | -| `namespaceId` | UUID | Yes | -| `observedHost` | String | Yes | -| `realm` | String | Yes | -| `status` | String | Yes | -| `updatedAt` | Datetime | No | -| `updatedBy` | UUID | Yes | -| `updatedByPrincipal` | UUID | Yes | - -**Operations:** - -```typescript -// List all builderBinding records -const items = await db.builderBinding.findMany({ select: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); - -// Get one by id -const item = await db.builderBinding.findOne({ id: '', select: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); - -// Create -const created = await db.builderBinding.create({ data: { createdBy: '', createdByPrincipal: '', databaseId: '', installationId: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.builderBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.builderBinding.delete({ where: { id: '' } }).execute(); -``` - ### `db.contentPreset` CRUD operations for ContentPreset records. @@ -354,9 +313,6 @@ const items = await db.databaseFunctionGraph.findMany({ select: { context: true, // Get one by id const item = await db.databaseFunctionGraph.findOne({ id: '', select: { context: true, createdAt: true, createdBy: true, databaseId: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, storeId: true, updatedAt: true, validationErrors: true } }).execute(); -// Create -const created = await db.databaseFunctionGraph.create({ data: { context: '', createdBy: '', databaseId: '', definitionsCommitId: '', description: '', isValid: '', name: '', storeId: '', validationErrors: '' }, select: { id: true } }).execute(); - // Update const updated = await db.databaseFunctionGraph.update({ where: { id: '' }, data: { context: '' }, select: { id: true } }).execute(); @@ -595,9 +551,6 @@ const items = await db.databaseGraphGetAllTreeNodesRecord.findMany({ select: { d // Get one by id const item = await db.databaseGraphGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); -// Create -const created = await db.databaseGraphGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); - // Update const updated = await db.databaseGraphGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); @@ -1086,9 +1039,6 @@ const items = await db.functionGraph.findMany({ select: { context: true, created // Get one by id const item = await db.functionGraph.findOne({ id: '', select: { context: true, createdAt: true, createdBy: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, scopeId: true, storeId: true, updatedAt: true, validationErrors: true } }).execute(); -// Create -const created = await db.functionGraph.create({ data: { context: '', createdBy: '', definitionsCommitId: '', description: '', isValid: '', name: '', scopeId: '', storeId: '', validationErrors: '' }, select: { id: true } }).execute(); - // Update const updated = await db.functionGraph.update({ where: { id: '' }, data: { context: '' }, select: { id: true } }).execute(); @@ -1527,9 +1477,6 @@ const items = await db.getAllTreeNodesRecord.findMany({ select: { data: true, pa // Get one by id const item = await db.getAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); -// Create -const created = await db.getAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); - // Update const updated = await db.getAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); @@ -1681,9 +1628,6 @@ const items = await db.infraGetAllTreeNodesRecord.findMany({ select: { data: tru // Get one by id const item = await db.infraGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); -// Create -const created = await db.infraGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); - // Update const updated = await db.infraGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); @@ -1806,6 +1750,8 @@ CRUD operations for IntegrationProvider records. | `icon` | String | Yes | | `id` | UUID | No | | `logo` | ConstructiveInternalTypeImage | Yes | +| `logoUrl` | String | Yes | +| `logoVersions` | FileVersion | Yes | | `name` | String | Yes | | `requiredConfigs` | ResourceRequirement | Yes | | `requiredSecrets` | ResourceRequirement | Yes | @@ -1816,13 +1762,13 @@ CRUD operations for IntegrationProvider records. ```typescript // List all integrationProvider records -const items = await db.integrationProvider.findMany({ select: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, name: true, requiredConfigs: true, requiredSecrets: true, slug: true, updatedAt: true } }).execute(); +const items = await db.integrationProvider.findMany({ select: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, logoUrl: true, logoVersions: true, name: true, requiredConfigs: true, requiredSecrets: true, slug: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.integrationProvider.findOne({ id: '', select: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, name: true, requiredConfigs: true, requiredSecrets: true, slug: true, updatedAt: true } }).execute(); +const item = await db.integrationProvider.findOne({ id: '', select: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, logoUrl: true, logoVersions: true, name: true, requiredConfigs: true, requiredSecrets: true, slug: true, updatedAt: true } }).execute(); // Create -const created = await db.integrationProvider.create({ data: { brand: '', category: '', description: '', icon: '', logo: '', name: '', requiredConfigs: '', requiredSecrets: '', slug: '' }, select: { id: true } }).execute(); +const created = await db.integrationProvider.create({ data: { brand: '', category: '', description: '', icon: '', logo: '', logoUrl: '', logoVersions: '', name: '', requiredConfigs: '', requiredSecrets: '', slug: '' }, select: { id: true } }).execute(); // Update const updated = await db.integrationProvider.update({ where: { id: '' }, data: { brand: '' }, select: { id: true } }).execute(); @@ -1929,6 +1875,8 @@ CRUD operations for PlatformBuild records. | `imageRef` | String | Yes | | `jobId` | BigInt | Yes | | `logs` | ConstructiveInternalTypeUpload | Yes | +| `logsUrl` | String | Yes | +| `logsVersions` | FileVersion | Yes | | `matrixKey` | String | Yes | | `metadata` | JSON | Yes | | `proposalId` | UUID | Yes | @@ -1944,13 +1892,13 @@ CRUD operations for PlatformBuild records. ```typescript // List all platformBuild records -const items = await db.platformBuild.findMany({ select: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }).execute(); +const items = await db.platformBuild.findMany({ select: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, logsUrl: true, logsVersions: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }).execute(); // Get one by id -const item = await db.platformBuild.findOne({ id: '', select: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }).execute(); +const item = await db.platformBuild.findOne({ id: '', select: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, logsUrl: true, logsVersions: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }).execute(); // Create -const created = await db.platformBuild.create({ data: { actorId: '', attempt: '', commitSha: '', conclusion: '', createdByPrincipal: '', eventId: '', finishedAt: '', imageRef: '', jobId: '', logs: '', matrixKey: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }, select: { id: true } }).execute(); +const created = await db.platformBuild.create({ data: { actorId: '', attempt: '', commitSha: '', conclusion: '', createdByPrincipal: '', eventId: '', finishedAt: '', imageRef: '', jobId: '', logs: '', logsUrl: '', logsVersions: '', matrixKey: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformBuild.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -2002,48 +1950,6 @@ const updated = await db.platformBuildStep.update({ where: { id: '' }, dat const deleted = await db.platformBuildStep.delete({ where: { id: '' } }).execute(); ``` -### `db.platformBuilderBinding` - -CRUD operations for PlatformBuilderBinding records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `createdAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `createdByPrincipal` | UUID | Yes | -| `id` | UUID | No | -| `installationId` | UUID | Yes | -| `lastError` | String | Yes | -| `metadata` | JSON | Yes | -| `namespaceId` | UUID | Yes | -| `observedHost` | String | Yes | -| `realm` | String | Yes | -| `status` | String | Yes | -| `updatedAt` | Datetime | No | -| `updatedBy` | UUID | Yes | -| `updatedByPrincipal` | UUID | Yes | - -**Operations:** - -```typescript -// List all platformBuilderBinding records -const items = await db.platformBuilderBinding.findMany({ select: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); - -// Get one by id -const item = await db.platformBuilderBinding.findOne({ id: '', select: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); - -// Create -const created = await db.platformBuilderBinding.create({ data: { createdBy: '', createdByPrincipal: '', installationId: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.platformBuilderBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.platformBuilderBinding.delete({ where: { id: '' } }).execute(); -``` - ### `db.platformFunctionApiBinding` CRUD operations for PlatformFunctionApiBinding records. @@ -2593,9 +2499,6 @@ const items = await db.platformInfraGetAllTreeNodesRecord.findMany({ select: { d // Get one by id const item = await db.platformInfraGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); -// Create -const created = await db.platformInfraGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformInfraGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); @@ -2865,12 +2768,16 @@ CRUD operations for PlatformProposalComment records. |-------|------|----------| | `actorId` | UUID | Yes | | `attachments` | ConstructiveInternalTypeUpload | Yes | +| `attachmentsUrl` | String | Yes | +| `attachmentsVersions` | FileVersion | Yes | | `body` | String | Yes | | `bodyTrgmSimilarity` | Float | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | | `createdByPrincipal` | UUID | Yes | | `embedding` | Vector | Yes | +| `embeddingModel` | String | Yes | +| `embeddingModelTrgmSimilarity` | Float | Yes | | `embeddingUpdatedAt` | Datetime | Yes | | `embeddingVectorDistance` | Float | Yes | | `id` | UUID | No | @@ -2891,13 +2798,13 @@ CRUD operations for PlatformProposalComment records. ```typescript // List all platformProposalComment records -const items = await db.platformProposalComment.findMany({ select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.platformProposalComment.findMany({ select: { actorId: true, attachments: true, attachmentsUrl: true, attachmentsVersions: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformProposalComment.findOne({ id: '', select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.platformProposalComment.findOne({ id: '', select: { actorId: true, attachments: true, attachmentsUrl: true, attachmentsVersions: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformProposalComment.create({ data: { actorId: '', attachments: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const created = await db.platformProposalComment.create({ data: { actorId: '', attachments: '', attachmentsUrl: '', attachmentsVersions: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformProposalComment.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -2931,6 +2838,8 @@ CRUD operations for PlatformProposal records. | `decidedAt` | Datetime | Yes | | `dueAt` | Datetime | Yes | | `embedding` | Vector | Yes | +| `embeddingModel` | String | Yes | +| `embeddingModelTrgmSimilarity` | Float | Yes | | `embeddingUpdatedAt` | Datetime | Yes | | `embeddingVectorDistance` | Float | Yes | | `id` | UUID | No | @@ -2968,13 +2877,13 @@ CRUD operations for PlatformProposal records. ```typescript // List all platformProposal records -const items = await db.platformProposal.findMany({ select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.platformProposal.findMany({ select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformProposal.findOne({ id: '', select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.platformProposal.findOne({ id: '', select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformProposal.create({ data: { actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', decidedAt: '', dueAt: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const created = await db.platformProposal.create({ data: { actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', decidedAt: '', dueAt: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformProposal.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -3301,6 +3210,8 @@ CRUD operations for PlatformRepository records. | `description` | String | Yes | | `descriptionTrgmSimilarity` | Float | Yes | | `embedding` | Vector | Yes | +| `embeddingModel` | String | Yes | +| `embeddingModelTrgmSimilarity` | Float | Yes | | `embeddingUpdatedAt` | Datetime | Yes | | `embeddingVectorDistance` | Float | Yes | | `externalId` | String | Yes | @@ -3328,13 +3239,13 @@ CRUD operations for PlatformRepository records. ```typescript // List all platformRepository records -const items = await db.platformRepository.findMany({ select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); +const items = await db.platformRepository.findMany({ select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); // Get one by id -const item = await db.platformRepository.findOne({ id: '', select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); +const item = await db.platformRepository.findOne({ id: '', select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); // Create -const created = await db.platformRepository.create({ data: { cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }, select: { id: true } }).execute(); +const created = await db.platformRepository.create({ data: { cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformRepository.update({ where: { id: '' }, data: { cloneUrl: '' }, select: { id: true } }).execute(); @@ -3563,9 +3474,6 @@ const items = await db.platformResourceDeclaredCapacity.findMany({ select: { cpu // Get one by id const item = await db.platformResourceDeclaredCapacity.findOne({ id: '', select: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true, storageTotalBytes: true } }).execute(); -// Create -const created = await db.platformResourceDeclaredCapacity.create({ data: { cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '', storageTotalBytes: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformResourceDeclaredCapacity.update({ where: { id: '' }, data: { cpuLimitMillicores: '' }, select: { id: true } }).execute(); @@ -3735,9 +3643,6 @@ const items = await db.platformResourceObservedStorage.findMany({ select: { capa // Get one by id const item = await db.platformResourceObservedStorage.findOne({ id: '', select: { capacity: true, capacityBytes: true, claimName: true, declaredStorageClass: true, declaredStorageSizeBytes: true, declaredStorageTotalBytes: true, installationId: true, isBound: true, kind: true, namespaceId: true, phase: true, requested: true, requestedBytes: true, resourceId: true, resourceStatus: true, slug: true, storageClass: true, storageName: true } }).execute(); -// Create -const created = await db.platformResourceObservedStorage.create({ data: { capacity: '', capacityBytes: '', claimName: '', declaredStorageClass: '', declaredStorageSizeBytes: '', declaredStorageTotalBytes: '', installationId: '', isBound: '', kind: '', namespaceId: '', phase: '', requested: '', requestedBytes: '', resourceId: '', resourceStatus: '', slug: '', storageClass: '', storageName: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformResourceObservedStorage.update({ where: { id: '' }, data: { capacity: '' }, select: { id: true } }).execute(); @@ -3891,9 +3796,6 @@ const items = await db.platformResourceUtilization.findMany({ select: { avgMemor // Get one by id const item = await db.platformResourceUtilization.findOne({ id: '', select: { avgMemoryBytes: true, cpuLimitMillicores: true, cpuPeakUtilization: true, cpuRequestHeadroomMillicores: true, cpuRequestMillicores: true, date: true, gbSeconds: true, kind: true, maxCpuMillicores: true, maxMemoryBytes: true, memoryLimitBytes: true, memoryPeakUtilization: true, memoryRequestBytes: true, memoryRequestHeadroomBytes: true, namespaceId: true, replicas: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }).execute(); -// Create -const created = await db.platformResourceUtilization.create({ data: { avgMemoryBytes: '', cpuLimitMillicores: '', cpuPeakUtilization: '', cpuRequestHeadroomMillicores: '', cpuRequestMillicores: '', date: '', gbSeconds: '', kind: '', maxCpuMillicores: '', maxMemoryBytes: '', memoryLimitBytes: '', memoryPeakUtilization: '', memoryRequestBytes: '', memoryRequestHeadroomBytes: '', namespaceId: '', replicas: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformResourceUtilization.update({ where: { id: '' }, data: { avgMemoryBytes: '' }, select: { id: true } }).execute(); @@ -3954,9 +3856,6 @@ const items = await db.platformResourcesHealth.findMany({ select: { annotations: // Get one by id const item = await db.platformResourcesHealth.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); -// Create -const created = await db.platformResourcesHealth.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformResourcesHealth.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -3989,9 +3888,6 @@ const items = await db.platformResourcesRequirementsState.findMany({ select: { c // Get one by id const item = await db.platformResourcesRequirementsState.findOne({ id: '', select: { configHash: true, configObjectName: true, requirementsHash: true, resourceId: true, secretsHash: true, secretsObjectName: true, slug: true } }).execute(); -// Create -const created = await db.platformResourcesRequirementsState.create({ data: { configHash: '', configObjectName: '', requirementsHash: '', resourceId: '', secretsHash: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformResourcesRequirementsState.update({ where: { id: '' }, data: { configHash: '' }, select: { id: true } }).execute(); @@ -4028,9 +3924,6 @@ const items = await db.platformResourcesResolvedRequirement.findMany({ select: { // Get one by id const item = await db.platformResourcesResolvedRequirement.findOne({ id: '', select: { atomId: true, configObjectName: true, name: true, namespaceId: true, present: true, realm: true, required: true, requirementKind: true, resourceId: true, secretsObjectName: true, slug: true } }).execute(); -// Create -const created = await db.platformResourcesResolvedRequirement.create({ data: { atomId: '', configObjectName: '', name: '', namespaceId: '', present: '', realm: '', required: '', requirementKind: '', resourceId: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformResourcesResolvedRequirement.update({ where: { id: '' }, data: { atomId: '' }, select: { id: true } }).execute(); @@ -4038,6 +3931,50 @@ const updated = await db.platformResourcesResolvedRequirement.update({ where: { const deleted = await db.platformResourcesResolvedRequirement.delete({ where: { id: '' } }).execute(); ``` +### `db.platformServiceBinding` + +CRUD operations for PlatformServiceBinding records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `id` | UUID | No | +| `installationId` | UUID | Yes | +| `installationScope` | String | Yes | +| `kind` | String | Yes | +| `lastError` | String | Yes | +| `metadata` | JSON | Yes | +| `namespaceId` | UUID | Yes | +| `observedHost` | String | Yes | +| `realm` | String | Yes | +| `status` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformServiceBinding records +const items = await db.platformServiceBinding.findMany({ select: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, installationScope: true, kind: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformServiceBinding.findOne({ id: '', select: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, installationScope: true, kind: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformServiceBinding.create({ data: { createdBy: '', createdByPrincipal: '', installationId: '', installationScope: '', kind: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformServiceBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformServiceBinding.delete({ where: { id: '' } }).execute(); +``` + ### `db.platformWebhookEndpoint` CRUD operations for PlatformWebhookEndpoint records. @@ -4131,6 +4068,8 @@ CRUD operations for ProposalComment records. |-------|------|----------| | `actorId` | UUID | Yes | | `attachments` | ConstructiveInternalTypeUpload | Yes | +| `attachmentsUrl` | String | Yes | +| `attachmentsVersions` | FileVersion | Yes | | `body` | String | Yes | | `bodyTrgmSimilarity` | Float | Yes | | `createdAt` | Datetime | No | @@ -4138,6 +4077,8 @@ CRUD operations for ProposalComment records. | `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `embedding` | Vector | Yes | +| `embeddingModel` | String | Yes | +| `embeddingModelTrgmSimilarity` | Float | Yes | | `embeddingUpdatedAt` | Datetime | Yes | | `embeddingVectorDistance` | Float | Yes | | `id` | UUID | No | @@ -4158,13 +4099,13 @@ CRUD operations for ProposalComment records. ```typescript // List all proposalComment records -const items = await db.proposalComment.findMany({ select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.proposalComment.findMany({ select: { actorId: true, attachments: true, attachmentsUrl: true, attachmentsVersions: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.proposalComment.findOne({ id: '', select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.proposalComment.findOne({ id: '', select: { actorId: true, attachments: true, attachmentsUrl: true, attachmentsVersions: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.proposalComment.create({ data: { actorId: '', attachments: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const created = await db.proposalComment.create({ data: { actorId: '', attachments: '', attachmentsUrl: '', attachmentsVersions: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.proposalComment.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -4199,6 +4140,8 @@ CRUD operations for Proposal records. | `decidedAt` | Datetime | Yes | | `dueAt` | Datetime | Yes | | `embedding` | Vector | Yes | +| `embeddingModel` | String | Yes | +| `embeddingModelTrgmSimilarity` | Float | Yes | | `embeddingUpdatedAt` | Datetime | Yes | | `embeddingVectorDistance` | Float | Yes | | `id` | UUID | No | @@ -4236,13 +4179,13 @@ CRUD operations for Proposal records. ```typescript // List all proposal records -const items = await db.proposal.findMany({ select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.proposal.findMany({ select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.proposal.findOne({ id: '', select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.proposal.findOne({ id: '', select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.proposal.create({ data: { actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', decidedAt: '', dueAt: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const created = await db.proposal.create({ data: { actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', decidedAt: '', dueAt: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.proposal.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -4577,6 +4520,8 @@ CRUD operations for Repository records. | `description` | String | Yes | | `descriptionTrgmSimilarity` | Float | Yes | | `embedding` | Vector | Yes | +| `embeddingModel` | String | Yes | +| `embeddingModelTrgmSimilarity` | Float | Yes | | `embeddingUpdatedAt` | Datetime | Yes | | `embeddingVectorDistance` | Float | Yes | | `externalId` | String | Yes | @@ -4604,13 +4549,13 @@ CRUD operations for Repository records. ```typescript // List all repository records -const items = await db.repository.findMany({ select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); +const items = await db.repository.findMany({ select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); // Get one by id -const item = await db.repository.findOne({ id: '', select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); +const item = await db.repository.findOne({ id: '', select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); // Create -const created = await db.repository.create({ data: { cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }, select: { id: true } }).execute(); +const created = await db.repository.create({ data: { cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }, select: { id: true } }).execute(); // Update const updated = await db.repository.update({ where: { id: '' }, data: { cloneUrl: '' }, select: { id: true } }).execute(); @@ -4843,9 +4788,6 @@ const items = await db.resourceDeclaredCapacity.findMany({ select: { cpuLimitMil // Get one by id const item = await db.resourceDeclaredCapacity.findOne({ id: '', select: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true, storageTotalBytes: true } }).execute(); -// Create -const created = await db.resourceDeclaredCapacity.create({ data: { cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '', storageTotalBytes: '' }, select: { id: true } }).execute(); - // Update const updated = await db.resourceDeclaredCapacity.update({ where: { id: '' }, data: { cpuLimitMillicores: '' }, select: { id: true } }).execute(); @@ -5018,9 +4960,6 @@ const items = await db.resourceObservedStorage.findMany({ select: { capacity: tr // Get one by id const item = await db.resourceObservedStorage.findOne({ id: '', select: { capacity: true, capacityBytes: true, claimName: true, declaredStorageClass: true, declaredStorageSizeBytes: true, declaredStorageTotalBytes: true, installationId: true, isBound: true, kind: true, namespaceId: true, phase: true, requested: true, requestedBytes: true, resourceId: true, resourceStatus: true, slug: true, storageClass: true, storageName: true } }).execute(); -// Create -const created = await db.resourceObservedStorage.create({ data: { capacity: '', capacityBytes: '', claimName: '', declaredStorageClass: '', declaredStorageSizeBytes: '', declaredStorageTotalBytes: '', installationId: '', isBound: '', kind: '', namespaceId: '', phase: '', requested: '', requestedBytes: '', resourceId: '', resourceStatus: '', slug: '', storageClass: '', storageName: '' }, select: { id: true } }).execute(); - // Update const updated = await db.resourceObservedStorage.update({ where: { id: '' }, data: { capacity: '' }, select: { id: true } }).execute(); @@ -5177,9 +5116,6 @@ const items = await db.resourceUtilization.findMany({ select: { avgMemoryBytes: // Get one by id const item = await db.resourceUtilization.findOne({ id: '', select: { avgMemoryBytes: true, cpuLimitMillicores: true, cpuPeakUtilization: true, cpuRequestHeadroomMillicores: true, cpuRequestMillicores: true, date: true, gbSeconds: true, kind: true, maxCpuMillicores: true, maxMemoryBytes: true, memoryLimitBytes: true, memoryPeakUtilization: true, memoryRequestBytes: true, memoryRequestHeadroomBytes: true, namespaceId: true, replicas: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }).execute(); -// Create -const created = await db.resourceUtilization.create({ data: { avgMemoryBytes: '', cpuLimitMillicores: '', cpuPeakUtilization: '', cpuRequestHeadroomMillicores: '', cpuRequestMillicores: '', date: '', gbSeconds: '', kind: '', maxCpuMillicores: '', maxMemoryBytes: '', memoryLimitBytes: '', memoryPeakUtilization: '', memoryRequestBytes: '', memoryRequestHeadroomBytes: '', namespaceId: '', replicas: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }, select: { id: true } }).execute(); - // Update const updated = await db.resourceUtilization.update({ where: { id: '' }, data: { avgMemoryBytes: '' }, select: { id: true } }).execute(); @@ -5241,9 +5177,6 @@ const items = await db.resourcesHealth.findMany({ select: { annotations: true, c // Get one by id const item = await db.resourcesHealth.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); -// Create -const created = await db.resourcesHealth.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); - // Update const updated = await db.resourcesHealth.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -5276,9 +5209,6 @@ const items = await db.resourcesRequirementsState.findMany({ select: { configHas // Get one by id const item = await db.resourcesRequirementsState.findOne({ id: '', select: { configHash: true, configObjectName: true, requirementsHash: true, resourceId: true, secretsHash: true, secretsObjectName: true, slug: true } }).execute(); -// Create -const created = await db.resourcesRequirementsState.create({ data: { configHash: '', configObjectName: '', requirementsHash: '', resourceId: '', secretsHash: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute(); - // Update const updated = await db.resourcesRequirementsState.update({ where: { id: '' }, data: { configHash: '' }, select: { id: true } }).execute(); @@ -5315,9 +5245,6 @@ const items = await db.resourcesResolvedRequirement.findMany({ select: { atomId: // Get one by id const item = await db.resourcesResolvedRequirement.findOne({ id: '', select: { atomId: true, configObjectName: true, name: true, namespaceId: true, present: true, realm: true, required: true, requirementKind: true, resourceId: true, secretsObjectName: true, slug: true } }).execute(); -// Create -const created = await db.resourcesResolvedRequirement.create({ data: { atomId: '', configObjectName: '', name: '', namespaceId: '', present: '', realm: '', required: '', requirementKind: '', resourceId: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute(); - // Update const updated = await db.resourcesResolvedRequirement.update({ where: { id: '' }, data: { atomId: '' }, select: { id: true } }).execute(); @@ -5325,6 +5252,51 @@ const updated = await db.resourcesResolvedRequirement.update({ where: { id: '' } }).execute(); ``` +### `db.serviceBinding` + +CRUD operations for ServiceBinding records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `id` | UUID | No | +| `installationId` | UUID | Yes | +| `installationScope` | String | Yes | +| `kind` | String | Yes | +| `lastError` | String | Yes | +| `metadata` | JSON | Yes | +| `namespaceId` | UUID | Yes | +| `observedHost` | String | Yes | +| `realm` | String | Yes | +| `status` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all serviceBinding records +const items = await db.serviceBinding.findMany({ select: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, installationScope: true, kind: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.serviceBinding.findOne({ id: '', select: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, installationScope: true, kind: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.serviceBinding.create({ data: { createdBy: '', createdByPrincipal: '', databaseId: '', installationId: '', installationScope: '', kind: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.serviceBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.serviceBinding.delete({ where: { id: '' } }).execute(); +``` + ### `db.webhookEndpoint` CRUD operations for WebhookEndpoint records. @@ -5532,6 +5504,21 @@ copyGraph const result = await db.mutation.copyGraph({ input: { graphId: '', name: '', scopeId: '' } }).execute(); ``` +### `db.mutation.createFunctionGraph` + +createFunctionGraph + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CreateFunctionGraphInput (required) | + +```typescript +const result = await db.mutation.createFunctionGraph({ input: '' }).execute(); +``` + ### `db.mutation.databaseAddEdge` databaseAddEdge diff --git a/sdk/constructive-react/src/compute/orm/index.ts b/sdk/constructive-react/src/compute/orm/index.ts index 01033dc125..bc4368881e 100644 --- a/sdk/constructive-react/src/compute/orm/index.ts +++ b/sdk/constructive-react/src/compute/orm/index.ts @@ -7,7 +7,6 @@ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; import { BuildModel } from './models/build'; import { BuildStepModel } from './models/buildStep'; -import { BuilderBindingModel } from './models/builderBinding'; import { ContentPresetModel } from './models/contentPreset'; import { DatabaseFunctionGraphModel } from './models/databaseFunctionGraph'; import { DatabaseFunctionGraphExecutionCancelRequestModel } from './models/databaseFunctionGraphExecutionCancelRequest'; @@ -51,7 +50,6 @@ import { NamespaceModel } from './models/namespace'; import { NamespaceEventModel } from './models/namespaceEvent'; import { PlatformBuildModel } from './models/platformBuild'; import { PlatformBuildStepModel } from './models/platformBuildStep'; -import { PlatformBuilderBindingModel } from './models/platformBuilderBinding'; import { PlatformFunctionApiBindingModel } from './models/platformFunctionApiBinding'; import { PlatformFunctionCapabilityBindingModel } from './models/platformFunctionCapabilityBinding'; import { PlatformFunctionDefinitionModel } from './models/platformFunctionDefinition'; @@ -98,6 +96,7 @@ import { PlatformResourceUtilizationModel } from './models/platformResourceUtili import { PlatformResourcesHealthModel } from './models/platformResourcesHealth'; import { PlatformResourcesRequirementsStateModel } from './models/platformResourcesRequirementsState'; import { PlatformResourcesResolvedRequirementModel } from './models/platformResourcesResolvedRequirement'; +import { PlatformServiceBindingModel } from './models/platformServiceBinding'; import { PlatformWebhookEndpointModel } from './models/platformWebhookEndpoint'; import { PlatformWebhookEventModel } from './models/platformWebhookEvent'; import { ProposalCommentModel } from './models/proposalComment'; @@ -126,6 +125,7 @@ import { ResourceUtilizationModel } from './models/resourceUtilization'; import { ResourcesHealthModel } from './models/resourcesHealth'; import { ResourcesRequirementsStateModel } from './models/resourcesRequirementsState'; import { ResourcesResolvedRequirementModel } from './models/resourcesResolvedRequirement'; +import { ServiceBindingModel } from './models/serviceBinding'; import { WebhookEndpointModel } from './models/webhookEndpoint'; import { WebhookEventModel } from './models/webhookEvent'; import { createQueryOperations } from './query'; @@ -165,7 +165,6 @@ export function createClient(config: OrmClientConfig) { return { build: new BuildModel(client), buildStep: new BuildStepModel(client), - builderBinding: new BuilderBindingModel(client), contentPreset: new ContentPresetModel(client), databaseFunctionGraph: new DatabaseFunctionGraphModel(client), databaseFunctionGraphExecutionCancelRequest: @@ -212,7 +211,6 @@ export function createClient(config: OrmClientConfig) { namespaceEvent: new NamespaceEventModel(client), platformBuild: new PlatformBuildModel(client), platformBuildStep: new PlatformBuildStepModel(client), - platformBuilderBinding: new PlatformBuilderBindingModel(client), platformFunctionApiBinding: new PlatformFunctionApiBindingModel(client), platformFunctionCapabilityBinding: new PlatformFunctionCapabilityBindingModel(client), platformFunctionDefinition: new PlatformFunctionDefinitionModel(client), @@ -259,6 +257,7 @@ export function createClient(config: OrmClientConfig) { platformResourcesHealth: new PlatformResourcesHealthModel(client), platformResourcesRequirementsState: new PlatformResourcesRequirementsStateModel(client), platformResourcesResolvedRequirement: new PlatformResourcesResolvedRequirementModel(client), + platformServiceBinding: new PlatformServiceBindingModel(client), platformWebhookEndpoint: new PlatformWebhookEndpointModel(client), platformWebhookEvent: new PlatformWebhookEventModel(client), proposalComment: new ProposalCommentModel(client), @@ -287,6 +286,7 @@ export function createClient(config: OrmClientConfig) { resourcesHealth: new ResourcesHealthModel(client), resourcesRequirementsState: new ResourcesRequirementsStateModel(client), resourcesResolvedRequirement: new ResourcesResolvedRequirementModel(client), + serviceBinding: new ServiceBindingModel(client), webhookEndpoint: new WebhookEndpointModel(client), webhookEvent: new WebhookEventModel(client), query: createQueryOperations(client), diff --git a/sdk/constructive-react/src/compute/orm/input-types.ts b/sdk/constructive-react/src/compute/orm/input-types.ts index c4f3a14a61..8402de3335 100644 --- a/sdk/constructive-react/src/compute/orm/input-types.ts +++ b/sdk/constructive-react/src/compute/orm/input-types.ts @@ -234,6 +234,7 @@ export interface UUIDListFilter { export type Base64EncodedBinary = unknown; export type ConstructiveInternalTypeImage = unknown; export type ConstructiveInternalTypeUpload = unknown; +export type FileVersion = unknown; export type ResourceRequirement = unknown; /** One run of a repository workflow: its commit, its job, and what it produced */ // ============ Entity Types ============ @@ -261,6 +262,10 @@ export interface Build { jobId?: string | null; /** Build log object in storage; step rows slice it by byte range */ logs?: ConstructiveInternalTypeUpload | null; + /** URL to fetch `logs`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + logsUrl?: string | null; + /** The versions rendered beside `logs`, narrowest first, each with a URL. Empty when there are none. */ + logsVersions?: FileVersion[] | null; /** Matrix shard identity; NULL for a non-matrix build */ matrixKey?: string | null; /** Build detail (step results, durations, failure reason) */ @@ -315,32 +320,6 @@ export interface BuildStep { /** Parsed detail: failure message, assertion diff, counts, annotations */ summary?: Record | null; } -/** Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST */ -export interface BuilderBinding { - createdAt?: string | null; - createdBy?: string | null; - createdByPrincipal?: string | null; - /** Database that owns this resource (database-scoped isolation) */ - databaseId?: string | null; - id: string; - /** BuildKit resource installation serving this binding; may belong to another resource scope */ - installationId?: string | null; - /** Most recent projection failure */ - lastError?: string | null; - /** Reconciler detail (projection timestamps and diagnostics) */ - metadata?: Record | null; - /** Namespace whose builds use this BuildKit installation */ - namespaceId?: string | null; - /** BuildKit address last projected into the namespace (NULL = never projected) */ - observedHost?: string | null; - /** Lane this binding applies to (NULL = the scope's default lane) */ - realm?: string | null; - /** Projection state of BUILDKIT_HOST: pending, active, failed */ - status?: string | null; - updatedAt?: string | null; - updatedBy?: string | null; - updatedByPrincipal?: string | null; -} /** Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store */ export interface ContentPreset { /** Whether this preset is selectable at provision time */ @@ -1315,6 +1294,10 @@ export interface IntegrationProvider { id: string; /** Provider logo as an image domain value (url, id, key, bucket, provider) */ logo?: ConstructiveInternalTypeImage | null; + /** URL to fetch `logo`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + logoUrl?: string | null; + /** The versions rendered beside `logo`, narrowest first, each with a URL. Empty when there are none. */ + logoVersions?: FileVersion[] | null; /** Human-readable brand name (e.g. 'Mailgun', 'PostgreSQL') */ name?: string | null; /** Canonical config requirements for this provider: array of (name, required, provider) tuples. Used by the UI to auto-fill function/resource required_configs. */ @@ -1395,6 +1378,10 @@ export interface PlatformBuild { jobId?: string | null; /** Build log object in storage; step rows slice it by byte range */ logs?: ConstructiveInternalTypeUpload | null; + /** URL to fetch `logs`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + logsUrl?: string | null; + /** The versions rendered beside `logs`, narrowest first, each with a URL. Empty when there are none. */ + logsVersions?: FileVersion[] | null; /** Matrix shard identity; NULL for a non-matrix build */ matrixKey?: string | null; /** Build detail (step results, durations, failure reason) */ @@ -1447,30 +1434,6 @@ export interface PlatformBuildStep { /** Parsed detail: failure message, assertion diff, counts, annotations */ summary?: Record | null; } -/** Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST */ -export interface PlatformBuilderBinding { - createdAt?: string | null; - createdBy?: string | null; - createdByPrincipal?: string | null; - id: string; - /** BuildKit resource installation serving this binding; may belong to another resource scope */ - installationId?: string | null; - /** Most recent projection failure */ - lastError?: string | null; - /** Reconciler detail (projection timestamps and diagnostics) */ - metadata?: Record | null; - /** Namespace whose builds use this BuildKit installation */ - namespaceId?: string | null; - /** BuildKit address last projected into the namespace (NULL = never projected) */ - observedHost?: string | null; - /** Lane this binding applies to (NULL = the scope's default lane) */ - realm?: string | null; - /** Projection state of BUILDKIT_HOST: pending, active, failed */ - status?: string | null; - updatedAt?: string | null; - updatedBy?: string | null; - updatedByPrincipal?: string | null; -} /** Join table binding function definitions to API endpoints with per-binding alias and config */ export interface PlatformFunctionApiBinding { /** Binding alias (e.g. default, staging, production) */ @@ -2004,6 +1967,10 @@ export interface PlatformProposalComment { actorId?: string | null; /** Files referenced by the comment body, in the order they were attached */ attachments?: ConstructiveInternalTypeUpload[] | null; + /** URL to fetch `attachments`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + attachmentsUrl?: string[] | null; + /** The versions rendered beside `attachments`, narrowest first, each with a URL. Empty when there are none. */ + attachmentsVersions?: FileVersion[] | null; /** Comment text */ body?: string | null; /** TRGM similarity when searching `body`. Returns null when no trgm search filter is active. */ @@ -2012,6 +1979,9 @@ export interface PlatformProposalComment { createdBy?: string | null; createdByPrincipal?: string | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -2057,6 +2027,9 @@ export interface PlatformProposal { /** When this is wanted by (NULL when nothing is promised) */ dueAt?: string | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -2297,6 +2270,9 @@ export interface PlatformRepository { /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ descriptionTrgmSimilarity?: number | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -2720,6 +2696,34 @@ export interface PlatformResourcesResolvedRequirement { secretsObjectName?: string | null; slug?: string | null; } +/** Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config */ +export interface PlatformServiceBinding { + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + id: string; + /** Resource installation serving this binding, in the installations table of installation_scope */ + installationId?: string | null; + /** Scope whose installations table holds installation_id: this scope or platform */ + installationScope?: string | null; + /** Service this binding projects: builder (BUILDKIT_HOST) or git (GIT_PROVIDER + GIT_SERVICE_URL) */ + kind?: string | null; + /** Most recent projection failure */ + lastError?: string | null; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: Record | null; + /** Namespace whose builds use this BuildKit installation */ + namespaceId?: string | null; + /** Service address last projected into the namespace (NULL = never projected) */ + observedHost?: string | null; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string | null; + /** Projection state of the bound address: pending, active, failed */ + status?: string | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} /** Webhook route authority: (host, path) -> function task_identifier invoked through the webhook channel, with provider, signing-secret reference, and replay window */ export interface PlatformWebhookEndpoint { /** Whether this endpoint currently accepts deliveries */ @@ -2776,6 +2780,10 @@ export interface ProposalComment { actorId?: string | null; /** Files referenced by the comment body, in the order they were attached */ attachments?: ConstructiveInternalTypeUpload[] | null; + /** URL to fetch `attachments`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + attachmentsUrl?: string[] | null; + /** The versions rendered beside `attachments`, narrowest first, each with a URL. Empty when there are none. */ + attachmentsVersions?: FileVersion[] | null; /** Comment text */ body?: string | null; /** TRGM similarity when searching `body`. Returns null when no trgm search filter is active. */ @@ -2786,6 +2794,9 @@ export interface ProposalComment { /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -2833,6 +2844,9 @@ export interface Proposal { /** When this is wanted by (NULL when nothing is promised) */ dueAt?: string | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -3089,6 +3103,9 @@ export interface Repository { /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ descriptionTrgmSimilarity?: number | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -3533,6 +3550,36 @@ export interface ResourcesResolvedRequirement { secretsObjectName?: string | null; slug?: string | null; } +/** Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config */ +export interface ServiceBinding { + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + id: string; + /** Resource installation serving this binding, in the installations table of installation_scope */ + installationId?: string | null; + /** Scope whose installations table holds installation_id: this scope or platform */ + installationScope?: string | null; + /** Service this binding projects: builder (BUILDKIT_HOST) or git (GIT_PROVIDER + GIT_SERVICE_URL) */ + kind?: string | null; + /** Most recent projection failure */ + lastError?: string | null; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: Record | null; + /** Namespace whose builds use this BuildKit installation */ + namespaceId?: string | null; + /** Service address last projected into the namespace (NULL = never projected) */ + observedHost?: string | null; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string | null; + /** Projection state of the bound address: pending, active, failed */ + status?: string | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} /** Webhook route authority: (host, path) -> function task_identifier invoked through the webhook channel, with provider, signing-secret reference, and replay window */ export interface WebhookEndpoint { /** Whether this endpoint currently accepts deliveries */ @@ -3607,9 +3654,6 @@ export interface BuildRelations { workflow?: RepositoryWorkflow | null; } export interface BuildStepRelations {} -export interface BuilderBindingRelations { - namespace?: Namespace | null; -} export interface ContentPresetRelations {} export interface DatabaseFunctionGraphRelations { databaseFunctionGraphExecutionsByGraphId?: ConnectionResult; @@ -3643,7 +3687,7 @@ export interface FunctionDefinitionRelations { webhookEndpoints?: ConnectionResult; } export interface FunctionDeploymentRelations { - namespace?: Namespace | null; + namespaceByNamespaceIdAndDatabaseId?: Namespace | null; } export interface FunctionDeploymentEventRelations {} export interface FunctionExecutionLogRelations {} @@ -3683,13 +3727,13 @@ export interface InfraRefRelations {} export interface InfraStoreRelations {} export interface IntegrationProviderRelations {} export interface NamespaceRelations { - builderBindings?: ConnectionResult; - functionDeployments?: ConnectionResult; - registryBindings?: ConnectionResult; - resourceDefinitions?: ConnectionResult; - resourceInstallations?: ConnectionResult; - resources?: ConnectionResult; - webhookEndpoints?: ConnectionResult; + functionDeploymentsByNamespaceIdAndDatabaseId?: ConnectionResult; + registryBindingsByNamespaceIdAndDatabaseId?: ConnectionResult; + resourceDefinitionsByNamespaceIdAndDatabaseId?: ConnectionResult; + resourceInstallationsByNamespaceIdAndDatabaseId?: ConnectionResult; + resourcesByNamespaceIdAndDatabaseId?: ConnectionResult; + serviceBindingsByNamespaceIdAndDatabaseId?: ConnectionResult; + webhookEndpointsByNamespaceIdAndDatabaseId?: ConnectionResult; } export interface NamespaceEventRelations {} export interface PlatformBuildRelations { @@ -3699,9 +3743,6 @@ export interface PlatformBuildRelations { workflow?: PlatformRepositoryWorkflow | null; } export interface PlatformBuildStepRelations {} -export interface PlatformBuilderBindingRelations { - namespace?: PlatformNamespace | null; -} export interface PlatformFunctionApiBindingRelations { functionDefinition?: PlatformFunctionDefinition | null; platformFunctionInvocationsByApiBindingId?: ConnectionResult; @@ -3742,12 +3783,12 @@ export interface PlatformInfraStoreRelations {} export interface PlatformK8sResourceKindRelations {} export interface PlatformK8sSpecRuleRelations {} export interface PlatformNamespaceRelations { - platformBuilderBindingsByNamespaceId?: ConnectionResult; platformFunctionDeploymentsByNamespaceId?: ConnectionResult; platformRegistryBindingsByNamespaceId?: ConnectionResult; platformResourceDefinitionsByNamespaceId?: ConnectionResult; platformResourceInstallationsByNamespaceId?: ConnectionResult; platformResourcesByNamespaceId?: ConnectionResult; + platformServiceBindingsByNamespaceId?: ConnectionResult; platformWebhookEndpointsByNamespaceId?: ConnectionResult; } export interface PlatformNamespaceEventRelations {} @@ -3839,6 +3880,9 @@ export interface PlatformResourceUtilizationRelations {} export interface PlatformResourcesHealthRelations {} export interface PlatformResourcesRequirementsStateRelations {} export interface PlatformResourcesResolvedRequirementRelations {} +export interface PlatformServiceBindingRelations { + namespace?: PlatformNamespace | null; +} export interface PlatformWebhookEndpointRelations { functionDefinition?: PlatformFunctionDefinition | null; namespace?: PlatformNamespace | null; @@ -3876,7 +3920,7 @@ export interface ProposalsChunkRelations { proposals?: Proposal | null; } export interface RegistryBindingRelations { - namespace?: Namespace | null; + namespaceByNamespaceIdAndDatabaseId?: Namespace | null; registry?: Registry | null; } export interface RegistryRelations { @@ -3910,18 +3954,18 @@ export interface RepositoryWorkflowRelations { } export interface ResourceRelations { installation?: ResourceInstallation | null; - namespace?: Namespace | null; + namespaceByNamespaceIdAndDatabaseId?: Namespace | null; resourceDefinition?: ResourceDefinition | null; resourceStatusChecks?: ConnectionResult; } export interface ResourceDeclaredCapacityRelations {} export interface ResourceDefinitionRelations { - namespace?: Namespace | null; + namespaceByNamespaceIdAndDatabaseId?: Namespace | null; resources?: ConnectionResult; } export interface ResourceEventRelations {} export interface ResourceInstallationRelations { - namespace?: Namespace | null; + namespaceByNamespaceIdAndDatabaseId?: Namespace | null; registriesByInstallationId?: ConnectionResult; resourcesByInstallationId?: ConnectionResult; } @@ -3935,9 +3979,12 @@ export interface ResourceUtilizationRelations {} export interface ResourcesHealthRelations {} export interface ResourcesRequirementsStateRelations {} export interface ResourcesResolvedRequirementRelations {} +export interface ServiceBindingRelations { + namespaceByNamespaceIdAndDatabaseId?: Namespace | null; +} export interface WebhookEndpointRelations { functionDefinition?: FunctionDefinition | null; - namespace?: Namespace | null; + namespaceByNamespaceIdAndDatabaseId?: Namespace | null; webhookEventsByEndpointId?: ConnectionResult; } export interface WebhookEventRelations { @@ -3946,7 +3993,6 @@ export interface WebhookEventRelations { // ============ Entity Types With Relations ============ export type BuildWithRelations = Build & BuildRelations; export type BuildStepWithRelations = BuildStep & BuildStepRelations; -export type BuilderBindingWithRelations = BuilderBinding & BuilderBindingRelations; export type ContentPresetWithRelations = ContentPreset & ContentPresetRelations; export type DatabaseFunctionGraphWithRelations = DatabaseFunctionGraph & DatabaseFunctionGraphRelations; @@ -4007,8 +4053,6 @@ export type NamespaceWithRelations = Namespace & NamespaceRelations; export type NamespaceEventWithRelations = NamespaceEvent & NamespaceEventRelations; export type PlatformBuildWithRelations = PlatformBuild & PlatformBuildRelations; export type PlatformBuildStepWithRelations = PlatformBuildStep & PlatformBuildStepRelations; -export type PlatformBuilderBindingWithRelations = PlatformBuilderBinding & - PlatformBuilderBindingRelations; export type PlatformFunctionApiBindingWithRelations = PlatformFunctionApiBinding & PlatformFunctionApiBindingRelations; export type PlatformFunctionCapabilityBindingWithRelations = PlatformFunctionCapabilityBinding & @@ -4089,6 +4133,8 @@ export type PlatformResourcesRequirementsStateWithRelations = PlatformResourcesR PlatformResourcesRequirementsStateRelations; export type PlatformResourcesResolvedRequirementWithRelations = PlatformResourcesResolvedRequirement & PlatformResourcesResolvedRequirementRelations; +export type PlatformServiceBindingWithRelations = PlatformServiceBinding & + PlatformServiceBindingRelations; export type PlatformWebhookEndpointWithRelations = PlatformWebhookEndpoint & PlatformWebhookEndpointRelations; export type PlatformWebhookEventWithRelations = PlatformWebhookEvent & @@ -4126,6 +4172,7 @@ export type ResourcesRequirementsStateWithRelations = ResourcesRequirementsState ResourcesRequirementsStateRelations; export type ResourcesResolvedRequirementWithRelations = ResourcesResolvedRequirement & ResourcesResolvedRequirementRelations; +export type ServiceBindingWithRelations = ServiceBinding & ServiceBindingRelations; export type WebhookEndpointWithRelations = WebhookEndpoint & WebhookEndpointRelations; export type WebhookEventWithRelations = WebhookEvent & WebhookEventRelations; // ============ Entity Select Types ============ @@ -4143,6 +4190,13 @@ export type BuildSelect = { imageRef?: boolean; jobId?: boolean; logs?: boolean; + logsUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + logsVersions?: boolean; matrixKey?: boolean; metadata?: boolean; proposalId?: boolean; @@ -4184,26 +4238,6 @@ export type BuildStepSelect = { status?: boolean; summary?: boolean; }; -export type BuilderBindingSelect = { - createdAt?: boolean; - createdBy?: boolean; - createdByPrincipal?: boolean; - databaseId?: boolean; - id?: boolean; - installationId?: boolean; - lastError?: boolean; - metadata?: boolean; - namespaceId?: boolean; - observedHost?: boolean; - realm?: boolean; - status?: boolean; - updatedAt?: boolean; - updatedBy?: boolean; - updatedByPrincipal?: boolean; - namespace?: { - select: NamespaceSelect; - }; -}; export type ContentPresetSelect = { active?: boolean; commitId?: boolean; @@ -4508,7 +4542,7 @@ export type FunctionDeploymentSelect = { timeoutSeconds?: boolean; updatedAt?: boolean; updatedByPrincipal?: boolean; - namespace?: { + namespaceByNamespaceIdAndDatabaseId?: { select: NamespaceSelect; }; }; @@ -4829,6 +4863,13 @@ export type IntegrationProviderSelect = { icon?: boolean; id?: boolean; logo?: boolean; + logoUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + logoVersions?: boolean; name?: boolean; requiredConfigs?: boolean; requiredSecrets?: boolean; @@ -4850,43 +4891,43 @@ export type NamespaceSelect = { namespaceName?: boolean; status?: boolean; updatedAt?: boolean; - builderBindings?: { - select: BuilderBindingSelect; - first?: number; - filter?: BuilderBindingFilter; - orderBy?: BuilderBindingOrderBy[]; - }; - functionDeployments?: { + functionDeploymentsByNamespaceIdAndDatabaseId?: { select: FunctionDeploymentSelect; first?: number; filter?: FunctionDeploymentFilter; orderBy?: FunctionDeploymentOrderBy[]; }; - registryBindings?: { + registryBindingsByNamespaceIdAndDatabaseId?: { select: RegistryBindingSelect; first?: number; filter?: RegistryBindingFilter; orderBy?: RegistryBindingOrderBy[]; }; - resourceDefinitions?: { + resourceDefinitionsByNamespaceIdAndDatabaseId?: { select: ResourceDefinitionSelect; first?: number; filter?: ResourceDefinitionFilter; orderBy?: ResourceDefinitionOrderBy[]; }; - resourceInstallations?: { + resourceInstallationsByNamespaceIdAndDatabaseId?: { select: ResourceInstallationSelect; first?: number; filter?: ResourceInstallationFilter; orderBy?: ResourceInstallationOrderBy[]; }; - resources?: { + resourcesByNamespaceIdAndDatabaseId?: { select: ResourceSelect; first?: number; filter?: ResourceFilter; orderBy?: ResourceOrderBy[]; }; - webhookEndpoints?: { + serviceBindingsByNamespaceIdAndDatabaseId?: { + select: ServiceBindingSelect; + first?: number; + filter?: ServiceBindingFilter; + orderBy?: ServiceBindingOrderBy[]; + }; + webhookEndpointsByNamespaceIdAndDatabaseId?: { select: WebhookEndpointSelect; first?: number; filter?: WebhookEndpointFilter; @@ -4916,6 +4957,13 @@ export type PlatformBuildSelect = { imageRef?: boolean; jobId?: boolean; logs?: boolean; + logsUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + logsVersions?: boolean; matrixKey?: boolean; metadata?: boolean; proposalId?: boolean; @@ -4956,25 +5004,6 @@ export type PlatformBuildStepSelect = { status?: boolean; summary?: boolean; }; -export type PlatformBuilderBindingSelect = { - createdAt?: boolean; - createdBy?: boolean; - createdByPrincipal?: boolean; - id?: boolean; - installationId?: boolean; - lastError?: boolean; - metadata?: boolean; - namespaceId?: boolean; - observedHost?: boolean; - realm?: boolean; - status?: boolean; - updatedAt?: boolean; - updatedBy?: boolean; - updatedByPrincipal?: boolean; - namespace?: { - select: PlatformNamespaceSelect; - }; -}; export type PlatformFunctionApiBindingSelect = { alias?: boolean; apiId?: boolean; @@ -5313,12 +5342,6 @@ export type PlatformNamespaceSelect = { namespaceName?: boolean; status?: boolean; updatedAt?: boolean; - platformBuilderBindingsByNamespaceId?: { - select: PlatformBuilderBindingSelect; - first?: number; - filter?: PlatformBuilderBindingFilter; - orderBy?: PlatformBuilderBindingOrderBy[]; - }; platformFunctionDeploymentsByNamespaceId?: { select: PlatformFunctionDeploymentSelect; first?: number; @@ -5349,6 +5372,12 @@ export type PlatformNamespaceSelect = { filter?: PlatformResourceFilter; orderBy?: PlatformResourceOrderBy[]; }; + platformServiceBindingsByNamespaceId?: { + select: PlatformServiceBindingSelect; + first?: number; + filter?: PlatformServiceBindingFilter; + orderBy?: PlatformServiceBindingOrderBy[]; + }; platformWebhookEndpointsByNamespaceId?: { select: PlatformWebhookEndpointSelect; first?: number; @@ -5368,12 +5397,21 @@ export type PlatformNamespaceEventSelect = { export type PlatformProposalCommentSelect = { actorId?: boolean; attachments?: boolean; + attachmentsUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + attachmentsVersions?: boolean; body?: boolean; bodyTrgmSimilarity?: boolean; createdAt?: boolean; createdBy?: boolean; createdByPrincipal?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; id?: boolean; @@ -5411,6 +5449,8 @@ export type PlatformProposalSelect = { decidedAt?: boolean; dueAt?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; id?: boolean; @@ -5648,6 +5688,8 @@ export type PlatformRepositorySelect = { description?: boolean; descriptionTrgmSimilarity?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; externalId?: boolean; @@ -6049,6 +6091,27 @@ export type PlatformResourcesResolvedRequirementSelect = { secretsObjectName?: boolean; slug?: boolean; }; +export type PlatformServiceBindingSelect = { + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + id?: boolean; + installationId?: boolean; + installationScope?: boolean; + kind?: boolean; + lastError?: boolean; + metadata?: boolean; + namespaceId?: boolean; + observedHost?: boolean; + realm?: boolean; + status?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + namespace?: { + select: PlatformNamespaceSelect; + }; +}; export type PlatformWebhookEndpointSelect = { active?: boolean; createdAt?: boolean; @@ -6098,6 +6161,13 @@ export type PlatformWebhookEventSelect = { export type ProposalCommentSelect = { actorId?: boolean; attachments?: boolean; + attachmentsUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + attachmentsVersions?: boolean; body?: boolean; bodyTrgmSimilarity?: boolean; createdAt?: boolean; @@ -6105,6 +6175,8 @@ export type ProposalCommentSelect = { createdByPrincipal?: boolean; databaseId?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; id?: boolean; @@ -6143,6 +6215,8 @@ export type ProposalSelect = { decidedAt?: boolean; dueAt?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; id?: boolean; @@ -6315,7 +6389,7 @@ export type RegistryBindingSelect = { updatedAt?: boolean; updatedBy?: boolean; updatedByPrincipal?: boolean; - namespace?: { + namespaceByNamespaceIdAndDatabaseId?: { select: NamespaceSelect; }; registry?: { @@ -6388,6 +6462,8 @@ export type RepositorySelect = { description?: boolean; descriptionTrgmSimilarity?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; externalId?: boolean; @@ -6558,7 +6634,7 @@ export type ResourceSelect = { installation?: { select: ResourceInstallationSelect; }; - namespace?: { + namespaceByNamespaceIdAndDatabaseId?: { select: NamespaceSelect; }; resourceDefinition?: { @@ -6609,7 +6685,7 @@ export type ResourceDefinitionSelect = { updatedAt?: boolean; updatedBy?: boolean; updatedByPrincipal?: boolean; - namespace?: { + namespaceByNamespaceIdAndDatabaseId?: { select: NamespaceSelect; }; resources?: { @@ -6646,7 +6722,7 @@ export type ResourceInstallationSelect = { updatedAt?: boolean; updatedBy?: boolean; updatedByPrincipal?: boolean; - namespace?: { + namespaceByNamespaceIdAndDatabaseId?: { select: NamespaceSelect; }; registriesByInstallationId?: { @@ -6800,6 +6876,28 @@ export type ResourcesResolvedRequirementSelect = { secretsObjectName?: boolean; slug?: boolean; }; +export type ServiceBindingSelect = { + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + id?: boolean; + installationId?: boolean; + installationScope?: boolean; + kind?: boolean; + lastError?: boolean; + metadata?: boolean; + namespaceId?: boolean; + observedHost?: boolean; + realm?: boolean; + status?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + namespaceByNamespaceIdAndDatabaseId?: { + select: NamespaceSelect; + }; +}; export type WebhookEndpointSelect = { active?: boolean; createdAt?: boolean; @@ -6820,7 +6918,7 @@ export type WebhookEndpointSelect = { functionDefinition?: { select: FunctionDefinitionSelect; }; - namespace?: { + namespaceByNamespaceIdAndDatabaseId?: { select: NamespaceSelect; }; webhookEventsByEndpointId?: { @@ -6957,46 +7055,6 @@ export interface BuildStepFilter { /** Filter by the object’s `summary` field. */ summary?: JSONFilter; } -export interface BuilderBindingFilter { - /** Checks for all expressions in this list. */ - and?: BuilderBindingFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `createdByPrincipal` field. */ - createdByPrincipal?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: BuilderBindingFilter; - /** Filter by the object’s `observedHost` field. */ - observedHost?: StringFilter; - /** Checks for any expressions in this list. */ - or?: BuilderBindingFilter[]; - /** Filter by the object’s `realm` field. */ - realm?: StringFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `updatedByPrincipal` field. */ - updatedByPrincipal?: UUIDFilter; -} export interface ContentPresetFilter { /** Filter by the object’s `active` field. */ active?: BooleanFilter; @@ -7557,8 +7615,8 @@ export interface FunctionDeploymentFilter { lastError?: StringFilter; /** Filter by the object’s `lastErrorAt` field. */ lastErrorAt?: DatetimeFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -8271,10 +8329,6 @@ export interface NamespaceFilter { and?: NamespaceFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; - /** Filter by the object’s `builderBindings` relation. */ - builderBindings?: NamespaceToManyBuilderBindingFilter; - /** `builderBindings` exist. */ - builderBindingsExist?: boolean; /** Filter by the object’s `clusterId` field. */ clusterId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -8283,10 +8337,10 @@ export interface NamespaceFilter { databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; - /** Filter by the object’s `functionDeployments` relation. */ - functionDeployments?: NamespaceToManyFunctionDeploymentFilter; - /** `functionDeployments` exist. */ - functionDeploymentsExist?: boolean; + /** Filter by the object’s `functionDeploymentsByNamespaceIdAndDatabaseId` relation. */ + functionDeploymentsByNamespaceIdAndDatabaseId?: NamespaceToManyFunctionDeploymentFilter; + /** `functionDeploymentsByNamespaceIdAndDatabaseId` exist. */ + functionDeploymentsByNamespaceIdAndDatabaseIdExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isActive` field. */ @@ -8305,30 +8359,34 @@ export interface NamespaceFilter { not?: NamespaceFilter; /** Checks for any expressions in this list. */ or?: NamespaceFilter[]; - /** Filter by the object’s `registryBindings` relation. */ - registryBindings?: NamespaceToManyRegistryBindingFilter; - /** `registryBindings` exist. */ - registryBindingsExist?: boolean; - /** Filter by the object’s `resourceDefinitions` relation. */ - resourceDefinitions?: NamespaceToManyResourceDefinitionFilter; - /** `resourceDefinitions` exist. */ - resourceDefinitionsExist?: boolean; - /** Filter by the object’s `resourceInstallations` relation. */ - resourceInstallations?: NamespaceToManyResourceInstallationFilter; - /** `resourceInstallations` exist. */ - resourceInstallationsExist?: boolean; - /** Filter by the object’s `resources` relation. */ - resources?: NamespaceToManyResourceFilter; - /** `resources` exist. */ - resourcesExist?: boolean; + /** Filter by the object’s `registryBindingsByNamespaceIdAndDatabaseId` relation. */ + registryBindingsByNamespaceIdAndDatabaseId?: NamespaceToManyRegistryBindingFilter; + /** `registryBindingsByNamespaceIdAndDatabaseId` exist. */ + registryBindingsByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `resourceDefinitionsByNamespaceIdAndDatabaseId` relation. */ + resourceDefinitionsByNamespaceIdAndDatabaseId?: NamespaceToManyResourceDefinitionFilter; + /** `resourceDefinitionsByNamespaceIdAndDatabaseId` exist. */ + resourceDefinitionsByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `resourceInstallationsByNamespaceIdAndDatabaseId` relation. */ + resourceInstallationsByNamespaceIdAndDatabaseId?: NamespaceToManyResourceInstallationFilter; + /** `resourceInstallationsByNamespaceIdAndDatabaseId` exist. */ + resourceInstallationsByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `resourcesByNamespaceIdAndDatabaseId` relation. */ + resourcesByNamespaceIdAndDatabaseId?: NamespaceToManyResourceFilter; + /** `resourcesByNamespaceIdAndDatabaseId` exist. */ + resourcesByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `serviceBindingsByNamespaceIdAndDatabaseId` relation. */ + serviceBindingsByNamespaceIdAndDatabaseId?: NamespaceToManyServiceBindingFilter; + /** `serviceBindingsByNamespaceIdAndDatabaseId` exist. */ + serviceBindingsByNamespaceIdAndDatabaseIdExist?: boolean; /** Filter by the object’s `status` field. */ status?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `webhookEndpoints` relation. */ - webhookEndpoints?: NamespaceToManyWebhookEndpointFilter; - /** `webhookEndpoints` exist. */ - webhookEndpointsExist?: boolean; + /** Filter by the object’s `webhookEndpointsByNamespaceIdAndDatabaseId` relation. */ + webhookEndpointsByNamespaceIdAndDatabaseId?: NamespaceToManyWebhookEndpointFilter; + /** `webhookEndpointsByNamespaceIdAndDatabaseId` exist. */ + webhookEndpointsByNamespaceIdAndDatabaseIdExist?: boolean; } export interface NamespaceEventFilter { /** Filter by the object’s `actorId` field. */ @@ -8458,44 +8516,6 @@ export interface PlatformBuildStepFilter { /** Filter by the object’s `summary` field. */ summary?: JSONFilter; } -export interface PlatformBuilderBindingFilter { - /** Checks for all expressions in this list. */ - and?: PlatformBuilderBindingFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `createdByPrincipal` field. */ - createdByPrincipal?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: PlatformNamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: PlatformBuilderBindingFilter; - /** Filter by the object’s `observedHost` field. */ - observedHost?: StringFilter; - /** Checks for any expressions in this list. */ - or?: PlatformBuilderBindingFilter[]; - /** Filter by the object’s `realm` field. */ - realm?: StringFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `updatedByPrincipal` field. */ - updatedByPrincipal?: UUIDFilter; -} export interface PlatformFunctionApiBindingFilter { /** Filter by the object’s `alias` field. */ alias?: StringFilter; @@ -9166,10 +9186,6 @@ export interface PlatformNamespaceFilter { not?: PlatformNamespaceFilter; /** Checks for any expressions in this list. */ or?: PlatformNamespaceFilter[]; - /** Filter by the object’s `platformBuilderBindingsByNamespaceId` relation. */ - platformBuilderBindingsByNamespaceId?: PlatformNamespaceToManyPlatformBuilderBindingFilter; - /** `platformBuilderBindingsByNamespaceId` exist. */ - platformBuilderBindingsByNamespaceIdExist?: boolean; /** Filter by the object’s `platformFunctionDeploymentsByNamespaceId` relation. */ platformFunctionDeploymentsByNamespaceId?: PlatformNamespaceToManyPlatformFunctionDeploymentFilter; /** `platformFunctionDeploymentsByNamespaceId` exist. */ @@ -9190,6 +9206,10 @@ export interface PlatformNamespaceFilter { platformResourcesByNamespaceId?: PlatformNamespaceToManyPlatformResourceFilter; /** `platformResourcesByNamespaceId` exist. */ platformResourcesByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformServiceBindingsByNamespaceId` relation. */ + platformServiceBindingsByNamespaceId?: PlatformNamespaceToManyPlatformServiceBindingFilter; + /** `platformServiceBindingsByNamespaceId` exist. */ + platformServiceBindingsByNamespaceIdExist?: boolean; /** Filter by the object’s `platformWebhookEndpointsByNamespaceId` relation. */ platformWebhookEndpointsByNamespaceId?: PlatformNamespaceToManyPlatformWebhookEndpointFilter; /** `platformWebhookEndpointsByNamespaceId` exist. */ @@ -9238,6 +9258,8 @@ export interface PlatformProposalCommentFilter { createdByPrincipal?: UUIDFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -9266,6 +9288,8 @@ export interface PlatformProposalCommentFilter { search?: FullTextFilter; /** TRGM search on the `body` column. */ trgmBody?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `path` column. */ trgmPath?: TrgmSearchInput; /** TSV search on the `search` column. */ @@ -9312,6 +9336,8 @@ export interface PlatformProposalFilter { dueAt?: DatetimeFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -9386,6 +9412,8 @@ export interface PlatformProposalFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `closed_reason` column. */ trgmClosedReason?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `merge_commit` column. */ @@ -9712,6 +9740,8 @@ export interface PlatformRepositoryFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `externalId` field. */ @@ -9762,6 +9792,8 @@ export interface PlatformRepositoryFilter { trgmDefaultBranch?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `external_id` column. */ trgmExternalId?: TrgmSearchInput; /** TRGM search on the `name` column. */ @@ -10447,6 +10479,48 @@ export interface PlatformResourcesResolvedRequirementFilter { /** Filter by the object’s `slug` field. */ slug?: StringFilter; } +export interface PlatformServiceBindingFilter { + /** Checks for all expressions in this list. */ + and?: PlatformServiceBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `installationScope` field. */ + installationScope?: StringFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformServiceBindingFilter; + /** Filter by the object’s `observedHost` field. */ + observedHost?: StringFilter; + /** Checks for any expressions in this list. */ + or?: PlatformServiceBindingFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} export interface PlatformWebhookEndpointFilter { /** Filter by the object’s `active` field. */ active?: BooleanFilter; @@ -10546,6 +10620,8 @@ export interface ProposalCommentFilter { databaseId?: UUIDFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -10574,6 +10650,8 @@ export interface ProposalCommentFilter { search?: FullTextFilter; /** TRGM search on the `body` column. */ trgmBody?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `path` column. */ trgmPath?: TrgmSearchInput; /** TSV search on the `search` column. */ @@ -10626,6 +10704,8 @@ export interface ProposalFilter { dueAt?: DatetimeFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -10696,6 +10776,8 @@ export interface ProposalFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `closed_reason` column. */ trgmClosedReason?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `merge_commit` column. */ @@ -10896,8 +10978,8 @@ export interface RegistryBindingFilter { id?: UUIDFilter; /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -11042,6 +11124,8 @@ export interface RepositoryFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `externalId` field. */ @@ -11088,6 +11172,8 @@ export interface RepositoryFilter { trgmDefaultBranch?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `external_id` column. */ trgmExternalId?: TrgmSearchInput; /** TRGM search on the `name` column. */ @@ -11290,8 +11376,8 @@ export interface ResourceFilter { memoryRequestBytes?: BigIntFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -11396,8 +11482,8 @@ export interface ResourceDefinitionFilter { labels?: JSONFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -11462,8 +11548,8 @@ export interface ResourceInstallationFilter { id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -11795,6 +11881,50 @@ export interface ResourcesResolvedRequirementFilter { /** Filter by the object’s `slug` field. */ slug?: StringFilter; } +export interface ServiceBindingFilter { + /** Checks for all expressions in this list. */ + and?: ServiceBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `installationScope` field. */ + installationScope?: StringFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ServiceBindingFilter; + /** Filter by the object’s `observedHost` field. */ + observedHost?: StringFilter; + /** Checks for any expressions in this list. */ + or?: ServiceBindingFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} export interface WebhookEndpointFilter { /** Filter by the object’s `active` field. */ active?: BooleanFilter; @@ -11816,8 +11946,8 @@ export interface WebhookEndpointFilter { host?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -11966,40 +12096,6 @@ export type BuildStepOrderBy = | 'STATUS_DESC' | 'SUMMARY_ASC' | 'SUMMARY_DESC'; -export type BuilderBindingOrderBy = - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'CREATED_BY_PRINCIPAL_ASC' - | 'CREATED_BY_PRINCIPAL_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'INSTALLATION_ID_ASC' - | 'INSTALLATION_ID_DESC' - | 'LAST_ERROR_ASC' - | 'LAST_ERROR_DESC' - | 'METADATA_ASC' - | 'METADATA_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' - | 'NATURAL' - | 'OBSERVED_HOST_ASC' - | 'OBSERVED_HOST_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'REALM_ASC' - | 'REALM_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'UPDATED_BY_PRINCIPAL_ASC' - | 'UPDATED_BY_PRINCIPAL_DESC'; export type ContentPresetOrderBy = | 'ACTIVE_ASC' | 'ACTIVE_DESC' @@ -13198,38 +13294,6 @@ export type PlatformBuildStepOrderBy = | 'STATUS_DESC' | 'SUMMARY_ASC' | 'SUMMARY_DESC'; -export type PlatformBuilderBindingOrderBy = - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'CREATED_BY_PRINCIPAL_ASC' - | 'CREATED_BY_PRINCIPAL_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'INSTALLATION_ID_ASC' - | 'INSTALLATION_ID_DESC' - | 'LAST_ERROR_ASC' - | 'LAST_ERROR_DESC' - | 'METADATA_ASC' - | 'METADATA_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' - | 'NATURAL' - | 'OBSERVED_HOST_ASC' - | 'OBSERVED_HOST_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'REALM_ASC' - | 'REALM_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'UPDATED_BY_PRINCIPAL_ASC' - | 'UPDATED_BY_PRINCIPAL_DESC'; export type PlatformFunctionApiBindingOrderBy = | 'ALIAS_ASC' | 'ALIAS_DESC' @@ -13829,6 +13893,10 @@ export type PlatformProposalCommentOrderBy = | 'CREATED_BY_PRINCIPAL_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -13885,6 +13953,10 @@ export type PlatformProposalOrderBy = | 'DUE_AT_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -14185,6 +14257,10 @@ export type PlatformRepositoryOrderBy = | 'DESCRIPTION_TRGM_SIMILARITY_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -14766,6 +14842,42 @@ export type PlatformResourcesResolvedRequirementOrderBy = | 'SECRETS_OBJECT_NAME_DESC' | 'SLUG_ASC' | 'SLUG_DESC'; +export type PlatformServiceBindingOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INSTALLATION_ID_ASC' + | 'INSTALLATION_ID_DESC' + | 'INSTALLATION_SCOPE_ASC' + | 'INSTALLATION_SCOPE_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'OBSERVED_HOST_ASC' + | 'OBSERVED_HOST_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type PlatformWebhookEndpointOrderBy = | 'ACTIVE_ASC' | 'ACTIVE_DESC' @@ -14847,6 +14959,10 @@ export type ProposalCommentOrderBy = | 'DATABASE_ID_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -14905,6 +15021,10 @@ export type ProposalOrderBy = | 'DUE_AT_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -15221,6 +15341,10 @@ export type RepositoryOrderBy = | 'DESCRIPTION_TRGM_SIMILARITY_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -15824,6 +15948,44 @@ export type ResourcesResolvedRequirementOrderBy = | 'SECRETS_OBJECT_NAME_DESC' | 'SLUG_ASC' | 'SLUG_DESC'; +export type ServiceBindingOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INSTALLATION_ID_ASC' + | 'INSTALLATION_ID_DESC' + | 'INSTALLATION_SCOPE_ASC' + | 'INSTALLATION_SCOPE_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'OBSERVED_HOST_ASC' + | 'OBSERVED_HOST_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type WebhookEndpointOrderBy = | 'ACTIVE_ASC' | 'ACTIVE_DESC' @@ -15927,7 +16089,6 @@ export interface BuildPatch { imageRef?: string | null; jobId?: string | null; logs?: ConstructiveInternalTypeUpload | null; - logsUpload?: File | null; matrixKey?: string | null; metadata?: Record | null; proposalId?: string | null; @@ -15992,46 +16153,6 @@ export interface DeleteBuildStepInput { clientMutationId?: string; id: string; } -export interface CreateBuilderBindingInput { - clientMutationId?: string; - builderBinding: { - createdBy?: string; - createdByPrincipal?: string; - databaseId: string; - installationId: string; - lastError?: string; - metadata?: Record; - namespaceId: string; - observedHost?: string; - realm?: string; - status?: string; - updatedBy?: string; - updatedByPrincipal?: string; - }; -} -export interface BuilderBindingPatch { - createdBy?: string | null; - createdByPrincipal?: string | null; - databaseId?: string | null; - installationId?: string | null; - lastError?: string | null; - metadata?: Record | null; - namespaceId?: string | null; - observedHost?: string | null; - realm?: string | null; - status?: string | null; - updatedBy?: string | null; - updatedByPrincipal?: string | null; -} -export interface UpdateBuilderBindingInput { - clientMutationId?: string; - id: string; - builderBindingPatch: BuilderBindingPatch; -} -export interface DeleteBuilderBindingInput { - clientMutationId?: string; - id: string; -} export interface CreateContentPresetInput { clientMutationId?: string; contentPreset: { @@ -16064,20 +16185,6 @@ export interface DeleteContentPresetInput { clientMutationId?: string; id: string; } -export interface CreateDatabaseFunctionGraphInput { - clientMutationId?: string; - databaseFunctionGraph: { - context?: string; - createdBy?: string; - databaseId: string; - definitionsCommitId: string; - description?: string; - isValid?: boolean; - name?: string; - storeId: string; - validationErrors?: Record; - }; -} export interface DatabaseFunctionGraphPatch { context?: string | null; createdBy?: string | null; @@ -16304,13 +16411,6 @@ export interface DeleteDatabaseGraphCommitInput { clientMutationId?: string; id: string; } -export interface CreateDatabaseGraphGetAllTreeNodesRecordInput { - clientMutationId?: string; - databaseGraphGetAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; -} export interface DatabaseGraphGetAllTreeNodesRecordPatch { data?: Record | null; path?: string[] | null; @@ -16726,20 +16826,6 @@ export interface DeleteFunctionGraphCommitInput { clientMutationId?: string; id: string; } -export interface CreateFunctionGraphInput { - clientMutationId?: string; - functionGraph: { - context?: string; - createdBy?: string; - definitionsCommitId: string; - description?: string; - isValid?: boolean; - name?: string; - scopeId: string; - storeId: string; - validationErrors?: Record; - }; -} export interface FunctionGraphPatch { context?: string | null; createdBy?: string | null; @@ -17144,13 +17230,6 @@ export interface DeleteFunctionScheduleInput { clientMutationId?: string; id: string; } -export interface CreateGetAllTreeNodesRecordInput { - clientMutationId?: string; - getAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; -} export interface GetAllTreeNodesRecordPatch { data?: Record | null; path?: string[] | null; @@ -17278,13 +17357,6 @@ export interface DeleteInfraCommitInput { clientMutationId?: string; id: string; } -export interface CreateInfraGetAllTreeNodesRecordInput { - clientMutationId?: string; - infraGetAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; -} export interface InfraGetAllTreeNodesRecordPatch { data?: Record | null; path?: string[] | null; @@ -17388,7 +17460,6 @@ export interface IntegrationProviderPatch { description?: string | null; icon?: string | null; logo?: ConstructiveInternalTypeImage | null; - logoUpload?: File | null; name?: string | null; requiredConfigs?: ResourceRequirementInput[] | null; requiredSecrets?: ResourceRequirementInput[] | null; @@ -17504,7 +17575,6 @@ export interface PlatformBuildPatch { imageRef?: string | null; jobId?: string | null; logs?: ConstructiveInternalTypeUpload | null; - logsUpload?: File | null; matrixKey?: string | null; metadata?: Record | null; proposalId?: string | null; @@ -17568,44 +17638,6 @@ export interface DeletePlatformBuildStepInput { clientMutationId?: string; id: string; } -export interface CreatePlatformBuilderBindingInput { - clientMutationId?: string; - platformBuilderBinding: { - createdBy?: string; - createdByPrincipal?: string; - installationId: string; - lastError?: string; - metadata?: Record; - namespaceId: string; - observedHost?: string; - realm?: string; - status?: string; - updatedBy?: string; - updatedByPrincipal?: string; - }; -} -export interface PlatformBuilderBindingPatch { - createdBy?: string | null; - createdByPrincipal?: string | null; - installationId?: string | null; - lastError?: string | null; - metadata?: Record | null; - namespaceId?: string | null; - observedHost?: string | null; - realm?: string | null; - status?: string | null; - updatedBy?: string | null; - updatedByPrincipal?: string | null; -} -export interface UpdatePlatformBuilderBindingInput { - clientMutationId?: string; - id: string; - platformBuilderBindingPatch: PlatformBuilderBindingPatch; -} -export interface DeletePlatformBuilderBindingInput { - clientMutationId?: string; - id: string; -} export interface CreatePlatformFunctionApiBindingInput { clientMutationId?: string; platformFunctionApiBinding: { @@ -18114,13 +18146,6 @@ export interface DeletePlatformInfraCommitInput { clientMutationId?: string; id: string; } -export interface CreatePlatformInfraGetAllTreeNodesRecordInput { - clientMutationId?: string; - platformInfraGetAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; -} export interface PlatformInfraGetAllTreeNodesRecordPatch { data?: Record | null; path?: string[] | null; @@ -18892,25 +18917,6 @@ export interface DeletePlatformResourceInput { clientMutationId?: string; id: string; } -export interface CreatePlatformResourceDeclaredCapacityInput { - clientMutationId?: string; - platformResourceDeclaredCapacity: { - cpuLimitMillicores?: string; - cpuRequestMillicores?: string; - installationId: string; - isTransient?: boolean; - kind?: string; - memoryLimitBytes?: string; - memoryRequestBytes?: string; - namespaceId: string; - podCountMax?: number; - podCountMin?: number; - source?: string; - sourceId: string; - storageSizeBytes?: string; - storageTotalBytes?: string; - }; -} export interface PlatformResourceDeclaredCapacityPatch { cpuLimitMillicores?: string | null; cpuRequestMillicores?: string | null; @@ -19052,29 +19058,6 @@ export interface DeletePlatformResourceInstallationInput { clientMutationId?: string; id: string; } -export interface CreatePlatformResourceObservedStorageInput { - clientMutationId?: string; - platformResourceObservedStorage: { - capacity?: string; - capacityBytes?: string; - claimName?: string; - declaredStorageClass?: string; - declaredStorageSizeBytes?: string; - declaredStorageTotalBytes?: string; - installationId: string; - isBound?: boolean; - kind?: string; - namespaceId: string; - phase?: string; - requested?: string; - requestedBytes?: string; - resourceId: string; - resourceStatus?: string; - slug?: string; - storageClass?: string; - storageName?: string; - }; -} export interface PlatformResourceObservedStoragePatch { capacity?: string | null; capacityBytes?: string | null; @@ -19196,30 +19179,6 @@ export interface DeletePlatformResourceUsageSummaryInput { clientMutationId?: string; id: string; } -export interface CreatePlatformResourceUtilizationInput { - clientMutationId?: string; - platformResourceUtilization: { - avgMemoryBytes?: string; - cpuLimitMillicores?: string; - cpuPeakUtilization?: string; - cpuRequestHeadroomMillicores?: string; - cpuRequestMillicores?: string; - date?: string; - gbSeconds?: string; - kind?: string; - maxCpuMillicores?: string; - maxMemoryBytes?: string; - memoryLimitBytes?: string; - memoryPeakUtilization?: string; - memoryRequestBytes?: string; - memoryRequestHeadroomBytes?: string; - namespaceId: string; - replicas?: number; - resourceId: string; - runtimeSeconds?: string; - sampleCount?: number; - }; -} export interface PlatformResourceUtilizationPatch { avgMemoryBytes?: string | null; cpuLimitMillicores?: string | null; @@ -19250,43 +19209,6 @@ export interface DeletePlatformResourceUtilizationInput { clientMutationId?: string; id: string; } -export interface CreatePlatformResourcesHealthInput { - clientMutationId?: string; - platformResourcesHealth: { - annotations?: Record; - cpuLimitMillicores?: string; - cpuRequestMillicores?: string; - createdBy?: string; - createdByPrincipal?: string; - errorCount?: number; - imageRef?: string; - installationId: string; - integrations?: string[]; - kind?: string; - labels?: Record; - lastError?: string; - lastHeartbeatAt?: string; - memoryLimitBytes?: string; - memoryRequestBytes?: string; - name?: string; - namespaceId: string; - realm?: string; - replicas?: number; - requiredConfigs?: ResourceRequirement[]; - requiredSecrets?: ResourceRequirement[]; - resourceDefinitionId: string; - slug?: string; - spec?: Record; - status?: string; - statusDetail?: string; - statusObserved?: Record; - storageClass?: string; - storageSizeBytes?: string; - storageTotalBytes?: string; - updatedBy?: string; - updatedByPrincipal?: string; - }; -} export interface PlatformResourcesHealthPatch { annotations?: Record | null; cpuLimitMillicores?: string | null; @@ -19330,18 +19252,6 @@ export interface DeletePlatformResourcesHealthInput { clientMutationId?: string; id: string; } -export interface CreatePlatformResourcesRequirementsStateInput { - clientMutationId?: string; - platformResourcesRequirementsState: { - configHash?: string; - configObjectName?: string; - requirementsHash?: string; - resourceId: string; - secretsHash?: string; - secretsObjectName?: string; - slug?: string; - }; -} export interface PlatformResourcesRequirementsStatePatch { configHash?: string | null; configObjectName?: string | null; @@ -19360,22 +19270,6 @@ export interface DeletePlatformResourcesRequirementsStateInput { clientMutationId?: string; id: string; } -export interface CreatePlatformResourcesResolvedRequirementInput { - clientMutationId?: string; - platformResourcesResolvedRequirement: { - atomId: string; - configObjectName?: string; - name?: string; - namespaceId: string; - present?: boolean; - realm?: string; - required?: boolean; - requirementKind?: string; - resourceId: string; - secretsObjectName?: string; - slug?: string; - }; -} export interface PlatformResourcesResolvedRequirementPatch { atomId?: string | null; configObjectName?: string | null; @@ -19398,6 +19292,48 @@ export interface DeletePlatformResourcesResolvedRequirementInput { clientMutationId?: string; id: string; } +export interface CreatePlatformServiceBindingInput { + clientMutationId?: string; + platformServiceBinding: { + createdBy?: string; + createdByPrincipal?: string; + installationId: string; + installationScope: string; + kind: string; + lastError?: string; + metadata?: Record; + namespaceId: string; + observedHost?: string; + realm?: string; + status?: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformServiceBindingPatch { + createdBy?: string | null; + createdByPrincipal?: string | null; + installationId?: string | null; + installationScope?: string | null; + kind?: string | null; + lastError?: string | null; + metadata?: Record | null; + namespaceId?: string | null; + observedHost?: string | null; + realm?: string | null; + status?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformServiceBindingInput { + clientMutationId?: string; + id: string; + platformServiceBindingPatch: PlatformServiceBindingPatch; +} +export interface DeletePlatformServiceBindingInput { + clientMutationId?: string; + id: string; +} export interface CreatePlatformWebhookEndpointInput { clientMutationId?: string; platformWebhookEndpoint: { @@ -20059,25 +19995,6 @@ export interface DeleteResourceInput { clientMutationId?: string; id: string; } -export interface CreateResourceDeclaredCapacityInput { - clientMutationId?: string; - resourceDeclaredCapacity: { - cpuLimitMillicores?: string; - cpuRequestMillicores?: string; - installationId: string; - isTransient?: boolean; - kind?: string; - memoryLimitBytes?: string; - memoryRequestBytes?: string; - namespaceId: string; - podCountMax?: number; - podCountMin?: number; - source?: string; - sourceId: string; - storageSizeBytes?: string; - storageTotalBytes?: string; - }; -} export interface ResourceDeclaredCapacityPatch { cpuLimitMillicores?: string | null; cpuRequestMillicores?: string | null; @@ -20225,29 +20142,6 @@ export interface DeleteResourceInstallationInput { clientMutationId?: string; id: string; } -export interface CreateResourceObservedStorageInput { - clientMutationId?: string; - resourceObservedStorage: { - capacity?: string; - capacityBytes?: string; - claimName?: string; - declaredStorageClass?: string; - declaredStorageSizeBytes?: string; - declaredStorageTotalBytes?: string; - installationId: string; - isBound?: boolean; - kind?: string; - namespaceId: string; - phase?: string; - requested?: string; - requestedBytes?: string; - resourceId: string; - resourceStatus?: string; - slug?: string; - storageClass?: string; - storageName?: string; - }; -} export interface ResourceObservedStoragePatch { capacity?: string | null; capacityBytes?: string | null; @@ -20375,30 +20269,6 @@ export interface DeleteResourceUsageSummaryInput { clientMutationId?: string; id: string; } -export interface CreateResourceUtilizationInput { - clientMutationId?: string; - resourceUtilization: { - avgMemoryBytes?: string; - cpuLimitMillicores?: string; - cpuPeakUtilization?: string; - cpuRequestHeadroomMillicores?: string; - cpuRequestMillicores?: string; - date?: string; - gbSeconds?: string; - kind?: string; - maxCpuMillicores?: string; - maxMemoryBytes?: string; - memoryLimitBytes?: string; - memoryPeakUtilization?: string; - memoryRequestBytes?: string; - memoryRequestHeadroomBytes?: string; - namespaceId: string; - replicas?: number; - resourceId: string; - runtimeSeconds?: string; - sampleCount?: number; - }; -} export interface ResourceUtilizationPatch { avgMemoryBytes?: string | null; cpuLimitMillicores?: string | null; @@ -20429,44 +20299,6 @@ export interface DeleteResourceUtilizationInput { clientMutationId?: string; id: string; } -export interface CreateResourcesHealthInput { - clientMutationId?: string; - resourcesHealth: { - annotations?: Record; - cpuLimitMillicores?: string; - cpuRequestMillicores?: string; - createdBy?: string; - createdByPrincipal?: string; - databaseId: string; - errorCount?: number; - imageRef?: string; - installationId: string; - integrations?: string[]; - kind?: string; - labels?: Record; - lastError?: string; - lastHeartbeatAt?: string; - memoryLimitBytes?: string; - memoryRequestBytes?: string; - name?: string; - namespaceId: string; - realm?: string; - replicas?: number; - requiredConfigs?: ResourceRequirement[]; - requiredSecrets?: ResourceRequirement[]; - resourceDefinitionId: string; - slug?: string; - spec?: Record; - status?: string; - statusDetail?: string; - statusObserved?: Record; - storageClass?: string; - storageSizeBytes?: string; - storageTotalBytes?: string; - updatedBy?: string; - updatedByPrincipal?: string; - }; -} export interface ResourcesHealthPatch { annotations?: Record | null; cpuLimitMillicores?: string | null; @@ -20511,18 +20343,6 @@ export interface DeleteResourcesHealthInput { clientMutationId?: string; id: string; } -export interface CreateResourcesRequirementsStateInput { - clientMutationId?: string; - resourcesRequirementsState: { - configHash?: string; - configObjectName?: string; - requirementsHash?: string; - resourceId: string; - secretsHash?: string; - secretsObjectName?: string; - slug?: string; - }; -} export interface ResourcesRequirementsStatePatch { configHash?: string | null; configObjectName?: string | null; @@ -20541,22 +20361,6 @@ export interface DeleteResourcesRequirementsStateInput { clientMutationId?: string; id: string; } -export interface CreateResourcesResolvedRequirementInput { - clientMutationId?: string; - resourcesResolvedRequirement: { - atomId: string; - configObjectName?: string; - name?: string; - namespaceId: string; - present?: boolean; - realm?: string; - required?: boolean; - requirementKind?: string; - resourceId: string; - secretsObjectName?: string; - slug?: string; - }; -} export interface ResourcesResolvedRequirementPatch { atomId?: string | null; configObjectName?: string | null; @@ -20579,6 +20383,50 @@ export interface DeleteResourcesResolvedRequirementInput { clientMutationId?: string; id: string; } +export interface CreateServiceBindingInput { + clientMutationId?: string; + serviceBinding: { + createdBy?: string; + createdByPrincipal?: string; + databaseId: string; + installationId: string; + installationScope: string; + kind: string; + lastError?: string; + metadata?: Record; + namespaceId: string; + observedHost?: string; + realm?: string; + status?: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface ServiceBindingPatch { + createdBy?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + installationId?: string | null; + installationScope?: string | null; + kind?: string | null; + lastError?: string | null; + metadata?: Record | null; + namespaceId?: string | null; + observedHost?: string | null; + realm?: string | null; + status?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateServiceBindingInput { + clientMutationId?: string; + id: string; + serviceBindingPatch: ServiceBindingPatch; +} +export interface DeleteServiceBindingInput { + clientMutationId?: string; + id: string; +} export interface CreateWebhookEndpointInput { clientMutationId?: string; webhookEndpoint: { @@ -20682,13 +20530,13 @@ export const connectionFieldsMap = { imageGrants: 'ImageGrant', }, Namespace: { - builderBindings: 'BuilderBinding', - functionDeployments: 'FunctionDeployment', - registryBindings: 'RegistryBinding', - resourceDefinitions: 'ResourceDefinition', - resourceInstallations: 'ResourceInstallation', - resources: 'Resource', - webhookEndpoints: 'WebhookEndpoint', + functionDeploymentsByNamespaceIdAndDatabaseId: 'FunctionDeployment', + registryBindingsByNamespaceIdAndDatabaseId: 'RegistryBinding', + resourceDefinitionsByNamespaceIdAndDatabaseId: 'ResourceDefinition', + resourceInstallationsByNamespaceIdAndDatabaseId: 'ResourceInstallation', + resourcesByNamespaceIdAndDatabaseId: 'Resource', + serviceBindingsByNamespaceIdAndDatabaseId: 'ServiceBinding', + webhookEndpointsByNamespaceIdAndDatabaseId: 'WebhookEndpoint', }, PlatformFunctionApiBinding: { platformFunctionInvocationsByApiBindingId: 'PlatformFunctionInvocation', @@ -20703,12 +20551,12 @@ export const connectionFieldsMap = { platformImageGrantsByImageId: 'PlatformImageGrant', }, PlatformNamespace: { - platformBuilderBindingsByNamespaceId: 'PlatformBuilderBinding', platformFunctionDeploymentsByNamespaceId: 'PlatformFunctionDeployment', platformRegistryBindingsByNamespaceId: 'PlatformRegistryBinding', platformResourceDefinitionsByNamespaceId: 'PlatformResourceDefinition', platformResourceInstallationsByNamespaceId: 'PlatformResourceInstallation', platformResourcesByNamespaceId: 'PlatformResource', + platformServiceBindingsByNamespaceId: 'PlatformServiceBinding', platformWebhookEndpointsByNamespaceId: 'PlatformWebhookEndpoint', }, PlatformProposalComment: { @@ -20852,6 +20700,15 @@ export interface CopyGraphInput { name?: string; scopeId?: string; } +export interface CreateFunctionGraphInput { + clientMutationId?: string; + context?: string; + createdBy?: string; + definitionsCommitId?: string; + description?: string; + name?: string; + scopeId?: string; +} export interface DatabaseAddEdgeInput { clientMutationId?: string; context?: string; @@ -21488,15 +21345,6 @@ export interface ConstructiveInternalTypeImageFilter { /** Not included in the specified list. */ notIn?: ConstructiveInternalTypeImage[]; } -/** A filter to be used against many `BuilderBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface NamespaceToManyBuilderBindingFilter { - /** Filters to entities where every related entity matches. */ - every?: BuilderBindingFilter; - /** Filters to entities where no related entity matches. */ - none?: BuilderBindingFilter; - /** Filters to entities where at least one related entity matches. */ - some?: BuilderBindingFilter; -} /** A filter to be used against many `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ export interface NamespaceToManyFunctionDeploymentFilter { /** Filters to entities where every related entity matches. */ @@ -21542,6 +21390,15 @@ export interface NamespaceToManyResourceFilter { /** Filters to entities where at least one related entity matches. */ some?: ResourceFilter; } +/** A filter to be used against many `ServiceBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceToManyServiceBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: ServiceBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: ServiceBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ServiceBindingFilter; +} /** A filter to be used against many `WebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ export interface NamespaceToManyWebhookEndpointFilter { /** Filters to entities where every related entity matches. */ @@ -21605,15 +21462,6 @@ export interface PlatformImageToManyPlatformImageGrantFilter { /** Filters to entities where at least one related entity matches. */ some?: PlatformImageGrantFilter; } -/** A filter to be used against many `PlatformBuilderBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformNamespaceToManyPlatformBuilderBindingFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformBuilderBindingFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformBuilderBindingFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformBuilderBindingFilter; -} /** A filter to be used against many `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformNamespaceToManyPlatformFunctionDeploymentFilter { /** Filters to entities where every related entity matches. */ @@ -21659,6 +21507,15 @@ export interface PlatformNamespaceToManyPlatformResourceFilter { /** Filters to entities where at least one related entity matches. */ some?: PlatformResourceFilter; } +/** A filter to be used against many `PlatformServiceBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceToManyPlatformServiceBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformServiceBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformServiceBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformServiceBindingFilter; +} /** A filter to be used against many `PlatformWebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformNamespaceToManyPlatformWebhookEndpointFilter { /** Filters to entities where every related entity matches. */ @@ -21812,10 +21669,12 @@ export interface VectorNearbyInput { includeChunks?: boolean; /** Similarity metric to use (default: COSINE). */ metric?: VectorMetric; - /** Natural language text to embed server-side for similarity search. Mutually exclusive with `vector` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** The model that produced `vector`. On a column that records the model of each row's vector, only rows embedded with this model are compared; vectors of two models are not comparable. Filled in server-side when `text` is embedded. */ + model?: string; + /** Natural language text to embed server-side for similarity search. Provide exactly one of `text` or `vector`; sending both or neither is an error. Blank text on its own counts as not given. Requires the LLM plugin to be configured with an embedding provider. */ text?: string; /** Query vector for similarity search. */ - vector: number[]; + vector?: number[]; } /** A filter to be used against many `PlatformProposal` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformProposalToManyPlatformProposalFilter { @@ -22322,32 +22181,6 @@ export interface BuildStepInput { /** Parsed detail: failure message, assertion diff, counts, annotations */ summary?: Record; } -/** An input for mutations affecting `BuilderBinding` */ -export interface BuilderBindingInput { - createdAt?: string; - createdBy?: string; - createdByPrincipal?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - id?: string; - /** BuildKit resource installation serving this binding; may belong to another resource scope */ - installationId: string; - /** Most recent projection failure */ - lastError?: string; - /** Reconciler detail (projection timestamps and diagnostics) */ - metadata?: Record; - /** Namespace whose builds use this BuildKit installation */ - namespaceId: string; - /** BuildKit address last projected into the namespace (NULL = never projected) */ - observedHost?: string; - /** Lane this binding applies to (NULL = the scope's default lane) */ - realm?: string; - /** Projection state of BUILDKIT_HOST: pending, active, failed */ - status?: string; - updatedAt?: string; - updatedBy?: string; - updatedByPrincipal?: string; -} /** An input for mutations affecting `ContentPreset` */ export interface ContentPresetInput { /** Whether this preset is selectable at provision time */ @@ -23384,30 +23217,6 @@ export interface PlatformBuildStepInput { /** Parsed detail: failure message, assertion diff, counts, annotations */ summary?: Record; } -/** An input for mutations affecting `PlatformBuilderBinding` */ -export interface PlatformBuilderBindingInput { - createdAt?: string; - createdBy?: string; - createdByPrincipal?: string; - id?: string; - /** BuildKit resource installation serving this binding; may belong to another resource scope */ - installationId: string; - /** Most recent projection failure */ - lastError?: string; - /** Reconciler detail (projection timestamps and diagnostics) */ - metadata?: Record; - /** Namespace whose builds use this BuildKit installation */ - namespaceId: string; - /** BuildKit address last projected into the namespace (NULL = never projected) */ - observedHost?: string; - /** Lane this binding applies to (NULL = the scope's default lane) */ - realm?: string; - /** Projection state of BUILDKIT_HOST: pending, active, failed */ - status?: string; - updatedAt?: string; - updatedBy?: string; - updatedByPrincipal?: string; -} /** An input for mutations affecting `PlatformFunctionApiBinding` */ export interface PlatformFunctionApiBindingInput { /** Binding alias (e.g. default, staging, production) */ @@ -23933,7 +23742,7 @@ export interface PlatformProposalCommentInput { createdBy?: string; createdByPrincipal?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** Line within path the comment is anchored to */ @@ -23966,7 +23775,7 @@ export interface PlatformProposalInput { /** When this is wanted by (NULL when nothing is promised) */ dueAt?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** issue (a report or plan), change (merge one ref into another), discussion (an open question), decision (a question answered) */ @@ -24065,7 +23874,7 @@ export interface PlatformProposalsChunkInput { chunkIndex?: number; createdAt?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; metadata?: Record; @@ -24166,7 +23975,7 @@ export interface PlatformRepositoryInput { /** What this repository holds */ description?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; /** Identifier of this repository in the external provider (NULL for local) */ externalId?: string; @@ -24460,6 +24269,34 @@ export interface PlatformResourceUsageSummaryInput { /** Number of raw samples aggregated into this summary */ sampleCount?: number; } +/** An input for mutations affecting `PlatformServiceBinding` */ +export interface PlatformServiceBindingInput { + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + id?: string; + /** Resource installation serving this binding, in the installations table of installation_scope */ + installationId: string; + /** Scope whose installations table holds installation_id: this scope or platform */ + installationScope: string; + /** Service this binding projects: builder (BUILDKIT_HOST) or git (GIT_PROVIDER + GIT_SERVICE_URL) */ + kind: string; + /** Most recent projection failure */ + lastError?: string; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: Record; + /** Namespace whose builds use this BuildKit installation */ + namespaceId: string; + /** Service address last projected into the namespace (NULL = never projected) */ + observedHost?: string; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string; + /** Projection state of the bound address: pending, active, failed */ + status?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} /** An input for mutations affecting `PlatformWebhookEndpoint` */ export interface PlatformWebhookEndpointInput { /** Whether this endpoint currently accepts deliveries */ @@ -24522,7 +24359,7 @@ export interface ProposalCommentInput { createdBy?: string; createdByPrincipal?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** Line within path the comment is anchored to */ @@ -24555,7 +24392,7 @@ export interface ProposalInput { /** When this is wanted by (NULL when nothing is promised) */ dueAt?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** issue (a report or plan), change (merge one ref into another), discussion (an open question), decision (a question answered) */ @@ -24656,7 +24493,7 @@ export interface ProposalsChunkInput { /** Policy-required field derived from source table (used by AuthzRelatedEntityMembership) */ databaseId?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; metadata?: Record; @@ -24765,7 +24602,7 @@ export interface RepositoryInput { /** What this repository holds */ description?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; /** Identifier of this repository in the external provider (NULL for local) */ externalId?: string; @@ -25056,6 +24893,36 @@ export interface ResourceUsageSummaryInput { /** Number of raw samples aggregated into this summary */ sampleCount?: number; } +/** An input for mutations affecting `ServiceBinding` */ +export interface ServiceBindingInput { + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** Resource installation serving this binding, in the installations table of installation_scope */ + installationId: string; + /** Scope whose installations table holds installation_id: this scope or platform */ + installationScope: string; + /** Service this binding projects: builder (BUILDKIT_HOST) or git (GIT_PROVIDER + GIT_SERVICE_URL) */ + kind: string; + /** Most recent projection failure */ + lastError?: string; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: Record; + /** Namespace whose builds use this BuildKit installation */ + namespaceId: string; + /** Service address last projected into the namespace (NULL = never projected) */ + observedHost?: string; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string; + /** Projection state of the bound address: pending, active, failed */ + status?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} /** An input for mutations affecting `WebhookEndpoint` */ export interface WebhookEndpointInput { /** Whether this endpoint currently accepts deliveries */ @@ -25555,8 +25422,8 @@ export interface WebhookEndpointFilter { host?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -25874,47 +25741,6 @@ export interface ImageGrantFilter { /** Filter by the object’s `updatedByPrincipal` field. */ updatedByPrincipal?: UUIDFilter; } -/** A filter to be used against `BuilderBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface BuilderBindingFilter { - /** Checks for all expressions in this list. */ - and?: BuilderBindingFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `createdByPrincipal` field. */ - createdByPrincipal?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: BuilderBindingFilter; - /** Filter by the object’s `observedHost` field. */ - observedHost?: StringFilter; - /** Checks for any expressions in this list. */ - or?: BuilderBindingFilter[]; - /** Filter by the object’s `realm` field. */ - realm?: StringFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `updatedByPrincipal` field. */ - updatedByPrincipal?: UUIDFilter; -} /** A filter to be used against `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ export interface FunctionDeploymentFilter { /** Checks for all expressions in this list. */ @@ -25945,8 +25771,8 @@ export interface FunctionDeploymentFilter { lastError?: StringFilter; /** Filter by the object’s `lastErrorAt` field. */ lastErrorAt?: DatetimeFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -25992,8 +25818,8 @@ export interface RegistryBindingFilter { id?: UUIDFilter; /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -26049,8 +25875,8 @@ export interface ResourceDefinitionFilter { labels?: JSONFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -26092,8 +25918,8 @@ export interface ResourceInstallationFilter { id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -26171,8 +25997,8 @@ export interface ResourceFilter { memoryRequestBytes?: BigIntFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -26214,6 +26040,51 @@ export interface ResourceFilter { /** Filter by the object’s `updatedByPrincipal` field. */ updatedByPrincipal?: UUIDFilter; } +/** A filter to be used against `ServiceBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface ServiceBindingFilter { + /** Checks for all expressions in this list. */ + and?: ServiceBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `installationScope` field. */ + installationScope?: StringFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ServiceBindingFilter; + /** Filter by the object’s `observedHost` field. */ + observedHost?: StringFilter; + /** Checks for any expressions in this list. */ + or?: ServiceBindingFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} /** A filter to be used against `PlatformFunctionInvocation` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformFunctionInvocationFilter { /** Filter by the object’s `actorId` field. */ @@ -26456,45 +26327,6 @@ export interface PlatformImageGrantFilter { /** Filter by the object’s `updatedByPrincipal` field. */ updatedByPrincipal?: UUIDFilter; } -/** A filter to be used against `PlatformBuilderBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformBuilderBindingFilter { - /** Checks for all expressions in this list. */ - and?: PlatformBuilderBindingFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `createdByPrincipal` field. */ - createdByPrincipal?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: PlatformNamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: PlatformBuilderBindingFilter; - /** Filter by the object’s `observedHost` field. */ - observedHost?: StringFilter; - /** Checks for any expressions in this list. */ - or?: PlatformBuilderBindingFilter[]; - /** Filter by the object’s `realm` field. */ - realm?: StringFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `updatedByPrincipal` field. */ - updatedByPrincipal?: UUIDFilter; -} /** A filter to be used against `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformFunctionDeploymentFilter { /** Checks for all expressions in this list. */ @@ -26784,6 +26616,49 @@ export interface PlatformResourceFilter { /** Filter by the object’s `updatedByPrincipal` field. */ updatedByPrincipal?: UUIDFilter; } +/** A filter to be used against `PlatformServiceBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformServiceBindingFilter { + /** Checks for all expressions in this list. */ + and?: PlatformServiceBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `installationScope` field. */ + installationScope?: StringFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformServiceBindingFilter; + /** Filter by the object’s `observedHost` field. */ + observedHost?: StringFilter; + /** Checks for any expressions in this list. */ + or?: PlatformServiceBindingFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} /** A filter to be used against `PlatformProposalReaction` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformProposalReactionFilter { /** Filter by the object’s `actorId` field. */ @@ -26845,6 +26720,8 @@ export interface PlatformProposalFilter { dueAt?: DatetimeFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -26919,6 +26796,8 @@ export interface PlatformProposalFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `closed_reason` column. */ trgmClosedReason?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `merge_commit` column. */ @@ -27039,6 +26918,8 @@ export interface PlatformProposalCommentFilter { createdByPrincipal?: UUIDFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -27067,6 +26948,8 @@ export interface PlatformProposalCommentFilter { search?: FullTextFilter; /** TRGM search on the `body` column. */ trgmBody?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `path` column. */ trgmPath?: TrgmSearchInput; /** TSV search on the `search` column. */ @@ -27553,6 +27436,8 @@ export interface ProposalFilter { dueAt?: DatetimeFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -27623,6 +27508,8 @@ export interface ProposalFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `closed_reason` column. */ trgmClosedReason?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `merge_commit` column. */ @@ -27678,6 +27565,8 @@ export interface ProposalCommentFilter { databaseId?: UUIDFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -27706,6 +27595,8 @@ export interface ProposalCommentFilter { search?: FullTextFilter; /** TRGM search on the `body` column. */ trgmBody?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `path` column. */ trgmPath?: TrgmSearchInput; /** TSV search on the `search` column. */ @@ -28419,6 +28310,8 @@ export interface RepositoryFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `externalId` field. */ @@ -28465,6 +28358,8 @@ export interface RepositoryFilter { trgmDefaultBranch?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `external_id` column. */ trgmExternalId?: TrgmSearchInput; /** TRGM search on the `name` column. */ @@ -28502,10 +28397,6 @@ export interface NamespaceFilter { and?: NamespaceFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; - /** Filter by the object’s `builderBindings` relation. */ - builderBindings?: NamespaceToManyBuilderBindingFilter; - /** `builderBindings` exist. */ - builderBindingsExist?: boolean; /** Filter by the object’s `clusterId` field. */ clusterId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -28514,10 +28405,10 @@ export interface NamespaceFilter { databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; - /** Filter by the object’s `functionDeployments` relation. */ - functionDeployments?: NamespaceToManyFunctionDeploymentFilter; - /** `functionDeployments` exist. */ - functionDeploymentsExist?: boolean; + /** Filter by the object’s `functionDeploymentsByNamespaceIdAndDatabaseId` relation. */ + functionDeploymentsByNamespaceIdAndDatabaseId?: NamespaceToManyFunctionDeploymentFilter; + /** `functionDeploymentsByNamespaceIdAndDatabaseId` exist. */ + functionDeploymentsByNamespaceIdAndDatabaseIdExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isActive` field. */ @@ -28536,30 +28427,34 @@ export interface NamespaceFilter { not?: NamespaceFilter; /** Checks for any expressions in this list. */ or?: NamespaceFilter[]; - /** Filter by the object’s `registryBindings` relation. */ - registryBindings?: NamespaceToManyRegistryBindingFilter; - /** `registryBindings` exist. */ - registryBindingsExist?: boolean; - /** Filter by the object’s `resourceDefinitions` relation. */ - resourceDefinitions?: NamespaceToManyResourceDefinitionFilter; - /** `resourceDefinitions` exist. */ - resourceDefinitionsExist?: boolean; - /** Filter by the object’s `resourceInstallations` relation. */ - resourceInstallations?: NamespaceToManyResourceInstallationFilter; - /** `resourceInstallations` exist. */ - resourceInstallationsExist?: boolean; - /** Filter by the object’s `resources` relation. */ - resources?: NamespaceToManyResourceFilter; - /** `resources` exist. */ - resourcesExist?: boolean; + /** Filter by the object’s `registryBindingsByNamespaceIdAndDatabaseId` relation. */ + registryBindingsByNamespaceIdAndDatabaseId?: NamespaceToManyRegistryBindingFilter; + /** `registryBindingsByNamespaceIdAndDatabaseId` exist. */ + registryBindingsByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `resourceDefinitionsByNamespaceIdAndDatabaseId` relation. */ + resourceDefinitionsByNamespaceIdAndDatabaseId?: NamespaceToManyResourceDefinitionFilter; + /** `resourceDefinitionsByNamespaceIdAndDatabaseId` exist. */ + resourceDefinitionsByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `resourceInstallationsByNamespaceIdAndDatabaseId` relation. */ + resourceInstallationsByNamespaceIdAndDatabaseId?: NamespaceToManyResourceInstallationFilter; + /** `resourceInstallationsByNamespaceIdAndDatabaseId` exist. */ + resourceInstallationsByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `resourcesByNamespaceIdAndDatabaseId` relation. */ + resourcesByNamespaceIdAndDatabaseId?: NamespaceToManyResourceFilter; + /** `resourcesByNamespaceIdAndDatabaseId` exist. */ + resourcesByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `serviceBindingsByNamespaceIdAndDatabaseId` relation. */ + serviceBindingsByNamespaceIdAndDatabaseId?: NamespaceToManyServiceBindingFilter; + /** `serviceBindingsByNamespaceIdAndDatabaseId` exist. */ + serviceBindingsByNamespaceIdAndDatabaseIdExist?: boolean; /** Filter by the object’s `status` field. */ status?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `webhookEndpoints` relation. */ - webhookEndpoints?: NamespaceToManyWebhookEndpointFilter; - /** `webhookEndpoints` exist. */ - webhookEndpointsExist?: boolean; + /** Filter by the object’s `webhookEndpointsByNamespaceIdAndDatabaseId` relation. */ + webhookEndpointsByNamespaceIdAndDatabaseId?: NamespaceToManyWebhookEndpointFilter; + /** `webhookEndpointsByNamespaceIdAndDatabaseId` exist. */ + webhookEndpointsByNamespaceIdAndDatabaseIdExist?: boolean; } /** A filter to be used against `FunctionGraph` object types. All fields are combined with a logical ‘and.’ */ export interface FunctionGraphFilter { @@ -28624,6 +28519,8 @@ export interface PlatformRepositoryFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `externalId` field. */ @@ -28674,6 +28571,8 @@ export interface PlatformRepositoryFilter { trgmDefaultBranch?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `external_id` column. */ trgmExternalId?: TrgmSearchInput; /** TRGM search on the `name` column. */ @@ -28786,10 +28685,6 @@ export interface PlatformNamespaceFilter { not?: PlatformNamespaceFilter; /** Checks for any expressions in this list. */ or?: PlatformNamespaceFilter[]; - /** Filter by the object’s `platformBuilderBindingsByNamespaceId` relation. */ - platformBuilderBindingsByNamespaceId?: PlatformNamespaceToManyPlatformBuilderBindingFilter; - /** `platformBuilderBindingsByNamespaceId` exist. */ - platformBuilderBindingsByNamespaceIdExist?: boolean; /** Filter by the object’s `platformFunctionDeploymentsByNamespaceId` relation. */ platformFunctionDeploymentsByNamespaceId?: PlatformNamespaceToManyPlatformFunctionDeploymentFilter; /** `platformFunctionDeploymentsByNamespaceId` exist. */ @@ -28810,6 +28705,10 @@ export interface PlatformNamespaceFilter { platformResourcesByNamespaceId?: PlatformNamespaceToManyPlatformResourceFilter; /** `platformResourcesByNamespaceId` exist. */ platformResourcesByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformServiceBindingsByNamespaceId` relation. */ + platformServiceBindingsByNamespaceId?: PlatformNamespaceToManyPlatformServiceBindingFilter; + /** `platformServiceBindingsByNamespaceId` exist. */ + platformServiceBindingsByNamespaceIdExist?: boolean; /** Filter by the object’s `platformWebhookEndpointsByNamespaceId` relation. */ platformWebhookEndpointsByNamespaceId?: PlatformNamespaceToManyPlatformWebhookEndpointFilter; /** `platformWebhookEndpointsByNamespaceId` exist. */ @@ -28976,6 +28875,14 @@ export type CopyGraphPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface CreateFunctionGraphPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type CreateFunctionGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface DatabaseAddEdgePayload { clientMutationId?: string | null; result?: string | null; @@ -29563,51 +29470,6 @@ export type DeleteBuildStepPayloadSelect = { }; clientMutationId?: boolean; }; -export interface CreateBuilderBindingPayload { - /** The `BuilderBinding` that was created by this mutation. */ - builderBinding?: BuilderBinding | null; - builderBindingEdge?: BuilderBindingEdge | null; - clientMutationId?: string | null; -} -export type CreateBuilderBindingPayloadSelect = { - builderBinding?: { - select: BuilderBindingSelect; - }; - builderBindingEdge?: { - select: BuilderBindingEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateBuilderBindingPayload { - /** The `BuilderBinding` that was updated by this mutation. */ - builderBinding?: BuilderBinding | null; - builderBindingEdge?: BuilderBindingEdge | null; - clientMutationId?: string | null; -} -export type UpdateBuilderBindingPayloadSelect = { - builderBinding?: { - select: BuilderBindingSelect; - }; - builderBindingEdge?: { - select: BuilderBindingEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteBuilderBindingPayload { - /** The `BuilderBinding` that was deleted by this mutation. */ - builderBinding?: BuilderBinding | null; - builderBindingEdge?: BuilderBindingEdge | null; - clientMutationId?: string | null; -} -export type DeleteBuilderBindingPayloadSelect = { - builderBinding?: { - select: BuilderBindingSelect; - }; - builderBindingEdge?: { - select: BuilderBindingEdgeSelect; - }; - clientMutationId?: boolean; -}; export interface CreateContentPresetPayload { clientMutationId?: string | null; /** The `ContentPreset` that was created by this mutation. */ @@ -30403,14 +30265,6 @@ export type DeleteFunctionGraphCommitPayloadSelect = { select: FunctionGraphCommitEdgeSelect; }; }; -export interface CreateFunctionGraphPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type CreateFunctionGraphPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; export interface UpdateFunctionGraphPayload { clientMutationId?: string | null; /** The `FunctionGraph` that was updated by this mutation. */ @@ -31386,51 +31240,6 @@ export type DeletePlatformBuildStepPayloadSelect = { select: PlatformBuildStepEdgeSelect; }; }; -export interface CreatePlatformBuilderBindingPayload { - clientMutationId?: string | null; - /** The `PlatformBuilderBinding` that was created by this mutation. */ - platformBuilderBinding?: PlatformBuilderBinding | null; - platformBuilderBindingEdge?: PlatformBuilderBindingEdge | null; -} -export type CreatePlatformBuilderBindingPayloadSelect = { - clientMutationId?: boolean; - platformBuilderBinding?: { - select: PlatformBuilderBindingSelect; - }; - platformBuilderBindingEdge?: { - select: PlatformBuilderBindingEdgeSelect; - }; -}; -export interface UpdatePlatformBuilderBindingPayload { - clientMutationId?: string | null; - /** The `PlatformBuilderBinding` that was updated by this mutation. */ - platformBuilderBinding?: PlatformBuilderBinding | null; - platformBuilderBindingEdge?: PlatformBuilderBindingEdge | null; -} -export type UpdatePlatformBuilderBindingPayloadSelect = { - clientMutationId?: boolean; - platformBuilderBinding?: { - select: PlatformBuilderBindingSelect; - }; - platformBuilderBindingEdge?: { - select: PlatformBuilderBindingEdgeSelect; - }; -}; -export interface DeletePlatformBuilderBindingPayload { - clientMutationId?: string | null; - /** The `PlatformBuilderBinding` that was deleted by this mutation. */ - platformBuilderBinding?: PlatformBuilderBinding | null; - platformBuilderBindingEdge?: PlatformBuilderBindingEdge | null; -} -export type DeletePlatformBuilderBindingPayloadSelect = { - clientMutationId?: boolean; - platformBuilderBinding?: { - select: PlatformBuilderBindingSelect; - }; - platformBuilderBindingEdge?: { - select: PlatformBuilderBindingEdgeSelect; - }; -}; export interface CreatePlatformFunctionApiBindingPayload { clientMutationId?: string | null; /** The `PlatformFunctionApiBinding` that was created by this mutation. */ @@ -33186,6 +32995,51 @@ export type DeletePlatformResourceUsageSummaryPayloadSelect = { select: PlatformResourceUsageSummaryEdgeSelect; }; }; +export interface CreatePlatformServiceBindingPayload { + clientMutationId?: string | null; + /** The `PlatformServiceBinding` that was created by this mutation. */ + platformServiceBinding?: PlatformServiceBinding | null; + platformServiceBindingEdge?: PlatformServiceBindingEdge | null; +} +export type CreatePlatformServiceBindingPayloadSelect = { + clientMutationId?: boolean; + platformServiceBinding?: { + select: PlatformServiceBindingSelect; + }; + platformServiceBindingEdge?: { + select: PlatformServiceBindingEdgeSelect; + }; +}; +export interface UpdatePlatformServiceBindingPayload { + clientMutationId?: string | null; + /** The `PlatformServiceBinding` that was updated by this mutation. */ + platformServiceBinding?: PlatformServiceBinding | null; + platformServiceBindingEdge?: PlatformServiceBindingEdge | null; +} +export type UpdatePlatformServiceBindingPayloadSelect = { + clientMutationId?: boolean; + platformServiceBinding?: { + select: PlatformServiceBindingSelect; + }; + platformServiceBindingEdge?: { + select: PlatformServiceBindingEdgeSelect; + }; +}; +export interface DeletePlatformServiceBindingPayload { + clientMutationId?: string | null; + /** The `PlatformServiceBinding` that was deleted by this mutation. */ + platformServiceBinding?: PlatformServiceBinding | null; + platformServiceBindingEdge?: PlatformServiceBindingEdge | null; +} +export type DeletePlatformServiceBindingPayloadSelect = { + clientMutationId?: boolean; + platformServiceBinding?: { + select: PlatformServiceBindingSelect; + }; + platformServiceBindingEdge?: { + select: PlatformServiceBindingEdgeSelect; + }; +}; export interface CreatePlatformWebhookEndpointPayload { clientMutationId?: string | null; /** The `PlatformWebhookEndpoint` that was created by this mutation. */ @@ -34176,6 +34030,51 @@ export type DeleteResourceUsageSummaryPayloadSelect = { select: ResourceUsageSummaryEdgeSelect; }; }; +export interface CreateServiceBindingPayload { + clientMutationId?: string | null; + /** The `ServiceBinding` that was created by this mutation. */ + serviceBinding?: ServiceBinding | null; + serviceBindingEdge?: ServiceBindingEdge | null; +} +export type CreateServiceBindingPayloadSelect = { + clientMutationId?: boolean; + serviceBinding?: { + select: ServiceBindingSelect; + }; + serviceBindingEdge?: { + select: ServiceBindingEdgeSelect; + }; +}; +export interface UpdateServiceBindingPayload { + clientMutationId?: string | null; + /** The `ServiceBinding` that was updated by this mutation. */ + serviceBinding?: ServiceBinding | null; + serviceBindingEdge?: ServiceBindingEdge | null; +} +export type UpdateServiceBindingPayloadSelect = { + clientMutationId?: boolean; + serviceBinding?: { + select: ServiceBindingSelect; + }; + serviceBindingEdge?: { + select: ServiceBindingEdgeSelect; + }; +}; +export interface DeleteServiceBindingPayload { + clientMutationId?: string | null; + /** The `ServiceBinding` that was deleted by this mutation. */ + serviceBinding?: ServiceBinding | null; + serviceBindingEdge?: ServiceBindingEdge | null; +} +export type DeleteServiceBindingPayloadSelect = { + clientMutationId?: boolean; + serviceBinding?: { + select: ServiceBindingSelect; + }; + serviceBindingEdge?: { + select: ServiceBindingEdgeSelect; + }; +}; export interface CreateWebhookEndpointPayload { clientMutationId?: string | null; /** The `WebhookEndpoint` that was created by this mutation. */ @@ -34362,18 +34261,6 @@ export type BuildStepEdgeSelect = { select: BuildStepSelect; }; }; -/** A `BuilderBinding` edge in the connection. */ -export interface BuilderBindingEdge { - cursor?: string | null; - /** The `BuilderBinding` at the end of the edge. */ - node?: BuilderBinding | null; -} -export type BuilderBindingEdgeSelect = { - cursor?: boolean; - node?: { - select: BuilderBindingSelect; - }; -}; /** A `ContentPreset` edge in the connection. */ export interface ContentPresetEdge { cursor?: string | null; @@ -34806,18 +34693,6 @@ export type PlatformBuildStepEdgeSelect = { select: PlatformBuildStepSelect; }; }; -/** A `PlatformBuilderBinding` edge in the connection. */ -export interface PlatformBuilderBindingEdge { - cursor?: string | null; - /** The `PlatformBuilderBinding` at the end of the edge. */ - node?: PlatformBuilderBinding | null; -} -export type PlatformBuilderBindingEdgeSelect = { - cursor?: boolean; - node?: { - select: PlatformBuilderBindingSelect; - }; -}; /** A `PlatformFunctionApiBinding` edge in the connection. */ export interface PlatformFunctionApiBindingEdge { cursor?: string | null; @@ -35262,6 +35137,18 @@ export type PlatformResourceUsageSummaryEdgeSelect = { select: PlatformResourceUsageSummarySelect; }; }; +/** A `PlatformServiceBinding` edge in the connection. */ +export interface PlatformServiceBindingEdge { + cursor?: string | null; + /** The `PlatformServiceBinding` at the end of the edge. */ + node?: PlatformServiceBinding | null; +} +export type PlatformServiceBindingEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformServiceBindingSelect; + }; +}; /** A `PlatformWebhookEndpoint` edge in the connection. */ export interface PlatformWebhookEndpointEdge { cursor?: string | null; @@ -35526,6 +35413,18 @@ export type ResourceUsageSummaryEdgeSelect = { select: ResourceUsageSummarySelect; }; }; +/** A `ServiceBinding` edge in the connection. */ +export interface ServiceBindingEdge { + cursor?: string | null; + /** The `ServiceBinding` at the end of the edge. */ + node?: ServiceBinding | null; +} +export type ServiceBindingEdgeSelect = { + cursor?: boolean; + node?: { + select: ServiceBindingSelect; + }; +}; /** A `WebhookEndpoint` edge in the connection. */ export interface WebhookEndpointEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/compute/orm/models/databaseFunctionGraph.ts b/sdk/constructive-react/src/compute/orm/models/databaseFunctionGraph.ts index aa52534b19..358312ae7d 100644 --- a/sdk/constructive-react/src/compute/orm/models/databaseFunctionGraph.ts +++ b/sdk/constructive-react/src/compute/orm/models/databaseFunctionGraph.ts @@ -29,7 +29,6 @@ import type { DatabaseFunctionGraphSelect, DatabaseFunctionGraphFilter, DatabaseFunctionGraphOrderBy, - CreateDatabaseFunctionGraphInput, UpdateDatabaseFunctionGraphInput, DatabaseFunctionGraphPatch, } from '../input-types'; @@ -146,33 +145,6 @@ export class DatabaseFunctionGraphModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createDatabaseFunctionGraph: { - databaseFunctionGraph: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'DatabaseFunctionGraph', - 'createDatabaseFunctionGraph', - 'databaseFunctionGraph', - args.select, - args.data, - 'CreateDatabaseFunctionGraphInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'DatabaseFunctionGraph', - fieldName: 'createDatabaseFunctionGraph', - document, - variables, - }); - } update( args: UpdateArgs< S, diff --git a/sdk/constructive-react/src/compute/orm/models/databaseGraphGetAllTreeNodesRecord.ts b/sdk/constructive-react/src/compute/orm/models/databaseGraphGetAllTreeNodesRecord.ts index f3a254b255..141a458a79 100644 --- a/sdk/constructive-react/src/compute/orm/models/databaseGraphGetAllTreeNodesRecord.ts +++ b/sdk/constructive-react/src/compute/orm/models/databaseGraphGetAllTreeNodesRecord.ts @@ -29,7 +29,6 @@ import type { DatabaseGraphGetAllTreeNodesRecordSelect, DatabaseGraphGetAllTreeNodesRecordFilter, DatabaseGraphGetAllTreeNodesRecordsOrderBy, - CreateDatabaseGraphGetAllTreeNodesRecordInput, UpdateDatabaseGraphGetAllTreeNodesRecordInput, DatabaseGraphGetAllTreeNodesRecordPatch, } from '../input-types'; @@ -117,37 +116,4 @@ export class DatabaseGraphGetAllTreeNodesRecordModel { }), }); } - create( - args: CreateArgs< - S, - CreateDatabaseGraphGetAllTreeNodesRecordInput['databaseGraphGetAllTreeNodesRecord'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createDatabaseGraphGetAllTreeNodesRecord: { - databaseGraphGetAllTreeNodesRecord: InferSelectResult< - DatabaseGraphGetAllTreeNodesRecordWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'DatabaseGraphGetAllTreeNodesRecord', - 'createDatabaseGraphGetAllTreeNodesRecord', - 'databaseGraphGetAllTreeNodesRecord', - args.select, - args.data, - 'CreateDatabaseGraphGetAllTreeNodesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'DatabaseGraphGetAllTreeNodesRecord', - fieldName: 'createDatabaseGraphGetAllTreeNodesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/compute/orm/models/functionGraph.ts b/sdk/constructive-react/src/compute/orm/models/functionGraph.ts index 8355e31658..b94c844768 100644 --- a/sdk/constructive-react/src/compute/orm/models/functionGraph.ts +++ b/sdk/constructive-react/src/compute/orm/models/functionGraph.ts @@ -29,7 +29,6 @@ import type { FunctionGraphSelect, FunctionGraphFilter, FunctionGraphOrderBy, - CreateFunctionGraphInput, UpdateFunctionGraphInput, FunctionGraphPatch, } from '../input-types'; @@ -144,33 +143,6 @@ export class FunctionGraphModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createFunctionGraph: { - functionGraph: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'FunctionGraph', - 'createFunctionGraph', - 'functionGraph', - args.select, - args.data, - 'CreateFunctionGraphInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'FunctionGraph', - fieldName: 'createFunctionGraph', - document, - variables, - }); - } update( args: UpdateArgs< S, diff --git a/sdk/constructive-react/src/compute/orm/models/getAllTreeNodesRecord.ts b/sdk/constructive-react/src/compute/orm/models/getAllTreeNodesRecord.ts index 00f51d01f7..275a902f66 100644 --- a/sdk/constructive-react/src/compute/orm/models/getAllTreeNodesRecord.ts +++ b/sdk/constructive-react/src/compute/orm/models/getAllTreeNodesRecord.ts @@ -29,7 +29,6 @@ import type { GetAllTreeNodesRecordSelect, GetAllTreeNodesRecordFilter, GetAllTreeNodesRecordsOrderBy, - CreateGetAllTreeNodesRecordInput, UpdateGetAllTreeNodesRecordInput, GetAllTreeNodesRecordPatch, } from '../input-types'; @@ -104,31 +103,4 @@ export class GetAllTreeNodesRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createGetAllTreeNodesRecord: { - getAllTreeNodesRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'GetAllTreeNodesRecord', - 'createGetAllTreeNodesRecord', - 'getAllTreeNodesRecord', - args.select, - args.data, - 'CreateGetAllTreeNodesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'GetAllTreeNodesRecord', - fieldName: 'createGetAllTreeNodesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/compute/orm/models/index.ts b/sdk/constructive-react/src/compute/orm/models/index.ts index 3b2af275ae..dfb31b3c70 100644 --- a/sdk/constructive-react/src/compute/orm/models/index.ts +++ b/sdk/constructive-react/src/compute/orm/models/index.ts @@ -5,7 +5,6 @@ */ export { BuildModel } from './build'; export { BuildStepModel } from './buildStep'; -export { BuilderBindingModel } from './builderBinding'; export { ContentPresetModel } from './contentPreset'; export { DatabaseFunctionGraphModel } from './databaseFunctionGraph'; export { DatabaseFunctionGraphExecutionCancelRequestModel } from './databaseFunctionGraphExecutionCancelRequest'; @@ -49,7 +48,6 @@ export { NamespaceModel } from './namespace'; export { NamespaceEventModel } from './namespaceEvent'; export { PlatformBuildModel } from './platformBuild'; export { PlatformBuildStepModel } from './platformBuildStep'; -export { PlatformBuilderBindingModel } from './platformBuilderBinding'; export { PlatformFunctionApiBindingModel } from './platformFunctionApiBinding'; export { PlatformFunctionCapabilityBindingModel } from './platformFunctionCapabilityBinding'; export { PlatformFunctionDefinitionModel } from './platformFunctionDefinition'; @@ -96,6 +94,7 @@ export { PlatformResourceUtilizationModel } from './platformResourceUtilization' export { PlatformResourcesHealthModel } from './platformResourcesHealth'; export { PlatformResourcesRequirementsStateModel } from './platformResourcesRequirementsState'; export { PlatformResourcesResolvedRequirementModel } from './platformResourcesResolvedRequirement'; +export { PlatformServiceBindingModel } from './platformServiceBinding'; export { PlatformWebhookEndpointModel } from './platformWebhookEndpoint'; export { PlatformWebhookEventModel } from './platformWebhookEvent'; export { ProposalCommentModel } from './proposalComment'; @@ -124,5 +123,6 @@ export { ResourceUtilizationModel } from './resourceUtilization'; export { ResourcesHealthModel } from './resourcesHealth'; export { ResourcesRequirementsStateModel } from './resourcesRequirementsState'; export { ResourcesResolvedRequirementModel } from './resourcesResolvedRequirement'; +export { ServiceBindingModel } from './serviceBinding'; export { WebhookEndpointModel } from './webhookEndpoint'; export { WebhookEventModel } from './webhookEvent'; diff --git a/sdk/constructive-react/src/compute/orm/models/infraGetAllTreeNodesRecord.ts b/sdk/constructive-react/src/compute/orm/models/infraGetAllTreeNodesRecord.ts index 7f2e31d467..e3f66b257e 100644 --- a/sdk/constructive-react/src/compute/orm/models/infraGetAllTreeNodesRecord.ts +++ b/sdk/constructive-react/src/compute/orm/models/infraGetAllTreeNodesRecord.ts @@ -29,7 +29,6 @@ import type { InfraGetAllTreeNodesRecordSelect, InfraGetAllTreeNodesRecordFilter, InfraGetAllTreeNodesRecordsOrderBy, - CreateInfraGetAllTreeNodesRecordInput, UpdateInfraGetAllTreeNodesRecordInput, InfraGetAllTreeNodesRecordPatch, } from '../input-types'; @@ -109,31 +108,4 @@ export class InfraGetAllTreeNodesRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createInfraGetAllTreeNodesRecord: { - infraGetAllTreeNodesRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'InfraGetAllTreeNodesRecord', - 'createInfraGetAllTreeNodesRecord', - 'infraGetAllTreeNodesRecord', - args.select, - args.data, - 'CreateInfraGetAllTreeNodesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'InfraGetAllTreeNodesRecord', - fieldName: 'createInfraGetAllTreeNodesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/compute/orm/models/platformBuilderBinding.ts b/sdk/constructive-react/src/compute/orm/models/platformBuilderBinding.ts deleted file mode 100644 index 09a8daa1ed..0000000000 --- a/sdk/constructive-react/src/compute/orm/models/platformBuilderBinding.ts +++ /dev/null @@ -1,247 +0,0 @@ -/** - * PlatformBuilderBinding model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - PlatformBuilderBinding, - PlatformBuilderBindingWithRelations, - PlatformBuilderBindingSelect, - PlatformBuilderBindingFilter, - PlatformBuilderBindingOrderBy, - CreatePlatformBuilderBindingInput, - UpdatePlatformBuilderBindingInput, - PlatformBuilderBindingPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class PlatformBuilderBindingModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - platformBuilderBindings: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'PlatformBuilderBinding', - 'platformBuilderBindings', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'PlatformBuilderBindingFilter', - 'PlatformBuilderBindingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlatformBuilderBinding', - fieldName: 'platformBuilderBindings', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - platformBuilderBinding: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'PlatformBuilderBinding', - 'platformBuilderBindings', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'PlatformBuilderBindingFilter', - 'PlatformBuilderBindingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlatformBuilderBinding', - fieldName: 'platformBuilderBinding', - document, - variables, - transform: (data: { - platformBuilderBindings?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - platformBuilderBinding: data.platformBuilderBindings?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - platformBuilderBinding: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'PlatformBuilderBinding', - 'platformBuilderBindings', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'PlatformBuilderBindingFilter', - 'PlatformBuilderBindingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlatformBuilderBinding', - fieldName: 'platformBuilderBinding', - document, - variables, - transform: (data: { - platformBuilderBindings?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - platformBuilderBinding: data.platformBuilderBindings?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformBuilderBinding: { - platformBuilderBinding: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformBuilderBinding', - 'createPlatformBuilderBinding', - 'platformBuilderBinding', - args.select, - args.data, - 'CreatePlatformBuilderBindingInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformBuilderBinding', - fieldName: 'createPlatformBuilderBinding', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - PlatformBuilderBindingPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updatePlatformBuilderBinding: { - platformBuilderBinding: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'PlatformBuilderBinding', - 'updatePlatformBuilderBinding', - 'platformBuilderBinding', - args.select, - args.where.id, - args.data, - 'UpdatePlatformBuilderBindingInput', - 'id', - 'platformBuilderBindingPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformBuilderBinding', - fieldName: 'updatePlatformBuilderBinding', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deletePlatformBuilderBinding: { - platformBuilderBinding: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'PlatformBuilderBinding', - 'deletePlatformBuilderBinding', - 'platformBuilderBinding', - { - id: args.where.id, - }, - 'DeletePlatformBuilderBindingInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformBuilderBinding', - fieldName: 'deletePlatformBuilderBinding', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/compute/orm/models/platformInfraGetAllTreeNodesRecord.ts b/sdk/constructive-react/src/compute/orm/models/platformInfraGetAllTreeNodesRecord.ts index e0e0a2aeaa..522c666bd3 100644 --- a/sdk/constructive-react/src/compute/orm/models/platformInfraGetAllTreeNodesRecord.ts +++ b/sdk/constructive-react/src/compute/orm/models/platformInfraGetAllTreeNodesRecord.ts @@ -29,7 +29,6 @@ import type { PlatformInfraGetAllTreeNodesRecordSelect, PlatformInfraGetAllTreeNodesRecordFilter, PlatformInfraGetAllTreeNodesRecordsOrderBy, - CreatePlatformInfraGetAllTreeNodesRecordInput, UpdatePlatformInfraGetAllTreeNodesRecordInput, PlatformInfraGetAllTreeNodesRecordPatch, } from '../input-types'; @@ -117,37 +116,4 @@ export class PlatformInfraGetAllTreeNodesRecordModel { }), }); } - create( - args: CreateArgs< - S, - CreatePlatformInfraGetAllTreeNodesRecordInput['platformInfraGetAllTreeNodesRecord'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformInfraGetAllTreeNodesRecord: { - platformInfraGetAllTreeNodesRecord: InferSelectResult< - PlatformInfraGetAllTreeNodesRecordWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformInfraGetAllTreeNodesRecord', - 'createPlatformInfraGetAllTreeNodesRecord', - 'platformInfraGetAllTreeNodesRecord', - args.select, - args.data, - 'CreatePlatformInfraGetAllTreeNodesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformInfraGetAllTreeNodesRecord', - fieldName: 'createPlatformInfraGetAllTreeNodesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/compute/orm/models/platformResourceDeclaredCapacity.ts b/sdk/constructive-react/src/compute/orm/models/platformResourceDeclaredCapacity.ts index 66a88f859d..c61ba71d35 100644 --- a/sdk/constructive-react/src/compute/orm/models/platformResourceDeclaredCapacity.ts +++ b/sdk/constructive-react/src/compute/orm/models/platformResourceDeclaredCapacity.ts @@ -29,7 +29,6 @@ import type { PlatformResourceDeclaredCapacitySelect, PlatformResourceDeclaredCapacityFilter, PlatformResourceDeclaredCapacityOrderBy, - CreatePlatformResourceDeclaredCapacityInput, UpdatePlatformResourceDeclaredCapacityInput, PlatformResourceDeclaredCapacityPatch, } from '../input-types'; @@ -118,37 +117,4 @@ export class PlatformResourceDeclaredCapacityModel { }), }); } - create( - args: CreateArgs< - S, - CreatePlatformResourceDeclaredCapacityInput['platformResourceDeclaredCapacity'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformResourceDeclaredCapacity: { - platformResourceDeclaredCapacity: InferSelectResult< - PlatformResourceDeclaredCapacityWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformResourceDeclaredCapacity', - 'createPlatformResourceDeclaredCapacity', - 'platformResourceDeclaredCapacity', - args.select, - args.data, - 'CreatePlatformResourceDeclaredCapacityInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformResourceDeclaredCapacity', - fieldName: 'createPlatformResourceDeclaredCapacity', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/compute/orm/models/platformResourceObservedStorage.ts b/sdk/constructive-react/src/compute/orm/models/platformResourceObservedStorage.ts index 80a274b483..5a5654a907 100644 --- a/sdk/constructive-react/src/compute/orm/models/platformResourceObservedStorage.ts +++ b/sdk/constructive-react/src/compute/orm/models/platformResourceObservedStorage.ts @@ -29,7 +29,6 @@ import type { PlatformResourceObservedStorageSelect, PlatformResourceObservedStorageFilter, PlatformResourceObservedStorageOrderBy, - CreatePlatformResourceObservedStorageInput, UpdatePlatformResourceObservedStorageInput, PlatformResourceObservedStoragePatch, } from '../input-types'; @@ -117,37 +116,4 @@ export class PlatformResourceObservedStorageModel { }), }); } - create( - args: CreateArgs< - S, - CreatePlatformResourceObservedStorageInput['platformResourceObservedStorage'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformResourceObservedStorage: { - platformResourceObservedStorage: InferSelectResult< - PlatformResourceObservedStorageWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformResourceObservedStorage', - 'createPlatformResourceObservedStorage', - 'platformResourceObservedStorage', - args.select, - args.data, - 'CreatePlatformResourceObservedStorageInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformResourceObservedStorage', - fieldName: 'createPlatformResourceObservedStorage', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/compute/orm/models/platformResourceUtilization.ts b/sdk/constructive-react/src/compute/orm/models/platformResourceUtilization.ts index 040d38000e..2c7bffa084 100644 --- a/sdk/constructive-react/src/compute/orm/models/platformResourceUtilization.ts +++ b/sdk/constructive-react/src/compute/orm/models/platformResourceUtilization.ts @@ -29,7 +29,6 @@ import type { PlatformResourceUtilizationSelect, PlatformResourceUtilizationFilter, PlatformResourceUtilizationOrderBy, - CreatePlatformResourceUtilizationInput, UpdatePlatformResourceUtilizationInput, PlatformResourceUtilizationPatch, } from '../input-types'; @@ -113,31 +112,4 @@ export class PlatformResourceUtilizationModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformResourceUtilization: { - platformResourceUtilization: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformResourceUtilization', - 'createPlatformResourceUtilization', - 'platformResourceUtilization', - args.select, - args.data, - 'CreatePlatformResourceUtilizationInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformResourceUtilization', - fieldName: 'createPlatformResourceUtilization', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/compute/orm/models/platformResourcesHealth.ts b/sdk/constructive-react/src/compute/orm/models/platformResourcesHealth.ts index 0f0efa3e31..7249c4259c 100644 --- a/sdk/constructive-react/src/compute/orm/models/platformResourcesHealth.ts +++ b/sdk/constructive-react/src/compute/orm/models/platformResourcesHealth.ts @@ -29,7 +29,6 @@ import type { PlatformResourcesHealthSelect, PlatformResourcesHealthFilter, PlatformResourcesHealthOrderBy, - CreatePlatformResourcesHealthInput, UpdatePlatformResourcesHealthInput, PlatformResourcesHealthPatch, } from '../input-types'; @@ -146,31 +145,4 @@ export class PlatformResourcesHealthModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformResourcesHealth: { - platformResourcesHealth: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformResourcesHealth', - 'createPlatformResourcesHealth', - 'platformResourcesHealth', - args.select, - args.data, - 'CreatePlatformResourcesHealthInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformResourcesHealth', - fieldName: 'createPlatformResourcesHealth', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/compute/orm/models/platformResourcesRequirementsState.ts b/sdk/constructive-react/src/compute/orm/models/platformResourcesRequirementsState.ts index ab6152e426..4eb7854059 100644 --- a/sdk/constructive-react/src/compute/orm/models/platformResourcesRequirementsState.ts +++ b/sdk/constructive-react/src/compute/orm/models/platformResourcesRequirementsState.ts @@ -29,7 +29,6 @@ import type { PlatformResourcesRequirementsStateSelect, PlatformResourcesRequirementsStateFilter, PlatformResourcesRequirementsStateOrderBy, - CreatePlatformResourcesRequirementsStateInput, UpdatePlatformResourcesRequirementsStateInput, PlatformResourcesRequirementsStatePatch, } from '../input-types'; @@ -118,37 +117,4 @@ export class PlatformResourcesRequirementsStateModel { }), }); } - create( - args: CreateArgs< - S, - CreatePlatformResourcesRequirementsStateInput['platformResourcesRequirementsState'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformResourcesRequirementsState: { - platformResourcesRequirementsState: InferSelectResult< - PlatformResourcesRequirementsStateWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformResourcesRequirementsState', - 'createPlatformResourcesRequirementsState', - 'platformResourcesRequirementsState', - args.select, - args.data, - 'CreatePlatformResourcesRequirementsStateInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformResourcesRequirementsState', - fieldName: 'createPlatformResourcesRequirementsState', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/compute/orm/models/platformResourcesResolvedRequirement.ts b/sdk/constructive-react/src/compute/orm/models/platformResourcesResolvedRequirement.ts index d7d7bf4ed0..0326681f64 100644 --- a/sdk/constructive-react/src/compute/orm/models/platformResourcesResolvedRequirement.ts +++ b/sdk/constructive-react/src/compute/orm/models/platformResourcesResolvedRequirement.ts @@ -29,7 +29,6 @@ import type { PlatformResourcesResolvedRequirementSelect, PlatformResourcesResolvedRequirementFilter, PlatformResourcesResolvedRequirementOrderBy, - CreatePlatformResourcesResolvedRequirementInput, UpdatePlatformResourcesResolvedRequirementInput, PlatformResourcesResolvedRequirementPatch, } from '../input-types'; @@ -118,37 +117,4 @@ export class PlatformResourcesResolvedRequirementModel { }), }); } - create( - args: CreateArgs< - S, - CreatePlatformResourcesResolvedRequirementInput['platformResourcesResolvedRequirement'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformResourcesResolvedRequirement: { - platformResourcesResolvedRequirement: InferSelectResult< - PlatformResourcesResolvedRequirementWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformResourcesResolvedRequirement', - 'createPlatformResourcesResolvedRequirement', - 'platformResourcesResolvedRequirement', - args.select, - args.data, - 'CreatePlatformResourcesResolvedRequirementInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformResourcesResolvedRequirement', - fieldName: 'createPlatformResourcesResolvedRequirement', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/compute/orm/models/platformServiceBinding.ts b/sdk/constructive-react/src/compute/orm/models/platformServiceBinding.ts new file mode 100644 index 0000000000..e50381b94d --- /dev/null +++ b/sdk/constructive-react/src/compute/orm/models/platformServiceBinding.ts @@ -0,0 +1,247 @@ +/** + * PlatformServiceBinding model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformServiceBinding, + PlatformServiceBindingWithRelations, + PlatformServiceBindingSelect, + PlatformServiceBindingFilter, + PlatformServiceBindingOrderBy, + CreatePlatformServiceBindingInput, + UpdatePlatformServiceBindingInput, + PlatformServiceBindingPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformServiceBindingModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformServiceBindings: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformServiceBinding', + 'platformServiceBindings', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformServiceBindingFilter', + 'PlatformServiceBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformServiceBinding', + fieldName: 'platformServiceBindings', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformServiceBinding: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformServiceBinding', + 'platformServiceBindings', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformServiceBindingFilter', + 'PlatformServiceBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformServiceBinding', + fieldName: 'platformServiceBinding', + document, + variables, + transform: (data: { + platformServiceBindings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformServiceBinding: data.platformServiceBindings?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformServiceBinding: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformServiceBinding', + 'platformServiceBindings', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformServiceBindingFilter', + 'PlatformServiceBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformServiceBinding', + fieldName: 'platformServiceBinding', + document, + variables, + transform: (data: { + platformServiceBindings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformServiceBinding: data.platformServiceBindings?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformServiceBinding: { + platformServiceBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformServiceBinding', + 'createPlatformServiceBinding', + 'platformServiceBinding', + args.select, + args.data, + 'CreatePlatformServiceBindingInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformServiceBinding', + fieldName: 'createPlatformServiceBinding', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformServiceBindingPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformServiceBinding: { + platformServiceBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformServiceBinding', + 'updatePlatformServiceBinding', + 'platformServiceBinding', + args.select, + args.where.id, + args.data, + 'UpdatePlatformServiceBindingInput', + 'id', + 'platformServiceBindingPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformServiceBinding', + fieldName: 'updatePlatformServiceBinding', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformServiceBinding: { + platformServiceBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformServiceBinding', + 'deletePlatformServiceBinding', + 'platformServiceBinding', + { + id: args.where.id, + }, + 'DeletePlatformServiceBindingInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformServiceBinding', + fieldName: 'deletePlatformServiceBinding', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/compute/orm/models/resourceDeclaredCapacity.ts b/sdk/constructive-react/src/compute/orm/models/resourceDeclaredCapacity.ts index 6340979a98..3ea2e93607 100644 --- a/sdk/constructive-react/src/compute/orm/models/resourceDeclaredCapacity.ts +++ b/sdk/constructive-react/src/compute/orm/models/resourceDeclaredCapacity.ts @@ -29,7 +29,6 @@ import type { ResourceDeclaredCapacitySelect, ResourceDeclaredCapacityFilter, ResourceDeclaredCapacityOrderBy, - CreateResourceDeclaredCapacityInput, UpdateResourceDeclaredCapacityInput, ResourceDeclaredCapacityPatch, } from '../input-types'; @@ -106,31 +105,4 @@ export class ResourceDeclaredCapacityModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createResourceDeclaredCapacity: { - resourceDeclaredCapacity: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ResourceDeclaredCapacity', - 'createResourceDeclaredCapacity', - 'resourceDeclaredCapacity', - args.select, - args.data, - 'CreateResourceDeclaredCapacityInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ResourceDeclaredCapacity', - fieldName: 'createResourceDeclaredCapacity', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/compute/orm/models/resourceObservedStorage.ts b/sdk/constructive-react/src/compute/orm/models/resourceObservedStorage.ts index 75769aef61..2d9c328e85 100644 --- a/sdk/constructive-react/src/compute/orm/models/resourceObservedStorage.ts +++ b/sdk/constructive-react/src/compute/orm/models/resourceObservedStorage.ts @@ -29,7 +29,6 @@ import type { ResourceObservedStorageSelect, ResourceObservedStorageFilter, ResourceObservedStorageOrderBy, - CreateResourceObservedStorageInput, UpdateResourceObservedStorageInput, ResourceObservedStoragePatch, } from '../input-types'; @@ -106,31 +105,4 @@ export class ResourceObservedStorageModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createResourceObservedStorage: { - resourceObservedStorage: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ResourceObservedStorage', - 'createResourceObservedStorage', - 'resourceObservedStorage', - args.select, - args.data, - 'CreateResourceObservedStorageInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ResourceObservedStorage', - fieldName: 'createResourceObservedStorage', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/compute/orm/models/resourceUtilization.ts b/sdk/constructive-react/src/compute/orm/models/resourceUtilization.ts index 3620486000..6704ad6230 100644 --- a/sdk/constructive-react/src/compute/orm/models/resourceUtilization.ts +++ b/sdk/constructive-react/src/compute/orm/models/resourceUtilization.ts @@ -29,7 +29,6 @@ import type { ResourceUtilizationSelect, ResourceUtilizationFilter, ResourceUtilizationOrderBy, - CreateResourceUtilizationInput, UpdateResourceUtilizationInput, ResourceUtilizationPatch, } from '../input-types'; @@ -104,31 +103,4 @@ export class ResourceUtilizationModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createResourceUtilization: { - resourceUtilization: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ResourceUtilization', - 'createResourceUtilization', - 'resourceUtilization', - args.select, - args.data, - 'CreateResourceUtilizationInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ResourceUtilization', - fieldName: 'createResourceUtilization', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/compute/orm/models/resourcesHealth.ts b/sdk/constructive-react/src/compute/orm/models/resourcesHealth.ts index 1ac97bab3d..6b66d67938 100644 --- a/sdk/constructive-react/src/compute/orm/models/resourcesHealth.ts +++ b/sdk/constructive-react/src/compute/orm/models/resourcesHealth.ts @@ -29,7 +29,6 @@ import type { ResourcesHealthSelect, ResourcesHealthFilter, ResourcesHealthOrderBy, - CreateResourcesHealthInput, UpdateResourcesHealthInput, ResourcesHealthPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class ResourcesHealthModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createResourcesHealth: { - resourcesHealth: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ResourcesHealth', - 'createResourcesHealth', - 'resourcesHealth', - args.select, - args.data, - 'CreateResourcesHealthInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ResourcesHealth', - fieldName: 'createResourcesHealth', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/compute/orm/models/resourcesRequirementsState.ts b/sdk/constructive-react/src/compute/orm/models/resourcesRequirementsState.ts index 8ce68f6a31..85dbd5a7d1 100644 --- a/sdk/constructive-react/src/compute/orm/models/resourcesRequirementsState.ts +++ b/sdk/constructive-react/src/compute/orm/models/resourcesRequirementsState.ts @@ -29,7 +29,6 @@ import type { ResourcesRequirementsStateSelect, ResourcesRequirementsStateFilter, ResourcesRequirementsStateOrderBy, - CreateResourcesRequirementsStateInput, UpdateResourcesRequirementsStateInput, ResourcesRequirementsStatePatch, } from '../input-types'; @@ -109,31 +108,4 @@ export class ResourcesRequirementsStateModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createResourcesRequirementsState: { - resourcesRequirementsState: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ResourcesRequirementsState', - 'createResourcesRequirementsState', - 'resourcesRequirementsState', - args.select, - args.data, - 'CreateResourcesRequirementsStateInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ResourcesRequirementsState', - fieldName: 'createResourcesRequirementsState', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/compute/orm/models/resourcesResolvedRequirement.ts b/sdk/constructive-react/src/compute/orm/models/resourcesResolvedRequirement.ts index 40680dcfb3..2a9d9d1034 100644 --- a/sdk/constructive-react/src/compute/orm/models/resourcesResolvedRequirement.ts +++ b/sdk/constructive-react/src/compute/orm/models/resourcesResolvedRequirement.ts @@ -29,7 +29,6 @@ import type { ResourcesResolvedRequirementSelect, ResourcesResolvedRequirementFilter, ResourcesResolvedRequirementOrderBy, - CreateResourcesResolvedRequirementInput, UpdateResourcesResolvedRequirementInput, ResourcesResolvedRequirementPatch, } from '../input-types'; @@ -117,31 +116,4 @@ export class ResourcesResolvedRequirementModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createResourcesResolvedRequirement: { - resourcesResolvedRequirement: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ResourcesResolvedRequirement', - 'createResourcesResolvedRequirement', - 'resourcesResolvedRequirement', - args.select, - args.data, - 'CreateResourcesResolvedRequirementInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ResourcesResolvedRequirement', - fieldName: 'createResourcesResolvedRequirement', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/compute/orm/models/builderBinding.ts b/sdk/constructive-react/src/compute/orm/models/serviceBinding.ts similarity index 53% rename from sdk/constructive-sdk/src/compute/orm/models/builderBinding.ts rename to sdk/constructive-react/src/compute/orm/models/serviceBinding.ts index 0d5d7843e3..be7061a21b 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/builderBinding.ts +++ b/sdk/constructive-react/src/compute/orm/models/serviceBinding.ts @@ -1,5 +1,5 @@ /** - * BuilderBinding model for ORM client + * ServiceBinding model for ORM client * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -24,28 +24,28 @@ import type { StrictSelect, } from '../select-types'; import type { - BuilderBinding, - BuilderBindingWithRelations, - BuilderBindingSelect, - BuilderBindingFilter, - BuilderBindingOrderBy, - CreateBuilderBindingInput, - UpdateBuilderBindingInput, - BuilderBindingPatch, + ServiceBinding, + ServiceBindingWithRelations, + ServiceBindingSelect, + ServiceBindingFilter, + ServiceBindingOrderBy, + CreateServiceBindingInput, + UpdateServiceBindingInput, + ServiceBindingPatch, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export class BuilderBindingModel { +export class ServiceBindingModel { constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { + findMany( + args: FindManyArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - builderBindings: ConnectionResult>; + serviceBindings: ConnectionResult>; }> { const { document, variables } = buildFindManyDocument( - 'BuilderBinding', - 'builderBindings', + 'ServiceBinding', + 'serviceBindings', args.select, { where: args?.where, @@ -56,65 +56,65 @@ export class BuilderBindingModel { before: args?.before, offset: args?.offset, }, - 'BuilderBindingFilter', - 'BuilderBindingOrderBy', + 'ServiceBindingFilter', + 'ServiceBindingOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'BuilderBinding', - fieldName: 'builderBindings', + operationName: 'ServiceBinding', + fieldName: 'serviceBindings', document, variables, }); } - findFirst( - args: FindFirstArgs & { + findFirst( + args: FindFirstArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - builderBinding: InferSelectResult | null; + serviceBinding: InferSelectResult | null; }> { const { document, variables } = buildFindFirstDocument( - 'BuilderBinding', - 'builderBindings', + 'ServiceBinding', + 'serviceBindings', args.select, { where: args?.where, orderBy: args?.orderBy as string[] | undefined, }, - 'BuilderBindingFilter', - 'BuilderBindingOrderBy', + 'ServiceBindingFilter', + 'ServiceBindingOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'BuilderBinding', - fieldName: 'builderBinding', + operationName: 'ServiceBinding', + fieldName: 'serviceBinding', document, variables, transform: (data: { - builderBindings?: { - nodes?: InferSelectResult[]; + serviceBindings?: { + nodes?: InferSelectResult[]; }; }) => ({ - builderBinding: data.builderBindings?.nodes?.[0] ?? null, + serviceBinding: data.serviceBindings?.nodes?.[0] ?? null, }), }); } - findOne( + findOne( args: { id: string; select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - builderBinding: InferSelectResult | null; + serviceBinding: InferSelectResult | null; }> { const { document, variables } = buildFindManyDocument( - 'BuilderBinding', - 'builderBindings', + 'ServiceBinding', + 'serviceBindings', args.select, { where: { @@ -124,91 +124,91 @@ export class BuilderBindingModel { }, first: 1, }, - 'BuilderBindingFilter', - 'BuilderBindingOrderBy', + 'ServiceBindingFilter', + 'ServiceBindingOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'BuilderBinding', - fieldName: 'builderBinding', + operationName: 'ServiceBinding', + fieldName: 'serviceBinding', document, variables, transform: (data: { - builderBindings?: { - nodes?: InferSelectResult[]; + serviceBindings?: { + nodes?: InferSelectResult[]; }; }) => ({ - builderBinding: data.builderBindings?.nodes?.[0] ?? null, + serviceBinding: data.serviceBindings?.nodes?.[0] ?? null, }), }); } - create( - args: CreateArgs & { + create( + args: CreateArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - createBuilderBinding: { - builderBinding: InferSelectResult; + createServiceBinding: { + serviceBinding: InferSelectResult; }; }> { const { document, variables } = buildCreateDocument( - 'BuilderBinding', - 'createBuilderBinding', - 'builderBinding', + 'ServiceBinding', + 'createServiceBinding', + 'serviceBinding', args.select, args.data, - 'CreateBuilderBindingInput', + 'CreateServiceBindingInput', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'BuilderBinding', - fieldName: 'createBuilderBinding', + operationName: 'ServiceBinding', + fieldName: 'createServiceBinding', document, variables, }); } - update( + update( args: UpdateArgs< S, { id: string; }, - BuilderBindingPatch + ServiceBindingPatch > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - updateBuilderBinding: { - builderBinding: InferSelectResult; + updateServiceBinding: { + serviceBinding: InferSelectResult; }; }> { const { document, variables } = buildUpdateByPkDocument( - 'BuilderBinding', - 'updateBuilderBinding', - 'builderBinding', + 'ServiceBinding', + 'updateServiceBinding', + 'serviceBinding', args.select, args.where.id, args.data, - 'UpdateBuilderBindingInput', + 'UpdateServiceBindingInput', 'id', - 'builderBindingPatch', + 'serviceBindingPatch', connectionFieldsMap, undefined ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'BuilderBinding', - fieldName: 'updateBuilderBinding', + operationName: 'ServiceBinding', + fieldName: 'updateServiceBinding', document, variables, }); } - delete( + delete( args: DeleteArgs< { id: string; @@ -216,28 +216,28 @@ export class BuilderBindingModel { S > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - deleteBuilderBinding: { - builderBinding: InferSelectResult; + deleteServiceBinding: { + serviceBinding: InferSelectResult; }; }> { const { document, variables } = buildDeleteByPkDocument( - 'BuilderBinding', - 'deleteBuilderBinding', - 'builderBinding', + 'ServiceBinding', + 'deleteServiceBinding', + 'serviceBinding', { id: args.where.id, }, - 'DeleteBuilderBindingInput', + 'DeleteServiceBindingInput', args.select, connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'BuilderBinding', - fieldName: 'deleteBuilderBinding', + operationName: 'ServiceBinding', + fieldName: 'deleteServiceBinding', document, variables, }); diff --git a/sdk/constructive-react/src/compute/orm/mutation/index.ts b/sdk/constructive-react/src/compute/orm/mutation/index.ts index 48ca756e41..3b03efb8a3 100644 --- a/sdk/constructive-react/src/compute/orm/mutation/index.ts +++ b/sdk/constructive-react/src/compute/orm/mutation/index.ts @@ -13,6 +13,7 @@ import type { AddNodeAndSaveInput, ApproveNodeInput, CopyGraphInput, + CreateFunctionGraphInput, DatabaseAddEdgeInput, DatabaseAddEdgeAndSaveInput, DatabaseAddNodeInput, @@ -75,6 +76,7 @@ import type { AddNodeAndSavePayload, ApproveNodePayload, CopyGraphPayload, + CreateFunctionGraphPayload, DatabaseAddEdgePayload, DatabaseAddEdgeAndSavePayload, DatabaseAddNodePayload, @@ -137,6 +139,7 @@ import type { AddNodeAndSavePayloadSelect, ApproveNodePayloadSelect, CopyGraphPayloadSelect, + CreateFunctionGraphPayloadSelect, DatabaseAddEdgePayloadSelect, DatabaseAddEdgeAndSavePayloadSelect, DatabaseAddNodePayloadSelect, @@ -213,6 +216,9 @@ export interface ApproveNodeVariables { export interface CopyGraphVariables { input: CopyGraphInput; } +export interface CreateFunctionGraphVariables { + input: CreateFunctionGraphInput; +} export interface DatabaseAddEdgeVariables { input: DatabaseAddEdgeInput; } @@ -566,6 +572,35 @@ export function createMutationOperations(client: OrmClient) { 'CopyGraphPayload' ), }), + createFunctionGraph: ( + args: CreateFunctionGraphVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + createFunctionGraph: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'CreateFunctionGraph', + fieldName: 'createFunctionGraph', + ...buildCustomDocument( + 'mutation', + 'CreateFunctionGraph', + 'createFunctionGraph', + options.select, + args, + [ + { + name: 'input', + type: 'CreateFunctionGraphInput!', + }, + ], + connectionFieldsMap, + 'CreateFunctionGraphPayload' + ), + }), databaseAddEdge: ( args: DatabaseAddEdgeVariables, options: { diff --git a/sdk/constructive-react/src/compute/schema-types.ts b/sdk/constructive-react/src/compute/schema-types.ts index 2e98363daf..11395090e2 100644 --- a/sdk/constructive-react/src/compute/schema-types.ts +++ b/sdk/constructive-react/src/compute/schema-types.ts @@ -7,7 +7,6 @@ import type { Build, BuildStep, - BuilderBinding, ContentPreset, DatabaseFunctionGraph, DatabaseFunctionGraphExecution, @@ -51,7 +50,6 @@ import type { NamespaceEvent, PlatformBuild, PlatformBuildStep, - PlatformBuilderBinding, PlatformFunctionApiBinding, PlatformFunctionCapabilityBinding, PlatformFunctionDefinition, @@ -98,6 +96,7 @@ import type { PlatformResourcesHealth, PlatformResourcesRequirementsState, PlatformResourcesResolvedRequirement, + PlatformServiceBinding, PlatformWebhookEndpoint, PlatformWebhookEvent, Proposal, @@ -126,6 +125,7 @@ import type { ResourcesHealth, ResourcesRequirementsState, ResourcesResolvedRequirement, + ServiceBinding, WebhookEndpoint, WebhookEvent, BigFloatFilter, @@ -237,41 +237,6 @@ export type BuildStepOrderBy = | 'STATUS_DESC' | 'SUMMARY_ASC' | 'SUMMARY_DESC'; -/** Methods to use when ordering `BuilderBinding`. */ -export type BuilderBindingOrderBy = - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'CREATED_BY_PRINCIPAL_ASC' - | 'CREATED_BY_PRINCIPAL_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'INSTALLATION_ID_ASC' - | 'INSTALLATION_ID_DESC' - | 'LAST_ERROR_ASC' - | 'LAST_ERROR_DESC' - | 'METADATA_ASC' - | 'METADATA_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' - | 'NATURAL' - | 'OBSERVED_HOST_ASC' - | 'OBSERVED_HOST_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'REALM_ASC' - | 'REALM_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'UPDATED_BY_PRINCIPAL_ASC' - | 'UPDATED_BY_PRINCIPAL_DESC'; /** Methods to use when ordering `ContentPreset`. */ export type ContentPresetOrderBy = | 'ACTIVE_ASC' @@ -1486,39 +1451,6 @@ export type PlatformBuildStepOrderBy = | 'STATUS_DESC' | 'SUMMARY_ASC' | 'SUMMARY_DESC'; -/** Methods to use when ordering `PlatformBuilderBinding`. */ -export type PlatformBuilderBindingOrderBy = - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'CREATED_BY_PRINCIPAL_ASC' - | 'CREATED_BY_PRINCIPAL_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'INSTALLATION_ID_ASC' - | 'INSTALLATION_ID_DESC' - | 'LAST_ERROR_ASC' - | 'LAST_ERROR_DESC' - | 'METADATA_ASC' - | 'METADATA_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' - | 'NATURAL' - | 'OBSERVED_HOST_ASC' - | 'OBSERVED_HOST_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'REALM_ASC' - | 'REALM_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'UPDATED_BY_PRINCIPAL_ASC' - | 'UPDATED_BY_PRINCIPAL_DESC'; /** Methods to use when ordering `PlatformFunctionApiBinding`. */ export type PlatformFunctionApiBindingOrderBy = | 'ALIAS_ASC' @@ -2130,6 +2062,10 @@ export type PlatformProposalCommentOrderBy = | 'CREATED_BY_PRINCIPAL_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -2212,6 +2148,10 @@ export type PlatformProposalOrderBy = | 'DUE_AT_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -2526,6 +2466,10 @@ export type PlatformRepositoryOrderBy = | 'DESCRIPTION_TRGM_SIMILARITY_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -3092,6 +3036,43 @@ export type PlatformResourcesResolvedRequirementOrderBy = | 'SECRETS_OBJECT_NAME_DESC' | 'SLUG_ASC' | 'SLUG_DESC'; +/** Methods to use when ordering `PlatformServiceBinding`. */ +export type PlatformServiceBindingOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INSTALLATION_ID_ASC' + | 'INSTALLATION_ID_DESC' + | 'INSTALLATION_SCOPE_ASC' + | 'INSTALLATION_SCOPE_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'OBSERVED_HOST_ASC' + | 'OBSERVED_HOST_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; /** Methods to use when ordering `PlatformWebhookEndpoint`. */ export type PlatformWebhookEndpointOrderBy = | 'ACTIVE_ASC' @@ -3176,6 +3157,10 @@ export type ProposalCommentOrderBy = | 'DATABASE_ID_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -3262,6 +3247,10 @@ export type ProposalOrderBy = | 'DUE_AT_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -3592,6 +3581,10 @@ export type RepositoryOrderBy = | 'DESCRIPTION_TRGM_SIMILARITY_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -4178,6 +4171,45 @@ export type ResourcesResolvedRequirementOrderBy = | 'SECRETS_OBJECT_NAME_DESC' | 'SLUG_ASC' | 'SLUG_DESC'; +/** Methods to use when ordering `ServiceBinding`. */ +export type ServiceBindingOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INSTALLATION_ID_ASC' + | 'INSTALLATION_ID_DESC' + | 'INSTALLATION_SCOPE_ASC' + | 'INSTALLATION_SCOPE_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'OBSERVED_HOST_ASC' + | 'OBSERVED_HOST_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; /** Similarity metric for vector search */ export type VectorMetric = 'COSINE' | 'IP' | 'L2'; /** Methods to use when ordering `WebhookEndpoint`. */ @@ -4448,8 +4480,6 @@ export interface BuildPatch { jobId?: string; /** Build log object in storage; step rows slice it by byte range */ logs?: ConstructiveInternalTypeUpload; - /** Upload for Build log object in storage; step rows slice it by byte range */ - logsUpload?: File; /** Matrix shard identity; NULL for a non-matrix build */ matrixKey?: string; /** Build detail (step results, durations, failure reason) */ @@ -4578,99 +4608,6 @@ export interface BuildStepPatch { /** Parsed detail: failure message, assertion diff, counts, annotations */ summary?: unknown; } -/** A filter to be used against `BuilderBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface BuilderBindingFilter { - /** Checks for all expressions in this list. */ - and?: BuilderBindingFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `createdByPrincipal` field. */ - createdByPrincipal?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: BuilderBindingFilter; - /** Filter by the object’s `observedHost` field. */ - observedHost?: StringFilter; - /** Checks for any expressions in this list. */ - or?: BuilderBindingFilter[]; - /** Filter by the object’s `realm` field. */ - realm?: StringFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `updatedByPrincipal` field. */ - updatedByPrincipal?: UUIDFilter; -} -/** An input for mutations affecting `BuilderBinding` */ -export interface BuilderBindingInput { - createdAt?: string; - createdBy?: string; - createdByPrincipal?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - id?: string; - /** BuildKit resource installation serving this binding; may belong to another resource scope */ - installationId: string; - /** Most recent projection failure */ - lastError?: string; - /** Reconciler detail (projection timestamps and diagnostics) */ - metadata?: unknown; - /** Namespace whose builds use this BuildKit installation */ - namespaceId: string; - /** BuildKit address last projected into the namespace (NULL = never projected) */ - observedHost?: string; - /** Lane this binding applies to (NULL = the scope's default lane) */ - realm?: string; - /** Projection state of BUILDKIT_HOST: pending, active, failed */ - status?: string; - updatedAt?: string; - updatedBy?: string; - updatedByPrincipal?: string; -} -/** Represents an update to a `BuilderBinding`. Fields that are set will be updated. */ -export interface BuilderBindingPatch { - createdAt?: string; - createdBy?: string; - createdByPrincipal?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId?: string; - id?: string; - /** BuildKit resource installation serving this binding; may belong to another resource scope */ - installationId?: string; - /** Most recent projection failure */ - lastError?: string; - /** Reconciler detail (projection timestamps and diagnostics) */ - metadata?: unknown; - /** Namespace whose builds use this BuildKit installation */ - namespaceId?: string; - /** BuildKit address last projected into the namespace (NULL = never projected) */ - observedHost?: string; - /** Lane this binding applies to (NULL = the scope's default lane) */ - realm?: string; - /** Projection state of BUILDKIT_HOST: pending, active, failed */ - status?: string; - updatedAt?: string; - updatedBy?: string; - updatedByPrincipal?: string; -} /** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */ export interface ConstructiveInternalTypeImageFilter { /** Contained by the specified JSON. */ @@ -4877,11 +4814,6 @@ export interface CreateBuildStepInput { buildStep: BuildStepInput; clientMutationId?: string; } -export interface CreateBuilderBindingInput { - /** The `BuilderBinding` to be created by this mutation. */ - builderBinding: BuilderBindingInput; - clientMutationId?: string; -} export interface CreateContentPresetInput { clientMutationId?: string; /** The `ContentPreset` to be created by this mutation. */ @@ -5081,11 +5013,6 @@ export interface CreatePlatformBuildStepInput { /** The `PlatformBuildStep` to be created by this mutation. */ platformBuildStep: PlatformBuildStepInput; } -export interface CreatePlatformBuilderBindingInput { - clientMutationId?: string; - /** The `PlatformBuilderBinding` to be created by this mutation. */ - platformBuilderBinding: PlatformBuilderBindingInput; -} export interface CreatePlatformFunctionApiBindingInput { clientMutationId?: string; /** The `PlatformFunctionApiBinding` to be created by this mutation. */ @@ -5281,6 +5208,11 @@ export interface CreatePlatformResourceUsageSummaryInput { /** The `PlatformResourceUsageSummary` to be created by this mutation. */ platformResourceUsageSummary: PlatformResourceUsageSummaryInput; } +export interface CreatePlatformServiceBindingInput { + clientMutationId?: string; + /** The `PlatformServiceBinding` to be created by this mutation. */ + platformServiceBinding: PlatformServiceBindingInput; +} export interface CreatePlatformWebhookEndpointInput { clientMutationId?: string; /** The `PlatformWebhookEndpoint` to be created by this mutation. */ @@ -5391,6 +5323,11 @@ export interface CreateResourceUsageSummaryInput { /** The `ResourceUsageSummary` to be created by this mutation. */ resourceUsageSummary: ResourceUsageSummaryInput; } +export interface CreateServiceBindingInput { + clientMutationId?: string; + /** The `ServiceBinding` to be created by this mutation. */ + serviceBinding: ServiceBindingInput; +} export interface CreateWebhookEndpointInput { clientMutationId?: string; /** The `WebhookEndpoint` to be created by this mutation. */ @@ -6387,10 +6324,6 @@ export interface DeleteBuildStepInput { /** When the result was recorded (partition key) */ recordedAt: string; } -export interface DeleteBuilderBindingInput { - clientMutationId?: string; - id: string; -} export interface DeleteContentPresetInput { clientMutationId?: string; /** Unique preset identifier */ @@ -6623,10 +6556,6 @@ export interface DeletePlatformBuildStepInput { /** When the result was recorded (partition key) */ recordedAt: string; } -export interface DeletePlatformBuilderBindingInput { - clientMutationId?: string; - id: string; -} export interface DeletePlatformFunctionApiBindingInput { clientMutationId?: string; id: string; @@ -6820,6 +6749,10 @@ export interface DeletePlatformResourceUsageSummaryInput { /** Unique usage summary identifier */ id: string; } +export interface DeletePlatformServiceBindingInput { + clientMutationId?: string; + id: string; +} export interface DeletePlatformWebhookEndpointInput { clientMutationId?: string; id: string; @@ -6918,6 +6851,10 @@ export interface DeleteResourceUsageSummaryInput { /** Unique usage summary identifier */ id: string; } +export interface DeleteServiceBindingInput { + clientMutationId?: string; + id: string; +} export interface DeleteWebhookEndpointInput { clientMutationId?: string; id: string; @@ -7483,8 +7420,8 @@ export interface FunctionDeploymentFilter { lastError?: StringFilter; /** Filter by the object’s `lastErrorAt` field. */ lastErrorAt?: DatetimeFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -9387,8 +9324,6 @@ export interface IntegrationProviderPatch { id?: string; /** Provider logo as an image domain value (url, id, key, bucket, provider) */ logo?: ConstructiveInternalTypeImage; - /** Upload for Provider logo as an image domain value (url, id, key, bucket, provider) */ - logoUpload?: File; /** Human-readable brand name (e.g. 'Mailgun', 'PostgreSQL') */ name?: string; /** Canonical config requirements for this provider: array of (name, required, provider) tuples. Used by the UI to auto-fill function/resource required_configs. */ @@ -9512,10 +9447,6 @@ export interface NamespaceFilter { and?: NamespaceFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; - /** Filter by the object’s `builderBindings` relation. */ - builderBindings?: NamespaceToManyBuilderBindingFilter; - /** `builderBindings` exist. */ - builderBindingsExist?: boolean; /** Filter by the object’s `clusterId` field. */ clusterId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -9524,10 +9455,10 @@ export interface NamespaceFilter { databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; - /** Filter by the object’s `functionDeployments` relation. */ - functionDeployments?: NamespaceToManyFunctionDeploymentFilter; - /** `functionDeployments` exist. */ - functionDeploymentsExist?: boolean; + /** Filter by the object’s `functionDeploymentsByNamespaceIdAndDatabaseId` relation. */ + functionDeploymentsByNamespaceIdAndDatabaseId?: NamespaceToManyFunctionDeploymentFilter; + /** `functionDeploymentsByNamespaceIdAndDatabaseId` exist. */ + functionDeploymentsByNamespaceIdAndDatabaseIdExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isActive` field. */ @@ -9546,30 +9477,34 @@ export interface NamespaceFilter { not?: NamespaceFilter; /** Checks for any expressions in this list. */ or?: NamespaceFilter[]; - /** Filter by the object’s `registryBindings` relation. */ - registryBindings?: NamespaceToManyRegistryBindingFilter; - /** `registryBindings` exist. */ - registryBindingsExist?: boolean; - /** Filter by the object’s `resourceDefinitions` relation. */ - resourceDefinitions?: NamespaceToManyResourceDefinitionFilter; - /** `resourceDefinitions` exist. */ - resourceDefinitionsExist?: boolean; - /** Filter by the object’s `resourceInstallations` relation. */ - resourceInstallations?: NamespaceToManyResourceInstallationFilter; - /** `resourceInstallations` exist. */ - resourceInstallationsExist?: boolean; - /** Filter by the object’s `resources` relation. */ - resources?: NamespaceToManyResourceFilter; - /** `resources` exist. */ - resourcesExist?: boolean; + /** Filter by the object’s `registryBindingsByNamespaceIdAndDatabaseId` relation. */ + registryBindingsByNamespaceIdAndDatabaseId?: NamespaceToManyRegistryBindingFilter; + /** `registryBindingsByNamespaceIdAndDatabaseId` exist. */ + registryBindingsByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `resourceDefinitionsByNamespaceIdAndDatabaseId` relation. */ + resourceDefinitionsByNamespaceIdAndDatabaseId?: NamespaceToManyResourceDefinitionFilter; + /** `resourceDefinitionsByNamespaceIdAndDatabaseId` exist. */ + resourceDefinitionsByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `resourceInstallationsByNamespaceIdAndDatabaseId` relation. */ + resourceInstallationsByNamespaceIdAndDatabaseId?: NamespaceToManyResourceInstallationFilter; + /** `resourceInstallationsByNamespaceIdAndDatabaseId` exist. */ + resourceInstallationsByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `resourcesByNamespaceIdAndDatabaseId` relation. */ + resourcesByNamespaceIdAndDatabaseId?: NamespaceToManyResourceFilter; + /** `resourcesByNamespaceIdAndDatabaseId` exist. */ + resourcesByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `serviceBindingsByNamespaceIdAndDatabaseId` relation. */ + serviceBindingsByNamespaceIdAndDatabaseId?: NamespaceToManyServiceBindingFilter; + /** `serviceBindingsByNamespaceIdAndDatabaseId` exist. */ + serviceBindingsByNamespaceIdAndDatabaseIdExist?: boolean; /** Filter by the object’s `status` field. */ status?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `webhookEndpoints` relation. */ - webhookEndpoints?: NamespaceToManyWebhookEndpointFilter; - /** `webhookEndpoints` exist. */ - webhookEndpointsExist?: boolean; + /** Filter by the object’s `webhookEndpointsByNamespaceIdAndDatabaseId` relation. */ + webhookEndpointsByNamespaceIdAndDatabaseId?: NamespaceToManyWebhookEndpointFilter; + /** `webhookEndpointsByNamespaceIdAndDatabaseId` exist. */ + webhookEndpointsByNamespaceIdAndDatabaseIdExist?: boolean; } /** An input for mutations affecting `Namespace` */ export interface NamespaceInput { @@ -9627,15 +9562,6 @@ export interface NamespacePatch { status?: string; updatedAt?: string; } -/** A filter to be used against many `BuilderBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface NamespaceToManyBuilderBindingFilter { - /** Filters to entities where every related entity matches. */ - every?: BuilderBindingFilter; - /** Filters to entities where no related entity matches. */ - none?: BuilderBindingFilter; - /** Filters to entities where at least one related entity matches. */ - some?: BuilderBindingFilter; -} /** A filter to be used against many `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ export interface NamespaceToManyFunctionDeploymentFilter { /** Filters to entities where every related entity matches. */ @@ -9681,6 +9607,15 @@ export interface NamespaceToManyResourceInstallationFilter { /** Filters to entities where at least one related entity matches. */ some?: ResourceInstallationFilter; } +/** A filter to be used against many `ServiceBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceToManyServiceBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: ServiceBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: ServiceBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ServiceBindingFilter; +} /** A filter to be used against many `WebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ export interface NamespaceToManyWebhookEndpointFilter { /** Filters to entities where every related entity matches. */ @@ -9822,8 +9757,6 @@ export interface PlatformBuildPatch { jobId?: string; /** Build log object in storage; step rows slice it by byte range */ logs?: ConstructiveInternalTypeUpload; - /** Upload for Build log object in storage; step rows slice it by byte range */ - logsUpload?: File; /** Matrix shard identity; NULL for a non-matrix build */ matrixKey?: string; /** Build detail (step results, durations, failure reason) */ @@ -9922,118 +9855,31 @@ export interface PlatformBuildStepPatch { /** Acting principal (agent, API key, or user) who created this record */ createdByPrincipal?: string; /** Process exit code of a step (NULL for a test result) */ - exitCode?: number; - /** When this step or test finished */ - finishedAt?: string; - /** Unique identifier (uuidv7 provides temporal ordering) */ - id?: string; - /** What this row is: step, or test */ - kind?: string; - /** Byte length of this row's output in the build log object */ - logBytes?: string; - /** Byte offset of this row's output in the build log object */ - logOffset?: string; - /** Step name, or the test's fully qualified name */ - name?: string; - /** Sequence of the step that reported this test (NULL for a step itself) */ - parentSeq?: number; - /** When the result was recorded (partition key) */ - recordedAt?: string; - /** Position within the build, monotonically increasing across steps and their tests */ - seq?: number; - /** When this step or test began */ - startedAt?: string; - /** Outcome: running, succeeded, failed, skipped, cancelled */ - status?: string; - /** Parsed detail: failure message, assertion diff, counts, annotations */ - summary?: unknown; -} -/** A filter to be used against `PlatformBuilderBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformBuilderBindingFilter { - /** Checks for all expressions in this list. */ - and?: PlatformBuilderBindingFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `createdByPrincipal` field. */ - createdByPrincipal?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: PlatformNamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: PlatformBuilderBindingFilter; - /** Filter by the object’s `observedHost` field. */ - observedHost?: StringFilter; - /** Checks for any expressions in this list. */ - or?: PlatformBuilderBindingFilter[]; - /** Filter by the object’s `realm` field. */ - realm?: StringFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `updatedByPrincipal` field. */ - updatedByPrincipal?: UUIDFilter; -} -/** An input for mutations affecting `PlatformBuilderBinding` */ -export interface PlatformBuilderBindingInput { - createdAt?: string; - createdBy?: string; - createdByPrincipal?: string; - id?: string; - /** BuildKit resource installation serving this binding; may belong to another resource scope */ - installationId: string; - /** Most recent projection failure */ - lastError?: string; - /** Reconciler detail (projection timestamps and diagnostics) */ - metadata?: unknown; - /** Namespace whose builds use this BuildKit installation */ - namespaceId: string; - /** BuildKit address last projected into the namespace (NULL = never projected) */ - observedHost?: string; - /** Lane this binding applies to (NULL = the scope's default lane) */ - realm?: string; - /** Projection state of BUILDKIT_HOST: pending, active, failed */ - status?: string; - updatedAt?: string; - updatedBy?: string; - updatedByPrincipal?: string; -} -/** Represents an update to a `PlatformBuilderBinding`. Fields that are set will be updated. */ -export interface PlatformBuilderBindingPatch { - createdAt?: string; - createdBy?: string; - createdByPrincipal?: string; - id?: string; - /** BuildKit resource installation serving this binding; may belong to another resource scope */ - installationId?: string; - /** Most recent projection failure */ - lastError?: string; - /** Reconciler detail (projection timestamps and diagnostics) */ - metadata?: unknown; - /** Namespace whose builds use this BuildKit installation */ - namespaceId?: string; - /** BuildKit address last projected into the namespace (NULL = never projected) */ - observedHost?: string; - /** Lane this binding applies to (NULL = the scope's default lane) */ - realm?: string; - /** Projection state of BUILDKIT_HOST: pending, active, failed */ + exitCode?: number; + /** When this step or test finished */ + finishedAt?: string; + /** Unique identifier (uuidv7 provides temporal ordering) */ + id?: string; + /** What this row is: step, or test */ + kind?: string; + /** Byte length of this row's output in the build log object */ + logBytes?: string; + /** Byte offset of this row's output in the build log object */ + logOffset?: string; + /** Step name, or the test's fully qualified name */ + name?: string; + /** Sequence of the step that reported this test (NULL for a step itself) */ + parentSeq?: number; + /** When the result was recorded (partition key) */ + recordedAt?: string; + /** Position within the build, monotonically increasing across steps and their tests */ + seq?: number; + /** When this step or test began */ + startedAt?: string; + /** Outcome: running, succeeded, failed, skipped, cancelled */ status?: string; - updatedAt?: string; - updatedBy?: string; - updatedByPrincipal?: string; + /** Parsed detail: failure message, assertion diff, counts, annotations */ + summary?: unknown; } /** A filter to be used against `PlatformFunctionApiBinding` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformFunctionApiBindingFilter { @@ -11841,10 +11687,6 @@ export interface PlatformNamespaceFilter { not?: PlatformNamespaceFilter; /** Checks for any expressions in this list. */ or?: PlatformNamespaceFilter[]; - /** Filter by the object’s `platformBuilderBindingsByNamespaceId` relation. */ - platformBuilderBindingsByNamespaceId?: PlatformNamespaceToManyPlatformBuilderBindingFilter; - /** `platformBuilderBindingsByNamespaceId` exist. */ - platformBuilderBindingsByNamespaceIdExist?: boolean; /** Filter by the object’s `platformFunctionDeploymentsByNamespaceId` relation. */ platformFunctionDeploymentsByNamespaceId?: PlatformNamespaceToManyPlatformFunctionDeploymentFilter; /** `platformFunctionDeploymentsByNamespaceId` exist. */ @@ -11865,6 +11707,10 @@ export interface PlatformNamespaceFilter { platformResourcesByNamespaceId?: PlatformNamespaceToManyPlatformResourceFilter; /** `platformResourcesByNamespaceId` exist. */ platformResourcesByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformServiceBindingsByNamespaceId` relation. */ + platformServiceBindingsByNamespaceId?: PlatformNamespaceToManyPlatformServiceBindingFilter; + /** `platformServiceBindingsByNamespaceId` exist. */ + platformServiceBindingsByNamespaceIdExist?: boolean; /** Filter by the object’s `platformWebhookEndpointsByNamespaceId` relation. */ platformWebhookEndpointsByNamespaceId?: PlatformNamespaceToManyPlatformWebhookEndpointFilter; /** `platformWebhookEndpointsByNamespaceId` exist. */ @@ -11926,15 +11772,6 @@ export interface PlatformNamespacePatch { status?: string; updatedAt?: string; } -/** A filter to be used against many `PlatformBuilderBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformNamespaceToManyPlatformBuilderBindingFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformBuilderBindingFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformBuilderBindingFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformBuilderBindingFilter; -} /** A filter to be used against many `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformNamespaceToManyPlatformFunctionDeploymentFilter { /** Filters to entities where every related entity matches. */ @@ -11980,6 +11817,15 @@ export interface PlatformNamespaceToManyPlatformResourceInstallationFilter { /** Filters to entities where at least one related entity matches. */ some?: PlatformResourceInstallationFilter; } +/** A filter to be used against many `PlatformServiceBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceToManyPlatformServiceBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformServiceBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformServiceBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformServiceBindingFilter; +} /** A filter to be used against many `PlatformWebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformNamespaceToManyPlatformWebhookEndpointFilter { /** Filters to entities where every related entity matches. */ @@ -12007,6 +11853,8 @@ export interface PlatformProposalCommentFilter { createdByPrincipal?: UUIDFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -12035,6 +11883,8 @@ export interface PlatformProposalCommentFilter { search?: FullTextFilter; /** TRGM search on the `body` column. */ trgmBody?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `path` column. */ trgmPath?: TrgmSearchInput; /** TSV search on the `search` column. */ @@ -12068,7 +11918,7 @@ export interface PlatformProposalCommentInput { createdBy?: string; createdByPrincipal?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** Line within path the comment is anchored to */ @@ -12097,7 +11947,7 @@ export interface PlatformProposalCommentPatch { createdBy?: string; createdByPrincipal?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** Line within path the comment is anchored to */ @@ -12216,6 +12066,8 @@ export interface PlatformProposalFilter { dueAt?: DatetimeFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -12290,6 +12142,8 @@ export interface PlatformProposalFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `closed_reason` column. */ trgmClosedReason?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `merge_commit` column. */ @@ -12341,7 +12195,7 @@ export interface PlatformProposalInput { /** When this is wanted by (NULL when nothing is promised) */ dueAt?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** issue (a report or plan), change (merge one ref into another), discussion (an open question), decision (a question answered) */ @@ -12394,7 +12248,7 @@ export interface PlatformProposalPatch { /** When this is wanted by (NULL when nothing is promised) */ dueAt?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** issue (a report or plan), change (merge one ref into another), discussion (an open question), decision (a question answered) */ @@ -12689,7 +12543,7 @@ export interface PlatformProposalsChunkInput { chunkIndex?: number; createdAt?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; metadata?: unknown; @@ -12704,7 +12558,7 @@ export interface PlatformProposalsChunkPatch { chunkIndex?: number; createdAt?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; metadata?: unknown; @@ -13144,6 +12998,8 @@ export interface PlatformRepositoryFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `externalId` field. */ @@ -13194,6 +13050,8 @@ export interface PlatformRepositoryFilter { trgmDefaultBranch?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `external_id` column. */ trgmExternalId?: TrgmSearchInput; /** TRGM search on the `name` column. */ @@ -13237,7 +13095,7 @@ export interface PlatformRepositoryInput { /** What this repository holds */ description?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; /** Identifier of this repository in the external provider (NULL for local) */ externalId?: string; @@ -13272,7 +13130,7 @@ export interface PlatformRepositoryPatch { /** What this repository holds */ description?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; /** Identifier of this repository in the external provider (NULL for local) */ externalId?: string; @@ -14501,6 +14359,105 @@ export interface PlatformResourcesResolvedRequirementFilter { /** Filter by the object’s `slug` field. */ slug?: StringFilter; } +/** A filter to be used against `PlatformServiceBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformServiceBindingFilter { + /** Checks for all expressions in this list. */ + and?: PlatformServiceBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `installationScope` field. */ + installationScope?: StringFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformServiceBindingFilter; + /** Filter by the object’s `observedHost` field. */ + observedHost?: StringFilter; + /** Checks for any expressions in this list. */ + or?: PlatformServiceBindingFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +/** An input for mutations affecting `PlatformServiceBinding` */ +export interface PlatformServiceBindingInput { + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + id?: string; + /** Resource installation serving this binding, in the installations table of installation_scope */ + installationId: string; + /** Scope whose installations table holds installation_id: this scope or platform */ + installationScope: string; + /** Service this binding projects: builder (BUILDKIT_HOST) or git (GIT_PROVIDER + GIT_SERVICE_URL) */ + kind: string; + /** Most recent projection failure */ + lastError?: string; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: unknown; + /** Namespace whose builds use this BuildKit installation */ + namespaceId: string; + /** Service address last projected into the namespace (NULL = never projected) */ + observedHost?: string; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string; + /** Projection state of the bound address: pending, active, failed */ + status?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} +/** Represents an update to a `PlatformServiceBinding`. Fields that are set will be updated. */ +export interface PlatformServiceBindingPatch { + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + id?: string; + /** Resource installation serving this binding, in the installations table of installation_scope */ + installationId?: string; + /** Scope whose installations table holds installation_id: this scope or platform */ + installationScope?: string; + /** Service this binding projects: builder (BUILDKIT_HOST) or git (GIT_PROVIDER + GIT_SERVICE_URL) */ + kind?: string; + /** Most recent projection failure */ + lastError?: string; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: unknown; + /** Namespace whose builds use this BuildKit installation */ + namespaceId?: string; + /** Service address last projected into the namespace (NULL = never projected) */ + observedHost?: string; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string; + /** Projection state of the bound address: pending, active, failed */ + status?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} /** A filter to be used against `PlatformWebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformWebhookEndpointFilter { /** Filter by the object’s `active` field. */ @@ -14712,6 +14669,8 @@ export interface ProposalCommentFilter { databaseId?: UUIDFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -14740,6 +14699,8 @@ export interface ProposalCommentFilter { search?: FullTextFilter; /** TRGM search on the `body` column. */ trgmBody?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `path` column. */ trgmPath?: TrgmSearchInput; /** TSV search on the `search` column. */ @@ -14773,7 +14734,7 @@ export interface ProposalCommentInput { createdBy?: string; createdByPrincipal?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** Line within path the comment is anchored to */ @@ -14804,7 +14765,7 @@ export interface ProposalCommentPatch { /** Database that owns this resource (database-scoped isolation) */ databaseId?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** Line within path the comment is anchored to */ @@ -14933,6 +14894,8 @@ export interface ProposalFilter { dueAt?: DatetimeFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -15003,6 +14966,8 @@ export interface ProposalFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `closed_reason` column. */ trgmClosedReason?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `merge_commit` column. */ @@ -15054,7 +15019,7 @@ export interface ProposalInput { /** When this is wanted by (NULL when nothing is promised) */ dueAt?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** issue (a report or plan), change (merge one ref into another), discussion (an open question), decision (a question answered) */ @@ -15109,7 +15074,7 @@ export interface ProposalPatch { /** When this is wanted by (NULL when nothing is promised) */ dueAt?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** issue (a report or plan), change (merge one ref into another), discussion (an open question), decision (a question answered) */ @@ -15416,7 +15381,7 @@ export interface ProposalsChunkInput { /** Policy-required field derived from source table (used by AuthzRelatedEntityMembership) */ databaseId?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; metadata?: unknown; @@ -15433,7 +15398,7 @@ export interface ProposalsChunkPatch { /** Policy-required field derived from source table (used by AuthzRelatedEntityMembership) */ databaseId?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; metadata?: unknown; @@ -15465,8 +15430,8 @@ export interface RegistryBindingFilter { id?: UUIDFilter; /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -15910,6 +15875,8 @@ export interface RepositoryFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `externalId` field. */ @@ -15956,6 +15923,8 @@ export interface RepositoryFilter { trgmDefaultBranch?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `external_id` column. */ trgmExternalId?: TrgmSearchInput; /** TRGM search on the `name` column. */ @@ -16001,7 +15970,7 @@ export interface RepositoryInput { /** What this repository holds */ description?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; /** Identifier of this repository in the external provider (NULL for local) */ externalId?: string; @@ -16038,7 +16007,7 @@ export interface RepositoryPatch { /** What this repository holds */ description?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; /** Identifier of this repository in the external provider (NULL for local) */ externalId?: string; @@ -16365,8 +16334,8 @@ export interface ResourceDefinitionFilter { labels?: JSONFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -16584,8 +16553,8 @@ export interface ResourceFilter { memoryRequestBytes?: BigIntFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -16695,8 +16664,8 @@ export interface ResourceInstallationFilter { id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -17333,6 +17302,111 @@ export interface SaveGraphInput { message?: string; rootHash?: string; } +/** A filter to be used against `ServiceBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface ServiceBindingFilter { + /** Checks for all expressions in this list. */ + and?: ServiceBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `installationScope` field. */ + installationScope?: StringFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ServiceBindingFilter; + /** Filter by the object’s `observedHost` field. */ + observedHost?: StringFilter; + /** Checks for any expressions in this list. */ + or?: ServiceBindingFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} +/** An input for mutations affecting `ServiceBinding` */ +export interface ServiceBindingInput { + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** Resource installation serving this binding, in the installations table of installation_scope */ + installationId: string; + /** Scope whose installations table holds installation_id: this scope or platform */ + installationScope: string; + /** Service this binding projects: builder (BUILDKIT_HOST) or git (GIT_PROVIDER + GIT_SERVICE_URL) */ + kind: string; + /** Most recent projection failure */ + lastError?: string; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: unknown; + /** Namespace whose builds use this BuildKit installation */ + namespaceId: string; + /** Service address last projected into the namespace (NULL = never projected) */ + observedHost?: string; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string; + /** Projection state of the bound address: pending, active, failed */ + status?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} +/** Represents an update to a `ServiceBinding`. Fields that are set will be updated. */ +export interface ServiceBindingPatch { + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string; + id?: string; + /** Resource installation serving this binding, in the installations table of installation_scope */ + installationId?: string; + /** Scope whose installations table holds installation_id: this scope or platform */ + installationScope?: string; + /** Service this binding projects: builder (BUILDKIT_HOST) or git (GIT_PROVIDER + GIT_SERVICE_URL) */ + kind?: string; + /** Most recent projection failure */ + lastError?: string; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: unknown; + /** Namespace whose builds use this BuildKit installation */ + namespaceId?: string; + /** Service address last projected into the namespace (NULL = never projected) */ + observedHost?: string; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string; + /** Projection state of the bound address: pending, active, failed */ + status?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} export interface SetAndCommitInput { clientMutationId?: string; data?: unknown; @@ -17475,12 +17549,6 @@ export interface UpdateBuildStepInput { /** When the result was recorded (partition key) */ recordedAt: string; } -export interface UpdateBuilderBindingInput { - /** An object where the defined keys will be set on the `BuilderBinding` being updated. */ - builderBindingPatch: BuilderBindingPatch; - clientMutationId?: string; - id: string; -} export interface UpdateContentPresetInput { clientMutationId?: string; /** An object where the defined keys will be set on the `ContentPreset` being updated. */ @@ -17793,12 +17861,6 @@ export interface UpdatePlatformBuildStepInput { /** When the result was recorded (partition key) */ recordedAt: string; } -export interface UpdatePlatformBuilderBindingInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `PlatformBuilderBinding` being updated. */ - platformBuilderBindingPatch: PlatformBuilderBindingPatch; -} export interface UpdatePlatformFunctionApiBindingInput { clientMutationId?: string; id: string; @@ -18070,6 +18132,12 @@ export interface UpdatePlatformResourceUsageSummaryInput { /** An object where the defined keys will be set on the `PlatformResourceUsageSummary` being updated. */ platformResourceUsageSummaryPatch: PlatformResourceUsageSummaryPatch; } +export interface UpdatePlatformServiceBindingInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlatformServiceBinding` being updated. */ + platformServiceBindingPatch: PlatformServiceBindingPatch; +} export interface UpdatePlatformWebhookEndpointInput { clientMutationId?: string; id: string; @@ -18212,6 +18280,12 @@ export interface UpdateResourceUsageSummaryInput { /** An object where the defined keys will be set on the `ResourceUsageSummary` being updated. */ resourceUsageSummaryPatch: ResourceUsageSummaryPatch; } +export interface UpdateServiceBindingInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `ServiceBinding` being updated. */ + serviceBindingPatch: ServiceBindingPatch; +} export interface UpdateWebhookEndpointInput { clientMutationId?: string; id: string; @@ -18236,10 +18310,12 @@ export interface VectorNearbyInput { includeChunks?: boolean; /** Similarity metric to use (default: COSINE). */ metric?: VectorMetric; - /** Natural language text to embed server-side for similarity search. Mutually exclusive with `vector` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** The model that produced `vector`. On a column that records the model of each row's vector, only rows embedded with this model are compared; vectors of two models are not comparable. Filled in server-side when `text` is embedded. */ + model?: string; + /** Natural language text to embed server-side for similarity search. Provide exactly one of `text` or `vector`; sending both or neither is an error. Blank text on its own counts as not given. Requires the LLM plugin to be configured with an embedding provider. */ text?: string; /** Query vector for similarity search. */ - vector: number[]; + vector?: number[]; } /** A filter to be used against `WebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ export interface WebhookEndpointFilter { @@ -18263,8 +18339,8 @@ export interface WebhookEndpointFilter { host?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -18455,13 +18531,6 @@ export interface BuildStepConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `BuilderBinding` values. */ -export interface BuilderBindingConnection { - edges: BuilderBindingEdge[]; - nodes: BuilderBinding[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `Build` values. */ export interface BuildConnection { edges: BuildEdge[]; @@ -18763,13 +18832,6 @@ export interface PlatformBuildStepConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `PlatformBuilderBinding` values. */ -export interface PlatformBuilderBindingConnection { - edges: PlatformBuilderBindingEdge[]; - nodes: PlatformBuilderBinding[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `PlatformBuild` values. */ export interface PlatformBuildConnection { edges: PlatformBuildEdge[]; @@ -19099,6 +19161,13 @@ export interface PlatformResourcesResolvedRequirementConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `PlatformServiceBinding` values. */ +export interface PlatformServiceBindingConnection { + edges: PlatformServiceBindingEdge[]; + nodes: PlatformServiceBinding[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `PlatformWebhookEndpoint` values. */ export interface PlatformWebhookEndpointConnection { edges: PlatformWebhookEndpointEdge[]; @@ -19295,6 +19364,13 @@ export interface ResourcesResolvedRequirementConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `ServiceBinding` values. */ +export interface ServiceBindingConnection { + edges: ServiceBindingEdge[]; + nodes: ServiceBinding[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `WebhookEndpoint` values. */ export interface WebhookEndpointConnection { edges: WebhookEndpointEdge[]; @@ -19344,12 +19420,6 @@ export interface CreateBuildStepPayload { buildStepEdge?: BuildStepEdge | null; clientMutationId?: string | null; } -export interface CreateBuilderBindingPayload { - /** The `BuilderBinding` that was created by this mutation. */ - builderBinding?: BuilderBinding | null; - builderBindingEdge?: BuilderBindingEdge | null; - clientMutationId?: string | null; -} export interface CreateContentPresetPayload { clientMutationId?: string | null; /** The `ContentPreset` that was created by this mutation. */ @@ -19582,12 +19652,6 @@ export interface CreatePlatformBuildStepPayload { platformBuildStep?: PlatformBuildStep | null; platformBuildStepEdge?: PlatformBuildStepEdge | null; } -export interface CreatePlatformBuilderBindingPayload { - clientMutationId?: string | null; - /** The `PlatformBuilderBinding` that was created by this mutation. */ - platformBuilderBinding?: PlatformBuilderBinding | null; - platformBuilderBindingEdge?: PlatformBuilderBindingEdge | null; -} export interface CreatePlatformFunctionApiBindingPayload { clientMutationId?: string | null; /** The `PlatformFunctionApiBinding` that was created by this mutation. */ @@ -19822,6 +19886,12 @@ export interface CreatePlatformResourceUsageSummaryPayload { platformResourceUsageSummary?: PlatformResourceUsageSummary | null; platformResourceUsageSummaryEdge?: PlatformResourceUsageSummaryEdge | null; } +export interface CreatePlatformServiceBindingPayload { + clientMutationId?: string | null; + /** The `PlatformServiceBinding` that was created by this mutation. */ + platformServiceBinding?: PlatformServiceBinding | null; + platformServiceBindingEdge?: PlatformServiceBindingEdge | null; +} export interface CreatePlatformWebhookEndpointPayload { clientMutationId?: string | null; /** The `PlatformWebhookEndpoint` that was created by this mutation. */ @@ -19954,6 +20024,12 @@ export interface CreateResourceUsageSummaryPayload { resourceUsageSummary?: ResourceUsageSummary | null; resourceUsageSummaryEdge?: ResourceUsageSummaryEdge | null; } +export interface CreateServiceBindingPayload { + clientMutationId?: string | null; + /** The `ServiceBinding` that was created by this mutation. */ + serviceBinding?: ServiceBinding | null; + serviceBindingEdge?: ServiceBindingEdge | null; +} export interface CreateWebhookEndpointPayload { clientMutationId?: string | null; /** The `WebhookEndpoint` that was created by this mutation. */ @@ -20049,12 +20125,6 @@ export interface DeleteBuildStepPayload { buildStepEdge?: BuildStepEdge | null; clientMutationId?: string | null; } -export interface DeleteBuilderBindingPayload { - /** The `BuilderBinding` that was deleted by this mutation. */ - builderBinding?: BuilderBinding | null; - builderBindingEdge?: BuilderBindingEdge | null; - clientMutationId?: string | null; -} export interface DeleteContentPresetPayload { clientMutationId?: string | null; /** The `ContentPreset` that was deleted by this mutation. */ @@ -20295,12 +20365,6 @@ export interface DeletePlatformBuildStepPayload { platformBuildStep?: PlatformBuildStep | null; platformBuildStepEdge?: PlatformBuildStepEdge | null; } -export interface DeletePlatformBuilderBindingPayload { - clientMutationId?: string | null; - /** The `PlatformBuilderBinding` that was deleted by this mutation. */ - platformBuilderBinding?: PlatformBuilderBinding | null; - platformBuilderBindingEdge?: PlatformBuilderBindingEdge | null; -} export interface DeletePlatformFunctionApiBindingPayload { clientMutationId?: string | null; /** The `PlatformFunctionApiBinding` that was deleted by this mutation. */ @@ -20535,6 +20599,12 @@ export interface DeletePlatformResourceUsageSummaryPayload { platformResourceUsageSummary?: PlatformResourceUsageSummary | null; platformResourceUsageSummaryEdge?: PlatformResourceUsageSummaryEdge | null; } +export interface DeletePlatformServiceBindingPayload { + clientMutationId?: string | null; + /** The `PlatformServiceBinding` that was deleted by this mutation. */ + platformServiceBinding?: PlatformServiceBinding | null; + platformServiceBindingEdge?: PlatformServiceBindingEdge | null; +} export interface DeletePlatformWebhookEndpointPayload { clientMutationId?: string | null; /** The `PlatformWebhookEndpoint` that was deleted by this mutation. */ @@ -20667,6 +20737,12 @@ export interface DeleteResourceUsageSummaryPayload { resourceUsageSummary?: ResourceUsageSummary | null; resourceUsageSummaryEdge?: ResourceUsageSummaryEdge | null; } +export interface DeleteServiceBindingPayload { + clientMutationId?: string | null; + /** The `ServiceBinding` that was deleted by this mutation. */ + serviceBinding?: ServiceBinding | null; + serviceBindingEdge?: ServiceBindingEdge | null; +} export interface DeleteWebhookEndpointPayload { clientMutationId?: string | null; /** The `WebhookEndpoint` that was deleted by this mutation. */ @@ -20842,12 +20918,6 @@ export interface UpdateBuildStepPayload { buildStepEdge?: BuildStepEdge | null; clientMutationId?: string | null; } -export interface UpdateBuilderBindingPayload { - /** The `BuilderBinding` that was updated by this mutation. */ - builderBinding?: BuilderBinding | null; - builderBindingEdge?: BuilderBindingEdge | null; - clientMutationId?: string | null; -} export interface UpdateContentPresetPayload { clientMutationId?: string | null; /** The `ContentPreset` that was updated by this mutation. */ @@ -21088,12 +21158,6 @@ export interface UpdatePlatformBuildStepPayload { platformBuildStep?: PlatformBuildStep | null; platformBuildStepEdge?: PlatformBuildStepEdge | null; } -export interface UpdatePlatformBuilderBindingPayload { - clientMutationId?: string | null; - /** The `PlatformBuilderBinding` that was updated by this mutation. */ - platformBuilderBinding?: PlatformBuilderBinding | null; - platformBuilderBindingEdge?: PlatformBuilderBindingEdge | null; -} export interface UpdatePlatformFunctionApiBindingPayload { clientMutationId?: string | null; /** The `PlatformFunctionApiBinding` that was updated by this mutation. */ @@ -21328,6 +21392,12 @@ export interface UpdatePlatformResourceUsageSummaryPayload { platformResourceUsageSummary?: PlatformResourceUsageSummary | null; platformResourceUsageSummaryEdge?: PlatformResourceUsageSummaryEdge | null; } +export interface UpdatePlatformServiceBindingPayload { + clientMutationId?: string | null; + /** The `PlatformServiceBinding` that was updated by this mutation. */ + platformServiceBinding?: PlatformServiceBinding | null; + platformServiceBindingEdge?: PlatformServiceBindingEdge | null; +} export interface UpdatePlatformWebhookEndpointPayload { clientMutationId?: string | null; /** The `PlatformWebhookEndpoint` that was updated by this mutation. */ @@ -21460,6 +21530,12 @@ export interface UpdateResourceUsageSummaryPayload { resourceUsageSummary?: ResourceUsageSummary | null; resourceUsageSummaryEdge?: ResourceUsageSummaryEdge | null; } +export interface UpdateServiceBindingPayload { + clientMutationId?: string | null; + /** The `ServiceBinding` that was updated by this mutation. */ + serviceBinding?: ServiceBinding | null; + serviceBindingEdge?: ServiceBindingEdge | null; +} export interface UpdateWebhookEndpointPayload { clientMutationId?: string | null; /** The `WebhookEndpoint` that was updated by this mutation. */ @@ -21479,21 +21555,27 @@ export interface ValidateFunctionGraphPayload { /** Information about a database table */ export interface MetaTable { constraints: MetaConstraints; + /** Description written for this table, or null */ + description?: string | null; fields: MetaField[]; foreignKeyConstraints: MetaForeignKeyConstraint[]; - /** i18n metadata (null if no @i18n tag) */ + /** i18n metadata (null if the table is not translatable) */ i18n?: MetaI18n | null; indexes: MetaIndex[]; inflection: MetaInflection; + /** Whether this table only links rows of two other tables; the link appears in their manyToMany relations */ + isJunction: boolean; + /** 'table' when rows are stored in this table, 'view' when they come from a view of other tables */ + kind: string; /** Final GraphQL output type name */ name: string; primaryKeyConstraints: MetaPrimaryKeyConstraint[]; query: MetaQuery; - /** Realtime metadata (null if no @realtime tag) */ + /** Realtime metadata (null if the table has no change subscriptions) */ realtime?: MetaRealtime | null; relations: MetaRelations; schemaName: string; - /** Provisioning scope metadata (null if no @scope tag) */ + /** Provisioning scope metadata (null if the table has no scope) */ scope?: MetaScope | null; /** Search metadata (null if no search configured) */ search?: MetaSearch | null; @@ -21520,12 +21602,6 @@ export interface PageInfo { /** When paginating backwards, the cursor to continue. */ startCursor?: string | null; } -/** A `BuilderBinding` edge in the connection. */ -export interface BuilderBindingEdge { - cursor?: string | null; - /** The `BuilderBinding` at the end of the edge. */ - node?: BuilderBinding | null; -} /** A `Build` edge in the connection. */ export interface BuildEdge { cursor?: string | null; @@ -21784,12 +21860,6 @@ export interface PlatformBuildStepEdge { /** The `PlatformBuildStep` at the end of the edge. */ node?: PlatformBuildStep | null; } -/** A `PlatformBuilderBinding` edge in the connection. */ -export interface PlatformBuilderBindingEdge { - cursor?: string | null; - /** The `PlatformBuilderBinding` at the end of the edge. */ - node?: PlatformBuilderBinding | null; -} /** A `PlatformBuild` edge in the connection. */ export interface PlatformBuildEdge { cursor?: string | null; @@ -22072,6 +22142,12 @@ export interface PlatformResourcesResolvedRequirementEdge { /** The `PlatformResourcesResolvedRequirement` at the end of the edge. */ node?: PlatformResourcesResolvedRequirement | null; } +/** A `PlatformServiceBinding` edge in the connection. */ +export interface PlatformServiceBindingEdge { + cursor?: string | null; + /** The `PlatformServiceBinding` at the end of the edge. */ + node?: PlatformServiceBinding | null; +} /** A `PlatformWebhookEndpoint` edge in the connection. */ export interface PlatformWebhookEndpointEdge { cursor?: string | null; @@ -22240,6 +22316,12 @@ export interface ResourcesResolvedRequirementEdge { /** The `ResourcesResolvedRequirement` at the end of the edge. */ node?: ResourcesResolvedRequirement | null; } +/** A `ServiceBinding` edge in the connection. */ +export interface ServiceBindingEdge { + cursor?: string | null; + /** The `ServiceBinding` at the end of the edge. */ + node?: ServiceBinding | null; +} /** A `WebhookEndpoint` edge in the connection. */ export interface WebhookEndpointEdge { cursor?: string | null; @@ -22260,15 +22342,27 @@ export interface MetaConstraints { } /** Information about a table field/column */ export interface MetaField { + /** Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. */ + allowedValues?: string[] | null; /** PostgreSQL column name */ columnName: string; description?: string | null; /** Enum metadata if this field has an enum type */ enumValues?: MetaEnum | null; + /** Set when the field holds files; null otherwise. Set on a table's own fields only. */ + file?: MetaFileField | null; hasDefault: boolean; + /** Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. */ + isComputed?: boolean | null; isForeignKey: boolean; isNotNull: boolean; isPrimaryKey: boolean; + /** Whether a create must provide this field. Set on a table's own fields only. */ + isRequiredOnCreate?: boolean | null; + /** Whether a create may set this field. Set on a table's own fields only. */ + isWritableOnCreate?: boolean | null; + /** Whether an update may change this field. Set on a table's own fields only. */ + isWritableOnUpdate?: boolean | null; /** Final GraphQL field name */ name: string; type: MetaType; @@ -22282,7 +22376,7 @@ export interface MetaForeignKeyConstraint { referencedFields: string[]; referencedTable: string; } -/** i18n metadata for a table with @i18n tag */ +/** i18n metadata for a translatable table */ export interface MetaI18n { /** Fields that are translatable */ translatableFields: MetaI18nField[]; @@ -22297,7 +22391,7 @@ export interface MetaIndex { isUnique: boolean; name: string; } -/** Table inflection names */ +/** Type and field names generated for this table */ export interface MetaInflection { allRows: string; conditionType: string; @@ -22325,7 +22419,7 @@ export interface MetaQuery { one?: string | null; update?: string | null; } -/** Realtime metadata for a table with @realtime tag */ +/** Realtime metadata for a table with change subscriptions */ export interface MetaRealtime { /** The generated subscription field name (e.g. onPostChanged) */ subscriptionFieldName: string; @@ -22340,13 +22434,13 @@ export interface MetaRelations { } /** Provisioning scope metadata for a table */ export interface MetaScope { - /** SQL name of the entity table for entity scopes, else null */ + /** Name of the entity table for entity scopes, else null */ entityTable?: string | null; - /** Inflected scope key column (e.g. databaseId, orgId), null for global tiers */ + /** Field name of the scope key (e.g. databaseId, orgId), null for global tiers */ keyColumn?: string | null; /** Provisioning scope: 'platform', 'app', 'database', or an entity scope (e.g. 'org') */ scope: string; - /** Provenance of the scope metadata (always 'smartTag') */ + /** Where this scope metadata comes from */ source: string; /** Coarse bucket: 'global', 'database', or 'entity' */ tier: string; @@ -22364,17 +22458,17 @@ export interface MetaSearch { } /** Storage metadata for a table */ export interface MetaStorage { - /** GraphQL type name of the plane's buckets table */ + /** GraphQL type name of the paired buckets table */ bucketsType: string; /** Computed download-URL field on the files type; null on the buckets side */ downloadUrlField?: string | null; - /** GraphQL type name of the plane's files table */ + /** GraphQL type name of the paired files table */ filesType: string; /** Whether this table is a storage buckets table */ isBucketsTable: boolean; /** Whether this table is a storage files table */ isFilesTable: boolean; - /** The plane's GraphQL upload surface */ + /** Upload mutations and types for this storage */ upload: MetaStorageUpload; } /** Information about a unique constraint */ @@ -22389,6 +22483,15 @@ export interface MetaEnum { /** Allowed values for this enum */ values: string[]; } +/** How a field holds files */ +export interface MetaFileField { + /** GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise */ + filesType?: string | null; + /** Whether the field holds a list of files */ + isMultiple: boolean; + /** image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. */ + kind: string; +} /** Information about a PostgreSQL type */ export interface MetaType { /** Scalar serialization contract (null for plain scalars) */ @@ -22397,7 +22500,13 @@ export interface MetaType { hasDefault?: boolean | null; isArray: boolean; isNotNull?: boolean | null; + /** Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. */ + maxLength?: number | null; pgType: string; + /** Most significant digits a decimal number may hold. Null when unbounded. */ + precision?: number | null; + /** Digits a decimal number keeps after the decimal point. Null when unbounded. */ + scale?: number | null; subtype?: string | null; } /** Reference to a related table */ @@ -22416,6 +22525,8 @@ export interface MetaBelongsToRelation { fieldName?: string | null; isUnique: boolean; keys: MetaField[]; + /** Fields on the referenced table that keys point at, in the same order as keys */ + refKeys: MetaField[]; references: MetaRefTable; type?: string | null; } @@ -22425,6 +22536,8 @@ export interface MetaHasRelation { isUnique: boolean; keys: MetaField[]; referencedBy: MetaRefTable; + /** Fields on the related table that point at this table, in the same order as keys */ + remoteKeys: MetaField[]; type?: string | null; } /** A many-to-many relation via junction table */ @@ -22447,7 +22560,7 @@ export interface MetaSearchColumn { /** Column name (camelCase) */ name: string; } -/** Per-table search configuration from @searchConfig smart tag */ +/** Per-table search configuration */ export interface MetaSearchConfig { /** Exponential decay factor per day */ boostRecencyDecay?: number | null; @@ -22458,7 +22571,7 @@ export interface MetaSearchConfig { /** JSON-encoded per-adapter score weights */ weights?: string | null; } -/** The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from */ +/** The upload mutations and types for a storage table pair */ export interface MetaStorageUpload { /** Per-file input type inside the bulk input */ bulkFileInputType: string; @@ -22476,14 +22589,14 @@ export interface MetaStorageUpload { mutation: string; /** Payload type of the single upload mutation */ payloadType: string; - /** Whether the upload input requires ownerId (entity-keyed plane) */ + /** Whether the upload input requires ownerId */ requiresOwnerId: boolean; } -/** How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. */ +/** How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. */ export interface MetaScalarEncoding { /** For 'vector': declared length, else null. */ dimensions?: number | null; - /** For 'ltree': values are dot-separated path strings. */ + /** For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). */ dotPath?: boolean | null; /** For 'vector': element scalar (e.g. 'float'). */ elementType?: string | null; diff --git a/sdk/constructive-react/src/compute/types.ts b/sdk/constructive-react/src/compute/types.ts index d89c25ab4e..0bf01eb0ef 100644 --- a/sdk/constructive-react/src/compute/types.ts +++ b/sdk/constructive-react/src/compute/types.ts @@ -6,6 +6,7 @@ export type Base64EncodedBinary = unknown; export type ConstructiveInternalTypeImage = unknown; export type ConstructiveInternalTypeUpload = unknown; +export type FileVersion = unknown; export type ResourceRequirement = unknown; export interface Build { actorId: string | null; @@ -21,6 +22,8 @@ export interface Build { imageRef: string | null; jobId: string | null; logs: ConstructiveInternalTypeUpload | null; + logsUrl: string | null; + logsVersions: FileVersion[] | null; matrixKey: string | null; metadata: unknown | null; proposalId: string | null; @@ -50,23 +53,6 @@ export interface BuildStep { status: string | null; summary: unknown | null; } -export interface BuilderBinding { - createdAt: string | null; - createdBy: string | null; - createdByPrincipal: string | null; - databaseId: string | null; - id: string | null; - installationId: string | null; - lastError: string | null; - metadata: unknown | null; - namespaceId: string | null; - observedHost: string | null; - realm: string | null; - status: string | null; - updatedAt: string | null; - updatedBy: string | null; - updatedByPrincipal: string | null; -} export interface ContentPreset { active: boolean | null; commitId: string | null; @@ -593,6 +579,8 @@ export interface IntegrationProvider { icon: string | null; id: string | null; logo: ConstructiveInternalTypeImage | null; + logoUrl: string | null; + logoVersions: FileVersion[] | null; name: string | null; requiredConfigs: ResourceRequirement[] | null; requiredSecrets: ResourceRequirement[] | null; @@ -638,6 +626,8 @@ export interface PlatformBuild { imageRef: string | null; jobId: string | null; logs: ConstructiveInternalTypeUpload | null; + logsUrl: string | null; + logsVersions: FileVersion[] | null; matrixKey: string | null; metadata: unknown | null; proposalId: string | null; @@ -666,22 +656,6 @@ export interface PlatformBuildStep { status: string | null; summary: unknown | null; } -export interface PlatformBuilderBinding { - createdAt: string | null; - createdBy: string | null; - createdByPrincipal: string | null; - id: string | null; - installationId: string | null; - lastError: string | null; - metadata: unknown | null; - namespaceId: string | null; - observedHost: string | null; - realm: string | null; - status: string | null; - updatedAt: string | null; - updatedBy: string | null; - updatedByPrincipal: string | null; -} export interface PlatformFunctionApiBinding { alias: string | null; apiId: string | null; @@ -976,12 +950,16 @@ export interface PlatformNamespaceEvent { export interface PlatformProposalComment { actorId: string | null; attachments: ConstructiveInternalTypeUpload[] | null; + attachmentsUrl: string[] | null; + attachmentsVersions: FileVersion[] | null; body: string | null; bodyTrgmSimilarity: number | null; createdAt: string | null; createdBy: string | null; createdByPrincipal: string | null; embedding: number[] | null; + embeddingModel: string | null; + embeddingModelTrgmSimilarity: number | null; embeddingUpdatedAt: string | null; embeddingVectorDistance: number | null; id: string | null; @@ -1010,6 +988,8 @@ export interface PlatformProposal { decidedAt: string | null; dueAt: string | null; embedding: number[] | null; + embeddingModel: string | null; + embeddingModelTrgmSimilarity: number | null; embeddingUpdatedAt: string | null; embeddingVectorDistance: number | null; id: string | null; @@ -1160,6 +1140,8 @@ export interface PlatformRepository { description: string | null; descriptionTrgmSimilarity: number | null; embedding: number[] | null; + embeddingModel: string | null; + embeddingModelTrgmSimilarity: number | null; embeddingUpdatedAt: string | null; embeddingVectorDistance: number | null; externalId: string | null; @@ -1456,6 +1438,24 @@ export interface PlatformResourcesResolvedRequirement { secretsObjectName: string | null; slug: string | null; } +export interface PlatformServiceBinding { + createdAt: string | null; + createdBy: string | null; + createdByPrincipal: string | null; + id: string | null; + installationId: string | null; + installationScope: string | null; + kind: string | null; + lastError: string | null; + metadata: unknown | null; + namespaceId: string | null; + observedHost: string | null; + realm: string | null; + status: string | null; + updatedAt: string | null; + updatedBy: string | null; + updatedByPrincipal: string | null; +} export interface PlatformWebhookEndpoint { active: boolean | null; createdAt: string | null; @@ -1490,6 +1490,8 @@ export interface PlatformWebhookEvent { export interface ProposalComment { actorId: string | null; attachments: ConstructiveInternalTypeUpload[] | null; + attachmentsUrl: string[] | null; + attachmentsVersions: FileVersion[] | null; body: string | null; bodyTrgmSimilarity: number | null; createdAt: string | null; @@ -1497,6 +1499,8 @@ export interface ProposalComment { createdByPrincipal: string | null; databaseId: string | null; embedding: number[] | null; + embeddingModel: string | null; + embeddingModelTrgmSimilarity: number | null; embeddingUpdatedAt: string | null; embeddingVectorDistance: number | null; id: string | null; @@ -1526,6 +1530,8 @@ export interface Proposal { decidedAt: string | null; dueAt: string | null; embedding: number[] | null; + embeddingModel: string | null; + embeddingModelTrgmSimilarity: number | null; embeddingUpdatedAt: string | null; embeddingVectorDistance: number | null; id: string | null; @@ -1684,6 +1690,8 @@ export interface Repository { description: string | null; descriptionTrgmSimilarity: number | null; embedding: number[] | null; + embeddingModel: string | null; + embeddingModelTrgmSimilarity: number | null; embeddingUpdatedAt: string | null; embeddingVectorDistance: number | null; externalId: string | null; @@ -1991,6 +1999,25 @@ export interface ResourcesResolvedRequirement { secretsObjectName: string | null; slug: string | null; } +export interface ServiceBinding { + createdAt: string | null; + createdBy: string | null; + createdByPrincipal: string | null; + databaseId: string | null; + id: string | null; + installationId: string | null; + installationScope: string | null; + kind: string | null; + lastError: string | null; + metadata: unknown | null; + namespaceId: string | null; + observedHost: string | null; + realm: string | null; + status: string | null; + updatedAt: string | null; + updatedBy: string | null; + updatedByPrincipal: string | null; +} export interface WebhookEndpoint { active: boolean | null; createdAt: string | null; diff --git a/sdk/constructive-react/src/config/hooks/README.md b/sdk/constructive-react/src/config/hooks/README.md index 6f8bcb8d61..ab1043865f 100644 --- a/sdk/constructive-react/src/config/hooks/README.md +++ b/sdk/constructive-react/src/config/hooks/README.md @@ -34,7 +34,6 @@ function App() { |------|------|-------------| | `useAppInternalSecretsQuery` | Query | List all appInternalSecrets | | `useAppInternalSecretQuery` | Query | Get one appInternalSecret | -| `useCreateAppInternalSecretMutation` | Mutation | Create a appInternalSecret | | `useUpdateAppInternalSecretMutation` | Mutation | Update a appInternalSecret | | `useDeleteAppInternalSecretMutation` | Mutation | Delete a appInternalSecret | | `useConfigsQuery` | Query | Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed | @@ -49,7 +48,6 @@ function App() { | `useDeleteInternalConfigMutation` | Mutation | -level plaintext key-value config store; database-resident, never projected into Kubernetes | | `useInternalSecretsQuery` | Query | List all internalSecrets | | `useInternalSecretQuery` | Query | Get one internalSecret | -| `useCreateInternalSecretMutation` | Mutation | Create a internalSecret | | `useUpdateInternalSecretMutation` | Mutation | Update a internalSecret | | `useDeleteInternalSecretMutation` | Mutation | Delete a internalSecret | | `usePlatformConfigsQuery` | Query | Namespace-backed plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed | @@ -64,17 +62,14 @@ function App() { | `useDeletePlatformInternalConfigMutation` | Mutation | platform-level plaintext key-value config store; database-resident, never projected into Kubernetes | | `usePlatformInternalSecretsQuery` | Query | List all platformInternalSecrets | | `usePlatformInternalSecretQuery` | Query | Get one platformInternalSecret | -| `useCreatePlatformInternalSecretMutation` | Mutation | Create a platformInternalSecret | | `useUpdatePlatformInternalSecretMutation` | Mutation | Update a platformInternalSecret | | `useDeletePlatformInternalSecretMutation` | Mutation | Delete a platformInternalSecret | | `usePlatformSecretsQuery` | Query | List all platformSecrets | | `usePlatformSecretQuery` | Query | Get one platformSecret | -| `useCreatePlatformSecretMutation` | Mutation | Create a platformSecret | | `useUpdatePlatformSecretMutation` | Mutation | Update a platformSecret | | `useDeletePlatformSecretMutation` | Mutation | Delete a platformSecret | | `useSecretsQuery` | Query | List all secrets | | `useSecretQuery` | Query | Get one secret | -| `useCreateSecretMutation` | Mutation | Create a secret | | `useUpdateSecretMutation` | Mutation | Update a secret | | `useDeleteSecretMutation` | Mutation | Delete a secret | | `use_internalSecretsDelMutation` | Mutation | _internalSecretsDel | @@ -120,11 +115,6 @@ const { data: item } = useAppInternalSecretQuery({ selection: { fields: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }, }); -// Create a appInternalSecret -const { mutate: create } = useCreateAppInternalSecretMutation({ - selection: { fields: { id: true } }, -}); -create({ annotations: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }); ``` ### Config @@ -183,11 +173,6 @@ const { data: item } = useInternalSecretQuery({ selection: { fields: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }, }); -// Create a internalSecret -const { mutate: create } = useCreateInternalSecretMutation({ - selection: { fields: { id: true } }, -}); -create({ annotations: '', databaseId: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }); ``` ### PlatformConfig @@ -246,11 +231,6 @@ const { data: item } = usePlatformInternalSecretQuery({ selection: { fields: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }, }); -// Create a platformInternalSecret -const { mutate: create } = useCreatePlatformInternalSecretMutation({ - selection: { fields: { id: true } }, -}); -create({ annotations: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }); ``` ### PlatformSecret @@ -267,11 +247,6 @@ const { data: item } = usePlatformSecretQuery({ selection: { fields: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }, }); -// Create a platformSecret -const { mutate: create } = useCreatePlatformSecretMutation({ - selection: { fields: { id: true } }, -}); -create({ annotations: '', description: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', retiredAt: '', rotatedAt: '' }); ``` ### Secret @@ -288,11 +263,6 @@ const { data: item } = useSecretQuery({ selection: { fields: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }, }); -// Create a secret -const { mutate: create } = useCreateSecretMutation({ - selection: { fields: { id: true } }, -}); -create({ annotations: '', databaseId: '', description: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', retiredAt: '', rotatedAt: '' }); ``` ## Custom Operation Hooks diff --git a/sdk/constructive-react/src/config/hooks/mutations/index.ts b/sdk/constructive-react/src/config/hooks/mutations/index.ts index 0c0a3c37b5..f18108c520 100644 --- a/sdk/constructive-react/src/config/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/config/hooks/mutations/index.ts @@ -3,23 +3,18 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -export * from './useCreateAppInternalSecretMutation'; export * from './useCreateConfigMutation'; export * from './useUpdateConfigMutation'; export * from './useDeleteConfigMutation'; export * from './useCreateInternalConfigMutation'; export * from './useUpdateInternalConfigMutation'; export * from './useDeleteInternalConfigMutation'; -export * from './useCreateInternalSecretMutation'; export * from './useCreatePlatformConfigMutation'; export * from './useUpdatePlatformConfigMutation'; export * from './useDeletePlatformConfigMutation'; export * from './useCreatePlatformInternalConfigMutation'; export * from './useUpdatePlatformInternalConfigMutation'; export * from './useDeletePlatformInternalConfigMutation'; -export * from './useCreatePlatformInternalSecretMutation'; -export * from './useCreatePlatformSecretMutation'; -export * from './useCreateSecretMutation'; export * from './use_internalSecretsDelMutation'; export * from './use_internalSecretsRemoveArrayMutation'; export * from './use_internalSecretsRotateMutation'; diff --git a/sdk/constructive-react/src/config/hooks/mutations/useCreateAppInternalSecretMutation.ts b/sdk/constructive-react/src/config/hooks/mutations/useCreateAppInternalSecretMutation.ts deleted file mode 100644 index 86154c3485..0000000000 --- a/sdk/constructive-react/src/config/hooks/mutations/useCreateAppInternalSecretMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Create mutation hook for AppInternalSecret - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { appInternalSecretKeys } from '../query-keys'; -import { appInternalSecretMutationKeys } from '../mutation-keys'; -import type { - AppInternalSecretSelect, - AppInternalSecretWithRelations, - CreateAppInternalSecretInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AppInternalSecretSelect, - AppInternalSecretWithRelations, - CreateAppInternalSecretInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a AppInternalSecret - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAppInternalSecretMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAppInternalSecretMutation( - params: { - selection: { - fields: S & AppInternalSecretSelect; - } & HookStrictSelect, AppInternalSecretSelect>; - } & Omit< - UseMutationOptions< - { - createAppInternalSecret: { - appInternalSecret: InferSelectResult; - }; - }, - Error, - CreateAppInternalSecretInput['appInternalSecret'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAppInternalSecret: { - appInternalSecret: InferSelectResult; - }; - }, - Error, - CreateAppInternalSecretInput['appInternalSecret'] ->; -export function useCreateAppInternalSecretMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: appInternalSecretMutationKeys.create(), - mutationFn: (data: CreateAppInternalSecretInput['appInternalSecret']) => - getClient() - .appInternalSecret.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: appInternalSecretKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/config/hooks/mutations/useCreateInternalSecretMutation.ts b/sdk/constructive-react/src/config/hooks/mutations/useCreateInternalSecretMutation.ts deleted file mode 100644 index bb3267f50a..0000000000 --- a/sdk/constructive-react/src/config/hooks/mutations/useCreateInternalSecretMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Create mutation hook for InternalSecret - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { internalSecretKeys } from '../query-keys'; -import { internalSecretMutationKeys } from '../mutation-keys'; -import type { - InternalSecretSelect, - InternalSecretWithRelations, - CreateInternalSecretInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - InternalSecretSelect, - InternalSecretWithRelations, - CreateInternalSecretInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a InternalSecret - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateInternalSecretMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateInternalSecretMutation( - params: { - selection: { - fields: S & InternalSecretSelect; - } & HookStrictSelect, InternalSecretSelect>; - } & Omit< - UseMutationOptions< - { - createInternalSecret: { - internalSecret: InferSelectResult; - }; - }, - Error, - CreateInternalSecretInput['internalSecret'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createInternalSecret: { - internalSecret: InferSelectResult; - }; - }, - Error, - CreateInternalSecretInput['internalSecret'] ->; -export function useCreateInternalSecretMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: internalSecretMutationKeys.create(), - mutationFn: (data: CreateInternalSecretInput['internalSecret']) => - getClient() - .internalSecret.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: internalSecretKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/config/hooks/mutations/useCreatePlatformInternalSecretMutation.ts b/sdk/constructive-react/src/config/hooks/mutations/useCreatePlatformInternalSecretMutation.ts deleted file mode 100644 index d0230a9dba..0000000000 --- a/sdk/constructive-react/src/config/hooks/mutations/useCreatePlatformInternalSecretMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Create mutation hook for PlatformInternalSecret - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformInternalSecretKeys } from '../query-keys'; -import { platformInternalSecretMutationKeys } from '../mutation-keys'; -import type { - PlatformInternalSecretSelect, - PlatformInternalSecretWithRelations, - CreatePlatformInternalSecretInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PlatformInternalSecretSelect, - PlatformInternalSecretWithRelations, - CreatePlatformInternalSecretInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a PlatformInternalSecret - * - * @example - * ```tsx - * const { mutate, isPending } = useCreatePlatformInternalSecretMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreatePlatformInternalSecretMutation( - params: { - selection: { - fields: S & PlatformInternalSecretSelect; - } & HookStrictSelect, PlatformInternalSecretSelect>; - } & Omit< - UseMutationOptions< - { - createPlatformInternalSecret: { - platformInternalSecret: InferSelectResult; - }; - }, - Error, - CreatePlatformInternalSecretInput['platformInternalSecret'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createPlatformInternalSecret: { - platformInternalSecret: InferSelectResult; - }; - }, - Error, - CreatePlatformInternalSecretInput['platformInternalSecret'] ->; -export function useCreatePlatformInternalSecretMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: platformInternalSecretMutationKeys.create(), - mutationFn: (data: CreatePlatformInternalSecretInput['platformInternalSecret']) => - getClient() - .platformInternalSecret.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: platformInternalSecretKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/config/hooks/mutations/useCreatePlatformSecretMutation.ts b/sdk/constructive-react/src/config/hooks/mutations/useCreatePlatformSecretMutation.ts deleted file mode 100644 index 16940cffcc..0000000000 --- a/sdk/constructive-react/src/config/hooks/mutations/useCreatePlatformSecretMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Create mutation hook for PlatformSecret - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformSecretKeys } from '../query-keys'; -import { platformSecretMutationKeys } from '../mutation-keys'; -import type { - PlatformSecretSelect, - PlatformSecretWithRelations, - CreatePlatformSecretInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PlatformSecretSelect, - PlatformSecretWithRelations, - CreatePlatformSecretInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a PlatformSecret - * - * @example - * ```tsx - * const { mutate, isPending } = useCreatePlatformSecretMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreatePlatformSecretMutation( - params: { - selection: { - fields: S & PlatformSecretSelect; - } & HookStrictSelect, PlatformSecretSelect>; - } & Omit< - UseMutationOptions< - { - createPlatformSecret: { - platformSecret: InferSelectResult; - }; - }, - Error, - CreatePlatformSecretInput['platformSecret'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createPlatformSecret: { - platformSecret: InferSelectResult; - }; - }, - Error, - CreatePlatformSecretInput['platformSecret'] ->; -export function useCreatePlatformSecretMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: platformSecretMutationKeys.create(), - mutationFn: (data: CreatePlatformSecretInput['platformSecret']) => - getClient() - .platformSecret.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: platformSecretKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/config/hooks/mutations/useCreateSecretMutation.ts b/sdk/constructive-react/src/config/hooks/mutations/useCreateSecretMutation.ts deleted file mode 100644 index d80c9300fe..0000000000 --- a/sdk/constructive-react/src/config/hooks/mutations/useCreateSecretMutation.ts +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Create mutation hook for Secret - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { secretKeys } from '../query-keys'; -import { secretMutationKeys } from '../mutation-keys'; -import type { SecretSelect, SecretWithRelations, CreateSecretInput } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { SecretSelect, SecretWithRelations, CreateSecretInput } from '../../orm/input-types'; -/** - * Mutation hook for creating a Secret - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateSecretMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateSecretMutation( - params: { - selection: { - fields: S & SecretSelect; - } & HookStrictSelect, SecretSelect>; - } & Omit< - UseMutationOptions< - { - createSecret: { - secret: InferSelectResult; - }; - }, - Error, - CreateSecretInput['secret'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createSecret: { - secret: InferSelectResult; - }; - }, - Error, - CreateSecretInput['secret'] ->; -export function useCreateSecretMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: secretMutationKeys.create(), - mutationFn: (data: CreateSecretInput['secret']) => - getClient() - .secret.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: secretKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/config/orm/README.md b/sdk/constructive-react/src/config/orm/README.md index 8e9c44033d..b52d2f9776 100644 --- a/sdk/constructive-react/src/config/orm/README.md +++ b/sdk/constructive-react/src/config/orm/README.md @@ -21,15 +21,15 @@ const db = createClient({ | Model | Operations | |-------|------------| -| `appInternalSecret` | findMany, findOne, create, update, delete | +| `appInternalSecret` | findMany, findOne, update, delete | | `config` | findMany, findOne, create, update, delete | | `internalConfig` | findMany, findOne, create, update, delete | -| `internalSecret` | findMany, findOne, create, update, delete | +| `internalSecret` | findMany, findOne, update, delete | | `platformConfig` | findMany, findOne, create, update, delete | | `platformInternalConfig` | findMany, findOne, create, update, delete | -| `platformInternalSecret` | findMany, findOne, create, update, delete | -| `platformSecret` | findMany, findOne, create, update, delete | -| `secret` | findMany, findOne, create, update, delete | +| `platformInternalSecret` | findMany, findOne, update, delete | +| `platformSecret` | findMany, findOne, update, delete | +| `secret` | findMany, findOne, update, delete | ## Table Operations @@ -61,9 +61,6 @@ const items = await db.appInternalSecret.findMany({ select: { annotations: true, // Get one by id const item = await db.appInternalSecret.findOne({ id: '', select: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); -// Create -const created = await db.appInternalSecret.create({ data: { annotations: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute(); - // Update const updated = await db.appInternalSecret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -183,9 +180,6 @@ const items = await db.internalSecret.findMany({ select: { annotations: true, cr // Get one by id const item = await db.internalSecret.findOne({ id: '', select: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); -// Create -const created = await db.internalSecret.create({ data: { annotations: '', databaseId: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute(); - // Update const updated = await db.internalSecret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -302,9 +296,6 @@ const items = await db.platformInternalSecret.findMany({ select: { annotations: // Get one by id const item = await db.platformInternalSecret.findOne({ id: '', select: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); -// Create -const created = await db.platformInternalSecret.create({ data: { annotations: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformInternalSecret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -342,9 +333,6 @@ const items = await db.platformSecret.findMany({ select: { annotations: true, cr // Get one by id const item = await db.platformSecret.findOne({ id: '', select: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); -// Create -const created = await db.platformSecret.create({ data: { annotations: '', description: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformSecret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -383,9 +371,6 @@ const items = await db.secret.findMany({ select: { annotations: true, createdAt: // Get one by id const item = await db.secret.findOne({ id: '', select: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); -// Create -const created = await db.secret.create({ data: { annotations: '', databaseId: '', description: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute(); - // Update const updated = await db.secret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); diff --git a/sdk/constructive-react/src/config/orm/input-types.ts b/sdk/constructive-react/src/config/orm/input-types.ts index 317d86e5b9..bd666714a5 100644 --- a/sdk/constructive-react/src/config/orm/input-types.ts +++ b/sdk/constructive-react/src/config/orm/input-types.ts @@ -1095,18 +1095,6 @@ export type SecretOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; // ============ CRUD Input Types ============ -export interface CreateAppInternalSecretInput { - clientMutationId?: string; - appInternalSecret: { - annotations?: Record; - description?: string; - labels?: Record; - name?: string; - realm?: string; - retiredAt?: string; - rotatedAt?: string; - }; -} export interface AppInternalSecretPatch { annotations?: Record | null; description?: string | null; @@ -1199,19 +1187,6 @@ export interface DeleteInternalConfigInput { clientMutationId?: string; id: string; } -export interface CreateInternalSecretInput { - clientMutationId?: string; - internalSecret: { - annotations?: Record; - databaseId: string; - description?: string; - labels?: Record; - name?: string; - realm?: string; - retiredAt?: string; - rotatedAt?: string; - }; -} export interface InternalSecretPatch { annotations?: Record | null; databaseId?: string | null; @@ -1301,18 +1276,6 @@ export interface DeletePlatformInternalConfigInput { clientMutationId?: string; id: string; } -export interface CreatePlatformInternalSecretInput { - clientMutationId?: string; - platformInternalSecret: { - annotations?: Record; - description?: string; - labels?: Record; - name?: string; - realm?: string; - retiredAt?: string; - rotatedAt?: string; - }; -} export interface PlatformInternalSecretPatch { annotations?: Record | null; description?: string | null; @@ -1331,20 +1294,6 @@ export interface DeletePlatformInternalSecretInput { clientMutationId?: string; id: string; } -export interface CreatePlatformSecretInput { - clientMutationId?: string; - platformSecret: { - annotations?: Record; - description?: string; - labels?: Record; - name?: string; - namespaceId: string; - provider?: string; - realm?: string; - retiredAt?: string; - rotatedAt?: string; - }; -} export interface PlatformSecretPatch { annotations?: Record | null; description?: string | null; @@ -1365,21 +1314,6 @@ export interface DeletePlatformSecretInput { clientMutationId?: string; id: string; } -export interface CreateSecretInput { - clientMutationId?: string; - secret: { - annotations?: Record; - databaseId: string; - description?: string; - labels?: Record; - name?: string; - namespaceId: string; - provider?: string; - realm?: string; - retiredAt?: string; - rotatedAt?: string; - }; -} export interface SecretPatch { annotations?: Record | null; databaseId?: string | null; diff --git a/sdk/constructive-react/src/config/orm/models/appInternalSecret.ts b/sdk/constructive-react/src/config/orm/models/appInternalSecret.ts index 6efc1ad009..d876c61ee7 100644 --- a/sdk/constructive-react/src/config/orm/models/appInternalSecret.ts +++ b/sdk/constructive-react/src/config/orm/models/appInternalSecret.ts @@ -29,7 +29,6 @@ import type { AppInternalSecretSelect, AppInternalSecretFilter, AppInternalSecretOrderBy, - CreateAppInternalSecretInput, UpdateAppInternalSecretInput, AppInternalSecretPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class AppInternalSecretModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppInternalSecret: { - appInternalSecret: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppInternalSecret', - 'createAppInternalSecret', - 'appInternalSecret', - args.select, - args.data, - 'CreateAppInternalSecretInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppInternalSecret', - fieldName: 'createAppInternalSecret', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/config/orm/models/internalSecret.ts b/sdk/constructive-react/src/config/orm/models/internalSecret.ts index daeef23c68..443924fe70 100644 --- a/sdk/constructive-react/src/config/orm/models/internalSecret.ts +++ b/sdk/constructive-react/src/config/orm/models/internalSecret.ts @@ -29,7 +29,6 @@ import type { InternalSecretSelect, InternalSecretFilter, InternalSecretOrderBy, - CreateInternalSecretInput, UpdateInternalSecretInput, InternalSecretPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class InternalSecretModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createInternalSecret: { - internalSecret: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'InternalSecret', - 'createInternalSecret', - 'internalSecret', - args.select, - args.data, - 'CreateInternalSecretInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'InternalSecret', - fieldName: 'createInternalSecret', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/config/orm/models/platformInternalSecret.ts b/sdk/constructive-react/src/config/orm/models/platformInternalSecret.ts index 35e0c7b538..0f246265ec 100644 --- a/sdk/constructive-react/src/config/orm/models/platformInternalSecret.ts +++ b/sdk/constructive-react/src/config/orm/models/platformInternalSecret.ts @@ -29,7 +29,6 @@ import type { PlatformInternalSecretSelect, PlatformInternalSecretFilter, PlatformInternalSecretOrderBy, - CreatePlatformInternalSecretInput, UpdatePlatformInternalSecretInput, PlatformInternalSecretPatch, } from '../input-types'; @@ -146,31 +145,4 @@ export class PlatformInternalSecretModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformInternalSecret: { - platformInternalSecret: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformInternalSecret', - 'createPlatformInternalSecret', - 'platformInternalSecret', - args.select, - args.data, - 'CreatePlatformInternalSecretInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformInternalSecret', - fieldName: 'createPlatformInternalSecret', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/config/orm/models/platformSecret.ts b/sdk/constructive-react/src/config/orm/models/platformSecret.ts index 03c0e23540..4c51afe005 100644 --- a/sdk/constructive-react/src/config/orm/models/platformSecret.ts +++ b/sdk/constructive-react/src/config/orm/models/platformSecret.ts @@ -29,7 +29,6 @@ import type { PlatformSecretSelect, PlatformSecretFilter, PlatformSecretOrderBy, - CreatePlatformSecretInput, UpdatePlatformSecretInput, PlatformSecretPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class PlatformSecretModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformSecret: { - platformSecret: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformSecret', - 'createPlatformSecret', - 'platformSecret', - args.select, - args.data, - 'CreatePlatformSecretInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformSecret', - fieldName: 'createPlatformSecret', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/config/orm/models/secret.ts b/sdk/constructive-react/src/config/orm/models/secret.ts index 37571240d8..580d275fdb 100644 --- a/sdk/constructive-react/src/config/orm/models/secret.ts +++ b/sdk/constructive-react/src/config/orm/models/secret.ts @@ -29,7 +29,6 @@ import type { SecretSelect, SecretFilter, SecretOrderBy, - CreateSecretInput, UpdateSecretInput, SecretPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class SecretModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createSecret: { - secret: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'Secret', - 'createSecret', - 'secret', - args.select, - args.data, - 'CreateSecretInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Secret', - fieldName: 'createSecret', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/config/schema-types.ts b/sdk/constructive-react/src/config/schema-types.ts index fae75472c7..275a3697d8 100644 --- a/sdk/constructive-react/src/config/schema-types.ts +++ b/sdk/constructive-react/src/config/schema-types.ts @@ -1224,21 +1224,27 @@ export interface UpdatePlatformInternalConfigPayload { /** Information about a database table */ export interface MetaTable { constraints: MetaConstraints; + /** Description written for this table, or null */ + description?: string | null; fields: MetaField[]; foreignKeyConstraints: MetaForeignKeyConstraint[]; - /** i18n metadata (null if no @i18n tag) */ + /** i18n metadata (null if the table is not translatable) */ i18n?: MetaI18n | null; indexes: MetaIndex[]; inflection: MetaInflection; + /** Whether this table only links rows of two other tables; the link appears in their manyToMany relations */ + isJunction: boolean; + /** 'table' when rows are stored in this table, 'view' when they come from a view of other tables */ + kind: string; /** Final GraphQL output type name */ name: string; primaryKeyConstraints: MetaPrimaryKeyConstraint[]; query: MetaQuery; - /** Realtime metadata (null if no @realtime tag) */ + /** Realtime metadata (null if the table has no change subscriptions) */ realtime?: MetaRealtime | null; relations: MetaRelations; schemaName: string; - /** Provisioning scope metadata (null if no @scope tag) */ + /** Provisioning scope metadata (null if the table has no scope) */ scope?: MetaScope | null; /** Search metadata (null if no search configured) */ search?: MetaSearch | null; @@ -1321,15 +1327,27 @@ export interface MetaConstraints { } /** Information about a table field/column */ export interface MetaField { + /** Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. */ + allowedValues?: string[] | null; /** PostgreSQL column name */ columnName: string; description?: string | null; /** Enum metadata if this field has an enum type */ enumValues?: MetaEnum | null; + /** Set when the field holds files; null otherwise. Set on a table's own fields only. */ + file?: MetaFileField | null; hasDefault: boolean; + /** Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. */ + isComputed?: boolean | null; isForeignKey: boolean; isNotNull: boolean; isPrimaryKey: boolean; + /** Whether a create must provide this field. Set on a table's own fields only. */ + isRequiredOnCreate?: boolean | null; + /** Whether a create may set this field. Set on a table's own fields only. */ + isWritableOnCreate?: boolean | null; + /** Whether an update may change this field. Set on a table's own fields only. */ + isWritableOnUpdate?: boolean | null; /** Final GraphQL field name */ name: string; type: MetaType; @@ -1343,7 +1361,7 @@ export interface MetaForeignKeyConstraint { referencedFields: string[]; referencedTable: string; } -/** i18n metadata for a table with @i18n tag */ +/** i18n metadata for a translatable table */ export interface MetaI18n { /** Fields that are translatable */ translatableFields: MetaI18nField[]; @@ -1358,7 +1376,7 @@ export interface MetaIndex { isUnique: boolean; name: string; } -/** Table inflection names */ +/** Type and field names generated for this table */ export interface MetaInflection { allRows: string; conditionType: string; @@ -1386,7 +1404,7 @@ export interface MetaQuery { one?: string | null; update?: string | null; } -/** Realtime metadata for a table with @realtime tag */ +/** Realtime metadata for a table with change subscriptions */ export interface MetaRealtime { /** The generated subscription field name (e.g. onPostChanged) */ subscriptionFieldName: string; @@ -1401,13 +1419,13 @@ export interface MetaRelations { } /** Provisioning scope metadata for a table */ export interface MetaScope { - /** SQL name of the entity table for entity scopes, else null */ + /** Name of the entity table for entity scopes, else null */ entityTable?: string | null; - /** Inflected scope key column (e.g. databaseId, orgId), null for global tiers */ + /** Field name of the scope key (e.g. databaseId, orgId), null for global tiers */ keyColumn?: string | null; /** Provisioning scope: 'platform', 'app', 'database', or an entity scope (e.g. 'org') */ scope: string; - /** Provenance of the scope metadata (always 'smartTag') */ + /** Where this scope metadata comes from */ source: string; /** Coarse bucket: 'global', 'database', or 'entity' */ tier: string; @@ -1425,17 +1443,17 @@ export interface MetaSearch { } /** Storage metadata for a table */ export interface MetaStorage { - /** GraphQL type name of the plane's buckets table */ + /** GraphQL type name of the paired buckets table */ bucketsType: string; /** Computed download-URL field on the files type; null on the buckets side */ downloadUrlField?: string | null; - /** GraphQL type name of the plane's files table */ + /** GraphQL type name of the paired files table */ filesType: string; /** Whether this table is a storage buckets table */ isBucketsTable: boolean; /** Whether this table is a storage files table */ isFilesTable: boolean; - /** The plane's GraphQL upload surface */ + /** Upload mutations and types for this storage */ upload: MetaStorageUpload; } /** Information about a unique constraint */ @@ -1450,6 +1468,15 @@ export interface MetaEnum { /** Allowed values for this enum */ values: string[]; } +/** How a field holds files */ +export interface MetaFileField { + /** GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise */ + filesType?: string | null; + /** Whether the field holds a list of files */ + isMultiple: boolean; + /** image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. */ + kind: string; +} /** Information about a PostgreSQL type */ export interface MetaType { /** Scalar serialization contract (null for plain scalars) */ @@ -1458,7 +1485,13 @@ export interface MetaType { hasDefault?: boolean | null; isArray: boolean; isNotNull?: boolean | null; + /** Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. */ + maxLength?: number | null; pgType: string; + /** Most significant digits a decimal number may hold. Null when unbounded. */ + precision?: number | null; + /** Digits a decimal number keeps after the decimal point. Null when unbounded. */ + scale?: number | null; subtype?: string | null; } /** Reference to a related table */ @@ -1477,6 +1510,8 @@ export interface MetaBelongsToRelation { fieldName?: string | null; isUnique: boolean; keys: MetaField[]; + /** Fields on the referenced table that keys point at, in the same order as keys */ + refKeys: MetaField[]; references: MetaRefTable; type?: string | null; } @@ -1486,6 +1521,8 @@ export interface MetaHasRelation { isUnique: boolean; keys: MetaField[]; referencedBy: MetaRefTable; + /** Fields on the related table that point at this table, in the same order as keys */ + remoteKeys: MetaField[]; type?: string | null; } /** A many-to-many relation via junction table */ @@ -1508,7 +1545,7 @@ export interface MetaSearchColumn { /** Column name (camelCase) */ name: string; } -/** Per-table search configuration from @searchConfig smart tag */ +/** Per-table search configuration */ export interface MetaSearchConfig { /** Exponential decay factor per day */ boostRecencyDecay?: number | null; @@ -1519,7 +1556,7 @@ export interface MetaSearchConfig { /** JSON-encoded per-adapter score weights */ weights?: string | null; } -/** The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from */ +/** The upload mutations and types for a storage table pair */ export interface MetaStorageUpload { /** Per-file input type inside the bulk input */ bulkFileInputType: string; @@ -1537,14 +1574,14 @@ export interface MetaStorageUpload { mutation: string; /** Payload type of the single upload mutation */ payloadType: string; - /** Whether the upload input requires ownerId (entity-keyed plane) */ + /** Whether the upload input requires ownerId */ requiresOwnerId: boolean; } -/** How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. */ +/** How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. */ export interface MetaScalarEncoding { /** For 'vector': declared length, else null. */ dimensions?: number | null; - /** For 'ltree': values are dot-separated path strings. */ + /** For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). */ dotPath?: boolean | null; /** For 'vector': element scalar (e.g. 'float'). */ elementType?: string | null; diff --git a/sdk/constructive-react/src/infra/hooks/README.md b/sdk/constructive-react/src/infra/hooks/README.md index 6ed92a4b0f..6a055ea62e 100644 --- a/sdk/constructive-react/src/infra/hooks/README.md +++ b/sdk/constructive-react/src/infra/hooks/README.md @@ -58,7 +58,6 @@ function App() { | `useUpdatePlatformInfraCommitMutation` | Mutation | Commit history — each commit snapshots a tree root for a store | | `useDeletePlatformInfraCommitMutation` | Mutation | Commit history — each commit snapshots a tree root for a store | | `usePlatformInfraGetAllTreeNodesQuery` | Query | List all platformInfraGetAllTreeNodes | -| `useCreatePlatformInfraGetAllTreeNodesRecordMutation` | Mutation | Create a platformInfraGetAllTreeNodesRecord | | `usePlatformInfraObjectsQuery` | Query | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | | `usePlatformInfraObjectQuery` | Query | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | | `useCreatePlatformInfraObjectMutation` | Mutation | Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children | @@ -212,11 +211,6 @@ const { data, isLoading } = usePlatformInfraGetAllTreeNodesQuery({ selection: { fields: { data: true, path: true } }, }); -// Create a platformInfraGetAllTreeNodesRecord -const { mutate: create } = useCreatePlatformInfraGetAllTreeNodesRecordMutation({ - selection: { fields: { id: true } }, -}); -create({ data: '', path: '' }); ``` ### PlatformInfraObject diff --git a/sdk/constructive-react/src/infra/hooks/mutations/index.ts b/sdk/constructive-react/src/infra/hooks/mutations/index.ts index b08fd53122..a9cc1fd675 100644 --- a/sdk/constructive-react/src/infra/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/infra/hooks/mutations/index.ts @@ -18,7 +18,6 @@ export * from './useDeleteNamespaceEventMutation'; export * from './useCreatePlatformInfraCommitMutation'; export * from './useUpdatePlatformInfraCommitMutation'; export * from './useDeletePlatformInfraCommitMutation'; -export * from './useCreatePlatformInfraGetAllTreeNodesRecordMutation'; export * from './useCreatePlatformInfraObjectMutation'; export * from './useUpdatePlatformInfraObjectMutation'; export * from './useDeletePlatformInfraObjectMutation'; diff --git a/sdk/constructive-react/src/infra/hooks/mutations/useCreatePlatformInfraGetAllTreeNodesRecordMutation.ts b/sdk/constructive-react/src/infra/hooks/mutations/useCreatePlatformInfraGetAllTreeNodesRecordMutation.ts deleted file mode 100644 index 13b05cd0de..0000000000 --- a/sdk/constructive-react/src/infra/hooks/mutations/useCreatePlatformInfraGetAllTreeNodesRecordMutation.ts +++ /dev/null @@ -1,105 +0,0 @@ -/** - * Create mutation hook for PlatformInfraGetAllTreeNodesRecord - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformInfraGetAllTreeNodesRecordKeys } from '../query-keys'; -import { platformInfraGetAllTreeNodesRecordMutationKeys } from '../mutation-keys'; -import type { - PlatformInfraGetAllTreeNodesRecordSelect, - PlatformInfraGetAllTreeNodesRecordWithRelations, - CreatePlatformInfraGetAllTreeNodesRecordInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PlatformInfraGetAllTreeNodesRecordSelect, - PlatformInfraGetAllTreeNodesRecordWithRelations, - CreatePlatformInfraGetAllTreeNodesRecordInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a PlatformInfraGetAllTreeNodesRecord - * - * @example - * ```tsx - * const { mutate, isPending } = useCreatePlatformInfraGetAllTreeNodesRecordMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreatePlatformInfraGetAllTreeNodesRecordMutation< - S extends PlatformInfraGetAllTreeNodesRecordSelect, ->( - params: { - selection: { - fields: S & PlatformInfraGetAllTreeNodesRecordSelect; - } & HookStrictSelect, PlatformInfraGetAllTreeNodesRecordSelect>; - } & Omit< - UseMutationOptions< - { - createPlatformInfraGetAllTreeNodesRecord: { - platformInfraGetAllTreeNodesRecord: InferSelectResult< - PlatformInfraGetAllTreeNodesRecordWithRelations, - S - >; - }; - }, - Error, - CreatePlatformInfraGetAllTreeNodesRecordInput['platformInfraGetAllTreeNodesRecord'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createPlatformInfraGetAllTreeNodesRecord: { - platformInfraGetAllTreeNodesRecord: InferSelectResult< - PlatformInfraGetAllTreeNodesRecordWithRelations, - S - >; - }; - }, - Error, - CreatePlatformInfraGetAllTreeNodesRecordInput['platformInfraGetAllTreeNodesRecord'] ->; -export function useCreatePlatformInfraGetAllTreeNodesRecordMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - CreatePlatformInfraGetAllTreeNodesRecordInput['platformInfraGetAllTreeNodesRecord'] - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: platformInfraGetAllTreeNodesRecordMutationKeys.create(), - mutationFn: ( - data: CreatePlatformInfraGetAllTreeNodesRecordInput['platformInfraGetAllTreeNodesRecord'] - ) => - getClient() - .platformInfraGetAllTreeNodesRecord.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: platformInfraGetAllTreeNodesRecordKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/infra/orm/README.md b/sdk/constructive-react/src/infra/orm/README.md index 63c0b0f3e5..82604daf03 100644 --- a/sdk/constructive-react/src/infra/orm/README.md +++ b/sdk/constructive-react/src/infra/orm/README.md @@ -26,7 +26,7 @@ const db = createClient({ | `namespace` | findMany, findOne, create, update, delete | | `namespaceEvent` | findMany, findOne, create, update, delete | | `platformInfraCommit` | findMany, findOne, create, update, delete | -| `platformInfraGetAllTreeNodesRecord` | findMany, findOne, create, update, delete | +| `platformInfraGetAllTreeNodesRecord` | findMany, findOne, update, delete | | `platformInfraObject` | findMany, findOne, create, update, delete | | `platformInfraRef` | findMany, findOne, create, update, delete | | `platformInfraStore` | findMany, findOne, create, update, delete | @@ -248,9 +248,6 @@ const items = await db.platformInfraGetAllTreeNodesRecord.findMany({ select: { d // Get one by id const item = await db.platformInfraGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); -// Create -const created = await db.platformInfraGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformInfraGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); diff --git a/sdk/constructive-react/src/infra/orm/input-types.ts b/sdk/constructive-react/src/infra/orm/input-types.ts index 10a6c604ec..498b6592bf 100644 --- a/sdk/constructive-react/src/infra/orm/input-types.ts +++ b/sdk/constructive-react/src/infra/orm/input-types.ts @@ -1245,13 +1245,6 @@ export interface DeletePlatformInfraCommitInput { clientMutationId?: string; id: string; } -export interface CreatePlatformInfraGetAllTreeNodesRecordInput { - clientMutationId?: string; - platformInfraGetAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; -} export interface PlatformInfraGetAllTreeNodesRecordPatch { data?: Record | null; path?: string[] | null; diff --git a/sdk/constructive-react/src/infra/orm/models/platformInfraGetAllTreeNodesRecord.ts b/sdk/constructive-react/src/infra/orm/models/platformInfraGetAllTreeNodesRecord.ts index e0e0a2aeaa..522c666bd3 100644 --- a/sdk/constructive-react/src/infra/orm/models/platformInfraGetAllTreeNodesRecord.ts +++ b/sdk/constructive-react/src/infra/orm/models/platformInfraGetAllTreeNodesRecord.ts @@ -29,7 +29,6 @@ import type { PlatformInfraGetAllTreeNodesRecordSelect, PlatformInfraGetAllTreeNodesRecordFilter, PlatformInfraGetAllTreeNodesRecordsOrderBy, - CreatePlatformInfraGetAllTreeNodesRecordInput, UpdatePlatformInfraGetAllTreeNodesRecordInput, PlatformInfraGetAllTreeNodesRecordPatch, } from '../input-types'; @@ -117,37 +116,4 @@ export class PlatformInfraGetAllTreeNodesRecordModel { }), }); } - create( - args: CreateArgs< - S, - CreatePlatformInfraGetAllTreeNodesRecordInput['platformInfraGetAllTreeNodesRecord'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformInfraGetAllTreeNodesRecord: { - platformInfraGetAllTreeNodesRecord: InferSelectResult< - PlatformInfraGetAllTreeNodesRecordWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformInfraGetAllTreeNodesRecord', - 'createPlatformInfraGetAllTreeNodesRecord', - 'platformInfraGetAllTreeNodesRecord', - args.select, - args.data, - 'CreatePlatformInfraGetAllTreeNodesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformInfraGetAllTreeNodesRecord', - fieldName: 'createPlatformInfraGetAllTreeNodesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/infra/schema-types.ts b/sdk/constructive-react/src/infra/schema-types.ts index 14d6bf4ac2..2631abb5a8 100644 --- a/sdk/constructive-react/src/infra/schema-types.ts +++ b/sdk/constructive-react/src/infra/schema-types.ts @@ -1476,21 +1476,27 @@ export interface UpdatePlatformNamespaceEventPayload { /** Information about a database table */ export interface MetaTable { constraints: MetaConstraints; + /** Description written for this table, or null */ + description?: string | null; fields: MetaField[]; foreignKeyConstraints: MetaForeignKeyConstraint[]; - /** i18n metadata (null if no @i18n tag) */ + /** i18n metadata (null if the table is not translatable) */ i18n?: MetaI18n | null; indexes: MetaIndex[]; inflection: MetaInflection; + /** Whether this table only links rows of two other tables; the link appears in their manyToMany relations */ + isJunction: boolean; + /** 'table' when rows are stored in this table, 'view' when they come from a view of other tables */ + kind: string; /** Final GraphQL output type name */ name: string; primaryKeyConstraints: MetaPrimaryKeyConstraint[]; query: MetaQuery; - /** Realtime metadata (null if no @realtime tag) */ + /** Realtime metadata (null if the table has no change subscriptions) */ realtime?: MetaRealtime | null; relations: MetaRelations; schemaName: string; - /** Provisioning scope metadata (null if no @scope tag) */ + /** Provisioning scope metadata (null if the table has no scope) */ scope?: MetaScope | null; /** Search metadata (null if no search configured) */ search?: MetaSearch | null; @@ -1585,15 +1591,27 @@ export interface MetaConstraints { } /** Information about a table field/column */ export interface MetaField { + /** Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. */ + allowedValues?: string[] | null; /** PostgreSQL column name */ columnName: string; description?: string | null; /** Enum metadata if this field has an enum type */ enumValues?: MetaEnum | null; + /** Set when the field holds files; null otherwise. Set on a table's own fields only. */ + file?: MetaFileField | null; hasDefault: boolean; + /** Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. */ + isComputed?: boolean | null; isForeignKey: boolean; isNotNull: boolean; isPrimaryKey: boolean; + /** Whether a create must provide this field. Set on a table's own fields only. */ + isRequiredOnCreate?: boolean | null; + /** Whether a create may set this field. Set on a table's own fields only. */ + isWritableOnCreate?: boolean | null; + /** Whether an update may change this field. Set on a table's own fields only. */ + isWritableOnUpdate?: boolean | null; /** Final GraphQL field name */ name: string; type: MetaType; @@ -1607,7 +1625,7 @@ export interface MetaForeignKeyConstraint { referencedFields: string[]; referencedTable: string; } -/** i18n metadata for a table with @i18n tag */ +/** i18n metadata for a translatable table */ export interface MetaI18n { /** Fields that are translatable */ translatableFields: MetaI18nField[]; @@ -1622,7 +1640,7 @@ export interface MetaIndex { isUnique: boolean; name: string; } -/** Table inflection names */ +/** Type and field names generated for this table */ export interface MetaInflection { allRows: string; conditionType: string; @@ -1650,7 +1668,7 @@ export interface MetaQuery { one?: string | null; update?: string | null; } -/** Realtime metadata for a table with @realtime tag */ +/** Realtime metadata for a table with change subscriptions */ export interface MetaRealtime { /** The generated subscription field name (e.g. onPostChanged) */ subscriptionFieldName: string; @@ -1665,13 +1683,13 @@ export interface MetaRelations { } /** Provisioning scope metadata for a table */ export interface MetaScope { - /** SQL name of the entity table for entity scopes, else null */ + /** Name of the entity table for entity scopes, else null */ entityTable?: string | null; - /** Inflected scope key column (e.g. databaseId, orgId), null for global tiers */ + /** Field name of the scope key (e.g. databaseId, orgId), null for global tiers */ keyColumn?: string | null; /** Provisioning scope: 'platform', 'app', 'database', or an entity scope (e.g. 'org') */ scope: string; - /** Provenance of the scope metadata (always 'smartTag') */ + /** Where this scope metadata comes from */ source: string; /** Coarse bucket: 'global', 'database', or 'entity' */ tier: string; @@ -1689,17 +1707,17 @@ export interface MetaSearch { } /** Storage metadata for a table */ export interface MetaStorage { - /** GraphQL type name of the plane's buckets table */ + /** GraphQL type name of the paired buckets table */ bucketsType: string; /** Computed download-URL field on the files type; null on the buckets side */ downloadUrlField?: string | null; - /** GraphQL type name of the plane's files table */ + /** GraphQL type name of the paired files table */ filesType: string; /** Whether this table is a storage buckets table */ isBucketsTable: boolean; /** Whether this table is a storage files table */ isFilesTable: boolean; - /** The plane's GraphQL upload surface */ + /** Upload mutations and types for this storage */ upload: MetaStorageUpload; } /** Information about a unique constraint */ @@ -1714,6 +1732,15 @@ export interface MetaEnum { /** Allowed values for this enum */ values: string[]; } +/** How a field holds files */ +export interface MetaFileField { + /** GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise */ + filesType?: string | null; + /** Whether the field holds a list of files */ + isMultiple: boolean; + /** image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. */ + kind: string; +} /** Information about a PostgreSQL type */ export interface MetaType { /** Scalar serialization contract (null for plain scalars) */ @@ -1722,7 +1749,13 @@ export interface MetaType { hasDefault?: boolean | null; isArray: boolean; isNotNull?: boolean | null; + /** Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. */ + maxLength?: number | null; pgType: string; + /** Most significant digits a decimal number may hold. Null when unbounded. */ + precision?: number | null; + /** Digits a decimal number keeps after the decimal point. Null when unbounded. */ + scale?: number | null; subtype?: string | null; } /** Reference to a related table */ @@ -1741,6 +1774,8 @@ export interface MetaBelongsToRelation { fieldName?: string | null; isUnique: boolean; keys: MetaField[]; + /** Fields on the referenced table that keys point at, in the same order as keys */ + refKeys: MetaField[]; references: MetaRefTable; type?: string | null; } @@ -1750,6 +1785,8 @@ export interface MetaHasRelation { isUnique: boolean; keys: MetaField[]; referencedBy: MetaRefTable; + /** Fields on the related table that point at this table, in the same order as keys */ + remoteKeys: MetaField[]; type?: string | null; } /** A many-to-many relation via junction table */ @@ -1772,7 +1809,7 @@ export interface MetaSearchColumn { /** Column name (camelCase) */ name: string; } -/** Per-table search configuration from @searchConfig smart tag */ +/** Per-table search configuration */ export interface MetaSearchConfig { /** Exponential decay factor per day */ boostRecencyDecay?: number | null; @@ -1783,7 +1820,7 @@ export interface MetaSearchConfig { /** JSON-encoded per-adapter score weights */ weights?: string | null; } -/** The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from */ +/** The upload mutations and types for a storage table pair */ export interface MetaStorageUpload { /** Per-file input type inside the bulk input */ bulkFileInputType: string; @@ -1801,14 +1838,14 @@ export interface MetaStorageUpload { mutation: string; /** Payload type of the single upload mutation */ payloadType: string; - /** Whether the upload input requires ownerId (entity-keyed plane) */ + /** Whether the upload input requires ownerId */ requiresOwnerId: boolean; } -/** How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. */ +/** How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. */ export interface MetaScalarEncoding { /** For 'vector': declared length, else null. */ dimensions?: number | null; - /** For 'ltree': values are dot-separated path strings. */ + /** For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). */ dotPath?: boolean | null; /** For 'vector': element scalar (e.g. 'float'). */ elementType?: string | null; diff --git a/sdk/constructive-react/src/modules/hooks/README.md b/sdk/constructive-react/src/modules/hooks/README.md index cfe0357e8c..1d6bc20e89 100644 --- a/sdk/constructive-react/src/modules/hooks/README.md +++ b/sdk/constructive-react/src/modules/hooks/README.md @@ -62,11 +62,11 @@ function App() { | `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. | -| `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. | +| `useBlueprintConstructionsQuery` | Query | Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. 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, including failed ones. | +| `useBlueprintConstructionQuery` | Query | Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. 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, including failed ones. | +| `useCreateBlueprintConstructionMutation` | Mutation | Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. 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, including failed ones. | +| `useUpdateBlueprintConstructionMutation` | Mutation | Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. 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, including failed ones. | +| `useDeleteBlueprintConstructionMutation` | Mutation | Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. 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, including failed ones. | | `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). | @@ -637,7 +637,7 @@ function App() { | `useCreateWebhookModuleMutation` | Mutation | Create a webhookModule | | `useUpdateWebhookModuleMutation` | Mutation | Update a webhookModule | | `useDeleteWebhookModuleMutation` | Mutation | Delete a webhookModule | -| `useConstructBlueprintMutation` | Mutation | Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). A table entry either names its table (table_name plus optional schema_name) or references one an installed module generated ("module": {"type": "agent", "scope": "org", "table": "message"}), which resolves through the module row's recorded table ids and raises when it matches nothing instead of creating an empty table. After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID. A failure raises its coded error to the caller and rolls back the whole construction, including the construction record. | +| `useConstructBlueprintMutation` | Mutation | Requests a build of a blueprint: snapshots its definition into a pending blueprint_construction row, enqueues the blueprint:construct job that runs metaschema_private.construct_blueprint_run on it, and returns the construction id immediately. Poll the row: pending -> constructing -> constructed (table_map populated) or failed (error holds the coded error). schema_id is the default schema for tables without an explicit schema_name. | | `useCopyTemplateToBlueprintMutation` | Mutation | Creates a new blueprint by copying a template definition. Checks visibility: owners can always copy their own templates, others require public visibility. Increments the template copy_count. Returns the new blueprint ID. | | `useProvisionBucketMutation` | Mutation | Reconcile an S3 bucket for a logical bucket in the database. Records the request on the bucket row via RLS; the bucket's job @@ -779,20 +779,20 @@ create({ databaseId: '', definition: '', definitionHash: '', d ```typescript // List all blueprintConstructions const { data, isLoading } = useBlueprintConstructionsQuery({ - selection: { fields: { blueprintId: true, constructedAt: true, constructedDefinition: true, createdAt: true, databaseId: true, id: true, schemaId: true, status: true, tableMap: true, updatedAt: true } }, + selection: { fields: { blueprintId: true, constructedAt: true, constructedDefinition: true, createdAt: true, databaseId: true, error: true, id: true, schemaId: true, status: true, tableMap: true, updatedAt: true } }, }); // Get one blueprintConstruction const { data: item } = useBlueprintConstructionQuery({ id: '', - selection: { fields: { blueprintId: true, constructedAt: true, constructedDefinition: true, createdAt: true, databaseId: true, id: true, schemaId: true, status: true, tableMap: true, updatedAt: true } }, + selection: { fields: { blueprintId: true, constructedAt: true, constructedDefinition: true, createdAt: true, databaseId: true, error: true, id: true, schemaId: true, status: true, tableMap: true, updatedAt: true } }, }); // Create a blueprintConstruction const { mutate: create } = useCreateBlueprintConstructionMutation({ selection: { fields: { id: true } }, }); -create({ blueprintId: '', constructedAt: '', constructedDefinition: '', databaseId: '', schemaId: '', status: '', tableMap: '' }); +create({ blueprintId: '', constructedAt: '', constructedDefinition: '', databaseId: '', error: '', schemaId: '', status: '', tableMap: '' }); ``` ### BlueprintTemplate @@ -1115,20 +1115,20 @@ create({ apiName: '', databaseId: '', dbPresetsTableId: '', ```typescript // List all dbUsageModules const { data, isLoading } = useDbUsageModulesQuery({ - selection: { fields: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }, + selection: { fields: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, readDbQueryStatsUsagePeriodFunction: true, readDbTableStatsUsagePeriodFunction: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }, }); // Get one dbUsageModule const { data: item } = useDbUsageModuleQuery({ id: '', - selection: { fields: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }, + selection: { fields: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, readDbQueryStatsUsagePeriodFunction: true, readDbTableStatsUsagePeriodFunction: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }, }); // Create a dbUsageModule const { mutate: create } = useCreateDbUsageModuleMutation({ selection: { fields: { id: true } }, }); -create({ apiName: '', collectDbQueryStatsFunction: '', collectDbTableStatsFunction: '', databaseId: '', defaultCapabilities: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsSummaryTableId: '', queryStatsSummaryTableName: '', retention: '', rollupDbQueryStatsUsageSummaryFunction: '', rollupDbTableStatsUsageSummaryFunction: '', schemaId: '', scope: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsSummaryTableId: '', tableStatsSummaryTableName: '' }); +create({ apiName: '', collectDbQueryStatsFunction: '', collectDbTableStatsFunction: '', databaseId: '', defaultCapabilities: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsSummaryTableId: '', queryStatsSummaryTableName: '', readDbQueryStatsUsagePeriodFunction: '', readDbTableStatsUsagePeriodFunction: '', retention: '', rollupDbQueryStatsUsageSummaryFunction: '', rollupDbTableStatsUsageSummaryFunction: '', schemaId: '', scope: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsSummaryTableId: '', tableStatsSummaryTableName: '' }); ``` ### DefaultIdsModule @@ -1199,20 +1199,20 @@ create({ databaseId: '', deviceSettingsTableId: '', deviceSettingsTa ```typescript // List all domainModules const { data, isLoading } = useDomainModulesQuery({ - selection: { fields: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }, + selection: { fields: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, defaultReservedSubdomains: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, reservedSubdomainsTableId: true, reservedSubdomainsTableName: true, schemaId: true, scope: true, sweepUnverifiedDomainsFunction: true } }, }); // Get one domainModule const { data: item } = useDomainModuleQuery({ id: '', - selection: { fields: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }, + selection: { fields: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, defaultReservedSubdomains: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, reservedSubdomainsTableId: true, reservedSubdomainsTableName: true, schemaId: true, scope: true, sweepUnverifiedDomainsFunction: true } }, }); // Create a domainModule const { mutate: create } = useCreateDomainModuleMutation({ selection: { fields: { id: true } }, }); -create({ apiName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', domainEventsTableId: '', domainEventsTableName: '', domainVerificationsTableId: '', domainVerificationsTableName: '', domainsTableId: '', domainsTableName: '', entityField: '', entityTableId: '', managedDomainsTableId: '', managedDomainsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }); +create({ apiName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', defaultReservedSubdomains: '', domainEventsTableId: '', domainEventsTableName: '', domainVerificationsTableId: '', domainVerificationsTableName: '', domainsTableId: '', domainsTableName: '', entityField: '', entityTableId: '', managedDomainsTableId: '', managedDomainsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', reservedSubdomainsTableId: '', reservedSubdomainsTableName: '', schemaId: '', scope: '', sweepUnverifiedDomainsFunction: '' }); ``` ### EmailSenderModule @@ -2081,20 +2081,20 @@ create({ apiName: '', buildStepsTableId: '', buildStepsTableName: ```typescript // List all resourceModules const { data, isLoading } = useResourceModulesQuery({ - selection: { fields: { apiName: true, builderBindingsTableId: true, builderBindingsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registryBindingsTableId: true, registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true } }, + selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registryBindingsTableId: true, registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true, serviceBindingsTableId: true, serviceBindingsTableName: true } }, }); // Get one resourceModule const { data: item } = useResourceModuleQuery({ id: '', - selection: { fields: { apiName: true, builderBindingsTableId: true, builderBindingsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registryBindingsTableId: true, registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true } }, + selection: { fields: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registryBindingsTableId: true, registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true, serviceBindingsTableId: true, serviceBindingsTableName: true } }, }); // Create a resourceModule const { mutate: create } = useCreateResourceModuleMutation({ selection: { fields: { id: true } }, }); -create({ apiName: '', builderBindingsTableId: '', builderBindingsTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', registryBindingsTableId: '', registryBindingsTableName: '', requirementsStateViewName: '', resolvedRequirementsViewName: '', resourceBillingRollupFunction: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceEventsTableId: '', resourceEventsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourceStatusChecksTableId: '', resourceStatusChecksTableName: '', resourceUsageLogTableId: '', resourceUsageLogTableName: '', resourceUsageSummaryTableId: '', resourceUsageSummaryTableName: '', resourcesTableId: '', resourcesTableName: '', rollupResourceUsageSummaryFunction: '', schemaId: '', scope: '' }); +create({ apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', registryBindingsTableId: '', registryBindingsTableName: '', requirementsStateViewName: '', resolvedRequirementsViewName: '', resourceBillingRollupFunction: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceEventsTableId: '', resourceEventsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourceStatusChecksTableId: '', resourceStatusChecksTableName: '', resourceUsageLogTableId: '', resourceUsageLogTableName: '', resourceUsageSummaryTableId: '', resourceUsageSummaryTableName: '', resourcesTableId: '', resourcesTableName: '', rollupResourceUsageSummaryFunction: '', schemaId: '', scope: '', serviceBindingsTableId: '', serviceBindingsTableName: '' }); ``` ### RlsModule @@ -2249,20 +2249,20 @@ create({ apiName: '', catalogModuleId: '', databaseId: '', d ```typescript // List all storageLogModules const { data, isLoading } = useStorageLogModulesQuery({ - selection: { fields: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }, + selection: { fields: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, readStorageUsagePeriodFunction: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }, }); // Get one storageLogModule const { data: item } = useStorageLogModuleQuery({ id: '', - selection: { fields: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }, + selection: { fields: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, readStorageUsagePeriodFunction: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }, }); // Create a storageLogModule const { mutate: create } = useCreateStorageLogModuleMutation({ selection: { fields: { id: true } }, }); -create({ apiName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', storageLogTableId: '', storageLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }); +create({ apiName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', readStorageUsagePeriodFunction: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', storageLogTableId: '', storageLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }); ``` ### StorageModule @@ -2270,20 +2270,20 @@ create({ apiName: '', databaseId: '', entityField: '', int ```typescript // List all storageModules const { data, isLoading } = useStorageModulesQuery({ - selection: { fields: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }, + selection: { fields: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }, }); // Get one storageModule const { data: item } = useStorageModuleQuery({ id: '', - selection: { fields: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }, + selection: { fields: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }, }); // Create a storageModule const { mutate: create } = useCreateStorageModuleMutation({ selection: { fields: { id: true } }, }); -create({ allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasConfirmUpload: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', key: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', region: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }); +create({ allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', key: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', region: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }); ``` ### TransferLogModule @@ -2500,7 +2500,7 @@ create({ apiName: '', databaseId: '', defaultCapabilities: ' constructing -> constructed (table_map populated) or failed (error holds the coded error). schema_id is the default schema for tables without an explicit schema_name. - **Type:** mutation - **Arguments:** diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useCreateBlueprintConstructionMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateBlueprintConstructionMutation.ts index db049e428e..09f1100b20 100644 --- a/sdk/constructive-react/src/modules/hooks/mutations/useCreateBlueprintConstructionMutation.ts +++ b/sdk/constructive-react/src/modules/hooks/mutations/useCreateBlueprintConstructionMutation.ts @@ -1,5 +1,5 @@ /** - * 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. + * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. 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, including failed ones. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateBlueprintConstructionInput, } from '../../orm/input-types'; /** - * 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. + * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. 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, including failed ones. * * @example * ```tsx diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useDeleteBlueprintConstructionMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteBlueprintConstructionMutation.ts index 81277a7558..0dda7c5c34 100644 --- a/sdk/constructive-react/src/modules/hooks/mutations/useDeleteBlueprintConstructionMutation.ts +++ b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteBlueprintConstructionMutation.ts @@ -1,5 +1,5 @@ /** - * 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. + * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. 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, including failed ones. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -21,7 +21,7 @@ export type { BlueprintConstructionWithRelations, } from '../../orm/input-types'; /** - * 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. + * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. 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, including failed ones. * * @example * ```tsx diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useUpdateBlueprintConstructionMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateBlueprintConstructionMutation.ts index b773322a19..3b555400d2 100644 --- a/sdk/constructive-react/src/modules/hooks/mutations/useUpdateBlueprintConstructionMutation.ts +++ b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateBlueprintConstructionMutation.ts @@ -1,5 +1,5 @@ /** - * 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. + * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. 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, including failed ones. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { BlueprintConstructionPatch, } from '../../orm/input-types'; /** - * 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. + * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. 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, including failed ones. * * @example * ```tsx diff --git a/sdk/constructive-react/src/modules/hooks/queries/useBlueprintConstructionQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useBlueprintConstructionQuery.ts index b4c286d3db..3a2cd853e7 100644 --- a/sdk/constructive-react/src/modules/hooks/queries/useBlueprintConstructionQuery.ts +++ b/sdk/constructive-react/src/modules/hooks/queries/useBlueprintConstructionQuery.ts @@ -1,5 +1,5 @@ /** - * 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. + * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. 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, including failed ones. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -22,7 +22,7 @@ export type { /** Query key factory - re-exported from query-keys.ts */ export const blueprintConstructionQueryKey = blueprintConstructionKeys.detail; /** - * 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. + * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. 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, including failed ones. * * @example * ```tsx @@ -76,7 +76,7 @@ export function useBlueprintConstructionQuery( }); } /** - * 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. + * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. 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, including failed ones. * * @example * ```ts @@ -109,7 +109,7 @@ export async function fetchBlueprintConstructionQuery(params: { .unwrap(); } /** - * 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. + * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. 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, including failed ones. * * @example * ```ts diff --git a/sdk/constructive-react/src/modules/hooks/queries/useBlueprintConstructionsQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useBlueprintConstructionsQuery.ts index b8f5b8371e..5f96c40fc2 100644 --- a/sdk/constructive-react/src/modules/hooks/queries/useBlueprintConstructionsQuery.ts +++ b/sdk/constructive-react/src/modules/hooks/queries/useBlueprintConstructionsQuery.ts @@ -1,5 +1,5 @@ /** - * 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. + * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. 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, including failed ones. * @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 blueprintConstructionsQueryKey = blueprintConstructionKeys.list; /** - * 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. + * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. 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, including failed ones. * * @example * ```tsx @@ -97,7 +97,7 @@ export function useBlueprintConstructionsQuery( }); } /** - * 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. + * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. 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, including failed ones. * * @example * ```ts @@ -139,7 +139,7 @@ export async function fetchBlueprintConstructionsQuery(params: { return getClient().blueprintConstruction.findMany(args).unwrap(); } /** - * 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. + * Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. 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, including failed ones. * * @example * ```ts diff --git a/sdk/constructive-react/src/modules/orm/README.md b/sdk/constructive-react/src/modules/orm/README.md index 73e6574eaa..b7b873e859 100644 --- a/sdk/constructive-react/src/modules/orm/README.md +++ b/sdk/constructive-react/src/modules/orm/README.md @@ -498,6 +498,7 @@ CRUD operations for BlueprintConstruction records. | `constructedDefinition` | JSON | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | +| `error` | JSON | Yes | | `id` | UUID | No | | `schemaId` | UUID | Yes | | `status` | String | Yes | @@ -508,13 +509,13 @@ CRUD operations for BlueprintConstruction records. ```typescript // List all blueprintConstruction records -const items = await db.blueprintConstruction.findMany({ select: { blueprintId: true, constructedAt: true, constructedDefinition: true, createdAt: true, databaseId: true, id: true, schemaId: true, status: true, tableMap: true, updatedAt: true } }).execute(); +const items = await db.blueprintConstruction.findMany({ select: { blueprintId: true, constructedAt: true, constructedDefinition: true, createdAt: true, databaseId: true, error: true, id: true, schemaId: true, status: true, tableMap: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.blueprintConstruction.findOne({ id: '', select: { blueprintId: true, constructedAt: true, constructedDefinition: true, createdAt: true, databaseId: true, id: true, schemaId: true, status: true, tableMap: true, updatedAt: true } }).execute(); +const item = await db.blueprintConstruction.findOne({ id: '', select: { blueprintId: true, constructedAt: true, constructedDefinition: true, createdAt: true, databaseId: true, error: true, id: true, schemaId: true, status: true, tableMap: true, updatedAt: true } }).execute(); // Create -const created = await db.blueprintConstruction.create({ data: { blueprintId: '', constructedAt: '', constructedDefinition: '', databaseId: '', schemaId: '', status: '', tableMap: '' }, select: { id: true } }).execute(); +const created = await db.blueprintConstruction.create({ data: { blueprintId: '', constructedAt: '', constructedDefinition: '', databaseId: '', error: '', schemaId: '', status: '', tableMap: '' }, select: { id: true } }).execute(); // Update const updated = await db.blueprintConstruction.update({ where: { id: '' }, data: { blueprintId: '' }, select: { id: true } }).execute(); @@ -1250,6 +1251,8 @@ CRUD operations for DbUsageModule records. | `queryStatsLogTableName` | String | Yes | | `queryStatsSummaryTableId` | UUID | Yes | | `queryStatsSummaryTableName` | String | Yes | +| `readDbQueryStatsUsagePeriodFunction` | String | Yes | +| `readDbTableStatsUsagePeriodFunction` | String | Yes | | `retention` | String | Yes | | `rollupDbQueryStatsUsageSummaryFunction` | String | Yes | | `rollupDbTableStatsUsageSummaryFunction` | String | Yes | @@ -1264,13 +1267,13 @@ CRUD operations for DbUsageModule records. ```typescript // List all dbUsageModule records -const items = await db.dbUsageModule.findMany({ select: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }).execute(); +const items = await db.dbUsageModule.findMany({ select: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, readDbQueryStatsUsagePeriodFunction: true, readDbTableStatsUsagePeriodFunction: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }).execute(); // Get one by id -const item = await db.dbUsageModule.findOne({ id: '', select: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }).execute(); +const item = await db.dbUsageModule.findOne({ id: '', select: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, readDbQueryStatsUsagePeriodFunction: true, readDbTableStatsUsagePeriodFunction: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }).execute(); // Create -const created = await db.dbUsageModule.create({ data: { apiName: '', collectDbQueryStatsFunction: '', collectDbTableStatsFunction: '', databaseId: '', defaultCapabilities: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsSummaryTableId: '', queryStatsSummaryTableName: '', retention: '', rollupDbQueryStatsUsageSummaryFunction: '', rollupDbTableStatsUsageSummaryFunction: '', schemaId: '', scope: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsSummaryTableId: '', tableStatsSummaryTableName: '' }, select: { id: true } }).execute(); +const created = await db.dbUsageModule.create({ data: { apiName: '', collectDbQueryStatsFunction: '', collectDbTableStatsFunction: '', databaseId: '', defaultCapabilities: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsSummaryTableId: '', queryStatsSummaryTableName: '', readDbQueryStatsUsagePeriodFunction: '', readDbTableStatsUsagePeriodFunction: '', retention: '', rollupDbQueryStatsUsageSummaryFunction: '', rollupDbTableStatsUsageSummaryFunction: '', schemaId: '', scope: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsSummaryTableId: '', tableStatsSummaryTableName: '' }, select: { id: true } }).execute(); // Update const updated = await db.dbUsageModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -1396,6 +1399,7 @@ CRUD operations for DomainModule records. | `catalogModuleId` | UUID | Yes | | `databaseId` | UUID | Yes | | `defaultCapabilities` | String | Yes | +| `defaultReservedSubdomains` | JSON | Yes | | `domainEventsTableId` | UUID | Yes | | `domainEventsTableName` | String | Yes | | `domainVerificationsTableId` | UUID | Yes | @@ -1414,20 +1418,23 @@ CRUD operations for DomainModule records. | `privateSchemaName` | String | Yes | | `provisions` | JSON | Yes | | `publicSchemaName` | String | Yes | +| `reservedSubdomainsTableId` | UUID | Yes | +| `reservedSubdomainsTableName` | String | Yes | | `schemaId` | UUID | Yes | | `scope` | String | Yes | +| `sweepUnverifiedDomainsFunction` | String | Yes | **Operations:** ```typescript // List all domainModule records -const items = await db.domainModule.findMany({ select: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const items = await db.domainModule.findMany({ select: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, defaultReservedSubdomains: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, reservedSubdomainsTableId: true, reservedSubdomainsTableName: true, schemaId: true, scope: true, sweepUnverifiedDomainsFunction: true } }).execute(); // Get one by id -const item = await db.domainModule.findOne({ id: '', select: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const item = await db.domainModule.findOne({ id: '', select: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, defaultReservedSubdomains: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, reservedSubdomainsTableId: true, reservedSubdomainsTableName: true, schemaId: true, scope: true, sweepUnverifiedDomainsFunction: true } }).execute(); // Create -const created = await db.domainModule.create({ data: { apiName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', domainEventsTableId: '', domainEventsTableName: '', domainVerificationsTableId: '', domainVerificationsTableName: '', domainsTableId: '', domainsTableName: '', entityField: '', entityTableId: '', managedDomainsTableId: '', managedDomainsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.domainModule.create({ data: { apiName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', defaultReservedSubdomains: '', domainEventsTableId: '', domainEventsTableName: '', domainVerificationsTableId: '', domainVerificationsTableName: '', domainsTableId: '', domainsTableName: '', entityField: '', entityTableId: '', managedDomainsTableId: '', managedDomainsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', reservedSubdomainsTableId: '', reservedSubdomainsTableName: '', schemaId: '', scope: '', sweepUnverifiedDomainsFunction: '' }, select: { id: true } }).execute(); // Update const updated = await db.domainModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -3435,8 +3442,6 @@ CRUD operations for ResourceModule records. | Field | Type | Editable | |-------|------|----------| | `apiName` | String | Yes | -| `builderBindingsTableId` | UUID | Yes | -| `builderBindingsTableName` | String | Yes | | `databaseId` | UUID | Yes | | `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | @@ -3474,18 +3479,20 @@ CRUD operations for ResourceModule records. | `rollupResourceUsageSummaryFunction` | String | Yes | | `schemaId` | UUID | Yes | | `scope` | String | Yes | +| `serviceBindingsTableId` | UUID | Yes | +| `serviceBindingsTableName` | String | Yes | **Operations:** ```typescript // List all resourceModule records -const items = await db.resourceModule.findMany({ select: { apiName: true, builderBindingsTableId: true, builderBindingsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registryBindingsTableId: true, registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true } }).execute(); +const items = await db.resourceModule.findMany({ select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registryBindingsTableId: true, registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true, serviceBindingsTableId: true, serviceBindingsTableName: true } }).execute(); // Get one by id -const item = await db.resourceModule.findOne({ id: '', select: { apiName: true, builderBindingsTableId: true, builderBindingsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registryBindingsTableId: true, registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true } }).execute(); +const item = await db.resourceModule.findOne({ id: '', select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registryBindingsTableId: true, registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true, serviceBindingsTableId: true, serviceBindingsTableName: true } }).execute(); // Create -const created = await db.resourceModule.create({ data: { apiName: '', builderBindingsTableId: '', builderBindingsTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', registryBindingsTableId: '', registryBindingsTableName: '', requirementsStateViewName: '', resolvedRequirementsViewName: '', resourceBillingRollupFunction: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceEventsTableId: '', resourceEventsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourceStatusChecksTableId: '', resourceStatusChecksTableName: '', resourceUsageLogTableId: '', resourceUsageLogTableName: '', resourceUsageSummaryTableId: '', resourceUsageSummaryTableName: '', resourcesTableId: '', resourcesTableName: '', rollupResourceUsageSummaryFunction: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.resourceModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', registryBindingsTableId: '', registryBindingsTableName: '', requirementsStateViewName: '', resolvedRequirementsViewName: '', resourceBillingRollupFunction: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceEventsTableId: '', resourceEventsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourceStatusChecksTableId: '', resourceStatusChecksTableName: '', resourceUsageLogTableId: '', resourceUsageLogTableName: '', resourceUsageSummaryTableId: '', resourceUsageSummaryTableName: '', resourcesTableId: '', resourcesTableName: '', rollupResourceUsageSummaryFunction: '', schemaId: '', scope: '', serviceBindingsTableId: '', serviceBindingsTableName: '' }, select: { id: true } }).execute(); // Update const updated = await db.resourceModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -3822,6 +3829,7 @@ CRUD operations for StorageLogModule records. | `privateSchemaId` | UUID | Yes | | `privateSchemaName` | String | Yes | | `publicSchemaName` | String | Yes | +| `readStorageUsagePeriodFunction` | String | Yes | | `retention` | String | Yes | | `rollupFunctionName` | String | Yes | | `schemaId` | UUID | Yes | @@ -3835,13 +3843,13 @@ CRUD operations for StorageLogModule records. ```typescript // List all storageLogModule records -const items = await db.storageLogModule.findMany({ select: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); +const items = await db.storageLogModule.findMany({ select: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, readStorageUsagePeriodFunction: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); // Get one by id -const item = await db.storageLogModule.findOne({ id: '', select: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); +const item = await db.storageLogModule.findOne({ id: '', select: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, readStorageUsagePeriodFunction: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); // Create -const created = await db.storageLogModule.create({ data: { apiName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', storageLogTableId: '', storageLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute(); +const created = await db.storageLogModule.create({ data: { apiName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', readStorageUsagePeriodFunction: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', storageLogTableId: '', storageLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute(); // Update const updated = await db.storageLogModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -3876,7 +3884,6 @@ CRUD operations for StorageModule records. | `filesTableId` | UUID | Yes | | `filesTableName` | String | Yes | | `hasAuditLog` | Boolean | Yes | -| `hasConfirmUpload` | Boolean | Yes | | `hasContentHash` | Boolean | Yes | | `hasCustomKeys` | Boolean | Yes | | `hasPathShares` | Boolean | Yes | @@ -3906,13 +3913,13 @@ CRUD operations for StorageModule records. ```typescript // List all storageModule records -const items = await db.storageModule.findMany({ select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); +const items = await db.storageModule.findMany({ select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); // Get one by id -const item = await db.storageModule.findOne({ id: '', select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); +const item = await db.storageModule.findOne({ id: '', select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); // Create -const created = await db.storageModule.create({ data: { allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasConfirmUpload: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', key: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', region: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }, select: { id: true } }).execute(); +const created = await db.storageModule.create({ data: { allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', key: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', region: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }, select: { id: true } }).execute(); // Update const updated = await db.storageModule.update({ where: { id: '' }, data: { allowedOrigins: '' }, select: { id: true } }).execute(); @@ -4340,7 +4347,7 @@ const deleted = await db.webhookModule.delete({ where: { id: '' } }).execu ### `db.mutation.constructBlueprint` -Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). A table entry either names its table (table_name plus optional schema_name) or references one an installed module generated ("module": {"type": "agent", "scope": "org", "table": "message"}), which resolves through the module row's recorded table ids and raises when it matches nothing instead of creating an empty table. After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID. A failure raises its coded error to the caller and rolls back the whole construction, including the construction record. +Requests a build of a blueprint: snapshots its definition into a pending blueprint_construction row, enqueues the blueprint:construct job that runs metaschema_private.construct_blueprint_run on it, and returns the construction id immediately. Poll the row: pending -> constructing -> constructed (table_map populated) or failed (error holds the coded error). schema_id is the default schema for tables without an explicit schema_name. - **Type:** mutation - **Arguments:** diff --git a/sdk/constructive-react/src/modules/orm/input-types.ts b/sdk/constructive-react/src/modules/orm/input-types.ts index ca44c2dad1..1e2b8d3965 100644 --- a/sdk/constructive-react/src/modules/orm/input-types.ts +++ b/sdk/constructive-react/src/modules/orm/input-types.ts @@ -461,7 +461,7 @@ export interface Blueprint { /** Timestamp when this blueprint 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. */ +/** Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. 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, including failed ones. */ export interface BlueprintConstruction { /** The blueprint that was constructed. */ blueprintId?: string | null; @@ -473,11 +473,13 @@ export interface BlueprintConstruction { createdAt?: string | null; /** The database the blueprint was constructed into. */ databaseId?: string | null; + /** The coded error ({"code", "context", "class"} as raised through errors.raise_error, or {"code": , "message"} for a database error) a failed construction ended with. NULL unless status is failed. */ + error?: Record | null; /** Unique identifier for this construction attempt. */ id: string; /** 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. A failed construction raises and rolls back, so it leaves no row. */ + /** Execution state of this construction attempt. pending: enqueued, the blueprint:construct job has not started. constructing: the job is executing. constructed: successfully completed. failed: the job raised; the build rolled back and error carries its coded error. */ status?: 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; @@ -866,6 +868,8 @@ export interface DbUsageModule { queryStatsLogTableName?: string | null; queryStatsSummaryTableId?: string | null; queryStatsSummaryTableName?: string | null; + readDbQueryStatsUsagePeriodFunction?: string | null; + readDbTableStatsUsagePeriodFunction?: string | null; retention?: string | null; rollupDbQueryStatsUsageSummaryFunction?: string | null; rollupDbTableStatsUsageSummaryFunction?: string | null; @@ -908,6 +912,7 @@ export interface DomainModule { catalogModuleId?: string | null; databaseId?: string | null; defaultCapabilities?: string[] | null; + defaultReservedSubdomains?: Record | null; domainEventsTableId?: string | null; domainEventsTableName?: string | null; domainVerificationsTableId?: string | null; @@ -926,8 +931,11 @@ export interface DomainModule { privateSchemaName?: string | null; provisions?: Record | null; publicSchemaName?: string | null; + reservedSubdomainsTableId?: string | null; + reservedSubdomainsTableName?: string | null; schemaId?: string | null; scope?: string | null; + sweepUnverifiedDomainsFunction?: string | null; } export interface EmailSenderModule { apiName?: string | null; @@ -1167,7 +1175,6 @@ export interface EntityTypeProvision { * - 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 } @@ -2214,8 +2221,6 @@ export interface RepositoryModule { } export interface ResourceModule { apiName?: string | null; - builderBindingsTableId?: string | null; - builderBindingsTableName?: string | null; databaseId?: string | null; defaultCapabilities?: string[] | null; entityField?: string | null; @@ -2253,6 +2258,8 @@ export interface ResourceModule { rollupResourceUsageSummaryFunction?: string | null; schemaId?: string | null; scope?: string | null; + serviceBindingsTableId?: string | null; + serviceBindingsTableName?: string | null; } export interface RlsModule { apiName?: string | null; @@ -2409,6 +2416,7 @@ export interface StorageLogModule { privateSchemaId?: string | null; privateSchemaName?: string | null; publicSchemaName?: string | null; + readStorageUsagePeriodFunction?: string | null; retention?: string | null; rollupFunctionName?: string | null; schemaId?: string | null; @@ -2437,7 +2445,6 @@ export interface StorageModule { filesTableId?: string | null; filesTableName?: string | null; hasAuditLog?: boolean | null; - hasConfirmUpload?: boolean | null; hasContentHash?: boolean | null; hasCustomKeys?: boolean | null; hasPathShares?: boolean | null; @@ -3158,6 +3165,7 @@ export type BlueprintConstructionSelect = { constructedDefinition?: boolean; createdAt?: boolean; databaseId?: boolean; + error?: boolean; id?: boolean; schemaId?: boolean; status?: boolean; @@ -3557,6 +3565,8 @@ export type DbUsageModuleSelect = { queryStatsLogTableName?: boolean; queryStatsSummaryTableId?: boolean; queryStatsSummaryTableName?: boolean; + readDbQueryStatsUsagePeriodFunction?: boolean; + readDbTableStatsUsagePeriodFunction?: boolean; retention?: boolean; rollupDbQueryStatsUsageSummaryFunction?: boolean; rollupDbTableStatsUsageSummaryFunction?: boolean; @@ -3599,6 +3609,7 @@ export type DomainModuleSelect = { catalogModuleId?: boolean; databaseId?: boolean; defaultCapabilities?: boolean; + defaultReservedSubdomains?: boolean; domainEventsTableId?: boolean; domainEventsTableName?: boolean; domainVerificationsTableId?: boolean; @@ -3617,8 +3628,11 @@ export type DomainModuleSelect = { privateSchemaName?: boolean; provisions?: boolean; publicSchemaName?: boolean; + reservedSubdomainsTableId?: boolean; + reservedSubdomainsTableName?: boolean; schemaId?: boolean; scope?: boolean; + sweepUnverifiedDomainsFunction?: boolean; catalogModule?: { select: CatalogModuleSelect; }; @@ -4666,8 +4680,6 @@ export type RepositoryModuleSelect = { }; export type ResourceModuleSelect = { apiName?: boolean; - builderBindingsTableId?: boolean; - builderBindingsTableName?: boolean; databaseId?: boolean; defaultCapabilities?: boolean; entityField?: boolean; @@ -4705,6 +4717,8 @@ export type ResourceModuleSelect = { rollupResourceUsageSummaryFunction?: boolean; schemaId?: boolean; scope?: boolean; + serviceBindingsTableId?: boolean; + serviceBindingsTableName?: boolean; merkleStoreModule?: { select: MerkleStoreModuleSelect; }; @@ -4872,6 +4886,7 @@ export type StorageLogModuleSelect = { privateSchemaId?: boolean; privateSchemaName?: boolean; publicSchemaName?: boolean; + readStorageUsagePeriodFunction?: boolean; retention?: boolean; rollupFunctionName?: boolean; schemaId?: boolean; @@ -4900,7 +4915,6 @@ export type StorageModuleSelect = { filesTableId?: boolean; filesTableName?: boolean; hasAuditLog?: boolean; - hasConfirmUpload?: boolean; hasContentHash?: boolean; hasCustomKeys?: boolean; hasPathShares?: boolean; @@ -5589,6 +5603,8 @@ export interface BlueprintConstructionFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `error` field. */ + error?: JSONFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Negates the expression. */ @@ -6371,6 +6387,10 @@ export interface DbUsageModuleFilter { queryStatsSummaryTableId?: UUIDFilter; /** Filter by the object’s `queryStatsSummaryTableName` field. */ queryStatsSummaryTableName?: StringFilter; + /** Filter by the object’s `readDbQueryStatsUsagePeriodFunction` field. */ + readDbQueryStatsUsagePeriodFunction?: StringFilter; + /** Filter by the object’s `readDbTableStatsUsagePeriodFunction` field. */ + readDbTableStatsUsagePeriodFunction?: StringFilter; /** Filter by the object’s `retention` field. */ retention?: StringFilter; /** Filter by the object’s `rollupDbQueryStatsUsageSummaryFunction` field. */ @@ -6471,6 +6491,8 @@ export interface DomainModuleFilter { databaseId?: UUIDFilter; /** Filter by the object’s `defaultCapabilities` field. */ defaultCapabilities?: StringListFilter; + /** Filter by the object’s `defaultReservedSubdomains` field. */ + defaultReservedSubdomains?: JSONFilter; /** Filter by the object’s `domainEventsTableId` field. */ domainEventsTableId?: UUIDFilter; /** Filter by the object’s `domainEventsTableName` field. */ @@ -6511,6 +6533,10 @@ export interface DomainModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `reservedSubdomainsTableId` field. */ + reservedSubdomainsTableId?: UUIDFilter; + /** Filter by the object’s `reservedSubdomainsTableName` field. */ + reservedSubdomainsTableName?: StringFilter; /** Filter by the object’s `routeModules` relation. */ routeModules?: DomainModuleToManyRouteModuleFilter; /** `routeModules` exist. */ @@ -6519,6 +6545,8 @@ export interface DomainModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `sweepUnverifiedDomainsFunction` field. */ + sweepUnverifiedDomainsFunction?: StringFilter; } export interface EmailSenderModuleFilter { /** Checks for all expressions in this list. */ @@ -8619,10 +8647,6 @@ export interface ResourceModuleFilter { and?: ResourceModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; - /** Filter by the object’s `builderBindingsTableId` field. */ - builderBindingsTableId?: UUIDFilter; - /** Filter by the object’s `builderBindingsTableName` field. */ - builderBindingsTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `defaultCapabilities` field. */ @@ -8709,6 +8733,10 @@ export interface ResourceModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `serviceBindingsTableId` field. */ + serviceBindingsTableId?: UUIDFilter; + /** Filter by the object’s `serviceBindingsTableName` field. */ + serviceBindingsTableName?: StringFilter; } export interface RlsModuleFilter { /** Checks for all expressions in this list. */ @@ -9041,6 +9069,8 @@ export interface StorageLogModuleFilter { privateSchemaName?: StringFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `readStorageUsagePeriodFunction` field. */ + readStorageUsagePeriodFunction?: StringFilter; /** Filter by the object’s `retention` field. */ retention?: StringFilter; /** Filter by the object’s `rollupFunctionName` field. */ @@ -9101,8 +9131,6 @@ export interface StorageModuleFilter { filesTableName?: StringFilter; /** Filter by the object’s `hasAuditLog` field. */ hasAuditLog?: BooleanFilter; - /** Filter by the object’s `hasConfirmUpload` field. */ - hasConfirmUpload?: BooleanFilter; /** Filter by the object’s `hasContentHash` field. */ hasContentHash?: BooleanFilter; /** Filter by the object’s `hasCustomKeys` field. */ @@ -9968,6 +9996,8 @@ export type BlueprintConstructionOrderBy = | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ERROR_ASC' + | 'ERROR_DESC' | 'ID_ASC' | 'ID_DESC' | 'NATURAL' @@ -10643,6 +10673,10 @@ export type DbUsageModuleOrderBy = | 'QUERY_STATS_SUMMARY_TABLE_ID_DESC' | 'QUERY_STATS_SUMMARY_TABLE_NAME_ASC' | 'QUERY_STATS_SUMMARY_TABLE_NAME_DESC' + | 'READ_DB_QUERY_STATS_USAGE_PERIOD_FUNCTION_ASC' + | 'READ_DB_QUERY_STATS_USAGE_PERIOD_FUNCTION_DESC' + | 'READ_DB_TABLE_STATS_USAGE_PERIOD_FUNCTION_ASC' + | 'READ_DB_TABLE_STATS_USAGE_PERIOD_FUNCTION_DESC' | 'RETENTION_ASC' | 'RETENTION_DESC' | 'ROLLUP_DB_QUERY_STATS_USAGE_SUMMARY_FUNCTION_ASC' @@ -10724,6 +10758,8 @@ export type DomainModuleOrderBy = | 'DATABASE_ID_DESC' | 'DEFAULT_CAPABILITIES_ASC' | 'DEFAULT_CAPABILITIES_DESC' + | 'DEFAULT_RESERVED_SUBDOMAINS_ASC' + | 'DEFAULT_RESERVED_SUBDOMAINS_DESC' | 'DOMAINS_TABLE_ID_ASC' | 'DOMAINS_TABLE_ID_DESC' | 'DOMAINS_TABLE_NAME_ASC' @@ -10763,10 +10799,16 @@ export type DomainModuleOrderBy = | 'PROVISIONS_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' + | 'RESERVED_SUBDOMAINS_TABLE_ID_ASC' + | 'RESERVED_SUBDOMAINS_TABLE_ID_DESC' + | 'RESERVED_SUBDOMAINS_TABLE_NAME_ASC' + | 'RESERVED_SUBDOMAINS_TABLE_NAME_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' - | 'SCOPE_DESC'; + | 'SCOPE_DESC' + | 'SWEEP_UNVERIFIED_DOMAINS_FUNCTION_ASC' + | 'SWEEP_UNVERIFIED_DOMAINS_FUNCTION_DESC'; export type EmailSenderModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' @@ -12618,10 +12660,6 @@ export type RepositoryModuleOrderBy = export type ResourceModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' - | 'BUILDER_BINDINGS_TABLE_ID_ASC' - | 'BUILDER_BINDINGS_TABLE_ID_DESC' - | 'BUILDER_BINDINGS_TABLE_NAME_ASC' - | 'BUILDER_BINDINGS_TABLE_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DEFAULT_CAPABILITIES_ASC' @@ -12698,7 +12736,11 @@ export type ResourceModuleOrderBy = | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' - | 'SCOPE_DESC'; + | 'SCOPE_DESC' + | 'SERVICE_BINDINGS_TABLE_ID_ASC' + | 'SERVICE_BINDINGS_TABLE_ID_DESC' + | 'SERVICE_BINDINGS_TABLE_NAME_ASC' + | 'SERVICE_BINDINGS_TABLE_NAME_DESC'; export type RlsModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' @@ -12979,6 +13021,8 @@ export type StorageLogModuleOrderBy = | 'PRIVATE_SCHEMA_NAME_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' + | 'READ_STORAGE_USAGE_PERIOD_FUNCTION_ASC' + | 'READ_STORAGE_USAGE_PERIOD_FUNCTION_DESC' | 'RETENTION_ASC' | 'RETENTION_DESC' | 'ROLLUP_FUNCTION_NAME_ASC' @@ -13032,8 +13076,6 @@ export type StorageModuleOrderBy = | 'FILE_EVENTS_TABLE_ID_DESC' | 'HAS_AUDIT_LOG_ASC' | 'HAS_AUDIT_LOG_DESC' - | 'HAS_CONFIRM_UPLOAD_ASC' - | 'HAS_CONFIRM_UPLOAD_DESC' | 'HAS_CONTENT_HASH_ASC' | 'HAS_CONTENT_HASH_DESC' | 'HAS_CUSTOM_KEYS_ASC' @@ -13893,6 +13935,7 @@ export interface CreateBlueprintConstructionInput { constructedAt?: string; constructedDefinition?: Record; databaseId: string; + error?: Record; schemaId?: string; status?: string; tableMap?: Record; @@ -13903,6 +13946,7 @@ export interface BlueprintConstructionPatch { constructedAt?: string | null; constructedDefinition?: Record | null; databaseId?: string | null; + error?: Record | null; schemaId?: string | null; status?: string | null; tableMap?: Record | null; @@ -14688,6 +14732,8 @@ export interface CreateDbUsageModuleInput { queryStatsLogTableName?: string; queryStatsSummaryTableId?: string; queryStatsSummaryTableName?: string; + readDbQueryStatsUsagePeriodFunction?: string; + readDbTableStatsUsagePeriodFunction?: string; retention?: string; rollupDbQueryStatsUsageSummaryFunction?: string; rollupDbTableStatsUsageSummaryFunction?: string; @@ -14717,6 +14763,8 @@ export interface DbUsageModulePatch { queryStatsLogTableName?: string | null; queryStatsSummaryTableId?: string | null; queryStatsSummaryTableName?: string | null; + readDbQueryStatsUsagePeriodFunction?: string | null; + readDbTableStatsUsagePeriodFunction?: string | null; retention?: string | null; rollupDbQueryStatsUsageSummaryFunction?: string | null; rollupDbTableStatsUsageSummaryFunction?: string | null; @@ -14827,6 +14875,7 @@ export interface CreateDomainModuleInput { catalogModuleId?: string; databaseId: string; defaultCapabilities?: string[]; + defaultReservedSubdomains?: Record; domainEventsTableId?: string; domainEventsTableName?: string; domainVerificationsTableId?: string; @@ -14844,8 +14893,11 @@ export interface CreateDomainModuleInput { privateSchemaName?: string; provisions?: Record; publicSchemaName?: string; + reservedSubdomainsTableId?: string; + reservedSubdomainsTableName?: string; schemaId?: string; scope: string; + sweepUnverifiedDomainsFunction?: string; }; } export interface DomainModulePatch { @@ -14853,6 +14905,7 @@ export interface DomainModulePatch { catalogModuleId?: string | null; databaseId?: string | null; defaultCapabilities?: string[] | null; + defaultReservedSubdomains?: Record | null; domainEventsTableId?: string | null; domainEventsTableName?: string | null; domainVerificationsTableId?: string | null; @@ -14870,8 +14923,11 @@ export interface DomainModulePatch { privateSchemaName?: string | null; provisions?: Record | null; publicSchemaName?: string | null; + reservedSubdomainsTableId?: string | null; + reservedSubdomainsTableName?: string | null; schemaId?: string | null; scope?: string | null; + sweepUnverifiedDomainsFunction?: string | null; } export interface UpdateDomainModuleInput { clientMutationId?: string; @@ -17132,8 +17188,6 @@ export interface CreateResourceModuleInput { clientMutationId?: string; resourceModule: { apiName?: string; - builderBindingsTableId?: string; - builderBindingsTableName?: string; databaseId: string; defaultCapabilities?: string[]; entityField?: string; @@ -17170,12 +17224,12 @@ export interface CreateResourceModuleInput { rollupResourceUsageSummaryFunction?: string; schemaId?: string; scope: string; + serviceBindingsTableId?: string; + serviceBindingsTableName?: string; }; } export interface ResourceModulePatch { apiName?: string | null; - builderBindingsTableId?: string | null; - builderBindingsTableName?: string | null; databaseId?: string | null; defaultCapabilities?: string[] | null; entityField?: string | null; @@ -17212,6 +17266,8 @@ export interface ResourceModulePatch { rollupResourceUsageSummaryFunction?: string | null; schemaId?: string | null; scope?: string | null; + serviceBindingsTableId?: string | null; + serviceBindingsTableName?: string | null; } export interface UpdateResourceModuleInput { clientMutationId?: string; @@ -17559,6 +17615,7 @@ export interface CreateStorageLogModuleInput { privateSchemaId?: string; privateSchemaName?: string; publicSchemaName?: string; + readStorageUsagePeriodFunction?: string; retention?: string; rollupFunctionName?: string; schemaId?: string; @@ -17580,6 +17637,7 @@ export interface StorageLogModulePatch { privateSchemaId?: string | null; privateSchemaName?: string | null; publicSchemaName?: string | null; + readStorageUsagePeriodFunction?: string | null; retention?: string | null; rollupFunctionName?: string | null; schemaId?: string | null; @@ -17619,7 +17677,6 @@ export interface CreateStorageModuleInput { filesTableId?: string; filesTableName?: string; hasAuditLog?: boolean; - hasConfirmUpload?: boolean; hasContentHash?: boolean; hasCustomKeys?: boolean; hasPathShares?: boolean; @@ -17664,7 +17721,6 @@ export interface StorageModulePatch { filesTableId?: string | null; filesTableName?: string | null; hasAuditLog?: boolean | null; - hasConfirmUpload?: boolean | null; hasContentHash?: boolean | null; hasCustomKeys?: boolean | null; hasPathShares?: boolean | null; @@ -18741,11 +18797,13 @@ export interface BlueprintConstructionInput { createdAt?: string; /** The database the blueprint was constructed into. */ databaseId: string; + /** The coded error ({"code", "context", "class"} as raised through errors.raise_error, or {"code": , "message"} for a database error) a failed construction ended with. NULL unless status is failed. */ + error?: Record; /** Unique identifier for this construction attempt. */ id?: 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. A failed construction raises and rolls back, so it leaves no row. */ + /** Execution state of this construction attempt. pending: enqueued, the blueprint:construct job has not started. constructing: the job is executing. constructed: successfully completed. failed: the job raised; the build rolled back and error carries its coded error. */ status?: string; /** Mapping of table names to created table UUIDs, populated after successful construction. Format: {"products": "uuid", "categories": "uuid", ...}. Defaults to empty object. */ tableMap?: Record; @@ -19165,6 +19223,8 @@ export interface DbUsageModuleInput { queryStatsLogTableName?: string; queryStatsSummaryTableId?: string; queryStatsSummaryTableName?: string; + readDbQueryStatsUsagePeriodFunction?: string; + readDbTableStatsUsagePeriodFunction?: string; retention?: string; rollupDbQueryStatsUsageSummaryFunction?: string; rollupDbTableStatsUsageSummaryFunction?: string; @@ -19211,6 +19271,7 @@ export interface DomainModuleInput { catalogModuleId?: string; databaseId: string; defaultCapabilities?: string[]; + defaultReservedSubdomains?: Record; domainEventsTableId?: string; domainEventsTableName?: string; domainVerificationsTableId?: string; @@ -19229,8 +19290,11 @@ export interface DomainModuleInput { privateSchemaName?: string; provisions?: Record; publicSchemaName?: string; + reservedSubdomainsTableId?: string; + reservedSubdomainsTableName?: string; schemaId?: string; scope: string; + sweepUnverifiedDomainsFunction?: string; } /** An input for mutations affecting `EmailSenderModule` */ export interface EmailSenderModuleInput { @@ -19463,7 +19527,6 @@ export interface EntityTypeProvisionInput { * - 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 } @@ -20507,8 +20570,6 @@ export interface RepositoryModuleInput { /** An input for mutations affecting `ResourceModule` */ export interface ResourceModuleInput { apiName?: string; - builderBindingsTableId?: string; - builderBindingsTableName?: string; databaseId: string; defaultCapabilities?: string[]; entityField?: string; @@ -20546,6 +20607,8 @@ export interface ResourceModuleInput { rollupResourceUsageSummaryFunction?: string; schemaId?: string; scope: string; + serviceBindingsTableId?: string; + serviceBindingsTableName?: string; } /** An input for mutations affecting `RlsModule` */ export interface RlsModuleInput { @@ -20708,6 +20771,7 @@ export interface StorageLogModuleInput { privateSchemaId?: string; privateSchemaName?: string; publicSchemaName?: string; + readStorageUsagePeriodFunction?: string; retention?: string; rollupFunctionName?: string; schemaId?: string; @@ -20737,7 +20801,6 @@ export interface StorageModuleInput { filesTableId?: string; filesTableName?: string; hasAuditLog?: boolean; - hasConfirmUpload?: boolean; hasContentHash?: boolean; hasCustomKeys?: boolean; hasPathShares?: boolean; @@ -20945,6 +21008,8 @@ export interface BlueprintConstructionFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `error` field. */ + error?: JSONFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Negates the expression. */ @@ -21223,6 +21288,8 @@ export interface DomainModuleFilter { databaseId?: UUIDFilter; /** Filter by the object’s `defaultCapabilities` field. */ defaultCapabilities?: StringListFilter; + /** Filter by the object’s `defaultReservedSubdomains` field. */ + defaultReservedSubdomains?: JSONFilter; /** Filter by the object’s `domainEventsTableId` field. */ domainEventsTableId?: UUIDFilter; /** Filter by the object’s `domainEventsTableName` field. */ @@ -21263,6 +21330,10 @@ export interface DomainModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `reservedSubdomainsTableId` field. */ + reservedSubdomainsTableId?: UUIDFilter; + /** Filter by the object’s `reservedSubdomainsTableName` field. */ + reservedSubdomainsTableName?: StringFilter; /** Filter by the object’s `routeModules` relation. */ routeModules?: DomainModuleToManyRouteModuleFilter; /** `routeModules` exist. */ @@ -21271,6 +21342,8 @@ export interface DomainModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `sweepUnverifiedDomainsFunction` field. */ + sweepUnverifiedDomainsFunction?: StringFilter; } /** A filter to be used against `RouteModule` object types. All fields are combined with a logical ‘and.’ */ export interface RouteModuleFilter { @@ -21884,10 +21957,6 @@ export interface ResourceModuleFilter { and?: ResourceModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; - /** Filter by the object’s `builderBindingsTableId` field. */ - builderBindingsTableId?: UUIDFilter; - /** Filter by the object’s `builderBindingsTableName` field. */ - builderBindingsTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `defaultCapabilities` field. */ @@ -21974,6 +22043,10 @@ export interface ResourceModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `serviceBindingsTableId` field. */ + serviceBindingsTableId?: UUIDFilter; + /** Filter by the object’s `serviceBindingsTableName` field. */ + serviceBindingsTableName?: StringFilter; } /** A filter to be used against `EmailSenderModule` object types. All fields are combined with a logical ‘and.’ */ export interface EmailSenderModuleFilter { @@ -22833,8 +22906,6 @@ export interface StorageModuleFilter { filesTableName?: StringFilter; /** Filter by the object’s `hasAuditLog` field. */ hasAuditLog?: BooleanFilter; - /** Filter by the object’s `hasConfirmUpload` field. */ - hasConfirmUpload?: BooleanFilter; /** Filter by the object’s `hasContentHash` field. */ hasContentHash?: BooleanFilter; /** Filter by the object’s `hasCustomKeys` field. */ diff --git a/sdk/constructive-react/src/modules/orm/mutation/index.ts b/sdk/constructive-react/src/modules/orm/mutation/index.ts index e59de99a2e..26ad9b2410 100644 --- a/sdk/constructive-react/src/modules/orm/mutation/index.ts +++ b/sdk/constructive-react/src/modules/orm/mutation/index.ts @@ -20,7 +20,7 @@ import type { import { connectionFieldsMap } from '../input-types'; /** * Variables for constructBlueprint - * Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). A table entry either names its table (table_name plus optional schema_name) or references one an installed module generated ("module": {"type": "agent", "scope": "org", "table": "message"}), which resolves through the module row's recorded table ids and raises when it matches nothing instead of creating an empty table. After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID. A failure raises its coded error to the caller and rolls back the whole construction, including the construction record. + * Requests a build of a blueprint: snapshots its definition into a pending blueprint_construction row, enqueues the blueprint:construct job that runs metaschema_private.construct_blueprint_run on it, and returns the construction id immediately. Poll the row: pending -> constructing -> constructed (table_map populated) or failed (error holds the coded error). schema_id is the default schema for tables without an explicit schema_name. */ export interface ConstructBlueprintVariables { input: ConstructBlueprintInput; diff --git a/sdk/constructive-react/src/modules/schema-types.ts b/sdk/constructive-react/src/modules/schema-types.ts index 51f5f63ec2..933f60ea0e 100644 --- a/sdk/constructive-react/src/modules/schema-types.ts +++ b/sdk/constructive-react/src/modules/schema-types.ts @@ -534,6 +534,8 @@ export type BlueprintConstructionOrderBy = | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ERROR_ASC' + | 'ERROR_DESC' | 'ID_ASC' | 'ID_DESC' | 'NATURAL' @@ -1254,6 +1256,10 @@ export type DbUsageModuleOrderBy = | 'QUERY_STATS_SUMMARY_TABLE_ID_DESC' | 'QUERY_STATS_SUMMARY_TABLE_NAME_ASC' | 'QUERY_STATS_SUMMARY_TABLE_NAME_DESC' + | 'READ_DB_QUERY_STATS_USAGE_PERIOD_FUNCTION_ASC' + | 'READ_DB_QUERY_STATS_USAGE_PERIOD_FUNCTION_DESC' + | 'READ_DB_TABLE_STATS_USAGE_PERIOD_FUNCTION_ASC' + | 'READ_DB_TABLE_STATS_USAGE_PERIOD_FUNCTION_DESC' | 'RETENTION_ASC' | 'RETENTION_DESC' | 'ROLLUP_DB_QUERY_STATS_USAGE_SUMMARY_FUNCTION_ASC' @@ -1339,6 +1345,8 @@ export type DomainModuleOrderBy = | 'DATABASE_ID_DESC' | 'DEFAULT_CAPABILITIES_ASC' | 'DEFAULT_CAPABILITIES_DESC' + | 'DEFAULT_RESERVED_SUBDOMAINS_ASC' + | 'DEFAULT_RESERVED_SUBDOMAINS_DESC' | 'DOMAINS_TABLE_ID_ASC' | 'DOMAINS_TABLE_ID_DESC' | 'DOMAINS_TABLE_NAME_ASC' @@ -1378,10 +1386,16 @@ export type DomainModuleOrderBy = | 'PROVISIONS_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' + | 'RESERVED_SUBDOMAINS_TABLE_ID_ASC' + | 'RESERVED_SUBDOMAINS_TABLE_ID_DESC' + | 'RESERVED_SUBDOMAINS_TABLE_NAME_ASC' + | 'RESERVED_SUBDOMAINS_TABLE_NAME_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' - | 'SCOPE_DESC'; + | 'SCOPE_DESC' + | 'SWEEP_UNVERIFIED_DOMAINS_FUNCTION_ASC' + | 'SWEEP_UNVERIFIED_DOMAINS_FUNCTION_DESC'; /** Methods to use when ordering `EmailSenderModule`. */ export type EmailSenderModuleOrderBy = | 'API_NAME_ASC' @@ -3275,10 +3289,6 @@ export type RepositoryModuleOrderBy = export type ResourceModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' - | 'BUILDER_BINDINGS_TABLE_ID_ASC' - | 'BUILDER_BINDINGS_TABLE_ID_DESC' - | 'BUILDER_BINDINGS_TABLE_NAME_ASC' - | 'BUILDER_BINDINGS_TABLE_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DEFAULT_CAPABILITIES_ASC' @@ -3355,7 +3365,11 @@ export type ResourceModuleOrderBy = | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' - | 'SCOPE_DESC'; + | 'SCOPE_DESC' + | 'SERVICE_BINDINGS_TABLE_ID_ASC' + | 'SERVICE_BINDINGS_TABLE_ID_DESC' + | 'SERVICE_BINDINGS_TABLE_NAME_ASC' + | 'SERVICE_BINDINGS_TABLE_NAME_DESC'; /** Methods to use when ordering `RlsModule`. */ export type RlsModuleOrderBy = | 'API_NAME_ASC' @@ -3644,6 +3658,8 @@ export type StorageLogModuleOrderBy = | 'PRIVATE_SCHEMA_NAME_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' + | 'READ_STORAGE_USAGE_PERIOD_FUNCTION_ASC' + | 'READ_STORAGE_USAGE_PERIOD_FUNCTION_DESC' | 'RETENTION_ASC' | 'RETENTION_DESC' | 'ROLLUP_FUNCTION_NAME_ASC' @@ -3698,8 +3714,6 @@ export type StorageModuleOrderBy = | 'FILE_EVENTS_TABLE_ID_DESC' | 'HAS_AUDIT_LOG_ASC' | 'HAS_AUDIT_LOG_DESC' - | 'HAS_CONFIRM_UPLOAD_ASC' - | 'HAS_CONFIRM_UPLOAD_DESC' | 'HAS_CONTENT_HASH_ASC' | 'HAS_CONTENT_HASH_DESC' | 'HAS_CUSTOM_KEYS_ASC' @@ -4942,6 +4956,8 @@ export interface BlueprintConstructionFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `error` field. */ + error?: JSONFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Negates the expression. */ @@ -4969,11 +4985,13 @@ export interface BlueprintConstructionInput { createdAt?: string; /** The database the blueprint was constructed into. */ databaseId: string; + /** The coded error ({"code", "context", "class"} as raised through errors.raise_error, or {"code": , "message"} for a database error) a failed construction ended with. NULL unless status is failed. */ + error?: unknown; /** Unique identifier for this construction attempt. */ id?: 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. A failed construction raises and rolls back, so it leaves no row. */ + /** Execution state of this construction attempt. pending: enqueued, the blueprint:construct job has not started. constructing: the job is executing. constructed: successfully completed. failed: the job raised; the build rolled back and error carries its coded error. */ status?: string; /** Mapping of table names to created table UUIDs, populated after successful construction. Format: {"products": "uuid", "categories": "uuid", ...}. Defaults to empty object. */ tableMap?: unknown; @@ -4992,11 +5010,13 @@ export interface BlueprintConstructionPatch { createdAt?: string; /** The database the blueprint was constructed into. */ databaseId?: string; + /** The coded error ({"code", "context", "class"} as raised through errors.raise_error, or {"code": , "message"} for a database error) a failed construction ended with. NULL unless status is failed. */ + error?: unknown; /** Unique identifier for this construction attempt. */ id?: 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. A failed construction raises and rolls back, so it leaves no row. */ + /** Execution state of this construction attempt. pending: enqueued, the blueprint:construct job has not started. constructing: the job is executing. constructed: successfully completed. failed: the job raised; the build rolled back and error carries its coded error. */ status?: string; /** Mapping of table names to created table UUIDs, populated after successful construction. Format: {"products": "uuid", "categories": "uuid", ...}. Defaults to empty object. */ tableMap?: unknown; @@ -7163,6 +7183,10 @@ export interface DbUsageModuleFilter { queryStatsSummaryTableId?: UUIDFilter; /** Filter by the object’s `queryStatsSummaryTableName` field. */ queryStatsSummaryTableName?: StringFilter; + /** Filter by the object’s `readDbQueryStatsUsagePeriodFunction` field. */ + readDbQueryStatsUsagePeriodFunction?: StringFilter; + /** Filter by the object’s `readDbTableStatsUsagePeriodFunction` field. */ + readDbTableStatsUsagePeriodFunction?: StringFilter; /** Filter by the object’s `retention` field. */ retention?: StringFilter; /** Filter by the object’s `rollupDbQueryStatsUsageSummaryFunction` field. */ @@ -7202,6 +7226,8 @@ export interface DbUsageModuleInput { queryStatsLogTableName?: string; queryStatsSummaryTableId?: string; queryStatsSummaryTableName?: string; + readDbQueryStatsUsagePeriodFunction?: string; + readDbTableStatsUsagePeriodFunction?: string; retention?: string; rollupDbQueryStatsUsageSummaryFunction?: string; rollupDbTableStatsUsageSummaryFunction?: string; @@ -7232,6 +7258,8 @@ export interface DbUsageModulePatch { queryStatsLogTableName?: string; queryStatsSummaryTableId?: string; queryStatsSummaryTableName?: string; + readDbQueryStatsUsagePeriodFunction?: string; + readDbTableStatsUsagePeriodFunction?: string; retention?: string; rollupDbQueryStatsUsageSummaryFunction?: string; rollupDbTableStatsUsageSummaryFunction?: string; @@ -7745,6 +7773,8 @@ export interface DomainModuleFilter { databaseId?: UUIDFilter; /** Filter by the object’s `defaultCapabilities` field. */ defaultCapabilities?: StringListFilter; + /** Filter by the object’s `defaultReservedSubdomains` field. */ + defaultReservedSubdomains?: JSONFilter; /** Filter by the object’s `domainEventsTableId` field. */ domainEventsTableId?: UUIDFilter; /** Filter by the object’s `domainEventsTableName` field. */ @@ -7785,6 +7815,10 @@ export interface DomainModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `reservedSubdomainsTableId` field. */ + reservedSubdomainsTableId?: UUIDFilter; + /** Filter by the object’s `reservedSubdomainsTableName` field. */ + reservedSubdomainsTableName?: StringFilter; /** Filter by the object’s `routeModules` relation. */ routeModules?: DomainModuleToManyRouteModuleFilter; /** `routeModules` exist. */ @@ -7793,6 +7827,8 @@ export interface DomainModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `sweepUnverifiedDomainsFunction` field. */ + sweepUnverifiedDomainsFunction?: StringFilter; } /** An input for mutations affecting `DomainModule` */ export interface DomainModuleInput { @@ -7800,6 +7836,7 @@ export interface DomainModuleInput { catalogModuleId?: string; databaseId: string; defaultCapabilities?: string[]; + defaultReservedSubdomains?: unknown; domainEventsTableId?: string; domainEventsTableName?: string; domainVerificationsTableId?: string; @@ -7818,8 +7855,11 @@ export interface DomainModuleInput { privateSchemaName?: string; provisions?: unknown; publicSchemaName?: string; + reservedSubdomainsTableId?: string; + reservedSubdomainsTableName?: string; schemaId?: string; scope: string; + sweepUnverifiedDomainsFunction?: string; } /** Represents an update to a `DomainModule`. Fields that are set will be updated. */ export interface DomainModulePatch { @@ -7827,6 +7867,7 @@ export interface DomainModulePatch { catalogModuleId?: string; databaseId?: string; defaultCapabilities?: string[]; + defaultReservedSubdomains?: unknown; domainEventsTableId?: string; domainEventsTableName?: string; domainVerificationsTableId?: string; @@ -7845,8 +7886,11 @@ export interface DomainModulePatch { privateSchemaName?: string; provisions?: unknown; publicSchemaName?: string; + reservedSubdomainsTableId?: string; + reservedSubdomainsTableName?: string; schemaId?: string; scope?: string; + sweepUnverifiedDomainsFunction?: string; } /** A filter to be used against many `RouteModule` object types. All fields are combined with a logical ‘and.’ */ export interface DomainModuleToManyRouteModuleFilter { @@ -8282,7 +8326,6 @@ export interface EntityTypeProvisionInput { * - 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 } @@ -8529,7 +8572,6 @@ export interface EntityTypeProvisionPatch { * - 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 } @@ -12760,10 +12802,6 @@ export interface ResourceModuleFilter { and?: ResourceModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; - /** Filter by the object’s `builderBindingsTableId` field. */ - builderBindingsTableId?: UUIDFilter; - /** Filter by the object’s `builderBindingsTableName` field. */ - builderBindingsTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `defaultCapabilities` field. */ @@ -12850,12 +12888,14 @@ export interface ResourceModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `serviceBindingsTableId` field. */ + serviceBindingsTableId?: UUIDFilter; + /** Filter by the object’s `serviceBindingsTableName` field. */ + serviceBindingsTableName?: StringFilter; } /** An input for mutations affecting `ResourceModule` */ export interface ResourceModuleInput { apiName?: string; - builderBindingsTableId?: string; - builderBindingsTableName?: string; databaseId: string; defaultCapabilities?: string[]; entityField?: string; @@ -12893,12 +12933,12 @@ export interface ResourceModuleInput { rollupResourceUsageSummaryFunction?: string; schemaId?: string; scope: string; + serviceBindingsTableId?: string; + serviceBindingsTableName?: string; } /** Represents an update to a `ResourceModule`. Fields that are set will be updated. */ export interface ResourceModulePatch { apiName?: string; - builderBindingsTableId?: string; - builderBindingsTableName?: string; databaseId?: string; defaultCapabilities?: string[]; entityField?: string; @@ -12936,6 +12976,8 @@ export interface ResourceModulePatch { rollupResourceUsageSummaryFunction?: string; schemaId?: string; scope?: string; + serviceBindingsTableId?: string; + serviceBindingsTableName?: string; } /** A filter to be used against `RlsModule` object types. All fields are combined with a logical ‘and.’ */ export interface RlsModuleFilter { @@ -13590,6 +13632,8 @@ export interface StorageLogModuleFilter { privateSchemaName?: StringFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `readStorageUsagePeriodFunction` field. */ + readStorageUsagePeriodFunction?: StringFilter; /** Filter by the object’s `retention` field. */ retention?: StringFilter; /** Filter by the object’s `rollupFunctionName` field. */ @@ -13620,6 +13664,7 @@ export interface StorageLogModuleInput { privateSchemaId?: string; privateSchemaName?: string; publicSchemaName?: string; + readStorageUsagePeriodFunction?: string; retention?: string; rollupFunctionName?: string; schemaId?: string; @@ -13642,6 +13687,7 @@ export interface StorageLogModulePatch { privateSchemaId?: string; privateSchemaName?: string; publicSchemaName?: string; + readStorageUsagePeriodFunction?: string; retention?: string; rollupFunctionName?: string; schemaId?: string; @@ -13695,8 +13741,6 @@ export interface StorageModuleFilter { filesTableName?: StringFilter; /** Filter by the object’s `hasAuditLog` field. */ hasAuditLog?: BooleanFilter; - /** Filter by the object’s `hasConfirmUpload` field. */ - hasConfirmUpload?: BooleanFilter; /** Filter by the object’s `hasContentHash` field. */ hasContentHash?: BooleanFilter; /** Filter by the object’s `hasCustomKeys` field. */ @@ -13770,7 +13814,6 @@ export interface StorageModuleInput { filesTableId?: string; filesTableName?: string; hasAuditLog?: boolean; - hasConfirmUpload?: boolean; hasContentHash?: boolean; hasCustomKeys?: boolean; hasPathShares?: boolean; @@ -13816,7 +13859,6 @@ export interface StorageModulePatch { filesTableId?: string; filesTableName?: string; hasAuditLog?: boolean; - hasConfirmUpload?: boolean; hasContentHash?: boolean; hasCustomKeys?: boolean; hasPathShares?: boolean; @@ -17317,21 +17359,27 @@ export interface UpdateWebhookModulePayload { /** Information about a database table */ export interface MetaTable { constraints: MetaConstraints; + /** Description written for this table, or null */ + description?: string | null; fields: MetaField[]; foreignKeyConstraints: MetaForeignKeyConstraint[]; - /** i18n metadata (null if no @i18n tag) */ + /** i18n metadata (null if the table is not translatable) */ i18n?: MetaI18n | null; indexes: MetaIndex[]; inflection: MetaInflection; + /** Whether this table only links rows of two other tables; the link appears in their manyToMany relations */ + isJunction: boolean; + /** 'table' when rows are stored in this table, 'view' when they come from a view of other tables */ + kind: string; /** Final GraphQL output type name */ name: string; primaryKeyConstraints: MetaPrimaryKeyConstraint[]; query: MetaQuery; - /** Realtime metadata (null if no @realtime tag) */ + /** Realtime metadata (null if the table has no change subscriptions) */ realtime?: MetaRealtime | null; relations: MetaRelations; schemaName: string; - /** Provisioning scope metadata (null if no @scope tag) */ + /** Provisioning scope metadata (null if the table has no scope) */ scope?: MetaScope | null; /** Search metadata (null if no search configured) */ search?: MetaSearch | null; @@ -17888,15 +17936,27 @@ export interface MetaConstraints { } /** Information about a table field/column */ export interface MetaField { + /** Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. */ + allowedValues?: string[] | null; /** PostgreSQL column name */ columnName: string; description?: string | null; /** Enum metadata if this field has an enum type */ enumValues?: MetaEnum | null; + /** Set when the field holds files; null otherwise. Set on a table's own fields only. */ + file?: MetaFileField | null; hasDefault: boolean; + /** Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. */ + isComputed?: boolean | null; isForeignKey: boolean; isNotNull: boolean; isPrimaryKey: boolean; + /** Whether a create must provide this field. Set on a table's own fields only. */ + isRequiredOnCreate?: boolean | null; + /** Whether a create may set this field. Set on a table's own fields only. */ + isWritableOnCreate?: boolean | null; + /** Whether an update may change this field. Set on a table's own fields only. */ + isWritableOnUpdate?: boolean | null; /** Final GraphQL field name */ name: string; type: MetaType; @@ -17910,7 +17970,7 @@ export interface MetaForeignKeyConstraint { referencedFields: string[]; referencedTable: string; } -/** i18n metadata for a table with @i18n tag */ +/** i18n metadata for a translatable table */ export interface MetaI18n { /** Fields that are translatable */ translatableFields: MetaI18nField[]; @@ -17925,7 +17985,7 @@ export interface MetaIndex { isUnique: boolean; name: string; } -/** Table inflection names */ +/** Type and field names generated for this table */ export interface MetaInflection { allRows: string; conditionType: string; @@ -17953,7 +18013,7 @@ export interface MetaQuery { one?: string | null; update?: string | null; } -/** Realtime metadata for a table with @realtime tag */ +/** Realtime metadata for a table with change subscriptions */ export interface MetaRealtime { /** The generated subscription field name (e.g. onPostChanged) */ subscriptionFieldName: string; @@ -17968,13 +18028,13 @@ export interface MetaRelations { } /** Provisioning scope metadata for a table */ export interface MetaScope { - /** SQL name of the entity table for entity scopes, else null */ + /** Name of the entity table for entity scopes, else null */ entityTable?: string | null; - /** Inflected scope key column (e.g. databaseId, orgId), null for global tiers */ + /** Field name of the scope key (e.g. databaseId, orgId), null for global tiers */ keyColumn?: string | null; /** Provisioning scope: 'platform', 'app', 'database', or an entity scope (e.g. 'org') */ scope: string; - /** Provenance of the scope metadata (always 'smartTag') */ + /** Where this scope metadata comes from */ source: string; /** Coarse bucket: 'global', 'database', or 'entity' */ tier: string; @@ -17992,17 +18052,17 @@ export interface MetaSearch { } /** Storage metadata for a table */ export interface MetaStorage { - /** GraphQL type name of the plane's buckets table */ + /** GraphQL type name of the paired buckets table */ bucketsType: string; /** Computed download-URL field on the files type; null on the buckets side */ downloadUrlField?: string | null; - /** GraphQL type name of the plane's files table */ + /** GraphQL type name of the paired files table */ filesType: string; /** Whether this table is a storage buckets table */ isBucketsTable: boolean; /** Whether this table is a storage files table */ isFilesTable: boolean; - /** The plane's GraphQL upload surface */ + /** Upload mutations and types for this storage */ upload: MetaStorageUpload; } /** Information about a unique constraint */ @@ -18017,6 +18077,15 @@ export interface MetaEnum { /** Allowed values for this enum */ values: string[]; } +/** How a field holds files */ +export interface MetaFileField { + /** GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise */ + filesType?: string | null; + /** Whether the field holds a list of files */ + isMultiple: boolean; + /** image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. */ + kind: string; +} /** Information about a PostgreSQL type */ export interface MetaType { /** Scalar serialization contract (null for plain scalars) */ @@ -18025,7 +18094,13 @@ export interface MetaType { hasDefault?: boolean | null; isArray: boolean; isNotNull?: boolean | null; + /** Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. */ + maxLength?: number | null; pgType: string; + /** Most significant digits a decimal number may hold. Null when unbounded. */ + precision?: number | null; + /** Digits a decimal number keeps after the decimal point. Null when unbounded. */ + scale?: number | null; subtype?: string | null; } /** Reference to a related table */ @@ -18044,6 +18119,8 @@ export interface MetaBelongsToRelation { fieldName?: string | null; isUnique: boolean; keys: MetaField[]; + /** Fields on the referenced table that keys point at, in the same order as keys */ + refKeys: MetaField[]; references: MetaRefTable; type?: string | null; } @@ -18053,6 +18130,8 @@ export interface MetaHasRelation { isUnique: boolean; keys: MetaField[]; referencedBy: MetaRefTable; + /** Fields on the related table that point at this table, in the same order as keys */ + remoteKeys: MetaField[]; type?: string | null; } /** A many-to-many relation via junction table */ @@ -18075,7 +18154,7 @@ export interface MetaSearchColumn { /** Column name (camelCase) */ name: string; } -/** Per-table search configuration from @searchConfig smart tag */ +/** Per-table search configuration */ export interface MetaSearchConfig { /** Exponential decay factor per day */ boostRecencyDecay?: number | null; @@ -18086,7 +18165,7 @@ export interface MetaSearchConfig { /** JSON-encoded per-adapter score weights */ weights?: string | null; } -/** The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from */ +/** The upload mutations and types for a storage table pair */ export interface MetaStorageUpload { /** Per-file input type inside the bulk input */ bulkFileInputType: string; @@ -18104,14 +18183,14 @@ export interface MetaStorageUpload { mutation: string; /** Payload type of the single upload mutation */ payloadType: string; - /** Whether the upload input requires ownerId (entity-keyed plane) */ + /** Whether the upload input requires ownerId */ requiresOwnerId: boolean; } -/** How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. */ +/** How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. */ export interface MetaScalarEncoding { /** For 'vector': declared length, else null. */ dimensions?: number | null; - /** For 'ltree': values are dot-separated path strings. */ + /** For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). */ dotPath?: boolean | null; /** For 'vector': element scalar (e.g. 'float'). */ elementType?: string | null; diff --git a/sdk/constructive-react/src/modules/types.ts b/sdk/constructive-react/src/modules/types.ts index 7f47bb07b1..da4820be5a 100644 --- a/sdk/constructive-react/src/modules/types.ts +++ b/sdk/constructive-react/src/modules/types.ts @@ -226,6 +226,7 @@ export interface BlueprintConstruction { constructedDefinition: unknown | null; createdAt: string | null; databaseId: string | null; + error: unknown | null; id: string | null; schemaId: string | null; status: string | null; @@ -562,6 +563,8 @@ export interface DbUsageModule { queryStatsLogTableName: string | null; queryStatsSummaryTableId: string | null; queryStatsSummaryTableName: string | null; + readDbQueryStatsUsagePeriodFunction: string | null; + readDbTableStatsUsagePeriodFunction: string | null; retention: string | null; rollupDbQueryStatsUsageSummaryFunction: string | null; rollupDbTableStatsUsageSummaryFunction: string | null; @@ -604,6 +607,7 @@ export interface DomainModule { catalogModuleId: string | null; databaseId: string | null; defaultCapabilities: string[] | null; + defaultReservedSubdomains: unknown | null; domainEventsTableId: string | null; domainEventsTableName: string | null; domainVerificationsTableId: string | null; @@ -622,8 +626,11 @@ export interface DomainModule { privateSchemaName: string | null; provisions: unknown | null; publicSchemaName: string | null; + reservedSubdomainsTableId: string | null; + reservedSubdomainsTableName: string | null; schemaId: string | null; scope: string | null; + sweepUnverifiedDomainsFunction: string | null; } export interface EmailSenderModule { apiName: string | null; @@ -1551,8 +1558,6 @@ export interface RepositoryModule { } export interface ResourceModule { apiName: string | null; - builderBindingsTableId: string | null; - builderBindingsTableName: string | null; databaseId: string | null; defaultCapabilities: string[] | null; entityField: string | null; @@ -1590,6 +1595,8 @@ export interface ResourceModule { rollupResourceUsageSummaryFunction: string | null; schemaId: string | null; scope: string | null; + serviceBindingsTableId: string | null; + serviceBindingsTableName: string | null; } export interface RlsModule { apiName: string | null; @@ -1730,6 +1737,7 @@ export interface StorageLogModule { privateSchemaId: string | null; privateSchemaName: string | null; publicSchemaName: string | null; + readStorageUsagePeriodFunction: string | null; retention: string | null; rollupFunctionName: string | null; schemaId: string | null; @@ -1758,7 +1766,6 @@ export interface StorageModule { filesTableId: string | null; filesTableName: string | null; hasAuditLog: boolean | null; - hasConfirmUpload: boolean | null; hasContentHash: boolean | null; hasCustomKeys: boolean | null; hasPathShares: boolean | null; diff --git a/sdk/constructive-react/src/objects/hooks/README.md b/sdk/constructive-react/src/objects/hooks/README.md index 54fa125ed7..681f7d8b69 100644 --- a/sdk/constructive-react/src/objects/hooks/README.md +++ b/sdk/constructive-react/src/objects/hooks/README.md @@ -38,7 +38,6 @@ function App() { | `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 | | `useGetAllTreeNodesQuery` | Query | List all getAllTreeNodes | -| `useCreateGetAllTreeNodesRecordMutation` | Mutation | Create a getAllTreeNodesRecord | | `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 | @@ -98,11 +97,6 @@ const { data, isLoading } = useGetAllTreeNodesQuery({ selection: { fields: { data: true, path: true } }, }); -// Create a getAllTreeNodesRecord -const { mutate: create } = useCreateGetAllTreeNodesRecordMutation({ - selection: { fields: { id: true } }, -}); -create({ data: '', path: '' }); ``` ### Object diff --git a/sdk/constructive-react/src/objects/hooks/mutations/index.ts b/sdk/constructive-react/src/objects/hooks/mutations/index.ts index 6f5d50802d..7a612f46c3 100644 --- a/sdk/constructive-react/src/objects/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/objects/hooks/mutations/index.ts @@ -6,7 +6,6 @@ export * from './useCreateCommitMutation'; export * from './useUpdateCommitMutation'; export * from './useDeleteCommitMutation'; -export * from './useCreateGetAllTreeNodesRecordMutation'; export * from './useCreateObjectMutation'; export * from './useUpdateObjectMutation'; export * from './useDeleteObjectMutation'; diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useCreateGetAllTreeNodesRecordMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useCreateGetAllTreeNodesRecordMutation.ts deleted file mode 100644 index 5a0447b6b9..0000000000 --- a/sdk/constructive-react/src/objects/hooks/mutations/useCreateGetAllTreeNodesRecordMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Create mutation hook for GetAllTreeNodesRecord - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { getAllTreeNodesRecordKeys } from '../query-keys'; -import { getAllTreeNodesRecordMutationKeys } from '../mutation-keys'; -import type { - GetAllTreeNodesRecordSelect, - GetAllTreeNodesRecordWithRelations, - CreateGetAllTreeNodesRecordInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - GetAllTreeNodesRecordSelect, - GetAllTreeNodesRecordWithRelations, - CreateGetAllTreeNodesRecordInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a GetAllTreeNodesRecord - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateGetAllTreeNodesRecordMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateGetAllTreeNodesRecordMutation( - params: { - selection: { - fields: S & GetAllTreeNodesRecordSelect; - } & HookStrictSelect, GetAllTreeNodesRecordSelect>; - } & Omit< - UseMutationOptions< - { - createGetAllTreeNodesRecord: { - getAllTreeNodesRecord: InferSelectResult; - }; - }, - Error, - CreateGetAllTreeNodesRecordInput['getAllTreeNodesRecord'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createGetAllTreeNodesRecord: { - getAllTreeNodesRecord: InferSelectResult; - }; - }, - Error, - CreateGetAllTreeNodesRecordInput['getAllTreeNodesRecord'] ->; -export function useCreateGetAllTreeNodesRecordMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: getAllTreeNodesRecordMutationKeys.create(), - mutationFn: (data: CreateGetAllTreeNodesRecordInput['getAllTreeNodesRecord']) => - getClient() - .getAllTreeNodesRecord.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: getAllTreeNodesRecordKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/objects/orm/README.md b/sdk/constructive-react/src/objects/orm/README.md index 866cd6f1ef..f5b1e0ead1 100644 --- a/sdk/constructive-react/src/objects/orm/README.md +++ b/sdk/constructive-react/src/objects/orm/README.md @@ -22,7 +22,7 @@ const db = createClient({ | Model | Operations | |-------|------------| | `commit` | findMany, findOne, create, update, delete | -| `getAllTreeNodesRecord` | findMany, findOne, create, update, delete | +| `getAllTreeNodesRecord` | findMany, findOne, update, delete | | `object` | findMany, findOne, create, update, delete | | `ref` | findMany, findOne, create, update, delete | | `store` | findMany, findOne, create, update, delete | @@ -86,9 +86,6 @@ const items = await db.getAllTreeNodesRecord.findMany({ select: { data: true, pa // Get one by id const item = await db.getAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); -// Create -const created = await db.getAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); - // Update const updated = await db.getAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); diff --git a/sdk/constructive-react/src/objects/orm/input-types.ts b/sdk/constructive-react/src/objects/orm/input-types.ts index fbe09b35cb..faa72ecfe0 100644 --- a/sdk/constructive-react/src/objects/orm/input-types.ts +++ b/sdk/constructive-react/src/objects/orm/input-types.ts @@ -558,13 +558,6 @@ export interface DeleteCommitInput { clientMutationId?: string; id: string; } -export interface CreateGetAllTreeNodesRecordInput { - clientMutationId?: string; - getAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; -} export interface GetAllTreeNodesRecordPatch { data?: Record | null; path?: string[] | null; diff --git a/sdk/constructive-react/src/objects/orm/models/getAllTreeNodesRecord.ts b/sdk/constructive-react/src/objects/orm/models/getAllTreeNodesRecord.ts index 00f51d01f7..275a902f66 100644 --- a/sdk/constructive-react/src/objects/orm/models/getAllTreeNodesRecord.ts +++ b/sdk/constructive-react/src/objects/orm/models/getAllTreeNodesRecord.ts @@ -29,7 +29,6 @@ import type { GetAllTreeNodesRecordSelect, GetAllTreeNodesRecordFilter, GetAllTreeNodesRecordsOrderBy, - CreateGetAllTreeNodesRecordInput, UpdateGetAllTreeNodesRecordInput, GetAllTreeNodesRecordPatch, } from '../input-types'; @@ -104,31 +103,4 @@ export class GetAllTreeNodesRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createGetAllTreeNodesRecord: { - getAllTreeNodesRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'GetAllTreeNodesRecord', - 'createGetAllTreeNodesRecord', - 'getAllTreeNodesRecord', - args.select, - args.data, - 'CreateGetAllTreeNodesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'GetAllTreeNodesRecord', - fieldName: 'createGetAllTreeNodesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/objects/schema-types.ts b/sdk/constructive-react/src/objects/schema-types.ts index d5780ec824..b80f360e8f 100644 --- a/sdk/constructive-react/src/objects/schema-types.ts +++ b/sdk/constructive-react/src/objects/schema-types.ts @@ -594,21 +594,27 @@ export interface UpdateStorePayload { /** Information about a database table */ export interface MetaTable { constraints: MetaConstraints; + /** Description written for this table, or null */ + description?: string | null; fields: MetaField[]; foreignKeyConstraints: MetaForeignKeyConstraint[]; - /** i18n metadata (null if no @i18n tag) */ + /** i18n metadata (null if the table is not translatable) */ i18n?: MetaI18n | null; indexes: MetaIndex[]; inflection: MetaInflection; + /** Whether this table only links rows of two other tables; the link appears in their manyToMany relations */ + isJunction: boolean; + /** 'table' when rows are stored in this table, 'view' when they come from a view of other tables */ + kind: string; /** Final GraphQL output type name */ name: string; primaryKeyConstraints: MetaPrimaryKeyConstraint[]; query: MetaQuery; - /** Realtime metadata (null if no @realtime tag) */ + /** Realtime metadata (null if the table has no change subscriptions) */ realtime?: MetaRealtime | null; relations: MetaRelations; schemaName: string; - /** Provisioning scope metadata (null if no @scope tag) */ + /** Provisioning scope metadata (null if the table has no scope) */ scope?: MetaScope | null; /** Search metadata (null if no search configured) */ search?: MetaSearch | null; @@ -667,15 +673,27 @@ export interface MetaConstraints { } /** Information about a table field/column */ export interface MetaField { + /** Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. */ + allowedValues?: string[] | null; /** PostgreSQL column name */ columnName: string; description?: string | null; /** Enum metadata if this field has an enum type */ enumValues?: MetaEnum | null; + /** Set when the field holds files; null otherwise. Set on a table's own fields only. */ + file?: MetaFileField | null; hasDefault: boolean; + /** Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. */ + isComputed?: boolean | null; isForeignKey: boolean; isNotNull: boolean; isPrimaryKey: boolean; + /** Whether a create must provide this field. Set on a table's own fields only. */ + isRequiredOnCreate?: boolean | null; + /** Whether a create may set this field. Set on a table's own fields only. */ + isWritableOnCreate?: boolean | null; + /** Whether an update may change this field. Set on a table's own fields only. */ + isWritableOnUpdate?: boolean | null; /** Final GraphQL field name */ name: string; type: MetaType; @@ -689,7 +707,7 @@ export interface MetaForeignKeyConstraint { referencedFields: string[]; referencedTable: string; } -/** i18n metadata for a table with @i18n tag */ +/** i18n metadata for a translatable table */ export interface MetaI18n { /** Fields that are translatable */ translatableFields: MetaI18nField[]; @@ -704,7 +722,7 @@ export interface MetaIndex { isUnique: boolean; name: string; } -/** Table inflection names */ +/** Type and field names generated for this table */ export interface MetaInflection { allRows: string; conditionType: string; @@ -732,7 +750,7 @@ export interface MetaQuery { one?: string | null; update?: string | null; } -/** Realtime metadata for a table with @realtime tag */ +/** Realtime metadata for a table with change subscriptions */ export interface MetaRealtime { /** The generated subscription field name (e.g. onPostChanged) */ subscriptionFieldName: string; @@ -747,13 +765,13 @@ export interface MetaRelations { } /** Provisioning scope metadata for a table */ export interface MetaScope { - /** SQL name of the entity table for entity scopes, else null */ + /** Name of the entity table for entity scopes, else null */ entityTable?: string | null; - /** Inflected scope key column (e.g. databaseId, orgId), null for global tiers */ + /** Field name of the scope key (e.g. databaseId, orgId), null for global tiers */ keyColumn?: string | null; /** Provisioning scope: 'platform', 'app', 'database', or an entity scope (e.g. 'org') */ scope: string; - /** Provenance of the scope metadata (always 'smartTag') */ + /** Where this scope metadata comes from */ source: string; /** Coarse bucket: 'global', 'database', or 'entity' */ tier: string; @@ -771,17 +789,17 @@ export interface MetaSearch { } /** Storage metadata for a table */ export interface MetaStorage { - /** GraphQL type name of the plane's buckets table */ + /** GraphQL type name of the paired buckets table */ bucketsType: string; /** Computed download-URL field on the files type; null on the buckets side */ downloadUrlField?: string | null; - /** GraphQL type name of the plane's files table */ + /** GraphQL type name of the paired files table */ filesType: string; /** Whether this table is a storage buckets table */ isBucketsTable: boolean; /** Whether this table is a storage files table */ isFilesTable: boolean; - /** The plane's GraphQL upload surface */ + /** Upload mutations and types for this storage */ upload: MetaStorageUpload; } /** Information about a unique constraint */ @@ -796,6 +814,15 @@ export interface MetaEnum { /** Allowed values for this enum */ values: string[]; } +/** How a field holds files */ +export interface MetaFileField { + /** GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise */ + filesType?: string | null; + /** Whether the field holds a list of files */ + isMultiple: boolean; + /** image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. */ + kind: string; +} /** Information about a PostgreSQL type */ export interface MetaType { /** Scalar serialization contract (null for plain scalars) */ @@ -804,7 +831,13 @@ export interface MetaType { hasDefault?: boolean | null; isArray: boolean; isNotNull?: boolean | null; + /** Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. */ + maxLength?: number | null; pgType: string; + /** Most significant digits a decimal number may hold. Null when unbounded. */ + precision?: number | null; + /** Digits a decimal number keeps after the decimal point. Null when unbounded. */ + scale?: number | null; subtype?: string | null; } /** Reference to a related table */ @@ -823,6 +856,8 @@ export interface MetaBelongsToRelation { fieldName?: string | null; isUnique: boolean; keys: MetaField[]; + /** Fields on the referenced table that keys point at, in the same order as keys */ + refKeys: MetaField[]; references: MetaRefTable; type?: string | null; } @@ -832,6 +867,8 @@ export interface MetaHasRelation { isUnique: boolean; keys: MetaField[]; referencedBy: MetaRefTable; + /** Fields on the related table that point at this table, in the same order as keys */ + remoteKeys: MetaField[]; type?: string | null; } /** A many-to-many relation via junction table */ @@ -854,7 +891,7 @@ export interface MetaSearchColumn { /** Column name (camelCase) */ name: string; } -/** Per-table search configuration from @searchConfig smart tag */ +/** Per-table search configuration */ export interface MetaSearchConfig { /** Exponential decay factor per day */ boostRecencyDecay?: number | null; @@ -865,7 +902,7 @@ export interface MetaSearchConfig { /** JSON-encoded per-adapter score weights */ weights?: string | null; } -/** The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from */ +/** The upload mutations and types for a storage table pair */ export interface MetaStorageUpload { /** Per-file input type inside the bulk input */ bulkFileInputType: string; @@ -883,14 +920,14 @@ export interface MetaStorageUpload { mutation: string; /** Payload type of the single upload mutation */ payloadType: string; - /** Whether the upload input requires ownerId (entity-keyed plane) */ + /** Whether the upload input requires ownerId */ requiresOwnerId: boolean; } -/** How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. */ +/** How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. */ export interface MetaScalarEncoding { /** For 'vector': declared length, else null. */ dimensions?: number | null; - /** For 'ltree': values are dot-separated path strings. */ + /** For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). */ dotPath?: boolean | null; /** For 'vector': element scalar (e.g. 'float'). */ elementType?: string | null; diff --git a/sdk/constructive-react/src/remote/README.md b/sdk/constructive-react/src/remote/README.md index 14fcdccd0f..62a6bee69e 100644 --- a/sdk/constructive-react/src/remote/README.md +++ b/sdk/constructive-react/src/remote/README.md @@ -9,7 +9,7 @@ ## Overview - **Tables:** 3 -- **Custom queries:** 0 +- **Custom queries:** 1 - **Custom mutations:** 2 **Generators:** ORM, React Query diff --git a/sdk/constructive-react/src/remote/hooks/README.md b/sdk/constructive-react/src/remote/hooks/README.md index 033ddc00a8..9eceb618a2 100644 --- a/sdk/constructive-react/src/remote/hooks/README.md +++ b/sdk/constructive-react/src/remote/hooks/README.md @@ -47,6 +47,7 @@ function App() { | `useCreateMachineSessionMutation` | Mutation | Command or terminal sessions running on an enrolled machine | | `useUpdateMachineSessionMutation` | Mutation | Command or terminal sessions running on an enrolled machine | | `useDeleteMachineSessionMutation` | Mutation | Command or terminal sessions running on an enrolled machine | +| `useCurrentDatabaseIdQuery` | Query | currentDatabaseId | | `useMachinesEnrollMutation` | Mutation | machinesEnroll | | `useProvisionBucketMutation` | Mutation | Reconcile an S3 bucket for a logical bucket in the database. Records the request on the bucket row via RLS; the bucket's job @@ -122,6 +123,13 @@ create({ agentMode: '', agentSessionRef: '', args: '', c ## Custom Operation Hooks +### `useCurrentDatabaseIdQuery` + +currentDatabaseId + +- **Type:** query +- **Arguments:** none + ### `useMachinesEnrollMutation` machinesEnroll diff --git a/sdk/constructive-react/src/remote/hooks/queries/index.ts b/sdk/constructive-react/src/remote/hooks/queries/index.ts index 43a5062bf0..06021972fc 100644 --- a/sdk/constructive-react/src/remote/hooks/queries/index.ts +++ b/sdk/constructive-react/src/remote/hooks/queries/index.ts @@ -9,3 +9,4 @@ export * from './useMachineMessagesQuery'; export * from './useMachineMessageQuery'; export * from './useMachineSessionsQuery'; export * from './useMachineSessionQuery'; +export * from './useCurrentDatabaseIdQuery'; diff --git a/sdk/constructive-react/src/remote/hooks/queries/useCurrentDatabaseIdQuery.ts b/sdk/constructive-react/src/remote/hooks/queries/useCurrentDatabaseIdQuery.ts new file mode 100644 index 0000000000..ba46df079d --- /dev/null +++ b/sdk/constructive-react/src/remote/hooks/queries/useCurrentDatabaseIdQuery.ts @@ -0,0 +1,90 @@ +/** + * Custom query hook for currentDatabaseId + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-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 currentDatabaseIdQueryKey = customQueryKeys.currentDatabaseId; +/** + * Query hook for currentDatabaseId + * + * @example + * ```tsx + * const { data, isLoading } = useCurrentDatabaseIdQuery(); + * + * if (data?.currentDatabaseId) { + * console.log(data.currentDatabaseId); + * } + * ``` + */ +export function useCurrentDatabaseIdQuery< + TData = { + currentDatabaseId: string | null; + }, +>( + params?: Omit< + UseQueryOptions< + { + currentDatabaseId: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useCurrentDatabaseIdQuery< + TData = { + currentDatabaseId: string | null; + }, +>( + params?: Omit< + UseQueryOptions< + { + currentDatabaseId: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const queryOptions = params ?? {}; + return useQuery({ + queryKey: currentDatabaseIdQueryKey(), + queryFn: () => getClient().query.currentDatabaseId().unwrap(), + ...queryOptions, + }); +} +/** + * Fetch currentDatabaseId without React hooks + * + * @example + * ```ts + * const data = await fetchCurrentDatabaseIdQuery(); + * ``` + */ +export async function fetchCurrentDatabaseIdQuery() { + return getClient().query.currentDatabaseId().unwrap(); +} +/** + * Prefetch currentDatabaseId for SSR or cache warming + * + * @example + * ```ts + * await prefetchCurrentDatabaseIdQuery(queryClient); + * ``` + */ +export async function prefetchCurrentDatabaseIdQuery(queryClient: QueryClient): Promise { + await queryClient.prefetchQuery({ + queryKey: currentDatabaseIdQueryKey(), + queryFn: () => getClient().query.currentDatabaseId().unwrap(), + }); +} diff --git a/sdk/constructive-react/src/remote/hooks/query-keys.ts b/sdk/constructive-react/src/remote/hooks/query-keys.ts index 371a742682..ff5492f281 100644 --- a/sdk/constructive-react/src/remote/hooks/query-keys.ts +++ b/sdk/constructive-react/src/remote/hooks/query-keys.ts @@ -46,6 +46,14 @@ export const machineSessionKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...machineSessionKeys.details(), id] as const, } as const; + +// ============================================================================ +// Custom Query Keys +// ============================================================================ + +export const customQueryKeys = { + /** Query key for currentDatabaseId */ currentDatabaseId: () => ['currentDatabaseId'] as const, +} as const; /** // ============================================================================ @@ -72,6 +80,7 @@ export const queryKeys = { machine: machineKeys, machineMessage: machineMessageKeys, machineSession: machineSessionKeys, + custom: customQueryKeys, } as const; /** Type representing all available query key scopes */ export type QueryKeyScope = keyof typeof queryKeys; diff --git a/sdk/constructive-react/src/remote/orm/README.md b/sdk/constructive-react/src/remote/orm/README.md index eb2fdd09aa..b76819b71e 100644 --- a/sdk/constructive-react/src/remote/orm/README.md +++ b/sdk/constructive-react/src/remote/orm/README.md @@ -169,6 +169,17 @@ const deleted = await db.machineSession.delete({ where: { id: '' } }).exec ## Custom Operations +### `db.query.currentDatabaseId` + +currentDatabaseId + +- **Type:** query +- **Arguments:** none + +```typescript +const result = await db.query.currentDatabaseId().execute(); +``` + ### `db.mutation.machinesEnroll` machinesEnroll diff --git a/sdk/constructive-react/src/remote/orm/index.ts b/sdk/constructive-react/src/remote/orm/index.ts index e166dd236a..554ce59ad1 100644 --- a/sdk/constructive-react/src/remote/orm/index.ts +++ b/sdk/constructive-react/src/remote/orm/index.ts @@ -8,12 +8,14 @@ import type { OrmClientConfig } from './client'; import { MachineModel } from './models/machine'; import { MachineMessageModel } from './models/machineMessage'; import { MachineSessionModel } from './models/machineSession'; +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 @@ -44,6 +46,7 @@ export function createClient(config: OrmClientConfig) { machine: new MachineModel(client), machineMessage: new MachineMessageModel(client), machineSession: new MachineSessionModel(client), + query: createQueryOperations(client), mutation: createMutationOperations(client), }; } diff --git a/sdk/constructive-react/src/remote/orm/query/index.ts b/sdk/constructive-react/src/remote/orm/query/index.ts new file mode 100644 index 0000000000..901e0de080 --- /dev/null +++ b/sdk/constructive-react/src/remote/orm/query/index.ts @@ -0,0 +1,32 @@ +/** + * Custom query operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { QueryBuilder, buildCustomDocument } from '../query-builder'; +import type { InferSelectResult, StrictSelect } from '../select-types'; +import { connectionFieldsMap } from '../input-types'; +export function createQueryOperations(client: OrmClient) { + return { + currentDatabaseId: (options?: { select?: Record }) => + new QueryBuilder<{ + currentDatabaseId: string | null; + }>({ + client, + operation: 'query', + operationName: 'CurrentDatabaseId', + fieldName: 'currentDatabaseId', + ...buildCustomDocument( + 'query', + 'CurrentDatabaseId', + 'currentDatabaseId', + options?.select, + undefined, + [], + connectionFieldsMap, + undefined + ), + }), + }; +} diff --git a/sdk/constructive-react/src/remote/schema-types.ts b/sdk/constructive-react/src/remote/schema-types.ts index 0ece215dde..cf115c911b 100644 --- a/sdk/constructive-react/src/remote/schema-types.ts +++ b/sdk/constructive-react/src/remote/schema-types.ts @@ -693,21 +693,27 @@ export interface UpdateMachineSessionPayload { /** Information about a database table */ export interface MetaTable { constraints: MetaConstraints; + /** Description written for this table, or null */ + description?: string | null; fields: MetaField[]; foreignKeyConstraints: MetaForeignKeyConstraint[]; - /** i18n metadata (null if no @i18n tag) */ + /** i18n metadata (null if the table is not translatable) */ i18n?: MetaI18n | null; indexes: MetaIndex[]; inflection: MetaInflection; + /** Whether this table only links rows of two other tables; the link appears in their manyToMany relations */ + isJunction: boolean; + /** 'table' when rows are stored in this table, 'view' when they come from a view of other tables */ + kind: string; /** Final GraphQL output type name */ name: string; primaryKeyConstraints: MetaPrimaryKeyConstraint[]; query: MetaQuery; - /** Realtime metadata (null if no @realtime tag) */ + /** Realtime metadata (null if the table has no change subscriptions) */ realtime?: MetaRealtime | null; relations: MetaRelations; schemaName: string; - /** Provisioning scope metadata (null if no @scope tag) */ + /** Provisioning scope metadata (null if the table has no scope) */ scope?: MetaScope | null; /** Search metadata (null if no search configured) */ search?: MetaSearch | null; @@ -754,15 +760,27 @@ export interface MetaConstraints { } /** Information about a table field/column */ export interface MetaField { + /** Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. */ + allowedValues?: string[] | null; /** PostgreSQL column name */ columnName: string; description?: string | null; /** Enum metadata if this field has an enum type */ enumValues?: MetaEnum | null; + /** Set when the field holds files; null otherwise. Set on a table's own fields only. */ + file?: MetaFileField | null; hasDefault: boolean; + /** Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. */ + isComputed?: boolean | null; isForeignKey: boolean; isNotNull: boolean; isPrimaryKey: boolean; + /** Whether a create must provide this field. Set on a table's own fields only. */ + isRequiredOnCreate?: boolean | null; + /** Whether a create may set this field. Set on a table's own fields only. */ + isWritableOnCreate?: boolean | null; + /** Whether an update may change this field. Set on a table's own fields only. */ + isWritableOnUpdate?: boolean | null; /** Final GraphQL field name */ name: string; type: MetaType; @@ -776,7 +794,7 @@ export interface MetaForeignKeyConstraint { referencedFields: string[]; referencedTable: string; } -/** i18n metadata for a table with @i18n tag */ +/** i18n metadata for a translatable table */ export interface MetaI18n { /** Fields that are translatable */ translatableFields: MetaI18nField[]; @@ -791,7 +809,7 @@ export interface MetaIndex { isUnique: boolean; name: string; } -/** Table inflection names */ +/** Type and field names generated for this table */ export interface MetaInflection { allRows: string; conditionType: string; @@ -819,7 +837,7 @@ export interface MetaQuery { one?: string | null; update?: string | null; } -/** Realtime metadata for a table with @realtime tag */ +/** Realtime metadata for a table with change subscriptions */ export interface MetaRealtime { /** The generated subscription field name (e.g. onPostChanged) */ subscriptionFieldName: string; @@ -834,13 +852,13 @@ export interface MetaRelations { } /** Provisioning scope metadata for a table */ export interface MetaScope { - /** SQL name of the entity table for entity scopes, else null */ + /** Name of the entity table for entity scopes, else null */ entityTable?: string | null; - /** Inflected scope key column (e.g. databaseId, orgId), null for global tiers */ + /** Field name of the scope key (e.g. databaseId, orgId), null for global tiers */ keyColumn?: string | null; /** Provisioning scope: 'platform', 'app', 'database', or an entity scope (e.g. 'org') */ scope: string; - /** Provenance of the scope metadata (always 'smartTag') */ + /** Where this scope metadata comes from */ source: string; /** Coarse bucket: 'global', 'database', or 'entity' */ tier: string; @@ -858,17 +876,17 @@ export interface MetaSearch { } /** Storage metadata for a table */ export interface MetaStorage { - /** GraphQL type name of the plane's buckets table */ + /** GraphQL type name of the paired buckets table */ bucketsType: string; /** Computed download-URL field on the files type; null on the buckets side */ downloadUrlField?: string | null; - /** GraphQL type name of the plane's files table */ + /** GraphQL type name of the paired files table */ filesType: string; /** Whether this table is a storage buckets table */ isBucketsTable: boolean; /** Whether this table is a storage files table */ isFilesTable: boolean; - /** The plane's GraphQL upload surface */ + /** Upload mutations and types for this storage */ upload: MetaStorageUpload; } /** Information about a unique constraint */ @@ -883,6 +901,15 @@ export interface MetaEnum { /** Allowed values for this enum */ values: string[]; } +/** How a field holds files */ +export interface MetaFileField { + /** GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise */ + filesType?: string | null; + /** Whether the field holds a list of files */ + isMultiple: boolean; + /** image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. */ + kind: string; +} /** Information about a PostgreSQL type */ export interface MetaType { /** Scalar serialization contract (null for plain scalars) */ @@ -891,7 +918,13 @@ export interface MetaType { hasDefault?: boolean | null; isArray: boolean; isNotNull?: boolean | null; + /** Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. */ + maxLength?: number | null; pgType: string; + /** Most significant digits a decimal number may hold. Null when unbounded. */ + precision?: number | null; + /** Digits a decimal number keeps after the decimal point. Null when unbounded. */ + scale?: number | null; subtype?: string | null; } /** Reference to a related table */ @@ -910,6 +943,8 @@ export interface MetaBelongsToRelation { fieldName?: string | null; isUnique: boolean; keys: MetaField[]; + /** Fields on the referenced table that keys point at, in the same order as keys */ + refKeys: MetaField[]; references: MetaRefTable; type?: string | null; } @@ -919,6 +954,8 @@ export interface MetaHasRelation { isUnique: boolean; keys: MetaField[]; referencedBy: MetaRefTable; + /** Fields on the related table that point at this table, in the same order as keys */ + remoteKeys: MetaField[]; type?: string | null; } /** A many-to-many relation via junction table */ @@ -941,7 +978,7 @@ export interface MetaSearchColumn { /** Column name (camelCase) */ name: string; } -/** Per-table search configuration from @searchConfig smart tag */ +/** Per-table search configuration */ export interface MetaSearchConfig { /** Exponential decay factor per day */ boostRecencyDecay?: number | null; @@ -952,7 +989,7 @@ export interface MetaSearchConfig { /** JSON-encoded per-adapter score weights */ weights?: string | null; } -/** The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from */ +/** The upload mutations and types for a storage table pair */ export interface MetaStorageUpload { /** Per-file input type inside the bulk input */ bulkFileInputType: string; @@ -970,14 +1007,14 @@ export interface MetaStorageUpload { mutation: string; /** Payload type of the single upload mutation */ payloadType: string; - /** Whether the upload input requires ownerId (entity-keyed plane) */ + /** Whether the upload input requires ownerId */ requiresOwnerId: boolean; } -/** How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. */ +/** How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. */ export interface MetaScalarEncoding { /** For 'vector': declared length, else null. */ dimensions?: number | null; - /** For 'ltree': values are dot-separated path strings. */ + /** For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). */ dotPath?: boolean | null; /** For 'vector': element scalar (e.g. 'float'). */ elementType?: string | null; diff --git a/sdk/constructive-react/src/storage/hooks/README.md b/sdk/constructive-react/src/storage/hooks/README.md index f98635d8d2..9d4bc2df02 100644 --- a/sdk/constructive-react/src/storage/hooks/README.md +++ b/sdk/constructive-react/src/storage/hooks/README.md @@ -39,7 +39,6 @@ function App() { | `useDeleteBucketMutation` | Mutation | Logical storage containers that group files with shared access policies and CDN behavior | | `useFilesQuery` | Query | Individual file records within buckets, with immutable identity fields and mutable metadata | | `useFileQuery` | Query | Individual file records within buckets, with immutable identity fields and mutable metadata | -| `useCreateFileMutation` | Mutation | Individual file records within buckets, with immutable identity fields and mutable metadata | | `useUpdateFileMutation` | Mutation | Individual file records within buckets, with immutable identity fields and mutable metadata | | `useDeleteFileMutation` | Mutation | Individual file records within buckets, with immutable identity fields and mutable metadata | | `usePlatformBucketsQuery` | Query | Logical storage containers that group files with shared access policies and CDN behavior | @@ -49,7 +48,6 @@ function App() { | `useDeletePlatformBucketMutation` | Mutation | Logical storage containers that group files with shared access policies and CDN behavior | | `usePlatformFilesQuery` | Query | Individual file records within buckets, with immutable identity fields and mutable metadata | | `usePlatformFileQuery` | Query | Individual file records within buckets, with immutable identity fields and mutable metadata | -| `useCreatePlatformFileMutation` | Mutation | Individual file records within buckets, with immutable identity fields and mutable metadata | | `useUpdatePlatformFileMutation` | Mutation | Individual file records within buckets, with immutable identity fields and mutable metadata | | `useDeletePlatformFileMutation` | Mutation | Individual file records within buckets, with immutable identity fields and mutable metadata | | `useFilesRenameMutation` | Mutation | filesRename | @@ -93,20 +91,15 @@ create({ actorId: '', allowCustomKeys: '', allowedMimeTypes: '', - selection: { fields: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }, + selection: { fields: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true, uploadUrl: true, uploadVersions: true } }, }); -// Create a file -const { mutate: create } = useCreateFileMutation({ - selection: { fields: { id: true } }, -}); -create({ actorId: '', bucketId: '', contentHash: '', databaseId: '', description: '', downloadUrl: '', expiryEnqueuedAt: '', filePath: '', filename: '', isPublic: '', key: '', mimeType: '', promotedAt: '', size: '', status: '', tags: '', upload: '' }); ``` ### PlatformBucket @@ -135,20 +128,15 @@ create({ actorId: '', allowCustomKeys: '', allowedMimeTypes: '', - selection: { fields: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }, + selection: { fields: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true, uploadUrl: true, uploadVersions: true } }, }); -// Create a platformFile -const { mutate: create } = useCreatePlatformFileMutation({ - selection: { fields: { id: true } }, -}); -create({ actorId: '', bucketId: '', contentHash: '', description: '', downloadUrl: '', expiryEnqueuedAt: '', filePath: '', filename: '', isPublic: '', key: '', mimeType: '', promotedAt: '', size: '', status: '', tags: '', upload: '' }); ``` ## Custom Operation Hooks diff --git a/sdk/constructive-react/src/storage/hooks/mutations/index.ts b/sdk/constructive-react/src/storage/hooks/mutations/index.ts index 4e6b23d8ce..669e451b24 100644 --- a/sdk/constructive-react/src/storage/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/storage/hooks/mutations/index.ts @@ -6,13 +6,11 @@ export * from './useCreateBucketMutation'; export * from './useUpdateBucketMutation'; export * from './useDeleteBucketMutation'; -export * from './useCreateFileMutation'; export * from './useUpdateFileMutation'; export * from './useDeleteFileMutation'; export * from './useCreatePlatformBucketMutation'; export * from './useUpdatePlatformBucketMutation'; export * from './useDeletePlatformBucketMutation'; -export * from './useCreatePlatformFileMutation'; export * from './useUpdatePlatformFileMutation'; export * from './useDeletePlatformFileMutation'; export * from './useFilesRenameMutation'; diff --git a/sdk/constructive-react/src/storage/hooks/mutations/useCreateFileMutation.ts b/sdk/constructive-react/src/storage/hooks/mutations/useCreateFileMutation.ts deleted file mode 100644 index 5ffd68d655..0000000000 --- a/sdk/constructive-react/src/storage/hooks/mutations/useCreateFileMutation.ts +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Individual file records within buckets, with immutable identity fields and mutable metadata - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { fileKeys } from '../query-keys'; -import { fileMutationKeys } from '../mutation-keys'; -import type { FileSelect, FileWithRelations, CreateFileInput } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { FileSelect, FileWithRelations, CreateFileInput } from '../../orm/input-types'; -/** - * Individual file records within buckets, with immutable identity fields and mutable metadata - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateFileMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateFileMutation( - params: { - selection: { - fields: S & FileSelect; - } & HookStrictSelect, FileSelect>; - } & Omit< - UseMutationOptions< - { - createFile: { - file: InferSelectResult; - }; - }, - Error, - CreateFileInput['file'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createFile: { - file: InferSelectResult; - }; - }, - Error, - CreateFileInput['file'] ->; -export function useCreateFileMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: fileMutationKeys.create(), - mutationFn: (data: CreateFileInput['file']) => - getClient() - .file.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: fileKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/storage/hooks/mutations/useCreatePlatformFileMutation.ts b/sdk/constructive-react/src/storage/hooks/mutations/useCreatePlatformFileMutation.ts deleted file mode 100644 index cb39e8a539..0000000000 --- a/sdk/constructive-react/src/storage/hooks/mutations/useCreatePlatformFileMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Individual file records within buckets, with immutable identity fields and mutable metadata - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFileKeys } from '../query-keys'; -import { platformFileMutationKeys } from '../mutation-keys'; -import type { - PlatformFileSelect, - PlatformFileWithRelations, - CreatePlatformFileInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - PlatformFileSelect, - PlatformFileWithRelations, - CreatePlatformFileInput, -} from '../../orm/input-types'; -/** - * Individual file records within buckets, with immutable identity fields and mutable metadata - * - * @example - * ```tsx - * const { mutate, isPending } = useCreatePlatformFileMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreatePlatformFileMutation( - params: { - selection: { - fields: S & PlatformFileSelect; - } & HookStrictSelect, PlatformFileSelect>; - } & Omit< - UseMutationOptions< - { - createPlatformFile: { - platformFile: InferSelectResult; - }; - }, - Error, - CreatePlatformFileInput['platformFile'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createPlatformFile: { - platformFile: InferSelectResult; - }; - }, - Error, - CreatePlatformFileInput['platformFile'] ->; -export function useCreatePlatformFileMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: platformFileMutationKeys.create(), - mutationFn: (data: CreatePlatformFileInput['platformFile']) => - getClient() - .platformFile.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: platformFileKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/storage/orm/README.md b/sdk/constructive-react/src/storage/orm/README.md index a4e42cc98d..cafc1e5a6a 100644 --- a/sdk/constructive-react/src/storage/orm/README.md +++ b/sdk/constructive-react/src/storage/orm/README.md @@ -22,9 +22,9 @@ const db = createClient({ | Model | Operations | |-------|------------| | `bucket` | findMany, findOne, create, update, delete | -| `file` | findMany, findOne, create, update, delete | +| `file` | findMany, findOne, update, delete | | `platformBucket` | findMany, findOne, create, update, delete | -| `platformFile` | findMany, findOne, create, update, delete | +| `platformFile` | findMany, findOne, update, delete | ## Table Operations @@ -98,23 +98,23 @@ CRUD operations for File records. | `key` | String | Yes | | `mimeType` | String | Yes | | `promotedAt` | Datetime | Yes | +| `rejectionReason` | String | Yes | | `size` | BigInt | Yes | | `status` | FileStatus | Yes | | `tags` | String | Yes | | `updatedAt` | Datetime | No | | `upload` | ConstructiveInternalTypeUpload | Yes | +| `uploadUrl` | String | Yes | +| `uploadVersions` | FileVersion | Yes | **Operations:** ```typescript // List all file records -const items = await db.file.findMany({ select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); +const items = await db.file.findMany({ select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true, uploadUrl: true, uploadVersions: true } }).execute(); // Get one by id -const item = await db.file.findOne({ id: '', select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); - -// Create -const created = await db.file.create({ data: { actorId: '', bucketId: '', contentHash: '', databaseId: '', description: '', downloadUrl: '', expiryEnqueuedAt: '', filePath: '', filename: '', isPublic: '', key: '', mimeType: '', promotedAt: '', size: '', status: '', tags: '', upload: '' }, select: { id: true } }).execute(); +const item = await db.file.findOne({ id: '', select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true, uploadUrl: true, uploadVersions: true } }).execute(); // Update const updated = await db.file.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -191,23 +191,23 @@ CRUD operations for PlatformFile records. | `key` | String | Yes | | `mimeType` | String | Yes | | `promotedAt` | Datetime | Yes | +| `rejectionReason` | String | Yes | | `size` | BigInt | Yes | | `status` | FileStatus | Yes | | `tags` | String | Yes | | `updatedAt` | Datetime | No | | `upload` | ConstructiveInternalTypeUpload | Yes | +| `uploadUrl` | String | Yes | +| `uploadVersions` | FileVersion | Yes | **Operations:** ```typescript // List all platformFile records -const items = await db.platformFile.findMany({ select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); +const items = await db.platformFile.findMany({ select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true, uploadUrl: true, uploadVersions: true } }).execute(); // Get one by id -const item = await db.platformFile.findOne({ id: '', select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); - -// Create -const created = await db.platformFile.create({ data: { actorId: '', bucketId: '', contentHash: '', description: '', downloadUrl: '', expiryEnqueuedAt: '', filePath: '', filename: '', isPublic: '', key: '', mimeType: '', promotedAt: '', size: '', status: '', tags: '', upload: '' }, select: { id: true } }).execute(); +const item = await db.platformFile.findOne({ id: '', select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true, uploadUrl: true, uploadVersions: true } }).execute(); // Update const updated = await db.platformFile.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -295,7 +295,7 @@ Upload multiple files: resolves the bucket by key, creates file rows, and return | `input` | UploadFileBulkInput (required) | ```typescript -const result = await db.mutation.uploadFiles({ input: { bucketKey: '', files: '', isPublic: '' } }).execute(); +const result = await db.mutation.uploadFiles({ input: { bucketKey: '', databaseId: '', files: '', isPublic: '' } }).execute(); ``` ### `db.mutation.uploadPlatformFile` diff --git a/sdk/constructive-react/src/storage/orm/input-types.ts b/sdk/constructive-react/src/storage/orm/input-types.ts index ffb823c7ee..91cc57b1e1 100644 --- a/sdk/constructive-react/src/storage/orm/input-types.ts +++ b/sdk/constructive-react/src/storage/orm/input-types.ts @@ -232,9 +232,10 @@ export interface UUIDListFilter { } // ============ Enum Types ============ export type BucketType = 'PRIVATE' | 'PUBLIC' | 'TEMP'; -export type FileStatus = 'EXPIRED' | 'PROCESSED' | 'REJECTED' | 'REQUESTED' | 'UPLOADED'; +export type FileStatus = 'PROCESSED' | 'REJECTED' | 'REQUESTED' | 'UPLOADED'; // ============ Custom Scalar Types ============ export type ConstructiveInternalTypeUpload = unknown; +export type FileVersion = unknown; /** Logical storage containers that group files with shared access policies and CDN behavior */ // ============ Entity Types ============ export interface Bucket { @@ -287,7 +288,7 @@ export interface File { databaseId?: string | null; /** Human-readable description or alt text for the file (mutable) */ description?: string | null; - /** URL to download this file. For public files, returns the public URL. For private files, returns a time-limited presigned URL. */ + /** URL to download this file. For public files, returns the public URL. For private files, returns a time-limited presigned URL. Null until the upload is confirmed (status uploaded or processed), and for a rejected file. */ downloadUrl?: string | null; /** When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. */ expiryEnqueuedAt?: string | null; @@ -303,15 +304,21 @@ export interface File { mimeType?: string | null; /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ promotedAt?: string | null; + /** Why the upload was rejected (declared MIME, extension and magic bytes disagreed, size mismatch, ...). NULL unless status is rejected. */ + rejectionReason?: string | null; /** File size in bytes. Immutable after INSERT. */ size?: string | null; - /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ + /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes). A requested row whose bytes never arrive within upload_url_expiry_seconds is deleted by the confirm loop. */ status?: FileStatus | null; /** User-defined tags for categorization and search (mutable) */ tags?: string[] | null; updatedAt?: string | null; /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ upload?: ConstructiveInternalTypeUpload | null; + /** URL to fetch `upload`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + uploadUrl?: string | null; + /** The versions rendered beside `upload`, narrowest first, each with a URL. Empty when there are none. */ + uploadVersions?: FileVersion[] | null; } /** Logical storage containers that group files with shared access policies and CDN behavior */ export interface PlatformBucket { @@ -360,7 +367,7 @@ export interface PlatformFile { createdAt?: string | null; /** Human-readable description or alt text for the file (mutable) */ description?: string | null; - /** URL to download this file. For public files, returns the public URL. For private files, returns a time-limited presigned URL. */ + /** URL to download this file. For public files, returns the public URL. For private files, returns a time-limited presigned URL. Null until the upload is confirmed (status uploaded or processed), and for a rejected file. */ downloadUrl?: string | null; /** When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. */ expiryEnqueuedAt?: string | null; @@ -376,15 +383,21 @@ export interface PlatformFile { mimeType?: string | null; /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ promotedAt?: string | null; + /** Why the upload was rejected (declared MIME, extension and magic bytes disagreed, size mismatch, ...). NULL unless status is rejected. */ + rejectionReason?: string | null; /** File size in bytes. Immutable after INSERT. */ size?: string | null; - /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ + /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes). A requested row whose bytes never arrive within upload_url_expiry_seconds is deleted by the confirm loop. */ status?: FileStatus | null; /** User-defined tags for categorization and search (mutable) */ tags?: string[] | null; updatedAt?: string | null; /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ upload?: ConstructiveInternalTypeUpload | null; + /** URL to fetch `upload`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + uploadUrl?: string | null; + /** The versions rendered beside `upload`, narrowest first, each with a URL. Empty when there are none. */ + uploadVersions?: FileVersion[] | null; } // ============ Relation Helper Types ============ export interface ConnectionResult { @@ -473,11 +486,19 @@ export type FileSelect = { key?: boolean; mimeType?: boolean; promotedAt?: boolean; + rejectionReason?: boolean; size?: boolean; status?: boolean; tags?: boolean; updatedAt?: boolean; upload?: boolean; + uploadUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + uploadVersions?: boolean; bucket?: { select: BucketSelect; }; @@ -532,11 +553,19 @@ export type PlatformFileSelect = { key?: boolean; mimeType?: boolean; promotedAt?: boolean; + rejectionReason?: boolean; size?: boolean; status?: boolean; tags?: boolean; updatedAt?: boolean; upload?: boolean; + uploadUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + uploadVersions?: boolean; bucket?: { select: PlatformBucketSelect; }; @@ -633,6 +662,8 @@ export interface FileFilter { or?: FileFilter[]; /** Filter by the object’s `promotedAt` field. */ promotedAt?: DatetimeFilter; + /** Filter by the object’s `rejectionReason` field. */ + rejectionReason?: StringFilter; /** Filter by the object’s `size` field. */ size?: BigIntFilter; /** Filter by the object’s `status` field. */ @@ -731,6 +762,8 @@ export interface PlatformFileFilter { or?: PlatformFileFilter[]; /** Filter by the object’s `promotedAt` field. */ promotedAt?: DatetimeFilter; + /** Filter by the object’s `rejectionReason` field. */ + rejectionReason?: StringFilter; /** Filter by the object’s `size` field. */ size?: BigIntFilter; /** Filter by the object’s `status` field. */ @@ -813,6 +846,8 @@ export type FileOrderBy = | 'PRIMARY_KEY_DESC' | 'PROMOTED_AT_ASC' | 'PROMOTED_AT_DESC' + | 'REJECTION_REASON_ASC' + | 'REJECTION_REASON_DESC' | 'SIZE_ASC' | 'SIZE_DESC' | 'STATUS_ASC' @@ -889,6 +924,8 @@ export type PlatformFileOrderBy = | 'PRIMARY_KEY_DESC' | 'PROMOTED_AT_ASC' | 'PROMOTED_AT_DESC' + | 'REJECTION_REASON_ASC' + | 'REJECTION_REASON_DESC' | 'SIZE_ASC' | 'SIZE_DESC' | 'STATUS_ASC' @@ -946,24 +983,6 @@ export interface DeleteBucketInput { clientMutationId?: string; id: string; } -export interface CreateFileInput { - clientMutationId?: string; - file: { - actorId: string; - bucketId: string; - contentHash?: string; - description?: string; - expiryEnqueuedAt?: string; - filename?: string; - key: string; - mimeType: string; - promotedAt?: string; - size: string; - status?: FileStatus; - tags?: string[]; - upload?: ConstructiveInternalTypeUpload; - }; -} export interface FilePatch { actorId?: string | null; bucketId?: string | null; @@ -976,11 +995,11 @@ export interface FilePatch { key?: string | null; mimeType?: string | null; promotedAt?: string | null; + rejectionReason?: string | null; size?: string | null; status?: FileStatus | null; tags?: string[] | null; upload?: ConstructiveInternalTypeUpload | null; - uploadUpload?: File | null; } export interface UpdateFileInput { clientMutationId?: string; @@ -1035,24 +1054,6 @@ export interface DeletePlatformBucketInput { clientMutationId?: string; id: string; } -export interface CreatePlatformFileInput { - clientMutationId?: string; - platformFile: { - actorId: string; - bucketId: string; - contentHash?: string; - description?: string; - expiryEnqueuedAt?: string; - filename?: string; - key: string; - mimeType: string; - promotedAt?: string; - size: string; - status?: FileStatus; - tags?: string[]; - upload?: ConstructiveInternalTypeUpload; - }; -} export interface PlatformFilePatch { actorId?: string | null; bucketId?: string | null; @@ -1064,11 +1065,11 @@ export interface PlatformFilePatch { key?: string | null; mimeType?: string | null; promotedAt?: string | null; + rejectionReason?: string | null; size?: string | null; status?: FileStatus | null; tags?: string[] | null; upload?: ConstructiveInternalTypeUpload | null; - uploadUpload?: File | null; } export interface UpdatePlatformFileInput { clientMutationId?: string; @@ -1117,6 +1118,8 @@ export interface UploadFileInput { contentHash: string; /** MIME type of the file */ contentType: string; + /** Database the file belongs to. Omit for the database of the current session; a caller who is not a member of the named database is refused. */ + databaseId?: string; /** Original filename (optional) */ filename?: string; /** Which default bucket to resolve when bucketKey is omitted: the public one (true) or the private one (default false). Ignored when bucketKey is given. */ @@ -1129,6 +1132,8 @@ export interface UploadFileInput { export interface UploadFileBulkInput { /** Bucket key (e.g., "public", "private"). Omit to use the database's default bucket for the requested access. */ bucketKey?: string; + /** Database the file belongs to. Omit for the database of the current session; a caller who is not a member of the named database is refused. */ + databaseId?: string; /** Array of files to upload */ files: UploadFileBulkFileInput[]; /** Which default bucket to resolve when bucketKey is omitted. Ignored when bucketKey is given. */ @@ -1359,38 +1364,6 @@ export interface IntervalInput { /** A quantity of years. */ years?: number; } -/** An input for mutations affecting `File` */ -export interface FileInput { - /** User who uploaded this file. Forced to current_user_id() on INSERT. Used for UPDATE/DELETE authorization. */ - actorId: string; - /** Bucket this file belongs to. Determines owner_id and is_public via inheritance trigger. */ - bucketId: string; - /** SHA-256 content hash for integrity verification and dedup. In default mode, equals the S3 key. In custom key mode, stored separately. */ - contentHash?: string; - createdAt?: string; - /** Human-readable description or alt text for the file (mutable) */ - description?: string; - /** When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. */ - expiryEnqueuedAt?: string; - /** Original filename provided by the uploader. Used for display and Content-Disposition header on download. */ - filename?: string; - id?: string; - /** S3 object key for this file, unique within its bucket */ - key: string; - /** MIME type of the file (e.g. image/png, application/pdf). Immutable after INSERT. */ - mimeType: string; - /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ - promotedAt?: string; - /** File size in bytes. Immutable after INSERT. */ - size: string; - /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ - status?: FileStatus; - /** User-defined tags for categorization and search (mutable) */ - tags?: string[]; - updatedAt?: string; - /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ - upload?: ConstructiveInternalTypeUpload; -} /** An input for mutations affecting `PlatformBucket` */ export interface PlatformBucketInput { /** User who created this bucket. Forced to current_user_id() on INSERT. */ @@ -1425,38 +1398,6 @@ export interface PlatformBucketInput { type?: BucketType; updatedAt?: string; } -/** An input for mutations affecting `PlatformFile` */ -export interface PlatformFileInput { - /** User who uploaded this file. Forced to current_user_id() on INSERT. Used for UPDATE/DELETE authorization. */ - actorId: string; - /** Bucket this file belongs to. Determines owner_id and is_public via inheritance trigger. */ - bucketId: string; - /** SHA-256 content hash for integrity verification and dedup. In default mode, equals the S3 key. In custom key mode, stored separately. */ - contentHash?: string; - createdAt?: string; - /** Human-readable description or alt text for the file (mutable) */ - description?: string; - /** When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. */ - expiryEnqueuedAt?: string; - /** Original filename provided by the uploader. Used for display and Content-Disposition header on download. */ - filename?: string; - id?: string; - /** S3 object key for this file, unique within its bucket */ - key: string; - /** MIME type of the file (e.g. image/png, application/pdf). Immutable after INSERT. */ - mimeType: string; - /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ - promotedAt?: string; - /** File size in bytes. Immutable after INSERT. */ - size: string; - /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ - status?: FileStatus; - /** User-defined tags for categorization and search (mutable) */ - tags?: string[]; - updatedAt?: string; - /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ - upload?: ConstructiveInternalTypeUpload; -} export interface UploadFileBulkFileInput { /** SHA-256 content hash (hex-encoded, 64 chars) */ contentHash: string; @@ -1574,6 +1515,8 @@ export interface FileFilter { or?: FileFilter[]; /** Filter by the object’s `promotedAt` field. */ promotedAt?: DatetimeFilter; + /** Filter by the object’s `rejectionReason` field. */ + rejectionReason?: StringFilter; /** Filter by the object’s `size` field. */ size?: BigIntFilter; /** Filter by the object’s `status` field. */ @@ -1674,6 +1617,8 @@ export interface PlatformFileFilter { or?: PlatformFileFilter[]; /** Filter by the object’s `promotedAt` field. */ promotedAt?: DatetimeFilter; + /** Filter by the object’s `rejectionReason` field. */ + rejectionReason?: StringFilter; /** Filter by the object’s `size` field. */ size?: BigIntFilter; /** Filter by the object’s `status` field. */ @@ -1956,6 +1901,8 @@ export interface UploadFilePayload { fileId: string; /** The S3 object key */ key: string; + /** The exact headers the PUT to uploadUrl must send (Content-Type and every header the URL is signed over, e.g. x-amz-checksum-sha256 and x-amz-meta-upload-id). Forward them as-is. Null if deduplicated. */ + uploadHeaders?: Record | null; /** Presigned PUT URL (null if deduplicated) */ uploadUrl?: string | null; } @@ -1965,6 +1912,7 @@ export type UploadFilePayloadSelect = { file?: boolean; fileId?: boolean; key?: boolean; + uploadHeaders?: boolean; uploadUrl?: boolean; }; export interface UploadFileBulkPayload { @@ -1986,6 +1934,8 @@ export interface UploadPlatformFilePayload { fileId: string; /** The S3 object key */ key: string; + /** The exact headers the PUT to uploadUrl must send (Content-Type and every header the URL is signed over, e.g. x-amz-checksum-sha256 and x-amz-meta-upload-id). Forward them as-is. Null if deduplicated. */ + uploadHeaders?: Record | null; /** Presigned PUT URL (null if deduplicated) */ uploadUrl?: string | null; } @@ -1995,6 +1945,7 @@ export type UploadPlatformFilePayloadSelect = { file?: boolean; fileId?: boolean; key?: boolean; + uploadHeaders?: boolean; uploadUrl?: boolean; }; export interface UploadPlatformFileBulkPayload { @@ -2050,21 +2001,6 @@ export type DeleteBucketPayloadSelect = { }; clientMutationId?: boolean; }; -export interface CreateFilePayload { - clientMutationId?: string | null; - /** The `File` that was created by this mutation. */ - file?: File | null; - fileEdge?: FileEdge | null; -} -export type CreateFilePayloadSelect = { - clientMutationId?: boolean; - file?: { - select: FileSelect; - }; - fileEdge?: { - select: FileEdgeSelect; - }; -}; export interface UpdateFilePayload { clientMutationId?: string | null; /** The `File` that was updated by this mutation. */ @@ -2140,21 +2076,6 @@ export type DeletePlatformBucketPayloadSelect = { select: PlatformBucketEdgeSelect; }; }; -export interface CreatePlatformFilePayload { - clientMutationId?: string | null; - /** The `PlatformFile` that was created by this mutation. */ - platformFile?: PlatformFile | null; - platformFileEdge?: PlatformFileEdge | null; -} -export type CreatePlatformFilePayloadSelect = { - clientMutationId?: boolean; - platformFile?: { - select: PlatformFileSelect; - }; - platformFileEdge?: { - select: PlatformFileEdgeSelect; - }; -}; export interface UpdatePlatformFilePayload { clientMutationId?: string | null; /** The `PlatformFile` that was updated by this mutation. */ @@ -2216,6 +2137,8 @@ export interface UploadFileBulkFilePayload { file?: Record | null; fileId: string; key: string; + /** The exact headers the PUT to uploadUrl must send. */ + uploadHeaders?: Record | null; uploadUrl?: string | null; } export type UploadFileBulkFilePayloadSelect = { @@ -2224,6 +2147,7 @@ export type UploadFileBulkFilePayloadSelect = { file?: boolean; fileId?: boolean; key?: boolean; + uploadHeaders?: boolean; uploadUrl?: boolean; }; export interface UploadPlatformFileBulkFilePayload { @@ -2233,6 +2157,8 @@ export interface UploadPlatformFileBulkFilePayload { file?: Record | null; fileId: string; key: string; + /** The exact headers the PUT to uploadUrl must send. */ + uploadHeaders?: Record | null; uploadUrl?: string | null; } export type UploadPlatformFileBulkFilePayloadSelect = { @@ -2241,6 +2167,7 @@ export type UploadPlatformFileBulkFilePayloadSelect = { file?: boolean; fileId?: boolean; key?: boolean; + uploadHeaders?: boolean; uploadUrl?: boolean; }; /** A `Bucket` edge in the connection. */ diff --git a/sdk/constructive-react/src/storage/orm/models/file.ts b/sdk/constructive-react/src/storage/orm/models/file.ts index a2d0e48ee3..e702b67170 100644 --- a/sdk/constructive-react/src/storage/orm/models/file.ts +++ b/sdk/constructive-react/src/storage/orm/models/file.ts @@ -29,7 +29,6 @@ import type { FileSelect, FileFilter, FileOrderBy, - CreateFileInput, UpdateFileInput, FilePatch, } from '../input-types'; @@ -144,33 +143,6 @@ export class FileModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createFile: { - file: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'File', - 'createFile', - 'file', - args.select, - args.data, - 'CreateFileInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'File', - fieldName: 'createFile', - document, - variables, - }); - } update( args: UpdateArgs< S, diff --git a/sdk/constructive-react/src/storage/orm/models/platformFile.ts b/sdk/constructive-react/src/storage/orm/models/platformFile.ts index bfc7890e99..921d7f3f92 100644 --- a/sdk/constructive-react/src/storage/orm/models/platformFile.ts +++ b/sdk/constructive-react/src/storage/orm/models/platformFile.ts @@ -29,7 +29,6 @@ import type { PlatformFileSelect, PlatformFileFilter, PlatformFileOrderBy, - CreatePlatformFileInput, UpdatePlatformFileInput, PlatformFilePatch, } from '../input-types'; @@ -144,33 +143,6 @@ export class PlatformFileModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformFile: { - platformFile: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformFile', - 'createPlatformFile', - 'platformFile', - args.select, - args.data, - 'CreatePlatformFileInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformFile', - fieldName: 'createPlatformFile', - document, - variables, - }); - } update( args: UpdateArgs< S, diff --git a/sdk/constructive-react/src/storage/schema-types.ts b/sdk/constructive-react/src/storage/schema-types.ts index d5b64054a0..f05f4bf06f 100644 --- a/sdk/constructive-react/src/storage/schema-types.ts +++ b/sdk/constructive-react/src/storage/schema-types.ts @@ -101,6 +101,8 @@ export type FileOrderBy = | 'PRIMARY_KEY_DESC' | 'PROMOTED_AT_ASC' | 'PROMOTED_AT_DESC' + | 'REJECTION_REASON_ASC' + | 'REJECTION_REASON_DESC' | 'SIZE_ASC' | 'SIZE_DESC' | 'STATUS_ASC' @@ -111,7 +113,7 @@ export type FileOrderBy = | 'UPDATED_AT_DESC' | 'UPLOAD_ASC' | 'UPLOAD_DESC'; -export type FileStatus = 'EXPIRED' | 'PROCESSED' | 'REJECTED' | 'REQUESTED' | 'UPLOADED'; +export type FileStatus = 'PROCESSED' | 'REJECTED' | 'REQUESTED' | 'UPLOADED'; /** Methods to use when ordering `PlatformBucket`. */ export type PlatformBucketOrderBy = | 'ACTOR_ID_ASC' @@ -180,6 +182,8 @@ export type PlatformFileOrderBy = | 'PRIMARY_KEY_DESC' | 'PROMOTED_AT_ASC' | 'PROMOTED_AT_DESC' + | 'REJECTION_REASON_ASC' + | 'REJECTION_REASON_DESC' | 'SIZE_ASC' | 'SIZE_DESC' | 'STATUS_ASC' @@ -402,21 +406,11 @@ export interface CreateBucketInput { bucket: BucketInput; clientMutationId?: string; } -export interface CreateFileInput { - clientMutationId?: string; - /** The `File` to be created by this mutation. */ - file: FileInput; -} export interface CreatePlatformBucketInput { clientMutationId?: string; /** The `PlatformBucket` to be created by this mutation. */ platformBucket: PlatformBucketInput; } -export interface CreatePlatformFileInput { - clientMutationId?: string; - /** The `PlatformFile` to be created by this mutation. */ - platformFile: PlatformFileInput; -} export interface DeleteBucketInput { clientMutationId?: string; id: string; @@ -469,6 +463,8 @@ export interface FileFilter { or?: FileFilter[]; /** Filter by the object’s `promotedAt` field. */ promotedAt?: DatetimeFilter; + /** Filter by the object’s `rejectionReason` field. */ + rejectionReason?: StringFilter; /** Filter by the object’s `size` field. */ size?: BigIntFilter; /** Filter by the object’s `status` field. */ @@ -480,38 +476,6 @@ export interface FileFilter { /** Filter by the object’s `upload` field. */ upload?: ConstructiveInternalTypeUploadFilter; } -/** An input for mutations affecting `File` */ -export interface FileInput { - /** User who uploaded this file. Forced to current_user_id() on INSERT. Used for UPDATE/DELETE authorization. */ - actorId: string; - /** Bucket this file belongs to. Determines owner_id and is_public via inheritance trigger. */ - bucketId: string; - /** SHA-256 content hash for integrity verification and dedup. In default mode, equals the S3 key. In custom key mode, stored separately. */ - contentHash?: string; - createdAt?: string; - /** Human-readable description or alt text for the file (mutable) */ - description?: string; - /** When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. */ - expiryEnqueuedAt?: string; - /** Original filename provided by the uploader. Used for display and Content-Disposition header on download. */ - filename?: string; - id?: string; - /** S3 object key for this file, unique within its bucket */ - key: string; - /** MIME type of the file (e.g. image/png, application/pdf). Immutable after INSERT. */ - mimeType: string; - /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ - promotedAt?: string; - /** File size in bytes. Immutable after INSERT. */ - size: string; - /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ - status?: FileStatus; - /** User-defined tags for categorization and search (mutable) */ - tags?: string[]; - updatedAt?: string; - /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ - upload?: ConstructiveInternalTypeUpload; -} /** Represents an update to a `File`. Fields that are set will be updated. */ export interface FilePatch { /** User who uploaded this file. Forced to current_user_id() on INSERT. Used for UPDATE/DELETE authorization. */ @@ -538,17 +502,17 @@ export interface FilePatch { mimeType?: string; /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ promotedAt?: string; + /** Why the upload was rejected (declared MIME, extension and magic bytes disagreed, size mismatch, ...). NULL unless status is rejected. */ + rejectionReason?: string; /** File size in bytes. Immutable after INSERT. */ size?: string; - /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ + /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes). A requested row whose bytes never arrive within upload_url_expiry_seconds is deleted by the confirm loop. */ status?: FileStatus; /** User-defined tags for categorization and search (mutable) */ tags?: string[]; updatedAt?: string; /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ upload?: ConstructiveInternalTypeUpload; - /** Upload for Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ - uploadUpload?: File; } /** A filter to be used against FileStatus fields. All fields are combined with a logical ‘and.’ */ export interface FileStatusFilter { @@ -799,6 +763,8 @@ export interface PlatformFileFilter { or?: PlatformFileFilter[]; /** Filter by the object’s `promotedAt` field. */ promotedAt?: DatetimeFilter; + /** Filter by the object’s `rejectionReason` field. */ + rejectionReason?: StringFilter; /** Filter by the object’s `size` field. */ size?: BigIntFilter; /** Filter by the object’s `status` field. */ @@ -810,38 +776,6 @@ export interface PlatformFileFilter { /** Filter by the object’s `upload` field. */ upload?: ConstructiveInternalTypeUploadFilter; } -/** An input for mutations affecting `PlatformFile` */ -export interface PlatformFileInput { - /** User who uploaded this file. Forced to current_user_id() on INSERT. Used for UPDATE/DELETE authorization. */ - actorId: string; - /** Bucket this file belongs to. Determines owner_id and is_public via inheritance trigger. */ - bucketId: string; - /** SHA-256 content hash for integrity verification and dedup. In default mode, equals the S3 key. In custom key mode, stored separately. */ - contentHash?: string; - createdAt?: string; - /** Human-readable description or alt text for the file (mutable) */ - description?: string; - /** When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. */ - expiryEnqueuedAt?: string; - /** Original filename provided by the uploader. Used for display and Content-Disposition header on download. */ - filename?: string; - id?: string; - /** S3 object key for this file, unique within its bucket */ - key: string; - /** MIME type of the file (e.g. image/png, application/pdf). Immutable after INSERT. */ - mimeType: string; - /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ - promotedAt?: string; - /** File size in bytes. Immutable after INSERT. */ - size: string; - /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ - status?: FileStatus; - /** User-defined tags for categorization and search (mutable) */ - tags?: string[]; - updatedAt?: string; - /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ - upload?: ConstructiveInternalTypeUpload; -} /** Represents an update to a `PlatformFile`. Fields that are set will be updated. */ export interface PlatformFilePatch { /** User who uploaded this file. Forced to current_user_id() on INSERT. Used for UPDATE/DELETE authorization. */ @@ -866,17 +800,17 @@ export interface PlatformFilePatch { mimeType?: string; /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ promotedAt?: string; + /** Why the upload was rejected (declared MIME, extension and magic bytes disagreed, size mismatch, ...). NULL unless status is rejected. */ + rejectionReason?: string; /** File size in bytes. Immutable after INSERT. */ size?: string; - /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ + /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes). A requested row whose bytes never arrive within upload_url_expiry_seconds is deleted by the confirm loop. */ status?: FileStatus; /** User-defined tags for categorization and search (mutable) */ tags?: string[]; updatedAt?: string; /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ upload?: ConstructiveInternalTypeUpload; - /** Upload for Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ - uploadUpload?: File; } export interface PlatformFilesRenameInput { clientMutationId?: string; @@ -931,6 +865,8 @@ export interface UploadFileBulkFileInput { export interface UploadFileBulkInput { /** Bucket key (e.g., "public", "private"). Omit to use the database's default bucket for the requested access. */ bucketKey?: string; + /** Database the file belongs to. Omit for the database of the current session; a caller who is not a member of the named database is refused. */ + databaseId?: string; /** Array of files to upload */ files: UploadFileBulkFileInput[]; /** Which default bucket to resolve when bucketKey is omitted. Ignored when bucketKey is given. */ @@ -943,6 +879,8 @@ export interface UploadFileInput { contentHash: string; /** MIME type of the file */ contentType: string; + /** Database the file belongs to. Omit for the database of the current session; a caller who is not a member of the named database is refused. */ + databaseId?: string; /** Original filename (optional) */ filename?: string; /** Which default bucket to resolve when bucketKey is omitted: the public one (true) or the private one (default false). Ignored when bucketKey is given. */ @@ -1026,24 +964,12 @@ export interface CreateBucketPayload { bucketEdge?: BucketEdge | null; clientMutationId?: string | null; } -export interface CreateFilePayload { - clientMutationId?: string | null; - /** The `File` that was created by this mutation. */ - file?: File | null; - fileEdge?: FileEdge | null; -} export interface CreatePlatformBucketPayload { clientMutationId?: string | null; /** The `PlatformBucket` that was created by this mutation. */ platformBucket?: PlatformBucket | null; platformBucketEdge?: PlatformBucketEdge | null; } -export interface CreatePlatformFilePayload { - clientMutationId?: string | null; - /** The `PlatformFile` that was created by this mutation. */ - platformFile?: PlatformFile | null; - platformFileEdge?: PlatformFileEdge | null; -} export interface DeleteBucketPayload { /** The `Bucket` that was deleted by this mutation. */ bucket?: Bucket | null; @@ -1122,6 +1048,8 @@ export interface UploadFilePayload { fileId: string; /** The S3 object key */ key: string; + /** The exact headers the PUT to uploadUrl must send (Content-Type and every header the URL is signed over, e.g. x-amz-checksum-sha256 and x-amz-meta-upload-id). Forward them as-is. Null if deduplicated. */ + uploadHeaders?: unknown | null; /** Presigned PUT URL (null if deduplicated) */ uploadUrl?: string | null; } @@ -1139,6 +1067,8 @@ export interface UploadPlatformFilePayload { fileId: string; /** The S3 object key */ key: string; + /** The exact headers the PUT to uploadUrl must send (Content-Type and every header the URL is signed over, e.g. x-amz-checksum-sha256 and x-amz-meta-upload-id). Forward them as-is. Null if deduplicated. */ + uploadHeaders?: unknown | null; /** Presigned PUT URL (null if deduplicated) */ uploadUrl?: string | null; } @@ -1148,21 +1078,27 @@ export interface UploadPlatformFileBulkPayload { /** Information about a database table */ export interface MetaTable { constraints: MetaConstraints; + /** Description written for this table, or null */ + description?: string | null; fields: MetaField[]; foreignKeyConstraints: MetaForeignKeyConstraint[]; - /** i18n metadata (null if no @i18n tag) */ + /** i18n metadata (null if the table is not translatable) */ i18n?: MetaI18n | null; indexes: MetaIndex[]; inflection: MetaInflection; + /** Whether this table only links rows of two other tables; the link appears in their manyToMany relations */ + isJunction: boolean; + /** 'table' when rows are stored in this table, 'view' when they come from a view of other tables */ + kind: string; /** Final GraphQL output type name */ name: string; primaryKeyConstraints: MetaPrimaryKeyConstraint[]; query: MetaQuery; - /** Realtime metadata (null if no @realtime tag) */ + /** Realtime metadata (null if the table has no change subscriptions) */ realtime?: MetaRealtime | null; relations: MetaRelations; schemaName: string; - /** Provisioning scope metadata (null if no @scope tag) */ + /** Provisioning scope metadata (null if the table has no scope) */ scope?: MetaScope | null; /** Search metadata (null if no search configured) */ search?: MetaSearch | null; @@ -1214,6 +1150,8 @@ export interface UploadFileBulkFilePayload { file?: unknown | null; fileId: string; key: string; + /** The exact headers the PUT to uploadUrl must send. */ + uploadHeaders?: unknown | null; uploadUrl?: string | null; } export interface UploadPlatformFileBulkFilePayload { @@ -1223,6 +1161,8 @@ export interface UploadPlatformFileBulkFilePayload { file?: unknown | null; fileId: string; key: string; + /** The exact headers the PUT to uploadUrl must send. */ + uploadHeaders?: unknown | null; uploadUrl?: string | null; } /** Table constraints */ @@ -1233,15 +1173,27 @@ export interface MetaConstraints { } /** Information about a table field/column */ export interface MetaField { + /** Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. */ + allowedValues?: string[] | null; /** PostgreSQL column name */ columnName: string; description?: string | null; /** Enum metadata if this field has an enum type */ enumValues?: MetaEnum | null; + /** Set when the field holds files; null otherwise. Set on a table's own fields only. */ + file?: MetaFileField | null; hasDefault: boolean; + /** Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. */ + isComputed?: boolean | null; isForeignKey: boolean; isNotNull: boolean; isPrimaryKey: boolean; + /** Whether a create must provide this field. Set on a table's own fields only. */ + isRequiredOnCreate?: boolean | null; + /** Whether a create may set this field. Set on a table's own fields only. */ + isWritableOnCreate?: boolean | null; + /** Whether an update may change this field. Set on a table's own fields only. */ + isWritableOnUpdate?: boolean | null; /** Final GraphQL field name */ name: string; type: MetaType; @@ -1255,7 +1207,7 @@ export interface MetaForeignKeyConstraint { referencedFields: string[]; referencedTable: string; } -/** i18n metadata for a table with @i18n tag */ +/** i18n metadata for a translatable table */ export interface MetaI18n { /** Fields that are translatable */ translatableFields: MetaI18nField[]; @@ -1270,7 +1222,7 @@ export interface MetaIndex { isUnique: boolean; name: string; } -/** Table inflection names */ +/** Type and field names generated for this table */ export interface MetaInflection { allRows: string; conditionType: string; @@ -1298,7 +1250,7 @@ export interface MetaQuery { one?: string | null; update?: string | null; } -/** Realtime metadata for a table with @realtime tag */ +/** Realtime metadata for a table with change subscriptions */ export interface MetaRealtime { /** The generated subscription field name (e.g. onPostChanged) */ subscriptionFieldName: string; @@ -1313,13 +1265,13 @@ export interface MetaRelations { } /** Provisioning scope metadata for a table */ export interface MetaScope { - /** SQL name of the entity table for entity scopes, else null */ + /** Name of the entity table for entity scopes, else null */ entityTable?: string | null; - /** Inflected scope key column (e.g. databaseId, orgId), null for global tiers */ + /** Field name of the scope key (e.g. databaseId, orgId), null for global tiers */ keyColumn?: string | null; /** Provisioning scope: 'platform', 'app', 'database', or an entity scope (e.g. 'org') */ scope: string; - /** Provenance of the scope metadata (always 'smartTag') */ + /** Where this scope metadata comes from */ source: string; /** Coarse bucket: 'global', 'database', or 'entity' */ tier: string; @@ -1337,17 +1289,17 @@ export interface MetaSearch { } /** Storage metadata for a table */ export interface MetaStorage { - /** GraphQL type name of the plane's buckets table */ + /** GraphQL type name of the paired buckets table */ bucketsType: string; /** Computed download-URL field on the files type; null on the buckets side */ downloadUrlField?: string | null; - /** GraphQL type name of the plane's files table */ + /** GraphQL type name of the paired files table */ filesType: string; /** Whether this table is a storage buckets table */ isBucketsTable: boolean; /** Whether this table is a storage files table */ isFilesTable: boolean; - /** The plane's GraphQL upload surface */ + /** Upload mutations and types for this storage */ upload: MetaStorageUpload; } /** Information about a unique constraint */ @@ -1362,6 +1314,15 @@ export interface MetaEnum { /** Allowed values for this enum */ values: string[]; } +/** How a field holds files */ +export interface MetaFileField { + /** GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise */ + filesType?: string | null; + /** Whether the field holds a list of files */ + isMultiple: boolean; + /** image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. */ + kind: string; +} /** Information about a PostgreSQL type */ export interface MetaType { /** Scalar serialization contract (null for plain scalars) */ @@ -1370,7 +1331,13 @@ export interface MetaType { hasDefault?: boolean | null; isArray: boolean; isNotNull?: boolean | null; + /** Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. */ + maxLength?: number | null; pgType: string; + /** Most significant digits a decimal number may hold. Null when unbounded. */ + precision?: number | null; + /** Digits a decimal number keeps after the decimal point. Null when unbounded. */ + scale?: number | null; subtype?: string | null; } /** Reference to a related table */ @@ -1389,6 +1356,8 @@ export interface MetaBelongsToRelation { fieldName?: string | null; isUnique: boolean; keys: MetaField[]; + /** Fields on the referenced table that keys point at, in the same order as keys */ + refKeys: MetaField[]; references: MetaRefTable; type?: string | null; } @@ -1398,6 +1367,8 @@ export interface MetaHasRelation { isUnique: boolean; keys: MetaField[]; referencedBy: MetaRefTable; + /** Fields on the related table that point at this table, in the same order as keys */ + remoteKeys: MetaField[]; type?: string | null; } /** A many-to-many relation via junction table */ @@ -1420,7 +1391,7 @@ export interface MetaSearchColumn { /** Column name (camelCase) */ name: string; } -/** Per-table search configuration from @searchConfig smart tag */ +/** Per-table search configuration */ export interface MetaSearchConfig { /** Exponential decay factor per day */ boostRecencyDecay?: number | null; @@ -1431,7 +1402,7 @@ export interface MetaSearchConfig { /** JSON-encoded per-adapter score weights */ weights?: string | null; } -/** The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from */ +/** The upload mutations and types for a storage table pair */ export interface MetaStorageUpload { /** Per-file input type inside the bulk input */ bulkFileInputType: string; @@ -1449,14 +1420,14 @@ export interface MetaStorageUpload { mutation: string; /** Payload type of the single upload mutation */ payloadType: string; - /** Whether the upload input requires ownerId (entity-keyed plane) */ + /** Whether the upload input requires ownerId */ requiresOwnerId: boolean; } -/** How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. */ +/** How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. */ export interface MetaScalarEncoding { /** For 'vector': declared length, else null. */ dimensions?: number | null; - /** For 'ltree': values are dot-separated path strings. */ + /** For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). */ dotPath?: boolean | null; /** For 'vector': element scalar (e.g. 'float'). */ elementType?: string | null; diff --git a/sdk/constructive-react/src/storage/types.ts b/sdk/constructive-react/src/storage/types.ts index 00e29c3935..b4c344cde1 100644 --- a/sdk/constructive-react/src/storage/types.ts +++ b/sdk/constructive-react/src/storage/types.ts @@ -5,6 +5,7 @@ */ import type { BucketType, FileStatus } from './schema-types'; export type ConstructiveInternalTypeUpload = unknown; +export type FileVersion = unknown; export interface Bucket { actorId: string | null; allowCustomKeys: boolean | null; @@ -42,11 +43,14 @@ export interface File { key: string | null; mimeType: string | null; promotedAt: string | null; + rejectionReason: string | null; size: string | null; status: FileStatus | null; tags: string[] | null; updatedAt: string | null; upload: ConstructiveInternalTypeUpload | null; + uploadUrl: string | null; + uploadVersions: FileVersion[] | null; } export interface PlatformBucket { actorId: string | null; @@ -83,11 +87,14 @@ export interface PlatformFile { key: string | null; mimeType: string | null; promotedAt: string | null; + rejectionReason: string | null; size: string | null; status: FileStatus | null; tags: string[] | null; updatedAt: string | null; upload: ConstructiveInternalTypeUpload | null; + uploadUrl: string | null; + uploadVersions: FileVersion[] | null; } export interface StringFilter { isNull?: boolean; diff --git a/sdk/constructive-react/src/usage/schema-types.ts b/sdk/constructive-react/src/usage/schema-types.ts index b42936303d..fd7fca44b8 100644 --- a/sdk/constructive-react/src/usage/schema-types.ts +++ b/sdk/constructive-react/src/usage/schema-types.ts @@ -2307,21 +2307,27 @@ export interface UpdateOrgLimitWarningPayload { /** Information about a database table */ export interface MetaTable { constraints: MetaConstraints; + /** Description written for this table, or null */ + description?: string | null; fields: MetaField[]; foreignKeyConstraints: MetaForeignKeyConstraint[]; - /** i18n metadata (null if no @i18n tag) */ + /** i18n metadata (null if the table is not translatable) */ i18n?: MetaI18n | null; indexes: MetaIndex[]; inflection: MetaInflection; + /** Whether this table only links rows of two other tables; the link appears in their manyToMany relations */ + isJunction: boolean; + /** 'table' when rows are stored in this table, 'view' when they come from a view of other tables */ + kind: string; /** Final GraphQL output type name */ name: string; primaryKeyConstraints: MetaPrimaryKeyConstraint[]; query: MetaQuery; - /** Realtime metadata (null if no @realtime tag) */ + /** Realtime metadata (null if the table has no change subscriptions) */ realtime?: MetaRealtime | null; relations: MetaRelations; schemaName: string; - /** Provisioning scope metadata (null if no @scope tag) */ + /** Provisioning scope metadata (null if the table has no scope) */ scope?: MetaScope | null; /** Search metadata (null if no search configured) */ search?: MetaSearch | null; @@ -2458,15 +2464,27 @@ export interface MetaConstraints { } /** Information about a table field/column */ export interface MetaField { + /** Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. */ + allowedValues?: string[] | null; /** PostgreSQL column name */ columnName: string; description?: string | null; /** Enum metadata if this field has an enum type */ enumValues?: MetaEnum | null; + /** Set when the field holds files; null otherwise. Set on a table's own fields only. */ + file?: MetaFileField | null; hasDefault: boolean; + /** Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. */ + isComputed?: boolean | null; isForeignKey: boolean; isNotNull: boolean; isPrimaryKey: boolean; + /** Whether a create must provide this field. Set on a table's own fields only. */ + isRequiredOnCreate?: boolean | null; + /** Whether a create may set this field. Set on a table's own fields only. */ + isWritableOnCreate?: boolean | null; + /** Whether an update may change this field. Set on a table's own fields only. */ + isWritableOnUpdate?: boolean | null; /** Final GraphQL field name */ name: string; type: MetaType; @@ -2480,7 +2498,7 @@ export interface MetaForeignKeyConstraint { referencedFields: string[]; referencedTable: string; } -/** i18n metadata for a table with @i18n tag */ +/** i18n metadata for a translatable table */ export interface MetaI18n { /** Fields that are translatable */ translatableFields: MetaI18nField[]; @@ -2495,7 +2513,7 @@ export interface MetaIndex { isUnique: boolean; name: string; } -/** Table inflection names */ +/** Type and field names generated for this table */ export interface MetaInflection { allRows: string; conditionType: string; @@ -2523,7 +2541,7 @@ export interface MetaQuery { one?: string | null; update?: string | null; } -/** Realtime metadata for a table with @realtime tag */ +/** Realtime metadata for a table with change subscriptions */ export interface MetaRealtime { /** The generated subscription field name (e.g. onPostChanged) */ subscriptionFieldName: string; @@ -2538,13 +2556,13 @@ export interface MetaRelations { } /** Provisioning scope metadata for a table */ export interface MetaScope { - /** SQL name of the entity table for entity scopes, else null */ + /** Name of the entity table for entity scopes, else null */ entityTable?: string | null; - /** Inflected scope key column (e.g. databaseId, orgId), null for global tiers */ + /** Field name of the scope key (e.g. databaseId, orgId), null for global tiers */ keyColumn?: string | null; /** Provisioning scope: 'platform', 'app', 'database', or an entity scope (e.g. 'org') */ scope: string; - /** Provenance of the scope metadata (always 'smartTag') */ + /** Where this scope metadata comes from */ source: string; /** Coarse bucket: 'global', 'database', or 'entity' */ tier: string; @@ -2562,17 +2580,17 @@ export interface MetaSearch { } /** Storage metadata for a table */ export interface MetaStorage { - /** GraphQL type name of the plane's buckets table */ + /** GraphQL type name of the paired buckets table */ bucketsType: string; /** Computed download-URL field on the files type; null on the buckets side */ downloadUrlField?: string | null; - /** GraphQL type name of the plane's files table */ + /** GraphQL type name of the paired files table */ filesType: string; /** Whether this table is a storage buckets table */ isBucketsTable: boolean; /** Whether this table is a storage files table */ isFilesTable: boolean; - /** The plane's GraphQL upload surface */ + /** Upload mutations and types for this storage */ upload: MetaStorageUpload; } /** Information about a unique constraint */ @@ -2587,6 +2605,15 @@ export interface MetaEnum { /** Allowed values for this enum */ values: string[]; } +/** How a field holds files */ +export interface MetaFileField { + /** GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise */ + filesType?: string | null; + /** Whether the field holds a list of files */ + isMultiple: boolean; + /** image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. */ + kind: string; +} /** Information about a PostgreSQL type */ export interface MetaType { /** Scalar serialization contract (null for plain scalars) */ @@ -2595,7 +2622,13 @@ export interface MetaType { hasDefault?: boolean | null; isArray: boolean; isNotNull?: boolean | null; + /** Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. */ + maxLength?: number | null; pgType: string; + /** Most significant digits a decimal number may hold. Null when unbounded. */ + precision?: number | null; + /** Digits a decimal number keeps after the decimal point. Null when unbounded. */ + scale?: number | null; subtype?: string | null; } /** Reference to a related table */ @@ -2614,6 +2647,8 @@ export interface MetaBelongsToRelation { fieldName?: string | null; isUnique: boolean; keys: MetaField[]; + /** Fields on the referenced table that keys point at, in the same order as keys */ + refKeys: MetaField[]; references: MetaRefTable; type?: string | null; } @@ -2623,6 +2658,8 @@ export interface MetaHasRelation { isUnique: boolean; keys: MetaField[]; referencedBy: MetaRefTable; + /** Fields on the related table that point at this table, in the same order as keys */ + remoteKeys: MetaField[]; type?: string | null; } /** A many-to-many relation via junction table */ @@ -2645,7 +2682,7 @@ export interface MetaSearchColumn { /** Column name (camelCase) */ name: string; } -/** Per-table search configuration from @searchConfig smart tag */ +/** Per-table search configuration */ export interface MetaSearchConfig { /** Exponential decay factor per day */ boostRecencyDecay?: number | null; @@ -2656,7 +2693,7 @@ export interface MetaSearchConfig { /** JSON-encoded per-adapter score weights */ weights?: string | null; } -/** The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from */ +/** The upload mutations and types for a storage table pair */ export interface MetaStorageUpload { /** Per-file input type inside the bulk input */ bulkFileInputType: string; @@ -2674,14 +2711,14 @@ export interface MetaStorageUpload { mutation: string; /** Payload type of the single upload mutation */ payloadType: string; - /** Whether the upload input requires ownerId (entity-keyed plane) */ + /** Whether the upload input requires ownerId */ requiresOwnerId: boolean; } -/** How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. */ +/** How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. */ export interface MetaScalarEncoding { /** For 'vector': declared length, else null. */ dimensions?: number | null; - /** For 'ltree': values are dot-separated path strings. */ + /** For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). */ dotPath?: boolean | null; /** For 'vector': element scalar (e.g. 'float'). */ elementType?: string | null; diff --git a/sdk/constructive-sdk/schemas/admin.graphql b/sdk/constructive-sdk/schemas/admin.graphql index 6bdd4ad99b..5df04aceba 100644 --- a/sdk/constructive-sdk/schemas/admin.graphql +++ b/sdk/constructive-sdk/schemas/admin.graphql @@ -3464,6 +3464,17 @@ type DeleteOrgOwnerGrantPayload { query: Query } +"""One version rendered beside a file, with a URL to fetch it.""" +type FileVersion { + format: String + height: Int + key: String! + name: String + size: Int + url: String! + width: Int +} + """ A filter to be used against Int fields. All fields are combined with a logical ‘and.’ """ @@ -3780,6 +3791,11 @@ type MetaBelongsToRelation { fieldName: String isUnique: Boolean! keys: [MetaField!]! + + """ + Fields on the referenced table that keys point at, in the same order as keys + """ + refKeys: [MetaField!]! references: MetaRefTable! type: String } @@ -3802,22 +3818,66 @@ type MetaEnum { """Information about a table field/column""" type MetaField { + """ + Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. + """ + allowedValues: [String!] + """PostgreSQL column name""" columnName: String! description: String """Enum metadata if this field has an enum type""" enumValues: MetaEnum + + """ + Set when the field holds files; null otherwise. Set on a table's own fields only. + """ + file: MetaFileField hasDefault: Boolean! + + """ + Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. + """ + isComputed: Boolean isForeignKey: Boolean! isNotNull: Boolean! isPrimaryKey: Boolean! + """ + Whether a create must provide this field. Set on a table's own fields only. + """ + isRequiredOnCreate: Boolean + + """Whether a create may set this field. Set on a table's own fields only.""" + isWritableOnCreate: Boolean + + """ + Whether an update may change this field. Set on a table's own fields only. + """ + isWritableOnUpdate: Boolean + """Final GraphQL field name""" name: String! type: MetaType! } +"""How a field holds files""" +type MetaFileField { + """ + GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise + """ + filesType: String + + """Whether the field holds a list of files""" + isMultiple: Boolean! + + """ + image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. + """ + kind: String! +} + """Information about a foreign key constraint""" type MetaForeignKeyConstraint { fields: [MetaField!]! @@ -3834,10 +3894,15 @@ type MetaHasRelation { isUnique: Boolean! keys: [MetaField!]! referencedBy: MetaRefTable! + + """ + Fields on the related table that point at this table, in the same order as keys + """ + remoteKeys: [MetaField!]! type: String } -"""i18n metadata for a table with @i18n tag""" +"""i18n metadata for a translatable table""" type MetaI18n { """Fields that are translatable""" translatableFields: [MetaI18nField!]! @@ -3864,7 +3929,7 @@ type MetaIndex { name: String! } -"""Table inflection names""" +"""Type and field names generated for this table""" type MetaInflection { allRows: String! conditionType: String! @@ -3909,7 +3974,7 @@ type MetaQuery { update: String } -"""Realtime metadata for a table with @realtime tag""" +"""Realtime metadata for a table with change subscriptions""" type MetaRealtime { """The generated subscription field name (e.g. onPostChanged)""" subscriptionFieldName: String! @@ -3930,13 +3995,15 @@ type MetaRelations { } """ -How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. +How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. """ type MetaScalarEncoding { """For 'vector': declared length, else null.""" dimensions: Int - """For 'ltree': values are dot-separated path strings.""" + """ + For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). + """ dotPath: Boolean """For 'vector': element scalar (e.g. 'float').""" @@ -3961,11 +4028,11 @@ type MetaSchema { """Provisioning scope metadata for a table""" type MetaScope { - """SQL name of the entity table for entity scopes, else null""" + """Name of the entity table for entity scopes, else null""" entityTable: String """ - Inflected scope key column (e.g. databaseId, orgId), null for global tiers + Field name of the scope key (e.g. databaseId, orgId), null for global tiers """ keyColumn: String @@ -3974,7 +4041,7 @@ type MetaScope { """ scope: String! - """Provenance of the scope metadata (always 'smartTag')""" + """Where this scope metadata comes from""" source: String! """Coarse bucket: 'global', 'database', or 'entity'""" @@ -4005,7 +4072,7 @@ type MetaSearchColumn { name: String! } -"""Per-table search configuration from @searchConfig smart tag""" +"""Per-table search configuration""" type MetaSearchConfig { """Exponential decay factor per day""" boostRecencyDecay: Float @@ -4022,7 +4089,7 @@ type MetaSearchConfig { """Storage metadata for a table""" type MetaStorage { - """GraphQL type name of the plane's buckets table""" + """GraphQL type name of the paired buckets table""" bucketsType: String! """ @@ -4030,7 +4097,7 @@ type MetaStorage { """ downloadUrlField: String - """GraphQL type name of the plane's files table""" + """GraphQL type name of the paired files table""" filesType: String! """Whether this table is a storage buckets table""" @@ -4039,13 +4106,11 @@ type MetaStorage { """Whether this table is a storage files table""" isFilesTable: Boolean! - """The plane's GraphQL upload surface""" + """Upload mutations and types for this storage""" upload: MetaStorageUpload! } -""" -The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from -""" +"""The upload mutations and types for a storage table pair""" type MetaStorageUpload { """Per-file input type inside the bulk input""" bulkFileInputType: String! @@ -4071,32 +4136,45 @@ type MetaStorageUpload { """Payload type of the single upload mutation""" payloadType: String! - """Whether the upload input requires ownerId (entity-keyed plane)""" + """Whether the upload input requires ownerId""" requiresOwnerId: Boolean! } """Information about a database table""" type MetaTable { constraints: MetaConstraints! + + """Description written for this table, or null""" + description: String fields: [MetaField!]! foreignKeyConstraints: [MetaForeignKeyConstraint!]! - """i18n metadata (null if no @i18n tag)""" + """i18n metadata (null if the table is not translatable)""" i18n: MetaI18n indexes: [MetaIndex!]! inflection: MetaInflection! + """ + Whether this table only links rows of two other tables; the link appears in their manyToMany relations + """ + isJunction: Boolean! + + """ + 'table' when rows are stored in this table, 'view' when they come from a view of other tables + """ + kind: String! + """Final GraphQL output type name""" name: String! primaryKeyConstraints: [MetaPrimaryKeyConstraint!]! query: MetaQuery! - """Realtime metadata (null if no @realtime tag)""" + """Realtime metadata (null if the table has no change subscriptions)""" realtime: MetaRealtime relations: MetaRelations! schemaName: String! - """Provisioning scope metadata (null if no @scope tag)""" + """Provisioning scope metadata (null if the table has no scope)""" scope: MetaScope """Search metadata (null if no search configured)""" @@ -4118,7 +4196,22 @@ type MetaType { hasDefault: Boolean isArray: Boolean! isNotNull: Boolean + + """ + Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. + """ + maxLength: Int pgType: String! + + """ + Most significant digits a decimal number may hold. Null when unbounded. + """ + precision: Int + + """ + Digits a decimal number keeps after the decimal point. Null when unbounded. + """ + scale: Int subtype: String } @@ -6399,6 +6492,21 @@ type OrgMemberProfile { """Profile picture visible to other entity members""" profilePicture: ConstructiveInternalTypeImage + """ + URL to fetch `profilePicture`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. + """ + profilePictureUrl( + """ + The width the file will be shown at, in device pixels. Without a version that wide, the source. + """ + width: Int + ): String + + """ + The versions rendered beside `profilePicture`, narrowest first, each with a URL. Empty when there are none. + """ + profilePictureVersions: [FileVersion!] + """Job title or role description visible to other entity members""" title: String updatedAt: Datetime @@ -6572,9 +6680,6 @@ input OrgMemberProfilePatch { """Profile picture visible to other entity members""" profilePicture: ConstructiveInternalTypeImage - """Upload for Profile picture visible to other entity members""" - profilePictureUpload: Upload - """Job title or role description visible to other entity members""" title: String updatedAt: Datetime @@ -9640,7 +9745,4 @@ type UpdateOrgOwnerGrantPayload { Our root query field type. Allows us to run any query from our mutation payload. """ query: Query -} - -"""The `Upload` scalar type represents a file upload.""" -scalar Upload \ No newline at end of file +} \ No newline at end of file diff --git a/sdk/constructive-sdk/schemas/agent.graphql b/sdk/constructive-sdk/schemas/agent.graphql index bb8461a2b1..f12fa8f459 100644 --- a/sdk/constructive-sdk/schemas/agent.graphql +++ b/sdk/constructive-sdk/schemas/agent.graphql @@ -1602,6 +1602,12 @@ type AgentResource { """ descriptionTrgmSimilarity: Float embedding: Vector + embeddingModel: String + + """ + TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. + """ + embeddingModelTrgmSimilarity: Float embeddingUpdatedAt: Datetime """ @@ -1775,7 +1781,7 @@ input AgentResourceChunkInput { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String id: UUID @@ -1828,7 +1834,7 @@ input AgentResourceChunkPatch { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String id: UUID @@ -1899,6 +1905,9 @@ input AgentResourceFilter { """Filter by the object’s `embedding` field.""" embedding: VectorFilter + """Filter by the object’s `embeddingModel` field.""" + embeddingModel: StringTrgmFilter + """Filter by the object’s `embeddingUpdatedAt` field.""" embeddingUpdatedAt: DatetimeFilter @@ -1941,6 +1950,9 @@ input AgentResourceFilter { """TRGM search on the `description` column.""" trgmDescription: TrgmSearchInput + """TRGM search on the `embedding_model` column.""" + trgmEmbeddingModel: TrgmSearchInput + """TRGM search on the `kind` column.""" trgmKind: TrgmSearchInput @@ -1991,7 +2003,7 @@ input AgentResourceInput { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String id: UUID @@ -2043,6 +2055,10 @@ enum AgentResourceOrderBy { DESCRIPTION_TRGM_SIMILARITY_DESC EMBEDDING_ASC EMBEDDING_DESC + EMBEDDING_MODEL_ASC + EMBEDDING_MODEL_DESC + EMBEDDING_MODEL_TRGM_SIMILARITY_ASC + EMBEDDING_MODEL_TRGM_SIMILARITY_DESC EMBEDDING_UPDATED_AT_ASC EMBEDDING_UPDATED_AT_DESC EMBEDDING_VECTOR_DISTANCE_ASC @@ -2105,7 +2121,7 @@ input AgentResourcePatch { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String id: UUID @@ -5848,6 +5864,11 @@ type MetaBelongsToRelation { fieldName: String isUnique: Boolean! keys: [MetaField!]! + + """ + Fields on the referenced table that keys point at, in the same order as keys + """ + refKeys: [MetaField!]! references: MetaRefTable! type: String } @@ -5870,22 +5891,66 @@ type MetaEnum { """Information about a table field/column""" type MetaField { + """ + Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. + """ + allowedValues: [String!] + """PostgreSQL column name""" columnName: String! description: String """Enum metadata if this field has an enum type""" enumValues: MetaEnum + + """ + Set when the field holds files; null otherwise. Set on a table's own fields only. + """ + file: MetaFileField hasDefault: Boolean! + + """ + Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. + """ + isComputed: Boolean isForeignKey: Boolean! isNotNull: Boolean! isPrimaryKey: Boolean! + """ + Whether a create must provide this field. Set on a table's own fields only. + """ + isRequiredOnCreate: Boolean + + """Whether a create may set this field. Set on a table's own fields only.""" + isWritableOnCreate: Boolean + + """ + Whether an update may change this field. Set on a table's own fields only. + """ + isWritableOnUpdate: Boolean + """Final GraphQL field name""" name: String! type: MetaType! } +"""How a field holds files""" +type MetaFileField { + """ + GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise + """ + filesType: String + + """Whether the field holds a list of files""" + isMultiple: Boolean! + + """ + image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. + """ + kind: String! +} + """Information about a foreign key constraint""" type MetaForeignKeyConstraint { fields: [MetaField!]! @@ -5902,10 +5967,15 @@ type MetaHasRelation { isUnique: Boolean! keys: [MetaField!]! referencedBy: MetaRefTable! + + """ + Fields on the related table that point at this table, in the same order as keys + """ + remoteKeys: [MetaField!]! type: String } -"""i18n metadata for a table with @i18n tag""" +"""i18n metadata for a translatable table""" type MetaI18n { """Fields that are translatable""" translatableFields: [MetaI18nField!]! @@ -5932,7 +6002,7 @@ type MetaIndex { name: String! } -"""Table inflection names""" +"""Type and field names generated for this table""" type MetaInflection { allRows: String! conditionType: String! @@ -5977,7 +6047,7 @@ type MetaQuery { update: String } -"""Realtime metadata for a table with @realtime tag""" +"""Realtime metadata for a table with change subscriptions""" type MetaRealtime { """The generated subscription field name (e.g. onPostChanged)""" subscriptionFieldName: String! @@ -5998,13 +6068,15 @@ type MetaRelations { } """ -How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. +How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. """ type MetaScalarEncoding { """For 'vector': declared length, else null.""" dimensions: Int - """For 'ltree': values are dot-separated path strings.""" + """ + For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). + """ dotPath: Boolean """For 'vector': element scalar (e.g. 'float').""" @@ -6029,11 +6101,11 @@ type MetaSchema { """Provisioning scope metadata for a table""" type MetaScope { - """SQL name of the entity table for entity scopes, else null""" + """Name of the entity table for entity scopes, else null""" entityTable: String """ - Inflected scope key column (e.g. databaseId, orgId), null for global tiers + Field name of the scope key (e.g. databaseId, orgId), null for global tiers """ keyColumn: String @@ -6042,7 +6114,7 @@ type MetaScope { """ scope: String! - """Provenance of the scope metadata (always 'smartTag')""" + """Where this scope metadata comes from""" source: String! """Coarse bucket: 'global', 'database', or 'entity'""" @@ -6073,7 +6145,7 @@ type MetaSearchColumn { name: String! } -"""Per-table search configuration from @searchConfig smart tag""" +"""Per-table search configuration""" type MetaSearchConfig { """Exponential decay factor per day""" boostRecencyDecay: Float @@ -6090,7 +6162,7 @@ type MetaSearchConfig { """Storage metadata for a table""" type MetaStorage { - """GraphQL type name of the plane's buckets table""" + """GraphQL type name of the paired buckets table""" bucketsType: String! """ @@ -6098,7 +6170,7 @@ type MetaStorage { """ downloadUrlField: String - """GraphQL type name of the plane's files table""" + """GraphQL type name of the paired files table""" filesType: String! """Whether this table is a storage buckets table""" @@ -6107,13 +6179,11 @@ type MetaStorage { """Whether this table is a storage files table""" isFilesTable: Boolean! - """The plane's GraphQL upload surface""" + """Upload mutations and types for this storage""" upload: MetaStorageUpload! } -""" -The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from -""" +"""The upload mutations and types for a storage table pair""" type MetaStorageUpload { """Per-file input type inside the bulk input""" bulkFileInputType: String! @@ -6139,32 +6209,45 @@ type MetaStorageUpload { """Payload type of the single upload mutation""" payloadType: String! - """Whether the upload input requires ownerId (entity-keyed plane)""" + """Whether the upload input requires ownerId""" requiresOwnerId: Boolean! } """Information about a database table""" type MetaTable { constraints: MetaConstraints! + + """Description written for this table, or null""" + description: String fields: [MetaField!]! foreignKeyConstraints: [MetaForeignKeyConstraint!]! - """i18n metadata (null if no @i18n tag)""" + """i18n metadata (null if the table is not translatable)""" i18n: MetaI18n indexes: [MetaIndex!]! inflection: MetaInflection! + """ + Whether this table only links rows of two other tables; the link appears in their manyToMany relations + """ + isJunction: Boolean! + + """ + 'table' when rows are stored in this table, 'view' when they come from a view of other tables + """ + kind: String! + """Final GraphQL output type name""" name: String! primaryKeyConstraints: [MetaPrimaryKeyConstraint!]! query: MetaQuery! - """Realtime metadata (null if no @realtime tag)""" + """Realtime metadata (null if the table has no change subscriptions)""" realtime: MetaRealtime relations: MetaRelations! schemaName: String! - """Provisioning scope metadata (null if no @scope tag)""" + """Provisioning scope metadata (null if the table has no scope)""" scope: MetaScope """Search metadata (null if no search configured)""" @@ -6186,7 +6269,22 @@ type MetaType { hasDefault: Boolean isArray: Boolean! isNotNull: Boolean + + """ + Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. + """ + maxLength: Int pgType: String! + + """ + Most significant digits a decimal number may hold. Null when unbounded. + """ + precision: Int + + """ + Digits a decimal number keeps after the decimal point. Null when unbounded. + """ + scale: Int subtype: String } @@ -8341,6 +8439,12 @@ type PlatformAgentResource { """ descriptionTrgmSimilarity: Float embedding: Vector + embeddingModel: String + + """ + TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. + """ + embeddingModelTrgmSimilarity: Float embeddingUpdatedAt: Datetime """ @@ -8532,7 +8636,7 @@ input PlatformAgentResourceChunkInput { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String id: UUID @@ -8578,7 +8682,7 @@ input PlatformAgentResourceChunkPatch { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String id: UUID @@ -8643,6 +8747,9 @@ input PlatformAgentResourceFilter { """Filter by the object’s `embedding` field.""" embedding: VectorFilter + """Filter by the object’s `embeddingModel` field.""" + embeddingModel: StringTrgmFilter + """Filter by the object’s `embeddingUpdatedAt` field.""" embeddingUpdatedAt: DatetimeFilter @@ -8691,6 +8798,9 @@ input PlatformAgentResourceFilter { """TRGM search on the `description` column.""" trgmDescription: TrgmSearchInput + """TRGM search on the `embedding_model` column.""" + trgmEmbeddingModel: TrgmSearchInput + """TRGM search on the `kind` column.""" trgmKind: TrgmSearchInput @@ -8738,7 +8848,7 @@ input PlatformAgentResourceInput { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String id: UUID @@ -8788,6 +8898,10 @@ enum PlatformAgentResourceOrderBy { DESCRIPTION_TRGM_SIMILARITY_DESC EMBEDDING_ASC EMBEDDING_DESC + EMBEDDING_MODEL_ASC + EMBEDDING_MODEL_DESC + EMBEDDING_MODEL_TRGM_SIMILARITY_ASC + EMBEDDING_MODEL_TRGM_SIMILARITY_DESC EMBEDDING_UPDATED_AT_ASC EMBEDDING_UPDATED_AT_DESC EMBEDDING_VECTOR_DISTANCE_ASC @@ -8847,7 +8961,7 @@ input PlatformAgentResourcePatch { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String id: UUID @@ -12770,10 +12884,15 @@ input VectorNearbyInput { metric: VectorMetric """ - Natural language text to embed server-side for similarity search. Mutually exclusive with `vector` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + The model that produced `vector`. On a column that records the model of each row's vector, only rows embedded with this model are compared; vectors of two models are not comparable. Filled in server-side when `text` is embedded. + """ + model: String + + """ + Natural language text to embed server-side for similarity search. Provide exactly one of `text` or `vector`; sending both or neither is an error. Blank text on its own counts as not given. Requires the LLM plugin to be configured with an embedding provider. """ text: String """Query vector for similarity search.""" - vector: [Float!]! + vector: [Float!] } \ No newline at end of file diff --git a/sdk/constructive-sdk/schemas/api.graphql b/sdk/constructive-sdk/schemas/api.graphql index bb6ff2a4e3..92450e7e3e 100644 --- a/sdk/constructive-sdk/schemas/api.graphql +++ b/sdk/constructive-sdk/schemas/api.graphql @@ -97,9 +97,6 @@ type Api { """Database that owns this resource (database-scoped isolation)""" databaseId: UUID! - - """Database this API surface serves""" - dbname: String id: UUID! """Whether other scopes may see and route to this API surface""" @@ -110,6 +107,7 @@ type Api { """Authenticated role the API executes as""" roleName: String + serviceHostname: String updatedAt: Datetime } @@ -224,9 +222,6 @@ input ApiFilter { """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter - """Filter by the object’s `dbname` field.""" - dbname: StringFilter - """Filter by the object’s `id` field.""" id: UUIDFilter @@ -260,9 +255,6 @@ input ApiInput { """Database that owns this resource (database-scoped isolation)""" databaseId: UUID! - - """Database this API surface serves""" - dbname: String id: UUID """Whether other scopes may see and route to this API surface""" @@ -286,8 +278,6 @@ enum ApiOrderBy { CREATED_AT_DESC DATABASE_ID_ASC DATABASE_ID_DESC - DBNAME_ASC - DBNAME_DESC ID_ASC ID_DESC IS_PUBLISHED_ASC @@ -314,9 +304,6 @@ input ApiPatch { """Database that owns this resource (database-scoped isolation)""" databaseId: UUID - - """Database this API surface serves""" - dbname: String id: UUID """Whether other scopes may see and route to this API surface""" @@ -495,11 +482,6 @@ type ApiSetting { """ enableConnectionFilter: Boolean - """ - Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) - """ - enableDirectUploads: Boolean - """ Override: enable internationalization plugin (NULL = inherit from database_settings) """ @@ -662,9 +644,6 @@ input ApiSettingFilter { """Filter by the object’s `enableConnectionFilter` field.""" enableConnectionFilter: BooleanFilter - """Filter by the object’s `enableDirectUploads` field.""" - enableDirectUploads: BooleanFilter - """Filter by the object’s `enableI18N` field.""" enableI18N: BooleanFilter @@ -765,11 +744,6 @@ input ApiSettingInput { """ enableConnectionFilter: Boolean - """ - Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) - """ - enableDirectUploads: Boolean - """ Override: enable internationalization plugin (NULL = inherit from database_settings) """ @@ -892,8 +866,6 @@ enum ApiSettingOrderBy { ENABLE_BULK_DESC ENABLE_CONNECTION_FILTER_ASC ENABLE_CONNECTION_FILTER_DESC - ENABLE_DIRECT_UPLOADS_ASC - ENABLE_DIRECT_UPLOADS_DESC ENABLE_I18N_ASC ENABLE_I18N_DESC ENABLE_INTROSPECTION_ASC @@ -971,11 +943,6 @@ input ApiSettingPatch { """ enableConnectionFilter: Boolean - """ - Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) - """ - enableDirectUploads: Boolean - """ Override: enable internationalization plugin (NULL = inherit from database_settings) """ @@ -3517,6 +3484,41 @@ type CreatePlatformPagePayload { query: Query } +"""All input for the create `PlatformReservedSubdomain` mutation.""" +input CreatePlatformReservedSubdomainInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `PlatformReservedSubdomain` to be created by this mutation.""" + platformReservedSubdomain: PlatformReservedSubdomainInput! +} + +"""The output of our create `PlatformReservedSubdomain` mutation.""" +type CreatePlatformReservedSubdomainPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformReservedSubdomain` that was created by this mutation.""" + platformReservedSubdomain: PlatformReservedSubdomain + + """An edge for our `PlatformReservedSubdomain`. May be used by Relay 1.""" + platformReservedSubdomainEdge( + """The method to use when ordering `PlatformReservedSubdomain`.""" + orderBy: [PlatformReservedSubdomainOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformReservedSubdomainEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the create `PlatformSiteAppLink` mutation.""" input CreatePlatformSiteAppLinkInput { """ @@ -6354,9 +6356,6 @@ type DatabaseSetting { """Enable connection filter (where argument) in the GraphQL API""" enableConnectionFilter: Boolean! - """Enable direct (multipart) file upload mutations in the GraphQL API""" - enableDirectUploads: Boolean! - """ Enable internationalization plugin (localeStrings field, translation table discovery) in the GraphQL API """ @@ -6517,9 +6516,6 @@ input DatabaseSettingFilter { """Filter by the object’s `enableConnectionFilter` field.""" enableConnectionFilter: BooleanFilter - """Filter by the object’s `enableDirectUploads` field.""" - enableDirectUploads: BooleanFilter - """Filter by the object’s `enableI18N` field.""" enableI18N: BooleanFilter @@ -6629,9 +6625,6 @@ input DatabaseSettingInput { """Enable connection filter (where argument) in the GraphQL API""" enableConnectionFilter: Boolean - """Enable direct (multipart) file upload mutations in the GraphQL API""" - enableDirectUploads: Boolean - """ Enable internationalization plugin (localeStrings field, translation table discovery) in the GraphQL API """ @@ -6751,8 +6744,6 @@ enum DatabaseSettingOrderBy { ENABLE_BULK_DESC ENABLE_CONNECTION_FILTER_ASC ENABLE_CONNECTION_FILTER_DESC - ENABLE_DIRECT_UPLOADS_ASC - ENABLE_DIRECT_UPLOADS_DESC ENABLE_I18N_ASC ENABLE_I18N_DESC ENABLE_INTROSPECTION_ASC @@ -6838,9 +6829,6 @@ input DatabaseSettingPatch { """Enable connection filter (where argument) in the GraphQL API""" enableConnectionFilter: Boolean - """Enable direct (multipart) file upload mutations in the GraphQL API""" - enableDirectUploads: Boolean - """ Enable internationalization plugin (localeStrings field, translation table discovery) in the GraphQL API """ @@ -9271,6 +9259,39 @@ type DeletePlatformPagePayload { query: Query } +"""All input for the `deletePlatformReservedSubdomain` mutation.""" +input DeletePlatformReservedSubdomainInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `PlatformReservedSubdomain` mutation.""" +type DeletePlatformReservedSubdomainPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformReservedSubdomain` that was deleted by this mutation.""" + platformReservedSubdomain: PlatformReservedSubdomain + + """An edge for our `PlatformReservedSubdomain`. May be used by Relay 1.""" + platformReservedSubdomainEdge( + """The method to use when ordering `PlatformReservedSubdomain`.""" + orderBy: [PlatformReservedSubdomainOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformReservedSubdomainEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the `deletePlatformSiteAppLink` mutation.""" input DeletePlatformSiteAppLinkInput { """ @@ -14025,6 +14046,17 @@ input FieldToManySpatialRelationFilter { some: SpatialRelationFilter } +"""One version rendered beside a file, with a URL to fetch it.""" +type FileVersion { + format: String + height: Int + key: String! + name: String + size: Int + url: String! + width: Int +} + """ A filter to be used against Float fields. All fields are combined with a logical ‘and.’ """ @@ -15795,6 +15827,11 @@ type MetaBelongsToRelation { fieldName: String isUnique: Boolean! keys: [MetaField!]! + + """ + Fields on the referenced table that keys point at, in the same order as keys + """ + refKeys: [MetaField!]! references: MetaRefTable! type: String } @@ -15817,22 +15854,66 @@ type MetaEnum { """Information about a table field/column""" type MetaField { + """ + Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. + """ + allowedValues: [String!] + """PostgreSQL column name""" columnName: String! description: String """Enum metadata if this field has an enum type""" enumValues: MetaEnum + + """ + Set when the field holds files; null otherwise. Set on a table's own fields only. + """ + file: MetaFileField hasDefault: Boolean! + + """ + Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. + """ + isComputed: Boolean isForeignKey: Boolean! isNotNull: Boolean! isPrimaryKey: Boolean! + """ + Whether a create must provide this field. Set on a table's own fields only. + """ + isRequiredOnCreate: Boolean + + """Whether a create may set this field. Set on a table's own fields only.""" + isWritableOnCreate: Boolean + + """ + Whether an update may change this field. Set on a table's own fields only. + """ + isWritableOnUpdate: Boolean + """Final GraphQL field name""" name: String! type: MetaType! } +"""How a field holds files""" +type MetaFileField { + """ + GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise + """ + filesType: String + + """Whether the field holds a list of files""" + isMultiple: Boolean! + + """ + image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. + """ + kind: String! +} + """Information about a foreign key constraint""" type MetaForeignKeyConstraint { fields: [MetaField!]! @@ -15849,10 +15930,15 @@ type MetaHasRelation { isUnique: Boolean! keys: [MetaField!]! referencedBy: MetaRefTable! + + """ + Fields on the related table that point at this table, in the same order as keys + """ + remoteKeys: [MetaField!]! type: String } -"""i18n metadata for a table with @i18n tag""" +"""i18n metadata for a translatable table""" type MetaI18n { """Fields that are translatable""" translatableFields: [MetaI18nField!]! @@ -15879,7 +15965,7 @@ type MetaIndex { name: String! } -"""Table inflection names""" +"""Type and field names generated for this table""" type MetaInflection { allRows: String! conditionType: String! @@ -15924,7 +16010,7 @@ type MetaQuery { update: String } -"""Realtime metadata for a table with @realtime tag""" +"""Realtime metadata for a table with change subscriptions""" type MetaRealtime { """The generated subscription field name (e.g. onPostChanged)""" subscriptionFieldName: String! @@ -15945,13 +16031,15 @@ type MetaRelations { } """ -How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. +How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. """ type MetaScalarEncoding { """For 'vector': declared length, else null.""" dimensions: Int - """For 'ltree': values are dot-separated path strings.""" + """ + For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). + """ dotPath: Boolean """For 'vector': element scalar (e.g. 'float').""" @@ -15976,11 +16064,11 @@ type MetaSchema { """Provisioning scope metadata for a table""" type MetaScope { - """SQL name of the entity table for entity scopes, else null""" + """Name of the entity table for entity scopes, else null""" entityTable: String """ - Inflected scope key column (e.g. databaseId, orgId), null for global tiers + Field name of the scope key (e.g. databaseId, orgId), null for global tiers """ keyColumn: String @@ -15989,7 +16077,7 @@ type MetaScope { """ scope: String! - """Provenance of the scope metadata (always 'smartTag')""" + """Where this scope metadata comes from""" source: String! """Coarse bucket: 'global', 'database', or 'entity'""" @@ -16020,7 +16108,7 @@ type MetaSearchColumn { name: String! } -"""Per-table search configuration from @searchConfig smart tag""" +"""Per-table search configuration""" type MetaSearchConfig { """Exponential decay factor per day""" boostRecencyDecay: Float @@ -16037,7 +16125,7 @@ type MetaSearchConfig { """Storage metadata for a table""" type MetaStorage { - """GraphQL type name of the plane's buckets table""" + """GraphQL type name of the paired buckets table""" bucketsType: String! """ @@ -16045,7 +16133,7 @@ type MetaStorage { """ downloadUrlField: String - """GraphQL type name of the plane's files table""" + """GraphQL type name of the paired files table""" filesType: String! """Whether this table is a storage buckets table""" @@ -16054,13 +16142,11 @@ type MetaStorage { """Whether this table is a storage files table""" isFilesTable: Boolean! - """The plane's GraphQL upload surface""" + """Upload mutations and types for this storage""" upload: MetaStorageUpload! } -""" -The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from -""" +"""The upload mutations and types for a storage table pair""" type MetaStorageUpload { """Per-file input type inside the bulk input""" bulkFileInputType: String! @@ -16086,32 +16172,45 @@ type MetaStorageUpload { """Payload type of the single upload mutation""" payloadType: String! - """Whether the upload input requires ownerId (entity-keyed plane)""" + """Whether the upload input requires ownerId""" requiresOwnerId: Boolean! } """Information about a database table""" type MetaTable { constraints: MetaConstraints! + + """Description written for this table, or null""" + description: String fields: [MetaField!]! foreignKeyConstraints: [MetaForeignKeyConstraint!]! - """i18n metadata (null if no @i18n tag)""" + """i18n metadata (null if the table is not translatable)""" i18n: MetaI18n indexes: [MetaIndex!]! inflection: MetaInflection! + """ + Whether this table only links rows of two other tables; the link appears in their manyToMany relations + """ + isJunction: Boolean! + + """ + 'table' when rows are stored in this table, 'view' when they come from a view of other tables + """ + kind: String! + """Final GraphQL output type name""" name: String! primaryKeyConstraints: [MetaPrimaryKeyConstraint!]! query: MetaQuery! - """Realtime metadata (null if no @realtime tag)""" + """Realtime metadata (null if the table has no change subscriptions)""" realtime: MetaRealtime relations: MetaRelations! schemaName: String! - """Provisioning scope metadata (null if no @scope tag)""" + """Provisioning scope metadata (null if the table has no scope)""" scope: MetaScope """Search metadata (null if no search configured)""" @@ -16133,7 +16232,22 @@ type MetaType { hasDefault: Boolean isArray: Boolean! isNotNull: Boolean + + """ + Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. + """ + maxLength: Int pgType: String! + + """ + Most significant digits a decimal number may hold. Null when unbounded. + """ + precision: Int + + """ + Digits a decimal number keeps after the decimal point. Null when unbounded. + """ + scale: Int subtype: String } @@ -16567,6 +16681,14 @@ type Mutation { input: CreatePlatformPageInput! ): CreatePlatformPagePayload + """Creates a single `PlatformReservedSubdomain`.""" + createPlatformReservedSubdomain( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformReservedSubdomainInput! + ): CreatePlatformReservedSubdomainPayload + """Creates a single `PlatformSite`.""" createPlatformSite( """ @@ -17247,6 +17369,14 @@ type Mutation { input: DeletePlatformPageInput! ): DeletePlatformPagePayload + """Deletes a single `PlatformReservedSubdomain` using a unique key.""" + deletePlatformReservedSubdomain( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformReservedSubdomainInput! + ): DeletePlatformReservedSubdomainPayload + """Deletes a single `PlatformSite` using a unique key.""" deletePlatformSite( """ @@ -18131,6 +18261,16 @@ type Mutation { input: UpdatePlatformPageInput! ): UpdatePlatformPagePayload + """ + Updates a single `PlatformReservedSubdomain` using a unique key and a patch. + """ + updatePlatformReservedSubdomain( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformReservedSubdomainInput! + ): UpdatePlatformReservedSubdomainPayload + """Updates a single `PlatformSite` using a unique key and a patch.""" updatePlatformSite( """ @@ -19101,9 +19241,6 @@ type PlatformApi { """Module-specific configuration for this API surface""" config: JSON createdAt: Datetime - - """Database this API surface serves""" - dbname: String id: UUID! """Whether other scopes may see and route to this API surface""" @@ -19153,6 +19290,7 @@ type PlatformApi { """Authenticated role the API executes as""" roleName: String + serviceHostname: String updatedAt: Datetime } @@ -19198,9 +19336,6 @@ input PlatformApiFilter { """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter - """Filter by the object’s `dbname` field.""" - dbname: StringFilter - """Filter by the object’s `id` field.""" id: UUIDFilter @@ -19249,9 +19384,6 @@ input PlatformApiInput { """Module-specific configuration for this API surface""" config: JSON createdAt: Datetime - - """Database this API surface serves""" - dbname: String id: UUID """Whether other scopes may see and route to this API surface""" @@ -19273,8 +19405,6 @@ enum PlatformApiOrderBy { CONFIG_DESC CREATED_AT_ASC CREATED_AT_DESC - DBNAME_ASC - DBNAME_DESC ID_ASC ID_DESC IS_PUBLISHED_ASC @@ -19300,9 +19430,6 @@ input PlatformApiPatch { """Module-specific configuration for this API surface""" config: JSON createdAt: Datetime - - """Database this API surface serves""" - dbname: String id: UUID """Whether other scopes may see and route to this API surface""" @@ -19470,11 +19597,6 @@ type PlatformApiSetting { """ enableConnectionFilter: Boolean - """ - Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) - """ - enableDirectUploads: Boolean - """ Override: enable internationalization plugin (NULL = inherit from database_settings) """ @@ -19636,9 +19758,6 @@ input PlatformApiSettingFilter { """Filter by the object’s `enableConnectionFilter` field.""" enableConnectionFilter: BooleanFilter - """Filter by the object’s `enableDirectUploads` field.""" - enableDirectUploads: BooleanFilter - """Filter by the object’s `enableI18N` field.""" enableI18N: BooleanFilter @@ -19736,11 +19855,6 @@ input PlatformApiSettingInput { """ enableConnectionFilter: Boolean - """ - Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) - """ - enableDirectUploads: Boolean - """ Override: enable internationalization plugin (NULL = inherit from database_settings) """ @@ -19861,8 +19975,6 @@ enum PlatformApiSettingOrderBy { ENABLE_BULK_DESC ENABLE_CONNECTION_FILTER_ASC ENABLE_CONNECTION_FILTER_DESC - ENABLE_DIRECT_UPLOADS_ASC - ENABLE_DIRECT_UPLOADS_DESC ENABLE_I18N_ASC ENABLE_I18N_DESC ENABLE_INTROSPECTION_ASC @@ -19937,11 +20049,6 @@ input PlatformApiSettingPatch { """ enableConnectionFilter: Boolean - """ - Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) - """ - enableDirectUploads: Boolean - """ Override: enable internationalization plugin (NULL = inherit from database_settings) """ @@ -22591,6 +22698,151 @@ type PlatformProvisionSitePreviewPayload { result: PlatformRoute } +"""Subdomain labels no tenant may claim under a platform apex""" +type PlatformReservedSubdomain { + createdAt: Datetime + createdByPrincipal: UUID + id: UUID! + + """Lowercase subdomain label, or the label prefix/suffix the match names""" + label: String! + + """How the label matches a claimed label: exact, prefix or suffix""" + match: String! + + """Why the label is reserved (free text, e.g. platform, brand, lookalike)""" + reason: String + updatedAt: Datetime + updatedByPrincipal: UUID +} + +"""A connection to a list of `PlatformReservedSubdomain` values.""" +type PlatformReservedSubdomainConnection { + """ + A list of edges which contains the `PlatformReservedSubdomain` and cursor to aid in pagination. + """ + edges: [PlatformReservedSubdomainEdge]! + + """A list of `PlatformReservedSubdomain` objects.""" + nodes: [PlatformReservedSubdomain]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformReservedSubdomain` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformReservedSubdomain` edge in the connection.""" +type PlatformReservedSubdomainEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformReservedSubdomain` at the end of the edge.""" + node: PlatformReservedSubdomain +} + +""" +A filter to be used against `PlatformReservedSubdomain` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformReservedSubdomainFilter { + """Checks for all expressions in this list.""" + and: [PlatformReservedSubdomainFilter!] + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `label` field.""" + label: StringFilter + + """Filter by the object’s `match` field.""" + match: StringFilter + + """Negates the expression.""" + not: PlatformReservedSubdomainFilter + + """Checks for any expressions in this list.""" + or: [PlatformReservedSubdomainFilter!] + + """Filter by the object’s `reason` field.""" + reason: StringFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter +} + +"""An input for mutations affecting `PlatformReservedSubdomain`""" +input PlatformReservedSubdomainInput { + createdAt: Datetime + createdByPrincipal: UUID + id: UUID + + """Lowercase subdomain label, or the label prefix/suffix the match names""" + label: String! + + """How the label matches a claimed label: exact, prefix or suffix""" + match: String + + """Why the label is reserved (free text, e.g. platform, brand, lookalike)""" + reason: String + updatedAt: Datetime + updatedByPrincipal: UUID +} + +"""Methods to use when ordering `PlatformReservedSubdomain`.""" +enum PlatformReservedSubdomainOrderBy { + CREATED_AT_ASC + CREATED_AT_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + ID_ASC + ID_DESC + LABEL_ASC + LABEL_DESC + MATCH_ASC + MATCH_DESC + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + REASON_ASC + REASON_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC +} + +""" +Represents an update to a `PlatformReservedSubdomain`. Fields that are set will be updated. +""" +input PlatformReservedSubdomainPatch { + createdAt: Datetime + createdByPrincipal: UUID + id: UUID + + """Lowercase subdomain label, or the label prefix/suffix the match names""" + label: String + + """How the label matches a claimed label: exact, prefix or suffix""" + match: String + + """Why the label is reserved (free text, e.g. platform, brand, lookalike)""" + reason: String + updatedAt: Datetime + updatedByPrincipal: UUID +} + """Routes binding a domain hostname and path to a typed catalog target""" type PlatformRoute { """ @@ -23672,6 +23924,21 @@ type PlatformSiteMetadatum { """Apple touch icon image (home-screen bookmark)""" appleTouchIcon: ConstructiveInternalTypeImage + """ + URL to fetch `appleTouchIcon`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. + """ + appleTouchIconUrl( + """ + The width the file will be shown at, in device pixels. Without a version that wide, the source. + """ + width: Int + ): String + + """ + The versions rendered beside `appleTouchIcon`, narrowest first, each with a URL. Empty when there are none. + """ + appleTouchIconVersions: [FileVersion!] + """Canonical URL emitted in for this site""" canonicalUrl: String @@ -23686,14 +23953,59 @@ type PlatformSiteMetadatum { """Site favicon image""" favicon: ConstructiveInternalTypeImage + + """ + URL to fetch `favicon`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. + """ + faviconUrl( + """ + The width the file will be shown at, in device pixels. Without a version that wide, the source. + """ + width: Int + ): String + + """ + The versions rendered beside `favicon`, narrowest first, each with a URL. Empty when there are none. + """ + faviconVersions: [FileVersion!] id: UUID! """Primary site logo image""" logo: ConstructiveInternalTypeImage + """ + URL to fetch `logo`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. + """ + logoUrl( + """ + The width the file will be shown at, in device pixels. Without a version that wide, the source. + """ + width: Int + ): String + + """ + The versions rendered beside `logo`, narrowest first, each with a URL. Empty when there are none. + """ + logoVersions: [FileVersion!] + """Open Graph image used when sharing site links""" ogImage: ConstructiveInternalTypeImage + """ + URL to fetch `ogImage`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. + """ + ogImageUrl( + """ + The width the file will be shown at, in device pixels. Without a version that wide, the source. + """ + width: Int + ): String + + """ + The versions rendered beside `ogImage`, narrowest first, each with a URL. Empty when there are none. + """ + ogImageVersions: [FileVersion!] + """robots meta directive (e.g. index,follow / noindex,nofollow)""" robots: String @@ -23902,9 +24214,6 @@ input PlatformSiteMetadatumPatch { """Apple touch icon image (home-screen bookmark)""" appleTouchIcon: ConstructiveInternalTypeImage - """Upload for Apple touch icon image (home-screen bookmark)""" - appleTouchIconUpload: Upload - """Canonical URL emitted in for this site""" canonicalUrl: String @@ -23919,23 +24228,14 @@ input PlatformSiteMetadatumPatch { """Site favicon image""" favicon: ConstructiveInternalTypeImage - - """Upload for Site favicon image""" - faviconUpload: Upload id: UUID """Primary site logo image""" logo: ConstructiveInternalTypeImage - """Upload for Primary site logo image""" - logoUpload: Upload - """Open Graph image used when sharing site links""" ogImage: ConstructiveInternalTypeImage - """Upload for Open Graph image used when sharing site links""" - ogImageUpload: Upload - """robots meta directive (e.g. index,follow / noindex,nofollow)""" robots: String @@ -25711,7 +26011,6 @@ type Query { Metadata about the database schema, including tables, fields, indexes, and constraints. Useful for code generation tools. """ _meta: MetaSchema - apiSchemaNames(targetApiId: UUID): JSON """Reads and enables pagination through a set of `ApiSchema`.""" apiSchemas( @@ -27118,6 +27417,37 @@ type Query { where: PlatformPageFilter ): PlatformPageConnection + """ + Reads and enables pagination through a set of `PlatformReservedSubdomain`. + """ + platformReservedSubdomains( + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """The method to use when ordering `PlatformReservedSubdomain`.""" + orderBy: [PlatformReservedSubdomainOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformReservedSubdomainFilter + ): PlatformReservedSubdomainConnection + """Reads and enables pagination through a set of `PlatformSiteAppLink`.""" platformSiteAppLinks( """Read all values in the set after (below) this cursor.""" @@ -27497,9 +27827,6 @@ type Query { """ where: RedirectFilter ): RedirectConnection - resolveDeepLink(linkSlug: String, targetSiteId: UUID): JSON - resolveRoute(requestHost: String, requestMethod: String, requestPath: String): ResolveRouteRecord - resolveSiteAppLinks(targetSiteId: UUID): JSON """Reads and enables pagination through a set of `RlsSetting`.""" rlsSettings( @@ -28609,26 +28936,6 @@ type RequestDatabasePayload { result: DatabaseProvisionModule } -type ResolveRouteRecord { - domainId: UUID - hostname: String - matchedPath: String - matchedWildcard: Boolean - method: String - priority: Int - resolvedConfig: JSON - routeBindingId: UUID - servingLane: String - targetCatalogId: UUID - targetModule: String - targetOwnerKey: UUID - targetOwnerScope: String - targetSourceId: UUID - tlsSecretName: String - tlsStatus: String - verificationStatus: String -} - """ RLS module runtime configuration; typed references to the authenticate/current_role function plumbing """ @@ -31239,6 +31546,21 @@ type SiteMetadatum { """Apple touch icon image (home-screen bookmark)""" appleTouchIcon: ConstructiveInternalTypeImage + """ + URL to fetch `appleTouchIcon`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. + """ + appleTouchIconUrl( + """ + The width the file will be shown at, in device pixels. Without a version that wide, the source. + """ + width: Int + ): String + + """ + The versions rendered beside `appleTouchIcon`, narrowest first, each with a URL. Empty when there are none. + """ + appleTouchIconVersions: [FileVersion!] + """Canonical URL emitted in for this site""" canonicalUrl: String @@ -31256,14 +31578,59 @@ type SiteMetadatum { """Site favicon image""" favicon: ConstructiveInternalTypeImage + + """ + URL to fetch `favicon`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. + """ + faviconUrl( + """ + The width the file will be shown at, in device pixels. Without a version that wide, the source. + """ + width: Int + ): String + + """ + The versions rendered beside `favicon`, narrowest first, each with a URL. Empty when there are none. + """ + faviconVersions: [FileVersion!] id: UUID! """Primary site logo image""" logo: ConstructiveInternalTypeImage + """ + URL to fetch `logo`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. + """ + logoUrl( + """ + The width the file will be shown at, in device pixels. Without a version that wide, the source. + """ + width: Int + ): String + + """ + The versions rendered beside `logo`, narrowest first, each with a URL. Empty when there are none. + """ + logoVersions: [FileVersion!] + """Open Graph image used when sharing site links""" ogImage: ConstructiveInternalTypeImage + """ + URL to fetch `ogImage`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. + """ + ogImageUrl( + """ + The width the file will be shown at, in device pixels. Without a version that wide, the source. + """ + width: Int + ): String + + """ + The versions rendered beside `ogImage`, narrowest first, each with a URL. Empty when there are none. + """ + ogImageVersions: [FileVersion!] + """robots meta directive (e.g. index,follow / noindex,nofollow)""" robots: String @@ -31476,9 +31843,6 @@ input SiteMetadatumPatch { """Apple touch icon image (home-screen bookmark)""" appleTouchIcon: ConstructiveInternalTypeImage - """Upload for Apple touch icon image (home-screen bookmark)""" - appleTouchIconUpload: Upload - """Canonical URL emitted in for this site""" canonicalUrl: String @@ -31496,23 +31860,14 @@ input SiteMetadatumPatch { """Site favicon image""" favicon: ConstructiveInternalTypeImage - - """Upload for Site favicon image""" - faviconUpload: Upload id: UUID """Primary site logo image""" logo: ConstructiveInternalTypeImage - """Upload for Primary site logo image""" - logoUpload: Upload - """Open Graph image used when sharing site links""" ogImage: ConstructiveInternalTypeImage - """Upload for Open Graph image used when sharing site links""" - ogImageUpload: Upload - """robots meta directive (e.g. index,follow / noindex,nofollow)""" robots: String @@ -37294,6 +37649,44 @@ type UpdatePlatformPagePayload { query: Query } +"""All input for the `updatePlatformReservedSubdomain` mutation.""" +input UpdatePlatformReservedSubdomainInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `PlatformReservedSubdomain` being updated. + """ + platformReservedSubdomainPatch: PlatformReservedSubdomainPatch! +} + +"""The output of our update `PlatformReservedSubdomain` mutation.""" +type UpdatePlatformReservedSubdomainPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformReservedSubdomain` that was updated by this mutation.""" + platformReservedSubdomain: PlatformReservedSubdomain + + """An edge for our `PlatformReservedSubdomain`. May be used by Relay 1.""" + platformReservedSubdomainEdge( + """The method to use when ordering `PlatformReservedSubdomain`.""" + orderBy: [PlatformReservedSubdomainOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformReservedSubdomainEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the `updatePlatformSiteAppLink` mutation.""" input UpdatePlatformSiteAppLinkInput { """ @@ -38814,9 +39207,6 @@ type UpdateWebauthnSettingPayload { ): WebauthnSettingEdge } -"""The `Upload` scalar type represents a file upload.""" -scalar Upload - type View { category: ObjectCategory! checkOption: String diff --git a/sdk/constructive-sdk/schemas/auth.graphql b/sdk/constructive-sdk/schemas/auth.graphql index d529ed5b31..7a6a8c0199 100644 --- a/sdk/constructive-sdk/schemas/auth.graphql +++ b/sdk/constructive-sdk/schemas/auth.graphql @@ -2250,6 +2250,67 @@ type EnableTotpPayload { result: String } +"""All input for the `ensureAuthCsrf` mutation.""" +input EnsureAuthCsrfInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + existingToken: String +} + +"""The output of our `ensureAuthCsrf` mutation.""" +type EnsureAuthCsrfPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + result: String +} + +"""All input for the `exchangeNativeHandoff` mutation.""" +input ExchangeNativeHandoffInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + code: String + codeVerifier: String + credentialKind: String +} + +"""The output of our `exchangeNativeHandoff` mutation.""" +type ExchangeNativeHandoffPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + result: ExchangeNativeHandoffRecord +} + +type ExchangeNativeHandoffRecord { + accessToken: String + accessTokenExpiresAt: Datetime + id: UUID + isVerified: Boolean + totpEnabled: Boolean + userId: UUID +} + """All input for the `extendTokenExpires` mutation.""" input ExtendTokenExpiresInput { amount: IntervalInput @@ -2282,6 +2343,17 @@ type ExtendTokenExpiresRecord { sessionId: UUID } +"""One version rendered beside a file, with a URL to fetch it.""" +type FileVersion { + format: String + height: Int + key: String! + name: String + size: Int + url: String! + width: Int +} + """All input for the `forgotPassword` mutation.""" input ForgotPasswordInput { """ @@ -2714,7 +2786,7 @@ input LinkIdentityInput { payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - ticket: String! + ticket: String } """The output of our `linkIdentity` mutation.""" @@ -2737,6 +2809,11 @@ type MetaBelongsToRelation { fieldName: String isUnique: Boolean! keys: [MetaField!]! + + """ + Fields on the referenced table that keys point at, in the same order as keys + """ + refKeys: [MetaField!]! references: MetaRefTable! type: String } @@ -2759,22 +2836,66 @@ type MetaEnum { """Information about a table field/column""" type MetaField { + """ + Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. + """ + allowedValues: [String!] + """PostgreSQL column name""" columnName: String! description: String """Enum metadata if this field has an enum type""" enumValues: MetaEnum + + """ + Set when the field holds files; null otherwise. Set on a table's own fields only. + """ + file: MetaFileField hasDefault: Boolean! + + """ + Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. + """ + isComputed: Boolean isForeignKey: Boolean! isNotNull: Boolean! isPrimaryKey: Boolean! + """ + Whether a create must provide this field. Set on a table's own fields only. + """ + isRequiredOnCreate: Boolean + + """Whether a create may set this field. Set on a table's own fields only.""" + isWritableOnCreate: Boolean + + """ + Whether an update may change this field. Set on a table's own fields only. + """ + isWritableOnUpdate: Boolean + """Final GraphQL field name""" name: String! type: MetaType! } +"""How a field holds files""" +type MetaFileField { + """ + GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise + """ + filesType: String + + """Whether the field holds a list of files""" + isMultiple: Boolean! + + """ + image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. + """ + kind: String! +} + """Information about a foreign key constraint""" type MetaForeignKeyConstraint { fields: [MetaField!]! @@ -2791,10 +2912,15 @@ type MetaHasRelation { isUnique: Boolean! keys: [MetaField!]! referencedBy: MetaRefTable! + + """ + Fields on the related table that point at this table, in the same order as keys + """ + remoteKeys: [MetaField!]! type: String } -"""i18n metadata for a table with @i18n tag""" +"""i18n metadata for a translatable table""" type MetaI18n { """Fields that are translatable""" translatableFields: [MetaI18nField!]! @@ -2821,7 +2947,7 @@ type MetaIndex { name: String! } -"""Table inflection names""" +"""Type and field names generated for this table""" type MetaInflection { allRows: String! conditionType: String! @@ -2866,7 +2992,7 @@ type MetaQuery { update: String } -"""Realtime metadata for a table with @realtime tag""" +"""Realtime metadata for a table with change subscriptions""" type MetaRealtime { """The generated subscription field name (e.g. onPostChanged)""" subscriptionFieldName: String! @@ -2887,13 +3013,15 @@ type MetaRelations { } """ -How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. +How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. """ type MetaScalarEncoding { """For 'vector': declared length, else null.""" dimensions: Int - """For 'ltree': values are dot-separated path strings.""" + """ + For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). + """ dotPath: Boolean """For 'vector': element scalar (e.g. 'float').""" @@ -2918,11 +3046,11 @@ type MetaSchema { """Provisioning scope metadata for a table""" type MetaScope { - """SQL name of the entity table for entity scopes, else null""" + """Name of the entity table for entity scopes, else null""" entityTable: String """ - Inflected scope key column (e.g. databaseId, orgId), null for global tiers + Field name of the scope key (e.g. databaseId, orgId), null for global tiers """ keyColumn: String @@ -2931,7 +3059,7 @@ type MetaScope { """ scope: String! - """Provenance of the scope metadata (always 'smartTag')""" + """Where this scope metadata comes from""" source: String! """Coarse bucket: 'global', 'database', or 'entity'""" @@ -2962,7 +3090,7 @@ type MetaSearchColumn { name: String! } -"""Per-table search configuration from @searchConfig smart tag""" +"""Per-table search configuration""" type MetaSearchConfig { """Exponential decay factor per day""" boostRecencyDecay: Float @@ -2979,7 +3107,7 @@ type MetaSearchConfig { """Storage metadata for a table""" type MetaStorage { - """GraphQL type name of the plane's buckets table""" + """GraphQL type name of the paired buckets table""" bucketsType: String! """ @@ -2987,7 +3115,7 @@ type MetaStorage { """ downloadUrlField: String - """GraphQL type name of the plane's files table""" + """GraphQL type name of the paired files table""" filesType: String! """Whether this table is a storage buckets table""" @@ -2996,13 +3124,11 @@ type MetaStorage { """Whether this table is a storage files table""" isFilesTable: Boolean! - """The plane's GraphQL upload surface""" + """Upload mutations and types for this storage""" upload: MetaStorageUpload! } -""" -The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from -""" +"""The upload mutations and types for a storage table pair""" type MetaStorageUpload { """Per-file input type inside the bulk input""" bulkFileInputType: String! @@ -3028,32 +3154,45 @@ type MetaStorageUpload { """Payload type of the single upload mutation""" payloadType: String! - """Whether the upload input requires ownerId (entity-keyed plane)""" + """Whether the upload input requires ownerId""" requiresOwnerId: Boolean! } """Information about a database table""" type MetaTable { constraints: MetaConstraints! + + """Description written for this table, or null""" + description: String fields: [MetaField!]! foreignKeyConstraints: [MetaForeignKeyConstraint!]! - """i18n metadata (null if no @i18n tag)""" + """i18n metadata (null if the table is not translatable)""" i18n: MetaI18n indexes: [MetaIndex!]! inflection: MetaInflection! + """ + Whether this table only links rows of two other tables; the link appears in their manyToMany relations + """ + isJunction: Boolean! + + """ + 'table' when rows are stored in this table, 'view' when they come from a view of other tables + """ + kind: String! + """Final GraphQL output type name""" name: String! primaryKeyConstraints: [MetaPrimaryKeyConstraint!]! query: MetaQuery! - """Realtime metadata (null if no @realtime tag)""" + """Realtime metadata (null if the table has no change subscriptions)""" realtime: MetaRealtime relations: MetaRelations! schemaName: String! - """Provisioning scope metadata (null if no @scope tag)""" + """Provisioning scope metadata (null if the table has no scope)""" scope: MetaScope """Search metadata (null if no search configured)""" @@ -3075,7 +3214,22 @@ type MetaType { hasDefault: Boolean isArray: Boolean! isNotNull: Boolean + + """ + Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. + """ + maxLength: Int pgType: String! + + """ + Most significant digits a decimal number may hold. Null when unbounded. + """ + precision: Int + + """ + Digits a decimal number keeps after the decimal point. Null when unbounded. + """ + scale: Int subtype: String } @@ -3156,6 +3310,10 @@ type Mutation { """ input: ConfirmTotpSetupInput! ): ConfirmTotpSetupPayload + + """ + Mint an API key for the current user; the plaintext key is returned once. access_level: full_access (default) or read_only. mfa_level: none (default) or verified; verified needs a fresh MFA proof on the calling session. A key minted while authenticated by another API key never outlives that key. + """ createApiKey( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. @@ -3390,6 +3548,18 @@ type Mutation { """ input: EnableTotpInput! ): EnableTotpPayload + ensureAuthCsrf( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: EnsureAuthCsrfInput! + ): EnsureAuthCsrfPayload + exchangeNativeHandoff( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: ExchangeNativeHandoffInput! + ): ExchangeNativeHandoffPayload extendTokenExpires( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. @@ -3447,6 +3617,12 @@ type Mutation { """ input: RequestCrossOriginTokenInput! ): RequestCrossOriginTokenPayload + requestDeviceApproval( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: RequestDeviceApprovalInput! + ): RequestDeviceApprovalPayload requestMagicLink( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. @@ -4928,6 +5104,7 @@ type Query { """ where: RoleTypeFilter ): RoleTypeConnection + signInOptions: SignInOptionsRecord """Reads and enables pagination through a set of `UserConnectedAccount`.""" userConnectedAccounts( @@ -5137,6 +5314,33 @@ type RequestCrossOriginTokenPayload { result: String } +"""All input for the `requestDeviceApproval` mutation.""" +input RequestDeviceApprovalInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + deviceToken: String + next: String + userId: UUID +} + +"""The output of our `requestDeviceApproval` mutation.""" +type RequestDeviceApprovalPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + result: Boolean +} + """All input for the `requestMagicLink` mutation.""" input RequestMagicLinkInput { """ @@ -5144,7 +5348,9 @@ input RequestMagicLinkInput { payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + codeChallenge: String email: String + nativeRedirectUri: String next: String } @@ -5501,6 +5707,7 @@ input SetPasswordInput { clientMutationId: String currentPassword: String newPassword: String + signOutOtherSessions: Boolean } """The output of our `setPassword` mutation.""" @@ -5656,13 +5863,36 @@ type SignInMagicLinkPayload { type SignInMagicLinkRecord { accessToken: String accessTokenExpiresAt: Datetime + codeChallenge: String deviceApprovalRequired: Boolean mfaChallengeToken: String mfaRequired: Boolean + nativeRedirectUri: String outDeviceToken: String userId: UUID } +type SignInOptionsRecord { + allowAnonymousSessions: Boolean + allowEmailOtpSignIn: Boolean + allowIdentitySignIn: Boolean + allowIdentitySignUp: Boolean + allowMagicLinkSignIn: Boolean + allowMagicLinkSignUp: Boolean + allowPasswordSignIn: Boolean + allowPasswordSignUp: Boolean + allowSignUp: Boolean + allowSmsSignIn: Boolean + allowSmsSignUp: Boolean + allowWebauthnSignIn: Boolean + allowWebauthnSignUp: Boolean + allowWebauthnUsernameless: Boolean + enableCaptcha: Boolean + identityProviders: JSON + requireMfa: Boolean + signUpRequiresInvite: Boolean +} + """The output of our `signIn` mutation.""" type SignInPayload { """ @@ -5799,6 +6029,8 @@ type SignUpMagicLinkPayload { type SignUpMagicLinkRecord { accessToken: String accessTokenExpiresAt: Datetime + codeChallenge: String + nativeRedirectUri: String outDeviceToken: String userId: UUID } @@ -6629,9 +6861,6 @@ type UpdateWebauthnCredentialPayload { ): WebauthnCredentialEdge } -"""The `Upload` scalar type represents a file upload.""" -scalar Upload - type User { """Reads and enables pagination through a set of `AuditLogAuth`.""" authAuditLog( @@ -6793,6 +7022,21 @@ type User { ): PrincipalConnection! profilePicture: ConstructiveInternalTypeImage + """ + URL to fetch `profilePicture`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. + """ + profilePictureUrl( + """ + The width the file will be shown at, in device pixels. Without a version that wide, the source. + """ + width: Int + ): String + + """ + The versions rendered beside `profilePicture`, narrowest first, each with a URL. Empty when there are none. + """ + profilePictureVersions: [FileVersion!] + """Reads a single `RoleType` that is related to this `User`.""" roleType: RoleType @@ -7149,9 +7393,6 @@ input UserPatch { displayName: String id: UUID profilePicture: ConstructiveInternalTypeImage - - """File upload for the `profilePicture` field.""" - profilePictureUpload: Upload type: Int updatedAt: Datetime username: String @@ -7548,6 +7789,7 @@ input VerifyEmailInput { """ clientMutationId: String emailId: UUID + password: String token: String } diff --git a/sdk/constructive-sdk/schemas/cluster.graphql b/sdk/constructive-sdk/schemas/cluster.graphql index 10a94a76bd..18ce76defd 100644 --- a/sdk/constructive-sdk/schemas/cluster.graphql +++ b/sdk/constructive-sdk/schemas/cluster.graphql @@ -12,6 +12,11 @@ type MetaBelongsToRelation { fieldName: String isUnique: Boolean! keys: [MetaField!]! + + """ + Fields on the referenced table that keys point at, in the same order as keys + """ + refKeys: [MetaField!]! references: MetaRefTable! type: String } @@ -34,22 +39,66 @@ type MetaEnum { """Information about a table field/column""" type MetaField { + """ + Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. + """ + allowedValues: [String!] + """PostgreSQL column name""" columnName: String! description: String """Enum metadata if this field has an enum type""" enumValues: MetaEnum + + """ + Set when the field holds files; null otherwise. Set on a table's own fields only. + """ + file: MetaFileField hasDefault: Boolean! + + """ + Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. + """ + isComputed: Boolean isForeignKey: Boolean! isNotNull: Boolean! isPrimaryKey: Boolean! + """ + Whether a create must provide this field. Set on a table's own fields only. + """ + isRequiredOnCreate: Boolean + + """Whether a create may set this field. Set on a table's own fields only.""" + isWritableOnCreate: Boolean + + """ + Whether an update may change this field. Set on a table's own fields only. + """ + isWritableOnUpdate: Boolean + """Final GraphQL field name""" name: String! type: MetaType! } +"""How a field holds files""" +type MetaFileField { + """ + GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise + """ + filesType: String + + """Whether the field holds a list of files""" + isMultiple: Boolean! + + """ + image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. + """ + kind: String! +} + """Information about a foreign key constraint""" type MetaForeignKeyConstraint { fields: [MetaField!]! @@ -66,10 +115,15 @@ type MetaHasRelation { isUnique: Boolean! keys: [MetaField!]! referencedBy: MetaRefTable! + + """ + Fields on the related table that point at this table, in the same order as keys + """ + remoteKeys: [MetaField!]! type: String } -"""i18n metadata for a table with @i18n tag""" +"""i18n metadata for a translatable table""" type MetaI18n { """Fields that are translatable""" translatableFields: [MetaI18nField!]! @@ -96,7 +150,7 @@ type MetaIndex { name: String! } -"""Table inflection names""" +"""Type and field names generated for this table""" type MetaInflection { allRows: String! conditionType: String! @@ -141,7 +195,7 @@ type MetaQuery { update: String } -"""Realtime metadata for a table with @realtime tag""" +"""Realtime metadata for a table with change subscriptions""" type MetaRealtime { """The generated subscription field name (e.g. onPostChanged)""" subscriptionFieldName: String! @@ -162,13 +216,15 @@ type MetaRelations { } """ -How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. +How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. """ type MetaScalarEncoding { """For 'vector': declared length, else null.""" dimensions: Int - """For 'ltree': values are dot-separated path strings.""" + """ + For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). + """ dotPath: Boolean """For 'vector': element scalar (e.g. 'float').""" @@ -193,11 +249,11 @@ type MetaSchema { """Provisioning scope metadata for a table""" type MetaScope { - """SQL name of the entity table for entity scopes, else null""" + """Name of the entity table for entity scopes, else null""" entityTable: String """ - Inflected scope key column (e.g. databaseId, orgId), null for global tiers + Field name of the scope key (e.g. databaseId, orgId), null for global tiers """ keyColumn: String @@ -206,7 +262,7 @@ type MetaScope { """ scope: String! - """Provenance of the scope metadata (always 'smartTag')""" + """Where this scope metadata comes from""" source: String! """Coarse bucket: 'global', 'database', or 'entity'""" @@ -237,7 +293,7 @@ type MetaSearchColumn { name: String! } -"""Per-table search configuration from @searchConfig smart tag""" +"""Per-table search configuration""" type MetaSearchConfig { """Exponential decay factor per day""" boostRecencyDecay: Float @@ -254,7 +310,7 @@ type MetaSearchConfig { """Storage metadata for a table""" type MetaStorage { - """GraphQL type name of the plane's buckets table""" + """GraphQL type name of the paired buckets table""" bucketsType: String! """ @@ -262,7 +318,7 @@ type MetaStorage { """ downloadUrlField: String - """GraphQL type name of the plane's files table""" + """GraphQL type name of the paired files table""" filesType: String! """Whether this table is a storage buckets table""" @@ -271,13 +327,11 @@ type MetaStorage { """Whether this table is a storage files table""" isFilesTable: Boolean! - """The plane's GraphQL upload surface""" + """Upload mutations and types for this storage""" upload: MetaStorageUpload! } -""" -The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from -""" +"""The upload mutations and types for a storage table pair""" type MetaStorageUpload { """Per-file input type inside the bulk input""" bulkFileInputType: String! @@ -303,32 +357,45 @@ type MetaStorageUpload { """Payload type of the single upload mutation""" payloadType: String! - """Whether the upload input requires ownerId (entity-keyed plane)""" + """Whether the upload input requires ownerId""" requiresOwnerId: Boolean! } """Information about a database table""" type MetaTable { constraints: MetaConstraints! + + """Description written for this table, or null""" + description: String fields: [MetaField!]! foreignKeyConstraints: [MetaForeignKeyConstraint!]! - """i18n metadata (null if no @i18n tag)""" + """i18n metadata (null if the table is not translatable)""" i18n: MetaI18n indexes: [MetaIndex!]! inflection: MetaInflection! + """ + Whether this table only links rows of two other tables; the link appears in their manyToMany relations + """ + isJunction: Boolean! + + """ + 'table' when rows are stored in this table, 'view' when they come from a view of other tables + """ + kind: String! + """Final GraphQL output type name""" name: String! primaryKeyConstraints: [MetaPrimaryKeyConstraint!]! query: MetaQuery! - """Realtime metadata (null if no @realtime tag)""" + """Realtime metadata (null if the table has no change subscriptions)""" realtime: MetaRealtime relations: MetaRelations! schemaName: String! - """Provisioning scope metadata (null if no @scope tag)""" + """Provisioning scope metadata (null if the table has no scope)""" scope: MetaScope """Search metadata (null if no search configured)""" @@ -350,7 +417,22 @@ type MetaType { hasDefault: Boolean isArray: Boolean! isNotNull: Boolean + + """ + Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. + """ + maxLength: Int pgType: String! + + """ + Most significant digits a decimal number may hold. Null when unbounded. + """ + precision: Int + + """ + Digits a decimal number keeps after the decimal point. Null when unbounded. + """ + scale: Int subtype: String } diff --git a/sdk/constructive-sdk/schemas/compute.graphql b/sdk/constructive-sdk/schemas/compute.graphql index e91946b76c..5a6708dac6 100644 --- a/sdk/constructive-sdk/schemas/compute.graphql +++ b/sdk/constructive-sdk/schemas/compute.graphql @@ -367,6 +367,21 @@ type Build { """Build log object in storage; step rows slice it by byte range""" logs: ConstructiveInternalTypeUpload + """ + URL to fetch `logs`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. + """ + logsUrl( + """ + The width the file will be shown at, in device pixels. Without a version that wide, the source. + """ + width: Int + ): String + + """ + The versions rendered beside `logs`, narrowest first, each with a URL. Empty when there are none. + """ + logsVersions: [FileVersion!] + """Matrix shard identity; NULL for a non-matrix build""" matrixKey: String @@ -694,11 +709,6 @@ input BuildPatch { """Build log object in storage; step rows slice it by byte range""" logs: ConstructiveInternalTypeUpload - """ - Upload for Build log object in storage; step rows slice it by byte range - """ - logsUpload: Upload - """Matrix shard identity; NULL for a non-matrix build""" matrixKey: String @@ -1013,255 +1023,6 @@ input BuildStepPatch { summary: JSON } -""" -Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST -""" -type BuilderBinding { - createdAt: Datetime - createdBy: UUID - createdByPrincipal: UUID - - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! - id: UUID! - - """ - BuildKit resource installation serving this binding; may belong to another resource scope - """ - installationId: UUID! - - """Most recent projection failure""" - lastError: String - - """Reconciler detail (projection timestamps and diagnostics)""" - metadata: JSON - - """Reads a single `Namespace` that is related to this `BuilderBinding`.""" - namespace: Namespace - - """Namespace whose builds use this BuildKit installation""" - namespaceId: UUID! - - """ - BuildKit address last projected into the namespace (NULL = never projected) - """ - observedHost: String - - """Lane this binding applies to (NULL = the scope's default lane)""" - realm: String - - """Projection state of BUILDKIT_HOST: pending, active, failed""" - status: String! - updatedAt: Datetime - updatedBy: UUID - updatedByPrincipal: UUID -} - -"""A connection to a list of `BuilderBinding` values.""" -type BuilderBindingConnection { - """ - A list of edges which contains the `BuilderBinding` and cursor to aid in pagination. - """ - edges: [BuilderBindingEdge]! - - """A list of `BuilderBinding` objects.""" - nodes: [BuilderBinding]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `BuilderBinding` you could get from the connection.""" - totalCount: Int! -} - -"""A `BuilderBinding` edge in the connection.""" -type BuilderBindingEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `BuilderBinding` at the end of the edge.""" - node: BuilderBinding -} - -""" -A filter to be used against `BuilderBinding` object types. All fields are combined with a logical ‘and.’ -""" -input BuilderBindingFilter { - """Checks for all expressions in this list.""" - and: [BuilderBindingFilter!] - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `createdBy` field.""" - createdBy: UUIDFilter - - """Filter by the object’s `createdByPrincipal` field.""" - createdByPrincipal: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `installationId` field.""" - installationId: UUIDFilter - - """Filter by the object’s `lastError` field.""" - lastError: StringFilter - - """Filter by the object’s `metadata` field.""" - metadata: JSONFilter - - """Filter by the object’s `namespace` relation.""" - namespace: NamespaceFilter - - """Filter by the object’s `namespaceId` field.""" - namespaceId: UUIDFilter - - """Negates the expression.""" - not: BuilderBindingFilter - - """Filter by the object’s `observedHost` field.""" - observedHost: StringFilter - - """Checks for any expressions in this list.""" - or: [BuilderBindingFilter!] - - """Filter by the object’s `realm` field.""" - realm: StringFilter - - """Filter by the object’s `status` field.""" - status: StringFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Filter by the object’s `updatedBy` field.""" - updatedBy: UUIDFilter - - """Filter by the object’s `updatedByPrincipal` field.""" - updatedByPrincipal: UUIDFilter -} - -"""An input for mutations affecting `BuilderBinding`""" -input BuilderBindingInput { - createdAt: Datetime - createdBy: UUID - createdByPrincipal: UUID - - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID! - id: UUID - - """ - BuildKit resource installation serving this binding; may belong to another resource scope - """ - installationId: UUID! - - """Most recent projection failure""" - lastError: String - - """Reconciler detail (projection timestamps and diagnostics)""" - metadata: JSON - - """Namespace whose builds use this BuildKit installation""" - namespaceId: UUID! - - """ - BuildKit address last projected into the namespace (NULL = never projected) - """ - observedHost: String - - """Lane this binding applies to (NULL = the scope's default lane)""" - realm: String - - """Projection state of BUILDKIT_HOST: pending, active, failed""" - status: String - updatedAt: Datetime - updatedBy: UUID - updatedByPrincipal: UUID -} - -"""Methods to use when ordering `BuilderBinding`.""" -enum BuilderBindingOrderBy { - CREATED_AT_ASC - CREATED_AT_DESC - CREATED_BY_ASC - CREATED_BY_DESC - CREATED_BY_PRINCIPAL_ASC - CREATED_BY_PRINCIPAL_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - ID_ASC - ID_DESC - INSTALLATION_ID_ASC - INSTALLATION_ID_DESC - LAST_ERROR_ASC - LAST_ERROR_DESC - METADATA_ASC - METADATA_DESC - NAMESPACE_ID_ASC - NAMESPACE_ID_DESC - NATURAL - OBSERVED_HOST_ASC - OBSERVED_HOST_DESC - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - REALM_ASC - REALM_DESC - STATUS_ASC - STATUS_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - UPDATED_BY_ASC - UPDATED_BY_DESC - UPDATED_BY_PRINCIPAL_ASC - UPDATED_BY_PRINCIPAL_DESC -} - -""" -Represents an update to a `BuilderBinding`. Fields that are set will be updated. -""" -input BuilderBindingPatch { - createdAt: Datetime - createdBy: UUID - createdByPrincipal: UUID - - """Database that owns this resource (database-scoped isolation)""" - databaseId: UUID - id: UUID - - """ - BuildKit resource installation serving this binding; may belong to another resource scope - """ - installationId: UUID - - """Most recent projection failure""" - lastError: String - - """Reconciler detail (projection timestamps and diagnostics)""" - metadata: JSON - - """Namespace whose builds use this BuildKit installation""" - namespaceId: UUID - - """ - BuildKit address last projected into the namespace (NULL = never projected) - """ - observedHost: String - - """Lane this binding applies to (NULL = the scope's default lane)""" - realm: String - - """Projection state of BUILDKIT_HOST: pending, active, failed""" - status: String - updatedAt: Datetime - updatedBy: UUID - updatedByPrincipal: UUID -} - scalar ConstructiveInternalTypeImage """ @@ -1784,41 +1545,6 @@ type CreateBuildStepPayload { query: Query } -"""All input for the create `BuilderBinding` mutation.""" -input CreateBuilderBindingInput { - """The `BuilderBinding` to be created by this mutation.""" - builderBinding: BuilderBindingInput! - - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String -} - -"""The output of our create `BuilderBinding` mutation.""" -type CreateBuilderBindingPayload { - """The `BuilderBinding` that was created by this mutation.""" - builderBinding: BuilderBinding - - """An edge for our `BuilderBinding`. May be used by Relay 1.""" - builderBindingEdge( - """The method to use when ordering `BuilderBinding`.""" - orderBy: [BuilderBindingOrderBy!]! = [PRIMARY_KEY_ASC] - ): BuilderBindingEdge - - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - """All input for the create `ContentPreset` mutation.""" input CreateContentPresetInput { """ @@ -3235,41 +2961,6 @@ type CreatePlatformBuildStepPayload { query: Query } -"""All input for the create `PlatformBuilderBinding` mutation.""" -input CreatePlatformBuilderBindingInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `PlatformBuilderBinding` to be created by this mutation.""" - platformBuilderBinding: PlatformBuilderBindingInput! -} - -"""The output of our create `PlatformBuilderBinding` mutation.""" -type CreatePlatformBuilderBindingPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `PlatformBuilderBinding` that was created by this mutation.""" - platformBuilderBinding: PlatformBuilderBinding - - """An edge for our `PlatformBuilderBinding`. May be used by Relay 1.""" - platformBuilderBindingEdge( - """The method to use when ordering `PlatformBuilderBinding`.""" - orderBy: [PlatformBuilderBindingOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformBuilderBindingEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - """All input for the create `PlatformFunctionApiBinding` mutation.""" input CreatePlatformFunctionApiBindingInput { """ @@ -4661,6 +4352,41 @@ type CreatePlatformResourceUsageSummaryPayload { query: Query } +"""All input for the create `PlatformServiceBinding` mutation.""" +input CreatePlatformServiceBindingInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `PlatformServiceBinding` to be created by this mutation.""" + platformServiceBinding: PlatformServiceBindingInput! +} + +"""The output of our create `PlatformServiceBinding` mutation.""" +type CreatePlatformServiceBindingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformServiceBinding` that was created by this mutation.""" + platformServiceBinding: PlatformServiceBinding + + """An edge for our `PlatformServiceBinding`. May be used by Relay 1.""" + platformServiceBindingEdge( + """The method to use when ordering `PlatformServiceBinding`.""" + orderBy: [PlatformServiceBindingOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformServiceBindingEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the create `PlatformWebhookEndpoint` mutation.""" input CreatePlatformWebhookEndpointInput { """ @@ -5431,6 +5157,41 @@ type CreateResourceUsageSummaryPayload { ): ResourceUsageSummaryEdge } +"""All input for the create `ServiceBinding` mutation.""" +input CreateServiceBindingInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `ServiceBinding` to be created by this mutation.""" + serviceBinding: ServiceBindingInput! +} + +"""The output of our create `ServiceBinding` mutation.""" +type CreateServiceBindingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """The `ServiceBinding` that was created by this mutation.""" + serviceBinding: ServiceBinding + + """An edge for our `ServiceBinding`. May be used by Relay 1.""" + serviceBindingEdge( + """The method to use when ordering `ServiceBinding`.""" + orderBy: [ServiceBindingOrderBy!]! = [PRIMARY_KEY_ASC] + ): ServiceBindingEdge +} + """All input for the create `WebhookEndpoint` mutation.""" input CreateWebhookEndpointInput { """ @@ -8643,39 +8404,6 @@ type DeleteBuildStepPayload { query: Query } -"""All input for the `deleteBuilderBinding` mutation.""" -input DeleteBuilderBindingInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `BuilderBinding` mutation.""" -type DeleteBuilderBindingPayload { - """The `BuilderBinding` that was deleted by this mutation.""" - builderBinding: BuilderBinding - - """An edge for our `BuilderBinding`. May be used by Relay 1.""" - builderBindingEdge( - """The method to use when ordering `BuilderBinding`.""" - orderBy: [BuilderBindingOrderBy!]! = [PRIMARY_KEY_ASC] - ): BuilderBindingEdge - - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - """All input for the `deleteContentPreset` mutation.""" input DeleteContentPresetInput { """ @@ -10167,39 +9895,6 @@ type DeletePlatformBuildStepPayload { query: Query } -"""All input for the `deletePlatformBuilderBinding` mutation.""" -input DeletePlatformBuilderBindingInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `PlatformBuilderBinding` mutation.""" -type DeletePlatformBuilderBindingPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `PlatformBuilderBinding` that was deleted by this mutation.""" - platformBuilderBinding: PlatformBuilderBinding - - """An edge for our `PlatformBuilderBinding`. May be used by Relay 1.""" - platformBuilderBindingEdge( - """The method to use when ordering `PlatformBuilderBinding`.""" - orderBy: [PlatformBuilderBindingOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformBuilderBindingEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - """All input for the `deletePlatformFunctionApiBinding` mutation.""" input DeletePlatformFunctionApiBindingInput { """ @@ -11572,6 +11267,39 @@ type DeletePlatformResourceUsageSummaryPayload { query: Query } +"""All input for the `deletePlatformServiceBinding` mutation.""" +input DeletePlatformServiceBindingInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `PlatformServiceBinding` mutation.""" +type DeletePlatformServiceBindingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformServiceBinding` that was deleted by this mutation.""" + platformServiceBinding: PlatformServiceBinding + + """An edge for our `PlatformServiceBinding`. May be used by Relay 1.""" + platformServiceBindingEdge( + """The method to use when ordering `PlatformServiceBinding`.""" + orderBy: [PlatformServiceBindingOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformServiceBindingEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the `deletePlatformWebhookEndpoint` mutation.""" input DeletePlatformWebhookEndpointInput { """ @@ -12315,6 +12043,39 @@ type DeleteResourceUsageSummaryPayload { ): ResourceUsageSummaryEdge } +"""All input for the `deleteServiceBinding` mutation.""" +input DeleteServiceBindingInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `ServiceBinding` mutation.""" +type DeleteServiceBindingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """The `ServiceBinding` that was deleted by this mutation.""" + serviceBinding: ServiceBinding + + """An edge for our `ServiceBinding`. May be used by Relay 1.""" + serviceBindingEdge( + """The method to use when ordering `ServiceBinding`.""" + orderBy: [ServiceBindingOrderBy!]! = [PRIMARY_KEY_ASC] + ): ServiceBindingEdge +} + """All input for the `deleteWebhookEndpoint` mutation.""" input DeleteWebhookEndpointInput { """ @@ -12381,6 +12142,17 @@ type DeleteWebhookEventPayload { ): WebhookEventEdge } +"""One version rendered beside a file, with a URL to fetch it.""" +type FileVersion { + format: String + height: Int + key: String! + name: String + size: Int + url: String! + width: Int +} + """A full-text search tsvector value represented as a string.""" scalar FullText @@ -13930,7 +13702,7 @@ type FunctionDeployment { """ Reads a single `Namespace` that is related to this `FunctionDeployment`. """ - namespace: Namespace + namespaceByNamespaceIdAndDatabaseId: Namespace """Target namespace for this deployment (maps to a K8s namespace)""" namespaceId: UUID! @@ -14239,8 +14011,8 @@ input FunctionDeploymentFilter { """Filter by the object’s `lastErrorAt` field.""" lastErrorAt: DatetimeFilter - """Filter by the object’s `namespace` relation.""" - namespace: NamespaceFilter + """Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation.""" + namespaceByNamespaceIdAndDatabaseId: NamespaceFilter """Filter by the object’s `namespaceId` field.""" namespaceId: UUIDFilter @@ -19584,6 +19356,21 @@ type IntegrationProvider { """ logo: ConstructiveInternalTypeImage + """ + URL to fetch `logo`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. + """ + logoUrl( + """ + The width the file will be shown at, in device pixels. Without a version that wide, the source. + """ + width: Int + ): String + + """ + The versions rendered beside `logo`, narrowest first, each with a URL. Empty when there are none. + """ + logoVersions: [FileVersion!] + """Human-readable brand name (e.g. 'Mailgun', 'PostgreSQL')""" name: String! @@ -19775,11 +19562,6 @@ input IntegrationProviderPatch { """ logo: ConstructiveInternalTypeImage - """ - Upload for Provider logo as an image domain value (url, id, key, bucket, provider) - """ - logoUpload: Upload - """Human-readable brand name (e.g. 'Mailgun', 'PostgreSQL')""" name: String @@ -19963,6 +19745,11 @@ type MetaBelongsToRelation { fieldName: String isUnique: Boolean! keys: [MetaField!]! + + """ + Fields on the referenced table that keys point at, in the same order as keys + """ + refKeys: [MetaField!]! references: MetaRefTable! type: String } @@ -19985,22 +19772,66 @@ type MetaEnum { """Information about a table field/column""" type MetaField { + """ + Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. + """ + allowedValues: [String!] + """PostgreSQL column name""" columnName: String! description: String """Enum metadata if this field has an enum type""" enumValues: MetaEnum + + """ + Set when the field holds files; null otherwise. Set on a table's own fields only. + """ + file: MetaFileField hasDefault: Boolean! + + """ + Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. + """ + isComputed: Boolean isForeignKey: Boolean! isNotNull: Boolean! isPrimaryKey: Boolean! + """ + Whether a create must provide this field. Set on a table's own fields only. + """ + isRequiredOnCreate: Boolean + + """Whether a create may set this field. Set on a table's own fields only.""" + isWritableOnCreate: Boolean + + """ + Whether an update may change this field. Set on a table's own fields only. + """ + isWritableOnUpdate: Boolean + """Final GraphQL field name""" name: String! type: MetaType! } +"""How a field holds files""" +type MetaFileField { + """ + GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise + """ + filesType: String + + """Whether the field holds a list of files""" + isMultiple: Boolean! + + """ + image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. + """ + kind: String! +} + """Information about a foreign key constraint""" type MetaForeignKeyConstraint { fields: [MetaField!]! @@ -20017,10 +19848,15 @@ type MetaHasRelation { isUnique: Boolean! keys: [MetaField!]! referencedBy: MetaRefTable! + + """ + Fields on the related table that point at this table, in the same order as keys + """ + remoteKeys: [MetaField!]! type: String } -"""i18n metadata for a table with @i18n tag""" +"""i18n metadata for a translatable table""" type MetaI18n { """Fields that are translatable""" translatableFields: [MetaI18nField!]! @@ -20047,7 +19883,7 @@ type MetaIndex { name: String! } -"""Table inflection names""" +"""Type and field names generated for this table""" type MetaInflection { allRows: String! conditionType: String! @@ -20092,7 +19928,7 @@ type MetaQuery { update: String } -"""Realtime metadata for a table with @realtime tag""" +"""Realtime metadata for a table with change subscriptions""" type MetaRealtime { """The generated subscription field name (e.g. onPostChanged)""" subscriptionFieldName: String! @@ -20113,13 +19949,15 @@ type MetaRelations { } """ -How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. +How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. """ type MetaScalarEncoding { """For 'vector': declared length, else null.""" dimensions: Int - """For 'ltree': values are dot-separated path strings.""" + """ + For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). + """ dotPath: Boolean """For 'vector': element scalar (e.g. 'float').""" @@ -20144,11 +19982,11 @@ type MetaSchema { """Provisioning scope metadata for a table""" type MetaScope { - """SQL name of the entity table for entity scopes, else null""" + """Name of the entity table for entity scopes, else null""" entityTable: String """ - Inflected scope key column (e.g. databaseId, orgId), null for global tiers + Field name of the scope key (e.g. databaseId, orgId), null for global tiers """ keyColumn: String @@ -20157,7 +19995,7 @@ type MetaScope { """ scope: String! - """Provenance of the scope metadata (always 'smartTag')""" + """Where this scope metadata comes from""" source: String! """Coarse bucket: 'global', 'database', or 'entity'""" @@ -20188,7 +20026,7 @@ type MetaSearchColumn { name: String! } -"""Per-table search configuration from @searchConfig smart tag""" +"""Per-table search configuration""" type MetaSearchConfig { """Exponential decay factor per day""" boostRecencyDecay: Float @@ -20205,7 +20043,7 @@ type MetaSearchConfig { """Storage metadata for a table""" type MetaStorage { - """GraphQL type name of the plane's buckets table""" + """GraphQL type name of the paired buckets table""" bucketsType: String! """ @@ -20213,7 +20051,7 @@ type MetaStorage { """ downloadUrlField: String - """GraphQL type name of the plane's files table""" + """GraphQL type name of the paired files table""" filesType: String! """Whether this table is a storage buckets table""" @@ -20222,13 +20060,11 @@ type MetaStorage { """Whether this table is a storage files table""" isFilesTable: Boolean! - """The plane's GraphQL upload surface""" + """Upload mutations and types for this storage""" upload: MetaStorageUpload! } -""" -The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from -""" +"""The upload mutations and types for a storage table pair""" type MetaStorageUpload { """Per-file input type inside the bulk input""" bulkFileInputType: String! @@ -20254,32 +20090,45 @@ type MetaStorageUpload { """Payload type of the single upload mutation""" payloadType: String! - """Whether the upload input requires ownerId (entity-keyed plane)""" + """Whether the upload input requires ownerId""" requiresOwnerId: Boolean! } """Information about a database table""" type MetaTable { constraints: MetaConstraints! + + """Description written for this table, or null""" + description: String fields: [MetaField!]! foreignKeyConstraints: [MetaForeignKeyConstraint!]! - """i18n metadata (null if no @i18n tag)""" + """i18n metadata (null if the table is not translatable)""" i18n: MetaI18n indexes: [MetaIndex!]! inflection: MetaInflection! + """ + Whether this table only links rows of two other tables; the link appears in their manyToMany relations + """ + isJunction: Boolean! + + """ + 'table' when rows are stored in this table, 'view' when they come from a view of other tables + """ + kind: String! + """Final GraphQL output type name""" name: String! primaryKeyConstraints: [MetaPrimaryKeyConstraint!]! query: MetaQuery! - """Realtime metadata (null if no @realtime tag)""" + """Realtime metadata (null if the table has no change subscriptions)""" realtime: MetaRealtime relations: MetaRelations! schemaName: String! - """Provisioning scope metadata (null if no @scope tag)""" + """Provisioning scope metadata (null if the table has no scope)""" scope: MetaScope """Search metadata (null if no search configured)""" @@ -20301,7 +20150,22 @@ type MetaType { hasDefault: Boolean isArray: Boolean! isNotNull: Boolean + + """ + Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. + """ + maxLength: Int pgType: String! + + """ + Most significant digits a decimal number may hold. Null when unbounded. + """ + precision: Int + + """ + Digits a decimal number keeps after the decimal point. Null when unbounded. + """ + scale: Int subtype: String } @@ -20368,14 +20232,6 @@ type Mutation { input: CreateBuildStepInput! ): CreateBuildStepPayload - """Creates a single `BuilderBinding`.""" - createBuilderBinding( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateBuilderBindingInput! - ): CreateBuilderBindingPayload - """Creates a single `ContentPreset`.""" createContentPreset( """ @@ -20686,14 +20542,6 @@ type Mutation { input: CreatePlatformBuildStepInput! ): CreatePlatformBuildStepPayload - """Creates a single `PlatformBuilderBinding`.""" - createPlatformBuilderBinding( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlatformBuilderBindingInput! - ): CreatePlatformBuilderBindingPayload - """Creates a single `PlatformFunctionApiBinding`.""" createPlatformFunctionApiBinding( """ @@ -21006,6 +20854,14 @@ type Mutation { input: CreatePlatformResourceUsageSummaryInput! ): CreatePlatformResourceUsageSummaryPayload + """Creates a single `PlatformServiceBinding`.""" + createPlatformServiceBinding( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlatformServiceBindingInput! + ): CreatePlatformServiceBindingPayload + """Creates a single `PlatformWebhookEndpoint`.""" createPlatformWebhookEndpoint( """ @@ -21182,6 +21038,14 @@ type Mutation { input: CreateResourceUsageSummaryInput! ): CreateResourceUsageSummaryPayload + """Creates a single `ServiceBinding`.""" + createServiceBinding( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateServiceBindingInput! + ): CreateServiceBindingPayload + """Creates a single `WebhookEndpoint`.""" createWebhookEndpoint( """ @@ -21322,14 +21186,6 @@ type Mutation { input: DeleteBuildStepInput! ): DeleteBuildStepPayload - """Deletes a single `BuilderBinding` using a unique key.""" - deleteBuilderBinding( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteBuilderBindingInput! - ): DeleteBuilderBindingPayload - """Deletes a single `ContentPreset` using a unique key.""" deleteContentPreset( """ @@ -21658,14 +21514,6 @@ type Mutation { input: DeletePlatformBuildStepInput! ): DeletePlatformBuildStepPayload - """Deletes a single `PlatformBuilderBinding` using a unique key.""" - deletePlatformBuilderBinding( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePlatformBuilderBindingInput! - ): DeletePlatformBuilderBindingPayload - """Deletes a single `PlatformFunctionApiBinding` using a unique key.""" deletePlatformFunctionApiBinding( """ @@ -21982,6 +21830,14 @@ type Mutation { input: DeletePlatformResourceUsageSummaryInput! ): DeletePlatformResourceUsageSummaryPayload + """Deletes a single `PlatformServiceBinding` using a unique key.""" + deletePlatformServiceBinding( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlatformServiceBindingInput! + ): DeletePlatformServiceBindingPayload + """Deletes a single `PlatformWebhookEndpoint` using a unique key.""" deletePlatformWebhookEndpoint( """ @@ -22158,6 +22014,14 @@ type Mutation { input: DeleteResourceUsageSummaryInput! ): DeleteResourceUsageSummaryPayload + """Deletes a single `ServiceBinding` using a unique key.""" + deleteServiceBinding( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteServiceBindingInput! + ): DeleteServiceBindingPayload + """Deletes a single `WebhookEndpoint` using a unique key.""" deleteWebhookEndpoint( """ @@ -22421,14 +22285,6 @@ type Mutation { input: UpdateBuildStepInput! ): UpdateBuildStepPayload - """Updates a single `BuilderBinding` using a unique key and a patch.""" - updateBuilderBinding( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateBuilderBindingInput! - ): UpdateBuilderBindingPayload - """Updates a single `ContentPreset` using a unique key and a patch.""" updateContentPreset( """ @@ -22775,16 +22631,6 @@ type Mutation { input: UpdatePlatformBuildStepInput! ): UpdatePlatformBuildStepPayload - """ - Updates a single `PlatformBuilderBinding` using a unique key and a patch. - """ - updatePlatformBuilderBinding( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePlatformBuilderBindingInput! - ): UpdatePlatformBuilderBindingPayload - """ Updates a single `PlatformFunctionApiBinding` using a unique key and a patch. """ @@ -23151,6 +22997,16 @@ type Mutation { input: UpdatePlatformResourceUsageSummaryInput! ): UpdatePlatformResourceUsageSummaryPayload + """ + Updates a single `PlatformServiceBinding` using a unique key and a patch. + """ + updatePlatformServiceBinding( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlatformServiceBindingInput! + ): UpdatePlatformServiceBindingPayload + """ Updates a single `PlatformWebhookEndpoint` using a unique key and a patch. """ @@ -23337,6 +23193,14 @@ type Mutation { input: UpdateResourceUsageSummaryInput! ): UpdateResourceUsageSummaryPayload + """Updates a single `ServiceBinding` using a unique key and a patch.""" + updateServiceBinding( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateServiceBindingInput! + ): UpdateServiceBindingPayload + """Updates a single `WebhookEndpoint` using a unique key and a patch.""" updateWebhookEndpoint( """ @@ -23367,35 +23231,6 @@ type Namespace { """Freeform metadata for tooling and operational notes""" annotations: JSON! - """Reads and enables pagination through a set of `BuilderBinding`.""" - builderBindings( - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """The method to use when ordering `BuilderBinding`.""" - orderBy: [BuilderBindingOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: BuilderBindingFilter - ): BuilderBindingConnection! - """ Cluster this namespace is projected onto; NULL = the cluster the reconciler runs in """ @@ -23409,7 +23244,7 @@ type Namespace { description: String """Reads and enables pagination through a set of `FunctionDeployment`.""" - functionDeployments( + functionDeploymentsByNamespaceIdAndDatabaseId( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -23461,7 +23296,7 @@ type Namespace { namespaceName: String! """Reads and enables pagination through a set of `RegistryBinding`.""" - registryBindings( + registryBindingsByNamespaceIdAndDatabaseId( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -23490,7 +23325,7 @@ type Namespace { ): RegistryBindingConnection! """Reads and enables pagination through a set of `ResourceDefinition`.""" - resourceDefinitions( + resourceDefinitionsByNamespaceIdAndDatabaseId( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -23519,7 +23354,7 @@ type Namespace { ): ResourceDefinitionConnection! """Reads and enables pagination through a set of `ResourceInstallation`.""" - resourceInstallations( + resourceInstallationsByNamespaceIdAndDatabaseId( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -23548,7 +23383,7 @@ type Namespace { ): ResourceInstallationConnection! """Reads and enables pagination through a set of `Resource`.""" - resources( + resourcesByNamespaceIdAndDatabaseId( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -23576,6 +23411,35 @@ type Namespace { where: ResourceFilter ): ResourceConnection! + """Reads and enables pagination through a set of `ServiceBinding`.""" + serviceBindingsByNamespaceIdAndDatabaseId( + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """The method to use when ordering `ServiceBinding`.""" + orderBy: [ServiceBindingOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: ServiceBindingFilter + ): ServiceBindingConnection! + """ Namespace provisioning lifecycle status: pending, provisioning, active, failed """ @@ -23583,7 +23447,7 @@ type Namespace { updatedAt: Datetime """Reads and enables pagination through a set of `WebhookEndpoint`.""" - webhookEndpoints( + webhookEndpointsByNamespaceIdAndDatabaseId( """Read all values in the set after (below) this cursor.""" after: Cursor @@ -23832,12 +23696,6 @@ input NamespaceFilter { """Filter by the object’s `annotations` field.""" annotations: JSONFilter - """Filter by the object’s `builderBindings` relation.""" - builderBindings: NamespaceToManyBuilderBindingFilter - - """`builderBindings` exist.""" - builderBindingsExist: Boolean - """Filter by the object’s `clusterId` field.""" clusterId: UUIDFilter @@ -23850,11 +23708,13 @@ input NamespaceFilter { """Filter by the object’s `description` field.""" description: StringFilter - """Filter by the object’s `functionDeployments` relation.""" - functionDeployments: NamespaceToManyFunctionDeploymentFilter + """ + Filter by the object’s `functionDeploymentsByNamespaceIdAndDatabaseId` relation. + """ + functionDeploymentsByNamespaceIdAndDatabaseId: NamespaceToManyFunctionDeploymentFilter - """`functionDeployments` exist.""" - functionDeploymentsExist: Boolean + """`functionDeploymentsByNamespaceIdAndDatabaseId` exist.""" + functionDeploymentsByNamespaceIdAndDatabaseIdExist: Boolean """Filter by the object’s `id` field.""" id: UUIDFilter @@ -23883,29 +23743,43 @@ input NamespaceFilter { """Checks for any expressions in this list.""" or: [NamespaceFilter!] - """Filter by the object’s `registryBindings` relation.""" - registryBindings: NamespaceToManyRegistryBindingFilter + """ + Filter by the object’s `registryBindingsByNamespaceIdAndDatabaseId` relation. + """ + registryBindingsByNamespaceIdAndDatabaseId: NamespaceToManyRegistryBindingFilter - """`registryBindings` exist.""" - registryBindingsExist: Boolean + """`registryBindingsByNamespaceIdAndDatabaseId` exist.""" + registryBindingsByNamespaceIdAndDatabaseIdExist: Boolean - """Filter by the object’s `resourceDefinitions` relation.""" - resourceDefinitions: NamespaceToManyResourceDefinitionFilter + """ + Filter by the object’s `resourceDefinitionsByNamespaceIdAndDatabaseId` relation. + """ + resourceDefinitionsByNamespaceIdAndDatabaseId: NamespaceToManyResourceDefinitionFilter - """`resourceDefinitions` exist.""" - resourceDefinitionsExist: Boolean + """`resourceDefinitionsByNamespaceIdAndDatabaseId` exist.""" + resourceDefinitionsByNamespaceIdAndDatabaseIdExist: Boolean - """Filter by the object’s `resourceInstallations` relation.""" - resourceInstallations: NamespaceToManyResourceInstallationFilter + """ + Filter by the object’s `resourceInstallationsByNamespaceIdAndDatabaseId` relation. + """ + resourceInstallationsByNamespaceIdAndDatabaseId: NamespaceToManyResourceInstallationFilter - """`resourceInstallations` exist.""" - resourceInstallationsExist: Boolean + """`resourceInstallationsByNamespaceIdAndDatabaseId` exist.""" + resourceInstallationsByNamespaceIdAndDatabaseIdExist: Boolean - """Filter by the object’s `resources` relation.""" - resources: NamespaceToManyResourceFilter + """Filter by the object’s `resourcesByNamespaceIdAndDatabaseId` relation.""" + resourcesByNamespaceIdAndDatabaseId: NamespaceToManyResourceFilter - """`resources` exist.""" - resourcesExist: Boolean + """`resourcesByNamespaceIdAndDatabaseId` exist.""" + resourcesByNamespaceIdAndDatabaseIdExist: Boolean + + """ + Filter by the object’s `serviceBindingsByNamespaceIdAndDatabaseId` relation. + """ + serviceBindingsByNamespaceIdAndDatabaseId: NamespaceToManyServiceBindingFilter + + """`serviceBindingsByNamespaceIdAndDatabaseId` exist.""" + serviceBindingsByNamespaceIdAndDatabaseIdExist: Boolean """Filter by the object’s `status` field.""" status: StringFilter @@ -23913,11 +23787,13 @@ input NamespaceFilter { """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter - """Filter by the object’s `webhookEndpoints` relation.""" - webhookEndpoints: NamespaceToManyWebhookEndpointFilter + """ + Filter by the object’s `webhookEndpointsByNamespaceIdAndDatabaseId` relation. + """ + webhookEndpointsByNamespaceIdAndDatabaseId: NamespaceToManyWebhookEndpointFilter - """`webhookEndpoints` exist.""" - webhookEndpointsExist: Boolean + """`webhookEndpointsByNamespaceIdAndDatabaseId` exist.""" + webhookEndpointsByNamespaceIdAndDatabaseIdExist: Boolean } """An input for mutations affecting `Namespace`""" @@ -24051,20 +23927,6 @@ input NamespacePatch { updatedAt: Datetime } -""" -A filter to be used against many `BuilderBinding` object types. All fields are combined with a logical ‘and.’ -""" -input NamespaceToManyBuilderBindingFilter { - """Filters to entities where every related entity matches.""" - every: BuilderBindingFilter - - """Filters to entities where no related entity matches.""" - none: BuilderBindingFilter - - """Filters to entities where at least one related entity matches.""" - some: BuilderBindingFilter -} - """ A filter to be used against many `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ """ @@ -24135,6 +23997,20 @@ input NamespaceToManyResourceInstallationFilter { some: ResourceInstallationFilter } +""" +A filter to be used against many `ServiceBinding` object types. All fields are combined with a logical ‘and.’ +""" +input NamespaceToManyServiceBindingFilter { + """Filters to entities where every related entity matches.""" + every: ServiceBindingFilter + + """Filters to entities where no related entity matches.""" + none: ServiceBindingFilter + + """Filters to entities where at least one related entity matches.""" + some: ServiceBindingFilter +} + """ A filter to be used against many `WebhookEndpoint` object types. All fields are combined with a logical ‘and.’ """ @@ -24209,6 +24085,21 @@ type PlatformBuild { """Build log object in storage; step rows slice it by byte range""" logs: ConstructiveInternalTypeUpload + """ + URL to fetch `logs`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. + """ + logsUrl( + """ + The width the file will be shown at, in device pixels. Without a version that wide, the source. + """ + width: Int + ): String + + """ + The versions rendered beside `logs`, narrowest first, each with a URL. Empty when there are none. + """ + logsVersions: [FileVersion!] + """Matrix shard identity; NULL for a non-matrix build""" matrixKey: String @@ -24534,11 +24425,6 @@ input PlatformBuildPatch { """Build log object in storage; step rows slice it by byte range""" logs: ConstructiveInternalTypeUpload - """ - Upload for Build log object in storage; step rows slice it by byte range - """ - logsUpload: Upload - """Matrix shard identity; NULL for a non-matrix build""" matrixKey: String @@ -24844,245 +24730,6 @@ input PlatformBuildStepPatch { summary: JSON } -""" -Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST -""" -type PlatformBuilderBinding { - createdAt: Datetime - createdBy: UUID - createdByPrincipal: UUID - id: UUID! - - """ - BuildKit resource installation serving this binding; may belong to another resource scope - """ - installationId: UUID! - - """Most recent projection failure""" - lastError: String - - """Reconciler detail (projection timestamps and diagnostics)""" - metadata: JSON - - """ - Reads a single `PlatformNamespace` that is related to this `PlatformBuilderBinding`. - """ - namespace: PlatformNamespace - - """Namespace whose builds use this BuildKit installation""" - namespaceId: UUID! - - """ - BuildKit address last projected into the namespace (NULL = never projected) - """ - observedHost: String - - """Lane this binding applies to (NULL = the scope's default lane)""" - realm: String - - """Projection state of BUILDKIT_HOST: pending, active, failed""" - status: String! - updatedAt: Datetime - updatedBy: UUID - updatedByPrincipal: UUID -} - -"""A connection to a list of `PlatformBuilderBinding` values.""" -type PlatformBuilderBindingConnection { - """ - A list of edges which contains the `PlatformBuilderBinding` and cursor to aid in pagination. - """ - edges: [PlatformBuilderBindingEdge]! - - """A list of `PlatformBuilderBinding` objects.""" - nodes: [PlatformBuilderBinding]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `PlatformBuilderBinding` you could get from the connection. - """ - totalCount: Int! -} - -"""A `PlatformBuilderBinding` edge in the connection.""" -type PlatformBuilderBindingEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `PlatformBuilderBinding` at the end of the edge.""" - node: PlatformBuilderBinding -} - -""" -A filter to be used against `PlatformBuilderBinding` object types. All fields are combined with a logical ‘and.’ -""" -input PlatformBuilderBindingFilter { - """Checks for all expressions in this list.""" - and: [PlatformBuilderBindingFilter!] - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `createdBy` field.""" - createdBy: UUIDFilter - - """Filter by the object’s `createdByPrincipal` field.""" - createdByPrincipal: UUIDFilter - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `installationId` field.""" - installationId: UUIDFilter - - """Filter by the object’s `lastError` field.""" - lastError: StringFilter - - """Filter by the object’s `metadata` field.""" - metadata: JSONFilter - - """Filter by the object’s `namespace` relation.""" - namespace: PlatformNamespaceFilter - - """Filter by the object’s `namespaceId` field.""" - namespaceId: UUIDFilter - - """Negates the expression.""" - not: PlatformBuilderBindingFilter - - """Filter by the object’s `observedHost` field.""" - observedHost: StringFilter - - """Checks for any expressions in this list.""" - or: [PlatformBuilderBindingFilter!] - - """Filter by the object’s `realm` field.""" - realm: StringFilter - - """Filter by the object’s `status` field.""" - status: StringFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Filter by the object’s `updatedBy` field.""" - updatedBy: UUIDFilter - - """Filter by the object’s `updatedByPrincipal` field.""" - updatedByPrincipal: UUIDFilter -} - -"""An input for mutations affecting `PlatformBuilderBinding`""" -input PlatformBuilderBindingInput { - createdAt: Datetime - createdBy: UUID - createdByPrincipal: UUID - id: UUID - - """ - BuildKit resource installation serving this binding; may belong to another resource scope - """ - installationId: UUID! - - """Most recent projection failure""" - lastError: String - - """Reconciler detail (projection timestamps and diagnostics)""" - metadata: JSON - - """Namespace whose builds use this BuildKit installation""" - namespaceId: UUID! - - """ - BuildKit address last projected into the namespace (NULL = never projected) - """ - observedHost: String - - """Lane this binding applies to (NULL = the scope's default lane)""" - realm: String - - """Projection state of BUILDKIT_HOST: pending, active, failed""" - status: String - updatedAt: Datetime - updatedBy: UUID - updatedByPrincipal: UUID -} - -"""Methods to use when ordering `PlatformBuilderBinding`.""" -enum PlatformBuilderBindingOrderBy { - CREATED_AT_ASC - CREATED_AT_DESC - CREATED_BY_ASC - CREATED_BY_DESC - CREATED_BY_PRINCIPAL_ASC - CREATED_BY_PRINCIPAL_DESC - ID_ASC - ID_DESC - INSTALLATION_ID_ASC - INSTALLATION_ID_DESC - LAST_ERROR_ASC - LAST_ERROR_DESC - METADATA_ASC - METADATA_DESC - NAMESPACE_ID_ASC - NAMESPACE_ID_DESC - NATURAL - OBSERVED_HOST_ASC - OBSERVED_HOST_DESC - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - REALM_ASC - REALM_DESC - STATUS_ASC - STATUS_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - UPDATED_BY_ASC - UPDATED_BY_DESC - UPDATED_BY_PRINCIPAL_ASC - UPDATED_BY_PRINCIPAL_DESC -} - -""" -Represents an update to a `PlatformBuilderBinding`. Fields that are set will be updated. -""" -input PlatformBuilderBindingPatch { - createdAt: Datetime - createdBy: UUID - createdByPrincipal: UUID - id: UUID - - """ - BuildKit resource installation serving this binding; may belong to another resource scope - """ - installationId: UUID - - """Most recent projection failure""" - lastError: String - - """Reconciler detail (projection timestamps and diagnostics)""" - metadata: JSON - - """Namespace whose builds use this BuildKit installation""" - namespaceId: UUID - - """ - BuildKit address last projected into the namespace (NULL = never projected) - """ - observedHost: String - - """Lane this binding applies to (NULL = the scope's default lane)""" - realm: String - - """Projection state of BUILDKIT_HOST: pending, active, failed""" - status: String - updatedAt: Datetime - updatedBy: UUID - updatedByPrincipal: UUID -} - """ Join table binding function definitions to API endpoints with per-binding alias and config """ @@ -30310,37 +29957,6 @@ type PlatformNamespace { """ namespaceName: String! - """ - Reads and enables pagination through a set of `PlatformBuilderBinding`. - """ - platformBuilderBindingsByNamespaceId( - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """The method to use when ordering `PlatformBuilderBinding`.""" - orderBy: [PlatformBuilderBindingOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PlatformBuilderBindingFilter - ): PlatformBuilderBindingConnection! - """ Reads and enables pagination through a set of `PlatformFunctionDeployment`. """ @@ -30494,6 +30110,37 @@ type PlatformNamespace { where: PlatformResourceFilter ): PlatformResourceConnection! + """ + Reads and enables pagination through a set of `PlatformServiceBinding`. + """ + platformServiceBindingsByNamespaceId( + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """The method to use when ordering `PlatformServiceBinding`.""" + orderBy: [PlatformServiceBindingOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformServiceBindingFilter + ): PlatformServiceBindingConnection! + """ Reads and enables pagination through a set of `PlatformWebhookEndpoint`. """ @@ -30778,14 +30425,6 @@ input PlatformNamespaceFilter { """Checks for any expressions in this list.""" or: [PlatformNamespaceFilter!] - """ - Filter by the object’s `platformBuilderBindingsByNamespaceId` relation. - """ - platformBuilderBindingsByNamespaceId: PlatformNamespaceToManyPlatformBuilderBindingFilter - - """`platformBuilderBindingsByNamespaceId` exist.""" - platformBuilderBindingsByNamespaceIdExist: Boolean - """ Filter by the object’s `platformFunctionDeploymentsByNamespaceId` relation. """ @@ -30824,6 +30463,14 @@ input PlatformNamespaceFilter { """`platformResourcesByNamespaceId` exist.""" platformResourcesByNamespaceIdExist: Boolean + """ + Filter by the object’s `platformServiceBindingsByNamespaceId` relation. + """ + platformServiceBindingsByNamespaceId: PlatformNamespaceToManyPlatformServiceBindingFilter + + """`platformServiceBindingsByNamespaceId` exist.""" + platformServiceBindingsByNamespaceIdExist: Boolean + """ Filter by the object’s `platformWebhookEndpointsByNamespaceId` relation. """ @@ -30962,20 +30609,6 @@ input PlatformNamespacePatch { updatedAt: Datetime } -""" -A filter to be used against many `PlatformBuilderBinding` object types. All fields are combined with a logical ‘and.’ -""" -input PlatformNamespaceToManyPlatformBuilderBindingFilter { - """Filters to entities where every related entity matches.""" - every: PlatformBuilderBindingFilter - - """Filters to entities where no related entity matches.""" - none: PlatformBuilderBindingFilter - - """Filters to entities where at least one related entity matches.""" - some: PlatformBuilderBindingFilter -} - """ A filter to be used against many `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ """ @@ -31046,6 +30679,20 @@ input PlatformNamespaceToManyPlatformResourceInstallationFilter { some: PlatformResourceInstallationFilter } +""" +A filter to be used against many `PlatformServiceBinding` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformNamespaceToManyPlatformServiceBindingFilter { + """Filters to entities where every related entity matches.""" + every: PlatformServiceBindingFilter + + """Filters to entities where no related entity matches.""" + none: PlatformServiceBindingFilter + + """Filters to entities where at least one related entity matches.""" + some: PlatformServiceBindingFilter +} + """ A filter to be used against many `PlatformWebhookEndpoint` object types. All fields are combined with a logical ‘and.’ """ @@ -31123,6 +30770,12 @@ type PlatformProposal { """When this is wanted by (NULL when nothing is promised)""" dueAt: Datetime embedding: Vector + embeddingModel: String + + """ + TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. + """ + embeddingModelTrgmSimilarity: Float embeddingUpdatedAt: Datetime """ @@ -31443,6 +31096,21 @@ type PlatformProposalComment { """Files referenced by the comment body, in the order they were attached""" attachments: [ConstructiveInternalTypeUpload] + """ + URL to fetch `attachments`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. + """ + attachmentsUrl( + """ + The width the file will be shown at, in device pixels. Without a version that wide, the source. + """ + width: Int + ): [String] + + """ + The versions rendered beside `attachments`, narrowest first, each with a URL. Empty when there are none. + """ + attachmentsVersions: [[FileVersion!]] + """Comment text""" body: String! @@ -31454,6 +31122,12 @@ type PlatformProposalComment { createdBy: UUID createdByPrincipal: UUID embedding: Vector + embeddingModel: String + + """ + TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. + """ + embeddingModelTrgmSimilarity: Float embeddingUpdatedAt: Datetime """ @@ -31589,6 +31263,9 @@ input PlatformProposalCommentFilter { """Filter by the object’s `embedding` field.""" embedding: VectorFilter + """Filter by the object’s `embeddingModel` field.""" + embeddingModel: StringTrgmFilter + """Filter by the object’s `embeddingUpdatedAt` field.""" embeddingUpdatedAt: DatetimeFilter @@ -31633,6 +31310,9 @@ input PlatformProposalCommentFilter { """TRGM search on the `body` column.""" trgmBody: TrgmSearchInput + """TRGM search on the `embedding_model` column.""" + trgmEmbeddingModel: TrgmSearchInput + """TRGM search on the `path` column.""" trgmPath: TrgmSearchInput @@ -31677,7 +31357,7 @@ input PlatformProposalCommentInput { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String id: UUID @@ -31719,6 +31399,10 @@ enum PlatformProposalCommentOrderBy { CREATED_BY_PRINCIPAL_DESC EMBEDDING_ASC EMBEDDING_DESC + EMBEDDING_MODEL_ASC + EMBEDDING_MODEL_DESC + EMBEDDING_MODEL_TRGM_SIMILARITY_ASC + EMBEDDING_MODEL_TRGM_SIMILARITY_DESC EMBEDDING_UPDATED_AT_ASC EMBEDDING_UPDATED_AT_DESC EMBEDDING_VECTOR_DISTANCE_ASC @@ -31772,7 +31456,7 @@ input PlatformProposalCommentPatch { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String id: UUID @@ -32062,6 +31746,9 @@ input PlatformProposalFilter { """Filter by the object’s `embedding` field.""" embedding: VectorFilter + """Filter by the object’s `embeddingModel` field.""" + embeddingModel: StringTrgmFilter + """Filter by the object’s `embeddingUpdatedAt` field.""" embeddingUpdatedAt: DatetimeFilter @@ -32181,6 +31868,9 @@ input PlatformProposalFilter { """TRGM search on the `closed_reason` column.""" trgmClosedReason: TrgmSearchInput + """TRGM search on the `embedding_model` column.""" + trgmEmbeddingModel: TrgmSearchInput + """TRGM search on the `kind` column.""" trgmKind: TrgmSearchInput @@ -32254,7 +31944,7 @@ input PlatformProposalInput { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String id: UUID @@ -32342,6 +32032,10 @@ enum PlatformProposalOrderBy { DUE_AT_DESC EMBEDDING_ASC EMBEDDING_DESC + EMBEDDING_MODEL_ASC + EMBEDDING_MODEL_DESC + EMBEDDING_MODEL_TRGM_SIMILARITY_ASC + EMBEDDING_MODEL_TRGM_SIMILARITY_DESC EMBEDDING_UPDATED_AT_ASC EMBEDDING_UPDATED_AT_DESC EMBEDDING_VECTOR_DISTANCE_ASC @@ -32437,7 +32131,7 @@ input PlatformProposalPatch { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String id: UUID @@ -33145,7 +32839,7 @@ input PlatformProposalsChunkInput { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String id: UUID @@ -33197,7 +32891,7 @@ input PlatformProposalsChunkPatch { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String id: UUID @@ -34147,6 +33841,12 @@ type PlatformRepository { """ descriptionTrgmSimilarity: Float embedding: Vector + embeddingModel: String + + """ + TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. + """ + embeddingModelTrgmSimilarity: Float embeddingUpdatedAt: Datetime """ @@ -34717,6 +34417,9 @@ input PlatformRepositoryFilter { """Filter by the object’s `embedding` field.""" embedding: VectorFilter + """Filter by the object’s `embeddingModel` field.""" + embeddingModel: StringTrgmFilter + """Filter by the object’s `embeddingUpdatedAt` field.""" embeddingUpdatedAt: DatetimeFilter @@ -34798,6 +34501,9 @@ input PlatformRepositoryFilter { """TRGM search on the `description` column.""" trgmDescription: TrgmSearchInput + """TRGM search on the `embedding_model` column.""" + trgmEmbeddingModel: TrgmSearchInput + """TRGM search on the `external_id` column.""" trgmExternalId: TrgmSearchInput @@ -34857,7 +34563,7 @@ input PlatformRepositoryInput { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String @@ -34916,6 +34622,10 @@ enum PlatformRepositoryOrderBy { DESCRIPTION_TRGM_SIMILARITY_DESC EMBEDDING_ASC EMBEDDING_DESC + EMBEDDING_MODEL_ASC + EMBEDDING_MODEL_DESC + EMBEDDING_MODEL_TRGM_SIMILARITY_ASC + EMBEDDING_MODEL_TRGM_SIMILARITY_DESC EMBEDDING_UPDATED_AT_ASC EMBEDDING_UPDATED_AT_DESC EMBEDDING_VECTOR_DISTANCE_ASC @@ -34983,7 +34693,7 @@ input PlatformRepositoryPatch { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String @@ -38783,6 +38493,285 @@ enum PlatformResourcesResolvedRequirementOrderBy { SLUG_DESC } +""" +Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config +""" +type PlatformServiceBinding { + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + id: UUID! + + """ + Resource installation serving this binding, in the installations table of installation_scope + """ + installationId: UUID! + + """ + Scope whose installations table holds installation_id: this scope or platform + """ + installationScope: String! + + """ + Service this binding projects: builder (BUILDKIT_HOST) or git (GIT_PROVIDER + GIT_SERVICE_URL) + """ + kind: String! + + """Most recent projection failure""" + lastError: String + + """Reconciler detail (projection timestamps and diagnostics)""" + metadata: JSON + + """ + Reads a single `PlatformNamespace` that is related to this `PlatformServiceBinding`. + """ + namespace: PlatformNamespace + + """Namespace whose builds use this BuildKit installation""" + namespaceId: UUID! + + """ + Service address last projected into the namespace (NULL = never projected) + """ + observedHost: String + + """Lane this binding applies to (NULL = the scope's default lane)""" + realm: String + + """Projection state of the bound address: pending, active, failed""" + status: String! + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} + +"""A connection to a list of `PlatformServiceBinding` values.""" +type PlatformServiceBindingConnection { + """ + A list of edges which contains the `PlatformServiceBinding` and cursor to aid in pagination. + """ + edges: [PlatformServiceBindingEdge]! + + """A list of `PlatformServiceBinding` objects.""" + nodes: [PlatformServiceBinding]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PlatformServiceBinding` you could get from the connection. + """ + totalCount: Int! +} + +"""A `PlatformServiceBinding` edge in the connection.""" +type PlatformServiceBindingEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlatformServiceBinding` at the end of the edge.""" + node: PlatformServiceBinding +} + +""" +A filter to be used against `PlatformServiceBinding` object types. All fields are combined with a logical ‘and.’ +""" +input PlatformServiceBindingFilter { + """Checks for all expressions in this list.""" + and: [PlatformServiceBindingFilter!] + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter + + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `installationId` field.""" + installationId: UUIDFilter + + """Filter by the object’s `installationScope` field.""" + installationScope: StringFilter + + """Filter by the object’s `kind` field.""" + kind: StringFilter + + """Filter by the object’s `lastError` field.""" + lastError: StringFilter + + """Filter by the object’s `metadata` field.""" + metadata: JSONFilter + + """Filter by the object’s `namespace` relation.""" + namespace: PlatformNamespaceFilter + + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter + + """Negates the expression.""" + not: PlatformServiceBindingFilter + + """Filter by the object’s `observedHost` field.""" + observedHost: StringFilter + + """Checks for any expressions in this list.""" + or: [PlatformServiceBindingFilter!] + + """Filter by the object’s `realm` field.""" + realm: StringFilter + + """Filter by the object’s `status` field.""" + status: StringFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter +} + +"""An input for mutations affecting `PlatformServiceBinding`""" +input PlatformServiceBindingInput { + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + id: UUID + + """ + Resource installation serving this binding, in the installations table of installation_scope + """ + installationId: UUID! + + """ + Scope whose installations table holds installation_id: this scope or platform + """ + installationScope: String! + + """ + Service this binding projects: builder (BUILDKIT_HOST) or git (GIT_PROVIDER + GIT_SERVICE_URL) + """ + kind: String! + + """Most recent projection failure""" + lastError: String + + """Reconciler detail (projection timestamps and diagnostics)""" + metadata: JSON + + """Namespace whose builds use this BuildKit installation""" + namespaceId: UUID! + + """ + Service address last projected into the namespace (NULL = never projected) + """ + observedHost: String + + """Lane this binding applies to (NULL = the scope's default lane)""" + realm: String + + """Projection state of the bound address: pending, active, failed""" + status: String + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} + +"""Methods to use when ordering `PlatformServiceBinding`.""" +enum PlatformServiceBindingOrderBy { + CREATED_AT_ASC + CREATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + ID_ASC + ID_DESC + INSTALLATION_ID_ASC + INSTALLATION_ID_DESC + INSTALLATION_SCOPE_ASC + INSTALLATION_SCOPE_DESC + KIND_ASC + KIND_DESC + LAST_ERROR_ASC + LAST_ERROR_DESC + METADATA_ASC + METADATA_DESC + NAMESPACE_ID_ASC + NAMESPACE_ID_DESC + NATURAL + OBSERVED_HOST_ASC + OBSERVED_HOST_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + REALM_ASC + REALM_DESC + STATUS_ASC + STATUS_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC +} + +""" +Represents an update to a `PlatformServiceBinding`. Fields that are set will be updated. +""" +input PlatformServiceBindingPatch { + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + id: UUID + + """ + Resource installation serving this binding, in the installations table of installation_scope + """ + installationId: UUID + + """ + Scope whose installations table holds installation_id: this scope or platform + """ + installationScope: String + + """ + Service this binding projects: builder (BUILDKIT_HOST) or git (GIT_PROVIDER + GIT_SERVICE_URL) + """ + kind: String + + """Most recent projection failure""" + lastError: String + + """Reconciler detail (projection timestamps and diagnostics)""" + metadata: JSON + + """Namespace whose builds use this BuildKit installation""" + namespaceId: UUID + + """ + Service address last projected into the namespace (NULL = never projected) + """ + observedHost: String + + """Lane this binding applies to (NULL = the scope's default lane)""" + realm: String + + """Projection state of the bound address: pending, active, failed""" + status: String + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} + """ Webhook route authority: (host, path) -> function task_identifier invoked through the webhook channel, with provider, signing-secret reference, and replay window """ @@ -39456,6 +39445,12 @@ type Proposal { """When this is wanted by (NULL when nothing is promised)""" dueAt: Datetime embedding: Vector + embeddingModel: String + + """ + TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. + """ + embeddingModelTrgmSimilarity: Float embeddingUpdatedAt: Datetime """ @@ -39733,6 +39728,21 @@ type ProposalComment { """Files referenced by the comment body, in the order they were attached""" attachments: [ConstructiveInternalTypeUpload] + """ + URL to fetch `attachments`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. + """ + attachmentsUrl( + """ + The width the file will be shown at, in device pixels. Without a version that wide, the source. + """ + width: Int + ): [String] + + """ + The versions rendered beside `attachments`, narrowest first, each with a URL. Empty when there are none. + """ + attachmentsVersions: [[FileVersion!]] + """Comment text""" body: String! @@ -39747,6 +39757,12 @@ type ProposalComment { """Database that owns this resource (database-scoped isolation)""" databaseId: UUID! embedding: Vector + embeddingModel: String + + """ + TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. + """ + embeddingModelTrgmSimilarity: Float embeddingUpdatedAt: Datetime """ @@ -39881,6 +39897,9 @@ input ProposalCommentFilter { """Filter by the object’s `embedding` field.""" embedding: VectorFilter + """Filter by the object’s `embeddingModel` field.""" + embeddingModel: StringTrgmFilter + """Filter by the object’s `embeddingUpdatedAt` field.""" embeddingUpdatedAt: DatetimeFilter @@ -39923,6 +39942,9 @@ input ProposalCommentFilter { """TRGM search on the `body` column.""" trgmBody: TrgmSearchInput + """TRGM search on the `embedding_model` column.""" + trgmEmbeddingModel: TrgmSearchInput + """TRGM search on the `path` column.""" trgmPath: TrgmSearchInput @@ -39967,7 +39989,7 @@ input ProposalCommentInput { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String id: UUID @@ -40011,6 +40033,10 @@ enum ProposalCommentOrderBy { DATABASE_ID_DESC EMBEDDING_ASC EMBEDDING_DESC + EMBEDDING_MODEL_ASC + EMBEDDING_MODEL_DESC + EMBEDDING_MODEL_TRGM_SIMILARITY_ASC + EMBEDDING_MODEL_TRGM_SIMILARITY_DESC EMBEDDING_UPDATED_AT_ASC EMBEDDING_UPDATED_AT_DESC EMBEDDING_VECTOR_DISTANCE_ASC @@ -40067,7 +40093,7 @@ input ProposalCommentPatch { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String id: UUID @@ -40373,6 +40399,9 @@ input ProposalFilter { """Filter by the object’s `embedding` field.""" embedding: VectorFilter + """Filter by the object’s `embeddingModel` field.""" + embeddingModel: StringTrgmFilter + """Filter by the object’s `embeddingUpdatedAt` field.""" embeddingUpdatedAt: DatetimeFilter @@ -40478,6 +40507,9 @@ input ProposalFilter { """TRGM search on the `closed_reason` column.""" trgmClosedReason: TrgmSearchInput + """TRGM search on the `embedding_model` column.""" + trgmEmbeddingModel: TrgmSearchInput + """TRGM search on the `kind` column.""" trgmKind: TrgmSearchInput @@ -40551,7 +40583,7 @@ input ProposalInput { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String id: UUID @@ -40641,6 +40673,10 @@ enum ProposalOrderBy { DUE_AT_DESC EMBEDDING_ASC EMBEDDING_DESC + EMBEDDING_MODEL_ASC + EMBEDDING_MODEL_DESC + EMBEDDING_MODEL_TRGM_SIMILARITY_ASC + EMBEDDING_MODEL_TRGM_SIMILARITY_DESC EMBEDDING_UPDATED_AT_ASC EMBEDDING_UPDATED_AT_DESC EMBEDDING_VECTOR_DISTANCE_ASC @@ -40739,7 +40775,7 @@ input ProposalPatch { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String id: UUID @@ -41472,7 +41508,7 @@ input ProposalsChunkInput { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String id: UUID @@ -41531,7 +41567,7 @@ input ProposalsChunkPatch { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String id: UUID @@ -41601,35 +41637,6 @@ type Query { where: BuildStepFilter ): BuildStepConnection - """Reads and enables pagination through a set of `BuilderBinding`.""" - builderBindings( - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """The method to use when ordering `BuilderBinding`.""" - orderBy: [BuilderBindingOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: BuilderBindingFilter - ): BuilderBindingConnection - """Reads and enables pagination through a set of `Build`.""" builds( """Read all values in the set after (below) this cursor.""" @@ -42877,37 +42884,6 @@ type Query { where: PlatformBuildStepFilter ): PlatformBuildStepConnection - """ - Reads and enables pagination through a set of `PlatformBuilderBinding`. - """ - platformBuilderBindings( - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """The method to use when ordering `PlatformBuilderBinding`.""" - orderBy: [PlatformBuilderBindingOrderBy!] = [PRIMARY_KEY_ASC] - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: PlatformBuilderBindingFilter - ): PlatformBuilderBindingConnection - """Reads and enables pagination through a set of `PlatformBuild`.""" platformBuilds( """Read all values in the set after (below) this cursor.""" @@ -44326,6 +44302,37 @@ type Query { where: PlatformResourcesResolvedRequirementFilter ): PlatformResourcesResolvedRequirementConnection + """ + Reads and enables pagination through a set of `PlatformServiceBinding`. + """ + platformServiceBindings( + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """The method to use when ordering `PlatformServiceBinding`.""" + orderBy: [PlatformServiceBindingOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: PlatformServiceBindingFilter + ): PlatformServiceBindingConnection + """ Reads and enables pagination through a set of `PlatformWebhookEndpoint`. """ @@ -45151,6 +45158,35 @@ type Query { where: ResourcesResolvedRequirementFilter ): ResourcesResolvedRequirementConnection + """Reads and enables pagination through a set of `ServiceBinding`.""" + serviceBindings( + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """The method to use when ordering `ServiceBinding`.""" + orderBy: [ServiceBindingOrderBy!] = [PRIMARY_KEY_ASC] + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: ServiceBindingFilter + ): ServiceBindingConnection + """Reads and enables pagination through a set of `WebhookEndpoint`.""" webhookEndpoints( """Read all values in the set after (below) this cursor.""" @@ -45358,7 +45394,7 @@ type RegistryBinding { metadata: JSON """Reads a single `Namespace` that is related to this `RegistryBinding`.""" - namespace: Namespace + namespaceByNamespaceIdAndDatabaseId: Namespace """Namespace the registry credentials are projected into""" namespaceId: UUID! @@ -45447,8 +45483,8 @@ input RegistryBindingFilter { """Filter by the object’s `metadata` field.""" metadata: JSONFilter - """Filter by the object’s `namespace` relation.""" - namespace: NamespaceFilter + """Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation.""" + namespaceByNamespaceIdAndDatabaseId: NamespaceFilter """Filter by the object’s `namespaceId` field.""" namespaceId: UUIDFilter @@ -46211,6 +46247,12 @@ type Repository { """ descriptionTrgmSimilarity: Float embedding: Vector + embeddingModel: String + + """ + TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. + """ + embeddingModelTrgmSimilarity: Float embeddingUpdatedAt: Datetime """ @@ -46764,6 +46806,9 @@ input RepositoryFilter { """Filter by the object’s `embedding` field.""" embedding: VectorFilter + """Filter by the object’s `embeddingModel` field.""" + embeddingModel: StringTrgmFilter + """Filter by the object’s `embeddingUpdatedAt` field.""" embeddingUpdatedAt: DatetimeFilter @@ -46833,6 +46878,9 @@ input RepositoryFilter { """TRGM search on the `description` column.""" trgmDescription: TrgmSearchInput + """TRGM search on the `embedding_model` column.""" + trgmEmbeddingModel: TrgmSearchInput + """TRGM search on the `external_id` column.""" trgmExternalId: TrgmSearchInput @@ -46895,7 +46943,7 @@ input RepositoryInput { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String @@ -46956,6 +47004,10 @@ enum RepositoryOrderBy { DESCRIPTION_TRGM_SIMILARITY_DESC EMBEDDING_ASC EMBEDDING_DESC + EMBEDDING_MODEL_ASC + EMBEDDING_MODEL_DESC + EMBEDDING_MODEL_TRGM_SIMILARITY_ASC + EMBEDDING_MODEL_TRGM_SIMILARITY_DESC EMBEDDING_UPDATED_AT_ASC EMBEDDING_UPDATED_AT_DESC EMBEDDING_VECTOR_DISTANCE_ASC @@ -47026,7 +47078,7 @@ input RepositoryPatch { embedding: Vector """ - Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. """ embeddingText: String @@ -47775,7 +47827,7 @@ type Resource { name: String! """Reads a single `Namespace` that is related to this `Resource`.""" - namespace: Namespace + namespaceByNamespaceIdAndDatabaseId: Namespace """ Namespace this resource belongs to (security boundary, maps to K8s namespace) @@ -48066,7 +48118,7 @@ type ResourceDefinition { """ Reads a single `Namespace` that is related to this `ResourceDefinition`. """ - namespace: Namespace + namespaceByNamespaceIdAndDatabaseId: Namespace """ Namespace this definition belongs to (security boundary, maps to K8s namespace) @@ -48200,8 +48252,8 @@ input ResourceDefinitionFilter { """Filter by the object’s `name` field.""" name: StringFilter - """Filter by the object’s `namespace` relation.""" - namespace: NamespaceFilter + """Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation.""" + namespaceByNamespaceIdAndDatabaseId: NamespaceFilter """Filter by the object’s `namespaceId` field.""" namespaceId: UUIDFilter @@ -48697,8 +48749,8 @@ input ResourceFilter { """Filter by the object’s `name` field.""" name: StringFilter - """Filter by the object’s `namespace` relation.""" - namespace: NamespaceFilter + """Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation.""" + namespaceByNamespaceIdAndDatabaseId: NamespaceFilter """Filter by the object’s `namespaceId` field.""" namespaceId: UUIDFilter @@ -48879,7 +48931,7 @@ type ResourceInstallation { """ Reads a single `Namespace` that is related to this `ResourceInstallation`. """ - namespace: Namespace + namespaceByNamespaceIdAndDatabaseId: Namespace """Namespace this installation belongs to (security boundary)""" namespaceId: UUID! @@ -49025,8 +49077,8 @@ input ResourceInstallationFilter { """Filter by the object’s `name` field.""" name: StringFilter - """Filter by the object’s `namespace` relation.""" - namespace: NamespaceFilter + """Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation.""" + namespaceByNamespaceIdAndDatabaseId: NamespaceFilter """Filter by the object’s `namespaceId` field.""" namespaceId: UUIDFilter @@ -50981,6 +51033,295 @@ type SaveGraphPayload { result: UUID } +""" +Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config +""" +type ServiceBinding { + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + id: UUID! + + """ + Resource installation serving this binding, in the installations table of installation_scope + """ + installationId: UUID! + + """ + Scope whose installations table holds installation_id: this scope or platform + """ + installationScope: String! + + """ + Service this binding projects: builder (BUILDKIT_HOST) or git (GIT_PROVIDER + GIT_SERVICE_URL) + """ + kind: String! + + """Most recent projection failure""" + lastError: String + + """Reconciler detail (projection timestamps and diagnostics)""" + metadata: JSON + + """Reads a single `Namespace` that is related to this `ServiceBinding`.""" + namespaceByNamespaceIdAndDatabaseId: Namespace + + """Namespace whose builds use this BuildKit installation""" + namespaceId: UUID! + + """ + Service address last projected into the namespace (NULL = never projected) + """ + observedHost: String + + """Lane this binding applies to (NULL = the scope's default lane)""" + realm: String + + """Projection state of the bound address: pending, active, failed""" + status: String! + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} + +"""A connection to a list of `ServiceBinding` values.""" +type ServiceBindingConnection { + """ + A list of edges which contains the `ServiceBinding` and cursor to aid in pagination. + """ + edges: [ServiceBindingEdge]! + + """A list of `ServiceBinding` objects.""" + nodes: [ServiceBinding]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `ServiceBinding` you could get from the connection.""" + totalCount: Int! +} + +"""A `ServiceBinding` edge in the connection.""" +type ServiceBindingEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `ServiceBinding` at the end of the edge.""" + node: ServiceBinding +} + +""" +A filter to be used against `ServiceBinding` object types. All fields are combined with a logical ‘and.’ +""" +input ServiceBindingFilter { + """Checks for all expressions in this list.""" + and: [ServiceBindingFilter!] + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter + + """Filter by the object’s `createdByPrincipal` field.""" + createdByPrincipal: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `installationId` field.""" + installationId: UUIDFilter + + """Filter by the object’s `installationScope` field.""" + installationScope: StringFilter + + """Filter by the object’s `kind` field.""" + kind: StringFilter + + """Filter by the object’s `lastError` field.""" + lastError: StringFilter + + """Filter by the object’s `metadata` field.""" + metadata: JSONFilter + + """Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation.""" + namespaceByNamespaceIdAndDatabaseId: NamespaceFilter + + """Filter by the object’s `namespaceId` field.""" + namespaceId: UUIDFilter + + """Negates the expression.""" + not: ServiceBindingFilter + + """Filter by the object’s `observedHost` field.""" + observedHost: StringFilter + + """Checks for any expressions in this list.""" + or: [ServiceBindingFilter!] + + """Filter by the object’s `realm` field.""" + realm: StringFilter + + """Filter by the object’s `status` field.""" + status: StringFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter + + """Filter by the object’s `updatedByPrincipal` field.""" + updatedByPrincipal: UUIDFilter +} + +"""An input for mutations affecting `ServiceBinding`""" +input ServiceBindingInput { + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID! + id: UUID + + """ + Resource installation serving this binding, in the installations table of installation_scope + """ + installationId: UUID! + + """ + Scope whose installations table holds installation_id: this scope or platform + """ + installationScope: String! + + """ + Service this binding projects: builder (BUILDKIT_HOST) or git (GIT_PROVIDER + GIT_SERVICE_URL) + """ + kind: String! + + """Most recent projection failure""" + lastError: String + + """Reconciler detail (projection timestamps and diagnostics)""" + metadata: JSON + + """Namespace whose builds use this BuildKit installation""" + namespaceId: UUID! + + """ + Service address last projected into the namespace (NULL = never projected) + """ + observedHost: String + + """Lane this binding applies to (NULL = the scope's default lane)""" + realm: String + + """Projection state of the bound address: pending, active, failed""" + status: String + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} + +"""Methods to use when ordering `ServiceBinding`.""" +enum ServiceBindingOrderBy { + CREATED_AT_ASC + CREATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + CREATED_BY_PRINCIPAL_ASC + CREATED_BY_PRINCIPAL_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + ID_ASC + ID_DESC + INSTALLATION_ID_ASC + INSTALLATION_ID_DESC + INSTALLATION_SCOPE_ASC + INSTALLATION_SCOPE_DESC + KIND_ASC + KIND_DESC + LAST_ERROR_ASC + LAST_ERROR_DESC + METADATA_ASC + METADATA_DESC + NAMESPACE_ID_ASC + NAMESPACE_ID_DESC + NATURAL + OBSERVED_HOST_ASC + OBSERVED_HOST_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + REALM_ASC + REALM_DESC + STATUS_ASC + STATUS_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + UPDATED_BY_PRINCIPAL_ASC + UPDATED_BY_PRINCIPAL_DESC +} + +""" +Represents an update to a `ServiceBinding`. Fields that are set will be updated. +""" +input ServiceBindingPatch { + createdAt: Datetime + createdBy: UUID + createdByPrincipal: UUID + + """Database that owns this resource (database-scoped isolation)""" + databaseId: UUID + id: UUID + + """ + Resource installation serving this binding, in the installations table of installation_scope + """ + installationId: UUID + + """ + Scope whose installations table holds installation_id: this scope or platform + """ + installationScope: String + + """ + Service this binding projects: builder (BUILDKIT_HOST) or git (GIT_PROVIDER + GIT_SERVICE_URL) + """ + kind: String + + """Most recent projection failure""" + lastError: String + + """Reconciler detail (projection timestamps and diagnostics)""" + metadata: JSON + + """Namespace whose builds use this BuildKit installation""" + namespaceId: UUID + + """ + Service address last projected into the namespace (NULL = never projected) + """ + observedHost: String + + """Lane this binding applies to (NULL = the scope's default lane)""" + realm: String + + """Projection state of the bound address: pending, active, failed""" + status: String + updatedAt: Datetime + updatedBy: UUID + updatedByPrincipal: UUID +} + """All input for the `setAndCommit` mutation.""" input SetAndCommitInput { """ @@ -51657,44 +51998,6 @@ type UpdateBuildStepPayload { query: Query } -"""All input for the `updateBuilderBinding` mutation.""" -input UpdateBuilderBindingInput { - """ - An object where the defined keys will be set on the `BuilderBinding` being updated. - """ - builderBindingPatch: BuilderBindingPatch! - - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our update `BuilderBinding` mutation.""" -type UpdateBuilderBindingPayload { - """The `BuilderBinding` that was updated by this mutation.""" - builderBinding: BuilderBinding - - """An edge for our `BuilderBinding`. May be used by Relay 1.""" - builderBindingEdge( - """The method to use when ordering `BuilderBinding`.""" - orderBy: [BuilderBindingOrderBy!]! = [PRIMARY_KEY_ASC] - ): BuilderBindingEdge - - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - """All input for the `updateContentPreset` mutation.""" input UpdateContentPresetInput { """ @@ -53386,44 +53689,6 @@ type UpdatePlatformBuildStepPayload { query: Query } -"""All input for the `updatePlatformBuilderBinding` mutation.""" -input UpdatePlatformBuilderBindingInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `PlatformBuilderBinding` being updated. - """ - platformBuilderBindingPatch: PlatformBuilderBindingPatch! -} - -"""The output of our update `PlatformBuilderBinding` mutation.""" -type UpdatePlatformBuilderBindingPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `PlatformBuilderBinding` that was updated by this mutation.""" - platformBuilderBinding: PlatformBuilderBinding - - """An edge for our `PlatformBuilderBinding`. May be used by Relay 1.""" - platformBuilderBindingEdge( - """The method to use when ordering `PlatformBuilderBinding`.""" - orderBy: [PlatformBuilderBindingOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformBuilderBindingEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - """All input for the `updatePlatformFunctionApiBinding` mutation.""" input UpdatePlatformFunctionApiBindingInput { """ @@ -54991,6 +55256,44 @@ type UpdatePlatformResourceUsageSummaryPayload { query: Query } +"""All input for the `updatePlatformServiceBinding` mutation.""" +input UpdatePlatformServiceBindingInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `PlatformServiceBinding` being updated. + """ + platformServiceBindingPatch: PlatformServiceBindingPatch! +} + +"""The output of our update `PlatformServiceBinding` mutation.""" +type UpdatePlatformServiceBindingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlatformServiceBinding` that was updated by this mutation.""" + platformServiceBinding: PlatformServiceBinding + + """An edge for our `PlatformServiceBinding`. May be used by Relay 1.""" + platformServiceBindingEdge( + """The method to use when ordering `PlatformServiceBinding`.""" + orderBy: [PlatformServiceBindingOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlatformServiceBindingEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + """All input for the `updatePlatformWebhookEndpoint` mutation.""" input UpdatePlatformWebhookEndpointInput { """ @@ -55844,6 +56147,44 @@ type UpdateResourceUsageSummaryPayload { ): ResourceUsageSummaryEdge } +"""All input for the `updateServiceBinding` mutation.""" +input UpdateServiceBindingInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `ServiceBinding` being updated. + """ + serviceBindingPatch: ServiceBindingPatch! +} + +"""The output of our update `ServiceBinding` mutation.""" +type UpdateServiceBindingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """The `ServiceBinding` that was updated by this mutation.""" + serviceBinding: ServiceBinding + + """An edge for our `ServiceBinding`. May be used by Relay 1.""" + serviceBindingEdge( + """The method to use when ordering `ServiceBinding`.""" + orderBy: [ServiceBindingOrderBy!]! = [PRIMARY_KEY_ASC] + ): ServiceBindingEdge +} + """All input for the `updateWebhookEndpoint` mutation.""" input UpdateWebhookEndpointInput { """ @@ -55920,9 +56261,6 @@ type UpdateWebhookEventPayload { ): WebhookEventEdge } -"""The `Upload` scalar type represents a file upload.""" -scalar Upload - """All input for the `validateFunctionGraph` mutation.""" input ValidateFunctionGraphInput { """ @@ -56015,12 +56353,17 @@ input VectorNearbyInput { metric: VectorMetric """ - Natural language text to embed server-side for similarity search. Mutually exclusive with `vector` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. + The model that produced `vector`. On a column that records the model of each row's vector, only rows embedded with this model are compared; vectors of two models are not comparable. Filled in server-side when `text` is embedded. + """ + model: String + + """ + Natural language text to embed server-side for similarity search. Provide exactly one of `text` or `vector`; sending both or neither is an error. Blank text on its own counts as not given. Requires the LLM plugin to be configured with an embedding provider. """ text: String """Query vector for similarity search.""" - vector: [Float!]! + vector: [Float!] } """ @@ -56053,7 +56396,7 @@ type WebhookEndpoint { id: UUID! """Reads a single `Namespace` that is related to this `WebhookEndpoint`.""" - namespace: Namespace + namespaceByNamespaceIdAndDatabaseId: Namespace """Namespace that owns this endpoint and contains its signing secret""" namespaceId: UUID! @@ -56171,8 +56514,8 @@ input WebhookEndpointFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `namespace` relation.""" - namespace: NamespaceFilter + """Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation.""" + namespaceByNamespaceIdAndDatabaseId: NamespaceFilter """Filter by the object’s `namespaceId` field.""" namespaceId: UUIDFilter diff --git a/sdk/constructive-sdk/schemas/config.graphql b/sdk/constructive-sdk/schemas/config.graphql index 63617187f9..05d9bad36d 100644 --- a/sdk/constructive-sdk/schemas/config.graphql +++ b/sdk/constructive-sdk/schemas/config.graphql @@ -1217,6 +1217,11 @@ type MetaBelongsToRelation { fieldName: String isUnique: Boolean! keys: [MetaField!]! + + """ + Fields on the referenced table that keys point at, in the same order as keys + """ + refKeys: [MetaField!]! references: MetaRefTable! type: String } @@ -1239,22 +1244,66 @@ type MetaEnum { """Information about a table field/column""" type MetaField { + """ + Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. + """ + allowedValues: [String!] + """PostgreSQL column name""" columnName: String! description: String """Enum metadata if this field has an enum type""" enumValues: MetaEnum + + """ + Set when the field holds files; null otherwise. Set on a table's own fields only. + """ + file: MetaFileField hasDefault: Boolean! + + """ + Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. + """ + isComputed: Boolean isForeignKey: Boolean! isNotNull: Boolean! isPrimaryKey: Boolean! + """ + Whether a create must provide this field. Set on a table's own fields only. + """ + isRequiredOnCreate: Boolean + + """Whether a create may set this field. Set on a table's own fields only.""" + isWritableOnCreate: Boolean + + """ + Whether an update may change this field. Set on a table's own fields only. + """ + isWritableOnUpdate: Boolean + """Final GraphQL field name""" name: String! type: MetaType! } +"""How a field holds files""" +type MetaFileField { + """ + GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise + """ + filesType: String + + """Whether the field holds a list of files""" + isMultiple: Boolean! + + """ + image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. + """ + kind: String! +} + """Information about a foreign key constraint""" type MetaForeignKeyConstraint { fields: [MetaField!]! @@ -1271,10 +1320,15 @@ type MetaHasRelation { isUnique: Boolean! keys: [MetaField!]! referencedBy: MetaRefTable! + + """ + Fields on the related table that point at this table, in the same order as keys + """ + remoteKeys: [MetaField!]! type: String } -"""i18n metadata for a table with @i18n tag""" +"""i18n metadata for a translatable table""" type MetaI18n { """Fields that are translatable""" translatableFields: [MetaI18nField!]! @@ -1301,7 +1355,7 @@ type MetaIndex { name: String! } -"""Table inflection names""" +"""Type and field names generated for this table""" type MetaInflection { allRows: String! conditionType: String! @@ -1346,7 +1400,7 @@ type MetaQuery { update: String } -"""Realtime metadata for a table with @realtime tag""" +"""Realtime metadata for a table with change subscriptions""" type MetaRealtime { """The generated subscription field name (e.g. onPostChanged)""" subscriptionFieldName: String! @@ -1367,13 +1421,15 @@ type MetaRelations { } """ -How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. +How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. """ type MetaScalarEncoding { """For 'vector': declared length, else null.""" dimensions: Int - """For 'ltree': values are dot-separated path strings.""" + """ + For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). + """ dotPath: Boolean """For 'vector': element scalar (e.g. 'float').""" @@ -1398,11 +1454,11 @@ type MetaSchema { """Provisioning scope metadata for a table""" type MetaScope { - """SQL name of the entity table for entity scopes, else null""" + """Name of the entity table for entity scopes, else null""" entityTable: String """ - Inflected scope key column (e.g. databaseId, orgId), null for global tiers + Field name of the scope key (e.g. databaseId, orgId), null for global tiers """ keyColumn: String @@ -1411,7 +1467,7 @@ type MetaScope { """ scope: String! - """Provenance of the scope metadata (always 'smartTag')""" + """Where this scope metadata comes from""" source: String! """Coarse bucket: 'global', 'database', or 'entity'""" @@ -1442,7 +1498,7 @@ type MetaSearchColumn { name: String! } -"""Per-table search configuration from @searchConfig smart tag""" +"""Per-table search configuration""" type MetaSearchConfig { """Exponential decay factor per day""" boostRecencyDecay: Float @@ -1459,7 +1515,7 @@ type MetaSearchConfig { """Storage metadata for a table""" type MetaStorage { - """GraphQL type name of the plane's buckets table""" + """GraphQL type name of the paired buckets table""" bucketsType: String! """ @@ -1467,7 +1523,7 @@ type MetaStorage { """ downloadUrlField: String - """GraphQL type name of the plane's files table""" + """GraphQL type name of the paired files table""" filesType: String! """Whether this table is a storage buckets table""" @@ -1476,13 +1532,11 @@ type MetaStorage { """Whether this table is a storage files table""" isFilesTable: Boolean! - """The plane's GraphQL upload surface""" + """Upload mutations and types for this storage""" upload: MetaStorageUpload! } -""" -The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from -""" +"""The upload mutations and types for a storage table pair""" type MetaStorageUpload { """Per-file input type inside the bulk input""" bulkFileInputType: String! @@ -1508,32 +1562,45 @@ type MetaStorageUpload { """Payload type of the single upload mutation""" payloadType: String! - """Whether the upload input requires ownerId (entity-keyed plane)""" + """Whether the upload input requires ownerId""" requiresOwnerId: Boolean! } """Information about a database table""" type MetaTable { constraints: MetaConstraints! + + """Description written for this table, or null""" + description: String fields: [MetaField!]! foreignKeyConstraints: [MetaForeignKeyConstraint!]! - """i18n metadata (null if no @i18n tag)""" + """i18n metadata (null if the table is not translatable)""" i18n: MetaI18n indexes: [MetaIndex!]! inflection: MetaInflection! + """ + Whether this table only links rows of two other tables; the link appears in their manyToMany relations + """ + isJunction: Boolean! + + """ + 'table' when rows are stored in this table, 'view' when they come from a view of other tables + """ + kind: String! + """Final GraphQL output type name""" name: String! primaryKeyConstraints: [MetaPrimaryKeyConstraint!]! query: MetaQuery! - """Realtime metadata (null if no @realtime tag)""" + """Realtime metadata (null if the table has no change subscriptions)""" realtime: MetaRealtime relations: MetaRelations! schemaName: String! - """Provisioning scope metadata (null if no @scope tag)""" + """Provisioning scope metadata (null if the table has no scope)""" scope: MetaScope """Search metadata (null if no search configured)""" @@ -1555,7 +1622,22 @@ type MetaType { hasDefault: Boolean isArray: Boolean! isNotNull: Boolean + + """ + Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. + """ + maxLength: Int pgType: String! + + """ + Most significant digits a decimal number may hold. Null when unbounded. + """ + precision: Int + + """ + Digits a decimal number keeps after the decimal point. Null when unbounded. + """ + scale: Int subtype: String } diff --git a/sdk/constructive-sdk/schemas/infra.graphql b/sdk/constructive-sdk/schemas/infra.graphql index 49c184eb27..87112525a5 100644 --- a/sdk/constructive-sdk/schemas/infra.graphql +++ b/sdk/constructive-sdk/schemas/infra.graphql @@ -1360,6 +1360,11 @@ type MetaBelongsToRelation { fieldName: String isUnique: Boolean! keys: [MetaField!]! + + """ + Fields on the referenced table that keys point at, in the same order as keys + """ + refKeys: [MetaField!]! references: MetaRefTable! type: String } @@ -1382,22 +1387,66 @@ type MetaEnum { """Information about a table field/column""" type MetaField { + """ + Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. + """ + allowedValues: [String!] + """PostgreSQL column name""" columnName: String! description: String """Enum metadata if this field has an enum type""" enumValues: MetaEnum + + """ + Set when the field holds files; null otherwise. Set on a table's own fields only. + """ + file: MetaFileField hasDefault: Boolean! + + """ + Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. + """ + isComputed: Boolean isForeignKey: Boolean! isNotNull: Boolean! isPrimaryKey: Boolean! + """ + Whether a create must provide this field. Set on a table's own fields only. + """ + isRequiredOnCreate: Boolean + + """Whether a create may set this field. Set on a table's own fields only.""" + isWritableOnCreate: Boolean + + """ + Whether an update may change this field. Set on a table's own fields only. + """ + isWritableOnUpdate: Boolean + """Final GraphQL field name""" name: String! type: MetaType! } +"""How a field holds files""" +type MetaFileField { + """ + GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise + """ + filesType: String + + """Whether the field holds a list of files""" + isMultiple: Boolean! + + """ + image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. + """ + kind: String! +} + """Information about a foreign key constraint""" type MetaForeignKeyConstraint { fields: [MetaField!]! @@ -1414,10 +1463,15 @@ type MetaHasRelation { isUnique: Boolean! keys: [MetaField!]! referencedBy: MetaRefTable! + + """ + Fields on the related table that point at this table, in the same order as keys + """ + remoteKeys: [MetaField!]! type: String } -"""i18n metadata for a table with @i18n tag""" +"""i18n metadata for a translatable table""" type MetaI18n { """Fields that are translatable""" translatableFields: [MetaI18nField!]! @@ -1444,7 +1498,7 @@ type MetaIndex { name: String! } -"""Table inflection names""" +"""Type and field names generated for this table""" type MetaInflection { allRows: String! conditionType: String! @@ -1489,7 +1543,7 @@ type MetaQuery { update: String } -"""Realtime metadata for a table with @realtime tag""" +"""Realtime metadata for a table with change subscriptions""" type MetaRealtime { """The generated subscription field name (e.g. onPostChanged)""" subscriptionFieldName: String! @@ -1510,13 +1564,15 @@ type MetaRelations { } """ -How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. +How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. """ type MetaScalarEncoding { """For 'vector': declared length, else null.""" dimensions: Int - """For 'ltree': values are dot-separated path strings.""" + """ + For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). + """ dotPath: Boolean """For 'vector': element scalar (e.g. 'float').""" @@ -1541,11 +1597,11 @@ type MetaSchema { """Provisioning scope metadata for a table""" type MetaScope { - """SQL name of the entity table for entity scopes, else null""" + """Name of the entity table for entity scopes, else null""" entityTable: String """ - Inflected scope key column (e.g. databaseId, orgId), null for global tiers + Field name of the scope key (e.g. databaseId, orgId), null for global tiers """ keyColumn: String @@ -1554,7 +1610,7 @@ type MetaScope { """ scope: String! - """Provenance of the scope metadata (always 'smartTag')""" + """Where this scope metadata comes from""" source: String! """Coarse bucket: 'global', 'database', or 'entity'""" @@ -1585,7 +1641,7 @@ type MetaSearchColumn { name: String! } -"""Per-table search configuration from @searchConfig smart tag""" +"""Per-table search configuration""" type MetaSearchConfig { """Exponential decay factor per day""" boostRecencyDecay: Float @@ -1602,7 +1658,7 @@ type MetaSearchConfig { """Storage metadata for a table""" type MetaStorage { - """GraphQL type name of the plane's buckets table""" + """GraphQL type name of the paired buckets table""" bucketsType: String! """ @@ -1610,7 +1666,7 @@ type MetaStorage { """ downloadUrlField: String - """GraphQL type name of the plane's files table""" + """GraphQL type name of the paired files table""" filesType: String! """Whether this table is a storage buckets table""" @@ -1619,13 +1675,11 @@ type MetaStorage { """Whether this table is a storage files table""" isFilesTable: Boolean! - """The plane's GraphQL upload surface""" + """Upload mutations and types for this storage""" upload: MetaStorageUpload! } -""" -The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from -""" +"""The upload mutations and types for a storage table pair""" type MetaStorageUpload { """Per-file input type inside the bulk input""" bulkFileInputType: String! @@ -1651,32 +1705,45 @@ type MetaStorageUpload { """Payload type of the single upload mutation""" payloadType: String! - """Whether the upload input requires ownerId (entity-keyed plane)""" + """Whether the upload input requires ownerId""" requiresOwnerId: Boolean! } """Information about a database table""" type MetaTable { constraints: MetaConstraints! + + """Description written for this table, or null""" + description: String fields: [MetaField!]! foreignKeyConstraints: [MetaForeignKeyConstraint!]! - """i18n metadata (null if no @i18n tag)""" + """i18n metadata (null if the table is not translatable)""" i18n: MetaI18n indexes: [MetaIndex!]! inflection: MetaInflection! + """ + Whether this table only links rows of two other tables; the link appears in their manyToMany relations + """ + isJunction: Boolean! + + """ + 'table' when rows are stored in this table, 'view' when they come from a view of other tables + """ + kind: String! + """Final GraphQL output type name""" name: String! primaryKeyConstraints: [MetaPrimaryKeyConstraint!]! query: MetaQuery! - """Realtime metadata (null if no @realtime tag)""" + """Realtime metadata (null if the table has no change subscriptions)""" realtime: MetaRealtime relations: MetaRelations! schemaName: String! - """Provisioning scope metadata (null if no @scope tag)""" + """Provisioning scope metadata (null if the table has no scope)""" scope: MetaScope """Search metadata (null if no search configured)""" @@ -1698,7 +1765,22 @@ type MetaType { hasDefault: Boolean isArray: Boolean! isNotNull: Boolean + + """ + Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. + """ + maxLength: Int pgType: String! + + """ + Most significant digits a decimal number may hold. Null when unbounded. + """ + precision: Int + + """ + Digits a decimal number keeps after the decimal point. Null when unbounded. + """ + scale: Int subtype: String } diff --git a/sdk/constructive-sdk/schemas/modules.graphql b/sdk/constructive-sdk/schemas/modules.graphql index 48fd532478..dba95fd5c5 100644 --- a/sdk/constructive-sdk/schemas/modules.graphql +++ b/sdk/constructive-sdk/schemas/modules.graphql @@ -2020,7 +2020,7 @@ type BlueprintConnection { } """ -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. +Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. 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, including failed ones. """ type BlueprintConstruction { """ @@ -2047,6 +2047,11 @@ type BlueprintConstruction { """The database the blueprint was constructed into.""" databaseId: UUID! + """ + The coded error ({"code", "context", "class"} as raised through errors.raise_error, or {"code": , "message"} for a database error) a failed construction ended with. NULL unless status is failed. + """ + error: JSON + """Unique identifier for this construction attempt.""" id: UUID! @@ -2056,7 +2061,7 @@ type BlueprintConstruction { schemaId: UUID """ - Execution state of this construction attempt. pending: created but not yet started. constructing: currently executing. constructed: successfully completed. A failed construction raises and rolls back, so it leaves no row. + Execution state of this construction attempt. pending: enqueued, the blueprint:construct job has not started. constructing: the job is executing. constructed: successfully completed. failed: the job raised; the build rolled back and error carries its coded error. """ status: String! @@ -2122,6 +2127,9 @@ input BlueprintConstructionFilter { """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter + """Filter by the object’s `error` field.""" + error: JSONFilter + """Filter by the object’s `id` field.""" id: UUIDFilter @@ -2165,6 +2173,11 @@ input BlueprintConstructionInput { """The database the blueprint was constructed into.""" databaseId: UUID! + """ + The coded error ({"code", "context", "class"} as raised through errors.raise_error, or {"code": , "message"} for a database error) a failed construction ended with. NULL unless status is failed. + """ + error: JSON + """Unique identifier for this construction attempt.""" id: UUID @@ -2174,7 +2187,7 @@ input BlueprintConstructionInput { schemaId: UUID """ - Execution state of this construction attempt. pending: created but not yet started. constructing: currently executing. constructed: successfully completed. A failed construction raises and rolls back, so it leaves no row. + Execution state of this construction attempt. pending: enqueued, the blueprint:construct job has not started. constructing: the job is executing. constructed: successfully completed. failed: the job raised; the build rolled back and error carries its coded error. """ status: String @@ -2199,6 +2212,8 @@ enum BlueprintConstructionOrderBy { CREATED_AT_DESC DATABASE_ID_ASC DATABASE_ID_DESC + ERROR_ASC + ERROR_DESC ID_ASC ID_DESC NATURAL @@ -2237,6 +2252,11 @@ input BlueprintConstructionPatch { """The database the blueprint was constructed into.""" databaseId: UUID + """ + The coded error ({"code", "context", "class"} as raised through errors.raise_error, or {"code": , "message"} for a database error) a failed construction ended with. NULL unless status is failed. + """ + error: JSON + """Unique identifier for this construction attempt.""" id: UUID @@ -2246,7 +2266,7 @@ input BlueprintConstructionPatch { schemaId: UUID """ - Execution state of this construction attempt. pending: created but not yet started. constructing: currently executing. constructed: successfully completed. A failed construction raises and rolls back, so it leaves no row. + Execution state of this construction attempt. pending: enqueued, the blueprint:construct job has not started. constructing: the job is executing. constructed: successfully completed. failed: the job raised; the build rolled back and error carries its coded error. """ status: String @@ -9776,6 +9796,8 @@ type DbUsageModule { queryStatsLogTableName: String! queryStatsSummaryTableId: UUID! queryStatsSummaryTableName: String! + readDbQueryStatsUsagePeriodFunction: String! + readDbTableStatsUsagePeriodFunction: String! retention: String! rollupDbQueryStatsUsageSummaryFunction: String! rollupDbTableStatsUsageSummaryFunction: String! @@ -9880,6 +9902,12 @@ input DbUsageModuleFilter { """Filter by the object’s `queryStatsSummaryTableName` field.""" queryStatsSummaryTableName: StringFilter + """Filter by the object’s `readDbQueryStatsUsagePeriodFunction` field.""" + readDbQueryStatsUsagePeriodFunction: StringFilter + + """Filter by the object’s `readDbTableStatsUsagePeriodFunction` field.""" + readDbTableStatsUsagePeriodFunction: StringFilter + """Filter by the object’s `retention` field.""" retention: StringFilter @@ -9928,6 +9956,8 @@ input DbUsageModuleInput { queryStatsLogTableName: String queryStatsSummaryTableId: UUID queryStatsSummaryTableName: String + readDbQueryStatsUsagePeriodFunction: String + readDbTableStatsUsagePeriodFunction: String retention: String rollupDbQueryStatsUsageSummaryFunction: String rollupDbTableStatsUsageSummaryFunction: String @@ -9980,6 +10010,10 @@ enum DbUsageModuleOrderBy { QUERY_STATS_SUMMARY_TABLE_ID_DESC QUERY_STATS_SUMMARY_TABLE_NAME_ASC QUERY_STATS_SUMMARY_TABLE_NAME_DESC + READ_DB_QUERY_STATS_USAGE_PERIOD_FUNCTION_ASC + READ_DB_QUERY_STATS_USAGE_PERIOD_FUNCTION_DESC + READ_DB_TABLE_STATS_USAGE_PERIOD_FUNCTION_ASC + READ_DB_TABLE_STATS_USAGE_PERIOD_FUNCTION_DESC RETENTION_ASC RETENTION_DESC ROLLUP_DB_QUERY_STATS_USAGE_SUMMARY_FUNCTION_ASC @@ -10022,6 +10056,8 @@ input DbUsageModulePatch { queryStatsLogTableName: String queryStatsSummaryTableId: UUID queryStatsSummaryTableName: String + readDbQueryStatsUsagePeriodFunction: String + readDbTableStatsUsagePeriodFunction: String retention: String rollupDbQueryStatsUsageSummaryFunction: String rollupDbTableStatsUsageSummaryFunction: String @@ -13309,6 +13345,7 @@ type DomainModule { catalogModuleId: UUID databaseId: UUID! defaultCapabilities: [String] + defaultReservedSubdomains: JSON domainEventsTableId: UUID! domainEventsTableName: String! domainVerificationsTableId: UUID! @@ -13327,6 +13364,8 @@ type DomainModule { privateSchemaName: String provisions: JSON publicSchemaName: String + reservedSubdomainsTableId: UUID + reservedSubdomainsTableName: String! """Reads and enables pagination through a set of `RouteModule`.""" routeModules( @@ -13358,6 +13397,7 @@ type DomainModule { ): RouteModuleConnection! schemaId: UUID! scope: String! + sweepUnverifiedDomainsFunction: String } """A connection to a list of `DomainModule` values.""" @@ -13411,6 +13451,9 @@ input DomainModuleFilter { """Filter by the object’s `defaultCapabilities` field.""" defaultCapabilities: StringListFilter + """Filter by the object’s `defaultReservedSubdomains` field.""" + defaultReservedSubdomains: JSONFilter + """Filter by the object’s `domainEventsTableId` field.""" domainEventsTableId: UUIDFilter @@ -13471,6 +13514,12 @@ input DomainModuleFilter { """Filter by the object’s `publicSchemaName` field.""" publicSchemaName: StringFilter + """Filter by the object’s `reservedSubdomainsTableId` field.""" + reservedSubdomainsTableId: UUIDFilter + + """Filter by the object’s `reservedSubdomainsTableName` field.""" + reservedSubdomainsTableName: StringFilter + """Filter by the object’s `routeModules` relation.""" routeModules: DomainModuleToManyRouteModuleFilter @@ -13482,6 +13531,9 @@ input DomainModuleFilter { """Filter by the object’s `scope` field.""" scope: StringFilter + + """Filter by the object’s `sweepUnverifiedDomainsFunction` field.""" + sweepUnverifiedDomainsFunction: StringFilter } """An input for mutations affecting `DomainModule`""" @@ -13490,6 +13542,7 @@ input DomainModuleInput { catalogModuleId: UUID databaseId: UUID! defaultCapabilities: [String] + defaultReservedSubdomains: JSON domainEventsTableId: UUID domainEventsTableName: String domainVerificationsTableId: UUID @@ -13508,8 +13561,11 @@ input DomainModuleInput { privateSchemaName: String provisions: JSON publicSchemaName: String + reservedSubdomainsTableId: UUID + reservedSubdomainsTableName: String schemaId: UUID scope: String! + sweepUnverifiedDomainsFunction: String } """Methods to use when ordering `DomainModule`.""" @@ -13522,6 +13578,8 @@ enum DomainModuleOrderBy { DATABASE_ID_DESC DEFAULT_CAPABILITIES_ASC DEFAULT_CAPABILITIES_DESC + DEFAULT_RESERVED_SUBDOMAINS_ASC + DEFAULT_RESERVED_SUBDOMAINS_DESC DOMAINS_TABLE_ID_ASC DOMAINS_TABLE_ID_DESC DOMAINS_TABLE_NAME_ASC @@ -13561,10 +13619,16 @@ enum DomainModuleOrderBy { PROVISIONS_DESC PUBLIC_SCHEMA_NAME_ASC PUBLIC_SCHEMA_NAME_DESC + RESERVED_SUBDOMAINS_TABLE_ID_ASC + RESERVED_SUBDOMAINS_TABLE_ID_DESC + RESERVED_SUBDOMAINS_TABLE_NAME_ASC + RESERVED_SUBDOMAINS_TABLE_NAME_DESC SCHEMA_ID_ASC SCHEMA_ID_DESC SCOPE_ASC SCOPE_DESC + SWEEP_UNVERIFIED_DOMAINS_FUNCTION_ASC + SWEEP_UNVERIFIED_DOMAINS_FUNCTION_DESC } """ @@ -13575,6 +13639,7 @@ input DomainModulePatch { catalogModuleId: UUID databaseId: UUID defaultCapabilities: [String] + defaultReservedSubdomains: JSON domainEventsTableId: UUID domainEventsTableName: String domainVerificationsTableId: UUID @@ -13593,8 +13658,11 @@ input DomainModulePatch { privateSchemaName: String provisions: JSON publicSchemaName: String + reservedSubdomainsTableId: UUID + reservedSubdomainsTableName: String schemaId: UUID scope: String + sweepUnverifiedDomainsFunction: String } """ @@ -14210,7 +14278,6 @@ type EntityTypeProvision { - 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 } @@ -14636,7 +14703,6 @@ input EntityTypeProvisionInput { - 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 } @@ -14994,7 +15060,6 @@ input EntityTypeProvisionPatch { - 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 } @@ -21392,6 +21457,11 @@ type MetaBelongsToRelation { fieldName: String isUnique: Boolean! keys: [MetaField!]! + + """ + Fields on the referenced table that keys point at, in the same order as keys + """ + refKeys: [MetaField!]! references: MetaRefTable! type: String } @@ -21414,22 +21484,66 @@ type MetaEnum { """Information about a table field/column""" type MetaField { + """ + Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. + """ + allowedValues: [String!] + """PostgreSQL column name""" columnName: String! description: String """Enum metadata if this field has an enum type""" enumValues: MetaEnum + + """ + Set when the field holds files; null otherwise. Set on a table's own fields only. + """ + file: MetaFileField hasDefault: Boolean! + + """ + Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. + """ + isComputed: Boolean isForeignKey: Boolean! isNotNull: Boolean! isPrimaryKey: Boolean! + """ + Whether a create must provide this field. Set on a table's own fields only. + """ + isRequiredOnCreate: Boolean + + """Whether a create may set this field. Set on a table's own fields only.""" + isWritableOnCreate: Boolean + + """ + Whether an update may change this field. Set on a table's own fields only. + """ + isWritableOnUpdate: Boolean + """Final GraphQL field name""" name: String! type: MetaType! } +"""How a field holds files""" +type MetaFileField { + """ + GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise + """ + filesType: String + + """Whether the field holds a list of files""" + isMultiple: Boolean! + + """ + image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. + """ + kind: String! +} + """Information about a foreign key constraint""" type MetaForeignKeyConstraint { fields: [MetaField!]! @@ -21446,10 +21560,15 @@ type MetaHasRelation { isUnique: Boolean! keys: [MetaField!]! referencedBy: MetaRefTable! + + """ + Fields on the related table that point at this table, in the same order as keys + """ + remoteKeys: [MetaField!]! type: String } -"""i18n metadata for a table with @i18n tag""" +"""i18n metadata for a translatable table""" type MetaI18n { """Fields that are translatable""" translatableFields: [MetaI18nField!]! @@ -21476,7 +21595,7 @@ type MetaIndex { name: String! } -"""Table inflection names""" +"""Type and field names generated for this table""" type MetaInflection { allRows: String! conditionType: String! @@ -21521,7 +21640,7 @@ type MetaQuery { update: String } -"""Realtime metadata for a table with @realtime tag""" +"""Realtime metadata for a table with change subscriptions""" type MetaRealtime { """The generated subscription field name (e.g. onPostChanged)""" subscriptionFieldName: String! @@ -21542,13 +21661,15 @@ type MetaRelations { } """ -How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. +How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. """ type MetaScalarEncoding { """For 'vector': declared length, else null.""" dimensions: Int - """For 'ltree': values are dot-separated path strings.""" + """ + For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). + """ dotPath: Boolean """For 'vector': element scalar (e.g. 'float').""" @@ -21573,11 +21694,11 @@ type MetaSchema { """Provisioning scope metadata for a table""" type MetaScope { - """SQL name of the entity table for entity scopes, else null""" + """Name of the entity table for entity scopes, else null""" entityTable: String """ - Inflected scope key column (e.g. databaseId, orgId), null for global tiers + Field name of the scope key (e.g. databaseId, orgId), null for global tiers """ keyColumn: String @@ -21586,7 +21707,7 @@ type MetaScope { """ scope: String! - """Provenance of the scope metadata (always 'smartTag')""" + """Where this scope metadata comes from""" source: String! """Coarse bucket: 'global', 'database', or 'entity'""" @@ -21617,7 +21738,7 @@ type MetaSearchColumn { name: String! } -"""Per-table search configuration from @searchConfig smart tag""" +"""Per-table search configuration""" type MetaSearchConfig { """Exponential decay factor per day""" boostRecencyDecay: Float @@ -21634,7 +21755,7 @@ type MetaSearchConfig { """Storage metadata for a table""" type MetaStorage { - """GraphQL type name of the plane's buckets table""" + """GraphQL type name of the paired buckets table""" bucketsType: String! """ @@ -21642,7 +21763,7 @@ type MetaStorage { """ downloadUrlField: String - """GraphQL type name of the plane's files table""" + """GraphQL type name of the paired files table""" filesType: String! """Whether this table is a storage buckets table""" @@ -21651,13 +21772,11 @@ type MetaStorage { """Whether this table is a storage files table""" isFilesTable: Boolean! - """The plane's GraphQL upload surface""" + """Upload mutations and types for this storage""" upload: MetaStorageUpload! } -""" -The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from -""" +"""The upload mutations and types for a storage table pair""" type MetaStorageUpload { """Per-file input type inside the bulk input""" bulkFileInputType: String! @@ -21683,32 +21802,45 @@ type MetaStorageUpload { """Payload type of the single upload mutation""" payloadType: String! - """Whether the upload input requires ownerId (entity-keyed plane)""" + """Whether the upload input requires ownerId""" requiresOwnerId: Boolean! } """Information about a database table""" type MetaTable { constraints: MetaConstraints! + + """Description written for this table, or null""" + description: String fields: [MetaField!]! foreignKeyConstraints: [MetaForeignKeyConstraint!]! - """i18n metadata (null if no @i18n tag)""" + """i18n metadata (null if the table is not translatable)""" i18n: MetaI18n indexes: [MetaIndex!]! inflection: MetaInflection! + """ + Whether this table only links rows of two other tables; the link appears in their manyToMany relations + """ + isJunction: Boolean! + + """ + 'table' when rows are stored in this table, 'view' when they come from a view of other tables + """ + kind: String! + """Final GraphQL output type name""" name: String! primaryKeyConstraints: [MetaPrimaryKeyConstraint!]! query: MetaQuery! - """Realtime metadata (null if no @realtime tag)""" + """Realtime metadata (null if the table has no change subscriptions)""" realtime: MetaRealtime relations: MetaRelations! schemaName: String! - """Provisioning scope metadata (null if no @scope tag)""" + """Provisioning scope metadata (null if the table has no scope)""" scope: MetaScope """Search metadata (null if no search configured)""" @@ -21730,7 +21862,22 @@ type MetaType { hasDefault: Boolean isArray: Boolean! isNotNull: Boolean + + """ + Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. + """ + maxLength: Int pgType: String! + + """ + Most significant digits a decimal number may hold. Null when unbounded. + """ + precision: Int + + """ + Digits a decimal number keeps after the decimal point. Null when unbounded. + """ + scale: Int subtype: String } @@ -21745,7 +21892,7 @@ The root mutation type which contains root level fields which mutate data. """ type Mutation { """ - Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). A table entry either names its table (table_name plus optional schema_name) or references one an installed module generated ("module": {"type": "agent", "scope": "org", "table": "message"}), which resolves through the module row's recorded table ids and raises when it matches nothing instead of creating an empty table. After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID. A failure raises its coded error to the caller and rolls back the whole construction, including the construction record. + Requests a build of a blueprint: snapshots its definition into a pending blueprint_construction row, enqueues the blueprint:construct job that runs metaschema_private.construct_blueprint_run on it, and returns the construction id immediately. Poll the row: pending -> constructing -> constructed (table_map populated) or failed (error holds the coded error). schema_id is the default schema for tables without an explicit schema_name. """ constructBlueprint( """ @@ -30289,8 +30436,6 @@ input RepositoryModulePatch { type ResourceModule { apiName: String - builderBindingsTableId: UUID! - builderBindingsTableName: String! databaseId: UUID! defaultCapabilities: [String] entityField: String @@ -30338,6 +30483,8 @@ type ResourceModule { rollupResourceUsageSummaryFunction: String! schemaId: UUID! scope: String! + serviceBindingsTableId: UUID! + serviceBindingsTableName: String! } """A connection to a list of `ResourceModule` values.""" @@ -30376,12 +30523,6 @@ input ResourceModuleFilter { """Filter by the object’s `apiName` field.""" apiName: StringFilter - """Filter by the object’s `builderBindingsTableId` field.""" - builderBindingsTableId: UUIDFilter - - """Filter by the object’s `builderBindingsTableName` field.""" - builderBindingsTableName: StringFilter - """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter @@ -30510,13 +30651,17 @@ input ResourceModuleFilter { """Filter by the object’s `scope` field.""" scope: StringFilter + + """Filter by the object’s `serviceBindingsTableId` field.""" + serviceBindingsTableId: UUIDFilter + + """Filter by the object’s `serviceBindingsTableName` field.""" + serviceBindingsTableName: StringFilter } """An input for mutations affecting `ResourceModule`""" input ResourceModuleInput { apiName: String - builderBindingsTableId: UUID - builderBindingsTableName: String databaseId: UUID! defaultCapabilities: [String] entityField: String @@ -30554,16 +30699,14 @@ input ResourceModuleInput { rollupResourceUsageSummaryFunction: String schemaId: UUID scope: String! + serviceBindingsTableId: UUID + serviceBindingsTableName: String } """Methods to use when ordering `ResourceModule`.""" enum ResourceModuleOrderBy { API_NAME_ASC API_NAME_DESC - BUILDER_BINDINGS_TABLE_ID_ASC - BUILDER_BINDINGS_TABLE_ID_DESC - BUILDER_BINDINGS_TABLE_NAME_ASC - BUILDER_BINDINGS_TABLE_NAME_DESC DATABASE_ID_ASC DATABASE_ID_DESC DEFAULT_CAPABILITIES_ASC @@ -30641,6 +30784,10 @@ enum ResourceModuleOrderBy { SCHEMA_ID_DESC SCOPE_ASC SCOPE_DESC + SERVICE_BINDINGS_TABLE_ID_ASC + SERVICE_BINDINGS_TABLE_ID_DESC + SERVICE_BINDINGS_TABLE_NAME_ASC + SERVICE_BINDINGS_TABLE_NAME_DESC } """ @@ -30648,8 +30795,6 @@ Represents an update to a `ResourceModule`. Fields that are set will be updated. """ input ResourceModulePatch { apiName: String - builderBindingsTableId: UUID - builderBindingsTableName: String databaseId: UUID defaultCapabilities: [String] entityField: String @@ -30687,6 +30832,8 @@ input ResourceModulePatch { rollupResourceUsageSummaryFunction: String schemaId: UUID scope: String + serviceBindingsTableId: UUID + serviceBindingsTableName: String } type RlsModule { @@ -32319,6 +32466,7 @@ type StorageLogModule { privateSchemaId: UUID! privateSchemaName: String publicSchemaName: String + readStorageUsagePeriodFunction: String! retention: String! rollupFunctionName: String! schemaId: UUID! @@ -32403,6 +32551,9 @@ input StorageLogModuleFilter { """Filter by the object’s `publicSchemaName` field.""" publicSchemaName: StringFilter + """Filter by the object’s `readStorageUsagePeriodFunction` field.""" + readStorageUsagePeriodFunction: StringFilter + """Filter by the object’s `retention` field.""" retention: StringFilter @@ -32441,6 +32592,7 @@ input StorageLogModuleInput { privateSchemaId: UUID privateSchemaName: String publicSchemaName: String + readStorageUsagePeriodFunction: String retention: String rollupFunctionName: String schemaId: UUID @@ -32478,6 +32630,8 @@ enum StorageLogModuleOrderBy { PRIVATE_SCHEMA_NAME_DESC PUBLIC_SCHEMA_NAME_ASC PUBLIC_SCHEMA_NAME_DESC + READ_STORAGE_USAGE_PERIOD_FUNCTION_ASC + READ_STORAGE_USAGE_PERIOD_FUNCTION_DESC RETENTION_ASC RETENTION_DESC ROLLUP_FUNCTION_NAME_ASC @@ -32511,6 +32665,7 @@ input StorageLogModulePatch { privateSchemaId: UUID privateSchemaName: String publicSchemaName: String + readStorageUsagePeriodFunction: String retention: String rollupFunctionName: String schemaId: UUID @@ -32569,7 +32724,6 @@ type StorageModule { filesTableId: UUID! filesTableName: String! hasAuditLog: Boolean! - hasConfirmUpload: Boolean! hasContentHash: Boolean! hasCustomKeys: Boolean! hasPathShares: Boolean! @@ -32689,9 +32843,6 @@ input StorageModuleFilter { """Filter by the object’s `hasAuditLog` field.""" hasAuditLog: BooleanFilter - """Filter by the object’s `hasConfirmUpload` field.""" - hasConfirmUpload: BooleanFilter - """Filter by the object’s `hasContentHash` field.""" hasContentHash: BooleanFilter @@ -32791,7 +32942,6 @@ input StorageModuleInput { filesTableId: UUID filesTableName: String hasAuditLog: Boolean - hasConfirmUpload: Boolean hasContentHash: Boolean hasCustomKeys: Boolean hasPathShares: Boolean @@ -32856,8 +33006,6 @@ enum StorageModuleOrderBy { FILE_EVENTS_TABLE_ID_DESC HAS_AUDIT_LOG_ASC HAS_AUDIT_LOG_DESC - HAS_CONFIRM_UPLOAD_ASC - HAS_CONFIRM_UPLOAD_DESC HAS_CONTENT_HASH_ASC HAS_CONTENT_HASH_DESC HAS_CUSTOM_KEYS_ASC @@ -32933,7 +33081,6 @@ input StorageModulePatch { filesTableId: UUID filesTableName: String hasAuditLog: Boolean - hasConfirmUpload: Boolean hasContentHash: Boolean hasCustomKeys: Boolean hasPathShares: Boolean diff --git a/sdk/constructive-sdk/schemas/objects.graphql b/sdk/constructive-sdk/schemas/objects.graphql index 97828c7c0a..88dca959c7 100644 --- a/sdk/constructive-sdk/schemas/objects.graphql +++ b/sdk/constructive-sdk/schemas/objects.graphql @@ -710,6 +710,11 @@ type MetaBelongsToRelation { fieldName: String isUnique: Boolean! keys: [MetaField!]! + + """ + Fields on the referenced table that keys point at, in the same order as keys + """ + refKeys: [MetaField!]! references: MetaRefTable! type: String } @@ -732,22 +737,66 @@ type MetaEnum { """Information about a table field/column""" type MetaField { + """ + Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. + """ + allowedValues: [String!] + """PostgreSQL column name""" columnName: String! description: String """Enum metadata if this field has an enum type""" enumValues: MetaEnum + + """ + Set when the field holds files; null otherwise. Set on a table's own fields only. + """ + file: MetaFileField hasDefault: Boolean! + + """ + Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. + """ + isComputed: Boolean isForeignKey: Boolean! isNotNull: Boolean! isPrimaryKey: Boolean! + """ + Whether a create must provide this field. Set on a table's own fields only. + """ + isRequiredOnCreate: Boolean + + """Whether a create may set this field. Set on a table's own fields only.""" + isWritableOnCreate: Boolean + + """ + Whether an update may change this field. Set on a table's own fields only. + """ + isWritableOnUpdate: Boolean + """Final GraphQL field name""" name: String! type: MetaType! } +"""How a field holds files""" +type MetaFileField { + """ + GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise + """ + filesType: String + + """Whether the field holds a list of files""" + isMultiple: Boolean! + + """ + image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. + """ + kind: String! +} + """Information about a foreign key constraint""" type MetaForeignKeyConstraint { fields: [MetaField!]! @@ -764,10 +813,15 @@ type MetaHasRelation { isUnique: Boolean! keys: [MetaField!]! referencedBy: MetaRefTable! + + """ + Fields on the related table that point at this table, in the same order as keys + """ + remoteKeys: [MetaField!]! type: String } -"""i18n metadata for a table with @i18n tag""" +"""i18n metadata for a translatable table""" type MetaI18n { """Fields that are translatable""" translatableFields: [MetaI18nField!]! @@ -794,7 +848,7 @@ type MetaIndex { name: String! } -"""Table inflection names""" +"""Type and field names generated for this table""" type MetaInflection { allRows: String! conditionType: String! @@ -839,7 +893,7 @@ type MetaQuery { update: String } -"""Realtime metadata for a table with @realtime tag""" +"""Realtime metadata for a table with change subscriptions""" type MetaRealtime { """The generated subscription field name (e.g. onPostChanged)""" subscriptionFieldName: String! @@ -860,13 +914,15 @@ type MetaRelations { } """ -How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. +How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. """ type MetaScalarEncoding { """For 'vector': declared length, else null.""" dimensions: Int - """For 'ltree': values are dot-separated path strings.""" + """ + For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). + """ dotPath: Boolean """For 'vector': element scalar (e.g. 'float').""" @@ -891,11 +947,11 @@ type MetaSchema { """Provisioning scope metadata for a table""" type MetaScope { - """SQL name of the entity table for entity scopes, else null""" + """Name of the entity table for entity scopes, else null""" entityTable: String """ - Inflected scope key column (e.g. databaseId, orgId), null for global tiers + Field name of the scope key (e.g. databaseId, orgId), null for global tiers """ keyColumn: String @@ -904,7 +960,7 @@ type MetaScope { """ scope: String! - """Provenance of the scope metadata (always 'smartTag')""" + """Where this scope metadata comes from""" source: String! """Coarse bucket: 'global', 'database', or 'entity'""" @@ -935,7 +991,7 @@ type MetaSearchColumn { name: String! } -"""Per-table search configuration from @searchConfig smart tag""" +"""Per-table search configuration""" type MetaSearchConfig { """Exponential decay factor per day""" boostRecencyDecay: Float @@ -952,7 +1008,7 @@ type MetaSearchConfig { """Storage metadata for a table""" type MetaStorage { - """GraphQL type name of the plane's buckets table""" + """GraphQL type name of the paired buckets table""" bucketsType: String! """ @@ -960,7 +1016,7 @@ type MetaStorage { """ downloadUrlField: String - """GraphQL type name of the plane's files table""" + """GraphQL type name of the paired files table""" filesType: String! """Whether this table is a storage buckets table""" @@ -969,13 +1025,11 @@ type MetaStorage { """Whether this table is a storage files table""" isFilesTable: Boolean! - """The plane's GraphQL upload surface""" + """Upload mutations and types for this storage""" upload: MetaStorageUpload! } -""" -The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from -""" +"""The upload mutations and types for a storage table pair""" type MetaStorageUpload { """Per-file input type inside the bulk input""" bulkFileInputType: String! @@ -1001,32 +1055,45 @@ type MetaStorageUpload { """Payload type of the single upload mutation""" payloadType: String! - """Whether the upload input requires ownerId (entity-keyed plane)""" + """Whether the upload input requires ownerId""" requiresOwnerId: Boolean! } """Information about a database table""" type MetaTable { constraints: MetaConstraints! + + """Description written for this table, or null""" + description: String fields: [MetaField!]! foreignKeyConstraints: [MetaForeignKeyConstraint!]! - """i18n metadata (null if no @i18n tag)""" + """i18n metadata (null if the table is not translatable)""" i18n: MetaI18n indexes: [MetaIndex!]! inflection: MetaInflection! + """ + Whether this table only links rows of two other tables; the link appears in their manyToMany relations + """ + isJunction: Boolean! + + """ + 'table' when rows are stored in this table, 'view' when they come from a view of other tables + """ + kind: String! + """Final GraphQL output type name""" name: String! primaryKeyConstraints: [MetaPrimaryKeyConstraint!]! query: MetaQuery! - """Realtime metadata (null if no @realtime tag)""" + """Realtime metadata (null if the table has no change subscriptions)""" realtime: MetaRealtime relations: MetaRelations! schemaName: String! - """Provisioning scope metadata (null if no @scope tag)""" + """Provisioning scope metadata (null if the table has no scope)""" scope: MetaScope """Search metadata (null if no search configured)""" @@ -1048,7 +1115,22 @@ type MetaType { hasDefault: Boolean isArray: Boolean! isNotNull: Boolean + + """ + Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. + """ + maxLength: Int pgType: String! + + """ + Most significant digits a decimal number may hold. Null when unbounded. + """ + precision: Int + + """ + Digits a decimal number keeps after the decimal point. Null when unbounded. + """ + scale: Int subtype: String } diff --git a/sdk/constructive-sdk/schemas/remote.graphql b/sdk/constructive-sdk/schemas/remote.graphql index 8fae919c48..18bb1fa01c 100644 --- a/sdk/constructive-sdk/schemas/remote.graphql +++ b/sdk/constructive-sdk/schemas/remote.graphql @@ -1536,6 +1536,11 @@ type MetaBelongsToRelation { fieldName: String isUnique: Boolean! keys: [MetaField!]! + + """ + Fields on the referenced table that keys point at, in the same order as keys + """ + refKeys: [MetaField!]! references: MetaRefTable! type: String } @@ -1558,22 +1563,66 @@ type MetaEnum { """Information about a table field/column""" type MetaField { + """ + Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. + """ + allowedValues: [String!] + """PostgreSQL column name""" columnName: String! description: String """Enum metadata if this field has an enum type""" enumValues: MetaEnum + + """ + Set when the field holds files; null otherwise. Set on a table's own fields only. + """ + file: MetaFileField hasDefault: Boolean! + + """ + Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. + """ + isComputed: Boolean isForeignKey: Boolean! isNotNull: Boolean! isPrimaryKey: Boolean! + """ + Whether a create must provide this field. Set on a table's own fields only. + """ + isRequiredOnCreate: Boolean + + """Whether a create may set this field. Set on a table's own fields only.""" + isWritableOnCreate: Boolean + + """ + Whether an update may change this field. Set on a table's own fields only. + """ + isWritableOnUpdate: Boolean + """Final GraphQL field name""" name: String! type: MetaType! } +"""How a field holds files""" +type MetaFileField { + """ + GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise + """ + filesType: String + + """Whether the field holds a list of files""" + isMultiple: Boolean! + + """ + image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. + """ + kind: String! +} + """Information about a foreign key constraint""" type MetaForeignKeyConstraint { fields: [MetaField!]! @@ -1590,10 +1639,15 @@ type MetaHasRelation { isUnique: Boolean! keys: [MetaField!]! referencedBy: MetaRefTable! + + """ + Fields on the related table that point at this table, in the same order as keys + """ + remoteKeys: [MetaField!]! type: String } -"""i18n metadata for a table with @i18n tag""" +"""i18n metadata for a translatable table""" type MetaI18n { """Fields that are translatable""" translatableFields: [MetaI18nField!]! @@ -1620,7 +1674,7 @@ type MetaIndex { name: String! } -"""Table inflection names""" +"""Type and field names generated for this table""" type MetaInflection { allRows: String! conditionType: String! @@ -1665,7 +1719,7 @@ type MetaQuery { update: String } -"""Realtime metadata for a table with @realtime tag""" +"""Realtime metadata for a table with change subscriptions""" type MetaRealtime { """The generated subscription field name (e.g. onPostChanged)""" subscriptionFieldName: String! @@ -1686,13 +1740,15 @@ type MetaRelations { } """ -How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. +How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. """ type MetaScalarEncoding { """For 'vector': declared length, else null.""" dimensions: Int - """For 'ltree': values are dot-separated path strings.""" + """ + For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). + """ dotPath: Boolean """For 'vector': element scalar (e.g. 'float').""" @@ -1717,11 +1773,11 @@ type MetaSchema { """Provisioning scope metadata for a table""" type MetaScope { - """SQL name of the entity table for entity scopes, else null""" + """Name of the entity table for entity scopes, else null""" entityTable: String """ - Inflected scope key column (e.g. databaseId, orgId), null for global tiers + Field name of the scope key (e.g. databaseId, orgId), null for global tiers """ keyColumn: String @@ -1730,7 +1786,7 @@ type MetaScope { """ scope: String! - """Provenance of the scope metadata (always 'smartTag')""" + """Where this scope metadata comes from""" source: String! """Coarse bucket: 'global', 'database', or 'entity'""" @@ -1761,7 +1817,7 @@ type MetaSearchColumn { name: String! } -"""Per-table search configuration from @searchConfig smart tag""" +"""Per-table search configuration""" type MetaSearchConfig { """Exponential decay factor per day""" boostRecencyDecay: Float @@ -1778,7 +1834,7 @@ type MetaSearchConfig { """Storage metadata for a table""" type MetaStorage { - """GraphQL type name of the plane's buckets table""" + """GraphQL type name of the paired buckets table""" bucketsType: String! """ @@ -1786,7 +1842,7 @@ type MetaStorage { """ downloadUrlField: String - """GraphQL type name of the plane's files table""" + """GraphQL type name of the paired files table""" filesType: String! """Whether this table is a storage buckets table""" @@ -1795,13 +1851,11 @@ type MetaStorage { """Whether this table is a storage files table""" isFilesTable: Boolean! - """The plane's GraphQL upload surface""" + """Upload mutations and types for this storage""" upload: MetaStorageUpload! } -""" -The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from -""" +"""The upload mutations and types for a storage table pair""" type MetaStorageUpload { """Per-file input type inside the bulk input""" bulkFileInputType: String! @@ -1827,32 +1881,45 @@ type MetaStorageUpload { """Payload type of the single upload mutation""" payloadType: String! - """Whether the upload input requires ownerId (entity-keyed plane)""" + """Whether the upload input requires ownerId""" requiresOwnerId: Boolean! } """Information about a database table""" type MetaTable { constraints: MetaConstraints! + + """Description written for this table, or null""" + description: String fields: [MetaField!]! foreignKeyConstraints: [MetaForeignKeyConstraint!]! - """i18n metadata (null if no @i18n tag)""" + """i18n metadata (null if the table is not translatable)""" i18n: MetaI18n indexes: [MetaIndex!]! inflection: MetaInflection! + """ + Whether this table only links rows of two other tables; the link appears in their manyToMany relations + """ + isJunction: Boolean! + + """ + 'table' when rows are stored in this table, 'view' when they come from a view of other tables + """ + kind: String! + """Final GraphQL output type name""" name: String! primaryKeyConstraints: [MetaPrimaryKeyConstraint!]! query: MetaQuery! - """Realtime metadata (null if no @realtime tag)""" + """Realtime metadata (null if the table has no change subscriptions)""" realtime: MetaRealtime relations: MetaRelations! schemaName: String! - """Provisioning scope metadata (null if no @scope tag)""" + """Provisioning scope metadata (null if the table has no scope)""" scope: MetaScope """Search metadata (null if no search configured)""" @@ -1874,7 +1941,22 @@ type MetaType { hasDefault: Boolean isArray: Boolean! isNotNull: Boolean + + """ + Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. + """ + maxLength: Int pgType: String! + + """ + Most significant digits a decimal number may hold. Null when unbounded. + """ + precision: Int + + """ + Digits a decimal number keeps after the decimal point. Null when unbounded. + """ + scale: Int subtype: String } @@ -2028,6 +2110,7 @@ type Query { Metadata about the database schema, including tables, fields, indexes, and constraints. Useful for code generation tools. """ _meta: MetaSchema + currentDatabaseId: UUID """Reads and enables pagination through a set of `MachineMessage`.""" machineMessages( diff --git a/sdk/constructive-sdk/schemas/storage.graphql b/sdk/constructive-sdk/schemas/storage.graphql index b773833ded..e2e1b26487 100644 --- a/sdk/constructive-sdk/schemas/storage.graphql +++ b/sdk/constructive-sdk/schemas/storage.graphql @@ -709,41 +709,6 @@ type CreateBucketPayload { query: Query } -"""All input for the create `File` mutation.""" -input CreateFileInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `File` to be created by this mutation.""" - file: FileInput! -} - -"""The output of our create `File` mutation.""" -type CreateFilePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `File` that was created by this mutation.""" - file: File - - """An edge for our `File`. May be used by Relay 1.""" - fileEdge( - """The method to use when ordering `File`.""" - orderBy: [FileOrderBy!]! = [PRIMARY_KEY_ASC] - ): FileEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - """All input for the create `PlatformBucket` mutation.""" input CreatePlatformBucketInput { """ @@ -779,41 +744,6 @@ type CreatePlatformBucketPayload { query: Query } -"""All input for the create `PlatformFile` mutation.""" -input CreatePlatformFileInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `PlatformFile` to be created by this mutation.""" - platformFile: PlatformFileInput! -} - -"""The output of our create `PlatformFile` mutation.""" -type CreatePlatformFilePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `PlatformFile` that was created by this mutation.""" - platformFile: PlatformFile - - """An edge for our `PlatformFile`. May be used by Relay 1.""" - platformFileEdge( - """The method to use when ordering `PlatformFile`.""" - orderBy: [PlatformFileOrderBy!]! = [PRIMARY_KEY_ASC] - ): PlatformFileEdge - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - """A location in a connection that can be used for resuming pagination.""" scalar Cursor @@ -1030,7 +960,7 @@ type File { description: String """ - URL to download this file. For public files, returns the public URL. For private files, returns a time-limited presigned URL. + URL to download this file. For public files, returns the public URL. For private files, returns a time-limited presigned URL. Null until the upload is confirmed (status uploaded or processed), and for a rejected file. """ downloadUrl: String @@ -1064,11 +994,16 @@ type File { """ promotedAt: Datetime + """ + Why the upload was rejected (declared MIME, extension and magic bytes disagreed, size mismatch, ...). NULL unless status is rejected. + """ + rejectionReason: String + """File size in bytes. Immutable after INSERT.""" size: BigInt! """ - File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). + File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes). A requested row whose bytes never arrive within upload_url_expiry_seconds is deleted by the confirm loop. """ status: FileStatus! @@ -1080,6 +1015,21 @@ type File { Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. """ upload: ConstructiveInternalTypeUpload + + """ + URL to fetch `upload`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. + """ + uploadUrl( + """ + The width the file will be shown at, in device pixels. Without a version that wide, the source. + """ + width: Int + ): String + + """ + The versions rendered beside `upload`, narrowest first, each with a URL. Empty when there are none. + """ + uploadVersions: [FileVersion!] } """A connection to a list of `File` values.""" @@ -1163,6 +1113,9 @@ input FileFilter { """Filter by the object’s `promotedAt` field.""" promotedAt: DatetimeFilter + """Filter by the object’s `rejectionReason` field.""" + rejectionReason: StringFilter + """Filter by the object’s `size` field.""" size: BigIntFilter @@ -1179,69 +1132,6 @@ input FileFilter { upload: ConstructiveInternalTypeUploadFilter } -"""An input for mutations affecting `File`""" -input FileInput { - """ - User who uploaded this file. Forced to current_user_id() on INSERT. Used for UPDATE/DELETE authorization. - """ - actorId: UUID! - - """ - Bucket this file belongs to. Determines owner_id and is_public via inheritance trigger. - """ - bucketId: UUID! - - """ - SHA-256 content hash for integrity verification and dedup. In default mode, equals the S3 key. In custom key mode, stored separately. - """ - contentHash: String - createdAt: Datetime - - """Human-readable description or alt text for the file (mutable)""" - description: String - - """ - When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. - """ - expiryEnqueuedAt: Datetime - - """ - Original filename provided by the uploader. Used for display and Content-Disposition header on download. - """ - filename: String - id: UUID - - """S3 object key for this file, unique within its bucket""" - key: String! - - """ - MIME type of the file (e.g. image/png, application/pdf). Immutable after INSERT. - """ - mimeType: String! - - """ - When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. - """ - promotedAt: Datetime - - """File size in bytes. Immutable after INSERT.""" - size: BigInt! - - """ - File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). - """ - status: FileStatus - - """User-defined tags for categorization and search (mutable)""" - tags: [String] - updatedAt: Datetime - - """ - Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. - """ - upload: ConstructiveInternalTypeUpload -} - """Methods to use when ordering `File`.""" enum FileOrderBy { ACTOR_ID_ASC @@ -1273,6 +1163,8 @@ enum FileOrderBy { PRIMARY_KEY_DESC PROMOTED_AT_ASC PROMOTED_AT_DESC + REJECTION_REASON_ASC + REJECTION_REASON_DESC SIZE_ASC SIZE_DESC STATUS_ASC @@ -1338,11 +1230,16 @@ input FilePatch { """ promotedAt: Datetime + """ + Why the upload was rejected (declared MIME, extension and magic bytes disagreed, size mismatch, ...). NULL unless status is rejected. + """ + rejectionReason: String + """File size in bytes. Immutable after INSERT.""" size: BigInt """ - File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). + File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes). A requested row whose bytes never arrive within upload_url_expiry_seconds is deleted by the confirm loop. """ status: FileStatus @@ -1354,15 +1251,9 @@ input FilePatch { Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. """ upload: ConstructiveInternalTypeUpload - - """ - Upload for Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. - """ - uploadUpload: Upload } enum FileStatus { - EXPIRED PROCESSED REJECTED REQUESTED @@ -1411,6 +1302,17 @@ input FileStatusFilter { notIn: [FileStatus!] } +"""One version rendered beside a file, with a URL to fetch it.""" +type FileVersion { + format: String + height: Int + key: String! + name: String + size: Int + url: String! + width: Int +} + """All input for the `filesRename` mutation.""" input FilesRenameInput { """ @@ -1549,6 +1451,11 @@ type MetaBelongsToRelation { fieldName: String isUnique: Boolean! keys: [MetaField!]! + + """ + Fields on the referenced table that keys point at, in the same order as keys + """ + refKeys: [MetaField!]! references: MetaRefTable! type: String } @@ -1571,22 +1478,66 @@ type MetaEnum { """Information about a table field/column""" type MetaField { + """ + Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. + """ + allowedValues: [String!] + """PostgreSQL column name""" columnName: String! description: String """Enum metadata if this field has an enum type""" enumValues: MetaEnum + + """ + Set when the field holds files; null otherwise. Set on a table's own fields only. + """ + file: MetaFileField hasDefault: Boolean! + + """ + Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. + """ + isComputed: Boolean isForeignKey: Boolean! isNotNull: Boolean! isPrimaryKey: Boolean! + """ + Whether a create must provide this field. Set on a table's own fields only. + """ + isRequiredOnCreate: Boolean + + """Whether a create may set this field. Set on a table's own fields only.""" + isWritableOnCreate: Boolean + + """ + Whether an update may change this field. Set on a table's own fields only. + """ + isWritableOnUpdate: Boolean + """Final GraphQL field name""" name: String! type: MetaType! } +"""How a field holds files""" +type MetaFileField { + """ + GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise + """ + filesType: String + + """Whether the field holds a list of files""" + isMultiple: Boolean! + + """ + image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. + """ + kind: String! +} + """Information about a foreign key constraint""" type MetaForeignKeyConstraint { fields: [MetaField!]! @@ -1603,10 +1554,15 @@ type MetaHasRelation { isUnique: Boolean! keys: [MetaField!]! referencedBy: MetaRefTable! + + """ + Fields on the related table that point at this table, in the same order as keys + """ + remoteKeys: [MetaField!]! type: String } -"""i18n metadata for a table with @i18n tag""" +"""i18n metadata for a translatable table""" type MetaI18n { """Fields that are translatable""" translatableFields: [MetaI18nField!]! @@ -1633,7 +1589,7 @@ type MetaIndex { name: String! } -"""Table inflection names""" +"""Type and field names generated for this table""" type MetaInflection { allRows: String! conditionType: String! @@ -1678,7 +1634,7 @@ type MetaQuery { update: String } -"""Realtime metadata for a table with @realtime tag""" +"""Realtime metadata for a table with change subscriptions""" type MetaRealtime { """The generated subscription field name (e.g. onPostChanged)""" subscriptionFieldName: String! @@ -1699,13 +1655,15 @@ type MetaRelations { } """ -How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. +How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. """ type MetaScalarEncoding { """For 'vector': declared length, else null.""" dimensions: Int - """For 'ltree': values are dot-separated path strings.""" + """ + For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). + """ dotPath: Boolean """For 'vector': element scalar (e.g. 'float').""" @@ -1730,11 +1688,11 @@ type MetaSchema { """Provisioning scope metadata for a table""" type MetaScope { - """SQL name of the entity table for entity scopes, else null""" + """Name of the entity table for entity scopes, else null""" entityTable: String """ - Inflected scope key column (e.g. databaseId, orgId), null for global tiers + Field name of the scope key (e.g. databaseId, orgId), null for global tiers """ keyColumn: String @@ -1743,7 +1701,7 @@ type MetaScope { """ scope: String! - """Provenance of the scope metadata (always 'smartTag')""" + """Where this scope metadata comes from""" source: String! """Coarse bucket: 'global', 'database', or 'entity'""" @@ -1774,7 +1732,7 @@ type MetaSearchColumn { name: String! } -"""Per-table search configuration from @searchConfig smart tag""" +"""Per-table search configuration""" type MetaSearchConfig { """Exponential decay factor per day""" boostRecencyDecay: Float @@ -1791,7 +1749,7 @@ type MetaSearchConfig { """Storage metadata for a table""" type MetaStorage { - """GraphQL type name of the plane's buckets table""" + """GraphQL type name of the paired buckets table""" bucketsType: String! """ @@ -1799,7 +1757,7 @@ type MetaStorage { """ downloadUrlField: String - """GraphQL type name of the plane's files table""" + """GraphQL type name of the paired files table""" filesType: String! """Whether this table is a storage buckets table""" @@ -1808,13 +1766,11 @@ type MetaStorage { """Whether this table is a storage files table""" isFilesTable: Boolean! - """The plane's GraphQL upload surface""" + """Upload mutations and types for this storage""" upload: MetaStorageUpload! } -""" -The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from -""" +"""The upload mutations and types for a storage table pair""" type MetaStorageUpload { """Per-file input type inside the bulk input""" bulkFileInputType: String! @@ -1840,32 +1796,45 @@ type MetaStorageUpload { """Payload type of the single upload mutation""" payloadType: String! - """Whether the upload input requires ownerId (entity-keyed plane)""" + """Whether the upload input requires ownerId""" requiresOwnerId: Boolean! } """Information about a database table""" type MetaTable { constraints: MetaConstraints! + + """Description written for this table, or null""" + description: String fields: [MetaField!]! foreignKeyConstraints: [MetaForeignKeyConstraint!]! - """i18n metadata (null if no @i18n tag)""" + """i18n metadata (null if the table is not translatable)""" i18n: MetaI18n indexes: [MetaIndex!]! inflection: MetaInflection! + """ + Whether this table only links rows of two other tables; the link appears in their manyToMany relations + """ + isJunction: Boolean! + + """ + 'table' when rows are stored in this table, 'view' when they come from a view of other tables + """ + kind: String! + """Final GraphQL output type name""" name: String! primaryKeyConstraints: [MetaPrimaryKeyConstraint!]! query: MetaQuery! - """Realtime metadata (null if no @realtime tag)""" + """Realtime metadata (null if the table has no change subscriptions)""" realtime: MetaRealtime relations: MetaRelations! schemaName: String! - """Provisioning scope metadata (null if no @scope tag)""" + """Provisioning scope metadata (null if the table has no scope)""" scope: MetaScope """Search metadata (null if no search configured)""" @@ -1887,7 +1856,22 @@ type MetaType { hasDefault: Boolean isArray: Boolean! isNotNull: Boolean + + """ + Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. + """ + maxLength: Int pgType: String! + + """ + Most significant digits a decimal number may hold. Null when unbounded. + """ + precision: Int + + """ + Digits a decimal number keeps after the decimal point. Null when unbounded. + """ + scale: Int subtype: String } @@ -1909,14 +1893,6 @@ type Mutation { input: CreateBucketInput! ): CreateBucketPayload - """Creates a single `File`.""" - createFile( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateFileInput! - ): CreateFilePayload - """Creates a single `PlatformBucket`.""" createPlatformBucket( """ @@ -1925,14 +1901,6 @@ type Mutation { input: CreatePlatformBucketInput! ): CreatePlatformBucketPayload - """Creates a single `PlatformFile`.""" - createPlatformFile( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePlatformFileInput! - ): CreatePlatformFilePayload - """Deletes a single `Bucket` using a unique key.""" deleteBucket( """ @@ -2577,7 +2545,7 @@ type PlatformFile { description: String """ - URL to download this file. For public files, returns the public URL. For private files, returns a time-limited presigned URL. + URL to download this file. For public files, returns the public URL. For private files, returns a time-limited presigned URL. Null until the upload is confirmed (status uploaded or processed), and for a rejected file. """ downloadUrl: String @@ -2611,11 +2579,16 @@ type PlatformFile { """ promotedAt: Datetime + """ + Why the upload was rejected (declared MIME, extension and magic bytes disagreed, size mismatch, ...). NULL unless status is rejected. + """ + rejectionReason: String + """File size in bytes. Immutable after INSERT.""" size: BigInt! """ - File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). + File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes). A requested row whose bytes never arrive within upload_url_expiry_seconds is deleted by the confirm loop. """ status: FileStatus! @@ -2627,6 +2600,21 @@ type PlatformFile { Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. """ upload: ConstructiveInternalTypeUpload + + """ + URL to fetch `upload`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. + """ + uploadUrl( + """ + The width the file will be shown at, in device pixels. Without a version that wide, the source. + """ + width: Int + ): String + + """ + The versions rendered beside `upload`, narrowest first, each with a URL. Empty when there are none. + """ + uploadVersions: [FileVersion!] } """A connection to a list of `PlatformFile` values.""" @@ -2707,6 +2695,9 @@ input PlatformFileFilter { """Filter by the object’s `promotedAt` field.""" promotedAt: DatetimeFilter + """Filter by the object’s `rejectionReason` field.""" + rejectionReason: StringFilter + """Filter by the object’s `size` field.""" size: BigIntFilter @@ -2723,69 +2714,6 @@ input PlatformFileFilter { upload: ConstructiveInternalTypeUploadFilter } -"""An input for mutations affecting `PlatformFile`""" -input PlatformFileInput { - """ - User who uploaded this file. Forced to current_user_id() on INSERT. Used for UPDATE/DELETE authorization. - """ - actorId: UUID! - - """ - Bucket this file belongs to. Determines owner_id and is_public via inheritance trigger. - """ - bucketId: UUID! - - """ - SHA-256 content hash for integrity verification and dedup. In default mode, equals the S3 key. In custom key mode, stored separately. - """ - contentHash: String - createdAt: Datetime - - """Human-readable description or alt text for the file (mutable)""" - description: String - - """ - When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. - """ - expiryEnqueuedAt: Datetime - - """ - Original filename provided by the uploader. Used for display and Content-Disposition header on download. - """ - filename: String - id: UUID - - """S3 object key for this file, unique within its bucket""" - key: String! - - """ - MIME type of the file (e.g. image/png, application/pdf). Immutable after INSERT. - """ - mimeType: String! - - """ - When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. - """ - promotedAt: Datetime - - """File size in bytes. Immutable after INSERT.""" - size: BigInt! - - """ - File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). - """ - status: FileStatus - - """User-defined tags for categorization and search (mutable)""" - tags: [String] - updatedAt: Datetime - - """ - Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. - """ - upload: ConstructiveInternalTypeUpload -} - """Methods to use when ordering `PlatformFile`.""" enum PlatformFileOrderBy { ACTOR_ID_ASC @@ -2815,6 +2743,8 @@ enum PlatformFileOrderBy { PRIMARY_KEY_DESC PROMOTED_AT_ASC PROMOTED_AT_DESC + REJECTION_REASON_ASC + REJECTION_REASON_DESC SIZE_ASC SIZE_DESC STATUS_ASC @@ -2879,11 +2809,16 @@ input PlatformFilePatch { """ promotedAt: Datetime + """ + Why the upload was rejected (declared MIME, extension and magic bytes disagreed, size mismatch, ...). NULL unless status is rejected. + """ + rejectionReason: String + """File size in bytes. Immutable after INSERT.""" size: BigInt """ - File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). + File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes). A requested row whose bytes never arrive within upload_url_expiry_seconds is deleted by the confirm loop. """ status: FileStatus @@ -2895,11 +2830,6 @@ input PlatformFilePatch { Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. """ upload: ConstructiveInternalTypeUpload - - """ - Upload for Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. - """ - uploadUpload: Upload } """All input for the `platformFilesRename` mutation.""" @@ -3477,9 +3407,6 @@ type UpdatePlatformFilePayload { query: Query } -"""The `Upload` scalar type represents a file upload.""" -scalar Upload - input UploadFileBulkFileInput { """SHA-256 content hash (hex-encoded, 64 chars)""" contentHash: String! @@ -3505,6 +3432,9 @@ type UploadFileBulkFilePayload { file: JSON fileId: String! key: String! + + """The exact headers the PUT to uploadUrl must send.""" + uploadHeaders: JSON uploadUrl: String } @@ -3514,6 +3444,11 @@ input UploadFileBulkInput { """ bucketKey: String + """ + Database the file belongs to. Omit for the database of the current session; a caller who is not a member of the named database is refused. + """ + databaseId: UUID + """Array of files to upload""" files: [UploadFileBulkFileInput!]! @@ -3539,6 +3474,11 @@ input UploadFileInput { """MIME type of the file""" contentType: String! + """ + Database the file belongs to. Omit for the database of the current session; a caller who is not a member of the named database is refused. + """ + databaseId: UUID + """Original filename (optional)""" filename: String @@ -3572,6 +3512,11 @@ type UploadFilePayload { """The S3 object key""" key: String! + """ + The exact headers the PUT to uploadUrl must send (Content-Type and every header the URL is signed over, e.g. x-amz-checksum-sha256 and x-amz-meta-upload-id). Forward them as-is. Null if deduplicated. + """ + uploadHeaders: JSON + """Presigned PUT URL (null if deduplicated)""" uploadUrl: String } @@ -3601,6 +3546,9 @@ type UploadPlatformFileBulkFilePayload { file: JSON fileId: String! key: String! + + """The exact headers the PUT to uploadUrl must send.""" + uploadHeaders: JSON uploadUrl: String } @@ -3668,6 +3616,11 @@ type UploadPlatformFilePayload { """The S3 object key""" key: String! + """ + The exact headers the PUT to uploadUrl must send (Content-Type and every header the URL is signed over, e.g. x-amz-checksum-sha256 and x-amz-meta-upload-id). Forward them as-is. Null if deduplicated. + """ + uploadHeaders: JSON + """Presigned PUT URL (null if deduplicated)""" uploadUrl: String } \ No newline at end of file diff --git a/sdk/constructive-sdk/schemas/usage.graphql b/sdk/constructive-sdk/schemas/usage.graphql index 10ae242d21..bd5e0da887 100644 --- a/sdk/constructive-sdk/schemas/usage.graphql +++ b/sdk/constructive-sdk/schemas/usage.graphql @@ -3247,6 +3247,11 @@ type MetaBelongsToRelation { fieldName: String isUnique: Boolean! keys: [MetaField!]! + + """ + Fields on the referenced table that keys point at, in the same order as keys + """ + refKeys: [MetaField!]! references: MetaRefTable! type: String } @@ -3269,22 +3274,66 @@ type MetaEnum { """Information about a table field/column""" type MetaField { + """ + Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. + """ + allowedValues: [String!] + """PostgreSQL column name""" columnName: String! description: String """Enum metadata if this field has an enum type""" enumValues: MetaEnum + + """ + Set when the field holds files; null otherwise. Set on a table's own fields only. + """ + file: MetaFileField hasDefault: Boolean! + + """ + Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. + """ + isComputed: Boolean isForeignKey: Boolean! isNotNull: Boolean! isPrimaryKey: Boolean! + """ + Whether a create must provide this field. Set on a table's own fields only. + """ + isRequiredOnCreate: Boolean + + """Whether a create may set this field. Set on a table's own fields only.""" + isWritableOnCreate: Boolean + + """ + Whether an update may change this field. Set on a table's own fields only. + """ + isWritableOnUpdate: Boolean + """Final GraphQL field name""" name: String! type: MetaType! } +"""How a field holds files""" +type MetaFileField { + """ + GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise + """ + filesType: String + + """Whether the field holds a list of files""" + isMultiple: Boolean! + + """ + image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. + """ + kind: String! +} + """Information about a foreign key constraint""" type MetaForeignKeyConstraint { fields: [MetaField!]! @@ -3301,10 +3350,15 @@ type MetaHasRelation { isUnique: Boolean! keys: [MetaField!]! referencedBy: MetaRefTable! + + """ + Fields on the related table that point at this table, in the same order as keys + """ + remoteKeys: [MetaField!]! type: String } -"""i18n metadata for a table with @i18n tag""" +"""i18n metadata for a translatable table""" type MetaI18n { """Fields that are translatable""" translatableFields: [MetaI18nField!]! @@ -3331,7 +3385,7 @@ type MetaIndex { name: String! } -"""Table inflection names""" +"""Type and field names generated for this table""" type MetaInflection { allRows: String! conditionType: String! @@ -3376,7 +3430,7 @@ type MetaQuery { update: String } -"""Realtime metadata for a table with @realtime tag""" +"""Realtime metadata for a table with change subscriptions""" type MetaRealtime { """The generated subscription field name (e.g. onPostChanged)""" subscriptionFieldName: String! @@ -3397,13 +3451,15 @@ type MetaRelations { } """ -How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. +How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. """ type MetaScalarEncoding { """For 'vector': declared length, else null.""" dimensions: Int - """For 'ltree': values are dot-separated path strings.""" + """ + For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). + """ dotPath: Boolean """For 'vector': element scalar (e.g. 'float').""" @@ -3428,11 +3484,11 @@ type MetaSchema { """Provisioning scope metadata for a table""" type MetaScope { - """SQL name of the entity table for entity scopes, else null""" + """Name of the entity table for entity scopes, else null""" entityTable: String """ - Inflected scope key column (e.g. databaseId, orgId), null for global tiers + Field name of the scope key (e.g. databaseId, orgId), null for global tiers """ keyColumn: String @@ -3441,7 +3497,7 @@ type MetaScope { """ scope: String! - """Provenance of the scope metadata (always 'smartTag')""" + """Where this scope metadata comes from""" source: String! """Coarse bucket: 'global', 'database', or 'entity'""" @@ -3472,7 +3528,7 @@ type MetaSearchColumn { name: String! } -"""Per-table search configuration from @searchConfig smart tag""" +"""Per-table search configuration""" type MetaSearchConfig { """Exponential decay factor per day""" boostRecencyDecay: Float @@ -3489,7 +3545,7 @@ type MetaSearchConfig { """Storage metadata for a table""" type MetaStorage { - """GraphQL type name of the plane's buckets table""" + """GraphQL type name of the paired buckets table""" bucketsType: String! """ @@ -3497,7 +3553,7 @@ type MetaStorage { """ downloadUrlField: String - """GraphQL type name of the plane's files table""" + """GraphQL type name of the paired files table""" filesType: String! """Whether this table is a storage buckets table""" @@ -3506,13 +3562,11 @@ type MetaStorage { """Whether this table is a storage files table""" isFilesTable: Boolean! - """The plane's GraphQL upload surface""" + """Upload mutations and types for this storage""" upload: MetaStorageUpload! } -""" -The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from -""" +"""The upload mutations and types for a storage table pair""" type MetaStorageUpload { """Per-file input type inside the bulk input""" bulkFileInputType: String! @@ -3538,32 +3592,45 @@ type MetaStorageUpload { """Payload type of the single upload mutation""" payloadType: String! - """Whether the upload input requires ownerId (entity-keyed plane)""" + """Whether the upload input requires ownerId""" requiresOwnerId: Boolean! } """Information about a database table""" type MetaTable { constraints: MetaConstraints! + + """Description written for this table, or null""" + description: String fields: [MetaField!]! foreignKeyConstraints: [MetaForeignKeyConstraint!]! - """i18n metadata (null if no @i18n tag)""" + """i18n metadata (null if the table is not translatable)""" i18n: MetaI18n indexes: [MetaIndex!]! inflection: MetaInflection! + """ + Whether this table only links rows of two other tables; the link appears in their manyToMany relations + """ + isJunction: Boolean! + + """ + 'table' when rows are stored in this table, 'view' when they come from a view of other tables + """ + kind: String! + """Final GraphQL output type name""" name: String! primaryKeyConstraints: [MetaPrimaryKeyConstraint!]! query: MetaQuery! - """Realtime metadata (null if no @realtime tag)""" + """Realtime metadata (null if the table has no change subscriptions)""" realtime: MetaRealtime relations: MetaRelations! schemaName: String! - """Provisioning scope metadata (null if no @scope tag)""" + """Provisioning scope metadata (null if the table has no scope)""" scope: MetaScope """Search metadata (null if no search configured)""" @@ -3585,7 +3652,22 @@ type MetaType { hasDefault: Boolean isArray: Boolean! isNotNull: Boolean + + """ + Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. + """ + maxLength: Int pgType: String! + + """ + Most significant digits a decimal number may hold. Null when unbounded. + """ + precision: Int + + """ + Digits a decimal number keeps after the decimal point. Null when unbounded. + """ + scale: Int subtype: String } diff --git a/sdk/constructive-sdk/src/admin/orm/README.md b/sdk/constructive-sdk/src/admin/orm/README.md index 0a5e8c1664..103185f21e 100644 --- a/sdk/constructive-sdk/src/admin/orm/README.md +++ b/sdk/constructive-sdk/src/admin/orm/README.md @@ -31,16 +31,16 @@ const db = createClient({ | `appMembershipDefault` | findMany, findOne, create, update, delete | | `appOwnerGrant` | findMany, findOne, create, update, delete | | `membershipType` | findMany, findOne, create, update, delete | -| `myPendingAppInvitesRecord` | findMany, findOne, create, update, delete | -| `myPendingOrgInvitesRecord` | findMany, findOne, create, update, delete | +| `myPendingAppInvitesRecord` | findMany, findOne, update, delete | +| `myPendingOrgInvitesRecord` | findMany, findOne, update, delete | | `orgAdminGrant` | findMany, findOne, create, update, delete | | `orgCapabilityDefaultCapability` | findMany, findOne, create, update, delete | | `orgCapabilityDefaultGrant` | findMany, findOne, create, update, delete | | `orgChartEdge` | findMany, findOne, create, update, delete | | `orgChartEdgeGrant` | findMany, findOne, create, update, delete | | `orgClaimedInvite` | findMany, findOne, create, update, delete | -| `orgGetManagersRecord` | findMany, findOne, create, update, delete | -| `orgGetSubordinatesRecord` | findMany, findOne, create, update, delete | +| `orgGetManagersRecord` | findMany, findOne, update, delete | +| `orgGetSubordinatesRecord` | findMany, findOne, update, delete | | `orgGrant` | findMany, findOne, create, update, delete | | `orgInvite` | findMany, findOne, create, update, delete | | `orgMember` | findMany, findOne, create, update, delete | @@ -438,9 +438,6 @@ const items = await db.myPendingAppInvitesRecord.findMany({ select: { channel: t // Get one by id const item = await db.myPendingAppInvitesRecord.findOne({ id: '', select: { channel: true, createdAt: true, expiresAt: true, id: true, senderId: true } }).execute(); -// Create -const created = await db.myPendingAppInvitesRecord.create({ data: { channel: '', expiresAt: '', senderId: '' }, select: { id: true } }).execute(); - // Update const updated = await db.myPendingAppInvitesRecord.update({ where: { id: '' }, data: { channel: '' }, select: { id: true } }).execute(); @@ -472,9 +469,6 @@ const items = await db.myPendingOrgInvitesRecord.findMany({ select: { channel: t // Get one by id const item = await db.myPendingOrgInvitesRecord.findOne({ id: '', select: { channel: true, createdAt: true, entityId: true, expiresAt: true, id: true, senderId: true } }).execute(); -// Create -const created = await db.myPendingOrgInvitesRecord.create({ data: { channel: '', entityId: '', expiresAt: '', senderId: '' }, select: { id: true } }).execute(); - // Update const updated = await db.myPendingOrgInvitesRecord.update({ where: { id: '' }, data: { channel: '' }, select: { id: true } }).execute(); @@ -713,9 +707,6 @@ const items = await db.orgGetManagersRecord.findMany({ select: { depth: true, us // Get one by id const item = await db.orgGetManagersRecord.findOne({ id: '', select: { depth: true, userId: true } }).execute(); -// Create -const created = await db.orgGetManagersRecord.create({ data: { depth: '', userId: '' }, select: { id: true } }).execute(); - // Update const updated = await db.orgGetManagersRecord.update({ where: { id: '' }, data: { depth: '' }, select: { id: true } }).execute(); @@ -743,9 +734,6 @@ const items = await db.orgGetSubordinatesRecord.findMany({ select: { depth: true // Get one by id const item = await db.orgGetSubordinatesRecord.findOne({ id: '', select: { depth: true, userId: true } }).execute(); -// Create -const created = await db.orgGetSubordinatesRecord.create({ data: { depth: '', userId: '' }, select: { id: true } }).execute(); - // Update const updated = await db.orgGetSubordinatesRecord.update({ where: { id: '' }, data: { depth: '' }, select: { id: true } }).execute(); @@ -884,6 +872,8 @@ CRUD operations for OrgMemberProfile records. | `id` | UUID | No | | `membershipId` | UUID | Yes | | `profilePicture` | ConstructiveInternalTypeImage | Yes | +| `profilePictureUrl` | String | Yes | +| `profilePictureVersions` | FileVersion | Yes | | `title` | String | Yes | | `updatedAt` | Datetime | No | @@ -891,13 +881,13 @@ CRUD operations for OrgMemberProfile records. ```typescript // List all orgMemberProfile records -const items = await db.orgMemberProfile.findMany({ select: { actorId: true, bio: true, createdAt: true, displayName: true, email: true, entityId: true, id: true, membershipId: true, profilePicture: true, title: true, updatedAt: true } }).execute(); +const items = await db.orgMemberProfile.findMany({ select: { actorId: true, bio: true, createdAt: true, displayName: true, email: true, entityId: true, id: true, membershipId: true, profilePicture: true, profilePictureUrl: true, profilePictureVersions: true, title: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgMemberProfile.findOne({ id: '', select: { actorId: true, bio: true, createdAt: true, displayName: true, email: true, entityId: true, id: true, membershipId: true, profilePicture: true, title: true, updatedAt: true } }).execute(); +const item = await db.orgMemberProfile.findOne({ id: '', select: { actorId: true, bio: true, createdAt: true, displayName: true, email: true, entityId: true, id: true, membershipId: true, profilePicture: true, profilePictureUrl: true, profilePictureVersions: true, title: true, updatedAt: true } }).execute(); // Create -const created = await db.orgMemberProfile.create({ data: { actorId: '', bio: '', displayName: '', email: '', entityId: '', membershipId: '', profilePicture: '', title: '' }, select: { id: true } }).execute(); +const created = await db.orgMemberProfile.create({ data: { actorId: '', bio: '', displayName: '', email: '', entityId: '', membershipId: '', profilePicture: '', profilePictureUrl: '', profilePictureVersions: '', title: '' }, select: { id: true } }).execute(); // Update const updated = await db.orgMemberProfile.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); diff --git a/sdk/constructive-sdk/src/admin/orm/input-types.ts b/sdk/constructive-sdk/src/admin/orm/input-types.ts index 9bc1f6a8e9..ce8804f4d9 100644 --- a/sdk/constructive-sdk/src/admin/orm/input-types.ts +++ b/sdk/constructive-sdk/src/admin/orm/input-types.ts @@ -233,6 +233,7 @@ export interface UUIDListFilter { // ============ Custom Scalar Types ============ export type ConstructiveInternalTypeEmail = unknown; export type ConstructiveInternalTypeImage = unknown; +export type FileVersion = unknown; /** Records of admin role grants and revocations between members */ // ============ Entity Types ============ export interface AppAdminGrant { @@ -576,6 +577,10 @@ export interface OrgMemberProfile { membershipId?: string | null; /** Profile picture visible to other entity members */ profilePicture?: ConstructiveInternalTypeImage | null; + /** URL to fetch `profilePicture`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + profilePictureUrl?: string | null; + /** The versions rendered beside `profilePicture`, narrowest first, each with a URL. Empty when there are none. */ + profilePictureVersions?: FileVersion[] | null; /** Job title or role description visible to other entity members */ title?: string | null; updatedAt?: string | null; @@ -987,6 +992,13 @@ export type OrgMemberProfileSelect = { id?: boolean; membershipId?: boolean; profilePicture?: boolean; + profilePictureUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + profilePictureVersions?: boolean; title?: boolean; updatedAt?: boolean; membership?: { @@ -2582,14 +2594,6 @@ export interface DeleteMembershipTypeInput { clientMutationId?: string; id: number; } -export interface CreateMyPendingAppInvitesRecordInput { - clientMutationId?: string; - myPendingAppInvitesRecord: { - channel?: string; - expiresAt?: string; - senderId: string; - }; -} export interface MyPendingAppInvitesRecordPatch { channel?: string | null; expiresAt?: string | null; @@ -2604,15 +2608,6 @@ export interface DeleteMyPendingAppInvitesRecordInput { clientMutationId?: string; id: string; } -export interface CreateMyPendingOrgInvitesRecordInput { - clientMutationId?: string; - myPendingOrgInvitesRecord: { - channel?: string; - entityId: string; - expiresAt?: string; - senderId: string; - }; -} export interface MyPendingOrgInvitesRecordPatch { channel?: string | null; entityId?: string | null; @@ -2776,13 +2771,6 @@ export interface DeleteOrgClaimedInviteInput { clientMutationId?: string; id: string; } -export interface CreateOrgGetManagersRecordInput { - clientMutationId?: string; - orgGetManagersRecord: { - depth?: number; - userId: string; - }; -} export interface OrgGetManagersRecordPatch { depth?: number | null; userId?: string | null; @@ -2796,13 +2784,6 @@ export interface DeleteOrgGetManagersRecordInput { clientMutationId?: string; id: string; } -export interface CreateOrgGetSubordinatesRecordInput { - clientMutationId?: string; - orgGetSubordinatesRecord: { - depth?: number; - userId: string; - }; -} export interface OrgGetSubordinatesRecordPatch { depth?: number | null; userId?: string | null; @@ -2931,7 +2912,6 @@ export interface OrgMemberProfilePatch { entityId?: string | null; membershipId?: string | null; profilePicture?: ConstructiveInternalTypeImage | null; - profilePictureUpload?: File | null; title?: string | null; } export interface UpdateOrgMemberProfileInput { diff --git a/sdk/constructive-sdk/src/admin/orm/models/myPendingAppInvitesRecord.ts b/sdk/constructive-sdk/src/admin/orm/models/myPendingAppInvitesRecord.ts index 498d67ae85..dc0fa5a44f 100644 --- a/sdk/constructive-sdk/src/admin/orm/models/myPendingAppInvitesRecord.ts +++ b/sdk/constructive-sdk/src/admin/orm/models/myPendingAppInvitesRecord.ts @@ -29,7 +29,6 @@ import type { MyPendingAppInvitesRecordSelect, MyPendingAppInvitesRecordFilter, MyPendingAppInvitesRecordsOrderBy, - CreateMyPendingAppInvitesRecordInput, UpdateMyPendingAppInvitesRecordInput, MyPendingAppInvitesRecordPatch, } from '../input-types'; @@ -146,31 +145,4 @@ export class MyPendingAppInvitesRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createMyPendingAppInvitesRecord: { - myPendingAppInvitesRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'MyPendingAppInvitesRecord', - 'createMyPendingAppInvitesRecord', - 'myPendingAppInvitesRecord', - args.select, - args.data, - 'CreateMyPendingAppInvitesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'MyPendingAppInvitesRecord', - fieldName: 'createMyPendingAppInvitesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/admin/orm/models/myPendingOrgInvitesRecord.ts b/sdk/constructive-sdk/src/admin/orm/models/myPendingOrgInvitesRecord.ts index b5913b8869..274dc17d9e 100644 --- a/sdk/constructive-sdk/src/admin/orm/models/myPendingOrgInvitesRecord.ts +++ b/sdk/constructive-sdk/src/admin/orm/models/myPendingOrgInvitesRecord.ts @@ -29,7 +29,6 @@ import type { MyPendingOrgInvitesRecordSelect, MyPendingOrgInvitesRecordFilter, MyPendingOrgInvitesRecordsOrderBy, - CreateMyPendingOrgInvitesRecordInput, UpdateMyPendingOrgInvitesRecordInput, MyPendingOrgInvitesRecordPatch, } from '../input-types'; @@ -146,31 +145,4 @@ export class MyPendingOrgInvitesRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createMyPendingOrgInvitesRecord: { - myPendingOrgInvitesRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'MyPendingOrgInvitesRecord', - 'createMyPendingOrgInvitesRecord', - 'myPendingOrgInvitesRecord', - args.select, - args.data, - 'CreateMyPendingOrgInvitesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'MyPendingOrgInvitesRecord', - fieldName: 'createMyPendingOrgInvitesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/admin/orm/models/orgGetManagersRecord.ts b/sdk/constructive-sdk/src/admin/orm/models/orgGetManagersRecord.ts index 7c333b76d3..21f4008311 100644 --- a/sdk/constructive-sdk/src/admin/orm/models/orgGetManagersRecord.ts +++ b/sdk/constructive-sdk/src/admin/orm/models/orgGetManagersRecord.ts @@ -29,7 +29,6 @@ import type { OrgGetManagersRecordSelect, OrgGetManagersRecordFilter, OrgGetManagersRecordsOrderBy, - CreateOrgGetManagersRecordInput, UpdateOrgGetManagersRecordInput, OrgGetManagersRecordPatch, } from '../input-types'; @@ -104,31 +103,4 @@ export class OrgGetManagersRecordModel { }), }); } - 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/admin/orm/models/orgGetSubordinatesRecord.ts b/sdk/constructive-sdk/src/admin/orm/models/orgGetSubordinatesRecord.ts index f259e10434..a5b89052df 100644 --- a/sdk/constructive-sdk/src/admin/orm/models/orgGetSubordinatesRecord.ts +++ b/sdk/constructive-sdk/src/admin/orm/models/orgGetSubordinatesRecord.ts @@ -29,7 +29,6 @@ import type { OrgGetSubordinatesRecordSelect, OrgGetSubordinatesRecordFilter, OrgGetSubordinatesRecordsOrderBy, - CreateOrgGetSubordinatesRecordInput, UpdateOrgGetSubordinatesRecordInput, OrgGetSubordinatesRecordPatch, } from '../input-types'; @@ -106,31 +105,4 @@ export class OrgGetSubordinatesRecordModel { }), }); } - 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/agent/orm/README.md b/sdk/constructive-sdk/src/agent/orm/README.md index a201a35f2d..26e6cd58ff 100644 --- a/sdk/constructive-sdk/src/agent/orm/README.md +++ b/sdk/constructive-sdk/src/agent/orm/README.md @@ -351,6 +351,8 @@ CRUD operations for AgentResource records. | `description` | String | Yes | | `descriptionTrgmSimilarity` | Float | Yes | | `embedding` | Vector | Yes | +| `embeddingModel` | String | Yes | +| `embeddingModelTrgmSimilarity` | Float | Yes | | `embeddingUpdatedAt` | Datetime | Yes | | `embeddingVectorDistance` | Float | Yes | | `id` | UUID | No | @@ -374,13 +376,13 @@ CRUD operations for AgentResource records. ```typescript // List all agentResource records -const items = await db.agentResource.findMany({ select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.agentResource.findMany({ select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.agentResource.findOne({ id: '', select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.agentResource.findOne({ id: '', select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.agentResource.create({ data: { archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const created = await db.agentResource.create({ data: { archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentResource.update({ where: { id: '' }, data: { archivedAt: '' }, select: { id: true } }).execute(); @@ -882,6 +884,8 @@ CRUD operations for PlatformAgentResource records. | `description` | String | Yes | | `descriptionTrgmSimilarity` | Float | Yes | | `embedding` | Vector | Yes | +| `embeddingModel` | String | Yes | +| `embeddingModelTrgmSimilarity` | Float | Yes | | `embeddingUpdatedAt` | Datetime | Yes | | `embeddingVectorDistance` | Float | Yes | | `id` | UUID | No | @@ -905,13 +909,13 @@ CRUD operations for PlatformAgentResource records. ```typescript // List all platformAgentResource records -const items = await db.platformAgentResource.findMany({ select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.platformAgentResource.findMany({ select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformAgentResource.findOne({ id: '', select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.platformAgentResource.findOne({ id: '', select: { archivedAt: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, isActive: true, isArchived: true, keywords: true, kind: true, kindTrgmSimilarity: true, metadata: true, search: true, searchScore: true, searchTsvRank: true, slug: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformAgentResource.create({ data: { archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const created = await db.platformAgentResource.create({ data: { archivedAt: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', isActive: '', isArchived: '', keywords: '', kind: '', kindTrgmSimilarity: '', metadata: '', search: '', searchScore: '', searchTsvRank: '', slug: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformAgentResource.update({ where: { id: '' }, data: { archivedAt: '' }, select: { id: true } }).execute(); diff --git a/sdk/constructive-sdk/src/agent/orm/input-types.ts b/sdk/constructive-sdk/src/agent/orm/input-types.ts index 203bbeda25..fc4524c9f2 100644 --- a/sdk/constructive-sdk/src/agent/orm/input-types.ts +++ b/sdk/constructive-sdk/src/agent/orm/input-types.ts @@ -407,6 +407,9 @@ export interface AgentResource { /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ descriptionTrgmSimilarity?: number | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -758,6 +761,9 @@ export interface PlatformAgentResource { /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ descriptionTrgmSimilarity?: number | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -1262,6 +1268,8 @@ export type AgentResourceSelect = { description?: boolean; descriptionTrgmSimilarity?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; id?: boolean; @@ -1598,6 +1606,8 @@ export type PlatformAgentResourceSelect = { description?: boolean; descriptionTrgmSimilarity?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; id?: boolean; @@ -2066,6 +2076,8 @@ export interface AgentResourceFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -2094,6 +2106,8 @@ export interface AgentResourceFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `title` column. */ @@ -2632,6 +2646,8 @@ export interface PlatformAgentResourceFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -2664,6 +2680,8 @@ export interface PlatformAgentResourceFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `title` column. */ @@ -3141,6 +3159,10 @@ export type AgentResourceOrderBy = | 'DESCRIPTION_TRGM_SIMILARITY_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -3561,6 +3583,10 @@ export type PlatformAgentResourceOrderBy = | 'DESCRIPTION_TRGM_SIMILARITY_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -4838,10 +4864,12 @@ export interface VectorNearbyInput { includeChunks?: boolean; /** Similarity metric to use (default: COSINE). */ metric?: VectorMetric; - /** Natural language text to embed server-side for similarity search. Mutually exclusive with `vector` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** The model that produced `vector`. On a column that records the model of each row's vector, only rows embedded with this model are compared; vectors of two models are not comparable. Filled in server-side when `text` is embedded. */ + model?: string; + /** Natural language text to embed server-side for similarity search. Provide exactly one of `text` or `vector`; sending both or neither is an error. Blank text on its own counts as not given. Requires the LLM plugin to be configured with an embedding provider. */ text?: string; /** Query vector for similarity search. */ - vector: number[]; + vector?: number[]; } /** A filter to be used against many `AgentResourceChunk` object types. All fields are combined with a logical ‘and.’ */ export interface AgentResourceToManyAgentResourceChunkFilter { @@ -5266,7 +5294,7 @@ export interface AgentResourceChunkInput { /** Policy-required field derived from source table (used by AuthzRelatedEntityMembership) */ databaseId?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; metadata?: Record; @@ -5286,7 +5314,7 @@ export interface AgentResourceInput { /** Brief description of this resource */ description?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** Whether this resource is active and retrievable */ @@ -5581,7 +5609,7 @@ export interface PlatformAgentResourceChunkInput { chunkIndex?: number; createdAt?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; metadata?: Record; @@ -5600,7 +5628,7 @@ export interface PlatformAgentResourceInput { /** Brief description of this resource */ description?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** Whether this resource is active and retrievable */ @@ -6992,6 +7020,8 @@ export interface AgentResourceFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -7020,6 +7050,8 @@ export interface AgentResourceFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `title` column. */ @@ -7181,6 +7213,8 @@ export interface PlatformAgentResourceFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -7213,6 +7247,8 @@ export interface PlatformAgentResourceFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `title` column. */ diff --git a/sdk/constructive-sdk/src/api/README.md b/sdk/constructive-sdk/src/api/README.md index bb5f974e11..27541d5f3e 100644 --- a/sdk/constructive-sdk/src/api/README.md +++ b/sdk/constructive-sdk/src/api/README.md @@ -8,8 +8,8 @@ ## Overview -- **Tables:** 90 -- **Custom queries:** 18 +- **Tables:** 91 +- **Custom queries:** 14 - **Custom mutations:** 31 **Generators:** ORM diff --git a/sdk/constructive-sdk/src/api/orm/README.md b/sdk/constructive-sdk/src/api/orm/README.md index 02e465c85e..fb5e6acbf6 100644 --- a/sdk/constructive-sdk/src/api/orm/README.md +++ b/sdk/constructive-sdk/src/api/orm/README.md @@ -24,7 +24,7 @@ const db = createClient({ | `api` | findMany, findOne, create, update, delete | | `apiSchema` | findMany, findOne, create, update, delete | | `apiSetting` | findMany, findOne, create, update, delete | -| `astMigration` | findMany, findOne, create, update, delete | +| `astMigration` | findMany, findOne, update, delete | | `checkConstraint` | findMany, findOne, create, update, delete | | `compositeType` | findMany, findOne, create, update, delete | | `corsSetting` | findMany, findOne, create, update, delete | @@ -49,10 +49,10 @@ const db = createClient({ | `foreignKeyConstraint` | findMany, findOne, create, update, delete | | `fullTextSearch` | findMany, findOne, create, update, delete | | `function` | findMany, findOne, create, update, delete | -| `getSitePreviewsRecord` | findMany, findOne, create, update, delete | +| `getSitePreviewsRecord` | findMany, findOne, update, delete | | `identityProviderRegistry` | findMany, findOne, create, update, delete | | `index` | findMany, findOne, create, update, delete | -| `listSuspendedDatabasesRecord` | findMany, findOne, create, update, delete | +| `listSuspendedDatabasesRecord` | findMany, findOne, update, delete | | `managedDomain` | findMany, findOne, create, update, delete | | `nodeTypeRegistry` | findMany, findOne, create, update, delete | | `page` | findMany, findOne, create, update, delete | @@ -67,9 +67,10 @@ const db = createClient({ | `platformEmailIdentity` | findMany, findOne, create, update, delete | | `platformEmailProviderAccount` | findMany, findOne, create, update, delete | | `platformEmailSiteIdentity` | findMany, findOne, create, update, delete | -| `platformGetSitePreviewsRecord` | findMany, findOne, create, update, delete | +| `platformGetSitePreviewsRecord` | findMany, findOne, update, delete | | `platformManagedDomain` | findMany, findOne, create, update, delete | | `platformPage` | findMany, findOne, create, update, delete | +| `platformReservedSubdomain` | findMany, findOne, create, update, delete | | `platformSiteAppLink` | findMany, findOne, create, update, delete | | `platformSite` | findMany, findOne, create, update, delete | | `platformSiteDeepLink` | findMany, findOne, create, update, delete | @@ -97,7 +98,7 @@ const db = createClient({ | `siteTheme` | findMany, findOne, create, update, delete | | `siteWebConfig` | findMany, findOne, create, update, delete | | `spatialRelation` | findMany, findOne, create, update, delete | -| `sqlAction` | findMany, findOne, create, update, delete | +| `sqlAction` | findMany, findOne, update, delete | | `tableBehavior` | findMany, findOne, create, update, delete | | `table` | findMany, findOne, create, update, delete | | `tableGrant` | findMany, findOne, create, update, delete | @@ -126,24 +127,24 @@ CRUD operations for Api records. | `config` | JSON | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | -| `dbname` | String | Yes | | `id` | UUID | No | | `isPublished` | Boolean | Yes | | `name` | String | Yes | | `roleName` | String | Yes | +| `serviceHostname` | String | Yes | | `updatedAt` | Datetime | No | **Operations:** ```typescript // List all api records -const items = await db.api.findMany({ select: { anonRole: true, config: true, createdAt: true, databaseId: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); +const items = await db.api.findMany({ select: { anonRole: true, config: true, createdAt: true, databaseId: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.api.findOne({ id: '', select: { anonRole: true, config: true, createdAt: true, databaseId: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); +const item = await db.api.findOne({ id: '', select: { anonRole: true, config: true, createdAt: true, databaseId: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } }).execute(); // Create -const created = await db.api.create({ data: { anonRole: '', config: '', databaseId: '', dbname: '', isPublished: '', name: '', roleName: '' }, select: { id: true } }).execute(); +const created = await db.api.create({ data: { anonRole: '', config: '', databaseId: '', isPublished: '', name: '', roleName: '', serviceHostname: '' }, select: { id: true } }).execute(); // Update const updated = await db.api.update({ where: { id: '' }, data: { anonRole: '' }, select: { id: true } }).execute(); @@ -200,7 +201,6 @@ CRUD operations for ApiSetting records. | `enableAggregates` | Boolean | Yes | | `enableBulk` | Boolean | Yes | | `enableConnectionFilter` | Boolean | Yes | -| `enableDirectUploads` | Boolean | Yes | | `enableI18N` | Boolean | Yes | | `enableIntrospection` | Boolean | Yes | | `enableLlm` | Boolean | Yes | @@ -229,13 +229,13 @@ CRUD operations for ApiSetting records. ```typescript // List all apiSetting records -const items = await db.apiSetting.findMany({ select: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const items = await db.apiSetting.findMany({ select: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.apiSetting.findOne({ id: '', select: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const item = await db.apiSetting.findOne({ id: '', select: { apiId: true, createdAt: true, databaseId: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Create -const created = await db.apiSetting.create({ data: { apiId: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); +const created = await db.apiSetting.create({ data: { apiId: '', databaseId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); // Update const updated = await db.apiSetting.update({ where: { id: '' }, data: { apiId: '' }, select: { id: true } }).execute(); @@ -275,9 +275,6 @@ const items = await db.astMigration.findMany({ select: { actionId: true, actionN // Get one by id const item = await db.astMigration.findOne({ id: '', select: { actionId: true, actionName: true, actorId: true, createdAt: true, databaseId: true, deploy: true, deploys: true, id: true, name: true, payload: true, requires: true, revert: true, verify: true } }).execute(); -// Create -const created = await db.astMigration.create({ data: { actionId: '', actionName: '', actorId: '', databaseId: '', deploy: '', deploys: '', name: '', payload: '', requires: '', revert: '', verify: '' }, select: { id: true } }).execute(); - // Update const updated = await db.astMigration.update({ where: { id: '' }, data: { actionId: '' }, select: { id: true } }).execute(); @@ -453,7 +450,6 @@ CRUD operations for DatabaseSetting records. | `enableBilling` | Boolean | Yes | | `enableBulk` | Boolean | Yes | | `enableConnectionFilter` | Boolean | Yes | -| `enableDirectUploads` | Boolean | Yes | | `enableI18N` | Boolean | Yes | | `enableIntrospection` | Boolean | Yes | | `enableLlm` | Boolean | Yes | @@ -483,13 +479,13 @@ CRUD operations for DatabaseSetting records. ```typescript // List all databaseSetting records -const items = await db.databaseSetting.findMany({ select: { annotations: true, createdAt: true, creditsPerCent: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const items = await db.databaseSetting.findMany({ select: { annotations: true, createdAt: true, creditsPerCent: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.databaseSetting.findOne({ id: '', select: { annotations: true, createdAt: true, creditsPerCent: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const item = await db.databaseSetting.findOne({ id: '', select: { annotations: true, createdAt: true, creditsPerCent: true, databaseId: true, enableAggregates: true, enableBilling: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, labels: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Create -const created = await db.databaseSetting.create({ data: { annotations: '', creditsPerCent: '', databaseId: '', enableAggregates: '', enableBilling: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', labels: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); +const created = await db.databaseSetting.create({ data: { annotations: '', creditsPerCent: '', databaseId: '', enableAggregates: '', enableBilling: '', enableBulk: '', enableConnectionFilter: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', labels: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); // Update const updated = await db.databaseSetting.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -1307,9 +1303,6 @@ const items = await db.getSitePreviewsRecord.findMany({ select: { commitId: true // Get one by id const item = await db.getSitePreviewsRecord.findOne({ id: '', select: { commitId: true, name: true } }).execute(); -// Create -const created = await db.getSitePreviewsRecord.create({ data: { commitId: '', name: '' }, select: { id: true } }).execute(); - // Update const updated = await db.getSitePreviewsRecord.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); @@ -1422,9 +1415,6 @@ const items = await db.listSuspendedDatabasesRecord.findMany({ select: { id: tru // Get one by id const item = await db.listSuspendedDatabasesRecord.findOne({ id: '', select: { id: true, name: true, ownerId: true, suspendedAt: true, suspendedReason: true } }).execute(); -// Create -const created = await db.listSuspendedDatabasesRecord.create({ data: { name: '', ownerId: '', suspendedAt: '', suspendedReason: '' }, select: { id: true } }).execute(); - // Update const updated = await db.listSuspendedDatabasesRecord.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); @@ -1601,24 +1591,24 @@ CRUD operations for PlatformApi records. | `anonRole` | String | Yes | | `config` | JSON | Yes | | `createdAt` | Datetime | No | -| `dbname` | String | Yes | | `id` | UUID | No | | `isPublished` | Boolean | Yes | | `name` | String | Yes | | `roleName` | String | Yes | +| `serviceHostname` | String | Yes | | `updatedAt` | Datetime | No | **Operations:** ```typescript // List all platformApi records -const items = await db.platformApi.findMany({ select: { anonRole: true, config: true, createdAt: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); +const items = await db.platformApi.findMany({ select: { anonRole: true, config: true, createdAt: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.platformApi.findOne({ id: '', select: { anonRole: true, config: true, createdAt: true, dbname: true, id: true, isPublished: true, name: true, roleName: true, updatedAt: true } }).execute(); +const item = await db.platformApi.findOne({ id: '', select: { anonRole: true, config: true, createdAt: true, id: true, isPublished: true, name: true, roleName: true, serviceHostname: true, updatedAt: true } }).execute(); // Create -const created = await db.platformApi.create({ data: { anonRole: '', config: '', dbname: '', isPublished: '', name: '', roleName: '' }, select: { id: true } }).execute(); +const created = await db.platformApi.create({ data: { anonRole: '', config: '', isPublished: '', name: '', roleName: '', serviceHostname: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformApi.update({ where: { id: '' }, data: { anonRole: '' }, select: { id: true } }).execute(); @@ -1673,7 +1663,6 @@ CRUD operations for PlatformApiSetting records. | `enableAggregates` | Boolean | Yes | | `enableBulk` | Boolean | Yes | | `enableConnectionFilter` | Boolean | Yes | -| `enableDirectUploads` | Boolean | Yes | | `enableI18N` | Boolean | Yes | | `enableIntrospection` | Boolean | Yes | | `enableLlm` | Boolean | Yes | @@ -1702,13 +1691,13 @@ CRUD operations for PlatformApiSetting records. ```typescript // List all platformApiSetting records -const items = await db.platformApiSetting.findMany({ select: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const items = await db.platformApiSetting.findMany({ select: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.platformApiSetting.findOne({ id: '', select: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableDirectUploads: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); +const item = await db.platformApiSetting.findOne({ id: '', select: { apiId: true, createdAt: true, enableAggregates: true, enableBulk: true, enableConnectionFilter: true, enableI18N: true, enableIntrospection: true, enableLlm: true, enableLtree: true, enableManyToMany: true, enablePostgis: true, enablePresignedUploads: true, enableRealtime: true, enableSearch: true, id: true, idleInTransactionTimeoutMs: true, lockTimeoutMs: true, maxConcurrentRequests: true, maxPageSize: true, maxQueryCost: true, maxQueryDepth: true, maxQueueWaitMs: true, maxRequestBytes: true, options: true, rateLimitBurst: true, rateLimitRpm: true, statementTimeoutMs: true, updatedAt: true } }).execute(); // Create -const created = await db.platformApiSetting.create({ data: { apiId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableDirectUploads: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); +const created = await db.platformApiSetting.create({ data: { apiId: '', enableAggregates: '', enableBulk: '', enableConnectionFilter: '', enableI18N: '', enableIntrospection: '', enableLlm: '', enableLtree: '', enableManyToMany: '', enablePostgis: '', enablePresignedUploads: '', enableRealtime: '', enableSearch: '', idleInTransactionTimeoutMs: '', lockTimeoutMs: '', maxConcurrentRequests: '', maxPageSize: '', maxQueryCost: '', maxQueryDepth: '', maxQueueWaitMs: '', maxRequestBytes: '', options: '', rateLimitBurst: '', rateLimitRpm: '', statementTimeoutMs: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformApiSetting.update({ where: { id: '' }, data: { apiId: '' }, select: { id: true } }).execute(); @@ -2010,9 +1999,6 @@ const items = await db.platformGetSitePreviewsRecord.findMany({ select: { commit // Get one by id const item = await db.platformGetSitePreviewsRecord.findOne({ id: '', select: { commitId: true, name: true } }).execute(); -// Create -const created = await db.platformGetSitePreviewsRecord.create({ data: { commitId: '', name: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformGetSitePreviewsRecord.update({ where: { id: '' }, data: { commitId: '' }, select: { id: true } }).execute(); @@ -2100,6 +2086,42 @@ const updated = await db.platformPage.update({ where: { id: '' }, data: { const deleted = await db.platformPage.delete({ where: { id: '' } }).execute(); ``` +### `db.platformReservedSubdomain` + +CRUD operations for PlatformReservedSubdomain records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `createdByPrincipal` | UUID | Yes | +| `id` | UUID | No | +| `label` | String | Yes | +| `match` | String | Yes | +| `reason` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformReservedSubdomain records +const items = await db.platformReservedSubdomain.findMany({ select: { createdAt: true, createdByPrincipal: true, id: true, label: true, match: true, reason: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformReservedSubdomain.findOne({ id: '', select: { createdAt: true, createdByPrincipal: true, id: true, label: true, match: true, reason: true, updatedAt: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformReservedSubdomain.create({ data: { createdByPrincipal: '', label: '', match: '', reason: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformReservedSubdomain.update({ where: { id: '' }, data: { createdByPrincipal: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformReservedSubdomain.delete({ where: { id: '' } }).execute(); +``` + ### `db.platformSiteAppLink` CRUD operations for PlatformSiteAppLink records. @@ -2258,14 +2280,22 @@ CRUD operations for PlatformSiteMetadatum records. | Field | Type | Editable | |-------|------|----------| | `appleTouchIcon` | ConstructiveInternalTypeImage | Yes | +| `appleTouchIconUrl` | String | Yes | +| `appleTouchIconVersions` | FileVersion | Yes | | `canonicalUrl` | String | Yes | | `commitId` | UUID | Yes | | `createdAt` | Datetime | No | | `description` | String | Yes | | `favicon` | ConstructiveInternalTypeImage | Yes | +| `faviconUrl` | String | Yes | +| `faviconVersions` | FileVersion | Yes | | `id` | UUID | No | | `logo` | ConstructiveInternalTypeImage | Yes | +| `logoUrl` | String | Yes | +| `logoVersions` | FileVersion | Yes | | `ogImage` | ConstructiveInternalTypeImage | Yes | +| `ogImageUrl` | String | Yes | +| `ogImageVersions` | FileVersion | Yes | | `robots` | String | Yes | | `robotsSeededFrom` | JSON | Yes | | `siteId` | UUID | Yes | @@ -2277,13 +2307,13 @@ CRUD operations for PlatformSiteMetadatum records. ```typescript // List all platformSiteMetadatum records -const items = await db.platformSiteMetadatum.findMany({ select: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); +const items = await db.platformSiteMetadatum.findMany({ select: { appleTouchIcon: true, appleTouchIconUrl: true, appleTouchIconVersions: true, canonicalUrl: true, commitId: true, createdAt: true, description: true, favicon: true, faviconUrl: true, faviconVersions: true, id: true, logo: true, logoUrl: true, logoVersions: true, ogImage: true, ogImageUrl: true, ogImageVersions: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.platformSiteMetadatum.findOne({ id: '', select: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); +const item = await db.platformSiteMetadatum.findOne({ id: '', select: { appleTouchIcon: true, appleTouchIconUrl: true, appleTouchIconVersions: true, canonicalUrl: true, commitId: true, createdAt: true, description: true, favicon: true, faviconUrl: true, faviconVersions: true, id: true, logo: true, logoUrl: true, logoVersions: true, ogImage: true, ogImageUrl: true, ogImageVersions: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); // Create -const created = await db.platformSiteMetadatum.create({ data: { appleTouchIcon: '', canonicalUrl: '', commitId: '', description: '', favicon: '', logo: '', ogImage: '', robots: '', robotsSeededFrom: '', siteId: '', storeId: '', title: '' }, select: { id: true } }).execute(); +const created = await db.platformSiteMetadatum.create({ data: { appleTouchIcon: '', appleTouchIconUrl: '', appleTouchIconVersions: '', canonicalUrl: '', commitId: '', description: '', favicon: '', faviconUrl: '', faviconVersions: '', logo: '', logoUrl: '', logoVersions: '', ogImage: '', ogImageUrl: '', ogImageVersions: '', robots: '', robotsSeededFrom: '', siteId: '', storeId: '', title: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformSiteMetadatum.update({ where: { id: '' }, data: { appleTouchIcon: '' }, select: { id: true } }).execute(); @@ -2926,15 +2956,23 @@ CRUD operations for SiteMetadatum records. | Field | Type | Editable | |-------|------|----------| | `appleTouchIcon` | ConstructiveInternalTypeImage | Yes | +| `appleTouchIconUrl` | String | Yes | +| `appleTouchIconVersions` | FileVersion | Yes | | `canonicalUrl` | String | Yes | | `commitId` | UUID | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | | `description` | String | Yes | | `favicon` | ConstructiveInternalTypeImage | Yes | +| `faviconUrl` | String | Yes | +| `faviconVersions` | FileVersion | Yes | | `id` | UUID | No | | `logo` | ConstructiveInternalTypeImage | Yes | +| `logoUrl` | String | Yes | +| `logoVersions` | FileVersion | Yes | | `ogImage` | ConstructiveInternalTypeImage | Yes | +| `ogImageUrl` | String | Yes | +| `ogImageVersions` | FileVersion | Yes | | `robots` | String | Yes | | `robotsSeededFrom` | JSON | Yes | | `siteId` | UUID | Yes | @@ -2946,13 +2984,13 @@ CRUD operations for SiteMetadatum records. ```typescript // List all siteMetadatum records -const items = await db.siteMetadatum.findMany({ select: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, databaseId: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); +const items = await db.siteMetadatum.findMany({ select: { appleTouchIcon: true, appleTouchIconUrl: true, appleTouchIconVersions: true, canonicalUrl: true, commitId: true, createdAt: true, databaseId: true, description: true, favicon: true, faviconUrl: true, faviconVersions: true, id: true, logo: true, logoUrl: true, logoVersions: true, ogImage: true, ogImageUrl: true, ogImageVersions: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.siteMetadatum.findOne({ id: '', select: { appleTouchIcon: true, canonicalUrl: true, commitId: true, createdAt: true, databaseId: true, description: true, favicon: true, id: true, logo: true, ogImage: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); +const item = await db.siteMetadatum.findOne({ id: '', select: { appleTouchIcon: true, appleTouchIconUrl: true, appleTouchIconVersions: true, canonicalUrl: true, commitId: true, createdAt: true, databaseId: true, description: true, favicon: true, faviconUrl: true, faviconVersions: true, id: true, logo: true, logoUrl: true, logoVersions: true, ogImage: true, ogImageUrl: true, ogImageVersions: true, robots: true, robotsSeededFrom: true, siteId: true, storeId: true, title: true, updatedAt: true } }).execute(); // Create -const created = await db.siteMetadatum.create({ data: { appleTouchIcon: '', canonicalUrl: '', commitId: '', databaseId: '', description: '', favicon: '', logo: '', ogImage: '', robots: '', robotsSeededFrom: '', siteId: '', storeId: '', title: '' }, select: { id: true } }).execute(); +const created = await db.siteMetadatum.create({ data: { appleTouchIcon: '', appleTouchIconUrl: '', appleTouchIconVersions: '', canonicalUrl: '', commitId: '', databaseId: '', description: '', favicon: '', faviconUrl: '', faviconVersions: '', logo: '', logoUrl: '', logoVersions: '', ogImage: '', ogImageUrl: '', ogImageVersions: '', robots: '', robotsSeededFrom: '', siteId: '', storeId: '', title: '' }, select: { id: true } }).execute(); // Update const updated = await db.siteMetadatum.update({ where: { id: '' }, data: { appleTouchIcon: '' }, select: { id: true } }).execute(); @@ -3181,9 +3219,6 @@ const items = await db.sqlAction.findMany({ select: { actionId: true, actionName // Get one by id const item = await db.sqlAction.findOne({ id: '', select: { actionId: true, actionName: true, actorId: true, content: true, createdAt: true, databaseId: true, deploy: true, deps: true, id: true, name: true, payload: true, revert: true, verify: true } }).execute(); -// Create -const created = await db.sqlAction.create({ data: { actionId: '', actionName: '', actorId: '', content: '', databaseId: '', deploy: '', deps: '', name: '', payload: '', revert: '', verify: '' }, select: { id: true } }).execute(); - // Update const updated = await db.sqlAction.update({ where: { id: '' }, data: { actionId: '' }, select: { id: true } }).execute(); @@ -3706,21 +3741,6 @@ const deleted = await db.webauthnSetting.delete({ where: { id: '' } }).exe ## Custom Operations -### `db.query.apiSchemaNames` - -apiSchemaNames - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `targetApiId` | UUID | - -```typescript -const result = await db.query.apiSchemaNames({ targetApiId: '' }).execute(); -``` - ### `db.query.applyRegistryDefaults` applyRegistryDefaults @@ -3891,54 +3911,6 @@ platformVerifySitePreviewToken const result = await db.query.platformVerifySitePreviewToken({ siteId: '', token: '' }).execute(); ``` -### `db.query.resolveDeepLink` - -resolveDeepLink - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `linkSlug` | String | - | `targetSiteId` | UUID | - -```typescript -const result = await db.query.resolveDeepLink({ linkSlug: '', targetSiteId: '' }).execute(); -``` - -### `db.query.resolveRoute` - -resolveRoute - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `requestHost` | String | - | `requestMethod` | String | - | `requestPath` | String | - -```typescript -const result = await db.query.resolveRoute({ requestHost: '', requestMethod: '', requestPath: '' }).execute(); -``` - -### `db.query.resolveSiteAppLinks` - -resolveSiteAppLinks - -- **Type:** query -- **Arguments:** - - | Argument | Type | - |----------|------| - | `targetSiteId` | UUID | - -```typescript -const result = await db.query.resolveSiteAppLinks({ targetSiteId: '' }).execute(); -``` - ### `db.query.sitesDeepLinkUrl` sitesDeepLinkUrl diff --git a/sdk/constructive-sdk/src/api/orm/index.ts b/sdk/constructive-sdk/src/api/orm/index.ts index 038b8785ac..eb190bc93d 100644 --- a/sdk/constructive-sdk/src/api/orm/index.ts +++ b/sdk/constructive-sdk/src/api/orm/index.ts @@ -54,6 +54,7 @@ import { PlatformEmailSiteIdentityModel } from './models/platformEmailSiteIdenti import { PlatformGetSitePreviewsRecordModel } from './models/platformGetSitePreviewsRecord'; import { PlatformManagedDomainModel } from './models/platformManagedDomain'; import { PlatformPageModel } from './models/platformPage'; +import { PlatformReservedSubdomainModel } from './models/platformReservedSubdomain'; import { PlatformSiteAppLinkModel } from './models/platformSiteAppLink'; import { PlatformSiteModel } from './models/platformSite'; import { PlatformSiteDeepLinkModel } from './models/platformSiteDeepLink'; @@ -179,6 +180,7 @@ export function createClient(config: OrmClientConfig) { platformGetSitePreviewsRecord: new PlatformGetSitePreviewsRecordModel(client), platformManagedDomain: new PlatformManagedDomainModel(client), platformPage: new PlatformPageModel(client), + platformReservedSubdomain: new PlatformReservedSubdomainModel(client), platformSiteAppLink: new PlatformSiteAppLinkModel(client), platformSite: new PlatformSiteModel(client), platformSiteDeepLink: new PlatformSiteDeepLinkModel(client), diff --git a/sdk/constructive-sdk/src/api/orm/input-types.ts b/sdk/constructive-sdk/src/api/orm/input-types.ts index f4e5da7908..775dc37d17 100644 --- a/sdk/constructive-sdk/src/api/orm/input-types.ts +++ b/sdk/constructive-sdk/src/api/orm/input-types.ts @@ -235,6 +235,7 @@ export type ApiExposureLevel = 'EXPOSABLE' | 'INTERNAL_ONLY' | 'NEVER_EXPOSE'; export type ObjectCategory = 'APP' | 'AUTH' | 'CAPABILITIES' | 'CORE' | 'MEMBERSHIPS' | 'MODULE'; // ============ Custom Scalar Types ============ export type ConstructiveInternalTypeImage = unknown; +export type FileVersion = unknown; /** API surfaces exposed by this scope; publication makes a surface bindable from other scopes */ // ============ Entity Types ============ export interface Api { @@ -245,8 +246,6 @@ export interface Api { createdAt?: string | null; /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; - /** Database this API surface serves */ - dbname?: string | null; id: string; /** Whether other scopes may see and route to this API surface */ isPublished?: boolean | null; @@ -254,6 +253,7 @@ export interface Api { name?: string | null; /** Authenticated role the API executes as */ roleName?: string | null; + serviceHostname?: string | null; updatedAt?: string | null; } /** Join table linking API surfaces to the metaschema schemas they expose */ @@ -281,8 +281,6 @@ export interface ApiSetting { enableBulk?: boolean | null; /** Override: enable connection filter (NULL = inherit from database_settings) */ enableConnectionFilter?: boolean | null; - /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ - enableDirectUploads?: boolean | null; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean | null; /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ @@ -412,8 +410,6 @@ export interface DatabaseSetting { enableBulk?: boolean | null; /** Enable connection filter (where argument) in the GraphQL API */ enableConnectionFilter?: boolean | null; - /** Enable direct (multipart) file upload mutations in the GraphQL API */ - enableDirectUploads?: boolean | null; /** Enable internationalization plugin (localeStrings field, translation table discovery) in the GraphQL API */ enableI18N?: boolean | null; /** Enable GraphQL schema introspection queries in the GraphQL API. A tenant may only ever lower a bound, so the stored default is the permissive end: turning introspection off is the opt-in. */ @@ -945,8 +941,6 @@ export interface PlatformApi { /** Module-specific configuration for this API surface */ config?: Record | null; createdAt?: string | null; - /** Database this API surface serves */ - dbname?: string | null; id: string; /** Whether other scopes may see and route to this API surface */ isPublished?: boolean | null; @@ -954,6 +948,7 @@ export interface PlatformApi { name?: string | null; /** Authenticated role the API executes as */ roleName?: string | null; + serviceHostname?: string | null; updatedAt?: string | null; } /** Join table linking API surfaces to the metaschema schemas they expose */ @@ -977,8 +972,6 @@ export interface PlatformApiSetting { enableBulk?: boolean | null; /** Override: enable connection filter (NULL = inherit from database_settings) */ enableConnectionFilter?: boolean | null; - /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ - enableDirectUploads?: boolean | null; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean | null; /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ @@ -1229,6 +1222,20 @@ export interface PlatformPage { /** Timestamp of last modification */ updatedAt?: string | null; } +/** Subdomain labels no tenant may claim under a platform apex */ +export interface PlatformReservedSubdomain { + createdAt?: string | null; + createdByPrincipal?: string | null; + id: string; + /** Lowercase subdomain label, or the label prefix/suffix the match names */ + label?: string | null; + /** How the label matches a claimed label: exact, prefix or suffix */ + match?: string | null; + /** Why the label is reserved (free text, e.g. platform, brand, lookalike) */ + reason?: string | null; + updatedAt?: string | null; + updatedByPrincipal?: string | null; +} /** Per-host native-app association for a site surface: which app-owned store identity this host serves, and the path patterns it claims (joined with the store identity to render AASA / assetlinks.json) */ export interface PlatformSiteAppLink { /** App-owned store identity this association serves (app_store_identities row in this scope's app plane; the association carries no store facts of its own) */ @@ -1305,6 +1312,10 @@ export interface PlatformSiteErrorPage { export interface PlatformSiteMetadatum { /** Apple touch icon image (home-screen bookmark) */ appleTouchIcon?: ConstructiveInternalTypeImage | null; + /** URL to fetch `appleTouchIcon`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + appleTouchIconUrl?: string | null; + /** The versions rendered beside `appleTouchIcon`, narrowest first, each with a URL. Empty when there are none. */ + appleTouchIconVersions?: FileVersion[] | null; /** Canonical URL emitted in for this site */ canonicalUrl?: string | null; /** Infra store commit for the current content (stamped by the versioned trigger on every write) */ @@ -1314,11 +1325,23 @@ export interface PlatformSiteMetadatum { description?: string | null; /** Site favicon image */ favicon?: ConstructiveInternalTypeImage | null; + /** URL to fetch `favicon`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + faviconUrl?: string | null; + /** The versions rendered beside `favicon`, narrowest first, each with a URL. Empty when there are none. */ + faviconVersions?: FileVersion[] | null; id: string; /** Primary site logo image */ logo?: ConstructiveInternalTypeImage | null; + /** URL to fetch `logo`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + logoUrl?: string | null; + /** The versions rendered beside `logo`, narrowest first, each with a URL. Empty when there are none. */ + logoVersions?: FileVersion[] | null; /** Open Graph image used when sharing site links */ ogImage?: ConstructiveInternalTypeImage | null; + /** URL to fetch `ogImage`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + ogImageUrl?: string | null; + /** The versions rendered beside `ogImage`, narrowest first, each with a URL. Empty when there are none. */ + ogImageVersions?: FileVersion[] | null; /** robots meta directive (e.g. index,follow / noindex,nofollow) */ robots?: string | null; /** Provenance of the robots value: the content preset (kind, slug, catalog commit_id) an install applied, or NULL when it was authored directly */ @@ -1645,6 +1668,10 @@ export interface SiteErrorPage { export interface SiteMetadatum { /** Apple touch icon image (home-screen bookmark) */ appleTouchIcon?: ConstructiveInternalTypeImage | null; + /** URL to fetch `appleTouchIcon`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + appleTouchIconUrl?: string | null; + /** The versions rendered beside `appleTouchIcon`, narrowest first, each with a URL. Empty when there are none. */ + appleTouchIconVersions?: FileVersion[] | null; /** Canonical URL emitted in for this site */ canonicalUrl?: string | null; /** Infra store commit for the current content (stamped by the versioned trigger on every write) */ @@ -1656,11 +1683,23 @@ export interface SiteMetadatum { description?: string | null; /** Site favicon image */ favicon?: ConstructiveInternalTypeImage | null; + /** URL to fetch `favicon`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + faviconUrl?: string | null; + /** The versions rendered beside `favicon`, narrowest first, each with a URL. Empty when there are none. */ + faviconVersions?: FileVersion[] | null; id: string; /** Primary site logo image */ logo?: ConstructiveInternalTypeImage | null; + /** URL to fetch `logo`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + logoUrl?: string | null; + /** The versions rendered beside `logo`, narrowest first, each with a URL. Empty when there are none. */ + logoVersions?: FileVersion[] | null; /** Open Graph image used when sharing site links */ ogImage?: ConstructiveInternalTypeImage | null; + /** URL to fetch `ogImage`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + ogImageUrl?: string | null; + /** The versions rendered beside `ogImage`, narrowest first, each with a URL. Empty when there are none. */ + ogImageVersions?: FileVersion[] | null; /** robots meta directive (e.g. index,follow / noindex,nofollow) */ robots?: string | null; /** Provenance of the robots value: the content preset (kind, slug, catalog commit_id) an install applied, or NULL when it was authored directly */ @@ -2203,6 +2242,7 @@ export interface PlatformManagedDomainRelations { export interface PlatformPageRelations { site?: PlatformSite | null; } +export interface PlatformReservedSubdomainRelations {} export interface PlatformSiteAppLinkRelations { site?: PlatformSite | null; } @@ -2490,6 +2530,8 @@ export type PlatformGetSitePreviewsRecordWithRelations = PlatformGetSitePreviews export type PlatformManagedDomainWithRelations = PlatformManagedDomain & PlatformManagedDomainRelations; export type PlatformPageWithRelations = PlatformPage & PlatformPageRelations; +export type PlatformReservedSubdomainWithRelations = PlatformReservedSubdomain & + PlatformReservedSubdomainRelations; export type PlatformSiteAppLinkWithRelations = PlatformSiteAppLink & PlatformSiteAppLinkRelations; export type PlatformSiteWithRelations = PlatformSite & PlatformSiteRelations; export type PlatformSiteDeepLinkWithRelations = PlatformSiteDeepLink & @@ -2543,11 +2585,11 @@ export type ApiSelect = { config?: boolean; createdAt?: boolean; databaseId?: boolean; - dbname?: boolean; id?: boolean; isPublished?: boolean; name?: boolean; roleName?: boolean; + serviceHostname?: boolean; updatedAt?: boolean; apiSetting?: { select: ApiSettingSelect; @@ -2586,7 +2628,6 @@ export type ApiSettingSelect = { enableAggregates?: boolean; enableBulk?: boolean; enableConnectionFilter?: boolean; - enableDirectUploads?: boolean; enableI18N?: boolean; enableIntrospection?: boolean; enableLlm?: boolean; @@ -2905,7 +2946,6 @@ export type DatabaseSettingSelect = { enableBilling?: boolean; enableBulk?: boolean; enableConnectionFilter?: boolean; - enableDirectUploads?: boolean; enableI18N?: boolean; enableIntrospection?: boolean; enableLlm?: boolean; @@ -3547,11 +3587,11 @@ export type PlatformApiSelect = { anonRole?: boolean; config?: boolean; createdAt?: boolean; - dbname?: boolean; id?: boolean; isPublished?: boolean; name?: boolean; roleName?: boolean; + serviceHostname?: boolean; updatedAt?: boolean; platformApiSettingByApiId?: { select: PlatformApiSettingSelect; @@ -3585,7 +3625,6 @@ export type PlatformApiSettingSelect = { enableAggregates?: boolean; enableBulk?: boolean; enableConnectionFilter?: boolean; - enableDirectUploads?: boolean; enableI18N?: boolean; enableIntrospection?: boolean; enableLlm?: boolean; @@ -3802,6 +3841,16 @@ export type PlatformPageSelect = { select: PlatformSiteSelect; }; }; +export type PlatformReservedSubdomainSelect = { + createdAt?: boolean; + createdByPrincipal?: boolean; + id?: boolean; + label?: boolean; + match?: boolean; + reason?: boolean; + updatedAt?: boolean; + updatedByPrincipal?: boolean; +}; export type PlatformSiteAppLinkSelect = { appStoreIdentityId?: boolean; createdAt?: boolean; @@ -3906,14 +3955,42 @@ export type PlatformSiteErrorPageSelect = { }; export type PlatformSiteMetadatumSelect = { appleTouchIcon?: boolean; + appleTouchIconUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + appleTouchIconVersions?: boolean; canonicalUrl?: boolean; commitId?: boolean; createdAt?: boolean; description?: boolean; favicon?: boolean; + faviconUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + faviconVersions?: boolean; id?: boolean; logo?: boolean; + logoUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + logoVersions?: boolean; ogImage?: boolean; + ogImageUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + ogImageVersions?: boolean; robots?: boolean; robotsSeededFrom?: boolean; siteId?: boolean; @@ -4357,15 +4434,43 @@ export type SiteErrorPageSelect = { }; export type SiteMetadatumSelect = { appleTouchIcon?: boolean; + appleTouchIconUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + appleTouchIconVersions?: boolean; canonicalUrl?: boolean; commitId?: boolean; createdAt?: boolean; databaseId?: boolean; description?: boolean; favicon?: boolean; + faviconUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + faviconVersions?: boolean; id?: boolean; logo?: boolean; + logoUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + logoVersions?: boolean; ogImage?: boolean; + ogImageUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + ogImageVersions?: boolean; robots?: boolean; robotsSeededFrom?: boolean; siteId?: boolean; @@ -4949,8 +5054,6 @@ export interface ApiFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isPublished` field. */ @@ -5007,8 +5110,6 @@ export interface ApiSettingFilter { enableBulk?: BooleanFilter; /** Filter by the object’s `enableConnectionFilter` field. */ enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; /** Filter by the object’s `enableIntrospection` field. */ @@ -5373,8 +5474,6 @@ export interface DatabaseSettingFilter { enableBulk?: BooleanFilter; /** Filter by the object’s `enableConnectionFilter` field. */ enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; /** Filter by the object’s `enableIntrospection` field. */ @@ -6478,8 +6577,6 @@ export interface PlatformApiFilter { config?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isPublished` field. */ @@ -6544,8 +6641,6 @@ export interface PlatformApiSettingFilter { enableBulk?: BooleanFilter; /** Filter by the object’s `enableConnectionFilter` field. */ enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; /** Filter by the object’s `enableIntrospection` field. */ @@ -6936,6 +7031,30 @@ export interface PlatformPageFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; } +export interface PlatformReservedSubdomainFilter { + /** Checks for all expressions in this list. */ + and?: PlatformReservedSubdomainFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `match` field. */ + match?: StringFilter; + /** Negates the expression. */ + not?: PlatformReservedSubdomainFilter; + /** Checks for any expressions in this list. */ + or?: PlatformReservedSubdomainFilter[]; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} export interface PlatformSiteAppLinkFilter { /** Checks for all expressions in this list. */ and?: PlatformSiteAppLinkFilter[]; @@ -8650,8 +8769,6 @@ export type ApiOrderBy = | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'DBNAME_ASC' - | 'DBNAME_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_PUBLISHED_ASC' @@ -8694,8 +8811,6 @@ export type ApiSettingOrderBy = | 'ENABLE_BULK_DESC' | 'ENABLE_CONNECTION_FILTER_ASC' | 'ENABLE_CONNECTION_FILTER_DESC' - | 'ENABLE_DIRECT_UPLOADS_ASC' - | 'ENABLE_DIRECT_UPLOADS_DESC' | 'ENABLE_I18N_ASC' | 'ENABLE_I18N_DESC' | 'ENABLE_INTROSPECTION_ASC' @@ -8886,8 +9001,6 @@ export type DatabaseSettingOrderBy = | 'ENABLE_BULK_DESC' | 'ENABLE_CONNECTION_FILTER_ASC' | 'ENABLE_CONNECTION_FILTER_DESC' - | 'ENABLE_DIRECT_UPLOADS_ASC' - | 'ENABLE_DIRECT_UPLOADS_DESC' | 'ENABLE_I18N_ASC' | 'ENABLE_I18N_DESC' | 'ENABLE_INTROSPECTION_ASC' @@ -9726,8 +9839,6 @@ export type PlatformApiOrderBy = | 'CONFIG_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'DBNAME_ASC' - | 'DBNAME_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_PUBLISHED_ASC' @@ -9766,8 +9877,6 @@ export type PlatformApiSettingOrderBy = | 'ENABLE_BULK_DESC' | 'ENABLE_CONNECTION_FILTER_ASC' | 'ENABLE_CONNECTION_FILTER_DESC' - | 'ENABLE_DIRECT_UPLOADS_ASC' - | 'ENABLE_DIRECT_UPLOADS_DESC' | 'ENABLE_I18N_ASC' | 'ENABLE_I18N_DESC' | 'ENABLE_INTROSPECTION_ASC' @@ -10063,6 +10172,26 @@ export type PlatformPageOrderBy = | 'STORE_ID_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type PlatformReservedSubdomainOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'MATCH_ASC' + | 'MATCH_DESC' + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REASON_ASC' + | 'REASON_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type PlatformSiteAppLinkOrderBy = | 'APP_STORE_IDENTITY_ID_ASC' | 'APP_STORE_IDENTITY_ID_DESC' @@ -11144,7 +11273,6 @@ export interface CreateApiInput { anonRole?: string; config?: Record; databaseId: string; - dbname?: string; isPublished?: boolean; name: string; roleName?: string; @@ -11154,7 +11282,6 @@ export interface ApiPatch { anonRole?: string | null; config?: Record | null; databaseId?: string | null; - dbname?: string | null; isPublished?: boolean | null; name?: string | null; roleName?: string | null; @@ -11198,7 +11325,6 @@ export interface CreateApiSettingInput { enableAggregates?: boolean; enableBulk?: boolean; enableConnectionFilter?: boolean; - enableDirectUploads?: boolean; enableI18N?: boolean; enableIntrospection?: boolean; enableLlm?: boolean; @@ -11228,7 +11354,6 @@ export interface ApiSettingPatch { enableAggregates?: boolean | null; enableBulk?: boolean | null; enableConnectionFilter?: boolean | null; - enableDirectUploads?: boolean | null; enableI18N?: boolean | null; enableIntrospection?: boolean | null; enableLlm?: boolean | null; @@ -11260,22 +11385,6 @@ export interface DeleteApiSettingInput { clientMutationId?: string; id: string; } -export interface CreateAstMigrationInput { - clientMutationId?: string; - astMigration: { - actionId: string; - actionName?: string; - actorId: string; - databaseId: string; - deploy?: Record; - deploys?: string; - name?: string; - payload?: Record; - requires?: string[]; - revert?: Record; - verify?: Record; - }; -} export interface AstMigrationPatch { actionId?: string | null; actionName?: string | null; @@ -11428,7 +11537,6 @@ export interface CreateDatabaseSettingInput { enableBilling?: boolean; enableBulk?: boolean; enableConnectionFilter?: boolean; - enableDirectUploads?: boolean; enableI18N?: boolean; enableIntrospection?: boolean; enableLlm?: boolean; @@ -11461,7 +11569,6 @@ export interface DatabaseSettingPatch { enableBilling?: boolean | null; enableBulk?: boolean | null; enableConnectionFilter?: boolean | null; - enableDirectUploads?: boolean | null; enableI18N?: boolean | null; enableIntrospection?: boolean | null; enableLlm?: boolean | null; @@ -12214,13 +12321,6 @@ export interface DeleteFunctionInput { clientMutationId?: string; id: string; } -export interface CreateGetSitePreviewsRecordInput { - clientMutationId?: string; - getSitePreviewsRecord: { - commitId: string; - name?: string; - }; -} export interface GetSitePreviewsRecordPatch { commitId?: string | null; name?: string | null; @@ -12312,15 +12412,6 @@ export interface DeleteIndexInput { clientMutationId?: string; id: string; } -export interface CreateListSuspendedDatabasesRecordInput { - clientMutationId?: string; - listSuspendedDatabasesRecord: { - name?: string; - ownerId: string; - suspendedAt?: string; - suspendedReason?: string; - }; -} export interface ListSuspendedDatabasesRecordPatch { name?: string | null; ownerId?: string | null; @@ -12479,7 +12570,6 @@ export interface CreatePlatformApiInput { platformApi: { anonRole?: string; config?: Record; - dbname?: string; isPublished?: boolean; name: string; roleName?: string; @@ -12488,7 +12578,6 @@ export interface CreatePlatformApiInput { export interface PlatformApiPatch { anonRole?: string | null; config?: Record | null; - dbname?: string | null; isPublished?: boolean | null; name?: string | null; roleName?: string | null; @@ -12529,7 +12618,6 @@ export interface CreatePlatformApiSettingInput { enableAggregates?: boolean; enableBulk?: boolean; enableConnectionFilter?: boolean; - enableDirectUploads?: boolean; enableI18N?: boolean; enableIntrospection?: boolean; enableLlm?: boolean; @@ -12558,7 +12646,6 @@ export interface PlatformApiSettingPatch { enableAggregates?: boolean | null; enableBulk?: boolean | null; enableConnectionFilter?: boolean | null; - enableDirectUploads?: boolean | null; enableI18N?: boolean | null; enableIntrospection?: boolean | null; enableLlm?: boolean | null; @@ -12814,13 +12901,6 @@ export interface DeletePlatformEmailSiteIdentityInput { clientMutationId?: string; id: string; } -export interface CreatePlatformGetSitePreviewsRecordInput { - clientMutationId?: string; - platformGetSitePreviewsRecord: { - commitId: string; - name?: string; - }; -} export interface PlatformGetSitePreviewsRecordPatch { commitId?: string | null; name?: string | null; @@ -12902,6 +12982,32 @@ export interface DeletePlatformPageInput { clientMutationId?: string; id: string; } +export interface CreatePlatformReservedSubdomainInput { + clientMutationId?: string; + platformReservedSubdomain: { + createdByPrincipal?: string; + label: string; + match?: string; + reason?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformReservedSubdomainPatch { + createdByPrincipal?: string | null; + label?: string | null; + match?: string | null; + reason?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformReservedSubdomainInput { + clientMutationId?: string; + id: string; + platformReservedSubdomainPatch: PlatformReservedSubdomainPatch; +} +export interface DeletePlatformReservedSubdomainInput { + clientMutationId?: string; + id: string; +} export interface CreatePlatformSiteAppLinkInput { clientMutationId?: string; platformSiteAppLink: { @@ -13035,16 +13141,12 @@ export interface CreatePlatformSiteMetadatumInput { } export interface PlatformSiteMetadatumPatch { appleTouchIcon?: ConstructiveInternalTypeImage | null; - appleTouchIconUpload?: File | null; canonicalUrl?: string | null; commitId?: string | null; description?: string | null; favicon?: ConstructiveInternalTypeImage | null; - faviconUpload?: File | null; logo?: ConstructiveInternalTypeImage | null; - logoUpload?: File | null; ogImage?: ConstructiveInternalTypeImage | null; - ogImageUpload?: File | null; robots?: string | null; robotsSeededFrom?: Record | null; siteId?: string | null; @@ -13594,17 +13696,13 @@ export interface CreateSiteMetadatumInput { } export interface SiteMetadatumPatch { appleTouchIcon?: ConstructiveInternalTypeImage | null; - appleTouchIconUpload?: File | null; canonicalUrl?: string | null; commitId?: string | null; databaseId?: string | null; description?: string | null; favicon?: ConstructiveInternalTypeImage | null; - faviconUpload?: File | null; logo?: ConstructiveInternalTypeImage | null; - logoUpload?: File | null; ogImage?: ConstructiveInternalTypeImage | null; - ogImageUpload?: File | null; robots?: string | null; robotsSeededFrom?: Record | null; siteId?: string | null; @@ -13768,22 +13866,6 @@ export interface DeleteSpatialRelationInput { clientMutationId?: string; id: string; } -export interface CreateSqlActionInput { - clientMutationId?: string; - sqlAction: { - actionId: string; - actionName?: string; - actorId: string; - content?: string; - databaseId: string; - deploy?: string; - deps?: string[]; - name?: string; - payload?: Record; - revert?: string; - verify?: string; - }; -} export interface SqlActionPatch { actionId?: string | null; actionName?: string | null; @@ -15627,8 +15709,6 @@ export interface ApiInput { createdAt?: string; /** Database that owns this resource (database-scoped isolation) */ databaseId: string; - /** Database this API surface serves */ - dbname?: string; id?: string; /** Whether other scopes may see and route to this API surface */ isPublished?: boolean; @@ -15663,8 +15743,6 @@ export interface ApiSettingInput { enableBulk?: boolean; /** Override: enable connection filter (NULL = inherit from database_settings) */ enableConnectionFilter?: boolean; - /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ - enableDirectUploads?: boolean; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean; /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ @@ -15780,8 +15858,6 @@ export interface DatabaseSettingInput { enableBulk?: boolean; /** Enable connection filter (where argument) in the GraphQL API */ enableConnectionFilter?: boolean; - /** Enable direct (multipart) file upload mutations in the GraphQL API */ - enableDirectUploads?: boolean; /** Enable internationalization plugin (localeStrings field, translation table discovery) in the GraphQL API */ enableI18N?: boolean; /** Enable GraphQL schema introspection queries in the GraphQL API. A tenant may only ever lower a bound, so the stored default is the permissive end: turning introspection off is the opt-in. */ @@ -16319,8 +16395,6 @@ export interface PlatformApiInput { /** Module-specific configuration for this API surface */ config?: Record; createdAt?: string; - /** Database this API surface serves */ - dbname?: string; id?: string; /** Whether other scopes may see and route to this API surface */ isPublished?: boolean; @@ -16351,8 +16425,6 @@ export interface PlatformApiSettingInput { enableBulk?: boolean; /** Override: enable connection filter (NULL = inherit from database_settings) */ enableConnectionFilter?: boolean; - /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ - enableDirectUploads?: boolean; /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ enableI18N?: boolean; /** Override: enable GraphQL schema introspection queries (NULL = inherit from database_settings) */ @@ -16599,6 +16671,20 @@ export interface PlatformPageInput { /** Timestamp of last modification */ updatedAt?: string; } +/** An input for mutations affecting `PlatformReservedSubdomain` */ +export interface PlatformReservedSubdomainInput { + createdAt?: string; + createdByPrincipal?: string; + id?: string; + /** Lowercase subdomain label, or the label prefix/suffix the match names */ + label: string; + /** How the label matches a claimed label: exact, prefix or suffix */ + match?: string; + /** Why the label is reserved (free text, e.g. platform, brand, lookalike) */ + reason?: string; + updatedAt?: string; + updatedByPrincipal?: string; +} /** An input for mutations affecting `PlatformSiteAppLink` */ export interface PlatformSiteAppLinkInput { /** App-owned store identity this association serves (app_store_identities row in this scope's app plane; the association carries no store facts of its own) */ @@ -19675,8 +19761,6 @@ export interface ApiFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isPublished` field. */ @@ -20445,8 +20529,6 @@ export interface PlatformApiFilter { config?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `dbname` field. */ - dbname?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isPublished` field. */ @@ -20706,8 +20788,6 @@ export interface ApiSettingFilter { enableBulk?: BooleanFilter; /** Filter by the object’s `enableConnectionFilter` field. */ enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; /** Filter by the object’s `enableIntrospection` field. */ @@ -20874,8 +20954,6 @@ export interface PlatformApiSettingFilter { enableBulk?: BooleanFilter; /** Filter by the object’s `enableConnectionFilter` field. */ enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; /** Filter by the object’s `enableI18N` field. */ enableI18N?: BooleanFilter; /** Filter by the object’s `enableIntrospection` field. */ @@ -21069,44 +21147,6 @@ export interface BigIntFilter { notIn?: string[]; } // ============ Payload/Return Types (for custom operations) ============ -export interface ResolveRouteRecord { - domainId?: string | null; - hostname?: string | null; - matchedPath?: string | null; - matchedWildcard?: boolean | null; - method?: string | null; - priority?: number | null; - resolvedConfig?: Record | null; - routeBindingId?: string | null; - servingLane?: string | null; - targetCatalogId?: string | null; - targetModule?: string | null; - targetOwnerKey?: string | null; - targetOwnerScope?: string | null; - targetSourceId?: string | null; - tlsSecretName?: string | null; - tlsStatus?: string | null; - verificationStatus?: string | null; -} -export type ResolveRouteRecordSelect = { - domainId?: boolean; - hostname?: boolean; - matchedPath?: boolean; - matchedWildcard?: boolean; - method?: boolean; - priority?: boolean; - resolvedConfig?: boolean; - routeBindingId?: boolean; - servingLane?: boolean; - targetCatalogId?: boolean; - targetModule?: boolean; - targetOwnerKey?: boolean; - targetOwnerScope?: boolean; - targetSourceId?: boolean; - tlsSecretName?: boolean; - tlsStatus?: boolean; - verificationStatus?: boolean; -}; export interface AcceptDatabaseTransferPayload { clientMutationId?: string | null; result?: boolean | null; @@ -23421,6 +23461,51 @@ export type DeletePlatformPagePayloadSelect = { select: PlatformPageEdgeSelect; }; }; +export interface CreatePlatformReservedSubdomainPayload { + clientMutationId?: string | null; + /** The `PlatformReservedSubdomain` that was created by this mutation. */ + platformReservedSubdomain?: PlatformReservedSubdomain | null; + platformReservedSubdomainEdge?: PlatformReservedSubdomainEdge | null; +} +export type CreatePlatformReservedSubdomainPayloadSelect = { + clientMutationId?: boolean; + platformReservedSubdomain?: { + select: PlatformReservedSubdomainSelect; + }; + platformReservedSubdomainEdge?: { + select: PlatformReservedSubdomainEdgeSelect; + }; +}; +export interface UpdatePlatformReservedSubdomainPayload { + clientMutationId?: string | null; + /** The `PlatformReservedSubdomain` that was updated by this mutation. */ + platformReservedSubdomain?: PlatformReservedSubdomain | null; + platformReservedSubdomainEdge?: PlatformReservedSubdomainEdge | null; +} +export type UpdatePlatformReservedSubdomainPayloadSelect = { + clientMutationId?: boolean; + platformReservedSubdomain?: { + select: PlatformReservedSubdomainSelect; + }; + platformReservedSubdomainEdge?: { + select: PlatformReservedSubdomainEdgeSelect; + }; +}; +export interface DeletePlatformReservedSubdomainPayload { + clientMutationId?: string | null; + /** The `PlatformReservedSubdomain` that was deleted by this mutation. */ + platformReservedSubdomain?: PlatformReservedSubdomain | null; + platformReservedSubdomainEdge?: PlatformReservedSubdomainEdge | null; +} +export type DeletePlatformReservedSubdomainPayloadSelect = { + clientMutationId?: boolean; + platformReservedSubdomain?: { + select: PlatformReservedSubdomainSelect; + }; + platformReservedSubdomainEdge?: { + select: PlatformReservedSubdomainEdgeSelect; + }; +}; export interface CreatePlatformSiteAppLinkPayload { clientMutationId?: string | null; /** The `PlatformSiteAppLink` that was created by this mutation. */ @@ -25929,6 +26014,18 @@ export type PlatformPageEdgeSelect = { select: PlatformPageSelect; }; }; +/** A `PlatformReservedSubdomain` edge in the connection. */ +export interface PlatformReservedSubdomainEdge { + cursor?: string | null; + /** The `PlatformReservedSubdomain` at the end of the edge. */ + node?: PlatformReservedSubdomain | null; +} +export type PlatformReservedSubdomainEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformReservedSubdomainSelect; + }; +}; /** A `PlatformSiteAppLink` edge in the connection. */ export interface PlatformSiteAppLinkEdge { cursor?: string | null; diff --git a/sdk/constructive-sdk/src/api/orm/models/astMigration.ts b/sdk/constructive-sdk/src/api/orm/models/astMigration.ts index bfcc5f455a..ca429d54b2 100644 --- a/sdk/constructive-sdk/src/api/orm/models/astMigration.ts +++ b/sdk/constructive-sdk/src/api/orm/models/astMigration.ts @@ -29,7 +29,6 @@ import type { AstMigrationSelect, AstMigrationFilter, AstMigrationOrderBy, - CreateAstMigrationInput, UpdateAstMigrationInput, AstMigrationPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class AstMigrationModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAstMigration: { - astMigration: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AstMigration', - 'createAstMigration', - 'astMigration', - args.select, - args.data, - 'CreateAstMigrationInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AstMigration', - fieldName: 'createAstMigration', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/api/orm/models/getSitePreviewsRecord.ts b/sdk/constructive-sdk/src/api/orm/models/getSitePreviewsRecord.ts index dc2c778221..9c58fd8f10 100644 --- a/sdk/constructive-sdk/src/api/orm/models/getSitePreviewsRecord.ts +++ b/sdk/constructive-sdk/src/api/orm/models/getSitePreviewsRecord.ts @@ -29,7 +29,6 @@ import type { GetSitePreviewsRecordSelect, GetSitePreviewsRecordFilter, GetSitePreviewsRecordsOrderBy, - CreateGetSitePreviewsRecordInput, UpdateGetSitePreviewsRecordInput, GetSitePreviewsRecordPatch, } from '../input-types'; @@ -104,31 +103,4 @@ export class GetSitePreviewsRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createGetSitePreviewsRecord: { - getSitePreviewsRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'GetSitePreviewsRecord', - 'createGetSitePreviewsRecord', - 'getSitePreviewsRecord', - args.select, - args.data, - 'CreateGetSitePreviewsRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'GetSitePreviewsRecord', - fieldName: 'createGetSitePreviewsRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/api/orm/models/index.ts b/sdk/constructive-sdk/src/api/orm/models/index.ts index 207f507c84..3cd2ba5b52 100644 --- a/sdk/constructive-sdk/src/api/orm/models/index.ts +++ b/sdk/constructive-sdk/src/api/orm/models/index.ts @@ -52,6 +52,7 @@ export { PlatformEmailSiteIdentityModel } from './platformEmailSiteIdentity'; export { PlatformGetSitePreviewsRecordModel } from './platformGetSitePreviewsRecord'; export { PlatformManagedDomainModel } from './platformManagedDomain'; export { PlatformPageModel } from './platformPage'; +export { PlatformReservedSubdomainModel } from './platformReservedSubdomain'; export { PlatformSiteAppLinkModel } from './platformSiteAppLink'; export { PlatformSiteModel } from './platformSite'; export { PlatformSiteDeepLinkModel } from './platformSiteDeepLink'; diff --git a/sdk/constructive-sdk/src/api/orm/models/listSuspendedDatabasesRecord.ts b/sdk/constructive-sdk/src/api/orm/models/listSuspendedDatabasesRecord.ts index d479aad622..49858b365a 100644 --- a/sdk/constructive-sdk/src/api/orm/models/listSuspendedDatabasesRecord.ts +++ b/sdk/constructive-sdk/src/api/orm/models/listSuspendedDatabasesRecord.ts @@ -29,7 +29,6 @@ import type { ListSuspendedDatabasesRecordSelect, ListSuspendedDatabasesRecordFilter, ListSuspendedDatabasesRecordsOrderBy, - CreateListSuspendedDatabasesRecordInput, UpdateListSuspendedDatabasesRecordInput, ListSuspendedDatabasesRecordPatch, } from '../input-types'; @@ -160,31 +159,4 @@ export class ListSuspendedDatabasesRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createListSuspendedDatabasesRecord: { - listSuspendedDatabasesRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ListSuspendedDatabasesRecord', - 'createListSuspendedDatabasesRecord', - 'listSuspendedDatabasesRecord', - args.select, - args.data, - 'CreateListSuspendedDatabasesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ListSuspendedDatabasesRecord', - fieldName: 'createListSuspendedDatabasesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/api/orm/models/platformGetSitePreviewsRecord.ts b/sdk/constructive-sdk/src/api/orm/models/platformGetSitePreviewsRecord.ts index b2282eaa16..e037d0890f 100644 --- a/sdk/constructive-sdk/src/api/orm/models/platformGetSitePreviewsRecord.ts +++ b/sdk/constructive-sdk/src/api/orm/models/platformGetSitePreviewsRecord.ts @@ -29,7 +29,6 @@ import type { PlatformGetSitePreviewsRecordSelect, PlatformGetSitePreviewsRecordFilter, PlatformGetSitePreviewsRecordsOrderBy, - CreatePlatformGetSitePreviewsRecordInput, UpdatePlatformGetSitePreviewsRecordInput, PlatformGetSitePreviewsRecordPatch, } from '../input-types'; @@ -117,37 +116,4 @@ export class PlatformGetSitePreviewsRecordModel { }), }); } - create( - args: CreateArgs< - S, - CreatePlatformGetSitePreviewsRecordInput['platformGetSitePreviewsRecord'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformGetSitePreviewsRecord: { - platformGetSitePreviewsRecord: InferSelectResult< - PlatformGetSitePreviewsRecordWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformGetSitePreviewsRecord', - 'createPlatformGetSitePreviewsRecord', - 'platformGetSitePreviewsRecord', - args.select, - args.data, - 'CreatePlatformGetSitePreviewsRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformGetSitePreviewsRecord', - fieldName: 'createPlatformGetSitePreviewsRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/api/orm/models/platformReservedSubdomain.ts b/sdk/constructive-sdk/src/api/orm/models/platformReservedSubdomain.ts new file mode 100644 index 0000000000..ab3f3b97e5 --- /dev/null +++ b/sdk/constructive-sdk/src/api/orm/models/platformReservedSubdomain.ts @@ -0,0 +1,247 @@ +/** + * PlatformReservedSubdomain model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformReservedSubdomain, + PlatformReservedSubdomainWithRelations, + PlatformReservedSubdomainSelect, + PlatformReservedSubdomainFilter, + PlatformReservedSubdomainOrderBy, + CreatePlatformReservedSubdomainInput, + UpdatePlatformReservedSubdomainInput, + PlatformReservedSubdomainPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformReservedSubdomainModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformReservedSubdomains: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformReservedSubdomain', + 'platformReservedSubdomains', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformReservedSubdomainFilter', + 'PlatformReservedSubdomainOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformReservedSubdomain', + fieldName: 'platformReservedSubdomains', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformReservedSubdomain: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformReservedSubdomain', + 'platformReservedSubdomains', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformReservedSubdomainFilter', + 'PlatformReservedSubdomainOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformReservedSubdomain', + fieldName: 'platformReservedSubdomain', + document, + variables, + transform: (data: { + platformReservedSubdomains?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformReservedSubdomain: data.platformReservedSubdomains?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformReservedSubdomain: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformReservedSubdomain', + 'platformReservedSubdomains', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformReservedSubdomainFilter', + 'PlatformReservedSubdomainOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformReservedSubdomain', + fieldName: 'platformReservedSubdomain', + document, + variables, + transform: (data: { + platformReservedSubdomains?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformReservedSubdomain: data.platformReservedSubdomains?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformReservedSubdomain: { + platformReservedSubdomain: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformReservedSubdomain', + 'createPlatformReservedSubdomain', + 'platformReservedSubdomain', + args.select, + args.data, + 'CreatePlatformReservedSubdomainInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformReservedSubdomain', + fieldName: 'createPlatformReservedSubdomain', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformReservedSubdomainPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformReservedSubdomain: { + platformReservedSubdomain: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformReservedSubdomain', + 'updatePlatformReservedSubdomain', + 'platformReservedSubdomain', + args.select, + args.where.id, + args.data, + 'UpdatePlatformReservedSubdomainInput', + 'id', + 'platformReservedSubdomainPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformReservedSubdomain', + fieldName: 'updatePlatformReservedSubdomain', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformReservedSubdomain: { + platformReservedSubdomain: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformReservedSubdomain', + 'deletePlatformReservedSubdomain', + 'platformReservedSubdomain', + { + id: args.where.id, + }, + 'DeletePlatformReservedSubdomainInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformReservedSubdomain', + fieldName: 'deletePlatformReservedSubdomain', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/api/orm/models/sqlAction.ts b/sdk/constructive-sdk/src/api/orm/models/sqlAction.ts index 74b4418688..d9b77d8c06 100644 --- a/sdk/constructive-sdk/src/api/orm/models/sqlAction.ts +++ b/sdk/constructive-sdk/src/api/orm/models/sqlAction.ts @@ -29,7 +29,6 @@ import type { SqlActionSelect, SqlActionFilter, SqlActionOrderBy, - CreateSqlActionInput, UpdateSqlActionInput, SqlActionPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class SqlActionModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createSqlAction: { - sqlAction: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'SqlAction', - 'createSqlAction', - 'sqlAction', - args.select, - args.data, - 'CreateSqlActionInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'SqlAction', - fieldName: 'createSqlAction', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/api/orm/query/index.ts b/sdk/constructive-sdk/src/api/orm/query/index.ts index 12ea7b4e72..cfae605185 100644 --- a/sdk/constructive-sdk/src/api/orm/query/index.ts +++ b/sdk/constructive-sdk/src/api/orm/query/index.ts @@ -6,11 +6,7 @@ import { OrmClient } from '../client'; import { QueryBuilder, buildCustomDocument } from '../query-builder'; import type { InferSelectResult, StrictSelect } from '../select-types'; -import type { ResolveRouteRecord, ResolveRouteRecordSelect } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export interface ApiSchemaNamesVariables { - targetApiId?: string; -} export interface ApplyRegistryDefaultsVariables { data?: unknown; nodeType?: string; @@ -50,18 +46,6 @@ export interface PlatformVerifySitePreviewTokenVariables { siteId?: string; token?: string; } -export interface ResolveDeepLinkVariables { - linkSlug?: string; - targetSiteId?: string; -} -export interface ResolveRouteVariables { - requestHost?: string; - requestMethod?: string; - requestPath?: string; -} -export interface ResolveSiteAppLinksVariables { - targetSiteId?: string; -} export interface SitesDeepLinkUrlVariables { linkSlug?: string; targetSiteId?: string; @@ -75,35 +59,6 @@ export interface VerifySitePreviewTokenVariables { } export function createQueryOperations(client: OrmClient) { return { - apiSchemaNames: ( - args: ApiSchemaNamesVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - apiSchemaNames: unknown | null; - }>({ - client, - operation: 'query', - operationName: 'ApiSchemaNames', - fieldName: 'apiSchemaNames', - ...buildCustomDocument( - 'query', - 'ApiSchemaNames', - 'apiSchemaNames', - options?.select, - args, - [ - { - name: 'targetApiId', - type: 'UUID', - }, - ], - connectionFieldsMap, - undefined - ), - }), applyRegistryDefaults: ( args: ApplyRegistryDefaultsVariables, options?: { @@ -449,105 +404,6 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - resolveDeepLink: ( - args: ResolveDeepLinkVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - resolveDeepLink: unknown | null; - }>({ - client, - operation: 'query', - operationName: 'ResolveDeepLink', - fieldName: 'resolveDeepLink', - ...buildCustomDocument( - 'query', - 'ResolveDeepLink', - 'resolveDeepLink', - options?.select, - args, - [ - { - name: 'linkSlug', - type: 'String', - }, - { - name: 'targetSiteId', - type: 'UUID', - }, - ], - connectionFieldsMap, - undefined - ), - }), - resolveRoute: ( - args: ResolveRouteVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - resolveRoute: InferSelectResult | null; - }>({ - client, - operation: 'query', - operationName: 'ResolveRoute', - fieldName: 'resolveRoute', - ...buildCustomDocument( - 'query', - 'ResolveRoute', - 'resolveRoute', - options.select, - args, - [ - { - name: 'requestHost', - type: 'String', - }, - { - name: 'requestMethod', - type: 'String', - }, - { - name: 'requestPath', - type: 'String', - }, - ], - connectionFieldsMap, - 'ResolveRouteRecord' - ), - }), - resolveSiteAppLinks: ( - args: ResolveSiteAppLinksVariables, - options?: { - select?: Record; - } - ) => - new QueryBuilder<{ - resolveSiteAppLinks: unknown | null; - }>({ - client, - operation: 'query', - operationName: 'ResolveSiteAppLinks', - fieldName: 'resolveSiteAppLinks', - ...buildCustomDocument( - 'query', - 'ResolveSiteAppLinks', - 'resolveSiteAppLinks', - options?.select, - args, - [ - { - name: 'targetSiteId', - type: 'UUID', - }, - ], - connectionFieldsMap, - undefined - ), - }), sitesDeepLinkUrl: ( args: SitesDeepLinkUrlVariables, options?: { diff --git a/sdk/constructive-sdk/src/auth/README.md b/sdk/constructive-sdk/src/auth/README.md index 2a8205f6cc..c285ef49ff 100644 --- a/sdk/constructive-sdk/src/auth/README.md +++ b/sdk/constructive-sdk/src/auth/README.md @@ -9,8 +9,8 @@ ## Overview - **Tables:** 15 -- **Custom queries:** 6 -- **Custom mutations:** 55 +- **Custom queries:** 7 +- **Custom mutations:** 59 **Generators:** ORM diff --git a/sdk/constructive-sdk/src/auth/orm/README.md b/sdk/constructive-sdk/src/auth/orm/README.md index 954a86ca4c..b40e577322 100644 --- a/sdk/constructive-sdk/src/auth/orm/README.md +++ b/sdk/constructive-sdk/src/auth/orm/README.md @@ -24,14 +24,14 @@ const db = createClient({ | `auditLogAuth` | findMany, findOne, create, update, delete | | `cryptoAddress` | findMany, findOne, create, update, delete | | `email` | findMany, findOne, create, update, delete | -| `identityProvider` | findMany, findOne, create, update, delete | -| `orgApiKeyList` | findMany, findOne, create, update, delete | +| `identityProvider` | findMany, findOne, update, delete | +| `orgApiKeyList` | findMany, findOne, update, delete | | `phoneNumber` | findMany, findOne, create, update, delete | -| `principal` | findMany, findOne, create, update, delete | -| `principalEntity` | findMany, findOne, create, update, delete | -| `principalScopeOverride` | findMany, findOne, create, update, delete | +| `principal` | findMany, findOne, update, delete | +| `principalEntity` | findMany, findOne, update, delete | +| `principalScopeOverride` | findMany, findOne, update, delete | | `roleType` | findMany, findOne, create, update, delete | -| `userConnectedAccount` | findMany, findOne, create, update, delete | +| `userConnectedAccount` | findMany, findOne, update, delete | | `user` | findMany, findOne, create, update, delete | | `userSetting` | findMany, findOne, create, update, delete | | `userSettingsSecurity` | findMany, findOne, create, update, delete | @@ -170,9 +170,6 @@ const items = await db.identityProvider.findMany({ select: { displayName: true, // Get one by id const item = await db.identityProvider.findOne({ id: '', select: { displayName: true, enabled: true, kind: true, slug: true } }).execute(); -// Create -const created = await db.identityProvider.create({ data: { displayName: '', enabled: '', kind: '', slug: '' }, select: { id: true } }).execute(); - // Update const updated = await db.identityProvider.update({ where: { id: '' }, data: { displayName: '' }, select: { id: true } }).execute(); @@ -210,9 +207,6 @@ const items = await db.orgApiKeyList.findMany({ select: { accessLevel: true, cre // Get one by id const item = await db.orgApiKeyList.findOne({ id: '', select: { accessLevel: true, createdAt: true, expiresAt: true, id: true, keyId: true, lastUsedAt: true, mfaLevel: true, name: true, orgId: true, principalId: true, revokedAt: true, updatedAt: true } }).execute(); -// Create -const created = await db.orgApiKeyList.create({ data: { accessLevel: '', expiresAt: '', keyId: '', lastUsedAt: '', mfaLevel: '', name: '', orgId: '', principalId: '', revokedAt: '' }, select: { id: true } }).execute(); - // Update const updated = await db.orgApiKeyList.update({ where: { id: '' }, data: { accessLevel: '' }, select: { id: true } }).execute(); @@ -289,9 +283,6 @@ const items = await db.principal.findMany({ select: { apiKeyMaxDuration: true, b // Get one by principalId const item = await db.principal.findOne({ principalId: '', select: { apiKeyMaxDuration: true, bypassStepUp: true, createdAt: true, createdBySessionId: true, depth: true, expiresAt: true, id: true, isReadOnly: true, name: true, ownerId: true, parentPrincipalId: true, updatedAt: true, useAdminOwner: true, userId: true } }).execute(); -// Create -const created = await db.principal.create({ data: { apiKeyMaxDuration: '', bypassStepUp: '', createdBySessionId: '', depth: '', expiresAt: '', id: '', isReadOnly: '', name: '', ownerId: '', parentPrincipalId: '', useAdminOwner: '', userId: '' }, select: { principalId: true } }).execute(); - // Update const updated = await db.principal.update({ where: { principalId: '' }, data: { apiKeyMaxDuration: '' }, select: { principalId: true } }).execute(); @@ -323,9 +314,6 @@ const items = await db.principalEntity.findMany({ select: { createdAt: true, ent // Get one by id const item = await db.principalEntity.findOne({ id: '', select: { createdAt: true, entityId: true, id: true, ownerId: true, principalId: true, updatedAt: true } }).execute(); -// Create -const created = await db.principalEntity.create({ data: { entityId: '', ownerId: '', principalId: '' }, select: { id: true } }).execute(); - // Update const updated = await db.principalEntity.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); @@ -360,9 +348,6 @@ const items = await db.principalScopeOverride.findMany({ select: { allowedMask: // Get one by id const item = await db.principalScopeOverride.findOne({ id: '', select: { allowedMask: true, createdAt: true, id: true, isActive: true, isReadOnly: true, membershipType: true, principalId: true, updatedAt: true, useAdminOwner: true } }).execute(); -// Create -const created = await db.principalScopeOverride.create({ data: { allowedMask: '', isActive: '', isReadOnly: '', membershipType: '', principalId: '', useAdminOwner: '' }, select: { id: true } }).execute(); - // Update const updated = await db.principalScopeOverride.update({ where: { id: '' }, data: { allowedMask: '' }, select: { id: true } }).execute(); @@ -426,9 +411,6 @@ const items = await db.userConnectedAccount.findMany({ select: { createdAt: true // Get one by id const item = await db.userConnectedAccount.findOne({ id: '', select: { createdAt: true, details: true, id: true, identifier: true, isVerified: true, ownerId: true, service: true, updatedAt: true } }).execute(); -// Create -const created = await db.userConnectedAccount.create({ data: { details: '', identifier: '', isVerified: '', ownerId: '', service: '' }, select: { id: true } }).execute(); - // Update const updated = await db.userConnectedAccount.update({ where: { id: '' }, data: { details: '' }, select: { id: true } }).execute(); @@ -449,6 +431,8 @@ CRUD operations for User records. | `displayNameTrgmSimilarity` | Float | Yes | | `id` | UUID | No | | `profilePicture` | ConstructiveInternalTypeImage | Yes | +| `profilePictureUrl` | String | Yes | +| `profilePictureVersions` | FileVersion | Yes | | `searchScore` | Float | Yes | | `searchTsv` | FullText | Yes | | `searchTsvRank` | Float | Yes | @@ -460,13 +444,13 @@ CRUD operations for User records. ```typescript // List all user records -const items = await db.user.findMany({ select: { createdAt: true, displayName: true, displayNameTrgmSimilarity: true, id: true, profilePicture: true, searchScore: true, searchTsv: true, searchTsvRank: true, type: true, updatedAt: true, username: true } }).execute(); +const items = await db.user.findMany({ select: { createdAt: true, displayName: true, displayNameTrgmSimilarity: true, id: true, profilePicture: true, profilePictureUrl: true, profilePictureVersions: true, searchScore: true, searchTsv: true, searchTsvRank: true, type: true, updatedAt: true, username: true } }).execute(); // Get one by id -const item = await db.user.findOne({ id: '', select: { createdAt: true, displayName: true, displayNameTrgmSimilarity: true, id: true, profilePicture: true, searchScore: true, searchTsv: true, searchTsvRank: true, type: true, updatedAt: true, username: true } }).execute(); +const item = await db.user.findOne({ id: '', select: { createdAt: true, displayName: true, displayNameTrgmSimilarity: true, id: true, profilePicture: true, profilePictureUrl: true, profilePictureVersions: true, searchScore: true, searchTsv: true, searchTsvRank: true, type: true, updatedAt: true, username: true } }).execute(); // Create -const created = await db.user.create({ data: { displayName: '', displayNameTrgmSimilarity: '', profilePicture: '', searchScore: '', searchTsv: '', searchTsvRank: '', type: '', username: '' }, select: { id: true } }).execute(); +const created = await db.user.create({ data: { displayName: '', displayNameTrgmSimilarity: '', profilePicture: '', profilePictureUrl: '', profilePictureVersions: '', searchScore: '', searchTsv: '', searchTsvRank: '', type: '', username: '' }, select: { id: true } }).execute(); // Update const updated = await db.user.update({ where: { id: '' }, data: { displayName: '' }, select: { id: true } }).execute(); @@ -662,6 +646,17 @@ requireStepUp const result = await db.query.requireStepUp({ stepUpType: '' }).execute(); ``` +### `db.query.signInOptions` + +signInOptions + +- **Type:** query +- **Arguments:** none + +```typescript +const result = await db.query.signInOptions().execute(); +``` + ### `db.mutation.approveDevice` approveDevice @@ -739,7 +734,7 @@ const result = await db.mutation.confirmTotpSetup({ input: { totpValue: '', isReadOnly: '', name: '', orgId: '', useAdminOwner: '' } }).execute(); ``` +### `db.mutation.createPrincipal` + +createPrincipal + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CreatePrincipalInput (required) | + +```typescript +const result = await db.mutation.createPrincipal({ input: { bypassStepUp: '', entityIds: '', isReadOnly: '', name: '', useAdminOwner: '' } }).execute(); +``` + ### `db.mutation.createPrincipalFromPreset` createPrincipalFromPreset @@ -947,6 +957,36 @@ enableTotp const result = await db.mutation.enableTotp({ input: '' }).execute(); ``` +### `db.mutation.ensureAuthCsrf` + +ensureAuthCsrf + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | EnsureAuthCsrfInput (required) | + +```typescript +const result = await db.mutation.ensureAuthCsrf({ input: { existingToken: '' } }).execute(); +``` + +### `db.mutation.exchangeNativeHandoff` + +exchangeNativeHandoff + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ExchangeNativeHandoffInput (required) | + +```typescript +const result = await db.mutation.exchangeNativeHandoff({ input: { code: '', codeVerifier: '', credentialKind: '' } }).execute(); +``` + ### `db.mutation.extendTokenExpires` extendTokenExpires @@ -1072,6 +1112,21 @@ requestCrossOriginToken const result = await db.mutation.requestCrossOriginToken({ input: { email: '', origin: '', password: '', rememberMe: '' } }).execute(); ``` +### `db.mutation.requestDeviceApproval` + +requestDeviceApproval + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | RequestDeviceApprovalInput (required) | + +```typescript +const result = await db.mutation.requestDeviceApproval({ input: { deviceToken: '', next: '', userId: '' } }).execute(); +``` + ### `db.mutation.requestMagicLink` requestMagicLink @@ -1084,7 +1139,7 @@ requestMagicLink | `input` | RequestMagicLinkInput (required) | ```typescript -const result = await db.mutation.requestMagicLink({ input: { email: '', next: '' } }).execute(); +const result = await db.mutation.requestMagicLink({ input: { codeChallenge: '', email: '', nativeRedirectUri: '', next: '' } }).execute(); ``` ### `db.mutation.resetPassword` @@ -1249,7 +1304,7 @@ setPassword | `input` | SetPasswordInput (required) | ```typescript -const result = await db.mutation.setPassword({ input: { currentPassword: '', newPassword: '' } }).execute(); +const result = await db.mutation.setPassword({ input: { currentPassword: '', newPassword: '', signOutOtherSessions: '' } }).execute(); ``` ### `db.mutation.setPrincipalEntities` @@ -1429,7 +1484,7 @@ verifyEmail | `input` | VerifyEmailInput (required) | ```typescript -const result = await db.mutation.verifyEmail({ input: { emailId: '', token: '' } }).execute(); +const result = await db.mutation.verifyEmail({ input: { emailId: '', password: '', token: '' } }).execute(); ``` ### `db.mutation.verifyPassword` diff --git a/sdk/constructive-sdk/src/auth/orm/input-types.ts b/sdk/constructive-sdk/src/auth/orm/input-types.ts index f1489beef6..f46e6397da 100644 --- a/sdk/constructive-sdk/src/auth/orm/input-types.ts +++ b/sdk/constructive-sdk/src/auth/orm/input-types.ts @@ -235,6 +235,7 @@ export type Base64EncodedBinary = unknown; export type ConstructiveInternalTypeEmail = unknown; export type ConstructiveInternalTypeImage = unknown; export type ConstructiveInternalTypeOrigin = unknown; +export type FileVersion = unknown; /** Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) */ // ============ Entity Types ============ export interface AuditLogAuth { @@ -402,6 +403,10 @@ export interface User { displayNameTrgmSimilarity?: number | null; id: string; profilePicture?: ConstructiveInternalTypeImage | null; + /** URL to fetch `profilePicture`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + profilePictureUrl?: string | null; + /** The versions rendered beside `profilePicture`, narrowest first, each with a URL. Empty when there are none. */ + profilePictureVersions?: FileVersion[] | null; /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ searchScore?: number | null; searchTsv?: string | null; @@ -718,6 +723,13 @@ export type UserSelect = { displayNameTrgmSimilarity?: boolean; id?: boolean; profilePicture?: boolean; + profilePictureUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + profilePictureVersions?: boolean; searchScore?: boolean; searchTsv?: boolean; searchTsvRank?: boolean; @@ -1678,15 +1690,6 @@ export interface DeleteEmailInput { clientMutationId?: string; id: string; } -export interface CreateIdentityProviderInput { - clientMutationId?: string; - identityProvider: { - displayName?: string; - enabled?: boolean; - kind?: string; - slug?: string; - }; -} export interface IdentityProviderPatch { displayName?: string | null; enabled?: boolean | null; @@ -1702,20 +1705,6 @@ export interface DeleteIdentityProviderInput { clientMutationId?: string; id: string; } -export interface CreateOrgApiKeyListInput { - clientMutationId?: string; - orgApiKeyList: { - accessLevel?: string; - expiresAt?: string; - keyId: string; - lastUsedAt?: string; - mfaLevel?: string; - name?: string; - orgId: string; - principalId: string; - revokedAt?: string; - }; -} export interface OrgApiKeyListPatch { accessLevel?: string | null; expiresAt?: string | null; @@ -1764,22 +1753,6 @@ export interface DeletePhoneNumberInput { clientMutationId?: string; id: string; } -export interface CreatePrincipalInput { - clientMutationId?: string; - principal: { - apiKeyMaxDuration?: string; - bypassStepUp?: boolean; - createdBySessionId: string; - depth?: number; - expiresAt?: string; - isReadOnly?: boolean; - name?: string; - ownerId: string; - parentPrincipalId: string; - useAdminOwner?: boolean; - userId: string; - }; -} export interface PrincipalPatch { apiKeyMaxDuration?: string | null; bypassStepUp?: boolean | null; @@ -1802,14 +1775,6 @@ export interface DeletePrincipalInput { clientMutationId?: string; principalId: string; } -export interface CreatePrincipalEntityInput { - clientMutationId?: string; - principalEntity: { - entityId: string; - ownerId: string; - principalId: string; - }; -} export interface PrincipalEntityPatch { entityId?: string | null; ownerId?: string | null; @@ -1824,17 +1789,6 @@ export interface DeletePrincipalEntityInput { clientMutationId?: string; id: string; } -export interface CreatePrincipalScopeOverrideInput { - clientMutationId?: string; - principalScopeOverride: { - allowedMask?: string; - isActive?: boolean; - isReadOnly?: boolean; - membershipType?: number; - principalId: string; - useAdminOwner?: boolean; - }; -} export interface PrincipalScopeOverridePatch { allowedMask?: string | null; isActive?: boolean | null; @@ -1870,16 +1824,6 @@ export interface DeleteRoleTypeInput { clientMutationId?: string; id: number; } -export interface CreateUserConnectedAccountInput { - clientMutationId?: string; - userConnectedAccount: { - details?: Record; - identifier?: string; - isVerified?: boolean; - ownerId: string; - service?: string; - }; -} export interface UserConnectedAccountPatch { details?: Record | null; identifier?: string | null; @@ -1908,7 +1852,6 @@ export interface CreateUserInput { export interface UserPatch { displayName?: string | null; profilePicture?: ConstructiveInternalTypeImage | null; - profilePictureUpload?: File | null; type?: number | null; username?: string | null; } @@ -2088,6 +2031,14 @@ export interface CreateOrgPrincipalInput { orgId?: string; useAdminOwner?: boolean; } +export interface CreatePrincipalInput { + bypassStepUp?: boolean; + clientMutationId?: string; + entityIds?: string[]; + isReadOnly?: boolean; + name?: string; + useAdminOwner?: boolean; +} export interface CreatePrincipalFromPresetInput { clientMutationId?: string; entityIds?: string[]; @@ -2122,6 +2073,16 @@ export interface EnableSmsMfaInput { export interface EnableTotpInput { clientMutationId?: string; } +export interface EnsureAuthCsrfInput { + clientMutationId?: string; + existingToken?: string; +} +export interface ExchangeNativeHandoffInput { + clientMutationId?: string; + code?: string; + codeVerifier?: string; + credentialKind?: string; +} export interface ExtendTokenExpiresInput { amount?: IntervalInput; clientMutationId?: string; @@ -2135,7 +2096,7 @@ export interface GenerateBackupCodesInput { } export interface LinkIdentityInput { clientMutationId?: string; - ticket: string; + ticket?: string; } export interface MintAccessTokenInput { accessTtl?: IntervalInput; @@ -2163,9 +2124,17 @@ export interface RequestCrossOriginTokenInput { password?: string; rememberMe?: boolean; } +export interface RequestDeviceApprovalInput { + clientMutationId?: string; + deviceToken?: string; + next?: string; + userId?: string; +} export interface RequestMagicLinkInput { clientMutationId?: string; + codeChallenge?: string; email?: string; + nativeRedirectUri?: string; next?: string; } export interface ResetPasswordInput { @@ -2216,6 +2185,7 @@ export interface SetPasswordInput { clientMutationId?: string; currentPassword?: string; newPassword?: string; + signOutOtherSessions?: boolean; } export interface SetPrincipalEntitiesInput { clientMutationId?: string; @@ -2290,6 +2260,7 @@ export interface SignUpSmsInput { export interface VerifyEmailInput { clientMutationId?: string; emailId?: string; + password?: string; token?: string; } export interface VerifyPasswordInput { @@ -3644,6 +3615,46 @@ export type GetMfaStatusRecordSelect = { smsMfaEnabled?: boolean; totpEnabled?: boolean; }; +export interface SignInOptionsRecord { + allowAnonymousSessions?: boolean | null; + allowEmailOtpSignIn?: boolean | null; + allowIdentitySignIn?: boolean | null; + allowIdentitySignUp?: boolean | null; + allowMagicLinkSignIn?: boolean | null; + allowMagicLinkSignUp?: boolean | null; + allowPasswordSignIn?: boolean | null; + allowPasswordSignUp?: boolean | null; + allowSignUp?: boolean | null; + allowSmsSignIn?: boolean | null; + allowSmsSignUp?: boolean | null; + allowWebauthnSignIn?: boolean | null; + allowWebauthnSignUp?: boolean | null; + allowWebauthnUsernameless?: boolean | null; + enableCaptcha?: boolean | null; + identityProviders?: Record | null; + requireMfa?: boolean | null; + signUpRequiresInvite?: boolean | null; +} +export type SignInOptionsRecordSelect = { + allowAnonymousSessions?: boolean; + allowEmailOtpSignIn?: boolean; + allowIdentitySignIn?: boolean; + allowIdentitySignUp?: boolean; + allowMagicLinkSignIn?: boolean; + allowMagicLinkSignUp?: boolean; + allowPasswordSignIn?: boolean; + allowPasswordSignUp?: boolean; + allowSignUp?: boolean; + allowSmsSignIn?: boolean; + allowSmsSignUp?: boolean; + allowWebauthnSignIn?: boolean; + allowWebauthnSignUp?: boolean; + allowWebauthnUsernameless?: boolean; + enableCaptcha?: boolean; + identityProviders?: boolean; + requireMfa?: boolean; + signUpRequiresInvite?: boolean; +}; export interface ApproveDevicePayload { clientMutationId?: string | null; result?: boolean | null; @@ -3720,6 +3731,14 @@ export type CreateOrgPrincipalPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface CreatePrincipalPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type CreatePrincipalPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface CreatePrincipalFromPresetPayload { clientMutationId?: string | null; result?: string | null; @@ -3800,6 +3819,24 @@ export type EnableTotpPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface EnsureAuthCsrfPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type EnsureAuthCsrfPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ExchangeNativeHandoffPayload { + clientMutationId?: string | null; + result?: ExchangeNativeHandoffRecord | null; +} +export type ExchangeNativeHandoffPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: ExchangeNativeHandoffRecordSelect; + }; +}; export interface ExtendTokenExpiresPayload { clientMutationId?: string | null; result?: ExtendTokenExpiresRecord[] | null; @@ -3875,6 +3912,14 @@ export type RequestCrossOriginTokenPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface RequestDeviceApprovalPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type RequestDeviceApprovalPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface RequestMagicLinkPayload { clientMutationId?: string | null; } @@ -4285,14 +4330,6 @@ export type DeletePhoneNumberPayloadSelect = { select: PhoneNumberEdgeSelect; }; }; -export interface CreatePrincipalPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type CreatePrincipalPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; export interface CreateRoleTypePayload { clientMutationId?: string | null; /** The `RoleType` that was created by this mutation. */ @@ -4556,6 +4593,22 @@ export type CreateOrgApiKeyRecordSelect = { expiresAt?: boolean; keyId?: boolean; }; +export interface ExchangeNativeHandoffRecord { + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + id?: string | null; + isVerified?: boolean | null; + totpEnabled?: boolean | null; + userId?: string | null; +} +export type ExchangeNativeHandoffRecordSelect = { + accessToken?: boolean; + accessTokenExpiresAt?: boolean; + id?: boolean; + isVerified?: boolean; + totpEnabled?: boolean; + userId?: boolean; +}; export interface ExtendTokenExpiresRecord { expiresAt?: string | null; id?: string | null; @@ -4643,18 +4696,22 @@ export type SignInCrossOriginRecordSelect = { export interface SignInMagicLinkRecord { accessToken?: string | null; accessTokenExpiresAt?: string | null; + codeChallenge?: string | null; deviceApprovalRequired?: boolean | null; mfaChallengeToken?: string | null; mfaRequired?: boolean | null; + nativeRedirectUri?: string | null; outDeviceToken?: string | null; userId?: string | null; } export type SignInMagicLinkRecordSelect = { accessToken?: boolean; accessTokenExpiresAt?: boolean; + codeChallenge?: boolean; deviceApprovalRequired?: boolean; mfaChallengeToken?: boolean; mfaRequired?: boolean; + nativeRedirectUri?: boolean; outDeviceToken?: boolean; userId?: boolean; }; @@ -4679,12 +4736,16 @@ export type SignInSmsOtpRecordSelect = { export interface SignUpMagicLinkRecord { accessToken?: string | null; accessTokenExpiresAt?: string | null; + codeChallenge?: string | null; + nativeRedirectUri?: string | null; outDeviceToken?: string | null; userId?: string | null; } export type SignUpMagicLinkRecordSelect = { accessToken?: boolean; accessTokenExpiresAt?: boolean; + codeChallenge?: boolean; + nativeRedirectUri?: boolean; outDeviceToken?: boolean; userId?: boolean; }; diff --git a/sdk/constructive-sdk/src/auth/orm/models/identityProvider.ts b/sdk/constructive-sdk/src/auth/orm/models/identityProvider.ts index cdc672145c..fde90fea4b 100644 --- a/sdk/constructive-sdk/src/auth/orm/models/identityProvider.ts +++ b/sdk/constructive-sdk/src/auth/orm/models/identityProvider.ts @@ -29,7 +29,6 @@ import type { IdentityProviderSelect, IdentityProviderFilter, IdentityProviderOrderBy, - CreateIdentityProviderInput, UpdateIdentityProviderInput, IdentityProviderPatch, } from '../input-types'; @@ -104,31 +103,4 @@ export class IdentityProviderModel { }), }); } - 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/auth/orm/models/orgApiKeyList.ts b/sdk/constructive-sdk/src/auth/orm/models/orgApiKeyList.ts index fe7120ee8a..4c7c4cee0a 100644 --- a/sdk/constructive-sdk/src/auth/orm/models/orgApiKeyList.ts +++ b/sdk/constructive-sdk/src/auth/orm/models/orgApiKeyList.ts @@ -29,7 +29,6 @@ import type { OrgApiKeyListSelect, OrgApiKeyListFilter, OrgApiKeyListOrderBy, - CreateOrgApiKeyListInput, UpdateOrgApiKeyListInput, OrgApiKeyListPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class OrgApiKeyListModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createOrgApiKeyList: { - orgApiKeyList: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'OrgApiKeyList', - 'createOrgApiKeyList', - 'orgApiKeyList', - args.select, - args.data, - 'CreateOrgApiKeyListInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'OrgApiKeyList', - fieldName: 'createOrgApiKeyList', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/auth/orm/models/principal.ts b/sdk/constructive-sdk/src/auth/orm/models/principal.ts index 05e5aa400c..ff1e4994ed 100644 --- a/sdk/constructive-sdk/src/auth/orm/models/principal.ts +++ b/sdk/constructive-sdk/src/auth/orm/models/principal.ts @@ -29,7 +29,6 @@ import type { PrincipalSelect, PrincipalFilter, PrincipalOrderBy, - CreatePrincipalInput, UpdatePrincipalInput, PrincipalPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class PrincipalModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPrincipal: { - principal: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'Principal', - 'createPrincipal', - 'principal', - args.select, - args.data, - 'CreatePrincipalInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Principal', - fieldName: 'createPrincipal', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/auth/orm/models/principalEntity.ts b/sdk/constructive-sdk/src/auth/orm/models/principalEntity.ts index 516e110743..580fbe4f6f 100644 --- a/sdk/constructive-sdk/src/auth/orm/models/principalEntity.ts +++ b/sdk/constructive-sdk/src/auth/orm/models/principalEntity.ts @@ -29,7 +29,6 @@ import type { PrincipalEntitySelect, PrincipalEntityFilter, PrincipalEntityOrderBy, - CreatePrincipalEntityInput, UpdatePrincipalEntityInput, PrincipalEntityPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class PrincipalEntityModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPrincipalEntity: { - principalEntity: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PrincipalEntity', - 'createPrincipalEntity', - 'principalEntity', - args.select, - args.data, - 'CreatePrincipalEntityInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PrincipalEntity', - fieldName: 'createPrincipalEntity', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/auth/orm/models/principalScopeOverride.ts b/sdk/constructive-sdk/src/auth/orm/models/principalScopeOverride.ts index 3d3e7bedd3..fb315ec75c 100644 --- a/sdk/constructive-sdk/src/auth/orm/models/principalScopeOverride.ts +++ b/sdk/constructive-sdk/src/auth/orm/models/principalScopeOverride.ts @@ -29,7 +29,6 @@ import type { PrincipalScopeOverrideSelect, PrincipalScopeOverrideFilter, PrincipalScopeOverrideOrderBy, - CreatePrincipalScopeOverrideInput, UpdatePrincipalScopeOverrideInput, PrincipalScopeOverridePatch, } from '../input-types'; @@ -146,31 +145,4 @@ export class PrincipalScopeOverrideModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPrincipalScopeOverride: { - principalScopeOverride: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PrincipalScopeOverride', - 'createPrincipalScopeOverride', - 'principalScopeOverride', - args.select, - args.data, - 'CreatePrincipalScopeOverrideInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PrincipalScopeOverride', - fieldName: 'createPrincipalScopeOverride', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/auth/orm/models/userConnectedAccount.ts b/sdk/constructive-sdk/src/auth/orm/models/userConnectedAccount.ts index a2344afdf4..8edfaf1d67 100644 --- a/sdk/constructive-sdk/src/auth/orm/models/userConnectedAccount.ts +++ b/sdk/constructive-sdk/src/auth/orm/models/userConnectedAccount.ts @@ -29,7 +29,6 @@ import type { UserConnectedAccountSelect, UserConnectedAccountFilter, UserConnectedAccountOrderBy, - CreateUserConnectedAccountInput, UpdateUserConnectedAccountInput, UserConnectedAccountPatch, } from '../input-types'; @@ -146,31 +145,4 @@ export class UserConnectedAccountModel { }), }); } - 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/auth/orm/mutation/index.ts b/sdk/constructive-sdk/src/auth/orm/mutation/index.ts index 39394d78e4..eebc1bc3d7 100644 --- a/sdk/constructive-sdk/src/auth/orm/mutation/index.ts +++ b/sdk/constructive-sdk/src/auth/orm/mutation/index.ts @@ -16,6 +16,7 @@ import type { CreateChildPrincipalInput, CreateOrgApiKeyInput, CreateOrgPrincipalInput, + CreatePrincipalInput, CreatePrincipalFromPresetInput, DeleteOrgPrincipalInput, DeletePrincipalInput, @@ -26,6 +27,8 @@ import type { EnableEmailMfaInput, EnableSmsMfaInput, EnableTotpInput, + EnsureAuthCsrfInput, + ExchangeNativeHandoffInput, ExtendTokenExpiresInput, ForgotPasswordInput, GenerateBackupCodesInput, @@ -34,6 +37,7 @@ import type { ProvisionBucketInput, RefreshAccessTokenInput, RequestCrossOriginTokenInput, + RequestDeviceApprovalInput, RequestMagicLinkInput, ResetPasswordInput, RevokeApiKeyInput, @@ -71,6 +75,7 @@ import type { CreateChildPrincipalPayload, CreateOrgApiKeyPayload, CreateOrgPrincipalPayload, + CreatePrincipalPayload, CreatePrincipalFromPresetPayload, DeleteOrgPrincipalPayload, DeletePrincipalPayload, @@ -81,6 +86,8 @@ import type { EnableEmailMfaPayload, EnableSmsMfaPayload, EnableTotpPayload, + EnsureAuthCsrfPayload, + ExchangeNativeHandoffPayload, ExtendTokenExpiresPayload, ForgotPasswordPayload, GenerateBackupCodesPayload, @@ -89,6 +96,7 @@ import type { ProvisionBucketPayload, RefreshAccessTokenPayload, RequestCrossOriginTokenPayload, + RequestDeviceApprovalPayload, RequestMagicLinkPayload, ResetPasswordPayload, RevokeApiKeyPayload, @@ -126,6 +134,7 @@ import type { CreateChildPrincipalPayloadSelect, CreateOrgApiKeyPayloadSelect, CreateOrgPrincipalPayloadSelect, + CreatePrincipalPayloadSelect, CreatePrincipalFromPresetPayloadSelect, DeleteOrgPrincipalPayloadSelect, DeletePrincipalPayloadSelect, @@ -136,6 +145,8 @@ import type { EnableEmailMfaPayloadSelect, EnableSmsMfaPayloadSelect, EnableTotpPayloadSelect, + EnsureAuthCsrfPayloadSelect, + ExchangeNativeHandoffPayloadSelect, ExtendTokenExpiresPayloadSelect, ForgotPasswordPayloadSelect, GenerateBackupCodesPayloadSelect, @@ -144,6 +155,7 @@ import type { ProvisionBucketPayloadSelect, RefreshAccessTokenPayloadSelect, RequestCrossOriginTokenPayloadSelect, + RequestDeviceApprovalPayloadSelect, RequestMagicLinkPayloadSelect, ResetPasswordPayloadSelect, RevokeApiKeyPayloadSelect, @@ -189,6 +201,10 @@ export interface ConfirmDeleteAccountVariables { export interface ConfirmTotpSetupVariables { input: ConfirmTotpSetupInput; } +/** + * Variables for createApiKey + * Mint an API key for the current user; the plaintext key is returned once. access_level: full_access (default) or read_only. mfa_level: none (default) or verified; verified needs a fresh MFA proof on the calling session. A key minted while authenticated by another API key never outlives that key. + */ export interface CreateApiKeyVariables { input: CreateApiKeyInput; } @@ -201,6 +217,9 @@ export interface CreateOrgApiKeyVariables { export interface CreateOrgPrincipalVariables { input: CreateOrgPrincipalInput; } +export interface CreatePrincipalVariables { + input: CreatePrincipalInput; +} export interface CreatePrincipalFromPresetVariables { input: CreatePrincipalFromPresetInput; } @@ -231,6 +250,12 @@ export interface EnableSmsMfaVariables { export interface EnableTotpVariables { input: EnableTotpInput; } +export interface EnsureAuthCsrfVariables { + input: EnsureAuthCsrfInput; +} +export interface ExchangeNativeHandoffVariables { + input: ExchangeNativeHandoffInput; +} export interface ExtendTokenExpiresVariables { input: ExtendTokenExpiresInput; } @@ -264,6 +289,9 @@ export interface RefreshAccessTokenVariables { export interface RequestCrossOriginTokenVariables { input: RequestCrossOriginTokenInput; } +export interface RequestDeviceApprovalVariables { + input: RequestDeviceApprovalInput; +} export interface RequestMagicLinkVariables { input: RequestMagicLinkInput; } @@ -611,6 +639,35 @@ export function createMutationOperations(client: OrmClient) { 'CreateOrgPrincipalPayload' ), }), + createPrincipal: ( + args: CreatePrincipalVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + createPrincipal: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'CreatePrincipal', + fieldName: 'createPrincipal', + ...buildCustomDocument( + 'mutation', + 'CreatePrincipal', + 'createPrincipal', + options.select, + args, + [ + { + name: 'input', + type: 'CreatePrincipalInput!', + }, + ], + connectionFieldsMap, + 'CreatePrincipalPayload' + ), + }), createPrincipalFromPreset: ( args: CreatePrincipalFromPresetVariables, options: { @@ -901,6 +958,64 @@ export function createMutationOperations(client: OrmClient) { 'EnableTotpPayload' ), }), + ensureAuthCsrf: ( + args: EnsureAuthCsrfVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + ensureAuthCsrf: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'EnsureAuthCsrf', + fieldName: 'ensureAuthCsrf', + ...buildCustomDocument( + 'mutation', + 'EnsureAuthCsrf', + 'ensureAuthCsrf', + options.select, + args, + [ + { + name: 'input', + type: 'EnsureAuthCsrfInput!', + }, + ], + connectionFieldsMap, + 'EnsureAuthCsrfPayload' + ), + }), + exchangeNativeHandoff: ( + args: ExchangeNativeHandoffVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + exchangeNativeHandoff: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ExchangeNativeHandoff', + fieldName: 'exchangeNativeHandoff', + ...buildCustomDocument( + 'mutation', + 'ExchangeNativeHandoff', + 'exchangeNativeHandoff', + options.select, + args, + [ + { + name: 'input', + type: 'ExchangeNativeHandoffInput!', + }, + ], + connectionFieldsMap, + 'ExchangeNativeHandoffPayload' + ), + }), extendTokenExpires: ( args: ExtendTokenExpiresVariables, options: { @@ -1133,6 +1248,35 @@ export function createMutationOperations(client: OrmClient) { 'RequestCrossOriginTokenPayload' ), }), + requestDeviceApproval: ( + args: RequestDeviceApprovalVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + requestDeviceApproval: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'RequestDeviceApproval', + fieldName: 'requestDeviceApproval', + ...buildCustomDocument( + 'mutation', + 'RequestDeviceApproval', + 'requestDeviceApproval', + options.select, + args, + [ + { + name: 'input', + type: 'RequestDeviceApprovalInput!', + }, + ], + connectionFieldsMap, + 'RequestDeviceApprovalPayload' + ), + }), requestMagicLink: ( args: RequestMagicLinkVariables, options: { diff --git a/sdk/constructive-sdk/src/auth/orm/query/index.ts b/sdk/constructive-sdk/src/auth/orm/query/index.ts index 671fb80d21..aa77870a50 100644 --- a/sdk/constructive-sdk/src/auth/orm/query/index.ts +++ b/sdk/constructive-sdk/src/auth/orm/query/index.ts @@ -9,8 +9,10 @@ import type { InferSelectResult, StrictSelect } from '../select-types'; import type { User, GetMfaStatusRecord, + SignInOptionsRecord, UserSelect, GetMfaStatusRecordSelect, + SignInOptionsRecordSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; export interface RequireStepUpVariables { @@ -150,5 +152,28 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), + signInOptions: ( + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + signInOptions: InferSelectResult | null; + }>({ + client, + operation: 'query', + operationName: 'SignInOptions', + fieldName: 'signInOptions', + ...buildCustomDocument( + 'query', + 'SignInOptions', + 'signInOptions', + options.select, + undefined, + [], + connectionFieldsMap, + 'SignInOptionsRecord' + ), + }), }; } diff --git a/sdk/constructive-sdk/src/compute/README.md b/sdk/constructive-sdk/src/compute/README.md index 08b402b816..19e5a52225 100644 --- a/sdk/constructive-sdk/src/compute/README.md +++ b/sdk/constructive-sdk/src/compute/README.md @@ -10,7 +10,7 @@ - **Tables:** 123 - **Custom queries:** 2 -- **Custom mutations:** 62 +- **Custom mutations:** 63 **Generators:** ORM diff --git a/sdk/constructive-sdk/src/compute/orm/README.md b/sdk/constructive-sdk/src/compute/orm/README.md index 68d50bcb97..abcdd72723 100644 --- a/sdk/constructive-sdk/src/compute/orm/README.md +++ b/sdk/constructive-sdk/src/compute/orm/README.md @@ -23,15 +23,14 @@ const db = createClient({ |-------|------------| | `build` | findMany, findOne, create, update, delete | | `buildStep` | findMany, findOne, create, update, delete | -| `builderBinding` | findMany, findOne, create, update, delete | | `contentPreset` | findMany, findOne, create, update, delete | -| `databaseFunctionGraph` | findMany, findOne, create, update, delete | +| `databaseFunctionGraph` | findMany, findOne, update, delete | | `databaseFunctionGraphExecutionCancelRequest` | findMany, findOne, create, update, delete | | `databaseFunctionGraphExecution` | findMany, findOne, create, update, delete | | `databaseFunctionGraphExecutionNodeState` | findMany, findOne, create, update, delete | | `databaseFunctionGraphExecutionOutput` | findMany, findOne, create, update, delete | | `databaseGraphCommit` | findMany, findOne, create, update, delete | -| `databaseGraphGetAllTreeNodesRecord` | findMany, findOne, create, update, delete | +| `databaseGraphGetAllTreeNodesRecord` | findMany, findOne, update, delete | | `databaseGraphObject` | findMany, findOne, create, update, delete | | `databaseGraphRef` | findMany, findOne, create, update, delete | | `databaseGraphStore` | findMany, findOne, create, update, delete | @@ -43,7 +42,7 @@ const db = createClient({ | `functionDeploymentEvent` | findMany, findOne, create, update, delete | | `functionExecutionLog` | findMany, findOne, create, update, delete | | `functionGraphCommit` | findMany, findOne, create, update, delete | -| `functionGraph` | findMany, findOne, create, update, delete | +| `functionGraph` | findMany, findOne, update, delete | | `functionGraphExecutionCancelRequest` | findMany, findOne, create, update, delete | | `functionGraphExecution` | findMany, findOne, create, update, delete | | `functionGraphExecutionNodeState` | findMany, findOne, create, update, delete | @@ -54,11 +53,11 @@ const db = createClient({ | `functionInvocationAttempt` | findMany, findOne, create, update, delete | | `functionInvocation` | findMany, findOne, create, update, delete | | `functionSchedule` | findMany, findOne, create, update, delete | -| `getAllTreeNodesRecord` | findMany, findOne, create, update, delete | +| `getAllTreeNodesRecord` | findMany, findOne, update, delete | | `image` | findMany, findOne, create, update, delete | | `imageGrant` | findMany, findOne, create, update, delete | | `infraCommit` | findMany, findOne, create, update, delete | -| `infraGetAllTreeNodesRecord` | findMany, findOne, create, update, delete | +| `infraGetAllTreeNodesRecord` | findMany, findOne, update, delete | | `infraObject` | findMany, findOne, create, update, delete | | `infraRef` | findMany, findOne, create, update, delete | | `infraStore` | findMany, findOne, create, update, delete | @@ -67,7 +66,6 @@ const db = createClient({ | `namespaceEvent` | findMany, findOne, create, update, delete | | `platformBuild` | findMany, findOne, create, update, delete | | `platformBuildStep` | findMany, findOne, create, update, delete | -| `platformBuilderBinding` | findMany, findOne, create, update, delete | | `platformFunctionApiBinding` | findMany, findOne, create, update, delete | | `platformFunctionCapabilityBinding` | findMany, findOne, create, update, delete | | `platformFunctionDefinition` | findMany, findOne, create, update, delete | @@ -80,7 +78,7 @@ const db = createClient({ | `platformImage` | findMany, findOne, create, update, delete | | `platformImageGrant` | findMany, findOne, create, update, delete | | `platformInfraCommit` | findMany, findOne, create, update, delete | -| `platformInfraGetAllTreeNodesRecord` | findMany, findOne, create, update, delete | +| `platformInfraGetAllTreeNodesRecord` | findMany, findOne, update, delete | | `platformInfraObject` | findMany, findOne, create, update, delete | | `platformInfraRef` | findMany, findOne, create, update, delete | | `platformInfraStore` | findMany, findOne, create, update, delete | @@ -102,18 +100,19 @@ const db = createClient({ | `platformRepositoryRequiredCheck` | findMany, findOne, create, update, delete | | `platformRepositoryWorkflow` | findMany, findOne, create, update, delete | | `platformResource` | findMany, findOne, create, update, delete | -| `platformResourceDeclaredCapacity` | findMany, findOne, create, update, delete | +| `platformResourceDeclaredCapacity` | findMany, findOne, update, delete | | `platformResourceDefinition` | findMany, findOne, create, update, delete | | `platformResourceEvent` | findMany, findOne, create, update, delete | | `platformResourceInstallation` | findMany, findOne, create, update, delete | -| `platformResourceObservedStorage` | findMany, findOne, create, update, delete | +| `platformResourceObservedStorage` | findMany, findOne, update, delete | | `platformResourceStatusCheck` | findMany, findOne, create, update, delete | | `platformResourceUsageLog` | findMany, findOne, create, update, delete | | `platformResourceUsageSummary` | findMany, findOne, create, update, delete | -| `platformResourceUtilization` | findMany, findOne, create, update, delete | -| `platformResourcesHealth` | findMany, findOne, create, update, delete | -| `platformResourcesRequirementsState` | findMany, findOne, create, update, delete | -| `platformResourcesResolvedRequirement` | findMany, findOne, create, update, delete | +| `platformResourceUtilization` | findMany, findOne, update, delete | +| `platformResourcesHealth` | findMany, findOne, update, delete | +| `platformResourcesRequirementsState` | findMany, findOne, update, delete | +| `platformResourcesResolvedRequirement` | findMany, findOne, update, delete | +| `platformServiceBinding` | findMany, findOne, create, update, delete | | `platformWebhookEndpoint` | findMany, findOne, create, update, delete | | `platformWebhookEvent` | findMany, findOne, create, update, delete | | `proposalComment` | findMany, findOne, create, update, delete | @@ -130,18 +129,19 @@ const db = createClient({ | `repositoryRequiredCheck` | findMany, findOne, create, update, delete | | `repositoryWorkflow` | findMany, findOne, create, update, delete | | `resource` | findMany, findOne, create, update, delete | -| `resourceDeclaredCapacity` | findMany, findOne, create, update, delete | +| `resourceDeclaredCapacity` | findMany, findOne, update, delete | | `resourceDefinition` | findMany, findOne, create, update, delete | | `resourceEvent` | findMany, findOne, create, update, delete | | `resourceInstallation` | findMany, findOne, create, update, delete | -| `resourceObservedStorage` | findMany, findOne, create, update, delete | +| `resourceObservedStorage` | findMany, findOne, update, delete | | `resourceStatusCheck` | findMany, findOne, create, update, delete | | `resourceUsageLog` | findMany, findOne, create, update, delete | | `resourceUsageSummary` | findMany, findOne, create, update, delete | -| `resourceUtilization` | findMany, findOne, create, update, delete | -| `resourcesHealth` | findMany, findOne, create, update, delete | -| `resourcesRequirementsState` | findMany, findOne, create, update, delete | -| `resourcesResolvedRequirement` | findMany, findOne, create, update, delete | +| `resourceUtilization` | findMany, findOne, update, delete | +| `resourcesHealth` | findMany, findOne, update, delete | +| `resourcesRequirementsState` | findMany, findOne, update, delete | +| `resourcesResolvedRequirement` | findMany, findOne, update, delete | +| `serviceBinding` | findMany, findOne, create, update, delete | | `webhookEndpoint` | findMany, findOne, create, update, delete | | `webhookEvent` | findMany, findOne, create, update, delete | @@ -168,6 +168,8 @@ CRUD operations for Build records. | `imageRef` | String | Yes | | `jobId` | BigInt | Yes | | `logs` | ConstructiveInternalTypeUpload | Yes | +| `logsUrl` | String | Yes | +| `logsVersions` | FileVersion | Yes | | `matrixKey` | String | Yes | | `metadata` | JSON | Yes | | `proposalId` | UUID | Yes | @@ -183,13 +185,13 @@ CRUD operations for Build records. ```typescript // List all build records -const items = await db.build.findMany({ select: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, databaseId: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }).execute(); +const items = await db.build.findMany({ select: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, databaseId: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, logsUrl: true, logsVersions: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }).execute(); // Get one by id -const item = await db.build.findOne({ id: '', select: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, databaseId: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }).execute(); +const item = await db.build.findOne({ id: '', select: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, databaseId: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, logsUrl: true, logsVersions: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }).execute(); // Create -const created = await db.build.create({ data: { actorId: '', attempt: '', commitSha: '', conclusion: '', createdByPrincipal: '', databaseId: '', eventId: '', finishedAt: '', imageRef: '', jobId: '', logs: '', matrixKey: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }, select: { id: true } }).execute(); +const created = await db.build.create({ data: { actorId: '', attempt: '', commitSha: '', conclusion: '', createdByPrincipal: '', databaseId: '', eventId: '', finishedAt: '', imageRef: '', jobId: '', logs: '', logsUrl: '', logsVersions: '', matrixKey: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }, select: { id: true } }).execute(); // Update const updated = await db.build.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -242,49 +244,6 @@ const updated = await db.buildStep.update({ where: { id: '' }, data: { bui const deleted = await db.buildStep.delete({ where: { id: '' } }).execute(); ``` -### `db.builderBinding` - -CRUD operations for BuilderBinding records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `createdAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `createdByPrincipal` | UUID | Yes | -| `databaseId` | UUID | Yes | -| `id` | UUID | No | -| `installationId` | UUID | Yes | -| `lastError` | String | Yes | -| `metadata` | JSON | Yes | -| `namespaceId` | UUID | Yes | -| `observedHost` | String | Yes | -| `realm` | String | Yes | -| `status` | String | Yes | -| `updatedAt` | Datetime | No | -| `updatedBy` | UUID | Yes | -| `updatedByPrincipal` | UUID | Yes | - -**Operations:** - -```typescript -// List all builderBinding records -const items = await db.builderBinding.findMany({ select: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); - -// Get one by id -const item = await db.builderBinding.findOne({ id: '', select: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); - -// Create -const created = await db.builderBinding.create({ data: { createdBy: '', createdByPrincipal: '', databaseId: '', installationId: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.builderBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.builderBinding.delete({ where: { id: '' } }).execute(); -``` - ### `db.contentPreset` CRUD operations for ContentPreset records. @@ -354,9 +313,6 @@ const items = await db.databaseFunctionGraph.findMany({ select: { context: true, // Get one by id const item = await db.databaseFunctionGraph.findOne({ id: '', select: { context: true, createdAt: true, createdBy: true, databaseId: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, storeId: true, updatedAt: true, validationErrors: true } }).execute(); -// Create -const created = await db.databaseFunctionGraph.create({ data: { context: '', createdBy: '', databaseId: '', definitionsCommitId: '', description: '', isValid: '', name: '', storeId: '', validationErrors: '' }, select: { id: true } }).execute(); - // Update const updated = await db.databaseFunctionGraph.update({ where: { id: '' }, data: { context: '' }, select: { id: true } }).execute(); @@ -595,9 +551,6 @@ const items = await db.databaseGraphGetAllTreeNodesRecord.findMany({ select: { d // Get one by id const item = await db.databaseGraphGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); -// Create -const created = await db.databaseGraphGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); - // Update const updated = await db.databaseGraphGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); @@ -1086,9 +1039,6 @@ const items = await db.functionGraph.findMany({ select: { context: true, created // Get one by id const item = await db.functionGraph.findOne({ id: '', select: { context: true, createdAt: true, createdBy: true, definitionsCommitId: true, description: true, id: true, isValid: true, name: true, scopeId: true, storeId: true, updatedAt: true, validationErrors: true } }).execute(); -// Create -const created = await db.functionGraph.create({ data: { context: '', createdBy: '', definitionsCommitId: '', description: '', isValid: '', name: '', scopeId: '', storeId: '', validationErrors: '' }, select: { id: true } }).execute(); - // Update const updated = await db.functionGraph.update({ where: { id: '' }, data: { context: '' }, select: { id: true } }).execute(); @@ -1527,9 +1477,6 @@ const items = await db.getAllTreeNodesRecord.findMany({ select: { data: true, pa // Get one by id const item = await db.getAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); -// Create -const created = await db.getAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); - // Update const updated = await db.getAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); @@ -1681,9 +1628,6 @@ const items = await db.infraGetAllTreeNodesRecord.findMany({ select: { data: tru // Get one by id const item = await db.infraGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); -// Create -const created = await db.infraGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); - // Update const updated = await db.infraGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); @@ -1806,6 +1750,8 @@ CRUD operations for IntegrationProvider records. | `icon` | String | Yes | | `id` | UUID | No | | `logo` | ConstructiveInternalTypeImage | Yes | +| `logoUrl` | String | Yes | +| `logoVersions` | FileVersion | Yes | | `name` | String | Yes | | `requiredConfigs` | ResourceRequirement | Yes | | `requiredSecrets` | ResourceRequirement | Yes | @@ -1816,13 +1762,13 @@ CRUD operations for IntegrationProvider records. ```typescript // List all integrationProvider records -const items = await db.integrationProvider.findMany({ select: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, name: true, requiredConfigs: true, requiredSecrets: true, slug: true, updatedAt: true } }).execute(); +const items = await db.integrationProvider.findMany({ select: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, logoUrl: true, logoVersions: true, name: true, requiredConfigs: true, requiredSecrets: true, slug: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.integrationProvider.findOne({ id: '', select: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, name: true, requiredConfigs: true, requiredSecrets: true, slug: true, updatedAt: true } }).execute(); +const item = await db.integrationProvider.findOne({ id: '', select: { brand: true, category: true, createdAt: true, description: true, icon: true, id: true, logo: true, logoUrl: true, logoVersions: true, name: true, requiredConfigs: true, requiredSecrets: true, slug: true, updatedAt: true } }).execute(); // Create -const created = await db.integrationProvider.create({ data: { brand: '', category: '', description: '', icon: '', logo: '', name: '', requiredConfigs: '', requiredSecrets: '', slug: '' }, select: { id: true } }).execute(); +const created = await db.integrationProvider.create({ data: { brand: '', category: '', description: '', icon: '', logo: '', logoUrl: '', logoVersions: '', name: '', requiredConfigs: '', requiredSecrets: '', slug: '' }, select: { id: true } }).execute(); // Update const updated = await db.integrationProvider.update({ where: { id: '' }, data: { brand: '' }, select: { id: true } }).execute(); @@ -1929,6 +1875,8 @@ CRUD operations for PlatformBuild records. | `imageRef` | String | Yes | | `jobId` | BigInt | Yes | | `logs` | ConstructiveInternalTypeUpload | Yes | +| `logsUrl` | String | Yes | +| `logsVersions` | FileVersion | Yes | | `matrixKey` | String | Yes | | `metadata` | JSON | Yes | | `proposalId` | UUID | Yes | @@ -1944,13 +1892,13 @@ CRUD operations for PlatformBuild records. ```typescript // List all platformBuild records -const items = await db.platformBuild.findMany({ select: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }).execute(); +const items = await db.platformBuild.findMany({ select: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, logsUrl: true, logsVersions: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }).execute(); // Get one by id -const item = await db.platformBuild.findOne({ id: '', select: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }).execute(); +const item = await db.platformBuild.findOne({ id: '', select: { actorId: true, attempt: true, commitSha: true, conclusion: true, createdAt: true, createdByPrincipal: true, eventId: true, finishedAt: true, id: true, imageRef: true, jobId: true, logs: true, logsUrl: true, logsVersions: true, matrixKey: true, metadata: true, proposalId: true, ref: true, repositoryId: true, startedAt: true, status: true, updatedAt: true, updatedByPrincipal: true, workflowId: true } }).execute(); // Create -const created = await db.platformBuild.create({ data: { actorId: '', attempt: '', commitSha: '', conclusion: '', createdByPrincipal: '', eventId: '', finishedAt: '', imageRef: '', jobId: '', logs: '', matrixKey: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }, select: { id: true } }).execute(); +const created = await db.platformBuild.create({ data: { actorId: '', attempt: '', commitSha: '', conclusion: '', createdByPrincipal: '', eventId: '', finishedAt: '', imageRef: '', jobId: '', logs: '', logsUrl: '', logsVersions: '', matrixKey: '', metadata: '', proposalId: '', ref: '', repositoryId: '', startedAt: '', status: '', updatedByPrincipal: '', workflowId: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformBuild.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -2002,48 +1950,6 @@ const updated = await db.platformBuildStep.update({ where: { id: '' }, dat const deleted = await db.platformBuildStep.delete({ where: { id: '' } }).execute(); ``` -### `db.platformBuilderBinding` - -CRUD operations for PlatformBuilderBinding records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `createdAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `createdByPrincipal` | UUID | Yes | -| `id` | UUID | No | -| `installationId` | UUID | Yes | -| `lastError` | String | Yes | -| `metadata` | JSON | Yes | -| `namespaceId` | UUID | Yes | -| `observedHost` | String | Yes | -| `realm` | String | Yes | -| `status` | String | Yes | -| `updatedAt` | Datetime | No | -| `updatedBy` | UUID | Yes | -| `updatedByPrincipal` | UUID | Yes | - -**Operations:** - -```typescript -// List all platformBuilderBinding records -const items = await db.platformBuilderBinding.findMany({ select: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); - -// Get one by id -const item = await db.platformBuilderBinding.findOne({ id: '', select: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); - -// Create -const created = await db.platformBuilderBinding.create({ data: { createdBy: '', createdByPrincipal: '', installationId: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.platformBuilderBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.platformBuilderBinding.delete({ where: { id: '' } }).execute(); -``` - ### `db.platformFunctionApiBinding` CRUD operations for PlatformFunctionApiBinding records. @@ -2593,9 +2499,6 @@ const items = await db.platformInfraGetAllTreeNodesRecord.findMany({ select: { d // Get one by id const item = await db.platformInfraGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); -// Create -const created = await db.platformInfraGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformInfraGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); @@ -2865,12 +2768,16 @@ CRUD operations for PlatformProposalComment records. |-------|------|----------| | `actorId` | UUID | Yes | | `attachments` | ConstructiveInternalTypeUpload | Yes | +| `attachmentsUrl` | String | Yes | +| `attachmentsVersions` | FileVersion | Yes | | `body` | String | Yes | | `bodyTrgmSimilarity` | Float | Yes | | `createdAt` | Datetime | No | | `createdBy` | UUID | Yes | | `createdByPrincipal` | UUID | Yes | | `embedding` | Vector | Yes | +| `embeddingModel` | String | Yes | +| `embeddingModelTrgmSimilarity` | Float | Yes | | `embeddingUpdatedAt` | Datetime | Yes | | `embeddingVectorDistance` | Float | Yes | | `id` | UUID | No | @@ -2891,13 +2798,13 @@ CRUD operations for PlatformProposalComment records. ```typescript // List all platformProposalComment records -const items = await db.platformProposalComment.findMany({ select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.platformProposalComment.findMany({ select: { actorId: true, attachments: true, attachmentsUrl: true, attachmentsVersions: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformProposalComment.findOne({ id: '', select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.platformProposalComment.findOne({ id: '', select: { actorId: true, attachments: true, attachmentsUrl: true, attachmentsVersions: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformProposalComment.create({ data: { actorId: '', attachments: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const created = await db.platformProposalComment.create({ data: { actorId: '', attachments: '', attachmentsUrl: '', attachmentsVersions: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformProposalComment.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -2931,6 +2838,8 @@ CRUD operations for PlatformProposal records. | `decidedAt` | Datetime | Yes | | `dueAt` | Datetime | Yes | | `embedding` | Vector | Yes | +| `embeddingModel` | String | Yes | +| `embeddingModelTrgmSimilarity` | Float | Yes | | `embeddingUpdatedAt` | Datetime | Yes | | `embeddingVectorDistance` | Float | Yes | | `id` | UUID | No | @@ -2968,13 +2877,13 @@ CRUD operations for PlatformProposal records. ```typescript // List all platformProposal records -const items = await db.platformProposal.findMany({ select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.platformProposal.findMany({ select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.platformProposal.findOne({ id: '', select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.platformProposal.findOne({ id: '', select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, decidedAt: true, dueAt: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.platformProposal.create({ data: { actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', decidedAt: '', dueAt: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const created = await db.platformProposal.create({ data: { actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', decidedAt: '', dueAt: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformProposal.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -3301,6 +3210,8 @@ CRUD operations for PlatformRepository records. | `description` | String | Yes | | `descriptionTrgmSimilarity` | Float | Yes | | `embedding` | Vector | Yes | +| `embeddingModel` | String | Yes | +| `embeddingModelTrgmSimilarity` | Float | Yes | | `embeddingUpdatedAt` | Datetime | Yes | | `embeddingVectorDistance` | Float | Yes | | `externalId` | String | Yes | @@ -3328,13 +3239,13 @@ CRUD operations for PlatformRepository records. ```typescript // List all platformRepository records -const items = await db.platformRepository.findMany({ select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); +const items = await db.platformRepository.findMany({ select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); // Get one by id -const item = await db.platformRepository.findOne({ id: '', select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); +const item = await db.platformRepository.findOne({ id: '', select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); // Create -const created = await db.platformRepository.create({ data: { cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }, select: { id: true } }).execute(); +const created = await db.platformRepository.create({ data: { cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }, select: { id: true } }).execute(); // Update const updated = await db.platformRepository.update({ where: { id: '' }, data: { cloneUrl: '' }, select: { id: true } }).execute(); @@ -3563,9 +3474,6 @@ const items = await db.platformResourceDeclaredCapacity.findMany({ select: { cpu // Get one by id const item = await db.platformResourceDeclaredCapacity.findOne({ id: '', select: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true, storageTotalBytes: true } }).execute(); -// Create -const created = await db.platformResourceDeclaredCapacity.create({ data: { cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '', storageTotalBytes: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformResourceDeclaredCapacity.update({ where: { id: '' }, data: { cpuLimitMillicores: '' }, select: { id: true } }).execute(); @@ -3735,9 +3643,6 @@ const items = await db.platformResourceObservedStorage.findMany({ select: { capa // Get one by id const item = await db.platformResourceObservedStorage.findOne({ id: '', select: { capacity: true, capacityBytes: true, claimName: true, declaredStorageClass: true, declaredStorageSizeBytes: true, declaredStorageTotalBytes: true, installationId: true, isBound: true, kind: true, namespaceId: true, phase: true, requested: true, requestedBytes: true, resourceId: true, resourceStatus: true, slug: true, storageClass: true, storageName: true } }).execute(); -// Create -const created = await db.platformResourceObservedStorage.create({ data: { capacity: '', capacityBytes: '', claimName: '', declaredStorageClass: '', declaredStorageSizeBytes: '', declaredStorageTotalBytes: '', installationId: '', isBound: '', kind: '', namespaceId: '', phase: '', requested: '', requestedBytes: '', resourceId: '', resourceStatus: '', slug: '', storageClass: '', storageName: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformResourceObservedStorage.update({ where: { id: '' }, data: { capacity: '' }, select: { id: true } }).execute(); @@ -3891,9 +3796,6 @@ const items = await db.platformResourceUtilization.findMany({ select: { avgMemor // Get one by id const item = await db.platformResourceUtilization.findOne({ id: '', select: { avgMemoryBytes: true, cpuLimitMillicores: true, cpuPeakUtilization: true, cpuRequestHeadroomMillicores: true, cpuRequestMillicores: true, date: true, gbSeconds: true, kind: true, maxCpuMillicores: true, maxMemoryBytes: true, memoryLimitBytes: true, memoryPeakUtilization: true, memoryRequestBytes: true, memoryRequestHeadroomBytes: true, namespaceId: true, replicas: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }).execute(); -// Create -const created = await db.platformResourceUtilization.create({ data: { avgMemoryBytes: '', cpuLimitMillicores: '', cpuPeakUtilization: '', cpuRequestHeadroomMillicores: '', cpuRequestMillicores: '', date: '', gbSeconds: '', kind: '', maxCpuMillicores: '', maxMemoryBytes: '', memoryLimitBytes: '', memoryPeakUtilization: '', memoryRequestBytes: '', memoryRequestHeadroomBytes: '', namespaceId: '', replicas: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformResourceUtilization.update({ where: { id: '' }, data: { avgMemoryBytes: '' }, select: { id: true } }).execute(); @@ -3954,9 +3856,6 @@ const items = await db.platformResourcesHealth.findMany({ select: { annotations: // Get one by id const item = await db.platformResourcesHealth.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); -// Create -const created = await db.platformResourcesHealth.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformResourcesHealth.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -3989,9 +3888,6 @@ const items = await db.platformResourcesRequirementsState.findMany({ select: { c // Get one by id const item = await db.platformResourcesRequirementsState.findOne({ id: '', select: { configHash: true, configObjectName: true, requirementsHash: true, resourceId: true, secretsHash: true, secretsObjectName: true, slug: true } }).execute(); -// Create -const created = await db.platformResourcesRequirementsState.create({ data: { configHash: '', configObjectName: '', requirementsHash: '', resourceId: '', secretsHash: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformResourcesRequirementsState.update({ where: { id: '' }, data: { configHash: '' }, select: { id: true } }).execute(); @@ -4028,9 +3924,6 @@ const items = await db.platformResourcesResolvedRequirement.findMany({ select: { // Get one by id const item = await db.platformResourcesResolvedRequirement.findOne({ id: '', select: { atomId: true, configObjectName: true, name: true, namespaceId: true, present: true, realm: true, required: true, requirementKind: true, resourceId: true, secretsObjectName: true, slug: true } }).execute(); -// Create -const created = await db.platformResourcesResolvedRequirement.create({ data: { atomId: '', configObjectName: '', name: '', namespaceId: '', present: '', realm: '', required: '', requirementKind: '', resourceId: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformResourcesResolvedRequirement.update({ where: { id: '' }, data: { atomId: '' }, select: { id: true } }).execute(); @@ -4038,6 +3931,50 @@ const updated = await db.platformResourcesResolvedRequirement.update({ where: { const deleted = await db.platformResourcesResolvedRequirement.delete({ where: { id: '' } }).execute(); ``` +### `db.platformServiceBinding` + +CRUD operations for PlatformServiceBinding records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `id` | UUID | No | +| `installationId` | UUID | Yes | +| `installationScope` | String | Yes | +| `kind` | String | Yes | +| `lastError` | String | Yes | +| `metadata` | JSON | Yes | +| `namespaceId` | UUID | Yes | +| `observedHost` | String | Yes | +| `realm` | String | Yes | +| `status` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all platformServiceBinding records +const items = await db.platformServiceBinding.findMany({ select: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, installationScope: true, kind: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.platformServiceBinding.findOne({ id: '', select: { createdAt: true, createdBy: true, createdByPrincipal: true, id: true, installationId: true, installationScope: true, kind: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.platformServiceBinding.create({ data: { createdBy: '', createdByPrincipal: '', installationId: '', installationScope: '', kind: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.platformServiceBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.platformServiceBinding.delete({ where: { id: '' } }).execute(); +``` + ### `db.platformWebhookEndpoint` CRUD operations for PlatformWebhookEndpoint records. @@ -4131,6 +4068,8 @@ CRUD operations for ProposalComment records. |-------|------|----------| | `actorId` | UUID | Yes | | `attachments` | ConstructiveInternalTypeUpload | Yes | +| `attachmentsUrl` | String | Yes | +| `attachmentsVersions` | FileVersion | Yes | | `body` | String | Yes | | `bodyTrgmSimilarity` | Float | Yes | | `createdAt` | Datetime | No | @@ -4138,6 +4077,8 @@ CRUD operations for ProposalComment records. | `createdByPrincipal` | UUID | Yes | | `databaseId` | UUID | Yes | | `embedding` | Vector | Yes | +| `embeddingModel` | String | Yes | +| `embeddingModelTrgmSimilarity` | Float | Yes | | `embeddingUpdatedAt` | Datetime | Yes | | `embeddingVectorDistance` | Float | Yes | | `id` | UUID | No | @@ -4158,13 +4099,13 @@ CRUD operations for ProposalComment records. ```typescript // List all proposalComment records -const items = await db.proposalComment.findMany({ select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.proposalComment.findMany({ select: { actorId: true, attachments: true, attachmentsUrl: true, attachmentsVersions: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.proposalComment.findOne({ id: '', select: { actorId: true, attachments: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.proposalComment.findOne({ id: '', select: { actorId: true, attachments: true, attachmentsUrl: true, attachmentsVersions: true, body: true, bodyTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, line: true, outdatedAt: true, path: true, pathTrgmSimilarity: true, proposalId: true, resolvedAt: true, search: true, searchScore: true, searchTsvRank: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.proposalComment.create({ data: { actorId: '', attachments: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const created = await db.proposalComment.create({ data: { actorId: '', attachments: '', attachmentsUrl: '', attachmentsVersions: '', body: '', bodyTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', line: '', outdatedAt: '', path: '', pathTrgmSimilarity: '', proposalId: '', resolvedAt: '', search: '', searchScore: '', searchTsvRank: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.proposalComment.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -4199,6 +4140,8 @@ CRUD operations for Proposal records. | `decidedAt` | Datetime | Yes | | `dueAt` | Datetime | Yes | | `embedding` | Vector | Yes | +| `embeddingModel` | String | Yes | +| `embeddingModelTrgmSimilarity` | Float | Yes | | `embeddingUpdatedAt` | Datetime | Yes | | `embeddingVectorDistance` | Float | Yes | | `id` | UUID | No | @@ -4236,13 +4179,13 @@ CRUD operations for Proposal records. ```typescript // List all proposal records -const items = await db.proposal.findMany({ select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const items = await db.proposal.findMany({ select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Get one by id -const item = await db.proposal.findOne({ id: '', select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); +const item = await db.proposal.findOne({ id: '', select: { actorId: true, body: true, bodyTrgmSimilarity: true, closedReason: true, closedReasonTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, decidedAt: true, dueAt: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, id: true, kind: true, kindTrgmSimilarity: true, labels: true, mergeCommit: true, mergeCommitTrgmSimilarity: true, mergeMethod: true, mergeMethodTrgmSimilarity: true, mergeRequestedAt: true, mergedAt: true, metadata: true, parentId: true, priority: true, repositoryId: true, resolution: true, resolutionTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, sourceRef: true, sourceRefTrgmSimilarity: true, status: true, statusTrgmSimilarity: true, targetRef: true, targetRefTrgmSimilarity: true, title: true, titleTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); // Create -const created = await db.proposal.create({ data: { actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', decidedAt: '', dueAt: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); +const created = await db.proposal.create({ data: { actorId: '', body: '', bodyTrgmSimilarity: '', closedReason: '', closedReasonTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', decidedAt: '', dueAt: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', kind: '', kindTrgmSimilarity: '', labels: '', mergeCommit: '', mergeCommitTrgmSimilarity: '', mergeMethod: '', mergeMethodTrgmSimilarity: '', mergeRequestedAt: '', mergedAt: '', metadata: '', parentId: '', priority: '', repositoryId: '', resolution: '', resolutionTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', sourceRef: '', sourceRefTrgmSimilarity: '', status: '', statusTrgmSimilarity: '', targetRef: '', targetRefTrgmSimilarity: '', title: '', titleTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); // Update const updated = await db.proposal.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -4577,6 +4520,8 @@ CRUD operations for Repository records. | `description` | String | Yes | | `descriptionTrgmSimilarity` | Float | Yes | | `embedding` | Vector | Yes | +| `embeddingModel` | String | Yes | +| `embeddingModelTrgmSimilarity` | Float | Yes | | `embeddingUpdatedAt` | Datetime | Yes | | `embeddingVectorDistance` | Float | Yes | | `externalId` | String | Yes | @@ -4604,13 +4549,13 @@ CRUD operations for Repository records. ```typescript // List all repository records -const items = await db.repository.findMany({ select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); +const items = await db.repository.findMany({ select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); // Get one by id -const item = await db.repository.findOne({ id: '', select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); +const item = await db.repository.findOne({ id: '', select: { cloneUrl: true, cloneUrlTrgmSimilarity: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, defaultBranch: true, defaultBranchTrgmSimilarity: true, description: true, descriptionTrgmSimilarity: true, embedding: true, embeddingModel: true, embeddingModelTrgmSimilarity: true, embeddingUpdatedAt: true, embeddingVectorDistance: true, externalId: true, externalIdTrgmSimilarity: true, id: true, isArchived: true, metadata: true, name: true, nameTrgmSimilarity: true, ownerId: true, provider: true, providerTrgmSimilarity: true, search: true, searchScore: true, searchTsvRank: true, slug: true, slugTrgmSimilarity: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true, visibility: true, visibilityTrgmSimilarity: true } }).execute(); // Create -const created = await db.repository.create({ data: { cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }, select: { id: true } }).execute(); +const created = await db.repository.create({ data: { cloneUrl: '', cloneUrlTrgmSimilarity: '', createdBy: '', createdByPrincipal: '', databaseId: '', defaultBranch: '', defaultBranchTrgmSimilarity: '', description: '', descriptionTrgmSimilarity: '', embedding: '', embeddingModel: '', embeddingModelTrgmSimilarity: '', embeddingUpdatedAt: '', embeddingVectorDistance: '', externalId: '', externalIdTrgmSimilarity: '', isArchived: '', metadata: '', name: '', nameTrgmSimilarity: '', ownerId: '', provider: '', providerTrgmSimilarity: '', search: '', searchScore: '', searchTsvRank: '', slug: '', slugTrgmSimilarity: '', updatedBy: '', updatedByPrincipal: '', visibility: '', visibilityTrgmSimilarity: '' }, select: { id: true } }).execute(); // Update const updated = await db.repository.update({ where: { id: '' }, data: { cloneUrl: '' }, select: { id: true } }).execute(); @@ -4843,9 +4788,6 @@ const items = await db.resourceDeclaredCapacity.findMany({ select: { cpuLimitMil // Get one by id const item = await db.resourceDeclaredCapacity.findOne({ id: '', select: { cpuLimitMillicores: true, cpuRequestMillicores: true, installationId: true, isTransient: true, kind: true, memoryLimitBytes: true, memoryRequestBytes: true, namespaceId: true, podCountMax: true, podCountMin: true, source: true, sourceId: true, storageSizeBytes: true, storageTotalBytes: true } }).execute(); -// Create -const created = await db.resourceDeclaredCapacity.create({ data: { cpuLimitMillicores: '', cpuRequestMillicores: '', installationId: '', isTransient: '', kind: '', memoryLimitBytes: '', memoryRequestBytes: '', namespaceId: '', podCountMax: '', podCountMin: '', source: '', sourceId: '', storageSizeBytes: '', storageTotalBytes: '' }, select: { id: true } }).execute(); - // Update const updated = await db.resourceDeclaredCapacity.update({ where: { id: '' }, data: { cpuLimitMillicores: '' }, select: { id: true } }).execute(); @@ -5018,9 +4960,6 @@ const items = await db.resourceObservedStorage.findMany({ select: { capacity: tr // Get one by id const item = await db.resourceObservedStorage.findOne({ id: '', select: { capacity: true, capacityBytes: true, claimName: true, declaredStorageClass: true, declaredStorageSizeBytes: true, declaredStorageTotalBytes: true, installationId: true, isBound: true, kind: true, namespaceId: true, phase: true, requested: true, requestedBytes: true, resourceId: true, resourceStatus: true, slug: true, storageClass: true, storageName: true } }).execute(); -// Create -const created = await db.resourceObservedStorage.create({ data: { capacity: '', capacityBytes: '', claimName: '', declaredStorageClass: '', declaredStorageSizeBytes: '', declaredStorageTotalBytes: '', installationId: '', isBound: '', kind: '', namespaceId: '', phase: '', requested: '', requestedBytes: '', resourceId: '', resourceStatus: '', slug: '', storageClass: '', storageName: '' }, select: { id: true } }).execute(); - // Update const updated = await db.resourceObservedStorage.update({ where: { id: '' }, data: { capacity: '' }, select: { id: true } }).execute(); @@ -5177,9 +5116,6 @@ const items = await db.resourceUtilization.findMany({ select: { avgMemoryBytes: // Get one by id const item = await db.resourceUtilization.findOne({ id: '', select: { avgMemoryBytes: true, cpuLimitMillicores: true, cpuPeakUtilization: true, cpuRequestHeadroomMillicores: true, cpuRequestMillicores: true, date: true, gbSeconds: true, kind: true, maxCpuMillicores: true, maxMemoryBytes: true, memoryLimitBytes: true, memoryPeakUtilization: true, memoryRequestBytes: true, memoryRequestHeadroomBytes: true, namespaceId: true, replicas: true, resourceId: true, runtimeSeconds: true, sampleCount: true } }).execute(); -// Create -const created = await db.resourceUtilization.create({ data: { avgMemoryBytes: '', cpuLimitMillicores: '', cpuPeakUtilization: '', cpuRequestHeadroomMillicores: '', cpuRequestMillicores: '', date: '', gbSeconds: '', kind: '', maxCpuMillicores: '', maxMemoryBytes: '', memoryLimitBytes: '', memoryPeakUtilization: '', memoryRequestBytes: '', memoryRequestHeadroomBytes: '', namespaceId: '', replicas: '', resourceId: '', runtimeSeconds: '', sampleCount: '' }, select: { id: true } }).execute(); - // Update const updated = await db.resourceUtilization.update({ where: { id: '' }, data: { avgMemoryBytes: '' }, select: { id: true } }).execute(); @@ -5241,9 +5177,6 @@ const items = await db.resourcesHealth.findMany({ select: { annotations: true, c // Get one by id const item = await db.resourcesHealth.findOne({ id: '', select: { annotations: true, cpuLimitMillicores: true, cpuRequestMillicores: true, createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, errorCount: true, id: true, imageRef: true, installationId: true, integrations: true, kind: true, labels: true, lastError: true, lastHeartbeatAt: true, memoryLimitBytes: true, memoryRequestBytes: true, name: true, namespaceId: true, realm: true, replicas: true, requiredConfigs: true, requiredSecrets: true, resourceDefinitionId: true, slug: true, spec: true, status: true, statusDetail: true, statusObserved: true, storageClass: true, storageSizeBytes: true, storageTotalBytes: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); -// Create -const created = await db.resourcesHealth.create({ data: { annotations: '', cpuLimitMillicores: '', cpuRequestMillicores: '', createdBy: '', createdByPrincipal: '', databaseId: '', errorCount: '', imageRef: '', installationId: '', integrations: '', kind: '', labels: '', lastError: '', lastHeartbeatAt: '', memoryLimitBytes: '', memoryRequestBytes: '', name: '', namespaceId: '', realm: '', replicas: '', requiredConfigs: '', requiredSecrets: '', resourceDefinitionId: '', slug: '', spec: '', status: '', statusDetail: '', statusObserved: '', storageClass: '', storageSizeBytes: '', storageTotalBytes: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); - // Update const updated = await db.resourcesHealth.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -5276,9 +5209,6 @@ const items = await db.resourcesRequirementsState.findMany({ select: { configHas // Get one by id const item = await db.resourcesRequirementsState.findOne({ id: '', select: { configHash: true, configObjectName: true, requirementsHash: true, resourceId: true, secretsHash: true, secretsObjectName: true, slug: true } }).execute(); -// Create -const created = await db.resourcesRequirementsState.create({ data: { configHash: '', configObjectName: '', requirementsHash: '', resourceId: '', secretsHash: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute(); - // Update const updated = await db.resourcesRequirementsState.update({ where: { id: '' }, data: { configHash: '' }, select: { id: true } }).execute(); @@ -5315,9 +5245,6 @@ const items = await db.resourcesResolvedRequirement.findMany({ select: { atomId: // Get one by id const item = await db.resourcesResolvedRequirement.findOne({ id: '', select: { atomId: true, configObjectName: true, name: true, namespaceId: true, present: true, realm: true, required: true, requirementKind: true, resourceId: true, secretsObjectName: true, slug: true } }).execute(); -// Create -const created = await db.resourcesResolvedRequirement.create({ data: { atomId: '', configObjectName: '', name: '', namespaceId: '', present: '', realm: '', required: '', requirementKind: '', resourceId: '', secretsObjectName: '', slug: '' }, select: { id: true } }).execute(); - // Update const updated = await db.resourcesResolvedRequirement.update({ where: { id: '' }, data: { atomId: '' }, select: { id: true } }).execute(); @@ -5325,6 +5252,51 @@ const updated = await db.resourcesResolvedRequirement.update({ where: { id: '' } }).execute(); ``` +### `db.serviceBinding` + +CRUD operations for ServiceBinding records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `createdByPrincipal` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `id` | UUID | No | +| `installationId` | UUID | Yes | +| `installationScope` | String | Yes | +| `kind` | String | Yes | +| `lastError` | String | Yes | +| `metadata` | JSON | Yes | +| `namespaceId` | UUID | Yes | +| `observedHost` | String | Yes | +| `realm` | String | Yes | +| `status` | String | Yes | +| `updatedAt` | Datetime | No | +| `updatedBy` | UUID | Yes | +| `updatedByPrincipal` | UUID | Yes | + +**Operations:** + +```typescript +// List all serviceBinding records +const items = await db.serviceBinding.findMany({ select: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, installationScope: true, kind: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Get one by id +const item = await db.serviceBinding.findOne({ id: '', select: { createdAt: true, createdBy: true, createdByPrincipal: true, databaseId: true, id: true, installationId: true, installationScope: true, kind: true, lastError: true, metadata: true, namespaceId: true, observedHost: true, realm: true, status: true, updatedAt: true, updatedBy: true, updatedByPrincipal: true } }).execute(); + +// Create +const created = await db.serviceBinding.create({ data: { createdBy: '', createdByPrincipal: '', databaseId: '', installationId: '', installationScope: '', kind: '', lastError: '', metadata: '', namespaceId: '', observedHost: '', realm: '', status: '', updatedBy: '', updatedByPrincipal: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.serviceBinding.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.serviceBinding.delete({ where: { id: '' } }).execute(); +``` + ### `db.webhookEndpoint` CRUD operations for WebhookEndpoint records. @@ -5532,6 +5504,21 @@ copyGraph const result = await db.mutation.copyGraph({ input: { graphId: '', name: '', scopeId: '' } }).execute(); ``` +### `db.mutation.createFunctionGraph` + +createFunctionGraph + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CreateFunctionGraphInput (required) | + +```typescript +const result = await db.mutation.createFunctionGraph({ input: '' }).execute(); +``` + ### `db.mutation.databaseAddEdge` databaseAddEdge diff --git a/sdk/constructive-sdk/src/compute/orm/index.ts b/sdk/constructive-sdk/src/compute/orm/index.ts index 01033dc125..bc4368881e 100644 --- a/sdk/constructive-sdk/src/compute/orm/index.ts +++ b/sdk/constructive-sdk/src/compute/orm/index.ts @@ -7,7 +7,6 @@ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; import { BuildModel } from './models/build'; import { BuildStepModel } from './models/buildStep'; -import { BuilderBindingModel } from './models/builderBinding'; import { ContentPresetModel } from './models/contentPreset'; import { DatabaseFunctionGraphModel } from './models/databaseFunctionGraph'; import { DatabaseFunctionGraphExecutionCancelRequestModel } from './models/databaseFunctionGraphExecutionCancelRequest'; @@ -51,7 +50,6 @@ import { NamespaceModel } from './models/namespace'; import { NamespaceEventModel } from './models/namespaceEvent'; import { PlatformBuildModel } from './models/platformBuild'; import { PlatformBuildStepModel } from './models/platformBuildStep'; -import { PlatformBuilderBindingModel } from './models/platformBuilderBinding'; import { PlatformFunctionApiBindingModel } from './models/platformFunctionApiBinding'; import { PlatformFunctionCapabilityBindingModel } from './models/platformFunctionCapabilityBinding'; import { PlatformFunctionDefinitionModel } from './models/platformFunctionDefinition'; @@ -98,6 +96,7 @@ import { PlatformResourceUtilizationModel } from './models/platformResourceUtili import { PlatformResourcesHealthModel } from './models/platformResourcesHealth'; import { PlatformResourcesRequirementsStateModel } from './models/platformResourcesRequirementsState'; import { PlatformResourcesResolvedRequirementModel } from './models/platformResourcesResolvedRequirement'; +import { PlatformServiceBindingModel } from './models/platformServiceBinding'; import { PlatformWebhookEndpointModel } from './models/platformWebhookEndpoint'; import { PlatformWebhookEventModel } from './models/platformWebhookEvent'; import { ProposalCommentModel } from './models/proposalComment'; @@ -126,6 +125,7 @@ import { ResourceUtilizationModel } from './models/resourceUtilization'; import { ResourcesHealthModel } from './models/resourcesHealth'; import { ResourcesRequirementsStateModel } from './models/resourcesRequirementsState'; import { ResourcesResolvedRequirementModel } from './models/resourcesResolvedRequirement'; +import { ServiceBindingModel } from './models/serviceBinding'; import { WebhookEndpointModel } from './models/webhookEndpoint'; import { WebhookEventModel } from './models/webhookEvent'; import { createQueryOperations } from './query'; @@ -165,7 +165,6 @@ export function createClient(config: OrmClientConfig) { return { build: new BuildModel(client), buildStep: new BuildStepModel(client), - builderBinding: new BuilderBindingModel(client), contentPreset: new ContentPresetModel(client), databaseFunctionGraph: new DatabaseFunctionGraphModel(client), databaseFunctionGraphExecutionCancelRequest: @@ -212,7 +211,6 @@ export function createClient(config: OrmClientConfig) { namespaceEvent: new NamespaceEventModel(client), platformBuild: new PlatformBuildModel(client), platformBuildStep: new PlatformBuildStepModel(client), - platformBuilderBinding: new PlatformBuilderBindingModel(client), platformFunctionApiBinding: new PlatformFunctionApiBindingModel(client), platformFunctionCapabilityBinding: new PlatformFunctionCapabilityBindingModel(client), platformFunctionDefinition: new PlatformFunctionDefinitionModel(client), @@ -259,6 +257,7 @@ export function createClient(config: OrmClientConfig) { platformResourcesHealth: new PlatformResourcesHealthModel(client), platformResourcesRequirementsState: new PlatformResourcesRequirementsStateModel(client), platformResourcesResolvedRequirement: new PlatformResourcesResolvedRequirementModel(client), + platformServiceBinding: new PlatformServiceBindingModel(client), platformWebhookEndpoint: new PlatformWebhookEndpointModel(client), platformWebhookEvent: new PlatformWebhookEventModel(client), proposalComment: new ProposalCommentModel(client), @@ -287,6 +286,7 @@ export function createClient(config: OrmClientConfig) { resourcesHealth: new ResourcesHealthModel(client), resourcesRequirementsState: new ResourcesRequirementsStateModel(client), resourcesResolvedRequirement: new ResourcesResolvedRequirementModel(client), + serviceBinding: new ServiceBindingModel(client), webhookEndpoint: new WebhookEndpointModel(client), webhookEvent: new WebhookEventModel(client), query: createQueryOperations(client), diff --git a/sdk/constructive-sdk/src/compute/orm/input-types.ts b/sdk/constructive-sdk/src/compute/orm/input-types.ts index c4f3a14a61..8402de3335 100644 --- a/sdk/constructive-sdk/src/compute/orm/input-types.ts +++ b/sdk/constructive-sdk/src/compute/orm/input-types.ts @@ -234,6 +234,7 @@ export interface UUIDListFilter { export type Base64EncodedBinary = unknown; export type ConstructiveInternalTypeImage = unknown; export type ConstructiveInternalTypeUpload = unknown; +export type FileVersion = unknown; export type ResourceRequirement = unknown; /** One run of a repository workflow: its commit, its job, and what it produced */ // ============ Entity Types ============ @@ -261,6 +262,10 @@ export interface Build { jobId?: string | null; /** Build log object in storage; step rows slice it by byte range */ logs?: ConstructiveInternalTypeUpload | null; + /** URL to fetch `logs`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + logsUrl?: string | null; + /** The versions rendered beside `logs`, narrowest first, each with a URL. Empty when there are none. */ + logsVersions?: FileVersion[] | null; /** Matrix shard identity; NULL for a non-matrix build */ matrixKey?: string | null; /** Build detail (step results, durations, failure reason) */ @@ -315,32 +320,6 @@ export interface BuildStep { /** Parsed detail: failure message, assertion diff, counts, annotations */ summary?: Record | null; } -/** Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST */ -export interface BuilderBinding { - createdAt?: string | null; - createdBy?: string | null; - createdByPrincipal?: string | null; - /** Database that owns this resource (database-scoped isolation) */ - databaseId?: string | null; - id: string; - /** BuildKit resource installation serving this binding; may belong to another resource scope */ - installationId?: string | null; - /** Most recent projection failure */ - lastError?: string | null; - /** Reconciler detail (projection timestamps and diagnostics) */ - metadata?: Record | null; - /** Namespace whose builds use this BuildKit installation */ - namespaceId?: string | null; - /** BuildKit address last projected into the namespace (NULL = never projected) */ - observedHost?: string | null; - /** Lane this binding applies to (NULL = the scope's default lane) */ - realm?: string | null; - /** Projection state of BUILDKIT_HOST: pending, active, failed */ - status?: string | null; - updatedAt?: string | null; - updatedBy?: string | null; - updatedByPrincipal?: string | null; -} /** Seed-content preset catalog (limit defaults, trust ladders, ...) — merkle-versioned head over the infra store */ export interface ContentPreset { /** Whether this preset is selectable at provision time */ @@ -1315,6 +1294,10 @@ export interface IntegrationProvider { id: string; /** Provider logo as an image domain value (url, id, key, bucket, provider) */ logo?: ConstructiveInternalTypeImage | null; + /** URL to fetch `logo`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + logoUrl?: string | null; + /** The versions rendered beside `logo`, narrowest first, each with a URL. Empty when there are none. */ + logoVersions?: FileVersion[] | null; /** Human-readable brand name (e.g. 'Mailgun', 'PostgreSQL') */ name?: string | null; /** Canonical config requirements for this provider: array of (name, required, provider) tuples. Used by the UI to auto-fill function/resource required_configs. */ @@ -1395,6 +1378,10 @@ export interface PlatformBuild { jobId?: string | null; /** Build log object in storage; step rows slice it by byte range */ logs?: ConstructiveInternalTypeUpload | null; + /** URL to fetch `logs`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + logsUrl?: string | null; + /** The versions rendered beside `logs`, narrowest first, each with a URL. Empty when there are none. */ + logsVersions?: FileVersion[] | null; /** Matrix shard identity; NULL for a non-matrix build */ matrixKey?: string | null; /** Build detail (step results, durations, failure reason) */ @@ -1447,30 +1434,6 @@ export interface PlatformBuildStep { /** Parsed detail: failure message, assertion diff, counts, annotations */ summary?: Record | null; } -/** Binds a namespace to an installed BuildKit resource for a lane (realm) — the reconciler projects its in-cluster Service address as BUILDKIT_HOST */ -export interface PlatformBuilderBinding { - createdAt?: string | null; - createdBy?: string | null; - createdByPrincipal?: string | null; - id: string; - /** BuildKit resource installation serving this binding; may belong to another resource scope */ - installationId?: string | null; - /** Most recent projection failure */ - lastError?: string | null; - /** Reconciler detail (projection timestamps and diagnostics) */ - metadata?: Record | null; - /** Namespace whose builds use this BuildKit installation */ - namespaceId?: string | null; - /** BuildKit address last projected into the namespace (NULL = never projected) */ - observedHost?: string | null; - /** Lane this binding applies to (NULL = the scope's default lane) */ - realm?: string | null; - /** Projection state of BUILDKIT_HOST: pending, active, failed */ - status?: string | null; - updatedAt?: string | null; - updatedBy?: string | null; - updatedByPrincipal?: string | null; -} /** Join table binding function definitions to API endpoints with per-binding alias and config */ export interface PlatformFunctionApiBinding { /** Binding alias (e.g. default, staging, production) */ @@ -2004,6 +1967,10 @@ export interface PlatformProposalComment { actorId?: string | null; /** Files referenced by the comment body, in the order they were attached */ attachments?: ConstructiveInternalTypeUpload[] | null; + /** URL to fetch `attachments`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + attachmentsUrl?: string[] | null; + /** The versions rendered beside `attachments`, narrowest first, each with a URL. Empty when there are none. */ + attachmentsVersions?: FileVersion[] | null; /** Comment text */ body?: string | null; /** TRGM similarity when searching `body`. Returns null when no trgm search filter is active. */ @@ -2012,6 +1979,9 @@ export interface PlatformProposalComment { createdBy?: string | null; createdByPrincipal?: string | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -2057,6 +2027,9 @@ export interface PlatformProposal { /** When this is wanted by (NULL when nothing is promised) */ dueAt?: string | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -2297,6 +2270,9 @@ export interface PlatformRepository { /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ descriptionTrgmSimilarity?: number | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -2720,6 +2696,34 @@ export interface PlatformResourcesResolvedRequirement { secretsObjectName?: string | null; slug?: string | null; } +/** Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config */ +export interface PlatformServiceBinding { + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + id: string; + /** Resource installation serving this binding, in the installations table of installation_scope */ + installationId?: string | null; + /** Scope whose installations table holds installation_id: this scope or platform */ + installationScope?: string | null; + /** Service this binding projects: builder (BUILDKIT_HOST) or git (GIT_PROVIDER + GIT_SERVICE_URL) */ + kind?: string | null; + /** Most recent projection failure */ + lastError?: string | null; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: Record | null; + /** Namespace whose builds use this BuildKit installation */ + namespaceId?: string | null; + /** Service address last projected into the namespace (NULL = never projected) */ + observedHost?: string | null; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string | null; + /** Projection state of the bound address: pending, active, failed */ + status?: string | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} /** Webhook route authority: (host, path) -> function task_identifier invoked through the webhook channel, with provider, signing-secret reference, and replay window */ export interface PlatformWebhookEndpoint { /** Whether this endpoint currently accepts deliveries */ @@ -2776,6 +2780,10 @@ export interface ProposalComment { actorId?: string | null; /** Files referenced by the comment body, in the order they were attached */ attachments?: ConstructiveInternalTypeUpload[] | null; + /** URL to fetch `attachments`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + attachmentsUrl?: string[] | null; + /** The versions rendered beside `attachments`, narrowest first, each with a URL. Empty when there are none. */ + attachmentsVersions?: FileVersion[] | null; /** Comment text */ body?: string | null; /** TRGM similarity when searching `body`. Returns null when no trgm search filter is active. */ @@ -2786,6 +2794,9 @@ export interface ProposalComment { /** Database that owns this resource (database-scoped isolation) */ databaseId?: string | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -2833,6 +2844,9 @@ export interface Proposal { /** When this is wanted by (NULL when nothing is promised) */ dueAt?: string | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -3089,6 +3103,9 @@ export interface Repository { /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ descriptionTrgmSimilarity?: number | null; embedding?: number[] | null; + embeddingModel?: string | null; + /** TRGM similarity when searching `embeddingModel`. Returns null when no trgm search filter is active. */ + embeddingModelTrgmSimilarity?: number | null; embeddingUpdatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: number | null; @@ -3533,6 +3550,36 @@ export interface ResourcesResolvedRequirement { secretsObjectName?: string | null; slug?: string | null; } +/** Binds a namespace to an installed platform service (BuildKit, hosted Git) for a lane (realm) — the reconciler projects its in-cluster Service address into the namespace config */ +export interface ServiceBinding { + createdAt?: string | null; + createdBy?: string | null; + createdByPrincipal?: string | null; + /** Database that owns this resource (database-scoped isolation) */ + databaseId?: string | null; + id: string; + /** Resource installation serving this binding, in the installations table of installation_scope */ + installationId?: string | null; + /** Scope whose installations table holds installation_id: this scope or platform */ + installationScope?: string | null; + /** Service this binding projects: builder (BUILDKIT_HOST) or git (GIT_PROVIDER + GIT_SERVICE_URL) */ + kind?: string | null; + /** Most recent projection failure */ + lastError?: string | null; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: Record | null; + /** Namespace whose builds use this BuildKit installation */ + namespaceId?: string | null; + /** Service address last projected into the namespace (NULL = never projected) */ + observedHost?: string | null; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string | null; + /** Projection state of the bound address: pending, active, failed */ + status?: string | null; + updatedAt?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} /** Webhook route authority: (host, path) -> function task_identifier invoked through the webhook channel, with provider, signing-secret reference, and replay window */ export interface WebhookEndpoint { /** Whether this endpoint currently accepts deliveries */ @@ -3607,9 +3654,6 @@ export interface BuildRelations { workflow?: RepositoryWorkflow | null; } export interface BuildStepRelations {} -export interface BuilderBindingRelations { - namespace?: Namespace | null; -} export interface ContentPresetRelations {} export interface DatabaseFunctionGraphRelations { databaseFunctionGraphExecutionsByGraphId?: ConnectionResult; @@ -3643,7 +3687,7 @@ export interface FunctionDefinitionRelations { webhookEndpoints?: ConnectionResult; } export interface FunctionDeploymentRelations { - namespace?: Namespace | null; + namespaceByNamespaceIdAndDatabaseId?: Namespace | null; } export interface FunctionDeploymentEventRelations {} export interface FunctionExecutionLogRelations {} @@ -3683,13 +3727,13 @@ export interface InfraRefRelations {} export interface InfraStoreRelations {} export interface IntegrationProviderRelations {} export interface NamespaceRelations { - builderBindings?: ConnectionResult; - functionDeployments?: ConnectionResult; - registryBindings?: ConnectionResult; - resourceDefinitions?: ConnectionResult; - resourceInstallations?: ConnectionResult; - resources?: ConnectionResult; - webhookEndpoints?: ConnectionResult; + functionDeploymentsByNamespaceIdAndDatabaseId?: ConnectionResult; + registryBindingsByNamespaceIdAndDatabaseId?: ConnectionResult; + resourceDefinitionsByNamespaceIdAndDatabaseId?: ConnectionResult; + resourceInstallationsByNamespaceIdAndDatabaseId?: ConnectionResult; + resourcesByNamespaceIdAndDatabaseId?: ConnectionResult; + serviceBindingsByNamespaceIdAndDatabaseId?: ConnectionResult; + webhookEndpointsByNamespaceIdAndDatabaseId?: ConnectionResult; } export interface NamespaceEventRelations {} export interface PlatformBuildRelations { @@ -3699,9 +3743,6 @@ export interface PlatformBuildRelations { workflow?: PlatformRepositoryWorkflow | null; } export interface PlatformBuildStepRelations {} -export interface PlatformBuilderBindingRelations { - namespace?: PlatformNamespace | null; -} export interface PlatformFunctionApiBindingRelations { functionDefinition?: PlatformFunctionDefinition | null; platformFunctionInvocationsByApiBindingId?: ConnectionResult; @@ -3742,12 +3783,12 @@ export interface PlatformInfraStoreRelations {} export interface PlatformK8sResourceKindRelations {} export interface PlatformK8sSpecRuleRelations {} export interface PlatformNamespaceRelations { - platformBuilderBindingsByNamespaceId?: ConnectionResult; platformFunctionDeploymentsByNamespaceId?: ConnectionResult; platformRegistryBindingsByNamespaceId?: ConnectionResult; platformResourceDefinitionsByNamespaceId?: ConnectionResult; platformResourceInstallationsByNamespaceId?: ConnectionResult; platformResourcesByNamespaceId?: ConnectionResult; + platformServiceBindingsByNamespaceId?: ConnectionResult; platformWebhookEndpointsByNamespaceId?: ConnectionResult; } export interface PlatformNamespaceEventRelations {} @@ -3839,6 +3880,9 @@ export interface PlatformResourceUtilizationRelations {} export interface PlatformResourcesHealthRelations {} export interface PlatformResourcesRequirementsStateRelations {} export interface PlatformResourcesResolvedRequirementRelations {} +export interface PlatformServiceBindingRelations { + namespace?: PlatformNamespace | null; +} export interface PlatformWebhookEndpointRelations { functionDefinition?: PlatformFunctionDefinition | null; namespace?: PlatformNamespace | null; @@ -3876,7 +3920,7 @@ export interface ProposalsChunkRelations { proposals?: Proposal | null; } export interface RegistryBindingRelations { - namespace?: Namespace | null; + namespaceByNamespaceIdAndDatabaseId?: Namespace | null; registry?: Registry | null; } export interface RegistryRelations { @@ -3910,18 +3954,18 @@ export interface RepositoryWorkflowRelations { } export interface ResourceRelations { installation?: ResourceInstallation | null; - namespace?: Namespace | null; + namespaceByNamespaceIdAndDatabaseId?: Namespace | null; resourceDefinition?: ResourceDefinition | null; resourceStatusChecks?: ConnectionResult; } export interface ResourceDeclaredCapacityRelations {} export interface ResourceDefinitionRelations { - namespace?: Namespace | null; + namespaceByNamespaceIdAndDatabaseId?: Namespace | null; resources?: ConnectionResult; } export interface ResourceEventRelations {} export interface ResourceInstallationRelations { - namespace?: Namespace | null; + namespaceByNamespaceIdAndDatabaseId?: Namespace | null; registriesByInstallationId?: ConnectionResult; resourcesByInstallationId?: ConnectionResult; } @@ -3935,9 +3979,12 @@ export interface ResourceUtilizationRelations {} export interface ResourcesHealthRelations {} export interface ResourcesRequirementsStateRelations {} export interface ResourcesResolvedRequirementRelations {} +export interface ServiceBindingRelations { + namespaceByNamespaceIdAndDatabaseId?: Namespace | null; +} export interface WebhookEndpointRelations { functionDefinition?: FunctionDefinition | null; - namespace?: Namespace | null; + namespaceByNamespaceIdAndDatabaseId?: Namespace | null; webhookEventsByEndpointId?: ConnectionResult; } export interface WebhookEventRelations { @@ -3946,7 +3993,6 @@ export interface WebhookEventRelations { // ============ Entity Types With Relations ============ export type BuildWithRelations = Build & BuildRelations; export type BuildStepWithRelations = BuildStep & BuildStepRelations; -export type BuilderBindingWithRelations = BuilderBinding & BuilderBindingRelations; export type ContentPresetWithRelations = ContentPreset & ContentPresetRelations; export type DatabaseFunctionGraphWithRelations = DatabaseFunctionGraph & DatabaseFunctionGraphRelations; @@ -4007,8 +4053,6 @@ export type NamespaceWithRelations = Namespace & NamespaceRelations; export type NamespaceEventWithRelations = NamespaceEvent & NamespaceEventRelations; export type PlatformBuildWithRelations = PlatformBuild & PlatformBuildRelations; export type PlatformBuildStepWithRelations = PlatformBuildStep & PlatformBuildStepRelations; -export type PlatformBuilderBindingWithRelations = PlatformBuilderBinding & - PlatformBuilderBindingRelations; export type PlatformFunctionApiBindingWithRelations = PlatformFunctionApiBinding & PlatformFunctionApiBindingRelations; export type PlatformFunctionCapabilityBindingWithRelations = PlatformFunctionCapabilityBinding & @@ -4089,6 +4133,8 @@ export type PlatformResourcesRequirementsStateWithRelations = PlatformResourcesR PlatformResourcesRequirementsStateRelations; export type PlatformResourcesResolvedRequirementWithRelations = PlatformResourcesResolvedRequirement & PlatformResourcesResolvedRequirementRelations; +export type PlatformServiceBindingWithRelations = PlatformServiceBinding & + PlatformServiceBindingRelations; export type PlatformWebhookEndpointWithRelations = PlatformWebhookEndpoint & PlatformWebhookEndpointRelations; export type PlatformWebhookEventWithRelations = PlatformWebhookEvent & @@ -4126,6 +4172,7 @@ export type ResourcesRequirementsStateWithRelations = ResourcesRequirementsState ResourcesRequirementsStateRelations; export type ResourcesResolvedRequirementWithRelations = ResourcesResolvedRequirement & ResourcesResolvedRequirementRelations; +export type ServiceBindingWithRelations = ServiceBinding & ServiceBindingRelations; export type WebhookEndpointWithRelations = WebhookEndpoint & WebhookEndpointRelations; export type WebhookEventWithRelations = WebhookEvent & WebhookEventRelations; // ============ Entity Select Types ============ @@ -4143,6 +4190,13 @@ export type BuildSelect = { imageRef?: boolean; jobId?: boolean; logs?: boolean; + logsUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + logsVersions?: boolean; matrixKey?: boolean; metadata?: boolean; proposalId?: boolean; @@ -4184,26 +4238,6 @@ export type BuildStepSelect = { status?: boolean; summary?: boolean; }; -export type BuilderBindingSelect = { - createdAt?: boolean; - createdBy?: boolean; - createdByPrincipal?: boolean; - databaseId?: boolean; - id?: boolean; - installationId?: boolean; - lastError?: boolean; - metadata?: boolean; - namespaceId?: boolean; - observedHost?: boolean; - realm?: boolean; - status?: boolean; - updatedAt?: boolean; - updatedBy?: boolean; - updatedByPrincipal?: boolean; - namespace?: { - select: NamespaceSelect; - }; -}; export type ContentPresetSelect = { active?: boolean; commitId?: boolean; @@ -4508,7 +4542,7 @@ export type FunctionDeploymentSelect = { timeoutSeconds?: boolean; updatedAt?: boolean; updatedByPrincipal?: boolean; - namespace?: { + namespaceByNamespaceIdAndDatabaseId?: { select: NamespaceSelect; }; }; @@ -4829,6 +4863,13 @@ export type IntegrationProviderSelect = { icon?: boolean; id?: boolean; logo?: boolean; + logoUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + logoVersions?: boolean; name?: boolean; requiredConfigs?: boolean; requiredSecrets?: boolean; @@ -4850,43 +4891,43 @@ export type NamespaceSelect = { namespaceName?: boolean; status?: boolean; updatedAt?: boolean; - builderBindings?: { - select: BuilderBindingSelect; - first?: number; - filter?: BuilderBindingFilter; - orderBy?: BuilderBindingOrderBy[]; - }; - functionDeployments?: { + functionDeploymentsByNamespaceIdAndDatabaseId?: { select: FunctionDeploymentSelect; first?: number; filter?: FunctionDeploymentFilter; orderBy?: FunctionDeploymentOrderBy[]; }; - registryBindings?: { + registryBindingsByNamespaceIdAndDatabaseId?: { select: RegistryBindingSelect; first?: number; filter?: RegistryBindingFilter; orderBy?: RegistryBindingOrderBy[]; }; - resourceDefinitions?: { + resourceDefinitionsByNamespaceIdAndDatabaseId?: { select: ResourceDefinitionSelect; first?: number; filter?: ResourceDefinitionFilter; orderBy?: ResourceDefinitionOrderBy[]; }; - resourceInstallations?: { + resourceInstallationsByNamespaceIdAndDatabaseId?: { select: ResourceInstallationSelect; first?: number; filter?: ResourceInstallationFilter; orderBy?: ResourceInstallationOrderBy[]; }; - resources?: { + resourcesByNamespaceIdAndDatabaseId?: { select: ResourceSelect; first?: number; filter?: ResourceFilter; orderBy?: ResourceOrderBy[]; }; - webhookEndpoints?: { + serviceBindingsByNamespaceIdAndDatabaseId?: { + select: ServiceBindingSelect; + first?: number; + filter?: ServiceBindingFilter; + orderBy?: ServiceBindingOrderBy[]; + }; + webhookEndpointsByNamespaceIdAndDatabaseId?: { select: WebhookEndpointSelect; first?: number; filter?: WebhookEndpointFilter; @@ -4916,6 +4957,13 @@ export type PlatformBuildSelect = { imageRef?: boolean; jobId?: boolean; logs?: boolean; + logsUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + logsVersions?: boolean; matrixKey?: boolean; metadata?: boolean; proposalId?: boolean; @@ -4956,25 +5004,6 @@ export type PlatformBuildStepSelect = { status?: boolean; summary?: boolean; }; -export type PlatformBuilderBindingSelect = { - createdAt?: boolean; - createdBy?: boolean; - createdByPrincipal?: boolean; - id?: boolean; - installationId?: boolean; - lastError?: boolean; - metadata?: boolean; - namespaceId?: boolean; - observedHost?: boolean; - realm?: boolean; - status?: boolean; - updatedAt?: boolean; - updatedBy?: boolean; - updatedByPrincipal?: boolean; - namespace?: { - select: PlatformNamespaceSelect; - }; -}; export type PlatformFunctionApiBindingSelect = { alias?: boolean; apiId?: boolean; @@ -5313,12 +5342,6 @@ export type PlatformNamespaceSelect = { namespaceName?: boolean; status?: boolean; updatedAt?: boolean; - platformBuilderBindingsByNamespaceId?: { - select: PlatformBuilderBindingSelect; - first?: number; - filter?: PlatformBuilderBindingFilter; - orderBy?: PlatformBuilderBindingOrderBy[]; - }; platformFunctionDeploymentsByNamespaceId?: { select: PlatformFunctionDeploymentSelect; first?: number; @@ -5349,6 +5372,12 @@ export type PlatformNamespaceSelect = { filter?: PlatformResourceFilter; orderBy?: PlatformResourceOrderBy[]; }; + platformServiceBindingsByNamespaceId?: { + select: PlatformServiceBindingSelect; + first?: number; + filter?: PlatformServiceBindingFilter; + orderBy?: PlatformServiceBindingOrderBy[]; + }; platformWebhookEndpointsByNamespaceId?: { select: PlatformWebhookEndpointSelect; first?: number; @@ -5368,12 +5397,21 @@ export type PlatformNamespaceEventSelect = { export type PlatformProposalCommentSelect = { actorId?: boolean; attachments?: boolean; + attachmentsUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + attachmentsVersions?: boolean; body?: boolean; bodyTrgmSimilarity?: boolean; createdAt?: boolean; createdBy?: boolean; createdByPrincipal?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; id?: boolean; @@ -5411,6 +5449,8 @@ export type PlatformProposalSelect = { decidedAt?: boolean; dueAt?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; id?: boolean; @@ -5648,6 +5688,8 @@ export type PlatformRepositorySelect = { description?: boolean; descriptionTrgmSimilarity?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; externalId?: boolean; @@ -6049,6 +6091,27 @@ export type PlatformResourcesResolvedRequirementSelect = { secretsObjectName?: boolean; slug?: boolean; }; +export type PlatformServiceBindingSelect = { + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + id?: boolean; + installationId?: boolean; + installationScope?: boolean; + kind?: boolean; + lastError?: boolean; + metadata?: boolean; + namespaceId?: boolean; + observedHost?: boolean; + realm?: boolean; + status?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + namespace?: { + select: PlatformNamespaceSelect; + }; +}; export type PlatformWebhookEndpointSelect = { active?: boolean; createdAt?: boolean; @@ -6098,6 +6161,13 @@ export type PlatformWebhookEventSelect = { export type ProposalCommentSelect = { actorId?: boolean; attachments?: boolean; + attachmentsUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + attachmentsVersions?: boolean; body?: boolean; bodyTrgmSimilarity?: boolean; createdAt?: boolean; @@ -6105,6 +6175,8 @@ export type ProposalCommentSelect = { createdByPrincipal?: boolean; databaseId?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; id?: boolean; @@ -6143,6 +6215,8 @@ export type ProposalSelect = { decidedAt?: boolean; dueAt?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; id?: boolean; @@ -6315,7 +6389,7 @@ export type RegistryBindingSelect = { updatedAt?: boolean; updatedBy?: boolean; updatedByPrincipal?: boolean; - namespace?: { + namespaceByNamespaceIdAndDatabaseId?: { select: NamespaceSelect; }; registry?: { @@ -6388,6 +6462,8 @@ export type RepositorySelect = { description?: boolean; descriptionTrgmSimilarity?: boolean; embedding?: boolean; + embeddingModel?: boolean; + embeddingModelTrgmSimilarity?: boolean; embeddingUpdatedAt?: boolean; embeddingVectorDistance?: boolean; externalId?: boolean; @@ -6558,7 +6634,7 @@ export type ResourceSelect = { installation?: { select: ResourceInstallationSelect; }; - namespace?: { + namespaceByNamespaceIdAndDatabaseId?: { select: NamespaceSelect; }; resourceDefinition?: { @@ -6609,7 +6685,7 @@ export type ResourceDefinitionSelect = { updatedAt?: boolean; updatedBy?: boolean; updatedByPrincipal?: boolean; - namespace?: { + namespaceByNamespaceIdAndDatabaseId?: { select: NamespaceSelect; }; resources?: { @@ -6646,7 +6722,7 @@ export type ResourceInstallationSelect = { updatedAt?: boolean; updatedBy?: boolean; updatedByPrincipal?: boolean; - namespace?: { + namespaceByNamespaceIdAndDatabaseId?: { select: NamespaceSelect; }; registriesByInstallationId?: { @@ -6800,6 +6876,28 @@ export type ResourcesResolvedRequirementSelect = { secretsObjectName?: boolean; slug?: boolean; }; +export type ServiceBindingSelect = { + createdAt?: boolean; + createdBy?: boolean; + createdByPrincipal?: boolean; + databaseId?: boolean; + id?: boolean; + installationId?: boolean; + installationScope?: boolean; + kind?: boolean; + lastError?: boolean; + metadata?: boolean; + namespaceId?: boolean; + observedHost?: boolean; + realm?: boolean; + status?: boolean; + updatedAt?: boolean; + updatedBy?: boolean; + updatedByPrincipal?: boolean; + namespaceByNamespaceIdAndDatabaseId?: { + select: NamespaceSelect; + }; +}; export type WebhookEndpointSelect = { active?: boolean; createdAt?: boolean; @@ -6820,7 +6918,7 @@ export type WebhookEndpointSelect = { functionDefinition?: { select: FunctionDefinitionSelect; }; - namespace?: { + namespaceByNamespaceIdAndDatabaseId?: { select: NamespaceSelect; }; webhookEventsByEndpointId?: { @@ -6957,46 +7055,6 @@ export interface BuildStepFilter { /** Filter by the object’s `summary` field. */ summary?: JSONFilter; } -export interface BuilderBindingFilter { - /** Checks for all expressions in this list. */ - and?: BuilderBindingFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `createdByPrincipal` field. */ - createdByPrincipal?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: BuilderBindingFilter; - /** Filter by the object’s `observedHost` field. */ - observedHost?: StringFilter; - /** Checks for any expressions in this list. */ - or?: BuilderBindingFilter[]; - /** Filter by the object’s `realm` field. */ - realm?: StringFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `updatedByPrincipal` field. */ - updatedByPrincipal?: UUIDFilter; -} export interface ContentPresetFilter { /** Filter by the object’s `active` field. */ active?: BooleanFilter; @@ -7557,8 +7615,8 @@ export interface FunctionDeploymentFilter { lastError?: StringFilter; /** Filter by the object’s `lastErrorAt` field. */ lastErrorAt?: DatetimeFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -8271,10 +8329,6 @@ export interface NamespaceFilter { and?: NamespaceFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; - /** Filter by the object’s `builderBindings` relation. */ - builderBindings?: NamespaceToManyBuilderBindingFilter; - /** `builderBindings` exist. */ - builderBindingsExist?: boolean; /** Filter by the object’s `clusterId` field. */ clusterId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -8283,10 +8337,10 @@ export interface NamespaceFilter { databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; - /** Filter by the object’s `functionDeployments` relation. */ - functionDeployments?: NamespaceToManyFunctionDeploymentFilter; - /** `functionDeployments` exist. */ - functionDeploymentsExist?: boolean; + /** Filter by the object’s `functionDeploymentsByNamespaceIdAndDatabaseId` relation. */ + functionDeploymentsByNamespaceIdAndDatabaseId?: NamespaceToManyFunctionDeploymentFilter; + /** `functionDeploymentsByNamespaceIdAndDatabaseId` exist. */ + functionDeploymentsByNamespaceIdAndDatabaseIdExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isActive` field. */ @@ -8305,30 +8359,34 @@ export interface NamespaceFilter { not?: NamespaceFilter; /** Checks for any expressions in this list. */ or?: NamespaceFilter[]; - /** Filter by the object’s `registryBindings` relation. */ - registryBindings?: NamespaceToManyRegistryBindingFilter; - /** `registryBindings` exist. */ - registryBindingsExist?: boolean; - /** Filter by the object’s `resourceDefinitions` relation. */ - resourceDefinitions?: NamespaceToManyResourceDefinitionFilter; - /** `resourceDefinitions` exist. */ - resourceDefinitionsExist?: boolean; - /** Filter by the object’s `resourceInstallations` relation. */ - resourceInstallations?: NamespaceToManyResourceInstallationFilter; - /** `resourceInstallations` exist. */ - resourceInstallationsExist?: boolean; - /** Filter by the object’s `resources` relation. */ - resources?: NamespaceToManyResourceFilter; - /** `resources` exist. */ - resourcesExist?: boolean; + /** Filter by the object’s `registryBindingsByNamespaceIdAndDatabaseId` relation. */ + registryBindingsByNamespaceIdAndDatabaseId?: NamespaceToManyRegistryBindingFilter; + /** `registryBindingsByNamespaceIdAndDatabaseId` exist. */ + registryBindingsByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `resourceDefinitionsByNamespaceIdAndDatabaseId` relation. */ + resourceDefinitionsByNamespaceIdAndDatabaseId?: NamespaceToManyResourceDefinitionFilter; + /** `resourceDefinitionsByNamespaceIdAndDatabaseId` exist. */ + resourceDefinitionsByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `resourceInstallationsByNamespaceIdAndDatabaseId` relation. */ + resourceInstallationsByNamespaceIdAndDatabaseId?: NamespaceToManyResourceInstallationFilter; + /** `resourceInstallationsByNamespaceIdAndDatabaseId` exist. */ + resourceInstallationsByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `resourcesByNamespaceIdAndDatabaseId` relation. */ + resourcesByNamespaceIdAndDatabaseId?: NamespaceToManyResourceFilter; + /** `resourcesByNamespaceIdAndDatabaseId` exist. */ + resourcesByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `serviceBindingsByNamespaceIdAndDatabaseId` relation. */ + serviceBindingsByNamespaceIdAndDatabaseId?: NamespaceToManyServiceBindingFilter; + /** `serviceBindingsByNamespaceIdAndDatabaseId` exist. */ + serviceBindingsByNamespaceIdAndDatabaseIdExist?: boolean; /** Filter by the object’s `status` field. */ status?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `webhookEndpoints` relation. */ - webhookEndpoints?: NamespaceToManyWebhookEndpointFilter; - /** `webhookEndpoints` exist. */ - webhookEndpointsExist?: boolean; + /** Filter by the object’s `webhookEndpointsByNamespaceIdAndDatabaseId` relation. */ + webhookEndpointsByNamespaceIdAndDatabaseId?: NamespaceToManyWebhookEndpointFilter; + /** `webhookEndpointsByNamespaceIdAndDatabaseId` exist. */ + webhookEndpointsByNamespaceIdAndDatabaseIdExist?: boolean; } export interface NamespaceEventFilter { /** Filter by the object’s `actorId` field. */ @@ -8458,44 +8516,6 @@ export interface PlatformBuildStepFilter { /** Filter by the object’s `summary` field. */ summary?: JSONFilter; } -export interface PlatformBuilderBindingFilter { - /** Checks for all expressions in this list. */ - and?: PlatformBuilderBindingFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `createdByPrincipal` field. */ - createdByPrincipal?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: PlatformNamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: PlatformBuilderBindingFilter; - /** Filter by the object’s `observedHost` field. */ - observedHost?: StringFilter; - /** Checks for any expressions in this list. */ - or?: PlatformBuilderBindingFilter[]; - /** Filter by the object’s `realm` field. */ - realm?: StringFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `updatedByPrincipal` field. */ - updatedByPrincipal?: UUIDFilter; -} export interface PlatformFunctionApiBindingFilter { /** Filter by the object’s `alias` field. */ alias?: StringFilter; @@ -9166,10 +9186,6 @@ export interface PlatformNamespaceFilter { not?: PlatformNamespaceFilter; /** Checks for any expressions in this list. */ or?: PlatformNamespaceFilter[]; - /** Filter by the object’s `platformBuilderBindingsByNamespaceId` relation. */ - platformBuilderBindingsByNamespaceId?: PlatformNamespaceToManyPlatformBuilderBindingFilter; - /** `platformBuilderBindingsByNamespaceId` exist. */ - platformBuilderBindingsByNamespaceIdExist?: boolean; /** Filter by the object’s `platformFunctionDeploymentsByNamespaceId` relation. */ platformFunctionDeploymentsByNamespaceId?: PlatformNamespaceToManyPlatformFunctionDeploymentFilter; /** `platformFunctionDeploymentsByNamespaceId` exist. */ @@ -9190,6 +9206,10 @@ export interface PlatformNamespaceFilter { platformResourcesByNamespaceId?: PlatformNamespaceToManyPlatformResourceFilter; /** `platformResourcesByNamespaceId` exist. */ platformResourcesByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformServiceBindingsByNamespaceId` relation. */ + platformServiceBindingsByNamespaceId?: PlatformNamespaceToManyPlatformServiceBindingFilter; + /** `platformServiceBindingsByNamespaceId` exist. */ + platformServiceBindingsByNamespaceIdExist?: boolean; /** Filter by the object’s `platformWebhookEndpointsByNamespaceId` relation. */ platformWebhookEndpointsByNamespaceId?: PlatformNamespaceToManyPlatformWebhookEndpointFilter; /** `platformWebhookEndpointsByNamespaceId` exist. */ @@ -9238,6 +9258,8 @@ export interface PlatformProposalCommentFilter { createdByPrincipal?: UUIDFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -9266,6 +9288,8 @@ export interface PlatformProposalCommentFilter { search?: FullTextFilter; /** TRGM search on the `body` column. */ trgmBody?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `path` column. */ trgmPath?: TrgmSearchInput; /** TSV search on the `search` column. */ @@ -9312,6 +9336,8 @@ export interface PlatformProposalFilter { dueAt?: DatetimeFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -9386,6 +9412,8 @@ export interface PlatformProposalFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `closed_reason` column. */ trgmClosedReason?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `merge_commit` column. */ @@ -9712,6 +9740,8 @@ export interface PlatformRepositoryFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `externalId` field. */ @@ -9762,6 +9792,8 @@ export interface PlatformRepositoryFilter { trgmDefaultBranch?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `external_id` column. */ trgmExternalId?: TrgmSearchInput; /** TRGM search on the `name` column. */ @@ -10447,6 +10479,48 @@ export interface PlatformResourcesResolvedRequirementFilter { /** Filter by the object’s `slug` field. */ slug?: StringFilter; } +export interface PlatformServiceBindingFilter { + /** Checks for all expressions in this list. */ + and?: PlatformServiceBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `installationScope` field. */ + installationScope?: StringFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformServiceBindingFilter; + /** Filter by the object’s `observedHost` field. */ + observedHost?: StringFilter; + /** Checks for any expressions in this list. */ + or?: PlatformServiceBindingFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} export interface PlatformWebhookEndpointFilter { /** Filter by the object’s `active` field. */ active?: BooleanFilter; @@ -10546,6 +10620,8 @@ export interface ProposalCommentFilter { databaseId?: UUIDFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -10574,6 +10650,8 @@ export interface ProposalCommentFilter { search?: FullTextFilter; /** TRGM search on the `body` column. */ trgmBody?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `path` column. */ trgmPath?: TrgmSearchInput; /** TSV search on the `search` column. */ @@ -10626,6 +10704,8 @@ export interface ProposalFilter { dueAt?: DatetimeFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -10696,6 +10776,8 @@ export interface ProposalFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `closed_reason` column. */ trgmClosedReason?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `merge_commit` column. */ @@ -10896,8 +10978,8 @@ export interface RegistryBindingFilter { id?: UUIDFilter; /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -11042,6 +11124,8 @@ export interface RepositoryFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `externalId` field. */ @@ -11088,6 +11172,8 @@ export interface RepositoryFilter { trgmDefaultBranch?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `external_id` column. */ trgmExternalId?: TrgmSearchInput; /** TRGM search on the `name` column. */ @@ -11290,8 +11376,8 @@ export interface ResourceFilter { memoryRequestBytes?: BigIntFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -11396,8 +11482,8 @@ export interface ResourceDefinitionFilter { labels?: JSONFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -11462,8 +11548,8 @@ export interface ResourceInstallationFilter { id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -11795,6 +11881,50 @@ export interface ResourcesResolvedRequirementFilter { /** Filter by the object’s `slug` field. */ slug?: StringFilter; } +export interface ServiceBindingFilter { + /** Checks for all expressions in this list. */ + and?: ServiceBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `installationScope` field. */ + installationScope?: StringFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ServiceBindingFilter; + /** Filter by the object’s `observedHost` field. */ + observedHost?: StringFilter; + /** Checks for any expressions in this list. */ + or?: ServiceBindingFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} export interface WebhookEndpointFilter { /** Filter by the object’s `active` field. */ active?: BooleanFilter; @@ -11816,8 +11946,8 @@ export interface WebhookEndpointFilter { host?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -11966,40 +12096,6 @@ export type BuildStepOrderBy = | 'STATUS_DESC' | 'SUMMARY_ASC' | 'SUMMARY_DESC'; -export type BuilderBindingOrderBy = - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'CREATED_BY_PRINCIPAL_ASC' - | 'CREATED_BY_PRINCIPAL_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'INSTALLATION_ID_ASC' - | 'INSTALLATION_ID_DESC' - | 'LAST_ERROR_ASC' - | 'LAST_ERROR_DESC' - | 'METADATA_ASC' - | 'METADATA_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' - | 'NATURAL' - | 'OBSERVED_HOST_ASC' - | 'OBSERVED_HOST_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'REALM_ASC' - | 'REALM_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'UPDATED_BY_PRINCIPAL_ASC' - | 'UPDATED_BY_PRINCIPAL_DESC'; export type ContentPresetOrderBy = | 'ACTIVE_ASC' | 'ACTIVE_DESC' @@ -13198,38 +13294,6 @@ export type PlatformBuildStepOrderBy = | 'STATUS_DESC' | 'SUMMARY_ASC' | 'SUMMARY_DESC'; -export type PlatformBuilderBindingOrderBy = - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'CREATED_BY_PRINCIPAL_ASC' - | 'CREATED_BY_PRINCIPAL_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'INSTALLATION_ID_ASC' - | 'INSTALLATION_ID_DESC' - | 'LAST_ERROR_ASC' - | 'LAST_ERROR_DESC' - | 'METADATA_ASC' - | 'METADATA_DESC' - | 'NAMESPACE_ID_ASC' - | 'NAMESPACE_ID_DESC' - | 'NATURAL' - | 'OBSERVED_HOST_ASC' - | 'OBSERVED_HOST_DESC' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'REALM_ASC' - | 'REALM_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'UPDATED_BY_PRINCIPAL_ASC' - | 'UPDATED_BY_PRINCIPAL_DESC'; export type PlatformFunctionApiBindingOrderBy = | 'ALIAS_ASC' | 'ALIAS_DESC' @@ -13829,6 +13893,10 @@ export type PlatformProposalCommentOrderBy = | 'CREATED_BY_PRINCIPAL_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -13885,6 +13953,10 @@ export type PlatformProposalOrderBy = | 'DUE_AT_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -14185,6 +14257,10 @@ export type PlatformRepositoryOrderBy = | 'DESCRIPTION_TRGM_SIMILARITY_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -14766,6 +14842,42 @@ export type PlatformResourcesResolvedRequirementOrderBy = | 'SECRETS_OBJECT_NAME_DESC' | 'SLUG_ASC' | 'SLUG_DESC'; +export type PlatformServiceBindingOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INSTALLATION_ID_ASC' + | 'INSTALLATION_ID_DESC' + | 'INSTALLATION_SCOPE_ASC' + | 'INSTALLATION_SCOPE_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'OBSERVED_HOST_ASC' + | 'OBSERVED_HOST_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type PlatformWebhookEndpointOrderBy = | 'ACTIVE_ASC' | 'ACTIVE_DESC' @@ -14847,6 +14959,10 @@ export type ProposalCommentOrderBy = | 'DATABASE_ID_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -14905,6 +15021,10 @@ export type ProposalOrderBy = | 'DUE_AT_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -15221,6 +15341,10 @@ export type RepositoryOrderBy = | 'DESCRIPTION_TRGM_SIMILARITY_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' + | 'EMBEDDING_MODEL_ASC' + | 'EMBEDDING_MODEL_DESC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_ASC' + | 'EMBEDDING_MODEL_TRGM_SIMILARITY_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' @@ -15824,6 +15948,44 @@ export type ResourcesResolvedRequirementOrderBy = | 'SECRETS_OBJECT_NAME_DESC' | 'SLUG_ASC' | 'SLUG_DESC'; +export type ServiceBindingOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'CREATED_BY_PRINCIPAL_ASC' + | 'CREATED_BY_PRINCIPAL_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'INSTALLATION_ID_ASC' + | 'INSTALLATION_ID_DESC' + | 'INSTALLATION_SCOPE_ASC' + | 'INSTALLATION_SCOPE_DESC' + | 'KIND_ASC' + | 'KIND_DESC' + | 'LAST_ERROR_ASC' + | 'LAST_ERROR_DESC' + | 'METADATA_ASC' + | 'METADATA_DESC' + | 'NAMESPACE_ID_ASC' + | 'NAMESPACE_ID_DESC' + | 'NATURAL' + | 'OBSERVED_HOST_ASC' + | 'OBSERVED_HOST_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'REALM_ASC' + | 'REALM_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'UPDATED_BY_PRINCIPAL_ASC' + | 'UPDATED_BY_PRINCIPAL_DESC'; export type WebhookEndpointOrderBy = | 'ACTIVE_ASC' | 'ACTIVE_DESC' @@ -15927,7 +16089,6 @@ export interface BuildPatch { imageRef?: string | null; jobId?: string | null; logs?: ConstructiveInternalTypeUpload | null; - logsUpload?: File | null; matrixKey?: string | null; metadata?: Record | null; proposalId?: string | null; @@ -15992,46 +16153,6 @@ export interface DeleteBuildStepInput { clientMutationId?: string; id: string; } -export interface CreateBuilderBindingInput { - clientMutationId?: string; - builderBinding: { - createdBy?: string; - createdByPrincipal?: string; - databaseId: string; - installationId: string; - lastError?: string; - metadata?: Record; - namespaceId: string; - observedHost?: string; - realm?: string; - status?: string; - updatedBy?: string; - updatedByPrincipal?: string; - }; -} -export interface BuilderBindingPatch { - createdBy?: string | null; - createdByPrincipal?: string | null; - databaseId?: string | null; - installationId?: string | null; - lastError?: string | null; - metadata?: Record | null; - namespaceId?: string | null; - observedHost?: string | null; - realm?: string | null; - status?: string | null; - updatedBy?: string | null; - updatedByPrincipal?: string | null; -} -export interface UpdateBuilderBindingInput { - clientMutationId?: string; - id: string; - builderBindingPatch: BuilderBindingPatch; -} -export interface DeleteBuilderBindingInput { - clientMutationId?: string; - id: string; -} export interface CreateContentPresetInput { clientMutationId?: string; contentPreset: { @@ -16064,20 +16185,6 @@ export interface DeleteContentPresetInput { clientMutationId?: string; id: string; } -export interface CreateDatabaseFunctionGraphInput { - clientMutationId?: string; - databaseFunctionGraph: { - context?: string; - createdBy?: string; - databaseId: string; - definitionsCommitId: string; - description?: string; - isValid?: boolean; - name?: string; - storeId: string; - validationErrors?: Record; - }; -} export interface DatabaseFunctionGraphPatch { context?: string | null; createdBy?: string | null; @@ -16304,13 +16411,6 @@ export interface DeleteDatabaseGraphCommitInput { clientMutationId?: string; id: string; } -export interface CreateDatabaseGraphGetAllTreeNodesRecordInput { - clientMutationId?: string; - databaseGraphGetAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; -} export interface DatabaseGraphGetAllTreeNodesRecordPatch { data?: Record | null; path?: string[] | null; @@ -16726,20 +16826,6 @@ export interface DeleteFunctionGraphCommitInput { clientMutationId?: string; id: string; } -export interface CreateFunctionGraphInput { - clientMutationId?: string; - functionGraph: { - context?: string; - createdBy?: string; - definitionsCommitId: string; - description?: string; - isValid?: boolean; - name?: string; - scopeId: string; - storeId: string; - validationErrors?: Record; - }; -} export interface FunctionGraphPatch { context?: string | null; createdBy?: string | null; @@ -17144,13 +17230,6 @@ export interface DeleteFunctionScheduleInput { clientMutationId?: string; id: string; } -export interface CreateGetAllTreeNodesRecordInput { - clientMutationId?: string; - getAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; -} export interface GetAllTreeNodesRecordPatch { data?: Record | null; path?: string[] | null; @@ -17278,13 +17357,6 @@ export interface DeleteInfraCommitInput { clientMutationId?: string; id: string; } -export interface CreateInfraGetAllTreeNodesRecordInput { - clientMutationId?: string; - infraGetAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; -} export interface InfraGetAllTreeNodesRecordPatch { data?: Record | null; path?: string[] | null; @@ -17388,7 +17460,6 @@ export interface IntegrationProviderPatch { description?: string | null; icon?: string | null; logo?: ConstructiveInternalTypeImage | null; - logoUpload?: File | null; name?: string | null; requiredConfigs?: ResourceRequirementInput[] | null; requiredSecrets?: ResourceRequirementInput[] | null; @@ -17504,7 +17575,6 @@ export interface PlatformBuildPatch { imageRef?: string | null; jobId?: string | null; logs?: ConstructiveInternalTypeUpload | null; - logsUpload?: File | null; matrixKey?: string | null; metadata?: Record | null; proposalId?: string | null; @@ -17568,44 +17638,6 @@ export interface DeletePlatformBuildStepInput { clientMutationId?: string; id: string; } -export interface CreatePlatformBuilderBindingInput { - clientMutationId?: string; - platformBuilderBinding: { - createdBy?: string; - createdByPrincipal?: string; - installationId: string; - lastError?: string; - metadata?: Record; - namespaceId: string; - observedHost?: string; - realm?: string; - status?: string; - updatedBy?: string; - updatedByPrincipal?: string; - }; -} -export interface PlatformBuilderBindingPatch { - createdBy?: string | null; - createdByPrincipal?: string | null; - installationId?: string | null; - lastError?: string | null; - metadata?: Record | null; - namespaceId?: string | null; - observedHost?: string | null; - realm?: string | null; - status?: string | null; - updatedBy?: string | null; - updatedByPrincipal?: string | null; -} -export interface UpdatePlatformBuilderBindingInput { - clientMutationId?: string; - id: string; - platformBuilderBindingPatch: PlatformBuilderBindingPatch; -} -export interface DeletePlatformBuilderBindingInput { - clientMutationId?: string; - id: string; -} export interface CreatePlatformFunctionApiBindingInput { clientMutationId?: string; platformFunctionApiBinding: { @@ -18114,13 +18146,6 @@ export interface DeletePlatformInfraCommitInput { clientMutationId?: string; id: string; } -export interface CreatePlatformInfraGetAllTreeNodesRecordInput { - clientMutationId?: string; - platformInfraGetAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; -} export interface PlatformInfraGetAllTreeNodesRecordPatch { data?: Record | null; path?: string[] | null; @@ -18892,25 +18917,6 @@ export interface DeletePlatformResourceInput { clientMutationId?: string; id: string; } -export interface CreatePlatformResourceDeclaredCapacityInput { - clientMutationId?: string; - platformResourceDeclaredCapacity: { - cpuLimitMillicores?: string; - cpuRequestMillicores?: string; - installationId: string; - isTransient?: boolean; - kind?: string; - memoryLimitBytes?: string; - memoryRequestBytes?: string; - namespaceId: string; - podCountMax?: number; - podCountMin?: number; - source?: string; - sourceId: string; - storageSizeBytes?: string; - storageTotalBytes?: string; - }; -} export interface PlatformResourceDeclaredCapacityPatch { cpuLimitMillicores?: string | null; cpuRequestMillicores?: string | null; @@ -19052,29 +19058,6 @@ export interface DeletePlatformResourceInstallationInput { clientMutationId?: string; id: string; } -export interface CreatePlatformResourceObservedStorageInput { - clientMutationId?: string; - platformResourceObservedStorage: { - capacity?: string; - capacityBytes?: string; - claimName?: string; - declaredStorageClass?: string; - declaredStorageSizeBytes?: string; - declaredStorageTotalBytes?: string; - installationId: string; - isBound?: boolean; - kind?: string; - namespaceId: string; - phase?: string; - requested?: string; - requestedBytes?: string; - resourceId: string; - resourceStatus?: string; - slug?: string; - storageClass?: string; - storageName?: string; - }; -} export interface PlatformResourceObservedStoragePatch { capacity?: string | null; capacityBytes?: string | null; @@ -19196,30 +19179,6 @@ export interface DeletePlatformResourceUsageSummaryInput { clientMutationId?: string; id: string; } -export interface CreatePlatformResourceUtilizationInput { - clientMutationId?: string; - platformResourceUtilization: { - avgMemoryBytes?: string; - cpuLimitMillicores?: string; - cpuPeakUtilization?: string; - cpuRequestHeadroomMillicores?: string; - cpuRequestMillicores?: string; - date?: string; - gbSeconds?: string; - kind?: string; - maxCpuMillicores?: string; - maxMemoryBytes?: string; - memoryLimitBytes?: string; - memoryPeakUtilization?: string; - memoryRequestBytes?: string; - memoryRequestHeadroomBytes?: string; - namespaceId: string; - replicas?: number; - resourceId: string; - runtimeSeconds?: string; - sampleCount?: number; - }; -} export interface PlatformResourceUtilizationPatch { avgMemoryBytes?: string | null; cpuLimitMillicores?: string | null; @@ -19250,43 +19209,6 @@ export interface DeletePlatformResourceUtilizationInput { clientMutationId?: string; id: string; } -export interface CreatePlatformResourcesHealthInput { - clientMutationId?: string; - platformResourcesHealth: { - annotations?: Record; - cpuLimitMillicores?: string; - cpuRequestMillicores?: string; - createdBy?: string; - createdByPrincipal?: string; - errorCount?: number; - imageRef?: string; - installationId: string; - integrations?: string[]; - kind?: string; - labels?: Record; - lastError?: string; - lastHeartbeatAt?: string; - memoryLimitBytes?: string; - memoryRequestBytes?: string; - name?: string; - namespaceId: string; - realm?: string; - replicas?: number; - requiredConfigs?: ResourceRequirement[]; - requiredSecrets?: ResourceRequirement[]; - resourceDefinitionId: string; - slug?: string; - spec?: Record; - status?: string; - statusDetail?: string; - statusObserved?: Record; - storageClass?: string; - storageSizeBytes?: string; - storageTotalBytes?: string; - updatedBy?: string; - updatedByPrincipal?: string; - }; -} export interface PlatformResourcesHealthPatch { annotations?: Record | null; cpuLimitMillicores?: string | null; @@ -19330,18 +19252,6 @@ export interface DeletePlatformResourcesHealthInput { clientMutationId?: string; id: string; } -export interface CreatePlatformResourcesRequirementsStateInput { - clientMutationId?: string; - platformResourcesRequirementsState: { - configHash?: string; - configObjectName?: string; - requirementsHash?: string; - resourceId: string; - secretsHash?: string; - secretsObjectName?: string; - slug?: string; - }; -} export interface PlatformResourcesRequirementsStatePatch { configHash?: string | null; configObjectName?: string | null; @@ -19360,22 +19270,6 @@ export interface DeletePlatformResourcesRequirementsStateInput { clientMutationId?: string; id: string; } -export interface CreatePlatformResourcesResolvedRequirementInput { - clientMutationId?: string; - platformResourcesResolvedRequirement: { - atomId: string; - configObjectName?: string; - name?: string; - namespaceId: string; - present?: boolean; - realm?: string; - required?: boolean; - requirementKind?: string; - resourceId: string; - secretsObjectName?: string; - slug?: string; - }; -} export interface PlatformResourcesResolvedRequirementPatch { atomId?: string | null; configObjectName?: string | null; @@ -19398,6 +19292,48 @@ export interface DeletePlatformResourcesResolvedRequirementInput { clientMutationId?: string; id: string; } +export interface CreatePlatformServiceBindingInput { + clientMutationId?: string; + platformServiceBinding: { + createdBy?: string; + createdByPrincipal?: string; + installationId: string; + installationScope: string; + kind: string; + lastError?: string; + metadata?: Record; + namespaceId: string; + observedHost?: string; + realm?: string; + status?: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface PlatformServiceBindingPatch { + createdBy?: string | null; + createdByPrincipal?: string | null; + installationId?: string | null; + installationScope?: string | null; + kind?: string | null; + lastError?: string | null; + metadata?: Record | null; + namespaceId?: string | null; + observedHost?: string | null; + realm?: string | null; + status?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdatePlatformServiceBindingInput { + clientMutationId?: string; + id: string; + platformServiceBindingPatch: PlatformServiceBindingPatch; +} +export interface DeletePlatformServiceBindingInput { + clientMutationId?: string; + id: string; +} export interface CreatePlatformWebhookEndpointInput { clientMutationId?: string; platformWebhookEndpoint: { @@ -20059,25 +19995,6 @@ export interface DeleteResourceInput { clientMutationId?: string; id: string; } -export interface CreateResourceDeclaredCapacityInput { - clientMutationId?: string; - resourceDeclaredCapacity: { - cpuLimitMillicores?: string; - cpuRequestMillicores?: string; - installationId: string; - isTransient?: boolean; - kind?: string; - memoryLimitBytes?: string; - memoryRequestBytes?: string; - namespaceId: string; - podCountMax?: number; - podCountMin?: number; - source?: string; - sourceId: string; - storageSizeBytes?: string; - storageTotalBytes?: string; - }; -} export interface ResourceDeclaredCapacityPatch { cpuLimitMillicores?: string | null; cpuRequestMillicores?: string | null; @@ -20225,29 +20142,6 @@ export interface DeleteResourceInstallationInput { clientMutationId?: string; id: string; } -export interface CreateResourceObservedStorageInput { - clientMutationId?: string; - resourceObservedStorage: { - capacity?: string; - capacityBytes?: string; - claimName?: string; - declaredStorageClass?: string; - declaredStorageSizeBytes?: string; - declaredStorageTotalBytes?: string; - installationId: string; - isBound?: boolean; - kind?: string; - namespaceId: string; - phase?: string; - requested?: string; - requestedBytes?: string; - resourceId: string; - resourceStatus?: string; - slug?: string; - storageClass?: string; - storageName?: string; - }; -} export interface ResourceObservedStoragePatch { capacity?: string | null; capacityBytes?: string | null; @@ -20375,30 +20269,6 @@ export interface DeleteResourceUsageSummaryInput { clientMutationId?: string; id: string; } -export interface CreateResourceUtilizationInput { - clientMutationId?: string; - resourceUtilization: { - avgMemoryBytes?: string; - cpuLimitMillicores?: string; - cpuPeakUtilization?: string; - cpuRequestHeadroomMillicores?: string; - cpuRequestMillicores?: string; - date?: string; - gbSeconds?: string; - kind?: string; - maxCpuMillicores?: string; - maxMemoryBytes?: string; - memoryLimitBytes?: string; - memoryPeakUtilization?: string; - memoryRequestBytes?: string; - memoryRequestHeadroomBytes?: string; - namespaceId: string; - replicas?: number; - resourceId: string; - runtimeSeconds?: string; - sampleCount?: number; - }; -} export interface ResourceUtilizationPatch { avgMemoryBytes?: string | null; cpuLimitMillicores?: string | null; @@ -20429,44 +20299,6 @@ export interface DeleteResourceUtilizationInput { clientMutationId?: string; id: string; } -export interface CreateResourcesHealthInput { - clientMutationId?: string; - resourcesHealth: { - annotations?: Record; - cpuLimitMillicores?: string; - cpuRequestMillicores?: string; - createdBy?: string; - createdByPrincipal?: string; - databaseId: string; - errorCount?: number; - imageRef?: string; - installationId: string; - integrations?: string[]; - kind?: string; - labels?: Record; - lastError?: string; - lastHeartbeatAt?: string; - memoryLimitBytes?: string; - memoryRequestBytes?: string; - name?: string; - namespaceId: string; - realm?: string; - replicas?: number; - requiredConfigs?: ResourceRequirement[]; - requiredSecrets?: ResourceRequirement[]; - resourceDefinitionId: string; - slug?: string; - spec?: Record; - status?: string; - statusDetail?: string; - statusObserved?: Record; - storageClass?: string; - storageSizeBytes?: string; - storageTotalBytes?: string; - updatedBy?: string; - updatedByPrincipal?: string; - }; -} export interface ResourcesHealthPatch { annotations?: Record | null; cpuLimitMillicores?: string | null; @@ -20511,18 +20343,6 @@ export interface DeleteResourcesHealthInput { clientMutationId?: string; id: string; } -export interface CreateResourcesRequirementsStateInput { - clientMutationId?: string; - resourcesRequirementsState: { - configHash?: string; - configObjectName?: string; - requirementsHash?: string; - resourceId: string; - secretsHash?: string; - secretsObjectName?: string; - slug?: string; - }; -} export interface ResourcesRequirementsStatePatch { configHash?: string | null; configObjectName?: string | null; @@ -20541,22 +20361,6 @@ export interface DeleteResourcesRequirementsStateInput { clientMutationId?: string; id: string; } -export interface CreateResourcesResolvedRequirementInput { - clientMutationId?: string; - resourcesResolvedRequirement: { - atomId: string; - configObjectName?: string; - name?: string; - namespaceId: string; - present?: boolean; - realm?: string; - required?: boolean; - requirementKind?: string; - resourceId: string; - secretsObjectName?: string; - slug?: string; - }; -} export interface ResourcesResolvedRequirementPatch { atomId?: string | null; configObjectName?: string | null; @@ -20579,6 +20383,50 @@ export interface DeleteResourcesResolvedRequirementInput { clientMutationId?: string; id: string; } +export interface CreateServiceBindingInput { + clientMutationId?: string; + serviceBinding: { + createdBy?: string; + createdByPrincipal?: string; + databaseId: string; + installationId: string; + installationScope: string; + kind: string; + lastError?: string; + metadata?: Record; + namespaceId: string; + observedHost?: string; + realm?: string; + status?: string; + updatedBy?: string; + updatedByPrincipal?: string; + }; +} +export interface ServiceBindingPatch { + createdBy?: string | null; + createdByPrincipal?: string | null; + databaseId?: string | null; + installationId?: string | null; + installationScope?: string | null; + kind?: string | null; + lastError?: string | null; + metadata?: Record | null; + namespaceId?: string | null; + observedHost?: string | null; + realm?: string | null; + status?: string | null; + updatedBy?: string | null; + updatedByPrincipal?: string | null; +} +export interface UpdateServiceBindingInput { + clientMutationId?: string; + id: string; + serviceBindingPatch: ServiceBindingPatch; +} +export interface DeleteServiceBindingInput { + clientMutationId?: string; + id: string; +} export interface CreateWebhookEndpointInput { clientMutationId?: string; webhookEndpoint: { @@ -20682,13 +20530,13 @@ export const connectionFieldsMap = { imageGrants: 'ImageGrant', }, Namespace: { - builderBindings: 'BuilderBinding', - functionDeployments: 'FunctionDeployment', - registryBindings: 'RegistryBinding', - resourceDefinitions: 'ResourceDefinition', - resourceInstallations: 'ResourceInstallation', - resources: 'Resource', - webhookEndpoints: 'WebhookEndpoint', + functionDeploymentsByNamespaceIdAndDatabaseId: 'FunctionDeployment', + registryBindingsByNamespaceIdAndDatabaseId: 'RegistryBinding', + resourceDefinitionsByNamespaceIdAndDatabaseId: 'ResourceDefinition', + resourceInstallationsByNamespaceIdAndDatabaseId: 'ResourceInstallation', + resourcesByNamespaceIdAndDatabaseId: 'Resource', + serviceBindingsByNamespaceIdAndDatabaseId: 'ServiceBinding', + webhookEndpointsByNamespaceIdAndDatabaseId: 'WebhookEndpoint', }, PlatformFunctionApiBinding: { platformFunctionInvocationsByApiBindingId: 'PlatformFunctionInvocation', @@ -20703,12 +20551,12 @@ export const connectionFieldsMap = { platformImageGrantsByImageId: 'PlatformImageGrant', }, PlatformNamespace: { - platformBuilderBindingsByNamespaceId: 'PlatformBuilderBinding', platformFunctionDeploymentsByNamespaceId: 'PlatformFunctionDeployment', platformRegistryBindingsByNamespaceId: 'PlatformRegistryBinding', platformResourceDefinitionsByNamespaceId: 'PlatformResourceDefinition', platformResourceInstallationsByNamespaceId: 'PlatformResourceInstallation', platformResourcesByNamespaceId: 'PlatformResource', + platformServiceBindingsByNamespaceId: 'PlatformServiceBinding', platformWebhookEndpointsByNamespaceId: 'PlatformWebhookEndpoint', }, PlatformProposalComment: { @@ -20852,6 +20700,15 @@ export interface CopyGraphInput { name?: string; scopeId?: string; } +export interface CreateFunctionGraphInput { + clientMutationId?: string; + context?: string; + createdBy?: string; + definitionsCommitId?: string; + description?: string; + name?: string; + scopeId?: string; +} export interface DatabaseAddEdgeInput { clientMutationId?: string; context?: string; @@ -21488,15 +21345,6 @@ export interface ConstructiveInternalTypeImageFilter { /** Not included in the specified list. */ notIn?: ConstructiveInternalTypeImage[]; } -/** A filter to be used against many `BuilderBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface NamespaceToManyBuilderBindingFilter { - /** Filters to entities where every related entity matches. */ - every?: BuilderBindingFilter; - /** Filters to entities where no related entity matches. */ - none?: BuilderBindingFilter; - /** Filters to entities where at least one related entity matches. */ - some?: BuilderBindingFilter; -} /** A filter to be used against many `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ export interface NamespaceToManyFunctionDeploymentFilter { /** Filters to entities where every related entity matches. */ @@ -21542,6 +21390,15 @@ export interface NamespaceToManyResourceFilter { /** Filters to entities where at least one related entity matches. */ some?: ResourceFilter; } +/** A filter to be used against many `ServiceBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceToManyServiceBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: ServiceBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: ServiceBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: ServiceBindingFilter; +} /** A filter to be used against many `WebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ export interface NamespaceToManyWebhookEndpointFilter { /** Filters to entities where every related entity matches. */ @@ -21605,15 +21462,6 @@ export interface PlatformImageToManyPlatformImageGrantFilter { /** Filters to entities where at least one related entity matches. */ some?: PlatformImageGrantFilter; } -/** A filter to be used against many `PlatformBuilderBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformNamespaceToManyPlatformBuilderBindingFilter { - /** Filters to entities where every related entity matches. */ - every?: PlatformBuilderBindingFilter; - /** Filters to entities where no related entity matches. */ - none?: PlatformBuilderBindingFilter; - /** Filters to entities where at least one related entity matches. */ - some?: PlatformBuilderBindingFilter; -} /** A filter to be used against many `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformNamespaceToManyPlatformFunctionDeploymentFilter { /** Filters to entities where every related entity matches. */ @@ -21659,6 +21507,15 @@ export interface PlatformNamespaceToManyPlatformResourceFilter { /** Filters to entities where at least one related entity matches. */ some?: PlatformResourceFilter; } +/** A filter to be used against many `PlatformServiceBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformNamespaceToManyPlatformServiceBindingFilter { + /** Filters to entities where every related entity matches. */ + every?: PlatformServiceBindingFilter; + /** Filters to entities where no related entity matches. */ + none?: PlatformServiceBindingFilter; + /** Filters to entities where at least one related entity matches. */ + some?: PlatformServiceBindingFilter; +} /** A filter to be used against many `PlatformWebhookEndpoint` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformNamespaceToManyPlatformWebhookEndpointFilter { /** Filters to entities where every related entity matches. */ @@ -21812,10 +21669,12 @@ export interface VectorNearbyInput { includeChunks?: boolean; /** Similarity metric to use (default: COSINE). */ metric?: VectorMetric; - /** Natural language text to embed server-side for similarity search. Mutually exclusive with `vector` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** The model that produced `vector`. On a column that records the model of each row's vector, only rows embedded with this model are compared; vectors of two models are not comparable. Filled in server-side when `text` is embedded. */ + model?: string; + /** Natural language text to embed server-side for similarity search. Provide exactly one of `text` or `vector`; sending both or neither is an error. Blank text on its own counts as not given. Requires the LLM plugin to be configured with an embedding provider. */ text?: string; /** Query vector for similarity search. */ - vector: number[]; + vector?: number[]; } /** A filter to be used against many `PlatformProposal` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformProposalToManyPlatformProposalFilter { @@ -22322,32 +22181,6 @@ export interface BuildStepInput { /** Parsed detail: failure message, assertion diff, counts, annotations */ summary?: Record; } -/** An input for mutations affecting `BuilderBinding` */ -export interface BuilderBindingInput { - createdAt?: string; - createdBy?: string; - createdByPrincipal?: string; - /** Database that owns this resource (database-scoped isolation) */ - databaseId: string; - id?: string; - /** BuildKit resource installation serving this binding; may belong to another resource scope */ - installationId: string; - /** Most recent projection failure */ - lastError?: string; - /** Reconciler detail (projection timestamps and diagnostics) */ - metadata?: Record; - /** Namespace whose builds use this BuildKit installation */ - namespaceId: string; - /** BuildKit address last projected into the namespace (NULL = never projected) */ - observedHost?: string; - /** Lane this binding applies to (NULL = the scope's default lane) */ - realm?: string; - /** Projection state of BUILDKIT_HOST: pending, active, failed */ - status?: string; - updatedAt?: string; - updatedBy?: string; - updatedByPrincipal?: string; -} /** An input for mutations affecting `ContentPreset` */ export interface ContentPresetInput { /** Whether this preset is selectable at provision time */ @@ -23384,30 +23217,6 @@ export interface PlatformBuildStepInput { /** Parsed detail: failure message, assertion diff, counts, annotations */ summary?: Record; } -/** An input for mutations affecting `PlatformBuilderBinding` */ -export interface PlatformBuilderBindingInput { - createdAt?: string; - createdBy?: string; - createdByPrincipal?: string; - id?: string; - /** BuildKit resource installation serving this binding; may belong to another resource scope */ - installationId: string; - /** Most recent projection failure */ - lastError?: string; - /** Reconciler detail (projection timestamps and diagnostics) */ - metadata?: Record; - /** Namespace whose builds use this BuildKit installation */ - namespaceId: string; - /** BuildKit address last projected into the namespace (NULL = never projected) */ - observedHost?: string; - /** Lane this binding applies to (NULL = the scope's default lane) */ - realm?: string; - /** Projection state of BUILDKIT_HOST: pending, active, failed */ - status?: string; - updatedAt?: string; - updatedBy?: string; - updatedByPrincipal?: string; -} /** An input for mutations affecting `PlatformFunctionApiBinding` */ export interface PlatformFunctionApiBindingInput { /** Binding alias (e.g. default, staging, production) */ @@ -23933,7 +23742,7 @@ export interface PlatformProposalCommentInput { createdBy?: string; createdByPrincipal?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** Line within path the comment is anchored to */ @@ -23966,7 +23775,7 @@ export interface PlatformProposalInput { /** When this is wanted by (NULL when nothing is promised) */ dueAt?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** issue (a report or plan), change (merge one ref into another), discussion (an open question), decision (a question answered) */ @@ -24065,7 +23874,7 @@ export interface PlatformProposalsChunkInput { chunkIndex?: number; createdAt?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; metadata?: Record; @@ -24166,7 +23975,7 @@ export interface PlatformRepositoryInput { /** What this repository holds */ description?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; /** Identifier of this repository in the external provider (NULL for local) */ externalId?: string; @@ -24460,6 +24269,34 @@ export interface PlatformResourceUsageSummaryInput { /** Number of raw samples aggregated into this summary */ sampleCount?: number; } +/** An input for mutations affecting `PlatformServiceBinding` */ +export interface PlatformServiceBindingInput { + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + id?: string; + /** Resource installation serving this binding, in the installations table of installation_scope */ + installationId: string; + /** Scope whose installations table holds installation_id: this scope or platform */ + installationScope: string; + /** Service this binding projects: builder (BUILDKIT_HOST) or git (GIT_PROVIDER + GIT_SERVICE_URL) */ + kind: string; + /** Most recent projection failure */ + lastError?: string; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: Record; + /** Namespace whose builds use this BuildKit installation */ + namespaceId: string; + /** Service address last projected into the namespace (NULL = never projected) */ + observedHost?: string; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string; + /** Projection state of the bound address: pending, active, failed */ + status?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} /** An input for mutations affecting `PlatformWebhookEndpoint` */ export interface PlatformWebhookEndpointInput { /** Whether this endpoint currently accepts deliveries */ @@ -24522,7 +24359,7 @@ export interface ProposalCommentInput { createdBy?: string; createdByPrincipal?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** Line within path the comment is anchored to */ @@ -24555,7 +24392,7 @@ export interface ProposalInput { /** When this is wanted by (NULL when nothing is promised) */ dueAt?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; /** issue (a report or plan), change (merge one ref into another), discussion (an open question), decision (a question answered) */ @@ -24656,7 +24493,7 @@ export interface ProposalsChunkInput { /** Policy-required field derived from source table (used by AuthzRelatedEntityMembership) */ databaseId?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; id?: string; metadata?: Record; @@ -24765,7 +24602,7 @@ export interface RepositoryInput { /** What this repository holds */ description?: string; embedding?: number[]; - /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */ + /** Natural language text to embed server-side into the `embedding` vector column. Provide exactly one of `embedding` or `embeddingText`; sending both is an error. Requires the LLM plugin to be configured with an embedding provider. */ embeddingText?: string; /** Identifier of this repository in the external provider (NULL for local) */ externalId?: string; @@ -25056,6 +24893,36 @@ export interface ResourceUsageSummaryInput { /** Number of raw samples aggregated into this summary */ sampleCount?: number; } +/** An input for mutations affecting `ServiceBinding` */ +export interface ServiceBindingInput { + createdAt?: string; + createdBy?: string; + createdByPrincipal?: string; + /** Database that owns this resource (database-scoped isolation) */ + databaseId: string; + id?: string; + /** Resource installation serving this binding, in the installations table of installation_scope */ + installationId: string; + /** Scope whose installations table holds installation_id: this scope or platform */ + installationScope: string; + /** Service this binding projects: builder (BUILDKIT_HOST) or git (GIT_PROVIDER + GIT_SERVICE_URL) */ + kind: string; + /** Most recent projection failure */ + lastError?: string; + /** Reconciler detail (projection timestamps and diagnostics) */ + metadata?: Record; + /** Namespace whose builds use this BuildKit installation */ + namespaceId: string; + /** Service address last projected into the namespace (NULL = never projected) */ + observedHost?: string; + /** Lane this binding applies to (NULL = the scope's default lane) */ + realm?: string; + /** Projection state of the bound address: pending, active, failed */ + status?: string; + updatedAt?: string; + updatedBy?: string; + updatedByPrincipal?: string; +} /** An input for mutations affecting `WebhookEndpoint` */ export interface WebhookEndpointInput { /** Whether this endpoint currently accepts deliveries */ @@ -25555,8 +25422,8 @@ export interface WebhookEndpointFilter { host?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -25874,47 +25741,6 @@ export interface ImageGrantFilter { /** Filter by the object’s `updatedByPrincipal` field. */ updatedByPrincipal?: UUIDFilter; } -/** A filter to be used against `BuilderBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface BuilderBindingFilter { - /** Checks for all expressions in this list. */ - and?: BuilderBindingFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `createdByPrincipal` field. */ - createdByPrincipal?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: BuilderBindingFilter; - /** Filter by the object’s `observedHost` field. */ - observedHost?: StringFilter; - /** Checks for any expressions in this list. */ - or?: BuilderBindingFilter[]; - /** Filter by the object’s `realm` field. */ - realm?: StringFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `updatedByPrincipal` field. */ - updatedByPrincipal?: UUIDFilter; -} /** A filter to be used against `FunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ export interface FunctionDeploymentFilter { /** Checks for all expressions in this list. */ @@ -25945,8 +25771,8 @@ export interface FunctionDeploymentFilter { lastError?: StringFilter; /** Filter by the object’s `lastErrorAt` field. */ lastErrorAt?: DatetimeFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -25992,8 +25818,8 @@ export interface RegistryBindingFilter { id?: UUIDFilter; /** Filter by the object’s `metadata` field. */ metadata?: JSONFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -26049,8 +25875,8 @@ export interface ResourceDefinitionFilter { labels?: JSONFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -26092,8 +25918,8 @@ export interface ResourceInstallationFilter { id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -26171,8 +25997,8 @@ export interface ResourceFilter { memoryRequestBytes?: BigIntFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: NamespaceFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; /** Filter by the object’s `namespaceId` field. */ namespaceId?: UUIDFilter; /** Negates the expression. */ @@ -26214,6 +26040,51 @@ export interface ResourceFilter { /** Filter by the object’s `updatedByPrincipal` field. */ updatedByPrincipal?: UUIDFilter; } +/** A filter to be used against `ServiceBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface ServiceBindingFilter { + /** Checks for all expressions in this list. */ + and?: ServiceBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `installationScope` field. */ + installationScope?: StringFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespaceByNamespaceIdAndDatabaseId` relation. */ + namespaceByNamespaceIdAndDatabaseId?: NamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: ServiceBindingFilter; + /** Filter by the object’s `observedHost` field. */ + observedHost?: StringFilter; + /** Checks for any expressions in this list. */ + or?: ServiceBindingFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} /** A filter to be used against `PlatformFunctionInvocation` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformFunctionInvocationFilter { /** Filter by the object’s `actorId` field. */ @@ -26456,45 +26327,6 @@ export interface PlatformImageGrantFilter { /** Filter by the object’s `updatedByPrincipal` field. */ updatedByPrincipal?: UUIDFilter; } -/** A filter to be used against `PlatformBuilderBinding` object types. All fields are combined with a logical ‘and.’ */ -export interface PlatformBuilderBindingFilter { - /** Checks for all expressions in this list. */ - and?: PlatformBuilderBindingFilter[]; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `createdByPrincipal` field. */ - createdByPrincipal?: UUIDFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `installationId` field. */ - installationId?: UUIDFilter; - /** Filter by the object’s `lastError` field. */ - lastError?: StringFilter; - /** Filter by the object’s `metadata` field. */ - metadata?: JSONFilter; - /** Filter by the object’s `namespace` relation. */ - namespace?: PlatformNamespaceFilter; - /** Filter by the object’s `namespaceId` field. */ - namespaceId?: UUIDFilter; - /** Negates the expression. */ - not?: PlatformBuilderBindingFilter; - /** Filter by the object’s `observedHost` field. */ - observedHost?: StringFilter; - /** Checks for any expressions in this list. */ - or?: PlatformBuilderBindingFilter[]; - /** Filter by the object’s `realm` field. */ - realm?: StringFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `updatedByPrincipal` field. */ - updatedByPrincipal?: UUIDFilter; -} /** A filter to be used against `PlatformFunctionDeployment` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformFunctionDeploymentFilter { /** Checks for all expressions in this list. */ @@ -26784,6 +26616,49 @@ export interface PlatformResourceFilter { /** Filter by the object’s `updatedByPrincipal` field. */ updatedByPrincipal?: UUIDFilter; } +/** A filter to be used against `PlatformServiceBinding` object types. All fields are combined with a logical ‘and.’ */ +export interface PlatformServiceBindingFilter { + /** Checks for all expressions in this list. */ + and?: PlatformServiceBindingFilter[]; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `createdByPrincipal` field. */ + createdByPrincipal?: UUIDFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `installationId` field. */ + installationId?: UUIDFilter; + /** Filter by the object’s `installationScope` field. */ + installationScope?: StringFilter; + /** Filter by the object’s `kind` field. */ + kind?: StringFilter; + /** Filter by the object’s `lastError` field. */ + lastError?: StringFilter; + /** Filter by the object’s `metadata` field. */ + metadata?: JSONFilter; + /** Filter by the object’s `namespace` relation. */ + namespace?: PlatformNamespaceFilter; + /** Filter by the object’s `namespaceId` field. */ + namespaceId?: UUIDFilter; + /** Negates the expression. */ + not?: PlatformServiceBindingFilter; + /** Filter by the object’s `observedHost` field. */ + observedHost?: StringFilter; + /** Checks for any expressions in this list. */ + or?: PlatformServiceBindingFilter[]; + /** Filter by the object’s `realm` field. */ + realm?: StringFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `updatedByPrincipal` field. */ + updatedByPrincipal?: UUIDFilter; +} /** A filter to be used against `PlatformProposalReaction` object types. All fields are combined with a logical ‘and.’ */ export interface PlatformProposalReactionFilter { /** Filter by the object’s `actorId` field. */ @@ -26845,6 +26720,8 @@ export interface PlatformProposalFilter { dueAt?: DatetimeFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -26919,6 +26796,8 @@ export interface PlatformProposalFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `closed_reason` column. */ trgmClosedReason?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `merge_commit` column. */ @@ -27039,6 +26918,8 @@ export interface PlatformProposalCommentFilter { createdByPrincipal?: UUIDFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -27067,6 +26948,8 @@ export interface PlatformProposalCommentFilter { search?: FullTextFilter; /** TRGM search on the `body` column. */ trgmBody?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `path` column. */ trgmPath?: TrgmSearchInput; /** TSV search on the `search` column. */ @@ -27553,6 +27436,8 @@ export interface ProposalFilter { dueAt?: DatetimeFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -27623,6 +27508,8 @@ export interface ProposalFilter { trgmBody?: TrgmSearchInput; /** TRGM search on the `closed_reason` column. */ trgmClosedReason?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `kind` column. */ trgmKind?: TrgmSearchInput; /** TRGM search on the `merge_commit` column. */ @@ -27678,6 +27565,8 @@ export interface ProposalCommentFilter { databaseId?: UUIDFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ @@ -27706,6 +27595,8 @@ export interface ProposalCommentFilter { search?: FullTextFilter; /** TRGM search on the `body` column. */ trgmBody?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `path` column. */ trgmPath?: TrgmSearchInput; /** TSV search on the `search` column. */ @@ -28419,6 +28310,8 @@ export interface RepositoryFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `externalId` field. */ @@ -28465,6 +28358,8 @@ export interface RepositoryFilter { trgmDefaultBranch?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `external_id` column. */ trgmExternalId?: TrgmSearchInput; /** TRGM search on the `name` column. */ @@ -28502,10 +28397,6 @@ export interface NamespaceFilter { and?: NamespaceFilter[]; /** Filter by the object’s `annotations` field. */ annotations?: JSONFilter; - /** Filter by the object’s `builderBindings` relation. */ - builderBindings?: NamespaceToManyBuilderBindingFilter; - /** `builderBindings` exist. */ - builderBindingsExist?: boolean; /** Filter by the object’s `clusterId` field. */ clusterId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -28514,10 +28405,10 @@ export interface NamespaceFilter { databaseId?: UUIDFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; - /** Filter by the object’s `functionDeployments` relation. */ - functionDeployments?: NamespaceToManyFunctionDeploymentFilter; - /** `functionDeployments` exist. */ - functionDeploymentsExist?: boolean; + /** Filter by the object’s `functionDeploymentsByNamespaceIdAndDatabaseId` relation. */ + functionDeploymentsByNamespaceIdAndDatabaseId?: NamespaceToManyFunctionDeploymentFilter; + /** `functionDeploymentsByNamespaceIdAndDatabaseId` exist. */ + functionDeploymentsByNamespaceIdAndDatabaseIdExist?: boolean; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isActive` field. */ @@ -28536,30 +28427,34 @@ export interface NamespaceFilter { not?: NamespaceFilter; /** Checks for any expressions in this list. */ or?: NamespaceFilter[]; - /** Filter by the object’s `registryBindings` relation. */ - registryBindings?: NamespaceToManyRegistryBindingFilter; - /** `registryBindings` exist. */ - registryBindingsExist?: boolean; - /** Filter by the object’s `resourceDefinitions` relation. */ - resourceDefinitions?: NamespaceToManyResourceDefinitionFilter; - /** `resourceDefinitions` exist. */ - resourceDefinitionsExist?: boolean; - /** Filter by the object’s `resourceInstallations` relation. */ - resourceInstallations?: NamespaceToManyResourceInstallationFilter; - /** `resourceInstallations` exist. */ - resourceInstallationsExist?: boolean; - /** Filter by the object’s `resources` relation. */ - resources?: NamespaceToManyResourceFilter; - /** `resources` exist. */ - resourcesExist?: boolean; + /** Filter by the object’s `registryBindingsByNamespaceIdAndDatabaseId` relation. */ + registryBindingsByNamespaceIdAndDatabaseId?: NamespaceToManyRegistryBindingFilter; + /** `registryBindingsByNamespaceIdAndDatabaseId` exist. */ + registryBindingsByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `resourceDefinitionsByNamespaceIdAndDatabaseId` relation. */ + resourceDefinitionsByNamespaceIdAndDatabaseId?: NamespaceToManyResourceDefinitionFilter; + /** `resourceDefinitionsByNamespaceIdAndDatabaseId` exist. */ + resourceDefinitionsByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `resourceInstallationsByNamespaceIdAndDatabaseId` relation. */ + resourceInstallationsByNamespaceIdAndDatabaseId?: NamespaceToManyResourceInstallationFilter; + /** `resourceInstallationsByNamespaceIdAndDatabaseId` exist. */ + resourceInstallationsByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `resourcesByNamespaceIdAndDatabaseId` relation. */ + resourcesByNamespaceIdAndDatabaseId?: NamespaceToManyResourceFilter; + /** `resourcesByNamespaceIdAndDatabaseId` exist. */ + resourcesByNamespaceIdAndDatabaseIdExist?: boolean; + /** Filter by the object’s `serviceBindingsByNamespaceIdAndDatabaseId` relation. */ + serviceBindingsByNamespaceIdAndDatabaseId?: NamespaceToManyServiceBindingFilter; + /** `serviceBindingsByNamespaceIdAndDatabaseId` exist. */ + serviceBindingsByNamespaceIdAndDatabaseIdExist?: boolean; /** Filter by the object’s `status` field. */ status?: StringFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `webhookEndpoints` relation. */ - webhookEndpoints?: NamespaceToManyWebhookEndpointFilter; - /** `webhookEndpoints` exist. */ - webhookEndpointsExist?: boolean; + /** Filter by the object’s `webhookEndpointsByNamespaceIdAndDatabaseId` relation. */ + webhookEndpointsByNamespaceIdAndDatabaseId?: NamespaceToManyWebhookEndpointFilter; + /** `webhookEndpointsByNamespaceIdAndDatabaseId` exist. */ + webhookEndpointsByNamespaceIdAndDatabaseIdExist?: boolean; } /** A filter to be used against `FunctionGraph` object types. All fields are combined with a logical ‘and.’ */ export interface FunctionGraphFilter { @@ -28624,6 +28519,8 @@ export interface PlatformRepositoryFilter { description?: StringTrgmFilter; /** Filter by the object’s `embedding` field. */ embedding?: VectorFilter; + /** Filter by the object’s `embeddingModel` field. */ + embeddingModel?: StringTrgmFilter; /** Filter by the object’s `embeddingUpdatedAt` field. */ embeddingUpdatedAt?: DatetimeFilter; /** Filter by the object’s `externalId` field. */ @@ -28674,6 +28571,8 @@ export interface PlatformRepositoryFilter { trgmDefaultBranch?: TrgmSearchInput; /** TRGM search on the `description` column. */ trgmDescription?: TrgmSearchInput; + /** TRGM search on the `embedding_model` column. */ + trgmEmbeddingModel?: TrgmSearchInput; /** TRGM search on the `external_id` column. */ trgmExternalId?: TrgmSearchInput; /** TRGM search on the `name` column. */ @@ -28786,10 +28685,6 @@ export interface PlatformNamespaceFilter { not?: PlatformNamespaceFilter; /** Checks for any expressions in this list. */ or?: PlatformNamespaceFilter[]; - /** Filter by the object’s `platformBuilderBindingsByNamespaceId` relation. */ - platformBuilderBindingsByNamespaceId?: PlatformNamespaceToManyPlatformBuilderBindingFilter; - /** `platformBuilderBindingsByNamespaceId` exist. */ - platformBuilderBindingsByNamespaceIdExist?: boolean; /** Filter by the object’s `platformFunctionDeploymentsByNamespaceId` relation. */ platformFunctionDeploymentsByNamespaceId?: PlatformNamespaceToManyPlatformFunctionDeploymentFilter; /** `platformFunctionDeploymentsByNamespaceId` exist. */ @@ -28810,6 +28705,10 @@ export interface PlatformNamespaceFilter { platformResourcesByNamespaceId?: PlatformNamespaceToManyPlatformResourceFilter; /** `platformResourcesByNamespaceId` exist. */ platformResourcesByNamespaceIdExist?: boolean; + /** Filter by the object’s `platformServiceBindingsByNamespaceId` relation. */ + platformServiceBindingsByNamespaceId?: PlatformNamespaceToManyPlatformServiceBindingFilter; + /** `platformServiceBindingsByNamespaceId` exist. */ + platformServiceBindingsByNamespaceIdExist?: boolean; /** Filter by the object’s `platformWebhookEndpointsByNamespaceId` relation. */ platformWebhookEndpointsByNamespaceId?: PlatformNamespaceToManyPlatformWebhookEndpointFilter; /** `platformWebhookEndpointsByNamespaceId` exist. */ @@ -28976,6 +28875,14 @@ export type CopyGraphPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface CreateFunctionGraphPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type CreateFunctionGraphPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface DatabaseAddEdgePayload { clientMutationId?: string | null; result?: string | null; @@ -29563,51 +29470,6 @@ export type DeleteBuildStepPayloadSelect = { }; clientMutationId?: boolean; }; -export interface CreateBuilderBindingPayload { - /** The `BuilderBinding` that was created by this mutation. */ - builderBinding?: BuilderBinding | null; - builderBindingEdge?: BuilderBindingEdge | null; - clientMutationId?: string | null; -} -export type CreateBuilderBindingPayloadSelect = { - builderBinding?: { - select: BuilderBindingSelect; - }; - builderBindingEdge?: { - select: BuilderBindingEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface UpdateBuilderBindingPayload { - /** The `BuilderBinding` that was updated by this mutation. */ - builderBinding?: BuilderBinding | null; - builderBindingEdge?: BuilderBindingEdge | null; - clientMutationId?: string | null; -} -export type UpdateBuilderBindingPayloadSelect = { - builderBinding?: { - select: BuilderBindingSelect; - }; - builderBindingEdge?: { - select: BuilderBindingEdgeSelect; - }; - clientMutationId?: boolean; -}; -export interface DeleteBuilderBindingPayload { - /** The `BuilderBinding` that was deleted by this mutation. */ - builderBinding?: BuilderBinding | null; - builderBindingEdge?: BuilderBindingEdge | null; - clientMutationId?: string | null; -} -export type DeleteBuilderBindingPayloadSelect = { - builderBinding?: { - select: BuilderBindingSelect; - }; - builderBindingEdge?: { - select: BuilderBindingEdgeSelect; - }; - clientMutationId?: boolean; -}; export interface CreateContentPresetPayload { clientMutationId?: string | null; /** The `ContentPreset` that was created by this mutation. */ @@ -30403,14 +30265,6 @@ export type DeleteFunctionGraphCommitPayloadSelect = { select: FunctionGraphCommitEdgeSelect; }; }; -export interface CreateFunctionGraphPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type CreateFunctionGraphPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; export interface UpdateFunctionGraphPayload { clientMutationId?: string | null; /** The `FunctionGraph` that was updated by this mutation. */ @@ -31386,51 +31240,6 @@ export type DeletePlatformBuildStepPayloadSelect = { select: PlatformBuildStepEdgeSelect; }; }; -export interface CreatePlatformBuilderBindingPayload { - clientMutationId?: string | null; - /** The `PlatformBuilderBinding` that was created by this mutation. */ - platformBuilderBinding?: PlatformBuilderBinding | null; - platformBuilderBindingEdge?: PlatformBuilderBindingEdge | null; -} -export type CreatePlatformBuilderBindingPayloadSelect = { - clientMutationId?: boolean; - platformBuilderBinding?: { - select: PlatformBuilderBindingSelect; - }; - platformBuilderBindingEdge?: { - select: PlatformBuilderBindingEdgeSelect; - }; -}; -export interface UpdatePlatformBuilderBindingPayload { - clientMutationId?: string | null; - /** The `PlatformBuilderBinding` that was updated by this mutation. */ - platformBuilderBinding?: PlatformBuilderBinding | null; - platformBuilderBindingEdge?: PlatformBuilderBindingEdge | null; -} -export type UpdatePlatformBuilderBindingPayloadSelect = { - clientMutationId?: boolean; - platformBuilderBinding?: { - select: PlatformBuilderBindingSelect; - }; - platformBuilderBindingEdge?: { - select: PlatformBuilderBindingEdgeSelect; - }; -}; -export interface DeletePlatformBuilderBindingPayload { - clientMutationId?: string | null; - /** The `PlatformBuilderBinding` that was deleted by this mutation. */ - platformBuilderBinding?: PlatformBuilderBinding | null; - platformBuilderBindingEdge?: PlatformBuilderBindingEdge | null; -} -export type DeletePlatformBuilderBindingPayloadSelect = { - clientMutationId?: boolean; - platformBuilderBinding?: { - select: PlatformBuilderBindingSelect; - }; - platformBuilderBindingEdge?: { - select: PlatformBuilderBindingEdgeSelect; - }; -}; export interface CreatePlatformFunctionApiBindingPayload { clientMutationId?: string | null; /** The `PlatformFunctionApiBinding` that was created by this mutation. */ @@ -33186,6 +32995,51 @@ export type DeletePlatformResourceUsageSummaryPayloadSelect = { select: PlatformResourceUsageSummaryEdgeSelect; }; }; +export interface CreatePlatformServiceBindingPayload { + clientMutationId?: string | null; + /** The `PlatformServiceBinding` that was created by this mutation. */ + platformServiceBinding?: PlatformServiceBinding | null; + platformServiceBindingEdge?: PlatformServiceBindingEdge | null; +} +export type CreatePlatformServiceBindingPayloadSelect = { + clientMutationId?: boolean; + platformServiceBinding?: { + select: PlatformServiceBindingSelect; + }; + platformServiceBindingEdge?: { + select: PlatformServiceBindingEdgeSelect; + }; +}; +export interface UpdatePlatformServiceBindingPayload { + clientMutationId?: string | null; + /** The `PlatformServiceBinding` that was updated by this mutation. */ + platformServiceBinding?: PlatformServiceBinding | null; + platformServiceBindingEdge?: PlatformServiceBindingEdge | null; +} +export type UpdatePlatformServiceBindingPayloadSelect = { + clientMutationId?: boolean; + platformServiceBinding?: { + select: PlatformServiceBindingSelect; + }; + platformServiceBindingEdge?: { + select: PlatformServiceBindingEdgeSelect; + }; +}; +export interface DeletePlatformServiceBindingPayload { + clientMutationId?: string | null; + /** The `PlatformServiceBinding` that was deleted by this mutation. */ + platformServiceBinding?: PlatformServiceBinding | null; + platformServiceBindingEdge?: PlatformServiceBindingEdge | null; +} +export type DeletePlatformServiceBindingPayloadSelect = { + clientMutationId?: boolean; + platformServiceBinding?: { + select: PlatformServiceBindingSelect; + }; + platformServiceBindingEdge?: { + select: PlatformServiceBindingEdgeSelect; + }; +}; export interface CreatePlatformWebhookEndpointPayload { clientMutationId?: string | null; /** The `PlatformWebhookEndpoint` that was created by this mutation. */ @@ -34176,6 +34030,51 @@ export type DeleteResourceUsageSummaryPayloadSelect = { select: ResourceUsageSummaryEdgeSelect; }; }; +export interface CreateServiceBindingPayload { + clientMutationId?: string | null; + /** The `ServiceBinding` that was created by this mutation. */ + serviceBinding?: ServiceBinding | null; + serviceBindingEdge?: ServiceBindingEdge | null; +} +export type CreateServiceBindingPayloadSelect = { + clientMutationId?: boolean; + serviceBinding?: { + select: ServiceBindingSelect; + }; + serviceBindingEdge?: { + select: ServiceBindingEdgeSelect; + }; +}; +export interface UpdateServiceBindingPayload { + clientMutationId?: string | null; + /** The `ServiceBinding` that was updated by this mutation. */ + serviceBinding?: ServiceBinding | null; + serviceBindingEdge?: ServiceBindingEdge | null; +} +export type UpdateServiceBindingPayloadSelect = { + clientMutationId?: boolean; + serviceBinding?: { + select: ServiceBindingSelect; + }; + serviceBindingEdge?: { + select: ServiceBindingEdgeSelect; + }; +}; +export interface DeleteServiceBindingPayload { + clientMutationId?: string | null; + /** The `ServiceBinding` that was deleted by this mutation. */ + serviceBinding?: ServiceBinding | null; + serviceBindingEdge?: ServiceBindingEdge | null; +} +export type DeleteServiceBindingPayloadSelect = { + clientMutationId?: boolean; + serviceBinding?: { + select: ServiceBindingSelect; + }; + serviceBindingEdge?: { + select: ServiceBindingEdgeSelect; + }; +}; export interface CreateWebhookEndpointPayload { clientMutationId?: string | null; /** The `WebhookEndpoint` that was created by this mutation. */ @@ -34362,18 +34261,6 @@ export type BuildStepEdgeSelect = { select: BuildStepSelect; }; }; -/** A `BuilderBinding` edge in the connection. */ -export interface BuilderBindingEdge { - cursor?: string | null; - /** The `BuilderBinding` at the end of the edge. */ - node?: BuilderBinding | null; -} -export type BuilderBindingEdgeSelect = { - cursor?: boolean; - node?: { - select: BuilderBindingSelect; - }; -}; /** A `ContentPreset` edge in the connection. */ export interface ContentPresetEdge { cursor?: string | null; @@ -34806,18 +34693,6 @@ export type PlatformBuildStepEdgeSelect = { select: PlatformBuildStepSelect; }; }; -/** A `PlatformBuilderBinding` edge in the connection. */ -export interface PlatformBuilderBindingEdge { - cursor?: string | null; - /** The `PlatformBuilderBinding` at the end of the edge. */ - node?: PlatformBuilderBinding | null; -} -export type PlatformBuilderBindingEdgeSelect = { - cursor?: boolean; - node?: { - select: PlatformBuilderBindingSelect; - }; -}; /** A `PlatformFunctionApiBinding` edge in the connection. */ export interface PlatformFunctionApiBindingEdge { cursor?: string | null; @@ -35262,6 +35137,18 @@ export type PlatformResourceUsageSummaryEdgeSelect = { select: PlatformResourceUsageSummarySelect; }; }; +/** A `PlatformServiceBinding` edge in the connection. */ +export interface PlatformServiceBindingEdge { + cursor?: string | null; + /** The `PlatformServiceBinding` at the end of the edge. */ + node?: PlatformServiceBinding | null; +} +export type PlatformServiceBindingEdgeSelect = { + cursor?: boolean; + node?: { + select: PlatformServiceBindingSelect; + }; +}; /** A `PlatformWebhookEndpoint` edge in the connection. */ export interface PlatformWebhookEndpointEdge { cursor?: string | null; @@ -35526,6 +35413,18 @@ export type ResourceUsageSummaryEdgeSelect = { select: ResourceUsageSummarySelect; }; }; +/** A `ServiceBinding` edge in the connection. */ +export interface ServiceBindingEdge { + cursor?: string | null; + /** The `ServiceBinding` at the end of the edge. */ + node?: ServiceBinding | null; +} +export type ServiceBindingEdgeSelect = { + cursor?: boolean; + node?: { + select: ServiceBindingSelect; + }; +}; /** A `WebhookEndpoint` edge in the connection. */ export interface WebhookEndpointEdge { cursor?: string | null; diff --git a/sdk/constructive-sdk/src/compute/orm/models/databaseFunctionGraph.ts b/sdk/constructive-sdk/src/compute/orm/models/databaseFunctionGraph.ts index aa52534b19..358312ae7d 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/databaseFunctionGraph.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/databaseFunctionGraph.ts @@ -29,7 +29,6 @@ import type { DatabaseFunctionGraphSelect, DatabaseFunctionGraphFilter, DatabaseFunctionGraphOrderBy, - CreateDatabaseFunctionGraphInput, UpdateDatabaseFunctionGraphInput, DatabaseFunctionGraphPatch, } from '../input-types'; @@ -146,33 +145,6 @@ export class DatabaseFunctionGraphModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createDatabaseFunctionGraph: { - databaseFunctionGraph: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'DatabaseFunctionGraph', - 'createDatabaseFunctionGraph', - 'databaseFunctionGraph', - args.select, - args.data, - 'CreateDatabaseFunctionGraphInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'DatabaseFunctionGraph', - fieldName: 'createDatabaseFunctionGraph', - document, - variables, - }); - } update( args: UpdateArgs< S, diff --git a/sdk/constructive-sdk/src/compute/orm/models/databaseGraphGetAllTreeNodesRecord.ts b/sdk/constructive-sdk/src/compute/orm/models/databaseGraphGetAllTreeNodesRecord.ts index f3a254b255..141a458a79 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/databaseGraphGetAllTreeNodesRecord.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/databaseGraphGetAllTreeNodesRecord.ts @@ -29,7 +29,6 @@ import type { DatabaseGraphGetAllTreeNodesRecordSelect, DatabaseGraphGetAllTreeNodesRecordFilter, DatabaseGraphGetAllTreeNodesRecordsOrderBy, - CreateDatabaseGraphGetAllTreeNodesRecordInput, UpdateDatabaseGraphGetAllTreeNodesRecordInput, DatabaseGraphGetAllTreeNodesRecordPatch, } from '../input-types'; @@ -117,37 +116,4 @@ export class DatabaseGraphGetAllTreeNodesRecordModel { }), }); } - create( - args: CreateArgs< - S, - CreateDatabaseGraphGetAllTreeNodesRecordInput['databaseGraphGetAllTreeNodesRecord'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createDatabaseGraphGetAllTreeNodesRecord: { - databaseGraphGetAllTreeNodesRecord: InferSelectResult< - DatabaseGraphGetAllTreeNodesRecordWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'DatabaseGraphGetAllTreeNodesRecord', - 'createDatabaseGraphGetAllTreeNodesRecord', - 'databaseGraphGetAllTreeNodesRecord', - args.select, - args.data, - 'CreateDatabaseGraphGetAllTreeNodesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'DatabaseGraphGetAllTreeNodesRecord', - fieldName: 'createDatabaseGraphGetAllTreeNodesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/compute/orm/models/functionGraph.ts b/sdk/constructive-sdk/src/compute/orm/models/functionGraph.ts index 8355e31658..b94c844768 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/functionGraph.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/functionGraph.ts @@ -29,7 +29,6 @@ import type { FunctionGraphSelect, FunctionGraphFilter, FunctionGraphOrderBy, - CreateFunctionGraphInput, UpdateFunctionGraphInput, FunctionGraphPatch, } from '../input-types'; @@ -144,33 +143,6 @@ export class FunctionGraphModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createFunctionGraph: { - functionGraph: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'FunctionGraph', - 'createFunctionGraph', - 'functionGraph', - args.select, - args.data, - 'CreateFunctionGraphInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'FunctionGraph', - fieldName: 'createFunctionGraph', - document, - variables, - }); - } update( args: UpdateArgs< S, diff --git a/sdk/constructive-sdk/src/compute/orm/models/getAllTreeNodesRecord.ts b/sdk/constructive-sdk/src/compute/orm/models/getAllTreeNodesRecord.ts index 00f51d01f7..275a902f66 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/getAllTreeNodesRecord.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/getAllTreeNodesRecord.ts @@ -29,7 +29,6 @@ import type { GetAllTreeNodesRecordSelect, GetAllTreeNodesRecordFilter, GetAllTreeNodesRecordsOrderBy, - CreateGetAllTreeNodesRecordInput, UpdateGetAllTreeNodesRecordInput, GetAllTreeNodesRecordPatch, } from '../input-types'; @@ -104,31 +103,4 @@ export class GetAllTreeNodesRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createGetAllTreeNodesRecord: { - getAllTreeNodesRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'GetAllTreeNodesRecord', - 'createGetAllTreeNodesRecord', - 'getAllTreeNodesRecord', - args.select, - args.data, - 'CreateGetAllTreeNodesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'GetAllTreeNodesRecord', - fieldName: 'createGetAllTreeNodesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/compute/orm/models/index.ts b/sdk/constructive-sdk/src/compute/orm/models/index.ts index 3b2af275ae..dfb31b3c70 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/index.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/index.ts @@ -5,7 +5,6 @@ */ export { BuildModel } from './build'; export { BuildStepModel } from './buildStep'; -export { BuilderBindingModel } from './builderBinding'; export { ContentPresetModel } from './contentPreset'; export { DatabaseFunctionGraphModel } from './databaseFunctionGraph'; export { DatabaseFunctionGraphExecutionCancelRequestModel } from './databaseFunctionGraphExecutionCancelRequest'; @@ -49,7 +48,6 @@ export { NamespaceModel } from './namespace'; export { NamespaceEventModel } from './namespaceEvent'; export { PlatformBuildModel } from './platformBuild'; export { PlatformBuildStepModel } from './platformBuildStep'; -export { PlatformBuilderBindingModel } from './platformBuilderBinding'; export { PlatformFunctionApiBindingModel } from './platformFunctionApiBinding'; export { PlatformFunctionCapabilityBindingModel } from './platformFunctionCapabilityBinding'; export { PlatformFunctionDefinitionModel } from './platformFunctionDefinition'; @@ -96,6 +94,7 @@ export { PlatformResourceUtilizationModel } from './platformResourceUtilization' export { PlatformResourcesHealthModel } from './platformResourcesHealth'; export { PlatformResourcesRequirementsStateModel } from './platformResourcesRequirementsState'; export { PlatformResourcesResolvedRequirementModel } from './platformResourcesResolvedRequirement'; +export { PlatformServiceBindingModel } from './platformServiceBinding'; export { PlatformWebhookEndpointModel } from './platformWebhookEndpoint'; export { PlatformWebhookEventModel } from './platformWebhookEvent'; export { ProposalCommentModel } from './proposalComment'; @@ -124,5 +123,6 @@ export { ResourceUtilizationModel } from './resourceUtilization'; export { ResourcesHealthModel } from './resourcesHealth'; export { ResourcesRequirementsStateModel } from './resourcesRequirementsState'; export { ResourcesResolvedRequirementModel } from './resourcesResolvedRequirement'; +export { ServiceBindingModel } from './serviceBinding'; export { WebhookEndpointModel } from './webhookEndpoint'; export { WebhookEventModel } from './webhookEvent'; diff --git a/sdk/constructive-sdk/src/compute/orm/models/infraGetAllTreeNodesRecord.ts b/sdk/constructive-sdk/src/compute/orm/models/infraGetAllTreeNodesRecord.ts index 7f2e31d467..e3f66b257e 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/infraGetAllTreeNodesRecord.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/infraGetAllTreeNodesRecord.ts @@ -29,7 +29,6 @@ import type { InfraGetAllTreeNodesRecordSelect, InfraGetAllTreeNodesRecordFilter, InfraGetAllTreeNodesRecordsOrderBy, - CreateInfraGetAllTreeNodesRecordInput, UpdateInfraGetAllTreeNodesRecordInput, InfraGetAllTreeNodesRecordPatch, } from '../input-types'; @@ -109,31 +108,4 @@ export class InfraGetAllTreeNodesRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createInfraGetAllTreeNodesRecord: { - infraGetAllTreeNodesRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'InfraGetAllTreeNodesRecord', - 'createInfraGetAllTreeNodesRecord', - 'infraGetAllTreeNodesRecord', - args.select, - args.data, - 'CreateInfraGetAllTreeNodesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'InfraGetAllTreeNodesRecord', - fieldName: 'createInfraGetAllTreeNodesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformBuilderBinding.ts b/sdk/constructive-sdk/src/compute/orm/models/platformBuilderBinding.ts deleted file mode 100644 index 09a8daa1ed..0000000000 --- a/sdk/constructive-sdk/src/compute/orm/models/platformBuilderBinding.ts +++ /dev/null @@ -1,247 +0,0 @@ -/** - * PlatformBuilderBinding model for ORM client - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { OrmClient } from '../client'; -import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, - buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, -} from '../query-builder'; -import type { - ConnectionResult, - FindManyArgs, - FindFirstArgs, - CreateArgs, - UpdateArgs, - DeleteArgs, - InferSelectResult, - StrictSelect, -} from '../select-types'; -import type { - PlatformBuilderBinding, - PlatformBuilderBindingWithRelations, - PlatformBuilderBindingSelect, - PlatformBuilderBindingFilter, - PlatformBuilderBindingOrderBy, - CreatePlatformBuilderBindingInput, - UpdatePlatformBuilderBindingInput, - PlatformBuilderBindingPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class PlatformBuilderBindingModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - platformBuilderBindings: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'PlatformBuilderBinding', - 'platformBuilderBindings', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - first: args?.first, - last: args?.last, - after: args?.after, - before: args?.before, - offset: args?.offset, - }, - 'PlatformBuilderBindingFilter', - 'PlatformBuilderBindingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlatformBuilderBinding', - fieldName: 'platformBuilderBindings', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - platformBuilderBinding: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'PlatformBuilderBinding', - 'platformBuilderBindings', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'PlatformBuilderBindingFilter', - 'PlatformBuilderBindingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlatformBuilderBinding', - fieldName: 'platformBuilderBinding', - document, - variables, - transform: (data: { - platformBuilderBindings?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - platformBuilderBinding: data.platformBuilderBindings?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - platformBuilderBinding: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'PlatformBuilderBinding', - 'platformBuilderBindings', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'PlatformBuilderBindingFilter', - 'PlatformBuilderBindingOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'PlatformBuilderBinding', - fieldName: 'platformBuilderBinding', - document, - variables, - transform: (data: { - platformBuilderBindings?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - platformBuilderBinding: data.platformBuilderBindings?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformBuilderBinding: { - platformBuilderBinding: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformBuilderBinding', - 'createPlatformBuilderBinding', - 'platformBuilderBinding', - args.select, - args.data, - 'CreatePlatformBuilderBindingInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformBuilderBinding', - fieldName: 'createPlatformBuilderBinding', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - PlatformBuilderBindingPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updatePlatformBuilderBinding: { - platformBuilderBinding: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'PlatformBuilderBinding', - 'updatePlatformBuilderBinding', - 'platformBuilderBinding', - args.select, - args.where.id, - args.data, - 'UpdatePlatformBuilderBindingInput', - 'id', - 'platformBuilderBindingPatch', - connectionFieldsMap, - undefined - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformBuilderBinding', - fieldName: 'updatePlatformBuilderBinding', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deletePlatformBuilderBinding: { - platformBuilderBinding: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'PlatformBuilderBinding', - 'deletePlatformBuilderBinding', - 'platformBuilderBinding', - { - id: args.where.id, - }, - 'DeletePlatformBuilderBindingInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformBuilderBinding', - fieldName: 'deletePlatformBuilderBinding', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformInfraGetAllTreeNodesRecord.ts b/sdk/constructive-sdk/src/compute/orm/models/platformInfraGetAllTreeNodesRecord.ts index e0e0a2aeaa..522c666bd3 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/platformInfraGetAllTreeNodesRecord.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/platformInfraGetAllTreeNodesRecord.ts @@ -29,7 +29,6 @@ import type { PlatformInfraGetAllTreeNodesRecordSelect, PlatformInfraGetAllTreeNodesRecordFilter, PlatformInfraGetAllTreeNodesRecordsOrderBy, - CreatePlatformInfraGetAllTreeNodesRecordInput, UpdatePlatformInfraGetAllTreeNodesRecordInput, PlatformInfraGetAllTreeNodesRecordPatch, } from '../input-types'; @@ -117,37 +116,4 @@ export class PlatformInfraGetAllTreeNodesRecordModel { }), }); } - create( - args: CreateArgs< - S, - CreatePlatformInfraGetAllTreeNodesRecordInput['platformInfraGetAllTreeNodesRecord'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformInfraGetAllTreeNodesRecord: { - platformInfraGetAllTreeNodesRecord: InferSelectResult< - PlatformInfraGetAllTreeNodesRecordWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformInfraGetAllTreeNodesRecord', - 'createPlatformInfraGetAllTreeNodesRecord', - 'platformInfraGetAllTreeNodesRecord', - args.select, - args.data, - 'CreatePlatformInfraGetAllTreeNodesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformInfraGetAllTreeNodesRecord', - fieldName: 'createPlatformInfraGetAllTreeNodesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformResourceDeclaredCapacity.ts b/sdk/constructive-sdk/src/compute/orm/models/platformResourceDeclaredCapacity.ts index 66a88f859d..c61ba71d35 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/platformResourceDeclaredCapacity.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/platformResourceDeclaredCapacity.ts @@ -29,7 +29,6 @@ import type { PlatformResourceDeclaredCapacitySelect, PlatformResourceDeclaredCapacityFilter, PlatformResourceDeclaredCapacityOrderBy, - CreatePlatformResourceDeclaredCapacityInput, UpdatePlatformResourceDeclaredCapacityInput, PlatformResourceDeclaredCapacityPatch, } from '../input-types'; @@ -118,37 +117,4 @@ export class PlatformResourceDeclaredCapacityModel { }), }); } - create( - args: CreateArgs< - S, - CreatePlatformResourceDeclaredCapacityInput['platformResourceDeclaredCapacity'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformResourceDeclaredCapacity: { - platformResourceDeclaredCapacity: InferSelectResult< - PlatformResourceDeclaredCapacityWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformResourceDeclaredCapacity', - 'createPlatformResourceDeclaredCapacity', - 'platformResourceDeclaredCapacity', - args.select, - args.data, - 'CreatePlatformResourceDeclaredCapacityInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformResourceDeclaredCapacity', - fieldName: 'createPlatformResourceDeclaredCapacity', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformResourceObservedStorage.ts b/sdk/constructive-sdk/src/compute/orm/models/platformResourceObservedStorage.ts index 80a274b483..5a5654a907 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/platformResourceObservedStorage.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/platformResourceObservedStorage.ts @@ -29,7 +29,6 @@ import type { PlatformResourceObservedStorageSelect, PlatformResourceObservedStorageFilter, PlatformResourceObservedStorageOrderBy, - CreatePlatformResourceObservedStorageInput, UpdatePlatformResourceObservedStorageInput, PlatformResourceObservedStoragePatch, } from '../input-types'; @@ -117,37 +116,4 @@ export class PlatformResourceObservedStorageModel { }), }); } - create( - args: CreateArgs< - S, - CreatePlatformResourceObservedStorageInput['platformResourceObservedStorage'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformResourceObservedStorage: { - platformResourceObservedStorage: InferSelectResult< - PlatformResourceObservedStorageWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformResourceObservedStorage', - 'createPlatformResourceObservedStorage', - 'platformResourceObservedStorage', - args.select, - args.data, - 'CreatePlatformResourceObservedStorageInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformResourceObservedStorage', - fieldName: 'createPlatformResourceObservedStorage', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformResourceUtilization.ts b/sdk/constructive-sdk/src/compute/orm/models/platformResourceUtilization.ts index 040d38000e..2c7bffa084 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/platformResourceUtilization.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/platformResourceUtilization.ts @@ -29,7 +29,6 @@ import type { PlatformResourceUtilizationSelect, PlatformResourceUtilizationFilter, PlatformResourceUtilizationOrderBy, - CreatePlatformResourceUtilizationInput, UpdatePlatformResourceUtilizationInput, PlatformResourceUtilizationPatch, } from '../input-types'; @@ -113,31 +112,4 @@ export class PlatformResourceUtilizationModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformResourceUtilization: { - platformResourceUtilization: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformResourceUtilization', - 'createPlatformResourceUtilization', - 'platformResourceUtilization', - args.select, - args.data, - 'CreatePlatformResourceUtilizationInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformResourceUtilization', - fieldName: 'createPlatformResourceUtilization', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformResourcesHealth.ts b/sdk/constructive-sdk/src/compute/orm/models/platformResourcesHealth.ts index 0f0efa3e31..7249c4259c 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/platformResourcesHealth.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/platformResourcesHealth.ts @@ -29,7 +29,6 @@ import type { PlatformResourcesHealthSelect, PlatformResourcesHealthFilter, PlatformResourcesHealthOrderBy, - CreatePlatformResourcesHealthInput, UpdatePlatformResourcesHealthInput, PlatformResourcesHealthPatch, } from '../input-types'; @@ -146,31 +145,4 @@ export class PlatformResourcesHealthModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformResourcesHealth: { - platformResourcesHealth: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformResourcesHealth', - 'createPlatformResourcesHealth', - 'platformResourcesHealth', - args.select, - args.data, - 'CreatePlatformResourcesHealthInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformResourcesHealth', - fieldName: 'createPlatformResourcesHealth', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformResourcesRequirementsState.ts b/sdk/constructive-sdk/src/compute/orm/models/platformResourcesRequirementsState.ts index ab6152e426..4eb7854059 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/platformResourcesRequirementsState.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/platformResourcesRequirementsState.ts @@ -29,7 +29,6 @@ import type { PlatformResourcesRequirementsStateSelect, PlatformResourcesRequirementsStateFilter, PlatformResourcesRequirementsStateOrderBy, - CreatePlatformResourcesRequirementsStateInput, UpdatePlatformResourcesRequirementsStateInput, PlatformResourcesRequirementsStatePatch, } from '../input-types'; @@ -118,37 +117,4 @@ export class PlatformResourcesRequirementsStateModel { }), }); } - create( - args: CreateArgs< - S, - CreatePlatformResourcesRequirementsStateInput['platformResourcesRequirementsState'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformResourcesRequirementsState: { - platformResourcesRequirementsState: InferSelectResult< - PlatformResourcesRequirementsStateWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformResourcesRequirementsState', - 'createPlatformResourcesRequirementsState', - 'platformResourcesRequirementsState', - args.select, - args.data, - 'CreatePlatformResourcesRequirementsStateInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformResourcesRequirementsState', - fieldName: 'createPlatformResourcesRequirementsState', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformResourcesResolvedRequirement.ts b/sdk/constructive-sdk/src/compute/orm/models/platformResourcesResolvedRequirement.ts index d7d7bf4ed0..0326681f64 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/platformResourcesResolvedRequirement.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/platformResourcesResolvedRequirement.ts @@ -29,7 +29,6 @@ import type { PlatformResourcesResolvedRequirementSelect, PlatformResourcesResolvedRequirementFilter, PlatformResourcesResolvedRequirementOrderBy, - CreatePlatformResourcesResolvedRequirementInput, UpdatePlatformResourcesResolvedRequirementInput, PlatformResourcesResolvedRequirementPatch, } from '../input-types'; @@ -118,37 +117,4 @@ export class PlatformResourcesResolvedRequirementModel { }), }); } - create( - args: CreateArgs< - S, - CreatePlatformResourcesResolvedRequirementInput['platformResourcesResolvedRequirement'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformResourcesResolvedRequirement: { - platformResourcesResolvedRequirement: InferSelectResult< - PlatformResourcesResolvedRequirementWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformResourcesResolvedRequirement', - 'createPlatformResourcesResolvedRequirement', - 'platformResourcesResolvedRequirement', - args.select, - args.data, - 'CreatePlatformResourcesResolvedRequirementInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformResourcesResolvedRequirement', - fieldName: 'createPlatformResourcesResolvedRequirement', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/compute/orm/models/platformServiceBinding.ts b/sdk/constructive-sdk/src/compute/orm/models/platformServiceBinding.ts new file mode 100644 index 0000000000..e50381b94d --- /dev/null +++ b/sdk/constructive-sdk/src/compute/orm/models/platformServiceBinding.ts @@ -0,0 +1,247 @@ +/** + * PlatformServiceBinding model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlatformServiceBinding, + PlatformServiceBindingWithRelations, + PlatformServiceBindingSelect, + PlatformServiceBindingFilter, + PlatformServiceBindingOrderBy, + CreatePlatformServiceBindingInput, + UpdatePlatformServiceBindingInput, + PlatformServiceBindingPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlatformServiceBindingModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformServiceBindings: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformServiceBinding', + 'platformServiceBindings', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlatformServiceBindingFilter', + 'PlatformServiceBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformServiceBinding', + fieldName: 'platformServiceBindings', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformServiceBinding: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlatformServiceBinding', + 'platformServiceBindings', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'PlatformServiceBindingFilter', + 'PlatformServiceBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformServiceBinding', + fieldName: 'platformServiceBinding', + document, + variables, + transform: (data: { + platformServiceBindings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformServiceBinding: data.platformServiceBindings?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + platformServiceBinding: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlatformServiceBinding', + 'platformServiceBindings', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlatformServiceBindingFilter', + 'PlatformServiceBindingOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlatformServiceBinding', + fieldName: 'platformServiceBinding', + document, + variables, + transform: (data: { + platformServiceBindings?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + platformServiceBinding: data.platformServiceBindings?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlatformServiceBinding: { + platformServiceBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlatformServiceBinding', + 'createPlatformServiceBinding', + 'platformServiceBinding', + args.select, + args.data, + 'CreatePlatformServiceBindingInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformServiceBinding', + fieldName: 'createPlatformServiceBinding', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlatformServiceBindingPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlatformServiceBinding: { + platformServiceBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlatformServiceBinding', + 'updatePlatformServiceBinding', + 'platformServiceBinding', + args.select, + args.where.id, + args.data, + 'UpdatePlatformServiceBindingInput', + 'id', + 'platformServiceBindingPatch', + connectionFieldsMap, + undefined + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformServiceBinding', + fieldName: 'updatePlatformServiceBinding', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlatformServiceBinding: { + platformServiceBinding: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlatformServiceBinding', + 'deletePlatformServiceBinding', + 'platformServiceBinding', + { + id: args.where.id, + }, + 'DeletePlatformServiceBindingInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlatformServiceBinding', + fieldName: 'deletePlatformServiceBinding', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/compute/orm/models/resourceDeclaredCapacity.ts b/sdk/constructive-sdk/src/compute/orm/models/resourceDeclaredCapacity.ts index 6340979a98..3ea2e93607 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/resourceDeclaredCapacity.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/resourceDeclaredCapacity.ts @@ -29,7 +29,6 @@ import type { ResourceDeclaredCapacitySelect, ResourceDeclaredCapacityFilter, ResourceDeclaredCapacityOrderBy, - CreateResourceDeclaredCapacityInput, UpdateResourceDeclaredCapacityInput, ResourceDeclaredCapacityPatch, } from '../input-types'; @@ -106,31 +105,4 @@ export class ResourceDeclaredCapacityModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createResourceDeclaredCapacity: { - resourceDeclaredCapacity: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ResourceDeclaredCapacity', - 'createResourceDeclaredCapacity', - 'resourceDeclaredCapacity', - args.select, - args.data, - 'CreateResourceDeclaredCapacityInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ResourceDeclaredCapacity', - fieldName: 'createResourceDeclaredCapacity', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/compute/orm/models/resourceObservedStorage.ts b/sdk/constructive-sdk/src/compute/orm/models/resourceObservedStorage.ts index 75769aef61..2d9c328e85 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/resourceObservedStorage.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/resourceObservedStorage.ts @@ -29,7 +29,6 @@ import type { ResourceObservedStorageSelect, ResourceObservedStorageFilter, ResourceObservedStorageOrderBy, - CreateResourceObservedStorageInput, UpdateResourceObservedStorageInput, ResourceObservedStoragePatch, } from '../input-types'; @@ -106,31 +105,4 @@ export class ResourceObservedStorageModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createResourceObservedStorage: { - resourceObservedStorage: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ResourceObservedStorage', - 'createResourceObservedStorage', - 'resourceObservedStorage', - args.select, - args.data, - 'CreateResourceObservedStorageInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ResourceObservedStorage', - fieldName: 'createResourceObservedStorage', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/compute/orm/models/resourceUtilization.ts b/sdk/constructive-sdk/src/compute/orm/models/resourceUtilization.ts index 3620486000..6704ad6230 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/resourceUtilization.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/resourceUtilization.ts @@ -29,7 +29,6 @@ import type { ResourceUtilizationSelect, ResourceUtilizationFilter, ResourceUtilizationOrderBy, - CreateResourceUtilizationInput, UpdateResourceUtilizationInput, ResourceUtilizationPatch, } from '../input-types'; @@ -104,31 +103,4 @@ export class ResourceUtilizationModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createResourceUtilization: { - resourceUtilization: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ResourceUtilization', - 'createResourceUtilization', - 'resourceUtilization', - args.select, - args.data, - 'CreateResourceUtilizationInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ResourceUtilization', - fieldName: 'createResourceUtilization', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/compute/orm/models/resourcesHealth.ts b/sdk/constructive-sdk/src/compute/orm/models/resourcesHealth.ts index 1ac97bab3d..6b66d67938 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/resourcesHealth.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/resourcesHealth.ts @@ -29,7 +29,6 @@ import type { ResourcesHealthSelect, ResourcesHealthFilter, ResourcesHealthOrderBy, - CreateResourcesHealthInput, UpdateResourcesHealthInput, ResourcesHealthPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class ResourcesHealthModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createResourcesHealth: { - resourcesHealth: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ResourcesHealth', - 'createResourcesHealth', - 'resourcesHealth', - args.select, - args.data, - 'CreateResourcesHealthInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ResourcesHealth', - fieldName: 'createResourcesHealth', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/compute/orm/models/resourcesRequirementsState.ts b/sdk/constructive-sdk/src/compute/orm/models/resourcesRequirementsState.ts index 8ce68f6a31..85dbd5a7d1 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/resourcesRequirementsState.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/resourcesRequirementsState.ts @@ -29,7 +29,6 @@ import type { ResourcesRequirementsStateSelect, ResourcesRequirementsStateFilter, ResourcesRequirementsStateOrderBy, - CreateResourcesRequirementsStateInput, UpdateResourcesRequirementsStateInput, ResourcesRequirementsStatePatch, } from '../input-types'; @@ -109,31 +108,4 @@ export class ResourcesRequirementsStateModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createResourcesRequirementsState: { - resourcesRequirementsState: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ResourcesRequirementsState', - 'createResourcesRequirementsState', - 'resourcesRequirementsState', - args.select, - args.data, - 'CreateResourcesRequirementsStateInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ResourcesRequirementsState', - fieldName: 'createResourcesRequirementsState', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/compute/orm/models/resourcesResolvedRequirement.ts b/sdk/constructive-sdk/src/compute/orm/models/resourcesResolvedRequirement.ts index 40680dcfb3..2a9d9d1034 100644 --- a/sdk/constructive-sdk/src/compute/orm/models/resourcesResolvedRequirement.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/resourcesResolvedRequirement.ts @@ -29,7 +29,6 @@ import type { ResourcesResolvedRequirementSelect, ResourcesResolvedRequirementFilter, ResourcesResolvedRequirementOrderBy, - CreateResourcesResolvedRequirementInput, UpdateResourcesResolvedRequirementInput, ResourcesResolvedRequirementPatch, } from '../input-types'; @@ -117,31 +116,4 @@ export class ResourcesResolvedRequirementModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createResourcesResolvedRequirement: { - resourcesResolvedRequirement: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'ResourcesResolvedRequirement', - 'createResourcesResolvedRequirement', - 'resourcesResolvedRequirement', - args.select, - args.data, - 'CreateResourcesResolvedRequirementInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'ResourcesResolvedRequirement', - fieldName: 'createResourcesResolvedRequirement', - document, - variables, - }); - } } diff --git a/sdk/constructive-react/src/compute/orm/models/builderBinding.ts b/sdk/constructive-sdk/src/compute/orm/models/serviceBinding.ts similarity index 53% rename from sdk/constructive-react/src/compute/orm/models/builderBinding.ts rename to sdk/constructive-sdk/src/compute/orm/models/serviceBinding.ts index 0d5d7843e3..be7061a21b 100644 --- a/sdk/constructive-react/src/compute/orm/models/builderBinding.ts +++ b/sdk/constructive-sdk/src/compute/orm/models/serviceBinding.ts @@ -1,5 +1,5 @@ /** - * BuilderBinding model for ORM client + * ServiceBinding model for ORM client * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -24,28 +24,28 @@ import type { StrictSelect, } from '../select-types'; import type { - BuilderBinding, - BuilderBindingWithRelations, - BuilderBindingSelect, - BuilderBindingFilter, - BuilderBindingOrderBy, - CreateBuilderBindingInput, - UpdateBuilderBindingInput, - BuilderBindingPatch, + ServiceBinding, + ServiceBindingWithRelations, + ServiceBindingSelect, + ServiceBindingFilter, + ServiceBindingOrderBy, + CreateServiceBindingInput, + UpdateServiceBindingInput, + ServiceBindingPatch, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export class BuilderBindingModel { +export class ServiceBindingModel { constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { + findMany( + args: FindManyArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - builderBindings: ConnectionResult>; + serviceBindings: ConnectionResult>; }> { const { document, variables } = buildFindManyDocument( - 'BuilderBinding', - 'builderBindings', + 'ServiceBinding', + 'serviceBindings', args.select, { where: args?.where, @@ -56,65 +56,65 @@ export class BuilderBindingModel { before: args?.before, offset: args?.offset, }, - 'BuilderBindingFilter', - 'BuilderBindingOrderBy', + 'ServiceBindingFilter', + 'ServiceBindingOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'BuilderBinding', - fieldName: 'builderBindings', + operationName: 'ServiceBinding', + fieldName: 'serviceBindings', document, variables, }); } - findFirst( - args: FindFirstArgs & { + findFirst( + args: FindFirstArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - builderBinding: InferSelectResult | null; + serviceBinding: InferSelectResult | null; }> { const { document, variables } = buildFindFirstDocument( - 'BuilderBinding', - 'builderBindings', + 'ServiceBinding', + 'serviceBindings', args.select, { where: args?.where, orderBy: args?.orderBy as string[] | undefined, }, - 'BuilderBindingFilter', - 'BuilderBindingOrderBy', + 'ServiceBindingFilter', + 'ServiceBindingOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'BuilderBinding', - fieldName: 'builderBinding', + operationName: 'ServiceBinding', + fieldName: 'serviceBinding', document, variables, transform: (data: { - builderBindings?: { - nodes?: InferSelectResult[]; + serviceBindings?: { + nodes?: InferSelectResult[]; }; }) => ({ - builderBinding: data.builderBindings?.nodes?.[0] ?? null, + serviceBinding: data.serviceBindings?.nodes?.[0] ?? null, }), }); } - findOne( + findOne( args: { id: string; select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - builderBinding: InferSelectResult | null; + serviceBinding: InferSelectResult | null; }> { const { document, variables } = buildFindManyDocument( - 'BuilderBinding', - 'builderBindings', + 'ServiceBinding', + 'serviceBindings', args.select, { where: { @@ -124,91 +124,91 @@ export class BuilderBindingModel { }, first: 1, }, - 'BuilderBindingFilter', - 'BuilderBindingOrderBy', + 'ServiceBindingFilter', + 'ServiceBindingOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'BuilderBinding', - fieldName: 'builderBinding', + operationName: 'ServiceBinding', + fieldName: 'serviceBinding', document, variables, transform: (data: { - builderBindings?: { - nodes?: InferSelectResult[]; + serviceBindings?: { + nodes?: InferSelectResult[]; }; }) => ({ - builderBinding: data.builderBindings?.nodes?.[0] ?? null, + serviceBinding: data.serviceBindings?.nodes?.[0] ?? null, }), }); } - create( - args: CreateArgs & { + create( + args: CreateArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - createBuilderBinding: { - builderBinding: InferSelectResult; + createServiceBinding: { + serviceBinding: InferSelectResult; }; }> { const { document, variables } = buildCreateDocument( - 'BuilderBinding', - 'createBuilderBinding', - 'builderBinding', + 'ServiceBinding', + 'createServiceBinding', + 'serviceBinding', args.select, args.data, - 'CreateBuilderBindingInput', + 'CreateServiceBindingInput', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'BuilderBinding', - fieldName: 'createBuilderBinding', + operationName: 'ServiceBinding', + fieldName: 'createServiceBinding', document, variables, }); } - update( + update( args: UpdateArgs< S, { id: string; }, - BuilderBindingPatch + ServiceBindingPatch > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - updateBuilderBinding: { - builderBinding: InferSelectResult; + updateServiceBinding: { + serviceBinding: InferSelectResult; }; }> { const { document, variables } = buildUpdateByPkDocument( - 'BuilderBinding', - 'updateBuilderBinding', - 'builderBinding', + 'ServiceBinding', + 'updateServiceBinding', + 'serviceBinding', args.select, args.where.id, args.data, - 'UpdateBuilderBindingInput', + 'UpdateServiceBindingInput', 'id', - 'builderBindingPatch', + 'serviceBindingPatch', connectionFieldsMap, undefined ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'BuilderBinding', - fieldName: 'updateBuilderBinding', + operationName: 'ServiceBinding', + fieldName: 'updateServiceBinding', document, variables, }); } - delete( + delete( args: DeleteArgs< { id: string; @@ -216,28 +216,28 @@ export class BuilderBindingModel { S > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - deleteBuilderBinding: { - builderBinding: InferSelectResult; + deleteServiceBinding: { + serviceBinding: InferSelectResult; }; }> { const { document, variables } = buildDeleteByPkDocument( - 'BuilderBinding', - 'deleteBuilderBinding', - 'builderBinding', + 'ServiceBinding', + 'deleteServiceBinding', + 'serviceBinding', { id: args.where.id, }, - 'DeleteBuilderBindingInput', + 'DeleteServiceBindingInput', args.select, connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'BuilderBinding', - fieldName: 'deleteBuilderBinding', + operationName: 'ServiceBinding', + fieldName: 'deleteServiceBinding', document, variables, }); diff --git a/sdk/constructive-sdk/src/compute/orm/mutation/index.ts b/sdk/constructive-sdk/src/compute/orm/mutation/index.ts index 48ca756e41..3b03efb8a3 100644 --- a/sdk/constructive-sdk/src/compute/orm/mutation/index.ts +++ b/sdk/constructive-sdk/src/compute/orm/mutation/index.ts @@ -13,6 +13,7 @@ import type { AddNodeAndSaveInput, ApproveNodeInput, CopyGraphInput, + CreateFunctionGraphInput, DatabaseAddEdgeInput, DatabaseAddEdgeAndSaveInput, DatabaseAddNodeInput, @@ -75,6 +76,7 @@ import type { AddNodeAndSavePayload, ApproveNodePayload, CopyGraphPayload, + CreateFunctionGraphPayload, DatabaseAddEdgePayload, DatabaseAddEdgeAndSavePayload, DatabaseAddNodePayload, @@ -137,6 +139,7 @@ import type { AddNodeAndSavePayloadSelect, ApproveNodePayloadSelect, CopyGraphPayloadSelect, + CreateFunctionGraphPayloadSelect, DatabaseAddEdgePayloadSelect, DatabaseAddEdgeAndSavePayloadSelect, DatabaseAddNodePayloadSelect, @@ -213,6 +216,9 @@ export interface ApproveNodeVariables { export interface CopyGraphVariables { input: CopyGraphInput; } +export interface CreateFunctionGraphVariables { + input: CreateFunctionGraphInput; +} export interface DatabaseAddEdgeVariables { input: DatabaseAddEdgeInput; } @@ -566,6 +572,35 @@ export function createMutationOperations(client: OrmClient) { 'CopyGraphPayload' ), }), + createFunctionGraph: ( + args: CreateFunctionGraphVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + createFunctionGraph: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'CreateFunctionGraph', + fieldName: 'createFunctionGraph', + ...buildCustomDocument( + 'mutation', + 'CreateFunctionGraph', + 'createFunctionGraph', + options.select, + args, + [ + { + name: 'input', + type: 'CreateFunctionGraphInput!', + }, + ], + connectionFieldsMap, + 'CreateFunctionGraphPayload' + ), + }), databaseAddEdge: ( args: DatabaseAddEdgeVariables, options: { diff --git a/sdk/constructive-sdk/src/config/orm/README.md b/sdk/constructive-sdk/src/config/orm/README.md index 8e9c44033d..b52d2f9776 100644 --- a/sdk/constructive-sdk/src/config/orm/README.md +++ b/sdk/constructive-sdk/src/config/orm/README.md @@ -21,15 +21,15 @@ const db = createClient({ | Model | Operations | |-------|------------| -| `appInternalSecret` | findMany, findOne, create, update, delete | +| `appInternalSecret` | findMany, findOne, update, delete | | `config` | findMany, findOne, create, update, delete | | `internalConfig` | findMany, findOne, create, update, delete | -| `internalSecret` | findMany, findOne, create, update, delete | +| `internalSecret` | findMany, findOne, update, delete | | `platformConfig` | findMany, findOne, create, update, delete | | `platformInternalConfig` | findMany, findOne, create, update, delete | -| `platformInternalSecret` | findMany, findOne, create, update, delete | -| `platformSecret` | findMany, findOne, create, update, delete | -| `secret` | findMany, findOne, create, update, delete | +| `platformInternalSecret` | findMany, findOne, update, delete | +| `platformSecret` | findMany, findOne, update, delete | +| `secret` | findMany, findOne, update, delete | ## Table Operations @@ -61,9 +61,6 @@ const items = await db.appInternalSecret.findMany({ select: { annotations: true, // Get one by id const item = await db.appInternalSecret.findOne({ id: '', select: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); -// Create -const created = await db.appInternalSecret.create({ data: { annotations: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute(); - // Update const updated = await db.appInternalSecret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -183,9 +180,6 @@ const items = await db.internalSecret.findMany({ select: { annotations: true, cr // Get one by id const item = await db.internalSecret.findOne({ id: '', select: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); -// Create -const created = await db.internalSecret.create({ data: { annotations: '', databaseId: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute(); - // Update const updated = await db.internalSecret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -302,9 +296,6 @@ const items = await db.platformInternalSecret.findMany({ select: { annotations: // Get one by id const item = await db.platformInternalSecret.findOne({ id: '', select: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); -// Create -const created = await db.platformInternalSecret.create({ data: { annotations: '', description: '', labels: '', name: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformInternalSecret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -342,9 +333,6 @@ const items = await db.platformSecret.findMany({ select: { annotations: true, cr // Get one by id const item = await db.platformSecret.findOne({ id: '', select: { annotations: true, createdAt: true, description: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); -// Create -const created = await db.platformSecret.create({ data: { annotations: '', description: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformSecret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); @@ -383,9 +371,6 @@ const items = await db.secret.findMany({ select: { annotations: true, createdAt: // Get one by id const item = await db.secret.findOne({ id: '', select: { annotations: true, createdAt: true, databaseId: true, description: true, id: true, labels: true, name: true, namespaceId: true, provider: true, realm: true, retiredAt: true, rotatedAt: true, updatedAt: true } }).execute(); -// Create -const created = await db.secret.create({ data: { annotations: '', databaseId: '', description: '', labels: '', name: '', namespaceId: '', provider: '', realm: '', retiredAt: '', rotatedAt: '' }, select: { id: true } }).execute(); - // Update const updated = await db.secret.update({ where: { id: '' }, data: { annotations: '' }, select: { id: true } }).execute(); diff --git a/sdk/constructive-sdk/src/config/orm/input-types.ts b/sdk/constructive-sdk/src/config/orm/input-types.ts index 317d86e5b9..bd666714a5 100644 --- a/sdk/constructive-sdk/src/config/orm/input-types.ts +++ b/sdk/constructive-sdk/src/config/orm/input-types.ts @@ -1095,18 +1095,6 @@ export type SecretOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; // ============ CRUD Input Types ============ -export interface CreateAppInternalSecretInput { - clientMutationId?: string; - appInternalSecret: { - annotations?: Record; - description?: string; - labels?: Record; - name?: string; - realm?: string; - retiredAt?: string; - rotatedAt?: string; - }; -} export interface AppInternalSecretPatch { annotations?: Record | null; description?: string | null; @@ -1199,19 +1187,6 @@ export interface DeleteInternalConfigInput { clientMutationId?: string; id: string; } -export interface CreateInternalSecretInput { - clientMutationId?: string; - internalSecret: { - annotations?: Record; - databaseId: string; - description?: string; - labels?: Record; - name?: string; - realm?: string; - retiredAt?: string; - rotatedAt?: string; - }; -} export interface InternalSecretPatch { annotations?: Record | null; databaseId?: string | null; @@ -1301,18 +1276,6 @@ export interface DeletePlatformInternalConfigInput { clientMutationId?: string; id: string; } -export interface CreatePlatformInternalSecretInput { - clientMutationId?: string; - platformInternalSecret: { - annotations?: Record; - description?: string; - labels?: Record; - name?: string; - realm?: string; - retiredAt?: string; - rotatedAt?: string; - }; -} export interface PlatformInternalSecretPatch { annotations?: Record | null; description?: string | null; @@ -1331,20 +1294,6 @@ export interface DeletePlatformInternalSecretInput { clientMutationId?: string; id: string; } -export interface CreatePlatformSecretInput { - clientMutationId?: string; - platformSecret: { - annotations?: Record; - description?: string; - labels?: Record; - name?: string; - namespaceId: string; - provider?: string; - realm?: string; - retiredAt?: string; - rotatedAt?: string; - }; -} export interface PlatformSecretPatch { annotations?: Record | null; description?: string | null; @@ -1365,21 +1314,6 @@ export interface DeletePlatformSecretInput { clientMutationId?: string; id: string; } -export interface CreateSecretInput { - clientMutationId?: string; - secret: { - annotations?: Record; - databaseId: string; - description?: string; - labels?: Record; - name?: string; - namespaceId: string; - provider?: string; - realm?: string; - retiredAt?: string; - rotatedAt?: string; - }; -} export interface SecretPatch { annotations?: Record | null; databaseId?: string | null; diff --git a/sdk/constructive-sdk/src/config/orm/models/appInternalSecret.ts b/sdk/constructive-sdk/src/config/orm/models/appInternalSecret.ts index 6efc1ad009..d876c61ee7 100644 --- a/sdk/constructive-sdk/src/config/orm/models/appInternalSecret.ts +++ b/sdk/constructive-sdk/src/config/orm/models/appInternalSecret.ts @@ -29,7 +29,6 @@ import type { AppInternalSecretSelect, AppInternalSecretFilter, AppInternalSecretOrderBy, - CreateAppInternalSecretInput, UpdateAppInternalSecretInput, AppInternalSecretPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class AppInternalSecretModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAppInternalSecret: { - appInternalSecret: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AppInternalSecret', - 'createAppInternalSecret', - 'appInternalSecret', - args.select, - args.data, - 'CreateAppInternalSecretInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AppInternalSecret', - fieldName: 'createAppInternalSecret', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/config/orm/models/internalSecret.ts b/sdk/constructive-sdk/src/config/orm/models/internalSecret.ts index daeef23c68..443924fe70 100644 --- a/sdk/constructive-sdk/src/config/orm/models/internalSecret.ts +++ b/sdk/constructive-sdk/src/config/orm/models/internalSecret.ts @@ -29,7 +29,6 @@ import type { InternalSecretSelect, InternalSecretFilter, InternalSecretOrderBy, - CreateInternalSecretInput, UpdateInternalSecretInput, InternalSecretPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class InternalSecretModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createInternalSecret: { - internalSecret: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'InternalSecret', - 'createInternalSecret', - 'internalSecret', - args.select, - args.data, - 'CreateInternalSecretInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'InternalSecret', - fieldName: 'createInternalSecret', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/config/orm/models/platformInternalSecret.ts b/sdk/constructive-sdk/src/config/orm/models/platformInternalSecret.ts index 35e0c7b538..0f246265ec 100644 --- a/sdk/constructive-sdk/src/config/orm/models/platformInternalSecret.ts +++ b/sdk/constructive-sdk/src/config/orm/models/platformInternalSecret.ts @@ -29,7 +29,6 @@ import type { PlatformInternalSecretSelect, PlatformInternalSecretFilter, PlatformInternalSecretOrderBy, - CreatePlatformInternalSecretInput, UpdatePlatformInternalSecretInput, PlatformInternalSecretPatch, } from '../input-types'; @@ -146,31 +145,4 @@ export class PlatformInternalSecretModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformInternalSecret: { - platformInternalSecret: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformInternalSecret', - 'createPlatformInternalSecret', - 'platformInternalSecret', - args.select, - args.data, - 'CreatePlatformInternalSecretInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformInternalSecret', - fieldName: 'createPlatformInternalSecret', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/config/orm/models/platformSecret.ts b/sdk/constructive-sdk/src/config/orm/models/platformSecret.ts index 03c0e23540..4c51afe005 100644 --- a/sdk/constructive-sdk/src/config/orm/models/platformSecret.ts +++ b/sdk/constructive-sdk/src/config/orm/models/platformSecret.ts @@ -29,7 +29,6 @@ import type { PlatformSecretSelect, PlatformSecretFilter, PlatformSecretOrderBy, - CreatePlatformSecretInput, UpdatePlatformSecretInput, PlatformSecretPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class PlatformSecretModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformSecret: { - platformSecret: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformSecret', - 'createPlatformSecret', - 'platformSecret', - args.select, - args.data, - 'CreatePlatformSecretInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformSecret', - fieldName: 'createPlatformSecret', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/config/orm/models/secret.ts b/sdk/constructive-sdk/src/config/orm/models/secret.ts index 37571240d8..580d275fdb 100644 --- a/sdk/constructive-sdk/src/config/orm/models/secret.ts +++ b/sdk/constructive-sdk/src/config/orm/models/secret.ts @@ -29,7 +29,6 @@ import type { SecretSelect, SecretFilter, SecretOrderBy, - CreateSecretInput, UpdateSecretInput, SecretPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class SecretModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createSecret: { - secret: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'Secret', - 'createSecret', - 'secret', - args.select, - args.data, - 'CreateSecretInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'Secret', - fieldName: 'createSecret', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/infra/orm/README.md b/sdk/constructive-sdk/src/infra/orm/README.md index 63c0b0f3e5..82604daf03 100644 --- a/sdk/constructive-sdk/src/infra/orm/README.md +++ b/sdk/constructive-sdk/src/infra/orm/README.md @@ -26,7 +26,7 @@ const db = createClient({ | `namespace` | findMany, findOne, create, update, delete | | `namespaceEvent` | findMany, findOne, create, update, delete | | `platformInfraCommit` | findMany, findOne, create, update, delete | -| `platformInfraGetAllTreeNodesRecord` | findMany, findOne, create, update, delete | +| `platformInfraGetAllTreeNodesRecord` | findMany, findOne, update, delete | | `platformInfraObject` | findMany, findOne, create, update, delete | | `platformInfraRef` | findMany, findOne, create, update, delete | | `platformInfraStore` | findMany, findOne, create, update, delete | @@ -248,9 +248,6 @@ const items = await db.platformInfraGetAllTreeNodesRecord.findMany({ select: { d // Get one by id const item = await db.platformInfraGetAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); -// Create -const created = await db.platformInfraGetAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); - // Update const updated = await db.platformInfraGetAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); diff --git a/sdk/constructive-sdk/src/infra/orm/input-types.ts b/sdk/constructive-sdk/src/infra/orm/input-types.ts index 10a6c604ec..498b6592bf 100644 --- a/sdk/constructive-sdk/src/infra/orm/input-types.ts +++ b/sdk/constructive-sdk/src/infra/orm/input-types.ts @@ -1245,13 +1245,6 @@ export interface DeletePlatformInfraCommitInput { clientMutationId?: string; id: string; } -export interface CreatePlatformInfraGetAllTreeNodesRecordInput { - clientMutationId?: string; - platformInfraGetAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; -} export interface PlatformInfraGetAllTreeNodesRecordPatch { data?: Record | null; path?: string[] | null; diff --git a/sdk/constructive-sdk/src/infra/orm/models/platformInfraGetAllTreeNodesRecord.ts b/sdk/constructive-sdk/src/infra/orm/models/platformInfraGetAllTreeNodesRecord.ts index e0e0a2aeaa..522c666bd3 100644 --- a/sdk/constructive-sdk/src/infra/orm/models/platformInfraGetAllTreeNodesRecord.ts +++ b/sdk/constructive-sdk/src/infra/orm/models/platformInfraGetAllTreeNodesRecord.ts @@ -29,7 +29,6 @@ import type { PlatformInfraGetAllTreeNodesRecordSelect, PlatformInfraGetAllTreeNodesRecordFilter, PlatformInfraGetAllTreeNodesRecordsOrderBy, - CreatePlatformInfraGetAllTreeNodesRecordInput, UpdatePlatformInfraGetAllTreeNodesRecordInput, PlatformInfraGetAllTreeNodesRecordPatch, } from '../input-types'; @@ -117,37 +116,4 @@ export class PlatformInfraGetAllTreeNodesRecordModel { }), }); } - create( - args: CreateArgs< - S, - CreatePlatformInfraGetAllTreeNodesRecordInput['platformInfraGetAllTreeNodesRecord'] - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformInfraGetAllTreeNodesRecord: { - platformInfraGetAllTreeNodesRecord: InferSelectResult< - PlatformInfraGetAllTreeNodesRecordWithRelations, - S - >; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformInfraGetAllTreeNodesRecord', - 'createPlatformInfraGetAllTreeNodesRecord', - 'platformInfraGetAllTreeNodesRecord', - args.select, - args.data, - 'CreatePlatformInfraGetAllTreeNodesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformInfraGetAllTreeNodesRecord', - fieldName: 'createPlatformInfraGetAllTreeNodesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/modules/orm/README.md b/sdk/constructive-sdk/src/modules/orm/README.md index 73e6574eaa..b7b873e859 100644 --- a/sdk/constructive-sdk/src/modules/orm/README.md +++ b/sdk/constructive-sdk/src/modules/orm/README.md @@ -498,6 +498,7 @@ CRUD operations for BlueprintConstruction records. | `constructedDefinition` | JSON | Yes | | `createdAt` | Datetime | No | | `databaseId` | UUID | Yes | +| `error` | JSON | Yes | | `id` | UUID | No | | `schemaId` | UUID | Yes | | `status` | String | Yes | @@ -508,13 +509,13 @@ CRUD operations for BlueprintConstruction records. ```typescript // List all blueprintConstruction records -const items = await db.blueprintConstruction.findMany({ select: { blueprintId: true, constructedAt: true, constructedDefinition: true, createdAt: true, databaseId: true, id: true, schemaId: true, status: true, tableMap: true, updatedAt: true } }).execute(); +const items = await db.blueprintConstruction.findMany({ select: { blueprintId: true, constructedAt: true, constructedDefinition: true, createdAt: true, databaseId: true, error: true, id: true, schemaId: true, status: true, tableMap: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.blueprintConstruction.findOne({ id: '', select: { blueprintId: true, constructedAt: true, constructedDefinition: true, createdAt: true, databaseId: true, id: true, schemaId: true, status: true, tableMap: true, updatedAt: true } }).execute(); +const item = await db.blueprintConstruction.findOne({ id: '', select: { blueprintId: true, constructedAt: true, constructedDefinition: true, createdAt: true, databaseId: true, error: true, id: true, schemaId: true, status: true, tableMap: true, updatedAt: true } }).execute(); // Create -const created = await db.blueprintConstruction.create({ data: { blueprintId: '', constructedAt: '', constructedDefinition: '', databaseId: '', schemaId: '', status: '', tableMap: '' }, select: { id: true } }).execute(); +const created = await db.blueprintConstruction.create({ data: { blueprintId: '', constructedAt: '', constructedDefinition: '', databaseId: '', error: '', schemaId: '', status: '', tableMap: '' }, select: { id: true } }).execute(); // Update const updated = await db.blueprintConstruction.update({ where: { id: '' }, data: { blueprintId: '' }, select: { id: true } }).execute(); @@ -1250,6 +1251,8 @@ CRUD operations for DbUsageModule records. | `queryStatsLogTableName` | String | Yes | | `queryStatsSummaryTableId` | UUID | Yes | | `queryStatsSummaryTableName` | String | Yes | +| `readDbQueryStatsUsagePeriodFunction` | String | Yes | +| `readDbTableStatsUsagePeriodFunction` | String | Yes | | `retention` | String | Yes | | `rollupDbQueryStatsUsageSummaryFunction` | String | Yes | | `rollupDbTableStatsUsageSummaryFunction` | String | Yes | @@ -1264,13 +1267,13 @@ CRUD operations for DbUsageModule records. ```typescript // List all dbUsageModule records -const items = await db.dbUsageModule.findMany({ select: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }).execute(); +const items = await db.dbUsageModule.findMany({ select: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, readDbQueryStatsUsagePeriodFunction: true, readDbTableStatsUsagePeriodFunction: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }).execute(); // Get one by id -const item = await db.dbUsageModule.findOne({ id: '', select: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }).execute(); +const item = await db.dbUsageModule.findOne({ id: '', select: { apiName: true, collectDbQueryStatsFunction: true, collectDbTableStatsFunction: true, databaseId: true, defaultCapabilities: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsSummaryTableId: true, queryStatsSummaryTableName: true, readDbQueryStatsUsagePeriodFunction: true, readDbTableStatsUsagePeriodFunction: true, retention: true, rollupDbQueryStatsUsageSummaryFunction: true, rollupDbTableStatsUsageSummaryFunction: true, schemaId: true, scope: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsSummaryTableId: true, tableStatsSummaryTableName: true } }).execute(); // Create -const created = await db.dbUsageModule.create({ data: { apiName: '', collectDbQueryStatsFunction: '', collectDbTableStatsFunction: '', databaseId: '', defaultCapabilities: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsSummaryTableId: '', queryStatsSummaryTableName: '', retention: '', rollupDbQueryStatsUsageSummaryFunction: '', rollupDbTableStatsUsageSummaryFunction: '', schemaId: '', scope: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsSummaryTableId: '', tableStatsSummaryTableName: '' }, select: { id: true } }).execute(); +const created = await db.dbUsageModule.create({ data: { apiName: '', collectDbQueryStatsFunction: '', collectDbTableStatsFunction: '', databaseId: '', defaultCapabilities: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsSummaryTableId: '', queryStatsSummaryTableName: '', readDbQueryStatsUsagePeriodFunction: '', readDbTableStatsUsagePeriodFunction: '', retention: '', rollupDbQueryStatsUsageSummaryFunction: '', rollupDbTableStatsUsageSummaryFunction: '', schemaId: '', scope: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsSummaryTableId: '', tableStatsSummaryTableName: '' }, select: { id: true } }).execute(); // Update const updated = await db.dbUsageModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -1396,6 +1399,7 @@ CRUD operations for DomainModule records. | `catalogModuleId` | UUID | Yes | | `databaseId` | UUID | Yes | | `defaultCapabilities` | String | Yes | +| `defaultReservedSubdomains` | JSON | Yes | | `domainEventsTableId` | UUID | Yes | | `domainEventsTableName` | String | Yes | | `domainVerificationsTableId` | UUID | Yes | @@ -1414,20 +1418,23 @@ CRUD operations for DomainModule records. | `privateSchemaName` | String | Yes | | `provisions` | JSON | Yes | | `publicSchemaName` | String | Yes | +| `reservedSubdomainsTableId` | UUID | Yes | +| `reservedSubdomainsTableName` | String | Yes | | `schemaId` | UUID | Yes | | `scope` | String | Yes | +| `sweepUnverifiedDomainsFunction` | String | Yes | **Operations:** ```typescript // List all domainModule records -const items = await db.domainModule.findMany({ select: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const items = await db.domainModule.findMany({ select: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, defaultReservedSubdomains: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, reservedSubdomainsTableId: true, reservedSubdomainsTableName: true, schemaId: true, scope: true, sweepUnverifiedDomainsFunction: true } }).execute(); // Get one by id -const item = await db.domainModule.findOne({ id: '', select: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, schemaId: true, scope: true } }).execute(); +const item = await db.domainModule.findOne({ id: '', select: { apiName: true, catalogModuleId: true, databaseId: true, defaultCapabilities: true, defaultReservedSubdomains: true, domainEventsTableId: true, domainEventsTableName: true, domainVerificationsTableId: true, domainVerificationsTableName: true, domainsTableId: true, domainsTableName: true, entityField: true, entityTableId: true, id: true, managedDomainsTableId: true, managedDomainsTableName: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, reservedSubdomainsTableId: true, reservedSubdomainsTableName: true, schemaId: true, scope: true, sweepUnverifiedDomainsFunction: true } }).execute(); // Create -const created = await db.domainModule.create({ data: { apiName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', domainEventsTableId: '', domainEventsTableName: '', domainVerificationsTableId: '', domainVerificationsTableName: '', domainsTableId: '', domainsTableName: '', entityField: '', entityTableId: '', managedDomainsTableId: '', managedDomainsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.domainModule.create({ data: { apiName: '', catalogModuleId: '', databaseId: '', defaultCapabilities: '', defaultReservedSubdomains: '', domainEventsTableId: '', domainEventsTableName: '', domainVerificationsTableId: '', domainVerificationsTableName: '', domainsTableId: '', domainsTableName: '', entityField: '', entityTableId: '', managedDomainsTableId: '', managedDomainsTableName: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', reservedSubdomainsTableId: '', reservedSubdomainsTableName: '', schemaId: '', scope: '', sweepUnverifiedDomainsFunction: '' }, select: { id: true } }).execute(); // Update const updated = await db.domainModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -3435,8 +3442,6 @@ CRUD operations for ResourceModule records. | Field | Type | Editable | |-------|------|----------| | `apiName` | String | Yes | -| `builderBindingsTableId` | UUID | Yes | -| `builderBindingsTableName` | String | Yes | | `databaseId` | UUID | Yes | | `defaultCapabilities` | String | Yes | | `entityField` | String | Yes | @@ -3474,18 +3479,20 @@ CRUD operations for ResourceModule records. | `rollupResourceUsageSummaryFunction` | String | Yes | | `schemaId` | UUID | Yes | | `scope` | String | Yes | +| `serviceBindingsTableId` | UUID | Yes | +| `serviceBindingsTableName` | String | Yes | **Operations:** ```typescript // List all resourceModule records -const items = await db.resourceModule.findMany({ select: { apiName: true, builderBindingsTableId: true, builderBindingsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registryBindingsTableId: true, registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true } }).execute(); +const items = await db.resourceModule.findMany({ select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registryBindingsTableId: true, registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true, serviceBindingsTableId: true, serviceBindingsTableName: true } }).execute(); // Get one by id -const item = await db.resourceModule.findOne({ id: '', select: { apiName: true, builderBindingsTableId: true, builderBindingsTableName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registryBindingsTableId: true, registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true } }).execute(); +const item = await db.resourceModule.findOne({ id: '', select: { apiName: true, databaseId: true, defaultCapabilities: true, entityField: true, entityTableId: true, id: true, installationStoreName: true, merkleStoreModuleId: true, namespaceModuleId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provisions: true, publicSchemaName: true, registryBindingsTableId: true, registryBindingsTableName: true, requirementsStateViewName: true, resolvedRequirementsViewName: true, resourceBillingRollupFunction: true, resourceDefinitionsTableId: true, resourceDefinitionsTableName: true, resourceEventsTableId: true, resourceEventsTableName: true, resourceInstallationsTableId: true, resourceInstallationsTableName: true, resourceStatusChecksTableId: true, resourceStatusChecksTableName: true, resourceUsageLogTableId: true, resourceUsageLogTableName: true, resourceUsageSummaryTableId: true, resourceUsageSummaryTableName: true, resourcesTableId: true, resourcesTableName: true, rollupResourceUsageSummaryFunction: true, schemaId: true, scope: true, serviceBindingsTableId: true, serviceBindingsTableName: true } }).execute(); // Create -const created = await db.resourceModule.create({ data: { apiName: '', builderBindingsTableId: '', builderBindingsTableName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', registryBindingsTableId: '', registryBindingsTableName: '', requirementsStateViewName: '', resolvedRequirementsViewName: '', resourceBillingRollupFunction: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceEventsTableId: '', resourceEventsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourceStatusChecksTableId: '', resourceStatusChecksTableName: '', resourceUsageLogTableId: '', resourceUsageLogTableName: '', resourceUsageSummaryTableId: '', resourceUsageSummaryTableName: '', resourcesTableId: '', resourcesTableName: '', rollupResourceUsageSummaryFunction: '', schemaId: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.resourceModule.create({ data: { apiName: '', databaseId: '', defaultCapabilities: '', entityField: '', entityTableId: '', installationStoreName: '', merkleStoreModuleId: '', namespaceModuleId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provisions: '', publicSchemaName: '', registryBindingsTableId: '', registryBindingsTableName: '', requirementsStateViewName: '', resolvedRequirementsViewName: '', resourceBillingRollupFunction: '', resourceDefinitionsTableId: '', resourceDefinitionsTableName: '', resourceEventsTableId: '', resourceEventsTableName: '', resourceInstallationsTableId: '', resourceInstallationsTableName: '', resourceStatusChecksTableId: '', resourceStatusChecksTableName: '', resourceUsageLogTableId: '', resourceUsageLogTableName: '', resourceUsageSummaryTableId: '', resourceUsageSummaryTableName: '', resourcesTableId: '', resourcesTableName: '', rollupResourceUsageSummaryFunction: '', schemaId: '', scope: '', serviceBindingsTableId: '', serviceBindingsTableName: '' }, select: { id: true } }).execute(); // Update const updated = await db.resourceModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -3822,6 +3829,7 @@ CRUD operations for StorageLogModule records. | `privateSchemaId` | UUID | Yes | | `privateSchemaName` | String | Yes | | `publicSchemaName` | String | Yes | +| `readStorageUsagePeriodFunction` | String | Yes | | `retention` | String | Yes | | `rollupFunctionName` | String | Yes | | `schemaId` | UUID | Yes | @@ -3835,13 +3843,13 @@ CRUD operations for StorageLogModule records. ```typescript // List all storageLogModule records -const items = await db.storageLogModule.findMany({ select: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); +const items = await db.storageLogModule.findMany({ select: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, readStorageUsagePeriodFunction: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); // Get one by id -const item = await db.storageLogModule.findOne({ id: '', select: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); +const item = await db.storageLogModule.findOne({ id: '', select: { apiName: true, databaseId: true, entityField: true, id: true, interval: true, prefix: true, premake: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, publicSchemaName: true, readStorageUsagePeriodFunction: true, retention: true, rollupFunctionName: true, schemaId: true, scope: true, storageLogTableId: true, storageLogTableName: true, usageSummaryTableId: true, usageSummaryTableName: true } }).execute(); // Create -const created = await db.storageLogModule.create({ data: { apiName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', storageLogTableId: '', storageLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute(); +const created = await db.storageLogModule.create({ data: { apiName: '', databaseId: '', entityField: '', interval: '', prefix: '', premake: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', publicSchemaName: '', readStorageUsagePeriodFunction: '', retention: '', rollupFunctionName: '', schemaId: '', scope: '', storageLogTableId: '', storageLogTableName: '', usageSummaryTableId: '', usageSummaryTableName: '' }, select: { id: true } }).execute(); // Update const updated = await db.storageLogModule.update({ where: { id: '' }, data: { apiName: '' }, select: { id: true } }).execute(); @@ -3876,7 +3884,6 @@ CRUD operations for StorageModule records. | `filesTableId` | UUID | Yes | | `filesTableName` | String | Yes | | `hasAuditLog` | Boolean | Yes | -| `hasConfirmUpload` | Boolean | Yes | | `hasContentHash` | Boolean | Yes | | `hasCustomKeys` | Boolean | Yes | | `hasPathShares` | Boolean | Yes | @@ -3906,13 +3913,13 @@ CRUD operations for StorageModule records. ```typescript // List all storageModule records -const items = await db.storageModule.findMany({ select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); +const items = await db.storageModule.findMany({ select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); // Get one by id -const item = await db.storageModule.findOne({ id: '', select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasConfirmUpload: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); +const item = await db.storageModule.findOne({ id: '', select: { allowedOrigins: true, apiName: true, bucketsTableId: true, bucketsTableName: true, cacheTtlSeconds: true, catalogModuleId: true, confirmUploadDelay: true, databaseId: true, defaultCapabilities: true, defaultMaxFileSize: true, downloadUrlExpirySeconds: true, endpoint: true, entityField: true, entityTableId: true, fileEventsTableId: true, filesTableId: true, filesTableName: true, hasAuditLog: true, hasContentHash: true, hasCustomKeys: true, hasPathShares: true, hasVersioning: true, id: true, key: true, maxBulkFiles: true, maxBulkTotalSize: true, maxFilenameLength: true, pathSharesTableId: true, policies: true, prefix: true, privateApiName: true, privateSchemaId: true, privateSchemaName: true, provider: true, provisions: true, publicSchemaName: true, publicUrlPrefix: true, region: true, restrictReads: true, schemaId: true, scope: true, uploadUrlExpirySeconds: true } }).execute(); // Create -const created = await db.storageModule.create({ data: { allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasConfirmUpload: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', key: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', region: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }, select: { id: true } }).execute(); +const created = await db.storageModule.create({ data: { allowedOrigins: '', apiName: '', bucketsTableId: '', bucketsTableName: '', cacheTtlSeconds: '', catalogModuleId: '', confirmUploadDelay: '', databaseId: '', defaultCapabilities: '', defaultMaxFileSize: '', downloadUrlExpirySeconds: '', endpoint: '', entityField: '', entityTableId: '', fileEventsTableId: '', filesTableId: '', filesTableName: '', hasAuditLog: '', hasContentHash: '', hasCustomKeys: '', hasPathShares: '', hasVersioning: '', key: '', maxBulkFiles: '', maxBulkTotalSize: '', maxFilenameLength: '', pathSharesTableId: '', policies: '', prefix: '', privateApiName: '', privateSchemaId: '', privateSchemaName: '', provider: '', provisions: '', publicSchemaName: '', publicUrlPrefix: '', region: '', restrictReads: '', schemaId: '', scope: '', uploadUrlExpirySeconds: '' }, select: { id: true } }).execute(); // Update const updated = await db.storageModule.update({ where: { id: '' }, data: { allowedOrigins: '' }, select: { id: true } }).execute(); @@ -4340,7 +4347,7 @@ const deleted = await db.webhookModule.delete({ where: { id: '' } }).execu ### `db.mutation.constructBlueprint` -Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). A table entry either names its table (table_name plus optional schema_name) or references one an installed module generated ("module": {"type": "agent", "scope": "org", "table": "message"}), which resolves through the module row's recorded table ids and raises when it matches nothing instead of creating an empty table. After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID. A failure raises its coded error to the caller and rolls back the whole construction, including the construction record. +Requests a build of a blueprint: snapshots its definition into a pending blueprint_construction row, enqueues the blueprint:construct job that runs metaschema_private.construct_blueprint_run on it, and returns the construction id immediately. Poll the row: pending -> constructing -> constructed (table_map populated) or failed (error holds the coded error). schema_id is the default schema for tables without an explicit schema_name. - **Type:** mutation - **Arguments:** diff --git a/sdk/constructive-sdk/src/modules/orm/input-types.ts b/sdk/constructive-sdk/src/modules/orm/input-types.ts index ca44c2dad1..1e2b8d3965 100644 --- a/sdk/constructive-sdk/src/modules/orm/input-types.ts +++ b/sdk/constructive-sdk/src/modules/orm/input-types.ts @@ -461,7 +461,7 @@ export interface Blueprint { /** Timestamp when this blueprint 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. */ +/** Tracks individual construction attempts of a blueprint. Each time construct_blueprint() is called, a new record is created here as pending and a blueprint:construct job builds it in the background. 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, including failed ones. */ export interface BlueprintConstruction { /** The blueprint that was constructed. */ blueprintId?: string | null; @@ -473,11 +473,13 @@ export interface BlueprintConstruction { createdAt?: string | null; /** The database the blueprint was constructed into. */ databaseId?: string | null; + /** The coded error ({"code", "context", "class"} as raised through errors.raise_error, or {"code": , "message"} for a database error) a failed construction ended with. NULL unless status is failed. */ + error?: Record | null; /** Unique identifier for this construction attempt. */ id: string; /** 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. A failed construction raises and rolls back, so it leaves no row. */ + /** Execution state of this construction attempt. pending: enqueued, the blueprint:construct job has not started. constructing: the job is executing. constructed: successfully completed. failed: the job raised; the build rolled back and error carries its coded error. */ status?: 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; @@ -866,6 +868,8 @@ export interface DbUsageModule { queryStatsLogTableName?: string | null; queryStatsSummaryTableId?: string | null; queryStatsSummaryTableName?: string | null; + readDbQueryStatsUsagePeriodFunction?: string | null; + readDbTableStatsUsagePeriodFunction?: string | null; retention?: string | null; rollupDbQueryStatsUsageSummaryFunction?: string | null; rollupDbTableStatsUsageSummaryFunction?: string | null; @@ -908,6 +912,7 @@ export interface DomainModule { catalogModuleId?: string | null; databaseId?: string | null; defaultCapabilities?: string[] | null; + defaultReservedSubdomains?: Record | null; domainEventsTableId?: string | null; domainEventsTableName?: string | null; domainVerificationsTableId?: string | null; @@ -926,8 +931,11 @@ export interface DomainModule { privateSchemaName?: string | null; provisions?: Record | null; publicSchemaName?: string | null; + reservedSubdomainsTableId?: string | null; + reservedSubdomainsTableName?: string | null; schemaId?: string | null; scope?: string | null; + sweepUnverifiedDomainsFunction?: string | null; } export interface EmailSenderModule { apiName?: string | null; @@ -1167,7 +1175,6 @@ export interface EntityTypeProvision { * - 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 } @@ -2214,8 +2221,6 @@ export interface RepositoryModule { } export interface ResourceModule { apiName?: string | null; - builderBindingsTableId?: string | null; - builderBindingsTableName?: string | null; databaseId?: string | null; defaultCapabilities?: string[] | null; entityField?: string | null; @@ -2253,6 +2258,8 @@ export interface ResourceModule { rollupResourceUsageSummaryFunction?: string | null; schemaId?: string | null; scope?: string | null; + serviceBindingsTableId?: string | null; + serviceBindingsTableName?: string | null; } export interface RlsModule { apiName?: string | null; @@ -2409,6 +2416,7 @@ export interface StorageLogModule { privateSchemaId?: string | null; privateSchemaName?: string | null; publicSchemaName?: string | null; + readStorageUsagePeriodFunction?: string | null; retention?: string | null; rollupFunctionName?: string | null; schemaId?: string | null; @@ -2437,7 +2445,6 @@ export interface StorageModule { filesTableId?: string | null; filesTableName?: string | null; hasAuditLog?: boolean | null; - hasConfirmUpload?: boolean | null; hasContentHash?: boolean | null; hasCustomKeys?: boolean | null; hasPathShares?: boolean | null; @@ -3158,6 +3165,7 @@ export type BlueprintConstructionSelect = { constructedDefinition?: boolean; createdAt?: boolean; databaseId?: boolean; + error?: boolean; id?: boolean; schemaId?: boolean; status?: boolean; @@ -3557,6 +3565,8 @@ export type DbUsageModuleSelect = { queryStatsLogTableName?: boolean; queryStatsSummaryTableId?: boolean; queryStatsSummaryTableName?: boolean; + readDbQueryStatsUsagePeriodFunction?: boolean; + readDbTableStatsUsagePeriodFunction?: boolean; retention?: boolean; rollupDbQueryStatsUsageSummaryFunction?: boolean; rollupDbTableStatsUsageSummaryFunction?: boolean; @@ -3599,6 +3609,7 @@ export type DomainModuleSelect = { catalogModuleId?: boolean; databaseId?: boolean; defaultCapabilities?: boolean; + defaultReservedSubdomains?: boolean; domainEventsTableId?: boolean; domainEventsTableName?: boolean; domainVerificationsTableId?: boolean; @@ -3617,8 +3628,11 @@ export type DomainModuleSelect = { privateSchemaName?: boolean; provisions?: boolean; publicSchemaName?: boolean; + reservedSubdomainsTableId?: boolean; + reservedSubdomainsTableName?: boolean; schemaId?: boolean; scope?: boolean; + sweepUnverifiedDomainsFunction?: boolean; catalogModule?: { select: CatalogModuleSelect; }; @@ -4666,8 +4680,6 @@ export type RepositoryModuleSelect = { }; export type ResourceModuleSelect = { apiName?: boolean; - builderBindingsTableId?: boolean; - builderBindingsTableName?: boolean; databaseId?: boolean; defaultCapabilities?: boolean; entityField?: boolean; @@ -4705,6 +4717,8 @@ export type ResourceModuleSelect = { rollupResourceUsageSummaryFunction?: boolean; schemaId?: boolean; scope?: boolean; + serviceBindingsTableId?: boolean; + serviceBindingsTableName?: boolean; merkleStoreModule?: { select: MerkleStoreModuleSelect; }; @@ -4872,6 +4886,7 @@ export type StorageLogModuleSelect = { privateSchemaId?: boolean; privateSchemaName?: boolean; publicSchemaName?: boolean; + readStorageUsagePeriodFunction?: boolean; retention?: boolean; rollupFunctionName?: boolean; schemaId?: boolean; @@ -4900,7 +4915,6 @@ export type StorageModuleSelect = { filesTableId?: boolean; filesTableName?: boolean; hasAuditLog?: boolean; - hasConfirmUpload?: boolean; hasContentHash?: boolean; hasCustomKeys?: boolean; hasPathShares?: boolean; @@ -5589,6 +5603,8 @@ export interface BlueprintConstructionFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `error` field. */ + error?: JSONFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Negates the expression. */ @@ -6371,6 +6387,10 @@ export interface DbUsageModuleFilter { queryStatsSummaryTableId?: UUIDFilter; /** Filter by the object’s `queryStatsSummaryTableName` field. */ queryStatsSummaryTableName?: StringFilter; + /** Filter by the object’s `readDbQueryStatsUsagePeriodFunction` field. */ + readDbQueryStatsUsagePeriodFunction?: StringFilter; + /** Filter by the object’s `readDbTableStatsUsagePeriodFunction` field. */ + readDbTableStatsUsagePeriodFunction?: StringFilter; /** Filter by the object’s `retention` field. */ retention?: StringFilter; /** Filter by the object’s `rollupDbQueryStatsUsageSummaryFunction` field. */ @@ -6471,6 +6491,8 @@ export interface DomainModuleFilter { databaseId?: UUIDFilter; /** Filter by the object’s `defaultCapabilities` field. */ defaultCapabilities?: StringListFilter; + /** Filter by the object’s `defaultReservedSubdomains` field. */ + defaultReservedSubdomains?: JSONFilter; /** Filter by the object’s `domainEventsTableId` field. */ domainEventsTableId?: UUIDFilter; /** Filter by the object’s `domainEventsTableName` field. */ @@ -6511,6 +6533,10 @@ export interface DomainModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `reservedSubdomainsTableId` field. */ + reservedSubdomainsTableId?: UUIDFilter; + /** Filter by the object’s `reservedSubdomainsTableName` field. */ + reservedSubdomainsTableName?: StringFilter; /** Filter by the object’s `routeModules` relation. */ routeModules?: DomainModuleToManyRouteModuleFilter; /** `routeModules` exist. */ @@ -6519,6 +6545,8 @@ export interface DomainModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `sweepUnverifiedDomainsFunction` field. */ + sweepUnverifiedDomainsFunction?: StringFilter; } export interface EmailSenderModuleFilter { /** Checks for all expressions in this list. */ @@ -8619,10 +8647,6 @@ export interface ResourceModuleFilter { and?: ResourceModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; - /** Filter by the object’s `builderBindingsTableId` field. */ - builderBindingsTableId?: UUIDFilter; - /** Filter by the object’s `builderBindingsTableName` field. */ - builderBindingsTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `defaultCapabilities` field. */ @@ -8709,6 +8733,10 @@ export interface ResourceModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `serviceBindingsTableId` field. */ + serviceBindingsTableId?: UUIDFilter; + /** Filter by the object’s `serviceBindingsTableName` field. */ + serviceBindingsTableName?: StringFilter; } export interface RlsModuleFilter { /** Checks for all expressions in this list. */ @@ -9041,6 +9069,8 @@ export interface StorageLogModuleFilter { privateSchemaName?: StringFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `readStorageUsagePeriodFunction` field. */ + readStorageUsagePeriodFunction?: StringFilter; /** Filter by the object’s `retention` field. */ retention?: StringFilter; /** Filter by the object’s `rollupFunctionName` field. */ @@ -9101,8 +9131,6 @@ export interface StorageModuleFilter { filesTableName?: StringFilter; /** Filter by the object’s `hasAuditLog` field. */ hasAuditLog?: BooleanFilter; - /** Filter by the object’s `hasConfirmUpload` field. */ - hasConfirmUpload?: BooleanFilter; /** Filter by the object’s `hasContentHash` field. */ hasContentHash?: BooleanFilter; /** Filter by the object’s `hasCustomKeys` field. */ @@ -9968,6 +9996,8 @@ export type BlueprintConstructionOrderBy = | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' + | 'ERROR_ASC' + | 'ERROR_DESC' | 'ID_ASC' | 'ID_DESC' | 'NATURAL' @@ -10643,6 +10673,10 @@ export type DbUsageModuleOrderBy = | 'QUERY_STATS_SUMMARY_TABLE_ID_DESC' | 'QUERY_STATS_SUMMARY_TABLE_NAME_ASC' | 'QUERY_STATS_SUMMARY_TABLE_NAME_DESC' + | 'READ_DB_QUERY_STATS_USAGE_PERIOD_FUNCTION_ASC' + | 'READ_DB_QUERY_STATS_USAGE_PERIOD_FUNCTION_DESC' + | 'READ_DB_TABLE_STATS_USAGE_PERIOD_FUNCTION_ASC' + | 'READ_DB_TABLE_STATS_USAGE_PERIOD_FUNCTION_DESC' | 'RETENTION_ASC' | 'RETENTION_DESC' | 'ROLLUP_DB_QUERY_STATS_USAGE_SUMMARY_FUNCTION_ASC' @@ -10724,6 +10758,8 @@ export type DomainModuleOrderBy = | 'DATABASE_ID_DESC' | 'DEFAULT_CAPABILITIES_ASC' | 'DEFAULT_CAPABILITIES_DESC' + | 'DEFAULT_RESERVED_SUBDOMAINS_ASC' + | 'DEFAULT_RESERVED_SUBDOMAINS_DESC' | 'DOMAINS_TABLE_ID_ASC' | 'DOMAINS_TABLE_ID_DESC' | 'DOMAINS_TABLE_NAME_ASC' @@ -10763,10 +10799,16 @@ export type DomainModuleOrderBy = | 'PROVISIONS_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' + | 'RESERVED_SUBDOMAINS_TABLE_ID_ASC' + | 'RESERVED_SUBDOMAINS_TABLE_ID_DESC' + | 'RESERVED_SUBDOMAINS_TABLE_NAME_ASC' + | 'RESERVED_SUBDOMAINS_TABLE_NAME_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' - | 'SCOPE_DESC'; + | 'SCOPE_DESC' + | 'SWEEP_UNVERIFIED_DOMAINS_FUNCTION_ASC' + | 'SWEEP_UNVERIFIED_DOMAINS_FUNCTION_DESC'; export type EmailSenderModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' @@ -12618,10 +12660,6 @@ export type RepositoryModuleOrderBy = export type ResourceModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' - | 'BUILDER_BINDINGS_TABLE_ID_ASC' - | 'BUILDER_BINDINGS_TABLE_ID_DESC' - | 'BUILDER_BINDINGS_TABLE_NAME_ASC' - | 'BUILDER_BINDINGS_TABLE_NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DEFAULT_CAPABILITIES_ASC' @@ -12698,7 +12736,11 @@ export type ResourceModuleOrderBy = | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'SCOPE_ASC' - | 'SCOPE_DESC'; + | 'SCOPE_DESC' + | 'SERVICE_BINDINGS_TABLE_ID_ASC' + | 'SERVICE_BINDINGS_TABLE_ID_DESC' + | 'SERVICE_BINDINGS_TABLE_NAME_ASC' + | 'SERVICE_BINDINGS_TABLE_NAME_DESC'; export type RlsModuleOrderBy = | 'API_NAME_ASC' | 'API_NAME_DESC' @@ -12979,6 +13021,8 @@ export type StorageLogModuleOrderBy = | 'PRIVATE_SCHEMA_NAME_DESC' | 'PUBLIC_SCHEMA_NAME_ASC' | 'PUBLIC_SCHEMA_NAME_DESC' + | 'READ_STORAGE_USAGE_PERIOD_FUNCTION_ASC' + | 'READ_STORAGE_USAGE_PERIOD_FUNCTION_DESC' | 'RETENTION_ASC' | 'RETENTION_DESC' | 'ROLLUP_FUNCTION_NAME_ASC' @@ -13032,8 +13076,6 @@ export type StorageModuleOrderBy = | 'FILE_EVENTS_TABLE_ID_DESC' | 'HAS_AUDIT_LOG_ASC' | 'HAS_AUDIT_LOG_DESC' - | 'HAS_CONFIRM_UPLOAD_ASC' - | 'HAS_CONFIRM_UPLOAD_DESC' | 'HAS_CONTENT_HASH_ASC' | 'HAS_CONTENT_HASH_DESC' | 'HAS_CUSTOM_KEYS_ASC' @@ -13893,6 +13935,7 @@ export interface CreateBlueprintConstructionInput { constructedAt?: string; constructedDefinition?: Record; databaseId: string; + error?: Record; schemaId?: string; status?: string; tableMap?: Record; @@ -13903,6 +13946,7 @@ export interface BlueprintConstructionPatch { constructedAt?: string | null; constructedDefinition?: Record | null; databaseId?: string | null; + error?: Record | null; schemaId?: string | null; status?: string | null; tableMap?: Record | null; @@ -14688,6 +14732,8 @@ export interface CreateDbUsageModuleInput { queryStatsLogTableName?: string; queryStatsSummaryTableId?: string; queryStatsSummaryTableName?: string; + readDbQueryStatsUsagePeriodFunction?: string; + readDbTableStatsUsagePeriodFunction?: string; retention?: string; rollupDbQueryStatsUsageSummaryFunction?: string; rollupDbTableStatsUsageSummaryFunction?: string; @@ -14717,6 +14763,8 @@ export interface DbUsageModulePatch { queryStatsLogTableName?: string | null; queryStatsSummaryTableId?: string | null; queryStatsSummaryTableName?: string | null; + readDbQueryStatsUsagePeriodFunction?: string | null; + readDbTableStatsUsagePeriodFunction?: string | null; retention?: string | null; rollupDbQueryStatsUsageSummaryFunction?: string | null; rollupDbTableStatsUsageSummaryFunction?: string | null; @@ -14827,6 +14875,7 @@ export interface CreateDomainModuleInput { catalogModuleId?: string; databaseId: string; defaultCapabilities?: string[]; + defaultReservedSubdomains?: Record; domainEventsTableId?: string; domainEventsTableName?: string; domainVerificationsTableId?: string; @@ -14844,8 +14893,11 @@ export interface CreateDomainModuleInput { privateSchemaName?: string; provisions?: Record; publicSchemaName?: string; + reservedSubdomainsTableId?: string; + reservedSubdomainsTableName?: string; schemaId?: string; scope: string; + sweepUnverifiedDomainsFunction?: string; }; } export interface DomainModulePatch { @@ -14853,6 +14905,7 @@ export interface DomainModulePatch { catalogModuleId?: string | null; databaseId?: string | null; defaultCapabilities?: string[] | null; + defaultReservedSubdomains?: Record | null; domainEventsTableId?: string | null; domainEventsTableName?: string | null; domainVerificationsTableId?: string | null; @@ -14870,8 +14923,11 @@ export interface DomainModulePatch { privateSchemaName?: string | null; provisions?: Record | null; publicSchemaName?: string | null; + reservedSubdomainsTableId?: string | null; + reservedSubdomainsTableName?: string | null; schemaId?: string | null; scope?: string | null; + sweepUnverifiedDomainsFunction?: string | null; } export interface UpdateDomainModuleInput { clientMutationId?: string; @@ -17132,8 +17188,6 @@ export interface CreateResourceModuleInput { clientMutationId?: string; resourceModule: { apiName?: string; - builderBindingsTableId?: string; - builderBindingsTableName?: string; databaseId: string; defaultCapabilities?: string[]; entityField?: string; @@ -17170,12 +17224,12 @@ export interface CreateResourceModuleInput { rollupResourceUsageSummaryFunction?: string; schemaId?: string; scope: string; + serviceBindingsTableId?: string; + serviceBindingsTableName?: string; }; } export interface ResourceModulePatch { apiName?: string | null; - builderBindingsTableId?: string | null; - builderBindingsTableName?: string | null; databaseId?: string | null; defaultCapabilities?: string[] | null; entityField?: string | null; @@ -17212,6 +17266,8 @@ export interface ResourceModulePatch { rollupResourceUsageSummaryFunction?: string | null; schemaId?: string | null; scope?: string | null; + serviceBindingsTableId?: string | null; + serviceBindingsTableName?: string | null; } export interface UpdateResourceModuleInput { clientMutationId?: string; @@ -17559,6 +17615,7 @@ export interface CreateStorageLogModuleInput { privateSchemaId?: string; privateSchemaName?: string; publicSchemaName?: string; + readStorageUsagePeriodFunction?: string; retention?: string; rollupFunctionName?: string; schemaId?: string; @@ -17580,6 +17637,7 @@ export interface StorageLogModulePatch { privateSchemaId?: string | null; privateSchemaName?: string | null; publicSchemaName?: string | null; + readStorageUsagePeriodFunction?: string | null; retention?: string | null; rollupFunctionName?: string | null; schemaId?: string | null; @@ -17619,7 +17677,6 @@ export interface CreateStorageModuleInput { filesTableId?: string; filesTableName?: string; hasAuditLog?: boolean; - hasConfirmUpload?: boolean; hasContentHash?: boolean; hasCustomKeys?: boolean; hasPathShares?: boolean; @@ -17664,7 +17721,6 @@ export interface StorageModulePatch { filesTableId?: string | null; filesTableName?: string | null; hasAuditLog?: boolean | null; - hasConfirmUpload?: boolean | null; hasContentHash?: boolean | null; hasCustomKeys?: boolean | null; hasPathShares?: boolean | null; @@ -18741,11 +18797,13 @@ export interface BlueprintConstructionInput { createdAt?: string; /** The database the blueprint was constructed into. */ databaseId: string; + /** The coded error ({"code", "context", "class"} as raised through errors.raise_error, or {"code": , "message"} for a database error) a failed construction ended with. NULL unless status is failed. */ + error?: Record; /** Unique identifier for this construction attempt. */ id?: 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. A failed construction raises and rolls back, so it leaves no row. */ + /** Execution state of this construction attempt. pending: enqueued, the blueprint:construct job has not started. constructing: the job is executing. constructed: successfully completed. failed: the job raised; the build rolled back and error carries its coded error. */ status?: string; /** Mapping of table names to created table UUIDs, populated after successful construction. Format: {"products": "uuid", "categories": "uuid", ...}. Defaults to empty object. */ tableMap?: Record; @@ -19165,6 +19223,8 @@ export interface DbUsageModuleInput { queryStatsLogTableName?: string; queryStatsSummaryTableId?: string; queryStatsSummaryTableName?: string; + readDbQueryStatsUsagePeriodFunction?: string; + readDbTableStatsUsagePeriodFunction?: string; retention?: string; rollupDbQueryStatsUsageSummaryFunction?: string; rollupDbTableStatsUsageSummaryFunction?: string; @@ -19211,6 +19271,7 @@ export interface DomainModuleInput { catalogModuleId?: string; databaseId: string; defaultCapabilities?: string[]; + defaultReservedSubdomains?: Record; domainEventsTableId?: string; domainEventsTableName?: string; domainVerificationsTableId?: string; @@ -19229,8 +19290,11 @@ export interface DomainModuleInput { privateSchemaName?: string; provisions?: Record; publicSchemaName?: string; + reservedSubdomainsTableId?: string; + reservedSubdomainsTableName?: string; schemaId?: string; scope: string; + sweepUnverifiedDomainsFunction?: string; } /** An input for mutations affecting `EmailSenderModule` */ export interface EmailSenderModuleInput { @@ -19463,7 +19527,6 @@ export interface EntityTypeProvisionInput { * - 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 } @@ -20507,8 +20570,6 @@ export interface RepositoryModuleInput { /** An input for mutations affecting `ResourceModule` */ export interface ResourceModuleInput { apiName?: string; - builderBindingsTableId?: string; - builderBindingsTableName?: string; databaseId: string; defaultCapabilities?: string[]; entityField?: string; @@ -20546,6 +20607,8 @@ export interface ResourceModuleInput { rollupResourceUsageSummaryFunction?: string; schemaId?: string; scope: string; + serviceBindingsTableId?: string; + serviceBindingsTableName?: string; } /** An input for mutations affecting `RlsModule` */ export interface RlsModuleInput { @@ -20708,6 +20771,7 @@ export interface StorageLogModuleInput { privateSchemaId?: string; privateSchemaName?: string; publicSchemaName?: string; + readStorageUsagePeriodFunction?: string; retention?: string; rollupFunctionName?: string; schemaId?: string; @@ -20737,7 +20801,6 @@ export interface StorageModuleInput { filesTableId?: string; filesTableName?: string; hasAuditLog?: boolean; - hasConfirmUpload?: boolean; hasContentHash?: boolean; hasCustomKeys?: boolean; hasPathShares?: boolean; @@ -20945,6 +21008,8 @@ export interface BlueprintConstructionFilter { createdAt?: DatetimeFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; + /** Filter by the object’s `error` field. */ + error?: JSONFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Negates the expression. */ @@ -21223,6 +21288,8 @@ export interface DomainModuleFilter { databaseId?: UUIDFilter; /** Filter by the object’s `defaultCapabilities` field. */ defaultCapabilities?: StringListFilter; + /** Filter by the object’s `defaultReservedSubdomains` field. */ + defaultReservedSubdomains?: JSONFilter; /** Filter by the object’s `domainEventsTableId` field. */ domainEventsTableId?: UUIDFilter; /** Filter by the object’s `domainEventsTableName` field. */ @@ -21263,6 +21330,10 @@ export interface DomainModuleFilter { provisions?: JSONFilter; /** Filter by the object’s `publicSchemaName` field. */ publicSchemaName?: StringFilter; + /** Filter by the object’s `reservedSubdomainsTableId` field. */ + reservedSubdomainsTableId?: UUIDFilter; + /** Filter by the object’s `reservedSubdomainsTableName` field. */ + reservedSubdomainsTableName?: StringFilter; /** Filter by the object’s `routeModules` relation. */ routeModules?: DomainModuleToManyRouteModuleFilter; /** `routeModules` exist. */ @@ -21271,6 +21342,8 @@ export interface DomainModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `sweepUnverifiedDomainsFunction` field. */ + sweepUnverifiedDomainsFunction?: StringFilter; } /** A filter to be used against `RouteModule` object types. All fields are combined with a logical ‘and.’ */ export interface RouteModuleFilter { @@ -21884,10 +21957,6 @@ export interface ResourceModuleFilter { and?: ResourceModuleFilter[]; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; - /** Filter by the object’s `builderBindingsTableId` field. */ - builderBindingsTableId?: UUIDFilter; - /** Filter by the object’s `builderBindingsTableName` field. */ - builderBindingsTableName?: StringFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; /** Filter by the object’s `defaultCapabilities` field. */ @@ -21974,6 +22043,10 @@ export interface ResourceModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `serviceBindingsTableId` field. */ + serviceBindingsTableId?: UUIDFilter; + /** Filter by the object’s `serviceBindingsTableName` field. */ + serviceBindingsTableName?: StringFilter; } /** A filter to be used against `EmailSenderModule` object types. All fields are combined with a logical ‘and.’ */ export interface EmailSenderModuleFilter { @@ -22833,8 +22906,6 @@ export interface StorageModuleFilter { filesTableName?: StringFilter; /** Filter by the object’s `hasAuditLog` field. */ hasAuditLog?: BooleanFilter; - /** Filter by the object’s `hasConfirmUpload` field. */ - hasConfirmUpload?: BooleanFilter; /** Filter by the object’s `hasContentHash` field. */ hasContentHash?: BooleanFilter; /** Filter by the object’s `hasCustomKeys` field. */ diff --git a/sdk/constructive-sdk/src/modules/orm/mutation/index.ts b/sdk/constructive-sdk/src/modules/orm/mutation/index.ts index e59de99a2e..26ad9b2410 100644 --- a/sdk/constructive-sdk/src/modules/orm/mutation/index.ts +++ b/sdk/constructive-sdk/src/modules/orm/mutation/index.ts @@ -20,7 +20,7 @@ import type { import { connectionFieldsMap } from '../input-types'; /** * Variables for constructBlueprint - * Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). A table entry either names its table (table_name plus optional schema_name) or references one an installed module generated ("module": {"type": "agent", "scope": "org", "table": "message"}), which resolves through the module row's recorded table ids and raises when it matches nothing instead of creating an empty table. After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID. A failure raises its coded error to the caller and rolls back the whole construction, including the construction record. + * Requests a build of a blueprint: snapshots its definition into a pending blueprint_construction row, enqueues the blueprint:construct job that runs metaschema_private.construct_blueprint_run on it, and returns the construction id immediately. Poll the row: pending -> constructing -> constructed (table_map populated) or failed (error holds the coded error). schema_id is the default schema for tables without an explicit schema_name. */ export interface ConstructBlueprintVariables { input: ConstructBlueprintInput; diff --git a/sdk/constructive-sdk/src/objects/orm/README.md b/sdk/constructive-sdk/src/objects/orm/README.md index 866cd6f1ef..f5b1e0ead1 100644 --- a/sdk/constructive-sdk/src/objects/orm/README.md +++ b/sdk/constructive-sdk/src/objects/orm/README.md @@ -22,7 +22,7 @@ const db = createClient({ | Model | Operations | |-------|------------| | `commit` | findMany, findOne, create, update, delete | -| `getAllTreeNodesRecord` | findMany, findOne, create, update, delete | +| `getAllTreeNodesRecord` | findMany, findOne, update, delete | | `object` | findMany, findOne, create, update, delete | | `ref` | findMany, findOne, create, update, delete | | `store` | findMany, findOne, create, update, delete | @@ -86,9 +86,6 @@ const items = await db.getAllTreeNodesRecord.findMany({ select: { data: true, pa // Get one by id const item = await db.getAllTreeNodesRecord.findOne({ id: '', select: { data: true, path: true } }).execute(); -// Create -const created = await db.getAllTreeNodesRecord.create({ data: { data: '', path: '' }, select: { id: true } }).execute(); - // Update const updated = await db.getAllTreeNodesRecord.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); diff --git a/sdk/constructive-sdk/src/objects/orm/input-types.ts b/sdk/constructive-sdk/src/objects/orm/input-types.ts index fbe09b35cb..faa72ecfe0 100644 --- a/sdk/constructive-sdk/src/objects/orm/input-types.ts +++ b/sdk/constructive-sdk/src/objects/orm/input-types.ts @@ -558,13 +558,6 @@ export interface DeleteCommitInput { clientMutationId?: string; id: string; } -export interface CreateGetAllTreeNodesRecordInput { - clientMutationId?: string; - getAllTreeNodesRecord: { - data?: Record; - path?: string[]; - }; -} export interface GetAllTreeNodesRecordPatch { data?: Record | null; path?: string[] | null; diff --git a/sdk/constructive-sdk/src/objects/orm/models/getAllTreeNodesRecord.ts b/sdk/constructive-sdk/src/objects/orm/models/getAllTreeNodesRecord.ts index 00f51d01f7..275a902f66 100644 --- a/sdk/constructive-sdk/src/objects/orm/models/getAllTreeNodesRecord.ts +++ b/sdk/constructive-sdk/src/objects/orm/models/getAllTreeNodesRecord.ts @@ -29,7 +29,6 @@ import type { GetAllTreeNodesRecordSelect, GetAllTreeNodesRecordFilter, GetAllTreeNodesRecordsOrderBy, - CreateGetAllTreeNodesRecordInput, UpdateGetAllTreeNodesRecordInput, GetAllTreeNodesRecordPatch, } from '../input-types'; @@ -104,31 +103,4 @@ export class GetAllTreeNodesRecordModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createGetAllTreeNodesRecord: { - getAllTreeNodesRecord: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'GetAllTreeNodesRecord', - 'createGetAllTreeNodesRecord', - 'getAllTreeNodesRecord', - args.select, - args.data, - 'CreateGetAllTreeNodesRecordInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'GetAllTreeNodesRecord', - fieldName: 'createGetAllTreeNodesRecord', - document, - variables, - }); - } } diff --git a/sdk/constructive-sdk/src/remote/README.md b/sdk/constructive-sdk/src/remote/README.md index ca5555a4bf..e329aef3fc 100644 --- a/sdk/constructive-sdk/src/remote/README.md +++ b/sdk/constructive-sdk/src/remote/README.md @@ -9,7 +9,7 @@ ## Overview - **Tables:** 3 -- **Custom queries:** 0 +- **Custom queries:** 1 - **Custom mutations:** 2 **Generators:** ORM diff --git a/sdk/constructive-sdk/src/remote/orm/README.md b/sdk/constructive-sdk/src/remote/orm/README.md index eb2fdd09aa..b76819b71e 100644 --- a/sdk/constructive-sdk/src/remote/orm/README.md +++ b/sdk/constructive-sdk/src/remote/orm/README.md @@ -169,6 +169,17 @@ const deleted = await db.machineSession.delete({ where: { id: '' } }).exec ## Custom Operations +### `db.query.currentDatabaseId` + +currentDatabaseId + +- **Type:** query +- **Arguments:** none + +```typescript +const result = await db.query.currentDatabaseId().execute(); +``` + ### `db.mutation.machinesEnroll` machinesEnroll diff --git a/sdk/constructive-sdk/src/remote/orm/index.ts b/sdk/constructive-sdk/src/remote/orm/index.ts index e166dd236a..554ce59ad1 100644 --- a/sdk/constructive-sdk/src/remote/orm/index.ts +++ b/sdk/constructive-sdk/src/remote/orm/index.ts @@ -8,12 +8,14 @@ import type { OrmClientConfig } from './client'; import { MachineModel } from './models/machine'; import { MachineMessageModel } from './models/machineMessage'; import { MachineSessionModel } from './models/machineSession'; +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 @@ -44,6 +46,7 @@ export function createClient(config: OrmClientConfig) { machine: new MachineModel(client), machineMessage: new MachineMessageModel(client), machineSession: new MachineSessionModel(client), + query: createQueryOperations(client), mutation: createMutationOperations(client), }; } diff --git a/sdk/constructive-sdk/src/remote/orm/query/index.ts b/sdk/constructive-sdk/src/remote/orm/query/index.ts new file mode 100644 index 0000000000..901e0de080 --- /dev/null +++ b/sdk/constructive-sdk/src/remote/orm/query/index.ts @@ -0,0 +1,32 @@ +/** + * Custom query operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { QueryBuilder, buildCustomDocument } from '../query-builder'; +import type { InferSelectResult, StrictSelect } from '../select-types'; +import { connectionFieldsMap } from '../input-types'; +export function createQueryOperations(client: OrmClient) { + return { + currentDatabaseId: (options?: { select?: Record }) => + new QueryBuilder<{ + currentDatabaseId: string | null; + }>({ + client, + operation: 'query', + operationName: 'CurrentDatabaseId', + fieldName: 'currentDatabaseId', + ...buildCustomDocument( + 'query', + 'CurrentDatabaseId', + 'currentDatabaseId', + options?.select, + undefined, + [], + connectionFieldsMap, + undefined + ), + }), + }; +} diff --git a/sdk/constructive-sdk/src/storage/orm/README.md b/sdk/constructive-sdk/src/storage/orm/README.md index a4e42cc98d..cafc1e5a6a 100644 --- a/sdk/constructive-sdk/src/storage/orm/README.md +++ b/sdk/constructive-sdk/src/storage/orm/README.md @@ -22,9 +22,9 @@ const db = createClient({ | Model | Operations | |-------|------------| | `bucket` | findMany, findOne, create, update, delete | -| `file` | findMany, findOne, create, update, delete | +| `file` | findMany, findOne, update, delete | | `platformBucket` | findMany, findOne, create, update, delete | -| `platformFile` | findMany, findOne, create, update, delete | +| `platformFile` | findMany, findOne, update, delete | ## Table Operations @@ -98,23 +98,23 @@ CRUD operations for File records. | `key` | String | Yes | | `mimeType` | String | Yes | | `promotedAt` | Datetime | Yes | +| `rejectionReason` | String | Yes | | `size` | BigInt | Yes | | `status` | FileStatus | Yes | | `tags` | String | Yes | | `updatedAt` | Datetime | No | | `upload` | ConstructiveInternalTypeUpload | Yes | +| `uploadUrl` | String | Yes | +| `uploadVersions` | FileVersion | Yes | **Operations:** ```typescript // List all file records -const items = await db.file.findMany({ select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); +const items = await db.file.findMany({ select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true, uploadUrl: true, uploadVersions: true } }).execute(); // Get one by id -const item = await db.file.findOne({ id: '', select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); - -// Create -const created = await db.file.create({ data: { actorId: '', bucketId: '', contentHash: '', databaseId: '', description: '', downloadUrl: '', expiryEnqueuedAt: '', filePath: '', filename: '', isPublic: '', key: '', mimeType: '', promotedAt: '', size: '', status: '', tags: '', upload: '' }, select: { id: true } }).execute(); +const item = await db.file.findOne({ id: '', select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, databaseId: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true, uploadUrl: true, uploadVersions: true } }).execute(); // Update const updated = await db.file.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -191,23 +191,23 @@ CRUD operations for PlatformFile records. | `key` | String | Yes | | `mimeType` | String | Yes | | `promotedAt` | Datetime | Yes | +| `rejectionReason` | String | Yes | | `size` | BigInt | Yes | | `status` | FileStatus | Yes | | `tags` | String | Yes | | `updatedAt` | Datetime | No | | `upload` | ConstructiveInternalTypeUpload | Yes | +| `uploadUrl` | String | Yes | +| `uploadVersions` | FileVersion | Yes | **Operations:** ```typescript // List all platformFile records -const items = await db.platformFile.findMany({ select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); +const items = await db.platformFile.findMany({ select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true, uploadUrl: true, uploadVersions: true } }).execute(); // Get one by id -const item = await db.platformFile.findOne({ id: '', select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, size: true, status: true, tags: true, updatedAt: true, upload: true } }).execute(); - -// Create -const created = await db.platformFile.create({ data: { actorId: '', bucketId: '', contentHash: '', description: '', downloadUrl: '', expiryEnqueuedAt: '', filePath: '', filename: '', isPublic: '', key: '', mimeType: '', promotedAt: '', size: '', status: '', tags: '', upload: '' }, select: { id: true } }).execute(); +const item = await db.platformFile.findOne({ id: '', select: { actorId: true, bucketId: true, contentHash: true, createdAt: true, description: true, downloadUrl: true, expiryEnqueuedAt: true, filePath: true, filename: true, id: true, isPublic: true, key: true, mimeType: true, promotedAt: true, rejectionReason: true, size: true, status: true, tags: true, updatedAt: true, upload: true, uploadUrl: true, uploadVersions: true } }).execute(); // Update const updated = await db.platformFile.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); @@ -295,7 +295,7 @@ Upload multiple files: resolves the bucket by key, creates file rows, and return | `input` | UploadFileBulkInput (required) | ```typescript -const result = await db.mutation.uploadFiles({ input: { bucketKey: '', files: '', isPublic: '' } }).execute(); +const result = await db.mutation.uploadFiles({ input: { bucketKey: '', databaseId: '', files: '', isPublic: '' } }).execute(); ``` ### `db.mutation.uploadPlatformFile` diff --git a/sdk/constructive-sdk/src/storage/orm/input-types.ts b/sdk/constructive-sdk/src/storage/orm/input-types.ts index ffb823c7ee..91cc57b1e1 100644 --- a/sdk/constructive-sdk/src/storage/orm/input-types.ts +++ b/sdk/constructive-sdk/src/storage/orm/input-types.ts @@ -232,9 +232,10 @@ export interface UUIDListFilter { } // ============ Enum Types ============ export type BucketType = 'PRIVATE' | 'PUBLIC' | 'TEMP'; -export type FileStatus = 'EXPIRED' | 'PROCESSED' | 'REJECTED' | 'REQUESTED' | 'UPLOADED'; +export type FileStatus = 'PROCESSED' | 'REJECTED' | 'REQUESTED' | 'UPLOADED'; // ============ Custom Scalar Types ============ export type ConstructiveInternalTypeUpload = unknown; +export type FileVersion = unknown; /** Logical storage containers that group files with shared access policies and CDN behavior */ // ============ Entity Types ============ export interface Bucket { @@ -287,7 +288,7 @@ export interface File { databaseId?: string | null; /** Human-readable description or alt text for the file (mutable) */ description?: string | null; - /** URL to download this file. For public files, returns the public URL. For private files, returns a time-limited presigned URL. */ + /** URL to download this file. For public files, returns the public URL. For private files, returns a time-limited presigned URL. Null until the upload is confirmed (status uploaded or processed), and for a rejected file. */ downloadUrl?: string | null; /** When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. */ expiryEnqueuedAt?: string | null; @@ -303,15 +304,21 @@ export interface File { mimeType?: string | null; /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ promotedAt?: string | null; + /** Why the upload was rejected (declared MIME, extension and magic bytes disagreed, size mismatch, ...). NULL unless status is rejected. */ + rejectionReason?: string | null; /** File size in bytes. Immutable after INSERT. */ size?: string | null; - /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ + /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes). A requested row whose bytes never arrive within upload_url_expiry_seconds is deleted by the confirm loop. */ status?: FileStatus | null; /** User-defined tags for categorization and search (mutable) */ tags?: string[] | null; updatedAt?: string | null; /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ upload?: ConstructiveInternalTypeUpload | null; + /** URL to fetch `upload`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + uploadUrl?: string | null; + /** The versions rendered beside `upload`, narrowest first, each with a URL. Empty when there are none. */ + uploadVersions?: FileVersion[] | null; } /** Logical storage containers that group files with shared access policies and CDN behavior */ export interface PlatformBucket { @@ -360,7 +367,7 @@ export interface PlatformFile { createdAt?: string | null; /** Human-readable description or alt text for the file (mutable) */ description?: string | null; - /** URL to download this file. For public files, returns the public URL. For private files, returns a time-limited presigned URL. */ + /** URL to download this file. For public files, returns the public URL. For private files, returns a time-limited presigned URL. Null until the upload is confirmed (status uploaded or processed), and for a rejected file. */ downloadUrl?: string | null; /** When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. */ expiryEnqueuedAt?: string | null; @@ -376,15 +383,21 @@ export interface PlatformFile { mimeType?: string | null; /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ promotedAt?: string | null; + /** Why the upload was rejected (declared MIME, extension and magic bytes disagreed, size mismatch, ...). NULL unless status is rejected. */ + rejectionReason?: string | null; /** File size in bytes. Immutable after INSERT. */ size?: string | null; - /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ + /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes). A requested row whose bytes never arrive within upload_url_expiry_seconds is deleted by the confirm loop. */ status?: FileStatus | null; /** User-defined tags for categorization and search (mutable) */ tags?: string[] | null; updatedAt?: string | null; /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ upload?: ConstructiveInternalTypeUpload | null; + /** URL to fetch `upload`: the narrowest rendered version at least `width` pixels wide, else the source file. Null when the column names no file the reader can fetch. */ + uploadUrl?: string | null; + /** The versions rendered beside `upload`, narrowest first, each with a URL. Empty when there are none. */ + uploadVersions?: FileVersion[] | null; } // ============ Relation Helper Types ============ export interface ConnectionResult { @@ -473,11 +486,19 @@ export type FileSelect = { key?: boolean; mimeType?: boolean; promotedAt?: boolean; + rejectionReason?: boolean; size?: boolean; status?: boolean; tags?: boolean; updatedAt?: boolean; upload?: boolean; + uploadUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + uploadVersions?: boolean; bucket?: { select: BucketSelect; }; @@ -532,11 +553,19 @@ export type PlatformFileSelect = { key?: boolean; mimeType?: boolean; promotedAt?: boolean; + rejectionReason?: boolean; size?: boolean; status?: boolean; tags?: boolean; updatedAt?: boolean; upload?: boolean; + uploadUrl?: { + args: { + width?: number; + }; + select?: Record; + }; + uploadVersions?: boolean; bucket?: { select: PlatformBucketSelect; }; @@ -633,6 +662,8 @@ export interface FileFilter { or?: FileFilter[]; /** Filter by the object’s `promotedAt` field. */ promotedAt?: DatetimeFilter; + /** Filter by the object’s `rejectionReason` field. */ + rejectionReason?: StringFilter; /** Filter by the object’s `size` field. */ size?: BigIntFilter; /** Filter by the object’s `status` field. */ @@ -731,6 +762,8 @@ export interface PlatformFileFilter { or?: PlatformFileFilter[]; /** Filter by the object’s `promotedAt` field. */ promotedAt?: DatetimeFilter; + /** Filter by the object’s `rejectionReason` field. */ + rejectionReason?: StringFilter; /** Filter by the object’s `size` field. */ size?: BigIntFilter; /** Filter by the object’s `status` field. */ @@ -813,6 +846,8 @@ export type FileOrderBy = | 'PRIMARY_KEY_DESC' | 'PROMOTED_AT_ASC' | 'PROMOTED_AT_DESC' + | 'REJECTION_REASON_ASC' + | 'REJECTION_REASON_DESC' | 'SIZE_ASC' | 'SIZE_DESC' | 'STATUS_ASC' @@ -889,6 +924,8 @@ export type PlatformFileOrderBy = | 'PRIMARY_KEY_DESC' | 'PROMOTED_AT_ASC' | 'PROMOTED_AT_DESC' + | 'REJECTION_REASON_ASC' + | 'REJECTION_REASON_DESC' | 'SIZE_ASC' | 'SIZE_DESC' | 'STATUS_ASC' @@ -946,24 +983,6 @@ export interface DeleteBucketInput { clientMutationId?: string; id: string; } -export interface CreateFileInput { - clientMutationId?: string; - file: { - actorId: string; - bucketId: string; - contentHash?: string; - description?: string; - expiryEnqueuedAt?: string; - filename?: string; - key: string; - mimeType: string; - promotedAt?: string; - size: string; - status?: FileStatus; - tags?: string[]; - upload?: ConstructiveInternalTypeUpload; - }; -} export interface FilePatch { actorId?: string | null; bucketId?: string | null; @@ -976,11 +995,11 @@ export interface FilePatch { key?: string | null; mimeType?: string | null; promotedAt?: string | null; + rejectionReason?: string | null; size?: string | null; status?: FileStatus | null; tags?: string[] | null; upload?: ConstructiveInternalTypeUpload | null; - uploadUpload?: File | null; } export interface UpdateFileInput { clientMutationId?: string; @@ -1035,24 +1054,6 @@ export interface DeletePlatformBucketInput { clientMutationId?: string; id: string; } -export interface CreatePlatformFileInput { - clientMutationId?: string; - platformFile: { - actorId: string; - bucketId: string; - contentHash?: string; - description?: string; - expiryEnqueuedAt?: string; - filename?: string; - key: string; - mimeType: string; - promotedAt?: string; - size: string; - status?: FileStatus; - tags?: string[]; - upload?: ConstructiveInternalTypeUpload; - }; -} export interface PlatformFilePatch { actorId?: string | null; bucketId?: string | null; @@ -1064,11 +1065,11 @@ export interface PlatformFilePatch { key?: string | null; mimeType?: string | null; promotedAt?: string | null; + rejectionReason?: string | null; size?: string | null; status?: FileStatus | null; tags?: string[] | null; upload?: ConstructiveInternalTypeUpload | null; - uploadUpload?: File | null; } export interface UpdatePlatformFileInput { clientMutationId?: string; @@ -1117,6 +1118,8 @@ export interface UploadFileInput { contentHash: string; /** MIME type of the file */ contentType: string; + /** Database the file belongs to. Omit for the database of the current session; a caller who is not a member of the named database is refused. */ + databaseId?: string; /** Original filename (optional) */ filename?: string; /** Which default bucket to resolve when bucketKey is omitted: the public one (true) or the private one (default false). Ignored when bucketKey is given. */ @@ -1129,6 +1132,8 @@ export interface UploadFileInput { export interface UploadFileBulkInput { /** Bucket key (e.g., "public", "private"). Omit to use the database's default bucket for the requested access. */ bucketKey?: string; + /** Database the file belongs to. Omit for the database of the current session; a caller who is not a member of the named database is refused. */ + databaseId?: string; /** Array of files to upload */ files: UploadFileBulkFileInput[]; /** Which default bucket to resolve when bucketKey is omitted. Ignored when bucketKey is given. */ @@ -1359,38 +1364,6 @@ export interface IntervalInput { /** A quantity of years. */ years?: number; } -/** An input for mutations affecting `File` */ -export interface FileInput { - /** User who uploaded this file. Forced to current_user_id() on INSERT. Used for UPDATE/DELETE authorization. */ - actorId: string; - /** Bucket this file belongs to. Determines owner_id and is_public via inheritance trigger. */ - bucketId: string; - /** SHA-256 content hash for integrity verification and dedup. In default mode, equals the S3 key. In custom key mode, stored separately. */ - contentHash?: string; - createdAt?: string; - /** Human-readable description or alt text for the file (mutable) */ - description?: string; - /** When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. */ - expiryEnqueuedAt?: string; - /** Original filename provided by the uploader. Used for display and Content-Disposition header on download. */ - filename?: string; - id?: string; - /** S3 object key for this file, unique within its bucket */ - key: string; - /** MIME type of the file (e.g. image/png, application/pdf). Immutable after INSERT. */ - mimeType: string; - /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ - promotedAt?: string; - /** File size in bytes. Immutable after INSERT. */ - size: string; - /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ - status?: FileStatus; - /** User-defined tags for categorization and search (mutable) */ - tags?: string[]; - updatedAt?: string; - /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ - upload?: ConstructiveInternalTypeUpload; -} /** An input for mutations affecting `PlatformBucket` */ export interface PlatformBucketInput { /** User who created this bucket. Forced to current_user_id() on INSERT. */ @@ -1425,38 +1398,6 @@ export interface PlatformBucketInput { type?: BucketType; updatedAt?: string; } -/** An input for mutations affecting `PlatformFile` */ -export interface PlatformFileInput { - /** User who uploaded this file. Forced to current_user_id() on INSERT. Used for UPDATE/DELETE authorization. */ - actorId: string; - /** Bucket this file belongs to. Determines owner_id and is_public via inheritance trigger. */ - bucketId: string; - /** SHA-256 content hash for integrity verification and dedup. In default mode, equals the S3 key. In custom key mode, stored separately. */ - contentHash?: string; - createdAt?: string; - /** Human-readable description or alt text for the file (mutable) */ - description?: string; - /** When the staged-expiry sweep enqueued deletion of this file's object. NULL until it expires; set once so expiry is enqueued exactly once. */ - expiryEnqueuedAt?: string; - /** Original filename provided by the uploader. Used for display and Content-Disposition header on download. */ - filename?: string; - id?: string; - /** S3 object key for this file, unique within its bucket */ - key: string; - /** MIME type of the file (e.g. image/png, application/pdf). Immutable after INSERT. */ - mimeType: string; - /** When this file was promoted out of its staging bucket into its destination bucket. NULL for a file that was never staged, or is still staged. */ - promotedAt?: string; - /** File size in bytes. Immutable after INSERT. */ - size: string; - /** File lifecycle status: requested (presigned URL generated, not yet in S3), uploaded (file in S3 and content validated, ready for use), processed (image resized, text extracted, embedding computed), rejected (declared type disagreed with the bytes), expired (bytes never arrived before the confirm window closed). */ - status?: FileStatus; - /** User-defined tags for categorization and search (mutable) */ - tags?: string[]; - updatedAt?: string; - /** Processed file reference (upload domain). Populated by processing jobs after file is uploaded. Copy this value to other tables to reference the file. */ - upload?: ConstructiveInternalTypeUpload; -} export interface UploadFileBulkFileInput { /** SHA-256 content hash (hex-encoded, 64 chars) */ contentHash: string; @@ -1574,6 +1515,8 @@ export interface FileFilter { or?: FileFilter[]; /** Filter by the object’s `promotedAt` field. */ promotedAt?: DatetimeFilter; + /** Filter by the object’s `rejectionReason` field. */ + rejectionReason?: StringFilter; /** Filter by the object’s `size` field. */ size?: BigIntFilter; /** Filter by the object’s `status` field. */ @@ -1674,6 +1617,8 @@ export interface PlatformFileFilter { or?: PlatformFileFilter[]; /** Filter by the object’s `promotedAt` field. */ promotedAt?: DatetimeFilter; + /** Filter by the object’s `rejectionReason` field. */ + rejectionReason?: StringFilter; /** Filter by the object’s `size` field. */ size?: BigIntFilter; /** Filter by the object’s `status` field. */ @@ -1956,6 +1901,8 @@ export interface UploadFilePayload { fileId: string; /** The S3 object key */ key: string; + /** The exact headers the PUT to uploadUrl must send (Content-Type and every header the URL is signed over, e.g. x-amz-checksum-sha256 and x-amz-meta-upload-id). Forward them as-is. Null if deduplicated. */ + uploadHeaders?: Record | null; /** Presigned PUT URL (null if deduplicated) */ uploadUrl?: string | null; } @@ -1965,6 +1912,7 @@ export type UploadFilePayloadSelect = { file?: boolean; fileId?: boolean; key?: boolean; + uploadHeaders?: boolean; uploadUrl?: boolean; }; export interface UploadFileBulkPayload { @@ -1986,6 +1934,8 @@ export interface UploadPlatformFilePayload { fileId: string; /** The S3 object key */ key: string; + /** The exact headers the PUT to uploadUrl must send (Content-Type and every header the URL is signed over, e.g. x-amz-checksum-sha256 and x-amz-meta-upload-id). Forward them as-is. Null if deduplicated. */ + uploadHeaders?: Record | null; /** Presigned PUT URL (null if deduplicated) */ uploadUrl?: string | null; } @@ -1995,6 +1945,7 @@ export type UploadPlatformFilePayloadSelect = { file?: boolean; fileId?: boolean; key?: boolean; + uploadHeaders?: boolean; uploadUrl?: boolean; }; export interface UploadPlatformFileBulkPayload { @@ -2050,21 +2001,6 @@ export type DeleteBucketPayloadSelect = { }; clientMutationId?: boolean; }; -export interface CreateFilePayload { - clientMutationId?: string | null; - /** The `File` that was created by this mutation. */ - file?: File | null; - fileEdge?: FileEdge | null; -} -export type CreateFilePayloadSelect = { - clientMutationId?: boolean; - file?: { - select: FileSelect; - }; - fileEdge?: { - select: FileEdgeSelect; - }; -}; export interface UpdateFilePayload { clientMutationId?: string | null; /** The `File` that was updated by this mutation. */ @@ -2140,21 +2076,6 @@ export type DeletePlatformBucketPayloadSelect = { select: PlatformBucketEdgeSelect; }; }; -export interface CreatePlatformFilePayload { - clientMutationId?: string | null; - /** The `PlatformFile` that was created by this mutation. */ - platformFile?: PlatformFile | null; - platformFileEdge?: PlatformFileEdge | null; -} -export type CreatePlatformFilePayloadSelect = { - clientMutationId?: boolean; - platformFile?: { - select: PlatformFileSelect; - }; - platformFileEdge?: { - select: PlatformFileEdgeSelect; - }; -}; export interface UpdatePlatformFilePayload { clientMutationId?: string | null; /** The `PlatformFile` that was updated by this mutation. */ @@ -2216,6 +2137,8 @@ export interface UploadFileBulkFilePayload { file?: Record | null; fileId: string; key: string; + /** The exact headers the PUT to uploadUrl must send. */ + uploadHeaders?: Record | null; uploadUrl?: string | null; } export type UploadFileBulkFilePayloadSelect = { @@ -2224,6 +2147,7 @@ export type UploadFileBulkFilePayloadSelect = { file?: boolean; fileId?: boolean; key?: boolean; + uploadHeaders?: boolean; uploadUrl?: boolean; }; export interface UploadPlatformFileBulkFilePayload { @@ -2233,6 +2157,8 @@ export interface UploadPlatformFileBulkFilePayload { file?: Record | null; fileId: string; key: string; + /** The exact headers the PUT to uploadUrl must send. */ + uploadHeaders?: Record | null; uploadUrl?: string | null; } export type UploadPlatformFileBulkFilePayloadSelect = { @@ -2241,6 +2167,7 @@ export type UploadPlatformFileBulkFilePayloadSelect = { file?: boolean; fileId?: boolean; key?: boolean; + uploadHeaders?: boolean; uploadUrl?: boolean; }; /** A `Bucket` edge in the connection. */ diff --git a/sdk/constructive-sdk/src/storage/orm/models/file.ts b/sdk/constructive-sdk/src/storage/orm/models/file.ts index a2d0e48ee3..e702b67170 100644 --- a/sdk/constructive-sdk/src/storage/orm/models/file.ts +++ b/sdk/constructive-sdk/src/storage/orm/models/file.ts @@ -29,7 +29,6 @@ import type { FileSelect, FileFilter, FileOrderBy, - CreateFileInput, UpdateFileInput, FilePatch, } from '../input-types'; @@ -144,33 +143,6 @@ export class FileModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createFile: { - file: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'File', - 'createFile', - 'file', - args.select, - args.data, - 'CreateFileInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'File', - fieldName: 'createFile', - document, - variables, - }); - } update( args: UpdateArgs< S, diff --git a/sdk/constructive-sdk/src/storage/orm/models/platformFile.ts b/sdk/constructive-sdk/src/storage/orm/models/platformFile.ts index bfc7890e99..921d7f3f92 100644 --- a/sdk/constructive-sdk/src/storage/orm/models/platformFile.ts +++ b/sdk/constructive-sdk/src/storage/orm/models/platformFile.ts @@ -29,7 +29,6 @@ import type { PlatformFileSelect, PlatformFileFilter, PlatformFileOrderBy, - CreatePlatformFileInput, UpdatePlatformFileInput, PlatformFilePatch, } from '../input-types'; @@ -144,33 +143,6 @@ export class PlatformFileModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createPlatformFile: { - platformFile: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'PlatformFile', - 'createPlatformFile', - 'platformFile', - args.select, - args.data, - 'CreatePlatformFileInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'PlatformFile', - fieldName: 'createPlatformFile', - document, - variables, - }); - } update( args: UpdateArgs< S, diff --git a/sdk/migrate-client/schemas/migrate.graphql b/sdk/migrate-client/schemas/migrate.graphql index 89b7681259..c6e93343fe 100644 --- a/sdk/migrate-client/schemas/migrate.graphql +++ b/sdk/migrate-client/schemas/migrate.graphql @@ -287,6 +287,11 @@ type MetaBelongsToRelation { fieldName: String isUnique: Boolean! keys: [MetaField!]! + + """ + Fields on the referenced table that keys point at, in the same order as keys + """ + refKeys: [MetaField!]! references: MetaRefTable! type: String } @@ -309,22 +314,66 @@ type MetaEnum { """Information about a table field/column""" type MetaField { + """ + Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. + """ + allowedValues: [String!] + """PostgreSQL column name""" columnName: String! description: String """Enum metadata if this field has an enum type""" enumValues: MetaEnum + + """ + Set when the field holds files; null otherwise. Set on a table's own fields only. + """ + file: MetaFileField hasDefault: Boolean! + + """ + Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. + """ + isComputed: Boolean isForeignKey: Boolean! isNotNull: Boolean! isPrimaryKey: Boolean! + """ + Whether a create must provide this field. Set on a table's own fields only. + """ + isRequiredOnCreate: Boolean + + """Whether a create may set this field. Set on a table's own fields only.""" + isWritableOnCreate: Boolean + + """ + Whether an update may change this field. Set on a table's own fields only. + """ + isWritableOnUpdate: Boolean + """Final GraphQL field name""" name: String! type: MetaType! } +"""How a field holds files""" +type MetaFileField { + """ + GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise + """ + filesType: String + + """Whether the field holds a list of files""" + isMultiple: Boolean! + + """ + image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. + """ + kind: String! +} + """Information about a foreign key constraint""" type MetaForeignKeyConstraint { fields: [MetaField!]! @@ -341,10 +390,15 @@ type MetaHasRelation { isUnique: Boolean! keys: [MetaField!]! referencedBy: MetaRefTable! + + """ + Fields on the related table that point at this table, in the same order as keys + """ + remoteKeys: [MetaField!]! type: String } -"""i18n metadata for a table with @i18n tag""" +"""i18n metadata for a translatable table""" type MetaI18n { """Fields that are translatable""" translatableFields: [MetaI18nField!]! @@ -371,7 +425,7 @@ type MetaIndex { name: String! } -"""Table inflection names""" +"""Type and field names generated for this table""" type MetaInflection { allRows: String! conditionType: String! @@ -416,7 +470,7 @@ type MetaQuery { update: String } -"""Realtime metadata for a table with @realtime tag""" +"""Realtime metadata for a table with change subscriptions""" type MetaRealtime { """The generated subscription field name (e.g. onPostChanged)""" subscriptionFieldName: String! @@ -437,13 +491,15 @@ type MetaRelations { } """ -How a client must serialize/parse a scalar — the one field-type detail standard GraphQL introspection cannot describe. Null for plain scalars whose wire format is obvious from gqlType. +How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. """ type MetaScalarEncoding { """For 'vector': declared length, else null.""" dimensions: Int - """For 'ltree': values are dot-separated path strings.""" + """ + For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). + """ dotPath: Boolean """For 'vector': element scalar (e.g. 'float').""" @@ -468,11 +524,11 @@ type MetaSchema { """Provisioning scope metadata for a table""" type MetaScope { - """SQL name of the entity table for entity scopes, else null""" + """Name of the entity table for entity scopes, else null""" entityTable: String """ - Inflected scope key column (e.g. databaseId, orgId), null for global tiers + Field name of the scope key (e.g. databaseId, orgId), null for global tiers """ keyColumn: String @@ -481,7 +537,7 @@ type MetaScope { """ scope: String! - """Provenance of the scope metadata (always 'smartTag')""" + """Where this scope metadata comes from""" source: String! """Coarse bucket: 'global', 'database', or 'entity'""" @@ -512,7 +568,7 @@ type MetaSearchColumn { name: String! } -"""Per-table search configuration from @searchConfig smart tag""" +"""Per-table search configuration""" type MetaSearchConfig { """Exponential decay factor per day""" boostRecencyDecay: Float @@ -529,7 +585,7 @@ type MetaSearchConfig { """Storage metadata for a table""" type MetaStorage { - """GraphQL type name of the plane's buckets table""" + """GraphQL type name of the paired buckets table""" bucketsType: String! """ @@ -537,7 +593,7 @@ type MetaStorage { """ downloadUrlField: String - """GraphQL type name of the plane's files table""" + """GraphQL type name of the paired files table""" filesType: String! """Whether this table is a storage buckets table""" @@ -546,13 +602,11 @@ type MetaStorage { """Whether this table is a storage files table""" isFilesTable: Boolean! - """The plane's GraphQL upload surface""" + """Upload mutations and types for this storage""" upload: MetaStorageUpload! } -""" -The GraphQL upload surface of a storage plane, derived from the registry facts the presigned-url plugin emits from -""" +"""The upload mutations and types for a storage table pair""" type MetaStorageUpload { """Per-file input type inside the bulk input""" bulkFileInputType: String! @@ -578,32 +632,45 @@ type MetaStorageUpload { """Payload type of the single upload mutation""" payloadType: String! - """Whether the upload input requires ownerId (entity-keyed plane)""" + """Whether the upload input requires ownerId""" requiresOwnerId: Boolean! } """Information about a database table""" type MetaTable { constraints: MetaConstraints! + + """Description written for this table, or null""" + description: String fields: [MetaField!]! foreignKeyConstraints: [MetaForeignKeyConstraint!]! - """i18n metadata (null if no @i18n tag)""" + """i18n metadata (null if the table is not translatable)""" i18n: MetaI18n indexes: [MetaIndex!]! inflection: MetaInflection! + """ + Whether this table only links rows of two other tables; the link appears in their manyToMany relations + """ + isJunction: Boolean! + + """ + 'table' when rows are stored in this table, 'view' when they come from a view of other tables + """ + kind: String! + """Final GraphQL output type name""" name: String! primaryKeyConstraints: [MetaPrimaryKeyConstraint!]! query: MetaQuery! - """Realtime metadata (null if no @realtime tag)""" + """Realtime metadata (null if the table has no change subscriptions)""" realtime: MetaRealtime relations: MetaRelations! schemaName: String! - """Provisioning scope metadata (null if no @scope tag)""" + """Provisioning scope metadata (null if the table has no scope)""" scope: MetaScope """Search metadata (null if no search configured)""" @@ -625,7 +692,22 @@ type MetaType { hasDefault: Boolean isArray: Boolean! isNotNull: Boolean + + """ + Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. + """ + maxLength: Int pgType: String! + + """ + Most significant digits a decimal number may hold. Null when unbounded. + """ + precision: Int + + """ + Digits a decimal number keeps after the decimal point. Null when unbounded. + """ + scale: Int subtype: String } diff --git a/sdk/migrate-client/src/migrate/orm/README.md b/sdk/migrate-client/src/migrate/orm/README.md index 3a8776042f..c1450c7f71 100644 --- a/sdk/migrate-client/src/migrate/orm/README.md +++ b/sdk/migrate-client/src/migrate/orm/README.md @@ -21,8 +21,8 @@ const db = createClient({ | Model | Operations | |-------|------------| -| `astMigration` | findMany, findOne, create, update, delete | -| `sqlAction` | findMany, findOne, create, update, delete | +| `astMigration` | findMany, findOne, update, delete | +| `sqlAction` | findMany, findOne, update, delete | ## Table Operations @@ -57,9 +57,6 @@ const items = await db.astMigration.findMany({ select: { actionId: true, actionN // Get one by id const item = await db.astMigration.findOne({ id: '', select: { actionId: true, actionName: true, actorId: true, createdAt: true, databaseId: true, deploy: true, deploys: true, id: true, name: true, payload: true, requires: true, revert: true, verify: true } }).execute(); -// Create -const created = await db.astMigration.create({ data: { actionId: '', actionName: '', actorId: '', databaseId: '', deploy: '', deploys: '', name: '', payload: '', requires: '', revert: '', verify: '' }, select: { id: true } }).execute(); - // Update const updated = await db.astMigration.update({ where: { id: '' }, data: { actionId: '' }, select: { id: true } }).execute(); @@ -98,9 +95,6 @@ const items = await db.sqlAction.findMany({ select: { actionId: true, actionName // Get one by id const item = await db.sqlAction.findOne({ id: '', select: { actionId: true, actionName: true, actorId: true, content: true, createdAt: true, databaseId: true, deploy: true, deps: true, id: true, name: true, payload: true, revert: true, verify: true } }).execute(); -// Create -const created = await db.sqlAction.create({ data: { actionId: '', actionName: '', actorId: '', content: '', databaseId: '', deploy: '', deps: '', name: '', payload: '', revert: '', verify: '' }, select: { id: true } }).execute(); - // Update const updated = await db.sqlAction.update({ where: { id: '' }, data: { actionId: '' }, select: { id: true } }).execute(); diff --git a/sdk/migrate-client/src/migrate/orm/input-types.ts b/sdk/migrate-client/src/migrate/orm/input-types.ts index 5e0de6561d..1508de1a94 100644 --- a/sdk/migrate-client/src/migrate/orm/input-types.ts +++ b/sdk/migrate-client/src/migrate/orm/input-types.ts @@ -435,22 +435,6 @@ export type SqlActionOrderBy = | 'VERIFY_ASC' | 'VERIFY_DESC'; // ============ CRUD Input Types ============ -export interface CreateAstMigrationInput { - clientMutationId?: string; - astMigration: { - actionId: string; - actionName?: string; - actorId: string; - databaseId: string; - deploy?: Record; - deploys?: string; - name?: string; - payload?: Record; - requires?: string[]; - revert?: Record; - verify?: Record; - }; -} export interface AstMigrationPatch { actionId?: string | null; actionName?: string | null; @@ -473,22 +457,6 @@ export interface DeleteAstMigrationInput { clientMutationId?: string; id: number; } -export interface CreateSqlActionInput { - clientMutationId?: string; - sqlAction: { - actionId: string; - actionName?: string; - actorId: string; - content?: string; - databaseId: string; - deploy?: string; - deps?: string[]; - name?: string; - payload?: Record; - revert?: string; - verify?: string; - }; -} export interface SqlActionPatch { actionId?: string | null; actionName?: string | null; diff --git a/sdk/migrate-client/src/migrate/orm/models/astMigration.ts b/sdk/migrate-client/src/migrate/orm/models/astMigration.ts index bfcc5f455a..ca429d54b2 100644 --- a/sdk/migrate-client/src/migrate/orm/models/astMigration.ts +++ b/sdk/migrate-client/src/migrate/orm/models/astMigration.ts @@ -29,7 +29,6 @@ import type { AstMigrationSelect, AstMigrationFilter, AstMigrationOrderBy, - CreateAstMigrationInput, UpdateAstMigrationInput, AstMigrationPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class AstMigrationModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAstMigration: { - astMigration: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AstMigration', - 'createAstMigration', - 'astMigration', - args.select, - args.data, - 'CreateAstMigrationInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AstMigration', - fieldName: 'createAstMigration', - document, - variables, - }); - } } diff --git a/sdk/migrate-client/src/migrate/orm/models/sqlAction.ts b/sdk/migrate-client/src/migrate/orm/models/sqlAction.ts index 74b4418688..d9b77d8c06 100644 --- a/sdk/migrate-client/src/migrate/orm/models/sqlAction.ts +++ b/sdk/migrate-client/src/migrate/orm/models/sqlAction.ts @@ -29,7 +29,6 @@ import type { SqlActionSelect, SqlActionFilter, SqlActionOrderBy, - CreateSqlActionInput, UpdateSqlActionInput, SqlActionPatch, } from '../input-types'; @@ -144,31 +143,4 @@ export class SqlActionModel { }), }); } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createSqlAction: { - sqlAction: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'SqlAction', - 'createSqlAction', - 'sqlAction', - args.select, - args.data, - 'CreateSqlActionInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'SqlAction', - fieldName: 'createSqlAction', - document, - variables, - }); - } }