import * as API from "@distilled.cloud/core/api"; import * as S from "@distilled.cloud/core/schema-lite"; import type * as Redacted from "effect/Redacted"; import { type PrismaOpError, type PrismaOpContext } from "../protocol.ts"; export type { PrismaOpError, PrismaOpContext }; declare const BadRequest_base: S.TaggedErrorClass<"BadRequest", { readonly code: any; readonly message: any; }> & (new (...args: any[]) => { "@distilled.cloud/error/categories": { BadRequestError: true; }; }); export declare class BadRequest extends /*@__PURE__*/ BadRequest_base { } declare const Conflict_base: S.TaggedErrorClass<"Conflict", { readonly code: any; readonly message: any; }> & (new (...args: any[]) => { "@distilled.cloud/error/categories": { ConflictError: true; }; }); export declare class Conflict extends /*@__PURE__*/ Conflict_base { } declare const DomainDnsNotConfigured_base: S.TaggedErrorClass<"DomainDnsNotConfigured", { readonly message: any; }> & (new (...args: any[]) => { "@distilled.cloud/error/categories": { BadRequestError: true; }; }); /** The hostname's CNAME to the app's switchboard does not resolve yet. Publish it (or wait for it to propagate) and retry. */ export declare class DomainDnsNotConfigured extends /*@__PURE__*/ DomainDnsNotConfigured_base { } declare const DomainOwnershipRequired_base: S.TaggedErrorClass<"DomainOwnershipRequired", { readonly message: any; readonly body: any; }> & (new (...args: any[]) => { "@distilled.cloud/error/categories": { BadRequestError: true; }; }); /** The workspace has not proved it owns the domain. `body.error.verification` holds the TXT record (`type`, `name`, `value`, `ttl`) to publish before retrying. */ export declare class DomainOwnershipRequired extends /*@__PURE__*/ DomainOwnershipRequired_base { } declare const Forbidden_base: S.TaggedErrorClass<"Forbidden", { readonly code: any; readonly message: any; }> & (new (...args: any[]) => { "@distilled.cloud/error/categories": { AuthError: true; }; }); export declare class Forbidden extends /*@__PURE__*/ Forbidden_base { } declare const NotFound_base: S.TaggedErrorClass<"NotFound", { readonly code: any; readonly message: any; }> & (new (...args: any[]) => { "@distilled.cloud/error/categories": { BadRequestError: true; }; }); export declare class NotFound extends /*@__PURE__*/ NotFound_base { } declare const UnprocessableEntity_base: S.TaggedErrorClass<"UnprocessableEntity", { readonly code: any; readonly message: any; }> & (new (...args: any[]) => { "@distilled.cloud/error/categories": { BadRequestError: true; }; }); export declare class UnprocessableEntity extends /*@__PURE__*/ UnprocessableEntity_base { } export interface CreateAuthGithubActionsTokenRequest { /** 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 | undefined; } export interface CreateAuthGithubActionsTokenResponseData { /** 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 interface CreateAuthGithubActionsTokenResponse { data: CreateAuthGithubActionsTokenResponseData; } export interface CreateBucketRequest { /** ID of the project to create the bucket in */ projectId: string; /** Display name for the bucket. Generated if omitted. */ name?: string | undefined; /** ID of the branch to associate the bucket with. Mutually exclusive with branchGitName. */ branchId?: string | undefined; /** Git name of the branch to associate the bucket with. Mutually exclusive with branchId. */ branchGitName?: string | undefined; /** Declared identity of the resource, unique within its branch. Set by the tool that declares the resource. */ logicalId?: string | undefined; } export interface CreateBucketResponseDataProject { id: string; url: string; name: string; } export interface CreateBucketResponseData { id: string; type: string; url: string; name: string; providerName: string; status: string; createdAt: string; project: CreateBucketResponseDataProject; branchId: string | null; logicalId: string | null; } export interface CreateBucketResponse { data: CreateBucketResponseData; } /** Access role for the key: "read" or "read_write". */ export type CreateBucketKeyRequestRole = "read" | "read_write"; export interface CreateBucketKeyRequest { bucketId: string; /** Display name for the key. Generated if omitted. */ name?: string | undefined; /** Access role for the key: "read" or "read_write". */ role: CreateBucketKeyRequestRole | (string & {}); } export type CreateBucketKeyResponseDataRole = "read" | "read_write"; export interface CreateBucketKeyResponseData { id: string; type: string; name: string; valueHint: string; role: CreateBucketKeyResponseDataRole; createdAt: string; secretAccessKey: string | Redacted.Redacted; accessKeyId: string | Redacted.Redacted; endpoint: string; bucketName: string; } export interface CreateBucketKeyResponse { data: CreateBucketKeyResponseData; } /** `ci` for a build reported from a CI run, `cli` for a deploy run directly by a human or agent. */ export type CreateBuildRequestSource = "ci" | "cli"; /** 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 CreateBuildRequestRunIdentity { /** 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 interface CreateBuildRequest { /** `ci` for a build reported from a CI run, `cli` for a deploy run directly by a human or agent. */ source: CreateBuildRequestSource | (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?: CreateBuildRequestRunIdentity | undefined; /** Link to the run's logs in the reporter's own system. */ externalLogUrl?: string | undefined; /** Project the build targets, when it exists. A build may be reported before its project does. */ projectId?: string | undefined; branchId?: string | undefined; /** Content hash of the application topology this run deploys, as submitted to the application-topology endpoint. A value match, never a reference: equal hashes identify the same graph. */ applicationTopologyContentHash?: string | undefined; } export type CreateBuildResponseDataSource = "webhook" | "setup" | "manual" | "ci" | "cli"; export type CreateBuildResponseDataState = "pending" | "running" | "succeeded" | "failed" | "cancelled"; /** Null when nothing reported a phase; the platform never invents an observation it did not receive. */ export type CreateBuildResponseDataPhase = "queued" | "build" | "deploy"; export interface CreateBuildResponseData { id: string; source: CreateBuildResponseDataSource; state: CreateBuildResponseDataState; /** Null when nothing reported a phase; the platform never invents an observation it did not receive. */ phase: CreateBuildResponseDataPhase | 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; applicationTopologyContentHash: string | null; errorMessage: string | null; failingStep: string | null; createdAt: string; startedAt: string | null; finishedAt: string | null; } export interface CreateBuildResponse { data: CreateBuildResponseData; } export interface CreateConnectionRequest { databaseId: string; name: string; } export type CreateConnectionResponseDataKind = "postgres" | "accelerate"; export interface CreateConnectionResponseDataEndpointsDirect { host: string; port: number; connectionString: string | Redacted.Redacted; } export type CreateConnectionResponseDataEndpointsPooled = CreateConnectionResponseDataEndpointsDirect; export type CreateConnectionResponseDataEndpointsAccelerate = CreateConnectionResponseDataEndpointsDirect; export interface CreateConnectionResponseDataEndpoints { direct?: CreateConnectionResponseDataEndpointsDirect | undefined; pooled?: CreateConnectionResponseDataEndpointsDirect | undefined; accelerate?: CreateConnectionResponseDataEndpointsDirect | undefined; } /** Deprecated: use `endpoints.direct` instead. */ export interface CreateConnectionResponseDataDirectConnection { host: string; pass: string; user: string; } export type CreateConnectionResponseDataDatabase = CreateBucketResponseDataProject; export interface CreateConnectionResponseData { id: string; type: string; url: string; name: string; createdAt: string; kind: CreateConnectionResponseDataKind; endpoints: CreateConnectionResponseDataEndpoints; /** Deprecated: use `endpoints.direct.connectionString` or `endpoints.pooled.connectionString` instead. */ connectionString: string | Redacted.Redacted; /** Deprecated: use `endpoints.direct` instead. */ directConnection?: CreateConnectionResponseDataDirectConnection | null | undefined; database: CreateBucketResponseDataProject; /** Deprecated: use `endpoints.direct` instead. */ host: string | null; /** Deprecated: use `endpoints.direct.connectionString` or `endpoints.pooled.connectionString` instead. */ pass: string | null; /** Deprecated: use `endpoints.direct.connectionString` or `endpoints.pooled.connectionString` instead. */ user: string | null; } export interface CreateConnectionResponse { data: CreateConnectionResponseData; } export interface CreateConnectionRotateRequest { id: string; } export type CreateConnectionRotateResponseDataKind = "postgres" | "accelerate"; export type CreateConnectionRotateResponseDataEndpointsDirect = CreateConnectionResponseDataEndpointsDirect; export type CreateConnectionRotateResponseDataEndpointsPooled = CreateConnectionResponseDataEndpointsDirect; export type CreateConnectionRotateResponseDataEndpointsAccelerate = CreateConnectionResponseDataEndpointsDirect; export type CreateConnectionRotateResponseDataEndpoints = CreateConnectionResponseDataEndpoints; /** Deprecated: use `endpoints.direct` instead. */ export type CreateConnectionRotateResponseDataDirectConnection = CreateConnectionResponseDataDirectConnection; export type CreateConnectionRotateResponseDataDatabase = CreateBucketResponseDataProject; export interface CreateConnectionRotateResponseData { id: string; type: string; url: string; name: string; createdAt: string; kind: CreateConnectionRotateResponseDataKind; endpoints: CreateConnectionResponseDataEndpoints; /** Deprecated: use `endpoints.direct.connectionString` or `endpoints.pooled.connectionString` instead. */ connectionString: string | Redacted.Redacted; /** Deprecated: use `endpoints.direct` instead. */ directConnection?: CreateConnectionResponseDataDirectConnection | null | undefined; database: CreateBucketResponseDataProject; /** Deprecated: use `endpoints.direct` instead. */ host: string | null; /** Deprecated: use `endpoints.direct.connectionString` or `endpoints.pooled.connectionString` instead. */ pass: string | null; /** Deprecated: use `endpoints.direct.connectionString` or `endpoints.pooled.connectionString` instead. */ user: string | null; } export interface CreateConnectionRotateResponse { data: CreateConnectionRotateResponseData; } /** Use "inherit" to use the project's default region (falls back to the default database's region for projects without one). */ export type CreateDatabaseRequestRegion = "us-east-1" | "us-west-1" | "eu-west-3" | "eu-central-1" | "ap-northeast-1" | "ap-southeast-1" | "inherit"; export interface CreateDatabaseRequestSourceCase0 { type: string; } export interface CreateDatabaseRequestSourceCase1 { type: string; /** ID of the database the backup belongs to */ databaseId: string; /** ID of the backup to restore from */ backupId: string; } export interface CreateDatabaseRequestSourceCase2 { type: string; /** ID of the database to clone from */ databaseId: string; } /** Source to create the database from. Omit to create an empty database. */ export type CreateDatabaseRequestSource = CreateDatabaseRequestSourceCase0 | CreateDatabaseRequestSourceCase1 | CreateDatabaseRequestSourceCase2; export interface CreateDatabaseRequest { /** ID of the project to create the database in */ projectId: string; /** Use "inherit" to use the project's default region (falls back to the default database's region for projects without one). */ region?: CreateDatabaseRequestRegion | (string & {}) | undefined; /** Display name for the database */ name?: string | undefined; /** Whether this is the default database */ isDefault?: boolean | undefined; /** Source to create the database from. Omit to create an empty database. */ source?: CreateDatabaseRequestSource | undefined; /** ID of the Branch to attach the database to. Omit to attach the database to the project's default Branch. Every database belongs to a Branch, so null is rejected. */ branchId?: string | null | undefined; /** Git name of the Branch to attach the database to; the Branch is created when it does not exist. Mutually exclusive with branchId. Omit to attach to the project's default Branch. Every database belongs to a Branch, so null is rejected. */ branchGitName?: string | null | undefined; /** Declared identity of the resource, unique within its branch. Set by the tool that declares the resource. */ logicalId?: string | undefined; } export type CreateDatabaseResponseDataStatus = "failure" | "provisioning" | "ready" | "recovering"; export type CreateDatabaseResponseDataConnectionsItemKind = "postgres" | "accelerate"; export interface CreateDatabaseResponseDataConnectionsItemEndpointsDirect { host: string; port: number; connectionString?: string | Redacted.Redacted | undefined; } export type CreateDatabaseResponseDataConnectionsItemEndpointsPooled = CreateDatabaseResponseDataConnectionsItemEndpointsDirect; export type CreateDatabaseResponseDataConnectionsItemEndpointsAccelerate = CreateDatabaseResponseDataConnectionsItemEndpointsDirect; export interface CreateDatabaseResponseDataConnectionsItemEndpoints { direct?: CreateDatabaseResponseDataConnectionsItemEndpointsDirect | undefined; pooled?: CreateDatabaseResponseDataConnectionsItemEndpointsDirect | undefined; accelerate?: CreateDatabaseResponseDataConnectionsItemEndpointsDirect | undefined; } /** Deprecated: use `endpoints.direct` instead. */ export type CreateDatabaseResponseDataConnectionsItemDirectConnection = CreateConnectionResponseDataDirectConnection; export type CreateDatabaseResponseDataConnectionsItemDatabase = CreateBucketResponseDataProject; export interface CreateDatabaseResponseDataConnectionsItem { id: string; type: string; url: string; name: string; createdAt: string; kind: CreateDatabaseResponseDataConnectionsItemKind; endpoints: CreateDatabaseResponseDataConnectionsItemEndpoints; /** Deprecated: use `endpoints.direct` instead. */ directConnection?: CreateConnectionResponseDataDirectConnection | null | undefined; database: CreateBucketResponseDataProject; } export type CreateDatabaseResponseDataConnectionsList = Array; export type CreateDatabaseResponseDataProject = CreateBucketResponseDataProject; export interface CreateDatabaseResponseDataRegion { id: string; name: string; } export type CreateDatabaseResponseDataSourceCase0 = CreateDatabaseRequestSourceCase0; export interface CreateDatabaseResponseDataSourceCase1 { type: string; databaseId: string; /** ID of the backup to restore from */ backupId: string; } export interface CreateDatabaseResponseDataSourceCase2 { type: string; databaseId: string; } export type CreateDatabaseResponseDataSource = CreateDatabaseRequestSourceCase0 | CreateDatabaseResponseDataSourceCase1 | CreateDatabaseResponseDataSourceCase2; export interface CreateDatabaseResponseData { id: string; type: string; url: string; name: string; status: CreateDatabaseResponseDataStatus; createdAt: string; isDefault: boolean; defaultConnectionId: string | null; connections: CreateDatabaseResponseDataConnectionsList; project: CreateBucketResponseDataProject; region: CreateDatabaseResponseDataRegion | null; source: CreateDatabaseResponseDataSource | null; branchId: string | null; logicalId: string | null; } export interface CreateDatabaseResponse { data: CreateDatabaseResponseData; } export interface CreateDatabaseConnectionRequest { databaseId: string; name: string; } export type CreateDatabaseConnectionResponseDataKind = "postgres" | "accelerate"; export type CreateDatabaseConnectionResponseDataEndpointsDirect = CreateConnectionResponseDataEndpointsDirect; export type CreateDatabaseConnectionResponseDataEndpointsPooled = CreateConnectionResponseDataEndpointsDirect; export type CreateDatabaseConnectionResponseDataEndpointsAccelerate = CreateConnectionResponseDataEndpointsDirect; export type CreateDatabaseConnectionResponseDataEndpoints = CreateConnectionResponseDataEndpoints; /** Deprecated: use `endpoints.direct` instead. */ export type CreateDatabaseConnectionResponseDataDirectConnection = CreateConnectionResponseDataDirectConnection; export type CreateDatabaseConnectionResponseDataDatabase = CreateBucketResponseDataProject; export interface CreateDatabaseConnectionResponseData { id: string; type: string; url: string; name: string; createdAt: string; kind: CreateDatabaseConnectionResponseDataKind; endpoints: CreateConnectionResponseDataEndpoints; /** Deprecated: use `endpoints.direct.connectionString` or `endpoints.pooled.connectionString` instead. */ connectionString: string | Redacted.Redacted; /** Deprecated: use `endpoints.direct` instead. */ directConnection?: CreateConnectionResponseDataDirectConnection | null | undefined; database: CreateBucketResponseDataProject; /** Deprecated: use `endpoints.direct` instead. */ host: string | null; /** Deprecated: use `endpoints.direct.connectionString` or `endpoints.pooled.connectionString` instead. */ pass: string | null; /** Deprecated: use `endpoints.direct.connectionString` or `endpoints.pooled.connectionString` instead. */ user: string | null; } export interface CreateDatabaseConnectionResponse { data: CreateDatabaseConnectionResponseData; } export type CreateDatabaseRestoreRequestSource = CreateDatabaseRequestSourceCase1; export interface CreateDatabaseRestoreRequest { targetDatabaseId: string; source: CreateDatabaseRequestSourceCase1; } export type CreateDatabaseRestoreResponseDataStatus = "failure" | "provisioning" | "ready" | "recovering"; export type CreateDatabaseRestoreResponseDataConnectionsItemKind = "postgres" | "accelerate"; export interface CreateDatabaseRestoreResponseDataConnectionsItemEndpointsDirect { host: string; port: number; } export type CreateDatabaseRestoreResponseDataConnectionsItemEndpointsPooled = CreateDatabaseRestoreResponseDataConnectionsItemEndpointsDirect; export type CreateDatabaseRestoreResponseDataConnectionsItemEndpointsAccelerate = CreateDatabaseRestoreResponseDataConnectionsItemEndpointsDirect; export interface CreateDatabaseRestoreResponseDataConnectionsItemEndpoints { direct?: CreateDatabaseRestoreResponseDataConnectionsItemEndpointsDirect | undefined; pooled?: CreateDatabaseRestoreResponseDataConnectionsItemEndpointsDirect | undefined; accelerate?: CreateDatabaseRestoreResponseDataConnectionsItemEndpointsDirect | undefined; } /** Deprecated: use `endpoints.direct` instead. */ export type CreateDatabaseRestoreResponseDataConnectionsItemDirectConnection = CreateConnectionResponseDataDirectConnection; export type CreateDatabaseRestoreResponseDataConnectionsItemDatabase = CreateBucketResponseDataProject; export interface CreateDatabaseRestoreResponseDataConnectionsItem { id: string; type: string; url: string; name: string; createdAt: string; kind: CreateDatabaseRestoreResponseDataConnectionsItemKind; endpoints: CreateDatabaseRestoreResponseDataConnectionsItemEndpoints; /** Deprecated: use `endpoints.direct` instead. */ directConnection?: CreateConnectionResponseDataDirectConnection | null | undefined; database: CreateBucketResponseDataProject; } export type CreateDatabaseRestoreResponseDataConnectionsList = Array; export type CreateDatabaseRestoreResponseDataProject = CreateBucketResponseDataProject; export type CreateDatabaseRestoreResponseDataRegion = CreateDatabaseResponseDataRegion; export interface CreateDatabaseRestoreResponseDataSource { type: string; databaseId: string; backupId: string; } export interface CreateDatabaseRestoreResponseData { id: string; type: string; url: string; name: string; status: CreateDatabaseRestoreResponseDataStatus; createdAt: string; isDefault: boolean; defaultConnectionId: string | null; connections: CreateDatabaseRestoreResponseDataConnectionsList; project: CreateBucketResponseDataProject; region: CreateDatabaseResponseDataRegion | null; source: CreateDatabaseRestoreResponseDataSource; branchId: string | null; logicalId: string | null; } export interface CreateDatabaseRestoreResponse { data: CreateDatabaseRestoreResponseData; } export interface CreateDeploymentStartRequest { deploymentId: string; } export interface CreateDeploymentStartResponseData { previewDomain: string; } export interface CreateDeploymentStartResponse { data: CreateDeploymentStartResponseData; } export interface CreateDeploymentStopRequest { deploymentId: string; } export interface CreateDeploymentStopResponse { } export interface CreateDomainOwnershipVerifyRequest { domainOwnershipId: string; } export interface CreateDomainOwnershipVerifyResponseDataVerification { type: string; /** DNS record name to publish. */ name: string; /** DNS record value to publish. */ value: string; /** Suggested TTL in seconds. */ ttl: number; } /** `verified` when the last answer from DNS carried the workspace's value. `expiring` when a verified domain ownership's record was no longer found: hostnames already serving under it keep serving, and it does not let a new or changed hostname serve. Publishing the record makes it `verified` again. The first lookup at or after `expiresAt` that still finds no value makes it `unverified`. `unverified` otherwise, including when a lookup found another workspace's value and not this workspace's. A lookup that gets no answer changes no status. */ export type CreateDomainOwnershipVerifyResponseDataStatus = "unverified" | "verified" | "expiring"; export interface CreateDomainOwnershipVerifyResponseData { id: string; type: string; /** The workspace the domain ownership belongs to. */ workspaceId: string; domain: string; verification: CreateDomainOwnershipVerifyResponseDataVerification; /** `verified` when the last answer from DNS carried the workspace's value. `expiring` when a verified domain ownership's record was no longer found: hostnames already serving under it keep serving, and it does not let a new or changed hostname serve. Publishing the record makes it `verified` again. The first lookup at or after `expiresAt` that still finds no value makes it `unverified`. `unverified` otherwise, including when a lookup found another workspace's value and not this workspace's. A lookup that gets no answer changes no status. */ status: CreateDomainOwnershipVerifyResponseDataStatus; /** The deadline to publish the record, if the status is `expiring`. The status becomes `unverified` at the first lookup at or after this time that still finds no value, so it can stay `expiring` for a while after it. Null otherwise. */ expiresAt: string | null; /** When DNS last answered the lookup of the verification record. Null before the first answer, and after a lookup that got no answer while the domain ownership was not verified. A verified domain ownership keeps this answer when a lookup gets no answer. */ verificationRecordLastSeenAt: string | null; /** Whether that answer carried the workspace's value. Null when there is no answer. */ verificationRecordPresent: boolean | null; /** The error from the last sync of the verification record, such as `DNS unavailable`. Null when that sync succeeded. For display only. */ verificationRecordSyncError: string | null; createdAt: string; } export interface CreateDomainOwnershipVerifyResponse { data: CreateDomainOwnershipVerifyResponseData; } export interface CreateDomainRetryRequest { domainId: string; } export type CreateDomainRetryResponseDataStatus = "pending_dns" | "verifying" | "verified_routing_blocked" | "provisioning_tls" | "active" | "failed" | "removing"; export type CreateDomainRetryResponseDataFailureCategory = "dns" | "acme" | "storage" | "unknown"; export interface CreateDomainRetryResponseDataDnsRecordsItem { type: string; name: string; value: string; ttl: number | null; } export type CreateDomainRetryResponseDataDnsRecordsList = Array; export interface CreateDomainRetryResponseData { id: string; type: string; url: string; hostname: string; appId: string; /** Deprecated: use `appId` instead. */ computeServiceId: string; status: CreateDomainRetryResponseDataStatus; foundryStatus: string; failureReason: string | null; failureCategory: CreateDomainRetryResponseDataFailureCategory | null; certExpiresAt: string | null; createdAt: string; updatedAt: string; dnsRecords: CreateDomainRetryResponseDataDnsRecordsList; } export interface CreateDomainRetryResponse { data: CreateDomainRetryResponseData; } export type CreateEnvironmentVariableRequestClass = "production" | "preview"; export interface CreateEnvironmentVariableRequest { projectId: string; branchId?: string | undefined; class: CreateEnvironmentVariableRequestClass | (string & {}); key: string; value: string; } export type CreateEnvironmentVariableResponseDataClass = "production" | "preview"; export interface CreateEnvironmentVariableResponseData { id: string; type: string; url: string; projectId: string; branchId: string | null; class: CreateEnvironmentVariableResponseDataClass; key: string; valueKid: string; isManagedBySystem: boolean; createdAt: string; updatedAt: string; } export interface CreateEnvironmentVariableResponse { data: CreateEnvironmentVariableResponseData; } export type CreateProjectRequestRegion = "us-east-1" | "us-west-1" | "eu-west-3" | "eu-central-1" | "ap-northeast-1" | "ap-southeast-1"; export interface CreateProjectRequest { createDatabase?: boolean | undefined; name?: string | undefined; region?: CreateProjectRequestRegion | (string & {}) | undefined; logicalId?: string | undefined; workspaceId?: string | undefined; } export type CreateProjectResponseDataWorkspace = CreateBucketResponseDataProject; export type CreateProjectResponseDataDatabaseStatus = "provisioning" | "ready"; export type CreateProjectResponseDataDatabaseConnectionsItemKind = "postgres" | "accelerate"; export type CreateProjectResponseDataDatabaseConnectionsItemEndpointsDirect = CreateDatabaseResponseDataConnectionsItemEndpointsDirect; export type CreateProjectResponseDataDatabaseConnectionsItemEndpointsPooled = CreateDatabaseResponseDataConnectionsItemEndpointsDirect; export type CreateProjectResponseDataDatabaseConnectionsItemEndpointsAccelerate = CreateDatabaseResponseDataConnectionsItemEndpointsDirect; export type CreateProjectResponseDataDatabaseConnectionsItemEndpoints = CreateDatabaseResponseDataConnectionsItemEndpoints; /** Deprecated: use `endpoints.direct` instead. */ export type CreateProjectResponseDataDatabaseConnectionsItemDirectConnection = CreateConnectionResponseDataDirectConnection; export type CreateProjectResponseDataDatabaseConnectionsItemDatabase = CreateBucketResponseDataProject; export interface CreateProjectResponseDataDatabaseConnectionsItem { id: string; type: string; url: string; name: string; createdAt: string; kind: CreateProjectResponseDataDatabaseConnectionsItemKind; endpoints: CreateDatabaseResponseDataConnectionsItemEndpoints; /** Deprecated: use `endpoints.direct` instead. */ directConnection?: CreateConnectionResponseDataDirectConnection | null | undefined; database: CreateBucketResponseDataProject; } export type CreateProjectResponseDataDatabaseConnectionsList = Array; export type CreateProjectResponseDataDatabaseRegion = CreateDatabaseResponseDataRegion; export type CreateProjectResponseDataDatabaseSourceCase0 = CreateDatabaseRequestSourceCase0; export type CreateProjectResponseDataDatabaseSourceCase1 = CreateDatabaseResponseDataSourceCase1; export type CreateProjectResponseDataDatabaseSourceCase2 = CreateDatabaseResponseDataSourceCase2; export type CreateProjectResponseDataDatabaseSource = CreateDatabaseRequestSourceCase0 | CreateDatabaseResponseDataSourceCase1 | CreateDatabaseResponseDataSourceCase2; export type CreateProjectResponseDataDatabaseApiKeysItemKind = "postgres" | "accelerate"; export type CreateProjectResponseDataDatabaseApiKeysItemEndpointsDirect = CreateDatabaseRestoreResponseDataConnectionsItemEndpointsDirect; export type CreateProjectResponseDataDatabaseApiKeysItemEndpointsPooled = CreateDatabaseRestoreResponseDataConnectionsItemEndpointsDirect; export type CreateProjectResponseDataDatabaseApiKeysItemEndpointsAccelerate = CreateDatabaseRestoreResponseDataConnectionsItemEndpointsDirect; export type CreateProjectResponseDataDatabaseApiKeysItemEndpoints = CreateDatabaseRestoreResponseDataConnectionsItemEndpoints; /** Deprecated: use `endpoints.direct` instead. */ export type CreateProjectResponseDataDatabaseApiKeysItemDirectConnection = CreateConnectionResponseDataDirectConnection; export interface CreateProjectResponseDataDatabaseApiKeysItem { id: string; type: string; url: string; name: string; createdAt: string; kind: CreateProjectResponseDataDatabaseApiKeysItemKind; endpoints: CreateDatabaseRestoreResponseDataConnectionsItemEndpoints; /** Deprecated: use `endpoints.direct.connectionString` or `endpoints.pooled.connectionString` instead. */ connectionString: string | Redacted.Redacted; /** Deprecated: use `endpoints.direct` instead. */ directConnection?: CreateConnectionResponseDataDirectConnection | null | undefined; } /** Deprecated: use `connections[]` instead. */ export type CreateProjectResponseDataDatabaseApiKeysList = Array; /** Deprecated: use `connections[].endpoints.direct` instead. */ export type CreateProjectResponseDataDatabaseDirectConnection = CreateConnectionResponseDataDirectConnection; export interface CreateProjectResponseDataDatabase { id: string; type: string; url: string; name: string; status: CreateProjectResponseDataDatabaseStatus; createdAt: string; isDefault: boolean; defaultConnectionId: string | null; connections: CreateProjectResponseDataDatabaseConnectionsList; region: CreateDatabaseResponseDataRegion; source: CreateProjectResponseDataDatabaseSource | null; branchId: string | null; logicalId: string | null; /** Deprecated: use `connections[]` instead. */ apiKeys: CreateProjectResponseDataDatabaseApiKeysList; /** Deprecated: use `connections[].endpoints.direct.connectionString` or `connections[].endpoints.pooled.connectionString`. */ connectionString: string | Redacted.Redacted; /** Deprecated: use `connections[].endpoints.direct` instead. */ directConnection: CreateConnectionResponseDataDirectConnection | null; } export interface CreateProjectResponseData { id: string; type: string; url: string; name: string; logicalId: string | null; createdAt: string; defaultRegion: string | null; workspace: CreateBucketResponseDataProject; database: CreateProjectResponseDataDatabase | null; } export interface CreateProjectResponse { data: CreateProjectResponseData; } export interface CreateProjectBranchRequest { projectId: string; gitName: string; isDefault?: boolean | undefined; } export type CreateProjectBranchResponseDataRole = "production" | "preview"; /** 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 CreateProjectBranchResponseDataProject = CreateBucketResponseDataProject; export interface CreateProjectBranchResponseData { id: string; type: string; url: string; gitName: string; isDefault: boolean; role: CreateProjectBranchResponseDataRole; 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: CreateBucketResponseDataProject; } export interface CreateProjectBranchResponse { data: CreateProjectBranchResponseData; } export interface CreateProjectBranchAlchemyStateLeaseRequest { projectId: string; 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 | undefined; /** Free-form description of the acquiring deploy, echoed in the contention error so a blocked deploy can name who holds the lease. */ holderDescription?: string | undefined; } export interface CreateProjectBranchAlchemyStateLeaseResponseData { /** 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 interface CreateProjectBranchAlchemyStateLeaseResponse { data: CreateProjectBranchAlchemyStateLeaseResponseData; } /** Use "inherit" to use the project's default region (falls back to the default database's region for projects without one). */ export type CreateProjectDatabaseRequestRegion = "us-east-1" | "us-west-1" | "eu-west-3" | "eu-central-1" | "ap-northeast-1" | "ap-southeast-1" | "inherit"; /** Deprecated: use `source` instead. */ export interface CreateProjectDatabaseRequestFromDatabase { id: string; backupId?: string | undefined; } export type CreateProjectDatabaseRequestSourceCase0 = CreateDatabaseRequestSourceCase0; export type CreateProjectDatabaseRequestSourceCase1 = CreateDatabaseRequestSourceCase1; export type CreateProjectDatabaseRequestSourceCase2 = CreateDatabaseRequestSourceCase2; export type CreateProjectDatabaseRequestSource = CreateDatabaseRequestSourceCase0 | CreateDatabaseRequestSourceCase1 | CreateDatabaseRequestSourceCase2; export interface CreateProjectDatabaseRequest { projectId: string; /** Use "inherit" to use the project's default region (falls back to the default database's region for projects without one). */ region?: CreateProjectDatabaseRequestRegion | (string & {}) | undefined; name?: string | undefined; isDefault?: boolean | undefined; /** Deprecated: use `source` instead. */ fromDatabase?: CreateProjectDatabaseRequestFromDatabase | undefined; source?: CreateProjectDatabaseRequestSource | undefined; } export type CreateProjectDatabaseResponseDataStatus = "provisioning" | "ready"; export type CreateProjectDatabaseResponseDataConnectionsItemKind = "postgres" | "accelerate"; export type CreateProjectDatabaseResponseDataConnectionsItemEndpointsDirect = CreateDatabaseResponseDataConnectionsItemEndpointsDirect; export type CreateProjectDatabaseResponseDataConnectionsItemEndpointsPooled = CreateDatabaseResponseDataConnectionsItemEndpointsDirect; export type CreateProjectDatabaseResponseDataConnectionsItemEndpointsAccelerate = CreateDatabaseResponseDataConnectionsItemEndpointsDirect; export type CreateProjectDatabaseResponseDataConnectionsItemEndpoints = CreateDatabaseResponseDataConnectionsItemEndpoints; /** Deprecated: use `endpoints.direct` instead. */ export type CreateProjectDatabaseResponseDataConnectionsItemDirectConnection = CreateConnectionResponseDataDirectConnection; export type CreateProjectDatabaseResponseDataConnectionsItemDatabase = CreateBucketResponseDataProject; export interface CreateProjectDatabaseResponseDataConnectionsItem { id: string; type: string; url: string; name: string; createdAt: string; kind: CreateProjectDatabaseResponseDataConnectionsItemKind; endpoints: CreateDatabaseResponseDataConnectionsItemEndpoints; /** Deprecated: use `endpoints.direct` instead. */ directConnection?: CreateConnectionResponseDataDirectConnection | null | undefined; database: CreateBucketResponseDataProject; } export type CreateProjectDatabaseResponseDataConnectionsList = Array; export type CreateProjectDatabaseResponseDataProject = CreateBucketResponseDataProject; export type CreateProjectDatabaseResponseDataRegion = CreateDatabaseResponseDataRegion; export type CreateProjectDatabaseResponseDataSourceCase0 = CreateDatabaseRequestSourceCase0; export type CreateProjectDatabaseResponseDataSourceCase1 = CreateDatabaseResponseDataSourceCase1; export type CreateProjectDatabaseResponseDataSourceCase2 = CreateDatabaseResponseDataSourceCase2; export type CreateProjectDatabaseResponseDataSource = CreateDatabaseRequestSourceCase0 | CreateDatabaseResponseDataSourceCase1 | CreateDatabaseResponseDataSourceCase2; export type CreateProjectDatabaseResponseDataApiKeysItemKind = "postgres" | "accelerate"; export type CreateProjectDatabaseResponseDataApiKeysItemEndpointsDirect = CreateDatabaseRestoreResponseDataConnectionsItemEndpointsDirect; export type CreateProjectDatabaseResponseDataApiKeysItemEndpointsPooled = CreateDatabaseRestoreResponseDataConnectionsItemEndpointsDirect; export type CreateProjectDatabaseResponseDataApiKeysItemEndpointsAccelerate = CreateDatabaseRestoreResponseDataConnectionsItemEndpointsDirect; export type CreateProjectDatabaseResponseDataApiKeysItemEndpoints = CreateDatabaseRestoreResponseDataConnectionsItemEndpoints; /** Deprecated: use `endpoints.direct` instead. */ export type CreateProjectDatabaseResponseDataApiKeysItemDirectConnection = CreateConnectionResponseDataDirectConnection; export interface CreateProjectDatabaseResponseDataApiKeysItem { id: string; type: string; url: string; name: string; createdAt: string; kind: CreateProjectDatabaseResponseDataApiKeysItemKind; endpoints: CreateDatabaseRestoreResponseDataConnectionsItemEndpoints; /** Deprecated: use `endpoints.direct.connectionString` or `endpoints.pooled.connectionString` instead. */ connectionString: string | Redacted.Redacted; /** Deprecated: use `endpoints.direct` instead. */ directConnection?: CreateConnectionResponseDataDirectConnection | null | undefined; } /** Deprecated: use `connections[]` instead. */ export type CreateProjectDatabaseResponseDataApiKeysList = Array; /** Deprecated: use `connections[].endpoints.direct` instead. */ export type CreateProjectDatabaseResponseDataDirectConnection = CreateConnectionResponseDataDirectConnection; export interface CreateProjectDatabaseResponseData { id: string; type: string; url: string; name: string; status: CreateProjectDatabaseResponseDataStatus; createdAt: string; isDefault: boolean; defaultConnectionId: string | null; connections: CreateProjectDatabaseResponseDataConnectionsList; project: CreateBucketResponseDataProject; region: CreateDatabaseResponseDataRegion; source: CreateProjectDatabaseResponseDataSource | null; branchId: string | null; logicalId: string | null; /** Deprecated: use `connections[]` instead. */ apiKeys: CreateProjectDatabaseResponseDataApiKeysList; /** Deprecated: use `connections[].endpoints.direct.connectionString` or `connections[].endpoints.pooled.connectionString`. */ connectionString: string | Redacted.Redacted; /** Deprecated: use `connections[].endpoints.direct` instead. */ directConnection: CreateConnectionResponseDataDirectConnection | null; } export interface CreateProjectDatabaseResponse { data: CreateProjectDatabaseResponseData; } export interface CreateProjectTransferRequest { id: string; recipientAccessToken: string; } export interface CreateProjectTransferResponse { } export type CreateScmInstallationsInstallIntentRequestProvider = "github"; export interface CreateScmInstallationsInstallIntentRequest { provider: CreateScmInstallationsInstallIntentRequestProvider | (string & {}); workspaceId: string; repository?: string | undefined; } export type CreateScmInstallationsInstallIntentResponseDataProvider = "github"; export interface CreateScmInstallationsInstallIntentResponseData { type: string; provider: CreateScmInstallationsInstallIntentResponseDataProvider; workspaceId: string; installUrl: string; alreadyLinked?: boolean | undefined; accountLogin?: string | undefined; hint?: string | undefined; } export interface CreateScmInstallationsInstallIntentResponse { data: CreateScmInstallationsInstallIntentResponseData; } export type CreateServiceRequestRegionId = "us-east-1" | "us-west-1" | "eu-west-3" | "eu-central-1" | "ap-northeast-1" | "ap-southeast-1"; export interface CreateServiceRequest { displayName: string; regionId?: CreateServiceRequestRegionId | (string & {}) | undefined; branchId?: string | null | undefined; branchGitName?: string | null | undefined; projectId: string; /** Declared identity of the resource, unique within its branch. Set by the tool that declares the resource. */ logicalId?: string | undefined; } export type CreateServiceResponseDataRegion = CreateDatabaseResponseDataRegion; export interface CreateServiceResponseData { id: string; type: string; url: string; name: string; region: CreateDatabaseResponseDataRegion; projectId: string; branchId: string | null; latestDeploymentId: string | null; appEndpointDomain: string; createdAt: string; logicalId: string | null; } export interface CreateServiceResponse { data: CreateServiceResponseData; } export interface CreateServiceDeploymentRequestPortMapping { http?: number | null | undefined; } export interface CreateServiceDeploymentRequest { serviceId: string; portMapping?: CreateServiceDeploymentRequestPortMapping | undefined; skipCodeUpload?: boolean | undefined; } export interface CreateServiceDeploymentResponseData { id: string; type: string; url: string; foundryVersionId: string; uploadUrl: string | null; } export interface CreateServiceDeploymentResponse { data: CreateServiceDeploymentResponseData; } export interface CreateServiceDomainRequest { serviceId: string; hostname: string; } export type CreateServiceDomainResponseDataStatus = "pending_dns" | "verifying" | "verified_routing_blocked" | "provisioning_tls" | "active" | "failed" | "removing"; export type CreateServiceDomainResponseDataFailureCategory = "dns" | "acme" | "storage" | "unknown"; export type CreateServiceDomainResponseDataDnsRecordsItem = CreateDomainRetryResponseDataDnsRecordsItem; export type CreateServiceDomainResponseDataDnsRecordsList = Array; export interface CreateServiceDomainResponseData { id: string; type: string; url: string; hostname: string; appId: string; /** Deprecated: use `appId` instead. */ computeServiceId: string; status: CreateServiceDomainResponseDataStatus; foundryStatus: string; failureReason: string | null; failureCategory: CreateServiceDomainResponseDataFailureCategory | null; certExpiresAt: string | null; createdAt: string; updatedAt: string; dnsRecords: CreateServiceDomainResponseDataDnsRecordsList; } export interface CreateServiceDomainResponse { data: CreateServiceDomainResponseData; } export interface CreateServicePromoteRequest { serviceId: string; deploymentId?: string | undefined; /** Deprecated: use `deploymentId` instead. Ignored when `deploymentId` is also present. */ versionId?: string | undefined; } export interface CreateServicePromoteResponseData { appEndpointDomain: string; reassignedDomains: number; } export interface CreateServicePromoteResponse { data: CreateServicePromoteResponseData; } export interface CreateServiceRollbackRequest { serviceId: string; deploymentId?: string | undefined; /** Deprecated: use `deploymentId` instead. Ignored when `deploymentId` is also present. */ versionId?: string | undefined; } export type CreateServiceRollbackResponseData = CreateServicePromoteResponseData; export interface CreateServiceRollbackResponse { data: CreateServicePromoteResponseData; } export interface CreateServiceUrlRequest { serviceId: string; /** The hostname to serve, such as `shop.com`. Case and a trailing dot are ignored. Wildcards and IP addresses are refused. */ hostname: string; /** Declared identity of the resource, unique within its branch. Set by the tool that declares the resource. */ logicalId?: string | undefined; /** Whether to create a domain ownership for the exact hostname when no verified one covers it. Set it to `false` to create or change only the RoutingUrl, and create the domain ownership with `POST /v1/workspaces/{workspaceId}/domain-ownerships`. */ createDomainOwnership?: boolean | undefined; } /** `pending` until every condition is met, then `active`. An active RoutingUrl stays active when its service's live deployment changes. It goes back to `pending` when its hostname changes, its service is deleted, or no covering domain ownership keeps its ownership met. */ export type CreateServiceUrlResponseDataStatus = "pending" | "active"; export type CreateServiceUrlResponseDataConditionsOwnershipVerified = "met" | "unmet" | "unknown"; export type CreateServiceUrlResponseDataConditionsServicePresent = "met" | "unmet" | "unknown"; export type CreateServiceUrlResponseDataConditionsLiveDeployment = "met" | "unmet" | "unknown"; export type CreateServiceUrlResponseDataConditionsDnsPointsAtSwitchboard = "met" | "unmet" | "unknown"; export type CreateServiceUrlResponseDataConditionsCustomDomainBound = "met" | "unmet" | "unknown"; export type CreateServiceUrlResponseDataConditionsCertificateActive = "met" | "unmet" | "unknown"; /** What the hostname needs to serve, in the order a user meets them. `unknown` means DNS or Foundry has not answered yet. */ export interface CreateServiceUrlResponseDataConditions { ownershipVerified: CreateServiceUrlResponseDataConditionsOwnershipVerified; servicePresent: CreateServiceUrlResponseDataConditionsServicePresent; liveDeployment: CreateServiceUrlResponseDataConditionsLiveDeployment; dnsPointsAtSwitchboard: CreateServiceUrlResponseDataConditionsDnsPointsAtSwitchboard; customDomainBound: CreateServiceUrlResponseDataConditionsCustomDomainBound; certificateActive: CreateServiceUrlResponseDataConditionsCertificateActive; } export type CreateServiceUrlResponseDataFirstUnmetCondition = "ownershipVerified" | "servicePresent" | "liveDeployment" | "dnsPointsAtSwitchboard" | "customDomainBound" | "certificateActive"; /** Set while only an `expiring` domain ownership keeps this active RoutingUrl serving. The hostname stops serving after `expiresAt` unless the TXT record in `records` is published. */ export interface CreateServiceUrlResponseDataOwnershipExpiry { expiresAt: string; } export type CreateServiceUrlResponseDataRecordsItemCondition = "ownershipVerified" | "dnsPointsAtSwitchboard"; export type CreateServiceUrlResponseDataRecordsItemType = "TXT" | "CNAME"; export interface CreateServiceUrlResponseDataRecordsItem { condition: CreateServiceUrlResponseDataRecordsItemCondition; type: CreateServiceUrlResponseDataRecordsItemType; name: string; value: string; ttl: number; } /** The DNS records still to publish. The TXT record is listed while ownership is not met, and while only an `expiring` domain ownership keeps it met. */ export type CreateServiceUrlResponseDataRecordsList = Array; /** Set when another RoutingUrl holds the hostname. Its ids are shown only to a caller with access to its workspace; otherwise `message` is "held by another workspace". */ export interface CreateServiceUrlResponseDataHeldBy { workspaceId: string | null; projectId: string | null; serviceId: string | null; message: string | null; } /** Foundry's status of the custom domain. Null when Foundry's last answer is unknown. */ export type CreateServiceUrlResponseDataCustomDomainStatus = "pending" | "provisioning" | "active" | "failed"; /** The Foundry custom domain the RoutingUrl holds, if any. */ export interface CreateServiceUrlResponseDataCustomDomain { id: string; /** Foundry's status of the custom domain. Null when Foundry's last answer is unknown. */ status: CreateServiceUrlResponseDataCustomDomainStatus | null; failureReason: string | null; certExpiresAt: string | null; lastSeenAt: string | null; certificateRetryRequestedAt: string | null; /** True when the certificate is still provisioning after the custom domain was registered again. */ certificateIssuanceStuck: boolean; } /** Foundry's last answer about the hostname's DNS. Null before Foundry has answered. */ export interface CreateServiceUrlResponseDataSwitchboardDns { accepted: boolean; detail: string | null; lastSeenAt: string; } export interface CreateServiceUrlResponseData { id: string; type: string; branchId: string; /** Null once the service is deleted. */ serviceId: string | null; hostname: string; logicalId: string | null; /** `pending` until every condition is met, then `active`. An active RoutingUrl stays active when its service's live deployment changes. It goes back to `pending` when its hostname changes, its service is deleted, or no covering domain ownership keeps its ownership met. */ status: CreateServiceUrlResponseDataStatus; /** What the hostname needs to serve, in the order a user meets them. `unknown` means DNS or Foundry has not answered yet. */ conditions: CreateServiceUrlResponseDataConditions; firstUnmetCondition: CreateServiceUrlResponseDataFirstUnmetCondition | null; /** Set while only an `expiring` domain ownership keeps this active RoutingUrl serving. The hostname stops serving after `expiresAt` unless the TXT record in `records` is published. */ ownershipExpiry: CreateServiceUrlResponseDataOwnershipExpiry | null; /** The DNS records still to publish. The TXT record is listed while ownership is not met, and while only an `expiring` domain ownership keeps it met. */ records: CreateServiceUrlResponseDataRecordsList; /** Set when another RoutingUrl holds the hostname. Its ids are shown only to a caller with access to its workspace; otherwise `message` is "held by another workspace". */ heldBy: CreateServiceUrlResponseDataHeldBy | null; /** The Foundry custom domain the RoutingUrl holds, if any. */ customDomain: CreateServiceUrlResponseDataCustomDomain | null; /** The error from the last sync with Foundry, also when it left the RoutingUrl without a custom domain. Null when that sync succeeded. */ customDomainSyncError: string | null; /** Foundry's last answer about the hostname's DNS. Null before Foundry has answered. */ switchboardDns: CreateServiceUrlResponseDataSwitchboardDns | null; /** The Console page that shows what to do next, while the RoutingUrl is pending and has a service. */ setupUrl: string | null; createdAt: string; updatedAt: string; } export interface CreateServiceUrlResponse { data: CreateServiceUrlResponseData; } export interface CreateSourceRepositoryRequest { projectId: string; provider: string; providerRepositoryId: number; /** Optional SCM installation ID to use for linking. When omitted, the API auto-picks the workspace's installation. */ installationId?: string | undefined; } export type CreateSourceRepositoryResponseDataProvider = "github"; export type CreateSourceRepositoryResponseDataStatus = "active" | "archived"; export interface CreateSourceRepositoryResponseData { id: string; type: string; url: string; repoId: number; provider: CreateSourceRepositoryResponseDataProvider; repoFullName: string; defaultBranch: string; isPrivate: boolean; status: CreateSourceRepositoryResponseDataStatus; projectId: string; installationId: string; createdAt: string; updatedAt: string; } export interface CreateSourceRepositoryResponse { data: CreateSourceRepositoryResponseData; hint?: string | undefined; } export interface CreateUrlCheckRequest { id: string; } /** `pending` until every condition is met, then `active`. An active RoutingUrl stays active when its service's live deployment changes. It goes back to `pending` when its hostname changes, its service is deleted, or no covering domain ownership keeps its ownership met. */ export type CreateUrlCheckResponseDataStatus = "pending" | "active"; export type CreateUrlCheckResponseDataConditionsOwnershipVerified = "met" | "unmet" | "unknown"; export type CreateUrlCheckResponseDataConditionsServicePresent = "met" | "unmet" | "unknown"; export type CreateUrlCheckResponseDataConditionsLiveDeployment = "met" | "unmet" | "unknown"; export type CreateUrlCheckResponseDataConditionsDnsPointsAtSwitchboard = "met" | "unmet" | "unknown"; export type CreateUrlCheckResponseDataConditionsCustomDomainBound = "met" | "unmet" | "unknown"; export type CreateUrlCheckResponseDataConditionsCertificateActive = "met" | "unmet" | "unknown"; /** What the hostname needs to serve, in the order a user meets them. `unknown` means DNS or Foundry has not answered yet. */ export interface CreateUrlCheckResponseDataConditions { ownershipVerified: CreateUrlCheckResponseDataConditionsOwnershipVerified; servicePresent: CreateUrlCheckResponseDataConditionsServicePresent; liveDeployment: CreateUrlCheckResponseDataConditionsLiveDeployment; dnsPointsAtSwitchboard: CreateUrlCheckResponseDataConditionsDnsPointsAtSwitchboard; customDomainBound: CreateUrlCheckResponseDataConditionsCustomDomainBound; certificateActive: CreateUrlCheckResponseDataConditionsCertificateActive; } export type CreateUrlCheckResponseDataFirstUnmetCondition = "ownershipVerified" | "servicePresent" | "liveDeployment" | "dnsPointsAtSwitchboard" | "customDomainBound" | "certificateActive"; /** Set while only an `expiring` domain ownership keeps this active RoutingUrl serving. The hostname stops serving after `expiresAt` unless the TXT record in `records` is published. */ export type CreateUrlCheckResponseDataOwnershipExpiry = CreateServiceUrlResponseDataOwnershipExpiry; export type CreateUrlCheckResponseDataRecordsItemCondition = "ownershipVerified" | "dnsPointsAtSwitchboard"; export type CreateUrlCheckResponseDataRecordsItemType = "TXT" | "CNAME"; export interface CreateUrlCheckResponseDataRecordsItem { condition: CreateUrlCheckResponseDataRecordsItemCondition; type: CreateUrlCheckResponseDataRecordsItemType; name: string; value: string; ttl: number; } /** The DNS records still to publish. The TXT record is listed while ownership is not met, and while only an `expiring` domain ownership keeps it met. */ export type CreateUrlCheckResponseDataRecordsList = Array; /** Set when another RoutingUrl holds the hostname. Its ids are shown only to a caller with access to its workspace; otherwise `message` is "held by another workspace". */ export type CreateUrlCheckResponseDataHeldBy = CreateServiceUrlResponseDataHeldBy; /** Foundry's status of the custom domain. Null when Foundry's last answer is unknown. */ export type CreateUrlCheckResponseDataCustomDomainStatus = "pending" | "provisioning" | "active" | "failed"; /** The Foundry custom domain the RoutingUrl holds, if any. */ export interface CreateUrlCheckResponseDataCustomDomain { id: string; /** Foundry's status of the custom domain. Null when Foundry's last answer is unknown. */ status: CreateUrlCheckResponseDataCustomDomainStatus | null; failureReason: string | null; certExpiresAt: string | null; lastSeenAt: string | null; certificateRetryRequestedAt: string | null; /** True when the certificate is still provisioning after the custom domain was registered again. */ certificateIssuanceStuck: boolean; } /** Foundry's last answer about the hostname's DNS. Null before Foundry has answered. */ export type CreateUrlCheckResponseDataSwitchboardDns = CreateServiceUrlResponseDataSwitchboardDns; export interface CreateUrlCheckResponseData { id: string; type: string; branchId: string; /** Null once the service is deleted. */ serviceId: string | null; hostname: string; logicalId: string | null; /** `pending` until every condition is met, then `active`. An active RoutingUrl stays active when its service's live deployment changes. It goes back to `pending` when its hostname changes, its service is deleted, or no covering domain ownership keeps its ownership met. */ status: CreateUrlCheckResponseDataStatus; /** What the hostname needs to serve, in the order a user meets them. `unknown` means DNS or Foundry has not answered yet. */ conditions: CreateUrlCheckResponseDataConditions; firstUnmetCondition: CreateUrlCheckResponseDataFirstUnmetCondition | null; /** Set while only an `expiring` domain ownership keeps this active RoutingUrl serving. The hostname stops serving after `expiresAt` unless the TXT record in `records` is published. */ ownershipExpiry: CreateServiceUrlResponseDataOwnershipExpiry | null; /** The DNS records still to publish. The TXT record is listed while ownership is not met, and while only an `expiring` domain ownership keeps it met. */ records: CreateUrlCheckResponseDataRecordsList; /** Set when another RoutingUrl holds the hostname. Its ids are shown only to a caller with access to its workspace; otherwise `message` is "held by another workspace". */ heldBy: CreateServiceUrlResponseDataHeldBy | null; /** The Foundry custom domain the RoutingUrl holds, if any. */ customDomain: CreateUrlCheckResponseDataCustomDomain | null; /** The error from the last sync with Foundry, also when it left the RoutingUrl without a custom domain. Null when that sync succeeded. */ customDomainSyncError: string | null; /** Foundry's last answer about the hostname's DNS. Null before Foundry has answered. */ switchboardDns: CreateServiceUrlResponseDataSwitchboardDns | null; /** The Console page that shows what to do next, while the RoutingUrl is pending and has a service. */ setupUrl: string | null; createdAt: string; updatedAt: string; } export interface CreateUrlCheckResponse { data: CreateUrlCheckResponseData; } export interface CreateWorkspaceRequest { displayName?: string | undefined; } export interface CreateWorkspaceResponseData { id: string; type: string; url: string; name: string; createdAt: string; } export interface CreateWorkspaceResponse { data: CreateWorkspaceResponseData; } export interface CreateWorkspaceDomainOwnershipRequest { workspaceId: string; /** An exact hostname such as `shop.example.com`, or a wildcard such as `*.example.com`. */ domain: string; } export type CreateWorkspaceDomainOwnershipResponseDataVerification = CreateDomainOwnershipVerifyResponseDataVerification; /** `verified` when the last answer from DNS carried the workspace's value. `expiring` when a verified domain ownership's record was no longer found: hostnames already serving under it keep serving, and it does not let a new or changed hostname serve. Publishing the record makes it `verified` again. The first lookup at or after `expiresAt` that still finds no value makes it `unverified`. `unverified` otherwise, including when a lookup found another workspace's value and not this workspace's. A lookup that gets no answer changes no status. */ export type CreateWorkspaceDomainOwnershipResponseDataStatus = "unverified" | "verified" | "expiring"; export interface CreateWorkspaceDomainOwnershipResponseData { id: string; type: string; /** The workspace the domain ownership belongs to. */ workspaceId: string; domain: string; verification: CreateDomainOwnershipVerifyResponseDataVerification; /** `verified` when the last answer from DNS carried the workspace's value. `expiring` when a verified domain ownership's record was no longer found: hostnames already serving under it keep serving, and it does not let a new or changed hostname serve. Publishing the record makes it `verified` again. The first lookup at or after `expiresAt` that still finds no value makes it `unverified`. `unverified` otherwise, including when a lookup found another workspace's value and not this workspace's. A lookup that gets no answer changes no status. */ status: CreateWorkspaceDomainOwnershipResponseDataStatus; /** The deadline to publish the record, if the status is `expiring`. The status becomes `unverified` at the first lookup at or after this time that still finds no value, so it can stay `expiring` for a while after it. Null otherwise. */ expiresAt: string | null; /** When DNS last answered the lookup of the verification record. Null before the first answer, and after a lookup that got no answer while the domain ownership was not verified. A verified domain ownership keeps this answer when a lookup gets no answer. */ verificationRecordLastSeenAt: string | null; /** Whether that answer carried the workspace's value. Null when there is no answer. */ verificationRecordPresent: boolean | null; /** The error from the last sync of the verification record, such as `DNS unavailable`. Null when that sync succeeded. For display only. */ verificationRecordSyncError: string | null; createdAt: string; } export interface CreateWorkspaceDomainOwnershipResponse { data: CreateWorkspaceDomainOwnershipResponseData; } export interface CreateWorkspaceServiceTokenRequest { workspaceId: string; /** Access only this project. Omit or pass null for Full Workspace access. */ projectId?: string | null | undefined; /** Expiry in the future. Defaults to 90 days; null opts out of expiry. */ expiresAt?: string | null | undefined; /** Display name for the service token. */ name: string; } export type CreateWorkspaceServiceTokenResponseDataScope = "workspace" | "project"; export interface CreateWorkspaceServiceTokenResponseData { id: string; type: string; name: string; scope: CreateWorkspaceServiceTokenResponseDataScope; projectId: string | null; valueHint: string; createdAt: string; expiresAt?: string | null | undefined; value: string; } export interface CreateWorkspaceServiceTokenResponse { data: CreateWorkspaceServiceTokenResponseData; } export interface DeleteBranchRequest { branchId: string; } export interface DeleteBranchResponse { } export interface DeleteBucketRequest { bucketId: string; } export interface DeleteBucketResponse { } export interface DeleteBucketKeyRequest { bucketId: string; keyId: string; } export interface DeleteBucketKeyResponse { } export interface DeleteConnectionRequest { id: string; } export interface DeleteConnectionResponse { } export interface DeleteDatabaseRequest { databaseId: string; } export interface DeleteDatabaseResponse { } export interface DeleteDeploymentRequest { deploymentId: string; } export interface DeleteDeploymentResponse { } export interface DeleteDomainRequest { domainId: string; } export interface DeleteDomainResponse { } export interface DeleteDomainOwnershipRequest { domainOwnershipId: string; } export interface DeleteDomainOwnershipResponse { } export interface DeleteEnvironmentVariableRequest { envVarId: string; } export interface DeleteEnvironmentVariableResponse { } export interface DeleteIntegrationRequest { id: string; } export interface DeleteIntegrationResponse { } export interface DeleteProjectRequest { id: string; } export interface DeleteProjectResponse { } export interface DeleteProjectBranchAlchemyStateLeaseRequest { projectId: string; branchId: string; } export interface DeleteProjectBranchAlchemyStateLeaseResponse { } export interface DeleteProjectBranchAlchemyStateStateStackRequest { projectId: string; branchId: string; stack: string; stage?: string | undefined; } export interface DeleteProjectBranchAlchemyStateStateStackResponse { } export interface DeleteProjectBranchAlchemyStateStateStackStageResourceRequest { projectId: string; branchId: string; stack: string; stage: string; fqn: string; } export interface DeleteProjectBranchAlchemyStateStateStackStageResourceResponse { } export interface DeleteServiceRequest { serviceId: string; } export interface DeleteServiceResponse { } export interface DeleteSourceRepositoryRequest { id: string; } export interface DeleteSourceRepositoryResponse { } export interface DeleteUrlRequest { id: string; } export interface DeleteUrlResponse { } export interface DeleteWorkspaceIntegrationRequest { workspaceId: string; clientId: string; } export interface DeleteWorkspaceIntegrationResponse { } export interface DeleteWorkspaceServiceTokenRequest { workspaceId: string; serviceTokenId: string; } export interface DeleteWorkspaceServiceTokenResponse { } export interface GetAgentApprovalRequest { approvalId: string; } export type GetAgentApprovalResponseStatus = "pending" | "approved" | "approved_window" | "denied" | "expired" | "consumed"; export interface GetAgentApprovalResponse { id: string; status: GetAgentApprovalResponseStatus; expiresAt: string; windowExpiresAt: string | null; decidedAt: string | null; hint?: string | undefined; } export interface GetBranchRequest { branchId: string; } export type GetBranchResponseDataRole = "production" | "preview"; /** 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 GetBranchResponseDataProject = CreateBucketResponseDataProject; export interface GetBranchResponseData { id: string; type: string; url: string; gitName: string; isDefault: boolean; role: GetBranchResponseDataRole; 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: CreateBucketResponseDataProject; } export interface GetBranchResponse { data: GetBranchResponseData; } export interface GetBucketRequest { bucketId: string; } export type GetBucketResponseDataProject = CreateBucketResponseDataProject; export type GetBucketResponseData = CreateBucketResponseData; export interface GetBucketResponse { data: CreateBucketResponseData; } export interface GetBucketKeysRequest { bucketId: string; /** Cursor for pagination */ cursor?: string | undefined; /** Page size, 1-100 */ limit?: number | undefined; } export type GetBucketKeysResponseDataItemRole = "read" | "read_write"; export interface GetBucketKeysResponseDataItem { id: string; type: string; name: string; valueHint: string; role: GetBucketKeysResponseDataItemRole; createdAt: string; } export type GetBucketKeysResponseDataList = Array; export interface GetBucketKeysResponsePagination { /** Next cursor to continue pagination */ nextCursor: string | null; /** Whether there are more items to paginate */ hasMore: boolean; } export interface GetBucketKeysResponse { data: GetBucketKeysResponseDataList; pagination: GetBucketKeysResponsePagination; } export interface GetBucketsRequest { /** Cursor for pagination */ cursor?: string | undefined; /** Page size, 1-100 */ limit?: number | undefined; /** Filter buckets by project ID */ projectId?: string | undefined; /** Declared identity of the resource, unique within its branch. Set by the tool that declares the resource. */ logicalId?: string | undefined; branchId?: string | undefined; branchGitName?: string | undefined; } export type GetBucketsResponseDataItemProject = CreateBucketResponseDataProject; export type GetBucketsResponseDataItem = CreateBucketResponseData; export type GetBucketsResponseDataList = Array; export type GetBucketsResponsePagination = GetBucketKeysResponsePagination; export interface GetBucketsResponse { data: GetBucketsResponseDataList; pagination: GetBucketKeysResponsePagination; } export interface GetBuildRequest { buildId: string; } export type GetBuildResponseDataSource = "webhook" | "setup" | "manual" | "ci" | "cli"; export type GetBuildResponseDataState = "pending" | "running" | "succeeded" | "failed" | "cancelled"; /** Null when nothing reported a phase; the platform never invents an observation it did not receive. */ export type GetBuildResponseDataPhase = "queued" | "build" | "deploy"; export type GetBuildResponseDataResourcesItemResourceType = "project" | "branch" | "database" | "app" | "deployment" | "bucket" | "service_key" | "config_variable"; export type GetBuildResponseDataResourcesItemAction = "created" | "acted_on" | "deleted"; export interface GetBuildResponseDataResourcesItem { resourceType: GetBuildResponseDataResourcesItemResourceType; /** Prefixed id of the reported resource. */ resourceId: string; action: GetBuildResponseDataResourcesItemAction; createdAt: string; } export type GetBuildResponseDataResourcesList = Array; export interface GetBuildResponseData { id: string; source: GetBuildResponseDataSource; state: GetBuildResponseDataState; /** Null when nothing reported a phase; the platform never invents an observation it did not receive. */ phase: GetBuildResponseDataPhase | 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; applicationTopologyContentHash: string | null; errorMessage: string | null; failingStep: string | null; createdAt: string; startedAt: string | null; finishedAt: string | null; resources: GetBuildResponseDataResourcesList; } export interface GetBuildResponse { data: GetBuildResponseData; } export type GetBuildsRequestState = "pending" | "running" | "succeeded" | "failed" | "cancelled"; export interface GetBuildsRequest { /** Cursor for pagination */ cursor?: string | undefined; /** Limit for pagination */ limit?: number | undefined; projectId?: string | undefined; branchId?: string | undefined; state?: GetBuildsRequestState | (string & {}) | undefined; } export type GetBuildsResponseDataItemSource = "webhook" | "setup" | "manual" | "ci" | "cli"; export type GetBuildsResponseDataItemState = "pending" | "running" | "succeeded" | "failed" | "cancelled"; /** Null when nothing reported a phase; the platform never invents an observation it did not receive. */ export type GetBuildsResponseDataItemPhase = "queued" | "build" | "deploy"; export interface GetBuildsResponseDataItem { id: string; source: GetBuildsResponseDataItemSource; state: GetBuildsResponseDataItemState; /** Null when nothing reported a phase; the platform never invents an observation it did not receive. */ phase: GetBuildsResponseDataItemPhase | 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; applicationTopologyContentHash: string | null; errorMessage: string | null; failingStep: string | null; createdAt: string; startedAt: string | null; finishedAt: string | null; } export type GetBuildsResponseDataList = Array; export type GetBuildsResponsePagination = GetBucketKeysResponsePagination; export interface GetBuildsResponse { data: GetBuildsResponseDataList; pagination: GetBucketKeysResponsePagination; } export interface GetConnectionRequest { id: string; } export type GetConnectionResponseDataKind = "postgres" | "accelerate"; export type GetConnectionResponseDataEndpointsDirect = CreateDatabaseRestoreResponseDataConnectionsItemEndpointsDirect; export type GetConnectionResponseDataEndpointsPooled = CreateDatabaseRestoreResponseDataConnectionsItemEndpointsDirect; export type GetConnectionResponseDataEndpointsAccelerate = CreateDatabaseRestoreResponseDataConnectionsItemEndpointsDirect; export type GetConnectionResponseDataEndpoints = CreateDatabaseRestoreResponseDataConnectionsItemEndpoints; /** Deprecated: use `endpoints.direct` instead. */ export type GetConnectionResponseDataDirectConnection = CreateConnectionResponseDataDirectConnection; export type GetConnectionResponseDataDatabase = CreateBucketResponseDataProject; export interface GetConnectionResponseData { id: string; type: string; url: string; name: string; createdAt: string; kind: GetConnectionResponseDataKind; endpoints: CreateDatabaseRestoreResponseDataConnectionsItemEndpoints; /** Deprecated: use `endpoints.direct` instead. */ directConnection?: CreateConnectionResponseDataDirectConnection | null | undefined; database: CreateBucketResponseDataProject; } export interface GetConnectionResponse { data: GetConnectionResponseData; } export interface GetConnectionsRequest { /** Cursor for pagination */ cursor?: string | undefined; /** Limit for pagination */ limit?: number | undefined; databaseId?: string | undefined; } export type GetConnectionsResponseDataItemKind = "postgres" | "accelerate"; export type GetConnectionsResponseDataItemEndpointsDirect = CreateDatabaseRestoreResponseDataConnectionsItemEndpointsDirect; export type GetConnectionsResponseDataItemEndpointsPooled = CreateDatabaseRestoreResponseDataConnectionsItemEndpointsDirect; export type GetConnectionsResponseDataItemEndpointsAccelerate = CreateDatabaseRestoreResponseDataConnectionsItemEndpointsDirect; export type GetConnectionsResponseDataItemEndpoints = CreateDatabaseRestoreResponseDataConnectionsItemEndpoints; /** Deprecated: use `endpoints.direct` instead. */ export type GetConnectionsResponseDataItemDirectConnection = CreateConnectionResponseDataDirectConnection; export type GetConnectionsResponseDataItemDatabase = CreateBucketResponseDataProject; export interface GetConnectionsResponseDataItem { id: string; type: string; url: string; name: string; createdAt: string; kind: GetConnectionsResponseDataItemKind; endpoints: CreateDatabaseRestoreResponseDataConnectionsItemEndpoints; /** Deprecated: use `endpoints.direct` instead. */ directConnection?: CreateConnectionResponseDataDirectConnection | null | undefined; database: CreateBucketResponseDataProject; } export type GetConnectionsResponseDataList = Array; export type GetConnectionsResponsePagination = GetBucketKeysResponsePagination; export interface GetConnectionsResponse { data: GetConnectionsResponseDataList; pagination: GetBucketKeysResponsePagination; } export interface GetDatabaseRequest { databaseId: string; } export type GetDatabaseResponseDataStatus = "failure" | "provisioning" | "ready" | "recovering"; export type GetDatabaseResponseDataConnectionsItemKind = "postgres" | "accelerate"; export type GetDatabaseResponseDataConnectionsItemEndpointsDirect = CreateDatabaseRestoreResponseDataConnectionsItemEndpointsDirect; export type GetDatabaseResponseDataConnectionsItemEndpointsPooled = CreateDatabaseRestoreResponseDataConnectionsItemEndpointsDirect; export type GetDatabaseResponseDataConnectionsItemEndpointsAccelerate = CreateDatabaseRestoreResponseDataConnectionsItemEndpointsDirect; export type GetDatabaseResponseDataConnectionsItemEndpoints = CreateDatabaseRestoreResponseDataConnectionsItemEndpoints; /** Deprecated: use `endpoints.direct` instead. */ export type GetDatabaseResponseDataConnectionsItemDirectConnection = CreateConnectionResponseDataDirectConnection; export type GetDatabaseResponseDataConnectionsItemDatabase = CreateBucketResponseDataProject; export interface GetDatabaseResponseDataConnectionsItem { id: string; type: string; url: string; name: string; createdAt: string; kind: GetDatabaseResponseDataConnectionsItemKind; endpoints: CreateDatabaseRestoreResponseDataConnectionsItemEndpoints; /** Deprecated: use `endpoints.direct` instead. */ directConnection?: CreateConnectionResponseDataDirectConnection | null | undefined; database: CreateBucketResponseDataProject; } export type GetDatabaseResponseDataConnectionsList = Array; export type GetDatabaseResponseDataProject = CreateBucketResponseDataProject; export type GetDatabaseResponseDataRegion = CreateDatabaseResponseDataRegion; export type GetDatabaseResponseDataSourceCase0 = CreateDatabaseRequestSourceCase0; export type GetDatabaseResponseDataSourceCase1 = CreateDatabaseResponseDataSourceCase1; export type GetDatabaseResponseDataSourceCase2 = CreateDatabaseResponseDataSourceCase2; export type GetDatabaseResponseDataSource = CreateDatabaseRequestSourceCase0 | CreateDatabaseResponseDataSourceCase1 | CreateDatabaseResponseDataSourceCase2; export interface GetDatabaseResponseData { id: string; type: string; url: string; name: string; status: GetDatabaseResponseDataStatus; createdAt: string; isDefault: boolean; defaultConnectionId: string | null; connections: GetDatabaseResponseDataConnectionsList; project: CreateBucketResponseDataProject; region: CreateDatabaseResponseDataRegion | null; source: GetDatabaseResponseDataSource | null; branchId: string | null; logicalId: string | null; } export interface GetDatabaseResponse { data: GetDatabaseResponseData; } export interface GetDatabaseBackupsRequest { databaseId: string; limit?: number | undefined; } export type GetDatabaseBackupsResponseDataItemBackupType = "full" | "incremental" | "differential"; export type GetDatabaseBackupsResponseDataItemStatus = "running" | "completed" | "failed" | "unknown"; export interface GetDatabaseBackupsResponseDataItem { id: string; backupType: GetDatabaseBackupsResponseDataItemBackupType; createdAt: string; size?: number | undefined; status: GetDatabaseBackupsResponseDataItemStatus; type?: string | undefined; } export type GetDatabaseBackupsResponseDataList = Array; export interface GetDatabaseBackupsResponseMeta { backupRetentionDays: number; } export interface GetDatabaseBackupsResponsePagination { hasMore: boolean; limit: number | null; } export interface GetDatabaseBackupsResponse { data: GetDatabaseBackupsResponseDataList; meta: GetDatabaseBackupsResponseMeta; pagination: GetDatabaseBackupsResponsePagination; } export interface GetDatabaseConnectionsRequest { databaseId: string; /** Cursor for pagination */ cursor?: string | undefined; /** Limit for pagination */ limit?: number | undefined; } export type GetDatabaseConnectionsResponseDataItemKind = "postgres" | "accelerate"; export type GetDatabaseConnectionsResponseDataItemEndpointsDirect = CreateDatabaseRestoreResponseDataConnectionsItemEndpointsDirect; export type GetDatabaseConnectionsResponseDataItemEndpointsPooled = CreateDatabaseRestoreResponseDataConnectionsItemEndpointsDirect; export type GetDatabaseConnectionsResponseDataItemEndpointsAccelerate = CreateDatabaseRestoreResponseDataConnectionsItemEndpointsDirect; export type GetDatabaseConnectionsResponseDataItemEndpoints = CreateDatabaseRestoreResponseDataConnectionsItemEndpoints; /** Deprecated: use `endpoints.direct` instead. */ export type GetDatabaseConnectionsResponseDataItemDirectConnection = CreateConnectionResponseDataDirectConnection; export type GetDatabaseConnectionsResponseDataItemDatabase = CreateBucketResponseDataProject; export interface GetDatabaseConnectionsResponseDataItem { id: string; type: string; url: string; name: string; createdAt: string; kind: GetDatabaseConnectionsResponseDataItemKind; endpoints: CreateDatabaseRestoreResponseDataConnectionsItemEndpoints; /** Deprecated: use `endpoints.direct` instead. */ directConnection?: CreateConnectionResponseDataDirectConnection | null | undefined; database: CreateBucketResponseDataProject; } export type GetDatabaseConnectionsResponseDataList = Array; export type GetDatabaseConnectionsResponsePagination = GetBucketKeysResponsePagination; export interface GetDatabaseConnectionsResponse { data: GetDatabaseConnectionsResponseDataList; pagination: GetBucketKeysResponsePagination; } export interface GetDatabasesRequest { /** Cursor for pagination */ cursor?: string | undefined; /** Limit for pagination */ limit?: number | undefined; /** Filter databases by project ID */ projectId?: string | undefined; /** Declared identity of the resource, unique within its branch. Set by the tool that declares the resource. */ logicalId?: string | undefined; branchId?: string | undefined; branchGitName?: string | undefined; } export type GetDatabasesResponseDataItemStatus = "failure" | "provisioning" | "ready" | "recovering"; export type GetDatabasesResponseDataItemConnectionsItemKind = "postgres" | "accelerate"; export type GetDatabasesResponseDataItemConnectionsItemEndpointsDirect = CreateDatabaseRestoreResponseDataConnectionsItemEndpointsDirect; export type GetDatabasesResponseDataItemConnectionsItemEndpointsPooled = CreateDatabaseRestoreResponseDataConnectionsItemEndpointsDirect; export type GetDatabasesResponseDataItemConnectionsItemEndpointsAccelerate = CreateDatabaseRestoreResponseDataConnectionsItemEndpointsDirect; export type GetDatabasesResponseDataItemConnectionsItemEndpoints = CreateDatabaseRestoreResponseDataConnectionsItemEndpoints; /** Deprecated: use `endpoints.direct` instead. */ export type GetDatabasesResponseDataItemConnectionsItemDirectConnection = CreateConnectionResponseDataDirectConnection; export type GetDatabasesResponseDataItemConnectionsItemDatabase = CreateBucketResponseDataProject; export interface GetDatabasesResponseDataItemConnectionsItem { id: string; type: string; url: string; name: string; createdAt: string; kind: GetDatabasesResponseDataItemConnectionsItemKind; endpoints: CreateDatabaseRestoreResponseDataConnectionsItemEndpoints; /** Deprecated: use `endpoints.direct` instead. */ directConnection?: CreateConnectionResponseDataDirectConnection | null | undefined; database: CreateBucketResponseDataProject; } export type GetDatabasesResponseDataItemConnectionsList = Array; export type GetDatabasesResponseDataItemProject = CreateBucketResponseDataProject; export type GetDatabasesResponseDataItemRegion = CreateDatabaseResponseDataRegion; export type GetDatabasesResponseDataItemSourceCase0 = CreateDatabaseRequestSourceCase0; export type GetDatabasesResponseDataItemSourceCase1 = CreateDatabaseResponseDataSourceCase1; export type GetDatabasesResponseDataItemSourceCase2 = CreateDatabaseResponseDataSourceCase2; export type GetDatabasesResponseDataItemSource = CreateDatabaseRequestSourceCase0 | CreateDatabaseResponseDataSourceCase1 | CreateDatabaseResponseDataSourceCase2; export interface GetDatabasesResponseDataItem { id: string; type: string; url: string; name: string; status: GetDatabasesResponseDataItemStatus; createdAt: string; isDefault: boolean; defaultConnectionId: string | null; connections: GetDatabasesResponseDataItemConnectionsList; project: CreateBucketResponseDataProject; region: CreateDatabaseResponseDataRegion | null; source: GetDatabasesResponseDataItemSource | null; branchId: string | null; logicalId: string | null; } export type GetDatabasesResponseDataList = Array; export type GetDatabasesResponsePagination = GetBucketKeysResponsePagination; export interface GetDatabasesResponse { data: GetDatabasesResponseDataList; pagination: GetBucketKeysResponsePagination; } export interface GetDatabaseUsageRequest { databaseId: string; /** Start date for metrics query. Defaults to start of current month if not provided. */ startDate?: string | undefined; /** End date for metrics query. Will be set to end of day if a future date is provided. Defaults to current date if not provided. */ endDate?: string | undefined; } export interface GetDatabaseUsageResponsePeriod { start: string; end: string; } export interface GetDatabaseUsageResponseMetricsOperations { used: number; unit: string; } export type GetDatabaseUsageResponseMetricsStorage = GetDatabaseUsageResponseMetricsOperations; export interface GetDatabaseUsageResponseMetrics { operations: GetDatabaseUsageResponseMetricsOperations; storage: GetDatabaseUsageResponseMetricsOperations; } export interface GetDatabaseUsageResponse { period: GetDatabaseUsageResponsePeriod; metrics: GetDatabaseUsageResponseMetrics; generatedAt: string; } export interface GetDeploymentRequest { deploymentId: string; } /** Environment variable names present on this compute version. Values are always redacted as "[redacted]" and must not be treated as deployed secret values. */ export type GetDeploymentResponseDataEnvVarsMap = { [key: string]: string | undefined; }; export interface GetDeploymentResponseDataPortMapping { http?: number | undefined; } export interface GetDeploymentResponseData { id: string; type: string; url: string; serviceId: string; foundryVersionId: string; status: string; previewDomain: string | null; /** Environment variable names present on this compute version. Values are always redacted as "[redacted]" and must not be treated as deployed secret values. */ envVars?: GetDeploymentResponseDataEnvVarsMap | undefined; portMapping?: GetDeploymentResponseDataPortMapping | undefined; createdAt: string; } export interface GetDeploymentResponse { data: GetDeploymentResponseData; } export interface GetDeploymentLogsRequest { deploymentId: string; tail?: number | undefined; from_start?: boolean | undefined; cursor?: string | undefined; } export interface GetDeploymentLogsResponse { } export interface GetDomainRequest { domainId: string; } export type GetDomainResponseDataStatus = "pending_dns" | "verifying" | "verified_routing_blocked" | "provisioning_tls" | "active" | "failed" | "removing"; export type GetDomainResponseDataFailureCategory = "dns" | "acme" | "storage" | "unknown"; export type GetDomainResponseDataDnsRecordsItem = CreateDomainRetryResponseDataDnsRecordsItem; export type GetDomainResponseDataDnsRecordsList = Array; export interface GetDomainResponseData { id: string; type: string; url: string; hostname: string; appId: string; /** Deprecated: use `appId` instead. */ computeServiceId: string; status: GetDomainResponseDataStatus; foundryStatus: string; failureReason: string | null; failureCategory: GetDomainResponseDataFailureCategory | null; certExpiresAt: string | null; createdAt: string; updatedAt: string; dnsRecords: GetDomainResponseDataDnsRecordsList; } export interface GetDomainResponse { data: GetDomainResponseData; } export interface GetDomainOwnershipRequest { domainOwnershipId: string; } export type GetDomainOwnershipResponseDataVerification = CreateDomainOwnershipVerifyResponseDataVerification; /** `verified` when the last answer from DNS carried the workspace's value. `expiring` when a verified domain ownership's record was no longer found: hostnames already serving under it keep serving, and it does not let a new or changed hostname serve. Publishing the record makes it `verified` again. The first lookup at or after `expiresAt` that still finds no value makes it `unverified`. `unverified` otherwise, including when a lookup found another workspace's value and not this workspace's. A lookup that gets no answer changes no status. */ export type GetDomainOwnershipResponseDataStatus = "unverified" | "verified" | "expiring"; export interface GetDomainOwnershipResponseData { id: string; type: string; /** The workspace the domain ownership belongs to. */ workspaceId: string; domain: string; verification: CreateDomainOwnershipVerifyResponseDataVerification; /** `verified` when the last answer from DNS carried the workspace's value. `expiring` when a verified domain ownership's record was no longer found: hostnames already serving under it keep serving, and it does not let a new or changed hostname serve. Publishing the record makes it `verified` again. The first lookup at or after `expiresAt` that still finds no value makes it `unverified`. `unverified` otherwise, including when a lookup found another workspace's value and not this workspace's. A lookup that gets no answer changes no status. */ status: GetDomainOwnershipResponseDataStatus; /** The deadline to publish the record, if the status is `expiring`. The status becomes `unverified` at the first lookup at or after this time that still finds no value, so it can stay `expiring` for a while after it. Null otherwise. */ expiresAt: string | null; /** When DNS last answered the lookup of the verification record. Null before the first answer, and after a lookup that got no answer while the domain ownership was not verified. A verified domain ownership keeps this answer when a lookup gets no answer. */ verificationRecordLastSeenAt: string | null; /** Whether that answer carried the workspace's value. Null when there is no answer. */ verificationRecordPresent: boolean | null; /** The error from the last sync of the verification record, such as `DNS unavailable`. Null when that sync succeeded. For display only. */ verificationRecordSyncError: string | null; createdAt: string; } export interface GetDomainOwnershipResponse { data: GetDomainOwnershipResponseData; } export interface GetEnvironmentVariableRequest { envVarId: string; } export type GetEnvironmentVariableResponseDataClass = "production" | "preview"; export interface GetEnvironmentVariableResponseData { id: string; type: string; url: string; projectId: string; branchId: string | null; class: GetEnvironmentVariableResponseDataClass; key: string; valueKid: string; isManagedBySystem: boolean; createdAt: string; updatedAt: string; } export interface GetEnvironmentVariableResponse { data: GetEnvironmentVariableResponseData; } export type GetEnvironmentVariablesRequestClass = "production" | "preview"; export interface GetEnvironmentVariablesRequest { /** Cursor for pagination */ cursor?: string | undefined; /** Limit for pagination */ limit?: number | undefined; projectId?: string | undefined; class?: GetEnvironmentVariablesRequestClass | (string & {}) | undefined; key?: string | undefined; branchId?: string | undefined; } export type GetEnvironmentVariablesResponseDataItemClass = "production" | "preview"; export interface GetEnvironmentVariablesResponseDataItem { id: string; type: string; url: string; projectId: string; branchId: string | null; class: GetEnvironmentVariablesResponseDataItemClass; key: string; valueKid: string; isManagedBySystem: boolean; createdAt: string; updatedAt: string; } export type GetEnvironmentVariablesResponseDataList = Array; export type GetEnvironmentVariablesResponsePagination = GetBucketKeysResponsePagination; export interface GetEnvironmentVariablesResponse { data: GetEnvironmentVariablesResponseDataList; pagination: GetBucketKeysResponsePagination; } export interface GetIntegrationRequest { id: string; } export type GetIntegrationResponseDataScopesList = Array; export interface GetIntegrationResponseDataClient { id: string; name: string; createdAt: string; } export interface GetIntegrationResponseDataCreatedByUser { id: string; email: string; displayName: string | null; } export interface GetIntegrationResponseData { id: string; url: string; createdAt: string; scopes: GetIntegrationResponseDataScopesList; client: GetIntegrationResponseDataClient; createdByUser: GetIntegrationResponseDataCreatedByUser; } export interface GetIntegrationResponse { data: GetIntegrationResponseData; } export interface GetIntegrationsRequest { /** Cursor for pagination */ cursor?: string | undefined; /** Limit for pagination */ limit?: number | undefined; workspaceId: string; } export type GetIntegrationsResponseDataItemScopesList = Array; export type GetIntegrationsResponseDataItemClient = GetIntegrationResponseDataClient; export type GetIntegrationsResponseDataItemCreatedByUser = GetIntegrationResponseDataCreatedByUser; export interface GetIntegrationsResponseDataItem { id: string; url: string; createdAt: string; scopes: GetIntegrationsResponseDataItemScopesList; client: GetIntegrationResponseDataClient; createdByUser: GetIntegrationResponseDataCreatedByUser; } export type GetIntegrationsResponseDataList = Array; export type GetIntegrationsResponsePagination = GetBucketKeysResponsePagination; export interface GetIntegrationsResponse { data: GetIntegrationsResponseDataList; pagination: GetBucketKeysResponsePagination; } export interface GetMeRequest { } export interface GetMeResponseDataUser { id: string; email: string; name: string | null; } export type GetMeResponseDataWorkspace = CreateDatabaseResponseDataRegion; export type GetMeResponseDataCredentialType = "oauth" | "service_token" | "management_token" | "agent_token"; export interface GetMeResponseDataCredential { type: GetMeResponseDataCredentialType; id: string | null; name: string | null; } export interface GetMeResponseData { user: GetMeResponseDataUser | null; workspace: CreateDatabaseResponseDataRegion | null; credential: GetMeResponseDataCredential; } export interface GetMeResponse { data: GetMeResponseData; } export interface GetProjectRequest { id: string; } export type GetProjectResponseDataWorkspace = CreateBucketResponseDataProject; export interface GetProjectResponseData { id: string; type: string; url: string; name: string; logicalId: string | null; createdAt: string; defaultRegion: string | null; workspace: CreateBucketResponseDataProject; } export interface GetProjectResponse { data: GetProjectResponseData; } export interface GetProjectBranchAlchemyStateStateStacksRequest { projectId: string; branchId: string; } export type GetProjectBranchAlchemyStateStateStacksResponseBodyList = Array; export type GetProjectBranchAlchemyStateStateStacksResponse = GetProjectBranchAlchemyStateStateStacksResponseBodyList; export interface GetProjectBranchAlchemyStateStateStackStageOutputRequest { projectId: string; branchId: string; stack: string; stage: string; } export type GetProjectBranchAlchemyStateStateStackStageOutputResponse = unknown; export interface GetProjectBranchAlchemyStateStateStackStageReplacedResourcesRequest { projectId: string; branchId: string; stack: string; stage: string; } export type GetProjectBranchAlchemyStateStateStackStageReplacedResourcesResponseBodyList = Array; export type GetProjectBranchAlchemyStateStateStackStageReplacedResourcesResponse = GetProjectBranchAlchemyStateStateStackStageReplacedResourcesResponseBodyList; export interface GetProjectBranchAlchemyStateStateStackStageResourceRequest { projectId: string; branchId: string; stack: string; stage: string; fqn: string; } export type GetProjectBranchAlchemyStateStateStackStageResourceResponse = unknown; export interface GetProjectBranchAlchemyStateStateStackStageResourcesRequest { projectId: string; branchId: string; stack: string; stage: string; } export type GetProjectBranchAlchemyStateStateStackStageResourcesResponseBodyList = Array; export type GetProjectBranchAlchemyStateStateStackStageResourcesResponse = GetProjectBranchAlchemyStateStateStackStageResourcesResponseBodyList; export interface GetProjectBranchAlchemyStateStateStackStagesRequest { projectId: string; branchId: string; stack: string; } export type GetProjectBranchAlchemyStateStateStackStagesResponseBodyList = Array; export type GetProjectBranchAlchemyStateStateStackStagesResponse = GetProjectBranchAlchemyStateStateStackStagesResponseBodyList; export interface GetProjectBranchAlchemyStateVersionRequest { projectId: string; branchId: string; } export interface GetProjectBranchAlchemyStateVersionResponse { version: number; } export interface GetProjectBranchApplicationTopologyRequest { projectId: string; branchId: string; } export type GetProjectBranchApplicationTopologyResponseDataNodesItemKind = "module" | "service" | "resource"; export interface GetProjectBranchApplicationTopologyResponseDataNodesItem { logicalId: string; parentLogicalId: string | null; kind: GetProjectBranchApplicationTopologyResponseDataNodesItemKind; type?: string | undefined; } export type GetProjectBranchApplicationTopologyResponseDataNodesList = Array; export type GetProjectBranchApplicationTopologyResponseDataPortsItemDirection = "in" | "out"; export interface GetProjectBranchApplicationTopologyResponseDataPortsItem { logicalId: string; direction: GetProjectBranchApplicationTopologyResponseDataPortsItemDirection; name: string; contractKind?: string | undefined; contractHash?: string | undefined; } export type GetProjectBranchApplicationTopologyResponseDataPortsList = Array; export type GetProjectBranchApplicationTopologyResponseDataEdgesItemFromDirection = "in" | "out"; export interface GetProjectBranchApplicationTopologyResponseDataEdgesItemFrom { logicalId: string; direction: GetProjectBranchApplicationTopologyResponseDataEdgesItemFromDirection; name: string; } export type GetProjectBranchApplicationTopologyResponseDataEdgesItemToDirection = "in" | "out"; export interface GetProjectBranchApplicationTopologyResponseDataEdgesItemTo { logicalId: string; direction: GetProjectBranchApplicationTopologyResponseDataEdgesItemToDirection; name: string; } export type GetProjectBranchApplicationTopologyResponseDataEdgesItemFamily = "communication" | "data"; export interface GetProjectBranchApplicationTopologyResponseDataEdgesItem { from: GetProjectBranchApplicationTopologyResponseDataEdgesItemFrom; to: GetProjectBranchApplicationTopologyResponseDataEdgesItemTo; family: GetProjectBranchApplicationTopologyResponseDataEdgesItemFamily; style?: string | undefined; } export type GetProjectBranchApplicationTopologyResponseDataEdgesList = Array; export interface GetProjectBranchApplicationTopologyResponseData { nodes: GetProjectBranchApplicationTopologyResponseDataNodesList; ports: GetProjectBranchApplicationTopologyResponseDataPortsList; edges: GetProjectBranchApplicationTopologyResponseDataEdgesList; contentHash?: string | undefined; writtenAt?: string | undefined; } export interface GetProjectBranchApplicationTopologyResponse { data: GetProjectBranchApplicationTopologyResponseData; } export interface GetProjectBranchesRequest { projectId: string; /** Cursor for pagination */ cursor?: string | undefined; /** Limit for pagination */ limit?: number | undefined; gitName?: string | undefined; gitNameContains?: string | undefined; } export type GetProjectBranchesResponseDataItemRole = "production" | "preview"; /** 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 GetProjectBranchesResponseDataItemProject = CreateBucketResponseDataProject; export interface GetProjectBranchesResponseDataItem { id: string; type: string; url: string; gitName: string; isDefault: boolean; role: GetProjectBranchesResponseDataItemRole; 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: CreateBucketResponseDataProject; } export type GetProjectBranchesResponseDataList = Array; export interface GetProjectBranchesResponsePagination { nextCursor: string | null; hasMore: boolean; } export interface GetProjectBranchesResponse { data: GetProjectBranchesResponseDataList; pagination: GetProjectBranchesResponsePagination; } export interface GetProjectBranchUrlsRequest { projectId: string; branchId: string; /** Declared identity of the resource, unique within its branch. Set by the tool that declares the resource. */ logicalId?: string | undefined; } /** `pending` until every condition is met, then `active`. An active RoutingUrl stays active when its service's live deployment changes. It goes back to `pending` when its hostname changes, its service is deleted, or no covering domain ownership keeps its ownership met. */ export type GetProjectBranchUrlsResponseDataItemStatus = "pending" | "active"; export type GetProjectBranchUrlsResponseDataItemConditionsOwnershipVerified = "met" | "unmet" | "unknown"; export type GetProjectBranchUrlsResponseDataItemConditionsServicePresent = "met" | "unmet" | "unknown"; export type GetProjectBranchUrlsResponseDataItemConditionsLiveDeployment = "met" | "unmet" | "unknown"; export type GetProjectBranchUrlsResponseDataItemConditionsDnsPointsAtSwitchboard = "met" | "unmet" | "unknown"; export type GetProjectBranchUrlsResponseDataItemConditionsCustomDomainBound = "met" | "unmet" | "unknown"; export type GetProjectBranchUrlsResponseDataItemConditionsCertificateActive = "met" | "unmet" | "unknown"; /** What the hostname needs to serve, in the order a user meets them. `unknown` means DNS or Foundry has not answered yet. */ export interface GetProjectBranchUrlsResponseDataItemConditions { ownershipVerified: GetProjectBranchUrlsResponseDataItemConditionsOwnershipVerified; servicePresent: GetProjectBranchUrlsResponseDataItemConditionsServicePresent; liveDeployment: GetProjectBranchUrlsResponseDataItemConditionsLiveDeployment; dnsPointsAtSwitchboard: GetProjectBranchUrlsResponseDataItemConditionsDnsPointsAtSwitchboard; customDomainBound: GetProjectBranchUrlsResponseDataItemConditionsCustomDomainBound; certificateActive: GetProjectBranchUrlsResponseDataItemConditionsCertificateActive; } export type GetProjectBranchUrlsResponseDataItemFirstUnmetCondition = "ownershipVerified" | "servicePresent" | "liveDeployment" | "dnsPointsAtSwitchboard" | "customDomainBound" | "certificateActive"; /** Set while only an `expiring` domain ownership keeps this active RoutingUrl serving. The hostname stops serving after `expiresAt` unless the TXT record in `records` is published. */ export type GetProjectBranchUrlsResponseDataItemOwnershipExpiry = CreateServiceUrlResponseDataOwnershipExpiry; export type GetProjectBranchUrlsResponseDataItemRecordsItemCondition = "ownershipVerified" | "dnsPointsAtSwitchboard"; export type GetProjectBranchUrlsResponseDataItemRecordsItemType = "TXT" | "CNAME"; export interface GetProjectBranchUrlsResponseDataItemRecordsItem { condition: GetProjectBranchUrlsResponseDataItemRecordsItemCondition; type: GetProjectBranchUrlsResponseDataItemRecordsItemType; name: string; value: string; ttl: number; } /** The DNS records still to publish. The TXT record is listed while ownership is not met, and while only an `expiring` domain ownership keeps it met. */ export type GetProjectBranchUrlsResponseDataItemRecordsList = Array; /** Set when another RoutingUrl holds the hostname. Its ids are shown only to a caller with access to its workspace; otherwise `message` is "held by another workspace". */ export type GetProjectBranchUrlsResponseDataItemHeldBy = CreateServiceUrlResponseDataHeldBy; /** Foundry's status of the custom domain. Null when Foundry's last answer is unknown. */ export type GetProjectBranchUrlsResponseDataItemCustomDomainStatus = "pending" | "provisioning" | "active" | "failed"; /** The Foundry custom domain the RoutingUrl holds, if any. */ export interface GetProjectBranchUrlsResponseDataItemCustomDomain { id: string; /** Foundry's status of the custom domain. Null when Foundry's last answer is unknown. */ status: GetProjectBranchUrlsResponseDataItemCustomDomainStatus | null; failureReason: string | null; certExpiresAt: string | null; lastSeenAt: string | null; certificateRetryRequestedAt: string | null; /** True when the certificate is still provisioning after the custom domain was registered again. */ certificateIssuanceStuck: boolean; } /** Foundry's last answer about the hostname's DNS. Null before Foundry has answered. */ export type GetProjectBranchUrlsResponseDataItemSwitchboardDns = CreateServiceUrlResponseDataSwitchboardDns; export interface GetProjectBranchUrlsResponseDataItem { id: string; type: string; branchId: string; /** Null once the service is deleted. */ serviceId: string | null; hostname: string; logicalId: string | null; /** `pending` until every condition is met, then `active`. An active RoutingUrl stays active when its service's live deployment changes. It goes back to `pending` when its hostname changes, its service is deleted, or no covering domain ownership keeps its ownership met. */ status: GetProjectBranchUrlsResponseDataItemStatus; /** What the hostname needs to serve, in the order a user meets them. `unknown` means DNS or Foundry has not answered yet. */ conditions: GetProjectBranchUrlsResponseDataItemConditions; firstUnmetCondition: GetProjectBranchUrlsResponseDataItemFirstUnmetCondition | null; /** Set while only an `expiring` domain ownership keeps this active RoutingUrl serving. The hostname stops serving after `expiresAt` unless the TXT record in `records` is published. */ ownershipExpiry: CreateServiceUrlResponseDataOwnershipExpiry | null; /** The DNS records still to publish. The TXT record is listed while ownership is not met, and while only an `expiring` domain ownership keeps it met. */ records: GetProjectBranchUrlsResponseDataItemRecordsList; /** Set when another RoutingUrl holds the hostname. Its ids are shown only to a caller with access to its workspace; otherwise `message` is "held by another workspace". */ heldBy: CreateServiceUrlResponseDataHeldBy | null; /** The Foundry custom domain the RoutingUrl holds, if any. */ customDomain: GetProjectBranchUrlsResponseDataItemCustomDomain | null; /** The error from the last sync with Foundry, also when it left the RoutingUrl without a custom domain. Null when that sync succeeded. */ customDomainSyncError: string | null; /** Foundry's last answer about the hostname's DNS. Null before Foundry has answered. */ switchboardDns: CreateServiceUrlResponseDataSwitchboardDns | null; /** The Console page that shows what to do next, while the RoutingUrl is pending and has a service. */ setupUrl: string | null; createdAt: string; updatedAt: string; } export type GetProjectBranchUrlsResponseDataList = Array; export interface GetProjectBranchUrlsResponsePagination { hasMore: boolean; nextCursor: unknown | null; } export interface GetProjectBranchUrlsResponse { data: GetProjectBranchUrlsResponseDataList; pagination: GetProjectBranchUrlsResponsePagination; } export interface GetProjectDatabasesRequest { projectId: string; /** Cursor for pagination */ cursor?: string | undefined; /** Limit for pagination */ limit?: number | undefined; } export type GetProjectDatabasesResponseDataItemStatus = "failure" | "provisioning" | "ready" | "recovering"; export type GetProjectDatabasesResponseDataItemConnectionsItemKind = "postgres" | "accelerate"; export type GetProjectDatabasesResponseDataItemConnectionsItemEndpointsDirect = CreateDatabaseRestoreResponseDataConnectionsItemEndpointsDirect; export type GetProjectDatabasesResponseDataItemConnectionsItemEndpointsPooled = CreateDatabaseRestoreResponseDataConnectionsItemEndpointsDirect; export type GetProjectDatabasesResponseDataItemConnectionsItemEndpointsAccelerate = CreateDatabaseRestoreResponseDataConnectionsItemEndpointsDirect; export type GetProjectDatabasesResponseDataItemConnectionsItemEndpoints = CreateDatabaseRestoreResponseDataConnectionsItemEndpoints; /** Deprecated: use `endpoints.direct` instead. */ export type GetProjectDatabasesResponseDataItemConnectionsItemDirectConnection = CreateConnectionResponseDataDirectConnection; export type GetProjectDatabasesResponseDataItemConnectionsItemDatabase = CreateBucketResponseDataProject; export interface GetProjectDatabasesResponseDataItemConnectionsItem { id: string; type: string; url: string; name: string; createdAt: string; kind: GetProjectDatabasesResponseDataItemConnectionsItemKind; endpoints: CreateDatabaseRestoreResponseDataConnectionsItemEndpoints; /** Deprecated: use `endpoints.direct` instead. */ directConnection?: CreateConnectionResponseDataDirectConnection | null | undefined; database: CreateBucketResponseDataProject; } export type GetProjectDatabasesResponseDataItemConnectionsList = Array; export type GetProjectDatabasesResponseDataItemProject = CreateBucketResponseDataProject; export type GetProjectDatabasesResponseDataItemRegion = CreateDatabaseResponseDataRegion; export type GetProjectDatabasesResponseDataItemSourceCase0 = CreateDatabaseRequestSourceCase0; export type GetProjectDatabasesResponseDataItemSourceCase1 = CreateDatabaseResponseDataSourceCase1; export type GetProjectDatabasesResponseDataItemSourceCase2 = CreateDatabaseResponseDataSourceCase2; export type GetProjectDatabasesResponseDataItemSource = CreateDatabaseRequestSourceCase0 | CreateDatabaseResponseDataSourceCase1 | CreateDatabaseResponseDataSourceCase2; export interface GetProjectDatabasesResponseDataItem { id: string; type: string; url: string; name: string; status: GetProjectDatabasesResponseDataItemStatus; createdAt: string; isDefault: boolean; defaultConnectionId: string | null; connections: GetProjectDatabasesResponseDataItemConnectionsList; project: CreateBucketResponseDataProject; region: CreateDatabaseResponseDataRegion | null; source: GetProjectDatabasesResponseDataItemSource | null; branchId: string | null; logicalId: string | null; } export type GetProjectDatabasesResponseDataList = Array; export type GetProjectDatabasesResponsePagination = GetBucketKeysResponsePagination; export interface GetProjectDatabasesResponse { data: GetProjectDatabasesResponseDataList; pagination: GetBucketKeysResponsePagination; } export interface GetProjectsRequest { /** Cursor for pagination */ cursor?: string | undefined; /** Limit for pagination */ limit?: number | undefined; logicalId?: string | undefined; } export type GetProjectsResponseDataItemWorkspace = CreateBucketResponseDataProject; export type GetProjectsResponseDataItem = GetProjectResponseData; export type GetProjectsResponseDataList = Array; export type GetProjectsResponsePagination = GetBucketKeysResponsePagination; export interface GetProjectsResponse { data: GetProjectsResponseDataList; pagination: GetBucketKeysResponsePagination; } export type GetRegionsRequestProduct = "postgres" | "accelerate"; export interface GetRegionsRequest { product?: GetRegionsRequestProduct | (string & {}) | undefined; } export type GetRegionsResponseDataItemProduct = "postgres" | "accelerate"; export type GetRegionsResponseDataItemStatus = "available" | "unavailable"; export interface GetRegionsResponseDataItem { id: string; type: string; name: string; product: GetRegionsResponseDataItemProduct; status?: GetRegionsResponseDataItemStatus | undefined; } export type GetRegionsResponseDataList = Array; export interface GetRegionsResponse { data: GetRegionsResponseDataList; } export interface GetRegionsAccelerateRequest { } export interface GetRegionsAccelerateResponseDataItem { id: string; type: string; name: string; } export type GetRegionsAccelerateResponseDataList = Array; export interface GetRegionsAccelerateResponse { data: GetRegionsAccelerateResponseDataList; } export interface GetRegionsPostgresRequest { } export type GetRegionsPostgresResponseDataItemStatus = "available" | "unavailable"; export interface GetRegionsPostgresResponseDataItem { id: string; type: string; name: string; status: GetRegionsPostgresResponseDataItemStatus; } export type GetRegionsPostgresResponseDataList = Array; export interface GetRegionsPostgresResponse { data: GetRegionsPostgresResponseDataList; } export interface GetScmInstallationRepositoriesRequest { installationId: string; /** Cursor for pagination (opaque, returned from previous response) */ cursor?: string | undefined; /** Maximum repositories to return (default and max 100). */ limit?: number | undefined; } export interface GetScmInstallationRepositoriesResponseDataItem { /** Numeric repository ID assigned by the SCM provider */ id: number; type: string; /** Full repository name, e.g. "octocat/hello" */ fullName: string; defaultBranch: string; isPrivate: boolean; } export type GetScmInstallationRepositoriesResponseDataList = Array; export type GetScmInstallationRepositoriesResponsePagination = GetProjectBranchesResponsePagination; export interface GetScmInstallationRepositoriesResponse { data: GetScmInstallationRepositoriesResponseDataList; pagination: GetProjectBranchesResponsePagination; } export interface GetScmInstallationsRequest { /** Cursor for pagination */ cursor?: string | undefined; /** Limit for pagination */ limit?: number | undefined; workspaceId: string; repository?: string | undefined; } export type GetScmInstallationsResponseDataItemProvider = "github"; export type GetScmInstallationsResponseDataItemAccountType = "user" | "organization"; export interface GetScmInstallationsResponseDataItem { id: string; type: string; url: string; provider: GetScmInstallationsResponseDataItemProvider; /** Numeric installation ID assigned by the SCM provider */ installationId: number; /** Numeric account ID assigned by the SCM provider */ accountId: number; accountLogin: string; accountType: GetScmInstallationsResponseDataItemAccountType; suspended: boolean; createdAt: string; updatedAt: string; } export type GetScmInstallationsResponseDataList = Array; export type GetScmInstallationsResponsePagination = GetBucketKeysResponsePagination; export interface GetScmInstallationsResponse { data: GetScmInstallationsResponseDataList; pagination: GetBucketKeysResponsePagination; hint?: string | undefined; } export interface GetServiceRequest { serviceId: string; } export type GetServiceResponseDataRegion = CreateDatabaseResponseDataRegion; export type GetServiceResponseData = CreateServiceResponseData; export interface GetServiceResponse { data: CreateServiceResponseData; } export interface GetServiceDeploymentsRequest { serviceId: string; /** Cursor for pagination */ cursor?: string | undefined; /** Limit for pagination */ limit?: number | undefined; } export interface GetServiceDeploymentsResponseDataItem { id: string; type: string; url: string; serviceId: string; foundryVersionId: string; createdAt: string; } export type GetServiceDeploymentsResponseDataList = Array; export type GetServiceDeploymentsResponsePagination = GetBucketKeysResponsePagination; export interface GetServiceDeploymentsResponse { data: GetServiceDeploymentsResponseDataList; pagination: GetBucketKeysResponsePagination; } export interface GetServiceDomainsRequest { serviceId: string; } export type GetServiceDomainsResponseDataItemStatus = "pending_dns" | "verifying" | "verified_routing_blocked" | "provisioning_tls" | "active" | "failed" | "removing"; export type GetServiceDomainsResponseDataItemFailureCategory = "dns" | "acme" | "storage" | "unknown"; export type GetServiceDomainsResponseDataItemDnsRecordsItem = CreateDomainRetryResponseDataDnsRecordsItem; export type GetServiceDomainsResponseDataItemDnsRecordsList = Array; export interface GetServiceDomainsResponseDataItem { id: string; type: string; url: string; hostname: string; appId: string; /** Deprecated: use `appId` instead. */ computeServiceId: string; status: GetServiceDomainsResponseDataItemStatus; foundryStatus: string; failureReason: string | null; failureCategory: GetServiceDomainsResponseDataItemFailureCategory | null; certExpiresAt: string | null; createdAt: string; updatedAt: string; dnsRecords: GetServiceDomainsResponseDataItemDnsRecordsList; } export type GetServiceDomainsResponseDataList = Array; export type GetServiceDomainsResponsePagination = GetProjectBranchUrlsResponsePagination; export interface GetServiceDomainsResponse { data: GetServiceDomainsResponseDataList; pagination: GetProjectBranchUrlsResponsePagination; } export interface GetServicesRequest { /** Cursor for pagination */ cursor?: string | undefined; /** Limit for pagination */ limit?: number | undefined; projectId?: string | undefined; /** Declared identity of the resource, unique within its branch. Set by the tool that declares the resource. */ logicalId?: string | undefined; branchId?: string | undefined; branchGitName?: string | undefined; } export type GetServicesResponseDataItemRegion = CreateDatabaseResponseDataRegion; export type GetServicesResponseDataItem = CreateServiceResponseData; export type GetServicesResponseDataList = Array; export type GetServicesResponsePagination = GetBucketKeysResponsePagination; export interface GetServicesResponse { data: GetServicesResponseDataList; pagination: GetBucketKeysResponsePagination; } export interface GetServiceUrlsRequest { serviceId: string; } /** `pending` until every condition is met, then `active`. An active RoutingUrl stays active when its service's live deployment changes. It goes back to `pending` when its hostname changes, its service is deleted, or no covering domain ownership keeps its ownership met. */ export type GetServiceUrlsResponseDataItemStatus = "pending" | "active"; export type GetServiceUrlsResponseDataItemConditionsOwnershipVerified = "met" | "unmet" | "unknown"; export type GetServiceUrlsResponseDataItemConditionsServicePresent = "met" | "unmet" | "unknown"; export type GetServiceUrlsResponseDataItemConditionsLiveDeployment = "met" | "unmet" | "unknown"; export type GetServiceUrlsResponseDataItemConditionsDnsPointsAtSwitchboard = "met" | "unmet" | "unknown"; export type GetServiceUrlsResponseDataItemConditionsCustomDomainBound = "met" | "unmet" | "unknown"; export type GetServiceUrlsResponseDataItemConditionsCertificateActive = "met" | "unmet" | "unknown"; /** What the hostname needs to serve, in the order a user meets them. `unknown` means DNS or Foundry has not answered yet. */ export interface GetServiceUrlsResponseDataItemConditions { ownershipVerified: GetServiceUrlsResponseDataItemConditionsOwnershipVerified; servicePresent: GetServiceUrlsResponseDataItemConditionsServicePresent; liveDeployment: GetServiceUrlsResponseDataItemConditionsLiveDeployment; dnsPointsAtSwitchboard: GetServiceUrlsResponseDataItemConditionsDnsPointsAtSwitchboard; customDomainBound: GetServiceUrlsResponseDataItemConditionsCustomDomainBound; certificateActive: GetServiceUrlsResponseDataItemConditionsCertificateActive; } export type GetServiceUrlsResponseDataItemFirstUnmetCondition = "ownershipVerified" | "servicePresent" | "liveDeployment" | "dnsPointsAtSwitchboard" | "customDomainBound" | "certificateActive"; /** Set while only an `expiring` domain ownership keeps this active RoutingUrl serving. The hostname stops serving after `expiresAt` unless the TXT record in `records` is published. */ export type GetServiceUrlsResponseDataItemOwnershipExpiry = CreateServiceUrlResponseDataOwnershipExpiry; export type GetServiceUrlsResponseDataItemRecordsItemCondition = "ownershipVerified" | "dnsPointsAtSwitchboard"; export type GetServiceUrlsResponseDataItemRecordsItemType = "TXT" | "CNAME"; export interface GetServiceUrlsResponseDataItemRecordsItem { condition: GetServiceUrlsResponseDataItemRecordsItemCondition; type: GetServiceUrlsResponseDataItemRecordsItemType; name: string; value: string; ttl: number; } /** The DNS records still to publish. The TXT record is listed while ownership is not met, and while only an `expiring` domain ownership keeps it met. */ export type GetServiceUrlsResponseDataItemRecordsList = Array; /** Set when another RoutingUrl holds the hostname. Its ids are shown only to a caller with access to its workspace; otherwise `message` is "held by another workspace". */ export type GetServiceUrlsResponseDataItemHeldBy = CreateServiceUrlResponseDataHeldBy; /** Foundry's status of the custom domain. Null when Foundry's last answer is unknown. */ export type GetServiceUrlsResponseDataItemCustomDomainStatus = "pending" | "provisioning" | "active" | "failed"; /** The Foundry custom domain the RoutingUrl holds, if any. */ export interface GetServiceUrlsResponseDataItemCustomDomain { id: string; /** Foundry's status of the custom domain. Null when Foundry's last answer is unknown. */ status: GetServiceUrlsResponseDataItemCustomDomainStatus | null; failureReason: string | null; certExpiresAt: string | null; lastSeenAt: string | null; certificateRetryRequestedAt: string | null; /** True when the certificate is still provisioning after the custom domain was registered again. */ certificateIssuanceStuck: boolean; } /** Foundry's last answer about the hostname's DNS. Null before Foundry has answered. */ export type GetServiceUrlsResponseDataItemSwitchboardDns = CreateServiceUrlResponseDataSwitchboardDns; export interface GetServiceUrlsResponseDataItem { id: string; type: string; branchId: string; /** Null once the service is deleted. */ serviceId: string | null; hostname: string; logicalId: string | null; /** `pending` until every condition is met, then `active`. An active RoutingUrl stays active when its service's live deployment changes. It goes back to `pending` when its hostname changes, its service is deleted, or no covering domain ownership keeps its ownership met. */ status: GetServiceUrlsResponseDataItemStatus; /** What the hostname needs to serve, in the order a user meets them. `unknown` means DNS or Foundry has not answered yet. */ conditions: GetServiceUrlsResponseDataItemConditions; firstUnmetCondition: GetServiceUrlsResponseDataItemFirstUnmetCondition | null; /** Set while only an `expiring` domain ownership keeps this active RoutingUrl serving. The hostname stops serving after `expiresAt` unless the TXT record in `records` is published. */ ownershipExpiry: CreateServiceUrlResponseDataOwnershipExpiry | null; /** The DNS records still to publish. The TXT record is listed while ownership is not met, and while only an `expiring` domain ownership keeps it met. */ records: GetServiceUrlsResponseDataItemRecordsList; /** Set when another RoutingUrl holds the hostname. Its ids are shown only to a caller with access to its workspace; otherwise `message` is "held by another workspace". */ heldBy: CreateServiceUrlResponseDataHeldBy | null; /** The Foundry custom domain the RoutingUrl holds, if any. */ customDomain: GetServiceUrlsResponseDataItemCustomDomain | null; /** The error from the last sync with Foundry, also when it left the RoutingUrl without a custom domain. Null when that sync succeeded. */ customDomainSyncError: string | null; /** Foundry's last answer about the hostname's DNS. Null before Foundry has answered. */ switchboardDns: CreateServiceUrlResponseDataSwitchboardDns | null; /** The Console page that shows what to do next, while the RoutingUrl is pending and has a service. */ setupUrl: string | null; createdAt: string; updatedAt: string; } export type GetServiceUrlsResponseDataList = Array; export type GetServiceUrlsResponsePagination = GetProjectBranchUrlsResponsePagination; export interface GetServiceUrlsResponse { data: GetServiceUrlsResponseDataList; pagination: GetProjectBranchUrlsResponsePagination; } export interface GetSourceRepositoriesRequest { /** Cursor for pagination */ cursor?: string | undefined; /** Limit for pagination */ limit?: number | undefined; projectId: string; } export type GetSourceRepositoriesResponseDataItemProvider = "github"; export type GetSourceRepositoriesResponseDataItemStatus = "active" | "archived"; export interface GetSourceRepositoriesResponseDataItem { id: string; type: string; url: string; repoId: number; provider: GetSourceRepositoriesResponseDataItemProvider; repoFullName: string; defaultBranch: string; isPrivate: boolean; status: GetSourceRepositoriesResponseDataItemStatus; projectId: string; installationId: string; createdAt: string; updatedAt: string; } export type GetSourceRepositoriesResponseDataList = Array; export type GetSourceRepositoriesResponsePagination = GetProjectBranchesResponsePagination; export interface GetSourceRepositoriesResponse { data: GetSourceRepositoriesResponseDataList; pagination: GetProjectBranchesResponsePagination; } export interface GetSourceRepositoryRequest { id: string; } export type GetSourceRepositoryResponseDataProvider = "github"; export type GetSourceRepositoryResponseDataStatus = "active" | "archived"; export interface GetSourceRepositoryResponseData { id: string; type: string; url: string; repoId: number; provider: GetSourceRepositoryResponseDataProvider; repoFullName: string; defaultBranch: string; isPrivate: boolean; status: GetSourceRepositoryResponseDataStatus; projectId: string; installationId: string; createdAt: string; updatedAt: string; } export interface GetSourceRepositoryResponse { data: GetSourceRepositoryResponseData; hint?: string | undefined; } export interface GetUrlRequest { id: string; } /** `pending` until every condition is met, then `active`. An active RoutingUrl stays active when its service's live deployment changes. It goes back to `pending` when its hostname changes, its service is deleted, or no covering domain ownership keeps its ownership met. */ export type GetUrlResponseDataStatus = "pending" | "active"; export type GetUrlResponseDataConditionsOwnershipVerified = "met" | "unmet" | "unknown"; export type GetUrlResponseDataConditionsServicePresent = "met" | "unmet" | "unknown"; export type GetUrlResponseDataConditionsLiveDeployment = "met" | "unmet" | "unknown"; export type GetUrlResponseDataConditionsDnsPointsAtSwitchboard = "met" | "unmet" | "unknown"; export type GetUrlResponseDataConditionsCustomDomainBound = "met" | "unmet" | "unknown"; export type GetUrlResponseDataConditionsCertificateActive = "met" | "unmet" | "unknown"; /** What the hostname needs to serve, in the order a user meets them. `unknown` means DNS or Foundry has not answered yet. */ export interface GetUrlResponseDataConditions { ownershipVerified: GetUrlResponseDataConditionsOwnershipVerified; servicePresent: GetUrlResponseDataConditionsServicePresent; liveDeployment: GetUrlResponseDataConditionsLiveDeployment; dnsPointsAtSwitchboard: GetUrlResponseDataConditionsDnsPointsAtSwitchboard; customDomainBound: GetUrlResponseDataConditionsCustomDomainBound; certificateActive: GetUrlResponseDataConditionsCertificateActive; } export type GetUrlResponseDataFirstUnmetCondition = "ownershipVerified" | "servicePresent" | "liveDeployment" | "dnsPointsAtSwitchboard" | "customDomainBound" | "certificateActive"; /** Set while only an `expiring` domain ownership keeps this active RoutingUrl serving. The hostname stops serving after `expiresAt` unless the TXT record in `records` is published. */ export type GetUrlResponseDataOwnershipExpiry = CreateServiceUrlResponseDataOwnershipExpiry; export type GetUrlResponseDataRecordsItemCondition = "ownershipVerified" | "dnsPointsAtSwitchboard"; export type GetUrlResponseDataRecordsItemType = "TXT" | "CNAME"; export interface GetUrlResponseDataRecordsItem { condition: GetUrlResponseDataRecordsItemCondition; type: GetUrlResponseDataRecordsItemType; name: string; value: string; ttl: number; } /** The DNS records still to publish. The TXT record is listed while ownership is not met, and while only an `expiring` domain ownership keeps it met. */ export type GetUrlResponseDataRecordsList = Array; /** Set when another RoutingUrl holds the hostname. Its ids are shown only to a caller with access to its workspace; otherwise `message` is "held by another workspace". */ export type GetUrlResponseDataHeldBy = CreateServiceUrlResponseDataHeldBy; /** Foundry's status of the custom domain. Null when Foundry's last answer is unknown. */ export type GetUrlResponseDataCustomDomainStatus = "pending" | "provisioning" | "active" | "failed"; /** The Foundry custom domain the RoutingUrl holds, if any. */ export interface GetUrlResponseDataCustomDomain { id: string; /** Foundry's status of the custom domain. Null when Foundry's last answer is unknown. */ status: GetUrlResponseDataCustomDomainStatus | null; failureReason: string | null; certExpiresAt: string | null; lastSeenAt: string | null; certificateRetryRequestedAt: string | null; /** True when the certificate is still provisioning after the custom domain was registered again. */ certificateIssuanceStuck: boolean; } /** Foundry's last answer about the hostname's DNS. Null before Foundry has answered. */ export type GetUrlResponseDataSwitchboardDns = CreateServiceUrlResponseDataSwitchboardDns; export interface GetUrlResponseData { id: string; type: string; branchId: string; /** Null once the service is deleted. */ serviceId: string | null; hostname: string; logicalId: string | null; /** `pending` until every condition is met, then `active`. An active RoutingUrl stays active when its service's live deployment changes. It goes back to `pending` when its hostname changes, its service is deleted, or no covering domain ownership keeps its ownership met. */ status: GetUrlResponseDataStatus; /** What the hostname needs to serve, in the order a user meets them. `unknown` means DNS or Foundry has not answered yet. */ conditions: GetUrlResponseDataConditions; firstUnmetCondition: GetUrlResponseDataFirstUnmetCondition | null; /** Set while only an `expiring` domain ownership keeps this active RoutingUrl serving. The hostname stops serving after `expiresAt` unless the TXT record in `records` is published. */ ownershipExpiry: CreateServiceUrlResponseDataOwnershipExpiry | null; /** The DNS records still to publish. The TXT record is listed while ownership is not met, and while only an `expiring` domain ownership keeps it met. */ records: GetUrlResponseDataRecordsList; /** Set when another RoutingUrl holds the hostname. Its ids are shown only to a caller with access to its workspace; otherwise `message` is "held by another workspace". */ heldBy: CreateServiceUrlResponseDataHeldBy | null; /** The Foundry custom domain the RoutingUrl holds, if any. */ customDomain: GetUrlResponseDataCustomDomain | null; /** The error from the last sync with Foundry, also when it left the RoutingUrl without a custom domain. Null when that sync succeeded. */ customDomainSyncError: string | null; /** Foundry's last answer about the hostname's DNS. Null before Foundry has answered. */ switchboardDns: CreateServiceUrlResponseDataSwitchboardDns | null; /** The Console page that shows what to do next, while the RoutingUrl is pending and has a service. */ setupUrl: string | null; createdAt: string; updatedAt: string; } export interface GetUrlResponse { data: GetUrlResponseData; } export interface GetWorkspaceRequest { id: string; } export type GetWorkspaceResponseData = CreateWorkspaceResponseData; export interface GetWorkspaceResponse { data: CreateWorkspaceResponseData; } export interface GetWorkspaceDomainOwnershipsRequest { workspaceId: string; /** Cursor for pagination */ cursor?: string | undefined; /** Page size, 1-100 */ limit?: number | undefined; /** Return only the domain ownership of this domain. */ domain?: string | undefined; } export type GetWorkspaceDomainOwnershipsResponseDataItemVerification = CreateDomainOwnershipVerifyResponseDataVerification; /** `verified` when the last answer from DNS carried the workspace's value. `expiring` when a verified domain ownership's record was no longer found: hostnames already serving under it keep serving, and it does not let a new or changed hostname serve. Publishing the record makes it `verified` again. The first lookup at or after `expiresAt` that still finds no value makes it `unverified`. `unverified` otherwise, including when a lookup found another workspace's value and not this workspace's. A lookup that gets no answer changes no status. */ export type GetWorkspaceDomainOwnershipsResponseDataItemStatus = "unverified" | "verified" | "expiring"; export interface GetWorkspaceDomainOwnershipsResponseDataItem { id: string; type: string; /** The workspace the domain ownership belongs to. */ workspaceId: string; domain: string; verification: CreateDomainOwnershipVerifyResponseDataVerification; /** `verified` when the last answer from DNS carried the workspace's value. `expiring` when a verified domain ownership's record was no longer found: hostnames already serving under it keep serving, and it does not let a new or changed hostname serve. Publishing the record makes it `verified` again. The first lookup at or after `expiresAt` that still finds no value makes it `unverified`. `unverified` otherwise, including when a lookup found another workspace's value and not this workspace's. A lookup that gets no answer changes no status. */ status: GetWorkspaceDomainOwnershipsResponseDataItemStatus; /** The deadline to publish the record, if the status is `expiring`. The status becomes `unverified` at the first lookup at or after this time that still finds no value, so it can stay `expiring` for a while after it. Null otherwise. */ expiresAt: string | null; /** When DNS last answered the lookup of the verification record. Null before the first answer, and after a lookup that got no answer while the domain ownership was not verified. A verified domain ownership keeps this answer when a lookup gets no answer. */ verificationRecordLastSeenAt: string | null; /** Whether that answer carried the workspace's value. Null when there is no answer. */ verificationRecordPresent: boolean | null; /** The error from the last sync of the verification record, such as `DNS unavailable`. Null when that sync succeeded. For display only. */ verificationRecordSyncError: string | null; createdAt: string; } export type GetWorkspaceDomainOwnershipsResponseDataList = Array; export type GetWorkspaceDomainOwnershipsResponsePagination = GetBucketKeysResponsePagination; export interface GetWorkspaceDomainOwnershipsResponse { data: GetWorkspaceDomainOwnershipsResponseDataList; pagination: GetBucketKeysResponsePagination; } export interface GetWorkspaceDomainOwnershipsVerificationRequest { workspaceId: string; /** An exact hostname such as `shop.example.com`, or a wildcard such as `*.example.com`. */ domain: string; } export type GetWorkspaceDomainOwnershipsVerificationResponseData = CreateDomainOwnershipVerifyResponseDataVerification; export interface GetWorkspaceDomainOwnershipsVerificationResponse { data: CreateDomainOwnershipVerifyResponseDataVerification; } export interface GetWorkspaceIntegrationsRequest { workspaceId: string; /** Cursor for pagination */ cursor?: string | undefined; /** Limit for pagination */ limit?: number | undefined; } export type GetWorkspaceIntegrationsResponseDataItemScopesList = Array; export type GetWorkspaceIntegrationsResponseDataItemClient = GetIntegrationResponseDataClient; export type GetWorkspaceIntegrationsResponseDataItemCreatedByUser = GetIntegrationResponseDataCreatedByUser; export interface GetWorkspaceIntegrationsResponseDataItem { id: string; url: string; createdAt: string; scopes: GetWorkspaceIntegrationsResponseDataItemScopesList; client: GetIntegrationResponseDataClient; createdByUser: GetIntegrationResponseDataCreatedByUser; } export type GetWorkspaceIntegrationsResponseDataList = Array; export type GetWorkspaceIntegrationsResponsePagination = GetBucketKeysResponsePagination; export interface GetWorkspaceIntegrationsResponse { data: GetWorkspaceIntegrationsResponseDataList; pagination: GetBucketKeysResponsePagination; } export interface GetWorkspacesRequest { /** Cursor for pagination */ cursor?: string | undefined; /** Limit for pagination */ limit?: number | undefined; } export type GetWorkspacesResponseDataItem = CreateWorkspaceResponseData; export type GetWorkspacesResponseDataList = Array; export type GetWorkspacesResponsePagination = GetBucketKeysResponsePagination; export interface GetWorkspacesResponse { data: GetWorkspacesResponseDataList; pagination: GetBucketKeysResponsePagination; } export interface GetWorkspaceServiceTokensRequest { workspaceId: string; /** Cursor for pagination */ cursor?: string | undefined; /** Page size, 1-100 */ limit?: number | undefined; } export type GetWorkspaceServiceTokensResponseDataItemScope = "workspace" | "project"; export interface GetWorkspaceServiceTokensResponseDataItem { id: string; type: string; name: string; scope: GetWorkspaceServiceTokensResponseDataItemScope; projectId: string | null; valueHint: string; createdAt: string; expiresAt?: string | null | undefined; } export type GetWorkspaceServiceTokensResponseDataList = Array; export type GetWorkspaceServiceTokensResponsePagination = GetBucketKeysResponsePagination; export interface GetWorkspaceServiceTokensResponse { data: GetWorkspaceServiceTokensResponseDataList; pagination: GetBucketKeysResponsePagination; } export interface GetWorkspaceSubscriptionRequest { id: string; } export interface GetWorkspaceSubscriptionResponseData { planName: string; usageBlocked: boolean; upgradeUrl: string; } export interface GetWorkspaceSubscriptionResponse { data: GetWorkspaceSubscriptionResponseData; } export type PutBuildResourceRequestResourceType = "project" | "branch" | "database" | "app" | "deployment" | "bucket" | "service_key" | "config_variable"; /** 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 PutBuildResourceRequestAction = "created" | "acted_on" | "deleted"; export interface PutBuildResourceRequest { buildId: string; resourceType: PutBuildResourceRequestResourceType | (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: PutBuildResourceRequestAction | (string & {}); } export interface PutBuildResourceResponse { } export interface PutProjectBranchAlchemyStateStateStackStageOutputRequest { projectId: string; branchId: string; stack: string; stage: string; } export type PutProjectBranchAlchemyStateStateStackStageOutputResponse = unknown; export interface PutProjectBranchAlchemyStateStateStackStageResourceRequest { projectId: string; branchId: string; stack: string; stage: string; fqn: string; } export type PutProjectBranchAlchemyStateStateStackStageResourceResponse = unknown; export type PutProjectBranchApplicationTopologyRequestNodesItemKind = "module" | "service" | "resource"; export interface PutProjectBranchApplicationTopologyRequestNodesItem { logicalId: string; parentLogicalId: string | null; kind: PutProjectBranchApplicationTopologyRequestNodesItemKind | (string & {}); type?: string | undefined; } export type PutProjectBranchApplicationTopologyRequestNodesList = Array; export type PutProjectBranchApplicationTopologyRequestPortsItemDirection = "in" | "out"; export interface PutProjectBranchApplicationTopologyRequestPortsItem { logicalId: string; direction: PutProjectBranchApplicationTopologyRequestPortsItemDirection | (string & {}); name: string; contractKind?: string | undefined; contractHash?: string | undefined; } export type PutProjectBranchApplicationTopologyRequestPortsList = Array; export type PutProjectBranchApplicationTopologyRequestEdgesItemFromDirection = "in" | "out"; export interface PutProjectBranchApplicationTopologyRequestEdgesItemFrom { logicalId: string; direction: PutProjectBranchApplicationTopologyRequestEdgesItemFromDirection | (string & {}); name: string; } export type PutProjectBranchApplicationTopologyRequestEdgesItemToDirection = "in" | "out"; export interface PutProjectBranchApplicationTopologyRequestEdgesItemTo { logicalId: string; direction: PutProjectBranchApplicationTopologyRequestEdgesItemToDirection | (string & {}); name: string; } export type PutProjectBranchApplicationTopologyRequestEdgesItemFamily = "communication" | "data"; export interface PutProjectBranchApplicationTopologyRequestEdgesItem { from: PutProjectBranchApplicationTopologyRequestEdgesItemFrom; to: PutProjectBranchApplicationTopologyRequestEdgesItemTo; family: PutProjectBranchApplicationTopologyRequestEdgesItemFamily | (string & {}); style?: string | undefined; } export type PutProjectBranchApplicationTopologyRequestEdgesList = Array; export interface PutProjectBranchApplicationTopologyRequest { projectId: string; branchId: string; contentHash?: string | undefined; nodes: PutProjectBranchApplicationTopologyRequestNodesList; ports: PutProjectBranchApplicationTopologyRequestPortsList; edges: PutProjectBranchApplicationTopologyRequestEdgesList; } export type PutProjectBranchApplicationTopologyResponseDataNodesItemKind = "module" | "service" | "resource"; export interface PutProjectBranchApplicationTopologyResponseDataNodesItem { logicalId: string; parentLogicalId: string | null; kind: PutProjectBranchApplicationTopologyResponseDataNodesItemKind; type?: string | undefined; } export type PutProjectBranchApplicationTopologyResponseDataNodesList = Array; export type PutProjectBranchApplicationTopologyResponseDataPortsItemDirection = "in" | "out"; export interface PutProjectBranchApplicationTopologyResponseDataPortsItem { logicalId: string; direction: PutProjectBranchApplicationTopologyResponseDataPortsItemDirection; name: string; contractKind?: string | undefined; contractHash?: string | undefined; } export type PutProjectBranchApplicationTopologyResponseDataPortsList = Array; export type PutProjectBranchApplicationTopologyResponseDataEdgesItemFromDirection = "in" | "out"; export interface PutProjectBranchApplicationTopologyResponseDataEdgesItemFrom { logicalId: string; direction: PutProjectBranchApplicationTopologyResponseDataEdgesItemFromDirection; name: string; } export type PutProjectBranchApplicationTopologyResponseDataEdgesItemToDirection = "in" | "out"; export interface PutProjectBranchApplicationTopologyResponseDataEdgesItemTo { logicalId: string; direction: PutProjectBranchApplicationTopologyResponseDataEdgesItemToDirection; name: string; } export type PutProjectBranchApplicationTopologyResponseDataEdgesItemFamily = "communication" | "data"; export interface PutProjectBranchApplicationTopologyResponseDataEdgesItem { from: PutProjectBranchApplicationTopologyResponseDataEdgesItemFrom; to: PutProjectBranchApplicationTopologyResponseDataEdgesItemTo; family: PutProjectBranchApplicationTopologyResponseDataEdgesItemFamily; style?: string | undefined; } export type PutProjectBranchApplicationTopologyResponseDataEdgesList = Array; export interface PutProjectBranchApplicationTopologyResponseData { nodes: PutProjectBranchApplicationTopologyResponseDataNodesList; ports: PutProjectBranchApplicationTopologyResponseDataPortsList; edges: PutProjectBranchApplicationTopologyResponseDataEdgesList; contentHash?: string | undefined; writtenAt?: string | undefined; } export interface PutProjectBranchApplicationTopologyResponse { data: PutProjectBranchApplicationTopologyResponseData; } export interface UpdateBranchRequest { branchId: string; isDefault?: boolean | null | undefined; } export type UpdateBranchResponseDataRole = "production" | "preview"; /** 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 UpdateBranchResponseDataProject = CreateBucketResponseDataProject; export interface UpdateBranchResponseData { id: string; type: string; url: string; gitName: string; isDefault: boolean; role: UpdateBranchResponseDataRole; 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: CreateBucketResponseDataProject; } export interface UpdateBranchResponse { data: UpdateBranchResponseData; } export interface UpdateBucketRequest { bucketId: string; /** New display name for the bucket. A label only: the provider bucket name does not change. */ displayName?: string | undefined; /** ID of the branch to move the bucket to. Mutually exclusive with branchGitName. */ branchId?: string | undefined; /** Git name of the branch to move the bucket to; the branch is created when it does not exist. Mutually exclusive with branchId. */ branchGitName?: string | undefined; /** Declared identity of the resource, unique within its branch. Set by the tool that declares the resource. Send null to clear the logical id. */ logicalId?: string | null | undefined; } export type UpdateBucketResponseDataProject = CreateBucketResponseDataProject; export type UpdateBucketResponseData = CreateBucketResponseData; export interface UpdateBucketResponse { data: CreateBucketResponseData; } /** How far the run has got. */ export type UpdateBuildRequestPhase = "queued" | "build" | "deploy"; export type UpdateBuildRequestState = "pending" | "running" | "succeeded" | "failed" | "cancelled"; export interface UpdateBuildRequest { buildId: string; /** How far the run has got. */ phase?: UpdateBuildRequestPhase | (string & {}) | undefined; state?: UpdateBuildRequestState | (string & {}) | undefined; /** Name of the step that failed, free text -- step names come from build tooling the platform cannot validate. */ failingStep?: string | undefined; errorMessage?: string | undefined; externalLogUrl?: string | undefined; /** Project the build targets. Can be set once and never changed: a reporter that learns the project partway through a deploy may set it, but a value already recorded cannot be changed. */ projectId?: string | undefined; /** Branch the build targets. Can be set once and never changed, like `projectId`. */ branchId?: string | undefined; /** Where the deployed app can be reached. Can be set once and never changed, like `projectId`. */ deployedUrl?: string | undefined; /** Content hash of the application topology this run deploys, as submitted to the application-topology endpoint. A value match, never a reference: equal hashes identify the same graph. Can be set once and never changed, like `projectId`. */ applicationTopologyContentHash?: string | undefined; } export type UpdateBuildResponseDataSource = "webhook" | "setup" | "manual" | "ci" | "cli"; export type UpdateBuildResponseDataState = "pending" | "running" | "succeeded" | "failed" | "cancelled"; /** Null when nothing reported a phase; the platform never invents an observation it did not receive. */ export type UpdateBuildResponseDataPhase = "queued" | "build" | "deploy"; export interface UpdateBuildResponseData { id: string; source: UpdateBuildResponseDataSource; state: UpdateBuildResponseDataState; /** Null when nothing reported a phase; the platform never invents an observation it did not receive. */ phase: UpdateBuildResponseDataPhase | 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; applicationTopologyContentHash: string | null; errorMessage: string | null; failingStep: string | null; createdAt: string; startedAt: string | null; finishedAt: string | null; } export interface UpdateBuildResponse { data: UpdateBuildResponseData; } export interface UpdateDatabaseRequest { databaseId: string; /** New display name for the database */ name?: string | undefined; /** ID of the Branch to move the database to. Every database belongs to a Branch, so null (detach) is rejected. */ branchId?: string | null | undefined; /** Git name of the Branch to move the database to; the Branch is created when it does not exist. Mutually exclusive with branchId. Every database belongs to a Branch, so null (detach) is rejected. */ branchGitName?: string | null | undefined; /** Declared identity of the resource, unique within its branch. Set by the tool that declares the resource. Send null to clear the logical id. */ logicalId?: string | null | undefined; } export type UpdateDatabaseResponseDataStatus = "failure" | "provisioning" | "ready" | "recovering"; export type UpdateDatabaseResponseDataConnectionsItemKind = "postgres" | "accelerate"; export type UpdateDatabaseResponseDataConnectionsItemEndpointsDirect = CreateDatabaseRestoreResponseDataConnectionsItemEndpointsDirect; export type UpdateDatabaseResponseDataConnectionsItemEndpointsPooled = CreateDatabaseRestoreResponseDataConnectionsItemEndpointsDirect; export type UpdateDatabaseResponseDataConnectionsItemEndpointsAccelerate = CreateDatabaseRestoreResponseDataConnectionsItemEndpointsDirect; export type UpdateDatabaseResponseDataConnectionsItemEndpoints = CreateDatabaseRestoreResponseDataConnectionsItemEndpoints; /** Deprecated: use `endpoints.direct` instead. */ export type UpdateDatabaseResponseDataConnectionsItemDirectConnection = CreateConnectionResponseDataDirectConnection; export type UpdateDatabaseResponseDataConnectionsItemDatabase = CreateBucketResponseDataProject; export interface UpdateDatabaseResponseDataConnectionsItem { id: string; type: string; url: string; name: string; createdAt: string; kind: UpdateDatabaseResponseDataConnectionsItemKind; endpoints: CreateDatabaseRestoreResponseDataConnectionsItemEndpoints; /** Deprecated: use `endpoints.direct` instead. */ directConnection?: CreateConnectionResponseDataDirectConnection | null | undefined; database: CreateBucketResponseDataProject; } export type UpdateDatabaseResponseDataConnectionsList = Array; export type UpdateDatabaseResponseDataProject = CreateBucketResponseDataProject; export type UpdateDatabaseResponseDataRegion = CreateDatabaseResponseDataRegion; export type UpdateDatabaseResponseDataSourceCase0 = CreateDatabaseRequestSourceCase0; export type UpdateDatabaseResponseDataSourceCase1 = CreateDatabaseResponseDataSourceCase1; export type UpdateDatabaseResponseDataSourceCase2 = CreateDatabaseResponseDataSourceCase2; export type UpdateDatabaseResponseDataSource = CreateDatabaseRequestSourceCase0 | CreateDatabaseResponseDataSourceCase1 | CreateDatabaseResponseDataSourceCase2; export interface UpdateDatabaseResponseData { id: string; type: string; url: string; name: string; status: UpdateDatabaseResponseDataStatus; createdAt: string; isDefault: boolean; defaultConnectionId: string | null; connections: UpdateDatabaseResponseDataConnectionsList; project: CreateBucketResponseDataProject; region: CreateDatabaseResponseDataRegion | null; source: UpdateDatabaseResponseDataSource | null; branchId: string | null; logicalId: string | null; } export interface UpdateDatabaseResponse { data: UpdateDatabaseResponseData; } export interface UpdateEnvironmentVariableRequest { envVarId: string; value: string; } export type UpdateEnvironmentVariableResponseDataClass = "production" | "preview"; export interface UpdateEnvironmentVariableResponseData { id: string; type: string; url: string; projectId: string; branchId: string | null; class: UpdateEnvironmentVariableResponseDataClass; key: string; valueKid: string; isManagedBySystem: boolean; createdAt: string; updatedAt: string; } export interface UpdateEnvironmentVariableResponse { data: UpdateEnvironmentVariableResponseData; } export type UpdateProjectRequestSettingsMap = { [key: string]: unknown | undefined; }; export interface UpdateProjectRequest { id: string; name?: string | undefined; settings?: UpdateProjectRequestSettingsMap | undefined; } export type UpdateProjectResponseDataWorkspace = CreateBucketResponseDataProject; export type UpdateProjectResponseData = GetProjectResponseData; export interface UpdateProjectResponse { data: GetProjectResponseData; } export interface UpdateProjectBranchAlchemyStateLeaseRequest { projectId: string; branchId: string; /** Requested lease TTL in seconds. Default 60, clamped to [30, 300]. */ ttlSeconds?: number | undefined; } export type UpdateProjectBranchAlchemyStateLeaseResponseData = CreateProjectBranchAlchemyStateLeaseResponseData; export interface UpdateProjectBranchAlchemyStateLeaseResponse { data: CreateProjectBranchAlchemyStateLeaseResponseData; } export interface UpdateServiceRequest { serviceId: string; displayName?: string | undefined; /** Declared identity of the resource, unique within its branch. Set by the tool that declares the resource. Send null to clear the logical id. */ logicalId?: string | null | undefined; branchId?: string | null | undefined; branchGitName?: string | null | undefined; } export type UpdateServiceResponseDataRegion = CreateDatabaseResponseDataRegion; export type UpdateServiceResponseData = CreateServiceResponseData; export interface UpdateServiceResponse { data: CreateServiceResponseData; } export interface UpdateUrlRequest { id: string; /** The hostname to serve, such as `shop.com`. Case and a trailing dot are ignored. Wildcards and IP addresses are refused. */ hostname?: string | undefined; /** Another service on the RoutingUrl's Branch. */ serviceId?: string | undefined; /** `null` clears it. */ logicalId?: string | null | undefined; /** Whether to create a domain ownership for the exact hostname when no verified one covers it. Set it to `false` to create or change only the RoutingUrl, and create the domain ownership with `POST /v1/workspaces/{workspaceId}/domain-ownerships`. */ createDomainOwnership?: boolean | undefined; } /** `pending` until every condition is met, then `active`. An active RoutingUrl stays active when its service's live deployment changes. It goes back to `pending` when its hostname changes, its service is deleted, or no covering domain ownership keeps its ownership met. */ export type UpdateUrlResponseDataStatus = "pending" | "active"; export type UpdateUrlResponseDataConditionsOwnershipVerified = "met" | "unmet" | "unknown"; export type UpdateUrlResponseDataConditionsServicePresent = "met" | "unmet" | "unknown"; export type UpdateUrlResponseDataConditionsLiveDeployment = "met" | "unmet" | "unknown"; export type UpdateUrlResponseDataConditionsDnsPointsAtSwitchboard = "met" | "unmet" | "unknown"; export type UpdateUrlResponseDataConditionsCustomDomainBound = "met" | "unmet" | "unknown"; export type UpdateUrlResponseDataConditionsCertificateActive = "met" | "unmet" | "unknown"; /** What the hostname needs to serve, in the order a user meets them. `unknown` means DNS or Foundry has not answered yet. */ export interface UpdateUrlResponseDataConditions { ownershipVerified: UpdateUrlResponseDataConditionsOwnershipVerified; servicePresent: UpdateUrlResponseDataConditionsServicePresent; liveDeployment: UpdateUrlResponseDataConditionsLiveDeployment; dnsPointsAtSwitchboard: UpdateUrlResponseDataConditionsDnsPointsAtSwitchboard; customDomainBound: UpdateUrlResponseDataConditionsCustomDomainBound; certificateActive: UpdateUrlResponseDataConditionsCertificateActive; } export type UpdateUrlResponseDataFirstUnmetCondition = "ownershipVerified" | "servicePresent" | "liveDeployment" | "dnsPointsAtSwitchboard" | "customDomainBound" | "certificateActive"; /** Set while only an `expiring` domain ownership keeps this active RoutingUrl serving. The hostname stops serving after `expiresAt` unless the TXT record in `records` is published. */ export type UpdateUrlResponseDataOwnershipExpiry = CreateServiceUrlResponseDataOwnershipExpiry; export type UpdateUrlResponseDataRecordsItemCondition = "ownershipVerified" | "dnsPointsAtSwitchboard"; export type UpdateUrlResponseDataRecordsItemType = "TXT" | "CNAME"; export interface UpdateUrlResponseDataRecordsItem { condition: UpdateUrlResponseDataRecordsItemCondition; type: UpdateUrlResponseDataRecordsItemType; name: string; value: string; ttl: number; } /** The DNS records still to publish. The TXT record is listed while ownership is not met, and while only an `expiring` domain ownership keeps it met. */ export type UpdateUrlResponseDataRecordsList = Array; /** Set when another RoutingUrl holds the hostname. Its ids are shown only to a caller with access to its workspace; otherwise `message` is "held by another workspace". */ export type UpdateUrlResponseDataHeldBy = CreateServiceUrlResponseDataHeldBy; /** Foundry's status of the custom domain. Null when Foundry's last answer is unknown. */ export type UpdateUrlResponseDataCustomDomainStatus = "pending" | "provisioning" | "active" | "failed"; /** The Foundry custom domain the RoutingUrl holds, if any. */ export interface UpdateUrlResponseDataCustomDomain { id: string; /** Foundry's status of the custom domain. Null when Foundry's last answer is unknown. */ status: UpdateUrlResponseDataCustomDomainStatus | null; failureReason: string | null; certExpiresAt: string | null; lastSeenAt: string | null; certificateRetryRequestedAt: string | null; /** True when the certificate is still provisioning after the custom domain was registered again. */ certificateIssuanceStuck: boolean; } /** Foundry's last answer about the hostname's DNS. Null before Foundry has answered. */ export type UpdateUrlResponseDataSwitchboardDns = CreateServiceUrlResponseDataSwitchboardDns; export interface UpdateUrlResponseData { id: string; type: string; branchId: string; /** Null once the service is deleted. */ serviceId: string | null; hostname: string; logicalId: string | null; /** `pending` until every condition is met, then `active`. An active RoutingUrl stays active when its service's live deployment changes. It goes back to `pending` when its hostname changes, its service is deleted, or no covering domain ownership keeps its ownership met. */ status: UpdateUrlResponseDataStatus; /** What the hostname needs to serve, in the order a user meets them. `unknown` means DNS or Foundry has not answered yet. */ conditions: UpdateUrlResponseDataConditions; firstUnmetCondition: UpdateUrlResponseDataFirstUnmetCondition | null; /** Set while only an `expiring` domain ownership keeps this active RoutingUrl serving. The hostname stops serving after `expiresAt` unless the TXT record in `records` is published. */ ownershipExpiry: CreateServiceUrlResponseDataOwnershipExpiry | null; /** The DNS records still to publish. The TXT record is listed while ownership is not met, and while only an `expiring` domain ownership keeps it met. */ records: UpdateUrlResponseDataRecordsList; /** Set when another RoutingUrl holds the hostname. Its ids are shown only to a caller with access to its workspace; otherwise `message` is "held by another workspace". */ heldBy: CreateServiceUrlResponseDataHeldBy | null; /** The Foundry custom domain the RoutingUrl holds, if any. */ customDomain: UpdateUrlResponseDataCustomDomain | null; /** The error from the last sync with Foundry, also when it left the RoutingUrl without a custom domain. Null when that sync succeeded. */ customDomainSyncError: string | null; /** Foundry's last answer about the hostname's DNS. Null before Foundry has answered. */ switchboardDns: CreateServiceUrlResponseDataSwitchboardDns | null; /** The Console page that shows what to do next, while the RoutingUrl is pending and has a service. */ setupUrl: string | null; createdAt: string; updatedAt: string; } export interface UpdateUrlResponse { data: UpdateUrlResponseData; } export type CreateAuthGithubActionsTokenError = BadRequest | PrismaOpError; /** Exchange a GitHub Actions OIDC token for a project-scoped service token U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Verifies the GitHub Actions OIDC token and mints a short-lived project-scoped 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 declare const createAuthGithubActionsToken: API.OperationMethod; export type CreateBucketError = BadRequest | Forbidden | NotFound | Conflict | PrismaOpError; /** Create bucket Creates a new object-store bucket in the specified project. */ export declare const createBucket: API.OperationMethod; export type CreateBucketKeyError = BadRequest | NotFound | PrismaOpError; /** 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 declare const createBucketKey: API.OperationMethod; export type CreateBuildError = BadRequest | NotFound | PrismaOpError; /** Report a build U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 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 declare const createBuild: API.OperationMethod; export type CreateConnectionError = BadRequest | Conflict | NotFound | UnprocessableEntity | PrismaOpError; /** Create connection Creates a new connection for the specified database. */ export declare const createConnection: API.OperationMethod; export type CreateConnectionRotateError = BadRequest | NotFound | PrismaOpError; /** Rotate connection credentials Generates new credentials for the connection with the given ID. Revocation of the previous credentials is best-effort. */ export declare const createConnectionRotate: API.OperationMethod; export type CreateDatabaseError = BadRequest | Forbidden | NotFound | Conflict | UnprocessableEntity | PrismaOpError; /** Create database Creates a new database in the specified project. `logicalId` cannot be combined with `branchGitName`; pass `branchId` instead. */ export declare const createDatabase: API.OperationMethod; export type CreateDatabaseConnectionError = BadRequest | NotFound | UnprocessableEntity | PrismaOpError; /** Create database connection string Creates a new connection string for the given database. */ export declare const createDatabaseConnection: API.OperationMethod; export type CreateDatabaseRestoreError = BadRequest | NotFound | Conflict | UnprocessableEntity | PrismaOpError; /** Restore database (destructive) U+26A0 **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. Replaces the data in an existing database from a backup. Connections and credentials are preserved -- only the data layer is replaced. */ export declare const createDatabaseRestore: API.OperationMethod; export type CreateDeploymentStartError = BadRequest | Forbidden | NotFound | Conflict | PrismaOpError; /** Start deployment U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Requests 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. */ export declare const createDeploymentStart: API.OperationMethod; export type CreateDeploymentStopError = BadRequest | Forbidden | NotFound | Conflict | PrismaOpError; /** Stop deployment U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Requests VM shutdown for the deployment. The deployment record and metadata are retained. Poll the status endpoint until `stopped` is reached. */ export declare const createDeploymentStop: API.OperationMethod; export type CreateDomainOwnershipVerifyError = BadRequest | NotFound | PrismaOpError; /** Verify a domain ownership U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Looks up the domain's verification record now and returns the domain ownership with the answer. The same answer updates every domain ownership whose verification record has the same name, in every workspace. When DNS gives no answer, no `status` changes, a verified domain ownership keeps its last answer, the others have it emptied, `verificationRecordSyncError` says why, and the platform checks again later. */ export declare const createDomainOwnershipVerify: API.OperationMethod; export type CreateDomainRetryError = BadRequest | Forbidden | NotFound | Conflict | PrismaOpError; /** Retry custom domain provisioning U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Retries 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). */ export declare const createDomainRetry: API.OperationMethod; export type CreateEnvironmentVariableError = BadRequest | NotFound | Conflict | UnprocessableEntity | PrismaOpError; /** Create an environment variable U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Creates 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. */ export declare const createEnvironmentVariable: API.OperationMethod; export type CreateProjectError = BadRequest | Conflict | UnprocessableEntity | PrismaOpError; /** Create project with a postgres database Creates a new project with a postgres database. */ export declare const createProject: API.OperationMethod; export type CreateProjectBranchError = BadRequest | NotFound | Conflict | UnprocessableEntity | PrismaOpError; /** Create a branch U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Creates an empty Branch under the specified Project. Buckets, databases, and apps are created separately. The first Branch in a Project is always created with isDefault=true and role=production regardless of the body value. Later Branches are created with role=preview. Setting isDefault=true while another Branch already holds the default atomically swaps the default flag only. */ export declare const createProjectBranch: API.OperationMethod; export type CreateProjectBranchAlchemyStateLeaseError = BadRequest | NotFound | Conflict | PrismaOpError; /** Acquire Alchemy deploy lease U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 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 declare const createProjectBranchAlchemyStateLease: API.OperationMethod; export type CreateProjectDatabaseError = BadRequest | Forbidden | NotFound | Conflict | UnprocessableEntity | PrismaOpError; /** Create database Creates a new database for the given project. */ export declare const createProjectDatabase: API.OperationMethod; export type CreateProjectTransferError = BadRequest | NotFound | Conflict | UnprocessableEntity | PrismaOpError; /** Transfer project Transfer the project with the given ID to the new owner's workspace */ export declare const createProjectTransfer: API.OperationMethod; export type CreateScmInstallationsInstallIntentError = BadRequest | Forbidden | NotFound | UnprocessableEntity | PrismaOpError; /** Create an SCM App installation intent U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Creates an installation intent for the given workspace. If an existing installation can be proven to belong to the caller it is linked immediately (`alreadyLinked`); otherwise the response carries a URL the user opens to install the SCM app. Pass `repository` (owner/name) so an installation that already covers it but cannot be linked automatically is detected and explained in `hint`. Currently only `github` is supported. */ export declare const createScmInstallationsInstallIntent: API.OperationMethod; export type CreateServiceError = BadRequest | Forbidden | NotFound | Conflict | UnprocessableEntity | PrismaOpError; /** Create service U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Creates a new service under the specified project. The `projectId` is required in the request body. The service is placed in the given region, or the project's default region if omitted (falling back to us-east-1). Returns `409 Conflict` when a service already occupies the slot on the resolved branch, either by name or by `logicalId`; the body includes the existing service's id, name, branch, and logical id, and `conflict` says which attribute clashed. The name is checked first. `logicalId` cannot be combined with `branchGitName`; pass `branchId` instead. */ export declare const createService: API.OperationMethod; export type CreateServiceDeploymentError = BadRequest | Forbidden | NotFound | UnprocessableEntity | PrismaOpError; /** Create deployment U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Creates a new deployment under the specified service. Returns a pre-signed upload URL for the artifact unless `skipCodeUpload` is set (which forks the active promoted deployment's artifact). Environment variables are resolved automatically from the service's attached Branch (production-class templates for the production Branch; preview-class templates for preview Branches). Manage env vars via the `/v1/environment-variables` endpoints, not as part of the deploy payload. */ export declare const createServiceDeployment: API.OperationMethod; export type CreateServiceDomainError = BadRequest | Forbidden | NotFound | Conflict | UnprocessableEntity | DomainOwnershipRequired | DomainDnsNotConfigured | PrismaOpError; /** Create a custom domain U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Registers a custom hostname for the service. The hostname must CNAME to the regional switchboard target before DNS verification can succeed. Returns 429 if the service has reached its domain quota (default: 3). */ export declare const createServiceDomain: API.OperationMethod; export type CreateServicePromoteError = BadRequest | Forbidden | NotFound | Conflict | UnprocessableEntity | PrismaOpError; /** Promote deployment U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Promotes a deployment to be the active deployment behind the service's stable endpoint. The deployment must be running. Returns the service endpoint domain. */ export declare const createServicePromote: API.OperationMethod; export type CreateServiceRollbackError = BadRequest | Forbidden | NotFound | Conflict | UnprocessableEntity | PrismaOpError; /** Roll a service back to an existing deployment U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Makes any eligible existing deployment live behind the service's stable endpoint (rollback or roll-forward). Unlike promote, a stopped target is started and waited until it is running before the endpoint is switched, so the currently-live deployment keeps serving with zero downtime. Returns the service endpoint domain. */ export declare const createServiceRollback: API.OperationMethod; export type CreateServiceUrlError = BadRequest | NotFound | Conflict | UnprocessableEntity | PrismaOpError; /** Create a RoutingUrl U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Saves a hostname for the service, before its DNS exists, and answers with what is still missing. The RoutingUrl is `pending` until every condition is met, then `active`, and goes live on its own once the DNS records are published and a covering domain ownership is verified. Unless `createDomainOwnership` is `false`, a domain ownership for the exact hostname is created when no verified one covers it. A custom domain is registered with Foundry only once ownership is verified, and each registration counts against the workspace's hourly limit of new certificates. When the limit is reached, the RoutingUrl waits, `customDomainSyncError` says when the limit resets, and it registers then on its own. */ export declare const createServiceUrl: API.OperationMethod; export type CreateSourceRepositoryError = BadRequest | Forbidden | NotFound | Conflict | UnprocessableEntity | PrismaOpError; /** Link a source repository to a project U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Links a GitHub repository to a Prisma project via an existing SCM installation. */ export declare const createSourceRepository: API.OperationMethod; export type CreateUrlCheckError = BadRequest | NotFound | PrismaOpError; /** Check a RoutingUrl U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Refreshes the RoutingUrl now and returns it. Looks up the TXT records of the domain ownerships that cover the hostname when none is verified, asks Foundry to retry a failed certificate, and syncs the custom domain with Foundry. Creates nothing. Run it after publishing a DNS record. A certificate retry counts against the workspace's hourly limit of new certificates. */ export declare const createUrlCheck: API.OperationMethod; export type CreateWorkspaceError = BadRequest | Forbidden | PrismaOpError; /** Create a workspace U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Creates a new free-plan workspace owned by the authenticated user. For agent tokens the workspace is created for the agent's sponsor, and the agent's permission policy treats this as an admin action -- under the default policy the sponsor approves it first. */ export declare const createWorkspace: API.OperationMethod; export type CreateWorkspaceDomainOwnershipError = BadRequest | NotFound | UnprocessableEntity | DomainOwnershipRequired | PrismaOpError; /** Create a domain ownership U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Records that the workspace intends to own the domain, looks up its verification record, and returns the domain ownership, verified when the record carries the workspace's value and unverified otherwise. Publish the record in `verification`, then verify the domain ownership to complete it. When DNS gives no answer, the domain ownership is unverified, its DNS fields are empty, and the platform checks again later. The lookup also updates the other domain ownerships whose verification record has the same name, in every workspace. A domain the workspace already holds is checked again and returned. */ export declare const createWorkspaceDomainOwnership: API.OperationMethod; export type CreateWorkspaceServiceTokenError = BadRequest | NotFound | UnprocessableEntity | PrismaOpError; /** 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 declare const createWorkspaceServiceToken: API.OperationMethod; export type DeleteBranchError = BadRequest | NotFound | Conflict | UnprocessableEntity | PrismaOpError; /** Soft-delete a branch U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 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 declare const deleteBranch: API.OperationMethod; export type DeleteBucketError = BadRequest | NotFound | PrismaOpError; /** 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 declare const deleteBucket: API.OperationMethod; export type DeleteBucketKeyError = BadRequest | NotFound | PrismaOpError; /** Delete bucket key Revokes and deletes the bucket key with the given ID. */ export declare const deleteBucketKey: API.OperationMethod; export type DeleteConnectionError = BadRequest | NotFound | UnprocessableEntity | PrismaOpError; /** Delete connection Deletes the connection with the given ID. */ export declare const deleteConnection: API.OperationMethod; export type DeleteDatabaseError = BadRequest | Forbidden | NotFound | UnprocessableEntity | PrismaOpError; /** Delete database Deletes the database with the given ID. */ export declare const deleteDatabase: API.OperationMethod; export type DeleteDeploymentError = BadRequest | Forbidden | NotFound | Conflict | PrismaOpError; /** Delete deployment U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Permanently deletes the deployment, its metadata, and any associated VM. The deployment must be stopped or in the `new` state before it can be deleted. */ export declare const deleteDeployment: API.OperationMethod; export type DeleteDomainError = BadRequest | Forbidden | NotFound | PrismaOpError; /** Delete a custom domain U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Removes a custom domain binding. Authorization is derived from the parent compute service's workspace. */ export declare const deleteDomain: API.OperationMethod; export type DeleteDomainOwnershipError = BadRequest | NotFound | PrismaOpError; /** Delete a domain ownership U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Removes the domain ownership, in any status. The verification record in DNS is not changed. */ export declare const deleteDomainOwnership: API.OperationMethod; export type DeleteEnvironmentVariableError = BadRequest | NotFound | UnprocessableEntity | PrismaOpError; /** Delete an environment variable U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Removes an environment variable. A second delete of the same variable returns 404. */ export declare const deleteEnvironmentVariable: API.OperationMethod; export type DeleteIntegrationError = BadRequest | NotFound | UnprocessableEntity | PrismaOpError; /** Delete integration Revokes the integration tokens by integration ID. */ export declare const deleteIntegration: API.OperationMethod; export type DeleteProjectError = BadRequest | NotFound | Conflict | UnprocessableEntity | PrismaOpError; /** Delete project Deletes the project with the given ID. */ export declare const deleteProject: API.OperationMethod; export type DeleteProjectBranchAlchemyStateLeaseError = BadRequest | NotFound | PrismaOpError; /** Release Alchemy deploy lease U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 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 declare const deleteProjectBranchAlchemyStateLease: API.OperationMethod; export type DeleteProjectBranchAlchemyStateStateStackError = BadRequest | NotFound | Conflict | PrismaOpError; /** Delete Alchemy stack state U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 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 declare const deleteProjectBranchAlchemyStateStateStack: API.OperationMethod; export type DeleteProjectBranchAlchemyStateStateStackStageResourceError = BadRequest | NotFound | Conflict | PrismaOpError; /** Delete Alchemy resource state U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Deletes the resource state row. Idempotent: deleting an absent row also returns 204. */ export declare const deleteProjectBranchAlchemyStateStateStackStageResource: API.OperationMethod; export type DeleteServiceError = BadRequest | Forbidden | NotFound | Conflict | PrismaOpError; /** Delete service U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Deletes a service. Deployments under the service are deleted before the service is deleted. */ export declare const deleteService: API.OperationMethod; export type DeleteSourceRepositoryError = BadRequest | NotFound | PrismaOpError; /** Disconnect a source repository U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Disconnects the source repository link. Existing branches and their attached resources are preserved. */ export declare const deleteSourceRepository: API.OperationMethod; export type DeleteUrlError = BadRequest | NotFound | PrismaOpError; /** Delete a RoutingUrl U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Removes the hostname from its service. Its custom domain is removed from Foundry now or, if that fails, by a retry. */ export declare const deleteUrl: API.OperationMethod; export type DeleteWorkspaceIntegrationError = BadRequest | NotFound | UnprocessableEntity | PrismaOpError; /** Revoke integration tokens Revokes the integration tokens with the given client ID. */ export declare const deleteWorkspaceIntegration: API.OperationMethod; export type DeleteWorkspaceServiceTokenError = BadRequest | NotFound | PrismaOpError; /** Delete service token Revokes the service token with the given ID by deleting it. */ export declare const deleteWorkspaceServiceToken: API.OperationMethod; export type GetAgentApprovalError = NotFound | PrismaOpError; /** Poll an approval Reports where an approval stands, so an agent holding an approval_required response can wait for the sponsor's decision and retry. Only the agent the approval belongs to can read it. */ export declare const getAgentApproval: API.OperationMethod; export type GetBranchError = BadRequest | NotFound | PrismaOpError; /** Get a branch U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Returns a single Branch by ID. Member resources are not inlined -- list them via /v1/databases?branchId= and /v1/apps?branchId=. */ export declare const getBranch: API.OperationMethod; export type GetBucketError = BadRequest | NotFound | PrismaOpError; /** Get bucket Returns the bucket with the given ID. */ export declare const getBucket: API.OperationMethod; export type GetBucketKeysError = BadRequest | NotFound | PrismaOpError; /** List bucket keys Returns all access keys for the given bucket. */ export declare const getBucketKeys: API.OperationMethod; export type GetBucketsError = BadRequest | PrismaOpError; /** List buckets Returns all object-store buckets the token has access to. Optionally filter by project ID. */ export declare const getBuckets: API.OperationMethod; export type GetBuildError = BadRequest | NotFound | PrismaOpError; /** Get a build U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Returns one build with the resources it reported acting on. */ export declare const getBuild: API.OperationMethod; export type GetBuildsError = BadRequest | NotFound | PrismaOpError; /** List builds U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 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 declare const getBuilds: API.OperationMethod; export type GetConnectionError = BadRequest | NotFound | UnprocessableEntity | PrismaOpError; /** Get connection Returns the connection with the given ID. */ export declare const getConnection: API.OperationMethod; export type GetConnectionsError = BadRequest | PrismaOpError; /** List connections Returns all connections the actor has access to, with optional database filter. */ export declare const getConnections: API.OperationMethod; export type GetDatabaseError = BadRequest | Forbidden | NotFound | UnprocessableEntity | PrismaOpError; /** Get database Returns the database with the given ID. */ export declare const getDatabase: API.OperationMethod; export type GetDatabaseBackupsError = BadRequest | NotFound | UnprocessableEntity | PrismaOpError; /** Get list of backups Returns backups for the specified database. */ export declare const getDatabaseBackups: API.OperationMethod; export type GetDatabaseConnectionsError = UnprocessableEntity | PrismaOpError; /** Get list of database connections Returns all connections for the given database. */ export declare const getDatabaseConnections: API.OperationMethod; export type GetDatabasesError = BadRequest | Forbidden | PrismaOpError; /** List databases Returns all databases the token has access to. Optionally filter by project ID. */ export declare const getDatabases: API.OperationMethod; export type GetDatabaseUsageError = BadRequest | NotFound | UnprocessableEntity | PrismaOpError; /** Get database usage metrics Returns usage metrics for the specified database. */ export declare const getDatabaseUsage: API.OperationMethod; export type GetDeploymentError = BadRequest | Forbidden | NotFound | PrismaOpError; /** Get deployment U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Returns a deployment by ID, including its current status derived from the underlying VM state. */ export declare const getDeployment: API.OperationMethod; export type GetDeploymentLogsError = BadRequest | Forbidden | NotFound | PrismaOpError; /** Get deployment logs U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 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 declare const getDeploymentLogs: API.OperationMethod; export type GetDomainError = BadRequest | Forbidden | NotFound | PrismaOpError; /** Get a custom domain U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Returns details for a custom domain by id. Authorization is derived from the parent compute service's workspace. */ export declare const getDomain: API.OperationMethod; export type GetDomainOwnershipError = BadRequest | NotFound | PrismaOpError; /** Get a domain ownership U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Returns a domain ownership, in any status. */ export declare const getDomainOwnership: API.OperationMethod; export type GetEnvironmentVariableError = BadRequest | NotFound | UnprocessableEntity | PrismaOpError; /** Get an environment variable U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Returns a single environment variable's metadata. The value is not returned. */ export declare const getEnvironmentVariable: API.OperationMethod; export type GetEnvironmentVariablesError = NotFound | BadRequest | UnprocessableEntity | PrismaOpError; /** List environment variables U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Returns a paginated list of environment variables. All filters are optional; combine `projectId`, `class`, and `key` to look up a specific variable by name. */ export declare const getEnvironmentVariables: API.OperationMethod; export type GetIntegrationError = BadRequest | NotFound | UnprocessableEntity | PrismaOpError; /** Get integration by ID Returns a single integration by its ID. */ export declare const getIntegration: API.OperationMethod; export type GetIntegrationsError = BadRequest | PrismaOpError; /** Get list of integrations Returns integrations filtered by workspace ID. */ export declare const getIntegrations: API.OperationMethod; export type GetMeError = PrismaOpError; /** Get current authenticated principal Returns the user, workspace, and credential represented by the current token. */ export declare const getMe: API.OperationMethod; export type GetProjectError = BadRequest | NotFound | UnprocessableEntity | PrismaOpError; /** Get project Returns the project with the given ID. */ export declare const getProject: API.OperationMethod; export type GetProjectBranchAlchemyStateStateStacksError = BadRequest | NotFound | Conflict | PrismaOpError; /** List Alchemy stacks U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 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 declare const getProjectBranchAlchemyStateStateStacks: API.OperationMethod; export type GetProjectBranchAlchemyStateStateStackStageOutputError = BadRequest | NotFound | Conflict | PrismaOpError; /** Get Alchemy stack output U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Returns the stored stack output for the stage, or a JSON null body when absent (the stock client maps null to undefined). */ export declare const getProjectBranchAlchemyStateStateStackStageOutput: API.OperationMethod; export type GetProjectBranchAlchemyStateStateStackStageReplacedResourcesError = BadRequest | NotFound | Conflict | PrismaOpError; /** List replaced Alchemy resources U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Returns the decrypted resource states of the stage whose status is "replaced". */ export declare const getProjectBranchAlchemyStateStateStackStageReplacedResources: API.OperationMethod; export type GetProjectBranchAlchemyStateStateStackStageResourceError = BadRequest | NotFound | Conflict | PrismaOpError; /** Get Alchemy resource state U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Returns the stored resource state, or a JSON null body when absent (the stock client maps null to undefined). */ export declare const getProjectBranchAlchemyStateStateStackStageResource: API.OperationMethod; export type GetProjectBranchAlchemyStateStateStackStageResourcesError = BadRequest | NotFound | Conflict | PrismaOpError; /** List Alchemy resources U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Lists the resource FQNs stored for the stage, ordered by FQN. */ export declare const getProjectBranchAlchemyStateStateStackStageResources: API.OperationMethod; export type GetProjectBranchAlchemyStateStateStackStagesError = BadRequest | NotFound | Conflict | PrismaOpError; /** List Alchemy stages U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 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 declare const getProjectBranchAlchemyStateStateStackStages: API.OperationMethod; export type GetProjectBranchAlchemyStateVersionError = PrismaOpError; /** Alchemy state store version U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 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 declare const getProjectBranchAlchemyStateVersion: API.OperationMethod; export type GetProjectBranchApplicationTopologyError = BadRequest | NotFound | PrismaOpError; /** Get branch topology U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Returns the stored topology graph for the branch -- the same shape Composer submitted. Nodes, ports, and edges are returned in deterministic order. */ export declare const getProjectBranchApplicationTopology: API.OperationMethod; export type GetProjectBranchesError = BadRequest | NotFound | UnprocessableEntity | PrismaOpError; /** List branches in a project U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Returns the live Branches of a Project. Supports two mutually exclusive filters: ?gitName= (exact match -- at most one row), ?gitNameContains= (case-sensitive substring). Soft-deleted Branches are not returned. Ordered by createdAt ascending. */ export declare const getProjectBranches: API.OperationMethod; export type GetProjectBranchUrlsError = BadRequest | NotFound | PrismaOpError; /** List a Branch's RoutingUrls U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Returns the hostnames of every service on the Branch, with their conditions and the DNS records still to publish. Filter by `logicalId` to find the RoutingUrl a deploy tool declared. Reads stored state only; it does not call DNS or Foundry. */ export declare const getProjectBranchUrls: API.OperationMethod; export type GetProjectDatabasesError = BadRequest | NotFound | UnprocessableEntity | PrismaOpError; /** Get list of databases Returns databases for the given project. */ export declare const getProjectDatabases: API.OperationMethod; export type GetProjectsError = BadRequest | PrismaOpError; /** Get list of projects Returns the list of projects the token has access to. */ export declare const getProjects: API.OperationMethod; export type GetRegionsError = BadRequest | PrismaOpError; /** Get all regions Returns all available regions across products. Optionally filter by product. */ export declare const getRegions: API.OperationMethod; export type GetRegionsAccelerateError = PrismaOpError; /** Get Prisma Accelerate regions Returns all available regions for Prisma Accelerate. */ export declare const getRegionsAccelerate: API.OperationMethod; export type GetRegionsPostgresError = PrismaOpError; /** Get Prisma Postgres regions Returns all available regions for Prisma Postgres. */ export declare const getRegionsPostgres: API.OperationMethod; export type GetScmInstallationRepositoriesError = BadRequest | NotFound | UnprocessableEntity | PrismaOpError; /** List repositories accessible to an SCM installation U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Lists repositories accessible to the given SCM installation. */ export declare const getScmInstallationRepositories: API.OperationMethod; export type GetScmInstallationsError = BadRequest | PrismaOpError; /** List SCM installations for a workspace U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Lists active SCM installations connected to the given workspace. */ export declare const getScmInstallations: API.OperationMethod; export type GetServiceError = BadRequest | Forbidden | NotFound | PrismaOpError; /** Get service U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Returns a service by ID, including its region and active promoted deployment reference. */ export declare const getService: API.OperationMethod; export type GetServiceDeploymentsError = BadRequest | Forbidden | NotFound | PrismaOpError; /** List deployments U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Returns all deployments belonging to a service, ordered by creation time (newest first). Supports cursor-based pagination. */ export declare const getServiceDeployments: API.OperationMethod; export type GetServiceDomainsError = BadRequest | Forbidden | NotFound | PrismaOpError; /** List custom domains for a service U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Returns all custom domains attached to any deployment of the service. Domains are aggregated across all deployments since Foundry lists per deployment. */ export declare const getServiceDomains: API.OperationMethod; export type GetServicesError = BadRequest | NotFound | Forbidden | UnprocessableEntity | PrismaOpError; /** List services U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Returns all services the token has access to, ordered by creation time (oldest first). Optionally filter by project ID. Supports cursor-based pagination. */ export declare const getServices: API.OperationMethod; export type GetServiceUrlsError = BadRequest | NotFound | PrismaOpError; /** List RoutingUrls U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Returns the service's hostnames with their conditions and the DNS records still to publish. Reads stored state only; it does not call DNS or Foundry. */ export declare const getServiceUrls: API.OperationMethod; export type GetSourceRepositoriesError = BadRequest | NotFound | PrismaOpError; /** List source repositories U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Returns source repositories linked to a project. Requires projectId query parameter. */ export declare const getSourceRepositories: API.OperationMethod; export type GetSourceRepositoryError = BadRequest | NotFound | PrismaOpError; /** Get a source repository U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Returns a single source repository link by ID. */ export declare const getSourceRepository: API.OperationMethod; export type GetUrlError = BadRequest | NotFound | PrismaOpError; /** Get a RoutingUrl U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Returns a hostname of a service with its conditions and the DNS records still to publish. Reads stored state only; it does not call DNS or Foundry. */ export declare const getUrl: API.OperationMethod; export type GetWorkspaceError = BadRequest | NotFound | UnprocessableEntity | PrismaOpError; /** Get workspace Returns the workspace with the given ID. */ export declare const getWorkspace: API.OperationMethod; export type GetWorkspaceDomainOwnershipsError = BadRequest | NotFound | UnprocessableEntity | PrismaOpError; /** List domain ownerships U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Returns the workspace's domain ownerships in every status, ordered by id. */ export declare const getWorkspaceDomainOwnerships: API.OperationMethod; export type GetWorkspaceDomainOwnershipsVerificationError = BadRequest | NotFound | UnprocessableEntity | PrismaOpError; /** Get the verification record for a domain U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Returns the TXT record the workspace must publish to prove it owns the domain. Looks nothing up and stores nothing. The record's value is the same for every domain in the workspace. */ export declare const getWorkspaceDomainOwnershipsVerification: API.OperationMethod; export type GetWorkspaceIntegrationsError = BadRequest | NotFound | UnprocessableEntity | PrismaOpError; /** Get list of integrations Returns integrations for the given workspace. */ export declare const getWorkspaceIntegrations: API.OperationMethod; export type GetWorkspacesError = BadRequest | PrismaOpError; /** Get list of workspaces Returns the list of workspaces the current token can access. */ export declare const getWorkspaces: API.OperationMethod; export type GetWorkspaceServiceTokensError = BadRequest | PrismaOpError; /** List service tokens Returns the service tokens for the given workspace, newest first. */ export declare const getWorkspaceServiceTokens: API.OperationMethod; export type GetWorkspaceSubscriptionError = BadRequest | NotFound | PrismaOpError; /** Get workspace subscription Returns subscription information for the workspace with the given ID. */ export declare const getWorkspaceSubscription: API.OperationMethod; export type PutBuildResourceError = BadRequest | NotFound | PrismaOpError; /** Report a resource a build acted on U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 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 declare const putBuildResource: API.OperationMethod; export type PutProjectBranchAlchemyStateStateStackStageOutputError = BadRequest | NotFound | Conflict | PrismaOpError; /** Set Alchemy stack output U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Overwrites the stack output for the stage, encrypted at rest, and echoes the stored value. */ export declare const putProjectBranchAlchemyStateStateStackStageOutput: API.OperationMethod; export type PutProjectBranchAlchemyStateStateStackStageResourceError = BadRequest | NotFound | Conflict | PrismaOpError; /** Set Alchemy resource state U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Stores the resource state encrypted at rest and echoes the stored value. */ export declare const putProjectBranchAlchemyStateStateStackStageResource: API.OperationMethod; export type PutProjectBranchApplicationTopologyError = BadRequest | NotFound | UnprocessableEntity | PrismaOpError; /** Replace branch topology U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Atomically replaces the entire topology for a branch. Composer calls this after Load, before the apply. On error, Composer warns and continues -- the previous topology is preserved. */ export declare const putProjectBranchApplicationTopology: API.OperationMethod; export type UpdateBranchError = BadRequest | NotFound | UnprocessableEntity | PrismaOpError; /** Update a branch U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Promotes a Branch to be the Project's default. Only isDefault is mutable -- gitName rename and role changes are rejected. */ export declare const updateBranch: API.OperationMethod; export type UpdateBucketError = BadRequest | NotFound | Conflict | UnprocessableEntity | PrismaOpError; /** Update bucket Updates the display name, logical id, or branch of the bucket with the given ID. The display name is a label only: the provider bucket name, the objects, and the access keys do not change. `logicalId` cannot be combined with `branchId` or `branchGitName` in one request; move the bucket first, then set its `logicalId`. */ export declare const updateBucket: API.OperationMethod; export type UpdateBuildError = BadRequest | NotFound | Conflict | PrismaOpError; /** Update a build U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 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. Once a build has finished, its state no longer changes: a later report updates the other fields and leaves the state as the finishing report set it. `projectId`, `branchId`, `deployedUrl` and `applicationTopologyContentHash` can each be set once and never changed: 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. `projectId` and `branchId` must belong to the caller's workspace, and a branch must belong to the build's project, so a branch from another project is refused. */ export declare const updateBuild: API.OperationMethod; export type UpdateDatabaseError = BadRequest | Forbidden | NotFound | Conflict | UnprocessableEntity | PrismaOpError; /** Update database Updates the database with the given ID. `logicalId` cannot be combined with `branchId` or `branchGitName` in one request; move the database first, then set its `logicalId`. */ export declare const updateDatabase: API.OperationMethod; export type UpdateEnvironmentVariableError = BadRequest | NotFound | UnprocessableEntity | PrismaOpError; /** Update an environment variable's value U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Replaces the value of an existing environment variable. Only the value is mutable -- the project, environment, key, and branch are fixed at create-time. */ export declare const updateEnvironmentVariable: API.OperationMethod; export type UpdateProjectError = BadRequest | Forbidden | NotFound | UnprocessableEntity | PrismaOpError; /** Update project Updates the project with the given ID. */ export declare const updateProject: API.OperationMethod; export type UpdateProjectBranchAlchemyStateLeaseError = BadRequest | NotFound | PrismaOpError; /** Heartbeat Alchemy deploy lease U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 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 declare const updateProjectBranchAlchemyStateLease: API.OperationMethod; export type UpdateServiceError = BadRequest | Forbidden | NotFound | Conflict | UnprocessableEntity | PrismaOpError; /** Update service U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Updates the display name, logical id, or branch of a service. `logicalId` cannot be combined with `branchId` or `branchGitName` in one request; move the service first, then set its `logicalId`. */ export declare const updateService: API.OperationMethod; export type UpdateUrlError = BadRequest | NotFound | Conflict | UnprocessableEntity | PrismaOpError; /** Update a RoutingUrl U+26A0 Experimental endpoint: this API is in active development and may change at any time without notice. U+26A0 Changes the hostname, the service or the `logicalId`. Nothing is refused for want of a verified domain ownership. A request that changes none of them changes nothing. A hostname change removes the old hostname's custom domain and makes the RoutingUrl `pending`. A service change keeps its status, and the hostname moves to the new service. A new hostname, or a service in another region, is registered with Foundry as for a create, and that registration counts against the workspace's hourly limit of new certificates. */ export declare const updateUrl: API.OperationMethod; export { layerS3, S3BucketName, S3CredentialsError, type LayerS3Options } from "../layer-s3.ts"; //# sourceMappingURL=management.d.ts.map