Skip to content

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

feat(replication): Update the API calls for replication endpoints (#36866)

Riccardo Busettia77d40e43b86
diff --git a/apps/studio/components/interfaces/Database/Replication/DestinationPanel.tsx b/apps/studio/components/interfaces/Database/Replication/DestinationPanel.tsx
index 9c2b10f5d39..21f58cd2d20 100644
--- a/apps/studio/components/interfaces/Database/Replication/DestinationPanel.tsx
+++ b/apps/studio/components/interfaces/Database/Replication/DestinationPanel.tsx
@@ -105,7 +105,7 @@ const DestinationPanel = ({
serviceAccountKey: z.string().min(1, 'Service account key is required'),
publicationName: z.string().min(1, 'Publication is required'),
maxSize: z.number().min(1, 'Max Size must be greater than 0').int(),
- maxFillSecs: z.number().min(1, 'Max Fill seconds should be greater than 0').int(),
+ maxFillMs: z.number().min(1, 'Max Fill milliseconds should be greater than 0').int(),
maxStalenessMins: z.number().nonnegative(),
enabled: z.boolean(),
})
@@ -115,10 +115,11 @@ const DestinationPanel = ({
name: destinationData?.name ?? '',
projectId: destinationData?.config?.big_query?.project_id ?? '',
datasetId: destinationData?.config?.big_query?.dataset_id ?? '',
+ // For now, the password will always be set as empty for security reasons.
serviceAccountKey: destinationData?.config?.big_query?.service_account_key ?? '',
- publicationName: pipelineData?.publication_name ?? '',
- maxSize: pipelineData?.config?.config?.max_size ?? 1000,
- maxFillSecs: pipelineData?.config?.config?.max_fill_secs ?? 10,
+ publicationName: pipelineData?.config.publication_name ?? '',
+ maxSize: pipelineData?.config?.batch?.max_size ?? 1000,
+ maxFillMs: pipelineData?.config?.batch?.max_fill_ms ?? 10,
maxStalenessMins: destinationData?.config?.big_query?.max_staleness_mins ?? 5,
enabled: existingDestination?.enabled ?? true,
}),
@@ -156,10 +157,10 @@ const DestinationPanel = ({
maxStalenessMins: data.maxStalenessMins,
},
},
- pipelinConfig: {
- config: { maxSize: data.maxSize, maxFillSecs: data.maxFillSecs },
+ pipelineConfig: {
+ publicationName: data.publicationName,
+ batch: { maxSize: data.maxSize, maxFillMs: data.maxFillMs },
},
- publicationName: data.publicationName,
sourceId,
})
if (data.enabled) {
@@ -187,9 +188,9 @@ const DestinationPanel = ({
},
},
sourceId,
- publicationName: data.publicationName,
- pipelinConfig: {
- config: { maxSize: data.maxSize, maxFillSecs: data.maxFillSecs },
+ pipelineConfig: {
+ publicationName: data.publicationName,
+ batch: { maxSize: data.maxSize, maxFillMs: data.maxFillMs },
},
})
if (data.enabled) {
@@ -392,7 +393,7 @@ const DestinationPanel = ({
/>
<FormField_Shadcn_
control={form.control}
- name="maxFillSecs"
+ name="maxFillMs"
render={({ field }) => (
<FormItemLayout
className="mb-4"
@@ -404,7 +405,7 @@ const DestinationPanel = ({
<Input_Shadcn_
{...field}
type="number"
- {...form.register('maxFillSecs', {
+ {...form.register('maxFillMs', {
valueAsNumber: true, // Ensure the value is handled as a number
})}
placeholder="Max fill seconds"
diff --git a/apps/studio/components/interfaces/Database/Replication/DestinationRow.tsx b/apps/studio/components/interfaces/Database/Replication/DestinationRow.tsx
index a213036979b..b39e4dd1245 100644
--- a/apps/studio/components/interfaces/Database/Replication/DestinationRow.tsx
+++ b/apps/studio/components/interfaces/Database/Replication/DestinationRow.tsx
@@ -159,7 +159,7 @@ const DestinationRow = ({
{isPipelineLoading || !pipeline ? (
<ShimmeringLoader></ShimmeringLoader>
) : (
- pipeline.publication_name
+ pipeline.config.publication_name
)}
</Table.td>
<Table.td>
diff --git a/apps/studio/data/replication/create-destination-pipeline-mutation.ts b/apps/studio/data/replication/create-destination-pipeline-mutation.ts
index 437f0435d12..67866a6f18b 100644
--- a/apps/studio/data/replication/create-destination-pipeline-mutation.ts
+++ b/apps/studio/data/replication/create-destination-pipeline-mutation.ts
@@ -19,8 +19,13 @@ export type CreateDestinationPipelineParams = {
bigQuery: BigQueryDestinationConfig
}
sourceId: number
- publicationName: string
- pipelinConfig: { config: { maxSize: number; maxFillSecs: number } }
+ pipelineConfig: {
+ publicationName: string
+ batch: {
+ maxSize: number
+ maxFillMs: number
+ }
+ }
}
async function createDestinationPipeline(
@@ -30,10 +35,10 @@ async function createDestinationPipeline(
destinationConfig: {
bigQuery: { projectId, datasetId, serviceAccountKey, maxStalenessMins },
},
- pipelinConfig: {
- config: { maxSize, maxFillSecs },
+ pipelineConfig: {
+ publicationName,
+ batch: { maxSize, maxFillMs },
},
- publicationName,
sourceId,
}: CreateDestinationPipelineParams,
signal?: AbortSignal
@@ -53,12 +58,12 @@ async function createDestinationPipeline(
},
},
pipeline_config: {
- config: {
+ publication_name: publicationName,
+ batch: {
max_size: maxSize,
- max_fill_secs: maxFillSecs,
+ max_fill_ms: maxFillMs,
},
},
- publication_name: publicationName,
source_id: sourceId,
},
signal,
diff --git a/apps/studio/data/replication/update-destination-pipeline-mutation.ts b/apps/studio/data/replication/update-destination-pipeline-mutation.ts
index f9c030d21fe..ee0cd6539ce 100644
--- a/apps/studio/data/replication/update-destination-pipeline-mutation.ts
+++ b/apps/studio/data/replication/update-destination-pipeline-mutation.ts
@@ -21,8 +21,13 @@ export type UpdateDestinationPipelineParams = {
bigQuery: BigQueryDestinationConfig
}
sourceId: number
- publicationName: string
- pipelinConfig: { config: { maxSize: number; maxFillSecs: number } }
+ pipelineConfig: {
+ publicationName: string
+ batch: {
+ maxSize: number
+ maxFillMs: number
+ }
+ }
}
async function updateDestinationPipeline(
@@ -34,10 +39,10 @@ async function updateDestinationPipeline(
destinationConfig: {
bigQuery: { projectId, datasetId, serviceAccountKey, maxStalenessMins },
},
- pipelinConfig: {
- config: { maxSize, maxFillSecs },
+ pipelineConfig: {
+ publicationName,
+ batch: { maxSize, maxFillMs },
},
- publicationName,
sourceId,
}: UpdateDestinationPipelineParams,
signal?: AbortSignal
@@ -59,12 +64,12 @@ async function updateDestinationPipeline(
},
},
pipeline_config: {
- config: {
+ publication_name: publicationName,
+ batch: {
max_size: maxSize,
- max_fill_secs: maxFillSecs,
+ max_fill_ms: maxFillMs,
},
},
- publication_name: publicationName,
source_id: sourceId,
},
signal,
diff --git a/apps/studio/pages/project/[ref]/database/replication.tsx b/apps/studio/pages/project/[ref]/database/replication.tsx
index ea2817ab997..20242cbeb77 100644
--- a/apps/studio/pages/project/[ref]/database/replication.tsx
+++ b/apps/studio/pages/project/[ref]/database/replication.tsx
@@ -6,12 +6,10 @@ import {
ScaffoldContainer,
ScaffoldDescription,
ScaffoldHeader,
- ScaffoldSection,
ScaffoldTitle,
} from 'components/layouts/Scaffold'
import { useFlag } from 'hooks/ui/useFlag'
import type { NextPageWithLayout } from 'types'
-import { Admonition } from 'ui-patterns'
const DatabaseReplicationPage: NextPageWithLayout = () => {
const enablePgReplicate = useFlag('enablePgReplicate')
diff --git a/packages/api-types/types/api.d.ts b/packages/api-types/types/api.d.ts
index 19be3f6d63b..7bc97e5da1a 100644
--- a/packages/api-types/types/api.d.ts
+++ b/packages/api-types/types/api.d.ts
@@ -1799,6 +1799,7 @@ export interface components {
sms_vonage_api_key: string | null
sms_vonage_api_secret: string | null
sms_vonage_from: string | null
+ /** Format: email */
smtp_admin_email: string | null
smtp_host: string | null
smtp_max_frequency: number | null
@@ -1844,8 +1845,10 @@ export interface components {
| 'RESIZING'
}
BranchResponse: {
+ /** Format: date-time */
created_at: string
git_branch?: string
+ /** Format: uuid */
id: string
is_default: boolean
/**
@@ -1859,6 +1862,8 @@ export interface components {
/** Format: int32 */
pr_number?: number
project_ref: string
+ /** Format: date-time */
+ review_requested_at?: string
/** @enum {string} */
status:
| 'CREATING_PROJECT'
@@ -1867,6 +1872,7 @@ export interface components {
| 'MIGRATIONS_FAILED'
| 'FUNCTIONS_DEPLOYED'
| 'FUNCTIONS_FAILED'
+ /** Format: date-time */
updated_at: string
}
BranchUpdateResponse: {
@@ -2135,6 +2141,7 @@ export interface components {
/** Format: int64 */
created_at?: number
entrypoint_path?: string
+ ezbr_sha256?: string
id: string
import_map?: boolean
import_map_path?: string
@@ -2908,6 +2915,7 @@ export interface components {
sms_vonage_api_key?: string | null
sms_vonage_api_secret?: string | null
sms_vonage_from?: string | null
+ /** Format: email */
smtp_admin_email?: string | null
smtp_host?: string | null
smtp_max_frequency?: number | null
@@ -2921,6 +2929,7 @@ export interface components {
branch_name?: string
git_branch?: string
persistent?: boolean
+ request_review?: boolean
/**
* @deprecated
* @description This field is deprecated and will be ignored. Use v1-reset-a-branch endpoint directly instead.
diff --git a/packages/api-types/types/platform.d.ts b/packages/api-types/types/platform.d.ts
index 86b3987b4a1..4657cd1d0b9 100644
--- a/packages/api-types/types/platform.d.ts
+++ b/packages/api-types/types/platform.d.ts
@@ -854,6 +854,23 @@ export interface paths {
patch?: never
trace?: never
}
+ '/platform/oauth/apps/register': {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ get?: never
+ put?: never
+ /** Dynamically register an OAuth client (RFC-7591) */
+ post: operations['PlatformOAuthAppsController_dynamicRegister']
+ delete?: never
+ options?: never
+ head?: never
+ patch?: never
+ trace?: never
+ }
'/platform/oauth/authorizations/{id}': {
parameters: {
query?: never
@@ -3232,15 +3249,15 @@ export interface paths {
patch?: never
trace?: never
}
- '/platform/projects/fly/{fly_extension_id}': {
+ '/platform/projects/available-regions': {
parameters: {
query?: never
header?: never
path?: never
cookie?: never
}
- /** Gets project linked to fly extension id */
- get: operations['ProjectsController_getProjectByFlyExtensionId']
+ /** Gets the list of available regions that can be used for a new project */
+ get: operations['ProjectsController_getRegions']
put?: never
post?: never
delete?: never
@@ -3249,42 +3266,42 @@ export interface paths {
patch?: never
trace?: never
}
- '/platform/replication/{ref}/destinations': {
+ '/platform/projects/fly/{fly_extension_id}': {
parameters: {
query?: never
header?: never
path?: never
cookie?: never
}
- /** Gets replication destinations */
- get: operations['ReplicationDestinationsController_getDestinations']
+ /** Gets project linked to fly extension id */
+ get: operations['ProjectsController_getProjectByFlyExtensionId']
put?: never
- /** Creates a destination */
- post: operations['ReplicationDestinationsController_createDestination']
+ post?: never
delete?: never
options?: never
head?: never
patch?: never
trace?: never
}
- '/platform/replication/{ref}/destinations-pipelines': {
+ '/platform/replication/{ref}/destinations': {
parameters: {
query?: never
header?: never
path?: never
cookie?: never
}
- get?: never
+ /** Get all replication destinations. */
+ get: operations['ReplicationDestinationsController_getDestinations']
put?: never
- /** Creates a replication destination and pipeline. */
- post: operations['ReplicationDestinationsPipelinesController_createDestinationPipeline']
+ /** Create a replication destination. */
+ post: operations['ReplicationDestinationsController_createDestination']
delete?: never
options?: never
head?: never
patch?: never
trace?: never
}
- '/platform/replication/{ref}/destinations-pipelines/{destination_id}/{pipeline_id}': {
+ '/platform/replication/{ref}/destinations-pipelines': {
parameters: {
query?: never
header?: never
@@ -3293,15 +3310,15 @@ export interface paths {
}
get?: never
put?: never
- /** Updates a replication destination and pipeline */
- post: operations['ReplicationDestinationsPipelinesController_updateDestinationPipeline']
+ /** Create a replication destination and pipeline. */
+ post: operations['ReplicationDestinationsPipelinesController_createDestinationPipeline']
delete?: never
options?: never
head?: never
patch?: never
trace?: never
}
- '/platform/replication/{ref}/destinations/{destinaion_id}': {
+ '/platform/replication/{ref}/destinations-pipelines/{destination_id}/{pipeline_id}': {
parameters: {
query?: never
header?: never
@@ -3310,8 +3327,8 @@ export interface paths {
}
get?: never
put?: never
- /** Updates a destination */
- post: operations['ReplicationDestinationsController_updateDestination']
+ /** Update a replication destination and pipeline. */
+ post: operations['ReplicationDestinationsPipelinesController_updateDestinationPipeline']
delete?: never
options?: never
head?: never
@@ -3325,11 +3342,12 @@ export interface paths {
path?: never
cookie?: never
}
- /** Gets a destination by id */
+ /** Get a replication destination by ID. */
get: operations['ReplicationDestinationsController_getDestination']
put?: never
- post?: never
- /** Deletes a destination */
+ /** Update a replication destination. */
+ post: operations['ReplicationDestinationsController_updateDestination']
+ /** Delete a replication destination. */
delete: operations['ReplicationDestinationsController_deleteDestination']
options?: never
head?: never
@@ -3343,10 +3361,10 @@ export interface paths {
path?: never
cookie?: never
}
- /** Gets replication pipelines */
+ /** Get all replication pipelines. */
get: operations['ReplicationPipelinesController_getPipelines']
put?: never
- /** Creates a pipeline */
+ /** Create a replication pipeline. */
post: operations['ReplicationPipelinesController_createPipeline']
delete?: never
options?: never
@@ -3361,12 +3379,12 @@ export interface paths {
path?: never
cookie?: never
}
- /** Gets a pipeline by id */
+ /** Get a replication pipeline by ID. */
get: operations['ReplicationPipelinesController_getPipeline']
put?: never
- /** Updates a pipeline */
+ /** Update a replication pipeline. */
post: operations['ReplicationPipelinesController_updatePipeline']
- /** Deletes a pipeline */
+ /** Delete a replication pipeline. */
delete: operations['ReplicationPipelinesController_deletePipeline']
options?: never
head?: never
@@ -3382,7 +3400,7 @@ export interface paths {
}
get?: never
put?: never
- /** Starts a pipeline */
+ /** Start a replication pipeline. */
post: operations['ReplicationPipelinesController_startPipeline']
delete?: never
options?: never
@@ -3397,7 +3415,7 @@ export interface paths {
path?: never
cookie?: never
}
- /** Gets status of a pipeline */
+ /** Get the status of a replication pipeline. */
get: operations['ReplicationPipelinesController_getPipelineStatus']
put?: never
post?: never
@@ -3416,7 +3434,7 @@ export interface paths {
}
get?: never
put?: never
- /** Stops a pipeline */
+ /** Stop a replication pipeline. */
post: operations['ReplicationPipelinesController_stopPipeline']
delete?: never
options?: never
@@ -3431,10 +3449,10 @@ export interface paths {
path?: never
cookie?: never
}
- /** Returns replication sources. */
+ /** Get all replication sources. */
get: operations['ReplicationSourcesController_getSources']
put?: never
- /** Creates a replication source. */
+ /** Create a replication source. */
post: operations['ReplicationSourcesController_createSource']
delete?: never
options?: never
@@ -3449,10 +3467,10 @@ export interface paths {
path?: never
cookie?: never
}
- /** Returns source publications. */
+ /** Get all publications for a source. */
get: operations['ReplicationSourcesController_getPublications']
put?: never
- /** Creates a publication. */
+ /** Create a publication for a source. */
post: operations['ReplicationSourcesController_createPublication']
delete?: never
options?: never
@@ -3470,7 +3488,7 @@ export interface paths {
get?: never
put?: never
post?: never
- /** Deletes a publication. */
+ /** Delete a publication for a source. */
delete: operations['ReplicationSourcesController_deletePublication']
options?: never
head?: never
@@ -3484,7 +3502,7 @@ export interface paths {
path?: never
cookie?: never
}
- /** Returns source tables. */
+ /** Get all tables for a source. */
get: operations['ReplicationSourcesController_getTables']
put?: never
post?: never
@@ -3503,7 +3521,7 @@ export interface paths {
}
get?: never
put?: never
- /** Creates a replication tenant and source. */
+ /** Create a replication tenant and source. */
post: operations['ReplicationTenantsSourcesController_createTenantSource']
delete?: never
options?: never
@@ -4436,6 +4454,7 @@ export interface components {
pipeline_id: number
}
CreateDestinationResponse: {
+ /** @description Destination id */
id: number
}
CreateExtensionBody: {
@@ -4594,7 +4613,9 @@ export interface components {
CreateOAuthAppResponse: {
client_id: string
client_secret: string
+ client_secret_expires_at: number
id: string
+ redirect_uris: string[]
}
CreateOrganizationBody: {
address?: {
@@ -4645,6 +4666,7 @@ export interface components {
usage_billing_enabled: boolean
}
CreatePipelineResponse: {
+ /** @description Pipeline id */
id: number
}
CreatePolicyBody: {
@@ -4674,10 +4696,10 @@ export interface components {
db_pass: string
db_pricing_tier_id?: string
/**
- * @description Provider region description
+ * @description Provider region description. Only one of db_region or region_selection can be specified.
* @example Southeast Asia (Singapore)
*/
- db_region: string
+ db_region?: string
db_sql?: string
/** @enum {string} */
desired_instance_size?:
@@ -4708,6 +4730,23 @@ export interface components {
* @enum {string}
*/
postgres_engine?: '13' | '14' | '15' | '17' | '17-oriole'
+ /** @description Provider region selection. Only one of db_region or region_selection can be specified. */
+ region_selection?:
+ | {
+ code: string
+ /** @enum {string} */
+ type: 'specific'
+ }
+ | {
+ /**
+ * @description The Smart Region Group's code. The codes supported are not a stable API, and should be retrieved from the /available-regions endpoint.
+ * @example apac
+ * @enum {string}
+ */
+ code: 'americas' | 'emea' | 'apac'
+ /** @enum {string} */
+ type: 'smartGroup'
+ }
/**
* @description Release channel. If not provided, GA will be used.
* @enum {string}
@@ -4765,16 +4804,21 @@ export interface components {
tables?: string[] | null
}
CreateReplicationDestinationBody: {
- /** @description BigQuery dataset id */
- dataset_id: string
+ /** @description Destination config */
+ config: {
+ big_query: {
+ /** @description BigQuery dataset id */
+ dataset_id: string
+ /** @description Max staleness in minutes */
+ max_staleness_mins: number
+ /** @description BigQuery project id */
+ project_id: string
+ /** @description BigQuery service account key */
+ service_account_key: string
+ }
+ }
/** @description Destination name */
- destination_name: string
- /** @description Max staleness in minutes */
- max_staleness_mins: number
- /** @description BigQuery project id */
- project_id: string
- /** @description BigQuery service account key */
- service_account_key: string
+ name: string
}
CreateReplicationDestinationPipelineBody: {
/** @description Destination config */
@@ -4794,28 +4838,34 @@ export interface components {
destination_name: string
/** @description Pipeline config */
pipeline_config: {
- config: {
- max_fill_secs: number
+ /** @description Batch config */
+ batch?: {
+ /** @description Maximum fill time in ms */
+ max_fill_ms: number
+ /** @description Maximum batch size */
max_size: number
}
+ /** @description Publication name */
+ publication_name: string
}
- /** @description Publication name */
- publication_name: string
/** @description Source id */
source_id: number
}
CreateReplicationPipelineBody: {
/** @description Pipeline config */
config: {
- config: {
- max_fill_secs: number
+ /** @description Batch config */
+ batch?: {
+ /** @description Maximum fill time in ms */
+ max_fill_ms: number
+ /** @description Maximum batch size */
max_size: number
}
+ /** @description Publication name */
+ publication_name: string
}
/** @description Destination id */
destination_id: number
- /** @description Publication name */
- publication_name: string
/** @description Source id */
source_id: number
}
@@ -4824,7 +4874,9 @@ export interface components {
name: string
/** @description Publication tables */
tables: {
+ /** @description Table name */
name: string
+ /** @description Table schema */
schema: string
}[]
}
@@ -4833,6 +4885,7 @@ export interface components {
owner: string
}
CreateSourceResponse: {
+ /** @description Source id */
id: number
}
CreateStorageBucketBody: {
@@ -4840,6 +4893,8 @@ export interface components {
file_size_limit?: number
id: string
public: boolean
+ /** @enum {string} */
+ type?: 'STANDARD' | 'ICEBERG'
}
CreateStorageCredentialBody: {
description: string
@@ -5186,6 +5241,19 @@ export interface components {
}
path: string
}
+ DynamicRegisterOAuthAppBody: {
+ client_name: string
+ /** Format: uri */
+ client_uri?: string
+ grant_types?: string[]
+ /** Format: uri */
+ logo_uri?: string
+ redirect_uris: string[]
+ response_types?: string[]
+ /** @default analytics:read */
+ scope?: string
+ token_endpoint_auth_method?: string
+ }
FormatQueryBody: {
query: string
}
@@ -5194,6 +5262,10 @@ export interface components {
file_url: string
fileUrl: string
}
+ GetAvailableRegionsBody: {
+ cloud_provider: string
+ organization_slug: string
+ }
GetContentCountResponse: {
count: number
}
@@ -5846,6 +5918,7 @@ export interface components {
SMS_VONAGE_API_KEY: string
SMS_VONAGE_API_SECRET: string
SMS_VONAGE_FROM: string
+ /** Format: email */
SMTP_ADMIN_EMAIL: string
SMTP_HOST: string
SMTP_MAX_FREQUENCY: number
@@ -6142,6 +6215,8 @@ export interface components {
id: string
name: string
redirect_uris?: string[]
+ /** @enum {string} */
+ registration_type: 'manual' | 'dynamic'
scopes?: (
| 'analytics:read'
| 'analytics:write'
@@ -7162,7 +7237,48 @@ export interface components {
/** @description Whether to only allow private channels */
private_only: boolean | null
}
+ RegionsInfo: {
+ all: {
+ smartGroup: {
+ /** @enum {string} */
+ code: 'americas' | 'emea' | 'apac'
+ name: string
+ /** @enum {string} */
+ type: 'smartGroup'
+ }[]
+ specific: {
+ code: string
+ name: string
+ /** @enum {string} */
+ provider: 'AWS' | 'AWS_K8S' | 'FLY'
+ /** @enum {string} */
+ status?: 'capacity' | 'other'
+ /** @enum {string} */
+ type: 'specific'
+ }[]
+ }
+ recommendations: {
+ smartGroup: {
+ /** @enum {string} */
+ code: 'americas' | 'emea' | 'apac'
+ name: string
+ /** @enum {string} */
+ type: 'smartGroup'
+ }
+ specific: {
+ code: string
+ name: string
+ /** @enum {string} */
+ provider: 'AWS' | 'AWS_K8S' | 'FLY'
+ /** @enum {string} */
+ status?: 'capacity' | 'other'
+ /** @enum {string} */
+ type: 'specific'
+ }[]
+ }
+ }
ReplicationDestinationResponse: {
+ /** @description Destination config */
config: {
big_query: {
/** @description BigQuery dataset id */
@@ -7175,12 +7291,17 @@ export interface components {
service_account_key: string
}
}
+ /** @description Destination id */
id: number
+ /** @description Destination name */
name: string
+ /** @description Tenant id */
tenant_id: string
}
ReplicationDestinationsResponse: {
+ /** @description List of destinations */
destinations: {
+ /** @description Destination config */
config: {
big_query: {
/** @description BigQuery dataset id */
@@ -7193,77 +7314,121 @@ export interface components {
service_account_key: string
}
}
+ /** @description Destination id */
id: number
+ /** @description Destination name */
name: string
+ /** @description Tenant id */
tenant_id: string
}[]
}
ReplicationPipelineResponse: {
+ /** @description Pipeline config */
config: {
- config: {
- max_fill_secs: number
+ /** @description Batch config */
+ batch?: {
+ /** @description Maximum fill time in ms */
+ max_fill_ms: number
+ /** @description Maximum batch size */
max_size: number
}
+ /** @description Publication name */
+ publication_name: string
}
+ /** @description Destination id */
destination_id: number
+ /** @description Destination name */
destination_name: string
+ /** @description Pipeline id */
id: number
- publication_name: string
+ /** @description Replicator id */
replicator_id: number
+ /** @description Source id */
source_id: number
+ /** @description Source name */
source_name: string
+ /** @description Tenant id */
tenant_id: string
}
ReplicationPipelinesResponse: {
+ /** @description List of pipelines */
pipelines: {
+ /** @description Pipeline config */
config: {
- config: {
- max_fill_secs: number
+ /** @description Batch config */
+ batch?: {
+ /** @description Maximum fill time in ms */
+ max_fill_ms: number
+ /** @description Maximum batch size */
max_size: number
}
+ /** @description Publication name */
+ publication_name: string
}
+ /** @description Destination id */
destination_id: number
+ /** @description Destination name */
destination_name: string
+ /** @description Pipeline id */
id: number
- publication_name: string
+ /** @description Replicator id */
replicator_id: number
+ /** @description Source id */
source_id: number
+ /** @description Source name */
source_name: string
+ /** @description Tenant id */
tenant_id: string
}[]
}
ReplicationPipelinesStatusResponse: {
+ /** @description Pipeline id */
pipeline_id: number
+ /** @description Pipeline status */
status: string
}
ReplicationPublicationsResponse: {
+ /** @description List of publications */
publications: {
+ /** @description Publication name */
name: string
+ /** @description Publication tables */
tables: {
+ /** @description Table name */
name: string
+ /** @description Table schema */
schema: string
}[]
}[]
}
ReplicationSourcesResponse: {
+ /** @description List of sources */
sources: {
+ /** @description Source config */
config: {
- postgres: {
- host: string
- name: string
- port: number
- slot_name: string
- username: string
- }
+ /** @description Source host */
+ host: string
+ /** @description Source name */
+ name: string
+ /** @description Source port */
+ port: number
+ /** @description Source username */
+ username: string
}
+ /** @description Source id */
id: number
+ /** @description Source name */
name: string
+ /** @description Tenant id */
tenant_id: string
}[]
}
ReplicationTablesResponse: {
+ /** @description List of tables */
tables: {
+ /** @description Table name */
name: string
+ /** @description Table schema */
schema: string
}[]
}
@@ -7461,6 +7626,8 @@ export interface components {
name: string
owner: string
public: boolean
+ /** @enum {string} */
+ type?: 'STANDARD' | 'ICEBERG'
updated_at: string
}
StorageConfigResponse: {
@@ -7485,6 +7652,8 @@ export interface components {
name: string
owner: string
public: boolean
+ /** @enum {string} */
+ type?: 'STANDARD' | 'ICEBERG'
updated_at: string
}
created_at: string
@@ -8071,6 +8240,7 @@ export interface components {
SMS_VONAGE_API_KEY?: string | null
SMS_VONAGE_API_SECRET?: string | null
SMS_VONAGE_FROM?: string | null
+ /** Format: email */
SMTP_ADMIN_EMAIL?: string | null
SMTP_HOST?: string | null
SMTP_MAX_FREQUENCY?: number | null
@@ -8262,16 +8432,21 @@ export interface components {
private_only?: boolean
}
UpdateReplicationDestinationBody: {
- /** @description BigQuery dataset id */
- dataset_id: string
+ /** @description Destination config */
+ config: {
+ big_query: {
+ /** @description BigQuery dataset id */
+ dataset_id: string
+ /** @description Max staleness in minutes */
+ max_staleness_mins: number
+ /** @description BigQuery project id */
+ project_id: string
+ /** @description BigQuery service account key */
+ service_account_key: string
+ }
+ }
/** @description Destination name */
- destination_name: string
- /** @description Max staleness in minutes */
- max_staleness_mins: number
- /** @description BigQuery project id */
- project_id: string
- /** @description BigQuery service account key */
- service_account_key: string
+ name: string
}
UpdateReplicationDestinationPipelineBody: {
/** @description Destination config */
@@ -8291,28 +8466,34 @@ export interface components {
destination_name: string
/** @description Pipeline config */
pipeline_config: {
- config: {
- max_fill_secs: number
+ /** @description Batch config */
+ batch?: {
+ /** @description Maximum fill time in ms */
+ max_fill_ms: number
+ /** @description Maximum batch size */
max_size: number
}
+ /** @description Publication name */
+ publication_name: string
}
- /** @description Publication name */
- publication_name: string
/** @description Source id */
source_id: number
}
UpdateReplicationPipelineBody: {
/** @description Pipeline config */
- config?: {
- config: {
- max_fill_secs: number
+ config: {
+ /** @description Batch config */
+ batch?: {
+ /** @description Maximum fill time in ms */
+ max_fill_ms: number
+ /** @description Maximum batch size */
max_size: number
}
+ /** @description Publication name */
+ publication_name: string
}
/** @description Destination id */
destination_id?: number
- /** @description Publication name */
- publication_name?: string
/** @description Source id */
source_id?: number
}
@@ -10377,6 +10558,29 @@ export interface operations {
}
}
}
+ PlatformOAuthAppsController_dynamicRegister: {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['DynamicRegisterOAuthAppBody']
+ }
+ }
+ responses: {
+ 201: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ 'application/json': components['schemas']['CreateOAuthAppResponse']
+ }
+ }
+ }
+ }
OAuthAuthorizationsController_getAuthorizationRequest: {
parameters: {
query?: never
@@ -16925,6 +17129,7 @@ export interface operations {
| 'realtime_channel_joins'
| 'realtime_channel_events'
| 'realtime_channel_presence_events'
+ | 'realtime_channel_db_events'
databaseIdentifier?: string
endDate: string
interval?: '1m' | '5m' | '10m' | '30m' | '1h' | '1d'
@@ -17185,6 +17390,12 @@ export interface operations {
'application/json': components['schemas']['PauseStatusResponse']
}
}
+ 403: {
+ headers: {
+ [name: string]: unknown
+ }
+ content?: never
+ }
}
}
ResizeController_resizeDatabase: {
@@ -17715,6 +17926,29 @@ export interface operations {
}
}
}
+ ProjectsController_getRegions: {
+ parameters: {
+ query?: never
+ header?: never
+ path?: never
+ cookie?: never
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['GetAvailableRegionsBody']
+ }
+ }
+ responses: {
+ 200: {
+ headers: {
+ [name: string]: unknown
+ }
+ content: {
+ 'application/json': components['schemas']['RegionsInfo']
+ }
+ }
+ }
+ }
ProjectsController_getProjectByFlyExtensionId: {
parameters: {
query?: never
@@ -17748,6 +17982,7 @@ export interface operations {
}
requestBody?: never
responses: {
+ /** @description Returns all destinations. */
200: {
headers: {
[name: string]: unknown
@@ -17762,7 +17997,7 @@ export interface operations {
}
content?: never
}
- /** @description Failed to get replication destinations */
+ /** @description Failed to get replication destinations. */
500: {
headers: {
[name: string]: unknown
@@ -17787,7 +18022,7 @@ export interface operations {
}
}
responses: {
- /** @description Returns the created replication destination id. */
+ /** @description Returns the created replication destination ID. */
201: {
headers: {
[name: string]: unknown
@@ -17802,7 +18037,7 @@ export interface operations {
}
content?: never
}
- /** @description Failed to create destination */
+ /** @description Failed to create destination. */
500: {
headers: {
[name: string]: unknown
@@ -17827,7 +18062,7 @@ export interface operations {
}
}
responses: {
- /** @description Returns the created replication destination and pipeline ids. */
+ /** @description Returns the created replication destination and pipeline IDs. */
201: {
headers: {
[name: string]: unknown
@@ -17871,6 +18106,7 @@ export interface operations {
}
}
responses: {
+ /** @description Returned when the replication destination and pipeline are updated. */
201: {
headers: {
[name: string]: unknown
@@ -17883,7 +18119,7 @@ export interface operations {
}
content?: never
}
- /** @description Returned when the API fails to update the replication destination or pipeline */
+ /** @description Returned when the API fails to update the replication destination or pipeline. */
500: {
headers: {
[name: string]: unknown
@@ -17892,7 +18128,7 @@ export interface operations {
}
}
}
- ReplicationDestinationsController_updateDestination: {
+ ReplicationDestinationsController_getDestination: {
parameters: {
query?: never
header?: never
@@ -17904,17 +18140,16 @@ export interface operations {
}
cookie?: never
}
- requestBody: {
- content: {
- 'application/json': components['schemas']['UpdateReplicationDestinationBody']
- }
- }
+ requestBody?: never
responses: {
- 201: {
+ /** @description Returns the destination. */
+ 200: {
headers: {
[name: string]: unknown
}
- content?: never
+ content: {
+ 'application/json': components['schemas']['ReplicationDestinationResponse']
+ }
}
403: {
headers: {
@@ -17922,7 +18157,7 @@ export interface operations {
}
content?: never
}
- /** @description Failed to update destination */
+ /** @description Failed to get destination. */
500: {
headers: {
[name: string]: unknown
@@ -17931,7 +18166,7 @@ export interface operations {
}
}
}
- ReplicationDestinationsController_getDestination: {
+ ReplicationDestinationsController_updateDestination: {
parameters: {
query?: never
header?: never
@@ -17943,16 +18178,18 @@ export interface operations {
}
cookie?: never
}
- requestBody?: never
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['UpdateReplicationDestinationBody']
+ }
+ }
responses: {
- /** @description Returns the destination. */
- 200: {
+ /** @description Returned when the destination is updated. */
+ 201: {
headers: {
[name: string]: unknown
}
- content: {
- 'application/json': components['schemas']['ReplicationDestinationResponse']
- }
+ content?: never
}
403: {
headers: {
@@ -17960,7 +18197,7 @@ export interface operations {
}
content?: never
}
- /** @description Failed to get destination */
+ /** @description Failed to update destination. */
500: {
headers: {
[name: string]: unknown
@@ -17983,6 +18220,7 @@ export interface operations {
}
requestBody?: never
responses: {
+ /** @description Returned when the destination is deleted. */
200: {
headers: {
[name: string]: unknown
@@ -17995,7 +18233,7 @@ export interface operations {
}
content?: never
}
- /** @description Failed to delete destination */
+ /** @description Failed to delete destination. */
500: {
headers: {
[name: string]: unknown
@@ -18016,6 +18254,7 @@ export interface operations {
}
requestBody?: never
responses: {
+ /** @description Returns all pipelines. */
200: {
headers: {
[name: string]: unknown
@@ -18030,7 +18269,7 @@ export interface operations {
}
content?: never
}
- /** @description Failed to get replication pipeline */
+ /** @description Failed to get replication pipelines. */
500: {
headers: {
[name: string]: unknown
@@ -18055,7 +18294,7 @@ export interface operations {
}
}
responses: {
- /** @description Returns the created replication pipeline id. */
+ /** @description Returns the created replication pipeline ID. */
201: {
headers: {
[name: string]: unknown
@@ -18070,7 +18309,7 @@ export interface operations {
}
content?: never
}
- /** @description Failed to create pipeline */
+ /** @description Failed to create pipeline. */
500: {
headers: {
[name: string]: unknown
@@ -18108,7 +18347,7 @@ export interface operations {
}
content?: never
}
- /** @description Failed to get pipeline */
+ /** @description Failed to get pipeline. */
500: {
headers: {
[name: string]: unknown
@@ -18135,6 +18374,7 @@ export interface operations {
}
}
responses: {
+ /** @description Returned when the pipeline is updated. */
201: {
headers: {
[name: string]: unknown
@@ -18147,7 +18387,7 @@ export interface operations {
}
content?: never
}
- /** @description Failed to update pipeline */
+ /** @description Failed to update pipeline. */
500: {
headers: {
[name: string]: unknown
@@ -18170,6 +18410,7 @@ export interface operations {
}
requestBody?: never
responses: {
+ /** @description Returned when the pipeline is deleted. */
200: {
headers: {
[name: string]: unknown
@@ -18182,7 +18423,7 @@ export interface operations {
}
content?: never
}
- /** @description Failed to delete pipeline */
+ /** @description Failed to delete pipeline. */
500: {
headers: {
[name: string]: unknown
@@ -18205,6 +18446,7 @@ export interface operations {
}
requestBody?: never
responses: {
+ /** @description Returned when the pipeline is started. */
200: {
headers: {
[name: string]: unknown
@@ -18217,7 +18459,7 @@ export interface operations {
}
content?: never
}
- /** @description Failed to start pipeline */
+ /** @description Failed to start pipeline. */
500: {
headers: {
[name: string]: unknown
@@ -18240,6 +18482,7 @@ export interface operations {
}
requestBody?: never
responses: {
+ /** @description Returns the pipeline status. */
200: {
headers: {
[name: string]: unknown
@@ -18254,7 +18497,7 @@ export interface operations {
}
content?: never
}
- /** @description Failed to get pipeline status */
+ /** @description Failed to get pipeline status. */
500: {
headers: {
[name: string]: unknown
@@ -18277,6 +18520,7 @@ export interface operations {
}
requestBody?: never
responses: {
+ /** @description Returned when the pipeline is stopped. */
200: {
headers: {
[name: string]: unknown
@@ -18289,7 +18533,7 @@ export interface operations {
}
content?: never
}
- /** @description Failed to stop pipeline */
+ /** @description Failed to stop pipeline. */
500: {
headers: {
[name: string]: unknown
@@ -18325,7 +18569,7 @@ export interface operations {
}
content?: never
}
- /** @description Returned when the API fails to get replication sources. */
+ /** @description Failed to get replication sources. */
500: {
headers: {
[name: string]: unknown
@@ -18346,7 +18590,7 @@ export interface operations {
}
requestBody?: never
responses: {
- /** @description Returns the created replication source id. */
+ /** @description Returns the created replication source ID. */
201: {
headers: {
[name: string]: unknown
@@ -18361,7 +18605,7 @@ export interface operations {
}
content?: never
}
- /** @description Returned when the API fails to create the replication source. */
+ /** @description Failed to create replication source. */
500: {
headers: {
[name: string]: unknown
@@ -18399,7 +18643,7 @@ export interface operations {
}
content?: never
}
- /** @description Returned when the API fails to get source publications. */
+ /** @description Failed to get source publications. */
500: {
headers: {
[name: string]: unknown
@@ -18439,7 +18683,7 @@ export interface operations {
}
content?: never
}
- /** @description Returned when the API fails to create the publication. */
+ /** @description Failed to create publication. */
500: {
headers: {
[name: string]: unknown
@@ -18476,7 +18720,7 @@ export interface operations {
}
content?: never
}
- /** @description Returned when the API fails to delete the publication. */
+ /** @description Failed to delete publication. */
500: {
headers: {
[name: string]: unknown
@@ -18514,7 +18758,7 @@ export interface operations {
}
content?: never
}
- /** @description Returned when the API fails to get source tables. */
+ /** @description Failed to get source tables. */
500: {
headers: {
[name: string]: unknown
@@ -18535,7 +18779,7 @@ export interface operations {
}
requestBody?: never
responses: {
- /** @description Returns the created replication tenant and source ids. */
+ /** @description Returns the created replication tenant and source IDs. */
201: {
headers: {
[name: string]: unknown
@@ -18550,7 +18794,7 @@ export interface operations {
}
content?: never
}
- /** @description Returned when the API fails to create the replication tenant or source. */
+ /** @description Failed to create replication tenant or source. */
500: {
headers: {
[name: string]: unknown