The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: update api.d.ts
dragarciab31e3840e968
diff --git a/studio/data/api.d.ts b/studio/data/api.d.tsindex 1af1d2a2fb6..dbc42951625 100644--- a/studio/data/api.d.ts+++ b/studio/data/api.d.ts@@ -97,6 +97,10 @@ export interface paths {/** Restore project backup */post: operations["BackupsController_restoreBackup"];};+ "/platform/database/{ref}/backups/restore-physical": {+ /** Restore project with a physical backup */+ post: operations["BackupsController_restorePhysicalBackup"];+ };"/platform/database/{ref}/backups/pitr": {/** Restore project to a previous point in time */post: operations["BackupsController_restorePointInTimeBackup"];@@ -929,6 +933,10 @@ export interface paths {/** Restore project backup */post: operations["BackupsController_restoreBackup"];};+ "/v0/database/{ref}/backups/restore-physical": {+ /** Restore project with a physical backup */+ post: operations["BackupsController_restorePhysicalBackup"];+ };"/v0/database/{ref}/backups/pitr": {/** Restore project to a previous point in time */post: operations["BackupsController_restorePointInTimeBackup"];@@ -1573,6 +1581,10 @@ export interface paths {/** Create an organization */post: operations["OrganizationsController_createOrganization"];};+ "/v1/organizations/{slug}/members": {+ /** List members of an organization */+ get: operations["V1OrganizationMembersController_v1ListOrganizationMembers"];+ };"/v1/oauth/authorize": {/** Authorize user through oauth */get: operations["OAuthController_authorize"];@@ -1581,6 +1593,14 @@ export interface paths {/** Exchange auth code for user's access and refresh token */post: operations["OAuthController_token"];};+ "/v1/snippets": {+ /** Lists SQL snippets for the logged in user */+ get: operations["SnippetsController_listSnippets"];+ };+ "/v1/snippets/{id}": {+ /** Gets a specific SQL snippet */+ get: operations["SnippetsController_getSnippet"];+ };}export type webhooks = Record<string, never>;@@ -1647,12 +1667,16 @@ export interface components {redirectTo?: string;};ProjectResourceWarningsResponse: {+ /** @enum {string|null} */+ disk_io_exhaustion: "critical" | "warning" | null;+ /** @enum {string|null} */+ disk_space_exhaustion: "critical" | "warning" | null;+ /** @enum {string|null} */+ cpu_exhaustion: "critical" | "warning" | null;+ /** @enum {string|null} */+ memory_and_swap_exhaustion: "critical" | "warning" | null;project: string;is_readonly_mode_enabled: boolean;- is_disk_io_budget_below_threshold: boolean;- is_disk_space_usage_beyond_threshold: boolean;- is_cpu_load_beyond_threshold: boolean;- is_memory_and_swap_usage_beyond_threshold: boolean;};GetGoTrueConfigResponse: {SITE_URL: string;@@ -2093,9 +2117,9 @@ export interface components {DownloadBackupResponse: {fileUrl: string;};- RestoreBackupBody: {+ RestorePhysicalBackupBody: {+ recovery_time_target: string;id: number;- isPhysicalBackup: boolean;};PointInTimeRestoreBody: {recovery_time_target_unix: number;@@ -4283,6 +4307,12 @@ export interface components {entrypoint_path?: string;import_map_path?: string;};+ V1OrganizationMemberResponse: {+ user_id: string;+ user_name: string;+ email?: string;+ role_name: string;+ };OAuthTokenBody: {/** @enum {string} */grant_type: "authorization_code" | "refresh_token";@@ -4300,6 +4330,51 @@ export interface components {refresh_token: string;expires_in: number;};+ SnippetProject: {+ id: number;+ name: string;+ };+ SnippetUser: {+ id: number;+ username: string;+ };+ SnippetMeta: {+ id: string;+ inserted_at: string;+ updated_at: string;+ /** @enum {string} */+ type: "sql";+ /** @enum {string} */+ visibility: "user" | "project" | "org" | "public";+ name: string;+ description: string | null;+ project: components["schemas"]["SnippetProject"];+ owner: components["schemas"]["SnippetUser"];+ updated_by: components["schemas"]["SnippetUser"];+ };+ SnippetList: {+ data: (components["schemas"]["SnippetMeta"])[];+ };+ SnippetContent: {+ favorite: boolean;+ schema_version: string;+ sql: string;+ };+ SnippetResponse: {+ id: string;+ inserted_at: string;+ updated_at: string;+ /** @enum {string} */+ type: "sql";+ /** @enum {string} */+ visibility: "user" | "project" | "org" | "public";+ name: string;+ description: string | null;+ project: components["schemas"]["SnippetProject"];+ owner: components["schemas"]["SnippetUser"];+ updated_by: components["schemas"]["SnippetUser"];+ content: components["schemas"]["SnippetContent"];+ };};responses: never;parameters: never;@@ -4721,6 +4796,24 @@ export interface operations {};/** Restore project backup */BackupsController_restoreBackup: {+ parameters: {+ path: {+ /** @description Project ref */+ ref: string;+ };+ };+ responses: {+ 201: {+ content: {+ "application/json": Record<string, never>;+ };+ };+ /** @description Failed to restore project backup */+ 500: never;+ };+ };+ /** Restore project with a physical backup */+ BackupsController_restorePhysicalBackup: {parameters: {path: {/** @description Project ref */@@ -4729,7 +4822,7 @@ export interface operations {};requestBody: {content: {- "application/json": components["schemas"]["RestoreBackupBody"];+ "application/json": components["schemas"]["RestorePhysicalBackupBody"];};};responses: {@@ -4738,7 +4831,7 @@ export interface operations {"application/json": Record<string, never>;};};- /** @description Failed to restore project backup */+ /** @description Failed to restore project with physical backup */500: never;};};@@ -10292,6 +10385,21 @@ export interface operations {500: never;};};+ /** List members of an organization */+ V1OrganizationMembersController_v1ListOrganizationMembers: {+ parameters: {+ path: {+ slug: string;+ };+ };+ responses: {+ 200: {+ content: {+ "application/json": (components["schemas"]["V1OrganizationMemberResponse"])[];+ };+ };+ };+ };/** Authorize user through oauth */OAuthController_authorize: {parameters: {@@ -10299,7 +10407,7 @@ export interface operations {client_id: string;response_type: "code" | "token" | "id_token token";redirect_uri: string;- scope: string;+ scope?: string;state?: string;response_mode?: string;code_challenge?: string;@@ -10325,4 +10433,38 @@ export interface operations {};};};+ /** Lists SQL snippets for the logged in user */+ SnippetsController_listSnippets: {+ parameters: {+ query?: {+ project_ref?: string;+ };+ };+ responses: {+ 200: {+ content: {+ "application/json": components["schemas"]["SnippetList"];+ };+ };+ /** @description Failed to list user's SQL snippets */+ 500: never;+ };+ };+ /** Gets a specific SQL snippet */+ SnippetsController_getSnippet: {+ parameters: {+ path: {+ id: string;+ };+ };+ responses: {+ 200: {+ content: {+ "application/json": components["schemas"]["SnippetResponse"];+ };+ };+ /** @description Failed to retrieve SQL snippet */+ 500: never;+ };+ };}