The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
spec update
Jonathan Summers-Muirf72b87521856
diff --git a/spec/api_v0_openapi.json b/spec/api_v0_openapi.jsonindex 8d26d1c6350..7867f4a7d1b 100644--- a/spec/api_v0_openapi.json+++ b/spec/api_v0_openapi.json@@ -147,13 +147,8 @@"403": { "description": "" },"500": { "description": "Failed to create project's function" }},- "tags": ["projects"],- "security": [- { "apiKeyHeader": [], "apiKeyParam": [] },- { "bearer": [] },- { "apiKeyHeader": [], "apiKeyParam": [] },- { "bearer": [] }- ]+ "tags": ["functions"],+ "security": [{ "apiKeyHeader": [], "apiKeyParam": [] }, { "bearer": [] }]},"get": {"operationId": "getFunctions",@@ -183,13 +178,8 @@"403": { "description": "" },"500": { "description": "Failed to retrieve project's functions" }},- "tags": ["projects"],- "security": [- { "apiKeyHeader": [], "apiKeyParam": [] },- { "bearer": [] },- { "apiKeyHeader": [], "apiKeyParam": [] },- { "bearer": [] }- ]+ "tags": ["functions"],+ "security": [{ "apiKeyHeader": [], "apiKeyParam": [] }, { "bearer": [] }]}},"/v1/projects/{ref}/functions/{function_slug}": {@@ -225,7 +215,7 @@"403": { "description": "" },"500": { "description": "Failed to retrieve function with given slug" }},- "tags": ["projects"],+ "tags": ["functions"],"security": [{ "apiKeyHeader": [], "apiKeyParam": [] }, { "bearer": [] }]},"patch": {@@ -286,7 +276,7 @@"403": { "description": "" },"500": { "description": "Failed to update function with given slug" }},- "tags": ["projects"],+ "tags": ["functions"],"security": [{ "apiKeyHeader": [], "apiKeyParam": [] }, { "bearer": [] }]},"delete": {@@ -314,7 +304,7 @@"403": { "description": "" },"500": { "description": "Failed to delete function with given slug" }},- "tags": ["projects"],+ "tags": ["functions"],"security": [{ "apiKeyHeader": [], "apiKeyParam": [] }, { "bearer": [] }]}},@@ -344,10 +334,169 @@"403": { "description": "" },"500": { "description": "Failed to retrieve function body with given slug" }},- "tags": ["projects"],+ "tags": ["functions"],+ "security": [{ "apiKeyHeader": [], "apiKeyParam": [] }, { "bearer": [] }]+ }+ },+ "/v1/projects/{ref}/secrets": {+ "get": {+ "operationId": "getSecrets",+ "summary": "List all secrets",+ "description": "Returns all secrets you've previously added to the specified project.",+ "parameters": [+ {+ "name": "ref",+ "required": true,+ "in": "path",+ "description": "Project ref",+ "schema": { "minLength": 20, "maxLength": 20, "type": "string" }+ }+ ],+ "responses": {+ "200": {+ "description": "",+ "content": {+ "application/json": {+ "schema": {+ "type": "array",+ "items": { "$ref": "#/components/schemas/SecretResponse" }+ }+ }+ }+ },+ "403": { "description": "" },+ "500": { "description": "Failed to retrieve project's secrets" }+ },+ "tags": ["secrets"],+ "security": [{ "apiKeyHeader": [], "apiKeyParam": [] }, { "bearer": [] }]+ },+ "post": {+ "operationId": "createSecrets",+ "summary": "Bulk create secrets",+ "description": "Creates multiple secrets and adds them to the specified 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": "array",+ "items": { "$ref": "#/components/schemas/CreateSecretBody" }+ }+ }+ }+ },+ "responses": {+ "201": { "description": "" },+ "403": { "description": "" },+ "500": { "description": "Failed to create project's secrets" }+ },+ "tags": ["secrets"],+ "security": [{ "apiKeyHeader": [], "apiKeyParam": [] }, { "bearer": [] }]+ },+ "delete": {+ "operationId": "deleteSecrets",+ "summary": "Bulk delete secrets",+ "description": "Deletes all secrets with the given names from the specified 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": "array", "items": { "type": "string" } } }+ }+ },+ "responses": {+ "200": {+ "description": "",+ "content": { "application/json": { "schema": { "type": "object" } } }+ },+ "403": { "description": "" },+ "500": { "description": "Failed to delete secrets with given names" }+ },+ "tags": ["secrets"],"security": [{ "apiKeyHeader": [], "apiKeyParam": [] }, { "bearer": [] }]}},+ "/v1/projects/{ref}/postgrest": {+ "get": {+ "operationId": "getPostgRESTConfig",+ "summary": "Gets project's postgrest config",+ "parameters": [+ {+ "name": "ref",+ "required": true,+ "in": "path",+ "description": "Project ref",+ "schema": { "minLength": 20, "maxLength": 20, "type": "string" }+ }+ ],+ "responses": {+ "200": {+ "description": "",+ "content": {+ "application/json": {+ "schema": { "$ref": "#/components/schemas/PostgrestConfigResponse" }+ }+ }+ },+ "403": { "description": "" },+ "500": { "description": "Failed to retrieve project's postgrest config" }+ },+ "tags": ["services"],+ "security": [{ "bearer": [] }]+ },+ "patch": {+ "operationId": "updatePostgRESTConfig",+ "summary": "Updates project's postgrest config",+ "parameters": [+ {+ "name": "ref",+ "required": true,+ "in": "path",+ "description": "Project ref",+ "schema": { "minLength": 20, "maxLength": 20, "type": "string" }+ }+ ],+ "requestBody": {+ "required": true,+ "content": {+ "application/json": {+ "schema": { "$ref": "#/components/schemas/UpdatePostgrestConfigBody" }+ }+ }+ },+ "responses": {+ "200": {+ "description": "",+ "content": {+ "application/json": {+ "schema": { "$ref": "#/components/schemas/PostgrestConfigResponse" }+ }+ }+ },+ "403": { "description": "" },+ "500": { "description": "Failed to update project's postgrest config" }+ },+ "tags": ["services"],+ "security": [{ "bearer": [] }]+ }+ },"/v1/projects/{ref}/custom-hostname": {"get": {"operationId": "getCustomHostnameConfig",@@ -508,7 +657,11 @@"responses": {"200": {"description": "",- "content": { "application/json": { "schema": { "type": "object" } } }+ "content": {+ "application/json": {+ "schema": { "$ref": "#/components/schemas/PgsodiumConfigResponse" }+ }+ }},"403": { "description": "" },"500": { "description": "Failed to retrieve project's pgsodium config" }@@ -539,7 +692,11 @@"responses": {"200": {"description": "",- "content": { "application/json": { "schema": { "type": "object" } } }+ "content": {+ "application/json": {+ "schema": { "$ref": "#/components/schemas/PgsodiumConfigResponse" }+ }+ }},"403": { "description": "" },"500": { "description": "Failed to update project's pgsodium config" }@@ -548,12 +705,18 @@"security": [{ "bearer": [] }]}},- "/v1/projects/{ref}/secrets": {+ "/v1/projects/{ref}/types/typescript": {"get": {- "operationId": "getSecrets",- "summary": "List all secrets",- "description": "Returns all secrets you've previously added to the specified project.",+ "operationId": "getTypescriptTypes",+ "summary": "Generate TypeScript types",+ "description": "Returns the TypeScript types of your schema for use with supabase-js.","parameters": [+ {+ "name": "included_schemas",+ "required": false,+ "in": "query",+ "schema": { "default": "public", "type": "string" }+ },{"name": "ref","required": true,@@ -567,23 +730,21 @@"description": "","content": {"application/json": {- "schema": {- "type": "array",- "items": { "$ref": "#/components/schemas/SecretResponse" }- }+ "schema": { "$ref": "#/components/schemas/TypescriptResponse" }}}},"403": { "description": "" },- "500": { "description": "Failed to retrieve project's secrets" }+ "500": { "description": "Failed to generate TypeScript types" }},"tags": ["projects"],"security": [{ "apiKeyHeader": [], "apiKeyParam": [] }, { "bearer": [] }]- },+ }+ },+ "/v1/projects/{ref}/network-bans/retrieve": {"post": {- "operationId": "createSecrets",- "summary": "Bulk create secrets",- "description": "Creates multiple secrets and adds them to the specified project.",+ "operationId": "getNetworkBans",+ "summary": "Gets project's network bans","parameters": [{"name": "ref",@@ -593,29 +754,26 @@"schema": { "minLength": 20, "maxLength": 20, "type": "string" }}],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": {- "type": "array",- "items": { "$ref": "#/components/schemas/CreateSecretBody" }+ "responses": {+ "201": {+ "description": "",+ "content": {+ "application/json": {+ "schema": { "$ref": "#/components/schemas/NetworkBanResponse" }}}- }- },- "responses": {- "201": { "description": "" },+ },"403": { "description": "" },- "500": { "description": "Failed to create project's secrets" }+ "500": { "description": "Failed to retrieve project's network bans" }},- "tags": ["projects"],- "security": [{ "apiKeyHeader": [], "apiKeyParam": [] }, { "bearer": [] }]- },+ "tags": ["network bans (beta)"],+ "security": [{ "bearer": [] }]+ }+ },+ "/v1/projects/{ref}/network-bans": {"delete": {- "operationId": "deleteSecrets",- "summary": "Bulk delete secrets",- "description": "Deletes all secrets with the given names from the specified project",+ "operationId": "removeNetworkBan",+ "summary": "Remove network bans.","parameters": [{"name": "ref",@@ -628,33 +786,25 @@"requestBody": {"required": true,"content": {- "application/json": { "schema": { "type": "array", "items": { "type": "string" } } }+ "application/json": {+ "schema": { "$ref": "#/components/schemas/RemoveNetworkBanRequest" }+ }}},"responses": {- "200": {- "description": "",- "content": { "application/json": { "schema": { "type": "object" } } }- },+ "200": { "description": "" },"403": { "description": "" },- "500": { "description": "Failed to delete secrets with given names" }+ "500": { "description": "Failed to remove network bans." }},- "tags": ["projects"],- "security": [{ "apiKeyHeader": [], "apiKeyParam": [] }, { "bearer": [] }]+ "tags": ["network bans (beta)"],+ "security": [{ "bearer": [] }]}},- "/v1/projects/{ref}/types/typescript": {+ "/v1/projects/{ref}/network-restrictions": {"get": {- "operationId": "getTypescriptTypes",- "summary": "Generate TypeScript types",- "description": "Returns the TypeScript types of your schema for use with supabase-js.",+ "operationId": "getNetworkRestrictions",+ "summary": "Gets project's network restrictions","parameters": [- {- "name": "included_schemas",- "required": false,- "in": "query",- "schema": { "default": "public", "type": "string" }- },{"name": "ref","required": true,@@ -668,21 +818,21 @@"description": "","content": {"application/json": {- "schema": { "$ref": "#/components/schemas/TypescriptResponse" }+ "schema": { "$ref": "#/components/schemas/NetworkRestrictionsResponse" }}}},"403": { "description": "" },- "500": { "description": "Failed to generate TypeScript types" }+ "500": { "description": "Failed to retrieve project's network restrictions" }},- "tags": ["projects"],- "security": [{ "apiKeyHeader": [], "apiKeyParam": [] }, { "bearer": [] }]+ "tags": ["network restrictions (beta)"],+ "security": [{ "bearer": [] }]}},- "/v1/projects/{ref}/network-bans/retrieve": {+ "/v1/projects/{ref}/network-restrictions/apply": {"post": {- "operationId": "getNetworkBans",- "summary": "Gets project's network bans",+ "operationId": "applyNetworkRestrictions",+ "summary": "Updates project's network restrictions","parameters": [{"name": "ref",@@ -692,26 +842,34 @@"schema": { "minLength": 20, "maxLength": 20, "type": "string" }}],+ "requestBody": {+ "required": true,+ "content": {+ "application/json": {+ "schema": { "$ref": "#/components/schemas/NetworkRestrictionsRequest" }+ }+ }+ },"responses": {"201": {"description": "","content": {"application/json": {- "schema": { "$ref": "#/components/schemas/NetworkBanResponse" }+ "schema": { "$ref": "#/components/schemas/NetworkRestrictionsResponse" }}}},"403": { "description": "" },- "500": { "description": "Failed to retrieve project's network bans" }+ "500": { "description": "Failed to update project network restrictions" }},- "tags": ["network bans (beta)"],+ "tags": ["network restrictions (beta)"],"security": [{ "bearer": [] }]}},- "/v1/projects/{ref}/network-bans": {- "delete": {- "operationId": "removeNetworkBan",- "summary": "Remove network bans.",+ "/v1/projects/{ref}/vanity-subdomain": {+ "get": {+ "operationId": "getVanitySubdomainConfig",+ "summary": "Gets current vanity subdomain config","parameters": [{"name": "ref",@@ -721,27 +879,46 @@"schema": { "minLength": 20, "maxLength": 20, "type": "string" }}],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/RemoveNetworkBanRequest" }+ "responses": {+ "200": {+ "description": "",+ "content": {+ "application/json": {+ "schema": { "$ref": "#/components/schemas/VanitySubdomainConfigResponse" }+ }}- }+ },+ "403": { "description": "" },+ "500": { "description": "Failed to get project vanity subdomain configuration" }},+ "tags": ["vanity subdomain (beta)"],+ "security": [{ "bearer": [] }]+ },+ "delete": {+ "operationId": "removeVanitySubdomainConfig",+ "summary": "Deletes a project's vanity subdomain configuration",+ "parameters": [+ {+ "name": "ref",+ "required": true,+ "in": "path",+ "description": "Project ref",+ "schema": { "minLength": 20, "maxLength": 20, "type": "string" }+ }+ ],"responses": {"200": { "description": "" },"403": { "description": "" },- "500": { "description": "Failed to remove network bans." }+ "500": { "description": "Failed to delete project vanity subdomain configuration" }},- "tags": ["network bans (beta)"],+ "tags": ["vanity subdomain (beta)"],"security": [{ "bearer": [] }]}},- "/v1/projects/{ref}/network-restrictions": {- "get": {- "operationId": "getNetworkRestrictions",- "summary": "Gets project's network restrictions",+ "/v1/projects/{ref}/vanity-subdomain/check-availability": {+ "post": {+ "operationId": "checkVanitySubdomainAvailability",+ "summary": "Checks vanity subdomain availability","parameters": [{"name": "ref",@@ -751,26 +928,32 @@"schema": { "minLength": 20, "maxLength": 20, "type": "string" }}],+ "requestBody": {+ "required": true,+ "content": {+ "application/json": { "schema": { "$ref": "#/components/schemas/VanitySubdomainBody" } }+ }+ },"responses": {- "200": {+ "201": {"description": "","content": {"application/json": {- "schema": { "$ref": "#/components/schemas/NetworkRestrictionsResponse" }+ "schema": { "$ref": "#/components/schemas/SubdomainAvailabilityResponse" }}}},"403": { "description": "" },- "500": { "description": "Failed to retrieve project's network restrictions" }+ "500": { "description": "Failed to check project vanity subdomain configuration" }},- "tags": ["network restrictions (beta)"],+ "tags": ["vanity subdomain (beta)"],"security": [{ "bearer": [] }]}},- "/v1/projects/{ref}/network-restrictions/apply": {+ "/v1/projects/{ref}/vanity-subdomain/activate": {"post": {- "operationId": "applyNetworkRestrictions",- "summary": "Updates project's network restrictions",+ "operationId": "activateVanitySubdomainPlease",+ "summary": "Activates a vanity subdomain for a project.","parameters": [{"name": "ref",@@ -783,9 +966,7 @@"requestBody": {"required": true,"content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/NetworkRestrictionsRequest" }- }+ "application/json": { "schema": { "$ref": "#/components/schemas/VanitySubdomainBody" } }}},"responses": {@@ -793,14 +974,14 @@"description": "","content": {"application/json": {- "schema": { "$ref": "#/components/schemas/NetworkRestrictionsResponse" }+ "schema": { "$ref": "#/components/schemas/ActivateVanitySubdomainResponse" }}}},"403": { "description": "" },- "500": { "description": "Failed to update project network restrictions" }+ "500": { "description": "Failed to activate project vanity subdomain configuration" }},- "tags": ["network restrictions (beta)"],+ "tags": ["vanity subdomain (beta)"],"security": [{ "bearer": [] }]}}@@ -919,6 +1100,36 @@"verify_jwt": { "type": "boolean" }}},+ "SecretResponse": {+ "type": "object",+ "properties": { "name": { "type": "string" }, "value": { "type": "string" } },+ "required": ["name", "value"]+ },+ "CreateSecretBody": {+ "type": "object",+ "properties": {+ "name": { "type": "string" },+ "value": { "type": "string", "pattern": "/^(?!SUPABASE_).*/" }+ },+ "required": ["name", "value"]+ },+ "PostgrestConfigResponse": {+ "type": "object",+ "properties": {+ "db_schema": { "type": "string" },+ "max_rows": { "type": "number" },+ "db_extra_search_path": { "type": "string" }+ },+ "required": ["db_schema", "max_rows", "db_extra_search_path"]+ },+ "UpdatePostgrestConfigBody": {+ "type": "object",+ "properties": {+ "db_extra_search_path": { "type": "string" },+ "db_schema": { "type": "string" },+ "max_rows": { "type": "number", "maximum": 1000000 }+ }+ },"UpdateCustomHostnameResponse": {"type": "object","properties": {@@ -942,23 +1153,15 @@"properties": { "custom_hostname": { "type": "string" } },"required": ["custom_hostname"]},- "UpdatePgsodiumConfigBody": {+ "PgsodiumConfigResponse": {"type": "object","properties": { "root_key": { "type": "string" } },"required": ["root_key"]},- "SecretResponse": {- "type": "object",- "properties": { "name": { "type": "string" }, "value": { "type": "string" } },- "required": ["name", "value"]- },- "CreateSecretBody": {+ "UpdatePgsodiumConfigBody": {"type": "object",- "properties": {- "name": { "type": "string" },- "value": { "type": "string", "pattern": "/^(?!SUPABASE_).*/" }- },- "required": ["name", "value"]+ "properties": { "root_key": { "type": "string" } },+ "required": ["root_key"]},"TypescriptResponse": {"type": "object",@@ -990,6 +1193,29 @@"status": { "enum": ["stored", "applied"], "type": "string" }},"required": ["entitlement", "config", "status"]+ },+ "VanitySubdomainConfigResponse": {+ "type": "object",+ "properties": {+ "status": { "type": "string", "enum": ["not-used", "custom-domain-used", "active"] },+ "custom_domain": { "type": "string" }+ },+ "required": ["status"]+ },+ "VanitySubdomainBody": {+ "type": "object",+ "properties": { "vanity_subdomain": { "type": "string" } },+ "required": ["vanity_subdomain"]+ },+ "SubdomainAvailabilityResponse": {+ "type": "object",+ "properties": { "available": { "type": "boolean" } },+ "required": ["available"]+ },+ "ActivateVanitySubdomainResponse": {+ "type": "object",+ "properties": { "custom_domain": { "type": "string" } },+ "required": ["custom_domain"]}}}diff --git a/spec/transforms/api_v0_openapi_deparsed.json b/spec/transforms/api_v0_openapi_deparsed.jsonindex 689dedce0aa..c402f198446 100644--- a/spec/transforms/api_v0_openapi_deparsed.json+++ b/spec/transforms/api_v0_openapi_deparsed.json@@ -407,15 +407,8 @@"description": "Failed to create project's function"}},- "tags": ["projects"],+ "tags": ["functions"],"security": [- {- "apiKeyHeader": [],- "apiKeyParam": []- },- {- "bearer": []- },{"apiKeyHeader": [],"apiKeyParam": []@@ -502,15 +495,8 @@"description": "Failed to retrieve project's functions"}},- "tags": ["projects"],+ "tags": ["functions"],"security": [- {- "apiKeyHeader": [],- "apiKeyParam": []- },- {- "bearer": []- },{"apiKeyHeader": [],"apiKeyParam": []@@ -609,7 +595,7 @@"description": "Failed to retrieve function with given slug"}},- "tags": ["projects"],+ "tags": ["functions"],"security": [{"apiKeyHeader": [],@@ -774,7 +760,7 @@"description": "Failed to update function with given slug"}},- "tags": ["projects"],+ "tags": ["functions"],"security": [{"apiKeyHeader": [],@@ -823,7 +809,7 @@"description": "Failed to delete function with given slug"}},- "tags": ["projects"],+ "tags": ["functions"],"security": [{"apiKeyHeader": [],@@ -874,7 +860,7 @@"description": "Failed to retrieve function body with given slug"}},- "tags": ["projects"],+ "tags": ["functions"],"security": [{"apiKeyHeader": [],@@ -886,10 +872,11 @@]}},- "/v1/projects/{ref}/custom-hostname": {+ "/v1/projects/{ref}/secrets": {"get": {- "operationId": "getCustomHostnameConfig",- "summary": "Gets project's custom hostname config",+ "operationId": "getSecrets",+ "summary": "List all secrets",+ "description": "Returns all secrets you've previously added to the specified project.","parameters": [{"name": "ref",@@ -909,26 +896,19 @@"content": {"application/json": {"schema": {- "type": "object",- "properties": {- "status": {- "enum": [- "1_not_started",- "2_initiated",- "3_challenge_verified",- "4_origin_setup_completed",- "5_services_reconfigured"- ],- "type": "string"- },- "custom_hostname": {- "type": "string"+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "name": {+ "type": "string"+ },+ "value": {+ "type": "string"+ }},- "data": {- "type": "object"- }- },- "required": ["status", "custom_hostname", "data"]+ "required": ["name", "value"]+ }}}}@@ -937,19 +917,24 @@"description": ""},"500": {- "description": "Failed to retrieve project's custom hostname config"+ "description": "Failed to retrieve project's secrets"}},- "tags": ["custom hostname (beta)"],+ "tags": ["secrets"],"security": [+ {+ "apiKeyHeader": [],+ "apiKeyParam": []+ },{"bearer": []}]},- "delete": {- "operationId": "removeCustomHostnameConfig",- "summary": "Deletes a project's custom hostname configuration",+ "post": {+ "operationId": "createSecrets",+ "summary": "Bulk create secrets",+ "description": "Creates multiple secrets and adds them to the specified project.","parameters": [{"name": "ref",@@ -963,29 +948,55 @@}}],+ "requestBody": {+ "required": true,+ "content": {+ "application/json": {+ "schema": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "name": {+ "type": "string"+ },+ "value": {+ "type": "string",+ "pattern": "/^(?!SUPABASE_).*/"+ }+ },+ "required": ["name", "value"]+ }+ }+ }+ }+ },"responses": {- "200": {+ "201": {"description": ""},"403": {"description": ""},"500": {- "description": "Failed to delete project custom hostname configuration"+ "description": "Failed to create project's secrets"}},- "tags": ["custom hostname (beta)"],+ "tags": ["secrets"],"security": [+ {+ "apiKeyHeader": [],+ "apiKeyParam": []+ },{"bearer": []}]- }- },- "/v1/projects/{ref}/custom-hostname/initialize": {- "post": {- "operationId": "createCustomHostnameConfig",- "summary": "Updates project's custom hostname configuration",+ },+ "delete": {+ "operationId": "deleteSecrets",+ "summary": "Bulk delete secrets",+ "description": "Deletes all secrets with the given names from the specified project","parameters": [{"name": "ref",@@ -1004,43 +1015,21 @@"content": {"application/json": {"schema": {- "type": "object",- "properties": {- "custom_hostname": {- "type": "string"- }- },- "required": ["custom_hostname"]+ "type": "array",+ "items": {+ "type": "string"+ }}}}},"responses": {- "201": {+ "200": {"description": "","content": {"application/json": {"schema": {- "type": "object",- "properties": {- "status": {- "enum": [- "1_not_started",- "2_initiated",- "3_challenge_verified",- "4_origin_setup_completed",- "5_services_reconfigured"- ],- "type": "string"- },- "custom_hostname": {- "type": "string"- },- "data": {- "type": "object"- }- },- "required": ["status", "custom_hostname", "data"]+ "type": "object"}}}@@ -1049,21 +1038,25 @@"description": ""},"500": {- "description": "Failed to update project custom hostname configuration"+ "description": "Failed to delete secrets with given names"}},- "tags": ["custom hostname (beta)"],+ "tags": ["secrets"],"security": [+ {+ "apiKeyHeader": [],+ "apiKeyParam": []+ },{"bearer": []}]}},- "/v1/projects/{ref}/custom-hostname/reverify": {- "post": {- "operationId": "reverify",- "summary": "Attempts to verify the DNS configuration for project's custom hostname configuration",+ "/v1/projects/{ref}/postgrest": {+ "get": {+ "operationId": "getPostgRESTConfig",+ "summary": "Gets project's postgrest config","parameters": [{"name": "ref",@@ -1078,31 +1071,24 @@}],"responses": {- "201": {+ "200": {"description": "","content": {"application/json": {"schema": {"type": "object","properties": {- "status": {- "enum": [- "1_not_started",- "2_initiated",- "3_challenge_verified",- "4_origin_setup_completed",- "5_services_reconfigured"- ],+ "db_schema": {"type": "string"},- "custom_hostname": {- "type": "string"+ "max_rows": {+ "type": "number"},- "data": {- "type": "object"+ "db_extra_search_path": {+ "type": "string"}},- "required": ["status", "custom_hostname", "data"]+ "required": ["db_schema", "max_rows", "db_extra_search_path"]}}}@@ -1111,21 +1097,19 @@"description": ""},"500": {- "description": "Failed to verify project custom hostname configuration"+ "description": "Failed to retrieve project's postgrest config"}},- "tags": ["custom hostname (beta)"],+ "tags": ["services"],"security": [{"bearer": []}]- }- },- "/v1/projects/{ref}/custom-hostname/activate": {- "post": {- "operationId": "activate",- "summary": "Activates a custom hostname for a project.",+ },+ "patch": {+ "operationId": "updatePostgRESTConfig",+ "summary": "Updates project's postgrest config","parameters": [{"name": "ref",@@ -1139,32 +1123,47 @@}}],+ "requestBody": {+ "required": true,+ "content": {+ "application/json": {+ "schema": {+ "type": "object",+ "properties": {+ "db_extra_search_path": {+ "type": "string"+ },+ "db_schema": {+ "type": "string"+ },+ "max_rows": {+ "type": "number",+ "maximum": 1000000+ }+ }+ }+ }+ }+ },"responses": {- "201": {+ "200": {"description": "","content": {"application/json": {"schema": {"type": "object","properties": {- "status": {- "enum": [- "1_not_started",- "2_initiated",- "3_challenge_verified",- "4_origin_setup_completed",- "5_services_reconfigured"- ],+ "db_schema": {"type": "string"},- "custom_hostname": {- "type": "string"+ "max_rows": {+ "type": "number"},- "data": {- "type": "object"+ "db_extra_search_path": {+ "type": "string"}},- "required": ["status", "custom_hostname", "data"]+ "required": ["db_schema", "max_rows", "db_extra_search_path"]}}}@@ -1173,10 +1172,10 @@"description": ""},"500": {- "description": "Failed to activate project custom hostname configuration"+ "description": "Failed to update project's postgrest config"}},- "tags": ["custom hostname (beta)"],+ "tags": ["services"],"security": [{"bearer": []@@ -1184,10 +1183,10 @@]}},- "/v1/projects/{ref}/pgsodium": {+ "/v1/projects/{ref}/custom-hostname": {"get": {- "operationId": "getConfig",- "summary": "Gets project's pgsodium config",+ "operationId": "getCustomHostnameConfig",+ "summary": "Gets project's custom hostname config","parameters": [{"name": "ref",@@ -1207,7 +1206,26 @@"content": {"application/json": {"schema": {- "type": "object"+ "type": "object",+ "properties": {+ "status": {+ "enum": [+ "1_not_started",+ "2_initiated",+ "3_challenge_verified",+ "4_origin_setup_completed",+ "5_services_reconfigured"+ ],+ "type": "string"+ },+ "custom_hostname": {+ "type": "string"+ },+ "data": {+ "type": "object"+ }+ },+ "required": ["status", "custom_hostname", "data"]}}}@@ -1216,19 +1234,55 @@"description": ""},"500": {- "description": "Failed to retrieve project's pgsodium config"+ "description": "Failed to retrieve project's custom hostname config"}},- "tags": ["pgsodium (beta)"],+ "tags": ["custom hostname (beta)"],"security": [{"bearer": []}]},- "put": {- "operationId": "updateConfig",- "summary": "Updates project's pgsodium config. Updating the root_key can cause all data encrypted with the older key to become inaccessible.",+ "delete": {+ "operationId": "removeCustomHostnameConfig",+ "summary": "Deletes a project's custom hostname configuration",+ "parameters": [+ {+ "name": "ref",+ "required": true,+ "in": "path",+ "description": "Project ref",+ "schema": {+ "minLength": 20,+ "maxLength": 20,+ "type": "string"+ }+ }+ ],+ "responses": {+ "200": {+ "description": ""+ },+ "403": {+ "description": ""+ },+ "500": {+ "description": "Failed to delete project custom hostname configuration"+ }+ },+ "tags": ["custom hostname (beta)"],+ "security": [+ {+ "bearer": []+ }+ ]+ }+ },+ "/v1/projects/{ref}/custom-hostname/initialize": {+ "post": {+ "operationId": "createCustomHostnameConfig",+ "summary": "Updates project's custom hostname configuration","parameters": [{"name": "ref",@@ -1249,22 +1303,41 @@"schema": {"type": "object","properties": {- "root_key": {+ "custom_hostname": {"type": "string"}},- "required": ["root_key"]+ "required": ["custom_hostname"]}}}},"responses": {- "200": {+ "201": {"description": "","content": {"application/json": {"schema": {- "type": "object"+ "type": "object",+ "properties": {+ "status": {+ "enum": [+ "1_not_started",+ "2_initiated",+ "3_challenge_verified",+ "4_origin_setup_completed",+ "5_services_reconfigured"+ ],+ "type": "string"+ },+ "custom_hostname": {+ "type": "string"+ },+ "data": {+ "type": "object"+ }+ },+ "required": ["status", "custom_hostname", "data"]}}}@@ -1273,10 +1346,10 @@"description": ""},"500": {- "description": "Failed to update project's pgsodium config"+ "description": "Failed to update project custom hostname configuration"}},- "tags": ["pgsodium (beta)"],+ "tags": ["custom hostname (beta)"],"security": [{"bearer": []@@ -1284,11 +1357,10 @@]}},- "/v1/projects/{ref}/secrets": {- "get": {- "operationId": "getSecrets",- "summary": "List all secrets",- "description": "Returns all secrets you've previously added to the specified project.",+ "/v1/projects/{ref}/custom-hostname/reverify": {+ "post": {+ "operationId": "reverify",+ "summary": "Attempts to verify the DNS configuration for project's custom hostname configuration","parameters": [{"name": "ref",@@ -1303,24 +1375,31 @@}],"responses": {- "200": {+ "201": {"description": "","content": {"application/json": {"schema": {- "type": "array",- "items": {- "type": "object",- "properties": {- "name": {- "type": "string"- },- "value": {- "type": "string"- }+ "type": "object",+ "properties": {+ "status": {+ "enum": [+ "1_not_started",+ "2_initiated",+ "3_challenge_verified",+ "4_origin_setup_completed",+ "5_services_reconfigured"+ ],+ "type": "string"},- "required": ["name", "value"]- }+ "custom_hostname": {+ "type": "string"+ },+ "data": {+ "type": "object"+ }+ },+ "required": ["status", "custom_hostname", "data"]}}}@@ -1329,24 +1408,21 @@"description": ""},"500": {- "description": "Failed to retrieve project's secrets"+ "description": "Failed to verify project custom hostname configuration"}},- "tags": ["projects"],+ "tags": ["custom hostname (beta)"],"security": [- {- "apiKeyHeader": [],- "apiKeyParam": []- },{"bearer": []}]- },+ }+ },+ "/v1/projects/{ref}/custom-hostname/activate": {"post": {- "operationId": "createSecrets",- "summary": "Bulk create secrets",- "description": "Creates multiple secrets and adds them to the specified project.",+ "operationId": "activate",+ "summary": "Activates a custom hostname for a project.","parameters": [{"name": "ref",@@ -1360,55 +1436,102 @@}}],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": {- "type": "array",- "items": {+ "responses": {+ "201": {+ "description": "",+ "content": {+ "application/json": {+ "schema": {"type": "object","properties": {- "name": {+ "status": {+ "enum": [+ "1_not_started",+ "2_initiated",+ "3_challenge_verified",+ "4_origin_setup_completed",+ "5_services_reconfigured"+ ],"type": "string"},- "value": {- "type": "string",- "pattern": "/^(?!SUPABASE_).*/"+ "custom_hostname": {+ "type": "string"+ },+ "data": {+ "type": "object"}},- "required": ["name", "value"]+ "required": ["status", "custom_hostname", "data"]}}}+ },+ "403": {+ "description": ""+ },+ "500": {+ "description": "Failed to activate project custom hostname configuration"}},+ "tags": ["custom hostname (beta)"],+ "security": [+ {+ "bearer": []+ }+ ]+ }+ },+ "/v1/projects/{ref}/pgsodium": {+ "get": {+ "operationId": "getConfig",+ "summary": "Gets project's pgsodium config",+ "parameters": [+ {+ "name": "ref",+ "required": true,+ "in": "path",+ "description": "Project ref",+ "schema": {+ "minLength": 20,+ "maxLength": 20,+ "type": "string"+ }+ }+ ],"responses": {- "201": {- "description": ""+ "200": {+ "description": "",+ "content": {+ "application/json": {+ "schema": {+ "type": "object",+ "properties": {+ "root_key": {+ "type": "string"+ }+ },+ "required": ["root_key"]+ }+ }+ }},"403": {"description": ""},"500": {- "description": "Failed to create project's secrets"+ "description": "Failed to retrieve project's pgsodium config"}},- "tags": ["projects"],+ "tags": ["pgsodium (beta)"],"security": [- {- "apiKeyHeader": [],- "apiKeyParam": []- },{"bearer": []}]},- "delete": {- "operationId": "deleteSecrets",- "summary": "Bulk delete secrets",- "description": "Deletes all secrets with the given names from the specified project",+ "put": {+ "operationId": "updateConfig",+ "summary": "Updates project's pgsodium config. Updating the root_key can cause all data encrypted with the older key to become inaccessible.","parameters": [{"name": "ref",@@ -1427,10 +1550,13 @@"content": {"application/json": {"schema": {- "type": "array",- "items": {- "type": "string"- }+ "type": "object",+ "properties": {+ "root_key": {+ "type": "string"+ }+ },+ "required": ["root_key"]}}}@@ -1441,7 +1567,13 @@"content": {"application/json": {"schema": {- "type": "object"+ "type": "object",+ "properties": {+ "root_key": {+ "type": "string"+ }+ },+ "required": ["root_key"]}}}@@ -1450,15 +1582,11 @@"description": ""},"500": {- "description": "Failed to delete secrets with given names"+ "description": "Failed to update project's pgsodium config"}},- "tags": ["projects"],+ "tags": ["pgsodium (beta)"],"security": [- {- "apiKeyHeader": [],- "apiKeyParam": []- },{"bearer": []}@@ -1491,20 +1619,282 @@"type": "string"}}- ],+ ],+ "responses": {+ "200": {+ "description": "",+ "content": {+ "application/json": {+ "schema": {+ "type": "object",+ "properties": {+ "types": {+ "type": "string"+ }+ },+ "required": ["types"]+ }+ }+ }+ },+ "403": {+ "description": ""+ },+ "500": {+ "description": "Failed to generate TypeScript types"+ }+ },+ "tags": ["projects"],+ "security": [+ {+ "apiKeyHeader": [],+ "apiKeyParam": []+ },+ {+ "bearer": []+ }+ ]+ }+ },+ "/v1/projects/{ref}/network-bans/retrieve": {+ "post": {+ "operationId": "getNetworkBans",+ "summary": "Gets project's network bans",+ "parameters": [+ {+ "name": "ref",+ "required": true,+ "in": "path",+ "description": "Project ref",+ "schema": {+ "minLength": 20,+ "maxLength": 20,+ "type": "string"+ }+ }+ ],+ "responses": {+ "201": {+ "description": "",+ "content": {+ "application/json": {+ "schema": {+ "type": "object",+ "properties": {+ "banned_ipv4_addresses": {+ "type": "array",+ "items": {+ "type": "string"+ }+ }+ },+ "required": ["banned_ipv4_addresses"]+ }+ }+ }+ },+ "403": {+ "description": ""+ },+ "500": {+ "description": "Failed to retrieve project's network bans"+ }+ },+ "tags": ["network bans (beta)"],+ "security": [+ {+ "bearer": []+ }+ ]+ }+ },+ "/v1/projects/{ref}/network-bans": {+ "delete": {+ "operationId": "removeNetworkBan",+ "summary": "Remove network bans.",+ "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": {+ "ipv4_addresses": {+ "type": "array",+ "items": {+ "type": "string"+ }+ }+ },+ "required": ["ipv4_addresses"]+ }+ }+ }+ },+ "responses": {+ "200": {+ "description": ""+ },+ "403": {+ "description": ""+ },+ "500": {+ "description": "Failed to remove network bans."+ }+ },+ "tags": ["network bans (beta)"],+ "security": [+ {+ "bearer": []+ }+ ]+ }+ },+ "/v1/projects/{ref}/network-restrictions": {+ "get": {+ "operationId": "getNetworkRestrictions",+ "summary": "Gets project's network restrictions",+ "parameters": [+ {+ "name": "ref",+ "required": true,+ "in": "path",+ "description": "Project ref",+ "schema": {+ "minLength": 20,+ "maxLength": 20,+ "type": "string"+ }+ }+ ],+ "responses": {+ "200": {+ "description": "",+ "content": {+ "application/json": {+ "schema": {+ "type": "object",+ "properties": {+ "entitlement": {+ "enum": ["disallowed", "allowed"],+ "type": "string"+ },+ "config": {+ "type": "object",+ "properties": {+ "dbAllowedCidrs": {+ "type": "array",+ "items": {+ "type": "string"+ }+ }+ },+ "required": ["dbAllowedCidrs"]+ },+ "status": {+ "enum": ["stored", "applied"],+ "type": "string"+ }+ },+ "required": ["entitlement", "config", "status"]+ }+ }+ }+ },+ "403": {+ "description": ""+ },+ "500": {+ "description": "Failed to retrieve project's network restrictions"+ }+ },+ "tags": ["network restrictions (beta)"],+ "security": [+ {+ "bearer": []+ }+ ]+ }+ },+ "/v1/projects/{ref}/network-restrictions/apply": {+ "post": {+ "operationId": "applyNetworkRestrictions",+ "summary": "Updates project's network restrictions",+ "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": {+ "dbAllowedCidrs": {+ "type": "array",+ "items": {+ "type": "string"+ }+ }+ },+ "required": ["dbAllowedCidrs"]+ }+ }+ }+ },"responses": {- "200": {+ "201": {"description": "","content": {"application/json": {"schema": {"type": "object","properties": {- "types": {+ "entitlement": {+ "enum": ["disallowed", "allowed"],+ "type": "string"+ },+ "config": {+ "type": "object",+ "properties": {+ "dbAllowedCidrs": {+ "type": "array",+ "items": {+ "type": "string"+ }+ }+ },+ "required": ["dbAllowedCidrs"]+ },+ "status": {+ "enum": ["stored", "applied"],"type": "string"}},- "required": ["types"]+ "required": ["entitlement", "config", "status"]}}}@@ -1513,25 +1903,21 @@"description": ""},"500": {- "description": "Failed to generate TypeScript types"+ "description": "Failed to update project network restrictions"}},- "tags": ["projects"],+ "tags": ["network restrictions (beta)"],"security": [- {- "apiKeyHeader": [],- "apiKeyParam": []- },{"bearer": []}]}},- "/v1/projects/{ref}/network-bans/retrieve": {- "post": {- "operationId": "getNetworkBans",- "summary": "Gets project's network bans",+ "/v1/projects/{ref}/vanity-subdomain": {+ "get": {+ "operationId": "getVanitySubdomainConfig",+ "summary": "Gets current vanity subdomain config","parameters": [{"name": "ref",@@ -1546,21 +1932,22 @@}],"responses": {- "201": {+ "200": {"description": "","content": {"application/json": {"schema": {"type": "object","properties": {- "banned_ipv4_addresses": {- "type": "array",- "items": {- "type": "string"- }+ "status": {+ "type": "string",+ "enum": ["not-used", "custom-domain-used", "active"]+ },+ "custom_domain": {+ "type": "string"}},- "required": ["banned_ipv4_addresses"]+ "required": ["status"]}}}@@ -1569,21 +1956,19 @@"description": ""},"500": {- "description": "Failed to retrieve project's network bans"+ "description": "Failed to get project vanity subdomain configuration"}},- "tags": ["network bans (beta)"],+ "tags": ["vanity subdomain (beta)"],"security": [{"bearer": []}]- }- },- "/v1/projects/{ref}/network-bans": {+ },"delete": {- "operationId": "removeNetworkBan",- "summary": "Remove network bans.",+ "operationId": "removeVanitySubdomainConfig",+ "summary": "Deletes a project's vanity subdomain configuration","parameters": [{"name": "ref",@@ -1597,25 +1982,6 @@}}],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": {- "type": "object",- "properties": {- "ipv4_addresses": {- "type": "array",- "items": {- "type": "string"- }- }- },- "required": ["ipv4_addresses"]- }- }- }- },"responses": {"200": {"description": ""@@ -1624,10 +1990,10 @@"description": ""},"500": {- "description": "Failed to remove network bans."+ "description": "Failed to delete project vanity subdomain configuration"}},- "tags": ["network bans (beta)"],+ "tags": ["vanity subdomain (beta)"],"security": [{"bearer": []@@ -1635,10 +2001,10 @@]}},- "/v1/projects/{ref}/network-restrictions": {- "get": {- "operationId": "getNetworkRestrictions",- "summary": "Gets project's network restrictions",+ "/v1/projects/{ref}/vanity-subdomain/check-availability": {+ "post": {+ "operationId": "checkVanitySubdomainAvailability",+ "summary": "Checks vanity subdomain availability","parameters": [{"name": "ref",@@ -1652,36 +2018,35 @@}}],+ "requestBody": {+ "required": true,+ "content": {+ "application/json": {+ "schema": {+ "type": "object",+ "properties": {+ "vanity_subdomain": {+ "type": "string"+ }+ },+ "required": ["vanity_subdomain"]+ }+ }+ }+ },"responses": {- "200": {+ "201": {"description": "","content": {"application/json": {"schema": {"type": "object","properties": {- "entitlement": {- "enum": ["disallowed", "allowed"],- "type": "string"- },- "config": {- "type": "object",- "properties": {- "dbAllowedCidrs": {- "type": "array",- "items": {- "type": "string"- }- }- },- "required": ["dbAllowedCidrs"]- },- "status": {- "enum": ["stored", "applied"],- "type": "string"+ "available": {+ "type": "boolean"}},- "required": ["entitlement", "config", "status"]+ "required": ["available"]}}}@@ -1690,10 +2055,10 @@"description": ""},"500": {- "description": "Failed to retrieve project's network restrictions"+ "description": "Failed to check project vanity subdomain configuration"}},- "tags": ["network restrictions (beta)"],+ "tags": ["vanity subdomain (beta)"],"security": [{"bearer": []@@ -1701,10 +2066,10 @@]}},- "/v1/projects/{ref}/network-restrictions/apply": {+ "/v1/projects/{ref}/vanity-subdomain/activate": {"post": {- "operationId": "applyNetworkRestrictions",- "summary": "Updates project's network restrictions",+ "operationId": "activateVanitySubdomainPlease",+ "summary": "Activates a vanity subdomain for a project.","parameters": [{"name": "ref",@@ -1725,14 +2090,11 @@"schema": {"type": "object","properties": {- "dbAllowedCidrs": {- "type": "array",- "items": {- "type": "string"- }+ "vanity_subdomain": {+ "type": "string"}},- "required": ["dbAllowedCidrs"]+ "required": ["vanity_subdomain"]}}}@@ -1745,28 +2107,11 @@"schema": {"type": "object","properties": {- "entitlement": {- "enum": ["disallowed", "allowed"],- "type": "string"- },- "config": {- "type": "object",- "properties": {- "dbAllowedCidrs": {- "type": "array",- "items": {- "type": "string"- }- }- },- "required": ["dbAllowedCidrs"]- },- "status": {- "enum": ["stored", "applied"],+ "custom_domain": {"type": "string"}},- "required": ["entitlement", "config", "status"]+ "required": ["custom_domain"]}}}@@ -1775,10 +2120,10 @@"description": ""},"500": {- "description": "Failed to update project network restrictions"+ "description": "Failed to activate project vanity subdomain configuration"}},- "tags": ["network restrictions (beta)"],+ "tags": ["vanity subdomain (beta)"],"security": [{"bearer": []@@ -2023,6 +2368,61 @@}}},+ "SecretResponse": {+ "type": "object",+ "properties": {+ "name": {+ "type": "string"+ },+ "value": {+ "type": "string"+ }+ },+ "required": ["name", "value"]+ },+ "CreateSecretBody": {+ "type": "object",+ "properties": {+ "name": {+ "type": "string"+ },+ "value": {+ "type": "string",+ "pattern": "/^(?!SUPABASE_).*/"+ }+ },+ "required": ["name", "value"]+ },+ "PostgrestConfigResponse": {+ "type": "object",+ "properties": {+ "db_schema": {+ "type": "string"+ },+ "max_rows": {+ "type": "number"+ },+ "db_extra_search_path": {+ "type": "string"+ }+ },+ "required": ["db_schema", "max_rows", "db_extra_search_path"]+ },+ "UpdatePostgrestConfigBody": {+ "type": "object",+ "properties": {+ "db_extra_search_path": {+ "type": "string"+ },+ "db_schema": {+ "type": "string"+ },+ "max_rows": {+ "type": "number",+ "maximum": 1000000+ }+ }+ },"UpdateCustomHostnameResponse": {"type": "object","properties": {@@ -2054,7 +2454,7 @@},"required": ["custom_hostname"]},- "UpdatePgsodiumConfigBody": {+ "PgsodiumConfigResponse": {"type": "object","properties": {"root_key": {@@ -2063,30 +2463,14 @@},"required": ["root_key"]},- "SecretResponse": {- "type": "object",- "properties": {- "name": {- "type": "string"- },- "value": {- "type": "string"- }- },- "required": ["name", "value"]- },- "CreateSecretBody": {+ "UpdatePgsodiumConfigBody": {"type": "object","properties": {- "name": {+ "root_key": {"type": "string"- },- "value": {- "type": "string",- "pattern": "/^(?!SUPABASE_).*/"}},- "required": ["name", "value"]+ "required": ["root_key"]},"TypescriptResponse": {"type": "object",@@ -2158,6 +2542,46 @@}},"required": ["entitlement", "config", "status"]+ },+ "VanitySubdomainConfigResponse": {+ "type": "object",+ "properties": {+ "status": {+ "type": "string",+ "enum": ["not-used", "custom-domain-used", "active"]+ },+ "custom_domain": {+ "type": "string"+ }+ },+ "required": ["status"]+ },+ "VanitySubdomainBody": {+ "type": "object",+ "properties": {+ "vanity_subdomain": {+ "type": "string"+ }+ },+ "required": ["vanity_subdomain"]+ },+ "SubdomainAvailabilityResponse": {+ "type": "object",+ "properties": {+ "available": {+ "type": "boolean"+ }+ },+ "required": ["available"]+ },+ "ActivateVanitySubdomainResponse": {+ "type": "object",+ "properties": {+ "custom_domain": {+ "type": "string"+ }+ },+ "required": ["custom_domain"]}}}