diff --git a/packages/prisma-postgres/.generated-specs/management.json b/packages/prisma-postgres/.generated-specs/management.json index 94534b0afb..a95ced4cf5 100644 --- a/packages/prisma-postgres/.generated-specs/management.json +++ b/packages/prisma-postgres/.generated-specs/management.json @@ -201,6 +201,9 @@ { "target": "com.prisma.postgres#Forbidden" }, + { + "target": "com.prisma.postgres#NotFound" + }, { "target": "com.prisma.postgres#UnprocessableEntity" } @@ -419,7 +422,7 @@ "uri": "/v1/apps", "code": 200 }, - "smithy.api#documentation": "Create app\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nCreates a new app under the specified project. The `projectId` is required in the request body. The app is placed in the given region (or the default region if omitted). Returns `409 Conflict` with the existing app's id, name, and branch if an app with the same name already exists on the resolved branch." + "smithy.api#documentation": "Create app\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nCreates a new app under the specified project. The `projectId` is required in the request body. The app is placed in the given region, or the project's default region if omitted (falling back to us-east-1). Returns `409 Conflict` with the existing app's id, name, and branch if an app with the same name already exists on the resolved branch." } }, "com.prisma.postgres#GetV1AppsByAppIdRequest": { @@ -1840,7 +1843,7 @@ } }, "traits": { - "smithy.api#documentation": "Thin reference to the parent Project. Member resources are intentionally NOT inlined — list /v1/databases?branchId= or /v1/compute-services?branchId= instead (see API design principles \"Flat and Hierarchical Coexistence\")." + "smithy.api#documentation": "Thin reference to the parent Project. Member resources are intentionally NOT inlined — list /v1/databases?branchId= or /v1/apps?branchId= instead (see API design principles \"Flat and Hierarchical Coexistence\")." } }, "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesResponseDataItem": { @@ -1897,7 +1900,7 @@ "project": { "target": "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesResponseDataItemProject", "traits": { - "smithy.api#documentation": "Thin reference to the parent Project. Member resources are intentionally NOT inlined — list /v1/databases?branchId= or /v1/compute-services?branchId= instead (see API design principles \"Flat and Hierarchical Coexistence\").", + "smithy.api#documentation": "Thin reference to the parent Project. Member resources are intentionally NOT inlined — list /v1/databases?branchId= or /v1/apps?branchId= instead (see API design principles \"Flat and Hierarchical Coexistence\").", "smithy.api#required": {} } } @@ -2040,7 +2043,7 @@ } }, "traits": { - "smithy.api#documentation": "Thin reference to the parent Project. Member resources are intentionally NOT inlined — list /v1/databases?branchId= or /v1/compute-services?branchId= instead (see API design principles \"Flat and Hierarchical Coexistence\")." + "smithy.api#documentation": "Thin reference to the parent Project. Member resources are intentionally NOT inlined — list /v1/databases?branchId= or /v1/apps?branchId= instead (see API design principles \"Flat and Hierarchical Coexistence\")." } }, "com.prisma.postgres#PostV1ProjectsByProjectIdBranchesResponseData": { @@ -2097,7 +2100,7 @@ "project": { "target": "com.prisma.postgres#PostV1ProjectsByProjectIdBranchesResponseDataProject", "traits": { - "smithy.api#documentation": "Thin reference to the parent Project. Member resources are intentionally NOT inlined — list /v1/databases?branchId= or /v1/compute-services?branchId= instead (see API design principles \"Flat and Hierarchical Coexistence\").", + "smithy.api#documentation": "Thin reference to the parent Project. Member resources are intentionally NOT inlined — list /v1/databases?branchId= or /v1/apps?branchId= instead (see API design principles \"Flat and Hierarchical Coexistence\").", "smithy.api#required": {} } } @@ -2202,7 +2205,7 @@ } }, "traits": { - "smithy.api#documentation": "Thin reference to the parent Project. Member resources are intentionally NOT inlined — list /v1/databases?branchId= or /v1/compute-services?branchId= instead (see API design principles \"Flat and Hierarchical Coexistence\")." + "smithy.api#documentation": "Thin reference to the parent Project. Member resources are intentionally NOT inlined — list /v1/databases?branchId= or /v1/apps?branchId= instead (see API design principles \"Flat and Hierarchical Coexistence\")." } }, "com.prisma.postgres#GetV1BranchesByBranchIdResponseData": { @@ -2259,7 +2262,7 @@ "project": { "target": "com.prisma.postgres#GetV1BranchesByBranchIdResponseDataProject", "traits": { - "smithy.api#documentation": "Thin reference to the parent Project. Member resources are intentionally NOT inlined — list /v1/databases?branchId= or /v1/compute-services?branchId= instead (see API design principles \"Flat and Hierarchical Coexistence\").", + "smithy.api#documentation": "Thin reference to the parent Project. Member resources are intentionally NOT inlined — list /v1/databases?branchId= or /v1/apps?branchId= instead (see API design principles \"Flat and Hierarchical Coexistence\").", "smithy.api#required": {} } } @@ -2299,7 +2302,7 @@ "uri": "/v1/branches/{branchId}", "code": 200 }, - "smithy.api#documentation": "Get a branch\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nReturns a single Branch by ID. Member resources are not inlined — list them via /v1/databases?branchId= and /v1/compute-services?branchId=." + "smithy.api#documentation": "Get a branch\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nReturns a single Branch by ID. Member resources are not inlined — list them via /v1/databases?branchId= and /v1/apps?branchId=." } }, "com.prisma.postgres#PatchV1BranchesByBranchIdRequest": { @@ -2364,7 +2367,7 @@ } }, "traits": { - "smithy.api#documentation": "Thin reference to the parent Project. Member resources are intentionally NOT inlined — list /v1/databases?branchId= or /v1/compute-services?branchId= instead (see API design principles \"Flat and Hierarchical Coexistence\")." + "smithy.api#documentation": "Thin reference to the parent Project. Member resources are intentionally NOT inlined — list /v1/databases?branchId= or /v1/apps?branchId= instead (see API design principles \"Flat and Hierarchical Coexistence\")." } }, "com.prisma.postgres#PatchV1BranchesByBranchIdResponseData": { @@ -2421,7 +2424,7 @@ "project": { "target": "com.prisma.postgres#PatchV1BranchesByBranchIdResponseDataProject", "traits": { - "smithy.api#documentation": "Thin reference to the parent Project. Member resources are intentionally NOT inlined — list /v1/databases?branchId= or /v1/compute-services?branchId= instead (see API design principles \"Flat and Hierarchical Coexistence\").", + "smithy.api#documentation": "Thin reference to the parent Project. Member resources are intentionally NOT inlined — list /v1/databases?branchId= or /v1/apps?branchId= instead (see API design principles \"Flat and Hierarchical Coexistence\").", "smithy.api#required": {} } } @@ -2510,44 +2513,37 @@ "smithy.api#documentation": "Soft-delete a branch\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nSoft-deletes a Branch (sets deletedAt). Refuses if the Branch is the Project's current default, the Project's production Branch, or has live members." } }, - "com.prisma.postgres#GetV1BuildsByBuildIdLogsRequestFollow": { - "type": "enum", + "com.prisma.postgres#GetV1BucketsRequest": { + "type": "structure", "members": { - "TRUE": { - "target": "smithy.api#Unit", + "cursor": { + "target": "smithy.api#String", "traits": { - "smithy.api#enumValue": "true" + "smithy.api#httpQuery": "cursor" } }, - "FALSE": { - "target": "smithy.api#Unit", + "limit": { + "target": "smithy.api#Integer", "traits": { - "smithy.api#enumValue": "false" + "smithy.api#httpQuery": "limit" } - } - }, - "traits": {} - }, - "com.prisma.postgres#GetV1BuildsByBuildIdLogsRequest": { - "type": "structure", - "members": { - "buildId": { + }, + "projectId": { "target": "smithy.api#String", "traits": { - "smithy.api#httpLabel": {}, - "smithy.api#required": {} + "smithy.api#httpQuery": "projectId" } }, - "follow": { - "target": "com.prisma.postgres#GetV1BuildsByBuildIdLogsRequestFollow", + "branchId": { + "target": "smithy.api#String", "traits": { - "smithy.api#httpQuery": "follow" + "smithy.api#httpQuery": "branchId" } }, - "cursor": { + "branchGitName": { "target": "smithy.api#String", "traits": { - "smithy.api#httpQuery": "cursor" + "smithy.api#httpQuery": "branchGitName" } } }, @@ -2555,160 +2551,214 @@ "smithy.api#input": {} } }, - "com.prisma.postgres#GetV1BuildsByBuildIdLogs": { - "type": "operation", - "input": { - "target": "com.prisma.postgres#GetV1BuildsByBuildIdLogsRequest" - }, - "output": { - "target": "smithy.api#Unit" - }, - "errors": [ - { - "target": "com.prisma.postgres#NotFound" - } - ], - "traits": { - "smithy.api#http": { - "method": "GET", - "uri": "/v1/builds/{buildId}/logs", - "code": 200 - }, - "smithy.api#documentation": "Stream build logs\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nStreams the full build log for a build as newline-delimited JSON (`application/x-ndjson`). Each line is a JSON object discriminated by `type`: `log` (a build output line) or `terminal` (end-of-stream marker with a `cursor` for resumption). The default is a finite dump that ends once the stream is drained; pass `follow=true` to keep the connection open for an in-flight build, and `cursor` to resume from a prior terminal cursor." - } - }, - "com.prisma.postgres#GetV1DomainsByDomainIdRequest": { + "com.prisma.postgres#GetV1BucketsResponseDataItemProject": { "type": "structure", "members": { - "domainId": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "url": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "name": { "target": "smithy.api#String", "traits": { - "smithy.api#httpLabel": {}, "smithy.api#required": {} } } }, - "traits": { - "smithy.api#input": {} - } + "traits": {} }, - "com.prisma.postgres#GetV1DomainsByDomainIdResponseDataStatus": { - "type": "enum", + "com.prisma.postgres#GetV1BucketsResponseDataItem": { + "type": "structure", "members": { - "PENDING_DNS": { - "target": "smithy.api#Unit", + "id": { + "target": "smithy.api#String", "traits": { - "smithy.api#enumValue": "pending_dns" + "smithy.api#required": {} } }, - "VERIFYING": { - "target": "smithy.api#Unit", + "type": { + "target": "smithy.api#String", "traits": { - "smithy.api#enumValue": "verifying" + "smithy.api#required": {} } }, - "VERIFIED_ROUTING_BLOCKED": { - "target": "smithy.api#Unit", + "url": { + "target": "smithy.api#String", "traits": { - "smithy.api#enumValue": "verified_routing_blocked" + "smithy.api#required": {} } }, - "PROVISIONING_TLS": { - "target": "smithy.api#Unit", + "name": { + "target": "smithy.api#String", "traits": { - "smithy.api#enumValue": "provisioning_tls" + "smithy.api#required": {} } }, - "ACTIVE": { - "target": "smithy.api#Unit", + "providerName": { + "target": "smithy.api#String", "traits": { - "smithy.api#enumValue": "active" + "smithy.api#required": {} } }, - "FAILED": { - "target": "smithy.api#Unit", + "status": { + "target": "smithy.api#String", "traits": { - "smithy.api#enumValue": "failed" + "smithy.api#required": {} } }, - "REMOVING": { - "target": "smithy.api#Unit", + "createdAt": { + "target": "smithy.api#String", "traits": { - "smithy.api#enumValue": "removing" + "smithy.api#required": {} + } + }, + "project": { + "target": "com.prisma.postgres#GetV1BucketsResponseDataItemProject", + "traits": { + "smithy.api#required": {} + } + }, + "branchId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} } } }, "traits": {} }, - "com.prisma.postgres#GetV1DomainsByDomainIdResponseDataFailureCategory": { - "type": "enum", + "com.prisma.postgres#GetV1BucketsResponseDataList": { + "type": "list", + "member": { + "target": "com.prisma.postgres#GetV1BucketsResponseDataItem" + }, + "traits": {} + }, + "com.prisma.postgres#GetV1BucketsResponsePagination": { + "type": "structure", "members": { - "DNS": { - "target": "smithy.api#Unit", + "nextCursor": { + "target": "smithy.api#String", "traits": { - "smithy.api#enumValue": "dns" + "smithy.api#documentation": "Next cursor to continue pagination", + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} } }, - "ACME": { - "target": "smithy.api#Unit", + "hasMore": { + "target": "smithy.api#Boolean", "traits": { - "smithy.api#enumValue": "acme" + "smithy.api#documentation": "Whether there are more items to paginate", + "smithy.api#required": {} } - }, - "STORAGE": { - "target": "smithy.api#Unit", + } + }, + "traits": {} + }, + "com.prisma.postgres#GetV1BucketsResponse": { + "type": "structure", + "members": { + "data": { + "target": "com.prisma.postgres#GetV1BucketsResponseDataList", "traits": { - "smithy.api#enumValue": "storage" + "smithy.api#required": {} } }, - "UNKNOWN": { - "target": "smithy.api#Unit", + "pagination": { + "target": "com.prisma.postgres#GetV1BucketsResponsePagination", "traits": { - "smithy.api#enumValue": "unknown" + "smithy.api#required": {} } } }, - "traits": {} + "traits": { + "smithy.api#output": {} + } }, - "com.prisma.postgres#GetV1DomainsByDomainIdResponseDataDnsRecordsItem": { + "com.prisma.postgres#GetV1Buckets": { + "type": "operation", + "input": { + "target": "com.prisma.postgres#GetV1BucketsRequest" + }, + "output": { + "target": "com.prisma.postgres#GetV1BucketsResponse" + }, + "traits": { + "smithy.api#http": { + "method": "GET", + "uri": "/v1/buckets", + "code": 200 + }, + "smithy.api#documentation": "List buckets\n\nReturns all object-store buckets the token has access to. Optionally filter by project ID." + } + }, + "com.prisma.postgres#PostV1BucketsRequest": { "type": "structure", "members": { - "type": { + "projectId": { "target": "smithy.api#String", "traits": { + "smithy.api#documentation": "ID of the project to create the bucket in", "smithy.api#required": {} } }, "name": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {} + "smithy.api#documentation": "Display name for the bucket. Generated if omitted." } }, - "value": { + "branchId": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {} + "smithy.api#documentation": "ID of the branch to associate the bucket with. Mutually exclusive with branchGitName." } }, - "ttl": { - "target": "smithy.api#Double", + "branchGitName": { + "target": "smithy.api#String", "traits": { - "smithy.api#required": {}, - "com.distilled.openapi#nullable": {} + "smithy.api#documentation": "Git name of the branch to associate the bucket with. Mutually exclusive with branchId." } } }, - "traits": {} + "traits": { + "smithy.api#input": {} + } }, - "com.prisma.postgres#GetV1DomainsByDomainIdResponseDataDnsRecordsList": { - "type": "list", - "member": { - "target": "com.prisma.postgres#GetV1DomainsByDomainIdResponseDataDnsRecordsItem" + "com.prisma.postgres#PostV1BucketsResponseDataProject": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "url": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "name": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + } }, "traits": {} }, - "com.prisma.postgres#GetV1DomainsByDomainIdResponseData": { + "com.prisma.postgres#PostV1BucketsResponseData": { "type": "structure", "members": { "id": { @@ -2729,84 +2779,51 @@ "smithy.api#required": {} } }, - "hostname": { + "name": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "appId": { + "providerName": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "computeServiceId": { + "status": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "Deprecated: use `appId` instead.", "smithy.api#required": {} } }, - "status": { - "target": "com.prisma.postgres#GetV1DomainsByDomainIdResponseDataStatus", + "createdAt": { + "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "foundryStatus": { - "target": "smithy.api#String", + "project": { + "target": "com.prisma.postgres#PostV1BucketsResponseDataProject", "traits": { "smithy.api#required": {} } }, - "failureReason": { + "branchId": { "target": "smithy.api#String", "traits": { "smithy.api#required": {}, "com.distilled.openapi#nullable": {} } - }, - "failureCategory": { - "target": "com.prisma.postgres#GetV1DomainsByDomainIdResponseDataFailureCategory", - "traits": { - "smithy.api#required": {}, - "com.distilled.openapi#nullable": {} - } - }, - "certExpiresAt": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {}, - "com.distilled.openapi#nullable": {} - } - }, - "createdAt": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {} - } - }, - "updatedAt": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {} - } - }, - "dnsRecords": { - "target": "com.prisma.postgres#GetV1DomainsByDomainIdResponseDataDnsRecordsList", - "traits": { - "smithy.api#required": {} - } } }, "traits": {} }, - "com.prisma.postgres#GetV1DomainsByDomainIdResponse": { + "com.prisma.postgres#PostV1BucketsResponse": { "type": "structure", "members": { "data": { - "target": "com.prisma.postgres#GetV1DomainsByDomainIdResponseData", + "target": "com.prisma.postgres#PostV1BucketsResponseData", "traits": { "smithy.api#required": {} } @@ -2816,55 +2833,18 @@ "smithy.api#output": {} } }, - "com.prisma.postgres#GetV1DomainsByDomainId": { + "com.prisma.postgres#PostV1Buckets": { "type": "operation", "input": { - "target": "com.prisma.postgres#GetV1DomainsByDomainIdRequest" + "target": "com.prisma.postgres#PostV1BucketsRequest" }, "output": { - "target": "com.prisma.postgres#GetV1DomainsByDomainIdResponse" + "target": "com.prisma.postgres#PostV1BucketsResponse" }, "errors": [ { - "target": "com.prisma.postgres#Forbidden" - }, - { - "target": "com.prisma.postgres#NotFound" - } - ], - "traits": { - "smithy.api#http": { - "method": "GET", - "uri": "/v1/domains/{domainId}", - "code": 200 + "target": "com.prisma.postgres#BadRequest" }, - "smithy.api#documentation": "Get a custom domain\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nReturns details for a custom domain by id. Authorization is derived from the parent compute service's workspace." - } - }, - "com.prisma.postgres#DeleteV1DomainsByDomainIdRequest": { - "type": "structure", - "members": { - "domainId": { - "target": "smithy.api#String", - "traits": { - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.prisma.postgres#DeleteV1DomainsByDomainId": { - "type": "operation", - "input": { - "target": "com.prisma.postgres#DeleteV1DomainsByDomainIdRequest" - }, - "output": { - "target": "smithy.api#Unit" - }, - "errors": [ { "target": "com.prisma.postgres#Forbidden" }, @@ -2874,17 +2854,17 @@ ], "traits": { "smithy.api#http": { - "method": "DELETE", - "uri": "/v1/domains/{domainId}", + "method": "POST", + "uri": "/v1/buckets", "code": 200 }, - "smithy.api#documentation": "Delete a custom domain\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nRemoves a custom domain binding. Authorization is derived from the parent compute service's workspace." + "smithy.api#documentation": "Create bucket\n\nCreates a new object-store bucket in the specified project." } }, - "com.prisma.postgres#PostV1DomainsByDomainIdRetryRequest": { + "com.prisma.postgres#GetV1BucketsByBucketIdRequest": { "type": "structure", "members": { - "domainId": { + "bucketId": { "target": "smithy.api#String", "traits": { "smithy.api#httpLabel": {}, @@ -2896,123 +2876,31 @@ "smithy.api#input": {} } }, - "com.prisma.postgres#PostV1DomainsByDomainIdRetryResponseDataStatus": { - "type": "enum", - "members": { - "PENDING_DNS": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "pending_dns" - } - }, - "VERIFYING": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "verifying" - } - }, - "VERIFIED_ROUTING_BLOCKED": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "verified_routing_blocked" - } - }, - "PROVISIONING_TLS": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "provisioning_tls" - } - }, - "ACTIVE": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "active" - } - }, - "FAILED": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "failed" - } - }, - "REMOVING": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "removing" - } - } - }, - "traits": {} - }, - "com.prisma.postgres#PostV1DomainsByDomainIdRetryResponseDataFailureCategory": { - "type": "enum", - "members": { - "DNS": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "dns" - } - }, - "ACME": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "acme" - } - }, - "STORAGE": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "storage" - } - }, - "UNKNOWN": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "unknown" - } - } - }, - "traits": {} - }, - "com.prisma.postgres#PostV1DomainsByDomainIdRetryResponseDataDnsRecordsItem": { + "com.prisma.postgres#GetV1BucketsByBucketIdResponseDataProject": { "type": "structure", "members": { - "type": { + "id": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "name": { + "url": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "value": { + "name": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } - }, - "ttl": { - "target": "smithy.api#Double", - "traits": { - "smithy.api#required": {}, - "com.distilled.openapi#nullable": {} - } } }, "traits": {} }, - "com.prisma.postgres#PostV1DomainsByDomainIdRetryResponseDataDnsRecordsList": { - "type": "list", - "member": { - "target": "com.prisma.postgres#PostV1DomainsByDomainIdRetryResponseDataDnsRecordsItem" - }, - "traits": {} - }, - "com.prisma.postgres#PostV1DomainsByDomainIdRetryResponseData": { + "com.prisma.postgres#GetV1BucketsByBucketIdResponseData": { "type": "structure", "members": { "id": { @@ -3033,84 +2921,51 @@ "smithy.api#required": {} } }, - "hostname": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {} - } - }, - "appId": { + "name": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "computeServiceId": { + "providerName": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "Deprecated: use `appId` instead.", "smithy.api#required": {} } }, "status": { - "target": "com.prisma.postgres#PostV1DomainsByDomainIdRetryResponseDataStatus", - "traits": { - "smithy.api#required": {} - } - }, - "foundryStatus": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "failureReason": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {}, - "com.distilled.openapi#nullable": {} - } - }, - "failureCategory": { - "target": "com.prisma.postgres#PostV1DomainsByDomainIdRetryResponseDataFailureCategory", - "traits": { - "smithy.api#required": {}, - "com.distilled.openapi#nullable": {} - } - }, - "certExpiresAt": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {}, - "com.distilled.openapi#nullable": {} - } - }, "createdAt": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "updatedAt": { - "target": "smithy.api#String", + "project": { + "target": "com.prisma.postgres#GetV1BucketsByBucketIdResponseDataProject", "traits": { "smithy.api#required": {} } }, - "dnsRecords": { - "target": "com.prisma.postgres#PostV1DomainsByDomainIdRetryResponseDataDnsRecordsList", + "branchId": { + "target": "smithy.api#String", "traits": { - "smithy.api#required": {} + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} } } }, "traits": {} }, - "com.prisma.postgres#PostV1DomainsByDomainIdRetryResponse": { + "com.prisma.postgres#GetV1BucketsByBucketIdResponse": { "type": "structure", "members": { "data": { - "target": "com.prisma.postgres#PostV1DomainsByDomainIdRetryResponseData", + "target": "com.prisma.postgres#GetV1BucketsByBucketIdResponseData", "traits": { "smithy.api#required": {} } @@ -3120,53 +2975,36 @@ "smithy.api#output": {} } }, - "com.prisma.postgres#PostV1DomainsByDomainIdRetry": { + "com.prisma.postgres#GetV1BucketsByBucketId": { "type": "operation", "input": { - "target": "com.prisma.postgres#PostV1DomainsByDomainIdRetryRequest" + "target": "com.prisma.postgres#GetV1BucketsByBucketIdRequest" }, "output": { - "target": "com.prisma.postgres#PostV1DomainsByDomainIdRetryResponse" + "target": "com.prisma.postgres#GetV1BucketsByBucketIdResponse" }, "errors": [ - { - "target": "com.prisma.postgres#Forbidden" - }, { "target": "com.prisma.postgres#NotFound" - }, - { - "target": "com.prisma.postgres#Conflict" } ], "traits": { "smithy.api#http": { - "method": "POST", - "uri": "/v1/domains/{domainId}/retry", + "method": "GET", + "uri": "/v1/buckets/{bucketId}", "code": 200 }, - "smithy.api#documentation": "Retry custom domain provisioning\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nRetries DNS verification and certificate issuance for a failed or pending domain. Returns 409 if the domain is not yet eligible for retry (e.g. still provisioning)." + "smithy.api#documentation": "Get bucket\n\nReturns the bucket with the given ID." } }, - "com.prisma.postgres#GetV1ConnectionsRequest": { + "com.prisma.postgres#DeleteV1BucketsByBucketIdRequest": { "type": "structure", "members": { - "cursor": { + "bucketId": { "target": "smithy.api#String", "traits": { - "smithy.api#httpQuery": "cursor" - } - }, - "limit": { - "target": "smithy.api#Double", - "traits": { - "smithy.api#httpQuery": "limit" - } - }, - "databaseId": { - "target": "smithy.api#String", - "traits": { - "smithy.api#httpQuery": "databaseId" + "smithy.api#httpLabel": {}, + "smithy.api#required": {} } } }, @@ -3174,144 +3012,74 @@ "smithy.api#input": {} } }, - "com.prisma.postgres#GetV1ConnectionsResponseDataItemKind": { - "type": "enum", - "members": { - "POSTGRES": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "postgres" - } - }, - "ACCELERATE": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "accelerate" - } - } - }, - "traits": {} - }, - "com.prisma.postgres#GetV1ConnectionsResponseDataItemEndpointsDirect": { - "type": "structure", - "members": { - "host": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {} - } - }, - "port": { - "target": "smithy.api#Double", - "traits": { - "smithy.api#required": {} - } - } + "com.prisma.postgres#DeleteV1BucketsByBucketId": { + "type": "operation", + "input": { + "target": "com.prisma.postgres#DeleteV1BucketsByBucketIdRequest" }, - "traits": {} - }, - "com.prisma.postgres#GetV1ConnectionsResponseDataItemEndpointsPooled": { - "type": "structure", - "members": { - "host": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {} - } - }, - "port": { - "target": "smithy.api#Double", - "traits": { - "smithy.api#required": {} - } - } + "output": { + "target": "smithy.api#Unit" }, - "traits": {} - }, - "com.prisma.postgres#GetV1ConnectionsResponseDataItemEndpointsAccelerate": { - "type": "structure", - "members": { - "host": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {} - } - }, - "port": { - "target": "smithy.api#Double", - "traits": { - "smithy.api#required": {} - } + "errors": [ + { + "target": "com.prisma.postgres#NotFound" } - }, - "traits": {} - }, - "com.prisma.postgres#GetV1ConnectionsResponseDataItemEndpoints": { - "type": "structure", - "members": { - "direct": { - "target": "com.prisma.postgres#GetV1ConnectionsResponseDataItemEndpointsDirect" - }, - "pooled": { - "target": "com.prisma.postgres#GetV1ConnectionsResponseDataItemEndpointsPooled" + ], + "traits": { + "smithy.api#http": { + "method": "DELETE", + "uri": "/v1/buckets/{bucketId}", + "code": 200 }, - "accelerate": { - "target": "com.prisma.postgres#GetV1ConnectionsResponseDataItemEndpointsAccelerate" - } - }, - "traits": {} + "smithy.api#documentation": "Delete bucket\n\nPermanently deletes the bucket with the given ID, all objects stored in it, and all its access keys. This action cannot be undone." + } }, - "com.prisma.postgres#GetV1ConnectionsResponseDataItemDirectConnection": { + "com.prisma.postgres#GetV1BucketsByBucketIdKeysRequest": { "type": "structure", "members": { - "host": { + "bucketId": { "target": "smithy.api#String", "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "pass": { + "cursor": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {} + "smithy.api#httpQuery": "cursor" } }, - "user": { - "target": "smithy.api#String", + "limit": { + "target": "smithy.api#Integer", "traits": { - "smithy.api#required": {} + "smithy.api#httpQuery": "limit" } } }, "traits": { - "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead." + "smithy.api#input": {} } }, - "com.prisma.postgres#GetV1ConnectionsResponseDataItemDatabase": { - "type": "structure", + "com.prisma.postgres#GetV1BucketsByBucketIdKeysResponseDataItemRole": { + "type": "enum", "members": { - "id": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {} - } - }, - "url": { - "target": "smithy.api#String", + "READ": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "read" } }, - "name": { - "target": "smithy.api#String", + "READ_WRITE": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "read_write" } } }, "traits": {} }, - "com.prisma.postgres#GetV1ConnectionsResponseDataItem": { + "com.prisma.postgres#GetV1BucketsByBucketIdKeysResponseDataItem": { "type": "structure", "members": { "id": { @@ -3326,45 +3094,26 @@ "smithy.api#required": {} } }, - "url": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {} - } - }, "name": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "createdAt": { + "valueHint": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "kind": { - "target": "com.prisma.postgres#GetV1ConnectionsResponseDataItemKind", - "traits": { - "smithy.api#required": {} - } - }, - "endpoints": { - "target": "com.prisma.postgres#GetV1ConnectionsResponseDataItemEndpoints", + "role": { + "target": "com.prisma.postgres#GetV1BucketsByBucketIdKeysResponseDataItemRole", "traits": { "smithy.api#required": {} } }, - "directConnection": { - "target": "com.prisma.postgres#GetV1ConnectionsResponseDataItemDirectConnection", - "traits": { - "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead.", - "com.distilled.openapi#nullable": {} - } - }, - "database": { - "target": "com.prisma.postgres#GetV1ConnectionsResponseDataItemDatabase", + "createdAt": { + "target": "smithy.api#String", "traits": { "smithy.api#required": {} } @@ -3372,14 +3121,14 @@ }, "traits": {} }, - "com.prisma.postgres#GetV1ConnectionsResponseDataList": { + "com.prisma.postgres#GetV1BucketsByBucketIdKeysResponseDataList": { "type": "list", "member": { - "target": "com.prisma.postgres#GetV1ConnectionsResponseDataItem" + "target": "com.prisma.postgres#GetV1BucketsByBucketIdKeysResponseDataItem" }, "traits": {} }, - "com.prisma.postgres#GetV1ConnectionsResponsePagination": { + "com.prisma.postgres#GetV1BucketsByBucketIdKeysResponsePagination": { "type": "structure", "members": { "nextCursor": { @@ -3400,17 +3149,17 @@ }, "traits": {} }, - "com.prisma.postgres#GetV1ConnectionsResponse": { + "com.prisma.postgres#GetV1BucketsByBucketIdKeysResponse": { "type": "structure", "members": { "data": { - "target": "com.prisma.postgres#GetV1ConnectionsResponseDataList", + "target": "com.prisma.postgres#GetV1BucketsByBucketIdKeysResponseDataList", "traits": { "smithy.api#required": {} } }, "pagination": { - "target": "com.prisma.postgres#GetV1ConnectionsResponsePagination", + "target": "com.prisma.postgres#GetV1BucketsByBucketIdKeysResponsePagination", "traits": { "smithy.api#required": {} } @@ -3420,35 +3169,68 @@ "smithy.api#output": {} } }, - "com.prisma.postgres#GetV1Connections": { + "com.prisma.postgres#GetV1BucketsByBucketIdKeys": { "type": "operation", "input": { - "target": "com.prisma.postgres#GetV1ConnectionsRequest" + "target": "com.prisma.postgres#GetV1BucketsByBucketIdKeysRequest" }, "output": { - "target": "com.prisma.postgres#GetV1ConnectionsResponse" + "target": "com.prisma.postgres#GetV1BucketsByBucketIdKeysResponse" }, + "errors": [ + { + "target": "com.prisma.postgres#NotFound" + } + ], "traits": { "smithy.api#http": { "method": "GET", - "uri": "/v1/connections", + "uri": "/v1/buckets/{bucketId}/keys", "code": 200 }, - "smithy.api#documentation": "List connections\n\nReturns all connections the actor has access to, with optional database filter." + "smithy.api#documentation": "List bucket keys\n\nReturns all access keys for the given bucket." } }, - "com.prisma.postgres#PostV1ConnectionsRequest": { + "com.prisma.postgres#PostV1BucketsByBucketIdKeysRequestRole": { + "type": "enum", + "members": { + "READ": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "read" + } + }, + "READ_WRITE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "read_write" + } + } + }, + "traits": { + "smithy.api#documentation": "Access role for the key: \"read\" or \"read_write\"." + } + }, + "com.prisma.postgres#PostV1BucketsByBucketIdKeysRequest": { "type": "structure", "members": { - "databaseId": { + "bucketId": { "target": "smithy.api#String", "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, "name": { "target": "smithy.api#String", "traits": { + "smithy.api#documentation": "Display name for the key. Generated if omitted." + } + }, + "role": { + "target": "com.prisma.postgres#PostV1BucketsByBucketIdKeysRequestRole", + "traits": { + "smithy.api#documentation": "Access role for the key: \"read\" or \"read_write\".", "smithy.api#required": {} } } @@ -3457,473 +3239,436 @@ "smithy.api#input": {} } }, - "com.prisma.postgres#PostV1ConnectionsResponseDataKind": { + "com.prisma.postgres#PostV1BucketsByBucketIdKeysResponseDataRole": { "type": "enum", "members": { - "POSTGRES": { + "READ": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "postgres" + "smithy.api#enumValue": "read" } }, - "ACCELERATE": { + "READ_WRITE": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "accelerate" + "smithy.api#enumValue": "read_write" } } }, "traits": {} }, - "com.prisma.postgres#PostV1ConnectionsResponseDataEndpointsDirect": { + "com.prisma.postgres#PostV1BucketsByBucketIdKeysResponseData": { "type": "structure", "members": { - "host": { + "id": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "port": { - "target": "smithy.api#Double", + "type": { + "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "connectionString": { + "name": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {}, - "smithy.api#sensitive": {} + "smithy.api#required": {} } - } - }, - "traits": {} - }, - "com.prisma.postgres#PostV1ConnectionsResponseDataEndpointsPooled": { - "type": "structure", - "members": { - "host": { + }, + "valueHint": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "port": { - "target": "smithy.api#Double", + "role": { + "target": "com.prisma.postgres#PostV1BucketsByBucketIdKeysResponseDataRole", "traits": { "smithy.api#required": {} } }, - "connectionString": { + "createdAt": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "secretAccessKey": { "target": "smithy.api#String", "traits": { "smithy.api#required": {}, "smithy.api#sensitive": {} } - } - }, - "traits": {} - }, - "com.prisma.postgres#PostV1ConnectionsResponseDataEndpointsAccelerate": { - "type": "structure", - "members": { - "host": { + }, + "accessKeyId": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {} + "smithy.api#required": {}, + "smithy.api#sensitive": {} } }, - "port": { - "target": "smithy.api#Double", + "endpoint": { + "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "connectionString": { + "bucketName": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {}, - "smithy.api#sensitive": {} + "smithy.api#required": {} } } }, "traits": {} }, - "com.prisma.postgres#PostV1ConnectionsResponseDataEndpoints": { + "com.prisma.postgres#PostV1BucketsByBucketIdKeysResponse": { "type": "structure", "members": { - "direct": { - "target": "com.prisma.postgres#PostV1ConnectionsResponseDataEndpointsDirect" - }, - "pooled": { - "target": "com.prisma.postgres#PostV1ConnectionsResponseDataEndpointsPooled" - }, - "accelerate": { - "target": "com.prisma.postgres#PostV1ConnectionsResponseDataEndpointsAccelerate" + "data": { + "target": "com.prisma.postgres#PostV1BucketsByBucketIdKeysResponseData", + "traits": { + "smithy.api#required": {} + } } }, - "traits": {} + "traits": { + "smithy.api#output": {} + } }, - "com.prisma.postgres#PostV1ConnectionsResponseDataDirectConnection": { + "com.prisma.postgres#PostV1BucketsByBucketIdKeys": { + "type": "operation", + "input": { + "target": "com.prisma.postgres#PostV1BucketsByBucketIdKeysRequest" + }, + "output": { + "target": "com.prisma.postgres#PostV1BucketsByBucketIdKeysResponse" + }, + "errors": [ + { + "target": "com.prisma.postgres#BadRequest" + }, + { + "target": "com.prisma.postgres#NotFound" + } + ], + "traits": { + "smithy.api#http": { + "method": "POST", + "uri": "/v1/buckets/{bucketId}/keys", + "code": 200 + }, + "smithy.api#documentation": "Create bucket key\n\nCreates a new access key for the given bucket. The `secretAccessKey` field is returned exactly once in this response and is never stored — copy it immediately." + } + }, + "com.prisma.postgres#DeleteV1BucketsByBucketIdKeysByKeyIdRequest": { "type": "structure", "members": { - "host": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {} - } - }, - "pass": { + "bucketId": { "target": "smithy.api#String", "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "user": { + "keyId": { "target": "smithy.api#String", "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead." + "smithy.api#input": {} } }, - "com.prisma.postgres#PostV1ConnectionsResponseDataDatabase": { - "type": "structure", + "com.prisma.postgres#DeleteV1BucketsByBucketIdKeysByKeyId": { + "type": "operation", + "input": { + "target": "com.prisma.postgres#DeleteV1BucketsByBucketIdKeysByKeyIdRequest" + }, + "output": { + "target": "smithy.api#Unit" + }, + "errors": [ + { + "target": "com.prisma.postgres#NotFound" + } + ], + "traits": { + "smithy.api#http": { + "method": "DELETE", + "uri": "/v1/buckets/{bucketId}/keys/{keyId}", + "code": 200 + }, + "smithy.api#documentation": "Delete bucket key\n\nRevokes and deletes the bucket key with the given ID." + } + }, + "com.prisma.postgres#GetV1BuildsRequestState": { + "type": "enum", "members": { - "id": { - "target": "smithy.api#String", + "PENDING": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "pending" } }, - "url": { - "target": "smithy.api#String", + "RUNNING": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "running" } }, - "name": { - "target": "smithy.api#String", + "SUCCEEDED": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "succeeded" + } + }, + "FAILED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "failed" + } + }, + "CANCELLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "cancelled" } } }, "traits": {} }, - "com.prisma.postgres#PostV1ConnectionsResponseData": { + "com.prisma.postgres#GetV1BuildsRequest": { "type": "structure", "members": { - "id": { + "cursor": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {} + "smithy.api#httpQuery": "cursor" } }, - "type": { - "target": "smithy.api#String", + "limit": { + "target": "smithy.api#Double", "traits": { - "smithy.api#required": {} + "smithy.api#httpQuery": "limit" } }, - "url": { + "projectId": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {} + "smithy.api#httpQuery": "projectId" } }, - "name": { + "branchId": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {} + "smithy.api#httpQuery": "branchId" } }, - "createdAt": { - "target": "smithy.api#String", + "state": { + "target": "com.prisma.postgres#GetV1BuildsRequestState", "traits": { - "smithy.api#required": {} + "smithy.api#httpQuery": "state" } - }, - "kind": { - "target": "com.prisma.postgres#PostV1ConnectionsResponseDataKind", + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.prisma.postgres#GetV1BuildsResponseDataItemSource": { + "type": "enum", + "members": { + "WEBHOOK": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "webhook" } }, - "endpoints": { - "target": "com.prisma.postgres#PostV1ConnectionsResponseDataEndpoints", + "SETUP": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "setup" } }, - "connectionString": { - "target": "smithy.api#String", + "MANUAL": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#documentation": "Deprecated: use `endpoints.direct.connectionString` or `endpoints.pooled.connectionString` instead.", - "smithy.api#required": {}, - "smithy.api#sensitive": {} + "smithy.api#enumValue": "manual" } }, - "directConnection": { - "target": "com.prisma.postgres#PostV1ConnectionsResponseDataDirectConnection", + "CI": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead.", - "com.distilled.openapi#nullable": {} + "smithy.api#enumValue": "ci" } }, - "database": { - "target": "com.prisma.postgres#PostV1ConnectionsResponseDataDatabase", + "CLI": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "cli" } - }, - "host": { - "target": "smithy.api#String", + } + }, + "traits": {} + }, + "com.prisma.postgres#GetV1BuildsResponseDataItemState": { + "type": "enum", + "members": { + "PENDING": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead.", - "smithy.api#required": {}, - "com.distilled.openapi#nullable": {} + "smithy.api#enumValue": "pending" } }, - "pass": { - "target": "smithy.api#String", + "RUNNING": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#documentation": "Deprecated: use `endpoints.direct.connectionString` or `endpoints.pooled.connectionString` instead.", - "smithy.api#required": {}, - "com.distilled.openapi#nullable": {} + "smithy.api#enumValue": "running" } }, - "user": { - "target": "smithy.api#String", + "SUCCEEDED": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#documentation": "Deprecated: use `endpoints.direct.connectionString` or `endpoints.pooled.connectionString` instead.", - "smithy.api#required": {}, - "com.distilled.openapi#nullable": {} + "smithy.api#enumValue": "succeeded" } - } - }, - "traits": {} - }, - "com.prisma.postgres#PostV1ConnectionsResponse": { - "type": "structure", - "members": { - "data": { - "target": "com.prisma.postgres#PostV1ConnectionsResponseData", + }, + "FAILED": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "failed" } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.prisma.postgres#PostV1Connections": { - "type": "operation", - "input": { - "target": "com.prisma.postgres#PostV1ConnectionsRequest" - }, - "output": { - "target": "com.prisma.postgres#PostV1ConnectionsResponse" - }, - "errors": [ - { - "target": "com.prisma.postgres#NotFound" - }, - { - "target": "com.prisma.postgres#UnprocessableEntity" - } - ], - "traits": { - "smithy.api#http": { - "method": "POST", - "uri": "/v1/connections", - "code": 200 }, - "smithy.api#documentation": "Create connection\n\nCreates a new connection for the specified database." - } - }, - "com.prisma.postgres#GetV1ConnectionsByIdRequest": { - "type": "structure", - "members": { - "id": { - "target": "smithy.api#String", + "CANCELLED": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#httpLabel": {}, - "smithy.api#required": {} + "smithy.api#enumValue": "cancelled" } } }, - "traits": { - "smithy.api#input": {} - } + "traits": {} }, - "com.prisma.postgres#GetV1ConnectionsByIdResponseDataKind": { + "com.prisma.postgres#GetV1BuildsResponseDataItemPhase": { "type": "enum", "members": { - "POSTGRES": { + "QUEUED": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "postgres" + "smithy.api#enumValue": "queued" } }, - "ACCELERATE": { + "BUILD": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "accelerate" + "smithy.api#enumValue": "build" + } + }, + "DEPLOY": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "deploy" } } }, - "traits": {} + "traits": { + "smithy.api#documentation": "Null when nothing reported a phase; the platform never invents an observation it did not receive." + } }, - "com.prisma.postgres#GetV1ConnectionsByIdResponseDataEndpointsDirect": { + "com.prisma.postgres#GetV1BuildsResponseDataItem": { "type": "structure", "members": { - "host": { + "id": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "port": { - "target": "smithy.api#Double", + "source": { + "target": "com.prisma.postgres#GetV1BuildsResponseDataItemSource", "traits": { "smithy.api#required": {} } - } - }, - "traits": {} - }, - "com.prisma.postgres#GetV1ConnectionsByIdResponseDataEndpointsPooled": { - "type": "structure", - "members": { - "host": { - "target": "smithy.api#String", + }, + "state": { + "target": "com.prisma.postgres#GetV1BuildsResponseDataItemState", "traits": { "smithy.api#required": {} } }, - "port": { - "target": "smithy.api#Double", + "phase": { + "target": "com.prisma.postgres#GetV1BuildsResponseDataItemPhase", "traits": { - "smithy.api#required": {} - } - } - }, - "traits": {} - }, - "com.prisma.postgres#GetV1ConnectionsByIdResponseDataEndpointsAccelerate": { - "type": "structure", - "members": { - "host": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {} - } - }, - "port": { - "target": "smithy.api#Double", - "traits": { - "smithy.api#required": {} + "smithy.api#documentation": "Null when nothing reported a phase; the platform never invents an observation it did not receive.", + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} } - } - }, - "traits": {} - }, - "com.prisma.postgres#GetV1ConnectionsByIdResponseDataEndpoints": { - "type": "structure", - "members": { - "direct": { - "target": "com.prisma.postgres#GetV1ConnectionsByIdResponseDataEndpointsDirect" }, - "pooled": { - "target": "com.prisma.postgres#GetV1ConnectionsByIdResponseDataEndpointsPooled" - }, - "accelerate": { - "target": "com.prisma.postgres#GetV1ConnectionsByIdResponseDataEndpointsAccelerate" - } - }, - "traits": {} - }, - "com.prisma.postgres#GetV1ConnectionsByIdResponseDataDirectConnection": { - "type": "structure", - "members": { - "host": { + "commitSha": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "pass": { + "branchName": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "user": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead." - } - }, - "com.prisma.postgres#GetV1ConnectionsByIdResponseDataDatabase": { - "type": "structure", - "members": { - "id": { + "gitRepoId": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {} + "smithy.api#documentation": "Repository the build ran against. Set only when the workspace has a live link to it; a reported repository the platform does not know stays null.", + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} } }, - "url": { + "projectId": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {} + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} } }, - "name": { + "branchId": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {} + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} } - } - }, - "traits": {} - }, - "com.prisma.postgres#GetV1ConnectionsByIdResponseData": { - "type": "structure", - "members": { - "id": { + }, + "externalLogUrl": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {} + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} } }, - "type": { + "deployedUrl": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {} + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} } }, - "url": { + "errorMessage": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {} + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} } }, - "name": { + "failingStep": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {} + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} } }, "createdAt": { @@ -3932,287 +3677,298 @@ "smithy.api#required": {} } }, - "kind": { - "target": "com.prisma.postgres#GetV1ConnectionsByIdResponseDataKind", + "startedAt": { + "target": "smithy.api#String", "traits": { - "smithy.api#required": {} + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} } }, - "endpoints": { - "target": "com.prisma.postgres#GetV1ConnectionsByIdResponseDataEndpoints", + "finishedAt": { + "target": "smithy.api#String", "traits": { - "smithy.api#required": {} + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} } - }, - "directConnection": { - "target": "com.prisma.postgres#GetV1ConnectionsByIdResponseDataDirectConnection", + } + }, + "traits": {} + }, + "com.prisma.postgres#GetV1BuildsResponseDataList": { + "type": "list", + "member": { + "target": "com.prisma.postgres#GetV1BuildsResponseDataItem" + }, + "traits": {} + }, + "com.prisma.postgres#GetV1BuildsResponsePagination": { + "type": "structure", + "members": { + "nextCursor": { + "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead.", + "smithy.api#documentation": "Next cursor to continue pagination", + "smithy.api#required": {}, "com.distilled.openapi#nullable": {} } }, - "database": { - "target": "com.prisma.postgres#GetV1ConnectionsByIdResponseDataDatabase", + "hasMore": { + "target": "smithy.api#Boolean", "traits": { + "smithy.api#documentation": "Whether there are more items to paginate", "smithy.api#required": {} } } }, "traits": {} }, - "com.prisma.postgres#GetV1ConnectionsByIdResponse": { + "com.prisma.postgres#GetV1BuildsResponse": { "type": "structure", "members": { "data": { - "target": "com.prisma.postgres#GetV1ConnectionsByIdResponseData", + "target": "com.prisma.postgres#GetV1BuildsResponseDataList", "traits": { "smithy.api#required": {} } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.prisma.postgres#GetV1ConnectionsById": { - "type": "operation", - "input": { - "target": "com.prisma.postgres#GetV1ConnectionsByIdRequest" - }, - "output": { - "target": "com.prisma.postgres#GetV1ConnectionsByIdResponse" - }, - "errors": [ - { - "target": "com.prisma.postgres#NotFound" - }, - { - "target": "com.prisma.postgres#UnprocessableEntity" - } - ], - "traits": { - "smithy.api#http": { - "method": "GET", - "uri": "/v1/connections/{id}", - "code": 200 }, - "smithy.api#documentation": "Get connection\n\nReturns the connection with the given ID." - } - }, - "com.prisma.postgres#DeleteV1ConnectionsByIdRequest": { - "type": "structure", - "members": { - "id": { - "target": "smithy.api#String", + "pagination": { + "target": "com.prisma.postgres#GetV1BuildsResponsePagination", "traits": { - "smithy.api#httpLabel": {}, "smithy.api#required": {} } } }, "traits": { - "smithy.api#input": {} + "smithy.api#output": {} } }, - "com.prisma.postgres#DeleteV1ConnectionsById": { + "com.prisma.postgres#GetV1Builds": { "type": "operation", "input": { - "target": "com.prisma.postgres#DeleteV1ConnectionsByIdRequest" + "target": "com.prisma.postgres#GetV1BuildsRequest" }, "output": { - "target": "smithy.api#Unit" + "target": "com.prisma.postgres#GetV1BuildsResponse" }, "errors": [ { "target": "com.prisma.postgres#NotFound" - }, - { - "target": "com.prisma.postgres#UnprocessableEntity" } ], "traits": { "smithy.api#http": { - "method": "DELETE", - "uri": "/v1/connections/{id}", + "method": "GET", + "uri": "/v1/builds", "code": 200 }, - "smithy.api#documentation": "Delete connection\n\nDeletes the connection with the given ID." - } - }, - "com.prisma.postgres#PostV1ConnectionsByIdRotateRequest": { - "type": "structure", - "members": { - "id": { - "target": "smithy.api#String", - "traits": { - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} + "smithy.api#documentation": "List builds\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nLists the builds of the caller's workspace, newest first, filtered by project, branch, or state. `cursor` is opaque: pass back the `nextCursor` the previous page returned." } }, - "com.prisma.postgres#PostV1ConnectionsByIdRotateResponseDataKind": { + "com.prisma.postgres#PostV1BuildsRequestSource": { "type": "enum", "members": { - "POSTGRES": { + "CI": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "postgres" + "smithy.api#enumValue": "ci" } }, - "ACCELERATE": { + "CLI": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "accelerate" + "smithy.api#enumValue": "cli" } } }, - "traits": {} + "traits": { + "smithy.api#documentation": "`ci` for a build reported from a CI run, `cli` for a deploy run directly by a human or agent." + } }, - "com.prisma.postgres#PostV1ConnectionsByIdRotateResponseDataEndpointsDirect": { + "com.prisma.postgres#PostV1BuildsRequestRunIdentity": { "type": "structure", "members": { - "host": { + "provider": { "target": "smithy.api#String", "traits": { + "smithy.api#documentation": "CI provider the run identity belongs to.", "smithy.api#required": {} } }, - "port": { - "target": "smithy.api#Double", + "repositoryId": { + "target": "smithy.api#String", "traits": { + "smithy.api#documentation": "Provider's repository id (for GitHub, the numeric repo id).", "smithy.api#required": {} } }, - "connectionString": { + "runId": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {}, - "smithy.api#sensitive": {} + "smithy.api#documentation": "Provider's workflow-run id.", + "smithy.api#required": {} + } + }, + "runAttempt": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#documentation": "Attempt number of the run; a re-run is a separate build.", + "smithy.api#required": {} } } }, - "traits": {} + "traits": { + "smithy.api#documentation": "Identifies the CI run. Supplying it makes creation idempotent — a repeat call for the same run returns the build that already exists. Omit it for builds with no run to name, such as a deploy from a laptop, where every call creates a new build." + } }, - "com.prisma.postgres#PostV1ConnectionsByIdRotateResponseDataEndpointsPooled": { + "com.prisma.postgres#PostV1BuildsRequest": { "type": "structure", "members": { - "host": { - "target": "smithy.api#String", + "source": { + "target": "com.prisma.postgres#PostV1BuildsRequestSource", "traits": { + "smithy.api#documentation": "`ci` for a build reported from a CI run, `cli` for a deploy run directly by a human or agent.", "smithy.api#required": {} } }, - "port": { - "target": "smithy.api#Double", + "commitSha": { + "target": "smithy.api#String", "traits": { + "smithy.api#documentation": "Commit the build ran on.", "smithy.api#required": {} } }, - "connectionString": { + "branchName": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {}, - "smithy.api#sensitive": {} + "smithy.api#documentation": "Git branch name.", + "smithy.api#required": {} } - } - }, - "traits": {} - }, - "com.prisma.postgres#PostV1ConnectionsByIdRotateResponseDataEndpointsAccelerate": { - "type": "structure", - "members": { - "host": { - "target": "smithy.api#String", + }, + "runIdentity": { + "target": "com.prisma.postgres#PostV1BuildsRequestRunIdentity", "traits": { - "smithy.api#required": {} + "smithy.api#documentation": "Identifies the CI run. Supplying it makes creation idempotent — a repeat call for the same run returns the build that already exists. Omit it for builds with no run to name, such as a deploy from a laptop, where every call creates a new build." } }, - "port": { - "target": "smithy.api#Double", + "externalLogUrl": { + "target": "smithy.api#String", "traits": { - "smithy.api#required": {} + "smithy.api#documentation": "Link to the run's logs in the reporter's own system." } }, - "connectionString": { + "projectId": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {}, - "smithy.api#sensitive": {} + "smithy.api#documentation": "Project the build targets, when it exists. A build may be reported before its project does." } + }, + "branchId": { + "target": "smithy.api#String" } }, - "traits": {} + "traits": { + "smithy.api#input": {} + } }, - "com.prisma.postgres#PostV1ConnectionsByIdRotateResponseDataEndpoints": { - "type": "structure", + "com.prisma.postgres#PostV1BuildsResponseDataSource": { + "type": "enum", "members": { - "direct": { - "target": "com.prisma.postgres#PostV1ConnectionsByIdRotateResponseDataEndpointsDirect" + "WEBHOOK": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "webhook" + } }, - "pooled": { - "target": "com.prisma.postgres#PostV1ConnectionsByIdRotateResponseDataEndpointsPooled" + "SETUP": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "setup" + } }, - "accelerate": { - "target": "com.prisma.postgres#PostV1ConnectionsByIdRotateResponseDataEndpointsAccelerate" + "MANUAL": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "manual" + } + }, + "CI": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ci" + } + }, + "CLI": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "cli" + } } }, "traits": {} }, - "com.prisma.postgres#PostV1ConnectionsByIdRotateResponseDataDirectConnection": { - "type": "structure", + "com.prisma.postgres#PostV1BuildsResponseDataState": { + "type": "enum", "members": { - "host": { - "target": "smithy.api#String", + "PENDING": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "pending" } }, - "pass": { - "target": "smithy.api#String", + "RUNNING": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "running" } }, - "user": { - "target": "smithy.api#String", + "SUCCEEDED": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "succeeded" + } + }, + "FAILED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "failed" + } + }, + "CANCELLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "cancelled" } } }, - "traits": { - "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead." - } + "traits": {} }, - "com.prisma.postgres#PostV1ConnectionsByIdRotateResponseDataDatabase": { - "type": "structure", + "com.prisma.postgres#PostV1BuildsResponseDataPhase": { + "type": "enum", "members": { - "id": { - "target": "smithy.api#String", + "QUEUED": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "queued" } }, - "url": { - "target": "smithy.api#String", + "BUILD": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "build" } }, - "name": { - "target": "smithy.api#String", + "DEPLOY": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "deploy" } } }, - "traits": {} + "traits": { + "smithy.api#documentation": "Null when nothing reported a phase; the platform never invents an observation it did not receive." + } }, - "com.prisma.postgres#PostV1ConnectionsByIdRotateResponseData": { + "com.prisma.postgres#PostV1BuildsResponseData": { "type": "structure", "members": { "id": { @@ -4221,83 +3977,104 @@ "smithy.api#required": {} } }, - "type": { - "target": "smithy.api#String", + "source": { + "target": "com.prisma.postgres#PostV1BuildsResponseDataSource", "traits": { "smithy.api#required": {} } }, - "url": { - "target": "smithy.api#String", + "state": { + "target": "com.prisma.postgres#PostV1BuildsResponseDataState", "traits": { "smithy.api#required": {} } }, - "name": { + "phase": { + "target": "com.prisma.postgres#PostV1BuildsResponseDataPhase", + "traits": { + "smithy.api#documentation": "Null when nothing reported a phase; the platform never invents an observation it did not receive.", + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} + } + }, + "commitSha": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "createdAt": { + "branchName": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "kind": { - "target": "com.prisma.postgres#PostV1ConnectionsByIdRotateResponseDataKind", + "gitRepoId": { + "target": "smithy.api#String", "traits": { - "smithy.api#required": {} + "smithy.api#documentation": "Repository the build ran against. Set only when the workspace has a live link to it; a reported repository the platform does not know stays null.", + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} } }, - "endpoints": { - "target": "com.prisma.postgres#PostV1ConnectionsByIdRotateResponseDataEndpoints", + "projectId": { + "target": "smithy.api#String", "traits": { - "smithy.api#required": {} + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} } }, - "connectionString": { + "branchId": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "Deprecated: use `endpoints.direct.connectionString` or `endpoints.pooled.connectionString` instead.", "smithy.api#required": {}, - "smithy.api#sensitive": {} + "com.distilled.openapi#nullable": {} } }, - "directConnection": { - "target": "com.prisma.postgres#PostV1ConnectionsByIdRotateResponseDataDirectConnection", + "externalLogUrl": { + "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead.", + "smithy.api#required": {}, "com.distilled.openapi#nullable": {} } }, - "database": { - "target": "com.prisma.postgres#PostV1ConnectionsByIdRotateResponseDataDatabase", + "deployedUrl": { + "target": "smithy.api#String", "traits": { - "smithy.api#required": {} + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} } }, - "host": { + "errorMessage": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead.", "smithy.api#required": {}, "com.distilled.openapi#nullable": {} } }, - "pass": { + "failingStep": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "Deprecated: use `endpoints.direct.connectionString` or `endpoints.pooled.connectionString` instead.", "smithy.api#required": {}, "com.distilled.openapi#nullable": {} } }, - "user": { + "createdAt": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "startedAt": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} + } + }, + "finishedAt": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "Deprecated: use `endpoints.direct.connectionString` or `endpoints.pooled.connectionString` instead.", "smithy.api#required": {}, "com.distilled.openapi#nullable": {} } @@ -4305,11 +4082,11 @@ }, "traits": {} }, - "com.prisma.postgres#PostV1ConnectionsByIdRotateResponse": { + "com.prisma.postgres#PostV1BuildsResponse": { "type": "structure", "members": { "data": { - "target": "com.prisma.postgres#PostV1ConnectionsByIdRotateResponseData", + "target": "com.prisma.postgres#PostV1BuildsResponseData", "traits": { "smithy.api#required": {} } @@ -4319,13 +4096,13 @@ "smithy.api#output": {} } }, - "com.prisma.postgres#PostV1ConnectionsByIdRotate": { + "com.prisma.postgres#PostV1Builds": { "type": "operation", "input": { - "target": "com.prisma.postgres#PostV1ConnectionsByIdRotateRequest" + "target": "com.prisma.postgres#PostV1BuildsRequest" }, "output": { - "target": "com.prisma.postgres#PostV1ConnectionsByIdRotateResponse" + "target": "com.prisma.postgres#PostV1BuildsResponse" }, "errors": [ { @@ -4335,209 +4112,226 @@ "traits": { "smithy.api#http": { "method": "POST", - "uri": "/v1/connections/{id}/rotate", + "uri": "/v1/builds", "code": 200 }, - "smithy.api#documentation": "Rotate connection credentials\n\nGenerates new credentials for the connection with the given ID. Revocation of the previous credentials is best-effort." + "smithy.api#documentation": "Report a build\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nRecords a build any deploy tool is running — a CI workflow, a deploy script, or Composer from a laptop. The workspace comes from the token, never from the body, which is what lets a build be reported before the project it will create exists. Supplying `runIdentity` makes the call idempotent: a repeat for the same run returns the build already recorded rather than a second one. The response is the same either way; a caller cannot tell whether it created the build or joined one.\n\nA build reported with no `runIdentity` has no dedup key, so a client that retries a lost response creates a second build. Supply a `runIdentity` whenever the run has one." } }, - "com.prisma.postgres#GetV1DatabasesRequest": { + "com.prisma.postgres#GetV1BuildsByBuildIdRequest": { "type": "structure", "members": { - "cursor": { + "buildId": { "target": "smithy.api#String", "traits": { - "smithy.api#httpQuery": "cursor" + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.prisma.postgres#GetV1BuildsByBuildIdResponseDataSource": { + "type": "enum", + "members": { + "WEBHOOK": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "webhook" } }, - "limit": { - "target": "smithy.api#Double", + "SETUP": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#httpQuery": "limit" + "smithy.api#enumValue": "setup" } }, - "projectId": { - "target": "smithy.api#String", + "MANUAL": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#httpQuery": "projectId" + "smithy.api#enumValue": "manual" } }, - "branchId": { - "target": "smithy.api#String", + "CI": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#httpQuery": "branchId" + "smithy.api#enumValue": "ci" } }, - "branchGitName": { - "target": "smithy.api#String", + "CLI": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#httpQuery": "branchGitName" + "smithy.api#enumValue": "cli" } } }, - "traits": { - "smithy.api#input": {} - } + "traits": {} }, - "com.prisma.postgres#GetV1DatabasesResponseDataItemStatus": { + "com.prisma.postgres#GetV1BuildsByBuildIdResponseDataState": { "type": "enum", "members": { - "FAILURE": { + "PENDING": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "failure" + "smithy.api#enumValue": "pending" } }, - "PROVISIONING": { + "RUNNING": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "provisioning" + "smithy.api#enumValue": "running" } }, - "READY": { + "SUCCEEDED": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "ready" + "smithy.api#enumValue": "succeeded" } }, - "RECOVERING": { + "FAILED": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "recovering" + "smithy.api#enumValue": "failed" + } + }, + "CANCELLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "cancelled" } } }, "traits": {} }, - "com.prisma.postgres#GetV1DatabasesResponseDataItemConnectionsItemKind": { + "com.prisma.postgres#GetV1BuildsByBuildIdResponseDataPhase": { "type": "enum", "members": { - "POSTGRES": { + "QUEUED": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "postgres" + "smithy.api#enumValue": "queued" } }, - "ACCELERATE": { + "BUILD": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "accelerate" + "smithy.api#enumValue": "build" + } + }, + "DEPLOY": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "deploy" } } }, - "traits": {} + "traits": { + "smithy.api#documentation": "Null when nothing reported a phase; the platform never invents an observation it did not receive." + } }, - "com.prisma.postgres#GetV1DatabasesResponseDataItemConnectionsItemEndpointsDirect": { - "type": "structure", + "com.prisma.postgres#GetV1BuildsByBuildIdResponseDataResourcesItemResourceType": { + "type": "enum", "members": { - "host": { - "target": "smithy.api#String", + "PROJECT": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "project" } }, - "port": { - "target": "smithy.api#Double", + "BRANCH": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "branch" } - } - }, - "traits": {} - }, - "com.prisma.postgres#GetV1DatabasesResponseDataItemConnectionsItemEndpointsPooled": { - "type": "structure", - "members": { - "host": { - "target": "smithy.api#String", + }, + "DATABASE": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "database" } }, - "port": { - "target": "smithy.api#Double", + "APP": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "app" } - } - }, - "traits": {} - }, - "com.prisma.postgres#GetV1DatabasesResponseDataItemConnectionsItemEndpointsAccelerate": { - "type": "structure", - "members": { - "host": { - "target": "smithy.api#String", + }, + "DEPLOYMENT": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "deployment" } }, - "port": { - "target": "smithy.api#Double", + "BUCKET": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "bucket" } - } - }, - "traits": {} - }, - "com.prisma.postgres#GetV1DatabasesResponseDataItemConnectionsItemEndpoints": { - "type": "structure", - "members": { - "direct": { - "target": "com.prisma.postgres#GetV1DatabasesResponseDataItemConnectionsItemEndpointsDirect" }, - "pooled": { - "target": "com.prisma.postgres#GetV1DatabasesResponseDataItemConnectionsItemEndpointsPooled" + "SERVICE_KEY": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "service_key" + } }, - "accelerate": { - "target": "com.prisma.postgres#GetV1DatabasesResponseDataItemConnectionsItemEndpointsAccelerate" + "CONFIG_VARIABLE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "config_variable" + } } }, "traits": {} }, - "com.prisma.postgres#GetV1DatabasesResponseDataItemConnectionsItemDirectConnection": { - "type": "structure", + "com.prisma.postgres#GetV1BuildsByBuildIdResponseDataResourcesItemAction": { + "type": "enum", "members": { - "host": { - "target": "smithy.api#String", + "CREATED": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "created" } }, - "pass": { - "target": "smithy.api#String", + "ACTED_ON": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "acted_on" } }, - "user": { - "target": "smithy.api#String", + "DELETED": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "deleted" } } }, - "traits": { - "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead." - } + "traits": {} }, - "com.prisma.postgres#GetV1DatabasesResponseDataItemConnectionsItemDatabase": { + "com.prisma.postgres#GetV1BuildsByBuildIdResponseDataResourcesItem": { "type": "structure", "members": { - "id": { - "target": "smithy.api#String", + "resourceType": { + "target": "com.prisma.postgres#GetV1BuildsByBuildIdResponseDataResourcesItemResourceType", "traits": { "smithy.api#required": {} } }, - "url": { + "resourceId": { "target": "smithy.api#String", "traits": { + "smithy.api#documentation": "Prefixed id of the reported resource.", "smithy.api#required": {} } }, - "name": { + "action": { + "target": "com.prisma.postgres#GetV1BuildsByBuildIdResponseDataResourcesItemAction", + "traits": { + "smithy.api#required": {} + } + }, + "createdAt": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} @@ -4546,7 +4340,14 @@ }, "traits": {} }, - "com.prisma.postgres#GetV1DatabasesResponseDataItemConnectionsItem": { + "com.prisma.postgres#GetV1BuildsByBuildIdResponseDataResourcesList": { + "type": "list", + "member": { + "target": "com.prisma.postgres#GetV1BuildsByBuildIdResponseDataResourcesItem" + }, + "traits": {} + }, + "com.prisma.postgres#GetV1BuildsByBuildIdResponseData": { "type": "structure", "members": { "id": { @@ -4555,100 +4356,110 @@ "smithy.api#required": {} } }, - "type": { - "target": "smithy.api#String", + "source": { + "target": "com.prisma.postgres#GetV1BuildsByBuildIdResponseDataSource", "traits": { "smithy.api#required": {} } }, - "url": { - "target": "smithy.api#String", + "state": { + "target": "com.prisma.postgres#GetV1BuildsByBuildIdResponseDataState", "traits": { "smithy.api#required": {} } }, - "name": { + "phase": { + "target": "com.prisma.postgres#GetV1BuildsByBuildIdResponseDataPhase", + "traits": { + "smithy.api#documentation": "Null when nothing reported a phase; the platform never invents an observation it did not receive.", + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} + } + }, + "commitSha": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "createdAt": { + "branchName": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "kind": { - "target": "com.prisma.postgres#GetV1DatabasesResponseDataItemConnectionsItemKind", + "gitRepoId": { + "target": "smithy.api#String", "traits": { - "smithy.api#required": {} + "smithy.api#documentation": "Repository the build ran against. Set only when the workspace has a live link to it; a reported repository the platform does not know stays null.", + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} } }, - "endpoints": { - "target": "com.prisma.postgres#GetV1DatabasesResponseDataItemConnectionsItemEndpoints", + "projectId": { + "target": "smithy.api#String", "traits": { - "smithy.api#required": {} + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} } }, - "directConnection": { - "target": "com.prisma.postgres#GetV1DatabasesResponseDataItemConnectionsItemDirectConnection", + "branchId": { + "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead.", + "smithy.api#required": {}, "com.distilled.openapi#nullable": {} } }, - "database": { - "target": "com.prisma.postgres#GetV1DatabasesResponseDataItemConnectionsItemDatabase", + "externalLogUrl": { + "target": "smithy.api#String", "traits": { - "smithy.api#required": {} + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} } - } - }, - "traits": {} - }, - "com.prisma.postgres#GetV1DatabasesResponseDataItemConnectionsList": { - "type": "list", - "member": { - "target": "com.prisma.postgres#GetV1DatabasesResponseDataItemConnectionsItem" - }, - "traits": {} - }, - "com.prisma.postgres#GetV1DatabasesResponseDataItemProject": { - "type": "structure", - "members": { - "id": { + }, + "deployedUrl": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {} + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} } }, - "url": { + "errorMessage": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {} + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} } }, - "name": { + "failingStep": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {} + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} } - } - }, - "traits": {} - }, - "com.prisma.postgres#GetV1DatabasesResponseDataItemRegion": { - "type": "structure", - "members": { - "id": { + }, + "createdAt": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "name": { + "startedAt": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} + } + }, + "finishedAt": { "target": "smithy.api#String", + "traits": { + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} + } + }, + "resources": { + "target": "com.prisma.postgres#GetV1BuildsByBuildIdResponseDataResourcesList", "traits": { "smithy.api#required": {} } @@ -4656,149 +4467,307 @@ }, "traits": {} }, - "com.prisma.postgres#GetV1DatabasesResponseDataItemSourceCase0": { + "com.prisma.postgres#GetV1BuildsByBuildIdResponse": { "type": "structure", "members": { - "type": { - "target": "smithy.api#String", + "data": { + "target": "com.prisma.postgres#GetV1BuildsByBuildIdResponseData", "traits": { "smithy.api#required": {} } } }, - "traits": {} + "traits": { + "smithy.api#output": {} + } }, - "com.prisma.postgres#GetV1DatabasesResponseDataItemSourceCase1": { - "type": "structure", + "com.prisma.postgres#GetV1BuildsByBuildId": { + "type": "operation", + "input": { + "target": "com.prisma.postgres#GetV1BuildsByBuildIdRequest" + }, + "output": { + "target": "com.prisma.postgres#GetV1BuildsByBuildIdResponse" + }, + "errors": [ + { + "target": "com.prisma.postgres#NotFound" + } + ], + "traits": { + "smithy.api#http": { + "method": "GET", + "uri": "/v1/builds/{buildId}", + "code": 200 + }, + "smithy.api#documentation": "Get a build\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nReturns one build with the resources it reported acting on." + } + }, + "com.prisma.postgres#PatchV1BuildsByBuildIdRequestPhase": { + "type": "enum", "members": { - "type": { - "target": "smithy.api#String", + "QUEUED": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "queued" } }, - "databaseId": { - "target": "smithy.api#String", + "BUILD": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "build" } }, - "backupId": { - "target": "smithy.api#String", + "DEPLOY": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#documentation": "ID of the backup to restore from", - "smithy.api#required": {} + "smithy.api#enumValue": "deploy" } } }, - "traits": {} + "traits": { + "smithy.api#documentation": "How far the run has got." + } }, - "com.prisma.postgres#GetV1DatabasesResponseDataItemSourceCase2": { - "type": "structure", + "com.prisma.postgres#PatchV1BuildsByBuildIdRequestState": { + "type": "enum", "members": { - "type": { - "target": "smithy.api#String", + "PENDING": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "pending" } }, - "databaseId": { - "target": "smithy.api#String", + "RUNNING": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "running" } - } - }, - "traits": {} - }, - "com.prisma.postgres#GetV1DatabasesResponseDataItemSource": { - "type": "union", - "members": { - "Case0": { - "target": "com.prisma.postgres#GetV1DatabasesResponseDataItemSourceCase0" }, - "Case1": { - "target": "com.prisma.postgres#GetV1DatabasesResponseDataItemSourceCase1" + "SUCCEEDED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "succeeded" + } }, - "Case2": { - "target": "com.prisma.postgres#GetV1DatabasesResponseDataItemSourceCase2" + "FAILED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "failed" + } + }, + "CANCELLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "cancelled" + } } }, "traits": {} }, - "com.prisma.postgres#GetV1DatabasesResponseDataItem": { + "com.prisma.postgres#PatchV1BuildsByBuildIdRequest": { "type": "structure", "members": { - "id": { + "buildId": { "target": "smithy.api#String", "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "type": { - "target": "smithy.api#String", + "phase": { + "target": "com.prisma.postgres#PatchV1BuildsByBuildIdRequestPhase", "traits": { - "smithy.api#required": {} + "smithy.api#documentation": "How far the run has got." } }, - "url": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {} - } + "state": { + "target": "com.prisma.postgres#PatchV1BuildsByBuildIdRequestState" }, - "name": { + "failingStep": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {} + "smithy.api#documentation": "Name of the step that failed, free text — step names come from build tooling the platform cannot validate." } }, - "status": { - "target": "com.prisma.postgres#GetV1DatabasesResponseDataItemStatus", - "traits": { - "smithy.api#required": {} - } + "errorMessage": { + "target": "smithy.api#String" }, - "createdAt": { + "externalLogUrl": { + "target": "smithy.api#String" + }, + "projectId": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {} + "smithy.api#documentation": "Project the build targets. Fill-only: a reporter that learns the project partway through a deploy may set it, but a value already recorded cannot be changed." } }, - "isDefault": { - "target": "smithy.api#Boolean", + "branchId": { + "target": "smithy.api#String", "traits": { - "smithy.api#required": {} + "smithy.api#documentation": "Branch the build targets. Fill-only, like `projectId`." } }, - "defaultConnectionId": { + "deployedUrl": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {}, - "com.distilled.openapi#nullable": {} + "smithy.api#documentation": "Where the deployed app can be reached. Fill-only, like the anchors." } - }, - "connections": { - "target": "com.prisma.postgres#GetV1DatabasesResponseDataItemConnectionsList", + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.prisma.postgres#PatchV1BuildsByBuildIdResponseDataSource": { + "type": "enum", + "members": { + "WEBHOOK": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "webhook" + } + }, + "SETUP": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "setup" + } + }, + "MANUAL": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "manual" + } + }, + "CI": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ci" + } + }, + "CLI": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "cli" + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PatchV1BuildsByBuildIdResponseDataState": { + "type": "enum", + "members": { + "PENDING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "pending" + } + }, + "RUNNING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "running" + } + }, + "SUCCEEDED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "succeeded" + } + }, + "FAILED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "failed" + } + }, + "CANCELLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "cancelled" + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PatchV1BuildsByBuildIdResponseDataPhase": { + "type": "enum", + "members": { + "QUEUED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "queued" + } + }, + "BUILD": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "build" + } + }, + "DEPLOY": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "deploy" + } + } + }, + "traits": { + "smithy.api#documentation": "Null when nothing reported a phase; the platform never invents an observation it did not receive." + } + }, + "com.prisma.postgres#PatchV1BuildsByBuildIdResponseData": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "project": { - "target": "com.prisma.postgres#GetV1DatabasesResponseDataItemProject", + "source": { + "target": "com.prisma.postgres#PatchV1BuildsByBuildIdResponseDataSource", "traits": { "smithy.api#required": {} } }, - "region": { - "target": "com.prisma.postgres#GetV1DatabasesResponseDataItemRegion", + "state": { + "target": "com.prisma.postgres#PatchV1BuildsByBuildIdResponseDataState", + "traits": { + "smithy.api#required": {} + } + }, + "phase": { + "target": "com.prisma.postgres#PatchV1BuildsByBuildIdResponseDataPhase", "traits": { + "smithy.api#documentation": "Null when nothing reported a phase; the platform never invents an observation it did not receive.", "smithy.api#required": {}, "com.distilled.openapi#nullable": {} } }, - "source": { - "target": "com.prisma.postgres#GetV1DatabasesResponseDataItemSource", + "commitSha": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "branchName": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "gitRepoId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "Repository the build ran against. Set only when the workspace has a live link to it; a reported repository the platform does not know stays null.", + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} + } + }, + "projectId": { + "target": "smithy.api#String", "traits": { "smithy.api#required": {}, "com.distilled.openapi#nullable": {} @@ -4810,49 +4779,63 @@ "smithy.api#required": {}, "com.distilled.openapi#nullable": {} } - } - }, - "traits": {} - }, - "com.prisma.postgres#GetV1DatabasesResponseDataList": { - "type": "list", - "member": { - "target": "com.prisma.postgres#GetV1DatabasesResponseDataItem" - }, - "traits": {} - }, - "com.prisma.postgres#GetV1DatabasesResponsePagination": { - "type": "structure", - "members": { - "nextCursor": { + }, + "externalLogUrl": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "Next cursor to continue pagination", "smithy.api#required": {}, "com.distilled.openapi#nullable": {} } }, - "hasMore": { - "target": "smithy.api#Boolean", + "deployedUrl": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} + } + }, + "errorMessage": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} + } + }, + "failingStep": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} + } + }, + "createdAt": { + "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "Whether there are more items to paginate", "smithy.api#required": {} } + }, + "startedAt": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} + } + }, + "finishedAt": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} + } } }, "traits": {} }, - "com.prisma.postgres#GetV1DatabasesResponse": { + "com.prisma.postgres#PatchV1BuildsByBuildIdResponse": { "type": "structure", "members": { "data": { - "target": "com.prisma.postgres#GetV1DatabasesResponseDataList", - "traits": { - "smithy.api#required": {} - } - }, - "pagination": { - "target": "com.prisma.postgres#GetV1DatabasesResponsePagination", + "target": "com.prisma.postgres#PatchV1BuildsByBuildIdResponseData", "traits": { "smithy.api#required": {} } @@ -4862,196 +4845,244 @@ "smithy.api#output": {} } }, - "com.prisma.postgres#GetV1Databases": { + "com.prisma.postgres#PatchV1BuildsByBuildId": { "type": "operation", "input": { - "target": "com.prisma.postgres#GetV1DatabasesRequest" + "target": "com.prisma.postgres#PatchV1BuildsByBuildIdRequest" }, "output": { - "target": "com.prisma.postgres#GetV1DatabasesResponse" + "target": "com.prisma.postgres#PatchV1BuildsByBuildIdResponse" }, "errors": [ { - "target": "com.prisma.postgres#Forbidden" + "target": "com.prisma.postgres#NotFound" + }, + { + "target": "com.prisma.postgres#Conflict" } ], "traits": { "smithy.api#http": { - "method": "GET", - "uri": "/v1/databases", + "method": "PATCH", + "uri": "/v1/builds/{buildId}", "code": 200 }, - "smithy.api#documentation": "List databases\n\nReturns all databases the token has access to. Optionally filter by project ID." + "smithy.api#documentation": "Update a build\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nRecords progress on a build. Any holder of the workspace token may patch any field — the webhook, the CI run and Composer each report the part of a deploy they can see, and the token is the boundary. Reaching `running` stamps `startedAt` and reaching a terminal state stamps `finishedAt`, both only if unset, so re-reporting the same state does not move the clock.\n\n`projectId`, `branchId` and `deployedUrl` are fill-only: a reporter that resolves them partway through a deploy sets them here, but a value already recorded cannot be changed and the attempt is a conflict. Sending the value already recorded is accepted and changes nothing. An anchor must belong to the caller's workspace and agree with the anchors the build already carries, so a branch from another project is refused." } }, - "com.prisma.postgres#PostV1DatabasesRequestRegion": { + "com.prisma.postgres#PutV1BuildsByBuildIdResourcesByResourceTypeByResourceIdRequestResourceType": { "type": "enum", "members": { - "US_EAST_1": { + "PROJECT": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "us-east-1" + "smithy.api#enumValue": "project" } }, - "US_WEST_1": { + "BRANCH": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "us-west-1" + "smithy.api#enumValue": "branch" } }, - "EU_WEST_3": { + "DATABASE": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "eu-west-3" + "smithy.api#enumValue": "database" } }, - "EU_CENTRAL_1": { + "APP": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "eu-central-1" + "smithy.api#enumValue": "app" } }, - "AP_NORTHEAST_1": { + "DEPLOYMENT": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "ap-northeast-1" + "smithy.api#enumValue": "deployment" } }, - "AP_SOUTHEAST_1": { + "BUCKET": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "ap-southeast-1" + "smithy.api#enumValue": "bucket" } }, - "INHERIT": { + "SERVICE_KEY": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "inherit" + "smithy.api#enumValue": "service_key" } - } - }, - "traits": { - "smithy.api#documentation": "Region for the database. Use \"inherit\" to use the project default database region." - } - }, - "com.prisma.postgres#PostV1DatabasesRequestSourceCase0": { - "type": "structure", - "members": { - "type": { - "target": "smithy.api#String", + }, + "CONFIG_VARIABLE": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "config_variable" } } }, "traits": {} }, - "com.prisma.postgres#PostV1DatabasesRequestSourceCase1": { - "type": "structure", + "com.prisma.postgres#PutV1BuildsByBuildIdResourcesByResourceTypeByResourceIdRequestAction": { + "type": "enum", "members": { - "type": { - "target": "smithy.api#String", + "CREATED": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "created" } }, - "databaseId": { - "target": "smithy.api#String", + "ACTED_ON": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#documentation": "ID of the database the backup belongs to", - "smithy.api#required": {} + "smithy.api#enumValue": "acted_on" } }, - "backupId": { - "target": "smithy.api#String", + "DELETED": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#documentation": "ID of the backup to restore from", - "smithy.api#required": {} + "smithy.api#enumValue": "deleted" } } }, - "traits": {} + "traits": { + "smithy.api#documentation": "The strongest effect the build had on the resource. Re-reporting is safe: a weaker action never overwrites a stronger one, so `created` survives a later `acted_on`." + } }, - "com.prisma.postgres#PostV1DatabasesRequestSourceCase2": { + "com.prisma.postgres#PutV1BuildsByBuildIdResourcesByResourceTypeByResourceIdRequest": { "type": "structure", "members": { - "type": { + "buildId": { "target": "smithy.api#String", "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "databaseId": { + "resourceType": { + "target": "com.prisma.postgres#PutV1BuildsByBuildIdResourcesByResourceTypeByResourceIdRequestResourceType", + "traits": { + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "resourceId": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "ID of the database to clone from", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "action": { + "target": "com.prisma.postgres#PutV1BuildsByBuildIdResourcesByResourceTypeByResourceIdRequestAction", + "traits": { + "smithy.api#documentation": "The strongest effect the build had on the resource. Re-reporting is safe: a weaker action never overwrites a stronger one, so `created` survives a later `acted_on`.", "smithy.api#required": {} } } }, - "traits": {} + "traits": { + "smithy.api#input": {} + } }, - "com.prisma.postgres#PostV1DatabasesRequestSource": { - "type": "union", - "members": { - "Case0": { - "target": "com.prisma.postgres#PostV1DatabasesRequestSourceCase0" - }, - "Case1": { - "target": "com.prisma.postgres#PostV1DatabasesRequestSourceCase1" - }, - "Case2": { - "target": "com.prisma.postgres#PostV1DatabasesRequestSourceCase2" - } + "com.prisma.postgres#PutV1BuildsByBuildIdResourcesByResourceTypeByResourceId": { + "type": "operation", + "input": { + "target": "com.prisma.postgres#PutV1BuildsByBuildIdResourcesByResourceTypeByResourceIdRequest" + }, + "output": { + "target": "smithy.api#Unit" }, + "errors": [ + { + "target": "com.prisma.postgres#NotFound" + } + ], "traits": { - "smithy.api#documentation": "Source to create the database from. Omit to create an empty database." + "smithy.api#http": { + "method": "PUT", + "uri": "/v1/builds/{buildId}/resources/{resourceType}/{resourceId}", + "code": 200 + }, + "smithy.api#documentation": "Report a resource a build acted on\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nRecords that the build created, acted on, or deleted a platform resource — the provenance a deploy run leaves behind. Idempotent: re-reporting the same resource updates the row rather than adding one, and never weakens the recorded action. The resource must belong to the caller's workspace, and must still be findable: a soft-deleted resource can be reported, but `project`, `database`, `service_key` and `config_variable` leave no row behind, so a build that deletes one must report it before deleting it. Reporting a deployment as `created` also attaches the deployment to the build and records the app it deployed into, both in the same transaction, because a deployment relates its build to that app whether or not the reporter says so." } }, - "com.prisma.postgres#PostV1DatabasesRequest": { - "type": "structure", + "com.prisma.postgres#GetV1BuildsByBuildIdLogsRequestFollow": { + "type": "enum", "members": { - "projectId": { - "target": "smithy.api#String", + "TRUE": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#documentation": "ID of the project to create the database in", - "smithy.api#required": {} + "smithy.api#enumValue": "true" } }, - "region": { - "target": "com.prisma.postgres#PostV1DatabasesRequestRegion", + "FALSE": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#documentation": "Region for the database. Use \"inherit\" to use the project default database region." + "smithy.api#enumValue": "false" } - }, - "name": { + } + }, + "traits": {} + }, + "com.prisma.postgres#GetV1BuildsByBuildIdLogsRequest": { + "type": "structure", + "members": { + "buildId": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "Display name for the database" - } - }, - "isDefault": { - "target": "smithy.api#Boolean", - "traits": { - "smithy.api#documentation": "Whether this is the default database" + "smithy.api#httpLabel": {}, + "smithy.api#required": {} } }, - "source": { - "target": "com.prisma.postgres#PostV1DatabasesRequestSource", + "follow": { + "target": "com.prisma.postgres#GetV1BuildsByBuildIdLogsRequestFollow", "traits": { - "smithy.api#documentation": "Source to create the database from. Omit to create an empty database." + "smithy.api#httpQuery": "follow" } }, - "branchId": { + "cursor": { "target": "smithy.api#String", "traits": { - "com.distilled.openapi#nullable": {} + "smithy.api#httpQuery": "cursor" } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.prisma.postgres#GetV1BuildsByBuildIdLogs": { + "type": "operation", + "input": { + "target": "com.prisma.postgres#GetV1BuildsByBuildIdLogsRequest" + }, + "output": { + "target": "smithy.api#Unit" + }, + "errors": [ + { + "target": "com.prisma.postgres#NotFound" + } + ], + "traits": { + "smithy.api#http": { + "method": "GET", + "uri": "/v1/builds/{buildId}/logs", + "code": 200 }, - "branchGitName": { + "smithy.api#documentation": "Stream build logs\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nStreams the full build log for a build as newline-delimited JSON (`application/x-ndjson`). Each line is a JSON object discriminated by `type`: `log` (a build output line) or `terminal` (end-of-stream marker with a `cursor` for resumption). The default is a finite dump that ends once the stream is drained; pass `follow=true` to keep the connection open for an in-flight build, and `cursor` to resume from a prior terminal cursor." + } + }, + "com.prisma.postgres#GetV1DomainsByDomainIdRequest": { + "type": "structure", + "members": { + "domainId": { "target": "smithy.api#String", "traits": { - "com.distilled.openapi#nullable": {} + "smithy.api#httpLabel": {}, + "smithy.api#required": {} } } }, @@ -5059,339 +5090,389 @@ "smithy.api#input": {} } }, - "com.prisma.postgres#PostV1DatabasesResponseDataStatus": { + "com.prisma.postgres#GetV1DomainsByDomainIdResponseDataStatus": { "type": "enum", "members": { - "FAILURE": { + "PENDING_DNS": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "failure" + "smithy.api#enumValue": "pending_dns" } }, - "PROVISIONING": { + "VERIFYING": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "provisioning" + "smithy.api#enumValue": "verifying" } }, - "READY": { + "VERIFIED_ROUTING_BLOCKED": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "ready" + "smithy.api#enumValue": "verified_routing_blocked" } }, - "RECOVERING": { + "PROVISIONING_TLS": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "recovering" + "smithy.api#enumValue": "provisioning_tls" } - } - }, - "traits": {} - }, - "com.prisma.postgres#PostV1DatabasesResponseDataConnectionsItemKind": { - "type": "enum", - "members": { - "POSTGRES": { + }, + "ACTIVE": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "postgres" + "smithy.api#enumValue": "active" } }, - "ACCELERATE": { + "FAILED": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "accelerate" + "smithy.api#enumValue": "failed" + } + }, + "REMOVING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "removing" } } }, "traits": {} }, - "com.prisma.postgres#PostV1DatabasesResponseDataConnectionsItemEndpointsDirect": { - "type": "structure", + "com.prisma.postgres#GetV1DomainsByDomainIdResponseDataFailureCategory": { + "type": "enum", "members": { - "host": { - "target": "smithy.api#String", + "DNS": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "dns" } }, - "port": { - "target": "smithy.api#Double", + "ACME": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "acme" } }, - "connectionString": { - "target": "smithy.api#String", + "STORAGE": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#sensitive": {} + "smithy.api#enumValue": "storage" + } + }, + "UNKNOWN": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "unknown" } } }, "traits": {} }, - "com.prisma.postgres#PostV1DatabasesResponseDataConnectionsItemEndpointsPooled": { + "com.prisma.postgres#GetV1DomainsByDomainIdResponseDataDnsRecordsItem": { "type": "structure", "members": { - "host": { + "type": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "port": { - "target": "smithy.api#Double", + "name": { + "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "connectionString": { + "value": { "target": "smithy.api#String", "traits": { - "smithy.api#sensitive": {} + "smithy.api#required": {} + } + }, + "ttl": { + "target": "smithy.api#Double", + "traits": { + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} } } }, "traits": {} }, - "com.prisma.postgres#PostV1DatabasesResponseDataConnectionsItemEndpointsAccelerate": { + "com.prisma.postgres#GetV1DomainsByDomainIdResponseDataDnsRecordsList": { + "type": "list", + "member": { + "target": "com.prisma.postgres#GetV1DomainsByDomainIdResponseDataDnsRecordsItem" + }, + "traits": {} + }, + "com.prisma.postgres#GetV1DomainsByDomainIdResponseData": { "type": "structure", "members": { - "host": { + "id": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "port": { - "target": "smithy.api#Double", + "type": { + "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "connectionString": { + "url": { "target": "smithy.api#String", "traits": { - "smithy.api#sensitive": {} + "smithy.api#required": {} } - } - }, - "traits": {} - }, - "com.prisma.postgres#PostV1DatabasesResponseDataConnectionsItemEndpoints": { - "type": "structure", - "members": { - "direct": { - "target": "com.prisma.postgres#PostV1DatabasesResponseDataConnectionsItemEndpointsDirect" - }, - "pooled": { - "target": "com.prisma.postgres#PostV1DatabasesResponseDataConnectionsItemEndpointsPooled" }, - "accelerate": { - "target": "com.prisma.postgres#PostV1DatabasesResponseDataConnectionsItemEndpointsAccelerate" - } - }, - "traits": {} - }, - "com.prisma.postgres#PostV1DatabasesResponseDataConnectionsItemDirectConnection": { - "type": "structure", - "members": { - "host": { + "hostname": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "pass": { + "appId": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "user": { + "computeServiceId": { "target": "smithy.api#String", "traits": { + "smithy.api#documentation": "Deprecated: use `appId` instead.", "smithy.api#required": {} } - } - }, - "traits": { - "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead." - } - }, - "com.prisma.postgres#PostV1DatabasesResponseDataConnectionsItemDatabase": { - "type": "structure", - "members": { - "id": { - "target": "smithy.api#String", + }, + "status": { + "target": "com.prisma.postgres#GetV1DomainsByDomainIdResponseDataStatus", "traits": { "smithy.api#required": {} } }, - "url": { + "foundryStatus": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "name": { + "failureReason": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {} - } - } - }, - "traits": {} - }, - "com.prisma.postgres#PostV1DatabasesResponseDataConnectionsItem": { - "type": "structure", - "members": { - "id": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {} + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} } }, - "type": { - "target": "smithy.api#String", + "failureCategory": { + "target": "com.prisma.postgres#GetV1DomainsByDomainIdResponseDataFailureCategory", "traits": { - "smithy.api#required": {} + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} } }, - "url": { + "certExpiresAt": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {} + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} } }, - "name": { + "createdAt": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "createdAt": { + "updatedAt": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "kind": { - "target": "com.prisma.postgres#PostV1DatabasesResponseDataConnectionsItemKind", + "dnsRecords": { + "target": "com.prisma.postgres#GetV1DomainsByDomainIdResponseDataDnsRecordsList", "traits": { "smithy.api#required": {} } - }, - "endpoints": { - "target": "com.prisma.postgres#PostV1DatabasesResponseDataConnectionsItemEndpoints", + } + }, + "traits": {} + }, + "com.prisma.postgres#GetV1DomainsByDomainIdResponse": { + "type": "structure", + "members": { + "data": { + "target": "com.prisma.postgres#GetV1DomainsByDomainIdResponseData", "traits": { "smithy.api#required": {} } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.prisma.postgres#GetV1DomainsByDomainId": { + "type": "operation", + "input": { + "target": "com.prisma.postgres#GetV1DomainsByDomainIdRequest" + }, + "output": { + "target": "com.prisma.postgres#GetV1DomainsByDomainIdResponse" + }, + "errors": [ + { + "target": "com.prisma.postgres#Forbidden" }, - "directConnection": { - "target": "com.prisma.postgres#PostV1DatabasesResponseDataConnectionsItemDirectConnection", - "traits": { - "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead.", - "com.distilled.openapi#nullable": {} - } + { + "target": "com.prisma.postgres#NotFound" + } + ], + "traits": { + "smithy.api#http": { + "method": "GET", + "uri": "/v1/domains/{domainId}", + "code": 200 }, - "database": { - "target": "com.prisma.postgres#PostV1DatabasesResponseDataConnectionsItemDatabase", + "smithy.api#documentation": "Get a custom domain\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nReturns details for a custom domain by id. Authorization is derived from the parent compute service's workspace." + } + }, + "com.prisma.postgres#DeleteV1DomainsByDomainIdRequest": { + "type": "structure", + "members": { + "domainId": { + "target": "smithy.api#String", "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } } }, - "traits": {} + "traits": { + "smithy.api#input": {} + } }, - "com.prisma.postgres#PostV1DatabasesResponseDataConnectionsList": { - "type": "list", - "member": { - "target": "com.prisma.postgres#PostV1DatabasesResponseDataConnectionsItem" + "com.prisma.postgres#DeleteV1DomainsByDomainId": { + "type": "operation", + "input": { + "target": "com.prisma.postgres#DeleteV1DomainsByDomainIdRequest" }, - "traits": {} + "output": { + "target": "smithy.api#Unit" + }, + "errors": [ + { + "target": "com.prisma.postgres#Forbidden" + }, + { + "target": "com.prisma.postgres#NotFound" + } + ], + "traits": { + "smithy.api#http": { + "method": "DELETE", + "uri": "/v1/domains/{domainId}", + "code": 200 + }, + "smithy.api#documentation": "Delete a custom domain\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nRemoves a custom domain binding. Authorization is derived from the parent compute service's workspace." + } }, - "com.prisma.postgres#PostV1DatabasesResponseDataProject": { + "com.prisma.postgres#PostV1DomainsByDomainIdRetryRequest": { "type": "structure", "members": { - "id": { + "domainId": { "target": "smithy.api#String", "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.prisma.postgres#PostV1DomainsByDomainIdRetryResponseDataStatus": { + "type": "enum", + "members": { + "PENDING_DNS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "pending_dns" + } }, - "url": { - "target": "smithy.api#String", + "VERIFYING": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "verifying" } }, - "name": { - "target": "smithy.api#String", + "VERIFIED_ROUTING_BLOCKED": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "verified_routing_blocked" } - } - }, - "traits": {} - }, - "com.prisma.postgres#PostV1DatabasesResponseDataRegion": { - "type": "structure", - "members": { - "id": { - "target": "smithy.api#String", + }, + "PROVISIONING_TLS": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "provisioning_tls" } }, - "name": { - "target": "smithy.api#String", + "ACTIVE": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "active" } - } - }, - "traits": {} - }, - "com.prisma.postgres#PostV1DatabasesResponseDataSourceCase0": { - "type": "structure", - "members": { - "type": { - "target": "smithy.api#String", + }, + "FAILED": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "failed" + } + }, + "REMOVING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "removing" } } }, "traits": {} }, - "com.prisma.postgres#PostV1DatabasesResponseDataSourceCase1": { - "type": "structure", + "com.prisma.postgres#PostV1DomainsByDomainIdRetryResponseDataFailureCategory": { + "type": "enum", "members": { - "type": { - "target": "smithy.api#String", + "DNS": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "dns" } }, - "databaseId": { - "target": "smithy.api#String", + "ACME": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "acme" } }, - "backupId": { - "target": "smithy.api#String", + "STORAGE": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#documentation": "ID of the backup to restore from", - "smithy.api#required": {} + "smithy.api#enumValue": "storage" + } + }, + "UNKNOWN": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "unknown" } } }, "traits": {} }, - "com.prisma.postgres#PostV1DatabasesResponseDataSourceCase2": { + "com.prisma.postgres#PostV1DomainsByDomainIdRetryResponseDataDnsRecordsItem": { "type": "structure", "members": { "type": { @@ -5400,31 +5481,36 @@ "smithy.api#required": {} } }, - "databaseId": { + "name": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "value": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } + }, + "ttl": { + "target": "smithy.api#Double", + "traits": { + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} + } } }, "traits": {} }, - "com.prisma.postgres#PostV1DatabasesResponseDataSource": { - "type": "union", - "members": { - "Case0": { - "target": "com.prisma.postgres#PostV1DatabasesResponseDataSourceCase0" - }, - "Case1": { - "target": "com.prisma.postgres#PostV1DatabasesResponseDataSourceCase1" - }, - "Case2": { - "target": "com.prisma.postgres#PostV1DatabasesResponseDataSourceCase2" - } + "com.prisma.postgres#PostV1DomainsByDomainIdRetryResponseDataDnsRecordsList": { + "type": "list", + "member": { + "target": "com.prisma.postgres#PostV1DomainsByDomainIdRetryResponseDataDnsRecordsItem" }, "traits": {} }, - "com.prisma.postgres#PostV1DatabasesResponseData": { + "com.prisma.postgres#PostV1DomainsByDomainIdRetryResponseData": { "type": "structure", "members": { "id": { @@ -5445,78 +5531,84 @@ "smithy.api#required": {} } }, - "name": { + "hostname": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "status": { - "target": "com.prisma.postgres#PostV1DatabasesResponseDataStatus", + "appId": { + "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "createdAt": { + "computeServiceId": { "target": "smithy.api#String", "traits": { + "smithy.api#documentation": "Deprecated: use `appId` instead.", "smithy.api#required": {} } }, - "isDefault": { - "target": "smithy.api#Boolean", + "status": { + "target": "com.prisma.postgres#PostV1DomainsByDomainIdRetryResponseDataStatus", "traits": { "smithy.api#required": {} } }, - "defaultConnectionId": { + "foundryStatus": { "target": "smithy.api#String", - "traits": { - "smithy.api#required": {}, - "com.distilled.openapi#nullable": {} - } - }, - "connections": { - "target": "com.prisma.postgres#PostV1DatabasesResponseDataConnectionsList", "traits": { "smithy.api#required": {} } }, - "project": { - "target": "com.prisma.postgres#PostV1DatabasesResponseDataProject", + "failureReason": { + "target": "smithy.api#String", "traits": { - "smithy.api#required": {} + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} } }, - "region": { - "target": "com.prisma.postgres#PostV1DatabasesResponseDataRegion", + "failureCategory": { + "target": "com.prisma.postgres#PostV1DomainsByDomainIdRetryResponseDataFailureCategory", "traits": { "smithy.api#required": {}, "com.distilled.openapi#nullable": {} } }, - "source": { - "target": "com.prisma.postgres#PostV1DatabasesResponseDataSource", + "certExpiresAt": { + "target": "smithy.api#String", "traits": { "smithy.api#required": {}, "com.distilled.openapi#nullable": {} } }, - "branchId": { + "createdAt": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {}, - "com.distilled.openapi#nullable": {} + "smithy.api#required": {} + } + }, + "updatedAt": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "dnsRecords": { + "target": "com.prisma.postgres#PostV1DomainsByDomainIdRetryResponseDataDnsRecordsList", + "traits": { + "smithy.api#required": {} } } }, "traits": {} }, - "com.prisma.postgres#PostV1DatabasesResponse": { + "com.prisma.postgres#PostV1DomainsByDomainIdRetryResponse": { "type": "structure", "members": { "data": { - "target": "com.prisma.postgres#PostV1DatabasesResponseData", + "target": "com.prisma.postgres#PostV1DomainsByDomainIdRetryResponseData", "traits": { "smithy.api#required": {} } @@ -5526,18 +5618,15 @@ "smithy.api#output": {} } }, - "com.prisma.postgres#PostV1Databases": { + "com.prisma.postgres#PostV1DomainsByDomainIdRetry": { "type": "operation", "input": { - "target": "com.prisma.postgres#PostV1DatabasesRequest" + "target": "com.prisma.postgres#PostV1DomainsByDomainIdRetryRequest" }, "output": { - "target": "com.prisma.postgres#PostV1DatabasesResponse" + "target": "com.prisma.postgres#PostV1DomainsByDomainIdRetryResponse" }, "errors": [ - { - "target": "com.prisma.postgres#BadRequest" - }, { "target": "com.prisma.postgres#Forbidden" }, @@ -5545,64 +5634,45 @@ "target": "com.prisma.postgres#NotFound" }, { - "target": "com.prisma.postgres#UnprocessableEntity" + "target": "com.prisma.postgres#Conflict" } ], "traits": { "smithy.api#http": { "method": "POST", - "uri": "/v1/databases", + "uri": "/v1/domains/{domainId}/retry", "code": 200 }, - "smithy.api#documentation": "Create database\n\nCreates a new database in the specified project." + "smithy.api#documentation": "Retry custom domain provisioning\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nRetries DNS verification and certificate issuance for a failed or pending domain. Returns 409 if the domain is not yet eligible for retry (e.g. still provisioning)." } }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdRequest": { + "com.prisma.postgres#GetV1ConnectionsRequest": { "type": "structure", "members": { - "databaseId": { + "cursor": { "target": "smithy.api#String", "traits": { - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataStatus": { - "type": "enum", - "members": { - "FAILURE": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "failure" - } - }, - "PROVISIONING": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "provisioning" + "smithy.api#httpQuery": "cursor" } }, - "READY": { - "target": "smithy.api#Unit", + "limit": { + "target": "smithy.api#Double", "traits": { - "smithy.api#enumValue": "ready" + "smithy.api#httpQuery": "limit" } }, - "RECOVERING": { - "target": "smithy.api#Unit", + "databaseId": { + "target": "smithy.api#String", "traits": { - "smithy.api#enumValue": "recovering" + "smithy.api#httpQuery": "databaseId" } } }, - "traits": {} + "traits": { + "smithy.api#input": {} + } }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataConnectionsItemKind": { + "com.prisma.postgres#GetV1ConnectionsResponseDataItemKind": { "type": "enum", "members": { "POSTGRES": { @@ -5620,7 +5690,7 @@ }, "traits": {} }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataConnectionsItemEndpointsDirect": { + "com.prisma.postgres#GetV1ConnectionsResponseDataItemEndpointsDirect": { "type": "structure", "members": { "host": { @@ -5638,7 +5708,7 @@ }, "traits": {} }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataConnectionsItemEndpointsPooled": { + "com.prisma.postgres#GetV1ConnectionsResponseDataItemEndpointsPooled": { "type": "structure", "members": { "host": { @@ -5656,7 +5726,7 @@ }, "traits": {} }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataConnectionsItemEndpointsAccelerate": { + "com.prisma.postgres#GetV1ConnectionsResponseDataItemEndpointsAccelerate": { "type": "structure", "members": { "host": { @@ -5674,22 +5744,22 @@ }, "traits": {} }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataConnectionsItemEndpoints": { + "com.prisma.postgres#GetV1ConnectionsResponseDataItemEndpoints": { "type": "structure", "members": { "direct": { - "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataConnectionsItemEndpointsDirect" + "target": "com.prisma.postgres#GetV1ConnectionsResponseDataItemEndpointsDirect" }, "pooled": { - "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataConnectionsItemEndpointsPooled" + "target": "com.prisma.postgres#GetV1ConnectionsResponseDataItemEndpointsPooled" }, "accelerate": { - "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataConnectionsItemEndpointsAccelerate" + "target": "com.prisma.postgres#GetV1ConnectionsResponseDataItemEndpointsAccelerate" } }, "traits": {} }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataConnectionsItemDirectConnection": { + "com.prisma.postgres#GetV1ConnectionsResponseDataItemDirectConnection": { "type": "structure", "members": { "host": { @@ -5715,7 +5785,7 @@ "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead." } }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataConnectionsItemDatabase": { + "com.prisma.postgres#GetV1ConnectionsResponseDataItemDatabase": { "type": "structure", "members": { "id": { @@ -5739,7 +5809,7 @@ }, "traits": {} }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataConnectionsItem": { + "com.prisma.postgres#GetV1ConnectionsResponseDataItem": { "type": "structure", "members": { "id": { @@ -5773,26 +5843,26 @@ } }, "kind": { - "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataConnectionsItemKind", + "target": "com.prisma.postgres#GetV1ConnectionsResponseDataItemKind", "traits": { "smithy.api#required": {} } }, "endpoints": { - "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataConnectionsItemEndpoints", + "target": "com.prisma.postgres#GetV1ConnectionsResponseDataItemEndpoints", "traits": { "smithy.api#required": {} } }, "directConnection": { - "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataConnectionsItemDirectConnection", + "target": "com.prisma.postgres#GetV1ConnectionsResponseDataItemDirectConnection", "traits": { "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead.", "com.distilled.openapi#nullable": {} } }, "database": { - "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataConnectionsItemDatabase", + "target": "com.prisma.postgres#GetV1ConnectionsResponseDataItemDatabase", "traits": { "smithy.api#required": {} } @@ -5800,41 +5870,75 @@ }, "traits": {} }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataConnectionsList": { + "com.prisma.postgres#GetV1ConnectionsResponseDataList": { "type": "list", "member": { - "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataConnectionsItem" + "target": "com.prisma.postgres#GetV1ConnectionsResponseDataItem" }, "traits": {} }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataProject": { + "com.prisma.postgres#GetV1ConnectionsResponsePagination": { "type": "structure", "members": { - "id": { + "nextCursor": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {} + "smithy.api#documentation": "Next cursor to continue pagination", + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} } }, - "url": { - "target": "smithy.api#String", + "hasMore": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "Whether there are more items to paginate", + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#GetV1ConnectionsResponse": { + "type": "structure", + "members": { + "data": { + "target": "com.prisma.postgres#GetV1ConnectionsResponseDataList", "traits": { "smithy.api#required": {} } }, - "name": { - "target": "smithy.api#String", + "pagination": { + "target": "com.prisma.postgres#GetV1ConnectionsResponsePagination", "traits": { "smithy.api#required": {} } } }, - "traits": {} + "traits": { + "smithy.api#output": {} + } }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataRegion": { + "com.prisma.postgres#GetV1Connections": { + "type": "operation", + "input": { + "target": "com.prisma.postgres#GetV1ConnectionsRequest" + }, + "output": { + "target": "com.prisma.postgres#GetV1ConnectionsResponse" + }, + "traits": { + "smithy.api#http": { + "method": "GET", + "uri": "/v1/connections", + "code": 200 + }, + "smithy.api#documentation": "List connections\n\nReturns all connections the actor has access to, with optional database filter." + } + }, + "com.prisma.postgres#PostV1ConnectionsRequest": { "type": "structure", "members": { - "id": { + "databaseId": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} @@ -5847,88 +5951,148 @@ } } }, - "traits": {} + "traits": { + "smithy.api#input": {} + } }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataSourceCase0": { - "type": "structure", + "com.prisma.postgres#PostV1ConnectionsResponseDataKind": { + "type": "enum", "members": { - "type": { - "target": "smithy.api#String", + "POSTGRES": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "postgres" + } + }, + "ACCELERATE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "accelerate" } } }, "traits": {} }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataSourceCase1": { + "com.prisma.postgres#PostV1ConnectionsResponseDataEndpointsDirect": { "type": "structure", "members": { - "type": { + "host": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "databaseId": { - "target": "smithy.api#String", + "port": { + "target": "smithy.api#Double", "traits": { "smithy.api#required": {} } }, - "backupId": { + "connectionString": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "ID of the backup to restore from", - "smithy.api#required": {} + "smithy.api#required": {}, + "smithy.api#sensitive": {} } } }, "traits": {} }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataSourceCase2": { + "com.prisma.postgres#PostV1ConnectionsResponseDataEndpointsPooled": { "type": "structure", "members": { - "type": { + "host": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "databaseId": { - "target": "smithy.api#String", + "port": { + "target": "smithy.api#Double", "traits": { "smithy.api#required": {} } + }, + "connectionString": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {}, + "smithy.api#sensitive": {} + } } }, "traits": {} }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataSource": { - "type": "union", - "members": { - "Case0": { - "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataSourceCase0" + "com.prisma.postgres#PostV1ConnectionsResponseDataEndpointsAccelerate": { + "type": "structure", + "members": { + "host": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } }, - "Case1": { - "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataSourceCase1" + "port": { + "target": "smithy.api#Double", + "traits": { + "smithy.api#required": {} + } }, - "Case2": { - "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataSourceCase2" + "connectionString": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {}, + "smithy.api#sensitive": {} + } } }, "traits": {} }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseData": { + "com.prisma.postgres#PostV1ConnectionsResponseDataEndpoints": { "type": "structure", "members": { - "id": { + "direct": { + "target": "com.prisma.postgres#PostV1ConnectionsResponseDataEndpointsDirect" + }, + "pooled": { + "target": "com.prisma.postgres#PostV1ConnectionsResponseDataEndpointsPooled" + }, + "accelerate": { + "target": "com.prisma.postgres#PostV1ConnectionsResponseDataEndpointsAccelerate" + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1ConnectionsResponseDataDirectConnection": { + "type": "structure", + "members": { + "host": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "type": { + "pass": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "user": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead." + } + }, + "com.prisma.postgres#PostV1ConnectionsResponseDataDatabase": { + "type": "structure", + "members": { + "id": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} @@ -5945,9 +6109,33 @@ "traits": { "smithy.api#required": {} } + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1ConnectionsResponseData": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } }, - "status": { - "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataStatus", + "type": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "url": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "name": { + "target": "smithy.api#String", "traits": { "smithy.api#required": {} } @@ -5958,48 +6146,59 @@ "smithy.api#required": {} } }, - "isDefault": { - "target": "smithy.api#Boolean", + "kind": { + "target": "com.prisma.postgres#PostV1ConnectionsResponseDataKind", "traits": { "smithy.api#required": {} } }, - "defaultConnectionId": { + "endpoints": { + "target": "com.prisma.postgres#PostV1ConnectionsResponseDataEndpoints", + "traits": { + "smithy.api#required": {} + } + }, + "connectionString": { "target": "smithy.api#String", "traits": { + "smithy.api#documentation": "Deprecated: use `endpoints.direct.connectionString` or `endpoints.pooled.connectionString` instead.", "smithy.api#required": {}, - "com.distilled.openapi#nullable": {} + "smithy.api#sensitive": {} } }, - "connections": { - "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataConnectionsList", + "directConnection": { + "target": "com.prisma.postgres#PostV1ConnectionsResponseDataDirectConnection", "traits": { - "smithy.api#required": {} + "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead.", + "com.distilled.openapi#nullable": {} } }, - "project": { - "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataProject", + "database": { + "target": "com.prisma.postgres#PostV1ConnectionsResponseDataDatabase", "traits": { "smithy.api#required": {} } }, - "region": { - "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataRegion", + "host": { + "target": "smithy.api#String", "traits": { + "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead.", "smithy.api#required": {}, "com.distilled.openapi#nullable": {} } }, - "source": { - "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataSource", + "pass": { + "target": "smithy.api#String", "traits": { + "smithy.api#documentation": "Deprecated: use `endpoints.direct.connectionString` or `endpoints.pooled.connectionString` instead.", "smithy.api#required": {}, "com.distilled.openapi#nullable": {} } }, - "branchId": { + "user": { "target": "smithy.api#String", "traits": { + "smithy.api#documentation": "Deprecated: use `endpoints.direct.connectionString` or `endpoints.pooled.connectionString` instead.", "smithy.api#required": {}, "com.distilled.openapi#nullable": {} } @@ -6007,11 +6206,11 @@ }, "traits": {} }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponse": { + "com.prisma.postgres#PostV1ConnectionsResponse": { "type": "structure", "members": { "data": { - "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseData", + "target": "com.prisma.postgres#PostV1ConnectionsResponseData", "traits": { "smithy.api#required": {} } @@ -6021,20 +6220,20 @@ "smithy.api#output": {} } }, - "com.prisma.postgres#GetV1DatabasesByDatabaseId": { + "com.prisma.postgres#PostV1Connections": { "type": "operation", "input": { - "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdRequest" + "target": "com.prisma.postgres#PostV1ConnectionsRequest" }, "output": { - "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponse" + "target": "com.prisma.postgres#PostV1ConnectionsResponse" }, "errors": [ { - "target": "com.prisma.postgres#Forbidden" + "target": "com.prisma.postgres#NotFound" }, { - "target": "com.prisma.postgres#NotFound" + "target": "com.prisma.postgres#Conflict" }, { "target": "com.prisma.postgres#UnprocessableEntity" @@ -6042,77 +6241,29 @@ ], "traits": { "smithy.api#http": { - "method": "GET", - "uri": "/v1/databases/{databaseId}", + "method": "POST", + "uri": "/v1/connections", "code": 200 }, - "smithy.api#documentation": "Get database\n\nReturns the database with the given ID." + "smithy.api#documentation": "Create connection\n\nCreates a new connection for the specified database." } }, - "com.prisma.postgres#PatchV1DatabasesByDatabaseIdRequest": { + "com.prisma.postgres#GetV1ConnectionsByIdRequest": { "type": "structure", "members": { - "databaseId": { + "id": { "target": "smithy.api#String", "traits": { "smithy.api#httpLabel": {}, "smithy.api#required": {} } - }, - "name": { - "target": "smithy.api#String", - "traits": { - "smithy.api#documentation": "New display name for the database" - } - }, - "branchId": { - "target": "smithy.api#String", - "traits": { - "com.distilled.openapi#nullable": {} - } - }, - "branchGitName": { - "target": "smithy.api#String", - "traits": { - "com.distilled.openapi#nullable": {} - } } }, "traits": { "smithy.api#input": {} } }, - "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataStatus": { - "type": "enum", - "members": { - "FAILURE": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "failure" - } - }, - "PROVISIONING": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "provisioning" - } - }, - "READY": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "ready" - } - }, - "RECOVERING": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "recovering" - } - } - }, - "traits": {} - }, - "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataConnectionsItemKind": { + "com.prisma.postgres#GetV1ConnectionsByIdResponseDataKind": { "type": "enum", "members": { "POSTGRES": { @@ -6130,7 +6281,7 @@ }, "traits": {} }, - "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataConnectionsItemEndpointsDirect": { + "com.prisma.postgres#GetV1ConnectionsByIdResponseDataEndpointsDirect": { "type": "structure", "members": { "host": { @@ -6148,7 +6299,7 @@ }, "traits": {} }, - "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataConnectionsItemEndpointsPooled": { + "com.prisma.postgres#GetV1ConnectionsByIdResponseDataEndpointsPooled": { "type": "structure", "members": { "host": { @@ -6166,7 +6317,7 @@ }, "traits": {} }, - "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataConnectionsItemEndpointsAccelerate": { + "com.prisma.postgres#GetV1ConnectionsByIdResponseDataEndpointsAccelerate": { "type": "structure", "members": { "host": { @@ -6184,22 +6335,22 @@ }, "traits": {} }, - "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataConnectionsItemEndpoints": { + "com.prisma.postgres#GetV1ConnectionsByIdResponseDataEndpoints": { "type": "structure", "members": { "direct": { - "target": "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataConnectionsItemEndpointsDirect" + "target": "com.prisma.postgres#GetV1ConnectionsByIdResponseDataEndpointsDirect" }, "pooled": { - "target": "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataConnectionsItemEndpointsPooled" + "target": "com.prisma.postgres#GetV1ConnectionsByIdResponseDataEndpointsPooled" }, "accelerate": { - "target": "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataConnectionsItemEndpointsAccelerate" + "target": "com.prisma.postgres#GetV1ConnectionsByIdResponseDataEndpointsAccelerate" } }, "traits": {} }, - "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataConnectionsItemDirectConnection": { + "com.prisma.postgres#GetV1ConnectionsByIdResponseDataDirectConnection": { "type": "structure", "members": { "host": { @@ -6225,7 +6376,7 @@ "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead." } }, - "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataConnectionsItemDatabase": { + "com.prisma.postgres#GetV1ConnectionsByIdResponseDataDatabase": { "type": "structure", "members": { "id": { @@ -6249,7 +6400,7 @@ }, "traits": {} }, - "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataConnectionsItem": { + "com.prisma.postgres#GetV1ConnectionsByIdResponseData": { "type": "structure", "members": { "id": { @@ -6283,26 +6434,26 @@ } }, "kind": { - "target": "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataConnectionsItemKind", + "target": "com.prisma.postgres#GetV1ConnectionsByIdResponseDataKind", "traits": { "smithy.api#required": {} } }, "endpoints": { - "target": "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataConnectionsItemEndpoints", + "target": "com.prisma.postgres#GetV1ConnectionsByIdResponseDataEndpoints", "traits": { "smithy.api#required": {} } }, "directConnection": { - "target": "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataConnectionsItemDirectConnection", + "target": "com.prisma.postgres#GetV1ConnectionsByIdResponseDataDirectConnection", "traits": { "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead.", "com.distilled.openapi#nullable": {} } }, "database": { - "target": "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataConnectionsItemDatabase", + "target": "com.prisma.postgres#GetV1ConnectionsByIdResponseDataDatabase", "traits": { "smithy.api#required": {} } @@ -6310,126 +6461,259 @@ }, "traits": {} }, - "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataConnectionsList": { - "type": "list", - "member": { - "target": "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataConnectionsItem" - }, - "traits": {} - }, - "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataProject": { + "com.prisma.postgres#GetV1ConnectionsByIdResponse": { "type": "structure", "members": { - "id": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {} - } - }, - "url": { - "target": "smithy.api#String", + "data": { + "target": "com.prisma.postgres#GetV1ConnectionsByIdResponseData", "traits": { "smithy.api#required": {} } - }, - "name": { + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.prisma.postgres#GetV1ConnectionsById": { + "type": "operation", + "input": { + "target": "com.prisma.postgres#GetV1ConnectionsByIdRequest" + }, + "output": { + "target": "com.prisma.postgres#GetV1ConnectionsByIdResponse" + }, + "errors": [ + { + "target": "com.prisma.postgres#NotFound" + }, + { + "target": "com.prisma.postgres#UnprocessableEntity" + } + ], + "traits": { + "smithy.api#http": { + "method": "GET", + "uri": "/v1/connections/{id}", + "code": 200 + }, + "smithy.api#documentation": "Get connection\n\nReturns the connection with the given ID." + } + }, + "com.prisma.postgres#DeleteV1ConnectionsByIdRequest": { + "type": "structure", + "members": { + "id": { "target": "smithy.api#String", "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } } }, - "traits": {} + "traits": { + "smithy.api#input": {} + } }, - "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataRegion": { + "com.prisma.postgres#DeleteV1ConnectionsById": { + "type": "operation", + "input": { + "target": "com.prisma.postgres#DeleteV1ConnectionsByIdRequest" + }, + "output": { + "target": "smithy.api#Unit" + }, + "errors": [ + { + "target": "com.prisma.postgres#NotFound" + }, + { + "target": "com.prisma.postgres#UnprocessableEntity" + } + ], + "traits": { + "smithy.api#http": { + "method": "DELETE", + "uri": "/v1/connections/{id}", + "code": 200 + }, + "smithy.api#documentation": "Delete connection\n\nDeletes the connection with the given ID." + } + }, + "com.prisma.postgres#PostV1ConnectionsByIdRotateRequest": { "type": "structure", "members": { "id": { "target": "smithy.api#String", "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.prisma.postgres#PostV1ConnectionsByIdRotateResponseDataKind": { + "type": "enum", + "members": { + "POSTGRES": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "postgres" + } }, - "name": { + "ACCELERATE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "accelerate" + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1ConnectionsByIdRotateResponseDataEndpointsDirect": { + "type": "structure", + "members": { + "host": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } + }, + "port": { + "target": "smithy.api#Double", + "traits": { + "smithy.api#required": {} + } + }, + "connectionString": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {}, + "smithy.api#sensitive": {} + } } }, "traits": {} }, - "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataSourceCase0": { + "com.prisma.postgres#PostV1ConnectionsByIdRotateResponseDataEndpointsPooled": { "type": "structure", "members": { - "type": { + "host": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } + }, + "port": { + "target": "smithy.api#Double", + "traits": { + "smithy.api#required": {} + } + }, + "connectionString": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {}, + "smithy.api#sensitive": {} + } } }, "traits": {} }, - "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataSourceCase1": { + "com.prisma.postgres#PostV1ConnectionsByIdRotateResponseDataEndpointsAccelerate": { "type": "structure", "members": { - "type": { + "host": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "databaseId": { - "target": "smithy.api#String", + "port": { + "target": "smithy.api#Double", "traits": { "smithy.api#required": {} } }, - "backupId": { + "connectionString": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "ID of the backup to restore from", - "smithy.api#required": {} + "smithy.api#required": {}, + "smithy.api#sensitive": {} } } }, "traits": {} }, - "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataSourceCase2": { + "com.prisma.postgres#PostV1ConnectionsByIdRotateResponseDataEndpoints": { "type": "structure", "members": { - "type": { + "direct": { + "target": "com.prisma.postgres#PostV1ConnectionsByIdRotateResponseDataEndpointsDirect" + }, + "pooled": { + "target": "com.prisma.postgres#PostV1ConnectionsByIdRotateResponseDataEndpointsPooled" + }, + "accelerate": { + "target": "com.prisma.postgres#PostV1ConnectionsByIdRotateResponseDataEndpointsAccelerate" + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1ConnectionsByIdRotateResponseDataDirectConnection": { + "type": "structure", + "members": { + "host": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "databaseId": { + "pass": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "user": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } } }, - "traits": {} + "traits": { + "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead." + } }, - "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataSource": { - "type": "union", + "com.prisma.postgres#PostV1ConnectionsByIdRotateResponseDataDatabase": { + "type": "structure", "members": { - "Case0": { - "target": "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataSourceCase0" + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } }, - "Case1": { - "target": "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataSourceCase1" + "url": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } }, - "Case2": { - "target": "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataSourceCase2" + "name": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } } }, "traits": {} }, - "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseData": { + "com.prisma.postgres#PostV1ConnectionsByIdRotateResponseData": { "type": "structure", "members": { "id": { @@ -6456,60 +6740,65 @@ "smithy.api#required": {} } }, - "status": { - "target": "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataStatus", + "createdAt": { + "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "createdAt": { - "target": "smithy.api#String", + "kind": { + "target": "com.prisma.postgres#PostV1ConnectionsByIdRotateResponseDataKind", "traits": { "smithy.api#required": {} } }, - "isDefault": { - "target": "smithy.api#Boolean", + "endpoints": { + "target": "com.prisma.postgres#PostV1ConnectionsByIdRotateResponseDataEndpoints", "traits": { "smithy.api#required": {} } }, - "defaultConnectionId": { + "connectionString": { "target": "smithy.api#String", "traits": { + "smithy.api#documentation": "Deprecated: use `endpoints.direct.connectionString` or `endpoints.pooled.connectionString` instead.", "smithy.api#required": {}, - "com.distilled.openapi#nullable": {} + "smithy.api#sensitive": {} } }, - "connections": { - "target": "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataConnectionsList", + "directConnection": { + "target": "com.prisma.postgres#PostV1ConnectionsByIdRotateResponseDataDirectConnection", "traits": { - "smithy.api#required": {} + "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead.", + "com.distilled.openapi#nullable": {} } }, - "project": { - "target": "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataProject", + "database": { + "target": "com.prisma.postgres#PostV1ConnectionsByIdRotateResponseDataDatabase", "traits": { "smithy.api#required": {} } }, - "region": { - "target": "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataRegion", + "host": { + "target": "smithy.api#String", "traits": { + "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead.", "smithy.api#required": {}, "com.distilled.openapi#nullable": {} } }, - "source": { - "target": "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataSource", + "pass": { + "target": "smithy.api#String", "traits": { + "smithy.api#documentation": "Deprecated: use `endpoints.direct.connectionString` or `endpoints.pooled.connectionString` instead.", "smithy.api#required": {}, "com.distilled.openapi#nullable": {} } }, - "branchId": { + "user": { "target": "smithy.api#String", "traits": { + "smithy.api#documentation": "Deprecated: use `endpoints.direct.connectionString` or `endpoints.pooled.connectionString` instead.", "smithy.api#required": {}, "com.distilled.openapi#nullable": {} } @@ -6517,11 +6806,11 @@ }, "traits": {} }, - "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponse": { + "com.prisma.postgres#PostV1ConnectionsByIdRotateResponse": { "type": "structure", "members": { "data": { - "target": "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseData", + "target": "com.prisma.postgres#PostV1ConnectionsByIdRotateResponseData", "traits": { "smithy.api#required": {} } @@ -6531,97 +6820,59 @@ "smithy.api#output": {} } }, - "com.prisma.postgres#PatchV1DatabasesByDatabaseId": { + "com.prisma.postgres#PostV1ConnectionsByIdRotate": { "type": "operation", "input": { - "target": "com.prisma.postgres#PatchV1DatabasesByDatabaseIdRequest" + "target": "com.prisma.postgres#PostV1ConnectionsByIdRotateRequest" }, "output": { - "target": "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponse" + "target": "com.prisma.postgres#PostV1ConnectionsByIdRotateResponse" }, "errors": [ - { - "target": "com.prisma.postgres#Forbidden" - }, { "target": "com.prisma.postgres#NotFound" - }, - { - "target": "com.prisma.postgres#UnprocessableEntity" } ], "traits": { "smithy.api#http": { - "method": "PATCH", - "uri": "/v1/databases/{databaseId}", + "method": "POST", + "uri": "/v1/connections/{id}/rotate", "code": 200 }, - "smithy.api#documentation": "Update database\n\nUpdates the database with the given ID." + "smithy.api#documentation": "Rotate connection credentials\n\nGenerates new credentials for the connection with the given ID. Revocation of the previous credentials is best-effort." } }, - "com.prisma.postgres#DeleteV1DatabasesByDatabaseIdRequest": { + "com.prisma.postgres#GetV1DatabasesRequest": { "type": "structure", "members": { - "databaseId": { + "cursor": { "target": "smithy.api#String", "traits": { - "smithy.api#httpLabel": {}, - "smithy.api#required": {} + "smithy.api#httpQuery": "cursor" } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.prisma.postgres#DeleteV1DatabasesByDatabaseId": { - "type": "operation", - "input": { - "target": "com.prisma.postgres#DeleteV1DatabasesByDatabaseIdRequest" - }, - "output": { - "target": "smithy.api#Unit" - }, - "errors": [ - { - "target": "com.prisma.postgres#Forbidden" - }, - { - "target": "com.prisma.postgres#NotFound" }, - { - "target": "com.prisma.postgres#UnprocessableEntity" - } - ], - "traits": { - "smithy.api#http": { - "method": "DELETE", - "uri": "/v1/databases/{databaseId}", - "code": 200 + "limit": { + "target": "smithy.api#Double", + "traits": { + "smithy.api#httpQuery": "limit" + } }, - "smithy.api#documentation": "Delete database\n\nDeletes the database with the given ID." - } - }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsRequest": { - "type": "structure", - "members": { - "databaseId": { + "projectId": { "target": "smithy.api#String", "traits": { - "smithy.api#httpLabel": {}, - "smithy.api#required": {} + "smithy.api#httpQuery": "projectId" } }, - "cursor": { + "branchId": { "target": "smithy.api#String", "traits": { - "smithy.api#httpQuery": "cursor" + "smithy.api#httpQuery": "branchId" } }, - "limit": { - "target": "smithy.api#Double", + "branchGitName": { + "target": "smithy.api#String", "traits": { - "smithy.api#httpQuery": "limit" + "smithy.api#httpQuery": "branchGitName" } } }, @@ -6629,7 +6880,37 @@ "smithy.api#input": {} } }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsResponseDataItemKind": { + "com.prisma.postgres#GetV1DatabasesResponseDataItemStatus": { + "type": "enum", + "members": { + "FAILURE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "failure" + } + }, + "PROVISIONING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "provisioning" + } + }, + "READY": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ready" + } + }, + "RECOVERING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "recovering" + } + } + }, + "traits": {} + }, + "com.prisma.postgres#GetV1DatabasesResponseDataItemConnectionsItemKind": { "type": "enum", "members": { "POSTGRES": { @@ -6647,7 +6928,7 @@ }, "traits": {} }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsResponseDataItemEndpointsDirect": { + "com.prisma.postgres#GetV1DatabasesResponseDataItemConnectionsItemEndpointsDirect": { "type": "structure", "members": { "host": { @@ -6665,7 +6946,7 @@ }, "traits": {} }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsResponseDataItemEndpointsPooled": { + "com.prisma.postgres#GetV1DatabasesResponseDataItemConnectionsItemEndpointsPooled": { "type": "structure", "members": { "host": { @@ -6683,7 +6964,7 @@ }, "traits": {} }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsResponseDataItemEndpointsAccelerate": { + "com.prisma.postgres#GetV1DatabasesResponseDataItemConnectionsItemEndpointsAccelerate": { "type": "structure", "members": { "host": { @@ -6701,22 +6982,22 @@ }, "traits": {} }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsResponseDataItemEndpoints": { + "com.prisma.postgres#GetV1DatabasesResponseDataItemConnectionsItemEndpoints": { "type": "structure", "members": { "direct": { - "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsResponseDataItemEndpointsDirect" + "target": "com.prisma.postgres#GetV1DatabasesResponseDataItemConnectionsItemEndpointsDirect" }, "pooled": { - "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsResponseDataItemEndpointsPooled" + "target": "com.prisma.postgres#GetV1DatabasesResponseDataItemConnectionsItemEndpointsPooled" }, "accelerate": { - "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsResponseDataItemEndpointsAccelerate" + "target": "com.prisma.postgres#GetV1DatabasesResponseDataItemConnectionsItemEndpointsAccelerate" } }, "traits": {} }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsResponseDataItemDirectConnection": { + "com.prisma.postgres#GetV1DatabasesResponseDataItemConnectionsItemDirectConnection": { "type": "structure", "members": { "host": { @@ -6742,7 +7023,7 @@ "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead." } }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsResponseDataItemDatabase": { + "com.prisma.postgres#GetV1DatabasesResponseDataItemConnectionsItemDatabase": { "type": "structure", "members": { "id": { @@ -6766,7 +7047,7 @@ }, "traits": {} }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsResponseDataItem": { + "com.prisma.postgres#GetV1DatabasesResponseDataItemConnectionsItem": { "type": "structure", "members": { "id": { @@ -6800,26 +7081,26 @@ } }, "kind": { - "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsResponseDataItemKind", + "target": "com.prisma.postgres#GetV1DatabasesResponseDataItemConnectionsItemKind", "traits": { "smithy.api#required": {} } }, "endpoints": { - "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsResponseDataItemEndpoints", + "target": "com.prisma.postgres#GetV1DatabasesResponseDataItemConnectionsItemEndpoints", "traits": { "smithy.api#required": {} } }, "directConnection": { - "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsResponseDataItemDirectConnection", + "target": "com.prisma.postgres#GetV1DatabasesResponseDataItemConnectionsItemDirectConnection", "traits": { "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead.", "com.distilled.openapi#nullable": {} } }, "database": { - "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsResponseDataItemDatabase", + "target": "com.prisma.postgres#GetV1DatabasesResponseDataItemConnectionsItemDatabase", "traits": { "smithy.api#required": {} } @@ -6827,83 +7108,43 @@ }, "traits": {} }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsResponseDataList": { + "com.prisma.postgres#GetV1DatabasesResponseDataItemConnectionsList": { "type": "list", "member": { - "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsResponseDataItem" + "target": "com.prisma.postgres#GetV1DatabasesResponseDataItemConnectionsItem" }, "traits": {} }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsResponsePagination": { + "com.prisma.postgres#GetV1DatabasesResponseDataItemProject": { "type": "structure", "members": { - "nextCursor": { + "id": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "Next cursor to continue pagination", - "smithy.api#required": {}, - "com.distilled.openapi#nullable": {} - } - }, - "hasMore": { - "target": "smithy.api#Boolean", - "traits": { - "smithy.api#documentation": "Whether there are more items to paginate", "smithy.api#required": {} } - } - }, - "traits": {} - }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsResponse": { - "type": "structure", - "members": { - "data": { - "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsResponseDataList", + }, + "url": { + "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "pagination": { - "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsResponsePagination", + "name": { + "target": "smithy.api#String", "traits": { "smithy.api#required": {} } } }, - "traits": { - "smithy.api#output": {} - } - }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnections": { - "type": "operation", - "input": { - "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsRequest" - }, - "output": { - "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsResponse" - }, - "errors": [ - { - "target": "com.prisma.postgres#UnprocessableEntity" - } - ], - "traits": { - "smithy.api#http": { - "method": "GET", - "uri": "/v1/databases/{databaseId}/connections", - "code": 200 - }, - "smithy.api#documentation": "Get list of database connections\n\nReturns all connections for the given database." - } + "traits": {} }, - "com.prisma.postgres#PostV1DatabasesByDatabaseIdConnectionsRequest": { + "com.prisma.postgres#GetV1DatabasesResponseDataItemRegion": { "type": "structure", "members": { - "databaseId": { + "id": { "target": "smithy.api#String", "traits": { - "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, @@ -6914,148 +7155,88 @@ } } }, - "traits": { - "smithy.api#input": {} - } + "traits": {} }, - "com.prisma.postgres#PostV1DatabasesByDatabaseIdConnectionsResponseDataKind": { - "type": "enum", + "com.prisma.postgres#GetV1DatabasesResponseDataItemSourceCase0": { + "type": "structure", "members": { - "POSTGRES": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "postgres" - } - }, - "ACCELERATE": { - "target": "smithy.api#Unit", + "type": { + "target": "smithy.api#String", "traits": { - "smithy.api#enumValue": "accelerate" + "smithy.api#required": {} } } }, "traits": {} }, - "com.prisma.postgres#PostV1DatabasesByDatabaseIdConnectionsResponseDataEndpointsDirect": { + "com.prisma.postgres#GetV1DatabasesResponseDataItemSourceCase1": { "type": "structure", "members": { - "host": { + "type": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "port": { - "target": "smithy.api#Double", + "databaseId": { + "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "connectionString": { + "backupId": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {}, - "smithy.api#sensitive": {} + "smithy.api#documentation": "ID of the backup to restore from", + "smithy.api#required": {} } } }, "traits": {} }, - "com.prisma.postgres#PostV1DatabasesByDatabaseIdConnectionsResponseDataEndpointsPooled": { + "com.prisma.postgres#GetV1DatabasesResponseDataItemSourceCase2": { "type": "structure", "members": { - "host": { + "type": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "port": { - "target": "smithy.api#Double", + "databaseId": { + "target": "smithy.api#String", "traits": { "smithy.api#required": {} } + } + }, + "traits": {} + }, + "com.prisma.postgres#GetV1DatabasesResponseDataItemSource": { + "type": "union", + "members": { + "Case0": { + "target": "com.prisma.postgres#GetV1DatabasesResponseDataItemSourceCase0" }, - "connectionString": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {}, - "smithy.api#sensitive": {} - } + "Case1": { + "target": "com.prisma.postgres#GetV1DatabasesResponseDataItemSourceCase1" + }, + "Case2": { + "target": "com.prisma.postgres#GetV1DatabasesResponseDataItemSourceCase2" } }, "traits": {} }, - "com.prisma.postgres#PostV1DatabasesByDatabaseIdConnectionsResponseDataEndpointsAccelerate": { + "com.prisma.postgres#GetV1DatabasesResponseDataItem": { "type": "structure", "members": { - "host": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {} - } - }, - "port": { - "target": "smithy.api#Double", - "traits": { - "smithy.api#required": {} - } - }, - "connectionString": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {}, - "smithy.api#sensitive": {} - } - } - }, - "traits": {} - }, - "com.prisma.postgres#PostV1DatabasesByDatabaseIdConnectionsResponseDataEndpoints": { - "type": "structure", - "members": { - "direct": { - "target": "com.prisma.postgres#PostV1DatabasesByDatabaseIdConnectionsResponseDataEndpointsDirect" - }, - "pooled": { - "target": "com.prisma.postgres#PostV1DatabasesByDatabaseIdConnectionsResponseDataEndpointsPooled" - }, - "accelerate": { - "target": "com.prisma.postgres#PostV1DatabasesByDatabaseIdConnectionsResponseDataEndpointsAccelerate" - } - }, - "traits": {} - }, - "com.prisma.postgres#PostV1DatabasesByDatabaseIdConnectionsResponseDataDirectConnection": { - "type": "structure", - "members": { - "host": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {} - } - }, - "pass": { + "id": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "user": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead." - } - }, - "com.prisma.postgres#PostV1DatabasesByDatabaseIdConnectionsResponseDataDatabase": { - "type": "structure", - "members": { - "id": { + "type": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} @@ -7072,108 +7253,107 @@ "traits": { "smithy.api#required": {} } - } - }, - "traits": {} - }, - "com.prisma.postgres#PostV1DatabasesByDatabaseIdConnectionsResponseData": { - "type": "structure", - "members": { - "id": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {} - } }, - "type": { - "target": "smithy.api#String", + "status": { + "target": "com.prisma.postgres#GetV1DatabasesResponseDataItemStatus", "traits": { "smithy.api#required": {} } }, - "url": { + "createdAt": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "name": { - "target": "smithy.api#String", + "isDefault": { + "target": "smithy.api#Boolean", "traits": { "smithy.api#required": {} } }, - "createdAt": { + "defaultConnectionId": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {} + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} } }, - "kind": { - "target": "com.prisma.postgres#PostV1DatabasesByDatabaseIdConnectionsResponseDataKind", + "connections": { + "target": "com.prisma.postgres#GetV1DatabasesResponseDataItemConnectionsList", "traits": { "smithy.api#required": {} } }, - "endpoints": { - "target": "com.prisma.postgres#PostV1DatabasesByDatabaseIdConnectionsResponseDataEndpoints", + "project": { + "target": "com.prisma.postgres#GetV1DatabasesResponseDataItemProject", "traits": { "smithy.api#required": {} } }, - "connectionString": { - "target": "smithy.api#String", + "region": { + "target": "com.prisma.postgres#GetV1DatabasesResponseDataItemRegion", "traits": { - "smithy.api#documentation": "Deprecated: use `endpoints.direct.connectionString` or `endpoints.pooled.connectionString` instead.", "smithy.api#required": {}, - "smithy.api#sensitive": {} - } - }, - "directConnection": { - "target": "com.prisma.postgres#PostV1DatabasesByDatabaseIdConnectionsResponseDataDirectConnection", - "traits": { - "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead.", "com.distilled.openapi#nullable": {} } }, - "database": { - "target": "com.prisma.postgres#PostV1DatabasesByDatabaseIdConnectionsResponseDataDatabase", + "source": { + "target": "com.prisma.postgres#GetV1DatabasesResponseDataItemSource", "traits": { - "smithy.api#required": {} + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} } }, - "host": { + "branchId": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead.", "smithy.api#required": {}, "com.distilled.openapi#nullable": {} } - }, - "pass": { + } + }, + "traits": {} + }, + "com.prisma.postgres#GetV1DatabasesResponseDataList": { + "type": "list", + "member": { + "target": "com.prisma.postgres#GetV1DatabasesResponseDataItem" + }, + "traits": {} + }, + "com.prisma.postgres#GetV1DatabasesResponsePagination": { + "type": "structure", + "members": { + "nextCursor": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "Deprecated: use `endpoints.direct.connectionString` or `endpoints.pooled.connectionString` instead.", + "smithy.api#documentation": "Next cursor to continue pagination", "smithy.api#required": {}, "com.distilled.openapi#nullable": {} } }, - "user": { - "target": "smithy.api#String", + "hasMore": { + "target": "smithy.api#Boolean", "traits": { - "smithy.api#documentation": "Deprecated: use `endpoints.direct.connectionString` or `endpoints.pooled.connectionString` instead.", - "smithy.api#required": {}, - "com.distilled.openapi#nullable": {} + "smithy.api#documentation": "Whether there are more items to paginate", + "smithy.api#required": {} } } }, "traits": {} }, - "com.prisma.postgres#PostV1DatabasesByDatabaseIdConnectionsResponse": { + "com.prisma.postgres#GetV1DatabasesResponse": { "type": "structure", "members": { "data": { - "target": "com.prisma.postgres#PostV1DatabasesByDatabaseIdConnectionsResponseData", + "target": "com.prisma.postgres#GetV1DatabasesResponseDataList", + "traits": { + "smithy.api#required": {} + } + }, + "pagination": { + "target": "com.prisma.postgres#GetV1DatabasesResponsePagination", "traits": { "smithy.api#required": {} } @@ -7183,276 +7363,196 @@ "smithy.api#output": {} } }, - "com.prisma.postgres#PostV1DatabasesByDatabaseIdConnections": { + "com.prisma.postgres#GetV1Databases": { "type": "operation", "input": { - "target": "com.prisma.postgres#PostV1DatabasesByDatabaseIdConnectionsRequest" + "target": "com.prisma.postgres#GetV1DatabasesRequest" }, "output": { - "target": "com.prisma.postgres#PostV1DatabasesByDatabaseIdConnectionsResponse" + "target": "com.prisma.postgres#GetV1DatabasesResponse" }, "errors": [ { - "target": "com.prisma.postgres#NotFound" - }, - { - "target": "com.prisma.postgres#UnprocessableEntity" + "target": "com.prisma.postgres#Forbidden" } ], "traits": { "smithy.api#http": { - "method": "POST", - "uri": "/v1/databases/{databaseId}/connections", + "method": "GET", + "uri": "/v1/databases", "code": 200 }, - "smithy.api#documentation": "Create database connection string\n\nCreates a new connection string for the given database." + "smithy.api#documentation": "List databases\n\nReturns all databases the token has access to. Optionally filter by project ID." } }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdBackupsRequest": { - "type": "structure", + "com.prisma.postgres#PostV1DatabasesRequestRegion": { + "type": "enum", "members": { - "databaseId": { - "target": "smithy.api#String", + "US_EAST_1": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#httpLabel": {}, - "smithy.api#required": {} + "smithy.api#enumValue": "us-east-1" } }, - "limit": { - "target": "smithy.api#Integer", - "traits": { - "smithy.api#httpQuery": "limit" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdBackupsResponseDataItemBackupType": { - "type": "enum", - "members": { - "FULL": { + "US_WEST_1": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "full" + "smithy.api#enumValue": "us-west-1" } }, - "INCREMENTAL": { + "EU_WEST_3": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "incremental" + "smithy.api#enumValue": "eu-west-3" } - } - }, - "traits": { - "smithy.api#documentation": "Type of backup" - } - }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdBackupsResponseDataItemStatus": { - "type": "enum", - "members": { - "RUNNING": { + }, + "EU_CENTRAL_1": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "running" + "smithy.api#enumValue": "eu-central-1" } }, - "COMPLETED": { + "AP_NORTHEAST_1": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "completed" + "smithy.api#enumValue": "ap-northeast-1" } }, - "FAILED": { + "AP_SOUTHEAST_1": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "failed" + "smithy.api#enumValue": "ap-southeast-1" } }, - "UNKNOWN": { + "INHERIT": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "unknown" + "smithy.api#enumValue": "inherit" } } }, "traits": { - "smithy.api#documentation": "Status of backup instance" + "smithy.api#documentation": "Region for the database. Use \"inherit\" to use the project default database region." } }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdBackupsResponseDataItem": { + "com.prisma.postgres#PostV1DatabasesRequestSourceCase0": { "type": "structure", "members": { - "id": { + "type": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "The unique identifier for this backup", "smithy.api#required": {} } - }, - "backupType": { - "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdBackupsResponseDataItemBackupType", + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1DatabasesRequestSourceCase1": { + "type": "structure", + "members": { + "type": { + "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "Type of backup", "smithy.api#required": {} } }, - "createdAt": { + "databaseId": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "Timestamp when the backup was created", - "smithy.api#required": {} - } - }, - "size": { - "target": "smithy.api#Double", - "traits": { - "smithy.api#documentation": "Total file size (in bytes) of gzipped backup files" - } - }, - "status": { - "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdBackupsResponseDataItemStatus", - "traits": { - "smithy.api#documentation": "Status of backup instance", + "smithy.api#documentation": "ID of the database the backup belongs to", "smithy.api#required": {} } }, - "type": { - "target": "smithy.api#String" - } - }, - "traits": {} - }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdBackupsResponseDataList": { - "type": "list", - "member": { - "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdBackupsResponseDataItem" - }, - "traits": {} - }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdBackupsResponseMeta": { - "type": "structure", - "members": { - "backupRetentionDays": { - "target": "smithy.api#Double", + "backupId": { + "target": "smithy.api#String", "traits": { + "smithy.api#documentation": "ID of the backup to restore from", "smithy.api#required": {} } } }, "traits": {} }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdBackupsResponsePagination": { + "com.prisma.postgres#PostV1DatabasesRequestSourceCase2": { "type": "structure", "members": { - "hasMore": { - "target": "smithy.api#Boolean", + "type": { + "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "limit": { - "target": "smithy.api#Integer", + "databaseId": { + "target": "smithy.api#String", "traits": { - "smithy.api#required": {}, - "com.distilled.openapi#nullable": {} + "smithy.api#documentation": "ID of the database to clone from", + "smithy.api#required": {} } } }, "traits": {} }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdBackupsResponse": { - "type": "structure", + "com.prisma.postgres#PostV1DatabasesRequestSource": { + "type": "union", "members": { - "data": { - "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdBackupsResponseDataList", - "traits": { - "smithy.api#required": {} - } + "Case0": { + "target": "com.prisma.postgres#PostV1DatabasesRequestSourceCase0" }, - "meta": { - "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdBackupsResponseMeta", - "traits": { - "smithy.api#required": {} - } + "Case1": { + "target": "com.prisma.postgres#PostV1DatabasesRequestSourceCase1" }, - "pagination": { - "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdBackupsResponsePagination", - "traits": { - "smithy.api#required": {} - } + "Case2": { + "target": "com.prisma.postgres#PostV1DatabasesRequestSourceCase2" } }, "traits": { - "smithy.api#output": {} - } - }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdBackups": { - "type": "operation", - "input": { - "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdBackupsRequest" - }, - "output": { - "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdBackupsResponse" - }, - "errors": [ - { - "target": "com.prisma.postgres#NotFound" - }, - { - "target": "com.prisma.postgres#UnprocessableEntity" - } - ], - "traits": { - "smithy.api#http": { - "method": "GET", - "uri": "/v1/databases/{databaseId}/backups", - "code": 200 - }, - "smithy.api#documentation": "Get list of backups\n\nReturns backups for the specified database." + "smithy.api#documentation": "Source to create the database from. Omit to create an empty database." } }, - "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreRequestSource": { + "com.prisma.postgres#PostV1DatabasesRequest": { "type": "structure", "members": { - "type": { + "projectId": { "target": "smithy.api#String", "traits": { + "smithy.api#documentation": "ID of the project to create the database in", "smithy.api#required": {} } }, - "databaseId": { - "target": "smithy.api#String", + "region": { + "target": "com.prisma.postgres#PostV1DatabasesRequestRegion", "traits": { - "smithy.api#documentation": "ID of the database the backup belongs to", - "smithy.api#required": {} + "smithy.api#documentation": "Region for the database. Use \"inherit\" to use the project default database region." } }, - "backupId": { + "name": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "ID of the backup to restore from", - "smithy.api#required": {} + "smithy.api#documentation": "Display name for the database" } - } - }, - "traits": {} - }, - "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreRequest": { - "type": "structure", - "members": { - "targetDatabaseId": { - "target": "smithy.api#String", + }, + "isDefault": { + "target": "smithy.api#Boolean", "traits": { - "smithy.api#httpLabel": {}, - "smithy.api#required": {} + "smithy.api#documentation": "Whether this is the default database" } }, "source": { - "target": "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreRequestSource", + "target": "com.prisma.postgres#PostV1DatabasesRequestSource", "traits": { - "smithy.api#required": {} + "smithy.api#documentation": "Source to create the database from. Omit to create an empty database." + } + }, + "branchId": { + "target": "smithy.api#String", + "traits": { + "com.distilled.openapi#nullable": {} + } + }, + "branchGitName": { + "target": "smithy.api#String", + "traits": { + "com.distilled.openapi#nullable": {} } } }, @@ -7460,7 +7560,7 @@ "smithy.api#input": {} } }, - "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataStatus": { + "com.prisma.postgres#PostV1DatabasesResponseDataStatus": { "type": "enum", "members": { "FAILURE": { @@ -7490,7 +7590,7 @@ }, "traits": {} }, - "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataConnectionsItemKind": { + "com.prisma.postgres#PostV1DatabasesResponseDataConnectionsItemKind": { "type": "enum", "members": { "POSTGRES": { @@ -7508,7 +7608,7 @@ }, "traits": {} }, - "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataConnectionsItemEndpointsDirect": { + "com.prisma.postgres#PostV1DatabasesResponseDataConnectionsItemEndpointsDirect": { "type": "structure", "members": { "host": { @@ -7522,11 +7622,17 @@ "traits": { "smithy.api#required": {} } + }, + "connectionString": { + "target": "smithy.api#String", + "traits": { + "smithy.api#sensitive": {} + } } }, "traits": {} }, - "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataConnectionsItemEndpointsPooled": { + "com.prisma.postgres#PostV1DatabasesResponseDataConnectionsItemEndpointsPooled": { "type": "structure", "members": { "host": { @@ -7540,11 +7646,17 @@ "traits": { "smithy.api#required": {} } + }, + "connectionString": { + "target": "smithy.api#String", + "traits": { + "smithy.api#sensitive": {} + } } }, "traits": {} }, - "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataConnectionsItemEndpointsAccelerate": { + "com.prisma.postgres#PostV1DatabasesResponseDataConnectionsItemEndpointsAccelerate": { "type": "structure", "members": { "host": { @@ -7558,26 +7670,32 @@ "traits": { "smithy.api#required": {} } + }, + "connectionString": { + "target": "smithy.api#String", + "traits": { + "smithy.api#sensitive": {} + } } }, "traits": {} }, - "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataConnectionsItemEndpoints": { + "com.prisma.postgres#PostV1DatabasesResponseDataConnectionsItemEndpoints": { "type": "structure", "members": { "direct": { - "target": "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataConnectionsItemEndpointsDirect" + "target": "com.prisma.postgres#PostV1DatabasesResponseDataConnectionsItemEndpointsDirect" }, "pooled": { - "target": "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataConnectionsItemEndpointsPooled" + "target": "com.prisma.postgres#PostV1DatabasesResponseDataConnectionsItemEndpointsPooled" }, "accelerate": { - "target": "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataConnectionsItemEndpointsAccelerate" + "target": "com.prisma.postgres#PostV1DatabasesResponseDataConnectionsItemEndpointsAccelerate" } }, "traits": {} }, - "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataConnectionsItemDirectConnection": { + "com.prisma.postgres#PostV1DatabasesResponseDataConnectionsItemDirectConnection": { "type": "structure", "members": { "host": { @@ -7603,7 +7721,7 @@ "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead." } }, - "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataConnectionsItemDatabase": { + "com.prisma.postgres#PostV1DatabasesResponseDataConnectionsItemDatabase": { "type": "structure", "members": { "id": { @@ -7627,7 +7745,7 @@ }, "traits": {} }, - "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataConnectionsItem": { + "com.prisma.postgres#PostV1DatabasesResponseDataConnectionsItem": { "type": "structure", "members": { "id": { @@ -7661,26 +7779,26 @@ } }, "kind": { - "target": "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataConnectionsItemKind", + "target": "com.prisma.postgres#PostV1DatabasesResponseDataConnectionsItemKind", "traits": { "smithy.api#required": {} } }, "endpoints": { - "target": "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataConnectionsItemEndpoints", + "target": "com.prisma.postgres#PostV1DatabasesResponseDataConnectionsItemEndpoints", "traits": { "smithy.api#required": {} } }, "directConnection": { - "target": "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataConnectionsItemDirectConnection", + "target": "com.prisma.postgres#PostV1DatabasesResponseDataConnectionsItemDirectConnection", "traits": { "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead.", "com.distilled.openapi#nullable": {} } }, "database": { - "target": "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataConnectionsItemDatabase", + "target": "com.prisma.postgres#PostV1DatabasesResponseDataConnectionsItemDatabase", "traits": { "smithy.api#required": {} } @@ -7688,14 +7806,14 @@ }, "traits": {} }, - "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataConnectionsList": { + "com.prisma.postgres#PostV1DatabasesResponseDataConnectionsList": { "type": "list", "member": { - "target": "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataConnectionsItem" + "target": "com.prisma.postgres#PostV1DatabasesResponseDataConnectionsItem" }, "traits": {} }, - "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataProject": { + "com.prisma.postgres#PostV1DatabasesResponseDataProject": { "type": "structure", "members": { "id": { @@ -7719,7 +7837,7 @@ }, "traits": {} }, - "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataRegion": { + "com.prisma.postgres#PostV1DatabasesResponseDataRegion": { "type": "structure", "members": { "id": { @@ -7737,7 +7855,19 @@ }, "traits": {} }, - "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataSource": { + "com.prisma.postgres#PostV1DatabasesResponseDataSourceCase0": { + "type": "structure", + "members": { + "type": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1DatabasesResponseDataSourceCase1": { "type": "structure", "members": { "type": { @@ -7755,42 +7885,76 @@ "backupId": { "target": "smithy.api#String", "traits": { + "smithy.api#documentation": "ID of the backup to restore from", "smithy.api#required": {} } } }, "traits": {} }, - "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseData": { + "com.prisma.postgres#PostV1DatabasesResponseDataSourceCase2": { "type": "structure", "members": { - "id": { + "type": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "type": { + "databaseId": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1DatabasesResponseDataSource": { + "type": "union", + "members": { + "Case0": { + "target": "com.prisma.postgres#PostV1DatabasesResponseDataSourceCase0" }, - "url": { + "Case1": { + "target": "com.prisma.postgres#PostV1DatabasesResponseDataSourceCase1" + }, + "Case2": { + "target": "com.prisma.postgres#PostV1DatabasesResponseDataSourceCase2" + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1DatabasesResponseData": { + "type": "structure", + "members": { + "id": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "name": { + "type": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "status": { - "target": "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataStatus", - "traits": { + "url": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "name": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "status": { + "target": "com.prisma.postgres#PostV1DatabasesResponseDataStatus", + "traits": { "smithy.api#required": {} } }, @@ -7814,28 +7978,29 @@ } }, "connections": { - "target": "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataConnectionsList", + "target": "com.prisma.postgres#PostV1DatabasesResponseDataConnectionsList", "traits": { "smithy.api#required": {} } }, "project": { - "target": "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataProject", + "target": "com.prisma.postgres#PostV1DatabasesResponseDataProject", "traits": { "smithy.api#required": {} } }, "region": { - "target": "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataRegion", + "target": "com.prisma.postgres#PostV1DatabasesResponseDataRegion", "traits": { "smithy.api#required": {}, "com.distilled.openapi#nullable": {} } }, "source": { - "target": "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataSource", + "target": "com.prisma.postgres#PostV1DatabasesResponseDataSource", "traits": { - "smithy.api#required": {} + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} } }, "branchId": { @@ -7848,11 +8013,11 @@ }, "traits": {} }, - "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponse": { + "com.prisma.postgres#PostV1DatabasesResponse": { "type": "structure", "members": { "data": { - "target": "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseData", + "target": "com.prisma.postgres#PostV1DatabasesResponseData", "traits": { "smithy.api#required": {} } @@ -7862,15 +8027,21 @@ "smithy.api#output": {} } }, - "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestore": { + "com.prisma.postgres#PostV1Databases": { "type": "operation", "input": { - "target": "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreRequest" + "target": "com.prisma.postgres#PostV1DatabasesRequest" }, "output": { - "target": "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponse" + "target": "com.prisma.postgres#PostV1DatabasesResponse" }, "errors": [ + { + "target": "com.prisma.postgres#BadRequest" + }, + { + "target": "com.prisma.postgres#Forbidden" + }, { "target": "com.prisma.postgres#NotFound" }, @@ -7884,13 +8055,13 @@ "traits": { "smithy.api#http": { "method": "POST", - "uri": "/v1/databases/{targetDatabaseId}/restore", + "uri": "/v1/databases", "code": 200 }, - "smithy.api#documentation": "Restore database (destructive)\n\n⚠️ **Destructive operation** — this immediately and irreversibly overwrites all data in the target database with the contents of the specified backup. Any data written since the backup was taken will be lost. Ensure you have a recent backup of the target database before proceeding.\n\nReplaces the data in an existing database from a backup. Connections and credentials are preserved — only the data layer is replaced." + "smithy.api#documentation": "Create database\n\nCreates a new database in the specified project." } }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdUsageRequest": { + "com.prisma.postgres#GetV1DatabasesByDatabaseIdRequest": { "type": "structure", "members": { "databaseId": { @@ -7899,53 +8070,71 @@ "smithy.api#httpLabel": {}, "smithy.api#required": {} } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataStatus": { + "type": "enum", + "members": { + "FAILURE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "failure" + } }, - "startDate": { - "target": "smithy.api#String", + "PROVISIONING": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#httpQuery": "startDate" + "smithy.api#enumValue": "provisioning" } }, - "endDate": { - "target": "smithy.api#String", + "READY": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#httpQuery": "endDate" + "smithy.api#enumValue": "ready" + } + }, + "RECOVERING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "recovering" } } }, - "traits": { - "smithy.api#input": {} - } + "traits": {} }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdUsageResponsePeriod": { - "type": "structure", + "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataConnectionsItemKind": { + "type": "enum", "members": { - "start": { - "target": "smithy.api#String", + "POSTGRES": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "postgres" } }, - "end": { - "target": "smithy.api#String", + "ACCELERATE": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "accelerate" } } }, "traits": {} }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdUsageResponseMetricsOperations": { + "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataConnectionsItemEndpointsDirect": { "type": "structure", "members": { - "used": { - "target": "smithy.api#Double", + "host": { + "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "unit": { - "target": "smithy.api#String", + "port": { + "target": "smithy.api#Double", "traits": { "smithy.api#required": {} } @@ -7953,17 +8142,17 @@ }, "traits": {} }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdUsageResponseMetricsStorage": { + "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataConnectionsItemEndpointsPooled": { "type": "structure", "members": { - "used": { - "target": "smithy.api#Double", + "host": { + "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "unit": { - "target": "smithy.api#String", + "port": { + "target": "smithy.api#Double", "traits": { "smithy.api#required": {} } @@ -7971,17 +8160,17 @@ }, "traits": {} }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdUsageResponseMetrics": { + "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataConnectionsItemEndpointsAccelerate": { "type": "structure", "members": { - "operations": { - "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdUsageResponseMetricsOperations", + "host": { + "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "storage": { - "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdUsageResponseMetricsStorage", + "port": { + "target": "smithy.api#Double", "traits": { "smithy.api#required": {} } @@ -7989,22 +8178,37 @@ }, "traits": {} }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdUsageResponse": { + "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataConnectionsItemEndpoints": { "type": "structure", "members": { - "period": { - "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdUsageResponsePeriod", + "direct": { + "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataConnectionsItemEndpointsDirect" + }, + "pooled": { + "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataConnectionsItemEndpointsPooled" + }, + "accelerate": { + "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataConnectionsItemEndpointsAccelerate" + } + }, + "traits": {} + }, + "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataConnectionsItemDirectConnection": { + "type": "structure", + "members": { + "host": { + "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "metrics": { - "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdUsageResponseMetrics", + "pass": { + "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "generatedAt": { + "user": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} @@ -8012,74 +8216,34 @@ } }, "traits": { - "smithy.api#output": {} - } - }, - "com.prisma.postgres#GetV1DatabasesByDatabaseIdUsage": { - "type": "operation", - "input": { - "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdUsageRequest" - }, - "output": { - "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdUsageResponse" - }, - "errors": [ - { - "target": "com.prisma.postgres#BadRequest" - }, - { - "target": "com.prisma.postgres#NotFound" - }, - { - "target": "com.prisma.postgres#UnprocessableEntity" - } - ], - "traits": { - "smithy.api#http": { - "method": "GET", - "uri": "/v1/databases/{databaseId}/usage", - "code": 200 - }, - "smithy.api#documentation": "Get database usage metrics\n\nReturns usage metrics for the specified database." + "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead." } }, - "com.prisma.postgres#GetV1DeploymentsByDeploymentIdRequest": { + "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataConnectionsItemDatabase": { "type": "structure", "members": { - "deploymentId": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "url": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "name": { "target": "smithy.api#String", "traits": { - "smithy.api#httpLabel": {}, "smithy.api#required": {} } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.prisma.postgres#GetV1DeploymentsByDeploymentIdResponseDataEnvVarsMap": { - "type": "map", - "key": { - "target": "smithy.api#String" - }, - "value": { - "target": "smithy.api#String" - }, - "traits": { - "smithy.api#documentation": "Environment variable names present on this compute version. Values are always redacted as \"[redacted]\" and must not be treated as deployed secret values." - } - }, - "com.prisma.postgres#GetV1DeploymentsByDeploymentIdResponseDataPortMapping": { - "type": "structure", - "members": { - "http": { - "target": "smithy.api#Double" } }, "traits": {} }, - "com.prisma.postgres#GetV1DeploymentsByDeploymentIdResponseData": { + "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataConnectionsItem": { "type": "structure", "members": { "id": { @@ -8100,157 +8264,258 @@ "smithy.api#required": {} } }, - "foundryVersionId": { + "name": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "status": { + "createdAt": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "previewDomain": { - "target": "smithy.api#String", + "kind": { + "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataConnectionsItemKind", "traits": { - "smithy.api#required": {}, - "com.distilled.openapi#nullable": {} + "smithy.api#required": {} } }, - "envVars": { - "target": "com.prisma.postgres#GetV1DeploymentsByDeploymentIdResponseDataEnvVarsMap", + "endpoints": { + "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataConnectionsItemEndpoints", "traits": { - "smithy.api#documentation": "Environment variable names present on this compute version. Values are always redacted as \"[redacted]\" and must not be treated as deployed secret values." + "smithy.api#required": {} } }, - "portMapping": { - "target": "com.prisma.postgres#GetV1DeploymentsByDeploymentIdResponseDataPortMapping" - }, - "createdAt": { - "target": "smithy.api#String", + "directConnection": { + "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataConnectionsItemDirectConnection", "traits": { - "smithy.api#required": {} + "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead.", + "com.distilled.openapi#nullable": {} + } + }, + "database": { + "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataConnectionsItemDatabase", + "traits": { + "smithy.api#required": {} } } }, "traits": {} }, - "com.prisma.postgres#GetV1DeploymentsByDeploymentIdResponse": { + "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataConnectionsList": { + "type": "list", + "member": { + "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataConnectionsItem" + }, + "traits": {} + }, + "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataProject": { "type": "structure", "members": { - "data": { - "target": "com.prisma.postgres#GetV1DeploymentsByDeploymentIdResponseData", + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "url": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "name": { + "target": "smithy.api#String", "traits": { "smithy.api#required": {} } } }, - "traits": { - "smithy.api#output": {} - } + "traits": {} }, - "com.prisma.postgres#GetV1DeploymentsByDeploymentId": { - "type": "operation", - "input": { - "target": "com.prisma.postgres#GetV1DeploymentsByDeploymentIdRequest" - }, - "output": { - "target": "com.prisma.postgres#GetV1DeploymentsByDeploymentIdResponse" - }, - "errors": [ - { - "target": "com.prisma.postgres#Forbidden" + "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataRegion": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } }, - { - "target": "com.prisma.postgres#NotFound" + "name": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } } - ], - "traits": { - "smithy.api#http": { - "method": "GET", - "uri": "/v1/deployments/{deploymentId}", - "code": 200 - }, - "smithy.api#documentation": "Get deployment\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nReturns a deployment by ID, including its current status derived from the underlying VM state." - } + }, + "traits": {} }, - "com.prisma.postgres#DeleteV1DeploymentsByDeploymentIdRequest": { + "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataSourceCase0": { "type": "structure", "members": { - "deploymentId": { + "type": { "target": "smithy.api#String", "traits": { - "smithy.api#httpLabel": {}, "smithy.api#required": {} } } }, - "traits": { - "smithy.api#input": {} - } + "traits": {} }, - "com.prisma.postgres#DeleteV1DeploymentsByDeploymentId": { - "type": "operation", - "input": { - "target": "com.prisma.postgres#DeleteV1DeploymentsByDeploymentIdRequest" - }, - "output": { - "target": "smithy.api#Unit" - }, - "errors": [ - { - "target": "com.prisma.postgres#Forbidden" + "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataSourceCase1": { + "type": "structure", + "members": { + "type": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } }, - { - "target": "com.prisma.postgres#NotFound" + "databaseId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } }, - { - "target": "com.prisma.postgres#Conflict" + "backupId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "ID of the backup to restore from", + "smithy.api#required": {} + } } - ], - "traits": { - "smithy.api#http": { - "method": "DELETE", - "uri": "/v1/deployments/{deploymentId}", - "code": 200 - }, - "smithy.api#documentation": "Delete deployment\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nPermanently deletes the deployment, its metadata, and any associated VM. The deployment must be stopped or in the `new` state before it can be deleted." - } + }, + "traits": {} }, - "com.prisma.postgres#PostV1DeploymentsByDeploymentIdStartRequest": { + "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataSourceCase2": { "type": "structure", "members": { - "deploymentId": { + "type": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "databaseId": { "target": "smithy.api#String", "traits": { - "smithy.api#httpLabel": {}, "smithy.api#required": {} } } }, - "traits": { - "smithy.api#input": {} - } + "traits": {} }, - "com.prisma.postgres#PostV1DeploymentsByDeploymentIdStartResponseData": { + "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataSource": { + "type": "union", + "members": { + "Case0": { + "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataSourceCase0" + }, + "Case1": { + "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataSourceCase1" + }, + "Case2": { + "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataSourceCase2" + } + }, + "traits": {} + }, + "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseData": { "type": "structure", "members": { - "previewDomain": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "type": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "url": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "name": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "status": { + "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataStatus", + "traits": { + "smithy.api#required": {} + } + }, + "createdAt": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "isDefault": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#required": {} + } + }, + "defaultConnectionId": { "target": "smithy.api#String", + "traits": { + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} + } + }, + "connections": { + "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataConnectionsList", + "traits": { + "smithy.api#required": {} + } + }, + "project": { + "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataProject", "traits": { "smithy.api#required": {} } + }, + "region": { + "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataRegion", + "traits": { + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} + } + }, + "source": { + "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseDataSource", + "traits": { + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} + } + }, + "branchId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} + } } }, "traits": {} }, - "com.prisma.postgres#PostV1DeploymentsByDeploymentIdStartResponse": { + "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponse": { "type": "structure", "members": { "data": { - "target": "com.prisma.postgres#PostV1DeploymentsByDeploymentIdStartResponseData", + "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponseData", "traits": { "smithy.api#required": {} } @@ -8260,13 +8525,13 @@ "smithy.api#output": {} } }, - "com.prisma.postgres#PostV1DeploymentsByDeploymentIdStart": { + "com.prisma.postgres#GetV1DatabasesByDatabaseId": { "type": "operation", "input": { - "target": "com.prisma.postgres#PostV1DeploymentsByDeploymentIdStartRequest" + "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdRequest" }, "output": { - "target": "com.prisma.postgres#PostV1DeploymentsByDeploymentIdStartResponse" + "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdResponse" }, "errors": [ { @@ -8276,182 +8541,3180 @@ "target": "com.prisma.postgres#NotFound" }, { - "target": "com.prisma.postgres#Conflict" + "target": "com.prisma.postgres#UnprocessableEntity" } ], "traits": { "smithy.api#http": { - "method": "POST", - "uri": "/v1/deployments/{deploymentId}/start", + "method": "GET", + "uri": "/v1/databases/{databaseId}", "code": 200 }, - "smithy.api#documentation": "Start deployment\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nRequests VM creation and startup for the deployment. The artifact must be uploaded before calling this endpoint. Returns a preview domain that becomes reachable once the VM is running. Poll the status endpoint until `running` is reached." + "smithy.api#documentation": "Get database\n\nReturns the database with the given ID." } }, - "com.prisma.postgres#PostV1DeploymentsByDeploymentIdStopRequest": { + "com.prisma.postgres#PatchV1DatabasesByDatabaseIdRequest": { "type": "structure", "members": { - "deploymentId": { + "databaseId": { "target": "smithy.api#String", "traits": { "smithy.api#httpLabel": {}, "smithy.api#required": {} } + }, + "name": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "New display name for the database" + } + }, + "branchId": { + "target": "smithy.api#String", + "traits": { + "com.distilled.openapi#nullable": {} + } + }, + "branchGitName": { + "target": "smithy.api#String", + "traits": { + "com.distilled.openapi#nullable": {} + } } }, "traits": { "smithy.api#input": {} } }, - "com.prisma.postgres#PostV1DeploymentsByDeploymentIdStop": { - "type": "operation", - "input": { - "target": "com.prisma.postgres#PostV1DeploymentsByDeploymentIdStopRequest" - }, - "output": { - "target": "smithy.api#Unit" - }, - "errors": [ - { - "target": "com.prisma.postgres#Forbidden" + "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataStatus": { + "type": "enum", + "members": { + "FAILURE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "failure" + } }, - { - "target": "com.prisma.postgres#NotFound" + "PROVISIONING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "provisioning" + } }, - { - "target": "com.prisma.postgres#Conflict" - } - ], - "traits": { - "smithy.api#http": { - "method": "POST", - "uri": "/v1/deployments/{deploymentId}/stop", - "code": 200 + "READY": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ready" + } }, - "smithy.api#documentation": "Stop deployment\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nRequests VM shutdown for the deployment. The deployment record and metadata are retained. Poll the status endpoint until `stopped` is reached." - } + "RECOVERING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "recovering" + } + } + }, + "traits": {} }, - "com.prisma.postgres#GetV1DeploymentsByDeploymentIdLogsRequestFromStart": { + "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataConnectionsItemKind": { "type": "enum", "members": { - "TRUE": { + "POSTGRES": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "true" + "smithy.api#enumValue": "postgres" } }, - "FALSE": { + "ACCELERATE": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "false" + "smithy.api#enumValue": "accelerate" } } }, "traits": {} }, - "com.prisma.postgres#GetV1DeploymentsByDeploymentIdLogsRequest": { + "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataConnectionsItemEndpointsDirect": { "type": "structure", "members": { - "deploymentId": { + "host": { "target": "smithy.api#String", "traits": { - "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "tail": { - "target": "smithy.api#Integer", + "port": { + "target": "smithy.api#Double", "traits": { - "smithy.api#httpQuery": "tail" + "smithy.api#required": {} } - }, - "from_start": { - "target": "com.prisma.postgres#GetV1DeploymentsByDeploymentIdLogsRequestFromStart", + } + }, + "traits": {} + }, + "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataConnectionsItemEndpointsPooled": { + "type": "structure", + "members": { + "host": { + "target": "smithy.api#String", "traits": { - "smithy.api#httpQuery": "from_start" + "smithy.api#required": {} } }, - "cursor": { - "target": "smithy.api#String", + "port": { + "target": "smithy.api#Double", "traits": { - "smithy.api#httpQuery": "cursor" + "smithy.api#required": {} } } }, - "traits": { - "smithy.api#input": {} - } + "traits": {} }, - "com.prisma.postgres#GetV1DeploymentsByDeploymentIdLogs": { - "type": "operation", - "input": { - "target": "com.prisma.postgres#GetV1DeploymentsByDeploymentIdLogsRequest" + "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataConnectionsItemEndpointsAccelerate": { + "type": "structure", + "members": { + "host": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "port": { + "target": "smithy.api#Double", + "traits": { + "smithy.api#required": {} + } + } }, - "output": { - "target": "smithy.api#Unit" + "traits": {} + }, + "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataConnectionsItemEndpoints": { + "type": "structure", + "members": { + "direct": { + "target": "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataConnectionsItemEndpointsDirect" + }, + "pooled": { + "target": "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataConnectionsItemEndpointsPooled" + }, + "accelerate": { + "target": "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataConnectionsItemEndpointsAccelerate" + } }, - "errors": [ - { - "target": "com.prisma.postgres#Forbidden" + "traits": {} + }, + "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataConnectionsItemDirectConnection": { + "type": "structure", + "members": { + "host": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } }, - { - "target": "com.prisma.postgres#NotFound" + "pass": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "user": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } } - ], + }, "traits": { - "smithy.api#http": { - "method": "GET", - "uri": "/v1/deployments/{deploymentId}/logs", - "code": 200 - }, - "smithy.api#documentation": "Stream deployment logs via WebSocket\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nUpgrades to a WebSocket connection that streams log output for the specified deployment. Each message is a JSON object with `type: \"log\"` (log text + byte metadata) or `type: \"terminal\"` (end-of-segment signal with reconnect cursor). The stream ends after 10 minutes; reconnect with the `cursor` query parameter to continue." + "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead." } }, - "com.prisma.postgres#GetV1ProjectsRequest": { + "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataConnectionsItemDatabase": { "type": "structure", "members": { - "cursor": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "url": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "name": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataConnectionsItem": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "type": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "url": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "name": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "createdAt": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "kind": { + "target": "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataConnectionsItemKind", + "traits": { + "smithy.api#required": {} + } + }, + "endpoints": { + "target": "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataConnectionsItemEndpoints", + "traits": { + "smithy.api#required": {} + } + }, + "directConnection": { + "target": "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataConnectionsItemDirectConnection", + "traits": { + "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead.", + "com.distilled.openapi#nullable": {} + } + }, + "database": { + "target": "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataConnectionsItemDatabase", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataConnectionsList": { + "type": "list", + "member": { + "target": "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataConnectionsItem" + }, + "traits": {} + }, + "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataProject": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "url": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "name": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataRegion": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "name": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataSourceCase0": { + "type": "structure", + "members": { + "type": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataSourceCase1": { + "type": "structure", + "members": { + "type": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "databaseId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "backupId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "ID of the backup to restore from", + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataSourceCase2": { + "type": "structure", + "members": { + "type": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "databaseId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataSource": { + "type": "union", + "members": { + "Case0": { + "target": "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataSourceCase0" + }, + "Case1": { + "target": "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataSourceCase1" + }, + "Case2": { + "target": "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataSourceCase2" + } + }, + "traits": {} + }, + "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseData": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "type": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "url": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "name": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "status": { + "target": "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataStatus", + "traits": { + "smithy.api#required": {} + } + }, + "createdAt": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "isDefault": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#required": {} + } + }, + "defaultConnectionId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} + } + }, + "connections": { + "target": "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataConnectionsList", + "traits": { + "smithy.api#required": {} + } + }, + "project": { + "target": "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataProject", + "traits": { + "smithy.api#required": {} + } + }, + "region": { + "target": "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataRegion", + "traits": { + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} + } + }, + "source": { + "target": "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseDataSource", + "traits": { + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} + } + }, + "branchId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponse": { + "type": "structure", + "members": { + "data": { + "target": "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponseData", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.prisma.postgres#PatchV1DatabasesByDatabaseId": { + "type": "operation", + "input": { + "target": "com.prisma.postgres#PatchV1DatabasesByDatabaseIdRequest" + }, + "output": { + "target": "com.prisma.postgres#PatchV1DatabasesByDatabaseIdResponse" + }, + "errors": [ + { + "target": "com.prisma.postgres#Forbidden" + }, + { + "target": "com.prisma.postgres#NotFound" + }, + { + "target": "com.prisma.postgres#UnprocessableEntity" + } + ], + "traits": { + "smithy.api#http": { + "method": "PATCH", + "uri": "/v1/databases/{databaseId}", + "code": 200 + }, + "smithy.api#documentation": "Update database\n\nUpdates the database with the given ID." + } + }, + "com.prisma.postgres#DeleteV1DatabasesByDatabaseIdRequest": { + "type": "structure", + "members": { + "databaseId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.prisma.postgres#DeleteV1DatabasesByDatabaseId": { + "type": "operation", + "input": { + "target": "com.prisma.postgres#DeleteV1DatabasesByDatabaseIdRequest" + }, + "output": { + "target": "smithy.api#Unit" + }, + "errors": [ + { + "target": "com.prisma.postgres#Forbidden" + }, + { + "target": "com.prisma.postgres#NotFound" + }, + { + "target": "com.prisma.postgres#UnprocessableEntity" + } + ], + "traits": { + "smithy.api#http": { + "method": "DELETE", + "uri": "/v1/databases/{databaseId}", + "code": 200 + }, + "smithy.api#documentation": "Delete database\n\nDeletes the database with the given ID." + } + }, + "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsRequest": { + "type": "structure", + "members": { + "databaseId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "cursor": { + "target": "smithy.api#String", + "traits": { + "smithy.api#httpQuery": "cursor" + } + }, + "limit": { + "target": "smithy.api#Double", + "traits": { + "smithy.api#httpQuery": "limit" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsResponseDataItemKind": { + "type": "enum", + "members": { + "POSTGRES": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "postgres" + } + }, + "ACCELERATE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "accelerate" + } + } + }, + "traits": {} + }, + "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsResponseDataItemEndpointsDirect": { + "type": "structure", + "members": { + "host": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "port": { + "target": "smithy.api#Double", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsResponseDataItemEndpointsPooled": { + "type": "structure", + "members": { + "host": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "port": { + "target": "smithy.api#Double", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsResponseDataItemEndpointsAccelerate": { + "type": "structure", + "members": { + "host": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "port": { + "target": "smithy.api#Double", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsResponseDataItemEndpoints": { + "type": "structure", + "members": { + "direct": { + "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsResponseDataItemEndpointsDirect" + }, + "pooled": { + "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsResponseDataItemEndpointsPooled" + }, + "accelerate": { + "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsResponseDataItemEndpointsAccelerate" + } + }, + "traits": {} + }, + "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsResponseDataItemDirectConnection": { + "type": "structure", + "members": { + "host": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "pass": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "user": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead." + } + }, + "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsResponseDataItemDatabase": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "url": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "name": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsResponseDataItem": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "type": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "url": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "name": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "createdAt": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "kind": { + "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsResponseDataItemKind", + "traits": { + "smithy.api#required": {} + } + }, + "endpoints": { + "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsResponseDataItemEndpoints", + "traits": { + "smithy.api#required": {} + } + }, + "directConnection": { + "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsResponseDataItemDirectConnection", + "traits": { + "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead.", + "com.distilled.openapi#nullable": {} + } + }, + "database": { + "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsResponseDataItemDatabase", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsResponseDataList": { + "type": "list", + "member": { + "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsResponseDataItem" + }, + "traits": {} + }, + "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsResponsePagination": { + "type": "structure", + "members": { + "nextCursor": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "Next cursor to continue pagination", + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} + } + }, + "hasMore": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "Whether there are more items to paginate", + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsResponse": { + "type": "structure", + "members": { + "data": { + "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsResponseDataList", + "traits": { + "smithy.api#required": {} + } + }, + "pagination": { + "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsResponsePagination", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnections": { + "type": "operation", + "input": { + "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsRequest" + }, + "output": { + "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdConnectionsResponse" + }, + "errors": [ + { + "target": "com.prisma.postgres#UnprocessableEntity" + } + ], + "traits": { + "smithy.api#http": { + "method": "GET", + "uri": "/v1/databases/{databaseId}/connections", + "code": 200 + }, + "smithy.api#documentation": "Get list of database connections\n\nReturns all connections for the given database." + } + }, + "com.prisma.postgres#PostV1DatabasesByDatabaseIdConnectionsRequest": { + "type": "structure", + "members": { + "databaseId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "name": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.prisma.postgres#PostV1DatabasesByDatabaseIdConnectionsResponseDataKind": { + "type": "enum", + "members": { + "POSTGRES": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "postgres" + } + }, + "ACCELERATE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "accelerate" + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1DatabasesByDatabaseIdConnectionsResponseDataEndpointsDirect": { + "type": "structure", + "members": { + "host": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "port": { + "target": "smithy.api#Double", + "traits": { + "smithy.api#required": {} + } + }, + "connectionString": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {}, + "smithy.api#sensitive": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1DatabasesByDatabaseIdConnectionsResponseDataEndpointsPooled": { + "type": "structure", + "members": { + "host": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "port": { + "target": "smithy.api#Double", + "traits": { + "smithy.api#required": {} + } + }, + "connectionString": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {}, + "smithy.api#sensitive": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1DatabasesByDatabaseIdConnectionsResponseDataEndpointsAccelerate": { + "type": "structure", + "members": { + "host": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "port": { + "target": "smithy.api#Double", + "traits": { + "smithy.api#required": {} + } + }, + "connectionString": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {}, + "smithy.api#sensitive": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1DatabasesByDatabaseIdConnectionsResponseDataEndpoints": { + "type": "structure", + "members": { + "direct": { + "target": "com.prisma.postgres#PostV1DatabasesByDatabaseIdConnectionsResponseDataEndpointsDirect" + }, + "pooled": { + "target": "com.prisma.postgres#PostV1DatabasesByDatabaseIdConnectionsResponseDataEndpointsPooled" + }, + "accelerate": { + "target": "com.prisma.postgres#PostV1DatabasesByDatabaseIdConnectionsResponseDataEndpointsAccelerate" + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1DatabasesByDatabaseIdConnectionsResponseDataDirectConnection": { + "type": "structure", + "members": { + "host": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "pass": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "user": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead." + } + }, + "com.prisma.postgres#PostV1DatabasesByDatabaseIdConnectionsResponseDataDatabase": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "url": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "name": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1DatabasesByDatabaseIdConnectionsResponseData": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "type": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "url": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "name": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "createdAt": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "kind": { + "target": "com.prisma.postgres#PostV1DatabasesByDatabaseIdConnectionsResponseDataKind", + "traits": { + "smithy.api#required": {} + } + }, + "endpoints": { + "target": "com.prisma.postgres#PostV1DatabasesByDatabaseIdConnectionsResponseDataEndpoints", + "traits": { + "smithy.api#required": {} + } + }, + "connectionString": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "Deprecated: use `endpoints.direct.connectionString` or `endpoints.pooled.connectionString` instead.", + "smithy.api#required": {}, + "smithy.api#sensitive": {} + } + }, + "directConnection": { + "target": "com.prisma.postgres#PostV1DatabasesByDatabaseIdConnectionsResponseDataDirectConnection", + "traits": { + "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead.", + "com.distilled.openapi#nullable": {} + } + }, + "database": { + "target": "com.prisma.postgres#PostV1DatabasesByDatabaseIdConnectionsResponseDataDatabase", + "traits": { + "smithy.api#required": {} + } + }, + "host": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead.", + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} + } + }, + "pass": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "Deprecated: use `endpoints.direct.connectionString` or `endpoints.pooled.connectionString` instead.", + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} + } + }, + "user": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "Deprecated: use `endpoints.direct.connectionString` or `endpoints.pooled.connectionString` instead.", + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1DatabasesByDatabaseIdConnectionsResponse": { + "type": "structure", + "members": { + "data": { + "target": "com.prisma.postgres#PostV1DatabasesByDatabaseIdConnectionsResponseData", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.prisma.postgres#PostV1DatabasesByDatabaseIdConnections": { + "type": "operation", + "input": { + "target": "com.prisma.postgres#PostV1DatabasesByDatabaseIdConnectionsRequest" + }, + "output": { + "target": "com.prisma.postgres#PostV1DatabasesByDatabaseIdConnectionsResponse" + }, + "errors": [ + { + "target": "com.prisma.postgres#NotFound" + }, + { + "target": "com.prisma.postgres#UnprocessableEntity" + } + ], + "traits": { + "smithy.api#http": { + "method": "POST", + "uri": "/v1/databases/{databaseId}/connections", + "code": 200 + }, + "smithy.api#documentation": "Create database connection string\n\nCreates a new connection string for the given database." + } + }, + "com.prisma.postgres#GetV1DatabasesByDatabaseIdBackupsRequest": { + "type": "structure", + "members": { + "databaseId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "limit": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#httpQuery": "limit" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.prisma.postgres#GetV1DatabasesByDatabaseIdBackupsResponseDataItemBackupType": { + "type": "enum", + "members": { + "FULL": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "full" + } + }, + "INCREMENTAL": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "incremental" + } + }, + "DIFFERENTIAL": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "differential" + } + } + }, + "traits": { + "smithy.api#documentation": "Type of backup" + } + }, + "com.prisma.postgres#GetV1DatabasesByDatabaseIdBackupsResponseDataItemStatus": { + "type": "enum", + "members": { + "RUNNING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "running" + } + }, + "COMPLETED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "completed" + } + }, + "FAILED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "failed" + } + }, + "UNKNOWN": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "unknown" + } + } + }, + "traits": { + "smithy.api#documentation": "Status of backup instance" + } + }, + "com.prisma.postgres#GetV1DatabasesByDatabaseIdBackupsResponseDataItem": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "The unique identifier for this backup", + "smithy.api#required": {} + } + }, + "backupType": { + "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdBackupsResponseDataItemBackupType", + "traits": { + "smithy.api#documentation": "Type of backup", + "smithy.api#required": {} + } + }, + "createdAt": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "Timestamp when the backup was created", + "smithy.api#required": {} + } + }, + "size": { + "target": "smithy.api#Double", + "traits": { + "smithy.api#documentation": "Total file size (in MiB) of gzipped backup files" + } + }, + "status": { + "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdBackupsResponseDataItemStatus", + "traits": { + "smithy.api#documentation": "Status of backup instance", + "smithy.api#required": {} + } + }, + "type": { + "target": "smithy.api#String" + } + }, + "traits": {} + }, + "com.prisma.postgres#GetV1DatabasesByDatabaseIdBackupsResponseDataList": { + "type": "list", + "member": { + "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdBackupsResponseDataItem" + }, + "traits": {} + }, + "com.prisma.postgres#GetV1DatabasesByDatabaseIdBackupsResponseMeta": { + "type": "structure", + "members": { + "backupRetentionDays": { + "target": "smithy.api#Double", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#GetV1DatabasesByDatabaseIdBackupsResponsePagination": { + "type": "structure", + "members": { + "hasMore": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#required": {} + } + }, + "limit": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#GetV1DatabasesByDatabaseIdBackupsResponse": { + "type": "structure", + "members": { + "data": { + "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdBackupsResponseDataList", + "traits": { + "smithy.api#required": {} + } + }, + "meta": { + "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdBackupsResponseMeta", + "traits": { + "smithy.api#required": {} + } + }, + "pagination": { + "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdBackupsResponsePagination", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.prisma.postgres#GetV1DatabasesByDatabaseIdBackups": { + "type": "operation", + "input": { + "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdBackupsRequest" + }, + "output": { + "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdBackupsResponse" + }, + "errors": [ + { + "target": "com.prisma.postgres#NotFound" + }, + { + "target": "com.prisma.postgres#UnprocessableEntity" + } + ], + "traits": { + "smithy.api#http": { + "method": "GET", + "uri": "/v1/databases/{databaseId}/backups", + "code": 200 + }, + "smithy.api#documentation": "Get list of backups\n\nReturns backups for the specified database." + } + }, + "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreRequestSource": { + "type": "structure", + "members": { + "type": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "databaseId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "ID of the database the backup belongs to", + "smithy.api#required": {} + } + }, + "backupId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "ID of the backup to restore from", + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreRequest": { + "type": "structure", + "members": { + "targetDatabaseId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "source": { + "target": "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreRequestSource", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataStatus": { + "type": "enum", + "members": { + "FAILURE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "failure" + } + }, + "PROVISIONING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "provisioning" + } + }, + "READY": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ready" + } + }, + "RECOVERING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "recovering" + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataConnectionsItemKind": { + "type": "enum", + "members": { + "POSTGRES": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "postgres" + } + }, + "ACCELERATE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "accelerate" + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataConnectionsItemEndpointsDirect": { + "type": "structure", + "members": { + "host": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "port": { + "target": "smithy.api#Double", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataConnectionsItemEndpointsPooled": { + "type": "structure", + "members": { + "host": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "port": { + "target": "smithy.api#Double", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataConnectionsItemEndpointsAccelerate": { + "type": "structure", + "members": { + "host": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "port": { + "target": "smithy.api#Double", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataConnectionsItemEndpoints": { + "type": "structure", + "members": { + "direct": { + "target": "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataConnectionsItemEndpointsDirect" + }, + "pooled": { + "target": "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataConnectionsItemEndpointsPooled" + }, + "accelerate": { + "target": "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataConnectionsItemEndpointsAccelerate" + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataConnectionsItemDirectConnection": { + "type": "structure", + "members": { + "host": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "pass": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "user": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead." + } + }, + "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataConnectionsItemDatabase": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "url": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "name": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataConnectionsItem": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "type": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "url": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "name": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "createdAt": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "kind": { + "target": "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataConnectionsItemKind", + "traits": { + "smithy.api#required": {} + } + }, + "endpoints": { + "target": "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataConnectionsItemEndpoints", + "traits": { + "smithy.api#required": {} + } + }, + "directConnection": { + "target": "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataConnectionsItemDirectConnection", + "traits": { + "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead.", + "com.distilled.openapi#nullable": {} + } + }, + "database": { + "target": "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataConnectionsItemDatabase", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataConnectionsList": { + "type": "list", + "member": { + "target": "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataConnectionsItem" + }, + "traits": {} + }, + "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataProject": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "url": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "name": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataRegion": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "name": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataSource": { + "type": "structure", + "members": { + "type": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "databaseId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "backupId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseData": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "type": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "url": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "name": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "status": { + "target": "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataStatus", + "traits": { + "smithy.api#required": {} + } + }, + "createdAt": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "isDefault": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#required": {} + } + }, + "defaultConnectionId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} + } + }, + "connections": { + "target": "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataConnectionsList", + "traits": { + "smithy.api#required": {} + } + }, + "project": { + "target": "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataProject", + "traits": { + "smithy.api#required": {} + } + }, + "region": { + "target": "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataRegion", + "traits": { + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} + } + }, + "source": { + "target": "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseDataSource", + "traits": { + "smithy.api#required": {} + } + }, + "branchId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponse": { + "type": "structure", + "members": { + "data": { + "target": "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponseData", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestore": { + "type": "operation", + "input": { + "target": "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreRequest" + }, + "output": { + "target": "com.prisma.postgres#PostV1DatabasesByTargetDatabaseIdRestoreResponse" + }, + "errors": [ + { + "target": "com.prisma.postgres#NotFound" + }, + { + "target": "com.prisma.postgres#Conflict" + }, + { + "target": "com.prisma.postgres#UnprocessableEntity" + } + ], + "traits": { + "smithy.api#http": { + "method": "POST", + "uri": "/v1/databases/{targetDatabaseId}/restore", + "code": 200 + }, + "smithy.api#documentation": "Restore database (destructive)\n\n⚠️ **Destructive operation** — this immediately and irreversibly overwrites all data in the target database with the contents of the specified backup. Any data written since the backup was taken will be lost. Ensure you have a recent backup of the target database before proceeding.\n\nReplaces the data in an existing database from a backup. Connections and credentials are preserved — only the data layer is replaced." + } + }, + "com.prisma.postgres#GetV1DatabasesByDatabaseIdUsageRequest": { + "type": "structure", + "members": { + "databaseId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "startDate": { + "target": "smithy.api#String", + "traits": { + "smithy.api#httpQuery": "startDate" + } + }, + "endDate": { + "target": "smithy.api#String", + "traits": { + "smithy.api#httpQuery": "endDate" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.prisma.postgres#GetV1DatabasesByDatabaseIdUsageResponsePeriod": { + "type": "structure", + "members": { + "start": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "end": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#GetV1DatabasesByDatabaseIdUsageResponseMetricsOperations": { + "type": "structure", + "members": { + "used": { + "target": "smithy.api#Double", + "traits": { + "smithy.api#required": {} + } + }, + "unit": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#GetV1DatabasesByDatabaseIdUsageResponseMetricsStorage": { + "type": "structure", + "members": { + "used": { + "target": "smithy.api#Double", + "traits": { + "smithy.api#required": {} + } + }, + "unit": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#GetV1DatabasesByDatabaseIdUsageResponseMetrics": { + "type": "structure", + "members": { + "operations": { + "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdUsageResponseMetricsOperations", + "traits": { + "smithy.api#required": {} + } + }, + "storage": { + "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdUsageResponseMetricsStorage", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#GetV1DatabasesByDatabaseIdUsageResponse": { + "type": "structure", + "members": { + "period": { + "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdUsageResponsePeriod", + "traits": { + "smithy.api#required": {} + } + }, + "metrics": { + "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdUsageResponseMetrics", + "traits": { + "smithy.api#required": {} + } + }, + "generatedAt": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.prisma.postgres#GetV1DatabasesByDatabaseIdUsage": { + "type": "operation", + "input": { + "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdUsageRequest" + }, + "output": { + "target": "com.prisma.postgres#GetV1DatabasesByDatabaseIdUsageResponse" + }, + "errors": [ + { + "target": "com.prisma.postgres#BadRequest" + }, + { + "target": "com.prisma.postgres#NotFound" + }, + { + "target": "com.prisma.postgres#UnprocessableEntity" + } + ], + "traits": { + "smithy.api#http": { + "method": "GET", + "uri": "/v1/databases/{databaseId}/usage", + "code": 200 + }, + "smithy.api#documentation": "Get database usage metrics\n\nReturns usage metrics for the specified database." + } + }, + "com.prisma.postgres#GetV1DeploymentsByDeploymentIdRequest": { + "type": "structure", + "members": { + "deploymentId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.prisma.postgres#GetV1DeploymentsByDeploymentIdResponseDataEnvVarsMap": { + "type": "map", + "key": { + "target": "smithy.api#String" + }, + "value": { + "target": "smithy.api#String" + }, + "traits": { + "smithy.api#documentation": "Environment variable names present on this compute version. Values are always redacted as \"[redacted]\" and must not be treated as deployed secret values." + } + }, + "com.prisma.postgres#GetV1DeploymentsByDeploymentIdResponseDataPortMapping": { + "type": "structure", + "members": { + "http": { + "target": "smithy.api#Double" + } + }, + "traits": {} + }, + "com.prisma.postgres#GetV1DeploymentsByDeploymentIdResponseData": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "type": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "url": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "foundryVersionId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "status": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "previewDomain": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} + } + }, + "envVars": { + "target": "com.prisma.postgres#GetV1DeploymentsByDeploymentIdResponseDataEnvVarsMap", + "traits": { + "smithy.api#documentation": "Environment variable names present on this compute version. Values are always redacted as \"[redacted]\" and must not be treated as deployed secret values." + } + }, + "portMapping": { + "target": "com.prisma.postgres#GetV1DeploymentsByDeploymentIdResponseDataPortMapping" + }, + "createdAt": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#GetV1DeploymentsByDeploymentIdResponse": { + "type": "structure", + "members": { + "data": { + "target": "com.prisma.postgres#GetV1DeploymentsByDeploymentIdResponseData", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.prisma.postgres#GetV1DeploymentsByDeploymentId": { + "type": "operation", + "input": { + "target": "com.prisma.postgres#GetV1DeploymentsByDeploymentIdRequest" + }, + "output": { + "target": "com.prisma.postgres#GetV1DeploymentsByDeploymentIdResponse" + }, + "errors": [ + { + "target": "com.prisma.postgres#Forbidden" + }, + { + "target": "com.prisma.postgres#NotFound" + } + ], + "traits": { + "smithy.api#http": { + "method": "GET", + "uri": "/v1/deployments/{deploymentId}", + "code": 200 + }, + "smithy.api#documentation": "Get deployment\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nReturns a deployment by ID, including its current status derived from the underlying VM state." + } + }, + "com.prisma.postgres#DeleteV1DeploymentsByDeploymentIdRequest": { + "type": "structure", + "members": { + "deploymentId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.prisma.postgres#DeleteV1DeploymentsByDeploymentId": { + "type": "operation", + "input": { + "target": "com.prisma.postgres#DeleteV1DeploymentsByDeploymentIdRequest" + }, + "output": { + "target": "smithy.api#Unit" + }, + "errors": [ + { + "target": "com.prisma.postgres#Forbidden" + }, + { + "target": "com.prisma.postgres#NotFound" + }, + { + "target": "com.prisma.postgres#Conflict" + } + ], + "traits": { + "smithy.api#http": { + "method": "DELETE", + "uri": "/v1/deployments/{deploymentId}", + "code": 200 + }, + "smithy.api#documentation": "Delete deployment\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nPermanently deletes the deployment, its metadata, and any associated VM. The deployment must be stopped or in the `new` state before it can be deleted." + } + }, + "com.prisma.postgres#PostV1DeploymentsByDeploymentIdStartRequest": { + "type": "structure", + "members": { + "deploymentId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.prisma.postgres#PostV1DeploymentsByDeploymentIdStartResponseData": { + "type": "structure", + "members": { + "previewDomain": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1DeploymentsByDeploymentIdStartResponse": { + "type": "structure", + "members": { + "data": { + "target": "com.prisma.postgres#PostV1DeploymentsByDeploymentIdStartResponseData", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.prisma.postgres#PostV1DeploymentsByDeploymentIdStart": { + "type": "operation", + "input": { + "target": "com.prisma.postgres#PostV1DeploymentsByDeploymentIdStartRequest" + }, + "output": { + "target": "com.prisma.postgres#PostV1DeploymentsByDeploymentIdStartResponse" + }, + "errors": [ + { + "target": "com.prisma.postgres#Forbidden" + }, + { + "target": "com.prisma.postgres#NotFound" + }, + { + "target": "com.prisma.postgres#Conflict" + } + ], + "traits": { + "smithy.api#http": { + "method": "POST", + "uri": "/v1/deployments/{deploymentId}/start", + "code": 200 + }, + "smithy.api#documentation": "Start deployment\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nRequests VM creation and startup for the deployment. The artifact must be uploaded before calling this endpoint. Returns a preview domain that becomes reachable once the VM is running. Poll the status endpoint until `running` is reached." + } + }, + "com.prisma.postgres#PostV1DeploymentsByDeploymentIdStopRequest": { + "type": "structure", + "members": { + "deploymentId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.prisma.postgres#PostV1DeploymentsByDeploymentIdStop": { + "type": "operation", + "input": { + "target": "com.prisma.postgres#PostV1DeploymentsByDeploymentIdStopRequest" + }, + "output": { + "target": "smithy.api#Unit" + }, + "errors": [ + { + "target": "com.prisma.postgres#Forbidden" + }, + { + "target": "com.prisma.postgres#NotFound" + }, + { + "target": "com.prisma.postgres#Conflict" + } + ], + "traits": { + "smithy.api#http": { + "method": "POST", + "uri": "/v1/deployments/{deploymentId}/stop", + "code": 200 + }, + "smithy.api#documentation": "Stop deployment\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nRequests VM shutdown for the deployment. The deployment record and metadata are retained. Poll the status endpoint until `stopped` is reached." + } + }, + "com.prisma.postgres#GetV1DeploymentsByDeploymentIdLogsRequestFromStart": { + "type": "enum", + "members": { + "TRUE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "true" + } + }, + "FALSE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "false" + } + } + }, + "traits": {} + }, + "com.prisma.postgres#GetV1DeploymentsByDeploymentIdLogsRequest": { + "type": "structure", + "members": { + "deploymentId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "tail": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#httpQuery": "tail" + } + }, + "from_start": { + "target": "com.prisma.postgres#GetV1DeploymentsByDeploymentIdLogsRequestFromStart", + "traits": { + "smithy.api#httpQuery": "from_start" + } + }, + "cursor": { + "target": "smithy.api#String", + "traits": { + "smithy.api#httpQuery": "cursor" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.prisma.postgres#GetV1DeploymentsByDeploymentIdLogs": { + "type": "operation", + "input": { + "target": "com.prisma.postgres#GetV1DeploymentsByDeploymentIdLogsRequest" + }, + "output": { + "target": "smithy.api#Unit" + }, + "errors": [ + { + "target": "com.prisma.postgres#Forbidden" + }, + { + "target": "com.prisma.postgres#NotFound" + } + ], + "traits": { + "smithy.api#http": { + "method": "GET", + "uri": "/v1/deployments/{deploymentId}/logs", + "code": 200 + }, + "smithy.api#documentation": "Get deployment logs\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nReturns log output for the specified deployment. Each record is a JSON object with `type: \"log\"` (log text + byte metadata) or `type: \"terminal\"` (end-of-page signal with a resume cursor). A plain GET responds with newline-delimited JSON (`application/x-ndjson`): it drains the requested window (`tail`, `from_start`, or `cursor`), ends with a terminal record carrying the cursor for the next page, and closes. Send an `Upgrade: websocket` header to follow the log live instead; a live segment ends after 10 minutes with the same terminal/cursor mechanism." + } + }, + "com.prisma.postgres#GetV1ProjectsRequest": { + "type": "structure", + "members": { + "cursor": { + "target": "smithy.api#String", + "traits": { + "smithy.api#httpQuery": "cursor" + } + }, + "limit": { + "target": "smithy.api#Double", + "traits": { + "smithy.api#httpQuery": "limit" + } + }, + "logicalId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#httpQuery": "logicalId" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.prisma.postgres#GetV1ProjectsResponseDataItemWorkspace": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "url": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "name": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#GetV1ProjectsResponseDataItem": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "type": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "url": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "name": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "logicalId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} + } + }, + "createdAt": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "defaultRegion": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} + } + }, + "workspace": { + "target": "com.prisma.postgres#GetV1ProjectsResponseDataItemWorkspace", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#GetV1ProjectsResponseDataList": { + "type": "list", + "member": { + "target": "com.prisma.postgres#GetV1ProjectsResponseDataItem" + }, + "traits": {} + }, + "com.prisma.postgres#GetV1ProjectsResponsePagination": { + "type": "structure", + "members": { + "nextCursor": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "Next cursor to continue pagination", + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} + } + }, + "hasMore": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "Whether there are more items to paginate", + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#GetV1ProjectsResponse": { + "type": "structure", + "members": { + "data": { + "target": "com.prisma.postgres#GetV1ProjectsResponseDataList", + "traits": { + "smithy.api#required": {} + } + }, + "pagination": { + "target": "com.prisma.postgres#GetV1ProjectsResponsePagination", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.prisma.postgres#GetV1Projects": { + "type": "operation", + "input": { + "target": "com.prisma.postgres#GetV1ProjectsRequest" + }, + "output": { + "target": "com.prisma.postgres#GetV1ProjectsResponse" + }, + "traits": { + "smithy.api#http": { + "method": "GET", + "uri": "/v1/projects", + "code": 200 + }, + "smithy.api#documentation": "Get list of projects\n\nReturns the list of projects the token has access to." + } + }, + "com.prisma.postgres#PostV1ProjectsRequestRegion": { + "type": "enum", + "members": { + "US_EAST_1": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "us-east-1" + } + }, + "US_WEST_1": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "us-west-1" + } + }, + "EU_WEST_3": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "eu-west-3" + } + }, + "EU_CENTRAL_1": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "eu-central-1" + } + }, + "AP_NORTHEAST_1": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ap-northeast-1" + } + }, + "AP_SOUTHEAST_1": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ap-southeast-1" + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1ProjectsRequest": { + "type": "structure", + "members": { + "createDatabase": { + "target": "smithy.api#Boolean" + }, + "name": { + "target": "smithy.api#String" + }, + "region": { + "target": "com.prisma.postgres#PostV1ProjectsRequestRegion" + }, + "logicalId": { + "target": "smithy.api#String" + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.prisma.postgres#PostV1ProjectsResponseDataWorkspace": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "url": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "name": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseStatus": { + "type": "enum", + "members": { + "PROVISIONING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "provisioning" + } + }, + "READY": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ready" + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseConnectionsItemKind": { + "type": "enum", + "members": { + "POSTGRES": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "postgres" + } + }, + "ACCELERATE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "accelerate" + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseConnectionsItemEndpointsDirect": { + "type": "structure", + "members": { + "host": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "port": { + "target": "smithy.api#Double", + "traits": { + "smithy.api#required": {} + } + }, + "connectionString": { + "target": "smithy.api#String", + "traits": { + "smithy.api#sensitive": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseConnectionsItemEndpointsPooled": { + "type": "structure", + "members": { + "host": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "port": { + "target": "smithy.api#Double", + "traits": { + "smithy.api#required": {} + } + }, + "connectionString": { + "target": "smithy.api#String", + "traits": { + "smithy.api#sensitive": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseConnectionsItemEndpointsAccelerate": { + "type": "structure", + "members": { + "host": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "port": { + "target": "smithy.api#Double", + "traits": { + "smithy.api#required": {} + } + }, + "connectionString": { + "target": "smithy.api#String", + "traits": { + "smithy.api#sensitive": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseConnectionsItemEndpoints": { + "type": "structure", + "members": { + "direct": { + "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseConnectionsItemEndpointsDirect" + }, + "pooled": { + "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseConnectionsItemEndpointsPooled" + }, + "accelerate": { + "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseConnectionsItemEndpointsAccelerate" + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseConnectionsItemDirectConnection": { + "type": "structure", + "members": { + "host": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "pass": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "user": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead." + } + }, + "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseConnectionsItemDatabase": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "url": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "name": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseConnectionsItem": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "type": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "url": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "name": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "createdAt": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "kind": { + "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseConnectionsItemKind", + "traits": { + "smithy.api#required": {} + } + }, + "endpoints": { + "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseConnectionsItemEndpoints", + "traits": { + "smithy.api#required": {} + } + }, + "directConnection": { + "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseConnectionsItemDirectConnection", + "traits": { + "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead.", + "com.distilled.openapi#nullable": {} + } + }, + "database": { + "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseConnectionsItemDatabase", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseConnectionsList": { + "type": "list", + "member": { + "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseConnectionsItem" + }, + "traits": {} + }, + "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseRegion": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "name": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseSourceCase0": { + "type": "structure", + "members": { + "type": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseSourceCase1": { + "type": "structure", + "members": { + "type": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "databaseId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "backupId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "ID of the backup to restore from", + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseSourceCase2": { + "type": "structure", + "members": { + "type": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "databaseId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseSource": { + "type": "union", + "members": { + "Case0": { + "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseSourceCase0" + }, + "Case1": { + "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseSourceCase1" + }, + "Case2": { + "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseSourceCase2" + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseApiKeysItemKind": { + "type": "enum", + "members": { + "POSTGRES": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "postgres" + } + }, + "ACCELERATE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "accelerate" + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseApiKeysItemEndpointsDirect": { + "type": "structure", + "members": { + "host": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "port": { + "target": "smithy.api#Double", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseApiKeysItemEndpointsPooled": { + "type": "structure", + "members": { + "host": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "port": { + "target": "smithy.api#Double", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseApiKeysItemEndpointsAccelerate": { + "type": "structure", + "members": { + "host": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "port": { + "target": "smithy.api#Double", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseApiKeysItemEndpoints": { + "type": "structure", + "members": { + "direct": { + "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseApiKeysItemEndpointsDirect" + }, + "pooled": { + "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseApiKeysItemEndpointsPooled" + }, + "accelerate": { + "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseApiKeysItemEndpointsAccelerate" + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseApiKeysItemDirectConnection": { + "type": "structure", + "members": { + "host": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "pass": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "user": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead." + } + }, + "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseApiKeysItem": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "type": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "url": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "name": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "createdAt": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "kind": { + "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseApiKeysItemKind", + "traits": { + "smithy.api#required": {} + } + }, + "endpoints": { + "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseApiKeysItemEndpoints", + "traits": { + "smithy.api#required": {} + } + }, + "connectionString": { "target": "smithy.api#String", "traits": { - "smithy.api#httpQuery": "cursor" + "smithy.api#documentation": "Deprecated: use `endpoints.direct.connectionString` or `endpoints.pooled.connectionString` instead.", + "smithy.api#required": {}, + "smithy.api#sensitive": {} } }, - "limit": { - "target": "smithy.api#Double", + "directConnection": { + "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseApiKeysItemDirectConnection", "traits": { - "smithy.api#httpQuery": "limit" + "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead.", + "com.distilled.openapi#nullable": {} } } }, + "traits": {} + }, + "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseApiKeysList": { + "type": "list", + "member": { + "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseApiKeysItem" + }, "traits": { - "smithy.api#input": {} + "smithy.api#documentation": "Deprecated: use `connections[]` instead." } }, - "com.prisma.postgres#GetV1ProjectsResponseDataItemWorkspace": { + "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseDirectConnection": { "type": "structure", "members": { - "id": { + "host": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "url": { + "pass": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "name": { + "user": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } } }, - "traits": {} + "traits": { + "smithy.api#documentation": "Deprecated: use `connections[].endpoints.direct` instead." + } }, - "com.prisma.postgres#GetV1ProjectsResponseDataItem": { + "com.prisma.postgres#PostV1ProjectsResponseDataDatabase": { "type": "structure", "members": { "id": { @@ -8478,153 +11741,85 @@ "smithy.api#required": {} } }, - "createdAt": { - "target": "smithy.api#String", + "status": { + "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseStatus", "traits": { "smithy.api#required": {} } }, - "defaultRegion": { + "createdAt": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {}, - "com.distilled.openapi#nullable": {} + "smithy.api#required": {} } }, - "workspace": { - "target": "com.prisma.postgres#GetV1ProjectsResponseDataItemWorkspace", + "isDefault": { + "target": "smithy.api#Boolean", "traits": { "smithy.api#required": {} } - } - }, - "traits": {} - }, - "com.prisma.postgres#GetV1ProjectsResponseDataList": { - "type": "list", - "member": { - "target": "com.prisma.postgres#GetV1ProjectsResponseDataItem" - }, - "traits": {} - }, - "com.prisma.postgres#GetV1ProjectsResponsePagination": { - "type": "structure", - "members": { - "nextCursor": { + }, + "defaultConnectionId": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "Next cursor to continue pagination", "smithy.api#required": {}, "com.distilled.openapi#nullable": {} } }, - "hasMore": { - "target": "smithy.api#Boolean", - "traits": { - "smithy.api#documentation": "Whether there are more items to paginate", - "smithy.api#required": {} - } - } - }, - "traits": {} - }, - "com.prisma.postgres#GetV1ProjectsResponse": { - "type": "structure", - "members": { - "data": { - "target": "com.prisma.postgres#GetV1ProjectsResponseDataList", + "connections": { + "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseConnectionsList", "traits": { "smithy.api#required": {} } }, - "pagination": { - "target": "com.prisma.postgres#GetV1ProjectsResponsePagination", + "region": { + "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseRegion", "traits": { "smithy.api#required": {} } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.prisma.postgres#GetV1Projects": { - "type": "operation", - "input": { - "target": "com.prisma.postgres#GetV1ProjectsRequest" - }, - "output": { - "target": "com.prisma.postgres#GetV1ProjectsResponse" - }, - "traits": { - "smithy.api#http": { - "method": "GET", - "uri": "/v1/projects", - "code": 200 - }, - "smithy.api#documentation": "Get list of projects\n\nReturns the list of projects the token has access to." - } - }, - "com.prisma.postgres#PostV1ProjectsRequestRegion": { - "type": "enum", - "members": { - "US_EAST_1": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "us-east-1" - } }, - "US_WEST_1": { - "target": "smithy.api#Unit", + "source": { + "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseSource", "traits": { - "smithy.api#enumValue": "us-west-1" + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} } }, - "EU_WEST_3": { - "target": "smithy.api#Unit", + "branchId": { + "target": "smithy.api#String", "traits": { - "smithy.api#enumValue": "eu-west-3" + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} } }, - "EU_CENTRAL_1": { - "target": "smithy.api#Unit", + "apiKeys": { + "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseApiKeysList", "traits": { - "smithy.api#enumValue": "eu-central-1" + "smithy.api#documentation": "Deprecated: use `connections[]` instead.", + "smithy.api#required": {} } }, - "AP_NORTHEAST_1": { - "target": "smithy.api#Unit", + "connectionString": { + "target": "smithy.api#String", "traits": { - "smithy.api#enumValue": "ap-northeast-1" + "smithy.api#documentation": "Deprecated: use `connections[].endpoints.direct.connectionString` or `connections[].endpoints.pooled.connectionString`.", + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {}, + "smithy.api#sensitive": {} } }, - "AP_SOUTHEAST_1": { - "target": "smithy.api#Unit", + "directConnection": { + "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseDirectConnection", "traits": { - "smithy.api#enumValue": "ap-southeast-1" + "smithy.api#documentation": "Deprecated: use `connections[].endpoints.direct` instead.", + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} } } }, "traits": {} }, - "com.prisma.postgres#PostV1ProjectsRequest": { - "type": "structure", - "members": { - "createDatabase": { - "target": "smithy.api#Boolean" - }, - "name": { - "target": "smithy.api#String" - }, - "region": { - "target": "com.prisma.postgres#PostV1ProjectsRequestRegion" - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.prisma.postgres#PostV1ProjectsResponseDataWorkspace": { + "com.prisma.postgres#PostV1ProjectsResponseData": { "type": "structure", "members": { "id": { @@ -8633,6 +11828,12 @@ "smithy.api#required": {} } }, + "type": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, "url": { "target": "smithy.api#String", "traits": { @@ -8644,160 +11845,248 @@ "traits": { "smithy.api#required": {} } + }, + "logicalId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} + } + }, + "createdAt": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "defaultRegion": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} + } + }, + "workspace": { + "target": "com.prisma.postgres#PostV1ProjectsResponseDataWorkspace", + "traits": { + "smithy.api#required": {} + } + }, + "database": { + "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabase", + "traits": { + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} + } } }, "traits": {} }, - "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseStatus": { - "type": "enum", + "com.prisma.postgres#PostV1ProjectsResponse": { + "type": "structure", "members": { - "PROVISIONING": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "provisioning" - } - }, - "READY": { - "target": "smithy.api#Unit", + "data": { + "target": "com.prisma.postgres#PostV1ProjectsResponseData", "traits": { - "smithy.api#enumValue": "ready" + "smithy.api#required": {} } } }, - "traits": {} + "traits": { + "smithy.api#output": {} + } + }, + "com.prisma.postgres#PostV1Projects": { + "type": "operation", + "input": { + "target": "com.prisma.postgres#PostV1ProjectsRequest" + }, + "output": { + "target": "com.prisma.postgres#PostV1ProjectsResponse" + }, + "errors": [ + { + "target": "com.prisma.postgres#Conflict" + }, + { + "target": "com.prisma.postgres#UnprocessableEntity" + } + ], + "traits": { + "smithy.api#http": { + "method": "POST", + "uri": "/v1/projects", + "code": 200 + }, + "smithy.api#documentation": "Create project with a postgres database\n\nCreates a new project with a postgres database." + } }, - "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseConnectionsItemKind": { - "type": "enum", + "com.prisma.postgres#GetV1ProjectsByIdRequest": { + "type": "structure", "members": { - "POSTGRES": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "postgres" - } - }, - "ACCELERATE": { - "target": "smithy.api#Unit", + "id": { + "target": "smithy.api#String", "traits": { - "smithy.api#enumValue": "accelerate" + "smithy.api#httpLabel": {}, + "smithy.api#required": {} } } }, - "traits": {} + "traits": { + "smithy.api#input": {} + } }, - "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseConnectionsItemEndpointsDirect": { + "com.prisma.postgres#GetV1ProjectsByIdResponseDataWorkspace": { "type": "structure", "members": { - "host": { + "id": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "port": { - "target": "smithy.api#Double", + "url": { + "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "connectionString": { + "name": { "target": "smithy.api#String", "traits": { - "smithy.api#sensitive": {} + "smithy.api#required": {} } } }, "traits": {} }, - "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseConnectionsItemEndpointsPooled": { + "com.prisma.postgres#GetV1ProjectsByIdResponseData": { "type": "structure", "members": { - "host": { + "id": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "port": { - "target": "smithy.api#Double", + "type": { + "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "connectionString": { + "url": { "target": "smithy.api#String", "traits": { - "smithy.api#sensitive": {} + "smithy.api#required": {} } - } - }, - "traits": {} - }, - "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseConnectionsItemEndpointsAccelerate": { - "type": "structure", - "members": { - "host": { + }, + "name": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "port": { - "target": "smithy.api#Double", + "logicalId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} + } + }, + "createdAt": { + "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "connectionString": { + "defaultRegion": { "target": "smithy.api#String", "traits": { - "smithy.api#sensitive": {} + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} + } + }, + "workspace": { + "target": "com.prisma.postgres#GetV1ProjectsByIdResponseDataWorkspace", + "traits": { + "smithy.api#required": {} } } }, "traits": {} }, - "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseConnectionsItemEndpoints": { + "com.prisma.postgres#GetV1ProjectsByIdResponse": { "type": "structure", "members": { - "direct": { - "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseConnectionsItemEndpointsDirect" - }, - "pooled": { - "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseConnectionsItemEndpointsPooled" + "data": { + "target": "com.prisma.postgres#GetV1ProjectsByIdResponseData", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.prisma.postgres#GetV1ProjectsById": { + "type": "operation", + "input": { + "target": "com.prisma.postgres#GetV1ProjectsByIdRequest" + }, + "output": { + "target": "com.prisma.postgres#GetV1ProjectsByIdResponse" + }, + "errors": [ + { + "target": "com.prisma.postgres#NotFound" }, - "accelerate": { - "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseConnectionsItemEndpointsAccelerate" + { + "target": "com.prisma.postgres#UnprocessableEntity" } + ], + "traits": { + "smithy.api#http": { + "method": "GET", + "uri": "/v1/projects/{id}", + "code": 200 + }, + "smithy.api#documentation": "Get project\n\nReturns the project with the given ID." + } + }, + "com.prisma.postgres#PatchV1ProjectsByIdRequestSettingsMap": { + "type": "map", + "key": { + "target": "smithy.api#String" + }, + "value": { + "target": "smithy.api#Document" }, "traits": {} }, - "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseConnectionsItemDirectConnection": { + "com.prisma.postgres#PatchV1ProjectsByIdRequest": { "type": "structure", "members": { - "host": { + "id": { "target": "smithy.api#String", "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "pass": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {} - } + "name": { + "target": "smithy.api#String" }, - "user": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {} - } + "settings": { + "target": "com.prisma.postgres#PatchV1ProjectsByIdRequestSettingsMap" } }, "traits": { - "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead." + "smithy.api#input": {} } }, - "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseConnectionsItemDatabase": { + "com.prisma.postgres#PatchV1ProjectsByIdResponseDataWorkspace": { "type": "structure", "members": { "id": { @@ -8821,7 +12110,7 @@ }, "traits": {} }, - "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseConnectionsItem": { + "com.prisma.postgres#PatchV1ProjectsByIdResponseData": { "type": "structure", "members": { "id": { @@ -8848,513 +12137,738 @@ "smithy.api#required": {} } }, + "logicalId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} + } + }, "createdAt": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "kind": { - "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseConnectionsItemKind", + "defaultRegion": { + "target": "smithy.api#String", "traits": { - "smithy.api#required": {} + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} } }, - "endpoints": { - "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseConnectionsItemEndpoints", + "workspace": { + "target": "com.prisma.postgres#PatchV1ProjectsByIdResponseDataWorkspace", "traits": { "smithy.api#required": {} } - }, - "directConnection": { - "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseConnectionsItemDirectConnection", + } + }, + "traits": {} + }, + "com.prisma.postgres#PatchV1ProjectsByIdResponse": { + "type": "structure", + "members": { + "data": { + "target": "com.prisma.postgres#PatchV1ProjectsByIdResponseData", "traits": { - "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead.", - "com.distilled.openapi#nullable": {} + "smithy.api#required": {} } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.prisma.postgres#PatchV1ProjectsById": { + "type": "operation", + "input": { + "target": "com.prisma.postgres#PatchV1ProjectsByIdRequest" + }, + "output": { + "target": "com.prisma.postgres#PatchV1ProjectsByIdResponse" + }, + "errors": [ + { + "target": "com.prisma.postgres#Forbidden" }, - "database": { - "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseConnectionsItemDatabase", + { + "target": "com.prisma.postgres#NotFound" + }, + { + "target": "com.prisma.postgres#UnprocessableEntity" + } + ], + "traits": { + "smithy.api#http": { + "method": "PATCH", + "uri": "/v1/projects/{id}", + "code": 200 + }, + "smithy.api#documentation": "Update project\n\nUpdates the project with the given ID." + } + }, + "com.prisma.postgres#DeleteV1ProjectsByIdRequest": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } } }, - "traits": {} + "traits": { + "smithy.api#input": {} + } }, - "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseConnectionsList": { - "type": "list", - "member": { - "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseConnectionsItem" + "com.prisma.postgres#DeleteV1ProjectsById": { + "type": "operation", + "input": { + "target": "com.prisma.postgres#DeleteV1ProjectsByIdRequest" }, - "traits": {} + "output": { + "target": "smithy.api#Unit" + }, + "errors": [ + { + "target": "com.prisma.postgres#BadRequest" + }, + { + "target": "com.prisma.postgres#NotFound" + }, + { + "target": "com.prisma.postgres#Conflict" + }, + { + "target": "com.prisma.postgres#UnprocessableEntity" + } + ], + "traits": { + "smithy.api#http": { + "method": "DELETE", + "uri": "/v1/projects/{id}", + "code": 200 + }, + "smithy.api#documentation": "Delete project\n\nDeletes the project with the given ID." + } }, - "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseRegion": { + "com.prisma.postgres#PostV1ProjectsByIdTransferRequest": { "type": "structure", "members": { "id": { "target": "smithy.api#String", "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "name": { + "recipientAccessToken": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } } }, - "traits": {} + "traits": { + "smithy.api#input": {} + } }, - "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseSourceCase0": { - "type": "structure", - "members": { - "type": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {} - } - } + "com.prisma.postgres#PostV1ProjectsByIdTransfer": { + "type": "operation", + "input": { + "target": "com.prisma.postgres#PostV1ProjectsByIdTransferRequest" }, - "traits": {} + "output": { + "target": "smithy.api#Unit" + }, + "errors": [ + { + "target": "com.prisma.postgres#NotFound" + }, + { + "target": "com.prisma.postgres#Conflict" + }, + { + "target": "com.prisma.postgres#UnprocessableEntity" + } + ], + "traits": { + "smithy.api#http": { + "method": "POST", + "uri": "/v1/projects/{id}/transfer", + "code": 200 + }, + "smithy.api#documentation": "Transfer project\n\nTransfer the project with the given ID to the new owner's workspace" + } }, - "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseSourceCase1": { + "com.prisma.postgres#PostV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseRequest": { "type": "structure", "members": { - "type": { + "projectId": { "target": "smithy.api#String", "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "databaseId": { + "branchId": { "target": "smithy.api#String", "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "backupId": { - "target": "smithy.api#String", - "traits": { - "smithy.api#documentation": "ID of the backup to restore from", - "smithy.api#required": {} - } - } - }, - "traits": {} - }, - "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseSourceCase2": { - "type": "structure", - "members": { - "type": { + "stack": { "target": "smithy.api#String", "traits": { + "smithy.api#documentation": "Alchemy stack name (opaque wire value).", "smithy.api#required": {} } }, - "databaseId": { + "stage": { "target": "smithy.api#String", "traits": { + "smithy.api#documentation": "Alchemy stage name (opaque wire value).", "smithy.api#required": {} } - } - }, - "traits": {} - }, - "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseSource": { - "type": "union", - "members": { - "Case0": { - "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseSourceCase0" - }, - "Case1": { - "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseSourceCase1" }, - "Case2": { - "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseSourceCase2" - } - }, - "traits": {} - }, - "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseApiKeysItemKind": { - "type": "enum", - "members": { - "POSTGRES": { - "target": "smithy.api#Unit", + "ttlSeconds": { + "target": "smithy.api#Integer", "traits": { - "smithy.api#enumValue": "postgres" + "smithy.api#documentation": "Requested lease TTL in seconds. Default 60, clamped to [30, 300]." } }, - "ACCELERATE": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "accelerate" - } - } - }, - "traits": {} - }, - "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseApiKeysItemEndpointsDirect": { - "type": "structure", - "members": { - "host": { + "holderDescription": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {} - } - }, - "port": { - "target": "smithy.api#Double", - "traits": { - "smithy.api#required": {} + "smithy.api#documentation": "Free-form description of the acquiring deploy, echoed in the contention error so a blocked deploy can name who holds the lease." } } }, - "traits": {} + "traits": { + "smithy.api#input": {} + } }, - "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseApiKeysItemEndpointsPooled": { + "com.prisma.postgres#PostV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseResponseData": { "type": "structure", "members": { - "host": { + "leaseId": { "target": "smithy.api#String", "traits": { + "smithy.api#documentation": "Capability token for the deploy lease. Send it in the Alchemy-State-Lease-Id header with every state operation; do not log it.", "smithy.api#required": {} } }, - "port": { - "target": "smithy.api#Double", + "expiresAt": { + "target": "smithy.api#String", "traits": { + "smithy.api#documentation": "Lease expiry as an ISO-8601 timestamp.", "smithy.api#required": {} } } }, "traits": {} }, - "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseApiKeysItemEndpointsAccelerate": { + "com.prisma.postgres#PostV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseResponse": { "type": "structure", "members": { - "host": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {} - } - }, - "port": { - "target": "smithy.api#Double", + "data": { + "target": "com.prisma.postgres#PostV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseResponseData", "traits": { "smithy.api#required": {} } } }, - "traits": {} + "traits": { + "smithy.api#output": {} + } }, - "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseApiKeysItemEndpoints": { - "type": "structure", - "members": { - "direct": { - "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseApiKeysItemEndpointsDirect" - }, - "pooled": { - "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseApiKeysItemEndpointsPooled" + "com.prisma.postgres#PostV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLease": { + "type": "operation", + "input": { + "target": "com.prisma.postgres#PostV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseRequest" + }, + "output": { + "target": "com.prisma.postgres#PostV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseResponse" + }, + "errors": [ + { + "target": "com.prisma.postgres#NotFound" }, - "accelerate": { - "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseApiKeysItemEndpointsAccelerate" + { + "target": "com.prisma.postgres#Conflict" } - }, - "traits": {} + ], + "traits": { + "smithy.api#http": { + "method": "POST", + "uri": "/v1/projects/{projectId}/branches/{branchId}/alchemy-state/lease", + "code": 200 + }, + "smithy.api#documentation": "Acquire Alchemy deploy lease\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nAcquires the deploy lease for a (branch, stack, stage). An expired lease is replaced atomically; a live lease fails fast with 409 naming the current holder — there is no queueing. Every Alchemy state operation requires a live deploy lease." + } }, - "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseApiKeysItemDirectConnection": { + "com.prisma.postgres#PatchV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseRequest": { "type": "structure", "members": { - "host": { + "projectId": { "target": "smithy.api#String", "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "pass": { + "branchId": { "target": "smithy.api#String", "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "user": { - "target": "smithy.api#String", + "ttlSeconds": { + "target": "smithy.api#Integer", "traits": { - "smithy.api#required": {} + "smithy.api#documentation": "Requested lease TTL in seconds. Default 60, clamped to [30, 300]." } } }, "traits": { - "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead." + "smithy.api#input": {} } }, - "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseApiKeysItem": { + "com.prisma.postgres#PatchV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseResponseData": { "type": "structure", "members": { - "id": { + "leaseId": { "target": "smithy.api#String", "traits": { + "smithy.api#documentation": "Capability token for the deploy lease. Send it in the Alchemy-State-Lease-Id header with every state operation; do not log it.", "smithy.api#required": {} } }, - "type": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {} - } - }, - "url": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {} - } - }, - "name": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {} - } - }, - "createdAt": { + "expiresAt": { "target": "smithy.api#String", "traits": { + "smithy.api#documentation": "Lease expiry as an ISO-8601 timestamp.", "smithy.api#required": {} } - }, - "kind": { - "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseApiKeysItemKind", - "traits": { - "smithy.api#required": {} - } - }, - "endpoints": { - "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseApiKeysItemEndpoints", + } + }, + "traits": {} + }, + "com.prisma.postgres#PatchV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseResponse": { + "type": "structure", + "members": { + "data": { + "target": "com.prisma.postgres#PatchV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseResponseData", "traits": { "smithy.api#required": {} } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.prisma.postgres#PatchV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLease": { + "type": "operation", + "input": { + "target": "com.prisma.postgres#PatchV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseRequest" + }, + "output": { + "target": "com.prisma.postgres#PatchV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseResponse" + }, + "errors": [ + { + "target": "com.prisma.postgres#NotFound" + } + ], + "traits": { + "smithy.api#http": { + "method": "PATCH", + "uri": "/v1/projects/{projectId}/branches/{branchId}/alchemy-state/lease", + "code": 200 }, - "connectionString": { + "smithy.api#documentation": "Heartbeat Alchemy deploy lease\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nExtends the unexpired deploy lease addressed by the Alchemy-State-Lease-Id header from now. A missing, replaced, or expired lease returns 404 — the lost-lease signal; an expired lease can never be revived." + } + }, + "com.prisma.postgres#DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseRequest": { + "type": "structure", + "members": { + "projectId": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "Deprecated: use `endpoints.direct.connectionString` or `endpoints.pooled.connectionString` instead.", - "smithy.api#required": {}, - "smithy.api#sensitive": {} + "smithy.api#httpLabel": {}, + "smithy.api#required": {} } }, - "directConnection": { - "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseApiKeysItemDirectConnection", + "branchId": { + "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead.", - "com.distilled.openapi#nullable": {} + "smithy.api#httpLabel": {}, + "smithy.api#required": {} } } }, - "traits": {} + "traits": { + "smithy.api#input": {} + } }, - "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseApiKeysList": { - "type": "list", - "member": { - "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseApiKeysItem" + "com.prisma.postgres#DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLease": { + "type": "operation", + "input": { + "target": "com.prisma.postgres#DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseRequest" }, + "output": { + "target": "smithy.api#Unit" + }, + "errors": [ + { + "target": "com.prisma.postgres#NotFound" + } + ], "traits": { - "smithy.api#documentation": "Deprecated: use `connections[]` instead." + "smithy.api#http": { + "method": "DELETE", + "uri": "/v1/projects/{projectId}/branches/{branchId}/alchemy-state/lease", + "code": 200 + }, + "smithy.api#documentation": "Release Alchemy deploy lease\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nReleases the deploy lease addressed by the Alchemy-State-Lease-Id header on clean deploy exit. A missing, replaced, or expired lease returns 404 — a lost lease at release time is surfaced, not idempotently swallowed." } }, - "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseDirectConnection": { + "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateVersionRequest": { "type": "structure", "members": { - "host": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {} - } - }, - "pass": { + "projectId": { "target": "smithy.api#String", "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "user": { + "branchId": { "target": "smithy.api#String", "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "Deprecated: use `connections[].endpoints.direct` instead." + "smithy.api#input": {} } }, - "com.prisma.postgres#PostV1ProjectsResponseDataDatabase": { + "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateVersionResponse": { "type": "structure", "members": { - "id": { - "target": "smithy.api#String", + "version": { + "target": "smithy.api#Double", "traits": { "smithy.api#required": {} } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateVersion": { + "type": "operation", + "input": { + "target": "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateVersionRequest" + }, + "output": { + "target": "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateVersionResponse" + }, + "traits": { + "smithy.api#http": { + "method": "GET", + "uri": "/v1/projects/{projectId}/branches/{branchId}/alchemy-state/version", + "code": 200 }, - "type": { + "smithy.api#documentation": "Alchemy state store version\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nUnauthenticated contract-version probe served verbatim from the pinned alchemy HttpStateApi contract. Returns the constant only and never inspects the addressed project or branch." + } + }, + "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksRequest": { + "type": "structure", + "members": { + "projectId": { "target": "smithy.api#String", "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "url": { + "branchId": { "target": "smithy.api#String", "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } - }, - "name": { - "target": "smithy.api#String", + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksResponseBodyList": { + "type": "list", + "member": { + "target": "smithy.api#String" + }, + "traits": {} + }, + "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksResponse": { + "type": "structure", + "members": { + "body": { + "target": "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksResponseBodyList", "traits": { + "com.distilled.openapi#rawResponse": {}, "smithy.api#required": {} } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacks": { + "type": "operation", + "input": { + "target": "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksRequest" + }, + "output": { + "target": "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksResponse" + }, + "errors": [ + { + "target": "com.prisma.postgres#NotFound" }, - "status": { - "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseStatus", - "traits": { - "smithy.api#required": {} - } + { + "target": "com.prisma.postgres#Conflict" + } + ], + "traits": { + "smithy.api#http": { + "method": "GET", + "uri": "/v1/projects/{projectId}/branches/{branchId}/alchemy-state/state/stacks", + "code": 200 }, - "createdAt": { + "smithy.api#documentation": "List Alchemy stacks\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nLists the distinct stack names with state or output rows on the branch. Requires no deploy lease: the stock client's auth probe (checkHttpStateStoreAuth) calls this endpoint bare, and it exposes stack names only." + } + }, + "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesRequest": { + "type": "structure", + "members": { + "projectId": { "target": "smithy.api#String", "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "isDefault": { - "target": "smithy.api#Boolean", + "branchId": { + "target": "smithy.api#String", "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "defaultConnectionId": { + "stack": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {}, - "com.distilled.openapi#nullable": {} - } - }, - "connections": { - "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseConnectionsList", - "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } - }, - "region": { - "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseRegion", + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesResponseBodyList": { + "type": "list", + "member": { + "target": "smithy.api#String" + }, + "traits": {} + }, + "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesResponse": { + "type": "structure", + "members": { + "body": { + "target": "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesResponseBodyList", "traits": { + "com.distilled.openapi#rawResponse": {}, "smithy.api#required": {} } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStages": { + "type": "operation", + "input": { + "target": "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesRequest" + }, + "output": { + "target": "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesResponse" + }, + "errors": [ + { + "target": "com.prisma.postgres#NotFound" }, - "source": { - "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseSource", + { + "target": "com.prisma.postgres#Conflict" + } + ], + "traits": { + "smithy.api#http": { + "method": "GET", + "uri": "/v1/projects/{projectId}/branches/{branchId}/alchemy-state/state/stacks/{stack}/stages", + "code": 200 + }, + "smithy.api#documentation": "List Alchemy stages\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nLists the distinct stage names with state or output rows for the stack. Accepts a live deploy lease on any stage of the stack." + } + }, + "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesRequest": { + "type": "structure", + "members": { + "projectId": { + "target": "smithy.api#String", "traits": { - "smithy.api#required": {}, - "com.distilled.openapi#nullable": {} + "smithy.api#httpLabel": {}, + "smithy.api#required": {} } }, "branchId": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {}, - "com.distilled.openapi#nullable": {} + "smithy.api#httpLabel": {}, + "smithy.api#required": {} } }, - "apiKeys": { - "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseApiKeysList", + "stack": { + "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "Deprecated: use `connections[]` instead.", + "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "connectionString": { + "stage": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "Deprecated: use `connections[].endpoints.direct.connectionString` or `connections[].endpoints.pooled.connectionString`.", - "smithy.api#required": {}, - "com.distilled.openapi#nullable": {}, - "smithy.api#sensitive": {} + "smithy.api#httpLabel": {}, + "smithy.api#required": {} } - }, - "directConnection": { - "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabaseDirectConnection", + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesResponseBodyList": { + "type": "list", + "member": { + "target": "smithy.api#String" + }, + "traits": {} + }, + "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesResponse": { + "type": "structure", + "members": { + "body": { + "target": "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesResponseBodyList", "traits": { - "smithy.api#documentation": "Deprecated: use `connections[].endpoints.direct` instead.", - "smithy.api#required": {}, - "com.distilled.openapi#nullable": {} + "com.distilled.openapi#rawResponse": {}, + "smithy.api#required": {} } } }, - "traits": {} + "traits": { + "smithy.api#output": {} + } }, - "com.prisma.postgres#PostV1ProjectsResponseData": { + "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResources": { + "type": "operation", + "input": { + "target": "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesRequest" + }, + "output": { + "target": "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesResponse" + }, + "errors": [ + { + "target": "com.prisma.postgres#NotFound" + }, + { + "target": "com.prisma.postgres#Conflict" + } + ], + "traits": { + "smithy.api#http": { + "method": "GET", + "uri": "/v1/projects/{projectId}/branches/{branchId}/alchemy-state/state/stacks/{stack}/stages/{stage}/resources", + "code": 200 + }, + "smithy.api#documentation": "List Alchemy resources\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nLists the resource FQNs stored for the stage, ordered by FQN." + } + }, + "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqnRequest": { "type": "structure", "members": { - "id": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {} - } - }, - "type": { + "projectId": { "target": "smithy.api#String", "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "url": { + "branchId": { "target": "smithy.api#String", "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "name": { + "stack": { "target": "smithy.api#String", "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "createdAt": { + "stage": { "target": "smithy.api#String", "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "defaultRegion": { + "fqn": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {}, - "com.distilled.openapi#nullable": {} - } - }, - "workspace": { - "target": "com.prisma.postgres#PostV1ProjectsResponseDataWorkspace", - "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } - }, - "database": { - "target": "com.prisma.postgres#PostV1ProjectsResponseDataDatabase", - "traits": { - "smithy.api#required": {}, - "com.distilled.openapi#nullable": {} - } } }, - "traits": {} + "traits": { + "smithy.api#input": {} + } }, - "com.prisma.postgres#PostV1ProjectsResponse": { + "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqnResponse": { "type": "structure", "members": { - "data": { - "target": "com.prisma.postgres#PostV1ProjectsResponseData", + "body": { + "target": "smithy.api#Document", "traits": { + "com.distilled.openapi#rawResponse": {}, "smithy.api#required": {} } } @@ -9363,265 +12877,308 @@ "smithy.api#output": {} } }, - "com.prisma.postgres#PostV1Projects": { + "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqn": { "type": "operation", "input": { - "target": "com.prisma.postgres#PostV1ProjectsRequest" + "target": "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqnRequest" }, "output": { - "target": "com.prisma.postgres#PostV1ProjectsResponse" + "target": "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqnResponse" }, "errors": [ { - "target": "com.prisma.postgres#UnprocessableEntity" + "target": "com.prisma.postgres#NotFound" + }, + { + "target": "com.prisma.postgres#Conflict" } ], "traits": { "smithy.api#http": { - "method": "POST", - "uri": "/v1/projects", + "method": "GET", + "uri": "/v1/projects/{projectId}/branches/{branchId}/alchemy-state/state/stacks/{stack}/stages/{stage}/resources/{fqn}", "code": 200 }, - "smithy.api#documentation": "Create project with a postgres database\n\nCreates a new project with a postgres database." + "smithy.api#documentation": "Get Alchemy resource state\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nReturns the stored resource state, or a JSON null body when absent (the stock client maps null to undefined)." } }, - "com.prisma.postgres#GetV1ProjectsByIdRequest": { + "com.prisma.postgres#PutV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqnRequest": { "type": "structure", "members": { - "id": { + "projectId": { "target": "smithy.api#String", "traits": { "smithy.api#httpLabel": {}, "smithy.api#required": {} } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.prisma.postgres#GetV1ProjectsByIdResponseDataWorkspace": { - "type": "structure", - "members": { - "id": { + }, + "branchId": { "target": "smithy.api#String", "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "url": { + "stack": { "target": "smithy.api#String", "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "name": { + "stage": { + "target": "smithy.api#String", + "traits": { + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "fqn": { "target": "smithy.api#String", "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } } }, - "traits": {} + "traits": { + "smithy.api#input": {} + } }, - "com.prisma.postgres#GetV1ProjectsByIdResponseData": { + "com.prisma.postgres#PutV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqnResponse": { "type": "structure", "members": { - "id": { - "target": "smithy.api#String", + "body": { + "target": "smithy.api#Document", "traits": { + "com.distilled.openapi#rawResponse": {}, "smithy.api#required": {} } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.prisma.postgres#PutV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqn": { + "type": "operation", + "input": { + "target": "com.prisma.postgres#PutV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqnRequest" + }, + "output": { + "target": "com.prisma.postgres#PutV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqnResponse" + }, + "errors": [ + { + "target": "com.prisma.postgres#NotFound" }, - "type": { + { + "target": "com.prisma.postgres#Conflict" + } + ], + "traits": { + "smithy.api#http": { + "method": "PUT", + "uri": "/v1/projects/{projectId}/branches/{branchId}/alchemy-state/state/stacks/{stack}/stages/{stage}/resources/{fqn}", + "code": 200 + }, + "smithy.api#documentation": "Set Alchemy resource state\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nStores the resource state encrypted at rest and echoes the stored value." + } + }, + "com.prisma.postgres#DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqnRequest": { + "type": "structure", + "members": { + "projectId": { "target": "smithy.api#String", "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "url": { + "branchId": { "target": "smithy.api#String", "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "name": { + "stack": { "target": "smithy.api#String", "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "createdAt": { + "stage": { "target": "smithy.api#String", "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "defaultRegion": { + "fqn": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {}, - "com.distilled.openapi#nullable": {} - } - }, - "workspace": { - "target": "com.prisma.postgres#GetV1ProjectsByIdResponseDataWorkspace", - "traits": { - "smithy.api#required": {} - } - } - }, - "traits": {} - }, - "com.prisma.postgres#GetV1ProjectsByIdResponse": { - "type": "structure", - "members": { - "data": { - "target": "com.prisma.postgres#GetV1ProjectsByIdResponseData", - "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } } }, "traits": { - "smithy.api#output": {} + "smithy.api#input": {} } }, - "com.prisma.postgres#GetV1ProjectsById": { + "com.prisma.postgres#DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqn": { "type": "operation", "input": { - "target": "com.prisma.postgres#GetV1ProjectsByIdRequest" + "target": "com.prisma.postgres#DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqnRequest" }, "output": { - "target": "com.prisma.postgres#GetV1ProjectsByIdResponse" + "target": "smithy.api#Unit" }, "errors": [ { "target": "com.prisma.postgres#NotFound" }, { - "target": "com.prisma.postgres#UnprocessableEntity" + "target": "com.prisma.postgres#Conflict" } ], "traits": { "smithy.api#http": { - "method": "GET", - "uri": "/v1/projects/{id}", + "method": "DELETE", + "uri": "/v1/projects/{projectId}/branches/{branchId}/alchemy-state/state/stacks/{stack}/stages/{stage}/resources/{fqn}", "code": 200 }, - "smithy.api#documentation": "Get project\n\nReturns the project with the given ID." + "smithy.api#documentation": "Delete Alchemy resource state\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nDeletes the resource state row. Idempotent: deleting an absent row also returns 204." } }, - "com.prisma.postgres#PatchV1ProjectsByIdRequestSettingsMap": { - "type": "map", - "key": { - "target": "smithy.api#String" - }, - "value": { - "target": "smithy.api#Document" - }, - "traits": {} - }, - "com.prisma.postgres#PatchV1ProjectsByIdRequest": { + "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageReplacedResourcesRequest": { "type": "structure", "members": { - "id": { + "projectId": { "target": "smithy.api#String", "traits": { "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "name": { - "target": "smithy.api#String" - }, - "settings": { - "target": "com.prisma.postgres#PatchV1ProjectsByIdRequestSettingsMap" - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.prisma.postgres#PatchV1ProjectsByIdResponseDataWorkspace": { - "type": "structure", - "members": { - "id": { + "branchId": { "target": "smithy.api#String", "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "url": { + "stack": { "target": "smithy.api#String", "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "name": { + "stage": { "target": "smithy.api#String", "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } } }, + "traits": { + "smithy.api#input": {} + } + }, + "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageReplacedResourcesResponseBodyList": { + "type": "list", + "member": { + "target": "smithy.api#Document" + }, "traits": {} }, - "com.prisma.postgres#PatchV1ProjectsByIdResponseData": { + "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageReplacedResourcesResponse": { "type": "structure", "members": { - "id": { - "target": "smithy.api#String", + "body": { + "target": "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageReplacedResourcesResponseBodyList", "traits": { + "com.distilled.openapi#rawResponse": {}, "smithy.api#required": {} } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageReplacedResources": { + "type": "operation", + "input": { + "target": "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageReplacedResourcesRequest" + }, + "output": { + "target": "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageReplacedResourcesResponse" + }, + "errors": [ + { + "target": "com.prisma.postgres#NotFound" }, - "type": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {} - } + { + "target": "com.prisma.postgres#Conflict" + } + ], + "traits": { + "smithy.api#http": { + "method": "GET", + "uri": "/v1/projects/{projectId}/branches/{branchId}/alchemy-state/state/stacks/{stack}/stages/{stage}/replaced-resources", + "code": 200 }, - "url": { + "smithy.api#documentation": "List replaced Alchemy resources\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nReturns the decrypted resource states of the stage whose status is \"replaced\"." + } + }, + "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageOutputRequest": { + "type": "structure", + "members": { + "projectId": { "target": "smithy.api#String", "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "name": { + "branchId": { "target": "smithy.api#String", "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "createdAt": { + "stack": { "target": "smithy.api#String", "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "defaultRegion": { + "stage": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {}, - "com.distilled.openapi#nullable": {} - } - }, - "workspace": { - "target": "com.prisma.postgres#PatchV1ProjectsByIdResponseDataWorkspace", - "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } } }, - "traits": {} + "traits": { + "smithy.api#input": {} + } }, - "com.prisma.postgres#PatchV1ProjectsByIdResponse": { + "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageOutputResponse": { "type": "structure", "members": { - "data": { - "target": "com.prisma.postgres#PatchV1ProjectsByIdResponseData", + "body": { + "target": "smithy.api#Document", "traits": { + "com.distilled.openapi#rawResponse": {}, "smithy.api#required": {} } } @@ -9630,38 +13187,56 @@ "smithy.api#output": {} } }, - "com.prisma.postgres#PatchV1ProjectsById": { + "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageOutput": { "type": "operation", "input": { - "target": "com.prisma.postgres#PatchV1ProjectsByIdRequest" + "target": "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageOutputRequest" }, "output": { - "target": "com.prisma.postgres#PatchV1ProjectsByIdResponse" + "target": "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageOutputResponse" }, "errors": [ - { - "target": "com.prisma.postgres#Forbidden" - }, { "target": "com.prisma.postgres#NotFound" }, { - "target": "com.prisma.postgres#UnprocessableEntity" + "target": "com.prisma.postgres#Conflict" } ], "traits": { "smithy.api#http": { - "method": "PATCH", - "uri": "/v1/projects/{id}", + "method": "GET", + "uri": "/v1/projects/{projectId}/branches/{branchId}/alchemy-state/state/stacks/{stack}/stages/{stage}/output", "code": 200 }, - "smithy.api#documentation": "Update project\n\nUpdates the project with the given ID." + "smithy.api#documentation": "Get Alchemy stack output\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nReturns the stored stack output for the stage, or a JSON null body when absent (the stock client maps null to undefined)." } }, - "com.prisma.postgres#DeleteV1ProjectsByIdRequest": { + "com.prisma.postgres#PutV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageOutputRequest": { "type": "structure", "members": { - "id": { + "projectId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "branchId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "stack": { + "target": "smithy.api#String", + "traits": { + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "stage": { "target": "smithy.api#String", "traits": { "smithy.api#httpLabel": {}, @@ -9673,59 +13248,85 @@ "smithy.api#input": {} } }, - "com.prisma.postgres#DeleteV1ProjectsById": { + "com.prisma.postgres#PutV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageOutputResponse": { + "type": "structure", + "members": { + "body": { + "target": "smithy.api#Document", + "traits": { + "com.distilled.openapi#rawResponse": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.prisma.postgres#PutV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageOutput": { "type": "operation", "input": { - "target": "com.prisma.postgres#DeleteV1ProjectsByIdRequest" + "target": "com.prisma.postgres#PutV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageOutputRequest" }, "output": { - "target": "smithy.api#Unit" + "target": "com.prisma.postgres#PutV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageOutputResponse" }, "errors": [ - { - "target": "com.prisma.postgres#BadRequest" - }, { "target": "com.prisma.postgres#NotFound" }, { - "target": "com.prisma.postgres#UnprocessableEntity" + "target": "com.prisma.postgres#Conflict" } ], "traits": { "smithy.api#http": { - "method": "DELETE", - "uri": "/v1/projects/{id}", + "method": "PUT", + "uri": "/v1/projects/{projectId}/branches/{branchId}/alchemy-state/state/stacks/{stack}/stages/{stage}/output", "code": 200 }, - "smithy.api#documentation": "Delete project\n\nDeletes the project with the given ID." + "smithy.api#documentation": "Set Alchemy stack output\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nOverwrites the stack output for the stage, encrypted at rest, and echoes the stored value." } }, - "com.prisma.postgres#PostV1ProjectsByIdTransferRequest": { + "com.prisma.postgres#DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackRequest": { "type": "structure", "members": { - "id": { + "projectId": { "target": "smithy.api#String", "traits": { "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "recipientAccessToken": { + "branchId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "stack": { "target": "smithy.api#String", "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } + }, + "stage": { + "target": "smithy.api#String", + "traits": { + "smithy.api#httpQuery": "stage" + } } }, "traits": { "smithy.api#input": {} } }, - "com.prisma.postgres#PostV1ProjectsByIdTransfer": { + "com.prisma.postgres#DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStack": { "type": "operation", "input": { - "target": "com.prisma.postgres#PostV1ProjectsByIdTransferRequest" + "target": "com.prisma.postgres#DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackRequest" }, "output": { "target": "smithy.api#Unit" @@ -9735,19 +13336,19 @@ "target": "com.prisma.postgres#NotFound" }, { - "target": "com.prisma.postgres#UnprocessableEntity" + "target": "com.prisma.postgres#Conflict" } ], "traits": { "smithy.api#http": { - "method": "POST", - "uri": "/v1/projects/{id}/transfer", + "method": "DELETE", + "uri": "/v1/projects/{projectId}/branches/{branchId}/alchemy-state/state/stacks/{stack}", "code": 200 }, - "smithy.api#documentation": "Transfer project\n\nTransfer the project with the given ID to the new owner's workspace" + "smithy.api#documentation": "Delete Alchemy stack state\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nDeletes every resource-state and output row of the stack, or only the given stage's rows when the stage query parameter is set. Requires a live deploy lease on the affected stage; without a stage it additionally requires that no other stage of the stack holds a live lease, so one stage's deploy can never delete state another stage's deploy is using. Idempotent." } }, - "com.prisma.postgres#GetV1ProjectsByProjectIdComputeServicesRequest": { + "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesRequest": { "type": "structure", "members": { "projectId": { @@ -9774,78 +13375,195 @@ "smithy.api#input": {} } }, - "com.prisma.postgres#GetV1ProjectsByProjectIdComputeServicesResponseDataItemRegion": { + "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemStatus": { + "type": "enum", + "members": { + "FAILURE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "failure" + } + }, + "PROVISIONING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "provisioning" + } + }, + "READY": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ready" + } + }, + "RECOVERING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "recovering" + } + } + }, + "traits": {} + }, + "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemConnectionsItemKind": { + "type": "enum", + "members": { + "POSTGRES": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "postgres" + } + }, + "ACCELERATE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "accelerate" + } + } + }, + "traits": {} + }, + "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemConnectionsItemEndpointsDirect": { "type": "structure", "members": { - "id": { + "host": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "name": { + "port": { + "target": "smithy.api#Double", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemConnectionsItemEndpointsPooled": { + "type": "structure", + "members": { + "host": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } + }, + "port": { + "target": "smithy.api#Double", + "traits": { + "smithy.api#required": {} + } } }, "traits": {} }, - "com.prisma.postgres#GetV1ProjectsByProjectIdComputeServicesResponseDataItem": { + "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemConnectionsItemEndpointsAccelerate": { "type": "structure", "members": { - "id": { + "host": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "type": { + "port": { + "target": "smithy.api#Double", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemConnectionsItemEndpoints": { + "type": "structure", + "members": { + "direct": { + "target": "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemConnectionsItemEndpointsDirect" + }, + "pooled": { + "target": "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemConnectionsItemEndpointsPooled" + }, + "accelerate": { + "target": "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemConnectionsItemEndpointsAccelerate" + } + }, + "traits": {} + }, + "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemConnectionsItemDirectConnection": { + "type": "structure", + "members": { + "host": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "url": { + "pass": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "name": { + "user": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead." + } + }, + "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemConnectionsItemDatabase": { + "type": "structure", + "members": { + "id": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "region": { - "target": "com.prisma.postgres#GetV1ProjectsByProjectIdComputeServicesResponseDataItemRegion", + "url": { + "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "projectId": { + "name": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemConnectionsItem": { + "type": "structure", + "members": { + "id": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "branchId": { + "type": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {}, - "com.distilled.openapi#nullable": {} + "smithy.api#required": {} } }, - "latestVersionId": { + "url": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {}, - "com.distilled.openapi#nullable": {} + "smithy.api#required": {} } }, - "serviceEndpointDomain": { + "name": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} @@ -9856,174 +13574,131 @@ "traits": { "smithy.api#required": {} } + }, + "kind": { + "target": "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemConnectionsItemKind", + "traits": { + "smithy.api#required": {} + } + }, + "endpoints": { + "target": "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemConnectionsItemEndpoints", + "traits": { + "smithy.api#required": {} + } + }, + "directConnection": { + "target": "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemConnectionsItemDirectConnection", + "traits": { + "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead.", + "com.distilled.openapi#nullable": {} + } + }, + "database": { + "target": "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemConnectionsItemDatabase", + "traits": { + "smithy.api#required": {} + } } }, "traits": {} }, - "com.prisma.postgres#GetV1ProjectsByProjectIdComputeServicesResponseDataList": { + "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemConnectionsList": { "type": "list", "member": { - "target": "com.prisma.postgres#GetV1ProjectsByProjectIdComputeServicesResponseDataItem" + "target": "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemConnectionsItem" }, "traits": {} }, - "com.prisma.postgres#GetV1ProjectsByProjectIdComputeServicesResponsePagination": { + "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemProject": { "type": "structure", "members": { - "nextCursor": { + "id": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "Next cursor to continue pagination", - "smithy.api#required": {}, - "com.distilled.openapi#nullable": {} + "smithy.api#required": {} } }, - "hasMore": { - "target": "smithy.api#Boolean", + "url": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "name": { + "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "Whether there are more items to paginate", "smithy.api#required": {} } } }, "traits": {} }, - "com.prisma.postgres#GetV1ProjectsByProjectIdComputeServicesResponse": { + "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemRegion": { "type": "structure", "members": { - "data": { - "target": "com.prisma.postgres#GetV1ProjectsByProjectIdComputeServicesResponseDataList", + "id": { + "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "pagination": { - "target": "com.prisma.postgres#GetV1ProjectsByProjectIdComputeServicesResponsePagination", + "name": { + "target": "smithy.api#String", "traits": { "smithy.api#required": {} } } }, - "traits": { - "smithy.api#output": {} - } - }, - "com.prisma.postgres#GetV1ProjectsByProjectIdComputeServices": { - "type": "operation", - "input": { - "target": "com.prisma.postgres#GetV1ProjectsByProjectIdComputeServicesRequest" - }, - "output": { - "target": "com.prisma.postgres#GetV1ProjectsByProjectIdComputeServicesResponse" - }, - "errors": [ - { - "target": "com.prisma.postgres#Forbidden" - }, - { - "target": "com.prisma.postgres#NotFound" - }, - { - "target": "com.prisma.postgres#UnprocessableEntity" - } - ], - "traits": { - "smithy.api#http": { - "method": "GET", - "uri": "/v1/projects/{projectId}/compute-services", - "code": 200 - }, - "smithy.api#documentation": "List compute services for a project\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nReturns all compute services belonging to a project, ordered by creation time (oldest first). Supports cursor-based pagination." - } + "traits": {} }, - "com.prisma.postgres#PostV1ProjectsByProjectIdComputeServicesRequestRegionId": { - "type": "enum", + "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemSourceCase0": { + "type": "structure", "members": { - "US_EAST_1": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "us-east-1" - } - }, - "US_WEST_1": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "us-west-1" - } - }, - "EU_WEST_3": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "eu-west-3" - } - }, - "EU_CENTRAL_1": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "eu-central-1" - } - }, - "AP_NORTHEAST_1": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "ap-northeast-1" - } - }, - "AP_SOUTHEAST_1": { - "target": "smithy.api#Unit", + "type": { + "target": "smithy.api#String", "traits": { - "smithy.api#enumValue": "ap-southeast-1" + "smithy.api#required": {} } } }, "traits": {} }, - "com.prisma.postgres#PostV1ProjectsByProjectIdComputeServicesRequest": { + "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemSourceCase1": { "type": "structure", "members": { - "projectId": { + "type": { "target": "smithy.api#String", "traits": { - "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "displayName": { + "databaseId": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "regionId": { - "target": "com.prisma.postgres#PostV1ProjectsByProjectIdComputeServicesRequestRegionId" - }, - "branchId": { - "target": "smithy.api#String", - "traits": { - "com.distilled.openapi#nullable": {} - } - }, - "branchGitName": { + "backupId": { "target": "smithy.api#String", "traits": { - "com.distilled.openapi#nullable": {} + "smithy.api#documentation": "ID of the backup to restore from", + "smithy.api#required": {} } } }, - "traits": { - "smithy.api#input": {} - } + "traits": {} }, - "com.prisma.postgres#PostV1ProjectsByProjectIdComputeServicesResponseDataRegion": { + "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemSourceCase2": { "type": "structure", "members": { - "id": { + "type": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "name": { + "databaseId": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} @@ -10032,7 +13707,22 @@ }, "traits": {} }, - "com.prisma.postgres#PostV1ProjectsByProjectIdComputeServicesResponseData": { + "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemSource": { + "type": "union", + "members": { + "Case0": { + "target": "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemSourceCase0" + }, + "Case1": { + "target": "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemSourceCase1" + }, + "Case2": { + "target": "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemSourceCase2" + } + }, + "traits": {} + }, + "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItem": { "type": "structure", "members": { "id": { @@ -10059,52 +13749,106 @@ "smithy.api#required": {} } }, - "region": { - "target": "com.prisma.postgres#PostV1ProjectsByProjectIdComputeServicesResponseDataRegion", + "status": { + "target": "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemStatus", "traits": { "smithy.api#required": {} } }, - "projectId": { + "createdAt": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "branchId": { + "isDefault": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#required": {} + } + }, + "defaultConnectionId": { "target": "smithy.api#String", "traits": { "smithy.api#required": {}, "com.distilled.openapi#nullable": {} } }, - "latestVersionId": { - "target": "smithy.api#String", + "connections": { + "target": "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemConnectionsList", + "traits": { + "smithy.api#required": {} + } + }, + "project": { + "target": "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemProject", + "traits": { + "smithy.api#required": {} + } + }, + "region": { + "target": "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemRegion", "traits": { "smithy.api#required": {}, "com.distilled.openapi#nullable": {} } }, - "serviceEndpointDomain": { - "target": "smithy.api#String", + "source": { + "target": "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemSource", "traits": { - "smithy.api#required": {} + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} } }, - "createdAt": { + "branchId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataList": { + "type": "list", + "member": { + "target": "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItem" + }, + "traits": {} + }, + "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponsePagination": { + "type": "structure", + "members": { + "nextCursor": { "target": "smithy.api#String", "traits": { + "smithy.api#documentation": "Next cursor to continue pagination", + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} + } + }, + "hasMore": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "Whether there are more items to paginate", "smithy.api#required": {} } } }, "traits": {} }, - "com.prisma.postgres#PostV1ProjectsByProjectIdComputeServicesResponse": { + "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponse": { "type": "structure", "members": { "data": { - "target": "com.prisma.postgres#PostV1ProjectsByProjectIdComputeServicesResponseData", + "target": "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataList", + "traits": { + "smithy.api#required": {} + } + }, + "pagination": { + "target": "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponsePagination", "traits": { "smithy.api#required": {} } @@ -10114,412 +13858,378 @@ "smithy.api#output": {} } }, - "com.prisma.postgres#PostV1ProjectsByProjectIdComputeServices": { + "com.prisma.postgres#GetV1ProjectsByProjectIdDatabases": { "type": "operation", "input": { - "target": "com.prisma.postgres#PostV1ProjectsByProjectIdComputeServicesRequest" + "target": "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesRequest" }, "output": { - "target": "com.prisma.postgres#PostV1ProjectsByProjectIdComputeServicesResponse" + "target": "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponse" }, "errors": [ - { - "target": "com.prisma.postgres#Forbidden" - }, { "target": "com.prisma.postgres#NotFound" }, - { - "target": "com.prisma.postgres#Conflict" - }, { "target": "com.prisma.postgres#UnprocessableEntity" } ], "traits": { "smithy.api#http": { - "method": "POST", - "uri": "/v1/projects/{projectId}/compute-services", + "method": "GET", + "uri": "/v1/projects/{projectId}/databases", "code": 200 }, - "smithy.api#documentation": "Create compute service\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nCreates a new compute service under the specified project. The service is placed in the given region (or the default region if omitted). Returns `409 Conflict` with the existing service's id, name, and branch if a service with the same name already exists on the resolved branch." + "smithy.api#documentation": "Get list of databases\n\nReturns databases for the given project." } }, - "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesRequest": { - "type": "structure", + "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesRequestRegion": { + "type": "enum", "members": { - "projectId": { - "target": "smithy.api#String", + "US_EAST_1": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#httpLabel": {}, - "smithy.api#required": {} + "smithy.api#enumValue": "us-east-1" } }, - "cursor": { - "target": "smithy.api#String", + "US_WEST_1": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#httpQuery": "cursor" + "smithy.api#enumValue": "us-west-1" } }, - "limit": { - "target": "smithy.api#Double", + "EU_WEST_3": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#httpQuery": "limit" + "smithy.api#enumValue": "eu-west-3" } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemStatus": { - "type": "enum", - "members": { - "FAILURE": { + }, + "EU_CENTRAL_1": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "failure" + "smithy.api#enumValue": "eu-central-1" } }, - "PROVISIONING": { + "AP_NORTHEAST_1": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "provisioning" + "smithy.api#enumValue": "ap-northeast-1" } }, - "READY": { + "AP_SOUTHEAST_1": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "ready" + "smithy.api#enumValue": "ap-southeast-1" } }, - "RECOVERING": { + "INHERIT": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "recovering" + "smithy.api#enumValue": "inherit" } } }, "traits": {} }, - "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemConnectionsItemKind": { - "type": "enum", + "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesRequestFromDatabase": { + "type": "structure", "members": { - "POSTGRES": { - "target": "smithy.api#Unit", + "id": { + "target": "smithy.api#String", "traits": { - "smithy.api#enumValue": "postgres" + "smithy.api#required": {} } }, - "ACCELERATE": { - "target": "smithy.api#Unit", + "backupId": { + "target": "smithy.api#String", "traits": { - "smithy.api#enumValue": "accelerate" + "smithy.api#documentation": "The unique identifier for this backup" } } }, - "traits": {} + "traits": { + "smithy.api#documentation": "Deprecated: use `source` instead." + } }, - "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemConnectionsItemEndpointsDirect": { + "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesRequestSourceCase0": { "type": "structure", "members": { - "host": { + "type": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } - }, - "port": { - "target": "smithy.api#Double", - "traits": { - "smithy.api#required": {} - } } }, "traits": {} }, - "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemConnectionsItemEndpointsPooled": { + "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesRequestSourceCase1": { "type": "structure", "members": { - "host": { + "type": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "port": { - "target": "smithy.api#Double", + "databaseId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "ID of the database the backup belongs to", + "smithy.api#required": {} + } + }, + "backupId": { + "target": "smithy.api#String", "traits": { + "smithy.api#documentation": "ID of the backup to restore from", "smithy.api#required": {} } } }, "traits": {} }, - "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemConnectionsItemEndpointsAccelerate": { + "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesRequestSourceCase2": { "type": "structure", "members": { - "host": { + "type": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "port": { - "target": "smithy.api#Double", + "databaseId": { + "target": "smithy.api#String", "traits": { + "smithy.api#documentation": "ID of the database to clone from", "smithy.api#required": {} } } }, "traits": {} }, - "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemConnectionsItemEndpoints": { - "type": "structure", + "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesRequestSource": { + "type": "union", "members": { - "direct": { - "target": "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemConnectionsItemEndpointsDirect" + "Case0": { + "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesRequestSourceCase0" }, - "pooled": { - "target": "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemConnectionsItemEndpointsPooled" + "Case1": { + "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesRequestSourceCase1" }, - "accelerate": { - "target": "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemConnectionsItemEndpointsAccelerate" + "Case2": { + "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesRequestSourceCase2" } }, "traits": {} }, - "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemConnectionsItemDirectConnection": { + "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesRequest": { "type": "structure", "members": { - "host": { + "projectId": { "target": "smithy.api#String", "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "pass": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {} - } + "region": { + "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesRequestRegion" }, - "user": { - "target": "smithy.api#String", + "name": { + "target": "smithy.api#String" + }, + "isDefault": { + "target": "smithy.api#Boolean" + }, + "fromDatabase": { + "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesRequestFromDatabase", "traits": { - "smithy.api#required": {} + "smithy.api#documentation": "Deprecated: use `source` instead." } + }, + "source": { + "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesRequestSource" } }, "traits": { - "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead." + "smithy.api#input": {} } }, - "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemConnectionsItemDatabase": { - "type": "structure", + "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataStatus": { + "type": "enum", "members": { - "id": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {} - } - }, - "url": { - "target": "smithy.api#String", + "PROVISIONING": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "provisioning" } }, - "name": { - "target": "smithy.api#String", + "READY": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "ready" } } }, "traits": {} }, - "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemConnectionsItem": { - "type": "structure", + "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataConnectionsItemKind": { + "type": "enum", "members": { - "id": { - "target": "smithy.api#String", + "POSTGRES": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "postgres" } }, - "type": { - "target": "smithy.api#String", + "ACCELERATE": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "accelerate" } - }, - "url": { + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataConnectionsItemEndpointsDirect": { + "type": "structure", + "members": { + "host": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "name": { - "target": "smithy.api#String", + "port": { + "target": "smithy.api#Double", "traits": { "smithy.api#required": {} } }, - "createdAt": { + "connectionString": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {} - } - }, - "kind": { - "target": "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemConnectionsItemKind", - "traits": { - "smithy.api#required": {} - } - }, - "endpoints": { - "target": "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemConnectionsItemEndpoints", - "traits": { - "smithy.api#required": {} - } - }, - "directConnection": { - "target": "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemConnectionsItemDirectConnection", - "traits": { - "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead.", - "com.distilled.openapi#nullable": {} - } - }, - "database": { - "target": "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemConnectionsItemDatabase", - "traits": { - "smithy.api#required": {} + "smithy.api#sensitive": {} } } }, "traits": {} }, - "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemConnectionsList": { - "type": "list", - "member": { - "target": "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemConnectionsItem" - }, - "traits": {} - }, - "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemProject": { + "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataConnectionsItemEndpointsPooled": { "type": "structure", "members": { - "id": { + "host": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "url": { - "target": "smithy.api#String", + "port": { + "target": "smithy.api#Double", "traits": { "smithy.api#required": {} } }, - "name": { + "connectionString": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {} + "smithy.api#sensitive": {} } } }, "traits": {} }, - "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemRegion": { + "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataConnectionsItemEndpointsAccelerate": { "type": "structure", "members": { - "id": { + "host": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "name": { - "target": "smithy.api#String", + "port": { + "target": "smithy.api#Double", "traits": { "smithy.api#required": {} } + }, + "connectionString": { + "target": "smithy.api#String", + "traits": { + "smithy.api#sensitive": {} + } } }, "traits": {} }, - "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemSourceCase0": { + "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataConnectionsItemEndpoints": { "type": "structure", "members": { - "type": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {} - } + "direct": { + "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataConnectionsItemEndpointsDirect" + }, + "pooled": { + "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataConnectionsItemEndpointsPooled" + }, + "accelerate": { + "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataConnectionsItemEndpointsAccelerate" } }, "traits": {} }, - "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemSourceCase1": { + "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataConnectionsItemDirectConnection": { "type": "structure", "members": { - "type": { + "host": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "databaseId": { + "pass": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "backupId": { + "user": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "ID of the backup to restore from", "smithy.api#required": {} } } }, - "traits": {} + "traits": { + "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead." + } }, - "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemSourceCase2": { + "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataConnectionsItemDatabase": { "type": "structure", "members": { - "type": { + "id": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "databaseId": { + "url": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } - } - }, - "traits": {} - }, - "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemSource": { - "type": "union", - "members": { - "Case0": { - "target": "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemSourceCase0" }, - "Case1": { - "target": "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemSourceCase1" - }, - "Case2": { - "target": "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemSourceCase2" + "name": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } } }, "traits": {} }, - "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItem": { + "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataConnectionsItem": { "type": "structure", "members": { "id": { @@ -10546,189 +14256,72 @@ "smithy.api#required": {} } }, - "status": { - "target": "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemStatus", - "traits": { - "smithy.api#required": {} - } - }, "createdAt": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "isDefault": { - "target": "smithy.api#Boolean", - "traits": { - "smithy.api#required": {} - } - }, - "defaultConnectionId": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {}, - "com.distilled.openapi#nullable": {} - } - }, - "connections": { - "target": "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemConnectionsList", + "kind": { + "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataConnectionsItemKind", "traits": { "smithy.api#required": {} } }, - "project": { - "target": "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemProject", + "endpoints": { + "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataConnectionsItemEndpoints", "traits": { "smithy.api#required": {} } }, - "region": { - "target": "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemRegion", - "traits": { - "smithy.api#required": {}, - "com.distilled.openapi#nullable": {} - } - }, - "source": { - "target": "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItemSource", + "directConnection": { + "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataConnectionsItemDirectConnection", "traits": { - "smithy.api#required": {}, + "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead.", "com.distilled.openapi#nullable": {} } }, - "branchId": { - "target": "smithy.api#String", + "database": { + "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataConnectionsItemDatabase", "traits": { - "smithy.api#required": {}, - "com.distilled.openapi#nullable": {} + "smithy.api#required": {} } } }, "traits": {} }, - "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataList": { + "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataConnectionsList": { "type": "list", "member": { - "target": "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataItem" + "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataConnectionsItem" }, "traits": {} }, - "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponsePagination": { + "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataProject": { "type": "structure", "members": { - "nextCursor": { + "id": { "target": "smithy.api#String", - "traits": { - "smithy.api#documentation": "Next cursor to continue pagination", - "smithy.api#required": {}, - "com.distilled.openapi#nullable": {} - } - }, - "hasMore": { - "target": "smithy.api#Boolean", - "traits": { - "smithy.api#documentation": "Whether there are more items to paginate", - "smithy.api#required": {} - } - } - }, - "traits": {} - }, - "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponse": { - "type": "structure", - "members": { - "data": { - "target": "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponseDataList", "traits": { "smithy.api#required": {} } }, - "pagination": { - "target": "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponsePagination", + "url": { + "target": "smithy.api#String", "traits": { "smithy.api#required": {} } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.prisma.postgres#GetV1ProjectsByProjectIdDatabases": { - "type": "operation", - "input": { - "target": "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesRequest" - }, - "output": { - "target": "com.prisma.postgres#GetV1ProjectsByProjectIdDatabasesResponse" - }, - "errors": [ - { - "target": "com.prisma.postgres#NotFound" - }, - { - "target": "com.prisma.postgres#UnprocessableEntity" - } - ], - "traits": { - "smithy.api#http": { - "method": "GET", - "uri": "/v1/projects/{projectId}/databases", - "code": 200 - }, - "smithy.api#documentation": "Get list of databases\n\nReturns databases for the given project." - } - }, - "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesRequestRegion": { - "type": "enum", - "members": { - "US_EAST_1": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "us-east-1" - } - }, - "US_WEST_1": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "us-west-1" - } - }, - "EU_WEST_3": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "eu-west-3" - } - }, - "EU_CENTRAL_1": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "eu-central-1" - } - }, - "AP_NORTHEAST_1": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "ap-northeast-1" - } - }, - "AP_SOUTHEAST_1": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "ap-southeast-1" - } }, - "INHERIT": { - "target": "smithy.api#Unit", + "name": { + "target": "smithy.api#String", "traits": { - "smithy.api#enumValue": "inherit" + "smithy.api#required": {} } } }, "traits": {} }, - "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesRequestFromDatabase": { + "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataRegion": { "type": "structure", "members": { "id": { @@ -10737,18 +14330,16 @@ "smithy.api#required": {} } }, - "backupId": { + "name": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "The unique identifier for this backup" + "smithy.api#required": {} } } }, - "traits": { - "smithy.api#documentation": "Deprecated: use `source` instead." - } + "traits": {} }, - "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesRequestSourceCase0": { + "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataSourceCase0": { "type": "structure", "members": { "type": { @@ -10760,7 +14351,7 @@ }, "traits": {} }, - "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesRequestSourceCase1": { + "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataSourceCase1": { "type": "structure", "members": { "type": { @@ -10772,7 +14363,6 @@ "databaseId": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "ID of the database the backup belongs to", "smithy.api#required": {} } }, @@ -10786,7 +14376,7 @@ }, "traits": {} }, - "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesRequestSourceCase2": { + "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataSourceCase2": { "type": "structure", "members": { "type": { @@ -10798,80 +14388,28 @@ "databaseId": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "ID of the database to clone from", "smithy.api#required": {} } } }, "traits": {} }, - "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesRequestSource": { + "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataSource": { "type": "union", "members": { - "Case0": { - "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesRequestSourceCase0" - }, - "Case1": { - "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesRequestSourceCase1" - }, - "Case2": { - "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesRequestSourceCase2" - } - }, - "traits": {} - }, - "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesRequest": { - "type": "structure", - "members": { - "projectId": { - "target": "smithy.api#String", - "traits": { - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - }, - "region": { - "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesRequestRegion" - }, - "name": { - "target": "smithy.api#String" - }, - "isDefault": { - "target": "smithy.api#Boolean" - }, - "fromDatabase": { - "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesRequestFromDatabase", - "traits": { - "smithy.api#documentation": "Deprecated: use `source` instead." - } - }, - "source": { - "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesRequestSource" - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataStatus": { - "type": "enum", - "members": { - "PROVISIONING": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "provisioning" - } + "Case0": { + "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataSourceCase0" }, - "READY": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "ready" - } + "Case1": { + "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataSourceCase1" + }, + "Case2": { + "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataSourceCase2" } }, "traits": {} }, - "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataConnectionsItemKind": { + "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataApiKeysItemKind": { "type": "enum", "members": { "POSTGRES": { @@ -10889,7 +14427,7 @@ }, "traits": {} }, - "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataConnectionsItemEndpointsDirect": { + "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataApiKeysItemEndpointsDirect": { "type": "structure", "members": { "host": { @@ -10903,17 +14441,11 @@ "traits": { "smithy.api#required": {} } - }, - "connectionString": { - "target": "smithy.api#String", - "traits": { - "smithy.api#sensitive": {} - } } }, "traits": {} }, - "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataConnectionsItemEndpointsPooled": { + "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataApiKeysItemEndpointsPooled": { "type": "structure", "members": { "host": { @@ -10927,17 +14459,11 @@ "traits": { "smithy.api#required": {} } - }, - "connectionString": { - "target": "smithy.api#String", - "traits": { - "smithy.api#sensitive": {} - } } }, "traits": {} }, - "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataConnectionsItemEndpointsAccelerate": { + "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataApiKeysItemEndpointsAccelerate": { "type": "structure", "members": { "host": { @@ -10951,32 +14477,26 @@ "traits": { "smithy.api#required": {} } - }, - "connectionString": { - "target": "smithy.api#String", - "traits": { - "smithy.api#sensitive": {} - } } }, "traits": {} }, - "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataConnectionsItemEndpoints": { + "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataApiKeysItemEndpoints": { "type": "structure", "members": { "direct": { - "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataConnectionsItemEndpointsDirect" + "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataApiKeysItemEndpointsDirect" }, "pooled": { - "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataConnectionsItemEndpointsPooled" + "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataApiKeysItemEndpointsPooled" }, "accelerate": { - "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataConnectionsItemEndpointsAccelerate" + "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataApiKeysItemEndpointsAccelerate" } }, "traits": {} }, - "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataConnectionsItemDirectConnection": { + "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataApiKeysItemDirectConnection": { "type": "structure", "members": { "host": { @@ -11002,7 +14522,7 @@ "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead." } }, - "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataConnectionsItemDatabase": { + "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataApiKeysItem": { "type": "structure", "members": { "id": { @@ -11011,6 +14531,12 @@ "smithy.api#required": {} } }, + "type": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, "url": { "target": "smithy.api#String", "traits": { @@ -11022,11 +14548,79 @@ "traits": { "smithy.api#required": {} } + }, + "createdAt": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "kind": { + "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataApiKeysItemKind", + "traits": { + "smithy.api#required": {} + } + }, + "endpoints": { + "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataApiKeysItemEndpoints", + "traits": { + "smithy.api#required": {} + } + }, + "connectionString": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "Deprecated: use `endpoints.direct.connectionString` or `endpoints.pooled.connectionString` instead.", + "smithy.api#required": {}, + "smithy.api#sensitive": {} + } + }, + "directConnection": { + "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataApiKeysItemDirectConnection", + "traits": { + "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead.", + "com.distilled.openapi#nullable": {} + } } }, "traits": {} }, - "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataConnectionsItem": { + "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataApiKeysList": { + "type": "list", + "member": { + "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataApiKeysItem" + }, + "traits": { + "smithy.api#documentation": "Deprecated: use `connections[]` instead." + } + }, + "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataDirectConnection": { + "type": "structure", + "members": { + "host": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "pass": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "user": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Deprecated: use `connections[].endpoints.direct` instead." + } + }, + "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseData": { "type": "structure", "members": { "id": { @@ -11053,206 +14647,284 @@ "smithy.api#required": {} } }, + "status": { + "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataStatus", + "traits": { + "smithy.api#required": {} + } + }, "createdAt": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "kind": { - "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataConnectionsItemKind", + "isDefault": { + "target": "smithy.api#Boolean", "traits": { "smithy.api#required": {} } }, - "endpoints": { - "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataConnectionsItemEndpoints", + "defaultConnectionId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} + } + }, + "connections": { + "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataConnectionsList", "traits": { "smithy.api#required": {} } }, - "directConnection": { - "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataConnectionsItemDirectConnection", + "project": { + "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataProject", "traits": { - "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead.", + "smithy.api#required": {} + } + }, + "region": { + "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataRegion", + "traits": { + "smithy.api#required": {} + } + }, + "source": { + "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataSource", + "traits": { + "smithy.api#required": {}, "com.distilled.openapi#nullable": {} } }, - "database": { - "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataConnectionsItemDatabase", + "branchId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} + } + }, + "apiKeys": { + "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataApiKeysList", "traits": { + "smithy.api#documentation": "Deprecated: use `connections[]` instead.", "smithy.api#required": {} } + }, + "connectionString": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "Deprecated: use `connections[].endpoints.direct.connectionString` or `connections[].endpoints.pooled.connectionString`.", + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {}, + "smithy.api#sensitive": {} + } + }, + "directConnection": { + "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataDirectConnection", + "traits": { + "smithy.api#documentation": "Deprecated: use `connections[].endpoints.direct` instead.", + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} + } } }, "traits": {} }, - "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataConnectionsList": { - "type": "list", - "member": { - "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataConnectionsItem" + "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponse": { + "type": "structure", + "members": { + "data": { + "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseData", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.prisma.postgres#PostV1ProjectsByProjectIdDatabases": { + "type": "operation", + "input": { + "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesRequest" + }, + "output": { + "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponse" + }, + "errors": [ + { + "target": "com.prisma.postgres#BadRequest" + }, + { + "target": "com.prisma.postgres#Forbidden" + }, + { + "target": "com.prisma.postgres#NotFound" + }, + { + "target": "com.prisma.postgres#Conflict" + }, + { + "target": "com.prisma.postgres#UnprocessableEntity" + } + ], + "traits": { + "smithy.api#http": { + "method": "POST", + "uri": "/v1/projects/{projectId}/databases", + "code": 200 + }, + "smithy.api#documentation": "Create database\n\nCreates a new database for the given project." + } + }, + "com.prisma.postgres#GetV1EnvironmentVariablesRequestClass": { + "type": "enum", + "members": { + "PRODUCTION": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "production" + } + }, + "PREVIEW": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "preview" + } + } }, "traits": {} }, - "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataProject": { + "com.prisma.postgres#GetV1EnvironmentVariablesRequest": { "type": "structure", "members": { - "id": { + "cursor": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {} + "smithy.api#httpQuery": "cursor" } }, - "url": { - "target": "smithy.api#String", + "limit": { + "target": "smithy.api#Double", "traits": { - "smithy.api#required": {} + "smithy.api#httpQuery": "limit" } }, - "name": { + "projectId": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {} + "smithy.api#httpQuery": "projectId" } - } - }, - "traits": {} - }, - "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataRegion": { - "type": "structure", - "members": { - "id": { + }, + "class": { + "target": "com.prisma.postgres#GetV1EnvironmentVariablesRequestClass", + "traits": { + "smithy.api#httpQuery": "class" + } + }, + "key": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {} + "smithy.api#httpQuery": "key" } }, - "name": { + "branchId": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {} + "smithy.api#httpQuery": "branchId" } } }, - "traits": {} + "traits": { + "smithy.api#input": {} + } }, - "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataSourceCase0": { - "type": "structure", + "com.prisma.postgres#GetV1EnvironmentVariablesResponseDataItemClass": { + "type": "enum", "members": { - "type": { - "target": "smithy.api#String", + "PRODUCTION": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "production" + } + }, + "PREVIEW": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "preview" } } }, "traits": {} }, - "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataSourceCase1": { + "com.prisma.postgres#GetV1EnvironmentVariablesResponseDataItem": { "type": "structure", "members": { - "type": { + "id": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "databaseId": { + "type": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "backupId": { + "url": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "ID of the backup to restore from", "smithy.api#required": {} } - } - }, - "traits": {} - }, - "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataSourceCase2": { - "type": "structure", - "members": { - "type": { + }, + "projectId": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "databaseId": { + "branchId": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {} + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} } - } - }, - "traits": {} - }, - "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataSource": { - "type": "union", - "members": { - "Case0": { - "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataSourceCase0" }, - "Case1": { - "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataSourceCase1" - }, - "Case2": { - "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataSourceCase2" - } - }, - "traits": {} - }, - "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataApiKeysItemKind": { - "type": "enum", - "members": { - "POSTGRES": { - "target": "smithy.api#Unit", + "class": { + "target": "com.prisma.postgres#GetV1EnvironmentVariablesResponseDataItemClass", "traits": { - "smithy.api#enumValue": "postgres" + "smithy.api#required": {} } }, - "ACCELERATE": { - "target": "smithy.api#Unit", + "key": { + "target": "smithy.api#String", "traits": { - "smithy.api#enumValue": "accelerate" + "smithy.api#required": {} } - } - }, - "traits": {} - }, - "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataApiKeysItemEndpointsDirect": { - "type": "structure", - "members": { - "host": { + }, + "valueKid": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "port": { - "target": "smithy.api#Double", + "isManagedBySystem": { + "target": "smithy.api#Boolean", "traits": { "smithy.api#required": {} } - } - }, - "traits": {} - }, - "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataApiKeysItemEndpointsPooled": { - "type": "structure", - "members": { - "host": { + }, + "createdAt": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "port": { - "target": "smithy.api#Double", + "updatedAt": { + "target": "smithy.api#String", "traits": { "smithy.api#required": {} } @@ -11260,164 +14932,151 @@ }, "traits": {} }, - "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataApiKeysItemEndpointsAccelerate": { + "com.prisma.postgres#GetV1EnvironmentVariablesResponseDataList": { + "type": "list", + "member": { + "target": "com.prisma.postgres#GetV1EnvironmentVariablesResponseDataItem" + }, + "traits": {} + }, + "com.prisma.postgres#GetV1EnvironmentVariablesResponsePagination": { "type": "structure", "members": { - "host": { + "nextCursor": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {} + "smithy.api#documentation": "Next cursor to continue pagination", + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} } }, - "port": { - "target": "smithy.api#Double", + "hasMore": { + "target": "smithy.api#Boolean", "traits": { + "smithy.api#documentation": "Whether there are more items to paginate", "smithy.api#required": {} } } }, "traits": {} }, - "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataApiKeysItemEndpoints": { - "type": "structure", - "members": { - "direct": { - "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataApiKeysItemEndpointsDirect" - }, - "pooled": { - "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataApiKeysItemEndpointsPooled" - }, - "accelerate": { - "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataApiKeysItemEndpointsAccelerate" - } - }, - "traits": {} - }, - "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataApiKeysItemDirectConnection": { + "com.prisma.postgres#GetV1EnvironmentVariablesResponse": { "type": "structure", "members": { - "host": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {} - } - }, - "pass": { - "target": "smithy.api#String", + "data": { + "target": "com.prisma.postgres#GetV1EnvironmentVariablesResponseDataList", "traits": { "smithy.api#required": {} } }, - "user": { - "target": "smithy.api#String", + "pagination": { + "target": "com.prisma.postgres#GetV1EnvironmentVariablesResponsePagination", "traits": { "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead." + "smithy.api#output": {} } }, - "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataApiKeysItem": { - "type": "structure", - "members": { - "id": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {} - } + "com.prisma.postgres#GetV1EnvironmentVariables": { + "type": "operation", + "input": { + "target": "com.prisma.postgres#GetV1EnvironmentVariablesRequest" + }, + "output": { + "target": "com.prisma.postgres#GetV1EnvironmentVariablesResponse" + }, + "errors": [ + { + "target": "com.prisma.postgres#NotFound" }, - "type": { - "target": "smithy.api#String", + { + "target": "com.prisma.postgres#UnprocessableEntity" + } + ], + "traits": { + "smithy.api#http": { + "method": "GET", + "uri": "/v1/environment-variables", + "code": 200 + }, + "smithy.api#documentation": "List environment variables\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nReturns a paginated list of environment variables. All filters are optional; combine `projectId`, `class`, and `key` to look up a specific variable by name." + } + }, + "com.prisma.postgres#PostV1EnvironmentVariablesRequestClass": { + "type": "enum", + "members": { + "PRODUCTION": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "production" } }, - "url": { - "target": "smithy.api#String", + "PREVIEW": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "preview" } - }, - "name": { + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1EnvironmentVariablesRequest": { + "type": "structure", + "members": { + "projectId": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "createdAt": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {} - } + "branchId": { + "target": "smithy.api#String" }, - "kind": { - "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataApiKeysItemKind", + "class": { + "target": "com.prisma.postgres#PostV1EnvironmentVariablesRequestClass", "traits": { "smithy.api#required": {} } }, - "endpoints": { - "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataApiKeysItemEndpoints", + "key": { + "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "connectionString": { + "value": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "Deprecated: use `endpoints.direct.connectionString` or `endpoints.pooled.connectionString` instead.", - "smithy.api#required": {}, - "smithy.api#sensitive": {} - } - }, - "directConnection": { - "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataApiKeysItemDirectConnection", - "traits": { - "smithy.api#documentation": "Deprecated: use `endpoints.direct` instead.", - "com.distilled.openapi#nullable": {} + "smithy.api#required": {} } } }, - "traits": {} - }, - "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataApiKeysList": { - "type": "list", - "member": { - "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataApiKeysItem" - }, "traits": { - "smithy.api#documentation": "Deprecated: use `connections[]` instead." + "smithy.api#input": {} } }, - "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataDirectConnection": { - "type": "structure", + "com.prisma.postgres#PostV1EnvironmentVariablesResponseDataClass": { + "type": "enum", "members": { - "host": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {} - } - }, - "pass": { - "target": "smithy.api#String", + "PRODUCTION": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "production" } }, - "user": { - "target": "smithy.api#String", + "PREVIEW": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "preview" } } }, - "traits": { - "smithy.api#documentation": "Deprecated: use `connections[].endpoints.direct` instead." - } + "traits": {} }, - "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseData": { + "com.prisma.postgres#PostV1EnvironmentVariablesResponseData": { "type": "structure", "members": { "id": { @@ -11438,101 +15097,63 @@ "smithy.api#required": {} } }, - "name": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {} - } - }, - "status": { - "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataStatus", - "traits": { - "smithy.api#required": {} - } - }, - "createdAt": { + "projectId": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "isDefault": { - "target": "smithy.api#Boolean", - "traits": { - "smithy.api#required": {} - } - }, - "defaultConnectionId": { + "branchId": { "target": "smithy.api#String", "traits": { "smithy.api#required": {}, "com.distilled.openapi#nullable": {} } }, - "connections": { - "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataConnectionsList", + "class": { + "target": "com.prisma.postgres#PostV1EnvironmentVariablesResponseDataClass", "traits": { "smithy.api#required": {} } }, - "project": { - "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataProject", + "key": { + "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "region": { - "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataRegion", + "valueKid": { + "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "source": { - "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataSource", + "isManagedBySystem": { + "target": "smithy.api#Boolean", "traits": { - "smithy.api#required": {}, - "com.distilled.openapi#nullable": {} + "smithy.api#required": {} } }, - "branchId": { + "createdAt": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {}, - "com.distilled.openapi#nullable": {} - } - }, - "apiKeys": { - "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataApiKeysList", - "traits": { - "smithy.api#documentation": "Deprecated: use `connections[]` instead.", "smithy.api#required": {} } }, - "connectionString": { + "updatedAt": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "Deprecated: use `connections[].endpoints.direct.connectionString` or `connections[].endpoints.pooled.connectionString`.", - "smithy.api#required": {}, - "com.distilled.openapi#nullable": {}, - "smithy.api#sensitive": {} - } - }, - "directConnection": { - "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseDataDirectConnection", - "traits": { - "smithy.api#documentation": "Deprecated: use `connections[].endpoints.direct` instead.", - "smithy.api#required": {}, - "com.distilled.openapi#nullable": {} + "smithy.api#required": {} } } }, "traits": {} }, - "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponse": { + "com.prisma.postgres#PostV1EnvironmentVariablesResponse": { "type": "structure", "members": { "data": { - "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponseData", + "target": "com.prisma.postgres#PostV1EnvironmentVariablesResponseData", "traits": { "smithy.api#required": {} } @@ -11542,23 +15163,20 @@ "smithy.api#output": {} } }, - "com.prisma.postgres#PostV1ProjectsByProjectIdDatabases": { + "com.prisma.postgres#PostV1EnvironmentVariables": { "type": "operation", "input": { - "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesRequest" + "target": "com.prisma.postgres#PostV1EnvironmentVariablesRequest" }, "output": { - "target": "com.prisma.postgres#PostV1ProjectsByProjectIdDatabasesResponse" + "target": "com.prisma.postgres#PostV1EnvironmentVariablesResponse" }, "errors": [ { - "target": "com.prisma.postgres#BadRequest" - }, - { - "target": "com.prisma.postgres#Forbidden" + "target": "com.prisma.postgres#NotFound" }, { - "target": "com.prisma.postgres#NotFound" + "target": "com.prisma.postgres#Conflict" }, { "target": "com.prisma.postgres#UnprocessableEntity" @@ -11567,67 +15185,20 @@ "traits": { "smithy.api#http": { "method": "POST", - "uri": "/v1/projects/{projectId}/databases", + "uri": "/v1/environment-variables", "code": 200 }, - "smithy.api#documentation": "Create database\n\nCreates a new database for the given project." + "smithy.api#documentation": "Create an environment variable\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nCreates a new environment variable in a project's `production` or `preview` environment, or a preview branch override when `branchId` is supplied. Returns 409 if a variable with the same key already exists in that scope — use PATCH to replace its value. Values are stored encrypted and are not returned by subsequent reads." } }, - "com.prisma.postgres#GetV1EnvironmentVariablesRequestClass": { - "type": "enum", - "members": { - "PRODUCTION": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "production" - } - }, - "PREVIEW": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "preview" - } - } - }, - "traits": {} - }, - "com.prisma.postgres#GetV1EnvironmentVariablesRequest": { + "com.prisma.postgres#GetV1EnvironmentVariablesByEnvVarIdRequest": { "type": "structure", "members": { - "cursor": { - "target": "smithy.api#String", - "traits": { - "smithy.api#httpQuery": "cursor" - } - }, - "limit": { - "target": "smithy.api#Double", - "traits": { - "smithy.api#httpQuery": "limit" - } - }, - "projectId": { - "target": "smithy.api#String", - "traits": { - "smithy.api#httpQuery": "projectId" - } - }, - "class": { - "target": "com.prisma.postgres#GetV1EnvironmentVariablesRequestClass", - "traits": { - "smithy.api#httpQuery": "class" - } - }, - "key": { - "target": "smithy.api#String", - "traits": { - "smithy.api#httpQuery": "key" - } - }, - "branchId": { + "envVarId": { "target": "smithy.api#String", "traits": { - "smithy.api#httpQuery": "branchId" + "smithy.api#httpLabel": {}, + "smithy.api#required": {} } } }, @@ -11635,7 +15206,7 @@ "smithy.api#input": {} } }, - "com.prisma.postgres#GetV1EnvironmentVariablesResponseDataItemClass": { + "com.prisma.postgres#GetV1EnvironmentVariablesByEnvVarIdResponseDataClass": { "type": "enum", "members": { "PRODUCTION": { @@ -11653,7 +15224,7 @@ }, "traits": {} }, - "com.prisma.postgres#GetV1EnvironmentVariablesResponseDataItem": { + "com.prisma.postgres#GetV1EnvironmentVariablesByEnvVarIdResponseData": { "type": "structure", "members": { "id": { @@ -11688,7 +15259,7 @@ } }, "class": { - "target": "com.prisma.postgres#GetV1EnvironmentVariablesResponseDataItemClass", + "target": "com.prisma.postgres#GetV1EnvironmentVariablesByEnvVarIdResponseDataClass", "traits": { "smithy.api#required": {} } @@ -11724,47 +15295,13 @@ } } }, - "traits": {} - }, - "com.prisma.postgres#GetV1EnvironmentVariablesResponseDataList": { - "type": "list", - "member": { - "target": "com.prisma.postgres#GetV1EnvironmentVariablesResponseDataItem" - }, - "traits": {} - }, - "com.prisma.postgres#GetV1EnvironmentVariablesResponsePagination": { - "type": "structure", - "members": { - "nextCursor": { - "target": "smithy.api#String", - "traits": { - "smithy.api#documentation": "Next cursor to continue pagination", - "smithy.api#required": {}, - "com.distilled.openapi#nullable": {} - } - }, - "hasMore": { - "target": "smithy.api#Boolean", - "traits": { - "smithy.api#documentation": "Whether there are more items to paginate", - "smithy.api#required": {} - } - } - }, - "traits": {} - }, - "com.prisma.postgres#GetV1EnvironmentVariablesResponse": { - "type": "structure", - "members": { - "data": { - "target": "com.prisma.postgres#GetV1EnvironmentVariablesResponseDataList", - "traits": { - "smithy.api#required": {} - } - }, - "pagination": { - "target": "com.prisma.postgres#GetV1EnvironmentVariablesResponsePagination", + "traits": {} + }, + "com.prisma.postgres#GetV1EnvironmentVariablesByEnvVarIdResponse": { + "type": "structure", + "members": { + "data": { + "target": "com.prisma.postgres#GetV1EnvironmentVariablesByEnvVarIdResponseData", "traits": { "smithy.api#required": {} } @@ -11774,15 +15311,18 @@ "smithy.api#output": {} } }, - "com.prisma.postgres#GetV1EnvironmentVariables": { + "com.prisma.postgres#GetV1EnvironmentVariablesByEnvVarId": { "type": "operation", "input": { - "target": "com.prisma.postgres#GetV1EnvironmentVariablesRequest" + "target": "com.prisma.postgres#GetV1EnvironmentVariablesByEnvVarIdRequest" }, "output": { - "target": "com.prisma.postgres#GetV1EnvironmentVariablesResponse" + "target": "com.prisma.postgres#GetV1EnvironmentVariablesByEnvVarIdResponse" }, "errors": [ + { + "target": "com.prisma.postgres#NotFound" + }, { "target": "com.prisma.postgres#UnprocessableEntity" } @@ -11790,51 +15330,19 @@ "traits": { "smithy.api#http": { "method": "GET", - "uri": "/v1/environment-variables", + "uri": "/v1/environment-variables/{envVarId}", "code": 200 }, - "smithy.api#documentation": "List environment variables\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nReturns a paginated list of environment variables. All filters are optional; combine `projectId`, `class`, and `key` to look up a specific variable by name." + "smithy.api#documentation": "Get an environment variable\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nReturns a single environment variable's metadata. The value is not returned." } }, - "com.prisma.postgres#PostV1EnvironmentVariablesRequestClass": { - "type": "enum", - "members": { - "PRODUCTION": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "production" - } - }, - "PREVIEW": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "preview" - } - } - }, - "traits": {} - }, - "com.prisma.postgres#PostV1EnvironmentVariablesRequest": { + "com.prisma.postgres#PatchV1EnvironmentVariablesByEnvVarIdRequest": { "type": "structure", "members": { - "projectId": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {} - } - }, - "branchId": { - "target": "smithy.api#String" - }, - "class": { - "target": "com.prisma.postgres#PostV1EnvironmentVariablesRequestClass", - "traits": { - "smithy.api#required": {} - } - }, - "key": { + "envVarId": { "target": "smithy.api#String", "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, @@ -11849,7 +15357,7 @@ "smithy.api#input": {} } }, - "com.prisma.postgres#PostV1EnvironmentVariablesResponseDataClass": { + "com.prisma.postgres#PatchV1EnvironmentVariablesByEnvVarIdResponseDataClass": { "type": "enum", "members": { "PRODUCTION": { @@ -11867,7 +15375,7 @@ }, "traits": {} }, - "com.prisma.postgres#PostV1EnvironmentVariablesResponseData": { + "com.prisma.postgres#PatchV1EnvironmentVariablesByEnvVarIdResponseData": { "type": "structure", "members": { "id": { @@ -11902,7 +15410,7 @@ } }, "class": { - "target": "com.prisma.postgres#PostV1EnvironmentVariablesResponseDataClass", + "target": "com.prisma.postgres#PatchV1EnvironmentVariablesByEnvVarIdResponseDataClass", "traits": { "smithy.api#required": {} } @@ -11940,11 +15448,11 @@ }, "traits": {} }, - "com.prisma.postgres#PostV1EnvironmentVariablesResponse": { + "com.prisma.postgres#PatchV1EnvironmentVariablesByEnvVarIdResponse": { "type": "structure", "members": { "data": { - "target": "com.prisma.postgres#PostV1EnvironmentVariablesResponseData", + "target": "com.prisma.postgres#PatchV1EnvironmentVariablesByEnvVarIdResponseData", "traits": { "smithy.api#required": {} } @@ -11954,35 +15462,32 @@ "smithy.api#output": {} } }, - "com.prisma.postgres#PostV1EnvironmentVariables": { + "com.prisma.postgres#PatchV1EnvironmentVariablesByEnvVarId": { "type": "operation", "input": { - "target": "com.prisma.postgres#PostV1EnvironmentVariablesRequest" + "target": "com.prisma.postgres#PatchV1EnvironmentVariablesByEnvVarIdRequest" }, "output": { - "target": "com.prisma.postgres#PostV1EnvironmentVariablesResponse" + "target": "com.prisma.postgres#PatchV1EnvironmentVariablesByEnvVarIdResponse" }, "errors": [ { "target": "com.prisma.postgres#NotFound" }, - { - "target": "com.prisma.postgres#Conflict" - }, { "target": "com.prisma.postgres#UnprocessableEntity" } ], "traits": { "smithy.api#http": { - "method": "POST", - "uri": "/v1/environment-variables", + "method": "PATCH", + "uri": "/v1/environment-variables/{envVarId}", "code": 200 }, - "smithy.api#documentation": "Create an environment variable\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nCreates a new environment variable in a project's `production` or `preview` environment, or a preview branch override when `branchId` is supplied. Returns 409 if a variable with the same key already exists in that scope — use PATCH to replace its value. Values are stored encrypted and are not returned by subsequent reads." + "smithy.api#documentation": "Update an environment variable's value\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nReplaces the value of an existing environment variable. Only the value is mutable — the project, environment, key, and branch are fixed at create-time." } }, - "com.prisma.postgres#GetV1EnvironmentVariablesByEnvVarIdRequest": { + "com.prisma.postgres#DeleteV1EnvironmentVariablesByEnvVarIdRequest": { "type": "structure", "members": { "envVarId": { @@ -11997,25 +15502,66 @@ "smithy.api#input": {} } }, - "com.prisma.postgres#GetV1EnvironmentVariablesByEnvVarIdResponseDataClass": { - "type": "enum", + "com.prisma.postgres#DeleteV1EnvironmentVariablesByEnvVarId": { + "type": "operation", + "input": { + "target": "com.prisma.postgres#DeleteV1EnvironmentVariablesByEnvVarIdRequest" + }, + "output": { + "target": "smithy.api#Unit" + }, + "errors": [ + { + "target": "com.prisma.postgres#NotFound" + }, + { + "target": "com.prisma.postgres#UnprocessableEntity" + } + ], + "traits": { + "smithy.api#http": { + "method": "DELETE", + "uri": "/v1/environment-variables/{envVarId}", + "code": 200 + }, + "smithy.api#documentation": "Delete an environment variable\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nRemoves an environment variable. A second delete of the same variable returns 404." + } + }, + "com.prisma.postgres#GetV1IntegrationsRequest": { + "type": "structure", "members": { - "PRODUCTION": { - "target": "smithy.api#Unit", + "cursor": { + "target": "smithy.api#String", "traits": { - "smithy.api#enumValue": "production" + "smithy.api#httpQuery": "cursor" } }, - "PREVIEW": { - "target": "smithy.api#Unit", + "limit": { + "target": "smithy.api#Double", "traits": { - "smithy.api#enumValue": "preview" + "smithy.api#httpQuery": "limit" + } + }, + "workspaceId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#httpQuery": "workspaceId", + "smithy.api#required": {} } } }, + "traits": { + "smithy.api#input": {} + } + }, + "com.prisma.postgres#GetV1IntegrationsResponseDataItemScopesList": { + "type": "list", + "member": { + "target": "smithy.api#String" + }, "traits": {} }, - "com.prisma.postgres#GetV1EnvironmentVariablesByEnvVarIdResponseData": { + "com.prisma.postgres#GetV1IntegrationsResponseDataItemClient": { "type": "structure", "members": { "id": { @@ -12024,75 +15570,127 @@ "smithy.api#required": {} } }, - "type": { + "name": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "url": { + "createdAt": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#GetV1IntegrationsResponseDataItemCreatedByUser": { + "type": "structure", + "members": { + "id": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "projectId": { + "email": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "branchId": { + "displayName": { "target": "smithy.api#String", "traits": { "smithy.api#required": {}, "com.distilled.openapi#nullable": {} } - }, - "class": { - "target": "com.prisma.postgres#GetV1EnvironmentVariablesByEnvVarIdResponseDataClass", + } + }, + "traits": {} + }, + "com.prisma.postgres#GetV1IntegrationsResponseDataItem": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "key": { + "url": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "valueKid": { + "createdAt": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "isManagedBySystem": { - "target": "smithy.api#Boolean", + "scopes": { + "target": "com.prisma.postgres#GetV1IntegrationsResponseDataItemScopesList", "traits": { "smithy.api#required": {} } }, - "createdAt": { - "target": "smithy.api#String", + "client": { + "target": "com.prisma.postgres#GetV1IntegrationsResponseDataItemClient", "traits": { "smithy.api#required": {} } }, - "updatedAt": { + "createdByUser": { + "target": "com.prisma.postgres#GetV1IntegrationsResponseDataItemCreatedByUser", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#GetV1IntegrationsResponseDataList": { + "type": "list", + "member": { + "target": "com.prisma.postgres#GetV1IntegrationsResponseDataItem" + }, + "traits": {} + }, + "com.prisma.postgres#GetV1IntegrationsResponsePagination": { + "type": "structure", + "members": { + "nextCursor": { "target": "smithy.api#String", "traits": { + "smithy.api#documentation": "Next cursor to continue pagination", + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} + } + }, + "hasMore": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "Whether there are more items to paginate", "smithy.api#required": {} } } }, "traits": {} }, - "com.prisma.postgres#GetV1EnvironmentVariablesByEnvVarIdResponse": { + "com.prisma.postgres#GetV1IntegrationsResponse": { "type": "structure", "members": { "data": { - "target": "com.prisma.postgres#GetV1EnvironmentVariablesByEnvVarIdResponseData", + "target": "com.prisma.postgres#GetV1IntegrationsResponseDataList", + "traits": { + "smithy.api#required": {} + } + }, + "pagination": { + "target": "com.prisma.postgres#GetV1IntegrationsResponsePagination", "traits": { "smithy.api#required": {} } @@ -12102,44 +15700,30 @@ "smithy.api#output": {} } }, - "com.prisma.postgres#GetV1EnvironmentVariablesByEnvVarId": { + "com.prisma.postgres#GetV1Integrations": { "type": "operation", "input": { - "target": "com.prisma.postgres#GetV1EnvironmentVariablesByEnvVarIdRequest" + "target": "com.prisma.postgres#GetV1IntegrationsRequest" }, "output": { - "target": "com.prisma.postgres#GetV1EnvironmentVariablesByEnvVarIdResponse" + "target": "com.prisma.postgres#GetV1IntegrationsResponse" }, - "errors": [ - { - "target": "com.prisma.postgres#NotFound" - }, - { - "target": "com.prisma.postgres#UnprocessableEntity" - } - ], "traits": { "smithy.api#http": { "method": "GET", - "uri": "/v1/environment-variables/{envVarId}", + "uri": "/v1/integrations", "code": 200 }, - "smithy.api#documentation": "Get an environment variable\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nReturns a single environment variable's metadata. The value is not returned." + "smithy.api#documentation": "Get list of integrations\n\nReturns integrations filtered by workspace ID." } }, - "com.prisma.postgres#PatchV1EnvironmentVariablesByEnvVarIdRequest": { + "com.prisma.postgres#GetV1IntegrationsByIdRequest": { "type": "structure", "members": { - "envVarId": { - "target": "smithy.api#String", - "traits": { - "smithy.api#httpLabel": {}, - "smithy.api#required": {} - } - }, - "value": { + "id": { "target": "smithy.api#String", "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } } @@ -12148,25 +15732,14 @@ "smithy.api#input": {} } }, - "com.prisma.postgres#PatchV1EnvironmentVariablesByEnvVarIdResponseDataClass": { - "type": "enum", - "members": { - "PRODUCTION": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "production" - } - }, - "PREVIEW": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "preview" - } - } + "com.prisma.postgres#GetV1IntegrationsByIdResponseDataScopesList": { + "type": "list", + "member": { + "target": "smithy.api#String" }, "traits": {} }, - "com.prisma.postgres#PatchV1EnvironmentVariablesByEnvVarIdResponseData": { + "com.prisma.postgres#GetV1IntegrationsByIdResponseDataClient": { "type": "structure", "members": { "id": { @@ -12175,63 +15748,81 @@ "smithy.api#required": {} } }, - "type": { + "name": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "url": { + "createdAt": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#GetV1IntegrationsByIdResponseDataCreatedByUser": { + "type": "structure", + "members": { + "id": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "projectId": { + "email": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "branchId": { + "displayName": { "target": "smithy.api#String", "traits": { "smithy.api#required": {}, "com.distilled.openapi#nullable": {} } - }, - "class": { - "target": "com.prisma.postgres#PatchV1EnvironmentVariablesByEnvVarIdResponseDataClass", + } + }, + "traits": {} + }, + "com.prisma.postgres#GetV1IntegrationsByIdResponseData": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "key": { + "url": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "valueKid": { + "createdAt": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "isManagedBySystem": { - "target": "smithy.api#Boolean", + "scopes": { + "target": "com.prisma.postgres#GetV1IntegrationsByIdResponseDataScopesList", "traits": { "smithy.api#required": {} } }, - "createdAt": { - "target": "smithy.api#String", + "client": { + "target": "com.prisma.postgres#GetV1IntegrationsByIdResponseDataClient", "traits": { "smithy.api#required": {} } }, - "updatedAt": { - "target": "smithy.api#String", + "createdByUser": { + "target": "com.prisma.postgres#GetV1IntegrationsByIdResponseDataCreatedByUser", "traits": { "smithy.api#required": {} } @@ -12239,11 +15830,11 @@ }, "traits": {} }, - "com.prisma.postgres#PatchV1EnvironmentVariablesByEnvVarIdResponse": { + "com.prisma.postgres#GetV1IntegrationsByIdResponse": { "type": "structure", "members": { "data": { - "target": "com.prisma.postgres#PatchV1EnvironmentVariablesByEnvVarIdResponseData", + "target": "com.prisma.postgres#GetV1IntegrationsByIdResponseData", "traits": { "smithy.api#required": {} } @@ -12253,13 +15844,13 @@ "smithy.api#output": {} } }, - "com.prisma.postgres#PatchV1EnvironmentVariablesByEnvVarId": { + "com.prisma.postgres#GetV1IntegrationsById": { "type": "operation", "input": { - "target": "com.prisma.postgres#PatchV1EnvironmentVariablesByEnvVarIdRequest" + "target": "com.prisma.postgres#GetV1IntegrationsByIdRequest" }, "output": { - "target": "com.prisma.postgres#PatchV1EnvironmentVariablesByEnvVarIdResponse" + "target": "com.prisma.postgres#GetV1IntegrationsByIdResponse" }, "errors": [ { @@ -12271,17 +15862,17 @@ ], "traits": { "smithy.api#http": { - "method": "PATCH", - "uri": "/v1/environment-variables/{envVarId}", + "method": "GET", + "uri": "/v1/integrations/{id}", "code": 200 }, - "smithy.api#documentation": "Update an environment variable's value\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nReplaces the value of an existing environment variable. Only the value is mutable — the project, environment, key, and branch are fixed at create-time." + "smithy.api#documentation": "Get integration by ID\n\nReturns a single integration by its ID." } }, - "com.prisma.postgres#DeleteV1EnvironmentVariablesByEnvVarIdRequest": { + "com.prisma.postgres#DeleteV1IntegrationsByIdRequest": { "type": "structure", "members": { - "envVarId": { + "id": { "target": "smithy.api#String", "traits": { "smithy.api#httpLabel": {}, @@ -12293,10 +15884,10 @@ "smithy.api#input": {} } }, - "com.prisma.postgres#DeleteV1EnvironmentVariablesByEnvVarId": { + "com.prisma.postgres#DeleteV1IntegrationsById": { "type": "operation", "input": { - "target": "com.prisma.postgres#DeleteV1EnvironmentVariablesByEnvVarIdRequest" + "target": "com.prisma.postgres#DeleteV1IntegrationsByIdRequest" }, "output": { "target": "smithy.api#Unit" @@ -12312,47 +15903,38 @@ "traits": { "smithy.api#http": { "method": "DELETE", - "uri": "/v1/environment-variables/{envVarId}", + "uri": "/v1/integrations/{id}", "code": 200 }, - "smithy.api#documentation": "Delete an environment variable\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nRemoves an environment variable. A second delete of the same variable returns 404." + "smithy.api#documentation": "Delete integration\n\nRevokes the integration tokens by integration ID." } }, - "com.prisma.postgres#GetV1IntegrationsRequest": { + "com.prisma.postgres#GetV1MeResponseDataUser": { "type": "structure", "members": { - "cursor": { + "id": { "target": "smithy.api#String", "traits": { - "smithy.api#httpQuery": "cursor" + "smithy.api#required": {} } }, - "limit": { - "target": "smithy.api#Double", + "email": { + "target": "smithy.api#String", "traits": { - "smithy.api#httpQuery": "limit" + "smithy.api#required": {} } }, - "workspaceId": { + "name": { "target": "smithy.api#String", "traits": { - "smithy.api#httpQuery": "workspaceId", - "smithy.api#required": {} + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} } } }, - "traits": { - "smithy.api#input": {} - } - }, - "com.prisma.postgres#GetV1IntegrationsResponseDataItemScopesList": { - "type": "list", - "member": { - "target": "smithy.api#String" - }, "traits": {} }, - "com.prisma.postgres#GetV1IntegrationsResponseDataItemClient": { + "com.prisma.postgres#GetV1MeResponseDataWorkspace": { "type": "structure", "members": { "id": { @@ -12366,122 +15948,91 @@ "traits": { "smithy.api#required": {} } - }, - "createdAt": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {} - } } }, "traits": {} }, - "com.prisma.postgres#GetV1IntegrationsResponseDataItemCreatedByUser": { - "type": "structure", + "com.prisma.postgres#GetV1MeResponseDataCredentialType": { + "type": "enum", "members": { - "id": { - "target": "smithy.api#String", + "OAUTH": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "oauth" } }, - "email": { - "target": "smithy.api#String", + "SERVICE_TOKEN": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {} + "smithy.api#enumValue": "service_token" } }, - "displayName": { - "target": "smithy.api#String", + "MANAGEMENT_TOKEN": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#required": {}, - "com.distilled.openapi#nullable": {} + "smithy.api#enumValue": "management_token" } } }, "traits": {} }, - "com.prisma.postgres#GetV1IntegrationsResponseDataItem": { + "com.prisma.postgres#GetV1MeResponseDataCredential": { "type": "structure", "members": { - "id": { - "target": "smithy.api#String", + "type": { + "target": "com.prisma.postgres#GetV1MeResponseDataCredentialType", "traits": { "smithy.api#required": {} } }, - "url": { + "id": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {} + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} } }, - "createdAt": { + "name": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {} - } - }, - "scopes": { - "target": "com.prisma.postgres#GetV1IntegrationsResponseDataItemScopesList", - "traits": { - "smithy.api#required": {} - } - }, - "client": { - "target": "com.prisma.postgres#GetV1IntegrationsResponseDataItemClient", - "traits": { - "smithy.api#required": {} - } - }, - "createdByUser": { - "target": "com.prisma.postgres#GetV1IntegrationsResponseDataItemCreatedByUser", - "traits": { - "smithy.api#required": {} + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} } } }, "traits": {} }, - "com.prisma.postgres#GetV1IntegrationsResponseDataList": { - "type": "list", - "member": { - "target": "com.prisma.postgres#GetV1IntegrationsResponseDataItem" - }, - "traits": {} - }, - "com.prisma.postgres#GetV1IntegrationsResponsePagination": { + "com.prisma.postgres#GetV1MeResponseData": { "type": "structure", "members": { - "nextCursor": { - "target": "smithy.api#String", + "user": { + "target": "com.prisma.postgres#GetV1MeResponseDataUser", "traits": { - "smithy.api#documentation": "Next cursor to continue pagination", "smithy.api#required": {}, "com.distilled.openapi#nullable": {} } }, - "hasMore": { - "target": "smithy.api#Boolean", + "workspace": { + "target": "com.prisma.postgres#GetV1MeResponseDataWorkspace", + "traits": { + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} + } + }, + "credential": { + "target": "com.prisma.postgres#GetV1MeResponseDataCredential", "traits": { - "smithy.api#documentation": "Whether there are more items to paginate", "smithy.api#required": {} } } }, "traits": {} }, - "com.prisma.postgres#GetV1IntegrationsResponse": { + "com.prisma.postgres#GetV1MeResponse": { "type": "structure", "members": { "data": { - "target": "com.prisma.postgres#GetV1IntegrationsResponseDataList", - "traits": { - "smithy.api#required": {} - } - }, - "pagination": { - "target": "com.prisma.postgres#GetV1IntegrationsResponsePagination", + "target": "com.prisma.postgres#GetV1MeResponseData", "traits": { "smithy.api#required": {} } @@ -12491,46 +16042,58 @@ "smithy.api#output": {} } }, - "com.prisma.postgres#GetV1Integrations": { + "com.prisma.postgres#GetV1Me": { "type": "operation", "input": { - "target": "com.prisma.postgres#GetV1IntegrationsRequest" + "target": "smithy.api#Unit" }, "output": { - "target": "com.prisma.postgres#GetV1IntegrationsResponse" + "target": "com.prisma.postgres#GetV1MeResponse" }, "traits": { "smithy.api#http": { "method": "GET", - "uri": "/v1/integrations", + "uri": "/v1/me", "code": 200 }, - "smithy.api#documentation": "Get list of integrations\n\nReturns integrations filtered by workspace ID." + "smithy.api#documentation": "Get current authenticated principal\n\nReturns the user, workspace, and credential represented by the current token." } }, - "com.prisma.postgres#GetV1IntegrationsByIdRequest": { + "com.prisma.postgres#GetV1WorkspacesByWorkspaceIdIntegrationsRequest": { "type": "structure", "members": { - "id": { + "workspaceId": { "target": "smithy.api#String", "traits": { "smithy.api#httpLabel": {}, "smithy.api#required": {} } + }, + "cursor": { + "target": "smithy.api#String", + "traits": { + "smithy.api#httpQuery": "cursor" + } + }, + "limit": { + "target": "smithy.api#Double", + "traits": { + "smithy.api#httpQuery": "limit" + } } }, "traits": { "smithy.api#input": {} } }, - "com.prisma.postgres#GetV1IntegrationsByIdResponseDataScopesList": { + "com.prisma.postgres#GetV1WorkspacesByWorkspaceIdIntegrationsResponseDataItemScopesList": { "type": "list", "member": { "target": "smithy.api#String" }, "traits": {} }, - "com.prisma.postgres#GetV1IntegrationsByIdResponseDataClient": { + "com.prisma.postgres#GetV1WorkspacesByWorkspaceIdIntegrationsResponseDataItemClient": { "type": "structure", "members": { "id": { @@ -12554,7 +16117,7 @@ }, "traits": {} }, - "com.prisma.postgres#GetV1IntegrationsByIdResponseDataCreatedByUser": { + "com.prisma.postgres#GetV1WorkspacesByWorkspaceIdIntegrationsResponseDataItemCreatedByUser": { "type": "structure", "members": { "id": { @@ -12579,7 +16142,7 @@ }, "traits": {} }, - "com.prisma.postgres#GetV1IntegrationsByIdResponseData": { + "com.prisma.postgres#GetV1WorkspacesByWorkspaceIdIntegrationsResponseDataItem": { "type": "structure", "members": { "id": { @@ -12601,19 +16164,19 @@ } }, "scopes": { - "target": "com.prisma.postgres#GetV1IntegrationsByIdResponseDataScopesList", + "target": "com.prisma.postgres#GetV1WorkspacesByWorkspaceIdIntegrationsResponseDataItemScopesList", "traits": { "smithy.api#required": {} } }, "client": { - "target": "com.prisma.postgres#GetV1IntegrationsByIdResponseDataClient", + "target": "com.prisma.postgres#GetV1WorkspacesByWorkspaceIdIntegrationsResponseDataItemClient", "traits": { "smithy.api#required": {} } }, "createdByUser": { - "target": "com.prisma.postgres#GetV1IntegrationsByIdResponseDataCreatedByUser", + "target": "com.prisma.postgres#GetV1WorkspacesByWorkspaceIdIntegrationsResponseDataItemCreatedByUser", "traits": { "smithy.api#required": {} } @@ -12621,11 +16184,45 @@ }, "traits": {} }, - "com.prisma.postgres#GetV1IntegrationsByIdResponse": { + "com.prisma.postgres#GetV1WorkspacesByWorkspaceIdIntegrationsResponseDataList": { + "type": "list", + "member": { + "target": "com.prisma.postgres#GetV1WorkspacesByWorkspaceIdIntegrationsResponseDataItem" + }, + "traits": {} + }, + "com.prisma.postgres#GetV1WorkspacesByWorkspaceIdIntegrationsResponsePagination": { + "type": "structure", + "members": { + "nextCursor": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "Next cursor to continue pagination", + "smithy.api#required": {}, + "com.distilled.openapi#nullable": {} + } + }, + "hasMore": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "Whether there are more items to paginate", + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#GetV1WorkspacesByWorkspaceIdIntegrationsResponse": { "type": "structure", "members": { "data": { - "target": "com.prisma.postgres#GetV1IntegrationsByIdResponseData", + "target": "com.prisma.postgres#GetV1WorkspacesByWorkspaceIdIntegrationsResponseDataList", + "traits": { + "smithy.api#required": {} + } + }, + "pagination": { + "target": "com.prisma.postgres#GetV1WorkspacesByWorkspaceIdIntegrationsResponsePagination", "traits": { "smithy.api#required": {} } @@ -12635,13 +16232,13 @@ "smithy.api#output": {} } }, - "com.prisma.postgres#GetV1IntegrationsById": { + "com.prisma.postgres#GetV1WorkspacesByWorkspaceIdIntegrations": { "type": "operation", "input": { - "target": "com.prisma.postgres#GetV1IntegrationsByIdRequest" + "target": "com.prisma.postgres#GetV1WorkspacesByWorkspaceIdIntegrationsRequest" }, "output": { - "target": "com.prisma.postgres#GetV1IntegrationsByIdResponse" + "target": "com.prisma.postgres#GetV1WorkspacesByWorkspaceIdIntegrationsResponse" }, "errors": [ { @@ -12654,16 +16251,23 @@ "traits": { "smithy.api#http": { "method": "GET", - "uri": "/v1/integrations/{id}", + "uri": "/v1/workspaces/{workspaceId}/integrations", "code": 200 }, - "smithy.api#documentation": "Get integration by ID\n\nReturns a single integration by its ID." + "smithy.api#documentation": "Get list of integrations\n\nReturns integrations for the given workspace." } }, - "com.prisma.postgres#DeleteV1IntegrationsByIdRequest": { + "com.prisma.postgres#DeleteV1WorkspacesByWorkspaceIdIntegrationsByClientIdRequest": { "type": "structure", "members": { - "id": { + "workspaceId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "clientId": { "target": "smithy.api#String", "traits": { "smithy.api#httpLabel": {}, @@ -12675,10 +16279,10 @@ "smithy.api#input": {} } }, - "com.prisma.postgres#DeleteV1IntegrationsById": { + "com.prisma.postgres#DeleteV1WorkspacesByWorkspaceIdIntegrationsByClientId": { "type": "operation", "input": { - "target": "com.prisma.postgres#DeleteV1IntegrationsByIdRequest" + "target": "com.prisma.postgres#DeleteV1WorkspacesByWorkspaceIdIntegrationsByClientIdRequest" }, "output": { "target": "smithy.api#Unit" @@ -12694,38 +16298,40 @@ "traits": { "smithy.api#http": { "method": "DELETE", - "uri": "/v1/integrations/{id}", + "uri": "/v1/workspaces/{workspaceId}/integrations/{clientId}", "code": 200 }, - "smithy.api#documentation": "Delete integration\n\nRevokes the integration tokens by integration ID." + "smithy.api#documentation": "Revoke integration tokens\n\nRevokes the integration tokens with the given client ID." } }, - "com.prisma.postgres#GetV1MeResponseDataUser": { + "com.prisma.postgres#GetV1WorkspacesByWorkspaceIdServiceTokensRequest": { "type": "structure", "members": { - "id": { + "workspaceId": { "target": "smithy.api#String", "traits": { + "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "email": { + "cursor": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {} + "smithy.api#httpQuery": "cursor" } }, - "name": { - "target": "smithy.api#String", + "limit": { + "target": "smithy.api#Integer", "traits": { - "smithy.api#required": {}, - "com.distilled.openapi#nullable": {} + "smithy.api#httpQuery": "limit" } } }, - "traits": {} + "traits": { + "smithy.api#input": {} + } }, - "com.prisma.postgres#GetV1MeResponseDataWorkspace": { + "com.prisma.postgres#GetV1WorkspacesByWorkspaceIdServiceTokensResponseDataItem": { "type": "structure", "members": { "id": { @@ -12734,96 +16340,78 @@ "smithy.api#required": {} } }, - "name": { + "type": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } - } - }, - "traits": {} - }, - "com.prisma.postgres#GetV1MeResponseDataCredentialType": { - "type": "enum", - "members": { - "OAUTH": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "oauth" - } }, - "SERVICE_TOKEN": { - "target": "smithy.api#Unit", + "name": { + "target": "smithy.api#String", "traits": { - "smithy.api#enumValue": "service_token" + "smithy.api#required": {} } }, - "MANAGEMENT_TOKEN": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "management_token" - } - } - }, - "traits": {} - }, - "com.prisma.postgres#GetV1MeResponseDataCredential": { - "type": "structure", - "members": { - "type": { - "target": "com.prisma.postgres#GetV1MeResponseDataCredentialType", + "valueHint": { + "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "id": { + "createdAt": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {}, - "com.distilled.openapi#nullable": {} + "smithy.api#required": {} } }, - "name": { + "expiresAt": { "target": "smithy.api#String", "traits": { - "smithy.api#required": {}, "com.distilled.openapi#nullable": {} } } }, "traits": {} }, - "com.prisma.postgres#GetV1MeResponseData": { + "com.prisma.postgres#GetV1WorkspacesByWorkspaceIdServiceTokensResponseDataList": { + "type": "list", + "member": { + "target": "com.prisma.postgres#GetV1WorkspacesByWorkspaceIdServiceTokensResponseDataItem" + }, + "traits": {} + }, + "com.prisma.postgres#GetV1WorkspacesByWorkspaceIdServiceTokensResponsePagination": { "type": "structure", "members": { - "user": { - "target": "com.prisma.postgres#GetV1MeResponseDataUser", - "traits": { - "smithy.api#required": {}, - "com.distilled.openapi#nullable": {} - } - }, - "workspace": { - "target": "com.prisma.postgres#GetV1MeResponseDataWorkspace", + "nextCursor": { + "target": "smithy.api#String", "traits": { + "smithy.api#documentation": "Next cursor to continue pagination", "smithy.api#required": {}, "com.distilled.openapi#nullable": {} } }, - "credential": { - "target": "com.prisma.postgres#GetV1MeResponseDataCredential", + "hasMore": { + "target": "smithy.api#Boolean", "traits": { + "smithy.api#documentation": "Whether there are more items to paginate", "smithy.api#required": {} } } }, "traits": {} }, - "com.prisma.postgres#GetV1MeResponse": { + "com.prisma.postgres#GetV1WorkspacesByWorkspaceIdServiceTokensResponse": { "type": "structure", "members": { "data": { - "target": "com.prisma.postgres#GetV1MeResponseData", + "target": "com.prisma.postgres#GetV1WorkspacesByWorkspaceIdServiceTokensResponseDataList", + "traits": { + "smithy.api#required": {} + } + }, + "pagination": { + "target": "com.prisma.postgres#GetV1WorkspacesByWorkspaceIdServiceTokensResponsePagination", "traits": { "smithy.api#required": {} } @@ -12833,24 +16421,24 @@ "smithy.api#output": {} } }, - "com.prisma.postgres#GetV1Me": { + "com.prisma.postgres#GetV1WorkspacesByWorkspaceIdServiceTokens": { "type": "operation", "input": { - "target": "smithy.api#Unit" + "target": "com.prisma.postgres#GetV1WorkspacesByWorkspaceIdServiceTokensRequest" }, "output": { - "target": "com.prisma.postgres#GetV1MeResponse" + "target": "com.prisma.postgres#GetV1WorkspacesByWorkspaceIdServiceTokensResponse" }, "traits": { "smithy.api#http": { "method": "GET", - "uri": "/v1/me", + "uri": "/v1/workspaces/{workspaceId}/service-tokens", "code": 200 }, - "smithy.api#documentation": "Get current authenticated principal\n\nReturns the user, workspace, and credential represented by the current token." + "smithy.api#documentation": "List service tokens\n\nReturns the service tokens for the given workspace, newest first." } }, - "com.prisma.postgres#GetV1WorkspacesByWorkspaceIdIntegrationsRequest": { + "com.prisma.postgres#PostV1WorkspacesByWorkspaceIdServiceTokensRequest": { "type": "structure", "members": { "workspaceId": { @@ -12860,16 +16448,11 @@ "smithy.api#required": {} } }, - "cursor": { + "name": { "target": "smithy.api#String", "traits": { - "smithy.api#httpQuery": "cursor" - } - }, - "limit": { - "target": "smithy.api#Double", - "traits": { - "smithy.api#httpQuery": "limit" + "smithy.api#documentation": "Display name for the service token.", + "smithy.api#required": {} } } }, @@ -12877,38 +16460,7 @@ "smithy.api#input": {} } }, - "com.prisma.postgres#GetV1WorkspacesByWorkspaceIdIntegrationsResponseDataItemScopesList": { - "type": "list", - "member": { - "target": "smithy.api#String" - }, - "traits": {} - }, - "com.prisma.postgres#GetV1WorkspacesByWorkspaceIdIntegrationsResponseDataItemClient": { - "type": "structure", - "members": { - "id": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {} - } - }, - "name": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {} - } - }, - "createdAt": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {} - } - } - }, - "traits": {} - }, - "com.prisma.postgres#GetV1WorkspacesByWorkspaceIdIntegrationsResponseDataItemCreatedByUser": { + "com.prisma.postgres#PostV1WorkspacesByWorkspaceIdServiceTokensResponseData": { "type": "structure", "members": { "id": { @@ -12917,103 +16469,50 @@ "smithy.api#required": {} } }, - "email": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {} - } - }, - "displayName": { - "target": "smithy.api#String", - "traits": { - "smithy.api#required": {}, - "com.distilled.openapi#nullable": {} - } - } - }, - "traits": {} - }, - "com.prisma.postgres#GetV1WorkspacesByWorkspaceIdIntegrationsResponseDataItem": { - "type": "structure", - "members": { - "id": { + "type": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "url": { + "name": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "createdAt": { + "valueHint": { "target": "smithy.api#String", "traits": { "smithy.api#required": {} } }, - "scopes": { - "target": "com.prisma.postgres#GetV1WorkspacesByWorkspaceIdIntegrationsResponseDataItemScopesList", - "traits": { - "smithy.api#required": {} - } - }, - "client": { - "target": "com.prisma.postgres#GetV1WorkspacesByWorkspaceIdIntegrationsResponseDataItemClient", - "traits": { - "smithy.api#required": {} - } - }, - "createdByUser": { - "target": "com.prisma.postgres#GetV1WorkspacesByWorkspaceIdIntegrationsResponseDataItemCreatedByUser", + "createdAt": { + "target": "smithy.api#String", "traits": { "smithy.api#required": {} } - } - }, - "traits": {} - }, - "com.prisma.postgres#GetV1WorkspacesByWorkspaceIdIntegrationsResponseDataList": { - "type": "list", - "member": { - "target": "com.prisma.postgres#GetV1WorkspacesByWorkspaceIdIntegrationsResponseDataItem" - }, - "traits": {} - }, - "com.prisma.postgres#GetV1WorkspacesByWorkspaceIdIntegrationsResponsePagination": { - "type": "structure", - "members": { - "nextCursor": { + }, + "expiresAt": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "Next cursor to continue pagination", - "smithy.api#required": {}, "com.distilled.openapi#nullable": {} } }, - "hasMore": { - "target": "smithy.api#Boolean", + "value": { + "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "Whether there are more items to paginate", "smithy.api#required": {} } } }, "traits": {} }, - "com.prisma.postgres#GetV1WorkspacesByWorkspaceIdIntegrationsResponse": { + "com.prisma.postgres#PostV1WorkspacesByWorkspaceIdServiceTokensResponse": { "type": "structure", "members": { "data": { - "target": "com.prisma.postgres#GetV1WorkspacesByWorkspaceIdIntegrationsResponseDataList", - "traits": { - "smithy.api#required": {} - } - }, - "pagination": { - "target": "com.prisma.postgres#GetV1WorkspacesByWorkspaceIdIntegrationsResponsePagination", + "target": "com.prisma.postgres#PostV1WorkspacesByWorkspaceIdServiceTokensResponseData", "traits": { "smithy.api#required": {} } @@ -13023,13 +16522,13 @@ "smithy.api#output": {} } }, - "com.prisma.postgres#GetV1WorkspacesByWorkspaceIdIntegrations": { + "com.prisma.postgres#PostV1WorkspacesByWorkspaceIdServiceTokens": { "type": "operation", "input": { - "target": "com.prisma.postgres#GetV1WorkspacesByWorkspaceIdIntegrationsRequest" + "target": "com.prisma.postgres#PostV1WorkspacesByWorkspaceIdServiceTokensRequest" }, "output": { - "target": "com.prisma.postgres#GetV1WorkspacesByWorkspaceIdIntegrationsResponse" + "target": "com.prisma.postgres#PostV1WorkspacesByWorkspaceIdServiceTokensResponse" }, "errors": [ { @@ -13041,14 +16540,14 @@ ], "traits": { "smithy.api#http": { - "method": "GET", - "uri": "/v1/workspaces/{workspaceId}/integrations", + "method": "POST", + "uri": "/v1/workspaces/{workspaceId}/service-tokens", "code": 200 }, - "smithy.api#documentation": "Get list of integrations\n\nReturns integrations for the given workspace." + "smithy.api#documentation": "Create service token\n\nCreates a new service token for the given workspace. The `value` field is returned exactly once in this response and is never stored — copy it immediately." } }, - "com.prisma.postgres#DeleteV1WorkspacesByWorkspaceIdIntegrationsByClientIdRequest": { + "com.prisma.postgres#DeleteV1WorkspacesByWorkspaceIdServiceTokensByServiceTokenIdRequest": { "type": "structure", "members": { "workspaceId": { @@ -13058,7 +16557,7 @@ "smithy.api#required": {} } }, - "clientId": { + "serviceTokenId": { "target": "smithy.api#String", "traits": { "smithy.api#httpLabel": {}, @@ -13070,10 +16569,10 @@ "smithy.api#input": {} } }, - "com.prisma.postgres#DeleteV1WorkspacesByWorkspaceIdIntegrationsByClientId": { + "com.prisma.postgres#DeleteV1WorkspacesByWorkspaceIdServiceTokensByServiceTokenId": { "type": "operation", "input": { - "target": "com.prisma.postgres#DeleteV1WorkspacesByWorkspaceIdIntegrationsByClientIdRequest" + "target": "com.prisma.postgres#DeleteV1WorkspacesByWorkspaceIdServiceTokensByServiceTokenIdRequest" }, "output": { "target": "smithy.api#Unit" @@ -13081,18 +16580,107 @@ "errors": [ { "target": "com.prisma.postgres#NotFound" - }, - { - "target": "com.prisma.postgres#UnprocessableEntity" } ], "traits": { "smithy.api#http": { "method": "DELETE", - "uri": "/v1/workspaces/{workspaceId}/integrations/{clientId}", + "uri": "/v1/workspaces/{workspaceId}/service-tokens/{serviceTokenId}", "code": 200 }, - "smithy.api#documentation": "Revoke integration tokens\n\nRevokes the integration tokens with the given client ID." + "smithy.api#documentation": "Delete service token\n\nRevokes the service token with the given ID by deleting it." + } + }, + "com.prisma.postgres#PostV1AuthGithubActionsTokenRequest": { + "type": "structure", + "members": { + "token": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "The GitHub Actions OIDC token with audience `prisma-cloud`.", + "smithy.api#required": {} + } + }, + "expiresInSeconds": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#documentation": "Requested token lifetime in seconds. Defaults to 1800 (30 min); capped at 3600 (60 min)." + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.prisma.postgres#PostV1AuthGithubActionsTokenResponseData": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "Prefixed integration token ID (`itgr_` prefix).", + "smithy.api#required": {} + } + }, + "type": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "value": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "The minted integration token. Returned once — copy it immediately.", + "smithy.api#required": {} + } + }, + "expiresAt": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "ISO 8601 instant after which the token is invalid.", + "smithy.api#required": {} + } + }, + "workspaceId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "Prefixed workspace ID the token is scoped to.", + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#PostV1AuthGithubActionsTokenResponse": { + "type": "structure", + "members": { + "data": { + "target": "com.prisma.postgres#PostV1AuthGithubActionsTokenResponseData", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.prisma.postgres#PostV1AuthGithubActionsToken": { + "type": "operation", + "input": { + "target": "com.prisma.postgres#PostV1AuthGithubActionsTokenRequest" + }, + "output": { + "target": "com.prisma.postgres#PostV1AuthGithubActionsTokenResponse" + }, + "traits": { + "smithy.api#http": { + "method": "POST", + "uri": "/v1/auth/github-actions/token", + "code": 200 + }, + "smithy.api#documentation": "Exchange a GitHub Actions OIDC token for a workspace service token\n\n⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️\n\nVerifies the GitHub Actions OIDC token and mints a short-lived workspace service token. The caller must request the token with audience `prisma-cloud`. Any verification failure returns a generic 401 — the response never reveals whether a repository is connected." } }, "com.prisma.postgres#GetV1RegionsRequestProduct": { @@ -14643,6 +18231,81 @@ "smithy.api#documentation": "Get workspace\n\nReturns the workspace with the given ID." } }, + "com.prisma.postgres#GetV1WorkspacesByIdSubscriptionRequest": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.prisma.postgres#GetV1WorkspacesByIdSubscriptionResponseData": { + "type": "structure", + "members": { + "planName": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "usageBlocked": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#required": {} + } + }, + "upgradeUrl": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.prisma.postgres#GetV1WorkspacesByIdSubscriptionResponse": { + "type": "structure", + "members": { + "data": { + "target": "com.prisma.postgres#GetV1WorkspacesByIdSubscriptionResponseData", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.prisma.postgres#GetV1WorkspacesByIdSubscription": { + "type": "operation", + "input": { + "target": "com.prisma.postgres#GetV1WorkspacesByIdSubscriptionRequest" + }, + "output": { + "target": "com.prisma.postgres#GetV1WorkspacesByIdSubscriptionResponse" + }, + "errors": [ + { + "target": "com.prisma.postgres#NotFound" + } + ], + "traits": { + "smithy.api#http": { + "method": "GET", + "uri": "/v1/workspaces/{id}/subscription", + "code": 200 + }, + "smithy.api#documentation": "Get workspace subscription\n\nReturns subscription information for the workspace with the given ID." + } + }, "com.prisma.postgres#Forbidden": { "type": "structure", "members": {}, @@ -14656,28 +18319,28 @@ ] } }, - "com.prisma.postgres#UnprocessableEntity": { + "com.prisma.postgres#NotFound": { "type": "structure", "members": {}, "traits": { "smithy.api#error": "client", - "smithy.api#httpError": 422, + "smithy.api#httpError": 404, "com.distilled.openapi#errorMatchers": [ { - "status": 422 + "status": 404 } ] } }, - "com.prisma.postgres#NotFound": { + "com.prisma.postgres#UnprocessableEntity": { "type": "structure", "members": {}, "traits": { "smithy.api#error": "client", - "smithy.api#httpError": 404, + "smithy.api#httpError": 422, "com.distilled.openapi#errorMatchers": [ { - "status": 404 + "status": 422 } ] } @@ -14760,6 +18423,42 @@ { "target": "com.prisma.postgres#DeleteV1BranchesByBranchId" }, + { + "target": "com.prisma.postgres#GetV1Buckets" + }, + { + "target": "com.prisma.postgres#PostV1Buckets" + }, + { + "target": "com.prisma.postgres#GetV1BucketsByBucketId" + }, + { + "target": "com.prisma.postgres#DeleteV1BucketsByBucketId" + }, + { + "target": "com.prisma.postgres#GetV1BucketsByBucketIdKeys" + }, + { + "target": "com.prisma.postgres#PostV1BucketsByBucketIdKeys" + }, + { + "target": "com.prisma.postgres#DeleteV1BucketsByBucketIdKeysByKeyId" + }, + { + "target": "com.prisma.postgres#GetV1Builds" + }, + { + "target": "com.prisma.postgres#PostV1Builds" + }, + { + "target": "com.prisma.postgres#GetV1BuildsByBuildId" + }, + { + "target": "com.prisma.postgres#PatchV1BuildsByBuildId" + }, + { + "target": "com.prisma.postgres#PutV1BuildsByBuildIdResourcesByResourceTypeByResourceId" + }, { "target": "com.prisma.postgres#GetV1BuildsByBuildIdLogs" }, @@ -14851,10 +18550,46 @@ "target": "com.prisma.postgres#PostV1ProjectsByIdTransfer" }, { - "target": "com.prisma.postgres#GetV1ProjectsByProjectIdComputeServices" + "target": "com.prisma.postgres#PostV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLease" + }, + { + "target": "com.prisma.postgres#PatchV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLease" }, { - "target": "com.prisma.postgres#PostV1ProjectsByProjectIdComputeServices" + "target": "com.prisma.postgres#DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLease" + }, + { + "target": "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateVersion" + }, + { + "target": "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacks" + }, + { + "target": "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStages" + }, + { + "target": "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResources" + }, + { + "target": "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqn" + }, + { + "target": "com.prisma.postgres#PutV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqn" + }, + { + "target": "com.prisma.postgres#DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqn" + }, + { + "target": "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageReplacedResources" + }, + { + "target": "com.prisma.postgres#GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageOutput" + }, + { + "target": "com.prisma.postgres#PutV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageOutput" + }, + { + "target": "com.prisma.postgres#DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStack" }, { "target": "com.prisma.postgres#GetV1ProjectsByProjectIdDatabases" @@ -14895,6 +18630,18 @@ { "target": "com.prisma.postgres#DeleteV1WorkspacesByWorkspaceIdIntegrationsByClientId" }, + { + "target": "com.prisma.postgres#GetV1WorkspacesByWorkspaceIdServiceTokens" + }, + { + "target": "com.prisma.postgres#PostV1WorkspacesByWorkspaceIdServiceTokens" + }, + { + "target": "com.prisma.postgres#DeleteV1WorkspacesByWorkspaceIdServiceTokensByServiceTokenId" + }, + { + "target": "com.prisma.postgres#PostV1AuthGithubActionsToken" + }, { "target": "com.prisma.postgres#GetV1Regions" }, @@ -14930,6 +18677,9 @@ }, { "target": "com.prisma.postgres#GetV1WorkspacesById" + }, + { + "target": "com.prisma.postgres#GetV1WorkspacesByIdSubscription" } ], "traits": { diff --git a/packages/prisma-postgres/patches/003-add-conflict-responses.patch.json b/packages/prisma-postgres/patches/003-add-conflict-responses.patch.json new file mode 100644 index 0000000000..8548b1192e --- /dev/null +++ b/packages/prisma-postgres/patches/003-add-conflict-responses.patch.json @@ -0,0 +1,165 @@ +{ + "description": "Declare the 409 conflict responses that consumers already handle but the spec omits, so they land in the typed error unions as Conflict instead of the catch-all.", + "patches": [ + { + "op": "add", + "path": "/paths/~1v1~1projects/post/responses/409", + "value": { + "description": "A project with the same name already exists in the workspace.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "error": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "hint": { + "type": "string" + } + }, + "required": ["code", "message"] + } + }, + "required": ["error"] + } + } + } + } + }, + { + "op": "add", + "path": "/paths/~1v1~1projects~1{id}/delete/responses/409", + "value": { + "description": "The project still owns resources that block deletion.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "error": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "hint": { + "type": "string" + } + }, + "required": ["code", "message"] + } + }, + "required": ["error"] + } + } + } + } + }, + { + "op": "add", + "path": "/paths/~1v1~1databases/post/responses/409", + "value": { + "description": "A database with the same name already exists in the project.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "error": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "hint": { + "type": "string" + } + }, + "required": ["code", "message"] + } + }, + "required": ["error"] + } + } + } + } + }, + { + "op": "add", + "path": "/paths/~1v1~1connections/post/responses/409", + "value": { + "description": "A connection with the same name already exists on the database.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "error": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "hint": { + "type": "string" + } + }, + "required": ["code", "message"] + } + }, + "required": ["error"] + } + } + } + } + }, + { + "op": "add", + "path": "/paths/~1v1~1projects~1{projectId}~1databases/post/responses/409", + "value": { + "description": "The project already has a default database, or a database with the same name.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "error": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "hint": { + "type": "string" + } + }, + "required": ["code", "message"] + } + }, + "required": ["error"] + } + } + } + } + } + ] +} diff --git a/packages/prisma-postgres/patches/004-add-lifecycle-list-404-responses.patch.json b/packages/prisma-postgres/patches/004-add-lifecycle-list-404-responses.patch.json new file mode 100644 index 0000000000..a10562bd46 --- /dev/null +++ b/packages/prisma-postgres/patches/004-add-lifecycle-list-404-responses.patch.json @@ -0,0 +1,69 @@ +{ + "description": "Add the 404 responses D3's consumers already handle but the spec omits: filtered list routes answer 404 when the filter's project is gone, and alchemy's destroy paths treat that as already-cleaned-up (ComputeLifecycle destroyProjectApps for /v1/apps, Compute destroyComputeEnvironment for /v1/environment-variables).", + "patches": [ + { + "op": "add", + "path": "/paths/~1v1~1apps/get/responses/404", + "value": { + "description": "Project referenced by the projectId filter not found", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "error": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "hint": { + "type": "string" + } + }, + "required": ["code", "message"] + } + }, + "required": ["error"] + } + } + } + } + }, + { + "op": "add", + "path": "/paths/~1v1~1environment-variables/get/responses/404", + "value": { + "description": "Project referenced by the projectId filter not found", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "error": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "hint": { + "type": "string" + } + }, + "required": ["code", "message"] + } + }, + "required": ["error"] + } + } + } + } + } + ] +} diff --git a/packages/prisma-postgres/specs/distilled-spec-prisma-postgres b/packages/prisma-postgres/specs/distilled-spec-prisma-postgres index 2f2edbfacd..aafec81843 160000 --- a/packages/prisma-postgres/specs/distilled-spec-prisma-postgres +++ b/packages/prisma-postgres/specs/distilled-spec-prisma-postgres @@ -1 +1 @@ -Subproject commit 2f2edbfacd225af4f9be9b5ada69028630d6933a +Subproject commit aafec81843b557219315df0c0849bd581c0ccefb diff --git a/packages/prisma-postgres/src/services/management.ts b/packages/prisma-postgres/src/services/management.ts index bf5b489a1c..978ca1fe39 100644 --- a/packages/prisma-postgres/src/services/management.ts +++ b/packages/prisma-postgres/src/services/management.ts @@ -97,6 +97,52 @@ export const DeleteV1BranchesByBranchIdResponse = /*@__PURE__*/ S.suspend(() => identifier: "DeleteV1BranchesByBranchIdResponse", }) as any as S.Schema; +export interface DeleteV1BucketsByBucketIdRequest { + bucketId: string; +} +export const DeleteV1BucketsByBucketIdRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + bucketId: S.String.pipe(T.Label()), + }).pipe( + T.Http({ method: "DELETE", uri: "/v1/buckets/{bucketId}", code: 200 }), + ), +).annotate({ + identifier: "DeleteV1BucketsByBucketIdRequest", +}) as any as S.Schema; + +export interface DeleteV1BucketsByBucketIdResponse {} +export const DeleteV1BucketsByBucketIdResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({}), +).annotate({ + identifier: "DeleteV1BucketsByBucketIdResponse", +}) as any as S.Schema; + +export interface DeleteV1BucketsByBucketIdKeysByKeyIdRequest { + bucketId: string; + keyId: string; +} +export const DeleteV1BucketsByBucketIdKeysByKeyIdRequest = + /*@__PURE__*/ S.suspend(() => + S.Struct({ + bucketId: S.String.pipe(T.Label()), + keyId: S.String.pipe(T.Label()), + }).pipe( + T.Http({ + method: "DELETE", + uri: "/v1/buckets/{bucketId}/keys/{keyId}", + code: 200, + }), + ), + ).annotate({ + identifier: "DeleteV1BucketsByBucketIdKeysByKeyIdRequest", + }) as any as S.Schema; + +export interface DeleteV1BucketsByBucketIdKeysByKeyIdResponse {} +export const DeleteV1BucketsByBucketIdKeysByKeyIdResponse = + /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ + identifier: "DeleteV1BucketsByBucketIdKeysByKeyIdResponse", + }) as any as S.Schema; + export interface DeleteV1ConnectionsByIdRequest { id: string; } @@ -246,6 +292,100 @@ export const DeleteV1ProjectsByIdResponse = /*@__PURE__*/ S.suspend(() => identifier: "DeleteV1ProjectsByIdResponse", }) as any as S.Schema; +export interface DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseRequest { + projectId: string; + branchId: string; +} +export const DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseRequest = + /*@__PURE__*/ S.suspend(() => + S.Struct({ + projectId: S.String.pipe(T.Label()), + branchId: S.String.pipe(T.Label()), + }).pipe( + T.Http({ + method: "DELETE", + uri: "/v1/projects/{projectId}/branches/{branchId}/alchemy-state/lease", + code: 200, + }), + ), + ).annotate({ + identifier: + "DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseRequest", + }) as any as S.Schema; + +export interface DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseResponse {} +export const DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseResponse = + /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ + identifier: + "DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseResponse", + }) as any as S.Schema; + +export interface DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackRequest { + projectId: string; + branchId: string; + stack: string; + stage?: string; +} +export const DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackRequest = + /*@__PURE__*/ S.suspend(() => + S.Struct({ + projectId: S.String.pipe(T.Label()), + branchId: S.String.pipe(T.Label()), + stack: S.String.pipe(T.Label()), + stage: S.optional(S.String.pipe(T.Query())), + }).pipe( + T.Http({ + method: "DELETE", + uri: "/v1/projects/{projectId}/branches/{branchId}/alchemy-state/state/stacks/{stack}", + code: 200, + }), + ), + ).annotate({ + identifier: + "DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackRequest", + }) as any as S.Schema; + +export interface DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackResponse {} +export const DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackResponse = + /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ + identifier: + "DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackResponse", + }) as any as S.Schema; + +export interface DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqnRequest { + projectId: string; + branchId: string; + stack: string; + stage: string; + fqn: string; +} +export const DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqnRequest = + /*@__PURE__*/ S.suspend(() => + S.Struct({ + projectId: S.String.pipe(T.Label()), + branchId: S.String.pipe(T.Label()), + stack: S.String.pipe(T.Label()), + stage: S.String.pipe(T.Label()), + fqn: S.String.pipe(T.Label()), + }).pipe( + T.Http({ + method: "DELETE", + uri: "/v1/projects/{projectId}/branches/{branchId}/alchemy-state/state/stacks/{stack}/stages/{stage}/resources/{fqn}", + code: 200, + }), + ), + ).annotate({ + identifier: + "DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqnRequest", + }) as any as S.Schema; + +export interface DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqnResponse {} +export const DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqnResponse = + /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ + identifier: + "DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqnResponse", + }) as any as S.Schema; + export interface DeleteV1SourceRepositoriesByIdRequest { id: string; } @@ -297,6 +437,34 @@ export const DeleteV1WorkspacesByWorkspaceIdIntegrationsByClientIdResponse = identifier: "DeleteV1WorkspacesByWorkspaceIdIntegrationsByClientIdResponse", }) as any as S.Schema; +export interface DeleteV1WorkspacesByWorkspaceIdServiceTokensByServiceTokenIdRequest { + workspaceId: string; + serviceTokenId: string; +} +export const DeleteV1WorkspacesByWorkspaceIdServiceTokensByServiceTokenIdRequest = + /*@__PURE__*/ S.suspend(() => + S.Struct({ + workspaceId: S.String.pipe(T.Label()), + serviceTokenId: S.String.pipe(T.Label()), + }).pipe( + T.Http({ + method: "DELETE", + uri: "/v1/workspaces/{workspaceId}/service-tokens/{serviceTokenId}", + code: 200, + }), + ), + ).annotate({ + identifier: + "DeleteV1WorkspacesByWorkspaceIdServiceTokensByServiceTokenIdRequest", + }) as any as S.Schema; + +export interface DeleteV1WorkspacesByWorkspaceIdServiceTokensByServiceTokenIdResponse {} +export const DeleteV1WorkspacesByWorkspaceIdServiceTokensByServiceTokenIdResponse = + /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ + identifier: + "DeleteV1WorkspacesByWorkspaceIdServiceTokensByServiceTokenIdResponse", + }) as any as S.Schema; + export interface GetV1AppsRequest { cursor?: string; limit?: number; @@ -628,7 +796,7 @@ export const GetV1BranchesByBranchIdRequest = /*@__PURE__*/ S.suspend(() => export type GetV1BranchesByBranchIdResponseDataRole = "production" | "preview"; export const GetV1BranchesByBranchIdResponseDataRole = /*@__PURE__*/ S.String; -/** Thin reference to the parent Project. Member resources are intentionally NOT inlined — list /v1/databases?branchId= or /v1/compute-services?branchId= instead (see API design principles "Flat and Hierarchical Coexistence"). */ +/** Thin reference to the parent Project. Member resources are intentionally NOT inlined — list /v1/databases?branchId= or /v1/apps?branchId= instead (see API design principles "Flat and Hierarchical Coexistence"). */ export interface GetV1BranchesByBranchIdResponseDataProject { id: string; url: string; @@ -654,7 +822,7 @@ export interface GetV1BranchesByBranchIdResponseData { role: GetV1BranchesByBranchIdResponseDataRole; createdAt: string; updatedAt: string; - /** Thin reference to the parent Project. Member resources are intentionally NOT inlined — list /v1/databases?branchId= or /v1/compute-services?branchId= instead (see API design principles "Flat and Hierarchical Coexistence"). */ + /** Thin reference to the parent Project. Member resources are intentionally NOT inlined — list /v1/databases?branchId= or /v1/apps?branchId= instead (see API design principles "Flat and Hierarchical Coexistence"). */ project: GetV1BranchesByBranchIdResponseDataProject; } export const GetV1BranchesByBranchIdResponseData = /*@__PURE__*/ S.suspend(() => @@ -684,6 +852,423 @@ export const GetV1BranchesByBranchIdResponse = /*@__PURE__*/ S.suspend(() => identifier: "GetV1BranchesByBranchIdResponse", }) as any as S.Schema; +export interface GetV1BucketsRequest { + cursor?: string; + limit?: number; + projectId?: string; + branchId?: string; + branchGitName?: string; +} +export const GetV1BucketsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + cursor: S.optional(S.String.pipe(T.Query())), + limit: S.optional(S.Number.pipe(T.Query())), + projectId: S.optional(S.String.pipe(T.Query())), + branchId: S.optional(S.String.pipe(T.Query())), + branchGitName: S.optional(S.String.pipe(T.Query())), + }).pipe(T.Http({ method: "GET", uri: "/v1/buckets", code: 200 })), +).annotate({ + identifier: "GetV1BucketsRequest", +}) as any as S.Schema; + +export type GetV1BucketsResponseDataItemProject = + GetV1BranchesByBranchIdResponseDataProject; +export const GetV1BucketsResponseDataItemProject = + GetV1BranchesByBranchIdResponseDataProject; + +export interface GetV1BucketsResponseDataItem { + id: string; + type: string; + url: string; + name: string; + providerName: string; + status: string; + createdAt: string; + project: GetV1BranchesByBranchIdResponseDataProject; + branchId: string | null; +} +export const GetV1BucketsResponseDataItem = /*@__PURE__*/ S.suspend(() => + S.Struct({ + id: S.String, + type: S.String, + url: S.String, + name: S.String, + providerName: S.String, + status: S.String, + createdAt: S.String, + project: GetV1BranchesByBranchIdResponseDataProject, + branchId: S.NullOr(S.String), + }), +).annotate({ + identifier: "GetV1BucketsResponseDataItem", +}) as any as S.Schema; + +export type GetV1BucketsResponseDataList = Array; +export const GetV1BucketsResponseDataList = /*@__PURE__*/ S.Array( + GetV1BucketsResponseDataItem, +) as any as S.Schema; + +export type GetV1BucketsResponsePagination = GetV1AppsResponsePagination; +export const GetV1BucketsResponsePagination = GetV1AppsResponsePagination; + +export interface GetV1BucketsResponse { + data: GetV1BucketsResponseDataList; + pagination: GetV1AppsResponsePagination; +} +export const GetV1BucketsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + data: GetV1BucketsResponseDataList, + pagination: GetV1AppsResponsePagination, + }), +).annotate({ + identifier: "GetV1BucketsResponse", +}) as any as S.Schema; + +export interface GetV1BucketsByBucketIdRequest { + bucketId: string; +} +export const GetV1BucketsByBucketIdRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + bucketId: S.String.pipe(T.Label()), + }).pipe(T.Http({ method: "GET", uri: "/v1/buckets/{bucketId}", code: 200 })), +).annotate({ + identifier: "GetV1BucketsByBucketIdRequest", +}) as any as S.Schema; + +export type GetV1BucketsByBucketIdResponseDataProject = + GetV1BranchesByBranchIdResponseDataProject; +export const GetV1BucketsByBucketIdResponseDataProject = + GetV1BranchesByBranchIdResponseDataProject; + +export type GetV1BucketsByBucketIdResponseData = GetV1BucketsResponseDataItem; +export const GetV1BucketsByBucketIdResponseData = GetV1BucketsResponseDataItem; + +export interface GetV1BucketsByBucketIdResponse { + data: GetV1BucketsResponseDataItem; +} +export const GetV1BucketsByBucketIdResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + data: GetV1BucketsResponseDataItem, + }), +).annotate({ + identifier: "GetV1BucketsByBucketIdResponse", +}) as any as S.Schema; + +export interface GetV1BucketsByBucketIdKeysRequest { + bucketId: string; + cursor?: string; + limit?: number; +} +export const GetV1BucketsByBucketIdKeysRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + bucketId: S.String.pipe(T.Label()), + cursor: S.optional(S.String.pipe(T.Query())), + limit: S.optional(S.Number.pipe(T.Query())), + }).pipe( + T.Http({ method: "GET", uri: "/v1/buckets/{bucketId}/keys", code: 200 }), + ), +).annotate({ + identifier: "GetV1BucketsByBucketIdKeysRequest", +}) as any as S.Schema; + +export type GetV1BucketsByBucketIdKeysResponseDataItemRole = + | "read" + | "read_write"; +export const GetV1BucketsByBucketIdKeysResponseDataItemRole = + /*@__PURE__*/ S.String; + +export interface GetV1BucketsByBucketIdKeysResponseDataItem { + id: string; + type: string; + name: string; + valueHint: string; + role: GetV1BucketsByBucketIdKeysResponseDataItemRole; + createdAt: string; +} +export const GetV1BucketsByBucketIdKeysResponseDataItem = + /*@__PURE__*/ S.suspend(() => + S.Struct({ + id: S.String, + type: S.String, + name: S.String, + valueHint: S.String, + role: GetV1BucketsByBucketIdKeysResponseDataItemRole, + createdAt: S.String, + }), + ).annotate({ + identifier: "GetV1BucketsByBucketIdKeysResponseDataItem", + }) as any as S.Schema; + +export type GetV1BucketsByBucketIdKeysResponseDataList = + Array; +export const GetV1BucketsByBucketIdKeysResponseDataList = /*@__PURE__*/ S.Array( + GetV1BucketsByBucketIdKeysResponseDataItem, +) as any as S.Schema; + +export type GetV1BucketsByBucketIdKeysResponsePagination = + GetV1AppsResponsePagination; +export const GetV1BucketsByBucketIdKeysResponsePagination = + GetV1AppsResponsePagination; + +export interface GetV1BucketsByBucketIdKeysResponse { + data: GetV1BucketsByBucketIdKeysResponseDataList; + pagination: GetV1AppsResponsePagination; +} +export const GetV1BucketsByBucketIdKeysResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + data: GetV1BucketsByBucketIdKeysResponseDataList, + pagination: GetV1AppsResponsePagination, + }), +).annotate({ + identifier: "GetV1BucketsByBucketIdKeysResponse", +}) as any as S.Schema; + +export type GetV1BuildsRequestState = + | "pending" + | "running" + | "succeeded" + | "failed" + | "cancelled"; +export const GetV1BuildsRequestState = /*@__PURE__*/ S.String; + +export interface GetV1BuildsRequest { + cursor?: string; + limit?: number; + projectId?: string; + branchId?: string; + state?: GetV1BuildsRequestState | (string & {}); +} +export const GetV1BuildsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + cursor: S.optional(S.String.pipe(T.Query())), + limit: S.optional(S.Number.pipe(T.Query())), + projectId: S.optional(S.String.pipe(T.Query())), + branchId: S.optional(S.String.pipe(T.Query())), + state: S.optional(GetV1BuildsRequestState.pipe(T.Query())), + }).pipe(T.Http({ method: "GET", uri: "/v1/builds", code: 200 })), +).annotate({ + identifier: "GetV1BuildsRequest", +}) as any as S.Schema; + +export type GetV1BuildsResponseDataItemSource = + | "webhook" + | "setup" + | "manual" + | "ci" + | "cli"; +export const GetV1BuildsResponseDataItemSource = /*@__PURE__*/ S.String; + +export type GetV1BuildsResponseDataItemState = + | "pending" + | "running" + | "succeeded" + | "failed" + | "cancelled"; +export const GetV1BuildsResponseDataItemState = /*@__PURE__*/ S.String; + +/** Null when nothing reported a phase; the platform never invents an observation it did not receive. */ +export type GetV1BuildsResponseDataItemPhase = "queued" | "build" | "deploy"; +export const GetV1BuildsResponseDataItemPhase = /*@__PURE__*/ S.String; + +export interface GetV1BuildsResponseDataItem { + id: string; + source: GetV1BuildsResponseDataItemSource; + state: GetV1BuildsResponseDataItemState; + /** Null when nothing reported a phase; the platform never invents an observation it did not receive. */ + phase: GetV1BuildsResponseDataItemPhase | null; + commitSha: string; + branchName: string; + /** Repository the build ran against. Set only when the workspace has a live link to it; a reported repository the platform does not know stays null. */ + gitRepoId: string | null; + projectId: string | null; + branchId: string | null; + externalLogUrl: string | null; + deployedUrl: string | null; + errorMessage: string | null; + failingStep: string | null; + createdAt: string; + startedAt: string | null; + finishedAt: string | null; +} +export const GetV1BuildsResponseDataItem = /*@__PURE__*/ S.suspend(() => + S.Struct({ + id: S.String, + source: GetV1BuildsResponseDataItemSource, + state: GetV1BuildsResponseDataItemState, + phase: S.NullOr(GetV1BuildsResponseDataItemPhase), + commitSha: S.String, + branchName: S.String, + gitRepoId: S.NullOr(S.String), + projectId: S.NullOr(S.String), + branchId: S.NullOr(S.String), + externalLogUrl: S.NullOr(S.String), + deployedUrl: S.NullOr(S.String), + errorMessage: S.NullOr(S.String), + failingStep: S.NullOr(S.String), + createdAt: S.String, + startedAt: S.NullOr(S.String), + finishedAt: S.NullOr(S.String), + }), +).annotate({ + identifier: "GetV1BuildsResponseDataItem", +}) as any as S.Schema; + +export type GetV1BuildsResponseDataList = Array; +export const GetV1BuildsResponseDataList = /*@__PURE__*/ S.Array( + GetV1BuildsResponseDataItem, +) as any as S.Schema; + +export type GetV1BuildsResponsePagination = GetV1AppsResponsePagination; +export const GetV1BuildsResponsePagination = GetV1AppsResponsePagination; + +export interface GetV1BuildsResponse { + data: GetV1BuildsResponseDataList; + pagination: GetV1AppsResponsePagination; +} +export const GetV1BuildsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + data: GetV1BuildsResponseDataList, + pagination: GetV1AppsResponsePagination, + }), +).annotate({ + identifier: "GetV1BuildsResponse", +}) as any as S.Schema; + +export interface GetV1BuildsByBuildIdRequest { + buildId: string; +} +export const GetV1BuildsByBuildIdRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + buildId: S.String.pipe(T.Label()), + }).pipe(T.Http({ method: "GET", uri: "/v1/builds/{buildId}", code: 200 })), +).annotate({ + identifier: "GetV1BuildsByBuildIdRequest", +}) as any as S.Schema; + +export type GetV1BuildsByBuildIdResponseDataSource = + | "webhook" + | "setup" + | "manual" + | "ci" + | "cli"; +export const GetV1BuildsByBuildIdResponseDataSource = /*@__PURE__*/ S.String; + +export type GetV1BuildsByBuildIdResponseDataState = + | "pending" + | "running" + | "succeeded" + | "failed" + | "cancelled"; +export const GetV1BuildsByBuildIdResponseDataState = /*@__PURE__*/ S.String; + +/** Null when nothing reported a phase; the platform never invents an observation it did not receive. */ +export type GetV1BuildsByBuildIdResponseDataPhase = + | "queued" + | "build" + | "deploy"; +export const GetV1BuildsByBuildIdResponseDataPhase = /*@__PURE__*/ S.String; + +export type GetV1BuildsByBuildIdResponseDataResourcesItemResourceType = + | "project" + | "branch" + | "database" + | "app" + | "deployment" + | "bucket" + | "service_key" + | "config_variable"; +export const GetV1BuildsByBuildIdResponseDataResourcesItemResourceType = + /*@__PURE__*/ S.String; + +export type GetV1BuildsByBuildIdResponseDataResourcesItemAction = + | "created" + | "acted_on" + | "deleted"; +export const GetV1BuildsByBuildIdResponseDataResourcesItemAction = + /*@__PURE__*/ S.String; + +export interface GetV1BuildsByBuildIdResponseDataResourcesItem { + resourceType: GetV1BuildsByBuildIdResponseDataResourcesItemResourceType; + /** Prefixed id of the reported resource. */ + resourceId: string; + action: GetV1BuildsByBuildIdResponseDataResourcesItemAction; + createdAt: string; +} +export const GetV1BuildsByBuildIdResponseDataResourcesItem = + /*@__PURE__*/ S.suspend(() => + S.Struct({ + resourceType: GetV1BuildsByBuildIdResponseDataResourcesItemResourceType, + resourceId: S.String, + action: GetV1BuildsByBuildIdResponseDataResourcesItemAction, + createdAt: S.String, + }), + ).annotate({ + identifier: "GetV1BuildsByBuildIdResponseDataResourcesItem", + }) as any as S.Schema; + +export type GetV1BuildsByBuildIdResponseDataResourcesList = + Array; +export const GetV1BuildsByBuildIdResponseDataResourcesList = + /*@__PURE__*/ S.Array( + GetV1BuildsByBuildIdResponseDataResourcesItem, + ) as any as S.Schema; + +export interface GetV1BuildsByBuildIdResponseData { + id: string; + source: GetV1BuildsByBuildIdResponseDataSource; + state: GetV1BuildsByBuildIdResponseDataState; + /** Null when nothing reported a phase; the platform never invents an observation it did not receive. */ + phase: GetV1BuildsByBuildIdResponseDataPhase | null; + commitSha: string; + branchName: string; + /** Repository the build ran against. Set only when the workspace has a live link to it; a reported repository the platform does not know stays null. */ + gitRepoId: string | null; + projectId: string | null; + branchId: string | null; + externalLogUrl: string | null; + deployedUrl: string | null; + errorMessage: string | null; + failingStep: string | null; + createdAt: string; + startedAt: string | null; + finishedAt: string | null; + resources: GetV1BuildsByBuildIdResponseDataResourcesList; +} +export const GetV1BuildsByBuildIdResponseData = /*@__PURE__*/ S.suspend(() => + S.Struct({ + id: S.String, + source: GetV1BuildsByBuildIdResponseDataSource, + state: GetV1BuildsByBuildIdResponseDataState, + phase: S.NullOr(GetV1BuildsByBuildIdResponseDataPhase), + commitSha: S.String, + branchName: S.String, + gitRepoId: S.NullOr(S.String), + projectId: S.NullOr(S.String), + branchId: S.NullOr(S.String), + externalLogUrl: S.NullOr(S.String), + deployedUrl: S.NullOr(S.String), + errorMessage: S.NullOr(S.String), + failingStep: S.NullOr(S.String), + createdAt: S.String, + startedAt: S.NullOr(S.String), + finishedAt: S.NullOr(S.String), + resources: GetV1BuildsByBuildIdResponseDataResourcesList, + }), +).annotate({ + identifier: "GetV1BuildsByBuildIdResponseData", +}) as any as S.Schema; + +export interface GetV1BuildsByBuildIdResponse { + data: GetV1BuildsByBuildIdResponseData; +} +export const GetV1BuildsByBuildIdResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + data: GetV1BuildsByBuildIdResponseData, + }), +).annotate({ + identifier: "GetV1BuildsByBuildIdResponse", +}) as any as S.Schema; + export type GetV1BuildsByBuildIdLogsRequestFollow = "true" | "false"; export const GetV1BuildsByBuildIdLogsRequestFollow = /*@__PURE__*/ S.String; @@ -1357,7 +1942,8 @@ export const GetV1DatabasesByDatabaseIdBackupsRequest = /*@__PURE__*/ S.suspend( /** Type of backup */ export type GetV1DatabasesByDatabaseIdBackupsResponseDataItemBackupType = | "full" - | "incremental"; + | "incremental" + | "differential"; export const GetV1DatabasesByDatabaseIdBackupsResponseDataItemBackupType = /*@__PURE__*/ S.String; @@ -1377,7 +1963,7 @@ export interface GetV1DatabasesByDatabaseIdBackupsResponseDataItem { backupType: GetV1DatabasesByDatabaseIdBackupsResponseDataItemBackupType; /** Timestamp when the backup was created */ createdAt: string; - /** Total file size (in bytes) of gzipped backup files */ + /** Total file size (in MiB) of gzipped backup files */ size?: number; /** Status of backup instance */ status: GetV1DatabasesByDatabaseIdBackupsResponseDataItemStatus; @@ -2246,11 +2832,13 @@ export const GetV1MeResponse = /*@__PURE__*/ S.suspend(() => export interface GetV1ProjectsRequest { cursor?: string; limit?: number; + logicalId?: string; } export const GetV1ProjectsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({ cursor: S.optional(S.String.pipe(T.Query())), limit: S.optional(S.Number.pipe(T.Query())), + logicalId: S.optional(S.String.pipe(T.Query())), }).pipe(T.Http({ method: "GET", uri: "/v1/projects", code: 200 })), ).annotate({ identifier: "GetV1ProjectsRequest", @@ -2266,6 +2854,7 @@ export interface GetV1ProjectsResponseDataItem { type: string; url: string; name: string; + logicalId: string | null; createdAt: string; defaultRegion: string | null; workspace: GetV1BranchesByBranchIdResponseDataProject; @@ -2276,6 +2865,7 @@ export const GetV1ProjectsResponseDataItem = /*@__PURE__*/ S.suspend(() => type: S.String, url: S.String, name: S.String, + logicalId: S.NullOr(S.String), createdAt: S.String, defaultRegion: S.NullOr(S.String), workspace: GetV1BranchesByBranchIdResponseDataProject, @@ -2347,179 +2937,368 @@ export const GetV1ProjectsByProjectIdBranchesRequest = /*@__PURE__*/ S.suspend( () => S.Struct({ projectId: S.String.pipe(T.Label()), - cursor: S.optional(S.String.pipe(T.Query())), - limit: S.optional(S.Number.pipe(T.Query())), - gitName: S.optional(S.String.pipe(T.Query())), - gitNameContains: S.optional(S.String.pipe(T.Query())), + cursor: S.optional(S.String.pipe(T.Query())), + limit: S.optional(S.Number.pipe(T.Query())), + gitName: S.optional(S.String.pipe(T.Query())), + gitNameContains: S.optional(S.String.pipe(T.Query())), + }).pipe( + T.Http({ + method: "GET", + uri: "/v1/projects/{projectId}/branches", + code: 200, + }), + ), +).annotate({ + identifier: "GetV1ProjectsByProjectIdBranchesRequest", +}) as any as S.Schema; + +export type GetV1ProjectsByProjectIdBranchesResponseDataItemRole = + | "production" + | "preview"; +export const GetV1ProjectsByProjectIdBranchesResponseDataItemRole = + /*@__PURE__*/ S.String; + +/** Thin reference to the parent Project. Member resources are intentionally NOT inlined — list /v1/databases?branchId= or /v1/apps?branchId= instead (see API design principles "Flat and Hierarchical Coexistence"). */ +export type GetV1ProjectsByProjectIdBranchesResponseDataItemProject = + GetV1BranchesByBranchIdResponseDataProject; +export const GetV1ProjectsByProjectIdBranchesResponseDataItemProject = + GetV1BranchesByBranchIdResponseDataProject; + +export interface GetV1ProjectsByProjectIdBranchesResponseDataItem { + id: string; + type: string; + url: string; + gitName: string; + isDefault: boolean; + role: GetV1ProjectsByProjectIdBranchesResponseDataItemRole; + createdAt: string; + updatedAt: string; + /** Thin reference to the parent Project. Member resources are intentionally NOT inlined — list /v1/databases?branchId= or /v1/apps?branchId= instead (see API design principles "Flat and Hierarchical Coexistence"). */ + project: GetV1BranchesByBranchIdResponseDataProject; +} +export const GetV1ProjectsByProjectIdBranchesResponseDataItem = + /*@__PURE__*/ S.suspend(() => + S.Struct({ + id: S.String, + type: S.String, + url: S.String, + gitName: S.String, + isDefault: S.Boolean, + role: GetV1ProjectsByProjectIdBranchesResponseDataItemRole, + createdAt: S.String, + updatedAt: S.String, + project: GetV1BranchesByBranchIdResponseDataProject, + }), + ).annotate({ + identifier: "GetV1ProjectsByProjectIdBranchesResponseDataItem", + }) as any as S.Schema; + +export type GetV1ProjectsByProjectIdBranchesResponseDataList = + Array; +export const GetV1ProjectsByProjectIdBranchesResponseDataList = + /*@__PURE__*/ S.Array( + GetV1ProjectsByProjectIdBranchesResponseDataItem, + ) as any as S.Schema; + +export interface GetV1ProjectsByProjectIdBranchesResponsePagination { + nextCursor: string | null; + hasMore: boolean; +} +export const GetV1ProjectsByProjectIdBranchesResponsePagination = + /*@__PURE__*/ S.suspend(() => + S.Struct({ + nextCursor: S.NullOr(S.String), + hasMore: S.Boolean, + }), + ).annotate({ + identifier: "GetV1ProjectsByProjectIdBranchesResponsePagination", + }) as any as S.Schema; + +export interface GetV1ProjectsByProjectIdBranchesResponse { + data: GetV1ProjectsByProjectIdBranchesResponseDataList; + pagination: GetV1ProjectsByProjectIdBranchesResponsePagination; +} +export const GetV1ProjectsByProjectIdBranchesResponse = /*@__PURE__*/ S.suspend( + () => + S.Struct({ + data: GetV1ProjectsByProjectIdBranchesResponseDataList, + pagination: GetV1ProjectsByProjectIdBranchesResponsePagination, + }), +).annotate({ + identifier: "GetV1ProjectsByProjectIdBranchesResponse", +}) as any as S.Schema; + +export interface GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksRequest { + projectId: string; + branchId: string; +} +export const GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksRequest = + /*@__PURE__*/ S.suspend(() => + S.Struct({ + projectId: S.String.pipe(T.Label()), + branchId: S.String.pipe(T.Label()), + }).pipe( + T.Http({ + method: "GET", + uri: "/v1/projects/{projectId}/branches/{branchId}/alchemy-state/state/stacks", + code: 200, + }), + ), + ).annotate({ + identifier: + "GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksRequest", + }) as any as S.Schema; + +export type GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksResponseBodyList = + Array; +export const GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksResponseBodyList = + /*@__PURE__*/ S.Array( + S.String, + ) as any as S.Schema; + +export type GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksResponse = + GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksResponseBodyList; +export const GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksResponse = + /*@__PURE__*/ S.suspend(() => + GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksResponseBodyList.pipe( + T.RawResponseRoot(), + ), + ).annotate({ + identifier: + "GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksResponse", + }) as any as S.Schema; + +export interface GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesRequest { + projectId: string; + branchId: string; + stack: string; +} +export const GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesRequest = + /*@__PURE__*/ S.suspend(() => + S.Struct({ + projectId: S.String.pipe(T.Label()), + branchId: S.String.pipe(T.Label()), + stack: S.String.pipe(T.Label()), + }).pipe( + T.Http({ + method: "GET", + uri: "/v1/projects/{projectId}/branches/{branchId}/alchemy-state/state/stacks/{stack}/stages", + code: 200, + }), + ), + ).annotate({ + identifier: + "GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesRequest", + }) as any as S.Schema; + +export type GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesResponseBodyList = + Array; +export const GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesResponseBodyList = + /*@__PURE__*/ S.Array( + S.String, + ) as any as S.Schema; + +export type GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesResponse = + GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesResponseBodyList; +export const GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesResponse = + /*@__PURE__*/ S.suspend(() => + GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesResponseBodyList.pipe( + T.RawResponseRoot(), + ), + ).annotate({ + identifier: + "GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesResponse", + }) as any as S.Schema; + +export interface GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageOutputRequest { + projectId: string; + branchId: string; + stack: string; + stage: string; +} +export const GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageOutputRequest = + /*@__PURE__*/ S.suspend(() => + S.Struct({ + projectId: S.String.pipe(T.Label()), + branchId: S.String.pipe(T.Label()), + stack: S.String.pipe(T.Label()), + stage: S.String.pipe(T.Label()), + }).pipe( + T.Http({ + method: "GET", + uri: "/v1/projects/{projectId}/branches/{branchId}/alchemy-state/state/stacks/{stack}/stages/{stage}/output", + code: 200, + }), + ), + ).annotate({ + identifier: + "GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageOutputRequest", + }) as any as S.Schema; + +export type GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageOutputResponse = + unknown; +export const GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageOutputResponse = + /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({ + identifier: + "GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageOutputResponse", + }) as any as S.Schema; + +export interface GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageReplacedResourcesRequest { + projectId: string; + branchId: string; + stack: string; + stage: string; +} +export const GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageReplacedResourcesRequest = + /*@__PURE__*/ S.suspend(() => + S.Struct({ + projectId: S.String.pipe(T.Label()), + branchId: S.String.pipe(T.Label()), + stack: S.String.pipe(T.Label()), + stage: S.String.pipe(T.Label()), + }).pipe( + T.Http({ + method: "GET", + uri: "/v1/projects/{projectId}/branches/{branchId}/alchemy-state/state/stacks/{stack}/stages/{stage}/replaced-resources", + code: 200, + }), + ), + ).annotate({ + identifier: + "GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageReplacedResourcesRequest", + }) as any as S.Schema; + +export type GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageReplacedResourcesResponseBodyList = + Array; +export const GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageReplacedResourcesResponseBodyList = + /*@__PURE__*/ S.Array( + S.Unknown, + ) as any as S.Schema; + +export type GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageReplacedResourcesResponse = + GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageReplacedResourcesResponseBodyList; +export const GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageReplacedResourcesResponse = + /*@__PURE__*/ S.suspend(() => + GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageReplacedResourcesResponseBodyList.pipe( + T.RawResponseRoot(), + ), + ).annotate({ + identifier: + "GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageReplacedResourcesResponse", + }) as any as S.Schema; + +export interface GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesRequest { + projectId: string; + branchId: string; + stack: string; + stage: string; +} +export const GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesRequest = + /*@__PURE__*/ S.suspend(() => + S.Struct({ + projectId: S.String.pipe(T.Label()), + branchId: S.String.pipe(T.Label()), + stack: S.String.pipe(T.Label()), + stage: S.String.pipe(T.Label()), }).pipe( T.Http({ method: "GET", - uri: "/v1/projects/{projectId}/branches", + uri: "/v1/projects/{projectId}/branches/{branchId}/alchemy-state/state/stacks/{stack}/stages/{stage}/resources", code: 200, }), ), -).annotate({ - identifier: "GetV1ProjectsByProjectIdBranchesRequest", -}) as any as S.Schema; - -export type GetV1ProjectsByProjectIdBranchesResponseDataItemRole = - | "production" - | "preview"; -export const GetV1ProjectsByProjectIdBranchesResponseDataItemRole = - /*@__PURE__*/ S.String; - -/** Thin reference to the parent Project. Member resources are intentionally NOT inlined — list /v1/databases?branchId= or /v1/compute-services?branchId= instead (see API design principles "Flat and Hierarchical Coexistence"). */ -export type GetV1ProjectsByProjectIdBranchesResponseDataItemProject = - GetV1BranchesByBranchIdResponseDataProject; -export const GetV1ProjectsByProjectIdBranchesResponseDataItemProject = - GetV1BranchesByBranchIdResponseDataProject; - -export interface GetV1ProjectsByProjectIdBranchesResponseDataItem { - id: string; - type: string; - url: string; - gitName: string; - isDefault: boolean; - role: GetV1ProjectsByProjectIdBranchesResponseDataItemRole; - createdAt: string; - updatedAt: string; - /** Thin reference to the parent Project. Member resources are intentionally NOT inlined — list /v1/databases?branchId= or /v1/compute-services?branchId= instead (see API design principles "Flat and Hierarchical Coexistence"). */ - project: GetV1BranchesByBranchIdResponseDataProject; -} -export const GetV1ProjectsByProjectIdBranchesResponseDataItem = - /*@__PURE__*/ S.suspend(() => - S.Struct({ - id: S.String, - type: S.String, - url: S.String, - gitName: S.String, - isDefault: S.Boolean, - role: GetV1ProjectsByProjectIdBranchesResponseDataItemRole, - createdAt: S.String, - updatedAt: S.String, - project: GetV1BranchesByBranchIdResponseDataProject, - }), ).annotate({ - identifier: "GetV1ProjectsByProjectIdBranchesResponseDataItem", - }) as any as S.Schema; + identifier: + "GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesRequest", + }) as any as S.Schema; -export type GetV1ProjectsByProjectIdBranchesResponseDataList = - Array; -export const GetV1ProjectsByProjectIdBranchesResponseDataList = +export type GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesResponseBodyList = + Array; +export const GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesResponseBodyList = /*@__PURE__*/ S.Array( - GetV1ProjectsByProjectIdBranchesResponseDataItem, - ) as any as S.Schema; + S.String, + ) as any as S.Schema; -export interface GetV1ProjectsByProjectIdBranchesResponsePagination { - nextCursor: string | null; - hasMore: boolean; -} -export const GetV1ProjectsByProjectIdBranchesResponsePagination = +export type GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesResponse = + GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesResponseBodyList; +export const GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesResponse = /*@__PURE__*/ S.suspend(() => - S.Struct({ - nextCursor: S.NullOr(S.String), - hasMore: S.Boolean, - }), + GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesResponseBodyList.pipe( + T.RawResponseRoot(), + ), ).annotate({ - identifier: "GetV1ProjectsByProjectIdBranchesResponsePagination", - }) as any as S.Schema; - -export interface GetV1ProjectsByProjectIdBranchesResponse { - data: GetV1ProjectsByProjectIdBranchesResponseDataList; - pagination: GetV1ProjectsByProjectIdBranchesResponsePagination; -} -export const GetV1ProjectsByProjectIdBranchesResponse = /*@__PURE__*/ S.suspend( - () => - S.Struct({ - data: GetV1ProjectsByProjectIdBranchesResponseDataList, - pagination: GetV1ProjectsByProjectIdBranchesResponsePagination, - }), -).annotate({ - identifier: "GetV1ProjectsByProjectIdBranchesResponse", -}) as any as S.Schema; + identifier: + "GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesResponse", + }) as any as S.Schema; -export interface GetV1ProjectsByProjectIdComputeServicesRequest { +export interface GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqnRequest { projectId: string; - cursor?: string; - limit?: number; + branchId: string; + stack: string; + stage: string; + fqn: string; } -export const GetV1ProjectsByProjectIdComputeServicesRequest = +export const GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqnRequest = /*@__PURE__*/ S.suspend(() => S.Struct({ projectId: S.String.pipe(T.Label()), - cursor: S.optional(S.String.pipe(T.Query())), - limit: S.optional(S.Number.pipe(T.Query())), + branchId: S.String.pipe(T.Label()), + stack: S.String.pipe(T.Label()), + stage: S.String.pipe(T.Label()), + fqn: S.String.pipe(T.Label()), }).pipe( T.Http({ method: "GET", - uri: "/v1/projects/{projectId}/compute-services", + uri: "/v1/projects/{projectId}/branches/{branchId}/alchemy-state/state/stacks/{stack}/stages/{stage}/resources/{fqn}", code: 200, }), ), ).annotate({ - identifier: "GetV1ProjectsByProjectIdComputeServicesRequest", - }) as any as S.Schema; + identifier: + "GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqnRequest", + }) as any as S.Schema; -export type GetV1ProjectsByProjectIdComputeServicesResponseDataItemRegion = - GetV1AppsResponseDataItemRegion; -export const GetV1ProjectsByProjectIdComputeServicesResponseDataItemRegion = - GetV1AppsResponseDataItemRegion; +export type GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqnResponse = + unknown; +export const GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqnResponse = + /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({ + identifier: + "GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqnResponse", + }) as any as S.Schema; -export interface GetV1ProjectsByProjectIdComputeServicesResponseDataItem { - id: string; - type: string; - url: string; - name: string; - region: GetV1AppsResponseDataItemRegion; +export interface GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateVersionRequest { projectId: string; - branchId: string | null; - latestVersionId: string | null; - serviceEndpointDomain: string; - createdAt: string; + branchId: string; } -export const GetV1ProjectsByProjectIdComputeServicesResponseDataItem = +export const GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateVersionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({ - id: S.String, - type: S.String, - url: S.String, - name: S.String, - region: GetV1AppsResponseDataItemRegion, - projectId: S.String, - branchId: S.NullOr(S.String), - latestVersionId: S.NullOr(S.String), - serviceEndpointDomain: S.String, - createdAt: S.String, - }), + projectId: S.String.pipe(T.Label()), + branchId: S.String.pipe(T.Label()), + }).pipe( + T.Http({ + method: "GET", + uri: "/v1/projects/{projectId}/branches/{branchId}/alchemy-state/version", + code: 200, + }), + ), ).annotate({ - identifier: "GetV1ProjectsByProjectIdComputeServicesResponseDataItem", - }) as any as S.Schema; - -export type GetV1ProjectsByProjectIdComputeServicesResponseDataList = - Array; -export const GetV1ProjectsByProjectIdComputeServicesResponseDataList = - /*@__PURE__*/ S.Array( - GetV1ProjectsByProjectIdComputeServicesResponseDataItem, - ) as any as S.Schema; - -export type GetV1ProjectsByProjectIdComputeServicesResponsePagination = - GetV1AppsResponsePagination; -export const GetV1ProjectsByProjectIdComputeServicesResponsePagination = - GetV1AppsResponsePagination; + identifier: + "GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateVersionRequest", + }) as any as S.Schema; -export interface GetV1ProjectsByProjectIdComputeServicesResponse { - data: GetV1ProjectsByProjectIdComputeServicesResponseDataList; - pagination: GetV1AppsResponsePagination; +export interface GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateVersionResponse { + version: number; } -export const GetV1ProjectsByProjectIdComputeServicesResponse = +export const GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateVersionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({ - data: GetV1ProjectsByProjectIdComputeServicesResponseDataList, - pagination: GetV1AppsResponsePagination, + version: S.Number, }), ).annotate({ - identifier: "GetV1ProjectsByProjectIdComputeServicesResponse", - }) as any as S.Schema; + identifier: + "GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateVersionResponse", + }) as any as S.Schema; export interface GetV1ProjectsByProjectIdDatabasesRequest { projectId: string; @@ -3262,6 +4041,52 @@ export const GetV1WorkspacesByIdResponse = /*@__PURE__*/ S.suspend(() => identifier: "GetV1WorkspacesByIdResponse", }) as any as S.Schema; +export interface GetV1WorkspacesByIdSubscriptionRequest { + id: string; +} +export const GetV1WorkspacesByIdSubscriptionRequest = /*@__PURE__*/ S.suspend( + () => + S.Struct({ + id: S.String.pipe(T.Label()), + }).pipe( + T.Http({ + method: "GET", + uri: "/v1/workspaces/{id}/subscription", + code: 200, + }), + ), +).annotate({ + identifier: "GetV1WorkspacesByIdSubscriptionRequest", +}) as any as S.Schema; + +export interface GetV1WorkspacesByIdSubscriptionResponseData { + planName: string; + usageBlocked: boolean; + upgradeUrl: string; +} +export const GetV1WorkspacesByIdSubscriptionResponseData = + /*@__PURE__*/ S.suspend(() => + S.Struct({ + planName: S.String, + usageBlocked: S.Boolean, + upgradeUrl: S.String, + }), + ).annotate({ + identifier: "GetV1WorkspacesByIdSubscriptionResponseData", + }) as any as S.Schema; + +export interface GetV1WorkspacesByIdSubscriptionResponse { + data: GetV1WorkspacesByIdSubscriptionResponseData; +} +export const GetV1WorkspacesByIdSubscriptionResponse = /*@__PURE__*/ S.suspend( + () => + S.Struct({ + data: GetV1WorkspacesByIdSubscriptionResponseData, + }), +).annotate({ + identifier: "GetV1WorkspacesByIdSubscriptionResponse", +}) as any as S.Schema; + export interface GetV1WorkspacesByWorkspaceIdIntegrationsRequest { workspaceId: string; cursor?: string; @@ -3350,6 +4175,76 @@ export const GetV1WorkspacesByWorkspaceIdIntegrationsResponse = identifier: "GetV1WorkspacesByWorkspaceIdIntegrationsResponse", }) as any as S.Schema; +export interface GetV1WorkspacesByWorkspaceIdServiceTokensRequest { + workspaceId: string; + cursor?: string; + limit?: number; +} +export const GetV1WorkspacesByWorkspaceIdServiceTokensRequest = + /*@__PURE__*/ S.suspend(() => + S.Struct({ + workspaceId: S.String.pipe(T.Label()), + cursor: S.optional(S.String.pipe(T.Query())), + limit: S.optional(S.Number.pipe(T.Query())), + }).pipe( + T.Http({ + method: "GET", + uri: "/v1/workspaces/{workspaceId}/service-tokens", + code: 200, + }), + ), + ).annotate({ + identifier: "GetV1WorkspacesByWorkspaceIdServiceTokensRequest", + }) as any as S.Schema; + +export interface GetV1WorkspacesByWorkspaceIdServiceTokensResponseDataItem { + id: string; + type: string; + name: string; + valueHint: string; + createdAt: string; + expiresAt?: string | null; +} +export const GetV1WorkspacesByWorkspaceIdServiceTokensResponseDataItem = + /*@__PURE__*/ S.suspend(() => + S.Struct({ + id: S.String, + type: S.String, + name: S.String, + valueHint: S.String, + createdAt: S.String, + expiresAt: S.optional(S.NullOr(S.String)), + }), + ).annotate({ + identifier: "GetV1WorkspacesByWorkspaceIdServiceTokensResponseDataItem", + }) as any as S.Schema; + +export type GetV1WorkspacesByWorkspaceIdServiceTokensResponseDataList = + Array; +export const GetV1WorkspacesByWorkspaceIdServiceTokensResponseDataList = + /*@__PURE__*/ S.Array( + GetV1WorkspacesByWorkspaceIdServiceTokensResponseDataItem, + ) as any as S.Schema; + +export type GetV1WorkspacesByWorkspaceIdServiceTokensResponsePagination = + GetV1AppsResponsePagination; +export const GetV1WorkspacesByWorkspaceIdServiceTokensResponsePagination = + GetV1AppsResponsePagination; + +export interface GetV1WorkspacesByWorkspaceIdServiceTokensResponse { + data: GetV1WorkspacesByWorkspaceIdServiceTokensResponseDataList; + pagination: GetV1AppsResponsePagination; +} +export const GetV1WorkspacesByWorkspaceIdServiceTokensResponse = + /*@__PURE__*/ S.suspend(() => + S.Struct({ + data: GetV1WorkspacesByWorkspaceIdServiceTokensResponseDataList, + pagination: GetV1AppsResponsePagination, + }), + ).annotate({ + identifier: "GetV1WorkspacesByWorkspaceIdServiceTokensResponse", + }) as any as S.Schema; + export interface PatchV1AppsByAppIdRequest { appId: string; displayName?: string; @@ -3406,7 +4301,7 @@ export type PatchV1BranchesByBranchIdResponseDataRole = | "preview"; export const PatchV1BranchesByBranchIdResponseDataRole = /*@__PURE__*/ S.String; -/** Thin reference to the parent Project. Member resources are intentionally NOT inlined — list /v1/databases?branchId= or /v1/compute-services?branchId= instead (see API design principles "Flat and Hierarchical Coexistence"). */ +/** Thin reference to the parent Project. Member resources are intentionally NOT inlined — list /v1/databases?branchId= or /v1/apps?branchId= instead (see API design principles "Flat and Hierarchical Coexistence"). */ export type PatchV1BranchesByBranchIdResponseDataProject = GetV1BranchesByBranchIdResponseDataProject; export const PatchV1BranchesByBranchIdResponseDataProject = @@ -3421,7 +4316,7 @@ export interface PatchV1BranchesByBranchIdResponseData { role: PatchV1BranchesByBranchIdResponseDataRole; createdAt: string; updatedAt: string; - /** Thin reference to the parent Project. Member resources are intentionally NOT inlined — list /v1/databases?branchId= or /v1/compute-services?branchId= instead (see API design principles "Flat and Hierarchical Coexistence"). */ + /** Thin reference to the parent Project. Member resources are intentionally NOT inlined — list /v1/databases?branchId= or /v1/apps?branchId= instead (see API design principles "Flat and Hierarchical Coexistence"). */ project: GetV1BranchesByBranchIdResponseDataProject; } export const PatchV1BranchesByBranchIdResponseData = /*@__PURE__*/ S.suspend( @@ -3452,6 +4347,127 @@ export const PatchV1BranchesByBranchIdResponse = /*@__PURE__*/ S.suspend(() => identifier: "PatchV1BranchesByBranchIdResponse", }) as any as S.Schema; +/** How far the run has got. */ +export type PatchV1BuildsByBuildIdRequestPhase = "queued" | "build" | "deploy"; +export const PatchV1BuildsByBuildIdRequestPhase = /*@__PURE__*/ S.String; + +export type PatchV1BuildsByBuildIdRequestState = + | "pending" + | "running" + | "succeeded" + | "failed" + | "cancelled"; +export const PatchV1BuildsByBuildIdRequestState = /*@__PURE__*/ S.String; + +export interface PatchV1BuildsByBuildIdRequest { + buildId: string; + /** How far the run has got. */ + phase?: PatchV1BuildsByBuildIdRequestPhase | (string & {}); + state?: PatchV1BuildsByBuildIdRequestState | (string & {}); + /** Name of the step that failed, free text — step names come from build tooling the platform cannot validate. */ + failingStep?: string; + errorMessage?: string; + externalLogUrl?: string; + /** Project the build targets. Fill-only: a reporter that learns the project partway through a deploy may set it, but a value already recorded cannot be changed. */ + projectId?: string; + /** Branch the build targets. Fill-only, like `projectId`. */ + branchId?: string; + /** Where the deployed app can be reached. Fill-only, like the anchors. */ + deployedUrl?: string; +} +export const PatchV1BuildsByBuildIdRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + buildId: S.String.pipe(T.Label()), + phase: S.optional(PatchV1BuildsByBuildIdRequestPhase), + state: S.optional(PatchV1BuildsByBuildIdRequestState), + failingStep: S.optional(S.String), + errorMessage: S.optional(S.String), + externalLogUrl: S.optional(S.String), + projectId: S.optional(S.String), + branchId: S.optional(S.String), + deployedUrl: S.optional(S.String), + }).pipe(T.Http({ method: "PATCH", uri: "/v1/builds/{buildId}", code: 200 })), +).annotate({ + identifier: "PatchV1BuildsByBuildIdRequest", +}) as any as S.Schema; + +export type PatchV1BuildsByBuildIdResponseDataSource = + | "webhook" + | "setup" + | "manual" + | "ci" + | "cli"; +export const PatchV1BuildsByBuildIdResponseDataSource = /*@__PURE__*/ S.String; + +export type PatchV1BuildsByBuildIdResponseDataState = + | "pending" + | "running" + | "succeeded" + | "failed" + | "cancelled"; +export const PatchV1BuildsByBuildIdResponseDataState = /*@__PURE__*/ S.String; + +/** Null when nothing reported a phase; the platform never invents an observation it did not receive. */ +export type PatchV1BuildsByBuildIdResponseDataPhase = + | "queued" + | "build" + | "deploy"; +export const PatchV1BuildsByBuildIdResponseDataPhase = /*@__PURE__*/ S.String; + +export interface PatchV1BuildsByBuildIdResponseData { + id: string; + source: PatchV1BuildsByBuildIdResponseDataSource; + state: PatchV1BuildsByBuildIdResponseDataState; + /** Null when nothing reported a phase; the platform never invents an observation it did not receive. */ + phase: PatchV1BuildsByBuildIdResponseDataPhase | null; + commitSha: string; + branchName: string; + /** Repository the build ran against. Set only when the workspace has a live link to it; a reported repository the platform does not know stays null. */ + gitRepoId: string | null; + projectId: string | null; + branchId: string | null; + externalLogUrl: string | null; + deployedUrl: string | null; + errorMessage: string | null; + failingStep: string | null; + createdAt: string; + startedAt: string | null; + finishedAt: string | null; +} +export const PatchV1BuildsByBuildIdResponseData = /*@__PURE__*/ S.suspend(() => + S.Struct({ + id: S.String, + source: PatchV1BuildsByBuildIdResponseDataSource, + state: PatchV1BuildsByBuildIdResponseDataState, + phase: S.NullOr(PatchV1BuildsByBuildIdResponseDataPhase), + commitSha: S.String, + branchName: S.String, + gitRepoId: S.NullOr(S.String), + projectId: S.NullOr(S.String), + branchId: S.NullOr(S.String), + externalLogUrl: S.NullOr(S.String), + deployedUrl: S.NullOr(S.String), + errorMessage: S.NullOr(S.String), + failingStep: S.NullOr(S.String), + createdAt: S.String, + startedAt: S.NullOr(S.String), + finishedAt: S.NullOr(S.String), + }), +).annotate({ + identifier: "PatchV1BuildsByBuildIdResponseData", +}) as any as S.Schema; + +export interface PatchV1BuildsByBuildIdResponse { + data: PatchV1BuildsByBuildIdResponseData; +} +export const PatchV1BuildsByBuildIdResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + data: PatchV1BuildsByBuildIdResponseData, + }), +).annotate({ + identifier: "PatchV1BuildsByBuildIdResponse", +}) as any as S.Schema; + export interface PatchV1DatabasesByDatabaseIdRequest { databaseId: string; /** New display name for the database */ @@ -3742,16 +4758,70 @@ export const PatchV1ProjectsByIdResponseDataWorkspace = export type PatchV1ProjectsByIdResponseData = GetV1ProjectsResponseDataItem; export const PatchV1ProjectsByIdResponseData = GetV1ProjectsResponseDataItem; -export interface PatchV1ProjectsByIdResponse { - data: GetV1ProjectsResponseDataItem; +export interface PatchV1ProjectsByIdResponse { + data: GetV1ProjectsResponseDataItem; +} +export const PatchV1ProjectsByIdResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + data: GetV1ProjectsResponseDataItem, + }), +).annotate({ + identifier: "PatchV1ProjectsByIdResponse", +}) as any as S.Schema; + +export interface PatchV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseRequest { + projectId: string; + branchId: string; + /** Requested lease TTL in seconds. Default 60, clamped to [30, 300]. */ + ttlSeconds?: number; +} +export const PatchV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseRequest = + /*@__PURE__*/ S.suspend(() => + S.Struct({ + projectId: S.String.pipe(T.Label()), + branchId: S.String.pipe(T.Label()), + ttlSeconds: S.optional(S.Number), + }).pipe( + T.Http({ + method: "PATCH", + uri: "/v1/projects/{projectId}/branches/{branchId}/alchemy-state/lease", + code: 200, + }), + ), + ).annotate({ + identifier: + "PatchV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseRequest", + }) as any as S.Schema; + +export interface PatchV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseResponseData { + /** Capability token for the deploy lease. Send it in the Alchemy-State-Lease-Id header with every state operation; do not log it. */ + leaseId: string; + /** Lease expiry as an ISO-8601 timestamp. */ + expiresAt: string; +} +export const PatchV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseResponseData = + /*@__PURE__*/ S.suspend(() => + S.Struct({ + leaseId: S.String, + expiresAt: S.String, + }), + ).annotate({ + identifier: + "PatchV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseResponseData", + }) as any as S.Schema; + +export interface PatchV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseResponse { + data: PatchV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseResponseData; } -export const PatchV1ProjectsByIdResponse = /*@__PURE__*/ S.suspend(() => - S.Struct({ - data: GetV1ProjectsResponseDataItem, - }), -).annotate({ - identifier: "PatchV1ProjectsByIdResponse", -}) as any as S.Schema; +export const PatchV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseResponse = + /*@__PURE__*/ S.suspend(() => + S.Struct({ + data: PatchV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseResponseData, + }), + ).annotate({ + identifier: + "PatchV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseResponse", + }) as any as S.Schema; export type PostV1AppsRequestRegionId = | "us-east-1" @@ -4034,6 +5104,296 @@ export const PostV1AppsByAppIdRollbackResponse = /*@__PURE__*/ S.suspend(() => identifier: "PostV1AppsByAppIdRollbackResponse", }) as any as S.Schema; +export interface PostV1AuthGithubActionsTokenRequest { + /** The GitHub Actions OIDC token with audience `prisma-cloud`. */ + token: string; + /** Requested token lifetime in seconds. Defaults to 1800 (30 min); capped at 3600 (60 min). */ + expiresInSeconds?: number; +} +export const PostV1AuthGithubActionsTokenRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + token: S.String, + expiresInSeconds: S.optional(S.Number), + }).pipe( + T.Http({ method: "POST", uri: "/v1/auth/github-actions/token", code: 200 }), + ), +).annotate({ + identifier: "PostV1AuthGithubActionsTokenRequest", +}) as any as S.Schema; + +export interface PostV1AuthGithubActionsTokenResponseData { + /** Prefixed integration token ID (`itgr_` prefix). */ + id: string; + type: string; + /** The minted integration token. Returned once — copy it immediately. */ + value: string; + /** ISO 8601 instant after which the token is invalid. */ + expiresAt: string; + /** Prefixed workspace ID the token is scoped to. */ + workspaceId: string; +} +export const PostV1AuthGithubActionsTokenResponseData = /*@__PURE__*/ S.suspend( + () => + S.Struct({ + id: S.String, + type: S.String, + value: S.String, + expiresAt: S.String, + workspaceId: S.String, + }), +).annotate({ + identifier: "PostV1AuthGithubActionsTokenResponseData", +}) as any as S.Schema; + +export interface PostV1AuthGithubActionsTokenResponse { + data: PostV1AuthGithubActionsTokenResponseData; +} +export const PostV1AuthGithubActionsTokenResponse = /*@__PURE__*/ S.suspend( + () => + S.Struct({ + data: PostV1AuthGithubActionsTokenResponseData, + }), +).annotate({ + identifier: "PostV1AuthGithubActionsTokenResponse", +}) as any as S.Schema; + +export interface PostV1BucketsRequest { + /** ID of the project to create the bucket in */ + projectId: string; + /** Display name for the bucket. Generated if omitted. */ + name?: string; + /** ID of the branch to associate the bucket with. Mutually exclusive with branchGitName. */ + branchId?: string; + /** Git name of the branch to associate the bucket with. Mutually exclusive with branchId. */ + branchGitName?: string; +} +export const PostV1BucketsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + projectId: S.String, + name: S.optional(S.String), + branchId: S.optional(S.String), + branchGitName: S.optional(S.String), + }).pipe(T.Http({ method: "POST", uri: "/v1/buckets", code: 200 })), +).annotate({ + identifier: "PostV1BucketsRequest", +}) as any as S.Schema; + +export type PostV1BucketsResponseDataProject = + GetV1BranchesByBranchIdResponseDataProject; +export const PostV1BucketsResponseDataProject = + GetV1BranchesByBranchIdResponseDataProject; + +export type PostV1BucketsResponseData = GetV1BucketsResponseDataItem; +export const PostV1BucketsResponseData = GetV1BucketsResponseDataItem; + +export interface PostV1BucketsResponse { + data: GetV1BucketsResponseDataItem; +} +export const PostV1BucketsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + data: GetV1BucketsResponseDataItem, + }), +).annotate({ + identifier: "PostV1BucketsResponse", +}) as any as S.Schema; + +/** Access role for the key: "read" or "read_write". */ +export type PostV1BucketsByBucketIdKeysRequestRole = "read" | "read_write"; +export const PostV1BucketsByBucketIdKeysRequestRole = /*@__PURE__*/ S.String; + +export interface PostV1BucketsByBucketIdKeysRequest { + bucketId: string; + /** Display name for the key. Generated if omitted. */ + name?: string; + /** Access role for the key: "read" or "read_write". */ + role: PostV1BucketsByBucketIdKeysRequestRole | (string & {}); +} +export const PostV1BucketsByBucketIdKeysRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + bucketId: S.String.pipe(T.Label()), + name: S.optional(S.String), + role: PostV1BucketsByBucketIdKeysRequestRole, + }).pipe( + T.Http({ method: "POST", uri: "/v1/buckets/{bucketId}/keys", code: 200 }), + ), +).annotate({ + identifier: "PostV1BucketsByBucketIdKeysRequest", +}) as any as S.Schema; + +export type PostV1BucketsByBucketIdKeysResponseDataRole = "read" | "read_write"; +export const PostV1BucketsByBucketIdKeysResponseDataRole = + /*@__PURE__*/ S.String; + +export interface PostV1BucketsByBucketIdKeysResponseData { + id: string; + type: string; + name: string; + valueHint: string; + role: PostV1BucketsByBucketIdKeysResponseDataRole; + createdAt: string; + secretAccessKey: string | Redacted.Redacted; + accessKeyId: string | Redacted.Redacted; + endpoint: string; + bucketName: string; +} +export const PostV1BucketsByBucketIdKeysResponseData = /*@__PURE__*/ S.suspend( + () => + S.Struct({ + id: S.String, + type: S.String, + name: S.String, + valueHint: S.String, + role: PostV1BucketsByBucketIdKeysResponseDataRole, + createdAt: S.String, + secretAccessKey: S.String.pipe(T.SensitiveValue({})), + accessKeyId: S.String.pipe(T.SensitiveValue({})), + endpoint: S.String, + bucketName: S.String, + }), +).annotate({ + identifier: "PostV1BucketsByBucketIdKeysResponseData", +}) as any as S.Schema; + +export interface PostV1BucketsByBucketIdKeysResponse { + data: PostV1BucketsByBucketIdKeysResponseData; +} +export const PostV1BucketsByBucketIdKeysResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + data: PostV1BucketsByBucketIdKeysResponseData, + }), +).annotate({ + identifier: "PostV1BucketsByBucketIdKeysResponse", +}) as any as S.Schema; + +/** `ci` for a build reported from a CI run, `cli` for a deploy run directly by a human or agent. */ +export type PostV1BuildsRequestSource = "ci" | "cli"; +export const PostV1BuildsRequestSource = /*@__PURE__*/ S.String; + +/** Identifies the CI run. Supplying it makes creation idempotent — a repeat call for the same run returns the build that already exists. Omit it for builds with no run to name, such as a deploy from a laptop, where every call creates a new build. */ +export interface PostV1BuildsRequestRunIdentity { + /** CI provider the run identity belongs to. */ + provider: string; + /** Provider's repository id (for GitHub, the numeric repo id). */ + repositoryId: string; + /** Provider's workflow-run id. */ + runId: string; + /** Attempt number of the run; a re-run is a separate build. */ + runAttempt: number; +} +export const PostV1BuildsRequestRunIdentity = /*@__PURE__*/ S.suspend(() => + S.Struct({ + provider: S.String, + repositoryId: S.String, + runId: S.String, + runAttempt: S.Number, + }), +).annotate({ + identifier: "PostV1BuildsRequestRunIdentity", +}) as any as S.Schema; + +export interface PostV1BuildsRequest { + /** `ci` for a build reported from a CI run, `cli` for a deploy run directly by a human or agent. */ + source: PostV1BuildsRequestSource | (string & {}); + /** Commit the build ran on. */ + commitSha: string; + /** Git branch name. */ + branchName: string; + /** Identifies the CI run. Supplying it makes creation idempotent — a repeat call for the same run returns the build that already exists. Omit it for builds with no run to name, such as a deploy from a laptop, where every call creates a new build. */ + runIdentity?: PostV1BuildsRequestRunIdentity; + /** Link to the run's logs in the reporter's own system. */ + externalLogUrl?: string; + /** Project the build targets, when it exists. A build may be reported before its project does. */ + projectId?: string; + branchId?: string; +} +export const PostV1BuildsRequest = /*@__PURE__*/ S.suspend(() => + S.Struct({ + source: PostV1BuildsRequestSource, + commitSha: S.String, + branchName: S.String, + runIdentity: S.optional(PostV1BuildsRequestRunIdentity), + externalLogUrl: S.optional(S.String), + projectId: S.optional(S.String), + branchId: S.optional(S.String), + }).pipe(T.Http({ method: "POST", uri: "/v1/builds", code: 200 })), +).annotate({ + identifier: "PostV1BuildsRequest", +}) as any as S.Schema; + +export type PostV1BuildsResponseDataSource = + | "webhook" + | "setup" + | "manual" + | "ci" + | "cli"; +export const PostV1BuildsResponseDataSource = /*@__PURE__*/ S.String; + +export type PostV1BuildsResponseDataState = + | "pending" + | "running" + | "succeeded" + | "failed" + | "cancelled"; +export const PostV1BuildsResponseDataState = /*@__PURE__*/ S.String; + +/** Null when nothing reported a phase; the platform never invents an observation it did not receive. */ +export type PostV1BuildsResponseDataPhase = "queued" | "build" | "deploy"; +export const PostV1BuildsResponseDataPhase = /*@__PURE__*/ S.String; + +export interface PostV1BuildsResponseData { + id: string; + source: PostV1BuildsResponseDataSource; + state: PostV1BuildsResponseDataState; + /** Null when nothing reported a phase; the platform never invents an observation it did not receive. */ + phase: PostV1BuildsResponseDataPhase | null; + commitSha: string; + branchName: string; + /** Repository the build ran against. Set only when the workspace has a live link to it; a reported repository the platform does not know stays null. */ + gitRepoId: string | null; + projectId: string | null; + branchId: string | null; + externalLogUrl: string | null; + deployedUrl: string | null; + errorMessage: string | null; + failingStep: string | null; + createdAt: string; + startedAt: string | null; + finishedAt: string | null; +} +export const PostV1BuildsResponseData = /*@__PURE__*/ S.suspend(() => + S.Struct({ + id: S.String, + source: PostV1BuildsResponseDataSource, + state: PostV1BuildsResponseDataState, + phase: S.NullOr(PostV1BuildsResponseDataPhase), + commitSha: S.String, + branchName: S.String, + gitRepoId: S.NullOr(S.String), + projectId: S.NullOr(S.String), + branchId: S.NullOr(S.String), + externalLogUrl: S.NullOr(S.String), + deployedUrl: S.NullOr(S.String), + errorMessage: S.NullOr(S.String), + failingStep: S.NullOr(S.String), + createdAt: S.String, + startedAt: S.NullOr(S.String), + finishedAt: S.NullOr(S.String), + }), +).annotate({ + identifier: "PostV1BuildsResponseData", +}) as any as S.Schema; + +export interface PostV1BuildsResponse { + data: PostV1BuildsResponseData; +} +export const PostV1BuildsResponse = /*@__PURE__*/ S.suspend(() => + S.Struct({ + data: PostV1BuildsResponseData, + }), +).annotate({ + identifier: "PostV1BuildsResponse", +}) as any as S.Schema; + export interface PostV1ConnectionsRequest { databaseId: string; name: string; @@ -5083,12 +6443,14 @@ export interface PostV1ProjectsRequest { createDatabase?: boolean; name?: string; region?: PostV1ProjectsRequestRegion | (string & {}); + logicalId?: string; } export const PostV1ProjectsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({ createDatabase: S.optional(S.Boolean), name: S.optional(S.String), region: S.optional(PostV1ProjectsRequestRegion), + logicalId: S.optional(S.String), }).pipe(T.Http({ method: "POST", uri: "/v1/projects", code: 200 })), ).annotate({ identifier: "PostV1ProjectsRequest", @@ -5337,6 +6699,7 @@ export interface PostV1ProjectsResponseData { type: string; url: string; name: string; + logicalId: string | null; createdAt: string; defaultRegion: string | null; workspace: GetV1BranchesByBranchIdResponseDataProject; @@ -5348,6 +6711,7 @@ export const PostV1ProjectsResponseData = /*@__PURE__*/ S.suspend(() => type: S.String, url: S.String, name: S.String, + logicalId: S.NullOr(S.String), createdAt: S.String, defaultRegion: S.NullOr(S.String), workspace: GetV1BranchesByBranchIdResponseDataProject, @@ -5418,7 +6782,7 @@ export type PostV1ProjectsByProjectIdBranchesResponseDataRole = export const PostV1ProjectsByProjectIdBranchesResponseDataRole = /*@__PURE__*/ S.String; -/** Thin reference to the parent Project. Member resources are intentionally NOT inlined — list /v1/databases?branchId= or /v1/compute-services?branchId= instead (see API design principles "Flat and Hierarchical Coexistence"). */ +/** Thin reference to the parent Project. Member resources are intentionally NOT inlined — list /v1/databases?branchId= or /v1/apps?branchId= instead (see API design principles "Flat and Hierarchical Coexistence"). */ export type PostV1ProjectsByProjectIdBranchesResponseDataProject = GetV1BranchesByBranchIdResponseDataProject; export const PostV1ProjectsByProjectIdBranchesResponseDataProject = @@ -5433,7 +6797,7 @@ export interface PostV1ProjectsByProjectIdBranchesResponseData { role: PostV1ProjectsByProjectIdBranchesResponseDataRole; createdAt: string; updatedAt: string; - /** Thin reference to the parent Project. Member resources are intentionally NOT inlined — list /v1/databases?branchId= or /v1/compute-services?branchId= instead (see API design principles "Flat and Hierarchical Coexistence"). */ + /** Thin reference to the parent Project. Member resources are intentionally NOT inlined — list /v1/databases?branchId= or /v1/apps?branchId= instead (see API design principles "Flat and Hierarchical Coexistence"). */ project: GetV1BranchesByBranchIdResponseDataProject; } export const PostV1ProjectsByProjectIdBranchesResponseData = @@ -5465,67 +6829,56 @@ export const PostV1ProjectsByProjectIdBranchesResponse = identifier: "PostV1ProjectsByProjectIdBranchesResponse", }) as any as S.Schema; -export type PostV1ProjectsByProjectIdComputeServicesRequestRegionId = - | "us-east-1" - | "us-west-1" - | "eu-west-3" - | "eu-central-1" - | "ap-northeast-1" - | "ap-southeast-1"; -export const PostV1ProjectsByProjectIdComputeServicesRequestRegionId = - /*@__PURE__*/ S.String; - -export interface PostV1ProjectsByProjectIdComputeServicesRequest { +export interface PostV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseRequest { projectId: string; - displayName: string; - regionId?: - | PostV1ProjectsByProjectIdComputeServicesRequestRegionId - | (string & {}); - branchId?: string | null; - branchGitName?: string | null; -} -export const PostV1ProjectsByProjectIdComputeServicesRequest = + branchId: string; + /** Alchemy stack name (opaque wire value). */ + stack: string; + /** Alchemy stage name (opaque wire value). */ + stage: string; + /** Requested lease TTL in seconds. Default 60, clamped to [30, 300]. */ + ttlSeconds?: number; + /** Free-form description of the acquiring deploy, echoed in the contention error so a blocked deploy can name who holds the lease. */ + holderDescription?: string; +} +export const PostV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseRequest = /*@__PURE__*/ S.suspend(() => S.Struct({ projectId: S.String.pipe(T.Label()), - displayName: S.String, - regionId: S.optional( - PostV1ProjectsByProjectIdComputeServicesRequestRegionId, - ), - branchId: S.optional(S.NullOr(S.String)), - branchGitName: S.optional(S.NullOr(S.String)), + branchId: S.String.pipe(T.Label()), + stack: S.String, + stage: S.String, + ttlSeconds: S.optional(S.Number), + holderDescription: S.optional(S.String), }).pipe( T.Http({ method: "POST", - uri: "/v1/projects/{projectId}/compute-services", + uri: "/v1/projects/{projectId}/branches/{branchId}/alchemy-state/lease", code: 200, }), ), ).annotate({ - identifier: "PostV1ProjectsByProjectIdComputeServicesRequest", - }) as any as S.Schema; - -export type PostV1ProjectsByProjectIdComputeServicesResponseDataRegion = - GetV1AppsResponseDataItemRegion; -export const PostV1ProjectsByProjectIdComputeServicesResponseDataRegion = - GetV1AppsResponseDataItemRegion; + identifier: + "PostV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseRequest", + }) as any as S.Schema; -export type PostV1ProjectsByProjectIdComputeServicesResponseData = - GetV1ProjectsByProjectIdComputeServicesResponseDataItem; -export const PostV1ProjectsByProjectIdComputeServicesResponseData = - GetV1ProjectsByProjectIdComputeServicesResponseDataItem; +export type PostV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseResponseData = + PatchV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseResponseData; +export const PostV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseResponseData = + PatchV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseResponseData; -export interface PostV1ProjectsByProjectIdComputeServicesResponse { - data: GetV1ProjectsByProjectIdComputeServicesResponseDataItem; +export interface PostV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseResponse { + data: PatchV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseResponseData; } -export const PostV1ProjectsByProjectIdComputeServicesResponse = +export const PostV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseResponse = /*@__PURE__*/ S.suspend(() => S.Struct({ - data: GetV1ProjectsByProjectIdComputeServicesResponseDataItem, + data: PatchV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseResponseData, }), ).annotate({ - identifier: "PostV1ProjectsByProjectIdComputeServicesResponse", - }) as any as S.Schema; + identifier: + "PostV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseResponse", + }) as any as S.Schema; export type PostV1ProjectsByProjectIdDatabasesRequestRegion = | "us-east-1" @@ -6003,6 +7356,190 @@ export const PostV1SourceRepositoriesResponse = /*@__PURE__*/ S.suspend(() => identifier: "PostV1SourceRepositoriesResponse", }) as any as S.Schema; +export interface PostV1WorkspacesByWorkspaceIdServiceTokensRequest { + workspaceId: string; + /** Display name for the service token. */ + name: string; +} +export const PostV1WorkspacesByWorkspaceIdServiceTokensRequest = + /*@__PURE__*/ S.suspend(() => + S.Struct({ + workspaceId: S.String.pipe(T.Label()), + name: S.String, + }).pipe( + T.Http({ + method: "POST", + uri: "/v1/workspaces/{workspaceId}/service-tokens", + code: 200, + }), + ), + ).annotate({ + identifier: "PostV1WorkspacesByWorkspaceIdServiceTokensRequest", + }) as any as S.Schema; + +export interface PostV1WorkspacesByWorkspaceIdServiceTokensResponseData { + id: string; + type: string; + name: string; + valueHint: string; + createdAt: string; + expiresAt?: string | null; + value: string; +} +export const PostV1WorkspacesByWorkspaceIdServiceTokensResponseData = + /*@__PURE__*/ S.suspend(() => + S.Struct({ + id: S.String, + type: S.String, + name: S.String, + valueHint: S.String, + createdAt: S.String, + expiresAt: S.optional(S.NullOr(S.String)), + value: S.String, + }), + ).annotate({ + identifier: "PostV1WorkspacesByWorkspaceIdServiceTokensResponseData", + }) as any as S.Schema; + +export interface PostV1WorkspacesByWorkspaceIdServiceTokensResponse { + data: PostV1WorkspacesByWorkspaceIdServiceTokensResponseData; +} +export const PostV1WorkspacesByWorkspaceIdServiceTokensResponse = + /*@__PURE__*/ S.suspend(() => + S.Struct({ + data: PostV1WorkspacesByWorkspaceIdServiceTokensResponseData, + }), + ).annotate({ + identifier: "PostV1WorkspacesByWorkspaceIdServiceTokensResponse", + }) as any as S.Schema; + +export type PutV1BuildsByBuildIdResourcesByResourceTypeByResourceIdRequestResourceType = + | "project" + | "branch" + | "database" + | "app" + | "deployment" + | "bucket" + | "service_key" + | "config_variable"; +export const PutV1BuildsByBuildIdResourcesByResourceTypeByResourceIdRequestResourceType = + /*@__PURE__*/ S.String; + +/** The strongest effect the build had on the resource. Re-reporting is safe: a weaker action never overwrites a stronger one, so `created` survives a later `acted_on`. */ +export type PutV1BuildsByBuildIdResourcesByResourceTypeByResourceIdRequestAction = + "created" | "acted_on" | "deleted"; +export const PutV1BuildsByBuildIdResourcesByResourceTypeByResourceIdRequestAction = + /*@__PURE__*/ S.String; + +export interface PutV1BuildsByBuildIdResourcesByResourceTypeByResourceIdRequest { + buildId: string; + resourceType: + | PutV1BuildsByBuildIdResourcesByResourceTypeByResourceIdRequestResourceType + | (string & {}); + resourceId: string; + /** The strongest effect the build had on the resource. Re-reporting is safe: a weaker action never overwrites a stronger one, so `created` survives a later `acted_on`. */ + action: + | PutV1BuildsByBuildIdResourcesByResourceTypeByResourceIdRequestAction + | (string & {}); +} +export const PutV1BuildsByBuildIdResourcesByResourceTypeByResourceIdRequest = + /*@__PURE__*/ S.suspend(() => + S.Struct({ + buildId: S.String.pipe(T.Label()), + resourceType: + PutV1BuildsByBuildIdResourcesByResourceTypeByResourceIdRequestResourceType.pipe( + T.Label(), + ), + resourceId: S.String.pipe(T.Label()), + action: + PutV1BuildsByBuildIdResourcesByResourceTypeByResourceIdRequestAction, + }).pipe( + T.Http({ + method: "PUT", + uri: "/v1/builds/{buildId}/resources/{resourceType}/{resourceId}", + code: 200, + }), + ), + ).annotate({ + identifier: + "PutV1BuildsByBuildIdResourcesByResourceTypeByResourceIdRequest", + }) as any as S.Schema; + +export interface PutV1BuildsByBuildIdResourcesByResourceTypeByResourceIdResponse {} +export const PutV1BuildsByBuildIdResourcesByResourceTypeByResourceIdResponse = + /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ + identifier: + "PutV1BuildsByBuildIdResourcesByResourceTypeByResourceIdResponse", + }) as any as S.Schema; + +export interface PutV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageOutputRequest { + projectId: string; + branchId: string; + stack: string; + stage: string; +} +export const PutV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageOutputRequest = + /*@__PURE__*/ S.suspend(() => + S.Struct({ + projectId: S.String.pipe(T.Label()), + branchId: S.String.pipe(T.Label()), + stack: S.String.pipe(T.Label()), + stage: S.String.pipe(T.Label()), + }).pipe( + T.Http({ + method: "PUT", + uri: "/v1/projects/{projectId}/branches/{branchId}/alchemy-state/state/stacks/{stack}/stages/{stage}/output", + code: 200, + }), + ), + ).annotate({ + identifier: + "PutV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageOutputRequest", + }) as any as S.Schema; + +export type PutV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageOutputResponse = + unknown; +export const PutV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageOutputResponse = + /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({ + identifier: + "PutV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageOutputResponse", + }) as any as S.Schema; + +export interface PutV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqnRequest { + projectId: string; + branchId: string; + stack: string; + stage: string; + fqn: string; +} +export const PutV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqnRequest = + /*@__PURE__*/ S.suspend(() => + S.Struct({ + projectId: S.String.pipe(T.Label()), + branchId: S.String.pipe(T.Label()), + stack: S.String.pipe(T.Label()), + stage: S.String.pipe(T.Label()), + fqn: S.String.pipe(T.Label()), + }).pipe( + T.Http({ + method: "PUT", + uri: "/v1/projects/{projectId}/branches/{branchId}/alchemy-state/state/stacks/{stack}/stages/{stage}/resources/{fqn}", + code: 200, + }), + ), + ).annotate({ + identifier: + "PutV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqnRequest", + }) as any as S.Schema; + +export type PutV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqnResponse = + unknown; +export const PutV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqnResponse = + /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({ + identifier: + "PutV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqnResponse", + }) as any as S.Schema; + export type DeleteV1AppsByAppIdError = | Forbidden | NotFound @@ -6022,21 +7559,53 @@ export const deleteV1AppsByAppId: API.OperationMethod< retry: Retry.Retry, })); -export type DeleteV1BranchesByBranchIdError = +export type DeleteV1BranchesByBranchIdError = + | NotFound + | Conflict + | UnprocessableEntity + | PrismaPostgresOpError; +/** Soft-delete a branch ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️ Soft-deletes a Branch (sets deletedAt). Refuses if the Branch is the Project's current default, the Project's production Branch, or has live members. */ +export const deleteV1BranchesByBranchId: API.OperationMethod< + DeleteV1BranchesByBranchIdRequest, + DeleteV1BranchesByBranchIdResponse, + DeleteV1BranchesByBranchIdError, + PrismaPostgresOpContext +> = /*@__PURE__*/ API.make(() => ({ + input: DeleteV1BranchesByBranchIdRequest, + output: DeleteV1BranchesByBranchIdResponse, + errors: [NotFound, Conflict, UnprocessableEntity, UnknownPrismaPostgresError], + protocol: PrismaPostgresProtocol, + retry: Retry.Retry, +})); + +export type DeleteV1BucketsByBucketIdError = NotFound | PrismaPostgresOpError; +/** Delete bucket Permanently deletes the bucket with the given ID, all objects stored in it, and all its access keys. This action cannot be undone. */ +export const deleteV1BucketsByBucketId: API.OperationMethod< + DeleteV1BucketsByBucketIdRequest, + DeleteV1BucketsByBucketIdResponse, + DeleteV1BucketsByBucketIdError, + PrismaPostgresOpContext +> = /*@__PURE__*/ API.make(() => ({ + input: DeleteV1BucketsByBucketIdRequest, + output: DeleteV1BucketsByBucketIdResponse, + errors: [NotFound, UnknownPrismaPostgresError], + protocol: PrismaPostgresProtocol, + retry: Retry.Retry, +})); + +export type DeleteV1BucketsByBucketIdKeysByKeyIdError = | NotFound - | Conflict - | UnprocessableEntity | PrismaPostgresOpError; -/** Soft-delete a branch ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️ Soft-deletes a Branch (sets deletedAt). Refuses if the Branch is the Project's current default, the Project's production Branch, or has live members. */ -export const deleteV1BranchesByBranchId: API.OperationMethod< - DeleteV1BranchesByBranchIdRequest, - DeleteV1BranchesByBranchIdResponse, - DeleteV1BranchesByBranchIdError, +/** Delete bucket key Revokes and deletes the bucket key with the given ID. */ +export const deleteV1BucketsByBucketIdKeysByKeyId: API.OperationMethod< + DeleteV1BucketsByBucketIdKeysByKeyIdRequest, + DeleteV1BucketsByBucketIdKeysByKeyIdResponse, + DeleteV1BucketsByBucketIdKeysByKeyIdError, PrismaPostgresOpContext > = /*@__PURE__*/ API.make(() => ({ - input: DeleteV1BranchesByBranchIdRequest, - output: DeleteV1BranchesByBranchIdResponse, - errors: [NotFound, Conflict, UnprocessableEntity, UnknownPrismaPostgresError], + input: DeleteV1BucketsByBucketIdKeysByKeyIdRequest, + output: DeleteV1BucketsByBucketIdKeysByKeyIdResponse, + errors: [NotFound, UnknownPrismaPostgresError], protocol: PrismaPostgresProtocol, retry: Retry.Retry, })); @@ -6159,6 +7728,7 @@ export const deleteV1IntegrationsById: API.OperationMethod< export type DeleteV1ProjectsByIdError = | BadRequest | NotFound + | Conflict | UnprocessableEntity | PrismaPostgresOpError; /** Delete project Deletes the project with the given ID. */ @@ -6173,6 +7743,7 @@ export const deleteV1ProjectsById: API.OperationMethod< errors: [ BadRequest, NotFound, + Conflict, UnprocessableEntity, UnknownPrismaPostgresError, ], @@ -6180,6 +7751,59 @@ export const deleteV1ProjectsById: API.OperationMethod< retry: Retry.Retry, })); +export type DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseError = + NotFound | PrismaPostgresOpError; +/** Release Alchemy deploy lease ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️ Releases the deploy lease addressed by the Alchemy-State-Lease-Id header on clean deploy exit. A missing, replaced, or expired lease returns 404 — a lost lease at release time is surfaced, not idempotently swallowed. */ +export const deleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLease: API.OperationMethod< + DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseRequest, + DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseResponse, + DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseError, + PrismaPostgresOpContext +> = /*@__PURE__*/ API.make(() => ({ + input: DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseRequest, + output: + DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseResponse, + errors: [NotFound, UnknownPrismaPostgresError], + protocol: PrismaPostgresProtocol, + retry: Retry.Retry, +})); + +export type DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackError = + NotFound | Conflict | PrismaPostgresOpError; +/** Delete Alchemy stack state ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️ Deletes every resource-state and output row of the stack, or only the given stage's rows when the stage query parameter is set. Requires a live deploy lease on the affected stage; without a stage it additionally requires that no other stage of the stack holds a live lease, so one stage's deploy can never delete state another stage's deploy is using. Idempotent. */ +export const deleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStack: API.OperationMethod< + DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackRequest, + DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackResponse, + DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackError, + PrismaPostgresOpContext +> = /*@__PURE__*/ API.make(() => ({ + input: + DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackRequest, + output: + DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackResponse, + errors: [NotFound, Conflict, UnknownPrismaPostgresError], + protocol: PrismaPostgresProtocol, + retry: Retry.Retry, +})); + +export type DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqnError = + NotFound | Conflict | PrismaPostgresOpError; +/** Delete Alchemy resource state ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️ Deletes the resource state row. Idempotent: deleting an absent row also returns 204. */ +export const deleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqn: API.OperationMethod< + DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqnRequest, + DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqnResponse, + DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqnError, + PrismaPostgresOpContext +> = /*@__PURE__*/ API.make(() => ({ + input: + DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqnRequest, + output: + DeleteV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqnResponse, + errors: [NotFound, Conflict, UnknownPrismaPostgresError], + protocol: PrismaPostgresProtocol, + retry: Retry.Retry, +})); + export type DeleteV1SourceRepositoriesByIdError = | NotFound | PrismaPostgresOpError; @@ -6215,8 +7839,26 @@ export const deleteV1WorkspacesByWorkspaceIdIntegrationsByClientId: API.Operatio retry: Retry.Retry, })); +export type DeleteV1WorkspacesByWorkspaceIdServiceTokensByServiceTokenIdError = + | NotFound + | PrismaPostgresOpError; +/** Delete service token Revokes the service token with the given ID by deleting it. */ +export const deleteV1WorkspacesByWorkspaceIdServiceTokensByServiceTokenId: API.OperationMethod< + DeleteV1WorkspacesByWorkspaceIdServiceTokensByServiceTokenIdRequest, + DeleteV1WorkspacesByWorkspaceIdServiceTokensByServiceTokenIdResponse, + DeleteV1WorkspacesByWorkspaceIdServiceTokensByServiceTokenIdError, + PrismaPostgresOpContext +> = /*@__PURE__*/ API.make(() => ({ + input: DeleteV1WorkspacesByWorkspaceIdServiceTokensByServiceTokenIdRequest, + output: DeleteV1WorkspacesByWorkspaceIdServiceTokensByServiceTokenIdResponse, + errors: [NotFound, UnknownPrismaPostgresError], + protocol: PrismaPostgresProtocol, + retry: Retry.Retry, +})); + export type GetV1AppsError = | Forbidden + | NotFound | UnprocessableEntity | PrismaPostgresOpError; /** List apps ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️ Returns all apps the token has access to, ordered by creation time (oldest first). Optionally filter by project ID. Supports cursor-based pagination. */ @@ -6228,7 +7870,12 @@ export const getV1Apps: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: GetV1AppsRequest, output: GetV1AppsResponse, - errors: [Forbidden, UnprocessableEntity, UnknownPrismaPostgresError], + errors: [ + Forbidden, + NotFound, + UnprocessableEntity, + UnknownPrismaPostgresError, + ], protocol: PrismaPostgresProtocol, retry: Retry.Retry, })); @@ -6288,7 +7935,7 @@ export const getV1AppsByAppIdDomains: API.OperationMethod< })); export type GetV1BranchesByBranchIdError = NotFound | PrismaPostgresOpError; -/** Get a branch ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️ Returns a single Branch by ID. Member resources are not inlined — list them via /v1/databases?branchId= and /v1/compute-services?branchId=. */ +/** Get a branch ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️ Returns a single Branch by ID. Member resources are not inlined — list them via /v1/databases?branchId= and /v1/apps?branchId=. */ export const getV1BranchesByBranchId: API.OperationMethod< GetV1BranchesByBranchIdRequest, GetV1BranchesByBranchIdResponse, @@ -6302,6 +7949,81 @@ export const getV1BranchesByBranchId: API.OperationMethod< retry: Retry.Retry, })); +export type GetV1BucketsError = PrismaPostgresOpError; +/** List buckets Returns all object-store buckets the token has access to. Optionally filter by project ID. */ +export const getV1Buckets: API.OperationMethod< + GetV1BucketsRequest, + GetV1BucketsResponse, + GetV1BucketsError, + PrismaPostgresOpContext +> = /*@__PURE__*/ API.make(() => ({ + input: GetV1BucketsRequest, + output: GetV1BucketsResponse, + errors: [UnknownPrismaPostgresError], + protocol: PrismaPostgresProtocol, + retry: Retry.Retry, +})); + +export type GetV1BucketsByBucketIdError = NotFound | PrismaPostgresOpError; +/** Get bucket Returns the bucket with the given ID. */ +export const getV1BucketsByBucketId: API.OperationMethod< + GetV1BucketsByBucketIdRequest, + GetV1BucketsByBucketIdResponse, + GetV1BucketsByBucketIdError, + PrismaPostgresOpContext +> = /*@__PURE__*/ API.make(() => ({ + input: GetV1BucketsByBucketIdRequest, + output: GetV1BucketsByBucketIdResponse, + errors: [NotFound, UnknownPrismaPostgresError], + protocol: PrismaPostgresProtocol, + retry: Retry.Retry, +})); + +export type GetV1BucketsByBucketIdKeysError = NotFound | PrismaPostgresOpError; +/** List bucket keys Returns all access keys for the given bucket. */ +export const getV1BucketsByBucketIdKeys: API.OperationMethod< + GetV1BucketsByBucketIdKeysRequest, + GetV1BucketsByBucketIdKeysResponse, + GetV1BucketsByBucketIdKeysError, + PrismaPostgresOpContext +> = /*@__PURE__*/ API.make(() => ({ + input: GetV1BucketsByBucketIdKeysRequest, + output: GetV1BucketsByBucketIdKeysResponse, + errors: [NotFound, UnknownPrismaPostgresError], + protocol: PrismaPostgresProtocol, + retry: Retry.Retry, +})); + +export type GetV1BuildsError = NotFound | PrismaPostgresOpError; +/** List builds ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️ Lists the builds of the caller's workspace, newest first, filtered by project, branch, or state. `cursor` is opaque: pass back the `nextCursor` the previous page returned. */ +export const getV1Builds: API.OperationMethod< + GetV1BuildsRequest, + GetV1BuildsResponse, + GetV1BuildsError, + PrismaPostgresOpContext +> = /*@__PURE__*/ API.make(() => ({ + input: GetV1BuildsRequest, + output: GetV1BuildsResponse, + errors: [NotFound, UnknownPrismaPostgresError], + protocol: PrismaPostgresProtocol, + retry: Retry.Retry, +})); + +export type GetV1BuildsByBuildIdError = NotFound | PrismaPostgresOpError; +/** Get a build ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️ Returns one build with the resources it reported acting on. */ +export const getV1BuildsByBuildId: API.OperationMethod< + GetV1BuildsByBuildIdRequest, + GetV1BuildsByBuildIdResponse, + GetV1BuildsByBuildIdError, + PrismaPostgresOpContext +> = /*@__PURE__*/ API.make(() => ({ + input: GetV1BuildsByBuildIdRequest, + output: GetV1BuildsByBuildIdResponse, + errors: [NotFound, UnknownPrismaPostgresError], + protocol: PrismaPostgresProtocol, + retry: Retry.Retry, +})); + export type GetV1BuildsByBuildIdLogsError = NotFound | PrismaPostgresOpError; /** Stream build logs ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️ Streams the full build log for a build as newline-delimited JSON (`application/x-ndjson`). Each line is a JSON object discriminated by `type`: `log` (a build output line) or `terminal` (end-of-stream marker with a `cursor` for resumption). The default is a finite dump that ends once the stream is drained; pass `follow=true` to keep the connection open for an in-flight build, and `cursor` to resume from a prior terminal cursor. */ export const getV1BuildsByBuildIdLogs: API.OperationMethod< @@ -6470,7 +8192,7 @@ export type GetV1DeploymentsByDeploymentIdLogsError = | Forbidden | NotFound | PrismaPostgresOpError; -/** Stream deployment logs via WebSocket ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️ Upgrades to a WebSocket connection that streams log output for the specified deployment. Each message is a JSON object with `type: "log"` (log text + byte metadata) or `type: "terminal"` (end-of-segment signal with reconnect cursor). The stream ends after 10 minutes; reconnect with the `cursor` query parameter to continue. */ +/** Get deployment logs ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️ Returns log output for the specified deployment. Each record is a JSON object with `type: "log"` (log text + byte metadata) or `type: "terminal"` (end-of-page signal with a resume cursor). A plain GET responds with newline-delimited JSON (`application/x-ndjson`): it drains the requested window (`tail`, `from_start`, or `cursor`), ends with a terminal record carrying the cursor for the next page, and closes. Send an `Upgrade: websocket` header to follow the log live instead; a live segment ends after 10 minutes with the same terminal/cursor mechanism. */ export const getV1DeploymentsByDeploymentIdLogs: API.OperationMethod< GetV1DeploymentsByDeploymentIdLogsRequest, GetV1DeploymentsByDeploymentIdLogsResponse, @@ -6503,6 +8225,7 @@ export const getV1DomainsByDomainId: API.OperationMethod< })); export type GetV1EnvironmentVariablesError = + | NotFound | UnprocessableEntity | PrismaPostgresOpError; /** List environment variables ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️ Returns a paginated list of environment variables. All filters are optional; combine `projectId`, `class`, and `key` to look up a specific variable by name. */ @@ -6514,7 +8237,7 @@ export const getV1EnvironmentVariables: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: GetV1EnvironmentVariablesRequest, output: GetV1EnvironmentVariablesResponse, - errors: [UnprocessableEntity, UnknownPrismaPostgresError], + errors: [NotFound, UnprocessableEntity, UnknownPrismaPostgresError], protocol: PrismaPostgresProtocol, retry: Retry.Retry, })); @@ -6636,26 +8359,126 @@ export const getV1ProjectsByProjectIdBranches: API.OperationMethod< retry: Retry.Retry, })); -export type GetV1ProjectsByProjectIdComputeServicesError = - | Forbidden - | NotFound - | UnprocessableEntity - | PrismaPostgresOpError; -/** List compute services for a project ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️ Returns all compute services belonging to a project, ordered by creation time (oldest first). Supports cursor-based pagination. */ -export const getV1ProjectsByProjectIdComputeServices: API.OperationMethod< - GetV1ProjectsByProjectIdComputeServicesRequest, - GetV1ProjectsByProjectIdComputeServicesResponse, - GetV1ProjectsByProjectIdComputeServicesError, +export type GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksError = + NotFound | Conflict | PrismaPostgresOpError; +/** List Alchemy stacks ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️ Lists the distinct stack names with state or output rows on the branch. Requires no deploy lease: the stock client's auth probe (checkHttpStateStoreAuth) calls this endpoint bare, and it exposes stack names only. */ +export const getV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacks: API.OperationMethod< + GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksRequest, + GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksResponse, + GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksError, PrismaPostgresOpContext > = /*@__PURE__*/ API.make(() => ({ - input: GetV1ProjectsByProjectIdComputeServicesRequest, - output: GetV1ProjectsByProjectIdComputeServicesResponse, - errors: [ - Forbidden, - NotFound, - UnprocessableEntity, - UnknownPrismaPostgresError, - ], + input: + GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksRequest, + output: + GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksResponse, + errors: [NotFound, Conflict, UnknownPrismaPostgresError], + protocol: PrismaPostgresProtocol, + retry: Retry.Retry, +})); + +export type GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesError = + NotFound | Conflict | PrismaPostgresOpError; +/** List Alchemy stages ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️ Lists the distinct stage names with state or output rows for the stack. Accepts a live deploy lease on any stage of the stack. */ +export const getV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStages: API.OperationMethod< + GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesRequest, + GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesResponse, + GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesError, + PrismaPostgresOpContext +> = /*@__PURE__*/ API.make(() => ({ + input: + GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesRequest, + output: + GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesResponse, + errors: [NotFound, Conflict, UnknownPrismaPostgresError], + protocol: PrismaPostgresProtocol, + retry: Retry.Retry, +})); + +export type GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageOutputError = + NotFound | Conflict | PrismaPostgresOpError; +/** Get Alchemy stack output ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️ Returns the stored stack output for the stage, or a JSON null body when absent (the stock client maps null to undefined). */ +export const getV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageOutput: API.OperationMethod< + GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageOutputRequest, + GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageOutputResponse, + GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageOutputError, + PrismaPostgresOpContext +> = /*@__PURE__*/ API.make(() => ({ + input: + GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageOutputRequest, + output: + GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageOutputResponse, + errors: [NotFound, Conflict, UnknownPrismaPostgresError], + protocol: PrismaPostgresProtocol, + retry: Retry.Retry, +})); + +export type GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageReplacedResourcesError = + NotFound | Conflict | PrismaPostgresOpError; +/** List replaced Alchemy resources ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️ Returns the decrypted resource states of the stage whose status is "replaced". */ +export const getV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageReplacedResources: API.OperationMethod< + GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageReplacedResourcesRequest, + GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageReplacedResourcesResponse, + GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageReplacedResourcesError, + PrismaPostgresOpContext +> = /*@__PURE__*/ API.make(() => ({ + input: + GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageReplacedResourcesRequest, + output: + GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageReplacedResourcesResponse, + errors: [NotFound, Conflict, UnknownPrismaPostgresError], + protocol: PrismaPostgresProtocol, + retry: Retry.Retry, +})); + +export type GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesError = + NotFound | Conflict | PrismaPostgresOpError; +/** List Alchemy resources ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️ Lists the resource FQNs stored for the stage, ordered by FQN. */ +export const getV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResources: API.OperationMethod< + GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesRequest, + GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesResponse, + GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesError, + PrismaPostgresOpContext +> = /*@__PURE__*/ API.make(() => ({ + input: + GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesRequest, + output: + GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesResponse, + errors: [NotFound, Conflict, UnknownPrismaPostgresError], + protocol: PrismaPostgresProtocol, + retry: Retry.Retry, +})); + +export type GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqnError = + NotFound | Conflict | PrismaPostgresOpError; +/** Get Alchemy resource state ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️ Returns the stored resource state, or a JSON null body when absent (the stock client maps null to undefined). */ +export const getV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqn: API.OperationMethod< + GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqnRequest, + GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqnResponse, + GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqnError, + PrismaPostgresOpContext +> = /*@__PURE__*/ API.make(() => ({ + input: + GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqnRequest, + output: + GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqnResponse, + errors: [NotFound, Conflict, UnknownPrismaPostgresError], + protocol: PrismaPostgresProtocol, + retry: Retry.Retry, +})); + +export type GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateVersionError = + PrismaPostgresOpError; +/** Alchemy state store version ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️ Unauthenticated contract-version probe served verbatim from the pinned alchemy HttpStateApi contract. Returns the constant only and never inspects the addressed project or branch. */ +export const getV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateVersion: API.OperationMethod< + GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateVersionRequest, + GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateVersionResponse, + GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateVersionError, + PrismaPostgresOpContext +> = /*@__PURE__*/ API.make(() => ({ + input: GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateVersionRequest, + output: GetV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateVersionResponse, + errors: [UnknownPrismaPostgresError], protocol: PrismaPostgresProtocol, retry: Retry.Retry, })); @@ -6819,6 +8642,23 @@ export const getV1WorkspacesById: API.OperationMethod< retry: Retry.Retry, })); +export type GetV1WorkspacesByIdSubscriptionError = + | NotFound + | PrismaPostgresOpError; +/** Get workspace subscription Returns subscription information for the workspace with the given ID. */ +export const getV1WorkspacesByIdSubscription: API.OperationMethod< + GetV1WorkspacesByIdSubscriptionRequest, + GetV1WorkspacesByIdSubscriptionResponse, + GetV1WorkspacesByIdSubscriptionError, + PrismaPostgresOpContext +> = /*@__PURE__*/ API.make(() => ({ + input: GetV1WorkspacesByIdSubscriptionRequest, + output: GetV1WorkspacesByIdSubscriptionResponse, + errors: [NotFound, UnknownPrismaPostgresError], + protocol: PrismaPostgresProtocol, + retry: Retry.Retry, +})); + export type GetV1WorkspacesByWorkspaceIdIntegrationsError = | NotFound | UnprocessableEntity @@ -6837,6 +8677,22 @@ export const getV1WorkspacesByWorkspaceIdIntegrations: API.OperationMethod< retry: Retry.Retry, })); +export type GetV1WorkspacesByWorkspaceIdServiceTokensError = + PrismaPostgresOpError; +/** List service tokens Returns the service tokens for the given workspace, newest first. */ +export const getV1WorkspacesByWorkspaceIdServiceTokens: API.OperationMethod< + GetV1WorkspacesByWorkspaceIdServiceTokensRequest, + GetV1WorkspacesByWorkspaceIdServiceTokensResponse, + GetV1WorkspacesByWorkspaceIdServiceTokensError, + PrismaPostgresOpContext +> = /*@__PURE__*/ API.make(() => ({ + input: GetV1WorkspacesByWorkspaceIdServiceTokensRequest, + output: GetV1WorkspacesByWorkspaceIdServiceTokensResponse, + errors: [UnknownPrismaPostgresError], + protocol: PrismaPostgresProtocol, + retry: Retry.Retry, +})); + export type PatchV1AppsByAppIdError = | Forbidden | NotFound @@ -6879,6 +8735,24 @@ export const patchV1BranchesByBranchId: API.OperationMethod< retry: Retry.Retry, })); +export type PatchV1BuildsByBuildIdError = + | NotFound + | Conflict + | PrismaPostgresOpError; +/** Update a build ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️ Records progress on a build. Any holder of the workspace token may patch any field — the webhook, the CI run and Composer each report the part of a deploy they can see, and the token is the boundary. Reaching `running` stamps `startedAt` and reaching a terminal state stamps `finishedAt`, both only if unset, so re-reporting the same state does not move the clock. `projectId`, `branchId` and `deployedUrl` are fill-only: a reporter that resolves them partway through a deploy sets them here, but a value already recorded cannot be changed and the attempt is a conflict. Sending the value already recorded is accepted and changes nothing. An anchor must belong to the caller's workspace and agree with the anchors the build already carries, so a branch from another project is refused. */ +export const patchV1BuildsByBuildId: API.OperationMethod< + PatchV1BuildsByBuildIdRequest, + PatchV1BuildsByBuildIdResponse, + PatchV1BuildsByBuildIdError, + PrismaPostgresOpContext +> = /*@__PURE__*/ API.make(() => ({ + input: PatchV1BuildsByBuildIdRequest, + output: PatchV1BuildsByBuildIdResponse, + errors: [NotFound, Conflict, UnknownPrismaPostgresError], + protocol: PrismaPostgresProtocol, + retry: Retry.Retry, +})); + export type PatchV1DatabasesByDatabaseIdError = | Forbidden | NotFound @@ -6945,13 +8819,29 @@ export const patchV1ProjectsById: API.OperationMethod< retry: Retry.Retry, })); +export type PatchV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseError = + NotFound | PrismaPostgresOpError; +/** Heartbeat Alchemy deploy lease ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️ Extends the unexpired deploy lease addressed by the Alchemy-State-Lease-Id header from now. A missing, replaced, or expired lease returns 404 — the lost-lease signal; an expired lease can never be revived. */ +export const patchV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLease: API.OperationMethod< + PatchV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseRequest, + PatchV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseResponse, + PatchV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseError, + PrismaPostgresOpContext +> = /*@__PURE__*/ API.make(() => ({ + input: PatchV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseRequest, + output: PatchV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseResponse, + errors: [NotFound, UnknownPrismaPostgresError], + protocol: PrismaPostgresProtocol, + retry: Retry.Retry, +})); + export type PostV1AppsError = | Forbidden | NotFound | Conflict | UnprocessableEntity | PrismaPostgresOpError; -/** Create app ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️ Creates a new app under the specified project. The `projectId` is required in the request body. The app is placed in the given region (or the default region if omitted). Returns `409 Conflict` with the existing app's id, name, and branch if an app with the same name already exists on the resolved branch. */ +/** Create app ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️ Creates a new app under the specified project. The `projectId` is required in the request body. The app is placed in the given region, or the project's default region if omitted (falling back to us-east-1). Returns `409 Conflict` with the existing app's id, name, and branch if an app with the same name already exists on the resolved branch. */ export const postV1Apps: API.OperationMethod< PostV1AppsRequest, PostV1AppsResponse, @@ -7075,8 +8965,76 @@ export const postV1AppsByAppIdRollback: API.OperationMethod< retry: Retry.Retry, })); +export type PostV1AuthGithubActionsTokenError = PrismaPostgresOpError; +/** Exchange a GitHub Actions OIDC token for a workspace service token ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️ Verifies the GitHub Actions OIDC token and mints a short-lived workspace service token. The caller must request the token with audience `prisma-cloud`. Any verification failure returns a generic 401 — the response never reveals whether a repository is connected. */ +export const postV1AuthGithubActionsToken: API.OperationMethod< + PostV1AuthGithubActionsTokenRequest, + PostV1AuthGithubActionsTokenResponse, + PostV1AuthGithubActionsTokenError, + PrismaPostgresOpContext +> = /*@__PURE__*/ API.make(() => ({ + input: PostV1AuthGithubActionsTokenRequest, + output: PostV1AuthGithubActionsTokenResponse, + errors: [UnknownPrismaPostgresError], + protocol: PrismaPostgresProtocol, + retry: Retry.Retry, +})); + +export type PostV1BucketsError = + | BadRequest + | Forbidden + | NotFound + | PrismaPostgresOpError; +/** Create bucket Creates a new object-store bucket in the specified project. */ +export const postV1Buckets: API.OperationMethod< + PostV1BucketsRequest, + PostV1BucketsResponse, + PostV1BucketsError, + PrismaPostgresOpContext +> = /*@__PURE__*/ API.make(() => ({ + input: PostV1BucketsRequest, + output: PostV1BucketsResponse, + errors: [BadRequest, Forbidden, NotFound, UnknownPrismaPostgresError], + protocol: PrismaPostgresProtocol, + retry: Retry.Retry, +})); + +export type PostV1BucketsByBucketIdKeysError = + | BadRequest + | NotFound + | PrismaPostgresOpError; +/** Create bucket key Creates a new access key for the given bucket. The `secretAccessKey` field is returned exactly once in this response and is never stored — copy it immediately. */ +export const postV1BucketsByBucketIdKeys: API.OperationMethod< + PostV1BucketsByBucketIdKeysRequest, + PostV1BucketsByBucketIdKeysResponse, + PostV1BucketsByBucketIdKeysError, + PrismaPostgresOpContext +> = /*@__PURE__*/ API.make(() => ({ + input: PostV1BucketsByBucketIdKeysRequest, + output: PostV1BucketsByBucketIdKeysResponse, + errors: [BadRequest, NotFound, UnknownPrismaPostgresError], + protocol: PrismaPostgresProtocol, + retry: Retry.Retry, +})); + +export type PostV1BuildsError = NotFound | PrismaPostgresOpError; +/** Report a build ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️ Records a build any deploy tool is running — a CI workflow, a deploy script, or Composer from a laptop. The workspace comes from the token, never from the body, which is what lets a build be reported before the project it will create exists. Supplying `runIdentity` makes the call idempotent: a repeat for the same run returns the build already recorded rather than a second one. The response is the same either way; a caller cannot tell whether it created the build or joined one. A build reported with no `runIdentity` has no dedup key, so a client that retries a lost response creates a second build. Supply a `runIdentity` whenever the run has one. */ +export const postV1Builds: API.OperationMethod< + PostV1BuildsRequest, + PostV1BuildsResponse, + PostV1BuildsError, + PrismaPostgresOpContext +> = /*@__PURE__*/ API.make(() => ({ + input: PostV1BuildsRequest, + output: PostV1BuildsResponse, + errors: [NotFound, UnknownPrismaPostgresError], + protocol: PrismaPostgresProtocol, + retry: Retry.Retry, +})); + export type PostV1ConnectionsError = | NotFound + | Conflict | UnprocessableEntity | PrismaPostgresOpError; /** Create connection Creates a new connection for the specified database. */ @@ -7088,7 +9046,7 @@ export const postV1Connections: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: PostV1ConnectionsRequest, output: PostV1ConnectionsResponse, - errors: [NotFound, UnprocessableEntity, UnknownPrismaPostgresError], + errors: [NotFound, Conflict, UnprocessableEntity, UnknownPrismaPostgresError], protocol: PrismaPostgresProtocol, retry: Retry.Retry, })); @@ -7112,6 +9070,7 @@ export type PostV1DatabasesError = | BadRequest | Forbidden | NotFound + | Conflict | UnprocessableEntity | PrismaPostgresOpError; /** Create database Creates a new database in the specified project. */ @@ -7127,6 +9086,7 @@ export const postV1Databases: API.OperationMethod< BadRequest, Forbidden, NotFound, + Conflict, UnprocessableEntity, UnknownPrismaPostgresError, ], @@ -7247,7 +9207,10 @@ export const postV1EnvironmentVariables: API.OperationMethod< retry: Retry.Retry, })); -export type PostV1ProjectsError = UnprocessableEntity | PrismaPostgresOpError; +export type PostV1ProjectsError = + | Conflict + | UnprocessableEntity + | PrismaPostgresOpError; /** Create project with a postgres database Creates a new project with a postgres database. */ export const postV1Projects: API.OperationMethod< PostV1ProjectsRequest, @@ -7257,13 +9220,14 @@ export const postV1Projects: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: PostV1ProjectsRequest, output: PostV1ProjectsResponse, - errors: [UnprocessableEntity, UnknownPrismaPostgresError], + errors: [Conflict, UnprocessableEntity, UnknownPrismaPostgresError], protocol: PrismaPostgresProtocol, retry: Retry.Retry, })); export type PostV1ProjectsByIdTransferError = | NotFound + | Conflict | UnprocessableEntity | PrismaPostgresOpError; /** Transfer project Transfer the project with the given ID to the new owner's workspace */ @@ -7275,7 +9239,7 @@ export const postV1ProjectsByIdTransfer: API.OperationMethod< > = /*@__PURE__*/ API.make(() => ({ input: PostV1ProjectsByIdTransferRequest, output: PostV1ProjectsByIdTransferResponse, - errors: [NotFound, UnprocessableEntity, UnknownPrismaPostgresError], + errors: [NotFound, Conflict, UnprocessableEntity, UnknownPrismaPostgresError], protocol: PrismaPostgresProtocol, retry: Retry.Retry, })); @@ -7299,28 +9263,20 @@ export const postV1ProjectsByProjectIdBranches: API.OperationMethod< retry: Retry.Retry, })); -export type PostV1ProjectsByProjectIdComputeServicesError = - | Forbidden +export type PostV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseError = | NotFound | Conflict - | UnprocessableEntity | PrismaPostgresOpError; -/** Create compute service ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️ Creates a new compute service under the specified project. The service is placed in the given region (or the default region if omitted). Returns `409 Conflict` with the existing service's id, name, and branch if a service with the same name already exists on the resolved branch. */ -export const postV1ProjectsByProjectIdComputeServices: API.OperationMethod< - PostV1ProjectsByProjectIdComputeServicesRequest, - PostV1ProjectsByProjectIdComputeServicesResponse, - PostV1ProjectsByProjectIdComputeServicesError, +/** Acquire Alchemy deploy lease ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️ Acquires the deploy lease for a (branch, stack, stage). An expired lease is replaced atomically; a live lease fails fast with 409 naming the current holder — there is no queueing. Every Alchemy state operation requires a live deploy lease. */ +export const postV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLease: API.OperationMethod< + PostV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseRequest, + PostV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseResponse, + PostV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseError, PrismaPostgresOpContext > = /*@__PURE__*/ API.make(() => ({ - input: PostV1ProjectsByProjectIdComputeServicesRequest, - output: PostV1ProjectsByProjectIdComputeServicesResponse, - errors: [ - Forbidden, - NotFound, - Conflict, - UnprocessableEntity, - UnknownPrismaPostgresError, - ], + input: PostV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseRequest, + output: PostV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateLeaseResponse, + errors: [NotFound, Conflict, UnknownPrismaPostgresError], protocol: PrismaPostgresProtocol, retry: Retry.Retry, })); @@ -7329,6 +9285,7 @@ export type PostV1ProjectsByProjectIdDatabasesError = | BadRequest | Forbidden | NotFound + | Conflict | UnprocessableEntity | PrismaPostgresOpError; /** Create database Creates a new database for the given project. */ @@ -7344,6 +9301,7 @@ export const postV1ProjectsByProjectIdDatabases: API.OperationMethod< BadRequest, Forbidden, NotFound, + Conflict, UnprocessableEntity, UnknownPrismaPostgresError, ], @@ -7400,3 +9358,74 @@ export const postV1SourceRepositories: API.OperationMethod< protocol: PrismaPostgresProtocol, retry: Retry.Retry, })); + +export type PostV1WorkspacesByWorkspaceIdServiceTokensError = + | NotFound + | UnprocessableEntity + | PrismaPostgresOpError; +/** Create service token Creates a new service token for the given workspace. The `value` field is returned exactly once in this response and is never stored — copy it immediately. */ +export const postV1WorkspacesByWorkspaceIdServiceTokens: API.OperationMethod< + PostV1WorkspacesByWorkspaceIdServiceTokensRequest, + PostV1WorkspacesByWorkspaceIdServiceTokensResponse, + PostV1WorkspacesByWorkspaceIdServiceTokensError, + PrismaPostgresOpContext +> = /*@__PURE__*/ API.make(() => ({ + input: PostV1WorkspacesByWorkspaceIdServiceTokensRequest, + output: PostV1WorkspacesByWorkspaceIdServiceTokensResponse, + errors: [NotFound, UnprocessableEntity, UnknownPrismaPostgresError], + protocol: PrismaPostgresProtocol, + retry: Retry.Retry, +})); + +export type PutV1BuildsByBuildIdResourcesByResourceTypeByResourceIdError = + | NotFound + | PrismaPostgresOpError; +/** Report a resource a build acted on ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️ Records that the build created, acted on, or deleted a platform resource — the provenance a deploy run leaves behind. Idempotent: re-reporting the same resource updates the row rather than adding one, and never weakens the recorded action. The resource must belong to the caller's workspace, and must still be findable: a soft-deleted resource can be reported, but `project`, `database`, `service_key` and `config_variable` leave no row behind, so a build that deletes one must report it before deleting it. Reporting a deployment as `created` also attaches the deployment to the build and records the app it deployed into, both in the same transaction, because a deployment relates its build to that app whether or not the reporter says so. */ +export const putV1BuildsByBuildIdResourcesByResourceTypeByResourceId: API.OperationMethod< + PutV1BuildsByBuildIdResourcesByResourceTypeByResourceIdRequest, + PutV1BuildsByBuildIdResourcesByResourceTypeByResourceIdResponse, + PutV1BuildsByBuildIdResourcesByResourceTypeByResourceIdError, + PrismaPostgresOpContext +> = /*@__PURE__*/ API.make(() => ({ + input: PutV1BuildsByBuildIdResourcesByResourceTypeByResourceIdRequest, + output: PutV1BuildsByBuildIdResourcesByResourceTypeByResourceIdResponse, + errors: [NotFound, UnknownPrismaPostgresError], + protocol: PrismaPostgresProtocol, + retry: Retry.Retry, +})); + +export type PutV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageOutputError = + NotFound | Conflict | PrismaPostgresOpError; +/** Set Alchemy stack output ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️ Overwrites the stack output for the stage, encrypted at rest, and echoes the stored value. */ +export const putV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageOutput: API.OperationMethod< + PutV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageOutputRequest, + PutV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageOutputResponse, + PutV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageOutputError, + PrismaPostgresOpContext +> = /*@__PURE__*/ API.make(() => ({ + input: + PutV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageOutputRequest, + output: + PutV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageOutputResponse, + errors: [NotFound, Conflict, UnknownPrismaPostgresError], + protocol: PrismaPostgresProtocol, + retry: Retry.Retry, +})); + +export type PutV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqnError = + NotFound | Conflict | PrismaPostgresOpError; +/** Set Alchemy resource state ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️ Stores the resource state encrypted at rest and echoes the stored value. */ +export const putV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqn: API.OperationMethod< + PutV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqnRequest, + PutV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqnResponse, + PutV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqnError, + PrismaPostgresOpContext +> = /*@__PURE__*/ API.make(() => ({ + input: + PutV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqnRequest, + output: + PutV1ProjectsByProjectIdBranchesByBranchIdAlchemyStateStateStacksByStackStagesByStageResourcesByFqnResponse, + errors: [NotFound, Conflict, UnknownPrismaPostgresError], + protocol: PrismaPostgresProtocol, + retry: Retry.Retry, +}));