diff --git a/packages/api-types/types/api.d.ts b/packages/api-types/types/api.d.ts index 1985673d9ae..2f259388f73 100644 --- a/packages/api-types/types/api.d.ts +++ b/packages/api-types/types/api.d.ts @@ -256,28 +256,6 @@ export interface paths { patch?: never trace?: never } - '/v1/organizations/{slug}/projects': { - parameters: { - query?: never - header?: never - path?: never - cookie?: never - } - /** - * Gets all projects for the given organization - * @description Returns a paginated list of projects for the specified organization. - * - * This endpoint uses offset-based pagination. Use the `offset` parameter to skip a number of projects and the `limit` parameter to control the number of projects returned per page. - */ - get: operations['v1-get-all-projects-for-organization'] - put?: never - post?: never - delete?: never - options?: never - head?: never - patch?: never - trace?: never - } '/v1/projects': { parameters: { query?: never @@ -2995,89 +2973,6 @@ export interface components { ref: string } } - OrganizationProjectsResponse: { - pagination: { - /** @description Total number of projects. Use this to calculate the total number of pages. */ - count: number - /** @description Maximum number of projects per page */ - limit: number - /** @description Number of projects skipped in this response */ - offset: number - } - projects: { - cloud_provider: string - databases: { - cloud_provider: string - disk_last_modified_at?: string - disk_throughput_mbps?: number - /** @enum {string} */ - disk_type?: 'gp3' | 'io2' - disk_volume_size_gb?: number - identifier: string - /** @enum {string} */ - infra_compute_size?: - | 'pico' - | 'nano' - | 'micro' - | 'small' - | 'medium' - | 'large' - | 'xlarge' - | '2xlarge' - | '4xlarge' - | '8xlarge' - | '12xlarge' - | '16xlarge' - | '24xlarge' - | '24xlarge_optimized_memory' - | '24xlarge_optimized_cpu' - | '24xlarge_high_memory' - | '48xlarge' - | '48xlarge_optimized_memory' - | '48xlarge_optimized_cpu' - | '48xlarge_high_memory' - region: string - /** @enum {string} */ - status: - | 'ACTIVE_HEALTHY' - | 'ACTIVE_UNHEALTHY' - | 'COMING_UP' - | 'GOING_DOWN' - | 'INIT_FAILED' - | 'REMOVED' - | 'RESTORING' - | 'UNKNOWN' - | 'INIT_READ_REPLICA' - | 'INIT_READ_REPLICA_FAILED' - | 'RESTARTING' - | 'RESIZING' - /** @enum {string} */ - type: 'PRIMARY' | 'READ_REPLICA' - }[] - inserted_at: string - is_branch: boolean - name: string - ref: string - region: string - /** @enum {string} */ - status: - | 'INACTIVE' - | 'ACTIVE_HEALTHY' - | 'ACTIVE_UNHEALTHY' - | 'COMING_UP' - | 'UNKNOWN' - | 'GOING_DOWN' - | 'INIT_FAILED' - | 'REMOVED' - | 'RESTORING' - | 'UPGRADING' - | 'PAUSING' - | 'RESTORE_FAILED' - | 'RESTARTING' - | 'PAUSE_FAILED' - | 'RESIZING' - }[] - } OrganizationResponseV1: { id: string name: string @@ -3087,7 +2982,6 @@ export interface components { } PostgresConfigResponse: { effective_cache_size?: string - hot_standby_feedback?: boolean logical_decoding_work_mem?: string maintenance_work_mem?: string max_connections?: number @@ -3726,7 +3620,6 @@ export interface components { } UpdatePostgresConfigBody: { effective_cache_size?: string - hot_standby_feedback?: boolean logical_decoding_work_mem?: string maintenance_work_mem?: string max_connections?: number @@ -4063,54 +3956,6 @@ export interface components { name?: string version: string }[] - V1ListProjectsPaginatedResponse: { - pagination: { - /** @description Total number of projects. Use this to calculate the total number of pages. */ - count: number - /** @description Maximum number of projects per page (actual number may be less) */ - limit: number - /** @description Number of projects skipped in this response */ - offset: number - } - projects: { - cloud_provider: string - disk_volume_size_gb?: number - id: number - /** @enum {string} */ - infra_compute_size?: - | 'pico' - | 'nano' - | 'micro' - | 'small' - | 'medium' - | 'large' - | 'xlarge' - | '2xlarge' - | '4xlarge' - | '8xlarge' - | '12xlarge' - | '16xlarge' - | '24xlarge' - | '24xlarge_optimized_memory' - | '24xlarge_optimized_cpu' - | '24xlarge_high_memory' - | '48xlarge' - | '48xlarge_optimized_memory' - | '48xlarge_optimized_cpu' - | '48xlarge_high_memory' - inserted_at: string | null - is_branch_enabled: boolean - is_physical_backups_enabled: boolean | null - name: string - organization_id: number - organization_slug: string - preview_branch_refs: string[] - ref: string - region: string - status: string - subscription_id: string | null - }[] - } V1OrganizationMemberResponse: { email?: string mfa_enabled: boolean @@ -4301,7 +4146,6 @@ export interface components { status: 'AVAILABLE' | 'PENDING' | 'REMOVED' } V1RunQueryBody: { - parameters?: unknown[] query: string read_only?: boolean } @@ -4320,9 +4164,6 @@ export interface components { db_connected: boolean healthy: boolean } - | { - db_schema: string - } /** @enum {string} */ name: | 'auth' @@ -4929,48 +4770,6 @@ export interface operations { } } } - 'v1-get-all-projects-for-organization': { - parameters: { - query?: { - /** @description Number of projects to return per page */ - limit?: number - /** @description Number of projects to skip */ - offset?: number - /** @description Search projects by name */ - search?: string - /** @description Sort order for projects */ - sort?: 'name_asc' | 'name_desc' | 'created_asc' | 'created_desc' - /** @description A comma-separated list of project statuses to filter by. - * - * The following values are supported: `ACTIVE_HEALTHY`, `INACTIVE`. */ - statuses?: string - } - header?: never - path: { - /** @description Organization slug */ - slug: string - } - cookie?: never - } - requestBody?: never - responses: { - 200: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['OrganizationProjectsResponse'] - } - } - /** @description Failed to retrieve projects */ - 500: { - headers: { - [name: string]: unknown - } - content?: never - } - } - } 'v1-list-all-projects': { parameters: { query?: never diff --git a/packages/api-types/types/platform.d.ts b/packages/api-types/types/platform.d.ts index e34b8bd5d84..24ce9895f60 100644 --- a/packages/api-types/types/platform.d.ts +++ b/packages/api-types/types/platform.d.ts @@ -1763,13 +1763,35 @@ export interface paths { /** Retrieve column privileges */ get: operations['ColumnPrivilegesController_getColumnPrivileges'] put?: never - post?: never - delete?: never + /** Grant column privileges */ + post: operations['ColumnPrivilegesController_grantColumnPrivileges'] + /** Revoke column privileges */ + delete: operations['ColumnPrivilegesController_revokeColumnPrivileges'] options?: never head?: never patch?: never trace?: never } + '/platform/pg-meta/{ref}/columns': { + parameters: { + query?: never + header?: never + path?: never + cookie?: never + } + /** Gets project pg.columns */ + get: operations['ColumnsController_getColumns'] + put?: never + /** Creates project pg.column */ + post: operations['ColumnsController_createColumn'] + /** Deletes project pg.column with the given ID */ + delete: operations['ColumnsController_deleteColumn'] + options?: never + head?: never + /** Updates project pg.column with the given ID */ + patch: operations['ColumnsController_updateColumn'] + trace?: never + } '/platform/pg-meta/{ref}/extensions': { parameters: { query?: never @@ -1780,8 +1802,10 @@ export interface paths { /** Gets project pg.extensions */ get: operations['ExtensionsController_getExtensions'] put?: never - post?: never - delete?: never + /** Creates project pg.extension */ + post: operations['ExtensionsController_createExtension'] + /** Deletes project pg.extension with the given ID */ + delete: operations['ExtensionsController_deleteExtension'] options?: never head?: never patch?: never @@ -1804,6 +1828,26 @@ export interface paths { patch?: never trace?: never } + '/platform/pg-meta/{ref}/functions': { + parameters: { + query?: never + header?: never + path?: never + cookie?: never + } + /** Gets project pg.functions */ + get: operations['FunctionsController_getFunctions'] + put?: never + /** Creates project pg.function */ + post: operations['FunctionsController_createFunction'] + /** Deletes project pg.function with the given ID */ + delete: operations['FunctionsController_deleteFunction'] + options?: never + head?: never + /** Updates project pg.function with the given ID */ + patch: operations['FunctionsController_updateFunction'] + trace?: never + } '/platform/pg-meta/{ref}/materialized-views': { parameters: { query?: never @@ -1831,11 +1875,14 @@ export interface paths { /** Gets project pg.policies */ get: operations['PoliciesController_getPolicies'] put?: never - post?: never - delete?: never + /** Creates project pg.policy */ + post: operations['PoliciesController_createPolicy'] + /** Deletes project pg.policy with the given ID */ + delete: operations['PoliciesController_deletePolicy'] options?: never head?: never - patch?: never + /** Updates project pg.policy with the given ID */ + patch: operations['PoliciesController_updatePolicy'] trace?: never } '/platform/pg-meta/{ref}/publications': { @@ -1848,11 +1895,14 @@ export interface paths { /** Gets project pg.publications */ get: operations['PublicationsController_getPublications'] put?: never - post?: never - delete?: never + /** Creates project pg.publication */ + post: operations['PublicationsController_createPublication'] + /** Deletes project pg.publication with the given ID */ + delete: operations['PublicationsController_deletePublication'] options?: never head?: never - patch?: never + /** Updates project pg.publication with the given ID */ + patch: operations['PublicationsController_updatePublication'] trace?: never } '/platform/pg-meta/{ref}/query': { @@ -1872,6 +1922,60 @@ export interface paths { patch?: never trace?: never } + '/platform/pg-meta/{ref}/query/format': { + parameters: { + query?: never + header?: never + path?: never + cookie?: never + } + get?: never + put?: never + /** Format sql query */ + post: operations['QueryController_formatQuery'] + delete?: never + options?: never + head?: never + patch?: never + trace?: never + } + '/platform/pg-meta/{ref}/query/validate': { + parameters: { + query?: never + header?: never + path?: never + cookie?: never + } + get?: never + put?: never + /** Validate sql query */ + post: operations['QueryController_validateQuery'] + delete?: never + options?: never + head?: never + patch?: never + trace?: never + } + '/platform/pg-meta/{ref}/schemas': { + parameters: { + query?: never + header?: never + path?: never + cookie?: never + } + /** Gets project pg.schemas */ + get: operations['SchemasController_getSchemas'] + put?: never + /** Creates project pg.schema */ + post: operations['SchemasController_createSchema'] + /** Deletes project pg.schema with the given ID */ + delete: operations['SchemasController_deleteSchema'] + options?: never + head?: never + /** Updates project pg.schema with the given ID */ + patch: operations['SchemasController_updateSchema'] + trace?: never + } '/platform/pg-meta/{ref}/tables': { parameters: { query?: never @@ -1882,11 +1986,14 @@ export interface paths { /** Gets project pg.tables or pg.table with the given ID */ get: operations['TablesController_getTables'] put?: never - post?: never - delete?: never + /** Creates project pg.table */ + post: operations['TablesController_createTable'] + /** Deletes project pg.table with the given ID */ + delete: operations['TablesController_deleteTable'] options?: never head?: never - patch?: never + /** Updates project pg.table with the given ID */ + patch: operations['TablesController_updateTable'] trace?: never } '/platform/pg-meta/{ref}/triggers': { @@ -1899,11 +2006,14 @@ export interface paths { /** Gets project pg.triggers */ get: operations['TriggersController_getTriggers'] put?: never - post?: never - delete?: never + /** Creates project pg.trigger */ + post: operations['TriggersController_createTrigger'] + /** Deletes project pg.trigger with the given ID */ + delete: operations['TriggersController_deleteTrigger'] options?: never head?: never - patch?: never + /** Updates project pg.trigger with the given ID */ + patch: operations['TriggersController_updateTrigger'] trace?: never } '/platform/pg-meta/{ref}/types': { @@ -4007,23 +4117,6 @@ export interface paths { patch?: never trace?: never } - '/platform/storage/{ref}/buckets/{id}/objects/list-v2': { - parameters: { - query?: never - header?: never - path?: never - cookie?: never - } - get?: never - put?: never - /** Gets list of objects with the given bucket */ - post: operations['StorageObjectsController_getObjectsV2'] - delete?: never - options?: never - head?: never - patch?: never - trace?: never - } '/platform/storage/{ref}/buckets/{id}/objects/move': { parameters: { query?: never @@ -4686,16 +4779,7 @@ export interface components { description?: string name: string /** @enum {string} */ - type: - | 'postgres' - | 'bigquery' - | 'clickhouse' - | 'webhook' - | 'datadog' - | 'elastic' - | 'loki' - | 'sentry' - | 's3' + type: 'postgres' | 'bigquery' | 'webhook' | 'datadog' | 'elastic' | 'loki' } CreateCliLoginSessionBody: { public_key: string @@ -4707,6 +4791,22 @@ export interface components { name: string retention_days: number } + CreateColumnBody: { + check?: string + comment?: string + defaultValue?: unknown + /** @enum {string} */ + defaultValueFormat?: 'expression' | 'literal' + /** @enum {string} */ + identityGeneration?: 'BY DEFAULT' | 'ALWAYS' + isIdentity?: boolean + isNullable?: boolean + isPrimaryKey?: boolean + isUnique?: boolean + name: string + tableId: number + type: string + } CreateContentBody: { content?: { [key: string]: unknown @@ -4758,6 +4858,26 @@ export interface components { name: string status: string } + CreateExtensionBody: { + cascade: boolean + name: string + schema: string + version: string + } + CreateFunctionBody: { + args: string[] + /** @enum {string} */ + behavior: 'VOLATILE' | 'STABLE' | 'IMMUTABLE' + config_params?: { + [key: string]: string + } + definition: string + language: string + name: string + return_type: string + schema: string + security_definer: boolean + } CreateGitHubAuthorizationBody: { code: string } @@ -4958,6 +5078,18 @@ export interface components { */ id: number } + CreatePolicyBody: { + /** @enum {string} */ + action?: 'PERMISSIVE' | 'RESTRICTIVE' + check?: string + /** @enum {string} */ + command?: 'SELECT' | 'INSERT' | 'UPDATE' | 'DELETE' | 'ALL' + definition?: string + name: string + roles?: string[] + schema?: string + table: string + } CreateProjectBody: { auth_site_url?: string /** @enum {string} */ @@ -5072,6 +5204,15 @@ export interface components { status: string subscription_id: string | null } + CreatePublicationBody: { + name: string + owner?: string + publish_delete?: boolean + publish_insert?: boolean + publish_truncate?: boolean + publish_update?: boolean + tables?: string[] | null + } CreateReplicationDestinationBody: { /** @description Destination configuration */ config: @@ -5303,6 +5444,10 @@ export interface components { schema: string }[] } + CreateSchemaBody: { + name: string + owner: string + } CreateScopedAccessTokenBody: { /** Format: date-time */ expires_at?: string @@ -5463,6 +5608,11 @@ export interface components { id: string secret_key: string } + CreateTableBody: { + comment?: string + name: string + schema?: string + } CreateTaxIdBody: { country?: string type: string @@ -5480,6 +5630,22 @@ export interface components { */ tenant_id: string } + CreateTriggerBody: { + /** @enum {string} */ + activation: 'AFTER' | 'BEFORE' + /** @enum {string} */ + enabled_mode: 'ORIGIN' | 'REPLICA' | 'ALWAYS' | 'DISABLED' + events: ('INSERT' | 'UPDATE' | 'DELETE')[] + function_args?: string[] + function_name: string + function_schema: string + name: string + /** @enum {string} */ + orientation: 'ROW' | 'STATEMENT' + schema: string + table: string + table_id?: number + } CreateUserBody: { email: string email_confirm: boolean @@ -5810,6 +5976,9 @@ export interface components { scope?: string token_endpoint_auth_method?: string } + FormatQueryBody: { + query: string + } GetArchiveResponse: { archive_empty: boolean file_url: string @@ -5938,19 +6107,6 @@ export interface components { } path: string } - GetObjectsV2Body: { - cursor?: string - /** @default 1000 */ - limit?: number - prefix?: string - sortBy?: { - /** @enum {string} */ - column: 'name' | 'updated_at' | 'created_at' - /** @enum {string} */ - order?: 'asc' | 'desc' - } - with_delimiter?: boolean - } GetOrganizationByFlyOrganizationIdResponse: { slug: string } @@ -6688,6 +6844,13 @@ export interface components { SMTP_USER: string URI_ALLOW_LIST: string } + GrantColumnPrivilegesBody: { + column_id: string + grantee: string + is_grantable?: boolean + /** @enum {string} */ + privilege_type: 'ALL' | 'SELECT' | 'INSERT' | 'UPDATE' | 'REFERENCES' + }[] InvitationByTokenResponse: { authorized_user: boolean email_match: boolean @@ -6779,16 +6942,7 @@ export interface components { name: string token: string /** @enum {string} */ - type: - | 'postgres' - | 'bigquery' - | 'clickhouse' - | 'webhook' - | 'datadog' - | 'elastic' - | 'loki' - | 'sentry' - | 's3' + type: 'postgres' | 'bigquery' | 'webhook' | 'datadog' | 'elastic' | 'loki' user_id: number } LFEndpoint: { @@ -6842,7 +6996,6 @@ export interface components { } | { enabled: boolean - unit: string unlimited: boolean value: number } @@ -7503,6 +7656,27 @@ export interface components { PointInTimeRestoreBody: { recovery_time_target_unix: number } + PostgresColumn: { + check: string | null + comment: string | null + data_type: string + default_value: (string | number) | null + enums: string[] + format: string + id: string + /** @enum {string|null} */ + identity_generation: 'BY DEFAULT' | 'ALWAYS' | null + is_generated: boolean + is_identity: boolean + is_nullable: boolean + is_unique: boolean + is_updatable: boolean + name: string + ordinal_position: number + schema: string + table: string + table_id: number + } PostgresColumnPrivileges: { column_id: string column_name: string @@ -7518,7 +7692,6 @@ export interface components { } PostgresConfigResponse: { effective_cache_size?: string - hot_standby_feedback?: boolean logical_decoding_work_mem?: string maintenance_work_mem?: string max_connections?: number @@ -7577,6 +7750,23 @@ export interface components { name: string schema: string } + PostgresFunction: { + argument_types: string + /** @enum {string} */ + behavior: 'VOLATILE' | 'STABLE' | 'IMMUTABLE' + complete_statement: string + config_params: { + [key: string]: string + } | null + definition: string + id: number + identity_argument_types: string + language: string + name: string + return_type: string + schema: string + security_definer: boolean + } PostgresMaterializedView: { columns?: { check: string | null @@ -7635,6 +7825,11 @@ export interface components { }[] | null } + PostgresSchema: { + id: number + name: string + owner: string + } PostgresTable: { bytes: number columns?: { @@ -8768,6 +8963,12 @@ export interface components { name: string website: string } + RevokeColumnPrivilegesBody: { + column_id: string + grantee: string + /** @enum {string} */ + privilege_type: 'ALL' | 'SELECT' | 'INSERT' | 'UPDATE' | 'REFERENCES' + }[] RollbackTableStateBody: { /** * @description Rollback type @@ -8892,7 +9093,6 @@ export interface components { RunQueryBody: { /** @default false */ disable_statement_timeout?: boolean - parameters?: unknown[] query: string } SendDocsFeedbackBody: { @@ -9000,33 +9200,6 @@ export interface components { /** Format: int64 */ fileSizeLimit: number } - StorageListResponseV2: { - folders: { - created_at: string - key: string - name: string - updated_at: string - }[] - hasNext: boolean - nextCursor?: string - objects: { - created_at: string - id: string - key: string - last_accessed_at: string - metadata: { - cacheControl?: string | null - contentLength?: number | null - eTag?: string | null - httpStatusCode?: number | null - lastModified?: string | null - mimetype?: string | null - size?: number | null - } - name: string - updated_at: string - }[] - } StorageObject: { bucket_id: string buckets: { @@ -9406,6 +9579,22 @@ export interface components { name: string retention_days: number } + UpdateColumnBody: { + check?: string + comment?: string + defaultValue?: unknown + /** @enum {string} */ + defaultValueFormat?: 'expression' | 'literal' + dropDefault?: boolean + id?: number + /** @enum {string} */ + identityGeneration?: 'BY DEFAULT' | 'ALWAYS' + isIdentity?: boolean + isNullable?: boolean + isUnique?: boolean + name?: string + type?: string + } UpdateContentFolderBody: { name: string } @@ -9429,6 +9618,21 @@ export interface components { UpdateEmailBody: { newEmail: string } + UpdateFunctionBody: { + args?: string[] + /** @enum {string} */ + behavior?: 'VOLATILE' | 'STABLE' | 'IMMUTABLE' + config_params?: { + [key: string]: string + } + definition?: string + id?: number + language?: string + name?: string + return_type?: string + schema?: string + security_definer?: boolean + } UpdateGitHubConnectionBody: { branch_limit?: number new_branch_per_pr?: boolean @@ -9766,6 +9970,13 @@ export interface components { server_idle_timeout?: number server_lifetime?: number } + UpdatePolicyBody: { + check?: string + definition?: string + id?: number + name?: string + roles?: string[] + } UpdatePoolingConfigResponse: { default_pool_size?: number ignore_startup_parameters: string @@ -9784,7 +9995,6 @@ export interface components { } UpdatePostgresConfigBody: { effective_cache_size?: string - hot_standby_feedback?: boolean logical_decoding_work_mem?: string maintenance_work_mem?: string max_connections?: number @@ -9838,6 +10048,16 @@ export interface components { UpdateProjectBody: { name: string } + UpdatePublicationBody: { + id?: number + name?: string + owner?: string + publish_delete?: boolean + publish_insert?: boolean + publish_truncate?: boolean + publish_update?: boolean + tables?: string[] | null + } UpdateRealtimeConfigBody: { /** @description Sets connection pool size for Realtime Authorization */ connection_pool?: number @@ -10078,6 +10298,10 @@ export interface components { */ version_id: number } + UpdateSchemaBody: { + name?: string + owner?: string + } UpdateSecretsConfigBody: { change_tracking_id: string jwt_secret: string @@ -10199,6 +10423,34 @@ export interface components { default_pool_size: number | null pool_mode: string } + UpdateTableBody: { + comment?: string + id?: number + name?: string + /** @enum {string} */ + replica_identity?: 'DEFAULT' | 'INDEX' | 'FULL' | 'NOTHING' + replica_identity_index?: string + rls_enabled?: boolean + rls_forced?: boolean + schema?: string + } + UpdateTriggerBody: { + /** @enum {string} */ + activation?: 'AFTER' | 'BEFORE' + /** @enum {string} */ + enabled_mode?: 'ORIGIN' | 'REPLICA' | 'ALWAYS' | 'DISABLED' + events?: ('INSERT' | 'UPDATE' | 'DELETE')[] + function_args?: string[] + function_name?: string + function_schema?: string + id?: number + name?: string + /** @enum {string} */ + orientation?: 'ROW' | 'STATEMENT' + schema?: string + table?: string + table_id?: number + } UpdateUserBody: { ban_duration?: string } @@ -10332,6 +10584,12 @@ export interface components { /** @enum {string} */ visibility: 'user' | 'project' | 'org' | 'public' } + ValidateQueryBody: { + query: string + } + ValidateQueryResponse: { + valid: boolean + } ValidateSpamBody: { content: string subject: string @@ -16016,6 +16274,355 @@ export interface operations { } } } + ColumnPrivilegesController_grantColumnPrivileges: { + parameters: { + query?: never + header: { + 'x-connection-encrypted': string + /** @description PostgreSQL connection application name */ + 'x-pg-application-name'?: string + } + path: { + /** @description Project ref */ + ref: string + } + cookie?: never + } + requestBody: { + content: { + 'application/json': components['schemas']['GrantColumnPrivilegesBody'] + } + } + responses: { + 201: { + headers: { + [name: string]: unknown + } + content: { + 'application/json': components['schemas']['PostgresColumnPrivileges'][] + } + } + /** @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 + } + /** @description Failed to grant column privileges */ + 500: { + headers: { + [name: string]: unknown + } + content?: never + } + } + } + ColumnPrivilegesController_revokeColumnPrivileges: { + parameters: { + query?: never + header: { + 'x-connection-encrypted': string + /** @description PostgreSQL connection application name */ + 'x-pg-application-name'?: string + } + path: { + /** @description Project ref */ + ref: string + } + cookie?: never + } + requestBody: { + content: { + 'application/json': components['schemas']['RevokeColumnPrivilegesBody'] + } + } + responses: { + 200: { + headers: { + [name: string]: unknown + } + content: { + 'application/json': components['schemas']['PostgresColumnPrivileges'][] + } + } + /** @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 + } + /** @description Failed to revoke column privileges */ + 500: { + headers: { + [name: string]: unknown + } + content?: never + } + } + } + ColumnsController_getColumns: { + parameters: { + query?: { + excluded_schemas?: string + included_schemas?: string + } + header: { + 'x-connection-encrypted': string + /** @description PostgreSQL connection application name */ + 'x-pg-application-name'?: string + } + path: { + /** @description Project ref */ + ref: string + } + cookie?: never + } + requestBody?: never + responses: { + 200: { + headers: { + [name: string]: unknown + } + content: { + 'application/json': components['schemas']['PostgresColumn'][] + } + } + /** @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 + } + /** @description Failed to get pg.columns */ + 500: { + headers: { + [name: string]: unknown + } + content?: never + } + } + } + ColumnsController_createColumn: { + parameters: { + query?: never + header: { + 'x-connection-encrypted': string + /** @description PostgreSQL connection application name */ + 'x-pg-application-name'?: string + } + path: { + /** @description Project ref */ + ref: string + } + cookie?: never + } + requestBody: { + content: { + 'application/json': components['schemas']['CreateColumnBody'] + } + } + responses: { + 201: { + headers: { + [name: string]: unknown + } + content: { + 'application/json': components['schemas']['PostgresColumn'] + } + } + /** @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 + } + /** @description Failed to create pg.column */ + 500: { + headers: { + [name: string]: unknown + } + content?: never + } + } + } + ColumnsController_deleteColumn: { + parameters: { + query: { + /** @description Boolean string, true or false */ + cascade?: boolean + id: string + } + header: { + 'x-connection-encrypted': string + /** @description PostgreSQL connection application name */ + 'x-pg-application-name'?: string + } + path: { + /** @description Project ref */ + ref: string + } + cookie?: never + } + requestBody?: never + responses: { + 200: { + headers: { + [name: string]: unknown + } + content: { + 'application/json': components['schemas']['PostgresColumn'] + } + } + /** @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 + } + /** @description Failed to delete pg.column with the given ID */ + 500: { + headers: { + [name: string]: unknown + } + content?: never + } + } + } + ColumnsController_updateColumn: { + parameters: { + query: { + id: string + } + header: { + 'x-connection-encrypted': string + /** @description PostgreSQL connection application name */ + 'x-pg-application-name'?: string + } + path: { + /** @description Project ref */ + ref: string + } + cookie?: never + } + requestBody: { + content: { + 'application/json': components['schemas']['UpdateColumnBody'] + } + } + responses: { + 200: { + headers: { + [name: string]: unknown + } + content: { + 'application/json': components['schemas']['PostgresColumn'] + } + } + /** @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 + } + /** @description Failed to update pg.column with the given ID */ + 500: { + headers: { + [name: string]: unknown + } + content?: never + } + } + } ExtensionsController_getExtensions: { parameters: { query?: never @@ -16070,6 +16677,120 @@ export interface operations { } } } + ExtensionsController_createExtension: { + parameters: { + query?: never + header: { + 'x-connection-encrypted': string + /** @description PostgreSQL connection application name */ + 'x-pg-application-name'?: string + } + path: { + /** @description Project ref */ + ref: string + } + cookie?: never + } + requestBody: { + content: { + 'application/json': components['schemas']['CreateExtensionBody'] + } + } + responses: { + 201: { + headers: { + [name: string]: unknown + } + content: { + 'application/json': components['schemas']['PostgresExtension'] + } + } + /** @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 + } + /** @description Failed to create pg.extension */ + 500: { + headers: { + [name: string]: unknown + } + content?: never + } + } + } + ExtensionsController_deleteExtension: { + parameters: { + query: { + id: string + } + header: { + 'x-connection-encrypted': string + /** @description PostgreSQL connection application name */ + 'x-pg-application-name'?: string + } + path: { + /** @description Project ref */ + ref: string + } + cookie?: never + } + requestBody?: never + responses: { + 200: { + headers: { + [name: string]: unknown + } + content: { + 'application/json': components['schemas']['PostgresExtension'] + } + } + /** @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 + } + /** @description Failed to delete pg.extension with the given ID */ + 500: { + headers: { + [name: string]: unknown + } + content?: never + } + } + } ForeignTablesController_getForeignTables: { parameters: { query?: { @@ -16129,6 +16850,237 @@ export interface operations { } } } + FunctionsController_getFunctions: { + parameters: { + query?: { + excluded_schemas?: string + included_schemas?: string + } + header: { + 'x-connection-encrypted': string + /** @description PostgreSQL connection application name */ + 'x-pg-application-name'?: string + } + path: { + /** @description Project ref */ + ref: string + } + cookie?: never + } + requestBody?: never + responses: { + 200: { + headers: { + [name: string]: unknown + } + content: { + 'application/json': components['schemas']['PostgresFunction'][] + } + } + /** @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 + } + /** @description Failed to get pg.functions */ + 500: { + headers: { + [name: string]: unknown + } + content?: never + } + } + } + FunctionsController_createFunction: { + parameters: { + query?: never + header: { + 'x-connection-encrypted': string + /** @description PostgreSQL connection application name */ + 'x-pg-application-name'?: string + } + path: { + /** @description Project ref */ + ref: string + } + cookie?: never + } + requestBody: { + content: { + 'application/json': components['schemas']['CreateFunctionBody'] + } + } + responses: { + 201: { + headers: { + [name: string]: unknown + } + content: { + 'application/json': components['schemas']['PostgresFunction'] + } + } + /** @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 + } + /** @description Failed to create pg.function */ + 500: { + headers: { + [name: string]: unknown + } + content?: never + } + } + } + FunctionsController_deleteFunction: { + parameters: { + query: { + id: number + } + header: { + 'x-connection-encrypted': string + /** @description PostgreSQL connection application name */ + 'x-pg-application-name'?: string + } + path: { + /** @description Project ref */ + ref: string + } + cookie?: never + } + requestBody?: never + responses: { + 200: { + headers: { + [name: string]: unknown + } + content: { + 'application/json': components['schemas']['PostgresFunction'] + } + } + /** @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 + } + /** @description Failed to delete pg.function with the given ID */ + 500: { + headers: { + [name: string]: unknown + } + content?: never + } + } + } + FunctionsController_updateFunction: { + parameters: { + query: { + id: number + } + header: { + 'x-connection-encrypted': string + /** @description PostgreSQL connection application name */ + 'x-pg-application-name'?: string + } + path: { + /** @description Project ref */ + ref: string + } + cookie?: never + } + requestBody: { + content: { + 'application/json': components['schemas']['UpdateFunctionBody'] + } + } + responses: { + 200: { + headers: { + [name: string]: unknown + } + content: { + 'application/json': components['schemas']['PostgresFunction'] + } + } + /** @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 + } + /** @description Failed to update pg.function with the given ID */ + 500: { + headers: { + [name: string]: unknown + } + content?: never + } + } + } MaterializedViewsController_getMaterializedViews: { parameters: { query?: { @@ -16248,6 +17200,180 @@ export interface operations { } } } + PoliciesController_createPolicy: { + parameters: { + query?: never + header: { + 'x-connection-encrypted': string + /** @description PostgreSQL connection application name */ + 'x-pg-application-name'?: string + } + path: { + /** @description Project ref */ + ref: string + } + cookie?: never + } + requestBody: { + content: { + 'application/json': components['schemas']['CreatePolicyBody'] + } + } + responses: { + 201: { + headers: { + [name: string]: unknown + } + content: { + 'application/json': components['schemas']['PostgresPolicy'] + } + } + /** @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 + } + /** @description Failed to create pg.policy */ + 500: { + headers: { + [name: string]: unknown + } + content?: never + } + } + } + PoliciesController_deletePolicy: { + parameters: { + query: { + id: number + } + header: { + 'x-connection-encrypted': string + /** @description PostgreSQL connection application name */ + 'x-pg-application-name'?: string + } + path: { + /** @description Project ref */ + ref: string + } + cookie?: never + } + requestBody?: never + responses: { + 200: { + headers: { + [name: string]: unknown + } + content: { + 'application/json': components['schemas']['PostgresPolicy'] + } + } + /** @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 + } + /** @description Failed to delete pg.policy with the given ID */ + 500: { + headers: { + [name: string]: unknown + } + content?: never + } + } + } + PoliciesController_updatePolicy: { + parameters: { + query: { + id: number + } + header: { + 'x-connection-encrypted': string + /** @description PostgreSQL connection application name */ + 'x-pg-application-name'?: string + } + path: { + /** @description Project ref */ + ref: string + } + cookie?: never + } + requestBody: { + content: { + 'application/json': components['schemas']['UpdatePolicyBody'] + } + } + responses: { + 200: { + headers: { + [name: string]: unknown + } + content: { + 'application/json': components['schemas']['PostgresPolicy'] + } + } + /** @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 + } + /** @description Failed to update pg.policy with the given ID */ + 500: { + headers: { + [name: string]: unknown + } + content?: never + } + } + } PublicationsController_getPublications: { parameters: { query?: never @@ -16302,6 +17428,180 @@ export interface operations { } } } + PublicationsController_createPublication: { + parameters: { + query?: never + header: { + 'x-connection-encrypted': string + /** @description PostgreSQL connection application name */ + 'x-pg-application-name'?: string + } + path: { + /** @description Project ref */ + ref: string + } + cookie?: never + } + requestBody: { + content: { + 'application/json': components['schemas']['CreatePublicationBody'] + } + } + responses: { + 201: { + headers: { + [name: string]: unknown + } + content: { + 'application/json': components['schemas']['PostgresPublication'] + } + } + /** @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 + } + /** @description Failed to create pg.publication */ + 500: { + headers: { + [name: string]: unknown + } + content?: never + } + } + } + PublicationsController_deletePublication: { + parameters: { + query: { + id: number + } + header: { + 'x-connection-encrypted': string + /** @description PostgreSQL connection application name */ + 'x-pg-application-name'?: string + } + path: { + /** @description Project ref */ + ref: string + } + cookie?: never + } + requestBody?: never + responses: { + 200: { + headers: { + [name: string]: unknown + } + content: { + 'application/json': components['schemas']['PostgresPublication'] + } + } + /** @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 + } + /** @description Failed to delete pg.publication with the given ID */ + 500: { + headers: { + [name: string]: unknown + } + content?: never + } + } + } + PublicationsController_updatePublication: { + parameters: { + query: { + id: number + } + header: { + 'x-connection-encrypted': string + /** @description PostgreSQL connection application name */ + 'x-pg-application-name'?: string + } + path: { + /** @description Project ref */ + ref: string + } + cookie?: never + } + requestBody: { + content: { + 'application/json': components['schemas']['UpdatePublicationBody'] + } + } + responses: { + 200: { + headers: { + [name: string]: unknown + } + content: { + 'application/json': components['schemas']['PostgresPublication'] + } + } + /** @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 + } + /** @description Failed to update pg.publication with the given ID */ + 500: { + headers: { + [name: string]: unknown + } + content?: never + } + } + } QueryController_runQuery: { parameters: { query?: never @@ -16358,6 +17658,340 @@ export interface operations { } } } + QueryController_formatQuery: { + parameters: { + query?: never + header?: never + path: { + /** @description Project ref */ + ref: string + } + cookie?: never + } + requestBody: { + content: { + 'application/json': components['schemas']['FormatQueryBody'] + } + } + responses: { + 201: { + 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 Rate limit exceeded */ + 429: { + headers: { + [name: string]: unknown + } + content?: never + } + /** @description Failed to format sql query */ + 500: { + headers: { + [name: string]: unknown + } + content?: never + } + } + } + QueryController_validateQuery: { + parameters: { + query?: never + header?: never + path: { + /** @description Project ref */ + ref: string + } + cookie?: never + } + requestBody: { + content: { + 'application/json': components['schemas']['ValidateQueryBody'] + } + } + responses: { + 201: { + headers: { + [name: string]: unknown + } + content: { + 'application/json': components['schemas']['ValidateQueryResponse'] + } + } + /** @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 + } + /** @description Failed to validate sql query */ + 500: { + headers: { + [name: string]: unknown + } + content?: never + } + } + } + SchemasController_getSchemas: { + parameters: { + query?: never + header: { + 'x-connection-encrypted': string + /** @description PostgreSQL connection application name */ + 'x-pg-application-name'?: string + } + path: { + /** @description Project ref */ + ref: string + } + cookie?: never + } + requestBody?: never + responses: { + 200: { + headers: { + [name: string]: unknown + } + content: { + 'application/json': components['schemas']['PostgresSchema'][] + } + } + /** @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 + } + /** @description Failed to get pg.schemas */ + 500: { + headers: { + [name: string]: unknown + } + content?: never + } + } + } + SchemasController_createSchema: { + parameters: { + query?: never + header: { + 'x-connection-encrypted': string + /** @description PostgreSQL connection application name */ + 'x-pg-application-name'?: string + } + path: { + /** @description Project ref */ + ref: string + } + cookie?: never + } + requestBody: { + content: { + 'application/json': components['schemas']['CreateSchemaBody'] + } + } + responses: { + 201: { + headers: { + [name: string]: unknown + } + content: { + 'application/json': components['schemas']['PostgresSchema'] + } + } + /** @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 + } + /** @description Failed to create pg.schema */ + 500: { + headers: { + [name: string]: unknown + } + content?: never + } + } + } + SchemasController_deleteSchema: { + parameters: { + query: { + id: number + } + header: { + 'x-connection-encrypted': string + /** @description PostgreSQL connection application name */ + 'x-pg-application-name'?: string + } + path: { + /** @description Project ref */ + ref: string + } + cookie?: never + } + requestBody?: never + responses: { + 200: { + headers: { + [name: string]: unknown + } + content: { + 'application/json': components['schemas']['PostgresSchema'] + } + } + /** @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 + } + /** @description Failed to delete pg.schema with the given ID */ + 500: { + headers: { + [name: string]: unknown + } + content?: never + } + } + } + SchemasController_updateSchema: { + parameters: { + query: { + id: number + } + header: { + 'x-connection-encrypted': string + /** @description PostgreSQL connection application name */ + 'x-pg-application-name'?: string + } + path: { + /** @description Project ref */ + ref: string + } + cookie?: never + } + requestBody: { + content: { + 'application/json': components['schemas']['UpdateSchemaBody'] + } + } + responses: { + 200: { + headers: { + [name: string]: unknown + } + content: { + 'application/json': components['schemas']['PostgresSchema'] + } + } + /** @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 + } + /** @description Failed to update pg.schema with the given ID */ + 500: { + headers: { + [name: string]: unknown + } + content?: never + } + } + } TablesController_getTables: { parameters: { query?: { @@ -16420,6 +18054,182 @@ export interface operations { } } } + TablesController_createTable: { + parameters: { + query?: never + header: { + 'x-connection-encrypted': string + /** @description PostgreSQL connection application name */ + 'x-pg-application-name'?: string + } + path: { + /** @description Project ref */ + ref: string + } + cookie?: never + } + requestBody: { + content: { + 'application/json': components['schemas']['CreateTableBody'] + } + } + responses: { + 201: { + headers: { + [name: string]: unknown + } + content: { + 'application/json': components['schemas']['PostgresTable'] + } + } + /** @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 + } + /** @description Failed to create pg.table */ + 500: { + headers: { + [name: string]: unknown + } + content?: never + } + } + } + TablesController_deleteTable: { + parameters: { + query: { + /** @description Boolean string, true or false */ + cascade?: boolean + id: number + } + header: { + 'x-connection-encrypted': string + /** @description PostgreSQL connection application name */ + 'x-pg-application-name'?: string + } + path: { + /** @description Project ref */ + ref: string + } + cookie?: never + } + requestBody?: never + responses: { + 200: { + headers: { + [name: string]: unknown + } + content: { + 'application/json': components['schemas']['PostgresTable'] + } + } + /** @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 + } + /** @description Failed to delete pg.table with the given ID */ + 500: { + headers: { + [name: string]: unknown + } + content?: never + } + } + } + TablesController_updateTable: { + parameters: { + query: { + id: number + } + header: { + 'x-connection-encrypted': string + /** @description PostgreSQL connection application name */ + 'x-pg-application-name'?: string + } + path: { + /** @description Project ref */ + ref: string + } + cookie?: never + } + requestBody: { + content: { + 'application/json': components['schemas']['UpdateTableBody'] + } + } + responses: { + 200: { + headers: { + [name: string]: unknown + } + content: { + 'application/json': components['schemas']['PostgresTable'] + } + } + /** @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 + } + /** @description Failed to update pg.table with the given ID */ + 500: { + headers: { + [name: string]: unknown + } + content?: never + } + } + } TriggersController_getTriggers: { parameters: { query?: { @@ -16477,6 +18287,180 @@ export interface operations { } } } + TriggersController_createTrigger: { + parameters: { + query?: never + header: { + 'x-connection-encrypted': string + /** @description PostgreSQL connection application name */ + 'x-pg-application-name'?: string + } + path: { + /** @description Project ref */ + ref: string + } + cookie?: never + } + requestBody: { + content: { + 'application/json': components['schemas']['CreateTriggerBody'] + } + } + responses: { + 201: { + headers: { + [name: string]: unknown + } + content: { + 'application/json': components['schemas']['PostgresTrigger'] + } + } + /** @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 + } + /** @description Failed to create pg.trigger */ + 500: { + headers: { + [name: string]: unknown + } + content?: never + } + } + } + TriggersController_deleteTrigger: { + parameters: { + query: { + id: number + } + header: { + 'x-connection-encrypted': string + /** @description PostgreSQL connection application name */ + 'x-pg-application-name'?: string + } + path: { + /** @description Project ref */ + ref: string + } + cookie?: never + } + requestBody?: never + responses: { + 200: { + headers: { + [name: string]: unknown + } + content: { + 'application/json': components['schemas']['PostgresTrigger'] + } + } + /** @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 + } + /** @description Failed to delete pg.trigger with the given ID */ + 500: { + headers: { + [name: string]: unknown + } + content?: never + } + } + } + TriggersController_updateTrigger: { + parameters: { + query: { + id: number + } + header: { + 'x-connection-encrypted': string + /** @description PostgreSQL connection application name */ + 'x-pg-application-name'?: string + } + path: { + /** @description Project ref */ + ref: string + } + cookie?: never + } + requestBody: { + content: { + 'application/json': components['schemas']['UpdateTriggerBody'] + } + } + responses: { + 200: { + headers: { + [name: string]: unknown + } + content: { + 'application/json': components['schemas']['PostgresTrigger'] + } + } + /** @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 + } + /** @description Failed to update pg.trigger with the given ID */ + 500: { + headers: { + [name: string]: unknown + } + content?: never + } + } + } TypesController_getTypes: { parameters: { query?: { @@ -24484,62 +26468,6 @@ export interface operations { } } } - StorageObjectsController_getObjectsV2: { - parameters: { - query?: never - header?: never - path: { - /** @description Storage bucket id */ - id: string - /** @description Project ref */ - ref: string - } - cookie?: never - } - requestBody: { - content: { - 'application/json': components['schemas']['GetObjectsV2Body'] - } - } - responses: { - 201: { - headers: { - [name: string]: unknown - } - content: { - 'application/json': components['schemas']['StorageListResponseV2'] - } - } - /** @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 - } - /** @description Failed to get list of objects with the given bucket */ - 500: { - headers: { - [name: string]: unknown - } - content?: never - } - } - } StorageObjectsController_moveObject: { parameters: { query?: never