Skip to content

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

Add a readme describing how docs work, misc required cleanup

Terry Sutton36a38106a1d6
diff --git a/apps/docs/DEVELOPERS.md b/apps/docs/DEVELOPERS.md
new file mode 100644
index 00000000000..bd54993a356
--- /dev/null
+++ b/apps/docs/DEVELOPERS.md
@@ -0,0 +1,89 @@
+# Developing Supabase Docs
+
+## Getting started
+
+Thanks for your interest in [Supabase docs](https://supabase.com/docs) and for wanting to contribute! Before you begin, read the
+[code of conduct](https://github.com/supabase/.github/blob/main/CODE_OF_CONDUCT.md) and check out the
+[existing issues](https://github.com/supabase/supabase/issues).
+This document describes how to set up your development environment to contribute to [Supabase docs](https://supabase.com/docs).
+
+For a complete run-down on how all of our tools work together, see the main DEVELOPERS.md. That readme describes how to get setup locally in lots of detail, including details minimum requirements, our Turborepo setup, installing packages, sharing components across projects and more. This readme deals specifically with the docs site.
+
+## Local setup
+
+[supabase.com/docs](https://supabase.com/docs) is a Next.JS site. You can get setup by following the same steps for all of our other Next.JS projects:
+
+1. Follow the steps outlined in the Local Development section of the main [DEVELOPERS.md](https://github.com/supabase/supabase/blob/master/DEVELOPERS.md)
+2. Start the local docs site by navigating to `/apps/docs` and running `npm run dev`
+3. Visit http://localhost:3001/docs in your browser - don't forget to append the `/docs` to the end
+4. Your local site should look exactly like [https://supabase.com/docs](https://supabase.com/docs)
+
+## Types of documentation
+
+[https://supabase.com/docs](https://supabase.com/docs) has several different kinds of documentation, all coming from different sources.
+
+### Guides
+
+The primary, instructional type of content. Basically anything that lives on the `https://supabase.com/docs/guides` route. This includes Guides for Auth, Database, Storage, Realtime as well as general resources, self-hosting instructions and integrations. These are all [`.mdx`](https://mdxjs.com/) files — a combination of Markdown and Javascript.
+
+#### Things to know
+
+Here's a simple [example](https://supabase.com/docs/guides/functions) `.mdx` Guide, and here is [the source on Github](https://raw.githubusercontent.com/supabase/supabase/master/apps/docs/pages/guides/functions.mdx).
+
+Some things to note:
+
+1. The files need to import a Layout at the top
+2. The files need to export a `Page` at the bottom with the `<Layout>` component
+3. The files frontmatter is stored in `const meta = {}`. You should always include `id`, `title` and `description`.
+4. You can write Markdown as you normally would, but you can also write regular Javascript and JSX. Note the `examples` array that we iterate over.
+5. Any Javascript variables you use in these files need to be exported in order to be used. IE: `export const examples = []`
+
+##### Using components
+
+You can use any standard React components in these `.mdx` files without having to explicitly import them in each file. All components get imported in a [common components](https://github.com/supabase/supabase/blob/master/apps/docs/components/index.tsx) file and can be used in any `.mdx` file. Components can also be "intercepted" and modified via this file. Note how we're intercepting the `h2`, `h3` and `code` tags and modifying them before converting the `mdx` to `html`.
+
+### Reference docs for client libraries
+
+We maintain client libraries for [Javascript](https://supabase.com/docs/reference/javascript) and [Flutter/Dart](https://supabase.com/docs/reference/dart) (with more to come). These reference docs document every object and method available for developers to use. The are assembled from different sources and work much differently than the `.mdx` Guides we just looked at.
+
+The client libraries are essentially wrappers around the clients for the various tools we use — GoTrue, PostgREST, Storage, Functions and Realtime. The easiest way to describe how the things fit together is to look at an example and trace where the various pieces of information are coming from.
+
+#### Example
+
+Let's look at the `updateUser()` function in the `supabase-js` library.
+
+#### Common file
+
+Several pieces of information for this function come from a [common file](https://github.com/supabase/supabase/blob/master/spec/common-client-libs-sections.json#L548) where we store information shared by all libraries.
+
+1. id — used to identify this function
+2. title - the human-readable title
+3. slug — the url slug
+4. product - the supabase tool or product that "owns" this function. Since `updateUser()` is an auth function, it's product is `auth`
+5. type — `updateUser()` is a function and marked as such, but we can also have sections of markdown interspersed with these function definitions.
+
+#### Function Parameters
+
+The `updateUser()` function takes one parameter: `attributes`. The details for this parameter live in the GoTrue client library, referenced via a `$ref` property in the `supabase-js` [spec file](https://github.com/supabase/supabase/blob/master/spec/supabase_js_v2.yml#L357). Here, the `$ref` property is pointing to the [actual function definition](https://github.com/supabase/gotrue-js/blob/master/src/GoTrueClient.ts#L590) in the `gotrue-js` library. The accepted values for the `attributes` parameter come from the [type definition](https://github.com/supabase/gotrue-js/blob/16d3deb822097e8640a3a15b94a5690b3beaf11b/src/lib/types.ts#L233).
+
+These individual library spec files are fetched via this [Makefile](https://github.com/supabase/supabase/blob/master/spec/Makefile), and get [transformed](https://github.com/supabase/supabase/blob/master/spec/enrichments/tsdoc_v2/supabase_dereferenced.json) to combine the information we need (params, types, etc). If you're working on docs, you likely won't need to touch this part of the setup, but we've included this detail here to point you in the right direction in case you do.
+
+#### Function Examples
+
+The `updateUser()` function has three examples listed with it. The examples are stored along with the `$ref` property in the [supabase_js_v2 spec file](https://github.com/supabase/supabase/blob/master/spec/supabase_js_v2.yml).
+
+#### Rendering in Next.JS
+
+These reference docs are rendered by Next.JS via a dynamic route using a [`[...slug.tsx]`](https://github.com/supabase/supabase/blob/master/apps/docs/pages/reference/javascript/%5B...slug%5D.tsx). Here, we use the library [spec file](https://github.com/supabase/supabase/blob/master/apps/docs/pages/reference/javascript/%5B...slug%5D.tsx#L4) and the [common file](https://github.com/supabase/supabase/blob/master/apps/docs/pages/reference/javascript/%5B...slug%5D.tsx#L1) to output the info you see on the page.
+
+### Other reference docs
+
+The reference docs for the [Supabase Management API](https://supabase.com/docs/reference/api) and the [Supabase CLI](https://supabase.com/docs/reference/cli) are a little more straightforward than the client libraries. Both files also have a [common file](https://github.com/supabase/supabase/blob/master/spec/common-cli-sections.json) which handles things like `title`, `id` and `slug`. Both also have a spec file detailing things like parameters, descriptions and responses ([Management API](https://github.com/supabase/supabase/blob/master/spec/api_v0_openapi.json) / [CLI](https://github.com/supabase/supabase/blob/master/spec/cli_v1_commands.yaml))
+
+On the Next.JS side of things, these work almost exactly the same as the client libaries with a dynamic [`[...slug.tsx]`](https://github.com/supabase/supabase/blob/master/apps/docs/pages/reference/cli/%5B...slug%5D.tsx).
+
+### Misc
+
+#### Search
+
+Search is handled through Algolia. When the site is built, a [script](https://github.com/supabase/supabase/blob/master/apps/docs/scripts/build-search.ts) runs through all of the types of content, generating search objects that are sent to Algolia to index.
diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenuRefListItems.tsx b/apps/docs/components/Navigation/NavigationMenu/NavigationMenuRefListItems.tsx
index 1611cd51992..123a34e27ad 100644
--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenuRefListItems.tsx
+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenuRefListItems.tsx
@@ -257,20 +257,18 @@ const Content: React.FC<INavigationMenuRefList> = ({ id, lib, commonSections, sp
<Fragment key={fn.id}>
<RenderLink {...fn} lib={lib} />
{fn.items &&
- fn.items
- //.filter((item) => item.libs.includes(lib))
- .map((item) => (
- <RenderLink
- {...item}
- library={menu.title}
- index={fnIndex}
- modifierIds={modifierIds}
- filterIds={filterIds}
- authServerIds={authServerIds}
- lib={lib}
- allowedKeys={allowedKeys}
- />
- ))}
+ fn.items.map((item) => (
+ <RenderLink
+ {...item}
+ library={menu.title}
+ index={fnIndex}
+ modifierIds={modifierIds}
+ filterIds={filterIds}
+ authServerIds={authServerIds}
+ lib={lib}
+ allowedKeys={allowedKeys}
+ />
+ ))}
</Fragment>
) : (
<Fragment key={fn.title}>
diff --git a/apps/docs/components/Options.tsx b/apps/docs/components/Options.tsx
index c2783edeaa4..e349cdd97bb 100644
--- a/apps/docs/components/Options.tsx
+++ b/apps/docs/components/Options.tsx
@@ -70,7 +70,9 @@ const Option: FC<IOption> = (props) => {
</span>
<span className="text-scale-900 text-xs">{props.type ?? 'no type'}</span>
</div>
- <p className="text-sm text-scale-1000 m-0">{props.description ?? 'nodescription'}</p>
+
+ {props.description && <p className="text-sm text-scale-1000 m-0">{props.description}</p>}
+
{props.children}
</div>
)
diff --git a/apps/docs/components/Params.tsx b/apps/docs/components/Params.tsx
index ede7f8bcac7..10994966198 100644
--- a/apps/docs/components/Params.tsx
+++ b/apps/docs/components/Params.tsx
@@ -20,7 +20,9 @@ const Param: FC<IParamProps> = (paramItem) => {
</span>
<span className="text-scale-900 text-xs">{paramItem.type ?? 'no type'}</span>
</div>
- <p className="text-sm text-scale-1000 m-0">{paramItem.description ?? 'nodescription'}</p>
+ {paramItem.description && (
+ <p className="text-sm text-scale-1000 m-0">{paramItem.description} </p>
+ )}
{paramItem.children}
</li>
)
diff --git a/apps/docs/components/index.tsx b/apps/docs/components/index.tsx
index 9ee8c4060d5..587a5cfee32 100644
--- a/apps/docs/components/index.tsx
+++ b/apps/docs/components/index.tsx
@@ -1,4 +1,5 @@
-import { Button, Tabs, Alert } from 'ui'
+import { Button, Tabs, Alert, GlassPanel } from 'ui'
+import Link from 'next/link'
// Common components
import Admonition from './Admonition'
@@ -38,6 +39,8 @@ const components = {
Button,
ButtonCard,
CodeBlock,
+ GlassPanel,
+ Link,
Frameworks,
AuthProviders,
FunctionsExamples,
diff --git a/apps/docs/pages/guides/functions.mdx b/apps/docs/pages/guides/functions.mdx
index 9c970cb6bfe..a382f7ccde1 100644
--- a/apps/docs/pages/guides/functions.mdx
+++ b/apps/docs/pages/guides/functions.mdx
@@ -1,6 +1,4 @@
import Layout from '~/layouts/DefaultGuideLayout'
-import { Button, GlassPanel } from 'ui'
-import Link from 'next/link'
export const meta = {
id: 'functions',
diff --git a/spec/common-client-libs-sections.json b/spec/common-client-libs-sections.json
index 14606af13be..c290fb91859 100644
--- a/spec/common-client-libs-sections.json
+++ b/spec/common-client-libs-sections.json
@@ -3,15 +3,13 @@
"title": "Introduction",
"id": "introduction",
"slug": "introduction",
- "type": "markdown",
- "libs": ["js", "js_v1", "dart", "dart_v0"]
+ "type": "markdown"
},
{
"title": "Installing",
"id": "installing",
"slug": "installing",
- "type": "markdown",
- "libs": ["js", "js_v1", "dart", "dart_v0"]
+ "type": "markdown"
},
{
"title": "Initializing",
@@ -23,67 +21,59 @@
"title": "Typescript Support",
"id": "typescript-support",
"slug": "typescript-support",
- "type": "markdown",
- "libs": ["js", "js_v1"]
+ "type": "markdown"
},
{
"title": "Upgrade guide",
"id": "upgrade-guide",
"slug": "upgrade-guide",
- "type": "markdown",
- "libs": ["js"]
+ "type": "markdown"
},
{
"title": "Database",
- "libs": ["js", "js_v1", "dart", "dart_v0"],
+
"items": [
{
"id": "select",
"title": "Fetch data",
"slug": "select",
"product": "database",
- "type": "function",
- "libs": ["js", "js_v1", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "insert",
"title": "Insert data",
"slug": "insert",
"product": "database",
- "type": "function",
- "libs": ["js", "js_v1", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "update",
"title": "Update data",
"slug": "update",
"product": "database",
- "type": "function",
- "libs": ["js", "js_v1", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "upsert",
"title": "Upsert data",
"slug": "upsert",
"product": "database",
- "type": "function",
- "libs": ["js", "js_v1", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "delete",
"title": "Delete data",
"slug": "delete",
"product": "database",
- "type": "function",
- "libs": ["js", "js_v1", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "rpc",
"title": "Call a Postgres function",
"slug": "rpc",
"product": "database",
- "type": "function",
- "libs": ["js", "js_v1", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "using-filters",
@@ -92,7 +82,7 @@
"slug": "using-filters",
"product": "database",
"type": "function",
- "libs": ["js", "dart", "dart_v0"],
+
"items": [
{
"id": "eq",
@@ -100,8 +90,7 @@
"slug": "eq",
"product": "database",
"parent": "filters",
- "type": "function",
- "libs": ["js", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "neq",
@@ -109,8 +98,7 @@
"slug": "neq",
"product": "database",
"parent": "filters",
- "type": "function",
- "libs": ["js", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "gt",
@@ -118,8 +106,7 @@
"slug": "gt",
"product": "database",
"parent": "filters",
- "type": "function",
- "libs": ["js", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "gte",
@@ -127,8 +114,7 @@
"slug": "gte",
"product": "database",
"parent": "filters",
- "type": "function",
- "libs": ["js", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "lt",
@@ -136,8 +122,7 @@
"slug": "lt",
"product": "database",
"parent": "filters",
- "type": "function",
- "libs": ["js", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "lte",
@@ -145,8 +130,7 @@
"slug": "lte",
"product": "database",
"parent": "filters",
- "type": "function",
- "libs": ["js", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "like",
@@ -154,8 +138,7 @@
"slug": "like",
"product": "database",
"parent": "filters",
- "type": "function",
- "libs": ["js", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "ilike",
@@ -163,8 +146,7 @@
"slug": "ilike",
"product": "database",
"parent": "filters",
- "type": "function",
- "libs": ["js", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "is",
@@ -172,8 +154,7 @@
"slug": "is",
"product": "database",
"parent": "filters",
- "type": "function",
- "libs": ["js", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "in",
@@ -181,8 +162,7 @@
"slug": "in",
"product": "database",
"parent": "filters",
- "type": "function",
- "libs": ["js", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "contains",
@@ -190,8 +170,7 @@
"slug": "contains",
"product": "database",
"parent": "filters",
- "type": "function",
- "libs": ["js", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "contained-by",
@@ -199,8 +178,7 @@
"slug": "containedby",
"product": "database",
"parent": "filters",
- "type": "function",
- "libs": ["js", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "range-gt",
@@ -208,8 +186,7 @@
"slug": "rangegt",
"product": "database",
"parent": "filters",
- "type": "function",
- "libs": ["js", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "range-gte",
@@ -217,8 +194,7 @@
"slug": "rangegte",
"product": "database",
"parent": "filters",
- "type": "function",
- "libs": ["js", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "range-lt",
@@ -226,8 +202,7 @@
"slug": "rangelt",
"product": "database",
"parent": "filters",
- "type": "function",
- "libs": ["js", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "range-lte",
@@ -235,8 +210,7 @@
"slug": "rangelte",
"product": "database",
"parent": "filters",
- "type": "function",
- "libs": ["js", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "range-adjacent",
@@ -244,8 +218,7 @@
"slug": "rangeadjacent",
"product": "database",
"parent": "filters",
- "type": "function",
- "libs": ["js", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "overlaps",
@@ -253,8 +226,7 @@
"slug": "overlaps",
"product": "database",
"parent": "filters",
- "type": "function",
- "libs": ["js", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "text-search",
@@ -262,8 +234,7 @@
"slug": "textsearch",
"product": "database",
"parent": "filters",
- "type": "function",
- "libs": ["js", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "match",
@@ -271,8 +242,7 @@
"slug": "match",
"product": "database",
"parent": "filters",
- "type": "function",
- "libs": ["js", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "not",
@@ -280,8 +250,7 @@
"slug": "not",
"product": "database",
"parent": "filters",
- "type": "function",
- "libs": ["js", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "or",
@@ -289,8 +258,7 @@
"slug": "or",
"product": "database",
"parent": "filters",
- "type": "function",
- "libs": ["js", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "filter",
@@ -298,8 +266,7 @@
"slug": "filter",
"product": "database",
"parent": "filters",
- "type": "function",
- "libs": ["js", "dart", "dart_v0"]
+ "type": "function"
}
]
},
@@ -311,7 +278,7 @@
"product": "database",
"parent": "modifiers",
"type": "function",
- "libs": ["js", "dart", "dart_v0"],
+
"items": [
{
"id": "db-modifiers-select",
@@ -319,8 +286,7 @@
"slug": "db-modifiers-select",
"product": "database",
"parent": "modifiers",
- "type": "function",
- "libs": ["js"]
+ "type": "function"
},
{
"id": "order",
@@ -328,8 +294,7 @@
"slug": "order",
"product": "database",
"parent": "modifiers",
- "type": "function",
- "libs": ["js", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "limit",
@@ -337,8 +302,7 @@
"slug": "limit",
"product": "database",
"parent": "modifiers",
- "type": "function",
- "libs": ["js", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "range",
@@ -346,8 +310,7 @@
"slug": "range",
"product": "database",
"parent": "modifiers",
- "type": "function",
- "libs": ["js", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "abort-signal",
@@ -355,8 +318,7 @@
"slug": "db-abortsignal",
"product": "database",
"parent": "modifiers",
- "type": "function",
- "libs": ["js"]
+ "type": "function"
},
{
"id": "single",
@@ -364,8 +326,7 @@
"slug": "single",
"product": "database",
"parent": "modifiers",
- "type": "function",
- "libs": ["js", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "maybe-single",
@@ -373,8 +334,7 @@
"slug": "maybesingle",
"product": "database",
"parent": "modifiers",
- "type": "function",
- "libs": ["js"]
+ "type": "function"
},
{
"id": "csv",
@@ -382,8 +342,7 @@
"slug": "db-csv",
"product": "database",
"parent": "modifiers",
- "type": "function",
- "libs": ["js"]
+ "type": "function"
}
]
}
@@ -391,13 +350,13 @@
},
{
"title": "Auth",
- "libs": ["js", "js_v1", "dart", "dart_v0"],
+
"items": [
{
"id": "auth-api",
"title": "Overview",
"slug": "auth-api",
- "libs": ["js"],
+
"type": "function"
},
{
@@ -405,230 +364,202 @@
"title": "Create a new user",
"slug": "auth-signup",
"product": "auth",
- "type": "function",
- "libs": ["js", "js_v1", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "sign-in",
"title": "Sign in a user",
"slug": "auth-signin",
"product": "auth",
- "type": "function",
- "libs": ["js_v1", "dart_v0"]
+ "type": "function"
},
{
"id": "sign-in-with-provider",
"title": "Sign in a user through OAuth",
"slug": "auth-signinwithprovider",
"product": "auth",
- "type": "function",
- "libs": ["dart_v0"]
+ "type": "function"
},
{
"id": "sign-in-with-password",
"title": "Sign in a user",
"slug": "auth-signinwithpassword",
"product": "auth",
- "type": "function",
- "libs": ["js"]
+ "type": "function"
},
{
"id": "sign-in-with-otp",
"title": "Sign in a user through OTP",
"slug": "auth-signinwithotp",
"product": "auth",
- "type": "function",
- "libs": ["js"]
+ "type": "function"
},
{
"id": "sign-in-with-oauth",
"title": "Sign in a user through OAuth",
"slug": "auth-signinwithoauth",
"product": "auth",
- "type": "function",
- "libs": ["js", "dart"]
+ "type": "function"
},
{
"id": "sign-out",
"title": "Sign out a user",
"slug": "auth-signout",
"product": "auth",
- "type": "function",
- "libs": ["js", "js_v1", "dart"]
+ "type": "function"
},
{
"id": "session",
"title": "Retrieve a session",
"slug": "auth-session",
"product": "auth",
- "type": "function",
- "libs": ["js_v1"]
+ "type": "function"
},
{
"id": "auth-update",
"title": "Update a user",
"slug": "auth-update",
"product": "auth",
- "type": "function",
- "libs": ["js_v1"]
+ "type": "function"
},
{
"id": "set-auth",
"title": "Update the access token",
"slug": "auth-setauth",
"product": "auth",
- "type": "function",
- "libs": ["js_v1"]
+ "type": "function"
},
{
"id": "user",
"title": "Retrieve a user",
"slug": "auth-user",
"product": "auth",
- "type": "function",
- "libs": ["js_v1"]
+ "type": "function"
},
{
"id": "session",
"title": "Retrieve a session",
"slug": "auth-session",
"product": "auth",
- "type": "function",
- "libs": ["js_v1"]
+ "type": "function"
},
{
"id": "verify-otp",
"title": "Verify and log in through OTP",
"slug": "auth-verifyotp",
"product": "auth",
- "type": "function",
- "libs": ["js", "dart"]
+ "type": "function"
},
{
"id": "current-session",
"title": "Retrieve a session",
"slug": "auth-currentsession",
"product": "auth",
- "type": "function",
- "libs": ["dart"]
+ "type": "function"
},
{
"id": "current-user",
"title": "Retrieve a user",
"slug": "auth-currentuser",
"product": "auth",
- "type": "function",
- "libs": ["dart"]
+ "type": "function"
},
{
"id": "get-session",
"title": "Retrieve a session",
"slug": "auth-getsession",
"product": "auth",
- "type": "function",
- "libs": ["js"]
+ "type": "function"
},
{
"id": "refresh-session",
"title": "Retrieve a new session",
"slug": "auth-refreshsession",
"product": "auth",
- "type": "function",
- "libs": ["js"]
+ "type": "function"
},
{
"id": "get-user",
"title": "Retrieve a user",
"slug": "auth-getuser",
"product": "auth",
- "type": "function",
- "libs": ["js", "js_v1"]
+ "type": "function"
},
{
"id": "update-user",
"title": "Update a user",
"slug": "auth-updateuser",
"product": "auth",
- "type": "function",
- "libs": ["js", "dart"]
+ "type": "function"
},
{
"id": "set-session",
"title": "Set the session data",
"slug": "auth-setsession",
"product": "auth",
- "type": "function",
- "libs": ["js"]
+ "type": "function"
},
{
"id": "on-auth-state-change",
"title": "Listen to auth events",
"slug": "auth-onauthstatechange",
"product": "auth",
- "type": "function",
- "libs": ["js", "js_v1", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "reset-password-for-email",
"title": "Send a password reset request",
"slug": "auth-resetpasswordforemail",
"product": "auth",
- "type": "function",
- "libs": ["js", "js_v1", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "mfa-enroll",
"title": "Enroll a factor",
"slug": "auth-mfa-enroll",
"product": "auth",
- "type": "function",
- "libs": ["js"]
+ "type": "function"
},
{
"id": "mfa-challenge",
"title": "Create a challenge",
"slug": "auth-mfa-challenge",
"product": "auth",
- "type": "function",
- "libs": ["js"]
+ "type": "function"
},
{
"id": "mfa-verify",
"title": "Verify a challenge",
"slug": "auth-mfa-verify",
"product": "auth",
- "type": "function",
- "libs": ["js"]
+ "type": "function"
},
{
"id": "mfa-challenge-and-verify",
"title": "Create and verify a challenge",
"slug": "auth-mfa-challengeandverify",
"product": "auth",
- "type": "function",
- "libs": ["js"]
+ "type": "function"
},
{
"id": "mfa-unenroll",
"title": "Unenroll a factor",
"slug": "auth-mfa-unenroll",
"product": "auth",
- "type": "function",
- "libs": ["js"]
+ "type": "function"
},
{
"id": "mfa-get-authenticator-assurance-level",
"title": "Get Authenticator Assurance Level",
"slug": "auth-mfa-getauthenticatorassurancelevel",
"product": "auth",
- "type": "function",
- "libs": ["js"]
+ "type": "function"
},
{
"id": "admin-api",
"title": "Auth Admin",
"slug": "admin-api",
- "libs": ["js", "js_v1"],
+
"type": "function",
"items": [
{
@@ -636,88 +567,77 @@
"title": "Retrieve a user",
"slug": "auth-admin-getuserbyid",
"product": "auth-admin",
- "type": "function",
- "libs": ["js"]
+ "type": "function"
},
{
"id": "list-users",
"title": "List all users",
"slug": "auth-admin-listusers",
"product": "auth-admin",
- "type": "function",
- "libs": ["js", "js_v1"]
+ "type": "function"
},
{
"id": "create-user",
"title": "Create a user",
"slug": "auth-admin-createuser",
"product": "auth-admin",
- "type": "function",
- "libs": ["js", "js_v1"]
+ "type": "function"
},
{
"id": "delete-user",
"title": "Delete a user",
"slug": "auth-admin-deleteuser",
"product": "auth-admin",
- "type": "function",
- "libs": ["js", "js_v1"]
+ "type": "function"
},
{
"id": "invite-user-by-email",
"title": "Send an email invite link",
"slug": "auth-admin-inviteuserbyemail",
"product": "auth-admin",
- "type": "function",
- "libs": ["js", "js_v1"]
+ "type": "function"
},
{
"id": "reset-password-for-email",
"title": "Send a password reset request",
"slug": "auth-admin-resetpasswordforemail",
"product": "auth-admin",
- "type": "function",
- "libs": ["js"]
+ "type": "function"
},
{
"id": "generate-link",
"title": "Generate an email link",
"slug": "auth-admin-generatelink",
"product": "auth-admin",
- "type": "function",
- "libs": ["js"]
+ "type": "function"
},
{
"id": "send-mobile-otp",
"title": "Send a one-time passcode",
"slug": "auth-api-sendmobileotp",
"product": "auth-server",
- "type": "function",
- "libs": ["js_v1"]
+ "type": "function"
},
{
"id": "update-user-by-id",
"title": "Update a user",
"slug": "auth-admin-updateuserbyid",
"product": "auth-admin",
- "type": "function",
- "libs": ["js", "js_v1"]
+ "type": "function"
},
{
"id": "mfa-list-factors",
"title": "List all factors for a user",
"slug": "auth-admin-mfa-listfactors",
"product": "auth-admin",
- "type": "function",
- "libs": ["js"]
+ "type": "function"
},
{
"id": "mfa-delete-factor",
"title": "Delete a factor for a user",
"slug": "auth-admin-mfa-deletefactor",
"product": "auth-admin",
- "type": "function",
- "libs": ["js"]
+ "type": "function"
}
]
}
@@ -725,61 +645,55 @@
},
{
"title": "Functions",
- "libs": ["js", "js_v1", "dart", "dart_v0"],
+
"items": [
{
"id": "invoke",
"title": "Invoke a function",
"slug": "auth-admin-invoke",
"product": "functions",
- "type": "function",
- "libs": ["js", "js_v1", "dart", "dart_v0"]
+ "type": "function"
}
]
},
{
"title": "Realtime",
- "libs": ["js", "js_v1", "dart", "dart_v0"],
+
"items": [
{
"id": "stream",
"title": "Listen to database changes",
"slug": "stream",
"product": "realtime",
- "type": "function",
- "libs": ["dart", "dart_v0"]
+ "type": "function"
},
{
"id": "subscribe",
"title": "Subscribe to database changes",
"slug": "subscribe",
"product": "realtime",
- "type": "function",
- "libs": ["js", "js_v1", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "remove-subscription",
"title": "Remove a subscription",
"slug": "removesubscription",
"product": "realtime",
- "type": "function",
- "libs": ["dart_v0", "js_v1"]
+ "type": "function"
},
{
"id": "remove-all-subscriptions",
"title": "Remove all subscriptions",
"slug": "removeallsubscriptions",
"product": "realtime",
- "type": "function",
- "libs": ["js_v1"]
+ "type": "function"
},
{
"id": "get-subscriptions",
"title": "Retrieve subscriptions",
"slug": "getsubscriptions",
"product": "realtime",
- "type": "function",
- "libs": ["js_v1"]
+ "type": "function"
},
{
@@ -787,172 +701,152 @@
"title": "Unsubscribe from a channel",
"slug": "removechannel",
"product": "realtime",
- "type": "function",
- "libs": ["js", "dart"]
+ "type": "function"
},
{
"id": "remove-all-channels",
"title": "Unsubscribe from all channels",
"slug": "removeallchannels",
"product": "realtime",
- "type": "function",
- "libs": ["js", "dart"]
+ "type": "function"
},
{
"id": "get-channels",
"title": "Retrieve all channels",
"slug": "getchannels",
"product": "realtime",
- "type": "function",
- "libs": ["js", "dart"]
+ "type": "function"
}
]
},
{
"title": "Storage",
- "libs": ["js", "js_v1", "dart", "dart_v0"],
+
"items": [
{
"id": "create-bucket",
"title": "Create a bucket",
"slug": "storage-createbucket",
"product": "storage",
- "type": "function",
- "libs": ["js", "js_v1", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "get-bucket",
"title": "Retrieve a bucket",
"slug": "storage-getbucket",
"product": "storage",
- "type": "function",
- "libs": ["js", "js_v1", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "list-buckets",
"title": "List all buckets",
"slug": "storage-listbuckets",
"product": "storage",
- "type": "function",
- "libs": ["js", "js_v1", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "update-bucket",
"title": "Update a bucket",
"slug": "storage-updatebucket",
"product": "storage",
- "type": "function",
- "libs": ["js", "js_v1", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "delete-bucket",
"title": "Delete a bucket",
"slug": "storage-deletebucket",
"product": "storage",
- "type": "function",
- "libs": ["js", "js_v1", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "empty-bucket",
"title": "Empty a bucket",
"slug": "storage-emptybucket",
"product": "storage",
- "type": "function",
- "libs": ["js", "js_v1", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "from-upload",
"title": "Upload a file",
"slug": "storage-from-upload",
"product": "storage",
- "type": "function",
- "libs": ["js", "js_v1", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "from-download",
"title": "Download a file",
"slug": "storage-from-download",
"product": "storage",
- "type": "function",
- "libs": ["js", "js_v1", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "from-list",
"title": "List all files in a bucket",
"slug": "storage-from-list",
"product": "storage",
- "type": "function",
- "libs": ["js", "js_v1", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "from-update",
"title": "Replace an existing file",
"slug": "storage-from-update",
"product": "storage",
- "type": "function",
- "libs": ["js", "js_v1", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "from-move",
"title": "Move an existing file",
"slug": "storage-from-move",
"product": "storage",
- "type": "function",
- "libs": ["js", "js_v1", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "from-copy",
"title": "Copy an existing file",
"slug": "storage-from-copy",
"product": "storage",
- "type": "function",
- "libs": ["js", "js_v1"]
+ "type": "function"
},
{
"id": "from-remove",
"title": "Delete files in a bucket",
"slug": "storage-from-remove",
"product": "storage",
- "type": "function",
- "libs": ["js", "js_v1", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "from-create-signed-url",
"title": "Create a signed URL",
"slug": "storage-from-createsignedurl",
"product": "storage",
- "type": "function",
- "libs": ["js", "js_v1", "dart", "dart_v0"]
+ "type": "function"
},
{
"id": "from-create-signed-urls",
"title": "Create signed URLs",
"slug": "storage-from-createsignedurls",
"product": "storage",
- "type": "function",
- "libs": ["js", "js_v1"]
+ "type": "function"
},
{
"id": "from-get-public-url",
"title": "Retrieve public URL",
"slug": "storage-from-getpublicurl",
"product": "storage",
- "type": "function",
- "libs": ["js", "js_v1", "dart", "dart_v0"]
+ "type": "function"
}
]
},
{
"title": "Misc",
- "libs": ["js", "js_v1"],
+
"items": [
{
"title": "Release Notes",
"id": "release-notes",
"slug": "release-notes",
"isFunc": false,
- "type": "markdown",
- "libs": ["js", "js_v1"]
+ "type": "markdown"
}
]
}
diff --git a/spec/common-client-libs.yml b/spec/common-client-libs.yml
deleted file mode 100644
index 1d2a2b713c6..00000000000
--- a/spec/common-client-libs.yml
+++ /dev/null
@@ -1,485 +0,0 @@
-openref: 0.1
-
-info:
- id: reference/common-library-file
- title: Supabase Client libs common
- description: |
-
- This file shares info common between the JS and Dart libraries.
-
-functions:
- - id: initializing
- title: initializing
- slug: initializing
-
- - id: select
- title: 'Fetching data'
- slug: select
- product: database
-
- - id: insert
- title: 'Insert data'
- slug: insert
- product: 'database'
-
- - id: update
- title: 'Update data'
- slug: update
- product: 'database'
-
- - id: upsert
- title: 'Upsert data'
- slug: upsert
- product: 'database'
-
- - id: delete
- title: 'Delete data'
- slug: delete
- product: 'database'
-
- - id: rpc
- title: 'Postgres functions'
- slug: rpc
- product: 'database'
-
- - id: using-filters
- title: 'Using filters'
- slug: using-filters
- product: 'database'
-
- - id: eq
- title: eq()
- slug: eq
- product: 'database'
- parent: 'Filters'
-
- - id: neq
- title: neq()
- slug: neq
- product: 'database'
- parent: 'Filters'
-
- - id: gt
- title: gt()
- slug: gt
- product: 'database'
- parent: 'Filters'
-
- - id: gte
- title: gte()
- slug: gte
- product: 'database'
- parent: 'Filters'
-
- - id: lt
- title: lt()
- slug: lt
- product: 'database'
- parent: 'Filters'
-
- - id: lte
- title: lte()
- slug: lte
- product: 'database'
- parent: 'Filters'
-
- - id: like
- title: like()
- slug: like
- product: 'database'
- parent: 'Filters'
-
- - id: ilike
- title: ilike()
- slug: ilike
- product: 'database'
- parent: 'Filters'
-
- - id: is
- title: is()
- slug: is
- product: 'database'
- parent: 'Filters'
-
- - id: in
- title: in()
- slug: in
- product: 'database'
- parent: 'Filters'
-
- - id: contains
- title: contains()
- slug: contains
- product: 'database'
- parent: 'Filters'
-
- - id: contained-by
- title: containedBy()
- slug: containedby
- product: 'database'
- parent: 'Filters'
-
- - id: range-gt
- title: rangeGt()
- slug: rangegt
- product: 'database'
- parent: 'Filters'
-
- - id: range-gte
- title: rangeGte()
- slug: rangegte
- product: 'database'
- parent: 'Filters'
-
- - id: range-lt
- title: rangeLt()
- slug: rangelt
- product: 'database'
- parent: 'Filters'
-
- - id: range-lte
- title: rangeLte()
- slug: rangelte
- product: 'database'
- parent: 'Filters'
-
- - id: range-adjacent
- title: rangeAdjacent()
- slug: rangeadjacent
- product: 'database'
- parent: 'Filters'
-
- - id: overlaps
- title: overlaps()
- slug: overlaps
- product: 'database'
- parent: 'Filters'
-
- - id: text-search
- title: textSearch()
- slug: textsearch
- product: 'database'
- parent: 'Filters'
-
- - id: match
- title: match()
- slug: match
- product: 'database'
- parent: 'Filters'
-
- - id: not
- title: not()
- slug: not
- product: 'database'
- parent: 'Filters'
-
- - id: or
- title: or()
- slug: or
- product: 'database'
- parent: 'Filters'
-
- - id: filter
- title: filter()
- slug: filter
- product: 'database'
- parent: 'Filters'
-
- - id: using-modifiers
- title: Using Modifiers
- slug: using-modifiers
- product: 'database'
- parent: 'Modifiers'
-
- - id: db-modifiers-select
- title: select()
- slug: db-modifiers-select
- product: 'database'
- parent: 'Modifiers'
-
- - id: order
- title: order()
- slug: order
- product: 'database'
- parent: 'Modifiers'
-
- - id: limit
- title: limit()
- slug: limit
- product: 'database'
- parent: 'Modifiers'
-
- - id: range
- title: range()
- slug: range
- product: 'database'
- parent: 'Modifiers'
-
- - id: abort-signal
- title: abortSignal()
- slug: db-abortsignal
- product: 'database'
- parent: 'Modifiers'
-
- - id: single
- title: single()
- slug: single
- product: 'database'
- parent: 'Modifiers'
-
- - id: maybe-single
- title: maybeSingle()
- slug: maybesingle
- product: 'database'
- parent: 'Modifiers'
-
- - id: csv
- title: csv()
- slug: db-csv
- product: 'database'
- parent: 'Modifiers'
-
- - id: sign-up
- title: Sign up
- slug: auth-signup
- product: 'auth'
-
- - id: sign-in
- title: Sign in
- slug: auth-signin
- product: 'auth'
-
- - id: set-auth
- title: setAuth()
- slug: auth-setauth
- product: 'auth'
-
- - id: send-mobile-otp
- title: sendMobileOTP()
- slug: auth-api-sendmobileotp
- product: 'auth'
-
- - id: sign-in-with-password
- title: Sign in with password
- slug: auth-signinwithpassword
- product: 'auth'
-
- - id: sign-in-with-otp
- title: Sign in with OTP
- slug: auth-signinwithotp
- product: 'auth'
-
- - id: sign-in-with-oauth
- title: Sign in with 0auth
- slug: auth-signinwithoauth
- product: 'auth'
-
- - id: sign-out
- title: signOut()
- slug: auth-signout
- product: 'auth'
-
- - id: verify-otp
- title: verifyOtp()
- slug: auth-verifyotp
- product: 'auth'
-
- - id: get-session
- title: getSession()
- slug: auth-getsession
- product: 'auth'
-
- - id: get-user
- title: getUser()
- slug: auth-getuser
- product: 'auth'
-
- - id: update-user
- title: updateUser()
- slug: auth-updateuser
- product: 'auth'
-
- - id: set-session
- title: setSession()
- slug: auth-setsession
- product: 'auth'
-
- - id: refresh-session
- title: refreshSession()
- slug: auth-refreshsession
- product: 'auth'
-
- - id: on-auth-state-change
- title: onAuthStateChange()
- slug: auth-onauthstatechange
- product: 'auth'
-
- - id: admin-api
- title: Overview
- slug: supabase-auth-admin-api
- product: 'auth-admin'
-
- - id: get-user-by-id
- title: getUserById()
- slug: auth-admin-getuserbyid
- product: 'auth-admin'
-
- - id: list-users
- title: listUsers()
- slug: auth-admin-listusers
- product: 'auth-admin'
-
- - id: create-user
- title: createUser()
- slug: auth-admin-createuser
- product: 'auth-admin'
-
- - id: delete-user
- title: deleteUser()
- slug: auth-admin-deleteuser
- product: 'auth-admin'
-
- - id: invite-user-by-email
- title: inviteUserByEmail()
- slug: auth-admin-inviteuserbyemail
- product: 'auth-admin'
-
- - id: reset-password-for-email
- title: resetPasswordForEmail()
- slug: auth-admin-resetpasswordforemail
- product: 'auth-admin'
-
- - id: generate-link
- title: generateLink()
- slug: auth-admin-generatelink
- product: 'auth-admin'
-
- - id: update-user-by-id
- title: updateUserById()
- slug: auth-admin-updateuserbyid
- product: 'auth-admin'
-
- - id: invoke
- title: invoke()
- slug: auth-admin-invoke
- product: 'functions'
-
- - id: stream
- title: stream()
- slug: stream
- product: 'realtime'
-
- - id: subscribe
- title: on().subscribe()
- slug: subscribe
- product: 'realtime'
-
- - id: remove-subscription
- title: removeSubscription()
- slug: removesubscription
- product: 'realtime'
-
- - id: remove-all-subscriptions
- title: removeallsubscriptions()
- slug: removeallsubscriptions
- product: 'realtime'
-
- - id: get-subscriptions
- title: getSubscriptions()
- slug: getsubscriptions
- product: 'realtime'
-
- - id: get-channels
- title: getChannels()
- slug: getchannels
- product: 'realtime'
-
- - id: remove-channel
- title: removeChannel()
- slug: removechannel
- product: 'realtime'
-
- - id: remove-all-channels
- title: removeAllChannels()
- slug: removeallchannels
- product: 'realtime'
-
- - id: list-buckets
- title: listBuckets()
- slug: storage-listbuckets
- product: 'storage'
-
- - id: get-bucket
- title: getBucket()
- slug: storage-getbucket
- product: 'storage'
-
- - id: create-bucket
- title: createBucket()
- slug: storage-createbucket
- product: 'storage'
-
- - id: empty-bucket
- title: emptyBucket()
- slug: storage-emptybucket
- product: 'storage'
-
- - id: update-bucket
- title: updateBucket()
- slug: storage-updatebucket
- product: 'storage'
-
- - id: delete-bucket
- title: deleteBucket()
- slug: storage-deletebucket
- product: 'storage'
-
- - id: from-upload
- title: from.upload()
- slug: storage-from-upload
- product: 'storage'
-
- - id: from-update
- title: from.update()
- slug: storage-from-update
- product: 'storage'
-
- - id: from-move
- title: from.move()
- slug: storage-from-move
- product: 'storage'
-
- - id: from-copy
- title: from.copy()
- slug: storage-from-copy
- product: 'storage'
-
- - id: from-create-signed-url
- title: from.createSignedUrl()
- slug: storage-from-createsignedurl
- product: 'storage'
-
- - id: from-create-signed-urls
- title: from.createSignedUrls()
- slug: storage-from-createsignedurls
- product: 'storage'
-
- - id: from-get-public-url
- title: from.getPublicUrl()
- slug: storage-from-getpublicurl
- product: 'storage'
-
- - id: from-download
- title: from.download()
- slug: storage-from-download
- product: 'storage'
-
- - id: from-remove
- title: from.remove()
- slug: storage-from-remove
- product: 'storage'
-
- - id: from-list
- title: from.list()
- slug: storage-from-list
- product: 'storage'