Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

types are broken (#39866)

Stojan Dimitrovski1af6b8479008
diff --git a/apps/studio/components/interfaces/Database/Privileges/Privileges.utils.ts b/apps/studio/components/interfaces/Database/Privileges/Privileges.utils.ts
index 1cad017ce32..0ffcd7b5763 100644
--- a/apps/studio/components/interfaces/Database/Privileges/Privileges.utils.ts
+++ b/apps/studio/components/interfaces/Database/Privileges/Privileges.utils.ts
@@ -300,14 +300,14 @@ export function useApplyPrivilegeOperations(callback?: () => void) {
.map((op) => ({
column_id: String(op.id),
grantee: op.grantee,
- privilege_type: op.privilege_type as ColumnPrivilegesRevoke[number]['privilege_type'],
+ privilege_type: op.privilege_type as ColumnPrivilegesRevoke['privilege_type'],
}))
const revokeColumnOperations = columnOperations
.filter((op) => op.type === 'revoke')
.map((op) => ({
column_id: String(op.id),
grantee: op.grantee,
- privilege_type: op.privilege_type as ColumnPrivilegesRevoke[number]['privilege_type'],
+ privilege_type: op.privilege_type as ColumnPrivilegesRevoke['privilege_type'],
}))
// annoyingly these can't be run all at once
diff --git a/apps/studio/components/interfaces/LogDrains/LogDrainDestinationSheetForm.tsx b/apps/studio/components/interfaces/LogDrains/LogDrainDestinationSheetForm.tsx
index 6596c861070..ee4be200f44 100644
--- a/apps/studio/components/interfaces/LogDrains/LogDrainDestinationSheetForm.tsx
+++ b/apps/studio/components/interfaces/LogDrains/LogDrainDestinationSheetForm.tsx
@@ -55,6 +55,14 @@ const formUnion = z.discriminatedUnion('type', [
api_key: z.string().min(1, { message: 'API key is required' }),
region: z.string().min(1, { message: 'Region is required' }),
}),
+ z.object({
+ type: z.literal('loki'),
+ url: z.string().min(1, { message: 'Loki URL is required' }),
+ headers: z.record(z.string(), z.string()),
+ username: z.string().optional(),
+ password: z.string().optional(),
+ }),
+ // [Joshen] To fix API types, not supported in the UI
z.object({
type: z.literal('elastic'),
}),
@@ -65,11 +73,13 @@ const formUnion = z.discriminatedUnion('type', [
type: z.literal('bigquery'),
}),
z.object({
- type: z.literal('loki'),
- url: z.string().min(1, { message: 'Loki URL is required' }),
- headers: z.record(z.string(), z.string()),
- username: z.string().optional(),
- password: z.string().optional(),
+ type: z.literal('clickhouse'),
+ }),
+ z.object({
+ type: z.literal('s3'),
+ }),
+ z.object({
+ type: z.literal('sentry'),
}),
])
diff --git a/apps/studio/components/interfaces/LogDrains/LogDrains.constants.tsx b/apps/studio/components/interfaces/LogDrains/LogDrains.constants.tsx
index 813a795db47..bb4308170bd 100644
--- a/apps/studio/components/interfaces/LogDrains/LogDrains.constants.tsx
+++ b/apps/studio/components/interfaces/LogDrains/LogDrains.constants.tsx
@@ -1,5 +1,6 @@
-import { BracesIcon } from 'lucide-react'
+import { components } from 'api-types'
import { Datadog, Grafana } from 'icons'
+import { BracesIcon } from 'lucide-react'
const iconProps = {
height: 24,
@@ -31,11 +32,13 @@ export const LOG_DRAIN_TYPES = [
export const LOG_DRAIN_SOURCE_VALUES = LOG_DRAIN_TYPES.map((source) => source.value)
-export type LogDrainType =
- | (typeof LOG_DRAIN_TYPES)[number]['value']
- | 'postgres'
- | 'bigquery'
- | 'elastic'
+// export type LogDrainType =
+// | (typeof LOG_DRAIN_TYPES)[number]['value']
+// | 'postgres'
+// | 'bigquery'
+// | 'elastic'
+
+export type LogDrainType = components['schemas']['LFBackend']['type']
export const DATADOG_REGIONS = [
{
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.utils.ts b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.utils.ts
index c767ee78a2c..896f97e8ed5 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.utils.ts
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.utils.ts
@@ -4,15 +4,15 @@ import type { Dictionary } from 'types'
import { FOREIGN_KEY_CASCADE_ACTION } from 'data/database/database-query-constants'
import type { ForeignKeyConstraint } from 'data/database/foreign-key-constraints-query'
+import type { RetrievedTableColumn, RetrieveTableResult } from 'data/tables/table-retrieve-query'
import { uuidv4 } from 'lib/helpers'
+import { toast } from 'sonner'
import {
ColumnField,
CreateColumnPayload,
ExtendedPostgresRelationship,
UpdateColumnPayload,
} from '../SidePanelEditor.types'
-import type { RetrievedTableColumn, RetrieveTableResult } from 'data/tables/table-retrieve-query'
-import { toast } from 'sonner'
const isSQLExpression = (input: string) => {
if (['CURRENT_DATE'].includes(input)) return true
@@ -136,10 +136,10 @@ export const generateUpdateColumnPayload = (
payload.name = name
}
if (!isEqual(originalColumn.comment?.trim(), comment)) {
- payload.comment = comment || null
+ payload.comment = comment
}
if (!isEqual(originalColumn.check?.trim(), check)) {
- payload.check = check || null
+ payload.check = check
}
if (!isEqual(originalColumn.format, type)) {
diff --git a/apps/studio/data/database-columns/database-column-create-mutation.ts b/apps/studio/data/database-columns/database-column-create-mutation.ts
index 38f57e0addc..19ee9b2ab7d 100644
--- a/apps/studio/data/database-columns/database-column-create-mutation.ts
+++ b/apps/studio/data/database-columns/database-column-create-mutation.ts
@@ -2,13 +2,23 @@ import pgMeta from '@supabase/pg-meta'
import { useMutation, UseMutationOptions } from '@tanstack/react-query'
import { toast } from 'sonner'
-import type { components } from 'data/api'
import { executeSql } from 'data/sql/execute-sql-query'
import type { ResponseError } from 'types'
-export type CreateColumnBody = Omit<components['schemas']['CreateColumnBody'], 'tableId'> & {
+export type CreateColumnBody = {
schema: string
table: string
+ name: string
+ type: string
+ check?: string
+ comment?: string
+ defaultValue?: any
+ defaultValueFormat?: 'expression' | 'literal'
+ identityGeneration?: 'BY DEFAULT' | 'ALWAYS'
+ isIdentity?: boolean
+ isNullable?: boolean
+ isPrimaryKey?: boolean
+ isUnique?: boolean
}
export type DatabaseColumnCreateVariables = {
diff --git a/apps/studio/data/database-columns/database-column-update-mutation.ts b/apps/studio/data/database-columns/database-column-update-mutation.ts
index 419f25cb372..8958473ed60 100644
--- a/apps/studio/data/database-columns/database-column-update-mutation.ts
+++ b/apps/studio/data/database-columns/database-column-update-mutation.ts
@@ -3,16 +3,14 @@ import { PGColumn } from '@supabase/pg-meta/src/pg-meta-columns'
import { useMutation, UseMutationOptions } from '@tanstack/react-query'
import { toast } from 'sonner'
-import type { components } from 'data/api'
import { executeSql } from 'data/sql/execute-sql-query'
import type { ResponseError } from 'types'
+import { CreateColumnBody } from './database-column-create-mutation'
-export type UpdateColumnBody = Omit<
- components['schemas']['UpdateColumnBody'],
- 'check' | 'comment'
+export type UpdateColumnBody = Partial<
+ Omit<CreateColumnBody, 'schema' | 'table' | 'isPrimaryKey'>
> & {
- check?: string | null
- comment?: string | null
+ dropDefault?: boolean
}
export type DatabaseColumnUpdateVariables = {
diff --git a/apps/studio/data/database-policies/database-policy-create-mutation.ts b/apps/studio/data/database-policies/database-policy-create-mutation.ts
index b218c4a32dc..386abe32cb1 100644
--- a/apps/studio/data/database-policies/database-policy-create-mutation.ts
+++ b/apps/studio/data/database-policies/database-policy-create-mutation.ts
@@ -2,12 +2,20 @@ import pgMeta from '@supabase/pg-meta'
import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query'
import { toast } from 'sonner'
-import type { components } from 'data/api'
import { executeSql } from 'data/sql/execute-sql-query'
import type { ResponseError } from 'types'
import { databasePoliciesKeys } from './keys'
-type CreatePolicyBody = components['schemas']['CreatePolicyBody']
+type CreatePolicyBody = {
+ name: string
+ table: string
+ schema?: string
+ definition?: string
+ check?: string
+ action?: 'PERMISSIVE' | 'RESTRICTIVE'
+ command?: 'SELECT' | 'INSERT' | 'UPDATE' | 'DELETE' | 'ALL'
+ roles?: string[]
+}
export type DatabasePolicyCreateVariables = {
projectRef: string
diff --git a/apps/studio/data/privileges/column-privileges-grant-mutation.ts b/apps/studio/data/privileges/column-privileges-grant-mutation.ts
index 6452d45b52b..346fb3cd917 100644
--- a/apps/studio/data/privileges/column-privileges-grant-mutation.ts
+++ b/apps/studio/data/privileges/column-privileges-grant-mutation.ts
@@ -1,17 +1,21 @@
+import pgMeta from '@supabase/pg-meta'
import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query'
+import { executeSql } from 'data/sql/execute-sql-query'
import { toast } from 'sonner'
-import type { components } from 'data/api'
import type { ResponseError } from 'types'
import { privilegeKeys } from './keys'
-import pgMeta from '@supabase/pg-meta'
-import { executeSql } from 'data/sql/execute-sql-query'
-export type ColumnPrivilegesGrant = components['schemas']['GrantColumnPrivilegesBody']
+export type ColumnPrivilegesGrant = {
+ column_id: string
+ grantee: string
+ privilege_type: 'ALL' | 'SELECT' | 'INSERT' | 'UPDATE' | 'REFERENCES'
+ is_grantable?: boolean
+}
export type ColumnPrivilegesGrantVariables = {
projectRef: string
connectionString?: string | null
- grants: ColumnPrivilegesGrant
+ grants: ColumnPrivilegesGrant[]
}
export async function grantColumnPrivileges({
diff --git a/apps/studio/data/privileges/column-privileges-revoke-mutation.ts b/apps/studio/data/privileges/column-privileges-revoke-mutation.ts
index 5aa6a10c761..7e15e29b4cf 100644
--- a/apps/studio/data/privileges/column-privileges-revoke-mutation.ts
+++ b/apps/studio/data/privileges/column-privileges-revoke-mutation.ts
@@ -1,17 +1,20 @@
+import pgMeta from '@supabase/pg-meta'
import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query'
+import { executeSql } from 'data/sql/execute-sql-query'
import { toast } from 'sonner'
-import type { components } from 'data/api'
import type { ResponseError } from 'types'
-import pgMeta from '@supabase/pg-meta'
-import { executeSql } from 'data/sql/execute-sql-query'
import { privilegeKeys } from './keys'
-export type ColumnPrivilegesRevoke = components['schemas']['RevokeColumnPrivilegesBody']
+export type ColumnPrivilegesRevoke = {
+ column_id: string
+ grantee: string
+ privilege_type: 'ALL' | 'SELECT' | 'INSERT' | 'UPDATE' | 'REFERENCES'
+}
export type ColumnPrivilegesRevokeVariables = {
projectRef: string
connectionString?: string | null
- revokes: ColumnPrivilegesRevoke
+ revokes: ColumnPrivilegesRevoke[]
}
export async function revokeColumnPrivileges({
diff --git a/apps/studio/data/tables/table-create-mutation.ts b/apps/studio/data/tables/table-create-mutation.ts
index b894811cd1d..195dd850f38 100644
--- a/apps/studio/data/tables/table-create-mutation.ts
+++ b/apps/studio/data/tables/table-create-mutation.ts
@@ -2,12 +2,15 @@ import pgMeta from '@supabase/pg-meta'
import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query'
import { toast } from 'sonner'
-import type { components } from 'data/api'
import { executeSql } from 'data/sql/execute-sql-query'
import type { ResponseError } from 'types'
import { tableKeys } from './keys'
-export type CreateTableBody = components['schemas']['CreateTableBody']
+export type CreateTableBody = {
+ name: string
+ schema?: string
+ comment?: string
+}
export type TableCreateVariables = {
projectRef: string
diff --git a/apps/studio/data/tables/table-update-mutation.ts b/apps/studio/data/tables/table-update-mutation.ts
index b62e56a79a4..f872454f084 100644
--- a/apps/studio/data/tables/table-update-mutation.ts
+++ b/apps/studio/data/tables/table-update-mutation.ts
@@ -2,14 +2,20 @@ import pgMeta from '@supabase/pg-meta'
import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query'
import { toast } from 'sonner'
-import type { components } from 'data/api'
-import { executeSql } from 'data/sql/execute-sql-query'
import { lintKeys } from 'data/lint/keys'
+import { executeSql } from 'data/sql/execute-sql-query'
import { tableEditorKeys } from 'data/table-editor/keys'
import type { ResponseError } from 'types'
import { tableKeys } from './keys'
+import { CreateTableBody } from './table-create-mutation'
-export type UpdateTableBody = components['schemas']['UpdateTableBody']
+export type UpdateTableBody = Partial<CreateTableBody> & {
+ id?: number
+ rls_enabled?: boolean
+ rls_forced?: boolean
+ replica_identity?: 'DEFAULT' | 'INDEX' | 'FULL' | 'NOTHING'
+ replica_identity_index?: string
+}
export type TableUpdateVariables = {
projectRef: string
diff --git a/packages/api-types/types/api.d.ts b/packages/api-types/types/api.d.ts
index 2f259388f73..1985673d9ae 100644
--- a/packages/api-types/types/api.d.ts
+++ b/packages/api-types/types/api.d.ts
@@ -256,6 +256,28 @@ 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
@@ -2973,6 +2995,89 @@ 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
@@ -2982,6 +3087,7 @@ export interface components {
}
PostgresConfigResponse: {
effective_cache_size?: string
+ hot_standby_feedback?: boolean
logical_decoding_work_mem?: string
maintenance_work_mem?: string
max_connections?: number
@@ -3620,6 +3726,7 @@ export interface components {
}
UpdatePostgresConfigBody: {
effective_cache_size?: string
+ hot_standby_feedback?: boolean
logical_decoding_work_mem?: string
maintenance_work_mem?: string
max_connections?: number
@@ -3956,6 +4063,54 @@ 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
@@ -4146,6 +4301,7 @@ export interface components {
status: 'AVAILABLE' | 'PENDING' | 'REMOVED'
}
V1RunQueryBody: {
+ parameters?: unknown[]
query: string
read_only?: boolean
}
@@ -4164,6 +4320,9 @@ export interface components {
db_connected: boolean
healthy: boolean
}
+ | {
+ db_schema: string
+ }
/** @enum {string} */
name:
| 'auth'
@@ -4770,6 +4929,48 @@ 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 d8a7dbb1c90..bbc76eb612c 100644
--- a/packages/api-types/types/platform.d.ts
+++ b/packages/api-types/types/platform.d.ts
@@ -1763,35 +1763,13 @@ export interface paths {
/** Retrieve column privileges */
get: operations['ColumnPrivilegesController_getColumnPrivileges']
put?: never
- /** Grant column privileges */
- post: operations['ColumnPrivilegesController_grantColumnPrivileges']
- /** Revoke column privileges */
- delete: operations['ColumnPrivilegesController_revokeColumnPrivileges']
+ post?: never
+ delete?: never
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
@@ -1802,10 +1780,8 @@ export interface paths {
/** Gets project pg.extensions */
get: operations['ExtensionsController_getExtensions']
put?: never
- /** Creates project pg.extension */
- post: operations['ExtensionsController_createExtension']
- /** Deletes project pg.extension with the given ID */
- delete: operations['ExtensionsController_deleteExtension']
+ post?: never
+ delete?: never
options?: never
head?: never
patch?: never
@@ -1828,26 +1804,6 @@ 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
@@ -1875,14 +1831,11 @@ export interface paths {
/** Gets project pg.policies */
get: operations['PoliciesController_getPolicies']
put?: never
- /** Creates project pg.policy */
- post: operations['PoliciesController_createPolicy']
- /** Deletes project pg.policy with the given ID */
- delete: operations['PoliciesController_deletePolicy']
+ post?: never
+ delete?: never
options?: never
head?: never
- /** Updates project pg.policy with the given ID */
- patch: operations['PoliciesController_updatePolicy']
+ patch?: never
trace?: never
}
'/platform/pg-meta/{ref}/publications': {
@@ -1895,14 +1848,11 @@ export interface paths {
/** Gets project pg.publications */
get: operations['PublicationsController_getPublications']
put?: never
- /** Creates project pg.publication */
- post: operations['PublicationsController_createPublication']
- /** Deletes project pg.publication with the given ID */
- delete: operations['PublicationsController_deletePublication']
+ post?: never
+ delete?: never
options?: never
head?: never
- /** Updates project pg.publication with the given ID */
- patch: operations['PublicationsController_updatePublication']
+ patch?: never
trace?: never
}
'/platform/pg-meta/{ref}/query': {
@@ -1922,60 +1872,6 @@ 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
@@ -1986,14 +1882,11 @@ export interface paths {
/** Gets project pg.tables or pg.table with the given ID */
get: operations['TablesController_getTables']
put?: never
- /** Creates project pg.table */
- post: operations['TablesController_createTable']
- /** Deletes project pg.table with the given ID */
- delete: operations['TablesController_deleteTable']
+ post?: never
+ delete?: never
options?: never
head?: never
- /** Updates project pg.table with the given ID */
- patch: operations['TablesController_updateTable']
+ patch?: never
trace?: never
}
'/platform/pg-meta/{ref}/triggers': {
@@ -2006,14 +1899,11 @@ export interface paths {
/** Gets project pg.triggers */
get: operations['TriggersController_getTriggers']
put?: never
- /** Creates project pg.trigger */
- post: operations['TriggersController_createTrigger']
- /** Deletes project pg.trigger with the given ID */
- delete: operations['TriggersController_deleteTrigger']
+ post?: never
+ delete?: never
options?: never
head?: never
- /** Updates project pg.trigger with the given ID */
- patch: operations['TriggersController_updateTrigger']
+ patch?: never
trace?: never
}
'/platform/pg-meta/{ref}/types': {
@@ -4117,6 +4007,23 @@ 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
@@ -4779,7 +4686,16 @@ export interface components {
description?: string
name: string
/** @enum {string} */
- type: 'postgres' | 'bigquery' | 'webhook' | 'datadog' | 'elastic' | 'loki'
+ type:
+ | 'postgres'
+ | 'bigquery'
+ | 'clickhouse'
+ | 'webhook'
+ | 'datadog'
+ | 'elastic'
+ | 'loki'
+ | 'sentry'
+ | 's3'
}
CreateCliLoginSessionBody: {
public_key: string
@@ -4791,22 +4707,6 @@ 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
@@ -4858,26 +4758,6 @@ 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
}
@@ -5078,18 +4958,6 @@ 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} */
@@ -5204,15 +5072,6 @@ 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:
@@ -5444,10 +5303,6 @@ export interface components {
schema: string
}[]
}
- CreateSchemaBody: {
- name: string
- owner: string
- }
CreateScopedAccessTokenBody: {
/** Format: date-time */
expires_at?: string
@@ -5608,11 +5463,6 @@ export interface components {
id: string
secret_key: string
}
- CreateTableBody: {
- comment?: string
- name: string
- schema?: string
- }
CreateTaxIdBody: {
country?: string
type: string
@@ -5630,22 +5480,6 @@ 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
@@ -5976,9 +5810,6 @@ export interface components {
scope?: string
token_endpoint_auth_method?: string
}
- FormatQueryBody: {
- query: string
- }
GetArchiveResponse: {
archive_empty: boolean
file_url: string
@@ -6107,6 +5938,19 @@ 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
}
@@ -6844,13 +6688,6 @@ 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
@@ -6942,7 +6779,16 @@ export interface components {
name: string
token: string
/** @enum {string} */
- type: 'postgres' | 'bigquery' | 'webhook' | 'datadog' | 'elastic' | 'loki'
+ type:
+ | 'postgres'
+ | 'bigquery'
+ | 'clickhouse'
+ | 'webhook'
+ | 'datadog'
+ | 'elastic'
+ | 'loki'
+ | 'sentry'
+ | 's3'
user_id: number
}
LFEndpoint: {
@@ -7654,27 +7500,6 @@ 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
@@ -7690,6 +7515,7 @@ export interface components {
}
PostgresConfigResponse: {
effective_cache_size?: string
+ hot_standby_feedback?: boolean
logical_decoding_work_mem?: string
maintenance_work_mem?: string
max_connections?: number
@@ -7748,23 +7574,6 @@ 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
@@ -7823,11 +7632,6 @@ export interface components {
}[]
| null
}
- PostgresSchema: {
- id: number
- name: string
- owner: string
- }
PostgresTable: {
bytes: number
columns?: {
@@ -8961,12 +8765,6 @@ 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
@@ -9091,6 +8889,7 @@ export interface components {
RunQueryBody: {
/** @default false */
disable_statement_timeout?: boolean
+ parameters?: unknown[]
query: string
}
SendDocsFeedbackBody: {
@@ -9198,6 +8997,33 @@ 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: {
@@ -9577,22 +9403,6 @@ 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
}
@@ -9616,21 +9426,6 @@ 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
@@ -9968,13 +9763,6 @@ 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
@@ -9993,6 +9781,7 @@ export interface components {
}
UpdatePostgresConfigBody: {
effective_cache_size?: string
+ hot_standby_feedback?: boolean
logical_decoding_work_mem?: string
maintenance_work_mem?: string
max_connections?: number
@@ -10046,16 +9835,6 @@ 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
@@ -10296,10 +10075,6 @@ export interface components {
*/
version_id: number
}
- UpdateSchemaBody: {
- name?: string
- owner?: string
- }
UpdateSecretsConfigBody: {
change_tracking_id: string
jwt_secret: string
@@ -10421,34 +10196,6 @@ 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
}
@@ -10582,12 +10329,6 @@ export interface components {
/** @enum {string} */
visibility: 'user' | 'project' | 'org' | 'public'
}
- ValidateQueryBody: {
- query: string
- }
- ValidateQueryResponse: {
- valid: boolean
- }
ValidateSpamBody: {
content: string
subject: string
@@ -16272,7 +16013,7 @@ export interface operations {
}
}
}
- ColumnPrivilegesController_grantColumnPrivileges: {
+ ExtensionsController_getExtensions: {
parameters: {
query?: never
header: {
@@ -16286,18 +16027,14 @@ export interface operations {
}
cookie?: never
}
- requestBody: {
- content: {
- 'application/json': components['schemas']['GrantColumnPrivilegesBody']
- }
- }
+ requestBody?: never
responses: {
- 201: {
+ 200: {
headers: {
[name: string]: unknown
}
content: {
- 'application/json': components['schemas']['PostgresColumnPrivileges'][]
+ 'application/json': components['schemas']['PostgresExtension'][]
}
}
/** @description Unauthorized */
@@ -16321,7 +16058,7 @@ export interface operations {
}
content?: never
}
- /** @description Failed to grant column privileges */
+ /** @description Failed to get pg.extensions */
500: {
headers: {
[name: string]: unknown
@@ -16330,9 +16067,14 @@ export interface operations {
}
}
}
- ColumnPrivilegesController_revokeColumnPrivileges: {
+ ForeignTablesController_getForeignTables: {
parameters: {
- query?: never
+ query?: {
+ id?: string
+ include_columns?: string
+ limit?: string
+ offset?: string
+ }
header: {
'x-connection-encrypted': string
/** @description PostgreSQL connection application name */
@@ -16344,18 +16086,14 @@ export interface operations {
}
cookie?: never
}
- requestBody: {
- content: {
- 'application/json': components['schemas']['RevokeColumnPrivilegesBody']
- }
- }
+ requestBody?: never
responses: {
200: {
headers: {
[name: string]: unknown
}
content: {
- 'application/json': components['schemas']['PostgresColumnPrivileges'][]
+ 'application/json': components['schemas']['PostgresForeignTable'][]
}
}
/** @description Unauthorized */
@@ -16379,7 +16117,7 @@ export interface operations {
}
content?: never
}
- /** @description Failed to revoke column privileges */
+ /** @description Failed to retrieve database foreign tables */
500: {
headers: {
[name: string]: unknown
@@ -16388,1609 +16126,7 @@ export interface operations {
}
}
}
- 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
- 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 get pg.extensions */
- 500: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- }
- }
- 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?: {
- id?: string
- include_columns?: string
- limit?: string
- offset?: 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']['PostgresForeignTable'][]
- }
- }
- /** @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 retrieve database foreign tables */
- 500: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- }
- }
- 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?: {
- excluded_schemas?: string
- id?: string
- include_columns?: string
- include_system_schemas?: string
- included_schemas?: string
- limit?: string
- offset?: 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']['PostgresMaterializedView'][]
- }
- }
- /** @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 retrieve database materialized views */
- 500: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- }
- }
- PoliciesController_getPolicies: {
- 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']['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 get pg.policies */
- 500: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- }
- }
- 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
- 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 get pg.publications */
- 500: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- }
- }
- 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
- 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']['RunQueryBody']
- }
- }
- 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 run sql query */
- 500: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- }
- }
- 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: {
+ MaterializedViewsController_getMaterializedViews: {
parameters: {
query?: {
excluded_schemas?: string
@@ -18019,65 +16155,7 @@ export interface operations {
[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 get pg.tables or pg.table with the given ID */
- 500: {
- headers: {
- [name: string]: unknown
- }
- content?: never
- }
- }
- }
- 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']
+ 'application/json': components['schemas']['PostgresMaterializedView'][]
}
}
/** @description Unauthorized */
@@ -18101,7 +16179,7 @@ export interface operations {
}
content?: never
}
- /** @description Failed to create pg.table */
+ /** @description Failed to retrieve database materialized views */
500: {
headers: {
[name: string]: unknown
@@ -18110,12 +16188,11 @@ export interface operations {
}
}
}
- TablesController_deleteTable: {
+ PoliciesController_getPolicies: {
parameters: {
- query: {
- /** @description Boolean string, true or false */
- cascade?: boolean
- id: number
+ query?: {
+ excluded_schemas?: string
+ included_schemas?: string
}
header: {
'x-connection-encrypted': string
@@ -18135,67 +16212,7 @@ export interface operations {
[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']
+ 'application/json': components['schemas']['PostgresPolicy'][]
}
}
/** @description Unauthorized */
@@ -18219,7 +16236,7 @@ export interface operations {
}
content?: never
}
- /** @description Failed to update pg.table with the given ID */
+ /** @description Failed to get pg.policies */
500: {
headers: {
[name: string]: unknown
@@ -18228,12 +16245,9 @@ export interface operations {
}
}
}
- TriggersController_getTriggers: {
+ PublicationsController_getPublications: {
parameters: {
- query?: {
- excluded_schemas?: string
- included_schemas?: string
- }
+ query?: never
header: {
'x-connection-encrypted': string
/** @description PostgreSQL connection application name */
@@ -18252,7 +16266,7 @@ export interface operations {
[name: string]: unknown
}
content: {
- 'application/json': components['schemas']['PostgresTrigger'][]
+ 'application/json': components['schemas']['PostgresPublication'][]
}
}
/** @description Unauthorized */
@@ -18276,7 +16290,7 @@ export interface operations {
}
content?: never
}
- /** @description Failed to get pg.triggers */
+ /** @description Failed to get pg.publications */
500: {
headers: {
[name: string]: unknown
@@ -18285,7 +16299,7 @@ export interface operations {
}
}
}
- TriggersController_createTrigger: {
+ QueryController_runQuery: {
parameters: {
query?: never
header: {
@@ -18301,7 +16315,7 @@ export interface operations {
}
requestBody: {
content: {
- 'application/json': components['schemas']['CreateTriggerBody']
+ 'application/json': components['schemas']['RunQueryBody']
}
}
responses: {
@@ -18309,9 +16323,7 @@ export interface operations {
headers: {
[name: string]: unknown
}
- content: {
- 'application/json': components['schemas']['PostgresTrigger']
- }
+ content?: never
}
/** @description Unauthorized */
401: {
@@ -18334,7 +16346,7 @@ export interface operations {
}
content?: never
}
- /** @description Failed to create pg.trigger */
+ /** @description Failed to run sql query */
500: {
headers: {
[name: string]: unknown
@@ -18343,10 +16355,16 @@ export interface operations {
}
}
}
- TriggersController_deleteTrigger: {
+ TablesController_getTables: {
parameters: {
- query: {
- id: number
+ query?: {
+ excluded_schemas?: string
+ id?: string
+ include_columns?: string
+ include_system_schemas?: string
+ included_schemas?: string
+ limit?: string
+ offset?: string
}
header: {
'x-connection-encrypted': string
@@ -18366,7 +16384,7 @@ export interface operations {
[name: string]: unknown
}
content: {
- 'application/json': components['schemas']['PostgresTrigger']
+ 'application/json': components['schemas']['PostgresTable'][]
}
}
/** @description Unauthorized */
@@ -18390,7 +16408,7 @@ export interface operations {
}
content?: never
}
- /** @description Failed to delete pg.trigger with the given ID */
+ /** @description Failed to get pg.tables or pg.table with the given ID */
500: {
headers: {
[name: string]: unknown
@@ -18399,10 +16417,11 @@ export interface operations {
}
}
}
- TriggersController_updateTrigger: {
+ TriggersController_getTriggers: {
parameters: {
- query: {
- id: number
+ query?: {
+ excluded_schemas?: string
+ included_schemas?: string
}
header: {
'x-connection-encrypted': string
@@ -18415,18 +16434,14 @@ export interface operations {
}
cookie?: never
}
- requestBody: {
- content: {
- 'application/json': components['schemas']['UpdateTriggerBody']
- }
- }
+ requestBody?: never
responses: {
200: {
headers: {
[name: string]: unknown
}
content: {
- 'application/json': components['schemas']['PostgresTrigger']
+ 'application/json': components['schemas']['PostgresTrigger'][]
}
}
/** @description Unauthorized */
@@ -18450,7 +16465,7 @@ export interface operations {
}
content?: never
}
- /** @description Failed to update pg.trigger with the given ID */
+ /** @description Failed to get pg.triggers */
500: {
headers: {
[name: string]: unknown
@@ -26466,6 +24481,62 @@ 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