Skip to content

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

feat: render mgmt api body params (#26319)

Hieuc5a88a9fc4db
diff --git a/apps/docs/components/ApiBodyParam.tsx b/apps/docs/components/ApiBodyParam.tsx
new file mode 100644
index 00000000000..e613f014912
--- /dev/null
+++ b/apps/docs/components/ApiBodyParam.tsx
@@ -0,0 +1,46 @@
+import Options from '~/components/Options'
+import Param from '~/components/Params'
+import ApiSchema from '~/components/ApiSchema'
+import ApiSchemaOptions from '~/components/ApiSchemaOption'
+
+type IParamProps = any
+
+const ApiBodyParam = ({ name, value, isOptional }: IParamProps) => {
+ return (
+ <Param
+ key={name}
+ name={name}
+ type={
+ (value as any).type === 'array'
+ ? `array[${(value as any).items?.type}]`
+ : (value as any).type
+ }
+ description={value.description}
+ isOptional={isOptional}
+ >
+ {(value as any).enum && (
+ <Options>
+ {(value as any).enum.map((value) => {
+ return <Options.Option key={value} name={value} isEnum={true} />
+ })}
+ </Options>
+ )}
+ {(value as any).type === 'object' && (
+ <ApiSchemaOptions>
+ <div
+ className="
+ px-5 py-3 first:border-t border-b border-l border-r
+ border-default
+ last:rounded-bl-lg last:rounded-br-lg
+ flex flex-col gap-3
+ "
+ >
+ <ApiSchema id={name} schema={value}></ApiSchema>
+ </div>
+ </ApiSchemaOptions>
+ )}
+ </Param>
+ )
+}
+
+export default ApiBodyParam
diff --git a/apps/docs/components/ApiSchema.tsx b/apps/docs/components/ApiSchema.tsx
new file mode 100644
index 00000000000..98ee6ab01e2
--- /dev/null
+++ b/apps/docs/components/ApiSchema.tsx
@@ -0,0 +1,35 @@
+import { CodeBlock } from '@ui/components/CodeBlock'
+import { sample } from '@har-sdk/openapi-sampler'
+import { Tabs, TabPanel } from '~/components/Tabs'
+
+type IParamProps = any
+
+const ApiSchema = ({ schema, id }: IParamProps) => {
+ const example = sample(schema, { skipReadOnly: true, quiet: true })
+ return (
+ <Tabs
+ scrollable
+ size="small"
+ type="underlined"
+ defaultActiveId="example"
+ queryGroup="response-status"
+ >
+ <TabPanel key={`${id}-example`} id="example" label="example">
+ <div className="mt-8">
+ <CodeBlock language="bash" className="relative">
+ {JSON.stringify(example, null, 2)}
+ </CodeBlock>
+ </div>
+ </TabPanel>
+ <TabPanel key={`${id}-schema`} id="schema" label="schema">
+ <div className="mt-8">
+ <CodeBlock language="bash" className="relative">
+ {JSON.stringify(schema, null, 2)}
+ </CodeBlock>
+ </div>
+ </TabPanel>
+ </Tabs>
+ )
+}
+
+export default ApiSchema
diff --git a/apps/docs/components/ApiSchemaOption.tsx b/apps/docs/components/ApiSchemaOption.tsx
new file mode 100644
index 00000000000..ede084d994b
--- /dev/null
+++ b/apps/docs/components/ApiSchemaOption.tsx
@@ -0,0 +1,47 @@
+import { type FC, type PropsWithChildren, useState } from 'react'
+import {
+ CollapsibleContent_Shadcn_,
+ CollapsibleTrigger_Shadcn_,
+ Collapsible_Shadcn_,
+ IconXCircle,
+ cn,
+} from 'ui'
+import ApiSchema from '~/components/ApiSchema'
+
+interface IOptions {
+ name?: string
+}
+
+type IOption = any
+
+type OptionsSubComponents = {
+ Option: IOption
+}
+
+const ApiSchemaOptions: FC<PropsWithChildren<IOptions>> & OptionsSubComponents = (props) => {
+ const [open, setOpen] = useState(false)
+ return (
+ <Collapsible_Shadcn_ open={open} onOpenChange={setOpen} className="mt-0">
+ <CollapsibleTrigger_Shadcn_ asChild>
+ <button
+ className={cn(
+ 'px-5',
+ 'border-t border-l border-r border-default',
+ 'text-left text-sm text-foreground-light',
+ 'hover:bg-surface-100 transition-all',
+ 'flex items-center gap-2',
+ open ? 'w-full py-1.5 rounded-tl-lg rounded-tr-lg' : 'py-1 border-b rounded-full'
+ )}
+ >
+ <IconXCircle size={14} className={open ? '' : 'rotate-45'} />
+ {`${!open ? `Open` : `Close`} ${props.name ?? 'object schema'}`}
+ </button>
+ </CollapsibleTrigger_Shadcn_>
+ <CollapsibleContent_Shadcn_>{props.children}</CollapsibleContent_Shadcn_>
+ </Collapsible_Shadcn_>
+ )
+}
+
+ApiSchemaOptions.Option = ApiSchema
+
+export default ApiSchemaOptions
diff --git a/apps/docs/components/BodyContentTypeDropdown.tsx b/apps/docs/components/BodyContentTypeDropdown.tsx
new file mode 100644
index 00000000000..329dcbe79e6
--- /dev/null
+++ b/apps/docs/components/BodyContentTypeDropdown.tsx
@@ -0,0 +1,58 @@
+import {
+ DropdownMenu,
+ DropdownMenuContent,
+ DropdownMenuItem,
+ DropdownMenuTrigger,
+ IconChevronDown,
+} from 'ui'
+import { useState } from 'react'
+
+type IParamProps = any
+
+const BodyContentTypeDropdown = ({ types, onSelect }: IParamProps) => {
+ const [selectedType, setSelectedType] = useState(types[0] || '')
+ const myOnSelectType = (type: string) => {
+ setSelectedType(type)
+ if (onSelect) onSelect(type)
+ }
+
+ if (!types || types.length === 0) {
+ return <></>
+ }
+
+ return (
+ <DropdownMenu>
+ <DropdownMenuTrigger>
+ <div
+ className="
+ group
+ justify-between
+ bg-control
+ border
+ hover:border-control
+ hover:bg-overlay-hover
+ border-control px-2 h-[32px] rounded
+ font-mono
+ flex items-center gap-1
+ text-foreground text-sm group-hover:text-foreground transition
+ "
+ >
+ {selectedType}
+ <IconChevronDown size={14} strokeWidth={2} />
+ </div>
+ </DropdownMenuTrigger>
+ <DropdownMenuContent align="start" side="bottom" className="w-48">
+ {types.map((type) => (
+ <DropdownMenuItem
+ key={type}
+ onClick={() => myOnSelectType(type)}
+ className={`justify-between flex ${selectedType === type ? 'font-bold' : ''}`}
+ >
+ {type}
+ </DropdownMenuItem>
+ ))}
+ </DropdownMenuContent>
+ </DropdownMenu>
+ )
+}
+export default BodyContentTypeDropdown
diff --git a/apps/docs/components/Options.tsx b/apps/docs/components/Options.tsx
index 7612b0bea1a..a2ae23ed05f 100644
--- a/apps/docs/components/Options.tsx
+++ b/apps/docs/components/Options.tsx
@@ -59,18 +59,22 @@ const Option: FC<IOption> = (props) => {
<span className="text-sm text-foreground font-mono font-medium">
{props.name ?? 'no-name'}
</span>
- <span>
- {props.isOptional ? (
- <div className="text-[10px] px-3 tracking-wide font-mono text-foreground-lighter">
- Optional
- </div>
- ) : (
- <div className="text-[10px] border border-amber-700 bg-amber-300 text-amber-900 px-2 tracking-wide font-mono py-0.25 rounded-full">
- REQUIRED
- </div>
- )}
- </span>
- <span className="text-foreground-muted text-xs">{props.type ?? 'no type'}</span>
+ {!props.isEnum && (
+ <>
+ <span>
+ {props.isOptional ? (
+ <div className="text-[10px] px-3 tracking-wide font-mono text-foreground-lighter">
+ Optional
+ </div>
+ ) : (
+ <div className="text-[10px] border border-amber-700 bg-amber-300 text-amber-900 px-2 tracking-wide font-mono py-0.25 rounded-full">
+ REQUIRED
+ </div>
+ )}
+ </span>
+ <span className="text-foreground-muted text-xs">{props.type ?? 'no type'}</span>
+ </>
+ )}
</div>
{props.description && (
diff --git a/apps/docs/components/Params.tsx b/apps/docs/components/Params.tsx
index 20e800a208f..b3ea6721498 100644
--- a/apps/docs/components/Params.tsx
+++ b/apps/docs/components/Params.tsx
@@ -2,11 +2,16 @@ import { ReactMarkdown } from 'react-markdown/lib/react-markdown'
type IParamProps = any
-const Param = ({ name, isOptional, type, description, children }: IParamProps) => {
+/**
+ * isPrimitive: Indicates whether the value is a basic type such as string or number. It does not refer to an object param.
+ * */
+const Param = ({ name, isOptional, type, description, children, isPrimitive }: IParamProps) => {
return (
<div className="border-t border-b py-5 flex flex-col gap-3 debugger">
<div className="flex gap-3 items-center">
- <span className="text-sm text-foreground font-mono font-medium">{name ?? 'no-name'}</span>
+ {!isPrimitive && (
+ <span className="text-sm text-foreground font-mono font-medium">{name ?? 'no-name'}</span>
+ )}
<span>
{isOptional ? (
<div className="text-[10px] px-3 tracking-wide font-mono text-foreground-lighter">
diff --git a/apps/docs/components/reference/ApiOperationSection.tsx b/apps/docs/components/reference/ApiOperationSection.tsx
index 5ef1d400b9b..211a5b71e93 100644
--- a/apps/docs/components/reference/ApiOperationSection.tsx
+++ b/apps/docs/components/reference/ApiOperationSection.tsx
@@ -1,15 +1,29 @@
-import { CodeBlock } from 'ui'
import Param from '~/components/Params'
import RefSubLayout from '~/layouts/ref/RefSubLayout'
-import { Tabs, TabPanel } from '~/components/Tabs'
+import BodyContentTypeDropdown from '~/components/BodyContentTypeDropdown'
+import { useState } from 'react'
+import Options from '~/components/Options'
+import ApiBodyParam from '~/components/ApiBodyParam'
+import ApiSchema from '~/components/ApiSchema'
import { ReactMarkdown } from 'react-markdown/lib/react-markdown'
const ApiOperationSection = (props) => {
const operation = props.spec.operations.find((x: any) => x.operationId === props.funcData.id)
+ const bodyContentTypes = Object.keys(operation.requestBody?.content ?? {})
+ const [selectedContentType, setSelectedContentType] = useState(bodyContentTypes[0] || undefined)
+
+ const hasBodyArray =
+ operation?.requestBody?.content[selectedContentType]?.schema?.type === 'array'
+ const hasBodyArrayObject =
+ operation?.requestBody?.content[selectedContentType]?.schema?.items?.type === 'object'
// gracefully return nothing if function does not exist
if (!operation) return <></>
+ const handleSelectType = (value: string) => {
+ setSelectedContentType(value)
+ }
+
return (
<RefSubLayout.Section
key={operation.operationId}
@@ -48,7 +62,12 @@ const ApiOperationSection = (props) => {
operation.parameters
.filter((parameter: any) => parameter.in === 'path')
.map((parameter: any, index: number) => (
- <Param key={index} {...parameter} isOptional={!parameter.required}></Param>
+ <Param
+ key={index}
+ {...parameter}
+ type={parameter.schema.type}
+ isOptional={!parameter.required}
+ ></Param>
))}
</ul>
</div>
@@ -64,7 +83,31 @@ const ApiOperationSection = (props) => {
operation.parameters
.filter((parameter: any) => parameter.in === 'query')
.map((parameter: any, index: number) => (
- <Param key={index} {...parameter} isOptional={!parameter.required}></Param>
+ <Param
+ key={index}
+ {...parameter}
+ type={
+ parameter.schema.type === 'array'
+ ? `${parameter.schema.items?.type} array`
+ : parameter.schema.type
+ }
+ isOptional={!parameter.required}
+ >
+ {parameter.schema.enum && (
+ <Options>
+ {parameter.schema.enum.map((value) => {
+ return <Options.Option key={value} name={value} isEnum={true} />
+ })}
+ </Options>
+ )}
+ {parameter.schema.items?.enum && (
+ <Options>
+ {parameter.schema.items?.enum.map((value) => {
+ return <Options.Option key={value} name={value} isEnum={true} />
+ })}
+ </Options>
+ )}
+ </Param>
))}
</ul>
</div>
@@ -74,41 +117,105 @@ const ApiOperationSection = (props) => {
{operation.parameters &&
operation.parameters.filter((parameter) => parameter.in === 'header').length > 0 && (
<div className="not-prose mt-12">
- <h5 className="mb-3 text-base text-foreground">Query Parameters</h5>
+ <h5 className="mb-3 text-base text-foreground">Header Parameters</h5>
<ul className="mt-4">
{operation.parameters &&
operation.parameters
.filter((parameter: any) => parameter.in === 'header')
.map((parameter: any, index) => (
- <Param key={index} {...parameter} isOptional={!parameter.required}></Param>
+ <Param
+ key={index}
+ {...parameter}
+ type={parameter.schema.type}
+ isOptional={!parameter.required}
+ ></Param>
))}
</ul>
</div>
)}
+
+ {/* Body */}
+ {operation.requestBody && (
+ <div className="not-prose mt-12">
+ <div className="mb-3 flex flex-row justify-between">
+ <h5 className="text-base text-foreground">Body</h5>
+ <BodyContentTypeDropdown
+ types={Object.keys(operation.requestBody?.content)}
+ onSelect={handleSelectType}
+ />
+ </div>
+ <ul className="mt-4">
+ {hasBodyArray ? (
+ <div className="space-y-4">
+ <span>array of:</span>
+ <div className="ml-10">
+ {/*object array*/}
+ {hasBodyArrayObject &&
+ operation?.requestBody?.content[selectedContentType]?.schema?.items
+ ?.properties &&
+ Object.entries(
+ operation?.requestBody?.content[selectedContentType]?.schema?.items
+ ?.properties
+ ).map(([key, value]) => (
+ <ApiBodyParam
+ key={key}
+ name={key}
+ value={value}
+ isOptional={
+ !operation.requestBody?.content[
+ selectedContentType
+ ]?.schema?.items?.required?.includes(key)
+ }
+ />
+ ))}
+
+ {/*primitive type array*/}
+ {!hasBodyArrayObject &&
+ operation?.requestBody?.content[selectedContentType]?.schema?.items?.type && (
+ <Param
+ type={
+ operation?.requestBody?.content[selectedContentType]?.schema?.items
+ ?.type
+ }
+ isPrimitive={true}
+ ></Param>
+ )}
+ </div>
+ </div>
+ ) : (
+ operation?.requestBody?.content[selectedContentType]?.schema?.properties &&
+ Object.entries(
+ operation?.requestBody?.content[selectedContentType]?.schema?.properties
+ ).map(([key, value]) => (
+ <ApiBodyParam
+ key={key}
+ name={key}
+ value={value}
+ isOptional={
+ !operation.requestBody?.content[
+ selectedContentType
+ ]?.schema?.items?.required?.includes(key)
+ }
+ />
+ ))
+ )}
+ </ul>
+ </div>
+ )}
</RefSubLayout.Details>
{operation.responseList && operation.responseList.length > 0 && (
<RefSubLayout.Examples>
- <h5 className="mb-3 text-base text-foreground">Responses</h5>
- <Tabs
- scrollable
- size="small"
- type="underlined"
- defaultActiveId={operation.responseList[0].responseCode}
- queryGroup="response-status"
- >
- {operation.responseList.map((response: any, i: number) => (
- <TabPanel key={i} id={response.responseCode} label={response.responseCode}>
- <ReactMarkdown className="text-foreground">{response.description}</ReactMarkdown>
- {response?.content && response?.content['application/json'] && (
- <div className="mt-8">
- <CodeBlock language="bash" className="relative">
- {JSON.stringify(response.content['application/json'], null, 2)}
- </CodeBlock>
- </div>
- )}
- </TabPanel>
- ))}
- </Tabs>
+ <h5 className="mb-3 text-base text-foreground">Response</h5>
+ {operation.responseList[0] &&
+ operation.responseList[0]?.content &&
+ operation.responseList[0]?.content['application/json'] ? (
+ <ApiSchema
+ id={operation.operationId}
+ schema={operation.responseList[0].content['application/json'].schema}
+ ></ApiSchema>
+ ) : (
+ <span className="text-foreground text-sm">[No content]</span>
+ )}
</RefSubLayout.Examples>
)}
</RefSubLayout.Section>
diff --git a/apps/docs/package.json b/apps/docs/package.json
index 4f41481fe7f..fae6f6c02fb 100644
--- a/apps/docs/package.json
+++ b/apps/docs/package.json
@@ -19,6 +19,7 @@
},
"dependencies": {
"@code-hike/mdx": "^0.9.0",
+ "@har-sdk/openapi-sampler": "^2.2.0",
"@mdx-js/loader": "^2.1.5",
"@mdx-js/react": "^2.3.0",
"@next/bundle-analyzer": "^14.2.3",
@@ -88,6 +89,7 @@
"@types/react": "^18.2.24",
"@types/unist": "^2.0.6",
"acorn": "^8.11.3",
+ "api-types": "*",
"config": "*",
"dotenv": "^16.0.3",
"ejs": "^3.1.8",
@@ -97,7 +99,6 @@
"openapi-types": "^12.1.3",
"tsconfig": "*",
"tsx": "^4.6.2",
- "typescript": "^5.4.3",
- "api-types": "*"
+ "typescript": "^5.4.3"
}
}
diff --git a/apps/docs/spec/api_v0_openapi.json b/apps/docs/spec/api_v0_openapi.json
index ec94c310048..8b1c818a140 100644
--- a/apps/docs/spec/api_v0_openapi.json
+++ b/apps/docs/spec/api_v0_openapi.json
@@ -1,2625 +1 @@
-{
- "openapi": "3.0.0",
- "paths": {
- "/v1/branches/{branch_id}": {
- "get": {
- "operationId": "getBranchDetails",
- "summary": "Get database branch config",
- "description": "Fetches configurations of the specified database branch",
- "parameters": [
- {
- "name": "branch_id",
- "required": true,
- "in": "path",
- "description": "Branch ID",
- "schema": { "type": "string" }
- }
- ],
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": { "$ref": "#/components/schemas/BranchDetailResponse" }
- }
- }
- },
- "500": { "description": "Failed to update database branch" }
- },
- "tags": ["database branches (beta)"],
- "security": [{ "bearer": [] }]
- },
- "patch": {
- "operationId": "updateBranch",
- "summary": "Update database branch config",
- "description": "Updates the configuration of the specified database branch",
- "parameters": [
- {
- "name": "branch_id",
- "required": true,
- "in": "path",
- "description": "Branch ID",
- "schema": { "type": "string" }
- }
- ],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": { "schema": { "$ref": "#/components/schemas/UpdateBranchBody" } }
- }
- },
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": { "schema": { "$ref": "#/components/schemas/BranchResponse" } }
- }
- },
- "500": { "description": "Failed to update database branch" }
- },
- "tags": ["database branches (beta)"],
- "security": [{ "bearer": [] }]
- },
- "delete": {
- "operationId": "deleteBranch",
- "summary": "Delete a database branch",
- "description": "Deletes the specified database branch",
- "parameters": [
- {
- "name": "branch_id",
- "required": true,
- "in": "path",
- "description": "Branch ID",
- "schema": { "type": "string" }
- }
- ],
- "responses": {
- "200": { "description": "" },
- "500": { "description": "Failed to delete database branch" }
- },
- "tags": ["database branches (beta)"],
- "security": [{ "bearer": [] }]
- }
- },
- "/v1/projects": {
- "get": {
- "operationId": "getProjects",
- "summary": "List all projects",
- "description": "Returns a list of all projects you've previously created.",
- "parameters": [],
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": { "$ref": "#/components/schemas/ProjectResponse" }
- }
- }
- }
- }
- },
- "tags": ["projects"],
- "security": [{ "bearer": [] }]
- },
- "post": {
- "operationId": "createProject",
- "summary": "Create a project",
- "parameters": [],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": { "schema": { "$ref": "#/components/schemas/CreateProjectBody" } }
- }
- },
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": { "schema": { "$ref": "#/components/schemas/ProjectResponse" } }
- }
- },
- "201": {
- "description": "",
- "content": {
- "application/json": { "schema": { "$ref": "#/components/schemas/ProjectResponse" } }
- }
- }
- },
- "tags": ["projects"],
- "security": [{ "bearer": [] }]
- }
- },
- "/v1/organizations": {
- "get": {
- "operationId": "getOrganizations",
- "summary": "List all organizations",
- "description": "Returns a list of organizations that you currently belong to.",
- "parameters": [],
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": { "$ref": "#/components/schemas/OrganizationResponse" }
- }
- }
- }
- },
- "500": { "description": "Unexpected error listing organizations" }
- },
- "tags": ["organizations"],
- "security": [{ "bearer": [] }]
- },
- "post": {
- "operationId": "createOrganization",
- "summary": "Create an organization",
- "parameters": [],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {
- "schema": { "$ref": "#/components/schemas/CreateOrganizationBody" }
- }
- }
- },
- "responses": {
- "201": {
- "description": "",
- "content": {
- "application/json": {
- "schema": { "$ref": "#/components/schemas/OrganizationResponse" }
- }
- }
- },
- "500": { "description": "Unexpected error creating an organization" }
- },
- "tags": ["organizations"],
- "security": [{ "bearer": [] }]
- }
- },
- "/v1/oauth/authorize": {
- "get": {
- "operationId": "authorize",
- "summary": "Authorize user through oauth",
- "parameters": [
- { "name": "client_id", "required": true, "in": "query", "schema": { "type": "string" } },
- {
- "name": "response_type",
- "required": true,
- "in": "query",
- "schema": { "enum": ["code", "token", "id_token token"], "type": "string" }
- },
- {
- "name": "redirect_uri",
- "required": true,
- "in": "query",
- "schema": { "type": "string" }
- },
- { "name": "scope", "required": true, "in": "query", "schema": { "type": "string" } },
- { "name": "state", "required": false, "in": "query", "schema": { "type": "string" } },
- {
- "name": "response_mode",
- "required": false,
- "in": "query",
- "schema": { "type": "string" }
- },
- {
- "name": "code_challenge",
- "required": false,
- "in": "query",
- "schema": { "type": "string" }
- },
- {
- "name": "code_challenge_method",
- "required": false,
- "in": "query",
- "schema": { "enum": ["plain", "sha256", "S256"], "type": "string" }
- }
- ],
- "responses": { "303": { "description": "" } },
- "tags": ["oauth (beta)"]
- }
- },
- "/v1/oauth/token": {
- "post": {
- "operationId": "token",
- "summary": "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" }
- }
- }
- },
- "responses": {
- "201": {
- "description": "",
- "content": {
- "application/json": {
- "schema": { "$ref": "#/components/schemas/OAuthTokenResponse" }
- }
- }
- }
- },
- "tags": ["oauth (beta)"]
- }
- },
- "/v1/projects/{ref}/api-keys": {
- "get": {
- "operationId": "getProjectApiKeys",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- }
- ],
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": { "$ref": "#/components/schemas/ApiKeyResponse" }
- }
- }
- }
- },
- "403": { "description": "" }
- },
- "tags": ["projects"],
- "security": [{ "bearer": [] }]
- }
- },
- "/v1/projects/{ref}/branches": {
- "get": {
- "operationId": "getBranches",
- "summary": "List all database branches",
- "description": "Returns all database branches of the specified project.",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- }
- ],
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": { "$ref": "#/components/schemas/BranchResponse" }
- }
- }
- }
- },
- "500": { "description": "Failed to retrieve database branches" }
- },
- "tags": ["database branches (beta)"],
- "security": [{ "bearer": [] }]
- },
- "post": {
- "operationId": "createBranch",
- "summary": "Create a database branch",
- "description": "Creates a database branch from the specified project.",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- }
- ],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": { "schema": { "$ref": "#/components/schemas/CreateBranchBody" } }
- }
- },
- "responses": {
- "201": {
- "description": "",
- "content": {
- "application/json": { "schema": { "$ref": "#/components/schemas/BranchResponse" } }
- }
- },
- "500": { "description": "Failed to create database branch" }
- },
- "tags": ["database branches (beta)"],
- "security": [{ "bearer": [] }]
- },
- "delete": {
- "operationId": "disableBranch",
- "summary": "Disables preview branching",
- "description": "Disables preview branching for the specified project",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- }
- ],
- "responses": {
- "200": { "description": "" },
- "500": { "description": "Failed to disable preview branching" }
- },
- "tags": ["database branches (beta)"],
- "security": [{ "bearer": [] }]
- }
- },
- "/v1/projects/{ref}/custom-hostname": {
- "get": {
- "operationId": "getCustomHostnameConfig",
- "summary": "Gets project's custom hostname config",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- }
- ],
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": { "$ref": "#/components/schemas/UpdateCustomHostnameResponse" }
- }
- }
- },
- "403": { "description": "" },
- "500": { "description": "Failed to retrieve project's custom hostname config" }
- },
- "tags": ["custom hostname (beta)"],
- "security": [{ "bearer": [] }]
- },
- "delete": {
- "operationId": "removeCustomHostnameConfig",
- "summary": "Deletes a project's custom hostname configuration",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- }
- ],
- "responses": {
- "200": { "description": "" },
- "403": { "description": "" },
- "500": { "description": "Failed to delete project custom hostname configuration" }
- },
- "tags": ["custom hostname (beta)"],
- "security": [{ "bearer": [] }]
- }
- },
- "/v1/projects/{ref}/custom-hostname/initialize": {
- "post": {
- "operationId": "createCustomHostnameConfig",
- "summary": "Updates project's custom hostname configuration",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- }
- ],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {
- "schema": { "$ref": "#/components/schemas/UpdateCustomHostnameBody" }
- }
- }
- },
- "responses": {
- "201": {
- "description": "",
- "content": {
- "application/json": {
- "schema": { "$ref": "#/components/schemas/UpdateCustomHostnameResponse" }
- }
- }
- },
- "403": { "description": "" },
- "500": { "description": "Failed to update project custom hostname configuration" }
- },
- "tags": ["custom hostname (beta)"],
- "security": [{ "bearer": [] }]
- }
- },
- "/v1/projects/{ref}/custom-hostname/reverify": {
- "post": {
- "operationId": "reverify",
- "summary": "Attempts to verify the DNS configuration for project's custom hostname configuration",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- }
- ],
- "responses": {
- "201": {
- "description": "",
- "content": {
- "application/json": {
- "schema": { "$ref": "#/components/schemas/UpdateCustomHostnameResponse" }
- }
- }
- },
- "403": { "description": "" },
- "500": { "description": "Failed to verify project custom hostname configuration" }
- },
- "tags": ["custom hostname (beta)"],
- "security": [{ "bearer": [] }]
- }
- },
- "/v1/projects/{ref}/custom-hostname/activate": {
- "post": {
- "operationId": "activate",
- "summary": "Activates a custom hostname for a project.",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- }
- ],
- "responses": {
- "201": {
- "description": "",
- "content": {
- "application/json": {
- "schema": { "$ref": "#/components/schemas/UpdateCustomHostnameResponse" }
- }
- }
- },
- "403": { "description": "" },
- "500": { "description": "Failed to activate project custom hostname configuration" }
- },
- "tags": ["custom hostname (beta)"],
- "security": [{ "bearer": [] }]
- }
- },
- "/v1/projects/{ref}/network-bans/retrieve": {
- "post": {
- "operationId": "getNetworkBans",
- "summary": "Gets project's network bans",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- }
- ],
- "responses": {
- "201": {
- "description": "",
- "content": {
- "application/json": {
- "schema": { "$ref": "#/components/schemas/NetworkBanResponse" }
- }
- }
- },
- "403": { "description": "" },
- "500": { "description": "Failed to retrieve project's network bans" }
- },
- "tags": ["network bans (beta)"],
- "security": [{ "bearer": [] }]
- }
- },
- "/v1/projects/{ref}/network-bans": {
- "delete": {
- "operationId": "removeNetworkBan",
- "summary": "Remove network bans.",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- }
- ],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {
- "schema": { "$ref": "#/components/schemas/RemoveNetworkBanRequest" }
- }
- }
- },
- "responses": {
- "200": { "description": "" },
- "403": { "description": "" },
- "500": { "description": "Failed to remove network bans." }
- },
- "tags": ["network bans (beta)"],
- "security": [{ "bearer": [] }]
- }
- },
- "/v1/projects/{ref}/network-restrictions": {
- "get": {
- "operationId": "getNetworkRestrictions",
- "summary": "Gets project's network restrictions",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- }
- ],
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": { "$ref": "#/components/schemas/NetworkRestrictionsResponse" }
- }
- }
- },
- "403": { "description": "" },
- "500": { "description": "Failed to retrieve project's network restrictions" }
- },
- "tags": ["network restrictions (beta)"],
- "security": [{ "bearer": [] }]
- }
- },
- "/v1/projects/{ref}/network-restrictions/apply": {
- "post": {
- "operationId": "applyNetworkRestrictions",
- "summary": "Updates project's network restrictions",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- }
- ],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {
- "schema": { "$ref": "#/components/schemas/NetworkRestrictionsRequest" }
- }
- }
- },
- "responses": {
- "201": {
- "description": "",
- "content": {
- "application/json": {
- "schema": { "$ref": "#/components/schemas/NetworkRestrictionsResponse" }
- }
- }
- },
- "403": { "description": "" },
- "500": { "description": "Failed to update project network restrictions" }
- },
- "tags": ["network restrictions (beta)"],
- "security": [{ "bearer": [] }]
- }
- },
- "/v1/projects/{ref}/pgsodium": {
- "get": {
- "operationId": "getPgsodiumConfig",
- "summary": "Gets project's pgsodium config",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- }
- ],
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": { "$ref": "#/components/schemas/PgsodiumConfigResponse" }
- }
- }
- },
- "403": { "description": "" },
- "500": { "description": "Failed to retrieve project's pgsodium config" }
- },
- "tags": ["pgsodium (beta)"],
- "security": [{ "bearer": [] }]
- },
- "put": {
- "operationId": "updatePgsodiumConfig",
- "summary": "Updates project's pgsodium config. Updating the root_key can cause all data encrypted with the older key to become inaccessible.",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- }
- ],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {
- "schema": { "$ref": "#/components/schemas/UpdatePgsodiumConfigBody" }
- }
- }
- },
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": { "$ref": "#/components/schemas/PgsodiumConfigResponse" }
- }
- }
- },
- "403": { "description": "" },
- "500": { "description": "Failed to update project's pgsodium config" }
- },
- "tags": ["pgsodium (beta)"],
- "security": [{ "bearer": [] }]
- }
- },
- "/v1/projects/{ref}/postgrest": {
- "get": {
- "operationId": "getPostgRESTConfig",
- "summary": "Gets project's postgrest config",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- }
- ],
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": { "$ref": "#/components/schemas/PostgrestConfigWithJWTSecretResponse" }
- }
- }
- },
- "403": { "description": "" },
- "500": { "description": "Failed to retrieve project's postgrest config" }
- },
- "tags": ["services"],
- "security": [{ "bearer": [] }]
- },
- "patch": {
- "operationId": "updatePostgRESTConfig",
- "summary": "Updates project's postgrest config",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- }
- ],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {
- "schema": { "$ref": "#/components/schemas/UpdatePostgrestConfigBody" }
- }
- }
- },
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": { "$ref": "#/components/schemas/PostgrestConfigResponse" }
- }
- }
- },
- "403": { "description": "" },
- "500": { "description": "Failed to update project's postgrest config" }
- },
- "tags": ["services"],
- "security": [{ "bearer": [] }]
- }
- },
- "/v1/projects/{ref}/secrets": {
- "get": {
- "operationId": "getSecrets",
- "summary": "List all secrets",
- "description": "Returns all secrets you've previously added to the specified project.",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- }
- ],
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": { "$ref": "#/components/schemas/SecretResponse" }
- }
- }
- }
- },
- "403": { "description": "" },
- "500": { "description": "Failed to retrieve project's secrets" }
- },
- "tags": ["secrets"],
- "security": [{ "apiKeyHeader": [], "apiKeyParam": [] }, { "bearer": [] }]
- },
- "post": {
- "operationId": "createSecrets",
- "summary": "Bulk create secrets",
- "description": "Creates multiple secrets and adds them to the specified project.",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- }
- ],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": { "$ref": "#/components/schemas/CreateSecretBody" }
- }
- }
- }
- },
- "responses": {
- "201": { "description": "" },
- "403": { "description": "" },
- "500": { "description": "Failed to create project's secrets" }
- },
- "tags": ["secrets"],
- "security": [{ "apiKeyHeader": [], "apiKeyParam": [] }, { "bearer": [] }]
- },
- "delete": {
- "operationId": "deleteSecrets",
- "summary": "Bulk delete secrets",
- "description": "Deletes all secrets with the given names from the specified project",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- }
- ],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": { "schema": { "type": "array", "items": { "type": "string" } } }
- }
- },
- "responses": {
- "200": {
- "description": "",
- "content": { "application/json": { "schema": { "type": "object" } } }
- },
- "403": { "description": "" },
- "500": { "description": "Failed to delete secrets with given names" }
- },
- "tags": ["secrets"],
- "security": [{ "apiKeyHeader": [], "apiKeyParam": [] }, { "bearer": [] }]
- }
- },
- "/v1/projects/{ref}/ssl-enforcement": {
- "get": {
- "operationId": "getSslEnforcementConfig",
- "summary": "Get project's SSL enforcement configuration.",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- }
- ],
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": { "$ref": "#/components/schemas/SslEnforcementResponse" }
- }
- }
- },
- "403": { "description": "" },
- "500": { "description": "Failed to retrieve project's SSL enforcement config" }
- },
- "tags": ["ssl enforcement (beta)"],
- "security": [{ "bearer": [] }]
- },
- "put": {
- "operationId": "updateSslEnforcementConfig",
- "summary": "Update project's SSL enforcement configuration.",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- }
- ],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {
- "schema": { "$ref": "#/components/schemas/SslEnforcementRequest" }
- }
- }
- },
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": { "$ref": "#/components/schemas/SslEnforcementResponse" }
- }
- }
- },
- "403": { "description": "" },
- "500": { "description": "Failed to update project's SSL enforcement configuration." }
- },
- "tags": ["ssl enforcement (beta)"],
- "security": [{ "bearer": [] }]
- }
- },
- "/v1/projects/{ref}/types/typescript": {
- "get": {
- "operationId": "getTypescriptTypes",
- "summary": "Generate TypeScript types",
- "description": "Returns the TypeScript types of your schema for use with supabase-js.",
- "parameters": [
- {
- "name": "included_schemas",
- "required": false,
- "in": "query",
- "schema": { "default": "public", "type": "string" }
- },
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- }
- ],
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": { "$ref": "#/components/schemas/TypescriptResponse" }
- }
- }
- },
- "403": { "description": "" },
- "500": { "description": "Failed to generate TypeScript types" }
- },
- "tags": ["projects"],
- "security": [{ "apiKeyHeader": [], "apiKeyParam": [] }, { "bearer": [] }]
- }
- },
- "/v1/projects/{ref}/vanity-subdomain": {
- "get": {
- "operationId": "getVanitySubdomainConfig",
- "summary": "Gets current vanity subdomain config",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- }
- ],
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": { "$ref": "#/components/schemas/VanitySubdomainConfigResponse" }
- }
- }
- },
- "403": { "description": "" },
- "500": { "description": "Failed to get project vanity subdomain configuration" }
- },
- "tags": ["vanity subdomain (beta)"],
- "security": [{ "bearer": [] }]
- },
- "delete": {
- "operationId": "removeVanitySubdomainConfig",
- "summary": "Deletes a project's vanity subdomain configuration",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- }
- ],
- "responses": {
- "200": { "description": "" },
- "403": { "description": "" },
- "500": { "description": "Failed to delete project vanity subdomain configuration" }
- },
- "tags": ["vanity subdomain (beta)"],
- "security": [{ "bearer": [] }]
- }
- },
- "/v1/projects/{ref}/vanity-subdomain/check-availability": {
- "post": {
- "operationId": "checkVanitySubdomainAvailability",
- "summary": "Checks vanity subdomain availability",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- }
- ],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": { "schema": { "$ref": "#/components/schemas/VanitySubdomainBody" } }
- }
- },
- "responses": {
- "201": {
- "description": "",
- "content": {
- "application/json": {
- "schema": { "$ref": "#/components/schemas/SubdomainAvailabilityResponse" }
- }
- }
- },
- "403": { "description": "" },
- "500": { "description": "Failed to check project vanity subdomain configuration" }
- },
- "tags": ["vanity subdomain (beta)"],
- "security": [{ "bearer": [] }]
- }
- },
- "/v1/projects/{ref}/vanity-subdomain/activate": {
- "post": {
- "operationId": "activateVanitySubdomainPlease",
- "summary": "Activates a vanity subdomain for a project.",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- }
- ],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": { "schema": { "$ref": "#/components/schemas/VanitySubdomainBody" } }
- }
- },
- "responses": {
- "201": {
- "description": "",
- "content": {
- "application/json": {
- "schema": { "$ref": "#/components/schemas/ActivateVanitySubdomainResponse" }
- }
- }
- },
- "403": { "description": "" },
- "500": { "description": "Failed to activate project vanity subdomain configuration" }
- },
- "tags": ["vanity subdomain (beta)"],
- "security": [{ "bearer": [] }]
- }
- },
- "/v1/projects/{ref}/upgrade": {
- "post": {
- "operationId": "upgradeProject",
- "summary": "Upgrades the project's Postgres version",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- }
- ],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": { "schema": { "$ref": "#/components/schemas/UpgradeDatabaseBody" } }
- }
- },
- "responses": {
- "201": { "description": "" },
- "403": { "description": "" },
- "500": { "description": "Failed to initiate project upgrade" }
- },
- "tags": ["database version upgrade (beta)"],
- "security": [{ "bearer": [] }]
- }
- },
- "/v1/projects/{ref}/upgrade/eligibility": {
- "get": {
- "operationId": "upgradeEligibilityInformation",
- "summary": "Returns the project's eligibility for upgrades",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- }
- ],
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": { "$ref": "#/components/schemas/ProjectUpgradeEligibilityResponse" }
- }
- }
- },
- "403": { "description": "" },
- "500": { "description": "Failed to determine project upgrade eligibility" }
- },
- "tags": ["database version upgrade (beta)"],
- "security": [{ "bearer": [] }]
- }
- },
- "/v1/projects/{ref}/upgrade/status": {
- "get": {
- "operationId": "getUpgradeStatus",
- "summary": "Gets the latest status of the project's upgrade",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- }
- ],
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": { "$ref": "#/components/schemas/DatabaseUpgradeStatusResponse" }
- }
- }
- },
- "403": { "description": "" },
- "500": { "description": "Failed to retrieve project upgrade status" }
- },
- "tags": ["database version upgrade (beta)"],
- "security": [{ "bearer": [] }]
- }
- },
- "/v1/projects/{ref}/readonly": {
- "get": {
- "operationId": "getReadOnlyModeStatus",
- "summary": "Returns project's readonly mode status",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- }
- ],
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": { "$ref": "#/components/schemas/ReadOnlyStatusResponse" }
- }
- }
- },
- "500": { "description": "Failed to get project readonly mode status" }
- },
- "tags": ["database readonly mode"],
- "security": [{ "bearer": [] }]
- }
- },
- "/v1/projects/{ref}/readonly/temporary-disable": {
- "post": {
- "operationId": "temporarilyDisableReadonlyMode",
- "summary": "Disables project's readonly mode for the next 15 minutes",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- }
- ],
- "responses": {
- "201": { "description": "" },
- "500": { "description": "Failed to disable project's readonly mode" }
- },
- "tags": ["database readonly mode"],
- "security": [{ "bearer": [] }]
- }
- },
- "/v1/projects/{ref}/config/database/postgres": {
- "get": {
- "operationId": "getConfig",
- "summary": "Gets project's Postgres config",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- }
- ],
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": { "$ref": "#/components/schemas/PostgresConfigResponse" }
- }
- }
- },
- "500": { "description": "Failed to retrieve project's Postgres config" }
- },
- "tags": ["projects config"],
- "security": [{ "bearer": [] }, { "bearer": [] }]
- },
- "put": {
- "operationId": "updateConfig",
- "summary": "Updates project's Postgres config",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- }
- ],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {
- "schema": { "$ref": "#/components/schemas/UpdatePostgresConfigBody" }
- }
- }
- },
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": { "$ref": "#/components/schemas/PostgresConfigResponse" }
- }
- }
- },
- "500": { "description": "Failed to update project's Postgres config" }
- },
- "tags": ["projects config"],
- "security": [{ "bearer": [] }, { "bearer": [] }]
- }
- },
- "/v1/projects/{ref}/config/database/pgbouncer": {
- "get": {
- "operationId": "getPgbouncerConfig",
- "summary": "Gets project's pgbouncer config",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- }
- ],
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": { "$ref": "#/components/schemas/ProjectPgBouncerConfig" }
- }
- }
- },
- "500": { "description": "Failed to retrieve project's pgbouncer config" }
- },
- "tags": ["projects config"],
- "security": [{ "bearer": [] }]
- },
- "patch": {
- "operationId": "updatePgbouncerConfig",
- "summary": "Updates project's pgbouncer config",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- }
- ],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {
- "schema": { "$ref": "#/components/schemas/UpdatePgbouncerConfigBody" }
- }
- }
- },
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": { "$ref": "#/components/schemas/UpdatePoolingConfigResponse" }
- }
- }
- },
- "403": { "description": "" },
- "500": { "description": "Failed to update project's pgbouncer config" }
- },
- "tags": ["projects config"],
- "security": [{ "bearer": [] }]
- }
- },
- "/v1/projects/{ref}/config/auth": {
- "get": {
- "operationId": "getV1AuthConfig",
- "summary": "Gets project's auth config",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- }
- ],
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": { "$ref": "#/components/schemas/AuthConfigResponse" }
- }
- }
- },
- "403": { "description": "" },
- "500": { "description": "Failed to retrieve project's auth config" }
- },
- "tags": ["projects config"],
- "security": [{ "bearer": [] }]
- },
- "patch": {
- "operationId": "updateV1AuthConfig",
- "summary": "Updates a project's auth config",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- }
- ],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {
- "schema": { "$ref": "#/components/schemas/UpdateAuthConfigBody" }
- }
- }
- },
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": { "$ref": "#/components/schemas/AuthConfigResponse" }
- }
- }
- },
- "403": { "description": "" },
- "500": { "description": "Failed to update project's auth config" }
- },
- "tags": ["projects config"],
- "security": [{ "bearer": [] }]
- }
- },
- "/v1/projects/{ref}/database/query": {
- "post": {
- "operationId": "v1RunQuery",
- "summary": "Run sql query",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- }
- ],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": { "schema": { "$ref": "#/components/schemas/RunQueryBody" } }
- }
- },
- "responses": {
- "201": {
- "description": "",
- "content": { "application/json": { "schema": { "type": "object" } } }
- },
- "403": { "description": "" },
- "500": { "description": "Failed to run sql query" }
- },
- "tags": ["projects (beta)"],
- "security": [{ "bearer": [] }]
- }
- },
- "/v1/projects/{ref}/database/webhooks/enable": {
- "post": {
- "operationId": "v1EnableDatabaseWebhooks",
- "summary": "Enables Database Webhooks on the project",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- }
- ],
- "responses": {
- "201": { "description": "" },
- "403": { "description": "" },
- "500": { "description": "Failed to enable Database Webhooks on the project" }
- },
- "tags": ["projects (beta)"],
- "security": [{ "bearer": [] }]
- }
- },
- "/v1/projects/{ref}/functions": {
- "post": {
- "operationId": "createFunction",
- "summary": "Create a function",
- "description": "Creates a function and adds it to the specified project.",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- },
- {
- "name": "slug",
- "required": false,
- "in": "query",
- "schema": { "pattern": "/^[A-Za-z0-9_-]+$/", "type": "string" }
- },
- { "name": "name", "required": false, "in": "query", "schema": { "type": "string" } },
- {
- "name": "verify_jwt",
- "required": false,
- "in": "query",
- "schema": { "type": "boolean" }
- },
- {
- "name": "import_map",
- "required": false,
- "in": "query",
- "schema": { "type": "boolean" }
- },
- {
- "name": "entrypoint_path",
- "required": false,
- "in": "query",
- "schema": { "type": "string" }
- },
- {
- "name": "import_map_path",
- "required": false,
- "in": "query",
- "schema": { "type": "string" }
- }
- ],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": { "schema": { "$ref": "#/components/schemas/CreateFunctionBody" } },
- "application/vnd.denoland.eszip": {
- "schema": { "$ref": "#/components/schemas/CreateFunctionBody" }
- }
- }
- },
- "responses": {
- "201": {
- "description": "",
- "content": {
- "application/json": { "schema": { "$ref": "#/components/schemas/FunctionResponse" } }
- }
- },
- "403": { "description": "" },
- "500": { "description": "Failed to create project's function" }
- },
- "tags": ["functions"],
- "security": [{ "apiKeyHeader": [], "apiKeyParam": [] }, { "bearer": [] }]
- },
- "get": {
- "operationId": "getFunctions",
- "summary": "List all functions",
- "description": "Returns all functions you've previously added to the specified project.",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- }
- ],
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": { "$ref": "#/components/schemas/FunctionResponse" }
- }
- }
- }
- },
- "403": { "description": "" },
- "500": { "description": "Failed to retrieve project's functions" }
- },
- "tags": ["functions"],
- "security": [{ "apiKeyHeader": [], "apiKeyParam": [] }, { "bearer": [] }]
- }
- },
- "/v1/projects/{ref}/functions/{function_slug}": {
- "get": {
- "operationId": "getFunction",
- "summary": "Retrieve a function",
- "description": "Retrieves a function with the specified slug and project.",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- },
- {
- "name": "function_slug",
- "required": true,
- "in": "path",
- "description": "Function slug",
- "schema": { "pattern": "/^[A-Za-z0-9_-]+$/", "type": "string" }
- }
- ],
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": { "$ref": "#/components/schemas/FunctionSlugResponse" }
- }
- }
- },
- "403": { "description": "" },
- "500": { "description": "Failed to retrieve function with given slug" }
- },
- "tags": ["functions"],
- "security": [{ "apiKeyHeader": [], "apiKeyParam": [] }, { "bearer": [] }]
- },
- "patch": {
- "operationId": "updateFunction",
- "summary": "Update a function",
- "description": "Updates a function with the specified slug and project.",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- },
- {
- "name": "function_slug",
- "required": true,
- "in": "path",
- "description": "Function slug",
- "schema": { "pattern": "/^[A-Za-z0-9_-]+$/", "type": "string" }
- },
- {
- "name": "slug",
- "required": false,
- "in": "query",
- "schema": { "pattern": "/^[A-Za-z0-9_-]+$/", "type": "string" }
- },
- { "name": "name", "required": false, "in": "query", "schema": { "type": "string" } },
- {
- "name": "verify_jwt",
- "required": false,
- "in": "query",
- "schema": { "type": "boolean" }
- },
- {
- "name": "import_map",
- "required": false,
- "in": "query",
- "schema": { "type": "boolean" }
- },
- {
- "name": "entrypoint_path",
- "required": false,
- "in": "query",
- "schema": { "type": "string" }
- },
- {
- "name": "import_map_path",
- "required": false,
- "in": "query",
- "schema": { "type": "string" }
- }
- ],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": { "schema": { "$ref": "#/components/schemas/UpdateFunctionBody" } },
- "application/vnd.denoland.eszip": {
- "schema": { "$ref": "#/components/schemas/UpdateFunctionBody" }
- }
- }
- },
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": { "schema": { "$ref": "#/components/schemas/FunctionResponse" } }
- }
- },
- "403": { "description": "" },
- "500": { "description": "Failed to update function with given slug" }
- },
- "tags": ["functions"],
- "security": [{ "apiKeyHeader": [], "apiKeyParam": [] }, { "bearer": [] }]
- },
- "delete": {
- "operationId": "deleteFunction",
- "summary": "Delete a function",
- "description": "Deletes a function with the specified slug from the specified project.",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- },
- {
- "name": "function_slug",
- "required": true,
- "in": "path",
- "description": "Function slug",
- "schema": { "pattern": "/^[A-Za-z0-9_-]+$/", "type": "string" }
- }
- ],
- "responses": {
- "200": { "description": "" },
- "403": { "description": "" },
- "500": { "description": "Failed to delete function with given slug" }
- },
- "tags": ["functions"],
- "security": [{ "apiKeyHeader": [], "apiKeyParam": [] }, { "bearer": [] }]
- }
- },
- "/v1/projects/{ref}/functions/{function_slug}/body": {
- "get": {
- "operationId": "getFunctionBody",
- "summary": "Retrieve a function body",
- "description": "Retrieves a function body for the specified slug and project.",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- },
- {
- "name": "function_slug",
- "required": true,
- "in": "path",
- "description": "Function slug",
- "schema": { "pattern": "/^[A-Za-z0-9_-]+$/", "type": "string" }
- }
- ],
- "responses": {
- "200": { "description": "" },
- "403": { "description": "" },
- "500": { "description": "Failed to retrieve function body with given slug" }
- },
- "tags": ["functions"],
- "security": [{ "apiKeyHeader": [], "apiKeyParam": [] }, { "bearer": [] }]
- }
- },
- "/v1/projects/{ref}/config/auth/sso/providers": {
- "post": {
- "operationId": "createProviderForProject",
- "summary": "Creates a new SSO provider",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- }
- ],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": { "schema": { "$ref": "#/components/schemas/CreateProviderBody" } }
- }
- },
- "responses": {
- "201": {
- "description": "",
- "content": {
- "application/json": {
- "schema": { "$ref": "#/components/schemas/CreateProviderResponse" }
- }
- }
- },
- "403": { "description": "" },
- "404": { "description": "SAML 2.0 support is not enabled for this project" }
- },
- "tags": ["sso"],
- "security": [{ "bearer": [] }]
- },
- "get": {
- "operationId": "listAllProviders",
- "summary": "Lists all SSO providers",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- }
- ],
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": { "$ref": "#/components/schemas/ListProvidersResponse" }
- }
- }
- },
- "403": { "description": "" },
- "404": { "description": "SAML 2.0 support is not enabled for this project" }
- },
- "tags": ["sso"],
- "security": [{ "bearer": [] }]
- }
- },
- "/v1/projects/{ref}/config/auth/sso/providers/{provider_id}": {
- "get": {
- "operationId": "getProviderById",
- "summary": "Gets a SSO provider by its UUID",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- },
- { "name": "provider_id", "required": true, "in": "path", "schema": { "type": "string" } }
- ],
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": { "$ref": "#/components/schemas/GetProviderResponse" }
- }
- }
- },
- "403": { "description": "" },
- "404": {
- "description": "Either SAML 2.0 was not enabled for this project, or the provider does not exist"
- }
- },
- "tags": ["sso"],
- "security": [{ "bearer": [] }]
- },
- "put": {
- "operationId": "updateProviderById",
- "summary": "Updates a SSO provider by its UUID",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- },
- { "name": "provider_id", "required": true, "in": "path", "schema": { "type": "string" } }
- ],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": { "schema": { "$ref": "#/components/schemas/UpdateProviderBody" } }
- }
- },
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": { "$ref": "#/components/schemas/UpdateProviderResponse" }
- }
- }
- },
- "403": { "description": "" },
- "404": {
- "description": "Either SAML 2.0 was not enabled for this project, or the provider does not exist"
- }
- },
- "tags": ["sso"],
- "security": [{ "bearer": [] }]
- },
- "delete": {
- "operationId": "removeProviderById",
- "summary": "Removes a SSO provider by its UUID",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }
- },
- { "name": "provider_id", "required": true, "in": "path", "schema": { "type": "string" } }
- ],
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": { "$ref": "#/components/schemas/DeleteProviderResponse" }
- }
- }
- },
- "403": { "description": "" },
- "404": {
- "description": "Either SAML 2.0 was not enabled for this project, or the provider does not exist"
- }
- },
- "tags": ["sso"],
- "security": [{ "bearer": [] }]
- }
- }
- },
- "info": { "title": "Supabase API (v1)", "description": "", "version": "1.0.0", "contact": {} },
- "tags": [
- { "name": "organizations", "description": "Organization endpoints" },
- { "name": "projects", "description": "Project endpoints" }
- ],
- "servers": [],
- "components": {
- "securitySchemes": { "bearer": { "scheme": "bearer", "bearerFormat": "JWT", "type": "http" } },
- "schemas": {
- "BranchDetailResponse": {
- "type": "object",
- "properties": {
- "db_port": { "type": "integer" },
- "ref": { "type": "string" },
- "postgres_version": { "type": "string" },
- "status": {
- "enum": [
- "ACTIVE_HEALTHY",
- "ACTIVE_UNHEALTHY",
- "COMING_UP",
- "GOING_DOWN",
- "INACTIVE",
- "INIT_FAILED",
- "REMOVED",
- "RESTORING",
- "UNKNOWN",
- "UPGRADING",
- "PAUSING"
- ],
- "type": "string"
- },
- "db_host": { "type": "string" },
- "db_user": { "type": "string" },
- "db_pass": { "type": "string" },
- "jwt_secret": { "type": "string" }
- },
- "required": ["db_port", "ref", "postgres_version", "status", "db_host"]
- },
- "UpdateBranchBody": {
- "type": "object",
- "properties": { "branch_name": { "type": "string" }, "git_branch": { "type": "string" } }
- },
- "BranchResponse": {
- "type": "object",
- "properties": {
- "id": { "type": "string" },
- "name": { "type": "string" },
- "project_ref": { "type": "string" },
- "parent_project_ref": { "type": "string" },
- "is_default": { "type": "boolean" },
- "git_branch": { "type": "string" },
- "created_at": { "type": "string" },
- "updated_at": { "type": "string" }
- },
- "required": [
- "id",
- "name",
- "project_ref",
- "parent_project_ref",
- "is_default",
- "created_at",
- "updated_at"
- ]
- },
- "DatabaseResponse": {
- "type": "object",
- "properties": {
- "host": { "type": "string", "description": "Database host" },
- "version": { "type": "string", "description": "Database version" }
- },
- "required": ["host", "version"]
- },
- "ProjectResponse": {
- "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"
- },
- "database": { "$ref": "#/components/schemas/DatabaseResponse" }
- },
- "required": ["id", "organization_id", "name", "region", "created_at"]
- },
- "CreateProjectBody": {
- "type": "object",
- "properties": {
- "db_pass": { "type": "string", "description": "Database password" },
- "name": {
- "type": "string",
- "description": "Name of your project, should not contain dots"
- },
- "organization_id": { "type": "string", "description": "Slug of your organization" },
- "plan": {
- "type": "string",
- "enum": ["free", "pro"],
- "description": "Subscription plan",
- "example": "free"
- },
- "region": {
- "type": "string",
- "enum": [
- "us-east-1",
- "us-west-1",
- "us-west-2",
- "ap-southeast-1",
- "ap-northeast-1",
- "ap-northeast-2",
- "ap-southeast-2",
- "eu-west-1",
- "eu-west-2",
- "eu-west-3",
- "eu-central-1",
- "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" }
- },
- "required": ["db_pass", "name", "organization_id", "plan", "region"]
- },
- "OrganizationResponse": {
- "type": "object",
- "properties": { "id": { "type": "string" }, "name": { "type": "string" } },
- "required": ["id", "name"]
- },
- "CreateOrganizationBody": {
- "type": "object",
- "properties": { "name": { "type": "string" } },
- "required": ["name"]
- },
- "OAuthTokenBody": {
- "type": "object",
- "properties": {
- "grant_type": { "enum": ["authorization_code", "refresh_token"], "type": "string" },
- "client_id": { "type": "string" },
- "client_secret": { "type": "string" },
- "code": { "type": "string" },
- "code_verifier": { "type": "string" },
- "redirect_uri": { "type": "string" },
- "refresh_token": { "type": "string" }
- },
- "required": ["grant_type", "client_id", "client_secret"]
- },
- "OAuthTokenResponse": {
- "type": "object",
- "properties": {
- "token_type": { "type": "string", "enum": ["Bearer"] },
- "access_token": { "type": "string" },
- "refresh_token": { "type": "string" },
- "expires_in": { "type": "number" }
- },
- "required": ["token_type", "access_token", "refresh_token", "expires_in"]
- },
- "ApiKeyResponse": {
- "type": "object",
- "properties": { "name": { "type": "string" }, "api_key": { "type": "string" } },
- "required": ["name", "api_key"]
- },
- "CreateBranchBody": {
- "type": "object",
- "properties": {
- "branch_name": { "type": "string" },
- "git_branch": { "type": "string" },
- "region": { "type": "string" }
- },
- "required": ["branch_name"]
- },
- "UpdateCustomHostnameResponse": {
- "type": "object",
- "properties": {
- "status": {
- "enum": [
- "1_not_started",
- "2_initiated",
- "3_challenge_verified",
- "4_origin_setup_completed",
- "5_services_reconfigured"
- ],
- "type": "string"
- },
- "custom_hostname": { "type": "string" },
- "data": { "type": "object" }
- },
- "required": ["status", "custom_hostname", "data"]
- },
- "UpdateCustomHostnameBody": {
- "type": "object",
- "properties": { "custom_hostname": { "type": "string" } },
- "required": ["custom_hostname"]
- },
- "NetworkBanResponse": {
- "type": "object",
- "properties": {
- "banned_ipv4_addresses": { "type": "array", "items": { "type": "string" } }
- },
- "required": ["banned_ipv4_addresses"]
- },
- "RemoveNetworkBanRequest": {
- "type": "object",
- "properties": { "ipv4_addresses": { "type": "array", "items": { "type": "string" } } },
- "required": ["ipv4_addresses"]
- },
- "NetworkRestrictionsRequest": {
- "type": "object",
- "properties": { "dbAllowedCidrs": { "type": "array", "items": { "type": "string" } } },
- "required": ["dbAllowedCidrs"]
- },
- "NetworkRestrictionsResponse": {
- "type": "object",
- "properties": {
- "entitlement": { "enum": ["disallowed", "allowed"], "type": "string" },
- "config": { "$ref": "#/components/schemas/NetworkRestrictionsRequest" },
- "old_config": { "$ref": "#/components/schemas/NetworkRestrictionsRequest" },
- "status": { "enum": ["stored", "applied"], "type": "string" }
- },
- "required": ["entitlement", "config", "status"]
- },
- "PgsodiumConfigResponse": {
- "type": "object",
- "properties": { "root_key": { "type": "string" } },
- "required": ["root_key"]
- },
- "UpdatePgsodiumConfigBody": {
- "type": "object",
- "properties": { "root_key": { "type": "string" } },
- "required": ["root_key"]
- },
- "PostgrestConfigWithJWTSecretResponse": {
- "type": "object",
- "properties": {
- "max_rows": { "type": "integer" },
- "db_schema": { "type": "string" },
- "db_extra_search_path": { "type": "string" },
- "jwt_secret": { "type": "string" }
- },
- "required": ["max_rows", "db_schema", "db_extra_search_path"]
- },
- "UpdatePostgrestConfigBody": {
- "type": "object",
- "properties": {
- "max_rows": { "type": "integer", "minimum": 0, "maximum": 1000000 },
- "db_extra_search_path": { "type": "string" },
- "db_schema": { "type": "string" }
- }
- },
- "PostgrestConfigResponse": {
- "type": "object",
- "properties": {
- "max_rows": { "type": "integer" },
- "db_schema": { "type": "string" },
- "db_extra_search_path": { "type": "string" }
- },
- "required": ["max_rows", "db_schema", "db_extra_search_path"]
- },
- "SecretResponse": {
- "type": "object",
- "properties": { "name": { "type": "string" }, "value": { "type": "string" } },
- "required": ["name", "value"]
- },
- "CreateSecretBody": {
- "type": "object",
- "properties": {
- "name": { "type": "string" },
- "value": { "type": "string", "pattern": "/^(?!SUPABASE_).*/" }
- },
- "required": ["name", "value"]
- },
- "SslEnforcements": {
- "type": "object",
- "properties": { "database": { "type": "boolean" } },
- "required": ["database"]
- },
- "SslEnforcementResponse": {
- "type": "object",
- "properties": {
- "currentConfig": { "$ref": "#/components/schemas/SslEnforcements" },
- "appliedSuccessfully": { "type": "boolean" }
- },
- "required": ["currentConfig", "appliedSuccessfully"]
- },
- "SslEnforcementRequest": {
- "type": "object",
- "properties": { "requestedConfig": { "$ref": "#/components/schemas/SslEnforcements" } },
- "required": ["requestedConfig"]
- },
- "TypescriptResponse": {
- "type": "object",
- "properties": { "types": { "type": "string" } },
- "required": ["types"]
- },
- "VanitySubdomainConfigResponse": {
- "type": "object",
- "properties": {
- "status": { "enum": ["not-used", "custom-domain-used", "active"], "type": "string" },
- "custom_domain": { "type": "string" }
- },
- "required": ["status"]
- },
- "VanitySubdomainBody": {
- "type": "object",
- "properties": { "vanity_subdomain": { "type": "string" } },
- "required": ["vanity_subdomain"]
- },
- "SubdomainAvailabilityResponse": {
- "type": "object",
- "properties": { "available": { "type": "boolean" } },
- "required": ["available"]
- },
- "ActivateVanitySubdomainResponse": {
- "type": "object",
- "properties": { "custom_domain": { "type": "string" } },
- "required": ["custom_domain"]
- },
- "UpgradeDatabaseBody": {
- "type": "object",
- "properties": { "target_version": { "type": "number" } },
- "required": ["target_version"]
- },
- "ProjectVersion": {
- "type": "object",
- "properties": {
- "postgres_version": { "type": "number" },
- "app_version": { "type": "string" }
- },
- "required": ["postgres_version", "app_version"]
- },
- "ProjectUpgradeEligibilityResponse": {
- "type": "object",
- "properties": {
- "eligible": { "type": "boolean" },
- "current_app_version": { "type": "string" },
- "latest_app_version": { "type": "string" },
- "target_upgrade_versions": {
- "type": "array",
- "items": { "$ref": "#/components/schemas/ProjectVersion" }
- },
- "requires_manual_intervention": { "type": "string", "nullable": true },
- "potential_breaking_changes": { "type": "array", "items": { "type": "string" } }
- },
- "required": [
- "eligible",
- "current_app_version",
- "latest_app_version",
- "target_upgrade_versions",
- "requires_manual_intervention",
- "potential_breaking_changes"
- ]
- },
- "DatabaseUpgradeStatus": {
- "type": "object",
- "properties": {
- "initiated_at": { "type": "string" },
- "target_version": { "type": "number" },
- "error": {
- "type": "string",
- "enum": [
- "1_upgraded_instance_launch_failed",
- "2_volume_detachchment_from_upgraded_instance_failed",
- "3_volume_attachment_to_original_instance_failed",
- "4_data_upgrade_initiation_failed",
- "5_data_upgrade_completion_failed",
- "6_volume_detachchment_from_original_instance_failed",
- "7_volume_attachment_to_upgraded_instance_failed",
- "8_upgrade_completion_failed"
- ]
- },
- "progress": {
- "type": "string",
- "enum": [
- "1_started",
- "2_launched_upgraded_instance",
- "3_detached_volume_from_upgraded_instance",
- "4_attached_volume_to_original_instance",
- "5_initiated_data_upgrade",
- "6_completed_data_upgrade",
- "7_detached_volume_from_original_instance",
- "8_attached_volume_to_upgraded_instance",
- "9_completed_upgrade"
- ]
- },
- "status": { "type": "number", "enum": [0, 1, 2] }
- },
- "required": ["initiated_at", "target_version", "status"]
- },
- "DatabaseUpgradeStatusResponse": {
- "type": "object",
- "properties": {
- "databaseUpgradeStatus": {
- "nullable": true,
- "allOf": [{ "$ref": "#/components/schemas/DatabaseUpgradeStatus" }]
- }
- },
- "required": ["databaseUpgradeStatus"]
- },
- "ReadOnlyStatusResponse": {
- "type": "object",
- "properties": {
- "enabled": { "type": "boolean" },
- "override_enabled": { "type": "boolean" },
- "override_active_until": { "type": "string" }
- },
- "required": ["enabled", "override_enabled", "override_active_until"]
- },
- "PostgresConfigResponse": {
- "type": "object",
- "properties": {
- "statement_timeout": { "type": "string" },
- "effective_cache_size": { "type": "string" },
- "maintenance_work_mem": { "type": "string" },
- "max_connections": { "type": "integer", "minimum": 1, "maximum": 262143 },
- "max_parallel_maintenance_workers": { "type": "integer", "minimum": 0, "maximum": 1024 },
- "max_parallel_workers": { "type": "integer", "minimum": 0, "maximum": 1024 },
- "max_parallel_workers_per_gather": { "type": "integer", "minimum": 0, "maximum": 1024 },
- "max_worker_processes": { "type": "integer", "minimum": 0, "maximum": 262143 },
- "shared_buffers": { "type": "string" },
- "work_mem": { "type": "string" },
- "session_replication_role": { "enum": ["origin", "replica", "local"], "type": "string" }
- }
- },
- "UpdatePostgresConfigBody": {
- "type": "object",
- "properties": {
- "statement_timeout": { "type": "string" },
- "effective_cache_size": { "type": "string" },
- "maintenance_work_mem": { "type": "string" },
- "max_connections": { "type": "integer", "minimum": 1, "maximum": 262143 },
- "max_parallel_maintenance_workers": { "type": "integer", "minimum": 0, "maximum": 1024 },
- "max_parallel_workers": { "type": "integer", "minimum": 0, "maximum": 1024 },
- "max_parallel_workers_per_gather": { "type": "integer", "minimum": 0, "maximum": 1024 },
- "max_worker_processes": { "type": "integer", "minimum": 0, "maximum": 262143 },
- "shared_buffers": { "type": "string" },
- "work_mem": { "type": "string" },
- "session_replication_role": { "enum": ["origin", "replica", "local"], "type": "string" }
- }
- },
- "ProjectPgBouncerConfig": {
- "type": "object",
- "properties": {
- "db_dns_name": { "type": "string" },
- "db_host": { "type": "string" },
- "db_name": { "type": "string" },
- "db_port": { "type": "number" },
- "db_ssl": { "type": "boolean" },
- "db_user": { "type": "string" },
- "default_pool_size": { "type": "number" },
- "ignore_startup_parameters": { "type": "string" },
- "inserted_at": { "type": "string" },
- "pgbouncer_enabled": { "type": "boolean" },
- "supavisor_enabled": { "type": "boolean" },
- "pgbouncer_status": {
- "enum": ["COMING_DOWN", "COMING_UP", "DISABLED", "ENABLED", "RELOADING"],
- "type": "string"
- },
- "pool_mode": { "enum": ["transaction", "session", "statement"], "type": "string" },
- "max_client_conn": { "type": "number", "nullable": true },
- "connectionString": { "type": "string" }
- },
- "required": [
- "db_dns_name",
- "db_host",
- "db_name",
- "db_port",
- "db_ssl",
- "db_user",
- "ignore_startup_parameters",
- "inserted_at",
- "pgbouncer_enabled",
- "supavisor_enabled",
- "pgbouncer_status",
- "pool_mode",
- "connectionString"
- ]
- },
- "UpdatePgbouncerConfigBody": {
- "type": "object",
- "properties": {
- "default_pool_size": { "type": "integer", "minimum": 0, "maximum": 1000 },
- "max_client_conn": {
- "type": "integer",
- "nullable": true,
- "minimum": 0,
- "maximum": 18000
- },
- "ignore_startup_parameters": { "type": "string" },
- "pgbouncer_enabled": { "type": "boolean" },
- "pool_mode": { "enum": ["transaction", "session", "statement"], "type": "string" }
- },
- "required": ["ignore_startup_parameters", "pgbouncer_enabled", "pool_mode"]
- },
- "UpdatePoolingConfigResponse": {
- "type": "object",
- "properties": {
- "default_pool_size": { "type": "integer", "minimum": 0, "maximum": 1000 },
- "max_client_conn": {
- "type": "integer",
- "nullable": true,
- "minimum": 0,
- "maximum": 18000
- },
- "ignore_startup_parameters": { "type": "string" },
- "pgbouncer_enabled": { "type": "boolean" },
- "pool_mode": { "enum": ["transaction", "session", "statement"], "type": "string" },
- "pgbouncer_status": {
- "enum": ["COMING_DOWN", "COMING_UP", "DISABLED", "ENABLED", "RELOADING"],
- "type": "string"
- }
- },
- "required": [
- "ignore_startup_parameters",
- "pgbouncer_enabled",
- "pool_mode",
- "pgbouncer_status"
- ]
- },
- "AuthConfigResponse": {
- "type": "object",
- "properties": {
- "smtp_admin_email": { "type": "string" },
- "smtp_host": { "type": "string" },
- "smtp_port": { "type": "string" },
- "smtp_user": { "type": "string" },
- "smtp_pass": { "type": "string" },
- "smtp_max_frequency": { "type": "number" },
- "smtp_sender_name": { "type": "string" },
- "rate_limit_email_sent": { "type": "number", "minimum": 0, "maximum": 2147483647 }
- }
- },
- "UpdateAuthConfigBody": {
- "type": "object",
- "properties": {
- "smtp_admin_email": { "type": "string" },
- "smtp_host": { "type": "string" },
- "smtp_port": { "type": "string" },
- "smtp_user": { "type": "string" },
- "smtp_pass": { "type": "string" },
- "smtp_max_frequency": { "type": "number" },
- "smtp_sender_name": { "type": "string" },
- "rate_limit_email_sent": { "type": "number", "minimum": 0, "maximum": 2147483647 }
- }
- },
- "RunQueryBody": {
- "type": "object",
- "properties": { "query": { "type": "string" } },
- "required": ["query"]
- },
- "CreateFunctionBody": {
- "type": "object",
- "properties": {
- "slug": { "type": "string", "pattern": "/^[A-Za-z0-9_-]+$/" },
- "name": { "type": "string" },
- "body": { "type": "string" },
- "verify_jwt": { "type": "boolean" }
- },
- "required": ["slug", "name", "body"]
- },
- "FunctionResponse": {
- "type": "object",
- "properties": {
- "id": { "type": "string" },
- "slug": { "type": "string" },
- "name": { "type": "string" },
- "status": { "enum": ["ACTIVE", "REMOVED", "THROTTLED"], "type": "string" },
- "version": { "type": "number" },
- "created_at": { "type": "number" },
- "updated_at": { "type": "number" },
- "verify_jwt": { "type": "boolean" },
- "import_map": { "type": "boolean" },
- "entrypoint_path": { "type": "string" },
- "import_map_path": { "type": "string" }
- },
- "required": ["id", "slug", "name", "status", "version", "created_at", "updated_at"]
- },
- "FunctionSlugResponse": {
- "type": "object",
- "properties": {
- "id": { "type": "string" },
- "slug": { "type": "string" },
- "name": { "type": "string" },
- "status": { "enum": ["ACTIVE", "REMOVED", "THROTTLED"], "type": "string" },
- "version": { "type": "number" },
- "created_at": { "type": "number" },
- "updated_at": { "type": "number" },
- "verify_jwt": { "type": "boolean" },
- "import_map": { "type": "boolean" },
- "entrypoint_path": { "type": "string" },
- "import_map_path": { "type": "string" }
- },
- "required": ["id", "slug", "name", "status", "version", "created_at", "updated_at"]
- },
- "UpdateFunctionBody": {
- "type": "object",
- "properties": {
- "name": { "type": "string" },
- "body": { "type": "string" },
- "verify_jwt": { "type": "boolean" }
- }
- },
- "AttributeValue": {
- "type": "object",
- "properties": {
- "default": {
- "oneOf": [
- { "type": "object" },
- { "type": "number" },
- { "type": "string" },
- { "type": "boolean" }
- ]
- },
- "name": { "type": "string" },
- "names": { "type": "array", "items": { "type": "string" } }
- }
- },
- "AttributeMapping": {
- "type": "object",
- "properties": {
- "keys": {
- "type": "object",
- "additionalProperties": { "$ref": "#/components/schemas/AttributeValue" }
- }
- },
- "required": ["keys"]
- },
- "CreateProviderBody": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "enum": ["saml"],
- "description": "What type of provider will be created"
- },
- "metadata_xml": { "type": "string" },
- "metadata_url": { "type": "string" },
- "domains": { "type": "array", "items": { "type": "string" } },
- "attribute_mapping": { "$ref": "#/components/schemas/AttributeMapping" }
- },
- "required": ["type"]
- },
- "SamlDescriptor": {
- "type": "object",
- "properties": {
- "id": { "type": "string" },
- "entity_id": { "type": "string" },
- "metadata_url": { "type": "string" },
- "metadata_xml": { "type": "string" },
- "attribute_mapping": { "$ref": "#/components/schemas/AttributeMapping" }
- },
- "required": ["id", "entity_id"]
- },
- "Domain": {
- "type": "object",
- "properties": {
- "id": { "type": "string" },
- "domain": { "type": "string" },
- "created_at": { "type": "string" },
- "updated_at": { "type": "string" }
- },
- "required": ["id"]
- },
- "CreateProviderResponse": {
- "type": "object",
- "properties": {
- "id": { "type": "string" },
- "saml": { "$ref": "#/components/schemas/SamlDescriptor" },
- "domains": { "type": "array", "items": { "$ref": "#/components/schemas/Domain" } },
- "created_at": { "type": "string" },
- "updated_at": { "type": "string" }
- },
- "required": ["id"]
- },
- "Provider": {
- "type": "object",
- "properties": {
- "id": { "type": "string" },
- "saml": { "$ref": "#/components/schemas/SamlDescriptor" },
- "domains": { "type": "array", "items": { "$ref": "#/components/schemas/Domain" } },
- "created_at": { "type": "string" },
- "updated_at": { "type": "string" }
- },
- "required": ["id"]
- },
- "ListProvidersResponse": {
- "type": "object",
- "properties": {
- "items": { "type": "array", "items": { "$ref": "#/components/schemas/Provider" } }
- },
- "required": ["items"]
- },
- "GetProviderResponse": {
- "type": "object",
- "properties": {
- "id": { "type": "string" },
- "saml": { "$ref": "#/components/schemas/SamlDescriptor" },
- "domains": { "type": "array", "items": { "$ref": "#/components/schemas/Domain" } },
- "created_at": { "type": "string" },
- "updated_at": { "type": "string" }
- },
- "required": ["id"]
- },
- "UpdateProviderBody": {
- "type": "object",
- "properties": {
- "metadata_xml": { "type": "string" },
- "metadata_url": { "type": "string" },
- "domains": { "type": "array", "items": { "type": "string" } },
- "attribute_mapping": { "$ref": "#/components/schemas/AttributeMapping" }
- }
- },
- "UpdateProviderResponse": {
- "type": "object",
- "properties": {
- "id": { "type": "string" },
- "saml": { "$ref": "#/components/schemas/SamlDescriptor" },
- "domains": { "type": "array", "items": { "$ref": "#/components/schemas/Domain" } },
- "created_at": { "type": "string" },
- "updated_at": { "type": "string" }
- },
- "required": ["id"]
- },
- "DeleteProviderResponse": {
- "type": "object",
- "properties": {
- "id": { "type": "string" },
- "saml": { "$ref": "#/components/schemas/SamlDescriptor" },
- "domains": { "type": "array", "items": { "$ref": "#/components/schemas/Domain" } },
- "created_at": { "type": "string" },
- "updated_at": { "type": "string" }
- },
- "required": ["id"]
- }
- }
- }
-}
+{"openapi":"3.0.0","paths":{"/v1/branches/{branch_id}":{"get":{"operationId":"getBranchDetails","summary":"Get database branch config","description":"Fetches configurations of the specified database branch","parameters":[{"name":"branch_id","required":true,"in":"path","description":"Branch ID","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BranchDetailResponse"}}}},"500":{"description":"Failed to retrieve database branch"}},"tags":["database branches (beta)"],"security":[{"bearer":[]}]},"patch":{"operationId":"updateBranch","summary":"Update database branch config","description":"Updates the configuration of the specified database branch","parameters":[{"name":"branch_id","required":true,"in":"path","description":"Branch ID","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBranchBody"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BranchResponse"}}}},"500":{"description":"Failed to update database branch"}},"tags":["database branches (beta)"],"security":[{"bearer":[]}]},"delete":{"operationId":"deleteBranch","summary":"Delete a database branch","description":"Deletes the specified database branch","parameters":[{"name":"branch_id","required":true,"in":"path","description":"Branch ID","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BranchDeleteResponse"}}}},"500":{"description":"Failed to delete database branch"}},"tags":["database branches (beta)"],"security":[{"bearer":[]}]}},"/v1/branches/{branch_id}/reset":{"post":{"operationId":"resetBranch","summary":"Resets a database branch","description":"Resets the specified database branch","parameters":[{"name":"branch_id","required":true,"in":"path","description":"Branch ID","schema":{"type":"string"}}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BranchResetResponse"}}}},"500":{"description":"Failed to reset database branch"}},"tags":["database branches (beta)"],"security":[{"bearer":[]}]}},"/v1/projects":{"get":{"operationId":"getProjects","summary":"List all projects","description":"Returns a list of all projects you've previously created.","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/V1ProjectResponse"}}}}}},"tags":["projects"],"security":[{"bearer":[]}]},"post":{"operationId":"createProject","summary":"Create a project","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1CreateProjectBody"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ProjectResponse"}}}}},"tags":["projects"],"security":[{"bearer":[]}]}},"/v1/organizations":{"get":{"operationId":"getOrganizations","summary":"List all organizations","description":"Returns a list of organizations that you currently belong to.","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationResponseV1"}}}}},"500":{"description":"Unexpected error listing organizations"}},"tags":["organizations"],"security":[{"bearer":[]}]},"post":{"operationId":"createOrganization","summary":"Create an organization","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOrganizationBodyV1"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationResponseV1"}}}},"500":{"description":"Unexpected error creating an organization"}},"tags":["organizations"],"security":[{"bearer":[]}]}},"/v1/oauth/authorize":{"get":{"operationId":"authorize","summary":"Authorize user through oauth","parameters":[{"name":"client_id","required":true,"in":"query","schema":{"type":"string"}},{"name":"response_type","required":true,"in":"query","schema":{"enum":["code","token","id_token token"],"type":"string"}},{"name":"redirect_uri","required":true,"in":"query","schema":{"type":"string"}},{"name":"scope","required":false,"in":"query","schema":{"type":"string"}},{"name":"state","required":false,"in":"query","schema":{"type":"string"}},{"name":"response_mode","required":false,"in":"query","schema":{"type":"string"}},{"name":"code_challenge","required":false,"in":"query","schema":{"type":"string"}},{"name":"code_challenge_method","required":false,"in":"query","schema":{"enum":["plain","sha256","S256"],"type":"string"}}],"responses":{"303":{"description":""}},"tags":["oauth (beta)"],"security":[{"oauth2":["read"]}]}},"/v1/oauth/token":{"post":{"operationId":"token","summary":"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"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthTokenResponse"}}}}},"tags":["oauth (beta)"],"security":[{"oauth2":["write"]}]}},"/v1/snippets":{"get":{"operationId":"listSnippets","summary":"Lists SQL snippets for the logged in user","parameters":[{"name":"project_ref","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SnippetList"}}}},"500":{"description":"Failed to list user's SQL snippets"}},"tags":["snippets"],"security":[{"bearer":[]}]}},"/v1/snippets/{id}":{"get":{"operationId":"getSnippet","summary":"Gets a specific SQL snippet","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SnippetResponse"}}}},"500":{"description":"Failed to retrieve SQL snippet"}},"tags":["snippets"],"security":[{"bearer":[]}]}},"/v1/projects/{ref}/api-keys":{"get":{"operationId":"getProjectApiKeys","summary":"Get project api keys","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ApiKeyResponse"}}}}},"403":{"description":""}},"tags":["projects"],"security":[{"bearer":[]}]}},"/v1/projects/{ref}/branches":{"get":{"operationId":"getBranches","summary":"List all database branches","description":"Returns all database branches of the specified project.","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BranchResponse"}}}}},"500":{"description":"Failed to retrieve database branches"}},"tags":["database branches (beta)"],"security":[{"bearer":[]}]},"post":{"operationId":"createBranch","summary":"Create a database branch","description":"Creates a database branch from the specified project.","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBranchBody"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BranchResponse"}}}},"500":{"description":"Failed to create database branch"}},"tags":["database branches (beta)"],"security":[{"bearer":[]}]},"delete":{"operationId":"disableBranch","summary":"Disables preview branching","description":"Disables preview branching for the specified project","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"responses":{"200":{"description":""},"500":{"description":"Failed to disable preview branching"}},"tags":["database branches (beta)"],"security":[{"bearer":[]}]}},"/v1/projects/{ref}/custom-hostname":{"get":{"operationId":"getCustomHostnameConfig","summary":"Gets project's custom hostname config","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCustomHostnameResponse"}}}},"403":{"description":""},"500":{"description":"Failed to retrieve project's custom hostname config"}},"tags":["custom hostname (beta)"],"security":[{"bearer":[]}]},"delete":{"operationId":"removeCustomHostnameConfig","summary":"Deletes a project's custom hostname configuration","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"responses":{"200":{"description":""},"403":{"description":""},"500":{"description":"Failed to delete project custom hostname configuration"}},"tags":["custom hostname (beta)"],"security":[{"bearer":[]}]}},"/v1/projects/{ref}/custom-hostname/initialize":{"post":{"operationId":"createCustomHostnameConfig","summary":"Updates project's custom hostname configuration","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCustomHostnameBody"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCustomHostnameResponse"}}}},"403":{"description":""},"500":{"description":"Failed to update project custom hostname configuration"}},"tags":["custom hostname (beta)"],"security":[{"bearer":[]}]}},"/v1/projects/{ref}/custom-hostname/reverify":{"post":{"operationId":"reverify","summary":"Attempts to verify the DNS configuration for project's custom hostname configuration","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCustomHostnameResponse"}}}},"403":{"description":""},"500":{"description":"Failed to verify project custom hostname configuration"}},"tags":["custom hostname (beta)"],"security":[{"bearer":[]}]}},"/v1/projects/{ref}/custom-hostname/activate":{"post":{"operationId":"activate","summary":"Activates a custom hostname for a project.","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCustomHostnameResponse"}}}},"403":{"description":""},"500":{"description":"Failed to activate project custom hostname configuration"}},"tags":["custom hostname (beta)"],"security":[{"bearer":[]}]}},"/v1/projects/{ref}/network-bans/retrieve":{"post":{"operationId":"getNetworkBans","summary":"Gets project's network bans","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NetworkBanResponse"}}}},"403":{"description":""},"500":{"description":"Failed to retrieve project's network bans"}},"tags":["network bans (beta)"],"security":[{"bearer":[]}]}},"/v1/projects/{ref}/network-bans":{"delete":{"operationId":"removeNetworkBan","summary":"Remove network bans.","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveNetworkBanRequest"}}}},"responses":{"200":{"description":""},"403":{"description":""},"500":{"description":"Failed to remove network bans."}},"tags":["network bans (beta)"],"security":[{"bearer":[]}]}},"/v1/projects/{ref}/network-restrictions":{"get":{"operationId":"getNetworkRestrictions","summary":"Gets project's network restrictions","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NetworkRestrictionsResponse"}}}},"403":{"description":""},"500":{"description":"Failed to retrieve project's network restrictions"}},"tags":["network restrictions (beta)"],"security":[{"bearer":[]}]}},"/v1/projects/{ref}/network-restrictions/apply":{"post":{"operationId":"applyNetworkRestrictions","summary":"Updates project's network restrictions","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NetworkRestrictionsRequest"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NetworkRestrictionsResponse"}}}},"403":{"description":""},"500":{"description":"Failed to update project network restrictions"}},"tags":["network restrictions (beta)"],"security":[{"bearer":[]}]}},"/v1/projects/{ref}/pgsodium":{"get":{"operationId":"getPgsodiumConfig","summary":"Gets project's pgsodium config","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PgsodiumConfigResponse"}}}},"403":{"description":""},"500":{"description":"Failed to retrieve project's pgsodium config"}},"tags":["pgsodium (beta)"],"security":[{"bearer":[]}]},"put":{"operationId":"updatePgsodiumConfig","summary":"Updates project's pgsodium config. Updating the root_key can cause all data encrypted with the older key to become inaccessible.","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePgsodiumConfigBody"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PgsodiumConfigResponse"}}}},"403":{"description":""},"500":{"description":"Failed to update project's pgsodium config"}},"tags":["pgsodium (beta)"],"security":[{"bearer":[]}]}},"/v1/projects/{ref}/postgrest":{"get":{"operationId":"getPostgRESTConfig","summary":"Gets project's postgrest config","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostgrestConfigWithJWTSecretResponse"}}}},"403":{"description":""},"500":{"description":"Failed to retrieve project's postgrest config"}},"tags":["services"],"security":[{"bearer":[]}]},"patch":{"operationId":"updatePostgRESTConfig","summary":"Updates project's postgrest config","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePostgrestConfigBody"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1PostgrestConfigResponse"}}}},"403":{"description":""},"500":{"description":"Failed to update project's postgrest config"}},"tags":["services"],"security":[{"bearer":[]}]}},"/v1/projects/{ref}":{"delete":{"operationId":"deleteProject","summary":"Deletes the given project","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ProjectRefResponse"}}}},"403":{"description":""}},"tags":["projects"],"security":[{"bearer":[]}]}},"/v1/projects/{ref}/secrets":{"get":{"operationId":"getSecrets","summary":"List all secrets","description":"Returns all secrets you've previously added to the specified project.","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SecretResponse"}}}}},"403":{"description":""},"500":{"description":"Failed to retrieve project's secrets"}},"tags":["secrets"],"security":[{"bearer":[]}]},"post":{"operationId":"createSecrets","summary":"Bulk create secrets","description":"Creates multiple secrets and adds them to the specified project.","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CreateSecretBody"}}}}},"responses":{"201":{"description":""},"403":{"description":""},"500":{"description":"Failed to create project's secrets"}},"tags":["secrets"],"security":[{"bearer":[]}]},"delete":{"operationId":"deleteSecrets","summary":"Bulk delete secrets","description":"Deletes all secrets with the given names from the specified project","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"403":{"description":""},"500":{"description":"Failed to delete secrets with given names"}},"tags":["secrets"],"security":[{"bearer":[]}]}},"/v1/projects/{ref}/ssl-enforcement":{"get":{"operationId":"getSslEnforcementConfig","summary":"Get project's SSL enforcement configuration.","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SslEnforcementResponse"}}}},"403":{"description":""},"500":{"description":"Failed to retrieve project's SSL enforcement config"}},"tags":["ssl enforcement (beta)"],"security":[{"bearer":[]}]},"put":{"operationId":"updateSslEnforcementConfig","summary":"Update project's SSL enforcement configuration.","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SslEnforcementRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SslEnforcementResponse"}}}},"403":{"description":""},"500":{"description":"Failed to update project's SSL enforcement configuration."}},"tags":["ssl enforcement (beta)"],"security":[{"bearer":[]}]}},"/v1/projects/{ref}/types/typescript":{"get":{"operationId":"getTypescriptTypes","summary":"Generate TypeScript types","description":"Returns the TypeScript types of your schema for use with supabase-js.","parameters":[{"name":"included_schemas","required":false,"in":"query","schema":{"default":"public","type":"string"}},{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TypescriptResponse"}}}},"403":{"description":""},"500":{"description":"Failed to generate TypeScript types"}},"tags":["projects"],"security":[{"bearer":[]}]}},"/v1/projects/{ref}/vanity-subdomain":{"get":{"operationId":"getVanitySubdomainConfig","summary":"Gets current vanity subdomain config","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VanitySubdomainConfigResponse"}}}},"403":{"description":""},"500":{"description":"Failed to get project vanity subdomain configuration"}},"tags":["vanity subdomain (beta)"],"security":[{"bearer":[]}]},"delete":{"operationId":"removeVanitySubdomainConfig","summary":"Deletes a project's vanity subdomain configuration","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"responses":{"200":{"description":""},"403":{"description":""},"500":{"description":"Failed to delete project vanity subdomain configuration"}},"tags":["vanity subdomain (beta)"],"security":[{"bearer":[]}]}},"/v1/projects/{ref}/vanity-subdomain/check-availability":{"post":{"operationId":"checkVanitySubdomainAvailability","summary":"Checks vanity subdomain availability","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VanitySubdomainBody"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubdomainAvailabilityResponse"}}}},"403":{"description":""},"500":{"description":"Failed to check project vanity subdomain configuration"}},"tags":["vanity subdomain (beta)"],"security":[{"bearer":[]}]}},"/v1/projects/{ref}/vanity-subdomain/activate":{"post":{"operationId":"activateVanitySubdomainPlease","summary":"Activates a vanity subdomain for a project.","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VanitySubdomainBody"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivateVanitySubdomainResponse"}}}},"403":{"description":""},"500":{"description":"Failed to activate project vanity subdomain configuration"}},"tags":["vanity subdomain (beta)"],"security":[{"bearer":[]}]}},"/v1/projects/{ref}/upgrade":{"post":{"operationId":"upgradeProject","summary":"Upgrades the project's Postgres version","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpgradeDatabaseBody"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectUpgradeInitiateResponse"}}}},"403":{"description":""},"500":{"description":"Failed to initiate project upgrade"}},"tags":["database version upgrade (beta)"],"security":[{"bearer":[]}]}},"/v1/projects/{ref}/upgrade/eligibility":{"get":{"operationId":"upgradeEligibilityInformation","summary":"Returns the project's eligibility for upgrades","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectUpgradeEligibilityResponse"}}}},"403":{"description":""},"500":{"description":"Failed to determine project upgrade eligibility"}},"tags":["database version upgrade (beta)"],"security":[{"bearer":[]}]}},"/v1/projects/{ref}/upgrade/status":{"get":{"operationId":"getUpgradeStatus","summary":"Gets the latest status of the project's upgrade","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatabaseUpgradeStatusResponse"}}}},"403":{"description":""},"500":{"description":"Failed to retrieve project upgrade status"}},"tags":["database version upgrade (beta)"],"security":[{"bearer":[]}]}},"/v1/projects/{ref}/readonly":{"get":{"operationId":"getReadOnlyModeStatus","summary":"Returns project's readonly mode status","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadOnlyStatusResponse"}}}},"500":{"description":"Failed to get project readonly mode status"}},"tags":["database readonly mode"],"security":[{"bearer":[]}]}},"/v1/projects/{ref}/readonly/temporary-disable":{"post":{"operationId":"temporarilyDisableReadonlyMode","summary":"Disables project's readonly mode for the next 15 minutes","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"responses":{"201":{"description":""},"500":{"description":"Failed to disable project's readonly mode"}},"tags":["database readonly mode"],"security":[{"bearer":[]}]}},"/v1/projects/{ref}/read-replicas/setup":{"post":{"operationId":"setUpReadReplica","summary":"Set up a read replica","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetUpReadReplicaBody"}}}},"responses":{"201":{"description":""},"500":{"description":"Failed to set up read replica"}},"tags":["read replicas (beta)"],"security":[{"bearer":[]}]}},"/v1/projects/{ref}/read-replicas/remove":{"post":{"operationId":"removeReadReplica","summary":"Remove a read replica","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveReadReplicaBody"}}}},"responses":{"201":{"description":""},"500":{"description":"Failed to remove read replica"}},"tags":["read replicas (beta)"],"security":[{"bearer":[]}]}},"/v1/projects/{ref}/health":{"get":{"operationId":"checkServiceHealth","summary":"Gets project's service health status","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}},{"name":"timeout_ms","required":false,"in":"query","schema":{"minimum":0,"maximum":10000,"type":"integer"}},{"name":"services","required":true,"in":"query","schema":{"type":"array","items":{"type":"string","enum":["auth","db","pooler","realtime","rest","storage"]}}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/V1ServiceHealthResponse"}}}}},"500":{"description":"Failed to retrieve project's service health status"}},"tags":["services"],"security":[{"bearer":[]}]}},"/v1/projects/{ref}/config/database/postgres":{"get":{"operationId":"getConfig","summary":"Gets project's Postgres config","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostgresConfigResponse"}}}},"500":{"description":"Failed to retrieve project's Postgres config"}},"tags":["projects config"],"security":[{"bearer":[]}]},"put":{"operationId":"updateConfig","summary":"Updates project's Postgres config","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePostgresConfigBody"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostgresConfigResponse"}}}},"500":{"description":"Failed to update project's Postgres config"}},"tags":["projects config"],"security":[{"bearer":[]}]}},"/v1/projects/{ref}/config/database/pgbouncer":{"get":{"operationId":"v1GetPgbouncerConfig","summary":"Get project's pgbouncer config","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1PgbouncerConfigResponse"}}}},"500":{"description":"Failed to retrieve project's pgbouncer config"}},"tags":["projects config"]}},"/v1/projects/{ref}/config/auth":{"get":{"operationId":"getV1AuthConfig","summary":"Gets project's auth config","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthConfigResponse"}}}},"403":{"description":""},"500":{"description":"Failed to retrieve project's auth config"}},"tags":["projects config"],"security":[{"bearer":[]}]},"patch":{"operationId":"updateV1AuthConfig","summary":"Updates a project's auth config","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAuthConfigBody"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthConfigResponse"}}}},"403":{"description":""},"500":{"description":"Failed to update project's auth config"}},"tags":["projects config"],"security":[{"bearer":[]}]}},"/v1/projects/{ref}/config/auth/third-party-auth":{"post":{"operationId":"createTPAForProject","summary":"Creates a new third-party auth integration","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateThirdPartyAuthBody"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThirdPartyAuth"}}}},"403":{"description":""}},"tags":["third-party-auth (alpha)"],"security":[{"bearer":[]}]},"get":{"operationId":"listTPAForProject","summary":"Lists all third-party auth integrations","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ThirdPartyAuth"}}}}},"403":{"description":""}},"tags":["third-party-auth (alpha)"],"security":[{"bearer":[]}]}},"/v1/projects/{ref}/config/auth/third-party-auth/{tpa_id}":{"delete":{"operationId":"deleteTPAForProject","summary":"Removes a third-party auth integration","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}},{"name":"tpa_id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThirdPartyAuth"}}}},"403":{"description":""}},"tags":["third-party-auth (alpha)"],"security":[{"bearer":[]}]},"get":{"operationId":"getTPAForProject","summary":"Get a third-party integration","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}},{"name":"tpa_id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThirdPartyAuth"}}}},"403":{"description":""}},"tags":["third-party-auth (alpha)"],"security":[{"bearer":[]}]}},"/v1/projects/{ref}/database/query":{"post":{"operationId":"v1RunQuery","summary":"Run sql query","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1RunQueryBody"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"403":{"description":""},"500":{"description":"Failed to run sql query"}},"tags":["projects (beta)"],"security":[{"bearer":[]}]}},"/v1/projects/{ref}/database/webhooks/enable":{"post":{"operationId":"v1EnableDatabaseWebhooks","summary":"Enables Database Webhooks on the project","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"responses":{"201":{"description":""},"403":{"description":""},"500":{"description":"Failed to enable Database Webhooks on the project"}},"tags":["projects (beta)"],"security":[{"bearer":[]}]}},"/v1/projects/{ref}/functions":{"post":{"operationId":"createFunction","summary":"Create a function","description":"Creates a function and adds it to the specified project.","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}},{"name":"slug","required":false,"in":"query","schema":{"pattern":"/^[A-Za-z0-9_-]+$/","type":"string"}},{"name":"name","required":false,"in":"query","schema":{"type":"string"}},{"name":"verify_jwt","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"import_map","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"entrypoint_path","required":false,"in":"query","schema":{"type":"string"}},{"name":"import_map_path","required":false,"in":"query","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1CreateFunctionBody"}},"application/vnd.denoland.eszip":{"schema":{"$ref":"#/components/schemas/V1CreateFunctionBody"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionResponse"}}}},"403":{"description":""},"500":{"description":"Failed to create project's function"}},"tags":["functions"],"security":[{"bearer":[]}]},"get":{"operationId":"getFunctions","summary":"List all functions","description":"Returns all functions you've previously added to the specified project.","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FunctionResponse"}}}}},"403":{"description":""},"500":{"description":"Failed to retrieve project's functions"}},"tags":["functions"],"security":[{"bearer":[]}]}},"/v1/projects/{ref}/functions/{function_slug}":{"get":{"operationId":"getFunction","summary":"Retrieve a function","description":"Retrieves a function with the specified slug and project.","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}},{"name":"function_slug","required":true,"in":"path","description":"Function slug","schema":{"pattern":"/^[A-Za-z0-9_-]+$/","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionSlugResponse"}}}},"403":{"description":""},"500":{"description":"Failed to retrieve function with given slug"}},"tags":["functions"],"security":[{"bearer":[]}]},"patch":{"operationId":"updateFunction","summary":"Update a function","description":"Updates a function with the specified slug and project.","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}},{"name":"function_slug","required":true,"in":"path","description":"Function slug","schema":{"pattern":"/^[A-Za-z0-9_-]+$/","type":"string"}},{"name":"slug","required":false,"in":"query","schema":{"pattern":"/^[A-Za-z0-9_-]+$/","type":"string"}},{"name":"name","required":false,"in":"query","schema":{"type":"string"}},{"name":"verify_jwt","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"import_map","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"entrypoint_path","required":false,"in":"query","schema":{"type":"string"}},{"name":"import_map_path","required":false,"in":"query","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1UpdateFunctionBody"}},"application/vnd.denoland.eszip":{"schema":{"$ref":"#/components/schemas/V1UpdateFunctionBody"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionResponse"}}}},"403":{"description":""},"500":{"description":"Failed to update function with given slug"}},"tags":["functions"],"security":[{"bearer":[]}]},"delete":{"operationId":"deleteFunction","summary":"Delete a function","description":"Deletes a function with the specified slug from the specified project.","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}},{"name":"function_slug","required":true,"in":"path","description":"Function slug","schema":{"pattern":"/^[A-Za-z0-9_-]+$/","type":"string"}}],"responses":{"200":{"description":""},"403":{"description":""},"500":{"description":"Failed to delete function with given slug"}},"tags":["functions"],"security":[{"bearer":[]}]}},"/v1/projects/{ref}/functions/{function_slug}/body":{"get":{"operationId":"getFunctionBody","summary":"Retrieve a function body","description":"Retrieves a function body for the specified slug and project.","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}},{"name":"function_slug","required":true,"in":"path","description":"Function slug","schema":{"pattern":"/^[A-Za-z0-9_-]+$/","type":"string"}}],"responses":{"200":{"description":""},"403":{"description":""},"500":{"description":"Failed to retrieve function body with given slug"}},"tags":["functions"],"security":[{"bearer":[]}]}},"/v1/projects/{ref}/storage/buckets":{"get":{"operationId":"getBuckets","summary":"Lists all buckets","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/V1StorageBucketResponse"}}}}},"403":{"description":""},"500":{"description":"Failed to get list of buckets"}},"tags":["storage"],"security":[{"bearer":[]}]}},"/v1/projects/{ref}/config/auth/sso/providers":{"post":{"operationId":"createProviderForProject","summary":"Creates a new SSO provider","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProviderBody"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProviderResponse"}}}},"403":{"description":""},"404":{"description":"SAML 2.0 support is not enabled for this project"}},"tags":["sso"],"security":[{"bearer":[]}]},"get":{"operationId":"listAllProviders","summary":"Lists all SSO providers","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListProvidersResponse"}}}},"403":{"description":""},"404":{"description":"SAML 2.0 support is not enabled for this project"}},"tags":["sso"],"security":[{"bearer":[]}]}},"/v1/projects/{ref}/config/auth/sso/providers/{provider_id}":{"get":{"operationId":"getProviderById","summary":"Gets a SSO provider by its UUID","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}},{"name":"provider_id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetProviderResponse"}}}},"403":{"description":""},"404":{"description":"Either SAML 2.0 was not enabled for this project, or the provider does not exist"}},"tags":["sso"],"security":[{"bearer":[]}]},"put":{"operationId":"updateProviderById","summary":"Updates a SSO provider by its UUID","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}},{"name":"provider_id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProviderBody"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProviderResponse"}}}},"403":{"description":""},"404":{"description":"Either SAML 2.0 was not enabled for this project, or the provider does not exist"}},"tags":["sso"],"security":[{"bearer":[]}]},"delete":{"operationId":"removeProviderById","summary":"Removes a SSO provider by its UUID","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}},{"name":"provider_id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteProviderResponse"}}}},"403":{"description":""},"404":{"description":"Either SAML 2.0 was not enabled for this project, or the provider does not exist"}},"tags":["sso"],"security":[{"bearer":[]}]}},"/v1/projects/{ref}/database/backups":{"get":{"operationId":"getBackups","summary":"Lists all backups","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1BackupsResponse"}}}},"500":{"description":"Failed to get backups"}},"tags":["backups"],"security":[{"bearer":[]}]}},"/v1/projects/{ref}/database/backups/restore-pitr":{"post":{"operationId":"v1RestorePitr","summary":"Restores a PITR backup for a database","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1RestorePitrBody"}}}},"responses":{"201":{"description":""}},"tags":["backups"],"security":[{"bearer":[]}]}},"/v1/organizations/{slug}/members":{"get":{"operationId":"v1ListOrganizationMembers","summary":"List members of an organization","parameters":[{"name":"slug","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/V1OrganizationMemberResponse"}}}}}},"tags":["organizations"],"security":[{"bearer":[]}]}},"/v1/organizations/{slug}":{"get":{"operationId":"getOrganization","summary":"Gets information about the organization","parameters":[{"name":"slug","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1OrganizationSlugResponse"}}}}},"tags":["organizations"],"security":[{"bearer":[]}]}}},"info":{"title":"Supabase API (v1)","description":"","version":"1.0.0","contact":{}},"tags":[{"name":"organizations","description":"Organization endpoints"},{"name":"projects","description":"Project endpoints"}],"servers":[],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http"}},"schemas":{"BranchDetailResponse":{"type":"object","properties":{"db_port":{"type":"integer"},"ref":{"type":"string"},"postgres_version":{"type":"string"},"status":{"enum":["ACTIVE_HEALTHY","ACTIVE_UNHEALTHY","COMING_UP","GOING_DOWN","INACTIVE","INIT_FAILED","REMOVED","RESTORING","UNKNOWN","UPGRADING","PAUSING"],"type":"string"},"db_host":{"type":"string"},"db_user":{"type":"string"},"db_pass":{"type":"string"},"jwt_secret":{"type":"string"}},"required":["db_port","ref","postgres_version","status","db_host"]},"UpdateBranchBody":{"type":"object","properties":{"branch_name":{"type":"string"},"git_branch":{"type":"string"},"reset_on_push":{"type":"boolean"},"persistent":{"type":"boolean"}}},"BranchResponse":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"project_ref":{"type":"string"},"parent_project_ref":{"type":"string"},"is_default":{"type":"boolean"},"git_branch":{"type":"string"},"pr_number":{"type":"number"},"reset_on_push":{"type":"boolean"},"persistent":{"type":"boolean"},"status":{"enum":["CREATING_PROJECT","RUNNING_MIGRATIONS","MIGRATIONS_PASSED","MIGRATIONS_FAILED","FUNCTIONS_DEPLOYED","FUNCTIONS_FAILED"],"type":"string"},"created_at":{"type":"string"},"updated_at":{"type":"string"}},"required":["id","name","project_ref","parent_project_ref","is_default","reset_on_push","persistent","status","created_at","updated_at"]},"BranchDeleteResponse":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"BranchResetResponse":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"V1DatabaseResponse":{"type":"object","properties":{"host":{"type":"string","description":"Database host"},"version":{"type":"string","description":"Database version"}},"required":["host","version"]},"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"},"database":{"$ref":"#/components/schemas/V1DatabaseResponse"},"status":{"enum":["ACTIVE_HEALTHY","ACTIVE_UNHEALTHY","COMING_UP","GOING_DOWN","INACTIVE","INIT_FAILED","REMOVED","RESTORING","UNKNOWN","UPGRADING","PAUSING"],"type":"string"}},"required":["id","organization_id","name","region","created_at","status"]},"DesiredInstanceSize":{"type":"string","enum":["micro","small","medium","large","xlarge","2xlarge","4xlarge","8xlarge","12xlarge","16xlarge"]},"V1CreateProjectBody":{"type":"object","properties":{"db_pass":{"type":"string","description":"Database password"},"name":{"type":"string","description":"Name of your project, should not contain dots"},"organization_id":{"type":"string","description":"Slug of your organization"},"plan":{"type":"string","enum":["free","pro"],"description":"Subscription plan is now set on organization level and is ignored in this request","example":"free","deprecated":true},"region":{"type":"string","enum":["us-east-1","us-west-1","us-west-2","ap-east-1","ap-southeast-1","ap-northeast-1","ap-northeast-2","ap-southeast-2","eu-west-1","eu-west-2","eu-west-3","eu-central-1","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},"desired_instance_size":{"$ref":"#/components/schemas/DesiredInstanceSize"},"template_url":{"type":"string","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"}},"required":["db_pass","name","organization_id","region"]},"OrganizationResponseV1":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"CreateOrganizationBodyV1":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]},"OAuthTokenBody":{"type":"object","properties":{"grant_type":{"enum":["authorization_code","refresh_token"],"type":"string"},"client_id":{"type":"string"},"client_secret":{"type":"string"},"code":{"type":"string"},"code_verifier":{"type":"string"},"redirect_uri":{"type":"string"},"refresh_token":{"type":"string"}},"required":["grant_type","client_id","client_secret"]},"OAuthTokenResponse":{"type":"object","properties":{"token_type":{"type":"string","enum":["Bearer"]},"access_token":{"type":"string"},"refresh_token":{"type":"string"},"expires_in":{"type":"number"}},"required":["token_type","access_token","refresh_token","expires_in"]},"SnippetProject":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"}},"required":["id","name"]},"SnippetUser":{"type":"object","properties":{"id":{"type":"number"},"username":{"type":"string"}},"required":["id","username"]},"SnippetMeta":{"type":"object","properties":{"id":{"type":"string"},"inserted_at":{"type":"string"},"updated_at":{"type":"string"},"type":{"type":"string","enum":["sql"]},"visibility":{"type":"string","enum":["user","project","org","public"]},"name":{"type":"string"},"description":{"type":"string"},"project":{"$ref":"#/components/schemas/SnippetProject"},"owner":{"$ref":"#/components/schemas/SnippetUser"},"updated_by":{"$ref":"#/components/schemas/SnippetUser"}},"required":["id","inserted_at","updated_at","type","visibility","name","project","owner","updated_by"]},"SnippetList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/SnippetMeta"}}},"required":["data"]},"SnippetContent":{"type":"object","properties":{"favorite":{"type":"boolean"},"schema_version":{"type":"string"},"sql":{"type":"string"}},"required":["favorite","schema_version","sql"]},"SnippetResponse":{"type":"object","properties":{"id":{"type":"string"},"inserted_at":{"type":"string"},"updated_at":{"type":"string"},"type":{"type":"string","enum":["sql"]},"visibility":{"enum":["user","project","org","public"],"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"project":{"$ref":"#/components/schemas/SnippetProject"},"owner":{"$ref":"#/components/schemas/SnippetUser"},"updated_by":{"$ref":"#/components/schemas/SnippetUser"},"content":{"$ref":"#/components/schemas/SnippetContent"}},"required":["id","inserted_at","updated_at","type","visibility","name","project","owner","updated_by","content"]},"ApiKeyResponse":{"type":"object","properties":{"name":{"type":"string"},"api_key":{"type":"string"}},"required":["name","api_key"]},"CreateBranchBody":{"type":"object","properties":{"branch_name":{"type":"string"},"git_branch":{"type":"string"},"region":{"type":"string"}},"required":["branch_name"]},"UpdateCustomHostnameResponse":{"type":"object","properties":{"status":{"enum":["1_not_started","2_initiated","3_challenge_verified","4_origin_setup_completed","5_services_reconfigured"],"type":"string"},"custom_hostname":{"type":"string"},"data":{"type":"object"}},"required":["status","custom_hostname","data"]},"UpdateCustomHostnameBody":{"type":"object","properties":{"custom_hostname":{"type":"string"}},"required":["custom_hostname"]},"NetworkBanResponse":{"type":"object","properties":{"banned_ipv4_addresses":{"type":"array","items":{"type":"string"}}},"required":["banned_ipv4_addresses"]},"RemoveNetworkBanRequest":{"type":"object","properties":{"ipv4_addresses":{"type":"array","items":{"type":"string"}}},"required":["ipv4_addresses"]},"NetworkRestrictionsRequest":{"type":"object","properties":{"dbAllowedCidrs":{"type":"array","items":{"type":"string"}},"dbAllowedCidrsV6":{"type":"array","items":{"type":"string"}}}},"NetworkRestrictionsResponse":{"type":"object","properties":{"entitlement":{"enum":["disallowed","allowed"],"type":"string"},"config":{"$ref":"#/components/schemas/NetworkRestrictionsRequest"},"old_config":{"$ref":"#/components/schemas/NetworkRestrictionsRequest"},"status":{"enum":["stored","applied"],"type":"string"}},"required":["entitlement","config","status"]},"PgsodiumConfigResponse":{"type":"object","properties":{"root_key":{"type":"string"}},"required":["root_key"]},"UpdatePgsodiumConfigBody":{"type":"object","properties":{"root_key":{"type":"string"}},"required":["root_key"]},"PostgrestConfigWithJWTSecretResponse":{"type":"object","properties":{"max_rows":{"type":"integer"},"db_pool":{"type":"integer","nullable":true,"description":"If `null`, the value is automatically configured based on compute size."},"db_schema":{"type":"string"},"db_extra_search_path":{"type":"string"},"jwt_secret":{"type":"string"}},"required":["max_rows","db_pool","db_schema","db_extra_search_path"]},"UpdatePostgrestConfigBody":{"type":"object","properties":{"max_rows":{"type":"integer","minimum":0,"maximum":1000000},"db_pool":{"type":"integer","minimum":0,"maximum":1000},"db_extra_search_path":{"type":"string"},"db_schema":{"type":"string"}}},"V1PostgrestConfigResponse":{"type":"object","properties":{"max_rows":{"type":"integer"},"db_pool":{"type":"integer","nullable":true,"description":"If `null`, the value is automatically configured based on compute size."},"db_schema":{"type":"string"},"db_extra_search_path":{"type":"string"}},"required":["max_rows","db_pool","db_schema","db_extra_search_path"]},"V1ProjectRefResponse":{"type":"object","properties":{"id":{"type":"number"},"ref":{"type":"string"},"name":{"type":"string"}},"required":["id","ref","name"]},"SecretResponse":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"}},"required":["name","value"]},"CreateSecretBody":{"type":"object","properties":{"name":{"type":"string","maxLength":256,"pattern":"/^(?!SUPABASE_).*/","description":"Secret name must not start with the SUPABASE_ prefix.","example":"string"},"value":{"type":"string","maxLength":24576}},"required":["name","value"]},"SslEnforcements":{"type":"object","properties":{"database":{"type":"boolean"}},"required":["database"]},"SslEnforcementResponse":{"type":"object","properties":{"currentConfig":{"$ref":"#/components/schemas/SslEnforcements"},"appliedSuccessfully":{"type":"boolean"}},"required":["currentConfig","appliedSuccessfully"]},"SslEnforcementRequest":{"type":"object","properties":{"requestedConfig":{"$ref":"#/components/schemas/SslEnforcements"}},"required":["requestedConfig"]},"TypescriptResponse":{"type":"object","properties":{"types":{"type":"string"}},"required":["types"]},"VanitySubdomainConfigResponse":{"type":"object","properties":{"status":{"enum":["not-used","custom-domain-used","active"],"type":"string"},"custom_domain":{"type":"string"}},"required":["status"]},"VanitySubdomainBody":{"type":"object","properties":{"vanity_subdomain":{"type":"string"}},"required":["vanity_subdomain"]},"SubdomainAvailabilityResponse":{"type":"object","properties":{"available":{"type":"boolean"}},"required":["available"]},"ActivateVanitySubdomainResponse":{"type":"object","properties":{"custom_domain":{"type":"string"}},"required":["custom_domain"]},"UpgradeDatabaseBody":{"type":"object","properties":{"target_version":{"type":"number"}},"required":["target_version"]},"ProjectUpgradeInitiateResponse":{"type":"object","properties":{"tracking_id":{"type":"string"}},"required":["tracking_id"]},"ProjectVersion":{"type":"object","properties":{"postgres_version":{"type":"number"},"app_version":{"type":"string"}},"required":["postgres_version","app_version"]},"ProjectUpgradeEligibilityResponse":{"type":"object","properties":{"eligible":{"type":"boolean"},"current_app_version":{"type":"string"},"latest_app_version":{"type":"string"},"target_upgrade_versions":{"type":"array","items":{"$ref":"#/components/schemas/ProjectVersion"}},"potential_breaking_changes":{"type":"array","items":{"type":"string"}},"duration_estimate_hours":{"type":"number"},"legacy_auth_custom_roles":{"type":"array","items":{"type":"string"}},"extension_dependent_objects":{"type":"array","items":{"type":"string"}}},"required":["eligible","current_app_version","latest_app_version","target_upgrade_versions","potential_breaking_changes","duration_estimate_hours","legacy_auth_custom_roles","extension_dependent_objects"]},"DatabaseUpgradeStatus":{"type":"object","properties":{"initiated_at":{"type":"string"},"target_version":{"type":"number"},"error":{"type":"string","enum":["1_upgraded_instance_launch_failed","2_volume_detachchment_from_upgraded_instance_failed","3_volume_attachment_to_original_instance_failed","4_data_upgrade_initiation_failed","5_data_upgrade_completion_failed","6_volume_detachchment_from_original_instance_failed","7_volume_attachment_to_upgraded_instance_failed","8_upgrade_completion_failed"]},"progress":{"type":"string","enum":["0_requested","1_started","2_launched_upgraded_instance","3_detached_volume_from_upgraded_instance","4_attached_volume_to_original_instance","5_initiated_data_upgrade","6_completed_data_upgrade","7_detached_volume_from_original_instance","8_attached_volume_to_upgraded_instance","9_completed_upgrade"]},"status":{"type":"number","enum":[0,1,2]}},"required":["initiated_at","target_version","status"]},"DatabaseUpgradeStatusResponse":{"type":"object","properties":{"databaseUpgradeStatus":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/DatabaseUpgradeStatus"}]}},"required":["databaseUpgradeStatus"]},"ReadOnlyStatusResponse":{"type":"object","properties":{"enabled":{"type":"boolean"},"override_enabled":{"type":"boolean"},"override_active_until":{"type":"string"}},"required":["enabled","override_enabled","override_active_until"]},"SetUpReadReplicaBody":{"type":"object","properties":{"read_replica_region":{"type":"string","enum":["us-east-1","us-west-1","us-west-2","ap-east-1","ap-southeast-1","ap-northeast-1","ap-northeast-2","ap-southeast-2","eu-west-1","eu-west-2","eu-west-3","eu-central-1","ca-central-1","ap-south-1","sa-east-1"],"description":"Region you want your read replica to reside in","example":"us-east-1"}},"required":["read_replica_region"]},"RemoveReadReplicaBody":{"type":"object","properties":{"database_identifier":{"type":"string"}},"required":["database_identifier"]},"AuthHealthResponse":{"type":"object","properties":{"name":{"type":"string"},"version":{"type":"string"},"description":{"type":"string"}},"required":["name","version","description"]},"RealtimeHealthResponse":{"type":"object","properties":{"healthy":{"type":"boolean"},"db_connected":{"type":"boolean"},"connected_cluster":{"type":"number"}},"required":["healthy","db_connected","connected_cluster"]},"V1ServiceHealthResponse":{"type":"object","properties":{"info":{"oneOf":[{"$ref":"#/components/schemas/AuthHealthResponse"},{"$ref":"#/components/schemas/RealtimeHealthResponse"}]},"name":{"enum":["auth","db","pooler","realtime","rest","storage"],"type":"string"},"healthy":{"type":"boolean"},"status":{"enum":["COMING_UP","ACTIVE_HEALTHY","UNHEALTHY"],"type":"string"},"error":{"type":"string"}},"required":["name","healthy","status"]},"PostgresConfigResponse":{"type":"object","properties":{"statement_timeout":{"type":"string"},"effective_cache_size":{"type":"string"},"maintenance_work_mem":{"type":"string"},"max_connections":{"type":"integer","minimum":1,"maximum":262143},"max_locks_per_transaction":{"type":"integer","minimum":10,"maximum":2147483640},"max_parallel_maintenance_workers":{"type":"integer","minimum":0,"maximum":1024},"max_parallel_workers":{"type":"integer","minimum":0,"maximum":1024},"max_parallel_workers_per_gather":{"type":"integer","minimum":0,"maximum":1024},"max_standby_archive_delay":{"type":"string"},"max_standby_streaming_delay":{"type":"string"},"max_worker_processes":{"type":"integer","minimum":0,"maximum":262143},"shared_buffers":{"type":"string"},"work_mem":{"type":"string"},"session_replication_role":{"enum":["origin","replica","local"],"type":"string"}}},"UpdatePostgresConfigBody":{"type":"object","properties":{"statement_timeout":{"type":"string"},"effective_cache_size":{"type":"string"},"maintenance_work_mem":{"type":"string"},"max_connections":{"type":"integer","minimum":1,"maximum":262143},"max_locks_per_transaction":{"type":"integer","minimum":10,"maximum":2147483640},"max_parallel_maintenance_workers":{"type":"integer","minimum":0,"maximum":1024},"max_parallel_workers":{"type":"integer","minimum":0,"maximum":1024},"max_parallel_workers_per_gather":{"type":"integer","minimum":0,"maximum":1024},"max_standby_archive_delay":{"type":"string"},"max_standby_streaming_delay":{"type":"string"},"max_worker_processes":{"type":"integer","minimum":0,"maximum":262143},"shared_buffers":{"type":"string"},"work_mem":{"type":"string"},"session_replication_role":{"enum":["origin","replica","local"],"type":"string"}}},"V1PgbouncerConfigResponse":{"type":"object","properties":{"pool_mode":{"type":"string","enum":["transaction","session","statement"]},"default_pool_size":{"type":"number"},"ignore_startup_parameters":{"type":"string"},"max_client_conn":{"type":"number"},"connection_string":{"type":"string"}}},"AuthConfigResponse":{"type":"object","properties":{"api_max_request_duration":{"type":"number","nullable":true},"db_max_pool_size":{"type":"number","nullable":true},"disable_signup":{"type":"boolean","nullable":true},"external_anonymous_users_enabled":{"type":"boolean","nullable":true},"external_apple_additional_client_ids":{"type":"string","nullable":true},"external_apple_client_id":{"type":"string","nullable":true},"external_apple_enabled":{"type":"boolean","nullable":true},"external_apple_secret":{"type":"string","nullable":true},"external_azure_client_id":{"type":"string","nullable":true},"external_azure_enabled":{"type":"boolean","nullable":true},"external_azure_secret":{"type":"string","nullable":true},"external_azure_url":{"type":"string","nullable":true},"external_bitbucket_client_id":{"type":"string","nullable":true},"external_bitbucket_enabled":{"type":"boolean","nullable":true},"external_bitbucket_secret":{"type":"string","nullable":true},"external_discord_client_id":{"type":"string","nullable":true},"external_discord_enabled":{"type":"boolean","nullable":true},"external_discord_secret":{"type":"string","nullable":true},"external_email_enabled":{"type":"boolean","nullable":true},"external_facebook_client_id":{"type":"string","nullable":true},"external_facebook_enabled":{"type":"boolean","nullable":true},"external_facebook_secret":{"type":"string","nullable":true},"external_figma_client_id":{"type":"string","nullable":true},"external_figma_enabled":{"type":"boolean","nullable":true},"external_figma_secret":{"type":"string","nullable":true},"external_github_client_id":{"type":"string","nullable":true},"external_github_enabled":{"type":"boolean","nullable":true},"external_github_secret":{"type":"string","nullable":true},"external_gitlab_client_id":{"type":"string","nullable":true},"external_gitlab_enabled":{"type":"boolean","nullable":true},"external_gitlab_secret":{"type":"string","nullable":true},"external_gitlab_url":{"type":"string","nullable":true},"external_google_additional_client_ids":{"type":"string","nullable":true},"external_google_client_id":{"type":"string","nullable":true},"external_google_enabled":{"type":"boolean","nullable":true},"external_google_secret":{"type":"string","nullable":true},"external_google_skip_nonce_check":{"type":"boolean","nullable":true},"external_kakao_client_id":{"type":"string","nullable":true},"external_kakao_enabled":{"type":"boolean","nullable":true},"external_kakao_secret":{"type":"string","nullable":true},"external_keycloak_client_id":{"type":"string","nullable":true},"external_keycloak_enabled":{"type":"boolean","nullable":true},"external_keycloak_secret":{"type":"string","nullable":true},"external_keycloak_url":{"type":"string","nullable":true},"external_linkedin_oidc_client_id":{"type":"string","nullable":true},"external_linkedin_oidc_enabled":{"type":"boolean","nullable":true},"external_linkedin_oidc_secret":{"type":"string","nullable":true},"external_notion_client_id":{"type":"string","nullable":true},"external_notion_enabled":{"type":"boolean","nullable":true},"external_notion_secret":{"type":"string","nullable":true},"external_phone_enabled":{"type":"boolean","nullable":true},"external_slack_client_id":{"type":"string","nullable":true},"external_slack_enabled":{"type":"boolean","nullable":true},"external_slack_secret":{"type":"string","nullable":true},"external_spotify_client_id":{"type":"string","nullable":true},"external_spotify_enabled":{"type":"boolean","nullable":true},"external_spotify_secret":{"type":"string","nullable":true},"external_twitch_client_id":{"type":"string","nullable":true},"external_twitch_enabled":{"type":"boolean","nullable":true},"external_twitch_secret":{"type":"string","nullable":true},"external_twitter_client_id":{"type":"string","nullable":true},"external_twitter_enabled":{"type":"boolean","nullable":true},"external_twitter_secret":{"type":"string","nullable":true},"external_workos_client_id":{"type":"string","nullable":true},"external_workos_enabled":{"type":"boolean","nullable":true},"external_workos_secret":{"type":"string","nullable":true},"external_workos_url":{"type":"string","nullable":true},"external_zoom_client_id":{"type":"string","nullable":true},"external_zoom_enabled":{"type":"boolean","nullable":true},"external_zoom_secret":{"type":"string","nullable":true},"hook_custom_access_token_enabled":{"type":"boolean","nullable":true},"hook_custom_access_token_uri":{"type":"string","nullable":true},"hook_custom_access_token_secrets":{"type":"string","nullable":true},"hook_mfa_verification_attempt_enabled":{"type":"boolean","nullable":true},"hook_mfa_verification_attempt_uri":{"type":"string","nullable":true},"hook_mfa_verification_attempt_secrets":{"type":"string","nullable":true},"hook_password_verification_attempt_enabled":{"type":"boolean","nullable":true},"hook_password_verification_attempt_uri":{"type":"string","nullable":true},"hook_password_verification_attempt_secrets":{"type":"string","nullable":true},"hook_send_sms_enabled":{"type":"boolean","nullable":true},"hook_send_sms_uri":{"type":"string","nullable":true},"hook_send_sms_secrets":{"type":"string","nullable":true},"hook_send_email_enabled":{"type":"boolean","nullable":true},"hook_send_email_uri":{"type":"string","nullable":true},"hook_send_email_secrets":{"type":"string","nullable":true},"jwt_exp":{"type":"number","nullable":true},"mailer_allow_unverified_email_sign_ins":{"type":"boolean","nullable":true},"mailer_autoconfirm":{"type":"boolean","nullable":true},"mailer_otp_exp":{"type":"number","nullable":true},"mailer_otp_length":{"type":"number","nullable":true},"mailer_secure_email_change_enabled":{"type":"boolean","nullable":true},"mailer_subjects_confirmation":{"type":"string","nullable":true},"mailer_subjects_email_change":{"type":"string","nullable":true},"mailer_subjects_invite":{"type":"string","nullable":true},"mailer_subjects_magic_link":{"type":"string","nullable":true},"mailer_subjects_reauthentication":{"type":"string","nullable":true},"mailer_subjects_recovery":{"type":"string","nullable":true},"mailer_templates_confirmation_content":{"type":"string","nullable":true},"mailer_templates_email_change_content":{"type":"string","nullable":true},"mailer_templates_invite_content":{"type":"string","nullable":true},"mailer_templates_magic_link_content":{"type":"string","nullable":true},"mailer_templates_reauthentication_content":{"type":"string","nullable":true},"mailer_templates_recovery_content":{"type":"string","nullable":true},"mfa_max_enrolled_factors":{"type":"number","nullable":true},"password_hibp_enabled":{"type":"boolean","nullable":true},"password_min_length":{"type":"number","nullable":true},"password_required_characters":{"type":"string","nullable":true},"rate_limit_anonymous_users":{"type":"number","nullable":true},"rate_limit_email_sent":{"type":"number","nullable":true},"rate_limit_sms_sent":{"type":"number","nullable":true},"rate_limit_token_refresh":{"type":"number","nullable":true},"rate_limit_verify":{"type":"number","nullable":true},"refresh_token_rotation_enabled":{"type":"boolean","nullable":true},"saml_enabled":{"type":"boolean","nullable":true},"security_captcha_enabled":{"type":"boolean","nullable":true},"security_captcha_provider":{"type":"string","nullable":true},"security_captcha_secret":{"type":"string","nullable":true},"security_manual_linking_enabled":{"type":"boolean","nullable":true},"security_refresh_token_reuse_interval":{"type":"number","nullable":true},"security_update_password_require_reauthentication":{"type":"boolean","nullable":true},"sessions_inactivity_timeout":{"type":"number","nullable":true},"sessions_single_per_user":{"type":"boolean","nullable":true},"sessions_tags":{"type":"string","nullable":true},"sessions_timebox":{"type":"number","nullable":true},"site_url":{"type":"string","nullable":true},"sms_autoconfirm":{"type":"boolean","nullable":true},"sms_max_frequency":{"type":"number","nullable":true},"sms_messagebird_access_key":{"type":"string","nullable":true},"sms_messagebird_originator":{"type":"string","nullable":true},"sms_otp_exp":{"type":"number","nullable":true},"sms_otp_length":{"type":"number","nullable":true},"sms_provider":{"type":"string","nullable":true},"sms_template":{"type":"string","nullable":true},"sms_test_otp":{"type":"string","nullable":true},"sms_test_otp_valid_until":{"type":"string","nullable":true},"sms_textlocal_api_key":{"type":"string","nullable":true},"sms_textlocal_sender":{"type":"string","nullable":true},"sms_twilio_account_sid":{"type":"string","nullable":true},"sms_twilio_auth_token":{"type":"string","nullable":true},"sms_twilio_content_sid":{"type":"string","nullable":true},"sms_twilio_message_service_sid":{"type":"string","nullable":true},"sms_twilio_verify_account_sid":{"type":"string","nullable":true},"sms_twilio_verify_auth_token":{"type":"string","nullable":true},"sms_twilio_verify_message_service_sid":{"type":"string","nullable":true},"sms_vonage_api_key":{"type":"string","nullable":true},"sms_vonage_api_secret":{"type":"string","nullable":true},"sms_vonage_from":{"type":"string","nullable":true},"smtp_admin_email":{"type":"string","nullable":true},"smtp_host":{"type":"string","nullable":true},"smtp_max_frequency":{"type":"number","nullable":true},"smtp_pass":{"type":"string","nullable":true},"smtp_port":{"type":"string","nullable":true},"smtp_sender_name":{"type":"string","nullable":true},"smtp_user":{"type":"string","nullable":true},"uri_allow_list":{"type":"string","nullable":true}},"required":["api_max_request_duration","db_max_pool_size","disable_signup","external_anonymous_users_enabled","external_apple_additional_client_ids","external_apple_client_id","external_apple_enabled","external_apple_secret","external_azure_client_id","external_azure_enabled","external_azure_secret","external_azure_url","external_bitbucket_client_id","external_bitbucket_enabled","external_bitbucket_secret","external_discord_client_id","external_discord_enabled","external_discord_secret","external_email_enabled","external_facebook_client_id","external_facebook_enabled","external_facebook_secret","external_figma_client_id","external_figma_enabled","external_figma_secret","external_github_client_id","external_github_enabled","external_github_secret","external_gitlab_client_id","external_gitlab_enabled","external_gitlab_secret","external_gitlab_url","external_google_additional_client_ids","external_google_client_id","external_google_enabled","external_google_secret","external_google_skip_nonce_check","external_kakao_client_id","external_kakao_enabled","external_kakao_secret","external_keycloak_client_id","external_keycloak_enabled","external_keycloak_secret","external_keycloak_url","external_linkedin_oidc_client_id","external_linkedin_oidc_enabled","external_linkedin_oidc_secret","external_notion_client_id","external_notion_enabled","external_notion_secret","external_phone_enabled","external_slack_client_id","external_slack_enabled","external_slack_secret","external_spotify_client_id","external_spotify_enabled","external_spotify_secret","external_twitch_client_id","external_twitch_enabled","external_twitch_secret","external_twitter_client_id","external_twitter_enabled","external_twitter_secret","external_workos_client_id","external_workos_enabled","external_workos_secret","external_workos_url","external_zoom_client_id","external_zoom_enabled","external_zoom_secret","hook_custom_access_token_enabled","hook_custom_access_token_uri","hook_custom_access_token_secrets","hook_mfa_verification_attempt_enabled","hook_mfa_verification_attempt_uri","hook_mfa_verification_attempt_secrets","hook_password_verification_attempt_enabled","hook_password_verification_attempt_uri","hook_password_verification_attempt_secrets","hook_send_sms_enabled","hook_send_sms_uri","hook_send_sms_secrets","hook_send_email_enabled","hook_send_email_uri","hook_send_email_secrets","jwt_exp","mailer_allow_unverified_email_sign_ins","mailer_autoconfirm","mailer_otp_exp","mailer_otp_length","mailer_secure_email_change_enabled","mailer_subjects_confirmation","mailer_subjects_email_change","mailer_subjects_invite","mailer_subjects_magic_link","mailer_subjects_reauthentication","mailer_subjects_recovery","mailer_templates_confirmation_content","mailer_templates_email_change_content","mailer_templates_invite_content","mailer_templates_magic_link_content","mailer_templates_reauthentication_content","mailer_templates_recovery_content","mfa_max_enrolled_factors","password_hibp_enabled","password_min_length","password_required_characters","rate_limit_anonymous_users","rate_limit_email_sent","rate_limit_sms_sent","rate_limit_token_refresh","rate_limit_verify","refresh_token_rotation_enabled","saml_enabled","security_captcha_enabled","security_captcha_provider","security_captcha_secret","security_manual_linking_enabled","security_refresh_token_reuse_interval","security_update_password_require_reauthentication","sessions_inactivity_timeout","sessions_single_per_user","sessions_tags","sessions_timebox","site_url","sms_autoconfirm","sms_max_frequency","sms_messagebird_access_key","sms_messagebird_originator","sms_otp_exp","sms_otp_length","sms_provider","sms_template","sms_test_otp","sms_test_otp_valid_until","sms_textlocal_api_key","sms_textlocal_sender","sms_twilio_account_sid","sms_twilio_auth_token","sms_twilio_content_sid","sms_twilio_message_service_sid","sms_twilio_verify_account_sid","sms_twilio_verify_auth_token","sms_twilio_verify_message_service_sid","sms_vonage_api_key","sms_vonage_api_secret","sms_vonage_from","smtp_admin_email","smtp_host","smtp_max_frequency","smtp_pass","smtp_port","smtp_sender_name","smtp_user","uri_allow_list"]},"UpdateAuthConfigBody":{"type":"object","properties":{"site_url":{"type":"string","pattern":"/^[^,]+$/"},"disable_signup":{"type":"boolean"},"jwt_exp":{"type":"number","minimum":0,"maximum":604800},"smtp_admin_email":{"type":"string"},"smtp_host":{"type":"string"},"smtp_port":{"type":"string"},"smtp_user":{"type":"string"},"smtp_pass":{"type":"string"},"smtp_max_frequency":{"type":"number","minimum":0,"maximum":32767},"smtp_sender_name":{"type":"string"},"mailer_allow_unverified_email_sign_ins":{"type":"boolean"},"mailer_autoconfirm":{"type":"boolean"},"mailer_subjects_invite":{"type":"string"},"mailer_subjects_confirmation":{"type":"string"},"mailer_subjects_recovery":{"type":"string"},"mailer_subjects_email_change":{"type":"string"},"mailer_subjects_magic_link":{"type":"string"},"mailer_subjects_reauthentication":{"type":"string"},"mailer_templates_invite_content":{"type":"string"},"mailer_templates_confirmation_content":{"type":"string"},"mailer_templates_recovery_content":{"type":"string"},"mailer_templates_email_change_content":{"type":"string"},"mailer_templates_magic_link_content":{"type":"string"},"mailer_templates_reauthentication_content":{"type":"string"},"mfa_max_enrolled_factors":{"type":"number","minimum":0,"maximum":2147483647},"uri_allow_list":{"type":"string"},"external_anonymous_users_enabled":{"type":"boolean"},"external_email_enabled":{"type":"boolean"},"external_phone_enabled":{"type":"boolean"},"saml_enabled":{"type":"boolean"},"security_captcha_enabled":{"type":"boolean"},"security_captcha_provider":{"type":"string"},"security_captcha_secret":{"type":"string"},"sessions_timebox":{"type":"number","minimum":0},"sessions_inactivity_timeout":{"type":"number","minimum":0},"sessions_single_per_user":{"type":"boolean"},"sessions_tags":{"type":"string","pattern":"/^\\s*([a-z0-9_-]+(\\s*,+\\s*)?)*\\s*$/i"},"rate_limit_anonymous_users":{"type":"number","minimum":1,"maximum":2147483647},"rate_limit_email_sent":{"type":"number","minimum":1,"maximum":2147483647},"rate_limit_sms_sent":{"type":"number","minimum":1,"maximum":2147483647},"rate_limit_verify":{"type":"number","minimum":1,"maximum":2147483647},"rate_limit_token_refresh":{"type":"number","minimum":1,"maximum":2147483647},"mailer_secure_email_change_enabled":{"type":"boolean"},"refresh_token_rotation_enabled":{"type":"boolean"},"password_hibp_enabled":{"type":"boolean"},"password_min_length":{"type":"number","minimum":6,"maximum":32767},"password_required_characters":{"type":"string","enum":["abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ:0123456789","abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:0123456789","abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:0123456789:!@#$%^&*()_+-=[]{};'\\\\:\"|<>?,./`~",""]},"security_manual_linking_enabled":{"type":"boolean"},"security_update_password_require_reauthentication":{"type":"boolean"},"security_refresh_token_reuse_interval":{"type":"number","minimum":0,"maximum":2147483647},"mailer_otp_exp":{"type":"number","minimum":0,"maximum":2147483647},"mailer_otp_length":{"type":"number","minimum":6,"maximum":10},"sms_autoconfirm":{"type":"boolean"},"sms_max_frequency":{"type":"number","minimum":0,"maximum":32767},"sms_otp_exp":{"type":"number","minimum":0,"maximum":2147483647},"sms_otp_length":{"type":"number","minimum":0,"maximum":32767},"sms_provider":{"type":"string"},"sms_messagebird_access_key":{"type":"string"},"sms_messagebird_originator":{"type":"string"},"sms_test_otp":{"type":"string","pattern":"/^([0-9]{1,15}=[0-9]+,?)*$/"},"sms_test_otp_valid_until":{"type":"string"},"sms_textlocal_api_key":{"type":"string"},"sms_textlocal_sender":{"type":"string"},"sms_twilio_account_sid":{"type":"string"},"sms_twilio_auth_token":{"type":"string"},"sms_twilio_content_sid":{"type":"string"},"sms_twilio_message_service_sid":{"type":"string"},"sms_twilio_verify_account_sid":{"type":"string"},"sms_twilio_verify_auth_token":{"type":"string"},"sms_twilio_verify_message_service_sid":{"type":"string"},"sms_vonage_api_key":{"type":"string"},"sms_vonage_api_secret":{"type":"string"},"sms_vonage_from":{"type":"string"},"sms_template":{"type":"string"},"hook_mfa_verification_attempt_enabled":{"type":"boolean"},"hook_mfa_verification_attempt_uri":{"type":"string"},"hook_mfa_verification_attempt_secrets":{"type":"string"},"hook_password_verification_attempt_enabled":{"type":"boolean"},"hook_password_verification_attempt_uri":{"type":"string"},"hook_password_verification_attempt_secrets":{"type":"string"},"hook_custom_access_token_enabled":{"type":"boolean"},"hook_custom_access_token_uri":{"type":"string"},"hook_custom_access_token_secrets":{"type":"string"},"hook_send_sms_enabled":{"type":"boolean"},"hook_send_sms_uri":{"type":"string"},"hook_send_sms_secrets":{"type":"string"},"hook_send_email_enabled":{"type":"boolean"},"hook_send_email_uri":{"type":"string"},"hook_send_email_secrets":{"type":"string"},"external_apple_enabled":{"type":"boolean"},"external_apple_client_id":{"type":"string"},"external_apple_secret":{"type":"string"},"external_apple_additional_client_ids":{"type":"string"},"external_azure_enabled":{"type":"boolean"},"external_azure_client_id":{"type":"string"},"external_azure_secret":{"type":"string"},"external_azure_url":{"type":"string"},"external_bitbucket_enabled":{"type":"boolean"},"external_bitbucket_client_id":{"type":"string"},"external_bitbucket_secret":{"type":"string"},"external_discord_enabled":{"type":"boolean"},"external_discord_client_id":{"type":"string"},"external_discord_secret":{"type":"string"},"external_facebook_enabled":{"type":"boolean"},"external_facebook_client_id":{"type":"string"},"external_facebook_secret":{"type":"string"},"external_figma_enabled":{"type":"boolean"},"external_figma_client_id":{"type":"string"},"external_figma_secret":{"type":"string"},"external_github_enabled":{"type":"boolean"},"external_github_client_id":{"type":"string"},"external_github_secret":{"type":"string"},"external_gitlab_enabled":{"type":"boolean"},"external_gitlab_client_id":{"type":"string"},"external_gitlab_secret":{"type":"string"},"external_gitlab_url":{"type":"string"},"external_google_enabled":{"type":"boolean"},"external_google_client_id":{"type":"string"},"external_google_secret":{"type":"string"},"external_google_additional_client_ids":{"type":"string"},"external_google_skip_nonce_check":{"type":"boolean"},"external_kakao_enabled":{"type":"boolean"},"external_kakao_client_id":{"type":"string"},"external_kakao_secret":{"type":"string"},"external_keycloak_enabled":{"type":"boolean"},"external_keycloak_client_id":{"type":"string"},"external_keycloak_secret":{"type":"string"},"external_keycloak_url":{"type":"string"},"external_linkedin_oidc_enabled":{"type":"boolean"},"external_linkedin_oidc_client_id":{"type":"string"},"external_linkedin_oidc_secret":{"type":"string"},"external_notion_enabled":{"type":"boolean"},"external_notion_client_id":{"type":"string"},"external_notion_secret":{"type":"string"},"external_slack_enabled":{"type":"boolean"},"external_slack_client_id":{"type":"string"},"external_slack_secret":{"type":"string"},"external_spotify_enabled":{"type":"boolean"},"external_spotify_client_id":{"type":"string"},"external_spotify_secret":{"type":"string"},"external_twitch_enabled":{"type":"boolean"},"external_twitch_client_id":{"type":"string"},"external_twitch_secret":{"type":"string"},"external_twitter_enabled":{"type":"boolean"},"external_twitter_client_id":{"type":"string"},"external_twitter_secret":{"type":"string"},"external_workos_enabled":{"type":"boolean"},"external_workos_client_id":{"type":"string"},"external_workos_secret":{"type":"string"},"external_workos_url":{"type":"string"},"external_zoom_enabled":{"type":"boolean"},"external_zoom_client_id":{"type":"string"},"external_zoom_secret":{"type":"string"},"db_max_pool_size":{"type":"number"},"api_max_request_duration":{"type":"number"}}},"CreateThirdPartyAuthBody":{"type":"object","properties":{"oidc_issuer_url":{"type":"string"},"jwks_url":{"type":"string"},"custom_jwks":{"type":"object"}}},"ThirdPartyAuth":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"oidc_issuer_url":{"type":"string","nullable":true},"jwks_url":{"type":"string","nullable":true},"custom_jwks":{"type":"object","nullable":true},"resolved_jwks":{"type":"object","nullable":true},"inserted_at":{"type":"string"},"updated_at":{"type":"string"},"resolved_at":{"type":"string","nullable":true}},"required":["id","type","inserted_at","updated_at"]},"V1RunQueryBody":{"type":"object","properties":{"query":{"type":"string"}},"required":["query"]},"V1CreateFunctionBody":{"type":"object","properties":{"slug":{"type":"string","pattern":"/^[A-Za-z0-9_-]+$/"},"name":{"type":"string"},"body":{"type":"string"},"verify_jwt":{"type":"boolean"}},"required":["slug","name","body"]},"FunctionResponse":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"status":{"enum":["ACTIVE","REMOVED","THROTTLED"],"type":"string"},"version":{"type":"number"},"created_at":{"type":"number"},"updated_at":{"type":"number"},"verify_jwt":{"type":"boolean"},"import_map":{"type":"boolean"},"entrypoint_path":{"type":"string"},"import_map_path":{"type":"string"}},"required":["id","slug","name","status","version","created_at","updated_at"]},"FunctionSlugResponse":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"status":{"enum":["ACTIVE","REMOVED","THROTTLED"],"type":"string"},"version":{"type":"number"},"created_at":{"type":"number"},"updated_at":{"type":"number"},"verify_jwt":{"type":"boolean"},"import_map":{"type":"boolean"},"entrypoint_path":{"type":"string"},"import_map_path":{"type":"string"}},"required":["id","slug","name","status","version","created_at","updated_at"]},"V1UpdateFunctionBody":{"type":"object","properties":{"name":{"type":"string"},"body":{"type":"string"},"verify_jwt":{"type":"boolean"}}},"V1StorageBucketResponse":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"owner":{"type":"string"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"public":{"type":"boolean"}},"required":["id","name","owner","created_at","updated_at","public"]},"AttributeValue":{"type":"object","properties":{"default":{"oneOf":[{"type":"object"},{"type":"number"},{"type":"string"},{"type":"boolean"}]},"name":{"type":"string"},"names":{"type":"array","items":{"type":"string"}}}},"AttributeMapping":{"type":"object","properties":{"keys":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/AttributeValue"}}},"required":["keys"]},"CreateProviderBody":{"type":"object","properties":{"type":{"type":"string","enum":["saml"],"description":"What type of provider will be created"},"metadata_xml":{"type":"string"},"metadata_url":{"type":"string"},"domains":{"type":"array","items":{"type":"string"}},"attribute_mapping":{"$ref":"#/components/schemas/AttributeMapping"}},"required":["type"]},"SamlDescriptor":{"type":"object","properties":{"id":{"type":"string"},"entity_id":{"type":"string"},"metadata_url":{"type":"string"},"metadata_xml":{"type":"string"},"attribute_mapping":{"$ref":"#/components/schemas/AttributeMapping"}},"required":["id","entity_id"]},"Domain":{"type":"object","properties":{"id":{"type":"string"},"domain":{"type":"string"},"created_at":{"type":"string"},"updated_at":{"type":"string"}},"required":["id"]},"CreateProviderResponse":{"type":"object","properties":{"id":{"type":"string"},"saml":{"$ref":"#/components/schemas/SamlDescriptor"},"domains":{"type":"array","items":{"$ref":"#/components/schemas/Domain"}},"created_at":{"type":"string"},"updated_at":{"type":"string"}},"required":["id"]},"Provider":{"type":"object","properties":{"id":{"type":"string"},"saml":{"$ref":"#/components/schemas/SamlDescriptor"},"domains":{"type":"array","items":{"$ref":"#/components/schemas/Domain"}},"created_at":{"type":"string"},"updated_at":{"type":"string"}},"required":["id"]},"ListProvidersResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Provider"}}},"required":["items"]},"GetProviderResponse":{"type":"object","properties":{"id":{"type":"string"},"saml":{"$ref":"#/components/schemas/SamlDescriptor"},"domains":{"type":"array","items":{"$ref":"#/components/schemas/Domain"}},"created_at":{"type":"string"},"updated_at":{"type":"string"}},"required":["id"]},"UpdateProviderBody":{"type":"object","properties":{"metadata_xml":{"type":"string"},"metadata_url":{"type":"string"},"domains":{"type":"array","items":{"type":"string"}},"attribute_mapping":{"$ref":"#/components/schemas/AttributeMapping"}}},"UpdateProviderResponse":{"type":"object","properties":{"id":{"type":"string"},"saml":{"$ref":"#/components/schemas/SamlDescriptor"},"domains":{"type":"array","items":{"$ref":"#/components/schemas/Domain"}},"created_at":{"type":"string"},"updated_at":{"type":"string"}},"required":["id"]},"DeleteProviderResponse":{"type":"object","properties":{"id":{"type":"string"},"saml":{"$ref":"#/components/schemas/SamlDescriptor"},"domains":{"type":"array","items":{"$ref":"#/components/schemas/Domain"}},"created_at":{"type":"string"},"updated_at":{"type":"string"}},"required":["id"]},"V1Backup":{"type":"object","properties":{"status":{"type":"string","enum":["COMPLETED","FAILED","PENDING","REMOVED","ARCHIVED"]},"is_physical_backup":{"type":"boolean"},"inserted_at":{"type":"string"}},"required":["status","is_physical_backup","inserted_at"]},"V1PhysicalBackup":{"type":"object","properties":{"earliest_physical_backup_date_unix":{"type":"number"},"latest_physical_backup_date_unix":{"type":"number"}}},"V1BackupsResponse":{"type":"object","properties":{"region":{"type":"string"},"walg_enabled":{"type":"boolean"},"pitr_enabled":{"type":"boolean"},"backups":{"type":"array","items":{"$ref":"#/components/schemas/V1Backup"}},"physical_backup_data":{"$ref":"#/components/schemas/V1PhysicalBackup"}},"required":["region","walg_enabled","pitr_enabled","backups","physical_backup_data"]},"V1RestorePitrBody":{"type":"object","properties":{"recovery_time_target_unix":{"type":"number"}},"required":["recovery_time_target_unix"]},"V1OrganizationMemberResponse":{"type":"object","properties":{"user_id":{"type":"string"},"user_name":{"type":"string"},"email":{"type":"string"},"role_name":{"type":"string"},"mfa_enabled":{"type":"boolean"}},"required":["user_id","user_name","role_name","mfa_enabled"]},"BillingPlanId":{"type":"string","enum":["free","pro","team","enterprise"]},"V1OrganizationSlugResponse":{"type":"object","properties":{"plan":{"$ref":"#/components/schemas/BillingPlanId"},"opt_in_tags":{"type":"array","items":{"type":"string","enum":["AI_SQL_GENERATOR_OPT_IN"]}},"id":{"type":"string"},"name":{"type":"string"}},"required":["opt_in_tags","id","name"]}}}}
\ No newline at end of file
diff --git a/apps/docs/spec/common-api-sections.json b/apps/docs/spec/common-api-sections.json
index 13f5c689c57..865ee4f2949 100644
--- a/apps/docs/spec/common-api-sections.json
+++ b/apps/docs/spec/common-api-sections.json
@@ -15,23 +15,196 @@
"slug": "list-all-projects",
"type": "operation"
},
+ {
+ "id": "get-project-api-keys",
+ "title": "Get project api keys",
+ "slug": "get-project-api-keys",
+ "type": "operation"
+ },
{
"id": "create-a-project",
"title": "Create a project",
"slug": "create-a-project",
"type": "operation"
},
+ {
+ "id": "deletes-the-given-project",
+ "title": "Delete a project",
+ "slug": "deletes-the-given-project",
+ "type": "operation"
+ }
+ ]
+ },
+ {
+ "type": "category",
+ "title": "Organizations",
+ "items": [
{
"id": "list-all-organizations",
"title": "List all organizations",
"slug": "list-all-organizations",
"type": "operation"
},
+ {
+ "id": "gets-information-about-the-organization",
+ "title": "Get an organization",
+ "slug": "gets-information-about-the-organization",
+ "type": "operation"
+ },
{
"id": "create-an-organization",
"title": "Create an organization",
"slug": "create-an-organization",
"type": "operation"
+ },
+ {
+ "id": "list-members-of-an-organization",
+ "title": "List organization members",
+ "slug": "list-members-of-an-organization",
+ "type": "operation"
+ }]
+ },
+ {
+ "type": "category",
+ "title": "Services",
+ "items": [
+ {
+ "id": "gets-projects-service-health-status",
+ "title": "Get services health",
+ "slug": "gets-projects-service-health-status",
+ "type": "operation"
+ },
+ {
+ "id": "gets-projects-auth-config",
+ "title": "Get auth service config",
+ "slug": "gets-projects-auth-config",
+ "type": "operation"
+ },
+ {
+ "id": "updates-a-projects-auth-config",
+ "title": "Update auth service config",
+ "slug": "updates-a-projects-auth-config",
+ "type": "operation"
+ },
+ {
+ "id": "gets-projects-postgrest-config",
+ "title": "Get postgrest service config",
+ "slug": "gets-projects-postgrest-config",
+ "type": "operation"
+ },
+ {
+ "id": "updates-projects-postgrest-config",
+ "title": "Update postgrest service config",
+ "slug": "updates-projects-postgrest-config",
+ "type": "operation"
+ }
+ ]
+ },
+ {
+ "type": "category",
+ "title": "Database",
+ "items": [
+ {
+ "id": "gets-projects-postgres-config",
+ "title": "Get Postgres config",
+ "slug": "gets-projects-postgres-config",
+ "type": "operation"
+ },
+ {
+ "id": "updates-projects-postgres-config",
+ "title": "Update Postgres config",
+ "slug": "updates-projects-postgres-config",
+ "type": "operation"
+ },
+ {
+ "id": "returns-the-projects-eligibility-for-upgrades",
+ "title": "Get Postgres upgrade eligibility",
+ "slug": "returns-the-projects-eligibility-for-upgrades",
+ "type": "operation"
+ },
+ {
+ "id": "gets-the-latest-status-of-the-projects-upgrade",
+ "title": "Get Postgres upgrade status",
+ "slug": "gets-the-latest-status-of-the-projects-upgrade",
+ "type": "operation"
+ },
+ {
+ "id": "upgrades-the-projects-postgres-version",
+ "title": "Upgrade Postgres version",
+ "slug": "upgrades-the-projects-postgres-version",
+ "type": "operation"
+ },
+ {
+ "id": "returns-projects-readonly-mode-status",
+ "title": "Get readonly mode status",
+ "slug": "returns-projects-readonly-mode-status",
+ "type": "operation"
+ },
+ {
+ "id": "disables-projects-readonly-mode-for-the-next-15-minutes",
+ "title": "Disable readonly mode temporarily",
+ "slug": "disables-projects-readonly-mode-for-the-next-15-minutes",
+ "type": "operation"
+ },
+ {
+ "id": "run-sql-query",
+ "title": "Run a query",
+ "slug": "run-sql-query",
+ "type": "operation"
+ },
+ {
+ "id": "enables-database-webhooks-on-the-project",
+ "title": "Enable database webhook",
+ "slug": "enables-database-webhooks-on-the-project",
+ "type": "operation"
+ }
+ ]
+ },
+ {
+ "type": "category",
+ "title": "Database Branching",
+ "items": [
+ {
+ "id": "list-all-database-branches",
+ "title": "List all branches",
+ "slug": "list-all-database-branches",
+ "type": "operation"
+ },
+ {
+ "id": "get-database-branch-config",
+ "title": "Get a branch config",
+ "slug": "get-database-branch-config",
+ "type": "operation"
+ },
+ {
+ "id": "create-a-database-branch",
+ "title": "Create a branch",
+ "slug": "create-a-database-branch",
+ "type": "operation"
+ },
+ {
+ "id": "resets-a-database-branch",
+ "title": "Reset a branch",
+ "slug": "resets-a-database-branch",
+ "type": "operation"
+ },
+ {
+ "id": "update-database-branch-config",
+ "title": "Update a branch config",
+ "slug": "update-database-branch-config",
+ "type": "operation"
+ },
+ {
+ "id": "delete-a-database-branch",
+ "title": "Delete a branch",
+ "slug": "delete-a-database-branch",
+ "type": "operation"
+ },
+ {
+ "id": "disables-preview-branching",
+ "title": "Disable preview branching",
+ "slug": "disables-preview-branching",
+ "type": "operation"
}
]
},
@@ -113,6 +286,18 @@
}
]
},
+ {
+ "type": "category",
+ "title": "Storage",
+ "items": [
+ {
+ "id": "lists-all-buckets",
+ "title": "List all buckets",
+ "slug": "lists-all-buckets",
+ "type": "operation"
+ }
+ ]
+ },
{
"type": "category",
"title": "Custom Hostname",
@@ -149,6 +334,36 @@
}
]
},
+ {
+ "type": "category",
+ "title": "Vanity Subdomain",
+ "items": [
+ {
+ "id": "gets-current-vanity-subdomain-config",
+ "title": "Get vanity subdomain config",
+ "slug": "gets-current-vanity-subdomain-config",
+ "type": "operation"
+ },
+ {
+ "id": "checks-vanity-subdomain-availability",
+ "title": "Check vanity subdomain availability",
+ "slug": "checks-vanity-subdomain-availability",
+ "type": "operation"
+ },
+ {
+ "id": "activates-a-vanity-subdomain-for-a-project",
+ "title": "Activate vanity subdomain config",
+ "slug": "activates-a-vanity-subdomain-for-a-project",
+ "type": "operation"
+ },
+ {
+ "id": "deletes-a-projects-vanity-subdomain-configuration",
+ "title": "Deactive vanity subdomain config",
+ "slug": "deletes-a-projects-vanity-subdomain-configuration",
+ "type": "operation"
+ }
+ ]
+ },
{
"type": "category",
"title": "pgsodium",
@@ -196,5 +411,131 @@
"type": "operation"
}
]
+ },
+ {
+ "type": "category",
+ "title": "Ssl enforcement",
+ "items": [
+ {
+ "id": "get-projects-ssl-enforcement-configuration",
+ "title": "Get ssl enforcement config",
+ "slug": "get-projects-ssl-enforcement-configuration",
+ "type": "operation"
+ },
+ {
+ "id": "update-projects-ssl-enforcement-configuration",
+ "title": "Update ssl enforcement config",
+ "slug": "update-projects-ssl-enforcement-configuration",
+ "type": "operation"
+ }
+ ]
+ },
+ {
+ "type": "category",
+ "title": "Single Sign-On",
+ "items": [
+ {
+ "id": "lists-all-sso-providers",
+ "title": "List all sso providers",
+ "slug": "lists-all-sso-providers",
+ "type": "operation"
+ },
+ {
+ "id": "gets-a-sso-provider-by-its-uuid",
+ "title": "Get a sso provider",
+ "slug": "gets-a-sso-provider-by-its-uuid",
+ "type": "operation"
+ },
+ {
+ "id": "creates-a-new-sso-provider",
+ "title": "Create a sso provider",
+ "slug": "creates-a-new-sso-provider",
+ "type": "operation"
+ },
+ {
+ "id": "updates-a-sso-provider-by-its-uuid",
+ "title": "Update a sso provider",
+ "slug": "updates-a-sso-provider-by-its-uuid",
+ "type": "operation"
+ },
+ {
+ "id": "removes-a-sso-provider-by-its-uuid",
+ "title": "Delete a sso provider",
+ "slug": "removes-a-sso-provider-by-its-uuid",
+ "type": "operation"
+ }
+ ]
+ },
+ {
+ "type": "category",
+ "title": "Oauth",
+ "items": [
+ {
+ "id": "authorize-user-through-oauth",
+ "title": "Authorize user",
+ "slug": "authorize-user-through-oauth",
+ "type": "operation"
+ },
+ {
+ "id": "exchange-auth-code-for-users-access-and-refresh-token",
+ "title": "Exchange oauth token",
+ "slug": "exchange-auth-code-for-users-access-and-refresh-token",
+ "type": "operation"
+ }
+ ]
+ },
+ {
+ "type": "category",
+ "title": "Read replicas",
+ "items": [
+ {
+ "id": "set-up-a-read-replica",
+ "title": "Setup a read replica",
+ "slug": "set-up-a-read-replica",
+ "type": "operation"
+ },
+ {
+ "id": "remove-a-read-replica",
+ "title": "Remove a read replica",
+ "slug": "remove-a-read-replica",
+ "type": "operation"
+ }
+ ]
+ },
+ {
+ "type": "category",
+ "title": "Backups",
+ "items": [
+ {
+ "id": "lists-all-backups",
+ "title": "List all backups",
+ "slug": "lists-all-backups",
+ "type": "operation"
+ },
+ {
+ "id": "restores-a-pitr-backup-for-a-database",
+ "title": "Restores PITR backup",
+ "slug": "restores-a-pitr-backup-for-a-database",
+ "type": "operation"
+ }
+ ]
+ },
+ {
+ "type": "category",
+ "title": "Snippets",
+ "items": [
+ {
+ "id": "lists-sql-snippets-for-the-logged-in-user",
+ "title": "List all snippets",
+ "slug": "lists-sql-snippets-for-the-logged-in-user",
+ "type": "operation"
+ },
+ {
+ "id": "gets-a-specific-sql-snippet",
+ "title": "Get a snippet",
+ "slug": "gets-a-specific-sql-snippet",
+ "type": "operation"
+ }
+ ]
}
]
diff --git a/apps/docs/spec/transforms/api_v0_openapi_deparsed.json b/apps/docs/spec/transforms/api_v0_openapi_deparsed.json
index 21219de5b5f..eaf863682d3 100644
--- a/apps/docs/spec/transforms/api_v0_openapi_deparsed.json
+++ b/apps/docs/spec/transforms/api_v0_openapi_deparsed.json
@@ -92,7 +92,7 @@
}
},
"500": {
- "description": "Failed to update database branch"
+ "description": "Failed to retrieve database branch"
}
},
"tags": [
@@ -131,6 +131,12 @@
},
"git_branch": {
"type": "string"
+ },
+ "reset_on_push": {
+ "type": "boolean"
+ },
+ "persistent": {
+ "type": "boolean"
}
}
}
@@ -163,6 +169,26 @@
"git_branch": {
"type": "string"
},
+ "pr_number": {
+ "type": "number"
+ },
+ "reset_on_push": {
+ "type": "boolean"
+ },
+ "persistent": {
+ "type": "boolean"
+ },
+ "status": {
+ "enum": [
+ "CREATING_PROJECT",
+ "RUNNING_MIGRATIONS",
+ "MIGRATIONS_PASSED",
+ "MIGRATIONS_FAILED",
+ "FUNCTIONS_DEPLOYED",
+ "FUNCTIONS_FAILED"
+ ],
+ "type": "string"
+ },
"created_at": {
"type": "string"
},
@@ -176,6 +202,9 @@
"project_ref",
"parent_project_ref",
"is_default",
+ "reset_on_push",
+ "persistent",
+ "status",
"created_at",
"updated_at"
]
@@ -213,7 +242,22 @@
],
"responses": {
"200": {
- "description": ""
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "message"
+ ]
+ }
+ }
+ }
},
"500": {
"description": "Failed to delete database branch"
@@ -229,6 +273,55 @@
]
}
},
+ "/v1/branches/{branch_id}/reset": {
+ "post": {
+ "operationId": "resetBranch",
+ "summary": "Resets a database branch",
+ "description": "Resets the specified database branch",
+ "parameters": [
+ {
+ "name": "branch_id",
+ "required": true,
+ "in": "path",
+ "description": "Branch ID",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "201": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "message"
+ ]
+ }
+ }
+ }
+ },
+ "500": {
+ "description": "Failed to reset database branch"
+ }
+ },
+ "tags": [
+ "database branches (beta)"
+ ],
+ "security": [
+ {
+ "bearer": []
+ }
+ ]
+ }
+ },
"/v1/projects": {
"get": {
"operationId": "getProjects",
@@ -283,6 +376,22 @@
"host",
"version"
]
+ },
+ "status": {
+ "enum": [
+ "ACTIVE_HEALTHY",
+ "ACTIVE_UNHEALTHY",
+ "COMING_UP",
+ "GOING_DOWN",
+ "INACTIVE",
+ "INIT_FAILED",
+ "REMOVED",
+ "RESTORING",
+ "UNKNOWN",
+ "UPGRADING",
+ "PAUSING"
+ ],
+ "type": "string"
}
},
"required": [
@@ -290,7 +399,8 @@
"organization_id",
"name",
"region",
- "created_at"
+ "created_at",
+ "status"
]
}
}
@@ -336,8 +446,9 @@
"free",
"pro"
],
- "description": "Subscription plan",
- "example": "free"
+ "description": "Subscription plan is now set on organization level and is ignored in this request",
+ "example": "free",
+ "deprecated": true
},
"region": {
"type": "string",
@@ -345,6 +456,7 @@
"us-east-1",
"us-west-1",
"us-west-2",
+ "ap-east-1",
"ap-southeast-1",
"ap-northeast-1",
"ap-northeast-2",
@@ -361,14 +473,34 @@
"example": "us-east-1"
},
"kps_enabled": {
- "type": "boolean"
+ "type": "boolean",
+ "deprecated": true
+ },
+ "desired_instance_size": {
+ "type": "string",
+ "enum": [
+ "micro",
+ "small",
+ "medium",
+ "large",
+ "xlarge",
+ "2xlarge",
+ "4xlarge",
+ "8xlarge",
+ "12xlarge",
+ "16xlarge"
+ ]
+ },
+ "template_url": {
+ "type": "string",
+ "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"
}
},
"required": [
"db_pass",
"name",
"organization_id",
- "plan",
"region"
]
}
@@ -376,64 +508,6 @@
}
},
"responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": {
- "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"
- },
- "database": {
- "type": "object",
- "properties": {
- "host": {
- "type": "string",
- "description": "Database host"
- },
- "version": {
- "type": "string",
- "description": "Database version"
- }
- },
- "required": [
- "host",
- "version"
- ]
- }
- },
- "required": [
- "id",
- "organization_id",
- "name",
- "region",
- "created_at"
- ]
- }
- }
- }
- },
"201": {
"description": "",
"content": {
@@ -479,6 +553,22 @@
"host",
"version"
]
+ },
+ "status": {
+ "enum": [
+ "ACTIVE_HEALTHY",
+ "ACTIVE_UNHEALTHY",
+ "COMING_UP",
+ "GOING_DOWN",
+ "INACTIVE",
+ "INIT_FAILED",
+ "REMOVED",
+ "RESTORING",
+ "UNKNOWN",
+ "UPGRADING",
+ "PAUSING"
+ ],
+ "type": "string"
}
},
"required": [
@@ -486,7 +576,8 @@
"organization_id",
"name",
"region",
- "created_at"
+ "created_at",
+ "status"
]
}
}
@@ -643,7 +734,7 @@
},
{
"name": "scope",
- "required": true,
+ "required": false,
"in": "query",
"schema": {
"type": "string"
@@ -694,6 +785,13 @@
},
"tags": [
"oauth (beta)"
+ ],
+ "security": [
+ {
+ "oauth2": [
+ "read"
+ ]
+ }
]
}
},
@@ -781,79 +879,26 @@
},
"tags": [
"oauth (beta)"
- ]
- }
- },
- "/v1/projects/{ref}/api-keys": {
- "get": {
- "operationId": "getProjectApiKeys",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": {
- "minLength": 20,
- "maxLength": 20,
- "type": "string"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "api_key": {
- "type": "string"
- }
- },
- "required": [
- "name",
- "api_key"
- ]
- }
- }
- }
- }
- },
- "403": {
- "description": ""
- }
- },
- "tags": [
- "projects"
],
"security": [
{
- "bearer": []
+ "oauth2": [
+ "write"
+ ]
}
]
}
},
- "/v1/projects/{ref}/branches": {
+ "/v1/snippets": {
"get": {
- "operationId": "getBranches",
- "summary": "List all database branches",
- "description": "Returns all database branches of the specified project.",
+ "operationId": "listSnippets",
+ "summary": "Lists SQL snippets for the logged in user",
"parameters": [
{
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
+ "name": "project_ref",
+ "required": false,
+ "in": "query",
"schema": {
- "minLength": 20,
- "maxLength": 20,
"type": "string"
}
}
@@ -864,105 +909,140 @@
"content": {
"application/json": {
"schema": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "project_ref": {
- "type": "string"
- },
- "parent_project_ref": {
- "type": "string"
- },
- "is_default": {
- "type": "boolean"
- },
- "git_branch": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
+ "type": "object",
+ "properties": {
+ "data": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "inserted_at": {
+ "type": "string"
+ },
+ "updated_at": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string",
+ "enum": [
+ "sql"
+ ]
+ },
+ "visibility": {
+ "type": "string",
+ "enum": [
+ "user",
+ "project",
+ "org",
+ "public"
+ ]
+ },
+ "name": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "project": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "name"
+ ]
+ },
+ "owner": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number"
+ },
+ "username": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "username"
+ ]
+ },
+ "updated_by": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number"
+ },
+ "username": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "username"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "inserted_at",
+ "updated_at",
+ "type",
+ "visibility",
+ "name",
+ "project",
+ "owner",
+ "updated_by"
+ ]
}
- },
- "required": [
- "id",
- "name",
- "project_ref",
- "parent_project_ref",
- "is_default",
- "created_at",
- "updated_at"
- ]
- }
+ }
+ },
+ "required": [
+ "data"
+ ]
}
}
}
},
"500": {
- "description": "Failed to retrieve database branches"
+ "description": "Failed to list user's SQL snippets"
}
},
"tags": [
- "database branches (beta)"
+ "snippets"
],
"security": [
{
"bearer": []
}
]
- },
- "post": {
- "operationId": "createBranch",
- "summary": "Create a database branch",
- "description": "Creates a database branch from the specified project.",
+ }
+ },
+ "/v1/snippets/{id}": {
+ "get": {
+ "operationId": "getSnippet",
+ "summary": "Gets a specific SQL snippet",
"parameters": [
{
- "name": "ref",
+ "name": "id",
"required": true,
"in": "path",
- "description": "Project ref",
"schema": {
- "minLength": 20,
- "maxLength": 20,
"type": "string"
}
}
],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "branch_name": {
- "type": "string"
- },
- "git_branch": {
- "type": "string"
- },
- "region": {
- "type": "string"
- }
- },
- "required": [
- "branch_name"
- ]
- }
- }
- }
- },
"responses": {
- "201": {
+ "200": {
"description": "",
"content": {
"application/json": {
@@ -972,58 +1052,132 @@
"id": {
"type": "string"
},
- "name": {
- "type": "string"
- },
- "project_ref": {
+ "inserted_at": {
"type": "string"
},
- "parent_project_ref": {
+ "updated_at": {
"type": "string"
},
- "is_default": {
- "type": "boolean"
+ "type": {
+ "type": "string",
+ "enum": [
+ "sql"
+ ]
},
- "git_branch": {
+ "visibility": {
+ "enum": [
+ "user",
+ "project",
+ "org",
+ "public"
+ ],
"type": "string"
},
- "created_at": {
+ "name": {
"type": "string"
},
- "updated_at": {
+ "description": {
"type": "string"
+ },
+ "project": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "name"
+ ]
+ },
+ "owner": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number"
+ },
+ "username": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "username"
+ ]
+ },
+ "updated_by": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number"
+ },
+ "username": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "username"
+ ]
+ },
+ "content": {
+ "type": "object",
+ "properties": {
+ "favorite": {
+ "type": "boolean"
+ },
+ "schema_version": {
+ "type": "string"
+ },
+ "sql": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "favorite",
+ "schema_version",
+ "sql"
+ ]
}
},
"required": [
"id",
+ "inserted_at",
+ "updated_at",
+ "type",
+ "visibility",
"name",
- "project_ref",
- "parent_project_ref",
- "is_default",
- "created_at",
- "updated_at"
+ "project",
+ "owner",
+ "updated_by",
+ "content"
]
}
}
}
},
"500": {
- "description": "Failed to create database branch"
+ "description": "Failed to retrieve SQL snippet"
}
},
"tags": [
- "database branches (beta)"
+ "snippets"
],
"security": [
{
"bearer": []
}
]
- },
- "delete": {
- "operationId": "disableBranch",
- "summary": "Disables preview branching",
- "description": "Disables preview branching for the specified project",
+ }
+ },
+ "/v1/projects/{ref}/api-keys": {
+ "get": {
+ "operationId": "getProjectApiKeys",
+ "summary": "Get project api keys",
"parameters": [
{
"name": "ref",
@@ -1039,14 +1193,36 @@
],
"responses": {
"200": {
- "description": ""
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "api_key": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "api_key"
+ ]
+ }
+ }
+ }
+ }
},
- "500": {
- "description": "Failed to disable preview branching"
+ "403": {
+ "description": ""
}
},
"tags": [
- "database branches (beta)"
+ "projects"
],
"security": [
{
@@ -1055,10 +1231,11 @@
]
}
},
- "/v1/projects/{ref}/custom-hostname": {
+ "/v1/projects/{ref}/branches": {
"get": {
- "operationId": "getCustomHostnameConfig",
- "summary": "Gets project's custom hostname config",
+ "operationId": "getBranches",
+ "summary": "List all database branches",
+ "description": "Returns all database branches of the specified project.",
"parameters": [
{
"name": "ref",
@@ -1078,16 +1255,276 @@
"content": {
"application/json": {
"schema": {
- "type": "object",
- "properties": {
- "status": {
- "enum": [
- "1_not_started",
- "2_initiated",
- "3_challenge_verified",
- "4_origin_setup_completed",
- "5_services_reconfigured"
- ],
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "project_ref": {
+ "type": "string"
+ },
+ "parent_project_ref": {
+ "type": "string"
+ },
+ "is_default": {
+ "type": "boolean"
+ },
+ "git_branch": {
+ "type": "string"
+ },
+ "pr_number": {
+ "type": "number"
+ },
+ "reset_on_push": {
+ "type": "boolean"
+ },
+ "persistent": {
+ "type": "boolean"
+ },
+ "status": {
+ "enum": [
+ "CREATING_PROJECT",
+ "RUNNING_MIGRATIONS",
+ "MIGRATIONS_PASSED",
+ "MIGRATIONS_FAILED",
+ "FUNCTIONS_DEPLOYED",
+ "FUNCTIONS_FAILED"
+ ],
+ "type": "string"
+ },
+ "created_at": {
+ "type": "string"
+ },
+ "updated_at": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "project_ref",
+ "parent_project_ref",
+ "is_default",
+ "reset_on_push",
+ "persistent",
+ "status",
+ "created_at",
+ "updated_at"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "500": {
+ "description": "Failed to retrieve database branches"
+ }
+ },
+ "tags": [
+ "database branches (beta)"
+ ],
+ "security": [
+ {
+ "bearer": []
+ }
+ ]
+ },
+ "post": {
+ "operationId": "createBranch",
+ "summary": "Create a database branch",
+ "description": "Creates a database branch from the specified project.",
+ "parameters": [
+ {
+ "name": "ref",
+ "required": true,
+ "in": "path",
+ "description": "Project ref",
+ "schema": {
+ "minLength": 20,
+ "maxLength": 20,
+ "type": "string"
+ }
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "branch_name": {
+ "type": "string"
+ },
+ "git_branch": {
+ "type": "string"
+ },
+ "region": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "branch_name"
+ ]
+ }
+ }
+ }
+ },
+ "responses": {
+ "201": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "project_ref": {
+ "type": "string"
+ },
+ "parent_project_ref": {
+ "type": "string"
+ },
+ "is_default": {
+ "type": "boolean"
+ },
+ "git_branch": {
+ "type": "string"
+ },
+ "pr_number": {
+ "type": "number"
+ },
+ "reset_on_push": {
+ "type": "boolean"
+ },
+ "persistent": {
+ "type": "boolean"
+ },
+ "status": {
+ "enum": [
+ "CREATING_PROJECT",
+ "RUNNING_MIGRATIONS",
+ "MIGRATIONS_PASSED",
+ "MIGRATIONS_FAILED",
+ "FUNCTIONS_DEPLOYED",
+ "FUNCTIONS_FAILED"
+ ],
+ "type": "string"
+ },
+ "created_at": {
+ "type": "string"
+ },
+ "updated_at": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "project_ref",
+ "parent_project_ref",
+ "is_default",
+ "reset_on_push",
+ "persistent",
+ "status",
+ "created_at",
+ "updated_at"
+ ]
+ }
+ }
+ }
+ },
+ "500": {
+ "description": "Failed to create database branch"
+ }
+ },
+ "tags": [
+ "database branches (beta)"
+ ],
+ "security": [
+ {
+ "bearer": []
+ }
+ ]
+ },
+ "delete": {
+ "operationId": "disableBranch",
+ "summary": "Disables preview branching",
+ "description": "Disables preview branching for the specified project",
+ "parameters": [
+ {
+ "name": "ref",
+ "required": true,
+ "in": "path",
+ "description": "Project ref",
+ "schema": {
+ "minLength": 20,
+ "maxLength": 20,
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": ""
+ },
+ "500": {
+ "description": "Failed to disable preview branching"
+ }
+ },
+ "tags": [
+ "database branches (beta)"
+ ],
+ "security": [
+ {
+ "bearer": []
+ }
+ ]
+ }
+ },
+ "/v1/projects/{ref}/custom-hostname": {
+ "get": {
+ "operationId": "getCustomHostnameConfig",
+ "summary": "Gets project's custom hostname config",
+ "parameters": [
+ {
+ "name": "ref",
+ "required": true,
+ "in": "path",
+ "description": "Project ref",
+ "schema": {
+ "minLength": 20,
+ "maxLength": 20,
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "enum": [
+ "1_not_started",
+ "2_initiated",
+ "3_challenge_verified",
+ "4_origin_setup_completed",
+ "5_services_reconfigured"
+ ],
"type": "string"
},
"custom_hostname": {
@@ -1536,11 +1973,14 @@
"items": {
"type": "string"
}
+ },
+ "dbAllowedCidrsV6": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
}
- },
- "required": [
- "dbAllowedCidrs"
- ]
+ }
},
"old_config": {
"type": "object",
@@ -1550,11 +1990,14 @@
"items": {
"type": "string"
}
+ },
+ "dbAllowedCidrsV6": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
}
- },
- "required": [
- "dbAllowedCidrs"
- ]
+ }
},
"status": {
"enum": [
@@ -1619,11 +2062,14 @@
"items": {
"type": "string"
}
+ },
+ "dbAllowedCidrsV6": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
}
- },
- "required": [
- "dbAllowedCidrs"
- ]
+ }
}
}
}
@@ -1651,11 +2097,14 @@
"items": {
"type": "string"
}
+ },
+ "dbAllowedCidrsV6": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
}
- },
- "required": [
- "dbAllowedCidrs"
- ]
+ }
},
"old_config": {
"type": "object",
@@ -1665,11 +2114,14 @@
"items": {
"type": "string"
}
+ },
+ "dbAllowedCidrsV6": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
}
- },
- "required": [
- "dbAllowedCidrs"
- ]
+ }
},
"status": {
"enum": [
@@ -1855,6 +2307,11 @@
"max_rows": {
"type": "integer"
},
+ "db_pool": {
+ "type": "integer",
+ "nullable": true,
+ "description": "If `null`, the value is automatically configured based on compute size."
+ },
"db_schema": {
"type": "string"
},
@@ -1867,6 +2324,7 @@
},
"required": [
"max_rows",
+ "db_pool",
"db_schema",
"db_extra_search_path"
]
@@ -1918,6 +2376,11 @@
"minimum": 0,
"maximum": 1000000
},
+ "db_pool": {
+ "type": "integer",
+ "minimum": 0,
+ "maximum": 1000
+ },
"db_extra_search_path": {
"type": "string"
},
@@ -1940,6 +2403,11 @@
"max_rows": {
"type": "integer"
},
+ "db_pool": {
+ "type": "integer",
+ "nullable": true,
+ "description": "If `null`, the value is automatically configured based on compute size."
+ },
"db_schema": {
"type": "string"
},
@@ -1949,6 +2417,7 @@
},
"required": [
"max_rows",
+ "db_pool",
"db_schema",
"db_extra_search_path"
]
@@ -1973,6 +2442,64 @@
]
}
},
+ "/v1/projects/{ref}": {
+ "delete": {
+ "operationId": "deleteProject",
+ "summary": "Deletes the given project",
+ "parameters": [
+ {
+ "name": "ref",
+ "required": true,
+ "in": "path",
+ "description": "Project ref",
+ "schema": {
+ "minLength": 20,
+ "maxLength": 20,
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number"
+ },
+ "ref": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "ref",
+ "name"
+ ]
+ }
+ }
+ }
+ },
+ "403": {
+ "description": ""
+ }
+ },
+ "tags": [
+ "projects"
+ ],
+ "security": [
+ {
+ "bearer": []
+ }
+ ]
+ }
+ },
"/v1/projects/{ref}/secrets": {
"get": {
"operationId": "getSecrets",
@@ -2028,10 +2555,6 @@
"secrets"
],
"security": [
- {
- "apiKeyHeader": [],
- "apiKeyParam": []
- },
{
"bearer": []
}
@@ -2064,11 +2587,15 @@
"type": "object",
"properties": {
"name": {
- "type": "string"
+ "type": "string",
+ "maxLength": 256,
+ "pattern": "/^(?!SUPABASE_).*/",
+ "description": "Secret name must not start with the SUPABASE_ prefix.",
+ "example": "string"
},
"value": {
"type": "string",
- "pattern": "/^(?!SUPABASE_).*/"
+ "maxLength": 24576
}
},
"required": [
@@ -2095,10 +2622,6 @@
"secrets"
],
"security": [
- {
- "apiKeyHeader": [],
- "apiKeyParam": []
- },
{
"bearer": []
}
@@ -2156,10 +2679,6 @@
"secrets"
],
"security": [
- {
- "apiKeyHeader": [],
- "apiKeyParam": []
- },
{
"bearer": []
}
@@ -2377,10 +2896,6 @@
"projects"
],
"security": [
- {
- "apiKeyHeader": [],
- "apiKeyParam": []
- },
{
"bearer": []
}
@@ -2663,7 +3178,22 @@
},
"responses": {
"201": {
- "description": ""
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "tracking_id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "tracking_id"
+ ]
+ }
+ }
+ }
},
"403": {
"description": ""
@@ -2734,15 +3264,26 @@
]
}
},
- "requires_manual_intervention": {
- "type": "string",
- "nullable": true
- },
"potential_breaking_changes": {
"type": "array",
"items": {
"type": "string"
}
+ },
+ "duration_estimate_hours": {
+ "type": "number"
+ },
+ "legacy_auth_custom_roles": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "extension_dependent_objects": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
}
},
"required": [
@@ -2750,8 +3291,10 @@
"current_app_version",
"latest_app_version",
"target_upgrade_versions",
- "requires_manual_intervention",
- "potential_breaking_changes"
+ "potential_breaking_changes",
+ "duration_estimate_hours",
+ "legacy_auth_custom_roles",
+ "extension_dependent_objects"
]
}
}
@@ -2827,6 +3370,7 @@
"progress": {
"type": "string",
"enum": [
+ "0_requested",
"1_started",
"2_launched_upgraded_instance",
"3_detached_volume_from_upgraded_instance",
@@ -2973,10 +3517,10 @@
]
}
},
- "/v1/projects/{ref}/config/database/postgres": {
- "get": {
- "operationId": "getConfig",
- "summary": "Gets project's Postgres config",
+ "/v1/projects/{ref}/read-replicas/setup": {
+ "post": {
+ "operationId": "setUpReadReplica",
+ "summary": "Set up a read replica",
"parameters": [
{
"name": "ref",
@@ -2990,86 +3534,65 @@
}
}
],
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "statement_timeout": {
- "type": "string"
- },
- "effective_cache_size": {
- "type": "string"
- },
- "maintenance_work_mem": {
- "type": "string"
- },
- "max_connections": {
- "type": "integer",
- "minimum": 1,
- "maximum": 262143
- },
- "max_parallel_maintenance_workers": {
- "type": "integer",
- "minimum": 0,
- "maximum": 1024
- },
- "max_parallel_workers": {
- "type": "integer",
- "minimum": 0,
- "maximum": 1024
- },
- "max_parallel_workers_per_gather": {
- "type": "integer",
- "minimum": 0,
- "maximum": 1024
- },
- "max_worker_processes": {
- "type": "integer",
- "minimum": 0,
- "maximum": 262143
- },
- "shared_buffers": {
- "type": "string"
- },
- "work_mem": {
- "type": "string"
- },
- "session_replication_role": {
- "enum": [
- "origin",
- "replica",
- "local"
- ],
- "type": "string"
- }
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "read_replica_region": {
+ "type": "string",
+ "enum": [
+ "us-east-1",
+ "us-west-1",
+ "us-west-2",
+ "ap-east-1",
+ "ap-southeast-1",
+ "ap-northeast-1",
+ "ap-northeast-2",
+ "ap-southeast-2",
+ "eu-west-1",
+ "eu-west-2",
+ "eu-west-3",
+ "eu-central-1",
+ "ca-central-1",
+ "ap-south-1",
+ "sa-east-1"
+ ],
+ "description": "Region you want your read replica to reside in",
+ "example": "us-east-1"
}
- }
+ },
+ "required": [
+ "read_replica_region"
+ ]
}
}
+ }
+ },
+ "responses": {
+ "201": {
+ "description": ""
},
"500": {
- "description": "Failed to retrieve project's Postgres config"
+ "description": "Failed to set up read replica"
}
},
"tags": [
- "projects config"
+ "read replicas (beta)"
],
"security": [
- {
- "bearer": []
- },
{
"bearer": []
}
]
- },
- "put": {
- "operationId": "updateConfig",
- "summary": "Updates project's Postgres config",
+ }
+ },
+ "/v1/projects/{ref}/read-replicas/remove": {
+ "post": {
+ "operationId": "removeReadReplica",
+ "summary": "Remove a read replica",
"parameters": [
{
"name": "ref",
@@ -3090,59 +3613,200 @@
"schema": {
"type": "object",
"properties": {
- "statement_timeout": {
- "type": "string"
- },
- "effective_cache_size": {
- "type": "string"
- },
- "maintenance_work_mem": {
- "type": "string"
- },
- "max_connections": {
- "type": "integer",
- "minimum": 1,
- "maximum": 262143
- },
- "max_parallel_maintenance_workers": {
- "type": "integer",
- "minimum": 0,
- "maximum": 1024
- },
- "max_parallel_workers": {
- "type": "integer",
- "minimum": 0,
- "maximum": 1024
- },
- "max_parallel_workers_per_gather": {
- "type": "integer",
- "minimum": 0,
- "maximum": 1024
- },
- "max_worker_processes": {
- "type": "integer",
- "minimum": 0,
- "maximum": 262143
- },
- "shared_buffers": {
- "type": "string"
- },
- "work_mem": {
- "type": "string"
- },
- "session_replication_role": {
- "enum": [
- "origin",
- "replica",
- "local"
- ],
+ "database_identifier": {
"type": "string"
}
+ },
+ "required": [
+ "database_identifier"
+ ]
+ }
+ }
+ }
+ },
+ "responses": {
+ "201": {
+ "description": ""
+ },
+ "500": {
+ "description": "Failed to remove read replica"
+ }
+ },
+ "tags": [
+ "read replicas (beta)"
+ ],
+ "security": [
+ {
+ "bearer": []
+ }
+ ]
+ }
+ },
+ "/v1/projects/{ref}/health": {
+ "get": {
+ "operationId": "checkServiceHealth",
+ "summary": "Gets project's service health status",
+ "parameters": [
+ {
+ "name": "ref",
+ "required": true,
+ "in": "path",
+ "description": "Project ref",
+ "schema": {
+ "minLength": 20,
+ "maxLength": 20,
+ "type": "string"
+ }
+ },
+ {
+ "name": "timeout_ms",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "minimum": 0,
+ "maximum": 10000,
+ "type": "integer"
+ }
+ },
+ {
+ "name": "services",
+ "required": true,
+ "in": "query",
+ "schema": {
+ "type": "array",
+ "items": {
+ "type": "string",
+ "enum": [
+ "auth",
+ "db",
+ "pooler",
+ "realtime",
+ "rest",
+ "storage"
+ ]
+ }
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "info": {
+ "oneOf": [
+ {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "version": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "version",
+ "description"
+ ]
+ },
+ {
+ "type": "object",
+ "properties": {
+ "healthy": {
+ "type": "boolean"
+ },
+ "db_connected": {
+ "type": "boolean"
+ },
+ "connected_cluster": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "healthy",
+ "db_connected",
+ "connected_cluster"
+ ]
+ }
+ ]
+ },
+ "name": {
+ "enum": [
+ "auth",
+ "db",
+ "pooler",
+ "realtime",
+ "rest",
+ "storage"
+ ],
+ "type": "string"
+ },
+ "healthy": {
+ "type": "boolean"
+ },
+ "status": {
+ "enum": [
+ "COMING_UP",
+ "ACTIVE_HEALTHY",
+ "UNHEALTHY"
+ ],
+ "type": "string"
+ },
+ "error": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "healthy",
+ "status"
+ ]
+ }
}
}
}
+ },
+ "500": {
+ "description": "Failed to retrieve project's service health status"
}
},
+ "tags": [
+ "services"
+ ],
+ "security": [
+ {
+ "bearer": []
+ }
+ ]
+ }
+ },
+ "/v1/projects/{ref}/config/database/postgres": {
+ "get": {
+ "operationId": "getConfig",
+ "summary": "Gets project's Postgres config",
+ "parameters": [
+ {
+ "name": "ref",
+ "required": true,
+ "in": "path",
+ "description": "Project ref",
+ "schema": {
+ "minLength": 20,
+ "maxLength": 20,
+ "type": "string"
+ }
+ }
+ ],
"responses": {
"200": {
"description": "",
@@ -3165,6 +3829,11 @@
"minimum": 1,
"maximum": 262143
},
+ "max_locks_per_transaction": {
+ "type": "integer",
+ "minimum": 10,
+ "maximum": 2147483640
+ },
"max_parallel_maintenance_workers": {
"type": "integer",
"minimum": 0,
@@ -3180,6 +3849,12 @@
"minimum": 0,
"maximum": 1024
},
+ "max_standby_archive_delay": {
+ "type": "string"
+ },
+ "max_standby_streaming_delay": {
+ "type": "string"
+ },
"max_worker_processes": {
"type": "integer",
"minimum": 0,
@@ -3205,26 +3880,21 @@
}
},
"500": {
- "description": "Failed to update project's Postgres config"
+ "description": "Failed to retrieve project's Postgres config"
}
},
"tags": [
"projects config"
],
"security": [
- {
- "bearer": []
- },
{
"bearer": []
}
]
- }
- },
- "/v1/projects/{ref}/config/database/pgbouncer": {
- "get": {
- "operationId": "getPgbouncerConfig",
- "summary": "Gets project's pgbouncer config",
+ },
+ "put": {
+ "operationId": "updateConfig",
+ "summary": "Updates project's Postgres config",
"parameters": [
{
"name": "ref",
@@ -3238,159 +3908,73 @@
}
}
],
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "db_dns_name": {
- "type": "string"
- },
- "db_host": {
- "type": "string"
- },
- "db_name": {
- "type": "string"
- },
- "db_port": {
- "type": "number"
- },
- "db_ssl": {
- "type": "boolean"
- },
- "db_user": {
- "type": "string"
- },
- "default_pool_size": {
- "type": "number"
- },
- "ignore_startup_parameters": {
- "type": "string"
- },
- "inserted_at": {
- "type": "string"
- },
- "pgbouncer_enabled": {
- "type": "boolean"
- },
- "supavisor_enabled": {
- "type": "boolean"
- },
- "pgbouncer_status": {
- "enum": [
- "COMING_DOWN",
- "COMING_UP",
- "DISABLED",
- "ENABLED",
- "RELOADING"
- ],
- "type": "string"
- },
- "pool_mode": {
- "enum": [
- "transaction",
- "session",
- "statement"
- ],
- "type": "string"
- },
- "max_client_conn": {
- "type": "number",
- "nullable": true
- },
- "connectionString": {
- "type": "string"
- }
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "statement_timeout": {
+ "type": "string"
},
- "required": [
- "db_dns_name",
- "db_host",
- "db_name",
- "db_port",
- "db_ssl",
- "db_user",
- "ignore_startup_parameters",
- "inserted_at",
- "pgbouncer_enabled",
- "supavisor_enabled",
- "pgbouncer_status",
- "pool_mode",
- "connectionString"
- ]
- }
- }
- }
- },
- "500": {
- "description": "Failed to retrieve project's pgbouncer config"
- }
- },
- "tags": [
- "projects config"
- ],
- "security": [
- {
- "bearer": []
- }
- ]
- },
- "patch": {
- "operationId": "updatePgbouncerConfig",
- "summary": "Updates project's pgbouncer config",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": {
- "minLength": 20,
- "maxLength": 20,
- "type": "string"
- }
- }
- ],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "default_pool_size": {
+ "effective_cache_size": {
+ "type": "string"
+ },
+ "maintenance_work_mem": {
+ "type": "string"
+ },
+ "max_connections": {
+ "type": "integer",
+ "minimum": 1,
+ "maximum": 262143
+ },
+ "max_locks_per_transaction": {
+ "type": "integer",
+ "minimum": 10,
+ "maximum": 2147483640
+ },
+ "max_parallel_maintenance_workers": {
"type": "integer",
"minimum": 0,
- "maximum": 1000
+ "maximum": 1024
+ },
+ "max_parallel_workers": {
+ "type": "integer",
+ "minimum": 0,
+ "maximum": 1024
+ },
+ "max_parallel_workers_per_gather": {
+ "type": "integer",
+ "minimum": 0,
+ "maximum": 1024
+ },
+ "max_standby_archive_delay": {
+ "type": "string"
+ },
+ "max_standby_streaming_delay": {
+ "type": "string"
},
- "max_client_conn": {
+ "max_worker_processes": {
"type": "integer",
- "nullable": true,
"minimum": 0,
- "maximum": 18000
+ "maximum": 262143
},
- "ignore_startup_parameters": {
+ "shared_buffers": {
"type": "string"
},
- "pgbouncer_enabled": {
- "type": "boolean"
+ "work_mem": {
+ "type": "string"
},
- "pool_mode": {
+ "session_replication_role": {
"enum": [
- "transaction",
- "session",
- "statement"
+ "origin",
+ "replica",
+ "local"
],
"type": "string"
}
- },
- "required": [
- "ignore_startup_parameters",
- "pgbouncer_enabled",
- "pool_mode"
- ]
+ }
}
}
}
@@ -3403,57 +3987,72 @@
"schema": {
"type": "object",
"properties": {
- "default_pool_size": {
+ "statement_timeout": {
+ "type": "string"
+ },
+ "effective_cache_size": {
+ "type": "string"
+ },
+ "maintenance_work_mem": {
+ "type": "string"
+ },
+ "max_connections": {
+ "type": "integer",
+ "minimum": 1,
+ "maximum": 262143
+ },
+ "max_locks_per_transaction": {
+ "type": "integer",
+ "minimum": 10,
+ "maximum": 2147483640
+ },
+ "max_parallel_maintenance_workers": {
"type": "integer",
"minimum": 0,
- "maximum": 1000
+ "maximum": 1024
},
- "max_client_conn": {
+ "max_parallel_workers": {
"type": "integer",
- "nullable": true,
"minimum": 0,
- "maximum": 18000
+ "maximum": 1024
},
- "ignore_startup_parameters": {
+ "max_parallel_workers_per_gather": {
+ "type": "integer",
+ "minimum": 0,
+ "maximum": 1024
+ },
+ "max_standby_archive_delay": {
"type": "string"
},
- "pgbouncer_enabled": {
- "type": "boolean"
+ "max_standby_streaming_delay": {
+ "type": "string"
},
- "pool_mode": {
- "enum": [
- "transaction",
- "session",
- "statement"
- ],
+ "max_worker_processes": {
+ "type": "integer",
+ "minimum": 0,
+ "maximum": 262143
+ },
+ "shared_buffers": {
+ "type": "string"
+ },
+ "work_mem": {
"type": "string"
},
- "pgbouncer_status": {
+ "session_replication_role": {
"enum": [
- "COMING_DOWN",
- "COMING_UP",
- "DISABLED",
- "ENABLED",
- "RELOADING"
+ "origin",
+ "replica",
+ "local"
],
"type": "string"
}
- },
- "required": [
- "ignore_startup_parameters",
- "pgbouncer_enabled",
- "pool_mode",
- "pgbouncer_status"
- ]
+ }
}
}
}
},
- "403": {
- "description": ""
- },
"500": {
- "description": "Failed to update project's pgbouncer config"
+ "description": "Failed to update project's Postgres config"
}
},
"tags": [
@@ -3466,10 +4065,10 @@
]
}
},
- "/v1/projects/{ref}/config/auth": {
+ "/v1/projects/{ref}/config/database/pgbouncer": {
"get": {
- "operationId": "getV1AuthConfig",
- "summary": "Gets project's auth config",
+ "operationId": "v1GetPgbouncerConfig",
+ "summary": "Get project's pgbouncer config",
"parameters": [
{
"name": "ref",
@@ -3491,56 +4090,44 @@
"schema": {
"type": "object",
"properties": {
- "smtp_admin_email": {
- "type": "string"
- },
- "smtp_host": {
- "type": "string"
- },
- "smtp_port": {
- "type": "string"
+ "pool_mode": {
+ "type": "string",
+ "enum": [
+ "transaction",
+ "session",
+ "statement"
+ ]
},
- "smtp_user": {
- "type": "string"
+ "default_pool_size": {
+ "type": "number"
},
- "smtp_pass": {
+ "ignore_startup_parameters": {
"type": "string"
},
- "smtp_max_frequency": {
+ "max_client_conn": {
"type": "number"
},
- "smtp_sender_name": {
+ "connection_string": {
"type": "string"
- },
- "rate_limit_email_sent": {
- "type": "number",
- "minimum": 0,
- "maximum": 2147483647
}
}
}
}
}
},
- "403": {
- "description": ""
- },
"500": {
- "description": "Failed to retrieve project's auth config"
+ "description": "Failed to retrieve project's pgbouncer config"
}
},
"tags": [
"projects config"
- ],
- "security": [
- {
- "bearer": []
- }
]
- },
- "patch": {
- "operationId": "updateV1AuthConfig",
- "summary": "Updates a project's auth config",
+ }
+ },
+ "/v1/projects/{ref}/config/auth": {
+ "get": {
+ "operationId": "getV1AuthConfig",
+ "summary": "Gets project's auth config",
"parameters": [
{
"name": "ref",
@@ -3554,44 +4141,6 @@
}
}
],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "smtp_admin_email": {
- "type": "string"
- },
- "smtp_host": {
- "type": "string"
- },
- "smtp_port": {
- "type": "string"
- },
- "smtp_user": {
- "type": "string"
- },
- "smtp_pass": {
- "type": "string"
- },
- "smtp_max_frequency": {
- "type": "number"
- },
- "smtp_sender_name": {
- "type": "string"
- },
- "rate_limit_email_sent": {
- "type": "number",
- "minimum": 0,
- "maximum": 2147483647
- }
- }
- }
- }
- }
- },
"responses": {
"200": {
"description": "",
@@ -3600,33 +4149,4239 @@
"schema": {
"type": "object",
"properties": {
- "smtp_admin_email": {
- "type": "string"
- },
- "smtp_host": {
- "type": "string"
+ "api_max_request_duration": {
+ "type": "number",
+ "nullable": true
},
- "smtp_port": {
- "type": "string"
+ "db_max_pool_size": {
+ "type": "number",
+ "nullable": true
},
- "smtp_user": {
- "type": "string"
+ "disable_signup": {
+ "type": "boolean",
+ "nullable": true
},
- "smtp_pass": {
- "type": "string"
+ "external_anonymous_users_enabled": {
+ "type": "boolean",
+ "nullable": true
},
- "smtp_max_frequency": {
- "type": "number"
+ "external_apple_additional_client_ids": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_apple_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_apple_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_apple_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_azure_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_azure_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_azure_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_azure_url": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_bitbucket_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_bitbucket_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_bitbucket_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_discord_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_discord_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_discord_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_email_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_facebook_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_facebook_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_facebook_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_figma_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_figma_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_figma_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_github_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_github_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_github_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_gitlab_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_gitlab_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_gitlab_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_gitlab_url": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_google_additional_client_ids": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_google_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_google_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_google_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_google_skip_nonce_check": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_kakao_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_kakao_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_kakao_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_keycloak_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_keycloak_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_keycloak_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_keycloak_url": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_linkedin_oidc_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_linkedin_oidc_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_linkedin_oidc_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_notion_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_notion_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_notion_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_phone_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_slack_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_slack_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_slack_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_spotify_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_spotify_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_spotify_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_twitch_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_twitch_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_twitch_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_twitter_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_twitter_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_twitter_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_workos_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_workos_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_workos_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_workos_url": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_zoom_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_zoom_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_zoom_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "hook_custom_access_token_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "hook_custom_access_token_uri": {
+ "type": "string",
+ "nullable": true
+ },
+ "hook_custom_access_token_secrets": {
+ "type": "string",
+ "nullable": true
+ },
+ "hook_mfa_verification_attempt_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "hook_mfa_verification_attempt_uri": {
+ "type": "string",
+ "nullable": true
+ },
+ "hook_mfa_verification_attempt_secrets": {
+ "type": "string",
+ "nullable": true
+ },
+ "hook_password_verification_attempt_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "hook_password_verification_attempt_uri": {
+ "type": "string",
+ "nullable": true
+ },
+ "hook_password_verification_attempt_secrets": {
+ "type": "string",
+ "nullable": true
+ },
+ "hook_send_sms_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "hook_send_sms_uri": {
+ "type": "string",
+ "nullable": true
+ },
+ "hook_send_sms_secrets": {
+ "type": "string",
+ "nullable": true
+ },
+ "hook_send_email_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "hook_send_email_uri": {
+ "type": "string",
+ "nullable": true
+ },
+ "hook_send_email_secrets": {
+ "type": "string",
+ "nullable": true
+ },
+ "jwt_exp": {
+ "type": "number",
+ "nullable": true
+ },
+ "mailer_allow_unverified_email_sign_ins": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "mailer_autoconfirm": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "mailer_otp_exp": {
+ "type": "number",
+ "nullable": true
+ },
+ "mailer_otp_length": {
+ "type": "number",
+ "nullable": true
+ },
+ "mailer_secure_email_change_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "mailer_subjects_confirmation": {
+ "type": "string",
+ "nullable": true
+ },
+ "mailer_subjects_email_change": {
+ "type": "string",
+ "nullable": true
+ },
+ "mailer_subjects_invite": {
+ "type": "string",
+ "nullable": true
+ },
+ "mailer_subjects_magic_link": {
+ "type": "string",
+ "nullable": true
+ },
+ "mailer_subjects_reauthentication": {
+ "type": "string",
+ "nullable": true
+ },
+ "mailer_subjects_recovery": {
+ "type": "string",
+ "nullable": true
+ },
+ "mailer_templates_confirmation_content": {
+ "type": "string",
+ "nullable": true
+ },
+ "mailer_templates_email_change_content": {
+ "type": "string",
+ "nullable": true
+ },
+ "mailer_templates_invite_content": {
+ "type": "string",
+ "nullable": true
+ },
+ "mailer_templates_magic_link_content": {
+ "type": "string",
+ "nullable": true
+ },
+ "mailer_templates_reauthentication_content": {
+ "type": "string",
+ "nullable": true
+ },
+ "mailer_templates_recovery_content": {
+ "type": "string",
+ "nullable": true
+ },
+ "mfa_max_enrolled_factors": {
+ "type": "number",
+ "nullable": true
+ },
+ "password_hibp_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "password_min_length": {
+ "type": "number",
+ "nullable": true
+ },
+ "password_required_characters": {
+ "type": "string",
+ "nullable": true
+ },
+ "rate_limit_anonymous_users": {
+ "type": "number",
+ "nullable": true
+ },
+ "rate_limit_email_sent": {
+ "type": "number",
+ "nullable": true
+ },
+ "rate_limit_sms_sent": {
+ "type": "number",
+ "nullable": true
+ },
+ "rate_limit_token_refresh": {
+ "type": "number",
+ "nullable": true
+ },
+ "rate_limit_verify": {
+ "type": "number",
+ "nullable": true
+ },
+ "refresh_token_rotation_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "saml_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "security_captcha_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "security_captcha_provider": {
+ "type": "string",
+ "nullable": true
+ },
+ "security_captcha_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "security_manual_linking_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "security_refresh_token_reuse_interval": {
+ "type": "number",
+ "nullable": true
+ },
+ "security_update_password_require_reauthentication": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "sessions_inactivity_timeout": {
+ "type": "number",
+ "nullable": true
+ },
+ "sessions_single_per_user": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "sessions_tags": {
+ "type": "string",
+ "nullable": true
+ },
+ "sessions_timebox": {
+ "type": "number",
+ "nullable": true
+ },
+ "site_url": {
+ "type": "string",
+ "nullable": true
+ },
+ "sms_autoconfirm": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "sms_max_frequency": {
+ "type": "number",
+ "nullable": true
+ },
+ "sms_messagebird_access_key": {
+ "type": "string",
+ "nullable": true
+ },
+ "sms_messagebird_originator": {
+ "type": "string",
+ "nullable": true
+ },
+ "sms_otp_exp": {
+ "type": "number",
+ "nullable": true
+ },
+ "sms_otp_length": {
+ "type": "number",
+ "nullable": true
+ },
+ "sms_provider": {
+ "type": "string",
+ "nullable": true
+ },
+ "sms_template": {
+ "type": "string",
+ "nullable": true
+ },
+ "sms_test_otp": {
+ "type": "string",
+ "nullable": true
+ },
+ "sms_test_otp_valid_until": {
+ "type": "string",
+ "nullable": true
+ },
+ "sms_textlocal_api_key": {
+ "type": "string",
+ "nullable": true
+ },
+ "sms_textlocal_sender": {
+ "type": "string",
+ "nullable": true
+ },
+ "sms_twilio_account_sid": {
+ "type": "string",
+ "nullable": true
+ },
+ "sms_twilio_auth_token": {
+ "type": "string",
+ "nullable": true
+ },
+ "sms_twilio_content_sid": {
+ "type": "string",
+ "nullable": true
+ },
+ "sms_twilio_message_service_sid": {
+ "type": "string",
+ "nullable": true
+ },
+ "sms_twilio_verify_account_sid": {
+ "type": "string",
+ "nullable": true
+ },
+ "sms_twilio_verify_auth_token": {
+ "type": "string",
+ "nullable": true
+ },
+ "sms_twilio_verify_message_service_sid": {
+ "type": "string",
+ "nullable": true
+ },
+ "sms_vonage_api_key": {
+ "type": "string",
+ "nullable": true
+ },
+ "sms_vonage_api_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "sms_vonage_from": {
+ "type": "string",
+ "nullable": true
+ },
+ "smtp_admin_email": {
+ "type": "string",
+ "nullable": true
+ },
+ "smtp_host": {
+ "type": "string",
+ "nullable": true
+ },
+ "smtp_max_frequency": {
+ "type": "number",
+ "nullable": true
+ },
+ "smtp_pass": {
+ "type": "string",
+ "nullable": true
+ },
+ "smtp_port": {
+ "type": "string",
+ "nullable": true
+ },
+ "smtp_sender_name": {
+ "type": "string",
+ "nullable": true
+ },
+ "smtp_user": {
+ "type": "string",
+ "nullable": true
+ },
+ "uri_allow_list": {
+ "type": "string",
+ "nullable": true
+ }
+ },
+ "required": [
+ "api_max_request_duration",
+ "db_max_pool_size",
+ "disable_signup",
+ "external_anonymous_users_enabled",
+ "external_apple_additional_client_ids",
+ "external_apple_client_id",
+ "external_apple_enabled",
+ "external_apple_secret",
+ "external_azure_client_id",
+ "external_azure_enabled",
+ "external_azure_secret",
+ "external_azure_url",
+ "external_bitbucket_client_id",
+ "external_bitbucket_enabled",
+ "external_bitbucket_secret",
+ "external_discord_client_id",
+ "external_discord_enabled",
+ "external_discord_secret",
+ "external_email_enabled",
+ "external_facebook_client_id",
+ "external_facebook_enabled",
+ "external_facebook_secret",
+ "external_figma_client_id",
+ "external_figma_enabled",
+ "external_figma_secret",
+ "external_github_client_id",
+ "external_github_enabled",
+ "external_github_secret",
+ "external_gitlab_client_id",
+ "external_gitlab_enabled",
+ "external_gitlab_secret",
+ "external_gitlab_url",
+ "external_google_additional_client_ids",
+ "external_google_client_id",
+ "external_google_enabled",
+ "external_google_secret",
+ "external_google_skip_nonce_check",
+ "external_kakao_client_id",
+ "external_kakao_enabled",
+ "external_kakao_secret",
+ "external_keycloak_client_id",
+ "external_keycloak_enabled",
+ "external_keycloak_secret",
+ "external_keycloak_url",
+ "external_linkedin_oidc_client_id",
+ "external_linkedin_oidc_enabled",
+ "external_linkedin_oidc_secret",
+ "external_notion_client_id",
+ "external_notion_enabled",
+ "external_notion_secret",
+ "external_phone_enabled",
+ "external_slack_client_id",
+ "external_slack_enabled",
+ "external_slack_secret",
+ "external_spotify_client_id",
+ "external_spotify_enabled",
+ "external_spotify_secret",
+ "external_twitch_client_id",
+ "external_twitch_enabled",
+ "external_twitch_secret",
+ "external_twitter_client_id",
+ "external_twitter_enabled",
+ "external_twitter_secret",
+ "external_workos_client_id",
+ "external_workos_enabled",
+ "external_workos_secret",
+ "external_workos_url",
+ "external_zoom_client_id",
+ "external_zoom_enabled",
+ "external_zoom_secret",
+ "hook_custom_access_token_enabled",
+ "hook_custom_access_token_uri",
+ "hook_custom_access_token_secrets",
+ "hook_mfa_verification_attempt_enabled",
+ "hook_mfa_verification_attempt_uri",
+ "hook_mfa_verification_attempt_secrets",
+ "hook_password_verification_attempt_enabled",
+ "hook_password_verification_attempt_uri",
+ "hook_password_verification_attempt_secrets",
+ "hook_send_sms_enabled",
+ "hook_send_sms_uri",
+ "hook_send_sms_secrets",
+ "hook_send_email_enabled",
+ "hook_send_email_uri",
+ "hook_send_email_secrets",
+ "jwt_exp",
+ "mailer_allow_unverified_email_sign_ins",
+ "mailer_autoconfirm",
+ "mailer_otp_exp",
+ "mailer_otp_length",
+ "mailer_secure_email_change_enabled",
+ "mailer_subjects_confirmation",
+ "mailer_subjects_email_change",
+ "mailer_subjects_invite",
+ "mailer_subjects_magic_link",
+ "mailer_subjects_reauthentication",
+ "mailer_subjects_recovery",
+ "mailer_templates_confirmation_content",
+ "mailer_templates_email_change_content",
+ "mailer_templates_invite_content",
+ "mailer_templates_magic_link_content",
+ "mailer_templates_reauthentication_content",
+ "mailer_templates_recovery_content",
+ "mfa_max_enrolled_factors",
+ "password_hibp_enabled",
+ "password_min_length",
+ "password_required_characters",
+ "rate_limit_anonymous_users",
+ "rate_limit_email_sent",
+ "rate_limit_sms_sent",
+ "rate_limit_token_refresh",
+ "rate_limit_verify",
+ "refresh_token_rotation_enabled",
+ "saml_enabled",
+ "security_captcha_enabled",
+ "security_captcha_provider",
+ "security_captcha_secret",
+ "security_manual_linking_enabled",
+ "security_refresh_token_reuse_interval",
+ "security_update_password_require_reauthentication",
+ "sessions_inactivity_timeout",
+ "sessions_single_per_user",
+ "sessions_tags",
+ "sessions_timebox",
+ "site_url",
+ "sms_autoconfirm",
+ "sms_max_frequency",
+ "sms_messagebird_access_key",
+ "sms_messagebird_originator",
+ "sms_otp_exp",
+ "sms_otp_length",
+ "sms_provider",
+ "sms_template",
+ "sms_test_otp",
+ "sms_test_otp_valid_until",
+ "sms_textlocal_api_key",
+ "sms_textlocal_sender",
+ "sms_twilio_account_sid",
+ "sms_twilio_auth_token",
+ "sms_twilio_content_sid",
+ "sms_twilio_message_service_sid",
+ "sms_twilio_verify_account_sid",
+ "sms_twilio_verify_auth_token",
+ "sms_twilio_verify_message_service_sid",
+ "sms_vonage_api_key",
+ "sms_vonage_api_secret",
+ "sms_vonage_from",
+ "smtp_admin_email",
+ "smtp_host",
+ "smtp_max_frequency",
+ "smtp_pass",
+ "smtp_port",
+ "smtp_sender_name",
+ "smtp_user",
+ "uri_allow_list"
+ ]
+ }
+ }
+ }
+ },
+ "403": {
+ "description": ""
+ },
+ "500": {
+ "description": "Failed to retrieve project's auth config"
+ }
+ },
+ "tags": [
+ "projects config"
+ ],
+ "security": [
+ {
+ "bearer": []
+ }
+ ]
+ },
+ "patch": {
+ "operationId": "updateV1AuthConfig",
+ "summary": "Updates a project's auth config",
+ "parameters": [
+ {
+ "name": "ref",
+ "required": true,
+ "in": "path",
+ "description": "Project ref",
+ "schema": {
+ "minLength": 20,
+ "maxLength": 20,
+ "type": "string"
+ }
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "site_url": {
+ "type": "string",
+ "pattern": "/^[^,]+$/"
+ },
+ "disable_signup": {
+ "type": "boolean"
+ },
+ "jwt_exp": {
+ "type": "number",
+ "minimum": 0,
+ "maximum": 604800
+ },
+ "smtp_admin_email": {
+ "type": "string"
+ },
+ "smtp_host": {
+ "type": "string"
+ },
+ "smtp_port": {
+ "type": "string"
+ },
+ "smtp_user": {
+ "type": "string"
+ },
+ "smtp_pass": {
+ "type": "string"
+ },
+ "smtp_max_frequency": {
+ "type": "number",
+ "minimum": 0,
+ "maximum": 32767
+ },
+ "smtp_sender_name": {
+ "type": "string"
+ },
+ "mailer_allow_unverified_email_sign_ins": {
+ "type": "boolean"
+ },
+ "mailer_autoconfirm": {
+ "type": "boolean"
+ },
+ "mailer_subjects_invite": {
+ "type": "string"
+ },
+ "mailer_subjects_confirmation": {
+ "type": "string"
+ },
+ "mailer_subjects_recovery": {
+ "type": "string"
+ },
+ "mailer_subjects_email_change": {
+ "type": "string"
+ },
+ "mailer_subjects_magic_link": {
+ "type": "string"
+ },
+ "mailer_subjects_reauthentication": {
+ "type": "string"
+ },
+ "mailer_templates_invite_content": {
+ "type": "string"
+ },
+ "mailer_templates_confirmation_content": {
+ "type": "string"
+ },
+ "mailer_templates_recovery_content": {
+ "type": "string"
+ },
+ "mailer_templates_email_change_content": {
+ "type": "string"
+ },
+ "mailer_templates_magic_link_content": {
+ "type": "string"
+ },
+ "mailer_templates_reauthentication_content": {
+ "type": "string"
+ },
+ "mfa_max_enrolled_factors": {
+ "type": "number",
+ "minimum": 0,
+ "maximum": 2147483647
+ },
+ "uri_allow_list": {
+ "type": "string"
+ },
+ "external_anonymous_users_enabled": {
+ "type": "boolean"
+ },
+ "external_email_enabled": {
+ "type": "boolean"
+ },
+ "external_phone_enabled": {
+ "type": "boolean"
+ },
+ "saml_enabled": {
+ "type": "boolean"
+ },
+ "security_captcha_enabled": {
+ "type": "boolean"
+ },
+ "security_captcha_provider": {
+ "type": "string"
+ },
+ "security_captcha_secret": {
+ "type": "string"
+ },
+ "sessions_timebox": {
+ "type": "number",
+ "minimum": 0
+ },
+ "sessions_inactivity_timeout": {
+ "type": "number",
+ "minimum": 0
+ },
+ "sessions_single_per_user": {
+ "type": "boolean"
+ },
+ "sessions_tags": {
+ "type": "string",
+ "pattern": "/^\\s*([a-z0-9_-]+(\\s*,+\\s*)?)*\\s*$/i"
+ },
+ "rate_limit_anonymous_users": {
+ "type": "number",
+ "minimum": 1,
+ "maximum": 2147483647
+ },
+ "rate_limit_email_sent": {
+ "type": "number",
+ "minimum": 1,
+ "maximum": 2147483647
+ },
+ "rate_limit_sms_sent": {
+ "type": "number",
+ "minimum": 1,
+ "maximum": 2147483647
+ },
+ "rate_limit_verify": {
+ "type": "number",
+ "minimum": 1,
+ "maximum": 2147483647
+ },
+ "rate_limit_token_refresh": {
+ "type": "number",
+ "minimum": 1,
+ "maximum": 2147483647
+ },
+ "mailer_secure_email_change_enabled": {
+ "type": "boolean"
+ },
+ "refresh_token_rotation_enabled": {
+ "type": "boolean"
+ },
+ "password_hibp_enabled": {
+ "type": "boolean"
+ },
+ "password_min_length": {
+ "type": "number",
+ "minimum": 6,
+ "maximum": 32767
+ },
+ "password_required_characters": {
+ "type": "string",
+ "enum": [
+ "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ:0123456789",
+ "abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:0123456789",
+ "abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:0123456789:!@#$%^&*()_+-=[]{};'\\\\:\"|<>?,./`~",
+ ""
+ ]
+ },
+ "security_manual_linking_enabled": {
+ "type": "boolean"
+ },
+ "security_update_password_require_reauthentication": {
+ "type": "boolean"
+ },
+ "security_refresh_token_reuse_interval": {
+ "type": "number",
+ "minimum": 0,
+ "maximum": 2147483647
+ },
+ "mailer_otp_exp": {
+ "type": "number",
+ "minimum": 0,
+ "maximum": 2147483647
+ },
+ "mailer_otp_length": {
+ "type": "number",
+ "minimum": 6,
+ "maximum": 10
+ },
+ "sms_autoconfirm": {
+ "type": "boolean"
+ },
+ "sms_max_frequency": {
+ "type": "number",
+ "minimum": 0,
+ "maximum": 32767
+ },
+ "sms_otp_exp": {
+ "type": "number",
+ "minimum": 0,
+ "maximum": 2147483647
+ },
+ "sms_otp_length": {
+ "type": "number",
+ "minimum": 0,
+ "maximum": 32767
+ },
+ "sms_provider": {
+ "type": "string"
+ },
+ "sms_messagebird_access_key": {
+ "type": "string"
+ },
+ "sms_messagebird_originator": {
+ "type": "string"
+ },
+ "sms_test_otp": {
+ "type": "string",
+ "pattern": "/^([0-9]{1,15}=[0-9]+,?)*$/"
+ },
+ "sms_test_otp_valid_until": {
+ "type": "string"
+ },
+ "sms_textlocal_api_key": {
+ "type": "string"
+ },
+ "sms_textlocal_sender": {
+ "type": "string"
+ },
+ "sms_twilio_account_sid": {
+ "type": "string"
+ },
+ "sms_twilio_auth_token": {
+ "type": "string"
+ },
+ "sms_twilio_content_sid": {
+ "type": "string"
+ },
+ "sms_twilio_message_service_sid": {
+ "type": "string"
+ },
+ "sms_twilio_verify_account_sid": {
+ "type": "string"
+ },
+ "sms_twilio_verify_auth_token": {
+ "type": "string"
+ },
+ "sms_twilio_verify_message_service_sid": {
+ "type": "string"
+ },
+ "sms_vonage_api_key": {
+ "type": "string"
+ },
+ "sms_vonage_api_secret": {
+ "type": "string"
+ },
+ "sms_vonage_from": {
+ "type": "string"
+ },
+ "sms_template": {
+ "type": "string"
+ },
+ "hook_mfa_verification_attempt_enabled": {
+ "type": "boolean"
+ },
+ "hook_mfa_verification_attempt_uri": {
+ "type": "string"
+ },
+ "hook_mfa_verification_attempt_secrets": {
+ "type": "string"
+ },
+ "hook_password_verification_attempt_enabled": {
+ "type": "boolean"
+ },
+ "hook_password_verification_attempt_uri": {
+ "type": "string"
+ },
+ "hook_password_verification_attempt_secrets": {
+ "type": "string"
+ },
+ "hook_custom_access_token_enabled": {
+ "type": "boolean"
+ },
+ "hook_custom_access_token_uri": {
+ "type": "string"
+ },
+ "hook_custom_access_token_secrets": {
+ "type": "string"
+ },
+ "hook_send_sms_enabled": {
+ "type": "boolean"
+ },
+ "hook_send_sms_uri": {
+ "type": "string"
+ },
+ "hook_send_sms_secrets": {
+ "type": "string"
+ },
+ "hook_send_email_enabled": {
+ "type": "boolean"
+ },
+ "hook_send_email_uri": {
+ "type": "string"
+ },
+ "hook_send_email_secrets": {
+ "type": "string"
+ },
+ "external_apple_enabled": {
+ "type": "boolean"
+ },
+ "external_apple_client_id": {
+ "type": "string"
+ },
+ "external_apple_secret": {
+ "type": "string"
+ },
+ "external_apple_additional_client_ids": {
+ "type": "string"
+ },
+ "external_azure_enabled": {
+ "type": "boolean"
+ },
+ "external_azure_client_id": {
+ "type": "string"
+ },
+ "external_azure_secret": {
+ "type": "string"
+ },
+ "external_azure_url": {
+ "type": "string"
+ },
+ "external_bitbucket_enabled": {
+ "type": "boolean"
+ },
+ "external_bitbucket_client_id": {
+ "type": "string"
+ },
+ "external_bitbucket_secret": {
+ "type": "string"
+ },
+ "external_discord_enabled": {
+ "type": "boolean"
+ },
+ "external_discord_client_id": {
+ "type": "string"
+ },
+ "external_discord_secret": {
+ "type": "string"
+ },
+ "external_facebook_enabled": {
+ "type": "boolean"
+ },
+ "external_facebook_client_id": {
+ "type": "string"
+ },
+ "external_facebook_secret": {
+ "type": "string"
+ },
+ "external_figma_enabled": {
+ "type": "boolean"
+ },
+ "external_figma_client_id": {
+ "type": "string"
+ },
+ "external_figma_secret": {
+ "type": "string"
+ },
+ "external_github_enabled": {
+ "type": "boolean"
+ },
+ "external_github_client_id": {
+ "type": "string"
+ },
+ "external_github_secret": {
+ "type": "string"
+ },
+ "external_gitlab_enabled": {
+ "type": "boolean"
+ },
+ "external_gitlab_client_id": {
+ "type": "string"
+ },
+ "external_gitlab_secret": {
+ "type": "string"
+ },
+ "external_gitlab_url": {
+ "type": "string"
+ },
+ "external_google_enabled": {
+ "type": "boolean"
+ },
+ "external_google_client_id": {
+ "type": "string"
+ },
+ "external_google_secret": {
+ "type": "string"
+ },
+ "external_google_additional_client_ids": {
+ "type": "string"
+ },
+ "external_google_skip_nonce_check": {
+ "type": "boolean"
+ },
+ "external_kakao_enabled": {
+ "type": "boolean"
+ },
+ "external_kakao_client_id": {
+ "type": "string"
+ },
+ "external_kakao_secret": {
+ "type": "string"
+ },
+ "external_keycloak_enabled": {
+ "type": "boolean"
+ },
+ "external_keycloak_client_id": {
+ "type": "string"
+ },
+ "external_keycloak_secret": {
+ "type": "string"
+ },
+ "external_keycloak_url": {
+ "type": "string"
+ },
+ "external_linkedin_oidc_enabled": {
+ "type": "boolean"
+ },
+ "external_linkedin_oidc_client_id": {
+ "type": "string"
+ },
+ "external_linkedin_oidc_secret": {
+ "type": "string"
+ },
+ "external_notion_enabled": {
+ "type": "boolean"
+ },
+ "external_notion_client_id": {
+ "type": "string"
+ },
+ "external_notion_secret": {
+ "type": "string"
+ },
+ "external_slack_enabled": {
+ "type": "boolean"
+ },
+ "external_slack_client_id": {
+ "type": "string"
+ },
+ "external_slack_secret": {
+ "type": "string"
+ },
+ "external_spotify_enabled": {
+ "type": "boolean"
+ },
+ "external_spotify_client_id": {
+ "type": "string"
+ },
+ "external_spotify_secret": {
+ "type": "string"
+ },
+ "external_twitch_enabled": {
+ "type": "boolean"
+ },
+ "external_twitch_client_id": {
+ "type": "string"
+ },
+ "external_twitch_secret": {
+ "type": "string"
+ },
+ "external_twitter_enabled": {
+ "type": "boolean"
+ },
+ "external_twitter_client_id": {
+ "type": "string"
+ },
+ "external_twitter_secret": {
+ "type": "string"
+ },
+ "external_workos_enabled": {
+ "type": "boolean"
+ },
+ "external_workos_client_id": {
+ "type": "string"
+ },
+ "external_workos_secret": {
+ "type": "string"
+ },
+ "external_workos_url": {
+ "type": "string"
+ },
+ "external_zoom_enabled": {
+ "type": "boolean"
+ },
+ "external_zoom_client_id": {
+ "type": "string"
+ },
+ "external_zoom_secret": {
+ "type": "string"
+ },
+ "db_max_pool_size": {
+ "type": "number"
+ },
+ "api_max_request_duration": {
+ "type": "number"
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "api_max_request_duration": {
+ "type": "number",
+ "nullable": true
+ },
+ "db_max_pool_size": {
+ "type": "number",
+ "nullable": true
+ },
+ "disable_signup": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_anonymous_users_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_apple_additional_client_ids": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_apple_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_apple_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_apple_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_azure_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_azure_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_azure_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_azure_url": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_bitbucket_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_bitbucket_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_bitbucket_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_discord_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_discord_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_discord_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_email_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_facebook_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_facebook_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_facebook_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_figma_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_figma_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_figma_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_github_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_github_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_github_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_gitlab_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_gitlab_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_gitlab_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_gitlab_url": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_google_additional_client_ids": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_google_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_google_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_google_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_google_skip_nonce_check": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_kakao_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_kakao_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_kakao_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_keycloak_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_keycloak_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_keycloak_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_keycloak_url": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_linkedin_oidc_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_linkedin_oidc_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_linkedin_oidc_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_notion_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_notion_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_notion_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_phone_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_slack_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_slack_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_slack_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_spotify_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_spotify_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_spotify_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_twitch_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_twitch_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_twitch_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_twitter_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_twitter_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_twitter_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_workos_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_workos_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_workos_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_workos_url": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_zoom_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_zoom_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_zoom_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "hook_custom_access_token_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "hook_custom_access_token_uri": {
+ "type": "string",
+ "nullable": true
+ },
+ "hook_custom_access_token_secrets": {
+ "type": "string",
+ "nullable": true
+ },
+ "hook_mfa_verification_attempt_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "hook_mfa_verification_attempt_uri": {
+ "type": "string",
+ "nullable": true
+ },
+ "hook_mfa_verification_attempt_secrets": {
+ "type": "string",
+ "nullable": true
+ },
+ "hook_password_verification_attempt_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "hook_password_verification_attempt_uri": {
+ "type": "string",
+ "nullable": true
+ },
+ "hook_password_verification_attempt_secrets": {
+ "type": "string",
+ "nullable": true
+ },
+ "hook_send_sms_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "hook_send_sms_uri": {
+ "type": "string",
+ "nullable": true
+ },
+ "hook_send_sms_secrets": {
+ "type": "string",
+ "nullable": true
+ },
+ "hook_send_email_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "hook_send_email_uri": {
+ "type": "string",
+ "nullable": true
+ },
+ "hook_send_email_secrets": {
+ "type": "string",
+ "nullable": true
+ },
+ "jwt_exp": {
+ "type": "number",
+ "nullable": true
+ },
+ "mailer_allow_unverified_email_sign_ins": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "mailer_autoconfirm": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "mailer_otp_exp": {
+ "type": "number",
+ "nullable": true
+ },
+ "mailer_otp_length": {
+ "type": "number",
+ "nullable": true
+ },
+ "mailer_secure_email_change_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "mailer_subjects_confirmation": {
+ "type": "string",
+ "nullable": true
+ },
+ "mailer_subjects_email_change": {
+ "type": "string",
+ "nullable": true
+ },
+ "mailer_subjects_invite": {
+ "type": "string",
+ "nullable": true
+ },
+ "mailer_subjects_magic_link": {
+ "type": "string",
+ "nullable": true
+ },
+ "mailer_subjects_reauthentication": {
+ "type": "string",
+ "nullable": true
+ },
+ "mailer_subjects_recovery": {
+ "type": "string",
+ "nullable": true
+ },
+ "mailer_templates_confirmation_content": {
+ "type": "string",
+ "nullable": true
+ },
+ "mailer_templates_email_change_content": {
+ "type": "string",
+ "nullable": true
+ },
+ "mailer_templates_invite_content": {
+ "type": "string",
+ "nullable": true
+ },
+ "mailer_templates_magic_link_content": {
+ "type": "string",
+ "nullable": true
+ },
+ "mailer_templates_reauthentication_content": {
+ "type": "string",
+ "nullable": true
+ },
+ "mailer_templates_recovery_content": {
+ "type": "string",
+ "nullable": true
+ },
+ "mfa_max_enrolled_factors": {
+ "type": "number",
+ "nullable": true
+ },
+ "password_hibp_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "password_min_length": {
+ "type": "number",
+ "nullable": true
+ },
+ "password_required_characters": {
+ "type": "string",
+ "nullable": true
+ },
+ "rate_limit_anonymous_users": {
+ "type": "number",
+ "nullable": true
+ },
+ "rate_limit_email_sent": {
+ "type": "number",
+ "nullable": true
+ },
+ "rate_limit_sms_sent": {
+ "type": "number",
+ "nullable": true
+ },
+ "rate_limit_token_refresh": {
+ "type": "number",
+ "nullable": true
+ },
+ "rate_limit_verify": {
+ "type": "number",
+ "nullable": true
+ },
+ "refresh_token_rotation_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "saml_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "security_captcha_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "security_captcha_provider": {
+ "type": "string",
+ "nullable": true
+ },
+ "security_captcha_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "security_manual_linking_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "security_refresh_token_reuse_interval": {
+ "type": "number",
+ "nullable": true
+ },
+ "security_update_password_require_reauthentication": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "sessions_inactivity_timeout": {
+ "type": "number",
+ "nullable": true
+ },
+ "sessions_single_per_user": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "sessions_tags": {
+ "type": "string",
+ "nullable": true
+ },
+ "sessions_timebox": {
+ "type": "number",
+ "nullable": true
+ },
+ "site_url": {
+ "type": "string",
+ "nullable": true
+ },
+ "sms_autoconfirm": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "sms_max_frequency": {
+ "type": "number",
+ "nullable": true
+ },
+ "sms_messagebird_access_key": {
+ "type": "string",
+ "nullable": true
+ },
+ "sms_messagebird_originator": {
+ "type": "string",
+ "nullable": true
+ },
+ "sms_otp_exp": {
+ "type": "number",
+ "nullable": true
+ },
+ "sms_otp_length": {
+ "type": "number",
+ "nullable": true
+ },
+ "sms_provider": {
+ "type": "string",
+ "nullable": true
+ },
+ "sms_template": {
+ "type": "string",
+ "nullable": true
+ },
+ "sms_test_otp": {
+ "type": "string",
+ "nullable": true
+ },
+ "sms_test_otp_valid_until": {
+ "type": "string",
+ "nullable": true
+ },
+ "sms_textlocal_api_key": {
+ "type": "string",
+ "nullable": true
+ },
+ "sms_textlocal_sender": {
+ "type": "string",
+ "nullable": true
+ },
+ "sms_twilio_account_sid": {
+ "type": "string",
+ "nullable": true
+ },
+ "sms_twilio_auth_token": {
+ "type": "string",
+ "nullable": true
+ },
+ "sms_twilio_content_sid": {
+ "type": "string",
+ "nullable": true
+ },
+ "sms_twilio_message_service_sid": {
+ "type": "string",
+ "nullable": true
+ },
+ "sms_twilio_verify_account_sid": {
+ "type": "string",
+ "nullable": true
+ },
+ "sms_twilio_verify_auth_token": {
+ "type": "string",
+ "nullable": true
+ },
+ "sms_twilio_verify_message_service_sid": {
+ "type": "string",
+ "nullable": true
+ },
+ "sms_vonage_api_key": {
+ "type": "string",
+ "nullable": true
+ },
+ "sms_vonage_api_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "sms_vonage_from": {
+ "type": "string",
+ "nullable": true
+ },
+ "smtp_admin_email": {
+ "type": "string",
+ "nullable": true
+ },
+ "smtp_host": {
+ "type": "string",
+ "nullable": true
+ },
+ "smtp_max_frequency": {
+ "type": "number",
+ "nullable": true
+ },
+ "smtp_pass": {
+ "type": "string",
+ "nullable": true
+ },
+ "smtp_port": {
+ "type": "string",
+ "nullable": true
},
"smtp_sender_name": {
+ "type": "string",
+ "nullable": true
+ },
+ "smtp_user": {
+ "type": "string",
+ "nullable": true
+ },
+ "uri_allow_list": {
+ "type": "string",
+ "nullable": true
+ }
+ },
+ "required": [
+ "api_max_request_duration",
+ "db_max_pool_size",
+ "disable_signup",
+ "external_anonymous_users_enabled",
+ "external_apple_additional_client_ids",
+ "external_apple_client_id",
+ "external_apple_enabled",
+ "external_apple_secret",
+ "external_azure_client_id",
+ "external_azure_enabled",
+ "external_azure_secret",
+ "external_azure_url",
+ "external_bitbucket_client_id",
+ "external_bitbucket_enabled",
+ "external_bitbucket_secret",
+ "external_discord_client_id",
+ "external_discord_enabled",
+ "external_discord_secret",
+ "external_email_enabled",
+ "external_facebook_client_id",
+ "external_facebook_enabled",
+ "external_facebook_secret",
+ "external_figma_client_id",
+ "external_figma_enabled",
+ "external_figma_secret",
+ "external_github_client_id",
+ "external_github_enabled",
+ "external_github_secret",
+ "external_gitlab_client_id",
+ "external_gitlab_enabled",
+ "external_gitlab_secret",
+ "external_gitlab_url",
+ "external_google_additional_client_ids",
+ "external_google_client_id",
+ "external_google_enabled",
+ "external_google_secret",
+ "external_google_skip_nonce_check",
+ "external_kakao_client_id",
+ "external_kakao_enabled",
+ "external_kakao_secret",
+ "external_keycloak_client_id",
+ "external_keycloak_enabled",
+ "external_keycloak_secret",
+ "external_keycloak_url",
+ "external_linkedin_oidc_client_id",
+ "external_linkedin_oidc_enabled",
+ "external_linkedin_oidc_secret",
+ "external_notion_client_id",
+ "external_notion_enabled",
+ "external_notion_secret",
+ "external_phone_enabled",
+ "external_slack_client_id",
+ "external_slack_enabled",
+ "external_slack_secret",
+ "external_spotify_client_id",
+ "external_spotify_enabled",
+ "external_spotify_secret",
+ "external_twitch_client_id",
+ "external_twitch_enabled",
+ "external_twitch_secret",
+ "external_twitter_client_id",
+ "external_twitter_enabled",
+ "external_twitter_secret",
+ "external_workos_client_id",
+ "external_workos_enabled",
+ "external_workos_secret",
+ "external_workos_url",
+ "external_zoom_client_id",
+ "external_zoom_enabled",
+ "external_zoom_secret",
+ "hook_custom_access_token_enabled",
+ "hook_custom_access_token_uri",
+ "hook_custom_access_token_secrets",
+ "hook_mfa_verification_attempt_enabled",
+ "hook_mfa_verification_attempt_uri",
+ "hook_mfa_verification_attempt_secrets",
+ "hook_password_verification_attempt_enabled",
+ "hook_password_verification_attempt_uri",
+ "hook_password_verification_attempt_secrets",
+ "hook_send_sms_enabled",
+ "hook_send_sms_uri",
+ "hook_send_sms_secrets",
+ "hook_send_email_enabled",
+ "hook_send_email_uri",
+ "hook_send_email_secrets",
+ "jwt_exp",
+ "mailer_allow_unverified_email_sign_ins",
+ "mailer_autoconfirm",
+ "mailer_otp_exp",
+ "mailer_otp_length",
+ "mailer_secure_email_change_enabled",
+ "mailer_subjects_confirmation",
+ "mailer_subjects_email_change",
+ "mailer_subjects_invite",
+ "mailer_subjects_magic_link",
+ "mailer_subjects_reauthentication",
+ "mailer_subjects_recovery",
+ "mailer_templates_confirmation_content",
+ "mailer_templates_email_change_content",
+ "mailer_templates_invite_content",
+ "mailer_templates_magic_link_content",
+ "mailer_templates_reauthentication_content",
+ "mailer_templates_recovery_content",
+ "mfa_max_enrolled_factors",
+ "password_hibp_enabled",
+ "password_min_length",
+ "password_required_characters",
+ "rate_limit_anonymous_users",
+ "rate_limit_email_sent",
+ "rate_limit_sms_sent",
+ "rate_limit_token_refresh",
+ "rate_limit_verify",
+ "refresh_token_rotation_enabled",
+ "saml_enabled",
+ "security_captcha_enabled",
+ "security_captcha_provider",
+ "security_captcha_secret",
+ "security_manual_linking_enabled",
+ "security_refresh_token_reuse_interval",
+ "security_update_password_require_reauthentication",
+ "sessions_inactivity_timeout",
+ "sessions_single_per_user",
+ "sessions_tags",
+ "sessions_timebox",
+ "site_url",
+ "sms_autoconfirm",
+ "sms_max_frequency",
+ "sms_messagebird_access_key",
+ "sms_messagebird_originator",
+ "sms_otp_exp",
+ "sms_otp_length",
+ "sms_provider",
+ "sms_template",
+ "sms_test_otp",
+ "sms_test_otp_valid_until",
+ "sms_textlocal_api_key",
+ "sms_textlocal_sender",
+ "sms_twilio_account_sid",
+ "sms_twilio_auth_token",
+ "sms_twilio_content_sid",
+ "sms_twilio_message_service_sid",
+ "sms_twilio_verify_account_sid",
+ "sms_twilio_verify_auth_token",
+ "sms_twilio_verify_message_service_sid",
+ "sms_vonage_api_key",
+ "sms_vonage_api_secret",
+ "sms_vonage_from",
+ "smtp_admin_email",
+ "smtp_host",
+ "smtp_max_frequency",
+ "smtp_pass",
+ "smtp_port",
+ "smtp_sender_name",
+ "smtp_user",
+ "uri_allow_list"
+ ]
+ }
+ }
+ }
+ },
+ "403": {
+ "description": ""
+ },
+ "500": {
+ "description": "Failed to update project's auth config"
+ }
+ },
+ "tags": [
+ "projects config"
+ ],
+ "security": [
+ {
+ "bearer": []
+ }
+ ]
+ }
+ },
+ "/v1/projects/{ref}/config/auth/third-party-auth": {
+ "post": {
+ "operationId": "createTPAForProject",
+ "summary": "Creates a new third-party auth integration",
+ "parameters": [
+ {
+ "name": "ref",
+ "required": true,
+ "in": "path",
+ "description": "Project ref",
+ "schema": {
+ "minLength": 20,
+ "maxLength": 20,
+ "type": "string"
+ }
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "oidc_issuer_url": {
+ "type": "string"
+ },
+ "jwks_url": {
+ "type": "string"
+ },
+ "custom_jwks": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "201": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ },
+ "oidc_issuer_url": {
+ "type": "string",
+ "nullable": true
+ },
+ "jwks_url": {
+ "type": "string",
+ "nullable": true
+ },
+ "custom_jwks": {
+ "type": "object",
+ "nullable": true
+ },
+ "resolved_jwks": {
+ "type": "object",
+ "nullable": true
+ },
+ "inserted_at": {
+ "type": "string"
+ },
+ "updated_at": {
+ "type": "string"
+ },
+ "resolved_at": {
+ "type": "string",
+ "nullable": true
+ }
+ },
+ "required": [
+ "id",
+ "type",
+ "inserted_at",
+ "updated_at"
+ ]
+ }
+ }
+ }
+ },
+ "403": {
+ "description": ""
+ }
+ },
+ "tags": [
+ "third-party-auth (alpha)"
+ ],
+ "security": [
+ {
+ "bearer": []
+ }
+ ]
+ },
+ "get": {
+ "operationId": "listTPAForProject",
+ "summary": "Lists all third-party auth integrations",
+ "parameters": [
+ {
+ "name": "ref",
+ "required": true,
+ "in": "path",
+ "description": "Project ref",
+ "schema": {
+ "minLength": 20,
+ "maxLength": 20,
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ },
+ "oidc_issuer_url": {
+ "type": "string",
+ "nullable": true
+ },
+ "jwks_url": {
+ "type": "string",
+ "nullable": true
+ },
+ "custom_jwks": {
+ "type": "object",
+ "nullable": true
+ },
+ "resolved_jwks": {
+ "type": "object",
+ "nullable": true
+ },
+ "inserted_at": {
+ "type": "string"
+ },
+ "updated_at": {
+ "type": "string"
+ },
+ "resolved_at": {
+ "type": "string",
+ "nullable": true
+ }
+ },
+ "required": [
+ "id",
+ "type",
+ "inserted_at",
+ "updated_at"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "403": {
+ "description": ""
+ }
+ },
+ "tags": [
+ "third-party-auth (alpha)"
+ ],
+ "security": [
+ {
+ "bearer": []
+ }
+ ]
+ }
+ },
+ "/v1/projects/{ref}/config/auth/third-party-auth/{tpa_id}": {
+ "delete": {
+ "operationId": "deleteTPAForProject",
+ "summary": "Removes a third-party auth integration",
+ "parameters": [
+ {
+ "name": "ref",
+ "required": true,
+ "in": "path",
+ "description": "Project ref",
+ "schema": {
+ "minLength": 20,
+ "maxLength": 20,
+ "type": "string"
+ }
+ },
+ {
+ "name": "tpa_id",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ },
+ "oidc_issuer_url": {
+ "type": "string",
+ "nullable": true
+ },
+ "jwks_url": {
+ "type": "string",
+ "nullable": true
+ },
+ "custom_jwks": {
+ "type": "object",
+ "nullable": true
+ },
+ "resolved_jwks": {
+ "type": "object",
+ "nullable": true
+ },
+ "inserted_at": {
+ "type": "string"
+ },
+ "updated_at": {
+ "type": "string"
+ },
+ "resolved_at": {
+ "type": "string",
+ "nullable": true
+ }
+ },
+ "required": [
+ "id",
+ "type",
+ "inserted_at",
+ "updated_at"
+ ]
+ }
+ }
+ }
+ },
+ "403": {
+ "description": ""
+ }
+ },
+ "tags": [
+ "third-party-auth (alpha)"
+ ],
+ "security": [
+ {
+ "bearer": []
+ }
+ ]
+ },
+ "get": {
+ "operationId": "getTPAForProject",
+ "summary": "Get a third-party integration",
+ "parameters": [
+ {
+ "name": "ref",
+ "required": true,
+ "in": "path",
+ "description": "Project ref",
+ "schema": {
+ "minLength": 20,
+ "maxLength": 20,
+ "type": "string"
+ }
+ },
+ {
+ "name": "tpa_id",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ },
+ "oidc_issuer_url": {
+ "type": "string",
+ "nullable": true
+ },
+ "jwks_url": {
+ "type": "string",
+ "nullable": true
+ },
+ "custom_jwks": {
+ "type": "object",
+ "nullable": true
+ },
+ "resolved_jwks": {
+ "type": "object",
+ "nullable": true
+ },
+ "inserted_at": {
+ "type": "string"
+ },
+ "updated_at": {
+ "type": "string"
+ },
+ "resolved_at": {
+ "type": "string",
+ "nullable": true
+ }
+ },
+ "required": [
+ "id",
+ "type",
+ "inserted_at",
+ "updated_at"
+ ]
+ }
+ }
+ }
+ },
+ "403": {
+ "description": ""
+ }
+ },
+ "tags": [
+ "third-party-auth (alpha)"
+ ],
+ "security": [
+ {
+ "bearer": []
+ }
+ ]
+ }
+ },
+ "/v1/projects/{ref}/database/query": {
+ "post": {
+ "operationId": "v1RunQuery",
+ "summary": "Run sql query",
+ "parameters": [
+ {
+ "name": "ref",
+ "required": true,
+ "in": "path",
+ "description": "Project ref",
+ "schema": {
+ "minLength": 20,
+ "maxLength": 20,
+ "type": "string"
+ }
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "query": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "query"
+ ]
+ }
+ }
+ }
+ },
+ "responses": {
+ "201": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ },
+ "403": {
+ "description": ""
+ },
+ "500": {
+ "description": "Failed to run sql query"
+ }
+ },
+ "tags": [
+ "projects (beta)"
+ ],
+ "security": [
+ {
+ "bearer": []
+ }
+ ]
+ }
+ },
+ "/v1/projects/{ref}/database/webhooks/enable": {
+ "post": {
+ "operationId": "v1EnableDatabaseWebhooks",
+ "summary": "Enables Database Webhooks on the project",
+ "parameters": [
+ {
+ "name": "ref",
+ "required": true,
+ "in": "path",
+ "description": "Project ref",
+ "schema": {
+ "minLength": 20,
+ "maxLength": 20,
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "201": {
+ "description": ""
+ },
+ "403": {
+ "description": ""
+ },
+ "500": {
+ "description": "Failed to enable Database Webhooks on the project"
+ }
+ },
+ "tags": [
+ "projects (beta)"
+ ],
+ "security": [
+ {
+ "bearer": []
+ }
+ ]
+ }
+ },
+ "/v1/projects/{ref}/functions": {
+ "post": {
+ "operationId": "createFunction",
+ "summary": "Create a function",
+ "description": "Creates a function and adds it to the specified project.",
+ "parameters": [
+ {
+ "name": "ref",
+ "required": true,
+ "in": "path",
+ "description": "Project ref",
+ "schema": {
+ "minLength": 20,
+ "maxLength": 20,
+ "type": "string"
+ }
+ },
+ {
+ "name": "slug",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "pattern": "/^[A-Za-z0-9_-]+$/",
+ "type": "string"
+ }
+ },
+ {
+ "name": "name",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "verify_jwt",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "type": "boolean"
+ }
+ },
+ {
+ "name": "import_map",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "type": "boolean"
+ }
+ },
+ {
+ "name": "entrypoint_path",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "import_map_path",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "slug": {
+ "type": "string",
+ "pattern": "/^[A-Za-z0-9_-]+$/"
+ },
+ "name": {
+ "type": "string"
+ },
+ "body": {
+ "type": "string"
+ },
+ "verify_jwt": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "slug",
+ "name",
+ "body"
+ ]
+ }
+ },
+ "application/vnd.denoland.eszip": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "slug": {
+ "type": "string",
+ "pattern": "/^[A-Za-z0-9_-]+$/"
+ },
+ "name": {
+ "type": "string"
+ },
+ "body": {
+ "type": "string"
+ },
+ "verify_jwt": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "slug",
+ "name",
+ "body"
+ ]
+ }
+ }
+ }
+ },
+ "responses": {
+ "201": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "slug": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "status": {
+ "enum": [
+ "ACTIVE",
+ "REMOVED",
+ "THROTTLED"
+ ],
+ "type": "string"
+ },
+ "version": {
+ "type": "number"
+ },
+ "created_at": {
+ "type": "number"
+ },
+ "updated_at": {
+ "type": "number"
+ },
+ "verify_jwt": {
+ "type": "boolean"
+ },
+ "import_map": {
+ "type": "boolean"
+ },
+ "entrypoint_path": {
+ "type": "string"
+ },
+ "import_map_path": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "slug",
+ "name",
+ "status",
+ "version",
+ "created_at",
+ "updated_at"
+ ]
+ }
+ }
+ }
+ },
+ "403": {
+ "description": ""
+ },
+ "500": {
+ "description": "Failed to create project's function"
+ }
+ },
+ "tags": [
+ "functions"
+ ],
+ "security": [
+ {
+ "bearer": []
+ }
+ ]
+ },
+ "get": {
+ "operationId": "getFunctions",
+ "summary": "List all functions",
+ "description": "Returns all functions you've previously added to the specified project.",
+ "parameters": [
+ {
+ "name": "ref",
+ "required": true,
+ "in": "path",
+ "description": "Project ref",
+ "schema": {
+ "minLength": 20,
+ "maxLength": 20,
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "slug": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "status": {
+ "enum": [
+ "ACTIVE",
+ "REMOVED",
+ "THROTTLED"
+ ],
+ "type": "string"
+ },
+ "version": {
+ "type": "number"
+ },
+ "created_at": {
+ "type": "number"
+ },
+ "updated_at": {
+ "type": "number"
+ },
+ "verify_jwt": {
+ "type": "boolean"
+ },
+ "import_map": {
+ "type": "boolean"
+ },
+ "entrypoint_path": {
+ "type": "string"
+ },
+ "import_map_path": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "slug",
+ "name",
+ "status",
+ "version",
+ "created_at",
+ "updated_at"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "403": {
+ "description": ""
+ },
+ "500": {
+ "description": "Failed to retrieve project's functions"
+ }
+ },
+ "tags": [
+ "functions"
+ ],
+ "security": [
+ {
+ "bearer": []
+ }
+ ]
+ }
+ },
+ "/v1/projects/{ref}/functions/{function_slug}": {
+ "get": {
+ "operationId": "getFunction",
+ "summary": "Retrieve a function",
+ "description": "Retrieves a function with the specified slug and project.",
+ "parameters": [
+ {
+ "name": "ref",
+ "required": true,
+ "in": "path",
+ "description": "Project ref",
+ "schema": {
+ "minLength": 20,
+ "maxLength": 20,
+ "type": "string"
+ }
+ },
+ {
+ "name": "function_slug",
+ "required": true,
+ "in": "path",
+ "description": "Function slug",
+ "schema": {
+ "pattern": "/^[A-Za-z0-9_-]+$/",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "slug": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "status": {
+ "enum": [
+ "ACTIVE",
+ "REMOVED",
+ "THROTTLED"
+ ],
+ "type": "string"
+ },
+ "version": {
+ "type": "number"
+ },
+ "created_at": {
+ "type": "number"
+ },
+ "updated_at": {
+ "type": "number"
+ },
+ "verify_jwt": {
+ "type": "boolean"
+ },
+ "import_map": {
+ "type": "boolean"
+ },
+ "entrypoint_path": {
+ "type": "string"
+ },
+ "import_map_path": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "slug",
+ "name",
+ "status",
+ "version",
+ "created_at",
+ "updated_at"
+ ]
+ }
+ }
+ }
+ },
+ "403": {
+ "description": ""
+ },
+ "500": {
+ "description": "Failed to retrieve function with given slug"
+ }
+ },
+ "tags": [
+ "functions"
+ ],
+ "security": [
+ {
+ "bearer": []
+ }
+ ]
+ },
+ "patch": {
+ "operationId": "updateFunction",
+ "summary": "Update a function",
+ "description": "Updates a function with the specified slug and project.",
+ "parameters": [
+ {
+ "name": "ref",
+ "required": true,
+ "in": "path",
+ "description": "Project ref",
+ "schema": {
+ "minLength": 20,
+ "maxLength": 20,
+ "type": "string"
+ }
+ },
+ {
+ "name": "function_slug",
+ "required": true,
+ "in": "path",
+ "description": "Function slug",
+ "schema": {
+ "pattern": "/^[A-Za-z0-9_-]+$/",
+ "type": "string"
+ }
+ },
+ {
+ "name": "slug",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "pattern": "/^[A-Za-z0-9_-]+$/",
+ "type": "string"
+ }
+ },
+ {
+ "name": "name",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "verify_jwt",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "type": "boolean"
+ }
+ },
+ {
+ "name": "import_map",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "type": "boolean"
+ }
+ },
+ {
+ "name": "entrypoint_path",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "import_map_path",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "body": {
+ "type": "string"
+ },
+ "verify_jwt": {
+ "type": "boolean"
+ }
+ }
+ }
+ },
+ "application/vnd.denoland.eszip": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "body": {
+ "type": "string"
+ },
+ "verify_jwt": {
+ "type": "boolean"
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "slug": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "status": {
+ "enum": [
+ "ACTIVE",
+ "REMOVED",
+ "THROTTLED"
+ ],
+ "type": "string"
+ },
+ "version": {
+ "type": "number"
+ },
+ "created_at": {
+ "type": "number"
+ },
+ "updated_at": {
+ "type": "number"
+ },
+ "verify_jwt": {
+ "type": "boolean"
+ },
+ "import_map": {
+ "type": "boolean"
+ },
+ "entrypoint_path": {
+ "type": "string"
+ },
+ "import_map_path": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "slug",
+ "name",
+ "status",
+ "version",
+ "created_at",
+ "updated_at"
+ ]
+ }
+ }
+ }
+ },
+ "403": {
+ "description": ""
+ },
+ "500": {
+ "description": "Failed to update function with given slug"
+ }
+ },
+ "tags": [
+ "functions"
+ ],
+ "security": [
+ {
+ "bearer": []
+ }
+ ]
+ },
+ "delete": {
+ "operationId": "deleteFunction",
+ "summary": "Delete a function",
+ "description": "Deletes a function with the specified slug from the specified project.",
+ "parameters": [
+ {
+ "name": "ref",
+ "required": true,
+ "in": "path",
+ "description": "Project ref",
+ "schema": {
+ "minLength": 20,
+ "maxLength": 20,
+ "type": "string"
+ }
+ },
+ {
+ "name": "function_slug",
+ "required": true,
+ "in": "path",
+ "description": "Function slug",
+ "schema": {
+ "pattern": "/^[A-Za-z0-9_-]+$/",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": ""
+ },
+ "403": {
+ "description": ""
+ },
+ "500": {
+ "description": "Failed to delete function with given slug"
+ }
+ },
+ "tags": [
+ "functions"
+ ],
+ "security": [
+ {
+ "bearer": []
+ }
+ ]
+ }
+ },
+ "/v1/projects/{ref}/functions/{function_slug}/body": {
+ "get": {
+ "operationId": "getFunctionBody",
+ "summary": "Retrieve a function body",
+ "description": "Retrieves a function body for the specified slug and project.",
+ "parameters": [
+ {
+ "name": "ref",
+ "required": true,
+ "in": "path",
+ "description": "Project ref",
+ "schema": {
+ "minLength": 20,
+ "maxLength": 20,
+ "type": "string"
+ }
+ },
+ {
+ "name": "function_slug",
+ "required": true,
+ "in": "path",
+ "description": "Function slug",
+ "schema": {
+ "pattern": "/^[A-Za-z0-9_-]+$/",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": ""
+ },
+ "403": {
+ "description": ""
+ },
+ "500": {
+ "description": "Failed to retrieve function body with given slug"
+ }
+ },
+ "tags": [
+ "functions"
+ ],
+ "security": [
+ {
+ "bearer": []
+ }
+ ]
+ }
+ },
+ "/v1/projects/{ref}/storage/buckets": {
+ "get": {
+ "operationId": "getBuckets",
+ "summary": "Lists all buckets",
+ "parameters": [
+ {
+ "name": "ref",
+ "required": true,
+ "in": "path",
+ "description": "Project ref",
+ "schema": {
+ "minLength": 20,
+ "maxLength": 20,
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "owner": {
+ "type": "string"
+ },
+ "created_at": {
+ "type": "string"
+ },
+ "updated_at": {
+ "type": "string"
+ },
+ "public": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "owner",
+ "created_at",
+ "updated_at",
+ "public"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "403": {
+ "description": ""
+ },
+ "500": {
+ "description": "Failed to get list of buckets"
+ }
+ },
+ "tags": [
+ "storage"
+ ],
+ "security": [
+ {
+ "bearer": []
+ }
+ ]
+ }
+ },
+ "/v1/projects/{ref}/config/auth/sso/providers": {
+ "post": {
+ "operationId": "createProviderForProject",
+ "summary": "Creates a new SSO provider",
+ "parameters": [
+ {
+ "name": "ref",
+ "required": true,
+ "in": "path",
+ "description": "Project ref",
+ "schema": {
+ "minLength": 20,
+ "maxLength": 20,
+ "type": "string"
+ }
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "saml"
+ ],
+ "description": "What type of provider will be created"
+ },
+ "metadata_xml": {
+ "type": "string"
+ },
+ "metadata_url": {
+ "type": "string"
+ },
+ "domains": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "attribute_mapping": {
+ "type": "object",
+ "properties": {
+ "keys": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "object",
+ "properties": {
+ "default": {
+ "oneOf": [
+ {
+ "type": "object"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "name": {
+ "type": "string"
+ },
+ "names": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ "required": [
+ "keys"
+ ]
+ }
+ },
+ "required": [
+ "type"
+ ]
+ }
+ }
+ }
+ },
+ "responses": {
+ "201": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "saml": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "entity_id": {
+ "type": "string"
+ },
+ "metadata_url": {
+ "type": "string"
+ },
+ "metadata_xml": {
+ "type": "string"
+ },
+ "attribute_mapping": {
+ "type": "object",
+ "properties": {
+ "keys": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "object",
+ "properties": {
+ "default": {
+ "oneOf": [
+ {
+ "type": "object"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "name": {
+ "type": "string"
+ },
+ "names": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ "required": [
+ "keys"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "entity_id"
+ ]
+ },
+ "domains": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "domain": {
+ "type": "string"
+ },
+ "created_at": {
+ "type": "string"
+ },
+ "updated_at": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id"
+ ]
+ }
+ },
+ "created_at": {
+ "type": "string"
+ },
+ "updated_at": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id"
+ ]
+ }
+ }
+ }
+ },
+ "403": {
+ "description": ""
+ },
+ "404": {
+ "description": "SAML 2.0 support is not enabled for this project"
+ }
+ },
+ "tags": [
+ "sso"
+ ],
+ "security": [
+ {
+ "bearer": []
+ }
+ ]
+ },
+ "get": {
+ "operationId": "listAllProviders",
+ "summary": "Lists all SSO providers",
+ "parameters": [
+ {
+ "name": "ref",
+ "required": true,
+ "in": "path",
+ "description": "Project ref",
+ "schema": {
+ "minLength": 20,
+ "maxLength": 20,
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "items": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "saml": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "entity_id": {
+ "type": "string"
+ },
+ "metadata_url": {
+ "type": "string"
+ },
+ "metadata_xml": {
+ "type": "string"
+ },
+ "attribute_mapping": {
+ "type": "object",
+ "properties": {
+ "keys": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "object",
+ "properties": {
+ "default": {
+ "oneOf": [
+ {
+ "type": "object"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "name": {
+ "type": "string"
+ },
+ "names": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ "required": [
+ "keys"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "entity_id"
+ ]
+ },
+ "domains": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "domain": {
+ "type": "string"
+ },
+ "created_at": {
+ "type": "string"
+ },
+ "updated_at": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id"
+ ]
+ }
+ },
+ "created_at": {
+ "type": "string"
+ },
+ "updated_at": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id"
+ ]
+ }
+ }
+ },
+ "required": [
+ "items"
+ ]
+ }
+ }
+ }
+ },
+ "403": {
+ "description": ""
+ },
+ "404": {
+ "description": "SAML 2.0 support is not enabled for this project"
+ }
+ },
+ "tags": [
+ "sso"
+ ],
+ "security": [
+ {
+ "bearer": []
+ }
+ ]
+ }
+ },
+ "/v1/projects/{ref}/config/auth/sso/providers/{provider_id}": {
+ "get": {
+ "operationId": "getProviderById",
+ "summary": "Gets a SSO provider by its UUID",
+ "parameters": [
+ {
+ "name": "ref",
+ "required": true,
+ "in": "path",
+ "description": "Project ref",
+ "schema": {
+ "minLength": 20,
+ "maxLength": 20,
+ "type": "string"
+ }
+ },
+ {
+ "name": "provider_id",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "saml": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "entity_id": {
+ "type": "string"
+ },
+ "metadata_url": {
+ "type": "string"
+ },
+ "metadata_xml": {
+ "type": "string"
+ },
+ "attribute_mapping": {
+ "type": "object",
+ "properties": {
+ "keys": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "object",
+ "properties": {
+ "default": {
+ "oneOf": [
+ {
+ "type": "object"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "name": {
+ "type": "string"
+ },
+ "names": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ "required": [
+ "keys"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "entity_id"
+ ]
+ },
+ "domains": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "domain": {
+ "type": "string"
+ },
+ "created_at": {
+ "type": "string"
+ },
+ "updated_at": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id"
+ ]
+ }
+ },
+ "created_at": {
+ "type": "string"
+ },
+ "updated_at": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id"
+ ]
+ }
+ }
+ }
+ },
+ "403": {
+ "description": ""
+ },
+ "404": {
+ "description": "Either SAML 2.0 was not enabled for this project, or the provider does not exist"
+ }
+ },
+ "tags": [
+ "sso"
+ ],
+ "security": [
+ {
+ "bearer": []
+ }
+ ]
+ },
+ "put": {
+ "operationId": "updateProviderById",
+ "summary": "Updates a SSO provider by its UUID",
+ "parameters": [
+ {
+ "name": "ref",
+ "required": true,
+ "in": "path",
+ "description": "Project ref",
+ "schema": {
+ "minLength": 20,
+ "maxLength": 20,
+ "type": "string"
+ }
+ },
+ {
+ "name": "provider_id",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "metadata_xml": {
+ "type": "string"
+ },
+ "metadata_url": {
+ "type": "string"
+ },
+ "domains": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "attribute_mapping": {
+ "type": "object",
+ "properties": {
+ "keys": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "object",
+ "properties": {
+ "default": {
+ "oneOf": [
+ {
+ "type": "object"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "name": {
+ "type": "string"
+ },
+ "names": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ "required": [
+ "keys"
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "saml": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "entity_id": {
+ "type": "string"
+ },
+ "metadata_url": {
+ "type": "string"
+ },
+ "metadata_xml": {
+ "type": "string"
+ },
+ "attribute_mapping": {
+ "type": "object",
+ "properties": {
+ "keys": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "object",
+ "properties": {
+ "default": {
+ "oneOf": [
+ {
+ "type": "object"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "name": {
+ "type": "string"
+ },
+ "names": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ "required": [
+ "keys"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "entity_id"
+ ]
+ },
+ "domains": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "domain": {
+ "type": "string"
+ },
+ "created_at": {
+ "type": "string"
+ },
+ "updated_at": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id"
+ ]
+ }
+ },
+ "created_at": {
+ "type": "string"
+ },
+ "updated_at": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id"
+ ]
+ }
+ }
+ }
+ },
+ "403": {
+ "description": ""
+ },
+ "404": {
+ "description": "Either SAML 2.0 was not enabled for this project, or the provider does not exist"
+ }
+ },
+ "tags": [
+ "sso"
+ ],
+ "security": [
+ {
+ "bearer": []
+ }
+ ]
+ },
+ "delete": {
+ "operationId": "removeProviderById",
+ "summary": "Removes a SSO provider by its UUID",
+ "parameters": [
+ {
+ "name": "ref",
+ "required": true,
+ "in": "path",
+ "description": "Project ref",
+ "schema": {
+ "minLength": 20,
+ "maxLength": 20,
+ "type": "string"
+ }
+ },
+ {
+ "name": "provider_id",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "saml": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "entity_id": {
+ "type": "string"
+ },
+ "metadata_url": {
+ "type": "string"
+ },
+ "metadata_xml": {
+ "type": "string"
+ },
+ "attribute_mapping": {
+ "type": "object",
+ "properties": {
+ "keys": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "object",
+ "properties": {
+ "default": {
+ "oneOf": [
+ {
+ "type": "object"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "name": {
+ "type": "string"
+ },
+ "names": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ "required": [
+ "keys"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "entity_id"
+ ]
+ },
+ "domains": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "domain": {
+ "type": "string"
+ },
+ "created_at": {
+ "type": "string"
+ },
+ "updated_at": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id"
+ ]
+ }
+ },
+ "created_at": {
"type": "string"
},
- "rate_limit_email_sent": {
- "type": "number",
- "minimum": 0,
- "maximum": 2147483647
+ "updated_at": {
+ "type": "string"
}
- }
+ },
+ "required": [
+ "id"
+ ]
}
}
}
@@ -3634,12 +8389,112 @@
"403": {
"description": ""
},
+ "404": {
+ "description": "Either SAML 2.0 was not enabled for this project, or the provider does not exist"
+ }
+ },
+ "tags": [
+ "sso"
+ ],
+ "security": [
+ {
+ "bearer": []
+ }
+ ]
+ }
+ },
+ "/v1/projects/{ref}/database/backups": {
+ "get": {
+ "operationId": "getBackups",
+ "summary": "Lists all backups",
+ "parameters": [
+ {
+ "name": "ref",
+ "required": true,
+ "in": "path",
+ "description": "Project ref",
+ "schema": {
+ "minLength": 20,
+ "maxLength": 20,
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "region": {
+ "type": "string"
+ },
+ "walg_enabled": {
+ "type": "boolean"
+ },
+ "pitr_enabled": {
+ "type": "boolean"
+ },
+ "backups": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "COMPLETED",
+ "FAILED",
+ "PENDING",
+ "REMOVED",
+ "ARCHIVED"
+ ]
+ },
+ "is_physical_backup": {
+ "type": "boolean"
+ },
+ "inserted_at": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "status",
+ "is_physical_backup",
+ "inserted_at"
+ ]
+ }
+ },
+ "physical_backup_data": {
+ "type": "object",
+ "properties": {
+ "earliest_physical_backup_date_unix": {
+ "type": "number"
+ },
+ "latest_physical_backup_date_unix": {
+ "type": "number"
+ }
+ }
+ }
+ },
+ "required": [
+ "region",
+ "walg_enabled",
+ "pitr_enabled",
+ "backups",
+ "physical_backup_data"
+ ]
+ }
+ }
+ }
+ },
"500": {
- "description": "Failed to update project's auth config"
+ "description": "Failed to get backups"
}
},
"tags": [
- "projects config"
+ "backups"
],
"security": [
{
@@ -3648,10 +8503,10 @@
]
}
},
- "/v1/projects/{ref}/database/query": {
+ "/v1/projects/{ref}/database/backups/restore-pitr": {
"post": {
- "operationId": "v1RunQuery",
- "summary": "Run sql query",
+ "operationId": "v1RestorePitr",
+ "summary": "Restores a PITR backup for a database",
"parameters": [
{
"name": "ref",
@@ -3672,12 +8527,12 @@
"schema": {
"type": "object",
"properties": {
- "query": {
- "type": "string"
+ "recovery_time_target_unix": {
+ "type": "number"
}
},
"required": [
- "query"
+ "recovery_time_target_unix"
]
}
}
@@ -3685,24 +8540,140 @@
},
"responses": {
"201": {
+ "description": ""
+ }
+ },
+ "tags": [
+ "backups"
+ ],
+ "security": [
+ {
+ "bearer": []
+ }
+ ]
+ }
+ },
+ "/v1/organizations/{slug}/members": {
+ "get": {
+ "operationId": "v1ListOrganizationMembers",
+ "summary": "List members of an organization",
+ "parameters": [
+ {
+ "name": "slug",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
"description": "",
"content": {
"application/json": {
"schema": {
- "type": "object"
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "user_id": {
+ "type": "string"
+ },
+ "user_name": {
+ "type": "string"
+ },
+ "email": {
+ "type": "string"
+ },
+ "role_name": {
+ "type": "string"
+ },
+ "mfa_enabled": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "user_id",
+ "user_name",
+ "role_name",
+ "mfa_enabled"
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "tags": [
+ "organizations"
+ ],
+ "security": [
+ {
+ "bearer": []
+ }
+ ]
+ }
+ },
+ "/v1/organizations/{slug}": {
+ "get": {
+ "operationId": "getOrganization",
+ "summary": "Gets information about the organization",
+ "parameters": [
+ {
+ "name": "slug",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "plan": {
+ "type": "string",
+ "enum": [
+ "free",
+ "pro",
+ "team",
+ "enterprise"
+ ]
+ },
+ "opt_in_tags": {
+ "type": "array",
+ "items": {
+ "type": "string",
+ "enum": [
+ "AI_SQL_GENERATOR_OPT_IN"
+ ]
+ }
+ },
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "opt_in_tags",
+ "id",
+ "name"
+ ]
}
}
}
- },
- "403": {
- "description": ""
- },
- "500": {
- "description": "Failed to run sql query"
}
},
"tags": [
- "projects (beta)"
+ "organizations"
],
"security": [
{
@@ -3710,2890 +8681,3119 @@
}
]
}
+ }
+ },
+ "components": {
+ "securitySchemes": {
+ "bearer": {
+ "scheme": "bearer",
+ "bearerFormat": "JWT",
+ "type": "http"
+ }
},
- "/v1/projects/{ref}/database/webhooks/enable": {
- "post": {
- "operationId": "v1EnableDatabaseWebhooks",
- "summary": "Enables Database Webhooks on the project",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": {
- "minLength": 20,
- "maxLength": 20,
- "type": "string"
- }
+ "schemas": {
+ "BranchDetailResponse": {
+ "type": "object",
+ "properties": {
+ "db_port": {
+ "type": "integer"
+ },
+ "ref": {
+ "type": "string"
+ },
+ "postgres_version": {
+ "type": "string"
+ },
+ "status": {
+ "enum": [
+ "ACTIVE_HEALTHY",
+ "ACTIVE_UNHEALTHY",
+ "COMING_UP",
+ "GOING_DOWN",
+ "INACTIVE",
+ "INIT_FAILED",
+ "REMOVED",
+ "RESTORING",
+ "UNKNOWN",
+ "UPGRADING",
+ "PAUSING"
+ ],
+ "type": "string"
+ },
+ "db_host": {
+ "type": "string"
+ },
+ "db_user": {
+ "type": "string"
+ },
+ "db_pass": {
+ "type": "string"
+ },
+ "jwt_secret": {
+ "type": "string"
}
- ],
- "responses": {
- "201": {
- "description": ""
+ },
+ "required": [
+ "db_port",
+ "ref",
+ "postgres_version",
+ "status",
+ "db_host"
+ ]
+ },
+ "UpdateBranchBody": {
+ "type": "object",
+ "properties": {
+ "branch_name": {
+ "type": "string"
},
- "403": {
- "description": ""
+ "git_branch": {
+ "type": "string"
},
- "500": {
- "description": "Failed to enable Database Webhooks on the project"
+ "reset_on_push": {
+ "type": "boolean"
+ },
+ "persistent": {
+ "type": "boolean"
+ }
+ }
+ },
+ "BranchResponse": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "project_ref": {
+ "type": "string"
+ },
+ "parent_project_ref": {
+ "type": "string"
+ },
+ "is_default": {
+ "type": "boolean"
+ },
+ "git_branch": {
+ "type": "string"
+ },
+ "pr_number": {
+ "type": "number"
+ },
+ "reset_on_push": {
+ "type": "boolean"
+ },
+ "persistent": {
+ "type": "boolean"
+ },
+ "status": {
+ "enum": [
+ "CREATING_PROJECT",
+ "RUNNING_MIGRATIONS",
+ "MIGRATIONS_PASSED",
+ "MIGRATIONS_FAILED",
+ "FUNCTIONS_DEPLOYED",
+ "FUNCTIONS_FAILED"
+ ],
+ "type": "string"
+ },
+ "created_at": {
+ "type": "string"
+ },
+ "updated_at": {
+ "type": "string"
}
},
- "tags": [
- "projects (beta)"
- ],
- "security": [
- {
- "bearer": []
+ "required": [
+ "id",
+ "name",
+ "project_ref",
+ "parent_project_ref",
+ "is_default",
+ "reset_on_push",
+ "persistent",
+ "status",
+ "created_at",
+ "updated_at"
+ ]
+ },
+ "BranchDeleteResponse": {
+ "type": "object",
+ "properties": {
+ "message": {
+ "type": "string"
}
+ },
+ "required": [
+ "message"
]
- }
- },
- "/v1/projects/{ref}/functions": {
- "post": {
- "operationId": "createFunction",
- "summary": "Create a function",
- "description": "Creates a function and adds it to the specified project.",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": {
- "minLength": 20,
- "maxLength": 20,
- "type": "string"
- }
+ },
+ "BranchResetResponse": {
+ "type": "object",
+ "properties": {
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "message"
+ ]
+ },
+ "V1DatabaseResponse": {
+ "type": "object",
+ "properties": {
+ "host": {
+ "type": "string",
+ "description": "Database host"
+ },
+ "version": {
+ "type": "string",
+ "description": "Database version"
+ }
+ },
+ "required": [
+ "host",
+ "version"
+ ]
+ },
+ "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"
+ },
+ "database": {
+ "type": "object",
+ "properties": {
+ "host": {
+ "type": "string",
+ "description": "Database host"
+ },
+ "version": {
+ "type": "string",
+ "description": "Database version"
+ }
+ },
+ "required": [
+ "host",
+ "version"
+ ]
+ },
+ "status": {
+ "enum": [
+ "ACTIVE_HEALTHY",
+ "ACTIVE_UNHEALTHY",
+ "COMING_UP",
+ "GOING_DOWN",
+ "INACTIVE",
+ "INIT_FAILED",
+ "REMOVED",
+ "RESTORING",
+ "UNKNOWN",
+ "UPGRADING",
+ "PAUSING"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "organization_id",
+ "name",
+ "region",
+ "created_at",
+ "status"
+ ]
+ },
+ "DesiredInstanceSize": {
+ "type": "string",
+ "enum": [
+ "micro",
+ "small",
+ "medium",
+ "large",
+ "xlarge",
+ "2xlarge",
+ "4xlarge",
+ "8xlarge",
+ "12xlarge",
+ "16xlarge"
+ ]
+ },
+ "V1CreateProjectBody": {
+ "type": "object",
+ "properties": {
+ "db_pass": {
+ "type": "string",
+ "description": "Database password"
},
- {
- "name": "slug",
- "required": false,
- "in": "query",
- "schema": {
- "pattern": "/^[A-Za-z0-9_-]+$/",
- "type": "string"
- }
+ "name": {
+ "type": "string",
+ "description": "Name of your project, should not contain dots"
},
- {
- "name": "name",
- "required": false,
- "in": "query",
- "schema": {
- "type": "string"
- }
+ "organization_id": {
+ "type": "string",
+ "description": "Slug of your organization"
},
- {
- "name": "verify_jwt",
- "required": false,
- "in": "query",
- "schema": {
- "type": "boolean"
- }
+ "plan": {
+ "type": "string",
+ "enum": [
+ "free",
+ "pro"
+ ],
+ "description": "Subscription plan is now set on organization level and is ignored in this request",
+ "example": "free",
+ "deprecated": true
},
- {
- "name": "import_map",
- "required": false,
- "in": "query",
- "schema": {
- "type": "boolean"
- }
+ "region": {
+ "type": "string",
+ "enum": [
+ "us-east-1",
+ "us-west-1",
+ "us-west-2",
+ "ap-east-1",
+ "ap-southeast-1",
+ "ap-northeast-1",
+ "ap-northeast-2",
+ "ap-southeast-2",
+ "eu-west-1",
+ "eu-west-2",
+ "eu-west-3",
+ "eu-central-1",
+ "ca-central-1",
+ "ap-south-1",
+ "sa-east-1"
+ ],
+ "description": "Region you want your server to reside in",
+ "example": "us-east-1"
},
- {
- "name": "entrypoint_path",
- "required": false,
- "in": "query",
- "schema": {
- "type": "string"
- }
+ "kps_enabled": {
+ "type": "boolean",
+ "deprecated": true
},
- {
- "name": "import_map_path",
- "required": false,
- "in": "query",
- "schema": {
- "type": "string"
- }
+ "desired_instance_size": {
+ "type": "string",
+ "enum": [
+ "micro",
+ "small",
+ "medium",
+ "large",
+ "xlarge",
+ "2xlarge",
+ "4xlarge",
+ "8xlarge",
+ "12xlarge",
+ "16xlarge"
+ ]
+ },
+ "template_url": {
+ "type": "string",
+ "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"
}
- ],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "slug": {
- "type": "string",
- "pattern": "/^[A-Za-z0-9_-]+$/"
- },
- "name": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "verify_jwt": {
- "type": "boolean"
- }
- },
- "required": [
- "slug",
- "name",
- "body"
- ]
- }
- },
- "application/vnd.denoland.eszip": {
- "schema": {
- "type": "object",
- "properties": {
- "slug": {
- "type": "string",
- "pattern": "/^[A-Za-z0-9_-]+$/"
- },
- "name": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "verify_jwt": {
- "type": "boolean"
- }
- },
- "required": [
- "slug",
- "name",
- "body"
- ]
- }
- }
+ },
+ "required": [
+ "db_pass",
+ "name",
+ "organization_id",
+ "region"
+ ]
+ },
+ "OrganizationResponseV1": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
}
},
- "responses": {
- "201": {
- "description": "",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "status": {
- "enum": [
- "ACTIVE",
- "REMOVED",
- "THROTTLED"
- ],
- "type": "string"
- },
- "version": {
- "type": "number"
- },
- "created_at": {
- "type": "number"
- },
- "updated_at": {
- "type": "number"
- },
- "verify_jwt": {
- "type": "boolean"
- },
- "import_map": {
- "type": "boolean"
- },
- "entrypoint_path": {
- "type": "string"
- },
- "import_map_path": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "slug",
- "name",
- "status",
- "version",
- "created_at",
- "updated_at"
- ]
- }
- }
- }
+ "required": [
+ "id",
+ "name"
+ ]
+ },
+ "CreateOrganizationBodyV1": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ]
+ },
+ "OAuthTokenBody": {
+ "type": "object",
+ "properties": {
+ "grant_type": {
+ "enum": [
+ "authorization_code",
+ "refresh_token"
+ ],
+ "type": "string"
+ },
+ "client_id": {
+ "type": "string"
},
- "403": {
- "description": ""
+ "client_secret": {
+ "type": "string"
},
- "500": {
- "description": "Failed to create project's function"
+ "code": {
+ "type": "string"
+ },
+ "code_verifier": {
+ "type": "string"
+ },
+ "redirect_uri": {
+ "type": "string"
+ },
+ "refresh_token": {
+ "type": "string"
}
},
- "tags": [
- "functions"
- ],
- "security": [
- {
- "apiKeyHeader": [],
- "apiKeyParam": []
+ "required": [
+ "grant_type",
+ "client_id",
+ "client_secret"
+ ]
+ },
+ "OAuthTokenResponse": {
+ "type": "object",
+ "properties": {
+ "token_type": {
+ "type": "string",
+ "enum": [
+ "Bearer"
+ ]
},
- {
- "bearer": []
+ "access_token": {
+ "type": "string"
+ },
+ "refresh_token": {
+ "type": "string"
+ },
+ "expires_in": {
+ "type": "number"
}
+ },
+ "required": [
+ "token_type",
+ "access_token",
+ "refresh_token",
+ "expires_in"
]
},
- "get": {
- "operationId": "getFunctions",
- "summary": "List all functions",
- "description": "Returns all functions you've previously added to the specified project.",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": {
- "minLength": 20,
- "maxLength": 20,
- "type": "string"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "status": {
- "enum": [
- "ACTIVE",
- "REMOVED",
- "THROTTLED"
- ],
- "type": "string"
- },
- "version": {
- "type": "number"
- },
- "created_at": {
- "type": "number"
- },
- "updated_at": {
- "type": "number"
- },
- "verify_jwt": {
- "type": "boolean"
- },
- "import_map": {
- "type": "boolean"
- },
- "entrypoint_path": {
- "type": "string"
- },
- "import_map_path": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "slug",
- "name",
- "status",
- "version",
- "created_at",
- "updated_at"
- ]
- }
- }
- }
- }
- },
- "403": {
- "description": ""
+ "SnippetProject": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number"
},
- "500": {
- "description": "Failed to retrieve project's functions"
+ "name": {
+ "type": "string"
}
},
- "tags": [
- "functions"
- ],
- "security": [
- {
- "apiKeyHeader": [],
- "apiKeyParam": []
+ "required": [
+ "id",
+ "name"
+ ]
+ },
+ "SnippetUser": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number"
},
- {
- "bearer": []
+ "username": {
+ "type": "string"
}
+ },
+ "required": [
+ "id",
+ "username"
]
- }
- },
- "/v1/projects/{ref}/functions/{function_slug}": {
- "get": {
- "operationId": "getFunction",
- "summary": "Retrieve a function",
- "description": "Retrieves a function with the specified slug and project.",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": {
- "minLength": 20,
- "maxLength": 20,
- "type": "string"
- }
+ },
+ "SnippetMeta": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
},
- {
- "name": "function_slug",
- "required": true,
- "in": "path",
- "description": "Function slug",
- "schema": {
- "pattern": "/^[A-Za-z0-9_-]+$/",
- "type": "string"
- }
+ "inserted_at": {
+ "type": "string"
+ },
+ "updated_at": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string",
+ "enum": [
+ "sql"
+ ]
+ },
+ "visibility": {
+ "type": "string",
+ "enum": [
+ "user",
+ "project",
+ "org",
+ "public"
+ ]
+ },
+ "name": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "project": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "name"
+ ]
+ },
+ "owner": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number"
+ },
+ "username": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "username"
+ ]
+ },
+ "updated_by": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number"
+ },
+ "username": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "username"
+ ]
}
- ],
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": {
+ },
+ "required": [
+ "id",
+ "inserted_at",
+ "updated_at",
+ "type",
+ "visibility",
+ "name",
+ "project",
+ "owner",
+ "updated_by"
+ ]
+ },
+ "SnippetList": {
+ "type": "object",
+ "properties": {
+ "data": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "inserted_at": {
+ "type": "string"
+ },
+ "updated_at": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string",
+ "enum": [
+ "sql"
+ ]
+ },
+ "visibility": {
+ "type": "string",
+ "enum": [
+ "user",
+ "project",
+ "org",
+ "public"
+ ]
+ },
+ "name": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "project": {
"type": "object",
"properties": {
"id": {
- "type": "string"
- },
- "slug": {
- "type": "string"
+ "type": "number"
},
"name": {
"type": "string"
- },
- "status": {
- "enum": [
- "ACTIVE",
- "REMOVED",
- "THROTTLED"
- ],
- "type": "string"
- },
- "version": {
- "type": "number"
- },
- "created_at": {
- "type": "number"
- },
- "updated_at": {
+ }
+ },
+ "required": [
+ "id",
+ "name"
+ ]
+ },
+ "owner": {
+ "type": "object",
+ "properties": {
+ "id": {
"type": "number"
},
- "verify_jwt": {
- "type": "boolean"
- },
- "import_map": {
- "type": "boolean"
- },
- "entrypoint_path": {
+ "username": {
"type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "username"
+ ]
+ },
+ "updated_by": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number"
},
- "import_map_path": {
+ "username": {
"type": "string"
}
},
"required": [
"id",
- "slug",
- "name",
- "status",
- "version",
- "created_at",
- "updated_at"
+ "username"
]
}
- }
+ },
+ "required": [
+ "id",
+ "inserted_at",
+ "updated_at",
+ "type",
+ "visibility",
+ "name",
+ "project",
+ "owner",
+ "updated_by"
+ ]
}
+ }
+ },
+ "required": [
+ "data"
+ ]
+ },
+ "SnippetContent": {
+ "type": "object",
+ "properties": {
+ "favorite": {
+ "type": "boolean"
},
- "403": {
- "description": ""
+ "schema_version": {
+ "type": "string"
},
- "500": {
- "description": "Failed to retrieve function with given slug"
+ "sql": {
+ "type": "string"
}
},
- "tags": [
- "functions"
- ],
- "security": [
- {
- "apiKeyHeader": [],
- "apiKeyParam": []
+ "required": [
+ "favorite",
+ "schema_version",
+ "sql"
+ ]
+ },
+ "SnippetResponse": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
},
- {
- "bearer": []
+ "inserted_at": {
+ "type": "string"
+ },
+ "updated_at": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string",
+ "enum": [
+ "sql"
+ ]
+ },
+ "visibility": {
+ "enum": [
+ "user",
+ "project",
+ "org",
+ "public"
+ ],
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "project": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "name"
+ ]
+ },
+ "owner": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number"
+ },
+ "username": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "username"
+ ]
+ },
+ "updated_by": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number"
+ },
+ "username": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "username"
+ ]
+ },
+ "content": {
+ "type": "object",
+ "properties": {
+ "favorite": {
+ "type": "boolean"
+ },
+ "schema_version": {
+ "type": "string"
+ },
+ "sql": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "favorite",
+ "schema_version",
+ "sql"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "inserted_at",
+ "updated_at",
+ "type",
+ "visibility",
+ "name",
+ "project",
+ "owner",
+ "updated_by",
+ "content"
+ ]
+ },
+ "ApiKeyResponse": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "api_key": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "api_key"
+ ]
+ },
+ "CreateBranchBody": {
+ "type": "object",
+ "properties": {
+ "branch_name": {
+ "type": "string"
+ },
+ "git_branch": {
+ "type": "string"
+ },
+ "region": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "branch_name"
+ ]
+ },
+ "UpdateCustomHostnameResponse": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "enum": [
+ "1_not_started",
+ "2_initiated",
+ "3_challenge_verified",
+ "4_origin_setup_completed",
+ "5_services_reconfigured"
+ ],
+ "type": "string"
+ },
+ "custom_hostname": {
+ "type": "string"
+ },
+ "data": {
+ "type": "object"
+ }
+ },
+ "required": [
+ "status",
+ "custom_hostname",
+ "data"
+ ]
+ },
+ "UpdateCustomHostnameBody": {
+ "type": "object",
+ "properties": {
+ "custom_hostname": {
+ "type": "string"
}
+ },
+ "required": [
+ "custom_hostname"
]
},
- "patch": {
- "operationId": "updateFunction",
- "summary": "Update a function",
- "description": "Updates a function with the specified slug and project.",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": {
- "minLength": 20,
- "maxLength": 20,
+ "NetworkBanResponse": {
+ "type": "object",
+ "properties": {
+ "banned_ipv4_addresses": {
+ "type": "array",
+ "items": {
"type": "string"
}
- },
- {
- "name": "function_slug",
- "required": true,
- "in": "path",
- "description": "Function slug",
- "schema": {
- "pattern": "/^[A-Za-z0-9_-]+$/",
+ }
+ },
+ "required": [
+ "banned_ipv4_addresses"
+ ]
+ },
+ "RemoveNetworkBanRequest": {
+ "type": "object",
+ "properties": {
+ "ipv4_addresses": {
+ "type": "array",
+ "items": {
"type": "string"
}
- },
- {
- "name": "slug",
- "required": false,
- "in": "query",
- "schema": {
- "pattern": "/^[A-Za-z0-9_-]+$/",
+ }
+ },
+ "required": [
+ "ipv4_addresses"
+ ]
+ },
+ "NetworkRestrictionsRequest": {
+ "type": "object",
+ "properties": {
+ "dbAllowedCidrs": {
+ "type": "array",
+ "items": {
"type": "string"
}
},
- {
- "name": "name",
- "required": false,
- "in": "query",
- "schema": {
+ "dbAllowedCidrsV6": {
+ "type": "array",
+ "items": {
"type": "string"
}
+ }
+ }
+ },
+ "NetworkRestrictionsResponse": {
+ "type": "object",
+ "properties": {
+ "entitlement": {
+ "enum": [
+ "disallowed",
+ "allowed"
+ ],
+ "type": "string"
},
- {
- "name": "verify_jwt",
- "required": false,
- "in": "query",
- "schema": {
- "type": "boolean"
- }
- },
- {
- "name": "import_map",
- "required": false,
- "in": "query",
- "schema": {
- "type": "boolean"
- }
- },
- {
- "name": "entrypoint_path",
- "required": false,
- "in": "query",
- "schema": {
- "type": "string"
+ "config": {
+ "type": "object",
+ "properties": {
+ "dbAllowedCidrs": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "dbAllowedCidrsV6": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
}
},
- {
- "name": "import_map_path",
- "required": false,
- "in": "query",
- "schema": {
- "type": "string"
- }
- }
- ],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "verify_jwt": {
- "type": "boolean"
- }
+ "old_config": {
+ "type": "object",
+ "properties": {
+ "dbAllowedCidrs": {
+ "type": "array",
+ "items": {
+ "type": "string"
}
- }
- },
- "application/vnd.denoland.eszip": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "body": {
- "type": "string"
- },
- "verify_jwt": {
- "type": "boolean"
- }
+ },
+ "dbAllowedCidrsV6": {
+ "type": "array",
+ "items": {
+ "type": "string"
}
}
}
+ },
+ "status": {
+ "enum": [
+ "stored",
+ "applied"
+ ],
+ "type": "string"
}
},
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "status": {
- "enum": [
- "ACTIVE",
- "REMOVED",
- "THROTTLED"
- ],
- "type": "string"
- },
- "version": {
- "type": "number"
- },
- "created_at": {
- "type": "number"
- },
- "updated_at": {
- "type": "number"
- },
- "verify_jwt": {
- "type": "boolean"
- },
- "import_map": {
- "type": "boolean"
- },
- "entrypoint_path": {
- "type": "string"
- },
- "import_map_path": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "slug",
- "name",
- "status",
- "version",
- "created_at",
- "updated_at"
- ]
- }
- }
- }
+ "required": [
+ "entitlement",
+ "config",
+ "status"
+ ]
+ },
+ "PgsodiumConfigResponse": {
+ "type": "object",
+ "properties": {
+ "root_key": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "root_key"
+ ]
+ },
+ "UpdatePgsodiumConfigBody": {
+ "type": "object",
+ "properties": {
+ "root_key": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "root_key"
+ ]
+ },
+ "PostgrestConfigWithJWTSecretResponse": {
+ "type": "object",
+ "properties": {
+ "max_rows": {
+ "type": "integer"
},
- "403": {
- "description": ""
+ "db_pool": {
+ "type": "integer",
+ "nullable": true,
+ "description": "If `null`, the value is automatically configured based on compute size."
},
- "500": {
- "description": "Failed to update function with given slug"
+ "db_schema": {
+ "type": "string"
+ },
+ "db_extra_search_path": {
+ "type": "string"
+ },
+ "jwt_secret": {
+ "type": "string"
}
},
- "tags": [
- "functions"
- ],
- "security": [
- {
- "apiKeyHeader": [],
- "apiKeyParam": []
+ "required": [
+ "max_rows",
+ "db_pool",
+ "db_schema",
+ "db_extra_search_path"
+ ]
+ },
+ "UpdatePostgrestConfigBody": {
+ "type": "object",
+ "properties": {
+ "max_rows": {
+ "type": "integer",
+ "minimum": 0,
+ "maximum": 1000000
},
- {
- "bearer": []
+ "db_pool": {
+ "type": "integer",
+ "minimum": 0,
+ "maximum": 1000
+ },
+ "db_extra_search_path": {
+ "type": "string"
+ },
+ "db_schema": {
+ "type": "string"
}
- ]
+ }
},
- "delete": {
- "operationId": "deleteFunction",
- "summary": "Delete a function",
- "description": "Deletes a function with the specified slug from the specified project.",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": {
- "minLength": 20,
- "maxLength": 20,
- "type": "string"
- }
+ "V1PostgrestConfigResponse": {
+ "type": "object",
+ "properties": {
+ "max_rows": {
+ "type": "integer"
},
- {
- "name": "function_slug",
- "required": true,
- "in": "path",
- "description": "Function slug",
- "schema": {
- "pattern": "/^[A-Za-z0-9_-]+$/",
- "type": "string"
- }
+ "db_pool": {
+ "type": "integer",
+ "nullable": true,
+ "description": "If `null`, the value is automatically configured based on compute size."
+ },
+ "db_schema": {
+ "type": "string"
+ },
+ "db_extra_search_path": {
+ "type": "string"
}
- ],
- "responses": {
- "200": {
- "description": ""
+ },
+ "required": [
+ "max_rows",
+ "db_pool",
+ "db_schema",
+ "db_extra_search_path"
+ ]
+ },
+ "V1ProjectRefResponse": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number"
},
- "403": {
- "description": ""
+ "ref": {
+ "type": "string"
},
- "500": {
- "description": "Failed to delete function with given slug"
+ "name": {
+ "type": "string"
}
},
- "tags": [
- "functions"
- ],
- "security": [
- {
- "apiKeyHeader": [],
- "apiKeyParam": []
+ "required": [
+ "id",
+ "ref",
+ "name"
+ ]
+ },
+ "SecretResponse": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
},
- {
- "bearer": []
+ "value": {
+ "type": "string"
}
+ },
+ "required": [
+ "name",
+ "value"
]
- }
- },
- "/v1/projects/{ref}/functions/{function_slug}/body": {
- "get": {
- "operationId": "getFunctionBody",
- "summary": "Retrieve a function body",
- "description": "Retrieves a function body for the specified slug and project.",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": {
- "minLength": 20,
- "maxLength": 20,
- "type": "string"
- }
+ },
+ "CreateSecretBody": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "maxLength": 256,
+ "pattern": "/^(?!SUPABASE_).*/",
+ "description": "Secret name must not start with the SUPABASE_ prefix.",
+ "example": "string"
},
- {
- "name": "function_slug",
- "required": true,
- "in": "path",
- "description": "Function slug",
- "schema": {
- "pattern": "/^[A-Za-z0-9_-]+$/",
- "type": "string"
- }
+ "value": {
+ "type": "string",
+ "maxLength": 24576
}
- ],
- "responses": {
- "200": {
- "description": ""
+ },
+ "required": [
+ "name",
+ "value"
+ ]
+ },
+ "SslEnforcements": {
+ "type": "object",
+ "properties": {
+ "database": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "database"
+ ]
+ },
+ "SslEnforcementResponse": {
+ "type": "object",
+ "properties": {
+ "currentConfig": {
+ "type": "object",
+ "properties": {
+ "database": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "database"
+ ]
},
- "403": {
- "description": ""
+ "appliedSuccessfully": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "currentConfig",
+ "appliedSuccessfully"
+ ]
+ },
+ "SslEnforcementRequest": {
+ "type": "object",
+ "properties": {
+ "requestedConfig": {
+ "type": "object",
+ "properties": {
+ "database": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "database"
+ ]
+ }
+ },
+ "required": [
+ "requestedConfig"
+ ]
+ },
+ "TypescriptResponse": {
+ "type": "object",
+ "properties": {
+ "types": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "types"
+ ]
+ },
+ "VanitySubdomainConfigResponse": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "enum": [
+ "not-used",
+ "custom-domain-used",
+ "active"
+ ],
+ "type": "string"
},
- "500": {
- "description": "Failed to retrieve function body with given slug"
+ "custom_domain": {
+ "type": "string"
}
},
- "tags": [
- "functions"
- ],
- "security": [
- {
- "apiKeyHeader": [],
- "apiKeyParam": []
- },
- {
- "bearer": []
+ "required": [
+ "status"
+ ]
+ },
+ "VanitySubdomainBody": {
+ "type": "object",
+ "properties": {
+ "vanity_subdomain": {
+ "type": "string"
}
+ },
+ "required": [
+ "vanity_subdomain"
]
- }
- },
- "/v1/projects/{ref}/config/auth/sso/providers": {
- "post": {
- "operationId": "createProviderForProject",
- "summary": "Creates a new SSO provider",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": {
- "minLength": 20,
- "maxLength": 20,
- "type": "string"
- }
+ },
+ "SubdomainAvailabilityResponse": {
+ "type": "object",
+ "properties": {
+ "available": {
+ "type": "boolean"
}
- ],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "saml"
- ],
- "description": "What type of provider will be created"
- },
- "metadata_xml": {
- "type": "string"
- },
- "metadata_url": {
- "type": "string"
- },
- "domains": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "attribute_mapping": {
- "type": "object",
- "properties": {
- "keys": {
- "type": "object",
- "additionalProperties": {
- "type": "object",
- "properties": {
- "default": {
- "oneOf": [
- {
- "type": "object"
- },
- {
- "type": "number"
- },
- {
- "type": "string"
- },
- {
- "type": "boolean"
- }
- ]
- },
- "name": {
- "type": "string"
- },
- "names": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- },
- "required": [
- "keys"
- ]
- }
- },
- "required": [
- "type"
- ]
- }
- }
+ },
+ "required": [
+ "available"
+ ]
+ },
+ "ActivateVanitySubdomainResponse": {
+ "type": "object",
+ "properties": {
+ "custom_domain": {
+ "type": "string"
}
},
- "responses": {
- "201": {
- "description": "",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- },
- "saml": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- },
- "entity_id": {
- "type": "string"
- },
- "metadata_url": {
- "type": "string"
- },
- "metadata_xml": {
- "type": "string"
- },
- "attribute_mapping": {
- "type": "object",
- "properties": {
- "keys": {
- "type": "object",
- "additionalProperties": {
- "type": "object",
- "properties": {
- "default": {
- "oneOf": [
- {
- "type": "object"
- },
- {
- "type": "number"
- },
- {
- "type": "string"
- },
- {
- "type": "boolean"
- }
- ]
- },
- "name": {
- "type": "string"
- },
- "names": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- },
- "required": [
- "keys"
- ]
- }
- },
- "required": [
- "id",
- "entity_id"
- ]
- },
- "domains": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- },
- "domain": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- },
- "required": [
- "id"
- ]
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- },
- "required": [
- "id"
- ]
+ "required": [
+ "custom_domain"
+ ]
+ },
+ "UpgradeDatabaseBody": {
+ "type": "object",
+ "properties": {
+ "target_version": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "target_version"
+ ]
+ },
+ "ProjectUpgradeInitiateResponse": {
+ "type": "object",
+ "properties": {
+ "tracking_id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "tracking_id"
+ ]
+ },
+ "ProjectVersion": {
+ "type": "object",
+ "properties": {
+ "postgres_version": {
+ "type": "number"
+ },
+ "app_version": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "postgres_version",
+ "app_version"
+ ]
+ },
+ "ProjectUpgradeEligibilityResponse": {
+ "type": "object",
+ "properties": {
+ "eligible": {
+ "type": "boolean"
+ },
+ "current_app_version": {
+ "type": "string"
+ },
+ "latest_app_version": {
+ "type": "string"
+ },
+ "target_upgrade_versions": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "postgres_version": {
+ "type": "number"
+ },
+ "app_version": {
+ "type": "string"
}
- }
+ },
+ "required": [
+ "postgres_version",
+ "app_version"
+ ]
}
},
- "403": {
- "description": ""
+ "potential_breaking_changes": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
- "404": {
- "description": "SAML 2.0 support is not enabled for this project"
+ "duration_estimate_hours": {
+ "type": "number"
+ },
+ "legacy_auth_custom_roles": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "extension_dependent_objects": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
}
},
- "tags": [
- "sso"
- ],
- "security": [
- {
- "bearer": []
- }
+ "required": [
+ "eligible",
+ "current_app_version",
+ "latest_app_version",
+ "target_upgrade_versions",
+ "potential_breaking_changes",
+ "duration_estimate_hours",
+ "legacy_auth_custom_roles",
+ "extension_dependent_objects"
]
},
- "get": {
- "operationId": "listAllProviders",
- "summary": "Lists all SSO providers",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": {
- "minLength": 20,
- "maxLength": 20,
- "type": "string"
- }
+ "DatabaseUpgradeStatus": {
+ "type": "object",
+ "properties": {
+ "initiated_at": {
+ "type": "string"
+ },
+ "target_version": {
+ "type": "number"
+ },
+ "error": {
+ "type": "string",
+ "enum": [
+ "1_upgraded_instance_launch_failed",
+ "2_volume_detachchment_from_upgraded_instance_failed",
+ "3_volume_attachment_to_original_instance_failed",
+ "4_data_upgrade_initiation_failed",
+ "5_data_upgrade_completion_failed",
+ "6_volume_detachchment_from_original_instance_failed",
+ "7_volume_attachment_to_upgraded_instance_failed",
+ "8_upgrade_completion_failed"
+ ]
+ },
+ "progress": {
+ "type": "string",
+ "enum": [
+ "0_requested",
+ "1_started",
+ "2_launched_upgraded_instance",
+ "3_detached_volume_from_upgraded_instance",
+ "4_attached_volume_to_original_instance",
+ "5_initiated_data_upgrade",
+ "6_completed_data_upgrade",
+ "7_detached_volume_from_original_instance",
+ "8_attached_volume_to_upgraded_instance",
+ "9_completed_upgrade"
+ ]
+ },
+ "status": {
+ "type": "number",
+ "enum": [
+ 0,
+ 1,
+ 2
+ ]
}
- ],
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "items": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- },
- "saml": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- },
- "entity_id": {
- "type": "string"
- },
- "metadata_url": {
- "type": "string"
- },
- "metadata_xml": {
- "type": "string"
- },
- "attribute_mapping": {
- "type": "object",
- "properties": {
- "keys": {
- "type": "object",
- "additionalProperties": {
- "type": "object",
- "properties": {
- "default": {
- "oneOf": [
- {
- "type": "object"
- },
- {
- "type": "number"
- },
- {
- "type": "string"
- },
- {
- "type": "boolean"
- }
- ]
- },
- "name": {
- "type": "string"
- },
- "names": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- },
- "required": [
- "keys"
- ]
- }
- },
- "required": [
- "id",
- "entity_id"
- ]
- },
- "domains": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- },
- "domain": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- },
- "required": [
- "id"
- ]
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- },
- "required": [
- "id"
- ]
- }
- }
+ },
+ "required": [
+ "initiated_at",
+ "target_version",
+ "status"
+ ]
+ },
+ "DatabaseUpgradeStatusResponse": {
+ "type": "object",
+ "properties": {
+ "databaseUpgradeStatus": {
+ "nullable": true,
+ "allOf": [
+ {
+ "type": "object",
+ "properties": {
+ "initiated_at": {
+ "type": "string"
},
- "required": [
- "items"
- ]
- }
+ "target_version": {
+ "type": "number"
+ },
+ "error": {
+ "type": "string",
+ "enum": [
+ "1_upgraded_instance_launch_failed",
+ "2_volume_detachchment_from_upgraded_instance_failed",
+ "3_volume_attachment_to_original_instance_failed",
+ "4_data_upgrade_initiation_failed",
+ "5_data_upgrade_completion_failed",
+ "6_volume_detachchment_from_original_instance_failed",
+ "7_volume_attachment_to_upgraded_instance_failed",
+ "8_upgrade_completion_failed"
+ ]
+ },
+ "progress": {
+ "type": "string",
+ "enum": [
+ "0_requested",
+ "1_started",
+ "2_launched_upgraded_instance",
+ "3_detached_volume_from_upgraded_instance",
+ "4_attached_volume_to_original_instance",
+ "5_initiated_data_upgrade",
+ "6_completed_data_upgrade",
+ "7_detached_volume_from_original_instance",
+ "8_attached_volume_to_upgraded_instance",
+ "9_completed_upgrade"
+ ]
+ },
+ "status": {
+ "type": "number",
+ "enum": [
+ 0,
+ 1,
+ 2
+ ]
+ }
+ },
+ "required": [
+ "initiated_at",
+ "target_version",
+ "status"
+ ]
}
- }
+ ]
+ }
+ },
+ "required": [
+ "databaseUpgradeStatus"
+ ]
+ },
+ "ReadOnlyStatusResponse": {
+ "type": "object",
+ "properties": {
+ "enabled": {
+ "type": "boolean"
},
- "403": {
- "description": ""
+ "override_enabled": {
+ "type": "boolean"
},
- "404": {
- "description": "SAML 2.0 support is not enabled for this project"
+ "override_active_until": {
+ "type": "string"
}
},
- "tags": [
- "sso"
- ],
- "security": [
- {
- "bearer": []
- }
+ "required": [
+ "enabled",
+ "override_enabled",
+ "override_active_until"
]
- }
- },
- "/v1/projects/{ref}/config/auth/sso/providers/{provider_id}": {
- "get": {
- "operationId": "getProviderById",
- "summary": "Gets a SSO provider by its UUID",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": {
- "minLength": 20,
- "maxLength": 20,
- "type": "string"
- }
- },
- {
- "name": "provider_id",
- "required": true,
- "in": "path",
- "schema": {
- "type": "string"
- }
+ },
+ "SetUpReadReplicaBody": {
+ "type": "object",
+ "properties": {
+ "read_replica_region": {
+ "type": "string",
+ "enum": [
+ "us-east-1",
+ "us-west-1",
+ "us-west-2",
+ "ap-east-1",
+ "ap-southeast-1",
+ "ap-northeast-1",
+ "ap-northeast-2",
+ "ap-southeast-2",
+ "eu-west-1",
+ "eu-west-2",
+ "eu-west-3",
+ "eu-central-1",
+ "ca-central-1",
+ "ap-south-1",
+ "sa-east-1"
+ ],
+ "description": "Region you want your read replica to reside in",
+ "example": "us-east-1"
}
- ],
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- },
- "saml": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- },
- "entity_id": {
- "type": "string"
- },
- "metadata_url": {
- "type": "string"
- },
- "metadata_xml": {
- "type": "string"
- },
- "attribute_mapping": {
- "type": "object",
- "properties": {
- "keys": {
- "type": "object",
- "additionalProperties": {
- "type": "object",
- "properties": {
- "default": {
- "oneOf": [
- {
- "type": "object"
- },
- {
- "type": "number"
- },
- {
- "type": "string"
- },
- {
- "type": "boolean"
- }
- ]
- },
- "name": {
- "type": "string"
- },
- "names": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- },
- "required": [
- "keys"
- ]
- }
- },
- "required": [
- "id",
- "entity_id"
- ]
- },
- "domains": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- },
- "domain": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- },
- "required": [
- "id"
- ]
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- },
- "required": [
- "id"
- ]
- }
- }
- }
+ },
+ "required": [
+ "read_replica_region"
+ ]
+ },
+ "RemoveReadReplicaBody": {
+ "type": "object",
+ "properties": {
+ "database_identifier": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "database_identifier"
+ ]
+ },
+ "AuthHealthResponse": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
},
- "403": {
- "description": ""
+ "version": {
+ "type": "string"
},
- "404": {
- "description": "Either SAML 2.0 was not enabled for this project, or the provider does not exist"
+ "description": {
+ "type": "string"
}
},
- "tags": [
- "sso"
- ],
- "security": [
- {
- "bearer": []
- }
+ "required": [
+ "name",
+ "version",
+ "description"
]
},
- "put": {
- "operationId": "updateProviderById",
- "summary": "Updates a SSO provider by its UUID",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": {
- "minLength": 20,
- "maxLength": 20,
- "type": "string"
- }
+ "RealtimeHealthResponse": {
+ "type": "object",
+ "properties": {
+ "healthy": {
+ "type": "boolean"
},
- {
- "name": "provider_id",
- "required": true,
- "in": "path",
- "schema": {
- "type": "string"
- }
+ "db_connected": {
+ "type": "boolean"
+ },
+ "connected_cluster": {
+ "type": "number"
}
- ],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {
- "schema": {
+ },
+ "required": [
+ "healthy",
+ "db_connected",
+ "connected_cluster"
+ ]
+ },
+ "V1ServiceHealthResponse": {
+ "type": "object",
+ "properties": {
+ "info": {
+ "oneOf": [
+ {
"type": "object",
"properties": {
- "metadata_xml": {
+ "name": {
"type": "string"
},
- "metadata_url": {
+ "version": {
"type": "string"
},
- "domains": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "attribute_mapping": {
- "type": "object",
- "properties": {
- "keys": {
- "type": "object",
- "additionalProperties": {
- "type": "object",
- "properties": {
- "default": {
- "oneOf": [
- {
- "type": "object"
- },
- {
- "type": "number"
- },
- {
- "type": "string"
- },
- {
- "type": "boolean"
- }
- ]
- },
- "name": {
- "type": "string"
- },
- "names": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- },
- "required": [
- "keys"
- ]
+ "description": {
+ "type": "string"
}
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- },
- "saml": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- },
- "entity_id": {
- "type": "string"
- },
- "metadata_url": {
- "type": "string"
- },
- "metadata_xml": {
- "type": "string"
- },
- "attribute_mapping": {
- "type": "object",
- "properties": {
- "keys": {
- "type": "object",
- "additionalProperties": {
- "type": "object",
- "properties": {
- "default": {
- "oneOf": [
- {
- "type": "object"
- },
- {
- "type": "number"
- },
- {
- "type": "string"
- },
- {
- "type": "boolean"
- }
- ]
- },
- "name": {
- "type": "string"
- },
- "names": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- },
- "required": [
- "keys"
- ]
- }
- },
- "required": [
- "id",
- "entity_id"
- ]
- },
- "domains": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- },
- "domain": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- },
- "required": [
- "id"
- ]
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
+ },
+ "required": [
+ "name",
+ "version",
+ "description"
+ ]
+ },
+ {
+ "type": "object",
+ "properties": {
+ "healthy": {
+ "type": "boolean"
},
- "required": [
- "id"
- ]
- }
+ "db_connected": {
+ "type": "boolean"
+ },
+ "connected_cluster": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "healthy",
+ "db_connected",
+ "connected_cluster"
+ ]
}
- }
+ ]
+ },
+ "name": {
+ "enum": [
+ "auth",
+ "db",
+ "pooler",
+ "realtime",
+ "rest",
+ "storage"
+ ],
+ "type": "string"
+ },
+ "healthy": {
+ "type": "boolean"
},
- "403": {
- "description": ""
+ "status": {
+ "enum": [
+ "COMING_UP",
+ "ACTIVE_HEALTHY",
+ "UNHEALTHY"
+ ],
+ "type": "string"
},
- "404": {
- "description": "Either SAML 2.0 was not enabled for this project, or the provider does not exist"
+ "error": {
+ "type": "string"
}
},
- "tags": [
- "sso"
- ],
- "security": [
- {
- "bearer": []
- }
+ "required": [
+ "name",
+ "healthy",
+ "status"
]
},
- "delete": {
- "operationId": "removeProviderById",
- "summary": "Removes a SSO provider by its UUID",
- "parameters": [
- {
- "name": "ref",
- "required": true,
- "in": "path",
- "description": "Project ref",
- "schema": {
- "minLength": 20,
- "maxLength": 20,
- "type": "string"
- }
+ "PostgresConfigResponse": {
+ "type": "object",
+ "properties": {
+ "statement_timeout": {
+ "type": "string"
},
- {
- "name": "provider_id",
- "required": true,
- "in": "path",
- "schema": {
- "type": "string"
- }
+ "effective_cache_size": {
+ "type": "string"
+ },
+ "maintenance_work_mem": {
+ "type": "string"
+ },
+ "max_connections": {
+ "type": "integer",
+ "minimum": 1,
+ "maximum": 262143
+ },
+ "max_locks_per_transaction": {
+ "type": "integer",
+ "minimum": 10,
+ "maximum": 2147483640
+ },
+ "max_parallel_maintenance_workers": {
+ "type": "integer",
+ "minimum": 0,
+ "maximum": 1024
+ },
+ "max_parallel_workers": {
+ "type": "integer",
+ "minimum": 0,
+ "maximum": 1024
+ },
+ "max_parallel_workers_per_gather": {
+ "type": "integer",
+ "minimum": 0,
+ "maximum": 1024
+ },
+ "max_standby_archive_delay": {
+ "type": "string"
+ },
+ "max_standby_streaming_delay": {
+ "type": "string"
+ },
+ "max_worker_processes": {
+ "type": "integer",
+ "minimum": 0,
+ "maximum": 262143
+ },
+ "shared_buffers": {
+ "type": "string"
+ },
+ "work_mem": {
+ "type": "string"
+ },
+ "session_replication_role": {
+ "enum": [
+ "origin",
+ "replica",
+ "local"
+ ],
+ "type": "string"
}
- ],
- "responses": {
- "200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- },
- "saml": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- },
- "entity_id": {
- "type": "string"
- },
- "metadata_url": {
- "type": "string"
- },
- "metadata_xml": {
- "type": "string"
- },
- "attribute_mapping": {
- "type": "object",
- "properties": {
- "keys": {
- "type": "object",
- "additionalProperties": {
- "type": "object",
- "properties": {
- "default": {
- "oneOf": [
- {
- "type": "object"
- },
- {
- "type": "number"
- },
- {
- "type": "string"
- },
- {
- "type": "boolean"
- }
- ]
- },
- "name": {
- "type": "string"
- },
- "names": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- },
- "required": [
- "keys"
- ]
- }
- },
- "required": [
- "id",
- "entity_id"
- ]
- },
- "domains": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- },
- "domain": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- },
- "required": [
- "id"
- ]
- }
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- }
- },
- "required": [
- "id"
- ]
- }
- }
- }
+ }
+ },
+ "UpdatePostgresConfigBody": {
+ "type": "object",
+ "properties": {
+ "statement_timeout": {
+ "type": "string"
},
- "403": {
- "description": ""
+ "effective_cache_size": {
+ "type": "string"
+ },
+ "maintenance_work_mem": {
+ "type": "string"
+ },
+ "max_connections": {
+ "type": "integer",
+ "minimum": 1,
+ "maximum": 262143
+ },
+ "max_locks_per_transaction": {
+ "type": "integer",
+ "minimum": 10,
+ "maximum": 2147483640
+ },
+ "max_parallel_maintenance_workers": {
+ "type": "integer",
+ "minimum": 0,
+ "maximum": 1024
+ },
+ "max_parallel_workers": {
+ "type": "integer",
+ "minimum": 0,
+ "maximum": 1024
+ },
+ "max_parallel_workers_per_gather": {
+ "type": "integer",
+ "minimum": 0,
+ "maximum": 1024
+ },
+ "max_standby_archive_delay": {
+ "type": "string"
+ },
+ "max_standby_streaming_delay": {
+ "type": "string"
+ },
+ "max_worker_processes": {
+ "type": "integer",
+ "minimum": 0,
+ "maximum": 262143
+ },
+ "shared_buffers": {
+ "type": "string"
},
- "404": {
- "description": "Either SAML 2.0 was not enabled for this project, or the provider does not exist"
+ "work_mem": {
+ "type": "string"
+ },
+ "session_replication_role": {
+ "enum": [
+ "origin",
+ "replica",
+ "local"
+ ],
+ "type": "string"
}
- },
- "tags": [
- "sso"
- ],
- "security": [
- {
- "bearer": []
+ }
+ },
+ "V1PgbouncerConfigResponse": {
+ "type": "object",
+ "properties": {
+ "pool_mode": {
+ "type": "string",
+ "enum": [
+ "transaction",
+ "session",
+ "statement"
+ ]
+ },
+ "default_pool_size": {
+ "type": "number"
+ },
+ "ignore_startup_parameters": {
+ "type": "string"
+ },
+ "max_client_conn": {
+ "type": "number"
+ },
+ "connection_string": {
+ "type": "string"
}
- ]
- }
- }
- },
- "components": {
- "securitySchemes": {
- "bearer": {
- "scheme": "bearer",
- "bearerFormat": "JWT",
- "type": "http"
- }
- },
- "schemas": {
- "BranchDetailResponse": {
+ }
+ },
+ "AuthConfigResponse": {
"type": "object",
"properties": {
- "db_port": {
- "type": "integer"
+ "api_max_request_duration": {
+ "type": "number",
+ "nullable": true
+ },
+ "db_max_pool_size": {
+ "type": "number",
+ "nullable": true
+ },
+ "disable_signup": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_anonymous_users_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_apple_additional_client_ids": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_apple_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_apple_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_apple_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_azure_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_azure_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_azure_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_azure_url": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_bitbucket_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_bitbucket_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_bitbucket_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_discord_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_discord_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_discord_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_email_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_facebook_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_facebook_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_facebook_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_figma_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_figma_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_figma_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_github_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_github_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_github_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_gitlab_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_gitlab_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_gitlab_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_gitlab_url": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_google_additional_client_ids": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_google_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_google_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_google_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_google_skip_nonce_check": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_kakao_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_kakao_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_kakao_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_keycloak_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_keycloak_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_keycloak_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_keycloak_url": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_linkedin_oidc_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_linkedin_oidc_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_linkedin_oidc_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_notion_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_notion_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_notion_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_phone_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_slack_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_slack_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_slack_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_spotify_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_spotify_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_spotify_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_twitch_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_twitch_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_twitch_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_twitter_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_twitter_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_twitter_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_workos_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_workos_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_workos_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_workos_url": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_zoom_client_id": {
+ "type": "string",
+ "nullable": true
+ },
+ "external_zoom_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "external_zoom_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "hook_custom_access_token_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "hook_custom_access_token_uri": {
+ "type": "string",
+ "nullable": true
+ },
+ "hook_custom_access_token_secrets": {
+ "type": "string",
+ "nullable": true
+ },
+ "hook_mfa_verification_attempt_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "hook_mfa_verification_attempt_uri": {
+ "type": "string",
+ "nullable": true
},
- "ref": {
- "type": "string"
+ "hook_mfa_verification_attempt_secrets": {
+ "type": "string",
+ "nullable": true
},
- "postgres_version": {
- "type": "string"
+ "hook_password_verification_attempt_enabled": {
+ "type": "boolean",
+ "nullable": true
},
- "status": {
- "enum": [
- "ACTIVE_HEALTHY",
- "ACTIVE_UNHEALTHY",
- "COMING_UP",
- "GOING_DOWN",
- "INACTIVE",
- "INIT_FAILED",
- "REMOVED",
- "RESTORING",
- "UNKNOWN",
- "UPGRADING",
- "PAUSING"
- ],
- "type": "string"
+ "hook_password_verification_attempt_uri": {
+ "type": "string",
+ "nullable": true
},
- "db_host": {
- "type": "string"
+ "hook_password_verification_attempt_secrets": {
+ "type": "string",
+ "nullable": true
},
- "db_user": {
- "type": "string"
+ "hook_send_sms_enabled": {
+ "type": "boolean",
+ "nullable": true
},
- "db_pass": {
- "type": "string"
+ "hook_send_sms_uri": {
+ "type": "string",
+ "nullable": true
},
- "jwt_secret": {
- "type": "string"
- }
- },
- "required": [
- "db_port",
- "ref",
- "postgres_version",
- "status",
- "db_host"
- ]
- },
- "UpdateBranchBody": {
- "type": "object",
- "properties": {
- "branch_name": {
- "type": "string"
+ "hook_send_sms_secrets": {
+ "type": "string",
+ "nullable": true
},
- "git_branch": {
- "type": "string"
- }
- }
- },
- "BranchResponse": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
+ "hook_send_email_enabled": {
+ "type": "boolean",
+ "nullable": true
},
- "name": {
- "type": "string"
+ "hook_send_email_uri": {
+ "type": "string",
+ "nullable": true
},
- "project_ref": {
- "type": "string"
+ "hook_send_email_secrets": {
+ "type": "string",
+ "nullable": true
},
- "parent_project_ref": {
- "type": "string"
+ "jwt_exp": {
+ "type": "number",
+ "nullable": true
},
- "is_default": {
- "type": "boolean"
+ "mailer_allow_unverified_email_sign_ins": {
+ "type": "boolean",
+ "nullable": true
},
- "git_branch": {
- "type": "string"
+ "mailer_autoconfirm": {
+ "type": "boolean",
+ "nullable": true
},
- "created_at": {
- "type": "string"
+ "mailer_otp_exp": {
+ "type": "number",
+ "nullable": true
},
- "updated_at": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "name",
- "project_ref",
- "parent_project_ref",
- "is_default",
- "created_at",
- "updated_at"
- ]
- },
- "DatabaseResponse": {
- "type": "object",
- "properties": {
- "host": {
+ "mailer_otp_length": {
+ "type": "number",
+ "nullable": true
+ },
+ "mailer_secure_email_change_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "mailer_subjects_confirmation": {
"type": "string",
- "description": "Database host"
+ "nullable": true
},
- "version": {
+ "mailer_subjects_email_change": {
"type": "string",
- "description": "Database version"
- }
- },
- "required": [
- "host",
- "version"
- ]
- },
- "ProjectResponse": {
- "type": "object",
- "properties": {
- "id": {
+ "nullable": true
+ },
+ "mailer_subjects_invite": {
"type": "string",
- "description": "Id of your project"
+ "nullable": true
},
- "organization_id": {
+ "mailer_subjects_magic_link": {
"type": "string",
- "description": "Slug of your organization"
+ "nullable": true
},
- "name": {
+ "mailer_subjects_reauthentication": {
"type": "string",
- "description": "Name of your project"
+ "nullable": true
},
- "region": {
+ "mailer_subjects_recovery": {
"type": "string",
- "description": "Region of your project",
- "example": "us-east-1"
+ "nullable": true
},
- "created_at": {
+ "mailer_templates_confirmation_content": {
"type": "string",
- "description": "Creation timestamp",
- "example": "2023-03-29T16:32:59Z"
+ "nullable": true
},
- "database": {
- "type": "object",
- "properties": {
- "host": {
- "type": "string",
- "description": "Database host"
- },
- "version": {
- "type": "string",
- "description": "Database version"
- }
- },
- "required": [
- "host",
- "version"
- ]
- }
- },
- "required": [
- "id",
- "organization_id",
- "name",
- "region",
- "created_at"
- ]
- },
- "CreateProjectBody": {
- "type": "object",
- "properties": {
- "db_pass": {
+ "mailer_templates_email_change_content": {
"type": "string",
- "description": "Database password"
+ "nullable": true
},
- "name": {
+ "mailer_templates_invite_content": {
"type": "string",
- "description": "Name of your project, should not contain dots"
+ "nullable": true
},
- "organization_id": {
+ "mailer_templates_magic_link_content": {
"type": "string",
- "description": "Slug of your organization"
+ "nullable": true
},
- "plan": {
+ "mailer_templates_reauthentication_content": {
"type": "string",
- "enum": [
- "free",
- "pro"
- ],
- "description": "Subscription plan",
- "example": "free"
+ "nullable": true
},
- "region": {
+ "mailer_templates_recovery_content": {
"type": "string",
- "enum": [
- "us-east-1",
- "us-west-1",
- "us-west-2",
- "ap-southeast-1",
- "ap-northeast-1",
- "ap-northeast-2",
- "ap-southeast-2",
- "eu-west-1",
- "eu-west-2",
- "eu-west-3",
- "eu-central-1",
- "ca-central-1",
- "ap-south-1",
- "sa-east-1"
- ],
- "description": "Region you want your server to reside in",
- "example": "us-east-1"
+ "nullable": true
},
- "kps_enabled": {
- "type": "boolean"
- }
- },
- "required": [
- "db_pass",
- "name",
- "organization_id",
- "plan",
- "region"
- ]
- },
- "OrganizationResponse": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
+ "mfa_max_enrolled_factors": {
+ "type": "number",
+ "nullable": true
},
- "name": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "name"
- ]
- },
- "CreateOrganizationBody": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- }
- },
- "required": [
- "name"
- ]
- },
- "OAuthTokenBody": {
- "type": "object",
- "properties": {
- "grant_type": {
- "enum": [
- "authorization_code",
- "refresh_token"
- ],
- "type": "string"
+ "password_hibp_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "password_min_length": {
+ "type": "number",
+ "nullable": true
+ },
+ "password_required_characters": {
+ "type": "string",
+ "nullable": true
},
- "client_id": {
- "type": "string"
+ "rate_limit_anonymous_users": {
+ "type": "number",
+ "nullable": true
},
- "client_secret": {
- "type": "string"
+ "rate_limit_email_sent": {
+ "type": "number",
+ "nullable": true
},
- "code": {
- "type": "string"
+ "rate_limit_sms_sent": {
+ "type": "number",
+ "nullable": true
},
- "code_verifier": {
- "type": "string"
+ "rate_limit_token_refresh": {
+ "type": "number",
+ "nullable": true
},
- "redirect_uri": {
- "type": "string"
+ "rate_limit_verify": {
+ "type": "number",
+ "nullable": true
},
- "refresh_token": {
- "type": "string"
- }
- },
- "required": [
- "grant_type",
- "client_id",
- "client_secret"
- ]
- },
- "OAuthTokenResponse": {
- "type": "object",
- "properties": {
- "token_type": {
+ "refresh_token_rotation_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "saml_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "security_captcha_enabled": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "security_captcha_provider": {
"type": "string",
- "enum": [
- "Bearer"
- ]
+ "nullable": true
},
- "access_token": {
- "type": "string"
+ "security_captcha_secret": {
+ "type": "string",
+ "nullable": true
},
- "refresh_token": {
- "type": "string"
+ "security_manual_linking_enabled": {
+ "type": "boolean",
+ "nullable": true
},
- "expires_in": {
- "type": "number"
- }
- },
- "required": [
- "token_type",
- "access_token",
- "refresh_token",
- "expires_in"
- ]
- },
- "ApiKeyResponse": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
+ "security_refresh_token_reuse_interval": {
+ "type": "number",
+ "nullable": true
},
- "api_key": {
- "type": "string"
- }
- },
- "required": [
- "name",
- "api_key"
- ]
- },
- "CreateBranchBody": {
- "type": "object",
- "properties": {
- "branch_name": {
- "type": "string"
+ "security_update_password_require_reauthentication": {
+ "type": "boolean",
+ "nullable": true
},
- "git_branch": {
- "type": "string"
+ "sessions_inactivity_timeout": {
+ "type": "number",
+ "nullable": true
},
- "region": {
- "type": "string"
- }
- },
- "required": [
- "branch_name"
- ]
- },
- "UpdateCustomHostnameResponse": {
- "type": "object",
- "properties": {
- "status": {
- "enum": [
- "1_not_started",
- "2_initiated",
- "3_challenge_verified",
- "4_origin_setup_completed",
- "5_services_reconfigured"
- ],
- "type": "string"
+ "sessions_single_per_user": {
+ "type": "boolean",
+ "nullable": true
},
- "custom_hostname": {
- "type": "string"
+ "sessions_tags": {
+ "type": "string",
+ "nullable": true
},
- "data": {
- "type": "object"
- }
- },
- "required": [
- "status",
- "custom_hostname",
- "data"
- ]
- },
- "UpdateCustomHostnameBody": {
- "type": "object",
- "properties": {
- "custom_hostname": {
- "type": "string"
- }
- },
- "required": [
- "custom_hostname"
- ]
- },
- "NetworkBanResponse": {
- "type": "object",
- "properties": {
- "banned_ipv4_addresses": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "banned_ipv4_addresses"
- ]
- },
- "RemoveNetworkBanRequest": {
- "type": "object",
- "properties": {
- "ipv4_addresses": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "ipv4_addresses"
- ]
- },
- "NetworkRestrictionsRequest": {
- "type": "object",
- "properties": {
- "dbAllowedCidrs": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "dbAllowedCidrs"
- ]
- },
- "NetworkRestrictionsResponse": {
- "type": "object",
- "properties": {
- "entitlement": {
- "enum": [
- "disallowed",
- "allowed"
- ],
- "type": "string"
+ "sessions_timebox": {
+ "type": "number",
+ "nullable": true
},
- "config": {
- "type": "object",
- "properties": {
- "dbAllowedCidrs": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "dbAllowedCidrs"
- ]
+ "site_url": {
+ "type": "string",
+ "nullable": true
},
- "old_config": {
- "type": "object",
- "properties": {
- "dbAllowedCidrs": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "dbAllowedCidrs"
- ]
+ "sms_autoconfirm": {
+ "type": "boolean",
+ "nullable": true
},
- "status": {
- "enum": [
- "stored",
- "applied"
- ],
- "type": "string"
- }
- },
- "required": [
- "entitlement",
- "config",
- "status"
- ]
- },
- "PgsodiumConfigResponse": {
- "type": "object",
- "properties": {
- "root_key": {
- "type": "string"
- }
- },
- "required": [
- "root_key"
- ]
- },
- "UpdatePgsodiumConfigBody": {
- "type": "object",
- "properties": {
- "root_key": {
- "type": "string"
- }
- },
- "required": [
- "root_key"
- ]
- },
- "PostgrestConfigWithJWTSecretResponse": {
- "type": "object",
- "properties": {
- "max_rows": {
- "type": "integer"
+ "sms_max_frequency": {
+ "type": "number",
+ "nullable": true
},
- "db_schema": {
- "type": "string"
+ "sms_messagebird_access_key": {
+ "type": "string",
+ "nullable": true
},
- "db_extra_search_path": {
- "type": "string"
+ "sms_messagebird_originator": {
+ "type": "string",
+ "nullable": true
},
- "jwt_secret": {
- "type": "string"
- }
- },
- "required": [
- "max_rows",
- "db_schema",
- "db_extra_search_path"
- ]
- },
- "UpdatePostgrestConfigBody": {
- "type": "object",
- "properties": {
- "max_rows": {
- "type": "integer",
- "minimum": 0,
- "maximum": 1000000
+ "sms_otp_exp": {
+ "type": "number",
+ "nullable": true
},
- "db_extra_search_path": {
- "type": "string"
+ "sms_otp_length": {
+ "type": "number",
+ "nullable": true
},
- "db_schema": {
- "type": "string"
- }
- }
- },
- "PostgrestConfigResponse": {
- "type": "object",
- "properties": {
- "max_rows": {
- "type": "integer"
+ "sms_provider": {
+ "type": "string",
+ "nullable": true
},
- "db_schema": {
- "type": "string"
+ "sms_template": {
+ "type": "string",
+ "nullable": true
},
- "db_extra_search_path": {
- "type": "string"
- }
- },
- "required": [
- "max_rows",
- "db_schema",
- "db_extra_search_path"
- ]
- },
- "SecretResponse": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
+ "sms_test_otp": {
+ "type": "string",
+ "nullable": true
},
- "value": {
- "type": "string"
- }
- },
- "required": [
- "name",
- "value"
- ]
- },
- "CreateSecretBody": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
+ "sms_test_otp_valid_until": {
+ "type": "string",
+ "nullable": true
},
- "value": {
+ "sms_textlocal_api_key": {
"type": "string",
- "pattern": "/^(?!SUPABASE_).*/"
- }
- },
- "required": [
- "name",
- "value"
- ]
- },
- "SslEnforcements": {
- "type": "object",
- "properties": {
- "database": {
- "type": "boolean"
- }
- },
- "required": [
- "database"
- ]
- },
- "SslEnforcementResponse": {
- "type": "object",
- "properties": {
- "currentConfig": {
- "type": "object",
- "properties": {
- "database": {
- "type": "boolean"
- }
- },
- "required": [
- "database"
- ]
+ "nullable": true
},
- "appliedSuccessfully": {
- "type": "boolean"
- }
- },
- "required": [
- "currentConfig",
- "appliedSuccessfully"
- ]
- },
- "SslEnforcementRequest": {
- "type": "object",
- "properties": {
- "requestedConfig": {
- "type": "object",
- "properties": {
- "database": {
- "type": "boolean"
- }
- },
- "required": [
- "database"
- ]
- }
- },
- "required": [
- "requestedConfig"
- ]
- },
- "TypescriptResponse": {
- "type": "object",
- "properties": {
- "types": {
- "type": "string"
- }
- },
- "required": [
- "types"
- ]
- },
- "VanitySubdomainConfigResponse": {
- "type": "object",
- "properties": {
- "status": {
- "enum": [
- "not-used",
- "custom-domain-used",
- "active"
- ],
- "type": "string"
+ "sms_textlocal_sender": {
+ "type": "string",
+ "nullable": true
},
- "custom_domain": {
- "type": "string"
- }
- },
- "required": [
- "status"
- ]
- },
- "VanitySubdomainBody": {
- "type": "object",
- "properties": {
- "vanity_subdomain": {
- "type": "string"
- }
- },
- "required": [
- "vanity_subdomain"
- ]
- },
- "SubdomainAvailabilityResponse": {
- "type": "object",
- "properties": {
- "available": {
- "type": "boolean"
- }
- },
- "required": [
- "available"
- ]
- },
- "ActivateVanitySubdomainResponse": {
- "type": "object",
- "properties": {
- "custom_domain": {
- "type": "string"
- }
- },
- "required": [
- "custom_domain"
- ]
- },
- "UpgradeDatabaseBody": {
- "type": "object",
- "properties": {
- "target_version": {
- "type": "number"
+ "sms_twilio_account_sid": {
+ "type": "string",
+ "nullable": true
+ },
+ "sms_twilio_auth_token": {
+ "type": "string",
+ "nullable": true
+ },
+ "sms_twilio_content_sid": {
+ "type": "string",
+ "nullable": true
+ },
+ "sms_twilio_message_service_sid": {
+ "type": "string",
+ "nullable": true
+ },
+ "sms_twilio_verify_account_sid": {
+ "type": "string",
+ "nullable": true
+ },
+ "sms_twilio_verify_auth_token": {
+ "type": "string",
+ "nullable": true
+ },
+ "sms_twilio_verify_message_service_sid": {
+ "type": "string",
+ "nullable": true
+ },
+ "sms_vonage_api_key": {
+ "type": "string",
+ "nullable": true
+ },
+ "sms_vonage_api_secret": {
+ "type": "string",
+ "nullable": true
+ },
+ "sms_vonage_from": {
+ "type": "string",
+ "nullable": true
+ },
+ "smtp_admin_email": {
+ "type": "string",
+ "nullable": true
+ },
+ "smtp_host": {
+ "type": "string",
+ "nullable": true
+ },
+ "smtp_max_frequency": {
+ "type": "number",
+ "nullable": true
+ },
+ "smtp_pass": {
+ "type": "string",
+ "nullable": true
+ },
+ "smtp_port": {
+ "type": "string",
+ "nullable": true
+ },
+ "smtp_sender_name": {
+ "type": "string",
+ "nullable": true
+ },
+ "smtp_user": {
+ "type": "string",
+ "nullable": true
+ },
+ "uri_allow_list": {
+ "type": "string",
+ "nullable": true
}
},
"required": [
- "target_version"
+ "api_max_request_duration",
+ "db_max_pool_size",
+ "disable_signup",
+ "external_anonymous_users_enabled",
+ "external_apple_additional_client_ids",
+ "external_apple_client_id",
+ "external_apple_enabled",
+ "external_apple_secret",
+ "external_azure_client_id",
+ "external_azure_enabled",
+ "external_azure_secret",
+ "external_azure_url",
+ "external_bitbucket_client_id",
+ "external_bitbucket_enabled",
+ "external_bitbucket_secret",
+ "external_discord_client_id",
+ "external_discord_enabled",
+ "external_discord_secret",
+ "external_email_enabled",
+ "external_facebook_client_id",
+ "external_facebook_enabled",
+ "external_facebook_secret",
+ "external_figma_client_id",
+ "external_figma_enabled",
+ "external_figma_secret",
+ "external_github_client_id",
+ "external_github_enabled",
+ "external_github_secret",
+ "external_gitlab_client_id",
+ "external_gitlab_enabled",
+ "external_gitlab_secret",
+ "external_gitlab_url",
+ "external_google_additional_client_ids",
+ "external_google_client_id",
+ "external_google_enabled",
+ "external_google_secret",
+ "external_google_skip_nonce_check",
+ "external_kakao_client_id",
+ "external_kakao_enabled",
+ "external_kakao_secret",
+ "external_keycloak_client_id",
+ "external_keycloak_enabled",
+ "external_keycloak_secret",
+ "external_keycloak_url",
+ "external_linkedin_oidc_client_id",
+ "external_linkedin_oidc_enabled",
+ "external_linkedin_oidc_secret",
+ "external_notion_client_id",
+ "external_notion_enabled",
+ "external_notion_secret",
+ "external_phone_enabled",
+ "external_slack_client_id",
+ "external_slack_enabled",
+ "external_slack_secret",
+ "external_spotify_client_id",
+ "external_spotify_enabled",
+ "external_spotify_secret",
+ "external_twitch_client_id",
+ "external_twitch_enabled",
+ "external_twitch_secret",
+ "external_twitter_client_id",
+ "external_twitter_enabled",
+ "external_twitter_secret",
+ "external_workos_client_id",
+ "external_workos_enabled",
+ "external_workos_secret",
+ "external_workos_url",
+ "external_zoom_client_id",
+ "external_zoom_enabled",
+ "external_zoom_secret",
+ "hook_custom_access_token_enabled",
+ "hook_custom_access_token_uri",
+ "hook_custom_access_token_secrets",
+ "hook_mfa_verification_attempt_enabled",
+ "hook_mfa_verification_attempt_uri",
+ "hook_mfa_verification_attempt_secrets",
+ "hook_password_verification_attempt_enabled",
+ "hook_password_verification_attempt_uri",
+ "hook_password_verification_attempt_secrets",
+ "hook_send_sms_enabled",
+ "hook_send_sms_uri",
+ "hook_send_sms_secrets",
+ "hook_send_email_enabled",
+ "hook_send_email_uri",
+ "hook_send_email_secrets",
+ "jwt_exp",
+ "mailer_allow_unverified_email_sign_ins",
+ "mailer_autoconfirm",
+ "mailer_otp_exp",
+ "mailer_otp_length",
+ "mailer_secure_email_change_enabled",
+ "mailer_subjects_confirmation",
+ "mailer_subjects_email_change",
+ "mailer_subjects_invite",
+ "mailer_subjects_magic_link",
+ "mailer_subjects_reauthentication",
+ "mailer_subjects_recovery",
+ "mailer_templates_confirmation_content",
+ "mailer_templates_email_change_content",
+ "mailer_templates_invite_content",
+ "mailer_templates_magic_link_content",
+ "mailer_templates_reauthentication_content",
+ "mailer_templates_recovery_content",
+ "mfa_max_enrolled_factors",
+ "password_hibp_enabled",
+ "password_min_length",
+ "password_required_characters",
+ "rate_limit_anonymous_users",
+ "rate_limit_email_sent",
+ "rate_limit_sms_sent",
+ "rate_limit_token_refresh",
+ "rate_limit_verify",
+ "refresh_token_rotation_enabled",
+ "saml_enabled",
+ "security_captcha_enabled",
+ "security_captcha_provider",
+ "security_captcha_secret",
+ "security_manual_linking_enabled",
+ "security_refresh_token_reuse_interval",
+ "security_update_password_require_reauthentication",
+ "sessions_inactivity_timeout",
+ "sessions_single_per_user",
+ "sessions_tags",
+ "sessions_timebox",
+ "site_url",
+ "sms_autoconfirm",
+ "sms_max_frequency",
+ "sms_messagebird_access_key",
+ "sms_messagebird_originator",
+ "sms_otp_exp",
+ "sms_otp_length",
+ "sms_provider",
+ "sms_template",
+ "sms_test_otp",
+ "sms_test_otp_valid_until",
+ "sms_textlocal_api_key",
+ "sms_textlocal_sender",
+ "sms_twilio_account_sid",
+ "sms_twilio_auth_token",
+ "sms_twilio_content_sid",
+ "sms_twilio_message_service_sid",
+ "sms_twilio_verify_account_sid",
+ "sms_twilio_verify_auth_token",
+ "sms_twilio_verify_message_service_sid",
+ "sms_vonage_api_key",
+ "sms_vonage_api_secret",
+ "sms_vonage_from",
+ "smtp_admin_email",
+ "smtp_host",
+ "smtp_max_frequency",
+ "smtp_pass",
+ "smtp_port",
+ "smtp_sender_name",
+ "smtp_user",
+ "uri_allow_list"
]
},
- "ProjectVersion": {
+ "UpdateAuthConfigBody": {
"type": "object",
"properties": {
- "postgres_version": {
- "type": "number"
+ "site_url": {
+ "type": "string",
+ "pattern": "/^[^,]+$/"
},
- "app_version": {
+ "disable_signup": {
+ "type": "boolean"
+ },
+ "jwt_exp": {
+ "type": "number",
+ "minimum": 0,
+ "maximum": 604800
+ },
+ "smtp_admin_email": {
"type": "string"
- }
- },
- "required": [
- "postgres_version",
- "app_version"
- ]
- },
- "ProjectUpgradeEligibilityResponse": {
- "type": "object",
- "properties": {
- "eligible": {
+ },
+ "smtp_host": {
+ "type": "string"
+ },
+ "smtp_port": {
+ "type": "string"
+ },
+ "smtp_user": {
+ "type": "string"
+ },
+ "smtp_pass": {
+ "type": "string"
+ },
+ "smtp_max_frequency": {
+ "type": "number",
+ "minimum": 0,
+ "maximum": 32767
+ },
+ "smtp_sender_name": {
+ "type": "string"
+ },
+ "mailer_allow_unverified_email_sign_ins": {
"type": "boolean"
},
- "current_app_version": {
+ "mailer_autoconfirm": {
+ "type": "boolean"
+ },
+ "mailer_subjects_invite": {
"type": "string"
},
- "latest_app_version": {
+ "mailer_subjects_confirmation": {
"type": "string"
},
- "target_upgrade_versions": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "postgres_version": {
- "type": "number"
- },
- "app_version": {
- "type": "string"
- }
- },
- "required": [
- "postgres_version",
- "app_version"
- ]
- }
+ "mailer_subjects_recovery": {
+ "type": "string"
},
- "requires_manual_intervention": {
- "type": "string",
- "nullable": true
+ "mailer_subjects_email_change": {
+ "type": "string"
},
- "potential_breaking_changes": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "eligible",
- "current_app_version",
- "latest_app_version",
- "target_upgrade_versions",
- "requires_manual_intervention",
- "potential_breaking_changes"
- ]
- },
- "DatabaseUpgradeStatus": {
- "type": "object",
- "properties": {
- "initiated_at": {
+ "mailer_subjects_magic_link": {
"type": "string"
},
- "target_version": {
- "type": "number"
+ "mailer_subjects_reauthentication": {
+ "type": "string"
},
- "error": {
- "type": "string",
- "enum": [
- "1_upgraded_instance_launch_failed",
- "2_volume_detachchment_from_upgraded_instance_failed",
- "3_volume_attachment_to_original_instance_failed",
- "4_data_upgrade_initiation_failed",
- "5_data_upgrade_completion_failed",
- "6_volume_detachchment_from_original_instance_failed",
- "7_volume_attachment_to_upgraded_instance_failed",
- "8_upgrade_completion_failed"
- ]
+ "mailer_templates_invite_content": {
+ "type": "string"
},
- "progress": {
+ "mailer_templates_confirmation_content": {
+ "type": "string"
+ },
+ "mailer_templates_recovery_content": {
+ "type": "string"
+ },
+ "mailer_templates_email_change_content": {
+ "type": "string"
+ },
+ "mailer_templates_magic_link_content": {
+ "type": "string"
+ },
+ "mailer_templates_reauthentication_content": {
+ "type": "string"
+ },
+ "mfa_max_enrolled_factors": {
+ "type": "number",
+ "minimum": 0,
+ "maximum": 2147483647
+ },
+ "uri_allow_list": {
+ "type": "string"
+ },
+ "external_anonymous_users_enabled": {
+ "type": "boolean"
+ },
+ "external_email_enabled": {
+ "type": "boolean"
+ },
+ "external_phone_enabled": {
+ "type": "boolean"
+ },
+ "saml_enabled": {
+ "type": "boolean"
+ },
+ "security_captcha_enabled": {
+ "type": "boolean"
+ },
+ "security_captcha_provider": {
+ "type": "string"
+ },
+ "security_captcha_secret": {
+ "type": "string"
+ },
+ "sessions_timebox": {
+ "type": "number",
+ "minimum": 0
+ },
+ "sessions_inactivity_timeout": {
+ "type": "number",
+ "minimum": 0
+ },
+ "sessions_single_per_user": {
+ "type": "boolean"
+ },
+ "sessions_tags": {
"type": "string",
- "enum": [
- "1_started",
- "2_launched_upgraded_instance",
- "3_detached_volume_from_upgraded_instance",
- "4_attached_volume_to_original_instance",
- "5_initiated_data_upgrade",
- "6_completed_data_upgrade",
- "7_detached_volume_from_original_instance",
- "8_attached_volume_to_upgraded_instance",
- "9_completed_upgrade"
- ]
+ "pattern": "/^\\s*([a-z0-9_-]+(\\s*,+\\s*)?)*\\s*$/i"
},
- "status": {
+ "rate_limit_anonymous_users": {
"type": "number",
- "enum": [
- 0,
- 1,
- 2
- ]
- }
- },
- "required": [
- "initiated_at",
- "target_version",
- "status"
- ]
- },
- "DatabaseUpgradeStatusResponse": {
- "type": "object",
- "properties": {
- "databaseUpgradeStatus": {
- "nullable": true,
- "allOf": [
- {
- "type": "object",
- "properties": {
- "initiated_at": {
- "type": "string"
- },
- "target_version": {
- "type": "number"
- },
- "error": {
- "type": "string",
- "enum": [
- "1_upgraded_instance_launch_failed",
- "2_volume_detachchment_from_upgraded_instance_failed",
- "3_volume_attachment_to_original_instance_failed",
- "4_data_upgrade_initiation_failed",
- "5_data_upgrade_completion_failed",
- "6_volume_detachchment_from_original_instance_failed",
- "7_volume_attachment_to_upgraded_instance_failed",
- "8_upgrade_completion_failed"
- ]
- },
- "progress": {
- "type": "string",
- "enum": [
- "1_started",
- "2_launched_upgraded_instance",
- "3_detached_volume_from_upgraded_instance",
- "4_attached_volume_to_original_instance",
- "5_initiated_data_upgrade",
- "6_completed_data_upgrade",
- "7_detached_volume_from_original_instance",
- "8_attached_volume_to_upgraded_instance",
- "9_completed_upgrade"
- ]
- },
- "status": {
- "type": "number",
- "enum": [
- 0,
- 1,
- 2
- ]
- }
- },
- "required": [
- "initiated_at",
- "target_version",
- "status"
- ]
- }
+ "minimum": 1,
+ "maximum": 2147483647
+ },
+ "rate_limit_email_sent": {
+ "type": "number",
+ "minimum": 1,
+ "maximum": 2147483647
+ },
+ "rate_limit_sms_sent": {
+ "type": "number",
+ "minimum": 1,
+ "maximum": 2147483647
+ },
+ "rate_limit_verify": {
+ "type": "number",
+ "minimum": 1,
+ "maximum": 2147483647
+ },
+ "rate_limit_token_refresh": {
+ "type": "number",
+ "minimum": 1,
+ "maximum": 2147483647
+ },
+ "mailer_secure_email_change_enabled": {
+ "type": "boolean"
+ },
+ "refresh_token_rotation_enabled": {
+ "type": "boolean"
+ },
+ "password_hibp_enabled": {
+ "type": "boolean"
+ },
+ "password_min_length": {
+ "type": "number",
+ "minimum": 6,
+ "maximum": 32767
+ },
+ "password_required_characters": {
+ "type": "string",
+ "enum": [
+ "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ:0123456789",
+ "abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:0123456789",
+ "abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:0123456789:!@#$%^&*()_+-=[]{};'\\\\:\"|<>?,./`~",
+ ""
]
- }
- },
- "required": [
- "databaseUpgradeStatus"
- ]
- },
- "ReadOnlyStatusResponse": {
- "type": "object",
- "properties": {
- "enabled": {
+ },
+ "security_manual_linking_enabled": {
"type": "boolean"
},
- "override_enabled": {
+ "security_update_password_require_reauthentication": {
"type": "boolean"
},
- "override_active_until": {
+ "security_refresh_token_reuse_interval": {
+ "type": "number",
+ "minimum": 0,
+ "maximum": 2147483647
+ },
+ "mailer_otp_exp": {
+ "type": "number",
+ "minimum": 0,
+ "maximum": 2147483647
+ },
+ "mailer_otp_length": {
+ "type": "number",
+ "minimum": 6,
+ "maximum": 10
+ },
+ "sms_autoconfirm": {
+ "type": "boolean"
+ },
+ "sms_max_frequency": {
+ "type": "number",
+ "minimum": 0,
+ "maximum": 32767
+ },
+ "sms_otp_exp": {
+ "type": "number",
+ "minimum": 0,
+ "maximum": 2147483647
+ },
+ "sms_otp_length": {
+ "type": "number",
+ "minimum": 0,
+ "maximum": 32767
+ },
+ "sms_provider": {
"type": "string"
- }
- },
- "required": [
- "enabled",
- "override_enabled",
- "override_active_until"
- ]
- },
- "PostgresConfigResponse": {
- "type": "object",
- "properties": {
- "statement_timeout": {
+ },
+ "sms_messagebird_access_key": {
"type": "string"
},
- "effective_cache_size": {
+ "sms_messagebird_originator": {
"type": "string"
},
- "maintenance_work_mem": {
+ "sms_test_otp": {
+ "type": "string",
+ "pattern": "/^([0-9]{1,15}=[0-9]+,?)*$/"
+ },
+ "sms_test_otp_valid_until": {
"type": "string"
},
- "max_connections": {
- "type": "integer",
- "minimum": 1,
- "maximum": 262143
+ "sms_textlocal_api_key": {
+ "type": "string"
},
- "max_parallel_maintenance_workers": {
- "type": "integer",
- "minimum": 0,
- "maximum": 1024
+ "sms_textlocal_sender": {
+ "type": "string"
},
- "max_parallel_workers": {
- "type": "integer",
- "minimum": 0,
- "maximum": 1024
+ "sms_twilio_account_sid": {
+ "type": "string"
},
- "max_parallel_workers_per_gather": {
- "type": "integer",
- "minimum": 0,
- "maximum": 1024
+ "sms_twilio_auth_token": {
+ "type": "string"
},
- "max_worker_processes": {
- "type": "integer",
- "minimum": 0,
- "maximum": 262143
+ "sms_twilio_content_sid": {
+ "type": "string"
},
- "shared_buffers": {
+ "sms_twilio_message_service_sid": {
"type": "string"
},
- "work_mem": {
+ "sms_twilio_verify_account_sid": {
"type": "string"
},
- "session_replication_role": {
- "enum": [
- "origin",
- "replica",
- "local"
- ],
+ "sms_twilio_verify_auth_token": {
"type": "string"
- }
- }
- },
- "UpdatePostgresConfigBody": {
- "type": "object",
- "properties": {
- "statement_timeout": {
+ },
+ "sms_twilio_verify_message_service_sid": {
"type": "string"
},
- "effective_cache_size": {
+ "sms_vonage_api_key": {
"type": "string"
},
- "maintenance_work_mem": {
+ "sms_vonage_api_secret": {
"type": "string"
},
- "max_connections": {
- "type": "integer",
- "minimum": 1,
- "maximum": 262143
+ "sms_vonage_from": {
+ "type": "string"
},
- "max_parallel_maintenance_workers": {
- "type": "integer",
- "minimum": 0,
- "maximum": 1024
+ "sms_template": {
+ "type": "string"
},
- "max_parallel_workers": {
- "type": "integer",
- "minimum": 0,
- "maximum": 1024
+ "hook_mfa_verification_attempt_enabled": {
+ "type": "boolean"
},
- "max_parallel_workers_per_gather": {
- "type": "integer",
- "minimum": 0,
- "maximum": 1024
+ "hook_mfa_verification_attempt_uri": {
+ "type": "string"
},
- "max_worker_processes": {
- "type": "integer",
- "minimum": 0,
- "maximum": 262143
+ "hook_mfa_verification_attempt_secrets": {
+ "type": "string"
},
- "shared_buffers": {
+ "hook_password_verification_attempt_enabled": {
+ "type": "boolean"
+ },
+ "hook_password_verification_attempt_uri": {
"type": "string"
},
- "work_mem": {
+ "hook_password_verification_attempt_secrets": {
"type": "string"
},
- "session_replication_role": {
- "enum": [
- "origin",
- "replica",
- "local"
- ],
+ "hook_custom_access_token_enabled": {
+ "type": "boolean"
+ },
+ "hook_custom_access_token_uri": {
"type": "string"
- }
- }
- },
- "ProjectPgBouncerConfig": {
- "type": "object",
- "properties": {
- "db_dns_name": {
+ },
+ "hook_custom_access_token_secrets": {
"type": "string"
},
- "db_host": {
+ "hook_send_sms_enabled": {
+ "type": "boolean"
+ },
+ "hook_send_sms_uri": {
"type": "string"
},
- "db_name": {
+ "hook_send_sms_secrets": {
"type": "string"
},
- "db_port": {
- "type": "number"
+ "hook_send_email_enabled": {
+ "type": "boolean"
+ },
+ "hook_send_email_uri": {
+ "type": "string"
+ },
+ "hook_send_email_secrets": {
+ "type": "string"
},
- "db_ssl": {
+ "external_apple_enabled": {
"type": "boolean"
},
- "db_user": {
+ "external_apple_client_id": {
"type": "string"
},
- "default_pool_size": {
- "type": "number"
+ "external_apple_secret": {
+ "type": "string"
},
- "ignore_startup_parameters": {
+ "external_apple_additional_client_ids": {
"type": "string"
},
- "inserted_at": {
+ "external_azure_enabled": {
+ "type": "boolean"
+ },
+ "external_azure_client_id": {
+ "type": "string"
+ },
+ "external_azure_secret": {
+ "type": "string"
+ },
+ "external_azure_url": {
"type": "string"
},
- "pgbouncer_enabled": {
+ "external_bitbucket_enabled": {
"type": "boolean"
},
- "supavisor_enabled": {
+ "external_bitbucket_client_id": {
+ "type": "string"
+ },
+ "external_bitbucket_secret": {
+ "type": "string"
+ },
+ "external_discord_enabled": {
"type": "boolean"
},
- "pgbouncer_status": {
- "enum": [
- "COMING_DOWN",
- "COMING_UP",
- "DISABLED",
- "ENABLED",
- "RELOADING"
- ],
+ "external_discord_client_id": {
"type": "string"
},
- "pool_mode": {
- "enum": [
- "transaction",
- "session",
- "statement"
- ],
+ "external_discord_secret": {
"type": "string"
},
- "max_client_conn": {
- "type": "number",
- "nullable": true
+ "external_facebook_enabled": {
+ "type": "boolean"
},
- "connectionString": {
+ "external_facebook_client_id": {
"type": "string"
- }
- },
- "required": [
- "db_dns_name",
- "db_host",
- "db_name",
- "db_port",
- "db_ssl",
- "db_user",
- "ignore_startup_parameters",
- "inserted_at",
- "pgbouncer_enabled",
- "supavisor_enabled",
- "pgbouncer_status",
- "pool_mode",
- "connectionString"
- ]
- },
- "UpdatePgbouncerConfigBody": {
- "type": "object",
- "properties": {
- "default_pool_size": {
- "type": "integer",
- "minimum": 0,
- "maximum": 1000
},
- "max_client_conn": {
- "type": "integer",
- "nullable": true,
- "minimum": 0,
- "maximum": 18000
+ "external_facebook_secret": {
+ "type": "string"
+ },
+ "external_figma_enabled": {
+ "type": "boolean"
+ },
+ "external_figma_client_id": {
+ "type": "string"
+ },
+ "external_figma_secret": {
+ "type": "string"
+ },
+ "external_github_enabled": {
+ "type": "boolean"
+ },
+ "external_github_client_id": {
+ "type": "string"
+ },
+ "external_github_secret": {
+ "type": "string"
+ },
+ "external_gitlab_enabled": {
+ "type": "boolean"
+ },
+ "external_gitlab_client_id": {
+ "type": "string"
+ },
+ "external_gitlab_secret": {
+ "type": "string"
+ },
+ "external_gitlab_url": {
+ "type": "string"
+ },
+ "external_google_enabled": {
+ "type": "boolean"
+ },
+ "external_google_client_id": {
+ "type": "string"
+ },
+ "external_google_secret": {
+ "type": "string"
+ },
+ "external_google_additional_client_ids": {
+ "type": "string"
+ },
+ "external_google_skip_nonce_check": {
+ "type": "boolean"
+ },
+ "external_kakao_enabled": {
+ "type": "boolean"
+ },
+ "external_kakao_client_id": {
+ "type": "string"
+ },
+ "external_kakao_secret": {
+ "type": "string"
+ },
+ "external_keycloak_enabled": {
+ "type": "boolean"
+ },
+ "external_keycloak_client_id": {
+ "type": "string"
+ },
+ "external_keycloak_secret": {
+ "type": "string"
+ },
+ "external_keycloak_url": {
+ "type": "string"
+ },
+ "external_linkedin_oidc_enabled": {
+ "type": "boolean"
+ },
+ "external_linkedin_oidc_client_id": {
+ "type": "string"
+ },
+ "external_linkedin_oidc_secret": {
+ "type": "string"
},
- "ignore_startup_parameters": {
+ "external_notion_enabled": {
+ "type": "boolean"
+ },
+ "external_notion_client_id": {
+ "type": "string"
+ },
+ "external_notion_secret": {
"type": "string"
},
- "pgbouncer_enabled": {
+ "external_slack_enabled": {
"type": "boolean"
},
- "pool_mode": {
- "enum": [
- "transaction",
- "session",
- "statement"
- ],
+ "external_slack_client_id": {
"type": "string"
- }
- },
- "required": [
- "ignore_startup_parameters",
- "pgbouncer_enabled",
- "pool_mode"
- ]
- },
- "UpdatePoolingConfigResponse": {
- "type": "object",
- "properties": {
- "default_pool_size": {
- "type": "integer",
- "minimum": 0,
- "maximum": 1000
},
- "max_client_conn": {
- "type": "integer",
- "nullable": true,
- "minimum": 0,
- "maximum": 18000
+ "external_slack_secret": {
+ "type": "string"
},
- "ignore_startup_parameters": {
+ "external_spotify_enabled": {
+ "type": "boolean"
+ },
+ "external_spotify_client_id": {
+ "type": "string"
+ },
+ "external_spotify_secret": {
"type": "string"
},
- "pgbouncer_enabled": {
+ "external_twitch_enabled": {
"type": "boolean"
},
- "pool_mode": {
- "enum": [
- "transaction",
- "session",
- "statement"
- ],
+ "external_twitch_client_id": {
"type": "string"
},
- "pgbouncer_status": {
- "enum": [
- "COMING_DOWN",
- "COMING_UP",
- "DISABLED",
- "ENABLED",
- "RELOADING"
- ],
+ "external_twitch_secret": {
"type": "string"
- }
- },
- "required": [
- "ignore_startup_parameters",
- "pgbouncer_enabled",
- "pool_mode",
- "pgbouncer_status"
- ]
- },
- "AuthConfigResponse": {
- "type": "object",
- "properties": {
- "smtp_admin_email": {
+ },
+ "external_twitter_enabled": {
+ "type": "boolean"
+ },
+ "external_twitter_client_id": {
"type": "string"
},
- "smtp_host": {
+ "external_twitter_secret": {
"type": "string"
},
- "smtp_port": {
+ "external_workos_enabled": {
+ "type": "boolean"
+ },
+ "external_workos_client_id": {
"type": "string"
},
- "smtp_user": {
+ "external_workos_secret": {
"type": "string"
},
- "smtp_pass": {
+ "external_workos_url": {
"type": "string"
},
- "smtp_max_frequency": {
- "type": "number"
+ "external_zoom_enabled": {
+ "type": "boolean"
},
- "smtp_sender_name": {
+ "external_zoom_client_id": {
"type": "string"
},
- "rate_limit_email_sent": {
- "type": "number",
- "minimum": 0,
- "maximum": 2147483647
+ "external_zoom_secret": {
+ "type": "string"
+ },
+ "db_max_pool_size": {
+ "type": "number"
+ },
+ "api_max_request_duration": {
+ "type": "number"
}
}
},
- "UpdateAuthConfigBody": {
+ "CreateThirdPartyAuthBody": {
"type": "object",
"properties": {
- "smtp_admin_email": {
+ "oidc_issuer_url": {
"type": "string"
},
- "smtp_host": {
+ "jwks_url": {
"type": "string"
},
- "smtp_port": {
+ "custom_jwks": {
+ "type": "object"
+ }
+ }
+ },
+ "ThirdPartyAuth": {
+ "type": "object",
+ "properties": {
+ "id": {
"type": "string"
},
- "smtp_user": {
+ "type": {
"type": "string"
},
- "smtp_pass": {
- "type": "string"
+ "oidc_issuer_url": {
+ "type": "string",
+ "nullable": true
},
- "smtp_max_frequency": {
- "type": "number"
+ "jwks_url": {
+ "type": "string",
+ "nullable": true
},
- "smtp_sender_name": {
+ "custom_jwks": {
+ "type": "object",
+ "nullable": true
+ },
+ "resolved_jwks": {
+ "type": "object",
+ "nullable": true
+ },
+ "inserted_at": {
"type": "string"
},
- "rate_limit_email_sent": {
- "type": "number",
- "minimum": 0,
- "maximum": 2147483647
+ "updated_at": {
+ "type": "string"
+ },
+ "resolved_at": {
+ "type": "string",
+ "nullable": true
}
- }
+ },
+ "required": [
+ "id",
+ "type",
+ "inserted_at",
+ "updated_at"
+ ]
},
- "RunQueryBody": {
+ "V1RunQueryBody": {
"type": "object",
"properties": {
"query": {
@@ -6604,7 +11804,7 @@
"query"
]
},
- "CreateFunctionBody": {
+ "V1CreateFunctionBody": {
"type": "object",
"properties": {
"slug": {
@@ -6731,7 +11931,7 @@
"updated_at"
]
},
- "UpdateFunctionBody": {
+ "V1UpdateFunctionBody": {
"type": "object",
"properties": {
"name": {
@@ -6745,6 +11945,37 @@
}
}
},
+ "V1StorageBucketResponse": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "owner": {
+ "type": "string"
+ },
+ "created_at": {
+ "type": "string"
+ },
+ "updated_at": {
+ "type": "string"
+ },
+ "public": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "owner",
+ "created_at",
+ "updated_at",
+ "public"
+ ]
+ },
"AttributeValue": {
"type": "object",
"properties": {
@@ -7646,6 +12877,184 @@
"required": [
"id"
]
+ },
+ "V1Backup": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "COMPLETED",
+ "FAILED",
+ "PENDING",
+ "REMOVED",
+ "ARCHIVED"
+ ]
+ },
+ "is_physical_backup": {
+ "type": "boolean"
+ },
+ "inserted_at": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "status",
+ "is_physical_backup",
+ "inserted_at"
+ ]
+ },
+ "V1PhysicalBackup": {
+ "type": "object",
+ "properties": {
+ "earliest_physical_backup_date_unix": {
+ "type": "number"
+ },
+ "latest_physical_backup_date_unix": {
+ "type": "number"
+ }
+ }
+ },
+ "V1BackupsResponse": {
+ "type": "object",
+ "properties": {
+ "region": {
+ "type": "string"
+ },
+ "walg_enabled": {
+ "type": "boolean"
+ },
+ "pitr_enabled": {
+ "type": "boolean"
+ },
+ "backups": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "COMPLETED",
+ "FAILED",
+ "PENDING",
+ "REMOVED",
+ "ARCHIVED"
+ ]
+ },
+ "is_physical_backup": {
+ "type": "boolean"
+ },
+ "inserted_at": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "status",
+ "is_physical_backup",
+ "inserted_at"
+ ]
+ }
+ },
+ "physical_backup_data": {
+ "type": "object",
+ "properties": {
+ "earliest_physical_backup_date_unix": {
+ "type": "number"
+ },
+ "latest_physical_backup_date_unix": {
+ "type": "number"
+ }
+ }
+ }
+ },
+ "required": [
+ "region",
+ "walg_enabled",
+ "pitr_enabled",
+ "backups",
+ "physical_backup_data"
+ ]
+ },
+ "V1RestorePitrBody": {
+ "type": "object",
+ "properties": {
+ "recovery_time_target_unix": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "recovery_time_target_unix"
+ ]
+ },
+ "V1OrganizationMemberResponse": {
+ "type": "object",
+ "properties": {
+ "user_id": {
+ "type": "string"
+ },
+ "user_name": {
+ "type": "string"
+ },
+ "email": {
+ "type": "string"
+ },
+ "role_name": {
+ "type": "string"
+ },
+ "mfa_enabled": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "user_id",
+ "user_name",
+ "role_name",
+ "mfa_enabled"
+ ]
+ },
+ "BillingPlanId": {
+ "type": "string",
+ "enum": [
+ "free",
+ "pro",
+ "team",
+ "enterprise"
+ ]
+ },
+ "V1OrganizationSlugResponse": {
+ "type": "object",
+ "properties": {
+ "plan": {
+ "type": "string",
+ "enum": [
+ "free",
+ "pro",
+ "team",
+ "enterprise"
+ ]
+ },
+ "opt_in_tags": {
+ "type": "array",
+ "items": {
+ "type": "string",
+ "enum": [
+ "AI_SQL_GENERATOR_OPT_IN"
+ ]
+ }
+ },
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "opt_in_tags",
+ "id",
+ "name"
+ ]
}
}
}
diff --git a/package-lock.json b/package-lock.json
index c0d9ee04003..7b1927dccc5 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -225,6 +225,7 @@
"version": "0.0.0",
"dependencies": {
"@code-hike/mdx": "^0.9.0",
+ "@har-sdk/openapi-sampler": "^2.2.0",
"@mdx-js/loader": "^2.1.5",
"@mdx-js/react": "^2.3.0",
"@next/bundle-analyzer": "^14.2.3",
@@ -6938,6 +6939,68 @@
"resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.0.0.tgz",
"integrity": "sha512-vgbBJTS4m5/KkE16t5Ly0WW9hz46swAstv0hYYwMtbG7AznRhNyfLRe8HZAiWIpcHzoO7HxhLuBQj9rJ/Ho0ZA=="
},
+ "node_modules/@har-sdk/core": {
+ "version": "1.4.5",
+ "resolved": "https://registry.npmjs.org/@har-sdk/core/-/core-1.4.5.tgz",
+ "integrity": "sha512-h7QtA/uCK1wWkJXzeuNuzSS7PqjOirvwsQRSALT8yZ0UiZsyAQ6i7rH2l7aCRyREEbzmDMkTY5yCzW/l81H6Ag==",
+ "dependencies": {
+ "js-yaml": "^4.1.0",
+ "openapi-types": "^10.0.0",
+ "tslib": "^2.3.1"
+ }
+ },
+ "node_modules/@har-sdk/core/node_modules/argparse": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
+ "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q=="
+ },
+ "node_modules/@har-sdk/core/node_modules/js-yaml": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
+ "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",
+ "dependencies": {
+ "argparse": "^2.0.1"
+ },
+ "bin": {
+ "js-yaml": "bin/js-yaml.js"
+ }
+ },
+ "node_modules/@har-sdk/core/node_modules/openapi-types": {
+ "version": "10.0.0",
+ "resolved": "https://registry.npmjs.org/openapi-types/-/openapi-types-10.0.0.tgz",
+ "integrity": "sha512-Y8xOCT2eiKGYDzMW9R4x5cmfc3vGaaI4EL2pwhDmodWw1HlK18YcZ4uJxc7Rdp7/gGzAygzH9SXr6GKYIXbRcQ=="
+ },
+ "node_modules/@har-sdk/openapi-sampler": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/@har-sdk/openapi-sampler/-/openapi-sampler-2.2.0.tgz",
+ "integrity": "sha512-WcuGKCsFQzMlJOaeKFxMUx89EULvTvZ5GvPAeAhC4yUKz7khhN34YkuLsbn4z2BLLtrJ0oxduF5+Wa2kB3tw8w==",
+ "dependencies": {
+ "@har-sdk/core": "1.4.5",
+ "json-pointer": "^0.6.2",
+ "randexp": "^0.5.3",
+ "tslib": "^2.3.1"
+ }
+ },
+ "node_modules/@har-sdk/openapi-sampler/node_modules/randexp": {
+ "version": "0.5.3",
+ "resolved": "https://registry.npmjs.org/randexp/-/randexp-0.5.3.tgz",
+ "integrity": "sha512-U+5l2KrcMNOUPYvazA3h5ekF80FHTUG+87SEAmHZmolh1M+i/WyTCxVzmi+tidIa1tM4BSe8g2Y/D3loWDjj+w==",
+ "dependencies": {
+ "drange": "^1.0.2",
+ "ret": "^0.2.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/@har-sdk/openapi-sampler/node_modules/ret": {
+ "version": "0.2.2",
+ "resolved": "https://registry.npmjs.org/ret/-/ret-0.2.2.tgz",
+ "integrity": "sha512-M0b3YWQs7R3Z917WRQy1HHA7Ba7D8hvZg6UE5mLykJxQVE2ju0IXbGlaHPPlkY+WN7wFP+wUMXmBFA0aV6vYGQ==",
+ "engines": {
+ "node": ">=4"
+ }
+ },
"node_modules/@hcaptcha/loader": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/@hcaptcha/loader/-/loader-1.1.2.tgz",
@@ -22785,6 +22848,14 @@
"dev": true,
"license": "BSD-3-Clause"
},
+ "node_modules/drange": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/drange/-/drange-1.1.1.tgz",
+ "integrity": "sha512-pYxfDYpued//QpnLIm4Avk7rsNtAtQkUES2cwAYSvD/wd2pKD71gN2Ebj3e7klzXwjocvE8c5vx/1fxwpqmSxA==",
+ "engines": {
+ "node": ">=4"
+ }
+ },
"node_modules/duplexer": {
"version": "0.1.2",
"resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz",
@@ -24924,8 +24995,7 @@
"node_modules/foreach": {
"version": "2.0.6",
"resolved": "https://registry.npmjs.org/foreach/-/foreach-2.0.6.tgz",
- "integrity": "sha512-k6GAGDyqLe9JaebCsFCoudPPWfihKu8pylYXRlqP1J7ms39iPoTtk2fviNglIeQEwdh0bQeKJ01ZPyuyQvKzwg==",
- "dev": true
+ "integrity": "sha512-k6GAGDyqLe9JaebCsFCoudPPWfihKu8pylYXRlqP1J7ms39iPoTtk2fviNglIeQEwdh0bQeKJ01ZPyuyQvKzwg=="
},
"node_modules/foreground-child": {
"version": "3.1.1",
@@ -29828,7 +29898,6 @@
"version": "0.6.2",
"resolved": "https://registry.npmjs.org/json-pointer/-/json-pointer-0.6.2.tgz",
"integrity": "sha512-vLWcKbOaXlO+jvRy4qNd+TI1QUPZzfJj1tpJ3vAXDych5XJf93ftpUKe5pKCrzyIIwgBJcOcCVRUfqQP25afBw==",
- "dev": true,
"dependencies": {
"foreach": "^2.0.4"
}
@@ -36426,9 +36495,9 @@
}
},
"node_modules/openapi-sampler": {
- "version": "1.4.0",
- "resolved": "https://registry.npmjs.org/openapi-sampler/-/openapi-sampler-1.4.0.tgz",
- "integrity": "sha512-3FKJQCHAMG9T7RsRy9u5Ft4ERPq1QQmn77C8T3OSofYL9uur59AqychvQ0YQKijrqRwIkAbzkh+nQnAE3gjMVA==",
+ "version": "1.5.1",
+ "resolved": "https://registry.npmjs.org/openapi-sampler/-/openapi-sampler-1.5.1.tgz",
+ "integrity": "sha512-tIWIrZUKNAsbqf3bd9U1oH6JEXo8LNYuDlXw26By67EygpjT+ArFnsxxyTMjFWRfbqo5ozkvgSQDK69Gd8CddA==",
"dev": true,
"dependencies": {
"@types/json-schema": "^7.0.7",