Skip to content

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

Swap all warehouse endpoints to v0 (#27955)

Joshen Lim2a818ffc7b56
diff --git a/apps/studio/data/analytics/warehouse-access-tokens-create-mutation.ts b/apps/studio/data/analytics/warehouse-access-tokens-create-mutation.ts
index 07966b3f0ef..074db39ab90 100644
--- a/apps/studio/data/analytics/warehouse-access-tokens-create-mutation.ts
+++ b/apps/studio/data/analytics/warehouse-access-tokens-create-mutation.ts
@@ -13,7 +13,7 @@ async function createWarehouseAccessToken({
description,
}: WarehouseAccessTokenCreateVariables) {
// TODO: remove type cast when fetcher fn params are typed
- const { data, error } = await post(`/v1/projects/{ref}/analytics/warehouse/access-tokens`, {
+ const { data, error } = await post(`/v0/projects/{ref}/analytics/warehouse/access-tokens`, {
params: {
path: { ref },
},
diff --git a/apps/studio/data/analytics/warehouse-access-tokens-delete-mutation.ts b/apps/studio/data/analytics/warehouse-access-tokens-delete-mutation.ts
index 8aa34940276..0b5140cf7c7 100644
--- a/apps/studio/data/analytics/warehouse-access-tokens-delete-mutation.ts
+++ b/apps/studio/data/analytics/warehouse-access-tokens-delete-mutation.ts
@@ -11,7 +11,7 @@ export type DeleteAccessTokenArgs = {
export async function deleteWarehouseAccessToken({ projectRef, token }: DeleteAccessTokenArgs) {
const { data, error } = await del(
- '/v1/projects/{ref}/analytics/warehouse/access-tokens/{token}',
+ '/v0/projects/{ref}/analytics/warehouse/access-tokens/{token}',
{
params: { path: { ref: projectRef, token } } as any,
}
diff --git a/apps/studio/data/analytics/warehouse-access-tokens-query.ts b/apps/studio/data/analytics/warehouse-access-tokens-query.ts
index 004531f5acc..e743299ca6a 100644
--- a/apps/studio/data/analytics/warehouse-access-tokens-query.ts
+++ b/apps/studio/data/analytics/warehouse-access-tokens-query.ts
@@ -16,7 +16,7 @@ export async function getWarehouseAccessTokens(
}
// TODO: Remove typecast when codegen types are fixed
- const response = await get(`/v1/projects/{ref}/analytics/warehouse/access-tokens`, {
+ const response = await get(`/v0/projects/{ref}/analytics/warehouse/access-tokens`, {
params: { path: { ref: projectRef } },
signal,
})
diff --git a/apps/studio/data/analytics/warehouse-collections-create-mutation.ts b/apps/studio/data/analytics/warehouse-collections-create-mutation.ts
index 8b14d2c8217..ca0ed7153bd 100644
--- a/apps/studio/data/analytics/warehouse-collections-create-mutation.ts
+++ b/apps/studio/data/analytics/warehouse-collections-create-mutation.ts
@@ -10,7 +10,7 @@ export type CreateCollectionArgs = {
}
export async function createCollection({ projectRef, name }: CreateCollectionArgs) {
- const { data, error } = await post('/v1/projects/{ref}/analytics/warehouse/collections', {
+ const { data, error } = await post('/v0/projects/{ref}/analytics/warehouse/collections', {
params: { path: { ref: projectRef } },
body: { name },
} as any)
diff --git a/apps/studio/data/analytics/warehouse-collections-delete-mutation.ts b/apps/studio/data/analytics/warehouse-collections-delete-mutation.ts
index 168b38aeb4b..d631aae159c 100644
--- a/apps/studio/data/analytics/warehouse-collections-delete-mutation.ts
+++ b/apps/studio/data/analytics/warehouse-collections-delete-mutation.ts
@@ -11,7 +11,7 @@ export type DeleteCollectionVariables = {
}
export async function deleteCollection({ projectRef, collectionToken }: DeleteCollectionVariables) {
- const { data, error } = await del('/v1/projects/{ref}/analytics/warehouse/collections/{token}', {
+ const { data, error } = await del('/v0/projects/{ref}/analytics/warehouse/collections/{token}', {
params: { path: { ref: projectRef, token: collectionToken } } as any,
})
diff --git a/apps/studio/data/analytics/warehouse-collections-query.ts b/apps/studio/data/analytics/warehouse-collections-query.ts
index c78ebd5d778..7090ab82db7 100644
--- a/apps/studio/data/analytics/warehouse-collections-query.ts
+++ b/apps/studio/data/analytics/warehouse-collections-query.ts
@@ -15,7 +15,7 @@ export async function getWarehouseCollections(
}
// TODO: Remove type cast when codegen types are fixed
- const { data, error } = await get(`/v1/projects/{ref}/analytics/warehouse/collections`, {
+ const { data, error } = await get(`/v0/projects/{ref}/analytics/warehouse/collections`, {
params: { path: { ref: projectRef } },
signal,
})
diff --git a/apps/studio/data/analytics/warehouse-collections-update-mutation.ts b/apps/studio/data/analytics/warehouse-collections-update-mutation.ts
index adf882c0c87..702904d792b 100644
--- a/apps/studio/data/analytics/warehouse-collections-update-mutation.ts
+++ b/apps/studio/data/analytics/warehouse-collections-update-mutation.ts
@@ -20,7 +20,7 @@ export async function updateCollection(
payload: UpdateCollectionPayload
) {
const { data, error } = await patch(
- '/v1/projects/{ref}/analytics/warehouse/collections/{token}',
+ '/v0/projects/{ref}/analytics/warehouse/collections/{token}',
{
params: { path: { ref: projectRef, token: collectionToken } },
body: payload,
diff --git a/apps/studio/data/analytics/warehouse-query.ts b/apps/studio/data/analytics/warehouse-query.ts
index 1223a865d67..a827084e14c 100644
--- a/apps/studio/data/analytics/warehouse-query.ts
+++ b/apps/studio/data/analytics/warehouse-query.ts
@@ -16,7 +16,7 @@ export async function getWarehouseQuery(
throw new Error('SQL must be provided')
}
- const { data, error } = await get(`/v1/projects/{ref}/analytics/warehouse/query`, {
+ const { data, error } = await get(`/v0/projects/{ref}/analytics/warehouse/query`, {
params: { path: { ref: ref }, query: { bq_sql: sql } },
signal,
} as any)
diff --git a/apps/studio/data/analytics/warehouse-tenant-query.ts b/apps/studio/data/analytics/warehouse-tenant-query.ts
index 1c983f8346a..c83f1cce4b1 100644
--- a/apps/studio/data/analytics/warehouse-tenant-query.ts
+++ b/apps/studio/data/analytics/warehouse-tenant-query.ts
@@ -16,7 +16,7 @@ export async function getWarehouseTenant(
if (!projectRef) {
throw new Error('projectRef is required')
}
- const { data, error } = await get(`/v1/projects/{ref}/analytics/warehouse/tenant`, {
+ const { data, error } = await get(`/v0/projects/{ref}/analytics/warehouse/tenant`, {
params: { path: { ref: projectRef } },
signal,
})
diff --git a/packages/api-types/types/api.d.ts b/packages/api-types/types/api.d.ts
index 46baec31ea0..d377ceec4ff 100644
--- a/packages/api-types/types/api.d.ts
+++ b/packages/api-types/types/api.d.ts
@@ -1446,6 +1446,50 @@ export interface paths {
/** Gets project's usage api requests count */
get: operations['UsageApiController_getApiRequestsCount']
}
+ '/v0/projects/{ref}/analytics/warehouse/access-tokens': {
+ /** Lists project's warehouse access tokens from logflare */
+ get: operations['v1-list-all-warehouse-tokens']
+ /** Create a warehouse access token */
+ post: operations['v1-create-a-warehouse-token']
+ }
+ '/v0/projects/{ref}/analytics/warehouse/access-tokens/{token}': {
+ /** Delete a warehouse access token */
+ delete: operations['v1-delete-a-warehouse-token']
+ }
+ '/v0/projects/{ref}/analytics/warehouse/collections': {
+ /** Lists project's warehouse collections from logflare */
+ get: operations['v1-list-all-warehouse-collections']
+ /** Create a warehouse collection */
+ post: operations['v1-create-a-warehouse-collection']
+ }
+ '/v0/projects/{ref}/analytics/warehouse/collections/{token}': {
+ /** Get a warehouse collection */
+ get: operations['v1-get-a-warehouse-collection']
+ /** Delete a warehouse collection */
+ delete: operations['v1-delete-a-warehouse-collection']
+ /** Update a warehouse collection */
+ patch: operations['v1-update-a-warehouse-collection']
+ }
+ '/v0/projects/{ref}/analytics/warehouse/endpoints': {
+ /** Lists project's warehouse endpoints from logflare */
+ get: operations['v1-list-all-warehouse-endpoints']
+ /** Create a warehouse endpoint */
+ post: operations['v1-create-a-warehouse-endpoint']
+ }
+ '/v0/projects/{ref}/analytics/warehouse/endpoints/{token}': {
+ /** Update a warehouse endpoint */
+ put: operations['v1-update-a-warehouse-endpoint']
+ /** Delete a warehouse endpoint */
+ delete: operations['v1-delete-a-warehouse-endpoint']
+ }
+ '/v0/projects/{ref}/analytics/warehouse/query': {
+ /** Lists project's warehouse queries from logflare */
+ get: operations['v1-list-all-warehouse-queries']
+ }
+ '/v0/projects/{ref}/analytics/warehouse/tenant': {
+ /** Gets project's warehouse tenant from logflare */
+ get: operations['v1-provision-a-warehouse-tenant']
+ }
'/v0/projects/{ref}/api/graphql': {
/** Queries project Graphql */
post: operations['ProjectsApiController_projectGraphql']
@@ -1718,50 +1762,6 @@ export interface paths {
/** Deletes the given project */
delete: operations['v1-delete-a-project']
}
- '/v1/projects/{ref}/analytics/warehouse/access-tokens': {
- /** Lists project's warehouse access tokens from logflare */
- get: operations['v1-list-all-warehouse-tokens']
- /** Create a warehouse access token */
- post: operations['v1-create-a-warehouse-token']
- }
- '/v1/projects/{ref}/analytics/warehouse/access-tokens/{token}': {
- /** Delete a warehouse access token */
- delete: operations['v1-delete-a-warehouse-token']
- }
- '/v1/projects/{ref}/analytics/warehouse/collections': {
- /** Lists project's warehouse collections from logflare */
- get: operations['v1-list-all-warehouse-collections']
- /** Create a warehouse collection */
- post: operations['v1-create-a-warehouse-collection']
- }
- '/v1/projects/{ref}/analytics/warehouse/collections/{token}': {
- /** Get a warehouse collection */
- get: operations['v1-get-a-warehouse-collection']
- /** Delete a warehouse collection */
- delete: operations['v1-delete-a-warehouse-collection']
- /** Update a warehouse collection */
- patch: operations['v1-update-a-warehouse-collection']
- }
- '/v1/projects/{ref}/analytics/warehouse/endpoints': {
- /** Lists project's warehouse endpoints from logflare */
- get: operations['v1-list-all-warehouse-endpoints']
- /** Create a warehouse endpoint */
- post: operations['v1-create-a-warehouse-endpoint']
- }
- '/v1/projects/{ref}/analytics/warehouse/endpoints/{token}': {
- /** Update a warehouse endpoint */
- put: operations['v1-update-a-warehouse-endpoint']
- /** Delete a warehouse endpoint */
- delete: operations['v1-delete-a-warehouse-endpoint']
- }
- '/v1/projects/{ref}/analytics/warehouse/query': {
- /** Lists project's warehouse queries from logflare */
- get: operations['v1-list-all-warehouse-queries']
- }
- '/v1/projects/{ref}/analytics/warehouse/tenant': {
- /** Gets project's warehouse tenant from logflare */
- get: operations['v1-provision-a-warehouse-tenant']
- }
'/v1/projects/{ref}/api-keys': {
/** Get project api keys */
get: operations['v1-get-project-api-keys']
@@ -2410,6 +2410,12 @@ export interface components {
BulkDeleteUserContentResponse: {
id: string
}
+ CfResponse: {
+ errors: Record<string, never>[]
+ messages: Record<string, never>[]
+ result: components['schemas']['CustomHostnameDetails']
+ success: boolean
+ }
Column: {
id: number
name: string
@@ -2605,7 +2611,6 @@ export interface components {
desired_instance_size?: components['schemas']['DesiredInstanceSize']
name: string
org_id: number
- vercel_configuration_id?: string
}
CreateProjectResponse: {
anon_key: string
@@ -2788,6 +2793,23 @@ export interface components {
billing_via_partner: boolean
email: string
}
+ CustomHostnameDetails: {
+ custom_origin_server: string
+ hostname: string
+ id: string
+ ownership_verification: {
+ name?: string
+ type?: string
+ value?: string
+ }
+ ssl: {
+ status?: string
+ validation_errors?: components['schemas']['ValidationError'][]
+ validation_records?: components['schemas']['ValidationRecord'][]
+ }
+ status: string
+ verification_errors?: string[]
+ }
CustomSupabaseInternalRequests: {
ami: components['schemas']['AmiSearchOptions']
}
@@ -2848,6 +2870,7 @@ export interface components {
| '8_upgrade_completion_failed'
| '9_post_physical_backup_failed'
initiated_at: string
+ latest_status_at: string
/** @enum {string} */
progress?:
| '0_requested'
@@ -2988,11 +3011,8 @@ export interface components {
organization_plan?: components['schemas']['SelfServePlanId']
/** @description The three-letter, primary Fly.io region where the target app intends to write from */
primary_region: string
- /**
- * @description An array of Fly.io region codes where read replicas should be provisioned
- * @default []
- */
- read_regions: string[]
+ /** @description An array of Fly.io region codes where read replicas should be provisioned */
+ read_regions?: string[]
/** @description A UNIX epoch timestamp value */
timestamp: number
/** @description The full request target URL */
@@ -5444,7 +5464,7 @@ export interface components {
}
UpdateCustomHostnameResponse: {
custom_hostname: string
- data: Record<string, never>
+ data: components['schemas']['CfResponse']
/** @enum {string} */
status:
| '1_not_started'
@@ -6161,6 +6181,13 @@ export interface components {
ValidateQueryResponse: {
valid: boolean
}
+ ValidationError: {
+ message: string
+ }
+ ValidationRecord: {
+ txt_name: string
+ txt_value: string
+ }
VanitySubdomainBody: {
vanity_subdomain: string
}
@@ -13280,312 +13307,232 @@ export interface operations {
}
}
}
- /**
- * Get metrics
- * @description At most 50 projects can be queried at a time.
- * Currently supports '1d', '3d', and '7d' intervals.
- */
- V0ProjectsMetricsController_getProjectsMetrics: {
- requestBody: {
- content: {
- 'application/json': components['schemas']['GetMetricsBody']
+ /** Lists project's warehouse access tokens from logflare */
+ 'v1-list-all-warehouse-tokens': {
+ parameters: {
+ path: {
+ /** @description Project ref */
+ ref: string
}
}
responses: {
200: {
content: {
- 'application/json': components['schemas']['GetMetricsResponse']
+ 'application/json': components['schemas']['LFAccessToken'][]
}
}
- }
- }
- /**
- * Get database branch config
- * @description Fetches configurations of the specified database branch
- */
- 'v1-get-a-branch-config': {
- parameters: {
- path: {
- /** @description Branch ID */
- branch_id: string
+ 403: {
+ content: never
+ }
+ /** @description Failed to fetch warehouse access tokens */
+ 500: {
+ content: never
}
}
+ }
+ /** Create a warehouse access token */
+ 'v1-create-a-warehouse-token': {
responses: {
- 200: {
+ 201: {
content: {
- 'application/json': components['schemas']['BranchDetailResponse']
+ 'application/json': components['schemas']['LFAccessToken']
}
}
- /** @description Failed to retrieve database branch */
+ 403: {
+ content: never
+ }
+ /** @description Failed to create warehouse access token */
500: {
content: never
}
}
}
- /**
- * Delete a database branch
- * @description Deletes the specified database branch
- */
- 'v1-delete-a-branch': {
- parameters: {
- path: {
- /** @description Branch ID */
- branch_id: string
- }
- }
+ /** Delete a warehouse access token */
+ 'v1-delete-a-warehouse-token': {
responses: {
200: {
- content: {
- 'application/json': components['schemas']['BranchDeleteResponse']
- }
+ content: never
}
- /** @description Failed to delete database branch */
+ 403: {
+ content: never
+ }
+ /** @description Failed to delete warehouse access token */
500: {
content: never
}
}
}
- /**
- * Update database branch config
- * @description Updates the configuration of the specified database branch
- */
- 'v1-update-a-branch-config': {
+ /** Lists project's warehouse collections from logflare */
+ 'v1-list-all-warehouse-collections': {
parameters: {
path: {
- /** @description Branch ID */
- branch_id: string
- }
- }
- requestBody: {
- content: {
- 'application/json': components['schemas']['UpdateBranchBody']
+ /** @description Project ref */
+ ref: string
}
}
responses: {
200: {
content: {
- 'application/json': components['schemas']['BranchResponse']
+ 'application/json': components['schemas']['LFSource'][]
}
}
- /** @description Failed to update database branch */
+ 403: {
+ content: never
+ }
+ /** @description Failed to fetch warehouse collections */
500: {
content: never
}
}
}
- /**
- * Resets a database branch
- * @description Resets the specified database branch
- */
- 'v1-reset-a-branch': {
- parameters: {
- path: {
- /** @description Branch ID */
- branch_id: string
- }
- }
+ /** Create a warehouse collection */
+ 'v1-create-a-warehouse-collection': {
responses: {
201: {
content: {
- 'application/json': components['schemas']['BranchResetResponse']
+ 'application/json': components['schemas']['LFSource']
}
}
- /** @description Failed to reset database branch */
+ 403: {
+ content: never
+ }
+ /** @description Failed to create warehouse collection */
500: {
content: never
}
}
}
- /** [Beta] Authorize user through oauth */
- 'v1-authorize-user': {
- parameters: {
- query: {
- client_id: string
- response_type: 'code' | 'token' | 'id_token token'
- redirect_uri: string
- scope?: string
- state?: string
- response_mode?: string
- code_challenge?: string
- code_challenge_method?: 'plain' | 'sha256' | 'S256'
- }
- }
+ /** Get a warehouse collection */
+ 'v1-get-a-warehouse-collection': {
responses: {
- 303: {
+ 200: {
+ content: {
+ 'application/json': components['schemas']['LFSource']
+ }
+ }
+ 403: {
content: never
}
- }
- }
- /** [Beta] Exchange auth code for user's access and refresh token */
- 'v1-exchange-oauth-token': {
- requestBody: {
- content: {
- 'application/x-www-form-urlencoded': components['schemas']['OAuthTokenBody']
+ /** @description Failed to fetch warehouse collection */
+ 500: {
+ content: never
}
}
+ }
+ /** Delete a warehouse collection */
+ 'v1-delete-a-warehouse-collection': {
responses: {
- 201: {
+ 200: {
content: {
- 'application/json': components['schemas']['OAuthTokenResponse']
+ 'application/json': components['schemas']['LFSource']
}
}
+ 403: {
+ content: never
+ }
+ /** @description Failed to delete warehouse collection */
+ 500: {
+ content: never
+ }
}
}
- /**
- * List all organizations
- * @description Returns a list of organizations that you currently belong to.
- */
- 'v1-list-all-organizations': {
+ /** Update a warehouse collection */
+ 'v1-update-a-warehouse-collection': {
responses: {
200: {
content: {
- 'application/json': components['schemas']['OrganizationResponseV1'][]
+ 'application/json': components['schemas']['LFSource']
}
}
- /** @description Unexpected error listing organizations */
- 500: {
+ 403: {
content: never
}
- }
- }
- /** Create an organization */
- 'v1-create-an-organization': {
- requestBody: {
- content: {
- 'application/json': components['schemas']['CreateOrganizationBodyV1']
- }
- }
- responses: {
- 201: {
- content: {
- 'application/json': components['schemas']['OrganizationResponseV1']
- }
- }
- /** @description Unexpected error creating an organization */
+ /** @description Failed to update warehouse collection */
500: {
content: never
}
}
}
- /** Gets information about the organization */
- 'v1-get-an-organization': {
+ /** Lists project's warehouse endpoints from logflare */
+ 'v1-list-all-warehouse-endpoints': {
parameters: {
path: {
- slug: string
+ /** @description Project ref */
+ ref: string
}
}
responses: {
200: {
content: {
- 'application/json': components['schemas']['V1OrganizationSlugResponse']
+ 'application/json': components['schemas']['LFEndpoint'][]
}
}
- }
- }
- /** List members of an organization */
- 'v1-list-organization-members': {
- parameters: {
- path: {
- slug: string
- }
- }
- responses: {
- 200: {
- content: {
- 'application/json': components['schemas']['V1OrganizationMemberResponse'][]
- }
+ 403: {
+ content: never
}
- }
- }
- /**
- * List all projects
- * @description Returns a list of all projects you've previously created.
- */
- 'v1-list-all-projects': {
- responses: {
- 200: {
- content: {
- 'application/json': components['schemas']['V1ProjectResponse'][]
- }
+ /** @description Failed to fetch warehouse endpoints */
+ 500: {
+ content: never
}
}
}
- /** Create a project */
- 'v1-create-a-project': {
- requestBody: {
- content: {
- 'application/json': components['schemas']['V1CreateProjectBody']
- }
- }
+ /** Create a warehouse endpoint */
+ 'v1-create-a-warehouse-endpoint': {
responses: {
201: {
content: {
- 'application/json': components['schemas']['V1ProjectResponse']
- }
- }
- }
- }
- /** Deletes the given project */
- 'v1-delete-a-project': {
- parameters: {
- path: {
- /** @description Project ref */
- ref: string
- }
- }
- responses: {
- 200: {
- content: {
- 'application/json': components['schemas']['V1ProjectRefResponse']
+ 'application/json': components['schemas']['LFEndpoint']
}
}
403: {
content: never
}
- }
- }
- /** Lists project's warehouse access tokens from logflare */
- 'v1-list-all-warehouse-tokens': {
- parameters: {
- path: {
- /** @description Project ref */
- ref: string
+ /** @description Failed to create warehouse endpoint */
+ 500: {
+ content: never
}
}
+ }
+ /** Update a warehouse endpoint */
+ 'v1-update-a-warehouse-endpoint': {
responses: {
200: {
content: {
- 'application/json': components['schemas']['LFAccessToken'][]
+ 'application/json': components['schemas']['LFEndpoint']
}
}
403: {
content: never
}
- /** @description Failed to fetch warehouse access tokens */
+ /** @description Failed to update warehouse endpoint */
500: {
content: never
}
}
}
- /** Create a warehouse access token */
- 'v1-create-a-warehouse-token': {
+ /** Delete a warehouse endpoint */
+ 'v1-delete-a-warehouse-endpoint': {
responses: {
- 201: {
- content: {
- 'application/json': components['schemas']['LFAccessToken']
- }
+ 200: {
+ content: never
}
403: {
content: never
}
- /** @description Failed to create warehouse access token */
+ /** @description Failed to delete warehouse endpoint */
500: {
content: never
}
}
}
- /** Delete a warehouse access token */
- 'v1-delete-a-warehouse-token': {
+ /** Lists project's warehouse queries from logflare */
+ 'v1-list-all-warehouse-queries': {
+ parameters: {
+ path: {
+ /** @description Project ref */
+ ref: string
+ }
+ }
responses: {
200: {
content: never
@@ -13593,14 +13540,14 @@ export interface operations {
403: {
content: never
}
- /** @description Failed to delete warehouse access token */
+ /** @description Failed to fetch warehouse queries */
500: {
content: never
}
}
}
- /** Lists project's warehouse collections from logflare */
- 'v1-list-all-warehouse-collections': {
+ /** Gets project's warehouse tenant from logflare */
+ 'v1-provision-a-warehouse-tenant': {
parameters: {
path: {
/** @description Project ref */
@@ -13610,181 +13557,265 @@ export interface operations {
responses: {
200: {
content: {
- 'application/json': components['schemas']['LFSource'][]
+ 'application/json': components['schemas']['LFUser']
}
}
403: {
content: never
}
- /** @description Failed to fetch warehouse collections */
+ /** @description Failed to fetch or provision warehouse tenant */
500: {
content: never
}
}
}
- /** Create a warehouse collection */
- 'v1-create-a-warehouse-collection': {
+ /**
+ * Get metrics
+ * @description At most 50 projects can be queried at a time.
+ * Currently supports '1d', '3d', and '7d' intervals.
+ */
+ V0ProjectsMetricsController_getProjectsMetrics: {
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['GetMetricsBody']
+ }
+ }
responses: {
- 201: {
+ 200: {
content: {
- 'application/json': components['schemas']['LFSource']
+ 'application/json': components['schemas']['GetMetricsResponse']
}
}
- 403: {
- content: never
- }
- /** @description Failed to create warehouse collection */
- 500: {
- content: never
- }
}
}
- /** Get a warehouse collection */
- 'v1-get-a-warehouse-collection': {
+ /**
+ * Get database branch config
+ * @description Fetches configurations of the specified database branch
+ */
+ 'v1-get-a-branch-config': {
+ parameters: {
+ path: {
+ /** @description Branch ID */
+ branch_id: string
+ }
+ }
responses: {
200: {
content: {
- 'application/json': components['schemas']['LFSource']
+ 'application/json': components['schemas']['BranchDetailResponse']
}
}
- 403: {
- content: never
- }
- /** @description Failed to fetch warehouse collection */
+ /** @description Failed to retrieve database branch */
500: {
content: never
}
}
}
- /** Delete a warehouse collection */
- 'v1-delete-a-warehouse-collection': {
+ /**
+ * Delete a database branch
+ * @description Deletes the specified database branch
+ */
+ 'v1-delete-a-branch': {
+ parameters: {
+ path: {
+ /** @description Branch ID */
+ branch_id: string
+ }
+ }
responses: {
200: {
content: {
- 'application/json': components['schemas']['LFSource']
+ 'application/json': components['schemas']['BranchDeleteResponse']
}
}
- 403: {
- content: never
- }
- /** @description Failed to delete warehouse collection */
+ /** @description Failed to delete database branch */
500: {
content: never
}
}
}
- /** Update a warehouse collection */
- 'v1-update-a-warehouse-collection': {
+ /**
+ * Update database branch config
+ * @description Updates the configuration of the specified database branch
+ */
+ 'v1-update-a-branch-config': {
+ parameters: {
+ path: {
+ /** @description Branch ID */
+ branch_id: string
+ }
+ }
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['UpdateBranchBody']
+ }
+ }
responses: {
200: {
content: {
- 'application/json': components['schemas']['LFSource']
+ 'application/json': components['schemas']['BranchResponse']
}
}
- 403: {
- content: never
- }
- /** @description Failed to update warehouse collection */
+ /** @description Failed to update database branch */
500: {
content: never
}
}
}
- /** Lists project's warehouse endpoints from logflare */
- 'v1-list-all-warehouse-endpoints': {
+ /**
+ * Resets a database branch
+ * @description Resets the specified database branch
+ */
+ 'v1-reset-a-branch': {
parameters: {
path: {
- /** @description Project ref */
- ref: string
+ /** @description Branch ID */
+ branch_id: string
}
}
responses: {
- 200: {
+ 201: {
content: {
- 'application/json': components['schemas']['LFEndpoint'][]
+ 'application/json': components['schemas']['BranchResetResponse']
}
}
- 403: {
+ /** @description Failed to reset database branch */
+ 500: {
content: never
}
- /** @description Failed to fetch warehouse endpoints */
- 500: {
+ }
+ }
+ /** [Beta] Authorize user through oauth */
+ 'v1-authorize-user': {
+ parameters: {
+ query: {
+ client_id: string
+ response_type: 'code' | 'token' | 'id_token token'
+ redirect_uri: string
+ scope?: string
+ state?: string
+ response_mode?: string
+ code_challenge?: string
+ code_challenge_method?: 'plain' | 'sha256' | 'S256'
+ }
+ }
+ responses: {
+ 303: {
content: never
}
}
}
- /** Create a warehouse endpoint */
- 'v1-create-a-warehouse-endpoint': {
+ /** [Beta] Exchange auth code for user's access and refresh token */
+ 'v1-exchange-oauth-token': {
+ requestBody: {
+ content: {
+ 'application/x-www-form-urlencoded': components['schemas']['OAuthTokenBody']
+ }
+ }
responses: {
201: {
content: {
- 'application/json': components['schemas']['LFEndpoint']
+ 'application/json': components['schemas']['OAuthTokenResponse']
}
}
- 403: {
- content: never
+ }
+ }
+ /**
+ * List all organizations
+ * @description Returns a list of organizations that you currently belong to.
+ */
+ 'v1-list-all-organizations': {
+ responses: {
+ 200: {
+ content: {
+ 'application/json': components['schemas']['OrganizationResponseV1'][]
+ }
}
- /** @description Failed to create warehouse endpoint */
+ /** @description Unexpected error listing organizations */
500: {
content: never
}
}
}
- /** Update a warehouse endpoint */
- 'v1-update-a-warehouse-endpoint': {
+ /** Create an organization */
+ 'v1-create-an-organization': {
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['CreateOrganizationBodyV1']
+ }
+ }
responses: {
- 200: {
+ 201: {
content: {
- 'application/json': components['schemas']['LFEndpoint']
+ 'application/json': components['schemas']['OrganizationResponseV1']
}
}
- 403: {
- content: never
- }
- /** @description Failed to update warehouse endpoint */
+ /** @description Unexpected error creating an organization */
500: {
content: never
}
}
}
- /** Delete a warehouse endpoint */
- 'v1-delete-a-warehouse-endpoint': {
+ /** Gets information about the organization */
+ 'v1-get-an-organization': {
+ parameters: {
+ path: {
+ slug: string
+ }
+ }
responses: {
200: {
- content: never
- }
- 403: {
- content: never
- }
- /** @description Failed to delete warehouse endpoint */
- 500: {
- content: never
+ content: {
+ 'application/json': components['schemas']['V1OrganizationSlugResponse']
+ }
}
}
}
- /** Lists project's warehouse queries from logflare */
- 'v1-list-all-warehouse-queries': {
+ /** List members of an organization */
+ 'v1-list-organization-members': {
parameters: {
path: {
- /** @description Project ref */
- ref: string
+ slug: string
}
}
responses: {
200: {
- content: never
+ content: {
+ 'application/json': components['schemas']['V1OrganizationMemberResponse'][]
+ }
}
- 403: {
- content: never
+ }
+ }
+ /**
+ * List all projects
+ * @description Returns a list of all projects you've previously created.
+ */
+ 'v1-list-all-projects': {
+ responses: {
+ 200: {
+ content: {
+ 'application/json': components['schemas']['V1ProjectResponse'][]
+ }
}
- /** @description Failed to fetch warehouse queries */
- 500: {
- content: never
+ }
+ }
+ /** Create a project */
+ 'v1-create-a-project': {
+ requestBody: {
+ content: {
+ 'application/json': components['schemas']['V1CreateProjectBody']
+ }
+ }
+ responses: {
+ 201: {
+ content: {
+ 'application/json': components['schemas']['V1ProjectResponse']
+ }
}
}
}
- /** Gets project's warehouse tenant from logflare */
- 'v1-provision-a-warehouse-tenant': {
+ /** Deletes the given project */
+ 'v1-delete-a-project': {
parameters: {
path: {
/** @description Project ref */
@@ -13794,16 +13825,12 @@ export interface operations {
responses: {
200: {
content: {
- 'application/json': components['schemas']['LFUser']
+ 'application/json': components['schemas']['V1ProjectRefResponse']
}
}
403: {
content: never
}
- /** @description Failed to fetch or provision warehouse tenant */
- 500: {
- content: never
- }
}
}
/** Get project api keys */