From dc4f247e79d78128ef86640fa7bc96daee6db2b0 Mon Sep 17 00:00:00 2001 From: "K-Dog (Kevin)" Date: Tue, 1 Dec 2026 21:46:40 +0800 Subject: [PATCH] Revert "chore: update prod api types (#54394)" (#54404) This reverts commit 37d4f444b437c276b45e975c8ab62418e3f78037. OpenFGA model needs updating first before updating the API types --- .../Account/AccessTokens/AccessToken.roles.ts | 4 - .../InvoicesSettings.test.tsx | 4 - .../platform-webhooks-fetchers.ts | 14 +- apps/studio/package.json | 2 +- packages/api-types/types/api-v1.d.ts | 30 +- packages/api-types/types/api-v2.d.ts | 2202 ++--------------- packages/api-types/types/fga-requirements.ts | 25 - packages/api-types/types/platform.d.ts | 677 +---- packages/shared-data/package.json | 2 +- pnpm-lock.yaml | 14 +- 10 files changed, 175 insertions(+), 2799 deletions(-) diff --git a/apps/studio/components/interfaces/Account/AccessTokens/AccessToken.roles.ts b/apps/studio/components/interfaces/Account/AccessTokens/AccessToken.roles.ts index f25764f8570..7a52082e4cf 100644 --- a/apps/studio/components/interfaces/Account/AccessTokens/AccessToken.roles.ts +++ b/apps/studio/components/interfaces/Account/AccessTokens/AccessToken.roles.ts @@ -146,10 +146,6 @@ export const FGA_SCOPE_MINIMUM_ROLE: Record = { edge_functions_write: 'developer', edge_functions_secrets_read: 'readonly', edge_functions_secrets_write: 'administrator', - environment_secrets_read: 'readonly', - environment_secrets_write: 'administrator', - environment_variables_read: 'readonly', - environment_variables_write: 'developer', infra_add_ons_read: 'readonly', infra_add_ons_write: 'administrator', infra_disk_config_read: 'readonly', diff --git a/apps/studio/components/interfaces/Organization/InvoicesSettings/InvoicesSettings.test.tsx b/apps/studio/components/interfaces/Organization/InvoicesSettings/InvoicesSettings.test.tsx index 66fd1577014..99417bcc74a 100644 --- a/apps/studio/components/interfaces/Organization/InvoicesSettings/InvoicesSettings.test.tsx +++ b/apps/studio/components/interfaces/Organization/InvoicesSettings/InvoicesSettings.test.tsx @@ -55,10 +55,6 @@ const createMockInvoice = (details: Partial = {}): Invoice => ({ id: 'in_123', number: 'ABCD-0001', amount_due: 0, - amount_refunded_cents: 0, - credit_notes_applied_cents: 0, - payment_details: null, - total_cents: 0, invoice_pdf: 'https://example.com/invoice.pdf', payment_attempted: false, payment_is_processing: false, diff --git a/apps/studio/data/platform-webhooks/platform-webhooks-fetchers.ts b/apps/studio/data/platform-webhooks/platform-webhooks-fetchers.ts index 964a81db376..085a50a5498 100644 --- a/apps/studio/data/platform-webhooks/platform-webhooks-fetchers.ts +++ b/apps/studio/data/platform-webhooks/platform-webhooks-fetchers.ts @@ -18,9 +18,6 @@ const handleError = (error: unknown): never => { return sharedHandleError(error) } -// The spec declares `page` as a deep object, which must serialize as `page[limit]=…` on the wire. -const pageQuerySerializer = { object: { style: 'deepObject', explode: true } } as const - export type WebhookScopeParams = | { scope: 'organization'; orgSlug: string } | { scope: 'project'; projectRef: string } @@ -51,19 +48,18 @@ export async function listWebhookEndpoints( signal?: AbortSignal ) { const query = { - page: { limit: page?.limit?.toString(), offset: page?.offset?.toString() }, + 'page[limit]': page?.limit?.toString(), + 'page[offset]': page?.offset?.toString(), } const { data, error } = scope.scope === 'organization' ? await get('/v2/organizations/{slug}/webhooks/endpoints', { params: { path: { slug: scope.orgSlug }, query }, - querySerializer: pageQuerySerializer, signal, }) : await get('/v2/projects/{ref}/webhooks/endpoints', { params: { path: { ref: scope.projectRef }, query }, - querySerializer: pageQuerySerializer, signal, }) @@ -159,19 +155,19 @@ export async function listWebhookDeliveries( signal?: AbortSignal ) { const query = { - page: { size: page?.size?.toString(), after: page?.after, before: page?.before }, + 'page[size]': page?.size?.toString(), + 'page[after]': page?.after, + 'page[before]': page?.before, } const { data, error } = scope.scope === 'organization' ? await get('/v2/organizations/{slug}/webhooks/endpoints/{id}/deliveries', { params: { path: { slug: scope.orgSlug, id: endpointId }, query }, - querySerializer: pageQuerySerializer, signal, }) : await get('/v2/projects/{ref}/webhooks/endpoints/{id}/deliveries', { params: { path: { ref: scope.projectRef, id: endpointId }, query }, - querySerializer: pageQuerySerializer, signal, }) diff --git a/apps/studio/package.json b/apps/studio/package.json index c64218f973f..4d6a8fe3ad1 100644 --- a/apps/studio/package.json +++ b/apps/studio/package.json @@ -70,7 +70,7 @@ "@supabase/mcp-server-supabase": "^0.20.0", "@supabase/pg-meta": "workspace:*", "@supabase/realtime-js": "catalog:", - "@supabase/shared-types": "0.1.102", + "@supabase/shared-types": "0.1.98", "@supabase/supabase-js": "catalog:", "@tanstack/react-devtools": "^0.10.3", "@tanstack/react-hotkeys": "^0.10.0", diff --git a/packages/api-types/types/api-v1.d.ts b/packages/api-types/types/api-v1.d.ts index ee55f1dc48b..6f83c38720a 100644 --- a/packages/api-types/types/api-v1.d.ts +++ b/packages/api-types/types/api-v1.d.ts @@ -4120,7 +4120,7 @@ export interface components { code: 'entitlement_required' /** @description Entitlement feature key that failed the check */ feature: string - /** @description Dashboard URL where the feature can be unlocked: the organization billing page, or the project add-ons page when a per-project add-on is missing. Present when the organization or project is resolvable */ + /** @description Billing page URL for the organization, present when the org is resolvable */ upgrade_url?: string } /** @description Human-readable explanation of the plan gate */ @@ -5208,26 +5208,9 @@ export interface components { * "clone": "RUNNING", * "configure": "RUNNING", * "migrate": "RUNNING", - * "deploy": "CREATED", - * "api_errors": [ - * { - * "step": "configure", - * "method": "PUT", - * "path": "/v1/projects/abcdefghijklmnopqrst/config/auth", - * "status_code": 503 - * } - * ] + * "deploy": "CREATED" * } */ UpdateRunStatusBody: { - /** @description Management API errors of the run so far. For each step whose status is in the request, these replace its stored errors, or clear them if none are listed. Errors of a step without a status in the request are ignored. */ - api_errors?: { - method: string - path: string - /** @description HTTP status code of the response, or 0 if the request timed out */ - status_code: number - /** @enum {string} */ - step: 'clone' | 'pull' | 'health' | 'configure' | 'migrate' | 'seed' | 'deploy' - }[] /** @enum {string} */ clone?: 'CREATED' | 'DEAD' | 'EXITED' | 'PAUSED' | 'REMOVING' | 'RESTARTING' | 'RUNNING' /** @enum {string} */ @@ -11179,15 +11162,6 @@ export interface operations { } content?: never } - /** @description The project does not have the PITR add-on, or the request cannot be fulfilled */ - 400: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['PlanGateErrorBody'] - } - } /** @description Unauthorized */ 401: { headers: { diff --git a/packages/api-types/types/api-v2.d.ts b/packages/api-types/types/api-v2.d.ts index 445e9119818..f1e41459b6c 100644 --- a/packages/api-types/types/api-v2.d.ts +++ b/packages/api-types/types/api-v2.d.ts @@ -117,11 +117,7 @@ export interface paths { path?: never cookie?: never } - /** - * Lists pending organization invitations - * @description Returns a cursor-paginated list of invitations that have been sent but not yet accepted. Invitation links stop working 24 hours after `invited_at` (see `expires_at`), but an expired invitation stays listed and still blocks re-inviting the same email with the same SSO requirement until it is deleted. To resend, delete it first and create it again with the same `require_sso` value as the original request; revoking an invitation to the owner role requires an owner. - */ - get: operations['v2-list-organization-invitations'] + get?: never put?: never /** * Creates organization invitations @@ -386,28 +382,6 @@ export interface paths { patch?: never trace?: never } - '/v2/projects/{ref}/analytics/traces/{trace_id}': { - parameters: { - query?: never - header?: never - path?: never - cookie?: never - } - /** - * Get spans for a trace - * @description Returns the spans of a distributed trace that belong to this project. Returns an empty list if nothing matches. - * - * This endpoint is currently in its **Alpha** stage. - */ - get: operations['v2-get-trace'] - put?: never - post?: never - delete?: never - options?: never - head?: never - patch?: never - trace?: never - } '/v2/projects/{ref}/backups/download': { parameters: { query?: never @@ -425,23 +399,6 @@ export interface paths { patch?: never trace?: never } - '/v2/projects/{ref}/backups/downloadable-backups': { - parameters: { - query?: never - header?: never - path?: never - cookie?: never - } - /** Gets backups that might be downloadable, but potentially not restorable. */ - get: operations['v2-project-get-downloadable-backups'] - put?: never - post?: never - delete?: never - options?: never - head?: never - patch?: never - trace?: never - } '/v2/projects/{ref}/branches': { parameters: { query?: never @@ -578,162 +535,6 @@ export interface paths { patch?: never trace?: never } - '/v2/projects/{ref}/database/clone/cloneable-backups': { - parameters: { - query?: never - header?: never - path?: never - cookie?: never - } - /** List the valid physical backups that can be used to clone into a new project */ - get: operations['v2-projects-database-cloneable-backups'] - put?: never - post?: never - delete?: never - options?: never - head?: never - patch?: never - trace?: never - } - '/v2/projects/{ref}/database/clone/status': { - parameters: { - query?: never - header?: never - path?: never - cookie?: never - } - /** Retrieve the current status of an existing cloning process */ - get: operations['v2-projects-database-clone-status'] - put?: never - post?: never - delete?: never - options?: never - head?: never - patch?: never - trace?: never - } - '/v2/projects/{ref}/environments/{environment}/deploy': { - parameters: { - query?: never - header?: never - path?: never - cookie?: never - } - get?: never - put?: never - /** - * Deploy an environment to its branches - * @description Starts a run on every branch that uses the environment: the default branch for `production`, every other branch for `development`. Runs are asynchronous. Poll each one with `GET /v1/projects/{project_ref}/actions/{workflow_run_id}`. A branch is skipped and listed with a `skipped_reason` when it is scheduled for deletion, not healthy (for example paused) or has no GitHub connection. - * - * This endpoint is currently in its **Beta** stage. - */ - post: operations['v2-deploy-environment'] - delete?: never - options?: never - head?: never - patch?: never - trace?: never - } - '/v2/projects/{ref}/environments/{environment}/secrets': { - parameters: { - query?: never - header?: never - path?: never - cookie?: never - } - /** - * List secrets of an environment - * @description Returns the names of the secrets. Secret values are never returned. - * - * This endpoint is currently in its **Beta** stage. - */ - get: operations['v2-list-environment-secrets'] - put?: never - post?: never - delete?: never - options?: never - head?: never - patch?: never - trace?: never - } - '/v2/projects/{ref}/environments/{environment}/secrets/{name}': { - parameters: { - query?: never - header?: never - path?: never - cookie?: never - } - get?: never - /** - * Create or replace a secret in an environment - * @description Encrypts the value with the environment's data encryption key and stores it. The value cannot be read back. - * - * This endpoint is currently in its **Beta** stage. - */ - put: operations['v2-set-environment-secret'] - post?: never - /** - * Delete a secret from an environment - * @description This is an **experimental** endpoint. It is subject to change or removal in future versions. Use it with caution, as it may not remain supported or stable. - * - * This endpoint is currently in its **Beta** stage. - */ - delete: operations['v2-delete-environment-secret'] - options?: never - head?: never - patch?: never - trace?: never - } - '/v2/projects/{ref}/environments/{environment}/variables': { - parameters: { - query?: never - header?: never - path?: never - cookie?: never - } - /** - * List variables of an environment - * @description This is an **experimental** endpoint. It is subject to change or removal in future versions. Use it with caution, as it may not remain supported or stable. - * - * This endpoint is currently in its **Beta** stage. - */ - get: operations['v2-list-environment-variables'] - put?: never - post?: never - delete?: never - options?: never - head?: never - patch?: never - trace?: never - } - '/v2/projects/{ref}/environments/{environment}/variables/{name}': { - parameters: { - query?: never - header?: never - path?: never - cookie?: never - } - get?: never - /** - * Create or replace a variable in an environment - * @description This is an **experimental** endpoint. It is subject to change or removal in future versions. Use it with caution, as it may not remain supported or stable. - * - * This endpoint is currently in its **Beta** stage. - */ - put: operations['v2-set-environment-variable'] - post?: never - /** - * Delete a variable from an environment - * @description This is an **experimental** endpoint. It is subject to change or removal in future versions. Use it with caution, as it may not remain supported or stable. - * - * This endpoint is currently in its **Beta** stage. - */ - delete: operations['v2-delete-environment-variable'] - options?: never - head?: never - patch?: never - trace?: never - } '/v2/projects/{ref}/functions': { parameters: { query?: never @@ -923,25 +724,7 @@ export interface paths { } /** * Inspect Warehouse capacity diagnostics - * @description Returns capacity, admission, assignment-wait, and activation measurements over a bounded time - * range, using the project’s stored Warehouse placement. Use `since` or both `from` and `to`; - * the default is the last 30 minutes. - * - * Each measurement includes its definition, unit, aggregation, requested and effective ranges, - * `rate_window_seconds`, source-sample freshness, availability, coverage, and full series with - * dimension labels such as `reason`, `kind`, and `result`. - * - * Executor invocations in flight are distinct from worker admission grants. Occupied admission - * includes active plus pending grants. The configured admission limit does not imply an open - * gate or spare capacity. Missing, stale, and insufficient observations remain unavailable or - * `null`; they do not establish healthy or idle capacity. - * - * Point timestamps are evaluation times; `last_sample_at` is the original source-sample time. - * Rates and latency quantiles describe the effective rate window at each point, not the entire - * requested range. - * - * Each request returns up to eight measurements, and a failure of one measurement does not - * discard the other results. No raw queries or backend selectors are accepted. + * @description Returns capacity, admission, assignment-wait, and activation measurements over a bounded time range, using the project’s stored Warehouse placement. Use since or both from and to; the default is the last 30 minutes. Each measurement includes its definition, unit, aggregation, requested and effective ranges, rate_window_seconds, source-sample freshness, availability, coverage, and full series with dimension labels such as reason, kind, and result. Executor invocations in flight are distinct from worker admission grants. Occupied admission includes active plus pending grants. The configured admission limit does not imply an open gate or spare capacity. Missing, stale, and insufficient observations remain unavailable or null; they do not establish healthy or idle capacity. Point timestamps are evaluation times; last_sample_at is the original source-sample time. Rates and latency quantiles describe the effective rate window at each point, not the entire requested range. Each request returns up to eight measurements, and a failure of one measurement does not discard the other results. No raw queries or backend selectors are accepted. * * This endpoint is currently in its **Alpha** stage. */ @@ -963,7 +746,7 @@ export interface paths { } /** * Get Warehouse Flight SQL connection details - * @description Returns the public Arrow Flight SQL endpoint resolved from the project's Warehouse routing, with TLS required on port 443. Status is configured availability and query connectivity is not checked, so DNS readiness does not prove a query will succeed. Login uses a role in the source project database with that role's existing password (postgres uses the project database password), including when the catalog and storage are in another project. The role needs supabase_warehouse_reader membership, which is separate from Management API authorization. No passwords, tokens, catalog credentials or private endpoints are returned, and endpoint, host and port are null unless status is available or pending. Example client: Databow. See the [Databow installation guide](https://docs.columnar.tech/databow/installation/) for setup instructions, then connect with `databow --driver flightsql --uri 'grpc+tls://:443' --username postgres --password ''`. + * @description Returns the public Arrow Flight SQL endpoint resolved from the project's Warehouse routing, with TLS required on port 443. Status is configured availability and query connectivity is not checked, so DNS readiness does not prove a query will succeed. Login uses a role in the source project database with that role's existing password (postgres uses the project database password), including when the catalog and storage are in another project. The role needs supabase_warehouse_reader membership, which is separate from Management API authorization. No passwords, tokens, catalog credentials or private endpoints are returned, and endpoint, host and port are null unless status is available or pending. Example client: usql -W 'flightsql://postgres@:443?tls=enabled'. * * This endpoint is currently in its **Alpha** stage. */ @@ -998,28 +781,6 @@ export interface paths { patch?: never trace?: never } - '/v2/projects/{ref}/warehouse/ingestion-stats': { - parameters: { - query?: never - header?: never - path?: never - cookie?: never - } - /** - * Inspect Warehouse ingestion throughput and WAL lag - * @description Returns DuckLake ingestion throughput and WAL lag from the authorized pipelines and their independently resolved ETL regions. Select from six measurements: events received/processed per second, bytes received/processed per second, replication WAL lag and receive WAL lag. All six are selected by default. Use since or both from and to; defaults to the last 30 minutes. Rates describe each effective rate window. Pipeline IDs and worker, replication-path or event-type dimensions are retained. WAL lag is bytes; negative sentinels become null. Processed throughput acknowledges destination acceptance, not guaranteed durability. Missing, stale and unavailable values remain null. No raw queries or backend selection are accepted. A failure of one measurement does not discard successful siblings. Maintenance, inline-flush and sampled storage-health measurements are available from storage-stats. - * - * This endpoint is currently in its **Alpha** stage. - */ - get: operations['v2-get-warehouse-ingestion-stats'] - put?: never - post?: never - delete?: never - options?: never - head?: never - patch?: never - trace?: never - } '/v2/projects/{ref}/warehouse/query-stats': { parameters: { query?: never @@ -1097,7 +858,7 @@ export interface paths { put?: never /** * Start or restart Warehouse replication - * @description Starts a stopped managed pipeline or restarts a starting, started or failed pipeline, preserving the selected tables and saved layouts. Restart interrupts replication; in-progress initial copies may restart from scratch. If lost-slot recreation is configured, startup can rebuild destination tables. The response confirms acceptance only. Incomplete setup markers are preserved and require a successful setup retry. Inspect warehouse status for runtime diagnostics and observed table progress; these observations do not identify completion of this request. Inspect state before retrying an uncertain response. + * @description Starts a stopped managed pipeline or restarts a starting, started or failed pipeline, preserving the selected tables and saved layouts. A failed pod with an active desired workload needs restart; start alone can leave it unchanged. Restart interrupts replication; in-progress initial copies may restart from scratch. If lost-slot recreation is configured, startup can rebuild destination tables. The response confirms acceptance only. Incomplete setup markers are preserved and require a successful setup retry. Inspect warehouse status for runtime diagnostics and observed table progress; these observations do not identify completion of this request. Inspect state before retrying an uncertain response. * * This endpoint is currently in its **Alpha** stage. */ @@ -1196,28 +957,6 @@ export interface paths { patch?: never trace?: never } - '/v2/projects/{ref}/warehouse/storage-stats': { - parameters: { - query?: never - header?: never - path?: never - cookie?: never - } - /** - * Inspect Warehouse storage and maintenance statistics - * @description Returns up to eight DuckLake maintenance, inline-flush or sampled storage-health measurements from the authorized pipelines and their independently resolved ETL regions. Use since or both from and to; defaults to the last 30 minutes. Rates describe each effective rate window. Pipeline IDs and allowed operation, outcome, table or controller-process dimensions are retained. Table summary means are observations across tables and time, not current inventories. Sampled health has unknown observation freshness: last_sample_at is scrape receipt, not a successful recent health sample. Catalog-wide metrics require the collector exclusive-ownership gate; shared catalogs remain unavailable. Maintenance pause outcomes differ from run outcomes, and result availability is per controller process without global latest-run ordering. Missing, stale and unavailable values remain null. No raw queries or backend selection are accepted. A failure of one measurement does not discard successful siblings. Throughput and WAL lag are available from ingestion-stats. - * - * This endpoint is currently in its **Alpha** stage. - */ - get: operations['v2-get-warehouse-storage-stats'] - put?: never - post?: never - delete?: never - options?: never - head?: never - patch?: never - trace?: never - } '/v2/projects/{ref}/warehouse/tables': { parameters: { query?: never @@ -1473,7 +1212,6 @@ export interface components { /** @enum {string} */ code: | 'bad_request' - | 'conflict' | 'forbidden' | 'internal_server_error' | 'not_found' @@ -1502,13 +1240,6 @@ export interface components { | 'compute_not_enabled' | 'compute_request_rejected' | 'compute_unavailable' - | 'environment_deploy_launch_failed' - | 'environment_deploy_partially_failed' - | 'environment_root_project_required' - | 'environment_secret_not_found' - | 'environment_variable_already_exists' - | 'environment_variable_limit_reached' - | 'environment_variable_not_found' | 'notebook_cell_duplicate' | 'notebook_cell_unknown' | 'notebook_disabled' @@ -1570,46 +1301,6 @@ export interface components { [key: string]: unknown } } - CloneableBackupsResponse_Output: { - data: { - attributes: { - inserted_at: string - is_physical_backup: boolean - project_ref: string - /** @enum {string} */ - status: 'COMPLETED' | 'FAILED' | 'PENDING' | 'REMOVED' | 'ARCHIVED' | 'CANCELLED' - } - id: number - /** - * @description Resource type. - * @enum {string} - */ - type: 'project_cloneable_backup' - }[] - } - CloneStatusResponse_Output: { - data: { - attributes: { - inserted_at: string | null - /** - * @description The cloning status - * @enum {string} - */ - status: 'COMPLETED' | 'IN_PROGRESS' | 'FAILED' | 'REMOVED' - /** @description The destination cloned project */ - target_project: { - name: string - ref: string - } - updated_at: string | null - } - /** - * @description Resource type. - * @enum {string} - */ - type: 'project_clone_status' - }[] - } CreateLogDrainRequestOpenApi: { data: { attributes: { @@ -1703,23 +1394,6 @@ export interface components { type: 'log_drain' } } - DownloadableBackupsResponse_Output: { - data: { - attributes: { - inserted_at: string - is_physical_backup: boolean - project_ref: string - /** @enum {string} */ - status: 'COMPLETED' | 'FAILED' | 'PENDING' | 'REMOVED' | 'ARCHIVED' | 'CANCELLED' - } - id: number - /** - * @description Resource type. - * @enum {string} - */ - type: 'project_downloadable_backup' - }[] - } DownloadBackupBody: { data: { id: number @@ -1802,7 +1476,7 @@ export interface components { port?: number structured_data?: string /** @default false */ - tls: boolean + tls?: boolean } | { access_key_id?: string @@ -1819,13 +1493,13 @@ export interface components { | { endpoint?: string /** @default true */ - gzip: boolean + gzip?: boolean /** @default {} */ - headers: { + headers?: { [key: string]: string } /** @default http/protobuf */ - protocol: string + protocol?: string } description?: string name: string @@ -1838,37 +1512,6 @@ export interface components { type: 'log_drain' }[] } - ListSpansResponse_Output: { - data: { - attributes: { - /** @description Span duration in nanoseconds */ - duration_ns: number - /** @description Parent span ID, or null for a root span or when the parent is not visible */ - parent_span_id: string | null - service_name: string - /** @description internal, client, server, producer or consumer */ - span_kind: string - span_name: string - /** @description Span start, ISO 8601 UTC */ - start_time: string - /** @description unset, ok or error */ - status_code: string - } - id: string - /** - * @description Resource type. - * @enum {string} - */ - type: 'span' - }[] - meta: { - /** - * @description Spans that are untagged or sampled are missing - * @enum {boolean} - */ - partial: true - } - } LogDrainResponse_Output: { data: { attributes: { @@ -1925,7 +1568,7 @@ export interface components { port?: number structured_data?: string /** @default false */ - tls: boolean + tls?: boolean } | { access_key_id?: string @@ -1942,13 +1585,13 @@ export interface components { | { endpoint?: string /** @default true */ - gzip: boolean + gzip?: boolean /** @default {} */ - headers: { + headers?: { [key: string]: string } /** @default http/protobuf */ - protocol: string + protocol?: string } description?: string name: string @@ -2326,7 +1969,6 @@ export interface components { /** @enum {string} */ code: | 'bad_request' - | 'conflict' | 'forbidden' | 'internal_server_error' | 'not_found' @@ -2355,13 +1997,6 @@ export interface components { | 'compute_not_enabled' | 'compute_request_rejected' | 'compute_unavailable' - | 'environment_deploy_launch_failed' - | 'environment_deploy_partially_failed' - | 'environment_root_project_required' - | 'environment_secret_not_found' - | 'environment_variable_already_exists' - | 'environment_variable_limit_reached' - | 'environment_variable_not_found' | 'notebook_cell_duplicate' | 'notebook_cell_unknown' | 'notebook_disabled' @@ -2623,176 +2258,6 @@ export interface components { type: 'project_compute_instance' } } - V2DeployEnvironmentResponse_Output: { - data: { - attributes: { - /** - * Format: uuid - * @description ID of the branch. - */ - branch_id: string - /** @description Name of the branch. */ - branch_name: string - /** @description Ref of the project backing the branch. */ - project_ref: string - /** - * @description Why no run was started: the branch is scheduled for deletion, its project is not `ACTIVE_HEALTHY` (for example paused) or it has no GitHub connection (the project is not connected to a repository or the branch tracks no git branch). - * @enum {string} - */ - skipped_reason?: 'deletion_scheduled' | 'project_not_healthy' | 'no_git_connection' - /** @description ID of the run started on the branch. Poll it with `GET /v1/projects/{project_ref}/actions/{workflow_run_id}`. */ - workflow_run_id?: string - } - /** - * @description Resource type. - * @enum {string} - */ - type: 'environment_deployment' - }[] - error?: { - /** @enum {string} */ - code: - | 'bad_request' - | 'conflict' - | 'forbidden' - | 'internal_server_error' - | 'not_found' - | 'payment_required' - | 'rate_limit_exceeded' - | 'request_timeout' - | 'request_too_large' - | 'unauthorized' - | 'validation_failed' - | 'warehouse_selection_empty' - | 'warehouse_selection_conflict' - | 'warehouse_selection_changed' - | 'warehouse_lifecycle_conflict' - | 'warehouse_setup_invalid' - | 'warehouse_not_found' - | 'warehouse_metrics_unavailable' - | 'warehouse_setup_unavailable' - | 'agentic_credential_not_found' - | 'backup_unsupported' - | 'branch_admin_required' - | 'compute_build_context_too_large' - | 'compute_build_in_progress' - | 'compute_deploy_rate_limit_exceeded' - | 'compute_instance_limit_exceeded' - | 'compute_instance_not_found' - | 'compute_not_enabled' - | 'compute_request_rejected' - | 'compute_unavailable' - | 'environment_deploy_launch_failed' - | 'environment_deploy_partially_failed' - | 'environment_root_project_required' - | 'environment_secret_not_found' - | 'environment_variable_already_exists' - | 'environment_variable_limit_reached' - | 'environment_variable_not_found' - | 'notebook_cell_duplicate' - | 'notebook_cell_unknown' - | 'notebook_disabled' - | 'notebook_not_found' - | 'notebook_sort_invalid' - | 'organization_invitation_email_delivery_failed' - | 'organization_invitations_partially_failed' - | 'organization_inviter_email_missing' - | 'organization_role_name_invalid' - | 'organization_role_not_entitled' - | 'pagination_cursor_invalid' - | 'project_branch_resync_unsupported' - | 'project_not_found' - | 'project_privatelink_disabled' - | 'project_transfer_disabled' - | 'delivery_not_found' - | 'endpoint_disabled' - | 'endpoint_event_type_not_subscribed' - | 'endpoint_not_found' - | 'endpoint_url_unresolvable' - | 'webhooks_access_disabled' - description?: string - id?: string - issues?: { - code: string - description?: string - id?: string - links?: { - [key: string]: { - describedby?: string - href: string - meta?: { - [key: string]: unknown - } - rel?: string - title?: string - type?: string - } - } - message: string - meta: { - /** - * Format: uuid - * @description ID of the branch. - */ - branch_id: string - /** @description Ref of the project backing the branch. */ - project_ref: string - } - }[] - links?: { - [key: string]: { - describedby?: string - href: string - meta?: { - [key: string]: unknown - } - rel?: string - title?: string - type?: string - } - } - message: string - meta?: { - [key: string]: unknown - } - } - } - V2EnvironmentSecretResponse_Output: { - data: { - attributes: { - /** Format: date-time */ - created_at: string - /** Format: date-time */ - updated_at: string - } - /** @description Name of the variable or secret. */ - id: string - /** - * @description Resource type. - * @enum {string} - */ - type: 'environment_secret' - } - } - V2EnvironmentVariableResponse_Output: { - data: { - attributes: { - /** Format: date-time */ - created_at: string - /** Format: date-time */ - updated_at: string - /** @description Value of the variable. */ - value: string - } - /** @description Name of the variable or secret. */ - id: string - /** - * @description Resource type. - * @enum {string} - */ - type: 'environment_variable' - } - } V2ListComputeInstancesResponse_Output: { data: { attributes: { @@ -2836,42 +2301,6 @@ export interface components { type: 'project_compute_instance' }[] } - V2ListEnvironmentSecretsResponse_Output: { - data: { - attributes: { - /** Format: date-time */ - created_at: string - /** Format: date-time */ - updated_at: string - } - /** @description Name of the variable or secret. */ - id: string - /** - * @description Resource type. - * @enum {string} - */ - type: 'environment_secret' - }[] - } - V2ListEnvironmentVariablesResponse_Output: { - data: { - attributes: { - /** Format: date-time */ - created_at: string - /** Format: date-time */ - updated_at: string - /** @description Value of the variable. */ - value: string - } - /** @description Name of the variable or secret. */ - id: string - /** - * @description Resource type. - * @enum {string} - */ - type: 'environment_variable' - }[] - } V2ListGitHubConnectionsResponse_Output: { data: { attributes: { @@ -2945,78 +2374,6 @@ export interface components { prev: string | null } } - V2ListInvitationsResponse_Output: { - data: { - attributes: { - /** - * Format: email - * @description Email address of the invitation recipient. - * @example hello@example.com - */ - email: string - /** - * @description When the invitation link stops working (ISO 8601), 24 hours after `invited_at`. The invitation remains listed after this until it is deleted. - * @example 2026-09-05T18:23:40.324Z - */ - expires_at: string - /** - * @description When the invitation was created (ISO 8601). - * @example 2026-09-04T18:23:40.324Z - */ - invited_at: string - /** @description Projects the role is scoped to. Empty array for org-wide invitations. */ - projects: { - /** @description Project name */ - name: string - /** - * @description Project ref - * @example abcjuqabhgwjjutfvtpa - */ - ref: string - }[] - /** @description Whether the invitation is bound to an SSO provider, so it can only be accepted by an SSO account from that provider. Pending invitations are unique per email and SSO binding; to re-create one, send the same `require_sso` value as the original request. */ - require_sso: boolean - /** - * @description Role the invitee will receive. For project-scoped invitations this is the base role name. Null if the role no longer exists. - * @example developer - * @enum {string|null} - */ - role: 'owner' | 'administrator' | 'developer' | 'read-only' | 'no-access' | null - } - /** - * @description Invitation id - * @example 1024 - */ - id: string - /** - * @description Resource type. - * @enum {string} - */ - type: 'organization_invitation' - }[] - links: { - /** - * @description URL path to the first page if available. - * @example /v2/organizations/my-org/members/invitations?page[size]=10 - */ - first?: string | null - /** - * @description URL path to the last page if available. - * @example /v2/organizations/my-org/members/invitations?page[size]=10&page[after]=019adf7d-4513-71ba-b264-21900edb4295 - */ - last?: string | null - /** - * @description URL path to the next page. - * @example /v2/organizations/my-org/members/invitations?page[size]=10&page[after]=019adf7d-4513-7062-b292-78b86cc470a4 - */ - next: string | null - /** - * @description URL path to the previous page. - * @example /v2/organizations/my-org/members/invitations?page[size]=10&page[before]=019adf7d-4513-74c5-bb9a-f1bc0f7a95d7 - */ - prev: string | null - } - } V2ListMaintenanceWindowsResponse_Output: { data: { attributes: { @@ -3891,32 +3248,6 @@ export interface components { [key: string]: unknown } } - V2SetEnvironmentSecretRequest: { - data: { - attributes: { - /** @description Value of the secret. It is encrypted at rest and never returned by the API. Must be a single line. Escape line breaks yourself, for example as `\n`. */ - value: string - } - /** - * @description Resource type. - * @enum {string} - */ - type: 'environment_secret' - } - } - V2SetEnvironmentVariableRequest: { - data: { - attributes: { - /** @description Value of the variable. Must be a single line. Escape line breaks yourself, for example as `\n`. */ - value: string - } - /** - * @description Resource type. - * @enum {string} - */ - type: 'environment_variable' - } - } V2TransferProjectBody: { data: { attributes: { @@ -4046,7 +3377,7 @@ export interface components { data: { attributes: { /** @enum {string} */ - aggregation: 'sum' | 'occupied' | 'rate' | 'mean' | 'p95' + aggregation: 'rate' | 'sum' | 'mean' | 'p50' | 'p95' | 'p99' | 'occupied' /** @enum {string} */ availability: | 'ok' @@ -4064,37 +3395,61 @@ export interface components { start: number step: number } - /** @description Latest scraped sample timestamp in Unix seconds; not the query evaluation timestamp or proof of a successful recent health observation. */ + /** @description Latest observed source sample timestamp in Unix seconds; not the query evaluation timestamp. */ last_sample_at: number | null /** @enum {string} */ metric: + | 'query_rate' + | 'query_error_rate' + | 'query_timeout_rate' + | 'query_canceled_rate' + | 'query_duration_mean' + | 'query_duration_p50' + | 'query_duration_p95' + | 'query_duration_p99' + | 'duckdb_duration_mean' + | 'assignment_wait_mean' + | 'assignment_wait_p95' | 'query_in_flight' + | 'admission_rejection_rate' | 'worker_admission_limit' | 'worker_admission_active' | 'worker_admission_pending' | 'worker_admission_occupied' - | 'admission_rejection_rate' - | 'assignment_wait_mean' - | 'assignment_wait_p95' | 'activation_rate' | 'activation_duration_mean' | 'activation_duration_p95' + | 'rpc_rate' + | 'rpc_duration_mean' + | 'rpc_duration_p95' project_ref: string requested: { end: number /** @enum {string} */ metric: + | 'query_rate' + | 'query_error_rate' + | 'query_timeout_rate' + | 'query_canceled_rate' + | 'query_duration_mean' + | 'query_duration_p50' + | 'query_duration_p95' + | 'query_duration_p99' + | 'duckdb_duration_mean' + | 'assignment_wait_mean' + | 'assignment_wait_p95' | 'query_in_flight' + | 'admission_rejection_rate' | 'worker_admission_limit' | 'worker_admission_active' | 'worker_admission_pending' | 'worker_admission_occupied' - | 'admission_rejection_rate' - | 'assignment_wait_mean' - | 'assignment_wait_p95' | 'activation_rate' | 'activation_duration_mean' | 'activation_duration_p95' + | 'rpc_rate' + | 'rpc_duration_mean' + | 'rpc_duration_p95' start: number step?: number } @@ -4114,21 +3469,33 @@ export interface components { }[] }[] /** @enum {string} */ - unit: 'queries' | 'grants' | 'per_second' | 'seconds' + unit: 'per_second' | 'seconds' | 'queries' | 'grants' } /** @enum {string} */ id: + | 'query_rate' + | 'query_error_rate' + | 'query_timeout_rate' + | 'query_canceled_rate' + | 'query_duration_mean' + | 'query_duration_p50' + | 'query_duration_p95' + | 'query_duration_p99' + | 'duckdb_duration_mean' + | 'assignment_wait_mean' + | 'assignment_wait_p95' | 'query_in_flight' + | 'admission_rejection_rate' | 'worker_admission_limit' | 'worker_admission_active' | 'worker_admission_pending' | 'worker_admission_occupied' - | 'admission_rejection_rate' - | 'assignment_wait_mean' - | 'assignment_wait_p95' | 'activation_rate' | 'activation_duration_mean' | 'activation_duration_p95' + | 'rpc_rate' + | 'rpc_duration_mean' + | 'rpc_duration_p95' /** * @description Resource type. * @enum {string} @@ -4272,7 +3639,7 @@ export interface components { /** Format: date-time */ observed_at: string pipeline: { - /** @description Safe classification of the current runtime failure. Includes static customer guidance, without exit codes, provider messages or worker logs; does not establish its underlying cause. Unrecognized or malformed diagnostics are returned as `null`. */ + /** @description Safe classification of the current runtime failure. Includes static customer guidance, without exit codes, provider messages or worker logs; does not establish its underlying cause. Unrecognized or malformed diagnostics are omitted. */ diagnostic: { /** @enum {string} */ code: @@ -4541,90 +3908,11 @@ export interface components { type: 'warehouse_setup' } } - V2WarehouseIngestionStatsResponse_Output: { - data: { - attributes: { - /** @enum {string} */ - aggregation: 'rate' | 'max' - /** @enum {string} */ - availability: - | 'ok' - | 'partial' - | 'stale' - | 'no_data' - | 'insufficient_data' - | 'not_provisioned' - | 'disabled' - | 'unavailable' - definition: string - effective: { - end: number - rate_window_seconds: number - start: number - step: number - } - /** @description Latest scraped sample timestamp in Unix seconds; not the query evaluation timestamp or proof of a successful recent health observation. */ - last_sample_at: number | null - /** @enum {string} */ - metric: - | 'ingestion_events_received_rate' - | 'ingestion_events_processed_rate' - | 'ingestion_bytes_received_rate' - | 'ingestion_bytes_processed_rate' - | 'replication_wal_lag_bytes' - | 'replication_receive_wal_lag_bytes' - project_ref: string - requested: { - end: number - /** @enum {string} */ - metric: - | 'ingestion_events_received_rate' - | 'ingestion_events_processed_rate' - | 'ingestion_bytes_received_rate' - | 'ingestion_bytes_processed_rate' - | 'replication_wal_lag_bytes' - | 'replication_receive_wal_lag_bytes' - start: number - step?: number - } - scrape_interval_seconds: number - series: { - /** @description Grid point coverage, not proof that every worker was scraped. */ - coverage: { - expected_points: number - returned_points: number - } - labels: { - [key: string]: string - } - points: { - timestamp: number - value: number | null - }[] - }[] - /** @enum {string} */ - unit: 'per_second' | 'bytes_per_second' | 'bytes' - } - /** @enum {string} */ - id: - | 'ingestion_events_received_rate' - | 'ingestion_events_processed_rate' - | 'ingestion_bytes_received_rate' - | 'ingestion_bytes_processed_rate' - | 'replication_wal_lag_bytes' - | 'replication_receive_wal_lag_bytes' - /** - * @description Resource type. - * @enum {string} - */ - type: 'warehouse_metric' - }[] - } V2WarehouseQueryStatsResponse_Output: { data: { attributes: { /** @enum {string} */ - aggregation: 'rate' | 'mean' | 'p50' | 'p95' | 'p99' + aggregation: 'rate' | 'sum' | 'mean' | 'p50' | 'p95' | 'p99' | 'occupied' /** @enum {string} */ availability: | 'ok' @@ -4642,7 +3930,7 @@ export interface components { start: number step: number } - /** @description Latest scraped sample timestamp in Unix seconds; not the query evaluation timestamp or proof of a successful recent health observation. */ + /** @description Latest observed source sample timestamp in Unix seconds; not the query evaluation timestamp. */ last_sample_at: number | null /** @enum {string} */ metric: @@ -4655,6 +3943,17 @@ export interface components { | 'query_duration_p95' | 'query_duration_p99' | 'duckdb_duration_mean' + | 'assignment_wait_mean' + | 'assignment_wait_p95' + | 'query_in_flight' + | 'admission_rejection_rate' + | 'worker_admission_limit' + | 'worker_admission_active' + | 'worker_admission_pending' + | 'worker_admission_occupied' + | 'activation_rate' + | 'activation_duration_mean' + | 'activation_duration_p95' | 'rpc_rate' | 'rpc_duration_mean' | 'rpc_duration_p95' @@ -4672,6 +3971,17 @@ export interface components { | 'query_duration_p95' | 'query_duration_p99' | 'duckdb_duration_mean' + | 'assignment_wait_mean' + | 'assignment_wait_p95' + | 'query_in_flight' + | 'admission_rejection_rate' + | 'worker_admission_limit' + | 'worker_admission_active' + | 'worker_admission_pending' + | 'worker_admission_occupied' + | 'activation_rate' + | 'activation_duration_mean' + | 'activation_duration_p95' | 'rpc_rate' | 'rpc_duration_mean' | 'rpc_duration_p95' @@ -4694,7 +4004,7 @@ export interface components { }[] }[] /** @enum {string} */ - unit: 'per_second' | 'seconds' + unit: 'per_second' | 'seconds' | 'queries' | 'grants' } /** @enum {string} */ id: @@ -4707,6 +4017,17 @@ export interface components { | 'query_duration_p95' | 'query_duration_p99' | 'duckdb_duration_mean' + | 'assignment_wait_mean' + | 'assignment_wait_p95' + | 'query_in_flight' + | 'admission_rejection_rate' + | 'worker_admission_limit' + | 'worker_admission_active' + | 'worker_admission_pending' + | 'worker_admission_occupied' + | 'activation_rate' + | 'activation_duration_mean' + | 'activation_duration_p95' | 'rpc_rate' | 'rpc_duration_mean' | 'rpc_duration_p95' @@ -4811,7 +4132,7 @@ export interface components { V2WarehouseResyncRequest: { data: { attributes: { - /** @description Literal source PostgreSQL schema of the table. */ + /** @description Literal source PostgreSQL schema. Omit table to select its current tables. */ schema: string /** @description Literal name of the single source table to reset and recopy. */ table: string @@ -5162,158 +4483,6 @@ export interface components { type: 'warehouse_setup' } } - V2WarehouseStorageStatsResponse_Output: { - data: { - attributes: { - /** @enum {string} */ - aggregation: 'rate' | 'max' | 'mean' - /** @enum {string} */ - availability: - | 'ok' - | 'partial' - | 'stale' - | 'no_data' - | 'insufficient_data' - | 'not_provisioned' - | 'disabled' - | 'unavailable' - definition: string - effective: { - end: number - rate_window_seconds: number - start: number - step: number - } - /** @description Latest scraped sample timestamp in Unix seconds; not the query evaluation timestamp or proof of a successful recent health observation. */ - last_sample_at: number | null - /** @enum {string} */ - metric: - | 'maintenance_request_rate' - | 'maintenance_pause_active' - | 'maintenance_pause_duration_mean' - | 'maintenance_run_rate' - | 'maintenance_results_available' - | 'maintenance_merge_adjacent_files_created_rate' - | 'maintenance_rewrite_data_files_created_rate' - | 'maintenance_expired_snapshots_rate' - | 'maintenance_cleaned_up_files_rate' - | 'inline_flush_rows_rate' - | 'inline_flush_rows_mean' - | 'inline_flush_duration_mean' - | 'table_active_data_files_mean' - | 'table_active_data_bytes_mean' - | 'table_active_data_file_avg_size_bytes_mean' - | 'table_small_file_ratio_mean' - | 'table_active_delete_files_mean' - | 'table_active_delete_bytes_mean' - | 'table_deleted_row_ratio_mean' - | 'table_inlined_data_bytes' - | 'catalog_active_data_files' - | 'catalog_snapshots' - | 'catalog_oldest_snapshot_age' - | 'catalog_deletion_backlog_files' - | 'catalog_deletion_backlog_bytes' - | 'catalog_oldest_deletion_age' - /** - * @description Present for sampled ETL health: successful source-observation freshness is unknown. last_sample_at reports scrape receipt only, not a successful catalog or table sample. - * @enum {string} - */ - observation_freshness?: 'unknown' - project_ref: string - requested: { - end: number - /** @enum {string} */ - metric: - | 'maintenance_request_rate' - | 'maintenance_pause_active' - | 'maintenance_pause_duration_mean' - | 'maintenance_run_rate' - | 'maintenance_results_available' - | 'maintenance_merge_adjacent_files_created_rate' - | 'maintenance_rewrite_data_files_created_rate' - | 'maintenance_expired_snapshots_rate' - | 'maintenance_cleaned_up_files_rate' - | 'inline_flush_rows_rate' - | 'inline_flush_rows_mean' - | 'inline_flush_duration_mean' - | 'table_active_data_files_mean' - | 'table_active_data_bytes_mean' - | 'table_active_data_file_avg_size_bytes_mean' - | 'table_small_file_ratio_mean' - | 'table_active_delete_files_mean' - | 'table_active_delete_bytes_mean' - | 'table_deleted_row_ratio_mean' - | 'table_inlined_data_bytes' - | 'catalog_active_data_files' - | 'catalog_snapshots' - | 'catalog_oldest_snapshot_age' - | 'catalog_deletion_backlog_files' - | 'catalog_deletion_backlog_bytes' - | 'catalog_oldest_deletion_age' - start: number - step?: number - } - scrape_interval_seconds: number - series: { - /** @description Grid point coverage, not proof that every worker was scraped. */ - coverage: { - expected_points: number - returned_points: number - } - labels: { - [key: string]: string - } - points: { - timestamp: number - value: number | null - }[] - }[] - /** @enum {string} */ - unit: - | 'per_second' - | 'boolean' - | 'seconds' - | 'rows' - | 'files' - | 'bytes' - | 'ratio' - | 'snapshots' - } - /** @enum {string} */ - id: - | 'maintenance_request_rate' - | 'maintenance_pause_active' - | 'maintenance_pause_duration_mean' - | 'maintenance_run_rate' - | 'maintenance_results_available' - | 'maintenance_merge_adjacent_files_created_rate' - | 'maintenance_rewrite_data_files_created_rate' - | 'maintenance_expired_snapshots_rate' - | 'maintenance_cleaned_up_files_rate' - | 'inline_flush_rows_rate' - | 'inline_flush_rows_mean' - | 'inline_flush_duration_mean' - | 'table_active_data_files_mean' - | 'table_active_data_bytes_mean' - | 'table_active_data_file_avg_size_bytes_mean' - | 'table_small_file_ratio_mean' - | 'table_active_delete_files_mean' - | 'table_active_delete_bytes_mean' - | 'table_deleted_row_ratio_mean' - | 'table_inlined_data_bytes' - | 'catalog_active_data_files' - | 'catalog_snapshots' - | 'catalog_oldest_snapshot_age' - | 'catalog_deletion_backlog_files' - | 'catalog_deletion_backlog_bytes' - | 'catalog_oldest_deletion_age' - /** - * @description Resource type. - * @enum {string} - */ - type: 'warehouse_metric' - }[] - } V2WarehouseTableLayoutResponse_Output: { data: { attributes: { @@ -5733,23 +4902,16 @@ export interface operations { } page?: { /** - * @description Cursor in cursor-based pagination to return up to `page[size]` records after (exclusive) the entry specified by this query param. + * @description Project ref * @example abcdefghijklmnopqrst */ after?: string /** - * @description Cursor in cursor-based pagination to return up to `page[size]` records before (exclusive) the entry specified by this query param. + * @description Project ref * @example abcdefghijklmnopqrst */ before?: string - /** - * @description String-encoded number specifying up to how many records to return. Default: 20. - * - * Minimum: 1. Maximum: 100. - * @default 20 - * @example 10 - */ - size?: string + size?: number } } header?: never @@ -5865,24 +5027,11 @@ export interface operations { username?: string } page?: { - /** - * Format: uuid - * @description Cursor in cursor-based pagination to return up to `page[size]` records after (exclusive) the entry specified by this query param. - */ + /** Format: uuid */ after?: string - /** - * Format: uuid - * @description Cursor in cursor-based pagination to return up to `page[size]` records before (exclusive) the entry specified by this query param. - */ + /** Format: uuid */ before?: string - /** - * @description String-encoded number specifying up to how many records to return. Default: 20. - * - * Minimum: 1. Maximum: 100. - * @default 20 - * @example 10 - */ - size?: string + size?: number } } header?: never @@ -6069,89 +5218,6 @@ export interface operations { } } } - 'v2-list-organization-invitations': { - parameters: { - query?: { - filter?: { - /** Format: email */ - email?: string - } - page?: { - /** - * @description Cursor in cursor-based pagination to return up to `page[size]` records after (exclusive) the entry specified by this query param. - * @example 1024 - */ - after?: string - /** - * @description Cursor in cursor-based pagination to return up to `page[size]` records before (exclusive) the entry specified by this query param. - * @example 1024 - */ - before?: string - /** - * @description String-encoded number specifying up to how many records to return. Default: 20. - * - * Minimum: 1. Maximum: 100. - * @default 20 - * @example 10 - */ - size?: string - } - } - header?: never - path: { - /** @description Organization slug */ - slug: string - } - cookie?: never - } - requestBody?: never - responses: { - 200: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['V2ListInvitationsResponse_Output'] - } - } - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description This feature requires the Team, or Enterprise organization plan. */ - 402: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description Forbidden action */ - 403: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description Rate limit exceeded */ - 429: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - } - } 'v2-create-organization-invitations': { parameters: { query?: never @@ -6203,15 +5269,6 @@ export interface operations { 'application/json': components['schemas']['ErrorResponseBody'] } } - /** @description An invitation with the same SSO requirement is already pending for one of the emails, or the user is already a member. Delete the pending invitation to resend it; revoking an invitation to the owner role requires an owner. */ - 409: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } /** @description Rate limit exceeded */ 429: { headers: { @@ -6274,15 +5331,6 @@ export interface operations { 'application/json': components['schemas']['ErrorResponseBody'] } } - /** @description No pending invitation exists for one of the emails. */ - 404: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } /** @description Rate limit exceeded */ 429: { headers: { @@ -6298,18 +5346,9 @@ export interface operations { parameters: { query?: { page?: { - /** @description Cursor in cursor-based pagination to return up to `page[size]` records after (exclusive) the entry specified by this query param. */ after?: string - /** @description Cursor in cursor-based pagination to return up to `page[size]` records before (exclusive) the entry specified by this query param. */ before?: string - /** - * @description String-encoded number specifying up to how many records to return. Default: 20. - * - * Minimum: 1. Maximum: 100. - * @default 20 - * @example 10 - */ - size?: string + size?: number } /** @description Case-insensitive substring match on the project name. */ search?: string @@ -7061,20 +6100,12 @@ export interface operations { 'v2-organizations-slug-webhooks-endpoints-get': { parameters: { query?: { - page?: { - /** - * @description Up to how many records to return. - * @default 20 - */ - limit?: string - /** - * @description Offset for offset-based pagination. - * - * Offset should be dividable by `page[limit]` without a reminder (`offset % limit === 0`), otherwise it will cause weird behavior when used on a frontend. - * @default 0 - */ - offset?: string - } + /** @description Up to how many records to return. */ + 'page[limit]'?: string + /** @description Offset for offset-based pagination. + * + * Offset should be dividable by `page[limit]` without a reminder (`offset % limit === 0`), otherwise it will cause weird behavior when used on a frontend. */ + 'page[offset]'?: string } header?: never path: { @@ -9284,26 +8315,12 @@ export interface operations { 'v2-organizations-slug-webhooks-endpoints-id-deliveries-get': { parameters: { query?: { - page?: { - /** - * Format: uuid - * @description Cursor in cursor-based pagination to return up to `page[size]` records after (exclusive) the entry specified by this query param. - */ - after?: string - /** - * Format: uuid - * @description Cursor in cursor-based pagination to return up to `page[size]` records before (exclusive) the entry specified by this query param. - */ - before?: string - /** - * @description Up to how many records to return. - * - * Minimum: 1. Maximum: 100. - * @default 20 - * @example 10 - */ - size?: string - } + /** @description Cursor in cursor-based pagination to return up to `page[size]` records after (exclusive) the entry specified by this query param. */ + 'page[after]'?: string + /** @description Cursor in cursor-based pagination to return up to `page[size]` records before (exclusive) the entry specified by this query param. */ + 'page[before]'?: string + /** @description Up to how many records to return. */ + 'page[size]'?: string } header?: never path: { @@ -10378,57 +9395,6 @@ export interface operations { } } } - 'v2-get-trace': { - parameters: { - query?: never - header?: never - path: { - /** @description Project ref */ - ref: string - /** @description Trace ID (W3C Trace Context, 32 lowercase hex characters) */ - trace_id: string - } - cookie?: never - } - requestBody?: never - responses: { - 200: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ListSpansResponse_Output'] - } - } - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description Forbidden action */ - 403: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description Rate limit exceeded */ - 429: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - } - } 'v2-download-project-backup': { parameters: { query?: never @@ -10500,73 +9466,6 @@ export interface operations { } } } - 'v2-project-get-downloadable-backups': { - parameters: { - query?: never - header?: never - path: { - /** @description Project ref */ - ref: string - } - cookie?: never - } - requestBody?: never - responses: { - 200: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['DownloadableBackupsResponse_Output'] - } - } - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description Forbidden action */ - 403: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description Project not found */ - 404: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description Rate limit exceeded */ - 429: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description Failed to get project backups */ - 500: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - } - } 'v2-create-a-branch': { parameters: { query?: never @@ -10947,608 +9846,6 @@ export interface operations { } } } - 'v2-projects-database-cloneable-backups': { - parameters: { - query?: never - header?: never - path: { - /** @description Project ref */ - ref: string - } - cookie?: never - } - requestBody?: never - responses: { - 200: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['CloneableBackupsResponse_Output'] - } - } - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description Forbidden action */ - 403: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description Rate limit exceeded */ - 429: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description Failed to list cloneable backups candidates */ - 500: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - } - } - 'v2-projects-database-clone-status': { - parameters: { - query?: never - header?: never - path: { - /** @description Project ref */ - ref: string - } - cookie?: never - } - requestBody?: never - responses: { - 200: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['CloneStatusResponse_Output'] - } - } - /** @description Invalid request for clone project status */ - 400: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description Forbidden action */ - 403: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description Rate limit exceeded */ - 429: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description Failed to retrieve clone project status */ - 500: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - } - } - 'v2-deploy-environment': { - parameters: { - query?: never - header?: never - path: { - /** @description Environment of the project. The default branch uses `production`, every other branch `development`. */ - environment: 'production' | 'development' - /** @description Project ref */ - ref: string - } - cookie?: never - } - requestBody?: never - responses: { - 202: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['V2DeployEnvironmentResponse_Output'] - } - } - /** @description Not the root project */ - 400: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description Forbidden action */ - 403: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description Rate limit exceeded */ - 429: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description Failed to start a run on any branch */ - 500: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - } - } - 'v2-list-environment-secrets': { - parameters: { - query?: never - header?: never - path: { - /** @description Environment of the project. The default branch uses `production`, every other branch `development`. */ - environment: 'production' | 'development' - /** @description Project ref */ - ref: string - } - cookie?: never - } - requestBody?: never - responses: { - 200: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['V2ListEnvironmentSecretsResponse_Output'] - } - } - /** @description Not the root project */ - 400: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description Forbidden action */ - 403: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description Rate limit exceeded */ - 429: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - } - } - 'v2-set-environment-secret': { - parameters: { - query?: never - header?: never - path: { - /** @description Environment of the project. The default branch uses `production`, every other branch `development`. */ - environment: 'production' | 'development' - /** @description Name of the variable or secret. Variables and secrets share one namespace. Must not start with the SUPABASE_ prefix. */ - name: string - /** @description Project ref */ - ref: string - } - cookie?: never - } - requestBody: { - content: { - 'application/json': components['schemas']['V2SetEnvironmentSecretRequest'] - } - } - responses: { - 200: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['V2EnvironmentSecretResponse_Output'] - } - } - /** @description Not the root project */ - 400: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description Forbidden action */ - 403: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description The name belongs to a variable of the environment, or the environment holds the maximum number of entries */ - 409: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description Rate limit exceeded */ - 429: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - } - } - 'v2-delete-environment-secret': { - parameters: { - query?: never - header?: never - path: { - /** @description Environment of the project. The default branch uses `production`, every other branch `development`. */ - environment: 'production' | 'development' - /** @description Name of the variable or secret. Variables and secrets share one namespace. Must not start with the SUPABASE_ prefix. */ - name: string - /** @description Project ref */ - ref: string - } - cookie?: never - } - requestBody?: never - responses: { - 204: { - headers: { - [name: string]: unknown - } - content?: never - } - /** @description Not the root project */ - 400: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description Forbidden action */ - 403: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description Secret not found */ - 404: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description Rate limit exceeded */ - 429: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - } - } - 'v2-list-environment-variables': { - parameters: { - query?: never - header?: never - path: { - /** @description Environment of the project. The default branch uses `production`, every other branch `development`. */ - environment: 'production' | 'development' - /** @description Project ref */ - ref: string - } - cookie?: never - } - requestBody?: never - responses: { - 200: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['V2ListEnvironmentVariablesResponse_Output'] - } - } - /** @description Not the root project */ - 400: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description Forbidden action */ - 403: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description Rate limit exceeded */ - 429: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - } - } - 'v2-set-environment-variable': { - parameters: { - query?: never - header?: never - path: { - /** @description Environment of the project. The default branch uses `production`, every other branch `development`. */ - environment: 'production' | 'development' - /** @description Name of the variable or secret. Variables and secrets share one namespace. Must not start with the SUPABASE_ prefix. */ - name: string - /** @description Project ref */ - ref: string - } - cookie?: never - } - requestBody: { - content: { - 'application/json': components['schemas']['V2SetEnvironmentVariableRequest'] - } - } - responses: { - 200: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['V2EnvironmentVariableResponse_Output'] - } - } - /** @description Not the root project */ - 400: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description Forbidden action */ - 403: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description The name belongs to a secret of the environment, or the environment holds the maximum number of entries */ - 409: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description Rate limit exceeded */ - 429: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - } - } - 'v2-delete-environment-variable': { - parameters: { - query?: never - header?: never - path: { - /** @description Environment of the project. The default branch uses `production`, every other branch `development`. */ - environment: 'production' | 'development' - /** @description Name of the variable or secret. Variables and secrets share one namespace. Must not start with the SUPABASE_ prefix. */ - name: string - /** @description Project ref */ - ref: string - } - cookie?: never - } - requestBody?: never - responses: { - 204: { - headers: { - [name: string]: unknown - } - content?: never - } - /** @description Not the root project */ - 400: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description Forbidden action */ - 403: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description Variable not found */ - 404: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description Rate limit exceeded */ - 429: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - } - } 'v2-delete-project-function': { parameters: { query?: never @@ -11621,18 +9918,9 @@ export interface operations { name?: string } page?: { - /** @description Cursor in cursor-based pagination to return up to `page[size]` records after (exclusive) the entry specified by this query param. */ after?: string - /** @description Cursor in cursor-based pagination to return up to `page[size]` records before (exclusive) the entry specified by this query param. */ before?: string - /** - * @description String-encoded number specifying up to how many records to return. Default: 20. - * - * Minimum: 1. Maximum: 100. - * @default 20 - * @example 10 - */ - size?: string + size?: number } sort?: 'name' | '-name' | 'inserted_at' | '-inserted_at' } @@ -12419,15 +10707,15 @@ export interface operations { 'v2-get-warehouse-capacity': { parameters: { query?: { - /** @description Up to eight distinct measurements. Defaults to `query_in_flight`, `worker_admission_limit`, `worker_admission_active`, `worker_admission_pending`, `worker_admission_occupied`, `admission_rejection_rate`, `assignment_wait_p95`, `activation_duration_p95`. Supply a comma-separated list. Allowed measurements: `query_in_flight`, `worker_admission_limit`, `worker_admission_active`, `worker_admission_pending`, `worker_admission_occupied`, `admission_rejection_rate`, `assignment_wait_mean`, `assignment_wait_p95`, `activation_rate`, `activation_duration_mean`, `activation_duration_p95`. */ + /** @description Up to eight distinct measurements. Defaults to query_in_flight, worker_admission_limit, worker_admission_active, worker_admission_pending, worker_admission_occupied, admission_rejection_rate, assignment_wait_p95, activation_duration_p95. Supply a comma-separated list. Allowed measurements: query_in_flight, worker_admission_limit, worker_admission_active, worker_admission_pending, worker_admission_occupied, admission_rejection_rate, assignment_wait_mean, assignment_wait_p95, activation_rate, activation_duration_mean, activation_duration_p95. */ attributes?: string - /** @description Range start as an ISO 8601 timestamp with seconds and a time zone, for example `2026-11-18T09:30:00Z`, within the last 30 days. Requires to; cannot be combined with since. */ + /** @description Range start as an ISO timestamp, within the last 30 days. Requires to; cannot be combined with since. */ from?: string - /** @description Defaults to 1m. The effective step increases to stay within 1,441 points per series. Rate and latency windows are at least 5m. */ + /** @description Defaults to 1m. The effective step increases to stay within 1441 points per series. Rate and latency windows are at least 5m. */ interval?: '1m' | '5m' | '10m' | '30m' | '1h' | '1d' /** @description Look back from server time, for example 30m, 2h, or 1d. Defaults to 30m when from/to are omitted. Maximum 30d. Cannot be combined with from/to. */ since?: string - /** @description Range end as an ISO 8601 timestamp with seconds and a time zone, for example `2026-11-18T09:30:00Z`, no later than server time. Requires from; cannot be combined with since. The service tolerates up to 60 seconds of request delay or clock skew. */ + /** @description Range end as an ISO timestamp, no later than server time. Requires from; cannot be combined with since. The service tolerates up to 60 seconds of request delay or clock skew. */ to?: string } header?: never @@ -12659,114 +10947,18 @@ export interface operations { } } } - 'v2-get-warehouse-ingestion-stats': { - parameters: { - query?: { - /** @description Up to eight distinct measurements. Defaults to `ingestion_events_received_rate`, `ingestion_events_processed_rate`, `ingestion_bytes_received_rate`, `ingestion_bytes_processed_rate`, `replication_wal_lag_bytes`, `replication_receive_wal_lag_bytes`. Supply a comma-separated list. Allowed measurements: `ingestion_events_received_rate`, `ingestion_events_processed_rate`, `ingestion_bytes_received_rate`, `ingestion_bytes_processed_rate`, `replication_wal_lag_bytes`, `replication_receive_wal_lag_bytes`. */ - attributes?: string - /** @description Range start as an ISO 8601 timestamp with seconds and a time zone, for example `2026-11-18T09:30:00Z`, within the last 30 days. Requires to; cannot be combined with since. */ - from?: string - /** @description Defaults to 1m. The effective step increases to stay within 1,441 points per series. Rate windows are at least 5m. */ - interval?: '1m' | '5m' | '10m' | '30m' | '1h' | '1d' - /** @description Look back from server time, for example 30m, 2h, or 1d. Defaults to 30m when from/to are omitted. Maximum 30d. Cannot be combined with from/to. */ - since?: string - /** @description Range end as an ISO 8601 timestamp with seconds and a time zone, for example `2026-11-18T09:30:00Z`, no later than server time. Requires from; cannot be combined with since. The service tolerates up to 60 seconds of request delay or clock skew. */ - to?: string - } - header?: never - path: { - /** @description Project ref */ - ref: string - } - cookie?: never - } - requestBody?: never - responses: { - 200: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['V2WarehouseIngestionStatsResponse_Output'] - } - } - /** @description validation_failed: Invalid measurement selection, range, interval, or query parameter */ - 400: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description This feature requires the Pro, Team, or Enterprise organization plan. */ - 402: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description Forbidden action */ - 403: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description Project not found */ - 404: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description Rate limit exceeded */ - 429: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description warehouse_metrics_unavailable: Metrics query capacity is temporarily unavailable; retry after a short delay. warehouse_setup_unavailable: Warehouse feature or project metadata unavailable. */ - 503: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - } - } 'v2-get-warehouse-query-stats': { parameters: { query?: { - /** @description Up to eight distinct measurements. Defaults to `query_rate`, `query_duration_p50`, `query_duration_p95`, `query_duration_p99`, `query_error_rate`, `query_timeout_rate`. Supply a comma-separated list. Allowed measurements: `query_rate`, `query_error_rate`, `query_timeout_rate`, `query_canceled_rate`, `query_duration_mean`, `query_duration_p50`, `query_duration_p95`, `query_duration_p99`, `duckdb_duration_mean`, `rpc_rate`, `rpc_duration_mean`, `rpc_duration_p95`. */ + /** @description Up to eight distinct measurements. Defaults to query_rate, query_duration_p50, query_duration_p95, query_duration_p99, query_error_rate, query_timeout_rate. Supply a comma-separated list. Allowed measurements: query_rate, query_error_rate, query_timeout_rate, query_canceled_rate, query_duration_mean, query_duration_p50, query_duration_p95, query_duration_p99, duckdb_duration_mean, rpc_rate, rpc_duration_mean, rpc_duration_p95. */ attributes?: string - /** @description Range start as an ISO 8601 timestamp with seconds and a time zone, for example `2026-11-18T09:30:00Z`, within the last 30 days. Requires to; cannot be combined with since. */ + /** @description Range start as an ISO timestamp, within the last 30 days. Requires to; cannot be combined with since. */ from?: string - /** @description Defaults to 1m. The effective step increases to stay within 1,441 points per series. Rate and latency windows are at least 5m. */ + /** @description Defaults to 1m. The effective step increases to stay within 1441 points per series. Rate and latency windows are at least 5m. */ interval?: '1m' | '5m' | '10m' | '30m' | '1h' | '1d' /** @description Look back from server time, for example 30m, 2h, or 1d. Defaults to 30m when from/to are omitted. Maximum 30d. Cannot be combined with from/to. */ since?: string - /** @description Range end as an ISO 8601 timestamp with seconds and a time zone, for example `2026-11-18T09:30:00Z`, no later than server time. Requires from; cannot be combined with since. The service tolerates up to 60 seconds of request delay or clock skew. */ + /** @description Range end as an ISO timestamp, no later than server time. Requires from; cannot be combined with since. The service tolerates up to 60 seconds of request delay or clock skew. */ to?: string } header?: never @@ -13449,102 +11641,6 @@ export interface operations { } } } - 'v2-get-warehouse-storage-stats': { - parameters: { - query?: { - /** @description Up to eight distinct measurements. Defaults to `maintenance_pause_active`, `maintenance_run_rate`, `inline_flush_rows_rate`, `table_active_data_file_avg_size_bytes_mean`, `table_small_file_ratio_mean`, `table_deleted_row_ratio_mean`, `catalog_deletion_backlog_bytes`, `catalog_oldest_deletion_age`. Supply a comma-separated list. Allowed measurements: `maintenance_request_rate`, `maintenance_pause_active`, `maintenance_pause_duration_mean`, `maintenance_run_rate`, `maintenance_results_available`, `maintenance_merge_adjacent_files_created_rate`, `maintenance_rewrite_data_files_created_rate`, `maintenance_expired_snapshots_rate`, `maintenance_cleaned_up_files_rate`, `inline_flush_rows_rate`, `inline_flush_rows_mean`, `inline_flush_duration_mean`, `table_active_data_files_mean`, `table_active_data_bytes_mean`, `table_active_data_file_avg_size_bytes_mean`, `table_small_file_ratio_mean`, `table_active_delete_files_mean`, `table_active_delete_bytes_mean`, `table_deleted_row_ratio_mean`, `table_inlined_data_bytes`, `catalog_active_data_files`, `catalog_snapshots`, `catalog_oldest_snapshot_age`, `catalog_deletion_backlog_files`, `catalog_deletion_backlog_bytes`, `catalog_oldest_deletion_age`. */ - attributes?: string - /** @description Range start as an ISO 8601 timestamp with seconds and a time zone, for example `2026-11-18T09:30:00Z`, within the last 30 days. Requires to; cannot be combined with since. */ - from?: string - /** @description Defaults to 1m. The effective step increases to stay within 1,441 points per series. Rate and latency windows are at least 5m. */ - interval?: '1m' | '5m' | '10m' | '30m' | '1h' | '1d' - /** @description Look back from server time, for example 30m, 2h, or 1d. Defaults to 30m when from/to are omitted. Maximum 30d. Cannot be combined with from/to. */ - since?: string - /** @description Range end as an ISO 8601 timestamp with seconds and a time zone, for example `2026-11-18T09:30:00Z`, no later than server time. Requires from; cannot be combined with since. The service tolerates up to 60 seconds of request delay or clock skew. */ - to?: string - } - header?: never - path: { - /** @description Project ref */ - ref: string - } - cookie?: never - } - requestBody?: never - responses: { - 200: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['V2WarehouseStorageStatsResponse_Output'] - } - } - /** @description validation_failed: Invalid measurement selection, range, interval, or query parameter */ - 400: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description This feature requires the Pro, Team, or Enterprise organization plan. */ - 402: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description Forbidden action */ - 403: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description Project not found */ - 404: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description Rate limit exceeded */ - 429: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - /** @description warehouse_metrics_unavailable: Metrics query capacity is temporarily unavailable; retry after a short delay. warehouse_setup_unavailable: Warehouse feature or project metadata unavailable. */ - 503: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['ErrorResponseBody'] - } - } - } - } 'v2-list-warehouse-tables': { parameters: { query?: never @@ -14570,20 +12666,12 @@ export interface operations { 'v2-projects-ref-webhooks-endpoints-get': { parameters: { query?: { - page?: { - /** - * @description Up to how many records to return. - * @default 20 - */ - limit?: string - /** - * @description Offset for offset-based pagination. - * - * Offset should be dividable by `page[limit]` without a reminder (`offset % limit === 0`), otherwise it will cause weird behavior when used on a frontend. - * @default 0 - */ - offset?: string - } + /** @description Up to how many records to return. */ + 'page[limit]'?: string + /** @description Offset for offset-based pagination. + * + * Offset should be dividable by `page[limit]` without a reminder (`offset % limit === 0`), otherwise it will cause weird behavior when used on a frontend. */ + 'page[offset]'?: string } header?: never path: { @@ -16793,26 +14881,12 @@ export interface operations { 'v2-projects-ref-webhooks-endpoints-id-deliveries-get': { parameters: { query?: { - page?: { - /** - * Format: uuid - * @description Cursor in cursor-based pagination to return up to `page[size]` records after (exclusive) the entry specified by this query param. - */ - after?: string - /** - * Format: uuid - * @description Cursor in cursor-based pagination to return up to `page[size]` records before (exclusive) the entry specified by this query param. - */ - before?: string - /** - * @description Up to how many records to return. - * - * Minimum: 1. Maximum: 100. - * @default 20 - * @example 10 - */ - size?: string - } + /** @description Cursor in cursor-based pagination to return up to `page[size]` records after (exclusive) the entry specified by this query param. */ + 'page[after]'?: string + /** @description Cursor in cursor-based pagination to return up to `page[size]` records before (exclusive) the entry specified by this query param. */ + 'page[before]'?: string + /** @description Up to how many records to return. */ + 'page[size]'?: string } header?: never path: { diff --git a/packages/api-types/types/fga-requirements.ts b/packages/api-types/types/fga-requirements.ts index 0cf53d7f3e2..7a6f02da634 100644 --- a/packages/api-types/types/fga-requirements.ts +++ b/packages/api-types/types/fga-requirements.ts @@ -38,12 +38,6 @@ export const fgaRequirements = { 'DELETE /v2/organizations/{slug}/members/{user_id}': [['organization_admin_write']], 'DELETE /v2/projects/{ref}/analytics/log-drains/{id}': [['analytics_config_write']], 'DELETE /v2/projects/{ref}/compute/{name}': [['workers_write']], - 'DELETE /v2/projects/{ref}/environments/{environment}/secrets/{name}': [ - ['environment_secrets_write'], - ], - 'DELETE /v2/projects/{ref}/environments/{environment}/variables/{name}': [ - ['environment_variables_write'], - ], 'DELETE /v2/projects/{ref}/functions': [['edge_functions_write']], 'DELETE /v2/projects/{ref}/notebooks/{id}': [['project_notebooks_write']], 'DELETE /v2/projects/{ref}/private-link/associations/aws-account/{aws_account_id}': [ @@ -163,12 +157,9 @@ export const fgaRequirements = { 'GET /v2/organizations/{slug}/integrations/github/connections': [['organization_projects_read']], 'GET /v2/organizations/{slug}/maintenance/windows': [['organization_admin_read']], 'GET /v2/organizations/{slug}/members': [['members_read']], - 'GET /v2/organizations/{slug}/members/invitations': [['members_read']], 'GET /v2/organizations/{slug}/projects': [['organization_projects_read']], 'GET /v2/organizations/{slug}/roles': [['members_read']], 'GET /v2/projects/{ref}/analytics/log-drains': [['analytics_config_read']], - 'GET /v2/projects/{ref}/analytics/traces/{trace_id}': [['analytics_logs_read']], - 'GET /v2/projects/{ref}/backups/downloadable-backups': [['backups_read']], 'GET /v2/projects/{ref}/compute': [['workers_read']], 'GET /v2/projects/{ref}/compute/{name}': [['workers_read']], 'GET /v2/projects/{ref}/config': [ @@ -183,20 +174,14 @@ export const fgaRequirements = { 'storage_config_read', ], ], - 'GET /v2/projects/{ref}/database/clone/cloneable-backups': [['backups_read']], - 'GET /v2/projects/{ref}/database/clone/status': [['backups_read']], - 'GET /v2/projects/{ref}/environments/{environment}/secrets': [['environment_secrets_read']], - 'GET /v2/projects/{ref}/environments/{environment}/variables': [['environment_variables_read']], 'GET /v2/projects/{ref}/notebooks': [['project_notebooks_read']], 'GET /v2/projects/{ref}/notebooks/{id}': [['project_notebooks_read']], 'GET /v2/projects/{ref}/private-link/associations': [['project_admin_read']], 'GET /v2/projects/{ref}/warehouse/capacity': [['database_read']], 'GET /v2/projects/{ref}/warehouse/connection': [['database_read']], - 'GET /v2/projects/{ref}/warehouse/ingestion-stats': [['database_read']], 'GET /v2/projects/{ref}/warehouse/query-stats': [['database_read']], 'GET /v2/projects/{ref}/warehouse/setups/current': [['database_read']], 'GET /v2/projects/{ref}/warehouse/status': [['database_read']], - 'GET /v2/projects/{ref}/warehouse/storage-stats': [['database_read']], 'GET /v2/projects/{ref}/warehouse/tables': [['database_read']], 'GET /v2/projects/{ref}/warehouse/tables/{table_id}': [['database_read']], 'GET /v2/projects/{ref}/warehouse/tables/{table_id}/layout': [['database_read']], @@ -318,10 +303,6 @@ export const fgaRequirements = { ], 'POST /v2/projects/{ref}/compute/{name}/deploy': [['workers_write']], 'POST /v2/projects/{ref}/compute/{name}/uploads': [['workers_write']], - 'POST /v2/projects/{ref}/environments/{environment}/deploy': [ - ['branching_development_write'], - ['branching_production_write'], - ], 'POST /v2/projects/{ref}/notebooks': [['project_notebooks_write']], 'POST /v2/projects/{ref}/private-link/associations': [['project_admin_write']], 'POST /v2/projects/{ref}/transfers': [['organization_admin_write']], @@ -348,12 +329,6 @@ export const fgaRequirements = { 'PUT /v1/projects/{ref}/pgsodium': [['project_admin_write']], 'PUT /v1/projects/{ref}/ssl-enforcement': [['database_ssl_config_write']], 'PUT /v2/projects/{ref}/analytics/log-drains/{id}': [['analytics_config_write']], - 'PUT /v2/projects/{ref}/environments/{environment}/secrets/{name}': [ - ['environment_secrets_write'], - ], - 'PUT /v2/projects/{ref}/environments/{environment}/variables/{name}': [ - ['environment_variables_write'], - ], } as const export type FgaRequirements = typeof fgaRequirements diff --git a/packages/api-types/types/platform.d.ts b/packages/api-types/types/platform.d.ts index 14f424e987f..cef6b11865a 100644 --- a/packages/api-types/types/platform.d.ts +++ b/packages/api-types/types/platform.d.ts @@ -1677,63 +1677,6 @@ export interface paths { patch?: never trace?: never } - '/platform/organizations/{slug}/hipaa/agreements/{id}': { - parameters: { - query?: never - header?: never - path?: never - cookie?: never - } - get?: never - put?: never - post?: never - delete?: never - options?: never - head?: never - /** - * Updates the details of a pending delegated HIPAA agreement - * @description Send all legal entity and signatory fields together. Every update invalidates the previous link and sends a new one to the supplied signatory. - */ - patch: operations['HipaaController_updateAgreement'] - trace?: never - } - '/platform/organizations/{slug}/hipaa/agreements/{id}/cancel': { - parameters: { - query?: never - header?: never - path?: never - cookie?: never - } - get?: never - put?: never - /** Cancels a pending delegated HIPAA agreement */ - post: operations['HipaaController_cancelAgreement'] - delete?: never - options?: never - head?: never - patch?: never - trace?: never - } - '/platform/organizations/{slug}/hipaa/agreements/{id}/resend': { - parameters: { - query?: never - header?: never - path?: never - cookie?: never - } - get?: never - put?: never - /** - * Resends the acceptance email for a pending delegated HIPAA agreement - * @description Invalidates the previous link and sends a fresh seven-day link to the saved signatory. - */ - post: operations['HipaaController_resendAgreement'] - delete?: never - options?: never - head?: never - patch?: never - trace?: never - } '/platform/organizations/{slug}/hipaa/agreements/accept': { parameters: { query?: never @@ -1751,23 +1694,6 @@ export interface paths { patch?: never trace?: never } - '/platform/organizations/{slug}/hipaa/agreements/delegate': { - parameters: { - query?: never - header?: never - path?: never - cookie?: never - } - get?: never - put?: never - /** Sends the HIPAA BAA to a delegated signatory */ - post: operations['HipaaController_delegateAgreement'] - delete?: never - options?: never - head?: never - patch?: never - trace?: never - } '/platform/organizations/{slug}/members': { parameters: { query?: never @@ -5568,7 +5494,7 @@ export interface paths { } /** * Get Warehouse metrics over a time range - * @description Return up to eight allowlisted measurements from regional metrics storage, scoped to the authorized project and its stored Warehouse compute or independently resolved ETL pipeline placement. ETL queries include only authorized DuckLake pipelines. Sampled health reports unknown observation freshness; scrape receipt is not proof of a successful health observation. Specify attribute or attributes with ISO startDate/endDate and an optional interval. Each measurement retains its units, dimensions, coverage and availability in the metrics array. Source cadence and default interval are one minute. Missing/stale samples are null, not zero. Does not require the source database to be healthy. No raw queries or backend selection are accepted. An unconfigured or unavailable regional reader never falls back to central storage. + * @description Return up to eight allowlisted measurements from regional metrics storage, scoped to the authorized project and its stored Warehouse compute placement. Specify attribute or attributes with ISO startDate/endDate and an optional interval. Each measurement retains its units, dimensions, coverage and availability in the metrics array. Source cadence and default interval are one minute. Missing/stale samples are null, not zero. Does not require the source database to be healthy. No raw queries or backend selection are accepted. An unconfigured or unavailable regional reader never falls back to central storage. */ get: operations['WarehouseMetricsController_getMetrics'] put?: never @@ -5754,17 +5680,9 @@ export interface components { } AcceptHipaaAgreementResponse_Output: { agreement: { - /** Format: date-time */ - acceptance_expires_at: string | null - /** Format: date-time */ - accepted_at: string | null + accepted_at: string /** @enum {string} */ agreement_type: 'hipaa_baa' - /** Format: date-time */ - created_at: string - document_url: string | null - /** Format: uuid */ - id: string legal_entity_address: { city?: string | null country: string @@ -5778,9 +5696,7 @@ export interface components { signatory_name: string signatory_title: string /** @enum {string} */ - status: 'pending' | 'accepted' | 'terminated' | 'cancelled' - /** Format: date-time */ - terminated_at: string | null + status: 'accepted' } hipaa_addon: { enabled_at: string @@ -6886,8 +6802,6 @@ export interface components { | 'auth:write' | 'database:read' | 'database:write' - | 'database_token_access:read' - | 'database_token_access:write' | 'domains:read' | 'domains:write' | 'edge_functions:read' @@ -7188,10 +7102,6 @@ export interface components { | 'workers_write' | 'project_notebooks_read' | 'project_notebooks_write' - | 'environment_variables_read' - | 'environment_variables_write' - | 'environment_secrets_read' - | 'environment_secrets_write' )[] } CreatePlatformAppResponse_Output: { @@ -7352,7 +7262,7 @@ export interface components { } /** @description Allows a CORDONED kubernetes_cluster_id for an explicit operator-directed deployment. PENDING and REMOVED clusters remain ineligible. Has no effect without kubernetes_cluster_id also set. */ kubernetes_cluster_force?: boolean - /** @description Override the Kubernetes cluster for initial project placement, bypassing load-balancing. In production, dashboard AWS_K8S requests require advanced deployment to be enabled for the organization; system requests remain supported. */ + /** @description Override the Kubernetes cluster this project is created on, bypassing load-balancing, for this creation only. Only for internal use; rejected for user-facing requests in production. */ kubernetes_cluster_id?: string warehouse_fdw?: { /** @description AWS ACM Private CA ARN used by the worker to issue per-project warehouse FDW client certificates. Defaults to the worker environment configuration when omitted. */ @@ -8174,10 +8084,6 @@ export interface components { | 'workers_write' | 'project_notebooks_read' | 'project_notebooks_write' - | 'environment_variables_read' - | 'environment_variables_write' - | 'environment_secrets_read' - | 'environment_secrets_write' )[] project_refs?: string[] } @@ -8504,52 +8410,6 @@ export interface components { DeclineAuthorizationResponse_Output: { id: string } - DelegateHipaaAgreementBody: { - legal_entity_address: { - city?: string | null - country: string - line1: string - line2?: string | null - postal_code?: string | null - state?: string | null - } - legal_entity_name: string - /** Format: email */ - signatory_email: string - signatory_name: string - signatory_title: string - } - DelegateHipaaAgreementResponse_Output: { - agreement: { - /** Format: date-time */ - acceptance_expires_at: string | null - /** Format: date-time */ - accepted_at: string | null - /** @enum {string} */ - agreement_type: 'hipaa_baa' - /** Format: date-time */ - created_at: string - document_url: string | null - /** Format: uuid */ - id: string - legal_entity_address: { - city?: string | null - country: string - line1: string - line2?: string | null - postal_code?: string | null - state?: string | null - } - legal_entity_name: string - signatory_email: string - signatory_name: string - signatory_title: string - /** @enum {string} */ - status: 'pending' | 'accepted' | 'terminated' | 'cancelled' - /** Format: date-time */ - terminated_at: string | null - } - } DeleteDestinationPipelineResponse_Output: { /** * @description Whether the destination was deleted. True when no other pipelines remain attached to it. @@ -9242,16 +9102,8 @@ export interface components { GetHipaaStatusResponse_Output: { addon_enabled: boolean agreement: { - /** Format: date-time */ - acceptance_expires_at: string | null - /** Format: date-time */ accepted_at: string | null - /** @enum {string} */ - agreement_type: 'hipaa_baa' - /** Format: date-time */ - created_at: string document_url: string | null - /** Format: uuid */ id: string legal_entity_address: { city?: string | null @@ -9260,14 +9112,13 @@ export interface components { line2?: string | null postal_code?: string | null state?: string | null - } - legal_entity_name: string - signatory_email: string - signatory_name: string - signatory_title: string + } | null + legal_entity_name: string | null + signatory_email: string | null + signatory_name: string | null + signatory_title: string | null /** @enum {string} */ status: 'pending' | 'accepted' | 'terminated' | 'cancelled' - /** Format: date-time */ terminated_at: string | null } | null self_serve_eligibility: { @@ -9310,8 +9161,6 @@ export interface components { | 'auth:write' | 'database:read' | 'database:write' - | 'database_token_access:read' - | 'database_token_access:write' | 'domains:read' | 'domains:write' | 'edge_functions:read' @@ -10201,43 +10050,16 @@ export interface components { } Invoice_Output: { amount_due: number - amount_refunded_cents: number - credit_notes_applied_cents: number id: string invoice_pdf: string | null number: string payment_attempted: boolean - payment_details: { - /** @description The payment details of the payment method, e.g., card information */ - card: { - /** @description The brand of the card, e.g., Visa, MasterCard */ - brand: string - /** @description The country of the card */ - country: string | null - /** @description The expiration month of the card */ - exp_month: number - /** @description The expiration year of the card */ - exp_year: number - /** @description The unique fingerprint of the card */ - fingerprint: string | null - /** @description The funding type of the card, e.g., credit, debit, prepaid */ - funding: string - /** @description The last 4 digits of the card */ - last4: string - } - /** - * @description The type of the payment method, e.g., card, bank_account - * @enum {string} - */ - type: 'card' - } | null payment_is_processing: boolean period_end: number prepaid_credits_applied_cents: number status: string subscription: string | null subtotal: number - total_cents: number } InvoicePaymentLinkResponse_Output: { redirectUrl: string @@ -10300,7 +10122,7 @@ export interface components { port?: number structured_data?: string /** @default false */ - tls: boolean + tls?: boolean } | { access_key_id?: string @@ -10317,13 +10139,13 @@ export interface components { | { endpoint?: string /** @default true */ - gzip: boolean + gzip?: boolean /** @default {} */ - headers: { + headers?: { [key: string]: string } /** @default http/protobuf */ - protocol: string + protocol?: string } description?: string readonly id: number @@ -10551,8 +10373,6 @@ export interface components { | 'auth:write' | 'database:read' | 'database:write' - | 'database_token_access:read' - | 'database_token_access:write' | 'domains:read' | 'domains:write' | 'edge_functions:read' @@ -10625,8 +10445,6 @@ export interface components { | 'auth:write' | 'database:read' | 'database:write' - | 'database_token_access:read' - | 'database_token_access:write' | 'domains:read' | 'domains:write' | 'edge_functions:read' @@ -10818,8 +10636,6 @@ export interface components { | 'auth:write' | 'database:read' | 'database:write' - | 'database_token_access:read' - | 'database_token_access:write' | 'domains:read' | 'domains:write' | 'edge_functions:read' @@ -11007,8 +10823,6 @@ export interface components { | 'auth:write' | 'database:read' | 'database:write' - | 'database_token_access:read' - | 'database_token_access:write' | 'domains:read' | 'domains:write' | 'edge_functions:read' @@ -12102,7 +11916,7 @@ export interface components { }[] } PipelineStatusResponse_Output: { - /** @description Safe classification of the current runtime failure. Includes static customer guidance, without exit codes, provider messages or worker logs; does not establish its underlying cause. Unrecognized or malformed diagnostics are returned as `null`. */ + /** @description Safe classification of the current runtime failure. Includes static customer guidance, without exit codes, provider messages or worker logs; does not establish its underlying cause. Unrecognized or malformed diagnostics are omitted. */ diagnostic?: { /** @enum {string} */ code: @@ -12194,7 +12008,7 @@ export interface components { code: 'entitlement_required' /** @description Entitlement feature key that failed the check */ feature: string - /** @description Dashboard URL where the feature can be unlocked: the organization billing page, or the project add-ons page when a per-project add-on is missing. Present when the organization or project is resolvable */ + /** @description Billing page URL for the organization, present when the org is resolvable */ upgrade_url?: string } /** @description Human-readable explanation of the plan gate */ @@ -14907,21 +14721,6 @@ export interface components { /** @enum {string} */ result: 'success' } - UpdateDelegatedHipaaAgreementBody: { - legal_entity_address: { - city?: string | null - country: string - line1: string - line2?: string | null - postal_code?: string | null - state?: string | null - } - legal_entity_name: string - /** Format: email */ - signatory_email: string - signatory_name: string - signatory_title: string - } UpdateDestinationBody: { /** @description Destination configuration */ config: @@ -15950,10 +15749,6 @@ export interface components { | 'workers_write' | 'project_notebooks_read' | 'project_notebooks_write' - | 'environment_variables_read' - | 'environment_variables_write' - | 'environment_secrets_read' - | 'environment_secrets_write' )[] } UpdatePlatformAppInstallationResponse_Output: { @@ -17689,7 +17484,7 @@ export interface components { WarehouseMetricsResponse_Output: { metrics: { /** @enum {string} */ - aggregation: 'rate' | 'sum' | 'mean' | 'p50' | 'p95' | 'p99' | 'occupied' | 'max' + aggregation: 'rate' | 'sum' | 'mean' | 'p50' | 'p95' | 'p99' | 'occupied' /** @enum {string} */ availability: | 'ok' @@ -17707,7 +17502,7 @@ export interface components { start: number step: number } - /** @description Latest scraped sample timestamp in Unix seconds; not the query evaluation timestamp or proof of a successful recent health observation. */ + /** @description Latest observed source sample timestamp in Unix seconds; not the query evaluation timestamp. */ last_sample_at: number | null /** @enum {string} */ metric: @@ -17734,43 +17529,6 @@ export interface components { | 'rpc_rate' | 'rpc_duration_mean' | 'rpc_duration_p95' - | 'ingestion_events_received_rate' - | 'ingestion_events_processed_rate' - | 'ingestion_bytes_received_rate' - | 'ingestion_bytes_processed_rate' - | 'replication_wal_lag_bytes' - | 'replication_receive_wal_lag_bytes' - | 'maintenance_request_rate' - | 'maintenance_pause_active' - | 'maintenance_pause_duration_mean' - | 'maintenance_run_rate' - | 'maintenance_results_available' - | 'maintenance_merge_adjacent_files_created_rate' - | 'maintenance_rewrite_data_files_created_rate' - | 'maintenance_expired_snapshots_rate' - | 'maintenance_cleaned_up_files_rate' - | 'inline_flush_rows_rate' - | 'inline_flush_rows_mean' - | 'inline_flush_duration_mean' - | 'table_active_data_files_mean' - | 'table_active_data_bytes_mean' - | 'table_active_data_file_avg_size_bytes_mean' - | 'table_small_file_ratio_mean' - | 'table_active_delete_files_mean' - | 'table_active_delete_bytes_mean' - | 'table_deleted_row_ratio_mean' - | 'table_inlined_data_bytes' - | 'catalog_active_data_files' - | 'catalog_snapshots' - | 'catalog_oldest_snapshot_age' - | 'catalog_deletion_backlog_files' - | 'catalog_deletion_backlog_bytes' - | 'catalog_oldest_deletion_age' - /** - * @description Present for sampled ETL health: successful source-observation freshness is unknown. last_sample_at reports scrape receipt only, not a successful catalog or table sample. - * @enum {string} - */ - observation_freshness?: 'unknown' project_ref: string requested: { end: number @@ -17799,38 +17557,6 @@ export interface components { | 'rpc_rate' | 'rpc_duration_mean' | 'rpc_duration_p95' - | 'ingestion_events_received_rate' - | 'ingestion_events_processed_rate' - | 'ingestion_bytes_received_rate' - | 'ingestion_bytes_processed_rate' - | 'replication_wal_lag_bytes' - | 'replication_receive_wal_lag_bytes' - | 'maintenance_request_rate' - | 'maintenance_pause_active' - | 'maintenance_pause_duration_mean' - | 'maintenance_run_rate' - | 'maintenance_results_available' - | 'maintenance_merge_adjacent_files_created_rate' - | 'maintenance_rewrite_data_files_created_rate' - | 'maintenance_expired_snapshots_rate' - | 'maintenance_cleaned_up_files_rate' - | 'inline_flush_rows_rate' - | 'inline_flush_rows_mean' - | 'inline_flush_duration_mean' - | 'table_active_data_files_mean' - | 'table_active_data_bytes_mean' - | 'table_active_data_file_avg_size_bytes_mean' - | 'table_small_file_ratio_mean' - | 'table_active_delete_files_mean' - | 'table_active_delete_bytes_mean' - | 'table_deleted_row_ratio_mean' - | 'table_inlined_data_bytes' - | 'catalog_active_data_files' - | 'catalog_snapshots' - | 'catalog_oldest_snapshot_age' - | 'catalog_deletion_backlog_files' - | 'catalog_deletion_backlog_bytes' - | 'catalog_oldest_deletion_age' start: number step?: number } @@ -17850,18 +17576,7 @@ export interface components { }[] }[] /** @enum {string} */ - unit: - | 'per_second' - | 'seconds' - | 'queries' - | 'grants' - | 'bytes' - | 'bytes_per_second' - | 'files' - | 'rows' - | 'ratio' - | 'boolean' - | 'snapshots' + unit: 'per_second' | 'seconds' | 'queries' | 'grants' }[] } WarehouseSetupBody: { @@ -19015,13 +18730,6 @@ export interface operations { 'application/json': components['schemas']['CloudMarketplaceOnboardingInfoResponse_Output'] } } - /** @description Contract or buyer not found */ - 404: { - headers: { - [name: string]: unknown - } - content?: never - } /** @description Failed to get info for AWS Marketplace onboarding */ 500: { headers: { @@ -23706,211 +23414,6 @@ export interface operations { } } } - HipaaController_updateAgreement: { - parameters: { - query?: never - header?: never - path: { - id: string - /** @description Organization slug */ - slug: string - } - cookie?: never - } - requestBody: { - content: { - 'application/json': components['schemas']['UpdateDelegatedHipaaAgreementBody'] - } - } - responses: { - 200: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['DelegateHipaaAgreementResponse_Output'] - } - } - /** @description Invalid request or organization is not eligible for self-serve HIPAA */ - 400: { - headers: { - [name: string]: unknown - } - content?: never - } - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown - } - content?: never - } - /** @description Forbidden action */ - 403: { - headers: { - [name: string]: unknown - } - content?: never - } - /** @description Pending HIPAA agreement not found for this organization */ - 404: { - headers: { - [name: string]: unknown - } - content?: never - } - /** @description Another HIPAA operation is already in progress */ - 409: { - headers: { - [name: string]: unknown - } - content?: never - } - /** @description Rate limit exceeded */ - 429: { - headers: { - [name: string]: unknown - } - content?: never - } - /** @description Failed to update the agreement or send the acceptance email. Email failure leaves the agreement updated. */ - 500: { - headers: { - [name: string]: unknown - } - content?: never - } - } - } - HipaaController_cancelAgreement: { - parameters: { - query?: never - header?: never - path: { - id: string - /** @description Organization slug */ - slug: string - } - cookie?: never - } - requestBody?: never - responses: { - /** @description The pending agreement was cancelled */ - 204: { - headers: { - [name: string]: unknown - } - content?: never - } - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown - } - content?: never - } - /** @description Forbidden action */ - 403: { - headers: { - [name: string]: unknown - } - content?: never - } - /** @description Pending HIPAA agreement not found for this organization */ - 404: { - headers: { - [name: string]: unknown - } - content?: never - } - /** @description Another HIPAA operation is already in progress */ - 409: { - headers: { - [name: string]: unknown - } - content?: never - } - /** @description Rate limit exceeded */ - 429: { - headers: { - [name: string]: unknown - } - content?: never - } - } - } - HipaaController_resendAgreement: { - parameters: { - query?: never - header?: never - path: { - id: string - /** @description Organization slug */ - slug: string - } - cookie?: never - } - requestBody?: never - responses: { - 200: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['DelegateHipaaAgreementResponse_Output'] - } - } - /** @description Invalid request or organization is not eligible for self-serve HIPAA */ - 400: { - headers: { - [name: string]: unknown - } - content?: never - } - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown - } - content?: never - } - /** @description Forbidden action */ - 403: { - headers: { - [name: string]: unknown - } - content?: never - } - /** @description Pending HIPAA agreement not found for this organization */ - 404: { - headers: { - [name: string]: unknown - } - content?: never - } - /** @description Another HIPAA operation is already in progress */ - 409: { - headers: { - [name: string]: unknown - } - content?: never - } - /** @description Rate limit exceeded */ - 429: { - headers: { - [name: string]: unknown - } - content?: never - } - /** @description Failed to refresh the link or send the acceptance email. Email failure leaves the new link in effect. */ - 500: { - headers: { - [name: string]: unknown - } - content?: never - } - } - } HipaaController_acceptAgreement: { parameters: { query?: never @@ -23958,53 +23461,6 @@ export interface operations { } } } - HipaaController_delegateAgreement: { - parameters: { - query?: never - header?: never - path: { - /** @description Organization slug */ - slug: string - } - cookie?: never - } - requestBody: { - content: { - 'application/json': components['schemas']['DelegateHipaaAgreementBody'] - } - } - responses: { - 200: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['DelegateHipaaAgreementResponse_Output'] - } - } - /** @description Unauthorized */ - 401: { - headers: { - [name: string]: unknown - } - content?: never - } - /** @description Forbidden action */ - 403: { - headers: { - [name: string]: unknown - } - content?: never - } - /** @description Rate limit exceeded */ - 429: { - headers: { - [name: string]: unknown - } - content?: never - } - } - } MembersController_getMembers: { parameters: { query?: never @@ -24628,18 +24084,9 @@ export interface operations { parameters: { query?: { page?: { - /** @description Cursor in cursor-based pagination to return up to `page[size]` records after (exclusive) the entry specified by this query param. */ after?: string - /** @description Cursor in cursor-based pagination to return up to `page[size]` records before (exclusive) the entry specified by this query param. */ before?: string - /** - * @description String-encoded number specifying up to how many records to return. Default: 20. - * - * Minimum: 1. Maximum: 100. - * @default 20 - * @example 10 - */ - size?: string + size?: number } /** @description Sort field, prefixed with `-` for descending order. Nulls sort last in ascending order and first in descending order. Defaults to `name`. */ sort?: @@ -24736,18 +24183,9 @@ export interface operations { parameters: { query?: { page?: { - /** @description Cursor in cursor-based pagination to return up to `page[size]` records after (exclusive) the entry specified by this query param. */ after?: string - /** @description Cursor in cursor-based pagination to return up to `page[size]` records before (exclusive) the entry specified by this query param. */ before?: string - /** - * @description String-encoded number specifying up to how many records to return. Default: 20. - * - * Minimum: 1. Maximum: 100. - * @default 20 - * @example 10 - */ - size?: string + size?: number } /** @description Sort field, prefixed with `-` for descending order. `user_email` sorts by the member email, falling back to username, and places the organization-bound grant (which has no user) first in ascending order and last in descending order. Defaults to `user_email`. */ sort?: 'user_email' | '-user_email' | 'approved_at' | '-approved_at' @@ -27353,18 +26791,9 @@ export interface operations { parameters: { query?: { page?: { - /** @description Cursor in cursor-based pagination to return up to `page[size]` records after (exclusive) the entry specified by this query param. */ after?: string - /** @description Cursor in cursor-based pagination to return up to `page[size]` records before (exclusive) the entry specified by this query param. */ before?: string - /** - * @description String-encoded number specifying up to how many records to return. Default: 20. - * - * Minimum: 1. Maximum: 100. - * @default 20 - * @example 10 - */ - size?: string + size?: number } /** @description Sort field, prefixed with `-` for descending order. Defaults to `app_name`. */ sort?: @@ -38170,38 +37599,6 @@ export interface operations { | 'rpc_rate' | 'rpc_duration_mean' | 'rpc_duration_p95' - | 'ingestion_events_received_rate' - | 'ingestion_events_processed_rate' - | 'ingestion_bytes_received_rate' - | 'ingestion_bytes_processed_rate' - | 'replication_wal_lag_bytes' - | 'replication_receive_wal_lag_bytes' - | 'maintenance_request_rate' - | 'maintenance_pause_active' - | 'maintenance_pause_duration_mean' - | 'maintenance_run_rate' - | 'maintenance_results_available' - | 'maintenance_merge_adjacent_files_created_rate' - | 'maintenance_rewrite_data_files_created_rate' - | 'maintenance_expired_snapshots_rate' - | 'maintenance_cleaned_up_files_rate' - | 'inline_flush_rows_rate' - | 'inline_flush_rows_mean' - | 'inline_flush_duration_mean' - | 'table_active_data_files_mean' - | 'table_active_data_bytes_mean' - | 'table_active_data_file_avg_size_bytes_mean' - | 'table_small_file_ratio_mean' - | 'table_active_delete_files_mean' - | 'table_active_delete_bytes_mean' - | 'table_deleted_row_ratio_mean' - | 'table_inlined_data_bytes' - | 'catalog_active_data_files' - | 'catalog_snapshots' - | 'catalog_oldest_snapshot_age' - | 'catalog_deletion_backlog_files' - | 'catalog_deletion_backlog_bytes' - | 'catalog_oldest_deletion_age' /** @description Up to 8 distinct measurements, as a comma-separated list or array. */ attributes?: | string @@ -38229,38 +37626,6 @@ export interface operations { | 'rpc_rate' | 'rpc_duration_mean' | 'rpc_duration_p95' - | 'ingestion_events_received_rate' - | 'ingestion_events_processed_rate' - | 'ingestion_bytes_received_rate' - | 'ingestion_bytes_processed_rate' - | 'replication_wal_lag_bytes' - | 'replication_receive_wal_lag_bytes' - | 'maintenance_request_rate' - | 'maintenance_pause_active' - | 'maintenance_pause_duration_mean' - | 'maintenance_run_rate' - | 'maintenance_results_available' - | 'maintenance_merge_adjacent_files_created_rate' - | 'maintenance_rewrite_data_files_created_rate' - | 'maintenance_expired_snapshots_rate' - | 'maintenance_cleaned_up_files_rate' - | 'inline_flush_rows_rate' - | 'inline_flush_rows_mean' - | 'inline_flush_duration_mean' - | 'table_active_data_files_mean' - | 'table_active_data_bytes_mean' - | 'table_active_data_file_avg_size_bytes_mean' - | 'table_small_file_ratio_mean' - | 'table_active_delete_files_mean' - | 'table_active_delete_bytes_mean' - | 'table_deleted_row_ratio_mean' - | 'table_inlined_data_bytes' - | 'catalog_active_data_files' - | 'catalog_snapshots' - | 'catalog_oldest_snapshot_age' - | 'catalog_deletion_backlog_files' - | 'catalog_deletion_backlog_bytes' - | 'catalog_oldest_deletion_age' )[] /** @description No later than now; clock skew up to 60 seconds is clamped to server time. */ endDate: string diff --git a/packages/shared-data/package.json b/packages/shared-data/package.json index 9f2ff41168a..6e174f833f1 100644 --- a/packages/shared-data/package.json +++ b/packages/shared-data/package.json @@ -15,7 +15,7 @@ "author": "", "license": "MIT", "dependencies": { - "@supabase/shared-types": "0.1.102", + "@supabase/shared-types": "0.1.98", "zod": "catalog:" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5f5e8be6bb0..c0b56fc7b80 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1356,8 +1356,8 @@ importers: specifier: 'catalog:' version: 2.117.3 '@supabase/shared-types': - specifier: 0.1.102 - version: 0.1.102 + specifier: 0.1.98 + version: 0.1.98 '@supabase/supabase-js': specifier: 'catalog:' version: 2.117.3(@opentelemetry/api@1.9.1) @@ -2989,8 +2989,8 @@ importers: packages/shared-data: dependencies: '@supabase/shared-types': - specifier: 0.1.102 - version: 0.1.102 + specifier: 0.1.98 + version: 0.1.98 zod: specifier: 'catalog:' version: 3.25.76 @@ -9459,8 +9459,8 @@ packages: resolution: {integrity: sha512-4W4ISbreRygNXbhwqxeqyuRul8RPx+SF+Hp2IT8wctebQEHSVCULfKatiRiEhmasfoXvYm2AHV4XFsOxhoousA==} engines: {node: '>=22.0.0'} - '@supabase/shared-types@0.1.102': - resolution: {integrity: sha512-dsqtZbCAQSX/O2iZ7Fmbcku+aQUMbEmbEVa7lubmM+v/OxEE/TLb2t8kiJYL5MRLqWLZOIFzgAKQJHq4fvp2eg==} + '@supabase/shared-types@0.1.98': + resolution: {integrity: sha512-TU633VIMRpKDt69Vi9bjiVHTcyC3o1K3A7McIcEN/62Lb1OUK4aQg/zixuuX2qhHSDONfeafvrRmiHGzD7an1A==} '@supabase/sql-to-rest@0.1.6': resolution: {integrity: sha512-06KgjeINtc6405XQvfnchBE1azEsU8G2NElfadmvVHKmHa5l2bFzjbtFbpaYgpgTzccHlcDmBaCgedVf2Gyl8Q==} @@ -26416,7 +26416,7 @@ snapshots: '@supabase/phoenix': 0.4.5 tslib: 2.8.1 - '@supabase/shared-types@0.1.102': {} + '@supabase/shared-types@0.1.98': {} '@supabase/sql-to-rest@0.1.6(encoding@0.1.13)(supports-color@8.1.1)': dependencies: