From 498f175241166959fbcef7ed85ad66a6889b2aee Mon Sep 17 00:00:00 2001 From: avallete Date: Thu, 21 Nov 2024 22:11:10 +0100 Subject: [PATCH 1/2] chore: update api/beta.yaml from staging v1-yaml --- api/beta.yaml | 1283 +++++++++++++---------- cmd/projects.go | 30 +- internal/bootstrap/bootstrap.go | 2 +- internal/link/link.go | 4 +- internal/link/link_test.go | 26 +- internal/projects/apiKeys/api_keys.go | 2 +- internal/projects/create/create.go | 8 +- internal/projects/create/create_test.go | 4 +- internal/projects/list/list.go | 8 +- internal/utils/tenant/client.go | 2 +- pkg/api/client.gen.go | 334 +++++- pkg/api/types.gen.go | 311 ++++-- 12 files changed, 1256 insertions(+), 758 deletions(-) diff --git a/api/beta.yaml b/api/beta.yaml index 257a46e84..79ea7e8c4 100644 --- a/api/beta.yaml +++ b/api/beta.yaml @@ -13,13 +13,13 @@ paths: schema: type: string responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: - $ref: '#/components/schemas/BranchDetailResponse' - '500': + $ref: "#/components/schemas/BranchDetailResponse" + "500": description: Failed to retrieve database branch tags: - Environments @@ -41,15 +41,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UpdateBranchBody' + $ref: "#/components/schemas/UpdateBranchBody" responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: - $ref: '#/components/schemas/BranchResponse' - '500': + $ref: "#/components/schemas/BranchResponse" + "500": description: Failed to update database branch tags: - Environments @@ -67,13 +67,13 @@ paths: schema: type: string responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: - $ref: '#/components/schemas/BranchDeleteResponse' - '500': + $ref: "#/components/schemas/BranchDeleteResponse" + "500": description: Failed to delete database branch tags: - Environments @@ -92,13 +92,13 @@ paths: schema: type: string responses: - '201': - description: '' + "201": + description: "" content: application/json: schema: - $ref: '#/components/schemas/BranchResetResponse' - '500': + $ref: "#/components/schemas/BranchResetResponse" + "500": description: Failed to reset database branch tags: - Environments @@ -111,14 +111,14 @@ paths: description: Returns a list of all projects you've previously created. parameters: [] responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: type: array items: - $ref: '#/components/schemas/V1ProjectResponse' + $ref: "#/components/schemas/V1ProjectWithDatabaseResponse" tags: - Projects security: @@ -132,14 +132,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/V1CreateProjectBody' + $ref: "#/components/schemas/V1CreateProjectBodyDto" responses: - '201': - description: '' + "201": + description: "" content: application/json: schema: - $ref: '#/components/schemas/V1ProjectResponse' + $ref: "#/components/schemas/V1ProjectResponse" tags: - Projects security: @@ -151,15 +151,15 @@ paths: description: Returns a list of organizations that you currently belong to. parameters: [] responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: type: array items: - $ref: '#/components/schemas/OrganizationResponseV1' - '500': + $ref: "#/components/schemas/OrganizationResponseV1" + "500": description: Unexpected error listing organizations tags: - Organizations @@ -174,15 +174,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateOrganizationBodyV1' + $ref: "#/components/schemas/CreateOrganizationV1Dto" responses: - '201': - description: '' + "201": + description: "" content: application/json: schema: - $ref: '#/components/schemas/OrganizationResponseV1' - '500': + $ref: "#/components/schemas/OrganizationResponseV1" + "500": description: Unexpected error creating an organization tags: - Organizations @@ -191,7 +191,7 @@ paths: /v1/oauth/authorize: get: operationId: v1-authorize-user - summary: '[Beta] Authorize user through oauth' + summary: "[Beta] Authorize user through oauth" parameters: - name: client_id required: true @@ -242,8 +242,8 @@ paths: - S256 type: string responses: - '303': - description: '' + "303": + description: "" tags: - OAuth security: @@ -252,21 +252,21 @@ paths: /v1/oauth/token: post: operationId: v1-exchange-oauth-token - summary: '[Beta] Exchange auth code for user''s access and refresh token' + summary: "[Beta] Exchange auth code for user's access and refresh token" parameters: [] requestBody: required: true content: application/x-www-form-urlencoded: schema: - $ref: '#/components/schemas/OAuthTokenBody' + $ref: "#/components/schemas/OAuthTokenBody" responses: - '201': - description: '' + "201": + description: "" content: application/json: schema: - $ref: '#/components/schemas/OAuthTokenResponse' + $ref: "#/components/schemas/OAuthTokenResponse" tags: - OAuth security: @@ -283,13 +283,13 @@ paths: schema: type: string responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: - $ref: '#/components/schemas/SnippetList' - '500': + $ref: "#/components/schemas/SnippetList" + "500": description: Failed to list user's SQL snippets tags: - Database @@ -306,13 +306,13 @@ paths: schema: type: string responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: - $ref: '#/components/schemas/SnippetResponse' - '500': + $ref: "#/components/schemas/SnippetResponse" + "500": description: Failed to retrieve SQL snippet tags: - Database @@ -331,22 +331,27 @@ paths: minLength: 20 maxLength: 20 type: string + - name: reveal + required: true + in: query + schema: + type: boolean responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: type: array items: - $ref: '#/components/schemas/ApiKeyResponse' + $ref: "#/components/schemas/ApiKeyResponse" tags: - Secrets security: - bearer: [] post: operationId: createApiKey - summary: '[Alpha] Creates a new API key for the project' + summary: "[Alpha] Creates a new API key for the project" parameters: - name: ref required: true @@ -356,19 +361,24 @@ paths: minLength: 20 maxLength: 20 type: string + - name: reveal + required: true + in: query + schema: + type: boolean requestBody: required: true content: application/json: schema: - $ref: '#/components/schemas/CreateApiKeyBody' + $ref: "#/components/schemas/CreateApiKeyBody" responses: - '201': - description: '' + "201": + description: "" content: application/json: schema: - $ref: '#/components/schemas/ApiKeyResponse' + $ref: "#/components/schemas/ApiKeyResponse" tags: - Secrets security: @@ -376,7 +386,7 @@ paths: /v1/projects/{ref}/api-keys/{id}: patch: operationId: updateApiKey - summary: '[Alpha] Updates an API key for the project' + summary: "[Alpha] Updates an API key for the project" parameters: - name: ref required: true @@ -391,26 +401,64 @@ paths: in: path schema: type: string + - name: reveal + required: true + in: query + schema: + type: boolean requestBody: required: true content: application/json: schema: - $ref: '#/components/schemas/UpdateApiKeyBody' + $ref: "#/components/schemas/UpdateApiKeyBody" + responses: + "200": + description: "" + content: + application/json: + schema: + $ref: "#/components/schemas/ApiKeyResponse" + 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: '' + "200": + description: "" content: application/json: schema: - $ref: '#/components/schemas/ApiKeyResponse' + $ref: "#/components/schemas/ApiKeyResponse" tags: - Secrets security: - bearer: [] delete: operationId: deleteApiKey - summary: '[Alpha] Deletes an API key for the project' + summary: "[Alpha] Deletes an API key for the project" parameters: - name: ref required: true @@ -425,15 +473,20 @@ paths: in: path schema: type: string + - name: reveal + required: true + in: query + schema: + type: boolean responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: - $ref: '#/components/schemas/ApiKeyResponse' - '403': - description: '' + $ref: "#/components/schemas/ApiKeyResponse" + "403": + description: "" tags: - Secrets security: @@ -453,15 +506,15 @@ paths: maxLength: 20 type: string responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: type: array items: - $ref: '#/components/schemas/BranchResponse' - '500': + $ref: "#/components/schemas/BranchResponse" + "500": description: Failed to retrieve database branches tags: - Environments @@ -485,15 +538,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateBranchBody' + $ref: "#/components/schemas/CreateBranchBody" responses: - '201': - description: '' + "201": + description: "" content: application/json: schema: - $ref: '#/components/schemas/BranchResponse' - '500': + $ref: "#/components/schemas/BranchResponse" + "500": description: Failed to create database branch tags: - Environments @@ -513,9 +566,9 @@ paths: maxLength: 20 type: string responses: - '200': - description: '' - '500': + "200": + description: "" + "500": description: Failed to disable preview branching tags: - Environments @@ -524,7 +577,7 @@ paths: /v1/projects/{ref}/custom-hostname: get: operationId: v1-get-hostname-config - summary: '[Beta] Gets project''s custom hostname config' + summary: "[Beta] Gets project's custom hostname config" parameters: - name: ref required: true @@ -535,15 +588,15 @@ paths: maxLength: 20 type: string responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: - $ref: '#/components/schemas/UpdateCustomHostnameResponse' - '403': - description: '' - '500': + $ref: "#/components/schemas/UpdateCustomHostnameResponse" + "403": + description: "" + "500": description: Failed to retrieve project's custom hostname config tags: - Domains @@ -551,7 +604,7 @@ paths: - bearer: [] delete: operationId: v1-Delete hostname config - summary: '[Beta] Deletes a project''s custom hostname configuration' + summary: "[Beta] Deletes a project's custom hostname configuration" parameters: - name: ref required: true @@ -562,11 +615,11 @@ paths: maxLength: 20 type: string responses: - '200': - description: '' - '403': - description: '' - '500': + "200": + description: "" + "403": + description: "" + "500": description: Failed to delete project custom hostname configuration tags: - Domains @@ -575,7 +628,7 @@ paths: /v1/projects/{ref}/custom-hostname/initialize: post: operationId: v1-update-hostname-config - summary: '[Beta] Updates project''s custom hostname configuration' + summary: "[Beta] Updates project's custom hostname configuration" parameters: - name: ref required: true @@ -590,17 +643,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UpdateCustomHostnameBody' + $ref: "#/components/schemas/UpdateCustomHostnameBody" responses: - '201': - description: '' + "201": + description: "" content: application/json: schema: - $ref: '#/components/schemas/UpdateCustomHostnameResponse' - '403': - description: '' - '500': + $ref: "#/components/schemas/UpdateCustomHostnameResponse" + "403": + description: "" + "500": description: Failed to update project custom hostname configuration tags: - Domains @@ -622,15 +675,15 @@ paths: maxLength: 20 type: string responses: - '201': - description: '' + "201": + description: "" content: application/json: schema: - $ref: '#/components/schemas/UpdateCustomHostnameResponse' - '403': - description: '' - '500': + $ref: "#/components/schemas/UpdateCustomHostnameResponse" + "403": + description: "" + "500": description: Failed to verify project custom hostname configuration tags: - Domains @@ -639,7 +692,7 @@ paths: /v1/projects/{ref}/custom-hostname/activate: post: operationId: v1-activate-custom-hostname - summary: '[Beta] Activates a custom hostname for a project.' + summary: "[Beta] Activates a custom hostname for a project." parameters: - name: ref required: true @@ -650,15 +703,15 @@ paths: maxLength: 20 type: string responses: - '201': - description: '' + "201": + description: "" content: application/json: schema: - $ref: '#/components/schemas/UpdateCustomHostnameResponse' - '403': - description: '' - '500': + $ref: "#/components/schemas/UpdateCustomHostnameResponse" + "403": + description: "" + "500": description: Failed to activate project custom hostname configuration tags: - Domains @@ -667,7 +720,7 @@ paths: /v1/projects/{ref}/network-bans/retrieve: post: operationId: v1-list-all-network-bans - summary: '[Beta] Gets project''s network bans' + summary: "[Beta] Gets project's network bans" parameters: - name: ref required: true @@ -678,15 +731,15 @@ paths: maxLength: 20 type: string responses: - '201': - description: '' + "201": + description: "" content: application/json: schema: - $ref: '#/components/schemas/NetworkBanResponse' - '403': - description: '' - '500': + $ref: "#/components/schemas/NetworkBanResponse" + "403": + description: "" + "500": description: Failed to retrieve project's network bans tags: - Projects @@ -695,7 +748,7 @@ paths: /v1/projects/{ref}/network-bans: delete: operationId: v1-delete-network-bans - summary: '[Beta] Remove network bans.' + summary: "[Beta] Remove network bans." parameters: - name: ref required: true @@ -710,13 +763,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RemoveNetworkBanRequest' + $ref: "#/components/schemas/RemoveNetworkBanRequest" responses: - '200': - description: '' - '403': - description: '' - '500': + "200": + description: "" + "403": + description: "" + "500": description: Failed to remove network bans. tags: - Projects @@ -725,7 +778,7 @@ paths: /v1/projects/{ref}/network-restrictions: get: operationId: v1-get-network-restrictions - summary: '[Beta] Gets project''s network restrictions' + summary: "[Beta] Gets project's network restrictions" parameters: - name: ref required: true @@ -736,15 +789,15 @@ paths: maxLength: 20 type: string responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: - $ref: '#/components/schemas/NetworkRestrictionsResponse' - '403': - description: '' - '500': + $ref: "#/components/schemas/NetworkRestrictionsResponse" + "403": + description: "" + "500": description: Failed to retrieve project's network restrictions tags: - Projects @@ -753,7 +806,7 @@ paths: /v1/projects/{ref}/network-restrictions/apply: post: operationId: v1-update-network-restrictions - summary: '[Beta] Updates project''s network restrictions' + summary: "[Beta] Updates project's network restrictions" parameters: - name: ref required: true @@ -768,17 +821,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/NetworkRestrictionsRequest' + $ref: "#/components/schemas/NetworkRestrictionsRequest" responses: - '201': - description: '' + "201": + description: "" content: application/json: schema: - $ref: '#/components/schemas/NetworkRestrictionsResponse' - '403': - description: '' - '500': + $ref: "#/components/schemas/NetworkRestrictionsResponse" + "403": + description: "" + "500": description: Failed to update project network restrictions tags: - Projects @@ -787,7 +840,7 @@ paths: /v1/projects/{ref}/pgsodium: get: operationId: v1-get-pgsodium-config - summary: '[Beta] Gets project''s pgsodium config' + summary: "[Beta] Gets project's pgsodium config" parameters: - name: ref required: true @@ -798,15 +851,15 @@ paths: maxLength: 20 type: string responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: - $ref: '#/components/schemas/PgsodiumConfigResponse' - '403': - description: '' - '500': + $ref: "#/components/schemas/PgsodiumConfigResponse" + "403": + description: "" + "500": description: Failed to retrieve project's pgsodium config tags: - Secrets @@ -831,17 +884,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UpdatePgsodiumConfigBody' + $ref: "#/components/schemas/UpdatePgsodiumConfigBody" responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: - $ref: '#/components/schemas/PgsodiumConfigResponse' - '403': - description: '' - '500': + $ref: "#/components/schemas/PgsodiumConfigResponse" + "403": + description: "" + "500": description: Failed to update project's pgsodium config tags: - Secrets @@ -861,15 +914,15 @@ paths: maxLength: 20 type: string responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: - $ref: '#/components/schemas/PostgrestConfigWithJWTSecretResponse' - '403': - description: '' - '500': + $ref: "#/components/schemas/PostgrestConfigWithJWTSecretResponse" + "403": + description: "" + "500": description: Failed to retrieve project's postgrest config tags: - Rest @@ -892,17 +945,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UpdatePostgrestConfigBody' + $ref: "#/components/schemas/UpdatePostgrestConfigBody" responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: - $ref: '#/components/schemas/V1PostgrestConfigResponse' - '403': - description: '' - '500': + $ref: "#/components/schemas/V1PostgrestConfigResponse" + "403": + description: "" + "500": description: Failed to update project's postgrest config tags: - Rest @@ -922,13 +975,13 @@ paths: maxLength: 20 type: string responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: - $ref: '#/components/schemas/V1ProjectResponse' - '500': + $ref: "#/components/schemas/V1ProjectWithDatabaseResponse" + "500": description: Failed to retrieve project tags: - Projects @@ -947,14 +1000,14 @@ paths: maxLength: 20 type: string responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: - $ref: '#/components/schemas/V1ProjectRefResponse' - '403': - description: '' + $ref: "#/components/schemas/V1ProjectRefResponse" + "403": + description: "" tags: - Projects security: @@ -974,17 +1027,17 @@ paths: maxLength: 20 type: string responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: type: array items: - $ref: '#/components/schemas/SecretResponse' - '403': - description: '' - '500': + $ref: "#/components/schemas/SecretResponse" + "403": + description: "" + "500": description: Failed to retrieve project's secrets tags: - Secrets @@ -1010,13 +1063,13 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CreateSecretBody' + $ref: "#/components/schemas/CreateSecretBody" responses: - '201': - description: '' - '403': - description: '' - '500': + "201": + description: "" + "403": + description: "" + "500": description: Failed to create project's secrets tags: - Secrets @@ -1044,15 +1097,15 @@ paths: items: type: string responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: type: object - '403': - description: '' - '500': + "403": + description: "" + "500": description: Failed to delete secrets with given names tags: - Secrets @@ -1061,7 +1114,7 @@ paths: /v1/projects/{ref}/ssl-enforcement: get: operationId: v1-get-ssl-enforcement-config - summary: '[Beta] Get project''s SSL enforcement configuration.' + summary: "[Beta] Get project's SSL enforcement configuration." parameters: - name: ref required: true @@ -1072,15 +1125,15 @@ paths: maxLength: 20 type: string responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: - $ref: '#/components/schemas/SslEnforcementResponse' - '403': - description: '' - '500': + $ref: "#/components/schemas/SslEnforcementResponse" + "403": + description: "" + "500": description: Failed to retrieve project's SSL enforcement config tags: - Database @@ -1088,7 +1141,7 @@ paths: - bearer: [] put: operationId: v1-update-ssl-enforcement-config - summary: '[Beta] Update project''s SSL enforcement configuration.' + summary: "[Beta] Update project's SSL enforcement configuration." parameters: - name: ref required: true @@ -1103,17 +1156,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SslEnforcementRequest' + $ref: "#/components/schemas/SslEnforcementRequest" responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: - $ref: '#/components/schemas/SslEnforcementResponse' - '403': - description: '' - '500': + $ref: "#/components/schemas/SslEnforcementResponse" + "403": + description: "" + "500": description: Failed to update project's SSL enforcement configuration. tags: - Database @@ -1140,15 +1193,15 @@ paths: maxLength: 20 type: string responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: - $ref: '#/components/schemas/TypescriptResponse' - '403': - description: '' - '500': + $ref: "#/components/schemas/TypescriptResponse" + "403": + description: "" + "500": description: Failed to generate TypeScript types tags: - Database @@ -1157,7 +1210,7 @@ paths: /v1/projects/{ref}/vanity-subdomain: get: operationId: v1-get-vanity-subdomain-config - summary: '[Beta] Gets current vanity subdomain config' + summary: "[Beta] Gets current vanity subdomain config" parameters: - name: ref required: true @@ -1168,15 +1221,15 @@ paths: maxLength: 20 type: string responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: - $ref: '#/components/schemas/VanitySubdomainConfigResponse' - '403': - description: '' - '500': + $ref: "#/components/schemas/VanitySubdomainConfigResponse" + "403": + description: "" + "500": description: Failed to get project vanity subdomain configuration tags: - Domains @@ -1184,7 +1237,7 @@ paths: - bearer: [] delete: operationId: v1-deactivate-vanity-subdomain-config - summary: '[Beta] Deletes a project''s vanity subdomain configuration' + summary: "[Beta] Deletes a project's vanity subdomain configuration" parameters: - name: ref required: true @@ -1195,11 +1248,11 @@ paths: maxLength: 20 type: string responses: - '200': - description: '' - '403': - description: '' - '500': + "200": + description: "" + "403": + description: "" + "500": description: Failed to delete project vanity subdomain configuration tags: - Domains @@ -1208,7 +1261,7 @@ paths: /v1/projects/{ref}/vanity-subdomain/check-availability: post: operationId: v1-check-vanity-subdomain-availability - summary: '[Beta] Checks vanity subdomain availability' + summary: "[Beta] Checks vanity subdomain availability" parameters: - name: ref required: true @@ -1223,17 +1276,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VanitySubdomainBody' + $ref: "#/components/schemas/VanitySubdomainBody" responses: - '201': - description: '' + "201": + description: "" content: application/json: schema: - $ref: '#/components/schemas/SubdomainAvailabilityResponse' - '403': - description: '' - '500': + $ref: "#/components/schemas/SubdomainAvailabilityResponse" + "403": + description: "" + "500": description: Failed to check project vanity subdomain configuration tags: - Domains @@ -1242,7 +1295,7 @@ paths: /v1/projects/{ref}/vanity-subdomain/activate: post: operationId: v1-activate-vanity-subdomain-config - summary: '[Beta] Activates a vanity subdomain for a project.' + summary: "[Beta] Activates a vanity subdomain for a project." parameters: - name: ref required: true @@ -1257,17 +1310,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VanitySubdomainBody' + $ref: "#/components/schemas/VanitySubdomainBody" responses: - '201': - description: '' + "201": + description: "" content: application/json: schema: - $ref: '#/components/schemas/ActivateVanitySubdomainResponse' - '403': - description: '' - '500': + $ref: "#/components/schemas/ActivateVanitySubdomainResponse" + "403": + description: "" + "500": description: Failed to activate project vanity subdomain configuration tags: - Domains @@ -1276,7 +1329,7 @@ paths: /v1/projects/{ref}/upgrade: post: operationId: v1-upgrade-postgres-version - summary: '[Beta] Upgrades the project''s Postgres version' + summary: "[Beta] Upgrades the project's Postgres version" parameters: - name: ref required: true @@ -1291,17 +1344,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UpgradeDatabaseBody' + $ref: "#/components/schemas/UpgradeDatabaseBody" responses: - '201': - description: '' + "201": + description: "" content: application/json: schema: - $ref: '#/components/schemas/ProjectUpgradeInitiateResponse' - '403': - description: '' - '500': + $ref: "#/components/schemas/ProjectUpgradeInitiateResponse" + "403": + description: "" + "500": description: Failed to initiate project upgrade tags: - Projects @@ -1310,7 +1363,7 @@ paths: /v1/projects/{ref}/upgrade/eligibility: get: operationId: v1-get-postgres-upgrade-eligibility - summary: '[Beta] Returns the project''s eligibility for upgrades' + summary: "[Beta] Returns the project's eligibility for upgrades" parameters: - name: ref required: true @@ -1321,15 +1374,15 @@ paths: maxLength: 20 type: string responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: - $ref: '#/components/schemas/ProjectUpgradeEligibilityResponse' - '403': - description: '' - '500': + $ref: "#/components/schemas/ProjectUpgradeEligibilityResponse" + "403": + description: "" + "500": description: Failed to determine project upgrade eligibility tags: - Projects @@ -1338,7 +1391,7 @@ paths: /v1/projects/{ref}/upgrade/status: get: operationId: v1-get-postgres-upgrade-status - summary: '[Beta] Gets the latest status of the project''s upgrade' + summary: "[Beta] Gets the latest status of the project's upgrade" parameters: - name: ref required: true @@ -1354,15 +1407,15 @@ paths: schema: type: string responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: - $ref: '#/components/schemas/DatabaseUpgradeStatusResponse' - '403': - description: '' - '500': + $ref: "#/components/schemas/DatabaseUpgradeStatusResponse" + "403": + description: "" + "500": description: Failed to retrieve project upgrade status tags: - Projects @@ -1382,13 +1435,13 @@ paths: maxLength: 20 type: string responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: - $ref: '#/components/schemas/ReadOnlyStatusResponse' - '500': + $ref: "#/components/schemas/ReadOnlyStatusResponse" + "500": description: Failed to get project readonly mode status tags: - Database @@ -1408,9 +1461,9 @@ paths: maxLength: 20 type: string responses: - '201': - description: '' - '500': + "201": + description: "" + "500": description: Failed to disable project's readonly mode tags: - Database @@ -1419,7 +1472,7 @@ paths: /v1/projects/{ref}/read-replicas/setup: post: operationId: v1-setup-a-read-replica - summary: '[Beta] Set up a read replica' + summary: "[Beta] Set up a read replica" parameters: - name: ref required: true @@ -1434,13 +1487,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SetUpReadReplicaBody' + $ref: "#/components/schemas/SetUpReadReplicaBody" responses: - '201': - description: '' - '403': - description: '' - '500': + "201": + description: "" + "403": + description: "" + "500": description: Failed to set up read replica tags: - Database @@ -1449,7 +1502,7 @@ paths: /v1/projects/{ref}/read-replicas/remove: post: operationId: v1-remove-a-read-replica - summary: '[Beta] Remove a read replica' + summary: "[Beta] Remove a read replica" parameters: - name: ref required: true @@ -1464,13 +1517,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RemoveReadReplicaBody' + $ref: "#/components/schemas/RemoveReadReplicaBody" responses: - '201': - description: '' - '403': - description: '' - '500': + "201": + description: "" + "403": + description: "" + "500": description: Failed to remove read replica tags: - Database @@ -1511,17 +1564,17 @@ paths: - rest - storage responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: type: array items: - $ref: '#/components/schemas/V1ServiceHealthResponse' - '403': - description: '' - '500': + $ref: "#/components/schemas/V1ServiceHealthResponse" + "403": + description: "" + "500": description: Failed to retrieve project's service health status tags: - Projects @@ -1541,15 +1594,15 @@ paths: maxLength: 20 type: string responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: - $ref: '#/components/schemas/StorageConfigResponse' - '403': - description: '' - '500': + $ref: "#/components/schemas/StorageConfigResponse" + "403": + description: "" + "500": description: Failed to retrieve project's storage config tags: - Storage @@ -1572,13 +1625,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UpdateStorageConfigBody' + $ref: "#/components/schemas/UpdateStorageConfigBody" responses: - '200': - description: '' - '403': - description: '' - '500': + "200": + description: "" + "403": + description: "" + "500": description: Failed to update project's storage config tags: - Storage @@ -1598,13 +1651,13 @@ paths: maxLength: 20 type: string responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: - $ref: '#/components/schemas/PostgresConfigResponse' - '500': + $ref: "#/components/schemas/PostgresConfigResponse" + "500": description: Failed to retrieve project's Postgres config tags: - Database @@ -1627,17 +1680,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UpdatePostgresConfigBody' + $ref: "#/components/schemas/UpdatePostgresConfigBody" responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: - $ref: '#/components/schemas/PostgresConfigResponse' - '403': - description: '' - '500': + $ref: "#/components/schemas/PostgresConfigResponse" + "403": + description: "" + "500": description: Failed to update project's Postgres config tags: - Database @@ -1657,13 +1710,13 @@ paths: maxLength: 20 type: string responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: - $ref: '#/components/schemas/V1PgbouncerConfigResponse' - '500': + $ref: "#/components/schemas/V1PgbouncerConfigResponse" + "500": description: Failed to retrieve project's pgbouncer config tags: - Database @@ -1681,15 +1734,15 @@ paths: maxLength: 20 type: string responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: type: array items: - $ref: '#/components/schemas/SupavisorConfigResponse' - '500': + $ref: "#/components/schemas/SupavisorConfigResponse" + "500": description: Failed to retrieve project's supavisor config tags: - Database @@ -1712,17 +1765,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UpdateSupavisorConfigBody' + $ref: "#/components/schemas/UpdateSupavisorConfigBody" responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: - $ref: '#/components/schemas/UpdateSupavisorConfigResponse' - '403': - description: '' - '500': + $ref: "#/components/schemas/UpdateSupavisorConfigResponse" + "403": + description: "" + "500": description: Failed to update project's supavisor config tags: - Database @@ -1742,15 +1795,15 @@ paths: maxLength: 20 type: string responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: - $ref: '#/components/schemas/AuthConfigResponse' - '403': - description: '' - '500': + $ref: "#/components/schemas/AuthConfigResponse" + "403": + description: "" + "500": description: Failed to retrieve project's auth config tags: - Auth @@ -1773,17 +1826,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UpdateAuthConfigBody' + $ref: "#/components/schemas/UpdateAuthConfigBody" responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: - $ref: '#/components/schemas/AuthConfigResponse' - '403': - description: '' - '500': + $ref: "#/components/schemas/AuthConfigResponse" + "403": + description: "" + "500": description: Failed to update project's auth config tags: - Auth @@ -1807,23 +1860,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateThirdPartyAuthBody' + $ref: "#/components/schemas/CreateThirdPartyAuthBody" responses: - '201': - description: '' + "201": + description: "" content: application/json: schema: - $ref: '#/components/schemas/ThirdPartyAuth' - '403': - description: '' + $ref: "#/components/schemas/ThirdPartyAuth" + "403": + description: "" tags: - Auth security: - bearer: [] get: operationId: listTPAForProject - summary: '[Alpha] Lists all third-party auth integrations' + summary: "[Alpha] Lists all third-party auth integrations" parameters: - name: ref required: true @@ -1834,16 +1887,16 @@ paths: maxLength: 20 type: string responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: type: array items: - $ref: '#/components/schemas/ThirdPartyAuth' - '403': - description: '' + $ref: "#/components/schemas/ThirdPartyAuth" + "403": + description: "" tags: - Auth security: @@ -1851,7 +1904,7 @@ paths: /v1/projects/{ref}/config/auth/third-party-auth/{tpa_id}: delete: operationId: deleteTPAForProject - summary: '[Alpha] Removes a third-party auth integration' + summary: "[Alpha] Removes a third-party auth integration" parameters: - name: ref required: true @@ -1867,21 +1920,21 @@ paths: schema: type: string responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: - $ref: '#/components/schemas/ThirdPartyAuth' - '403': - description: '' + $ref: "#/components/schemas/ThirdPartyAuth" + "403": + description: "" tags: - Auth security: - bearer: [] get: operationId: getTPAForProject - summary: '[Alpha] Get a third-party integration' + summary: "[Alpha] Get a third-party integration" parameters: - name: ref required: true @@ -1897,14 +1950,14 @@ paths: schema: type: string responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: - $ref: '#/components/schemas/ThirdPartyAuth' - '403': - description: '' + $ref: "#/components/schemas/ThirdPartyAuth" + "403": + description: "" tags: - Auth security: @@ -1912,7 +1965,7 @@ paths: /v1/projects/{ref}/database/query: post: operationId: v1-run-a-query - summary: '[Beta] Run sql query' + summary: "[Beta] Run sql query" parameters: - name: ref required: true @@ -1927,17 +1980,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/V1RunQueryBody' + $ref: "#/components/schemas/V1RunQueryBody" responses: - '201': - description: '' + "201": + description: "" content: application/json: schema: type: object - '403': - description: '' - '500': + "403": + description: "" + "500": description: Failed to run sql query tags: - Database @@ -1946,7 +1999,7 @@ paths: /v1/projects/{ref}/database/webhooks/enable: post: operationId: v1-enable-database-webhook - summary: '[Beta] Enables Database Webhooks on the project' + summary: "[Beta] Enables Database Webhooks on the project" parameters: - name: ref required: true @@ -1957,11 +2010,11 @@ paths: maxLength: 20 type: string responses: - '201': - description: '' - '403': - description: '' - '500': + "201": + description: "" + "403": + description: "" + "500": description: Failed to enable Database Webhooks on the project tags: - Database @@ -2012,25 +2065,32 @@ paths: in: query schema: type: string + - name: compute_multiplier + required: false + in: query + schema: + minimum: 1 + maximum: 4 + type: number requestBody: required: true content: application/json: schema: - $ref: '#/components/schemas/V1CreateFunctionBody' + $ref: "#/components/schemas/V1CreateFunctionBody" application/vnd.denoland.eszip: schema: - $ref: '#/components/schemas/V1CreateFunctionBody' + $ref: "#/components/schemas/V1CreateFunctionBody" responses: - '201': - description: '' + "201": + description: "" content: application/json: schema: - $ref: '#/components/schemas/FunctionResponse' - '403': - description: '' - '500': + $ref: "#/components/schemas/FunctionResponse" + "403": + description: "" + "500": description: Failed to create project's function tags: - Edge Functions @@ -2050,17 +2110,17 @@ paths: maxLength: 20 type: string responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: type: array items: - $ref: '#/components/schemas/FunctionResponse' - '403': - description: '' - '500': + $ref: "#/components/schemas/FunctionResponse" + "403": + description: "" + "500": description: Failed to retrieve project's functions tags: - Edge Functions @@ -2088,15 +2148,15 @@ paths: pattern: /^[A-Za-z0-9_-]+$/ type: string responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: - $ref: '#/components/schemas/FunctionSlugResponse' - '403': - description: '' - '500': + $ref: "#/components/schemas/FunctionSlugResponse" + "403": + description: "" + "500": description: Failed to retrieve function with given slug tags: - Edge Functions @@ -2153,25 +2213,32 @@ paths: in: query schema: type: string + - name: compute_multiplier + required: false + in: query + schema: + minimum: 1 + maximum: 4 + type: number requestBody: required: true content: application/json: schema: - $ref: '#/components/schemas/V1UpdateFunctionBody' + $ref: "#/components/schemas/V1UpdateFunctionBody" application/vnd.denoland.eszip: schema: - $ref: '#/components/schemas/V1UpdateFunctionBody' + $ref: "#/components/schemas/V1UpdateFunctionBody" responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: - $ref: '#/components/schemas/FunctionResponse' - '403': - description: '' - '500': + $ref: "#/components/schemas/FunctionResponse" + "403": + description: "" + "500": description: Failed to update function with given slug tags: - Edge Functions @@ -2198,11 +2265,11 @@ paths: pattern: /^[A-Za-z0-9_-]+$/ type: string responses: - '200': - description: '' - '403': - description: '' - '500': + "200": + description: "" + "403": + description: "" + "500": description: Failed to delete function with given slug tags: - Edge Functions @@ -2230,11 +2297,11 @@ paths: pattern: /^[A-Za-z0-9_-]+$/ type: string responses: - '200': - description: '' - '403': - description: '' - '500': + "200": + description: "" + "403": + description: "" + "500": description: Failed to retrieve function body with given slug tags: - Edge Functions @@ -2254,17 +2321,17 @@ paths: maxLength: 20 type: string responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: type: array items: - $ref: '#/components/schemas/V1StorageBucketResponse' - '403': - description: '' - '500': + $ref: "#/components/schemas/V1StorageBucketResponse" + "403": + description: "" + "500": description: Failed to get list of buckets tags: - Storage @@ -2288,17 +2355,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateProviderBody' + $ref: "#/components/schemas/CreateProviderBody" responses: - '201': - description: '' + "201": + description: "" content: application/json: schema: - $ref: '#/components/schemas/CreateProviderResponse' - '403': - description: '' - '404': + $ref: "#/components/schemas/CreateProviderResponse" + "403": + description: "" + "404": description: SAML 2.0 support is not enabled for this project tags: - Auth @@ -2317,15 +2384,15 @@ paths: maxLength: 20 type: string responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: - $ref: '#/components/schemas/ListProvidersResponse' - '403': - description: '' - '404': + $ref: "#/components/schemas/ListProvidersResponse" + "403": + description: "" + "404": description: SAML 2.0 support is not enabled for this project tags: - Auth @@ -2350,15 +2417,15 @@ paths: schema: type: string responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: - $ref: '#/components/schemas/GetProviderResponse' - '403': - description: '' - '404': + $ref: "#/components/schemas/GetProviderResponse" + "403": + description: "" + "404": description: >- Either SAML 2.0 was not enabled for this project, or the provider does not exist @@ -2388,17 +2455,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UpdateProviderBody' + $ref: "#/components/schemas/UpdateProviderBody" responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: - $ref: '#/components/schemas/UpdateProviderResponse' - '403': - description: '' - '404': + $ref: "#/components/schemas/UpdateProviderResponse" + "403": + description: "" + "404": description: >- Either SAML 2.0 was not enabled for this project, or the provider does not exist @@ -2424,15 +2491,15 @@ paths: schema: type: string responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: - $ref: '#/components/schemas/DeleteProviderResponse' - '403': - description: '' - '404': + $ref: "#/components/schemas/DeleteProviderResponse" + "403": + description: "" + "404": description: >- Either SAML 2.0 was not enabled for this project, or the provider does not exist @@ -2454,13 +2521,13 @@ paths: maxLength: 20 type: string responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: - $ref: '#/components/schemas/V1BackupsResponse' - '500': + $ref: "#/components/schemas/V1BackupsResponse" + "500": description: Failed to get backups tags: - Database @@ -2484,10 +2551,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/V1RestorePitrBody' + $ref: "#/components/schemas/V1RestorePitrBody" responses: - '201': - description: '' + "201": + description: "" tags: - Database security: @@ -2503,14 +2570,14 @@ paths: schema: type: string responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: type: array items: - $ref: '#/components/schemas/V1OrganizationMemberResponse' + $ref: "#/components/schemas/V1OrganizationMemberResponse" tags: - Organizations security: @@ -2526,12 +2593,12 @@ paths: schema: type: string responses: - '200': - description: '' + "200": + description: "" content: application/json: schema: - $ref: '#/components/schemas/V1OrganizationSlugResponse' + $ref: "#/components/schemas/V1OrganizationSlugResponse" tags: - Organizations security: @@ -2728,7 +2795,7 @@ components: - version - postgres_engine - release_channel - V1ProjectResponse: + V1ProjectWithDatabaseResponse: type: object properties: id: @@ -2747,9 +2814,9 @@ components: created_at: type: string description: Creation timestamp - example: '2023-03-29T16:32:59Z' + example: "2023-03-29T16:32:59Z" database: - $ref: '#/components/schemas/V1DatabaseResponse' + $ref: "#/components/schemas/V1DatabaseResponse" status: enum: - ACTIVE_HEALTHY @@ -2774,36 +2841,9 @@ components: - name - region - created_at + - database - 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' - V1CreateProjectBody: + V1CreateProjectBodyDto: type: object properties: db_pass: @@ -2820,13 +2860,13 @@ components: enum: - free - pro + deprecated: true description: >- Subscription Plan is now set on organization level and is ignored in this request - example: free - deprecated: true region: type: string + description: Region you want your server to reside in enum: - us-east-1 - us-east-2 @@ -2846,28 +2886,96 @@ components: - 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' + 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' + type: string + enum: + - internal + - alpha + - beta + - ga + - withdrawn + description: Release channel. If not provided, GA will be used. postgres_engine: - $ref: '#/components/schemas/PostgresEngine' + 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: + - id + - organization_id + - name + - region + - created_at + - status OrganizationResponseV1: type: object properties: @@ -2878,13 +2986,14 @@ components: required: - id - name - CreateOrganizationBodyV1: + CreateOrganizationV1Dto: type: object properties: name: type: string required: - name + additionalProperties: false OAuthTokenBody: type: object properties: @@ -2975,11 +3084,11 @@ components: description: type: string project: - $ref: '#/components/schemas/SnippetProject' + $ref: "#/components/schemas/SnippetProject" owner: - $ref: '#/components/schemas/SnippetUser' + $ref: "#/components/schemas/SnippetUser" updated_by: - $ref: '#/components/schemas/SnippetUser' + $ref: "#/components/schemas/SnippetUser" required: - id - inserted_at @@ -2996,7 +3105,7 @@ components: data: type: array items: - $ref: '#/components/schemas/SnippetMeta' + $ref: "#/components/schemas/SnippetMeta" required: - data SnippetContent: @@ -3037,13 +3146,13 @@ components: description: type: string project: - $ref: '#/components/schemas/SnippetProject' + $ref: "#/components/schemas/SnippetProject" owner: - $ref: '#/components/schemas/SnippetUser' + $ref: "#/components/schemas/SnippetUser" updated_by: - $ref: '#/components/schemas/SnippetUser' + $ref: "#/components/schemas/SnippetUser" content: - $ref: '#/components/schemas/SnippetContent' + $ref: "#/components/schemas/SnippetContent" required: - id - inserted_at @@ -3091,7 +3200,7 @@ components: secret_jwt_template: nullable: true allOf: - - $ref: '#/components/schemas/ApiKeySecretJWTTemplate' + - $ref: "#/components/schemas/ApiKeySecretJWTTemplate" inserted_at: type: string nullable: true @@ -3115,7 +3224,7 @@ components: secret_jwt_template: nullable: true allOf: - - $ref: '#/components/schemas/ApiKeySecretJWTTemplate' + - $ref: "#/components/schemas/ApiKeySecretJWTTemplate" required: - type UpdateApiKeyBody: @@ -3127,16 +3236,44 @@ components: secret_jwt_template: nullable: true allOf: - - $ref: '#/components/schemas/ApiKeySecretJWTTemplate' + - $ref: "#/components/schemas/ApiKeySecretJWTTemplate" + 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: desired_instance_size: - $ref: '#/components/schemas/DesiredInstanceSize' + $ref: "#/components/schemas/DesiredInstanceSize" release_channel: - $ref: '#/components/schemas/ReleaseChannel' + $ref: "#/components/schemas/ReleaseChannel" postgres_engine: - $ref: '#/components/schemas/PostgresEngine' + $ref: "#/components/schemas/PostgresEngine" branch_name: type: string git_branch: @@ -3172,11 +3309,11 @@ components: validation_records: type: array items: - $ref: '#/components/schemas/ValidationRecord' + $ref: "#/components/schemas/ValidationRecord" validation_errors: type: array items: - $ref: '#/components/schemas/ValidationError' + $ref: "#/components/schemas/ValidationError" required: - status - validation_records @@ -3201,9 +3338,9 @@ components: hostname: type: string ssl: - $ref: '#/components/schemas/SslValidation' + $ref: "#/components/schemas/SslValidation" ownership_verification: - $ref: '#/components/schemas/OwnershipVerification' + $ref: "#/components/schemas/OwnershipVerification" custom_origin_server: type: string verification_errors: @@ -3233,7 +3370,7 @@ components: items: type: object result: - $ref: '#/components/schemas/CustomHostnameDetails' + $ref: "#/components/schemas/CustomHostnameDetails" required: - success - errors @@ -3253,7 +3390,7 @@ components: custom_hostname: type: string data: - $ref: '#/components/schemas/CfResponse' + $ref: "#/components/schemas/CfResponse" required: - status - custom_hostname @@ -3303,9 +3440,9 @@ components: - allowed type: string config: - $ref: '#/components/schemas/NetworkRestrictionsRequest' + $ref: "#/components/schemas/NetworkRestrictionsRequest" old_config: - $ref: '#/components/schemas/NetworkRestrictionsRequest' + $ref: "#/components/schemas/NetworkRestrictionsRequest" status: enum: - stored @@ -3436,7 +3573,7 @@ components: type: object properties: currentConfig: - $ref: '#/components/schemas/SslEnforcements' + $ref: "#/components/schemas/SslEnforcements" appliedSuccessfully: type: boolean required: @@ -3446,7 +3583,7 @@ components: type: object properties: requestedConfig: - $ref: '#/components/schemas/SslEnforcements' + $ref: "#/components/schemas/SslEnforcements" required: - requestedConfig TypescriptResponse: @@ -3494,7 +3631,7 @@ components: type: object properties: release_channel: - $ref: '#/components/schemas/ReleaseChannel' + $ref: "#/components/schemas/ReleaseChannel" target_version: type: string required: @@ -3511,9 +3648,9 @@ components: type: object properties: postgres_version: - $ref: '#/components/schemas/PostgresEngine' + $ref: "#/components/schemas/PostgresEngine" release_channel: - $ref: '#/components/schemas/ReleaseChannel' + $ref: "#/components/schemas/ReleaseChannel" app_version: type: string required: @@ -3524,7 +3661,7 @@ components: type: object properties: current_app_version_release_channel: - $ref: '#/components/schemas/ReleaseChannel' + $ref: "#/components/schemas/ReleaseChannel" duration_estimate_hours: type: integer eligible: @@ -3536,7 +3673,7 @@ components: target_upgrade_versions: type: array items: - $ref: '#/components/schemas/ProjectVersion' + $ref: "#/components/schemas/ProjectVersion" potential_breaking_changes: type: array items: @@ -3611,7 +3748,7 @@ components: databaseUpgradeStatus: nullable: true allOf: - - $ref: '#/components/schemas/DatabaseUpgradeStatus' + - $ref: "#/components/schemas/DatabaseUpgradeStatus" required: - databaseUpgradeStatus ReadOnlyStatusResponse: @@ -3683,8 +3820,8 @@ components: properties: info: oneOf: - - $ref: '#/components/schemas/AuthHealthResponse' - - $ref: '#/components/schemas/RealtimeHealthResponse' + - $ref: "#/components/schemas/AuthHealthResponse" + - $ref: "#/components/schemas/RealtimeHealthResponse" name: enum: - auth @@ -3719,7 +3856,7 @@ components: type: object properties: imageTransformation: - $ref: '#/components/schemas/StorageFeatureImageTransformation' + $ref: "#/components/schemas/StorageFeatureImageTransformation" required: - imageTransformation StorageConfigResponse: @@ -3729,7 +3866,7 @@ components: type: integer format: int64 features: - $ref: '#/components/schemas/StorageFeatures' + $ref: "#/components/schemas/StorageFeatures" required: - fileSizeLimit - features @@ -3742,7 +3879,7 @@ components: maximum: 53687091200 format: int64 features: - $ref: '#/components/schemas/StorageFeatures' + $ref: "#/components/schemas/StorageFeatures" PostgresConfigResponse: type: object properties: @@ -4809,7 +4946,7 @@ components: - abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ:0123456789 - abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:0123456789 - abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:0123456789:!@#$%^&*()_+-=[]{};'\\:\"|<>?,./`~ - - '' + - "" security_manual_linking_enabled: type: boolean security_update_password_require_reauthentication: @@ -5090,6 +5227,10 @@ components: type: string verify_jwt: type: boolean + compute_multiplier: + type: number + minimum: 1 + maximum: 4 required: - slug - name @@ -5125,6 +5266,8 @@ components: type: string import_map_path: type: string + compute_multiplier: + type: number required: - version - created_at @@ -5164,6 +5307,8 @@ components: type: string import_map_path: type: string + compute_multiplier: + type: number required: - version - created_at @@ -5181,6 +5326,10 @@ components: type: string verify_jwt: type: boolean + compute_multiplier: + type: number + minimum: 1 + maximum: 4 V1StorageBucketResponse: type: object properties: @@ -5226,7 +5375,7 @@ components: keys: type: object additionalProperties: - $ref: '#/components/schemas/AttributeValue' + $ref: "#/components/schemas/AttributeValue" required: - keys CreateProviderBody: @@ -5246,7 +5395,7 @@ components: items: type: string attribute_mapping: - $ref: '#/components/schemas/AttributeMapping' + $ref: "#/components/schemas/AttributeMapping" required: - type SamlDescriptor: @@ -5261,7 +5410,7 @@ components: metadata_xml: type: string attribute_mapping: - $ref: '#/components/schemas/AttributeMapping' + $ref: "#/components/schemas/AttributeMapping" required: - id - entity_id @@ -5284,11 +5433,11 @@ components: id: type: string saml: - $ref: '#/components/schemas/SamlDescriptor' + $ref: "#/components/schemas/SamlDescriptor" domains: type: array items: - $ref: '#/components/schemas/Domain' + $ref: "#/components/schemas/Domain" created_at: type: string updated_at: @@ -5301,11 +5450,11 @@ components: id: type: string saml: - $ref: '#/components/schemas/SamlDescriptor' + $ref: "#/components/schemas/SamlDescriptor" domains: type: array items: - $ref: '#/components/schemas/Domain' + $ref: "#/components/schemas/Domain" created_at: type: string updated_at: @@ -5318,7 +5467,7 @@ components: items: type: array items: - $ref: '#/components/schemas/Provider' + $ref: "#/components/schemas/Provider" required: - items GetProviderResponse: @@ -5327,11 +5476,11 @@ components: id: type: string saml: - $ref: '#/components/schemas/SamlDescriptor' + $ref: "#/components/schemas/SamlDescriptor" domains: type: array items: - $ref: '#/components/schemas/Domain' + $ref: "#/components/schemas/Domain" created_at: type: string updated_at: @@ -5350,18 +5499,18 @@ components: items: type: string attribute_mapping: - $ref: '#/components/schemas/AttributeMapping' + $ref: "#/components/schemas/AttributeMapping" UpdateProviderResponse: type: object properties: id: type: string saml: - $ref: '#/components/schemas/SamlDescriptor' + $ref: "#/components/schemas/SamlDescriptor" domains: type: array items: - $ref: '#/components/schemas/Domain' + $ref: "#/components/schemas/Domain" created_at: type: string updated_at: @@ -5374,11 +5523,11 @@ components: id: type: string saml: - $ref: '#/components/schemas/SamlDescriptor' + $ref: "#/components/schemas/SamlDescriptor" domains: type: array items: - $ref: '#/components/schemas/Domain' + $ref: "#/components/schemas/Domain" created_at: type: string updated_at: @@ -5426,9 +5575,9 @@ components: backups: type: array items: - $ref: '#/components/schemas/V1Backup' + $ref: "#/components/schemas/V1Backup" physical_backup_data: - $ref: '#/components/schemas/V1PhysicalBackup' + $ref: "#/components/schemas/V1PhysicalBackup" required: - region - walg_enabled @@ -5473,7 +5622,7 @@ components: type: object properties: plan: - $ref: '#/components/schemas/BillingPlanId' + $ref: "#/components/schemas/BillingPlanId" opt_in_tags: type: array items: @@ -5483,7 +5632,7 @@ components: allowed_release_channels: type: array items: - $ref: '#/components/schemas/ReleaseChannel' + $ref: "#/components/schemas/ReleaseChannel" id: type: string name: diff --git a/cmd/projects.go b/cmd/projects.go index 08ec10dd8..c119e7171 100644 --- a/cmd/projects.go +++ b/cmd/projects.go @@ -33,21 +33,21 @@ var ( Allowed: awsRegions(), } plan = utils.EnumFlag{ - Allowed: []string{string(api.V1CreateProjectBodyPlanFree), string(api.V1CreateProjectBodyPlanPro)}, - Value: string(api.V1CreateProjectBodyPlanFree), + Allowed: []string{string(api.V1CreateProjectBodyDtoPlanFree), string(api.V1CreateProjectBodyDtoPlanPro)}, + Value: string(api.V1CreateProjectBodyDtoPlanFree), } size = utils.EnumFlag{ Allowed: []string{ - string(api.Micro), - string(api.Small), - string(api.Medium), - string(api.Large), - string(api.Xlarge), - string(api.N2xlarge), - string(api.N4xlarge), - string(api.N8xlarge), - string(api.N12xlarge), - string(api.N16xlarge), + string(api.DesiredInstanceSizeMicro), + string(api.DesiredInstanceSizeSmall), + string(api.DesiredInstanceSizeMedium), + string(api.DesiredInstanceSizeLarge), + string(api.DesiredInstanceSizeXlarge), + string(api.DesiredInstanceSizeN2xlarge), + string(api.DesiredInstanceSizeN4xlarge), + string(api.DesiredInstanceSizeN8xlarge), + string(api.DesiredInstanceSizeN12xlarge), + string(api.DesiredInstanceSizeN16xlarge), }, } @@ -69,14 +69,14 @@ var ( if len(args) > 0 { projectName = args[0] } - body := api.V1CreateProjectBody{ + body := api.V1CreateProjectBodyDto{ Name: projectName, OrganizationId: orgId, DbPass: dbPassword, - Region: api.V1CreateProjectBodyRegion(region.Value), + Region: api.V1CreateProjectBodyDtoRegion(region.Value), } if cmd.Flags().Changed("size") { - body.DesiredInstanceSize = (*api.DesiredInstanceSize)(&size.Value) + body.DesiredInstanceSize = (*api.V1CreateProjectBodyDtoDesiredInstanceSize)(&size.Value) } return create.Run(cmd.Context(), body, afero.NewOsFs()) }, diff --git a/internal/bootstrap/bootstrap.go b/internal/bootstrap/bootstrap.go index 4769a81d1..677ef1530 100644 --- a/internal/bootstrap/bootstrap.go +++ b/internal/bootstrap/bootstrap.go @@ -77,7 +77,7 @@ func Run(ctx context.Context, starter StarterTemplate, fsys afero.Fs, options .. return err } // 2. Create project - params := api.V1CreateProjectBody{ + params := api.V1CreateProjectBodyDto{ Name: filepath.Base(workdir), TemplateUrl: &starter.Url, } diff --git a/internal/link/link.go b/internal/link/link.go index 12fa59ca1..e791271b8 100644 --- a/internal/link/link.go +++ b/internal/link/link.go @@ -270,10 +270,10 @@ func checkRemoteProjectStatus(ctx context.Context, projectRef string, fsys afero } switch resp.JSON200.Status { - case api.V1ProjectResponseStatusINACTIVE: + case api.V1ProjectWithDatabaseResponseStatusINACTIVE: utils.CmdSuggestion = fmt.Sprintf("An admin must unpause it from the Supabase dashboard at %s", utils.Aqua(fmt.Sprintf("%s/project/%s", utils.GetSupabaseDashboardURL(), projectRef))) return errors.New(errProjectPaused) - case api.V1ProjectResponseStatusACTIVEHEALTHY: + case api.V1ProjectWithDatabaseResponseStatusACTIVEHEALTHY: // Project is in the desired state, do nothing default: fmt.Fprintf(os.Stderr, "%s: Project status is %s instead of Active Healthy. Some operations might fail.\n", utils.Yellow("WARNING"), resp.JSON200.Status) diff --git a/internal/link/link_test.go b/internal/link/link_test.go index 28282da4f..18c090ad3 100644 --- a/internal/link/link_test.go +++ b/internal/link/link_test.go @@ -58,9 +58,9 @@ func TestLinkCommand(t *testing.T) { gock.New(utils.DefaultApiHost). Get("/v1/projects/" + project). Reply(200). - JSON(api.V1ProjectResponse{ - Status: api.V1ProjectResponseStatusACTIVEHEALTHY, - Database: &postgres, + JSON(api.V1ProjectWithDatabaseResponse{ + Status: api.V1ProjectWithDatabaseResponseStatusACTIVEHEALTHY, + Database: postgres, }) gock.New(utils.DefaultApiHost). Get("/v1/projects/" + project + "/api-keys"). @@ -132,9 +132,9 @@ func TestLinkCommand(t *testing.T) { gock.New(utils.DefaultApiHost). Get("/v1/projects/" + project). Reply(200). - JSON(api.V1ProjectResponse{ - Status: api.V1ProjectResponseStatusACTIVEHEALTHY, - Database: &api.V1DatabaseResponse{}, + JSON(api.V1ProjectWithDatabaseResponse{ + Status: api.V1ProjectWithDatabaseResponseStatusACTIVEHEALTHY, + Database: api.V1DatabaseResponse{}, }) gock.New(utils.DefaultApiHost). Get("/v1/projects/" + project + "/api-keys"). @@ -186,9 +186,9 @@ func TestLinkCommand(t *testing.T) { gock.New(utils.DefaultApiHost). Get("/v1/projects/" + project). Reply(200). - JSON(api.V1ProjectResponse{ - Status: api.V1ProjectResponseStatusACTIVEHEALTHY, - Database: &api.V1DatabaseResponse{}, + JSON(api.V1ProjectWithDatabaseResponse{ + Status: api.V1ProjectWithDatabaseResponseStatusACTIVEHEALTHY, + Database: api.V1DatabaseResponse{}, }) gock.New(utils.DefaultApiHost). Get("/v1/projects/" + project + "/api-keys"). @@ -247,9 +247,9 @@ func TestStatusCheck(t *testing.T) { gock.New(utils.DefaultApiHost). Get("/v1/projects/" + project). Reply(http.StatusOK). - JSON(api.V1ProjectResponse{ - Status: api.V1ProjectResponseStatusACTIVEHEALTHY, - Database: &api.V1DatabaseResponse{Version: "15.6.1.139"}, + JSON(api.V1ProjectWithDatabaseResponse{ + Status: api.V1ProjectWithDatabaseResponseStatusACTIVEHEALTHY, + Database: api.V1DatabaseResponse{Version: "15.6.1.139"}, }) // Run test err := checkRemoteProjectStatus(context.Background(), project, fsys) @@ -289,7 +289,7 @@ func TestStatusCheck(t *testing.T) { gock.New(utils.DefaultApiHost). Get("/v1/projects/" + project). Reply(http.StatusOK). - JSON(api.V1ProjectResponse{Status: api.V1ProjectResponseStatusINACTIVE}) + JSON(api.V1ProjectWithDatabaseResponse{Status: api.V1ProjectWithDatabaseResponseStatusINACTIVE}) // Run test err := checkRemoteProjectStatus(context.Background(), project, fsys) // Check error diff --git a/internal/projects/apiKeys/api_keys.go b/internal/projects/apiKeys/api_keys.go index 4fcbfe06a..7daddce21 100644 --- a/internal/projects/apiKeys/api_keys.go +++ b/internal/projects/apiKeys/api_keys.go @@ -34,7 +34,7 @@ func Run(ctx context.Context, projectRef string, fsys afero.Fs) error { } func RunGetApiKeys(ctx context.Context, projectRef string) ([]api.ApiKeyResponse, error) { - resp, err := utils.GetSupabase().V1GetProjectApiKeysWithResponse(ctx, projectRef) + resp, err := utils.GetSupabase().V1GetProjectApiKeysWithResponse(ctx, projectRef, &api.V1GetProjectApiKeysParams{}) if err != nil { return nil, errors.Errorf("failed to get api keys: %w", err) } diff --git a/internal/projects/create/create.go b/internal/projects/create/create.go index 01ebf6308..ddbd46b47 100644 --- a/internal/projects/create/create.go +++ b/internal/projects/create/create.go @@ -15,7 +15,7 @@ import ( "github.com/supabase/cli/pkg/api" ) -func Run(ctx context.Context, params api.V1CreateProjectBody, fsys afero.Fs) error { +func Run(ctx context.Context, params api.V1CreateProjectBodyDto, fsys afero.Fs) error { if err := promptMissingParams(ctx, ¶ms); err != nil { return err } @@ -49,7 +49,7 @@ func printKeyValue(key, value string) string { return key + ":" + spaces + value } -func promptMissingParams(ctx context.Context, body *api.V1CreateProjectBody) error { +func promptMissingParams(ctx context.Context, body *api.V1CreateProjectBodyDto) error { var err error if len(body.Name) == 0 { if body.Name, err = promptProjectName(ctx); err != nil { @@ -106,7 +106,7 @@ func promptOrgId(ctx context.Context) (string, error) { return choice.Details, nil } -func promptProjectRegion(ctx context.Context) (api.V1CreateProjectBodyRegion, error) { +func promptProjectRegion(ctx context.Context) (api.V1CreateProjectBodyDtoRegion, error) { title := "Which region do you want to host the project in?" items := make([]utils.PromptItem, len(utils.RegionMap)) i := 0 @@ -118,5 +118,5 @@ func promptProjectRegion(ctx context.Context) (api.V1CreateProjectBodyRegion, er if err != nil { return "", err } - return api.V1CreateProjectBodyRegion(choice.Summary), nil + return api.V1CreateProjectBodyDtoRegion(choice.Summary), nil } diff --git a/internal/projects/create/create_test.go b/internal/projects/create/create_test.go index c67c7a35e..879421d72 100644 --- a/internal/projects/create/create_test.go +++ b/internal/projects/create/create_test.go @@ -14,11 +14,11 @@ import ( ) func TestProjectCreateCommand(t *testing.T) { - var params = api.V1CreateProjectBody{ + var params = api.V1CreateProjectBodyDto{ Name: "Test Project", OrganizationId: "combined-fuchsia-lion", DbPass: "redacted", - Region: api.V1CreateProjectBodyRegionUsWest1, + Region: api.V1CreateProjectBodyDtoRegionUsWest1, } t.Run("creates a new project", func(t *testing.T) { diff --git a/internal/projects/list/list.go b/internal/projects/list/list.go index b16b6d4fc..d211f71e9 100644 --- a/internal/projects/list/list.go +++ b/internal/projects/list/list.go @@ -15,8 +15,8 @@ import ( ) type linkedProject struct { - api.V1ProjectResponse `yaml:",inline"` - Linked bool `json:"linked"` + api.V1ProjectWithDatabaseResponse `yaml:",inline"` + Linked bool `json:"linked"` } func Run(ctx context.Context, fsys afero.Fs) error { @@ -37,8 +37,8 @@ func Run(ctx context.Context, fsys afero.Fs) error { var projects []linkedProject for _, project := range *resp.JSON200 { projects = append(projects, linkedProject{ - V1ProjectResponse: project, - Linked: project.Id == projectRef, + V1ProjectWithDatabaseResponse: project, + Linked: project.Id == projectRef, }) } diff --git a/internal/utils/tenant/client.go b/internal/utils/tenant/client.go index 9fc86a670..ad0ef6aa7 100644 --- a/internal/utils/tenant/client.go +++ b/internal/utils/tenant/client.go @@ -39,7 +39,7 @@ func NewApiKey(resp []api.ApiKeyResponse) ApiKey { } func GetApiKeys(ctx context.Context, projectRef string) (ApiKey, error) { - resp, err := utils.GetSupabase().V1GetProjectApiKeysWithResponse(ctx, projectRef) + resp, err := utils.GetSupabase().V1GetProjectApiKeysWithResponse(ctx, projectRef, &api.V1GetProjectApiKeysParams{}) if err != nil { return ApiKey{}, errors.Errorf("failed to get api keys: %w", err) } diff --git a/pkg/api/client.gen.go b/pkg/api/client.gen.go index 05ed76708..fcbe8eaeb 100644 --- a/pkg/api/client.gen.go +++ b/pkg/api/client.gen.go @@ -140,20 +140,23 @@ type ClientInterface interface { V1GetProject(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error) // V1GetProjectApiKeys request - V1GetProjectApiKeys(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error) + V1GetProjectApiKeys(ctx context.Context, ref string, params *V1GetProjectApiKeysParams, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateApiKeyWithBody request with any body - CreateApiKeyWithBody(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + CreateApiKeyWithBody(ctx context.Context, ref string, params *CreateApiKeyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - CreateApiKey(ctx context.Context, ref string, body CreateApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + CreateApiKey(ctx context.Context, ref string, params *CreateApiKeyParams, body CreateApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteApiKey request - DeleteApiKey(ctx context.Context, ref string, id string, reqEditors ...RequestEditorFn) (*http.Response, error) + DeleteApiKey(ctx context.Context, ref string, id string, params *DeleteApiKeyParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetApiKey request + GetApiKey(ctx context.Context, ref string, id string, params *GetApiKeyParams, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateApiKeyWithBody request with any body - UpdateApiKeyWithBody(ctx context.Context, ref string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + UpdateApiKeyWithBody(ctx context.Context, ref string, id string, params *UpdateApiKeyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - UpdateApiKey(ctx context.Context, ref string, id string, body UpdateApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + UpdateApiKey(ctx context.Context, ref string, id string, params *UpdateApiKeyParams, body UpdateApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // V1DisablePreviewBranching request V1DisablePreviewBranching(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -617,8 +620,20 @@ func (c *Client) V1GetProject(ctx context.Context, ref string, reqEditors ...Req return c.Client.Do(req) } -func (c *Client) V1GetProjectApiKeys(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewV1GetProjectApiKeysRequest(c.Server, ref) +func (c *Client) V1GetProjectApiKeys(ctx context.Context, ref string, params *V1GetProjectApiKeysParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewV1GetProjectApiKeysRequest(c.Server, ref, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateApiKeyWithBody(ctx context.Context, ref string, params *CreateApiKeyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateApiKeyRequestWithBody(c.Server, ref, params, contentType, body) if err != nil { return nil, err } @@ -629,8 +644,8 @@ func (c *Client) V1GetProjectApiKeys(ctx context.Context, ref string, reqEditors return c.Client.Do(req) } -func (c *Client) CreateApiKeyWithBody(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateApiKeyRequestWithBody(c.Server, ref, contentType, body) +func (c *Client) CreateApiKey(ctx context.Context, ref string, params *CreateApiKeyParams, body CreateApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateApiKeyRequest(c.Server, ref, params, body) if err != nil { return nil, err } @@ -641,8 +656,8 @@ func (c *Client) CreateApiKeyWithBody(ctx context.Context, ref string, contentTy return c.Client.Do(req) } -func (c *Client) CreateApiKey(ctx context.Context, ref string, body CreateApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateApiKeyRequest(c.Server, ref, body) +func (c *Client) DeleteApiKey(ctx context.Context, ref string, id string, params *DeleteApiKeyParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteApiKeyRequest(c.Server, ref, id, params) if err != nil { return nil, err } @@ -653,8 +668,8 @@ func (c *Client) CreateApiKey(ctx context.Context, ref string, body CreateApiKey return c.Client.Do(req) } -func (c *Client) DeleteApiKey(ctx context.Context, ref string, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteApiKeyRequest(c.Server, ref, id) +func (c *Client) GetApiKey(ctx context.Context, ref string, id string, params *GetApiKeyParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetApiKeyRequest(c.Server, ref, id, params) if err != nil { return nil, err } @@ -665,8 +680,8 @@ func (c *Client) DeleteApiKey(ctx context.Context, ref string, id string, reqEdi return c.Client.Do(req) } -func (c *Client) UpdateApiKeyWithBody(ctx context.Context, ref string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateApiKeyRequestWithBody(c.Server, ref, id, contentType, body) +func (c *Client) UpdateApiKeyWithBody(ctx context.Context, ref string, id string, params *UpdateApiKeyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateApiKeyRequestWithBody(c.Server, ref, id, params, contentType, body) if err != nil { return nil, err } @@ -677,8 +692,8 @@ func (c *Client) UpdateApiKeyWithBody(ctx context.Context, ref string, id string return c.Client.Do(req) } -func (c *Client) UpdateApiKey(ctx context.Context, ref string, id string, body UpdateApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateApiKeyRequest(c.Server, ref, id, body) +func (c *Client) UpdateApiKey(ctx context.Context, ref string, id string, params *UpdateApiKeyParams, body UpdateApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateApiKeyRequest(c.Server, ref, id, params, body) if err != nil { return nil, err } @@ -2378,7 +2393,7 @@ func NewV1GetProjectRequest(server string, ref string) (*http.Request, error) { } // NewV1GetProjectApiKeysRequest generates requests for V1GetProjectApiKeys -func NewV1GetProjectApiKeysRequest(server string, ref string) (*http.Request, error) { +func NewV1GetProjectApiKeysRequest(server string, ref string, params *V1GetProjectApiKeysParams) (*http.Request, error) { var err error var pathParam0 string @@ -2403,6 +2418,24 @@ func NewV1GetProjectApiKeysRequest(server string, ref string) (*http.Request, er return nil, err } + if params != nil { + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "reveal", runtime.ParamLocationQuery, params.Reveal); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + queryURL.RawQuery = queryValues.Encode() + } + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err @@ -2412,18 +2445,18 @@ func NewV1GetProjectApiKeysRequest(server string, ref string) (*http.Request, er } // NewCreateApiKeyRequest calls the generic CreateApiKey builder with application/json body -func NewCreateApiKeyRequest(server string, ref string, body CreateApiKeyJSONRequestBody) (*http.Request, error) { +func NewCreateApiKeyRequest(server string, ref string, params *CreateApiKeyParams, body CreateApiKeyJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateApiKeyRequestWithBody(server, ref, "application/json", bodyReader) + return NewCreateApiKeyRequestWithBody(server, ref, params, "application/json", bodyReader) } // NewCreateApiKeyRequestWithBody generates requests for CreateApiKey with any type of body -func NewCreateApiKeyRequestWithBody(server string, ref string, contentType string, body io.Reader) (*http.Request, error) { +func NewCreateApiKeyRequestWithBody(server string, ref string, params *CreateApiKeyParams, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -2448,6 +2481,24 @@ func NewCreateApiKeyRequestWithBody(server string, ref string, contentType strin return nil, err } + if params != nil { + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "reveal", runtime.ParamLocationQuery, params.Reveal); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + queryURL.RawQuery = queryValues.Encode() + } + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err @@ -2459,7 +2510,7 @@ func NewCreateApiKeyRequestWithBody(server string, ref string, contentType strin } // NewDeleteApiKeyRequest generates requests for DeleteApiKey -func NewDeleteApiKeyRequest(server string, ref string, id string) (*http.Request, error) { +func NewDeleteApiKeyRequest(server string, ref string, id string, params *DeleteApiKeyParams) (*http.Request, error) { var err error var pathParam0 string @@ -2491,6 +2542,24 @@ func NewDeleteApiKeyRequest(server string, ref string, id string) (*http.Request return nil, err } + if params != nil { + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "reveal", runtime.ParamLocationQuery, params.Reveal); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + queryURL.RawQuery = queryValues.Encode() + } + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err @@ -2499,19 +2568,78 @@ func NewDeleteApiKeyRequest(server string, ref string, id string) (*http.Request return req, nil } +// NewGetApiKeyRequest generates requests for GetApiKey +func NewGetApiKeyRequest(server string, ref string, id string, params *GetApiKeyParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/projects/%s/api-keys/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "reveal", runtime.ParamLocationQuery, params.Reveal); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + // NewUpdateApiKeyRequest calls the generic UpdateApiKey builder with application/json body -func NewUpdateApiKeyRequest(server string, ref string, id string, body UpdateApiKeyJSONRequestBody) (*http.Request, error) { +func NewUpdateApiKeyRequest(server string, ref string, id string, params *UpdateApiKeyParams, body UpdateApiKeyJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateApiKeyRequestWithBody(server, ref, id, "application/json", bodyReader) + return NewUpdateApiKeyRequestWithBody(server, ref, id, params, "application/json", bodyReader) } // NewUpdateApiKeyRequestWithBody generates requests for UpdateApiKey with any type of body -func NewUpdateApiKeyRequestWithBody(server string, ref string, id string, contentType string, body io.Reader) (*http.Request, error) { +func NewUpdateApiKeyRequestWithBody(server string, ref string, id string, params *UpdateApiKeyParams, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -2543,6 +2671,24 @@ func NewUpdateApiKeyRequestWithBody(server string, ref string, id string, conten return nil, err } + if params != nil { + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "reveal", runtime.ParamLocationQuery, params.Reveal); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + queryURL.RawQuery = queryValues.Encode() + } + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err @@ -3921,6 +4067,22 @@ func NewV1CreateAFunctionRequestWithBody(server string, ref string, params *V1Cr } + if params.ComputeMultiplier != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "compute_multiplier", runtime.ParamLocationQuery, *params.ComputeMultiplier); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + queryURL.RawQuery = queryValues.Encode() } @@ -4159,6 +4321,22 @@ func NewV1UpdateAFunctionRequestWithBody(server string, ref string, functionSlug } + if params.ComputeMultiplier != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "compute_multiplier", runtime.ParamLocationQuery, *params.ComputeMultiplier); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + queryURL.RawQuery = queryValues.Encode() } @@ -5542,20 +5720,23 @@ type ClientWithResponsesInterface interface { V1GetProjectWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*V1GetProjectResponse, error) // V1GetProjectApiKeysWithResponse request - V1GetProjectApiKeysWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*V1GetProjectApiKeysResponse, error) + V1GetProjectApiKeysWithResponse(ctx context.Context, ref string, params *V1GetProjectApiKeysParams, reqEditors ...RequestEditorFn) (*V1GetProjectApiKeysResponse, error) // CreateApiKeyWithBodyWithResponse request with any body - CreateApiKeyWithBodyWithResponse(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateApiKeyResponse, error) + CreateApiKeyWithBodyWithResponse(ctx context.Context, ref string, params *CreateApiKeyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateApiKeyResponse, error) - CreateApiKeyWithResponse(ctx context.Context, ref string, body CreateApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateApiKeyResponse, error) + CreateApiKeyWithResponse(ctx context.Context, ref string, params *CreateApiKeyParams, body CreateApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateApiKeyResponse, error) // DeleteApiKeyWithResponse request - DeleteApiKeyWithResponse(ctx context.Context, ref string, id string, reqEditors ...RequestEditorFn) (*DeleteApiKeyResponse, error) + DeleteApiKeyWithResponse(ctx context.Context, ref string, id string, params *DeleteApiKeyParams, reqEditors ...RequestEditorFn) (*DeleteApiKeyResponse, error) + + // GetApiKeyWithResponse request + GetApiKeyWithResponse(ctx context.Context, ref string, id string, params *GetApiKeyParams, reqEditors ...RequestEditorFn) (*GetApiKeyResponse, error) // UpdateApiKeyWithBodyWithResponse request with any body - UpdateApiKeyWithBodyWithResponse(ctx context.Context, ref string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateApiKeyResponse, error) + UpdateApiKeyWithBodyWithResponse(ctx context.Context, ref string, id string, params *UpdateApiKeyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateApiKeyResponse, error) - UpdateApiKeyWithResponse(ctx context.Context, ref string, id string, body UpdateApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateApiKeyResponse, error) + UpdateApiKeyWithResponse(ctx context.Context, ref string, id string, params *UpdateApiKeyParams, body UpdateApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateApiKeyResponse, error) // V1DisablePreviewBranchingWithResponse request V1DisablePreviewBranchingWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*V1DisablePreviewBranchingResponse, error) @@ -6025,7 +6206,7 @@ func (r V1ListOrganizationMembersResponse) StatusCode() int { type V1ListAllProjectsResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *[]V1ProjectResponse + JSON200 *[]V1ProjectWithDatabaseResponse } // Status returns HTTPResponse.Status @@ -6091,7 +6272,7 @@ func (r V1DeleteAProjectResponse) StatusCode() int { type V1GetProjectResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *V1ProjectResponse + JSON200 *V1ProjectWithDatabaseResponse } // Status returns HTTPResponse.Status @@ -6176,6 +6357,28 @@ func (r DeleteApiKeyResponse) StatusCode() int { return 0 } +type GetApiKeyResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ApiKeyResponse +} + +// Status returns HTTPResponse.Status +func (r GetApiKeyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetApiKeyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + type UpdateApiKeyResponse struct { Body []byte HTTPResponse *http.Response @@ -7774,8 +7977,8 @@ func (c *ClientWithResponses) V1GetProjectWithResponse(ctx context.Context, ref } // V1GetProjectApiKeysWithResponse request returning *V1GetProjectApiKeysResponse -func (c *ClientWithResponses) V1GetProjectApiKeysWithResponse(ctx context.Context, ref string, reqEditors ...RequestEditorFn) (*V1GetProjectApiKeysResponse, error) { - rsp, err := c.V1GetProjectApiKeys(ctx, ref, reqEditors...) +func (c *ClientWithResponses) V1GetProjectApiKeysWithResponse(ctx context.Context, ref string, params *V1GetProjectApiKeysParams, reqEditors ...RequestEditorFn) (*V1GetProjectApiKeysResponse, error) { + rsp, err := c.V1GetProjectApiKeys(ctx, ref, params, reqEditors...) if err != nil { return nil, err } @@ -7783,16 +7986,16 @@ func (c *ClientWithResponses) V1GetProjectApiKeysWithResponse(ctx context.Contex } // CreateApiKeyWithBodyWithResponse request with arbitrary body returning *CreateApiKeyResponse -func (c *ClientWithResponses) CreateApiKeyWithBodyWithResponse(ctx context.Context, ref string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateApiKeyResponse, error) { - rsp, err := c.CreateApiKeyWithBody(ctx, ref, contentType, body, reqEditors...) +func (c *ClientWithResponses) CreateApiKeyWithBodyWithResponse(ctx context.Context, ref string, params *CreateApiKeyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateApiKeyResponse, error) { + rsp, err := c.CreateApiKeyWithBody(ctx, ref, params, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseCreateApiKeyResponse(rsp) } -func (c *ClientWithResponses) CreateApiKeyWithResponse(ctx context.Context, ref string, body CreateApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateApiKeyResponse, error) { - rsp, err := c.CreateApiKey(ctx, ref, body, reqEditors...) +func (c *ClientWithResponses) CreateApiKeyWithResponse(ctx context.Context, ref string, params *CreateApiKeyParams, body CreateApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateApiKeyResponse, error) { + rsp, err := c.CreateApiKey(ctx, ref, params, body, reqEditors...) if err != nil { return nil, err } @@ -7800,25 +8003,34 @@ func (c *ClientWithResponses) CreateApiKeyWithResponse(ctx context.Context, ref } // DeleteApiKeyWithResponse request returning *DeleteApiKeyResponse -func (c *ClientWithResponses) DeleteApiKeyWithResponse(ctx context.Context, ref string, id string, reqEditors ...RequestEditorFn) (*DeleteApiKeyResponse, error) { - rsp, err := c.DeleteApiKey(ctx, ref, id, reqEditors...) +func (c *ClientWithResponses) DeleteApiKeyWithResponse(ctx context.Context, ref string, id string, params *DeleteApiKeyParams, reqEditors ...RequestEditorFn) (*DeleteApiKeyResponse, error) { + rsp, err := c.DeleteApiKey(ctx, ref, id, params, reqEditors...) if err != nil { return nil, err } return ParseDeleteApiKeyResponse(rsp) } +// GetApiKeyWithResponse request returning *GetApiKeyResponse +func (c *ClientWithResponses) GetApiKeyWithResponse(ctx context.Context, ref string, id string, params *GetApiKeyParams, reqEditors ...RequestEditorFn) (*GetApiKeyResponse, error) { + rsp, err := c.GetApiKey(ctx, ref, id, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetApiKeyResponse(rsp) +} + // UpdateApiKeyWithBodyWithResponse request with arbitrary body returning *UpdateApiKeyResponse -func (c *ClientWithResponses) UpdateApiKeyWithBodyWithResponse(ctx context.Context, ref string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateApiKeyResponse, error) { - rsp, err := c.UpdateApiKeyWithBody(ctx, ref, id, contentType, body, reqEditors...) +func (c *ClientWithResponses) UpdateApiKeyWithBodyWithResponse(ctx context.Context, ref string, id string, params *UpdateApiKeyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateApiKeyResponse, error) { + rsp, err := c.UpdateApiKeyWithBody(ctx, ref, id, params, contentType, body, reqEditors...) if err != nil { return nil, err } return ParseUpdateApiKeyResponse(rsp) } -func (c *ClientWithResponses) UpdateApiKeyWithResponse(ctx context.Context, ref string, id string, body UpdateApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateApiKeyResponse, error) { - rsp, err := c.UpdateApiKey(ctx, ref, id, body, reqEditors...) +func (c *ClientWithResponses) UpdateApiKeyWithResponse(ctx context.Context, ref string, id string, params *UpdateApiKeyParams, body UpdateApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateApiKeyResponse, error) { + rsp, err := c.UpdateApiKey(ctx, ref, id, params, body, reqEditors...) if err != nil { return nil, err } @@ -8875,7 +9087,7 @@ func ParseV1ListAllProjectsResponse(rsp *http.Response) (*V1ListAllProjectsRespo switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest []V1ProjectResponse + var dest []V1ProjectWithDatabaseResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -8953,7 +9165,7 @@ func ParseV1GetProjectResponse(rsp *http.Response) (*V1GetProjectResponse, error switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ProjectResponse + var dest V1ProjectWithDatabaseResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -9042,6 +9254,32 @@ func ParseDeleteApiKeyResponse(rsp *http.Response) (*DeleteApiKeyResponse, error return response, nil } +// ParseGetApiKeyResponse parses an HTTP response from a GetApiKeyWithResponse call +func ParseGetApiKeyResponse(rsp *http.Response) (*GetApiKeyResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetApiKeyResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ApiKeyResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + // ParseUpdateApiKeyResponse parses an HTTP response from a UpdateApiKeyWithResponse call func ParseUpdateApiKeyResponse(rsp *http.Response) (*UpdateApiKeyResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) diff --git a/pkg/api/types.gen.go b/pkg/api/types.gen.go index 9334b80b8..4cfa1556b 100644 --- a/pkg/api/types.gen.go +++ b/pkg/api/types.gen.go @@ -111,16 +111,16 @@ const ( // Defines values for DesiredInstanceSize. const ( - Large DesiredInstanceSize = "large" - Medium DesiredInstanceSize = "medium" - Micro DesiredInstanceSize = "micro" - N12xlarge DesiredInstanceSize = "12xlarge" - N16xlarge DesiredInstanceSize = "16xlarge" - N2xlarge DesiredInstanceSize = "2xlarge" - N4xlarge DesiredInstanceSize = "4xlarge" - N8xlarge DesiredInstanceSize = "8xlarge" - Small DesiredInstanceSize = "small" - Xlarge DesiredInstanceSize = "xlarge" + DesiredInstanceSizeLarge DesiredInstanceSize = "large" + DesiredInstanceSizeMedium DesiredInstanceSize = "medium" + DesiredInstanceSizeMicro DesiredInstanceSize = "micro" + DesiredInstanceSizeN12xlarge DesiredInstanceSize = "12xlarge" + DesiredInstanceSizeN16xlarge DesiredInstanceSize = "16xlarge" + DesiredInstanceSizeN2xlarge DesiredInstanceSize = "2xlarge" + DesiredInstanceSizeN4xlarge DesiredInstanceSize = "4xlarge" + DesiredInstanceSizeN8xlarge DesiredInstanceSize = "8xlarge" + DesiredInstanceSizeSmall DesiredInstanceSize = "small" + DesiredInstanceSizeXlarge DesiredInstanceSize = "xlarge" ) // Defines values for FunctionResponseStatus. @@ -169,16 +169,16 @@ const ( // Defines values for PostgresEngine. const ( - N15 PostgresEngine = "15" + PostgresEngineN15 PostgresEngine = "15" ) // Defines values for ReleaseChannel. const ( - Alpha ReleaseChannel = "alpha" - Beta ReleaseChannel = "beta" - Ga ReleaseChannel = "ga" - Internal ReleaseChannel = "internal" - Withdrawn ReleaseChannel = "withdrawn" + ReleaseChannelAlpha ReleaseChannel = "alpha" + ReleaseChannelBeta ReleaseChannel = "beta" + ReleaseChannelGa ReleaseChannel = "ga" + ReleaseChannelInternal ReleaseChannel = "internal" + ReleaseChannelWithdrawn ReleaseChannel = "withdrawn" ) // Defines values for SetUpReadReplicaBodyReadReplicaRegion. @@ -297,32 +297,60 @@ const ( V1BackupStatusREMOVED V1BackupStatus = "REMOVED" ) -// Defines values for V1CreateProjectBodyPlan. +// Defines values for V1CreateProjectBodyDtoDesiredInstanceSize. const ( - V1CreateProjectBodyPlanFree V1CreateProjectBodyPlan = "free" - V1CreateProjectBodyPlanPro V1CreateProjectBodyPlan = "pro" + V1CreateProjectBodyDtoDesiredInstanceSizeLarge V1CreateProjectBodyDtoDesiredInstanceSize = "large" + V1CreateProjectBodyDtoDesiredInstanceSizeMedium V1CreateProjectBodyDtoDesiredInstanceSize = "medium" + V1CreateProjectBodyDtoDesiredInstanceSizeMicro V1CreateProjectBodyDtoDesiredInstanceSize = "micro" + V1CreateProjectBodyDtoDesiredInstanceSizeN12xlarge V1CreateProjectBodyDtoDesiredInstanceSize = "12xlarge" + V1CreateProjectBodyDtoDesiredInstanceSizeN16xlarge V1CreateProjectBodyDtoDesiredInstanceSize = "16xlarge" + V1CreateProjectBodyDtoDesiredInstanceSizeN2xlarge V1CreateProjectBodyDtoDesiredInstanceSize = "2xlarge" + V1CreateProjectBodyDtoDesiredInstanceSizeN4xlarge V1CreateProjectBodyDtoDesiredInstanceSize = "4xlarge" + V1CreateProjectBodyDtoDesiredInstanceSizeN8xlarge V1CreateProjectBodyDtoDesiredInstanceSize = "8xlarge" + V1CreateProjectBodyDtoDesiredInstanceSizeSmall V1CreateProjectBodyDtoDesiredInstanceSize = "small" + V1CreateProjectBodyDtoDesiredInstanceSizeXlarge V1CreateProjectBodyDtoDesiredInstanceSize = "xlarge" ) -// Defines values for V1CreateProjectBodyRegion. +// Defines values for V1CreateProjectBodyDtoPlan. const ( - V1CreateProjectBodyRegionApEast1 V1CreateProjectBodyRegion = "ap-east-1" - V1CreateProjectBodyRegionApNortheast1 V1CreateProjectBodyRegion = "ap-northeast-1" - V1CreateProjectBodyRegionApNortheast2 V1CreateProjectBodyRegion = "ap-northeast-2" - V1CreateProjectBodyRegionApSouth1 V1CreateProjectBodyRegion = "ap-south-1" - V1CreateProjectBodyRegionApSoutheast1 V1CreateProjectBodyRegion = "ap-southeast-1" - V1CreateProjectBodyRegionApSoutheast2 V1CreateProjectBodyRegion = "ap-southeast-2" - V1CreateProjectBodyRegionCaCentral1 V1CreateProjectBodyRegion = "ca-central-1" - V1CreateProjectBodyRegionEuCentral1 V1CreateProjectBodyRegion = "eu-central-1" - V1CreateProjectBodyRegionEuCentral2 V1CreateProjectBodyRegion = "eu-central-2" - V1CreateProjectBodyRegionEuNorth1 V1CreateProjectBodyRegion = "eu-north-1" - V1CreateProjectBodyRegionEuWest1 V1CreateProjectBodyRegion = "eu-west-1" - V1CreateProjectBodyRegionEuWest2 V1CreateProjectBodyRegion = "eu-west-2" - V1CreateProjectBodyRegionEuWest3 V1CreateProjectBodyRegion = "eu-west-3" - V1CreateProjectBodyRegionSaEast1 V1CreateProjectBodyRegion = "sa-east-1" - V1CreateProjectBodyRegionUsEast1 V1CreateProjectBodyRegion = "us-east-1" - V1CreateProjectBodyRegionUsEast2 V1CreateProjectBodyRegion = "us-east-2" - V1CreateProjectBodyRegionUsWest1 V1CreateProjectBodyRegion = "us-west-1" - V1CreateProjectBodyRegionUsWest2 V1CreateProjectBodyRegion = "us-west-2" + V1CreateProjectBodyDtoPlanFree V1CreateProjectBodyDtoPlan = "free" + V1CreateProjectBodyDtoPlanPro V1CreateProjectBodyDtoPlan = "pro" +) + +// Defines values for V1CreateProjectBodyDtoPostgresEngine. +const ( + V1CreateProjectBodyDtoPostgresEngineN15 V1CreateProjectBodyDtoPostgresEngine = "15" +) + +// Defines values for V1CreateProjectBodyDtoRegion. +const ( + V1CreateProjectBodyDtoRegionApEast1 V1CreateProjectBodyDtoRegion = "ap-east-1" + V1CreateProjectBodyDtoRegionApNortheast1 V1CreateProjectBodyDtoRegion = "ap-northeast-1" + V1CreateProjectBodyDtoRegionApNortheast2 V1CreateProjectBodyDtoRegion = "ap-northeast-2" + V1CreateProjectBodyDtoRegionApSouth1 V1CreateProjectBodyDtoRegion = "ap-south-1" + V1CreateProjectBodyDtoRegionApSoutheast1 V1CreateProjectBodyDtoRegion = "ap-southeast-1" + V1CreateProjectBodyDtoRegionApSoutheast2 V1CreateProjectBodyDtoRegion = "ap-southeast-2" + V1CreateProjectBodyDtoRegionCaCentral1 V1CreateProjectBodyDtoRegion = "ca-central-1" + V1CreateProjectBodyDtoRegionEuCentral1 V1CreateProjectBodyDtoRegion = "eu-central-1" + V1CreateProjectBodyDtoRegionEuCentral2 V1CreateProjectBodyDtoRegion = "eu-central-2" + V1CreateProjectBodyDtoRegionEuNorth1 V1CreateProjectBodyDtoRegion = "eu-north-1" + V1CreateProjectBodyDtoRegionEuWest1 V1CreateProjectBodyDtoRegion = "eu-west-1" + V1CreateProjectBodyDtoRegionEuWest2 V1CreateProjectBodyDtoRegion = "eu-west-2" + V1CreateProjectBodyDtoRegionEuWest3 V1CreateProjectBodyDtoRegion = "eu-west-3" + V1CreateProjectBodyDtoRegionSaEast1 V1CreateProjectBodyDtoRegion = "sa-east-1" + V1CreateProjectBodyDtoRegionUsEast1 V1CreateProjectBodyDtoRegion = "us-east-1" + V1CreateProjectBodyDtoRegionUsEast2 V1CreateProjectBodyDtoRegion = "us-east-2" + V1CreateProjectBodyDtoRegionUsWest1 V1CreateProjectBodyDtoRegion = "us-west-1" + V1CreateProjectBodyDtoRegionUsWest2 V1CreateProjectBodyDtoRegion = "us-west-2" +) + +// Defines values for V1CreateProjectBodyDtoReleaseChannel. +const ( + V1CreateProjectBodyDtoReleaseChannelAlpha V1CreateProjectBodyDtoReleaseChannel = "alpha" + V1CreateProjectBodyDtoReleaseChannelBeta V1CreateProjectBodyDtoReleaseChannel = "beta" + V1CreateProjectBodyDtoReleaseChannelGa V1CreateProjectBodyDtoReleaseChannel = "ga" + V1CreateProjectBodyDtoReleaseChannelInternal V1CreateProjectBodyDtoReleaseChannel = "internal" + V1CreateProjectBodyDtoReleaseChannelWithdrawn V1CreateProjectBodyDtoReleaseChannel = "withdrawn" ) // Defines values for V1OrganizationSlugResponseOptInTags. @@ -356,6 +384,25 @@ const ( V1ProjectResponseStatusUPGRADING V1ProjectResponseStatus = "UPGRADING" ) +// Defines values for V1ProjectWithDatabaseResponseStatus. +const ( + V1ProjectWithDatabaseResponseStatusACTIVEHEALTHY V1ProjectWithDatabaseResponseStatus = "ACTIVE_HEALTHY" + V1ProjectWithDatabaseResponseStatusACTIVEUNHEALTHY V1ProjectWithDatabaseResponseStatus = "ACTIVE_UNHEALTHY" + V1ProjectWithDatabaseResponseStatusCOMINGUP V1ProjectWithDatabaseResponseStatus = "COMING_UP" + V1ProjectWithDatabaseResponseStatusGOINGDOWN V1ProjectWithDatabaseResponseStatus = "GOING_DOWN" + V1ProjectWithDatabaseResponseStatusINACTIVE V1ProjectWithDatabaseResponseStatus = "INACTIVE" + V1ProjectWithDatabaseResponseStatusINITFAILED V1ProjectWithDatabaseResponseStatus = "INIT_FAILED" + V1ProjectWithDatabaseResponseStatusPAUSEFAILED V1ProjectWithDatabaseResponseStatus = "PAUSE_FAILED" + V1ProjectWithDatabaseResponseStatusPAUSING V1ProjectWithDatabaseResponseStatus = "PAUSING" + V1ProjectWithDatabaseResponseStatusREMOVED V1ProjectWithDatabaseResponseStatus = "REMOVED" + V1ProjectWithDatabaseResponseStatusRESIZING V1ProjectWithDatabaseResponseStatus = "RESIZING" + V1ProjectWithDatabaseResponseStatusRESTARTING V1ProjectWithDatabaseResponseStatus = "RESTARTING" + V1ProjectWithDatabaseResponseStatusRESTOREFAILED V1ProjectWithDatabaseResponseStatus = "RESTORE_FAILED" + V1ProjectWithDatabaseResponseStatusRESTORING V1ProjectWithDatabaseResponseStatus = "RESTORING" + V1ProjectWithDatabaseResponseStatusUNKNOWN V1ProjectWithDatabaseResponseStatus = "UNKNOWN" + V1ProjectWithDatabaseResponseStatusUPGRADING V1ProjectWithDatabaseResponseStatus = "UPGRADING" +) + // Defines values for V1ServiceHealthResponseName. const ( V1ServiceHealthResponseNameAuth V1ServiceHealthResponseName = "auth" @@ -368,9 +415,9 @@ const ( // Defines values for V1ServiceHealthResponseStatus. const ( - V1ServiceHealthResponseStatusACTIVEHEALTHY V1ServiceHealthResponseStatus = "ACTIVE_HEALTHY" - V1ServiceHealthResponseStatusCOMINGUP V1ServiceHealthResponseStatus = "COMING_UP" - V1ServiceHealthResponseStatusUNHEALTHY V1ServiceHealthResponseStatus = "UNHEALTHY" + ACTIVEHEALTHY V1ServiceHealthResponseStatus = "ACTIVE_HEALTHY" + COMINGUP V1ServiceHealthResponseStatus = "COMING_UP" + UNHEALTHY V1ServiceHealthResponseStatus = "UNHEALTHY" ) // Defines values for VanitySubdomainConfigResponseStatus. @@ -725,8 +772,8 @@ type CreateBranchBody struct { ReleaseChannel *ReleaseChannel `json:"release_channel,omitempty"` } -// CreateOrganizationBodyV1 defines model for CreateOrganizationBodyV1. -type CreateOrganizationBodyV1 struct { +// CreateOrganizationV1Dto defines model for CreateOrganizationV1Dto. +type CreateOrganizationV1Dto struct { Name string `json:"name"` } @@ -824,17 +871,18 @@ type Domain struct { // FunctionResponse defines model for FunctionResponse. type FunctionResponse struct { - CreatedAt int64 `json:"created_at"` - EntrypointPath *string `json:"entrypoint_path,omitempty"` - Id string `json:"id"` - ImportMap *bool `json:"import_map,omitempty"` - ImportMapPath *string `json:"import_map_path,omitempty"` - Name string `json:"name"` - Slug string `json:"slug"` - Status FunctionResponseStatus `json:"status"` - UpdatedAt int64 `json:"updated_at"` - VerifyJwt *bool `json:"verify_jwt,omitempty"` - Version int `json:"version"` + ComputeMultiplier *float32 `json:"compute_multiplier,omitempty"` + CreatedAt int64 `json:"created_at"` + EntrypointPath *string `json:"entrypoint_path,omitempty"` + Id string `json:"id"` + ImportMap *bool `json:"import_map,omitempty"` + ImportMapPath *string `json:"import_map_path,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Status FunctionResponseStatus `json:"status"` + UpdatedAt int64 `json:"updated_at"` + VerifyJwt *bool `json:"verify_jwt,omitempty"` + Version int `json:"version"` } // FunctionResponseStatus defines model for FunctionResponse.Status. @@ -842,17 +890,18 @@ type FunctionResponseStatus string // FunctionSlugResponse defines model for FunctionSlugResponse. type FunctionSlugResponse struct { - CreatedAt int64 `json:"created_at"` - EntrypointPath *string `json:"entrypoint_path,omitempty"` - Id string `json:"id"` - ImportMap *bool `json:"import_map,omitempty"` - ImportMapPath *string `json:"import_map_path,omitempty"` - Name string `json:"name"` - Slug string `json:"slug"` - Status FunctionSlugResponseStatus `json:"status"` - UpdatedAt int64 `json:"updated_at"` - VerifyJwt *bool `json:"verify_jwt,omitempty"` - Version int `json:"version"` + ComputeMultiplier *float32 `json:"compute_multiplier,omitempty"` + CreatedAt int64 `json:"created_at"` + EntrypointPath *string `json:"entrypoint_path,omitempty"` + Id string `json:"id"` + ImportMap *bool `json:"import_map,omitempty"` + ImportMapPath *string `json:"import_map_path,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Status FunctionSlugResponseStatus `json:"status"` + UpdatedAt int64 `json:"updated_at"` + VerifyJwt *bool `json:"verify_jwt,omitempty"` + Version int `json:"version"` } // FunctionSlugResponseStatus defines model for FunctionSlugResponse.Status. @@ -1539,17 +1588,18 @@ type V1BackupsResponse struct { // V1CreateFunctionBody defines model for V1CreateFunctionBody. type V1CreateFunctionBody struct { - Body string `json:"body"` - Name string `json:"name"` - Slug string `json:"slug"` - VerifyJwt *bool `json:"verify_jwt,omitempty"` + Body string `json:"body"` + ComputeMultiplier *float32 `json:"compute_multiplier,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + VerifyJwt *bool `json:"verify_jwt,omitempty"` } -// V1CreateProjectBody defines model for V1CreateProjectBody. -type V1CreateProjectBody struct { +// V1CreateProjectBodyDto defines model for V1CreateProjectBodyDto. +type V1CreateProjectBodyDto struct { // DbPass Database password - DbPass string `json:"db_pass"` - DesiredInstanceSize *DesiredInstanceSize `json:"desired_instance_size,omitempty"` + DbPass string `json:"db_pass"` + DesiredInstanceSize *V1CreateProjectBodyDtoDesiredInstanceSize `json:"desired_instance_size,omitempty"` // KpsEnabled This field is deprecated and is ignored in this request // Deprecated: @@ -1563,24 +1613,35 @@ type V1CreateProjectBody struct { // Plan Subscription Plan is now set on organization level and is ignored in this request // Deprecated: - Plan *V1CreateProjectBodyPlan `json:"plan,omitempty"` + Plan *V1CreateProjectBodyDtoPlan `json:"plan,omitempty"` // PostgresEngine Postgres engine version. If not provided, the latest version will be used. - PostgresEngine *PostgresEngine `json:"postgres_engine,omitempty"` + PostgresEngine *V1CreateProjectBodyDtoPostgresEngine `json:"postgres_engine,omitempty"` // Region Region you want your server to reside in - Region V1CreateProjectBodyRegion `json:"region"` - ReleaseChannel *ReleaseChannel `json:"release_channel,omitempty"` + Region V1CreateProjectBodyDtoRegion `json:"region"` + + // ReleaseChannel Release channel. If not provided, GA will be used. + ReleaseChannel *V1CreateProjectBodyDtoReleaseChannel `json:"release_channel,omitempty"` // TemplateUrl Template URL used to create the project from the CLI. TemplateUrl *string `json:"template_url,omitempty"` } -// V1CreateProjectBodyPlan Subscription Plan is now set on organization level and is ignored in this request -type V1CreateProjectBodyPlan string +// V1CreateProjectBodyDtoDesiredInstanceSize defines model for V1CreateProjectBodyDto.DesiredInstanceSize. +type V1CreateProjectBodyDtoDesiredInstanceSize string + +// V1CreateProjectBodyDtoPlan Subscription Plan is now set on organization level and is ignored in this request +type V1CreateProjectBodyDtoPlan string + +// V1CreateProjectBodyDtoPostgresEngine Postgres engine version. If not provided, the latest version will be used. +type V1CreateProjectBodyDtoPostgresEngine string -// V1CreateProjectBodyRegion Region you want your server to reside in -type V1CreateProjectBodyRegion string +// V1CreateProjectBodyDtoRegion Region you want your server to reside in +type V1CreateProjectBodyDtoRegion string + +// V1CreateProjectBodyDtoReleaseChannel Release channel. If not provided, GA will be used. +type V1CreateProjectBodyDtoReleaseChannel string // V1DatabaseResponse defines model for V1DatabaseResponse. type V1DatabaseResponse struct { @@ -1656,8 +1717,7 @@ type V1ProjectRefResponse struct { // V1ProjectResponse defines model for V1ProjectResponse. type V1ProjectResponse struct { // CreatedAt Creation timestamp - CreatedAt string `json:"created_at"` - Database *V1DatabaseResponse `json:"database,omitempty"` + CreatedAt string `json:"created_at"` // Id Id of your project Id string `json:"id"` @@ -1676,6 +1736,29 @@ type V1ProjectResponse struct { // V1ProjectResponseStatus defines model for V1ProjectResponse.Status. type V1ProjectResponseStatus string +// V1ProjectWithDatabaseResponse defines model for V1ProjectWithDatabaseResponse. +type V1ProjectWithDatabaseResponse struct { + // CreatedAt Creation timestamp + CreatedAt string `json:"created_at"` + Database V1DatabaseResponse `json:"database"` + + // Id Id of your project + Id string `json:"id"` + + // Name Name of your project + Name string `json:"name"` + + // OrganizationId Slug of your organization + OrganizationId string `json:"organization_id"` + + // Region Region of your project + Region string `json:"region"` + Status V1ProjectWithDatabaseResponseStatus `json:"status"` +} + +// V1ProjectWithDatabaseResponseStatus defines model for V1ProjectWithDatabaseResponse.Status. +type V1ProjectWithDatabaseResponseStatus string + // V1RestorePitrBody defines model for V1RestorePitrBody. type V1RestorePitrBody struct { RecoveryTimeTargetUnix int64 `json:"recovery_time_target_unix"` @@ -1718,9 +1801,10 @@ type V1StorageBucketResponse struct { // V1UpdateFunctionBody defines model for V1UpdateFunctionBody. type V1UpdateFunctionBody struct { - Body *string `json:"body,omitempty"` - Name *string `json:"name,omitempty"` - VerifyJwt *bool `json:"verify_jwt,omitempty"` + Body *string `json:"body,omitempty"` + ComputeMultiplier *float32 `json:"compute_multiplier,omitempty"` + Name *string `json:"name,omitempty"` + VerifyJwt *bool `json:"verify_jwt,omitempty"` } // ValidationError defines model for ValidationError. @@ -1766,24 +1850,51 @@ type V1AuthorizeUserParamsResponseType string // V1AuthorizeUserParamsCodeChallengeMethod defines parameters for V1AuthorizeUser. type V1AuthorizeUserParamsCodeChallengeMethod string +// V1GetProjectApiKeysParams defines parameters for V1GetProjectApiKeys. +type V1GetProjectApiKeysParams struct { + Reveal bool `form:"reveal" json:"reveal"` +} + +// CreateApiKeyParams defines parameters for CreateApiKey. +type CreateApiKeyParams struct { + Reveal bool `form:"reveal" json:"reveal"` +} + +// DeleteApiKeyParams defines parameters for DeleteApiKey. +type DeleteApiKeyParams struct { + Reveal bool `form:"reveal" json:"reveal"` +} + +// GetApiKeyParams defines parameters for GetApiKey. +type GetApiKeyParams struct { + Reveal bool `form:"reveal" json:"reveal"` +} + +// UpdateApiKeyParams defines parameters for UpdateApiKey. +type UpdateApiKeyParams struct { + Reveal bool `form:"reveal" json:"reveal"` +} + // V1CreateAFunctionParams defines parameters for V1CreateAFunction. type V1CreateAFunctionParams struct { - Slug *string `form:"slug,omitempty" json:"slug,omitempty"` - Name *string `form:"name,omitempty" json:"name,omitempty"` - VerifyJwt *bool `form:"verify_jwt,omitempty" json:"verify_jwt,omitempty"` - ImportMap *bool `form:"import_map,omitempty" json:"import_map,omitempty"` - EntrypointPath *string `form:"entrypoint_path,omitempty" json:"entrypoint_path,omitempty"` - ImportMapPath *string `form:"import_map_path,omitempty" json:"import_map_path,omitempty"` + Slug *string `form:"slug,omitempty" json:"slug,omitempty"` + Name *string `form:"name,omitempty" json:"name,omitempty"` + VerifyJwt *bool `form:"verify_jwt,omitempty" json:"verify_jwt,omitempty"` + ImportMap *bool `form:"import_map,omitempty" json:"import_map,omitempty"` + EntrypointPath *string `form:"entrypoint_path,omitempty" json:"entrypoint_path,omitempty"` + ImportMapPath *string `form:"import_map_path,omitempty" json:"import_map_path,omitempty"` + ComputeMultiplier *float32 `form:"compute_multiplier,omitempty" json:"compute_multiplier,omitempty"` } // V1UpdateAFunctionParams defines parameters for V1UpdateAFunction. type V1UpdateAFunctionParams struct { - Slug *string `form:"slug,omitempty" json:"slug,omitempty"` - Name *string `form:"name,omitempty" json:"name,omitempty"` - VerifyJwt *bool `form:"verify_jwt,omitempty" json:"verify_jwt,omitempty"` - ImportMap *bool `form:"import_map,omitempty" json:"import_map,omitempty"` - EntrypointPath *string `form:"entrypoint_path,omitempty" json:"entrypoint_path,omitempty"` - ImportMapPath *string `form:"import_map_path,omitempty" json:"import_map_path,omitempty"` + Slug *string `form:"slug,omitempty" json:"slug,omitempty"` + Name *string `form:"name,omitempty" json:"name,omitempty"` + VerifyJwt *bool `form:"verify_jwt,omitempty" json:"verify_jwt,omitempty"` + ImportMap *bool `form:"import_map,omitempty" json:"import_map,omitempty"` + EntrypointPath *string `form:"entrypoint_path,omitempty" json:"entrypoint_path,omitempty"` + ImportMapPath *string `form:"import_map_path,omitempty" json:"import_map_path,omitempty"` + ComputeMultiplier *float32 `form:"compute_multiplier,omitempty" json:"compute_multiplier,omitempty"` } // V1GetServicesHealthParams defines parameters for V1GetServicesHealth. @@ -1823,10 +1934,10 @@ type V1UpdateABranchConfigJSONRequestBody = UpdateBranchBody type V1ExchangeOauthTokenFormdataRequestBody = OAuthTokenBody // V1CreateAnOrganizationJSONRequestBody defines body for V1CreateAnOrganization for application/json ContentType. -type V1CreateAnOrganizationJSONRequestBody = CreateOrganizationBodyV1 +type V1CreateAnOrganizationJSONRequestBody = CreateOrganizationV1Dto // V1CreateAProjectJSONRequestBody defines body for V1CreateAProject for application/json ContentType. -type V1CreateAProjectJSONRequestBody = V1CreateProjectBody +type V1CreateAProjectJSONRequestBody = V1CreateProjectBodyDto // CreateApiKeyJSONRequestBody defines body for CreateApiKey for application/json ContentType. type CreateApiKeyJSONRequestBody = CreateApiKeyBody From be538b3688785bc82abfa6695cb2840bdbde50e8 Mon Sep 17 00:00:00 2001 From: Qiao Han Date: Mon, 25 Nov 2024 10:09:08 +0800 Subject: [PATCH 2/2] chore: revert to single quote --- api/beta.yaml | 1072 ++++++++++++++++++++++++------------------------- 1 file changed, 536 insertions(+), 536 deletions(-) diff --git a/api/beta.yaml b/api/beta.yaml index 79ea7e8c4..cd6c20a15 100644 --- a/api/beta.yaml +++ b/api/beta.yaml @@ -13,13 +13,13 @@ paths: schema: type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/BranchDetailResponse" - "500": + $ref: '#/components/schemas/BranchDetailResponse' + '500': description: Failed to retrieve database branch tags: - Environments @@ -41,15 +41,15 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UpdateBranchBody" + $ref: '#/components/schemas/UpdateBranchBody' responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/BranchResponse" - "500": + $ref: '#/components/schemas/BranchResponse' + '500': description: Failed to update database branch tags: - Environments @@ -67,13 +67,13 @@ paths: schema: type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/BranchDeleteResponse" - "500": + $ref: '#/components/schemas/BranchDeleteResponse' + '500': description: Failed to delete database branch tags: - Environments @@ -92,13 +92,13 @@ paths: schema: type: string responses: - "201": - description: "" + '201': + description: '' content: application/json: schema: - $ref: "#/components/schemas/BranchResetResponse" - "500": + $ref: '#/components/schemas/BranchResetResponse' + '500': description: Failed to reset database branch tags: - Environments @@ -111,14 +111,14 @@ paths: description: Returns a list of all projects you've previously created. parameters: [] responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: type: array items: - $ref: "#/components/schemas/V1ProjectWithDatabaseResponse" + $ref: '#/components/schemas/V1ProjectWithDatabaseResponse' tags: - Projects security: @@ -132,14 +132,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/V1CreateProjectBodyDto" + $ref: '#/components/schemas/V1CreateProjectBodyDto' responses: - "201": - description: "" + '201': + description: '' content: application/json: schema: - $ref: "#/components/schemas/V1ProjectResponse" + $ref: '#/components/schemas/V1ProjectResponse' tags: - Projects security: @@ -151,15 +151,15 @@ paths: description: Returns a list of organizations that you currently belong to. parameters: [] responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: type: array items: - $ref: "#/components/schemas/OrganizationResponseV1" - "500": + $ref: '#/components/schemas/OrganizationResponseV1' + '500': description: Unexpected error listing organizations tags: - Organizations @@ -174,15 +174,15 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateOrganizationV1Dto" + $ref: '#/components/schemas/CreateOrganizationV1Dto' responses: - "201": - description: "" + '201': + description: '' content: application/json: schema: - $ref: "#/components/schemas/OrganizationResponseV1" - "500": + $ref: '#/components/schemas/OrganizationResponseV1' + '500': description: Unexpected error creating an organization tags: - Organizations @@ -191,7 +191,7 @@ paths: /v1/oauth/authorize: get: operationId: v1-authorize-user - summary: "[Beta] Authorize user through oauth" + summary: '[Beta] Authorize user through oauth' parameters: - name: client_id required: true @@ -242,8 +242,8 @@ paths: - S256 type: string responses: - "303": - description: "" + '303': + description: '' tags: - OAuth security: @@ -252,21 +252,21 @@ paths: /v1/oauth/token: post: operationId: v1-exchange-oauth-token - summary: "[Beta] Exchange auth code for user's access and refresh token" + summary: '[Beta] Exchange auth code for user''s access and refresh token' parameters: [] requestBody: required: true content: application/x-www-form-urlencoded: schema: - $ref: "#/components/schemas/OAuthTokenBody" + $ref: '#/components/schemas/OAuthTokenBody' responses: - "201": - description: "" + '201': + description: '' content: application/json: schema: - $ref: "#/components/schemas/OAuthTokenResponse" + $ref: '#/components/schemas/OAuthTokenResponse' tags: - OAuth security: @@ -283,13 +283,13 @@ paths: schema: type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/SnippetList" - "500": + $ref: '#/components/schemas/SnippetList' + '500': description: Failed to list user's SQL snippets tags: - Database @@ -306,13 +306,13 @@ paths: schema: type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/SnippetResponse" - "500": + $ref: '#/components/schemas/SnippetResponse' + '500': description: Failed to retrieve SQL snippet tags: - Database @@ -337,21 +337,21 @@ paths: schema: type: boolean responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: type: array items: - $ref: "#/components/schemas/ApiKeyResponse" + $ref: '#/components/schemas/ApiKeyResponse' tags: - Secrets security: - bearer: [] post: operationId: createApiKey - summary: "[Alpha] Creates a new API key for the project" + summary: '[Alpha] Creates a new API key for the project' parameters: - name: ref required: true @@ -371,14 +371,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateApiKeyBody" + $ref: '#/components/schemas/CreateApiKeyBody' responses: - "201": - description: "" + '201': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ApiKeyResponse" + $ref: '#/components/schemas/ApiKeyResponse' tags: - Secrets security: @@ -386,7 +386,7 @@ paths: /v1/projects/{ref}/api-keys/{id}: patch: operationId: updateApiKey - summary: "[Alpha] Updates an API key for the project" + summary: '[Alpha] Updates an API key for the project' parameters: - name: ref required: true @@ -411,21 +411,21 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UpdateApiKeyBody" + $ref: '#/components/schemas/UpdateApiKeyBody' responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ApiKeyResponse" + $ref: '#/components/schemas/ApiKeyResponse' tags: - Secrets security: - bearer: [] get: operationId: getApiKey - summary: "[Alpha] Get API key" + summary: '[Alpha] Get API key' parameters: - name: ref required: true @@ -446,19 +446,19 @@ paths: schema: type: boolean responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ApiKeyResponse" + $ref: '#/components/schemas/ApiKeyResponse' tags: - Secrets security: - bearer: [] delete: operationId: deleteApiKey - summary: "[Alpha] Deletes an API key for the project" + summary: '[Alpha] Deletes an API key for the project' parameters: - name: ref required: true @@ -479,14 +479,14 @@ paths: schema: type: boolean responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ApiKeyResponse" - "403": - description: "" + $ref: '#/components/schemas/ApiKeyResponse' + '403': + description: '' tags: - Secrets security: @@ -506,15 +506,15 @@ paths: maxLength: 20 type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: type: array items: - $ref: "#/components/schemas/BranchResponse" - "500": + $ref: '#/components/schemas/BranchResponse' + '500': description: Failed to retrieve database branches tags: - Environments @@ -538,15 +538,15 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateBranchBody" + $ref: '#/components/schemas/CreateBranchBody' responses: - "201": - description: "" + '201': + description: '' content: application/json: schema: - $ref: "#/components/schemas/BranchResponse" - "500": + $ref: '#/components/schemas/BranchResponse' + '500': description: Failed to create database branch tags: - Environments @@ -566,9 +566,9 @@ paths: maxLength: 20 type: string responses: - "200": - description: "" - "500": + '200': + description: '' + '500': description: Failed to disable preview branching tags: - Environments @@ -577,7 +577,7 @@ paths: /v1/projects/{ref}/custom-hostname: get: operationId: v1-get-hostname-config - summary: "[Beta] Gets project's custom hostname config" + summary: '[Beta] Gets project''s custom hostname config' parameters: - name: ref required: true @@ -588,15 +588,15 @@ paths: maxLength: 20 type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/UpdateCustomHostnameResponse" - "403": - description: "" - "500": + $ref: '#/components/schemas/UpdateCustomHostnameResponse' + '403': + description: '' + '500': description: Failed to retrieve project's custom hostname config tags: - Domains @@ -604,7 +604,7 @@ paths: - bearer: [] delete: operationId: v1-Delete hostname config - summary: "[Beta] Deletes a project's custom hostname configuration" + summary: '[Beta] Deletes a project''s custom hostname configuration' parameters: - name: ref required: true @@ -615,11 +615,11 @@ paths: maxLength: 20 type: string responses: - "200": - description: "" - "403": - description: "" - "500": + '200': + description: '' + '403': + description: '' + '500': description: Failed to delete project custom hostname configuration tags: - Domains @@ -628,7 +628,7 @@ paths: /v1/projects/{ref}/custom-hostname/initialize: post: operationId: v1-update-hostname-config - summary: "[Beta] Updates project's custom hostname configuration" + summary: '[Beta] Updates project''s custom hostname configuration' parameters: - name: ref required: true @@ -643,17 +643,17 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UpdateCustomHostnameBody" + $ref: '#/components/schemas/UpdateCustomHostnameBody' responses: - "201": - description: "" + '201': + description: '' content: application/json: schema: - $ref: "#/components/schemas/UpdateCustomHostnameResponse" - "403": - description: "" - "500": + $ref: '#/components/schemas/UpdateCustomHostnameResponse' + '403': + description: '' + '500': description: Failed to update project custom hostname configuration tags: - Domains @@ -675,15 +675,15 @@ paths: maxLength: 20 type: string responses: - "201": - description: "" + '201': + description: '' content: application/json: schema: - $ref: "#/components/schemas/UpdateCustomHostnameResponse" - "403": - description: "" - "500": + $ref: '#/components/schemas/UpdateCustomHostnameResponse' + '403': + description: '' + '500': description: Failed to verify project custom hostname configuration tags: - Domains @@ -692,7 +692,7 @@ paths: /v1/projects/{ref}/custom-hostname/activate: post: operationId: v1-activate-custom-hostname - summary: "[Beta] Activates a custom hostname for a project." + summary: '[Beta] Activates a custom hostname for a project.' parameters: - name: ref required: true @@ -703,15 +703,15 @@ paths: maxLength: 20 type: string responses: - "201": - description: "" + '201': + description: '' content: application/json: schema: - $ref: "#/components/schemas/UpdateCustomHostnameResponse" - "403": - description: "" - "500": + $ref: '#/components/schemas/UpdateCustomHostnameResponse' + '403': + description: '' + '500': description: Failed to activate project custom hostname configuration tags: - Domains @@ -720,7 +720,7 @@ paths: /v1/projects/{ref}/network-bans/retrieve: post: operationId: v1-list-all-network-bans - summary: "[Beta] Gets project's network bans" + summary: '[Beta] Gets project''s network bans' parameters: - name: ref required: true @@ -731,15 +731,15 @@ paths: maxLength: 20 type: string responses: - "201": - description: "" + '201': + description: '' content: application/json: schema: - $ref: "#/components/schemas/NetworkBanResponse" - "403": - description: "" - "500": + $ref: '#/components/schemas/NetworkBanResponse' + '403': + description: '' + '500': description: Failed to retrieve project's network bans tags: - Projects @@ -748,7 +748,7 @@ paths: /v1/projects/{ref}/network-bans: delete: operationId: v1-delete-network-bans - summary: "[Beta] Remove network bans." + summary: '[Beta] Remove network bans.' parameters: - name: ref required: true @@ -763,13 +763,13 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/RemoveNetworkBanRequest" + $ref: '#/components/schemas/RemoveNetworkBanRequest' responses: - "200": - description: "" - "403": - description: "" - "500": + '200': + description: '' + '403': + description: '' + '500': description: Failed to remove network bans. tags: - Projects @@ -778,7 +778,7 @@ paths: /v1/projects/{ref}/network-restrictions: get: operationId: v1-get-network-restrictions - summary: "[Beta] Gets project's network restrictions" + summary: '[Beta] Gets project''s network restrictions' parameters: - name: ref required: true @@ -789,15 +789,15 @@ paths: maxLength: 20 type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/NetworkRestrictionsResponse" - "403": - description: "" - "500": + $ref: '#/components/schemas/NetworkRestrictionsResponse' + '403': + description: '' + '500': description: Failed to retrieve project's network restrictions tags: - Projects @@ -806,7 +806,7 @@ paths: /v1/projects/{ref}/network-restrictions/apply: post: operationId: v1-update-network-restrictions - summary: "[Beta] Updates project's network restrictions" + summary: '[Beta] Updates project''s network restrictions' parameters: - name: ref required: true @@ -821,17 +821,17 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/NetworkRestrictionsRequest" + $ref: '#/components/schemas/NetworkRestrictionsRequest' responses: - "201": - description: "" + '201': + description: '' content: application/json: schema: - $ref: "#/components/schemas/NetworkRestrictionsResponse" - "403": - description: "" - "500": + $ref: '#/components/schemas/NetworkRestrictionsResponse' + '403': + description: '' + '500': description: Failed to update project network restrictions tags: - Projects @@ -840,7 +840,7 @@ paths: /v1/projects/{ref}/pgsodium: get: operationId: v1-get-pgsodium-config - summary: "[Beta] Gets project's pgsodium config" + summary: '[Beta] Gets project''s pgsodium config' parameters: - name: ref required: true @@ -851,15 +851,15 @@ paths: maxLength: 20 type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/PgsodiumConfigResponse" - "403": - description: "" - "500": + $ref: '#/components/schemas/PgsodiumConfigResponse' + '403': + description: '' + '500': description: Failed to retrieve project's pgsodium config tags: - Secrets @@ -884,17 +884,17 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UpdatePgsodiumConfigBody" + $ref: '#/components/schemas/UpdatePgsodiumConfigBody' responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/PgsodiumConfigResponse" - "403": - description: "" - "500": + $ref: '#/components/schemas/PgsodiumConfigResponse' + '403': + description: '' + '500': description: Failed to update project's pgsodium config tags: - Secrets @@ -914,15 +914,15 @@ paths: maxLength: 20 type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/PostgrestConfigWithJWTSecretResponse" - "403": - description: "" - "500": + $ref: '#/components/schemas/PostgrestConfigWithJWTSecretResponse' + '403': + description: '' + '500': description: Failed to retrieve project's postgrest config tags: - Rest @@ -945,17 +945,17 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UpdatePostgrestConfigBody" + $ref: '#/components/schemas/UpdatePostgrestConfigBody' responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/V1PostgrestConfigResponse" - "403": - description: "" - "500": + $ref: '#/components/schemas/V1PostgrestConfigResponse' + '403': + description: '' + '500': description: Failed to update project's postgrest config tags: - Rest @@ -975,13 +975,13 @@ paths: maxLength: 20 type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/V1ProjectWithDatabaseResponse" - "500": + $ref: '#/components/schemas/V1ProjectWithDatabaseResponse' + '500': description: Failed to retrieve project tags: - Projects @@ -1000,14 +1000,14 @@ paths: maxLength: 20 type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/V1ProjectRefResponse" - "403": - description: "" + $ref: '#/components/schemas/V1ProjectRefResponse' + '403': + description: '' tags: - Projects security: @@ -1027,17 +1027,17 @@ paths: maxLength: 20 type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: type: array items: - $ref: "#/components/schemas/SecretResponse" - "403": - description: "" - "500": + $ref: '#/components/schemas/SecretResponse' + '403': + description: '' + '500': description: Failed to retrieve project's secrets tags: - Secrets @@ -1063,13 +1063,13 @@ paths: schema: type: array items: - $ref: "#/components/schemas/CreateSecretBody" + $ref: '#/components/schemas/CreateSecretBody' responses: - "201": - description: "" - "403": - description: "" - "500": + '201': + description: '' + '403': + description: '' + '500': description: Failed to create project's secrets tags: - Secrets @@ -1097,15 +1097,15 @@ paths: items: type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: type: object - "403": - description: "" - "500": + '403': + description: '' + '500': description: Failed to delete secrets with given names tags: - Secrets @@ -1114,7 +1114,7 @@ paths: /v1/projects/{ref}/ssl-enforcement: get: operationId: v1-get-ssl-enforcement-config - summary: "[Beta] Get project's SSL enforcement configuration." + summary: '[Beta] Get project''s SSL enforcement configuration.' parameters: - name: ref required: true @@ -1125,15 +1125,15 @@ paths: maxLength: 20 type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/SslEnforcementResponse" - "403": - description: "" - "500": + $ref: '#/components/schemas/SslEnforcementResponse' + '403': + description: '' + '500': description: Failed to retrieve project's SSL enforcement config tags: - Database @@ -1141,7 +1141,7 @@ paths: - bearer: [] put: operationId: v1-update-ssl-enforcement-config - summary: "[Beta] Update project's SSL enforcement configuration." + summary: '[Beta] Update project''s SSL enforcement configuration.' parameters: - name: ref required: true @@ -1156,17 +1156,17 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/SslEnforcementRequest" + $ref: '#/components/schemas/SslEnforcementRequest' responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/SslEnforcementResponse" - "403": - description: "" - "500": + $ref: '#/components/schemas/SslEnforcementResponse' + '403': + description: '' + '500': description: Failed to update project's SSL enforcement configuration. tags: - Database @@ -1193,15 +1193,15 @@ paths: maxLength: 20 type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/TypescriptResponse" - "403": - description: "" - "500": + $ref: '#/components/schemas/TypescriptResponse' + '403': + description: '' + '500': description: Failed to generate TypeScript types tags: - Database @@ -1210,7 +1210,7 @@ paths: /v1/projects/{ref}/vanity-subdomain: get: operationId: v1-get-vanity-subdomain-config - summary: "[Beta] Gets current vanity subdomain config" + summary: '[Beta] Gets current vanity subdomain config' parameters: - name: ref required: true @@ -1221,15 +1221,15 @@ paths: maxLength: 20 type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/VanitySubdomainConfigResponse" - "403": - description: "" - "500": + $ref: '#/components/schemas/VanitySubdomainConfigResponse' + '403': + description: '' + '500': description: Failed to get project vanity subdomain configuration tags: - Domains @@ -1237,7 +1237,7 @@ paths: - bearer: [] delete: operationId: v1-deactivate-vanity-subdomain-config - summary: "[Beta] Deletes a project's vanity subdomain configuration" + summary: '[Beta] Deletes a project''s vanity subdomain configuration' parameters: - name: ref required: true @@ -1248,11 +1248,11 @@ paths: maxLength: 20 type: string responses: - "200": - description: "" - "403": - description: "" - "500": + '200': + description: '' + '403': + description: '' + '500': description: Failed to delete project vanity subdomain configuration tags: - Domains @@ -1261,7 +1261,7 @@ paths: /v1/projects/{ref}/vanity-subdomain/check-availability: post: operationId: v1-check-vanity-subdomain-availability - summary: "[Beta] Checks vanity subdomain availability" + summary: '[Beta] Checks vanity subdomain availability' parameters: - name: ref required: true @@ -1276,17 +1276,17 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/VanitySubdomainBody" + $ref: '#/components/schemas/VanitySubdomainBody' responses: - "201": - description: "" + '201': + description: '' content: application/json: schema: - $ref: "#/components/schemas/SubdomainAvailabilityResponse" - "403": - description: "" - "500": + $ref: '#/components/schemas/SubdomainAvailabilityResponse' + '403': + description: '' + '500': description: Failed to check project vanity subdomain configuration tags: - Domains @@ -1295,7 +1295,7 @@ paths: /v1/projects/{ref}/vanity-subdomain/activate: post: operationId: v1-activate-vanity-subdomain-config - summary: "[Beta] Activates a vanity subdomain for a project." + summary: '[Beta] Activates a vanity subdomain for a project.' parameters: - name: ref required: true @@ -1310,17 +1310,17 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/VanitySubdomainBody" + $ref: '#/components/schemas/VanitySubdomainBody' responses: - "201": - description: "" + '201': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ActivateVanitySubdomainResponse" - "403": - description: "" - "500": + $ref: '#/components/schemas/ActivateVanitySubdomainResponse' + '403': + description: '' + '500': description: Failed to activate project vanity subdomain configuration tags: - Domains @@ -1329,7 +1329,7 @@ paths: /v1/projects/{ref}/upgrade: post: operationId: v1-upgrade-postgres-version - summary: "[Beta] Upgrades the project's Postgres version" + summary: '[Beta] Upgrades the project''s Postgres version' parameters: - name: ref required: true @@ -1344,17 +1344,17 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UpgradeDatabaseBody" + $ref: '#/components/schemas/UpgradeDatabaseBody' responses: - "201": - description: "" + '201': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ProjectUpgradeInitiateResponse" - "403": - description: "" - "500": + $ref: '#/components/schemas/ProjectUpgradeInitiateResponse' + '403': + description: '' + '500': description: Failed to initiate project upgrade tags: - Projects @@ -1363,7 +1363,7 @@ paths: /v1/projects/{ref}/upgrade/eligibility: get: operationId: v1-get-postgres-upgrade-eligibility - summary: "[Beta] Returns the project's eligibility for upgrades" + summary: '[Beta] Returns the project''s eligibility for upgrades' parameters: - name: ref required: true @@ -1374,15 +1374,15 @@ paths: maxLength: 20 type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ProjectUpgradeEligibilityResponse" - "403": - description: "" - "500": + $ref: '#/components/schemas/ProjectUpgradeEligibilityResponse' + '403': + description: '' + '500': description: Failed to determine project upgrade eligibility tags: - Projects @@ -1391,7 +1391,7 @@ paths: /v1/projects/{ref}/upgrade/status: get: operationId: v1-get-postgres-upgrade-status - summary: "[Beta] Gets the latest status of the project's upgrade" + summary: '[Beta] Gets the latest status of the project''s upgrade' parameters: - name: ref required: true @@ -1407,15 +1407,15 @@ paths: schema: type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/DatabaseUpgradeStatusResponse" - "403": - description: "" - "500": + $ref: '#/components/schemas/DatabaseUpgradeStatusResponse' + '403': + description: '' + '500': description: Failed to retrieve project upgrade status tags: - Projects @@ -1435,13 +1435,13 @@ paths: maxLength: 20 type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ReadOnlyStatusResponse" - "500": + $ref: '#/components/schemas/ReadOnlyStatusResponse' + '500': description: Failed to get project readonly mode status tags: - Database @@ -1461,9 +1461,9 @@ paths: maxLength: 20 type: string responses: - "201": - description: "" - "500": + '201': + description: '' + '500': description: Failed to disable project's readonly mode tags: - Database @@ -1472,7 +1472,7 @@ paths: /v1/projects/{ref}/read-replicas/setup: post: operationId: v1-setup-a-read-replica - summary: "[Beta] Set up a read replica" + summary: '[Beta] Set up a read replica' parameters: - name: ref required: true @@ -1487,13 +1487,13 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/SetUpReadReplicaBody" + $ref: '#/components/schemas/SetUpReadReplicaBody' responses: - "201": - description: "" - "403": - description: "" - "500": + '201': + description: '' + '403': + description: '' + '500': description: Failed to set up read replica tags: - Database @@ -1502,7 +1502,7 @@ paths: /v1/projects/{ref}/read-replicas/remove: post: operationId: v1-remove-a-read-replica - summary: "[Beta] Remove a read replica" + summary: '[Beta] Remove a read replica' parameters: - name: ref required: true @@ -1517,13 +1517,13 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/RemoveReadReplicaBody" + $ref: '#/components/schemas/RemoveReadReplicaBody' responses: - "201": - description: "" - "403": - description: "" - "500": + '201': + description: '' + '403': + description: '' + '500': description: Failed to remove read replica tags: - Database @@ -1564,17 +1564,17 @@ paths: - rest - storage responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: type: array items: - $ref: "#/components/schemas/V1ServiceHealthResponse" - "403": - description: "" - "500": + $ref: '#/components/schemas/V1ServiceHealthResponse' + '403': + description: '' + '500': description: Failed to retrieve project's service health status tags: - Projects @@ -1594,15 +1594,15 @@ paths: maxLength: 20 type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/StorageConfigResponse" - "403": - description: "" - "500": + $ref: '#/components/schemas/StorageConfigResponse' + '403': + description: '' + '500': description: Failed to retrieve project's storage config tags: - Storage @@ -1625,13 +1625,13 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UpdateStorageConfigBody" + $ref: '#/components/schemas/UpdateStorageConfigBody' responses: - "200": - description: "" - "403": - description: "" - "500": + '200': + description: '' + '403': + description: '' + '500': description: Failed to update project's storage config tags: - Storage @@ -1651,13 +1651,13 @@ paths: maxLength: 20 type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/PostgresConfigResponse" - "500": + $ref: '#/components/schemas/PostgresConfigResponse' + '500': description: Failed to retrieve project's Postgres config tags: - Database @@ -1680,17 +1680,17 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UpdatePostgresConfigBody" + $ref: '#/components/schemas/UpdatePostgresConfigBody' responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/PostgresConfigResponse" - "403": - description: "" - "500": + $ref: '#/components/schemas/PostgresConfigResponse' + '403': + description: '' + '500': description: Failed to update project's Postgres config tags: - Database @@ -1710,13 +1710,13 @@ paths: maxLength: 20 type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/V1PgbouncerConfigResponse" - "500": + $ref: '#/components/schemas/V1PgbouncerConfigResponse' + '500': description: Failed to retrieve project's pgbouncer config tags: - Database @@ -1734,15 +1734,15 @@ paths: maxLength: 20 type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: type: array items: - $ref: "#/components/schemas/SupavisorConfigResponse" - "500": + $ref: '#/components/schemas/SupavisorConfigResponse' + '500': description: Failed to retrieve project's supavisor config tags: - Database @@ -1765,17 +1765,17 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UpdateSupavisorConfigBody" + $ref: '#/components/schemas/UpdateSupavisorConfigBody' responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/UpdateSupavisorConfigResponse" - "403": - description: "" - "500": + $ref: '#/components/schemas/UpdateSupavisorConfigResponse' + '403': + description: '' + '500': description: Failed to update project's supavisor config tags: - Database @@ -1795,15 +1795,15 @@ paths: maxLength: 20 type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/AuthConfigResponse" - "403": - description: "" - "500": + $ref: '#/components/schemas/AuthConfigResponse' + '403': + description: '' + '500': description: Failed to retrieve project's auth config tags: - Auth @@ -1826,17 +1826,17 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UpdateAuthConfigBody" + $ref: '#/components/schemas/UpdateAuthConfigBody' responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/AuthConfigResponse" - "403": - description: "" - "500": + $ref: '#/components/schemas/AuthConfigResponse' + '403': + description: '' + '500': description: Failed to update project's auth config tags: - Auth @@ -1860,23 +1860,23 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateThirdPartyAuthBody" + $ref: '#/components/schemas/CreateThirdPartyAuthBody' responses: - "201": - description: "" + '201': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ThirdPartyAuth" - "403": - description: "" + $ref: '#/components/schemas/ThirdPartyAuth' + '403': + description: '' tags: - Auth security: - bearer: [] get: operationId: listTPAForProject - summary: "[Alpha] Lists all third-party auth integrations" + summary: '[Alpha] Lists all third-party auth integrations' parameters: - name: ref required: true @@ -1887,16 +1887,16 @@ paths: maxLength: 20 type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: type: array items: - $ref: "#/components/schemas/ThirdPartyAuth" - "403": - description: "" + $ref: '#/components/schemas/ThirdPartyAuth' + '403': + description: '' tags: - Auth security: @@ -1904,7 +1904,7 @@ paths: /v1/projects/{ref}/config/auth/third-party-auth/{tpa_id}: delete: operationId: deleteTPAForProject - summary: "[Alpha] Removes a third-party auth integration" + summary: '[Alpha] Removes a third-party auth integration' parameters: - name: ref required: true @@ -1920,21 +1920,21 @@ paths: schema: type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ThirdPartyAuth" - "403": - description: "" + $ref: '#/components/schemas/ThirdPartyAuth' + '403': + description: '' tags: - Auth security: - bearer: [] get: operationId: getTPAForProject - summary: "[Alpha] Get a third-party integration" + summary: '[Alpha] Get a third-party integration' parameters: - name: ref required: true @@ -1950,14 +1950,14 @@ paths: schema: type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ThirdPartyAuth" - "403": - description: "" + $ref: '#/components/schemas/ThirdPartyAuth' + '403': + description: '' tags: - Auth security: @@ -1965,7 +1965,7 @@ paths: /v1/projects/{ref}/database/query: post: operationId: v1-run-a-query - summary: "[Beta] Run sql query" + summary: '[Beta] Run sql query' parameters: - name: ref required: true @@ -1980,17 +1980,17 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/V1RunQueryBody" + $ref: '#/components/schemas/V1RunQueryBody' responses: - "201": - description: "" + '201': + description: '' content: application/json: schema: type: object - "403": - description: "" - "500": + '403': + description: '' + '500': description: Failed to run sql query tags: - Database @@ -1999,7 +1999,7 @@ paths: /v1/projects/{ref}/database/webhooks/enable: post: operationId: v1-enable-database-webhook - summary: "[Beta] Enables Database Webhooks on the project" + summary: '[Beta] Enables Database Webhooks on the project' parameters: - name: ref required: true @@ -2010,11 +2010,11 @@ paths: maxLength: 20 type: string responses: - "201": - description: "" - "403": - description: "" - "500": + '201': + description: '' + '403': + description: '' + '500': description: Failed to enable Database Webhooks on the project tags: - Database @@ -2077,20 +2077,20 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/V1CreateFunctionBody" + $ref: '#/components/schemas/V1CreateFunctionBody' application/vnd.denoland.eszip: schema: - $ref: "#/components/schemas/V1CreateFunctionBody" + $ref: '#/components/schemas/V1CreateFunctionBody' responses: - "201": - description: "" + '201': + description: '' content: application/json: schema: - $ref: "#/components/schemas/FunctionResponse" - "403": - description: "" - "500": + $ref: '#/components/schemas/FunctionResponse' + '403': + description: '' + '500': description: Failed to create project's function tags: - Edge Functions @@ -2110,17 +2110,17 @@ paths: maxLength: 20 type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: type: array items: - $ref: "#/components/schemas/FunctionResponse" - "403": - description: "" - "500": + $ref: '#/components/schemas/FunctionResponse' + '403': + description: '' + '500': description: Failed to retrieve project's functions tags: - Edge Functions @@ -2148,15 +2148,15 @@ paths: pattern: /^[A-Za-z0-9_-]+$/ type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/FunctionSlugResponse" - "403": - description: "" - "500": + $ref: '#/components/schemas/FunctionSlugResponse' + '403': + description: '' + '500': description: Failed to retrieve function with given slug tags: - Edge Functions @@ -2225,20 +2225,20 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/V1UpdateFunctionBody" + $ref: '#/components/schemas/V1UpdateFunctionBody' application/vnd.denoland.eszip: schema: - $ref: "#/components/schemas/V1UpdateFunctionBody" + $ref: '#/components/schemas/V1UpdateFunctionBody' responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/FunctionResponse" - "403": - description: "" - "500": + $ref: '#/components/schemas/FunctionResponse' + '403': + description: '' + '500': description: Failed to update function with given slug tags: - Edge Functions @@ -2265,11 +2265,11 @@ paths: pattern: /^[A-Za-z0-9_-]+$/ type: string responses: - "200": - description: "" - "403": - description: "" - "500": + '200': + description: '' + '403': + description: '' + '500': description: Failed to delete function with given slug tags: - Edge Functions @@ -2297,11 +2297,11 @@ paths: pattern: /^[A-Za-z0-9_-]+$/ type: string responses: - "200": - description: "" - "403": - description: "" - "500": + '200': + description: '' + '403': + description: '' + '500': description: Failed to retrieve function body with given slug tags: - Edge Functions @@ -2321,17 +2321,17 @@ paths: maxLength: 20 type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: type: array items: - $ref: "#/components/schemas/V1StorageBucketResponse" - "403": - description: "" - "500": + $ref: '#/components/schemas/V1StorageBucketResponse' + '403': + description: '' + '500': description: Failed to get list of buckets tags: - Storage @@ -2355,17 +2355,17 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateProviderBody" + $ref: '#/components/schemas/CreateProviderBody' responses: - "201": - description: "" + '201': + description: '' content: application/json: schema: - $ref: "#/components/schemas/CreateProviderResponse" - "403": - description: "" - "404": + $ref: '#/components/schemas/CreateProviderResponse' + '403': + description: '' + '404': description: SAML 2.0 support is not enabled for this project tags: - Auth @@ -2384,15 +2384,15 @@ paths: maxLength: 20 type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ListProvidersResponse" - "403": - description: "" - "404": + $ref: '#/components/schemas/ListProvidersResponse' + '403': + description: '' + '404': description: SAML 2.0 support is not enabled for this project tags: - Auth @@ -2417,15 +2417,15 @@ paths: schema: type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/GetProviderResponse" - "403": - description: "" - "404": + $ref: '#/components/schemas/GetProviderResponse' + '403': + description: '' + '404': description: >- Either SAML 2.0 was not enabled for this project, or the provider does not exist @@ -2455,17 +2455,17 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UpdateProviderBody" + $ref: '#/components/schemas/UpdateProviderBody' responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/UpdateProviderResponse" - "403": - description: "" - "404": + $ref: '#/components/schemas/UpdateProviderResponse' + '403': + description: '' + '404': description: >- Either SAML 2.0 was not enabled for this project, or the provider does not exist @@ -2491,15 +2491,15 @@ paths: schema: type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/DeleteProviderResponse" - "403": - description: "" - "404": + $ref: '#/components/schemas/DeleteProviderResponse' + '403': + description: '' + '404': description: >- Either SAML 2.0 was not enabled for this project, or the provider does not exist @@ -2521,13 +2521,13 @@ paths: maxLength: 20 type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/V1BackupsResponse" - "500": + $ref: '#/components/schemas/V1BackupsResponse' + '500': description: Failed to get backups tags: - Database @@ -2551,10 +2551,10 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/V1RestorePitrBody" + $ref: '#/components/schemas/V1RestorePitrBody' responses: - "201": - description: "" + '201': + description: '' tags: - Database security: @@ -2570,14 +2570,14 @@ paths: schema: type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: type: array items: - $ref: "#/components/schemas/V1OrganizationMemberResponse" + $ref: '#/components/schemas/V1OrganizationMemberResponse' tags: - Organizations security: @@ -2593,12 +2593,12 @@ paths: schema: type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/V1OrganizationSlugResponse" + $ref: '#/components/schemas/V1OrganizationSlugResponse' tags: - Organizations security: @@ -2814,9 +2814,9 @@ components: created_at: type: string description: Creation timestamp - example: "2023-03-29T16:32:59Z" + example: '2023-03-29T16:32:59Z' database: - $ref: "#/components/schemas/V1DatabaseResponse" + $ref: '#/components/schemas/V1DatabaseResponse' status: enum: - ACTIVE_HEALTHY @@ -2921,7 +2921,7 @@ components: postgres_engine: type: string enum: - - "15" + - '15' description: >- Postgres engine version. If not provided, the latest version will be used. @@ -2950,7 +2950,7 @@ components: created_at: type: string description: Creation timestamp - example: "2023-03-29T16:32:59Z" + example: '2023-03-29T16:32:59Z' status: enum: - ACTIVE_HEALTHY @@ -3084,11 +3084,11 @@ components: description: type: string project: - $ref: "#/components/schemas/SnippetProject" + $ref: '#/components/schemas/SnippetProject' owner: - $ref: "#/components/schemas/SnippetUser" + $ref: '#/components/schemas/SnippetUser' updated_by: - $ref: "#/components/schemas/SnippetUser" + $ref: '#/components/schemas/SnippetUser' required: - id - inserted_at @@ -3105,7 +3105,7 @@ components: data: type: array items: - $ref: "#/components/schemas/SnippetMeta" + $ref: '#/components/schemas/SnippetMeta' required: - data SnippetContent: @@ -3146,13 +3146,13 @@ components: description: type: string project: - $ref: "#/components/schemas/SnippetProject" + $ref: '#/components/schemas/SnippetProject' owner: - $ref: "#/components/schemas/SnippetUser" + $ref: '#/components/schemas/SnippetUser' updated_by: - $ref: "#/components/schemas/SnippetUser" + $ref: '#/components/schemas/SnippetUser' content: - $ref: "#/components/schemas/SnippetContent" + $ref: '#/components/schemas/SnippetContent' required: - id - inserted_at @@ -3200,7 +3200,7 @@ components: secret_jwt_template: nullable: true allOf: - - $ref: "#/components/schemas/ApiKeySecretJWTTemplate" + - $ref: '#/components/schemas/ApiKeySecretJWTTemplate' inserted_at: type: string nullable: true @@ -3224,7 +3224,7 @@ components: secret_jwt_template: nullable: true allOf: - - $ref: "#/components/schemas/ApiKeySecretJWTTemplate" + - $ref: '#/components/schemas/ApiKeySecretJWTTemplate' required: - type UpdateApiKeyBody: @@ -3236,7 +3236,7 @@ components: secret_jwt_template: nullable: true allOf: - - $ref: "#/components/schemas/ApiKeySecretJWTTemplate" + - $ref: '#/components/schemas/ApiKeySecretJWTTemplate' DesiredInstanceSize: type: string enum: @@ -3264,16 +3264,16 @@ components: Postgres engine version. If not provided, the latest version will be used. enum: - - "15" + - '15' CreateBranchBody: type: object properties: desired_instance_size: - $ref: "#/components/schemas/DesiredInstanceSize" + $ref: '#/components/schemas/DesiredInstanceSize' release_channel: - $ref: "#/components/schemas/ReleaseChannel" + $ref: '#/components/schemas/ReleaseChannel' postgres_engine: - $ref: "#/components/schemas/PostgresEngine" + $ref: '#/components/schemas/PostgresEngine' branch_name: type: string git_branch: @@ -3309,11 +3309,11 @@ components: validation_records: type: array items: - $ref: "#/components/schemas/ValidationRecord" + $ref: '#/components/schemas/ValidationRecord' validation_errors: type: array items: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/schemas/ValidationError' required: - status - validation_records @@ -3338,9 +3338,9 @@ components: hostname: type: string ssl: - $ref: "#/components/schemas/SslValidation" + $ref: '#/components/schemas/SslValidation' ownership_verification: - $ref: "#/components/schemas/OwnershipVerification" + $ref: '#/components/schemas/OwnershipVerification' custom_origin_server: type: string verification_errors: @@ -3370,7 +3370,7 @@ components: items: type: object result: - $ref: "#/components/schemas/CustomHostnameDetails" + $ref: '#/components/schemas/CustomHostnameDetails' required: - success - errors @@ -3390,7 +3390,7 @@ components: custom_hostname: type: string data: - $ref: "#/components/schemas/CfResponse" + $ref: '#/components/schemas/CfResponse' required: - status - custom_hostname @@ -3440,9 +3440,9 @@ components: - allowed type: string config: - $ref: "#/components/schemas/NetworkRestrictionsRequest" + $ref: '#/components/schemas/NetworkRestrictionsRequest' old_config: - $ref: "#/components/schemas/NetworkRestrictionsRequest" + $ref: '#/components/schemas/NetworkRestrictionsRequest' status: enum: - stored @@ -3573,7 +3573,7 @@ components: type: object properties: currentConfig: - $ref: "#/components/schemas/SslEnforcements" + $ref: '#/components/schemas/SslEnforcements' appliedSuccessfully: type: boolean required: @@ -3583,7 +3583,7 @@ components: type: object properties: requestedConfig: - $ref: "#/components/schemas/SslEnforcements" + $ref: '#/components/schemas/SslEnforcements' required: - requestedConfig TypescriptResponse: @@ -3631,7 +3631,7 @@ components: type: object properties: release_channel: - $ref: "#/components/schemas/ReleaseChannel" + $ref: '#/components/schemas/ReleaseChannel' target_version: type: string required: @@ -3648,9 +3648,9 @@ components: type: object properties: postgres_version: - $ref: "#/components/schemas/PostgresEngine" + $ref: '#/components/schemas/PostgresEngine' release_channel: - $ref: "#/components/schemas/ReleaseChannel" + $ref: '#/components/schemas/ReleaseChannel' app_version: type: string required: @@ -3661,7 +3661,7 @@ components: type: object properties: current_app_version_release_channel: - $ref: "#/components/schemas/ReleaseChannel" + $ref: '#/components/schemas/ReleaseChannel' duration_estimate_hours: type: integer eligible: @@ -3673,7 +3673,7 @@ components: target_upgrade_versions: type: array items: - $ref: "#/components/schemas/ProjectVersion" + $ref: '#/components/schemas/ProjectVersion' potential_breaking_changes: type: array items: @@ -3748,7 +3748,7 @@ components: databaseUpgradeStatus: nullable: true allOf: - - $ref: "#/components/schemas/DatabaseUpgradeStatus" + - $ref: '#/components/schemas/DatabaseUpgradeStatus' required: - databaseUpgradeStatus ReadOnlyStatusResponse: @@ -3820,8 +3820,8 @@ components: properties: info: oneOf: - - $ref: "#/components/schemas/AuthHealthResponse" - - $ref: "#/components/schemas/RealtimeHealthResponse" + - $ref: '#/components/schemas/AuthHealthResponse' + - $ref: '#/components/schemas/RealtimeHealthResponse' name: enum: - auth @@ -3856,7 +3856,7 @@ components: type: object properties: imageTransformation: - $ref: "#/components/schemas/StorageFeatureImageTransformation" + $ref: '#/components/schemas/StorageFeatureImageTransformation' required: - imageTransformation StorageConfigResponse: @@ -3866,7 +3866,7 @@ components: type: integer format: int64 features: - $ref: "#/components/schemas/StorageFeatures" + $ref: '#/components/schemas/StorageFeatures' required: - fileSizeLimit - features @@ -3879,7 +3879,7 @@ components: maximum: 53687091200 format: int64 features: - $ref: "#/components/schemas/StorageFeatures" + $ref: '#/components/schemas/StorageFeatures' PostgresConfigResponse: type: object properties: @@ -4946,7 +4946,7 @@ components: - abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ:0123456789 - abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:0123456789 - abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:0123456789:!@#$%^&*()_+-=[]{};'\\:\"|<>?,./`~ - - "" + - '' security_manual_linking_enabled: type: boolean security_update_password_require_reauthentication: @@ -5375,7 +5375,7 @@ components: keys: type: object additionalProperties: - $ref: "#/components/schemas/AttributeValue" + $ref: '#/components/schemas/AttributeValue' required: - keys CreateProviderBody: @@ -5395,7 +5395,7 @@ components: items: type: string attribute_mapping: - $ref: "#/components/schemas/AttributeMapping" + $ref: '#/components/schemas/AttributeMapping' required: - type SamlDescriptor: @@ -5410,7 +5410,7 @@ components: metadata_xml: type: string attribute_mapping: - $ref: "#/components/schemas/AttributeMapping" + $ref: '#/components/schemas/AttributeMapping' required: - id - entity_id @@ -5433,11 +5433,11 @@ components: id: type: string saml: - $ref: "#/components/schemas/SamlDescriptor" + $ref: '#/components/schemas/SamlDescriptor' domains: type: array items: - $ref: "#/components/schemas/Domain" + $ref: '#/components/schemas/Domain' created_at: type: string updated_at: @@ -5450,11 +5450,11 @@ components: id: type: string saml: - $ref: "#/components/schemas/SamlDescriptor" + $ref: '#/components/schemas/SamlDescriptor' domains: type: array items: - $ref: "#/components/schemas/Domain" + $ref: '#/components/schemas/Domain' created_at: type: string updated_at: @@ -5467,7 +5467,7 @@ components: items: type: array items: - $ref: "#/components/schemas/Provider" + $ref: '#/components/schemas/Provider' required: - items GetProviderResponse: @@ -5476,11 +5476,11 @@ components: id: type: string saml: - $ref: "#/components/schemas/SamlDescriptor" + $ref: '#/components/schemas/SamlDescriptor' domains: type: array items: - $ref: "#/components/schemas/Domain" + $ref: '#/components/schemas/Domain' created_at: type: string updated_at: @@ -5499,18 +5499,18 @@ components: items: type: string attribute_mapping: - $ref: "#/components/schemas/AttributeMapping" + $ref: '#/components/schemas/AttributeMapping' UpdateProviderResponse: type: object properties: id: type: string saml: - $ref: "#/components/schemas/SamlDescriptor" + $ref: '#/components/schemas/SamlDescriptor' domains: type: array items: - $ref: "#/components/schemas/Domain" + $ref: '#/components/schemas/Domain' created_at: type: string updated_at: @@ -5523,11 +5523,11 @@ components: id: type: string saml: - $ref: "#/components/schemas/SamlDescriptor" + $ref: '#/components/schemas/SamlDescriptor' domains: type: array items: - $ref: "#/components/schemas/Domain" + $ref: '#/components/schemas/Domain' created_at: type: string updated_at: @@ -5575,9 +5575,9 @@ components: backups: type: array items: - $ref: "#/components/schemas/V1Backup" + $ref: '#/components/schemas/V1Backup' physical_backup_data: - $ref: "#/components/schemas/V1PhysicalBackup" + $ref: '#/components/schemas/V1PhysicalBackup' required: - region - walg_enabled @@ -5622,7 +5622,7 @@ components: type: object properties: plan: - $ref: "#/components/schemas/BillingPlanId" + $ref: '#/components/schemas/BillingPlanId' opt_in_tags: type: array items: @@ -5632,7 +5632,7 @@ components: allowed_release_channels: type: array items: - $ref: "#/components/schemas/ReleaseChannel" + $ref: '#/components/schemas/ReleaseChannel' id: type: string name: