The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
feat: update mgmt api docs (#34554)
github-actions[bot]27af14442630
diff --git a/apps/docs/spec/api_v1_openapi.json b/apps/docs/spec/api_v1_openapi.jsonindex d59d1aa5cb5..370f302ea3d 100644--- a/apps/docs/spec/api_v1_openapi.json+++ b/apps/docs/spec/api_v1_openapi.json@@ -93,6 +93,29 @@"security": [{ "bearer": [] }]}},+ "/v1/branches/{branch_id}/merge": {+ "post": {+ "operationId": "v1-merge-a-branch",+ "summary": "Merges a database branch",+ "description": "Merges the specified database branch",+ "parameters": [+ { "name": "branch_id", "required": true, "in": "path", "schema": { "type": "string" } }+ ],+ "responses": {+ "201": {+ "description": "",+ "content": {+ "application/json": {+ "schema": { "$ref": "#/components/schemas/BranchUpdateResponse" }+ }+ }+ },+ "500": { "description": "Failed to merge database branch" }+ },+ "tags": ["Environments"],+ "security": [{ "bearer": [] }]+ }+ },"/v1/branches/{branch_id}/reset": {"post": {"operationId": "v1-reset-a-branch",@@ -891,7 +914,7 @@"required": true,"content": {"application/json": {- "schema": { "$ref": "#/components/schemas/UpdatePostgrestConfigBody" }+ "schema": { "$ref": "#/components/schemas/V1UpdatePostgrestConfigBody" }}}},@@ -2157,6 +2180,48 @@"security": [{ "bearer": [] }]}},+ "/v1/projects/{ref}/database/migrations": {+ "get": {+ "operationId": "v1-list-migrations",+ "summary": "[Beta] List applied migration versions",+ "description": "Only available to selected partner OAuth apps",+ "parameters": [+ { "name": "ref", "required": true, "in": "path", "schema": { "type": "string" } }+ ],+ "responses": {+ "200": {+ "description": "",+ "content": {+ "application/json": {+ "schema": { "$ref": "#/components/schemas/V1ListMigrationsResponse" }+ }+ }+ },+ "403": { "description": "" },+ "500": { "description": "Failed to list database migrations" }+ },+ "tags": ["Database"],+ "security": [{ "bearer": [] }]+ },+ "post": {+ "operationId": "v1-apply-a-migration",+ "summary": "[Beta] Apply a database migration",+ "description": "Only available to selected partner OAuth apps",+ "parameters": [+ { "name": "ref", "required": true, "in": "path", "schema": { "type": "string" } }+ ],+ "responses": {+ "200": {+ "description": "",+ "content": { "application/json": { "schema": { "type": "object" } } }+ },+ "403": { "description": "" },+ "500": { "description": "Failed to apply database migration" }+ },+ "tags": ["Database"],+ "security": [{ "bearer": [] }]+ }+ },"/v1/projects/{ref}/database/query": {"post": {"operationId": "v1-run-a-query",@@ -3129,7 +3194,6 @@"redirect_uri": { "type": "string" },"refresh_token": { "type": "string" }},- "required": ["grant_type"],"additionalProperties": false},"OAuthTokenResponse": {@@ -3303,6 +3367,7 @@"desired_instance_size": {"type": "string","enum": [+ "pico","nano","micro","small",@@ -3325,7 +3390,8 @@"type": "string","enum": ["15", "17-oriole"],"description": "Postgres engine version. If not provided, the latest version will be used."- }+ },+ "secrets": { "type": "object", "additionalProperties": { "type": "string" } }},"required": ["branch_name"]},@@ -3484,7 +3550,7 @@},"required": ["db_schema", "max_rows", "db_extra_search_path", "db_pool"]},- "UpdatePostgrestConfigBody": {+ "V1UpdatePostgrestConfigBody": {"type": "object","properties": {"db_extra_search_path": { "type": "string" },@@ -4815,6 +4881,17 @@"result": { "type": "array", "items": { "type": "object" } }}},+ "V1ListMigrationsResponse": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "version": { "type": "string", "minLength": 1 },+ "name": { "type": "string" }+ },+ "required": ["version"]+ }+ },"V1RunQueryBody": {"type": "object","properties": { "query": { "type": "string", "minLength": 1 } },diff --git a/apps/docs/spec/transforms/api_v1_openapi_deparsed.json b/apps/docs/spec/transforms/api_v1_openapi_deparsed.jsonindex 3409b72a991..9815cec79d5 100644--- a/apps/docs/spec/transforms/api_v1_openapi_deparsed.json+++ b/apps/docs/spec/transforms/api_v1_openapi_deparsed.json@@ -374,6 +374,54 @@]}},+ "/v1/branches/{branch_id}/merge": {+ "post": {+ "operationId": "v1-merge-a-branch",+ "summary": "Merges a database branch",+ "description": "Merges the specified database branch",+ "parameters": [+ {+ "name": "branch_id",+ "required": true,+ "in": "path",+ "schema": {+ "type": "string"+ }+ }+ ],+ "responses": {+ "201": {+ "description": "",+ "content": {+ "application/json": {+ "schema": {+ "type": "object",+ "properties": {+ "workflow_run_id": {+ "type": "string"+ },+ "message": {+ "type": "string",+ "enum": ["ok"]+ }+ },+ "required": ["workflow_run_id", "message"]+ }+ }+ }+ },+ "500": {+ "description": "Failed to merge database branch"+ }+ },+ "tags": ["Environments"],+ "security": [+ {+ "bearer": []+ }+ ]+ }+ },"/v1/branches/{branch_id}/reset": {"post": {"operationId": "v1-reset-a-branch",@@ -874,7 +922,6 @@"type": "string"}},- "required": ["grant_type"],"additionalProperties": false}}@@ -1952,6 +1999,7 @@"desired_instance_size": {"type": "string","enum": [+ "pico","nano","micro","small",@@ -1974,6 +2022,12 @@"type": "string","enum": ["15", "17-oriole"],"description": "Postgres engine version. If not provided, the latest version will be used."+ },+ "secrets": {+ "type": "object",+ "additionalProperties": {+ "type": "string"+ }}},"required": ["branch_name"]@@ -9154,6 +9208,99 @@]}},+ "/v1/projects/{ref}/database/migrations": {+ "get": {+ "operationId": "v1-list-migrations",+ "summary": "[Beta] List applied migration versions",+ "description": "Only available to selected partner OAuth apps",+ "parameters": [+ {+ "name": "ref",+ "required": true,+ "in": "path",+ "schema": {+ "type": "string"+ }+ }+ ],+ "responses": {+ "200": {+ "description": "",+ "content": {+ "application/json": {+ "schema": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "version": {+ "type": "string",+ "minLength": 1+ },+ "name": {+ "type": "string"+ }+ },+ "required": ["version"]+ }+ }+ }+ }+ },+ "403": {+ "description": ""+ },+ "500": {+ "description": "Failed to list database migrations"+ }+ },+ "tags": ["Database"],+ "security": [+ {+ "bearer": []+ }+ ]+ },+ "post": {+ "operationId": "v1-apply-a-migration",+ "summary": "[Beta] Apply a database migration",+ "description": "Only available to selected partner OAuth apps",+ "parameters": [+ {+ "name": "ref",+ "required": true,+ "in": "path",+ "schema": {+ "type": "string"+ }+ }+ ],+ "responses": {+ "200": {+ "description": "",+ "content": {+ "application/json": {+ "schema": {+ "type": "object"+ }+ }+ }+ },+ "403": {+ "description": ""+ },+ "500": {+ "description": "Failed to apply database migration"+ }+ },+ "tags": ["Database"],+ "security": [+ {+ "bearer": []+ }+ ]+ }+ },"/v1/projects/{ref}/database/query": {"post": {"operationId": "v1-run-a-query",@@ -11846,7 +11993,6 @@"type": "string"}},- "required": ["grant_type"],"additionalProperties": false},"OAuthTokenResponse": {@@ -12313,6 +12459,7 @@"desired_instance_size": {"type": "string","enum": [+ "pico","nano","micro","small",@@ -12335,6 +12482,12 @@"type": "string","enum": ["15", "17-oriole"],"description": "Postgres engine version. If not provided, the latest version will be used."+ },+ "secrets": {+ "type": "object",+ "additionalProperties": {+ "type": "string"+ }}},"required": ["branch_name"]@@ -12859,7 +13012,7 @@},"required": ["db_schema", "max_rows", "db_extra_search_path", "db_pool"]},- "UpdatePostgrestConfigBody": {+ "V1UpdatePostgrestConfigBody": {"type": "object","properties": {"db_extra_search_path": {@@ -15648,6 +15801,22 @@}}},+ "V1ListMigrationsResponse": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "version": {+ "type": "string",+ "minLength": 1+ },+ "name": {+ "type": "string"+ }+ },+ "required": ["version"]+ }+ },"V1RunQueryBody": {"type": "object","properties": {