Skip to content

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

Move common lib spec to json

Terry Sutton6d39c1ad945f
diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenuRefList.tsx b/apps/docs/components/Navigation/NavigationMenu/NavigationMenuRefList.tsx
index 20d54b9a05a..552f5294c80 100644
--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenuRefList.tsx
+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenuRefList.tsx
@@ -6,7 +6,13 @@ import * as NavItems from './NavigationMenu.constants'
import jsSpec from '~/../../spec/supabase_js_v2_temp_new_shape.yml' assert { type: 'yml' }
// @ts-expect-error
import clientLibsCommon from '~/../../spec/common-client-libs.yml' assert { type: 'yml' }
+import clientLibsCommonSections from '~/../../spec/common-client-libs-sections.json'
import { SearchButton } from '~/components/DocSearch'
+import Image from 'next/image'
+
+const allFunctions = Object.values(clientLibsCommonSections.sections.functions)
+
+const introItems = Object.values(clientLibsCommonSections.sections.intro.js.items)
const NavigationMenuRefList = ({ currentLevel, setLevel, id }) => {
const router = useRouter()
@@ -36,7 +42,7 @@ const NavigationMenuRefList = ({ currentLevel, setLevel, id }) => {
slug,
}: {
title: string
- name: string
+ name?: string
id: string
icon?: string
product?: string
@@ -98,13 +104,15 @@ const NavigationMenuRefList = ({ currentLevel, setLevel, id }) => {
<span>Back to Main Menu</span>
</a>
</Link>
- {/* {console.log(menu)} */}
{/* )} */}
{/* {process.env.NEXT_PUBLIC_EXPERIMENTAL_REF !== 'true' && ( */}
<div className="flex items-center gap-3 my-3">
- <img
+ <Image
+ alt={id}
+ width={24}
+ height={24}
src={`${router.basePath}` + menu.icon ?? `/img/icons/menu/${id}.svg`}
- className="w-5 rounded"
+ className="rounded"
/>
<h2
className={['font-mono text-sm text-brand-1200 ', !menu.title && 'capitalize'].join(
@@ -115,70 +123,62 @@ const NavigationMenuRefList = ({ currentLevel, setLevel, id }) => {
</h2>
</div>
{/* )} */}
+
<ul className="function-link-list">
- toppy
- <SideMenuTitle title="Get Started" />
- <Divider />
- <SideMenuTitle title="Database" />
- {/* {console.log({ clientLibsCommon })} */}
- {clientLibsCommon.functions
- .filter((x) => x.product === 'database')
- .map((x, index) => {
- // console.log(functions)
- return (
- <>
- <FunctionLink {...x} library={menu.title} />
- </>
- )
- })}
- <Divider />
- <SideMenuTitle title="Auth" />
- {clientLibsCommon.functions
- .filter((x) => x.product === 'auth')
- .map((x, index) => {
- // console.log(functions)
- return (
- <>
- <FunctionLink {...x} />
- </>
- )
- })}
- <Divider />
- <SideMenuTitle title="Storage" />
- {clientLibsCommon.functions
- .filter((x) => x.product === 'storage')
- .map((x, index) => {
- // console.log(functions)
- return (
- <>
- <FunctionLink {...x} />
- </>
- )
- })}
+ {introItems.map((item) => (
+ <FunctionLink {...item} library={menu.title} />
+ ))}
+
<Divider />
- <SideMenuTitle title="Realtime" />
- {clientLibsCommon.functions
- .filter((x) => x.product === 'realtime')
- .map((x, index) => {
- // console.log(functions)
+
+ {allFunctions.map((fn: any) => {
+ const toplevelItems = fn.items.filter((item) => !item.parent)
+ toplevelItems.map((item) => <li>{item.title}</li>)
+
+ // Database has Filters and Modifiers sub-items
+ if (fn.title === 'Database') {
+ const filters = fn.items.filter((item) => item.parent === 'filters')
+ const modifiers = fn.items.filter((item) => item.parent === 'modifiers')
+
return (
<>
- <FunctionLink {...x} />
+ <SideMenuTitle title="Database" />
+
+ {toplevelItems.map((item) => (
+ <li>
+ <FunctionLink {...item} library={menu.title} />
+ </li>
+ ))}
+
+ <div className="ml-2 mt-4">
+ <SideMenuTitle title="Filters" />
+ {filters.map((item) => (
+ <FunctionLink {...item} library={menu.title} />
+ ))}
+ </div>
+
+ <div className="ml-2 mt-4">
+ <SideMenuTitle title="Modifiers" />
+ {modifiers.map((item) => (
+ <FunctionLink {...item} library={menu.title} />
+ ))}
+ </div>
</>
)
- })}
- <Divider />
- <SideMenuTitle title="Functions" />
- {clientLibsCommon.functions
- .filter((x) => x.product === 'functions')
- .map((x, index) => {
- // console.log(functions)
+ } else {
+ // Only database has subitems (Filters & Modifiers)
+ // so output the rest directly
return (
<>
- <FunctionLink {...x} />
+ <Divider />
+ <SideMenuTitle title={fn.title} />
+ {fn.items.map((item) => (
+ <FunctionLink {...item} library={menu.title} />
+ ))}
</>
)
- })}
+ }
+ })}
</ul>
{menu.extras && (
<>
@@ -194,7 +194,14 @@ const NavigationMenuRefList = ({ currentLevel, setLevel, id }) => {
<li>
<Link href={`/${x.href}`} passHref>
<a className="cursor-pointer transition text-scale-1100 text-sm hover:text-brand-900 flex gap-3 my-1">
- {x.icon && <img className="w-4" src={`${router.basePath}${x.icon}`} />}
+ {x.icon && (
+ <Image
+ alt={x.icon}
+ width={20}
+ height={20}
+ src={`${router.basePath}${x.icon}`}
+ />
+ )}
{x.name}
</a>
</Link>
diff --git a/apps/docs/components/index.tsx b/apps/docs/components/index.tsx
index d49eaf10828..c227b7acff4 100644
--- a/apps/docs/components/index.tsx
+++ b/apps/docs/components/index.tsx
@@ -55,6 +55,7 @@ const components = {
const linesToHighlight = parseNumericRange(props.lines ?? '')
return <CodeBlock {...props} linesToHighlight={linesToHighlight} />
},
+ code: (props: any) => <CodeBlock {...props} />,
mono: (props: any) => <code className="text-sm">{props.children}</code>,
inlineCode: (props: any) => <InlineCodeTag>{props.children}</InlineCodeTag>,
}
diff --git a/apps/docs/pages/reference/javascript/[...slug].tsx b/apps/docs/pages/reference/javascript/[...slug].tsx
index 5f56b851511..640932fb56c 100644
--- a/apps/docs/pages/reference/javascript/[...slug].tsx
+++ b/apps/docs/pages/reference/javascript/[...slug].tsx
@@ -19,6 +19,7 @@ import examples from '~/../../spec/examples/examples.yml' assert { type: 'yml' }
import jsSpec from '~/../../spec/supabase_js_v2_temp_new_shape.yml' assert { type: 'yml' }
// @ts-expect-error
import commonLibSpec from '~/../../spec/common-client-libs.yml' assert { type: 'yml' }
+import commonLibJson from '~/../../spec/common-client-libs-sections.json'
import { Button, IconChevronRight, IconDatabase, Tabs } from 'ui'
import CodeBlock from '~/components/CodeBlock/CodeBlock'
@@ -66,20 +67,22 @@ export default function JSReference(props) {
<RefSubLayout>
<div>~~~Preamble pages~~~</div>
{props.docs
- .filter((doc) => doc.preamblePage)
+ .filter((doc) => doc.introPage)
.map((item) => (
<RefSubLayout.Section
key={item.id}
- title={item.title}
+ title={item.meta.title}
id={item.id}
slug={item.id}
scrollSpyHeader={true}
>
- <RefSubLayout.Details></RefSubLayout.Details>
- <MDXRemote {...item.content} components={components} />
+ <RefSubLayout.Details>
+ <MDXRemote {...item.content} components={components} />
+ </RefSubLayout.Details>
</RefSubLayout.Section>
))}
</RefSubLayout>
+
<RefSubLayout>
{jsSpec.functions.map((item, itemIndex) => {
const hasTsRef = item['$ref'] || null
@@ -90,7 +93,7 @@ export default function JSReference(props) {
const shortText = hasTsRef ? tsDefinition.signatures[0].comment.shortText : ''
// const introFileMarkdownContent =
- console.log('props.docs', props.docs)
+ //console.log('props.docs', props.docs)
// if (item.id !== 'db-modifiers-select') return <></>
return (
@@ -281,11 +284,11 @@ const supabase = createClient('https://xyzcompany.supabase.co', 'public-anon-key
}
export async function getStaticProps({ params }: { params: { slug: string[] } }) {
- const preamblePages = ['typescript-support', 'release-notes']
-
+ // an array of ids of the intro sections for this library
+ const introPages = commonLibJson.sections.intro.js.items.map((item) => item.id)
const specPpages = jsSpec.functions.map((x) => x.id)
- const pages = [...preamblePages, ...specPpages]
+ const pages = [...introPages, ...specPpages]
/**
* Read all the markdown files that might have
@@ -316,7 +319,7 @@ export async function getStaticProps({ params }: { params: { slug: string[] } })
title: x,
// ...content,
meta: data,
- preamblePage: preamblePages.includes(x),
+ introPage: introPages.includes(x),
content: content ? await serialize(content || '') : null,
}
})
diff --git a/spec/common-client-libs-sections.json b/spec/common-client-libs-sections.json
new file mode 100644
index 00000000000..7951f64bc0e
--- /dev/null
+++ b/spec/common-client-libs-sections.json
@@ -0,0 +1,707 @@
+{
+ "sections": {
+ "intro": {
+ "js": {
+ "title": "Getting Started",
+ "items": [
+ {
+ "id": "typescript-support",
+ "title": "Typescript Support",
+ "slug": "typescript-support"
+ },
+ {
+ "id": "release-notes",
+ "title": "Release Notes",
+ "slug": "release-notes"
+ }
+ ]
+ },
+ "js_v1": {
+ "title": "Getting Started",
+ "items": []
+ },
+ "dart": {
+ "title": "Getting Started",
+ "items": []
+ },
+ "dart_v0": {
+ "title": "Getting Started",
+ "items": []
+ }
+ },
+ "functions": [
+ {
+ "title": "Database",
+ "items": [
+ {
+ "id": "select",
+ "title": "Fetching data",
+ "slug": "select",
+ "product": "database",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "insert",
+ "title": "Insert data",
+ "slug": "insert",
+ "product": "database",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "update",
+ "title": "Update data",
+ "slug": "update",
+ "product": "database",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "upsert",
+ "title": "Upsert data",
+ "slug": "upsert",
+ "product": "database",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "delete",
+ "title": "Delete data",
+ "slug": "delete",
+ "product": "database",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "using-filters",
+ "title": "Using filters",
+ "slug": "using-filters",
+ "product": "database",
+ "parent": "filters",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "eq",
+ "title": "eq()",
+ "slug": "eq",
+ "product": "database",
+ "parent": "filters",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "neq",
+ "title": "neq()",
+ "slug": "neq",
+ "product": "database",
+ "parent": "filters",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "gt",
+ "title": "gt()",
+ "slug": "gt",
+ "product": "database",
+ "parent": "filters",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "gte",
+ "title": "gte()",
+ "slug": "gte",
+ "product": "database",
+ "parent": "filters",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "lt",
+ "title": "lt()",
+ "slug": "lt",
+ "product": "database",
+ "parent": "filters",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "lte",
+ "title": "lte()",
+ "slug": "lte",
+ "product": "database",
+ "parent": "filters",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "like",
+ "title": "like()",
+ "slug": "like",
+ "product": "database",
+ "parent": "filters",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "ilike",
+ "title": "ilike()",
+ "slug": "ilike",
+ "product": "database",
+ "parent": "filters",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "is",
+ "title": "is()",
+ "slug": "is",
+ "product": "database",
+ "parent": "filters",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "in",
+ "title": "in()",
+ "slug": "in",
+ "product": "database",
+ "parent": "filters",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "contains",
+ "title": "contains()",
+ "slug": "contains",
+ "product": "database",
+ "parent": "filters",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "contained-by",
+ "title": "containedBy()",
+ "slug": "containedby",
+ "product": "database",
+ "parent": "filters",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "range-gt",
+ "title": "rangeGt()",
+ "slug": "rangegt",
+ "product": "database",
+ "parent": "filters",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "range-gte",
+ "title": "rangeGte()",
+ "slug": "rangegte",
+ "product": "database",
+ "parent": "filters",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "range-lt",
+ "title": "rangeLt()",
+ "slug": "rangelt",
+ "product": "database",
+ "parent": "filters",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "range-lte",
+ "title": "rangeLte()",
+ "slug": "rangelte",
+ "product": "database",
+ "parent": "filters",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "range-adjacent",
+ "title": "rangeAdjacent()",
+ "slug": "rangeadjacent",
+ "product": "database",
+ "parent": "filters",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "overlaps",
+ "title": "overlaps()",
+ "slug": "overlaps",
+ "product": "database",
+ "parent": "filters",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "text-search",
+ "title": "textSearch()",
+ "slug": "textsearch",
+ "product": "database",
+ "parent": "filters",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "match",
+ "title": "match()",
+ "slug": "match",
+ "product": "database",
+ "parent": "filters",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "not",
+ "title": "not()",
+ "slug": "not",
+ "product": "database",
+ "parent": "filters",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "or",
+ "title": "or()",
+ "slug": "or",
+ "product": "database",
+ "parent": "filters",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "filter",
+ "title": "filter()",
+ "slug": "filter",
+ "product": "database",
+ "parent": "filters",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "using-modifiers",
+ "title": "Using Modifiers",
+ "slug": "using-modifiers",
+ "product": "database",
+ "parent": "modifiers",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "db-modifiers-select",
+ "title": "select()",
+ "slug": "db-modifiers-select",
+ "product": "database",
+ "parent": "modifiers",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "order",
+ "title": "order()",
+ "slug": "order",
+ "product": "database",
+ "parent": "modifiers",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "limit",
+ "title": "limit()",
+ "slug": "limit",
+ "product": "database",
+ "parent": "modifiers",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "range",
+ "title": "range()",
+ "slug": "range",
+ "product": "database",
+ "parent": "modifiers",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "abort-signal",
+ "title": "abortSignal()",
+ "slug": "db-abortsignal",
+ "product": "database",
+ "parent": "modifiers",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "single",
+ "title": "single()",
+ "slug": "single",
+ "product": "database",
+ "parent": "modifiers",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "maybe-single",
+ "title": "maybeSingle()",
+ "slug": "maybesingle",
+ "product": "database",
+ "parent": "modifiers",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "csv",
+ "title": "csv()",
+ "slug": "db-csv",
+ "product": "database",
+ "parent": "modifiers",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ }
+ ]
+ },
+ {
+ "title": "Auth",
+ "items": [
+ {
+ "id": "sign-up",
+ "title": "Sign up",
+ "slug": "auth-signup",
+ "product": "auth",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "sign-in",
+ "title": "Sign in",
+ "slug": "auth-signin",
+ "product": "auth",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "set-auth",
+ "title": "setAuth()",
+ "slug": "auth-setauth",
+ "product": "auth",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "send-mobile-otp",
+ "title": "sendMobileOTP()",
+ "slug": "auth-api-sendmobileotp",
+ "product": "auth",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "sign-in-with-password",
+ "title": "Sign in with password",
+ "slug": "auth-signinwithpassword",
+ "product": "auth",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "sign-in-with-otp",
+ "title": "Sign in with OTP",
+ "slug": "auth-signinwithotp",
+ "product": "auth",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "sign-in-with-oauth",
+ "title": "Sign in with 0auth",
+ "slug": "auth-signinwithoauth",
+ "product": "auth",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "sign-out",
+ "title": "signOut()",
+ "slug": "auth-signout",
+ "product": "auth",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "verify-otp",
+ "title": "verifyOtp()",
+ "slug": "auth-verifyotp",
+ "product": "auth",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "get-session",
+ "title": "getSession()",
+ "slug": "auth-getsession",
+ "product": "auth",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "get-user",
+ "title": "getUser()",
+ "slug": "auth-getuser",
+ "product": "auth",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "update-user",
+ "title": "updateUser()",
+ "slug": "auth-updateuser",
+ "product": "auth",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "set-session",
+ "title": "setSession()",
+ "slug": "auth-setsession",
+ "product": "auth",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "refresh-session",
+ "title": "refreshSession()",
+ "slug": "auth-refreshsession",
+ "product": "auth",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "on-auth-state-change",
+ "title": "onAuthStateChange()",
+ "slug": "auth-onauthstatechange",
+ "product": "auth",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ }
+ ]
+ },
+ {
+ "title": "Auth (server-only)",
+ "items": [
+ {
+ "id": "admin-api",
+ "title": "Overview",
+ "slug": "supabase-auth-admin-api",
+ "product": "auth-admin",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "get-user-by-id",
+ "title": "getUserById()",
+ "slug": "auth-admin-getuserbyid",
+ "product": "auth-admin",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "list-users",
+ "title": "listUsers()",
+ "slug": "auth-admin-listusers",
+ "product": "auth-admin",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "create-user",
+ "title": "createUser()",
+ "slug": "auth-admin-createuser",
+ "product": "auth-admin",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "delete-user",
+ "title": "deleteUser()",
+ "slug": "auth-admin-deleteuser",
+ "product": "auth-admin",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "invite-user-by-email",
+ "title": "inviteUserByEmail()",
+ "slug": "auth-admin-inviteuserbyemail",
+ "product": "auth-admin",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "auth-reset-password-for-email",
+ "title": "resetPasswordForEmail()",
+ "slug": "auth-admin-resetpasswordforemail",
+ "product": "auth-admin",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "generate-link",
+ "title": "generateLink()",
+ "slug": "auth-admin-generatelink",
+ "product": "auth-admin",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "update-user-by-id",
+ "title": "updateUserById()",
+ "slug": "auth-admin-updateuserbyid",
+ "product": "auth-admin",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ }
+ ]
+ },
+ {
+ "title": "Functions",
+ "items": [
+ {
+ "id": "invoke",
+ "title": "invoke()",
+ "slug": "auth-admin-invoke",
+ "product": "functions",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ }
+ ]
+ },
+ {
+ "title": "Realtime",
+ "items": [
+ {
+ "id": "stream",
+ "title": "stream()",
+ "slug": "stream",
+ "product": "realtime",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "subscribe",
+ "title": "on().subscribe()",
+ "slug": "subscribe",
+ "product": "realtime",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "remove-subscription",
+ "title": "removeSubscription()",
+ "slug": "removesubscription",
+ "product": "realtime",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "remove-all-subscriptions",
+ "title": "removeallsubscriptions()",
+ "slug": "removeallsubscriptions",
+ "product": "realtime",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "get-subscriptions",
+ "title": "getSubscriptions()",
+ "slug": "getsubscriptions",
+ "product": "realtime",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "get-channels",
+ "title": "getChannels()",
+ "slug": "getchannels",
+ "product": "realtime",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "remove-channel",
+ "title": "removeChannel()",
+ "slug": "removechannel",
+ "product": "realtime",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "remove-all-channels",
+ "title": "removeAllChannels()",
+ "slug": "removeallchannels",
+ "product": "realtime",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ }
+ ]
+ },
+ {
+ "title": "Storage",
+ "items": [
+ {
+ "id": "list-buckets",
+ "title": "listBuckets()",
+ "slug": "storage-listbuckets",
+ "product": "storage",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "get-bucket",
+ "title": "getBucket()",
+ "slug": "storage-getbucket",
+ "product": "storage",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "create-bucket",
+ "title": "createBucket()",
+ "slug": "storage-createbucket",
+ "product": "storage",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "empty-bucket",
+ "title": "emptyBucket()",
+ "slug": "storage-emptybucket",
+ "product": "storage",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "update-bucket",
+ "title": "updateBucket()",
+ "slug": "storage-updatebucket",
+ "product": "storage",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "delete-bucket",
+ "title": "deleteBucket()",
+ "slug": "storage-deletebucket",
+ "product": "storage",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "from-upload",
+ "title": "from.upload()",
+ "slug": "storage-from-upload",
+ "product": "storage",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "from-update",
+ "title": "from.update()",
+ "slug": "storage-from-update",
+ "product": "storage",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "from-move",
+ "title": "from.move()",
+ "slug": "storage-from-move",
+ "product": "storage",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "from-copy",
+ "title": "from.copy()",
+ "slug": "storage-from-copy",
+ "product": "storage",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "from-create-signed-url",
+ "title": "from.createSignedUrl()",
+ "slug": "storage-from-createsignedurl",
+ "product": "storage",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "from-create-signed-urls",
+ "title": "from.createSignedUrls()",
+ "slug": "storage-from-createsignedurls",
+ "product": "storage",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "from-get-public-url",
+ "title": "from.getPublicUrl()",
+ "slug": "storage-from-getpublicurl",
+ "product": "storage",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "from-download",
+ "title": "from.download()",
+ "slug": "storage-from-download",
+ "product": "storage",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "from-remove",
+ "title": "from.remove()",
+ "slug": "storage-from-remove",
+ "product": "storage",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ },
+ {
+ "id": "from-list",
+ "title": "from.list()",
+ "slug": "storage-from-list",
+ "product": "storage",
+ "libs": ["js", "js_v1", "dart", "dart_v0"]
+ }
+ ]
+ }
+ ]
+ }
+}