From e8649f43b15b1eff5016f8bd02c7df87f165ba0b Mon Sep 17 00:00:00 2001 From: Raminder Singh Date: Wed, 5 Feb 2025 16:19:15 +0530 Subject: [PATCH] update to match with changes in api --- .../Replication/CreatePipelineModal.tsx | 4 +- .../interfaces/Replication/Pipelines.tsx | 2 +- .../interfaces/Replication/Publications.tsx | 2 +- .../interfaces/Replication/Sinks.tsx | 2 +- .../data/replication/publications-query.ts | 2 +- .../pages/project/[ref]/replication/index.tsx | 2 +- packages/api-types/types/api.d.ts | 938 +++++++++++++----- 7 files changed, 695 insertions(+), 257 deletions(-) diff --git a/apps/studio/components/interfaces/Replication/CreatePipelineModal.tsx b/apps/studio/components/interfaces/Replication/CreatePipelineModal.tsx index 3075872c4c7..30bc554496e 100644 --- a/apps/studio/components/interfaces/Replication/CreatePipelineModal.tsx +++ b/apps/studio/components/interfaces/Replication/CreatePipelineModal.tsx @@ -23,7 +23,7 @@ const CreatePipelineModal = ({ visible, onClose }: CreatePipelineModalProps) => projectRef: ref, }) - let thisProjectSource = data?.find((s) => s.name === ref) + let thisProjectSource = data?.sources?.find((s) => s.name === ref) if (!thisProjectSource) { toast.error("Failed to find this project's source") @@ -32,7 +32,7 @@ const CreatePipelineModal = ({ visible, onClose }: CreatePipelineModalProps) => const { data: sinks_data } = useReplicationSinksQuery({ projectRef: ref, }) - const sinks = sinks_data ?? [] + const sinks = sinks_data ? sinks_data.sinks : [] const { data: pub_data } = useReplicationPublicationsQuery({ projectRef: ref, diff --git a/apps/studio/components/interfaces/Replication/Pipelines.tsx b/apps/studio/components/interfaces/Replication/Pipelines.tsx index d95b7763d46..87a6de74306 100644 --- a/apps/studio/components/interfaces/Replication/Pipelines.tsx +++ b/apps/studio/components/interfaces/Replication/Pipelines.tsx @@ -22,7 +22,7 @@ export const ReplicationPipelines = () => { const [showDeletePipelineModal, setShowDeletePipelineModal] = useState(false) const [pipelineIdToDelete, setPipelineIdToDelete] = useState(-1) - const pipelines = pipelines_data ?? [] + const pipelines = pipelines_data ? pipelines_data.pipelines : [] return ( <> diff --git a/apps/studio/components/interfaces/Replication/Publications.tsx b/apps/studio/components/interfaces/Replication/Publications.tsx index ab8ea475c93..81cb41bd973 100644 --- a/apps/studio/components/interfaces/Replication/Publications.tsx +++ b/apps/studio/components/interfaces/Replication/Publications.tsx @@ -21,7 +21,7 @@ export const ReplicationPublications = () => { const [showDeletePublicationModal, setShowDeletePublicationModal] = useState(false) const [publicationToDelete, setPublicationToDelete] = useState('') - const sources = sources_data ?? [] + const sources = sources_data ? sources_data.sources : [] const thisProjectSource = sources.find((s) => s.name === ref) const { data: pub_data } = useReplicationPublicationsQuery({ diff --git a/apps/studio/components/interfaces/Replication/Sinks.tsx b/apps/studio/components/interfaces/Replication/Sinks.tsx index 66bb868ebdd..38cae0a3dec 100644 --- a/apps/studio/components/interfaces/Replication/Sinks.tsx +++ b/apps/studio/components/interfaces/Replication/Sinks.tsx @@ -21,7 +21,7 @@ export const ReplicationSinks = () => { const [sinkIdToDelete, setSinkIdToDelete] = useState(-1) const [sinkNameToDelete, setSinkNameToDelete] = useState('') - const sinks = sinks_data ?? [] + const sinks = sinks_data ? sinks_data.sinks : [] return ( <> diff --git a/apps/studio/data/replication/publications-query.ts b/apps/studio/data/replication/publications-query.ts index 91ebd88515b..da56da7d824 100644 --- a/apps/studio/data/replication/publications-query.ts +++ b/apps/studio/data/replication/publications-query.ts @@ -25,7 +25,7 @@ async function fetchReplicationPublications( handleError(error) } - return data.filter((pub) => pub.name !== 'supabase_realtime') + return data.publications.filter((pub) => pub.name !== 'supabase_realtime') } export type ReplicationPublicationsData = Awaited> diff --git a/apps/studio/pages/project/[ref]/replication/index.tsx b/apps/studio/pages/project/[ref]/replication/index.tsx index dd6992a7b50..067005893a1 100644 --- a/apps/studio/pages/project/[ref]/replication/index.tsx +++ b/apps/studio/pages/project/[ref]/replication/index.tsx @@ -18,7 +18,7 @@ const PageLayout: NextPageWithLayout = () => { projectRef: ref, }) - let replicationEnabled = data ? data?.length !== 0 && data[0].name === ref : false + let replicationEnabled = data ? data?.sources?.length !== 0 && data.sources[0].name === ref : false const { mutate: createSource, isLoading: isCreating } = useCreateSourceMutation({ onSuccess: () => { diff --git a/packages/api-types/types/api.d.ts b/packages/api-types/types/api.d.ts index 1904b665ee8..e0ef41a345f 100644 --- a/packages/api-types/types/api.d.ts +++ b/packages/api-types/types/api.d.ts @@ -1660,7 +1660,7 @@ export interface paths { cookie?: never } /** Gets the given organization's roles */ - get: operations['OrganizationRolesController_getAllRolesV2'] + get: operations['OrganizationRolesController_getAllRoles'] put?: never post?: never delete?: never @@ -2674,6 +2674,24 @@ export interface paths { patch: operations['PostgrestConfigController_updatePostgRESTConfig'] trace?: never } + '/platform/projects/{ref}/config/realtime': { + parameters: { + query?: never + header?: never + path?: never + cookie?: never + } + /** Gets realtime configuration */ + get: operations['RealtimeConfigController_getConfig'] + put?: never + post?: never + delete?: never + options?: never + head?: never + /** Updates realtime configuration */ + patch: operations['RealtimeConfigController_updateConfig'] + trace?: never + } '/platform/projects/{ref}/config/secrets': { parameters: { query?: never @@ -3320,56 +3338,195 @@ export interface paths { trace?: never } '/platform/replication/{ref}/pipelines': { + parameters: { + query?: never + header?: never + path?: never + cookie?: never + } /** Gets replication pipelines */ get: operations['ReplicationPipelinesController_getPipelines'] + put?: never /** Creates a pipeline */ post: operations['ReplicationPipelinesController_createPipeline'] + delete?: never + options?: never + head?: never + patch?: never + trace?: never } '/platform/replication/{ref}/pipelines/{pipeline_id}': { + parameters: { + query?: never + header?: never + path?: never + cookie?: never + } + get?: never + put?: never + post?: never /** Deletes a pipeline */ delete: operations['ReplicationPipelinesController_deletePipeline'] + options?: never + head?: never + patch?: never + trace?: never } '/platform/replication/{ref}/pipelines/{pipeline_id}/start': { + parameters: { + query?: never + header?: never + path?: never + cookie?: never + } + get?: never + put?: never /** Starts a pipeline */ post: operations['ReplicationPipelinesController_startPipeline'] + delete?: never + options?: never + head?: never + patch?: never + trace?: never } '/platform/replication/{ref}/pipelines/{pipeline_id}/status': { + parameters: { + query?: never + header?: never + path?: never + cookie?: never + } /** Gets status of a pipeline */ get: operations['ReplicationPipelinesController_getPipelineStatus'] + put?: never + post?: never + delete?: never + options?: never + head?: never + patch?: never + trace?: never } '/platform/replication/{ref}/pipelines/{pipeline_id}/stop': { + parameters: { + query?: never + header?: never + path?: never + cookie?: never + } + get?: never + put?: never /** Stops a pipeline */ post: operations['ReplicationPipelinesController_stopPipeline'] + delete?: never + options?: never + head?: never + patch?: never + trace?: never } '/platform/replication/{ref}/sinks': { + parameters: { + query?: never + header?: never + path?: never + cookie?: never + } /** Gets replication sinks */ get: operations['ReplicationSinksController_getSinks'] + put?: never /** Creates a sink */ post: operations['ReplicationSinksController_createSink'] + delete?: never + options?: never + head?: never + patch?: never + trace?: never } '/platform/replication/{ref}/sinks/{sink_id}': { + parameters: { + query?: never + header?: never + path?: never + cookie?: never + } + get?: never + put?: never + post?: never /** Deletes a sink */ delete: operations['ReplicationSinksController_deleteSink'] + options?: never + head?: never + patch?: never + trace?: never } '/platform/replication/{ref}/sources': { - /** Gets replication sources */ + parameters: { + query?: never + header?: never + path?: never + cookie?: never + } + /** Returns replication sources. */ get: operations['ReplicationSourcesController_getSources'] - /** Creates a replication source */ + put?: never + /** Creates a replication source. */ post: operations['ReplicationSourcesController_createSource'] + delete?: never + options?: never + head?: never + patch?: never + trace?: never } '/platform/replication/{ref}/sources/{source_id}/publications': { - /** Gets source publications */ + parameters: { + query?: never + header?: never + path?: never + cookie?: never + } + /** Returns source publications. */ get: operations['ReplicationSourcesController_getPublications'] - /** Creates a publication */ + put?: never + /** Creates a publication. */ post: operations['ReplicationSourcesController_createPublication'] + delete?: never + options?: never + head?: never + patch?: never + trace?: never } '/platform/replication/{ref}/sources/{source_id}/publications/{publication_name}': { - /** Deletes a publication */ + parameters: { + query?: never + header?: never + path?: never + cookie?: never + } + get?: never + put?: never + post?: never + /** Deletes a publication. */ delete: operations['ReplicationSourcesController_deletePublication'] + options?: never + head?: never + patch?: never + trace?: never } '/platform/replication/{ref}/sources/{source_id}/tables': { - /** Gets source tables */ + parameters: { + query?: never + header?: never + path?: never + cookie?: never + } + /** Returns source tables. */ get: operations['ReplicationSourcesController_getTables'] + put?: never + post?: never + delete?: never + options?: never + head?: never + patch?: never + trace?: never } '/platform/reset-password': { parameters: { @@ -5235,7 +5392,7 @@ export interface paths { cookie?: never } /** Gets the given organization's roles */ - get: operations['OrganizationRolesController_getAllRolesV2'] + get: operations['OrganizationRolesController_getAllRoles'] put?: never post?: never delete?: never @@ -6052,6 +6209,24 @@ export interface paths { patch: operations['PostgrestConfigController_updatePostgRESTConfig'] trace?: never } + '/v0/projects/{ref}/config/realtime': { + parameters: { + query?: never + header?: never + path?: never + cookie?: never + } + /** Gets realtime configuration */ + get: operations['RealtimeConfigController_getConfig'] + put?: never + post?: never + delete?: never + options?: never + head?: never + /** Updates realtime configuration */ + patch: operations['RealtimeConfigController_updateConfig'] + trace?: never + } '/v0/projects/{ref}/config/secrets': { parameters: { query?: never @@ -8678,49 +8853,6 @@ export interface components { publish_update?: boolean tables?: string[] | null } - CreateReplicationPipelineBody: { - /** @description Pipeline config */ - config: components['schemas']['ReplicationPipelineConfig'] - /** @description Publication name */ - publication_name: string - /** @description Sink id */ - sink_id: number - /** @description Source id */ - source_id: number - } - CreateReplicationPublicationBody: { - /** @description Publication name */ - name: string - /** @description Publication tables */ - tables: components['schemas']['ReplicationTable'][] - } - CreateReplicationSinkBody: { - /** @description BigQuery dataset id */ - dataset_id: string - /** @description BigQuery project id */ - project_id: string - /** @description BigQuery service account key */ - service_account_key: string - /** @description Sink name */ - sink_name: string - } - CreateRoleBody: { - admins?: string[] - can_bypass_rls?: boolean - can_create_db?: boolean - can_create_role?: boolean - can_login?: boolean - config?: Record - connection_limit?: number - inherit_role?: boolean - is_replication_role?: boolean - is_superuser?: boolean - member_of?: string[] - members?: string[] - name: string - password?: string - valid_until?: string - } CreateSchemaBody: { name: string owner: string @@ -10817,6 +10949,22 @@ export interface components { override_active_until: string override_enabled: boolean } + RealtimeConfigResponseDto: { + /** @description Sets connection pool size for Realtime Authorization */ + connection_pool: number | null + /** @description Sets maximum number of bytes per second rate per channel limit */ + max_bytes_per_second: number | null + /** @description Sets maximum number of channels per client rate limit */ + max_channels_per_client: number | null + /** @description Sets maximum number of concurrent users rate limit */ + max_concurrent_users: number | null + /** @description Sets maximum number of events per second rate per channel limit */ + max_events_per_second: number | null + /** @description Sets maximum number of joins per second rate limit */ + max_joins_per_second: number | null + /** @description Whether to only allow private channels */ + private_only: boolean | null + } RealtimeHealthResponse: { connected_cluster: number } @@ -10838,63 +10986,72 @@ export interface components { RemoveReadReplicaBody: { database_identifier: string } - ReplicationBatchConfig: { - max_fill_secs: number - max_size: number - } - ReplicationBigQueryConfig: { - dataset_id: string - project_id: string - service_account_key: string - } - ReplicationPipelineConfig: { - config: components['schemas']['ReplicationBatchConfig'] - } ReplicationPipelinesResponse: { - config: components['schemas']['ReplicationPipelineConfig'] - id: number - publication_name: string - replicator_id: number - sink_id: number - sink_name: string - source_id: number - source_name: string - tenant_id: string + pipelines: { + config: { + config: { + max_fill_secs: number + max_size: number + } + } + id: number + publication_name: string + replicator_id: number + sink_id: number + sink_name: string + source_id: number + source_name: string + tenant_id: string + }[] } ReplicationPipelinesStatusResponse: { pipeline_id: number status: string } - ReplicationPostgresConfig: { - host: string - name: string - port: number - slot_name: string - username: string - } - ReplicationPublication: { - name: string - tables: components['schemas']['ReplicationTable'][] + ReplicationPublicationsResponse: { + publications: { + name: string + tables: { + name: string + schema: string + }[] + }[] } ReplicationSinksResponse: { - config: { - BigQuery?: components['schemas']['ReplicationBigQueryConfig'] - } - id: number - name: string - tenant_id: string + sinks: { + config: { + big_query: { + dataset_id: string + project_id: string + service_account_key: string + } + } + id: number + name: string + tenant_id: string + }[] } ReplicationSourcesResponse: { - config: { - Postgres?: components['schemas']['ReplicationPostgresConfig'] - } - id: number - name: string - tenant_id: string + sources: { + config: { + postgres: { + host: string + name: string + port: number + slot_name: string + username: string + } + } + id: number + name: string + tenant_id: string + }[] } - ReplicationTable: { - name: string - schema: string + ReplicationTablesResponse: { + tables: { + name: string + schema: string + }[] } ReportStatusBody: { databaseIdentifier: string @@ -12196,6 +12353,22 @@ export interface components { publish_update?: boolean tables?: string[] | null } + UpdateRealtimeConfigBodyDto: { + /** @description Sets connection pool size for Realtime Authorization */ + connection_pool?: number + /** @description Sets maximum number of bytes per second rate per channel limit */ + max_bytes_per_second?: number + /** @description Sets maximum number of channels per client rate limit */ + max_channels_per_client?: number + /** @description Sets maximum number of concurrent users rate limit */ + max_concurrent_users?: number + /** @description Sets maximum number of events per second rate per channel limit */ + max_events_per_second?: number + /** @description Sets maximum number of joins per second rate limit */ + max_joins_per_second?: number + /** @description Whether to only allow private channels */ + private_only?: boolean + } UpdateRestrictionsBody: { no_notification?: boolean restriction_data?: components['schemas']['RestrictionData'] @@ -16450,7 +16623,7 @@ export interface operations { } } } - OrganizationRolesController_getAllRolesV2: { + OrganizationRolesController_getAllRoles: { parameters: { query?: never header?: never @@ -20145,6 +20318,59 @@ export interface operations { } } } + RealtimeConfigController_getConfig: { + parameters: { + query?: never + header?: never + path?: never + cookie?: never + } + requestBody?: never + responses: { + /** @description Gets project's realtime configuration */ + 200: { + headers: { + [name: string]: unknown + } + content: { + 'application/json': components['schemas']['RealtimeConfigResponseDto'] + } + } + 403: { + headers: { + [name: string]: unknown + } + content?: never + } + } + } + RealtimeConfigController_updateConfig: { + parameters: { + query?: never + header?: never + path?: never + cookie?: never + } + requestBody: { + content: { + 'application/json': components['schemas']['UpdateRealtimeConfigBodyDto'] + } + } + responses: { + 204: { + headers: { + [name: string]: unknown + } + content?: never + } + 403: { + headers: { + [name: string]: unknown + } + content?: never + } + } + } SecretsConfigController_updateConfig: { parameters: { query?: never @@ -21688,330 +21914,489 @@ export interface operations { } /** @description Failed to retrieve project's settings */ 500: { - content: never + headers: { + [name: string]: unknown + } + content?: never } } } - /** Gets replication pipelines */ ReplicationPipelinesController_getPipelines: { parameters: { - path: { - /** @description Project ref */ - ref: string - } + query?: never + header?: never + path?: never + cookie?: never } + requestBody?: never responses: { 200: { - content: { - 'application/json': components['schemas']['ReplicationPipelinesResponse'][] + headers: { + [name: string]: unknown } + content: { + 'application/json': components['schemas']['ReplicationPipelinesResponse'] + } + } + 403: { + headers: { + [name: string]: unknown + } + content?: never } /** @description Failed to get replication pipeline */ 500: { - content: never + headers: { + [name: string]: unknown + } + content?: never } } } - /** Creates a pipeline */ ReplicationPipelinesController_createPipeline: { parameters: { - path: { - /** @description Project ref */ - ref: string - } - } - requestBody: { - content: { - 'application/json': components['schemas']['CreateReplicationPipelineBody'] - } + query?: never + header?: never + path?: never + cookie?: never } + requestBody?: never responses: { 201: { - content: never + headers: { + [name: string]: unknown + } + content?: never + } + 403: { + headers: { + [name: string]: unknown + } + content?: never } /** @description Failed to create pipeline */ 500: { - content: never + headers: { + [name: string]: unknown + } + content?: never } } } - /** Deletes a pipeline */ ReplicationPipelinesController_deletePipeline: { parameters: { - path: { - /** @description Project ref */ - ref: string - /** @description Pipeline id */ - pipeline_id: number - } + query?: never + header?: never + path?: never + cookie?: never } + requestBody?: never responses: { 200: { - content: never + headers: { + [name: string]: unknown + } + content?: never + } + 403: { + headers: { + [name: string]: unknown + } + content?: never } /** @description Failed to delete pipeline */ 500: { - content: never + headers: { + [name: string]: unknown + } + content?: never } } } - /** Starts a pipeline */ ReplicationPipelinesController_startPipeline: { parameters: { - path: { - /** @description Project ref */ - ref: string - /** @description Pipeline id */ - pipeline_id: number - } + query?: never + header?: never + path?: never + cookie?: never } + requestBody?: never responses: { - 201: { - content: never + 200: { + headers: { + [name: string]: unknown + } + content?: never + } + 403: { + headers: { + [name: string]: unknown + } + content?: never } /** @description Failed to start pipeline */ 500: { - content: never + headers: { + [name: string]: unknown + } + content?: never } } } - /** Gets status of a pipeline */ ReplicationPipelinesController_getPipelineStatus: { parameters: { - path: { - /** @description Project ref */ - ref: string - /** @description Pipeline id */ - pipeline_id: number - } + query?: never + header?: never + path?: never + cookie?: never } + requestBody?: never responses: { 200: { + headers: { + [name: string]: unknown + } content: { 'application/json': components['schemas']['ReplicationPipelinesStatusResponse'] } } + 403: { + headers: { + [name: string]: unknown + } + content?: never + } /** @description Failed to get pipeline status */ 500: { - content: never + headers: { + [name: string]: unknown + } + content?: never } } } - /** Stops a pipeline */ ReplicationPipelinesController_stopPipeline: { parameters: { - path: { - /** @description Project ref */ - ref: string - /** @description Pipeline id */ - pipeline_id: number - } + query?: never + header?: never + path?: never + cookie?: never } + requestBody?: never responses: { - 201: { - content: never + 200: { + headers: { + [name: string]: unknown + } + content?: never + } + 403: { + headers: { + [name: string]: unknown + } + content?: never } /** @description Failed to stop pipeline */ 500: { - content: never + headers: { + [name: string]: unknown + } + content?: never } } } - /** Gets replication sinks */ ReplicationSinksController_getSinks: { parameters: { - path: { - /** @description Project ref */ - ref: string - } + query?: never + header?: never + path?: never + cookie?: never } + requestBody?: never responses: { 200: { - content: { - 'application/json': components['schemas']['ReplicationSinksResponse'][] + headers: { + [name: string]: unknown } + content: { + 'application/json': components['schemas']['ReplicationSinksResponse'] + } + } + 403: { + headers: { + [name: string]: unknown + } + content?: never } /** @description Failed to get replication sinks */ 500: { - content: never + headers: { + [name: string]: unknown + } + content?: never } } } - /** Creates a sink */ ReplicationSinksController_createSink: { parameters: { - path: { - /** @description Project ref */ - ref: string - } - } - requestBody: { - content: { - 'application/json': components['schemas']['CreateReplicationSinkBody'] - } + query?: never + header?: never + path?: never + cookie?: never } + requestBody?: never responses: { 201: { - content: never + headers: { + [name: string]: unknown + } + content?: never + } + 403: { + headers: { + [name: string]: unknown + } + content?: never } /** @description Failed to create sink */ 500: { - content: never + headers: { + [name: string]: unknown + } + content?: never } } } - /** Deletes a sink */ ReplicationSinksController_deleteSink: { parameters: { - path: { - /** @description Project ref */ - ref: string - /** @description Sink id */ - sink_id: number - } + query?: never + header?: never + path?: never + cookie?: never } + requestBody?: never responses: { 200: { - content: never + headers: { + [name: string]: unknown + } + content?: never + } + 403: { + headers: { + [name: string]: unknown + } + content?: never } /** @description Failed to delete sink */ 500: { - content: never + headers: { + [name: string]: unknown + } + content?: never } } } - /** Gets replication sources */ ReplicationSourcesController_getSources: { parameters: { - path: { - /** @description Project ref */ - ref: string - } + query?: never + header?: never + path?: never + cookie?: never } + requestBody?: never responses: { + /** @description Returns all sources. */ 200: { + headers: { + [name: string]: unknown + } content: { - 'application/json': components['schemas']['ReplicationSourcesResponse'][] + 'application/json': components['schemas']['ReplicationSourcesResponse'] } } - /** @description Failed to get replication sources */ + 403: { + headers: { + [name: string]: unknown + } + content?: never + } + /** @description Returned when the API fails to get replication sources. */ 500: { - content: never + headers: { + [name: string]: unknown + } + content?: never } } } - /** Creates a replication source */ ReplicationSourcesController_createSource: { parameters: { - path: { - /** @description Project ref */ - ref: string - } + query?: never + header?: never + path?: never + cookie?: never } + requestBody?: never responses: { + /** @description Returns the created replication source id. */ 201: { + headers: { + [name: string]: unknown + } content: { 'application/json': components['schemas']['CreateSourceResponse'] } } - /** @description Failed to create replication source */ + 403: { + headers: { + [name: string]: unknown + } + content?: never + } + /** @description Returned when the API fails to create the replication source. */ 500: { - content: never + headers: { + [name: string]: unknown + } + content?: never } } } - /** Gets source publications */ ReplicationSourcesController_getPublications: { parameters: { - path: { - /** @description Project ref */ - ref: string - /** @description Source id */ - source_id: number - } + query?: never + header?: never + path?: never + cookie?: never } + requestBody?: never responses: { + /** @description Returns all publications. */ 200: { + headers: { + [name: string]: unknown + } content: { - 'application/json': components['schemas']['ReplicationPublication'][] + 'application/json': components['schemas']['ReplicationPublicationsResponse'] } } - /** @description Failed to get source publications */ + 403: { + headers: { + [name: string]: unknown + } + content?: never + } + /** @description Returned when the API fails to get source publications. */ 500: { - content: never + headers: { + [name: string]: unknown + } + content?: never } } } - /** Creates a publication */ ReplicationSourcesController_createPublication: { parameters: { - path: { - /** @description Project ref */ - ref: string - /** @description Source id */ - source_id: number - } - } - requestBody: { - content: { - 'application/json': components['schemas']['CreateReplicationPublicationBody'] - } + query?: never + header?: never + path?: never + cookie?: never } + requestBody?: never responses: { - 201: { - content: never + /** @description Returned when the publication is created. */ + 200: { + headers: { + [name: string]: unknown + } + content?: never } - /** @description Failed to create publication */ + 201: { + headers: { + [name: string]: unknown + } + content?: never + } + 403: { + headers: { + [name: string]: unknown + } + content?: never + } + /** @description Returned when the API fails to create the publication. */ 500: { - content: never + headers: { + [name: string]: unknown + } + content?: never } } } - /** Deletes a publication */ ReplicationSourcesController_deletePublication: { parameters: { - path: { - /** @description Project ref */ - ref: string - /** @description Source id */ - source_id: number - /** @description Publication name */ - publication_name: string - } + query?: never + header?: never + path?: never + cookie?: never } + requestBody?: never responses: { + /** @description Returned when the publication is deleted. */ 200: { - content: never + headers: { + [name: string]: unknown + } + content?: never } - /** @description Failed to delete publication */ + 403: { + headers: { + [name: string]: unknown + } + content?: never + } + /** @description Returned when the API fails to delete the publication. */ 500: { - content: never + headers: { + [name: string]: unknown + } + content?: never } } } - /** Gets source tables */ ReplicationSourcesController_getTables: { parameters: { - path: { - /** @description Project ref */ - ref: string - /** @description Source id */ - source_id: number - } + query?: never + header?: never + path?: never + cookie?: never } + requestBody?: never responses: { + /** @description Returns all tables. */ 200: { + headers: { + [name: string]: unknown + } content: { - 'application/json': components['schemas']['ReplicationTable'][] + 'application/json': components['schemas']['ReplicationTablesResponse'] } } - /** @description Failed to get source tables */ + 403: { + headers: { + [name: string]: unknown + } + content?: never + } + /** @description Returned when the API fails to get source tables. */ 500: { - content: never + headers: { + [name: string]: unknown + } + content?: never } } } - /** Reset password for email */ ResetPasswordController_resetPassword: { parameters: { query?: never @@ -26217,7 +26602,7 @@ export interface operations { } } } - OrganizationRolesController_getAllRolesV2: { + OrganizationRolesController_getAllRoles: { parameters: { query?: never header?: never @@ -29381,6 +29766,59 @@ export interface operations { } } } + RealtimeConfigController_getConfig: { + parameters: { + query?: never + header?: never + path?: never + cookie?: never + } + requestBody?: never + responses: { + /** @description Gets project's realtime configuration */ + 200: { + headers: { + [name: string]: unknown + } + content: { + 'application/json': components['schemas']['RealtimeConfigResponseDto'] + } + } + 403: { + headers: { + [name: string]: unknown + } + content?: never + } + } + } + RealtimeConfigController_updateConfig: { + parameters: { + query?: never + header?: never + path?: never + cookie?: never + } + requestBody: { + content: { + 'application/json': components['schemas']['UpdateRealtimeConfigBodyDto'] + } + } + responses: { + 204: { + headers: { + [name: string]: unknown + } + content?: never + } + 403: { + headers: { + [name: string]: unknown + } + content?: never + } + } + } SecretsConfigController_updateConfig: { parameters: { query?: never