Skip to content

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

Better API usage

Copple51baacfba16a
diff --git a/apps/reference/_api/usage.mdx b/apps/reference/_api/usage.mdx
index dffc811a487..53d2cd036d4 100644
--- a/apps/reference/_api/usage.mdx
+++ b/apps/reference/_api/usage.mdx
@@ -1,8 +1,13 @@
---
id: usage
title: Usage
+toc_max_heading_level: 3
---
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
@@ -14,36 +19,254 @@ title: Usage
-### Lists all organizations
+
+## Lists all organizations {#lists-all-organizations}
```
-/v1/organizations
+GET https://api.supabase.com/v1/organizations
+```
+
+
+### Responses
+
+<Tabs>
+
+<TabItem value="200">
+
+
+
+<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
+
+```json
+{
+ "schema": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "name"
+ ]
+ }
+ }
+}
```
+<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
+</TabItem>
+
+<TabItem value="500">
+
+Unexpected error listing organizations
+
+<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
+
+
+<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
+</TabItem>
+
+</Tabs>
+
+<br />
+
-### Creates an organization
+## Creates an organization {#creates-an-organization}
+
+```
+POST https://api.supabase.com/v1/organizations
```
-/v1/organizations
+
+
+### Responses
+
+<Tabs>
+
+<TabItem value="201">
+
+
+
+<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
+
+```json
+{
+ "schema": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "name"
+ ]
+ }
+}
```
+<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
+</TabItem>
+
+<TabItem value="500">
+
+Unexpected error creating an organization
+
+<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
+
+
+<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
+</TabItem>
+
+</Tabs>
+
+<br />
+
+
-### Gets all projects that belong to the authenticated user
+## Gets all projects that belong to the authenticated user {#gets-all-projects-that-belong-to-the-authenticated-user}
```
-/v1/projects
+GET https://api.supabase.com/v1/projects
+```
+
+
+### Responses
+
+<Tabs>
+
+<TabItem value="200">
+
+
+
+<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
+
+```json
+{
+ "schema": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "organization_id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "region": {
+ "type": "string"
+ },
+ "created_at": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "organization_id",
+ "name",
+ "region",
+ "created_at"
+ ]
+ }
+ }
+}
```
+<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
+</TabItem>
+
+</Tabs>
+
+<br />
+
+
-### Creates a project
+## Creates a project {#creates-a-project}
```
-/v1/projects
+POST https://api.supabase.com/v1/projects
+```
+
+
+### Responses
+
+<Tabs>
+
+<TabItem value="200">
+
+
+
+<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
+
+```json
+{
+ "schema": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "organization_id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "region": {
+ "type": "string"
+ },
+ "created_at": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "organization_id",
+ "name",
+ "region",
+ "created_at"
+ ]
+ }
+}
```
+<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
+</TabItem>
+
+</Tabs>
+
+<br />
+
diff --git a/packages/spec/package-lock.json b/packages/spec/package-lock.json
index 5ed476c0b73..41eb5793d6b 100644
--- a/packages/spec/package-lock.json
+++ b/packages/spec/package-lock.json
@@ -8,6 +8,9 @@
"name": "@supabase/generator",
"version": "0.0.0",
"license": "MIT",
+ "dependencies": {
+ "@apidevtools/swagger-cli": "^4.0.4"
+ },
"devDependencies": {
"@types/lodash": "^4.14.182",
"ejs": "^3.1.8",
@@ -17,6 +20,103 @@
"ts-node": "^10.9.1"
}
},
+ "node_modules/@apidevtools/json-schema-ref-parser": {
+ "version": "9.0.6",
+ "resolved": "https://registry.npmjs.org/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-9.0.6.tgz",
+ "integrity": "sha512-M3YgsLjI0lZxvrpeGVk9Ap032W6TPQkH6pRAZz81Ac3WUNF79VQooAFnp8umjvVzUmD93NkogxEwbSce7qMsUg==",
+ "dependencies": {
+ "@jsdevtools/ono": "^7.1.3",
+ "call-me-maybe": "^1.0.1",
+ "js-yaml": "^3.13.1"
+ }
+ },
+ "node_modules/@apidevtools/json-schema-ref-parser/node_modules/argparse": {
+ "version": "1.0.10",
+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",
+ "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",
+ "dependencies": {
+ "sprintf-js": "~1.0.2"
+ }
+ },
+ "node_modules/@apidevtools/json-schema-ref-parser/node_modules/js-yaml": {
+ "version": "3.14.1",
+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz",
+ "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==",
+ "dependencies": {
+ "argparse": "^1.0.7",
+ "esprima": "^4.0.0"
+ },
+ "bin": {
+ "js-yaml": "bin/js-yaml.js"
+ }
+ },
+ "node_modules/@apidevtools/openapi-schemas": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@apidevtools/openapi-schemas/-/openapi-schemas-2.1.0.tgz",
+ "integrity": "sha512-Zc1AlqrJlX3SlpupFGpiLi2EbteyP7fXmUOGup6/DnkRgjP9bgMM/ag+n91rsv0U1Gpz0H3VILA/o3bW7Ua6BQ==",
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@apidevtools/swagger-cli": {
+ "version": "4.0.4",
+ "resolved": "https://registry.npmjs.org/@apidevtools/swagger-cli/-/swagger-cli-4.0.4.tgz",
+ "integrity": "sha512-hdDT3B6GLVovCsRZYDi3+wMcB1HfetTU20l2DC8zD3iFRNMC6QNAZG5fo/6PYeHWBEv7ri4MvnlKodhNB0nt7g==",
+ "dependencies": {
+ "@apidevtools/swagger-parser": "^10.0.1",
+ "chalk": "^4.1.0",
+ "js-yaml": "^3.14.0",
+ "yargs": "^15.4.1"
+ },
+ "bin": {
+ "swagger-cli": "bin/swagger-cli.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@apidevtools/swagger-cli/node_modules/argparse": {
+ "version": "1.0.10",
+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",
+ "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",
+ "dependencies": {
+ "sprintf-js": "~1.0.2"
+ }
+ },
+ "node_modules/@apidevtools/swagger-cli/node_modules/js-yaml": {
+ "version": "3.14.1",
+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz",
+ "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==",
+ "dependencies": {
+ "argparse": "^1.0.7",
+ "esprima": "^4.0.0"
+ },
+ "bin": {
+ "js-yaml": "bin/js-yaml.js"
+ }
+ },
+ "node_modules/@apidevtools/swagger-methods": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/@apidevtools/swagger-methods/-/swagger-methods-3.0.2.tgz",
+ "integrity": "sha512-QAkD5kK2b1WfjDS/UQn/qQkbwF31uqRjPTrsCs5ZG9BQGAkjwvqGFjjPqAuzac/IYzpPtRzjCP1WrTuAIjMrXg=="
+ },
+ "node_modules/@apidevtools/swagger-parser": {
+ "version": "10.1.0",
+ "resolved": "https://registry.npmjs.org/@apidevtools/swagger-parser/-/swagger-parser-10.1.0.tgz",
+ "integrity": "sha512-9Kt7EuS/7WbMAUv2gSziqjvxwDbFSg3Xeyfuj5laUODX8o/k/CpsAKiQ8W7/R88eXFTMbJYg6+7uAmOWNKmwnw==",
+ "dependencies": {
+ "@apidevtools/json-schema-ref-parser": "9.0.6",
+ "@apidevtools/openapi-schemas": "^2.1.0",
+ "@apidevtools/swagger-methods": "^3.0.2",
+ "@jsdevtools/ono": "^7.1.3",
+ "ajv": "^8.6.3",
+ "ajv-draft-04": "^1.0.0",
+ "call-me-maybe": "^1.0.1"
+ },
+ "peerDependencies": {
+ "openapi-types": ">=7"
+ }
+ },
"node_modules/@cspotcode/source-map-support": {
"version": "0.8.1",
"resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz",
@@ -54,6 +154,11 @@
"@jridgewell/sourcemap-codec": "^1.4.10"
}
},
+ "node_modules/@jsdevtools/ono": {
+ "version": "7.1.3",
+ "resolved": "https://registry.npmjs.org/@jsdevtools/ono/-/ono-7.1.3.tgz",
+ "integrity": "sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg=="
+ },
"node_modules/@tsconfig/node10": {
"version": "1.0.9",
"resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz",
@@ -112,11 +217,46 @@
"node": ">=0.4.0"
}
},
+ "node_modules/ajv": {
+ "version": "8.11.0",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.11.0.tgz",
+ "integrity": "sha512-wGgprdCvMalC0BztXvitD2hC04YffAvtsUn93JbGXYLAtCUO4xd17mCCZQxUOItiBwZvJScWo8NIvQMQ71rdpg==",
+ "dependencies": {
+ "fast-deep-equal": "^3.1.1",
+ "json-schema-traverse": "^1.0.0",
+ "require-from-string": "^2.0.2",
+ "uri-js": "^4.2.2"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/epoberezkin"
+ }
+ },
+ "node_modules/ajv-draft-04": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/ajv-draft-04/-/ajv-draft-04-1.0.0.tgz",
+ "integrity": "sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw==",
+ "peerDependencies": {
+ "ajv": "^8.5.0"
+ },
+ "peerDependenciesMeta": {
+ "ajv": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/ansi-regex": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
+ "engines": {
+ "node": ">=8"
+ }
+ },
"node_modules/ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
- "dev": true,
"dependencies": {
"color-convert": "^2.0.1"
},
@@ -161,11 +301,23 @@
"concat-map": "0.0.1"
}
},
+ "node_modules/call-me-maybe": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/call-me-maybe/-/call-me-maybe-1.0.1.tgz",
+ "integrity": "sha512-wCyFsDQkKPwwF8BDwOiWNx/9K45L/hvggQiDbve+viMNMQnWhrlYIuBk09offfwCRtCO9P6XwUttufzU11WCVw=="
+ },
+ "node_modules/camelcase": {
+ "version": "5.3.1",
+ "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz",
+ "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==",
+ "engines": {
+ "node": ">=6"
+ }
+ },
"node_modules/chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
- "dev": true,
"dependencies": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
@@ -177,11 +329,20 @@
"url": "https://github.com/chalk/chalk?sponsor=1"
}
},
+ "node_modules/cliui": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz",
+ "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==",
+ "dependencies": {
+ "string-width": "^4.2.0",
+ "strip-ansi": "^6.0.0",
+ "wrap-ansi": "^6.2.0"
+ }
+ },
"node_modules/color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
- "dev": true,
"dependencies": {
"color-name": "~1.1.4"
},
@@ -192,8 +353,7 @@
"node_modules/color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
- "dev": true
+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
},
"node_modules/concat-map": {
"version": "0.0.1",
@@ -207,6 +367,14 @@
"integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==",
"dev": true
},
+ "node_modules/decamelize": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz",
+ "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
"node_modules/diff": {
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz",
@@ -231,6 +399,28 @@
"node": ">=0.10.0"
}
},
+ "node_modules/emoji-regex": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="
+ },
+ "node_modules/esprima": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
+ "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==",
+ "bin": {
+ "esparse": "bin/esparse.js",
+ "esvalidate": "bin/esvalidate.js"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/fast-deep-equal": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
+ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q=="
+ },
"node_modules/filelist": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz",
@@ -261,11 +451,38 @@
"node": ">=10"
}
},
+ "node_modules/find-up": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz",
+ "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==",
+ "dependencies": {
+ "locate-path": "^5.0.0",
+ "path-exists": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/get-caller-file": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",
+ "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",
+ "engines": {
+ "node": "6.* || 8.* || >= 10.*"
+ }
+ },
"node_modules/has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
- "dev": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
"engines": {
"node": ">=8"
}
@@ -300,6 +517,22 @@
"js-yaml": "bin/js-yaml.js"
}
},
+ "node_modules/json-schema-traverse": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
+ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug=="
+ },
+ "node_modules/locate-path": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz",
+ "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==",
+ "dependencies": {
+ "p-locate": "^4.1.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
"node_modules/lodash": {
"version": "4.17.21",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
@@ -327,14 +560,116 @@
"node_modules/openapi-types": {
"version": "12.0.0",
"resolved": "https://registry.npmjs.org/openapi-types/-/openapi-types-12.0.0.tgz",
- "integrity": "sha512-6Wd9k8nmGQHgCbehZCP6wwWcfXcvinhybUTBatuhjRsCxUIujuYFZc9QnGeae75CyHASewBtxs0HX/qwREReUw==",
- "dev": true
+ "integrity": "sha512-6Wd9k8nmGQHgCbehZCP6wwWcfXcvinhybUTBatuhjRsCxUIujuYFZc9QnGeae75CyHASewBtxs0HX/qwREReUw=="
+ },
+ "node_modules/p-limit": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz",
+ "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==",
+ "dependencies": {
+ "p-try": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/p-locate": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz",
+ "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==",
+ "dependencies": {
+ "p-limit": "^2.2.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/p-try": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",
+ "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/path-exists": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
+ "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/punycode": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz",
+ "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/require-directory": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
+ "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/require-from-string": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",
+ "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/require-main-filename": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz",
+ "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg=="
+ },
+ "node_modules/set-blocking": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",
+ "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw=="
+ },
+ "node_modules/sprintf-js": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
+ "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g=="
+ },
+ "node_modules/string-width": {
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
+ "dependencies": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/strip-ansi": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
},
"node_modules/supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
- "dev": true,
"dependencies": {
"has-flag": "^4.0.0"
},
@@ -399,12 +734,76 @@
"node": ">=4.2.0"
}
},
+ "node_modules/uri-js": {
+ "version": "4.4.1",
+ "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",
+ "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",
+ "dependencies": {
+ "punycode": "^2.1.0"
+ }
+ },
"node_modules/v8-compile-cache-lib": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz",
"integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==",
"dev": true
},
+ "node_modules/which-module": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz",
+ "integrity": "sha512-B+enWhmw6cjfVC7kS8Pj9pCrKSc5txArRyaYGe088shv/FGWH+0Rjx/xPgtsWfsUtS27FkP697E4DDhgrgoc0Q=="
+ },
+ "node_modules/wrap-ansi": {
+ "version": "6.2.0",
+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz",
+ "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==",
+ "dependencies": {
+ "ansi-styles": "^4.0.0",
+ "string-width": "^4.1.0",
+ "strip-ansi": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/y18n": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz",
+ "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ=="
+ },
+ "node_modules/yargs": {
+ "version": "15.4.1",
+ "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz",
+ "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==",
+ "dependencies": {
+ "cliui": "^6.0.0",
+ "decamelize": "^1.2.0",
+ "find-up": "^4.1.0",
+ "get-caller-file": "^2.0.1",
+ "require-directory": "^2.1.1",
+ "require-main-filename": "^2.0.0",
+ "set-blocking": "^2.0.0",
+ "string-width": "^4.2.0",
+ "which-module": "^2.0.0",
+ "y18n": "^4.0.0",
+ "yargs-parser": "^18.1.2"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/yargs-parser": {
+ "version": "18.1.3",
+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz",
+ "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==",
+ "dependencies": {
+ "camelcase": "^5.0.0",
+ "decamelize": "^1.2.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
"node_modules/yn": {
"version": "3.1.1",
"resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz",
@@ -416,6 +815,89 @@
}
},
"dependencies": {
+ "@apidevtools/json-schema-ref-parser": {
+ "version": "9.0.6",
+ "resolved": "https://registry.npmjs.org/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-9.0.6.tgz",
+ "integrity": "sha512-M3YgsLjI0lZxvrpeGVk9Ap032W6TPQkH6pRAZz81Ac3WUNF79VQooAFnp8umjvVzUmD93NkogxEwbSce7qMsUg==",
+ "requires": {
+ "@jsdevtools/ono": "^7.1.3",
+ "call-me-maybe": "^1.0.1",
+ "js-yaml": "^3.13.1"
+ },
+ "dependencies": {
+ "argparse": {
+ "version": "1.0.10",
+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",
+ "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",
+ "requires": {
+ "sprintf-js": "~1.0.2"
+ }
+ },
+ "js-yaml": {
+ "version": "3.14.1",
+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz",
+ "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==",
+ "requires": {
+ "argparse": "^1.0.7",
+ "esprima": "^4.0.0"
+ }
+ }
+ }
+ },
+ "@apidevtools/openapi-schemas": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@apidevtools/openapi-schemas/-/openapi-schemas-2.1.0.tgz",
+ "integrity": "sha512-Zc1AlqrJlX3SlpupFGpiLi2EbteyP7fXmUOGup6/DnkRgjP9bgMM/ag+n91rsv0U1Gpz0H3VILA/o3bW7Ua6BQ=="
+ },
+ "@apidevtools/swagger-cli": {
+ "version": "4.0.4",
+ "resolved": "https://registry.npmjs.org/@apidevtools/swagger-cli/-/swagger-cli-4.0.4.tgz",
+ "integrity": "sha512-hdDT3B6GLVovCsRZYDi3+wMcB1HfetTU20l2DC8zD3iFRNMC6QNAZG5fo/6PYeHWBEv7ri4MvnlKodhNB0nt7g==",
+ "requires": {
+ "@apidevtools/swagger-parser": "^10.0.1",
+ "chalk": "^4.1.0",
+ "js-yaml": "^3.14.0",
+ "yargs": "^15.4.1"
+ },
+ "dependencies": {
+ "argparse": {
+ "version": "1.0.10",
+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",
+ "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",
+ "requires": {
+ "sprintf-js": "~1.0.2"
+ }
+ },
+ "js-yaml": {
+ "version": "3.14.1",
+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz",
+ "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==",
+ "requires": {
+ "argparse": "^1.0.7",
+ "esprima": "^4.0.0"
+ }
+ }
+ }
+ },
+ "@apidevtools/swagger-methods": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/@apidevtools/swagger-methods/-/swagger-methods-3.0.2.tgz",
+ "integrity": "sha512-QAkD5kK2b1WfjDS/UQn/qQkbwF31uqRjPTrsCs5ZG9BQGAkjwvqGFjjPqAuzac/IYzpPtRzjCP1WrTuAIjMrXg=="
+ },
+ "@apidevtools/swagger-parser": {
+ "version": "10.1.0",
+ "resolved": "https://registry.npmjs.org/@apidevtools/swagger-parser/-/swagger-parser-10.1.0.tgz",
+ "integrity": "sha512-9Kt7EuS/7WbMAUv2gSziqjvxwDbFSg3Xeyfuj5laUODX8o/k/CpsAKiQ8W7/R88eXFTMbJYg6+7uAmOWNKmwnw==",
+ "requires": {
+ "@apidevtools/json-schema-ref-parser": "9.0.6",
+ "@apidevtools/openapi-schemas": "^2.1.0",
+ "@apidevtools/swagger-methods": "^3.0.2",
+ "@jsdevtools/ono": "^7.1.3",
+ "ajv": "^8.6.3",
+ "ajv-draft-04": "^1.0.0",
+ "call-me-maybe": "^1.0.1"
+ }
+ },
"@cspotcode/source-map-support": {
"version": "0.8.1",
"resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz",
@@ -447,6 +929,11 @@
"@jridgewell/sourcemap-codec": "^1.4.10"
}
},
+ "@jsdevtools/ono": {
+ "version": "7.1.3",
+ "resolved": "https://registry.npmjs.org/@jsdevtools/ono/-/ono-7.1.3.tgz",
+ "integrity": "sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg=="
+ },
"@tsconfig/node10": {
"version": "1.0.9",
"resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz",
@@ -496,11 +983,32 @@
"integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==",
"dev": true
},
+ "ajv": {
+ "version": "8.11.0",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.11.0.tgz",
+ "integrity": "sha512-wGgprdCvMalC0BztXvitD2hC04YffAvtsUn93JbGXYLAtCUO4xd17mCCZQxUOItiBwZvJScWo8NIvQMQ71rdpg==",
+ "requires": {
+ "fast-deep-equal": "^3.1.1",
+ "json-schema-traverse": "^1.0.0",
+ "require-from-string": "^2.0.2",
+ "uri-js": "^4.2.2"
+ }
+ },
+ "ajv-draft-04": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/ajv-draft-04/-/ajv-draft-04-1.0.0.tgz",
+ "integrity": "sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw==",
+ "requires": {}
+ },
+ "ansi-regex": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ=="
+ },
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
- "dev": true,
"requires": {
"color-convert": "^2.0.1"
}
@@ -539,21 +1047,39 @@
"concat-map": "0.0.1"
}
},
+ "call-me-maybe": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/call-me-maybe/-/call-me-maybe-1.0.1.tgz",
+ "integrity": "sha512-wCyFsDQkKPwwF8BDwOiWNx/9K45L/hvggQiDbve+viMNMQnWhrlYIuBk09offfwCRtCO9P6XwUttufzU11WCVw=="
+ },
+ "camelcase": {
+ "version": "5.3.1",
+ "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz",
+ "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg=="
+ },
"chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
- "dev": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
+ "cliui": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz",
+ "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==",
+ "requires": {
+ "string-width": "^4.2.0",
+ "strip-ansi": "^6.0.0",
+ "wrap-ansi": "^6.2.0"
+ }
+ },
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
- "dev": true,
"requires": {
"color-name": "~1.1.4"
}
@@ -561,8 +1087,7 @@
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
- "dev": true
+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
},
"concat-map": {
"version": "0.0.1",
@@ -576,6 +1101,11 @@
"integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==",
"dev": true
},
+ "decamelize": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz",
+ "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA=="
+ },
"diff": {
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz",
@@ -591,6 +1121,21 @@
"jake": "^10.8.5"
}
},
+ "emoji-regex": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="
+ },
+ "esprima": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
+ "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A=="
+ },
+ "fast-deep-equal": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
+ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q=="
+ },
"filelist": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz",
@@ -620,11 +1165,29 @@
}
}
},
+ "find-up": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz",
+ "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==",
+ "requires": {
+ "locate-path": "^5.0.0",
+ "path-exists": "^4.0.0"
+ }
+ },
+ "get-caller-file": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",
+ "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg=="
+ },
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
- "dev": true
+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="
+ },
+ "is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg=="
},
"jake": {
"version": "10.8.5",
@@ -647,6 +1210,19 @@
"argparse": "^2.0.1"
}
},
+ "json-schema-traverse": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
+ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug=="
+ },
+ "locate-path": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz",
+ "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==",
+ "requires": {
+ "p-locate": "^4.1.0"
+ }
+ },
"lodash": {
"version": "4.17.21",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
@@ -671,14 +1247,86 @@
"openapi-types": {
"version": "12.0.0",
"resolved": "https://registry.npmjs.org/openapi-types/-/openapi-types-12.0.0.tgz",
- "integrity": "sha512-6Wd9k8nmGQHgCbehZCP6wwWcfXcvinhybUTBatuhjRsCxUIujuYFZc9QnGeae75CyHASewBtxs0HX/qwREReUw==",
- "dev": true
+ "integrity": "sha512-6Wd9k8nmGQHgCbehZCP6wwWcfXcvinhybUTBatuhjRsCxUIujuYFZc9QnGeae75CyHASewBtxs0HX/qwREReUw=="
+ },
+ "p-limit": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz",
+ "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==",
+ "requires": {
+ "p-try": "^2.0.0"
+ }
+ },
+ "p-locate": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz",
+ "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==",
+ "requires": {
+ "p-limit": "^2.2.0"
+ }
+ },
+ "p-try": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",
+ "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ=="
+ },
+ "path-exists": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
+ "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w=="
+ },
+ "punycode": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz",
+ "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A=="
+ },
+ "require-directory": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
+ "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q=="
+ },
+ "require-from-string": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",
+ "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw=="
+ },
+ "require-main-filename": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz",
+ "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg=="
+ },
+ "set-blocking": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",
+ "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw=="
+ },
+ "sprintf-js": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
+ "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g=="
+ },
+ "string-width": {
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
+ "requires": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ }
+ },
+ "strip-ansi": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
+ "requires": {
+ "ansi-regex": "^5.0.1"
+ }
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
- "dev": true,
"requires": {
"has-flag": "^4.0.0"
}
@@ -711,12 +1359,67 @@
"dev": true,
"peer": true
},
+ "uri-js": {
+ "version": "4.4.1",
+ "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",
+ "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",
+ "requires": {
+ "punycode": "^2.1.0"
+ }
+ },
"v8-compile-cache-lib": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz",
"integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==",
"dev": true
},
+ "which-module": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz",
+ "integrity": "sha512-B+enWhmw6cjfVC7kS8Pj9pCrKSc5txArRyaYGe088shv/FGWH+0Rjx/xPgtsWfsUtS27FkP697E4DDhgrgoc0Q=="
+ },
+ "wrap-ansi": {
+ "version": "6.2.0",
+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz",
+ "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==",
+ "requires": {
+ "ansi-styles": "^4.0.0",
+ "string-width": "^4.1.0",
+ "strip-ansi": "^6.0.0"
+ }
+ },
+ "y18n": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz",
+ "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ=="
+ },
+ "yargs": {
+ "version": "15.4.1",
+ "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz",
+ "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==",
+ "requires": {
+ "cliui": "^6.0.0",
+ "decamelize": "^1.2.0",
+ "find-up": "^4.1.0",
+ "get-caller-file": "^2.0.1",
+ "require-directory": "^2.1.1",
+ "require-main-filename": "^2.0.0",
+ "set-blocking": "^2.0.0",
+ "string-width": "^4.2.0",
+ "which-module": "^2.0.0",
+ "y18n": "^4.0.0",
+ "yargs-parser": "^18.1.2"
+ }
+ },
+ "yargs-parser": {
+ "version": "18.1.3",
+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz",
+ "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==",
+ "requires": {
+ "camelcase": "^5.0.0",
+ "decamelize": "^1.2.0"
+ }
+ },
"yn": {
"version": "3.1.1",
"resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz",
diff --git a/packages/spec/package.json b/packages/spec/package.json
index 79a62bcc64f..bb5ab2bb8f5 100644
--- a/packages/spec/package.json
+++ b/packages/spec/package.json
@@ -5,8 +5,9 @@
"types": "./index.tsx",
"license": "MIT",
"scripts": {
- "api:gen": "npm run api:gen:api",
- "api:gen:api": "ts-node ./index.ts gen --type api --input ../../spec/api_v0_openapi.json --output ../../apps/reference/_api/usage.mdx",
+ "api:gen": "npm run api:deparse && npm run api:gen:api",
+ "api:deparse": "swagger-cli bundle --dereference --outfile ../../spec/api_v0_openapi/deparsed.json ../../spec/api_v0_openapi.json",
+ "api:gen:api": "ts-node ./index.ts gen --type api --url https://api.supabase.com --input ../../spec/api_v0_openapi/deparsed.json --output ../../apps/reference/_api/usage.mdx",
"cli:gen": "npm run cli:gen:commands && npm run cli:gen:config",
"cli:gen:commands": "ts-node ./index.ts gen --type cli --input ../../spec/cli_v1_commands.yaml --output ../../apps/reference/_cli/usage.mdx ",
"cli:gen:config": "ts-node ./index.ts gen --type config --input ../../spec/cli_v1_config.yaml --output ../../apps/reference/_cli/config.mdx",
@@ -20,6 +21,7 @@
"supabase-dart:gen:sdk": "ts-node ./index.ts gen --type sdk --input ../../spec/supabase_dart_sdk.yaml --output ../../apps/reference/_supabase_dart/usage.mdx "
},
"devDependencies": {
+ "@apidevtools/swagger-cli": "^4.0.4",
"@types/lodash": "^4.14.182",
"ejs": "^3.1.8",
"js-yaml": "^4.1.0",
diff --git a/packages/spec/src/docs/api.ts b/packages/spec/src/docs/api.ts
index 85041e38edd..faa08c09145 100644
--- a/packages/spec/src/docs/api.ts
+++ b/packages/spec/src/docs/api.ts
@@ -6,14 +6,18 @@ const ejs = require('ejs')
const Helpers = require('./Helpers')
const { writeToDisk } = Helpers
-export default async function gen(inputFileName: string, outputDir: string) {
+export default async function gen(
+ inputFileName: string,
+ outputDir: string,
+ apiUrl: string
+) {
const specRaw = fs.readFileSync(inputFileName, 'utf8')
const spec = JSON.parse(specRaw)
// console.log('spec', spec)
switch (spec.openapi || spec.swagger) {
case '3.0.0':
- await gen_v3(spec, outputDir)
+ await gen_v3(spec, outputDir, { apiUrl })
break
case '2.0':
@@ -31,11 +35,30 @@ export default async function gen(inputFileName: string, outputDir: string) {
*/
// OPENAPI-SPEC-VERSION: 3.0.0
-async function gen_v3(spec: OpenAPIV3.Document, dest: string) {
+type v3OperationWithPath = OpenAPIV3.OperationObject & {
+ path: string
+}
+async function gen_v3(
+ spec: OpenAPIV3.Document,
+ dest: string,
+ { apiUrl }: { apiUrl: string }
+) {
+ console.log('apiUrl', apiUrl)
const paths = Object.entries(spec.paths).map(([key, path], i) => {
+ const fullPath = `${apiUrl}${key}`
return {
path: key,
- operations: toArrayWithKey(path!, 'operation'),
+ fullPath,
+ operationList: toArrayWithKey(path!, 'operation').map((o) => {
+ const operation = o as v3OperationWithPath
+ return {
+ ...operation,
+ operationId: slugify(operation.summary!),
+
+ responseList:
+ toArrayWithKey(operation.responses!, 'responseCode') || [],
+ }
+ }),
}
})
@@ -54,14 +77,14 @@ async function gen_v2(spec: OpenAPIV2.Document, dest: string) {
const paths = Object.entries(spec.paths).map(([key, path]) => {
return {
path: key,
- operations: toArrayWithKey(path!, 'operation').map((o) => {
+ operationList: toArrayWithKey(path!, 'operation').map((o) => {
const operation = o as OpenAPIV2.OperationObject & {
path: string
}
return {
...operation,
operationId: slugify(operation.summary!),
- responses: toArrayWithKey(operation.responses!, 'responseCode'),
+ responseList: toArrayWithKey(operation.responses!, 'responseCode'),
}
}),
}
@@ -77,15 +100,9 @@ async function gen_v2(spec: OpenAPIV2.Document, dest: string) {
console.log('Saved: ', dest)
}
-// const pathsToArrays = (pathObject: {
-// path: string
-// get?: object
-// post?: object
-// patch?: object
-// delete?: object
-// }) => {
+// function addResponseCode(response: v3ResponseWithCode, spec: OpenAPIV3.Document) {
+// const jsonResponse = response.
// return {
-// path: pathObject.path,
-
+// ...response
// }
// }
diff --git a/packages/spec/src/docs/index.ts b/packages/spec/src/docs/index.ts
index 52db59d6507..f73c186bbed 100644
--- a/packages/spec/src/docs/index.ts
+++ b/packages/spec/src/docs/index.ts
@@ -7,14 +7,16 @@ export default async function DocGenerator({
input,
output,
type,
+ url,
}: {
input: string
output: string
type: 'cli' | 'config' | 'sdk' | 'api'
+ url?: string
}) {
switch (type) {
case 'api':
- await ApiGenerator(input, output)
+ await ApiGenerator(input, output, url || '')
break
case 'cli':
diff --git a/packages/spec/src/docs/templates/ApiTemplate.ts b/packages/spec/src/docs/templates/ApiTemplate.ts
index 126c0b7897d..0e61f4238ec 100644
--- a/packages/spec/src/docs/templates/ApiTemplate.ts
+++ b/packages/spec/src/docs/templates/ApiTemplate.ts
@@ -2,7 +2,7 @@ const template = `
---
id: usage
title: Usage
-toc_max_heading_level: 2
+toc_max_heading_level: 3
---
import Tabs from '@theme/Tabs';
@@ -18,25 +18,33 @@ import TabItem from '@theme/TabItem';
<% paths.forEach(function(path){ %>
-<% path.operations.forEach(function(operation){ %>
+<% path.operationList.forEach(function(operation){ %>
## <%- operation.summary %> {#<%- operation.operationId %>}
\`\`\`
-<%- path.path %>
+<%- operation.operation.toUpperCase() %> <%- path.fullPath %>
\`\`\`
### Responses
<Tabs>
-<% operation.responses.forEach(function(response){ %>
+<% operation.responseList.forEach(function(response){ %>
<TabItem value="<%- response.responseCode %>">
+<%- response.description %>
+
+<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
+<% if(response?.content && response?.content['application/json']){ %>
+\`\`\`json
+<%- JSON.stringify(response.content['application/json'], null, 2) %>
\`\`\`
-<%- response.responseCode %>
-\`\`\`
+<% }; %>
+
+<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
</TabItem>
<% }); %>
diff --git a/spec/api_v0_openapi/deparsed.json b/spec/api_v0_openapi/deparsed.json
new file mode 100644
index 00000000000..b0f7d8bb97b
--- /dev/null
+++ b/spec/api_v0_openapi/deparsed.json
@@ -0,0 +1,4587 @@
+{
+ "openapi": "3.0.0",
+ "paths": {
+ "/v1/organizations": {
+ "get": {
+ "operationId": "OrganizationsController_getOrganizations",
+ "summary": "Lists all organizations",
+ "parameters": [
+ {
+ "name": "owned_only",
+ "required": true,
+ "in": "query",
+ "description": "Only list organizations you own",
+ "schema": {}
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "name"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "500": {
+ "description": "Unexpected error listing organizations"
+ }
+ },
+ "security": [
+ {
+ "bearer": []
+ }
+ ]
+ },
+ "post": {
+ "operationId": "OrganizationsController_createOrganization_",
+ "summary": "Creates an organization",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ]
+ }
+ }
+ }
+ },
+ "responses": {
+ "201": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "name"
+ ]
+ }
+ }
+ }
+ },
+ "500": {
+ "description": "Unexpected error creating an organization"
+ }
+ },
+ "security": [
+ {
+ "bearer": []
+ }
+ ]
+ }
+ },
+ "/v1/projects": {
+ "get": {
+ "operationId": "ProjectsController_getProjects",
+ "summary": "Gets all projects that belong to the authenticated user",
+ "description": "Only returns the minimal project info",
+ "parameters": [],
+ "responses": {
+ "200": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "organization_id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "region": {
+ "type": "string"
+ },
+ "created_at": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "organization_id",
+ "name",
+ "region",
+ "created_at"
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "security": [
+ {
+ "bearer": []
+ }
+ ]
+ },
+ "post": {
+ "operationId": "ProjectsController_createProject",
+ "summary": "Creates a project",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "db_pass": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "organization_id": {
+ "type": "string"
+ },
+ "plan": {
+ "type": "string",
+ "enum": [
+ "free",
+ "pro"
+ ]
+ },
+ "region": {
+ "type": "string",
+ "enum": [
+ "us-east-1",
+ "us-west-1",
+ "ap-southeast-1",
+ "ap-northeast-1",
+ "ap-northeast-2",
+ "ap-southeast-2",
+ "eu-west-1",
+ "eu-west-2",
+ "eu-central-1",
+ "ca-central-1",
+ "ap-south-1",
+ "sa-east-1"
+ ]
+ }
+ },
+ "required": [
+ "db_pass",
+ "name",
+ "organization_id",
+ "plan",
+ "region"
+ ]
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "organization_id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "region": {
+ "type": "string"
+ },
+ "created_at": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "organization_id",
+ "name",
+ "region",
+ "created_at"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "security": [
+ {
+ "bearer": []
+ }
+ ]
+ }
+ }
+ },
+ "info": {
+ "title": "Supabase API",
+ "description": "",
+ "version": "1.0.0",
+ "contact": {}
+ },
+ "tags": [],
+ "servers": [],
+ "components": {
+ "securitySchemes": {
+ "bearer": {
+ "scheme": "bearer",
+ "bearerFormat": "JWT",
+ "type": "http"
+ },
+ "apiKeyHeader": {
+ "in": "header",
+ "name": "apikey",
+ "type": "apiKey"
+ },
+ "apiKeyQuery": {
+ "in": "query",
+ "name": "apikey",
+ "type": "apiKey"
+ }
+ },
+ "schemas": {
+ "Notification": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "inserted_at": {
+ "type": "string"
+ },
+ "project_id": {
+ "type": "number"
+ },
+ "notification_name": {
+ "type": "string"
+ },
+ "notification_status": {
+ "type": "string"
+ },
+ "data": {
+ "type": "object"
+ },
+ "meta": {
+ "type": "object"
+ }
+ },
+ "required": [
+ "id",
+ "inserted_at",
+ "project_id",
+ "notification_name",
+ "notification_status",
+ "data",
+ "meta"
+ ]
+ },
+ "UpdateNotificationsBody": {
+ "type": "object",
+ "properties": {
+ "ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "ids"
+ ]
+ },
+ "SendFeedbackBody": {
+ "type": "object",
+ "properties": {
+ "message": {
+ "type": "string"
+ },
+ "category": {
+ "type": "string"
+ },
+ "subject": {
+ "type": "string"
+ },
+ "tags": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "additionalRedirectUrls": {
+ "type": "string"
+ },
+ "pathname": {
+ "type": "string"
+ },
+ "projectRef": {
+ "type": "string"
+ },
+ "severity": {
+ "type": "string"
+ },
+ "siteUrl": {
+ "type": "string"
+ },
+ "urlToAirTable": {
+ "type": "string"
+ },
+ "verified": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "message",
+ "category",
+ "tags"
+ ]
+ },
+ "SubjectRoleParams": {
+ "type": "object",
+ "properties": {
+ "gotrue_id": {
+ "type": "string"
+ },
+ "role_id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "gotrue_id",
+ "role_id"
+ ]
+ },
+ "GetGoTrueConfigResponse": {
+ "type": "object",
+ "properties": {
+ "app_version": {
+ "type": "string"
+ },
+ "isFreeTier": {
+ "type": "boolean"
+ },
+ "id": {
+ "type": "number"
+ },
+ "project_id": {
+ "type": "number"
+ },
+ "updated_at": {
+ "type": "string"
+ },
+ "SITE_URL": {
+ "type": "string"
+ },
+ "OPERATOR_TOKEN": {
+ "type": "string"
+ },
+ "DISABLE_SIGNUP": {
+ "type": "boolean"
+ },
+ "RATE_LIMIT_HEADER": {
+ "type": "string"
+ },
+ "JWT_EXP": {
+ "type": "number"
+ },
+ "JWT_AUD": {
+ "type": "string"
+ },
+ "JWT_DEFAULT_GROUP_NAME": {
+ "type": "string"
+ },
+ "EXTERNAL_GITHUB_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_GITHUB_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_GITHUB_SECRET": {
+ "type": "string"
+ },
+ "EXTERNAL_BITBUCKET_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_BITBUCKET_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_BITBUCKET_SECRET": {
+ "type": "string"
+ },
+ "EXTERNAL_GOOGLE_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_GOOGLE_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_GOOGLE_SECRET": {
+ "type": "string"
+ },
+ "EXTERNAL_GITLAB_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_GITLAB_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_GITLAB_SECRET": {
+ "type": "string"
+ },
+ "EXTERNAL_GITLAB_REDIRECT_URI": {
+ "type": "string"
+ },
+ "EXTERNAL_GITLAB_URL": {
+ "type": "string"
+ },
+ "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"
+ },
+ "MAILER_AUTOCONFIRM": {
+ "type": "boolean"
+ },
+ "MAILER_URLPATHS_INVITE": {
+ "type": "string"
+ },
+ "MAILER_URLPATHS_CONFIRMATION": {
+ "type": "string"
+ },
+ "MAILER_URLPATHS_RECOVERY": {
+ "type": "string"
+ },
+ "MAILER_URLPATHS_EMAIL_CHANGE": {
+ "type": "string"
+ },
+ "MAILER_SUBJECTS_INVITE": {
+ "type": "string"
+ },
+ "MAILER_SUBJECTS_CONFIRMATION": {
+ "type": "string"
+ },
+ "MAILER_SUBJECTS_RECOVERY": {
+ "type": "string"
+ },
+ "MAILER_SUBJECTS_EMAIL_CHANGE": {
+ "type": "string"
+ },
+ "MAILER_TEMPLATES_INVITE": {
+ "type": "string"
+ },
+ "MAILER_TEMPLATES_INVITE_CONTENT": {
+ "type": "string"
+ },
+ "MAILER_TEMPLATES_CONFIRMATION": {
+ "type": "string"
+ },
+ "MAILER_TEMPLATES_CONFIRMATION_CONTENT": {
+ "type": "string"
+ },
+ "MAILER_TEMPLATES_RECOVERY": {
+ "type": "string"
+ },
+ "MAILER_TEMPLATES_RECOVERY_CONTENT": {
+ "type": "string"
+ },
+ "MAILER_TEMPLATES_EMAIL_CHANGE": {
+ "type": "string"
+ },
+ "MAILER_TEMPLATES_EMAIL_CHANGE_CONTENT": {
+ "type": "string"
+ },
+ "MAILER_SUBJECTS_MAGIC_LINK": {
+ "type": "string"
+ },
+ "MAILER_TEMPLATES_MAGIC_LINK": {
+ "type": "string"
+ },
+ "MAILER_TEMPLATES_MAGIC_LINK_CONTENT": {
+ "type": "string"
+ },
+ "EXTERNAL_AZURE_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_AZURE_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_AZURE_SECRET": {
+ "type": "string"
+ },
+ "EXTERNAL_FACEBOOK_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_FACEBOOK_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_FACEBOOK_SECRET": {
+ "type": "string"
+ },
+ "URI_ALLOW_LIST": {
+ "type": "string"
+ },
+ "EXTERNAL_TWITTER_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_TWITTER_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_TWITTER_SECRET": {
+ "type": "string"
+ },
+ "EXTERNAL_APPLE_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_APPLE_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_APPLE_SECRET": {
+ "type": "string"
+ },
+ "EXTERNAL_DISCORD_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_DISCORD_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_DISCORD_SECRET": {
+ "type": "string"
+ },
+ "EXTERNAL_TWITCH_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_TWITCH_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_TWITCH_SECRET": {
+ "type": "string"
+ },
+ "SMTP_SENDER_NAME": {
+ "type": "string"
+ },
+ "EXTERNAL_EMAIL_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_PHONE_ENABLED": {
+ "type": "boolean"
+ },
+ "SMS_AUTOCONFIRM": {
+ "type": "boolean"
+ },
+ "SMS_MAX_FREQUENCY": {
+ "type": "number"
+ },
+ "SMS_OTP_EXP": {
+ "type": "number"
+ },
+ "SMS_OTP_LENGTH": {
+ "type": "number"
+ },
+ "SMS_PROVIDER": {
+ "type": "string"
+ },
+ "SMS_TWILIO_ACCOUNT_SID": {
+ "type": "string"
+ },
+ "SMS_TWILIO_AUTH_TOKEN": {
+ "type": "string"
+ },
+ "SMS_TWILIO_MESSAGE_SERVICE_SID": {
+ "type": "string"
+ },
+ "SMS_TEMPLATE": {
+ "type": "string"
+ },
+ "SECURITY_CAPTCHA_ENABLED": {
+ "type": "boolean"
+ },
+ "SECURITY_CAPTCHA_PROVIDER": {
+ "type": "string"
+ },
+ "SECURITY_CAPTCHA_SECRET": {
+ "type": "string"
+ },
+ "RATE_LIMIT_EMAIL_SENT": {
+ "type": "number"
+ },
+ "MAILER_SECURE_EMAIL_CHANGE_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_SPOTIFY_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_SPOTIFY_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_SPOTIFY_SECRET": {
+ "type": "string"
+ },
+ "EXTERNAL_SLACK_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_SLACK_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_SLACK_SECRET": {
+ "type": "string"
+ },
+ "SMS_MESSAGEBIRD_ACCESS_KEY": {
+ "type": "string"
+ },
+ "SMS_MESSAGEBIRD_ORIGINATOR": {
+ "type": "string"
+ },
+ "SMTP_PASS_ENCRYPTED": {
+ "type": "string"
+ },
+ "REFRESH_TOKEN_ROTATION_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_LINKEDIN_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_LINKEDIN_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_LINKEDIN_SECRET": {
+ "type": "string"
+ },
+ "EXTERNAL_NOTION_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_NOTION_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_NOTION_SECRET": {
+ "type": "string"
+ },
+ "SMS_VONAGE_API_KEY": {
+ "type": "string"
+ },
+ "SMS_VONAGE_API_SECRET": {
+ "type": "string"
+ },
+ "SMS_VONAGE_FROM": {
+ "type": "string"
+ },
+ "SMS_TEXTLOCAL_API_KEY": {
+ "type": "string"
+ },
+ "SMS_TEXTLOCAL_SENDER": {
+ "type": "string"
+ },
+ "EXTERNAL_ZOOM_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_ZOOM_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_ZOOM_SECRET": {
+ "type": "string"
+ },
+ "EXTERNAL_AZURE_URL": {
+ "type": "string"
+ },
+ "PASSWORD_MIN_LENGTH": {
+ "type": "number"
+ },
+ "EXTERNAL_KEYCLOAK_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_KEYCLOAK_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_KEYCLOAK_SECRET": {
+ "type": "string"
+ },
+ "EXTERNAL_KEYCLOAK_URL": {
+ "type": "string"
+ },
+ "EXTERNAL_WORKOS_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_WORKOS_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_WORKOS_SECRET": {
+ "type": "string"
+ },
+ "EXTERNAL_WORKOS_URL": {
+ "type": "string"
+ },
+ "SECURITY_UPDATE_PASSWORD_REQUIRE_REAUTHENTICATION": {
+ "type": "boolean"
+ },
+ "SECURITY_REFRESH_TOKEN_REUSE_INTERVAL": {
+ "type": "number"
+ },
+ "MAILER_OTP_EXP": {
+ "type": "number"
+ },
+ "RATE_LIMIT_VERIFY": {
+ "type": "number"
+ },
+ "RATE_LIMIT_TOKEN_REFRESH": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "app_version",
+ "isFreeTier",
+ "id",
+ "project_id",
+ "updated_at",
+ "SITE_URL",
+ "OPERATOR_TOKEN",
+ "DISABLE_SIGNUP",
+ "RATE_LIMIT_HEADER",
+ "JWT_EXP",
+ "JWT_AUD",
+ "JWT_DEFAULT_GROUP_NAME",
+ "EXTERNAL_GITHUB_ENABLED",
+ "EXTERNAL_GITHUB_CLIENT_ID",
+ "EXTERNAL_GITHUB_SECRET",
+ "EXTERNAL_BITBUCKET_ENABLED",
+ "EXTERNAL_BITBUCKET_CLIENT_ID",
+ "EXTERNAL_BITBUCKET_SECRET",
+ "EXTERNAL_GOOGLE_ENABLED",
+ "EXTERNAL_GOOGLE_CLIENT_ID",
+ "EXTERNAL_GOOGLE_SECRET",
+ "EXTERNAL_GITLAB_ENABLED",
+ "EXTERNAL_GITLAB_CLIENT_ID",
+ "EXTERNAL_GITLAB_SECRET",
+ "EXTERNAL_GITLAB_REDIRECT_URI",
+ "EXTERNAL_GITLAB_URL",
+ "SMTP_ADMIN_EMAIL",
+ "SMTP_HOST",
+ "SMTP_PORT",
+ "SMTP_USER",
+ "SMTP_PASS",
+ "SMTP_MAX_FREQUENCY",
+ "MAILER_AUTOCONFIRM",
+ "MAILER_URLPATHS_INVITE",
+ "MAILER_URLPATHS_CONFIRMATION",
+ "MAILER_URLPATHS_RECOVERY",
+ "MAILER_URLPATHS_EMAIL_CHANGE",
+ "MAILER_SUBJECTS_INVITE",
+ "MAILER_SUBJECTS_CONFIRMATION",
+ "MAILER_SUBJECTS_RECOVERY",
+ "MAILER_SUBJECTS_EMAIL_CHANGE",
+ "MAILER_TEMPLATES_INVITE",
+ "MAILER_TEMPLATES_INVITE_CONTENT",
+ "MAILER_TEMPLATES_CONFIRMATION",
+ "MAILER_TEMPLATES_CONFIRMATION_CONTENT",
+ "MAILER_TEMPLATES_RECOVERY",
+ "MAILER_TEMPLATES_RECOVERY_CONTENT",
+ "MAILER_TEMPLATES_EMAIL_CHANGE",
+ "MAILER_TEMPLATES_EMAIL_CHANGE_CONTENT",
+ "MAILER_SUBJECTS_MAGIC_LINK",
+ "MAILER_TEMPLATES_MAGIC_LINK",
+ "MAILER_TEMPLATES_MAGIC_LINK_CONTENT",
+ "EXTERNAL_AZURE_ENABLED",
+ "EXTERNAL_AZURE_CLIENT_ID",
+ "EXTERNAL_AZURE_SECRET",
+ "EXTERNAL_FACEBOOK_ENABLED",
+ "EXTERNAL_FACEBOOK_CLIENT_ID",
+ "EXTERNAL_FACEBOOK_SECRET",
+ "URI_ALLOW_LIST",
+ "EXTERNAL_TWITTER_ENABLED",
+ "EXTERNAL_TWITTER_CLIENT_ID",
+ "EXTERNAL_TWITTER_SECRET",
+ "EXTERNAL_APPLE_ENABLED",
+ "EXTERNAL_APPLE_CLIENT_ID",
+ "EXTERNAL_APPLE_SECRET",
+ "EXTERNAL_DISCORD_ENABLED",
+ "EXTERNAL_DISCORD_CLIENT_ID",
+ "EXTERNAL_DISCORD_SECRET",
+ "EXTERNAL_TWITCH_ENABLED",
+ "EXTERNAL_TWITCH_CLIENT_ID",
+ "EXTERNAL_TWITCH_SECRET",
+ "SMTP_SENDER_NAME",
+ "EXTERNAL_EMAIL_ENABLED",
+ "EXTERNAL_PHONE_ENABLED",
+ "SMS_AUTOCONFIRM",
+ "SMS_MAX_FREQUENCY",
+ "SMS_OTP_EXP",
+ "SMS_OTP_LENGTH",
+ "SMS_PROVIDER",
+ "SMS_TWILIO_ACCOUNT_SID",
+ "SMS_TWILIO_AUTH_TOKEN",
+ "SMS_TWILIO_MESSAGE_SERVICE_SID",
+ "SMS_TEMPLATE",
+ "SECURITY_CAPTCHA_ENABLED",
+ "SECURITY_CAPTCHA_PROVIDER",
+ "SECURITY_CAPTCHA_SECRET",
+ "RATE_LIMIT_EMAIL_SENT",
+ "MAILER_SECURE_EMAIL_CHANGE_ENABLED",
+ "EXTERNAL_SPOTIFY_ENABLED",
+ "EXTERNAL_SPOTIFY_CLIENT_ID",
+ "EXTERNAL_SPOTIFY_SECRET",
+ "EXTERNAL_SLACK_ENABLED",
+ "EXTERNAL_SLACK_CLIENT_ID",
+ "EXTERNAL_SLACK_SECRET",
+ "SMS_MESSAGEBIRD_ACCESS_KEY",
+ "SMS_MESSAGEBIRD_ORIGINATOR",
+ "SMTP_PASS_ENCRYPTED",
+ "REFRESH_TOKEN_ROTATION_ENABLED",
+ "EXTERNAL_LINKEDIN_ENABLED",
+ "EXTERNAL_LINKEDIN_CLIENT_ID",
+ "EXTERNAL_LINKEDIN_SECRET",
+ "EXTERNAL_NOTION_ENABLED",
+ "EXTERNAL_NOTION_CLIENT_ID",
+ "EXTERNAL_NOTION_SECRET",
+ "SMS_VONAGE_API_KEY",
+ "SMS_VONAGE_API_SECRET",
+ "SMS_VONAGE_FROM",
+ "SMS_TEXTLOCAL_API_KEY",
+ "SMS_TEXTLOCAL_SENDER",
+ "EXTERNAL_ZOOM_ENABLED",
+ "EXTERNAL_ZOOM_CLIENT_ID",
+ "EXTERNAL_ZOOM_SECRET",
+ "EXTERNAL_AZURE_URL",
+ "PASSWORD_MIN_LENGTH",
+ "EXTERNAL_KEYCLOAK_ENABLED",
+ "EXTERNAL_KEYCLOAK_CLIENT_ID",
+ "EXTERNAL_KEYCLOAK_SECRET",
+ "EXTERNAL_KEYCLOAK_URL",
+ "EXTERNAL_WORKOS_ENABLED",
+ "EXTERNAL_WORKOS_CLIENT_ID",
+ "EXTERNAL_WORKOS_SECRET",
+ "EXTERNAL_WORKOS_URL",
+ "SECURITY_UPDATE_PASSWORD_REQUIRE_REAUTHENTICATION",
+ "SECURITY_REFRESH_TOKEN_REUSE_INTERVAL",
+ "MAILER_OTP_EXP",
+ "RATE_LIMIT_VERIFY",
+ "RATE_LIMIT_TOKEN_REFRESH"
+ ]
+ },
+ "UpdateGoTrueConfigBody": {
+ "type": "object",
+ "properties": {
+ "SITE_URL": {
+ "type": "string"
+ },
+ "OPERATOR_TOKEN": {
+ "type": "string"
+ },
+ "DISABLE_SIGNUP": {
+ "type": "boolean"
+ },
+ "RATE_LIMIT_HEADER": {
+ "type": "string"
+ },
+ "JWT_EXP": {
+ "type": "number"
+ },
+ "JWT_AUD": {
+ "type": "string"
+ },
+ "JWT_DEFAULT_GROUP_NAME": {
+ "type": "string"
+ },
+ "EXTERNAL_GITHUB_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_GITHUB_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_GITHUB_SECRET": {
+ "type": "string"
+ },
+ "EXTERNAL_BITBUCKET_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_BITBUCKET_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_BITBUCKET_SECRET": {
+ "type": "string"
+ },
+ "EXTERNAL_GOOGLE_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_GOOGLE_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_GOOGLE_SECRET": {
+ "type": "string"
+ },
+ "EXTERNAL_GITLAB_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_GITLAB_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_GITLAB_SECRET": {
+ "type": "string"
+ },
+ "EXTERNAL_GITLAB_REDIRECT_URI": {
+ "type": "string"
+ },
+ "EXTERNAL_GITLAB_URL": {
+ "type": "string"
+ },
+ "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"
+ },
+ "MAILER_AUTOCONFIRM": {
+ "type": "boolean"
+ },
+ "MAILER_URLPATHS_INVITE": {
+ "type": "string"
+ },
+ "MAILER_URLPATHS_CONFIRMATION": {
+ "type": "string"
+ },
+ "MAILER_URLPATHS_RECOVERY": {
+ "type": "string"
+ },
+ "MAILER_URLPATHS_EMAIL_CHANGE": {
+ "type": "string"
+ },
+ "MAILER_SUBJECTS_INVITE": {
+ "type": "string"
+ },
+ "MAILER_SUBJECTS_CONFIRMATION": {
+ "type": "string"
+ },
+ "MAILER_SUBJECTS_RECOVERY": {
+ "type": "string"
+ },
+ "MAILER_SUBJECTS_EMAIL_CHANGE": {
+ "type": "string"
+ },
+ "MAILER_TEMPLATES_INVITE": {
+ "type": "string"
+ },
+ "MAILER_TEMPLATES_INVITE_CONTENT": {
+ "type": "string"
+ },
+ "MAILER_TEMPLATES_CONFIRMATION": {
+ "type": "string"
+ },
+ "MAILER_TEMPLATES_CONFIRMATION_CONTENT": {
+ "type": "string"
+ },
+ "MAILER_TEMPLATES_RECOVERY": {
+ "type": "string"
+ },
+ "MAILER_TEMPLATES_RECOVERY_CONTENT": {
+ "type": "string"
+ },
+ "MAILER_TEMPLATES_EMAIL_CHANGE": {
+ "type": "string"
+ },
+ "MAILER_TEMPLATES_EMAIL_CHANGE_CONTENT": {
+ "type": "string"
+ },
+ "MAILER_SUBJECTS_MAGIC_LINK": {
+ "type": "string"
+ },
+ "MAILER_TEMPLATES_MAGIC_LINK": {
+ "type": "string"
+ },
+ "MAILER_TEMPLATES_MAGIC_LINK_CONTENT": {
+ "type": "string"
+ },
+ "EXTERNAL_AZURE_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_AZURE_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_AZURE_SECRET": {
+ "type": "string"
+ },
+ "EXTERNAL_FACEBOOK_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_FACEBOOK_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_FACEBOOK_SECRET": {
+ "type": "string"
+ },
+ "URI_ALLOW_LIST": {
+ "type": "string"
+ },
+ "EXTERNAL_TWITTER_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_TWITTER_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_TWITTER_SECRET": {
+ "type": "string"
+ },
+ "EXTERNAL_APPLE_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_APPLE_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_APPLE_SECRET": {
+ "type": "string"
+ },
+ "EXTERNAL_DISCORD_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_DISCORD_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_DISCORD_SECRET": {
+ "type": "string"
+ },
+ "EXTERNAL_TWITCH_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_TWITCH_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_TWITCH_SECRET": {
+ "type": "string"
+ },
+ "SMTP_SENDER_NAME": {
+ "type": "string"
+ },
+ "EXTERNAL_EMAIL_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_PHONE_ENABLED": {
+ "type": "boolean"
+ },
+ "SMS_AUTOCONFIRM": {
+ "type": "boolean"
+ },
+ "SMS_MAX_FREQUENCY": {
+ "type": "number"
+ },
+ "SMS_OTP_EXP": {
+ "type": "number"
+ },
+ "SMS_OTP_LENGTH": {
+ "type": "number"
+ },
+ "SMS_PROVIDER": {
+ "type": "string"
+ },
+ "SMS_TWILIO_ACCOUNT_SID": {
+ "type": "string"
+ },
+ "SMS_TWILIO_AUTH_TOKEN": {
+ "type": "string"
+ },
+ "SMS_TWILIO_MESSAGE_SERVICE_SID": {
+ "type": "string"
+ },
+ "SMS_TEMPLATE": {
+ "type": "string"
+ },
+ "SECURITY_CAPTCHA_ENABLED": {
+ "type": "boolean"
+ },
+ "SECURITY_CAPTCHA_PROVIDER": {
+ "type": "string"
+ },
+ "SECURITY_CAPTCHA_SECRET": {
+ "type": "string"
+ },
+ "RATE_LIMIT_EMAIL_SENT": {
+ "type": "number"
+ },
+ "MAILER_SECURE_EMAIL_CHANGE_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_SPOTIFY_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_SPOTIFY_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_SPOTIFY_SECRET": {
+ "type": "string"
+ },
+ "EXTERNAL_SLACK_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_SLACK_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_SLACK_SECRET": {
+ "type": "string"
+ },
+ "SMS_MESSAGEBIRD_ACCESS_KEY": {
+ "type": "string"
+ },
+ "SMS_MESSAGEBIRD_ORIGINATOR": {
+ "type": "string"
+ },
+ "SMTP_PASS_ENCRYPTED": {
+ "type": "string"
+ },
+ "REFRESH_TOKEN_ROTATION_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_LINKEDIN_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_LINKEDIN_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_LINKEDIN_SECRET": {
+ "type": "string"
+ },
+ "EXTERNAL_NOTION_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_NOTION_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_NOTION_SECRET": {
+ "type": "string"
+ },
+ "SMS_VONAGE_API_KEY": {
+ "type": "string"
+ },
+ "SMS_VONAGE_API_SECRET": {
+ "type": "string"
+ },
+ "SMS_VONAGE_FROM": {
+ "type": "string"
+ },
+ "SMS_TEXTLOCAL_API_KEY": {
+ "type": "string"
+ },
+ "SMS_TEXTLOCAL_SENDER": {
+ "type": "string"
+ },
+ "EXTERNAL_ZOOM_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_ZOOM_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_ZOOM_SECRET": {
+ "type": "string"
+ },
+ "EXTERNAL_AZURE_URL": {
+ "type": "string"
+ },
+ "PASSWORD_MIN_LENGTH": {
+ "type": "number"
+ },
+ "EXTERNAL_KEYCLOAK_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_KEYCLOAK_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_KEYCLOAK_SECRET": {
+ "type": "string"
+ },
+ "EXTERNAL_KEYCLOAK_URL": {
+ "type": "string"
+ },
+ "EXTERNAL_WORKOS_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_WORKOS_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_WORKOS_SECRET": {
+ "type": "string"
+ },
+ "EXTERNAL_WORKOS_URL": {
+ "type": "string"
+ },
+ "SECURITY_UPDATE_PASSWORD_REQUIRE_REAUTHENTICATION": {
+ "type": "boolean"
+ },
+ "SECURITY_REFRESH_TOKEN_REUSE_INTERVAL": {
+ "type": "number"
+ },
+ "MAILER_OTP_EXP": {
+ "type": "number"
+ },
+ "RATE_LIMIT_VERIFY": {
+ "type": "number"
+ },
+ "RATE_LIMIT_TOKEN_REFRESH": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "SITE_URL",
+ "OPERATOR_TOKEN",
+ "DISABLE_SIGNUP",
+ "RATE_LIMIT_HEADER",
+ "JWT_EXP",
+ "JWT_AUD",
+ "JWT_DEFAULT_GROUP_NAME",
+ "EXTERNAL_GITHUB_ENABLED",
+ "EXTERNAL_GITHUB_CLIENT_ID",
+ "EXTERNAL_GITHUB_SECRET",
+ "EXTERNAL_BITBUCKET_ENABLED",
+ "EXTERNAL_BITBUCKET_CLIENT_ID",
+ "EXTERNAL_BITBUCKET_SECRET",
+ "EXTERNAL_GOOGLE_ENABLED",
+ "EXTERNAL_GOOGLE_CLIENT_ID",
+ "EXTERNAL_GOOGLE_SECRET",
+ "EXTERNAL_GITLAB_ENABLED",
+ "EXTERNAL_GITLAB_CLIENT_ID",
+ "EXTERNAL_GITLAB_SECRET",
+ "EXTERNAL_GITLAB_REDIRECT_URI",
+ "EXTERNAL_GITLAB_URL",
+ "SMTP_ADMIN_EMAIL",
+ "SMTP_HOST",
+ "SMTP_PORT",
+ "SMTP_USER",
+ "SMTP_PASS",
+ "SMTP_MAX_FREQUENCY",
+ "MAILER_AUTOCONFIRM",
+ "MAILER_URLPATHS_INVITE",
+ "MAILER_URLPATHS_CONFIRMATION",
+ "MAILER_URLPATHS_RECOVERY",
+ "MAILER_URLPATHS_EMAIL_CHANGE",
+ "MAILER_SUBJECTS_INVITE",
+ "MAILER_SUBJECTS_CONFIRMATION",
+ "MAILER_SUBJECTS_RECOVERY",
+ "MAILER_SUBJECTS_EMAIL_CHANGE",
+ "MAILER_TEMPLATES_INVITE",
+ "MAILER_TEMPLATES_INVITE_CONTENT",
+ "MAILER_TEMPLATES_CONFIRMATION",
+ "MAILER_TEMPLATES_CONFIRMATION_CONTENT",
+ "MAILER_TEMPLATES_RECOVERY",
+ "MAILER_TEMPLATES_RECOVERY_CONTENT",
+ "MAILER_TEMPLATES_EMAIL_CHANGE",
+ "MAILER_TEMPLATES_EMAIL_CHANGE_CONTENT",
+ "MAILER_SUBJECTS_MAGIC_LINK",
+ "MAILER_TEMPLATES_MAGIC_LINK",
+ "MAILER_TEMPLATES_MAGIC_LINK_CONTENT",
+ "EXTERNAL_AZURE_ENABLED",
+ "EXTERNAL_AZURE_CLIENT_ID",
+ "EXTERNAL_AZURE_SECRET",
+ "EXTERNAL_FACEBOOK_ENABLED",
+ "EXTERNAL_FACEBOOK_CLIENT_ID",
+ "EXTERNAL_FACEBOOK_SECRET",
+ "URI_ALLOW_LIST",
+ "EXTERNAL_TWITTER_ENABLED",
+ "EXTERNAL_TWITTER_CLIENT_ID",
+ "EXTERNAL_TWITTER_SECRET",
+ "EXTERNAL_APPLE_ENABLED",
+ "EXTERNAL_APPLE_CLIENT_ID",
+ "EXTERNAL_APPLE_SECRET",
+ "EXTERNAL_DISCORD_ENABLED",
+ "EXTERNAL_DISCORD_CLIENT_ID",
+ "EXTERNAL_DISCORD_SECRET",
+ "EXTERNAL_TWITCH_ENABLED",
+ "EXTERNAL_TWITCH_CLIENT_ID",
+ "EXTERNAL_TWITCH_SECRET",
+ "SMTP_SENDER_NAME",
+ "EXTERNAL_EMAIL_ENABLED",
+ "EXTERNAL_PHONE_ENABLED",
+ "SMS_AUTOCONFIRM",
+ "SMS_MAX_FREQUENCY",
+ "SMS_OTP_EXP",
+ "SMS_OTP_LENGTH",
+ "SMS_PROVIDER",
+ "SMS_TWILIO_ACCOUNT_SID",
+ "SMS_TWILIO_AUTH_TOKEN",
+ "SMS_TWILIO_MESSAGE_SERVICE_SID",
+ "SMS_TEMPLATE",
+ "SECURITY_CAPTCHA_ENABLED",
+ "SECURITY_CAPTCHA_PROVIDER",
+ "SECURITY_CAPTCHA_SECRET",
+ "RATE_LIMIT_EMAIL_SENT",
+ "MAILER_SECURE_EMAIL_CHANGE_ENABLED",
+ "EXTERNAL_SPOTIFY_ENABLED",
+ "EXTERNAL_SPOTIFY_CLIENT_ID",
+ "EXTERNAL_SPOTIFY_SECRET",
+ "EXTERNAL_SLACK_ENABLED",
+ "EXTERNAL_SLACK_CLIENT_ID",
+ "EXTERNAL_SLACK_SECRET",
+ "SMS_MESSAGEBIRD_ACCESS_KEY",
+ "SMS_MESSAGEBIRD_ORIGINATOR",
+ "SMTP_PASS_ENCRYPTED",
+ "REFRESH_TOKEN_ROTATION_ENABLED",
+ "EXTERNAL_LINKEDIN_ENABLED",
+ "EXTERNAL_LINKEDIN_CLIENT_ID",
+ "EXTERNAL_LINKEDIN_SECRET",
+ "EXTERNAL_NOTION_ENABLED",
+ "EXTERNAL_NOTION_CLIENT_ID",
+ "EXTERNAL_NOTION_SECRET",
+ "SMS_VONAGE_API_KEY",
+ "SMS_VONAGE_API_SECRET",
+ "SMS_VONAGE_FROM",
+ "SMS_TEXTLOCAL_API_KEY",
+ "SMS_TEXTLOCAL_SENDER",
+ "EXTERNAL_ZOOM_ENABLED",
+ "EXTERNAL_ZOOM_CLIENT_ID",
+ "EXTERNAL_ZOOM_SECRET",
+ "EXTERNAL_AZURE_URL",
+ "PASSWORD_MIN_LENGTH",
+ "EXTERNAL_KEYCLOAK_ENABLED",
+ "EXTERNAL_KEYCLOAK_CLIENT_ID",
+ "EXTERNAL_KEYCLOAK_SECRET",
+ "EXTERNAL_KEYCLOAK_URL",
+ "EXTERNAL_WORKOS_ENABLED",
+ "EXTERNAL_WORKOS_CLIENT_ID",
+ "EXTERNAL_WORKOS_SECRET",
+ "EXTERNAL_WORKOS_URL",
+ "SECURITY_UPDATE_PASSWORD_REQUIRE_REAUTHENTICATION",
+ "SECURITY_REFRESH_TOKEN_REUSE_INTERVAL",
+ "MAILER_OTP_EXP",
+ "RATE_LIMIT_VERIFY",
+ "RATE_LIMIT_TOKEN_REFRESH"
+ ]
+ },
+ "GoTrueConfig": {
+ "type": "object",
+ "properties": {
+ "SITE_URL": {
+ "type": "string"
+ },
+ "OPERATOR_TOKEN": {
+ "type": "string"
+ },
+ "DISABLE_SIGNUP": {
+ "type": "boolean"
+ },
+ "RATE_LIMIT_HEADER": {
+ "type": "string"
+ },
+ "JWT_EXP": {
+ "type": "number"
+ },
+ "JWT_AUD": {
+ "type": "string"
+ },
+ "JWT_DEFAULT_GROUP_NAME": {
+ "type": "string"
+ },
+ "EXTERNAL_GITHUB_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_GITHUB_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_GITHUB_SECRET": {
+ "type": "string"
+ },
+ "EXTERNAL_BITBUCKET_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_BITBUCKET_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_BITBUCKET_SECRET": {
+ "type": "string"
+ },
+ "EXTERNAL_GOOGLE_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_GOOGLE_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_GOOGLE_SECRET": {
+ "type": "string"
+ },
+ "EXTERNAL_GITLAB_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_GITLAB_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_GITLAB_SECRET": {
+ "type": "string"
+ },
+ "EXTERNAL_GITLAB_REDIRECT_URI": {
+ "type": "string"
+ },
+ "EXTERNAL_GITLAB_URL": {
+ "type": "string"
+ },
+ "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"
+ },
+ "MAILER_AUTOCONFIRM": {
+ "type": "boolean"
+ },
+ "MAILER_URLPATHS_INVITE": {
+ "type": "string"
+ },
+ "MAILER_URLPATHS_CONFIRMATION": {
+ "type": "string"
+ },
+ "MAILER_URLPATHS_RECOVERY": {
+ "type": "string"
+ },
+ "MAILER_URLPATHS_EMAIL_CHANGE": {
+ "type": "string"
+ },
+ "MAILER_SUBJECTS_INVITE": {
+ "type": "string"
+ },
+ "MAILER_SUBJECTS_CONFIRMATION": {
+ "type": "string"
+ },
+ "MAILER_SUBJECTS_RECOVERY": {
+ "type": "string"
+ },
+ "MAILER_SUBJECTS_EMAIL_CHANGE": {
+ "type": "string"
+ },
+ "MAILER_TEMPLATES_INVITE": {
+ "type": "string"
+ },
+ "MAILER_TEMPLATES_INVITE_CONTENT": {
+ "type": "string"
+ },
+ "MAILER_TEMPLATES_CONFIRMATION": {
+ "type": "string"
+ },
+ "MAILER_TEMPLATES_CONFIRMATION_CONTENT": {
+ "type": "string"
+ },
+ "MAILER_TEMPLATES_RECOVERY": {
+ "type": "string"
+ },
+ "MAILER_TEMPLATES_RECOVERY_CONTENT": {
+ "type": "string"
+ },
+ "MAILER_TEMPLATES_EMAIL_CHANGE": {
+ "type": "string"
+ },
+ "MAILER_TEMPLATES_EMAIL_CHANGE_CONTENT": {
+ "type": "string"
+ },
+ "MAILER_SUBJECTS_MAGIC_LINK": {
+ "type": "string"
+ },
+ "MAILER_TEMPLATES_MAGIC_LINK": {
+ "type": "string"
+ },
+ "MAILER_TEMPLATES_MAGIC_LINK_CONTENT": {
+ "type": "string"
+ },
+ "EXTERNAL_AZURE_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_AZURE_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_AZURE_SECRET": {
+ "type": "string"
+ },
+ "EXTERNAL_FACEBOOK_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_FACEBOOK_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_FACEBOOK_SECRET": {
+ "type": "string"
+ },
+ "URI_ALLOW_LIST": {
+ "type": "string"
+ },
+ "EXTERNAL_TWITTER_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_TWITTER_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_TWITTER_SECRET": {
+ "type": "string"
+ },
+ "EXTERNAL_APPLE_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_APPLE_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_APPLE_SECRET": {
+ "type": "string"
+ },
+ "EXTERNAL_DISCORD_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_DISCORD_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_DISCORD_SECRET": {
+ "type": "string"
+ },
+ "EXTERNAL_TWITCH_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_TWITCH_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_TWITCH_SECRET": {
+ "type": "string"
+ },
+ "SMTP_SENDER_NAME": {
+ "type": "string"
+ },
+ "EXTERNAL_EMAIL_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_PHONE_ENABLED": {
+ "type": "boolean"
+ },
+ "SMS_AUTOCONFIRM": {
+ "type": "boolean"
+ },
+ "SMS_MAX_FREQUENCY": {
+ "type": "number"
+ },
+ "SMS_OTP_EXP": {
+ "type": "number"
+ },
+ "SMS_OTP_LENGTH": {
+ "type": "number"
+ },
+ "SMS_PROVIDER": {
+ "type": "string"
+ },
+ "SMS_TWILIO_ACCOUNT_SID": {
+ "type": "string"
+ },
+ "SMS_TWILIO_AUTH_TOKEN": {
+ "type": "string"
+ },
+ "SMS_TWILIO_MESSAGE_SERVICE_SID": {
+ "type": "string"
+ },
+ "SMS_TEMPLATE": {
+ "type": "string"
+ },
+ "SECURITY_CAPTCHA_ENABLED": {
+ "type": "boolean"
+ },
+ "SECURITY_CAPTCHA_PROVIDER": {
+ "type": "string"
+ },
+ "SECURITY_CAPTCHA_SECRET": {
+ "type": "string"
+ },
+ "RATE_LIMIT_EMAIL_SENT": {
+ "type": "number"
+ },
+ "MAILER_SECURE_EMAIL_CHANGE_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_SPOTIFY_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_SPOTIFY_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_SPOTIFY_SECRET": {
+ "type": "string"
+ },
+ "EXTERNAL_SLACK_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_SLACK_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_SLACK_SECRET": {
+ "type": "string"
+ },
+ "SMS_MESSAGEBIRD_ACCESS_KEY": {
+ "type": "string"
+ },
+ "SMS_MESSAGEBIRD_ORIGINATOR": {
+ "type": "string"
+ },
+ "SMTP_PASS_ENCRYPTED": {
+ "type": "string"
+ },
+ "REFRESH_TOKEN_ROTATION_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_LINKEDIN_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_LINKEDIN_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_LINKEDIN_SECRET": {
+ "type": "string"
+ },
+ "EXTERNAL_NOTION_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_NOTION_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_NOTION_SECRET": {
+ "type": "string"
+ },
+ "SMS_VONAGE_API_KEY": {
+ "type": "string"
+ },
+ "SMS_VONAGE_API_SECRET": {
+ "type": "string"
+ },
+ "SMS_VONAGE_FROM": {
+ "type": "string"
+ },
+ "SMS_TEXTLOCAL_API_KEY": {
+ "type": "string"
+ },
+ "SMS_TEXTLOCAL_SENDER": {
+ "type": "string"
+ },
+ "EXTERNAL_ZOOM_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_ZOOM_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_ZOOM_SECRET": {
+ "type": "string"
+ },
+ "EXTERNAL_AZURE_URL": {
+ "type": "string"
+ },
+ "PASSWORD_MIN_LENGTH": {
+ "type": "number"
+ },
+ "EXTERNAL_KEYCLOAK_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_KEYCLOAK_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_KEYCLOAK_SECRET": {
+ "type": "string"
+ },
+ "EXTERNAL_KEYCLOAK_URL": {
+ "type": "string"
+ },
+ "EXTERNAL_WORKOS_ENABLED": {
+ "type": "boolean"
+ },
+ "EXTERNAL_WORKOS_CLIENT_ID": {
+ "type": "string"
+ },
+ "EXTERNAL_WORKOS_SECRET": {
+ "type": "string"
+ },
+ "EXTERNAL_WORKOS_URL": {
+ "type": "string"
+ },
+ "SECURITY_UPDATE_PASSWORD_REQUIRE_REAUTHENTICATION": {
+ "type": "boolean"
+ },
+ "SECURITY_REFRESH_TOKEN_REUSE_INTERVAL": {
+ "type": "number"
+ },
+ "MAILER_OTP_EXP": {
+ "type": "number"
+ },
+ "RATE_LIMIT_VERIFY": {
+ "type": "number"
+ },
+ "RATE_LIMIT_TOKEN_REFRESH": {
+ "type": "number"
+ },
+ "id": {
+ "type": "number"
+ },
+ "project_id": {
+ "type": "number"
+ },
+ "updated_at": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "SITE_URL",
+ "OPERATOR_TOKEN",
+ "DISABLE_SIGNUP",
+ "RATE_LIMIT_HEADER",
+ "JWT_EXP",
+ "JWT_AUD",
+ "JWT_DEFAULT_GROUP_NAME",
+ "EXTERNAL_GITHUB_ENABLED",
+ "EXTERNAL_GITHUB_CLIENT_ID",
+ "EXTERNAL_GITHUB_SECRET",
+ "EXTERNAL_BITBUCKET_ENABLED",
+ "EXTERNAL_BITBUCKET_CLIENT_ID",
+ "EXTERNAL_BITBUCKET_SECRET",
+ "EXTERNAL_GOOGLE_ENABLED",
+ "EXTERNAL_GOOGLE_CLIENT_ID",
+ "EXTERNAL_GOOGLE_SECRET",
+ "EXTERNAL_GITLAB_ENABLED",
+ "EXTERNAL_GITLAB_CLIENT_ID",
+ "EXTERNAL_GITLAB_SECRET",
+ "EXTERNAL_GITLAB_REDIRECT_URI",
+ "EXTERNAL_GITLAB_URL",
+ "SMTP_ADMIN_EMAIL",
+ "SMTP_HOST",
+ "SMTP_PORT",
+ "SMTP_USER",
+ "SMTP_PASS",
+ "SMTP_MAX_FREQUENCY",
+ "MAILER_AUTOCONFIRM",
+ "MAILER_URLPATHS_INVITE",
+ "MAILER_URLPATHS_CONFIRMATION",
+ "MAILER_URLPATHS_RECOVERY",
+ "MAILER_URLPATHS_EMAIL_CHANGE",
+ "MAILER_SUBJECTS_INVITE",
+ "MAILER_SUBJECTS_CONFIRMATION",
+ "MAILER_SUBJECTS_RECOVERY",
+ "MAILER_SUBJECTS_EMAIL_CHANGE",
+ "MAILER_TEMPLATES_INVITE",
+ "MAILER_TEMPLATES_INVITE_CONTENT",
+ "MAILER_TEMPLATES_CONFIRMATION",
+ "MAILER_TEMPLATES_CONFIRMATION_CONTENT",
+ "MAILER_TEMPLATES_RECOVERY",
+ "MAILER_TEMPLATES_RECOVERY_CONTENT",
+ "MAILER_TEMPLATES_EMAIL_CHANGE",
+ "MAILER_TEMPLATES_EMAIL_CHANGE_CONTENT",
+ "MAILER_SUBJECTS_MAGIC_LINK",
+ "MAILER_TEMPLATES_MAGIC_LINK",
+ "MAILER_TEMPLATES_MAGIC_LINK_CONTENT",
+ "EXTERNAL_AZURE_ENABLED",
+ "EXTERNAL_AZURE_CLIENT_ID",
+ "EXTERNAL_AZURE_SECRET",
+ "EXTERNAL_FACEBOOK_ENABLED",
+ "EXTERNAL_FACEBOOK_CLIENT_ID",
+ "EXTERNAL_FACEBOOK_SECRET",
+ "URI_ALLOW_LIST",
+ "EXTERNAL_TWITTER_ENABLED",
+ "EXTERNAL_TWITTER_CLIENT_ID",
+ "EXTERNAL_TWITTER_SECRET",
+ "EXTERNAL_APPLE_ENABLED",
+ "EXTERNAL_APPLE_CLIENT_ID",
+ "EXTERNAL_APPLE_SECRET",
+ "EXTERNAL_DISCORD_ENABLED",
+ "EXTERNAL_DISCORD_CLIENT_ID",
+ "EXTERNAL_DISCORD_SECRET",
+ "EXTERNAL_TWITCH_ENABLED",
+ "EXTERNAL_TWITCH_CLIENT_ID",
+ "EXTERNAL_TWITCH_SECRET",
+ "SMTP_SENDER_NAME",
+ "EXTERNAL_EMAIL_ENABLED",
+ "EXTERNAL_PHONE_ENABLED",
+ "SMS_AUTOCONFIRM",
+ "SMS_MAX_FREQUENCY",
+ "SMS_OTP_EXP",
+ "SMS_OTP_LENGTH",
+ "SMS_PROVIDER",
+ "SMS_TWILIO_ACCOUNT_SID",
+ "SMS_TWILIO_AUTH_TOKEN",
+ "SMS_TWILIO_MESSAGE_SERVICE_SID",
+ "SMS_TEMPLATE",
+ "SECURITY_CAPTCHA_ENABLED",
+ "SECURITY_CAPTCHA_PROVIDER",
+ "SECURITY_CAPTCHA_SECRET",
+ "RATE_LIMIT_EMAIL_SENT",
+ "MAILER_SECURE_EMAIL_CHANGE_ENABLED",
+ "EXTERNAL_SPOTIFY_ENABLED",
+ "EXTERNAL_SPOTIFY_CLIENT_ID",
+ "EXTERNAL_SPOTIFY_SECRET",
+ "EXTERNAL_SLACK_ENABLED",
+ "EXTERNAL_SLACK_CLIENT_ID",
+ "EXTERNAL_SLACK_SECRET",
+ "SMS_MESSAGEBIRD_ACCESS_KEY",
+ "SMS_MESSAGEBIRD_ORIGINATOR",
+ "SMTP_PASS_ENCRYPTED",
+ "REFRESH_TOKEN_ROTATION_ENABLED",
+ "EXTERNAL_LINKEDIN_ENABLED",
+ "EXTERNAL_LINKEDIN_CLIENT_ID",
+ "EXTERNAL_LINKEDIN_SECRET",
+ "EXTERNAL_NOTION_ENABLED",
+ "EXTERNAL_NOTION_CLIENT_ID",
+ "EXTERNAL_NOTION_SECRET",
+ "SMS_VONAGE_API_KEY",
+ "SMS_VONAGE_API_SECRET",
+ "SMS_VONAGE_FROM",
+ "SMS_TEXTLOCAL_API_KEY",
+ "SMS_TEXTLOCAL_SENDER",
+ "EXTERNAL_ZOOM_ENABLED",
+ "EXTERNAL_ZOOM_CLIENT_ID",
+ "EXTERNAL_ZOOM_SECRET",
+ "EXTERNAL_AZURE_URL",
+ "PASSWORD_MIN_LENGTH",
+ "EXTERNAL_KEYCLOAK_ENABLED",
+ "EXTERNAL_KEYCLOAK_CLIENT_ID",
+ "EXTERNAL_KEYCLOAK_SECRET",
+ "EXTERNAL_KEYCLOAK_URL",
+ "EXTERNAL_WORKOS_ENABLED",
+ "EXTERNAL_WORKOS_CLIENT_ID",
+ "EXTERNAL_WORKOS_SECRET",
+ "EXTERNAL_WORKOS_URL",
+ "SECURITY_UPDATE_PASSWORD_REQUIRE_REAUTHENTICATION",
+ "SECURITY_REFRESH_TOKEN_REUSE_INTERVAL",
+ "MAILER_OTP_EXP",
+ "RATE_LIMIT_VERIFY",
+ "RATE_LIMIT_TOKEN_REFRESH",
+ "id",
+ "project_id",
+ "updated_at"
+ ]
+ },
+ "UserBody": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "aud": {
+ "type": "string"
+ },
+ "banned_until": {
+ "type": "string"
+ },
+ "confirmation_sent_at": {
+ "type": "string"
+ },
+ "confirmation_token": {
+ "type": "string"
+ },
+ "confirmed_at": {
+ "type": "string"
+ },
+ "created_at": {
+ "type": "string"
+ },
+ "email": {
+ "type": "string"
+ },
+ "email_change": {
+ "type": "string"
+ },
+ "email_change_confirm_status": {
+ "type": "number"
+ },
+ "email_change_sent_at": {
+ "type": "string"
+ },
+ "email_change_token_current": {
+ "type": "string"
+ },
+ "email_change_token_new": {
+ "type": "string"
+ },
+ "email_confirmed_at": {
+ "type": "string"
+ },
+ "encrypted_password": {
+ "type": "string"
+ },
+ "instance_id": {
+ "type": "string"
+ },
+ "invited_at": {
+ "type": "string"
+ },
+ "is_super_admin": {
+ "type": "boolean"
+ },
+ "last_sign_in_at": {
+ "type": "string"
+ },
+ "phone": {
+ "type": "string"
+ },
+ "phone_change": {
+ "type": "string"
+ },
+ "phone_change_sent_at": {
+ "type": "string"
+ },
+ "phone_change_token": {
+ "type": "string"
+ },
+ "phone_confirmed_at": {
+ "type": "string"
+ },
+ "raw_app_meta_data": {
+ "type": "object"
+ },
+ "raw_user_meta_data": {
+ "type": "object"
+ },
+ "reauthentication_sent_at": {
+ "type": "string"
+ },
+ "reauthentication_token": {
+ "type": "string"
+ },
+ "recovery_sent_at": {
+ "type": "string"
+ },
+ "recovery_token": {
+ "type": "string"
+ },
+ "role": {
+ "type": "string"
+ },
+ "updated_at": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "aud",
+ "banned_until",
+ "confirmation_sent_at",
+ "confirmation_token",
+ "confirmed_at",
+ "created_at",
+ "email",
+ "email_change",
+ "email_change_confirm_status",
+ "email_change_sent_at",
+ "email_change_token_current",
+ "email_change_token_new",
+ "email_confirmed_at",
+ "encrypted_password",
+ "instance_id",
+ "invited_at",
+ "is_super_admin",
+ "last_sign_in_at",
+ "phone",
+ "phone_change",
+ "phone_change_sent_at",
+ "phone_change_token",
+ "phone_confirmed_at",
+ "raw_app_meta_data",
+ "raw_user_meta_data",
+ "reauthentication_sent_at",
+ "reauthentication_token",
+ "recovery_sent_at",
+ "recovery_token",
+ "role",
+ "updated_at"
+ ]
+ },
+ "Backup": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number"
+ },
+ "data": {
+ "type": "object"
+ },
+ "project_id": {
+ "type": "number"
+ },
+ "status": {
+ "type": "object"
+ },
+ "s3_path": {
+ "type": "string"
+ },
+ "s3_bucket": {
+ "type": "string"
+ },
+ "inserted_at": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "data",
+ "project_id",
+ "status",
+ "s3_path",
+ "s3_bucket",
+ "inserted_at"
+ ]
+ },
+ "BackupsResponse": {
+ "type": "object",
+ "properties": {
+ "tierId": {
+ "type": "string"
+ },
+ "tierKey": {
+ "type": "string"
+ },
+ "region": {
+ "type": "string"
+ },
+ "walg_enabled": {
+ "type": "boolean"
+ },
+ "backups": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number"
+ },
+ "data": {
+ "type": "object"
+ },
+ "project_id": {
+ "type": "number"
+ },
+ "status": {
+ "type": "object"
+ },
+ "s3_path": {
+ "type": "string"
+ },
+ "s3_bucket": {
+ "type": "string"
+ },
+ "inserted_at": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "data",
+ "project_id",
+ "status",
+ "s3_path",
+ "s3_bucket",
+ "inserted_at"
+ ]
+ }
+ },
+ "physicalBackupData": {
+ "type": "object",
+ "properties": {
+ "earliestPhysicalBackupDateUnix": {
+ "required": true,
+ "type": "number"
+ },
+ "latestPhysicalBackupDateUnix": {
+ "required": true,
+ "type": "number"
+ }
+ }
+ }
+ },
+ "required": [
+ "tierId",
+ "tierKey",
+ "region",
+ "walg_enabled",
+ "backups",
+ "physicalBackupData"
+ ]
+ },
+ "DownloadBackupBody": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number"
+ },
+ "data": {
+ "type": "object"
+ },
+ "inserted_at": {
+ "type": "string"
+ },
+ "project_id": {
+ "type": "number"
+ },
+ "s3_bucket": {
+ "type": "string"
+ },
+ "s3_path": {
+ "type": "string"
+ },
+ "status": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "data",
+ "inserted_at",
+ "project_id",
+ "s3_bucket",
+ "s3_path",
+ "status"
+ ]
+ },
+ "DownloadBackupResponse": {
+ "type": "object",
+ "properties": {
+ "fileUrl": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "fileUrl"
+ ]
+ },
+ "RestoreBackupBody": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number"
+ },
+ "data": {
+ "type": "object"
+ },
+ "inserted_at": {
+ "type": "string"
+ },
+ "project_id": {
+ "type": "number"
+ },
+ "s3_bucket": {
+ "type": "string"
+ },
+ "s3_path": {
+ "type": "string"
+ },
+ "status": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "data",
+ "inserted_at",
+ "project_id",
+ "s3_bucket",
+ "s3_path",
+ "status"
+ ]
+ },
+ "PointInTimeRestoreBody": {
+ "type": "object",
+ "properties": {
+ "recovery_time_target_unix": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "recovery_time_target_unix"
+ ]
+ },
+ "Organization": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number"
+ },
+ "slug": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "billing_email": {
+ "type": "string"
+ },
+ "stripe_customer_id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "slug",
+ "name",
+ "billing_email",
+ "stripe_customer_id"
+ ]
+ },
+ "CreateOrganizationBody": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ]
+ },
+ "UpdateOrganizationBody": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "billing_email": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "billing_email"
+ ]
+ },
+ "RemovedOrganization": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number"
+ },
+ "slug": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "billing_email": {
+ "type": "string"
+ },
+ "stripe_customer_id": {
+ "type": "string"
+ },
+ "status": {
+ "type": "string",
+ "enum": [
+ "ACTIVE",
+ "REMOVED"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "slug",
+ "name",
+ "billing_email",
+ "stripe_customer_id",
+ "status"
+ ]
+ },
+ "Member": {
+ "type": "object",
+ "properties": {
+ "gotrue_id": {
+ "type": "string"
+ },
+ "primary_email": {
+ "type": "string"
+ },
+ "role_ids": {
+ "type": "array",
+ "items": {
+ "type": "number"
+ }
+ },
+ "username": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "gotrue_id",
+ "primary_email",
+ "role_ids",
+ "username"
+ ]
+ },
+ "AddMemberBody": {
+ "type": "object",
+ "properties": {
+ "gotrue_id": {
+ "type": "string"
+ },
+ "org_id": {
+ "type": "number"
+ },
+ "user_id": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "gotrue_id",
+ "user_id"
+ ]
+ },
+ "RemoveMemberBody": {
+ "type": "object",
+ "properties": {
+ "member_id": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "member_id"
+ ]
+ },
+ "CreateTaxIdBody": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "object"
+ },
+ "value": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "value"
+ ]
+ },
+ "DeleteTaxIdBody": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id"
+ ]
+ },
+ "TransferOrganizationBody": {
+ "type": "object",
+ "properties": {
+ "member_id": {
+ "type": "number"
+ },
+ "org_id": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "member_id",
+ "org_id"
+ ]
+ },
+ "InviteUserBody": {
+ "type": "object",
+ "properties": {
+ "invited_email": {
+ "type": "string"
+ },
+ "owner_id": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "invited_email",
+ "owner_id"
+ ]
+ },
+ "DetachPaymentMethodBody": {
+ "type": "object",
+ "properties": {
+ "card_id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "card_id"
+ ]
+ },
+ "CreateColumnBody": {
+ "type": "object",
+ "properties": {
+ "tableId": {
+ "type": "number"
+ },
+ "name": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ },
+ "check": {
+ "type": "string"
+ },
+ "comment": {
+ "type": "string"
+ },
+ "defaultValue": {
+ "type": "object"
+ },
+ "defaultValueFormat": {
+ "type": "string",
+ "enum": [
+ "expression",
+ "literal"
+ ]
+ },
+ "identityGeneration": {
+ "type": "string",
+ "enum": [
+ "BY DEFAULT",
+ "ALWAYS"
+ ]
+ },
+ "isIdentity": {
+ "type": "boolean"
+ },
+ "isNullable": {
+ "type": "boolean"
+ },
+ "isPrimaryKey": {
+ "type": "boolean"
+ },
+ "isUnique": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "tableId",
+ "name",
+ "type"
+ ]
+ },
+ "UpdateColumnBody": {
+ "type": "object",
+ "properties": {
+ "dropDefault": {
+ "type": "boolean"
+ },
+ "id": {
+ "type": "number",
+ "pattern": {}
+ },
+ "name": {
+ "type": "string"
+ },
+ "comment": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ },
+ "defaultValue": {
+ "type": "object"
+ },
+ "defaultValueFormat": {
+ "type": "string",
+ "enum": [
+ "expression",
+ "literal"
+ ]
+ },
+ "identityGeneration": {
+ "type": "string",
+ "enum": [
+ "BY DEFAULT",
+ "ALWAYS"
+ ]
+ },
+ "isIdentity": {
+ "type": "boolean"
+ },
+ "isNullable": {
+ "type": "boolean"
+ },
+ "isUnique": {
+ "type": "boolean"
+ }
+ }
+ },
+ "CreateExtensionBody": {
+ "type": "object",
+ "properties": {
+ "cascade": {
+ "type": "boolean"
+ },
+ "name": {
+ "type": "string"
+ },
+ "schema": {
+ "type": "string"
+ },
+ "version": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "cascade",
+ "name",
+ "schema",
+ "version"
+ ]
+ },
+ "CreateFunctionBody": {
+ "type": "object",
+ "properties": {
+ "args": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "behavior": {
+ "type": "string",
+ "enum": [
+ "VOLATILE",
+ "STABLE",
+ "IMMUTABLE"
+ ]
+ },
+ "config_params": {
+ "type": "object"
+ },
+ "definition": {
+ "type": "string"
+ },
+ "language": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "return_type": {
+ "type": "string"
+ },
+ "schema": {
+ "type": "string"
+ },
+ "security_definer": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "args",
+ "behavior",
+ "definition",
+ "language",
+ "name",
+ "return_type",
+ "schema",
+ "security_definer"
+ ]
+ },
+ "UpdateFunctionBody": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number"
+ },
+ "args": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "behavior": {
+ "type": "string",
+ "enum": [
+ "VOLATILE",
+ "STABLE",
+ "IMMUTABLE"
+ ]
+ },
+ "config_params": {
+ "type": "object"
+ },
+ "definition": {
+ "type": "string"
+ },
+ "language": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "return_type": {
+ "type": "string"
+ },
+ "schema": {
+ "type": "string"
+ },
+ "security_definer": {
+ "type": "boolean"
+ }
+ }
+ },
+ "CreatePolicyBody": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "table": {
+ "type": "string"
+ },
+ "schema": {
+ "type": "string"
+ },
+ "definition": {
+ "type": "string"
+ },
+ "check": {
+ "type": "string"
+ },
+ "action": {
+ "type": "string",
+ "enum": [
+ "PERMISSIVE",
+ "RESTRICTIVE"
+ ]
+ },
+ "command": {
+ "type": "string",
+ "enum": [
+ "SELECT",
+ "INSERT",
+ "UPDATE",
+ "DELETE",
+ "ALL"
+ ]
+ },
+ "roles": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "name",
+ "table"
+ ]
+ },
+ "UpdatePolicyBody": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number"
+ },
+ "name": {
+ "type": "string"
+ },
+ "definition": {
+ "type": "string"
+ },
+ "check": {
+ "type": "string"
+ },
+ "roles": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "CreatePublicationBody": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "owner": {
+ "type": "string"
+ },
+ "tables": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "publish_insert": {
+ "type": "boolean"
+ },
+ "publish_update": {
+ "type": "boolean"
+ },
+ "publish_delete": {
+ "type": "boolean"
+ },
+ "publish_truncate": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "name",
+ "owner",
+ "tables",
+ "publish_insert",
+ "publish_update",
+ "publish_delete",
+ "publish_truncate"
+ ]
+ },
+ "UpdatePublicationBody": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number"
+ },
+ "name": {
+ "type": "string"
+ },
+ "tables": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "publish_insert": {
+ "type": "boolean"
+ },
+ "publish_update": {
+ "type": "boolean"
+ },
+ "publish_delete": {
+ "type": "boolean"
+ },
+ "publish_truncate": {
+ "type": "boolean"
+ }
+ }
+ },
+ "RunQueryBody": {
+ "type": "object",
+ "properties": {
+ "query": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "query"
+ ]
+ },
+ "FormatQueryBody": {
+ "type": "object",
+ "properties": {
+ "query": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "query"
+ ]
+ },
+ "ValidateQueryBody": {
+ "type": "object",
+ "properties": {
+ "query": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "query"
+ ]
+ },
+ "SearchTableBody": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "schema": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "schema"
+ ]
+ },
+ "SearchColumnBody": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "schema": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "schema"
+ ]
+ },
+ "CreateSchemaBody": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "owner": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "owner"
+ ]
+ },
+ "UpdateSchemaBody": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "owner": {
+ "type": "string"
+ }
+ }
+ },
+ "CreateTableBody": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "schema": {
+ "type": "string"
+ },
+ "comment": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ]
+ },
+ "UpdateTableBody": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number"
+ },
+ "rls_enabled": {
+ "type": "boolean"
+ },
+ "rls_forced": {
+ "type": "boolean"
+ },
+ "replica_identity": {
+ "type": "string",
+ "enum": [
+ "DEFAULT",
+ "INDEX",
+ "FULL",
+ "NOTHING"
+ ]
+ },
+ "replica_identity_index": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "schema": {
+ "type": "string"
+ },
+ "comment": {
+ "type": "string"
+ }
+ }
+ },
+ "CreateTriggerBody": {
+ "type": "object",
+ "properties": {
+ "activation": {
+ "type": "string",
+ "enum": [
+ "AFTER",
+ "BEFORE"
+ ]
+ },
+ "enabled_mode": {
+ "type": "string",
+ "enum": [
+ "ORIGIN",
+ "REPLICA",
+ "ALWAYS",
+ "DISABLED"
+ ]
+ },
+ "events": {
+ "type": "array",
+ "items": {
+ "type": "string",
+ "enum": [
+ "INSERT",
+ "UPDATE",
+ "DELETE"
+ ]
+ }
+ },
+ "function_args": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "function_name": {
+ "type": "string"
+ },
+ "function_schema": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "orientation": {
+ "type": "string",
+ "enum": [
+ "ROW",
+ "STATEMENT"
+ ]
+ },
+ "schema": {
+ "type": "string"
+ },
+ "table": {
+ "type": "string"
+ },
+ "table_id": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "activation",
+ "enabled_mode",
+ "events",
+ "function_args",
+ "function_name",
+ "function_schema",
+ "name",
+ "orientation",
+ "schema",
+ "table"
+ ]
+ },
+ "UpdateTriggerBody": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number"
+ },
+ "activation": {
+ "type": "string",
+ "enum": [
+ "AFTER",
+ "BEFORE"
+ ]
+ },
+ "enabled_mode": {
+ "type": "string",
+ "enum": [
+ "ORIGIN",
+ "REPLICA",
+ "ALWAYS",
+ "DISABLED"
+ ]
+ },
+ "events": {
+ "type": "array",
+ "items": {
+ "type": "string",
+ "enum": [
+ "INSERT",
+ "UPDATE",
+ "DELETE"
+ ]
+ }
+ },
+ "function_args": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "function_name": {
+ "type": "string"
+ },
+ "function_schema": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "orientation": {
+ "type": "string",
+ "enum": [
+ "ROW",
+ "STATEMENT"
+ ]
+ },
+ "schema": {
+ "type": "string"
+ },
+ "table": {
+ "type": "string"
+ },
+ "table_id": {
+ "type": "number"
+ }
+ }
+ },
+ "AccessToken": {
+ "type": "object",
+ "properties": {
+ "created_at": {
+ "type": "string"
+ },
+ "id": {
+ "type": "number"
+ },
+ "token_alias": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "created_at",
+ "id",
+ "token_alias",
+ "name"
+ ]
+ },
+ "CreateAccessTokenBody": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ]
+ },
+ "CreateAccessTokenResponse": {
+ "type": "object",
+ "properties": {
+ "created_at": {
+ "type": "string"
+ },
+ "id": {
+ "type": "number"
+ },
+ "token_alias": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "token": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "created_at",
+ "id",
+ "token_alias",
+ "name",
+ "token"
+ ]
+ },
+ "SearchProfileBody": {
+ "type": "object",
+ "properties": {
+ "keywords": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "keywords"
+ ]
+ },
+ "Profile": {
+ "type": "object",
+ "properties": {
+ "first_name": {
+ "type": "string"
+ },
+ "gotrue_id": {
+ "type": "string"
+ },
+ "id": {
+ "type": "number"
+ },
+ "last_name": {
+ "type": "string"
+ },
+ "username": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "first_name",
+ "gotrue_id",
+ "id",
+ "last_name",
+ "username"
+ ]
+ },
+ "SubscriptionStatisticsResponse": {
+ "type": "object",
+ "properties": {
+ "total_paid_projects": {
+ "type": "number"
+ },
+ "total_free_projects": {
+ "type": "number"
+ },
+ "total_active_free_projects": {
+ "type": "number"
+ },
+ "total_paused_free_projects": {
+ "type": "number"
+ },
+ "total_pro_projects": {
+ "type": "number"
+ },
+ "total_payg_projects": {
+ "type": "number"
+ },
+ "total_enterprise_projects": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "total_paid_projects",
+ "total_free_projects",
+ "total_active_free_projects",
+ "total_paused_free_projects",
+ "total_pro_projects",
+ "total_payg_projects",
+ "total_enterprise_projects"
+ ]
+ },
+ "PasswordCheckBody": {
+ "type": "object",
+ "properties": {
+ "password": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "password"
+ ]
+ },
+ "PasswordCheckResponse": {
+ "type": "object",
+ "properties": {
+ "result": {
+ "type": "object",
+ "properties": {
+ "feedback": {
+ "type": "object",
+ "properties": {
+ "warning": {
+ "required": true,
+ "type": "string"
+ },
+ "suggestions": {
+ "required": true,
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "score": {
+ "required": true,
+ "type": "number"
+ }
+ }
+ }
+ },
+ "required": [
+ "result"
+ ]
+ },
+ "Permission": {
+ "type": "object",
+ "properties": {
+ "actions": {
+ "type": "array",
+ "items": {
+ "type": "string",
+ "enum": [
+ "analytics:Read",
+ "auth:Execute",
+ "billing:Read",
+ "billing:Write",
+ "functions:Read",
+ "functions:Write",
+ "infra:Execute",
+ "sql:Read:Select",
+ "sql:Write:Delete",
+ "sql:Write:Insert",
+ "sql:Write:Update",
+ "storage:Admin:Read",
+ "storage:Admin:Write",
+ "tenant:Sql:Admin:Read",
+ "tenant:Sql:Admin:Write",
+ "tenant:Sql:CreateTable",
+ "tenant:Sql:Write:Delete",
+ "tenant:Sql:Write:Insert",
+ "tenant:Sql:Query",
+ "tenant:Sql:Read:Select",
+ "tenant:Sql:Write:Update"
+ ]
+ }
+ },
+ "condition": {
+ "type": "object",
+ "nullable": true
+ },
+ "organization_id": {
+ "type": "number"
+ },
+ "resources": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "actions",
+ "condition",
+ "organization_id",
+ "resources"
+ ]
+ },
+ "ProfileResponse": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "number"
+ },
+ "auth0_id": {
+ "type": "string"
+ },
+ "primary_email": {
+ "type": "string"
+ },
+ "username": {
+ "type": "string"
+ },
+ "first_name": {
+ "type": "string"
+ },
+ "last_name": {
+ "type": "string"
+ },
+ "mobile": {
+ "type": "string"
+ },
+ "is_alpha_user": {
+ "type": "boolean"
+ },
+ "gotrue_id": {
+ "type": "string"
+ },
+ "free_project_limit": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "id",
+ "auth0_id",
+ "primary_email",
+ "username",
+ "first_name",
+ "last_name",
+ "mobile",
+ "is_alpha_user",
+ "gotrue_id",
+ "free_project_limit"
+ ]
+ },
+ "UpdateProfileBody": {
+ "type": "object",
+ "properties": {
+ "first_name": {
+ "type": "string"
+ },
+ "last_name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "first_name",
+ "last_name"
+ ]
+ },
+ "CreateProjectBody": {
+ "type": "object",
+ "properties": {
+ "db_pass": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "organization_id": {
+ "type": "string"
+ },
+ "plan": {
+ "type": "string",
+ "enum": [
+ "free",
+ "pro"
+ ]
+ },
+ "region": {
+ "type": "string",
+ "enum": [
+ "us-east-1",
+ "us-west-1",
+ "ap-southeast-1",
+ "ap-northeast-1",
+ "ap-northeast-2",
+ "ap-southeast-2",
+ "eu-west-1",
+ "eu-west-2",
+ "eu-central-1",
+ "ca-central-1",
+ "ap-south-1",
+ "sa-east-1"
+ ]
+ }
+ },
+ "required": [
+ "db_pass",
+ "name",
+ "organization_id",
+ "plan",
+ "region"
+ ]
+ },
+ "UpdatePasswordBody": {
+ "type": "object",
+ "properties": {
+ "password": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "password"
+ ]
+ },
+ "PoolingConfig": {
+ "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"
+ },
+ "pgbouncer_status": {
+ "type": "string"
+ },
+ "pool_mode": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "db_dns_name",
+ "db_host",
+ "db_name",
+ "db_port",
+ "db_ssl",
+ "db_user",
+ "default_pool_size",
+ "ignore_startup_parameters",
+ "inserted_at",
+ "pgbouncer_enabled",
+ "pgbouncer_status",
+ "pool_mode"
+ ]
+ },
+ "UpdatePoolingConfigBody": {
+ "type": "object",
+ "properties": {
+ "default_pool_size": {
+ "type": "number"
+ },
+ "ignore_startup_parameters": {
+ "type": "string"
+ },
+ "pgbouncer_enabled": {
+ "type": "boolean"
+ },
+ "pool_mode": {
+ "type": "string",
+ "enum": [
+ "transaction",
+ "session",
+ "statement"
+ ]
+ }
+ },
+ "required": [
+ "default_pool_size",
+ "ignore_startup_parameters",
+ "pgbouncer_enabled",
+ "pool_mode"
+ ]
+ },
+ "UpdatePoolingConfigResponse": {
+ "type": "object",
+ "properties": {
+ "default_pool_size": {
+ "type": "number"
+ },
+ "ignore_startup_parameters": {
+ "type": "string"
+ },
+ "pgbouncer_enabled": {
+ "type": "boolean"
+ },
+ "pool_mode": {
+ "enum": [
+ "transaction",
+ "session",
+ "statement"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "default_pool_size",
+ "ignore_startup_parameters",
+ "pgbouncer_enabled",
+ "pool_mode"
+ ]
+ },
+ "UpdateProjectBody": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ]
+ },
+ "Project": {
+ "type": "object",
+ "properties": {}
+ },
+ "RestartRequest": {
+ "type": "object",
+ "properties": {
+ "services": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "source_notification_id": {
+ "type": "string"
+ },
+ "region": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "services",
+ "region"
+ ]
+ },
+ "RestartServicesBody": {
+ "type": "object",
+ "properties": {
+ "restartRequest": {
+ "type": "object",
+ "properties": {
+ "services": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "source_notification_id": {
+ "type": "string"
+ },
+ "region": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "services",
+ "region"
+ ]
+ }
+ },
+ "required": [
+ "restartRequest"
+ ]
+ },
+ "UsageStatusResponse": {
+ "type": "object",
+ "properties": {
+ "database": {
+ "type": "string",
+ "enum": [
+ "fine",
+ "approaching",
+ "over"
+ ]
+ },
+ "storage": {
+ "type": "string",
+ "enum": [
+ "fine",
+ "approaching",
+ "over"
+ ]
+ },
+ "database_bandwidth": {
+ "type": "string",
+ "enum": [
+ "fine",
+ "approaching",
+ "over"
+ ]
+ },
+ "storage_bandwidth": {
+ "type": "string",
+ "enum": [
+ "fine",
+ "approaching",
+ "over"
+ ]
+ },
+ "active_users": {
+ "type": "string",
+ "enum": [
+ "fine",
+ "approaching",
+ "over"
+ ]
+ }
+ },
+ "required": [
+ "database",
+ "storage",
+ "database_bandwidth",
+ "storage_bandwidth",
+ "active_users"
+ ]
+ },
+ "SendEnterpriseRequestBody": {
+ "type": "object",
+ "properties": {
+ "company": {
+ "type": "string"
+ },
+ "email": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "company",
+ "email",
+ "message",
+ "name"
+ ]
+ },
+ "PreviewSubscriptionBody": {
+ "type": "object",
+ "properties": {
+ "addons": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "payment_method": {
+ "type": "string"
+ },
+ "proration_date": {
+ "type": "number"
+ },
+ "tier": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "addons",
+ "payment_method",
+ "proration_date",
+ "tier"
+ ]
+ },
+ "UpdateSubscriptionBody": {
+ "type": "object",
+ "properties": {
+ "addons": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "payment_method": {
+ "type": "string"
+ },
+ "proration_date": {
+ "type": "number"
+ },
+ "tier": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "addons",
+ "payment_method",
+ "proration_date",
+ "tier"
+ ]
+ },
+ "UpdatePostgrestConfigBody": {
+ "type": "object",
+ "properties": {
+ "db_extra_search_path": {
+ "type": "string"
+ },
+ "db_schema": {
+ "type": "string"
+ },
+ "max_rows": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "db_extra_search_path",
+ "db_schema",
+ "max_rows"
+ ]
+ },
+ "UpdateSecretsConfigBody": {
+ "type": "object",
+ "properties": {
+ "jwt_secret": {
+ "type": "string"
+ },
+ "change_tracking_id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "jwt_secret",
+ "change_tracking_id"
+ ]
+ },
+ "UpdateStorageConfigBody": {
+ "type": "object",
+ "properties": {
+ "fileSizeLimit": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "fileSizeLimit"
+ ]
+ },
+ "OrganizationMembersResponse": {
+ "type": "object",
+ "properties": {
+ "members": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "gotrue_id": {
+ "type": "string"
+ },
+ "primary_email": {
+ "type": "string"
+ },
+ "role_ids": {
+ "type": "array",
+ "items": {
+ "type": "number"
+ }
+ },
+ "username": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "gotrue_id",
+ "primary_email",
+ "role_ids",
+ "username"
+ ]
+ }
+ }
+ },
+ "required": [
+ "members"
+ ]
+ },
+ "PoolingRefConfig": {
+ "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"
+ },
+ "pgbouncer_status": {
+ "type": "string"
+ },
+ "pool_mode": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "db_dns_name",
+ "db_host",
+ "db_name",
+ "db_port",
+ "db_ssl",
+ "db_user",
+ "default_pool_size",
+ "ignore_startup_parameters",
+ "inserted_at",
+ "pgbouncer_enabled",
+ "pgbouncer_status",
+ "pool_mode"
+ ]
+ },
+ "PoolingRefConfigResponse": {
+ "type": "object",
+ "properties": {
+ "project": {
+ "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"
+ },
+ "pgbouncer_status": {
+ "type": "string"
+ },
+ "pool_mode": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "db_dns_name",
+ "db_host",
+ "db_name",
+ "db_port",
+ "db_ssl",
+ "db_user",
+ "default_pool_size",
+ "ignore_startup_parameters",
+ "inserted_at",
+ "pgbouncer_enabled",
+ "pgbouncer_status",
+ "pool_mode"
+ ]
+ }
+ },
+ "required": [
+ "project"
+ ]
+ },
+ "UpdatePoolingRefConfigBody": {
+ "type": "object",
+ "properties": {
+ "default_pool_size": {
+ "type": "number"
+ },
+ "ignore_startup_parameters": {
+ "type": "string"
+ },
+ "pgbouncer_enabled": {
+ "type": "boolean"
+ },
+ "pool_mode": {
+ "type": "string",
+ "enum": [
+ "transaction",
+ "session",
+ "statement"
+ ]
+ }
+ },
+ "required": [
+ "default_pool_size",
+ "ignore_startup_parameters",
+ "pgbouncer_enabled",
+ "pool_mode"
+ ]
+ },
+ "UpdatePoolingRefConfigResponse": {
+ "type": "object",
+ "properties": {
+ "project": {
+ "type": "object",
+ "properties": {
+ "default_pool_size": {
+ "type": "number"
+ },
+ "ignore_startup_parameters": {
+ "type": "string"
+ },
+ "pgbouncer_enabled": {
+ "type": "boolean"
+ },
+ "pool_mode": {
+ "type": "string",
+ "enum": [
+ "transaction",
+ "session",
+ "statement"
+ ]
+ }
+ },
+ "required": [
+ "default_pool_size",
+ "ignore_startup_parameters",
+ "pgbouncer_enabled",
+ "pool_mode"
+ ]
+ }
+ },
+ "required": [
+ "project"
+ ]
+ },
+ "ServiceApiKey": {
+ "type": "object",
+ "properties": {
+ "api_key_encrypted": {
+ "type": "string"
+ },
+ "tags": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "api_key_encrypted",
+ "tags",
+ "name"
+ ]
+ },
+ "AutoApiService": {
+ "type": "object",
+ "properties": {
+ "endpoint": {
+ "type": "string"
+ },
+ "restUrl": {
+ "type": "string"
+ },
+ "project": {
+ "type": "object",
+ "properties": {
+ "ref": {
+ "required": true,
+ "type": "string"
+ }
+ }
+ },
+ "defaultApiKey": {
+ "type": "string"
+ },
+ "serviceApiKey": {
+ "type": "string"
+ },
+ "id": {
+ "type": "number"
+ },
+ "name": {
+ "type": "string"
+ },
+ "app_config": {
+ "type": "object"
+ },
+ "app": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "required": true,
+ "type": "number"
+ },
+ "name": {
+ "required": true,
+ "type": "string"
+ }
+ }
+ },
+ "service_api_keys": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "api_key_encrypted": {
+ "type": "string"
+ },
+ "tags": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "api_key_encrypted",
+ "tags",
+ "name"
+ ]
+ }
+ }
+ },
+ "required": [
+ "endpoint",
+ "restUrl",
+ "project",
+ "defaultApiKey",
+ "serviceApiKey",
+ "id",
+ "name",
+ "app_config",
+ "app",
+ "service_api_keys"
+ ]
+ },
+ "ApiResponse": {
+ "type": "object",
+ "properties": {
+ "project": {
+ "type": "object",
+ "properties": {}
+ },
+ "autoApiService": {
+ "type": "object",
+ "properties": {
+ "endpoint": {
+ "type": "string"
+ },
+ "restUrl": {
+ "type": "string"
+ },
+ "project": {
+ "type": "object",
+ "properties": {
+ "ref": {
+ "required": true,
+ "type": "string"
+ }
+ }
+ },
+ "defaultApiKey": {
+ "type": "string"
+ },
+ "serviceApiKey": {
+ "type": "string"
+ },
+ "id": {
+ "type": "number"
+ },
+ "name": {
+ "type": "string"
+ },
+ "app_config": {
+ "type": "object"
+ },
+ "app": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "required": true,
+ "type": "number"
+ },
+ "name": {
+ "required": true,
+ "type": "string"
+ }
+ }
+ },
+ "service_api_keys": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "api_key_encrypted": {
+ "type": "string"
+ },
+ "tags": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "api_key_encrypted",
+ "tags",
+ "name"
+ ]
+ }
+ }
+ },
+ "required": [
+ "endpoint",
+ "restUrl",
+ "project",
+ "defaultApiKey",
+ "serviceApiKey",
+ "id",
+ "name",
+ "app_config",
+ "app",
+ "service_api_keys"
+ ]
+ }
+ },
+ "required": [
+ "project",
+ "autoApiService"
+ ]
+ },
+ "JwtSecretUpdateStatus": {
+ "type": "object",
+ "properties": {
+ "jwtSecretUpdateStatus": {
+ "type": "object",
+ "properties": {
+ "change_tracking_id": {
+ "required": true,
+ "type": "string"
+ },
+ "error": {
+ "required": false,
+ "enum": [
+ "PostgreSQLRestartFailed",
+ "APIServicesConfigurationUpdateFailed",
+ "APIServicesRestartFailed",
+ "DatabaseAdminAPIConfigurationUpdateFailed",
+ "SupabaseAPIKeyUpdateFailed",
+ "APIGatewayUpdateFailed"
+ ],
+ "type": "string"
+ },
+ "progress": {
+ "required": false,
+ "enum": [
+ "Started",
+ "RestartedPostgreSQL",
+ "UpdatedAPIServicesConfiguration",
+ "RestartedAPIServices",
+ "UpdatedDatabaseAdminAPIConfiguration",
+ "UpdatedAPIGatewayConfiguration"
+ ],
+ "type": "string"
+ },
+ "status": {
+ "required": true,
+ "enum": [
+ "Updating",
+ "Updated",
+ "Failed"
+ ],
+ "type": "string"
+ }
+ }
+ }
+ },
+ "required": [
+ "jwtSecretUpdateStatus"
+ ]
+ },
+ "ServiceApiKeyResponse": {
+ "type": "object",
+ "properties": {
+ "api_key": {
+ "type": "string"
+ },
+ "api_key_encrypted": {
+ "type": "string"
+ },
+ "tags": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "api_key",
+ "api_key_encrypted",
+ "tags",
+ "name"
+ ]
+ },
+ "ServiceResponse": {
+ "type": "object",
+ "properties": {
+ "service_api_keys": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "api_key": {
+ "type": "string"
+ },
+ "api_key_encrypted": {
+ "type": "string"
+ },
+ "tags": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "api_key",
+ "api_key_encrypted",
+ "tags",
+ "name"
+ ]
+ }
+ },
+ "id": {
+ "type": "number"
+ },
+ "name": {
+ "type": "string"
+ },
+ "app_config": {
+ "type": "object"
+ },
+ "app": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "required": true,
+ "type": "number"
+ },
+ "name": {
+ "required": true,
+ "type": "string"
+ }
+ }
+ }
+ },
+ "required": [
+ "service_api_keys",
+ "id",
+ "name",
+ "app_config",
+ "app"
+ ]
+ },
+ "ProjectResponse": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "organization_id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "region": {
+ "type": "string"
+ },
+ "created_at": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "organization_id",
+ "name",
+ "region",
+ "created_at"
+ ]
+ },
+ "SettingsResponse": {
+ "type": "object",
+ "properties": {
+ "project": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "organization_id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "region": {
+ "type": "string"
+ },
+ "created_at": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "organization_id",
+ "name",
+ "region",
+ "created_at"
+ ]
+ },
+ "services": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "service_api_keys": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "api_key": {
+ "type": "string"
+ },
+ "api_key_encrypted": {
+ "type": "string"
+ },
+ "tags": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "api_key",
+ "api_key_encrypted",
+ "tags",
+ "name"
+ ]
+ }
+ },
+ "id": {
+ "type": "number"
+ },
+ "name": {
+ "type": "string"
+ },
+ "app_config": {
+ "type": "object"
+ },
+ "app": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "required": true,
+ "type": "number"
+ },
+ "name": {
+ "required": true,
+ "type": "string"
+ }
+ }
+ }
+ },
+ "required": [
+ "service_api_keys",
+ "id",
+ "name",
+ "app_config",
+ "app"
+ ]
+ }
+ }
+ },
+ "required": [
+ "project",
+ "services"
+ ]
+ },
+ "GetCustomerBody": {
+ "type": "object",
+ "properties": {
+ "stripe_customer_id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "stripe_customer_id"
+ ]
+ },
+ "CreateCustomerPortalSessionBody": {
+ "type": "object",
+ "properties": {
+ "projectRef": {
+ "type": "string",
+ "minLength": 20,
+ "maxLength": 20
+ },
+ "returnTo": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "projectRef",
+ "returnTo"
+ ]
+ },
+ "TelemetryEventBody": {
+ "type": "object",
+ "properties": {
+ "category": {
+ "type": "string"
+ },
+ "action": {
+ "type": "string"
+ },
+ "label": {
+ "type": "object"
+ },
+ "value": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "category",
+ "action"
+ ]
+ },
+ "CreateVercelEnvironmentVariableBody": {
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "target": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "type": {
+ "type": "string"
+ },
+ "value": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "key",
+ "target",
+ "type",
+ "value"
+ ]
+ },
+ "CreateSubscriptionBody": {
+ "type": "object",
+ "properties": {
+ "projectId": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "projectId"
+ ]
+ },
+ "StripeSyncBody": {
+ "type": "object",
+ "properties": {
+ "organizationId": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "organizationId"
+ ]
+ },
+ "Buffer": {
+ "type": "object",
+ "properties": {}
+ },
+ "OrganizationResponse": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "name"
+ ]
+ }
+ }
+ }
+}