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 (#32732)
github-actions[bot]7a0871b9ceab
diff --git a/apps/docs/spec/api_v1_openapi.json b/apps/docs/spec/api_v1_openapi.jsonindex 5ecb7b3a1a1..808f2c415a9 100644--- a/apps/docs/spec/api_v1_openapi.json+++ b/apps/docs/spec/api_v1_openapi.json@@ -2061,6 +2061,95 @@"security": [{ "bearer": [] }]}},+ "/v1/projects/{ref}/restore": {+ "get": {+ "operationId": "v1-list-available-restore-versions",+ "summary": "Lists available restore versions for the given project",+ "parameters": [+ { "name": "ref", "required": true, "in": "path", "schema": { "type": "string" } }+ ],+ "responses": {+ "200": {+ "description": "",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/GetProjectAvailableRestoreVersionsResponse"+ }+ }+ }+ },+ "403": { "description": "" }+ },+ "tags": ["Projects"],+ "security": [{ "bearer": [] }]+ },+ "post": {+ "operationId": "v1-restore-a-project",+ "summary": "Restores the given project",+ "parameters": [+ { "name": "ref", "required": true, "in": "path", "schema": { "type": "string" } }+ ],+ "requestBody": {+ "required": true,+ "content": {+ "application/json": {+ "schema": { "$ref": "#/components/schemas/RestoreProjectBodyDto" }+ }+ }+ },+ "responses": { "200": { "description": "" }, "403": { "description": "" } },+ "tags": ["Projects"],+ "security": [{ "bearer": [] }]+ }+ },+ "/v1/projects/{ref}/restore/cancel": {+ "post": {+ "operationId": "v1-cancel-a-project-restoration",+ "summary": "Cancels the given project restoration",+ "parameters": [+ { "name": "ref", "required": true, "in": "path", "schema": { "type": "string" } }+ ],+ "responses": { "200": { "description": "" }, "403": { "description": "" } },+ "tags": ["Projects"],+ "security": [{ "bearer": [] }]+ }+ },+ "/v1/projects/{ref}/analytics/endpoints/logs.all": {+ "get": {+ "operationId": "getLogs",+ "summary": "Gets project's logs",+ "parameters": [+ {+ "name": "iso_timestamp_end",+ "required": false,+ "in": "query",+ "schema": { "type": "string" }+ },+ {+ "name": "iso_timestamp_start",+ "required": false,+ "in": "query",+ "schema": { "type": "string" }+ },+ { "name": "sql", "required": false, "in": "query", "schema": { "type": "string" } },+ { "name": "ref", "required": true, "in": "path", "schema": { "type": "string" } }+ ],+ "responses": {+ "200": {+ "description": "",+ "content": {+ "application/json": {+ "schema": { "$ref": "#/components/schemas/V1AnalyticsResponse" }+ }+ }+ },+ "403": { "description": "" }+ },+ "tags": ["Analytics"],+ "security": [{ "bearer": [] }]+ }+ },"/v1/projects/{ref}/database/query": {"post": {"operationId": "v1-run-a-query",@@ -2711,43 +2800,43 @@"BranchDetailResponse": {"type": "object","properties": {- "db_port": { "type": "integer" },- "ref": { "type": "string" },- "postgres_version": { "type": "string" },- "postgres_engine": { "type": "string" },- "release_channel": { "type": "string" },"status": {+ "type": "string","enum": [+ "INACTIVE","ACTIVE_HEALTHY","ACTIVE_UNHEALTHY","COMING_UP",+ "UNKNOWN","GOING_DOWN",- "INACTIVE","INIT_FAILED","REMOVED",- "RESTARTING",- "UNKNOWN",+ "RESTORING","UPGRADING","PAUSING",- "RESTORING","RESTORE_FAILED",+ "RESTARTING","PAUSE_FAILED","RESIZING"- ],- "type": "string"+ ]},+ "db_port": { "type": "integer" },+ "ref": { "type": "string" },+ "postgres_version": { "type": "string" },+ "postgres_engine": { "type": "string" },+ "release_channel": { "type": "string" },"db_host": { "type": "string" },"db_user": { "type": "string" },"db_pass": { "type": "string" },"jwt_secret": { "type": "string" }},"required": [+ "status","db_port","ref","postgres_version","postgres_engine","release_channel",- "status","db_host"]},@@ -2763,6 +2852,7 @@"git_branch": { "type": "string" },"persistent": { "type": "boolean" },"status": {+ "type": "string","enum": ["CREATING_PROJECT","RUNNING_MIGRATIONS",@@ -2770,8 +2860,7 @@"MIGRATIONS_FAILED","FUNCTIONS_DEPLOYED","FUNCTIONS_FAILED"- ],- "type": "string"+ ]}}},@@ -2784,14 +2873,8 @@"deprecated": true,"description": "This field is deprecated and will not be populated."},- "id": { "type": "string" },- "name": { "type": "string" },- "project_ref": { "type": "string" },- "parent_project_ref": { "type": "string" },- "is_default": { "type": "boolean" },- "git_branch": { "type": "string" },- "persistent": { "type": "boolean" },"status": {+ "type": "string","enum": ["CREATING_PROJECT","RUNNING_MIGRATIONS",@@ -2799,20 +2882,26 @@"MIGRATIONS_FAILED","FUNCTIONS_DEPLOYED","FUNCTIONS_FAILED"- ],- "type": "string"+ ]},+ "id": { "type": "string" },+ "name": { "type": "string" },+ "project_ref": { "type": "string" },+ "parent_project_ref": { "type": "string" },+ "is_default": { "type": "boolean" },+ "git_branch": { "type": "string" },+ "persistent": { "type": "boolean" },"created_at": { "type": "string" },"updated_at": { "type": "string" }},"required": [+ "status","id","name","project_ref","parent_project_ref","is_default","persistent",- "status","created_at","updated_at"]@@ -2853,29 +2942,29 @@"description": "Creation timestamp","example": "2023-03-29T16:32:59Z"},- "database": { "$ref": "#/components/schemas/V1DatabaseResponse" },"status": {+ "type": "string","enum": [+ "INACTIVE","ACTIVE_HEALTHY","ACTIVE_UNHEALTHY","COMING_UP",+ "UNKNOWN","GOING_DOWN",- "INACTIVE","INIT_FAILED","REMOVED",- "RESTARTING",- "UNKNOWN",+ "RESTORING","UPGRADING","PAUSING",- "RESTORING","RESTORE_FAILED",+ "RESTARTING","PAUSE_FAILED","RESIZING"- ],- "type": "string"- }+ ]+ },+ "database": { "$ref": "#/components/schemas/V1DatabaseResponse" }},- "required": ["id", "organization_id", "name", "region", "created_at", "database", "status"]+ "required": ["id", "organization_id", "name", "region", "created_at", "status", "database"]},"V1CreateProjectBodyDto": {"type": "object",@@ -2970,24 +3059,24 @@"example": "2023-03-29T16:32:59Z"},"status": {+ "type": "string","enum": [+ "INACTIVE","ACTIVE_HEALTHY","ACTIVE_UNHEALTHY","COMING_UP",+ "UNKNOWN","GOING_DOWN",- "INACTIVE","INIT_FAILED","REMOVED",- "RESTARTING",- "UNKNOWN",+ "RESTORING","UPGRADING","PAUSING",- "RESTORING","RESTORE_FAILED",+ "RESTARTING","PAUSE_FAILED","RESIZING"- ],- "type": "string"+ ]}},"required": ["id", "organization_id", "name", "region", "created_at", "status"]@@ -3061,7 +3150,7 @@"type": { "type": "string", "enum": ["sql"] },"visibility": { "type": "string", "enum": ["user", "project", "org", "public"] },"name": { "type": "string" },- "description": { "type": "string" },+ "description": { "type": "string", "nullable": true },"project": { "$ref": "#/components/schemas/SnippetProject" },"owner": { "$ref": "#/components/schemas/SnippetUser" },"updated_by": { "$ref": "#/components/schemas/SnippetUser" }@@ -3073,6 +3162,7 @@"type","visibility","name",+ "description","project","owner","updated_by"@@ -3104,7 +3194,7 @@"type": { "type": "string", "enum": ["sql"] },"visibility": { "enum": ["user", "project", "org", "public"], "type": "string" },"name": { "type": "string" },- "description": { "type": "string" },+ "description": { "type": "string", "nullable": true },"project": { "$ref": "#/components/schemas/SnippetProject" },"owner": { "$ref": "#/components/schemas/SnippetUser" },"updated_by": { "$ref": "#/components/schemas/SnippetUser" },@@ -3117,6 +3207,7 @@"type","visibility","name",+ "description","project","owner","updated_by",@@ -3627,14 +3718,20 @@"properties": { "enabled": { "type": "boolean" } },"required": ["enabled"]},+ "StorageFeatureS3Protocol": {+ "type": "object",+ "properties": { "enabled": { "type": "boolean" } },+ "required": ["enabled"]+ },"StorageFeatures": {"type": "object","properties": {"imageTransformation": {"$ref": "#/components/schemas/StorageFeatureImageTransformation"- }+ },+ "s3Protocol": { "$ref": "#/components/schemas/StorageFeatureS3Protocol" }},- "required": ["imageTransformation"]+ "required": ["imageTransformation", "s3Protocol"]},"StorageConfigResponse": {"type": "object",@@ -3724,11 +3821,11 @@"SupavisorConfigResponse": {"type": "object","properties": {+ "database_type": { "type": "string", "enum": ["PRIMARY", "READ_REPLICA"] },"db_port": { "type": "integer" },"default_pool_size": { "type": "integer", "nullable": true },"max_client_conn": { "type": "integer", "nullable": true },"identifier": { "type": "string" },- "database_type": { "enum": ["PRIMARY", "READ_REPLICA"], "type": "string" },"is_using_scram_auth": { "type": "boolean" },"db_user": { "type": "string" },"db_host": { "type": "string" },@@ -3737,11 +3834,11 @@"pool_mode": { "enum": ["transaction", "session"], "type": "string" }},"required": [+ "database_type","db_port","default_pool_size","max_client_conn","identifier",- "database_type","is_using_scram_auth","db_user","db_host",@@ -4337,6 +4434,73 @@},"required": ["id", "type", "inserted_at", "updated_at"]},+ "ProjectAvailableRestoreVersion": {+ "type": "object",+ "properties": {+ "version": { "type": "string" },+ "release_channel": {+ "type": "string",+ "enum": ["internal", "alpha", "beta", "ga", "withdrawn", "preview"]+ },+ "postgres_engine": { "type": "string", "enum": ["13", "14", "15", "17-oriole"] }+ },+ "required": ["version", "release_channel", "postgres_engine"]+ },+ "GetProjectAvailableRestoreVersionsResponse": {+ "type": "object",+ "properties": {+ "available_versions": {+ "type": "array",+ "items": { "$ref": "#/components/schemas/ProjectAvailableRestoreVersion" }+ }+ },+ "required": ["available_versions"]+ },+ "RestoreProjectBodyDto": {+ "type": "object",+ "properties": {+ "release_channel": {+ "type": "string",+ "enum": ["internal", "alpha", "beta", "ga", "withdrawn", "preview"],+ "description": "Release channel version. If not provided, GeneralAvailability will be used."+ },+ "postgres_engine": {+ "type": "string",+ "enum": ["15", "17-oriole"],+ "description": "Postgres engine version. If not provided, the latest version from the given release channel will be used."+ }+ }+ },+ "V1AnalyticsResponse": {+ "type": "object",+ "properties": {+ "error": {+ "oneOf": [+ {+ "properties": {+ "code": { "type": "number" },+ "errors": {+ "type": "array",+ "items": {+ "properties": {+ "domain": { "type": "string" },+ "location": { "type": "string" },+ "locationType": { "type": "string" },+ "message": { "type": "string" },+ "reason": { "type": "string" }+ }+ }+ },+ "message": { "type": "string" },+ "status": { "type": "string" }+ }+ },+ { "type": "string" }+ ]+ },+ "result": { "type": "array", "items": { "type": "object" } }+ }+ },"V1RunQueryBody": {"type": "object","properties": { "query": { "type": "string" } },diff --git a/apps/docs/spec/common-api-sections.json b/apps/docs/spec/common-api-sections.jsonindex 821e282f141..5c82c7615df 100644--- a/apps/docs/spec/common-api-sections.json+++ b/apps/docs/spec/common-api-sections.json@@ -375,6 +375,12 @@"type": "category","title": "Projects","items": [+ {+ "id": "v1-cancel-a-project-restoration",+ "title": "Cancel a project restoration",+ "slug": "v1-cancel-a-project-restoration",+ "type": "operation"+ },{"id": "v1-create-a-project","title": "Create a project",@@ -435,12 +441,24 @@"slug": "v1-list-all-projects","type": "operation"},+ {+ "id": "v1-list-available-restore-versions",+ "title": "List available restore versions",+ "slug": "v1-list-available-restore-versions",+ "type": "operation"+ },{"id": "v1-pause-a-project","title": "Pause a project","slug": "v1-pause-a-project","type": "operation"},+ {+ "id": "v1-restore-a-project",+ "title": "Restore a project",+ "slug": "v1-restore-a-project",+ "type": "operation"+ },{"id": "v1-update-network-restrictions","title": "Update network restrictions",diff --git a/apps/docs/spec/transforms/api_v1_openapi_deparsed.json b/apps/docs/spec/transforms/api_v1_openapi_deparsed.jsonindex 50b2c52dae6..45725e0d4dd 100644--- a/apps/docs/spec/transforms/api_v1_openapi_deparsed.json+++ b/apps/docs/spec/transforms/api_v1_openapi_deparsed.json@@ -78,39 +78,39 @@"schema": {"type": "object","properties": {- "db_port": {- "type": "integer"- },- "ref": {- "type": "string"- },- "postgres_version": {- "type": "string"- },- "postgres_engine": {- "type": "string"- },- "release_channel": {- "type": "string"- },"status": {+ "type": "string","enum": [+ "INACTIVE","ACTIVE_HEALTHY","ACTIVE_UNHEALTHY","COMING_UP",+ "UNKNOWN","GOING_DOWN",- "INACTIVE","INIT_FAILED","REMOVED",- "RESTARTING",- "UNKNOWN",+ "RESTORING","UPGRADING","PAUSING",- "RESTORING","RESTORE_FAILED",+ "RESTARTING","PAUSE_FAILED","RESIZING"- ],+ ]+ },+ "db_port": {+ "type": "integer"+ },+ "ref": {+ "type": "string"+ },+ "postgres_version": {+ "type": "string"+ },+ "postgres_engine": {+ "type": "string"+ },+ "release_channel": {"type": "string"},"db_host": {@@ -127,12 +127,12 @@}},"required": [+ "status","db_port","ref","postgres_version","postgres_engine","release_channel",- "status","db_host"]}@@ -187,6 +187,7 @@"type": "boolean"},"status": {+ "type": "string","enum": ["CREATING_PROJECT","RUNNING_MIGRATIONS",@@ -194,8 +195,7 @@"MIGRATIONS_FAILED","FUNCTIONS_DEPLOYED","FUNCTIONS_FAILED"- ],- "type": "string"+ ]}}}@@ -219,6 +219,17 @@"deprecated": true,"description": "This field is deprecated and will not be populated."},+ "status": {+ "type": "string",+ "enum": [+ "CREATING_PROJECT",+ "RUNNING_MIGRATIONS",+ "MIGRATIONS_PASSED",+ "MIGRATIONS_FAILED",+ "FUNCTIONS_DEPLOYED",+ "FUNCTIONS_FAILED"+ ]+ },"id": {"type": "string"},@@ -240,17 +251,6 @@"persistent": {"type": "boolean"},- "status": {- "enum": [- "CREATING_PROJECT",- "RUNNING_MIGRATIONS",- "MIGRATIONS_PASSED",- "MIGRATIONS_FAILED",- "FUNCTIONS_DEPLOYED",- "FUNCTIONS_FAILED"- ],- "type": "string"- },"created_at": {"type": "string"},@@ -259,13 +259,13 @@}},"required": [+ "status","id","name","project_ref","parent_project_ref","is_default","persistent",- "status","created_at","updated_at"]@@ -462,6 +462,26 @@"description": "Creation timestamp","example": "2023-03-29T16:32:59Z"},+ "status": {+ "type": "string",+ "enum": [+ "INACTIVE",+ "ACTIVE_HEALTHY",+ "ACTIVE_UNHEALTHY",+ "COMING_UP",+ "UNKNOWN",+ "GOING_DOWN",+ "INIT_FAILED",+ "REMOVED",+ "RESTORING",+ "UPGRADING",+ "PAUSING",+ "RESTORE_FAILED",+ "RESTARTING",+ "PAUSE_FAILED",+ "RESIZING"+ ]+ },"database": {"type": "object","properties": {@@ -483,26 +503,6 @@}},"required": ["host", "version", "postgres_engine", "release_channel"]- },- "status": {- "enum": [- "ACTIVE_HEALTHY",- "ACTIVE_UNHEALTHY",- "COMING_UP",- "GOING_DOWN",- "INACTIVE",- "INIT_FAILED",- "REMOVED",- "RESTARTING",- "UNKNOWN",- "UPGRADING",- "PAUSING",- "RESTORING",- "RESTORE_FAILED",- "PAUSE_FAILED",- "RESIZING"- ],- "type": "string"}},"required": [@@ -511,8 +511,8 @@"name","region","created_at",- "database",- "status"+ "status",+ "database"]}}@@ -654,24 +654,24 @@"example": "2023-03-29T16:32:59Z"},"status": {+ "type": "string","enum": [+ "INACTIVE","ACTIVE_HEALTHY","ACTIVE_UNHEALTHY","COMING_UP",+ "UNKNOWN","GOING_DOWN",- "INACTIVE","INIT_FAILED","REMOVED",- "RESTARTING",- "UNKNOWN",+ "RESTORING","UPGRADING","PAUSING",- "RESTORING","RESTORE_FAILED",+ "RESTARTING","PAUSE_FAILED","RESIZING"- ],- "type": "string"+ ]}},"required": ["id", "organization_id", "name", "region", "created_at", "status"]@@ -1069,7 +1069,8 @@"type": "string"},"description": {- "type": "string"+ "type": "string",+ "nullable": true},"project": {"type": "object",@@ -1118,6 +1119,7 @@"type","visibility","name",+ "description","project","owner","updated_by"@@ -1189,7 +1191,8 @@"type": "string"},"description": {- "type": "string"+ "type": "string",+ "nullable": true},"project": {"type": "object",@@ -1253,6 +1256,7 @@"type","visibility","name",+ "description","project","owner","updated_by",@@ -1885,6 +1889,17 @@"deprecated": true,"description": "This field is deprecated and will not be populated."},+ "status": {+ "type": "string",+ "enum": [+ "CREATING_PROJECT",+ "RUNNING_MIGRATIONS",+ "MIGRATIONS_PASSED",+ "MIGRATIONS_FAILED",+ "FUNCTIONS_DEPLOYED",+ "FUNCTIONS_FAILED"+ ]+ },"id": {"type": "string"},@@ -1906,17 +1921,6 @@"persistent": {"type": "boolean"},- "status": {- "enum": [- "CREATING_PROJECT",- "RUNNING_MIGRATIONS",- "MIGRATIONS_PASSED",- "MIGRATIONS_FAILED",- "FUNCTIONS_DEPLOYED",- "FUNCTIONS_FAILED"- ],- "type": "string"- },"created_at": {"type": "string"},@@ -1925,13 +1929,13 @@}},"required": [+ "status","id","name","project_ref","parent_project_ref","is_default","persistent",- "status","created_at","updated_at"]@@ -2034,6 +2038,17 @@"deprecated": true,"description": "This field is deprecated and will not be populated."},+ "status": {+ "type": "string",+ "enum": [+ "CREATING_PROJECT",+ "RUNNING_MIGRATIONS",+ "MIGRATIONS_PASSED",+ "MIGRATIONS_FAILED",+ "FUNCTIONS_DEPLOYED",+ "FUNCTIONS_FAILED"+ ]+ },"id": {"type": "string"},@@ -2055,17 +2070,6 @@"persistent": {"type": "boolean"},- "status": {- "enum": [- "CREATING_PROJECT",- "RUNNING_MIGRATIONS",- "MIGRATIONS_PASSED",- "MIGRATIONS_FAILED",- "FUNCTIONS_DEPLOYED",- "FUNCTIONS_FAILED"- ],- "type": "string"- },"created_at": {"type": "string"},@@ -2074,13 +2078,13 @@}},"required": [+ "status","id","name","project_ref","parent_project_ref","is_default","persistent",- "status","created_at","updated_at"]@@ -3445,6 +3449,26 @@"description": "Creation timestamp","example": "2023-03-29T16:32:59Z"},+ "status": {+ "type": "string",+ "enum": [+ "INACTIVE",+ "ACTIVE_HEALTHY",+ "ACTIVE_UNHEALTHY",+ "COMING_UP",+ "UNKNOWN",+ "GOING_DOWN",+ "INIT_FAILED",+ "REMOVED",+ "RESTORING",+ "UPGRADING",+ "PAUSING",+ "RESTORE_FAILED",+ "RESTARTING",+ "PAUSE_FAILED",+ "RESIZING"+ ]+ },"database": {"type": "object","properties": {@@ -3466,26 +3490,6 @@}},"required": ["host", "version", "postgres_engine", "release_channel"]- },- "status": {- "enum": [- "ACTIVE_HEALTHY",- "ACTIVE_UNHEALTHY",- "COMING_UP",- "GOING_DOWN",- "INACTIVE",- "INIT_FAILED",- "REMOVED",- "RESTARTING",- "UNKNOWN",- "UPGRADING",- "PAUSING",- "RESTORING",- "RESTORE_FAILED",- "PAUSE_FAILED",- "RESIZING"- ],- "type": "string"}},"required": [@@ -3494,8 +3498,8 @@"name","region","created_at",- "database",- "status"+ "status",+ "database"]}}@@ -4801,9 +4805,18 @@}},"required": ["enabled"]+ },+ "s3Protocol": {+ "type": "object",+ "properties": {+ "enabled": {+ "type": "boolean"+ }+ },+ "required": ["enabled"]}},- "required": ["imageTransformation"]+ "required": ["imageTransformation", "s3Protocol"]}},"required": ["fileSizeLimit", "features"]@@ -4865,9 +4878,18 @@}},"required": ["enabled"]+ },+ "s3Protocol": {+ "type": "object",+ "properties": {+ "enabled": {+ "type": "boolean"+ }+ },+ "required": ["enabled"]}},- "required": ["imageTransformation"]+ "required": ["imageTransformation", "s3Protocol"]}}}@@ -5310,6 +5332,10 @@"items": {"type": "object","properties": {+ "database_type": {+ "type": "string",+ "enum": ["PRIMARY", "READ_REPLICA"]+ },"db_port": {"type": "integer"},@@ -5324,10 +5350,6 @@"identifier": {"type": "string"},- "database_type": {- "enum": ["PRIMARY", "READ_REPLICA"],- "type": "string"- },"is_using_scram_auth": {"type": "boolean"},@@ -5349,11 +5371,11 @@}},"required": [+ "database_type","db_port","default_pool_size","max_client_conn","identifier",- "database_type","is_using_scram_auth","db_user","db_host",@@ -8176,30 +8198,281 @@]}},- "/v1/projects/{ref}/database/query": {- "post": {- "operationId": "v1-run-a-query",- "summary": "[Beta] Run sql query",+ "/v1/projects/{ref}/restore": {+ "get": {+ "operationId": "v1-list-available-restore-versions",+ "summary": "Lists available restore versions for the given project","parameters": [{"name": "ref","required": true,"in": "path",- "description": "Project ref","schema": {- "minLength": 20,- "maxLength": 20,"type": "string"}}],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": {- "type": "object",- "properties": {+ "responses": {+ "200": {+ "description": "",+ "content": {+ "application/json": {+ "schema": {+ "type": "object",+ "properties": {+ "available_versions": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "version": {+ "type": "string"+ },+ "release_channel": {+ "type": "string",+ "enum": ["internal", "alpha", "beta", "ga", "withdrawn", "preview"]+ },+ "postgres_engine": {+ "type": "string",+ "enum": ["13", "14", "15", "17-oriole"]+ }+ },+ "required": ["version", "release_channel", "postgres_engine"]+ }+ }+ },+ "required": ["available_versions"]+ }+ }+ }+ },+ "403": {+ "description": ""+ }+ },+ "tags": ["Projects"],+ "security": [+ {+ "bearer": []+ }+ ]+ },+ "post": {+ "operationId": "v1-restore-a-project",+ "summary": "Restores the given project",+ "parameters": [+ {+ "name": "ref",+ "required": true,+ "in": "path",+ "schema": {+ "type": "string"+ }+ }+ ],+ "requestBody": {+ "required": true,+ "content": {+ "application/json": {+ "schema": {+ "type": "object",+ "properties": {+ "release_channel": {+ "type": "string",+ "enum": ["internal", "alpha", "beta", "ga", "withdrawn", "preview"],+ "description": "Release channel version. If not provided, GeneralAvailability will be used."+ },+ "postgres_engine": {+ "type": "string",+ "enum": ["15", "17-oriole"],+ "description": "Postgres engine version. If not provided, the latest version from the given release channel will be used."+ }+ }+ }+ }+ }+ },+ "responses": {+ "200": {+ "description": ""+ },+ "403": {+ "description": ""+ }+ },+ "tags": ["Projects"],+ "security": [+ {+ "bearer": []+ }+ ]+ }+ },+ "/v1/projects/{ref}/restore/cancel": {+ "post": {+ "operationId": "v1-cancel-a-project-restoration",+ "summary": "Cancels the given project restoration",+ "parameters": [+ {+ "name": "ref",+ "required": true,+ "in": "path",+ "schema": {+ "type": "string"+ }+ }+ ],+ "responses": {+ "200": {+ "description": ""+ },+ "403": {+ "description": ""+ }+ },+ "tags": ["Projects"],+ "security": [+ {+ "bearer": []+ }+ ]+ }+ },+ "/v1/projects/{ref}/analytics/endpoints/logs.all": {+ "get": {+ "operationId": "getLogs",+ "summary": "Gets project's logs",+ "parameters": [+ {+ "name": "iso_timestamp_end",+ "required": false,+ "in": "query",+ "schema": {+ "type": "string"+ }+ },+ {+ "name": "iso_timestamp_start",+ "required": false,+ "in": "query",+ "schema": {+ "type": "string"+ }+ },+ {+ "name": "sql",+ "required": false,+ "in": "query",+ "schema": {+ "type": "string"+ }+ },+ {+ "name": "ref",+ "required": true,+ "in": "path",+ "schema": {+ "type": "string"+ }+ }+ ],+ "responses": {+ "200": {+ "description": "",+ "content": {+ "application/json": {+ "schema": {+ "type": "object",+ "properties": {+ "error": {+ "oneOf": [+ {+ "properties": {+ "code": {+ "type": "number"+ },+ "errors": {+ "type": "array",+ "items": {+ "properties": {+ "domain": {+ "type": "string"+ },+ "location": {+ "type": "string"+ },+ "locationType": {+ "type": "string"+ },+ "message": {+ "type": "string"+ },+ "reason": {+ "type": "string"+ }+ }+ }+ },+ "message": {+ "type": "string"+ },+ "status": {+ "type": "string"+ }+ }+ },+ {+ "type": "string"+ }+ ]+ },+ "result": {+ "type": "array",+ "items": {+ "type": "object"+ }+ }+ }+ }+ }+ }+ },+ "403": {+ "description": ""+ }+ },+ "tags": ["Analytics"],+ "security": [+ {+ "bearer": []+ }+ ]+ }+ },+ "/v1/projects/{ref}/database/query": {+ "post": {+ "operationId": "v1-run-a-query",+ "summary": "[Beta] Run sql query",+ "parameters": [+ {+ "name": "ref",+ "required": true,+ "in": "path",+ "description": "Project ref",+ "schema": {+ "minLength": 20,+ "maxLength": 20,+ "type": "string"+ }+ }+ ],+ "requestBody": {+ "required": true,+ "content": {+ "application/json": {+ "schema": {+ "type": "object",+ "properties": {"query": {"type": "string"}@@ -10166,39 +10439,39 @@"BranchDetailResponse": {"type": "object","properties": {- "db_port": {- "type": "integer"- },- "ref": {- "type": "string"- },- "postgres_version": {- "type": "string"- },- "postgres_engine": {- "type": "string"- },- "release_channel": {- "type": "string"- },"status": {+ "type": "string","enum": [+ "INACTIVE","ACTIVE_HEALTHY","ACTIVE_UNHEALTHY","COMING_UP",+ "UNKNOWN","GOING_DOWN",- "INACTIVE","INIT_FAILED","REMOVED",- "RESTARTING",- "UNKNOWN",+ "RESTORING","UPGRADING","PAUSING",- "RESTORING","RESTORE_FAILED",+ "RESTARTING","PAUSE_FAILED","RESIZING"- ],+ ]+ },+ "db_port": {+ "type": "integer"+ },+ "ref": {+ "type": "string"+ },+ "postgres_version": {+ "type": "string"+ },+ "postgres_engine": {+ "type": "string"+ },+ "release_channel": {"type": "string"},"db_host": {@@ -10215,12 +10488,12 @@}},"required": [+ "status","db_port","ref","postgres_version","postgres_engine","release_channel",- "status","db_host"]},@@ -10242,6 +10515,7 @@"type": "boolean"},"status": {+ "type": "string","enum": ["CREATING_PROJECT","RUNNING_MIGRATIONS",@@ -10249,8 +10523,7 @@"MIGRATIONS_FAILED","FUNCTIONS_DEPLOYED","FUNCTIONS_FAILED"- ],- "type": "string"+ ]}}},@@ -10266,6 +10539,17 @@"deprecated": true,"description": "This field is deprecated and will not be populated."},+ "status": {+ "type": "string",+ "enum": [+ "CREATING_PROJECT",+ "RUNNING_MIGRATIONS",+ "MIGRATIONS_PASSED",+ "MIGRATIONS_FAILED",+ "FUNCTIONS_DEPLOYED",+ "FUNCTIONS_FAILED"+ ]+ },"id": {"type": "string"},@@ -10287,17 +10571,6 @@"persistent": {"type": "boolean"},- "status": {- "enum": [- "CREATING_PROJECT",- "RUNNING_MIGRATIONS",- "MIGRATIONS_PASSED",- "MIGRATIONS_FAILED",- "FUNCTIONS_DEPLOYED",- "FUNCTIONS_FAILED"- ],- "type": "string"- },"created_at": {"type": "string"},@@ -10306,13 +10579,13 @@}},"required": [+ "status","id","name","project_ref","parent_project_ref","is_default","persistent",- "status","created_at","updated_at"]@@ -10385,6 +10658,26 @@"description": "Creation timestamp","example": "2023-03-29T16:32:59Z"},+ "status": {+ "type": "string",+ "enum": [+ "INACTIVE",+ "ACTIVE_HEALTHY",+ "ACTIVE_UNHEALTHY",+ "COMING_UP",+ "UNKNOWN",+ "GOING_DOWN",+ "INIT_FAILED",+ "REMOVED",+ "RESTORING",+ "UPGRADING",+ "PAUSING",+ "RESTORE_FAILED",+ "RESTARTING",+ "PAUSE_FAILED",+ "RESIZING"+ ]+ },"database": {"type": "object","properties": {@@ -10406,29 +10699,9 @@}},"required": ["host", "version", "postgres_engine", "release_channel"]- },- "status": {- "enum": [- "ACTIVE_HEALTHY",- "ACTIVE_UNHEALTHY",- "COMING_UP",- "GOING_DOWN",- "INACTIVE",- "INIT_FAILED",- "REMOVED",- "RESTARTING",- "UNKNOWN",- "UPGRADING",- "PAUSING",- "RESTORING",- "RESTORE_FAILED",- "PAUSE_FAILED",- "RESIZING"- ],- "type": "string"}},- "required": ["id", "organization_id", "name", "region", "created_at", "database", "status"]+ "required": ["id", "organization_id", "name", "region", "created_at", "status", "database"]},"V1CreateProjectBodyDto": {"type": "object",@@ -10541,24 +10814,24 @@"example": "2023-03-29T16:32:59Z"},"status": {+ "type": "string","enum": [+ "INACTIVE","ACTIVE_HEALTHY","ACTIVE_UNHEALTHY","COMING_UP",+ "UNKNOWN","GOING_DOWN",- "INACTIVE","INIT_FAILED","REMOVED",- "RESTARTING",- "UNKNOWN",+ "RESTORING","UPGRADING","PAUSING",- "RESTORING","RESTORE_FAILED",+ "RESTARTING","PAUSE_FAILED","RESIZING"- ],- "type": "string"+ ]}},"required": ["id", "organization_id", "name", "region", "created_at", "status"]@@ -10700,7 +10973,8 @@"type": "string"},"description": {- "type": "string"+ "type": "string",+ "nullable": true},"project": {"type": "object",@@ -10749,6 +11023,7 @@"type","visibility","name",+ "description","project","owner","updated_by"@@ -10783,7 +11058,8 @@"type": "string"},"description": {- "type": "string"+ "type": "string",+ "nullable": true},"project": {"type": "object",@@ -10832,6 +11108,7 @@"type","visibility","name",+ "description","project","owner","updated_by"@@ -10883,7 +11160,8 @@"type": "string"},"description": {- "type": "string"+ "type": "string",+ "nullable": true},"project": {"type": "object",@@ -10947,6 +11225,7 @@"type","visibility","name",+ "description","project","owner","updated_by",@@ -12175,6 +12454,15 @@},"required": ["enabled"]},+ "StorageFeatureS3Protocol": {+ "type": "object",+ "properties": {+ "enabled": {+ "type": "boolean"+ }+ },+ "required": ["enabled"]+ },"StorageFeatures": {"type": "object","properties": {@@ -12186,9 +12474,18 @@}},"required": ["enabled"]+ },+ "s3Protocol": {+ "type": "object",+ "properties": {+ "enabled": {+ "type": "boolean"+ }+ },+ "required": ["enabled"]}},- "required": ["imageTransformation"]+ "required": ["imageTransformation", "s3Protocol"]},"StorageConfigResponse": {"type": "object",@@ -12208,9 +12505,18 @@}},"required": ["enabled"]+ },+ "s3Protocol": {+ "type": "object",+ "properties": {+ "enabled": {+ "type": "boolean"+ }+ },+ "required": ["enabled"]}},- "required": ["imageTransformation"]+ "required": ["imageTransformation", "s3Protocol"]}},"required": ["fileSizeLimit", "features"]@@ -12235,9 +12541,18 @@}},"required": ["enabled"]+ },+ "s3Protocol": {+ "type": "object",+ "properties": {+ "enabled": {+ "type": "boolean"+ }+ },+ "required": ["enabled"]}},- "required": ["imageTransformation"]+ "required": ["imageTransformation", "s3Protocol"]}}},@@ -12436,6 +12751,10 @@"SupavisorConfigResponse": {"type": "object","properties": {+ "database_type": {+ "type": "string",+ "enum": ["PRIMARY", "READ_REPLICA"]+ },"db_port": {"type": "integer"},@@ -12450,10 +12769,6 @@"identifier": {"type": "string"},- "database_type": {- "enum": ["PRIMARY", "READ_REPLICA"],- "type": "string"- },"is_using_scram_auth": {"type": "boolean"},@@ -12475,11 +12790,11 @@}},"required": [+ "database_type","db_port","default_pool_size","max_client_conn","identifier",- "database_type","is_using_scram_auth","db_user","db_host",@@ -13985,6 +14300,117 @@},"required": ["id", "type", "inserted_at", "updated_at"]},+ "ProjectAvailableRestoreVersion": {+ "type": "object",+ "properties": {+ "version": {+ "type": "string"+ },+ "release_channel": {+ "type": "string",+ "enum": ["internal", "alpha", "beta", "ga", "withdrawn", "preview"]+ },+ "postgres_engine": {+ "type": "string",+ "enum": ["13", "14", "15", "17-oriole"]+ }+ },+ "required": ["version", "release_channel", "postgres_engine"]+ },+ "GetProjectAvailableRestoreVersionsResponse": {+ "type": "object",+ "properties": {+ "available_versions": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "version": {+ "type": "string"+ },+ "release_channel": {+ "type": "string",+ "enum": ["internal", "alpha", "beta", "ga", "withdrawn", "preview"]+ },+ "postgres_engine": {+ "type": "string",+ "enum": ["13", "14", "15", "17-oriole"]+ }+ },+ "required": ["version", "release_channel", "postgres_engine"]+ }+ }+ },+ "required": ["available_versions"]+ },+ "RestoreProjectBodyDto": {+ "type": "object",+ "properties": {+ "release_channel": {+ "type": "string",+ "enum": ["internal", "alpha", "beta", "ga", "withdrawn", "preview"],+ "description": "Release channel version. If not provided, GeneralAvailability will be used."+ },+ "postgres_engine": {+ "type": "string",+ "enum": ["15", "17-oriole"],+ "description": "Postgres engine version. If not provided, the latest version from the given release channel will be used."+ }+ }+ },+ "V1AnalyticsResponse": {+ "type": "object",+ "properties": {+ "error": {+ "oneOf": [+ {+ "properties": {+ "code": {+ "type": "number"+ },+ "errors": {+ "type": "array",+ "items": {+ "properties": {+ "domain": {+ "type": "string"+ },+ "location": {+ "type": "string"+ },+ "locationType": {+ "type": "string"+ },+ "message": {+ "type": "string"+ },+ "reason": {+ "type": "string"+ }+ }+ }+ },+ "message": {+ "type": "string"+ },+ "status": {+ "type": "string"+ }+ }+ },+ {+ "type": "string"+ }+ ]+ },+ "result": {+ "type": "array",+ "items": {+ "type": "object"+ }+ }+ }+ },"V1RunQueryBody": {"type": "object","properties": {