Skip to content

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

feat: update mgmt api docs (#30513)

github-actions[bot]baa19e01dc26
diff --git a/apps/docs/spec/api_v1_openapi.json b/apps/docs/spec/api_v1_openapi.json
index 75df6edc0d6..6b1c9fc67bc 100644
--- a/apps/docs/spec/api_v1_openapi.json
+++ b/apps/docs/spec/api_v1_openapi.json
@@ -130,7 +130,7 @@
"application/json": {
"schema": {
"type": "array",
- "items": { "$ref": "#/components/schemas/V1ProjectResponse" }
+ "items": { "$ref": "#/components/schemas/V1ProjectWithDatabaseResponse" }
}
}
}
@@ -146,7 +146,9 @@
"requestBody": {
"required": true,
"content": {
- "application/json": { "schema": { "$ref": "#/components/schemas/V1CreateProjectBody" } }
+ "application/json": {
+ "schema": { "$ref": "#/components/schemas/V1CreateProjectBodyDto" }
+ }
}
},
"responses": {
@@ -192,7 +194,7 @@
"required": true,
"content": {
"application/json": {
- "schema": { "$ref": "#/components/schemas/CreateOrganizationBodyV1" }
+ "schema": { "$ref": "#/components/schemas/CreateOrganizationV1Dto" }
}
}
},
@@ -312,7 +314,7 @@
"operationId": "v1-get-a-snippet",
"summary": "Gets a specific SQL snippet",
"parameters": [
- { "name": "id", "required": true, "in": "path", "schema": { "type": "string" } }
+ { "name": "id", "required": true, "in": "path", "schema": { "type": "uuid" } }
],
"responses": {
"200": {
@@ -338,7 +340,8 @@
"in": "path",
"description": "Project ref",
"schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- }
+ },
+ { "name": "reveal", "required": true, "in": "query", "schema": { "type": "boolean" } }
],
"responses": {
"200": {
@@ -366,7 +369,8 @@
"in": "path",
"description": "Project ref",
"schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- }
+ },
+ { "name": "reveal", "required": true, "in": "query", "schema": { "type": "boolean" } }
],
"requestBody": {
"required": true,
@@ -398,7 +402,8 @@
"description": "Project ref",
"schema": { "minLength": 20, "maxLength": 20, "type": "string" }
},
- { "name": "id", "required": true, "in": "path", "schema": { "type": "string" } }
+ { "name": "id", "required": true, "in": "path", "schema": { "type": "string" } },
+ { "name": "reveal", "required": true, "in": "query", "schema": { "type": "boolean" } }
],
"requestBody": {
"required": true,
@@ -417,6 +422,31 @@
"tags": ["Secrets"],
"security": [{ "bearer": [] }]
},
+ "get": {
+ "operationId": "getApiKey",
+ "summary": "[Alpha] Get API key",
+ "parameters": [
+ {
+ "name": "ref",
+ "required": true,
+ "in": "path",
+ "description": "Project ref",
+ "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
+ },
+ { "name": "id", "required": true, "in": "path", "schema": { "type": "string" } },
+ { "name": "reveal", "required": true, "in": "query", "schema": { "type": "boolean" } }
+ ],
+ "responses": {
+ "200": {
+ "description": "",
+ "content": {
+ "application/json": { "schema": { "$ref": "#/components/schemas/ApiKeyResponse" } }
+ }
+ }
+ },
+ "tags": ["Secrets"],
+ "security": [{ "bearer": [] }]
+ },
"delete": {
"operationId": "deleteApiKey",
"summary": "[Alpha] Deletes an API key for the project",
@@ -428,7 +458,8 @@
"description": "Project ref",
"schema": { "minLength": 20, "maxLength": 20, "type": "string" }
},
- { "name": "id", "required": true, "in": "path", "schema": { "type": "string" } }
+ { "name": "id", "required": true, "in": "path", "schema": { "type": "string" } },
+ { "name": "reveal", "required": true, "in": "query", "schema": { "type": "boolean" } }
],
"responses": {
"200": {
@@ -940,7 +971,9 @@
"200": {
"description": "",
"content": {
- "application/json": { "schema": { "$ref": "#/components/schemas/V1ProjectResponse" } }
+ "application/json": {
+ "schema": { "$ref": "#/components/schemas/V1ProjectWithDatabaseResponse" }
+ }
}
},
"500": { "description": "Failed to retrieve project" }
@@ -2035,6 +2068,12 @@
"required": false,
"in": "query",
"schema": { "type": "string" }
+ },
+ {
+ "name": "resource_multiplier",
+ "required": false,
+ "in": "query",
+ "schema": { "type": "string" }
}
],
"requestBody": {
@@ -2178,6 +2217,12 @@
"required": false,
"in": "query",
"schema": { "type": "string" }
+ },
+ {
+ "name": "resource_multiplier",
+ "required": false,
+ "in": "query",
+ "schema": { "type": "string" }
}
],
"requestBody": {
@@ -2697,7 +2742,7 @@
},
"required": ["host", "version", "postgres_engine", "release_channel"]
},
- "V1ProjectResponse": {
+ "V1ProjectWithDatabaseResponse": {
"type": "object",
"properties": {
"id": { "type": "string", "description": "Id of your project" },
@@ -2735,33 +2780,9 @@
"type": "string"
}
},
- "required": ["id", "organization_id", "name", "region", "created_at", "status"]
- },
- "DesiredInstanceSize": {
- "type": "string",
- "enum": [
- "micro",
- "small",
- "medium",
- "large",
- "xlarge",
- "2xlarge",
- "4xlarge",
- "8xlarge",
- "12xlarge",
- "16xlarge"
- ]
+ "required": ["id", "organization_id", "name", "region", "created_at", "database", "status"]
},
- "ReleaseChannel": {
- "type": "string",
- "enum": ["internal", "alpha", "beta", "ga", "withdrawn"]
- },
- "PostgresEngine": {
- "type": "string",
- "description": "Postgres engine version. If not provided, the latest version will be used.",
- "enum": ["15"]
- },
- "V1CreateProjectBody": {
+ "V1CreateProjectBodyDto": {
"type": "object",
"properties": {
"db_pass": { "type": "string", "description": "Database password" },
@@ -2773,12 +2794,12 @@
"plan": {
"type": "string",
"enum": ["free", "pro"],
- "description": "Subscription Plan is now set on organization level and is ignored in this request",
- "example": "free",
- "deprecated": true
+ "deprecated": true,
+ "description": "Subscription Plan is now set on organization level and is ignored in this request"
},
"region": {
"type": "string",
+ "description": "Region you want your server to reside in",
"enum": [
"us-east-1",
"us-east-2",
@@ -2798,35 +2819,97 @@
"ca-central-1",
"ap-south-1",
"sa-east-1"
- ],
- "description": "Region you want your server to reside in",
- "example": "us-east-1"
+ ]
},
"kps_enabled": {
"type": "boolean",
"deprecated": true,
"description": "This field is deprecated and is ignored in this request"
},
- "desired_instance_size": { "$ref": "#/components/schemas/DesiredInstanceSize" },
+ "desired_instance_size": {
+ "type": "string",
+ "enum": [
+ "micro",
+ "small",
+ "medium",
+ "large",
+ "xlarge",
+ "2xlarge",
+ "4xlarge",
+ "8xlarge",
+ "12xlarge",
+ "16xlarge"
+ ]
+ },
"template_url": {
"type": "string",
+ "format": "uri",
"description": "Template URL used to create the project from the CLI.",
"example": "https://github.com/supabase/supabase/tree/master/examples/slack-clone/nextjs-slack-clone"
},
- "release_channel": { "$ref": "#/components/schemas/ReleaseChannel" },
- "postgres_engine": { "$ref": "#/components/schemas/PostgresEngine" }
+ "release_channel": {
+ "type": "string",
+ "enum": ["internal", "alpha", "beta", "ga", "withdrawn"],
+ "description": "Release channel. If not provided, GA will be used."
+ },
+ "postgres_engine": {
+ "type": "string",
+ "enum": ["15"],
+ "description": "Postgres engine version. If not provided, the latest version will be used."
+ }
+ },
+ "required": ["db_pass", "name", "organization_id", "region"],
+ "additionalProperties": false
+ },
+ "V1ProjectResponse": {
+ "type": "object",
+ "properties": {
+ "id": { "type": "string", "description": "Id of your project" },
+ "organization_id": { "type": "string", "description": "Slug of your organization" },
+ "name": { "type": "string", "description": "Name of your project" },
+ "region": {
+ "type": "string",
+ "description": "Region of your project",
+ "example": "us-east-1"
+ },
+ "created_at": {
+ "type": "string",
+ "description": "Creation timestamp",
+ "example": "2023-03-29T16:32:59Z"
+ },
+ "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": ["db_pass", "name", "organization_id", "region"]
+ "required": ["id", "organization_id", "name", "region", "created_at", "status"]
},
"OrganizationResponseV1": {
"type": "object",
"properties": { "id": { "type": "string" }, "name": { "type": "string" } },
"required": ["id", "name"]
},
- "CreateOrganizationBodyV1": {
+ "CreateOrganizationV1Dto": {
"type": "object",
"properties": { "name": { "type": "string" } },
- "required": ["name"]
+ "required": ["name"],
+ "additionalProperties": false
},
"OAuthTokenBody": {
"type": "object",
@@ -2945,10 +3028,14 @@
"ApiKeyResponse": {
"type": "object",
"properties": {
+ "type": {
+ "nullable": true,
+ "type": "string",
+ "enum": ["publishable", "secret", "legacy"]
+ },
"name": { "type": "string" },
"api_key": { "type": "string" },
"id": { "type": "string", "nullable": true },
- "type": { "nullable": true, "type": "object" },
"prefix": { "type": "string", "nullable": true },
"description": { "type": "string", "nullable": true },
"hash": { "type": "string", "nullable": true },
@@ -2983,6 +3070,30 @@
}
}
},
+ "DesiredInstanceSize": {
+ "type": "string",
+ "enum": [
+ "micro",
+ "small",
+ "medium",
+ "large",
+ "xlarge",
+ "2xlarge",
+ "4xlarge",
+ "8xlarge",
+ "12xlarge",
+ "16xlarge"
+ ]
+ },
+ "ReleaseChannel": {
+ "type": "string",
+ "enum": ["internal", "alpha", "beta", "ga", "withdrawn"]
+ },
+ "PostgresEngine": {
+ "type": "string",
+ "description": "Postgres engine version. If not provided, the latest version will be used.",
+ "enum": ["15"]
+ },
"CreateBranchBody": {
"type": "object",
"properties": {
@@ -4134,7 +4245,8 @@
"slug": { "type": "string", "pattern": "/^[A-Za-z0-9_-]+$/" },
"name": { "type": "string" },
"body": { "type": "string" },
- "verify_jwt": { "type": "boolean" }
+ "verify_jwt": { "type": "boolean" },
+ "resource_multiplier": { "type": "string" }
},
"required": ["slug", "name", "body"]
},
@@ -4151,7 +4263,8 @@
"verify_jwt": { "type": "boolean" },
"import_map": { "type": "boolean" },
"entrypoint_path": { "type": "string" },
- "import_map_path": { "type": "string" }
+ "import_map_path": { "type": "string" },
+ "resource_multiplier": { "type": "string" }
},
"required": ["version", "created_at", "updated_at", "id", "slug", "name", "status"]
},
@@ -4168,7 +4281,8 @@
"verify_jwt": { "type": "boolean" },
"import_map": { "type": "boolean" },
"entrypoint_path": { "type": "string" },
- "import_map_path": { "type": "string" }
+ "import_map_path": { "type": "string" },
+ "resource_multiplier": { "type": "string" }
},
"required": ["version", "created_at", "updated_at", "id", "slug", "name", "status"]
},
@@ -4177,7 +4291,8 @@
"properties": {
"name": { "type": "string" },
"body": { "type": "string" },
- "verify_jwt": { "type": "boolean" }
+ "verify_jwt": { "type": "boolean" },
+ "resource_multiplier": { "type": "string" }
}
},
"V1StorageBucketResponse": {
diff --git a/apps/docs/spec/transforms/api_v1_openapi_deparsed.json b/apps/docs/spec/transforms/api_v1_openapi_deparsed.json
index 692ac2af2b2..e5f54471530 100644
--- a/apps/docs/spec/transforms/api_v1_openapi_deparsed.json
+++ b/apps/docs/spec/transforms/api_v1_openapi_deparsed.json
@@ -458,7 +458,15 @@
"type": "string"
}
},
- "required": ["id", "organization_id", "name", "region", "created_at", "status"]
+ "required": [
+ "id",
+ "organization_id",
+ "name",
+ "region",
+ "created_at",
+ "database",
+ "status"
+ ]
}
}
}
@@ -498,12 +506,12 @@
"plan": {
"type": "string",
"enum": ["free", "pro"],
- "description": "Subscription Plan is now set on organization level and is ignored in this request",
- "example": "free",
- "deprecated": true
+ "deprecated": true,
+ "description": "Subscription Plan is now set on organization level and is ignored in this request"
},
"region": {
"type": "string",
+ "description": "Region you want your server to reside in",
"enum": [
"us-east-1",
"us-east-2",
@@ -523,9 +531,7 @@
"ca-central-1",
"ap-south-1",
"sa-east-1"
- ],
- "description": "Region you want your server to reside in",
- "example": "us-east-1"
+ ]
},
"kps_enabled": {
"type": "boolean",
@@ -549,20 +555,23 @@
},
"template_url": {
"type": "string",
+ "format": "uri",
"description": "Template URL used to create the project from the CLI.",
"example": "https://github.com/supabase/supabase/tree/master/examples/slack-clone/nextjs-slack-clone"
},
"release_channel": {
"type": "string",
- "enum": ["internal", "alpha", "beta", "ga", "withdrawn"]
+ "enum": ["internal", "alpha", "beta", "ga", "withdrawn"],
+ "description": "Release channel. If not provided, GA will be used."
},
"postgres_engine": {
"type": "string",
- "description": "Postgres engine version. If not provided, the latest version will be used.",
- "enum": ["15"]
+ "enum": ["15"],
+ "description": "Postgres engine version. If not provided, the latest version will be used."
}
},
- "required": ["db_pass", "name", "organization_id", "region"]
+ "required": ["db_pass", "name", "organization_id", "region"],
+ "additionalProperties": false
}
}
}
@@ -597,28 +606,6 @@
"description": "Creation timestamp",
"example": "2023-03-29T16:32:59Z"
},
- "database": {
- "type": "object",
- "properties": {
- "host": {
- "type": "string",
- "description": "Database host"
- },
- "version": {
- "type": "string",
- "description": "Database version"
- },
- "postgres_engine": {
- "type": "string",
- "description": "Database engine"
- },
- "release_channel": {
- "type": "string",
- "description": "Release channel"
- }
- },
- "required": ["host", "version", "postgres_engine", "release_channel"]
- },
"status": {
"enum": [
"ACTIVE_HEALTHY",
@@ -709,7 +696,8 @@
"type": "string"
}
},
- "required": ["name"]
+ "required": ["name"],
+ "additionalProperties": false
}
}
}
@@ -1039,7 +1027,7 @@
"required": true,
"in": "path",
"schema": {
- "type": "string"
+ "type": "uuid"
}
}
],
@@ -1172,6 +1160,14 @@
"maxLength": 20,
"type": "string"
}
+ },
+ {
+ "name": "reveal",
+ "required": true,
+ "in": "query",
+ "schema": {
+ "type": "boolean"
+ }
}
],
"responses": {
@@ -1184,6 +1180,11 @@
"items": {
"type": "object",
"properties": {
+ "type": {
+ "nullable": true,
+ "type": "string",
+ "enum": ["publishable", "secret", "legacy"]
+ },
"name": {
"type": "string"
},
@@ -1194,10 +1195,6 @@
"type": "string",
"nullable": true
},
- "type": {
- "nullable": true,
- "type": "object"
- },
"prefix": {
"type": "string",
"nullable": true
@@ -1261,6 +1258,14 @@
"maxLength": 20,
"type": "string"
}
+ },
+ {
+ "name": "reveal",
+ "required": true,
+ "in": "query",
+ "schema": {
+ "type": "boolean"
+ }
}
],
"requestBody": {
@@ -1306,6 +1311,11 @@
"schema": {
"type": "object",
"properties": {
+ "type": {
+ "nullable": true,
+ "type": "string",
+ "enum": ["publishable", "secret", "legacy"]
+ },
"name": {
"type": "string"
},
@@ -1316,10 +1326,6 @@
"type": "string",
"nullable": true
},
- "type": {
- "nullable": true,
- "type": "object"
- },
"prefix": {
"type": "string",
"nullable": true
@@ -1392,6 +1398,14 @@
"schema": {
"type": "string"
}
+ },
+ {
+ "name": "reveal",
+ "required": true,
+ "in": "query",
+ "schema": {
+ "type": "boolean"
+ }
}
],
"requestBody": {
@@ -1432,6 +1446,11 @@
"schema": {
"type": "object",
"properties": {
+ "type": {
+ "nullable": true,
+ "type": "string",
+ "enum": ["publishable", "secret", "legacy"]
+ },
"name": {
"type": "string"
},
@@ -1442,9 +1461,108 @@
"type": "string",
"nullable": true
},
+ "prefix": {
+ "type": "string",
+ "nullable": true
+ },
+ "description": {
+ "type": "string",
+ "nullable": true
+ },
+ "hash": {
+ "type": "string",
+ "nullable": true
+ },
+ "secret_jwt_template": {
+ "nullable": true,
+ "allOf": [
+ {
+ "type": "object",
+ "properties": {
+ "role": {
+ "type": "string"
+ }
+ },
+ "required": ["role"]
+ }
+ ]
+ },
+ "inserted_at": {
+ "type": "string",
+ "nullable": true
+ },
+ "updated_at": {
+ "type": "string",
+ "nullable": true
+ }
+ },
+ "required": ["name", "api_key"]
+ }
+ }
+ }
+ }
+ },
+ "tags": ["Secrets"],
+ "security": [
+ {
+ "bearer": []
+ }
+ ]
+ },
+ "get": {
+ "operationId": "getApiKey",
+ "summary": "[Alpha] Get API key",
+ "parameters": [
+ {
+ "name": "ref",
+ "required": true,
+ "in": "path",
+ "description": "Project ref",
+ "schema": {
+ "minLength": 20,
+ "maxLength": 20,
+ "type": "string"
+ }
+ },
+ {
+ "name": "id",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "reveal",
+ "required": true,
+ "in": "query",
+ "schema": {
+ "type": "boolean"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
"type": {
"nullable": true,
- "type": "object"
+ "type": "string",
+ "enum": ["publishable", "secret", "legacy"]
+ },
+ "name": {
+ "type": "string"
+ },
+ "api_key": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string",
+ "nullable": true
},
"prefix": {
"type": "string",
@@ -1516,6 +1634,14 @@
"schema": {
"type": "string"
}
+ },
+ {
+ "name": "reveal",
+ "required": true,
+ "in": "query",
+ "schema": {
+ "type": "boolean"
+ }
}
],
"responses": {
@@ -1526,6 +1652,11 @@
"schema": {
"type": "object",
"properties": {
+ "type": {
+ "nullable": true,
+ "type": "string",
+ "enum": ["publishable", "secret", "legacy"]
+ },
"name": {
"type": "string"
},
@@ -1536,10 +1667,6 @@
"type": "string",
"nullable": true
},
- "type": {
- "nullable": true,
- "type": "object"
- },
"prefix": {
"type": "string",
"nullable": true
@@ -3238,7 +3365,15 @@
"type": "string"
}
},
- "required": ["id", "organization_id", "name", "region", "created_at", "status"]
+ "required": [
+ "id",
+ "organization_id",
+ "name",
+ "region",
+ "created_at",
+ "database",
+ "status"
+ ]
}
}
}
@@ -8045,6 +8180,14 @@
"schema": {
"type": "string"
}
+ },
+ {
+ "name": "resource_multiplier",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
}
],
"requestBody": {
@@ -8066,6 +8209,9 @@
},
"verify_jwt": {
"type": "boolean"
+ },
+ "resource_multiplier": {
+ "type": "string"
}
},
"required": ["slug", "name", "body"]
@@ -8087,6 +8233,9 @@
},
"verify_jwt": {
"type": "boolean"
+ },
+ "resource_multiplier": {
+ "type": "string"
}
},
"required": ["slug", "name", "body"]
@@ -8137,6 +8286,9 @@
},
"import_map_path": {
"type": "string"
+ },
+ "resource_multiplier": {
+ "type": "string"
}
},
"required": [
@@ -8228,6 +8380,9 @@
},
"import_map_path": {
"type": "string"
+ },
+ "resource_multiplier": {
+ "type": "string"
}
},
"required": [
@@ -8330,6 +8485,9 @@
},
"import_map_path": {
"type": "string"
+ },
+ "resource_multiplier": {
+ "type": "string"
}
},
"required": [
@@ -8433,6 +8591,14 @@
"schema": {
"type": "string"
}
+ },
+ {
+ "name": "resource_multiplier",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
}
],
"requestBody": {
@@ -8450,6 +8616,9 @@
},
"verify_jwt": {
"type": "boolean"
+ },
+ "resource_multiplier": {
+ "type": "string"
}
}
}
@@ -8466,6 +8635,9 @@
},
"verify_jwt": {
"type": "boolean"
+ },
+ "resource_multiplier": {
+ "type": "string"
}
}
}
@@ -8515,6 +8687,9 @@
},
"import_map_path": {
"type": "string"
+ },
+ "resource_multiplier": {
+ "type": "string"
}
},
"required": [
@@ -10018,7 +10193,7 @@
},
"required": ["host", "version", "postgres_engine", "release_channel"]
},
- "V1ProjectResponse": {
+ "V1ProjectWithDatabaseResponse": {
"type": "object",
"properties": {
"id": {
@@ -10086,33 +10261,9 @@
"type": "string"
}
},
- "required": ["id", "organization_id", "name", "region", "created_at", "status"]
- },
- "DesiredInstanceSize": {
- "type": "string",
- "enum": [
- "micro",
- "small",
- "medium",
- "large",
- "xlarge",
- "2xlarge",
- "4xlarge",
- "8xlarge",
- "12xlarge",
- "16xlarge"
- ]
- },
- "ReleaseChannel": {
- "type": "string",
- "enum": ["internal", "alpha", "beta", "ga", "withdrawn"]
- },
- "PostgresEngine": {
- "type": "string",
- "description": "Postgres engine version. If not provided, the latest version will be used.",
- "enum": ["15"]
+ "required": ["id", "organization_id", "name", "region", "created_at", "database", "status"]
},
- "V1CreateProjectBody": {
+ "V1CreateProjectBodyDto": {
"type": "object",
"properties": {
"db_pass": {
@@ -10130,12 +10281,12 @@
"plan": {
"type": "string",
"enum": ["free", "pro"],
- "description": "Subscription Plan is now set on organization level and is ignored in this request",
- "example": "free",
- "deprecated": true
+ "deprecated": true,
+ "description": "Subscription Plan is now set on organization level and is ignored in this request"
},
"region": {
"type": "string",
+ "description": "Region you want your server to reside in",
"enum": [
"us-east-1",
"us-east-2",
@@ -10155,9 +10306,7 @@
"ca-central-1",
"ap-south-1",
"sa-east-1"
- ],
- "description": "Region you want your server to reside in",
- "example": "us-east-1"
+ ]
},
"kps_enabled": {
"type": "boolean",
@@ -10181,20 +10330,71 @@
},
"template_url": {
"type": "string",
+ "format": "uri",
"description": "Template URL used to create the project from the CLI.",
"example": "https://github.com/supabase/supabase/tree/master/examples/slack-clone/nextjs-slack-clone"
},
"release_channel": {
"type": "string",
- "enum": ["internal", "alpha", "beta", "ga", "withdrawn"]
+ "enum": ["internal", "alpha", "beta", "ga", "withdrawn"],
+ "description": "Release channel. If not provided, GA will be used."
},
"postgres_engine": {
"type": "string",
- "description": "Postgres engine version. If not provided, the latest version will be used.",
- "enum": ["15"]
+ "enum": ["15"],
+ "description": "Postgres engine version. If not provided, the latest version will be used."
+ }
+ },
+ "required": ["db_pass", "name", "organization_id", "region"],
+ "additionalProperties": false
+ },
+ "V1ProjectResponse": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "Id of your project"
+ },
+ "organization_id": {
+ "type": "string",
+ "description": "Slug of your organization"
+ },
+ "name": {
+ "type": "string",
+ "description": "Name of your project"
+ },
+ "region": {
+ "type": "string",
+ "description": "Region of your project",
+ "example": "us-east-1"
+ },
+ "created_at": {
+ "type": "string",
+ "description": "Creation timestamp",
+ "example": "2023-03-29T16:32:59Z"
+ },
+ "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": ["db_pass", "name", "organization_id", "region"]
+ "required": ["id", "organization_id", "name", "region", "created_at", "status"]
},
"OrganizationResponseV1": {
"type": "object",
@@ -10208,14 +10408,15 @@
},
"required": ["id", "name"]
},
- "CreateOrganizationBodyV1": {
+ "CreateOrganizationV1Dto": {
"type": "object",
"properties": {
"name": {
"type": "string"
}
},
- "required": ["name"]
+ "required": ["name"],
+ "additionalProperties": false
},
"OAuthTokenBody": {
"type": "object",
@@ -10577,6 +10778,11 @@
"ApiKeyResponse": {
"type": "object",
"properties": {
+ "type": {
+ "nullable": true,
+ "type": "string",
+ "enum": ["publishable", "secret", "legacy"]
+ },
"name": {
"type": "string"
},
@@ -10587,10 +10793,6 @@
"type": "string",
"nullable": true
},
- "type": {
- "nullable": true,
- "type": "object"
- },
"prefix": {
"type": "string",
"nullable": true
@@ -10679,6 +10881,30 @@
}
}
},
+ "DesiredInstanceSize": {
+ "type": "string",
+ "enum": [
+ "micro",
+ "small",
+ "medium",
+ "large",
+ "xlarge",
+ "2xlarge",
+ "4xlarge",
+ "8xlarge",
+ "12xlarge",
+ "16xlarge"
+ ]
+ },
+ "ReleaseChannel": {
+ "type": "string",
+ "enum": ["internal", "alpha", "beta", "ga", "withdrawn"]
+ },
+ "PostgresEngine": {
+ "type": "string",
+ "description": "Postgres engine version. If not provided, the latest version will be used.",
+ "enum": ["15"]
+ },
"CreateBranchBody": {
"type": "object",
"properties": {
@@ -13596,6 +13822,9 @@
},
"verify_jwt": {
"type": "boolean"
+ },
+ "resource_multiplier": {
+ "type": "string"
}
},
"required": ["slug", "name", "body"]
@@ -13638,6 +13867,9 @@
},
"import_map_path": {
"type": "string"
+ },
+ "resource_multiplier": {
+ "type": "string"
}
},
"required": ["version", "created_at", "updated_at", "id", "slug", "name", "status"]
@@ -13680,6 +13912,9 @@
},
"import_map_path": {
"type": "string"
+ },
+ "resource_multiplier": {
+ "type": "string"
}
},
"required": ["version", "created_at", "updated_at", "id", "slug", "name", "status"]
@@ -13695,6 +13930,9 @@
},
"verify_jwt": {
"type": "boolean"
+ },
+ "resource_multiplier": {
+ "type": "string"
}
}
},