diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 00000000000..c0d20008ea8 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,19 @@ +## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. + +YES/NO + +## What kind of change does this PR introduce? + +Bug fix, feature, docs update, ... + +## What is the current behavior? + +Please link any relevant issues here. + +## What is the new behavior? + +Feel free to include screenshots if it includes visual changes. + +## Additional context + +Add any other context or screenshots. diff --git a/.github/workflows/ai-tests.yml b/.github/workflows/ai-tests.yml index 96bc283c6d5..9a960557928 100644 --- a/.github/workflows/ai-tests.yml +++ b/.github/workflows/ai-tests.yml @@ -24,10 +24,6 @@ jobs: env: OPENAI_KEY: ${{ secrets.OPENAI_KEY }} - strategy: - matrix: - node-version: [18.x] - defaults: run: working-directory: ./packages/ai-commands @@ -37,10 +33,10 @@ jobs: with: sparse-checkout: | packages - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + - name: Use Node.js + uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} + node-version-file: '.nvmrc' cache: 'npm' - name: Install deps run: npm ci diff --git a/.github/workflows/docs-tests.yml b/.github/workflows/docs-tests.yml index d1b6ab48b00..7d402e444b4 100644 --- a/.github/workflows/docs-tests.yml +++ b/.github/workflows/docs-tests.yml @@ -15,10 +15,6 @@ jobs: build: runs-on: ubuntu-latest - strategy: - matrix: - node-version: [18.x] - steps: - uses: actions/checkout@v4 with: @@ -26,10 +22,10 @@ jobs: apps/docs packages - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + - name: Use Node.js + uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} + node-version-file: '.nvmrc' cache: 'npm' - name: Install deps diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index fde83f5826d..2ab350c96ee 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -21,16 +21,12 @@ jobs: timeout-minutes: 60 runs-on: ubuntu-latest - strategy: - matrix: - node-version: [18.x] - steps: - uses: actions/checkout@v4 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + - name: Use Node.js + uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} + node-version-file: '.nvmrc' cache: 'npm' - uses: supabase/setup-cli@v1 - name: Install dependencies diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index 886a2d41b40..c589ba58afa 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -19,9 +19,9 @@ jobs: with: sparse-checkout: apps - name: Setup node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 18 + node-version-file: '.nvmrc' # Installing all dependencies takes up to three minutes, hacking around to only installing prettier+deps - name: Download dependencies run: | @@ -42,9 +42,9 @@ jobs: sparse-checkout: | i18n - name: Setup node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 18 + node-version-file: '.nvmrc' # Installing all dependencies takes up to three minutes, hacking around to only installing prettier+deps - name: Download dependencies run: | diff --git a/.github/workflows/search.yml b/.github/workflows/search.yml index b1dd9b1d57a..8f60b73aa91 100644 --- a/.github/workflows/search.yml +++ b/.github/workflows/search.yml @@ -42,9 +42,9 @@ jobs: supabase - name: Setup node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 18 + node-version-file: '.nvmrc' - name: Download dependencies run: npm ci diff --git a/.github/workflows/studio-tests.yml b/.github/workflows/studio-tests.yml index edb17574b6b..1dbc0bd8dd6 100644 --- a/.github/workflows/studio-tests.yml +++ b/.github/workflows/studio-tests.yml @@ -25,29 +25,23 @@ jobs: # Uses larger hosted runner as it significantly decreases build times runs-on: [larger-runner-4cpu] - strategy: - matrix: - node-version: [18.x] - cmd: - - npm run test:studio - steps: - uses: actions/checkout@v4 with: sparse-checkout: | apps/studio packages - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + - name: Use Node.js + uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} + node-version-file: '.nvmrc' cache: 'npm' - name: Install deps run: npm ci working-directory: ./ - - name: Run ${{ matrix.cmd }} + - name: Run Tests env: # Default is 2 GB, increase to have less frequent OOM errors NODE_OPTIONS: '--max_old_space_size=3072' - run: ${{ matrix.cmd }} + run: npm run test:studio working-directory: ./ diff --git a/.github/workflows/typecheck.yml b/.github/workflows/typecheck.yml index fd3feee51ed..eb4e5885a55 100644 --- a/.github/workflows/typecheck.yml +++ b/.github/workflows/typecheck.yml @@ -15,18 +15,14 @@ jobs: # Uses larger hosted runner as it significantly decreases build times runs-on: [larger-runner-4cpu] - strategy: - matrix: - node-version: [18.x] - steps: - name: Checkout uses: actions/checkout@v4 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + - name: Use Node.js + uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} + node-version-file: '.nvmrc' cache: 'npm' - name: Install deps diff --git a/.github/workflows/ui-tests.yml b/.github/workflows/ui-tests.yml index f312f2130d4..126edd5b9a5 100644 --- a/.github/workflows/ui-tests.yml +++ b/.github/workflows/ui-tests.yml @@ -15,20 +15,16 @@ jobs: build: runs-on: ubuntu-latest - strategy: - matrix: - node-version: [18.x] - steps: - uses: actions/checkout@v4 with: sparse-checkout: | packages - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + - name: Use Node.js + uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} + node-version-file: '.nvmrc' cache: 'npm' - name: Install deps diff --git a/.nvmrc b/.nvmrc index 25bf17fc5aa..2edeafb09db 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -18 \ No newline at end of file +20 \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 00000000000..b5d3188a5b3 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,35 @@ +# CONTRIBUTING.md + +Thank you for contributing to Supabase! We’re a big, exciting open source project and we’d love to have you contribute! Here’s some resources and guidance to help you get started: + +[1. Getting Started](#getting-started) +[2. Issues](#issues) +[3. Pull Requests](#pull-requests) + +## Getting Started + +To ensure a positive and inclusive environment, please read our [code of conduct](https://github.com/supabase/.github/blob/main/CODE_OF_CONDUCT.md) before contributing. For help setting up the code in this repo, please follow our [DEVELOPERS.md](https://github.com/supabase/supabase/blob/master/DEVELOPERS.md) file. For the [docs](https://supabase.com/docs) site, follow this [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/apps/docs/CONTRIBUTING.md) guide. + +## Issues + +If you find a bug, please create an Issue and we’ll triage it. + +- Please search [existing Issues](https://github.com/supabase/supabase/issues) before creating a new one. +- Please include a clear description of the problem along with steps to reproduce it. Exact steps with screenshots and urls really help here. + +## Pull Requests + +We actively welcome your Pull Requests! A couple of things to keep in mind before you submit: + +- If you’re fixing an Issue, make sure someone else hasn’t already created a PR fixing the same issue. Likewise, make sure to link your PR to the related Issue(s). +- We will always try to accept the first viable PR that resolves the Issue. +- If you're new, we encourage you to take a look at issues tagged with [good first issue](https://github.com/supabase/supabase/labels/good%20first%20issue). +- If you’re submitting a new feature, make sure you have opened a [Discussion](https://github.com/orgs/supabase/discussions/new/choose) to discuss the new feature before opening a PR. We’d love to accept your hard work, but unfortunately if a feature hasn’t gone through a proper design process, your PR will be closed. +- Please use the PR message template and provide detailed context for quicker review. PRs without clear problem statements will be closed. + +Prior to submitting your PR, please conduct the following pre-flight checks: + +- Run `npm run build` locally to ensure that your code builds successfully without having to wait on us to approve Vercel Preview deploys. +- Ensure that the Prettier tests run successfully on your PR. + +Running these before you create the PR will help reduce back and forth with the team. diff --git a/DEVELOPERS.md b/DEVELOPERS.md index b1eefec714b..a42c0a057b1 100644 --- a/DEVELOPERS.md +++ b/DEVELOPERS.md @@ -1,6 +1,7 @@ # Developing Supabase - [Developing Supabase](#developing-supabase) + - [Getting started](#getting-started) - [Install dependencies](#install-dependencies) - [Local development](#local-development) @@ -11,8 +12,8 @@ - [Shared components](#shared-components) - [Installing packages](#installing-packages) - [Running Docker for Supabase Studio](#running-docker-for-supabase-studio) - - [Prerequsites](#prerequsites) - - [Get Started](#get-started) + - [Prerequsites](#prerequsites) + - [Get Started](#get-started) - [Create a pull request](#create-a-pull-request) - [Issue assignment](#issue-assignment) - [Common tasks](#common-tasks) @@ -36,8 +37,8 @@ To ensure a positive and inclusive environment, please read our [code of conduct You will need to install and configure the following dependencies on your machine to build [Supabase](https://supabase.com): - [Git](http://git-scm.com/) -- [Node.js v18.x (LTS)](http://nodejs.org) -- [npm](https://www.npmjs.com/) version 9.x.x +- [Node.js v20.x (LTS)](http://nodejs.org) +- [npm](https://www.npmjs.com/) version 9.x.x or higher - [Docker](https://docs.docker.com/get-docker/) (to run studio locally) ## Local development diff --git a/README.md b/README.md index a3cd29f08a3..d63f425b65d 100644 --- a/README.md +++ b/README.md @@ -111,6 +111,15 @@ Our approach for client libraries is modular. Each sub-library is a standalone i storage-dart functions-dart + + Swift + supabase-swift + postgrest-swift + auth-swift + realtime-swift + storage-swift + functions-swift + 💚 Community 💚 @@ -177,15 +186,6 @@ Our approach for client libraries is modular. Each sub-library is a standalone i - - - - Swift - supabase-swift - postgrest-swift - gotrue-swift - realtime-swift - storage-swift - functions-swift - Godot Engine (GDScript) supabase-gdscript diff --git a/apps/database-new/app/[thread_id]/[message_id]/MessageItem.tsx b/apps/database-new/app/[thread_id]/[message_id]/MessageItem.tsx index 98aa11796d8..18291f04464 100644 --- a/apps/database-new/app/[thread_id]/[message_id]/MessageItem.tsx +++ b/apps/database-new/app/[thread_id]/[message_id]/MessageItem.tsx @@ -1,6 +1,6 @@ 'use client' -import { Message as MessageItem } from 'ai/react' +import type { Message as MessageItem } from 'ai/react' import Link from 'next/link' import { useParams, usePathname } from 'next/navigation' import { cn } from 'ui' diff --git a/apps/database-new/package.json b/apps/database-new/package.json index c198c0d1858..d7ed811868e 100644 --- a/apps/database-new/package.json +++ b/apps/database-new/package.json @@ -14,16 +14,16 @@ "@gregnr/libpg-query": "13.4.0-dev.12", "@monaco-editor/react": "^4.6.0", "@supabase/ssr": "^0.1.0", - "@tanstack/react-query": "^5.7.2", + "@tanstack/react-query": "^5.13.4", "ai": "^2.2.31", "common": "*", "config": "*", "dayjs": "^1.11.10", - "eslint-config-next": "^14.1.0", + "eslint-config-next": "^14.2.0", "lodash": "^4.17.21", "lucide-react": "^0.338.0", - "next": "^14.0.3", - "openai": "^4.17.0", + "next": "^14.2.0", + "openai": "^4.20.1", "react": "^18.2.0", "react-dom": "^18.2.0", "react-flow": "^1.0.3", @@ -34,12 +34,12 @@ "zod": "^3.22.4" }, "devDependencies": { - "@types/node": "^18.11.9", + "@types/node": "^20.11.16", "@types/react": "^18.2.24", "@types/react-dom": "^18.2.8", - "autoprefixer": "10.4.14", - "nextjs-node-loader": "^1.1.5-alpha.0", - "postcss": "8.4.31", - "typescript": "^5.2.2" + "autoprefixer": "^10.4.14", + "nextjs-node-loader": "^1.1.5", + "postcss": "^8.4.31", + "typescript": "^5.4.3" } } diff --git a/apps/database-new/tsconfig.json b/apps/database-new/tsconfig.json index 881d250a669..62b62c03540 100644 --- a/apps/database-new/tsconfig.json +++ b/apps/database-new/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2017", + "target": "ES2021", "lib": ["dom", "dom.iterable", "esnext"], "allowJs": true, "skipLibCheck": true, diff --git a/apps/docs/components/Favicons.tsx b/apps/docs/components/Favicons.tsx deleted file mode 100644 index cc7073cce92..00000000000 --- a/apps/docs/components/Favicons.tsx +++ /dev/null @@ -1,52 +0,0 @@ -import Head from 'next/head' -import { useRouter } from 'next/router' - -const Favicons = () => { - const { basePath } = useRouter() - return ( - - {/* prettier-ignore */} - - {/* prettier-ignore */} - - {/* prettier-ignore */} - - {/* prettier-ignore */} - - {/* prettier-ignore */} - - {/* prettier-ignore */} - - {/* prettier-ignore */} - - {/* prettier-ignore */} - - {/* prettier-ignore */} - - {/* prettier-ignore */} - - {/* prettier-ignore */} - - {/* prettier-ignore */} - - {/* prettier-ignore */} - - - - - - - - - - - - {/* misc */} - - - - - ) -} - -export default Favicons diff --git a/apps/docs/components/Feedback/Feedback.tsx b/apps/docs/components/Feedback/Feedback.tsx index 2d656947d23..3b86b5dabe1 100644 --- a/apps/docs/components/Feedback/Feedback.tsx +++ b/apps/docs/components/Feedback/Feedback.tsx @@ -10,12 +10,13 @@ import { useState, } from 'react' -import { useIsLoggedIn } from 'common' +import { type Database, useIsLoggedIn } from 'common' import { Button, cn } from 'ui' import { useSendFeedbackMutation } from '~/lib/fetch/feedback' import { useSendTelemetryEvent } from '~/lib/telemetry' import { FeedbackModal, type FeedbackFields } from './FeedbackModal' +import { getNotionTeam, getSanitizedTabParams } from './Feedback.utils' const FeedbackButton = forwardRef< HTMLButtonElement, @@ -76,7 +77,7 @@ function Feedback() { const pathname = usePathname() const sendTelemetryEvent = useSendTelemetryEvent() const { mutate: sendFeedbackComment } = useSendFeedbackMutation() - const supabase = useSupabaseClient() + const supabase = useSupabaseClient() const unanswered = state.type === 'unanswered' const isYes = 'response' in state && state.response === 'yes' @@ -85,7 +86,13 @@ function Feedback() { const showNo = unanswered || isNo async function sendFeedbackVote(response: Response) { - const { error } = await supabase.from('feedback').insert({ vote: response, page: pathname }) + const { error } = await supabase.from('feedback').insert({ + vote: response, + page: pathname, + metadata: { + query: getSanitizedTabParams(), + }, + }) if (error) console.error(error) } @@ -111,8 +118,15 @@ function Feedback() { }, 100) } - async function handleSubmit({ page, comment }: FeedbackFields) { - sendFeedbackComment({ message: comment, pathname: page }) + async function handleSubmit({ page, comment, title }: FeedbackFields) { + sendFeedbackComment({ + message: comment, + pathname: page, + title, + // @ts-expect-error -- can't click this button without having a state.response + isHelpful: state.response === 'yes', + team: getNotionTeam(pathname), + }) setModalOpen(false) refocusButton() } diff --git a/apps/docs/components/Feedback/Feedback.utils.ts b/apps/docs/components/Feedback/Feedback.utils.ts new file mode 100644 index 00000000000..c1e93f10f27 --- /dev/null +++ b/apps/docs/components/Feedback/Feedback.utils.ts @@ -0,0 +1,50 @@ +import { pick } from 'lodash' + +/** + * Gets the Notion team to send feedback to based on the pathname. + */ +const getNotionTeam = (pathname: string) => { + const DEFAULT_TEAM = 'team-docs' + + // Pathname has format `/guides/(team)/**` + const pathParts = pathname.split('/') + + if (pathParts[1] !== 'guides' || !pathParts[2]) return DEFAULT_TEAM + + switch (pathParts[2]) { + case 'database': + return 'team-postgres' + case 'auth': + return 'team-auth' + case 'storage': + return 'team-storage' + case 'functions': + return 'team-functions' + case 'realtime': + return 'team-realtime' + case 'ai': + return 'team-ai' + case 'cli': + return 'team-cli' + + // Ignoring platform for now because that section is a mix of teams. + case 'platform': + default: + return DEFAULT_TEAM + } +} + +/** + * Gets the tab selection state from the URL search params. + * + * Sanitizes by including only those search params that are explicitly marked + * as query groups. + */ +const getSanitizedTabParams = () => { + const searchParams = new URLSearchParams(window.location.search) + const queryGroups = searchParams.getAll('queryGroups') + + return pick(Object.fromEntries(searchParams.entries()), queryGroups) +} + +export { getNotionTeam, getSanitizedTabParams } diff --git a/apps/docs/components/Feedback/FeedbackModal.tsx b/apps/docs/components/Feedback/FeedbackModal.tsx index 6013eb972d1..d8e010271c9 100644 --- a/apps/docs/components/Feedback/FeedbackModal.tsx +++ b/apps/docs/components/Feedback/FeedbackModal.tsx @@ -2,6 +2,7 @@ import { Button, Form, Input, Modal } from 'ui' export type FeedbackFields = { page: string + title: string comment: string } @@ -21,6 +22,10 @@ function FeedbackModal({ visible, page, onCancel, onSubmit }: FeedbackModalProps validate={(vals) => { const errors: Partial = {} + if (!vals.title) { + errors.title = 'Required' + } + if (!vals.comment) { errors.comment = 'Required' } @@ -32,8 +37,9 @@ function FeedbackModal({ visible, page, onCancel, onSubmit }: FeedbackModalProps > {({ isSubmitting }: { isSubmitting: boolean }) => ( <> - + + { // [Joshen] We will still provide support for headers declared like this: @@ -28,30 +37,91 @@ const formatTOCHeader = (content: string) => { return res.join('') } -interface TOCHeader { - id: number - level: number - text: string - link: string -} +const GuidesTableOfContents = ({ + className, + overrideToc, + video, +}: { + className?: string + overrideToc?: Array<{ text: string; link: string; level: number }> + video?: string +}) => { + const [tocList, setTocList] = useState([]) + const pathname = usePathname() + const [hash] = useHash() -interface Props { - list: TOCHeader[] -} + const displayedList = overrideToc ?? tocList + + useEffect(() => { + if (overrideToc) return + + /** + * Because we're directly querying the DOM, needs the setTimeout so the DOM + * update will happen first. + */ + const timeoutHandle = setTimeout(() => { + const headings = Array.from( + document.querySelector('#sb-docs-guide-main-article')?.querySelectorAll('h2, h3') ?? [] + ) + const newHeadings = headings + .filter((heading) => heading.id) + .map((heading) => { + const text = heading.textContent.replace('#', '') + const link = heading.querySelector('a').getAttribute('href') + const level = heading.tagName === 'H2' ? 2 : 3 + return { text, link, level } + }) + setTocList(newHeadings) + }) + + return () => clearTimeout(timeoutHandle) + /** + * window.location.href needed to recalculate toc when page changes, + * useRerenderOnEvt below will guarantee rerender on change + */ + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [overrideToc, typeof window !== 'undefined' && window.location.href]) + + useEffect(() => { + if (hash && displayedList.length > 0) { + highlightSelectedTocItem(hash) + } + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [hash, JSON.stringify(displayedList)]) + + /** + * Displayed headings may change if the tab changes, so the table of contents + * needs to rerender. + */ + useRerenderOnEvt(TAB_CHANGE_EVENT_NAME) + + if (!displayedList.length) return + + const tocVideoPreview = `http://img.youtube.com/vi/${video}/0.jpg` -const GuidesTableOfContents: FC = ({ list }) => { return ( - + ) } diff --git a/apps/docs/components/MDX/social_provider_setup.mdx b/apps/docs/components/MDX/social_provider_setup.mdx index 6adc01d926b..b270d56d745 100644 --- a/apps/docs/components/MDX/social_provider_setup.mdx +++ b/apps/docs/components/MDX/social_provider_setup.mdx @@ -3,4 +3,4 @@ The next step requires a callback URL, which looks like this: `https:// '' - and (tg_op = 'DELETE' or (old.avatar_url <> coalesce(new.avatar_url, ''))) then - -- extract avatar name - avatar_name := old.avatar_url; - select - into status, content - result.status, result.content - from public.delete_avatar(avatar_name) as result; - if status <> 200 then - raise warning 'Could not delete avatar: % %', status, content; - end if; - end if; - if tg_op = 'DELETE' then - return old; - end if; - return new; -end; -$$; - -create trigger before_profile_changes - before update of avatar_url or delete on public.profiles - for each row execute function public.delete_old_avatar(); - -``` - -Finally, delete the `public.profile` row before a user is deleted. -If this step is omitted, you won't be able to delete users without -first manually deleting their avatar image. - -```sql -create or replace function delete_old_profile() -returns trigger -language 'plpgsql' -security definer -as $$ -begin - delete from public.profiles where id = old.id; - return old; -end; -$$; - -create trigger before_delete_user - before delete on auth.users - for each row execute function public.delete_old_profile(); - -``` diff --git a/apps/docs/components/MDX/user_management_quickstart_sql_template.mdx b/apps/docs/components/MDX/user_management_quickstart_sql_template.mdx index aa552b6af65..74129ccf02c 100644 --- a/apps/docs/components/MDX/user_management_quickstart_sql_template.mdx +++ b/apps/docs/components/MDX/user_management_quickstart_sql_template.mdx @@ -19,10 +19,10 @@ create policy "Public profiles are viewable by everyone." on profiles for select using (true); create policy "Users can insert their own profile." on profiles - for insert with check (auth.uid() = id); + for insert with check ((select auth.uid()) = id); create policy "Users can update own profile." on profiles - for update using (auth.uid() = id); + for update using ((select auth.uid()) = id); -- This trigger automatically creates a profile entry when a new user signs up via Supabase Auth. -- See https://supabase.com/docs/guides/auth/managing-user-data#using-triggers for more details. @@ -51,5 +51,5 @@ create policy "Anyone can upload an avatar." on storage.objects for insert with check (bucket_id = 'avatars'); create policy "Anyone can update their own avatar." on storage.objects - for update using (auth.uid() = owner) with check (bucket_id = 'avatars'); + for update using ((select auth.uid()) = owner) with check (bucket_id = 'avatars'); ``` diff --git a/apps/docs/components/Navigation/NavigationMenu/HomeMenu.tsx b/apps/docs/components/Navigation/NavigationMenu/HomeMenu.tsx index 924899c732d..944345923cf 100644 --- a/apps/docs/components/Navigation/NavigationMenu/HomeMenu.tsx +++ b/apps/docs/components/Navigation/NavigationMenu/HomeMenu.tsx @@ -40,11 +40,7 @@ const NavigationMenuHome = () => { > {link?.icon && } {link.label} - {link.community && ( - - Community - - )} + {link.community && Community} ) diff --git a/apps/docs/components/Navigation/NavigationMenu/HomeMenuIconPicker.tsx b/apps/docs/components/Navigation/NavigationMenu/HomeMenuIconPicker.tsx index 435a7e15708..b6b28dc2d57 100644 --- a/apps/docs/components/Navigation/NavigationMenu/HomeMenuIconPicker.tsx +++ b/apps/docs/components/Navigation/NavigationMenu/HomeMenuIconPicker.tsx @@ -26,58 +26,58 @@ import { IconMenuDevCli, } from './HomeMenuIcons' -function getMenuIcon(menuKey: string, width: number = 16, height: number = 16) { +function getMenuIcon(menuKey: string, width: number = 16, height: number = 16, className) { switch (menuKey) { case 'home': - return + return case 'getting-started': - return + return case 'database': - return + return case 'rest': - return + return case 'graphql': - return + return case 'auth': - return + return case 'edge-functions': - return + return case 'realtime': - return + return case 'storage': - return + return case 'ai': - return + return case 'platform': - return + return case 'resources': - return + return case 'self-hosting': - return + return case 'integrations': - return + return case 'reference-javascript': - return + return case 'reference-dart': - return + return case 'reference-python': - return + return case 'reference-csharp': - return + return case 'reference-swift': - return + return case 'reference-kotlin': - return + return case 'reference-api': - return + return case 'dev-cli': - return + return case 'reference-cli': - return + return case 'status': - return + return default: - return + return } } @@ -85,12 +85,14 @@ type HomeMenuIconPickerProps = { icon: string width?: number height?: number + className?: string } export default function HomeMenuIconPicker({ icon, width = 16, height = 16, + className, }: HomeMenuIconPickerProps) { - return getMenuIcon(icon, width, height) + return getMenuIcon(icon, width, height, className) } diff --git a/apps/docs/components/Navigation/NavigationMenu/HomeMenuIcons.tsx b/apps/docs/components/Navigation/NavigationMenu/HomeMenuIcons.tsx index d2b0636a8b7..e762f8f3c78 100644 --- a/apps/docs/components/Navigation/NavigationMenu/HomeMenuIcons.tsx +++ b/apps/docs/components/Navigation/NavigationMenu/HomeMenuIcons.tsx @@ -3,11 +3,13 @@ import { products } from 'shared-data' type HomeMenuIcon = { width?: number height?: number + className?: string } -export function IconMenuHome({ width = 16, height = 16 }: HomeMenuIcon) { +export function IconMenuHome({ width = 16, height = 16, className }: HomeMenuIcon) { return ( = ({ id, value }) => { - const router = useRouter() +import * as NavItems from './NavigationMenu.constants' +import { getPathWithoutHash } from './NavigationMenu.utils' +import NavigationMenuGuideListItems from './NavigationMenuGuideListItems' + +const NavigationMenuGuideList = ({ id }: { id: string }) => { + const path = useRouter().asPath + const url = getPathWithoutHash(path) + const firstLevelRoute = url?.split('/')?.slice(0, 4)?.join('/') const menu = NavItems[id] - // get url - const url = router.asPath - - // We need to decide how deep we want the menu to be for matching urls - // if the links are really deep, we don't want to match all the way out - // But we need to reach out further to make the structure of /resources/postgres/ work - // look at /resources/postgres/ vs /auth/phone-login for how these are different - let firstLevelRoute - if (url.includes('resources/postgres/')) { - firstLevelRoute = url?.split('/')?.slice(0, 5)?.join('/') - } else { - firstLevelRoute = url?.split('/')?.slice(0, 4)?.join('/') - } - return ( diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenuGuideListItems.tsx b/apps/docs/components/Navigation/NavigationMenu/NavigationMenuGuideListItems.tsx index a4385ad4162..0a2a7d6f9fc 100644 --- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenuGuideListItems.tsx +++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenuGuideListItems.tsx @@ -1,11 +1,13 @@ +import * as Accordion from '@radix-ui/react-accordion' +import { ChevronLeft } from 'lucide-react' import { useTheme } from 'next-themes' import Image from 'next/legacy/image' import Link from 'next/link' import { useRouter } from 'next/router' import React, { useEffect, useRef } from 'react' -import { IconChevronLeft } from '~/../../packages/ui' -import * as Accordion from '@radix-ui/react-accordion' + import HomeMenuIconPicker from './HomeMenuIconPicker' +import { getPathWithoutHash } from './NavigationMenu.utils' const HeaderLink = React.memo(function HeaderLink(props: { title: string @@ -30,7 +32,7 @@ const HeaderLink = React.memo(function HeaderLink(props: { const ContentAccordionLink = React.memo(function ContentAccordionLink(props: any) { const router = useRouter() const { resolvedTheme } = useTheme() - const activeItem = props.subItem.url === router.asPath + const activeItem = props.subItem.url === getPathWithoutHash(router.asPath) const activeItemRef = useRef(null) const LinkContainer = (props) => { @@ -97,7 +99,7 @@ const ContentAccordionLink = React.memo(function ContentAccordionLink(props: any href={`${subSubItem.url}`} className={[ 'cursor-pointer transition text-sm', - subSubItem.url === router.asPath + subSubItem.url === getPathWithoutHash(router.asPath) ? 'text-brand' : 'hover:text-brand text-foreground-lighter', ].join(' ')} @@ -151,7 +153,7 @@ const Content = (props) => { >
- +
Back to Home diff --git a/apps/docs/components/Params.tsx b/apps/docs/components/Params.tsx index 3c494f2cabe..20e800a208f 100644 --- a/apps/docs/components/Params.tsx +++ b/apps/docs/components/Params.tsx @@ -1,3 +1,5 @@ +import { ReactMarkdown } from 'react-markdown/lib/react-markdown' + type IParamProps = any const Param = ({ name, isOptional, type, description, children }: IParamProps) => { @@ -18,7 +20,9 @@ const Param = ({ name, isOptional, type, description, children }: IParamProps) = {type ?? 'no type'} - {description &&

{description}

} + {description && ( + {description} + )} {children} ) diff --git a/apps/docs/components/TableOfContents.tsx b/apps/docs/components/TableOfContents.tsx deleted file mode 100644 index a9af7b2157d..00000000000 --- a/apps/docs/components/TableOfContents.tsx +++ /dev/null @@ -1,83 +0,0 @@ -// [Terry] -// Delete this after we've implemented GuidesTableofContents and moved all guides -// and rename GuidesTableofContents to TableOfContents - -import { FC } from 'react' -import { getAnchor, removeAnchor } from './CustomHTMLElements/CustomHTMLElements.utils' - -interface TOCHeader { - id: number - lvl: number - seen: number - content: string - slug: string -} - -interface Props { - toc: any - video?: string -} - -const formatSlug = (slug: string) => { - // [Joshen] We will still provide support for headers declared like this: - // ## REST API {#rest-api-overview} - // At least for now, this was a docusaurus thing. - if (slug.includes('#')) return slug.split('-#')[1] - return slug -} - -const formatTOCHeader = (content: string) => { - let begin = false - const res = [] - for (const x of content) { - if (x === '`') { - if (!begin) { - begin = true - res.push(``) - } else { - begin = false - res.push(``) - } - } else { - res.push(x) - } - } - return res.join('') -} - -const TableOfContents: FC = ({ toc, video }) => { - // [Joshen] markdown-toc doesn't seem to read maxdepth from the options passed in - // Our first level headers will be H2s (H1 is ignored), and we only show up to H3 - - return ( - <> - {video && ( -
- -
- )} -
- - ) -} - -export default TableOfContents diff --git a/apps/docs/components/index.tsx b/apps/docs/components/index.tsx index 42ce7b4614c..107b4f8bd3a 100644 --- a/apps/docs/components/index.tsx +++ b/apps/docs/components/index.tsx @@ -41,7 +41,6 @@ import ProjectSetup from './MDX/project_setup.mdx' import QuickstartIntro from './MDX/quickstart_intro.mdx' import SocialProviderSettingsSupabase from './MDX/social_provider_settings_supabase.mdx' import SocialProviderSetup from './MDX/social_provider_setup.mdx' -import StorageManagement from './MDX/storage_management.mdx' // Icons import { @@ -153,7 +152,6 @@ const components = { SocialProviderSettingsSupabase, SocialProviderSetup, StepHikeCompact, - StorageManagement, TabPanel: (props: any) => {props.children}, Tabs: (props: any) => , } diff --git a/apps/docs/components/reference/ApiOperationSection.tsx b/apps/docs/components/reference/ApiOperationSection.tsx index 3225afa0118..897101f010c 100644 --- a/apps/docs/components/reference/ApiOperationSection.tsx +++ b/apps/docs/components/reference/ApiOperationSection.tsx @@ -1,6 +1,7 @@ import { CodeBlock, Tabs } from 'ui' import Param from '~/components/Params' import RefSubLayout from '~/layouts/ref/RefSubLayout' +import { ReactMarkdown } from 'react-markdown/lib/react-markdown' const ApiOperationSection = (props) => { const operation = props.spec.operations.find((x: any) => x.operationId === props.funcData.id) @@ -96,7 +97,7 @@ const ApiOperationSection = (props) => { > {operation.responseList.map((response: any, i: number) => ( -

{response.description}

+ {response.description} {response?.content && response?.content['application/json'] && (
diff --git a/apps/docs/components/reference/RefFunctionSection.tsx b/apps/docs/components/reference/RefFunctionSection.tsx index b368f6eeb45..0a4a7695771 100644 --- a/apps/docs/components/reference/RefFunctionSection.tsx +++ b/apps/docs/components/reference/RefFunctionSection.tsx @@ -23,7 +23,7 @@ const RefFunctionSection: React.FC = (props) => { const tsDefinition = hasTsRef && props.typeSpec ? extractTsDocNode(hasTsRef, props.typeSpec) : null const parameters = hasTsRef && tsDefinition ? generateParameters(tsDefinition) : item.params - const shortText = hasTsRef && tsDefinition ? tsDefinition.signatures[0].comment.shortText : '' + const shortText = hasTsRef && tsDefinition ? tsDefinition.signatures[0].comment?.shortText : '' return ( <> diff --git a/apps/docs/content/guides/ai.mdx b/apps/docs/content/guides/ai.mdx index f089f7a57c0..8ce2de8c1a9 100644 --- a/apps/docs/content/guides/ai.mdx +++ b/apps/docs/content/guides/ai.mdx @@ -16,6 +16,14 @@ The toolkit includes: - [Database migrations](/docs/guides/ai/examples/headless-vector-search#prepare-your-database) for managing structured embeddings. - Integrations with all popular AI providers, such as [OpenAI](/docs/guides/ai/examples/openai), [Hugging Face](/docs/guides/ai/hugging-face), [LangChain](/docs/guides/ai/langchain), and more. +## Search + +You can use Supabase to build different types of search features for your app, including: + +- [Semantic search](/docs/guides/ai/semantic-search): search by meaning rather than exact keywords +- [Keyword search](/docs/guides/ai/keyword-search): search by words or phrases +- [Hybrid search](/docs/guides/ai/hybrid-search): combine semantic search with keyword search + ## Examples Check out all of the AI [templates and examples](https://github.com/supabase/supabase/tree/master/examples/ai) in our GitHub repository. @@ -91,6 +99,12 @@ export const integrations = [ 'OpenAI is an AI research and deployment company. Supabase provides a simple way to use OpenAI in your applications.', href: '/guides/ai/examples/building-chatgpt-plugins', }, + { + name: 'Amazon Bedrock', + description: + 'A fully managed service that offers a choice of high-performing foundation models from leading AI companies.', + href: '/guides/ai/amazon-bedrock', + }, { name: 'Hugging Face', description: diff --git a/apps/docs/content/guides/ai/examples/headless-vector-search.mdx b/apps/docs/content/guides/ai/examples/headless-vector-search.mdx index f24c71283f0..3dc03951be3 100644 --- a/apps/docs/content/guides/ai/examples/headless-vector-search.mdx +++ b/apps/docs/content/guides/ai/examples/headless-vector-search.mdx @@ -62,7 +62,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: supabase/supabase-embeddings-generator@v0.0.x # Update this to the latest version. + - uses: supabase/embeddings-generator@v0.0.x # Update this to the latest version. with: supabase-url: 'https://your-project-ref.supabase.co' # Update this to your project URL. supabase-service-role-key: ${{ secrets.SUPABASE_SERVICE_ROLE_KEY }} diff --git a/apps/docs/content/guides/ai/examples/semantic-image-search-amazon-titan.mdx b/apps/docs/content/guides/ai/examples/semantic-image-search-amazon-titan.mdx new file mode 100644 index 00000000000..c2dd616366e --- /dev/null +++ b/apps/docs/content/guides/ai/examples/semantic-image-search-amazon-titan.mdx @@ -0,0 +1,234 @@ +--- +id: 'semantic-image-search-python-amazon-titan' +title: 'Semantic Image Search with Amazon Titan' +description: 'Implement semantic image search with Amazon Titan and Supabase Vector in Python.' +subtitle: 'Implement semantic image search with Amazon Titan and Supabase Vector in Python.' +tocVideo: 'A3uND5sgiO0' +--- + +[Amazon Bedrock](https://aws.amazon.com/bedrock) is a fully managed service that offers a choice of high-performing foundation models (FMs) from leading AI companies like AI21 Labs, Anthropic, Cohere, Meta, Mistral AI, Stability AI, and Amazon. Each model is accessible through a common API which implements a broad set of features to help build generative AI applications with security, privacy, and responsible AI in mind. + +[Amazon Titan](https://aws.amazon.com/bedrock/titan/) is a family of foundation models (FMs) for text and image generation, summarization, classification, open-ended Q&A, information extraction, and text or image search. + +In this guide we'll look at how we can get started with Amazon Bedrock and Supabase Vector in Python using the Amazon Titan multimodal model and the [vecs client](/docs/guides/ai/vecs-python-client). + +You can find the full application code as a Python Poetry project on [GitHub](https://github.com/supabase/supabase/tree/master/examples/ai/aws_bedrock_image_search). + +## Create a new Python project with Poetry + +[Poetry](https://python-poetry.org/) provides packaging and dependency management for Python. If you haven't already, install poetry via pip: + +```shell +pip install poetry +``` + +Then initialize a new project: + +```shell +poetry new aws_bedrock_image_search +``` + +## Spin up a Postgres Database with pgvector + +If you haven't already, head over to [database.new](https://database.new) and create a new project. Every Supabase project comes with a full Postgres database and the [pgvector extension](/docs/guides/database/extensions/pgvector) preconfigured. + +When creating your project, make sure to note down your database password as you will need it to construct the `DB_URL` in the next step. + +You can find the database connection string in your Supabase Dashboard [database settings](https://supabase.com/dashboard/project/_/settings/database). Select "Use connection pooling" with `Mode: Session` for a direct connection to your Postgres database. It will look something like this: + +```txt +postgresql://postgres.[PROJECT-REF]:[YOUR-PASSWORD]@aws-0-[REGION].pooler.supabase.com:5432/postgres +``` + +## Install the dependencies + +We will need to add the following dependencies to our project: + +- [`vecs`](https://github.com/supabase/vecs#vecs): Supabase Vector Python Client. +- [`boto3`](https://boto3.amazonaws.com/v1/documentation/api/latest/index.html): AWS SDK for Python. +- [`matplotlib`](https://matplotlib.org/): for displaying our image result. + +```shell +poetry add vecs boto3 matplotlib +``` + +## Import the necessary dependencies + +At the top of your main python script, import the dependencies and store your `DB URL` from above in a variable: + +```python +import sys +import boto3 +import vecs +import json +import base64 +from matplotlib import pyplot as plt +from matplotlib import image as mpimg +from typing import Optional + +DB_CONNECTION = "postgresql://postgres.[PROJECT-REF]:[YOUR-PASSWORD]@aws-0-[REGION].pooler.supabase.com:5432/postgres" +``` + +Next, get the [credentials to your AWS account](https://boto3.amazonaws.com/v1/documentation/api/latest/guide/credentials.html) and instantiate the `boto3` client: + +```python +bedrock_client = boto3.client( + 'bedrock-runtime', + region_name='us-west-2', + # Credentials from your AWS account + aws_access_key_id='', + aws_secret_access_key='', + aws_session_token='', +) +``` + +## Create embeddings for your images + +In the root of your project, create a new folder called `images` and add some images. You can use the images from the example project on [GitHub](https://github.com/supabase/supabase/tree/master/examples/ai/aws_bedrock_image_search/images) or you can find license free images on [unsplash](https://unsplash.com). + +To send images to the Amazon Bedrock API we need to need to encode them as `base64` strings. Create the following helper methods: + +```python +def readFileAsBase64(file_path): + """Encode image as base64 string.""" + try: + with open(file_path, "rb") as image_file: + input_image = base64.b64encode(image_file.read()).decode("utf8") + return input_image + except: + print("bad file name") + sys.exit(0) + + +def construct_bedrock_image_body(base64_string): + """Construct the request body. + + https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters-titan-embed-mm.html + """ + return json.dumps( + { + "inputImage": base64_string, + "embeddingConfig": {"outputEmbeddingLength": 1024}, + } + ) + + +def get_embedding_from_titan_multimodal(body): + """Invoke the Amazon Titan Model via API request.""" + response = bedrock_client.invoke_model( + body=body, + modelId="amazon.titan-embed-image-v1", + accept="application/json", + contentType="application/json", + ) + + response_body = json.loads(response.get("body").read()) + print(response_body) + return response_body["embedding"] + + +def encode_image(file_path): + """Generate embedding for the image at file_path.""" + base64_string = readFileAsBase64(file_path) + body = construct_bedrock_image_body(base64_string) + emb = get_embedding_from_titan_multimodal(body) + return emb +``` + +Next, create a `seed` method, which will create a new Supabase Vector Collection, generate embeddings for your images, and upsert the embeddings into your database: + +```python +def seed(): + # create vector store client + vx = vecs.create_client(DB_CONNECTION) + + # get or create a collection of vectors with 1024 dimensions + images = vx.get_or_create_collection(name="image_vectors", dimension=1024) + + # Generate image embeddings with Amazon Titan Model + img_emb1 = encode_image('./images/one.jpg') + img_emb2 = encode_image('./images/two.jpg') + img_emb3 = encode_image('./images/three.jpg') + img_emb4 = encode_image('./images/four.jpg') + + # add records to the *images* collection + images.upsert( + records=[ + ( + "one.jpg", # the vector's identifier + img_emb1, # the vector. list or np.array + {"type": "jpg"} # associated metadata + ), ( + "two.jpg", + img_emb2, + {"type": "jpg"} + ), ( + "three.jpg", + img_emb3, + {"type": "jpg"} + ), ( + "four.jpg", + img_emb4, + {"type": "jpg"} + ) + ] + ) + print("Inserted images") + + # index the collection for fast search performance + images.create_index() + print("Created index") +``` + +Add this method as a script in your `pyproject.toml` file: + +```toml +[tool.poetry.scripts] +seed = "image_search.main:seed" +search = "image_search.main:search" +``` + +After activating the virtual environtment with `poetry shell` you can now run your seed script via `poetry run seed`. You can inspect the generated embeddings in your Supabase Dashboard by visiting the [Table Editor](https://supabase.com/dashboard/project/_/editor), selecting the `vecs` schema, and the `image_vectors` table. + +## Perform an image search from a text query + +With Supabase Vector we can easily query our embeddings. We can use either an image as the search input or alternatively we can generate an embedding from a string input and use that as the query input: + +```python +def search(query_term: Optional[str] = None): + if query_term is None: + query_term = sys.argv[1] + + # create vector store client + vx = vecs.create_client(DB_CONNECTION) + images = vx.get_or_create_collection(name="image_vectors", dimension=1024) + + # Encode text query + text_emb = get_embedding_from_titan_multimodal(json.dumps( + { + "inputText": query_term, + "embeddingConfig": {"outputEmbeddingLength": 1024}, + } + )) + + # query the collection filtering metadata for "type" = "jpg" + results = images.query( + data=text_emb, # required + limit=1, # number of records to return + filters={"type": {"$eq": "jpg"}}, # metadata filters + ) + result = results[0] + print(result) + plt.title(result) + image = mpimg.imread('./images/' + result) + plt.imshow(image) + plt.show() +``` + +By limiting the query to one result, we can show the most relevant image to the user. Finally we use `matplotlib` to show the image result to the user. + +That's it, go ahead and test it out by running `poetry run search` and you will be presented with an image of a "bike in front of a red brick wall". + +## Conclusion + +With just a couple of lines of Python you are able to implement image search as well as reverse image search using the Amazon Titan multimodal model and Supabase Vector. diff --git a/apps/docs/content/guides/ai/hybrid-search.mdx b/apps/docs/content/guides/ai/hybrid-search.mdx index e23aea9e456..1c3431a35da 100644 --- a/apps/docs/content/guides/ai/hybrid-search.mdx +++ b/apps/docs/content/guides/ai/hybrid-search.mdx @@ -6,7 +6,7 @@ subtitle: 'Combine keyword search with semantic search.' sidebar_label: 'Hybrid search' --- -Hybrid search combines [full text search](/docs/guides/database/full-text-search) (searching by keyword) with [semantic search](/docs/guides/ai/concepts#what-are-embeddings) (searching by meaning) to identify results that are both directly and contextually relevant to the user's query. +Hybrid search combines [full text search](/docs/guides/ai/keyword-search) (searching by keyword) with [semantic search](/docs/guides/ai/semantic-search) (searching by meaning) to identify results that are both directly and contextually relevant to the user's query. ## Why would I want to use hybrid search? @@ -62,7 +62,7 @@ The table contains 4 columns: - `id` is an auto-generated unique ID for the record. We'll use this later to match records when performing RRF. - `content` contains the actual text we will be searching over. - `fts` is an auto-generated `tsvector` column that is generated using the text in `content`. We will use this for [full text search](/docs/guides/database/full-text-search) (search by keyword). -- `embedding` is a [vector column](/docs/guides/ai/vector-columns) that stores the vector generated from our embedding model. We will use this for [semantic search](/docs/guides/ai/concepts#what-are-embeddings) (search by meaning). We chose 512 dimensions for this example, but adjust this to match the size of the embedding vectors generated from your preferred model. +- `embedding` is a [vector column](/docs/guides/ai/vector-columns) that stores the vector generated from our embedding model. We will use this for [semantic search](/docs/guides/ai/semantic-search) (search by meaning). We chose 512 dimensions for this example, but adjust this to match the size of the embedding vectors generated from your preferred model. Next we'll create indexes on the `fts` and `embedding` columns so that their individual queries will remain fast at scale: @@ -95,25 +95,23 @@ as $$ with full_text as ( select id, - row_number() over() as rank_ix + -- Note: ts_rank_cd is not indexable but will only rank matches of the where clause + -- which shouldn't be too big + row_number() over(order by ts_rank_cd(fts, websearch_to_tsquery(query_text)) desc) as rank_ix from documents where fts @@ websearch_to_tsquery(query_text) - order by - -- Note: this is not indexable but will only rank matches of the where clause - -- which shouldn't be too big - ts_rank_cd(fts, websearch_to_tsquery(query_text)) desc + order by rank_ix limit least(match_count, 30) * 2 ), semantic as ( select id, - row_number() over () as rank_ix + row_number() over (order by doc_vector <#> query_embedding) as rank_ix from documents - order by - doc_vector <#> query_embedding + order by rank_ix limit least(match_count, 30) * 2 ) select @@ -227,4 +225,5 @@ For more information on how to create, test, and deploy edge functions, see [Get - [Embedding concepts](/docs/guides/ai/concepts) - [Vector columns](/docs/guides/ai/vector-columns) - [Vector indexes](/docs/guides/ai/vector-indexes) +- [Semantic search](/docs/guides/ai/semantic-search) - [Full text (keyword) search](/docs/guides/database/full-text-search) diff --git a/apps/docs/content/guides/ai/integrations/amazon-bedrock.mdx b/apps/docs/content/guides/ai/integrations/amazon-bedrock.mdx new file mode 100644 index 00000000000..d18f9a6bc83 --- /dev/null +++ b/apps/docs/content/guides/ai/integrations/amazon-bedrock.mdx @@ -0,0 +1,139 @@ +--- +id: 'ai-amazon-bedrock' +title: 'Amazon Bedrock' +description: 'Learn how to integrate Supabase with Amazon Bedrock, a fully managed service of high-performing foundation models.' +sidebar_label: 'Amazon Bedrock' +tocVideo: 'A3uND5sgiO0' +--- + +[Amazon Bedrock](https://aws.amazon.com/bedrock) is a fully managed service that offers a choice of high-performing foundation models (FMs) from leading AI companies like AI21 Labs, Anthropic, Cohere, Meta, Mistral AI, Stability AI, and Amazon. Each model is accessible through a common API which implements a broad set of features to help build generative AI applications with security, privacy, and responsible AI in mind. + +This guide will walk you through an example using Amazon Bedrock SDK with `vecs`. We will create embeddings using the Amazon Titan Embeddings G1 – Text v1.2 (amazon.titan-embed-text-v1) model, insert these embeddings into a PostgreSQL database using vecs, and then query the collection to find the most similar sentences to a given query sentence. + +## Create an Environment + +First, you need to set up your environment. You will need Python 3.7+ with the `vecs` and `boto3` libraries installed. + +You can install the necessary Python libraries using pip: + +```sh +pip install vecs boto3 +``` + +You'll also need: + +- [Credentials to your AWS account](https://boto3.amazonaws.com/v1/documentation/api/latest/guide/credentials.html) +- [A Postgres Database with the pgvector extension](hosting.md) + +## Create Embeddings + +Next, we will use Amazon’s Titan Embedding G1 - Text v1.2 model to create embeddings for a set of sentences. + +```python +import boto3 +import vecs +import json + +client = boto3.client( + 'bedrock-runtime', + region_name='us-east-1', + # Credentials from your AWS account + aws_access_key_id='', + aws_secret_access_key='', + aws_session_token='', +) + +dataset = [ + "The cat sat on the mat.", + "The quick brown fox jumps over the lazy dog.", + "Friends, Romans, countrymen, lend me your ears", + "To be or not to be, that is the question.", +] + +embeddings = [] + +for sentence in dataset: + # invoke the embeddings model for each sentence + response = client.invoke_model( + body= json.dumps({"inputText": sentence}), + modelId= "amazon.titan-embed-text-v1", + accept = "application/json", + contentType = "application/json" + ) + # collect the embedding from the response + response_body = json.loads(response["body"].read()) + # add the embedding to the embedding list + embeddings.append((sentence, response_body.get("embedding"), {})) + +``` + +### Store the Embeddings with vecs + +Now that we have our embeddings, we can insert them into a PostgreSQL database using vecs. + +```python +import vecs + +DB_CONNECTION = "postgresql://:@:/" + +# create vector store client +vx = vecs.Client(DB_CONNECTION) + +# create a collection named 'sentences' with 1536 dimensional vectors +# to match the default dimension of the Titan Embeddings G1 - Text model +sentences = vx.get_or_create_collection(name="sentences", dimension=1536) + +# upsert the embeddings into the 'sentences' collection +sentences.upsert(records=embeddings) + +# create an index for the 'sentences' collection +sentences.create_index() +``` + +### Querying for Most Similar Sentences + +Now, we query the `sentences` collection to find the most similar sentences to a sample query sentence. First need to create an embedding for the query sentence. Next, we query the collection we created earlier to find the most similar sentences. + +```python +query_sentence = "A quick animal jumps over a lazy one." + +# create vector store client +vx = vecs.Client(DB_CONNECTION) + +# create an embedding for the query sentence +response = client.invoke_model( + body= json.dumps({"inputText": query_sentence}), + modelId= "amazon.titan-embed-text-v1", + accept = "application/json", + contentType = "application/json" + ) + +response_body = json.loads(response["body"].read()) + +query_embedding = response_body.get("embedding") + +# query the 'sentences' collection for the most similar sentences +results = sentences.query( + data=query_embedding, + limit=3, + include_value = True +) + +# print the results +for result in results: + print(result) +``` + +This returns the most similar 3 records and their distance to the query vector. + +``` +('The quick brown fox jumps over the lazy dog.', 0.27600620558852) +('The cat sat on the mat.', 0.609986272479202) +('To be or not to be, that is the question.', 0.744849503688346) +``` + +## Resources + +- [Amazon Bedrock](https://aws.amazon.com/bedrock) +- [Amazon Titan](https://aws.amazon.com/bedrock/titan) +- [Semantic Image Search with Amazon Titan](/docs/guides/ai/examples/semantic-image-search-amazon-titan) diff --git a/apps/docs/content/guides/ai/keyword-search.mdx b/apps/docs/content/guides/ai/keyword-search.mdx new file mode 100644 index 00000000000..9a97488a5cd --- /dev/null +++ b/apps/docs/content/guides/ai/keyword-search.mdx @@ -0,0 +1,28 @@ +--- +id: 'ai-keyword-search' +title: 'Keyword search' +description: 'Learn how to search by words or phrases.' +subtitle: 'Learn how to search by words or phrases.' +sidebar_label: 'Keyword search' +--- + +Keyword search involves locating documents or records that contain specific words or phrases, primarily based on the exact match between the search terms and the text within the data. It differs from [semantic search](/docs/guides/ai/semantic-search), which interprets the meaning behind the query to provide results that are contextually related, even if the exact words aren't present in the text. Semantic search considers synonyms, intent, and natural language nuances to provide a more nuanced approach to information retrieval. + +In Postgres, keyword search is implemented using [full-text search](/docs/guides/database/full-text-search). It supports indexing and text analysis for data retrieval, focusing on records that match the search criteria. Postgres' full-text search extends beyond simple keyword matching to address linguistic nuances, making it effective for applications that require precise text queries. + +## Why would I want to use keyword search? + +Keyword search is particularly useful in scenarios where precision and specificity matter. It's more effective than semantic search when users are looking for information using exact terminology or specific identifiers. It ensures that results directly contain those terms, reducing the chance of retrieving irrelevant information that might be semantically related but not what the user seeks. + +For example in technical or academic research databases, researchers often search for specific studies, compounds, or concepts identified by certain terms or codes. Searching for a specific chemical compound using its exact molecular formula or a unique identifier will yield more focused and relevant results compared to a semantic search, which could return a wide range of documents discussing the compound in different contexts. Keyword search ensures documents that explicitly mention the exact term are found, allowing users to access the precise data they need efficiently. + +It's also possible to combine keyword search with semantic search to get the best of both worlds. See [Hybrid search](/docs/guides/ai/hybrid-search) for more details. + +## Using full-text search + +For an in-depth guide to Postgres' full-text search, including how to store, index, and query records, see [Full text search](/docs/guides/database/full-text-search). + +## See also + +- [Semantic search](/docs/guides/ai/semantic-search) +- [Hybrid search](/docs/guides/ai/hybrid-search) diff --git a/apps/docs/content/guides/ai/quickstarts/generate-text-embeddings.mdx b/apps/docs/content/guides/ai/quickstarts/generate-text-embeddings.mdx index 840fd114122..816b5ccaf2e 100644 --- a/apps/docs/content/guides/ai/quickstarts/generate-text-embeddings.mdx +++ b/apps/docs/content/guides/ai/quickstarts/generate-text-embeddings.mdx @@ -1,15 +1,11 @@ --- id: 'ai-generating-embeddings' title: 'Generate Embeddings' -subtitle: 'Generate text embeddings using Edge Functions + Transformer.js.' +subtitle: 'Generate text embeddings using Edge Functions.' breadcrumb: 'AI Quickstarts' --- -This guide will walk you through how to generate high quality text embeddings in [Edge Functions](/docs/guides/functions) using Transformers.js. Inference is performed directly in Edge Functions using open source Hugging Face models, so no external API is required. - -## What is Transformers.js? - -[Transformers.js](https://huggingface.co/docs/transformers.js/index) is a library that allows you to perform inference using the JavaScript runtime. You can run Hugging Face embedding models through Transformers.js directly in Supabase [Edge Functions](/docs/guides/functions). +This guide will walk you through how to generate high quality text embeddings in [Edge Functions](/docs/guides/functions) using its built-in AI inference API, so no external API is required. ## Build the Edge Function @@ -60,89 +56,45 @@ Let's build an Edge Function that will accept an input string and generate an em - + - Let's modify the Edge Function to import the Transformers.js client and configure it for the Deno runtime. + Let's create a new inference session to be used in the lifetime of this function. Multiple requests can use the same inference session. - ```ts ./supabase/functions/embed/index.ts - import { serve } from 'https://deno.land/std@0.168.0/http/server.ts' - import { env, pipeline } from 'https://cdn.jsdelivr.net/npm/@xenova/transformers@2.5.0' - - // Configuration for Deno runtime - env.useBrowserCache = false; - env.allowLocalModels = false; - ``` + Currently, only the `gte-small` (https://huggingface.co/Supabase/gte-small) text embedding model is supported in Supabase's Edge Runtime. + + ```ts ./supabase/functions/embed/index.ts + const session = new Supabase.ai.Session('gte-small'); + ``` + + - - - Next let's construct the `pipe()` function we'll use to generate the embeddings. We use the Transformer.js `pipeline()` function to create this. - - - - - - ```ts ./supabase/functions/embed/index.ts - const pipe = await pipeline( - 'feature-extraction', - 'Supabase/gte-small', - ); - ``` - - - - - - Note the two arguments we pass to `pipeline()`: - - 1. The first argument specifies the type of [inference task](https://huggingface.co/docs/transformers.js/index#tasks) to perform. `feature-extraction` is used for embedding generation. - 2. The second argument specifies which Hugging Face model to use for the embedding generation. Supabase officially supports models available on the [Supabase org](https://huggingface.co/Supabase). - - - - We intentially construct the pipeline before the `serve()` function. This allows us to reuse the pre-loaded model in future warm-start requests, significantly speeding up future queries. Note that you'll only notice this speedup after deploying your function to Supabase - requests in local development will always be a cold-start. - - - - - - - - - - Modify our `serve()` request handler to accept an `input` string from the POST request JSON body. + Modify our request handler to accept an `input` string from the POST request JSON body. - Finally let's generate the embedding by: - - 1. Calling `pipe()` to perform the embedding generation - 2. Extracting the embedding from the output as a number array - 3. Returning it as a JSON response + Then generate the embedding by calling `session.run(input)`. ```ts ./supabase/functions/embed/index.ts - serve(async (req) => { + Deno.serve(async (req) => { // Extract input string from JSON body const { input } = await req.json(); // Generate the embedding from the user input - const output = await pipe(input, { - pooling: 'mean', + const embedding = await session.run(input, { + mean_pool: true, normalize: true, }); - // Extract the embedding output - const embedding = Array.from(output.data); - // Return the embedding return new Response( JSON.stringify({ embedding }), @@ -155,16 +107,16 @@ Let's build an Edge Function that will accept an input string and generate an em - Note the two options we pass to `pipe()`: + Note the two options we pass to `session.run()`: - - `pooling`: The first option sets `pooling` to `mean`. Pooling referes to how token-level embedding representations are compressed into a single sentence embedding that reflects the meaning of the entire sentence. Average pooling is the most common type of pooling for sentence embeddings and is the method supported by Transformers.js. - - `normalize`: The second option tells Transformers.js to normalize the embedding vector so that it can be used with distance measures like dot product. A normalized vector means its length (magnitude) is 1 - also referred to as a unit vector. A vector is normalized by dividing each element by the vector's length (magnitude), which maintains its direction but changes its length to 1. + - `mean_pool`: The first option sets `pooling` to `mean`. Pooling referes to how token-level embedding representations are compressed into a single sentence embedding that reflects the meaning of the entire sentence. Average pooling is the most common type of pooling for sentence embeddings. + - `normalize`: The second option tells to normalize the embedding vector so that it can be used with distance measures like dot product. A normalized vector means its length (magnitude) is 1 - also referred to as a unit vector. A vector is normalized by dividing each element by the vector's length (magnitude), which maintains its direction but changes its length to 1. - + diff --git a/apps/docs/content/guides/ai/rag-with-permissions.mdx b/apps/docs/content/guides/ai/rag-with-permissions.mdx index 6b10cf85a4f..3a3256527e0 100644 --- a/apps/docs/content/guides/ai/rag-with-permissions.mdx +++ b/apps/docs/content/guides/ai/rag-with-permissions.mdx @@ -45,7 +45,7 @@ on document_sections for select to authenticated using ( document_id in ( select id from documents - where owner_id = auth.uid() + where (owner_id = (select auth.uid())) ) ); ``` @@ -100,7 +100,7 @@ on document_sections for select to authenticated using ( document_id in ( select document_id from document_owners - where owner_id = auth.uid() + where (owner_id = (select auth.uid())) ) ); ``` @@ -248,7 +248,7 @@ on document_sections for select to authenticated using ( document_id in ( select id from documents - where owner_id = auth.uid() + where (owner_id = (select auth.uid())) ) ); ``` diff --git a/apps/docs/content/guides/ai/semantic-search.mdx b/apps/docs/content/guides/ai/semantic-search.mdx new file mode 100644 index 00000000000..44744441840 --- /dev/null +++ b/apps/docs/content/guides/ai/semantic-search.mdx @@ -0,0 +1,163 @@ +--- +id: 'ai-semantic-search' +title: 'Semantic search' +description: 'Learn how to search by meaning rather than exact keywords.' +subtitle: 'Learn how to search by meaning rather than exact keywords.' +sidebar_label: 'Semantic search' +--- + +Semantic search interprets the meaning behind user queries rather than exact [keywords](/docs/guides/ai/keyword-search). It uses machine learning to capture the intent and context behind the query, handling language nuances like synonyms, phrasing variations, and word relationships. + +## When to use semantic search + +Semantic search is useful in applications where the depth of understanding and context is important for delivering relevant results. A good example is in customer support or knowledge base search engines. Users often phrase their problems or questions in various ways, and a traditional keyword-based search might not always retrieve the most helpful documents. With semantic search, the system can understand the meaning behind the queries and match them with relevant solutions or articles, even if the exact wording differs. + +For instance, a user searching for "increase text size on display" might miss articles titled "How to adjust font size in settings" in a keyword-based search system. However, a semantic search engine would understand the intent behind the query and correctly match it to relevant articles, regardless of the specific terminology used. + +It's also possible to combine semantic search with keyword search to get the best of both worlds. See [Hybrid search](/docs/guides/ai/hybrid-search) for more details. + +## How semantic search works + +Semantic search uses an intermediate representation called an “embedding vector” to link database records with search queries. A vector, in the context of semantic search, is a list of numerical values. They represent various features of the text and allow for the semantic comparison between different pieces of text. + +The best way to think of embeddings is by plotting them on a graph, where each embedding is a single point whose coordinates are the numerical values within its vector. Importantly, embeddings are plotted such that similar concepts are positioned close together while dissimilar concepts are far apart. For more details, see [What are embeddings?](/docs/guides/ai/concepts#what-are-embeddings) + +Embeddings are generated using a language model, and embeddings are compared to each other using a similarity metric. The language model is trained to understand the semantics of language, including syntax, context, and the relationships between words. It generates embeddings for both the content in the database and the search queries. Then the similarity metric, often a function like cosine similarity or dot product, is used to compare the query embeddings with the document embeddings (in other words, to measure how close they are to each other on the graph). The documents with embeddings most similar to the query's are deemed the most relevant and are returned as search results. + +## Embedding models + +There are many embedding models available today. Supabase Edge Functions has [built in support](/docs/guides/functions/examples/semantic-search) for the `gte-small` model. Others can be accessed through third-party APIs like [OpenAI](https://platform.openai.com/docs/guides/embeddings), where you send your text in the request and receive an embedding vector in the response. Others can run locally on your own compute, such as through Transformers.js for JavaScript implementations. For more information on local implementation, see [Generate embeddings](/docs/guides/ai/quickstarts/generate-text-embeddings). + +It's crucial to remember that when using embedding models with semantic search, you must use the same model for all embedding comparisons. Comparing embeddings created by different models will yield meaningless results. + +## Semantic search in Postgres + +To implement semantic search in Postgres we use `pgvector` - an extension that allows for efficient storage and retrieval of high-dimensional vectors. These vectors are numerical representations of text (or other types of data) generated by embedding models. + +1. Enable the `pgvector` extension by running: + + ```sql + create extension vector + with + schema extensions; + ``` + +1. Create a table to store the embeddings: + + ```sql + create table documents ( + id bigint primary key generated always as identity, + content text, + embedding vector(512) + ); + ``` + + Or if you have an existing table, you can add a vector column like so: + + ```sql + alter table documents + add column embedding vector(512); + ``` + + In this example, we create a column named `embedding` which uses the newly enabled `vector` data type. The size of the vector (as indicated in parentheses) represents the number of dimensions in the embedding. Here we use 512, but adjust this to match the number of dimensions produced by your embedding model. + +For more details on vector columns, including how to generate embeddings and store them, see [Vector columns](/docs/guides/ai/vector-columns). + +### Similarity metric + +`pgvector` support 3 operators for computing distance between embeddings: + +| **Operator** | **Description** | +| ------------ | ---------------------- | +| `<->` | Euclidean distance | +| `<#>` | negative inner product | +| `<=>` | cosine distance | + +These operators are used directly in your SQL query to retrieve records that are most similar to the user's search query. Choosing the right operator depends on your needs. Inner product (also known as dot product) tends to be the fastest if your vectors are normalized. + +The easiest way to perform semantic search in Postgres in by creating a function: + +```sql +-- Match documents using cosine distance (<=>) +create or replace function match_documents ( + query_embedding vector(512), + match_threshold float, + match_count int +) +returns setof documents +language sql +as $$ + select * + from documents + where documents.embedding <=> query_embedding < 1 - match_threshold + order by documents.embedding <=> query_embedding asc + limit least(match_count, 200); +$$; +``` + +Here we create a function `match_documents` that accepts three parameters: + +1. `query_embedding`: a one-time embedding generated for the user's search query. Here we set the size to 512, but adjust this to match the number of dimensions produced by your embedding model. +1. `match_threshold`: the minimum similarity between embeddings. This is a value between 1 and -1, where 1 is most similar and -1 is most dissimilar. +1. `match_count`: the maximum number of results to return. Note the query may return less than this number if `match_threshold` resulted in a small shortlist. Limited to 200 records to avoid unintentionally overloading your database. + +In this example, we return a `setof documents` and refer to `documents` throughout the query. Adjust this to use the relevant tables in your application. + +You'll notice we are using the cosine distance (`<=>`) operator in our query. Cosine distance is a safe default when you don't know whether or not your embeddings are normalized. If you know for a fact that they are normalized (for example, your embedding is returned from OpenAI), you can use negative inner product (`<#>`) for better performance: + +```sql +-- Match documents using negative inner product (<#>) +create or replace function match_documents ( + query_embedding vector(512), + match_threshold float, + match_count int +) +returns setof documents +language sql +as $$ + select * + from documents + where documents.embedding <#> query_embedding < -match_threshold + order by documents.embedding <#> query_embedding asc + limit least(match_count, 200); +$$; +``` + +Note that since `<#>` is negative, we negate `match_threshold` accordingly in the `where` clause. For more information on the different operators, see the [pgvector docs](https://github.com/pgvector/pgvector?tab=readme-ov-file#vector-operators). + +### Calling from your application + +Finally you can execute this function from your application. If you are using a Supabase client library such as [`supabase-js`](https://github.com/supabase/supabase-js), you can invoke it using the `rpc()` method: + +```tsx +const { data: documents } = await supabase.rpc('match_documents', { + query_embedding: embedding, // pass the query embedding + match_threshold: 0.78, // choose an appropriate threshold for your data + match_count: 10, // choose the number of matches +}) +``` + +You can also call this method directly from SQL: + +```sql +select * +from match_documents( + '[...]'::vector(512), -- pass the query embedding + 0.78, -- chose an appropriate threshold for your data + 10 -- choose the number of matches +); +``` + +In this scenario, you'll likely use a Postgres client library to establish a direct connection from your application to the database. It's best practice to parameterize your arguments before executing the query. + +## Next steps + +As your database scales, you will need an index on your vector columns to maintain fast query speeds. See [Vector indexes](/docs/guides/ai/vector-indexes) for an in-depth guide on the different types of indexes and how they work. + +## See also + +- [Embedding concepts](/docs/guides/ai/concepts) +- [Vector columns](/docs/guides/ai/vector-columns) +- [Vector indexes](/docs/guides/ai/vector-indexes) +- [Hybrid search](/docs/guides/ai/hybrid-search) +- [Keyword search](/docs/guides/ai/keyword-search) diff --git a/apps/docs/content/guides/ai/vector-columns.mdx b/apps/docs/content/guides/ai/vector-columns.mdx index 870f303fc44..5a1cc7ef803 100644 --- a/apps/docs/content/guides/ai/vector-columns.mdx +++ b/apps/docs/content/guides/ai/vector-columns.mdx @@ -109,7 +109,7 @@ Similarity search is the most common use case for vectors. `pgvector` support 3 Choosing the right operator depends on your needs. Dot product tends to be the fastest if your vectors are normalized. For more information on how embeddings work and how they relate to each other, see [What are Embeddings?](/docs/guides/ai/concepts#what-are-embeddings). -Supabase client libraries like `supabase-js` connect to your Postgres instance via [PostgREST](docs/guides/getting-started/architecture#postgrest-api). PostgREST does not currently support `pgvector` similarity operators, so we'll need to wrap our query in a Postgres function and call it via the `rpc()` method: +Supabase client libraries like `supabase-js` connect to your Postgres instance via [PostgREST](/docs/guides/getting-started/architecture#postgrest-api). PostgREST does not currently support `pgvector` similarity operators, so we'll need to wrap our query in a Postgres function and call it via the `rpc()` method: ```sql create or replace function match_documents ( diff --git a/apps/docs/content/guides/api/quickstart.mdx b/apps/docs/content/guides/api/quickstart.mdx index fbd141e9309..7ba5b9b8809 100644 --- a/apps/docs/content/guides/api/quickstart.mdx +++ b/apps/docs/content/guides/api/quickstart.mdx @@ -169,5 +169,12 @@ final data = await supabase.from('todos').select('*'); response = supabase.table('todos').select("*").execute() ``` + + + +```swift +let response = try await supabase.from("todos").select() +``` + diff --git a/apps/docs/content/guides/api/rest/client-libs.mdx b/apps/docs/content/guides/api/rest/client-libs.mdx index f14d2f49bbd..15f03b0d442 100644 --- a/apps/docs/content/guides/api/rest/client-libs.mdx +++ b/apps/docs/content/guides/api/rest/client-libs.mdx @@ -13,6 +13,7 @@ Supabase provides client libraries for the REST and Realtime APIs. Some librarie | --------------------- | ---------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------- | | Javascript/Typescript | [supabase-js](https://github.com/supabase/supabase-js) | [Docs](https://supabase.com/docs/reference/javascript/introduction) | | Dart/Flutter | [supabase-flutter](https://github.com/supabase/supabase-flutter/tree/main/packages/supabase_flutter) | [Docs](https://supabase.com/docs/reference/dart/introduction) | +| Swift | [supabase-swift](https://github.com/supabase/supabase-swift) | [Docs](https://supabase.com/docs/reference/swift/introduction) | ## Community libraries @@ -23,5 +24,4 @@ Supabase provides client libraries for the REST and Realtime APIs. Some librarie | Kotlin | [supabase-kt](https://github.com/supabase-community/supabase-kt) | [Docs](https://supabase.com/docs/reference/kotlin/introduction) | | Python | [supabase-py](https://github.com/supabase-community/supabase-py) | [Docs](https://supabase.com/docs/reference/python/initializing) | | Ruby | [supabase-rb](https://github.com/supabase-community/supabase-rb) | | -| Swift | [supabase-swift](https://github.com/supabase-community/supabase-swift) | [Docs](https://supabase.com/docs/reference/swift/introduction) | | Godot Engine (GDScript) | [supabase-gdscript](https://github.com/supabase-community/godot-engine.supabase) | | diff --git a/apps/docs/content/guides/api/rest/generating-types.mdx b/apps/docs/content/guides/api/rest/generating-types.mdx index 624749a1d17..45d9c77ce18 100644 --- a/apps/docs/content/guides/api/rest/generating-types.mdx +++ b/apps/docs/content/guides/api/rest/generating-types.mdx @@ -125,6 +125,12 @@ export type Database = MergeDeep< > ``` + + +To use `MergeDeep`, set `compilerOptions.strictNullChecks` to `true` in your `tsconfig.json`. + + + You can also override the type of an individual successful response if needed: ```ts diff --git a/apps/docs/content/guides/auth.mdx b/apps/docs/content/guides/auth.mdx index 1b0017c0165..4a7d4b03799 100644 --- a/apps/docs/content/guides/auth.mdx +++ b/apps/docs/content/guides/auth.mdx @@ -29,10 +29,11 @@ Here's a quick, 2 minute tour of the Auth features built-in to Supabase: You can authenticate your users in several ways: -- Password-based methods such as email or phone and password +- Password-based methods such as [email](/docs/guides/auth/auth-email) or [phone](/docs/guides/auth/phone-login) and password - Passwordless methods such as sending a magiclink or one-time password (OTP) - OAuth social providers - SAML SSO +- [Anonymous Sign-ins](/docs/guides/auth/auth-anonymous) ### Providers @@ -109,7 +110,7 @@ const { data, error } = await supabase // => { id: 'd0714948', name: 'Jane' } ``` -... you can simply define a rule on your database table, `auth.uid() = user_id`, and your request will return the rows which pass the rule, even when you remove the filter from your middleware: +... you can simply define a rule on your database table, `(select auth.uid()) = user_id`, and your request will return the rows which pass the rule, even when you remove the filter from your middleware: ```js const { data, error } = await supabase.from('users').select('user_id, name') diff --git a/apps/docs/content/guides/auth/auth-anonymous.mdx b/apps/docs/content/guides/auth/auth-anonymous.mdx new file mode 100644 index 00000000000..4a3b4aa0ad9 --- /dev/null +++ b/apps/docs/content/guides/auth/auth-anonymous.mdx @@ -0,0 +1,243 @@ +--- +id: 'auth-anonymous' +title: 'Anonymous Sign-Ins' +subtitle: 'Create and use anonymous users to authenticate with Supabase' +--- + +[Enable Anonymous Sign-Ins](/dashboard/project/_/settings/auth) to build apps which provide users an authenticated experience without requiring users to enter an email address, password, use an OAuth provider or provide any other PII (Personally Identifiable Information). Later, when ready, the user can link an authentication method to their account. + + + +Calling `signInAnonymously()` creates an anonymous user. It's just like a permanent user, except the user can't access their account if they sign out, clear browsing data, or use another device. + +Like permanent users, the `authenticated` Postgres role will be used when using the Data APIs to access your project. JWTs for these users will have an `is_anonymous` claim which you can use to distinguish in RLS policies. + +This is different from the `anon` API key which does not create a user and can be used to implement public access to your database as it uses the `anonymous` Postgres role. + + + +Anonymous sign-ins can be used to build: + +- E-commerce applications, such as shopping carts before check-out +- Full-feature demos without collecting personal information +- Temporary or throw-away accounts + + + +Review your existing RLS policies before enabling anonymous sign-ins. Anonymous users use the `authenticated` role. To distinguish between anonymous users and permanent users, your policies need to check the `is_anonymous` field of the user's JWT. + +See the [Access control section](#access-control) for more details. + + + + + +For self-hosting, you can update your project configuration using the files and environment variables provided. See the [local development docs](/docs/guides/cli/config) for more details. + + + +## Sign in anonymously + + + + +Call the [`signInAnonymously()`](/docs/reference/javascript/auth-signinanonymously) method: + +```js +const { data, error } = await supabase.auth.signInAnonymously() +``` + + + + +Call the [`signInAnonymously()`](/docs/reference/dart/auth-signinanonymously) method: + +```dart +await supabase.auth.signInAnonymously(); +``` + + + + +Call the [`signInAnonymously()`](/docs/reference/swift/auth-signinanonymously) method: + +```swift +let session = try await supabase.auth.signInAnonymously() +``` + + + + +Call the [`signInAnonymously()`](/docs/reference/kotlin/auth-signinanonymously) method: + +```kotlin +supabase.auth.signInAnonymously() +``` + + + + +## Convert an anonymous user to a permanent user + +Converting an anonymous user to a permanent user requires [linking an identity](/docs/guides/auth/auth-identity-linking#manual-linking-beta) to the user. This requires you to [enable manual linking](/dashboard/project/_/settings/auth) in your Supabase project. + +### Link an Email / Phone identity + + + + +You can use the [`updateUser()`](/docs/reference/javascript/auth-updateuser) method to link an email or phone identity to the anonymous user. To add a password for the anonymous user, the user's email or phone number needs to be verified first. + +```js +const { data, error } = await supabase.auth.updateUser({ email: 'example@email.com' }) + +// verify the user's email by clicking on the email change link +// or entering the 6-digit OTP sent to the email address + +// once the user has been verified, update the password +const { data, error } = await supabase.auth.updateUser({ password: 'password' }) +``` + + + + +You can use the [`updateUser()`](/docs/reference/dart/auth-updateuser) method to link an email or phone identity to the anonymous user. + +```dart +await supabase.auth.updateUser(UserAttributes(email: 'example@email.com')); +``` + + + + +You can use the [`updateUser()`](/docs/reference/swift/auth-updateuser) method to link an email or phone identity to the anonymous user. + +```swift +try await supabase.auth.updateUser( + user: UserAttributes(email: "example@email.com") +) +``` + + + + +You can use the [`updateUser()`](/docs/reference/kotlin/auth-updateuser) method to link an email or phone identity to the anonymous user. + +```kotlin +supabase.auth.updateUser { + email = "example@email.com" +} +``` + + + + +### Link an OAuth identity + + + + +You can use the [`linkIdentity()`](/docs/reference/javascript/auth-linkidentity) method to link an oauth identity to the anonymous user. + +```js +const { data, error } = await supabase.auth.linkIdentity({ provider: 'google' }) +``` + + + + +You can use the [`linkIdentity()`](/docs/reference/dart/auth-linkidentity) method to link an OAuth identity to the anonymous user. + +```dart +await supabase.auth.linkIdentity(OAuthProvider.google); +``` + + + + +You can use the [`linkIdentity()`](/docs/reference/swift/auth-linkidentity) method to link an OAuth identity to the anonymous user. + +```swift +try await supabase.auth.linkIdentity(provider: .google) +``` + + + + +You can use the [`linkIdentity()`](/docs/reference/kotlin/auth-linkidentity) method to link an oauth identity to the anonymous user. + +```kotlin +supabase.auth.linkIdentity(Google) +``` + + + + +## Access control + +An anonymous user assumes the `authenticated` role just like a permanent user. You can use row-level security (RLS) policies to differentiate between an anonymous user and a permanent user by checking for the `is_anonymous` claim in the JWT returned by `auth.jwt()`: + +```sql +create policy "Only permanent users can post to the news feed" +on news_feed as restrictive for insert +to authenticated +with check ((select (auth.jwt()->>'is_anonymous')::boolean) is false ); + +create policy "Anonymous and permanent users can view the news feed" +on news_feed for select +to authenticated +using ( true ); +``` + + + +RLS policies are permissive by default, which means that they are combined using an "OR" operator when multiple policies are applied. It is important to construct restrictive policies to ensure that the checks for an anonymous user are always enforced when combined with other policies. + + + +## Resolving identity conflicts + +Depending on your application requirements, data conflicts can arise when an anonymous user is converted to a permanent user. For example, in the context of an e-commerce application, an anonymous user would be allowed to add items to the shopping cart without signing up / signing in. When they decide to sign-in to an existing account, you will need to decide how you want to resolve data conflicts in the shopping cart: + +1. Overwrite the items in the cart with those in the existing account +2. Overwrite the items in the cart with those from the anonymous user +3. Merge the items in the cart together + +## Abuse prevention and rate limits + +Since anonymous users are stored in your database, bad actors can abuse the endpoint to increase your database size drastically. It is strongly recommended to [enable invisible Captcha or Cloudflare Turnstile](/docs/guides/auth/auth-captcha) to prevent abuse for anonymous sign-ins. An IP-based rate limit is enforced at 30 requests per hour which can be modified in your [dashboard](/dashboard/project/_/auth/rate-limits). You can refer to the full list of rate limits [here](/docs/guides/platform/going-into-prod#rate-limiting-resource-allocation--abuse-prevention). + +## Automatic cleanup + +Automatic cleanup of anonymous users is currently not available. Instead, you can delete anonymous users from your project by running the following SQL: + +```sql +-- deletes anonymous users created more than 30 days ago +delete from auth.users +where is_anonymous is true and created_at < now() - interval '30 days'; +``` + +## Resources + +- [Supabase - Get started for free](https://supabase.com) +- [Supabase JS Client](https://github.com/supabase/supabase-js) +- [Supabase Flutter Client](https://github.com/supabase/supabase-flutter) +- [Supabase Kotlin Client](https://github.com/supabase-community/supabase-kt) diff --git a/apps/docs/content/guides/auth/auth-deep-dive/auth-policies.mdx b/apps/docs/content/guides/auth/auth-deep-dive/auth-policies.mdx index 34974edb00d..7423d7f14af 100644 --- a/apps/docs/content/guides/auth/auth-deep-dive/auth-policies.mdx +++ b/apps/docs/content/guides/auth/auth-deep-dive/auth-policies.mdx @@ -122,7 +122,7 @@ Now we'll write our policy, again in SQL, but note it's also possible to add via ```sql CREATE POLICY user_update_own_scores ON my_scores FOR ALL - USING (auth.uid() = user_id); + USING ((select auth.uid()) = user_id); ``` Now, assuming you have an active session in your javascript/supabase-js environment you can do: @@ -149,7 +149,7 @@ Once you get the hang of policies you can start to get a little bit fancy. Let's create policy "Only Blizzard staff can update leaderboard" on my_scores for update using ( - right(auth.jwt() ->> 'email', 13) = '@blizzard.com' + right((select auth.jwt() ->> 'email'), 13) = '@blizzard.com' ); ``` diff --git a/apps/docs/content/guides/auth/auth-email.mdx b/apps/docs/content/guides/auth/auth-email.mdx index 38eb93095c6..6491a642830 100644 --- a/apps/docs/content/guides/auth/auth-email.mdx +++ b/apps/docs/content/guides/auth/auth-email.mdx @@ -57,6 +57,19 @@ Future signUpNewUser() async { } ``` + + + +To sign up the user, call [signUp()](/docs/reference/swift/auth-signup) with their email address and password: + +```swift +let response = try await supabase.auth.signUp( + email: "example@email.com", + password: "example-password", + redirectTo: URL(string: "https://example.com/welcome") +) +``` + @@ -110,6 +123,18 @@ Future signInWithEmail() async { } ``` + + + +When your user signs in, call [signIn(email:password:)](/docs/reference/swift/auth-signinwithpassword) with their email address and password: + +```swift +try await supabase.auth.signIn( + email: "example@email.com", + password: "example-password" +) +``` + @@ -157,6 +182,15 @@ Future signOut() async { } ``` + + + +When your user signs out, call [signOut()](/docs/reference/swift/auth-signout) to remove the session from the local storage: + +```swift +try await supabase.auth.signOut() +``` + @@ -173,7 +207,7 @@ suspend fun logout() { ## Resources -- [Supabase Account - Free Plan OK](https://supabase.com) +- [Supabase - Get started for free](https://supabase.com) - [Supabase JS Client](https://github.com/supabase/supabase-js) - [Supabase Flutter Client](https://github.com/supabase/supabase-flutter) - [Supabase Kotlin Client](https://github.com/supabase-community/supabase-kt) diff --git a/apps/docs/content/guides/auth/auth-helpers/nextjs-pages.mdx b/apps/docs/content/guides/auth/auth-helpers/nextjs-pages.mdx index abdd657a63c..b24639e091d 100644 --- a/apps/docs/content/guides/auth/auth-helpers/nextjs-pages.mdx +++ b/apps/docs/content/guides/auth/auth-helpers/nextjs-pages.mdx @@ -11,9 +11,27 @@ The `auth-helpers` package has been replaced with the `@supabase/ssr` package. W + + + + This submodule provides convenience helpers for implementing user authentication in Next.js applications using the pages directory. -> Note: As of [Next.js 13.4](https://nextjs.org/blog/next-13-4), the App Router has reached stable status. This is now the recommended path for new Next.js app. Check out our guide on using [Auth Helpers with the Next.js App Directory](/docs/guides/auth/auth-helpers/nextjs). + + +Note: As of [Next.js 13.4](https://nextjs.org/blog/next-13-4), the App Router has reached stable status. This is now the recommended path for new Next.js app. Check out our guide on using [Auth Helpers with the Next.js App Directory](/docs/guides/auth/auth-helpers/nextjs). + + ## Install the Next.js helper library @@ -914,3 +932,7 @@ import { Database } from '../database.types' const supabaseClient = useSupabaseClient() ``` + + + + diff --git a/apps/docs/content/guides/auth/auth-helpers/nextjs.mdx b/apps/docs/content/guides/auth/auth-helpers/nextjs.mdx index 9094f5609a4..1d14e693b24 100644 --- a/apps/docs/content/guides/auth/auth-helpers/nextjs.mdx +++ b/apps/docs/content/guides/auth/auth-helpers/nextjs.mdx @@ -11,6 +11,20 @@ The `auth-helpers` package has been replaced with the `@supabase/ssr` package. W + + + + The [Next.js Auth Helpers package](https://github.com/supabase/auth-helpers) configures Supabase Auth to store the user's `session` in a `cookie`, rather than `localStorage`. This makes it available across the client and server of the App Router - [Client Components](/docs/guides/auth/auth-helpers/nextjs#client-components), [Server Components](/docs/guides/auth/auth-helpers/nextjs#server-components), [Server Actions](/docs/guides/auth/auth-helpers/nextjs#server-actions), [Route Handlers](/docs/guides/auth/auth-helpers/nextjs#route-handlers) and [Middleware](/docs/guides/auth/auth-helpers/nextjs#middleware). The `session` is automatically sent along with any requests to Supabase.
@@ -1312,3 +1326,7 @@ export default function() { ``` For an example of creating multiple Supabase clients, check [Singleton section](/docs/guides/auth/auth-helpers/nextjs#singleton) above. + + + + diff --git a/apps/docs/content/guides/auth/auth-helpers/remix.mdx b/apps/docs/content/guides/auth/auth-helpers/remix.mdx index 4871094a551..dd9d537f960 100644 --- a/apps/docs/content/guides/auth/auth-helpers/remix.mdx +++ b/apps/docs/content/guides/auth/auth-helpers/remix.mdx @@ -11,6 +11,20 @@ We generally recommend using the new `@supabase/ssr` package instead of `auth-he + + + + This submodule provides convenience helpers for implementing user authentication in Remix applications.
@@ -22,7 +36,11 @@ This submodule provides convenience helpers for implementing user authentication >
-> For a complete implementation example, check out [this free egghead course](https://egghead.io/courses/build-a-realtime-chat-app-with-remix-and-supabase-d36e2618) or [this GitHub repo](https://github.com/supabase/auth-helpers/tree/main/examples/remix). + + +For a complete implementation example, check out [this free egghead course](https://egghead.io/courses/build-a-realtime-chat-app-with-remix-and-supabase-d36e2618) or [this GitHub repo](https://github.com/supabase/auth-helpers/tree/main/examples/remix). + + ## Install the Remix helper library @@ -165,7 +183,11 @@ export const loader = async ({ request }) => { } ``` -> Supabase will set cookie headers to manage the user's auth session, therefore, the `response.headers` must be returned from the `Loader` function. + + +Supabase will set cookie headers to manage the user's auth session, therefore, the `response.headers` must be returned from the `Loader` function. + + @@ -195,7 +217,11 @@ export const loader = async ({ request }: LoaderFunctionArgs) => { } ``` -> Supabase will set cookie headers to manage the user's auth session, therefore, the `response.headers` must be returned from the `Loader` function. + + +Supabase will set cookie headers to manage the user's auth session, therefore, the `response.headers` must be returned from the `Loader` function. + + @@ -237,7 +263,11 @@ export const action = async ({ request }) => { } ``` -> Supabase will set cookie headers to manage the user's auth session, therefore, the `response.headers` must be returned from the `Action` function. + + +Supabase will set cookie headers to manage the user's auth session, therefore, the `response.headers` must be returned from the `Action` function. + + @@ -268,7 +298,11 @@ export const action = async ({ request }: ActionFunctionArgs) => { } ``` -> Supabase will set cookie headers to manage the user's auth session, therefore, the `response.headers` must be returned from the `Action` function. + + +Supabase will set cookie headers to manage the user's auth session, therefore, the `response.headers` must be returned from the `Action` function. + + @@ -327,7 +361,11 @@ export const loader = () => { } ``` -> These may not be stored in `process.env` for environments other than Node. + + +These may not be stored in `process.env` for environments other than Node. + + Next, we call the `useLoaderData` hook in our component to get the `env` object. @@ -361,7 +399,11 @@ export const loader = ({}: LoaderFunctionArgs) => { } ``` -> These may not be stored in `process.env` for environments other than Node. + + +These may not be stored in `process.env` for environments other than Node. + + Next, we call the `useLoaderData` hook in our component to get the `env` object. @@ -544,7 +586,11 @@ useEffect(() => { -> Check out [this repo](https://github.com/supabase/auth-helpers/tree/main/examples/remix) for full implementation example + + +Check out [this repo](https://github.com/supabase/auth-helpers/tree/main/examples/remix) for full implementation example + + ### Authentication @@ -757,7 +803,11 @@ export default function Index() { -> Ensure you have [enabled replication](https://supabase.com/dashboard/project/_/database/replication) on the table you are subscribing to. + + +Ensure you have [enabled replication](https://supabase.com/dashboard/project/_/database/publications) on the table you are subscribing to. + + ## Migration guide @@ -782,3 +832,7 @@ supabaseClient.auth.signUp({ }, }) ``` + +
+ +
diff --git a/apps/docs/content/guides/auth/auth-helpers/sveltekit.mdx b/apps/docs/content/guides/auth/auth-helpers/sveltekit.mdx index 37bf88cee01..d3b5bb74edb 100644 --- a/apps/docs/content/guides/auth/auth-helpers/sveltekit.mdx +++ b/apps/docs/content/guides/auth/auth-helpers/sveltekit.mdx @@ -11,6 +11,20 @@ We generally recommend using the new `@supabase/ssr` package instead of `auth-he + + + + This submodule provides convenience helpers for implementing user authentication in [SvelteKit](https://kit.svelte.dev/) applications. ## Configuration @@ -46,8 +60,6 @@ PUBLIC_SUPABASE_ANON_KEY=your-anon-key Create a new `hooks.server.js` file in the root of your project and populate with the following to retrieve the user session. -The session information from `getSession` is supplied to the Supabase client so it can retrieve the auth token. This is safe, since the auth token signature will be revalidated on the Auth server. But you shouldn't trust the unsigned data that is stored alongside the auth token: - ```js src/hooks.server.js @@ -63,15 +75,23 @@ export const handle = async ({ event, resolve }) => { }) /** - * a little helper that is written for convenience so that instead - * of calling `const { data: { session } } = await supabase.auth.getSession()` - * you just call this `await getSession()` + * Unlike `supabase.auth.getSession`, which is unsafe on the server because it + * doesn't validate the JWT, this function validates the JWT by first calling + * `getUser` and aborts early if the JWT signature is invalid. */ - event.locals.getSession = async () => { + event.locals.safeGetSession = async () => { + const { + data: { user }, + error, + } = await supabase.auth.getUser() + if (error) { + return { session: null, user: null } + } + const { data: { session }, } = await event.locals.supabase.auth.getSession() - return session + return { session, user } } return resolve(event, { @@ -102,15 +122,23 @@ export const handle: Handle = async ({ event, resolve }) => { }) /** - * a little helper that is written for convenience so that instead - * of calling `const { data: { session } } = await supabase.auth.getSession()` - * you just call this `await getSession()` + * Unlike `supabase.auth.getSession`, which is unsafe on the server because it + * doesn't validate the JWT, this function validates the JWT by first calling + * `getUser` and aborts early if the JWT signature is invalid. */ - event.locals.getSession = async () => { + event.locals.safeGetSession = async () => { + const { + data: { user }, + error, + } = await supabase.auth.getUser() + if (error) { + return { session: null, user: null } + } + const { data: { session }, } = await event.locals.supabase.auth.getSession() - return session + return { session, user } } return resolve(event, { @@ -189,17 +217,18 @@ In order to get the most out of TypeScript and it's intellisense, you should imp ```ts src/app.d.ts // src/app.d.ts -import { SupabaseClient, Session } from '@supabase/supabase-js' +import { SupabaseClient, Session, User } from '@supabase/supabase-js' import { Database } from './DatabaseDefinitions' declare global { namespace App { interface Locals { supabase: SupabaseClient - getSession(): Promise + safeGetSession(): Promise<{ session: Session | null; user: User | null }> } interface PageData { session: Session | null + user: User | null } // interface Error {} // interface Platform {} @@ -234,9 +263,12 @@ To make the session available across the UI, including pages and layouts, it is ```js src/routes/+layout.server.js // src/routes/+layout.server.js -export const load = async ({ locals: { getSession } }) => { +export const load = async ({ locals: { safeGetSession } }) => { + const { session, user } = await safeGetSession() + return { - session: await getSession(), + session, + user, } } ``` @@ -246,9 +278,12 @@ export const load = async ({ locals: { getSession } }) => { ```ts src/routes/+layout.server.ts // src/routes/+layout.server.ts -export const load = async ({ locals: { getSession } }) => { +export const load = async ({ locals: { safeGetSession } }) => { + const { session, user } = await safeGetSession() + return { - session: await getSession(), + session, + user, } } ``` @@ -284,6 +319,11 @@ export const load = async ({ fetch, data, depends }) => { serverSession: data.session, }) + /** + * It's fine to use `getSession` here, because on the client, `getSession` is + * safe, and on the server, it reads `session` from the `LayoutData`, which + * safely checked the session using `safeGetSession`. + */ const { data: { session }, } = await supabase.auth.getSession() @@ -312,6 +352,11 @@ export const load = async ({ fetch, data, depends }) => { serverSession: data.session, }) + /** + * It's fine to use `getSession` here, because on the client, `getSession` is + * safe, and on the server, it reads `session` from the `LayoutData`, which + * safely checked the session using `safeGetSession`. + */ const { data: { session }, } = await supabase.auth.getSession() @@ -532,8 +577,8 @@ Wrap an API Route to check that the user has a valid session. If they're not log // src/routes/api/protected-route/+server.ts import { json, error } from '@sveltejs/kit' -export const GET = async ({ locals: { supabase, getSession } }) => { - const session = await getSession() +export const GET = async ({ locals: { supabase, safeGetSession } }) => { + const { session } = await safeGetSession() if (!session) { // the user is not signed in throw error(401, { message: 'Unauthorized' }) @@ -555,8 +600,8 @@ Wrap an Action to check that the user has a valid session. If they're not logged import { error, fail } from '@sveltejs/kit' export const actions = { - createPost: async ({ request, locals: { supabase, getSession } }) => { - const session = await getSession() + createPost: async ({ request, locals: { supabase, safeGetSession } }) => { + const { session } = await safeGetSession() if (!session) { // the user is not signed in @@ -615,15 +660,21 @@ async function supabase({ event, resolve }) { }) /** - * a little helper that is written for convenience so that instead - * of calling `const { data: { session } } = await supabase.auth.getSession()` - * you just call this `await getSession()` + * Unlike `supabase.auth.getSession`, which is unsafe on the server because it + * doesn't validate the JWT, this function validates the JWT by first calling + * `getUser` and aborts early if the JWT signature is invalid. */ - event.locals.getSession = async () => { + event.locals.safeGetSession = async () => { + const { + data: { user }, + error, + } = await event.locals.supabase.auth.getUser() + if (error) return { session: null, user: null } + const { data: { session }, } = await event.locals.supabase.auth.getSession() - return session + return { session, user } } return resolve(event, { @@ -636,7 +687,7 @@ async function supabase({ event, resolve }) { async function authorization({ event, resolve }) { // protect requests to all routes that start with /protected-routes if (event.url.pathname.startsWith('/protected-routes') && event.request.method === 'GET') { - const session = await event.locals.getSession() + const { session } = await event.locals.safeGetSession() if (!session) { // the user is not signed in redirect(303, '/') @@ -645,7 +696,7 @@ async function authorization({ event, resolve }) { // protect POST requests to all routes that start with /protected-posts if (event.url.pathname.startsWith('/protected-posts') && event.request.method === 'POST') { - const session = await event.locals.getSession() + const { session } = await event.locals.safeGetSession() if (!session) { // the user is not signed in throw error(303, '/') @@ -677,15 +728,21 @@ async function supabase({ event, resolve }) { }) /** - * a little helper that is written for convenience so that instead - * of calling `const { data: { session } } = await supabase.auth.getSession()` - * you just call this `await getSession()` + * Unlike `supabase.auth.getSession`, which is unsafe on the server because it + * doesn't validate the JWT, this function validates the JWT by first calling + * `getUser` and aborts early if the JWT signature is invalid. */ - event.locals.getSession = async () => { + event.locals.safeGetSession = async () => { + const { + data: { user }, + error, + } = await event.locals.supabase.auth.getUser() + if (error) return { session: null, user: null } + const { data: { session }, } = await event.locals.supabase.auth.getSession() - return session + return { session, user } } return resolve(event, { @@ -698,7 +755,7 @@ async function supabase({ event, resolve }) { async function authorization({ event, resolve }) { // protect requests to all routes that start with /protected-routes if (event.url.pathname.startsWith('/protected-routes') && event.request.method === 'GET') { - const session = await event.locals.getSession() + const { session } = await event.locals.safeGetSession() if (!session) { // the user is not signed in redirect(303, '/') @@ -707,7 +764,7 @@ async function authorization({ event, resolve }) { // protect POST requests to all routes that start with /protected-posts if (event.url.pathname.startsWith('/protected-posts') && event.request.method === 'POST') { - const session = await event.locals.getSession() + const { session } = await event.locals.safeGetSession() if (!session) { // the user is not signed in throw error(303, '/') @@ -896,15 +953,21 @@ export const handle: Handle = async ({ event, resolve }) => { }) /** - * a little helper that is written for convenience so that instead - * of calling `const { data: { session } } = await supabase.auth.getSession()` - * you just call this `await getSession()` + * Unlike `supabase.auth.getSession`, which is unsafe on the server because it + * doesn't validate the JWT, this function validates the JWT by first calling + * `getUser` and aborts early if the JWT signature is invalid. */ - event.locals.getSession = async () => { + event.locals.safeGetSession = async () => { + const { + data: { user }, + error, + } = await event.locals.supabase.auth.getUser() + if (error) return { session: null, user: null } + const { data: { session }, } = await event.locals.supabase.auth.getSession() - return session + return { session, user } } return resolve(event, { @@ -1055,17 +1118,18 @@ declare namespace App { ```ts src/app.d.ts // src/app.d.ts -import { SupabaseClient, Session } from '@supabase/supabase-js' +import { SupabaseClient, Session, User } from '@supabase/supabase-js' import { Database } from './DatabaseDefinitions' declare global { namespace App { interface Locals { supabase: SupabaseClient - getSession(): Promise + safeGetSession(): Promise<{ session: Session | null; user: User | null }> } interface PageData { session: Session | null + user: User | null } // interface Error {} // interface Platform {} @@ -1196,7 +1260,7 @@ import type { RequestHandler } from './$types' import { json, error } from '@sveltejs/kit' export const GET: RequestHandler = async ({ locals: { supabase, getSession } }) => { - const session = await getSession() + const { session } = await getSession() if (!session) { // the user is not signed in throw error(401, { message: 'Unauthorized' }) @@ -1966,3 +2030,7 @@ export const GET: RequestHandler = withAuth(async ({ session, getSupabaseClient - [Auth Helpers Source code](https://github.com/supabase/auth-helpers) - [SvelteKit example](https://github.com/supabase/auth-helpers/tree/main/examples/sveltekit) + + + + diff --git a/apps/docs/content/guides/auth/auth-identity-linking.mdx b/apps/docs/content/guides/auth/auth-identity-linking.mdx index befba001809..112a2005a17 100644 --- a/apps/docs/content/guides/auth/auth-identity-linking.mdx +++ b/apps/docs/content/guides/auth/auth-identity-linking.mdx @@ -54,6 +54,15 @@ Supabase Auth allows a user to initiate identity linking with a different email const { data, error } = await supabase.auth.linkIdentity({ provider: 'google' }) ``` + + + +Supabase Auth allows a user to initiate identity linking with a different email address when they are logged in. To link an OAuth identity to the user, call [`linkIdentity()`](/docs/reference/swift/auth-linkidentity): + +```swift +try await supabase.auth.linkIdentity(provider: .google) +``` + @@ -94,6 +103,22 @@ const googleIdentity = identities.find((identity) => identity.provider === 'goog const { data, error } = await supabase.auth.unlinkIdentity(googleIdentity) ``` + + + +You can use [`getUserIdentities()`](/docs/reference/swift/auth-getuseridentities) to fetch all the identities linked to a user. Then, call [`unlinkIdentity()`](/docs/reference/swift/auth-unlinkidentity) to unlink the identity. The user needs to be logged in and have at least 2 linked identities in order to unlink an existing identity. + +```swift +// retrieve all identities linked to a user +let identities = try await supabase.auth.userIdentities() + +// find the google identity linked to the user +let googleIdentity = identities.first { $0.provider == .google } + +// unlink the google identity from the user +try await supabase.auth.unlinkIdentity(googleIdentity) +``` + diff --git a/apps/docs/content/guides/auth/auth-mfa.mdx b/apps/docs/content/guides/auth/auth-mfa.mdx index f6082fbb8b3..43720ef6215 100644 --- a/apps/docs/content/guides/auth/auth-mfa.mdx +++ b/apps/docs/content/guides/auth/auth-mfa.mdx @@ -457,7 +457,7 @@ create policy "Policy name." on table_name as restrictive to authenticated - using (auth.jwt()->>'aal' = 'aal2'); + using ((select auth.jwt()->>'aal') = 'aal2'); ``` - Here the policy will not accept any JWTs with an `aal` claim other than @@ -475,14 +475,14 @@ create policy "Policy name." as restrictive -- very important! to authenticated using - (array[auth.jwt()->>'aal'] <@ ( + (array[(select auth.jwt()->>'aal')] <@ ( select case when created_at >= '2022-12-12T00:00:00Z' then array['aal2'] else array['aal1', 'aal2'] end as aal from auth.users - where auth.uid() = id)); + where (select auth.uid()) = id)); ``` - The policy will accept both `aal1` and `aal2` for users with a `created_at` @@ -504,14 +504,14 @@ create policy "Policy name." as restrictive -- very important! to authenticated using ( - array[auth.jwt()->>'aal'] <@ ( + array[(select auth.jwt()->>'aal')] <@ ( select case when count(id) > 0 then array['aal2'] else array['aal1', 'aal2'] end as aal from auth.mfa_factors - where auth.uid() = user_id and status = 'verified' + where ((select auth.uid()) = user_id) and status = 'verified' )); ``` @@ -600,7 +600,7 @@ Use the `supabase.auth.getAuthenticatorAssuranceLevel()` method to get easy acce You can use this PostgreSQL snippet in RLS policies, too: ```sql -jsonb_path_query(auth.jwt(), '$.amr[0]') +jsonb_path_query((select auth.jwt()), '$.amr[0]') ``` - [`jsonb_path_query(json, path)`](https://www.postgresql.org/docs/current/functions-json.html#FUNCTIONS-JSON-PROCESSING-TABLE) diff --git a/apps/docs/content/guides/auth/auth-user-management.mdx b/apps/docs/content/guides/auth/auth-user-management.mdx index 1e24c2e142e..bedd9d2ca2a 100644 --- a/apps/docs/content/guides/auth/auth-user-management.mdx +++ b/apps/docs/content/guides/auth/auth-user-management.mdx @@ -72,7 +72,7 @@ Supabase Auth provides these [configuration options](/dashboard/project/_/settin create policy "policy_name" ON public.posts for insert to authenticated with check ( - auth.jwt()->>'email_verified' is true + (select auth.jwt()->>'email_verified') is true ); ``` diff --git a/apps/docs/content/guides/auth/concepts/redirect-urls.mdx b/apps/docs/content/guides/auth/concepts/redirect-urls.mdx index 2fcd240acd8..665b94f13a0 100644 --- a/apps/docs/content/guides/auth/concepts/redirect-urls.mdx +++ b/apps/docs/content/guides/auth/concepts/redirect-urls.mdx @@ -7,7 +7,7 @@ subtitle: 'Set up redirect urls with Supabase Auth.' ## Overview -When using [passwordless sign-ins](/docs/reference/javascript/auth-signinwithotp) or [third-party providers](/docs/reference/javascript/auth-signinwithoauth#sign-in-using-a-third-party-provider-with-redirect), the Supabase client library methods provide a `redirectTo` parameter to specify where to redirect the user to after authentication. By default, the user will be redirected to the [`SITE_URL`](/docs/reference/auth/config#site_url) but you can modify the `SITE_URL` or add additional redirect URLs to the [allow list](https://supabase.com/dashboard/project/_/auth/url-configuration). Once you've added necessary URLs to the allow list, you can specify the URL you want the user to be redirected to in the `redirectTo` parameter. +When using [passwordless sign-ins](/docs/reference/javascript/auth-signinwithotp) or [third-party providers](/docs/reference/javascript/auth-signinwithoauth#sign-in-using-a-third-party-provider-with-redirect), the Supabase client library methods provide a `redirectTo` parameter to specify where to redirect the user to after authentication. By default, the user will be redirected to the [`SITE_URL`](/docs/guides/auth/concepts/redirect-urls) but you can modify the `SITE_URL` or add additional redirect URLs to the [allow list](https://supabase.com/dashboard/project/_/auth/url-configuration). Once you've added necessary URLs to the allow list, you can specify the URL you want the user to be redirected to in the `redirectTo` parameter. ## Use wildcards in redirect URLs @@ -76,8 +76,37 @@ const { data, error } = await supabase.auth.signInWithOAuth({ }) ``` +## Email templates when using `redirectTo` + +When using a `redirectTo` option, you may need to replace the `{{ .SiteURL }}` with `{{ .RedirectTo }}` in your email templates. See the [Email Templates guide](/docs/guides/auth/auth-email-templates) for more information. + +For example, change the following: + +```html + +
Confirm your mail + + +Confirm your mail +``` + ## Mobile deep linking URIs For mobile applications you can use deep linking URIs. For example, for your `SITE_URL` you can specify something like `com.supabase://login-callback/` and for additional redirect URLs something like `com.supabase.staging://login-callback/` if needed. Read more about deep linking and find code examples for different frameworks [here](/docs/guides/auth/native-mobile-deep-linking). + +## Error Handling + +When authentication fails, the user will still be redirected to the redirect URL provided. However, the error details will be returned as query fragments in the URL. You can parse these query fragments and show a custom error message to the user. For example: + +```js +const params = new URLSearchParams(window.location.hash.slice()) + +if (params.get('error_code').startsWith('4')) { + // show error message if error is a 4xx error + window.alert(params.get('error_description')) +} +``` diff --git a/apps/docs/content/guides/auth/custom-claims-and-role-based-access-control-rbac.mdx b/apps/docs/content/guides/auth/custom-claims-and-role-based-access-control-rbac.mdx index 9697e315275..96320316ae8 100644 --- a/apps/docs/content/guides/auth/custom-claims-and-role-based-access-control-rbac.mdx +++ b/apps/docs/content/guides/auth/custom-claims-and-role-based-access-control-rbac.mdx @@ -87,7 +87,7 @@ The [Custom Access Token Auth Hook](/docs/guides/auth/auth-hooks#hook-custom-acc create or replace function public.custom_access_token_hook(event jsonb) returns jsonb language plpgsql -immutable +stable as $$ declare claims jsonb; @@ -216,8 +216,7 @@ To utilize Role-Based Access Control (RBAC) in Row Level Security (RLS) policies ```sql supabase/migrations/init.sql create function public.authorize( - requested_permission app_permission, - user_id uuid + requested_permission app_permission ) returns boolean as $$ declare @@ -226,7 +225,7 @@ begin select count(*) from public.role_permissions where role_permissions.permission = authorize.requested_permission - and role_permissions.role = (auth.jwt() ->> 'user_role')::public.app_role + and (role_permissions.role = (select (auth.jwt() ->> 'user_role')::public.app_role)) into bind_permissions; return bind_permissions > 0; @@ -243,8 +242,8 @@ You can read more about using functions in RLS policies in the [RLS guide](/docs You can then use the `authorize` method within your RLS policies. For example, to enable the desired delete access, you would add the following policies: ```sql -create policy "Allow authorized delete access" on public.channels for delete using ( authorize('channels.delete', auth.uid()) ); -create policy "Allow authorized delete access" on public.messages for delete using ( authorize('messages.delete', auth.uid()) ); +create policy "Allow authorized delete access" on public.channels for delete using ( authorize('channels.delete') ); +create policy "Allow authorized delete access" on public.messages for delete using ( authorize('messages.delete') ); ``` ## Accessing custom claims in your application diff --git a/apps/docs/content/guides/auth/sso/auth-sso-saml.mdx b/apps/docs/content/guides/auth/enterprise-sso/auth-sso-saml.mdx similarity index 97% rename from apps/docs/content/guides/auth/sso/auth-sso-saml.mdx rename to apps/docs/content/guides/auth/enterprise-sso/auth-sso-saml.mdx index 48a16a52779..cea09ebc099 100644 --- a/apps/docs/content/guides/auth/sso/auth-sso-saml.mdx +++ b/apps/docs/content/guides/auth/enterprise-sso/auth-sso-saml.mdx @@ -129,7 +129,7 @@ CREATE POLICY "View organization settings." ON organization_settings AS RESTRICTIVE USING ( - sso_provider_id = auth.jwt()#>>'{amr,0,provider}' + sso_provider_id = (select auth.jwt()#>>'{amr,0,provider}') ); ``` @@ -213,6 +213,17 @@ await supabase.auth.signInWithSSO( Calling [`signInWithSSO`](/docs/reference/dart/auth-signinwithsso) starts the sign-in process using the identity provider registered for the `company.com` domain name. It is not required that identity providers be assigned one or multiple domain names, in which case you can use the provider's unique ID instead. + + + +```swift +try await supabase.auth.signInWithSSO( + domain: "company.com" +) +``` + +Calling [`signInWithSSO`](/docs/reference/swift/auth-signinwithsso) starts the sign-in process using the identity provider registered for the `company.com` domain name. It is not required that identity providers be assigned one or multiple domain names, in which case you can use the provider's unique ID instead. + diff --git a/apps/docs/content/guides/auth/managing-user-data.mdx b/apps/docs/content/guides/auth/managing-user-data.mdx index dd73f0757ac..d161d2ccf54 100644 --- a/apps/docs/content/guides/auth/managing-user-data.mdx +++ b/apps/docs/content/guides/auth/managing-user-data.mdx @@ -67,11 +67,11 @@ create policy "Public profiles are viewable by everyone." create policy "Users can insert their own profile." on profiles for insert - with check ( auth.uid() = id ); + with check ( (select auth.uid()) = id ); create policy "Users can update own profile." on profiles for update - using ( auth.uid() = id ); + using ( (select auth.uid()) = id ); ``` ## Private access @@ -81,7 +81,7 @@ If the data should only be _readable_ by the user who owns the data, we just nee ```sql create policy "Profiles are viewable by users who created them." on profiles for select - using ( auth.uid() = id ); + using ( (select auth.uid()) = id ); ``` The nice thing about this pattern? We can now query this table via the API and we don't need to include data filters in our API queries - the Policies will handle that for us: @@ -107,6 +107,26 @@ const { data: profile } = await supabase .select('id, username, avatar_url, website') ``` + + + +```swift +// This will return nothing while the user is logged out +let profiles: [Profile] = try await supabase.from("profiles") + .select("id, username, avatar_url, website") + .execute() + .value + +// After the user is logged in, this will only return +// the logged-in user's data - in this case a single row +try await supabase.auth.signInWithOTP(email: email) +let profile: Profile = try await supabase.from("profiles") + .select("id, username, avatar_url, website") + .single() + .execute() + .value +``` + @@ -163,6 +183,20 @@ const { data, error } = await supabase.auth.signUp({ }) ``` + + + +```swift +try await supabase.auth.signUp( + email: "example@email.com", + password: "example-password", + data: [ + "first_name": .string("John"), + "age": .integer(27), + ] +) +``` + @@ -198,6 +232,14 @@ const { let metadata = user.user_metadata ``` + + + +```swift +let user = try await supabase.auth.user() +let metadata = user.userMetadata +``` + diff --git a/apps/docs/content/guides/auth/passwordless-login/auth-email-otp.mdx b/apps/docs/content/guides/auth/passwordless-login/auth-email-otp.mdx index 820f70e4b5c..da531006914 100644 --- a/apps/docs/content/guides/auth/passwordless-login/auth-email-otp.mdx +++ b/apps/docs/content/guides/auth/passwordless-login/auth-email-otp.mdx @@ -4,7 +4,7 @@ title: 'Login With Email OTP' description: 'Use Supabase to authenticate your users using one-time password emails.' --- -Email one-time passwords (OTP) are a form of passwordless login where users key in a six digit code sent to their email address to log in to their accounts. By default, a user can only request an OTP once every 60 seconds and they expire after 24 hours. +Email one-time passwords (OTP) are a form of passwordless login where users key in a six digit code sent to their email address to log in to their accounts. By default, a user can only request an OTP once every 60 seconds and they expire after 1 hour. ## Setting up email OTP @@ -54,6 +54,18 @@ Future signInWithEmailOtp() async { } ``` + + +When your user signs in, call [signInWithOTP()](/docs/reference/swift/auth-signinwithotp) with their email address: + +```swift +try await supabase.auth.signInWithOTP( + email: "example@email.com", + // set this to false if you do not want the user to be automatically signed up + shouldCreateUser: false +) +``` + @@ -106,6 +118,19 @@ const { }) ``` + + + +Provide an input field for the user to key in the one-time code. To verify the code and complete the user's sign in, call [verifyOTP()](/docs/reference/swift/auth-verifyotp) with their email address, the code, and `type: .email`: + +```swift +try await supabase.auth.verifyOTP( + email: email, + token: "123456", + type: .email +) +``` + @@ -132,7 +157,7 @@ If successful the user will now be logged in and you should receive a valid sess ## Resources -- [Supabase Account - Free Plan OK](https://supabase.com) +- [Supabase - Get started for free](https://supabase.com) - [Phone SMS & WhatsApp OTP](/docs/guides/auth/phone-login) - [Supabase JS Client](https://github.com/supabase/supabase-js) - [Supabase Flutter Client](https://github.com/supabase/supabase-flutter) diff --git a/apps/docs/content/guides/auth/passwordless-login/auth-magic-link.mdx b/apps/docs/content/guides/auth/passwordless-login/auth-magic-link.mdx index 4b6ffdfdc87..670826f7379 100644 --- a/apps/docs/content/guides/auth/passwordless-login/auth-magic-link.mdx +++ b/apps/docs/content/guides/auth/passwordless-login/auth-magic-link.mdx @@ -4,7 +4,7 @@ title: 'Login With Magic Link' description: 'Use Supabase to authenticate your users using magic links.' --- -Magic links are a form of passwordless logins where users click on a link sent to their email address to log in to their accounts. Magic links only work with email addresses and are one-time use only. By default, a user can only request a magic link once every 60 seconds and they expire after 24 hours. +Magic links are a form of passwordless logins where users click on a link sent to their email address to log in to their accounts. Magic links only work with email addresses and are one-time use only. By default, a user can only request a magic link once every 60 seconds and they expire after 1 hour. Set up Magic Link logins for your Supabase application. @@ -19,6 +19,8 @@ Set up Magic Link logins for your Supabase application. When using Magic Links in [the PKCE Flow](/blog/supabase-auth-sso-pkce#introducing-pkce), keep in mind that links can only be opened from the same browser that they are sent from (as defined in the PKCE spec). Consequently, a magic link sent from Chrome on Desktop will be invalid if used on a Mobile Device. +The same applies for Magic Links in mobile devices. Magic Links can only be opened on the device they are sent from. + signInWithEmail() async { } ``` + + +When your user signs in, call [signInWithOTP()](/docs/reference/swift/auth-signinwithotp) with their email address: + +```swift +try await supabase.auth.signInWithOTP( + email: "example@email.com", + redirectTo: URL(string: "https://example.com/welcome"), + // set this to false if you do not want the user to be automatically signed up + shouldCreateUser: false +) +``` + @@ -119,6 +134,14 @@ Future signOut() async { } ``` + + +When your user signs out, call [signOut()](/docs/reference/swift/auth-signout) to remove them from the local storage: + +```swift +try await supabase.auth.signOut() +``` + @@ -135,6 +158,6 @@ suspend fun logout() { ## Resources -- [Supabase Account - Free Plan OK](https://supabase.com) +- [Supabase - Get started for free](https://supabase.com) - [Supabase JS Client](https://github.com/supabase/supabase-js) - [Supabase Flutter Client](https://github.com/supabase/supabase-flutter) diff --git a/apps/docs/content/guides/auth/passwords.mdx b/apps/docs/content/guides/auth/passwords.mdx index 25877dad288..7ed8a1471ff 100644 --- a/apps/docs/content/guides/auth/passwords.mdx +++ b/apps/docs/content/guides/auth/passwords.mdx @@ -91,6 +91,18 @@ await supabase.auth.resetPasswordForEmail('hello@example.com', { }) ``` + + + +Supabase provides a convenient method [`supabase.auth.resetPasswordForEmail`](/docs/reference/swift/auth-resetpasswordforemail) to reset a user password. This method takes a parameter of `redirectTo`, which is an absolute URL to the update password page. This URL must be saved in your allowed [Redirect URLs](https://supabase.com/dashboard/project/_/auth/url-configuration) list found at [Authentication > Redirect Configuration](https://supabase.com/dashboard/project/_/auth/url-configuration). + +```swift +try await supabase.auth.resetPasswordForEmail( + "hello@example.com", + redirectTo: URL(string: "http://example.com/account/update-password") +) +``` + @@ -125,13 +137,22 @@ To update the password, call the [`supabase.auth.updateUser`](/docs/reference/ja await supabase.auth.updateUser({ password: new_password }) ``` + + + +To update the password, call the [`supabase.auth.updateUser`](/docs/reference/swift/auth-updateuser) method with the new password. + +```swift +try await supabase.auth.updateUser(user: UserAttributes(password: newPassword)) +``` + -To update the password, call the [`.modifyUser`](/docs/reference/kotlin/auth-updateuser) method with the new password. +To update the password, call the [`.updateUser`](/docs/reference/kotlin/auth-updateuser) method with the new password. ```kotlin -supabase.gotrue.modifyUser { +supabase.auth.updateUser { password = "new_password" } ``` diff --git a/apps/docs/content/guides/auth/phone-login.mdx b/apps/docs/content/guides/auth/phone-login.mdx index e35520a002a..0846897aaea 100644 --- a/apps/docs/content/guides/auth/phone-login.mdx +++ b/apps/docs/content/guides/auth/phone-login.mdx @@ -80,6 +80,16 @@ const { data, error } = await supabase.auth.signUp({ }) ``` + + + +```swift +try await supabase.auth.signUp( + phone: "+13334445555", + password: "some-password" +) +``` + @@ -126,6 +136,16 @@ const { user, error } = await supabase.auth.signInWithPassword({ }) ``` + + + +```swift +try await supabase.auth.signIn( + phone: "+13334445555", + password: "some-password" +) +``` + @@ -171,6 +191,15 @@ const { data, error } = await supabase.auth.signInWithOtp({ }) ``` + + + +```swift +try await supabase.auth.signInWithOTP( + phone: "+13334445555" +) +``` + @@ -216,6 +245,17 @@ const { data, error } = await supabase.auth.updateUser({ }) ``` + + + +```swift +try await supabase.auth.updateUser( + user: UserAttributes( + phone: "123456789" + ) +) +``` + @@ -247,6 +287,19 @@ const { }) ``` + + + +You should present a form to the user so they can input the 6 digit pin, then send it along with the phone number to `verifyOTP`: + +```swift +try await supabase.auth.verifyOTP( + phone: "+13334445555", + token: "123456", + type: .sms +) +``` + diff --git a/apps/docs/content/guides/auth/phone-login/twilio.mdx b/apps/docs/content/guides/auth/phone-login/twilio.mdx index 86bbd8bae8b..179002d8ae4 100644 --- a/apps/docs/content/guides/auth/phone-login/twilio.mdx +++ b/apps/docs/content/guides/auth/phone-login/twilio.mdx @@ -11,7 +11,7 @@ Authenticating users via SMS can become expensive. Adjust your project's rate li -## Preqrequisites +## Prerequisites You'll need: @@ -32,7 +32,7 @@ To set up Twilio Verify, you will need to: When using Twilio Verify, OTPs are generated by Twilio. This means that: - Unlike other providers, the OTP expiry duration and message content fields are not configurable via the Supabase dashboard. Please head to Twilio Verify to configure these settings. -- The token remains the same during its validity period until the verification is successful. This means if your user make another request within that period, they will receive the same token. +- The token remains the same during its validity period until the verification is successful. This means if your user makes another request within that period, they will receive the same token. - Twilio Verify has a separate set of rate limits that apply. Visit Twilio's [Rate Limit and Timeouts page](https://www.twilio.com/docs/verify/api/rate-limits-and-timeouts) to find out more. diff --git a/apps/docs/content/guides/auth/row-level-security.mdx b/apps/docs/content/guides/auth/row-level-security.mdx index 1ca5491e198..278c20dba7e 100644 --- a/apps/docs/content/guides/auth/row-level-security.mdx +++ b/apps/docs/content/guides/auth/row-level-security.mdx @@ -28,7 +28,7 @@ Policies are easy to understand once you get the hang of them. Each policy is at ```sql create policy "Individuals can view their own todos." on todos for select -using ( auth.uid() = user_id ); +using ( (select auth.uid()) = user_id ); ``` .. would translate to this whenever a user tries to select from the todos table: @@ -63,6 +63,12 @@ to authenticated using ( true ); ``` + + +Using the `anon` Postgres role is different from an [anonymous user](/docs/guides/auth/auth-anonymous) in Supabase Auth. An anonymous user assumes the `authenticated` role to access the database and can be differentiated from a permanent user by checking the `is_anonymous` claim in the JWT. + + + ## Helper functions Supabase provides some helper functions that make it easier to write Policies. @@ -119,6 +125,20 @@ on my_table for select using ( true ); ``` +### Protect views using `security_invoker` + +Views bypass RLS by default because they are usually created with the `postgres` user. This is a feature of Postgres, which automatically creates views with `security definer`. + +In Postgres 15 and above, you can make a view obey the RLS policies of the underlying tables when invoked by `anon` and `authenticated` roles by setting `security_invoker = true`. + +```sql +create view +with(security_invoker = true) +as select +``` + +In older versions of Postgres, protect your views by revoking access from the `anon` and `authenticated` roles, or by putting them in an unexposed schema. + ### Using external authorization systems If you want to use another authorization method for your applications that's also fine. Supabase is "just Postgres", so if your application works with Postgres, then it also works with Supabase. If you take this path, don't put your tables in the `public` schema - instead create a new schema for your tables and functions: @@ -172,7 +192,7 @@ create policy "Users can update their own profiles" on profiles for update to authenticated using ( - auth.uid() = id + (select auth.uid()) = id ); ``` @@ -202,7 +222,7 @@ alter table teams enable row level security; create policy "Team members can update team details if they belong to the team" on teams for update using ( - auth.uid() in ( + (select auth.uid()) in ( select user_id from members where team_id = id ) @@ -266,7 +286,7 @@ create policy "Only Supabase staff can update the leaderboard" on leaderboard to authenticated for update using ( - right(auth.jwt() ->> 'email', 13) = '@supabase.com' + right((select auth.jwt() ->> 'email'), 13) = '@supabase.com' ); ``` @@ -280,7 +300,7 @@ on profiles as restrictive for update to authenticated using ( - auth.jwt()->>'aal' = 'aal2' + (select auth.jwt()->>'aal') = 'aal2' ); ``` diff --git a/apps/docs/content/guides/auth/server-side-rendering.mdx b/apps/docs/content/guides/auth/server-side-rendering.mdx index 78e0d7e31c4..ad5473b285d 100644 --- a/apps/docs/content/guides/auth/server-side-rendering.mdx +++ b/apps/docs/content/guides/auth/server-side-rendering.mdx @@ -153,7 +153,7 @@ This is traditionally done by setting cookies. Here's an example you can add to ```typescript supabase.auth.onAuthStateChange((event, session) => { - if (event === 'SIGNED_OUT' || event === 'USER_DELETED') { + if (event === 'SIGNED_OUT') { // delete cookies on sign out const expires = new Date(0).toUTCString() document.cookie = `my-access-token=; path=/; expires=${expires}; SameSite=Lax; secure` diff --git a/apps/docs/content/guides/auth/server-side/creating-a-client.mdx b/apps/docs/content/guides/auth/server-side/creating-a-client.mdx index b8917844105..8732b944ce3 100644 --- a/apps/docs/content/guides/auth/server-side/creating-a-client.mdx +++ b/apps/docs/content/guides/auth/server-side/creating-a-client.mdx @@ -429,12 +429,6 @@ export default function Index () { Creating a Supabase client with the `ssr` package automatically configures it to use Cookies. This means your user's session is available throughout the entire SvelteKit stack - page, layout, server, hooks. - - -Beware when accessing the session object on the server, because it is not revalidated on every request from the client. That means the sender can tamper with unencoded data in the session object. If you need to verify the integrity of user data for server logic, call `auth.getUser` instead, which will query the Supabase Auth server for trusted user data. - - - { }) /** - * a little helper that is written for convenience so that instead - * of calling `const { data: { session } } = await supabase.auth.getSession()` - * you just call this `await getSession()` + * Unlike `supabase.auth.getSession()`, which returns the session _without_ + * validating the JWT, this function also calls `getUser()` to validate the + * JWT before returning the session. */ - event.locals.getSession = async () => { + event.locals.safeGetSession = async () => { const { data: { session }, } = await event.locals.supabase.auth.getSession() - return session + if (!session) { + return { session: null, user: null } + } + + const { + data: { user }, + error, + } = await event.locals.supabase.auth.getUser() + if (error) { + // JWT validation has failed + return { session: null, user: null } + } + + return { session, user } } return resolve(event, { @@ -528,6 +535,11 @@ export const load: LayoutLoad = async ({ fetch, data, depends }) => { }, }) + /** + * It's fine to use `getSession` here, because on the client, `getSession` is + * safe, and on the server, it reads `session` from the `LayoutData`, which + * safely checked the session using `safeGetSession`. + */ const { data: { session }, } = await supabase.auth.getSession() @@ -543,9 +555,12 @@ export const load: LayoutLoad = async ({ fetch, data, depends }) => { ```ts +layout.server.ts import type { LayoutServerLoad } from './$types' -export const load: LayoutServerLoad = async ({ locals: { getSession } }) => { +export const load: LayoutServerLoad = async ({ locals: { safeGetSession } }) => { + const { session, user } = await safeGetSession() + return { - session: await getSession(), + session, + user, } } ``` diff --git a/apps/docs/content/guides/auth/server-side/email-based-auth-with-pkce-flow-for-ssr.mdx b/apps/docs/content/guides/auth/server-side/email-based-auth-with-pkce-flow-for-ssr.mdx index 24a69be3362..7144fd01095 100644 --- a/apps/docs/content/guides/auth/server-side/email-based-auth-with-pkce-flow-for-ssr.mdx +++ b/apps/docs/content/guides/auth/server-side/email-based-auth-with-pkce-flow-for-ssr.mdx @@ -79,6 +79,7 @@ Create a new file at `src/routes/auth/confirm/+server.ts` and populate with the ```ts src/routes/auth/confirm/+server.ts import { redirect } from '@sveltejs/kit' +import { type EmailOtpType } from '@supabase/supabase-js' export const GET = async (event) => { const { @@ -86,7 +87,7 @@ export const GET = async (event) => { locals: { supabase }, } = event const token_hash = url.searchParams.get('token_hash') as string - const type = url.searchParams.get('type') as string + const type = url.searchParams.get('type') as EmailOtpType | null const next = url.searchParams.get('next') ?? '/' if (token_hash && type) { diff --git a/apps/docs/content/guides/auth/server-side/nextjs.mdx b/apps/docs/content/guides/auth/server-side/nextjs.mdx index f90f3c2c781..8ddc10fafa5 100644 --- a/apps/docs/content/guides/auth/server-side/nextjs.mdx +++ b/apps/docs/content/guides/auth/server-side/nextjs.mdx @@ -495,7 +495,7 @@ export default async function PrivatePage() { const { data, error } = await supabase.auth.getUser() if (error || !data?.user) { - redirect('/') + redirect('/login') } return

Hello {data.user.email}

@@ -812,11 +812,11 @@ Since this is an API route, use the Supabase client from `@/utils/supabase/api.t -```ts pages/api/auth/confirm.tsx +```ts pages/api/auth/confirm.ts import { type EmailOtpType } from '@supabase/supabase-js' import type { NextApiRequest, NextApiResponse } from 'next' -import { createClient } from '@/utils/supabase/api' +import createClient from '@/utils/supabase/api' function stringOrFirstString(item: string | string[] | undefined) { return Array.isArray(item) ? item[0] : item @@ -869,7 +869,7 @@ export default function ErrorPage() { If you use dynamic server-side rendering, you can serve a page to authenticated users only by checking for the user data in `getServerSideProps`. Unauthenticated users will be redirected to the home page. -Since you're calling Supabse from `getServerSideProps`, use the client from `@/utils/supabase/server-props.ts`. +Since you're calling Supabase from `getServerSideProps`, use the client from `@/utils/supabase/server-props.ts`. diff --git a/apps/docs/content/guides/auth/server-side/oauth-with-pkce-flow-for-ssr.mdx b/apps/docs/content/guides/auth/server-side/oauth-with-pkce-flow-for-ssr.mdx index 9ff80b227e0..40af43d1fde 100644 --- a/apps/docs/content/guides/auth/server-side/oauth-with-pkce-flow-for-ssr.mdx +++ b/apps/docs/content/guides/auth/server-side/oauth-with-pkce-flow-for-ssr.mdx @@ -207,6 +207,17 @@ app.get("/auth/callback", async function (req, res) { Let's point our `.signInWithOAuth` method's redirect to the callback route we create above: + + + +In the browser, `signInWithOAuth` automatically redirects to the SSO provider's authentication endpoint, which then redirects to your endpoint. + ```js await supabase.auth.signInWithOAuth({ provider, @@ -215,3 +226,26 @@ await supabase.auth.signInWithOAuth({ }, }) ``` + + + + + +In the server, you need to handle the redirect to the OAuth provider's authentication endpoint. The `signInWithOAuth` method returns the endpoint URL, which you can redirect to. + +```js +const { data, error } = await supabase.auth.signInWithOAuth({ + provider, + options: { + redirectTo: 'http://example.com/auth/callback', + }, +}) + +if (data.url) { + redirect(data.url) // use the redirect API for your server framework +} +``` + + + + diff --git a/apps/docs/content/guides/auth/server-side/overview.mdx b/apps/docs/content/guides/auth/server-side/overview.mdx index eb2d1c1c9d8..317f7df8b28 100644 --- a/apps/docs/content/guides/auth/server-side/overview.mdx +++ b/apps/docs/content/guides/auth/server-side/overview.mdx @@ -9,15 +9,22 @@ When using Supabase with server-side languages and frameworks - such as Next.js, ## Framework quickstarts -
+
{[ { title: 'Next.js', href: '/guides/auth/server-side/nextjs', description: - 'Automatically configure Supabase to use cookies, making your user and their session available on the client and server.', + 'Automatically configure Supabase in Next.js to use cookies, making your user and their session available on the client and server.', icon: '/docs/img/icons/nextjs-icon', }, + { + title: 'SvelteKit', + href: '/guides/auth/server-side/sveltekit', + description: + 'Automatically configure Supabase in SvelteKit to use cookies, making your user and their session available on the client and server.', + icon: '/docs/img/icons/svelte-icon', + }, ].map((item) => { return ( diff --git a/apps/docs/content/guides/auth/server-side/sveltekit.mdx b/apps/docs/content/guides/auth/server-side/sveltekit.mdx new file mode 100644 index 00000000000..d1fc0e97c6c --- /dev/null +++ b/apps/docs/content/guides/auth/server-side/sveltekit.mdx @@ -0,0 +1,636 @@ +--- +title: 'Setting up Server-Side Auth for SvelteKit' +hideToc: true +--- + +Set up Server-Side Auth to use cookie-based authentication with SvelteKit. + + + + + + + +Install the `@supabase/supabase-js` package and the helper `@supabase/ssr` package. + + + + + +```sh +npm install @supabase/supabase-js @supabase/ssr +``` + + + + + + + + + +Create a `.env.local` file in your project root directory. + +Fill in your `PUBLIC_SUPABASE_URL` and `PUBLIC_SUPABASE_ANON_KEY`: + + + + + + + + +```txt .env.local +PUBLIC_SUPABASE_URL= +PUBLIC_SUPABASE_ANON_KEY= +``` + + + + + + + + + +Set up server-side hooks in `src/hooks.server.ts`. The hooks: + +- Create a request-specific Supabase client, using the user credentials from the request cookie. This client is used for server-only code. +- Check user authentication. +- Guard protected pages. + + + + + +```ts src/hooks.server.ts +import { createServerClient } from '@supabase/ssr' +import { type Handle, redirect } from '@sveltejs/kit' +import { sequence } from '@sveltejs/kit/hooks' + +import { PUBLIC_SUPABASE_URL, PUBLIC_SUPABASE_ANON_KEY } from '$env/static/public' + +const supabase: Handle = async ({ event, resolve }) => { + /** + * Creates a Supabase client specific to this server request. + * + * The Supabase client gets the Auth token from the request cookies. + */ + event.locals.supabase = createServerClient(PUBLIC_SUPABASE_URL, PUBLIC_SUPABASE_ANON_KEY, { + cookies: { + get: (key) => event.cookies.get(key), + /** + * SvelteKit's cookies API requires `path` to be explicitly set in + * the cookie options. Setting `path` to `/` replicates previous/ + * standard behavior. + */ + set: (key, value, options) => { + event.cookies.set(key, value, { ...options, path: '/' }) + }, + remove: (key, options) => { + event.cookies.delete(key, { ...options, path: '/' }) + }, + }, + }) + + /** + * Unlike `supabase.auth.getSession()`, which returns the session _without_ + * validating the JWT, this function also calls `getUser()` to validate the + * JWT before returning the session. + */ + event.locals.safeGetSession = async () => { + const { + data: { session }, + } = await event.locals.supabase.auth.getSession() + if (!session) { + return { session: null, user: null } + } + + const { + data: { user }, + error, + } = await event.locals.supabase.auth.getUser() + if (error) { + // JWT validation has failed + return { session: null, user: null } + } + + return { session, user } + } + + return resolve(event, { + filterSerializedResponseHeaders(name) { + /** + * Supabase libraries use the `content-range` header, so we need to + * tell SvelteKit to pass it through. + */ + return name === 'content-range' + }, + }) +} + +const authGuard: Handle = async ({ event, resolve }) => { + const { session, user } = await event.locals.safeGetSession() + event.locals.session = session + event.locals.user = user + + if (!event.locals.session && event.url.pathname.startsWith('/private')) { + return redirect(303, '/auth') + } + + if (event.locals.session && event.url.pathname === '/auth') { + return redirect(303, '/private') + } + + return resolve(event) +} + +export const handle: Handle = sequence(supabase, authGuard) +``` + + + + + + + + + +To prevent TypeScript errors, add type definitions for the new `event.locals` properties. + + + + + +```ts src/app.d.ts +import type { Session, SupabaseClient, User } from '@supabase/supabase-js' + +declare global { + namespace App { + // interface Error {} + interface Locals { + supabase: SupabaseClient + safeGetSession: () => Promise<{ session: Session | null; user: User | null }> + session: Session | null + user: User | null + } + // interface PageData {} + // interface PageState {} + // interface Platform {} + } +} + +export {} +``` + + + + + + + + + +Create a Supabase client in your root `+layout.ts`. This client can be used to access Supabase from the client or the server. In order to get access to the Auth token on the server, use a `+layout.server.ts` file to pass in the session from `event.locals`. + + + + + + + +```ts src/routes/+layout.ts +import { createBrowserClient, createServerClient, isBrowser, parse } from '@supabase/ssr' + +import { PUBLIC_SUPABASE_ANON_KEY, PUBLIC_SUPABASE_URL } from '$env/static/public' + +import type { LayoutLoad } from './$types' + +export const load: LayoutLoad = async ({ data, depends, fetch }) => { + /** + * Declare a dependency so the layout can be invalidated, for example, on + * session refresh. + */ + depends('supabase:auth') + + const supabase = isBrowser() + ? createBrowserClient(PUBLIC_SUPABASE_URL, PUBLIC_SUPABASE_ANON_KEY, { + global: { + fetch, + }, + cookies: { + get(key) { + const cookie = parse(document.cookie) + return cookie[key] + }, + }, + }) + : createServerClient(PUBLIC_SUPABASE_URL, PUBLIC_SUPABASE_ANON_KEY, { + global: { + fetch, + }, + cookies: { + get() { + return JSON.stringify(data.session) + }, + }, + }) + + /** + * It's fine to use `getSession` here, because on the client, `getSession` is + * safe, and on the server, it reads `session` from the `LayoutData`, which + * safely checked the session using `safeGetSession`. + */ + const { + data: { session }, + } = await supabase.auth.getSession() + + const { + data: { user }, + } = await supabase.auth.getUser() + + return { session, supabase, user } +} +``` + +```ts src/routes/+layout.server.ts +import type { LayoutServerLoad } from './$types' + +export const load: LayoutServerLoad = async ({ locals: { session } }) => { + return { + session, + } +} +``` + + + + + + + + + + + +Set up a listener for Auth events on the client, to handle session refreshes and signouts. + + + + + +```svelte src/routes/+layout.svelte + + + +``` + + + + + + + + + +Create your first page. This example page calls Supabase from the server to get a list of countries from the database. + +This is an example of a public page that uses publicly readable data. + +To populate your database, run the [countries quickstart](/dashboard/project/_/sql/quickstarts) from your dashboard. + + + + + + + +```ts src/routes/+page.server.ts +import type { PageServerLoad } from './$types' + +export const load: PageServerLoad = async ({ locals: { supabase } }) => { + const { data: countries } = await supabase.from('countries').select('name').limit(5).order('name') + return { countries: countries ?? [] } +} +``` + +```svelte src/routes/+page.svelte + + +

Welcome to Supabase!

+
    + {#each countries as country} +
  • {country.name}
  • + {/each} +
+``` + +
+ +
+ +
+ + + + + +If you have email confirmation turned on (the default), a new user will receive an email confirmation after signing up. + +Change the email template to support a server-side authentication flow. + +Go to the [Auth templates](https://supabase.com/dashboard/project/_/auth/templates) page in your dashboard. In the `Confirm signup` template, change `{{ .ConfirmationURL }}` to `{{ .SiteURL }}/api/auth/confirm?token_hash={{ .TokenHash }}&type=signup`. + + + + + + + + + +Next, create a login page to let users sign up and log in. + + + + + + + +```ts src/routes/auth/+page.server.ts +import { redirect } from '@sveltejs/kit' + +import type { Actions } from './$types' + +export const actions: Actions = { + signup: async ({ request, locals: { supabase } }) => { + const formData = await request.formData() + const email = formData.get('email') as string + const password = formData.get('password') as string + + const { error } = await supabase.auth.signUp({ email, password }) + if (error) { + console.error(error) + return redirect(303, '/auth/error') + } else { + return redirect(303, '/') + } + }, + login: async ({ request, locals: { supabase } }) => { + const formData = await request.formData() + const email = formData.get('email') as string + const password = formData.get('password') as string + + const { error } = await supabase.auth.signInWithPassword({ email, password }) + if (error) { + console.error(error) + return redirect(303, '/auth/error') + } else { + return redirect(303, '/private') + } + }, +} +``` + +```svelte src/routes/auth/+page.svelte +
+ + + + +
+``` + +```svelte src/routes/auth/+layout.svelte +
+ +
+ +``` + +```svelte src/routes/auth/error/+page.svelte +

Login error

+``` + +
+ +
+ +
+ + + + + +Finish the signup flow by creating the API route to handle email verification. + + + + + +```ts src/routes/api/auth/confirm/+server.ts +import type { EmailOtpType } from '@supabase/supabase-js' +import { redirect } from '@sveltejs/kit' + +import type { RequestHandler } from './$types' + +export const GET: RequestHandler = async ({ url, locals: { supabase } }) => { + const token_hash = url.searchParams.get('token_hash') + const type = url.searchParams.get('type') as EmailOtpType | null + const next = url.searchParams.get('next') ?? '/' + + /** + * Clean up the redirect URL by deleting the Auth flow parameters. + * + * `next` is preserved for now, because it's needed in the error case. + */ + const redirectTo = new URL(url) + redirectTo.pathname = next + redirectTo.searchParams.delete('token_hash') + redirectTo.searchParams.delete('type') + + if (token_hash && type) { + const { error } = await supabase.auth.verifyOtp({ type, token_hash }) + if (!error) { + redirectTo.searchParams.delete('next') + return redirect(303, redirectTo) + } + } + + redirectTo.pathname = '/auth/error' + return redirect(303, redirectTo) +} +``` + + + + + + + + + +Create private routes that can only be accessed by authenticated users. The routes in the `private` directory are protected by the route guard in `hooks.server.ts`. + +To ensure that `hooks.server.ts` runs for every nested path, put a `+layout.server.ts` file in the `private` directory. This file can be empty, but must exist to protect routes that don't have their own `+layout|page.server.ts`. + + + + + + + +```ts src/routes/private/+layout.server.ts +/** + * This file is necessary to ensure protection of all routes in the `private` + * directory. It makes the routes in this directory _dynamic_ routes, which + * send a server request, and thus trigger `hooks.server.ts`. + **/ +``` + +```svelte src/routes/private/+layout.svelte + + +
+ + +
+
+ +
+``` + +```sql SQL +-- Run this SQL against your database to create a `notes` table. + +create table notes ( + id bigint primary key generated always as identity, + created_at timestamp with time zone not null default now(), + user_id uuid references auth.users on delete cascade not null default auth.uid(), + note text not null +); + +alter table notes enable row level security; + +revoke all on table notes from authenticated; +revoke all on table notes from anon; + +grant all (note) on table notes to authenticated; +grant select (id) on table notes to authenticated; +grant delete on table notes to authenticated; + +create policy "Users can access and modify their own notes" +on notes +for all +to authenticated +using ((select auth.uid()) = user_id); +``` + +```svelte src/routes/private/+page.server.ts +import type { PageServerLoad } from './$types'; + +export const load: PageServerLoad = async ({ depends, locals: { supabase } }) => { + depends('supabase:db:notes'); + const { data: notes } = await supabase.from('notes').select('id,note').order('id'); + return { notes: notes ?? [] }; +}; +``` + +```svelte src/routes/private/+page.svelte + + +

Private page for user: {user?.email}

+

Notes

+
    + {#each notes as note} +
  • {note.note}
  • + {/each} +
+
+ +
+``` + +
+ +
+ +
+ +
diff --git a/apps/docs/content/guides/auth/social-login/auth-bitbucket.mdx b/apps/docs/content/guides/auth/social-login/auth-bitbucket.mdx index 1cdde00d182..5b41ce54404 100644 --- a/apps/docs/content/guides/auth/social-login/auth-bitbucket.mdx +++ b/apps/docs/content/guides/auth/social-login/auth-bitbucket.mdx @@ -112,6 +112,6 @@ suspend fun signOut() { ## Resources -- [Supabase Account - Free Plan OK](https://supabase.com) +- [Supabase - Get started for free](https://supabase.com) - [Supabase JS Client](https://github.com/supabase/supabase-js) - [Bitbucket Account](https://bitbucket.org) diff --git a/apps/docs/content/guides/auth/social-login/auth-discord.mdx b/apps/docs/content/guides/auth/social-login/auth-discord.mdx index 1c15e17249e..2154fd37eb8 100644 --- a/apps/docs/content/guides/auth/social-login/auth-discord.mdx +++ b/apps/docs/content/guides/auth/social-login/auth-discord.mdx @@ -113,7 +113,7 @@ suspend fun signOut() { ## Resources -- [Supabase Account - Free Plan OK](https://supabase.com) +- [Supabase - Get started for free](https://supabase.com) - [Supabase JS Client](https://github.com/supabase/supabase-js) - [Discord Account](https://discord.com) - [Discord Developer Portal](https://discord.com/developers) diff --git a/apps/docs/content/guides/auth/social-login/auth-facebook.mdx b/apps/docs/content/guides/auth/social-login/auth-facebook.mdx index b195edf22d2..f15eb331425 100644 --- a/apps/docs/content/guides/auth/social-login/auth-facebook.mdx +++ b/apps/docs/content/guides/auth/social-login/auth-facebook.mdx @@ -131,6 +131,6 @@ You can read more about App Review [here](https://developers.facebook.com/docs/a ## Resources -- [Supabase Account - Free Plan OK](https://supabase.com) +- [Supabase - Get started for free](https://supabase.com) - [Supabase JS Client](https://github.com/supabase/supabase-js) - [Facebook Developers Dashboard](https://developers.facebook.com/) diff --git a/apps/docs/content/guides/auth/social-login/auth-figma.mdx b/apps/docs/content/guides/auth/social-login/auth-figma.mdx index 0db6671df23..1f982fb668c 100644 --- a/apps/docs/content/guides/auth/social-login/auth-figma.mdx +++ b/apps/docs/content/guides/auth/social-login/auth-figma.mdx @@ -112,6 +112,6 @@ suspend fun signOut() { ## Resources -- [Supabase Account - Free Plan OK](https://supabase.com) +- [Supabase - Get started for free](https://supabase.com) - [Supabase JS Client](https://github.com/supabase/supabase-js) - [Figma Developers page](https://www.figma.com/developers) diff --git a/apps/docs/content/guides/auth/social-login/auth-github.mdx b/apps/docs/content/guides/auth/social-login/auth-github.mdx index c0ffc5e8f04..0a2883ac3d8 100644 --- a/apps/docs/content/guides/auth/social-login/auth-github.mdx +++ b/apps/docs/content/guides/auth/social-login/auth-github.mdx @@ -123,6 +123,6 @@ suspend fun signOut() { ## Resources -- [Supabase Account - Free Plan OK](https://supabase.com) +- [Supabase - Get started for free](https://supabase.com) - [Supabase JS Client](https://github.com/supabase/supabase-js) - [GitHub Developer Settings](https://github.com/settings/developers) diff --git a/apps/docs/content/guides/auth/social-login/auth-gitlab.mdx b/apps/docs/content/guides/auth/social-login/auth-gitlab.mdx index 6dd71afa9be..3ffcfd43354 100644 --- a/apps/docs/content/guides/auth/social-login/auth-gitlab.mdx +++ b/apps/docs/content/guides/auth/social-login/auth-gitlab.mdx @@ -109,6 +109,6 @@ suspend fun signOut() { ## Resources -- [Supabase Account - Free Plan OK](https://supabase.com) +- [Supabase - Get started for free](https://supabase.com) - [Supabase JS Client](https://github.com/supabase/supabase-js) - [GitLab Account](https://gitlab.com) diff --git a/apps/docs/content/guides/auth/social-login/auth-google.mdx b/apps/docs/content/guides/auth/social-login/auth-google.mdx index 8360c023780..60fb73fa232 100644 --- a/apps/docs/content/guides/auth/social-login/auth-google.mdx +++ b/apps/docs/content/guides/auth/social-login/auth-google.mdx @@ -311,7 +311,7 @@ Before you can use Sign in with Google, you need to obtain a [Google Cloud Platf ## Google sign-in for Web, macOS, Windows, and Linux - Google sign-in with Supabase on Web, macOS, Windows, and Linux is done through the [signInWithOAuth](docs/reference/dart/auth-signinwithoauth) method. + Google sign-in with Supabase on Web, macOS, Windows, and Linux is done through the [signInWithOAuth](/docs/reference/dart/auth-signinwithoauth) method. This method of signing in is web based, and will open a browser window to perform the sign in. For non-web platforms, the user is brought back to the app via [deep linking](/docs/guides/auth/native-mobile-deep-linking?platform=flutter). diff --git a/apps/docs/content/guides/auth/social-login/auth-linkedin.mdx b/apps/docs/content/guides/auth/social-login/auth-linkedin.mdx index f6ed6125535..865e7ba6ee5 100644 --- a/apps/docs/content/guides/auth/social-login/auth-linkedin.mdx +++ b/apps/docs/content/guides/auth/social-login/auth-linkedin.mdx @@ -135,6 +135,6 @@ Do reach out to support if you have any concerns around this change. ## Resources -- [Supabase Account - Free Plan OK](https://supabase.com) +- [Supabase - Get started for free](https://supabase.com) - [Supabase JS Client](https://github.com/supabase/supabase-js) - [LinkedIn Developer Dashboard](https://api.LinkedIn.com/apps) diff --git a/apps/docs/content/guides/auth/social-login/auth-notion.mdx b/apps/docs/content/guides/auth/social-login/auth-notion.mdx index 0c414ab4fdb..9b7a079155d 100644 --- a/apps/docs/content/guides/auth/social-login/auth-notion.mdx +++ b/apps/docs/content/guides/auth/social-login/auth-notion.mdx @@ -112,7 +112,7 @@ suspend fun signOut() { ## Resources -- [Supabase Account - Free Plan OK](https://supabase.com) +- [Supabase - Get started for free](https://supabase.com) - [Supabase JS Client](https://github.com/supabase/supabase-js) - [Notion Account](https://notion.so) - [Notion Developer Portal](https://www.notion.so/my-integrations) diff --git a/apps/docs/content/guides/auth/social-login/auth-slack.mdx b/apps/docs/content/guides/auth/social-login/auth-slack.mdx index 238b394b9d3..e1022ee7562 100644 --- a/apps/docs/content/guides/auth/social-login/auth-slack.mdx +++ b/apps/docs/content/guides/auth/social-login/auth-slack.mdx @@ -130,6 +130,6 @@ suspend fun signOut() { ## Resources -- [Supabase Account - Free Plan OK](https://supabase.com) +- [Supabase - Get started for free](https://supabase.com) - [Supabase JS Client](https://github.com/supabase/supabase-js) - [Slack Developer Dashboard](https://api.slack.com/apps) diff --git a/apps/docs/content/guides/auth/social-login/auth-spotify.mdx b/apps/docs/content/guides/auth/social-login/auth-spotify.mdx index c74d07bb473..071cf0f8b52 100644 --- a/apps/docs/content/guides/auth/social-login/auth-spotify.mdx +++ b/apps/docs/content/guides/auth/social-login/auth-spotify.mdx @@ -124,6 +124,6 @@ suspend fun signOut() { ## Resources -- [Supabase Account - Free Plan OK](https://supabase.com) +- [Supabase - Get started for free](https://supabase.com) - [Supabase JS Client](https://github.com/supabase/supabase-js) - [Spotify Developer Dashboard](https://developer.spotify.com/dashboard/) diff --git a/apps/docs/content/guides/auth/social-login/auth-twitch.mdx b/apps/docs/content/guides/auth/social-login/auth-twitch.mdx index 405477b5da4..a968201c747 100644 --- a/apps/docs/content/guides/auth/social-login/auth-twitch.mdx +++ b/apps/docs/content/guides/auth/social-login/auth-twitch.mdx @@ -127,7 +127,7 @@ suspend fun signOut() { ## Resources -- [Supabase Account - Free Plan OK](https://supabase.com) +- [Supabase - Get started for free](https://supabase.com) - [Supabase JS Client](https://github.com/supabase/supabase-js) - [Twitch Account](https://twitch.tv) - [Twitch Developer Console](https://dev.twitch.tv/console) diff --git a/apps/docs/content/guides/auth/social-login/auth-twitter.mdx b/apps/docs/content/guides/auth/social-login/auth-twitter.mdx index 749029d3c9f..67721da5d8b 100644 --- a/apps/docs/content/guides/auth/social-login/auth-twitter.mdx +++ b/apps/docs/content/guides/auth/social-login/auth-twitter.mdx @@ -118,6 +118,6 @@ suspend fun signOut() { ## Resources -- [Supabase Account - Free Plan OK](https://supabase.com) +- [Supabase - Get started for free](https://supabase.com) - [Supabase JS Client](https://github.com/supabase/supabase-js) - [Twitter Developer Dashboard](https://developer.twitter.com/en/portal/dashboard) diff --git a/apps/docs/content/guides/auth/social-login/auth-zoom.mdx b/apps/docs/content/guides/auth/social-login/auth-zoom.mdx index 37d6d07a8e8..ef4bf5e2d7d 100644 --- a/apps/docs/content/guides/auth/social-login/auth-zoom.mdx +++ b/apps/docs/content/guides/auth/social-login/auth-zoom.mdx @@ -125,6 +125,6 @@ suspend fun signOut() { ## Resources -- [Supabase Account - Free Plan OK](https://supabase.com) +- [Supabase - Get started for free](https://supabase.com) - [Supabase JS Client](https://github.com/supabase/supabase-js) - [Zoom App Marketplace](https://marketplace.zoom.us/) diff --git a/apps/docs/content/guides/cli/customizing-email-templates.mdx b/apps/docs/content/guides/cli/customizing-email-templates.mdx index 86e9cc99a57..a78e1d6d90c 100644 --- a/apps/docs/content/guides/cli/customizing-email-templates.mdx +++ b/apps/docs/content/guides/cli/customizing-email-templates.mdx @@ -115,4 +115,10 @@ Contains the new user's email address. This is only available in the `email_chan ## Deploying email templates -These settings are only for local development. To update your hosted project, please copy the templates into the [Email Templates](/dashboard/project/_/auth/templates) section of the Dashboard. +These settings are for local development. To apply the changes locally, stop and restart the Supabase containers: + +```sh +supabase stop && supabase start +``` + +For hosted projects managed by Supabase, copy the templates into the [Email Templates](/dashboard/project/_/auth/templates) section of the Dashboard. diff --git a/apps/docs/content/guides/cli/local-development.mdx b/apps/docs/content/guides/cli/local-development.mdx index 7bfc591f10f..5e7ff222041 100644 --- a/apps/docs/content/guides/cli/local-development.mdx +++ b/apps/docs/content/guides/cli/local-development.mdx @@ -461,7 +461,17 @@ The buckets and objects themselves are rows in the storage schema so they won't ### Local logging -Local logs rely on the Supabase Analytics Server, and are available in the Studio automatically. +Local logs rely on the Supabase Analytics Server, and are not enabled by default. To enable this, edit your `supabase/config.toml` file and set `enabled` to `true`. + +```bash supabase/config.toml +[analytics] +# Set enabled to true to see logs in the Logs Explorer +enabled = true +port = 54327 +vector_port = 54328 +# Configure one of the supported backends: `postgres`, `bigquery`. +backend = "postgres" +``` diff --git a/apps/docs/content/guides/cli/testing-and-linting.mdx b/apps/docs/content/guides/cli/testing-and-linting.mdx index bb109ff15bc..c999159aa69 100644 --- a/apps/docs/content/guides/cli/testing-and-linting.mdx +++ b/apps/docs/content/guides/cli/testing-and-linting.mdx @@ -20,7 +20,7 @@ Usage: supabase test db [flags] ``` -This is powered by the [pgTAP](https://supabase.com/docs/guides/database/extensions/pgtap) extension. You can find a full guide to writing an running tests in the [Testing your database](/docs/guides/database/testing) section. +This is powered by the [pgTAP](https://supabase.com/docs/guides/database/extensions/pgtap) extension. You can find a full guide to writing and running tests in the [Testing your database](/docs/guides/database/testing) section. ### Test helpers @@ -28,7 +28,7 @@ Our friends at [Basejump](https://usebasejump.com/) have created a useful set of ### Running database tests in CI -Use our GitHub Action to [automate your database tests](docs/guides/cli/github-action/testing#testing-your-database). +Use our GitHub Action to [automate your database tests](/docs/guides/cli/github-action/testing#testing-your-database). ## Testing your Edge Functions diff --git a/apps/docs/content/guides/database/arrays.mdx b/apps/docs/content/guides/database/arrays.mdx index 63557ca992f..a7579573c17 100644 --- a/apps/docs/content/guides/database/arrays.mdx +++ b/apps/docs/content/guides/database/arrays.mdx @@ -72,6 +72,30 @@ const { data, error } = await supabase .insert([{ id: 2, textarray: ['one', 'two', 'three', 'four'] }]) ``` + + + +Insert a record from the Swift client: + +```swift +struct ArrayTest: Encodable { + let id: Int + let textarray: [String] +} + +try await supabase + .from("arraytest") + .insert( + [ + ArrayTest( + id: 2, + textarray: ["one", "two", "three", "four"] + ) + ] + ) + .execute() +``` + @@ -156,11 +180,35 @@ returns: ] ``` + + + +This returns the entire array field: + +```swift +struct Response: Decodable { + let textarray: [String] +} + +let response: [Response] = try await supabase.from("arraytest").select("textarray").execute().value +dump(response) +``` + +returns: + +``` +[ + Response( + textarray: ["Harry", "Larry", "Moe"], + ) +] +``` + ## Resources - [Supabase JS Client](https://github.com/supabase/supabase-js) -- [Supabase Account - Free Plan OK](https://supabase.com) +- [Supabase - Get started for free](https://supabase.com) - [PostgreSQL Arrays](https://www.postgresql.org/docs/15/arrays.html) diff --git a/apps/docs/content/guides/database/connecting-to-postgres.mdx b/apps/docs/content/guides/database/connecting-to-postgres.mdx index 140893211c5..c388e1a0720 100644 --- a/apps/docs/content/guides/database/connecting-to-postgres.mdx +++ b/apps/docs/content/guides/database/connecting-to-postgres.mdx @@ -374,3 +374,36 @@ Connection pooler logs are found [here](https://supabase.com/dashboard/project/_ - Terminating with reason :client_termination when state was :busy This error happens when the client terminates the connection before the connection with the database is completed. + +## Finding your database hostname + +Your database’s hostname is crucial for establishing a direct connection. It resolves to the underlying IP address of your database. To find your hostname, navigate to your [Database Settings](/dashboard/project/_/settings/database). + +Note that the pooler (connection pooler) has a different IP than your database. To reveal the database host and direct connection string, hide the pooler connection string. + +Example hostname: `db..supabase.co` + +## Managing your IP address + +To determine your current IP address, you can use an IP address [lookup website](https://whatismyipaddress.com/hostname-ip) or the terminal command: + +```shell +nslookup db..supabase.co +``` + +This command queries the domain name servers to find the IP address of the given hostname. + +Example IPv6 Address: `2a05:d014:1c06:5f0c:d7a9:8616:bee2:30df` + +### IPv6 address + +Upon project creation, a static IPv6 address is assigned. This address might change when: + +- A project is paused or resumed. +- The database is upgraded. + +### IPv4 address + +Opting for the static [IPv4 add-on](https://supabase.com/docs/guides/platform/ipv4-address) provides a more stable connection address. The IPv4 address remains constant unless the project is paused or resumed. + +Unlike the IPv6 address, upgrading your database doesn't affect the IPv4 address. diff --git a/apps/docs/content/guides/database/connecting-to-postgres/serverless-drivers.mdx b/apps/docs/content/guides/database/connecting-to-postgres/serverless-drivers.mdx new file mode 100644 index 00000000000..0016af1be1a --- /dev/null +++ b/apps/docs/content/guides/database/connecting-to-postgres/serverless-drivers.mdx @@ -0,0 +1,157 @@ +--- +id: 'serverless-drivers' +title: 'Serverless Drivers' +description: 'Connecting to your Postgres database in serverless environments.' +subtitle: 'Connecting to your Postgres database in serverless environments.' +--- + +Supabase provides several options for connecting to your Postgres database from serverless environments. + +[supabase-js](/reference/javascript/introduction) is an isomorphic JavaScript client that uses the [auto-generated REST API](/guides/api) and therefore works in any environment that supports HTTPS connections. This API has a built-in [connection pooler](/guides/database/connecting-to-postgres#connection-pooler) and can serve thousands of simultaneous requests, and therefore is ideal for Serverless workloads. + +## Vercel Edge Functions + +Vercel's [Edge runtime](https://vercel.com/docs/functions/runtimes/edge-runtime) is built on top of the [V8 engine](https://v8.dev/), that provides a limited set of Web Standard APIs. + +### Quickstart + +Choose one of these Vercel Deploy Templates which use our [Vercel Deploy Integration](https://vercel.com/integrations/supabase) to automatically configure your connection strings as environment variables on your Vercel project! + +
+
+ {[ + { + title: 'supabase-js', + hasLightIcon: true, + href: 'https://supabase.link/nextjs-with-supabase-starter', + description: 'A Next.js App Router template configured with cookie-based auth using Supabase, TypeScript and Tailwind CSS.' + }, + /* { TODO: Link the correct next.js template that uses drizzle ORM with supabase database. + hasLightIcon: true, + href: 'https://supabase.link/nextjs-supabase-drizzle', + description: "Simple Next.js template that uses Supabase as the database and Drizzle as the ORM.", + },*/ + { + title: 'Kysely', + hasLightIcon: true, + href: 'https://supabase.link/nextjs-supabase-kysely', + description: 'Simple Next.js template that uses Supabase as the database and Kysely as the query builder.', + }, + /* { TODO: figure out how to get around Prisma accelerate requirement... + title: 'Prisma', + hasLightIcon: true, + href: 'https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fexamples%2Ftree%2Fmain%2Fstorage%2Fpostgres-prisma&project-name=postgres-prisma&repository-name=postgres-prisma&demo-title=Vercel%20Postgres%20%2B%20Prisma%20Next.js%20Starter&demo-description=Simple%20Next.js%20template%20that%20uses%20Vercel%20Postgres%20as%20the%20database%20and%20Prisma%20as%20the%20ORM.&demo-url=https%3A%2F%2Fpostgres-prisma.vercel.app%2F&demo-image=https%3A%2F%2Fpostgres-prisma.vercel.app%2Fopengraph-image.png&integration-ids=oac_VqOgBHqhEoFTPzGkPd7L0iH6', + description: 'Simple Next.js template that uses Vercel Postgres as the database and Prisma as the ORM.', + } */ + ].map((resource) => { + return ( + + + {resource.description} + + + ) + +})} + +
+
+ +### Manual configuration + +In your [`Database Settings`](https://supabase.com/dashboard/project/_/settings/database), make sure `Use connection pooler` is checked and `Transaction` mode is selected, then copy the URI and save it as the `POSTGRES_URL` environment variable. Remember to replace the password placeholder with your actual database password and add the following suffix `?workaround=supabase-pooler.vercel`. + +```txt .env.local +POSTGRES_URL="postgres://postgres.cfcxynqnhdybqtbhjemm:[YOUR-PASSWORD]@aws-0-ap-southeast-1.pooler.supabase.com:6543/postgres?workaround=supabase-pooler.vercel" +``` + + + + + +```ts lib/drizzle.ts +import { pgTable, serial, text, timestamp, uniqueIndex } from 'drizzle-orm/pg-core' +import { InferSelectModel, InferInsertModel } from 'drizzle-orm' +import { sql } from '@vercel/postgres' +import { drizzle } from 'drizzle-orm/vercel-postgres' + +export const UsersTable = pgTable( + 'users', + { + id: serial('id').primaryKey(), + name: text('name').notNull(), + email: text('email').notNull(), + image: text('image').notNull(), + createdAt: timestamp('createdAt').defaultNow().notNull(), + }, + (users) => { + return { + uniqueIdx: uniqueIndex('unique_idx').on(users.email), + } + } +) + +export type User = InferSelectModel +export type NewUser = InferInsertModel + +// Connect to Vercel Postgres +export const db = drizzle(sql) +``` + + + + +```ts lib/kysely.ts +import { Generated, ColumnType } from 'kysely' +import { createKysely } from '@vercel/postgres-kysely' + +interface UserTable { + // Columns that are generated by the database should be marked + // using the `Generated` type. This way they are automatically + // made optional in inserts and updates. + id: Generated + name: string + email: string + image: string + + // You can specify a different type for each operation (select, insert and + // update) using the `ColumnType` + // wrapper. Here we define a column `createdAt` that is selected as + // a `Date`, can optionally be provided as a `string` in inserts and + // can never be updated: + createdAt: ColumnType +} + +// Keys of this interface are table names. +export interface Database { + users: UserTable +} + +export const db = createKysely() +export { sql } from 'kysely' +``` + + + + +## Cloudflare Workers + +Cloudflare's Workers runtime also uses the [V8 engine](https://v8.dev/) but provides polyfills for a subset of Node.js APIs and [TCP Sockets API](https://developers.cloudflare.com/workers/runtime-apis/tcp-sockets/), giving you a couple of options: + +- [supabase-js](https://developers.cloudflare.com/workers/databases/native-integrations/supabase/) +- [Postgres.js](https://github.com/porsager/postgres?tab=readme-ov-file#cloudflare-workers-support) +- [node-postgres](https://developers.cloudflare.com/workers/tutorials/postgres/) + +## Supabase Edge Functions + +Supabase Edge Functions uses the [Deno runtime](https://deno.com/) which has native support for TCP connections allowing you to choose your favorite client: + +- [supabase-js](/docs/guides/functions/connect-to-postgres#using-supabase-js) +- [Deno Postgres driver](/docs/guides/functions/connect-to-postgres#using-a-postgres-client) +- [Postgres.js](https://github.com/porsager/postgres) +- [Drizzle](/docs/guides/functions/connect-to-postgres#using-drizzle) diff --git a/apps/docs/content/guides/database/extensions/index_advisor.mdx b/apps/docs/content/guides/database/extensions/index_advisor.mdx index 417db6a2f11..ebb1bace03b 100644 --- a/apps/docs/content/guides/database/extensions/index_advisor.mdx +++ b/apps/docs/content/guides/database/extensions/index_advisor.mdx @@ -4,7 +4,20 @@ title: 'index_advisor: query optimization' description: 'Automatically optimize SQL queries' --- -[Index advisor](https://database.dev/olirice/index_advisor) is a Postgres extension for recommending indexes to improve query performance. +[Index advisor](https://github.com/supabase/index_advisor) is a Postgres extension for recommending indexes to improve query performance. + +Features: + +- Supports generic parameters e.g. `$1`, `$2` +- Supports materialized views +- Identifies tables/columns obfuscated by views +- Skips duplicate indexes + +index_advisor is accessible directly through Supabase Studio by navigating to the [Query Performance Report](/dashboard/project/*/database/query-performance) and selecting a query and then the "indexes" tab. + +![Supabase Studio index_advisor integration.](/docs/img/index_advisor_studio.png) + +Alternatively, you can use index_advisor directly via SQL. For example: @@ -20,25 +33,12 @@ from (1 row) ``` -Features: - -- Supports generic parameters e.g. `$1`, `$2` -- Supports materialized views -- Identifies tables/columns obfuscated by views -- Skips duplicate indexes - ## Installation -index_advisor is a trusted language extension, which means it is directly installable by users from the [database.dev](https://database.dev/) SQL package repository. - -To get started, enable the dbdev client by executing the [setup SQL script](https://database.dev/installer). - -Then, install index_advisor by running +To get started, enable index_advisor by running ```sql -select dbdev.install('olirice-index_advisor'); -create extension if not exists hypopg; -create extension "olirice-index_advisor"; +create extension index_advisor; ``` ## API @@ -152,5 +152,4 @@ from ## Resources -- dbdev [`index_advisor`](https://database.dev/olirice/index_advisor) docs -- dbdev [Github Repository](https://github.com/supabase/dbdev) +- [`index_advisor`](https://github.com/supabase/index_advisor) repo diff --git a/apps/docs/content/guides/database/extensions/pg_cron.mdx b/apps/docs/content/guides/database/extensions/pg_cron.mdx index 7aca787c7cd..7dd38aaafac 100644 --- a/apps/docs/content/guides/database/extensions/pg_cron.mdx +++ b/apps/docs/content/guides/database/extensions/pg_cron.mdx @@ -62,11 +62,13 @@ The schedule uses the standard cron syntax, in which \* means "run every time pe * * * * * ``` -You can use [crontab.guru](https://crontab.guru/) to help validate your cron schedules. +You can use `[1-59] seconds` as the cron syntax to schedule sub-minute jobs. This is available on `pg_cron` v1.5.0+; upgrade your existing Supabase project to use this syntax. + +Head over to [crontab.guru](https://crontab.guru/) to validate your cron schedules. ### Scheduling system maintenance -Be extremely careful when setting up pg_cron jobs for system maintenance tasks as they can have unintended consequences. For instance, scheduling a command to terminate idle connections with `pg_terminate_backend(pid)` can disrupt critical background processes like nightly backups. Often, there is an existing Postgres setting e.g. `idle_session_timeout` that can perform these common maintenance tasks without the risk. +Be extremely careful when setting up `pg_cron` jobs for system maintenance tasks as they can have unintended consequences. For instance, scheduling a command to terminate idle connections with `pg_terminate_backend(pid)` can disrupt critical background processes like nightly backups. Often, there is an existing Postgres setting e.g. `idle_session_timeout` that can perform these common maintenance tasks without the risk. Reach out to [Supabase Support](https://supabase.com/support) if you're unsure if that applies to your use case. @@ -74,7 +76,7 @@ Reach out to [Supabase Support](https://supabase.com/support) if you're unsure i ### Delete data every week -Delete old data on Saturday at 3:30am (GMT): +Delete old data every Saturday at 3:30am (GMT): ```sql select cron.schedule ( @@ -86,21 +88,35 @@ select cron.schedule ( ### Run a vacuum every day -Vacuum every day at 3:00am (GMT) +Vacuum every day at 3:00am (GMT): ```sql select cron.schedule('nightly-vacuum', '0 3 * * *', 'VACUUM'); ``` -### Invoke Supabase Edge Function every minute +### Call a database function every 5 minutes -Make a POST request to a Supabase Edge Function every minute. Note: this requires the [`pg_net` extension](/docs/guides/database/extensions/pgnet) to be enabled. +Create a [`hello_world()`](https://supabase.com/docs/guides/database/functions?language=sql#simple-functions) database function and then call it every 5 minutes: + +```sql +select cron.schedule('call-db-function', '*/5 * * * *', 'CALL hello_world()'); +``` + +### Invoke Supabase Edge Function every 30 seconds + + + +This requires `pg_cron` v1.5.0+ and the [`pg_net` extension](/docs/guides/database/extensions/pgnet) to be enabled. + + + +Make a POST request to a Supabase Edge Function every 30 seconds: ```sql select cron.schedule( - 'invoke-function-every-minute', - '* * * * *', -- every minute + 'invoke-function-every-half-minute', + '30 seconds', $$ select net.http_post( @@ -164,4 +180,4 @@ The records in cron.job_run_details are not cleaned automatically which will tak ## Resources -- [pg_cron GitHub Repository](https://github.com/citusdata/pg_cron) +- [`pg_cron` GitHub Repository](https://github.com/citusdata/pg_cron) diff --git a/apps/docs/content/guides/database/extensions/pgaudit.mdx b/apps/docs/content/guides/database/extensions/pgaudit.mdx index 65d8717c67e..50d890eabbf 100644 --- a/apps/docs/content/guides/database/extensions/pgaudit.mdx +++ b/apps/docs/content/guides/database/extensions/pgaudit.mdx @@ -4,9 +4,13 @@ title: 'PGAudit: Postgres Auditing' description: 'Session and object auditing via PostgreSQL standard logging' --- -[PGAudit](https://www.pgaudit.org) is a PostgreSQL extension for logging session and object auditing over the standard PostgreSQL logging utility. +[PGAudit](https://www.pgaudit.org) extends Postgres's built-in logging abilities. It can be used to selectively track activities within your database. -PGAudit grants fine grain control over which statements and objects are emitted to logs. +This helps you with: + +- **Compliance**: Meeting audit requirements for regulations +- **Security**: Detecting suspicious database activity +- **Troubleshooting**: Identifying and fixing database issues ## Enable the extension @@ -26,7 +30,6 @@ PGAudit grants fine grain control over which statements and objects are emitted -{/* prettier-ignore */} ```sql -- Enable the "pgaudit" extension create extension pgaudit; @@ -35,74 +38,358 @@ create extension pgaudit; drop extension if exists pgaudit; ``` -Even though the SQL code is `create extension`, this is the equivalent of enabling the extension. -To disable an extension you can call `drop extension`. - -## Settings +## Configure the extension -The `pgaudit.log` setting controls which statements to log. Available values include: +PGAudit can be configured with different levels of precision. -- `read`: `SELECT` and `COPY` when the source is a relation or a query. -- `write`: `INSERT`, `UPDATE`, `DELETE`, `TRUNCATE`, and `COPY` when the destination is a relation. -- `function`: Function calls and `DO` blocks. -- `role`: Statements related to roles and privileges: `GRANT`, `REVOKE`, `CREATE/ALTER/DROP ROLE`. -- `ddl`: All `DDL` that is not included in the `ROLE` class. -- `misc`: Miscellaneous commands, for example, `DISCARD`, `FETCH`, `CHECKPOINT`, `VACUUM`, `SET`. -- `misc_set`: Miscellaneous `SET` commands, for example, `SET ROLE`. +**PGAudit logging precision:** -- **all**: Include all of the above. +- **[Session](#session-logging):** Logs activity within a connection, such as a [psql](https://supabase.com/docs/guides/database/connecting-to-postgres#connecting-with-psql) connection. +- **[User](#user-logging):** Logs activity by a particular database user (for example, anon or postgres). +- **[Global](#global-logging):** Logs activity across the entire database. +- **[Object](#object-logging):** Logs events related to specific database objects (for example, the auth.users table). -For a full list of available settings see [settings docs](https://github.com/pgaudit/pgaudit/blob/master/README.md#settings). Be aware that the `all` setting will generate a very large volume of logs. +Although Session, User, and Global modes differ in their precision, they're all considered variants of **Session Mode** and are configured with the same input categories. + +### Session mode categories + +These modes can monitor predefined categories of database operations: + +| Category | What it Logs | Description | +| -------- | --------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| read | Data retrieval (SELECT, COPY) | Tracks what data is being accessed. | +| write | Data modification (INSERT, DELETE, UPDATE, TRUNCATE, COPY) | Tracks changes made to your database. | +| function | FUNCTION, PROCEDURE, and DO/END block executions | Tracks routine/function executions | +| role | User management actions (CREATE, DROP, ALTER on users and privileges) | Tracks changes to user permissions and access. | +| ddl | Schema changes (CREATE, DROP, ALTER statements) | Monitors modifications to your database structure (tables, indexes, etc.). | +| misc | Less common commands (FETCH, CHECKPOINT) | Captures obscure actions for deeper analysis if needed. | +| all | Everything above | Comprehensive logging for complete audit trails. | + +Below is a limited example of how to assign PGAudit to monitor specific categories. + +```sql +-- log all CREATE, ALTER, and DROP events +... pgaudit.log = 'ddl'; + +-- log all CREATE, ALTER, DROP, and SELECT events +... pgaudit.log = 'read, ddl'; + +-- log nothing +... pgaudit.log = 'none'; +``` + +### Session logging + +When you are connecting in a session environment, such as a [psql](https://supabase.com/docs/guides/database/connecting-to-postgres#connecting-with-psql) connection, you can configure PGAudit to record events initiated within the session. -We don't currently support configuring `pgaudit.log_parameter` because it may log secrets in encrypted columns if you are using [`pgsodium`](/docs/guides/database/extensions/pgsodium) or [Vault](/docs/guides/database/vault). - -You can upvote this [feature request](https://github.com/orgs/supabase/discussions/20183) if you'd like this restriction lifted. +The [Dashboard](https://supabase.com/dashboard/project/_) is a transactional environment and won't sustain a session. -## Example +Inside a session, by default, PGAudit will log nothing: -Given a `pgaudit` setting - -{/* prettier-ignore */} ```sql -set pgaudit.log = 'read, ddl'; +-- returns 'none' +show pgaudit.log; ``` -The following create table, insert and select statements +In the session, you can `set` the `pgaudit.log` variable to record events: + +```sql +-- log CREATE, ALTER, and DROP events +set pgaudit.log = 'ddl'; + +-- log all CREATE, ALTER, DROP, and SELECT events +set pgaudit.log = 'read, ddl'; + +-- log nothing +set pgaudit.log = 'none'; +``` + +### User logging + +There are some cases where you may want to monitor a database user's actions. For instance, let's say you connected your database to [Zapier](https://supabase.com/partners/integrations/zapier) and created a custom role for it to use: + +```sql +create user "zapier" with password ''; +``` + +You may want to log all actions initiated by `zapier`, which can be done with the following command: + +```sql +alter role "zapier" set pgaudit.log to 'all'; +``` + +To remove the settings, execute the following code: + +```sql +-- disables role's log +alter role "zapier" set pgaudit.log to 'none'; + +-- check to make sure the changes are finalized: +select + rolname, + rolconfig +from pg_roles +where rolname = 'zapier'; +-- should return a rolconfig path with "pgaudit.log=none" present +``` + +### Global logging + + + +Use global logging cautiously. It can generate many logs and make it difficult to find important events. Consider limiting the scope of what is logged by using session, user, or object logging where possible. + + + +The below SQL configures PGAudit to record all events associated with the "postgres" role. Since it has extensive privileges, this effectively monitors all database activity. + +```sql +alter role "postgres" set pgaudit.log to 'all'; +``` + +To check if the postgres role is auditing, execute the following command: + +```sql +select + rolname, + rolconfig +from pg_roles +where rolname = 'postgres'; +-- should return a rolconfig path with "pgaudit.log=all" present +``` + +To remove the settings, execute the following code: + +```sql +alter role "postgres" set pgaudit.log to 'none'; +``` + +### Object logging + +To fine-tune what object events PGAudit will record, you must create a custom database role with limited permissions: + +```sql +create role "some_audit_role" noinherit; +``` + +No other Postgres user can assume or login via this role. It solely exists to securely define what PGAudit will record. + +Once the role is created, you can direct PGAudit to log by assigning it to the `pgaudit.role` variable: + +```sql +alter role "postgres" set pgaudit.role to 'some_audit_role'; +``` + +You can then assign the role to monitor only approved object events, such as `select` statements that include a specific table: + +```sql +grant select on random_table to "some_audit_role"; +``` + +With this privilege granted, PGAudit will record all select statements that reference the `random_table`, regardless of _who_ or _what_ actually initiated the event. All assignable privileges can be viewed in the [Postgres documentation](https://www.postgresql.org/docs/current/ddl-priv.html). + +If you would no longer like to use object logging, you will need to unassign the `pgaudit.role` variable: + +```sql +-- change pgaudit.role to no longer reference some_audit_role +alter role "postgres" set pgaudit.role to ''; + +-- view if pgaudit.role changed with the following command: +select + rolname, + rolconfig +from pg_roles +where rolname = 'postgres'; +-- should return a rolconfig path with "pgaudit.role=" +``` + +## Interpreting Audit Logs + +PGAudit was designed for storing logs as CSV files with the following headers: + + + +Referenced from the [PGAudit official docs](https://github.com/pgaudit/pgaudit/blob/master/README.md#format) + + + +| header | Description | +| --------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | +| AUDIT_TYPE | SESSION or OBJECT | +| STATEMENT_ID | Unique statement ID for this session. Sequential even if some statements are not logged. | +| SUBSTATEMENT_ID | Sequential ID for each sub-statement within the main statement. Continuous even if some are not logged. | +| CLASS | ..., READ, ROLE (see pgaudit.log). | +| COMMAND | ..., ALTER TABLE, SELECT. | +| OBJECT_TYPE | TABLE, INDEX, VIEW, etc. Available for SELECT, DML, and most DDL statements. | +| OBJECT_NAME | The fully qualified object name (for example, public.account). Available for SELECT, DML, and most DDL. | +| STATEMENT | Statement executed on the backend. | +| PARAMETER | If pgaudit.log_parameter is set, this field contains the statement parameters as quoted CSV, or \. Otherwise, it's \. | + +A log made from the following create statement: -{/* prettier-ignore */} ```sql create table account ( id int primary key, name text, description text ); - -insert into account (id, name, description) -values (1, 'Foo Barsworth', 'Customer account'); - -select * from account; ``` -Results in the log output +Generates the following log in the [Dashboard's Postgres Logs](https://supabase.com/dashboard/project/_/logs/postgres-logs): -```text -AUDIT: SESSION,1,1,DDL,CREATE TABLE,TABLE,public.account,create table account( +``` + AUDIT: SESSION,1,1,DDL,CREATE TABLE,TABLE,public.account,create table account( id int, name text, description text -);, -AUDIT: SESSION,2,1,READ,SELECT,,,select * from account,, +); ``` -Note that the insert statement is not logged because we did not include the `write` option for `pgaudit.log`. +## Finding and filtering audit logs + +Logs generated by PGAudit can be found in [Postgres Logs](https://supabase.com/dashboard/project/_/logs/postgres-logs?s=AUDIT). To find a specific log, you can use the log explorer. Below is a basic example to extract logs referencing `CREATE TABLE` events + +```sql +select + cast(t.timestamp as datetime) as timestamp, + event_message +from + postgres_logs as t + cross join unnest(metadata) as m + cross join unnest(m.parsed) as p +where event_message like 'AUDIT%CREATE TABLE%' +order by timestamp desc +limit 100; +``` + +## Practical examples + +### Monitoring API events + + + +API requests are already recorded in the [API Edge Network](https://supabase.com/dashboard/project/_/logs/edge-logs) logs. + + + +To monitor all writes initiated by the Postgrest API roles: + +```sql +alter role "authenticator" set pgaudit.log to 'write'; + +-- the above is the practical equivalent to: +-- alter role "anon" set pgaudit.log TO 'write'; +-- alter role "authenticated" set pgaudit.log TO 'write'; +-- alter role "service_role" set pgaudit.log TO 'write'; +``` + +### Monitoring the `auth.users` table + +In the worst case scenario, where a privileged roles' password is exposed, you can use PGAudit to monitor if the `auth.users` table was targeted. It should be stated that API requests are already monitored in the [API Edge Network](https://supabase.com/dashboard/project/_/logs/edge-logs) and this is more about providing greater clarity about what is happening at the database level. + +Logging `auth.user` should be done in Object Mode and requires a custom role: + +```sql +-- create logging role +create role "auth_auditor" noinherit; + +-- give role permission to observe relevant table events +grant select on auth.users to "auth_auditor"; +grant delete on auth.users to "auth_auditor"; + +-- assign auth_auditor to pgaudit.role +alter role "postgres" set pgaudit.role to 'auth_auditor'; +``` + +With the above code, any query involving reading or deleting from the auth.users table will be logged. + +## Best practices + +### Disabling excess logging + +PGAudit, if not configured mindfully, can log all database events, including background tasks. This can generate an undesirably large amount of logs in a few hours. + +The first step to solve this problem is to identify which database users PGAudit is observing: + +```sql +-- find all users monitored by pgaudit +select + rolname, + rolconfig +from pg_roles +where + exists ( + select + 1 + from UNNEST(rolconfig) as c + where c like '%pgaudit.role%' or c like '%pgaudit.log%' + ); +``` + +To prevent PGAudit from monitoring the problematic roles, you'll want to change their `pgaudit.log` values to `none` and `pgaudit.role` values to `empty quotes ''` + +```sql + -- Use to disable object level logging + alter role "" set pgaudit.role to ''; + + -- Use to disable global and user level logging + alter role "" set pgaudit.log to 'none'; +``` + +## FAQ + +#### Can I use PGAudit to debug database functions? + +Technically yes, but it is not the best approach. It is better to check out our [function debugging guide](https://supabase.com/docs/guides/database/functions#general-logging) instead. + +#### How can I download database logs? + +In the [Logs Dashboard](https://supabase.com/dashboard/project/_/logs/postgres-logs) you can download logs as CSVs. + +#### Can I log observed table rows? + +By default, PGAudit records queries, but not the returned rows. You can modify this behavior with the `pgaudit.log_rows` variable: + +```sql +--enable +alter role "postgres" set pgaudit.log_rows to 'on'; + +-- disable +alter role "postgres" set pgaudit.log_rows to 'off'; +``` + +You should not do this unless you are _absolutely_ certain it is necessary for your use case. It can expose sensitive values to your logs that ideally should not be preserved. Furthermore, if done in excess, it can noticeably reduce database performance. + +#### Can I log function parameters? + +We don't currently support configuring `pgaudit.log_parameter` because it may log secrets in encrypted columns if you are using [pgsodium](https://supabase.com/docs/guides/database/extensions/pgsodium) or[Vault](https://supabase.com/docs/guides/database/vault). + +You can upvote this [feature request](https://github.com/orgs/supabase/discussions/20183) with your use-case if you'd like this restriction lifted. + +#### Does PGAudit support system wide configurations? + +PGAudit allows settings to be applied to 3 different database scopes: + +| Scope | Description | Configuration File/Command | +| -------- | ------------------ | -------------------------- | +| System | Entire server | ALTER SYSTEM commands | +| Database | Specific database | ALTER DATABASE commands | +| Role | Specific user/role | ALTER ROLE commands | + +Supabase limits full privileges for file system and database variables, meaning PGAudit modifications can only occur at the role level. Assigning PGAudit to the 'postgres' role grants it nearly complete visibility into the database, making role-level adjustments a practical alternative to configuring at the database or system level. + +PGAudit's [official documentation](https://www.pgaudit.org) focuses on system and database level configs, but its docs officially supports role level configs, too. ## Resources -- Official [`PGAudit` documentation](https://www.pgaudit.org) +- [Official `PGAudit` documentation](https://www.pgaudit.org) +- [Database Function Logging](https://supabase.com/docs/guides/database/functions#general-logging) +- [Supabase Logging](https://supabase.com/docs/guides/platform/logs) +- [Self-Hosting Logs](https://supabase.com/docs/reference/self-hosting-analytics/introduction) diff --git a/apps/docs/content/guides/database/extensions/postgis.mdx b/apps/docs/content/guides/database/extensions/postgis.mdx index 06c51beb308..83e4057a62f 100644 --- a/apps/docs/content/guides/database/extensions/postgis.mdx +++ b/apps/docs/content/guides/database/extensions/postgis.mdx @@ -139,6 +139,26 @@ await supabase.from('restaurants').insert([ ]); ``` + + + +```swift +struct Restaurant: Codable { + let name: String + let location: String // You could also use a custom type with a custom `Encodable` conformance for convenience. +} + +try await supabase.from("restaurants") + .insert( + [ + Restaurant(name: "Supa Burger", location: "POINT(-73.946823 40.807416)"), + Restaurant(name: "Supa Pizza", location: "POINT(-73.94581 40.807475)"), + Restaurant(name: "Supa Taco", location: "POINT(-73.945826 40.80629)"), + ] + ) + .execute() +``` + @@ -215,6 +235,34 @@ final data = await supabase.rpc('nearby_restaurants',params: { }); ``` + + + +```swift +struct Response: Codable { + let id: Int + let name: String + let lat: Double + let long: Double + let distance: Double + + enum CodingKeys: String, CodingKey { + case id, name, lat, long + case distance = "dist_meters" + } +} + +let response: Response = try await supabase.rpc( + "nearby_restaurants", + params: [ + "lat": 40.807313, + "long": -73.946713 + ] +) +.execute() +.value +``` + @@ -314,6 +362,30 @@ final data = await supabase.rpc('restaurants_in_view', params: { }); ``` + + + +```swift +struct Response: Codable { + let id: Int + let name: String + let lat: Double + let long: Double +} + +let response: Response = try await supabase.rpc( + "restaurants_in_view", + params: [ + "min_lat": 40.807, + "min_long": -73.946, + "max_long": -73.945, + "max_lat": 40.808, + ] +) +.execute() +.value +``` + diff --git a/apps/docs/content/guides/database/extensions/timescaledb.mdx b/apps/docs/content/guides/database/extensions/timescaledb.mdx index d3d22ab3270..db58a5b9ffd 100644 --- a/apps/docs/content/guides/database/extensions/timescaledb.mdx +++ b/apps/docs/content/guides/database/extensions/timescaledb.mdx @@ -47,7 +47,7 @@ First we create a hypertable, which is a virtual table that is partitioned into {/* prettier-ignore */} ```sql create table temperatures ( - time timestamp not null, + time timestampz not null, sensor_id int not null, temperature double precision not null ); diff --git a/apps/docs/content/guides/database/full-text-search.mdx b/apps/docs/content/guides/database/full-text-search.mdx index fde0c4b5b60..381b75370b3 100644 --- a/apps/docs/content/guides/database/full-text-search.mdx +++ b/apps/docs/content/guides/database/full-text-search.mdx @@ -138,6 +138,16 @@ final result = await client .eq('title', 'Harry'); ``` + + + +```swift +let response = try await supabase.from("books") + .select() + .eq("title", value: "Harry") + .execute() +``` + @@ -187,6 +197,15 @@ final result = await client .textSearch('title', "'Harry'"); ``` + + + +```swift +let response = try await supabase.from("books") + .select() + .textSearch("title", value: "'Harry'") +``` + @@ -243,6 +262,16 @@ final result = await client .textSearch('description', "'big'"); ``` + + + +```swift +let response = await client.from("books") + .select() + .textSearch("description", value: "'big'") + .execute() +``` + @@ -326,6 +355,23 @@ final result = await client .textSearch('title_description', "little") ``` + + + +```sql +create function title_description(books) returns text as $$ + select $1.title || ' ' || $1.description; +$$ language sql immutable; +``` + +```swift +let response = try await client + .from("books") + .select() + .textSearch("title_description", value: "little") + .execute() +``` + @@ -401,6 +447,17 @@ final result = await client .textSearch('description', "'little' & 'big'"); ``` + + + +```swift +let response = try await client + .from("books") + .select() + .textSearch("description", value: "'little' & 'big'"); + .execute() +``` + @@ -469,6 +526,17 @@ final result = await client .textSearch('description', "'little' | 'big'"); ``` + + + +```swift +let response = try await client + .from("books") + .select() + .textSearch("description", value: "'little' | 'big'") + .execute() +``` + @@ -497,6 +565,89 @@ val data = supabase.from("books").select { Notice how searching for `big` includes results with the word `bigger` (or `biggest`, etc). +## Partial search + +Partial search is particularly useful when you want to find matches on substrings within your data. + +### Implementing partial search + +You can use the `:*` syntax with `to_tsquery()`. Here's an example that searches for any book titles beginning with "Lit": + +```sql +select title from books where to_tsvector(title) @@ to_tsquery('Lit:*'); +``` + +### Extending functionality with RPC + +To make the partial search functionality accessible through the API, you can wrap the search logic in a stored procedure. + +After creating this function, you can invoke it from your application using the SDK for your platform. Here's an example: + + + + +```sql +create or replace function search_books_by_title_prefix(prefix text) +returns setof books AS $$ +begin + return query + select * from books where to_tsvector('english', title) @@ to_tsquery(prefix || ':*'); +end; +$$ language plpgsql; +``` + + + + +```js +const { data, error } = await supabase.rpc('search_books_by_title_prefix', { prefix: 'Lit' }) +``` + + + + +```dart +final data = await supabase.rpc('search_books_by_title_prefix', params: { 'prefix': 'Lit' }); +``` + + + + +```swift +let response = try await supabase.rpc( + "search_books_by_title_prefix", + params: ["prefix": "Lit"] +) +.execute() +``` + + + + +```kotlin +val rpcParams = mapOf("prefix" to "Lit") +val result = supabase.postgrest.rpc("search_books_by_title_prefix", rpcParams) +``` + + + + +This function takes a prefix parameter and returns all books where the title contains a word starting with that prefix. The `:*` operator is used to denote a prefix match in the `to_tsquery()` function. + +## Handling spaces in queries + +When you want the search term to include a phrase or multiple words, you can concatenate words using a `+` as a placeholder for space: + +```sql +select * from search_books_by_title_prefix('Little+Puppy'); +``` + ## Creating indexes Now that we have Full Text Search working, let's create an `index`. This will allow Postgres to "build" the documents pre-emptively so that they @@ -588,6 +739,17 @@ final result = await client .textSearch('fts', "'little' & 'big'"); ``` + + + +```swift +let response = try await client + .from("books") + .select() + .textSearch("fts", value: "'little' & 'big'") + .execute() +``` + @@ -661,6 +823,17 @@ final result = await client .textSearch('description', "'big' <-> 'dreams'"); ``` + + + +```swift +let response = try await client + .from("books") + .select() + .textSearch("description", value: "'big' <-> 'dreams'") + .execute() +``` + @@ -715,6 +888,17 @@ final result = await client .textSearch('description', "'year' <2> 'school'"); ``` + + + +```swift +let response = try await supabase + .from("books") + .select() + .textSearch("description", value: "'year' <2> 'school'") + .execute() +``` + @@ -772,6 +956,17 @@ final result = await client .textSearch('description', "'big' & !'little'"); ``` + + + +```swift +let response = try await client + .from("books") + .select() + .textSearch("description", value: "'big' & !'little'") + .execute() +``` + diff --git a/apps/docs/content/guides/database/functions.mdx b/apps/docs/content/guides/database/functions.mdx index c3f9ecb900c..6e7664054af 100644 --- a/apps/docs/content/guides/database/functions.mdx +++ b/apps/docs/content/guides/database/functions.mdx @@ -94,6 +94,15 @@ final data = await supabase Reference: [rpc()](../../reference/dart/rpc) + + + +```swift +try await supabase.rpc("hello_world").execute() +``` + +Reference: [rpc()](../../reference/swift/rpc) + @@ -216,6 +225,13 @@ final data = await supabase .eq('id', 1); ``` + + + +```swift +let response = try await supabase.rpc("get_planets").eq("id", value: 1).execute() +``` + @@ -281,6 +297,33 @@ final data = await supabase .rpc('add_planet', params: { 'name': 'Jakku' }); ``` + + + +Using `Encodable` type: + +```swift +struct Planet: Encodable { + let name: String +} + +try await supabase.rpc( + "add_planet", + params: Planet(name: "Jakku") +) +.execute() +``` + +Using `AnyJSON` convenience` type: + +```swift +try await supabase.rpc( + "add_planet", + params: ["name": AnyJSON.string("Jakku")] +) +.execute() +``` + @@ -347,7 +390,7 @@ Good targets to log include: #### General logging -To create custom logs in the [Dashboard's Postgres Logs](/apps/docs/public/img/database/postgres-logs.png), you can use the `raise` keyword. By default, there are 3 observed severity levels: +To create custom logs in the [Dashboard's Postgres Logs](https://supabase.com/dashboard/project/_/logs/postgres-logs), you can use the `raise` keyword. By default, there are 3 observed severity levels: - `log` - `warning` diff --git a/apps/docs/content/guides/database/joins-and-nesting.mdx b/apps/docs/content/guides/database/joins-and-nesting.mdx index 997dc5935f7..18584fded25 100644 --- a/apps/docs/content/guides/database/joins-and-nesting.mdx +++ b/apps/docs/content/guides/database/joins-and-nesting.mdx @@ -135,6 +135,28 @@ const countriesWithCities: CountriesWithCities = data final data = await supabase.from('countries').select('id, name, cities(id, name)'); ``` + + + +```swift +struct Country: Codable { + let id: Int + let name: String + let cities: [City] + + struct City: Codable { + let id: Int + let name: String + } +} + +let countries: [Country] = try await supabase + .from("countries") + .select("id, name, cities(id, name)") + .execute() + .value +``` + @@ -222,6 +244,38 @@ const { data, error } = await supabase.from('teams').select(` final data = await supabase.from('teams').select('id, team_name, users(id, name)'); ``` + + + +```swift +struct Team: Codable { + let id: Int + let name: String + let users: [User] + + struct User: Codable { + let id: Int + let name: String + } + + enum CodingKeys: String, CodingKey { + case id, users + case name = "team_name" + } +} +let teams [Team] = try await supabase + .from("teams") + .select( + """ + id, + team_name, + users ( id, name ) + """ + ) + .execute() + .value +``` + @@ -315,5 +369,51 @@ const { data, error } = await supabase.from('shifts').select( ) ``` + + + +```swift +struct Shift: Codable { + let id: Int + let userId: Int + let attendanceStatus: String? + + let scans: [Scan] + + struct Scan: Codable { + let id: Int + let userId: Int + let badgeScanTime: TimeInterval + + enum CodingKeys: String, CodingKey { + case id + case userId = "user_id" + case badgeScanTime = "badge_scan_time" + } + } + + enum CodingKeys: String, CodingKey { + case id + case userId = "user_id" + case attendanceStatus = "attendance_status" + } +} + +let shifts: [Shift] = try await supabase + .from("shifts") + .select( + """ + *, + scans:scan_id_start ( + id, + user_id, + badge_scan_time + ) + """ + ) + .execute() + .value +``` + diff --git a/apps/docs/content/guides/database/json.mdx b/apps/docs/content/guides/database/json.mdx index 6f2cd0c1771..97e7a8d3f0d 100644 --- a/apps/docs/content/guides/database/json.mdx +++ b/apps/docs/content/guides/database/json.mdx @@ -177,6 +177,70 @@ const { data, error } = await supabase.from('books').insert([ ]) ``` + + + +Supabase Swift provides a convenience `AnyJSON` type. + +```swift +struct Book { + val title: String, + val author: String, + val metadata: [String: AnyJSON] +} + +try await supabase.from("books") + .insert( + [ + Book( + title: "The Poky Little Puppy", + author: "Janette Sebring Lowrey", + metadata: [ + "description": "Puppy is slower than other, bigger animals.", + "price": 5.95, + "ages": [3, 6] + ] + ), + Book( + title: "Tale of Peter Rabbit", + author: "Beatrix Potter", + metadata: [ + "description": "Rabbit eats some vegetables.", + "price": 4.49, + "ages": [2, 5] + ] + ), + Book( + title: "Tootle", + author: "Gertrude Crampton", + metadata: [ + "description": "Little toy train has big dreams.", + "price": 3.99, + "ages": [2, 5] + ] + ), + Book( + title: "Green Eggs and Ham", + author: "Dr. Seuss", + metadata: [ + "description": "Sam has changing food preferences and eats unusually colored food.", + "price": 7.49, + "ages": [4, 8] + ] + ), + Book( + title: "Harry Potter and the Goblet of Fire", + author: "J.K. Rowling", + metadata: [ + "description": "Fourth year of school starts, big drama ensues.", + "price": 24.95, + "ages": [10, 99] + ] + ) + ] + ) +``` + @@ -247,6 +311,24 @@ const { data, error } = await supabase.from('books').select(` `) ``` + + + +```swift +try await supabase + .from("books") + .select( + """ + title, + description: metadata->description, + price: metadata->price, + low_age: metadata->ages->0, + high_age: metadata->ages->1 + """ + ) + .execute() +``` + diff --git a/apps/docs/content/guides/auth/column-level-security.mdx b/apps/docs/content/guides/database/postgres/column-level-security.mdx similarity index 96% rename from apps/docs/content/guides/auth/column-level-security.mdx rename to apps/docs/content/guides/database/postgres/column-level-security.mdx index ac2155ca023..7cdc62d6c2c 100644 --- a/apps/docs/content/guides/auth/column-level-security.mdx +++ b/apps/docs/content/guides/database/postgres/column-level-security.mdx @@ -30,7 +30,7 @@ You can restrict updates to just the user who created it using [RLS](/docs/guide ```sql create a policy "Allow update for owners" on posts for update - using (auth.uid () = user_id); + using ((select auth.uid()) = user_id); ``` However, this gives the post owner full access to update the row, including all of the columns. @@ -76,7 +76,7 @@ This time, we are revoking the column-level `UPDATE` privilege of the `title` co ## Manage column privileges in the Dashboard -You can view and edit the privileges in the [Supabase Studio](https://supabase.com/dashboard/project/_/auth/column-privileges). +You can view and edit the privileges in the [Supabase Studio](https://supabase.com/dashboard/project/_/database/column-privileges). ![Column level privileges](/docs/img/guides/privileges/column-level-privileges-2.png) @@ -129,7 +129,7 @@ supabase migration new create_posts_table -- Add row-level security create a policy "Allow update for owners" on posts for update - using (auth.uid () = user_id); + using ((select auth.uid()) = user_id); -- Add column-level security revoke diff --git a/apps/docs/content/guides/database/postgres/indexes.mdx b/apps/docs/content/guides/database/postgres/indexes.mdx index 12071e0c64c..584c1d292f9 100644 --- a/apps/docs/content/guides/database/postgres/indexes.mdx +++ b/apps/docs/content/guides/database/postgres/indexes.mdx @@ -104,3 +104,27 @@ reindex table concurrently persons; ``` Take note that `reindex` can be used inside a transaction, but `reindex [index/table] concurrently` cannot. + +## Index Advisor + +Indexes can improve query performance of your tables as they grow. The Supabase Dashboard offers an Index Advisor, which suggests potential indexes to add to your tables. + +For more information on the Index Advisor and its suggestions, see the [`index_advisor` extension](/docs/guides/database/extensions/index_advisor). + +To use the Dashboard Index Advisor: + +1. Go to the [Query Performance](/dashboard/project/_/database/query-performance) page. +1. Click on a query to bring up the Details side panel. +1. Select the Indexes tab. +1. Enable Index Advisor if prompted. + +### Understanding Index Advisor results + +The Indexes tab shows the existing indexes used in the selected query. Note that indexes suggested in the "New Index Recommendations" section may not be used when you create them. Postgres' query planner may intentionally ignore an available index if it determines that the query will be faster without. For example, on a small table, a sequential scan might be faster than an index scan. In that case, the planner will switch to using the index as the table size grows, helping to future proof the query. + +If additional indexes might improve your query, the Index Advisor shows the suggested indexes with the estimated improvement in startup and total costs: + +- Startup cost is the cost to fetch the first row +- Total cost is the cost to fetch all the rows + +Costs are in arbitrary units, where a single sequential page read costs 1.0 units. diff --git a/apps/docs/content/guides/database/postgres/roles-superuser.mdx b/apps/docs/content/guides/database/postgres/roles-superuser.mdx index d66772c4237..552ce4b3ba0 100644 --- a/apps/docs/content/guides/database/postgres/roles-superuser.mdx +++ b/apps/docs/content/guides/database/postgres/roles-superuser.mdx @@ -12,7 +12,6 @@ However, this does mean that some operations, that typically require `superuser` ## Unsupported operations -- `CREATE ROLE ... WITH REPLICATION` - `CREATE SUBSCRIPTION` - `CREATE EVENT TRIGGER` - `COPY ... FROM PROGRAM` diff --git a/apps/docs/content/guides/database/postgres/row-level-security.mdx b/apps/docs/content/guides/database/postgres/row-level-security.mdx index 6d7450c3407..a25be9b2a55 100644 --- a/apps/docs/content/guides/database/postgres/row-level-security.mdx +++ b/apps/docs/content/guides/database/postgres/row-level-security.mdx @@ -22,7 +22,7 @@ You can just think of them as adding a `WHERE` clause to every query. For exampl ```sql create policy "Individuals can view their own todos." on todos for select -using ( auth.uid() = user_id ); +using ( (select auth.uid()) = user_id ); ``` .. would translate to this whenever a user tries to select from the todos table: @@ -79,7 +79,7 @@ Alternatively, if you only wanted users to be able to see their own profiles: ```sql create policy "User can see their own profile only." on profiles -for select using ( auth.uid() = user_id ); +for select using ( (select auth.uid()) = user_id ); ``` ### INSERT policies @@ -103,7 +103,7 @@ alter table profiles enable row level security; create policy "Users can create a profile." on profiles for insert to authenticated -- the Postgres Role (recommended) -with check ( auth.uid() = user_id ); -- the actual Policy +with check ( (select auth.uid()) = user_id ); -- the actual Policy ``` ### UPDATE policies @@ -131,8 +131,8 @@ alter table profiles enable row level security; create policy "Users can update their own profile." on profiles for update to authenticated -- the Postgres Role (recommended) -using ( auth.uid() = user_id ) -- checks if the existing row complies with the policy expression -with check ( auth.uid() = user_id ); -- checks if the new row complies with the policy expression +using ( (select auth.uid()) = user_id ) -- checks if the existing row complies with the policy expression +with check ( (select auth.uid()) = user_id ); -- checks if the new row complies with the policy expression ``` If no `with check` expression is defined, then the `using` expression will be used both to determine which rows are visible (normal USING case) and which new rows will be allowed to be added (WITH CHECK case). @@ -158,7 +158,7 @@ alter table profiles enable row level security; create policy "Users can delete a profile." on profiles for delete to authenticated -- the Postgres Role (recommended) -using ( auth.uid() = user_id ); -- the actual Policy +using ( (select auth.uid()) = user_id ); -- the actual Policy ``` ## Bypassing Row Level Security @@ -184,7 +184,7 @@ Make sure you've added [indexes](/docs/guides/database/postgres/indexes) on any ```sql create policy "rls_test_select" on test_table to authenticated -using ( auth.uid() = user_id ); +using ( (select auth.uid()) = user_id ); ``` You can add an index like: @@ -276,7 +276,7 @@ to authenticated using ( exists ( select 1 from roles_table - where auth.uid() = user_id and role = 'good_role' + where (select auth.uid()) = user_id and role = 'good_role' ) ); ``` @@ -292,7 +292,7 @@ as $$ begin return exists ( select 1 from roles_table - where auth.uid() = user_id and role = 'good_role' + where (select auth.uid()) = user_id and role = 'good_role' ); end; $$; @@ -320,7 +320,7 @@ For example, this is an example of a slow policy which joins the source `test_ta create policy "rls_test_select" on test_table to authenticated using ( - auth.uid() in ( + (select auth.uid()) in ( select user_id from team_user where team_user.team_id = team_id -- joins to the source "test_table.team_id" @@ -337,7 +337,7 @@ using ( team_id in ( select team_id from team_user - where user_id = auth.uid() -- no join + where user_id = (select auth.uid()) -- no join ) ); ``` @@ -370,10 +370,10 @@ Use: ```sql create policy "rls_test_select" on rls_test to authenticated -using ( auth.uid() = user_id ); +using ( (select auth.uid()) = user_id ); ``` -This prevents the policy `( auth.uid() = user_id )` from running for any `anon` users, since the execution stops at the `to authenticated` step. +This prevents the policy `( (select auth.uid()) = user_id )` from running for any `anon` users, since the execution stops at the `to authenticated` step. #### Benchmarks diff --git a/apps/docs/content/guides/database/postgres/setup-replication-external.mdx b/apps/docs/content/guides/database/postgres/setup-replication-external.mdx index 6847ad4c037..5418c47051a 100644 --- a/apps/docs/content/guides/database/postgres/setup-replication-external.mdx +++ b/apps/docs/content/guides/database/postgres/setup-replication-external.mdx @@ -31,6 +31,8 @@ This will need a direct connection to your database and you can find the connect You will also need to ensure that ipv6 is supported by your replication destination. +If you would prefer not to use the `postgres` user, then you can run `CREATE ROLE WITH REPLICATION;` using the `postgres` user. +
```sql diff --git a/apps/docs/content/guides/database/replication.mdx b/apps/docs/content/guides/database/replication.mdx index 7721b2e4eac..18f2d05a604 100644 --- a/apps/docs/content/guides/database/replication.mdx +++ b/apps/docs/content/guides/database/replication.mdx @@ -14,7 +14,7 @@ Replication is done through _publications_, a method of choosing which changes t ## Manage publications in the dashboard 1. Go to the [Database](https://supabase.com/dashboard/project/_/database/tables) page in the Dashboard. -2. Click on **Replication** in the sidebar. +2. Click on **Publications** in the sidebar. 3. Control which database events are sent by toggling **Insert**, **Update**, and **Delete**. 4. Control which tables broadcast changes by selecting **Source** and toggling each table. diff --git a/apps/docs/content/guides/database/sql-to-api.mdx b/apps/docs/content/guides/database/sql-to-api.mdx index 65550a1c67e..76140737c95 100644 --- a/apps/docs/content/guides/database/sql-to-api.mdx +++ b/apps/docs/content/guides/database/sql-to-api.mdx @@ -77,7 +77,7 @@ const { count, error } = await supabase ## Resources -- [Supabase Account - Free Plan OK](https://supabase.com) +- [Supabase - Get started for free](https://supabase.com) - [Postgrest Operators](https://postgrest.org/en/stable/api.html#operators) - [Supabase API: JavaScript select](/docs/reference/javascript/select) - [Supabase API: JavaScript modifiers](/docs/reference/javascript/using-modifiers) diff --git a/apps/docs/content/guides/database/tables.mdx b/apps/docs/content/guides/database/tables.mdx index 328740a09fa..54945eef4ea 100644 --- a/apps/docs/content/guides/database/tables.mdx +++ b/apps/docs/content/guides/database/tables.mdx @@ -230,6 +230,28 @@ await supabase }]); ``` + + + +```swift +try await supabase.from("movies") + .insert( + [ + [ + "name": "The Empire Strikes Back", + "description": + "After the Rebels are brutally overpowered by the Empire on the ice planet Hoth, Luke Skywalker begins Jedi training with Yoda.", + ], + [ + "name": "Return of the Jedi", + "description": + "After a daring mission to rescue Han Solo from Jabba the Hutt, the Rebels dispatch to Endor to destroy the second Death Star.", + ], + ] + ) + .execute() +``` + diff --git a/apps/docs/content/guides/functions/ai-models.mdx b/apps/docs/content/guides/functions/ai-models.mdx new file mode 100644 index 00000000000..f16f7b23249 --- /dev/null +++ b/apps/docs/content/guides/functions/ai-models.mdx @@ -0,0 +1,177 @@ +--- +id: 'function-ai-models' +title: 'Running AI Models' +description: 'How to run AI models in Edge Functions.' +subtitle: 'How to run AI models in Edge Functions.' +--- + +[Supabase Edge Runtime](https://github.com/supabase/edge-runtime) has a built-in API for running AI models. You can use this API to generate embeddings, build conversational workflows, and do other AI related tasks in your Edge Functions. + +## Setup + +There are no external dependencies or packages to install to enable the API. + +You can create a new inference session by doing: + +```ts +const model = new Supabase.ai.Session('model-name') +``` + + + +To get type hints and checks for the API we recommend adding this triple-slash directive to the start of the Edge Function code: `/// ` + + + +## Running a model inference + +Once the session is instantiated, you can call it with inputs to perform inferences. Depending on the model you run, you may need to provide different options (discussed below). + +```ts +const output = await model.run(input, options) +``` + +## How to generate text embeddings + +Now let's see how to write an Edge Function using the `Supabase.ai` API to generate text embeddings. Currently, `Supabase.ai` API only supports the [gte-small](https://huggingface.co/Supabase/gte-small) model. + + + +`gte-small` model exclusively caters to English texts, and any lengthy texts will be truncated to a maximum of 512 tokens. While you can provide inputs longer than 512 tokens, truncation may affect the accuracy. + + + +```ts +const model = new Supabase.ai.Session('gte-small') + +Deno.serve(async (req: Request) => { + const params = new URL(req.url).searchParams + const input = params.get('input') + const output = await model.run(input, { mean_pool: true, normalize: true }) + return new Response(JSON.stringify(output), { + headers: { + 'Content-Type': 'application/json', + Connection: 'keep-alive', + }, + }) +}) +``` + +## Using Large Language Models + +Inference via larger models is supported via [Ollama](https://ollama.com/). In the first iteration, you can use it with a self-managed Ollama server. We are progressively rolling out support for the hosted solution. To sign up for early access, fill up [this form](https://forms.supabase.com/supabase.ai-llm-early-access). + + + +### Running locally + +1. Install Ollama and pull the Mistral model + + ``` + ollama pull mistral + ``` + +1. Run the Ollama server locally + + ``` + ollama serve + ``` + +1. Set a function secret called AI_INFERENCE_API_HOST to point to the Ollama server + + ``` + echo "AI_INFERENCE_API_HOST=http://host.docker.internal:11434/api/generate" >> supabase/functions/.env + ``` + +1. Create a new function with the following code + + ``` + supabase functions new ollama-test + ``` + + ```ts + /// + const session = new Supabase.ai.Session('mistral') + + Deno.serve(async (req: Request) => { + const params = new URL(req.url).searchParams + const prompt = params.get('prompt') ?? '' + + // Get the output as a stream + const output = await session.run(prompt, { stream: true }) + + const headers = new Headers({ + 'Content-Type': 'text/event-stream', + Connection: 'keep-alive', + }) + + // Create a stream + const stream = new ReadableStream({ + async start(controller) { + const encoder = new TextEncoder() + + try { + for await (const chunk of output) { + controller.enqueue(encoder.encode(chunk.response ?? '')) + } + } catch (err) { + console.error('Stream error:', err) + } finally { + controller.close() + } + }, + }) + + // Return the stream to the user + return new Response(stream, { + headers, + }) + }) + ``` + +1. Serve the function + +``` +supabase functions serve --env-file supabase/functions/.env +``` + +1. Execute the function + + ``` + curl --get "http://localhost:54321/functions/v1/ollama-test" \ + --data-urlencode "prompt=write a short rap song about Supabase, the Postgres Developer platform, as sung by Nicki Minaj" \ + -H "Authorization: $ANON_KEY" + ``` + +### Deploying to production + +Once the function is working locally, it's time to deploy to production. + +1. Deploy a Ollama server and set a function secret called `AI_INFERENCE_API_HOST` to point to the deployed Ollama server + + ``` + supabase secrets set AI_INFERENCE_API_HOST=https://path-to-your-ollama-server/ + ``` + +2. Deploy the Supabase function + + ``` + supabase functions deploy ollama-test + ``` + +3. Execute the function + + ``` + curl --get "https://project-ref.supabase.co/functions/v1/ollama-test" \ + --data-urlencode "prompt=write a short rap song about Supabase, the Postgres Developer platform, as sung by Nicki Minaj" \ + -H "Authorization: $ANON_KEY" + ``` + +As demonstrated in the video above, running Ollama locally is typically slower than running it in on a server with dedicated GPUs. We are collaborating with the Ollama team to improve local performance. + +In the future, a hosted Ollama API, will be provided as part of the Supabase platform. Supabase will scale and manage the API and GPUs for you. To sign up for early access, fill up [this form](https://forms.supabase.com/supabase.ai-llm-early-access). diff --git a/apps/docs/content/guides/functions/cicd-workflow.mdx b/apps/docs/content/guides/functions/cicd-workflow.mdx index 76cc5d3cafb..ea127827fb9 100644 --- a/apps/docs/content/guides/functions/cicd-workflow.mdx +++ b/apps/docs/content/guides/functions/cicd-workflow.mdx @@ -46,7 +46,7 @@ jobs: Here is the sample pipeline configuration to deploy via GitLab CI. ```yaml -image: node:18 +image: node:20 # List of stages for jobs, and their order of execution stages: @@ -82,7 +82,7 @@ deploy-function: Here is the sample pipeline configuration to deploy via Bitbucket. ```yaml -image: node:18 +image: node:20 pipelines: default: diff --git a/apps/docs/content/guides/functions/connect-to-postgres.mdx b/apps/docs/content/guides/functions/connect-to-postgres.mdx index ac1da710b40..651c4fe56b2 100644 --- a/apps/docs/content/guides/functions/connect-to-postgres.mdx +++ b/apps/docs/content/guides/functions/connect-to-postgres.mdx @@ -90,6 +90,39 @@ Deno.serve(async (_req) => { }) ``` +## Using Drizzle + +You can use Drizzle together with [Postgres.js](https://github.com/porsager/postgres). Both can be loaded directly from npm: + +```json supabase/functions/import_map.json +{ + "imports": { + "drizzle-orm": "npm:drizzle-orm@0.29.1", + "drizzle-orm/": "npm:/drizzle-orm@0.29.1/", + "postgres": "npm:postgres@3.4.3" + } +} +``` + +```ts supabase/functions/drizzle/index.ts +import { drizzle } from 'drizzle-orm/postgres-js' +import postgres from 'postgres' +import { countries } from '../_shared/schema.ts' + +const connectionString = Deno.env.get('SUPABASE_DB_URL')! + +Deno.serve(async (_req) => { + // Disable prefetch as it is not supported for "Transaction" pool mode + const client = postgres(connectionString, { prepare: false }) + const db = drizzle(client) + const allCountries = await db.select().from(countries) + + return Response.json(allCountries) +}) +``` + +You can find the full example on [GitHub](https://github.com/thorwebdev/edgy-drizzle). + ## SSL connections Deployed edge functions are pre-configured to use SSL for connections to the Supabase database. You don't need to add any extra configurations. diff --git a/apps/docs/content/guides/functions/debugging.mdx b/apps/docs/content/guides/functions/debugging.mdx index 4ac083221b9..dd609593279 100644 --- a/apps/docs/content/guides/functions/debugging.mdx +++ b/apps/docs/content/guides/functions/debugging.mdx @@ -174,9 +174,9 @@ import { Sheets } from 'npm:@googleapis/sheets' ## Limitations -- Outgoing connections to ports `25`, `465`, and `587` are not allowed. +- Outgoing connections to ports `25` and `587` are not allowed. - Serving of HTML content is not supported (`GET` requests that return `text/html` will be rewritten to `text/plain`). - Deno and Node file system APIs are not available. -- Memory limit for the function: 150 MB (heap) + 150 MB (external - array buffers/ WASM) +- Memory limit for the function: 256MB - Wall clock limit: 400 s - CPU Time: 2 s diff --git a/apps/docs/content/guides/functions/examples/cloudflare-turnstile.mdx b/apps/docs/content/guides/functions/examples/cloudflare-turnstile.mdx index 2e6b1bd1355..702f4871bcf 100644 --- a/apps/docs/content/guides/functions/examples/cloudflare-turnstile.mdx +++ b/apps/docs/content/guides/functions/examples/cloudflare-turnstile.mdx @@ -78,7 +78,7 @@ Deno.serve(async (req) => { ```bash supabase functions deploy cloudflare-turnstile -supabase secrets set CLOUDFLARE_TURNSTILE_SECRET_KEY=your_secret_key +supabase secrets set CLOUDFLARE_SECRET_KEY=your_secret_key ``` ## Invoke the function from your site diff --git a/apps/docs/content/guides/functions/examples/semantic-search.mdx b/apps/docs/content/guides/functions/examples/semantic-search.mdx new file mode 100644 index 00000000000..b42077dd395 --- /dev/null +++ b/apps/docs/content/guides/functions/examples/semantic-search.mdx @@ -0,0 +1,129 @@ +--- +id: 'function-ai-models' +title: 'Semantic Search' +description: 'Semantic Search with pgvector and Supabase Edge Functions' +subtitle: 'Semantic Search with pgvector and Supabase Edge Functions' +tocVideo: 'w4Rr_1whU-U' +--- + +[Semantic search](/docs/guides/ai/semantic-search) interprets the meaning behind user queries rather than exact [keywords](/docs/guides/ai/keyword-search). It uses machine learning to capture the intent and context behind the query, handling language nuances like synonyms, phrasing variations, and word relationships. + +Since Supabase Edge Runtime [v1.36.0](https://github.com/supabase/edge-runtime/releases/tag/v1.36.0) you can run the [`gte-small` model](https://huggingface.co/Supabase/gte-small) natively within Supabase Edge Functions without any external dependencies! This allows you to easily generate text embeddings without calling any external APIs! + +In this tutorial you're implementing three parts: + +1. A [`generate-embedding`](https://github.com/supabase/supabase/tree/master/examples/ai/edge-functions/supabase/functions/generate-embedding/index.ts) database webhook edge function which generates embeddings when a content row is added (or updated) in the [`public.embeddings`](https://github.com/supabase/supabase/tree/master/examples/ai/edge-functions/supabase/migrations/20240408072601_embeddings.sql) table. +2. A [`query_embeddings` Postgres function](https://github.com/supabase/supabase/tree/master/examples/ai/edge-functions/supabase/migrations/20240410031515_vector-search.sql) which allows us to perform similarity search from an egde function via [Remote Procedure Call (RPC)](https://supabase.com/docs/guides/database/functions?language=js). +3. A [`search` edge function](https://github.com/supabase/supabase/tree/master/examples/ai/edge-functions/supabase/functions/search/index.ts) which generates the embedding for the search term, performs the similarity search via RPC function call, and returns the result. + +You can find the complete example code on [GitHub](https://github.com/supabase/supabase/tree/master/examples/ai/edge-functions) + +### Create the database table and webhook + +Given the [following table definition](https://github.com/supabase/supabase/blob/master/examples/ai/edge-functions/supabase/migrations/20240408072601_embeddings.sql): + +```sql +create extension if not exists vector with schema extensions; + +create table embeddings ( + id bigint primary key generated always as identity, + content text not null, + embedding vector (384) +); +alter table embeddings enable row level security; + +create index on embeddings using hnsw (embedding vector_ip_ops); +``` + +You can deploy the [following edge function](https://github.com/supabase/supabase/blob/master/examples/ai/edge-functions/supabase/functions/generate-embedding/index.ts) as a [database webhook](/docs/guides/database/webhooks) to generate the embeddings for any text content inserted into the table: + +```tsx +const model = new Supabase.ai.Session('gte-small') + +Deno.serve(async (req) => { + const payload: WebhookPayload = await req.json() + const { content, id } = payload.record + + // Generate embedding. + const embedding = await model.run(content, { + mean_pool: true, + normalize: true, + }) + + // Store in database. + const { error } = await supabase + .from('embeddings') + .update({ embedding: JSON.stringify(embedding) }) + .eq('id', id) + if (error) console.warn(error.message) + + return new Response('ok') +}) +``` + +## Create a Postgres Function and RPC + +With the embeddings now stored in your Postgres database table, you can query them from Supabase Edge Functions by utilizing [Remote Procedure Calls (RPC)](/docs/guides/database/functions?language=js). + +Given the [following Postgres Function](https://github.com/supabase/supabase/blob/master/examples/ai/edge-functions/supabase/migrations/20240410031515_vector-search.sql): + +```sql +-- Matches document sections using vector similarity search on embeddings +-- +-- Returns a setof embeddings so that we can use PostgREST resource embeddings (joins with other tables) +-- Additional filtering like limits can be chained to this function call +create or replace function query_embeddings(embedding vector(384), match_threshold float) +returns setof embeddings +language plpgsql +as $$ +begin + return query + select * + from embeddings + + -- The inner product is negative, so we negate match_threshold + where embeddings.embedding <#> embedding < -match_threshold + + -- Our embeddings are normalized to length 1, so cosine similarity + -- and inner product will produce the same query results. + -- Using inner product which can be computed faster. + -- + -- For the different distance functions, see https://github.com/pgvector/pgvector + order by embeddings.embedding <#> embedding; +end; +$$; +``` + +## Query vectors in Supabase Edge Functions + +You can use `supabase-js` to first generate the embedding for the search term and then invoke the Postgres function to find the relevant results from your stored embeddings, right from your [Supabase Edge Function](https://github.com/supabase/supabase/blob/master/examples/ai/edge-functions/supabase/functions/search/index.ts): + +```tsx +const model = new Supabase.ai.Session('gte-small') + +Deno.serve(async (req) => { + const { search } = await req.json() + if (!search) return new Response('Please provide a search param!') + // Generate embedding for search term. + const embedding = await model.run(search, { + mean_pool: true, + normalize: true, + }) + + // Query embeddings. + const { data: result, error } = await supabase + .rpc('query_embeddings', { + embedding, + match_threshold: 0.8, + }) + .select('content') + .limit(3) + if (error) { + return Response.json(error) + } + + return Response.json({ search, result }) +}) +``` + +That's it, you now have AI powered semantic search set up without any external dependencies! Just you, pgvector, and Supabase Edge Functions! diff --git a/apps/docs/content/guides/functions/regional-invocation.mdx b/apps/docs/content/guides/functions/regional-invocation.mdx index f5daa3f19f4..423d0127dda 100644 --- a/apps/docs/content/guides/functions/regional-invocation.mdx +++ b/apps/docs/content/guides/functions/regional-invocation.mdx @@ -66,6 +66,20 @@ These are the currently supported region values you can provide for `x-region` h - `us-west-1` - `us-west-2` +## Using the client library + +You can also specify the region when invoking a Function using the Supabase client library: + +```js +const { createClient, FunctionRegion } = require('@supabase/supabase-js') +const { data: ret, error } = await supabase.functions.invoke('my-function-name', { + headers: { 'Content-Type': 'application/json' }, + method: 'GET', + body: {}, + region: FunctionRegion.UsEast1, +}) +``` + ## Handling regional outages If you explicitly specify the region via `x-region` header, requests **will NOT** be automatically re-routed to another region and you should consider temporarily changing regions during the outage. diff --git a/apps/docs/content/guides/functions/routing.mdx b/apps/docs/content/guides/functions/routing.mdx index ab5496f0c41..193505e5c16 100644 --- a/apps/docs/content/guides/functions/routing.mdx +++ b/apps/docs/content/guides/functions/routing.mdx @@ -58,7 +58,7 @@ You can deploy the function to Supabase via: supabase functions deploy hello-world ``` -Once the function is deployed, you can try to call the two ednpoints using cURL (or Postman). +Once the function is deployed, you can try to call the two endpoints using cURL (or Postman). ```bash # https://supabase.com/docs/guides/functions/deploy#invoking-remote-functions diff --git a/apps/docs/content/guides/getting-started/architecture.mdx b/apps/docs/content/guides/getting-started/architecture.mdx index 943f13b702d..531cce08e21 100644 --- a/apps/docs/content/guides/getting-started/architecture.mdx +++ b/apps/docs/content/guides/getting-started/architecture.mdx @@ -145,7 +145,7 @@ Less, but better. To avoid lock-in, we make it easy to migrate in and out. Our cloud offering is compatible with our self-hosted product. We use existing standards to increase portability (like `pg_dump` and CSV files). If a new standard emerges which competes with a "Supabase" approach, we will deprecate the approach in favor of the standard. -This forces us compete on experience. We aim to be the best Postgres hosting service. +This forces us to compete on user experience. We aim to be the best Postgres hosting service. ### Play the long game diff --git a/apps/docs/content/guides/getting-started/features.mdx b/apps/docs/content/guides/getting-started/features.mdx index e7127c000ea..45a02558d8e 100644 --- a/apps/docs/content/guides/getting-started/features.mdx +++ b/apps/docs/content/guides/getting-started/features.mdx @@ -12,51 +12,89 @@ This is a non-exhaustive list of features that Supabase provides for every proje Every project is a full Postgres database. [Docs](/docs/guides/database). -### Database extensions +### Vector database -Every database comes with a full set of Postgres extensions. [Docs](/docs/guides/database/extensions). +Store vector embeddings right next to the rest of your data. [Docs](/docs/guides/ai). -### Database functions +### Auto-generated Rest API via PostgREST -Create custom database functions which you can call from the browser. [Docs](/docs/guides/database/functions). +RESTful APIs are auto-generated from your database, without a single line of code. [Docs](/docs/guides/api#rest-api-overview). -### Database triggers +### Auto-generated GraphQL API via pg_graphql -Attach triggers to your tables to handle database changes. [Docs](/docs/guides/auth/managing-user-data#using-triggers). +Fast GraphQL APIs using our custom Postgres GraphQL extension. [Docs](/docs/guides/graphql/api). ### Database webhooks -Send database changes to any external service using Webhooks. [Link](https://supabase.com/blog/supabase-functions-updates#database-webhooks-alpha). - -### Database backups - -Projects are backed up daily with the option to upgrade to Point in Time recovery. - -### Search - -Build search functionality using Postgres Full Text Search. [Docs](/docs/guides/database/full-text-search). +Send database changes to any external service using Webhooks. [Docs](/docs/guides/database/webhooks). ### Secrets and encryption -Encrypt sensitive data and store secrets using our Postgres extension, Supabase Vault. [Link](https://supabase.com/blog/supabase-vault). +Encrypt sensitive data and store secrets using our Postgres extension, Supabase Vault. [Docs](/docs/guides/database/vault). -### Database migrations +## Platform -Develop locally and push your changes to your production database using migrations. [Docs](/docs/guides/getting-started/local-development#database-migrations) +### Database backups + +Projects are backed up daily with the option to upgrade to Point in Time recovery. [Docs](/docs/guides/platform/backups). + +### Custom domains + +White-label the Supabase APIs to create a branded experience for your users. [Docs](/docs/guides/platform/custom-domains). + +### Network restrictions + +Restrict IP ranges that can connect to your database. [Docs](/docs/guides/platform/network-restrictions). + +### SSL enforcement + +Enforce Postgres clients to connect via SSL. [Docs](/docs/guides/platform/ssl-enforcement). + +### Branching + +Use Supabase Branches to test and preview changes. [Docs](/docs/guides/platform/branching). + +### Terraform provider + +Manage Supabase infrastructure via Terraform, an Infrastructure as Code tool. [Docs](/docs/guides/platform/terraform). + +### Read replicas + +Deploy read-only databases across multiple regions, for lower latency and better resource management. [Docs](/docs/guides/platform/read-replicas). + +### Fly Postgres + +Launch the Supabase stack on Fly.io edge network. [Docs](/docs/guides/platform/fly-postgres). + +## Studio + +### Studio Single Sign On + +Login to the Supabase dashboard via SSO. [Docs](/docs/guides/platform/sso).
+## Realtime + +### Postgres changes + +Receive your database changes through websockets. [Docs](/docs/guides/realtime/postgres-changes). + +### Broadcast + +Send messages between connected users through websockets. [Docs](/docs/guides/realtime/broadcast). + +### Presence + +Synchronize shared state across your users, including online status and typing indicators. [Docs](/docs/guides/realtime/presence). + ## Auth -### Email & password logins +### Email login Build email logins for your application or website. [Docs](/docs/guides/auth/auth-email). -### Magic links - -Build passwordless logins for your application or website.[Docs](/docs/guides/auth/auth-magic-link). - -### Social logins +### Social login Provide social logins - everything from Apple, to GitHub, to Slack. [Docs](/docs/guides/auth/social-login). @@ -64,46 +102,21 @@ Provide social logins - everything from Apple, to GitHub, to Slack. [Docs](/docs Provide phone logins using a third-party SMS provider. [Docs](/docs/guides/auth/phone-login). -### Row Level Security +### Passwordless login + +Build passwordless logins via magic links for your application or website.[Docs](/docs/guides/auth/auth-magic-link). + +### Authorization via Row Level Security Control the data each user can access with Postgres Policies. [Docs](/docs/guides/auth/row-level-security). -### Server-side Auth helpers +### Captcha protection -Helpers for implementing user authentication in popular frameworks like [Next.js](/docs/guides/auth/auth-helpers/nextjs) and [SvelteKit](/docs/guides/auth/auth-helpers/sveltekit) +Add Captcha to your sign-in, sign-up, and password reset forms. [Docs](/docs/guides/auth/auth-captcha). -### Auth UI kit +### Server-side Auth -Build login and registration pages with custom themes. [Docs](/docs/guides/auth/auth-helpers/auth-ui). - -
- -## APIs & client libraries - -### Auto-generated REST API - -RESTful APIs are auto-generated from your database, without a single line of code. [Docs](/docs/guides/api#rest-api-overview). - -### Auto-generated GraphQL API - -Fast GraphQL APIs using our custom Postgres GraphQL extension. [Docs](/docs/guides/graphql/api). - -### Realtime database changes - -Receive your database changes through websockets. [Docs](/docs/guides/realtime/postgres-changes). - -### User broadcasting - -Send messages between connected users through websockets. [Docs](/docs/guides/realtime/broadcast). - -### User presence - -Synchronize shared state across your users, including online status and typing indicators. [Docs](/docs/guides/realtime/presence). - -### Client libraries - -Official client libraries for [JavaScript](/docs/reference/javascript/) and [Dart](/docs/reference/dart). -Unofficial libraries [supported by the community](https://github.com/supabase-community#client-libraries). +Helpers for implementing user authentication in popular server-side languages and frameworks like Next.js, SvelteKit and Remix. [Docs](/docs/guides/auth/server-side/overview).
@@ -113,19 +126,25 @@ Unofficial libraries [supported by the community](https://github.com/supabase-co Supabase Storage makes it simple to store and serve files. [Docs](/docs/guides/storage). -### Resumable uploads - -Upload large files easily using resumable uploads. [Docs](/docs/guides/storage/uploads/resumable-uploads). - -### Storage CDN +### Content Delivery Network Cache large files using the Supabase CDN. [Docs](/docs/guides/storage/cdn/fundamentals). +### Smart Content Delivery Network + +Automatically revalidate assets at the edge via the Smart CDN. [Docs](/docs/guides/storage/cdn/smart-cdn). + ### Image transformations Transform images on the fly. [Docs](/docs/guides/storage/serving/image-transformations). -
+### Resumable uploads + +Upload large files using resumable uploads. [Docs](/docs/guides/storage/uploads/resumable-uploads). + +### S3 compatibility + +Interact with Storage from tool which supports with the S3 protocol. [Docs](/docs/guides/storage/s3/compatibility). ## Edge Functions @@ -133,7 +152,13 @@ Transform images on the fly. [Docs](/docs/guides/storage/serving/image-transform Globally distributed TypeScript functions to execute custom business logic. [Docs](/docs/guides/functions). -
+### Regional invocations + +Execute an Edge Function in a region close to your database. [Docs](/docs/guides/functions/regional-invocation). + +### NPM compatibility + +Edge functions natively support NPM modules and Node built-in APIs. [Link](https://supabase.com/blog/edge-functions-node-npm). ## Project management @@ -145,42 +170,76 @@ Use our CLI to develop your project locally and deploy to the Supabase Platform. Manage your projects programmatically. [Docs](/docs/reference/api). -
+## Client libraries + +Official client libraries for [JavaScript](/docs/reference/javascript/start), [Flutter](/docs/reference/dart/initializing) and [Swift](/docs/reference/swift/introduction). +Unofficial libraries are supported by the community. ## Feature status -Both Postgres and the Supabase Platform are production-ready. Some tools we offer on top of Postgres are still under development. +Supabase Features are in 4 different states - Private Alpha, Public Alpha, Beta and Generally Available. -| Product | Feature | Stage | Available on self-hosted | -| -------------------------- | ---------------------- | ------ | ------------------------------------------- | -| Database | Postgres | `GA` | ✅ | -| Database | Triggers | `GA` | ✅ | -| Database | Functions | `GA` | ✅ | -| Database | Extensions | `GA` | ✅ | -| Database | Full Text Search | `GA` | ✅ | -| Database | Webhooks | `GA` | ✅ | -| Database | Point-in-Time Recovery | `GA` | 🚧 [wal-g](https://github.com/wal-g/wal-g) | -| Database | Vault | `beta` | ✅ | -| Studio | | `GA` | ✅ | -| Realtime | Postgres Changes | `GA` | ✅ | -| Realtime | Broadcast | `beta` | ✅ | -| Realtime | Presence | `beta` | ✅ | -| Storage | | `GA` | ✅ | -| Storage | S3 Backend | `GA` | ✅ | -| Storage | CDN | `GA` | 🚧 [Cloudflare](https://www.cloudflare.com) | -| Storage | Smart CDN | `beta` | 🚧 [Cloudflare](https://www.cloudflare.com) | -| Storage | Image Transformations | `GA` | ✅ | -| Storage | Resumable Uploads | `beta` | ✅ | -| Edge Functions | | `beta` | ✅ | -| Auth | OAuth Providers | `GA` | ✅ | -| Auth | Passwordless | `GA` | ✅ | -| Auth | Next.js Auth Helpers | `beta` | ✅ | -| Auth | SvelteKit Auth Helpers | `beta` | ✅ | -| Auth | Remix Auth Helpers | `beta` | ✅ | -| CLI | | `beta` | ✅ Works with self-hosted | -| Management API | | `beta` | N/A | -| Client Library: JavaScript | | `GA` | N/A | -| Client Library: Dart | | `beta` | N/A | +### Private Alpha + +Features are initially launched as a private alpha to gather feedback from the community. To join our early access program, send an email to product-ops@supabase.io. + +### Public Alpha + +he alpha stage indicates that the API might change in the future, not that the service isn’t stable. Even though the [uptime Service Level Agreement](https://supabase.com/sla) does not cover products in Alpha, we do our best to have the service as stable as possible. + +### Beta + +Features in Beta are tested by an external penetration tester for security issues. The API is guaranteed to be stable and there is a strict communication process for breaking changes. + +### Generally Available + +In addition to the Beta requirements, features in GA are covered by the [uptime SLA](https://supabase.com/sla). + +| Product | Feature | Stage | Available on self-hosted | +| -------------- | -------------------------- | --------------- | ------------------------------------------- | +| Database | Postgres | `GA` | ✅ | +| Database | Vector Database | `GA` | ✅ | +| Database | Auto-generated Rest API | `GA` | ✅ | +| Database | Auto-generated GraphQL API | `GA` | ✅ | +| Database | Webhooks | `beta` | ✅ | +| Database | Vault | `public alpha` | ✅ | +| Platform | | `GA` | ✅ | +| Platform | Point-in-Time Recovery | `GA` | 🚧 [wal-g](https://github.com/wal-g/wal-g) | +| Platform | Custom Domains | `GA` | N/A | +| Platform | Network Restrictions | `beta` | N/A | +| Platform | SSL enforcement | `beta` | N/A | +| Platform | Branching | `public alpha` | N/A | +| Platform | Terraform Provider | `public alpha` | N/A | +| Platform | Read Replicas | `private alpha` | N/A | +| Platform | Fly Postgres | `private alpha` | N/A | +| Studio | | `GA` | ✅ | +| Studio | SSO | `GA` | ✅ | +| Realtime | Postgres Changes | `GA` | ✅ | +| Realtime | Broadcast | `GA` | ✅ | +| Realtime | Presence | `GA` | ✅ | +| Storage | | `GA` | ✅ | +| Storage | CDN | `GA` | 🚧 [Cloudflare](https://www.cloudflare.com) | +| Storage | Smart CDN | `GA` | 🚧 [Cloudflare](https://www.cloudflare.com) | +| Storage | Image Transformations | `GA` | ✅ | +| Storage | Resumable Uploads | `GA` | ✅ | +| Storage | S3 compatibility | `public alpha` | ✅ | +| Edge Functions | | `beta` | ✅ | +| Edge Functions | Regional Invocations | `beta` | ✅ | +| Edge Functions | NPM compatibility | `beta` | ✅ | +| Auth | | `GA` | ✅ | +| Auth | Email login | `GA` | ✅ | +| Auth | Social login | `GA` | ✅ | +| Auth | Phone login | `GA` | ✅ | +| Auth | Passwordless login | `GA` | ✅ | +| Auth | SSO with SAML | `GA` | ✅ | +| Auth | Authorization via RLS | `GA` | ✅ | +| Auth | Captcha protection | `GA` | ✅ | +| Auth | Server-side Auth | `beta` | ✅ | +| CLI | | `GA` | ✅ Works with self-hosted | +| Management API | | `GA` | N/A | +| Client Library | JavaScript | `GA` | N/A | +| Client Library | Flutter | `beta` | N/A | +| Client Library | Swift | `beta` | N/A | - ✅ = Fully Available - 🚧 = Available, but requires external tools or configuration diff --git a/apps/docs/content/guides/getting-started/quickstarts/flutter.mdx b/apps/docs/content/guides/getting-started/quickstarts/flutter.mdx index 3affe423ce2..de0e8ddb7bd 100644 --- a/apps/docs/content/guides/getting-started/quickstarts/flutter.mdx +++ b/apps/docs/content/guides/getting-started/quickstarts/flutter.mdx @@ -117,7 +117,7 @@ hideToc: true ```dart lib/main.dart class MyApp extends StatelessWidget { - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override Widget build(BuildContext context) { @@ -143,7 +143,7 @@ hideToc: true @override Widget build(BuildContext context) { return Scaffold( - body: FutureBuilder>>( + body: FutureBuilder( future: _future, builder: (context, snapshot) { if (!snapshot.hasData) { diff --git a/apps/docs/content/guides/getting-started/quickstarts/nextjs.mdx b/apps/docs/content/guides/getting-started/quickstarts/nextjs.mdx index fd508ca38eb..5e5e8516b83 100644 --- a/apps/docs/content/guides/getting-started/quickstarts/nextjs.mdx +++ b/apps/docs/content/guides/getting-started/quickstarts/nextjs.mdx @@ -171,6 +171,6 @@ hideToc: true ## Next steps -- Set up [Auth](/docs/guides/auth/server-side/overview) for your app +- Set up [Auth](/docs/guides/auth) for your app - [Insert more data](/docs/guides/database/import-data) into your database - Upload and serve static files using [Storage](/docs/guides/storage) diff --git a/apps/docs/content/guides/getting-started/quickstarts/reactjs.mdx b/apps/docs/content/guides/getting-started/quickstarts/reactjs.mdx index 65e8544dc58..d8d185ce0f1 100644 --- a/apps/docs/content/guides/getting-started/quickstarts/reactjs.mdx +++ b/apps/docs/content/guides/getting-started/quickstarts/reactjs.mdx @@ -139,6 +139,6 @@ hideToc: true ## Next steps -- Set up [Auth](/docs/guides/auth/server-side/overview) for your app +- Set up [Auth](/docs/guides/auth) for your app - [Insert more data](/docs/guides/database/import-data) into your database - Upload and serve static files using [Storage](/docs/guides/storage) diff --git a/apps/docs/content/guides/getting-started/quickstarts/sveltekit.mdx b/apps/docs/content/guides/getting-started/quickstarts/sveltekit.mdx index 2c98a7050a7..2082280150e 100644 --- a/apps/docs/content/guides/getting-started/quickstarts/sveltekit.mdx +++ b/apps/docs/content/guides/getting-started/quickstarts/sveltekit.mdx @@ -161,6 +161,6 @@ hideToc: true ## Next steps -- Set up [Auth](/docs/guides/auth/server-side/overview) for your app +- Set up [Auth](/docs/guides/auth) for your app - [Insert more data](/docs/guides/database/import-data) into your database - Upload and serve static files using [Storage](/docs/guides/storage) diff --git a/apps/docs/content/guides/getting-started/tutorials/with-angular.mdx b/apps/docs/content/guides/getting-started/tutorials/with-angular.mdx index 4a308fe33fc..1a338015904 100644 --- a/apps/docs/content/guides/getting-started/tutorials/with-angular.mdx +++ b/apps/docs/content/guides/getting-started/tutorials/with-angular.mdx @@ -525,8 +525,4 @@ export class AccountComponent implements OnInit { } ``` -### Storage management - - - At this stage you have a fully functional application! diff --git a/apps/docs/content/guides/getting-started/tutorials/with-expo-react-native.mdx b/apps/docs/content/guides/getting-started/tutorials/with-expo-react-native.mdx index 43873bc3d77..2cb98f486c0 100644 --- a/apps/docs/content/guides/getting-started/tutorials/with-expo-react-native.mdx +++ b/apps/docs/content/guides/getting-started/tutorials/with-expo-react-native.mdx @@ -452,7 +452,7 @@ photos and videos. You will need an image picker that works on the environment you will build the project for, we will use `expo-image-picker` in this example. ```bash -expo install expo-image-picker +npx expo install expo-image-picker ``` ### Create an upload widget @@ -628,11 +628,7 @@ return ( Now you will need to run the prebuild command to get the application working on your chosen platform. ```bash -expo prebuild +npx expo prebuild ``` -### Storage management - - - At this stage you have a fully functional application! diff --git a/apps/docs/content/guides/getting-started/tutorials/with-flutter.mdx b/apps/docs/content/guides/getting-started/tutorials/with-flutter.mdx index 524329892f2..6ec8c5fb811 100644 --- a/apps/docs/content/guides/getting-started/tutorials/with-flutter.mdx +++ b/apps/docs/content/guides/getting-started/tutorials/with-flutter.mdx @@ -856,10 +856,6 @@ class _AccountPageState extends State { } ``` -### Storage management - - - Congratulations, you've built a fully functional user management app using Flutter and Supabase! ## See also diff --git a/apps/docs/content/guides/getting-started/tutorials/with-ionic-angular.mdx b/apps/docs/content/guides/getting-started/tutorials/with-ionic-angular.mdx index db01f52844a..b22f2f867d3 100644 --- a/apps/docs/content/guides/getting-started/tutorials/with-ionic-angular.mdx +++ b/apps/docs/content/guides/getting-started/tutorials/with-ionic-angular.mdx @@ -138,7 +138,11 @@ export class SupabaseService { Let's set up a route to manage logins and signups. We'll use Magic Links so users can sign in with their email without using passwords. Create a **LoginPage** with the `ionic g page login` Ionic CLI command. -> This guide will show the template inline, but the example app will have `templateUrl`s + + +This guide will show the template inline, but the example app will have `templateUrl`s + + ```ts src/app/login/login.page.ts import { Component, OnInit } from '@angular/core' @@ -552,10 +556,6 @@ template: ` ` ``` -### Storage management - - - At this stage, you have a fully functional application! ## See also diff --git a/apps/docs/content/guides/getting-started/tutorials/with-ionic-react.mdx b/apps/docs/content/guides/getting-started/tutorials/with-ionic-react.mdx index 69d08c1d957..cbfc4db3f49 100644 --- a/apps/docs/content/guides/getting-started/tutorials/with-ionic-react.mdx +++ b/apps/docs/content/guides/getting-started/tutorials/with-ionic-react.mdx @@ -493,8 +493,4 @@ return ( ``` -### Storage management - - - At this stage you have a fully functional application! diff --git a/apps/docs/content/guides/getting-started/tutorials/with-ionic-vue.mdx b/apps/docs/content/guides/getting-started/tutorials/with-ionic-vue.mdx index 3eee57f4d2a..00b85b6aa6f 100644 --- a/apps/docs/content/guides/getting-started/tutorials/with-ionic-vue.mdx +++ b/apps/docs/content/guides/getting-started/tutorials/with-ionic-vue.mdx @@ -553,8 +553,4 @@ export default defineComponent({ ``` -### Storage management - - - At this stage you have a fully functional application! diff --git a/apps/docs/content/guides/getting-started/tutorials/with-nextjs.mdx b/apps/docs/content/guides/getting-started/tutorials/with-nextjs.mdx index cf66bff382b..d44da1bbb07 100644 --- a/apps/docs/content/guides/getting-started/tutorials/with-nextjs.mdx +++ b/apps/docs/content/guides/getting-started/tutorials/with-nextjs.mdx @@ -1467,10 +1467,6 @@ return ( -### Storage management - - - At this stage you have a fully functional application! ## See also diff --git a/apps/docs/content/guides/getting-started/tutorials/with-nuxt-3.mdx b/apps/docs/content/guides/getting-started/tutorials/with-nuxt-3.mdx index 70f9d7e5485..5f873c373e8 100644 --- a/apps/docs/content/guides/getting-started/tutorials/with-nuxt-3.mdx +++ b/apps/docs/content/guides/getting-started/tutorials/with-nuxt-3.mdx @@ -110,7 +110,7 @@ const handleLogin = async () => { ### User state -To access the user information, use the composable [useSupabaseUser](https://supabase.nuxtjs.org/usage/composables/use-supabase-user) provided by the Supabase Nuxt module. +To access the user information, use the composable [useSupabaseUser](https://supabase.nuxtjs.org/usage/composables/usesupabaseuser) provided by the Supabase Nuxt module. ### Account component @@ -434,8 +434,4 @@ async function signOut() { ``` -### Storage management - - - That is it! You should now be able to upload a profile photo to Supabase Storage and you have a fully functional application. diff --git a/apps/docs/content/guides/getting-started/tutorials/with-react.mdx b/apps/docs/content/guides/getting-started/tutorials/with-react.mdx index 5f0307fdb24..8ca9181db0d 100644 --- a/apps/docs/content/guides/getting-started/tutorials/with-react.mdx +++ b/apps/docs/content/guides/getting-started/tutorials/with-react.mdx @@ -396,8 +396,4 @@ return ( ) ``` -### Storage management - - - At this stage you have a fully functional application! diff --git a/apps/docs/content/guides/getting-started/tutorials/with-redwoodjs.mdx b/apps/docs/content/guides/getting-started/tutorials/with-redwoodjs.mdx index 58300bd88f3..0153609ec88 100644 --- a/apps/docs/content/guides/getting-started/tutorials/with-redwoodjs.mdx +++ b/apps/docs/content/guides/getting-started/tutorials/with-redwoodjs.mdx @@ -456,7 +456,11 @@ const HomePage = () => { export default HomePage ``` -> What we're doing here is showing the sign in form if you aren't logged in and your account profile if you are. + + +What we're doing here is showing the sign in form if you aren't logged in and your account profile if you are. + + ### Launch! @@ -603,10 +607,6 @@ return ( ) ``` -### Storage management - - - At this stage you have a fully functional application! ## See also diff --git a/apps/docs/content/guides/getting-started/tutorials/with-refine.mdx b/apps/docs/content/guides/getting-started/tutorials/with-refine.mdx index 502e4d6cd3a..0192a305f14 100644 --- a/apps/docs/content/guides/getting-started/tutorials/with-refine.mdx +++ b/apps/docs/content/guides/getting-started/tutorials/with-refine.mdx @@ -626,8 +626,4 @@ return ( ) ``` -### Storage management - - - At this stage, you have a fully functional application! diff --git a/apps/docs/content/guides/getting-started/tutorials/with-solidjs.mdx b/apps/docs/content/guides/getting-started/tutorials/with-solidjs.mdx index 80d4dba6167..92544c54791 100644 --- a/apps/docs/content/guides/getting-started/tutorials/with-solidjs.mdx +++ b/apps/docs/content/guides/getting-started/tutorials/with-solidjs.mdx @@ -415,8 +415,4 @@ return ( ) ``` -### Storage management - - - At this stage you have a fully functional application! diff --git a/apps/docs/content/guides/getting-started/tutorials/with-svelte.mdx b/apps/docs/content/guides/getting-started/tutorials/with-svelte.mdx index b85eb77996c..85a9f223967 100644 --- a/apps/docs/content/guides/getting-started/tutorials/with-svelte.mdx +++ b/apps/docs/content/guides/getting-started/tutorials/with-svelte.mdx @@ -367,8 +367,4 @@ And then we can add the widget to the Account page: ``` -### Storage management - - - At this stage you have a fully functional application! diff --git a/apps/docs/content/guides/getting-started/tutorials/with-sveltekit.mdx b/apps/docs/content/guides/getting-started/tutorials/with-sveltekit.mdx index edd59df53e3..a8d81139f41 100644 --- a/apps/docs/content/guides/getting-started/tutorials/with-sveltekit.mdx +++ b/apps/docs/content/guides/getting-started/tutorials/with-sveltekit.mdx @@ -45,41 +45,68 @@ PUBLIC_SUPABASE_ANON_KEY="YOUR_SUPABASE_KEY" Optionally, add `src/styles.css` with the [CSS from the example](https://raw.githubusercontent.com/supabase/supabase/master/examples/user-management/sveltekit-user-management/src/styles.css). -### Supabase Auth Helpers +### Creating a Supabase client for SSR: -SvelteKit is a highly versatile framework offering pre-rendering at build time (SSG), server-side rendering at request time (SSR), API routes, and more. +The ssr package configures Supabase to use Cookies, which is required for server-side languages and frameworks. -It can be challenging to authenticate your users in all these different environments, that's why we've created the Supabase Auth Helpers to make user management and data fetching within SvelteKit as easy as possible. - -Install the auth helpers for SvelteKit: +Install the Supabase packages: ```bash -npm install @supabase/auth-helpers-sveltekit @supabase/supabase-js +npm install @supabase/ssr @supabase/supabase-js ``` +Creating a Supabase client with the ssr package automatically configures it to use Cookies. This means your user's session is available throughout the entire SvelteKit stack - page, layout, server, hooks. + Add the code below to your `src/hooks.server.ts` to initialize the client on the server: ```ts src/hooks.server.ts // src/hooks.server.ts import { PUBLIC_SUPABASE_URL, PUBLIC_SUPABASE_ANON_KEY } from '$env/static/public' -import { createSupabaseServerClient } from '@supabase/auth-helpers-sveltekit' +import { createServerClient } from '@supabase/ssr' import type { Handle } from '@sveltejs/kit' export const handle: Handle = async ({ event, resolve }) => { - event.locals.supabase = createSupabaseServerClient({ - supabaseUrl: PUBLIC_SUPABASE_URL, - supabaseKey: PUBLIC_SUPABASE_ANON_KEY, - event, + event.locals.supabase = createServerClient(PUBLIC_SUPABASE_URL, PUBLIC_SUPABASE_ANON_KEY, { + cookies: { + get: (key) => event.cookies.get(key), + /** + * Note: You have to add the `path` variable to the + * set and remove method due to sveltekit's cookie API + * requiring this to be set, setting the path to `/` + * will replicate previous/standard behaviour (https://kit.svelte.dev/docs/types#public-types-cookies) + */ + set: (key, value, options) => { + event.cookies.set(key, value, { ...options, path: '/' }) + }, + remove: (key, options) => { + event.cookies.delete(key, { ...options, path: '/' }) + }, + }, }) /** - * A convenience helper so we can just call await getSession() instead const { data: { session } } = await supabase.auth.getSession() + * Unlike `supabase.auth.getSession()`, which returns the session _without_ + * validating the JWT, this function also calls `getUser()` to validate the + * JWT before returning the session. */ - event.locals.getSession = async () => { + event.locals.safeGetSession = async () => { const { data: { session }, } = await event.locals.supabase.auth.getSession() - return session + if (!session) { + return { session: null, user: null } + } + + const { + data: { user }, + error, + } = await event.locals.supabase.auth.getUser() + if (error) { + // JWT validation has failed + return { session: null, user: null } + } + + return { session, user } } return resolve(event, { @@ -92,9 +119,7 @@ export const handle: Handle = async ({ event, resolve }) => { -In this case, the session information from `getSession` is supplied to the Supabase client so it can retrieve the auth token. This is safe, since the auth token signature will be revalidated on the Auth server. But you shouldn't trust the unsigned data that is stored alongside the JWT. - -If you are using TypeScript the compiler might complain about `event.locals.supabase` and `event.locals.getSession`, this can be fixed by updating your `src/app.d.ts` with the content below: +If you are using TypeScript the compiler might complain about `event.locals.supabase` and `event.locals.safeGetSession`, this can be fixed by updating your `src/app.d.ts` with the content below: ```ts src/app.d.ts // src/app.d.ts @@ -105,10 +130,11 @@ declare global { namespace App { interface Locals { supabase: SupabaseClient - getSession(): Promise + safeGetSession(): Promise<{ session: Session | null; user: User | null }> } interface PageData { session: Session | null + user: User | null } // interface Error {} // interface Platform {} @@ -122,39 +148,60 @@ Create a new `src/routes/+layout.server.ts` file to handle the session on the se // src/routes/+layout.server.ts import type { LayoutServerLoad } from './$types' -export const load: LayoutServerLoad = async ({ locals: { getSession } }) => { +export const load = (async ({ locals: { safeGetSession } }) => { + const { session, user } = await safeGetSession() + return { - session: await getSession(), + session, + user, } -} +}) satisfies LayoutServerLoad ``` -> Start your dev server (`npm run dev`) in order to generate the `./$types` files we are referencing in our project. + + +Start your dev server (`npm run dev`) in order to generate the `./$types` files we are referencing in our project. + + Create a new `src/routes/+layout.ts` file to handle the session and the supabase object on the client-side. ```ts src/routes/+layout.ts // src/routes/+layout.ts import { PUBLIC_SUPABASE_ANON_KEY, PUBLIC_SUPABASE_URL } from '$env/static/public' -import { createSupabaseLoadClient } from '@supabase/auth-helpers-sveltekit' import type { LayoutLoad } from './$types' +import { createBrowserClient, isBrowser, parse } from '@supabase/ssr' -export const load: LayoutLoad = async ({ fetch, data, depends }) => { +export const load = (async ({ fetch, data, depends }) => { depends('supabase:auth') - const supabase = createSupabaseLoadClient({ - supabaseUrl: PUBLIC_SUPABASE_URL, - supabaseKey: PUBLIC_SUPABASE_ANON_KEY, - event: { fetch }, - serverSession: data.session, + const supabase = createBrowserClient(PUBLIC_SUPABASE_URL, PUBLIC_SUPABASE_ANON_KEY, { + global: { + fetch, + }, + cookies: { + get(key) { + if (!isBrowser()) { + return JSON.stringify(data.session) + } + + const cookie = parse(document.cookie) + return cookie[key] + }, + }, }) + /** + * It's fine to use `getSession` here, because on the client, `getSession` is + * safe, and on the server, it reads `session` from the `LayoutData`, which + * safely checked the session using `safeGetSession`. + */ const { data: { session }, } = await supabase.auth.getSession() return { supabase, session } -} +}) satisfies LayoutLoad ``` Update your `src/routes/+layout.svelte`: @@ -238,8 +285,8 @@ Create a `src/routes/+page.server.ts` file that will return our website URL to b import { redirect } from '@sveltejs/kit' import type { PageServerLoad } from './$types' -export const load: PageServerLoad = async ({ url, locals: { getSession } }) => { - const session = await getSession() +export const load: PageServerLoad = async ({ url, locals: { safeGetSession } }) => { + const { session } = await safeGetSession() // if the user is already logged in return them to the account page if (session) { @@ -398,8 +445,8 @@ and handle all our form actions through the `actions` object. import { fail, redirect } from '@sveltejs/kit' import type { Actions, PageServerLoad } from './$types' -export const load: PageServerLoad = async ({ locals: { supabase, getSession } }) => { - const session = await getSession() +export const load: PageServerLoad = async ({ locals: { supabase, safeGetSession } }) => { + const { session } = await safeGetSession() if (!session) { throw redirect(303, '/') @@ -415,14 +462,14 @@ export const load: PageServerLoad = async ({ locals: { supabase, getSession } }) } export const actions: Actions = { - update: async ({ request, locals: { supabase, getSession } }) => { + update: async ({ request, locals: { supabase, safeGetSession } }) => { const formData = await request.formData() const fullName = formData.get('fullName') as string const username = formData.get('username') as string const website = formData.get('website') as string const avatarUrl = formData.get('avatarUrl') as string - const session = await getSession() + const { session } = await safeGetSession() const { error } = await supabase.from('profiles').upsert({ id: session?.user.id, @@ -449,8 +496,8 @@ export const actions: Actions = { avatarUrl, } }, - signout: async ({ locals: { supabase, getSession } }) => { - const session = await getSession() + signout: async ({ locals: { supabase, safeGetSession } }) => { + const { session } = await safeGetSession() if (session) { await supabase.auth.signOut() throw redirect(303, '/') @@ -610,8 +657,4 @@ And then we can add the widget to the Account page:
``` -### Storage management - - - At this stage you have a fully functional application! diff --git a/apps/docs/content/guides/getting-started/tutorials/with-swift.mdx b/apps/docs/content/guides/getting-started/tutorials/with-swift.mdx index 369748f09e5..e26045321ce 100644 --- a/apps/docs/content/guides/getting-started/tutorials/with-swift.mdx +++ b/apps/docs/content/guides/getting-started/tutorials/with-swift.mdx @@ -23,9 +23,9 @@ Let's start building the SwiftUI app from scratch. Open Xcode and create a new SwiftUI project. -Add the [supabase-swift](https://github.com/supabase-community/supabase-swift) dependency. +Add the [supabase-swift](https://github.com/supabase/supabase-swift) dependency. -Add the `https://github.com/supabase-community/supabase-swift` package to your app. For instructions, see the [Apple tutorial on adding package dependencies](https://developer.apple.com/documentation/xcode/adding-package-dependencies-to-your-app). +Add the `https://github.com/supabase/supabase-swift` package to your app. For instructions, see the [Apple tutorial on adding package dependencies](https://developer.apple.com/documentation/xcode/adding-package-dependencies-to-your-app). Create a helper file to initialize the Supabase client. You need the API URL and the `anon` key that you copied [earlier](#get-the-api-keys). @@ -514,8 +514,4 @@ struct Profile: Codable { You no longer need the `UpdateProfileParams` struct, as you can now reuse the `Profile` struct for both request and response calls. -### Storage management - - - At this stage you have a fully functional application! diff --git a/apps/docs/content/guides/getting-started/tutorials/with-vue-3.mdx b/apps/docs/content/guides/getting-started/tutorials/with-vue-3.mdx index 10bf93c4c6e..27778b2a6b2 100644 --- a/apps/docs/content/guides/getting-started/tutorials/with-vue-3.mdx +++ b/apps/docs/content/guides/getting-started/tutorials/with-vue-3.mdx @@ -377,8 +377,4 @@ import Avatar from './Avatar.vue' ``` -### Storage management - - - At this stage you have a fully functional application! diff --git a/apps/docs/content/guides/platform/billing-faq.mdx b/apps/docs/content/guides/platform/billing-faq.mdx index 6616ce86ccc..4c29c53557b 100644 --- a/apps/docs/content/guides/platform/billing-faq.mdx +++ b/apps/docs/content/guides/platform/billing-faq.mdx @@ -64,7 +64,7 @@ Read more on [how billing for compute works](https://supabase.com/docs/guides/pl #### What is unified egress and how is it billed? -Unified egress refers to the total egress quota available to each organization. This quota can be utilized for various purposes such as Storage, Runtime, Auth, Functions, and Database. Each plan includes a specific egress quota, and any additional usage beyond that quota is billed accordingly. +Unified egress refers to the total egress quota available to each organization. This quota can be utilized for various purposes such as Storage, Realtime, Auth, Functions, Supavisor and Database. Each plan includes a specific egress quota, and any additional usage beyond that quota is billed accordingly. To learn more about unified egress and its details, please refer to the information provided [here](https://supabase.com/docs/guides/platform/org-based-billing#:~:text=running%20any%20projects.-,Unified%20egress,-%23). diff --git a/apps/docs/content/guides/platform/branching.mdx b/apps/docs/content/guides/platform/branching.mdx index c4a50238e0a..a3f451240df 100644 --- a/apps/docs/content/guides/platform/branching.mdx +++ b/apps/docs/content/guides/platform/branching.mdx @@ -18,15 +18,6 @@ When you're ready to ship your changes, merge your branch to update your product If you understand Git, you already understand Supabase Branching. - - -Branching will move to Public Beta in future, but only available for Pro plan and above. - - - ## How branching works Supabase Branching works with Git. You can test changes in a separate, temporary environment without affecting your production setup. When you're ready to ship your changes, merge your branch to update your production instance with the new changes. diff --git a/apps/docs/content/guides/platform/compute-add-ons.mdx b/apps/docs/content/guides/platform/compute-add-ons.mdx index edb2412de2c..a8a2e3ad4e6 100644 --- a/apps/docs/content/guides/platform/compute-add-ons.mdx +++ b/apps/docs/content/guides/platform/compute-add-ons.mdx @@ -6,18 +6,25 @@ description: "Learn about your project's instance and additional add-ons." Every project on the Supabase Platform comes with its own dedicated Postgres instance running inside a virtual machine (VM). The following table describes the base instance with additional compute add-ons available if you need extra performance when scaling up Supabase. -| Plan | Hourly Price USD | Monthly Price USD | CPU | Memory | Connections: Direct | Connections: Pooler | Recommended Maximum DB Size | -| ------ | ---------------- | ----------------- | ----------------------- | ------ | ------------------- | ------------------- | --------------------------- | -| Micro | $0.01344 | ~$10 | 2-core ARM (shared) | 1 GB | 60 | 200 | 10GB | -| Small | $0.0206 | ~$15 | 2-core ARM (shared) | 2 GB | 90 | 200 | 50GB | -| Medium | $0.0822 | ~$60 | 2-core ARM (shared) | 4 GB | 120 | 200 | 100GB | -| Large | $0.1517 | ~$110 | 2-core ARM (dedicated) | 8 GB | 160 | 300 | 200GB | -| XL | $0.2877 | ~$210 | 4-core ARM (dedicated) | 16 GB | 240 | 700 | 500GB | -| 2XL | $0.562 | ~$410 | 8-core ARM (dedicated) | 32 GB | 380 | 1500 | 1TB | -| 4XL | $1.32 | ~$960 | 16-core ARM (dedicated) | 64 GB | 480 | 3000 | 2TB | -| 8XL | $2.562 | ~$1,870 | 32-core ARM (dedicated) | 128 GB | 490 | 6000 | 4TB | -| 12XL | $3.836 | ~$2,800 | 48-core ARM (dedicated) | 192 GB | 500 | 9000 | 6TB | -| 16XL | $5.12 | ~$3,730 | 64-core ARM (dedicated) | 256 GB | 500 | 12,000 | 10TB | + + +Free plan resources subject to changes. + + + +| Plan | Hourly Price USD | Monthly Price USD | CPU | Memory | Connections: Direct | Connections: Pooler | Recommended Maximum DB Size | +| ----------- | ---------------- | ----------------- | ----------------------- | ------------ | ------------------- | ------------------- | --------------------------- | +| Nano (free) | $0 | $0 | Shared | Up to 0.5 GB | 60 | 200 | 500MB | +| Micro | $0.01344 | ~$10 | 2-core ARM (shared) | 1 GB | 60 | 200 | 10GB | +| Small | $0.0206 | ~$15 | 2-core ARM (shared) | 2 GB | 90 | 400 | 50GB | +| Medium | $0.0822 | ~$60 | 2-core ARM (shared) | 4 GB | 120 | 600 | 100GB | +| Large | $0.1517 | ~$110 | 2-core ARM (dedicated) | 8 GB | 160 | 800 | 200GB | +| XL | $0.2877 | ~$210 | 4-core ARM (dedicated) | 16 GB | 240 | 1,000 | 500GB | +| 2XL | $0.562 | ~$410 | 8-core ARM (dedicated) | 32 GB | 380 | 1,500 | 1TB | +| 4XL | $1.32 | ~$960 | 16-core ARM (dedicated) | 64 GB | 480 | 3,000 | 2TB | +| 8XL | $2.562 | ~$1,870 | 32-core ARM (dedicated) | 128 GB | 490 | 6,000 | 4TB | +| 12XL | $3.836 | ~$2,800 | 48-core ARM (dedicated) | 192 GB | 500 | 9,000 | 6TB | +| 16XL | $5.12 | ~$3,730 | 64-core ARM (dedicated) | 256 GB | 500 | 12,000 | 10TB | Number of connections above are recommended values. @@ -43,28 +50,29 @@ When considering compute upgrades, assess whether your bottlenecks are hardware- ## Disk IO -SSD Disks are attached to your servers and the disk performance depends on the compute add-on of your instance. Disk IO refers to two metrics: throughput (Megabits per Second) and IOPS (Input/Output Operations per Second). +SSD Disks are attached to your servers and the disk performance depends on the compute add-on of your instance. Disk IO refers to two metrics: throughput (Megabits per Second) and IOPS (Input/Output Operations per Second). Disk throughput is capped at 1,048 Mbps and IOPS is capped at 3,000 IOPS for all compute add-ons. -| Plan | Max Disk Throughput | Baseline Disk Throughput | Max IOPS | Baseline IOPS | -| ------ | ------------------- | ------------------------ | ----------- | ------------- | -| Micro | 2,085 Mbps | 87 Mbps | 11,800 IOPS | 500 IOPS | -| Small | 2,085 Mbps | 174 Mbps | 11,800 IOPS | 1,000 IOPS | -| Medium | 2,085 Mbps | 347 Mbps | 11,800 IOPS | 2,000 IOPS | -| Large | 4,750 Mbps | 630 Mbps | 20,000 IOPS | 3,600 IOPS | -| XL | 4,750 Mbps | 1,188 Mbps | 20,000 IOPS | 6,000 IOPS | -| 2XL | 4,750 Mbps | 2,375 Mbps | 20,000 IOPS | 12,000 IOPS | -| 4XL | 4,750 Mbps | 4,750 Mbps | 20,000 IOPS | 20,000 IOPS | -| 8XL | 9,500 Mbps | 9,500 Mbps | 40,000 IOPS | 40,000 IOPS | -| 12XL | 14,250 Mbps | 14,250 Mbps | 50,000 IOPS | 50,000 IOPS | -| 16XL | 19,000 Mbps | 19,000 Mbps | 80,000 IOPS | 80,000 IOPS | +| Plan | Baseline Disk Throughput | Baseline IOPS | +| ----------- | ------------------------ | ------------- | +| Nano (free) | 43 Mbps | 250 IOPS | +| Micro | 87 Mbps | 500 IOPS | +| Small | 174 Mbps | 1,000 IOPS | +| Medium | 347 Mbps | 2,000 IOPS | +| Large | 630 Mbps | 3,000 IOPS | +| XL | 1,048 Mbps | 3,000 IOPS | +| 2XL | 1,048 Mbps | 3,000 IOPS | +| 4XL | 1,048 Mbps | 3,000 IOPS | +| 8XL | 1,048 Mbps | 3,000 IOPS | +| 12XL | 1,048 Mbps | 3,000 IOPS | +| 16XL | 1,048 Mbps | 3,000 IOPS | -[Contact us](https://supabase.com/contact/enterprise) if you require a custom plan. +[Contact us](https://supabase.com/contact/enterprise) if you require a plan with higher disk throughput and IOPS. ### Bursting and disk IO budget -Smaller compute instances can burst up to their largest throughput and IOPS for 30 minutes in a day. Beyond that, the performance reverts to the baseline. For example, the free tier can burst up to 2,085 Mbps for 30 minutes a day and reverts to the baseline performance of 87 Mbps. Your disk IO budget gets replenished throughout the day. +Smaller compute instances can burst up to 1,048 Mbps and 3,000 IOPS for 30 minutes in a day. Beyond that, the performance reverts to the baseline. For example, the micro plan can burst up to 1,048 Mbps for 30 minutes a day and reverts to the baseline performance of 87 Mbps. Your disk IO budget gets replenished throughout the day. -If you need consistent disk performance, choose the 4XL or larger compute add-on which has the same baseline and maximum disk throughput and IOPS. +If you need consistent disk performance, choose the XL or larger compute add-on which has the same baseline and maximum disk throughput and IOPS. If you're unsure of how much throughput or IOPS your application requires, you can load test your project and inspect these [metrics in the Dashboard](https://supabase.com/dashboard/project/_/reports). If the `Disk IO % consumed` stat is more than 1%, it indicates that your workload has burst beyond the baseline IO throughput during the day. If this metric goes to 100%, the workload has used up all available disk IO budget and will revert to baseline performance. Projects that use any disk IO budget are good candidates for upgrading to a larger compute add-on with higher baseline throughput. @@ -74,18 +82,19 @@ If you're unsure of how much throughput or IOPS your application requires, you c The maximum number of replication slots and WAL senders depends on your compute add-on plan, as follows: -| Plan | Max Replication Slots | Max WAL Senders | -| ------ | --------------------- | --------------- | -| Micro | 5 | 5 | -| Small | 5 | 5 | -| Medium | 5 | 5 | -| Large | 8 | 8 | -| XL | 24 | 24 | -| 2XL | 80 | 80 | -| 4XL | 80 | 80 | -| 8XL | 80 | 80 | -| 12XL | 80 | 80 | -| 16XL | 80 | 80 | +| Plan | Max Replication Slots | Max WAL Senders | +| ----------- | --------------------- | --------------- | +| Nano (free) | 5 | 5 | +| Micro | 5 | 5 | +| Small | 5 | 5 | +| Medium | 5 | 5 | +| Large | 8 | 8 | +| XL | 24 | 24 | +| 2XL | 80 | 80 | +| 4XL | 80 | 80 | +| 8XL | 80 | 80 | +| 12XL | 80 | 80 | +| 16XL | 80 | 80 | diff --git a/apps/docs/content/guides/platform/custom-domains.mdx b/apps/docs/content/guides/platform/custom-domains.mdx index a1933986517..c8736977997 100644 --- a/apps/docs/content/guides/platform/custom-domains.mdx +++ b/apps/docs/content/guides/platform/custom-domains.mdx @@ -79,6 +79,8 @@ Required outstanding validation records: Add the records to your domains' DNS settings. Make sure to trim surrounding whitespace. Use a low TTL value so you can quickly change the records if you make a mistake. +Some DNS registrars automatically append your domain name to the DNS entries being created. As such, creating a DNS record for `api.example.com` might instead create a record for `api.example.com.example.com`. In such cases, please remove the domain name from the records you're creating; as an example, you would create a TXT record for `api`, instead of `api.example.com`. + ### Verify your domain Make sure you've configured all required DNS settings: diff --git a/apps/docs/content/guides/platform/database-size.mdx b/apps/docs/content/guides/platform/database-size.mdx index b3ed9a3bd4d..7416cbbb0f8 100644 --- a/apps/docs/content/guides/platform/database-size.mdx +++ b/apps/docs/content/guides/platform/database-size.mdx @@ -33,7 +33,27 @@ Depending on your billing plan, your database can go into read-only mode which c ### Vacuum operations -Postgres does not immediately reclaim the physical space used by dead tuples (i.e., deleted rows) in the DB. They are marked as "removed" until a [vacuum operation](https://www.postgresql.org/docs/current/routine-vacuuming.html) is executed. As a result, deleting data from your database may not immediately reduce the reported disk usage. +Postgres does not immediately reclaim the physical space used by dead tuples (i.e., deleted rows) in the DB. They are marked as "removed" until a [vacuum operation](https://www.postgresql.org/docs/current/routine-vacuuming.html) is executed. As a result, deleting data from your database may not immediately reduce the reported disk usage. You can use the [Supabase CLI](https://supabase.com/docs/guides/cli/getting-started) `inspect db bloat` command to view all dead tuples in your database. Alternatively, you can run the [query](https://github.com/supabase/cli/blob/c9cce58025fded16b4c332747f819a44f45c3b83/internal/inspect/bloat/bloat.go#L17) found in the CLI's GitHub repo in the [SQL Editor](https://supabase.com/dashboard/project/_/sql/) + +```bash +# login to the CLI +npx supabase login + +# initlize a local supabase directory +npx supabase init + +# link a project +npx supabase link + +# detect bloat +npx supabase inspect db bloat --linked +``` + +If you find a table you would like to immediately clean, you can run the following in the [SQL Editor](https://supabase.com/dashboard/project/_/sql/new): + +```sql +vacuum full ; +``` @@ -59,6 +79,12 @@ Projects on the Pro plan and above have auto-scaling Disk Storage. Disk Storage expands automatically when the database reaches 90% of the disk size. The disk is expanded to be 50% larger (e.g., 8GB -> 12GB). Auto-scaling can only take place once every 6 hours. If within those 6 hours you reach 95% of the disk space, your project will enter read-only mode. + + +The automatic resize operation will add an additional 50% capped to a maximum of 200GB. If 50% of your current usage is more than 200GB then only 200GB will be added to your disk (e.g. a size of 1500GB will resize to 1700GB). + + + The Disk Storage Size can also be manually expanded on the [Database settings page](https://supabase.com/dashboard/project/_/settings/database). The maximum default you can expand the Disk Storage to is 200GB. If you wish to manually expand it to any more than 200GB, please [contact us](https://supabase.com/dashboard/support/new) to discuss expanding the 200GB limit. diff --git a/apps/docs/content/guides/platform/going-into-prod.mdx b/apps/docs/content/guides/platform/going-into-prod.mdx index 6fab64d5ac1..d3b2be53caf 100644 --- a/apps/docs/content/guides/platform/going-into-prod.mdx +++ b/apps/docs/content/guides/platform/going-into-prod.mdx @@ -17,11 +17,14 @@ After developing your project and deciding it's Production Ready, you should run - [Learn more about RLS](/docs/guides/auth/row-level-security). - Enable replication on tables containing sensitive data by enabling Row Level Security (RLS) and setting row security policies: - Go to the Authentication > Policies page in the Supabase Dashboard to enable RLS and create security policies. - - Go to the Database > Replication page in the Supabase Dashboard to manage replication tables. + - Go to the Database > Publications page in the Supabase Dashboard to manage replication tables. - Turn on [SSL Enforcement](/docs/guides/platform/ssl-enforcement) - Enable [Network Restrictions](/docs/guides/platform/network-restrictions) for your database. - Enable 2FA on GitHub. Since your GitHub account gives you administrative rights to your Supabase project, you should protect it with a strong password and 2FA using a U2F key or a TOTP app. -- Ensure email confirmations are enabled in the `Settings > Auth` page. +- Ensure email confirmations are [enabled](https://supabase.com/dashboard/project/_/auth/providers) in the `Settings > Auth` page. +- Ensure that you've [set the expiry](https://supabase.com/dashboard/project/_/auth/providers) for one-time passwords (OTPs) to a reasonable value that you are comfortable with. We recommend setting this to 3600 seconds (1 hour) or lower. +- Increase the length of the OTP if you need a higher level of entropy. +- If your application requires a higher level of security, consider setting up [multi-factor authentication](https://supabase.com/docs/guides/auth/auth-mfa) (MFA) for your users. - Use a custom SMTP server for auth emails so that your users can see that the mails are coming from a trusted domain (preferably the same domain that your app is hosted on). Grab SMTP credentials from any major email provider such as SendGrid, AWS SES, etc. - Think hard about how _you_ would abuse your service as an attacker, and mitigate. - Review these [common cybersecurity threats](https://auth0.com/docs/security/prevent-threats). @@ -60,16 +63,17 @@ After developing your project and deciding it's Production Ready, you should run - The table below shows the rate limit quotas on the following authentication endpoints. You can configure the auth rate limits for your project [here](/dashboard/project/_/auth/rate-limits). -| Endpoint | Path | Limited By | Rate Limit | -| ------------------------------------------------ | -------------------------------------------------------------- | ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | -| All endpoints that send emails | `/auth/v1/signup` `/auth/v1/recover` `/auth/v1/user`[^1] | Sum of combined requests | Defaults to 30 emails per hour. As of 14th July 2023, this has been updated to 4 emails per hour. Is customizable with custom SMTP set up. | -| All endpoints that send One-Time-Passwords (OTP) | `/auth/v1/otp` | Sum of combined requests | Defaults to 30 OTPs per hour. Is customizable. | -| Send OTPs or magiclinks | `/auth/v1/otp` | Last request | Defaults to 60 seconds window before a new request is allowed. Is customizable. | -| Signup confirmation request | `/auth/v1/signup` | Last request | Defaults to 60 seconds window before a new request is allowed. Is customizable. | -| Password Reset Request | `/auth/v1/recover` | Last request | Defaults to 60 seconds window before a new request is allowed. Is customizable. | -| Verification requests | `/auth/v1/verify` | IP Address | 360 requests per hour (with bursts up to 30 requests) | -| Token refresh requests | `/auth/v1/token` | IP Address | 1800 requests per hour (with bursts up to 30 requests) | -| Create or Verify an MFA challenge | `/auth/v1/factors/:id/challenge` `/auth/v1/factors/:id/verify` | IP Address | 15 requests per minute (with bursts up to 30 requests) | +| Endpoint | Path | Limited By | Rate Limit | +| ------------------------------------------------ | -------------------------------------------------------------- | ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| All endpoints that send emails | `/auth/v1/signup` `/auth/v1/recover` `/auth/v1/user`[^1] | Sum of combined requests | Defaults to 30 emails per hour. As of 14th July 2023, this has been updated to 4 emails per hour. As of 21 Oct 2023, this has been updated to 3 emails per hour. You can only change this with your own custom SMTP setup. | +| All endpoints that send One-Time-Passwords (OTP) | `/auth/v1/otp` | Sum of combined requests | Defaults to 30 OTPs per hour. Is customizable. | +| Send OTPs or magiclinks | `/auth/v1/otp` | Last request | Defaults to 60 seconds window before a new request is allowed. Is customizable. | +| Signup confirmation request | `/auth/v1/signup` | Last request | Defaults to 60 seconds window before a new request is allowed. Is customizable. | +| Password Reset Request | `/auth/v1/recover` | Last request | Defaults to 60 seconds window before a new request is allowed. Is customizable. | +| Verification requests | `/auth/v1/verify` | IP Address | 360 requests per hour (with bursts up to 30 requests) | +| Token refresh requests | `/auth/v1/token` | IP Address | 1800 requests per hour (with bursts up to 30 requests) | +| Create or Verify an MFA challenge | `/auth/v1/factors/:id/challenge` `/auth/v1/factors/:id/verify` | IP Address | 15 requests per minute (with bursts up to 30 requests) | +| Anonymous sign-ins | `/auth/v1/signup`[^2] | IP Address | 30 requests per hour (with bursts up to 30 requests) | ### Realtime quotas @@ -92,3 +96,4 @@ After developing your project and deciding it's Production Ready, you should run This checklist is always growing so be sure to check back frequently, and also feel free to suggest additions and amendments by making a PR on [GitHub](https://github.com/supabase/supabase). [^1]: The rate limit is only applied on `/auth/v1/user` if this endpoint is called to update the user's email address. +[^2]: The rate limit is only applied on `/auth/v1/signup` if this endpoint is called without passing in an email or phone number in the request body. diff --git a/apps/docs/content/guides/platform/ipv4-address.mdx b/apps/docs/content/guides/platform/ipv4-address.mdx index 5d5c1038df8..8301bacbf96 100644 --- a/apps/docs/content/guides/platform/ipv4-address.mdx +++ b/apps/docs/content/guides/platform/ipv4-address.mdx @@ -31,6 +31,12 @@ You can enable the IPv4 add-on in your project [add-on settings](https://supabas Generally, this should be less than a minute. +## Read Replicas + +When the IPv4 add-on is enabled, an IPv4 address is provisioned for each database in your project. + +By default, this is only the Primary database for your project. If [Read replicas](/docs/guides/platform/read-replicas) are being used, each replica also gets its own IPv4 address, with a corresponding $4 charge. + ## Caveats For regular use-cases like a restart or compute size changes, the IPv4 address remains unchanged. diff --git a/apps/docs/content/guides/platform/migrating-and-upgrading-projects.mdx b/apps/docs/content/guides/platform/migrating-and-upgrading-projects.mdx index 592559d202b..a0850ee178f 100644 --- a/apps/docs/content/guides/platform/migrating-and-upgrading-projects.mdx +++ b/apps/docs/content/guides/platform/migrating-and-upgrading-projects.mdx @@ -200,7 +200,7 @@ supabase db diff --linked --schema auth,storage > changes.sql ### Enable publication on tables -Replication for Realtime is disabled for all tables in your new project. On the [Replication](https://supabase.com/dashboard/project/_/database/replication) page in the Dashboard, select your new project and enable replication for tables that were enabled in your old project. +Replication for Realtime is disabled for all tables in your new project. On the [Publications](https://supabase.com/dashboard/project/_/database/publications) page in the Dashboard, select your new project and enable replication for tables that were enabled in your old project. ### Migrate storage objects diff --git a/apps/docs/content/guides/platform/org-based-billing.mdx b/apps/docs/content/guides/platform/org-based-billing.mdx index b6caf671fa3..7a5f68f173a 100644 --- a/apps/docs/content/guides/platform/org-based-billing.mdx +++ b/apps/docs/content/guides/platform/org-based-billing.mdx @@ -78,7 +78,7 @@ We only count compute hours for instances that are active. Paused projects do no ### Free plan -Supabase provides two "Free organizations". Each organization can run a `Micro` instance for free. This is a great way to get started with Supabase and try out the platform. +Supabase provides two "Free organizations". Each organization can run a `Nano` instance for free. This is a great way to get started with Supabase and try out the platform. ### Compute credits @@ -92,7 +92,7 @@ Additionally, Compute Credits are given to you not only for the first month but ## Unified egress -Each organization receives a total egress quota (eg. 250GB on the Pro plan) which can be used for anything - Storage, Realtime, Auth, Functions or Database. +Each organization receives a total egress quota (eg. 250GB on the Pro plan) which can be used for anything - Storage, Realtime, Auth, Functions, Supavisor or Database. ### Included egress quota diff --git a/apps/docs/content/guides/platform/performance.mdx b/apps/docs/content/guides/platform/performance.mdx index 47562326a5c..a08e5d5b619 100644 --- a/apps/docs/content/guides/platform/performance.mdx +++ b/apps/docs/content/guides/platform/performance.mdx @@ -175,20 +175,7 @@ You can pair the information available from `pg_stat_statements` with the detail ## Optimizing the number of connections -By default, the number of connections allowed to Postgres and Supavisor is configured based on the resources available to the database. - -| Compute Add-on | Postgresql connections | Supavisor connections | -| -------------- | ---------------------- | --------------------- | -| None | 60 | 200 | -| Small | 90 | 200 | -| Medium | 120 | 200 | -| Large | 160 | 300 | -| XL | 240 | 700 | -| 2XL | 380 | 1500 | -| 4XL | 480 | 3000 | -| 8XL | 490 | 6000 | -| 12XL | 500 | 9000 | -| 16XL | 500 | 12000 | +The default connection limits for Postgres and Supavisor is based on your compute size. See the default connection numbers in the [Compute Add-ons](/docs/guides/platform/compute-add-ons) section. If the number of connections is insufficient, you will receive the following error upon connecting to the DB: diff --git a/apps/docs/content/guides/platform/read-replicas.mdx b/apps/docs/content/guides/platform/read-replicas.mdx index 93f88e12ecb..8814c1368f1 100644 --- a/apps/docs/content/guides/platform/read-replicas.mdx +++ b/apps/docs/content/guides/platform/read-replicas.mdx @@ -1,16 +1,17 @@ --- title: 'Read Replicas' -description: 'Deploy additional read-only databases in multiple regions for your project.' -subtitle: 'Deploy additional read-only databases in multiple regions for your project' +description: 'Deploy read-only databases across multiple regions, for lower latency.' +subtitle: 'Deploy read-only databases across multiple regions, for lower latency and better resource management.' --- - +Read Replicas are additional databases that are kept in sync with your Primary database. You can read your data from a Read Replica, which helps with: -[Request early access](https://forms.supabase.com/read-replica) and you'll be notified once Read Replicas are available to your organization. - - +- **Load balancing:** Read Replicas reduce load on the Primary database. For example, you can use a Read Replica for complex analytical queries and reserve the Primary for user-facing create, update, and delete operations. +- **Improved latency:** For projects with a global user base, additional databases can be deployed closer to users to reduce latency. +- **Redundancy:** Read Replicas provide data redundancy.
+ -Read Replicas are Postgres databases that are continuously synced to a Supabase project's Primary database. You can both read from and write to a Primary database, but you can _only_ read from a Read Replica, such as using `select` statements. +## About Read Replicas + +The database you start with when launching a Supabase project is your Primary database. Read Replicas are kept in sync with the Primary through a process called "replication." Replication is asynchronous to ensure that transactions on the Primary aren't blocked. There is a delay between an update on the Primary and the time that a Read Replica receives the change. This delay is called "replication lag." + +You can only read data from a Read Replica. This is in contrast to a Primary database, where you can both read and write: | | select | insert | update | delete | | ------------ | ------ | ------ | ------ | ------ | | Primary | ✅ | ✅ | ✅ | ✅ | | Read Replica | ✅ | - | - | - | -A database is spun up automatically with every Supabase project. This database is the Primary database. You can choose to add Read Replicas to your project and those Replicas will receive and synchronize data from the Primary database. - -Replication is asynchronous and happens in the background so transactions on the Primary aren't blocked. The time delay between writing data to the Primary and the Read Replica receiving the change is replication lag. - -Read Replicas have many applications: - -- They reduce read load on the Primary database. - - For example, you can use a Read Replica for complex analytical queries and reserve the Primary for user-facing create, update, and delete operations. -- For projects that need to cover a global audience, additional databases can be deployed closer to users in any of our twelve supported regions to reduce latency. -- Read Replicas provide data redundancy. - ## Prerequisites -A project needs to satisfy these requirements to deploy a Read Replica: + + +Read replicas are available to projects created on the Teams and Enterprise plans after 2024 March 20. They will be progressively rolled out to older projects, and eventually available on the Pro plan. + +If your project doesn't meet these criteria, you can join the [early access queue](https://forms.supabase.com/read-replica). + + + +Projects must meet these requirements to use Read Replicas: 1. Running on AWS. - Support for projects on Fly.io is coming. 1. Running on at least a [Small compute add-on](/docs/guides/platform/compute-add-ons). - - Read Replicas are currently placed on the same compute instance as the database to make sure they can keep up with the Primary's activities. + - Read Replicas are started on the same compute instance as the Primary to keep up with changes. +1. Running on Postgres 15+. + - For projects running on older versions of Postgres, you will need to [upgrade to the latest platform version](/docs/guides/platform/migrating-and-upgrading-projects#pgupgrade). 1. Using [physical backups](/docs/guides/platform/backups#point-in-time-recovery) - Physical backups are automatically enabled if using [PITR](/docs/guides/platform/backups#point-in-time-recovery) -1. Running on Postgres 15. - - For projects running on older versions of PostgreSQL, you will need to [upgrade to the latest platform version](/docs/guides/platform/migrating-and-upgrading-projects#pgupgrade). + - If you're not using PITR, you'll be able to switch to physical backups as part of the Read Replica setup process. Note that physical backups can't be downloaded from the dashboard in the way logical backups can. ## Getting started -Read Replicas can be managed from the [infrastructure settings page](https://supabase.com/dashboard/project/_/settings/infrastructure). For now, each project can only deploy up to two Read Replicas and all Read Replicas inherit the compute size of their Primary database. +To add a Read Replica, go to the [Infrastructure Settings page](/dashboard/project/_/settings/infrastructure) in your dashboard. Each project can deploy up to two Read Replicas and all Read Replicas inherit the compute size of their Primary database. + +## Features Read Replicas offer the following features: ### Dedicated endpoints -Each Read Replica has its own dedicated database and API endpoints. The database endpoint can be found in your [dashboard database settings](https://supabase.com/dashboard/project/_/settings/database) under **Connection info**. The API endpoint can be found in [dashboard API settings](https://supabase.com/dashboard/project/_/settings/api) under **Project URL**. +Each Read Replica has its own dedicated database and API endpoints. -A Read Replica's API endpoint only supports `GET` requests to the [REST API](https://supabase.com/docs/guides/api). Requests towards other Supabase products, such as Auth, Storage, and Realtime, are not able to utilize a Read Replica nor its API endpoint for now. We are working on adding Read Replica support for them. +- Find the database endpoint on the [Database Settings page](/dashboard/project/_/settings/database) under **Connection Info** +- Find the API endpoint on the [API Settings page](/dashboard/project/_/settings/api) under **Project URL** + +Read Replicas only support `GET` requests and the [REST API](/docs/guides/api). Requests to other Supabase products, such as Auth, Storage, and Realtime, aren't able to use a Read Replica or its API endpoint. Support for more products will be added in the future. + +If you're using an [IPv4 add-on](/docs/guides/platform/ipv4-address#read-replicas), the database endpoints for your Read Replicas will also use an IPv4 add-on. ### Dedicated connection pool -A connection pool through Supavisor is also available for each Read Replica. Its unique connection string can be found in your [dashboard database settings](https://supabase.com/dashboard/project/_/settings/database) under **Connection string**. +A connection pool through Supavisor is also available for each Read Replica. Find the connection string on the [Database Settings page](/dashboard/project/_/settings/database) under **Connection String**. + +## API load balancer + +A load balancer is deployed to balance requests between your Primary database and Read Replicas. Find its endpoint on the [API Settings page](/dashboard/project/_/settings/api). + +The load balancer uses a round-robin strategy to route `GET` requests to all available API endpoints, including the Primary database. Non-`GET` requests can also be sent through this endpoint, and will be routed to the Primary database. + +To call a read-only Postgres function on Read Replicas, use the `get: true` [option](/docs/reference/javascript/rpc?queryGroups=example&example=call-a-read-only-postgres-function). + +If you remove all Read Replicas from your project, the load balancer and its endpoint are removed as well. Make sure to redirect requests back to your Primary database before removal. ### Querying through the SQL editor +In the SQL editor, you can choose if you want to run the query on a particular Read Replica. +
+ -In the SQL editor, you can choose if you want to run the query on the Primary or one of the Replicas. +### Metrics -### API load balancer +Observability and metrics for Read Replicas are not currently available in the Supabase Dashboard. -When Read Replicas are deployed, an API load balancer becomes available for the project. An endpoint for it is provisioned and can be found [here](https://supabase.com/dashboard/project/_/settings/api). - -The load balancer uses a round-robin strategy to route `GET` requests to any of the API endpoints available, including that of the Primary database. Non-`GET` requests can also be sent through this endpoint. They are immediately redirected to the Primary database. - -Similar to the Read Replica API endpoints, only requests to the REST API are available for now. Support for other Supabase products will become available once Read Replica support has been completed for them. - -When a project no longer has any Read Replicas, the load balancer and its endpoint are brought down as well. +If you're ingesting your [project's metrics](/docs/guides/platform/metrics#accessing-the-metrics-endpoint) into your own environment, you can update [your scraping setup](https://github.com/supabase/supabase-grafana?tab=readme-ov-file#read-replica-support) to additionally ingest metrics from your Read Replicas. ### Centralized configuration management -All settings made through the dashboard will be propagated across all databases of a project. This ensures that no Read Replica get out of sync with its Primary database or with other Read Replicas. +All settings configured through the dashboard will be propagated across all databases of a project. This ensures that no Read Replica get out of sync with the Primary database or with other Read Replicas. -## How are Read Replicas made? +## Operations blocked by Read Replicas + +### Project upgrades and data restorations + +The following procedures require all Read Replicas for a project to be brought down before they can be performed: + +1. [Project upgrades](/docs/guides/platform/migrating-and-upgrading-projects#pgupgrade) +1. [Data restorations](/docs/guides/platform/backups#pitr-restoration-process) + +These operations need to be completed before Read Replicas can be re-deployed. + +## About replication We use a hybrid approach to replicate data from a Primary to its Read Replicas, combining the native methods of streaming replication and file-based log shipping. @@ -134,14 +162,3 @@ In this replication method, the Primary continuously buffers WAL changes to a lo We bring these two methods together to achieve quick, stable, and reliable replication. Each method addresses the limitations of the other. Streaming replication minimizes replication lag, while file-based log shipping provides a fallback. For file-based log shipping, we use our existing Point In Time Recovery (PITR) infrastructure. We regularly archive files from the Primary using [WAL-G](https://github.com/wal-g/wal-g), an open source archival and restoration tool, and ship the WAL files to S3. We combine it with streaming replication to reduce replication lag. Once WAL-G files have been synced from S3, Read Replicas connect to the Primary and stream the WAL directly. - -## Operations blocked by Read Replicas - -### Project upgrades and data restorations - -The following procedures require all Read Replicas for a project to be brought down before they can be performed: - -1. [Project upgrades](/docs/guides/platform/migrating-and-upgrading-projects#pgupgrade) -1. [Data restorations](/docs/guides/platform/backups#pitr-restoration-process) - -These operations need to be completed before Read Replicas can be re-deployed. diff --git a/apps/docs/content/guides/platform/spend-cap.mdx b/apps/docs/content/guides/platform/spend-cap.mdx index 1bbab063b07..359e4135e2b 100644 --- a/apps/docs/content/guides/platform/spend-cap.mdx +++ b/apps/docs/content/guides/platform/spend-cap.mdx @@ -6,8 +6,7 @@ subtitle: 'Learn about the cost control of Supabase.' Supabase offers a "Spend Cap" on each organization to manage your usage and costs. -This Spend Cap determines whether your organization can exceed the free quota allowance of any [line item](#what-additional-usage-can-i-be-charged-for) in a given billing cycle. -If you exceed the free quota allowance of a line item, and the Spend Cap is **"off"**, then you will be billed for any additional usage on that line item. +This Spend Cap determines whether your organization can exceed the free quota allowance of any [line item](#what-additional-usage-can-i-be-charged-for) in a given billing cycle. If you exceed the free quota allowance of a line item, and the Spend Cap is **"off"**, then you will be billed for any additional usage on that line item. ## What additional usage can I be charged for? @@ -27,6 +26,14 @@ You can view the pricing, and free quota allowance of each line item on the [pri You can monitor your usage and costs using the [Usage section of your organization](https://supabase.com/dashboard/org/_/usage) in the dashboard. This will show you how much you have spent so far in the current billing cycle, as well as an estimate of your expected total cost for the cycle based on your current usage. +## Can I use the spend cap to limit my compute costs? + +The spend cap does not apply to compute usage. Each project is a dedicated server and database and incurs compute costs depending on the selected instance size. Costs for compute are predictable, as the maximum amount is number of hours in month \* hourly compute price (per project). + +Launching additional projects on a paid plan incurs compute costs, even if your spend cap is toggled on. + +Read more about [how billing for compute works](https://supabase.com/docs/guides/platform/org-based-billing#usage-based-billing-for-compute). + ## How can I turn the Spend Cap on or off? To set up a Spend Cap in your organization, navigate to the [Subscription section](https://supabase.com/dashboard/org/_/billing) of your organization. @@ -48,3 +55,7 @@ This additional usage will be charged based on the line item's cost per unit out When your Spend Cap is **off**, we recommend monitoring your consumption and costs using the [Usage section of your organization](https://supabase.com/dashboard/org/_/usage) in the dashboard. + +## Can I cap certain usage items? + +The Spend Cap is currently an all-or-nothing toggle. You can either opt into paying for usage beyond your plans quota or opt out and run into restrictions when exceeding the limits. We do have plans to make the spend cap more flexible in the future. diff --git a/apps/docs/content/guides/platform/sso.mdx b/apps/docs/content/guides/platform/sso.mdx index dffb85fca2e..2e32c46b6a8 100644 --- a/apps/docs/content/guides/platform/sso.mdx +++ b/apps/docs/content/guides/platform/sso.mdx @@ -5,7 +5,7 @@ description: 'General information about enabling single sign-on (SSO) for your o -Looking for docs on how to add Single Sign-On support in your Supabase project? Head on over to [Single Sign-On with SAML 2.0 for Projects](/docs/guides/auth/sso/auth-sso-saml). +Looking for docs on how to add Single Sign-On support in your Supabase project? Head on over to [Single Sign-On with SAML 2.0 for Projects](/docs/guides/auth/enterprise-sso/auth-sso-saml). diff --git a/apps/docs/content/guides/realtime.mdx b/apps/docs/content/guides/realtime.mdx index dee6cf6766f..80cf895d32b 100644 --- a/apps/docs/content/guides/realtime.mdx +++ b/apps/docs/content/guides/realtime.mdx @@ -25,7 +25,7 @@ By default Realtime is disabled on your database. Let's turn on Realtime for a ` 1. Go to the [Database](https://supabase.com/dashboard/project/_/database/tables) page in the Dashboard. -2. Click on **Replication** in the sidebar. +2. Click on **Publications** in the sidebar. 3. Control which database events are sent by toggling **Insert**, **Update**, and **Delete**. 4. Control which tables broadcast changes by selecting **Source** and toggling each table. @@ -110,6 +110,33 @@ supabase .subscribe(); ``` + + + +```swift +// Initialize the Swift client +import Supabase + +let supabase = SupabaseClient(supabaseURL: SUPABASE_URL, supabaseKey: SUPABASE_ANON_KEY) + +// Create channel +let channel = await supabase.realtime.channel("todos") + +// Create the observations before subscribing +let insertions = await channel.postgresChanges( + InsertAction.self, + schema: "public", + table: "todos" +) + +await channel.subscribe() + +for await insertion in insertions { + let todo = try insertion.decoded(as: Todo.self) + print("Todo inserted", todo) +} +``` + diff --git a/apps/docs/content/guides/realtime/broadcast.mdx b/apps/docs/content/guides/realtime/broadcast.mdx index ea497c0c89e..ae0ef21f32a 100644 --- a/apps/docs/content/guides/realtime/broadcast.mdx +++ b/apps/docs/content/guides/realtime/broadcast.mdx @@ -49,6 +49,18 @@ Go to your Supabase project's [API Settings](https://supabase.com/dashboard/proj final supabase = Supabase.instance.client; ``` + + + + ```swift + import Supabase + + let SUPABASE_URL = "https://.supabase.co" + let SUPABASE_KEY = "" + + let client = SupabaseClient(supabaseURL: URL(string: SUPABASE_URL)!, supabaseKey: SUPABASE_KEY) + ``` + @@ -112,6 +124,22 @@ You can provide a callback for the `broadcast` channel to receive message. In th .subscribe(); ``` + + + + ```swift + let channelA = await clientA.channel("room-1") + + // Listen for broadcast messages + let broadcastStream = await channelA.broadcast(event: "test") + + await channelA.subscribe() + + for await event in broadcastStream { + print(event) + } + ``` + @@ -185,6 +213,22 @@ You can provide a callback for the `broadcast` channel to receive message. In th }); ``` + + + + We can send Broadcast messages using `channelB.broadcast()`. Let's set up another client to send messages. + + ```swift + let channelB = await clientA.channel("room-1") + + await channelB.subscribe() + + try await channelB.broadcast( + event: "test", + message: YourMessage(message: "hello, world!") + ) + ``` + @@ -273,6 +317,28 @@ You can pass configuration options while initializing the Supabase Client. }); ``` + + + + By default, broadcast messages are only sent to other clients. You can broadcast messages back to the sender by setting Broadcast's `receiveOwnBroadcasts` parameter to `true`. + + ```swift + let myChannel = await supabase.channel("room-2") { + $0.broadcast.receiveOwnBroadcasts = true + } + + let broadcastStream = await myChannel.broadcast(event: "test-my-messages") + + await myChannel.subscribe() + + try await myChannel.broadcast( + event: "test-my-messages", + payload: YourMessage( + message: "talking to myself" + ) + ) + ``` + @@ -361,6 +427,21 @@ You can pass configuration options while initializing the Supabase Client. }); ``` + + + + You can confirm that Realtime received your message by setting Broadcast's `acknowledgeBroadcasts` config to `true`. + + ```swift + let myChannel = await clientD.channel("room-3") { + $0.broadcast.acknowledgeBroadcasts = true + } + + await myChannel.subscribe() + + await myChannel.broadcast(event: "acknowledge", message: [:]) + ``` + @@ -435,6 +516,18 @@ You can also send a Broadcast message by making an HTTP request to Realtime serv print(res); ``` + + + ```swift + let myChannel = await supabase.channel("room-2") { + $0.broadcast.acknowledgeBroadcasts = true + } + + // No need to subscribe to channel + + await myChannel.broadcast(event: "test", message: ["message": "HI"]) + ``` + ```kotlin diff --git a/apps/docs/content/guides/realtime/postgres-changes.mdx b/apps/docs/content/guides/realtime/postgres-changes.mdx index 252e79330e5..14e05cbbd62 100644 --- a/apps/docs/content/guides/realtime/postgres-changes.mdx +++ b/apps/docs/content/guides/realtime/postgres-changes.mdx @@ -89,7 +89,7 @@ In this example we'll set up a database table, secure it with Row Level Security - Go to your project's [Replication settings](https://supabase.com/dashboard/project/_/database/replication), and under `supabase_realtime`, toggle on the tables you want to listen to. + Go to your project's [Publications settings](https://supabase.com/dashboard/project/_/database/publications), and under `supabase_realtime`, toggle on the tables you want to listen to. @@ -236,6 +236,26 @@ supabase .subscribe(); ``` + + + +```swift +let myChannel = await supabase.channel("schema-db-changes") + +let changes = await myChannel.postgresChange(AnyAction.self, schema: "public") + +await myChannel.subscribe() + +for await change in changes { + switch change { + case .insert(let action): print(action) + case .update(let action): print(action) + case .delete(let action): print(action) + case .select(let action): print(action) + } +} +``` + @@ -302,6 +322,23 @@ final changes = supabase .subscribe(); ``` + + + +Use `InsertAction.self` as type to listen only to database `INSERT`s: + +```swift +let myChannel = await supabase.channel("schema-db-changes") + +let changes = await myChannel.postgresChange(InsertAction.self, schema: "public") + +await myChannel.subscribe() + +for await change in changes { + print(change.record) +} +``` + @@ -366,6 +403,23 @@ supabase .subscribe(); ``` + + + +Use `UpdateAction.self` as type to listen only to database `UPDATE`s: + +```swift +let myChannel = await supabase.channel("schema-db-changes") + +let changes = await myChannel.postgresChange(UpdateAction.self, schema: "public") + +await myChannel.subscribe() + +for await change in changes { + print(change.oldRecord, change.record) +} +``` + @@ -430,6 +484,23 @@ supabase .subscribe(); ``` + + + +Use `DeleteAction.self` as type to listen only to database `DELETE`s: + +```swift +let myChannel = await supabase.channel("schema-db-changes") + +let changes = await myChannel.postgresChange(DeleteAction.self, schema: "public") + +await myChannel.subscribe() + +for await change in changes { + print(change.oldRecord) +} +``` + @@ -496,6 +567,26 @@ supabase .subscribe(); ``` + + + +```swift +let myChannel = await supabase.channel("db-changes") + +let changes = await myChannel.postgresChange(AnyAction.self, schema: "public", table: "todos") + +await myChannel.subscribe() + +for await change in changes { + switch change { + case .insert(let action): print(action) + case .update(let action): print(action) + case .delete(let action): print(action) + case .select(let action): print(action) + } +} +``` + @@ -576,6 +667,18 @@ supabase .subscribe(); ``` + + + +```swift +let myChannel = await supabase.channel("db-changes") + +let messageChanges = await myChannel.postgresChange(AnyAction.self, schema: "public", table: "messages") +let userChanges = await myChannel.postgresChange(InsertAction.self, schema: "public", table: "users") + +await myChannel.subscribe() +``` + @@ -641,6 +744,26 @@ const changes = client .subscribe(); ``` + + + +```swift +let myChannel = await supabase.channel("db-changes") + +let changes = await myChannel.postgresChange( + InsertAction.self, + schema: "public", + table: "todos", + filter: "id=eq.1" +) + +await myChannel.subscribe() + +for await change in changes { + print(change.record) +} +``` + @@ -716,6 +839,26 @@ supabase .subscribe(); ``` + + + +```swift +let myChannel = await supabase.channel("db-changes") + +let changes = await myChannel.postgresChange( + UpdateAction.self, + schema: "public", + table: "messages", + filter: "body=eq.hey" +) + +await myChannel.subscribe() + +for await change in changes { + print(change.record) +} +``` + @@ -789,6 +932,26 @@ supabase .subscribe(); ``` + + + +```swift +let myChannel = await supabase.channel("db-changes") + +let changes = await myChannel.postgresChange( + UpdateAction.self, + schema: "public", + table: "messages", + filter: "body=neq.hey" +) + +await myChannel.subscribe() + +for await change in changes { + print(change.record) +} +``` + @@ -863,6 +1026,26 @@ supabase .subscribe(); ``` + + + +```swift +let myChannel = await supabase.channel("db-changes") + +let changes = await myChannel.postgresChange( + InsertAction.self, + schema: "public", + table: "profiles", + filter: "age=lt.65" +) + +await myChannel.subscribe() + +for await change in changes { + print(change.record) +} +``` + @@ -936,6 +1119,26 @@ supabase .subscribe(); ``` + + + +```swift +let myChannel = await supabase.channel("db-changes") + +let changes = await myChannel.postgresChange( + InsertAction.self, + schema: "public", + table: "profiles", + filter: "age=lte.65" +) + +await myChannel.subscribe() + +for await change in changes { + print(change.record) +} +``` + @@ -1009,6 +1212,26 @@ supabase .subscribe(); ``` + + + +```swift +let myChannel = await supabase.channel("db-changes") + +let changes = await myChannel.postgresChange( + InsertAction.self, + schema: "public", + table: "products", + filter: "quantity=gt.10" +) + +await myChannel.subscribe() + +for await change in changes { + print(change.record) +} +``` + @@ -1082,6 +1305,26 @@ supabase .subscribe(); ``` + + + +```swift +let myChannel = await supabase.channel("db-changes") + +let changes = await myChannel.postgresChange( + InsertAction.self, + schema: "public", + table: "products", + filter: "quantity=gte.10" +) + +await myChannel.subscribe() + +for await change in changes { + print(change.record) +} +``` + @@ -1155,6 +1398,26 @@ supabase .subscribe(); ``` + + + +```swift +let myChannel = await supabase.channel("db-changes") + +let changes = await myChannel.postgresChange( + InsertAction.self, + schema: "public", + table: "products", + filter: "name=in.(red, blue, yellow)" +) + +await myChannel.subscribe() + +for await change in changes { + print(change.record) +} +``` + @@ -1277,6 +1540,28 @@ supabase .subscribe(); ``` + + + +```swift +await supabase.realtime.setAuth("your-custom-jwt") + +let myChannel = await supabase.channel("db-changes") + +let changes = await myChannel.postgresChange( + UpdateAction.self, + schema: "public", + table: "products", + filter: "name=in.(red, blue, yellow)" +) + +await myChannel.subscribe() + +for await change in changes { + print(change.record) +} +``` + @@ -1333,6 +1618,13 @@ supabase.realtime.setAuth('fresh-token') supabase.realtime.setAuth('fresh-token'); ``` + + + +```swift +await supabase.realtime.setAuth("fresh-token") +``` + diff --git a/apps/docs/content/guides/realtime/presence.mdx b/apps/docs/content/guides/realtime/presence.mdx index d9712186d3b..02c6cf182ad 100644 --- a/apps/docs/content/guides/realtime/presence.mdx +++ b/apps/docs/content/guides/realtime/presence.mdx @@ -48,6 +48,17 @@ void main() { final supabase = Supabase.instance.client; ``` + + + +```swift +let supabaseURL = "https://.supabase.co" +let supabaseKey = "" +let supabase = SupabaseClient(supabaseURL: URL(string: supabaseURL)!, supabaseKey: supabaseKey) + +let realtime = supabase.realtime +``` + @@ -110,6 +121,23 @@ roomOne.onPresenceSync((_) { }).subscribe(); ``` + + + +Listen to the presence change stream, emitting a new `PresenceAction` whenever someone joins or leaves: + +```swift +let roomOne = await supabase.channel("room_01") +let presenceStream = await roomOne.presenceChange() + +await roomOne.subscribe() + +for await presence in presenceStream { + print(presence.join) // You can also use presence.decodeJoins(as: MyType.self) + print(presence.leaves) // You can also use presence.decodeLeaves(as: MyType.self) +} +``` + @@ -180,6 +208,31 @@ roomOne.subscribe((status, error) async { }); ``` + + + +```swift +let roomOne = await supabase.channel("room_01") + +// Using a custom type +let userStatus = UserStatus( + user: "user-1", + onlineAt: Date().timeIntervalSince1970 +) + +await roomOne.subscribe() + +try await roomOne.track(userStatus) + +// Or using a raw JSONObject. +await roomOne.track( + [ + "user": .string("user-1"), + "onlineAt": .double(Date().timeIntervalSince1970) + ] +) +``` + @@ -237,6 +290,13 @@ untrackPresence() async { untrackPresence(); ``` + + + +```swift +await roomOne.untrack() +``` + @@ -290,6 +350,15 @@ final channelC = supabase.channel( ); ``` + + + +```swift +let channelC = await supabase.channel("test") { + $0.presence.key = "userId-123" +} +``` + diff --git a/apps/docs/content/guides/realtime/protocol.mdx b/apps/docs/content/guides/realtime/protocol.mdx index f050d9b6f25..8d8dc98b972 100644 --- a/apps/docs/content/guides/realtime/protocol.mdx +++ b/apps/docs/content/guides/realtime/protocol.mdx @@ -115,7 +115,7 @@ To update the access token, you need to send to the server a message specifying ## Postgres CDC message -Realtime sends a message with the following structure +Realtime sends a message with the following structure. By default, the payload only includes new record changes, and the `old` entry includes the changed row's primary id. If you want to receive old records, you can set the replicate identity of your table to full. Check out [this section of the guide](/docs/guides/realtime/postgres-changes#receiving-old-records). ```ts { @@ -123,14 +123,13 @@ Realtime sends a message with the following structure "topic": string, "payload": { "data": { - "columns": Array<{name: string, type: string}>, - "commit_timestamp": string, - "errors": null | string, - "old_record": {"id": number | string}, - "record": {[key: string]: boolean | number | string | null}, - "type": "*" | "INSERT" | "UPDATE" | "DELETE", - "schema": string, - "table": string + schema: string, + table: string, + commit_timestamp: string, + eventType: "*" | "INSERT" | "UPDATE" | "DELETE", + new: {[key: string]: boolean | number | string | null}, + old: {[key: string]: number | string}, + errors: string | null }, "ids": Array }, diff --git a/apps/docs/content/guides/realtime/quotas.mdx b/apps/docs/content/guides/realtime/quotas.mdx index 9d0ffa14d03..2fc29c352e5 100644 --- a/apps/docs/content/guides/realtime/quotas.mdx +++ b/apps/docs/content/guides/realtime/quotas.mdx @@ -28,10 +28,6 @@ Upgrade your plan to increase your quotas. Without a spend cap, or on an Enterpr Beyond the Free and Pro plan you can customize your quotas by [contacting support](https://supabase.com/dashboard/support/new). -## Client-Side throttling - -Some basic WebSocket message throttling is implemented client-side. See the [Throttling](/docs/guides/realtime/guides/client-side-throttling) guide for more details. - ## Quota errors When you exceed a quota, errors will appear in the backend logs and client-side messages in the WebSocket connection. diff --git a/apps/docs/content/guides/resources/examples.mdx b/apps/docs/content/guides/resources/examples.mdx index 0e3e2c4ea45..177df12f0c3 100644 --- a/apps/docs/content/guides/resources/examples.mdx +++ b/apps/docs/content/guides/resources/examples.mdx @@ -150,6 +150,7 @@ Build a basic Todo List with Supabase and your favorite frontend framework: - Supabase + Ory Cloud [Github](https://github.com/ory/examples/tree/master/supabase-ory-cloud) - Supabase Auth with React Native + Next.js (Monorepo) [Github](https://github.com/mateoguzmana/react-native-next-supabase-auth-monorepo) - Supabase Auth with Nuxt3 [Github](https://github.com/zackha/supaAuth) +- Supabase Auth with Hono [Github](https://github.com/CarlosZiegler/hono-supabase) ### Blog posts diff --git a/apps/docs/content/guides/self-hosting/docker.mdx b/apps/docs/content/guides/self-hosting/docker.mdx index 4fee2c0d8ba..f9e9dc3f6e5 100644 --- a/apps/docs/content/guides/self-hosting/docker.mdx +++ b/apps/docs/content/guides/self-hosting/docker.mdx @@ -139,10 +139,14 @@ You will need to [restart](#restarting-all-services) the services for the change You can restart services to pick up any configuration changes by running: ```sh -docker compose restart +# Stop and remove the containers +docker compose down + +# Recreate and start the containers +docker compose up -d ``` -Be aware that this will result in downtime while the services are restarting. +Be aware that this will result in downtime. Simply restarting the services does not apply configuration changes. ## Stopping all services diff --git a/apps/docs/content/guides/storage/debugging/error-codes.mdx b/apps/docs/content/guides/storage/debugging/error-codes.mdx index a190912b3cd..bb22f83afae 100644 --- a/apps/docs/content/guides/storage/debugging/error-codes.mdx +++ b/apps/docs/content/guides/storage/debugging/error-codes.mdx @@ -2,12 +2,79 @@ id: 'storage-errors-codes' title: 'Error Codes' description: 'Supabase Error Codes' +subtitle: 'Learn about the Storage error codes and how to resolve them' sidebar_label: 'Debugging' --- +## Storage Error Codes + + + We are transitioning to a new error code system. For backwards compatibility you'll still be able + to see the old error codes + + +Error codes in Storage are returned as part of the response body. They are useful for debugging and understanding what went wrong with your request. +The error codes are returned in the following format: + +```json +{ + "code": "error_code", + "message": "error_message" +} +``` + +Here is the full list of error codes and their descriptions: + +| ErrorCode | Description | StatusCode | Resolution | +| ------------------------- | --------------------------------------------------------------- | ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| NoSuchBucket | The specified bucket does not exist. | 404 | Verify the bucket name and ensure it exists in the system, if it exists you don't have permissions to access it. | +| NoSuchKey | The specified key does not exist. | 404 | Check the key name and ensure it exists in the specified bucket, if it exists you don't have permissions to access it. | +| NoSuchUpload | The specified upload does not exist. | 404 | The uploadID provided might not exists or the Upload was previously aborted | +| InvalidJWT | The provided JWT (JSON Web Token) is invalid. | 401 | The JWT provided might be expired or malformed, provide a valid JWT | +| InvalidRequest | The request is not properly formed. | 400 | Review the request parameters and structure, ensure they meet the API's requirements, the error message will provide more details | +| TenantNotFound | The specified tenant does not exist. | 404 | The Storage service had issues while provisioning, please [Contact Support](https://supabase.com/dashboard/support/new) | +| EntityTooLarge | The entity being uploaded is too large. | 413 | Verify the max-file-limit is equal or higher to the resource you are trying to upload, you can change this value on the [Project Setting](https://supabase.com/dashboard/project/_/settings/storage) | +| InternalError | An internal server error occurred. | 500 | Investigate server logs to identify the cause of the internal error. If you think it's a Storage error please [Contact Support](https://supabase.com/dashboard/support/new) | +| ResourceAlreadyExists | The specified resource already exists. | 409 | Use a different name or identifier for the resource to avoid conflicts. Use `x-upsert:true` header to overwrite the resource. | +| InvalidBucketName | The specified bucket name is invalid. | 400 | Ensure the bucket name follows the naming conventions and does not contain invalid characters. | +| InvalidKey | The specified key is invalid. | 400 | Verify the key name and ensure it follows the naming conventions. | +| InvalidRange | The specified range is not valid. | 416 | Make sure that range provided is within the file size boundary and follow the [HTTP Range spec](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Range) | +| InvalidMimeType | The specified MIME type is not valid. | 400 | Provide a valid MIME type, ensure using the standard MIME type format | +| InvalidUploadId | The specified upload ID is invalid. | 400 | The upload ID provided is invalid or missing. Make sure to provide a active uploadID | +| KeyAlreadyExists | The specified key already exists. | 409 | Use a different key name to avoid conflicts with existing keys. Use `x-upsert:true` header to overwrite the resource. | +| BucketAlreadyExists | The specified bucket already exists. | 409 | Choose a unique name for the bucket that does not conflict with existing buckets. | +| DatabaseTimeout | Timeout occurred while accessing the database. | 504 | Investigate database performance and increase the default pool size. If this error still occurs please upgrade your instance | +| InvalidSignature | The signature provided does not match the calculated signature. | 403 | Check that you are providing the correct signature format, for more information refer to [SignatureV4](https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html) | +| SignatureDoesNotMatch | The request signature does not match the calculated signature. | 403 | Check your credentials, access key id / access secret key / region that are all correct, refer to [S3 Authentication](/docs/guides/storage/s3/authentication). | +| AccessDenied | Access to the specified resource is denied. | 403 | Check that you have the correct RLS policy to allow access to this resource | +| ResourceLocked | The specified resource is locked. | 423 | This resource cannot be altered while there is a lock. Wait and try the request again | +| DatabaseError | An error occurred while accessing the database. | 500 | Investigate database logs and system configuration to identify and address the database error. | +| MissingContentLength | The Content-Length header is missing. | 411 | Ensure the Content-Length header is included in the request with the correct value. | +| MissingParameter | A required parameter is missing in the request. | 400 | Provide all required parameters in the request to fulfill the API's requirements. The message field will contain more details | +| InvalidUploadSignature | The provided upload signature is invalid. | 403 | The MultiPartUpload record was altered while the upload was ongoing, the signature do not match. Do not alter the upload record | +| LockTimeout | Timeout occurred while waiting for a lock. | 423 | The lock couldn't be acquired within the specified timeout. Wait and try the request again | +| S3Error | An error occurred related to Amazon S3. | - | Refer to Amazon S3 documentation or [Contact Support](https://supabase.com/dashboard/support/new) for assistance with resolving the S3 error. | +| S3InvalidAccessKeyId | The provided AWS access key ID is invalid. | 403 | Verify the AWS access key ID provided and ensure it is correct and active. | +| S3MaximumCredentialsLimit | The maximum number of credentials has been reached. | 400 | The maximum limit of credentials is reached. | +| InvalidChecksum | The checksum of the entity does not match. | 400 | Recalculate the checksum of the entity and ensure it matches the one provided in the request. | +| MissingPart | A part of the entity is missing. | 400 | Ensure all parts of the entity are included in the request before completing the operation. | +| SlowDown | The request rate is too high and has been throttled. | 503 | Reduce the request rate or implement exponential backoff and retry mechanisms to handle throttling. | + +## Legacy Error Codes + +As we are transitioning to a new error code system, you might still see the following error format: + +```json +{ + "httpStatusCode": 400, + "code": "error_code", + "message": "error_message" +} +``` + Here's a list of the most common error codes and their potential resolutions: -## 404 not_found +### 404 not_found Indicates that the resource is not found or you don't have the correct permission to access it **Resolution:** @@ -16,14 +83,14 @@ Indicates that the resource is not found or you don't have the correct permissio - Ensure you include the user `Authorization` header - Verify the object exists -## 409 already_exists +### 409 already_exists Indicates that the resource already exists. **Resolution:** - Use the `upsert` functionality in order to overwrite the file. Find out more [here](/docs/guides/storage/uploads/standard-uploads#overwriting-files). -## 403 unauthorized +### 403 unauthorized You don't have permission to action this request **Resolution:** @@ -31,7 +98,7 @@ You don't have permission to action this request - Add RLS policy to grant permission. See our [Access Control docs](/docs/guides/storage/uploads/access-control) for more information. - Ensure you include the user `Authorization` header -## 429 too many requests +### 429 too many requests This problem typically arises when a large number of clients are concurrently interacting with the Storage service, and the pooler has reached its `max_clients` limit. @@ -40,7 +107,7 @@ This problem typically arises when a large number of clients are concurrently in - Increase the max_clients limits of the pooler. - Upgrade to a bigger project compute instance [here](https://supabase.com/dashboard/project/_/settings/addons). -## 544 database_timeout +### 544 database_timeout This problem arises when a high number of clients are concurrently using the Storage service, and Postgres doesn't have enough available connections to efficiently handle requests to Storage. @@ -49,7 +116,7 @@ This problem arises when a high number of clients are concurrently using the Sto - Increase the pool_size limits of the pooler. - Upgrade to a bigger project compute instance [here](https://supabase.com/dashboard/project/_/settings/addons). -## 500 internal_server_error +### 500 internal_server_error This issue occurs where there is a unhandled error. **Resolution:** diff --git a/apps/docs/content/guides/storage/management/copy-move-objects.mdx b/apps/docs/content/guides/storage/management/copy-move-objects.mdx new file mode 100644 index 00000000000..26bf21eab08 --- /dev/null +++ b/apps/docs/content/guides/storage/management/copy-move-objects.mdx @@ -0,0 +1,79 @@ +--- +id: 'storage-management' +title: 'Copy Objects' +description: 'Learn how to copy and move objects' +subtitle: 'Learn how to copy and move objects' +sidebar_label: 'Copy / Move Objects' +--- + +## Copy objects + +You can copy objects between buckets or within the same bucket. Currently only objects up to 5 GB can be copied using the API. + +When making a copy of an object, the owner of the new object will be the user who initiated the copy operation. + +### Copying objects within the same bucket + +To copy an object within the same bucket, use the `copy` method. + +```javascript +await supabase.storage.from('avatars').copy('public/avatar1.png', 'private/avatar2.png') +``` + +### Copying objects across buckets + +To copy an object across buckets, use the `copy` method and specify the destination bucket. + +```javascript +await supabase.storage.from('avatars').copy('public/avatar1.png', 'private/avatar2.png', { + destinationBucket: 'avatars2', +}) +``` + +## Move objects + +You can move objects between buckets or within the same bucket. Currently only objects up to 5GB can be moved using the API. + +When moving an object, the owner of the new object will be the user who initiated the move operation. Once the object is moved, the original object will no longer exist. + +### Moving objects within the same bucket + +To move an object within the same bucket, you can use the `move` method. + +```javascript +const { data, error } = await supabase.storage + .from('avatars') + .move('public/avatar1.png', 'private/avatar2.png') +``` + +### Moving objects across buckets + +To move an object across buckets, use the `move` method and specify the destination bucket. + +```javascript +await supabase.storage.from('avatars').move('public/avatar1.png', 'private/avatar2.png', { + destinationBucket: 'avatars2', +}) +``` + +## Permissions + +For a user to move and copy objects, they need `select` permission on the source object and `insert` permission on the destination object. For example: + +```sql +create policy "User can select their own objects (in any buckets)" +on storage.objects +for select +to authenticated +using ( + owner_id = (select auth.uid()) +); + +create policy "User can upload in their own folders (in any buckets)" +on storage.objects +for insert +to authenticated +with check ( + (storage.folder(name))[1] = (select auth.uid()) +); +``` diff --git a/apps/docs/content/guides/storage/management/delete-objects.mdx b/apps/docs/content/guides/storage/management/delete-objects.mdx new file mode 100644 index 00000000000..fba9cfdd7e1 --- /dev/null +++ b/apps/docs/content/guides/storage/management/delete-objects.mdx @@ -0,0 +1,37 @@ +--- +id: 'storage-management' +title: 'Delete Objects' +description: 'Learn about deleting objects' +subtitle: 'Learn about deleting objects' +sidebar_label: 'Delete Objects' +--- + +When you delete one or more objects from a bucket, the files are permanently removed and not recoverable. You can delete a single object or multiple objects at once. + + + +Deleting objects should always be done via the **Storage API** and NOT via a **SQL query**. Deleting objects via a SQL query will not remove the object from the bucket and will result in the object being orphaned. + + + +## Delete objects + +To delete one or more objects, use the `remove` method. + +```javascript +await supabase.storage.from('bucket').remove(['object-key-1', 'object-key-2']) +``` + +## RLS + +To delete an object, the user must have the `delete` permission on the object. For example: + +```sql +create policy "User can delete their own objects" +on storage.objects +for delete +TO authenticated +USING ( + owner = (select auth.uid()) +); +``` diff --git a/apps/docs/content/guides/storage/s3/authentication.mdx b/apps/docs/content/guides/storage/s3/authentication.mdx new file mode 100644 index 00000000000..ab127a2d1a4 --- /dev/null +++ b/apps/docs/content/guides/storage/s3/authentication.mdx @@ -0,0 +1,96 @@ +--- +id: 'storage-s3-authentication' +title: 'S3 Authentication' +description: 'Authentication' +subtitle: 'Learn about authenticating with Supabase Storage S3.' +sidebar_label: 'S3' +--- + +You have two options to authenticate with Supabase Storage S3: + +- Using the generated S3 access keys from your [project settings](/dashboard/project/_/settings/storage) (Intended exclusively for server-side use) +- Using a Session Token, which will allow you to authenticate with a user JWT token and provide limited access via Row Level Security (RLS). + +## S3 access keys + + + +S3 access keys provide full access to all S3 operations across all buckets and bypass RLS policies. These are meant to be used only on the server. + + + +To authenticate with S3, generate a pair of credentials (Access Key ID and Secret Access Key), copy the endpoint and region from the [project settings page](/dashboard/project/_/settings/storage). + +This is all the information you need to connect to Supabase Storage using any S3-compatible service. + +Storage S3 Access keys + + + + ```js + import { S3Client } from '@aws-sdk/client-s3'; + + const client = new S3Client({ + forcePathStyle: true, + region: 'project_region', + endpoint: 'https://project_ref.supabase.co/storage/v1/s3', + credentials: { + accessKeyId: 'your_access_key_id', + accessSecretKey: 'your_secret_access_key', + } + }) + ``` + + + + ```bash + # ~/.aws/credentials + + [supabase] + aws_access_key_id = your_access_key_id + aws_secret_access_key = your_secret_access_key + endpoint_url = https://project_ref.supabase.co/storage/v1/s3 + region = project_region + ``` + + + + +## Session token + +You can authenticate to Supabase S3 with a user JWT token to provide limited access via RLS to all S3 operations. This is useful when you want initialize the S3 client on the server scoped to a specific user, or use the S3 client directly from the client side. + +All S3 operations performed with the Session Token are scoped to the authenticated user. RLS policies on the Storage Schema are respected. + +To authenticate with S3 using a Session Token, use the following credentials: + +- access_key_id: `project_ref` +- access_secret_key: `anonKey` +- session_token: `valid jwt token` + +For example, using the `aws-sdk` library: + +```javascript +import { S3Client } from '@aws-sdk/client-s3' + +const { + data: { session }, +} = await supabase.auth.getSession() + +const client = new S3Client({ + forcePathStyle: true, + region: 'project_region', + endpoint: 'https://project_ref.supabase.co/storage/v1/s3', + credentials: { + accessKeyId: 'project_ref', + accessSecretKey: 'anonKey', + sessionToken: session.access_token, + }, +}) +``` diff --git a/apps/docs/content/guides/storage/s3/compatibility.mdx b/apps/docs/content/guides/storage/s3/compatibility.mdx new file mode 100644 index 00000000000..b6770b12da8 --- /dev/null +++ b/apps/docs/content/guides/storage/s3/compatibility.mdx @@ -0,0 +1,57 @@ +--- +id: 'storage-s3-compatibility' +title: 'S3 Compatibility' +description: 'Compatibility spec' +subtitle: 'Learn about the compatibility of Supabase Storage with S3.' +sidebar_label: 'S3' +--- + +Supabase Storage is compatible with the S3 protocol. You can use any S3 client to interact with your Storage objects. + +Storage supports [standard](/docs/guides/storage/uploads/standard-uploads), [resumable](/docs/guides/storage/uploads/resumable-uploads) and [S3 uploads](/docs/guides/storage/uploads/s3-uploads) and all these protocols are interoperable. You can upload a file with the S3 protocol and list it with the REST API or upload with Resumable uploads and list with S3. + + + +The S3 protocol is currently in Public Alpha. If you encounter any issues or have feature requests, [contact us](/dashboard/support/new). + + + +## Implemented endpoints + +The most commonly used endpoints are implemented, and more will be added. Implemented S3 endpoints are marked with ✅ in the following tables. + +### Bucket operations + +| API Name | Feature | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| ✅ [ListBuckets](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBuckets.html) | | +| ✅ [HeadBucket](https://docs.aws.amazon.com/AmazonS3/latest/API/API_HeadBucket.html) | ❌ Bucket Owner:
❌ x-amz-expected-bucket-owner | +| ✅ [CreateBucket](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucket.html) | ❌ ACL:
❌ x-amz-acl
❌ x-amz-grant-full-control
❌ x-amz-grant-read
❌ x-amz-grant-read-acp
❌ x-amz-grant-write
❌ x-amz-grant-write-acp
❌ Object Locking:
❌ x-amz-bucket-object-lock-enabled
❌ Bucket Owner:
❌ x-amz-expected-bucket-owner | +| ✅ [DeleteBucket](https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucket.html) | ❌ Bucket Owner:
❌ x-amz-expected-bucket-owner | +| ✅ [GetBucketLocation](https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketLocation.html) | ❌ Bucket Owner:
❌ x-amz-expected-bucket-owner | +| ❌ [DeleteBucketCors](https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketCors.html) | ❌ Bucket Owner:
❌ x-amz-expected-bucket-owner | +| ❌ [GetBucketEncryption](https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketEncryption.html) | ❌ Bucket Owner:
❌ x-amz-expected-bucket-owner | +| ❌ [GetBucketLifecycleConfiguration](https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketLifecycleConfiguration.html) | ❌ Bucket Owner:
❌ x-amz-expected-bucket-owner | +| ❌ [GetBucketCors](https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketCors.html) | ❌ Bucket Owner:
❌ x-amz-expected-bucket-owner | +| ❌ [PutBucketCors](https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketCors.html) | ❌ Checksums:
❌ x-amz-sdk-checksum-algorithm
❌ x-amz-checksum-algorithm
❌ Bucket Owner:
❌ x-amz-expected-bucket-owner | +| ❌ [PutBucketLifecycleConfiguration](https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycleConfiguration.html) | ❌ Checksums:
❌ x-amz-sdk-checksum-algorithm
❌ x-amz-checksum-algorithm
❌ Bucket Owner:
❌ x-amz-expected-bucket-owner | + +### Object operations + +| API Name | Feature | +| -------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| ✅ [HeadObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_HeadObject.html) | ✅ Conditional Operations:
✅ If-Match
✅ If-Modified-Since
✅ If-None-Match
✅ If-Unmodified-Since
✅ Range:
✅ Range (has no effect in HeadObject)
✅ partNumber
❌ SSE-C:
❌ x-amz-server-side-encryption-customer-algorithm
❌ x-amz-server-side-encryption-customer-key
❌ x-amz-server-side-encryption-customer-key-MD5
❌ Request Payer:
❌ x-amz-request-payer
❌ Bucket Owner:
❌ x-amz-expected-bucket-owner | +| ✅ [ListObjects](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjects.html) | Query Parameters:
✅ delimiter
✅ encoding-type
✅ marker
✅ max-keys
✅ prefix
❌ Request Payer:
❌ x-amz-request-payer
❌ Bucket Owner:
❌ x-amz-expected-bucket-owner | +| ✅ [ListObjectsV2](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjectsV2.html) | Query Parameters:
✅ list-type
✅ continuation-token
✅ delimiter
✅ encoding-type
✅ fetch-owner
✅ max-keys
✅ prefix
✅ start-after
❌ Request Payer:
❌ x-amz-request-payer
❌ Bucket Owner:
❌ x-amz-expected-bucket-owner | +| ✅ [GetObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html) | ✅ Conditional Operations:
✅ If-Match
✅ If-Modified-Since
✅ If-None-Match
✅ If-Unmodified-Since
✅ Range:
✅ Range
✅ PartNumber
❌ SSE-C:
❌ x-amz-server-side-encryption-customer-algorithm
❌ x-amz-server-side-encryption-customer-key
❌ x-amz-server-side-encryption-customer-key-MD5
❌ Request Payer:
❌ x-amz-request-payer
❌ Bucket Owner:
❌ x-amz-expected-bucket-owner | +| ✅ [PutObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html) | System Metadata:
✅ Content-Type
✅ Cache-Control
✅ Content-Disposition
✅ Content-Encoding
✅ Content-Language
✅ Expires
❌ Content-MD5
❌ Object Lifecycle
❌ Website:
❌ x-amz-website-redirect-location
❌ SSE-C:
❌ x-amz-server-side-encryption
❌ x-amz-server-side-encryption-customer-algorithm
❌ x-amz-server-side-encryption-customer-key
❌ x-amz-server-side-encryption-customer-key-MD5
❌ x-amz-server-side-encryption-aws-kms-key-id
❌ x-amz-server-side-encryption-context
❌ x-amz-server-side-encryption-bucket-key-enabled
❌ Request Payer:
❌ x-amz-request-payer
❌ Tagging:
❌ x-amz-tagging
❌ Object Locking:
❌ x-amz-object-lock-mode
❌ x-amz-object-lock-retain-until-date
❌ x-amz-object-lock-legal-hold
❌ ACL:
❌ x-amz-acl
❌ x-amz-grant-full-control
❌ x-amz-grant-read
❌ x-amz-grant-read-acp
❌ x-amz-grant-write-acp
❌ Bucket Owner:
❌ x-amz-expected-bucket-owner | +| ✅ [DeleteObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteObject.html) | ❌ Multi-factor authentication:
❌ x-amz-mfa
❌ Object Locking:
❌ x-amz-bypass-governance-retention
❌ Request Payer:
❌ x-amz-request-payer
❌ Bucket Owner:
❌ x-amz-expected-bucket-owner | +| ✅ [DeleteObjects](https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteObjects.html) | ❌ Multi-factor authentication:
❌ x-amz-mfa
❌ Object Locking:
❌ x-amz-bypass-governance-retention
❌ Request Payer:
❌ x-amz-request-payer
❌ Bucket Owner:
❌ x-amz-expected-bucket-owner | +| ✅ [ListMultipartUploads](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListMultipartUploads.html) | ✅ Query Parameters:
✅ delimiter
✅ encoding-type
✅ key-marker
✅️ max-uploads
✅ prefix
✅ upload-id-marker | +| ✅ [CreateMultipartUpload](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateMultipartUpload.html) | ✅ System Metadata:
✅ Content-Type
✅ Cache-Control
✅ Content-Disposition
✅ Content-Encoding
✅ Content-Language
✅ Expires
❌ Content-MD5
❌ Website:
❌ x-amz-website-redirect-location
❌ SSE-C:
❌ x-amz-server-side-encryption
❌ x-amz-server-side-encryption-customer-algorithm
❌ x-amz-server-side-encryption-customer-key
❌ x-amz-server-side-encryption-customer-key-MD5
❌ x-amz-server-side-encryption-aws-kms-key-id
❌ x-amz-server-side-encryption-context
❌ x-amz-server-side-encryption-bucket-key-enabled
❌ Request Payer:
❌ x-amz-request-payer
❌ Tagging:
❌ x-amz-tagging
❌ Object Locking:
❌ x-amz-object-lock-mode
❌ x-amz-object-lock-retain-until-date
❌ x-amz-object-lock-legal-hold
❌ ACL:
❌ x-amz-acl
❌ x-amz-grant-full-control
❌ x-amz-grant-read
❌ x-amz-grant-read-acp
❌ x-amz-grant-write-acp
❌ Storage class:
❌ x-amz-storage-class
❌ Bucket Owner:
❌ x-amz-expected-bucket-owner | +| ✅ [CompleteMultipartUpload](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CompleteMultipartUpload.html) | ❌ Bucket Owner:
❌ x-amz-expected-bucket-owner
❌ Request Payer:
❌ x-amz-request-payer | +| ✅ [AbortMultipartUpload](https://docs.aws.amazon.com/AmazonS3/latest/API/API_AbortMultipartUpload.html) | ❌ Request Payer:
❌ x-amz-request-payer | +| ✅ [CopyObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html) | ✅ Operation Metadata:
⚠️ x-amz-metadata-directive
✅ System Metadata:
✅ Content-Type
✅ Cache-Control
✅ Content-Disposition
✅ Content-Encoding
✅ Content-Language
✅ Expires
✅ Conditional Operations:
✅ x-amz-copy-source
✅ x-amz-copy-source-if-match
✅ x-amz-copy-source-if-modified-since
✅ x-amz-copy-source-if-none-match
✅ x-amz-copy-source-if-unmodified-since
❌ ACL:
❌ x-amz-acl
❌ x-amz-grant-full-control
❌ x-amz-grant-read
❌ x-amz-grant-read-acp
❌ x-amz-grant-write-acp
❌ Website:
❌ x-amz-website-redirect-location
❌ SSE-C:
❌ x-amz-server-side-encryption
❌ x-amz-server-side-encryption-customer-algorithm
❌ x-amz-server-side-encryption-customer-key
❌ x-amz-server-side-encryption-customer-key-MD5
❌ x-amz-server-side-encryption-aws-kms-key-id
❌ x-amz-server-side-encryption-context
❌ x-amz-server-side-encryption-bucket-key-enabled
❌ x-amz-copy-source-server-side-encryption-customer-algorithm
❌ x-amz-copy-source-server-side-encryption-customer-key
❌ x-amz-copy-source-server-side-encryption-customer-key-MD5
❌ Request Payer:
❌ x-amz-request-payer
❌ Tagging:
❌ x-amz-tagging
❌ x-amz-tagging-directive
❌ Object Locking:
❌ x-amz-object-lock-mode
❌ x-amz-object-lock-retain-until-date
❌ x-amz-object-lock-legal-hold
❌ Bucket Owner:
❌ x-amz-expected-bucket-owner
❌ x-amz-source-expected-bucket-owner
❌ Checksums:
❌ x-amz-checksum-algorithm | +| ✅ [UploadPart](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html) | ✅ System Metadata:
❌ Content-MD5
❌ SSE-C:
❌ x-amz-server-side-encryption
❌ x-amz-server-side-encryption-customer-algorithm
❌ x-amz-server-side-encryption-customer-key
❌ x-amz-server-side-encryption-customer-key-MD5
❌ Request Payer:
❌ x-amz-request-payer
❌ Bucket Owner:
❌ x-amz-expected-bucket-owner | +| ✅ [UploadPartCopy](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html) | ❌ Conditional Operations:
❌ x-amz-copy-source
❌ x-amz-copy-source-if-match
❌ x-amz-copy-source-if-modified-since
❌ x-amz-copy-source-if-none-match
❌ x-amz-copy-source-if-unmodified-since
✅ Range:
✅ x-amz-copy-source-range
❌ SSE-C:
❌ x-amz-server-side-encryption-customer-algorithm
❌ x-amz-server-side-encryption-customer-key
❌ x-amz-server-side-encryption-customer-key-MD5
❌ x-amz-copy-source-server-side-encryption-customer-algorithm
❌ x-amz-copy-source-server-side-encryption-customer-key
❌ x-amz-copy-source-server-side-encryption-customer-key-MD5
❌ Request Payer:
❌ x-amz-request-payer
❌ Bucket Owner:
❌ x-amz-expected-bucket-owner
❌ x-amz-source-expected-bucket-owner | +| ✅ [ListParts](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListParts.html) | Query Parameters:
✅ max-parts
✅ part-number-marker
❌ Request Payer:
❌ x-amz-request-payer
❌ Bucket Owner:
❌ x-amz-expected-bucket-owner | diff --git a/apps/docs/content/guides/storage/schema/custom-roles.mdx b/apps/docs/content/guides/storage/schema/custom-roles.mdx new file mode 100644 index 00000000000..8d2b86cc8dc --- /dev/null +++ b/apps/docs/content/guides/storage/schema/custom-roles.mdx @@ -0,0 +1,73 @@ +--- +id: 'storage-schema-design' +title: 'Custom Roles' +description: 'Learn about the storage schema' +subtitle: 'Learn about using custom roles with storage schema' +sidebar_label: 'Schema' +--- + +In this guide, you will learn how to create and use custom roles with Storage to manage role-based access to objects and buckets. + +Supabase Storage uses the same role-based access control system as any other Supabase service using RLS (Row Level Security). + +## Create a Custom Role + +Let's create a custom role `manager` to provide full read access to a specific bucket. For a more advanced setup, see the [RBAC Guide](/docs/guides/auth/custom-claims-and-role-based-access-control-rbac#create-auth-hook-to-apply-user-role). + +```sql +create role 'manager'; + +-- Important to grant the role to the authenticator and anon role +grant manager to authenticator; +grant anon to manager; +``` + +## Create a policy + +Let's create a policy that gives full read permissions to all objects in the bucket `teams` for the `manager` role. + +```sql +create policy "Manager can view all files in the bucket 'teams'" +on storage.objects +for select +to manager +using ( + bucker_id = 'teams' +); +``` + +## Test the policy + +To impersonate the `manager` role, you will need a valid JWT token with the `manager` role. +You can quickly create one using the `jsonwebtoken` library in Node.js. + + + +Signing a new JWT requires your `JWT_SECRET`. You must store this secret securely. Never expose it in frontend code, and do not check it into version control. + + + +```js +const jwt = require('jsonwebtoken') + +const JWT_SECRET = 'your-jwt-secret' // You can find this in your Supabase project settings under API. Store this securely. +const USER_ID = '' // the user id that we want to give the manager role + +const token = jwt.sign({ role: 'manager', sub: USER_ID }, JWT_SECRET, { + expiresIn: '1h', +}) +``` + +Now you can use this token to access the Storage API. + +```js +const { StorageClient } = require('@supabase/storage-js') + +const PROJECT_URL = 'https://your-project-id.supabase.co/storage/v1' + +const storage = new StorageClient(PROJECT_URL, { + authorization: `Bearer ${token}`, +}) + +await storage.from('teams').list() +``` diff --git a/apps/docs/content/guides/storage/security/access-control.mdx b/apps/docs/content/guides/storage/security/access-control.mdx index e6af3eee841..8240030d744 100644 --- a/apps/docs/content/guides/storage/security/access-control.mdx +++ b/apps/docs/content/guides/storage/security/access-control.mdx @@ -70,7 +70,7 @@ for insert to authenticated with check ( bucket_id = 'my_bucket_id' and - (storage.foldername(name))[1] = auth.uid()::text + (storage.foldername(name))[1] = (select auth.uid()::text) ); ``` @@ -80,7 +80,7 @@ Allow a user to access a file that was previously uploaded by the same user: create policy "Individual user Access" on storage.objects for select to authenticated -using ( auth.uid() = owner_id ); +using ( (select auth.uid()) = owner_id ); ``` --- diff --git a/apps/docs/content/guides/storage/security/ownership.mdx b/apps/docs/content/guides/storage/security/ownership.mdx new file mode 100644 index 00000000000..a5d20510fe7 --- /dev/null +++ b/apps/docs/content/guides/storage/security/ownership.mdx @@ -0,0 +1,39 @@ +--- +id: 'storage-access-control' +title: 'Ownership' +description: 'Learn how ownership works in Supabase Storage and how to control access' +sidebar_label: 'Security' +--- + +When creating new buckets or objects in Supabase Storage, an owner is automatically assigned to the bucket or object. The owner is the user who created the resource and the value is derived from the `sub` claim in the JWT. +We store the `owner` in the `owner_id` column. + + + +When using the `service_key` to create a resource, the owner will not be set and the resource will be owned by anyone. This is also the case when you are creating Storage resources via the Dashboard. + + + + + +The Storage schema has 2 fields to represent ownership: `owner` and `owner_id`. `owner` is deprecated and will be removed. Use `owner_id` instead. + + + +## Access control + +By itself, the ownership of a resource does not provide any access control. However, you can enforce the ownership by implementing access control against storage resources scoped to their owner. + +For example, you can implement a policy where only the owner of an object can delete it. To do this, check the `owner_id` field of the object and compare it with the `sub` claim of the JWT: + +```sql +create policy "User can delete their own objects" +on storage.objects +for delete +to authenticated +using ( + owner_id = (select auth.uid()) +); +``` + +The use of RLS policies is just one way to enforce access control. You can also implement access control in your server code by following the same pattern. diff --git a/apps/docs/content/guides/storage/serving/bandwidth.mdx b/apps/docs/content/guides/storage/serving/bandwidth.mdx new file mode 100644 index 00000000000..4c0049ed0db --- /dev/null +++ b/apps/docs/content/guides/storage/serving/bandwidth.mdx @@ -0,0 +1,72 @@ +--- +id: 'storage-bandwidth' +title: 'Bandwidth & Storage Egress' +description: 'How to calculate the Bandwidth and Storage Egress' +subtitle: 'Bandwidth & Storage Egress' +sidebar_label: 'Bandwidth & Storage Egress' +--- + +## Bandwidth & Storage Egress + +Free plan Organizations in Supabase have a limit of 5 GB of bandwidth. This limit is calculated by the sum of all the data transferred from the Supabase servers to the client. This includes all the data transferred from the database, storage, and functions. + +### Checking Storage Egress Requests in Log Explorer: + +We have a template query that you can use to get the number of requests for each object in [Log Explorer](/dashboard/project/_/logs/explorer/templates). + +```sql +select + r.method as http_verb, + r.path as filepath, + count(*) as num_requests +from + edge_logs + cross join unnest(metadata) as m + cross join unnest(m.request) as r + cross join unnest(r.headers) as h +where (path like '%storage/v1/object/%' or path like '%storage/v1/render/%') and r.method = 'GET' +group by r.path, r.method +order by num_requests desc +limit 100; +``` + +Example of the output: + +``` +[ + {"filepath":"/storage/v1/object/sign/large%20bucket/20230902_200037.gif", + "http_verb":"GET", + "num_requests":100 + }, + {"filepath":"/storage/v1/object/public/demob/Sports/volleyball.png", + "http_verb":"GET", + "num_requests":168 + } +] +``` + +### Calculating Egress: + +If you already know the size of those files, you can calculate the egress by multiplying the number of requests by the size of the file. +You can also get the size of the file with the following cURL: + +```bash +curl -s -w "%{size_download}\n" -o /dev/null "https://my_project.supabase.co/storage/v1/object/large%20bucket/20230902_200037.gif" +``` + +This will return the size of the file in bytes. +For this example, let's say that `20230902_200037.gif` has a file size of 3 megabytes and `volleyball.png` has a file size of 570 kilobytes. + +Now, we have to sum all the egress for all the files to get the total egress: + +``` +100 * 3MB = 300MB +168 * 570KB = 95.76MB +Total Egress = 395.76MB +``` + +You can see that these values can get quite large, so it's important to keep track of the egress and optimize the files. + +### Optimizing Egress: + +If you are on the pro plan, you can use the [Supabase Image Transformations](/docs/guides/storage/image-transformations) to optimize the images and reduce the egress. diff --git a/apps/docs/content/guides/storage/serving/downloads.mdx b/apps/docs/content/guides/storage/serving/downloads.mdx index 31256c46cb0..c0603bbd2eb 100644 --- a/apps/docs/content/guides/storage/serving/downloads.mdx +++ b/apps/docs/content/guides/storage/serving/downloads.mdx @@ -1,5 +1,5 @@ --- -id: 'storage-image-transformations' +id: 'storage-image-downloads' title: 'Serving assets from Storage' description: 'Serving assets from Storage' subtitle: 'Serving assets from Storage' diff --git a/apps/docs/content/guides/storage/serving/image-transformations.mdx b/apps/docs/content/guides/storage/serving/image-transformations.mdx index d60dc23a173..deab689297c 100644 --- a/apps/docs/content/guides/storage/serving/image-transformations.mdx +++ b/apps/docs/content/guides/storage/serving/image-transformations.mdx @@ -37,6 +37,17 @@ supabase.storage.from('bucket').getPublicUrl('image.jpg', { }) ``` +
+ + +```swift +let url = try await supabase.storage.from("bucket") + .getPublicURL( + path: "image.jpg" + options: TransformOptions(with: 500, height: 600) + ) +``` + @@ -75,6 +86,21 @@ supabase.storage.from('bucket').createSignedUrl('image.jpg', 60000, { }) ``` + + + +```swift +let url = try await supabase.storage.from("bucket") + .createSignedURL( + path: "image.jpg", + expiresIn: 60, + transform: TransformOptions( + width: 200, + height: 200 + ) + ) +``` + @@ -111,6 +137,20 @@ supabase.storage.from('bucket').download('image.jpg', { }) ``` + + + +```swift +let data = try await supabase.storage.from("bucket") + .download( + path: "image.jpg", + options: TransformOptions( + width: 800, + height: 300 + ) + ) +``` + @@ -164,6 +204,21 @@ await storage.from('bucket').download('image.jpeg', { }) ``` + + + +```swift +let data = try await supabase.storage.from("bucket") + .download( + path: "image.jpg", + options: TransformOptions( + width: 200, + height: 200, + format: "origin" + ) + ) +``` + @@ -248,6 +303,19 @@ supabase.storage.from('bucket').download('image.jpg', { }) ``` + + + +```swift +let data = try await supabase.storage.from("bucket") + .download( + path: "image.jpg", + options: TransformOptions( + quality: 50 + ) + ) +``` + @@ -303,6 +371,21 @@ supabase.storage.from('bucket').download('image.jpg', { }) ``` + + + +```swift +let data = try await supabase.storage.from("bucket") + .download( + path: "image.jpg", + options: TransformOptions( + width: 800, + height: 300, + resize: "contain" // "cover" | "fill" + ) + ) +``` + diff --git a/apps/docs/content/guides/storage/uploads/file-limits.mdx b/apps/docs/content/guides/storage/uploads/file-limits.mdx index 539d1cc0480..af1628c5bc9 100644 --- a/apps/docs/content/guides/storage/uploads/file-limits.mdx +++ b/apps/docs/content/guides/storage/uploads/file-limits.mdx @@ -1,35 +1,30 @@ --- id: 'storage-file-limits' title: 'Limits' +subtitle: 'Learn how to increase Supabase file limits.' description: 'Learn how to increase Supabase file limits.' -sidebar_label: 'Uploads' +sidebar_label: 'Limits' --- -You can customize the Max file size for file uploads. - ## Global file size -You can set the max file size across all your buckets by setting this global value in the dashboard [here](https://supabase.com/dashboard/project/_/settings/storage). - -For Free projects the limit cannot exceed 50MB. On the Pro Plan and above, you can set this value to up to 50GB. +You can set the max file size across all your buckets by setting this global value in the dashboard [here](https://supabase.com/dashboard/project/_/settings/storage). For Free projects, the limit can't exceed 50 MB. On the Pro Plan and up, you can set this value to up to 50 GB. If you need more than 50 GB, [contact us](https://supabase.com/dashboard/support/new). | Plan | Max File Size Limit | | ---------- | ------------------- | -| Free | 50MB | -| Pro | 50GB | -| Team | 50GB | +| Free | 50 MB | +| Pro | 50 GB | +| Team | 50 GB | | Enterprise | Custom | -If you need more than 50GB please [contact us](https://supabase.com/dashboard/support/new). + -Remember, this option is a global limit, which applies to all your buckets. -You can additionally specify the max file size on a per [bucket level](/docs/guides/storage/buckets/creating-buckets#restricting-uploads) but it cannot be higher than this global limit. +This option is a global limit, which applies to all your buckets. -It is a good practice to have the global limit set to the highest possible file size that your application accepts, and apply per bucket limits. + + +Additionally, you can specify the max file size on a per [bucket level](/docs/guides/storage/buckets/creating-buckets#restricting-uploads) but it can't be higher than this global limit. As a good practice, the global limit should be set to the highest possible file size that your application accepts, and apply per bucket limits. ## Per bucket restrictions -You can have different restrictions on a per bucket level. -You are able to restrict the file types (eg. `pdf`, `images`, `videos`) along with the max file size which should be lower than the global limit. - -To apply these limit on a bucket level see [Creating Bucket](/docs/guides/storage/buckets/creating-buckets#restricting-uploads) +You can have different restrictions on a per bucket level such as restricting the file types (e.g. `pdf`, `images`, `videos`) or the max file size, which should be lower than the global limit. To apply these limit on a bucket level see [Creating Buckets](/docs/guides/storage/buckets/creating-buckets#restricting-uploads). diff --git a/apps/docs/content/guides/storage/uploads/resumable-uploads.mdx b/apps/docs/content/guides/storage/uploads/resumable-uploads.mdx index 73e07e7067b..75692c6594c 100644 --- a/apps/docs/content/guides/storage/uploads/resumable-uploads.mdx +++ b/apps/docs/content/guides/storage/uploads/resumable-uploads.mdx @@ -31,7 +31,7 @@ Supabase Storage implements the [TUS protocol](https://tus.io/) to enable resuma const projectId = '' async function uploadFile(bucketName, fileName, file) { - const { data: session } = await supabase.auth.session() + const { data: { session } } = await supabase.auth.getSession() return new Promise((resolve, reject) => { var upload = new tus.Upload(file, { diff --git a/apps/docs/content/guides/storage/uploads/s3-uploads.mdx b/apps/docs/content/guides/storage/uploads/s3-uploads.mdx new file mode 100644 index 00000000000..1a807f813aa --- /dev/null +++ b/apps/docs/content/guides/storage/uploads/s3-uploads.mdx @@ -0,0 +1,71 @@ +--- +id: 's3-uploads' +title: 'S3 Uploads' +description: 'Learn how to upload files to Supabase Storage using S3.' +subtitle: 'Learn how to upload files to Supabase Storage using S3.' +sidebar_label: 'Uploads' +--- + +You can use the S3 protocol to upload files to Supabase Storage. To get started with S3, see the [S3 setup guide](/docs/guides/storage/s3/authentication). + +The S3 protocol supports file upload using: + +- A single request +- Multiple requests via Multipart Upload + +## Single request uploads + +The `PutObject` action uploads the file in a single request. This matches the behavior of the Supabase SDK [Standard Upload](/docs/guides/storage/uploads/standard-uploads). + +Use `PutObject` to upload smaller files, where retrying the entire upload won't be an issue. The maximum file size on paid plans is 5 GB. + +For example, using JavaScript and the `aws-sdk` client: + +```javascript +import { S3Client, PutObjectCommand } from '@aws-sdk/client-s3' + +const s3Client = new S3Client({...}) + +const file = fs.createReadStream('path/to/file') + +const uploadCommand = new PutObjectCommand({ + Bucket: 'bucket-name', + Key: 'path/to/file', + Body: file, + ContentType: 'image/jpeg', +}) + +await s3Client.send(uploadCommand) +``` + +## Multipart uploads + +Multipart Uploads split the file into smaller parts and upload them in parallel, maximizing the upload speed on a fast network. When uploading large files, this allows you to retry the upload of individual parts in case of network issues. + +This method is preferable over [Resumable Upload](/docs/guides/storage/uploads/resumable-uploads) for server-side uploads, when you want to maximize upload speed at the cost of resumability. The maximum file size on paid plans is 50 GB. + +### Upload a file in parts + +Use the `Upload` class from an S3 client to upload a file in parts. For example, using JavaScript: + +```javascript +import { S3Client } from '@aws-sdk/client-s3' +import { Upload } from '@aws-sdk/lib-storage' + +const s3Client = new S3Client({...}) + +const file = fs.createReadStream('path/to/very-large-file') + +const upload = new Upload(s3Client, { + Bucket: 'bucket-name', + Key: 'path/to/file', + ContentType: 'image/jpeg', + Body: file, +}) + +await uploader.done() +``` + +### Aborting multipart uploads + +All multipart uploads are automatically aborted after 24 hours. To abort a multipart upload before that, you can use the [`AbortMultipartUpload`](https://docs.aws.amazon.com/AmazonS3/latest/API/API_AbortMultipartUpload.html) action. diff --git a/apps/docs/content/guides/storage/uploads/standard-uploads.mdx b/apps/docs/content/guides/storage/uploads/standard-uploads.mdx index 90f219f5726..a38a23e2691 100644 --- a/apps/docs/content/guides/storage/uploads/standard-uploads.mdx +++ b/apps/docs/content/guides/storage/uploads/standard-uploads.mdx @@ -44,6 +44,18 @@ async function uploadFile(file) { } ``` + + + +```swift +import Supabase + +// Create Supabase client +let supabase = SupabaseClient(supabaseURL: URL(string: "your_project_url")!, supabaseKey: "your_supabase_api_key") + +try await supabase.storage.from("bucket_name").upload(path: "file_path", file: file) +``` + @@ -88,6 +100,25 @@ await supabase.storage.from('bucket_name').upload('file_path', file, { }) ``` + + + +```swift +import Supabase + +// Create Supabase client +let supabase = SupabaseClient(supabaseURL: URL(string: "your_project_url")!, supabaseKey: "your_supabase_api_key") + +try await supabase.storage.from("bucket_name") + .upload( + path: "file_path", + file: file, + options: FileOptions( + upsert: true + ) + ) +``` + @@ -116,6 +147,25 @@ await supabase.storage.from('bucket_name').upload('file_path', file, { }) ``` + + + +```swift +import Supabase + +// Create Supabase client +let supabase = SupabaseClient(supabaseURL: URL(string: "your_project_url")!, supabaseKey: "your_supabase_api_key") + +try await supabase.storage.from("bucket_name") + .upload( + path: "file_path", + file: file, + options: FileOptions( + contentType: "image/jpeg" + ) + ) +``` + diff --git a/apps/docs/data/footer.ts b/apps/docs/data/footer.ts index 9ea6bba69ae..d076d36159d 100644 --- a/apps/docs/data/footer.ts +++ b/apps/docs/data/footer.ts @@ -23,10 +23,13 @@ export const primaryLinks = [ ] export const secondaryLinks = [ - { title: 'Contributing', url: '/handbook/contributing' }, + { + title: 'Contributing', + url: 'https://github.com/supabase/supabase/blob/master/apps/docs/DEVELOPERS.md', + }, { title: 'Author Styleguide', - url: 'https://github.com/supabase/supabase/blob/master/DEVELOPERS.md', + url: 'https://github.com/supabase/supabase/blob/master/apps/docs/CONTRIBUTING.md', }, { title: 'Open Source', url: 'https://supabase.com/open-source' }, { title: 'SupaSquad', url: 'https://supabase.com/supasquad' }, diff --git a/apps/docs/docs/ref/api/api.mdx b/apps/docs/docs/ref/api/api.mdx index 70bb75ee9f6..18e09385605 100644 --- a/apps/docs/docs/ref/api/api.mdx +++ b/apps/docs/docs/ref/api/api.mdx @@ -14,7 +14,7 @@ The Management API is in `beta`. It is usable in it's current state, but it's li ## Authentication -All API requests require a Supabase Personal token to be included in the Authorization header: `Authorization Bearer `. To generate or manage your API token, visit your [account](https://supabase.com/dashboard/account/tokens) page. Your API tokens carry the same privileges as your user account, so be sure to keep it secret. @@ -27,7 +27,11 @@ All API requests must be authenticated and made over HTTPS. ## Rate limits -The API is currently subject to our fair-use policy. In the future, are likely to introduce rate limits. +The rate limit for Management API is 60 requests per one minute per user, and applies cumulatively across all requests made with your personal access tokens. + +If you exceed this limit, all Management API calls for the next minute will be blocked, resulting in a HTTP 429 response. + +The Management API is subject to our fair-use policy. All resources created via the API are subject to the pricing detailed on our [Pricing](https://supabase.com/pricing) pages. ## Additional links diff --git a/apps/docs/docs/ref/api/introduction.mdx b/apps/docs/docs/ref/api/introduction.mdx index 025f209d040..be07aed5833 100644 --- a/apps/docs/docs/ref/api/introduction.mdx +++ b/apps/docs/docs/ref/api/introduction.mdx @@ -35,7 +35,11 @@ hideTitle: true ## Rate limits - The API is currently subject to our fair-use policy. In the future, are likely to introduce rate limits. + The rate limit for Management API is 60 requests per one minute per user, and applies cumulatively across all requests made with your personal access tokens. + + If you exceed this limit, all Management API calls for the next minute will be blocked, resulting in a HTTP 429 response. + + The Management API is subject to our fair-use policy. All resources created via the API are subject to the pricing detailed on our [Pricing](https://supabase.com/pricing) pages. diff --git a/apps/docs/docs/ref/swift/installing.mdx b/apps/docs/docs/ref/swift/installing.mdx new file mode 100644 index 00000000000..cbc57f06a7b --- /dev/null +++ b/apps/docs/docs/ref/swift/installing.mdx @@ -0,0 +1,63 @@ +--- +id: installing +title: 'Installing' +slug: installing +custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml +--- + +### Install using Swift Package Manager + + + + + You can install Supabase package using Swift Package Manager. + + The package exposes multiple libraries, you can choose between adding all of them using Supabase, or some of: + + - `Auth` + - `Realtime` + - `Postgrest` + - `Functions` + - `Storage` + + + + + + + + + ```swift + let package = Package( + ... + dependencies: [ + ... + .package( + url: "https://github.com/supabase/supabase-swift.git", + from: "2.0.0" + ), + ], + targets: [ + .target( + name: "YourTargetName", + dependencies: [ + .product( + name: "Supabase", // Auth, Realtime, Postgrest, Functions, or Storage + package: "supabase-swift" + ), + ] + ) + ] + ) + ``` + + + + + + diff --git a/apps/docs/docs/ref/swift/introduction.mdx b/apps/docs/docs/ref/swift/introduction.mdx index 07f405736fe..dadc4490275 100644 --- a/apps/docs/docs/ref/swift/introduction.mdx +++ b/apps/docs/docs/ref/swift/introduction.mdx @@ -8,25 +8,13 @@ hideTitle: true

Swift Client Library

-

- @supabase-community/supabase-swift -

+

@supabase/supabase-swift

{/* prettier-ignore */}
- This reference documents every object and method available in Supabase's Swift library, [supabase-swift](https://github.com/supabase-community/supabase-swift). You can use supabase-swift to interact with your Postgres database, listen to database changes, invoke Deno Edge Functions, build login and user management functionality, and manage large files. - - We also provide a [supabase](https://pub.dev/packages/supabase) package for non-Swift projects. - -
- -{/* prettier-ignore */} -
-The Swift client library is created and maintained by the Supabase community, and is not an official library. Please be tolerant of areas where the library is still being developed, and — as with all the libraries — feel free to contribute wherever you find issues. - -Huge thanks to official maintainers, [Guilherme](https://github.com/grdsdev) and [Maail](https://github.com/maail). + This reference documents every object and method available in Supabase's Swift library, [supabase-swift](https://github.com/supabase/supabase-swift). You can use supabase-swift to interact with your Postgres database, listen to database changes, invoke Deno Edge Functions, build login and user management functionality, and manage large files.
diff --git a/apps/docs/generator/api.ts b/apps/docs/generator/api.ts index 6682e3a65ff..f915e422534 100644 --- a/apps/docs/generator/api.ts +++ b/apps/docs/generator/api.ts @@ -7,8 +7,6 @@ import * as ejs from 'ejs' export default async function gen(inputFileName: string, outputDir: string, apiUrl: string) { const specRaw = fs.readFileSync(inputFileName, 'utf8') const spec = JSON.parse(specRaw) as any - // console.log('spec', spec) - switch (spec.openapi || spec.swagger) { case '3.0.0': case '3.0.3': @@ -51,7 +49,6 @@ async function gen_v3(spec: OpenAPIV3.Document, dest: string, { apiUrl }: { apiU path: key, fullPath, operationId: slugify(operation.summary!), - responseList: toArrayWithKey(operation.responses!, 'responseCode') || [], } operations.push(enriched) @@ -72,7 +69,6 @@ async function gen_v3(spec: OpenAPIV3.Document, dest: string, { apiUrl }: { apiU sections, operations, }) - // console.log(content) // Write to disk await writeToDisk(dest, content) console.log('Saved: ', dest) @@ -92,7 +88,6 @@ async function gen_v2(spec: OpenAPIV2.Document, dest: string, { apiUrl }: { apiU path: key, fullPath, operationId: slugify(operation.summary!), - responseList: toArrayWithKey(operation.responses!, 'responseCode') || [], } operations.push(enriched) @@ -113,7 +108,6 @@ async function gen_v2(spec: OpenAPIV2.Document, dest: string, { apiUrl }: { apiU sections, operations, }) - // console.log(content) // Write to disk await writeToDisk(dest, content) console.log('Saved: ', dest) diff --git a/apps/docs/hooks/useHash.ts b/apps/docs/hooks/useHash.ts index 92c0cec4fb8..29824c1742b 100644 --- a/apps/docs/hooks/useHash.ts +++ b/apps/docs/hooks/useHash.ts @@ -1,12 +1,17 @@ import { useState, useCallback, useEffect } from 'react' const useHash = () => { - const [hash, setHash] = useState(() => - typeof window !== 'undefined' ? window.location.hash.split('#')[1] : undefined - ) + const [hash, setHash] = useState(() => { + if (typeof window !== 'undefined') { + const url = new URL(window.location.href) + return url.hash.substring(1) // Removes the leading '#' + } + return undefined + }) const hashChangeHandler = useCallback(() => { - setHash(window.location.hash.split('#')[1]) + const url = new URL(window.location.href) + setHash(url.hash.substring(1)) }, []) useEffect(() => { @@ -14,16 +19,18 @@ const useHash = () => { return () => { window.removeEventListener('hashchange', hashChangeHandler) } - }, []) + }, [hashChangeHandler]) const updateHash = useCallback( (newHash) => { - if (newHash !== hash) window.location.hash = newHash + if (newHash !== hash) { + window.location.hash = newHash + } }, [hash] ) - return [hash, updateHash] + return [hash, updateHash] as const } export default useHash diff --git a/apps/docs/hooks/useManualRerender.ts b/apps/docs/hooks/useManualRerender.ts new file mode 100644 index 00000000000..4fde23deb2d --- /dev/null +++ b/apps/docs/hooks/useManualRerender.ts @@ -0,0 +1,17 @@ +import { useEffect, useReducer } from 'react' + +/** + * An escape hatch to manually trigger component rerenders in response to + * external events, such as fired custom events. + */ +const useRerenderOnEvt = (event: string, listeningElem?: Document | Window | HTMLElement) => { + const [, rerender] = useReducer((state) => !state, true) + + useEffect(() => { + const elem = listeningElem ?? window + elem.addEventListener(event, rerender) + return () => elem.removeEventListener(event, rerender) + }, [event, listeningElem, rerender]) +} + +export { useRerenderOnEvt } diff --git a/apps/docs/layouts/DefaultLayout.tsx b/apps/docs/layouts/DefaultLayout.tsx index 6bfc53a2564..f6b3f8bf230 100644 --- a/apps/docs/layouts/DefaultLayout.tsx +++ b/apps/docs/layouts/DefaultLayout.tsx @@ -1,91 +1,6 @@ -import { MDXProvider } from '@mdx-js/react' -import { NextSeo } from 'next-seo' -import Head from 'next/head' -import { useRouter } from 'next/router' -import { FC, PropsWithChildren } from 'react' -import components from '~/components' -import TableOfContents from '~/components/TableOfContents' -import { MainSkeleton } from './MainSkeleton' - -interface Props { - meta: { - title: string - description?: string - hide_table_of_contents?: boolean - video?: string - tocVideo?: string - canonical?: string - } - children: any - toc?: any - menuItems: any -} - -const Layout: FC = (props: Props) => { - const { asPath } = useRouter() - - const hasTableOfContents = - props.toc !== undefined && - props.toc.json.filter((item) => item.lvl !== 1 && item.lvl <= 3).length > 0 - - return ( - <> - - {asPath === '/' ? 'Supabase Docs' : `${props.meta?.title} | Supabase Docs`} - - - - - - - -
-
-

{props.meta.title}

- {props.children} -
-
- {hasTableOfContents && !props.meta?.hide_table_of_contents && ( - - )} -
- - ) -} +import { type FC, type PropsWithChildren } from 'react' export const LayoutMainContent: FC> = ({ className, children, }) =>
{children}
- -export default Layout diff --git a/apps/docs/layouts/HomeLayout.tsx b/apps/docs/layouts/HomeLayout.tsx index 9f5e7d46320..7f2ff3de39a 100644 --- a/apps/docs/layouts/HomeLayout.tsx +++ b/apps/docs/layouts/HomeLayout.tsx @@ -6,30 +6,22 @@ import { FC } from 'react' import components from '~/components' import HomePageCover from '~/components/HomePageCover' import { MenuId } from '~/components/Navigation/NavigationMenu/NavigationMenu' -import TableOfContents from '~/components/TableOfContents' import { LayoutMainContent } from './DefaultLayout' import { MainSkeleton } from './MainSkeleton' interface Props { meta: { title: string - description?: string - hide_table_of_contents?: boolean - video?: string canonical?: string + description?: string + video?: string } children: any - toc?: any - menuItems: any } const HomeLayout: FC = (props: Props) => { const { asPath } = useRouter() - const hasTableOfContents = - props.toc !== undefined && - props.toc.json.filter((item) => item.lvl !== 1 && item.lvl <= 3).length > 0 - return ( <> @@ -72,16 +64,6 @@ const HomeLayout: FC = (props: Props) => { {props.children} - {hasTableOfContents && !props.meta?.hide_table_of_contents && ( - - )} diff --git a/apps/docs/layouts/MainSkeleton.tsx b/apps/docs/layouts/MainSkeleton.tsx index 2ffc00fd5ab..ed0fef5cc36 100644 --- a/apps/docs/layouts/MainSkeleton.tsx +++ b/apps/docs/layouts/MainSkeleton.tsx @@ -6,141 +6,142 @@ import { type CSSProperties, type PropsWithChildren, memo, useEffect } from 'rea import { cn } from 'ui' import Footer from '~/components/Navigation/Footer' +import HomeMenuIconPicker from '~/components/Navigation/NavigationMenu/HomeMenuIconPicker' import NavigationMenu, { type MenuId } from '~/components/Navigation/NavigationMenu/NavigationMenu' import TopNavBar from '~/components/Navigation/NavigationMenu/TopNavBar' import { menuState, useMenuMobileOpen } from '~/hooks/useMenuState' const levelsData = { home: { - icon: '/docs/img/icons/menu/home', + icon: 'home', name: 'Home', }, gettingstarted: { - icon: '/docs/img/icons/menu/getting-started', + icon: 'getting-started', name: 'Getting Started', }, database: { - icon: '/docs/img/icons/menu/database', + icon: 'database', name: 'Database', }, api: { - icon: '/docs/img/icons/menu/rest', + icon: 'rest', name: 'REST API', }, graphql: { - icon: '/docs/img/icons/menu/graphql', + icon: 'graphql', name: 'GraphQL', }, auth: { - icon: '/docs/img/icons/menu/auth', + icon: 'auth', name: 'Auth', }, functions: { - icon: '/docs/img/icons/menu/functions', + icon: 'edge-functions', name: 'Edge Functions', }, realtime: { - icon: '/docs/img/icons/menu/realtime', + icon: 'realtime', name: 'Realtime', }, analytics: { - icon: '/docs/img/icons/menu/analytics', + icon: 'analytics', name: 'Analytics', }, storage: { - icon: '/docs/img/icons/menu/storage', + icon: 'storage', name: 'Storage', }, ai: { - icon: '/docs/img/icons/menu/ai', + icon: 'ai', name: 'AI & Vectors', }, supabase_cli: { - icon: '/docs/img/icons/menu/reference-cli', + icon: 'reference-cli', name: 'Supabase CLI', }, platform: { - icon: '/docs/img/icons/menu/platform', + icon: 'platform', name: 'Platform', }, resources: { - icon: '/docs/img/icons/menu/resources', + icon: 'resources', name: 'Resources', }, self_hosting: { - icon: '/docs/img/icons/menu/self-hosting', + icon: 'self-hosting', name: 'Self-Hosting', }, integrations: { - icon: '/docs/img/icons/menu/integrations', + icon: 'integrations', name: 'Integrations', }, reference_javascript_v1: { - icon: '/docs/img/icons/menu/reference-javascript', + icon: 'reference-javascript', name: 'Javascript Reference v1.0', }, reference_javascript_v2: { - icon: '/docs/img/icons/menu/reference-javascript', + icon: 'reference-javascript', name: 'Javascript Reference v2.0', }, reference_dart_v1: { - icon: '/docs/img/icons/menu/reference-dart', + icon: 'reference-dart', name: 'Dart Reference v1.0', }, reference_dart_v2: { - icon: '/docs/img/icons/menu/reference-dart', + icon: 'reference-dart', name: 'Dart Reference v2.0', }, reference_csharp_v0: { - icon: '/docs/img/icons/menu/reference-csharp', + icon: 'reference-csharp', name: 'C# Reference v0.0', }, reference_python_v2: { - icon: '/docs/img/icons/menu/reference-python', + icon: 'reference-python', name: 'Python Reference v2.0', }, reference_swift_v1: { - icon: '/docs/img/icons/menu/reference-swift', + icon: 'reference-swift', name: 'Swift Reference v1.0', }, reference_swift_v2: { - icon: '/docs/img/icons/menu/reference-swift', + icon: 'reference-swift', name: 'Swift Reference v2.0', }, reference_kotlin_v1: { - icon: '/docs/img/icons/menu/reference-kotlin', + icon: 'reference-kotlin', name: 'Kotlin Reference v1.0', }, reference_kotlin_v2: { - icon: '/docs/img/icons/menu/reference-kotlin', + icon: 'reference-kotlin', name: 'Kotlin Reference v2.0', }, reference_cli: { - icon: '/docs/img/icons/menu/reference-cli', + icon: 'reference-cli', name: 'CLI Reference', }, reference_api: { - icon: '/docs/img/icons/menu/reference-api', + icon: 'reference-api', name: 'Management API Reference', }, reference_self_hosting_auth: { - icon: '/docs/img/icons/menu/reference-auth', + icon: 'reference-auth', name: 'Auth Server Reference', }, reference_self_hosting_storage: { - icon: '/docs/img/icons/menu/reference-storage', + icon: 'reference-storage', name: 'Storage Server Reference', }, reference_self_hosting_realtime: { - icon: '/docs/img/icons/menu/reference-realtime', + icon: 'reference-realtime', name: 'Realtime Server Reference', }, reference_self_hosting_analytics: { - icon: '/docs/img/icons/menu/reference-analytics', + icon: 'reference-analytics', name: 'Analytics Server Reference', }, reference_self_hosting_functions: { - icon: '/docs/img/icons/menu/reference-functions', + icon: 'reference-functions', name: 'Functions Server Reference', }, } @@ -160,12 +161,15 @@ const MobileHeader = memo(function MobileHeader({ menuId }: { menuId: MenuId }) )} >
- -
+
diff --git a/apps/docs/layouts/guides/index.tsx b/apps/docs/layouts/guides/index.tsx index 4232a61503d..a137a67c90a 100644 --- a/apps/docs/layouts/guides/index.tsx +++ b/apps/docs/layouts/guides/index.tsx @@ -1,23 +1,18 @@ import { MDXProvider } from '@mdx-js/react' +import 'katex/dist/katex.min.css' +import { ExternalLink } from 'lucide-react' import { NextSeo } from 'next-seo' -import Head from 'next/head' -import { usePathname } from 'next/navigation' import { useRouter } from 'next/router' -import { FC, useEffect, useRef, useState } from 'react' +import { type FC } from 'react' -import { IconExternalLink, cn } from 'ui' -import { ExpandableVideo } from 'ui-patterns/ExpandableVideo' +import { cn } from 'ui' import components from '~/components' -import { highlightSelectedTocItem } from '~/components/CustomHTMLElements/CustomHTMLElements.utils' import { FooterHelpCalloutType } from '~/components/FooterHelpCallout' import GuidesTableOfContents from '~/components/GuidesTableOfContents' import { type MenuId } from '~/components/Navigation/NavigationMenu/NavigationMenu' -import useHash from '~/hooks/useHash' -import { Feedback } from '~/components/Feedback' import { LayoutMainContent } from '~/layouts/DefaultLayout' import { MainSkeleton } from '~/layouts/MainSkeleton' -import 'katex/dist/katex.min.css' interface Props { meta: { @@ -40,12 +35,6 @@ interface Props { } const Layout: FC = (props) => { - const pathname = usePathname() - const [hash] = useHash() - - const articleRef = useRef() - const [tocList, setTocList] = useState([]) - const { asPath } = useRouter() const router = useRouter() @@ -53,31 +42,6 @@ const Layout: FC = (props) => { const EDIT_BUTTON_EXCLUDE_LIST = ['/404'] - useEffect(() => { - if (hash && tocList.length > 0) { - highlightSelectedTocItem(hash as string) - } - }, [hash, JSON.stringify(tocList)]) - - useEffect(() => { - const articleEl = articleRef.current as HTMLElement - - if (!articleRef.current) return - const headings = Array.from(articleEl.querySelectorAll('h2, h3')) - const newHeadings = headings - .filter((heading) => heading.id) - .map((heading) => { - const text = heading.textContent.replace('#', '') - const link = heading.querySelector('a').getAttribute('href') - const level = heading.tagName === 'H2' ? 2 : 3 - return { text, link, level } - }) - setTocList(newHeadings) - }, [pathname]) // needed to recalculate the toc when path changes - - const hasTableOfContents = tocList.length > 0 - const tocVideoPreview = `http://img.youtube.com/vi/${props.meta?.tocVideo}/0.jpg` - // page type, ie, Auth, Database, Storage etc const ogPageType = asPath.split('/')[2] // open graph image url constructor @@ -89,18 +53,23 @@ const Layout: FC = (props) => { return ( <> - - {`${props.meta?.title} | Supabase Docs`} - - - - - = (props) => { authors: ['Supabase'], }, }} + twitter={{ + cardType: 'summary_large_image', + site: '@supabase', + handle: '@supabase', + }} /> @@ -132,10 +106,9 @@ const Layout: FC = (props) => {

{props.meta.breadcrumb}

)}

{props.meta.title}

{props.meta?.subtitle && ( @@ -157,35 +130,23 @@ const Layout: FC = (props) => { `} className="text-sm transition flex items-center gap-1 text-scale-1000 hover:text-scale-1200 w-fit" > - Edit this page on GitHub + Edit this page on GitHub
)} - {!props.hideToc && hasTableOfContents && !props.meta?.hide_table_of_contents && ( - + /> )} diff --git a/apps/docs/layouts/ref/RefSubLayout.tsx b/apps/docs/layouts/ref/RefSubLayout.tsx index 2259a96273a..a14c56139be 100644 --- a/apps/docs/layouts/ref/RefSubLayout.tsx +++ b/apps/docs/layouts/ref/RefSubLayout.tsx @@ -134,12 +134,20 @@ const StickyHeader: FC = ({ icon, ...props }) => { } const Details: FC> = (props) => { - return
{props.children}
+ /** + * `min-w` is necessary because these are used as grid children, which have + * default `min-w-auto` + */ + return
{props.children}
} const Examples: FC> = (props) => { + /** + * `min-w` is necessary because these are used as grid children, which have + * default `min-w-auto` + */ return ( -
+
{props.children}
) diff --git a/apps/docs/layouts/tutorials/TutorialLayout.tsx b/apps/docs/layouts/tutorials/TutorialLayout.tsx deleted file mode 100644 index 4c369aeba16..00000000000 --- a/apps/docs/layouts/tutorials/TutorialLayout.tsx +++ /dev/null @@ -1,87 +0,0 @@ -import { MDXProvider } from '@mdx-js/react' -import Head from 'next/head' -import { FC, useEffect, useState } from 'react' -import components from '~/components' -import SideBar from '~/components/Navigation/SideBar' -import TableOfContents from '~/components/TableOfContents' - -interface Props { - meta: { - title: string - description?: string - hide_table_of_contents?: boolean - video?: string - tocVideo?: string - } - children: any - toc?: any - menuItems: any - currentPage: string -} - -const Layout: FC = (props: Props) => { - const [active, setActive] = useState(false) - - useEffect(() => { - setTimeout(function () { - setActive(true) - }, 150) - }, []) - - // const contentString = renderToString(props.children) - - // const content = serialize(contentString || '') - - // console.log('contentString', contentString) - - // const _toc = toc('#hello world', { maxdepth: 1, firsth1: false }) - - const hasTableOfContents = - props.toc !== undefined && - props.toc.json.filter((item) => item.lvl !== 1 && item.lvl <= 3).length > 0 - - return ( - <> - - {props.meta?.title} | Supabase - - - - - - - - - -
-
-

Tutorials

-
-

{props.meta.title}

-
- - -
-
- {hasTableOfContents && !props.meta?.hide_table_of_contents && ( - - )} -
- - ) -} - -export default Layout diff --git a/apps/docs/lib/constants.ts b/apps/docs/lib/constants.ts index 813e45149b6..2e032c0bc8b 100644 --- a/apps/docs/lib/constants.ts +++ b/apps/docs/lib/constants.ts @@ -1,5 +1,6 @@ +export const BUILD_PREVIEW_HTML = process.env.NEXT_PUBLIC_BUILD_PREVIEW_HTML === 'true' export const IS_PLATFORM = process.env.NEXT_PUBLIC_IS_PLATFORM === 'true' -export const IS_PREVIEW = process.env.VERCEL_ENV === 'preview' +export const IS_PREVIEW = process.env.NEXT_PUBLIC_VERCEL_ENV === 'preview' export const LOCAL_SUPABASE = process.env.NEXT_PUBLIC_LOCAL_SUPABASE === 'true' export const API_URL = ( process.env.NODE_ENV === 'development' diff --git a/apps/docs/lib/fetch/branches.ts b/apps/docs/lib/fetch/branches.ts index 419de29f957..6b91e12827a 100644 --- a/apps/docs/lib/fetch/branches.ts +++ b/apps/docs/lib/fetch/branches.ts @@ -1,4 +1,4 @@ -import { ResponseError } from '~/types/fetch' +import type { ResponseError } from '~/types/fetch' import { get } from './fetchWrappers' import { UseQueryOptions, useQuery } from '@tanstack/react-query' diff --git a/apps/docs/lib/fetch/feedback.ts b/apps/docs/lib/fetch/feedback.ts index 2d622925619..670780b7c7c 100644 --- a/apps/docs/lib/fetch/feedback.ts +++ b/apps/docs/lib/fetch/feedback.ts @@ -4,17 +4,27 @@ import { type ResponseError } from '~/types/fetch' import { post } from './fetchWrappers' type SendFeedbackVariables = { + title: string message: string + isHelpful: boolean pathname?: string + team?: string } -export async function sendFeedback({ message, pathname }: SendFeedbackVariables) { - const { data, error } = await post('/platform/feedback/send', { +export async function sendFeedback({ + message, + pathname, + title, + isHelpful, + team, +}: SendFeedbackVariables) { + const { data, error } = await post('/platform/feedback/docs', { body: { - message, - category: 'Feedback', - tags: ['docs-feedback'], - pathname, + page: pathname, + isHelpful, + title, + feedback: message, + team, }, }) if (error) throw Error(`Couldn't send feedback`, { cause: error }) diff --git a/apps/docs/lib/fetch/organizations.ts b/apps/docs/lib/fetch/organizations.ts index 45f1850972a..40ee51f1861 100644 --- a/apps/docs/lib/fetch/organizations.ts +++ b/apps/docs/lib/fetch/organizations.ts @@ -1,7 +1,7 @@ import { useQuery, UseQueryOptions } from '@tanstack/react-query' import { get } from './fetchWrappers' -import { components } from '~/types/api' -import { ResponseError } from '~/types/fetch' +import type { components } from '~/types/api' +import type { ResponseError } from '~/types/fetch' const organizationKeys = { list: () => ['organizations'] as const, diff --git a/apps/docs/lib/fetch/projectApi.ts b/apps/docs/lib/fetch/projectApi.ts index 5e041b80d07..d9b757914ee 100644 --- a/apps/docs/lib/fetch/projectApi.ts +++ b/apps/docs/lib/fetch/projectApi.ts @@ -1,4 +1,4 @@ -import { ResponseError } from '~/types/fetch' +import type { ResponseError } from '~/types/fetch' import { get } from './fetchWrappers' import { UseQueryOptions, useQuery } from '@tanstack/react-query' diff --git a/apps/docs/lib/fetch/projects.ts b/apps/docs/lib/fetch/projects.ts index 568722b23b3..a4ca1a5872d 100644 --- a/apps/docs/lib/fetch/projects.ts +++ b/apps/docs/lib/fetch/projects.ts @@ -1,5 +1,5 @@ import { useQuery, UseQueryOptions } from '@tanstack/react-query' -import { ResponseError } from '~/types/fetch' +import type { ResponseError } from '~/types/fetch' import { get } from './fetchWrappers' const projectKeys = { diff --git a/apps/docs/middleware.ts b/apps/docs/middleware.ts index 254486ccf06..4c931e6349c 100644 --- a/apps/docs/middleware.ts +++ b/apps/docs/middleware.ts @@ -1,6 +1,6 @@ import { NextResponse } from 'next/server' import type { NextRequest } from 'next/server' -import isbot from 'isbot' +import { isbot } from 'isbot' export function middleware(request: NextRequest) { const specs = ['javascript', 'dart', 'csharp'] diff --git a/apps/docs/package.json b/apps/docs/package.json index 1f68dc44659..5b6df117e78 100644 --- a/apps/docs/package.json +++ b/apps/docs/package.json @@ -22,15 +22,15 @@ "@code-hike/mdx": "^0.9.0", "@mdx-js/loader": "^2.1.5", "@mdx-js/react": "^2.3.0", - "@next/bundle-analyzer": "^13.5.6", - "@next/mdx": "^13.5.6", + "@next/bundle-analyzer": "^14.2.0", + "@next/mdx": "^14.2.0", "@octokit/auth-app": "^6.0.3", - "@octokit/core": "^5.0.2", + "@octokit/core": "^5.1.0", "@octokit/graphql": "^7.0.2", "@octokit/plugin-paginate-graphql": "^4.0.0", "@radix-ui/react-accordion": "^1.1.2", "@supabase/auth-helpers-react": "^0.4.2", - "@supabase/supabase-js": "^2.39.3", + "@supabase/supabase-js": "^2.41.1", "@tailwindcss/container-queries": "^0.1.1", "@tanstack/react-query": "^5.13.4", "common": "*", @@ -41,9 +41,9 @@ "gray-matter": "^4.0.3", "hast-util-has-property": "^2.0.1", "icons": "*", - "isbot": "^3.6.5", + "isbot": "^5.1.2", "jsrsasign": "^11.0.0", - "katex": "^0.16.9", + "katex": "^0.16.10", "lodash": "^4.17.21", "markdown-toc": "^1.2.0", "mdast": "^3.0.0", @@ -54,17 +54,17 @@ "mdx-mermaid": "2.0.0-rc3", "mermaid": "^10.0.2", "micromark-extension-mdxjs": "^1.0.0", - "next": "^13.5.6", + "next": "^14.2.0", "next-mdx-remote": "^4.4.1", "next-plugin-yaml": "^1.0.1", - "next-seo": "^5.14.1", - "next-themes": "^0.2.1", - "openai": "^4.17.0", + "next-seo": "^6.5.0", + "next-themes": "^0.3.0", + "openai": "^4.20.1", "openapi-fetch": "^0.8.2", "react": "^18.2.0", "react-dom": "^18.2.0", "react-error-boundary": "^4.0.12", - "react-intersection-observer": "^9.5.2", + "react-intersection-observer": "^9.5.3", "react-markdown": "^8.0.3", "rehype-katex": "^7.0.0", "rehype-slug": "^5.1.0", @@ -79,13 +79,13 @@ "unist-util-filter": "^4.0.1", "unist-util-visit": "^4.1.2", "uuid": "^9.0.1", - "valtio": "^1.11.2" + "valtio": "^1.12.0" }, "devDependencies": { "@aws-sdk/client-secrets-manager": "^3.410.0", "@types/hast": "^2.3.4", "@types/jsrsasign": "^10.5.12", - "@types/node": "^18.11.9", + "@types/node": "^20.11.16", "@types/react": "^18.2.24", "@types/unist": "^2.0.6", "acorn": "^8.11.3", @@ -95,10 +95,10 @@ "globby": "^13.2.2", "jest-environment-jsdom": "^29.7.0", "npm-run-all": "^4.1.5", - "openapi-types": "^12.0.2", + "openapi-types": "^12.1.3", "openapi-typescript": "^6.7.4", "tsconfig": "*", "tsx": "^4.6.2", - "typescript": "^5.2.2" + "typescript": "^5.4.3" } } diff --git a/apps/docs/pages/_app.tsx b/apps/docs/pages/_app.tsx index 3da019613df..27caa65f6e1 100644 --- a/apps/docs/pages/_app.tsx +++ b/apps/docs/pages/_app.tsx @@ -8,15 +8,16 @@ import { SessionContextProvider } from '@supabase/auth-helpers-react' import { createClient } from '@supabase/supabase-js' import { QueryClientProvider, useQueryClient } from '@tanstack/react-query' import { AuthProvider, ThemeProvider, useTelemetryProps, useThemeSandbox } from 'common' +import Head from 'next/head' import { useRouter } from 'next/router' import { useCallback, useEffect, useState, type PropsWithChildren } from 'react' -import { PortalToast, TabsProvider } from 'ui' +import { PortalToast, PromoToast, TabsProvider } from 'ui' import { CommandMenuProvider } from 'ui-patterns/Cmdk' import { useConsent } from 'ui-patterns/ConsentToast' -import Favicons from '~/components/Favicons' +import MetaFaviconsPagesRouter from 'common/MetaFavicons/pages-router' import SiteLayout from '~/layouts/SiteLayout' -import { IS_PLATFORM, IS_PREVIEW } from '~/lib/constants' +import { BUILD_PREVIEW_HTML, IS_PLATFORM, IS_PREVIEW } from '~/lib/constants' import { unauthedAllowedPost } from '~/lib/fetch/fetchWrappers' import { useRootQueryClient } from '~/lib/fetch/queryClient' import { LOCAL_STORAGE_KEYS, remove } from '~/lib/storage' @@ -33,7 +34,7 @@ import { AppPropsWithLayout } from '~/types' * you within a single build. */ function ShortcutPreviewBuild({ children }: PropsWithChildren) { - if (IS_PREVIEW) { + if (IS_PREVIEW && !BUILD_PREVIEW_HTML) { // eslint-disable-next-line react-hooks/rules-of-hooks const [isMounted, setIsMounted] = useState(false) @@ -216,7 +217,10 @@ function MyApp({ Component, pageProps }: AppPropsWithLayout) { return ( - + + + + @@ -225,6 +229,7 @@ function MyApp({ Component, pageProps }: AppPropsWithLayout) {
+
diff --git a/apps/docs/pages/guides/cli/config.tsx b/apps/docs/pages/guides/cli/config.tsx index 193f25fca66..da10ec303ad 100644 --- a/apps/docs/pages/guides/cli/config.tsx +++ b/apps/docs/pages/guides/cli/config.tsx @@ -1,12 +1,14 @@ -import specFile from '~/spec/cli_v1_config.yaml' assert { type: 'yml' } -import { Parameter } from '~/lib/refGenerator/refTypes' -import ReactMarkdown from 'react-markdown' -import GuidesTableOfContents from '~/components/GuidesTableOfContents' -import { Heading } from '~/components/CustomHTMLElements' import Head from 'next/head' -import { CodeBlock } from 'ui' -import { MainSkeleton } from '~/layouts/MainSkeleton' +import ReactMarkdown from 'react-markdown' + +import { CodeBlock, cn } from 'ui' + +import { Heading } from '~/components/CustomHTMLElements' +import GuidesTableOfContents from '~/components/GuidesTableOfContents' import { MenuId } from '~/components/Navigation/NavigationMenu/NavigationMenu' +import { MainSkeleton } from '~/layouts/MainSkeleton' +import { Parameter } from '~/lib/refGenerator/refTypes' +import specFile from '~/spec/cli_v1_config.yaml' assert { type: 'yml' } // Parameters are grouped on the page by tag const tocList = [] @@ -41,14 +43,15 @@ export default function Config() {
{content}
-
-
- - On this page - - -
-
+ diff --git a/apps/docs/pages/guides/database/database-linter.tsx b/apps/docs/pages/guides/database/database-linter.tsx new file mode 100644 index 00000000000..03b246a7397 --- /dev/null +++ b/apps/docs/pages/guides/database/database-linter.tsx @@ -0,0 +1,190 @@ +import { CodeHikeConfig, remarkCodeHike } from '@code-hike/mdx' +import { Octokit } from '@octokit/core' +import { capitalize } from 'lodash' +import { GetStaticProps, InferGetStaticPropsType } from 'next' +import { MDXRemote } from 'next-mdx-remote' +import { serialize } from 'next-mdx-remote/serialize' +import remarkGfm from 'remark-gfm' +import rehypeSlug from 'rehype-slug' + +import codeHikeTheme from 'config/code-hike.theme.json' assert { type: 'json' } +import { Tabs } from 'ui' + +import components from '~/components' +import { Heading } from '~/components/CustomHTMLElements' +import { MenuId } from '~/components/Navigation/NavigationMenu/NavigationMenu' +import Layout from '~/layouts/DefaultGuideLayout' +import { UrlTransformFunction, linkTransform } from '~/lib/mdx/plugins/rehypeLinkTransform' +import remarkMkDocsAdmonition from '~/lib/mdx/plugins/remarkAdmonition' +import { removeTitle } from '~/lib/mdx/plugins/remarkRemoveTitle' +import remarkPyMdownTabs from '~/lib/mdx/plugins/remarkTabs' + +// We fetch these docs at build time from an external repo +export const org = 'supabase' +export const repo = 'splinter' +export const branch = 'main' +export const docsDir = 'docs' + +const meta = { + title: 'Database Linter', + subtitle: 'Check your database for performance and security issues', +} + +const editLink = 'https://github.com/supabase/splinter/tree/main/docs' + +const markdownIntro = ` +You can use the Database Linter to check your database for issues such as missing indexes and improperly set-up RLS policies. + +## Using the linter + +In the dashboard, navigate to [Database Linter](https://supabase.com/dashboard/project/_/database/linter) under Database. The linter runs automatically. You can also manually rerun it after you've resolved issues. +`.trim() + +const getBasename = (path: string) => path.split('/').at(-1).replace(/\.md$/, '') + +export default function ProjectLinterDocs({ + intro, + lints, +}: InferGetStaticPropsType) { + return ( + + + Available lints + + {lints.map((lint) => ( + +
+ +
+
+ ))} +
+
+ ) +} + +/** + * The GitHub repo uses relative links, which don't lead to the right locations + * in docs. + * + * @param url The original link, as written in the Markdown file + * @returns The rewritten link + */ +const urlTransform: (lints: Array<{ path: string }>) => UrlTransformFunction = (lints) => (url) => { + try { + const placeholderHostname = 'placeholder' + const { hostname, pathname, hash } = new URL(url, `http://${placeholderHostname}`) + + // Don't modify a url with a FQDN or a url that's only a hash + if (hostname !== placeholderHostname || pathname === '/') { + return url + } + + const relativePath = getBasename(pathname) + const section = lints.find(({ path }) => path === relativePath) + + if (section) { + const url = new URL(window.location.href) + url.searchParams.set('lint', relativePath) + return url.toString() + } + + // If we don't have this page in our docs, link to GitHub repo + return `https://github.com/${org}/${repo}/blob/${branch}${pathname}${hash}` + } catch (err) { + console.error('Error transforming markdown URL', err) + return url + } +} + +const transformMarkdown = async ( + rawContent: string, + { replacementLinks = [] }: { replacementLinks?: Array<{ path: string }> } = {} +) => { + const codeHikeOptions: CodeHikeConfig = { + theme: codeHikeTheme, + lineNumbers: true, + showCopyButton: true, + skipLanguages: [], + autoImport: false, + } + + const content = await serialize(rawContent, { + scope: { + chCodeConfig: codeHikeOptions, + }, + mdxOptions: { + remarkPlugins: [ + remarkGfm, + remarkMkDocsAdmonition, + remarkPyMdownTabs, + [removeTitle, meta.title], + [remarkCodeHike, codeHikeOptions], + ], + rehypePlugins: [[linkTransform, urlTransform(replacementLinks)], rehypeSlug], + }, + }) + + return content +} + +/** + * Fetch markdown from external repo and transform links + */ +export const getStaticProps = (async () => { + const octokit = new Octokit() + + const response = await octokit.request('GET /repos/{owner}/{repo}/contents/{path}', { + owner: org, + repo: repo, + path: docsDir, + ref: branch, + headers: { + 'X-GitHub-Api-Version': '2022-11-28', + }, + }) + + if (response.status >= 400) { + throw Error(`Could not get contents of repo ${org}/${repo}`) + } + + if (!Array.isArray(response.data)) { + throw Error( + `Reading a directory, not a file. Should not reach this, solely to appease Typescript.` + ) + } + + const [intro, ...lints] = await Promise.all([ + await transformMarkdown(markdownIntro), + ...response.data + .filter(({ path }) => /docs\/\d+.+\.md$/.test(path)) + .map(async ({ path }, _, data) => { + const fileResponse = await fetch( + `https://raw.githubusercontent.com/${org}/${repo}/${branch}/${path}` + ) + + if (fileResponse.status >= 400) { + throw Error(`Could not get contents of file ${org}/${repo}/${path}`) + } + + const rawContent = await fileResponse.text() + const content = await transformMarkdown(rawContent, { replacementLinks: data }) + + return { + path: getBasename(path), + content, + } + }), + ]) + + return { + props: { + intro, + lints, + }, + } +}) satisfies GetStaticProps diff --git a/apps/docs/pages/guides/database/extensions/wrappers/[[...slug]].tsx b/apps/docs/pages/guides/database/extensions/wrappers/[[...slug]].tsx index 0d34ede0dcb..3879c045049 100644 --- a/apps/docs/pages/guides/database/extensions/wrappers/[[...slug]].tsx +++ b/apps/docs/pages/guides/database/extensions/wrappers/[[...slug]].tsx @@ -35,11 +35,11 @@ const pageMap = [ remoteFile: 'airtable.md', }, { - slug: 's3', + slug: 'auth0', meta: { - title: 'AWS S3', + title: 'Auth0', }, - remoteFile: 's3.md', + remoteFile: 'auth0.md', }, { slug: 'bigquery', @@ -55,6 +55,13 @@ const pageMap = [ }, remoteFile: 'clickhouse.md', }, + { + slug: 'cognito', + meta: { + title: 'AWS Cognito', + }, + remoteFile: 'cognito.md', + }, { slug: 'firebase', meta: { @@ -69,6 +76,27 @@ const pageMap = [ }, remoteFile: 'logflare.md', }, + { + slug: 'mssql', + meta: { + title: 'MSSQL', + }, + remoteFile: 'mssql.md', + }, + { + slug: 'redis', + meta: { + title: 'Redis', + }, + remoteFile: 'redis.md', + }, + { + slug: 's3', + meta: { + title: 'AWS S3', + }, + remoteFile: 's3.md', + }, { slug: 'stripe', meta: { diff --git a/apps/docs/pages/guides/platform/exhaust-swap.mdx b/apps/docs/pages/guides/platform/exhaust-swap.mdx new file mode 100644 index 00000000000..adfb7a7a5ea --- /dev/null +++ b/apps/docs/pages/guides/platform/exhaust-swap.mdx @@ -0,0 +1,71 @@ +import Layout from '~/layouts/DefaultGuideLayout' + +export const meta = { + id: 'exhaust-swap', + title: 'High swap usage', + description: + 'Learn what high Swap usage could mean for your Supabase instance and what could have caused it.', +} + +Learn what high Swap usage means, what can cause it, and how to solve it. + +## What is Swap for? + + + +High Swap is usually not a problem unless other resources (such as RAM) are constrained. + + + +Every Supabase project runs on its own dedicated virtual machine. The machine's underlying specs and hardware depend on your [compute add-on](https://supabase.com/docs/guides/platform/compute-add-ons). If your hardware isn't suitable for your workload, you might experience high Swap usage. + +Swap is a portion of your instance's disk that is reserved for the operating system to use when the available RAM has been utilized. As it uses the disk, Swap is slower to access and is generally used as a last resort. + +Swap can be used even if your instance has plenty of RAM. If this is the case, do not worry. Your instance might try to "preemptively swap" by swapping background processes to make space for your traffic in RAM. + +### When is high Swap concerning? + +High Swap is concerning if your instance is using all of the available RAM (i.e. consistently using more than 75%). + +High Swap usage can affect your database performance. For example, you might see: + +- **Slower query responses.** +- **Degraded performance due to swapping regularly between RAM and disk.** +- **Higher Disk I/O due to swapping regularly.** + +## Monitor your Swap + +You can check your Swap usage directly on the Supabase Platform. Navigate to the [**Database** page](https://supabase.com/dashboard/project/_/reports/database) of the **Reports** section. + +You can also monitor your resources and set up alerts using Prometheus/Grafana. See the [metrics guide](https://supabase.com/docs/guides/platform/metrics) for more information. + +An [example repository](https://github.com/supabase/supabase-grafana) to ingest metrics and visualize them with Grafana is provided in the linked guide, where we maintain a [list of the exported metrics](https://github.com/supabase/supabase-grafana/blob/main/docs/metrics.md). + +Some useful metrics to monitor are (this is not an exhaustive list): + +- `node_memory_SwapFree_bytes` - The total amount of Swap available in bytes. +- `node_disk_io_time_seconds_total` and `node_disk_io_now` - The amount of time spent on disk I/O. An increase might be an indirect sign of excessive swapping, but not always. +- `node_memory_MemTotal_bytes` and `node_memory_MemFree_bytes` - The total RAM and available RAM. +- `node_vmstat_pswpin` and `node_vmstat_pswpout` - The number of pages that have been swapped in or out (monitoring this for spikes means that your instance is swapping). + +## Common reasons for high Swap usage + +Everything you do with your Supabase project requires compute. Hence, there can be many reasons for high Swap usage. Here are some common ones: + +- **Query performance:** You might have high read traffic or queries that process a large amount of data on disk (this can happen even if you are returning a small amount of data). +- **Missing indexes:** Your database might have to scan through a large amount of data to find the information it needs. Creating indexes helps your database find data faster. See the [indexes guide](https://supabase.com/docs/guides/database/postgres/indexes) to learn more. +- **Unsuitable compute:** The instance size of your Supabase project might not be suitable for your application as you might have more traffic or run resource-intensive operations. +- **Workload style:** The usage pattern of your Supabase project might be more read heavy, or involve large amounts of data. +- **Extensions:** You might be using extensions that perform intensive operations on large datasets. This increases resource usage. + +## Solving high Swap usage + +If you find that your RAM and Swap usage are high, you have three options: + +1. **Optimize performance:** Get more out of your instance's resources by optimizing your usage. See the [performance tuning guide](https://supabase.com/docs/guides/platform/performance#examining-query-performance) and our [production readiness guide](https://supabase.com/docs/guides/platform/going-into-prod#performance). +2. **Upgrade your compute:** You can get a Compute Add-on for your project. Navigate to [the **Addons** section in project settings](https://supabase.com/dashboard/project/_/settings/addons?panel=computeInstance) to see your upgrade options. +3. **Read Replicas:** You can spread the load on your Supabase project by creating a Read Replica. See [the read replicas guide](https://supabase.com/docs/guides/platform/read-replicas) for more information. + +export const Page = ({ children }) => + +export default Page diff --git a/apps/docs/pages/reference/realtime/config.tsx b/apps/docs/pages/reference/realtime/config.tsx deleted file mode 100644 index 8a25754c342..00000000000 --- a/apps/docs/pages/reference/realtime/config.tsx +++ /dev/null @@ -1,114 +0,0 @@ -import fs from 'fs' -import matter from 'gray-matter' -import components from '~/components/index' -import { MDXRemote } from 'next-mdx-remote' -import { serialize } from 'next-mdx-remote/serialize' - -import specFile from '~/spec/realtime_v0_config.yaml' assert { type: 'yml' } -import { Parameter } from '~/lib/refGenerator/refTypes' - -import ReactMarkdown from 'react-markdown' - -// Parameters are grouped on the page by tag -const TAGS = ['general', 'database'] - -export default function Config(props) { - return ( -
-
-
-

{specFile.info.title} Configuration

- {specFile.info.description} -
-
- {props.docs - .filter((doc) => doc.introPage) - .map((item) => ( - - ))} -
- {TAGS.map((tag) => - specFile.parameters - .filter((param: Parameter) => param.tags[0] === tag) - .map((parameter: Parameter, index) => ( -
- {index === 0 &&

{tag} Settings

} -
-
-

- $ - {parameter.title} -

-
-
-
-

- {parameter.description} -

-
-
- Required: {parameter.required.toString()} -
-
- Default: - - {parameter.default ? parameter.default.toString() : 'None'} - -
-
-
- {parameter.links && - parameter.links.map((link) => ( -
-

See also:

-
  • - {link.name} -
  • -
    - ))} -
    -
    -
    -
    -
    - )) - )} -
    -
    -
    -
    - ) -} -export async function getServerSideProps() { - // an array of ids of the intro sections for this library - const introPages = ['realtime'] - - const pages = [...introPages] - - // Grab custom markdown intro page files - const allMarkdownDocs = await Promise.all( - pages.map(async (x: any, i) => { - const pathName = `docs/ref/realtime/${x}.mdx` - - const markdownExists = fs.existsSync(pathName) - - const fileContents = markdownExists ? fs.readFileSync(pathName, 'utf8') : '' - const { data, content } = matter(fileContents) - - return { - id: x, - title: x, - // ...content, - meta: data, - introPage: introPages.includes(x), - content: content ? await serialize(content || '') : null, - } - }) - ) - - return { - props: { - docs: allMarkdownDocs, - }, - } -} diff --git a/apps/docs/pages/reference/storage/[...slug].tsx b/apps/docs/pages/reference/storage/[...slug].tsx deleted file mode 100644 index 6e30ee79aa5..00000000000 --- a/apps/docs/pages/reference/storage/[...slug].tsx +++ /dev/null @@ -1,167 +0,0 @@ -import { CodeBlock, Tabs } from 'ui' -import specFile from '~/spec/transforms/storage_v0_openapi_deparsed.json' assert { type: 'json' } -import { gen_v3 } from '~/lib/refGenerator/helpers' - -import RefSubLayout from '~/layouts/ref/RefSubLayout' -import React from 'react' - -export type AcceptedValue = { - id: string - name: string - type: 'string' | 'boolean' | 'object' - description?: string -} - -export type Flag = { - id: string - name: string - description: string - default_value: string - accepted_values: AcceptedValue[] -} - -export type ApiParameter = { - example: string - in: string - name: string - required: boolean - schema: { - type: string - example: string - } -} - -// @ts-ignore -const generatedSpec = gen_v3(specFile, 'wat', { apiUrl: 'apiv0' }) - -export default function Config() { - return ( - -
    -
    -
    -

    {generatedSpec.info.title}

    -

    {generatedSpec.info.description}

    -
    - -
    - {generatedSpec.sections.map((section, i) => ( - -

    {section.title}

    - {section.operations.map((operation: any, index) => ( -
    - - -
    - - {operation.operation} - {operation.fullPath} - -
    - {/* Path Parameters */} - {operation.parameters && - operation.parameters.filter((parameter) => parameter.in === 'path') - .length > 0 && ( -
    -

    Path parameters

    -
      - {operation.parameters && - operation.parameters - .filter((parameter: any) => parameter.in === 'path') - .map((parameter: any, indx: number) => ( -
    • -
      - {parameter.name} - - {parameter.required && ( -
      - REQUIRED -
      - )} -
      -
      -
      - Example: - - {parameter.example} - -
      -
    • - ))} -
    -
    - )} - - {/* Header Parameters */} - {operation.parameters && - operation.parameters.filter((parameter) => parameter.in === 'header') - .length > 0 && ( -
    -

    Header parameters

    -
      - {operation.parameters && - operation.parameters - .filter((parameter: any) => parameter.in === 'header') - .map((parameter: any, i: number) => ( -
    • -
      - {parameter.name} - - {parameter.required && 'required'} - -
      -
      - Example: - - {parameter.example} - -
      -
    • - ))} -
    -
    - )} -
    - -

    Responses

    - - {operation.responseList.map((response: any, i: number) => ( - -

    {response.description}

    - {response?.content && response?.content['application/json'] && ( -
    - - {JSON.stringify(response.content['application/json'], null, 2)} - -
    - )} -
    - ))} -
    -
    -
    -
    - ))} -
    - ))} -
    -
    -
    -
    - ) -} diff --git a/apps/docs/pages/reference/storage/config.tsx b/apps/docs/pages/reference/storage/config.tsx deleted file mode 100644 index ba26fafe1dd..00000000000 --- a/apps/docs/pages/reference/storage/config.tsx +++ /dev/null @@ -1,68 +0,0 @@ -import specFile from '~/spec/storage_v0_config.yaml' assert { type: 'yml' } -import { Parameter } from '~/lib/refGenerator/refTypes' - -import ReactMarkdown from 'react-markdown' - -// Parameters are grouped on the page by tag -const TAGS = ['general', 'multitenant'] -// console.log(specFile) -export default function Config() { - return ( -
    -
    -
    -

    {specFile.info.title} Configuration

    - {specFile.info.description} -
    - {TAGS.map((tag) => - specFile.parameters - .filter((param: Parameter) => param.tags[0] === tag) - .map((parameter: Parameter, index) => ( -
    - {index === 0 &&

    {tag} Settings

    } -
    -
    -

    - $ - {parameter.title} -

    -
    -
    -
    -

    - {parameter.description} -

    -
    -
    - Required: {parameter.required.toString()} -
    -
    - Default: - - {parameter.default ? parameter.default.toString() : 'None'} - -
    -
    -
    - {parameter.links && - parameter.links.map((link) => ( -
    -

    See also:

    -
  • - {link.name} -
  • -
    - ))} -
    -
    -
    -
    -
    - )) - )} -
    -
    -
    -
    - ) -} diff --git a/apps/docs/public/.well-known/security.txt b/apps/docs/public/.well-known/security.txt index e9c4f877fe6..44d057d7c93 100644 --- a/apps/docs/public/.well-known/security.txt +++ b/apps/docs/public/.well-known/security.txt @@ -11,6 +11,7 @@ Out of scope vulnerabilities: - Clickjacking on pages with no sensitive actions. - Unauthenticated/logout/login CSRF. - Attacks requiring MITM or physical access to a user's device. +- Attacks requiring social engineering. - Any activity that could lead to the disruption of our service (DoS). - Content spoofing and text injection issues without showing an attack vector/without being able to modify HTML/CSS. - Email spoofing @@ -19,21 +20,26 @@ Out of scope vulnerabilities: - Deadlinks - User enumeration -Please do the following: +Testing guidelines: +- Do not run automated scanners on other customer projects. Running automated scanners can run up costs for our users. Aggressively configured scanners might inadvertently disrupt services, exploit vulnerabilities, lead to system instability or breaches and violate Terms of Service from our upstream providers. Our own security systems won't be able to distinguish hostile reconnaissance from whitehat research. If you wish to run an automated scanner, notify us at security@supabase.io and only run it on your own Supabase project. Do NOT attack projects of other customers. +- Do not take advantage of the vulnerability or problem you have discovered, for example by downloading more data than necessary to demonstrate the vulnerability or deleting or modifying other people's data. +Reporting guidelines: - E-mail your findings to security@supabase.io. -- Do not run automated scanners on our infrastructure or dashboard. If you wish to do this, contact us and we will set up a sandbox for you. -- Do not take advantage of the vulnerability or problem you have discovered, for example by downloading more data than necessary to demonstrate the vulnerability or deleting or modifying other people's data, -- Do not reveal the problem to others until it has been resolved, -- Do not use attacks on physical security, social engineering, distributed denial of service, spam or applications of third parties, and -- Do provide sufficient information to reproduce the problem, so we will be able to resolve it as quickly as possible. Usually, the IP address or the URL of the affected system and a description of the vulnerability will be sufficient, but complex vulnerabilities may require further explanation. +- Do provide sufficient information to reproduce the problem, so we will be able to resolve it as quickly as possible. + +Disclosure guidelines: +- In order to protect our customers, do not reveal the problem to others until we have researched, addressed and informed our affected customers. +- If you want to publicly share your research about Supabase at a conference, in a blog or any other public forum, you should share a draft with us for review and approval at least 30 days prior to the publication date. Please note that the following should not be included: + - Data regarding any Supabase customer projects + - Supabase customers' data + - information about Supabase employees, contractors or partners What we promise: - -- We will respond to your report within 3 business days with our evaluation of the report and an expected resolution date, -- If you have followed the instructions above, we will not take any legal action against you in regard to the report, -- We will handle your report with strict confidentiality, and not pass on your personal details to third parties without your permission, -- We will keep you informed of the progress towards resolving the problem, -- In the public information concerning the problem reported, we will give your name as the discoverer of the problem (unless you desire otherwise), and +- We will respond to your report within 7 business days with our evaluation of the report and an expected resolution date. +- If you have followed the instructions above, we will not take any legal action against you in regard to the report. +- We will handle your report with strict confidentiality, and not pass on your personal details to third parties without your permission. +- We will keep you informed of the progress towards resolving the problem. +- In the public information concerning the problem reported, we will give your name as the discoverer of the problem (unless you desire otherwise). We strive to resolve all problems as quickly as possible, and we would like to play an active role in the ultimate publication on the problem after it is resolved. diff --git a/apps/docs/public/favicon/android-icon-144x144.png b/apps/docs/public/favicon/android-icon-144x144.png index a6af05bf04b..144190d1976 100644 Binary files a/apps/docs/public/favicon/android-icon-144x144.png and b/apps/docs/public/favicon/android-icon-144x144.png differ diff --git a/apps/docs/public/favicon/android-icon-192x192.png b/apps/docs/public/favicon/android-icon-192x192.png index 2259b4d1310..c4f30c5f922 100644 Binary files a/apps/docs/public/favicon/android-icon-192x192.png and b/apps/docs/public/favicon/android-icon-192x192.png differ diff --git a/apps/docs/public/favicon/android-icon-36x36.png b/apps/docs/public/favicon/android-icon-36x36.png index a920f49dbed..aed5d2b3063 100644 Binary files a/apps/docs/public/favicon/android-icon-36x36.png and b/apps/docs/public/favicon/android-icon-36x36.png differ diff --git a/apps/docs/public/favicon/android-icon-48x48.png b/apps/docs/public/favicon/android-icon-48x48.png index 5b5a527f888..0821ae73784 100644 Binary files a/apps/docs/public/favicon/android-icon-48x48.png and b/apps/docs/public/favicon/android-icon-48x48.png differ diff --git a/apps/docs/public/favicon/android-icon-72x72.png b/apps/docs/public/favicon/android-icon-72x72.png index d97644b51b6..10d2bbaaa86 100644 Binary files a/apps/docs/public/favicon/android-icon-72x72.png and b/apps/docs/public/favicon/android-icon-72x72.png differ diff --git a/apps/docs/public/favicon/android-icon-96x96.png b/apps/docs/public/favicon/android-icon-96x96.png index d3121ca964a..a8d96ffed73 100644 Binary files a/apps/docs/public/favicon/android-icon-96x96.png and b/apps/docs/public/favicon/android-icon-96x96.png differ diff --git a/apps/docs/public/favicon/apple-icon-114x114.png b/apps/docs/public/favicon/apple-icon-114x114.png index eec6b433f4b..396cee8516a 100644 Binary files a/apps/docs/public/favicon/apple-icon-114x114.png and b/apps/docs/public/favicon/apple-icon-114x114.png differ diff --git a/apps/docs/public/favicon/apple-icon-120x120.png b/apps/docs/public/favicon/apple-icon-120x120.png index abb84bb15d8..7e4e727910e 100644 Binary files a/apps/docs/public/favicon/apple-icon-120x120.png and b/apps/docs/public/favicon/apple-icon-120x120.png differ diff --git a/apps/docs/public/favicon/apple-icon-144x144.png b/apps/docs/public/favicon/apple-icon-144x144.png index a6af05bf04b..144190d1976 100644 Binary files a/apps/docs/public/favicon/apple-icon-144x144.png and b/apps/docs/public/favicon/apple-icon-144x144.png differ diff --git a/apps/docs/public/favicon/apple-icon-152x152.png b/apps/docs/public/favicon/apple-icon-152x152.png index 41f8008da33..cb261b8bba0 100644 Binary files a/apps/docs/public/favicon/apple-icon-152x152.png and b/apps/docs/public/favicon/apple-icon-152x152.png differ diff --git a/apps/docs/public/favicon/apple-icon-180x180.png b/apps/docs/public/favicon/apple-icon-180x180.png index 403bc426458..3cf7f1132c8 100644 Binary files a/apps/docs/public/favicon/apple-icon-180x180.png and b/apps/docs/public/favicon/apple-icon-180x180.png differ diff --git a/apps/docs/public/favicon/apple-icon-57x57.png b/apps/docs/public/favicon/apple-icon-57x57.png index a4bc19b9c0f..278a7a87bee 100644 Binary files a/apps/docs/public/favicon/apple-icon-57x57.png and b/apps/docs/public/favicon/apple-icon-57x57.png differ diff --git a/apps/docs/public/favicon/apple-icon-60x60.png b/apps/docs/public/favicon/apple-icon-60x60.png index 380aa8c5168..a693570eea3 100644 Binary files a/apps/docs/public/favicon/apple-icon-60x60.png and b/apps/docs/public/favicon/apple-icon-60x60.png differ diff --git a/apps/docs/public/favicon/apple-icon-72x72.png b/apps/docs/public/favicon/apple-icon-72x72.png index d97644b51b6..10d2bbaaa86 100644 Binary files a/apps/docs/public/favicon/apple-icon-72x72.png and b/apps/docs/public/favicon/apple-icon-72x72.png differ diff --git a/apps/docs/public/favicon/apple-icon-76x76.png b/apps/docs/public/favicon/apple-icon-76x76.png index 2abcb5eeffa..241bd6a2452 100644 Binary files a/apps/docs/public/favicon/apple-icon-76x76.png and b/apps/docs/public/favicon/apple-icon-76x76.png differ diff --git a/apps/docs/public/favicon/apple-icon-precomposed.png b/apps/docs/public/favicon/apple-icon-precomposed.png index f81f2980e18..c4f30c5f922 100644 Binary files a/apps/docs/public/favicon/apple-icon-precomposed.png and b/apps/docs/public/favicon/apple-icon-precomposed.png differ diff --git a/apps/docs/public/favicon/apple-icon.png b/apps/docs/public/favicon/apple-icon.png index f81f2980e18..c4f30c5f922 100644 Binary files a/apps/docs/public/favicon/apple-icon.png and b/apps/docs/public/favicon/apple-icon.png differ diff --git a/apps/docs/public/favicon/browserconfig.xml b/apps/docs/public/favicon/browserconfig.xml index c5541482230..1a8136def88 100644 --- a/apps/docs/public/favicon/browserconfig.xml +++ b/apps/docs/public/favicon/browserconfig.xml @@ -1,2 +1,2 @@ -#ffffff \ No newline at end of file +#ffffff \ No newline at end of file diff --git a/apps/docs/public/favicon/favicon-128.png b/apps/docs/public/favicon/favicon-128.png new file mode 100644 index 00000000000..4fab8e34978 Binary files /dev/null and b/apps/docs/public/favicon/favicon-128.png differ diff --git a/apps/docs/public/favicon/favicon-16x16.png b/apps/docs/public/favicon/favicon-16x16.png index 6bb606640e0..7d05a72096b 100644 Binary files a/apps/docs/public/favicon/favicon-16x16.png and b/apps/docs/public/favicon/favicon-16x16.png differ diff --git a/apps/docs/public/favicon/favicon-180x180.png b/apps/docs/public/favicon/favicon-180x180.png new file mode 100644 index 00000000000..3cf7f1132c8 Binary files /dev/null and b/apps/docs/public/favicon/favicon-180x180.png differ diff --git a/apps/docs/public/favicon/favicon-196x196.png b/apps/docs/public/favicon/favicon-196x196.png new file mode 100644 index 00000000000..1e0258526ae Binary files /dev/null and b/apps/docs/public/favicon/favicon-196x196.png differ diff --git a/apps/docs/public/favicon/favicon-32x32.png b/apps/docs/public/favicon/favicon-32x32.png index 86d22222607..7eb8cabea60 100644 Binary files a/apps/docs/public/favicon/favicon-32x32.png and b/apps/docs/public/favicon/favicon-32x32.png differ diff --git a/apps/docs/public/favicon/favicon-48x48.png b/apps/docs/public/favicon/favicon-48x48.png new file mode 100644 index 00000000000..40377a51b54 Binary files /dev/null and b/apps/docs/public/favicon/favicon-48x48.png differ diff --git a/apps/docs/public/favicon/favicon-96x96.png b/apps/docs/public/favicon/favicon-96x96.png index d3121ca964a..a8d96ffed73 100644 Binary files a/apps/docs/public/favicon/favicon-96x96.png and b/apps/docs/public/favicon/favicon-96x96.png differ diff --git a/apps/docs/public/favicon/manifest.json b/apps/docs/public/favicon/manifest.json index 3a90d23e45e..4efcf18e2ec 100644 --- a/apps/docs/public/favicon/manifest.json +++ b/apps/docs/public/favicon/manifest.json @@ -7,37 +7,37 @@ "background_color": "#1C1C1C", "icons": [ { - "src": "/android-icon-36x36.png", + "src": "/favicon/android-icon-36x36.png", "sizes": "36x36", "type": "image/png", "density": "0.75" }, { - "src": "/android-icon-48x48.png", + "src": "/favicon/android-icon-48x48.png", "sizes": "48x48", "type": "image/png", "density": "1.0" }, { - "src": "/android-icon-72x72.png", + "src": "/favicon/android-icon-72x72.png", "sizes": "72x72", "type": "image/png", "density": "1.5" }, { - "src": "/android-icon-96x96.png", + "src": "/favicon/android-icon-96x96.png", "sizes": "96x96", "type": "image/png", "density": "2.0" }, { - "src": "/android-icon-144x144.png", + "src": "/favicon/android-icon-144x144.png", "sizes": "144x144", "type": "image/png", "density": "3.0" }, { - "src": "/android-icon-192x192.png", + "src": "/favicon/android-icon-192x192.png", "sizes": "192x192", "type": "image/png", "density": "4.0" diff --git a/apps/docs/public/favicon/ms-icon-144x144.png b/apps/docs/public/favicon/ms-icon-144x144.png index a6af05bf04b..144190d1976 100644 Binary files a/apps/docs/public/favicon/ms-icon-144x144.png and b/apps/docs/public/favicon/ms-icon-144x144.png differ diff --git a/apps/docs/public/favicon/ms-icon-70x70.png b/apps/docs/public/favicon/ms-icon-70x70.png index b29d70d3bef..6a428df84d3 100644 Binary files a/apps/docs/public/favicon/ms-icon-70x70.png and b/apps/docs/public/favicon/ms-icon-70x70.png differ diff --git a/apps/docs/public/humans.txt b/apps/docs/public/humans.txt index fa9c1177d6e..1c721c74f13 100644 --- a/apps/docs/public/humans.txt +++ b/apps/docs/public/humans.txt @@ -51,6 +51,7 @@ Monica El Khoury Nikita Kotlyarov Oli R Pamela Chia +Paul Caselton Paul Cioanca Paul Copplestone Pavel Borisov diff --git a/apps/docs/public/img/index_advisor_studio.png b/apps/docs/public/img/index_advisor_studio.png new file mode 100644 index 00000000000..f23f4e0adee Binary files /dev/null and b/apps/docs/public/img/index_advisor_studio.png differ diff --git a/apps/docs/public/img/storage/cyberduck.png b/apps/docs/public/img/storage/cyberduck.png new file mode 100644 index 00000000000..b1bd8aea839 Binary files /dev/null and b/apps/docs/public/img/storage/cyberduck.png differ diff --git a/apps/docs/public/img/storage/s3-credentials.png b/apps/docs/public/img/storage/s3-credentials.png new file mode 100644 index 00000000000..a076a8492ef Binary files /dev/null and b/apps/docs/public/img/storage/s3-credentials.png differ diff --git a/apps/docs/spec/cli_v1_commands.yaml b/apps/docs/spec/cli_v1_commands.yaml index fff89d8dfde..5fe46e5b5d8 100644 --- a/apps/docs/spec/cli_v1_commands.yaml +++ b/apps/docs/spec/cli_v1_commands.yaml @@ -1,7 +1,7 @@ clispec: '001' info: id: cli - version: 1.148.6 + version: 1.157.2 title: Supabase CLI language: sh source: https://github.com/supabase/cli @@ -10,6 +10,8 @@ info: description: | Supabase CLI provides you with tools to develop your application locally, and deploy your application to the Supabase platform. tags: + - id: quick-start + title: Quick Start - id: local-dev title: Local Development - id: management-api @@ -1349,19 +1351,21 @@ commands: If your local and remote migration history goes out of sync, you can repair the remote history by marking specific migrations as `--status applied` or `--status reverted`. Marking as `reverted` will delete an existing record from the migration history table while marking as `applied` will insert a new record. - For example, your migration history table may look like this after running `db pull` for the first time. + For example, your migration history may look like the table below, with missing entries in either local or remote. ```bash $ supabase migration list LOCAL │ REMOTE │ TIME (UTC) ─────────────────┼────────────────┼────────────────────── - 20230103054303 │ 20230103054303 │ 2023-01-03 05:43:03 + │ 20230103054303 │ 2023-01-03 05:43:03 + 20230103054315 │ │ 2023-01-03 05:43:15 ``` To reset your migration history to a clean state, first delete your local migration file. ```bash - $ rm supabase/migrations/20230103054303_remote_commit.sql + $ rm supabase/migrations/20230103054315_remote_commit.sql + $ supabase migration list LOCAL │ REMOTE │ TIME (UTC) ─────────────────┼────────────────┼────────────────────── @@ -1372,13 +1376,30 @@ commands: ```bash $ supabase migration repair 20230103054303 --status reverted - Repaired migration history: 20230103054303 => reverted + Connecting to remote database... + Repaired migration history: [20220810154537] => reverted + Finished supabase migration repair. + $ supabase migration list LOCAL │ REMOTE │ TIME (UTC) ─────────────────┼────────────────┼────────────────────── ``` Now you can run `db pull` again to dump the remote schema as a local migration file. + + ```bash + $ supabase db pull + Connecting to remote database... + Schema written to supabase/migrations/20240414044403_remote_schema.sql + Update remote migration history table? [Y/n] + Repaired migration history: [20240414044403] => applied + Finished supabase db pull. + + $ supabase migration list + LOCAL │ REMOTE │ TIME (UTC) + ─────────────────┼────────────────┼────────────────────── + 20240414044403 │ 20240414044403 │ 2024-04-14 04:44:03 + ``` examples: - id: basic-usage name: Mark a migration as reverted @@ -1541,9 +1562,8 @@ commands: flags: - id: name name: --name - description: | - Name that will be used to store token in your settings, defaults to built-in token name generator - default_value: '' + description: Name that will be used to store token in your settings + default_value: built-in token name generator - id: no-browser name: --no-browser description: Do not open browser automatically @@ -2320,9 +2340,17 @@ commands: usage: supabase init [flags] subcommands: [] flags: + - id: force + name: --force + description: Overwrite existing supabase/config.toml. + default_value: 'false' - id: use-orioledb name: --use-orioledb - description: Use OrioleDB storage engine for Postgres + description: Use OrioleDB storage engine for Postgres. + default_value: 'false' + - id: with-intellij-settings + name: --with-intellij-settings + description: Generate IntelliJ IDEA settings for Deno. default_value: 'false' - id: with-vscode-settings name: --with-vscode-settings @@ -2824,6 +2852,39 @@ commands: Optionally, a new row can be inserted into the migration history table to reflect the current state of the remote database. If no entries exist in the migration history table, `pg_dump` will be used to capture all contents of the remote schemas you have created. Otherwise, this command will only diff schema changes against the remote database, similar to running `db diff --linked`. + examples: + - id: basic-usage + name: Basic usage + code: supabase db pull + response: | + Connecting to remote database... + Schema written to supabase/migrations/20240414044403_remote_schema.sql + Update remote migration history table? [Y/n] + Repaired migration history: [20240414044403] => applied + Finished supabase db pull. + The auth and storage schemas are excluded. Run supabase db pull --schema auth,storage again to diff them. + - id: local-studio + name: Local studio + code: supabase db pull --local + response: | + Connecting to local database... + Setting up initial schema.... + Creating custom roles supabase/roles.sql... + Applying migration 20240414044403_remote_schema.sql... + No schema changes found + The auth and storage schemas are excluded. Run supabase db pull --schema auth,storage again to diff them. + exit status 1 + - id: custom-schemas + name: Custom schemas + code: supabase db pull --schema auth,storage + response: | + Connecting to remote database... + Setting up initial schema.... + Creating custom roles supabase/roles.sql... + Applying migration 20240414044403_remote_schema.sql... + No schema changes found + Try rerunning the command with --debug to troubleshoot the error. + exit status 1 tags: [] links: [] usage: supabase db pull [migration name] [flags] @@ -3433,3 +3494,16 @@ commands: description: enable experimental features required: true default_value: 'false' + - id: supabase-bootstrap + title: supabase bootstrap + summary: Bootstrap a Supabase project from a starter template + tags: + - quick-start + links: [] + usage: supabase bootstrap [template] [flags] + subcommands: [] + flags: + - id: password + name: -p, --password + description: Password to your remote Postgres database. + default_value: '' diff --git a/apps/docs/spec/cli_v1_config.yaml b/apps/docs/spec/cli_v1_config.yaml index b4e9cc67e52..5078f5735f6 100644 --- a/apps/docs/spec/cli_v1_config.yaml +++ b/apps/docs/spec/cli_v1_config.yaml @@ -399,6 +399,17 @@ parameters: - name: 'Auth Server configuration' link: 'https://supabase.com/docs/reference/auth' + - id: 'auth.enable_anonymous_sign_ins' + title: 'auth.enable_anonymous_sign_ins' + tags: ['auth'] + required: false + default: 'false' + description: | + Allow/disallow anonymous sign-ins to your project. + links: + - name: 'Auth Server configuration' + link: 'https://supabase.com/docs/reference/auth' + - id: 'auth.email.enable_signup' title: 'auth.email.enable_signup' tags: ['auth'] diff --git a/apps/docs/spec/common-client-libs-sections.json b/apps/docs/spec/common-client-libs-sections.json index d89fd4cc159..6a44fb3c877 100644 --- a/apps/docs/spec/common-client-libs-sections.json +++ b/apps/docs/spec/common-client-libs-sections.json @@ -33,6 +33,7 @@ "reference_python_v2", "reference_csharp_v0", "reference_swift_v1", + "reference_swift_v2", "reference_kotlin_v1", "reference_kotlin_v2" ] @@ -48,6 +49,7 @@ "reference_python_v2", "reference_csharp_v0", "reference_swift_v1", + "reference_swift_v2", "reference_kotlin_v1", "reference_kotlin_v2" ] @@ -423,6 +425,13 @@ "product": "auth", "type": "function" }, + { + "id": "sign-in-anonymously", + "title": "Create an anonymous user", + "slug": "auth-signinanonymously", + "product": "auth", + "type": "function" + }, { "id": "sign-in-with-password", "title": "Sign in a user", @@ -979,6 +988,7 @@ "reference_python_v2", "reference_csharp_v0", "reference_swift_v1", + "reference_swift_v2", "reference_kotlin_v1", "reference_kotlin_v2" ], diff --git a/apps/docs/spec/enrichments/tsdoc_v2/combined.json b/apps/docs/spec/enrichments/tsdoc_v2/combined.json index 8543a34ede2..a0a54aeb4dd 100644 --- a/apps/docs/spec/enrichments/tsdoc_v2/combined.json +++ b/apps/docs/spec/enrichments/tsdoc_v2/combined.json @@ -16,7 +16,7 @@ "flags": {}, "children": [ { - "id": 211, + "id": 213, "name": "QueryData", "kind": 16777216, "kindString": "Reference", @@ -24,14 +24,14 @@ "sources": [ { "fileName": "src/index.ts", - "line": 20, + "line": 22, "character": 50 } ], - "target": 106 + "target": 112 }, { - "id": 212, + "id": 214, "name": "QueryError", "kind": 16777216, "kindString": "Reference", @@ -39,14 +39,14 @@ "sources": [ { "fileName": "src/index.ts", - "line": 20, + "line": 22, "character": 61 } ], - "target": 110 + "target": 116 }, { - "id": 210, + "id": 212, "name": "QueryResult", "kind": 16777216, "kindString": "Reference", @@ -54,14 +54,14 @@ "sources": [ { "fileName": "src/index.ts", - "line": 20, + "line": 22, "character": 37 } ], - "target": 104 + "target": 110 }, { - "id": 209, + "id": 211, "name": "SupabaseClientOptions", "kind": 16777216, "kindString": "Reference", @@ -69,14 +69,14 @@ "sources": [ { "fileName": "src/index.ts", - "line": 20, + "line": 22, "character": 14 } ], - "target": 60 + "target": 70 }, { - "id": 113, + "id": 119, "name": "SupabaseClient", "kind": 128, "kindString": "Class", @@ -87,7 +87,7 @@ }, "children": [ { - "id": 114, + "id": 120, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -95,13 +95,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 83, + "line": 69, "character": 2 } ], "signatures": [ { - "id": 115, + "id": 121, "name": "new SupabaseClient", "kind": 16384, "kindString": "Constructor signature", @@ -111,7 +111,7 @@ }, "typeParameter": [ { - "id": 116, + "id": 122, "name": "Database", "kind": 131072, "kindString": "Type parameter", @@ -122,7 +122,7 @@ } }, { - "id": 117, + "id": 123, "name": "SchemaName", "kind": 131072, "kindString": "Type parameter", @@ -142,7 +142,7 @@ "operator": "keyof", "target": { "type": "reference", - "id": 116, + "id": 122, "name": "Database" } }, @@ -162,7 +162,7 @@ "operator": "keyof", "target": { "type": "reference", - "id": 116, + "id": 122, "name": "Database" } } @@ -171,14 +171,14 @@ } }, { - "id": 118, + "id": 124, "name": "Schema", "kind": 131072, "kindString": "Type parameter", "flags": {}, "type": { "type": "reference", - "id": 99, + "id": 105, "name": "GenericSchema" }, "default": { @@ -187,18 +187,18 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 117, + "id": 123, "name": "SchemaName" }, "objectType": { "type": "reference", - "id": 116, + "id": 122, "name": "Database" } }, "extendsType": { "type": "reference", - "id": 99, + "id": 105, "name": "GenericSchema" }, "trueType": { @@ -221,7 +221,7 @@ ], "parameters": [ { - "id": 119, + "id": 125, "name": "supabaseUrl", "kind": 32768, "kindString": "Parameter", @@ -235,7 +235,7 @@ } }, { - "id": 120, + "id": 126, "name": "supabaseKey", "kind": 32768, "kindString": "Parameter", @@ -249,7 +249,7 @@ } }, { - "id": 121, + "id": 127, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -258,17 +258,17 @@ }, "type": { "type": "reference", - "id": 60, + "id": 70, "typeArguments": [ { "type": "reference", - "id": 117, + "id": 123, "name": "SchemaName" } ], "name": "SupabaseClientOptions", "dereferenced": { - "id": 60, + "id": 70, "name": "SupabaseClientOptions", "kind": 4194304, "kindString": "Type alias", @@ -282,7 +282,7 @@ ], "typeParameter": [ { - "id": 80, + "id": 90, "name": "SchemaName", "kind": 131072, "kindString": "Type parameter", @@ -292,14 +292,14 @@ "type": { "type": "reflection", "declaration": { - "id": 61, + "id": 71, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 65, + "id": 75, "name": "auth", "kind": 1024, "kindString": "Property", @@ -316,14 +316,14 @@ "type": { "type": "reflection", "declaration": { - "id": 66, + "id": 76, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 67, + "id": 77, "name": "autoRefreshToken", "kind": 1024, "kindString": "Property", @@ -346,7 +346,7 @@ } }, { - "id": 73, + "id": 83, "name": "debug", "kind": 1024, "kindString": "Property", @@ -371,13 +371,13 @@ }, "objectType": { "type": "reference", - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions" } } }, { - "id": 70, + "id": 80, "name": "detectSessionInUrl", "kind": 1024, "kindString": "Property", @@ -400,7 +400,7 @@ } }, { - "id": 72, + "id": 82, "name": "flowType", "kind": 1024, "kindString": "Property", @@ -425,13 +425,13 @@ }, "objectType": { "type": "reference", - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions" } } }, { - "id": 74, + "id": 84, "name": "lock", "kind": 1024, "kindString": "Property", @@ -462,13 +462,13 @@ }, "objectType": { "type": "reference", - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions" } } }, { - "id": 69, + "id": 79, "name": "persistSession", "kind": 1024, "kindString": "Property", @@ -491,7 +491,7 @@ } }, { - "id": 71, + "id": 81, "name": "storage", "kind": 1024, "kindString": "Property", @@ -516,13 +516,13 @@ }, "objectType": { "type": "reference", - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions" } } }, { - "id": 68, + "id": 78, "name": "storageKey", "kind": 1024, "kindString": "Property", @@ -550,14 +550,14 @@ "title": "Properties", "kind": 1024, "children": [ - 67, - 73, - 70, - 72, - 74, - 69, - 71, - 68 + 77, + 83, + 80, + 82, + 84, + 79, + 81, + 78 ] } ], @@ -572,7 +572,7 @@ } }, { - "id": 62, + "id": 72, "name": "db", "kind": 1024, "kindString": "Property", @@ -592,14 +592,14 @@ "type": { "type": "reflection", "declaration": { - "id": 63, + "id": 73, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 64, + "id": 74, "name": "schema", "kind": 1024, "kindString": "Property", @@ -615,7 +615,7 @@ ], "type": { "type": "reference", - "id": 80, + "id": 90, "name": "SchemaName", "dereferenced": {} } @@ -626,7 +626,7 @@ "title": "Properties", "kind": 1024, "children": [ - 64 + 74 ] } ], @@ -641,7 +641,7 @@ } }, { - "id": 76, + "id": 86, "name": "global", "kind": 1024, "kindString": "Property", @@ -658,14 +658,14 @@ "type": { "type": "reflection", "declaration": { - "id": 77, + "id": 87, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 78, + "id": 88, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -684,10 +684,10 @@ ], "type": { "type": "reference", - "id": 59, + "id": 69, "name": "Fetch", "dereferenced": { - "id": 59, + "id": 69, "name": "Fetch", "kind": 4194304, "kindString": "Type alias", @@ -703,7 +703,7 @@ "type": "query", "queryType": { "type": "reference", - "id": 18, + "id": 28, "qualifiedName": "fetch", "package": "typescript", "name": "fetch" @@ -713,7 +713,7 @@ } }, { - "id": 79, + "id": 89, "name": "headers", "kind": 1024, "kindString": "Property", @@ -753,8 +753,8 @@ "title": "Properties", "kind": 1024, "children": [ - 78, - 79 + 88, + 89 ] } ], @@ -769,7 +769,7 @@ } }, { - "id": 75, + "id": 85, "name": "realtime", "kind": 1024, "kindString": "Property", @@ -799,10 +799,10 @@ "title": "Properties", "kind": 1024, "children": [ - 65, - 62, - 76, - 75 + 75, + 72, + 86, + 85 ] } ], @@ -821,21 +821,21 @@ ], "type": { "type": "reference", - "id": 113, + "id": 119, "typeArguments": [ { "type": "reference", - "id": 116, + "id": 122, "name": "Database" }, { "type": "reference", - "id": 117, + "id": 123, "name": "SchemaName" }, { "type": "reference", - "id": 118, + "id": 124, "name": "Schema" } ], @@ -845,7 +845,7 @@ ] }, { - "id": 122, + "id": 128, "name": "auth", "kind": 1024, "kindString": "Property", @@ -856,7 +856,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 55, + "line": 43, "character": 2 } ], @@ -866,7 +866,7 @@ } }, { - "id": 125, + "id": 131, "name": "authUrl", "kind": 1024, "kindString": "Property", @@ -876,7 +876,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 59, + "line": 47, "character": 12 } ], @@ -886,7 +886,7 @@ } }, { - "id": 135, + "id": 141, "name": "changedAccessToken", "kind": 1024, "kindString": "Property", @@ -897,7 +897,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 65, + "line": 53, "character": 12 } ], @@ -907,7 +907,7 @@ } }, { - "id": 130, + "id": 136, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -918,28 +918,28 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 64, + "line": 52, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 131, + "id": 137, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 132, + "id": 138, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 133, + "id": 139, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -963,7 +963,7 @@ } }, { - "id": 134, + "id": 140, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -998,7 +998,7 @@ } }, { - "id": 127, + "id": 133, "name": "functionsUrl", "kind": 1024, "kindString": "Property", @@ -1008,7 +1008,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 61, + "line": 49, "character": 12 } ], @@ -1018,7 +1018,7 @@ } }, { - "id": 136, + "id": 142, "name": "headers", "kind": 1024, "kindString": "Property", @@ -1028,46 +1028,29 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 67, + "line": 55, "character": 12 } ], "type": { - "type": "reflection", - "declaration": { - "id": 137, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "indexSignature": { - "id": 138, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": {}, - "parameters": [ - { - "id": 139, - "name": "key", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "string" } - } + ], + "qualifiedName": "Record", + "package": "typescript", + "name": "Record" } }, { - "id": 123, + "id": 129, "name": "realtime", "kind": 1024, "kindString": "Property", @@ -1075,7 +1058,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 56, + "line": 44, "character": 2 } ], @@ -1087,7 +1070,7 @@ } }, { - "id": 124, + "id": 130, "name": "realtimeUrl", "kind": 1024, "kindString": "Property", @@ -1097,7 +1080,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 58, + "line": 46, "character": 12 } ], @@ -1107,7 +1090,7 @@ } }, { - "id": 128, + "id": 134, "name": "rest", "kind": 1024, "kindString": "Property", @@ -1117,7 +1100,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 62, + "line": 50, "character": 12 } ], @@ -1126,12 +1109,12 @@ "typeArguments": [ { "type": "reference", - "id": 116, + "id": 122, "name": "Database" }, { "type": "reference", - "id": 117, + "id": 123, "name": "SchemaName" }, { @@ -1140,12 +1123,12 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 117, + "id": 123, "name": "SchemaName" }, "objectType": { "type": "reference", - "id": 116, + "id": 122, "name": "Database" } }, @@ -1178,7 +1161,7 @@ } }, { - "id": 129, + "id": 135, "name": "storageKey", "kind": 1024, "kindString": "Property", @@ -1188,7 +1171,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 63, + "line": 51, "character": 12 } ], @@ -1198,7 +1181,7 @@ } }, { - "id": 126, + "id": 132, "name": "storageUrl", "kind": 1024, "kindString": "Property", @@ -1208,7 +1191,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 60, + "line": 48, "character": 12 } ], @@ -1218,7 +1201,7 @@ } }, { - "id": 141, + "id": 144, "name": "supabaseKey", "kind": 1024, "kindString": "Property", @@ -1231,7 +1214,7 @@ } }, { - "id": 140, + "id": 143, "name": "supabaseUrl", "kind": 1024, "kindString": "Property", @@ -1244,7 +1227,7 @@ } }, { - "id": 142, + "id": 145, "name": "functions", "kind": 262144, "kindString": "Accessor", @@ -1252,13 +1235,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 132, + "line": 118, "character": 6 } ], "getSignature": [ { - "id": 143, + "id": 146, "name": "functions", "kind": 524288, "kindString": "Get signature", @@ -1276,7 +1259,7 @@ ] }, { - "id": 144, + "id": 147, "name": "storage", "kind": 262144, "kindString": "Accessor", @@ -1284,13 +1267,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 142, + "line": 128, "character": 6 } ], "getSignature": [ { - "id": 145, + "id": 148, "name": "storage", "kind": 524288, "kindString": "Get signature", @@ -1308,7 +1291,7 @@ ] }, { - "id": 184, + "id": 186, "name": "_getAccessToken", "kind": 2048, "kindString": "Method", @@ -1318,13 +1301,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 259, + "line": 246, "character": 16 } ], "signatures": [ { - "id": 185, + "id": 187, "name": "_getAccessToken", "kind": 4096, "kindString": "Call signature", @@ -1354,7 +1337,7 @@ ] }, { - "id": 201, + "id": 203, "name": "_handleTokenChanged", "kind": 2048, "kindString": "Method", @@ -1364,20 +1347,20 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 310, + "line": 297, "character": 10 } ], "signatures": [ { - "id": 202, + "id": 204, "name": "_handleTokenChanged", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 203, + "id": 205, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -1385,12 +1368,12 @@ "type": { "type": "reference", "qualifiedName": "AuthChangeEvent", - "package": "@supabase/gotrue-js", + "package": "@supabase/auth-js", "name": "AuthChangeEvent" } }, { - "id": 204, + "id": 206, "name": "source", "kind": 32768, "kindString": "Parameter", @@ -1410,7 +1393,7 @@ } }, { - "id": 205, + "id": 207, "name": "token", "kind": 32768, "kindString": "Parameter", @@ -1431,7 +1414,7 @@ ] }, { - "id": 195, + "id": 197, "name": "_initRealtimeClient", "kind": 2048, "kindString": "Method", @@ -1441,20 +1424,20 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 296, + "line": 283, "character": 10 } ], "signatures": [ { - "id": 196, + "id": 198, "name": "_initRealtimeClient", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 197, + "id": 199, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -1477,7 +1460,7 @@ ] }, { - "id": 186, + "id": 188, "name": "_initSupabaseAuthClient", "kind": 2048, "kindString": "Method", @@ -1487,30 +1470,30 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 265, + "line": 252, "character": 10 } ], "signatures": [ { - "id": 187, + "id": 189, "name": "_initSupabaseAuthClient", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 188, + "id": 190, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions", "dereferenced": { - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions", "kind": 256, "kindString": "Interface", @@ -1525,14 +1508,14 @@ "extendedTypes": [ { "type": "reference", - "name": "GoTrueClientOptions" + "name": "AuthClientOptions" } ] } } }, { - "id": 189, + "id": 191, "name": "headers", "kind": 32768, "kindString": "Parameter", @@ -1557,7 +1540,7 @@ } }, { - "id": 190, + "id": 192, "name": "fetch", "kind": 32768, "kindString": "Parameter", @@ -1567,21 +1550,21 @@ "type": { "type": "reflection", "declaration": { - "id": 191, + "id": 193, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 192, + "id": 194, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 193, + "id": 195, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -1605,7 +1588,7 @@ } }, { - "id": 194, + "id": 196, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -1648,7 +1631,7 @@ ] }, { - "id": 198, + "id": 200, "name": "_listenForAuthEvents", "kind": 2048, "kindString": "Method", @@ -1658,13 +1641,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 303, + "line": 290, "character": 10 } ], "signatures": [ { - "id": 199, + "id": 201, "name": "_listenForAuthEvents", "kind": 4096, "kindString": "Call signature", @@ -1672,7 +1655,7 @@ "type": { "type": "reflection", "declaration": { - "id": 200, + "id": 202, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1683,7 +1666,7 @@ ] }, { - "id": 173, + "id": 175, "name": "channel", "kind": 2048, "kindString": "Method", @@ -1691,13 +1674,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 231, + "line": 218, "character": 2 } ], "signatures": [ { - "id": 174, + "id": 176, "name": "channel", "kind": 4096, "kindString": "Call signature", @@ -1707,7 +1690,7 @@ }, "parameters": [ { - "id": 175, + "id": 177, "name": "name", "kind": 32768, "kindString": "Parameter", @@ -1721,7 +1704,7 @@ } }, { - "id": 176, + "id": 178, "name": "opts", "kind": 32768, "kindString": "Parameter", @@ -1748,7 +1731,7 @@ ] }, { - "id": 146, + "id": 149, "name": "from", "kind": 2048, "kindString": "Method", @@ -1756,13 +1739,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 146, + "line": 133, "character": 2 } ], "signatures": [ { - "id": 147, + "id": 150, "name": "from", "kind": 4096, "kindString": "Call signature", @@ -1772,7 +1755,7 @@ }, "typeParameter": [ { - "id": 148, + "id": 151, "name": "TableName", "kind": 131072, "kindString": "Type parameter", @@ -1783,21 +1766,21 @@ } }, { - "id": 149, + "id": 152, "name": "Table", "kind": 131072, "kindString": "Type parameter", "flags": {}, "type": { "type": "reference", - "id": 81, + "id": 91, "name": "GenericTable" } } ], "parameters": [ { - "id": 150, + "id": 153, "name": "relation", "kind": 32768, "kindString": "Parameter", @@ -1807,7 +1790,7 @@ }, "type": { "type": "reference", - "id": 148, + "id": 151, "name": "TableName", "dereferenced": {} } @@ -1818,25 +1801,30 @@ "typeArguments": [ { "type": "reference", - "id": 118, + "id": 124, "name": "Schema" }, { "type": "reference", - "id": 149, + "id": 152, "name": "Table" }, + { + "type": "reference", + "id": 151, + "name": "TableName" + }, { "type": "conditional", "checkType": { "type": "reference", - "id": 149, + "id": 152, "name": "Table" }, "extendsType": { "type": "reflection", "declaration": { - "id": 151, + "id": 154, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1861,7 +1849,7 @@ } }, { - "id": 152, + "id": 155, "name": "from", "kind": 4096, "kindString": "Call signature", @@ -1871,7 +1859,7 @@ }, "typeParameter": [ { - "id": 153, + "id": 156, "name": "ViewName", "kind": 131072, "kindString": "Type parameter", @@ -1882,92 +1870,18 @@ } }, { - "id": 154, + "id": 157, "name": "View", "kind": 131072, "kindString": "Type parameter", "flags": {}, "type": { "type": "reference", - "id": 94, + "id": 100, "name": "GenericView" } } ], - "parameters": [ - { - "id": 155, - "name": "relation", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "shortText": "The table or view name to query\n" - }, - "type": { - "type": "reference", - "id": 153, - "name": "ViewName", - "dereferenced": {} - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 118, - "name": "Schema" - }, - { - "type": "reference", - "id": 154, - "name": "View" - }, - { - "type": "conditional", - "checkType": { - "type": "reference", - "id": 154, - "name": "View" - }, - "extendsType": { - "type": "reflection", - "declaration": { - "id": 156, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {} - } - }, - "trueType": { - "type": "reference", - "qualifiedName": "R", - "package": "@supabase/postgrest-js", - "name": "R" - }, - "falseType": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "qualifiedName": "PostgrestQueryBuilder", - "package": "@supabase/postgrest-js", - "name": "default" - } - }, - { - "id": 157, - "name": "from", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Perform a query on a table or a view." - }, "parameters": [ { "id": 158, @@ -1979,8 +1893,10 @@ "shortText": "The table or view name to query\n" }, "type": { - "type": "intrinsic", - "name": "string" + "type": "reference", + "id": 156, + "name": "ViewName", + "dereferenced": {} } } ], @@ -1989,16 +1905,46 @@ "typeArguments": [ { "type": "reference", - "id": 118, + "id": 124, "name": "Schema" }, { - "type": "intrinsic", - "name": "any" + "type": "reference", + "id": 157, + "name": "View" }, { - "type": "intrinsic", - "name": "unknown" + "type": "reference", + "id": 156, + "name": "ViewName" + }, + { + "type": "conditional", + "checkType": { + "type": "reference", + "id": 157, + "name": "View" + }, + "extendsType": { + "type": "reflection", + "declaration": { + "id": 159, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {} + } + }, + "trueType": { + "type": "reference", + "qualifiedName": "R", + "package": "@supabase/postgrest-js", + "name": "R" + }, + "falseType": { + "type": "intrinsic", + "name": "unknown" + } } ], "qualifiedName": "PostgrestQueryBuilder", @@ -2009,7 +1955,7 @@ ] }, { - "id": 177, + "id": 179, "name": "getChannels", "kind": 2048, "kindString": "Method", @@ -2017,13 +1963,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 238, + "line": 225, "character": 2 } ], "signatures": [ { - "id": 178, + "id": 180, "name": "getChannels", "kind": 4096, "kindString": "Call signature", @@ -2044,7 +1990,7 @@ ] }, { - "id": 182, + "id": 184, "name": "removeAllChannels", "kind": 2048, "kindString": "Method", @@ -2052,13 +1998,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 255, + "line": 242, "character": 2 } ], "signatures": [ { - "id": 183, + "id": 185, "name": "removeAllChannels", "kind": 4096, "kindString": "Call signature", @@ -2098,7 +2044,7 @@ ] }, { - "id": 179, + "id": 181, "name": "removeChannel", "kind": 2048, "kindString": "Method", @@ -2106,13 +2052,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 248, + "line": 235, "character": 2 } ], "signatures": [ { - "id": 180, + "id": 182, "name": "removeChannel", "kind": 4096, "kindString": "Call signature", @@ -2122,7 +2068,7 @@ }, "parameters": [ { - "id": 181, + "id": 183, "name": "channel", "kind": 32768, "kindString": "Parameter", @@ -2167,7 +2113,7 @@ ] }, { - "id": 163, + "id": 164, "name": "rpc", "kind": 2048, "kindString": "Method", @@ -2175,13 +2121,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 202, + "line": 191, "character": 2 } ], "signatures": [ { - "id": 164, + "id": 165, "name": "rpc", "kind": 4096, "kindString": "Call signature", @@ -2191,8 +2137,8 @@ }, "typeParameter": [ { - "id": 165, - "name": "FunctionName", + "id": 166, + "name": "FnName", "kind": 131072, "kindString": "Type parameter", "flags": {}, @@ -2202,21 +2148,21 @@ } }, { - "id": 166, - "name": "Function_", + "id": 167, + "name": "Fn", "kind": 131072, "kindString": "Type parameter", "flags": {}, "type": { "type": "reference", - "id": 95, + "id": 101, "name": "GenericFunction" } } ], "parameters": [ { - "id": 167, + "id": 168, "name": "fn", "kind": 32768, "kindString": "Parameter", @@ -2226,13 +2172,13 @@ }, "type": { "type": "reference", - "id": 165, - "name": "FunctionName", + "id": 166, + "name": "FnName", "dereferenced": {} } }, { - "id": 168, + "id": 169, "name": "args", "kind": 32768, "kindString": "Parameter", @@ -2248,34 +2194,32 @@ }, "objectType": { "type": "reference", - "id": 166, - "name": "Function_" + "id": 167, + "name": "Fn" } }, "defaultValue": "{}" }, { - "id": 169, + "id": 170, "name": "options", "kind": 32768, "kindString": "Parameter", - "flags": { - "isOptional": true - }, + "flags": {}, "comment": { "shortText": "Named parameters" }, "type": { "type": "reflection", "declaration": { - "id": 170, + "id": 171, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 172, + "id": 174, "name": "count", "kind": 1024, "kindString": "Property", @@ -2288,7 +2232,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 210, + "line": 197, "character": 6 } ], @@ -2311,7 +2255,30 @@ } }, { - "id": 171, + "id": 173, + "name": "get", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "When set to `true`, the function will be called with\nread-only access mode." + }, + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 196, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 172, "name": "head", "kind": 1024, "kindString": "Property", @@ -2324,7 +2291,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 209, + "line": 195, "character": 6 } ], @@ -2339,13 +2306,15 @@ "title": "Properties", "kind": 1024, "children": [ - 172, - 171 + 174, + 173, + 172 ] } ] } - } + }, + "defaultValue": "{}" } ], "type": { @@ -2353,7 +2322,7 @@ "typeArguments": [ { "type": "reference", - "id": 118, + "id": 124, "name": "Schema" }, { @@ -2366,8 +2335,8 @@ }, "objectType": { "type": "reference", - "id": 166, - "name": "Function_" + "id": 167, + "name": "Fn" } }, "extendsType": { @@ -2442,10 +2411,14 @@ }, "objectType": { "type": "reference", - "id": 166, - "name": "Function_" + "id": 167, + "name": "Fn" } }, + { + "type": "intrinsic", + "name": "unknown" + }, { "type": "intrinsic", "name": "unknown" @@ -2459,7 +2432,7 @@ ] }, { - "id": 159, + "id": 160, "name": "schema", "kind": 2048, "kindString": "Method", @@ -2467,24 +2440,24 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 171, + "line": 157, "character": 2 } ], "signatures": [ { - "id": 160, + "id": 161, "name": "schema", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Perform a query on a schema distinct from the default schema supplied via\nthe `options.db.schema` constructor parameter.", + "shortText": "Select a schema to query or perform an function (rpc) call.", "text": "The schema needs to be on the list of exposed schemas inside Supabase.\n" }, "typeParameter": [ { - "id": 161, + "id": 162, "name": "DynamicSchema", "kind": 131072, "kindString": "Type parameter", @@ -2497,17 +2470,17 @@ ], "parameters": [ { - "id": 162, + "id": 163, "name": "schema", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The name of the schema to query\n" + "shortText": "The schema to query\n" }, "type": { "type": "reference", - "id": 161, + "id": 162, "name": "DynamicSchema", "dereferenced": {} } @@ -2518,12 +2491,12 @@ "typeArguments": [ { "type": "reference", - "id": 116, + "id": 122, "name": "Database" }, { "type": "reference", - "id": 161, + "id": 162, "name": "DynamicSchema" }, { @@ -2532,18 +2505,18 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 161, + "id": 162, "name": "DynamicSchema" }, "objectType": { "type": "reference", - "id": 116, + "id": 122, "name": "Database" } }, "extendsType": { "type": "reference", - "id": 99, + "id": 105, "name": "GenericSchema" }, "trueType": { @@ -2576,65 +2549,65 @@ "title": "Constructors", "kind": 512, "children": [ - 114 + 120 ] }, { "title": "Properties", "kind": 1024, "children": [ - 122, - 125, - 135, - 130, - 127, - 136, - 123, - 124, 128, - 129, - 126, + 131, 141, - 140 + 136, + 133, + 142, + 129, + 130, + 134, + 135, + 132, + 144, + 143 ] }, { "title": "Accessors", "kind": 262144, "children": [ - 142, - 144 + 145, + 147 ] }, { "title": "Methods", "kind": 2048, "children": [ - 184, - 201, - 195, 186, - 198, - 173, - 146, - 177, - 182, + 203, + 197, + 188, + 200, + 175, + 149, 179, - 163, - 159 + 184, + 181, + 164, + 160 ] } ], "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 43, + "line": 31, "character": 21 } ], "typeParameter": [ { - "id": 206, + "id": 208, "name": "Database", "kind": 131072, "kindString": "Type parameter", @@ -2645,7 +2618,7 @@ } }, { - "id": 207, + "id": 209, "name": "SchemaName", "kind": 131072, "kindString": "Type parameter", @@ -2662,7 +2635,7 @@ "operator": "keyof", "target": { "type": "reference", - "id": 116, + "id": 122, "name": "Database" } } @@ -2679,7 +2652,7 @@ "operator": "keyof", "target": { "type": "reference", - "id": 116, + "id": 122, "name": "Database" } }, @@ -2699,7 +2672,7 @@ "operator": "keyof", "target": { "type": "reference", - "id": 116, + "id": 122, "name": "Database" } } @@ -2708,14 +2681,14 @@ } }, { - "id": 208, + "id": 210, "name": "Schema", "kind": 131072, "kindString": "Type parameter", "flags": {}, "type": { "type": "reference", - "id": 99, + "id": 105, "name": "GenericSchema" }, "default": { @@ -2724,30 +2697,30 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 117, + "id": 123, "name": "SchemaName" }, "objectType": { "type": "reference", - "id": 116, + "id": 122, "name": "Database" } }, "extendsType": { "type": "reference", - "id": 99, + "id": 105, "name": "GenericSchema" }, "trueType": { "type": "indexedAccess", "indexType": { "type": "reference", - "id": 117, + "id": 123, "name": "SchemaName" }, "objectType": { "type": "reference", - "id": 116, + "id": 122, "name": "Database" } }, @@ -2768,7 +2741,7 @@ "sources": [ { "fileName": "src/index.ts", - "line": 25, + "line": 27, "character": 13 } ], @@ -2851,7 +2824,7 @@ "flags": {}, "type": { "type": "reference", - "id": 99, + "id": 105, "name": "GenericSchema" }, "default": { @@ -2871,7 +2844,7 @@ }, "extendsType": { "type": "reference", - "id": 99, + "id": 105, "name": "GenericSchema" }, "trueType": { @@ -2925,7 +2898,7 @@ }, "type": { "type": "reference", - "id": 60, + "id": 70, "typeArguments": [ { "type": "reference", @@ -2935,7 +2908,7 @@ ], "name": "SupabaseClientOptions", "dereferenced": { - "id": 60, + "id": 70, "name": "SupabaseClientOptions", "kind": 4194304, "kindString": "Type alias", @@ -2949,7 +2922,7 @@ ], "typeParameter": [ { - "id": 80, + "id": 90, "name": "SchemaName", "kind": 131072, "kindString": "Type parameter", @@ -2959,14 +2932,14 @@ "type": { "type": "reflection", "declaration": { - "id": 61, + "id": 71, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 65, + "id": 75, "name": "auth", "kind": 1024, "kindString": "Property", @@ -2983,14 +2956,14 @@ "type": { "type": "reflection", "declaration": { - "id": 66, + "id": 76, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 67, + "id": 77, "name": "autoRefreshToken", "kind": 1024, "kindString": "Property", @@ -3013,7 +2986,7 @@ } }, { - "id": 73, + "id": 83, "name": "debug", "kind": 1024, "kindString": "Property", @@ -3038,13 +3011,13 @@ }, "objectType": { "type": "reference", - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions" } } }, { - "id": 70, + "id": 80, "name": "detectSessionInUrl", "kind": 1024, "kindString": "Property", @@ -3067,7 +3040,7 @@ } }, { - "id": 72, + "id": 82, "name": "flowType", "kind": 1024, "kindString": "Property", @@ -3092,13 +3065,13 @@ }, "objectType": { "type": "reference", - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions" } } }, { - "id": 74, + "id": 84, "name": "lock", "kind": 1024, "kindString": "Property", @@ -3129,13 +3102,13 @@ }, "objectType": { "type": "reference", - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions" } } }, { - "id": 69, + "id": 79, "name": "persistSession", "kind": 1024, "kindString": "Property", @@ -3158,7 +3131,7 @@ } }, { - "id": 71, + "id": 81, "name": "storage", "kind": 1024, "kindString": "Property", @@ -3183,13 +3156,13 @@ }, "objectType": { "type": "reference", - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions" } } }, { - "id": 68, + "id": 78, "name": "storageKey", "kind": 1024, "kindString": "Property", @@ -3217,14 +3190,14 @@ "title": "Properties", "kind": 1024, "children": [ - 67, - 73, - 70, - 72, - 74, - 69, - 71, - 68 + 77, + 83, + 80, + 82, + 84, + 79, + 81, + 78 ] } ], @@ -3239,7 +3212,7 @@ } }, { - "id": 62, + "id": 72, "name": "db", "kind": 1024, "kindString": "Property", @@ -3259,14 +3232,14 @@ "type": { "type": "reflection", "declaration": { - "id": 63, + "id": 73, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 64, + "id": 74, "name": "schema", "kind": 1024, "kindString": "Property", @@ -3282,7 +3255,7 @@ ], "type": { "type": "reference", - "id": 80, + "id": 90, "name": "SchemaName", "dereferenced": {} } @@ -3293,7 +3266,7 @@ "title": "Properties", "kind": 1024, "children": [ - 64 + 74 ] } ], @@ -3308,7 +3281,7 @@ } }, { - "id": 76, + "id": 86, "name": "global", "kind": 1024, "kindString": "Property", @@ -3325,14 +3298,14 @@ "type": { "type": "reflection", "declaration": { - "id": 77, + "id": 87, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 78, + "id": 88, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -3351,10 +3324,10 @@ ], "type": { "type": "reference", - "id": 59, + "id": 69, "name": "Fetch", "dereferenced": { - "id": 59, + "id": 69, "name": "Fetch", "kind": 4194304, "kindString": "Type alias", @@ -3370,7 +3343,7 @@ "type": "query", "queryType": { "type": "reference", - "id": 18, + "id": 28, "qualifiedName": "fetch", "package": "typescript", "name": "fetch" @@ -3380,7 +3353,7 @@ } }, { - "id": 79, + "id": 89, "name": "headers", "kind": 1024, "kindString": "Property", @@ -3420,8 +3393,8 @@ "title": "Properties", "kind": 1024, "children": [ - 78, - 79 + 88, + 89 ] } ], @@ -3436,7 +3409,7 @@ } }, { - "id": 75, + "id": 85, "name": "realtime", "kind": 1024, "kindString": "Property", @@ -3466,10 +3439,10 @@ "title": "Properties", "kind": 1024, "children": [ - 65, - 62, - 76, - 75 + 75, + 72, + 86, + 85 ] } ], @@ -3488,7 +3461,7 @@ ], "type": { "type": "reference", - "id": 113, + "id": 119, "typeArguments": [ { "type": "reference", @@ -3517,17 +3490,17 @@ "title": "References", "kind": 16777216, "children": [ - 211, + 213, + 214, 212, - 210, - 209 + 211 ] }, { "title": "Classes", "kind": 128, "children": [ - 113 + 119 ] }, { @@ -3553,6 +3526,178 @@ "kindString": "Module", "flags": {}, "children": [ + { + "id": 22, + "name": "DEFAULT_AUTH_OPTIONS", + "kind": 32, + "kindString": "Variable", + "flags": { + "isConst": true + }, + "sources": [ + { + "fileName": "src/lib/constants.ts", + "line": 28, + "character": 13 + } + ], + "type": { + "type": "reference", + "id": 68, + "name": "SupabaseAuthClientOptions" + }, + "defaultValue": "..." + }, + { + "id": 19, + "name": "DEFAULT_DB_OPTIONS", + "kind": 32, + "kindString": "Variable", + "flags": { + "isConst": true + }, + "sources": [ + { + "fileName": "src/lib/constants.ts", + "line": 24, + "character": 13 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 20, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 21, + "name": "schema", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/constants.ts", + "line": 25, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "'public'" + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 21 + ] + } + ] + } + }, + "defaultValue": "..." + }, + { + "id": 14, + "name": "DEFAULT_GLOBAL_OPTIONS", + "kind": 32, + "kindString": "Variable", + "flags": { + "isConst": true + }, + "sources": [ + { + "fileName": "src/lib/constants.ts", + "line": 20, + "character": 13 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 15, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 16, + "name": "headers", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/constants.ts", + "line": 21, + "character": 2 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 17, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 18, + "name": "X-Client-Info", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/constants.ts", + "line": 18, + "character": 33 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "..." + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 18 + ] + } + ] + } + }, + "defaultValue": "DEFAULT_HEADERS" + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 16 + ] + } + ] + } + }, + "defaultValue": "..." + }, { "id": 11, "name": "DEFAULT_HEADERS", @@ -3564,7 +3709,7 @@ "sources": [ { "fileName": "src/lib/constants.ts", - "line": 14, + "line": 18, "character": 13 } ], @@ -3586,7 +3731,7 @@ "sources": [ { "fileName": "src/lib/constants.ts", - "line": 14, + "line": 18, "character": 33 } ], @@ -3609,6 +3754,29 @@ } }, "defaultValue": "..." + }, + { + "id": 23, + "name": "DEFAULT_REALTIME_OPTIONS", + "kind": 32, + "kindString": "Variable", + "flags": { + "isConst": true + }, + "sources": [ + { + "fileName": "src/lib/constants.ts", + "line": 35, + "character": 13 + } + ], + "type": { + "type": "reference", + "qualifiedName": "RealtimeClientOptions", + "package": "@supabase/realtime-js", + "name": "RealtimeClientOptions" + }, + "defaultValue": "{}" } ], "groups": [ @@ -3616,7 +3784,11 @@ "title": "Variables", "kind": 32, "children": [ - 11 + 22, + 19, + 14, + 11, + 23 ] } ], @@ -3629,14 +3801,14 @@ ] }, { - "id": 14, + "id": 24, "name": "lib/fetch", "kind": 2, "kindString": "Module", "flags": {}, "children": [ { - "id": 28, + "id": 38, "name": "fetchWithAuth", "kind": 64, "kindString": "Function", @@ -3650,14 +3822,14 @@ ], "signatures": [ { - "id": 29, + "id": 39, "name": "fetchWithAuth", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 30, + "id": 40, "name": "supabaseKey", "kind": 32768, "kindString": "Parameter", @@ -3668,7 +3840,7 @@ } }, { - "id": 31, + "id": 41, "name": "getAccessToken", "kind": 32768, "kindString": "Parameter", @@ -3676,14 +3848,14 @@ "type": { "type": "reflection", "declaration": { - "id": 32, + "id": 42, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 33, + "id": 43, "name": "__type", "kind": 4096, "kindString": "Call signature", @@ -3715,7 +3887,7 @@ } }, { - "id": 34, + "id": 44, "name": "customFetch", "kind": 32768, "kindString": "Parameter", @@ -3725,21 +3897,21 @@ "type": { "type": "reflection", "declaration": { - "id": 35, + "id": 45, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 36, + "id": 46, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 37, + "id": 47, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -3763,7 +3935,7 @@ } }, { - "id": 38, + "id": 48, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -3801,21 +3973,21 @@ "type": { "type": "reflection", "declaration": { - "id": 39, + "id": 49, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 40, + "id": 50, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 41, + "id": 51, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -3839,7 +4011,7 @@ } }, { - "id": 42, + "id": 52, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -3876,7 +4048,7 @@ ] }, { - "id": 15, + "id": 25, "name": "resolveFetch", "kind": 64, "kindString": "Function", @@ -3890,14 +4062,14 @@ ], "signatures": [ { - "id": 16, + "id": 26, "name": "resolveFetch", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 17, + "id": 27, "name": "customFetch", "kind": 32768, "kindString": "Parameter", @@ -3907,21 +4079,21 @@ "type": { "type": "reflection", "declaration": { - "id": 18, + "id": 28, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 19, + "id": 29, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 20, + "id": 30, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -3945,7 +4117,7 @@ } }, { - "id": 21, + "id": 31, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -3983,21 +4155,21 @@ "type": { "type": "reflection", "declaration": { - "id": 22, + "id": 32, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 23, + "id": 33, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 24, + "id": 34, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -4021,7 +4193,7 @@ } }, { - "id": 25, + "id": 35, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -4058,7 +4230,7 @@ ] }, { - "id": 26, + "id": 36, "name": "resolveHeadersConstructor", "kind": 64, "kindString": "Function", @@ -4072,7 +4244,7 @@ ], "signatures": [ { - "id": 27, + "id": 37, "name": "resolveHeadersConstructor", "kind": 4096, "kindString": "Call signature", @@ -4090,9 +4262,9 @@ "title": "Functions", "kind": 64, "children": [ - 28, - 15, - 26 + 38, + 25, + 36 ] } ], @@ -4105,14 +4277,14 @@ ] }, { - "id": 43, + "id": 53, "name": "lib/helpers", "kind": 2, "kindString": "Module", "flags": {}, "children": [ { - "id": 49, + "id": 59, "name": "applySettingDefaults", "kind": 64, "kindString": "Function", @@ -4126,14 +4298,14 @@ ], "signatures": [ { - "id": 50, + "id": 60, "name": "applySettingDefaults", "kind": 4096, "kindString": "Call signature", "flags": {}, "typeParameter": [ { - "id": 51, + "id": 61, "name": "Database", "kind": 131072, "kindString": "Type parameter", @@ -4144,7 +4316,7 @@ } }, { - "id": 52, + "id": 62, "name": "SchemaName", "kind": 131072, "kindString": "Type parameter", @@ -4164,7 +4336,7 @@ "operator": "keyof", "target": { "type": "reference", - "id": 51, + "id": 61, "name": "Database" } }, @@ -4184,7 +4356,7 @@ "operator": "keyof", "target": { "type": "reference", - "id": 51, + "id": 61, "name": "Database" } } @@ -4195,24 +4367,24 @@ ], "parameters": [ { - "id": 53, + "id": 63, "name": "options", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 60, + "id": 70, "typeArguments": [ { "type": "reference", - "id": 52, + "id": 62, "name": "SchemaName" } ], "name": "SupabaseClientOptions", "dereferenced": { - "id": 60, + "id": 70, "name": "SupabaseClientOptions", "kind": 4194304, "kindString": "Type alias", @@ -4226,7 +4398,7 @@ ], "typeParameter": [ { - "id": 80, + "id": 90, "name": "SchemaName", "kind": 131072, "kindString": "Type parameter", @@ -4236,14 +4408,14 @@ "type": { "type": "reflection", "declaration": { - "id": 61, + "id": 71, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 65, + "id": 75, "name": "auth", "kind": 1024, "kindString": "Property", @@ -4260,14 +4432,14 @@ "type": { "type": "reflection", "declaration": { - "id": 66, + "id": 76, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 67, + "id": 77, "name": "autoRefreshToken", "kind": 1024, "kindString": "Property", @@ -4290,7 +4462,7 @@ } }, { - "id": 73, + "id": 83, "name": "debug", "kind": 1024, "kindString": "Property", @@ -4315,13 +4487,13 @@ }, "objectType": { "type": "reference", - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions" } } }, { - "id": 70, + "id": 80, "name": "detectSessionInUrl", "kind": 1024, "kindString": "Property", @@ -4344,7 +4516,7 @@ } }, { - "id": 72, + "id": 82, "name": "flowType", "kind": 1024, "kindString": "Property", @@ -4369,13 +4541,13 @@ }, "objectType": { "type": "reference", - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions" } } }, { - "id": 74, + "id": 84, "name": "lock", "kind": 1024, "kindString": "Property", @@ -4406,13 +4578,13 @@ }, "objectType": { "type": "reference", - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions" } } }, { - "id": 69, + "id": 79, "name": "persistSession", "kind": 1024, "kindString": "Property", @@ -4435,7 +4607,7 @@ } }, { - "id": 71, + "id": 81, "name": "storage", "kind": 1024, "kindString": "Property", @@ -4460,13 +4632,13 @@ }, "objectType": { "type": "reference", - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions" } } }, { - "id": 68, + "id": 78, "name": "storageKey", "kind": 1024, "kindString": "Property", @@ -4494,14 +4666,14 @@ "title": "Properties", "kind": 1024, "children": [ - 67, - 73, - 70, - 72, - 74, - 69, - 71, - 68 + 77, + 83, + 80, + 82, + 84, + 79, + 81, + 78 ] } ], @@ -4516,7 +4688,7 @@ } }, { - "id": 62, + "id": 72, "name": "db", "kind": 1024, "kindString": "Property", @@ -4536,14 +4708,14 @@ "type": { "type": "reflection", "declaration": { - "id": 63, + "id": 73, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 64, + "id": 74, "name": "schema", "kind": 1024, "kindString": "Property", @@ -4559,7 +4731,7 @@ ], "type": { "type": "reference", - "id": 80, + "id": 90, "name": "SchemaName", "dereferenced": {} } @@ -4570,7 +4742,7 @@ "title": "Properties", "kind": 1024, "children": [ - 64 + 74 ] } ], @@ -4585,7 +4757,7 @@ } }, { - "id": 76, + "id": 86, "name": "global", "kind": 1024, "kindString": "Property", @@ -4602,14 +4774,14 @@ "type": { "type": "reflection", "declaration": { - "id": 77, + "id": 87, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 78, + "id": 88, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -4628,10 +4800,10 @@ ], "type": { "type": "reference", - "id": 59, + "id": 69, "name": "Fetch", "dereferenced": { - "id": 59, + "id": 69, "name": "Fetch", "kind": 4194304, "kindString": "Type alias", @@ -4647,7 +4819,7 @@ "type": "query", "queryType": { "type": "reference", - "id": 18, + "id": 28, "qualifiedName": "fetch", "package": "typescript", "name": "fetch" @@ -4657,7 +4829,7 @@ } }, { - "id": 79, + "id": 89, "name": "headers", "kind": 1024, "kindString": "Property", @@ -4697,8 +4869,8 @@ "title": "Properties", "kind": 1024, "children": [ - 78, - 79 + 88, + 89 ] } ], @@ -4713,7 +4885,7 @@ } }, { - "id": 75, + "id": 85, "name": "realtime", "kind": 1024, "kindString": "Property", @@ -4743,10 +4915,10 @@ "title": "Properties", "kind": 1024, "children": [ - 65, - 62, - 76, - 75 + 75, + 72, + 86, + 85 ] } ], @@ -4763,14 +4935,14 @@ } }, { - "id": 54, + "id": 64, "name": "defaults", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 60, + "id": 70, "typeArguments": [ { "type": "intrinsic", @@ -4779,7 +4951,7 @@ ], "name": "SupabaseClientOptions", "dereferenced": { - "id": 60, + "id": 70, "name": "SupabaseClientOptions", "kind": 4194304, "kindString": "Type alias", @@ -4793,7 +4965,7 @@ ], "typeParameter": [ { - "id": 80, + "id": 90, "name": "SchemaName", "kind": 131072, "kindString": "Type parameter", @@ -4803,14 +4975,14 @@ "type": { "type": "reflection", "declaration": { - "id": 61, + "id": 71, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 65, + "id": 75, "name": "auth", "kind": 1024, "kindString": "Property", @@ -4827,14 +4999,14 @@ "type": { "type": "reflection", "declaration": { - "id": 66, + "id": 76, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 67, + "id": 77, "name": "autoRefreshToken", "kind": 1024, "kindString": "Property", @@ -4857,7 +5029,7 @@ } }, { - "id": 73, + "id": 83, "name": "debug", "kind": 1024, "kindString": "Property", @@ -4882,13 +5054,13 @@ }, "objectType": { "type": "reference", - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions" } } }, { - "id": 70, + "id": 80, "name": "detectSessionInUrl", "kind": 1024, "kindString": "Property", @@ -4911,7 +5083,7 @@ } }, { - "id": 72, + "id": 82, "name": "flowType", "kind": 1024, "kindString": "Property", @@ -4936,13 +5108,13 @@ }, "objectType": { "type": "reference", - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions" } } }, { - "id": 74, + "id": 84, "name": "lock", "kind": 1024, "kindString": "Property", @@ -4973,13 +5145,13 @@ }, "objectType": { "type": "reference", - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions" } } }, { - "id": 69, + "id": 79, "name": "persistSession", "kind": 1024, "kindString": "Property", @@ -5002,7 +5174,7 @@ } }, { - "id": 71, + "id": 81, "name": "storage", "kind": 1024, "kindString": "Property", @@ -5027,13 +5199,13 @@ }, "objectType": { "type": "reference", - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions" } } }, { - "id": 68, + "id": 78, "name": "storageKey", "kind": 1024, "kindString": "Property", @@ -5061,14 +5233,14 @@ "title": "Properties", "kind": 1024, "children": [ - 67, - 73, - 70, - 72, - 74, - 69, - 71, - 68 + 77, + 83, + 80, + 82, + 84, + 79, + 81, + 78 ] } ], @@ -5083,7 +5255,7 @@ } }, { - "id": 62, + "id": 72, "name": "db", "kind": 1024, "kindString": "Property", @@ -5103,14 +5275,14 @@ "type": { "type": "reflection", "declaration": { - "id": 63, + "id": 73, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 64, + "id": 74, "name": "schema", "kind": 1024, "kindString": "Property", @@ -5126,7 +5298,7 @@ ], "type": { "type": "reference", - "id": 80, + "id": 90, "name": "SchemaName", "dereferenced": {} } @@ -5137,7 +5309,7 @@ "title": "Properties", "kind": 1024, "children": [ - 64 + 74 ] } ], @@ -5152,7 +5324,7 @@ } }, { - "id": 76, + "id": 86, "name": "global", "kind": 1024, "kindString": "Property", @@ -5169,14 +5341,14 @@ "type": { "type": "reflection", "declaration": { - "id": 77, + "id": 87, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 78, + "id": 88, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -5195,10 +5367,10 @@ ], "type": { "type": "reference", - "id": 59, + "id": 69, "name": "Fetch", "dereferenced": { - "id": 59, + "id": 69, "name": "Fetch", "kind": 4194304, "kindString": "Type alias", @@ -5214,7 +5386,7 @@ "type": "query", "queryType": { "type": "reference", - "id": 18, + "id": 28, "qualifiedName": "fetch", "package": "typescript", "name": "fetch" @@ -5224,7 +5396,7 @@ } }, { - "id": 79, + "id": 89, "name": "headers", "kind": 1024, "kindString": "Property", @@ -5264,8 +5436,8 @@ "title": "Properties", "kind": 1024, "children": [ - 78, - 79 + 88, + 89 ] } ], @@ -5280,7 +5452,7 @@ } }, { - "id": 75, + "id": 85, "name": "realtime", "kind": 1024, "kindString": "Property", @@ -5310,10 +5482,10 @@ "title": "Properties", "kind": 1024, "children": [ - 65, - 62, - 76, - 75 + 75, + 72, + 86, + 85 ] } ], @@ -5332,11 +5504,11 @@ ], "type": { "type": "reference", - "id": 60, + "id": 70, "typeArguments": [ { "type": "reference", - "id": 52, + "id": 62, "name": "SchemaName" } ], @@ -5346,7 +5518,7 @@ ] }, { - "id": 55, + "id": 65, "name": "isBrowser", "kind": 64, "kindString": "Function", @@ -5360,7 +5532,7 @@ ], "signatures": [ { - "id": 56, + "id": 66, "name": "isBrowser", "kind": 4096, "kindString": "Call signature", @@ -5373,7 +5545,7 @@ ] }, { - "id": 46, + "id": 56, "name": "stripTrailingSlash", "kind": 64, "kindString": "Function", @@ -5387,14 +5559,14 @@ ], "signatures": [ { - "id": 47, + "id": 57, "name": "stripTrailingSlash", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 48, + "id": 58, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -5413,7 +5585,7 @@ ] }, { - "id": 44, + "id": 54, "name": "uuid", "kind": 64, "kindString": "Function", @@ -5427,7 +5599,7 @@ ], "signatures": [ { - "id": 45, + "id": 55, "name": "uuid", "kind": 4096, "kindString": "Call signature", @@ -5445,10 +5617,10 @@ "title": "Functions", "kind": 64, "children": [ - 49, - 55, - 46, - 44 + 59, + 65, + 56, + 54 ] } ], @@ -5461,14 +5633,14 @@ ] }, { - "id": 57, + "id": 67, "name": "lib/types", "kind": 2, "kindString": "Module", "flags": {}, "children": [ { - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions", "kind": 256, "kindString": "Interface", @@ -5483,12 +5655,12 @@ "extendedTypes": [ { "type": "reference", - "name": "GoTrueClientOptions" + "name": "AuthClientOptions" } ] }, { - "id": 59, + "id": 69, "name": "Fetch", "kind": 4194304, "kindString": "Type alias", @@ -5504,7 +5676,7 @@ "type": "query", "queryType": { "type": "reference", - "id": 18, + "id": 28, "qualifiedName": "fetch", "package": "typescript", "name": "fetch" @@ -5512,7 +5684,7 @@ } }, { - "id": 95, + "id": 101, "name": "GenericFunction", "kind": 4194304, "kindString": "Type alias", @@ -5520,21 +5692,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 89, + "line": 85, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 96, + "id": 102, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 97, + "id": 103, "name": "Args", "kind": 1024, "kindString": "Property", @@ -5542,7 +5714,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 90, + "line": 86, "character": 2 } ], @@ -5564,7 +5736,7 @@ } }, { - "id": 98, + "id": 104, "name": "Returns", "kind": 1024, "kindString": "Property", @@ -5572,7 +5744,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 91, + "line": 87, "character": 2 } ], @@ -5587,15 +5759,15 @@ "title": "Properties", "kind": 1024, "children": [ - 97, - 98 + 103, + 104 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 89, + "line": 85, "character": 30 } ] @@ -5603,7 +5775,7 @@ } }, { - "id": 91, + "id": 97, "name": "GenericNonUpdatableView", "kind": 4194304, "kindString": "Type alias", @@ -5611,21 +5783,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 83, + "line": 79, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 92, + "id": 98, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 93, + "id": 99, "name": "Row", "kind": 1024, "kindString": "Property", @@ -5633,7 +5805,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 84, + "line": 80, "character": 2 } ], @@ -5660,14 +5832,14 @@ "title": "Properties", "kind": 1024, "children": [ - 93 + 99 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 83, + "line": 79, "character": 38 } ] @@ -5675,7 +5847,7 @@ } }, { - "id": 99, + "id": 105, "name": "GenericSchema", "kind": 4194304, "kindString": "Type alias", @@ -5683,21 +5855,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 94, + "line": 90, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 100, + "id": 106, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 103, + "id": 109, "name": "Functions", "kind": 1024, "kindString": "Property", @@ -5705,7 +5877,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 97, + "line": 93, "character": 2 } ], @@ -5718,7 +5890,7 @@ }, { "type": "reference", - "id": 95, + "id": 101, "name": "GenericFunction" } ], @@ -5728,7 +5900,7 @@ } }, { - "id": 101, + "id": 107, "name": "Tables", "kind": 1024, "kindString": "Property", @@ -5736,7 +5908,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 95, + "line": 91, "character": 2 } ], @@ -5749,7 +5921,7 @@ }, { "type": "reference", - "id": 81, + "id": 91, "name": "GenericTable" } ], @@ -5759,7 +5931,7 @@ } }, { - "id": 102, + "id": 108, "name": "Views", "kind": 1024, "kindString": "Property", @@ -5767,7 +5939,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 96, + "line": 92, "character": 2 } ], @@ -5780,7 +5952,7 @@ }, { "type": "reference", - "id": 94, + "id": 100, "name": "GenericView" } ], @@ -5795,16 +5967,16 @@ "title": "Properties", "kind": 1024, "children": [ - 103, - 101, - 102 + 109, + 107, + 108 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 94, + "line": 90, "character": 28 } ] @@ -5812,7 +5984,7 @@ } }, { - "id": 81, + "id": 91, "name": "GenericTable", "kind": 4194304, "kindString": "Type alias", @@ -5827,14 +5999,14 @@ "type": { "type": "reflection", "declaration": { - "id": 82, + "id": 92, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 84, + "id": 94, "name": "Insert", "kind": 1024, "kindString": "Property", @@ -5864,7 +6036,7 @@ } }, { - "id": 83, + "id": 93, "name": "Row", "kind": 1024, "kindString": "Property", @@ -5894,7 +6066,7 @@ } }, { - "id": 85, + "id": 95, "name": "Update", "kind": 1024, "kindString": "Property", @@ -5929,9 +6101,9 @@ "title": "Properties", "kind": 1024, "children": [ - 84, - 83, - 85 + 94, + 93, + 95 ] } ], @@ -5946,7 +6118,7 @@ } }, { - "id": 86, + "id": 96, "name": "GenericUpdatableView", "kind": 4194304, "kindString": "Type alias", @@ -5959,128 +6131,13 @@ } ], "type": { - "type": "reflection", - "declaration": { - "id": 87, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 89, - "name": "Insert", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 79, - "character": 2 - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" - } - }, - { - "id": 88, - "name": "Row", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 78, - "character": 2 - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" - } - }, - { - "id": 90, - "name": "Update", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 80, - "character": 2 - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 89, - 88, - 90 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 77, - "character": 35 - } - ] - } + "type": "reference", + "id": 91, + "name": "GenericTable" } }, { - "id": 94, + "id": 100, "name": "GenericView", "kind": 4194304, "kindString": "Type alias", @@ -6088,7 +6145,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 87, + "line": 83, "character": 12 } ], @@ -6096,7 +6153,7 @@ "type": "union", "types": [ { - "id": 86, + "id": 96, "name": "GenericUpdatableView", "kind": 4194304, "kindString": "Type alias", @@ -6108,81 +6165,40 @@ "character": 12 } ], + "type": { + "type": "reference", + "id": 91, + "name": "GenericTable" + } + }, + { + "id": 97, + "name": "GenericNonUpdatableView", + "kind": 4194304, + "kindString": "Type alias", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 79, + "character": 12 + } + ], "type": { "type": "reflection", "declaration": { - "id": 87, + "id": 98, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 89, - "name": "Insert", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 79, - "character": 2 - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" - } - }, - { - "id": 88, + "id": 99, "name": "Row", "kind": 1024, "kindString": "Property", "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 78, - "character": 2 - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" - } - }, - { - "id": 90, - "name": "Update", - "kind": 1024, - "kindString": "Property", - "flags": {}, "sources": [ { "fileName": "src/lib/types.ts", @@ -6213,88 +6229,14 @@ "title": "Properties", "kind": 1024, "children": [ - 89, - 88, - 90 + 99 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 77, - "character": 35 - } - ] - } - } - }, - { - "id": 91, - "name": "GenericNonUpdatableView", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 83, - "character": 12 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 92, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 93, - "name": "Row", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 84, - "character": 2 - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 93 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 83, + "line": 79, "character": 38 } ] @@ -6305,7 +6247,7 @@ } }, { - "id": 106, + "id": 112, "name": "QueryData", "kind": 4194304, "kindString": "Type alias", @@ -6313,13 +6255,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 104, + "line": 100, "character": 12 } ], "typeParameter": [ { - "id": 109, + "id": 115, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -6330,7 +6272,7 @@ "type": "conditional", "checkType": { "type": "reference", - "id": 109, + "id": 115, "name": "T" }, "extendsType": { @@ -6339,14 +6281,14 @@ { "type": "reflection", "declaration": { - "id": 107, + "id": 113, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 108, + "id": 114, "name": "data", "kind": 1024, "kindString": "Property", @@ -6354,7 +6296,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 104, + "line": 100, "character": 51 } ], @@ -6369,14 +6311,14 @@ "title": "Properties", "kind": 1024, "children": [ - 108 + 114 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 104, + "line": 100, "character": 49 } ] @@ -6410,7 +6352,7 @@ } }, { - "id": 110, + "id": 116, "name": "QueryError", "kind": 4194304, "kindString": "Type alias", @@ -6418,7 +6360,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 105, + "line": 101, "character": 12 } ], @@ -6430,7 +6372,7 @@ } }, { - "id": 104, + "id": 110, "name": "QueryResult", "kind": 4194304, "kindString": "Type alias", @@ -6441,13 +6383,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 103, + "line": 99, "character": 12 } ], "typeParameter": [ { - "id": 105, + "id": 111, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -6458,7 +6400,7 @@ "type": "conditional", "checkType": { "type": "reference", - "id": 105, + "id": 111, "name": "T" }, "extendsType": { @@ -6484,7 +6426,7 @@ } }, { - "id": 60, + "id": 70, "name": "SupabaseClientOptions", "kind": 4194304, "kindString": "Type alias", @@ -6498,7 +6440,7 @@ ], "typeParameter": [ { - "id": 80, + "id": 90, "name": "SchemaName", "kind": 131072, "kindString": "Type parameter", @@ -6508,14 +6450,14 @@ "type": { "type": "reflection", "declaration": { - "id": 61, + "id": 71, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 65, + "id": 75, "name": "auth", "kind": 1024, "kindString": "Property", @@ -6532,14 +6474,14 @@ "type": { "type": "reflection", "declaration": { - "id": 66, + "id": 76, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 67, + "id": 77, "name": "autoRefreshToken", "kind": 1024, "kindString": "Property", @@ -6562,7 +6504,7 @@ } }, { - "id": 73, + "id": 83, "name": "debug", "kind": 1024, "kindString": "Property", @@ -6587,13 +6529,13 @@ }, "objectType": { "type": "reference", - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions" } } }, { - "id": 70, + "id": 80, "name": "detectSessionInUrl", "kind": 1024, "kindString": "Property", @@ -6616,7 +6558,7 @@ } }, { - "id": 72, + "id": 82, "name": "flowType", "kind": 1024, "kindString": "Property", @@ -6641,13 +6583,13 @@ }, "objectType": { "type": "reference", - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions" } } }, { - "id": 74, + "id": 84, "name": "lock", "kind": 1024, "kindString": "Property", @@ -6678,13 +6620,13 @@ }, "objectType": { "type": "reference", - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions" } } }, { - "id": 69, + "id": 79, "name": "persistSession", "kind": 1024, "kindString": "Property", @@ -6707,7 +6649,7 @@ } }, { - "id": 71, + "id": 81, "name": "storage", "kind": 1024, "kindString": "Property", @@ -6732,13 +6674,13 @@ }, "objectType": { "type": "reference", - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions" } } }, { - "id": 68, + "id": 78, "name": "storageKey", "kind": 1024, "kindString": "Property", @@ -6766,14 +6708,14 @@ "title": "Properties", "kind": 1024, "children": [ - 67, - 73, - 70, - 72, - 74, - 69, - 71, - 68 + 77, + 83, + 80, + 82, + 84, + 79, + 81, + 78 ] } ], @@ -6788,7 +6730,7 @@ } }, { - "id": 62, + "id": 72, "name": "db", "kind": 1024, "kindString": "Property", @@ -6808,14 +6750,14 @@ "type": { "type": "reflection", "declaration": { - "id": 63, + "id": 73, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 64, + "id": 74, "name": "schema", "kind": 1024, "kindString": "Property", @@ -6831,7 +6773,7 @@ ], "type": { "type": "reference", - "id": 80, + "id": 90, "name": "SchemaName", "dereferenced": {} } @@ -6842,7 +6784,7 @@ "title": "Properties", "kind": 1024, "children": [ - 64 + 74 ] } ], @@ -6857,7 +6799,7 @@ } }, { - "id": 76, + "id": 86, "name": "global", "kind": 1024, "kindString": "Property", @@ -6874,14 +6816,14 @@ "type": { "type": "reflection", "declaration": { - "id": 77, + "id": 87, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 78, + "id": 88, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -6900,10 +6842,10 @@ ], "type": { "type": "reference", - "id": 59, + "id": 69, "name": "Fetch", "dereferenced": { - "id": 59, + "id": 69, "name": "Fetch", "kind": 4194304, "kindString": "Type alias", @@ -6919,7 +6861,7 @@ "type": "query", "queryType": { "type": "reference", - "id": 18, + "id": 28, "qualifiedName": "fetch", "package": "typescript", "name": "fetch" @@ -6929,7 +6871,7 @@ } }, { - "id": 79, + "id": 89, "name": "headers", "kind": 1024, "kindString": "Property", @@ -6969,8 +6911,8 @@ "title": "Properties", "kind": 1024, "children": [ - 78, - 79 + 88, + 89 ] } ], @@ -6985,7 +6927,7 @@ } }, { - "id": 75, + "id": 85, "name": "realtime", "kind": 1024, "kindString": "Property", @@ -7015,10 +6957,10 @@ "title": "Properties", "kind": 1024, "children": [ - 65, - 62, - 76, - 75 + 75, + 72, + 86, + 85 ] } ], @@ -7038,24 +6980,24 @@ "title": "Interfaces", "kind": 256, "children": [ - 58 + 68 ] }, { "title": "Type Aliases", "kind": 4194304, "children": [ - 59, - 95, + 69, + 101, + 97, + 105, 91, - 99, - 81, - 86, - 94, - 106, + 96, + 100, + 112, + 116, 110, - 104, - 60 + 70 ] } ], @@ -7068,14 +7010,14 @@ ] }, { - "id": 111, + "id": 117, "name": "lib/version", "kind": 2, "kindString": "Module", "flags": {}, "children": [ { - "id": 112, + "id": 118, "name": "version", "kind": 32, "kindString": "Variable", @@ -7101,7 +7043,7 @@ "title": "Variables", "kind": 32, "children": [ - 112 + 118 ] } ], @@ -7121,1160 +7063,25 @@ "children": [ 1, 10, - 14, - 43, - 57, - 111 + 24, + 53, + 67, + 117 ] } ] }, { "id": 0, - "name": "@supabase/gotrue-js", + "name": "@supabase/auth-js", "kind": 1, "kindString": "Project", "flags": {}, "originalName": "", "children": [ - { - "id": 1017, - "name": "AuthApiError", - "kind": 128, - "kindString": "Class", - "flags": {}, - "children": [ - { - "id": 1018, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 19, - "character": 2 - } - ], - "signatures": [ - { - "id": 1019, - "name": "new AuthApiError", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 1020, - "name": "message", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1021, - "name": "status", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "type": { - "type": "reference", - "id": 1017, - "name": "AuthApiError" - }, - "overwrites": { - "type": "reference", - "id": 1012, - "name": "AuthError.constructor" - } - } - ], - "overwrites": { - "type": "reference", - "id": 1011, - "name": "AuthError.constructor" - } - }, - { - "id": 1022, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 17, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "overwrites": { - "type": "reference", - "id": 1015, - "name": "AuthError.status" - } - }, - { - "id": 1023, - "name": "toJSON", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 25, - "character": 2 - } - ], - "signatures": [ - { - "id": 1024, - "name": "toJSON", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reflection", - "declaration": { - "id": 1025, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 1027, - "name": "message", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 28, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 1026, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 27, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 1028, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 29, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "..." - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 1027, - 1026, - 1028 - ] - } - ] - } - } - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 1018 - ] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 1022 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 1023 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 16, - "character": 13 - } - ], - "extendedTypes": [ - { - "type": "reference", - "id": 1010, - "name": "AuthError" - } - ] - }, - { - "id": 1010, - "name": "AuthError", - "kind": 128, - "kindString": "Class", - "flags": {}, - "children": [ - { - "id": 1011, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 5, - "character": 2 - } - ], - "signatures": [ - { - "id": 1012, - "name": "new AuthError", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 1013, - "name": "message", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1014, - "name": "status", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "type": { - "type": "reference", - "id": 1010, - "name": "AuthError" - }, - "overwrites": { - "type": "reference", - "name": "Error.constructor" - } - } - ], - "overwrites": { - "type": "reference", - "name": "Error.constructor" - } - }, - { - "id": 1015, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 2, - "character": 2 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "number" - } - ] - } - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 1011 - ] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 1015 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 1, - "character": 13 - } - ], - "extendedTypes": [ - { - "type": "reference", - "qualifiedName": "Error", - "package": "typescript", - "name": "Error" - } - ], - "extendedBy": [ - { - "type": "reference", - "id": 1017, - "name": "AuthApiError" - }, - { - "type": "reference", - "id": 1030, - "name": "AuthUnknownError" - }, - { - "type": "reference", - "id": 1038, - "name": "CustomAuthError" - } - ] - }, - { - "id": 1090, - "name": "AuthImplicitGrantRedirectError", - "kind": 128, - "kindString": "Class", - "flags": {}, - "children": [ - { - "id": 1091, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 86, - "character": 2 - } - ], - "signatures": [ - { - "id": 1092, - "name": "new AuthImplicitGrantRedirectError", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 1093, - "name": "message", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1094, - "name": "details", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reflection", - "declaration": { - "id": 1095, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 1097, - "name": "code", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 86, - "character": 57 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1096, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 86, - "character": 42 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 1097, - 1096 - ] - } - ] - } - } - ] - }, - "defaultValue": "null" - } - ], - "type": { - "type": "reference", - "id": 1090, - "name": "AuthImplicitGrantRedirectError" - }, - "overwrites": { - "type": "reference", - "id": 1040, - "name": "CustomAuthError.constructor" - } - } - ], - "overwrites": { - "type": "reference", - "id": 1039, - "name": "CustomAuthError.constructor" - } - }, - { - "id": 1098, - "name": "details", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 85, - "character": 2 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reflection", - "declaration": { - "id": 1099, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 1101, - "name": "code", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 85, - "character": 28 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1100, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 85, - "character": 13 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 1101, - 1100 - ] - } - ] - } - } - ] - }, - "defaultValue": "null" - }, - { - "id": 1112, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 49, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "id": 1044, - "name": "CustomAuthError.name" - } - }, - { - "id": 1113, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 50, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "inheritedFrom": { - "type": "reference", - "id": 1045, - "name": "CustomAuthError.status" - } - }, - { - "id": 1102, - "name": "toJSON", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 91, - "character": 2 - } - ], - "signatures": [ - { - "id": 1103, - "name": "toJSON", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reflection", - "declaration": { - "id": 1104, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 1108, - "name": "details", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 96, - "character": 6 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reflection", - "declaration": { - "id": 1109, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 1111, - "name": "code", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 85, - "character": 28 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1110, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 85, - "character": 13 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 1111, - 1110 - ] - } - ] - } - } - ] - }, - "defaultValue": "..." - }, - { - "id": 1106, - "name": "message", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 94, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 1105, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 93, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 1107, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 95, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "..." - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 1108, - 1106, - 1105, - 1107 - ] - } - ] - } - }, - "overwrites": { - "type": "reference", - "id": 1047, - "name": "CustomAuthError.toJSON" - } - } - ], - "overwrites": { - "type": "reference", - "id": 1046, - "name": "CustomAuthError.toJSON" - } - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 1091 - ] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 1098, - 1112, - 1113 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 1102 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 84, - "character": 13 - } - ], - "extendedTypes": [ - { - "type": "reference", - "id": 1038, - "name": "CustomAuthError" - } - ] - }, - { - "id": 1077, - "name": "AuthInvalidCredentialsError", - "kind": 128, - "kindString": "Class", - "flags": {}, - "children": [ - { - "id": 1078, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 79, - "character": 2 - } - ], - "signatures": [ - { - "id": 1079, - "name": "new AuthInvalidCredentialsError", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 1080, - "name": "message", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "id": 1077, - "name": "AuthInvalidCredentialsError" - }, - "overwrites": { - "type": "reference", - "id": 1040, - "name": "CustomAuthError.constructor" - } - } - ], - "overwrites": { - "type": "reference", - "id": 1039, - "name": "CustomAuthError.constructor" - } - }, - { - "id": 1081, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 49, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "id": 1044, - "name": "CustomAuthError.name" - } - }, - { - "id": 1082, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 50, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "inheritedFrom": { - "type": "reference", - "id": 1045, - "name": "CustomAuthError.status" - } - }, - { - "id": 1083, - "name": "toJSON", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 57, - "character": 2 - } - ], - "signatures": [ - { - "id": 1084, - "name": "toJSON", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reflection", - "declaration": { - "id": 1085, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 1087, - "name": "message", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 60, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 1086, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 59, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 1088, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 61, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "..." - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 1087, - 1086, - 1088 - ] - } - ] - } - }, - "inheritedFrom": { - "type": "reference", - "id": 1047, - "name": "CustomAuthError.toJSON" - } - } - ], - "inheritedFrom": { - "type": "reference", - "id": 1046, - "name": "CustomAuthError.toJSON" - } - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 1078 - ] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 1081, - 1082 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 1083 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 78, - "character": 13 - } - ], - "extendedTypes": [ - { - "type": "reference", - "id": 1038, - "name": "CustomAuthError" - } - ] - }, { "id": 1065, - "name": "AuthInvalidTokenResponseError", + "name": "AuthApiError", "kind": 128, "kindString": "Class", "flags": {}, @@ -8288,60 +7095,61 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 73, + "line": 21, "character": 2 } ], "signatures": [ { "id": 1067, - "name": "new AuthInvalidTokenResponseError", + "name": "new AuthApiError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, + "parameters": [ + { + "id": 1068, + "name": "message", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1069, + "name": "status", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], "type": { "type": "reference", "id": 1065, - "name": "AuthInvalidTokenResponseError" + "name": "AuthApiError" }, "overwrites": { "type": "reference", - "id": 1040, - "name": "CustomAuthError.constructor" + "id": 1060, + "name": "AuthError.constructor" } } ], "overwrites": { "type": "reference", - "id": 1039, - "name": "CustomAuthError.constructor" + "id": 1059, + "name": "AuthError.constructor" } }, { - "id": 1068, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 49, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "id": 1044, - "name": "CustomAuthError.name" - } - }, - { - "id": 1069, + "id": 1070, "name": "status", "kind": 1024, "kindString": "Property", @@ -8349,7 +7157,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 50, + "line": 19, "character": 2 } ], @@ -8357,14 +7165,14 @@ "type": "intrinsic", "name": "number" }, - "inheritedFrom": { + "overwrites": { "type": "reference", - "id": 1045, - "name": "CustomAuthError.status" + "id": 1063, + "name": "AuthError.status" } }, { - "id": 1070, + "id": 1071, "name": "toJSON", "kind": 2048, "kindString": "Method", @@ -8372,13 +7180,13 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 57, + "line": 27, "character": 2 } ], "signatures": [ { - "id": 1071, + "id": 1072, "name": "toJSON", "kind": 4096, "kindString": "Call signature", @@ -8386,14 +7194,14 @@ "type": { "type": "reflection", "declaration": { - "id": 1072, + "id": 1073, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 1074, + "id": 1075, "name": "message", "kind": 1024, "kindString": "Property", @@ -8401,7 +7209,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 60, + "line": 30, "character": 6 } ], @@ -8412,7 +7220,7 @@ "defaultValue": "..." }, { - "id": 1073, + "id": 1074, "name": "name", "kind": 1024, "kindString": "Property", @@ -8420,7 +7228,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 59, + "line": 29, "character": 6 } ], @@ -8431,7 +7239,7 @@ "defaultValue": "..." }, { - "id": 1075, + "id": 1076, "name": "status", "kind": 1024, "kindString": "Property", @@ -8439,7 +7247,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 61, + "line": 31, "character": 6 } ], @@ -8455,26 +7263,16 @@ "title": "Properties", "kind": 1024, "children": [ + 1075, 1074, - 1073, - 1075 + 1076 ] } ] } - }, - "inheritedFrom": { - "type": "reference", - "id": 1047, - "name": "CustomAuthError.toJSON" } } - ], - "inheritedFrom": { - "type": "reference", - "id": 1046, - "name": "CustomAuthError.toJSON" - } + ] } ], "groups": [ @@ -8489,42 +7287,41 @@ "title": "Properties", "kind": 1024, "children": [ - 1068, - 1069 + 1070 ] }, { "title": "Methods", "kind": 2048, "children": [ - 1070 + 1071 ] } ], "sources": [ { "fileName": "src/lib/errors.ts", - "line": 72, + "line": 18, "character": 13 } ], "extendedTypes": [ { "type": "reference", - "id": 1038, - "name": "CustomAuthError" + "id": 1058, + "name": "AuthError" } ] }, { - "id": 1115, - "name": "AuthPKCEGrantCodeExchangeError", + "id": 1058, + "name": "AuthError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 1116, + "id": 1059, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -8532,20 +7329,20 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 103, + "line": 7, "character": 2 } ], "signatures": [ { - "id": 1117, - "name": "new AuthPKCEGrantCodeExchangeError", + "id": 1060, + "name": "new AuthError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 1118, + "id": 1061, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -8556,7 +7353,153 @@ } }, { - "id": 1119, + "id": 1062, + "name": "status", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "reference", + "id": 1058, + "name": "AuthError" + }, + "overwrites": { + "type": "reference", + "name": "Error.constructor" + } + } + ], + "overwrites": { + "type": "reference", + "name": "Error.constructor" + } + }, + { + "id": 1063, + "name": "status", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 4, + "character": 2 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 1059 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 1063 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 3, + "character": 13 + } + ], + "extendedTypes": [ + { + "type": "reference", + "qualifiedName": "Error", + "package": "typescript", + "name": "Error" + } + ], + "extendedBy": [ + { + "type": "reference", + "id": 1065, + "name": "AuthApiError" + }, + { + "type": "reference", + "id": 1078, + "name": "AuthUnknownError" + }, + { + "type": "reference", + "id": 1086, + "name": "CustomAuthError" + } + ] + }, + { + "id": 1138, + "name": "AuthImplicitGrantRedirectError", + "kind": 128, + "kindString": "Class", + "flags": {}, + "children": [ + { + "id": 1139, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 88, + "character": 2 + } + ], + "signatures": [ + { + "id": 1140, + "name": "new AuthImplicitGrantRedirectError", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "parameters": [ + { + "id": 1141, + "name": "message", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1142, "name": "details", "kind": 32768, "kindString": "Parameter", @@ -8571,14 +7514,14 @@ { "type": "reflection", "declaration": { - "id": 1120, + "id": 1143, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 1122, + "id": 1145, "name": "code", "kind": 1024, "kindString": "Property", @@ -8586,7 +7529,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 103, + "line": 88, "character": 57 } ], @@ -8596,7 +7539,7 @@ } }, { - "id": 1121, + "id": 1144, "name": "error", "kind": 1024, "kindString": "Property", @@ -8604,7 +7547,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 103, + "line": 88, "character": 42 } ], @@ -8619,8 +7562,8 @@ "title": "Properties", "kind": 1024, "children": [ - 1122, - 1121 + 1145, + 1144 ] } ] @@ -8633,24 +7576,24 @@ ], "type": { "type": "reference", - "id": 1115, - "name": "AuthPKCEGrantCodeExchangeError" + "id": 1138, + "name": "AuthImplicitGrantRedirectError" }, "overwrites": { "type": "reference", - "id": 1040, + "id": 1088, "name": "CustomAuthError.constructor" } } ], "overwrites": { "type": "reference", - "id": 1039, + "id": 1087, "name": "CustomAuthError.constructor" } }, { - "id": 1123, + "id": 1146, "name": "details", "kind": 1024, "kindString": "Property", @@ -8658,7 +7601,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 102, + "line": 87, "character": 2 } ], @@ -8672,14 +7615,14 @@ { "type": "reflection", "declaration": { - "id": 1124, + "id": 1147, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 1126, + "id": 1149, "name": "code", "kind": 1024, "kindString": "Property", @@ -8687,7 +7630,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 102, + "line": 87, "character": 28 } ], @@ -8697,7 +7640,7 @@ } }, { - "id": 1125, + "id": 1148, "name": "error", "kind": 1024, "kindString": "Property", @@ -8705,7 +7648,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 102, + "line": 87, "character": 13 } ], @@ -8720,8 +7663,8 @@ "title": "Properties", "kind": 1024, "children": [ - 1126, - 1125 + 1149, + 1148 ] } ] @@ -8732,7 +7675,7 @@ "defaultValue": "null" }, { - "id": 1137, + "id": 1160, "name": "name", "kind": 1024, "kindString": "Property", @@ -8740,7 +7683,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 49, + "line": 51, "character": 2 } ], @@ -8750,12 +7693,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 1044, + "id": 1092, "name": "CustomAuthError.name" } }, { - "id": 1138, + "id": 1161, "name": "status", "kind": 1024, "kindString": "Property", @@ -8763,7 +7706,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 50, + "line": 52, "character": 2 } ], @@ -8773,12 +7716,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 1045, + "id": 1093, "name": "CustomAuthError.status" } }, { - "id": 1127, + "id": 1150, "name": "toJSON", "kind": 2048, "kindString": "Method", @@ -8786,13 +7729,13 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 108, + "line": 93, "character": 2 } ], "signatures": [ { - "id": 1128, + "id": 1151, "name": "toJSON", "kind": 4096, "kindString": "Call signature", @@ -8800,14 +7743,14 @@ "type": { "type": "reflection", "declaration": { - "id": 1129, + "id": 1152, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 1133, + "id": 1156, "name": "details", "kind": 1024, "kindString": "Property", @@ -8815,7 +7758,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 113, + "line": 98, "character": 6 } ], @@ -8829,14 +7772,14 @@ { "type": "reflection", "declaration": { - "id": 1134, + "id": 1157, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 1136, + "id": 1159, "name": "code", "kind": 1024, "kindString": "Property", @@ -8844,7 +7787,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 102, + "line": 87, "character": 28 } ], @@ -8854,7 +7797,7 @@ } }, { - "id": 1135, + "id": 1158, "name": "error", "kind": 1024, "kindString": "Property", @@ -8862,7 +7805,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 102, + "line": 87, "character": 13 } ], @@ -8877,8 +7820,8 @@ "title": "Properties", "kind": 1024, "children": [ - 1136, - 1135 + 1159, + 1158 ] } ] @@ -8889,7 +7832,7 @@ "defaultValue": "..." }, { - "id": 1131, + "id": 1154, "name": "message", "kind": 1024, "kindString": "Property", @@ -8897,7 +7840,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 111, + "line": 96, "character": 6 } ], @@ -8908,7 +7851,7 @@ "defaultValue": "..." }, { - "id": 1130, + "id": 1153, "name": "name", "kind": 1024, "kindString": "Property", @@ -8916,7 +7859,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 110, + "line": 95, "character": 6 } ], @@ -8927,11 +7870,991 @@ "defaultValue": "..." }, { - "id": 1132, + "id": 1155, "name": "status", "kind": 1024, "kindString": "Property", "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 97, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "..." + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 1156, + 1154, + 1153, + 1155 + ] + } + ] + } + }, + "overwrites": { + "type": "reference", + "id": 1095, + "name": "CustomAuthError.toJSON" + } + } + ], + "overwrites": { + "type": "reference", + "id": 1094, + "name": "CustomAuthError.toJSON" + } + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 1139 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 1146, + 1160, + 1161 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 1150 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 86, + "character": 13 + } + ], + "extendedTypes": [ + { + "type": "reference", + "id": 1086, + "name": "CustomAuthError" + } + ] + }, + { + "id": 1125, + "name": "AuthInvalidCredentialsError", + "kind": 128, + "kindString": "Class", + "flags": {}, + "children": [ + { + "id": 1126, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 81, + "character": 2 + } + ], + "signatures": [ + { + "id": 1127, + "name": "new AuthInvalidCredentialsError", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "parameters": [ + { + "id": 1128, + "name": "message", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "id": 1125, + "name": "AuthInvalidCredentialsError" + }, + "overwrites": { + "type": "reference", + "id": 1088, + "name": "CustomAuthError.constructor" + } + } + ], + "overwrites": { + "type": "reference", + "id": 1087, + "name": "CustomAuthError.constructor" + } + }, + { + "id": 1129, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 51, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "id": 1092, + "name": "CustomAuthError.name" + } + }, + { + "id": 1130, + "name": "status", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 52, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "id": 1093, + "name": "CustomAuthError.status" + } + }, + { + "id": 1131, + "name": "toJSON", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 59, + "character": 2 + } + ], + "signatures": [ + { + "id": 1132, + "name": "toJSON", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 1133, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 1135, + "name": "message", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 62, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "..." + }, + { + "id": 1134, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 61, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "..." + }, + { + "id": 1136, + "name": "status", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 63, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "..." + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 1135, + 1134, + 1136 + ] + } + ] + } + }, + "inheritedFrom": { + "type": "reference", + "id": 1095, + "name": "CustomAuthError.toJSON" + } + } + ], + "inheritedFrom": { + "type": "reference", + "id": 1094, + "name": "CustomAuthError.toJSON" + } + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 1126 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 1129, + 1130 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 1131 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 80, + "character": 13 + } + ], + "extendedTypes": [ + { + "type": "reference", + "id": 1086, + "name": "CustomAuthError" + } + ] + }, + { + "id": 1113, + "name": "AuthInvalidTokenResponseError", + "kind": 128, + "kindString": "Class", + "flags": {}, + "children": [ + { + "id": 1114, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 75, + "character": 2 + } + ], + "signatures": [ + { + "id": 1115, + "name": "new AuthInvalidTokenResponseError", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "type": { + "type": "reference", + "id": 1113, + "name": "AuthInvalidTokenResponseError" + }, + "overwrites": { + "type": "reference", + "id": 1088, + "name": "CustomAuthError.constructor" + } + } + ], + "overwrites": { + "type": "reference", + "id": 1087, + "name": "CustomAuthError.constructor" + } + }, + { + "id": 1116, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 51, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "id": 1092, + "name": "CustomAuthError.name" + } + }, + { + "id": 1117, + "name": "status", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 52, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "id": 1093, + "name": "CustomAuthError.status" + } + }, + { + "id": 1118, + "name": "toJSON", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 59, + "character": 2 + } + ], + "signatures": [ + { + "id": 1119, + "name": "toJSON", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 1120, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 1122, + "name": "message", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 62, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "..." + }, + { + "id": 1121, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 61, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "..." + }, + { + "id": 1123, + "name": "status", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 63, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "..." + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 1122, + 1121, + 1123 + ] + } + ] + } + }, + "inheritedFrom": { + "type": "reference", + "id": 1095, + "name": "CustomAuthError.toJSON" + } + } + ], + "inheritedFrom": { + "type": "reference", + "id": 1094, + "name": "CustomAuthError.toJSON" + } + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 1114 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 1116, + 1117 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 1118 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 74, + "character": 13 + } + ], + "extendedTypes": [ + { + "type": "reference", + "id": 1086, + "name": "CustomAuthError" + } + ] + }, + { + "id": 1163, + "name": "AuthPKCEGrantCodeExchangeError", + "kind": 128, + "kindString": "Class", + "flags": {}, + "children": [ + { + "id": 1164, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 105, + "character": 2 + } + ], + "signatures": [ + { + "id": 1165, + "name": "new AuthPKCEGrantCodeExchangeError", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "parameters": [ + { + "id": 1166, + "name": "message", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1167, + "name": "details", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reflection", + "declaration": { + "id": 1168, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 1170, + "name": "code", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 105, + "character": 57 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1169, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 105, + "character": 42 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 1170, + 1169 + ] + } + ] + } + } + ] + }, + "defaultValue": "null" + } + ], + "type": { + "type": "reference", + "id": 1163, + "name": "AuthPKCEGrantCodeExchangeError" + }, + "overwrites": { + "type": "reference", + "id": 1088, + "name": "CustomAuthError.constructor" + } + } + ], + "overwrites": { + "type": "reference", + "id": 1087, + "name": "CustomAuthError.constructor" + } + }, + { + "id": 1171, + "name": "details", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 104, + "character": 2 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reflection", + "declaration": { + "id": 1172, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 1174, + "name": "code", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 104, + "character": 28 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1173, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 104, + "character": 13 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 1174, + 1173 + ] + } + ] + } + } + ] + }, + "defaultValue": "null" + }, + { + "id": 1185, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 51, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "id": 1092, + "name": "CustomAuthError.name" + } + }, + { + "id": 1186, + "name": "status", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 52, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "id": 1093, + "name": "CustomAuthError.status" + } + }, + { + "id": 1175, + "name": "toJSON", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 110, + "character": 2 + } + ], + "signatures": [ + { + "id": 1176, + "name": "toJSON", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 1177, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 1181, + "name": "details", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 115, + "character": 6 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reflection", + "declaration": { + "id": 1182, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 1184, + "name": "code", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 104, + "character": 28 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1183, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 104, + "character": 13 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 1184, + 1183 + ] + } + ] + } + } + ] + }, + "defaultValue": "..." + }, + { + "id": 1179, + "name": "message", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 113, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "..." + }, + { + "id": 1178, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": {}, "sources": [ { "fileName": "src/lib/errors.ts", @@ -8939,6 +8862,25 @@ "character": 6 } ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "..." + }, + { + "id": 1180, + "name": "status", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 114, + "character": 6 + } + ], "type": { "type": "intrinsic", "name": "number" @@ -8951,10 +8893,10 @@ "title": "Properties", "kind": 1024, "children": [ - 1133, - 1131, - 1130, - 1132 + 1181, + 1179, + 1178, + 1180 ] } ] @@ -8962,14 +8904,14 @@ }, "overwrites": { "type": "reference", - "id": 1047, + "id": 1095, "name": "CustomAuthError.toJSON" } } ], "overwrites": { "type": "reference", - "id": 1046, + "id": 1094, "name": "CustomAuthError.toJSON" } } @@ -8979,50 +8921,50 @@ "title": "Constructors", "kind": 512, "children": [ - 1116 + 1164 ] }, { "title": "Properties", "kind": 1024, "children": [ - 1123, - 1137, - 1138 + 1171, + 1185, + 1186 ] }, { "title": "Methods", "kind": 2048, "children": [ - 1127 + 1175 ] } ], "sources": [ { "fileName": "src/lib/errors.ts", - "line": 101, + "line": 103, "character": 13 } ], "extendedTypes": [ { "type": "reference", - "id": 1038, + "id": 1086, "name": "CustomAuthError" } ] }, { - "id": 1140, + "id": 1188, "name": "AuthRetryableFetchError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 1141, + "id": 1189, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -9030,20 +8972,20 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 119, + "line": 121, "character": 2 } ], "signatures": [ { - "id": 1142, + "id": 1190, "name": "new AuthRetryableFetchError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 1143, + "id": 1191, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -9054,7 +8996,7 @@ } }, { - "id": 1144, + "id": 1192, "name": "status", "kind": 32768, "kindString": "Parameter", @@ -9067,24 +9009,24 @@ ], "type": { "type": "reference", - "id": 1140, + "id": 1188, "name": "AuthRetryableFetchError" }, "overwrites": { "type": "reference", - "id": 1040, + "id": 1088, "name": "CustomAuthError.constructor" } } ], "overwrites": { "type": "reference", - "id": 1039, + "id": 1087, "name": "CustomAuthError.constructor" } }, { - "id": 1145, + "id": 1193, "name": "name", "kind": 1024, "kindString": "Property", @@ -9092,7 +9034,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 49, + "line": 51, "character": 2 } ], @@ -9102,12 +9044,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 1044, + "id": 1092, "name": "CustomAuthError.name" } }, { - "id": 1146, + "id": 1194, "name": "status", "kind": 1024, "kindString": "Property", @@ -9115,7 +9057,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 50, + "line": 52, "character": 2 } ], @@ -9125,12 +9067,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 1045, + "id": 1093, "name": "CustomAuthError.status" } }, { - "id": 1147, + "id": 1195, "name": "toJSON", "kind": 2048, "kindString": "Method", @@ -9138,13 +9080,13 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 57, + "line": 59, "character": 2 } ], "signatures": [ { - "id": 1148, + "id": 1196, "name": "toJSON", "kind": 4096, "kindString": "Call signature", @@ -9152,14 +9094,14 @@ "type": { "type": "reflection", "declaration": { - "id": 1149, + "id": 1197, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 1151, + "id": 1199, "name": "message", "kind": 1024, "kindString": "Property", @@ -9167,7 +9109,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 60, + "line": 62, "character": 6 } ], @@ -9178,7 +9120,7 @@ "defaultValue": "..." }, { - "id": 1150, + "id": 1198, "name": "name", "kind": 1024, "kindString": "Property", @@ -9186,7 +9128,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 59, + "line": 61, "character": 6 } ], @@ -9197,7 +9139,7 @@ "defaultValue": "..." }, { - "id": 1152, + "id": 1200, "name": "status", "kind": 1024, "kindString": "Property", @@ -9205,7 +9147,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 61, + "line": 63, "character": 6 } ], @@ -9221,9 +9163,9 @@ "title": "Properties", "kind": 1024, "children": [ - 1151, - 1150, - 1152 + 1199, + 1198, + 1200 ] } ] @@ -9231,14 +9173,14 @@ }, "inheritedFrom": { "type": "reference", - "id": 1047, + "id": 1095, "name": "CustomAuthError.toJSON" } } ], "inheritedFrom": { "type": "reference", - "id": 1046, + "id": 1094, "name": "CustomAuthError.toJSON" } } @@ -9248,49 +9190,49 @@ "title": "Constructors", "kind": 512, "children": [ - 1141 + 1189 ] }, { "title": "Properties", "kind": 1024, "children": [ - 1145, - 1146 + 1193, + 1194 ] }, { "title": "Methods", "kind": 2048, "children": [ - 1147 + 1195 ] } ], "sources": [ { "fileName": "src/lib/errors.ts", - "line": 118, + "line": 120, "character": 13 } ], "extendedTypes": [ { "type": "reference", - "id": 1038, + "id": 1086, "name": "CustomAuthError" } ] }, { - "id": 1053, + "id": 1101, "name": "AuthSessionMissingError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 1054, + "id": 1102, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -9298,37 +9240,37 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 67, + "line": 69, "character": 2 } ], "signatures": [ { - "id": 1055, + "id": 1103, "name": "new AuthSessionMissingError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "type": { "type": "reference", - "id": 1053, + "id": 1101, "name": "AuthSessionMissingError" }, "overwrites": { "type": "reference", - "id": 1040, + "id": 1088, "name": "CustomAuthError.constructor" } } ], "overwrites": { "type": "reference", - "id": 1039, + "id": 1087, "name": "CustomAuthError.constructor" } }, { - "id": 1056, + "id": 1104, "name": "name", "kind": 1024, "kindString": "Property", @@ -9336,7 +9278,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 49, + "line": 51, "character": 2 } ], @@ -9346,12 +9288,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 1044, + "id": 1092, "name": "CustomAuthError.name" } }, { - "id": 1057, + "id": 1105, "name": "status", "kind": 1024, "kindString": "Property", @@ -9359,7 +9301,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 50, + "line": 52, "character": 2 } ], @@ -9369,12 +9311,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 1045, + "id": 1093, "name": "CustomAuthError.status" } }, { - "id": 1058, + "id": 1106, "name": "toJSON", "kind": 2048, "kindString": "Method", @@ -9382,13 +9324,13 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 57, + "line": 59, "character": 2 } ], "signatures": [ { - "id": 1059, + "id": 1107, "name": "toJSON", "kind": 4096, "kindString": "Call signature", @@ -9396,14 +9338,14 @@ "type": { "type": "reflection", "declaration": { - "id": 1060, + "id": 1108, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 1062, + "id": 1110, "name": "message", "kind": 1024, "kindString": "Property", @@ -9411,7 +9353,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 60, + "line": 62, "character": 6 } ], @@ -9422,7 +9364,7 @@ "defaultValue": "..." }, { - "id": 1061, + "id": 1109, "name": "name", "kind": 1024, "kindString": "Property", @@ -9430,7 +9372,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 59, + "line": 61, "character": 6 } ], @@ -9441,7 +9383,7 @@ "defaultValue": "..." }, { - "id": 1063, + "id": 1111, "name": "status", "kind": 1024, "kindString": "Property", @@ -9449,7 +9391,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 61, + "line": 63, "character": 6 } ], @@ -9465,9 +9407,9 @@ "title": "Properties", "kind": 1024, "children": [ - 1062, - 1061, - 1063 + 1110, + 1109, + 1111 ] } ] @@ -9475,14 +9417,14 @@ }, "inheritedFrom": { "type": "reference", - "id": 1047, + "id": 1095, "name": "CustomAuthError.toJSON" } } ], "inheritedFrom": { "type": "reference", - "id": 1046, + "id": 1094, "name": "CustomAuthError.toJSON" } } @@ -9492,49 +9434,49 @@ "title": "Constructors", "kind": 512, "children": [ - 1054 + 1102 ] }, { "title": "Properties", "kind": 1024, "children": [ - 1056, - 1057 + 1104, + 1105 ] }, { "title": "Methods", "kind": 2048, "children": [ - 1058 + 1106 ] } ], "sources": [ { "fileName": "src/lib/errors.ts", - "line": 66, + "line": 68, "character": 13 } ], "extendedTypes": [ { "type": "reference", - "id": 1038, + "id": 1086, "name": "CustomAuthError" } ] }, { - "id": 1030, + "id": 1078, "name": "AuthUnknownError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 1031, + "id": 1079, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -9542,20 +9484,20 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 41, + "line": 43, "character": 2 } ], "signatures": [ { - "id": 1032, + "id": 1080, "name": "new AuthUnknownError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 1033, + "id": 1081, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -9566,7 +9508,7 @@ } }, { - "id": 1034, + "id": 1082, "name": "originalError", "kind": 32768, "kindString": "Parameter", @@ -9579,24 +9521,24 @@ ], "type": { "type": "reference", - "id": 1030, + "id": 1078, "name": "AuthUnknownError" }, "overwrites": { "type": "reference", - "id": 1012, + "id": 1060, "name": "AuthError.constructor" } } ], "overwrites": { "type": "reference", - "id": 1011, + "id": 1059, "name": "AuthError.constructor" } }, { - "id": 1035, + "id": 1083, "name": "originalError", "kind": 1024, "kindString": "Property", @@ -9604,7 +9546,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 39, + "line": 41, "character": 2 } ], @@ -9614,7 +9556,7 @@ } }, { - "id": 1036, + "id": 1084, "name": "status", "kind": 1024, "kindString": "Property", @@ -9622,7 +9564,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 2, + "line": 4, "character": 2 } ], @@ -9641,7 +9583,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 1015, + "id": 1063, "name": "AuthError.status" } } @@ -9651,35 +9593,35 @@ "title": "Constructors", "kind": 512, "children": [ - 1031 + 1079 ] }, { "title": "Properties", "kind": 1024, "children": [ - 1035, - 1036 + 1083, + 1084 ] } ], "sources": [ { "fileName": "src/lib/errors.ts", - "line": 38, + "line": 40, "character": 13 } ], "extendedTypes": [ { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } ] }, { - "id": 1154, + "id": 1202, "name": "AuthWeakPasswordError", "kind": 128, "kindString": "Class", @@ -9689,7 +9631,7 @@ }, "children": [ { - "id": 1155, + "id": 1203, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -9697,20 +9639,20 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 139, + "line": 141, "character": 2 } ], "signatures": [ { - "id": 1156, + "id": 1204, "name": "new AuthWeakPasswordError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 1157, + "id": 1205, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -9721,7 +9663,7 @@ } }, { - "id": 1158, + "id": 1206, "name": "status", "kind": 32768, "kindString": "Parameter", @@ -9732,7 +9674,7 @@ } }, { - "id": 1159, + "id": 1207, "name": "reasons", "kind": 32768, "kindString": "Parameter", @@ -9748,24 +9690,24 @@ ], "type": { "type": "reference", - "id": 1154, + "id": 1202, "name": "AuthWeakPasswordError" }, "overwrites": { "type": "reference", - "id": 1040, + "id": 1088, "name": "CustomAuthError.constructor" } } ], "overwrites": { "type": "reference", - "id": 1039, + "id": 1087, "name": "CustomAuthError.constructor" } }, { - "id": 1161, + "id": 1209, "name": "name", "kind": 1024, "kindString": "Property", @@ -9773,7 +9715,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 49, + "line": 51, "character": 2 } ], @@ -9783,12 +9725,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 1044, + "id": 1092, "name": "CustomAuthError.name" } }, { - "id": 1160, + "id": 1208, "name": "reasons", "kind": 1024, "kindString": "Property", @@ -9799,7 +9741,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 137, + "line": 139, "character": 2 } ], @@ -9812,7 +9754,7 @@ } }, { - "id": 1162, + "id": 1210, "name": "status", "kind": 1024, "kindString": "Property", @@ -9820,7 +9762,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 50, + "line": 52, "character": 2 } ], @@ -9830,12 +9772,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 1045, + "id": 1093, "name": "CustomAuthError.status" } }, { - "id": 1163, + "id": 1211, "name": "toJSON", "kind": 2048, "kindString": "Method", @@ -9843,13 +9785,13 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 57, + "line": 59, "character": 2 } ], "signatures": [ { - "id": 1164, + "id": 1212, "name": "toJSON", "kind": 4096, "kindString": "Call signature", @@ -9857,14 +9799,14 @@ "type": { "type": "reflection", "declaration": { - "id": 1165, + "id": 1213, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 1167, + "id": 1215, "name": "message", "kind": 1024, "kindString": "Property", @@ -9872,7 +9814,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 60, + "line": 62, "character": 6 } ], @@ -9883,7 +9825,7 @@ "defaultValue": "..." }, { - "id": 1166, + "id": 1214, "name": "name", "kind": 1024, "kindString": "Property", @@ -9891,7 +9833,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 59, + "line": 61, "character": 6 } ], @@ -9902,7 +9844,7 @@ "defaultValue": "..." }, { - "id": 1168, + "id": 1216, "name": "status", "kind": 1024, "kindString": "Property", @@ -9910,7 +9852,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 61, + "line": 63, "character": 6 } ], @@ -9926,9 +9868,9 @@ "title": "Properties", "kind": 1024, "children": [ - 1167, - 1166, - 1168 + 1215, + 1214, + 1216 ] } ] @@ -9936,14 +9878,14 @@ }, "inheritedFrom": { "type": "reference", - "id": 1047, + "id": 1095, "name": "CustomAuthError.toJSON" } } ], "inheritedFrom": { "type": "reference", - "id": 1046, + "id": 1094, "name": "CustomAuthError.toJSON" } } @@ -9953,50 +9895,50 @@ "title": "Constructors", "kind": 512, "children": [ - 1155 + 1203 ] }, { "title": "Properties", "kind": 1024, "children": [ - 1161, - 1160, - 1162 + 1209, + 1208, + 1210 ] }, { "title": "Methods", "kind": 2048, "children": [ - 1163 + 1211 ] } ], "sources": [ { "fileName": "src/lib/errors.ts", - "line": 133, + "line": 135, "character": 13 } ], "extendedTypes": [ { "type": "reference", - "id": 1038, + "id": 1086, "name": "CustomAuthError" } ] }, { - "id": 1038, + "id": 1086, "name": "CustomAuthError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 1039, + "id": 1087, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -10004,20 +9946,20 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 51, + "line": 53, "character": 2 } ], "signatures": [ { - "id": 1040, + "id": 1088, "name": "new CustomAuthError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 1041, + "id": 1089, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -10028,7 +9970,7 @@ } }, { - "id": 1042, + "id": 1090, "name": "name", "kind": 32768, "kindString": "Parameter", @@ -10039,7 +9981,7 @@ } }, { - "id": 1043, + "id": 1091, "name": "status", "kind": 32768, "kindString": "Parameter", @@ -10052,24 +9994,24 @@ ], "type": { "type": "reference", - "id": 1038, + "id": 1086, "name": "CustomAuthError" }, "overwrites": { "type": "reference", - "id": 1012, + "id": 1060, "name": "AuthError.constructor" } } ], "overwrites": { "type": "reference", - "id": 1011, + "id": 1059, "name": "AuthError.constructor" } }, { - "id": 1044, + "id": 1092, "name": "name", "kind": 1024, "kindString": "Property", @@ -10077,7 +10019,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 49, + "line": 51, "character": 2 } ], @@ -10091,7 +10033,7 @@ } }, { - "id": 1045, + "id": 1093, "name": "status", "kind": 1024, "kindString": "Property", @@ -10099,7 +10041,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 50, + "line": 52, "character": 2 } ], @@ -10109,12 +10051,12 @@ }, "overwrites": { "type": "reference", - "id": 1015, + "id": 1063, "name": "AuthError.status" } }, { - "id": 1046, + "id": 1094, "name": "toJSON", "kind": 2048, "kindString": "Method", @@ -10122,13 +10064,13 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 57, + "line": 59, "character": 2 } ], "signatures": [ { - "id": 1047, + "id": 1095, "name": "toJSON", "kind": 4096, "kindString": "Call signature", @@ -10136,14 +10078,14 @@ "type": { "type": "reflection", "declaration": { - "id": 1048, + "id": 1096, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 1050, + "id": 1098, "name": "message", "kind": 1024, "kindString": "Property", @@ -10151,7 +10093,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 60, + "line": 62, "character": 6 } ], @@ -10162,7 +10104,7 @@ "defaultValue": "..." }, { - "id": 1049, + "id": 1097, "name": "name", "kind": 1024, "kindString": "Property", @@ -10170,7 +10112,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 59, + "line": 61, "character": 6 } ], @@ -10181,7 +10123,7 @@ "defaultValue": "..." }, { - "id": 1051, + "id": 1099, "name": "status", "kind": 1024, "kindString": "Property", @@ -10189,7 +10131,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 61, + "line": 63, "character": 6 } ], @@ -10205,9 +10147,9 @@ "title": "Properties", "kind": 1024, "children": [ - 1050, - 1049, - 1051 + 1098, + 1097, + 1099 ] } ] @@ -10222,73 +10164,73 @@ "title": "Constructors", "kind": 512, "children": [ - 1039 + 1087 ] }, { "title": "Properties", "kind": 1024, "children": [ - 1044, - 1045 + 1092, + 1093 ] }, { "title": "Methods", "kind": 2048, "children": [ - 1046 + 1094 ] } ], "sources": [ { "fileName": "src/lib/errors.ts", - "line": 48, + "line": 50, "character": 13 } ], "extendedTypes": [ { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } ], "extendedBy": [ { "type": "reference", - "id": 1053, + "id": 1101, "name": "AuthSessionMissingError" }, { "type": "reference", - "id": 1065, + "id": 1113, "name": "AuthInvalidTokenResponseError" }, { "type": "reference", - "id": 1077, + "id": 1125, "name": "AuthInvalidCredentialsError" }, { "type": "reference", - "id": 1090, + "id": 1138, "name": "AuthImplicitGrantRedirectError" }, { "type": "reference", - "id": 1115, + "id": 1163, "name": "AuthPKCEGrantCodeExchangeError" }, { "type": "reference", - "id": 1140, + "id": 1188, "name": "AuthRetryableFetchError" }, { "type": "reference", - "id": 1154, + "id": 1202, "name": "AuthWeakPasswordError" } ] @@ -10535,10 +10477,10 @@ ], "type": { "type": "reference", - "id": 966, + "id": 1012, "name": "GoTrueAdminMFAApi", "dereferenced": { - "id": 966, + "id": 1012, "name": "GoTrueAdminMFAApi", "kind": 256, "kindString": "Interface", @@ -10554,14 +10496,14 @@ }, "children": [ { - "id": 970, + "id": 1016, "name": "deleteFactor", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 971, + "id": 1017, "name": "deleteFactor", "kind": 4096, "kindString": "Call signature", @@ -10581,17 +10523,17 @@ }, "parameters": [ { - "id": 972, + "id": 1018, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 950, + "id": 996, "name": "AuthMFAAdminDeleteFactorParams", "dereferenced": { - "id": 950, + "id": 996, "name": "AuthMFAAdminDeleteFactorParams", "kind": 4194304, "kindString": "Type alias", @@ -10607,21 +10549,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 978, + "line": 1028, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 951, + "id": 997, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 952, + "id": 998, "name": "id", "kind": 1024, "kindString": "Property", @@ -10632,7 +10574,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 980, + "line": 1030, "character": 2 } ], @@ -10642,7 +10584,7 @@ } }, { - "id": 953, + "id": 999, "name": "userId", "kind": 1024, "kindString": "Property", @@ -10653,7 +10595,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 983, + "line": 1033, "character": 2 } ], @@ -10668,15 +10610,15 @@ "title": "Properties", "kind": 1024, "children": [ - 952, - 953 + 998, + 999 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 978, + "line": 1028, "character": 45 } ] @@ -10691,7 +10633,7 @@ "typeArguments": [ { "type": "reference", - "id": 941, + "id": 987, "name": "AuthMFAAdminDeleteFactorResponse" } ], @@ -10703,14 +10645,14 @@ ] }, { - "id": 967, + "id": 1013, "name": "listFactors", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 968, + "id": 1014, "name": "listFactors", "kind": 4096, "kindString": "Call signature", @@ -10720,17 +10662,17 @@ }, "parameters": [ { - "id": 969, + "id": 1015, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 963, + "id": 1009, "name": "AuthMFAAdminListFactorsParams", "dereferenced": { - "id": 963, + "id": 1009, "name": "AuthMFAAdminListFactorsParams", "kind": 4194304, "kindString": "Type alias", @@ -10746,21 +10688,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1002, + "line": 1052, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 964, + "id": 1010, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 965, + "id": 1011, "name": "userId", "kind": 1024, "kindString": "Property", @@ -10771,7 +10713,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1004, + "line": 1054, "character": 2 } ], @@ -10786,14 +10728,14 @@ "title": "Properties", "kind": 1024, "children": [ - 965 + 1011 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 1002, + "line": 1052, "character": 44 } ] @@ -10808,7 +10750,7 @@ "typeArguments": [ { "type": "reference", - "id": 954, + "id": 1000, "name": "AuthMFAAdminListFactorsResponse" } ], @@ -10825,15 +10767,15 @@ "title": "Methods", "kind": 2048, "children": [ - 970, - 967 + 1016, + 1013 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 1012, + "line": 1062, "character": 17 } ] @@ -10872,17 +10814,17 @@ "flags": {}, "type": { "type": "reference", - "id": 645, + "id": 685, "name": "AdminUserAttributes", "dereferenced": { - "id": 645, + "id": 685, "name": "AdminUserAttributes", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 647, + "id": 687, "name": "app_metadata", "kind": 1024, "kindString": "Property", @@ -10896,7 +10838,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 357, + "line": 398, "character": 2 } ], @@ -10906,7 +10848,7 @@ } }, { - "id": 650, + "id": 690, "name": "ban_duration", "kind": 1024, "kindString": "Property", @@ -10920,7 +10862,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 383, + "line": 424, "character": 2 } ], @@ -10930,7 +10872,7 @@ } }, { - "id": 654, + "id": 694, "name": "email", "kind": 1024, "kindString": "Property", @@ -10943,7 +10885,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 308, + "line": 349, "character": 2 } ], @@ -10957,7 +10899,7 @@ } }, { - "id": 648, + "id": 688, "name": "email_confirm", "kind": 1024, "kindString": "Property", @@ -10971,7 +10913,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 364, + "line": 405, "character": 2 } ], @@ -10981,7 +10923,7 @@ } }, { - "id": 653, + "id": 693, "name": "nonce", "kind": 1024, "kindString": "Property", @@ -10995,7 +10937,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 325, + "line": 366, "character": 2 } ], @@ -11009,7 +10951,7 @@ } }, { - "id": 652, + "id": 692, "name": "password", "kind": 1024, "kindString": "Property", @@ -11022,7 +10964,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 318, + "line": 359, "character": 2 } ], @@ -11036,7 +10978,7 @@ } }, { - "id": 655, + "id": 695, "name": "phone", "kind": 1024, "kindString": "Property", @@ -11049,7 +10991,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 313, + "line": 354, "character": 2 } ], @@ -11063,7 +11005,7 @@ } }, { - "id": 649, + "id": 689, "name": "phone_confirm", "kind": 1024, "kindString": "Property", @@ -11077,7 +11019,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 371, + "line": 412, "character": 2 } ], @@ -11087,7 +11029,7 @@ } }, { - "id": 651, + "id": 691, "name": "role", "kind": 1024, "kindString": "Property", @@ -11101,7 +11043,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 392, + "line": 433, "character": 2 } ], @@ -11111,7 +11053,7 @@ } }, { - "id": 646, + "id": 686, "name": "user_metadata", "kind": 1024, "kindString": "Property", @@ -11119,13 +11061,13 @@ "isOptional": true }, "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", + "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.", "text": "The `user_metadata` should be a JSON object that includes user-specific info, such as their first and last name.\n\nNote: When using the GoTrueAdminApi and wanting to modify a user's metadata,\nthis attribute is used instead of UserAttributes data.\n\n" }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 347, + "line": 388, "character": 2 } ], @@ -11140,23 +11082,23 @@ "title": "Properties", "kind": 1024, "children": [ - 647, - 650, - 654, - 648, - 653, - 652, - 655, - 649, - 651, - 646 + 687, + 690, + 694, + 688, + 693, + 692, + 695, + 689, + 691, + 686 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 336, + "line": 377, "character": 17 } ], @@ -11166,7 +11108,7 @@ "typeArguments": [ { "type": "reference", - "id": 639, + "id": 679, "name": "UserAttributes" }, { @@ -11188,7 +11130,7 @@ "typeArguments": [ { "type": "reference", - "id": 567, + "id": 607, "name": "UserResponse" } ], @@ -11244,7 +11186,7 @@ "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "If true, then the user will be soft-deleted from the auth schema.\nDefaults to false for backward compatibility.\n\nThis function should only be called on a server. Never expose your `service_role` key in the browser.\n" + "shortText": "If true, then the user will be soft-deleted (setting `deleted_at` to the current timestamp and disabling their account while preserving their data) from the auth schema.\nDefaults to false for backward compatibility.\n\nThis function should only be called on a server. Never expose your `service_role` key in the browser.\n" }, "type": { "type": "intrinsic", @@ -11258,7 +11200,7 @@ "typeArguments": [ { "type": "reference", - "id": 567, + "id": 607, "name": "UserResponse" } ], @@ -11301,10 +11243,10 @@ "flags": {}, "type": { "type": "reference", - "id": 810, + "id": 855, "name": "GenerateLinkParams", "dereferenced": { - "id": 810, + "id": 855, "name": "GenerateLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -11312,7 +11254,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 685, + "line": 733, "character": 12 } ], @@ -11320,7 +11262,7 @@ "type": "union", "types": [ { - "id": 785, + "id": 830, "name": "GenerateSignupLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -11328,21 +11270,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 642, + "line": 690, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 786, + "id": 831, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 788, + "id": 833, "name": "email", "kind": 1024, "kindString": "Property", @@ -11350,7 +11292,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 644, + "line": 692, "character": 2 } ], @@ -11360,7 +11302,7 @@ } }, { - "id": 790, + "id": 835, "name": "options", "kind": 1024, "kindString": "Property", @@ -11370,7 +11312,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 646, + "line": 694, "character": 2 } ], @@ -11379,7 +11321,7 @@ "typeArguments": [ { "type": "reference", - "id": 807, + "id": 852, "name": "GenerateLinkOptions" }, { @@ -11402,7 +11344,7 @@ } }, { - "id": 789, + "id": 834, "name": "password", "kind": 1024, "kindString": "Property", @@ -11410,7 +11352,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 645, + "line": 693, "character": 2 } ], @@ -11420,7 +11362,7 @@ } }, { - "id": 787, + "id": 832, "name": "type", "kind": 1024, "kindString": "Property", @@ -11428,7 +11370,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 643, + "line": 691, "character": 2 } ], @@ -11443,17 +11385,17 @@ "title": "Properties", "kind": 1024, "children": [ - 788, - 790, - 789, - 787 + 833, + 835, + 834, + 832 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 642, + "line": 690, "character": 39 } ] @@ -11461,7 +11403,7 @@ } }, { - "id": 791, + "id": 836, "name": "GenerateInviteOrMagiclinkParams", "kind": 4194304, "kindString": "Type alias", @@ -11469,21 +11411,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 649, + "line": 697, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 792, + "id": 837, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 794, + "id": 839, "name": "email", "kind": 1024, "kindString": "Property", @@ -11494,7 +11436,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 652, + "line": 700, "character": 2 } ], @@ -11504,7 +11446,7 @@ } }, { - "id": 795, + "id": 840, "name": "options", "kind": 1024, "kindString": "Property", @@ -11514,7 +11456,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 653, + "line": 701, "character": 2 } ], @@ -11523,7 +11465,7 @@ "typeArguments": [ { "type": "reference", - "id": 807, + "id": 852, "name": "GenerateLinkOptions" }, { @@ -11546,7 +11488,7 @@ } }, { - "id": 793, + "id": 838, "name": "type", "kind": 1024, "kindString": "Property", @@ -11554,7 +11496,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 650, + "line": 698, "character": 2 } ], @@ -11578,16 +11520,16 @@ "title": "Properties", "kind": 1024, "children": [ - 794, - 795, - 793 + 839, + 840, + 838 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 649, + "line": 697, "character": 46 } ] @@ -11595,7 +11537,7 @@ } }, { - "id": 796, + "id": 841, "name": "GenerateRecoveryLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -11603,21 +11545,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 656, + "line": 704, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 797, + "id": 842, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 799, + "id": 844, "name": "email", "kind": 1024, "kindString": "Property", @@ -11628,7 +11570,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 659, + "line": 707, "character": 2 } ], @@ -11638,7 +11580,7 @@ } }, { - "id": 800, + "id": 845, "name": "options", "kind": 1024, "kindString": "Property", @@ -11648,7 +11590,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 660, + "line": 708, "character": 2 } ], @@ -11657,7 +11599,7 @@ "typeArguments": [ { "type": "reference", - "id": 807, + "id": 852, "name": "GenerateLinkOptions" }, { @@ -11671,7 +11613,7 @@ } }, { - "id": 798, + "id": 843, "name": "type", "kind": 1024, "kindString": "Property", @@ -11679,7 +11621,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 657, + "line": 705, "character": 2 } ], @@ -11694,16 +11636,16 @@ "title": "Properties", "kind": 1024, "children": [ - 799, - 800, - 798 + 844, + 845, + 843 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 656, + "line": 704, "character": 41 } ] @@ -11711,7 +11653,7 @@ } }, { - "id": 801, + "id": 846, "name": "GenerateEmailChangeLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -11719,21 +11661,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 663, + "line": 711, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 802, + "id": 847, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 804, + "id": 849, "name": "email", "kind": 1024, "kindString": "Property", @@ -11744,7 +11686,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 666, + "line": 714, "character": 2 } ], @@ -11754,7 +11696,7 @@ } }, { - "id": 805, + "id": 850, "name": "newEmail", "kind": 1024, "kindString": "Property", @@ -11765,7 +11707,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 670, + "line": 718, "character": 2 } ], @@ -11775,7 +11717,7 @@ } }, { - "id": 806, + "id": 851, "name": "options", "kind": 1024, "kindString": "Property", @@ -11785,7 +11727,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 671, + "line": 719, "character": 2 } ], @@ -11794,7 +11736,7 @@ "typeArguments": [ { "type": "reference", - "id": 807, + "id": 852, "name": "GenerateLinkOptions" }, { @@ -11808,7 +11750,7 @@ } }, { - "id": 803, + "id": 848, "name": "type", "kind": 1024, "kindString": "Property", @@ -11816,7 +11758,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 664, + "line": 712, "character": 2 } ], @@ -11840,17 +11782,17 @@ "title": "Properties", "kind": 1024, "children": [ - 804, - 805, - 806, - 803 + 849, + 850, + 851, + 848 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 663, + "line": 711, "character": 44 } ] @@ -11868,7 +11810,7 @@ "typeArguments": [ { "type": "reference", - "id": 811, + "id": 856, "name": "GenerateLinkResponse" } ], @@ -11923,7 +11865,7 @@ "typeArguments": [ { "type": "reference", - "id": 567, + "id": 607, "name": "UserResponse" } ], @@ -12057,7 +11999,7 @@ "typeArguments": [ { "type": "reference", - "id": 567, + "id": 607, "name": "UserResponse" } ], @@ -12106,10 +12048,10 @@ }, "type": { "type": "reference", - "id": 991, + "id": 1039, "name": "PageParams", "dereferenced": { - "id": 991, + "id": 1039, "name": "PageParams", "kind": 4194304, "kindString": "Type alias", @@ -12117,21 +12059,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1060, + "line": 1121, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 992, + "id": 1040, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 993, + "id": 1041, "name": "page", "kind": 1024, "kindString": "Property", @@ -12144,7 +12086,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1062, + "line": 1123, "character": 2 } ], @@ -12154,7 +12096,7 @@ } }, { - "id": 994, + "id": 1042, "name": "perPage", "kind": 1024, "kindString": "Property", @@ -12167,7 +12109,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1064, + "line": 1125, "character": 2 } ], @@ -12182,15 +12124,15 @@ "title": "Properties", "kind": 1024, "children": [ - 993, - 994 + 1041, + 1042 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 1060, + "line": 1121, "character": 25 } ] @@ -12275,7 +12217,7 @@ "type": "array", "elementType": { "type": "reference", - "id": 616, + "id": 656, "name": "User" } } @@ -12295,7 +12237,7 @@ }, { "type": "reference", - "id": 984, + "id": 1032, "name": "Pagination" } ] @@ -12408,7 +12350,7 @@ ], "type": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } } @@ -12554,7 +12496,7 @@ }, { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } ] @@ -12627,17 +12569,17 @@ }, "type": { "type": "reference", - "id": 645, + "id": 685, "name": "AdminUserAttributes", "dereferenced": { - "id": 645, + "id": 685, "name": "AdminUserAttributes", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 647, + "id": 687, "name": "app_metadata", "kind": 1024, "kindString": "Property", @@ -12651,7 +12593,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 357, + "line": 398, "character": 2 } ], @@ -12661,7 +12603,7 @@ } }, { - "id": 650, + "id": 690, "name": "ban_duration", "kind": 1024, "kindString": "Property", @@ -12675,7 +12617,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 383, + "line": 424, "character": 2 } ], @@ -12685,7 +12627,7 @@ } }, { - "id": 654, + "id": 694, "name": "email", "kind": 1024, "kindString": "Property", @@ -12698,7 +12640,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 308, + "line": 349, "character": 2 } ], @@ -12712,7 +12654,7 @@ } }, { - "id": 648, + "id": 688, "name": "email_confirm", "kind": 1024, "kindString": "Property", @@ -12726,7 +12668,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 364, + "line": 405, "character": 2 } ], @@ -12736,7 +12678,7 @@ } }, { - "id": 653, + "id": 693, "name": "nonce", "kind": 1024, "kindString": "Property", @@ -12750,7 +12692,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 325, + "line": 366, "character": 2 } ], @@ -12764,7 +12706,7 @@ } }, { - "id": 652, + "id": 692, "name": "password", "kind": 1024, "kindString": "Property", @@ -12777,7 +12719,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 318, + "line": 359, "character": 2 } ], @@ -12791,7 +12733,7 @@ } }, { - "id": 655, + "id": 695, "name": "phone", "kind": 1024, "kindString": "Property", @@ -12804,7 +12746,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 313, + "line": 354, "character": 2 } ], @@ -12818,7 +12760,7 @@ } }, { - "id": 649, + "id": 689, "name": "phone_confirm", "kind": 1024, "kindString": "Property", @@ -12832,7 +12774,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 371, + "line": 412, "character": 2 } ], @@ -12842,7 +12784,7 @@ } }, { - "id": 651, + "id": 691, "name": "role", "kind": 1024, "kindString": "Property", @@ -12856,7 +12798,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 392, + "line": 433, "character": 2 } ], @@ -12866,7 +12808,7 @@ } }, { - "id": 646, + "id": 686, "name": "user_metadata", "kind": 1024, "kindString": "Property", @@ -12874,13 +12816,13 @@ "isOptional": true }, "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", + "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.", "text": "The `user_metadata` should be a JSON object that includes user-specific info, such as their first and last name.\n\nNote: When using the GoTrueAdminApi and wanting to modify a user's metadata,\nthis attribute is used instead of UserAttributes data.\n\n" }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 347, + "line": 388, "character": 2 } ], @@ -12895,23 +12837,23 @@ "title": "Properties", "kind": 1024, "children": [ - 647, - 650, - 654, - 648, - 653, - 652, - 655, - 649, - 651, - 646 + 687, + 690, + 694, + 688, + 693, + 692, + 695, + 689, + 691, + 686 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 336, + "line": 377, "character": 17 } ], @@ -12921,7 +12863,7 @@ "typeArguments": [ { "type": "reference", - "id": 639, + "id": 679, "name": "UserAttributes" }, { @@ -12943,7 +12885,7 @@ "typeArguments": [ { "type": "reference", - "id": 567, + "id": 607, "name": "UserResponse" } ], @@ -13009,7 +12951,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 164, + "line": 175, "character": 2 } ], @@ -13032,10 +12974,10 @@ "flags": {}, "type": { "type": "reference", - "id": 484, + "id": 490, "name": "GoTrueClientOptions", "dereferenced": { - "id": 484, + "id": 490, "name": "GoTrueClientOptions", "kind": 4194304, "kindString": "Type alias", @@ -13050,14 +12992,14 @@ "type": { "type": "reflection", "declaration": { - "id": 485, + "id": 491, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 493, + "id": 499, "name": "autoRefreshToken", "kind": 1024, "kindString": "Property", @@ -13077,7 +13019,7 @@ } }, { - "id": 498, + "id": 504, "name": "debug", "kind": 1024, "kindString": "Property", @@ -13101,7 +13043,7 @@ { "type": "reflection", "declaration": { - "id": 499, + "id": 505, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -13115,14 +13057,14 @@ ], "signatures": [ { - "id": 500, + "id": 506, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 501, + "id": 507, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -13133,7 +13075,7 @@ } }, { - "id": 502, + "id": 508, "name": "args", "kind": 32768, "kindString": "Parameter", @@ -13161,7 +13103,7 @@ } }, { - "id": 492, + "id": 498, "name": "detectSessionInUrl", "kind": 1024, "kindString": "Property", @@ -13181,7 +13123,7 @@ } }, { - "id": 496, + "id": 502, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -13201,7 +13143,7 @@ } }, { - "id": 497, + "id": 503, "name": "flowType", "kind": 1024, "kindString": "Property", @@ -13217,10 +13159,10 @@ ], "type": { "type": "reference", - "id": 714, + "id": 759, "name": "AuthFlowType", "dereferenced": { - "id": 714, + "id": 759, "name": "AuthFlowType", "kind": 4194304, "kindString": "Type alias", @@ -13228,7 +13170,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 517, + "line": 565, "character": 12 } ], @@ -13249,7 +13191,7 @@ } }, { - "id": 487, + "id": 493, "name": "headers", "kind": 1024, "kindString": "Property", @@ -13266,7 +13208,7 @@ "type": { "type": "reflection", "declaration": { - "id": 488, + "id": 494, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -13279,14 +13221,14 @@ } ], "indexSignature": { - "id": 489, + "id": 495, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 490, + "id": 496, "name": "key", "kind": 32768, "flags": {}, @@ -13305,7 +13247,7 @@ } }, { - "id": 503, + "id": 509, "name": "lock", "kind": 1024, "kindString": "Property", @@ -13330,10 +13272,10 @@ ], "type": { "type": "reference", - "id": 475, + "id": 481, "name": "LockFunc", "dereferenced": { - "id": 475, + "id": 481, "name": "LockFunc", "kind": 4194304, "kindString": "Type alias", @@ -13348,7 +13290,7 @@ "type": { "type": "reflection", "declaration": { - "id": 476, + "id": 482, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -13362,7 +13304,7 @@ ], "signatures": [ { - "id": 477, + "id": 483, "name": "__type", "kind": 4096, "kindString": "Call signature", @@ -13378,7 +13320,7 @@ }, "typeParameter": [ { - "id": 483, + "id": 489, "name": "R", "kind": 131072, "kindString": "Type parameter", @@ -13387,7 +13329,7 @@ ], "parameters": [ { - "id": 478, + "id": 484, "name": "name", "kind": 32768, "kindString": "Parameter", @@ -13401,7 +13343,7 @@ } }, { - "id": 479, + "id": 485, "name": "acquireTimeout", "kind": 32768, "kindString": "Parameter", @@ -13415,7 +13357,7 @@ } }, { - "id": 480, + "id": 486, "name": "fn", "kind": 32768, "kindString": "Parameter", @@ -13426,7 +13368,7 @@ "type": { "type": "reflection", "declaration": { - "id": 481, + "id": 487, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -13440,7 +13382,7 @@ ], "signatures": [ { - "id": 482, + "id": 488, "name": "__type", "kind": 4096, "kindString": "Call signature", @@ -13450,7 +13392,7 @@ "typeArguments": [ { "type": "reference", - "id": 483, + "id": 489, "name": "R" } ], @@ -13469,7 +13411,7 @@ "typeArguments": [ { "type": "reference", - "id": 483, + "id": 489, "name": "R" } ], @@ -13485,7 +13427,7 @@ } }, { - "id": 494, + "id": 500, "name": "persistSession", "kind": 1024, "kindString": "Property", @@ -13505,7 +13447,7 @@ } }, { - "id": 495, + "id": 501, "name": "storage", "kind": 1024, "kindString": "Property", @@ -13521,10 +13463,10 @@ ], "type": { "type": "reference", - "id": 973, + "id": 1019, "name": "SupportedStorage", "dereferenced": { - "id": 973, + "id": 1019, "name": "SupportedStorage", "kind": 4194304, "kindString": "Type alias", @@ -13532,52 +13474,108 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1039, + "line": 1089, "character": 12 } ], "type": { - "type": "reference", - "typeArguments": [ + "type": "intersection", + "types": [ { "type": "reference", "typeArguments": [ { "type": "reference", - "qualifiedName": "Storage", - "package": "typescript", - "name": "Storage" - }, - { - "type": "union", - "types": [ + "typeArguments": [ { - "type": "literal", - "value": "getItem" + "type": "reference", + "qualifiedName": "Storage", + "package": "typescript", + "name": "Storage" }, { - "type": "literal", - "value": "setItem" - }, - { - "type": "literal", - "value": "removeItem" + "type": "union", + "types": [ + { + "type": "literal", + "value": "getItem" + }, + { + "type": "literal", + "value": "setItem" + }, + { + "type": "literal", + "value": "removeItem" + } + ] } - ] + ], + "qualifiedName": "Pick", + "package": "typescript", + "name": "Pick" } ], - "qualifiedName": "Pick", - "package": "typescript", - "name": "Pick" + "name": "PromisifyMethods" + }, + { + "type": "reflection", + "declaration": { + "id": 1020, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 1021, + "name": "isServer", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "If set to `true` signals to the library that the storage medium is used\non a server and the values may not be authentic, such as reading from\nrequest cookies. Implementations should not set this to true if the client\nis used on a server that reads storage information from authenticated\nsources, such as a secure database or file." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1099, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 1021 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1091, + "character": 4 + } + ] + } } - ], - "name": "PromisifyMethods" + ] } } } }, { - "id": 491, + "id": 497, "name": "storageKey", "kind": 1024, "kindString": "Property", @@ -13597,7 +13595,7 @@ } }, { - "id": 486, + "id": 492, "name": "url", "kind": 1024, "kindString": "Property", @@ -13622,17 +13620,17 @@ "title": "Properties", "kind": 1024, "children": [ - 493, + 499, + 504, 498, - 492, - 496, - 497, - 487, + 502, 503, - 494, - 495, - 491, - 486 + 493, + 509, + 500, + 501, + 497, + 492 ] } ], @@ -13669,7 +13667,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 116, + "line": 125, "character": 2 } ], @@ -13919,10 +13917,10 @@ ], "type": { "type": "reference", - "id": 966, + "id": 1012, "name": "GoTrueAdminMFAApi", "dereferenced": { - "id": 966, + "id": 1012, "name": "GoTrueAdminMFAApi", "kind": 256, "kindString": "Interface", @@ -13938,14 +13936,14 @@ }, "children": [ { - "id": 970, + "id": 1016, "name": "deleteFactor", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 971, + "id": 1017, "name": "deleteFactor", "kind": 4096, "kindString": "Call signature", @@ -13965,17 +13963,17 @@ }, "parameters": [ { - "id": 972, + "id": 1018, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 950, + "id": 996, "name": "AuthMFAAdminDeleteFactorParams", "dereferenced": { - "id": 950, + "id": 996, "name": "AuthMFAAdminDeleteFactorParams", "kind": 4194304, "kindString": "Type alias", @@ -13991,21 +13989,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 978, + "line": 1028, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 951, + "id": 997, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 952, + "id": 998, "name": "id", "kind": 1024, "kindString": "Property", @@ -14016,7 +14014,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 980, + "line": 1030, "character": 2 } ], @@ -14026,7 +14024,7 @@ } }, { - "id": 953, + "id": 999, "name": "userId", "kind": 1024, "kindString": "Property", @@ -14037,7 +14035,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 983, + "line": 1033, "character": 2 } ], @@ -14052,15 +14050,15 @@ "title": "Properties", "kind": 1024, "children": [ - 952, - 953 + 998, + 999 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 978, + "line": 1028, "character": 45 } ] @@ -14075,7 +14073,7 @@ "typeArguments": [ { "type": "reference", - "id": 941, + "id": 987, "name": "AuthMFAAdminDeleteFactorResponse" } ], @@ -14087,14 +14085,14 @@ ] }, { - "id": 967, + "id": 1013, "name": "listFactors", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 968, + "id": 1014, "name": "listFactors", "kind": 4096, "kindString": "Call signature", @@ -14104,17 +14102,17 @@ }, "parameters": [ { - "id": 969, + "id": 1015, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 963, + "id": 1009, "name": "AuthMFAAdminListFactorsParams", "dereferenced": { - "id": 963, + "id": 1009, "name": "AuthMFAAdminListFactorsParams", "kind": 4194304, "kindString": "Type alias", @@ -14130,21 +14128,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1002, + "line": 1052, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 964, + "id": 1010, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 965, + "id": 1011, "name": "userId", "kind": 1024, "kindString": "Property", @@ -14155,7 +14153,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1004, + "line": 1054, "character": 2 } ], @@ -14170,14 +14168,14 @@ "title": "Properties", "kind": 1024, "children": [ - 965 + 1011 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 1002, + "line": 1052, "character": 44 } ] @@ -14192,7 +14190,7 @@ "typeArguments": [ { "type": "reference", - "id": 954, + "id": 1000, "name": "AuthMFAAdminListFactorsResponse" } ], @@ -14209,15 +14207,15 @@ "title": "Methods", "kind": 2048, "children": [ - 970, - 967 + 1016, + 1013 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 1012, + "line": 1062, "character": 17 } ] @@ -14256,17 +14254,17 @@ "flags": {}, "type": { "type": "reference", - "id": 645, + "id": 685, "name": "AdminUserAttributes", "dereferenced": { - "id": 645, + "id": 685, "name": "AdminUserAttributes", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 647, + "id": 687, "name": "app_metadata", "kind": 1024, "kindString": "Property", @@ -14280,7 +14278,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 357, + "line": 398, "character": 2 } ], @@ -14290,7 +14288,7 @@ } }, { - "id": 650, + "id": 690, "name": "ban_duration", "kind": 1024, "kindString": "Property", @@ -14304,7 +14302,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 383, + "line": 424, "character": 2 } ], @@ -14314,7 +14312,7 @@ } }, { - "id": 654, + "id": 694, "name": "email", "kind": 1024, "kindString": "Property", @@ -14327,7 +14325,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 308, + "line": 349, "character": 2 } ], @@ -14341,7 +14339,7 @@ } }, { - "id": 648, + "id": 688, "name": "email_confirm", "kind": 1024, "kindString": "Property", @@ -14355,7 +14353,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 364, + "line": 405, "character": 2 } ], @@ -14365,7 +14363,7 @@ } }, { - "id": 653, + "id": 693, "name": "nonce", "kind": 1024, "kindString": "Property", @@ -14379,7 +14377,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 325, + "line": 366, "character": 2 } ], @@ -14393,7 +14391,7 @@ } }, { - "id": 652, + "id": 692, "name": "password", "kind": 1024, "kindString": "Property", @@ -14406,7 +14404,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 318, + "line": 359, "character": 2 } ], @@ -14420,7 +14418,7 @@ } }, { - "id": 655, + "id": 695, "name": "phone", "kind": 1024, "kindString": "Property", @@ -14433,7 +14431,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 313, + "line": 354, "character": 2 } ], @@ -14447,7 +14445,7 @@ } }, { - "id": 649, + "id": 689, "name": "phone_confirm", "kind": 1024, "kindString": "Property", @@ -14461,7 +14459,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 371, + "line": 412, "character": 2 } ], @@ -14471,7 +14469,7 @@ } }, { - "id": 651, + "id": 691, "name": "role", "kind": 1024, "kindString": "Property", @@ -14485,7 +14483,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 392, + "line": 433, "character": 2 } ], @@ -14495,7 +14493,7 @@ } }, { - "id": 646, + "id": 686, "name": "user_metadata", "kind": 1024, "kindString": "Property", @@ -14503,13 +14501,13 @@ "isOptional": true }, "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", + "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.", "text": "The `user_metadata` should be a JSON object that includes user-specific info, such as their first and last name.\n\nNote: When using the GoTrueAdminApi and wanting to modify a user's metadata,\nthis attribute is used instead of UserAttributes data.\n\n" }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 347, + "line": 388, "character": 2 } ], @@ -14524,23 +14522,23 @@ "title": "Properties", "kind": 1024, "children": [ - 647, - 650, - 654, - 648, - 653, - 652, - 655, - 649, - 651, - 646 + 687, + 690, + 694, + 688, + 693, + 692, + 695, + 689, + 691, + 686 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 336, + "line": 377, "character": 17 } ], @@ -14550,7 +14548,7 @@ "typeArguments": [ { "type": "reference", - "id": 639, + "id": 679, "name": "UserAttributes" }, { @@ -14572,7 +14570,7 @@ "typeArguments": [ { "type": "reference", - "id": 567, + "id": 607, "name": "UserResponse" } ], @@ -14628,7 +14626,7 @@ "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "If true, then the user will be soft-deleted from the auth schema.\nDefaults to false for backward compatibility.\n\nThis function should only be called on a server. Never expose your `service_role` key in the browser.\n" + "shortText": "If true, then the user will be soft-deleted (setting `deleted_at` to the current timestamp and disabling their account while preserving their data) from the auth schema.\nDefaults to false for backward compatibility.\n\nThis function should only be called on a server. Never expose your `service_role` key in the browser.\n" }, "type": { "type": "intrinsic", @@ -14642,7 +14640,7 @@ "typeArguments": [ { "type": "reference", - "id": 567, + "id": 607, "name": "UserResponse" } ], @@ -14685,10 +14683,10 @@ "flags": {}, "type": { "type": "reference", - "id": 810, + "id": 855, "name": "GenerateLinkParams", "dereferenced": { - "id": 810, + "id": 855, "name": "GenerateLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -14696,7 +14694,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 685, + "line": 733, "character": 12 } ], @@ -14704,7 +14702,7 @@ "type": "union", "types": [ { - "id": 785, + "id": 830, "name": "GenerateSignupLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -14712,21 +14710,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 642, + "line": 690, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 786, + "id": 831, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 788, + "id": 833, "name": "email", "kind": 1024, "kindString": "Property", @@ -14734,7 +14732,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 644, + "line": 692, "character": 2 } ], @@ -14744,7 +14742,7 @@ } }, { - "id": 790, + "id": 835, "name": "options", "kind": 1024, "kindString": "Property", @@ -14754,7 +14752,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 646, + "line": 694, "character": 2 } ], @@ -14763,7 +14761,7 @@ "typeArguments": [ { "type": "reference", - "id": 807, + "id": 852, "name": "GenerateLinkOptions" }, { @@ -14786,7 +14784,7 @@ } }, { - "id": 789, + "id": 834, "name": "password", "kind": 1024, "kindString": "Property", @@ -14794,7 +14792,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 645, + "line": 693, "character": 2 } ], @@ -14804,7 +14802,7 @@ } }, { - "id": 787, + "id": 832, "name": "type", "kind": 1024, "kindString": "Property", @@ -14812,7 +14810,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 643, + "line": 691, "character": 2 } ], @@ -14827,17 +14825,17 @@ "title": "Properties", "kind": 1024, "children": [ - 788, - 790, - 789, - 787 + 833, + 835, + 834, + 832 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 642, + "line": 690, "character": 39 } ] @@ -14845,7 +14843,7 @@ } }, { - "id": 791, + "id": 836, "name": "GenerateInviteOrMagiclinkParams", "kind": 4194304, "kindString": "Type alias", @@ -14853,21 +14851,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 649, + "line": 697, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 792, + "id": 837, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 794, + "id": 839, "name": "email", "kind": 1024, "kindString": "Property", @@ -14878,7 +14876,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 652, + "line": 700, "character": 2 } ], @@ -14888,7 +14886,7 @@ } }, { - "id": 795, + "id": 840, "name": "options", "kind": 1024, "kindString": "Property", @@ -14898,7 +14896,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 653, + "line": 701, "character": 2 } ], @@ -14907,7 +14905,7 @@ "typeArguments": [ { "type": "reference", - "id": 807, + "id": 852, "name": "GenerateLinkOptions" }, { @@ -14930,7 +14928,7 @@ } }, { - "id": 793, + "id": 838, "name": "type", "kind": 1024, "kindString": "Property", @@ -14938,7 +14936,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 650, + "line": 698, "character": 2 } ], @@ -14962,16 +14960,16 @@ "title": "Properties", "kind": 1024, "children": [ - 794, - 795, - 793 + 839, + 840, + 838 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 649, + "line": 697, "character": 46 } ] @@ -14979,7 +14977,7 @@ } }, { - "id": 796, + "id": 841, "name": "GenerateRecoveryLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -14987,21 +14985,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 656, + "line": 704, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 797, + "id": 842, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 799, + "id": 844, "name": "email", "kind": 1024, "kindString": "Property", @@ -15012,7 +15010,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 659, + "line": 707, "character": 2 } ], @@ -15022,7 +15020,7 @@ } }, { - "id": 800, + "id": 845, "name": "options", "kind": 1024, "kindString": "Property", @@ -15032,7 +15030,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 660, + "line": 708, "character": 2 } ], @@ -15041,7 +15039,7 @@ "typeArguments": [ { "type": "reference", - "id": 807, + "id": 852, "name": "GenerateLinkOptions" }, { @@ -15055,7 +15053,7 @@ } }, { - "id": 798, + "id": 843, "name": "type", "kind": 1024, "kindString": "Property", @@ -15063,7 +15061,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 657, + "line": 705, "character": 2 } ], @@ -15078,16 +15076,16 @@ "title": "Properties", "kind": 1024, "children": [ - 799, - 800, - 798 + 844, + 845, + 843 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 656, + "line": 704, "character": 41 } ] @@ -15095,7 +15093,7 @@ } }, { - "id": 801, + "id": 846, "name": "GenerateEmailChangeLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -15103,21 +15101,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 663, + "line": 711, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 802, + "id": 847, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 804, + "id": 849, "name": "email", "kind": 1024, "kindString": "Property", @@ -15128,7 +15126,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 666, + "line": 714, "character": 2 } ], @@ -15138,7 +15136,7 @@ } }, { - "id": 805, + "id": 850, "name": "newEmail", "kind": 1024, "kindString": "Property", @@ -15149,7 +15147,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 670, + "line": 718, "character": 2 } ], @@ -15159,7 +15157,7 @@ } }, { - "id": 806, + "id": 851, "name": "options", "kind": 1024, "kindString": "Property", @@ -15169,7 +15167,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 671, + "line": 719, "character": 2 } ], @@ -15178,7 +15176,7 @@ "typeArguments": [ { "type": "reference", - "id": 807, + "id": 852, "name": "GenerateLinkOptions" }, { @@ -15192,7 +15190,7 @@ } }, { - "id": 803, + "id": 848, "name": "type", "kind": 1024, "kindString": "Property", @@ -15200,7 +15198,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 664, + "line": 712, "character": 2 } ], @@ -15224,17 +15222,17 @@ "title": "Properties", "kind": 1024, "children": [ - 804, - 805, - 806, - 803 + 849, + 850, + 851, + 848 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 663, + "line": 711, "character": 44 } ] @@ -15252,7 +15250,7 @@ "typeArguments": [ { "type": "reference", - "id": 811, + "id": 856, "name": "GenerateLinkResponse" } ], @@ -15307,7 +15305,7 @@ "typeArguments": [ { "type": "reference", - "id": 567, + "id": 607, "name": "UserResponse" } ], @@ -15441,7 +15439,7 @@ "typeArguments": [ { "type": "reference", - "id": 567, + "id": 607, "name": "UserResponse" } ], @@ -15490,10 +15488,10 @@ }, "type": { "type": "reference", - "id": 991, + "id": 1039, "name": "PageParams", "dereferenced": { - "id": 991, + "id": 1039, "name": "PageParams", "kind": 4194304, "kindString": "Type alias", @@ -15501,21 +15499,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1060, + "line": 1121, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 992, + "id": 1040, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 993, + "id": 1041, "name": "page", "kind": 1024, "kindString": "Property", @@ -15528,7 +15526,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1062, + "line": 1123, "character": 2 } ], @@ -15538,7 +15536,7 @@ } }, { - "id": 994, + "id": 1042, "name": "perPage", "kind": 1024, "kindString": "Property", @@ -15551,7 +15549,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1064, + "line": 1125, "character": 2 } ], @@ -15566,15 +15564,15 @@ "title": "Properties", "kind": 1024, "children": [ - 993, - 994 + 1041, + 1042 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 1060, + "line": 1121, "character": 25 } ] @@ -15659,7 +15657,7 @@ "type": "array", "elementType": { "type": "reference", - "id": 616, + "id": 656, "name": "User" } } @@ -15679,7 +15677,7 @@ }, { "type": "reference", - "id": 984, + "id": 1032, "name": "Pagination" } ] @@ -15792,7 +15790,7 @@ ], "type": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } } @@ -15938,7 +15936,7 @@ }, { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } ] @@ -16011,17 +16009,17 @@ }, "type": { "type": "reference", - "id": 645, + "id": 685, "name": "AdminUserAttributes", "dereferenced": { - "id": 645, + "id": 685, "name": "AdminUserAttributes", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 647, + "id": 687, "name": "app_metadata", "kind": 1024, "kindString": "Property", @@ -16035,7 +16033,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 357, + "line": 398, "character": 2 } ], @@ -16045,7 +16043,7 @@ } }, { - "id": 650, + "id": 690, "name": "ban_duration", "kind": 1024, "kindString": "Property", @@ -16059,7 +16057,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 383, + "line": 424, "character": 2 } ], @@ -16069,7 +16067,7 @@ } }, { - "id": 654, + "id": 694, "name": "email", "kind": 1024, "kindString": "Property", @@ -16082,7 +16080,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 308, + "line": 349, "character": 2 } ], @@ -16096,7 +16094,7 @@ } }, { - "id": 648, + "id": 688, "name": "email_confirm", "kind": 1024, "kindString": "Property", @@ -16110,7 +16108,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 364, + "line": 405, "character": 2 } ], @@ -16120,7 +16118,7 @@ } }, { - "id": 653, + "id": 693, "name": "nonce", "kind": 1024, "kindString": "Property", @@ -16134,7 +16132,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 325, + "line": 366, "character": 2 } ], @@ -16148,7 +16146,7 @@ } }, { - "id": 652, + "id": 692, "name": "password", "kind": 1024, "kindString": "Property", @@ -16161,7 +16159,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 318, + "line": 359, "character": 2 } ], @@ -16175,7 +16173,7 @@ } }, { - "id": 655, + "id": 695, "name": "phone", "kind": 1024, "kindString": "Property", @@ -16188,7 +16186,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 313, + "line": 354, "character": 2 } ], @@ -16202,7 +16200,7 @@ } }, { - "id": 649, + "id": 689, "name": "phone_confirm", "kind": 1024, "kindString": "Property", @@ -16216,7 +16214,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 371, + "line": 412, "character": 2 } ], @@ -16226,7 +16224,7 @@ } }, { - "id": 651, + "id": 691, "name": "role", "kind": 1024, "kindString": "Property", @@ -16240,7 +16238,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 392, + "line": 433, "character": 2 } ], @@ -16250,7 +16248,7 @@ } }, { - "id": 646, + "id": 686, "name": "user_metadata", "kind": 1024, "kindString": "Property", @@ -16258,13 +16256,13 @@ "isOptional": true }, "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", + "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.", "text": "The `user_metadata` should be a JSON object that includes user-specific info, such as their first and last name.\n\nNote: When using the GoTrueAdminApi and wanting to modify a user's metadata,\nthis attribute is used instead of UserAttributes data.\n\n" }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 347, + "line": 388, "character": 2 } ], @@ -16279,23 +16277,23 @@ "title": "Properties", "kind": 1024, "children": [ - 647, - 650, - 654, - 648, - 653, - 652, - 655, - 649, - 651, - 646 + 687, + 690, + 694, + 688, + 693, + 692, + 695, + 689, + 691, + 686 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 336, + "line": 377, "character": 17 } ], @@ -16305,7 +16303,7 @@ "typeArguments": [ { "type": "reference", - "id": 639, + "id": 679, "name": "UserAttributes" }, { @@ -16327,7 +16325,7 @@ "typeArguments": [ { "type": "reference", - "id": 567, + "id": 607, "name": "UserResponse" } ], @@ -16391,16 +16389,16 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 120, + "line": 129, "character": 2 } ], "type": { "type": "reference", - "id": 921, + "id": 967, "name": "GoTrueMFAApi", "dereferenced": { - "id": 921, + "id": 967, "name": "GoTrueMFAApi", "kind": 256, "kindString": "Interface", @@ -16410,14 +16408,14 @@ }, "children": [ { - "id": 925, + "id": 971, "name": "challenge", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 926, + "id": 972, "name": "challenge", "kind": 4096, "kindString": "Call signature", @@ -16427,17 +16425,17 @@ }, "parameters": [ { - "id": 927, + "id": 973, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 845, + "id": 890, "name": "MFAChallengeParams", "dereferenced": { - "id": 845, + "id": 890, "name": "MFAChallengeParams", "kind": 4194304, "kindString": "Type alias", @@ -16445,21 +16443,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 762, + "line": 810, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 846, + "id": 891, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 847, + "id": 892, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -16470,7 +16468,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 764, + "line": 812, "character": 2 } ], @@ -16485,14 +16483,14 @@ "title": "Properties", "kind": 1024, "children": [ - 847 + 892 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 762, + "line": 810, "character": 33 } ] @@ -16507,7 +16505,7 @@ "typeArguments": [ { "type": "reference", - "id": 889, + "id": 935, "name": "AuthMFAChallengeResponse" } ], @@ -16519,14 +16517,14 @@ ] }, { - "id": 934, + "id": 980, "name": "challengeAndVerify", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 935, + "id": 981, "name": "challengeAndVerify", "kind": 4096, "kindString": "Call signature", @@ -16536,17 +16534,17 @@ }, "parameters": [ { - "id": 936, + "id": 982, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 848, + "id": 893, "name": "MFAChallengeAndVerifyParams", "dereferenced": { - "id": 848, + "id": 893, "name": "MFAChallengeAndVerifyParams", "kind": 4194304, "kindString": "Type alias", @@ -16554,21 +16552,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 767, + "line": 815, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 849, + "id": 894, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 851, + "id": 896, "name": "code", "kind": 1024, "kindString": "Property", @@ -16579,7 +16577,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 771, + "line": 819, "character": 2 } ], @@ -16589,7 +16587,7 @@ } }, { - "id": 850, + "id": 895, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -16600,7 +16598,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 769, + "line": 817, "character": 2 } ], @@ -16615,15 +16613,15 @@ "title": "Properties", "kind": 1024, "children": [ - 851, - 850 + 896, + 895 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 767, + "line": 815, "character": 42 } ] @@ -16638,7 +16636,7 @@ "typeArguments": [ { "type": "reference", - "id": 852, + "id": 897, "name": "AuthMFAVerifyResponse" } ], @@ -16650,14 +16648,14 @@ ] }, { - "id": 922, + "id": 968, "name": "enroll", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 923, + "id": 969, "name": "enroll", "kind": 4096, "kindString": "Call signature", @@ -16668,17 +16666,17 @@ }, "parameters": [ { - "id": 924, + "id": 970, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 832, + "id": 877, "name": "MFAEnrollParams", "dereferenced": { - "id": 832, + "id": 877, "name": "MFAEnrollParams", "kind": 4194304, "kindString": "Type alias", @@ -16686,21 +16684,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 737, + "line": 785, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 833, + "id": 878, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 834, + "id": 879, "name": "factorType", "kind": 1024, "kindString": "Property", @@ -16711,7 +16709,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 739, + "line": 787, "character": 2 } ], @@ -16721,7 +16719,7 @@ } }, { - "id": 836, + "id": 881, "name": "friendlyName", "kind": 1024, "kindString": "Property", @@ -16734,7 +16732,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 743, + "line": 791, "character": 2 } ], @@ -16744,7 +16742,7 @@ } }, { - "id": 835, + "id": 880, "name": "issuer", "kind": 1024, "kindString": "Property", @@ -16757,7 +16755,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 741, + "line": 789, "character": 2 } ], @@ -16772,16 +16770,16 @@ "title": "Properties", "kind": 1024, "children": [ - 834, - 836, - 835 + 879, + 881, + 880 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 737, + "line": 785, "character": 30 } ] @@ -16796,7 +16794,7 @@ "typeArguments": [ { "type": "reference", - "id": 865, + "id": 910, "name": "AuthMFAEnrollResponse" } ], @@ -16808,14 +16806,14 @@ ] }, { - "id": 939, + "id": 985, "name": "getAuthenticatorAssuranceLevel", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 940, + "id": 986, "name": "getAuthenticatorAssuranceLevel", "kind": 4096, "kindString": "Call signature", @@ -16829,7 +16827,7 @@ "typeArguments": [ { "type": "reference", - "id": 910, + "id": 956, "name": "AuthMFAGetAuthenticatorAssuranceLevelResponse" } ], @@ -16841,14 +16839,14 @@ ] }, { - "id": 937, + "id": 983, "name": "listFactors", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 938, + "id": 984, "name": "listFactors", "kind": 4096, "kindString": "Call signature", @@ -16875,7 +16873,7 @@ "typeArguments": [ { "type": "reference", - "id": 899, + "id": 945, "name": "AuthMFAListFactorsResponse" } ], @@ -16887,14 +16885,14 @@ ] }, { - "id": 931, + "id": 977, "name": "unenroll", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 932, + "id": 978, "name": "unenroll", "kind": 4096, "kindString": "Call signature", @@ -16904,17 +16902,17 @@ }, "parameters": [ { - "id": 933, + "id": 979, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 837, + "id": 882, "name": "MFAUnenrollParams", "dereferenced": { - "id": 837, + "id": 882, "name": "MFAUnenrollParams", "kind": 4194304, "kindString": "Type alias", @@ -16922,21 +16920,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 746, + "line": 794, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 838, + "id": 883, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 839, + "id": 884, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -16947,7 +16945,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 748, + "line": 796, "character": 2 } ], @@ -16962,14 +16960,14 @@ "title": "Properties", "kind": 1024, "children": [ - 839 + 884 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 746, + "line": 794, "character": 32 } ] @@ -16984,7 +16982,7 @@ "typeArguments": [ { "type": "reference", - "id": 880, + "id": 926, "name": "AuthMFAUnenrollResponse" } ], @@ -16996,14 +16994,14 @@ ] }, { - "id": 928, + "id": 974, "name": "verify", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 929, + "id": 975, "name": "verify", "kind": 4096, "kindString": "Call signature", @@ -17013,17 +17011,17 @@ }, "parameters": [ { - "id": 930, + "id": 976, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 840, + "id": 885, "name": "MFAVerifyParams", "dereferenced": { - "id": 840, + "id": 885, "name": "MFAVerifyParams", "kind": 4194304, "kindString": "Type alias", @@ -17031,21 +17029,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 751, + "line": 799, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 841, + "id": 886, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 843, + "id": 888, "name": "challengeId", "kind": 1024, "kindString": "Property", @@ -17056,7 +17054,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 756, + "line": 804, "character": 2 } ], @@ -17066,7 +17064,7 @@ } }, { - "id": 844, + "id": 889, "name": "code", "kind": 1024, "kindString": "Property", @@ -17077,7 +17075,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 759, + "line": 807, "character": 2 } ], @@ -17087,7 +17085,7 @@ } }, { - "id": 842, + "id": 887, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -17098,7 +17096,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 753, + "line": 801, "character": 2 } ], @@ -17113,16 +17111,16 @@ "title": "Properties", "kind": 1024, "children": [ - 843, - 844, - 842 + 888, + 889, + 887 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 751, + "line": 799, "character": 30 } ] @@ -17137,7 +17135,7 @@ "typeArguments": [ { "type": "reference", - "id": 852, + "id": 897, "name": "AuthMFAVerifyResponse" } ], @@ -17154,20 +17152,20 @@ "title": "Methods", "kind": 2048, "children": [ - 925, - 934, - 922, - 939, - 937, - 931, - 928 + 971, + 980, + 968, + 985, + 983, + 977, + 974 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 899, + "line": 949, "character": 17 } ] @@ -17175,7 +17173,7 @@ } }, { - "id": 139, + "id": 143, "name": "exchangeCodeForSession", "kind": 2048, "kindString": "Method", @@ -17183,13 +17181,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 503, + "line": 571, "character": 8 } ], "signatures": [ { - "id": 140, + "id": 144, "name": "exchangeCodeForSession", "kind": 4096, "kindString": "Call signature", @@ -17199,7 +17197,7 @@ }, "parameters": [ { - "id": 141, + "id": 145, "name": "authCode", "kind": 32768, "kindString": "Parameter", @@ -17215,7 +17213,7 @@ "typeArguments": [ { "type": "reference", - "id": 532, + "id": 557, "name": "AuthTokenResponse" } ], @@ -17227,7 +17225,7 @@ ] }, { - "id": 178, + "id": 182, "name": "getSession", "kind": 2048, "kindString": "Method", @@ -17235,19 +17233,20 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 849, + "line": 926, "character": 8 } ], "signatures": [ { - "id": 179, + "id": 183, "name": "getSession", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Returns the session, refreshing it if necessary.\nThe session returned can be null if the session is not detected which can happen in the event a user is not signed-in or has logged out." + "shortText": "Returns the session, refreshing it if necessary.", + "text": "The session returned can be null if the session is not detected which can happen in the event a user is not signed-in or has logged out.\n\n**IMPORTANT:** This method loads values directly from the storage attached\nto the client. If that storage is based on request cookies for example,\nthe values in it may not be authentic and therefore it's strongly advised\nagainst using this method and its results in such circumstances. A warning\nwill be emitted if this is detected. Use {@link #getUser()} instead.\n" }, "type": { "type": "reference", @@ -17258,14 +17257,14 @@ { "type": "reflection", "declaration": { - "id": 180, + "id": 184, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 181, + "id": 185, "name": "data", "kind": 1024, "kindString": "Property", @@ -17273,21 +17272,21 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 940, + "line": 1028, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 182, + "id": 186, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 183, + "id": 187, "name": "session", "kind": 1024, "kindString": "Property", @@ -17295,13 +17294,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 941, + "line": 1029, "character": 14 } ], "type": { "type": "reference", - "id": 578, + "id": 618, "name": "Session" } } @@ -17311,7 +17310,7 @@ "title": "Properties", "kind": 1024, "children": [ - 183 + 187 ] } ] @@ -17319,7 +17318,7 @@ } }, { - "id": 184, + "id": 188, "name": "error", "kind": 1024, "kindString": "Property", @@ -17327,7 +17326,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 943, + "line": 1031, "character": 12 } ], @@ -17342,8 +17341,8 @@ "title": "Properties", "kind": 1024, "children": [ - 181, - 184 + 185, + 188 ] } ] @@ -17352,14 +17351,14 @@ { "type": "reflection", "declaration": { - "id": 185, + "id": 189, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 186, + "id": 190, "name": "data", "kind": 1024, "kindString": "Property", @@ -17367,21 +17366,21 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 946, + "line": 1034, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 187, + "id": 191, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 188, + "id": 192, "name": "session", "kind": 1024, "kindString": "Property", @@ -17389,7 +17388,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 947, + "line": 1035, "character": 14 } ], @@ -17404,7 +17403,7 @@ "title": "Properties", "kind": 1024, "children": [ - 188 + 192 ] } ] @@ -17412,7 +17411,7 @@ } }, { - "id": 189, + "id": 193, "name": "error", "kind": 1024, "kindString": "Property", @@ -17420,13 +17419,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 949, + "line": 1037, "character": 12 } ], "type": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } } @@ -17436,8 +17435,8 @@ "title": "Properties", "kind": 1024, "children": [ - 186, - 189 + 190, + 193 ] } ] @@ -17446,14 +17445,14 @@ { "type": "reflection", "declaration": { - "id": 190, + "id": 194, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 191, + "id": 195, "name": "data", "kind": 1024, "kindString": "Property", @@ -17461,21 +17460,21 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 952, + "line": 1040, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 192, + "id": 196, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 193, + "id": 197, "name": "session", "kind": 1024, "kindString": "Property", @@ -17483,7 +17482,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 953, + "line": 1041, "character": 14 } ], @@ -17498,7 +17497,7 @@ "title": "Properties", "kind": 1024, "children": [ - 193 + 197 ] } ] @@ -17506,7 +17505,7 @@ } }, { - "id": 194, + "id": 198, "name": "error", "kind": 1024, "kindString": "Property", @@ -17514,7 +17513,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 955, + "line": 1043, "character": 12 } ], @@ -17529,8 +17528,8 @@ "title": "Properties", "kind": 1024, "children": [ - 191, - 194 + 195, + 198 ] } ] @@ -17547,7 +17546,7 @@ ] }, { - "id": 241, + "id": 245, "name": "getUser", "kind": 2048, "kindString": "Method", @@ -17555,23 +17554,23 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1052, + "line": 1166, "character": 8 } ], "signatures": [ { - "id": 242, + "id": 246, "name": "getUser", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Gets the current user details if there is an existing session." + "shortText": "Gets the current user details if there is an existing session. This method\nperforms a network request to the Supabase Auth server, so the returned\nvalue is authentic and can be used to base authorization rules on." }, "parameters": [ { - "id": 243, + "id": 247, "name": "jwt", "kind": 32768, "kindString": "Parameter", @@ -17579,7 +17578,7 @@ "isOptional": true }, "comment": { - "shortText": "Takes in an optional access token jwt. If no jwt is provided, getUser() will attempt to get the jwt from the current session.\n" + "shortText": "Takes in an optional access token JWT. If no JWT is provided, the JWT from the current session is used.\n" }, "type": { "type": "intrinsic", @@ -17592,7 +17591,7 @@ "typeArguments": [ { "type": "reference", - "id": 567, + "id": 607, "name": "UserResponse" } ], @@ -17604,7 +17603,7 @@ ] }, { - "id": 345, + "id": 349, "name": "getUserIdentities", "kind": 2048, "kindString": "Method", @@ -17612,13 +17611,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1591, + "line": 1710, "character": 8 } ], "signatures": [ { - "id": 346, + "id": 350, "name": "getUserIdentities", "kind": 4096, "kindString": "Call signature", @@ -17635,14 +17634,14 @@ { "type": "reflection", "declaration": { - "id": 347, + "id": 351, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 348, + "id": 352, "name": "data", "kind": 1024, "kindString": "Property", @@ -17650,21 +17649,21 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1593, + "line": 1712, "character": 8 } ], "type": { "type": "reflection", "declaration": { - "id": 349, + "id": 353, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 350, + "id": 354, "name": "identities", "kind": 1024, "kindString": "Property", @@ -17672,7 +17671,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1594, + "line": 1713, "character": 10 } ], @@ -17680,7 +17679,7 @@ "type": "array", "elementType": { "type": "reference", - "id": 590, + "id": 630, "name": "UserIdentity" } } @@ -17691,7 +17690,7 @@ "title": "Properties", "kind": 1024, "children": [ - 350 + 354 ] } ] @@ -17699,7 +17698,7 @@ } }, { - "id": 351, + "id": 355, "name": "error", "kind": 1024, "kindString": "Property", @@ -17707,7 +17706,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1596, + "line": 1715, "character": 8 } ], @@ -17722,8 +17721,8 @@ "title": "Properties", "kind": 1024, "children": [ - 348, - 351 + 352, + 355 ] } ] @@ -17732,14 +17731,14 @@ { "type": "reflection", "declaration": { - "id": 352, + "id": 356, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 353, + "id": 357, "name": "data", "kind": 1024, "kindString": "Property", @@ -17747,7 +17746,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1598, + "line": 1717, "character": 8 } ], @@ -17757,7 +17756,7 @@ } }, { - "id": 354, + "id": 358, "name": "error", "kind": 1024, "kindString": "Property", @@ -17765,13 +17764,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1598, + "line": 1717, "character": 20 } ], "type": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } } @@ -17781,8 +17780,8 @@ "title": "Properties", "kind": 1024, "children": [ - 353, - 354 + 357, + 358 ] } ] @@ -17799,7 +17798,7 @@ ] }, { - "id": 126, + "id": 127, "name": "initialize", "kind": 2048, "kindString": "Method", @@ -17807,13 +17806,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 259, + "line": 278, "character": 8 } ], "signatures": [ { - "id": 127, + "id": 128, "name": "initialize", "kind": 4096, "kindString": "Call signature", @@ -17826,7 +17825,7 @@ "typeArguments": [ { "type": "reference", - "id": 974, + "id": 1022, "name": "InitializeResult" } ], @@ -17838,7 +17837,7 @@ ] }, { - "id": 355, + "id": 359, "name": "linkIdentity", "kind": 2048, "kindString": "Method", @@ -17846,13 +17845,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1615, + "line": 1734, "character": 8 } ], "signatures": [ { - "id": 356, + "id": 360, "name": "linkIdentity", "kind": 4096, "kindString": "Call signature", @@ -17862,17 +17861,17 @@ }, "parameters": [ { - "id": 357, + "id": 361, "name": "credentials", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 715, + "id": 760, "name": "SignInWithOAuthCredentials", "dereferenced": { - "id": 715, + "id": 760, "name": "SignInWithOAuthCredentials", "kind": 4194304, "kindString": "Type alias", @@ -17880,21 +17879,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 518, + "line": 566, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 716, + "id": 761, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 718, + "id": 763, "name": "options", "kind": 1024, "kindString": "Property", @@ -17904,21 +17903,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 521, + "line": 569, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 719, + "id": 764, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 722, + "id": 767, "name": "queryParams", "kind": 1024, "kindString": "Property", @@ -17931,14 +17930,14 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 527, + "line": 575, "character": 4 } ], "type": { "type": "reflection", "declaration": { - "id": 723, + "id": 768, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -17946,19 +17945,19 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 527, + "line": 575, "character": 18 } ], "indexSignature": { - "id": 724, + "id": 769, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 725, + "id": 770, "name": "key", "kind": 32768, "flags": {}, @@ -17977,7 +17976,7 @@ } }, { - "id": 720, + "id": 765, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -17990,7 +17989,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 523, + "line": 571, "character": 4 } ], @@ -18000,7 +17999,7 @@ } }, { - "id": 721, + "id": 766, "name": "scopes", "kind": 1024, "kindString": "Property", @@ -18013,7 +18012,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 525, + "line": 573, "character": 4 } ], @@ -18023,7 +18022,7 @@ } }, { - "id": 726, + "id": 771, "name": "skipBrowserRedirect", "kind": 1024, "kindString": "Property", @@ -18036,7 +18035,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 529, + "line": 577, "character": 4 } ], @@ -18051,17 +18050,17 @@ "title": "Properties", "kind": 1024, "children": [ - 722, - 720, - 721, - 726 + 767, + 765, + 766, + 771 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 521, + "line": 569, "character": 12 } ] @@ -18069,7 +18068,7 @@ } }, { - "id": 717, + "id": 762, "name": "provider", "kind": 1024, "kindString": "Property", @@ -18080,16 +18079,16 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 520, + "line": 568, "character": 2 } ], "type": { "type": "reference", - "id": 472, + "id": 478, "name": "Provider", "dereferenced": { - "id": 472, + "id": 478, "name": "Provider", "kind": 4194304, "kindString": "Type alias", @@ -18202,15 +18201,15 @@ "title": "Properties", "kind": 1024, "children": [ - 718, - 717 + 763, + 762 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 518, + "line": 566, "character": 41 } ] @@ -18225,7 +18224,7 @@ "typeArguments": [ { "type": "reference", - "id": 545, + "id": 585, "name": "OAuthResponse" } ], @@ -18237,7 +18236,7 @@ ] }, { - "id": 317, + "id": 321, "name": "onAuthStateChange", "kind": 2048, "kindString": "Method", @@ -18245,13 +18244,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1487, + "line": 1608, "character": 2 } ], "signatures": [ { - "id": 318, + "id": 322, "name": "onAuthStateChange", "kind": 4096, "kindString": "Call signature", @@ -18261,7 +18260,7 @@ }, "parameters": [ { - "id": 319, + "id": 323, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -18272,33 +18271,33 @@ "type": { "type": "reflection", "declaration": { - "id": 320, + "id": 324, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 321, + "id": 325, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 322, + "id": 326, "name": "event", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 474, + "id": 480, "name": "AuthChangeEvent" } }, { - "id": 323, + "id": 327, "name": "session", "kind": 32768, "kindString": "Parameter", @@ -18312,7 +18311,7 @@ }, { "type": "reference", - "id": 578, + "id": 618, "name": "Session" } ] @@ -18349,14 +18348,14 @@ "type": { "type": "reflection", "declaration": { - "id": 324, + "id": 328, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 325, + "id": 329, "name": "data", "kind": 1024, "kindString": "Property", @@ -18364,21 +18363,21 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1490, + "line": 1611, "character": 4 } ], "type": { "type": "reflection", "declaration": { - "id": 326, + "id": 330, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 327, + "id": 331, "name": "subscription", "kind": 1024, "kindString": "Property", @@ -18386,23 +18385,23 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1490, + "line": 1611, "character": 12 } ], "type": { "type": "reference", - "id": 656, + "id": 696, "name": "Subscription", "dereferenced": { - "id": 656, + "id": 696, "name": "Subscription", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 657, + "id": 697, "name": "id", "kind": 1024, "kindString": "Property", @@ -18413,7 +18412,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 399, + "line": 440, "character": 2 } ], @@ -18423,7 +18422,7 @@ } }, { - "id": 658, + "id": 698, "name": "callback", "kind": 2048, "kindString": "Method", @@ -18431,13 +18430,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 403, + "line": 444, "character": 2 } ], "signatures": [ { - "id": 659, + "id": 699, "name": "callback", "kind": 4096, "kindString": "Call signature", @@ -18447,17 +18446,17 @@ }, "parameters": [ { - "id": 660, + "id": 700, "name": "event", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 474, + "id": 480, "name": "AuthChangeEvent", "dereferenced": { - "id": 474, + "id": 480, "name": "AuthChangeEvent", "kind": 4194304, "kindString": "Type alias", @@ -18497,7 +18496,7 @@ "value": "USER_UPDATED" }, { - "id": 473, + "id": 479, "name": "AuthChangeEventMFA", "kind": 4194304, "kindString": "Type alias", @@ -18520,7 +18519,7 @@ } }, { - "id": 661, + "id": 701, "name": "session", "kind": 32768, "kindString": "Parameter", @@ -18534,7 +18533,7 @@ }, { "type": "reference", - "id": 578, + "id": 618, "name": "Session" } ] @@ -18549,7 +18548,7 @@ ] }, { - "id": 662, + "id": 702, "name": "unsubscribe", "kind": 2048, "kindString": "Method", @@ -18557,13 +18556,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 407, + "line": 448, "character": 2 } ], "signatures": [ { - "id": 663, + "id": 703, "name": "unsubscribe", "kind": 4096, "kindString": "Call signature", @@ -18584,22 +18583,22 @@ "title": "Properties", "kind": 1024, "children": [ - 657 + 697 ] }, { "title": "Methods", "kind": 2048, "children": [ - 658, - 662 + 698, + 702 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 395, + "line": 436, "character": 17 } ] @@ -18612,7 +18611,7 @@ "title": "Properties", "kind": 1024, "children": [ - 327 + 331 ] } ] @@ -18625,7 +18624,7 @@ "title": "Properties", "kind": 1024, "children": [ - 325 + 329 ] } ] @@ -18635,7 +18634,7 @@ ] }, { - "id": 171, + "id": 175, "name": "reauthenticate", "kind": 2048, "kindString": "Method", @@ -18643,13 +18642,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 768, + "line": 838, "character": 8 } ], "signatures": [ { - "id": 172, + "id": 176, "name": "reauthenticate", "kind": 4096, "kindString": "Call signature", @@ -18662,7 +18661,7 @@ "typeArguments": [ { "type": "reference", - "id": 504, + "id": 515, "name": "AuthResponse" } ], @@ -18674,7 +18673,7 @@ ] }, { - "id": 278, + "id": 282, "name": "refreshSession", "kind": 2048, "kindString": "Method", @@ -18682,13 +18681,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1253, + "line": 1374, "character": 8 } ], "signatures": [ { - "id": 279, + "id": 283, "name": "refreshSession", "kind": 4096, "kindString": "Call signature", @@ -18698,7 +18697,7 @@ }, "parameters": [ { - "id": 280, + "id": 284, "name": "currentSession", "kind": 32768, "kindString": "Parameter", @@ -18711,14 +18710,14 @@ "type": { "type": "reflection", "declaration": { - "id": 281, + "id": 285, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 282, + "id": 286, "name": "refresh_token", "kind": 1024, "kindString": "Property", @@ -18726,7 +18725,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1253, + "line": 1374, "character": 42 } ], @@ -18741,7 +18740,7 @@ "title": "Properties", "kind": 1024, "children": [ - 282 + 286 ] } ] @@ -18754,7 +18753,7 @@ "typeArguments": [ { "type": "reference", - "id": 504, + "id": 515, "name": "AuthResponse" } ], @@ -18766,7 +18765,7 @@ ] }, { - "id": 175, + "id": 179, "name": "resend", "kind": 2048, "kindString": "Method", @@ -18774,13 +18773,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 803, + "line": 873, "character": 8 } ], "signatures": [ { - "id": 176, + "id": 180, "name": "resend", "kind": 4096, "kindString": "Call signature", @@ -18790,17 +18789,17 @@ }, "parameters": [ { - "id": 177, + "id": 181, "name": "credentials", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 758, + "id": 803, "name": "ResendParams", "dereferenced": { - "id": 758, + "id": 803, "name": "ResendParams", "kind": 4194304, "kindString": "Type alias", @@ -18808,7 +18807,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 598, + "line": 646, "character": 12 } ], @@ -18818,14 +18817,14 @@ { "type": "reflection", "declaration": { - "id": 759, + "id": 804, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 761, + "id": 806, "name": "email", "kind": 1024, "kindString": "Property", @@ -18833,7 +18832,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 601, + "line": 649, "character": 6 } ], @@ -18843,7 +18842,7 @@ } }, { - "id": 762, + "id": 807, "name": "options", "kind": 1024, "kindString": "Property", @@ -18853,21 +18852,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 602, + "line": 650, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 763, + "id": 808, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 765, + "id": 810, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -18880,7 +18879,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 606, + "line": 654, "character": 8 } ], @@ -18890,7 +18889,7 @@ } }, { - "id": 764, + "id": 809, "name": "emailRedirectTo", "kind": 1024, "kindString": "Property", @@ -18903,7 +18902,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 604, + "line": 652, "character": 8 } ], @@ -18918,15 +18917,15 @@ "title": "Properties", "kind": 1024, "children": [ - 765, - 764 + 810, + 809 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 602, + "line": 650, "character": 16 } ] @@ -18934,7 +18933,7 @@ } }, { - "id": 760, + "id": 805, "name": "type", "kind": 1024, "kindString": "Property", @@ -18942,7 +18941,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 600, + "line": 648, "character": 6 } ], @@ -18951,7 +18950,7 @@ "typeArguments": [ { "type": "reference", - "id": 757, + "id": 802, "name": "EmailOtpType" }, { @@ -18979,16 +18978,16 @@ "title": "Properties", "kind": 1024, "children": [ - 761, - 762, - 760 + 806, + 807, + 805 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 599, + "line": 647, "character": 4 } ] @@ -18997,14 +18996,14 @@ { "type": "reflection", "declaration": { - "id": 766, + "id": 811, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 769, + "id": 814, "name": "options", "kind": 1024, "kindString": "Property", @@ -19014,21 +19013,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 612, + "line": 660, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 770, + "id": 815, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 771, + "id": 816, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -19041,7 +19040,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 614, + "line": 662, "character": 8 } ], @@ -19056,14 +19055,14 @@ "title": "Properties", "kind": 1024, "children": [ - 771 + 816 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 612, + "line": 660, "character": 16 } ] @@ -19071,7 +19070,7 @@ } }, { - "id": 768, + "id": 813, "name": "phone", "kind": 1024, "kindString": "Property", @@ -19079,7 +19078,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 611, + "line": 659, "character": 6 } ], @@ -19089,7 +19088,7 @@ } }, { - "id": 767, + "id": 812, "name": "type", "kind": 1024, "kindString": "Property", @@ -19097,7 +19096,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 610, + "line": 658, "character": 6 } ], @@ -19106,7 +19105,7 @@ "typeArguments": [ { "type": "reference", - "id": 756, + "id": 801, "name": "MobileOtpType" }, { @@ -19134,16 +19133,16 @@ "title": "Properties", "kind": 1024, "children": [ - 769, - 768, - 767 + 814, + 813, + 812 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 609, + "line": 657, "character": 4 } ] @@ -19160,7 +19159,7 @@ "typeArguments": [ { "type": "reference", - "id": 517, + "id": 542, "name": "AuthOtpResponse" } ], @@ -19172,7 +19171,7 @@ ] }, { - "id": 331, + "id": 335, "name": "resetPasswordForEmail", "kind": 2048, "kindString": "Method", @@ -19180,13 +19179,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1543, + "line": 1664, "character": 8 } ], "signatures": [ { - "id": 332, + "id": 336, "name": "resetPasswordForEmail", "kind": 4096, "kindString": "Call signature", @@ -19196,7 +19195,7 @@ }, "parameters": [ { - "id": 333, + "id": 337, "name": "email", "kind": 32768, "kindString": "Parameter", @@ -19210,7 +19209,7 @@ } }, { - "id": 334, + "id": 338, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -19218,14 +19217,14 @@ "type": { "type": "reflection", "declaration": { - "id": 335, + "id": 339, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 337, + "id": 341, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -19238,7 +19237,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1547, + "line": 1668, "character": 6 } ], @@ -19248,7 +19247,7 @@ } }, { - "id": 336, + "id": 340, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -19261,7 +19260,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1546, + "line": 1667, "character": 6 } ], @@ -19276,8 +19275,8 @@ "title": "Properties", "kind": 1024, "children": [ - 337, - 336 + 341, + 340 ] } ] @@ -19292,70 +19291,6 @@ { "type": "union", "types": [ - { - "type": "reflection", - "declaration": { - "id": 338, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 339, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 1551, - "character": 8 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 340, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {} - } - } - }, - { - "id": 341, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 1552, - "character": 8 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 339, - 341 - ] - } - ] - } - }, { "type": "reflection", "declaration": { @@ -19374,17 +19309,23 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1554, + "line": 1672, "character": 8 } ], "type": { - "type": "literal", - "value": null + "type": "reflection", + "declaration": { + "id": 344, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {} + } } }, { - "id": 344, + "id": 345, "name": "error", "kind": 1024, "kindString": "Property", @@ -19392,14 +19333,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1554, - "character": 20 + "line": 1673, + "character": 8 } ], "type": { - "type": "reference", - "id": 1010, - "name": "AuthError" + "type": "literal", + "value": null } } ], @@ -19409,7 +19349,66 @@ "kind": 1024, "children": [ 343, - 344 + 345 + ] + } + ] + } + }, + { + "type": "reflection", + "declaration": { + "id": 346, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 347, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 1675, + "character": 8 + } + ], + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 348, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 1675, + "character": 20 + } + ], + "type": { + "type": "reference", + "id": 1058, + "name": "AuthError" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 347, + 348 ] } ] @@ -19426,7 +19425,7 @@ ] }, { - "id": 266, + "id": 270, "name": "setSession", "kind": 2048, "kindString": "Method", @@ -19434,13 +19433,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1178, + "line": 1299, "character": 8 } ], "signatures": [ { - "id": 267, + "id": 271, "name": "setSession", "kind": 4096, "kindString": "Call signature", @@ -19450,7 +19449,7 @@ }, "parameters": [ { - "id": 268, + "id": 272, "name": "currentSession", "kind": 32768, "kindString": "Parameter", @@ -19461,14 +19460,14 @@ "type": { "type": "reflection", "declaration": { - "id": 269, + "id": 273, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 270, + "id": 274, "name": "access_token", "kind": 1024, "kindString": "Property", @@ -19476,7 +19475,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1179, + "line": 1300, "character": 4 } ], @@ -19486,7 +19485,7 @@ } }, { - "id": 271, + "id": 275, "name": "refresh_token", "kind": 1024, "kindString": "Property", @@ -19494,7 +19493,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1180, + "line": 1301, "character": 4 } ], @@ -19509,8 +19508,8 @@ "title": "Properties", "kind": 1024, "children": [ - 270, - 271 + 274, + 275 ] } ] @@ -19523,7 +19522,7 @@ "typeArguments": [ { "type": "reference", - "id": 504, + "id": 515, "name": "AuthResponse" } ], @@ -19535,109 +19534,66 @@ ] }, { - "id": 159, - "name": "signInWithIdToken", + "id": 131, + "name": "signInAnonymously", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 554, + "line": 368, "character": 8 } ], "signatures": [ { - "id": 160, - "name": "signInWithIdToken", + "id": 132, + "name": "signInAnonymously", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Allows signing in with an OIDC ID token. The authentication provider used\nshould be enabled and configured." + "shortText": "Creates a new anonymous user.", + "returns": "A session where the is_anonymous claim in the access token JWT set to true\n" }, "parameters": [ { - "id": 161, + "id": 133, "name": "credentials", "kind": 32768, "kindString": "Parameter", - "flags": {}, + "flags": { + "isOptional": true + }, "type": { "type": "reference", - "id": 727, - "name": "SignInWithIdTokenCredentials", + "id": 706, + "name": "SignInAnonymouslyCredentials", "dereferenced": { - "id": 727, - "name": "SignInWithIdTokenCredentials", + "id": 706, + "name": "SignInAnonymouslyCredentials", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/lib/types.ts", - "line": 533, + "line": 455, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 728, + "id": 707, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 731, - "name": "access_token", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "If the ID token contains an `at_hash` claim, then the hash of this value is compared to the value in the ID token." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 539, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 732, - "name": "nonce", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "If the ID token contains a `nonce` claim, then the hash of this value is compared to the value in the ID token." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 541, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 733, + "id": 708, "name": "options", "kind": 1024, "kindString": "Property", @@ -19647,21 +19603,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 542, + "line": 456, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 734, + "id": 709, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 735, + "id": 711, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -19674,7 +19630,240 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 544, + "line": 464, + "character": 4 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 710, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.", + "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n" + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 462, + "character": 4 + } + ], + "type": { + "type": "intrinsic", + "name": "object" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 711, + 710 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 456, + "character": 12 + } + ] + } + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 708 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 455, + "character": 43 + } + ] + } + } + } + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "id": 515, + "name": "AuthResponse" + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + }, + { + "id": 163, + "name": "signInWithIdToken", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 621, + "character": 8 + } + ], + "signatures": [ + { + "id": 164, + "name": "signInWithIdToken", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Allows signing in with an OIDC ID token. The authentication provider used\nshould be enabled and configured." + }, + "parameters": [ + { + "id": 165, + "name": "credentials", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "id": 772, + "name": "SignInWithIdTokenCredentials", + "dereferenced": { + "id": 772, + "name": "SignInWithIdTokenCredentials", + "kind": 4194304, + "kindString": "Type alias", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 581, + "character": 12 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 773, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 776, + "name": "access_token", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "If the ID token contains an `at_hash` claim, then the hash of this value is compared to the value in the ID token." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 587, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 777, + "name": "nonce", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "If the ID token contains a `nonce` claim, then the hash of this value is compared to the value in the ID token." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 589, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 778, + "name": "options", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 590, + "character": 2 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 779, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 780, + "name": "captchaToken", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "Verification token received when the user completes the captcha on the site." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 592, "character": 4 } ], @@ -19689,14 +19878,14 @@ "title": "Properties", "kind": 1024, "children": [ - 735 + 780 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 542, + "line": 590, "character": 12 } ] @@ -19704,7 +19893,7 @@ } }, { - "id": 729, + "id": 774, "name": "provider", "kind": 1024, "kindString": "Property", @@ -19715,7 +19904,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 535, + "line": 583, "character": 2 } ], @@ -19746,7 +19935,7 @@ } }, { - "id": 730, + "id": 775, "name": "token", "kind": 1024, "kindString": "Property", @@ -19757,7 +19946,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 537, + "line": 585, "character": 2 } ], @@ -19772,18 +19961,18 @@ "title": "Properties", "kind": 1024, "children": [ - 731, - 732, - 733, - 729, - 730 + 776, + 777, + 778, + 774, + 775 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 533, + "line": 581, "character": 43 } ] @@ -19798,7 +19987,7 @@ "typeArguments": [ { "type": "reference", - "id": 532, + "id": 557, "name": "AuthTokenResponse" } ], @@ -19810,7 +19999,7 @@ ] }, { - "id": 136, + "id": 140, "name": "signInWithOAuth", "kind": 2048, "kindString": "Method", @@ -19818,13 +20007,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 489, + "line": 557, "character": 8 } ], "signatures": [ { - "id": 137, + "id": 141, "name": "signInWithOAuth", "kind": 4096, "kindString": "Call signature", @@ -19834,17 +20023,17 @@ }, "parameters": [ { - "id": 138, + "id": 142, "name": "credentials", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 715, + "id": 760, "name": "SignInWithOAuthCredentials", "dereferenced": { - "id": 715, + "id": 760, "name": "SignInWithOAuthCredentials", "kind": 4194304, "kindString": "Type alias", @@ -19852,21 +20041,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 518, + "line": 566, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 716, + "id": 761, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 718, + "id": 763, "name": "options", "kind": 1024, "kindString": "Property", @@ -19876,21 +20065,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 521, + "line": 569, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 719, + "id": 764, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 722, + "id": 767, "name": "queryParams", "kind": 1024, "kindString": "Property", @@ -19903,14 +20092,14 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 527, + "line": 575, "character": 4 } ], "type": { "type": "reflection", "declaration": { - "id": 723, + "id": 768, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -19918,19 +20107,19 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 527, + "line": 575, "character": 18 } ], "indexSignature": { - "id": 724, + "id": 769, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 725, + "id": 770, "name": "key", "kind": 32768, "flags": {}, @@ -19949,7 +20138,7 @@ } }, { - "id": 720, + "id": 765, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -19962,7 +20151,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 523, + "line": 571, "character": 4 } ], @@ -19972,7 +20161,7 @@ } }, { - "id": 721, + "id": 766, "name": "scopes", "kind": 1024, "kindString": "Property", @@ -19985,7 +20174,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 525, + "line": 573, "character": 4 } ], @@ -19995,7 +20184,7 @@ } }, { - "id": 726, + "id": 771, "name": "skipBrowserRedirect", "kind": 1024, "kindString": "Property", @@ -20008,7 +20197,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 529, + "line": 577, "character": 4 } ], @@ -20023,17 +20212,17 @@ "title": "Properties", "kind": 1024, "children": [ - 722, - 720, - 721, - 726 + 767, + 765, + 766, + 771 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 521, + "line": 569, "character": 12 } ] @@ -20041,7 +20230,7 @@ } }, { - "id": 717, + "id": 762, "name": "provider", "kind": 1024, "kindString": "Property", @@ -20052,16 +20241,16 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 520, + "line": 568, "character": 2 } ], "type": { "type": "reference", - "id": 472, + "id": 478, "name": "Provider", "dereferenced": { - "id": 472, + "id": 478, "name": "Provider", "kind": 4194304, "kindString": "Type alias", @@ -20174,15 +20363,15 @@ "title": "Properties", "kind": 1024, "children": [ - 718, - 717 + 763, + 762 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 518, + "line": 566, "character": 41 } ] @@ -20197,7 +20386,7 @@ "typeArguments": [ { "type": "reference", - "id": 545, + "id": 585, "name": "OAuthResponse" } ], @@ -20209,7 +20398,7 @@ ] }, { - "id": 162, + "id": 166, "name": "signInWithOtp", "kind": 2048, "kindString": "Method", @@ -20217,13 +20406,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 611, + "line": 678, "character": 8 } ], "signatures": [ { - "id": 163, + "id": 167, "name": "signInWithOtp", "kind": 4096, "kindString": "Call signature", @@ -20234,17 +20423,17 @@ }, "parameters": [ { - "id": 164, + "id": 168, "name": "credentials", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 697, + "id": 742, "name": "SignInWithPasswordlessCredentials", "dereferenced": { - "id": 697, + "id": 742, "name": "SignInWithPasswordlessCredentials", "kind": 4194304, "kindString": "Type alias", @@ -20252,7 +20441,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 479, + "line": 527, "character": 12 } ], @@ -20262,14 +20451,14 @@ { "type": "reflection", "declaration": { - "id": 698, + "id": 743, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 699, + "id": 744, "name": "email", "kind": 1024, "kindString": "Property", @@ -20280,7 +20469,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 482, + "line": 530, "character": 6 } ], @@ -20290,7 +20479,7 @@ } }, { - "id": 700, + "id": 745, "name": "options", "kind": 1024, "kindString": "Property", @@ -20300,21 +20489,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 483, + "line": 531, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 701, + "id": 746, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 705, + "id": 750, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -20327,7 +20516,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 495, + "line": 543, "character": 8 } ], @@ -20337,7 +20526,7 @@ } }, { - "id": 704, + "id": 749, "name": "data", "kind": 1024, "kindString": "Property", @@ -20345,13 +20534,13 @@ "isOptional": true }, "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", + "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.", "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n" }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 493, + "line": 541, "character": 8 } ], @@ -20361,7 +20550,7 @@ } }, { - "id": 702, + "id": 747, "name": "emailRedirectTo", "kind": 1024, "kindString": "Property", @@ -20374,7 +20563,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 485, + "line": 533, "character": 8 } ], @@ -20384,7 +20573,7 @@ } }, { - "id": 703, + "id": 748, "name": "shouldCreateUser", "kind": 1024, "kindString": "Property", @@ -20397,7 +20586,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 487, + "line": 535, "character": 8 } ], @@ -20412,17 +20601,17 @@ "title": "Properties", "kind": 1024, "children": [ - 705, - 704, - 702, - 703 + 750, + 749, + 747, + 748 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 483, + "line": 531, "character": 16 } ] @@ -20435,15 +20624,15 @@ "title": "Properties", "kind": 1024, "children": [ - 699, - 700 + 744, + 745 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 480, + "line": 528, "character": 4 } ] @@ -20452,14 +20641,14 @@ { "type": "reflection", "declaration": { - "id": 706, + "id": 751, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 708, + "id": 753, "name": "options", "kind": 1024, "kindString": "Property", @@ -20469,21 +20658,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 501, + "line": 549, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 709, + "id": 754, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 712, + "id": 757, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -20496,7 +20685,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 511, + "line": 559, "character": 8 } ], @@ -20506,7 +20695,7 @@ } }, { - "id": 713, + "id": 758, "name": "channel", "kind": 1024, "kindString": "Property", @@ -20519,7 +20708,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 513, + "line": 561, "character": 8 } ], @@ -20538,7 +20727,7 @@ } }, { - "id": 711, + "id": 756, "name": "data", "kind": 1024, "kindString": "Property", @@ -20546,13 +20735,13 @@ "isOptional": true }, "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", + "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.", "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n" }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 509, + "line": 557, "character": 8 } ], @@ -20562,7 +20751,7 @@ } }, { - "id": 710, + "id": 755, "name": "shouldCreateUser", "kind": 1024, "kindString": "Property", @@ -20575,7 +20764,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 503, + "line": 551, "character": 8 } ], @@ -20590,17 +20779,17 @@ "title": "Properties", "kind": 1024, "children": [ - 712, - 713, - 711, - 710 + 757, + 758, + 756, + 755 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 501, + "line": 549, "character": 16 } ] @@ -20608,7 +20797,7 @@ } }, { - "id": 707, + "id": 752, "name": "phone", "kind": 1024, "kindString": "Property", @@ -20619,7 +20808,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 500, + "line": 548, "character": 6 } ], @@ -20634,15 +20823,15 @@ "title": "Properties", "kind": 1024, "children": [ - 708, - 707 + 753, + 752 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 498, + "line": 546, "character": 4 } ] @@ -20659,7 +20848,7 @@ "typeArguments": [ { "type": "reference", - "id": 517, + "id": 542, "name": "AuthOtpResponse" } ], @@ -20671,7 +20860,7 @@ ] }, { - "id": 133, + "id": 137, "name": "signInWithPassword", "kind": 2048, "kindString": "Method", @@ -20679,13 +20868,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 433, + "line": 492, "character": 8 } ], "signatures": [ { - "id": 134, + "id": 138, "name": "signInWithPassword", "kind": 4096, "kindString": "Call signature", @@ -20696,17 +20885,17 @@ }, "parameters": [ { - "id": 135, + "id": 139, "name": "credentials", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 683, + "id": 729, "name": "SignInWithPasswordCredentials", "dereferenced": { - "id": 683, + "id": 729, "name": "SignInWithPasswordCredentials", "kind": 4194304, "kindString": "Type alias", @@ -20714,7 +20903,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 451, + "line": 505, "character": 12 } ], @@ -20724,14 +20913,14 @@ { "type": "reflection", "declaration": { - "id": 684, + "id": 730, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 685, + "id": 731, "name": "email", "kind": 1024, "kindString": "Property", @@ -20742,7 +20931,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 454, + "line": 508, "character": 6 } ], @@ -20752,7 +20941,7 @@ } }, { - "id": 687, + "id": 733, "name": "options", "kind": 1024, "kindString": "Property", @@ -20762,21 +20951,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 457, + "line": 511, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 688, + "id": 734, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 689, + "id": 735, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -20789,7 +20978,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 459, + "line": 513, "character": 8 } ], @@ -20804,14 +20993,14 @@ "title": "Properties", "kind": 1024, "children": [ - 689 + 735 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 457, + "line": 511, "character": 16 } ] @@ -20819,7 +21008,7 @@ } }, { - "id": 686, + "id": 732, "name": "password", "kind": 1024, "kindString": "Property", @@ -20830,7 +21019,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 456, + "line": 510, "character": 6 } ], @@ -20845,16 +21034,16 @@ "title": "Properties", "kind": 1024, "children": [ - 685, - 687, - 686 + 731, + 733, + 732 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 452, + "line": 506, "character": 4 } ] @@ -20863,14 +21052,14 @@ { "type": "reflection", "declaration": { - "id": 690, + "id": 736, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 693, + "id": 739, "name": "options", "kind": 1024, "kindString": "Property", @@ -20880,21 +21069,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 467, + "line": 521, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 694, + "id": 740, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 696, + "id": 741, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -20907,7 +21096,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 475, + "line": 523, "character": 8 } ], @@ -20915,30 +21104,6 @@ "type": "intrinsic", "name": "string" } - }, - { - "id": 695, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", - "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n" - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 473, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "object" - } } ], "groups": [ @@ -20946,15 +21111,14 @@ "title": "Properties", "kind": 1024, "children": [ - 696, - 695 + 741 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 467, + "line": 521, "character": 16 } ] @@ -20962,7 +21126,7 @@ } }, { - "id": 692, + "id": 738, "name": "password", "kind": 1024, "kindString": "Property", @@ -20973,7 +21137,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 466, + "line": 520, "character": 6 } ], @@ -20983,7 +21147,7 @@ } }, { - "id": 691, + "id": 737, "name": "phone", "kind": 1024, "kindString": "Property", @@ -20994,7 +21158,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 464, + "line": 518, "character": 6 } ], @@ -21009,16 +21173,16 @@ "title": "Properties", "kind": 1024, "children": [ - 693, - 692, - 691 + 739, + 738, + 737 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 462, + "line": 516, "character": 4 } ] @@ -21035,8 +21199,8 @@ "typeArguments": [ { "type": "reference", - "id": 532, - "name": "AuthTokenResponse" + "id": 570, + "name": "AuthTokenResponsePassword" } ], "qualifiedName": "Promise", @@ -21047,7 +21211,7 @@ ] }, { - "id": 168, + "id": 172, "name": "signInWithSSO", "kind": 2048, "kindString": "Method", @@ -21055,13 +21219,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 729, + "line": 799, "character": 8 } ], "signatures": [ { - "id": 169, + "id": 173, "name": "signInWithSSO", "kind": 4096, "kindString": "Call signature", @@ -21072,17 +21236,17 @@ }, "parameters": [ { - "id": 170, + "id": 174, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 772, + "id": 817, "name": "SignInWithSSO", "dereferenced": { - "id": 772, + "id": 817, "name": "SignInWithSSO", "kind": 4194304, "kindString": "Type alias", @@ -21090,7 +21254,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 618, + "line": 666, "character": 12 } ], @@ -21100,14 +21264,14 @@ { "type": "reflection", "declaration": { - "id": 773, + "id": 818, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 775, + "id": 820, "name": "options", "kind": 1024, "kindString": "Property", @@ -21117,21 +21281,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 623, + "line": 671, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 776, + "id": 821, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 778, + "id": 823, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -21144,7 +21308,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 627, + "line": 675, "character": 8 } ], @@ -21154,7 +21318,7 @@ } }, { - "id": 777, + "id": 822, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -21167,7 +21331,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 625, + "line": 673, "character": 8 } ], @@ -21182,15 +21346,15 @@ "title": "Properties", "kind": 1024, "children": [ - 778, - 777 + 823, + 822 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 623, + "line": 671, "character": 16 } ] @@ -21198,7 +21362,7 @@ } }, { - "id": 774, + "id": 819, "name": "providerId", "kind": 1024, "kindString": "Property", @@ -21209,7 +21373,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 621, + "line": 669, "character": 6 } ], @@ -21224,15 +21388,15 @@ "title": "Properties", "kind": 1024, "children": [ - 775, - 774 + 820, + 819 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 619, + "line": 667, "character": 4 } ] @@ -21241,14 +21405,14 @@ { "type": "reflection", "declaration": { - "id": 779, + "id": 824, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 780, + "id": 825, "name": "domain", "kind": 1024, "kindString": "Property", @@ -21259,7 +21423,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 632, + "line": 680, "character": 6 } ], @@ -21269,7 +21433,7 @@ } }, { - "id": 781, + "id": 826, "name": "options", "kind": 1024, "kindString": "Property", @@ -21279,21 +21443,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 634, + "line": 682, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 782, + "id": 827, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 784, + "id": 829, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -21306,7 +21470,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 638, + "line": 686, "character": 8 } ], @@ -21316,7 +21480,7 @@ } }, { - "id": 783, + "id": 828, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -21329,7 +21493,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 636, + "line": 684, "character": 8 } ], @@ -21344,15 +21508,15 @@ "title": "Properties", "kind": 1024, "children": [ - 784, - 783 + 829, + 828 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 634, + "line": 682, "character": 16 } ] @@ -21365,15 +21529,15 @@ "title": "Properties", "kind": 1024, "children": [ - 780, - 781 + 825, + 826 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 630, + "line": 678, "character": 4 } ] @@ -21390,7 +21554,7 @@ "typeArguments": [ { "type": "reference", - "id": 558, + "id": 598, "name": "SSOResponse" } ], @@ -21402,7 +21566,7 @@ ] }, { - "id": 307, + "id": 311, "name": "signOut", "kind": 2048, "kindString": "Method", @@ -21410,13 +21574,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1447, + "line": 1568, "character": 8 } ], "signatures": [ { - "id": 308, + "id": 312, "name": "signOut", "kind": 4096, "kindString": "Call signature", @@ -21427,17 +21591,17 @@ }, "parameters": [ { - "id": 309, + "id": 313, "name": "options", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 995, + "id": 1043, "name": "SignOut", "dereferenced": { - "id": 995, + "id": 1043, "name": "SignOut", "kind": 4194304, "kindString": "Type alias", @@ -21445,21 +21609,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1067, + "line": 1128, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 996, + "id": 1044, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 997, + "id": 1045, "name": "scope", "kind": 1024, "kindString": "Property", @@ -21472,7 +21636,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1078, + "line": 1139, "character": 2 } ], @@ -21500,14 +21664,14 @@ "title": "Properties", "kind": 1024, "children": [ - 997 + 1045 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 1067, + "line": 1128, "character": 22 } ] @@ -21524,14 +21688,14 @@ { "type": "reflection", "declaration": { - "id": 310, + "id": 314, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 311, + "id": 315, "name": "error", "kind": 1024, "kindString": "Property", @@ -21539,7 +21703,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1447, + "line": 1568, "character": 67 } ], @@ -21552,7 +21716,7 @@ }, { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } ] @@ -21564,7 +21728,7 @@ "title": "Properties", "kind": 1024, "children": [ - 311 + 315 ] } ] @@ -21579,7 +21743,7 @@ ] }, { - "id": 130, + "id": 134, "name": "signUp", "kind": 2048, "kindString": "Method", @@ -21587,13 +21751,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 354, + "line": 413, "character": 8 } ], "signatures": [ { - "id": 131, + "id": 135, "name": "signUp", "kind": 4096, "kindString": "Call signature", @@ -21605,17 +21769,17 @@ }, "parameters": [ { - "id": 132, + "id": 136, "name": "credentials", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 666, + "id": 712, "name": "SignUpWithPasswordCredentials", "dereferenced": { - "id": 666, + "id": 712, "name": "SignUpWithPasswordCredentials", "kind": 4194304, "kindString": "Type alias", @@ -21623,7 +21787,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 414, + "line": 468, "character": 12 } ], @@ -21633,14 +21797,14 @@ { "type": "reflection", "declaration": { - "id": 667, + "id": 713, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 668, + "id": 714, "name": "email", "kind": 1024, "kindString": "Property", @@ -21651,7 +21815,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 417, + "line": 471, "character": 6 } ], @@ -21661,7 +21825,7 @@ } }, { - "id": 670, + "id": 716, "name": "options", "kind": 1024, "kindString": "Property", @@ -21671,21 +21835,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 420, + "line": 474, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 671, + "id": 717, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 674, + "id": 720, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -21698,7 +21862,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 430, + "line": 484, "character": 8 } ], @@ -21708,7 +21872,7 @@ } }, { - "id": 673, + "id": 719, "name": "data", "kind": 1024, "kindString": "Property", @@ -21716,13 +21880,13 @@ "isOptional": true }, "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", + "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.", "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n" }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 428, + "line": 482, "character": 8 } ], @@ -21732,7 +21896,7 @@ } }, { - "id": 672, + "id": 718, "name": "emailRedirectTo", "kind": 1024, "kindString": "Property", @@ -21745,7 +21909,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 422, + "line": 476, "character": 8 } ], @@ -21760,16 +21924,16 @@ "title": "Properties", "kind": 1024, "children": [ - 674, - 673, - 672 + 720, + 719, + 718 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 420, + "line": 474, "character": 16 } ] @@ -21777,7 +21941,7 @@ } }, { - "id": 669, + "id": 715, "name": "password", "kind": 1024, "kindString": "Property", @@ -21788,7 +21952,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 419, + "line": 473, "character": 6 } ], @@ -21803,16 +21967,16 @@ "title": "Properties", "kind": 1024, "children": [ - 668, - 670, - 669 + 714, + 716, + 715 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 415, + "line": 469, "character": 4 } ] @@ -21821,14 +21985,14 @@ { "type": "reflection", "declaration": { - "id": 675, + "id": 721, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 678, + "id": 724, "name": "options", "kind": 1024, "kindString": "Property", @@ -21838,21 +22002,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 438, + "line": 492, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 679, + "id": 725, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 681, + "id": 727, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -21865,7 +22029,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 446, + "line": 500, "character": 8 } ], @@ -21875,7 +22039,7 @@ } }, { - "id": 682, + "id": 728, "name": "channel", "kind": 1024, "kindString": "Property", @@ -21888,7 +22052,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 448, + "line": 502, "character": 8 } ], @@ -21907,7 +22071,7 @@ } }, { - "id": 680, + "id": 726, "name": "data", "kind": 1024, "kindString": "Property", @@ -21915,13 +22079,13 @@ "isOptional": true }, "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", + "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.", "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n" }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 444, + "line": 498, "character": 8 } ], @@ -21936,16 +22100,16 @@ "title": "Properties", "kind": 1024, "children": [ - 681, - 682, - 680 + 727, + 728, + 726 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 438, + "line": 492, "character": 16 } ] @@ -21953,7 +22117,7 @@ } }, { - "id": 677, + "id": 723, "name": "password", "kind": 1024, "kindString": "Property", @@ -21964,7 +22128,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 437, + "line": 491, "character": 6 } ], @@ -21974,7 +22138,7 @@ } }, { - "id": 676, + "id": 722, "name": "phone", "kind": 1024, "kindString": "Property", @@ -21985,7 +22149,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 435, + "line": 489, "character": 6 } ], @@ -22000,16 +22164,16 @@ "title": "Properties", "kind": 1024, "children": [ - 678, - 677, - 676 + 724, + 723, + 722 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 433, + "line": 487, "character": 4 } ] @@ -22026,7 +22190,7 @@ "typeArguments": [ { "type": "reference", - "id": 504, + "id": 515, "name": "AuthResponse" } ], @@ -22038,7 +22202,7 @@ ] }, { - "id": 413, + "id": 417, "name": "startAutoRefresh", "kind": 2048, "kindString": "Method", @@ -22046,13 +22210,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 2023, + "line": 2142, "character": 8 } ], "signatures": [ { - "id": 414, + "id": 418, "name": "startAutoRefresh", "kind": 4096, "kindString": "Call signature", @@ -22077,7 +22241,7 @@ ] }, { - "id": 415, + "id": 419, "name": "stopAutoRefresh", "kind": 2048, "kindString": "Method", @@ -22085,13 +22249,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 2036, + "line": 2155, "character": 8 } ], "signatures": [ { - "id": 416, + "id": 420, "name": "stopAutoRefresh", "kind": 4096, "kindString": "Call signature", @@ -22116,7 +22280,7 @@ ] }, { - "id": 358, + "id": 362, "name": "unlinkIdentity", "kind": 2048, "kindString": "Method", @@ -22124,13 +22288,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1651, + "line": 1770, "character": 8 } ], "signatures": [ { - "id": 359, + "id": 363, "name": "unlinkIdentity", "kind": 4096, "kindString": "Call signature", @@ -22140,24 +22304,24 @@ }, "parameters": [ { - "id": 360, + "id": 364, "name": "identity", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 590, + "id": 630, "name": "UserIdentity", "dereferenced": { - "id": 590, + "id": 630, "name": "UserIdentity", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 599, + "id": 639, "name": "created_at", "kind": 1024, "kindString": "Property", @@ -22167,7 +22331,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 238, + "line": 279, "character": 2 } ], @@ -22177,7 +22341,7 @@ } }, { - "id": 591, + "id": 631, "name": "id", "kind": 1024, "kindString": "Property", @@ -22185,7 +22349,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 231, + "line": 272, "character": 2 } ], @@ -22195,7 +22359,7 @@ } }, { - "id": 593, + "id": 633, "name": "identity_data", "kind": 1024, "kindString": "Property", @@ -22205,27 +22369,27 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 233, + "line": 274, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 594, + "id": 634, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": { - "id": 595, + "id": 635, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 596, + "id": 636, "name": "key", "kind": 32768, "flags": {}, @@ -22244,7 +22408,7 @@ } }, { - "id": 597, + "id": 637, "name": "identity_id", "kind": 1024, "kindString": "Property", @@ -22252,7 +22416,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 236, + "line": 277, "character": 2 } ], @@ -22262,7 +22426,7 @@ } }, { - "id": 600, + "id": 640, "name": "last_sign_in_at", "kind": 1024, "kindString": "Property", @@ -22272,7 +22436,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 239, + "line": 280, "character": 2 } ], @@ -22282,7 +22446,7 @@ } }, { - "id": 598, + "id": 638, "name": "provider", "kind": 1024, "kindString": "Property", @@ -22290,7 +22454,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 237, + "line": 278, "character": 2 } ], @@ -22300,7 +22464,7 @@ } }, { - "id": 601, + "id": 641, "name": "updated_at", "kind": 1024, "kindString": "Property", @@ -22310,7 +22474,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 240, + "line": 281, "character": 2 } ], @@ -22320,7 +22484,7 @@ } }, { - "id": 592, + "id": 632, "name": "user_id", "kind": 1024, "kindString": "Property", @@ -22328,7 +22492,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 232, + "line": 273, "character": 2 } ], @@ -22343,21 +22507,21 @@ "title": "Properties", "kind": 1024, "children": [ - 599, - 591, - 593, - 597, - 600, - 598, - 601, - 592 + 639, + 631, + 633, + 637, + 640, + 638, + 641, + 632 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 230, + "line": 271, "character": 17 } ] @@ -22371,70 +22535,6 @@ { "type": "union", "types": [ - { - "type": "reflection", - "declaration": { - "id": 361, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 362, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 1653, - "character": 8 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 363, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {} - } - } - }, - { - "id": 364, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 1654, - "character": 8 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 362, - 364 - ] - } - ] - } - }, { "type": "reflection", "declaration": { @@ -22453,17 +22553,23 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1656, + "line": 1772, "character": 8 } ], "type": { - "type": "literal", - "value": null + "type": "reflection", + "declaration": { + "id": 367, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {} + } } }, { - "id": 367, + "id": 368, "name": "error", "kind": 1024, "kindString": "Property", @@ -22471,14 +22577,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1656, - "character": 20 + "line": 1773, + "character": 8 } ], "type": { - "type": "reference", - "id": 1010, - "name": "AuthError" + "type": "literal", + "value": null } } ], @@ -22488,7 +22593,66 @@ "kind": 1024, "children": [ 366, - 367 + 368 + ] + } + ] + } + }, + { + "type": "reflection", + "declaration": { + "id": 369, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 370, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 1775, + "character": 8 + } + ], + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 371, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 1775, + "character": 20 + } + ], + "type": { + "type": "reference", + "id": 1058, + "name": "AuthError" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 370, + 371 ] } ] @@ -22505,7 +22669,7 @@ ] }, { - "id": 247, + "id": 251, "name": "updateUser", "kind": 2048, "kindString": "Method", @@ -22513,13 +22677,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1098, + "line": 1219, "character": 8 } ], "signatures": [ { - "id": 248, + "id": 252, "name": "updateUser", "kind": 4096, "kindString": "Call signature", @@ -22529,24 +22693,24 @@ }, "parameters": [ { - "id": 249, + "id": 253, "name": "attributes", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 639, + "id": 679, "name": "UserAttributes", "dereferenced": { - "id": 639, + "id": 679, "name": "UserAttributes", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 644, + "id": 684, "name": "data", "kind": 1024, "kindString": "Property", @@ -22554,13 +22718,13 @@ "isOptional": true }, "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", + "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.", "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n\n" }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 333, + "line": 374, "character": 2 } ], @@ -22570,7 +22734,7 @@ } }, { - "id": 640, + "id": 680, "name": "email", "kind": 1024, "kindString": "Property", @@ -22583,7 +22747,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 308, + "line": 349, "character": 2 } ], @@ -22593,7 +22757,7 @@ } }, { - "id": 643, + "id": 683, "name": "nonce", "kind": 1024, "kindString": "Property", @@ -22607,7 +22771,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 325, + "line": 366, "character": 2 } ], @@ -22617,7 +22781,7 @@ } }, { - "id": 642, + "id": 682, "name": "password", "kind": 1024, "kindString": "Property", @@ -22630,7 +22794,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 318, + "line": 359, "character": 2 } ], @@ -22640,7 +22804,7 @@ } }, { - "id": 641, + "id": 681, "name": "phone", "kind": 1024, "kindString": "Property", @@ -22653,7 +22817,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 313, + "line": 354, "character": 2 } ], @@ -22668,18 +22832,18 @@ "title": "Properties", "kind": 1024, "children": [ - 644, - 640, - 643, - 642, - 641 + 684, + 680, + 683, + 682, + 681 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 304, + "line": 345, "character": 17 } ] @@ -22687,7 +22851,7 @@ } }, { - "id": 250, + "id": 254, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -22695,14 +22859,14 @@ "type": { "type": "reflection", "declaration": { - "id": 251, + "id": 255, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 252, + "id": 256, "name": "emailRedirectTo", "kind": 1024, "kindString": "Property", @@ -22712,7 +22876,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1101, + "line": 1222, "character": 6 } ], @@ -22727,7 +22891,7 @@ "title": "Properties", "kind": 1024, "children": [ - 252 + 256 ] } ] @@ -22741,7 +22905,7 @@ "typeArguments": [ { "type": "reference", - "id": 567, + "id": 607, "name": "UserResponse" } ], @@ -22753,7 +22917,7 @@ ] }, { - "id": 165, + "id": 169, "name": "verifyOtp", "kind": 2048, "kindString": "Method", @@ -22761,13 +22925,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 666, + "line": 733, "character": 8 } ], "signatures": [ { - "id": 166, + "id": 170, "name": "verifyOtp", "kind": 4096, "kindString": "Call signature", @@ -22777,17 +22941,17 @@ }, "parameters": [ { - "id": 167, + "id": 171, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 736, + "id": 781, "name": "VerifyOtpParams", "dereferenced": { - "id": 736, + "id": 781, "name": "VerifyOtpParams", "kind": 4194304, "kindString": "Type alias", @@ -22795,7 +22959,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 548, + "line": 596, "character": 12 } ], @@ -22803,14 +22967,14 @@ "type": "union", "types": [ { - "id": 737, + "id": 782, "name": "VerifyMobileOtpParams", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 741, + "id": 786, "name": "options", "kind": 1024, "kindString": "Property", @@ -22820,21 +22984,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 556, + "line": 604, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 742, + "id": 787, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 744, + "id": 789, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -22853,7 +23017,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 565, + "line": 613, "character": 4 } ], @@ -22863,7 +23027,7 @@ } }, { - "id": 743, + "id": 788, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -22876,7 +23040,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 558, + "line": 606, "character": 4 } ], @@ -22891,8 +23055,8 @@ "title": "Properties", "kind": 1024, "children": [ - 744, - 743 + 789, + 788 ] } ] @@ -22900,7 +23064,7 @@ } }, { - "id": 738, + "id": 783, "name": "phone", "kind": 1024, "kindString": "Property", @@ -22911,7 +23075,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 551, + "line": 599, "character": 2 } ], @@ -22921,7 +23085,7 @@ } }, { - "id": 739, + "id": 784, "name": "token", "kind": 1024, "kindString": "Property", @@ -22932,7 +23096,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 553, + "line": 601, "character": 2 } ], @@ -22942,7 +23106,7 @@ } }, { - "id": 740, + "id": 785, "name": "type", "kind": 1024, "kindString": "Property", @@ -22953,16 +23117,16 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 555, + "line": 603, "character": 2 } ], "type": { "type": "reference", - "id": 756, + "id": 801, "name": "MobileOtpType", "dereferenced": { - "id": 756, + "id": 801, "name": "MobileOtpType", "kind": 4194304, "kindString": "Type alias", @@ -22970,7 +23134,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 595, + "line": 643, "character": 12 } ], @@ -22996,30 +23160,30 @@ "title": "Properties", "kind": 1024, "children": [ - 741, - 738, - 739, - 740 + 786, + 783, + 784, + 785 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 549, + "line": 597, "character": 17 } ] }, { - "id": 745, + "id": 790, "name": "VerifyEmailOtpParams", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 746, + "id": 791, "name": "email", "kind": 1024, "kindString": "Property", @@ -23030,7 +23194,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 570, + "line": 618, "character": 2 } ], @@ -23040,7 +23204,7 @@ } }, { - "id": 749, + "id": 794, "name": "options", "kind": 1024, "kindString": "Property", @@ -23050,21 +23214,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 575, + "line": 623, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 750, + "id": 795, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 752, + "id": 797, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -23083,7 +23247,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 583, + "line": 631, "character": 4 } ], @@ -23093,7 +23257,7 @@ } }, { - "id": 751, + "id": 796, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -23106,7 +23270,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 577, + "line": 625, "character": 4 } ], @@ -23121,8 +23285,8 @@ "title": "Properties", "kind": 1024, "children": [ - 752, - 751 + 797, + 796 ] } ] @@ -23130,7 +23294,7 @@ } }, { - "id": 747, + "id": 792, "name": "token", "kind": 1024, "kindString": "Property", @@ -23141,7 +23305,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 572, + "line": 620, "character": 2 } ], @@ -23151,7 +23315,7 @@ } }, { - "id": 748, + "id": 793, "name": "type", "kind": 1024, "kindString": "Property", @@ -23162,16 +23326,16 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 574, + "line": 622, "character": 2 } ], "type": { "type": "reference", - "id": 757, + "id": 802, "name": "EmailOtpType", "dereferenced": { - "id": 757, + "id": 802, "name": "EmailOtpType", "kind": 4194304, "kindString": "Type alias", @@ -23179,7 +23343,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 596, + "line": 644, "character": 12 } ], @@ -23221,30 +23385,30 @@ "title": "Properties", "kind": 1024, "children": [ - 746, - 749, - 747, - 748 + 791, + 794, + 792, + 793 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 568, + "line": 616, "character": 17 } ] }, { - "id": 753, + "id": 798, "name": "VerifyTokenHashParams", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 754, + "id": 799, "name": "token_hash", "kind": 1024, "kindString": "Property", @@ -23255,7 +23419,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 589, + "line": 637, "character": 2 } ], @@ -23265,7 +23429,7 @@ } }, { - "id": 755, + "id": 800, "name": "type", "kind": 1024, "kindString": "Property", @@ -23276,16 +23440,16 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 592, + "line": 640, "character": 2 } ], "type": { "type": "reference", - "id": 757, + "id": 802, "name": "EmailOtpType", "dereferenced": { - "id": 757, + "id": 802, "name": "EmailOtpType", "kind": 4194304, "kindString": "Type alias", @@ -23293,7 +23457,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 596, + "line": 644, "character": 12 } ], @@ -23335,15 +23499,15 @@ "title": "Properties", "kind": 1024, "children": [ - 754, - 755 + 799, + 800 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 587, + "line": 635, "character": 17 } ] @@ -23359,7 +23523,7 @@ "typeArguments": [ { "type": "reference", - "id": 504, + "id": 515, "name": "AuthResponse" } ], @@ -23391,64 +23555,65 @@ "title": "Methods", "kind": 2048, "children": [ - 139, - 178, - 241, - 345, - 126, - 355, - 317, - 171, - 278, + 143, + 182, + 245, + 349, + 127, + 359, + 321, 175, - 331, - 266, - 159, - 136, - 162, - 133, - 168, - 307, - 130, - 413, - 415, - 358, - 247, - 165 + 282, + 179, + 335, + 270, + 131, + 163, + 140, + 166, + 137, + 172, + 311, + 134, + 417, + 419, + 362, + 251, + 169 ] } ], "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 107, + "line": 116, "character": 21 } ] }, { - "id": 464, + "id": 470, "name": "NavigatorLockAcquireTimeoutError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 465, + "id": 471, "name": "constructor", "kind": 512, "kindString": "Constructor", "flags": {}, "signatures": [ { - "id": 466, + "id": 472, "name": "new NavigatorLockAcquireTimeoutError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 467, + "id": 473, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -23461,7 +23626,7 @@ ], "type": { "type": "reference", - "id": 464, + "id": 470, "name": "NavigatorLockAcquireTimeoutError" }, "inheritedFrom": { @@ -23476,7 +23641,7 @@ } }, { - "id": 468, + "id": 474, "name": "isAcquireTimeout", "kind": 1024, "kindString": "Property", @@ -23487,7 +23652,7 @@ "sources": [ { "fileName": "src/lib/locks.ts", - "line": 19, + "line": 24, "character": 18 } ], @@ -23507,21 +23672,21 @@ "title": "Constructors", "kind": 512, "children": [ - 465 + 471 ] }, { "title": "Properties", "kind": 1024, "children": [ - 468 + 474 ] } ], "sources": [ { "fileName": "src/lib/locks.ts", - "line": 26, + "line": 31, "character": 13 } ], @@ -23533,7 +23698,7 @@ ] }, { - "id": 587, + "id": 627, "name": "AMREntry", "kind": 256, "kindString": "Interface", @@ -23550,7 +23715,7 @@ }, "children": [ { - "id": 588, + "id": 628, "name": "method", "kind": 1024, "kindString": "Property", @@ -23561,7 +23726,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 221, + "line": 262, "character": 2 } ], @@ -23571,7 +23736,7 @@ } }, { - "id": 589, + "id": 629, "name": "timestamp", "kind": 1024, "kindString": "Property", @@ -23582,7 +23747,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 227, + "line": 268, "character": 2 } ], @@ -23597,28 +23762,28 @@ "title": "Properties", "kind": 1024, "children": [ - 588, - 589 + 628, + 629 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 219, + "line": 260, "character": 17 } ] }, { - "id": 645, + "id": 685, "name": "AdminUserAttributes", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 647, + "id": 687, "name": "app_metadata", "kind": 1024, "kindString": "Property", @@ -23632,7 +23797,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 357, + "line": 398, "character": 2 } ], @@ -23642,7 +23807,7 @@ } }, { - "id": 650, + "id": 690, "name": "ban_duration", "kind": 1024, "kindString": "Property", @@ -23656,7 +23821,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 383, + "line": 424, "character": 2 } ], @@ -23666,7 +23831,7 @@ } }, { - "id": 654, + "id": 694, "name": "email", "kind": 1024, "kindString": "Property", @@ -23679,7 +23844,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 308, + "line": 349, "character": 2 } ], @@ -23693,7 +23858,7 @@ } }, { - "id": 648, + "id": 688, "name": "email_confirm", "kind": 1024, "kindString": "Property", @@ -23707,7 +23872,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 364, + "line": 405, "character": 2 } ], @@ -23717,7 +23882,7 @@ } }, { - "id": 653, + "id": 693, "name": "nonce", "kind": 1024, "kindString": "Property", @@ -23731,7 +23896,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 325, + "line": 366, "character": 2 } ], @@ -23745,7 +23910,7 @@ } }, { - "id": 652, + "id": 692, "name": "password", "kind": 1024, "kindString": "Property", @@ -23758,7 +23923,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 318, + "line": 359, "character": 2 } ], @@ -23772,7 +23937,7 @@ } }, { - "id": 655, + "id": 695, "name": "phone", "kind": 1024, "kindString": "Property", @@ -23785,7 +23950,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 313, + "line": 354, "character": 2 } ], @@ -23799,7 +23964,7 @@ } }, { - "id": 649, + "id": 689, "name": "phone_confirm", "kind": 1024, "kindString": "Property", @@ -23813,7 +23978,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 371, + "line": 412, "character": 2 } ], @@ -23823,7 +23988,7 @@ } }, { - "id": 651, + "id": 691, "name": "role", "kind": 1024, "kindString": "Property", @@ -23837,7 +24002,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 392, + "line": 433, "character": 2 } ], @@ -23847,7 +24012,7 @@ } }, { - "id": 646, + "id": 686, "name": "user_metadata", "kind": 1024, "kindString": "Property", @@ -23855,13 +24020,13 @@ "isOptional": true }, "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", + "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.", "text": "The `user_metadata` should be a JSON object that includes user-specific info, such as their first and last name.\n\nNote: When using the GoTrueAdminApi and wanting to modify a user's metadata,\nthis attribute is used instead of UserAttributes data.\n\n" }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 347, + "line": 388, "character": 2 } ], @@ -23876,23 +24041,23 @@ "title": "Properties", "kind": 1024, "children": [ - 647, - 650, - 654, - 648, - 653, - 652, - 655, - 649, - 651, - 646 + 687, + 690, + 694, + 688, + 693, + 692, + 695, + 689, + 691, + 686 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 336, + "line": 377, "character": 17 } ], @@ -23902,7 +24067,7 @@ "typeArguments": [ { "type": "reference", - "id": 639, + "id": 679, "name": "UserAttributes" }, { @@ -23917,7 +24082,7 @@ ] }, { - "id": 602, + "id": 642, "name": "Factor", "kind": 256, "kindString": "Interface", @@ -23941,7 +24106,7 @@ }, "children": [ { - "id": 607, + "id": 647, "name": "created_at", "kind": 1024, "kindString": "Property", @@ -23949,7 +24114,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 266, + "line": 307, "character": 2 } ], @@ -23959,7 +24124,7 @@ } }, { - "id": 605, + "id": 645, "name": "factor_type", "kind": 1024, "kindString": "Property", @@ -23970,7 +24135,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 261, + "line": 302, "character": 2 } ], @@ -23980,7 +24145,7 @@ } }, { - "id": 604, + "id": 644, "name": "friendly_name", "kind": 1024, "kindString": "Property", @@ -23993,7 +24158,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 255, + "line": 296, "character": 2 } ], @@ -24003,7 +24168,7 @@ } }, { - "id": 603, + "id": 643, "name": "id", "kind": 1024, "kindString": "Property", @@ -24014,7 +24179,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 252, + "line": 293, "character": 2 } ], @@ -24024,7 +24189,7 @@ } }, { - "id": 606, + "id": 646, "name": "status", "kind": 1024, "kindString": "Property", @@ -24035,7 +24200,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 264, + "line": 305, "character": 2 } ], @@ -24054,7 +24219,7 @@ } }, { - "id": 608, + "id": 648, "name": "updated_at", "kind": 1024, "kindString": "Property", @@ -24062,7 +24227,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 267, + "line": 308, "character": 2 } ], @@ -24077,32 +24242,32 @@ "title": "Properties", "kind": 1024, "children": [ - 607, - 605, - 604, - 603, - 606, - 608 + 647, + 645, + 644, + 643, + 646, + 648 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 250, + "line": 291, "character": 17 } ] }, { - "id": 807, + "id": 852, "name": "GenerateLinkOptions", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 808, + "id": 853, "name": "data", "kind": 1024, "kindString": "Property", @@ -24110,13 +24275,13 @@ "isOptional": true }, "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", + "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.", "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n" }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 680, + "line": 728, "character": 2 } ], @@ -24126,7 +24291,7 @@ } }, { - "id": 809, + "id": 854, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -24139,7 +24304,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 682, + "line": 730, "character": 2 } ], @@ -24154,21 +24319,21 @@ "title": "Properties", "kind": 1024, "children": [ - 808, - 809 + 853, + 854 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 674, + "line": 722, "character": 17 } ] }, { - "id": 966, + "id": 1012, "name": "GoTrueAdminMFAApi", "kind": 256, "kindString": "Interface", @@ -24184,14 +24349,14 @@ }, "children": [ { - "id": 970, + "id": 1016, "name": "deleteFactor", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 971, + "id": 1017, "name": "deleteFactor", "kind": 4096, "kindString": "Call signature", @@ -24211,17 +24376,17 @@ }, "parameters": [ { - "id": 972, + "id": 1018, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 950, + "id": 996, "name": "AuthMFAAdminDeleteFactorParams", "dereferenced": { - "id": 950, + "id": 996, "name": "AuthMFAAdminDeleteFactorParams", "kind": 4194304, "kindString": "Type alias", @@ -24237,21 +24402,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 978, + "line": 1028, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 951, + "id": 997, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 952, + "id": 998, "name": "id", "kind": 1024, "kindString": "Property", @@ -24262,7 +24427,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 980, + "line": 1030, "character": 2 } ], @@ -24272,7 +24437,7 @@ } }, { - "id": 953, + "id": 999, "name": "userId", "kind": 1024, "kindString": "Property", @@ -24283,7 +24448,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 983, + "line": 1033, "character": 2 } ], @@ -24298,15 +24463,15 @@ "title": "Properties", "kind": 1024, "children": [ - 952, - 953 + 998, + 999 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 978, + "line": 1028, "character": 45 } ] @@ -24321,7 +24486,7 @@ "typeArguments": [ { "type": "reference", - "id": 941, + "id": 987, "name": "AuthMFAAdminDeleteFactorResponse" } ], @@ -24333,14 +24498,14 @@ ] }, { - "id": 967, + "id": 1013, "name": "listFactors", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 968, + "id": 1014, "name": "listFactors", "kind": 4096, "kindString": "Call signature", @@ -24350,17 +24515,17 @@ }, "parameters": [ { - "id": 969, + "id": 1015, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 963, + "id": 1009, "name": "AuthMFAAdminListFactorsParams", "dereferenced": { - "id": 963, + "id": 1009, "name": "AuthMFAAdminListFactorsParams", "kind": 4194304, "kindString": "Type alias", @@ -24376,21 +24541,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1002, + "line": 1052, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 964, + "id": 1010, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 965, + "id": 1011, "name": "userId", "kind": 1024, "kindString": "Property", @@ -24401,7 +24566,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1004, + "line": 1054, "character": 2 } ], @@ -24416,14 +24581,14 @@ "title": "Properties", "kind": 1024, "children": [ - 965 + 1011 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 1002, + "line": 1052, "character": 44 } ] @@ -24438,7 +24603,7 @@ "typeArguments": [ { "type": "reference", - "id": 954, + "id": 1000, "name": "AuthMFAAdminListFactorsResponse" } ], @@ -24455,21 +24620,21 @@ "title": "Methods", "kind": 2048, "children": [ - 970, - 967 + 1016, + 1013 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 1012, + "line": 1062, "character": 17 } ] }, { - "id": 921, + "id": 967, "name": "GoTrueMFAApi", "kind": 256, "kindString": "Interface", @@ -24479,14 +24644,14 @@ }, "children": [ { - "id": 925, + "id": 971, "name": "challenge", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 926, + "id": 972, "name": "challenge", "kind": 4096, "kindString": "Call signature", @@ -24496,17 +24661,17 @@ }, "parameters": [ { - "id": 927, + "id": 973, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 845, + "id": 890, "name": "MFAChallengeParams", "dereferenced": { - "id": 845, + "id": 890, "name": "MFAChallengeParams", "kind": 4194304, "kindString": "Type alias", @@ -24514,21 +24679,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 762, + "line": 810, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 846, + "id": 891, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 847, + "id": 892, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -24539,7 +24704,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 764, + "line": 812, "character": 2 } ], @@ -24554,14 +24719,14 @@ "title": "Properties", "kind": 1024, "children": [ - 847 + 892 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 762, + "line": 810, "character": 33 } ] @@ -24576,7 +24741,7 @@ "typeArguments": [ { "type": "reference", - "id": 889, + "id": 935, "name": "AuthMFAChallengeResponse" } ], @@ -24588,14 +24753,14 @@ ] }, { - "id": 934, + "id": 980, "name": "challengeAndVerify", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 935, + "id": 981, "name": "challengeAndVerify", "kind": 4096, "kindString": "Call signature", @@ -24605,17 +24770,17 @@ }, "parameters": [ { - "id": 936, + "id": 982, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 848, + "id": 893, "name": "MFAChallengeAndVerifyParams", "dereferenced": { - "id": 848, + "id": 893, "name": "MFAChallengeAndVerifyParams", "kind": 4194304, "kindString": "Type alias", @@ -24623,21 +24788,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 767, + "line": 815, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 849, + "id": 894, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 851, + "id": 896, "name": "code", "kind": 1024, "kindString": "Property", @@ -24648,7 +24813,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 771, + "line": 819, "character": 2 } ], @@ -24658,7 +24823,7 @@ } }, { - "id": 850, + "id": 895, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -24669,7 +24834,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 769, + "line": 817, "character": 2 } ], @@ -24684,15 +24849,15 @@ "title": "Properties", "kind": 1024, "children": [ - 851, - 850 + 896, + 895 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 767, + "line": 815, "character": 42 } ] @@ -24707,7 +24872,7 @@ "typeArguments": [ { "type": "reference", - "id": 852, + "id": 897, "name": "AuthMFAVerifyResponse" } ], @@ -24719,14 +24884,14 @@ ] }, { - "id": 922, + "id": 968, "name": "enroll", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 923, + "id": 969, "name": "enroll", "kind": 4096, "kindString": "Call signature", @@ -24737,17 +24902,17 @@ }, "parameters": [ { - "id": 924, + "id": 970, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 832, + "id": 877, "name": "MFAEnrollParams", "dereferenced": { - "id": 832, + "id": 877, "name": "MFAEnrollParams", "kind": 4194304, "kindString": "Type alias", @@ -24755,21 +24920,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 737, + "line": 785, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 833, + "id": 878, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 834, + "id": 879, "name": "factorType", "kind": 1024, "kindString": "Property", @@ -24780,7 +24945,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 739, + "line": 787, "character": 2 } ], @@ -24790,7 +24955,7 @@ } }, { - "id": 836, + "id": 881, "name": "friendlyName", "kind": 1024, "kindString": "Property", @@ -24803,7 +24968,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 743, + "line": 791, "character": 2 } ], @@ -24813,7 +24978,7 @@ } }, { - "id": 835, + "id": 880, "name": "issuer", "kind": 1024, "kindString": "Property", @@ -24826,7 +24991,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 741, + "line": 789, "character": 2 } ], @@ -24841,16 +25006,16 @@ "title": "Properties", "kind": 1024, "children": [ - 834, - 836, - 835 + 879, + 881, + 880 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 737, + "line": 785, "character": 30 } ] @@ -24865,7 +25030,7 @@ "typeArguments": [ { "type": "reference", - "id": 865, + "id": 910, "name": "AuthMFAEnrollResponse" } ], @@ -24877,14 +25042,14 @@ ] }, { - "id": 939, + "id": 985, "name": "getAuthenticatorAssuranceLevel", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 940, + "id": 986, "name": "getAuthenticatorAssuranceLevel", "kind": 4096, "kindString": "Call signature", @@ -24898,7 +25063,7 @@ "typeArguments": [ { "type": "reference", - "id": 910, + "id": 956, "name": "AuthMFAGetAuthenticatorAssuranceLevelResponse" } ], @@ -24910,14 +25075,14 @@ ] }, { - "id": 937, + "id": 983, "name": "listFactors", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 938, + "id": 984, "name": "listFactors", "kind": 4096, "kindString": "Call signature", @@ -24944,7 +25109,7 @@ "typeArguments": [ { "type": "reference", - "id": 899, + "id": 945, "name": "AuthMFAListFactorsResponse" } ], @@ -24956,14 +25121,14 @@ ] }, { - "id": 931, + "id": 977, "name": "unenroll", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 932, + "id": 978, "name": "unenroll", "kind": 4096, "kindString": "Call signature", @@ -24973,17 +25138,17 @@ }, "parameters": [ { - "id": 933, + "id": 979, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 837, + "id": 882, "name": "MFAUnenrollParams", "dereferenced": { - "id": 837, + "id": 882, "name": "MFAUnenrollParams", "kind": 4194304, "kindString": "Type alias", @@ -24991,21 +25156,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 746, + "line": 794, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 838, + "id": 883, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 839, + "id": 884, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -25016,7 +25181,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 748, + "line": 796, "character": 2 } ], @@ -25031,14 +25196,14 @@ "title": "Properties", "kind": 1024, "children": [ - 839 + 884 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 746, + "line": 794, "character": 32 } ] @@ -25053,7 +25218,7 @@ "typeArguments": [ { "type": "reference", - "id": 880, + "id": 926, "name": "AuthMFAUnenrollResponse" } ], @@ -25065,14 +25230,14 @@ ] }, { - "id": 928, + "id": 974, "name": "verify", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 929, + "id": 975, "name": "verify", "kind": 4096, "kindString": "Call signature", @@ -25082,17 +25247,17 @@ }, "parameters": [ { - "id": 930, + "id": 976, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 840, + "id": 885, "name": "MFAVerifyParams", "dereferenced": { - "id": 840, + "id": 885, "name": "MFAVerifyParams", "kind": 4194304, "kindString": "Type alias", @@ -25100,21 +25265,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 751, + "line": 799, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 841, + "id": 886, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 843, + "id": 888, "name": "challengeId", "kind": 1024, "kindString": "Property", @@ -25125,7 +25290,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 756, + "line": 804, "character": 2 } ], @@ -25135,7 +25300,7 @@ } }, { - "id": 844, + "id": 889, "name": "code", "kind": 1024, "kindString": "Property", @@ -25146,7 +25311,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 759, + "line": 807, "character": 2 } ], @@ -25156,7 +25321,7 @@ } }, { - "id": 842, + "id": 887, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -25167,7 +25332,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 753, + "line": 801, "character": 2 } ], @@ -25182,16 +25347,16 @@ "title": "Properties", "kind": 1024, "children": [ - 843, - 844, - 842 + 888, + 889, + 887 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 751, + "line": 799, "character": 30 } ] @@ -25206,7 +25371,7 @@ "typeArguments": [ { "type": "reference", - "id": 852, + "id": 897, "name": "AuthMFAVerifyResponse" } ], @@ -25223,33 +25388,33 @@ "title": "Methods", "kind": 2048, "children": [ - 925, - 934, - 922, - 939, - 937, - 931, - 928 + 971, + 980, + 968, + 985, + 983, + 977, + 974 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 899, + "line": 949, "character": 17 } ] }, { - "id": 578, + "id": 618, "name": "Session", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 581, + "id": 621, "name": "access_token", "kind": 1024, "kindString": "Property", @@ -25260,7 +25425,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 194, + "line": 235, "character": 2 } ], @@ -25270,7 +25435,7 @@ } }, { - "id": 584, + "id": 624, "name": "expires_at", "kind": 1024, "kindString": "Property", @@ -25283,7 +25448,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 206, + "line": 247, "character": 2 } ], @@ -25293,7 +25458,7 @@ } }, { - "id": 583, + "id": 623, "name": "expires_in", "kind": 1024, "kindString": "Property", @@ -25304,7 +25469,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 202, + "line": 243, "character": 2 } ], @@ -25314,7 +25479,7 @@ } }, { - "id": 580, + "id": 620, "name": "provider_refresh_token", "kind": 1024, "kindString": "Property", @@ -25327,7 +25492,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 190, + "line": 231, "character": 2 } ], @@ -25346,7 +25511,7 @@ } }, { - "id": 579, + "id": 619, "name": "provider_token", "kind": 1024, "kindString": "Property", @@ -25359,7 +25524,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 185, + "line": 226, "character": 2 } ], @@ -25378,7 +25543,7 @@ } }, { - "id": 582, + "id": 622, "name": "refresh_token", "kind": 1024, "kindString": "Property", @@ -25389,7 +25554,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 198, + "line": 239, "character": 2 } ], @@ -25399,7 +25564,7 @@ } }, { - "id": 585, + "id": 625, "name": "token_type", "kind": 1024, "kindString": "Property", @@ -25407,7 +25572,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 207, + "line": 248, "character": 2 } ], @@ -25417,7 +25582,7 @@ } }, { - "id": 586, + "id": 626, "name": "user", "kind": 1024, "kindString": "Property", @@ -25425,23 +25590,23 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 208, + "line": 249, "character": 2 } ], "type": { "type": "reference", - "id": 616, + "id": 656, "name": "User", "dereferenced": { - "id": 616, + "id": 656, "name": "User", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 627, + "id": 667, "name": "action_link", "kind": 1024, "kindString": "Property", @@ -25451,7 +25616,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 290, + "line": 331, "character": 2 } ], @@ -25461,7 +25626,7 @@ } }, { - "id": 618, + "id": 658, "name": "app_metadata", "kind": 1024, "kindString": "Property", @@ -25469,23 +25634,23 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 281, + "line": 322, "character": 2 } ], "type": { "type": "reference", - "id": 609, + "id": 649, "name": "UserAppMetadata", "dereferenced": { - "id": 609, + "id": 649, "name": "UserAppMetadata", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 610, + "id": 650, "name": "provider", "kind": 1024, "kindString": "Property", @@ -25495,7 +25660,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 271, + "line": 312, "character": 2 } ], @@ -25510,26 +25675,26 @@ "title": "Properties", "kind": 1024, "children": [ - 610 + 650 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 270, + "line": 311, "character": 17 } ], "indexSignature": { - "id": 611, + "id": 651, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 612, + "id": 652, "name": "key", "kind": 32768, "flags": {}, @@ -25548,7 +25713,7 @@ } }, { - "id": 620, + "id": 660, "name": "aud", "kind": 1024, "kindString": "Property", @@ -25556,7 +25721,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 283, + "line": 324, "character": 2 } ], @@ -25566,7 +25731,7 @@ } }, { - "id": 621, + "id": 661, "name": "confirmation_sent_at", "kind": 1024, "kindString": "Property", @@ -25576,7 +25741,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 284, + "line": 325, "character": 2 } ], @@ -25586,7 +25751,7 @@ } }, { - "id": 631, + "id": 671, "name": "confirmed_at", "kind": 1024, "kindString": "Property", @@ -25596,7 +25761,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 294, + "line": 335, "character": 2 } ], @@ -25606,7 +25771,7 @@ } }, { - "id": 630, + "id": 670, "name": "created_at", "kind": 1024, "kindString": "Property", @@ -25614,7 +25779,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 293, + "line": 334, "character": 2 } ], @@ -25624,7 +25789,7 @@ } }, { - "id": 628, + "id": 668, "name": "email", "kind": 1024, "kindString": "Property", @@ -25634,7 +25799,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 291, + "line": 332, "character": 2 } ], @@ -25644,7 +25809,7 @@ } }, { - "id": 623, + "id": 663, "name": "email_change_sent_at", "kind": 1024, "kindString": "Property", @@ -25654,7 +25819,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 286, + "line": 327, "character": 2 } ], @@ -25664,7 +25829,7 @@ } }, { - "id": 632, + "id": 672, "name": "email_confirmed_at", "kind": 1024, "kindString": "Property", @@ -25674,7 +25839,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 295, + "line": 336, "character": 2 } ], @@ -25684,7 +25849,7 @@ } }, { - "id": 638, + "id": 678, "name": "factors", "kind": 1024, "kindString": "Property", @@ -25694,7 +25859,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 301, + "line": 342, "character": 2 } ], @@ -25702,13 +25867,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 602, + "id": 642, "name": "Factor" } } }, { - "id": 617, + "id": 657, "name": "id", "kind": 1024, "kindString": "Property", @@ -25716,7 +25881,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 280, + "line": 321, "character": 2 } ], @@ -25726,7 +25891,7 @@ } }, { - "id": 637, + "id": 677, "name": "identities", "kind": 1024, "kindString": "Property", @@ -25736,7 +25901,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 300, + "line": 341, "character": 2 } ], @@ -25744,13 +25909,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 590, + "id": 630, "name": "UserIdentity" } } }, { - "id": 626, + "id": 666, "name": "invited_at", "kind": 1024, "kindString": "Property", @@ -25760,7 +25925,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 289, + "line": 330, "character": 2 } ], @@ -25770,7 +25935,7 @@ } }, { - "id": 634, + "id": 674, "name": "last_sign_in_at", "kind": 1024, "kindString": "Property", @@ -25780,7 +25945,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 297, + "line": 338, "character": 2 } ], @@ -25790,7 +25955,7 @@ } }, { - "id": 624, + "id": 664, "name": "new_email", "kind": 1024, "kindString": "Property", @@ -25800,7 +25965,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 287, + "line": 328, "character": 2 } ], @@ -25810,7 +25975,7 @@ } }, { - "id": 625, + "id": 665, "name": "new_phone", "kind": 1024, "kindString": "Property", @@ -25820,7 +25985,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 288, + "line": 329, "character": 2 } ], @@ -25830,7 +25995,7 @@ } }, { - "id": 629, + "id": 669, "name": "phone", "kind": 1024, "kindString": "Property", @@ -25840,7 +26005,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 292, + "line": 333, "character": 2 } ], @@ -25850,7 +26015,7 @@ } }, { - "id": 633, + "id": 673, "name": "phone_confirmed_at", "kind": 1024, "kindString": "Property", @@ -25860,7 +26025,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 296, + "line": 337, "character": 2 } ], @@ -25870,7 +26035,7 @@ } }, { - "id": 622, + "id": 662, "name": "recovery_sent_at", "kind": 1024, "kindString": "Property", @@ -25880,7 +26045,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 285, + "line": 326, "character": 2 } ], @@ -25890,7 +26055,7 @@ } }, { - "id": 635, + "id": 675, "name": "role", "kind": 1024, "kindString": "Property", @@ -25900,7 +26065,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 298, + "line": 339, "character": 2 } ], @@ -25910,7 +26075,7 @@ } }, { - "id": 636, + "id": 676, "name": "updated_at", "kind": 1024, "kindString": "Property", @@ -25920,7 +26085,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 299, + "line": 340, "character": 2 } ], @@ -25930,7 +26095,7 @@ } }, { - "id": 619, + "id": 659, "name": "user_metadata", "kind": 1024, "kindString": "Property", @@ -25938,16 +26103,16 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 282, + "line": 323, "character": 2 } ], "type": { "type": "reference", - "id": 613, + "id": 653, "name": "UserMetadata", "dereferenced": { - "id": 613, + "id": 653, "name": "UserMetadata", "kind": 256, "kindString": "Interface", @@ -25955,19 +26120,19 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 275, + "line": 316, "character": 17 } ], "indexSignature": { - "id": 614, + "id": 654, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 615, + "id": 655, "name": "key", "kind": 32768, "flags": {}, @@ -25991,35 +26156,35 @@ "title": "Properties", "kind": 1024, "children": [ - 627, - 618, - 620, - 621, - 631, - 630, - 628, - 623, - 632, - 638, - 617, - 637, - 626, - 634, - 624, - 625, - 629, - 633, - 622, - 635, - 636, - 619 + 667, + 658, + 660, + 661, + 671, + 670, + 668, + 663, + 672, + 678, + 657, + 677, + 666, + 674, + 664, + 665, + 669, + 673, + 662, + 675, + 676, + 659 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 279, + "line": 320, "character": 17 } ] @@ -26032,34 +26197,34 @@ "title": "Properties", "kind": 1024, "children": [ - 581, - 584, - 583, - 580, - 579, - 582, - 585, - 586 + 621, + 624, + 623, + 620, + 619, + 622, + 625, + 626 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 181, + "line": 222, "character": 17 } ] }, { - "id": 656, + "id": 696, "name": "Subscription", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 657, + "id": 697, "name": "id", "kind": 1024, "kindString": "Property", @@ -26070,7 +26235,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 399, + "line": 440, "character": 2 } ], @@ -26080,7 +26245,7 @@ } }, { - "id": 658, + "id": 698, "name": "callback", "kind": 2048, "kindString": "Method", @@ -26088,13 +26253,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 403, + "line": 444, "character": 2 } ], "signatures": [ { - "id": 659, + "id": 699, "name": "callback", "kind": 4096, "kindString": "Call signature", @@ -26104,17 +26269,17 @@ }, "parameters": [ { - "id": 660, + "id": 700, "name": "event", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 474, + "id": 480, "name": "AuthChangeEvent", "dereferenced": { - "id": 474, + "id": 480, "name": "AuthChangeEvent", "kind": 4194304, "kindString": "Type alias", @@ -26154,7 +26319,7 @@ "value": "USER_UPDATED" }, { - "id": 473, + "id": 479, "name": "AuthChangeEventMFA", "kind": 4194304, "kindString": "Type alias", @@ -26177,7 +26342,7 @@ } }, { - "id": 661, + "id": 701, "name": "session", "kind": 32768, "kindString": "Parameter", @@ -26191,7 +26356,7 @@ }, { "type": "reference", - "id": 578, + "id": 618, "name": "Session" } ] @@ -26206,7 +26371,7 @@ ] }, { - "id": 662, + "id": 702, "name": "unsubscribe", "kind": 2048, "kindString": "Method", @@ -26214,13 +26379,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 407, + "line": 448, "character": 2 } ], "signatures": [ { - "id": 663, + "id": 703, "name": "unsubscribe", "kind": 4096, "kindString": "Call signature", @@ -26241,35 +26406,35 @@ "title": "Properties", "kind": 1024, "children": [ - 657 + 697 ] }, { "title": "Methods", "kind": 2048, "children": [ - 658, - 662 + 698, + 702 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 395, + "line": 436, "character": 17 } ] }, { - "id": 664, + "id": 704, "name": "UpdatableFactorAttributes", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 665, + "id": 705, "name": "friendlyName", "kind": 1024, "kindString": "Property", @@ -26277,7 +26442,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 411, + "line": 452, "character": 2 } ], @@ -26292,27 +26457,27 @@ "title": "Properties", "kind": 1024, "children": [ - 665 + 705 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 410, + "line": 451, "character": 17 } ] }, { - "id": 616, + "id": 656, "name": "User", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 627, + "id": 667, "name": "action_link", "kind": 1024, "kindString": "Property", @@ -26322,7 +26487,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 290, + "line": 331, "character": 2 } ], @@ -26332,7 +26497,7 @@ } }, { - "id": 618, + "id": 658, "name": "app_metadata", "kind": 1024, "kindString": "Property", @@ -26340,23 +26505,23 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 281, + "line": 322, "character": 2 } ], "type": { "type": "reference", - "id": 609, + "id": 649, "name": "UserAppMetadata", "dereferenced": { - "id": 609, + "id": 649, "name": "UserAppMetadata", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 610, + "id": 650, "name": "provider", "kind": 1024, "kindString": "Property", @@ -26366,7 +26531,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 271, + "line": 312, "character": 2 } ], @@ -26381,26 +26546,26 @@ "title": "Properties", "kind": 1024, "children": [ - 610 + 650 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 270, + "line": 311, "character": 17 } ], "indexSignature": { - "id": 611, + "id": 651, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 612, + "id": 652, "name": "key", "kind": 32768, "flags": {}, @@ -26419,7 +26584,7 @@ } }, { - "id": 620, + "id": 660, "name": "aud", "kind": 1024, "kindString": "Property", @@ -26427,7 +26592,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 283, + "line": 324, "character": 2 } ], @@ -26437,598 +26602,13 @@ } }, { - "id": 621, + "id": 661, "name": "confirmation_sent_at", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 284, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 631, - "name": "confirmed_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 294, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 630, - "name": "created_at", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 293, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 628, - "name": "email", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 291, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 623, - "name": "email_change_sent_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 286, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 632, - "name": "email_confirmed_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 295, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 638, - "name": "factors", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 301, - "character": 2 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "id": 602, - "name": "Factor" - } - } - }, - { - "id": 617, - "name": "id", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 280, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 637, - "name": "identities", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 300, - "character": 2 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "id": 590, - "name": "UserIdentity" - } - } - }, - { - "id": 626, - "name": "invited_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 289, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 634, - "name": "last_sign_in_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 297, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 624, - "name": "new_email", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 287, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 625, - "name": "new_phone", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 288, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 629, - "name": "phone", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 292, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 633, - "name": "phone_confirmed_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 296, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 622, - "name": "recovery_sent_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 285, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 635, - "name": "role", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 298, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 636, - "name": "updated_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 299, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 619, - "name": "user_metadata", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 282, - "character": 2 - } - ], - "type": { - "type": "reference", - "id": 613, - "name": "UserMetadata", - "dereferenced": { - "id": 613, - "name": "UserMetadata", - "kind": 256, - "kindString": "Interface", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 275, - "character": 17 - } - ], - "indexSignature": { - "id": 614, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": {}, - "parameters": [ - { - "id": 615, - "name": "key", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - } - } - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 627, - 618, - 620, - 621, - 631, - 630, - 628, - 623, - 632, - 638, - 617, - 637, - 626, - 634, - 624, - 625, - 629, - 633, - 622, - 635, - 636, - 619 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 279, - "character": 17 - } - ] - }, - { - "id": 609, - "name": "UserAppMetadata", - "kind": 256, - "kindString": "Interface", - "flags": {}, - "children": [ - { - "id": 610, - "name": "provider", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 271, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 610 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 270, - "character": 17 - } - ], - "indexSignature": { - "id": 611, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": {}, - "parameters": [ - { - "id": 612, - "name": "key", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - } - }, - { - "id": 639, - "name": "UserAttributes", - "kind": 256, - "kindString": "Interface", - "flags": {}, - "children": [ - { - "id": 644, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", - "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n\n" - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 333, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "object" - } - }, - { - "id": 640, - "name": "email", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "The user's email." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 308, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 643, - "name": "nonce", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "The nonce sent for reauthentication if the user's password is to be updated.", - "text": "Call reauthenticate() to obtain the nonce first.\n" - }, "sources": [ { "fileName": "src/lib/types.ts", @@ -27042,20 +26622,17 @@ } }, { - "id": 642, - "name": "password", + "id": 671, + "name": "confirmed_at", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "comment": { - "shortText": "The user's password." - }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 318, + "line": 335, "character": 2 } ], @@ -27065,20 +26642,443 @@ } }, { - "id": 641, + "id": 670, + "name": "created_at", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 334, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 668, + "name": "email", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 332, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 663, + "name": "email_change_sent_at", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 327, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 672, + "name": "email_confirmed_at", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 336, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 678, + "name": "factors", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 342, + "character": 2 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "id": 642, + "name": "Factor" + } + } + }, + { + "id": 657, + "name": "id", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 321, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 677, + "name": "identities", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 341, + "character": 2 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "id": 630, + "name": "UserIdentity" + } + } + }, + { + "id": 666, + "name": "invited_at", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 330, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 674, + "name": "last_sign_in_at", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 338, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 664, + "name": "new_email", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 328, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 665, + "name": "new_phone", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 329, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 669, "name": "phone", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "comment": { - "shortText": "The user's phone." + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 333, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 673, + "name": "phone_confirmed_at", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 313, + "line": 337, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 662, + "name": "recovery_sent_at", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 326, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 675, + "name": "role", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 339, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 676, + "name": "updated_at", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 340, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 659, + "name": "user_metadata", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 323, + "character": 2 + } + ], + "type": { + "type": "reference", + "id": 653, + "name": "UserMetadata", + "dereferenced": { + "id": 653, + "name": "UserMetadata", + "kind": 256, + "kindString": "Interface", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 316, + "character": 17 + } + ], + "indexSignature": { + "id": 654, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ + { + "id": 655, + "name": "key", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + } + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 667, + 658, + 660, + 661, + 671, + 670, + 668, + 663, + 672, + 678, + 657, + 677, + 666, + 674, + 664, + 665, + 669, + 673, + 662, + 675, + 676, + 659 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 320, + "character": 17 + } + ] + }, + { + "id": 649, + "name": "UserAppMetadata", + "kind": 256, + "kindString": "Interface", + "flags": {}, + "children": [ + { + "id": 650, + "name": "provider", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 312, "character": 2 } ], @@ -27093,31 +27093,196 @@ "title": "Properties", "kind": 1024, "children": [ - 644, - 640, - 643, - 642, - 641 + 650 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 304, + "line": 311, + "character": 17 + } + ], + "indexSignature": { + "id": 651, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ + { + "id": 652, + "name": "key", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + }, + { + "id": 679, + "name": "UserAttributes", + "kind": 256, + "kindString": "Interface", + "flags": {}, + "children": [ + { + "id": 684, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.", + "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n\n" + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 374, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "object" + } + }, + { + "id": 680, + "name": "email", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "The user's email." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 349, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 683, + "name": "nonce", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "The nonce sent for reauthentication if the user's password is to be updated.", + "text": "Call reauthenticate() to obtain the nonce first.\n" + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 366, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 682, + "name": "password", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "The user's password." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 359, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 681, + "name": "phone", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "The user's phone." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 354, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 684, + 680, + 683, + 682, + 681 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 345, "character": 17 } ] }, { - "id": 590, + "id": 630, "name": "UserIdentity", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 599, + "id": 639, "name": "created_at", "kind": 1024, "kindString": "Property", @@ -27127,7 +27292,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 238, + "line": 279, "character": 2 } ], @@ -27137,7 +27302,7 @@ } }, { - "id": 591, + "id": 631, "name": "id", "kind": 1024, "kindString": "Property", @@ -27145,7 +27310,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 231, + "line": 272, "character": 2 } ], @@ -27155,7 +27320,7 @@ } }, { - "id": 593, + "id": 633, "name": "identity_data", "kind": 1024, "kindString": "Property", @@ -27165,27 +27330,27 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 233, + "line": 274, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 594, + "id": 634, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": { - "id": 595, + "id": 635, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 596, + "id": 636, "name": "key", "kind": 32768, "flags": {}, @@ -27204,7 +27369,7 @@ } }, { - "id": 597, + "id": 637, "name": "identity_id", "kind": 1024, "kindString": "Property", @@ -27212,7 +27377,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 236, + "line": 277, "character": 2 } ], @@ -27222,7 +27387,7 @@ } }, { - "id": 600, + "id": 640, "name": "last_sign_in_at", "kind": 1024, "kindString": "Property", @@ -27232,7 +27397,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 239, + "line": 280, "character": 2 } ], @@ -27242,7 +27407,7 @@ } }, { - "id": 598, + "id": 638, "name": "provider", "kind": 1024, "kindString": "Property", @@ -27250,7 +27415,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 237, + "line": 278, "character": 2 } ], @@ -27260,7 +27425,7 @@ } }, { - "id": 601, + "id": 641, "name": "updated_at", "kind": 1024, "kindString": "Property", @@ -27270,7 +27435,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 240, + "line": 281, "character": 2 } ], @@ -27280,7 +27445,7 @@ } }, { - "id": 592, + "id": 632, "name": "user_id", "kind": 1024, "kindString": "Property", @@ -27288,7 +27453,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 232, + "line": 273, "character": 2 } ], @@ -27303,27 +27468,27 @@ "title": "Properties", "kind": 1024, "children": [ - 599, - 591, - 593, - 597, - 600, - 598, - 601, - 592 + 639, + 631, + 633, + 637, + 640, + 638, + 641, + 632 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 230, + "line": 271, "character": 17 } ] }, { - "id": 613, + "id": 653, "name": "UserMetadata", "kind": 256, "kindString": "Interface", @@ -27331,19 +27496,19 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 275, + "line": 316, "character": 17 } ], "indexSignature": { - "id": 614, + "id": 654, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 615, + "id": 655, "name": "key", "kind": 32768, "flags": {}, @@ -27360,14 +27525,14 @@ } }, { - "id": 745, + "id": 790, "name": "VerifyEmailOtpParams", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 746, + "id": 791, "name": "email", "kind": 1024, "kindString": "Property", @@ -27378,7 +27543,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 570, + "line": 618, "character": 2 } ], @@ -27388,7 +27553,7 @@ } }, { - "id": 749, + "id": 794, "name": "options", "kind": 1024, "kindString": "Property", @@ -27398,21 +27563,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 575, + "line": 623, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 750, + "id": 795, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 752, + "id": 797, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -27431,7 +27596,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 583, + "line": 631, "character": 4 } ], @@ -27441,7 +27606,7 @@ } }, { - "id": 751, + "id": 796, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -27454,7 +27619,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 577, + "line": 625, "character": 4 } ], @@ -27469,8 +27634,8 @@ "title": "Properties", "kind": 1024, "children": [ - 752, - 751 + 797, + 796 ] } ] @@ -27478,7 +27643,7 @@ } }, { - "id": 747, + "id": 792, "name": "token", "kind": 1024, "kindString": "Property", @@ -27489,7 +27654,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 572, + "line": 620, "character": 2 } ], @@ -27499,7 +27664,7 @@ } }, { - "id": 748, + "id": 793, "name": "type", "kind": 1024, "kindString": "Property", @@ -27510,16 +27675,16 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 574, + "line": 622, "character": 2 } ], "type": { "type": "reference", - "id": 757, + "id": 802, "name": "EmailOtpType", "dereferenced": { - "id": 757, + "id": 802, "name": "EmailOtpType", "kind": 4194304, "kindString": "Type alias", @@ -27527,7 +27692,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 596, + "line": 644, "character": 12 } ], @@ -27569,30 +27734,30 @@ "title": "Properties", "kind": 1024, "children": [ - 746, - 749, - 747, - 748 + 791, + 794, + 792, + 793 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 568, + "line": 616, "character": 17 } ] }, { - "id": 737, + "id": 782, "name": "VerifyMobileOtpParams", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 741, + "id": 786, "name": "options", "kind": 1024, "kindString": "Property", @@ -27602,21 +27767,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 556, + "line": 604, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 742, + "id": 787, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 744, + "id": 789, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -27635,7 +27800,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 565, + "line": 613, "character": 4 } ], @@ -27645,7 +27810,7 @@ } }, { - "id": 743, + "id": 788, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -27658,7 +27823,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 558, + "line": 606, "character": 4 } ], @@ -27673,8 +27838,8 @@ "title": "Properties", "kind": 1024, "children": [ - 744, - 743 + 789, + 788 ] } ] @@ -27682,7 +27847,7 @@ } }, { - "id": 738, + "id": 783, "name": "phone", "kind": 1024, "kindString": "Property", @@ -27693,7 +27858,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 551, + "line": 599, "character": 2 } ], @@ -27703,7 +27868,7 @@ } }, { - "id": 739, + "id": 784, "name": "token", "kind": 1024, "kindString": "Property", @@ -27714,7 +27879,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 553, + "line": 601, "character": 2 } ], @@ -27724,7 +27889,7 @@ } }, { - "id": 740, + "id": 785, "name": "type", "kind": 1024, "kindString": "Property", @@ -27735,16 +27900,16 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 555, + "line": 603, "character": 2 } ], "type": { "type": "reference", - "id": 756, + "id": 801, "name": "MobileOtpType", "dereferenced": { - "id": 756, + "id": 801, "name": "MobileOtpType", "kind": 4194304, "kindString": "Type alias", @@ -27752,7 +27917,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 595, + "line": 643, "character": 12 } ], @@ -27778,30 +27943,30 @@ "title": "Properties", "kind": 1024, "children": [ - 741, - 738, - 739, - 740 + 786, + 783, + 784, + 785 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 549, + "line": 597, "character": 17 } ] }, { - "id": 753, + "id": 798, "name": "VerifyTokenHashParams", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 754, + "id": 799, "name": "token_hash", "kind": 1024, "kindString": "Property", @@ -27812,7 +27977,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 589, + "line": 637, "character": 2 } ], @@ -27822,7 +27987,7 @@ } }, { - "id": 755, + "id": 800, "name": "type", "kind": 1024, "kindString": "Property", @@ -27833,16 +27998,16 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 592, + "line": 640, "character": 2 } ], "type": { "type": "reference", - "id": 757, + "id": 802, "name": "EmailOtpType", "dereferenced": { - "id": 757, + "id": 802, "name": "EmailOtpType", "kind": 4194304, "kindString": "Type alias", @@ -27850,7 +28015,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 596, + "line": 644, "character": 12 } ], @@ -27892,21 +28057,21 @@ "title": "Properties", "kind": 1024, "children": [ - 754, - 755 + 799, + 800 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 587, + "line": 635, "character": 17 } ] }, { - "id": 474, + "id": 480, "name": "AuthChangeEvent", "kind": 4194304, "kindString": "Type alias", @@ -27946,7 +28111,7 @@ "value": "USER_UPDATED" }, { - "id": 473, + "id": 479, "name": "AuthChangeEventMFA", "kind": 4194304, "kindString": "Type alias", @@ -27967,7 +28132,7 @@ } }, { - "id": 473, + "id": 479, "name": "AuthChangeEventMFA", "kind": 4194304, "kindString": "Type alias", @@ -27985,7 +28150,7 @@ } }, { - "id": 714, + "id": 759, "name": "AuthFlowType", "kind": 4194304, "kindString": "Type alias", @@ -27993,7 +28158,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 517, + "line": 565, "character": 12 } ], @@ -28012,7 +28177,7 @@ } }, { - "id": 950, + "id": 996, "name": "AuthMFAAdminDeleteFactorParams", "kind": 4194304, "kindString": "Type alias", @@ -28028,21 +28193,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 978, + "line": 1028, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 951, + "id": 997, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 952, + "id": 998, "name": "id", "kind": 1024, "kindString": "Property", @@ -28053,7 +28218,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 980, + "line": 1030, "character": 2 } ], @@ -28063,7 +28228,7 @@ } }, { - "id": 953, + "id": 999, "name": "userId", "kind": 1024, "kindString": "Property", @@ -28074,7 +28239,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 983, + "line": 1033, "character": 2 } ], @@ -28089,15 +28254,15 @@ "title": "Properties", "kind": 1024, "children": [ - 952, - 953 + 998, + 999 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 978, + "line": 1028, "character": 45 } ] @@ -28105,7 +28270,7 @@ } }, { - "id": 941, + "id": 987, "name": "AuthMFAAdminDeleteFactorResponse", "kind": 4194304, "kindString": "Type alias", @@ -28121,13 +28286,618 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 965, + "line": 1015, "character": 12 } ], "type": { "type": "union", "types": [ + { + "type": "reflection", + "declaration": { + "id": 988, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 989, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1017, + "character": 6 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 990, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 991, + "name": "id", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "comment": { + "shortText": "ID of the factor that was successfully deleted." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1019, + "character": 8 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 991 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1017, + "character": 12 + } + ] + } + } + }, + { + "id": 992, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1021, + "character": 6 + } + ], + "type": { + "type": "literal", + "value": null + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 989, + 992 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1016, + "character": 4 + } + ] + } + }, + { + "type": "reflection", + "declaration": { + "id": 993, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 994, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1023, + "character": 6 + } + ], + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 995, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1023, + "character": 18 + } + ], + "type": { + "type": "reference", + "id": 1058, + "name": "AuthError" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 994, + 995 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1023, + "character": 4 + } + ] + } + } + ] + } + }, + { + "id": 1009, + "name": "AuthMFAAdminListFactorsParams", + "kind": 4194304, + "kindString": "Type alias", + "flags": {}, + "comment": { + "tags": [ + { + "tag": "expermental", + "text": "\n" + } + ] + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1052, + "character": 12 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1010, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 1011, + "name": "userId", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "comment": { + "shortText": "ID of the user." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1054, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 1011 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1052, + "character": 44 + } + ] + } + } + }, + { + "id": 1000, + "name": "AuthMFAAdminListFactorsResponse", + "kind": 4194304, + "kindString": "Type alias", + "flags": {}, + "comment": { + "tags": [ + { + "tag": "expermental", + "text": "\n" + } + ] + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1039, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 1001, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 1002, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1041, + "character": 6 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1003, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 1004, + "name": "factors", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "comment": { + "shortText": "All factors attached to the user." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1043, + "character": 8 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "id": 642, + "name": "Factor" + } + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 1004 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1041, + "character": 12 + } + ] + } + } + }, + { + "id": 1005, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1045, + "character": 6 + } + ], + "type": { + "type": "literal", + "value": null + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 1002, + 1005 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1040, + "character": 4 + } + ] + } + }, + { + "type": "reflection", + "declaration": { + "id": 1006, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 1007, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1047, + "character": 6 + } + ], + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 1008, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1047, + "character": 18 + } + ], + "type": { + "type": "reference", + "id": 1058, + "name": "AuthError" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 1007, + 1008 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1047, + "character": 4 + } + ] + } + } + ] + } + }, + { + "id": 935, + "name": "AuthMFAChallengeResponse", + "kind": 4194304, + "kindString": "Type alias", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 892, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 936, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 937, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 894, + "character": 6 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 938, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 940, + "name": "expires_at", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "comment": { + "shortText": "Timestamp in UNIX seconds when this challenge will no longer be usable." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 899, + "character": 8 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 939, + "name": "id", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "comment": { + "shortText": "ID of the newly created challenge." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 896, + "character": 8 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 940, + 939 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 894, + "character": 12 + } + ] + } + } + }, + { + "id": 941, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 901, + "character": 6 + } + ], + "type": { + "type": "literal", + "value": null + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 937, + 941 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 893, + "character": 4 + } + ] + } + }, { "type": "reflection", "declaration": { @@ -28146,62 +28916,17 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 967, + "line": 903, "character": 6 } ], "type": { - "type": "reflection", - "declaration": { - "id": 944, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 945, - "name": "id", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "ID of the factor that was successfully deleted." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 969, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 945 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 967, - "character": 12 - } - ] - } + "type": "literal", + "value": null } }, { - "id": 946, + "id": 944, "name": "error", "kind": 1024, "kindString": "Property", @@ -28209,13 +28934,14 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 971, - "character": 6 + "line": 903, + "character": 18 } ], "type": { - "type": "literal", - "value": null + "type": "reference", + "id": 1058, + "name": "AuthError" } } ], @@ -28225,903 +28951,14 @@ "kind": 1024, "children": [ 943, - 946 + 944 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 966, - "character": 4 - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 947, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 948, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 973, - "character": 6 - } - ], - "type": { - "type": "literal", - "value": null - } - }, - { - "id": 949, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 973, - "character": 18 - } - ], - "type": { - "type": "reference", - "id": 1010, - "name": "AuthError" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 948, - 949 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 973, - "character": 4 - } - ] - } - } - ] - } - }, - { - "id": 963, - "name": "AuthMFAAdminListFactorsParams", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "comment": { - "tags": [ - { - "tag": "expermental", - "text": "\n" - } - ] - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 1002, - "character": 12 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 964, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 965, - "name": "userId", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "ID of the user." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 1004, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 965 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 1002, - "character": 44 - } - ] - } - } - }, - { - "id": 954, - "name": "AuthMFAAdminListFactorsResponse", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "comment": { - "tags": [ - { - "tag": "expermental", - "text": "\n" - } - ] - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 989, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 955, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 956, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 991, - "character": 6 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 957, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 958, - "name": "factors", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "All factors attached to the user." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 993, - "character": 8 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "id": 602, - "name": "Factor" - } - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 958 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 991, - "character": 12 - } - ] - } - } - }, - { - "id": 959, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 995, - "character": 6 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 956, - 959 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 990, - "character": 4 - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 960, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 961, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 997, - "character": 6 - } - ], - "type": { - "type": "literal", - "value": null - } - }, - { - "id": 962, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 997, - "character": 18 - } - ], - "type": { - "type": "reference", - "id": 1010, - "name": "AuthError" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 961, - 962 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 997, - "character": 4 - } - ] - } - } - ] - } - }, - { - "id": 889, - "name": "AuthMFAChallengeResponse", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 842, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 890, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 891, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 844, - "character": 6 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 892, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 894, - "name": "expires_at", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "Timestamp in UNIX seconds when this challenge will no longer be usable." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 849, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 893, - "name": "id", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "ID of the newly created challenge." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 846, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 894, - 893 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 844, - "character": 12 - } - ] - } - } - }, - { - "id": 895, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 851, - "character": 6 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 891, - 895 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 843, - "character": 4 - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 896, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 897, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 853, - "character": 6 - } - ], - "type": { - "type": "literal", - "value": null - } - }, - { - "id": 898, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 853, - "character": 18 - } - ], - "type": { - "type": "reference", - "id": 1010, - "name": "AuthError" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 897, - 898 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 853, - "character": 4 - } - ] - } - } - ] - } - }, - { - "id": 865, - "name": "AuthMFAEnrollResponse", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 799, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 866, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 867, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 801, - "character": 6 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 868, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 869, - "name": "id", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "ID of the factor that was just enrolled (in an unverified state)." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 803, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 871, - "name": "totp", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "TOTP enrollment information." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 809, - "character": 8 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 872, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 873, - "name": "qr_code", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "Contains a QR code encoding the authenticator URI. You can\nconvert it to a URL by prepending `data:image/svg+xml;utf-8,` to\nthe value. Avoid logging this value to the console." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 813, - "character": 10 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 874, - "name": "secret", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The TOTP secret (also encoded in the QR code). Show this secret\nin a password-style field to the user, in case they are unable to\nscan the QR code. Avoid logging this value to the console." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 818, - "character": 10 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 875, - "name": "uri", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The authenticator URI encoded within the QR code, should you need\nto use it. Avoid loggin this value to the console." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 822, - "character": 10 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 873, - 874, - 875 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 809, - "character": 14 - } - ] - } - } - }, - { - "id": 870, - "name": "type", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "Type of MFA factor. Only `totp` supported for now." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 806, - "character": 8 - } - ], - "type": { - "type": "literal", - "value": "totp" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 869, - 871, - 870 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 801, - "character": 12 - } - ] - } - } - }, - { - "id": 876, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 825, - "character": 6 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 867, - 876 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 800, - "character": 4 - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 877, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 878, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 828, - "character": 6 - } - ], - "type": { - "type": "literal", - "value": null - } - }, - { - "id": 879, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 829, - "character": 6 - } - ], - "type": { - "type": "reference", - "id": 1010, - "name": "AuthError" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 878, - 879 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 827, + "line": 903, "character": 4 } ] @@ -29132,14 +28969,14 @@ }, { "id": 910, - "name": "AuthMFAGetAuthenticatorAssuranceLevelResponse", + "name": "AuthMFAEnrollResponse", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/lib/types.ts", - "line": 870, + "line": 847, "character": 12 } ], @@ -29164,7 +29001,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 872, + "line": 849, "character": 6 } ], @@ -29177,8 +29014,360 @@ "kindString": "Type literal", "flags": {}, "children": [ + { + "id": 921, + "name": "friendly_name", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "Friendly name of the factor, useful for distinguishing between factors" + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 873, + "character": 8 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 914, + "name": "id", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "comment": { + "shortText": "ID of the factor that was just enrolled (in an unverified state)." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 851, + "character": 8 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, { "id": 916, + "name": "totp", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "comment": { + "shortText": "TOTP enrollment information." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 857, + "character": 8 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 917, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 918, + "name": "qr_code", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "comment": { + "shortText": "Contains a QR code encoding the authenticator URI. You can\nconvert it to a URL by prepending `data:image/svg+xml;utf-8,` to\nthe value. Avoid logging this value to the console." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 861, + "character": 10 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 919, + "name": "secret", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "comment": { + "shortText": "The TOTP secret (also encoded in the QR code). Show this secret\nin a password-style field to the user, in case they are unable to\nscan the QR code. Avoid logging this value to the console." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 866, + "character": 10 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 920, + "name": "uri", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "comment": { + "shortText": "The authenticator URI encoded within the QR code, should you need\nto use it. Avoid loggin this value to the console." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 870, + "character": 10 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 918, + 919, + 920 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 857, + "character": 14 + } + ] + } + } + }, + { + "id": 915, + "name": "type", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "comment": { + "shortText": "Type of MFA factor. Only `totp` supported for now." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 854, + "character": 8 + } + ], + "type": { + "type": "literal", + "value": "totp" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 921, + 914, + 916, + 915 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 849, + "character": 12 + } + ] + } + } + }, + { + "id": 922, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 875, + "character": 6 + } + ], + "type": { + "type": "literal", + "value": null + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 912, + 922 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 848, + "character": 4 + } + ] + } + }, + { + "type": "reflection", + "declaration": { + "id": 923, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 924, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 878, + "character": 6 + } + ], + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 925, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 879, + "character": 6 + } + ], + "type": { + "type": "reference", + "id": 1058, + "name": "AuthError" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 924, + 925 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 877, + "character": 4 + } + ] + } + } + ] + } + }, + { + "id": 956, + "name": "AuthMFAGetAuthenticatorAssuranceLevelResponse", + "kind": 4194304, + "kindString": "Type alias", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 920, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 957, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 958, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 922, + "character": 6 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 959, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 962, "name": "currentAuthenticationMethods", "kind": 1024, "kindString": "Property", @@ -29189,7 +29378,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 889, + "line": 939, "character": 8 } ], @@ -29197,13 +29386,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 587, + "id": 627, "name": "AMREntry" } } }, { - "id": 914, + "id": 960, "name": "currentLevel", "kind": 1024, "kindString": "Property", @@ -29214,7 +29403,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 874, + "line": 924, "character": 8 } ], @@ -29223,7 +29412,7 @@ "types": [ { "type": "reference", - "id": 909, + "id": 955, "name": "AuthenticatorAssuranceLevels" }, { @@ -29234,7 +29423,7 @@ } }, { - "id": 915, + "id": 961, "name": "nextLevel", "kind": 1024, "kindString": "Property", @@ -29251,7 +29440,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 882, + "line": 932, "character": 8 } ], @@ -29260,7 +29449,7 @@ "types": [ { "type": "reference", - "id": 909, + "id": 955, "name": "AuthenticatorAssuranceLevels" }, { @@ -29276,16 +29465,16 @@ "title": "Properties", "kind": 1024, "children": [ - 916, - 914, - 915 + 962, + 960, + 961 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 872, + "line": 922, "character": 12 } ] @@ -29293,7 +29482,7 @@ } }, { - "id": 917, + "id": 963, "name": "error", "kind": 1024, "kindString": "Property", @@ -29301,7 +29490,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 891, + "line": 941, "character": 6 } ], @@ -29316,15 +29505,15 @@ "title": "Properties", "kind": 1024, "children": [ - 912, - 917 + 958, + 963 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 871, + "line": 921, "character": 4 } ] @@ -29333,14 +29522,14 @@ { "type": "reflection", "declaration": { - "id": 918, + "id": 964, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 919, + "id": 965, "name": "data", "kind": 1024, "kindString": "Property", @@ -29348,7 +29537,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 893, + "line": 943, "character": 6 } ], @@ -29358,7 +29547,7 @@ } }, { - "id": 920, + "id": 966, "name": "error", "kind": 1024, "kindString": "Property", @@ -29366,13 +29555,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 893, + "line": 943, "character": 18 } ], "type": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } } @@ -29382,15 +29571,15 @@ "title": "Properties", "kind": 1024, "children": [ - 919, - 920 + 965, + 966 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 893, + "line": 943, "character": 4 } ] @@ -29400,7 +29589,7 @@ } }, { - "id": 899, + "id": 945, "name": "AuthMFAListFactorsResponse", "kind": 4194304, "kindString": "Type alias", @@ -29408,7 +29597,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 855, + "line": 905, "character": 12 } ], @@ -29418,14 +29607,14 @@ { "type": "reflection", "declaration": { - "id": 900, + "id": 946, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 901, + "id": 947, "name": "data", "kind": 1024, "kindString": "Property", @@ -29433,21 +29622,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 857, + "line": 907, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 902, + "id": 948, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 903, + "id": 949, "name": "all", "kind": 1024, "kindString": "Property", @@ -29458,7 +29647,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 859, + "line": 909, "character": 8 } ], @@ -29466,13 +29655,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 602, + "id": 642, "name": "Factor" } } }, { - "id": 904, + "id": 950, "name": "totp", "kind": 1024, "kindString": "Property", @@ -29483,7 +29672,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 862, + "line": 912, "character": 8 } ], @@ -29491,7 +29680,7 @@ "type": "array", "elementType": { "type": "reference", - "id": 602, + "id": 642, "name": "Factor" } } @@ -29502,15 +29691,15 @@ "title": "Properties", "kind": 1024, "children": [ - 903, - 904 + 949, + 950 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 857, + "line": 907, "character": 12 } ] @@ -29518,7 +29707,7 @@ } }, { - "id": 905, + "id": 951, "name": "error", "kind": 1024, "kindString": "Property", @@ -29526,7 +29715,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 864, + "line": 914, "character": 6 } ], @@ -29541,15 +29730,15 @@ "title": "Properties", "kind": 1024, "children": [ - 901, - 905 + 947, + 951 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 856, + "line": 906, "character": 4 } ] @@ -29558,14 +29747,14 @@ { "type": "reflection", "declaration": { - "id": 906, + "id": 952, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 907, + "id": 953, "name": "data", "kind": 1024, "kindString": "Property", @@ -29573,7 +29762,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 866, + "line": 916, "character": 6 } ], @@ -29583,7 +29772,7 @@ } }, { - "id": 908, + "id": 954, "name": "error", "kind": 1024, "kindString": "Property", @@ -29591,13 +29780,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 866, + "line": 916, "character": 18 } ], "type": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } } @@ -29607,15 +29796,15 @@ "title": "Properties", "kind": 1024, "children": [ - 907, - 908 + 953, + 954 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 866, + "line": 916, "character": 4 } ] @@ -29625,7 +29814,7 @@ } }, { - "id": 880, + "id": 926, "name": "AuthMFAUnenrollResponse", "kind": 4194304, "kindString": "Type alias", @@ -29633,7 +29822,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 832, + "line": 882, "character": 12 } ], @@ -29643,14 +29832,14 @@ { "type": "reflection", "declaration": { - "id": 881, + "id": 927, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 882, + "id": 928, "name": "data", "kind": 1024, "kindString": "Property", @@ -29658,21 +29847,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 834, + "line": 884, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 883, + "id": 929, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 884, + "id": 930, "name": "id", "kind": 1024, "kindString": "Property", @@ -29683,7 +29872,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 836, + "line": 886, "character": 8 } ], @@ -29698,14 +29887,14 @@ "title": "Properties", "kind": 1024, "children": [ - 884 + 930 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 834, + "line": 884, "character": 12 } ] @@ -29713,7 +29902,7 @@ } }, { - "id": 885, + "id": 931, "name": "error", "kind": 1024, "kindString": "Property", @@ -29721,7 +29910,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 838, + "line": 888, "character": 6 } ], @@ -29736,15 +29925,15 @@ "title": "Properties", "kind": 1024, "children": [ - 882, - 885 + 928, + 931 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 833, + "line": 883, "character": 4 } ] @@ -29753,14 +29942,14 @@ { "type": "reflection", "declaration": { - "id": 886, + "id": 932, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 887, + "id": 933, "name": "data", "kind": 1024, "kindString": "Property", @@ -29768,7 +29957,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 840, + "line": 890, "character": 6 } ], @@ -29778,7 +29967,7 @@ } }, { - "id": 888, + "id": 934, "name": "error", "kind": 1024, "kindString": "Property", @@ -29786,13 +29975,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 840, + "line": 890, "character": 18 } ], "type": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } } @@ -29802,15 +29991,15 @@ "title": "Properties", "kind": 1024, "children": [ - 887, - 888 + 933, + 934 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 840, + "line": 890, "character": 4 } ] @@ -29820,7 +30009,7 @@ } }, { - "id": 852, + "id": 897, "name": "AuthMFAVerifyResponse", "kind": 4194304, "kindString": "Type alias", @@ -29828,7 +30017,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 774, + "line": 822, "character": 12 } ], @@ -29838,14 +30027,14 @@ { "type": "reflection", "declaration": { - "id": 853, + "id": 898, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 854, + "id": 899, "name": "data", "kind": 1024, "kindString": "Property", @@ -29853,21 +30042,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 776, + "line": 824, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 855, + "id": 900, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 856, + "id": 901, "name": "access_token", "kind": 1024, "kindString": "Property", @@ -29878,7 +30067,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 778, + "line": 826, "character": 8 } ], @@ -29888,7 +30077,7 @@ } }, { - "id": 858, + "id": 903, "name": "expires_in", "kind": 1024, "kindString": "Property", @@ -29899,7 +30088,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 784, + "line": 832, "character": 8 } ], @@ -29909,7 +30098,7 @@ } }, { - "id": 859, + "id": 904, "name": "refresh_token", "kind": 1024, "kindString": "Property", @@ -29920,7 +30109,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 787, + "line": 835, "character": 8 } ], @@ -29930,7 +30119,7 @@ } }, { - "id": 857, + "id": 902, "name": "token_type", "kind": 1024, "kindString": "Property", @@ -29941,7 +30130,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 781, + "line": 829, "character": 8 } ], @@ -29951,7 +30140,7 @@ } }, { - "id": 860, + "id": 905, "name": "user", "kind": 1024, "kindString": "Property", @@ -29962,13 +30151,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 790, + "line": 838, "character": 8 } ], "type": { "type": "reference", - "id": 616, + "id": 656, "name": "User" } } @@ -29978,18 +30167,18 @@ "title": "Properties", "kind": 1024, "children": [ - 856, - 858, - 859, - 857, - 860 + 901, + 903, + 904, + 902, + 905 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 776, + "line": 824, "character": 12 } ] @@ -29997,7 +30186,7 @@ } }, { - "id": 861, + "id": 906, "name": "error", "kind": 1024, "kindString": "Property", @@ -30005,7 +30194,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 792, + "line": 840, "character": 6 } ], @@ -30020,15 +30209,15 @@ "title": "Properties", "kind": 1024, "children": [ - 854, - 861 + 899, + 906 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 775, + "line": 823, "character": 4 } ] @@ -30037,14 +30226,14 @@ { "type": "reflection", "declaration": { - "id": 862, + "id": 907, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 863, + "id": 908, "name": "data", "kind": 1024, "kindString": "Property", @@ -30052,7 +30241,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 795, + "line": 843, "character": 6 } ], @@ -30062,7 +30251,7 @@ } }, { - "id": 864, + "id": 909, "name": "error", "kind": 1024, "kindString": "Property", @@ -30070,13 +30259,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 796, + "line": 844, "character": 6 } ], "type": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } } @@ -30086,15 +30275,15 @@ "title": "Properties", "kind": 1024, "children": [ - 863, - 864 + 908, + 909 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 794, + "line": 842, "character": 4 } ] @@ -30104,7 +30293,7 @@ } }, { - "id": 517, + "id": 542, "name": "AuthOtpResponse", "kind": 4194304, "kindString": "Type alias", @@ -30116,7 +30305,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 106, + "line": 129, "character": 12 } ], @@ -30126,14 +30315,14 @@ { "type": "reflection", "declaration": { - "id": 518, + "id": 543, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 519, + "id": 544, "name": "data", "kind": 1024, "kindString": "Property", @@ -30141,21 +30330,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 108, + "line": 131, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 520, + "id": 545, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 523, + "id": 548, "name": "messageId", "kind": 1024, "kindString": "Property", @@ -30165,7 +30354,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 108, + "line": 131, "character": 41 } ], @@ -30184,7 +30373,7 @@ } }, { - "id": 522, + "id": 547, "name": "session", "kind": 1024, "kindString": "Property", @@ -30192,7 +30381,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 108, + "line": 131, "character": 26 } ], @@ -30202,7 +30391,7 @@ } }, { - "id": 521, + "id": 546, "name": "user", "kind": 1024, "kindString": "Property", @@ -30210,7 +30399,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 108, + "line": 131, "character": 14 } ], @@ -30225,16 +30414,16 @@ "title": "Properties", "kind": 1024, "children": [ - 523, - 522, - 521 + 548, + 547, + 546 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 108, + "line": 131, "character": 12 } ] @@ -30242,7 +30431,7 @@ } }, { - "id": 524, + "id": 549, "name": "error", "kind": 1024, "kindString": "Property", @@ -30250,7 +30439,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 109, + "line": 132, "character": 6 } ], @@ -30265,15 +30454,15 @@ "title": "Properties", "kind": 1024, "children": [ - 519, - 524 + 544, + 549 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 107, + "line": 130, "character": 4 } ] @@ -30282,14 +30471,14 @@ { "type": "reflection", "declaration": { - "id": 525, + "id": 550, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 526, + "id": 551, "name": "data", "kind": 1024, "kindString": "Property", @@ -30297,21 +30486,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 112, + "line": 135, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 527, + "id": 552, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 530, + "id": 555, "name": "messageId", "kind": 1024, "kindString": "Property", @@ -30321,7 +30510,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 112, + "line": 135, "character": 41 } ], @@ -30340,7 +30529,7 @@ } }, { - "id": 529, + "id": 554, "name": "session", "kind": 1024, "kindString": "Property", @@ -30348,7 +30537,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 112, + "line": 135, "character": 26 } ], @@ -30358,7 +30547,7 @@ } }, { - "id": 528, + "id": 553, "name": "user", "kind": 1024, "kindString": "Property", @@ -30366,7 +30555,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 112, + "line": 135, "character": 14 } ], @@ -30381,16 +30570,16 @@ "title": "Properties", "kind": 1024, "children": [ - 530, - 529, - 528 + 555, + 554, + 553 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 112, + "line": 135, "character": 12 } ] @@ -30398,7 +30587,7 @@ } }, { - "id": 531, + "id": 556, "name": "error", "kind": 1024, "kindString": "Property", @@ -30406,13 +30595,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 113, + "line": 136, "character": 6 } ], "type": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } } @@ -30422,15 +30611,15 @@ "title": "Properties", "kind": 1024, "children": [ - 526, - 531 + 551, + 556 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 111, + "line": 134, "character": 4 } ] @@ -30440,7 +30629,7 @@ } }, { - "id": 504, + "id": 515, "name": "AuthResponse", "kind": 4194304, "kindString": "Type alias", @@ -30448,7 +30637,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 85, + "line": 91, "character": 12 } ], @@ -30458,14 +30647,14 @@ { "type": "reflection", "declaration": { - "id": 505, + "id": 516, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 506, + "id": 517, "name": "data", "kind": 1024, "kindString": "Property", @@ -30473,21 +30662,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 87, + "line": 93, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 507, + "id": 518, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 509, + "id": 520, "name": "session", "kind": 1024, "kindString": "Property", @@ -30495,7 +30684,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 89, + "line": 95, "character": 8 } ], @@ -30504,7 +30693,7 @@ "types": [ { "type": "reference", - "id": 578, + "id": 618, "name": "Session" }, { @@ -30515,7 +30704,7 @@ } }, { - "id": 508, + "id": 519, "name": "user", "kind": 1024, "kindString": "Property", @@ -30523,7 +30712,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 88, + "line": 94, "character": 8 } ], @@ -30532,7 +30721,7 @@ "types": [ { "type": "reference", - "id": 616, + "id": 656, "name": "User" }, { @@ -30548,15 +30737,15 @@ "title": "Properties", "kind": 1024, "children": [ - 509, - 508 + 520, + 519 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 87, + "line": 93, "character": 12 } ] @@ -30564,7 +30753,7 @@ } }, { - "id": 510, + "id": 521, "name": "error", "kind": 1024, "kindString": "Property", @@ -30572,7 +30761,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 91, + "line": 97, "character": 6 } ], @@ -30587,15 +30776,15 @@ "title": "Properties", "kind": 1024, "children": [ - 506, - 510 + 517, + 521 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 86, + "line": 92, "character": 4 } ] @@ -30604,14 +30793,14 @@ { "type": "reflection", "declaration": { - "id": 511, + "id": 522, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 512, + "id": 523, "name": "data", "kind": 1024, "kindString": "Property", @@ -30619,21 +30808,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 94, + "line": 100, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 513, + "id": 524, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 515, + "id": 526, "name": "session", "kind": 1024, "kindString": "Property", @@ -30641,7 +30830,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 96, + "line": 102, "character": 8 } ], @@ -30651,7 +30840,7 @@ } }, { - "id": 514, + "id": 525, "name": "user", "kind": 1024, "kindString": "Property", @@ -30659,7 +30848,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 95, + "line": 101, "character": 8 } ], @@ -30674,15 +30863,15 @@ "title": "Properties", "kind": 1024, "children": [ - 515, - 514 + 526, + 525 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 94, + "line": 100, "character": 12 } ] @@ -30690,7 +30879,7 @@ } }, { - "id": 516, + "id": 527, "name": "error", "kind": 1024, "kindString": "Property", @@ -30698,13 +30887,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 98, + "line": 104, "character": 6 } ], "type": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } } @@ -30714,15 +30903,15 @@ "title": "Properties", "kind": 1024, "children": [ - 512, - 516 + 523, + 527 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 93, + "line": 99, "character": 4 } ] @@ -30732,15 +30921,15 @@ } }, { - "id": 532, - "name": "AuthTokenResponse", + "id": 528, + "name": "AuthResponsePassword", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/lib/types.ts", - "line": 116, + "line": 107, "character": 12 } ], @@ -30750,14 +30939,14 @@ { "type": "reflection", "declaration": { - "id": 533, + "id": 529, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 534, + "id": 530, "name": "data", "kind": 1024, "kindString": "Property", @@ -30765,21 +30954,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 118, + "line": 109, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 535, + "id": 531, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 537, + "id": 533, "name": "session", "kind": 1024, "kindString": "Property", @@ -30787,22 +30976,180 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 120, + "line": 111, "character": 8 } ], "type": { - "type": "reference", - "id": 578, - "name": "Session" + "type": "union", + "types": [ + { + "type": "reference", + "id": 618, + "name": "Session" + }, + { + "type": "literal", + "value": null + } + ] } }, { - "id": 536, + "id": 532, "name": "user", "kind": 1024, "kindString": "Property", "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 110, + "character": 8 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 656, + "name": "User" + }, + { + "type": "literal", + "value": null + } + ] + } + }, + { + "id": 534, + "name": "weak_password", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 112, + "character": 8 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 511, + "name": "WeakPassword" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 533, + 532, + 534 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 109, + "character": 12 + } + ] + } + } + }, + { + "id": 535, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 114, + "character": 6 + } + ], + "type": { + "type": "literal", + "value": null + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 530, + 535 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 108, + "character": 4 + } + ] + } + }, + { + "type": "reflection", + "declaration": { + "id": 536, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 537, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 117, + "character": 6 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 538, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 540, + "name": "session", + "kind": 1024, + "kindString": "Property", + "flags": {}, "sources": [ { "fileName": "src/lib/types.ts", @@ -30810,9 +31157,174 @@ "character": 8 } ], + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 539, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 118, + "character": 8 + } + ], + "type": { + "type": "literal", + "value": null + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 540, + 539 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 117, + "character": 12 + } + ] + } + } + }, + { + "id": 541, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 121, + "character": 6 + } + ], + "type": { + "type": "reference", + "id": 1058, + "name": "AuthError" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 537, + 541 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 116, + "character": 4 + } + ] + } + } + ] + } + }, + { + "id": 557, + "name": "AuthTokenResponse", + "kind": 4194304, + "kindString": "Type alias", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 139, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 558, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 559, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 141, + "character": 6 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 560, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 562, + "name": "session", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 143, + "character": 8 + } + ], "type": { "type": "reference", - "id": 616, + "id": 618, + "name": "Session" + } + }, + { + "id": 561, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 142, + "character": 8 + } + ], + "type": { + "type": "reference", + "id": 656, "name": "User" } } @@ -30822,15 +31334,15 @@ "title": "Properties", "kind": 1024, "children": [ - 537, - 536 + 562, + 561 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 118, + "line": 141, "character": 12 } ] @@ -30838,7 +31350,7 @@ } }, { - "id": 538, + "id": 563, "name": "error", "kind": 1024, "kindString": "Property", @@ -30846,7 +31358,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 122, + "line": 145, "character": 6 } ], @@ -30861,15 +31373,15 @@ "title": "Properties", "kind": 1024, "children": [ - 534, - 538 + 559, + 563 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 117, + "line": 140, "character": 4 } ] @@ -30878,14 +31390,14 @@ { "type": "reflection", "declaration": { - "id": 539, + "id": 564, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 540, + "id": 565, "name": "data", "kind": 1024, "kindString": "Property", @@ -30893,21 +31405,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 125, + "line": 148, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 541, + "id": 566, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 543, + "id": 568, "name": "session", "kind": 1024, "kindString": "Property", @@ -30915,7 +31427,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 127, + "line": 150, "character": 8 } ], @@ -30925,7 +31437,7 @@ } }, { - "id": 542, + "id": 567, "name": "user", "kind": 1024, "kindString": "Property", @@ -30933,7 +31445,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 126, + "line": 149, "character": 8 } ], @@ -30948,15 +31460,15 @@ "title": "Properties", "kind": 1024, "children": [ - 543, - 542 + 568, + 567 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 125, + "line": 148, "character": 12 } ] @@ -30964,7 +31476,7 @@ } }, { - "id": 544, + "id": 569, "name": "error", "kind": 1024, "kindString": "Property", @@ -30972,13 +31484,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 129, + "line": 152, "character": 6 } ], "type": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } } @@ -30988,15 +31500,15 @@ "title": "Properties", "kind": 1024, "children": [ - 540, - 544 + 565, + 569 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 124, + "line": 147, "character": 4 } ] @@ -31006,7 +31518,324 @@ } }, { - "id": 909, + "id": 570, + "name": "AuthTokenResponsePassword", + "kind": 4194304, + "kindString": "Type alias", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 155, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 571, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 572, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 157, + "character": 6 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 573, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 575, + "name": "session", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 159, + "character": 8 + } + ], + "type": { + "type": "reference", + "id": 618, + "name": "Session" + } + }, + { + "id": 574, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 158, + "character": 8 + } + ], + "type": { + "type": "reference", + "id": 656, + "name": "User" + } + }, + { + "id": 576, + "name": "weakPassword", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 160, + "character": 8 + } + ], + "type": { + "type": "reference", + "id": 511, + "name": "WeakPassword" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 575, + 574, + 576 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 157, + "character": 12 + } + ] + } + } + }, + { + "id": 577, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 162, + "character": 6 + } + ], + "type": { + "type": "literal", + "value": null + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 572, + 577 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 156, + "character": 4 + } + ] + } + }, + { + "type": "reflection", + "declaration": { + "id": 578, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 579, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 165, + "character": 6 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 580, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 582, + "name": "session", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 167, + "character": 8 + } + ], + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 581, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 166, + "character": 8 + } + ], + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 583, + "name": "weakPassword", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 168, + "character": 8 + } + ], + "type": { + "type": "literal", + "value": null + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 582, + 581, + 583 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 165, + "character": 12 + } + ] + } + } + }, + { + "id": 584, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 170, + "character": 6 + } + ], + "type": { + "type": "reference", + "id": 1058, + "name": "AuthError" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 579, + 584 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 164, + "character": 4 + } + ] + } + } + ] + } + }, + { + "id": 955, "name": "AuthenticatorAssuranceLevels", "kind": 4194304, "kindString": "Type alias", @@ -31014,7 +31843,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 868, + "line": 918, "character": 12 } ], @@ -31033,7 +31862,7 @@ } }, { - "id": 977, + "id": 1025, "name": "CallRefreshTokenResult", "kind": 4194304, "kindString": "Type alias", @@ -31041,7 +31870,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1043, + "line": 1104, "character": 12 } ], @@ -31051,14 +31880,14 @@ { "type": "reflection", "declaration": { - "id": 978, + "id": 1026, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 980, + "id": 1028, "name": "error", "kind": 1024, "kindString": "Property", @@ -31066,7 +31895,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1046, + "line": 1107, "character": 6 } ], @@ -31076,7 +31905,7 @@ } }, { - "id": 979, + "id": 1027, "name": "session", "kind": 1024, "kindString": "Property", @@ -31084,13 +31913,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1045, + "line": 1106, "character": 6 } ], "type": { "type": "reference", - "id": 578, + "id": 618, "name": "Session" } } @@ -31100,15 +31929,15 @@ "title": "Properties", "kind": 1024, "children": [ - 980, - 979 + 1028, + 1027 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 1044, + "line": 1105, "character": 4 } ] @@ -31117,14 +31946,14 @@ { "type": "reflection", "declaration": { - "id": 981, + "id": 1029, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 983, + "id": 1031, "name": "error", "kind": 1024, "kindString": "Property", @@ -31132,18 +31961,18 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1050, + "line": 1111, "character": 6 } ], "type": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } }, { - "id": 982, + "id": 1030, "name": "session", "kind": 1024, "kindString": "Property", @@ -31151,7 +31980,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1049, + "line": 1110, "character": 6 } ], @@ -31166,15 +31995,15 @@ "title": "Properties", "kind": 1024, "children": [ - 983, - 982 + 1031, + 1030 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 1048, + "line": 1109, "character": 4 } ] @@ -31184,7 +32013,7 @@ } }, { - "id": 757, + "id": 802, "name": "EmailOtpType", "kind": 4194304, "kindString": "Type alias", @@ -31192,7 +32021,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 596, + "line": 644, "character": 12 } ], @@ -31227,7 +32056,7 @@ } }, { - "id": 801, + "id": 846, "name": "GenerateEmailChangeLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -31235,21 +32064,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 663, + "line": 711, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 802, + "id": 847, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 804, + "id": 849, "name": "email", "kind": 1024, "kindString": "Property", @@ -31260,7 +32089,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 666, + "line": 714, "character": 2 } ], @@ -31270,7 +32099,7 @@ } }, { - "id": 805, + "id": 850, "name": "newEmail", "kind": 1024, "kindString": "Property", @@ -31281,7 +32110,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 670, + "line": 718, "character": 2 } ], @@ -31291,7 +32120,7 @@ } }, { - "id": 806, + "id": 851, "name": "options", "kind": 1024, "kindString": "Property", @@ -31301,7 +32130,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 671, + "line": 719, "character": 2 } ], @@ -31310,7 +32139,7 @@ "typeArguments": [ { "type": "reference", - "id": 807, + "id": 852, "name": "GenerateLinkOptions" }, { @@ -31324,7 +32153,7 @@ } }, { - "id": 803, + "id": 848, "name": "type", "kind": 1024, "kindString": "Property", @@ -31332,7 +32161,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 664, + "line": 712, "character": 2 } ], @@ -31356,17 +32185,17 @@ "title": "Properties", "kind": 1024, "children": [ - 804, - 805, - 806, - 803 + 849, + 850, + 851, + 848 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 663, + "line": 711, "character": 44 } ] @@ -31374,7 +32203,7 @@ } }, { - "id": 791, + "id": 836, "name": "GenerateInviteOrMagiclinkParams", "kind": 4194304, "kindString": "Type alias", @@ -31382,21 +32211,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 649, + "line": 697, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 792, + "id": 837, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 794, + "id": 839, "name": "email", "kind": 1024, "kindString": "Property", @@ -31407,7 +32236,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 652, + "line": 700, "character": 2 } ], @@ -31417,7 +32246,7 @@ } }, { - "id": 795, + "id": 840, "name": "options", "kind": 1024, "kindString": "Property", @@ -31427,7 +32256,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 653, + "line": 701, "character": 2 } ], @@ -31436,7 +32265,7 @@ "typeArguments": [ { "type": "reference", - "id": 807, + "id": 852, "name": "GenerateLinkOptions" }, { @@ -31459,7 +32288,7 @@ } }, { - "id": 793, + "id": 838, "name": "type", "kind": 1024, "kindString": "Property", @@ -31467,7 +32296,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 650, + "line": 698, "character": 2 } ], @@ -31491,16 +32320,16 @@ "title": "Properties", "kind": 1024, "children": [ - 794, - 795, - 793 + 839, + 840, + 838 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 649, + "line": 697, "character": 46 } ] @@ -31508,7 +32337,7 @@ } }, { - "id": 810, + "id": 855, "name": "GenerateLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -31516,7 +32345,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 685, + "line": 733, "character": 12 } ], @@ -31524,7 +32353,7 @@ "type": "union", "types": [ { - "id": 785, + "id": 830, "name": "GenerateSignupLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -31532,21 +32361,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 642, + "line": 690, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 786, + "id": 831, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 788, + "id": 833, "name": "email", "kind": 1024, "kindString": "Property", @@ -31554,7 +32383,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 644, + "line": 692, "character": 2 } ], @@ -31564,7 +32393,7 @@ } }, { - "id": 790, + "id": 835, "name": "options", "kind": 1024, "kindString": "Property", @@ -31574,7 +32403,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 646, + "line": 694, "character": 2 } ], @@ -31583,7 +32412,7 @@ "typeArguments": [ { "type": "reference", - "id": 807, + "id": 852, "name": "GenerateLinkOptions" }, { @@ -31606,7 +32435,7 @@ } }, { - "id": 789, + "id": 834, "name": "password", "kind": 1024, "kindString": "Property", @@ -31614,7 +32443,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 645, + "line": 693, "character": 2 } ], @@ -31624,7 +32453,7 @@ } }, { - "id": 787, + "id": 832, "name": "type", "kind": 1024, "kindString": "Property", @@ -31632,7 +32461,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 643, + "line": 691, "character": 2 } ], @@ -31647,17 +32476,17 @@ "title": "Properties", "kind": 1024, "children": [ - 788, - 790, - 789, - 787 + 833, + 835, + 834, + 832 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 642, + "line": 690, "character": 39 } ] @@ -31665,7 +32494,7 @@ } }, { - "id": 791, + "id": 836, "name": "GenerateInviteOrMagiclinkParams", "kind": 4194304, "kindString": "Type alias", @@ -31673,21 +32502,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 649, + "line": 697, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 792, + "id": 837, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 794, + "id": 839, "name": "email", "kind": 1024, "kindString": "Property", @@ -31698,7 +32527,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 652, + "line": 700, "character": 2 } ], @@ -31708,7 +32537,7 @@ } }, { - "id": 795, + "id": 840, "name": "options", "kind": 1024, "kindString": "Property", @@ -31718,7 +32547,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 653, + "line": 701, "character": 2 } ], @@ -31727,7 +32556,7 @@ "typeArguments": [ { "type": "reference", - "id": 807, + "id": 852, "name": "GenerateLinkOptions" }, { @@ -31750,7 +32579,7 @@ } }, { - "id": 793, + "id": 838, "name": "type", "kind": 1024, "kindString": "Property", @@ -31758,7 +32587,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 650, + "line": 698, "character": 2 } ], @@ -31782,16 +32611,16 @@ "title": "Properties", "kind": 1024, "children": [ - 794, - 795, - 793 + 839, + 840, + 838 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 649, + "line": 697, "character": 46 } ] @@ -31799,7 +32628,7 @@ } }, { - "id": 796, + "id": 841, "name": "GenerateRecoveryLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -31807,21 +32636,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 656, + "line": 704, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 797, + "id": 842, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 799, + "id": 844, "name": "email", "kind": 1024, "kindString": "Property", @@ -31832,7 +32661,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 659, + "line": 707, "character": 2 } ], @@ -31842,7 +32671,7 @@ } }, { - "id": 800, + "id": 845, "name": "options", "kind": 1024, "kindString": "Property", @@ -31852,7 +32681,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 660, + "line": 708, "character": 2 } ], @@ -31861,7 +32690,7 @@ "typeArguments": [ { "type": "reference", - "id": 807, + "id": 852, "name": "GenerateLinkOptions" }, { @@ -31875,7 +32704,7 @@ } }, { - "id": 798, + "id": 843, "name": "type", "kind": 1024, "kindString": "Property", @@ -31883,7 +32712,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 657, + "line": 705, "character": 2 } ], @@ -31898,16 +32727,16 @@ "title": "Properties", "kind": 1024, "children": [ - 799, - 800, - 798 + 844, + 845, + 843 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 656, + "line": 704, "character": 41 } ] @@ -31915,7 +32744,7 @@ } }, { - "id": 801, + "id": 846, "name": "GenerateEmailChangeLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -31923,21 +32752,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 663, + "line": 711, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 802, + "id": 847, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 804, + "id": 849, "name": "email", "kind": 1024, "kindString": "Property", @@ -31948,7 +32777,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 666, + "line": 714, "character": 2 } ], @@ -31958,7 +32787,7 @@ } }, { - "id": 805, + "id": 850, "name": "newEmail", "kind": 1024, "kindString": "Property", @@ -31969,7 +32798,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 670, + "line": 718, "character": 2 } ], @@ -31979,7 +32808,7 @@ } }, { - "id": 806, + "id": 851, "name": "options", "kind": 1024, "kindString": "Property", @@ -31989,7 +32818,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 671, + "line": 719, "character": 2 } ], @@ -31998,7 +32827,7 @@ "typeArguments": [ { "type": "reference", - "id": 807, + "id": 852, "name": "GenerateLinkOptions" }, { @@ -32012,7 +32841,7 @@ } }, { - "id": 803, + "id": 848, "name": "type", "kind": 1024, "kindString": "Property", @@ -32020,7 +32849,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 664, + "line": 712, "character": 2 } ], @@ -32044,17 +32873,17 @@ "title": "Properties", "kind": 1024, "children": [ - 804, - 805, - 806, - 803 + 849, + 850, + 851, + 848 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 663, + "line": 711, "character": 44 } ] @@ -32065,7 +32894,7 @@ } }, { - "id": 824, + "id": 869, "name": "GenerateLinkProperties", "kind": 4194304, "kindString": "Type alias", @@ -32076,21 +32905,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 708, + "line": 756, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 825, + "id": 870, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 826, + "id": 871, "name": "action_link", "kind": 1024, "kindString": "Property", @@ -32101,7 +32930,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 713, + "line": 761, "character": 2 } ], @@ -32111,7 +32940,7 @@ } }, { - "id": 827, + "id": 872, "name": "email_otp", "kind": 1024, "kindString": "Property", @@ -32122,7 +32951,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 718, + "line": 766, "character": 2 } ], @@ -32132,7 +32961,7 @@ } }, { - "id": 828, + "id": 873, "name": "hashed_token", "kind": 1024, "kindString": "Property", @@ -32143,7 +32972,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 722, + "line": 770, "character": 2 } ], @@ -32153,7 +32982,7 @@ } }, { - "id": 829, + "id": 874, "name": "redirect_to", "kind": 1024, "kindString": "Property", @@ -32164,7 +32993,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 724, + "line": 772, "character": 2 } ], @@ -32174,7 +33003,7 @@ } }, { - "id": 830, + "id": 875, "name": "verification_type", "kind": 1024, "kindString": "Property", @@ -32185,16 +33014,16 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 726, + "line": 774, "character": 2 } ], "type": { "type": "reference", - "id": 831, + "id": 876, "name": "GenerateLinkType", "dereferenced": { - "id": 831, + "id": 876, "name": "GenerateLinkType", "kind": 4194304, "kindString": "Type alias", @@ -32202,7 +33031,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 729, + "line": 777, "character": 12 } ], @@ -32244,18 +33073,18 @@ "title": "Properties", "kind": 1024, "children": [ - 826, - 827, - 828, - 829, - 830 + 871, + 872, + 873, + 874, + 875 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 708, + "line": 756, "character": 37 } ] @@ -32263,7 +33092,7 @@ } }, { - "id": 811, + "id": 856, "name": "GenerateLinkResponse", "kind": 4194304, "kindString": "Type alias", @@ -32271,7 +33100,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 691, + "line": 739, "character": 12 } ], @@ -32281,14 +33110,14 @@ { "type": "reflection", "declaration": { - "id": 812, + "id": 857, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 813, + "id": 858, "name": "data", "kind": 1024, "kindString": "Property", @@ -32296,21 +33125,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 693, + "line": 741, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 814, + "id": 859, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 815, + "id": 860, "name": "properties", "kind": 1024, "kindString": "Property", @@ -32318,18 +33147,18 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 694, + "line": 742, "character": 8 } ], "type": { "type": "reference", - "id": 824, + "id": 869, "name": "GenerateLinkProperties" } }, { - "id": 816, + "id": 861, "name": "user", "kind": 1024, "kindString": "Property", @@ -32337,13 +33166,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 695, + "line": 743, "character": 8 } ], "type": { "type": "reference", - "id": 616, + "id": 656, "name": "User" } } @@ -32353,15 +33182,15 @@ "title": "Properties", "kind": 1024, "children": [ - 815, - 816 + 860, + 861 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 693, + "line": 741, "character": 12 } ] @@ -32369,7 +33198,7 @@ } }, { - "id": 817, + "id": 862, "name": "error", "kind": 1024, "kindString": "Property", @@ -32377,7 +33206,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 697, + "line": 745, "character": 6 } ], @@ -32392,15 +33221,15 @@ "title": "Properties", "kind": 1024, "children": [ - 813, - 817 + 858, + 862 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 692, + "line": 740, "character": 4 } ] @@ -32409,14 +33238,14 @@ { "type": "reflection", "declaration": { - "id": 818, + "id": 863, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 819, + "id": 864, "name": "data", "kind": 1024, "kindString": "Property", @@ -32424,21 +33253,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 700, + "line": 748, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 820, + "id": 865, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 821, + "id": 866, "name": "properties", "kind": 1024, "kindString": "Property", @@ -32446,7 +33275,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 701, + "line": 749, "character": 8 } ], @@ -32456,7 +33285,7 @@ } }, { - "id": 822, + "id": 867, "name": "user", "kind": 1024, "kindString": "Property", @@ -32464,7 +33293,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 702, + "line": 750, "character": 8 } ], @@ -32479,15 +33308,15 @@ "title": "Properties", "kind": 1024, "children": [ - 821, - 822 + 866, + 867 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 700, + "line": 748, "character": 12 } ] @@ -32495,7 +33324,7 @@ } }, { - "id": 823, + "id": 868, "name": "error", "kind": 1024, "kindString": "Property", @@ -32503,13 +33332,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 704, + "line": 752, "character": 6 } ], "type": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } } @@ -32519,15 +33348,15 @@ "title": "Properties", "kind": 1024, "children": [ - 819, - 823 + 864, + 868 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 699, + "line": 747, "character": 4 } ] @@ -32537,7 +33366,7 @@ } }, { - "id": 831, + "id": 876, "name": "GenerateLinkType", "kind": 4194304, "kindString": "Type alias", @@ -32545,7 +33374,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 729, + "line": 777, "character": 12 } ], @@ -32580,7 +33409,7 @@ } }, { - "id": 796, + "id": 841, "name": "GenerateRecoveryLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -32588,21 +33417,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 656, + "line": 704, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 797, + "id": 842, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 799, + "id": 844, "name": "email", "kind": 1024, "kindString": "Property", @@ -32613,7 +33442,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 659, + "line": 707, "character": 2 } ], @@ -32623,7 +33452,7 @@ } }, { - "id": 800, + "id": 845, "name": "options", "kind": 1024, "kindString": "Property", @@ -32633,7 +33462,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 660, + "line": 708, "character": 2 } ], @@ -32642,7 +33471,7 @@ "typeArguments": [ { "type": "reference", - "id": 807, + "id": 852, "name": "GenerateLinkOptions" }, { @@ -32656,7 +33485,7 @@ } }, { - "id": 798, + "id": 843, "name": "type", "kind": 1024, "kindString": "Property", @@ -32664,7 +33493,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 657, + "line": 705, "character": 2 } ], @@ -32679,16 +33508,16 @@ "title": "Properties", "kind": 1024, "children": [ - 799, - 800, - 798 + 844, + 845, + 843 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 656, + "line": 704, "character": 41 } ] @@ -32696,7 +33525,7 @@ } }, { - "id": 785, + "id": 830, "name": "GenerateSignupLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -32704,21 +33533,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 642, + "line": 690, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 786, + "id": 831, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 788, + "id": 833, "name": "email", "kind": 1024, "kindString": "Property", @@ -32726,7 +33555,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 644, + "line": 692, "character": 2 } ], @@ -32736,7 +33565,7 @@ } }, { - "id": 790, + "id": 835, "name": "options", "kind": 1024, "kindString": "Property", @@ -32746,7 +33575,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 646, + "line": 694, "character": 2 } ], @@ -32755,7 +33584,7 @@ "typeArguments": [ { "type": "reference", - "id": 807, + "id": 852, "name": "GenerateLinkOptions" }, { @@ -32778,7 +33607,7 @@ } }, { - "id": 789, + "id": 834, "name": "password", "kind": 1024, "kindString": "Property", @@ -32786,7 +33615,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 645, + "line": 693, "character": 2 } ], @@ -32796,7 +33625,7 @@ } }, { - "id": 787, + "id": 832, "name": "type", "kind": 1024, "kindString": "Property", @@ -32804,7 +33633,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 643, + "line": 691, "character": 2 } ], @@ -32819,17 +33648,17 @@ "title": "Properties", "kind": 1024, "children": [ - 788, - 790, - 789, - 787 + 833, + 835, + 834, + 832 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 642, + "line": 690, "character": 39 } ] @@ -32837,7 +33666,7 @@ } }, { - "id": 484, + "id": 490, "name": "GoTrueClientOptions", "kind": 4194304, "kindString": "Type alias", @@ -32852,14 +33681,14 @@ "type": { "type": "reflection", "declaration": { - "id": 485, + "id": 491, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 493, + "id": 499, "name": "autoRefreshToken", "kind": 1024, "kindString": "Property", @@ -32879,7 +33708,7 @@ } }, { - "id": 498, + "id": 504, "name": "debug", "kind": 1024, "kindString": "Property", @@ -32903,7 +33732,7 @@ { "type": "reflection", "declaration": { - "id": 499, + "id": 505, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -32917,14 +33746,14 @@ ], "signatures": [ { - "id": 500, + "id": 506, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 501, + "id": 507, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -32935,7 +33764,7 @@ } }, { - "id": 502, + "id": 508, "name": "args", "kind": 32768, "kindString": "Parameter", @@ -32963,7 +33792,7 @@ } }, { - "id": 492, + "id": 498, "name": "detectSessionInUrl", "kind": 1024, "kindString": "Property", @@ -32983,7 +33812,7 @@ } }, { - "id": 496, + "id": 502, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -33003,7 +33832,7 @@ } }, { - "id": 497, + "id": 503, "name": "flowType", "kind": 1024, "kindString": "Property", @@ -33019,10 +33848,10 @@ ], "type": { "type": "reference", - "id": 714, + "id": 759, "name": "AuthFlowType", "dereferenced": { - "id": 714, + "id": 759, "name": "AuthFlowType", "kind": 4194304, "kindString": "Type alias", @@ -33030,7 +33859,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 517, + "line": 565, "character": 12 } ], @@ -33051,7 +33880,7 @@ } }, { - "id": 487, + "id": 493, "name": "headers", "kind": 1024, "kindString": "Property", @@ -33068,7 +33897,7 @@ "type": { "type": "reflection", "declaration": { - "id": 488, + "id": 494, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -33081,14 +33910,14 @@ } ], "indexSignature": { - "id": 489, + "id": 495, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 490, + "id": 496, "name": "key", "kind": 32768, "flags": {}, @@ -33107,7 +33936,7 @@ } }, { - "id": 503, + "id": 509, "name": "lock", "kind": 1024, "kindString": "Property", @@ -33132,10 +33961,10 @@ ], "type": { "type": "reference", - "id": 475, + "id": 481, "name": "LockFunc", "dereferenced": { - "id": 475, + "id": 481, "name": "LockFunc", "kind": 4194304, "kindString": "Type alias", @@ -33150,7 +33979,7 @@ "type": { "type": "reflection", "declaration": { - "id": 476, + "id": 482, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -33164,7 +33993,7 @@ ], "signatures": [ { - "id": 477, + "id": 483, "name": "__type", "kind": 4096, "kindString": "Call signature", @@ -33180,7 +34009,7 @@ }, "typeParameter": [ { - "id": 483, + "id": 489, "name": "R", "kind": 131072, "kindString": "Type parameter", @@ -33189,7 +34018,7 @@ ], "parameters": [ { - "id": 478, + "id": 484, "name": "name", "kind": 32768, "kindString": "Parameter", @@ -33203,7 +34032,7 @@ } }, { - "id": 479, + "id": 485, "name": "acquireTimeout", "kind": 32768, "kindString": "Parameter", @@ -33217,7 +34046,7 @@ } }, { - "id": 480, + "id": 486, "name": "fn", "kind": 32768, "kindString": "Parameter", @@ -33228,7 +34057,7 @@ "type": { "type": "reflection", "declaration": { - "id": 481, + "id": 487, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -33242,7 +34071,7 @@ ], "signatures": [ { - "id": 482, + "id": 488, "name": "__type", "kind": 4096, "kindString": "Call signature", @@ -33252,7 +34081,7 @@ "typeArguments": [ { "type": "reference", - "id": 483, + "id": 489, "name": "R" } ], @@ -33271,7 +34100,7 @@ "typeArguments": [ { "type": "reference", - "id": 483, + "id": 489, "name": "R" } ], @@ -33287,7 +34116,7 @@ } }, { - "id": 494, + "id": 500, "name": "persistSession", "kind": 1024, "kindString": "Property", @@ -33307,7 +34136,7 @@ } }, { - "id": 495, + "id": 501, "name": "storage", "kind": 1024, "kindString": "Property", @@ -33323,10 +34152,10 @@ ], "type": { "type": "reference", - "id": 973, + "id": 1019, "name": "SupportedStorage", "dereferenced": { - "id": 973, + "id": 1019, "name": "SupportedStorage", "kind": 4194304, "kindString": "Type alias", @@ -33334,52 +34163,108 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1039, + "line": 1089, "character": 12 } ], "type": { - "type": "reference", - "typeArguments": [ + "type": "intersection", + "types": [ { "type": "reference", "typeArguments": [ { "type": "reference", - "qualifiedName": "Storage", - "package": "typescript", - "name": "Storage" - }, - { - "type": "union", - "types": [ + "typeArguments": [ { - "type": "literal", - "value": "getItem" + "type": "reference", + "qualifiedName": "Storage", + "package": "typescript", + "name": "Storage" }, { - "type": "literal", - "value": "setItem" - }, - { - "type": "literal", - "value": "removeItem" + "type": "union", + "types": [ + { + "type": "literal", + "value": "getItem" + }, + { + "type": "literal", + "value": "setItem" + }, + { + "type": "literal", + "value": "removeItem" + } + ] } - ] + ], + "qualifiedName": "Pick", + "package": "typescript", + "name": "Pick" } ], - "qualifiedName": "Pick", - "package": "typescript", - "name": "Pick" + "name": "PromisifyMethods" + }, + { + "type": "reflection", + "declaration": { + "id": 1020, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 1021, + "name": "isServer", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "If set to `true` signals to the library that the storage medium is used\non a server and the values may not be authentic, such as reading from\nrequest cookies. Implementations should not set this to true if the client\nis used on a server that reads storage information from authenticated\nsources, such as a secure database or file." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1099, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 1021 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1091, + "character": 4 + } + ] + } } - ], - "name": "PromisifyMethods" + ] } } } }, { - "id": 491, + "id": 497, "name": "storageKey", "kind": 1024, "kindString": "Property", @@ -33399,7 +34284,7 @@ } }, { - "id": 486, + "id": 492, "name": "url", "kind": 1024, "kindString": "Property", @@ -33424,17 +34309,17 @@ "title": "Properties", "kind": 1024, "children": [ - 493, + 499, + 504, 498, - 492, - 496, - 497, - 487, + 502, 503, - 494, - 495, - 491, - 486 + 493, + 509, + 500, + 501, + 497, + 492 ] } ], @@ -33449,7 +34334,7 @@ } }, { - "id": 974, + "id": 1022, "name": "InitializeResult", "kind": 4194304, "kindString": "Type alias", @@ -33457,21 +34342,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1041, + "line": 1102, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 975, + "id": 1023, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 976, + "id": 1024, "name": "error", "kind": 1024, "kindString": "Property", @@ -33479,7 +34364,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1041, + "line": 1102, "character": 33 } ], @@ -33488,7 +34373,7 @@ "types": [ { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" }, { @@ -33504,14 +34389,14 @@ "title": "Properties", "kind": 1024, "children": [ - 976 + 1024 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 1041, + "line": 1102, "character": 31 } ] @@ -33519,7 +34404,7 @@ } }, { - "id": 475, + "id": 481, "name": "LockFunc", "kind": 4194304, "kindString": "Type alias", @@ -33534,7 +34419,7 @@ "type": { "type": "reflection", "declaration": { - "id": 476, + "id": 482, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -33548,7 +34433,7 @@ ], "signatures": [ { - "id": 477, + "id": 483, "name": "__type", "kind": 4096, "kindString": "Call signature", @@ -33564,7 +34449,7 @@ }, "typeParameter": [ { - "id": 483, + "id": 489, "name": "R", "kind": 131072, "kindString": "Type parameter", @@ -33573,7 +34458,7 @@ ], "parameters": [ { - "id": 478, + "id": 484, "name": "name", "kind": 32768, "kindString": "Parameter", @@ -33587,7 +34472,7 @@ } }, { - "id": 479, + "id": 485, "name": "acquireTimeout", "kind": 32768, "kindString": "Parameter", @@ -33601,7 +34486,7 @@ } }, { - "id": 480, + "id": 486, "name": "fn", "kind": 32768, "kindString": "Parameter", @@ -33612,7 +34497,7 @@ "type": { "type": "reflection", "declaration": { - "id": 481, + "id": 487, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -33626,7 +34511,7 @@ ], "signatures": [ { - "id": 482, + "id": 488, "name": "__type", "kind": 4096, "kindString": "Call signature", @@ -33636,7 +34521,7 @@ "typeArguments": [ { "type": "reference", - "id": 483, + "id": 489, "name": "R" } ], @@ -33655,7 +34540,7 @@ "typeArguments": [ { "type": "reference", - "id": 483, + "id": 489, "name": "R" } ], @@ -33669,7 +34554,7 @@ } }, { - "id": 848, + "id": 893, "name": "MFAChallengeAndVerifyParams", "kind": 4194304, "kindString": "Type alias", @@ -33677,21 +34562,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 767, + "line": 815, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 849, + "id": 894, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 851, + "id": 896, "name": "code", "kind": 1024, "kindString": "Property", @@ -33702,7 +34587,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 771, + "line": 819, "character": 2 } ], @@ -33712,7 +34597,7 @@ } }, { - "id": 850, + "id": 895, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -33723,7 +34608,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 769, + "line": 817, "character": 2 } ], @@ -33738,15 +34623,15 @@ "title": "Properties", "kind": 1024, "children": [ - 851, - 850 + 896, + 895 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 767, + "line": 815, "character": 42 } ] @@ -33754,7 +34639,7 @@ } }, { - "id": 845, + "id": 890, "name": "MFAChallengeParams", "kind": 4194304, "kindString": "Type alias", @@ -33762,21 +34647,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 762, + "line": 810, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 846, + "id": 891, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 847, + "id": 892, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -33787,7 +34672,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 764, + "line": 812, "character": 2 } ], @@ -33802,14 +34687,14 @@ "title": "Properties", "kind": 1024, "children": [ - 847 + 892 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 762, + "line": 810, "character": 33 } ] @@ -33817,7 +34702,7 @@ } }, { - "id": 832, + "id": 877, "name": "MFAEnrollParams", "kind": 4194304, "kindString": "Type alias", @@ -33825,21 +34710,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 737, + "line": 785, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 833, + "id": 878, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 834, + "id": 879, "name": "factorType", "kind": 1024, "kindString": "Property", @@ -33850,7 +34735,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 739, + "line": 787, "character": 2 } ], @@ -33860,7 +34745,7 @@ } }, { - "id": 836, + "id": 881, "name": "friendlyName", "kind": 1024, "kindString": "Property", @@ -33873,7 +34758,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 743, + "line": 791, "character": 2 } ], @@ -33883,7 +34768,7 @@ } }, { - "id": 835, + "id": 880, "name": "issuer", "kind": 1024, "kindString": "Property", @@ -33896,7 +34781,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 741, + "line": 789, "character": 2 } ], @@ -33911,16 +34796,16 @@ "title": "Properties", "kind": 1024, "children": [ - 834, - 836, - 835 + 879, + 881, + 880 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 737, + "line": 785, "character": 30 } ] @@ -33928,7 +34813,7 @@ } }, { - "id": 837, + "id": 882, "name": "MFAUnenrollParams", "kind": 4194304, "kindString": "Type alias", @@ -33936,21 +34821,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 746, + "line": 794, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 838, + "id": 883, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 839, + "id": 884, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -33961,7 +34846,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 748, + "line": 796, "character": 2 } ], @@ -33976,14 +34861,14 @@ "title": "Properties", "kind": 1024, "children": [ - 839 + 884 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 746, + "line": 794, "character": 32 } ] @@ -33991,7 +34876,7 @@ } }, { - "id": 840, + "id": 885, "name": "MFAVerifyParams", "kind": 4194304, "kindString": "Type alias", @@ -33999,21 +34884,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 751, + "line": 799, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 841, + "id": 886, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 843, + "id": 888, "name": "challengeId", "kind": 1024, "kindString": "Property", @@ -34024,7 +34909,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 756, + "line": 804, "character": 2 } ], @@ -34034,7 +34919,7 @@ } }, { - "id": 844, + "id": 889, "name": "code", "kind": 1024, "kindString": "Property", @@ -34045,7 +34930,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 759, + "line": 807, "character": 2 } ], @@ -34055,7 +34940,7 @@ } }, { - "id": 842, + "id": 887, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -34066,7 +34951,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 753, + "line": 801, "character": 2 } ], @@ -34081,16 +34966,16 @@ "title": "Properties", "kind": 1024, "children": [ - 843, - 844, - 842 + 888, + 889, + 887 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 751, + "line": 799, "character": 30 } ] @@ -34098,7 +34983,7 @@ } }, { - "id": 756, + "id": 801, "name": "MobileOtpType", "kind": 4194304, "kindString": "Type alias", @@ -34106,7 +34991,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 595, + "line": 643, "character": 12 } ], @@ -34125,7 +35010,7 @@ } }, { - "id": 545, + "id": 585, "name": "OAuthResponse", "kind": 4194304, "kindString": "Type alias", @@ -34133,7 +35018,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 132, + "line": 173, "character": 12 } ], @@ -34143,14 +35028,14 @@ { "type": "reflection", "declaration": { - "id": 546, + "id": 586, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 547, + "id": 587, "name": "data", "kind": 1024, "kindString": "Property", @@ -34158,21 +35043,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 134, + "line": 175, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 548, + "id": 588, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 549, + "id": 589, "name": "provider", "kind": 1024, "kindString": "Property", @@ -34180,18 +35065,18 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 135, + "line": 176, "character": 8 } ], "type": { "type": "reference", - "id": 472, + "id": 478, "name": "Provider" } }, { - "id": 550, + "id": 590, "name": "url", "kind": 1024, "kindString": "Property", @@ -34199,7 +35084,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 136, + "line": 177, "character": 8 } ], @@ -34214,15 +35099,15 @@ "title": "Properties", "kind": 1024, "children": [ - 549, - 550 + 589, + 590 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 134, + "line": 175, "character": 12 } ] @@ -34230,7 +35115,7 @@ } }, { - "id": 551, + "id": 591, "name": "error", "kind": 1024, "kindString": "Property", @@ -34238,7 +35123,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 138, + "line": 179, "character": 6 } ], @@ -34253,15 +35138,15 @@ "title": "Properties", "kind": 1024, "children": [ - 547, - 551 + 587, + 591 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 133, + "line": 174, "character": 4 } ] @@ -34270,14 +35155,14 @@ { "type": "reflection", "declaration": { - "id": 552, + "id": 592, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 553, + "id": 593, "name": "data", "kind": 1024, "kindString": "Property", @@ -34285,21 +35170,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 141, + "line": 182, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 554, + "id": 594, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 555, + "id": 595, "name": "provider", "kind": 1024, "kindString": "Property", @@ -34307,18 +35192,18 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 142, + "line": 183, "character": 8 } ], "type": { "type": "reference", - "id": 472, + "id": 478, "name": "Provider" } }, { - "id": 556, + "id": 596, "name": "url", "kind": 1024, "kindString": "Property", @@ -34326,7 +35211,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 143, + "line": 184, "character": 8 } ], @@ -34341,15 +35226,15 @@ "title": "Properties", "kind": 1024, "children": [ - 555, - 556 + 595, + 596 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 141, + "line": 182, "character": 12 } ] @@ -34357,7 +35242,7 @@ } }, { - "id": 557, + "id": 597, "name": "error", "kind": 1024, "kindString": "Property", @@ -34365,13 +35250,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 145, + "line": 186, "character": 6 } ], "type": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } } @@ -34381,15 +35266,15 @@ "title": "Properties", "kind": 1024, "children": [ - 553, - 557 + 593, + 597 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 140, + "line": 181, "character": 4 } ] @@ -34399,7 +35284,7 @@ } }, { - "id": 991, + "id": 1039, "name": "PageParams", "kind": 4194304, "kindString": "Type alias", @@ -34407,21 +35292,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1060, + "line": 1121, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 992, + "id": 1040, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 993, + "id": 1041, "name": "page", "kind": 1024, "kindString": "Property", @@ -34434,7 +35319,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1062, + "line": 1123, "character": 2 } ], @@ -34444,7 +35329,7 @@ } }, { - "id": 994, + "id": 1042, "name": "perPage", "kind": 1024, "kindString": "Property", @@ -34457,7 +35342,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1064, + "line": 1125, "character": 2 } ], @@ -34472,15 +35357,15 @@ "title": "Properties", "kind": 1024, "children": [ - 993, - 994 + 1041, + 1042 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 1060, + "line": 1121, "character": 25 } ] @@ -34488,7 +35373,7 @@ } }, { - "id": 984, + "id": 1032, "name": "Pagination", "kind": 4194304, "kindString": "Type alias", @@ -34496,21 +35381,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1053, + "line": 1114, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 985, + "id": 1033, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 987, + "id": 1035, "name": "lastPage", "kind": 1024, "kindString": "Property", @@ -34518,7 +35403,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1056, + "line": 1117, "character": 2 } ], @@ -34528,7 +35413,7 @@ } }, { - "id": 986, + "id": 1034, "name": "nextPage", "kind": 1024, "kindString": "Property", @@ -34536,7 +35421,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1055, + "line": 1116, "character": 2 } ], @@ -34555,7 +35440,7 @@ } }, { - "id": 988, + "id": 1036, "name": "total", "kind": 1024, "kindString": "Property", @@ -34563,7 +35448,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1057, + "line": 1118, "character": 2 } ], @@ -34578,28 +35463,28 @@ "title": "Properties", "kind": 1024, "children": [ - 987, - 986, - 988 + 1035, + 1034, + 1036 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 1053, + "line": 1114, "character": 25 } ], "indexSignature": { - "id": 989, + "id": 1037, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 990, + "id": 1038, "name": "key", "kind": 32768, "flags": {}, @@ -34618,7 +35503,7 @@ } }, { - "id": 472, + "id": 478, "name": "Provider", "kind": 4194304, "kindString": "Type alias", @@ -34724,7 +35609,7 @@ } }, { - "id": 758, + "id": 803, "name": "ResendParams", "kind": 4194304, "kindString": "Type alias", @@ -34732,7 +35617,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 598, + "line": 646, "character": 12 } ], @@ -34742,14 +35627,14 @@ { "type": "reflection", "declaration": { - "id": 759, + "id": 804, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 761, + "id": 806, "name": "email", "kind": 1024, "kindString": "Property", @@ -34757,7 +35642,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 601, + "line": 649, "character": 6 } ], @@ -34767,7 +35652,7 @@ } }, { - "id": 762, + "id": 807, "name": "options", "kind": 1024, "kindString": "Property", @@ -34777,21 +35662,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 602, + "line": 650, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 763, + "id": 808, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 765, + "id": 810, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -34804,7 +35689,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 606, + "line": 654, "character": 8 } ], @@ -34814,7 +35699,7 @@ } }, { - "id": 764, + "id": 809, "name": "emailRedirectTo", "kind": 1024, "kindString": "Property", @@ -34827,7 +35712,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 604, + "line": 652, "character": 8 } ], @@ -34842,15 +35727,15 @@ "title": "Properties", "kind": 1024, "children": [ - 765, - 764 + 810, + 809 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 602, + "line": 650, "character": 16 } ] @@ -34858,7 +35743,7 @@ } }, { - "id": 760, + "id": 805, "name": "type", "kind": 1024, "kindString": "Property", @@ -34866,7 +35751,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 600, + "line": 648, "character": 6 } ], @@ -34875,7 +35760,7 @@ "typeArguments": [ { "type": "reference", - "id": 757, + "id": 802, "name": "EmailOtpType" }, { @@ -34903,16 +35788,16 @@ "title": "Properties", "kind": 1024, "children": [ - 761, - 762, - 760 + 806, + 807, + 805 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 599, + "line": 647, "character": 4 } ] @@ -34921,14 +35806,14 @@ { "type": "reflection", "declaration": { - "id": 766, + "id": 811, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 769, + "id": 814, "name": "options", "kind": 1024, "kindString": "Property", @@ -34938,21 +35823,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 612, + "line": 660, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 770, + "id": 815, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 771, + "id": 816, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -34965,7 +35850,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 614, + "line": 662, "character": 8 } ], @@ -34980,14 +35865,14 @@ "title": "Properties", "kind": 1024, "children": [ - 771 + 816 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 612, + "line": 660, "character": 16 } ] @@ -34995,7 +35880,7 @@ } }, { - "id": 768, + "id": 813, "name": "phone", "kind": 1024, "kindString": "Property", @@ -35003,7 +35888,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 611, + "line": 659, "character": 6 } ], @@ -35013,7 +35898,7 @@ } }, { - "id": 767, + "id": 812, "name": "type", "kind": 1024, "kindString": "Property", @@ -35021,7 +35906,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 610, + "line": 658, "character": 6 } ], @@ -35030,7 +35915,7 @@ "typeArguments": [ { "type": "reference", - "id": 756, + "id": 801, "name": "MobileOtpType" }, { @@ -35058,16 +35943,16 @@ "title": "Properties", "kind": 1024, "children": [ - 769, - 768, - 767 + 814, + 813, + 812 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 609, + "line": 657, "character": 4 } ] @@ -35077,7 +35962,7 @@ } }, { - "id": 558, + "id": 598, "name": "SSOResponse", "kind": 4194304, "kindString": "Type alias", @@ -35085,7 +35970,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 148, + "line": 189, "character": 12 } ], @@ -35095,14 +35980,14 @@ { "type": "reflection", "declaration": { - "id": 559, + "id": 599, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 560, + "id": 600, "name": "data", "kind": 1024, "kindString": "Property", @@ -35110,21 +35995,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 150, + "line": 191, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 561, + "id": 601, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 562, + "id": 602, "name": "url", "kind": 1024, "kindString": "Property", @@ -35136,7 +36021,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 158, + "line": 199, "character": 8 } ], @@ -35151,14 +36036,14 @@ "title": "Properties", "kind": 1024, "children": [ - 562 + 602 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 150, + "line": 191, "character": 12 } ] @@ -35166,7 +36051,7 @@ } }, { - "id": 563, + "id": 603, "name": "error", "kind": 1024, "kindString": "Property", @@ -35174,7 +36059,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 160, + "line": 201, "character": 6 } ], @@ -35189,15 +36074,15 @@ "title": "Properties", "kind": 1024, "children": [ - 560, - 563 + 600, + 603 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 149, + "line": 190, "character": 4 } ] @@ -35206,14 +36091,14 @@ { "type": "reflection", "declaration": { - "id": 564, + "id": 604, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 565, + "id": 605, "name": "data", "kind": 1024, "kindString": "Property", @@ -35221,7 +36106,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 163, + "line": 204, "character": 6 } ], @@ -35231,7 +36116,7 @@ } }, { - "id": 566, + "id": 606, "name": "error", "kind": 1024, "kindString": "Property", @@ -35239,13 +36124,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 164, + "line": 205, "character": 6 } ], "type": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } } @@ -35255,15 +36140,15 @@ "title": "Properties", "kind": 1024, "children": [ - 565, - 566 + 605, + 606 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 162, + "line": 203, "character": 4 } ] @@ -35273,75 +36158,29 @@ } }, { - "id": 727, - "name": "SignInWithIdTokenCredentials", + "id": 706, + "name": "SignInAnonymouslyCredentials", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/lib/types.ts", - "line": 533, + "line": 455, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 728, + "id": 707, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 731, - "name": "access_token", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "If the ID token contains an `at_hash` claim, then the hash of this value is compared to the value in the ID token." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 539, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 732, - "name": "nonce", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "If the ID token contains a `nonce` claim, then the hash of this value is compared to the value in the ID token." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 541, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 733, + "id": 708, "name": "options", "kind": 1024, "kindString": "Property", @@ -35351,21 +36190,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 542, + "line": 456, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 734, + "id": 709, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 735, + "id": 711, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -35378,7 +36217,187 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 544, + "line": 464, + "character": 4 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 710, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.", + "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n" + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 462, + "character": 4 + } + ], + "type": { + "type": "intrinsic", + "name": "object" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 711, + 710 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 456, + "character": 12 + } + ] + } + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 708 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 455, + "character": 43 + } + ] + } + } + }, + { + "id": 772, + "name": "SignInWithIdTokenCredentials", + "kind": 4194304, + "kindString": "Type alias", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 581, + "character": 12 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 773, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 776, + "name": "access_token", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "If the ID token contains an `at_hash` claim, then the hash of this value is compared to the value in the ID token." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 587, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 777, + "name": "nonce", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "If the ID token contains a `nonce` claim, then the hash of this value is compared to the value in the ID token." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 589, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 778, + "name": "options", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 590, + "character": 2 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 779, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 780, + "name": "captchaToken", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "Verification token received when the user completes the captcha on the site." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 592, "character": 4 } ], @@ -35393,14 +36412,14 @@ "title": "Properties", "kind": 1024, "children": [ - 735 + 780 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 542, + "line": 590, "character": 12 } ] @@ -35408,7 +36427,7 @@ } }, { - "id": 729, + "id": 774, "name": "provider", "kind": 1024, "kindString": "Property", @@ -35419,7 +36438,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 535, + "line": 583, "character": 2 } ], @@ -35450,7 +36469,7 @@ } }, { - "id": 730, + "id": 775, "name": "token", "kind": 1024, "kindString": "Property", @@ -35461,7 +36480,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 537, + "line": 585, "character": 2 } ], @@ -35476,18 +36495,18 @@ "title": "Properties", "kind": 1024, "children": [ - 731, - 732, - 733, - 729, - 730 + 776, + 777, + 778, + 774, + 775 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 533, + "line": 581, "character": 43 } ] @@ -35495,7 +36514,7 @@ } }, { - "id": 715, + "id": 760, "name": "SignInWithOAuthCredentials", "kind": 4194304, "kindString": "Type alias", @@ -35503,21 +36522,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 518, + "line": 566, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 716, + "id": 761, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 718, + "id": 763, "name": "options", "kind": 1024, "kindString": "Property", @@ -35527,21 +36546,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 521, + "line": 569, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 719, + "id": 764, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 722, + "id": 767, "name": "queryParams", "kind": 1024, "kindString": "Property", @@ -35554,14 +36573,14 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 527, + "line": 575, "character": 4 } ], "type": { "type": "reflection", "declaration": { - "id": 723, + "id": 768, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -35569,19 +36588,19 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 527, + "line": 575, "character": 18 } ], "indexSignature": { - "id": 724, + "id": 769, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 725, + "id": 770, "name": "key", "kind": 32768, "flags": {}, @@ -35600,7 +36619,7 @@ } }, { - "id": 720, + "id": 765, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -35613,7 +36632,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 523, + "line": 571, "character": 4 } ], @@ -35623,7 +36642,7 @@ } }, { - "id": 721, + "id": 766, "name": "scopes", "kind": 1024, "kindString": "Property", @@ -35636,7 +36655,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 525, + "line": 573, "character": 4 } ], @@ -35646,7 +36665,7 @@ } }, { - "id": 726, + "id": 771, "name": "skipBrowserRedirect", "kind": 1024, "kindString": "Property", @@ -35659,7 +36678,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 529, + "line": 577, "character": 4 } ], @@ -35674,17 +36693,17 @@ "title": "Properties", "kind": 1024, "children": [ - 722, - 720, - 721, - 726 + 767, + 765, + 766, + 771 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 521, + "line": 569, "character": 12 } ] @@ -35692,7 +36711,7 @@ } }, { - "id": 717, + "id": 762, "name": "provider", "kind": 1024, "kindString": "Property", @@ -35703,16 +36722,16 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 520, + "line": 568, "character": 2 } ], "type": { "type": "reference", - "id": 472, + "id": 478, "name": "Provider", "dereferenced": { - "id": 472, + "id": 478, "name": "Provider", "kind": 4194304, "kindString": "Type alias", @@ -35825,15 +36844,15 @@ "title": "Properties", "kind": 1024, "children": [ - 718, - 717 + 763, + 762 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 518, + "line": 566, "character": 41 } ] @@ -35841,7 +36860,7 @@ } }, { - "id": 683, + "id": 729, "name": "SignInWithPasswordCredentials", "kind": 4194304, "kindString": "Type alias", @@ -35849,7 +36868,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 451, + "line": 505, "character": 12 } ], @@ -35859,14 +36878,14 @@ { "type": "reflection", "declaration": { - "id": 684, + "id": 730, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 685, + "id": 731, "name": "email", "kind": 1024, "kindString": "Property", @@ -35877,7 +36896,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 454, + "line": 508, "character": 6 } ], @@ -35887,7 +36906,7 @@ } }, { - "id": 687, + "id": 733, "name": "options", "kind": 1024, "kindString": "Property", @@ -35897,21 +36916,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 457, + "line": 511, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 688, + "id": 734, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 689, + "id": 735, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -35924,7 +36943,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 459, + "line": 513, "character": 8 } ], @@ -35939,14 +36958,14 @@ "title": "Properties", "kind": 1024, "children": [ - 689 + 735 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 457, + "line": 511, "character": 16 } ] @@ -35954,7 +36973,7 @@ } }, { - "id": 686, + "id": 732, "name": "password", "kind": 1024, "kindString": "Property", @@ -35965,7 +36984,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 456, + "line": 510, "character": 6 } ], @@ -35980,16 +36999,16 @@ "title": "Properties", "kind": 1024, "children": [ - 685, - 687, - 686 + 731, + 733, + 732 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 452, + "line": 506, "character": 4 } ] @@ -35998,14 +37017,14 @@ { "type": "reflection", "declaration": { - "id": 690, + "id": 736, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 693, + "id": 739, "name": "options", "kind": 1024, "kindString": "Property", @@ -36015,21 +37034,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 467, + "line": 521, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 694, + "id": 740, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 696, + "id": 741, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -36042,7 +37061,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 475, + "line": 523, "character": 8 } ], @@ -36050,30 +37069,6 @@ "type": "intrinsic", "name": "string" } - }, - { - "id": 695, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", - "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n" - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 473, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "object" - } } ], "groups": [ @@ -36081,15 +37076,14 @@ "title": "Properties", "kind": 1024, "children": [ - 696, - 695 + 741 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 467, + "line": 521, "character": 16 } ] @@ -36097,7 +37091,7 @@ } }, { - "id": 692, + "id": 738, "name": "password", "kind": 1024, "kindString": "Property", @@ -36108,7 +37102,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 466, + "line": 520, "character": 6 } ], @@ -36118,7 +37112,7 @@ } }, { - "id": 691, + "id": 737, "name": "phone", "kind": 1024, "kindString": "Property", @@ -36129,7 +37123,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 464, + "line": 518, "character": 6 } ], @@ -36144,16 +37138,16 @@ "title": "Properties", "kind": 1024, "children": [ - 693, - 692, - 691 + 739, + 738, + 737 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 462, + "line": 516, "character": 4 } ] @@ -36163,7 +37157,7 @@ } }, { - "id": 697, + "id": 742, "name": "SignInWithPasswordlessCredentials", "kind": 4194304, "kindString": "Type alias", @@ -36171,7 +37165,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 479, + "line": 527, "character": 12 } ], @@ -36181,14 +37175,14 @@ { "type": "reflection", "declaration": { - "id": 698, + "id": 743, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 699, + "id": 744, "name": "email", "kind": 1024, "kindString": "Property", @@ -36199,7 +37193,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 482, + "line": 530, "character": 6 } ], @@ -36209,7 +37203,7 @@ } }, { - "id": 700, + "id": 745, "name": "options", "kind": 1024, "kindString": "Property", @@ -36219,21 +37213,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 483, + "line": 531, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 701, + "id": 746, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 705, + "id": 750, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -36246,7 +37240,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 495, + "line": 543, "character": 8 } ], @@ -36256,7 +37250,7 @@ } }, { - "id": 704, + "id": 749, "name": "data", "kind": 1024, "kindString": "Property", @@ -36264,13 +37258,13 @@ "isOptional": true }, "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", + "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.", "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n" }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 493, + "line": 541, "character": 8 } ], @@ -36280,7 +37274,7 @@ } }, { - "id": 702, + "id": 747, "name": "emailRedirectTo", "kind": 1024, "kindString": "Property", @@ -36293,7 +37287,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 485, + "line": 533, "character": 8 } ], @@ -36303,7 +37297,7 @@ } }, { - "id": 703, + "id": 748, "name": "shouldCreateUser", "kind": 1024, "kindString": "Property", @@ -36316,7 +37310,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 487, + "line": 535, "character": 8 } ], @@ -36331,17 +37325,17 @@ "title": "Properties", "kind": 1024, "children": [ - 705, - 704, - 702, - 703 + 750, + 749, + 747, + 748 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 483, + "line": 531, "character": 16 } ] @@ -36354,15 +37348,15 @@ "title": "Properties", "kind": 1024, "children": [ - 699, - 700 + 744, + 745 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 480, + "line": 528, "character": 4 } ] @@ -36371,14 +37365,14 @@ { "type": "reflection", "declaration": { - "id": 706, + "id": 751, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 708, + "id": 753, "name": "options", "kind": 1024, "kindString": "Property", @@ -36388,21 +37382,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 501, + "line": 549, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 709, + "id": 754, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 712, + "id": 757, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -36415,7 +37409,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 511, + "line": 559, "character": 8 } ], @@ -36425,7 +37419,7 @@ } }, { - "id": 713, + "id": 758, "name": "channel", "kind": 1024, "kindString": "Property", @@ -36438,7 +37432,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 513, + "line": 561, "character": 8 } ], @@ -36457,7 +37451,7 @@ } }, { - "id": 711, + "id": 756, "name": "data", "kind": 1024, "kindString": "Property", @@ -36465,13 +37459,13 @@ "isOptional": true }, "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", + "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.", "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n" }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 509, + "line": 557, "character": 8 } ], @@ -36481,7 +37475,7 @@ } }, { - "id": 710, + "id": 755, "name": "shouldCreateUser", "kind": 1024, "kindString": "Property", @@ -36494,7 +37488,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 503, + "line": 551, "character": 8 } ], @@ -36509,17 +37503,17 @@ "title": "Properties", "kind": 1024, "children": [ - 712, - 713, - 711, - 710 + 757, + 758, + 756, + 755 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 501, + "line": 549, "character": 16 } ] @@ -36527,7 +37521,7 @@ } }, { - "id": 707, + "id": 752, "name": "phone", "kind": 1024, "kindString": "Property", @@ -36538,7 +37532,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 500, + "line": 548, "character": 6 } ], @@ -36553,15 +37547,15 @@ "title": "Properties", "kind": 1024, "children": [ - 708, - 707 + 753, + 752 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 498, + "line": 546, "character": 4 } ] @@ -36571,7 +37565,7 @@ } }, { - "id": 772, + "id": 817, "name": "SignInWithSSO", "kind": 4194304, "kindString": "Type alias", @@ -36579,7 +37573,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 618, + "line": 666, "character": 12 } ], @@ -36589,14 +37583,14 @@ { "type": "reflection", "declaration": { - "id": 773, + "id": 818, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 775, + "id": 820, "name": "options", "kind": 1024, "kindString": "Property", @@ -36606,21 +37600,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 623, + "line": 671, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 776, + "id": 821, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 778, + "id": 823, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -36633,7 +37627,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 627, + "line": 675, "character": 8 } ], @@ -36643,7 +37637,7 @@ } }, { - "id": 777, + "id": 822, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -36656,7 +37650,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 625, + "line": 673, "character": 8 } ], @@ -36671,15 +37665,15 @@ "title": "Properties", "kind": 1024, "children": [ - 778, - 777 + 823, + 822 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 623, + "line": 671, "character": 16 } ] @@ -36687,7 +37681,7 @@ } }, { - "id": 774, + "id": 819, "name": "providerId", "kind": 1024, "kindString": "Property", @@ -36698,7 +37692,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 621, + "line": 669, "character": 6 } ], @@ -36713,15 +37707,15 @@ "title": "Properties", "kind": 1024, "children": [ - 775, - 774 + 820, + 819 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 619, + "line": 667, "character": 4 } ] @@ -36730,14 +37724,14 @@ { "type": "reflection", "declaration": { - "id": 779, + "id": 824, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 780, + "id": 825, "name": "domain", "kind": 1024, "kindString": "Property", @@ -36748,7 +37742,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 632, + "line": 680, "character": 6 } ], @@ -36758,7 +37752,7 @@ } }, { - "id": 781, + "id": 826, "name": "options", "kind": 1024, "kindString": "Property", @@ -36768,21 +37762,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 634, + "line": 682, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 782, + "id": 827, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 784, + "id": 829, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -36795,7 +37789,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 638, + "line": 686, "character": 8 } ], @@ -36805,7 +37799,7 @@ } }, { - "id": 783, + "id": 828, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -36818,7 +37812,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 636, + "line": 684, "character": 8 } ], @@ -36833,15 +37827,15 @@ "title": "Properties", "kind": 1024, "children": [ - 784, - 783 + 829, + 828 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 634, + "line": 682, "character": 16 } ] @@ -36854,15 +37848,15 @@ "title": "Properties", "kind": 1024, "children": [ - 780, - 781 + 825, + 826 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 630, + "line": 678, "character": 4 } ] @@ -36872,7 +37866,7 @@ } }, { - "id": 995, + "id": 1043, "name": "SignOut", "kind": 4194304, "kindString": "Type alias", @@ -36880,21 +37874,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1067, + "line": 1128, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 996, + "id": 1044, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 997, + "id": 1045, "name": "scope", "kind": 1024, "kindString": "Property", @@ -36907,7 +37901,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1078, + "line": 1139, "character": 2 } ], @@ -36935,14 +37929,14 @@ "title": "Properties", "kind": 1024, "children": [ - 997 + 1045 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 1067, + "line": 1128, "character": 22 } ] @@ -36950,7 +37944,7 @@ } }, { - "id": 666, + "id": 712, "name": "SignUpWithPasswordCredentials", "kind": 4194304, "kindString": "Type alias", @@ -36958,7 +37952,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 414, + "line": 468, "character": 12 } ], @@ -36968,14 +37962,14 @@ { "type": "reflection", "declaration": { - "id": 667, + "id": 713, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 668, + "id": 714, "name": "email", "kind": 1024, "kindString": "Property", @@ -36986,7 +37980,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 417, + "line": 471, "character": 6 } ], @@ -36996,7 +37990,7 @@ } }, { - "id": 670, + "id": 716, "name": "options", "kind": 1024, "kindString": "Property", @@ -37006,21 +38000,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 420, + "line": 474, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 671, + "id": 717, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 674, + "id": 720, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -37033,7 +38027,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 430, + "line": 484, "character": 8 } ], @@ -37043,7 +38037,7 @@ } }, { - "id": 673, + "id": 719, "name": "data", "kind": 1024, "kindString": "Property", @@ -37051,13 +38045,13 @@ "isOptional": true }, "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", + "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.", "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n" }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 428, + "line": 482, "character": 8 } ], @@ -37067,7 +38061,7 @@ } }, { - "id": 672, + "id": 718, "name": "emailRedirectTo", "kind": 1024, "kindString": "Property", @@ -37080,7 +38074,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 422, + "line": 476, "character": 8 } ], @@ -37095,16 +38089,16 @@ "title": "Properties", "kind": 1024, "children": [ - 674, - 673, - 672 + 720, + 719, + 718 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 420, + "line": 474, "character": 16 } ] @@ -37112,7 +38106,7 @@ } }, { - "id": 669, + "id": 715, "name": "password", "kind": 1024, "kindString": "Property", @@ -37123,7 +38117,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 419, + "line": 473, "character": 6 } ], @@ -37138,16 +38132,16 @@ "title": "Properties", "kind": 1024, "children": [ - 668, - 670, - 669 + 714, + 716, + 715 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 415, + "line": 469, "character": 4 } ] @@ -37156,14 +38150,14 @@ { "type": "reflection", "declaration": { - "id": 675, + "id": 721, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 678, + "id": 724, "name": "options", "kind": 1024, "kindString": "Property", @@ -37173,21 +38167,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 438, + "line": 492, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 679, + "id": 725, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 681, + "id": 727, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -37200,7 +38194,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 446, + "line": 500, "character": 8 } ], @@ -37210,7 +38204,7 @@ } }, { - "id": 682, + "id": 728, "name": "channel", "kind": 1024, "kindString": "Property", @@ -37223,7 +38217,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 448, + "line": 502, "character": 8 } ], @@ -37242,7 +38236,7 @@ } }, { - "id": 680, + "id": 726, "name": "data", "kind": 1024, "kindString": "Property", @@ -37250,13 +38244,13 @@ "isOptional": true }, "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", + "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.", "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n" }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 444, + "line": 498, "character": 8 } ], @@ -37271,16 +38265,16 @@ "title": "Properties", "kind": 1024, "children": [ - 681, - 682, - 680 + 727, + 728, + 726 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 438, + "line": 492, "character": 16 } ] @@ -37288,7 +38282,7 @@ } }, { - "id": 677, + "id": 723, "name": "password", "kind": 1024, "kindString": "Property", @@ -37299,7 +38293,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 437, + "line": 491, "character": 6 } ], @@ -37309,7 +38303,7 @@ } }, { - "id": 676, + "id": 722, "name": "phone", "kind": 1024, "kindString": "Property", @@ -37320,7 +38314,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 435, + "line": 489, "character": 6 } ], @@ -37335,16 +38329,16 @@ "title": "Properties", "kind": 1024, "children": [ - 678, - 677, - 676 + 724, + 723, + 722 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 433, + "line": 487, "character": 4 } ] @@ -37354,7 +38348,7 @@ } }, { - "id": 973, + "id": 1019, "name": "SupportedStorage", "kind": 4194304, "kindString": "Type alias", @@ -37362,50 +38356,106 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1039, + "line": 1089, "character": 12 } ], "type": { - "type": "reference", - "typeArguments": [ + "type": "intersection", + "types": [ { "type": "reference", "typeArguments": [ { "type": "reference", - "qualifiedName": "Storage", - "package": "typescript", - "name": "Storage" - }, - { - "type": "union", - "types": [ + "typeArguments": [ { - "type": "literal", - "value": "getItem" + "type": "reference", + "qualifiedName": "Storage", + "package": "typescript", + "name": "Storage" }, { - "type": "literal", - "value": "setItem" - }, - { - "type": "literal", - "value": "removeItem" + "type": "union", + "types": [ + { + "type": "literal", + "value": "getItem" + }, + { + "type": "literal", + "value": "setItem" + }, + { + "type": "literal", + "value": "removeItem" + } + ] } - ] + ], + "qualifiedName": "Pick", + "package": "typescript", + "name": "Pick" } ], - "qualifiedName": "Pick", - "package": "typescript", - "name": "Pick" + "name": "PromisifyMethods" + }, + { + "type": "reflection", + "declaration": { + "id": 1020, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 1021, + "name": "isServer", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "If set to `true` signals to the library that the storage medium is used\non a server and the values may not be authentic, such as reading from\nrequest cookies. Implementations should not set this to true if the client\nis used on a server that reads storage information from authenticated\nsources, such as a secure database or file." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1099, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 1021 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1091, + "character": 4 + } + ] + } } - ], - "name": "PromisifyMethods" + ] } }, { - "id": 567, + "id": 607, "name": "UserResponse", "kind": 4194304, "kindString": "Type alias", @@ -37413,7 +38463,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 167, + "line": 208, "character": 12 } ], @@ -37423,14 +38473,14 @@ { "type": "reflection", "declaration": { - "id": 568, + "id": 608, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 569, + "id": 609, "name": "data", "kind": 1024, "kindString": "Property", @@ -37438,21 +38488,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 169, + "line": 210, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 570, + "id": 610, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 571, + "id": 611, "name": "user", "kind": 1024, "kindString": "Property", @@ -37460,13 +38510,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 170, + "line": 211, "character": 8 } ], "type": { "type": "reference", - "id": 616, + "id": 656, "name": "User" } } @@ -37476,14 +38526,14 @@ "title": "Properties", "kind": 1024, "children": [ - 571 + 611 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 169, + "line": 210, "character": 12 } ] @@ -37491,7 +38541,7 @@ } }, { - "id": 572, + "id": 612, "name": "error", "kind": 1024, "kindString": "Property", @@ -37499,7 +38549,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 172, + "line": 213, "character": 6 } ], @@ -37514,15 +38564,15 @@ "title": "Properties", "kind": 1024, "children": [ - 569, - 572 + 609, + 612 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 168, + "line": 209, "character": 4 } ] @@ -37531,14 +38581,14 @@ { "type": "reflection", "declaration": { - "id": 573, + "id": 613, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 574, + "id": 614, "name": "data", "kind": 1024, "kindString": "Property", @@ -37546,21 +38596,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 175, + "line": 216, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 575, + "id": 615, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 576, + "id": 616, "name": "user", "kind": 1024, "kindString": "Property", @@ -37568,7 +38618,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 176, + "line": 217, "character": 8 } ], @@ -37583,14 +38633,14 @@ "title": "Properties", "kind": 1024, "children": [ - 576 + 616 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 175, + "line": 216, "character": 12 } ] @@ -37598,7 +38648,7 @@ } }, { - "id": 577, + "id": 617, "name": "error", "kind": 1024, "kindString": "Property", @@ -37606,13 +38656,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 178, + "line": 219, "character": 6 } ], "type": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } } @@ -37622,15 +38672,15 @@ "title": "Properties", "kind": 1024, "children": [ - 574, - 577 + 614, + 617 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 174, + "line": 215, "character": 4 } ] @@ -37640,7 +38690,7 @@ } }, { - "id": 736, + "id": 781, "name": "VerifyOtpParams", "kind": 4194304, "kindString": "Type alias", @@ -37648,7 +38698,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 548, + "line": 596, "character": 12 } ], @@ -37656,14 +38706,14 @@ "type": "union", "types": [ { - "id": 737, + "id": 782, "name": "VerifyMobileOtpParams", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 741, + "id": 786, "name": "options", "kind": 1024, "kindString": "Property", @@ -37673,21 +38723,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 556, + "line": 604, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 742, + "id": 787, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 744, + "id": 789, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -37706,7 +38756,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 565, + "line": 613, "character": 4 } ], @@ -37716,7 +38766,7 @@ } }, { - "id": 743, + "id": 788, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -37729,7 +38779,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 558, + "line": 606, "character": 4 } ], @@ -37744,8 +38794,8 @@ "title": "Properties", "kind": 1024, "children": [ - 744, - 743 + 789, + 788 ] } ] @@ -37753,7 +38803,7 @@ } }, { - "id": 738, + "id": 783, "name": "phone", "kind": 1024, "kindString": "Property", @@ -37764,7 +38814,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 551, + "line": 599, "character": 2 } ], @@ -37774,7 +38824,7 @@ } }, { - "id": 739, + "id": 784, "name": "token", "kind": 1024, "kindString": "Property", @@ -37785,7 +38835,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 553, + "line": 601, "character": 2 } ], @@ -37795,7 +38845,7 @@ } }, { - "id": 740, + "id": 785, "name": "type", "kind": 1024, "kindString": "Property", @@ -37806,16 +38856,16 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 555, + "line": 603, "character": 2 } ], "type": { "type": "reference", - "id": 756, + "id": 801, "name": "MobileOtpType", "dereferenced": { - "id": 756, + "id": 801, "name": "MobileOtpType", "kind": 4194304, "kindString": "Type alias", @@ -37823,7 +38873,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 595, + "line": 643, "character": 12 } ], @@ -37849,30 +38899,30 @@ "title": "Properties", "kind": 1024, "children": [ - 741, - 738, - 739, - 740 + 786, + 783, + 784, + 785 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 549, + "line": 597, "character": 17 } ] }, { - "id": 745, + "id": 790, "name": "VerifyEmailOtpParams", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 746, + "id": 791, "name": "email", "kind": 1024, "kindString": "Property", @@ -37883,7 +38933,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 570, + "line": 618, "character": 2 } ], @@ -37893,7 +38943,7 @@ } }, { - "id": 749, + "id": 794, "name": "options", "kind": 1024, "kindString": "Property", @@ -37903,21 +38953,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 575, + "line": 623, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 750, + "id": 795, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 752, + "id": 797, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -37936,7 +38986,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 583, + "line": 631, "character": 4 } ], @@ -37946,7 +38996,7 @@ } }, { - "id": 751, + "id": 796, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -37959,7 +39009,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 577, + "line": 625, "character": 4 } ], @@ -37974,8 +39024,8 @@ "title": "Properties", "kind": 1024, "children": [ - 752, - 751 + 797, + 796 ] } ] @@ -37983,7 +39033,7 @@ } }, { - "id": 747, + "id": 792, "name": "token", "kind": 1024, "kindString": "Property", @@ -37994,7 +39044,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 572, + "line": 620, "character": 2 } ], @@ -38004,7 +39054,7 @@ } }, { - "id": 748, + "id": 793, "name": "type", "kind": 1024, "kindString": "Property", @@ -38015,16 +39065,16 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 574, + "line": 622, "character": 2 } ], "type": { "type": "reference", - "id": 757, + "id": 802, "name": "EmailOtpType", "dereferenced": { - "id": 757, + "id": 802, "name": "EmailOtpType", "kind": 4194304, "kindString": "Type alias", @@ -38032,7 +39082,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 596, + "line": 644, "character": 12 } ], @@ -38074,30 +39124,30 @@ "title": "Properties", "kind": 1024, "children": [ - 746, - 749, - 747, - 748 + 791, + 794, + 792, + 793 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 568, + "line": 616, "character": 17 } ] }, { - "id": 753, + "id": 798, "name": "VerifyTokenHashParams", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 754, + "id": 799, "name": "token_hash", "kind": 1024, "kindString": "Property", @@ -38108,7 +39158,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 589, + "line": 637, "character": 2 } ], @@ -38118,7 +39168,7 @@ } }, { - "id": 755, + "id": 800, "name": "type", "kind": 1024, "kindString": "Property", @@ -38129,16 +39179,16 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 592, + "line": 640, "character": 2 } ], "type": { "type": "reference", - "id": 757, + "id": 802, "name": "EmailOtpType", "dereferenced": { - "id": 757, + "id": 802, "name": "EmailOtpType", "kind": 4194304, "kindString": "Type alias", @@ -38146,7 +39196,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 596, + "line": 644, "character": 12 } ], @@ -38188,15 +39238,15 @@ "title": "Properties", "kind": 1024, "children": [ - 754, - 755 + 799, + 800 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 587, + "line": 635, "character": 17 } ] @@ -38205,7 +39255,175 @@ } }, { - "id": 469, + "id": 511, + "name": "WeakPassword", + "kind": 4194304, + "kindString": "Type alias", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 86, + "character": 12 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 512, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 514, + "name": "message", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 88, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 513, + "name": "reasons", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 87, + "character": 2 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "id": 510, + "name": "WeakPasswordReasons" + } + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 514, + 513 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 86, + "character": 27 + } + ] + } + } + }, + { + "id": 510, + "name": "WeakPasswordReasons", + "kind": 4194304, + "kindString": "Type alias", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 85, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "length" + }, + { + "type": "literal", + "value": "characters" + }, + { + "type": "literal", + "value": "pwned" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 460, + "name": "AuthAdminApi", + "kind": 32, + "kindString": "Variable", + "flags": { + "isConst": true + }, + "sources": [ + { + "fileName": "src/AuthAdminApi.ts", + "line": 3, + "character": 6 + } + ], + "type": { + "type": "query", + "queryType": { + "type": "reference", + "id": 1, + "name": "default" + } + }, + "defaultValue": "GoTrueAdminApi" + }, + { + "id": 461, + "name": "AuthClient", + "kind": 32, + "kindString": "Variable", + "flags": { + "isConst": true + }, + "sources": [ + { + "fileName": "src/AuthClient.ts", + "line": 3, + "character": 6 + } + ], + "type": { + "type": "query", + "queryType": { + "type": "reference", + "id": 78, + "name": "default" + } + }, + "defaultValue": "GoTrueClient" + }, + { + "id": 475, "name": "lockInternals", "kind": 32, "kindString": "Variable", @@ -38230,14 +39448,14 @@ "type": { "type": "reflection", "declaration": { - "id": 470, + "id": 476, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 471, + "id": 477, "name": "debug", "kind": 1024, "kindString": "Property", @@ -38269,7 +39487,7 @@ "title": "Properties", "kind": 1024, "children": [ - 471 + 477 ] } ] @@ -38278,7 +39496,7 @@ "defaultValue": "..." }, { - "id": 1001, + "id": 1049, "name": "isAuthApiError", "kind": 64, "kindString": "Function", @@ -38286,20 +39504,20 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 34, + "line": 36, "character": 16 } ], "signatures": [ { - "id": 1002, + "id": 1050, "name": "isAuthApiError", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 1003, + "id": 1051, "name": "error", "kind": 32768, "kindString": "Parameter", @@ -38316,7 +39534,7 @@ "asserts": false, "targetType": { "type": "reference", - "id": 1017, + "id": 1065, "name": "AuthApiError" } } @@ -38324,7 +39542,7 @@ ] }, { - "id": 998, + "id": 1046, "name": "isAuthError", "kind": 64, "kindString": "Function", @@ -38332,20 +39550,20 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 12, + "line": 14, "character": 16 } ], "signatures": [ { - "id": 999, + "id": 1047, "name": "isAuthError", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 1000, + "id": 1048, "name": "error", "kind": 32768, "kindString": "Parameter", @@ -38362,7 +39580,7 @@ "asserts": false, "targetType": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } } @@ -38370,7 +39588,7 @@ ] }, { - "id": 1004, + "id": 1052, "name": "isAuthRetryableFetchError", "kind": 64, "kindString": "Function", @@ -38378,20 +39596,20 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 124, + "line": 126, "character": 16 } ], "signatures": [ { - "id": 1005, + "id": 1053, "name": "isAuthRetryableFetchError", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 1006, + "id": 1054, "name": "error", "kind": 32768, "kindString": "Parameter", @@ -38408,7 +39626,7 @@ "asserts": false, "targetType": { "type": "reference", - "id": 1140, + "id": 1188, "name": "AuthRetryableFetchError" } } @@ -38416,7 +39634,7 @@ ] }, { - "id": 1007, + "id": 1055, "name": "isAuthWeakPasswordError", "kind": 64, "kindString": "Function", @@ -38424,20 +39642,20 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 146, + "line": 148, "character": 16 } ], "signatures": [ { - "id": 1008, + "id": 1056, "name": "isAuthWeakPasswordError", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 1009, + "id": 1057, "name": "error", "kind": 32768, "kindString": "Parameter", @@ -38454,7 +39672,7 @@ "asserts": false, "targetType": { "type": "reference", - "id": 1154, + "id": 1202, "name": "AuthWeakPasswordError" } } @@ -38462,7 +39680,7 @@ ] }, { - "id": 456, + "id": 462, "name": "navigatorLock", "kind": 64, "kindString": "Function", @@ -38470,30 +39688,24 @@ "sources": [ { "fileName": "src/lib/locks.ts", - "line": 55, + "line": 58, "character": 22 } ], "signatures": [ { - "id": 457, + "id": 463, "name": "navigatorLock", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { "shortText": "Implements a global exclusive lock using the Navigator LockManager API. It\nis available on all browsers released after 2022-03-15 with Safari being the\nlast one to release support. If the API is not available, this function will\nthrow. Make sure you check availablility before configuring {@link\nGoTrueClient}.", - "text": "You can turn on debugging by setting the `supabase.gotrue-js.locks.debug`\nlocal storage item to `true`.\n\nInternals:\n\nSince the LockManager API does not preserve stack traces for the async\nfunction passed in the `request` method, a trick is used where acquiring the\nlock releases a previously started promise to run the operation in the `fn`\nfunction. The lock waits for that promise to finish (with or without error),\nwhile the function will finally wait for the result anyway.\n", - "tags": [ - { - "tag": "experimental", - "text": "\n" - } - ] + "text": "You can turn on debugging by setting the `supabase.gotrue-js.locks.debug`\nlocal storage item to `true`.\n\nInternals:\n\nSince the LockManager API does not preserve stack traces for the async\nfunction passed in the `request` method, a trick is used where acquiring the\nlock releases a previously started promise to run the operation in the `fn`\nfunction. The lock waits for that promise to finish (with or without error),\nwhile the function will finally wait for the result anyway.\n" }, "typeParameter": [ { - "id": 458, + "id": 464, "name": "R", "kind": 131072, "kindString": "Type parameter", @@ -38502,7 +39714,7 @@ ], "parameters": [ { - "id": 459, + "id": 465, "name": "name", "kind": 32768, "kindString": "Parameter", @@ -38516,7 +39728,7 @@ } }, { - "id": 460, + "id": 466, "name": "acquireTimeout", "kind": 32768, "kindString": "Parameter", @@ -38530,7 +39742,7 @@ } }, { - "id": 461, + "id": 467, "name": "fn", "kind": 32768, "kindString": "Parameter", @@ -38541,14 +39753,14 @@ "type": { "type": "reflection", "declaration": { - "id": 462, + "id": 468, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 463, + "id": 469, "name": "__type", "kind": 4096, "kindString": "Call signature", @@ -38558,7 +39770,7 @@ "typeArguments": [ { "type": "reference", - "id": 458, + "id": 464, "name": "R" } ], @@ -38577,7 +39789,7 @@ "typeArguments": [ { "type": "reference", - "id": 458, + "id": 464, "name": "R" } ], @@ -38594,119 +39806,126 @@ "title": "Classes", "kind": 128, "children": [ - 1017, - 1010, - 1090, - 1077, 1065, - 1115, - 1140, - 1053, - 1030, - 1154, - 1038, + 1058, + 1138, + 1125, + 1113, + 1163, + 1188, + 1101, + 1078, + 1202, + 1086, 1, 78, - 464 + 470 ] }, { "title": "Interfaces", "kind": 256, "children": [ - 587, - 645, - 602, - 807, - 966, - 921, - 578, + 627, + 685, + 642, + 852, + 1012, + 967, + 618, + 696, + 704, 656, - 664, - 616, - 609, - 639, - 590, - 613, - 745, - 737, - 753 + 649, + 679, + 630, + 653, + 790, + 782, + 798 ] }, { "title": "Type Aliases", "kind": 4194304, "children": [ - 474, - 473, - 714, - 950, - 941, - 963, - 954, - 889, - 865, + 480, + 479, + 759, + 996, + 987, + 1009, + 1000, + 935, 910, - 899, - 880, - 852, - 517, - 504, - 532, - 909, - 977, - 757, + 956, + 945, + 926, + 897, + 542, + 515, + 528, + 557, + 570, + 955, + 1025, + 802, + 846, + 836, + 855, + 869, + 856, + 876, + 841, + 830, + 490, + 1022, + 481, + 893, + 890, + 877, + 882, + 885, 801, - 791, - 810, - 824, - 811, - 831, - 796, - 785, - 484, - 974, - 475, - 848, - 845, - 832, - 837, - 840, - 756, - 545, - 991, - 984, - 472, - 758, - 558, - 727, - 715, - 683, - 697, + 585, + 1039, + 1032, + 478, + 803, + 598, + 706, 772, - 995, - 666, - 973, - 567, - 736 + 760, + 729, + 742, + 817, + 1043, + 712, + 1019, + 607, + 781, + 511, + 510 ] }, { "title": "Variables", "kind": 32, "children": [ - 469 + 460, + 461, + 475 ] }, { "title": "Functions", "kind": 64, "children": [ - 1001, - 998, - 1004, - 1007, - 456 + 1049, + 1046, + 1052, + 1055, + 462 ] } ], @@ -38727,7 +39946,7 @@ "originalName": "", "children": [ { - "id": 610, + "id": 609, "name": "PostgrestBuilder", "kind": 128, "kindString": "Class", @@ -38736,7 +39955,7 @@ }, "children": [ { - "id": 611, + "id": 610, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -38744,20 +39963,20 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 19, + "line": 20, "character": 2 } ], "signatures": [ { - "id": 612, + "id": 611, "name": "new PostgrestBuilder", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "typeParameter": [ { - "id": 613, + "id": 612, "name": "Result", "kind": 131072, "kindString": "Type parameter", @@ -38766,24 +39985,24 @@ ], "parameters": [ { - "id": 614, + "id": 613, "name": "builder", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "reference", - "id": 613, + "id": 612, "name": "Result" } ], "name": "default", "dereferenced": { - "id": 610, + "id": 609, "name": "PostgrestBuilder", "kind": 128, "kindString": "Class", @@ -38796,43 +40015,43 @@ "title": "Constructors", "kind": 512, "children": [ - 611 + 610 ] }, { "title": "Properties", "kind": 1024, "children": [ - 619, - 622, - 617, - 627, - 615, 618, - 620, 621, - 616 + 616, + 626, + 614, + 617, + 619, + 620, + 615 ] }, { "title": "Methods", "kind": 2048, "children": [ - 630, - 628 + 629, + 627 ] } ], "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 6, + "line": 7, "character": 30 } ], "typeParameter": [ { - "id": 642, + "id": 641, "name": "Result", "kind": 131072, "kindString": "Type parameter", @@ -38842,7 +40061,7 @@ "extendedBy": [ { "type": "reference", - "id": 490, + "id": 489, "name": "PostgrestTransformBuilder" } ], @@ -38852,11 +40071,11 @@ "typeArguments": [ { "type": "reference", - "id": 658, + "id": 657, "typeArguments": [ { "type": "reference", - "id": 613, + "id": 612, "name": "Result" } ], @@ -38874,11 +40093,11 @@ ], "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "reference", - "id": 613, + "id": 612, "name": "Result" } ], @@ -38888,7 +40107,7 @@ ] }, { - "id": 619, + "id": 618, "name": "body", "kind": 1024, "kindString": "Property", @@ -38899,7 +40118,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 13, + "line": 14, "character": 12 } ], @@ -38909,7 +40128,7 @@ } }, { - "id": 622, + "id": 621, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -38919,28 +40138,28 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 16, + "line": 17, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 623, + "id": 622, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 624, + "id": 623, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 625, + "id": 624, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -38964,7 +40183,7 @@ } }, { - "id": 626, + "id": 625, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -38999,7 +40218,7 @@ } }, { - "id": 617, + "id": 616, "name": "headers", "kind": 1024, "kindString": "Property", @@ -39009,7 +40228,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 11, + "line": 12, "character": 12 } ], @@ -39031,7 +40250,7 @@ } }, { - "id": 627, + "id": 626, "name": "isMaybeSingle", "kind": 1024, "kindString": "Property", @@ -39041,7 +40260,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 17, + "line": 18, "character": 12 } ], @@ -39051,7 +40270,7 @@ } }, { - "id": 615, + "id": 614, "name": "method", "kind": 1024, "kindString": "Property", @@ -39061,7 +40280,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 9, + "line": 10, "character": 12 } ], @@ -39092,7 +40311,7 @@ } }, { - "id": 618, + "id": 617, "name": "schema", "kind": 1024, "kindString": "Property", @@ -39103,7 +40322,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 12, + "line": 13, "character": 12 } ], @@ -39113,7 +40332,7 @@ } }, { - "id": 620, + "id": 619, "name": "shouldThrowOnError", "kind": 1024, "kindString": "Property", @@ -39123,7 +40342,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 14, + "line": 15, "character": 12 } ], @@ -39134,7 +40353,7 @@ "defaultValue": "false" }, { - "id": 621, + "id": 620, "name": "signal", "kind": 1024, "kindString": "Property", @@ -39145,7 +40364,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 15, + "line": 16, "character": 12 } ], @@ -39157,7 +40376,7 @@ } }, { - "id": 616, + "id": 615, "name": "url", "kind": 1024, "kindString": "Property", @@ -39167,7 +40386,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 10, + "line": 11, "character": 12 } ], @@ -39179,7 +40398,7 @@ } }, { - "id": 630, + "id": 629, "name": "then", "kind": 2048, "kindString": "Method", @@ -39187,31 +40406,31 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 49, + "line": 50, "character": 2 } ], "signatures": [ { - "id": 631, + "id": 630, "name": "then", "kind": 4096, "kindString": "Call signature", "flags": {}, "typeParameter": [ { - "id": 632, + "id": 631, "name": "TResult1", "kind": 131072, "kindString": "Type parameter", "flags": {}, "default": { "type": "reference", - "id": 658, + "id": 657, "typeArguments": [ { "type": "reference", - "id": 613, + "id": 612, "name": "Result" } ], @@ -39219,7 +40438,7 @@ } }, { - "id": 633, + "id": 632, "name": "TResult2", "kind": 131072, "kindString": "Type parameter", @@ -39232,7 +40451,7 @@ ], "parameters": [ { - "id": 634, + "id": 633, "name": "onfulfilled", "kind": 32768, "kindString": "Parameter", @@ -39249,32 +40468,32 @@ { "type": "reflection", "declaration": { - "id": 635, + "id": 634, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 636, + "id": 635, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 637, + "id": 636, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 658, + "id": 657, "typeArguments": [ { "type": "reference", - "id": 613, + "id": 612, "name": "Result" } ], @@ -39287,7 +40506,7 @@ "types": [ { "type": "reference", - "id": 475, + "id": 474, "name": "TResult1" }, { @@ -39295,7 +40514,7 @@ "typeArguments": [ { "type": "reference", - "id": 475, + "id": 474, "name": "TResult1" } ], @@ -39313,7 +40532,7 @@ } }, { - "id": 638, + "id": 637, "name": "onrejected", "kind": 32768, "kindString": "Parameter", @@ -39330,21 +40549,21 @@ { "type": "reflection", "declaration": { - "id": 639, + "id": 638, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 640, + "id": 639, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 641, + "id": 640, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -39360,7 +40579,7 @@ "types": [ { "type": "reference", - "id": 476, + "id": 475, "name": "TResult2" }, { @@ -39368,7 +40587,7 @@ "typeArguments": [ { "type": "reference", - "id": 476, + "id": 475, "name": "TResult2" } ], @@ -39394,12 +40613,12 @@ "types": [ { "type": "reference", - "id": 475, + "id": 474, "name": "TResult1" }, { "type": "reference", - "id": 476, + "id": 475, "name": "TResult2" } ] @@ -39421,7 +40640,7 @@ } }, { - "id": 628, + "id": 627, "name": "throwOnError", "kind": 2048, "kindString": "Method", @@ -39429,13 +40648,13 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 44, + "line": 45, "character": 2 } ], "signatures": [ { - "id": 629, + "id": 628, "name": "throwOnError", "kind": 4096, "kindString": "Call signature", @@ -39446,11 +40665,11 @@ }, "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "reference", - "id": 613, + "id": 612, "name": "Result" } ], @@ -39465,43 +40684,43 @@ "title": "Constructors", "kind": 512, "children": [ - 611 + 610 ] }, { "title": "Properties", "kind": 1024, "children": [ - 619, - 622, - 617, - 627, - 615, 618, - 620, 621, - 616 + 616, + 626, + 614, + 617, + 619, + 620, + 615 ] }, { "title": "Methods", "kind": 2048, "children": [ - 630, - 628 + 629, + 627 ] } ], "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 6, + "line": 7, "character": 30 } ], "typeParameter": [ { - "id": 642, + "id": 641, "name": "Result", "kind": 131072, "kindString": "Type parameter", @@ -39511,7 +40730,7 @@ "extendedBy": [ { "type": "reference", - "id": 490, + "id": 489, "name": "PostgrestTransformBuilder" } ], @@ -39521,11 +40740,11 @@ "typeArguments": [ { "type": "reference", - "id": 658, + "id": 657, "typeArguments": [ { "type": "reference", - "id": 613, + "id": 612, "name": "Result" } ], @@ -40135,7 +41354,7 @@ ], "type": { "type": "reference", - "id": 57, + "id": 56, "typeArguments": [ { "type": "reference", @@ -40264,7 +41483,7 @@ ], "type": { "type": "reference", - "id": 57, + "id": 56, "typeArguments": [ { "type": "reference", @@ -40339,61 +41558,11 @@ ], "name": "default" } - }, - { - "id": 38, - "name": "from", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Perform a query on a table or a view." - }, - "parameters": [ - { - "id": 39, - "name": "relation", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "shortText": "The table or view name to query\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "id": 57, - "typeArguments": [ - { - "type": "reference", - "id": 6, - "name": "Schema" - }, - { - "type": "intrinsic", - "name": "any" - }, - { - "type": "intrinsic", - "name": "any" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "default" - } } ] }, { - "id": 44, + "id": 42, "name": "rpc", "kind": 2048, "kindString": "Method", @@ -40401,13 +41570,13 @@ "sources": [ { "fileName": "src/PostgrestClient.ts", - "line": 123, + "line": 124, "character": 2 } ], "signatures": [ { - "id": 45, + "id": 43, "name": "rpc", "kind": 4096, "kindString": "Call signature", @@ -40417,8 +41586,8 @@ }, "typeParameter": [ { - "id": 46, - "name": "FunctionName", + "id": 44, + "name": "FnName", "kind": 131072, "kindString": "Type parameter", "flags": {}, @@ -40428,8 +41597,8 @@ } }, { - "id": 47, - "name": "Function_", + "id": 45, + "name": "Fn", "kind": 131072, "kindString": "Type parameter", "flags": {}, @@ -40441,7 +41610,7 @@ ], "parameters": [ { - "id": 48, + "id": 46, "name": "fn", "kind": 32768, "kindString": "Parameter", @@ -40451,13 +41620,13 @@ }, "type": { "type": "reference", - "id": 46, - "name": "FunctionName", + "id": 44, + "name": "FnName", "dereferenced": {} } }, { - "id": 49, + "id": 47, "name": "args", "kind": 32768, "kindString": "Parameter", @@ -40473,14 +41642,14 @@ }, "objectType": { "type": "reference", - "id": 47, - "name": "Function_" + "id": 45, + "name": "Fn" } }, "defaultValue": "{}" }, { - "id": 50, + "id": 48, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -40492,14 +41661,14 @@ "type": { "type": "reflection", "declaration": { - "id": 51, + "id": 49, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 53, + "id": 52, "name": "count", "kind": 1024, "kindString": "Property", @@ -40535,7 +41704,30 @@ } }, { - "id": 52, + "id": 51, + "name": "get", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "When set to `true`, the function will be called with\nread-only access mode." + }, + "sources": [ + { + "fileName": "src/PostgrestClient.ts", + "line": 133, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 50, "name": "head", "kind": 1024, "kindString": "Property", @@ -40548,7 +41740,7 @@ "sources": [ { "fileName": "src/PostgrestClient.ts", - "line": 133, + "line": 132, "character": 6 } ], @@ -40563,8 +41755,9 @@ "title": "Properties", "kind": 1024, "children": [ - 53, - 52 + 52, + 51, + 50 ] } ] @@ -40575,7 +41768,7 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", @@ -40592,8 +41785,8 @@ }, "objectType": { "type": "reference", - "id": 47, - "name": "Function_" + "id": 45, + "name": "Fn" } }, "extendsType": { @@ -40668,8 +41861,8 @@ }, "objectType": { "type": "reference", - "id": 47, - "name": "Function_" + "id": 45, + "name": "Fn" } }, { @@ -40687,7 +41880,7 @@ ] }, { - "id": 40, + "id": 38, "name": "schema", "kind": 2048, "kindString": "Method", @@ -40695,13 +41888,13 @@ "sources": [ { "fileName": "src/PostgrestClient.ts", - "line": 88, + "line": 87, "character": 2 } ], "signatures": [ { - "id": 41, + "id": 39, "name": "schema", "kind": 4096, "kindString": "Call signature", @@ -40712,7 +41905,7 @@ }, "typeParameter": [ { - "id": 42, + "id": 40, "name": "DynamicSchema", "kind": 131072, "kindString": "Type parameter", @@ -40725,7 +41918,7 @@ ], "parameters": [ { - "id": 43, + "id": 41, "name": "schema", "kind": 32768, "kindString": "Parameter", @@ -40735,7 +41928,7 @@ }, "type": { "type": "reference", - "id": 42, + "id": 40, "name": "DynamicSchema", "dereferenced": {} } @@ -40752,7 +41945,7 @@ }, { "type": "reference", - "id": 42, + "id": 40, "name": "DynamicSchema" }, { @@ -40761,7 +41954,7 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 42, + "id": 40, "name": "DynamicSchema" }, "objectType": { @@ -40820,8 +42013,8 @@ "kind": 2048, "children": [ 25, - 44, - 40 + 42, + 38 ] } ], @@ -40834,7 +42027,7 @@ ], "typeParameter": [ { - "id": 54, + "id": 53, "name": "Database", "kind": 131072, "kindString": "Type parameter", @@ -40848,7 +42041,7 @@ } }, { - "id": 55, + "id": 54, "name": "SchemaName", "kind": 131072, "kindString": "Type parameter", @@ -40914,7 +42107,7 @@ } }, { - "id": 56, + "id": 55, "name": "Schema", "kind": 131072, "kindString": "Type parameter", @@ -40964,28 +42157,28 @@ ] }, { - "id": 144, + "id": 143, "name": "PostgrestFilterBuilder", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 145, + "id": 144, "name": "constructor", "kind": 512, "kindString": "Constructor", "flags": {}, "signatures": [ { - "id": 146, + "id": 145, "name": "new PostgrestFilterBuilder", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "typeParameter": [ { - "id": 147, + "id": 146, "name": "Schema", "kind": 131072, "kindString": "Type parameter", @@ -40996,7 +42189,7 @@ } }, { - "id": 148, + "id": 147, "name": "Row", "kind": 131072, "kindString": "Type parameter", @@ -41019,14 +42212,14 @@ } }, { - "id": 149, + "id": 148, "name": "Result", "kind": 131072, "kindString": "Type parameter", "flags": {} }, { - "id": 150, + "id": 149, "name": "RelationName", "kind": 131072, "kindString": "Type parameter", @@ -41037,7 +42230,7 @@ } }, { - "id": 151, + "id": 150, "name": "Relationships", "kind": 131072, "kindString": "Type parameter", @@ -41050,24 +42243,24 @@ ], "parameters": [ { - "id": 152, + "id": 151, "name": "builder", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "reference", - "id": 149, + "id": 148, "name": "Result" } ], "name": "default", "dereferenced": { - "id": 610, + "id": 609, "name": "PostgrestBuilder", "kind": 128, "kindString": "Class", @@ -41076,7 +42269,7 @@ }, "children": [ { - "id": 611, + "id": 610, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -41084,20 +42277,20 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 19, + "line": 20, "character": 2 } ], "signatures": [ { - "id": 612, + "id": 611, "name": "new PostgrestBuilder", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "typeParameter": [ { - "id": 613, + "id": 612, "name": "Result", "kind": 131072, "kindString": "Type parameter", @@ -41106,18 +42299,18 @@ ], "parameters": [ { - "id": 614, + "id": 613, "name": "builder", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "reference", - "id": 613, + "id": 612, "name": "Result" } ], @@ -41128,11 +42321,11 @@ ], "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "reference", - "id": 613, + "id": 612, "name": "Result" } ], @@ -41142,7 +42335,7 @@ ] }, { - "id": 619, + "id": 618, "name": "body", "kind": 1024, "kindString": "Property", @@ -41153,7 +42346,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 13, + "line": 14, "character": 12 } ], @@ -41163,7 +42356,7 @@ } }, { - "id": 622, + "id": 621, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -41173,28 +42366,28 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 16, + "line": 17, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 623, + "id": 622, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 624, + "id": 623, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 625, + "id": 624, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -41218,7 +42411,7 @@ } }, { - "id": 626, + "id": 625, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -41253,7 +42446,7 @@ } }, { - "id": 617, + "id": 616, "name": "headers", "kind": 1024, "kindString": "Property", @@ -41263,7 +42456,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 11, + "line": 12, "character": 12 } ], @@ -41285,7 +42478,7 @@ } }, { - "id": 627, + "id": 626, "name": "isMaybeSingle", "kind": 1024, "kindString": "Property", @@ -41295,7 +42488,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 17, + "line": 18, "character": 12 } ], @@ -41305,7 +42498,7 @@ } }, { - "id": 615, + "id": 614, "name": "method", "kind": 1024, "kindString": "Property", @@ -41315,7 +42508,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 9, + "line": 10, "character": 12 } ], @@ -41346,7 +42539,7 @@ } }, { - "id": 618, + "id": 617, "name": "schema", "kind": 1024, "kindString": "Property", @@ -41357,7 +42550,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 12, + "line": 13, "character": 12 } ], @@ -41367,7 +42560,7 @@ } }, { - "id": 620, + "id": 619, "name": "shouldThrowOnError", "kind": 1024, "kindString": "Property", @@ -41377,7 +42570,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 14, + "line": 15, "character": 12 } ], @@ -41388,7 +42581,7 @@ "defaultValue": "false" }, { - "id": 621, + "id": 620, "name": "signal", "kind": 1024, "kindString": "Property", @@ -41399,7 +42592,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 15, + "line": 16, "character": 12 } ], @@ -41411,7 +42604,7 @@ } }, { - "id": 616, + "id": 615, "name": "url", "kind": 1024, "kindString": "Property", @@ -41421,7 +42614,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 10, + "line": 11, "character": 12 } ], @@ -41433,7 +42626,7 @@ } }, { - "id": 630, + "id": 629, "name": "then", "kind": 2048, "kindString": "Method", @@ -41441,31 +42634,31 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 49, + "line": 50, "character": 2 } ], "signatures": [ { - "id": 631, + "id": 630, "name": "then", "kind": 4096, "kindString": "Call signature", "flags": {}, "typeParameter": [ { - "id": 632, + "id": 631, "name": "TResult1", "kind": 131072, "kindString": "Type parameter", "flags": {}, "default": { "type": "reference", - "id": 658, + "id": 657, "typeArguments": [ { "type": "reference", - "id": 613, + "id": 612, "name": "Result" } ], @@ -41473,7 +42666,7 @@ } }, { - "id": 633, + "id": 632, "name": "TResult2", "kind": 131072, "kindString": "Type parameter", @@ -41486,7 +42679,7 @@ ], "parameters": [ { - "id": 634, + "id": 633, "name": "onfulfilled", "kind": 32768, "kindString": "Parameter", @@ -41503,32 +42696,32 @@ { "type": "reflection", "declaration": { - "id": 635, + "id": 634, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 636, + "id": 635, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 637, + "id": 636, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 658, + "id": 657, "typeArguments": [ { "type": "reference", - "id": 613, + "id": 612, "name": "Result" } ], @@ -41541,7 +42734,7 @@ "types": [ { "type": "reference", - "id": 475, + "id": 474, "name": "TResult1" }, { @@ -41549,7 +42742,7 @@ "typeArguments": [ { "type": "reference", - "id": 475, + "id": 474, "name": "TResult1" } ], @@ -41567,7 +42760,7 @@ } }, { - "id": 638, + "id": 637, "name": "onrejected", "kind": 32768, "kindString": "Parameter", @@ -41584,21 +42777,21 @@ { "type": "reflection", "declaration": { - "id": 639, + "id": 638, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 640, + "id": 639, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 641, + "id": 640, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -41614,7 +42807,7 @@ "types": [ { "type": "reference", - "id": 476, + "id": 475, "name": "TResult2" }, { @@ -41622,7 +42815,7 @@ "typeArguments": [ { "type": "reference", - "id": 476, + "id": 475, "name": "TResult2" } ], @@ -41648,12 +42841,12 @@ "types": [ { "type": "reference", - "id": 475, + "id": 474, "name": "TResult1" }, { "type": "reference", - "id": 476, + "id": 475, "name": "TResult2" } ] @@ -41675,7 +42868,7 @@ } }, { - "id": 628, + "id": 627, "name": "throwOnError", "kind": 2048, "kindString": "Method", @@ -41683,13 +42876,13 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 44, + "line": 45, "character": 2 } ], "signatures": [ { - "id": 629, + "id": 628, "name": "throwOnError", "kind": 4096, "kindString": "Call signature", @@ -41700,11 +42893,11 @@ }, "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "reference", - "id": 613, + "id": 612, "name": "Result" } ], @@ -41719,43 +42912,43 @@ "title": "Constructors", "kind": 512, "children": [ - 611 + 610 ] }, { "title": "Properties", "kind": 1024, "children": [ - 619, - 622, - 617, - 627, - 615, 618, - 620, 621, - 616 + 616, + 626, + 614, + 617, + 619, + 620, + 615 ] }, { "title": "Methods", "kind": 2048, "children": [ - 630, - 628 + 629, + 627 ] } ], "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 6, + "line": 7, "character": 30 } ], "typeParameter": [ { - "id": 642, + "id": 641, "name": "Result", "kind": 131072, "kindString": "Type parameter", @@ -41765,7 +42958,7 @@ "extendedBy": [ { "type": "reference", - "id": 490, + "id": 489, "name": "PostgrestTransformBuilder" } ], @@ -41775,11 +42968,11 @@ "typeArguments": [ { "type": "reference", - "id": 658, + "id": 657, "typeArguments": [ { "type": "reference", - "id": 613, + "id": 612, "name": "Result" } ], @@ -41797,31 +42990,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -41829,19 +43022,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 492, + "id": 491, "name": "default.constructor" } } ], "inheritedFrom": { "type": "reference", - "id": 491, + "id": 490, "name": "default.constructor" } }, { - "id": 462, + "id": 461, "name": "body", "kind": 1024, "kindString": "Property", @@ -41852,7 +43045,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 13, + "line": 14, "character": 12 } ], @@ -41862,12 +43055,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 582, + "id": 581, "name": "default.body" } }, { - "id": 465, + "id": 464, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -41877,28 +43070,28 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 16, + "line": 17, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 466, + "id": 465, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 467, + "id": 466, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 468, + "id": 467, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -41922,7 +43115,7 @@ } }, { - "id": 469, + "id": 468, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -41957,12 +43150,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 585, + "id": 584, "name": "default.fetch" } }, { - "id": 460, + "id": 459, "name": "headers", "kind": 1024, "kindString": "Property", @@ -41972,7 +43165,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 11, + "line": 12, "character": 12 } ], @@ -41994,12 +43187,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 580, + "id": 579, "name": "default.headers" } }, { - "id": 470, + "id": 469, "name": "isMaybeSingle", "kind": 1024, "kindString": "Property", @@ -42009,7 +43202,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 17, + "line": 18, "character": 12 } ], @@ -42019,12 +43212,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 590, + "id": 589, "name": "default.isMaybeSingle" } }, { - "id": 458, + "id": 457, "name": "method", "kind": 1024, "kindString": "Property", @@ -42034,7 +43227,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 9, + "line": 10, "character": 12 } ], @@ -42065,12 +43258,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 578, + "id": 577, "name": "default.method" } }, { - "id": 461, + "id": 460, "name": "schema", "kind": 1024, "kindString": "Property", @@ -42081,7 +43274,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 12, + "line": 13, "character": 12 } ], @@ -42091,12 +43284,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 581, + "id": 580, "name": "default.schema" } }, { - "id": 463, + "id": 462, "name": "shouldThrowOnError", "kind": 1024, "kindString": "Property", @@ -42106,7 +43299,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 14, + "line": 15, "character": 12 } ], @@ -42117,12 +43310,12 @@ "defaultValue": "false", "inheritedFrom": { "type": "reference", - "id": 583, + "id": 582, "name": "default.shouldThrowOnError" } }, { - "id": 464, + "id": 463, "name": "signal", "kind": 1024, "kindString": "Property", @@ -42133,7 +43326,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 15, + "line": 16, "character": 12 } ], @@ -42145,12 +43338,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 584, + "id": 583, "name": "default.signal" } }, { - "id": 459, + "id": 458, "name": "url", "kind": 1024, "kindString": "Property", @@ -42160,7 +43353,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 10, + "line": 11, "character": 12 } ], @@ -42172,12 +43365,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 579, + "id": 578, "name": "default.url" } }, { - "id": 430, + "id": 429, "name": "abortSignal", "kind": 2048, "kindString": "Method", @@ -42191,7 +43384,7 @@ ], "signatures": [ { - "id": 431, + "id": 430, "name": "abortSignal", "kind": 4096, "kindString": "Call signature", @@ -42201,7 +43394,7 @@ }, "parameters": [ { - "id": 432, + "id": 431, "name": "signal", "kind": 32768, "kindString": "Parameter", @@ -42219,31 +43412,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -42251,19 +43444,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 551, + "id": 550, "name": "default.abortSignal" } } ], "inheritedFrom": { "type": "reference", - "id": 550, + "id": 549, "name": "default.abortSignal" } }, { - "id": 274, + "id": 273, "name": "containedBy", "kind": 2048, "kindString": "Method", @@ -42277,7 +43470,7 @@ ], "signatures": [ { - "id": 275, + "id": 274, "name": "containedBy", "kind": 4096, "kindString": "Call signature", @@ -42287,7 +43480,7 @@ }, "typeParameter": [ { - "id": 276, + "id": 275, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -42300,7 +43493,7 @@ ], "parameters": [ { - "id": 277, + "id": 276, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -42310,13 +43503,13 @@ }, "type": { "type": "reference", - "id": 276, + "id": 275, "name": "ColumnName", "dereferenced": {} } }, { - "id": 278, + "id": 277, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -42356,12 +43549,12 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 276, + "id": 275, "name": "ColumnName" }, "objectType": { "type": "reference", - "id": 148, + "id": 147, "name": "Row" } } @@ -42373,31 +43566,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -42405,7 +43598,7 @@ } }, { - "id": 279, + "id": 278, "name": "containedBy", "kind": 4096, "kindString": "Call signature", @@ -42415,7 +43608,7 @@ }, "parameters": [ { - "id": 280, + "id": 279, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -42429,7 +43622,7 @@ } }, { - "id": 281, + "id": 280, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -42477,31 +43670,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -42511,7 +43704,7 @@ ] }, { - "id": 266, + "id": 265, "name": "contains", "kind": 2048, "kindString": "Method", @@ -42525,7 +43718,7 @@ ], "signatures": [ { - "id": 267, + "id": 266, "name": "contains", "kind": 4096, "kindString": "Call signature", @@ -42535,7 +43728,7 @@ }, "typeParameter": [ { - "id": 268, + "id": 267, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -42548,7 +43741,7 @@ ], "parameters": [ { - "id": 269, + "id": 268, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -42558,13 +43751,13 @@ }, "type": { "type": "reference", - "id": 268, + "id": 267, "name": "ColumnName", "dereferenced": {} } }, { - "id": 270, + "id": 269, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -42604,12 +43797,12 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 268, + "id": 267, "name": "ColumnName" }, "objectType": { "type": "reference", - "id": 148, + "id": 147, "name": "Row" } } @@ -42621,31 +43814,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -42653,7 +43846,7 @@ } }, { - "id": 271, + "id": 270, "name": "contains", "kind": 4096, "kindString": "Call signature", @@ -42663,7 +43856,7 @@ }, "parameters": [ { - "id": 272, + "id": 271, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -42677,7 +43870,7 @@ } }, { - "id": 273, + "id": 272, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -42725,31 +43918,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -42759,7 +43952,7 @@ ] }, { - "id": 439, + "id": 438, "name": "csv", "kind": 2048, "kindString": "Method", @@ -42773,7 +43966,7 @@ ], "signatures": [ { - "id": 440, + "id": 439, "name": "csv", "kind": 4096, "kindString": "Call signature", @@ -42783,7 +43976,7 @@ }, "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "intrinsic", @@ -42794,19 +43987,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 560, + "id": 559, "name": "default.csv" } } ], "inheritedFrom": { "type": "reference", - "id": 559, + "id": 558, "name": "default.csv" } }, { - "id": 153, + "id": 152, "name": "eq", "kind": 2048, "kindString": "Method", @@ -42820,7 +44013,7 @@ ], "signatures": [ { - "id": 154, + "id": 153, "name": "eq", "kind": 4096, "kindString": "Call signature", @@ -42831,7 +44024,7 @@ }, "typeParameter": [ { - "id": 155, + "id": 154, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -42844,7 +44037,7 @@ ], "parameters": [ { - "id": 156, + "id": 155, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -42854,13 +44047,13 @@ }, "type": { "type": "reference", - "id": 155, + "id": 154, "name": "ColumnName", "dereferenced": {} } }, { - "id": 157, + "id": 156, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -42875,12 +44068,12 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 155, + "id": 154, "name": "ColumnName" }, "objectType": { "type": "reference", - "id": 148, + "id": 147, "name": "Row" } } @@ -42893,31 +44086,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -42925,7 +44118,7 @@ } }, { - "id": 158, + "id": 157, "name": "eq", "kind": 4096, "kindString": "Call signature", @@ -42936,7 +44129,7 @@ }, "typeParameter": [ { - "id": 159, + "id": 158, "name": "Value", "kind": 131072, "kindString": "Type parameter", @@ -42949,7 +44142,7 @@ ], "parameters": [ { - "id": 160, + "id": 159, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -42963,7 +44156,7 @@ } }, { - "id": 161, + "id": 160, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -42976,7 +44169,7 @@ "typeArguments": [ { "type": "reference", - "id": 159, + "id": 158, "name": "Value" } ], @@ -42988,31 +44181,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -43022,7 +44215,7 @@ ] }, { - "id": 443, + "id": 442, "name": "explain", "kind": 2048, "kindString": "Method", @@ -43030,23 +44223,24 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 255, + "line": 259, "character": 2 } ], "signatures": [ { - "id": 444, + "id": 443, "name": "explain", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Return `data` as the EXPLAIN plan for the query." + "shortText": "Return `data` as the EXPLAIN plan for the query.", + "text": "You need to enable the\n[db_plan_enabled](https://supabase.com/docs/guides/database/debugging-performance#enabling-explain)\nsetting before using this method.\n" }, "parameters": [ { - "id": 445, + "id": 444, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -43058,14 +44252,14 @@ "type": { "type": "reflection", "declaration": { - "id": 446, + "id": 445, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 447, + "id": 446, "name": "analyze", "kind": 1024, "kindString": "Property", @@ -43078,7 +44272,7 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 263, + "line": 267, "character": 4 } ], @@ -43088,7 +44282,7 @@ } }, { - "id": 450, + "id": 449, "name": "buffers", "kind": 1024, "kindString": "Property", @@ -43101,7 +44295,7 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 266, + "line": 270, "character": 4 } ], @@ -43111,7 +44305,7 @@ } }, { - "id": 452, + "id": 451, "name": "format", "kind": 1024, "kindString": "Property", @@ -43124,7 +44318,7 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 268, + "line": 272, "character": 4 } ], @@ -43143,7 +44337,7 @@ } }, { - "id": 449, + "id": 448, "name": "settings", "kind": 1024, "kindString": "Property", @@ -43156,7 +44350,7 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 265, + "line": 269, "character": 4 } ], @@ -43166,7 +44360,7 @@ } }, { - "id": 448, + "id": 447, "name": "verbose", "kind": 1024, "kindString": "Property", @@ -43179,7 +44373,7 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 264, + "line": 268, "character": 4 } ], @@ -43189,7 +44383,7 @@ } }, { - "id": 451, + "id": 450, "name": "wal", "kind": 1024, "kindString": "Property", @@ -43202,7 +44396,7 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 267, + "line": 271, "character": 4 } ], @@ -43217,12 +44411,12 @@ "title": "Properties", "kind": 1024, "children": [ - 447, - 450, - 452, + 446, 449, + 451, 448, - 451 + 447, + 450 ] } ] @@ -43236,7 +44430,7 @@ "types": [ { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "intrinsic", @@ -43247,7 +44441,7 @@ }, { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "array", @@ -43275,19 +44469,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 564, + "id": 563, "name": "default.explain" } } ], "inheritedFrom": { "type": "reference", - "id": 563, + "id": 562, "name": "default.explain" } }, { - "id": 369, + "id": 368, "name": "filter", "kind": 2048, "kindString": "Method", @@ -43301,7 +44495,7 @@ ], "signatures": [ { - "id": 370, + "id": 369, "name": "filter", "kind": 4096, "kindString": "Call signature", @@ -43312,7 +44506,7 @@ }, "typeParameter": [ { - "id": 371, + "id": 370, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -43325,7 +44519,7 @@ ], "parameters": [ { - "id": 372, + "id": 371, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -43335,13 +44529,13 @@ }, "type": { "type": "reference", - "id": 371, + "id": 370, "name": "ColumnName", "dereferenced": {} } }, { - "id": 373, + "id": 372, "name": "operator", "kind": 32768, "kindString": "Parameter", @@ -43448,7 +44642,7 @@ } }, { - "id": 374, + "id": 373, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -43464,31 +44658,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -43496,7 +44690,7 @@ } }, { - "id": 375, + "id": 374, "name": "filter", "kind": 4096, "kindString": "Call signature", @@ -43507,7 +44701,7 @@ }, "parameters": [ { - "id": 376, + "id": 375, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -43521,7 +44715,7 @@ } }, { - "id": 377, + "id": 376, "name": "operator", "kind": 32768, "kindString": "Parameter", @@ -43535,7 +44729,7 @@ } }, { - "id": 378, + "id": 377, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -43551,31 +44745,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -43585,7 +44779,7 @@ ] }, { - "id": 441, + "id": 440, "name": "geojson", "kind": 2048, "kindString": "Method", @@ -43599,7 +44793,7 @@ ], "signatures": [ { - "id": 442, + "id": 441, "name": "geojson", "kind": 4096, "kindString": "Call signature", @@ -43609,7 +44803,7 @@ }, "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "reference", @@ -43632,19 +44826,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 562, + "id": 561, "name": "default.geojson" } } ], "inheritedFrom": { "type": "reference", - "id": 561, + "id": 560, "name": "default.geojson" } }, { - "id": 170, + "id": 169, "name": "gt", "kind": 2048, "kindString": "Method", @@ -43658,7 +44852,7 @@ ], "signatures": [ { - "id": 171, + "id": 170, "name": "gt", "kind": 4096, "kindString": "Call signature", @@ -43668,7 +44862,7 @@ }, "typeParameter": [ { - "id": 172, + "id": 171, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -43681,7 +44875,7 @@ ], "parameters": [ { - "id": 173, + "id": 172, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -43691,13 +44885,13 @@ }, "type": { "type": "reference", - "id": 172, + "id": 171, "name": "ColumnName", "dereferenced": {} } }, { - "id": 174, + "id": 173, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -43709,12 +44903,12 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 172, + "id": 171, "name": "ColumnName" }, "objectType": { "type": "reference", - "id": 148, + "id": 147, "name": "Row" } } @@ -43722,31 +44916,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -43754,7 +44948,7 @@ } }, { - "id": 175, + "id": 174, "name": "gt", "kind": 4096, "kindString": "Call signature", @@ -43764,7 +44958,7 @@ }, "parameters": [ { - "id": 176, + "id": 175, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -43778,7 +44972,7 @@ } }, { - "id": 177, + "id": 176, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -43794,31 +44988,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -43828,7 +45022,7 @@ ] }, { - "id": 178, + "id": 177, "name": "gte", "kind": 2048, "kindString": "Method", @@ -43842,7 +45036,7 @@ ], "signatures": [ { - "id": 179, + "id": 178, "name": "gte", "kind": 4096, "kindString": "Call signature", @@ -43852,7 +45046,7 @@ }, "typeParameter": [ { - "id": 180, + "id": 179, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -43865,7 +45059,7 @@ ], "parameters": [ { - "id": 181, + "id": 180, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -43875,13 +45069,13 @@ }, "type": { "type": "reference", - "id": 180, + "id": 179, "name": "ColumnName", "dereferenced": {} } }, { - "id": 182, + "id": 181, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -43893,12 +45087,12 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 180, + "id": 179, "name": "ColumnName" }, "objectType": { "type": "reference", - "id": 148, + "id": 147, "name": "Row" } } @@ -43906,31 +45100,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -43938,7 +45132,7 @@ } }, { - "id": 183, + "id": 182, "name": "gte", "kind": 4096, "kindString": "Call signature", @@ -43948,7 +45142,7 @@ }, "parameters": [ { - "id": 184, + "id": 183, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -43962,7 +45156,7 @@ } }, { - "id": 185, + "id": 184, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -43978,31 +45172,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -44012,7 +45206,7 @@ ] }, { - "id": 226, + "id": 225, "name": "ilike", "kind": 2048, "kindString": "Method", @@ -44026,7 +45220,7 @@ ], "signatures": [ { - "id": 227, + "id": 226, "name": "ilike", "kind": 4096, "kindString": "Call signature", @@ -44036,7 +45230,7 @@ }, "typeParameter": [ { - "id": 228, + "id": 227, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -44049,7 +45243,7 @@ ], "parameters": [ { - "id": 229, + "id": 228, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -44059,13 +45253,13 @@ }, "type": { "type": "reference", - "id": 228, + "id": 227, "name": "ColumnName", "dereferenced": {} } }, { - "id": 230, + "id": 229, "name": "pattern", "kind": 32768, "kindString": "Parameter", @@ -44081,31 +45275,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -44113,7 +45307,7 @@ } }, { - "id": 231, + "id": 230, "name": "ilike", "kind": 4096, "kindString": "Call signature", @@ -44123,7 +45317,7 @@ }, "parameters": [ { - "id": 232, + "id": 231, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -44137,7 +45331,7 @@ } }, { - "id": 233, + "id": 232, "name": "pattern", "kind": 32768, "kindString": "Parameter", @@ -44153,31 +45347,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -44187,7 +45381,7 @@ ] }, { - "id": 234, + "id": 233, "name": "ilikeAllOf", "kind": 2048, "kindString": "Method", @@ -44201,7 +45395,7 @@ ], "signatures": [ { - "id": 235, + "id": 234, "name": "ilikeAllOf", "kind": 4096, "kindString": "Call signature", @@ -44211,7 +45405,7 @@ }, "typeParameter": [ { - "id": 236, + "id": 235, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -44224,7 +45418,7 @@ ], "parameters": [ { - "id": 237, + "id": 236, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -44234,13 +45428,13 @@ }, "type": { "type": "reference", - "id": 236, + "id": 235, "name": "ColumnName", "dereferenced": {} } }, { - "id": 238, + "id": 237, "name": "patterns", "kind": 32768, "kindString": "Parameter", @@ -44263,31 +45457,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -44295,7 +45489,7 @@ } }, { - "id": 239, + "id": 238, "name": "ilikeAllOf", "kind": 4096, "kindString": "Call signature", @@ -44305,7 +45499,7 @@ }, "parameters": [ { - "id": 240, + "id": 239, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -44319,7 +45513,7 @@ } }, { - "id": 241, + "id": 240, "name": "patterns", "kind": 32768, "kindString": "Parameter", @@ -44342,31 +45536,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -44376,7 +45570,7 @@ ] }, { - "id": 242, + "id": 241, "name": "ilikeAnyOf", "kind": 2048, "kindString": "Method", @@ -44390,7 +45584,7 @@ ], "signatures": [ { - "id": 243, + "id": 242, "name": "ilikeAnyOf", "kind": 4096, "kindString": "Call signature", @@ -44400,7 +45594,7 @@ }, "typeParameter": [ { - "id": 244, + "id": 243, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -44413,7 +45607,7 @@ ], "parameters": [ { - "id": 245, + "id": 244, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -44423,13 +45617,13 @@ }, "type": { "type": "reference", - "id": 244, + "id": 243, "name": "ColumnName", "dereferenced": {} } }, { - "id": 246, + "id": 245, "name": "patterns", "kind": 32768, "kindString": "Parameter", @@ -44452,31 +45646,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -44484,7 +45678,7 @@ } }, { - "id": 247, + "id": 246, "name": "ilikeAnyOf", "kind": 4096, "kindString": "Call signature", @@ -44494,7 +45688,7 @@ }, "parameters": [ { - "id": 248, + "id": 247, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -44508,7 +45702,7 @@ } }, { - "id": 249, + "id": 248, "name": "patterns", "kind": 32768, "kindString": "Parameter", @@ -44531,31 +45725,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -44565,7 +45759,7 @@ ] }, { - "id": 258, + "id": 257, "name": "in", "kind": 2048, "kindString": "Method", @@ -44579,7 +45773,7 @@ ], "signatures": [ { - "id": 259, + "id": 258, "name": "in", "kind": 4096, "kindString": "Call signature", @@ -44589,7 +45783,7 @@ }, "typeParameter": [ { - "id": 260, + "id": 259, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -44602,7 +45796,7 @@ ], "parameters": [ { - "id": 261, + "id": 260, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -44612,13 +45806,13 @@ }, "type": { "type": "reference", - "id": 260, + "id": 259, "name": "ColumnName", "dereferenced": {} } }, { - "id": 262, + "id": 261, "name": "values", "kind": 32768, "kindString": "Parameter", @@ -44635,12 +45829,12 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 260, + "id": 259, "name": "ColumnName" }, "objectType": { "type": "reference", - "id": 148, + "id": 147, "name": "Row" } } @@ -44650,31 +45844,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -44682,7 +45876,7 @@ } }, { - "id": 263, + "id": 262, "name": "in", "kind": 4096, "kindString": "Call signature", @@ -44692,7 +45886,7 @@ }, "parameters": [ { - "id": 264, + "id": 263, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -44706,7 +45900,7 @@ } }, { - "id": 265, + "id": 264, "name": "values", "kind": 32768, "kindString": "Parameter", @@ -44729,31 +45923,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -44763,7 +45957,7 @@ ] }, { - "id": 250, + "id": 249, "name": "is", "kind": 2048, "kindString": "Method", @@ -44777,7 +45971,7 @@ ], "signatures": [ { - "id": 251, + "id": 250, "name": "is", "kind": 4096, "kindString": "Call signature", @@ -44788,7 +45982,7 @@ }, "typeParameter": [ { - "id": 252, + "id": 251, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -44801,7 +45995,7 @@ ], "parameters": [ { - "id": 253, + "id": 252, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -44811,13 +46005,13 @@ }, "type": { "type": "reference", - "id": 252, + "id": 251, "name": "ColumnName", "dereferenced": {} } }, { - "id": 254, + "id": 253, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -44835,12 +46029,12 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 252, + "id": 251, "name": "ColumnName" }, "objectType": { "type": "reference", - "id": 148, + "id": 147, "name": "Row" } }, @@ -44857,12 +46051,12 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 252, + "id": 251, "name": "ColumnName" }, "objectType": { "type": "reference", - "id": 148, + "id": 147, "name": "Row" } }, @@ -44879,12 +46073,12 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 252, + "id": 251, "name": "ColumnName" }, "objectType": { "type": "reference", - "id": 148, + "id": 147, "name": "Row" } }, @@ -44900,31 +46094,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -44932,7 +46126,7 @@ } }, { - "id": 255, + "id": 254, "name": "is", "kind": 4096, "kindString": "Call signature", @@ -44943,7 +46137,7 @@ }, "parameters": [ { - "id": 256, + "id": 255, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -44957,7 +46151,7 @@ } }, { - "id": 257, + "id": 256, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -44982,31 +46176,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -45016,7 +46210,7 @@ ] }, { - "id": 202, + "id": 201, "name": "like", "kind": 2048, "kindString": "Method", @@ -45030,7 +46224,7 @@ ], "signatures": [ { - "id": 203, + "id": 202, "name": "like", "kind": 4096, "kindString": "Call signature", @@ -45040,7 +46234,7 @@ }, "typeParameter": [ { - "id": 204, + "id": 203, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -45053,7 +46247,7 @@ ], "parameters": [ { - "id": 205, + "id": 204, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -45063,13 +46257,13 @@ }, "type": { "type": "reference", - "id": 204, + "id": 203, "name": "ColumnName", "dereferenced": {} } }, { - "id": 206, + "id": 205, "name": "pattern", "kind": 32768, "kindString": "Parameter", @@ -45085,31 +46279,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -45117,7 +46311,7 @@ } }, { - "id": 207, + "id": 206, "name": "like", "kind": 4096, "kindString": "Call signature", @@ -45127,7 +46321,7 @@ }, "parameters": [ { - "id": 208, + "id": 207, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -45141,7 +46335,7 @@ } }, { - "id": 209, + "id": 208, "name": "pattern", "kind": 32768, "kindString": "Parameter", @@ -45157,31 +46351,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -45191,7 +46385,7 @@ ] }, { - "id": 210, + "id": 209, "name": "likeAllOf", "kind": 2048, "kindString": "Method", @@ -45205,7 +46399,7 @@ ], "signatures": [ { - "id": 211, + "id": 210, "name": "likeAllOf", "kind": 4096, "kindString": "Call signature", @@ -45215,7 +46409,7 @@ }, "typeParameter": [ { - "id": 212, + "id": 211, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -45228,7 +46422,7 @@ ], "parameters": [ { - "id": 213, + "id": 212, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -45238,13 +46432,13 @@ }, "type": { "type": "reference", - "id": 212, + "id": 211, "name": "ColumnName", "dereferenced": {} } }, { - "id": 214, + "id": 213, "name": "patterns", "kind": 32768, "kindString": "Parameter", @@ -45267,31 +46461,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -45299,7 +46493,7 @@ } }, { - "id": 215, + "id": 214, "name": "likeAllOf", "kind": 4096, "kindString": "Call signature", @@ -45309,7 +46503,7 @@ }, "parameters": [ { - "id": 216, + "id": 215, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -45323,7 +46517,7 @@ } }, { - "id": 217, + "id": 216, "name": "patterns", "kind": 32768, "kindString": "Parameter", @@ -45346,31 +46540,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -45380,7 +46574,7 @@ ] }, { - "id": 218, + "id": 217, "name": "likeAnyOf", "kind": 2048, "kindString": "Method", @@ -45394,7 +46588,7 @@ ], "signatures": [ { - "id": 219, + "id": 218, "name": "likeAnyOf", "kind": 4096, "kindString": "Call signature", @@ -45404,7 +46598,7 @@ }, "typeParameter": [ { - "id": 220, + "id": 219, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -45417,7 +46611,7 @@ ], "parameters": [ { - "id": 221, + "id": 220, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -45427,13 +46621,13 @@ }, "type": { "type": "reference", - "id": 220, + "id": 219, "name": "ColumnName", "dereferenced": {} } }, { - "id": 222, + "id": 221, "name": "patterns", "kind": 32768, "kindString": "Parameter", @@ -45456,31 +46650,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -45488,7 +46682,7 @@ } }, { - "id": 223, + "id": 222, "name": "likeAnyOf", "kind": 4096, "kindString": "Call signature", @@ -45498,7 +46692,7 @@ }, "parameters": [ { - "id": 224, + "id": 223, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -45512,7 +46706,7 @@ } }, { - "id": 225, + "id": 224, "name": "patterns", "kind": 32768, "kindString": "Parameter", @@ -45535,31 +46729,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -45569,7 +46763,7 @@ ] }, { - "id": 415, + "id": 414, "name": "limit", "kind": 2048, "kindString": "Method", @@ -45583,7 +46777,7 @@ ], "signatures": [ { - "id": 416, + "id": 415, "name": "limit", "kind": 4096, "kindString": "Call signature", @@ -45593,7 +46787,7 @@ }, "parameters": [ { - "id": 417, + "id": 416, "name": "count", "kind": 32768, "kindString": "Parameter", @@ -45607,7 +46801,7 @@ } }, { - "id": 418, + "id": 417, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -45619,14 +46813,14 @@ "type": { "type": "reflection", "declaration": { - "id": 419, + "id": 418, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 420, + "id": 419, "name": "foreignTable", "kind": 1024, "kindString": "Property", @@ -45649,7 +46843,7 @@ } }, { - "id": 421, + "id": 420, "name": "referencedTable", "kind": 1024, "kindString": "Property", @@ -45677,8 +46871,8 @@ "title": "Properties", "kind": 1024, "children": [ - 420, - 421 + 419, + 420 ] } ] @@ -45689,31 +46883,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -45721,19 +46915,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 536, + "id": 535, "name": "default.limit" } } ], "inheritedFrom": { "type": "reference", - "id": 535, + "id": 534, "name": "default.limit" } }, { - "id": 186, + "id": 185, "name": "lt", "kind": 2048, "kindString": "Method", @@ -45747,7 +46941,7 @@ ], "signatures": [ { - "id": 187, + "id": 186, "name": "lt", "kind": 4096, "kindString": "Call signature", @@ -45757,7 +46951,7 @@ }, "typeParameter": [ { - "id": 188, + "id": 187, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -45770,7 +46964,7 @@ ], "parameters": [ { - "id": 189, + "id": 188, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -45780,13 +46974,13 @@ }, "type": { "type": "reference", - "id": 188, + "id": 187, "name": "ColumnName", "dereferenced": {} } }, { - "id": 190, + "id": 189, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -45798,12 +46992,12 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 188, + "id": 187, "name": "ColumnName" }, "objectType": { "type": "reference", - "id": 148, + "id": 147, "name": "Row" } } @@ -45811,31 +47005,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -45843,7 +47037,7 @@ } }, { - "id": 191, + "id": 190, "name": "lt", "kind": 4096, "kindString": "Call signature", @@ -45853,7 +47047,7 @@ }, "parameters": [ { - "id": 192, + "id": 191, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -45867,7 +47061,7 @@ } }, { - "id": 193, + "id": 192, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -45883,31 +47077,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -45917,7 +47111,7 @@ ] }, { - "id": 194, + "id": 193, "name": "lte", "kind": 2048, "kindString": "Method", @@ -45931,7 +47125,7 @@ ], "signatures": [ { - "id": 195, + "id": 194, "name": "lte", "kind": 4096, "kindString": "Call signature", @@ -45941,7 +47135,7 @@ }, "typeParameter": [ { - "id": 196, + "id": 195, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -45954,7 +47148,7 @@ ], "parameters": [ { - "id": 197, + "id": 196, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -45964,13 +47158,13 @@ }, "type": { "type": "reference", - "id": 196, + "id": 195, "name": "ColumnName", "dereferenced": {} } }, { - "id": 198, + "id": 197, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -45982,12 +47176,12 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 196, + "id": 195, "name": "ColumnName" }, "objectType": { "type": "reference", - "id": 148, + "id": 147, "name": "Row" } } @@ -45995,31 +47189,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -46027,7 +47221,7 @@ } }, { - "id": 199, + "id": 198, "name": "lte", "kind": 4096, "kindString": "Call signature", @@ -46037,7 +47231,7 @@ }, "parameters": [ { - "id": 200, + "id": 199, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -46051,7 +47245,7 @@ } }, { - "id": 201, + "id": 200, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -46067,31 +47261,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -46101,7 +47295,7 @@ ] }, { - "id": 346, + "id": 345, "name": "match", "kind": 2048, "kindString": "Method", @@ -46115,7 +47309,7 @@ ], "signatures": [ { - "id": 347, + "id": 346, "name": "match", "kind": 4096, "kindString": "Call signature", @@ -46125,7 +47319,7 @@ }, "typeParameter": [ { - "id": 348, + "id": 347, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -46138,7 +47332,7 @@ ], "parameters": [ { - "id": 349, + "id": 348, "name": "query", "kind": 32768, "kindString": "Parameter", @@ -46151,19 +47345,19 @@ "typeArguments": [ { "type": "reference", - "id": 348, + "id": 347, "name": "ColumnName" }, { "type": "indexedAccess", "indexType": { "type": "reference", - "id": 348, + "id": 347, "name": "ColumnName" }, "objectType": { "type": "reference", - "id": 148, + "id": 147, "name": "Row" } } @@ -46176,31 +47370,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -46208,7 +47402,7 @@ } }, { - "id": 350, + "id": 349, "name": "match", "kind": 4096, "kindString": "Call signature", @@ -46218,7 +47412,7 @@ }, "parameters": [ { - "id": 351, + "id": 350, "name": "query", "kind": 32768, "kindString": "Parameter", @@ -46246,31 +47440,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -46280,7 +47474,7 @@ ] }, { - "id": 436, + "id": 435, "name": "maybeSingle", "kind": 2048, "kindString": "Method", @@ -46294,7 +47488,7 @@ ], "signatures": [ { - "id": 437, + "id": 436, "name": "maybeSingle", "kind": 4096, "kindString": "Call signature", @@ -46305,7 +47499,7 @@ }, "typeParameter": [ { - "id": 438, + "id": 437, "name": "ResultOne", "kind": 131072, "kindString": "Type parameter", @@ -46314,7 +47508,7 @@ "type": "conditional", "checkType": { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, "extendsType": { @@ -46337,7 +47531,7 @@ ], "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "union", @@ -46348,7 +47542,7 @@ }, { "type": "reference", - "id": 438, + "id": 437, "name": "ResultOne" } ] @@ -46358,19 +47552,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 557, + "id": 556, "name": "default.maybeSingle" } } ], "inheritedFrom": { "type": "reference", - "id": 556, + "id": 555, "name": "default.maybeSingle" } }, { - "id": 162, + "id": 161, "name": "neq", "kind": 2048, "kindString": "Method", @@ -46384,7 +47578,7 @@ ], "signatures": [ { - "id": 163, + "id": 162, "name": "neq", "kind": 4096, "kindString": "Call signature", @@ -46394,7 +47588,7 @@ }, "typeParameter": [ { - "id": 164, + "id": 163, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -46407,7 +47601,7 @@ ], "parameters": [ { - "id": 165, + "id": 164, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -46417,13 +47611,13 @@ }, "type": { "type": "reference", - "id": 164, + "id": 163, "name": "ColumnName", "dereferenced": {} } }, { - "id": 166, + "id": 165, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -46435,12 +47629,12 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 164, + "id": 163, "name": "ColumnName" }, "objectType": { "type": "reference", - "id": 148, + "id": 147, "name": "Row" } } @@ -46448,31 +47642,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -46480,7 +47674,7 @@ } }, { - "id": 167, + "id": 166, "name": "neq", "kind": 4096, "kindString": "Call signature", @@ -46490,7 +47684,7 @@ }, "parameters": [ { - "id": 168, + "id": 167, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -46504,7 +47698,7 @@ } }, { - "id": 169, + "id": 168, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -46520,31 +47714,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -46554,7 +47748,7 @@ ] }, { - "id": 352, + "id": 351, "name": "not", "kind": 2048, "kindString": "Method", @@ -46568,7 +47762,7 @@ ], "signatures": [ { - "id": 353, + "id": 352, "name": "not", "kind": 4096, "kindString": "Call signature", @@ -46579,7 +47773,7 @@ }, "typeParameter": [ { - "id": 354, + "id": 353, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -46592,7 +47786,7 @@ ], "parameters": [ { - "id": 355, + "id": 354, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -46602,13 +47796,13 @@ }, "type": { "type": "reference", - "id": 354, + "id": 353, "name": "ColumnName", "dereferenced": {} } }, { - "id": 356, + "id": 355, "name": "operator", "kind": 32768, "kindString": "Parameter", @@ -46622,7 +47816,7 @@ } }, { - "id": 357, + "id": 356, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -46634,12 +47828,12 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 354, + "id": 353, "name": "ColumnName" }, "objectType": { "type": "reference", - "id": 148, + "id": 147, "name": "Row" } } @@ -46647,31 +47841,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -46679,7 +47873,7 @@ } }, { - "id": 358, + "id": 357, "name": "not", "kind": 4096, "kindString": "Call signature", @@ -46690,7 +47884,7 @@ }, "parameters": [ { - "id": 359, + "id": 358, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -46704,7 +47898,7 @@ } }, { - "id": 360, + "id": 359, "name": "operator", "kind": 32768, "kindString": "Parameter", @@ -46718,7 +47912,7 @@ } }, { - "id": 361, + "id": 360, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -46734,31 +47928,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -46768,7 +47962,7 @@ ] }, { - "id": 362, + "id": 361, "name": "or", "kind": 2048, "kindString": "Method", @@ -46782,7 +47976,7 @@ ], "signatures": [ { - "id": 363, + "id": 362, "name": "or", "kind": 4096, "kindString": "Call signature", @@ -46793,7 +47987,7 @@ }, "parameters": [ { - "id": 364, + "id": 363, "name": "filters", "kind": 32768, "kindString": "Parameter", @@ -46807,7 +48001,7 @@ } }, { - "id": 365, + "id": 364, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -46819,14 +48013,14 @@ "type": { "type": "reflection", "declaration": { - "id": 366, + "id": 365, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 367, + "id": 366, "name": "foreignTable", "kind": 1024, "kindString": "Property", @@ -46849,7 +48043,7 @@ } }, { - "id": 368, + "id": 367, "name": "referencedTable", "kind": 1024, "kindString": "Property", @@ -46877,8 +48071,8 @@ "title": "Properties", "kind": 1024, "children": [ - 367, - 368 + 366, + 367 ] } ] @@ -46889,31 +48083,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -46923,7 +48117,7 @@ ] }, { - "id": 384, + "id": 383, "name": "order", "kind": 2048, "kindString": "Method", @@ -46937,7 +48131,7 @@ ], "signatures": [ { - "id": 385, + "id": 384, "name": "order", "kind": 4096, "kindString": "Call signature", @@ -46948,7 +48142,7 @@ }, "typeParameter": [ { - "id": 386, + "id": 385, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -46961,7 +48155,7 @@ ], "parameters": [ { - "id": 387, + "id": 386, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -46971,13 +48165,13 @@ }, "type": { "type": "reference", - "id": 386, + "id": 385, "name": "ColumnName", "dereferenced": {} } }, { - "id": 388, + "id": 387, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -46990,14 +48184,14 @@ "type": { "type": "reflection", "declaration": { - "id": 389, + "id": 388, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 390, + "id": 389, "name": "ascending", "kind": 1024, "kindString": "Property", @@ -47019,31 +48213,31 @@ "name": "boolean" } }, + { + "id": 390, + "name": "nullsFirst", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "If `true`, `null`s appear first. If `false`,\n`null`s appear last." + }, + "sources": [ + { + "fileName": "src/PostgrestTransformBuilder.ts", + "line": 57, + "character": 37 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, { "id": 391, - "name": "nullsFirst", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "If `true`, `null`s appear first. If `false`,\n`null`s appear last." - }, - "sources": [ - { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 57, - "character": 37 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 392, "name": "referencedTable", "kind": 1024, "kindString": "Property", @@ -47071,9 +48265,9 @@ "title": "Properties", "kind": 1024, "children": [ + 389, 390, - 391, - 392 + 391 ] } ] @@ -47083,31 +48277,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -47115,12 +48309,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 505, + "id": 504, "name": "default.order" } }, { - "id": 393, + "id": 392, "name": "order", "kind": 4096, "kindString": "Call signature", @@ -47131,7 +48325,7 @@ }, "parameters": [ { - "id": 394, + "id": 393, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -47145,7 +48339,7 @@ } }, { - "id": 395, + "id": 394, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -47158,14 +48352,14 @@ "type": { "type": "reflection", "declaration": { - "id": 396, + "id": 395, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 397, + "id": 396, "name": "ascending", "kind": 1024, "kindString": "Property", @@ -47188,7 +48382,7 @@ } }, { - "id": 398, + "id": 397, "name": "nullsFirst", "kind": 1024, "kindString": "Property", @@ -47211,7 +48405,7 @@ } }, { - "id": 399, + "id": 398, "name": "referencedTable", "kind": 1024, "kindString": "Property", @@ -47239,9 +48433,9 @@ "title": "Properties", "kind": 1024, "children": [ + 396, 397, - 398, - 399 + 398 ] } ] @@ -47251,31 +48445,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -47283,12 +48477,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 513, + "id": 512, "name": "default.order" } }, { - "id": 400, + "id": 399, "name": "order", "kind": 4096, "kindString": "Call signature", @@ -47305,7 +48499,7 @@ }, "typeParameter": [ { - "id": 401, + "id": 400, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -47318,7 +48512,7 @@ ], "parameters": [ { - "id": 402, + "id": 401, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -47328,13 +48522,13 @@ }, "type": { "type": "reference", - "id": 401, + "id": 400, "name": "ColumnName", "dereferenced": {} } }, { - "id": 403, + "id": 402, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -47347,14 +48541,14 @@ "type": { "type": "reflection", "declaration": { - "id": 404, + "id": 403, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 405, + "id": 404, "name": "ascending", "kind": 1024, "kindString": "Property", @@ -47374,7 +48568,7 @@ } }, { - "id": 407, + "id": 406, "name": "foreignTable", "kind": 1024, "kindString": "Property", @@ -47394,7 +48588,7 @@ } }, { - "id": 406, + "id": 405, "name": "nullsFirst", "kind": 1024, "kindString": "Property", @@ -47419,9 +48613,9 @@ "title": "Properties", "kind": 1024, "children": [ - 405, - 407, - 406 + 404, + 406, + 405 ] } ] @@ -47431,31 +48625,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -47463,12 +48657,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 520, + "id": 519, "name": "default.order" } }, { - "id": 408, + "id": 407, "name": "order", "kind": 4096, "kindString": "Call signature", @@ -47485,7 +48679,7 @@ }, "parameters": [ { - "id": 409, + "id": 408, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -47499,7 +48693,7 @@ } }, { - "id": 410, + "id": 409, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -47512,14 +48706,14 @@ "type": { "type": "reflection", "declaration": { - "id": 411, + "id": 410, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 412, + "id": 411, "name": "ascending", "kind": 1024, "kindString": "Property", @@ -47539,7 +48733,7 @@ } }, { - "id": 414, + "id": 413, "name": "foreignTable", "kind": 1024, "kindString": "Property", @@ -47559,7 +48753,7 @@ } }, { - "id": 413, + "id": 412, "name": "nullsFirst", "kind": 1024, "kindString": "Property", @@ -47584,9 +48778,9 @@ "title": "Properties", "kind": 1024, "children": [ - 412, - 414, - 413 + 411, + 413, + 412 ] } ] @@ -47596,31 +48790,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -47628,19 +48822,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 528, + "id": 527, "name": "default.order" } } ], "inheritedFrom": { "type": "reference", - "id": 504, + "id": 503, "name": "default.order" } }, { - "id": 322, + "id": 321, "name": "overlaps", "kind": 2048, "kindString": "Method", @@ -47654,7 +48848,7 @@ ], "signatures": [ { - "id": 323, + "id": 322, "name": "overlaps", "kind": 4096, "kindString": "Call signature", @@ -47664,7 +48858,7 @@ }, "typeParameter": [ { - "id": 324, + "id": 323, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -47677,7 +48871,7 @@ ], "parameters": [ { - "id": 325, + "id": 324, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -47687,13 +48881,13 @@ }, "type": { "type": "reference", - "id": 324, + "id": 323, "name": "ColumnName", "dereferenced": {} } }, { - "id": 326, + "id": 325, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -47717,12 +48911,12 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 324, + "id": 323, "name": "ColumnName" }, "objectType": { "type": "reference", - "id": 148, + "id": 147, "name": "Row" } } @@ -47734,31 +48928,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -47766,7 +48960,7 @@ } }, { - "id": 327, + "id": 326, "name": "overlaps", "kind": 4096, "kindString": "Call signature", @@ -47776,7 +48970,7 @@ }, "parameters": [ { - "id": 328, + "id": 327, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -47790,7 +48984,7 @@ } }, { - "id": 329, + "id": 328, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -47822,31 +49016,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -47856,7 +49050,7 @@ ] }, { - "id": 422, + "id": 421, "name": "range", "kind": 2048, "kindString": "Method", @@ -47870,7 +49064,7 @@ ], "signatures": [ { - "id": 423, + "id": 422, "name": "range", "kind": 4096, "kindString": "Call signature", @@ -47880,7 +49074,7 @@ }, "parameters": [ { - "id": 424, + "id": 423, "name": "from", "kind": 32768, "kindString": "Parameter", @@ -47894,7 +49088,7 @@ } }, { - "id": 425, + "id": 424, "name": "to", "kind": 32768, "kindString": "Parameter", @@ -47908,7 +49102,7 @@ } }, { - "id": 426, + "id": 425, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -47920,14 +49114,14 @@ "type": { "type": "reflection", "declaration": { - "id": 427, + "id": 426, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 428, + "id": 427, "name": "foreignTable", "kind": 1024, "kindString": "Property", @@ -47950,7 +49144,7 @@ } }, { - "id": 429, + "id": 428, "name": "referencedTable", "kind": 1024, "kindString": "Property", @@ -47978,8 +49172,8 @@ "title": "Properties", "kind": 1024, "children": [ - 428, - 429 + 427, + 428 ] } ] @@ -47990,31 +49184,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -48022,19 +49216,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 543, + "id": 542, "name": "default.range" } } ], "inheritedFrom": { "type": "reference", - "id": 542, + "id": 541, "name": "default.range" } }, { - "id": 314, + "id": 313, "name": "rangeAdjacent", "kind": 2048, "kindString": "Method", @@ -48048,7 +49242,7 @@ ], "signatures": [ { - "id": 315, + "id": 314, "name": "rangeAdjacent", "kind": 4096, "kindString": "Call signature", @@ -48058,7 +49252,7 @@ }, "typeParameter": [ { - "id": 316, + "id": 315, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -48071,7 +49265,7 @@ ], "parameters": [ { - "id": 317, + "id": 316, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -48081,13 +49275,13 @@ }, "type": { "type": "reference", - "id": 316, + "id": 315, "name": "ColumnName", "dereferenced": {} } }, { - "id": 318, + "id": 317, "name": "range", "kind": 32768, "kindString": "Parameter", @@ -48103,31 +49297,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -48135,7 +49329,7 @@ } }, { - "id": 319, + "id": 318, "name": "rangeAdjacent", "kind": 4096, "kindString": "Call signature", @@ -48145,7 +49339,7 @@ }, "parameters": [ { - "id": 320, + "id": 319, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -48159,7 +49353,7 @@ } }, { - "id": 321, + "id": 320, "name": "range", "kind": 32768, "kindString": "Parameter", @@ -48175,31 +49369,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -48209,7 +49403,7 @@ ] }, { - "id": 282, + "id": 281, "name": "rangeGt", "kind": 2048, "kindString": "Method", @@ -48223,7 +49417,7 @@ ], "signatures": [ { - "id": 283, + "id": 282, "name": "rangeGt", "kind": 4096, "kindString": "Call signature", @@ -48233,7 +49427,7 @@ }, "typeParameter": [ { - "id": 284, + "id": 283, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -48246,7 +49440,7 @@ ], "parameters": [ { - "id": 285, + "id": 284, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -48256,13 +49450,13 @@ }, "type": { "type": "reference", - "id": 284, + "id": 283, "name": "ColumnName", "dereferenced": {} } }, { - "id": 286, + "id": 285, "name": "range", "kind": 32768, "kindString": "Parameter", @@ -48278,31 +49472,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -48310,7 +49504,7 @@ } }, { - "id": 287, + "id": 286, "name": "rangeGt", "kind": 4096, "kindString": "Call signature", @@ -48320,7 +49514,7 @@ }, "parameters": [ { - "id": 288, + "id": 287, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -48334,7 +49528,7 @@ } }, { - "id": 289, + "id": 288, "name": "range", "kind": 32768, "kindString": "Parameter", @@ -48350,31 +49544,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -48384,7 +49578,7 @@ ] }, { - "id": 290, + "id": 289, "name": "rangeGte", "kind": 2048, "kindString": "Method", @@ -48398,7 +49592,7 @@ ], "signatures": [ { - "id": 291, + "id": 290, "name": "rangeGte", "kind": 4096, "kindString": "Call signature", @@ -48408,7 +49602,7 @@ }, "typeParameter": [ { - "id": 292, + "id": 291, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -48421,7 +49615,7 @@ ], "parameters": [ { - "id": 293, + "id": 292, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -48431,13 +49625,13 @@ }, "type": { "type": "reference", - "id": 292, + "id": 291, "name": "ColumnName", "dereferenced": {} } }, { - "id": 294, + "id": 293, "name": "range", "kind": 32768, "kindString": "Parameter", @@ -48453,31 +49647,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -48485,7 +49679,7 @@ } }, { - "id": 295, + "id": 294, "name": "rangeGte", "kind": 4096, "kindString": "Call signature", @@ -48495,7 +49689,7 @@ }, "parameters": [ { - "id": 296, + "id": 295, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -48509,7 +49703,7 @@ } }, { - "id": 297, + "id": 296, "name": "range", "kind": 32768, "kindString": "Parameter", @@ -48525,31 +49719,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -48559,7 +49753,7 @@ ] }, { - "id": 298, + "id": 297, "name": "rangeLt", "kind": 2048, "kindString": "Method", @@ -48573,7 +49767,7 @@ ], "signatures": [ { - "id": 299, + "id": 298, "name": "rangeLt", "kind": 4096, "kindString": "Call signature", @@ -48583,7 +49777,7 @@ }, "typeParameter": [ { - "id": 300, + "id": 299, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -48596,7 +49790,7 @@ ], "parameters": [ { - "id": 301, + "id": 300, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -48606,13 +49800,13 @@ }, "type": { "type": "reference", - "id": 300, + "id": 299, "name": "ColumnName", "dereferenced": {} } }, { - "id": 302, + "id": 301, "name": "range", "kind": 32768, "kindString": "Parameter", @@ -48628,31 +49822,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -48660,7 +49854,7 @@ } }, { - "id": 303, + "id": 302, "name": "rangeLt", "kind": 4096, "kindString": "Call signature", @@ -48670,7 +49864,7 @@ }, "parameters": [ { - "id": 304, + "id": 303, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -48684,7 +49878,7 @@ } }, { - "id": 305, + "id": 304, "name": "range", "kind": 32768, "kindString": "Parameter", @@ -48700,31 +49894,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -48734,7 +49928,7 @@ ] }, { - "id": 306, + "id": 305, "name": "rangeLte", "kind": 2048, "kindString": "Method", @@ -48748,7 +49942,7 @@ ], "signatures": [ { - "id": 307, + "id": 306, "name": "rangeLte", "kind": 4096, "kindString": "Call signature", @@ -48758,7 +49952,7 @@ }, "typeParameter": [ { - "id": 308, + "id": 307, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -48771,7 +49965,7 @@ ], "parameters": [ { - "id": 309, + "id": 308, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -48781,13 +49975,13 @@ }, "type": { "type": "reference", - "id": 308, + "id": 307, "name": "ColumnName", "dereferenced": {} } }, { - "id": 310, + "id": 309, "name": "range", "kind": 32768, "kindString": "Parameter", @@ -48803,31 +49997,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -48835,7 +50029,7 @@ } }, { - "id": 311, + "id": 310, "name": "rangeLte", "kind": 4096, "kindString": "Call signature", @@ -48845,7 +50039,7 @@ }, "parameters": [ { - "id": 312, + "id": 311, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -48859,7 +50053,7 @@ } }, { - "id": 313, + "id": 312, "name": "range", "kind": 32768, "kindString": "Parameter", @@ -48875,31 +50069,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -48909,7 +50103,7 @@ ] }, { - "id": 455, + "id": 454, "name": "returns", "kind": 2048, "kindString": "Method", @@ -48917,13 +50111,13 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 307, + "line": 311, "character": 2 } ], "signatures": [ { - "id": 456, + "id": 455, "name": "returns", "kind": 4096, "kindString": "Call signature", @@ -48933,7 +50127,7 @@ }, "typeParameter": [ { - "id": 457, + "id": 456, "name": "NewResult", "kind": 131072, "kindString": "Type parameter", @@ -48945,31 +50139,31 @@ ], "type": { "type": "reference", - "id": 490, + "id": 489, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 457, + "id": 456, "name": "NewResult" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -48977,19 +50171,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 576, + "id": 575, "name": "default.returns" } } ], "inheritedFrom": { "type": "reference", - "id": 575, + "id": 574, "name": "default.returns" } }, { - "id": 453, + "id": 452, "name": "rollback", "kind": 2048, "kindString": "Method", @@ -48997,13 +50191,13 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 293, + "line": 297, "character": 2 } ], "signatures": [ { - "id": 454, + "id": 453, "name": "rollback", "kind": 4096, "kindString": "Call signature", @@ -49014,31 +50208,31 @@ }, "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -49046,19 +50240,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 574, + "id": 573, "name": "default.rollback" } } ], "inheritedFrom": { "type": "reference", - "id": 573, + "id": 572, "name": "default.rollback" } }, { - "id": 379, + "id": 378, "name": "select", "kind": 2048, "kindString": "Method", @@ -49072,7 +50266,7 @@ ], "signatures": [ { - "id": 380, + "id": 379, "name": "select", "kind": 4096, "kindString": "Call signature", @@ -49083,7 +50277,7 @@ }, "typeParameter": [ { - "id": 381, + "id": 380, "name": "Query", "kind": 131072, "kindString": "Type parameter", @@ -49098,7 +50292,7 @@ } }, { - "id": 382, + "id": 381, "name": "NewResultOne", "kind": 131072, "kindString": "Type parameter", @@ -49108,27 +50302,27 @@ "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" }, { "type": "reference", - "id": 381, + "id": 380, "name": "Query" } ], @@ -49138,7 +50332,7 @@ ], "parameters": [ { - "id": 383, + "id": 382, "name": "columns", "kind": 32768, "kindString": "Parameter", @@ -49150,7 +50344,7 @@ }, "type": { "type": "reference", - "id": 381, + "id": 380, "name": "Query", "dereferenced": {} } @@ -49158,34 +50352,34 @@ ], "type": { "type": "reference", - "id": 490, + "id": 489, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "array", "elementType": { "type": "reference", - "id": 382, + "id": 381, "name": "NewResultOne" } }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -49193,19 +50387,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 500, + "id": 499, "name": "default.select" } } ], "inheritedFrom": { "type": "reference", - "id": 499, + "id": 498, "name": "default.select" } }, { - "id": 433, + "id": 432, "name": "single", "kind": 2048, "kindString": "Method", @@ -49219,7 +50413,7 @@ ], "signatures": [ { - "id": 434, + "id": 433, "name": "single", "kind": 4096, "kindString": "Call signature", @@ -49230,7 +50424,7 @@ }, "typeParameter": [ { - "id": 435, + "id": 434, "name": "ResultOne", "kind": 131072, "kindString": "Type parameter", @@ -49239,7 +50433,7 @@ "type": "conditional", "checkType": { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, "extendsType": { @@ -49262,11 +50456,11 @@ ], "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "reference", - "id": 435, + "id": 434, "name": "ResultOne" } ], @@ -49274,19 +50468,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 554, + "id": 553, "name": "default.single" } } ], "inheritedFrom": { "type": "reference", - "id": 553, + "id": 552, "name": "default.single" } }, { - "id": 330, + "id": 329, "name": "textSearch", "kind": 2048, "kindString": "Method", @@ -49300,7 +50494,7 @@ ], "signatures": [ { - "id": 331, + "id": 330, "name": "textSearch", "kind": 4096, "kindString": "Call signature", @@ -49310,7 +50504,7 @@ }, "typeParameter": [ { - "id": 332, + "id": 331, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -49323,7 +50517,7 @@ ], "parameters": [ { - "id": 333, + "id": 332, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -49333,13 +50527,13 @@ }, "type": { "type": "reference", - "id": 332, + "id": 331, "name": "ColumnName", "dereferenced": {} } }, { - "id": 334, + "id": 333, "name": "query", "kind": 32768, "kindString": "Parameter", @@ -49353,7 +50547,7 @@ } }, { - "id": 335, + "id": 334, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -49366,14 +50560,14 @@ "type": { "type": "reflection", "declaration": { - "id": 336, + "id": 335, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 337, + "id": 336, "name": "config", "kind": 1024, "kindString": "Property", @@ -49396,7 +50590,7 @@ } }, { - "id": 338, + "id": 337, "name": "type", "kind": 1024, "kindString": "Property", @@ -49437,8 +50631,8 @@ "title": "Properties", "kind": 1024, "children": [ - 337, - 338 + 336, + 337 ] } ] @@ -49448,31 +50642,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -49480,7 +50674,7 @@ } }, { - "id": 339, + "id": 338, "name": "textSearch", "kind": 4096, "kindString": "Call signature", @@ -49490,7 +50684,7 @@ }, "parameters": [ { - "id": 340, + "id": 339, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -49504,7 +50698,7 @@ } }, { - "id": 341, + "id": 340, "name": "query", "kind": 32768, "kindString": "Parameter", @@ -49518,7 +50712,7 @@ } }, { - "id": 342, + "id": 341, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -49531,14 +50725,14 @@ "type": { "type": "reflection", "declaration": { - "id": 343, + "id": 342, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 344, + "id": 343, "name": "config", "kind": 1024, "kindString": "Property", @@ -49561,7 +50755,7 @@ } }, { - "id": 345, + "id": 344, "name": "type", "kind": 1024, "kindString": "Property", @@ -49602,8 +50796,8 @@ "title": "Properties", "kind": 1024, "children": [ - 344, - 345 + 343, + 344 ] } ] @@ -49613,31 +50807,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -49647,7 +50841,7 @@ ] }, { - "id": 473, + "id": 472, "name": "then", "kind": 2048, "kindString": "Method", @@ -49655,31 +50849,31 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 49, + "line": 50, "character": 2 } ], "signatures": [ { - "id": 474, + "id": 473, "name": "then", "kind": 4096, "kindString": "Call signature", "flags": {}, "typeParameter": [ { - "id": 475, + "id": 474, "name": "TResult1", "kind": 131072, "kindString": "Type parameter", "flags": {}, "default": { "type": "reference", - "id": 658, + "id": 657, "typeArguments": [ { "type": "reference", - "id": 149, + "id": 148, "name": "Result" } ], @@ -49687,7 +50881,7 @@ } }, { - "id": 476, + "id": 475, "name": "TResult2", "kind": 131072, "kindString": "Type parameter", @@ -49700,7 +50894,7 @@ ], "parameters": [ { - "id": 477, + "id": 476, "name": "onfulfilled", "kind": 32768, "kindString": "Parameter", @@ -49717,32 +50911,32 @@ { "type": "reflection", "declaration": { - "id": 478, + "id": 477, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 479, + "id": 478, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 480, + "id": 479, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 658, + "id": 657, "typeArguments": [ { "type": "reference", - "id": 149, + "id": 148, "name": "Result" } ], @@ -49755,7 +50949,7 @@ "types": [ { "type": "reference", - "id": 475, + "id": 474, "name": "TResult1" }, { @@ -49763,7 +50957,7 @@ "typeArguments": [ { "type": "reference", - "id": 475, + "id": 474, "name": "TResult1" } ], @@ -49781,7 +50975,7 @@ } }, { - "id": 481, + "id": 480, "name": "onrejected", "kind": 32768, "kindString": "Parameter", @@ -49798,21 +50992,21 @@ { "type": "reflection", "declaration": { - "id": 482, + "id": 481, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 483, + "id": 482, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 484, + "id": 483, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -49828,7 +51022,7 @@ "types": [ { "type": "reference", - "id": 476, + "id": 475, "name": "TResult2" }, { @@ -49836,7 +51030,7 @@ "typeArguments": [ { "type": "reference", - "id": 476, + "id": 475, "name": "TResult2" } ], @@ -49862,12 +51056,12 @@ "types": [ { "type": "reference", - "id": 475, + "id": 474, "name": "TResult1" }, { "type": "reference", - "id": 476, + "id": 475, "name": "TResult2" } ] @@ -49879,19 +51073,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 594, + "id": 593, "name": "default.then" } } ], "inheritedFrom": { "type": "reference", - "id": 593, + "id": 592, "name": "default.then" } }, { - "id": 471, + "id": 470, "name": "throwOnError", "kind": 2048, "kindString": "Method", @@ -49899,13 +51093,13 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 44, + "line": 45, "character": 2 } ], "signatures": [ { - "id": 472, + "id": 471, "name": "throwOnError", "kind": 4096, "kindString": "Call signature", @@ -49916,31 +51110,31 @@ }, "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -49948,14 +51142,14 @@ }, "inheritedFrom": { "type": "reference", - "id": 592, + "id": 591, "name": "default.throwOnError" } } ], "inheritedFrom": { "type": "reference", - "id": 591, + "id": 590, "name": "default.throwOnError" } } @@ -49965,69 +51159,69 @@ "title": "Constructors", "kind": 512, "children": [ - 145 + 144 ] }, { "title": "Properties", "kind": 1024, "children": [ - 462, - 465, - 460, - 470, - 458, 461, - 463, 464, - 459 + 459, + 469, + 457, + 460, + 462, + 463, + 458 ] }, { "title": "Methods", "kind": 2048, "children": [ - 430, - 274, - 266, - 439, - 153, - 443, - 369, - 441, - 170, - 178, - 226, - 234, - 242, - 258, - 250, - 202, - 210, - 218, - 415, - 186, - 194, - 346, - 436, - 162, - 352, - 362, - 384, - 322, - 422, - 314, - 282, - 290, - 298, - 306, - 455, - 453, - 379, - 433, - 330, - 473, - 471 + 429, + 273, + 265, + 438, + 152, + 442, + 368, + 440, + 169, + 177, + 225, + 233, + 241, + 257, + 249, + 201, + 209, + 217, + 414, + 185, + 193, + 345, + 435, + 161, + 351, + 361, + 383, + 321, + 421, + 313, + 281, + 289, + 297, + 305, + 454, + 452, + 378, + 432, + 329, + 472, + 470 ] } ], @@ -50040,7 +51234,7 @@ ], "typeParameter": [ { - "id": 485, + "id": 484, "name": "Schema", "kind": 131072, "kindString": "Type parameter", @@ -50051,7 +51245,7 @@ } }, { - "id": 486, + "id": 485, "name": "Row", "kind": 131072, "kindString": "Type parameter", @@ -50074,14 +51268,14 @@ } }, { - "id": 487, + "id": 486, "name": "Result", "kind": 131072, "kindString": "Type parameter", "flags": {} }, { - "id": 488, + "id": 487, "name": "RelationName", "kind": 131072, "kindString": "Type parameter", @@ -50092,7 +51286,7 @@ } }, { - "id": 489, + "id": 488, "name": "Relationships", "kind": 131072, "kindString": "Type parameter", @@ -50106,31 +51300,31 @@ "extendedTypes": [ { "type": "reference", - "id": 490, + "id": 489, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -50139,14 +51333,14 @@ ] }, { - "id": 57, + "id": 56, "name": "PostgrestQueryBuilder", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 58, + "id": 57, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -50160,14 +51354,14 @@ ], "signatures": [ { - "id": 59, + "id": 58, "name": "new PostgrestQueryBuilder", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "typeParameter": [ { - "id": 60, + "id": 59, "name": "Schema", "kind": 131072, "kindString": "Type parameter", @@ -50178,7 +51372,7 @@ } }, { - "id": 61, + "id": 60, "name": "Relation", "kind": 131072, "kindString": "Type parameter", @@ -50198,7 +51392,7 @@ } }, { - "id": 62, + "id": 61, "name": "RelationName", "kind": 131072, "kindString": "Type parameter", @@ -50209,7 +51403,7 @@ } }, { - "id": 65, + "id": 64, "name": "Relationships", "kind": 131072, "kindString": "Type parameter", @@ -50218,20 +51412,20 @@ "type": "conditional", "checkType": { "type": "reference", - "id": 61, + "id": 60, "name": "Relation" }, "extendsType": { "type": "reflection", "declaration": { - "id": 63, + "id": 62, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 64, + "id": 63, "name": "Relationships", "kind": 1024, "kindString": "Property", @@ -50254,7 +51448,7 @@ "title": "Properties", "kind": 1024, "children": [ - 64 + 63 ] } ] @@ -50273,7 +51467,7 @@ ], "parameters": [ { - "id": 66, + "id": 65, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -50286,7 +51480,7 @@ } }, { - "id": 67, + "id": 66, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -50294,14 +51488,14 @@ "type": { "type": "reflection", "declaration": { - "id": 68, + "id": 67, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 71, + "id": 70, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -50318,21 +51512,21 @@ "type": { "type": "reflection", "declaration": { - "id": 72, + "id": 71, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 73, + "id": 72, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 74, + "id": 73, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -50356,7 +51550,7 @@ } }, { - "id": 75, + "id": 74, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -50391,7 +51585,7 @@ } }, { - "id": 69, + "id": 68, "name": "headers", "kind": 1024, "kindString": "Property", @@ -50423,7 +51617,7 @@ } }, { - "id": 70, + "id": 69, "name": "schema", "kind": 1024, "kindString": "Property", @@ -50448,9 +51642,9 @@ "title": "Properties", "kind": 1024, "children": [ - 71, - 69, - 70 + 70, + 68, + 69 ] } ] @@ -50460,26 +51654,26 @@ ], "type": { "type": "reference", - "id": 57, + "id": 56, "typeArguments": [ { "type": "reference", - "id": 60, + "id": 59, "name": "Schema" }, { "type": "reference", - "id": 61, + "id": 60, "name": "Relation" }, { "type": "reference", - "id": 62, + "id": 61, "name": "RelationName" }, { "type": "reference", - "id": 65, + "id": 64, "name": "Relationships" } ], @@ -50489,7 +51683,7 @@ ] }, { - "id": 80, + "id": 79, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -50506,21 +51700,21 @@ "type": { "type": "reflection", "declaration": { - "id": 81, + "id": 80, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 82, + "id": 81, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 83, + "id": 82, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -50544,7 +51738,7 @@ } }, { - "id": 84, + "id": 83, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -50579,7 +51773,7 @@ } }, { - "id": 77, + "id": 76, "name": "headers", "kind": 1024, "kindString": "Property", @@ -50609,7 +51803,7 @@ } }, { - "id": 78, + "id": 77, "name": "schema", "kind": 1024, "kindString": "Property", @@ -50629,7 +51823,7 @@ } }, { - "id": 79, + "id": 78, "name": "signal", "kind": 1024, "kindString": "Property", @@ -50651,7 +51845,7 @@ } }, { - "id": 76, + "id": 75, "name": "url", "kind": 1024, "kindString": "Property", @@ -50671,7 +51865,7 @@ } }, { - "id": 133, + "id": 132, "name": "delete", "kind": 2048, "kindString": "Method", @@ -50685,7 +51879,7 @@ ], "signatures": [ { - "id": 134, + "id": 133, "name": "delete", "kind": 4096, "kindString": "Call signature", @@ -50696,7 +51890,7 @@ }, "parameters": [ { - "id": 135, + "id": 134, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -50708,14 +51902,14 @@ "type": { "type": "reflection", "declaration": { - "id": 136, + "id": 135, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 137, + "id": 136, "name": "count", "kind": 1024, "kindString": "Property", @@ -50756,7 +51950,7 @@ "title": "Properties", "kind": 1024, "children": [ - 137 + 136 ] } ] @@ -50767,11 +51961,11 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 60, + "id": 59, "name": "Schema" }, { @@ -50782,7 +51976,7 @@ }, "objectType": { "type": "reference", - "id": 61, + "id": 60, "name": "Relation" } }, @@ -50792,12 +51986,12 @@ }, { "type": "reference", - "id": 62, + "id": 61, "name": "RelationName" }, { "type": "reference", - "id": 65, + "id": 64, "name": "Relationships" } ], @@ -50807,7 +52001,7 @@ ] }, { - "id": 94, + "id": 93, "name": "insert", "kind": 2048, "kindString": "Method", @@ -50821,7 +52015,7 @@ ], "signatures": [ { - "id": 95, + "id": 94, "name": "insert", "kind": 4096, "kindString": "Call signature", @@ -50832,7 +52026,7 @@ }, "typeParameter": [ { - "id": 96, + "id": 95, "name": "Row", "kind": 131072, "kindString": "Type parameter", @@ -50857,7 +52051,7 @@ ], "parameters": [ { - "id": 97, + "id": 96, "name": "values", "kind": 32768, "kindString": "Parameter", @@ -50867,13 +52061,13 @@ }, "type": { "type": "reference", - "id": 96, + "id": 95, "name": "Row", "dereferenced": {} } }, { - "id": 98, + "id": 97, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -50886,14 +52080,14 @@ "type": { "type": "reflection", "declaration": { - "id": 99, + "id": 98, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 100, + "id": 99, "name": "count", "kind": 1024, "kindString": "Property", @@ -50934,7 +52128,7 @@ "title": "Properties", "kind": 1024, "children": [ - 100 + 99 ] } ] @@ -50944,11 +52138,11 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 60, + "id": 59, "name": "Schema" }, { @@ -50959,7 +52153,7 @@ }, "objectType": { "type": "reference", - "id": 61, + "id": 60, "name": "Relation" } }, @@ -50969,12 +52163,12 @@ }, { "type": "reference", - "id": 62, + "id": 61, "name": "RelationName" }, { "type": "reference", - "id": 65, + "id": 64, "name": "Relationships" } ], @@ -50982,7 +52176,7 @@ } }, { - "id": 101, + "id": 100, "name": "insert", "kind": 4096, "kindString": "Call signature", @@ -50993,7 +52187,7 @@ }, "typeParameter": [ { - "id": 102, + "id": 101, "name": "Row", "kind": 131072, "kindString": "Type parameter", @@ -51018,7 +52212,7 @@ ], "parameters": [ { - "id": 103, + "id": 102, "name": "values", "kind": 32768, "kindString": "Parameter", @@ -51030,13 +52224,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 102, + "id": 101, "name": "Row" } } }, { - "id": 104, + "id": 103, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -51049,14 +52243,14 @@ "type": { "type": "reflection", "declaration": { - "id": 105, + "id": 104, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 106, + "id": 105, "name": "count", "kind": 1024, "kindString": "Property", @@ -51092,7 +52286,7 @@ } }, { - "id": 107, + "id": 106, "name": "defaultToNull", "kind": 1024, "kindString": "Property", @@ -51120,8 +52314,8 @@ "title": "Properties", "kind": 1024, "children": [ - 106, - 107 + 105, + 106 ] } ] @@ -51131,11 +52325,11 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 60, + "id": 59, "name": "Schema" }, { @@ -51146,7 +52340,7 @@ }, "objectType": { "type": "reference", - "id": 61, + "id": 60, "name": "Relation" } }, @@ -51156,12 +52350,12 @@ }, { "type": "reference", - "id": 62, + "id": 61, "name": "RelationName" }, { "type": "reference", - "id": 65, + "id": 64, "name": "Relationships" } ], @@ -51171,7 +52365,7 @@ ] }, { - "id": 85, + "id": 84, "name": "select", "kind": 2048, "kindString": "Method", @@ -51185,7 +52379,7 @@ ], "signatures": [ { - "id": 86, + "id": 85, "name": "select", "kind": 4096, "kindString": "Call signature", @@ -51195,7 +52389,7 @@ }, "typeParameter": [ { - "id": 87, + "id": 86, "name": "Query", "kind": 131072, "kindString": "Type parameter", @@ -51210,7 +52404,7 @@ } }, { - "id": 88, + "id": 87, "name": "ResultOne", "kind": 131072, "kindString": "Type parameter", @@ -51220,7 +52414,7 @@ "typeArguments": [ { "type": "reference", - "id": 60, + "id": 59, "name": "Schema" }, { @@ -51231,23 +52425,23 @@ }, "objectType": { "type": "reference", - "id": 61, + "id": 60, "name": "Relation" } }, { "type": "reference", - "id": 62, + "id": 61, "name": "RelationName" }, { "type": "reference", - "id": 65, + "id": 64, "name": "Relationships" }, { "type": "reference", - "id": 87, + "id": 86, "name": "Query" } ], @@ -51257,7 +52451,7 @@ ], "parameters": [ { - "id": 89, + "id": 88, "name": "columns", "kind": 32768, "kindString": "Parameter", @@ -51269,13 +52463,13 @@ }, "type": { "type": "reference", - "id": 87, + "id": 86, "name": "Query", "dereferenced": {} } }, { - "id": 90, + "id": 89, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -51287,14 +52481,14 @@ "type": { "type": "reflection", "declaration": { - "id": 91, + "id": 90, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 93, + "id": 92, "name": "count", "kind": 1024, "kindString": "Property", @@ -51330,7 +52524,7 @@ } }, { - "id": 92, + "id": 91, "name": "head", "kind": 1024, "kindString": "Property", @@ -51358,8 +52552,8 @@ "title": "Properties", "kind": 1024, "children": [ - 93, - 92 + 92, + 91 ] } ] @@ -51370,11 +52564,11 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 60, + "id": 59, "name": "Schema" }, { @@ -51385,7 +52579,7 @@ }, "objectType": { "type": "reference", - "id": 61, + "id": 60, "name": "Relation" } }, @@ -51393,18 +52587,18 @@ "type": "array", "elementType": { "type": "reference", - "id": 88, + "id": 87, "name": "ResultOne" } }, { "type": "reference", - "id": 62, + "id": 61, "name": "RelationName" }, { "type": "reference", - "id": 65, + "id": 64, "name": "Relationships" } ], @@ -51414,7 +52608,7 @@ ] }, { - "id": 126, + "id": 125, "name": "update", "kind": 2048, "kindString": "Method", @@ -51428,7 +52622,7 @@ ], "signatures": [ { - "id": 127, + "id": 126, "name": "update", "kind": 4096, "kindString": "Call signature", @@ -51439,7 +52633,7 @@ }, "typeParameter": [ { - "id": 128, + "id": 127, "name": "Row", "kind": 131072, "kindString": "Type parameter", @@ -51464,7 +52658,7 @@ ], "parameters": [ { - "id": 129, + "id": 128, "name": "values", "kind": 32768, "kindString": "Parameter", @@ -51474,13 +52668,13 @@ }, "type": { "type": "reference", - "id": 128, + "id": 127, "name": "Row", "dereferenced": {} } }, { - "id": 130, + "id": 129, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -51492,14 +52686,14 @@ "type": { "type": "reflection", "declaration": { - "id": 131, + "id": 130, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 132, + "id": 131, "name": "count", "kind": 1024, "kindString": "Property", @@ -51540,7 +52734,7 @@ "title": "Properties", "kind": 1024, "children": [ - 132 + 131 ] } ] @@ -51551,11 +52745,11 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 60, + "id": 59, "name": "Schema" }, { @@ -51566,7 +52760,7 @@ }, "objectType": { "type": "reference", - "id": 61, + "id": 60, "name": "Relation" } }, @@ -51576,12 +52770,12 @@ }, { "type": "reference", - "id": 62, + "id": 61, "name": "RelationName" }, { "type": "reference", - "id": 65, + "id": 64, "name": "Relationships" } ], @@ -51591,7 +52785,7 @@ ] }, { - "id": 108, + "id": 107, "name": "upsert", "kind": 2048, "kindString": "Method", @@ -51605,7 +52799,7 @@ ], "signatures": [ { - "id": 109, + "id": 108, "name": "upsert", "kind": 4096, "kindString": "Call signature", @@ -51616,7 +52810,7 @@ }, "typeParameter": [ { - "id": 110, + "id": 109, "name": "Row", "kind": 131072, "kindString": "Type parameter", @@ -51641,7 +52835,7 @@ ], "parameters": [ { - "id": 111, + "id": 110, "name": "values", "kind": 32768, "kindString": "Parameter", @@ -51651,13 +52845,13 @@ }, "type": { "type": "reference", - "id": 110, + "id": 109, "name": "Row", "dereferenced": {} } }, { - "id": 112, + "id": 111, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -51670,14 +52864,14 @@ "type": { "type": "reflection", "declaration": { - "id": 113, + "id": 112, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 116, + "id": 115, "name": "count", "kind": 1024, "kindString": "Property", @@ -51713,7 +52907,7 @@ } }, { - "id": 115, + "id": 114, "name": "ignoreDuplicates", "kind": 1024, "kindString": "Property", @@ -51736,7 +52930,7 @@ } }, { - "id": 114, + "id": 113, "name": "onConflict", "kind": 1024, "kindString": "Property", @@ -51764,9 +52958,9 @@ "title": "Properties", "kind": 1024, "children": [ - 116, 115, - 114 + 114, + 113 ] } ] @@ -51776,11 +52970,11 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 60, + "id": 59, "name": "Schema" }, { @@ -51791,7 +52985,7 @@ }, "objectType": { "type": "reference", - "id": 61, + "id": 60, "name": "Relation" } }, @@ -51801,12 +52995,12 @@ }, { "type": "reference", - "id": 62, + "id": 61, "name": "RelationName" }, { "type": "reference", - "id": 65, + "id": 64, "name": "Relationships" } ], @@ -51814,7 +53008,7 @@ } }, { - "id": 117, + "id": 116, "name": "upsert", "kind": 4096, "kindString": "Call signature", @@ -51825,7 +53019,7 @@ }, "typeParameter": [ { - "id": 118, + "id": 117, "name": "Row", "kind": 131072, "kindString": "Type parameter", @@ -51850,7 +53044,7 @@ ], "parameters": [ { - "id": 119, + "id": 118, "name": "values", "kind": 32768, "kindString": "Parameter", @@ -51862,13 +53056,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 118, + "id": 117, "name": "Row" } } }, { - "id": 120, + "id": 119, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -51881,14 +53075,14 @@ "type": { "type": "reflection", "declaration": { - "id": 121, + "id": 120, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 124, + "id": 123, "name": "count", "kind": 1024, "kindString": "Property", @@ -51924,7 +53118,7 @@ } }, { - "id": 125, + "id": 124, "name": "defaultToNull", "kind": 1024, "kindString": "Property", @@ -51947,7 +53141,7 @@ } }, { - "id": 123, + "id": 122, "name": "ignoreDuplicates", "kind": 1024, "kindString": "Property", @@ -51970,7 +53164,7 @@ } }, { - "id": 122, + "id": 121, "name": "onConflict", "kind": 1024, "kindString": "Property", @@ -51998,10 +53192,10 @@ "title": "Properties", "kind": 1024, "children": [ - 124, - 125, 123, - 122 + 124, + 122, + 121 ] } ] @@ -52011,11 +53205,11 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 60, + "id": 59, "name": "Schema" }, { @@ -52026,7 +53220,7 @@ }, "objectType": { "type": "reference", - "id": 61, + "id": 60, "name": "Relation" } }, @@ -52036,12 +53230,12 @@ }, { "type": "reference", - "id": 62, + "id": 61, "name": "RelationName" }, { "type": "reference", - "id": 65, + "id": 64, "name": "Relationships" } ], @@ -52056,29 +53250,29 @@ "title": "Constructors", "kind": 512, "children": [ - 58 + 57 ] }, { "title": "Properties", "kind": 1024, "children": [ - 80, + 79, + 76, 77, 78, - 79, - 76 + 75 ] }, { "title": "Methods", "kind": 2048, "children": [ - 133, - 94, - 85, - 126, - 108 + 132, + 93, + 84, + 125, + 107 ] } ], @@ -52091,7 +53285,7 @@ ], "typeParameter": [ { - "id": 138, + "id": 137, "name": "Schema", "kind": 131072, "kindString": "Type parameter", @@ -52102,7 +53296,7 @@ } }, { - "id": 139, + "id": 138, "name": "Relation", "kind": 131072, "kindString": "Type parameter", @@ -52122,7 +53316,7 @@ } }, { - "id": 140, + "id": 139, "name": "RelationName", "kind": 131072, "kindString": "Type parameter", @@ -52133,7 +53327,7 @@ } }, { - "id": 143, + "id": 142, "name": "Relationships", "kind": 131072, "kindString": "Type parameter", @@ -52142,20 +53336,20 @@ "type": "conditional", "checkType": { "type": "reference", - "id": 61, + "id": 60, "name": "Relation" }, "extendsType": { "type": "reflection", "declaration": { - "id": 141, + "id": 140, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 142, + "id": 141, "name": "Relationships", "kind": 1024, "kindString": "Property", @@ -52178,7 +53372,7 @@ "title": "Properties", "kind": 1024, "children": [ - 142 + 141 ] } ], @@ -52204,28 +53398,28 @@ ] }, { - "id": 490, + "id": 489, "name": "PostgrestTransformBuilder", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 491, + "id": 490, "name": "constructor", "kind": 512, "kindString": "Constructor", "flags": {}, "signatures": [ { - "id": 492, + "id": 491, "name": "new PostgrestTransformBuilder", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "typeParameter": [ { - "id": 493, + "id": 492, "name": "Schema", "kind": 131072, "kindString": "Type parameter", @@ -52236,7 +53430,7 @@ } }, { - "id": 494, + "id": 493, "name": "Row", "kind": 131072, "kindString": "Type parameter", @@ -52259,14 +53453,14 @@ } }, { - "id": 495, + "id": 494, "name": "Result", "kind": 131072, "kindString": "Type parameter", "flags": {} }, { - "id": 496, + "id": 495, "name": "RelationName", "kind": 131072, "kindString": "Type parameter", @@ -52277,7 +53471,7 @@ } }, { - "id": 497, + "id": 496, "name": "Relationships", "kind": 131072, "kindString": "Type parameter", @@ -52290,24 +53484,24 @@ ], "parameters": [ { - "id": 498, + "id": 497, "name": "builder", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "reference", - "id": 495, + "id": 494, "name": "Result" } ], "name": "default", "dereferenced": { - "id": 610, + "id": 609, "name": "PostgrestBuilder", "kind": 128, "kindString": "Class", @@ -52316,7 +53510,7 @@ }, "children": [ { - "id": 611, + "id": 610, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -52324,20 +53518,20 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 19, + "line": 20, "character": 2 } ], "signatures": [ { - "id": 612, + "id": 611, "name": "new PostgrestBuilder", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "typeParameter": [ { - "id": 613, + "id": 612, "name": "Result", "kind": 131072, "kindString": "Type parameter", @@ -52346,18 +53540,18 @@ ], "parameters": [ { - "id": 614, + "id": 613, "name": "builder", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "reference", - "id": 613, + "id": 612, "name": "Result" } ], @@ -52368,11 +53562,11 @@ ], "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "reference", - "id": 613, + "id": 612, "name": "Result" } ], @@ -52382,7 +53576,7 @@ ] }, { - "id": 619, + "id": 618, "name": "body", "kind": 1024, "kindString": "Property", @@ -52393,7 +53587,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 13, + "line": 14, "character": 12 } ], @@ -52403,7 +53597,7 @@ } }, { - "id": 622, + "id": 621, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -52413,28 +53607,28 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 16, + "line": 17, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 623, + "id": 622, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 624, + "id": 623, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 625, + "id": 624, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -52458,7 +53652,7 @@ } }, { - "id": 626, + "id": 625, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -52493,7 +53687,7 @@ } }, { - "id": 617, + "id": 616, "name": "headers", "kind": 1024, "kindString": "Property", @@ -52503,7 +53697,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 11, + "line": 12, "character": 12 } ], @@ -52525,7 +53719,7 @@ } }, { - "id": 627, + "id": 626, "name": "isMaybeSingle", "kind": 1024, "kindString": "Property", @@ -52535,7 +53729,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 17, + "line": 18, "character": 12 } ], @@ -52545,7 +53739,7 @@ } }, { - "id": 615, + "id": 614, "name": "method", "kind": 1024, "kindString": "Property", @@ -52555,7 +53749,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 9, + "line": 10, "character": 12 } ], @@ -52586,7 +53780,7 @@ } }, { - "id": 618, + "id": 617, "name": "schema", "kind": 1024, "kindString": "Property", @@ -52597,7 +53791,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 12, + "line": 13, "character": 12 } ], @@ -52607,7 +53801,7 @@ } }, { - "id": 620, + "id": 619, "name": "shouldThrowOnError", "kind": 1024, "kindString": "Property", @@ -52617,7 +53811,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 14, + "line": 15, "character": 12 } ], @@ -52628,7 +53822,7 @@ "defaultValue": "false" }, { - "id": 621, + "id": 620, "name": "signal", "kind": 1024, "kindString": "Property", @@ -52639,7 +53833,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 15, + "line": 16, "character": 12 } ], @@ -52651,7 +53845,7 @@ } }, { - "id": 616, + "id": 615, "name": "url", "kind": 1024, "kindString": "Property", @@ -52661,7 +53855,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 10, + "line": 11, "character": 12 } ], @@ -52673,7 +53867,7 @@ } }, { - "id": 630, + "id": 629, "name": "then", "kind": 2048, "kindString": "Method", @@ -52681,31 +53875,31 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 49, + "line": 50, "character": 2 } ], "signatures": [ { - "id": 631, + "id": 630, "name": "then", "kind": 4096, "kindString": "Call signature", "flags": {}, "typeParameter": [ { - "id": 632, + "id": 631, "name": "TResult1", "kind": 131072, "kindString": "Type parameter", "flags": {}, "default": { "type": "reference", - "id": 658, + "id": 657, "typeArguments": [ { "type": "reference", - "id": 613, + "id": 612, "name": "Result" } ], @@ -52713,7 +53907,7 @@ } }, { - "id": 633, + "id": 632, "name": "TResult2", "kind": 131072, "kindString": "Type parameter", @@ -52726,7 +53920,7 @@ ], "parameters": [ { - "id": 634, + "id": 633, "name": "onfulfilled", "kind": 32768, "kindString": "Parameter", @@ -52743,32 +53937,32 @@ { "type": "reflection", "declaration": { - "id": 635, + "id": 634, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 636, + "id": 635, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 637, + "id": 636, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 658, + "id": 657, "typeArguments": [ { "type": "reference", - "id": 613, + "id": 612, "name": "Result" } ], @@ -52781,7 +53975,7 @@ "types": [ { "type": "reference", - "id": 475, + "id": 474, "name": "TResult1" }, { @@ -52789,7 +53983,7 @@ "typeArguments": [ { "type": "reference", - "id": 475, + "id": 474, "name": "TResult1" } ], @@ -52807,7 +54001,7 @@ } }, { - "id": 638, + "id": 637, "name": "onrejected", "kind": 32768, "kindString": "Parameter", @@ -52824,21 +54018,21 @@ { "type": "reflection", "declaration": { - "id": 639, + "id": 638, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 640, + "id": 639, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 641, + "id": 640, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -52854,7 +54048,7 @@ "types": [ { "type": "reference", - "id": 476, + "id": 475, "name": "TResult2" }, { @@ -52862,7 +54056,7 @@ "typeArguments": [ { "type": "reference", - "id": 476, + "id": 475, "name": "TResult2" } ], @@ -52888,12 +54082,12 @@ "types": [ { "type": "reference", - "id": 475, + "id": 474, "name": "TResult1" }, { "type": "reference", - "id": 476, + "id": 475, "name": "TResult2" } ] @@ -52915,7 +54109,7 @@ } }, { - "id": 628, + "id": 627, "name": "throwOnError", "kind": 2048, "kindString": "Method", @@ -52923,13 +54117,13 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 44, + "line": 45, "character": 2 } ], "signatures": [ { - "id": 629, + "id": 628, "name": "throwOnError", "kind": 4096, "kindString": "Call signature", @@ -52940,11 +54134,11 @@ }, "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "reference", - "id": 613, + "id": 612, "name": "Result" } ], @@ -52959,43 +54153,43 @@ "title": "Constructors", "kind": 512, "children": [ - 611 + 610 ] }, { "title": "Properties", "kind": 1024, "children": [ - 619, - 622, - 617, - 627, - 615, 618, - 620, 621, - 616 + 616, + 626, + 614, + 617, + 619, + 620, + 615 ] }, { "title": "Methods", "kind": 2048, "children": [ - 630, - 628 + 629, + 627 ] } ], "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 6, + "line": 7, "character": 30 } ], "typeParameter": [ { - "id": 642, + "id": 641, "name": "Result", "kind": 131072, "kindString": "Type parameter", @@ -53005,7 +54199,7 @@ "extendedBy": [ { "type": "reference", - "id": 490, + "id": 489, "name": "PostgrestTransformBuilder" } ], @@ -53015,11 +54209,11 @@ "typeArguments": [ { "type": "reference", - "id": 658, + "id": 657, "typeArguments": [ { "type": "reference", - "id": 613, + "id": 612, "name": "Result" } ], @@ -53037,31 +54231,31 @@ ], "type": { "type": "reference", - "id": 490, + "id": 489, "typeArguments": [ { "type": "reference", - "id": 493, + "id": 492, "name": "Schema" }, { "type": "reference", - "id": 494, + "id": 493, "name": "Row" }, { "type": "reference", - "id": 495, + "id": 494, "name": "Result" }, { "type": "reference", - "id": 496, + "id": 495, "name": "RelationName" }, { "type": "reference", - "id": 497, + "id": 496, "name": "Relationships" } ], @@ -53069,19 +54263,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 612, + "id": 611, "name": "default.constructor" } } ], "inheritedFrom": { "type": "reference", - "id": 611, + "id": 610, "name": "default.constructor" } }, { - "id": 582, + "id": 581, "name": "body", "kind": 1024, "kindString": "Property", @@ -53092,7 +54286,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 13, + "line": 14, "character": 12 } ], @@ -53102,12 +54296,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 619, + "id": 618, "name": "default.body" } }, { - "id": 585, + "id": 584, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -53117,28 +54311,28 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 16, + "line": 17, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 586, + "id": 585, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 587, + "id": 586, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 588, + "id": 587, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -53162,7 +54356,7 @@ } }, { - "id": 589, + "id": 588, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -53197,12 +54391,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 622, + "id": 621, "name": "default.fetch" } }, { - "id": 580, + "id": 579, "name": "headers", "kind": 1024, "kindString": "Property", @@ -53212,7 +54406,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 11, + "line": 12, "character": 12 } ], @@ -53234,12 +54428,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 617, + "id": 616, "name": "default.headers" } }, { - "id": 590, + "id": 589, "name": "isMaybeSingle", "kind": 1024, "kindString": "Property", @@ -53249,7 +54443,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 17, + "line": 18, "character": 12 } ], @@ -53259,12 +54453,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 627, + "id": 626, "name": "default.isMaybeSingle" } }, { - "id": 578, + "id": 577, "name": "method", "kind": 1024, "kindString": "Property", @@ -53274,7 +54468,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 9, + "line": 10, "character": 12 } ], @@ -53305,12 +54499,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 615, + "id": 614, "name": "default.method" } }, { - "id": 581, + "id": 580, "name": "schema", "kind": 1024, "kindString": "Property", @@ -53321,7 +54515,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 12, + "line": 13, "character": 12 } ], @@ -53331,12 +54525,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 618, + "id": 617, "name": "default.schema" } }, { - "id": 583, + "id": 582, "name": "shouldThrowOnError", "kind": 1024, "kindString": "Property", @@ -53346,7 +54540,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 14, + "line": 15, "character": 12 } ], @@ -53357,12 +54551,12 @@ "defaultValue": "false", "inheritedFrom": { "type": "reference", - "id": 620, + "id": 619, "name": "default.shouldThrowOnError" } }, { - "id": 584, + "id": 583, "name": "signal", "kind": 1024, "kindString": "Property", @@ -53373,7 +54567,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 15, + "line": 16, "character": 12 } ], @@ -53385,12 +54579,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 621, + "id": 620, "name": "default.signal" } }, { - "id": 579, + "id": 578, "name": "url", "kind": 1024, "kindString": "Property", @@ -53400,7 +54594,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 10, + "line": 11, "character": 12 } ], @@ -53412,12 +54606,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 616, + "id": 615, "name": "default.url" } }, { - "id": 550, + "id": 549, "name": "abortSignal", "kind": 2048, "kindString": "Method", @@ -53431,7 +54625,7 @@ ], "signatures": [ { - "id": 551, + "id": 550, "name": "abortSignal", "kind": 4096, "kindString": "Call signature", @@ -53441,7 +54635,7 @@ }, "parameters": [ { - "id": 552, + "id": 551, "name": "signal", "kind": 32768, "kindString": "Parameter", @@ -53459,31 +54653,31 @@ ], "type": { "type": "reference", - "id": 490, + "id": 489, "typeArguments": [ { "type": "reference", - "id": 493, + "id": 492, "name": "Schema" }, { "type": "reference", - "id": 494, + "id": 493, "name": "Row" }, { "type": "reference", - "id": 495, + "id": 494, "name": "Result" }, { "type": "reference", - "id": 496, + "id": 495, "name": "RelationName" }, { "type": "reference", - "id": 497, + "id": 496, "name": "Relationships" } ], @@ -53493,7 +54687,7 @@ ] }, { - "id": 559, + "id": 558, "name": "csv", "kind": 2048, "kindString": "Method", @@ -53507,7 +54701,7 @@ ], "signatures": [ { - "id": 560, + "id": 559, "name": "csv", "kind": 4096, "kindString": "Call signature", @@ -53517,7 +54711,7 @@ }, "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "intrinsic", @@ -53530,7 +54724,7 @@ ] }, { - "id": 563, + "id": 562, "name": "explain", "kind": 2048, "kindString": "Method", @@ -53538,23 +54732,24 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 255, + "line": 259, "character": 2 } ], "signatures": [ { - "id": 564, + "id": 563, "name": "explain", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Return `data` as the EXPLAIN plan for the query." + "shortText": "Return `data` as the EXPLAIN plan for the query.", + "text": "You need to enable the\n[db_plan_enabled](https://supabase.com/docs/guides/database/debugging-performance#enabling-explain)\nsetting before using this method.\n" }, "parameters": [ { - "id": 565, + "id": 564, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -53566,14 +54761,14 @@ "type": { "type": "reflection", "declaration": { - "id": 566, + "id": 565, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 567, + "id": 566, "name": "analyze", "kind": 1024, "kindString": "Property", @@ -53586,7 +54781,7 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 263, + "line": 267, "character": 4 } ], @@ -53596,7 +54791,7 @@ } }, { - "id": 570, + "id": 569, "name": "buffers", "kind": 1024, "kindString": "Property", @@ -53609,7 +54804,7 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 266, + "line": 270, "character": 4 } ], @@ -53619,7 +54814,7 @@ } }, { - "id": 572, + "id": 571, "name": "format", "kind": 1024, "kindString": "Property", @@ -53632,7 +54827,7 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 268, + "line": 272, "character": 4 } ], @@ -53651,7 +54846,7 @@ } }, { - "id": 569, + "id": 568, "name": "settings", "kind": 1024, "kindString": "Property", @@ -53664,7 +54859,7 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 265, + "line": 269, "character": 4 } ], @@ -53674,7 +54869,7 @@ } }, { - "id": 568, + "id": 567, "name": "verbose", "kind": 1024, "kindString": "Property", @@ -53687,7 +54882,7 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 264, + "line": 268, "character": 4 } ], @@ -53697,7 +54892,7 @@ } }, { - "id": 571, + "id": 570, "name": "wal", "kind": 1024, "kindString": "Property", @@ -53710,7 +54905,7 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 267, + "line": 271, "character": 4 } ], @@ -53725,12 +54920,12 @@ "title": "Properties", "kind": 1024, "children": [ - 567, - 570, - 572, + 566, 569, + 571, 568, - 571 + 567, + 570 ] } ] @@ -53744,7 +54939,7 @@ "types": [ { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "intrinsic", @@ -53755,7 +54950,7 @@ }, { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "array", @@ -53785,7 +54980,7 @@ ] }, { - "id": 561, + "id": 560, "name": "geojson", "kind": 2048, "kindString": "Method", @@ -53799,7 +54994,7 @@ ], "signatures": [ { - "id": 562, + "id": 561, "name": "geojson", "kind": 4096, "kindString": "Call signature", @@ -53809,7 +55004,7 @@ }, "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "reference", @@ -53834,7 +55029,7 @@ ] }, { - "id": 535, + "id": 534, "name": "limit", "kind": 2048, "kindString": "Method", @@ -53848,7 +55043,7 @@ ], "signatures": [ { - "id": 536, + "id": 535, "name": "limit", "kind": 4096, "kindString": "Call signature", @@ -53858,7 +55053,7 @@ }, "parameters": [ { - "id": 537, + "id": 536, "name": "count", "kind": 32768, "kindString": "Parameter", @@ -53872,7 +55067,7 @@ } }, { - "id": 538, + "id": 537, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -53884,14 +55079,14 @@ "type": { "type": "reflection", "declaration": { - "id": 539, + "id": 538, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 540, + "id": 539, "name": "foreignTable", "kind": 1024, "kindString": "Property", @@ -53914,7 +55109,7 @@ } }, { - "id": 541, + "id": 540, "name": "referencedTable", "kind": 1024, "kindString": "Property", @@ -53942,8 +55137,8 @@ "title": "Properties", "kind": 1024, "children": [ - 540, - 541 + 539, + 540 ] } ] @@ -53954,31 +55149,31 @@ ], "type": { "type": "reference", - "id": 490, + "id": 489, "typeArguments": [ { "type": "reference", - "id": 493, + "id": 492, "name": "Schema" }, { "type": "reference", - "id": 494, + "id": 493, "name": "Row" }, { "type": "reference", - "id": 495, + "id": 494, "name": "Result" }, { "type": "reference", - "id": 496, + "id": 495, "name": "RelationName" }, { "type": "reference", - "id": 497, + "id": 496, "name": "Relationships" } ], @@ -53988,7 +55183,7 @@ ] }, { - "id": 556, + "id": 555, "name": "maybeSingle", "kind": 2048, "kindString": "Method", @@ -54002,7 +55197,7 @@ ], "signatures": [ { - "id": 557, + "id": 556, "name": "maybeSingle", "kind": 4096, "kindString": "Call signature", @@ -54013,7 +55208,7 @@ }, "typeParameter": [ { - "id": 558, + "id": 557, "name": "ResultOne", "kind": 131072, "kindString": "Type parameter", @@ -54022,7 +55217,7 @@ "type": "conditional", "checkType": { "type": "reference", - "id": 495, + "id": 494, "name": "Result" }, "extendsType": { @@ -54045,7 +55240,7 @@ ], "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "union", @@ -54056,7 +55251,7 @@ }, { "type": "reference", - "id": 438, + "id": 437, "name": "ResultOne" } ] @@ -54068,7 +55263,7 @@ ] }, { - "id": 504, + "id": 503, "name": "order", "kind": 2048, "kindString": "Method", @@ -54082,7 +55277,7 @@ ], "signatures": [ { - "id": 505, + "id": 504, "name": "order", "kind": 4096, "kindString": "Call signature", @@ -54093,7 +55288,7 @@ }, "typeParameter": [ { - "id": 506, + "id": 505, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -54106,7 +55301,7 @@ ], "parameters": [ { - "id": 507, + "id": 506, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -54116,13 +55311,13 @@ }, "type": { "type": "reference", - "id": 386, + "id": 385, "name": "ColumnName", "dereferenced": {} } }, { - "id": 508, + "id": 507, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -54135,14 +55330,14 @@ "type": { "type": "reflection", "declaration": { - "id": 509, + "id": 508, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 510, + "id": 509, "name": "ascending", "kind": 1024, "kindString": "Property", @@ -54164,31 +55359,31 @@ "name": "boolean" } }, + { + "id": 510, + "name": "nullsFirst", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "If `true`, `null`s appear first. If `false`,\n`null`s appear last." + }, + "sources": [ + { + "fileName": "src/PostgrestTransformBuilder.ts", + "line": 57, + "character": 37 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, { "id": 511, - "name": "nullsFirst", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "If `true`, `null`s appear first. If `false`,\n`null`s appear last." - }, - "sources": [ - { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 57, - "character": 37 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 512, "name": "referencedTable", "kind": 1024, "kindString": "Property", @@ -54216,9 +55411,9 @@ "title": "Properties", "kind": 1024, "children": [ + 509, 510, - 511, - 512 + 511 ] } ] @@ -54228,31 +55423,31 @@ ], "type": { "type": "reference", - "id": 490, + "id": 489, "typeArguments": [ { "type": "reference", - "id": 493, + "id": 492, "name": "Schema" }, { "type": "reference", - "id": 494, + "id": 493, "name": "Row" }, { "type": "reference", - "id": 495, + "id": 494, "name": "Result" }, { "type": "reference", - "id": 496, + "id": 495, "name": "RelationName" }, { "type": "reference", - "id": 497, + "id": 496, "name": "Relationships" } ], @@ -54260,7 +55455,7 @@ } }, { - "id": 513, + "id": 512, "name": "order", "kind": 4096, "kindString": "Call signature", @@ -54271,7 +55466,7 @@ }, "parameters": [ { - "id": 514, + "id": 513, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -54285,7 +55480,7 @@ } }, { - "id": 515, + "id": 514, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -54298,14 +55493,14 @@ "type": { "type": "reflection", "declaration": { - "id": 516, + "id": 515, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 517, + "id": 516, "name": "ascending", "kind": 1024, "kindString": "Property", @@ -54328,7 +55523,7 @@ } }, { - "id": 518, + "id": 517, "name": "nullsFirst", "kind": 1024, "kindString": "Property", @@ -54351,7 +55546,7 @@ } }, { - "id": 519, + "id": 518, "name": "referencedTable", "kind": 1024, "kindString": "Property", @@ -54379,9 +55574,9 @@ "title": "Properties", "kind": 1024, "children": [ + 516, 517, - 518, - 519 + 518 ] } ] @@ -54391,31 +55586,31 @@ ], "type": { "type": "reference", - "id": 490, + "id": 489, "typeArguments": [ { "type": "reference", - "id": 493, + "id": 492, "name": "Schema" }, { "type": "reference", - "id": 494, + "id": 493, "name": "Row" }, { "type": "reference", - "id": 495, + "id": 494, "name": "Result" }, { "type": "reference", - "id": 496, + "id": 495, "name": "RelationName" }, { "type": "reference", - "id": 497, + "id": 496, "name": "Relationships" } ], @@ -54423,7 +55618,7 @@ } }, { - "id": 520, + "id": 519, "name": "order", "kind": 4096, "kindString": "Call signature", @@ -54440,7 +55635,7 @@ }, "typeParameter": [ { - "id": 521, + "id": 520, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -54453,7 +55648,7 @@ ], "parameters": [ { - "id": 522, + "id": 521, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -54463,13 +55658,13 @@ }, "type": { "type": "reference", - "id": 401, + "id": 400, "name": "ColumnName", "dereferenced": {} } }, { - "id": 523, + "id": 522, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -54482,14 +55677,14 @@ "type": { "type": "reflection", "declaration": { - "id": 524, + "id": 523, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 525, + "id": 524, "name": "ascending", "kind": 1024, "kindString": "Property", @@ -54509,7 +55704,7 @@ } }, { - "id": 527, + "id": 526, "name": "foreignTable", "kind": 1024, "kindString": "Property", @@ -54529,7 +55724,7 @@ } }, { - "id": 526, + "id": 525, "name": "nullsFirst", "kind": 1024, "kindString": "Property", @@ -54554,9 +55749,9 @@ "title": "Properties", "kind": 1024, "children": [ - 525, - 527, - 526 + 524, + 526, + 525 ] } ] @@ -54566,31 +55761,31 @@ ], "type": { "type": "reference", - "id": 490, + "id": 489, "typeArguments": [ { "type": "reference", - "id": 493, + "id": 492, "name": "Schema" }, { "type": "reference", - "id": 494, + "id": 493, "name": "Row" }, { "type": "reference", - "id": 495, + "id": 494, "name": "Result" }, { "type": "reference", - "id": 496, + "id": 495, "name": "RelationName" }, { "type": "reference", - "id": 497, + "id": 496, "name": "Relationships" } ], @@ -54598,7 +55793,7 @@ } }, { - "id": 528, + "id": 527, "name": "order", "kind": 4096, "kindString": "Call signature", @@ -54615,7 +55810,7 @@ }, "parameters": [ { - "id": 529, + "id": 528, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -54629,7 +55824,7 @@ } }, { - "id": 530, + "id": 529, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -54642,14 +55837,14 @@ "type": { "type": "reflection", "declaration": { - "id": 531, + "id": 530, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 532, + "id": 531, "name": "ascending", "kind": 1024, "kindString": "Property", @@ -54669,7 +55864,7 @@ } }, { - "id": 534, + "id": 533, "name": "foreignTable", "kind": 1024, "kindString": "Property", @@ -54689,7 +55884,7 @@ } }, { - "id": 533, + "id": 532, "name": "nullsFirst", "kind": 1024, "kindString": "Property", @@ -54714,9 +55909,9 @@ "title": "Properties", "kind": 1024, "children": [ - 532, - 534, - 533 + 531, + 533, + 532 ] } ] @@ -54726,31 +55921,31 @@ ], "type": { "type": "reference", - "id": 490, + "id": 489, "typeArguments": [ { "type": "reference", - "id": 493, + "id": 492, "name": "Schema" }, { "type": "reference", - "id": 494, + "id": 493, "name": "Row" }, { "type": "reference", - "id": 495, + "id": 494, "name": "Result" }, { "type": "reference", - "id": 496, + "id": 495, "name": "RelationName" }, { "type": "reference", - "id": 497, + "id": 496, "name": "Relationships" } ], @@ -54760,7 +55955,7 @@ ] }, { - "id": 542, + "id": 541, "name": "range", "kind": 2048, "kindString": "Method", @@ -54774,7 +55969,7 @@ ], "signatures": [ { - "id": 543, + "id": 542, "name": "range", "kind": 4096, "kindString": "Call signature", @@ -54784,7 +55979,7 @@ }, "parameters": [ { - "id": 544, + "id": 543, "name": "from", "kind": 32768, "kindString": "Parameter", @@ -54798,7 +55993,7 @@ } }, { - "id": 545, + "id": 544, "name": "to", "kind": 32768, "kindString": "Parameter", @@ -54812,7 +56007,7 @@ } }, { - "id": 546, + "id": 545, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -54824,14 +56019,14 @@ "type": { "type": "reflection", "declaration": { - "id": 547, + "id": 546, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 548, + "id": 547, "name": "foreignTable", "kind": 1024, "kindString": "Property", @@ -54854,7 +56049,7 @@ } }, { - "id": 549, + "id": 548, "name": "referencedTable", "kind": 1024, "kindString": "Property", @@ -54882,8 +56077,8 @@ "title": "Properties", "kind": 1024, "children": [ - 548, - 549 + 547, + 548 ] } ] @@ -54894,31 +56089,31 @@ ], "type": { "type": "reference", - "id": 490, + "id": 489, "typeArguments": [ { "type": "reference", - "id": 493, + "id": 492, "name": "Schema" }, { "type": "reference", - "id": 494, + "id": 493, "name": "Row" }, { "type": "reference", - "id": 495, + "id": 494, "name": "Result" }, { "type": "reference", - "id": 496, + "id": 495, "name": "RelationName" }, { "type": "reference", - "id": 497, + "id": 496, "name": "Relationships" } ], @@ -54928,7 +56123,7 @@ ] }, { - "id": 575, + "id": 574, "name": "returns", "kind": 2048, "kindString": "Method", @@ -54936,13 +56131,13 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 307, + "line": 311, "character": 2 } ], "signatures": [ { - "id": 576, + "id": 575, "name": "returns", "kind": 4096, "kindString": "Call signature", @@ -54952,7 +56147,7 @@ }, "typeParameter": [ { - "id": 577, + "id": 576, "name": "NewResult", "kind": 131072, "kindString": "Type parameter", @@ -54964,31 +56159,31 @@ ], "type": { "type": "reference", - "id": 490, + "id": 489, "typeArguments": [ { "type": "reference", - "id": 493, + "id": 492, "name": "Schema" }, { "type": "reference", - "id": 494, + "id": 493, "name": "Row" }, { "type": "reference", - "id": 457, + "id": 456, "name": "NewResult" }, { "type": "reference", - "id": 496, + "id": 495, "name": "RelationName" }, { "type": "reference", - "id": 497, + "id": 496, "name": "Relationships" } ], @@ -54998,7 +56193,7 @@ ] }, { - "id": 573, + "id": 572, "name": "rollback", "kind": 2048, "kindString": "Method", @@ -55006,13 +56201,13 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 293, + "line": 297, "character": 2 } ], "signatures": [ { - "id": 574, + "id": 573, "name": "rollback", "kind": 4096, "kindString": "Call signature", @@ -55023,31 +56218,31 @@ }, "type": { "type": "reference", - "id": 490, + "id": 489, "typeArguments": [ { "type": "reference", - "id": 493, + "id": 492, "name": "Schema" }, { "type": "reference", - "id": 494, + "id": 493, "name": "Row" }, { "type": "reference", - "id": 495, + "id": 494, "name": "Result" }, { "type": "reference", - "id": 496, + "id": 495, "name": "RelationName" }, { "type": "reference", - "id": 497, + "id": 496, "name": "Relationships" } ], @@ -55057,7 +56252,7 @@ ] }, { - "id": 499, + "id": 498, "name": "select", "kind": 2048, "kindString": "Method", @@ -55071,7 +56266,7 @@ ], "signatures": [ { - "id": 500, + "id": 499, "name": "select", "kind": 4096, "kindString": "Call signature", @@ -55082,7 +56277,7 @@ }, "typeParameter": [ { - "id": 501, + "id": 500, "name": "Query", "kind": 131072, "kindString": "Type parameter", @@ -55097,7 +56292,7 @@ } }, { - "id": 502, + "id": 501, "name": "NewResultOne", "kind": 131072, "kindString": "Type parameter", @@ -55107,27 +56302,27 @@ "typeArguments": [ { "type": "reference", - "id": 493, + "id": 492, "name": "Schema" }, { "type": "reference", - "id": 494, + "id": 493, "name": "Row" }, { "type": "reference", - "id": 496, + "id": 495, "name": "RelationName" }, { "type": "reference", - "id": 497, + "id": 496, "name": "Relationships" }, { "type": "reference", - "id": 381, + "id": 380, "name": "Query" } ], @@ -55137,7 +56332,7 @@ ], "parameters": [ { - "id": 503, + "id": 502, "name": "columns", "kind": 32768, "kindString": "Parameter", @@ -55149,7 +56344,7 @@ }, "type": { "type": "reference", - "id": 381, + "id": 380, "name": "Query", "dereferenced": {} } @@ -55157,34 +56352,34 @@ ], "type": { "type": "reference", - "id": 490, + "id": 489, "typeArguments": [ { "type": "reference", - "id": 493, + "id": 492, "name": "Schema" }, { "type": "reference", - "id": 494, + "id": 493, "name": "Row" }, { "type": "array", "elementType": { "type": "reference", - "id": 382, + "id": 381, "name": "NewResultOne" } }, { "type": "reference", - "id": 496, + "id": 495, "name": "RelationName" }, { "type": "reference", - "id": 497, + "id": 496, "name": "Relationships" } ], @@ -55194,7 +56389,7 @@ ] }, { - "id": 553, + "id": 552, "name": "single", "kind": 2048, "kindString": "Method", @@ -55208,7 +56403,7 @@ ], "signatures": [ { - "id": 554, + "id": 553, "name": "single", "kind": 4096, "kindString": "Call signature", @@ -55219,7 +56414,7 @@ }, "typeParameter": [ { - "id": 555, + "id": 554, "name": "ResultOne", "kind": 131072, "kindString": "Type parameter", @@ -55228,7 +56423,7 @@ "type": "conditional", "checkType": { "type": "reference", - "id": 495, + "id": 494, "name": "Result" }, "extendsType": { @@ -55251,11 +56446,11 @@ ], "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "reference", - "id": 435, + "id": 434, "name": "ResultOne" } ], @@ -55265,7 +56460,7 @@ ] }, { - "id": 593, + "id": 592, "name": "then", "kind": 2048, "kindString": "Method", @@ -55273,31 +56468,31 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 49, + "line": 50, "character": 2 } ], "signatures": [ { - "id": 594, + "id": 593, "name": "then", "kind": 4096, "kindString": "Call signature", "flags": {}, "typeParameter": [ { - "id": 595, + "id": 594, "name": "TResult1", "kind": 131072, "kindString": "Type parameter", "flags": {}, "default": { "type": "reference", - "id": 658, + "id": 657, "typeArguments": [ { "type": "reference", - "id": 495, + "id": 494, "name": "Result" } ], @@ -55305,7 +56500,7 @@ } }, { - "id": 596, + "id": 595, "name": "TResult2", "kind": 131072, "kindString": "Type parameter", @@ -55318,7 +56513,7 @@ ], "parameters": [ { - "id": 597, + "id": 596, "name": "onfulfilled", "kind": 32768, "kindString": "Parameter", @@ -55335,32 +56530,32 @@ { "type": "reflection", "declaration": { - "id": 598, + "id": 597, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 599, + "id": 598, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 600, + "id": 599, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 658, + "id": 657, "typeArguments": [ { "type": "reference", - "id": 495, + "id": 494, "name": "Result" } ], @@ -55373,7 +56568,7 @@ "types": [ { "type": "reference", - "id": 475, + "id": 474, "name": "TResult1" }, { @@ -55381,7 +56576,7 @@ "typeArguments": [ { "type": "reference", - "id": 475, + "id": 474, "name": "TResult1" } ], @@ -55399,7 +56594,7 @@ } }, { - "id": 601, + "id": 600, "name": "onrejected", "kind": 32768, "kindString": "Parameter", @@ -55416,21 +56611,21 @@ { "type": "reflection", "declaration": { - "id": 602, + "id": 601, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 603, + "id": 602, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 604, + "id": 603, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -55446,7 +56641,7 @@ "types": [ { "type": "reference", - "id": 476, + "id": 475, "name": "TResult2" }, { @@ -55454,7 +56649,7 @@ "typeArguments": [ { "type": "reference", - "id": 476, + "id": 475, "name": "TResult2" } ], @@ -55480,12 +56675,12 @@ "types": [ { "type": "reference", - "id": 475, + "id": 474, "name": "TResult1" }, { "type": "reference", - "id": 476, + "id": 475, "name": "TResult2" } ] @@ -55497,19 +56692,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 631, + "id": 630, "name": "default.then" } } ], "inheritedFrom": { "type": "reference", - "id": 630, + "id": 629, "name": "default.then" } }, { - "id": 591, + "id": 590, "name": "throwOnError", "kind": 2048, "kindString": "Method", @@ -55517,13 +56712,13 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 44, + "line": 45, "character": 2 } ], "signatures": [ { - "id": 592, + "id": 591, "name": "throwOnError", "kind": 4096, "kindString": "Call signature", @@ -55534,31 +56729,31 @@ }, "type": { "type": "reference", - "id": 490, + "id": 489, "typeArguments": [ { "type": "reference", - "id": 493, + "id": 492, "name": "Schema" }, { "type": "reference", - "id": 494, + "id": 493, "name": "Row" }, { "type": "reference", - "id": 495, + "id": 494, "name": "Result" }, { "type": "reference", - "id": 496, + "id": 495, "name": "RelationName" }, { "type": "reference", - "id": 497, + "id": 496, "name": "Relationships" } ], @@ -55566,14 +56761,14 @@ }, "inheritedFrom": { "type": "reference", - "id": 629, + "id": 628, "name": "default.throwOnError" } } ], "inheritedFrom": { "type": "reference", - "id": 628, + "id": 627, "name": "default.throwOnError" } } @@ -55583,42 +56778,42 @@ "title": "Constructors", "kind": 512, "children": [ - 491 + 490 ] }, { "title": "Properties", "kind": 1024, "children": [ - 582, - 585, - 580, - 590, - 578, 581, - 583, 584, - 579 + 579, + 589, + 577, + 580, + 582, + 583, + 578 ] }, { "title": "Methods", "kind": 2048, "children": [ - 550, - 559, - 563, - 561, - 535, - 556, - 504, - 542, - 575, - 573, - 499, - 553, - 593, - 591 + 549, + 558, + 562, + 560, + 534, + 555, + 503, + 541, + 574, + 572, + 498, + 552, + 592, + 590 ] } ], @@ -55631,7 +56826,7 @@ ], "typeParameter": [ { - "id": 605, + "id": 604, "name": "Schema", "kind": 131072, "kindString": "Type parameter", @@ -55642,7 +56837,7 @@ } }, { - "id": 606, + "id": 605, "name": "Row", "kind": 131072, "kindString": "Type parameter", @@ -55665,14 +56860,14 @@ } }, { - "id": 607, + "id": 606, "name": "Result", "kind": 131072, "kindString": "Type parameter", "flags": {} }, { - "id": 608, + "id": 607, "name": "RelationName", "kind": 131072, "kindString": "Type parameter", @@ -55683,7 +56878,7 @@ } }, { - "id": 609, + "id": 608, "name": "Relationships", "kind": 131072, "kindString": "Type parameter", @@ -55697,11 +56892,11 @@ "extendedTypes": [ { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "reference", - "id": 495, + "id": 494, "name": "Result" } ], @@ -55711,20 +56906,20 @@ "extendedBy": [ { "type": "reference", - "id": 144, + "id": 143, "name": "PostgrestFilterBuilder" } ] }, { - "id": 645, + "id": 644, "name": "PostgrestResponseFailure", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 648, + "id": 647, "name": "count", "kind": 1024, "kindString": "Property", @@ -55742,7 +56937,7 @@ } }, { - "id": 647, + "id": 646, "name": "data", "kind": 1024, "kindString": "Property", @@ -55760,7 +56955,7 @@ } }, { - "id": 646, + "id": 645, "name": "error", "kind": 1024, "kindString": "Property", @@ -55774,10 +56969,10 @@ ], "type": { "type": "reference", - "id": 662, + "id": 661, "name": "PostgrestError", "dereferenced": { - "id": 662, + "id": 661, "name": "PostgrestError", "kind": 4194304, "kindString": "Type alias", @@ -55796,14 +56991,14 @@ "type": { "type": "reflection", "declaration": { - "id": 663, + "id": 662, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 667, + "id": 666, "name": "code", "kind": 1024, "kindString": "Property", @@ -55821,7 +57016,7 @@ } }, { - "id": 665, + "id": 664, "name": "details", "kind": 1024, "kindString": "Property", @@ -55839,7 +57034,7 @@ } }, { - "id": 666, + "id": 665, "name": "hint", "kind": 1024, "kindString": "Property", @@ -55857,7 +57052,7 @@ } }, { - "id": 664, + "id": 663, "name": "message", "kind": 1024, "kindString": "Property", @@ -55880,10 +57075,10 @@ "title": "Properties", "kind": 1024, "children": [ - 667, - 665, 666, - 664 + 664, + 665, + 663 ] } ], @@ -55900,7 +57095,7 @@ } }, { - "id": 649, + "id": 648, "name": "status", "kind": 1024, "kindString": "Property", @@ -55922,7 +57117,7 @@ } }, { - "id": 650, + "id": 649, "name": "statusText", "kind": 1024, "kindString": "Property", @@ -55949,11 +57144,11 @@ "title": "Properties", "kind": 1024, "children": [ - 648, 647, 646, - 649, - 650 + 645, + 648, + 649 ] } ], @@ -55972,14 +57167,14 @@ ] }, { - "id": 651, + "id": 650, "name": "PostgrestResponseSuccess", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 654, + "id": 653, "name": "count", "kind": 1024, "kindString": "Property", @@ -56006,7 +57201,7 @@ } }, { - "id": 653, + "id": 652, "name": "data", "kind": 1024, "kindString": "Property", @@ -56020,13 +57215,13 @@ ], "type": { "type": "reference", - "id": 657, + "id": 656, "name": "T", "dereferenced": {} } }, { - "id": 652, + "id": 651, "name": "error", "kind": 1024, "kindString": "Property", @@ -56044,7 +57239,7 @@ } }, { - "id": 655, + "id": 654, "name": "status", "kind": 1024, "kindString": "Property", @@ -56066,7 +57261,7 @@ } }, { - "id": 656, + "id": 655, "name": "statusText", "kind": 1024, "kindString": "Property", @@ -56093,11 +57288,11 @@ "title": "Properties", "kind": 1024, "children": [ - 654, 653, 652, - 655, - 656 + 651, + 654, + 655 ] } ], @@ -56110,7 +57305,7 @@ ], "typeParameter": [ { - "id": 657, + "id": 656, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -56125,7 +57320,7 @@ ] }, { - "id": 662, + "id": 661, "name": "PostgrestError", "kind": 4194304, "kindString": "Type alias", @@ -56144,14 +57339,14 @@ "type": { "type": "reflection", "declaration": { - "id": 663, + "id": 662, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 667, + "id": 666, "name": "code", "kind": 1024, "kindString": "Property", @@ -56169,7 +57364,7 @@ } }, { - "id": 665, + "id": 664, "name": "details", "kind": 1024, "kindString": "Property", @@ -56187,7 +57382,7 @@ } }, { - "id": 666, + "id": 665, "name": "hint", "kind": 1024, "kindString": "Property", @@ -56205,7 +57400,7 @@ } }, { - "id": 664, + "id": 663, "name": "message", "kind": 1024, "kindString": "Property", @@ -56228,10 +57423,10 @@ "title": "Properties", "kind": 1024, "children": [ - 667, - 665, 666, - 664 + 664, + 665, + 663 ] } ], @@ -56246,7 +57441,7 @@ } }, { - "id": 660, + "id": 659, "name": "PostgrestMaybeSingleResponse", "kind": 4194304, "kindString": "Type alias", @@ -56260,7 +57455,7 @@ ], "typeParameter": [ { - "id": 661, + "id": 660, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -56269,14 +57464,14 @@ ], "type": { "type": "reference", - "id": 658, + "id": 657, "typeArguments": [ { "type": "union", "types": [ { "type": "reference", - "id": 661, + "id": 660, "name": "T" }, { @@ -56290,7 +57485,7 @@ } }, { - "id": 643, + "id": 642, "name": "PostgrestResponse", "kind": 4194304, "kindString": "Type alias", @@ -56304,7 +57499,7 @@ ], "typeParameter": [ { - "id": 644, + "id": 643, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -56313,13 +57508,13 @@ ], "type": { "type": "reference", - "id": 658, + "id": 657, "typeArguments": [ { "type": "array", "elementType": { "type": "reference", - "id": 644, + "id": 643, "name": "T" } } @@ -56328,7 +57523,7 @@ } }, { - "id": 658, + "id": 657, "name": "PostgrestSingleResponse", "kind": 4194304, "kindString": "Type alias", @@ -56342,7 +57537,7 @@ ], "typeParameter": [ { - "id": 659, + "id": 658, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -56353,14 +57548,14 @@ "type": "union", "types": [ { - "id": 651, + "id": 650, "name": "PostgrestResponseSuccess", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 654, + "id": 653, "name": "count", "kind": 1024, "kindString": "Property", @@ -56387,7 +57582,7 @@ } }, { - "id": 653, + "id": 652, "name": "data", "kind": 1024, "kindString": "Property", @@ -56401,13 +57596,13 @@ ], "type": { "type": "reference", - "id": 657, + "id": 656, "name": "T", "dereferenced": {} } }, { - "id": 652, + "id": 651, "name": "error", "kind": 1024, "kindString": "Property", @@ -56425,7 +57620,7 @@ } }, { - "id": 655, + "id": 654, "name": "status", "kind": 1024, "kindString": "Property", @@ -56447,7 +57642,7 @@ } }, { - "id": 656, + "id": 655, "name": "statusText", "kind": 1024, "kindString": "Property", @@ -56474,11 +57669,11 @@ "title": "Properties", "kind": 1024, "children": [ - 654, 653, 652, - 655, - 656 + 651, + 654, + 655 ] } ], @@ -56491,7 +57686,7 @@ ], "typeParameter": [ { - "id": 657, + "id": 656, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -56506,14 +57701,14 @@ ] }, { - "id": 645, + "id": 644, "name": "PostgrestResponseFailure", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 648, + "id": 647, "name": "count", "kind": 1024, "kindString": "Property", @@ -56531,7 +57726,7 @@ } }, { - "id": 647, + "id": 646, "name": "data", "kind": 1024, "kindString": "Property", @@ -56549,7 +57744,7 @@ } }, { - "id": 646, + "id": 645, "name": "error", "kind": 1024, "kindString": "Property", @@ -56563,10 +57758,10 @@ ], "type": { "type": "reference", - "id": 662, + "id": 661, "name": "PostgrestError", "dereferenced": { - "id": 662, + "id": 661, "name": "PostgrestError", "kind": 4194304, "kindString": "Type alias", @@ -56585,14 +57780,14 @@ "type": { "type": "reflection", "declaration": { - "id": 663, + "id": 662, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 667, + "id": 666, "name": "code", "kind": 1024, "kindString": "Property", @@ -56610,7 +57805,7 @@ } }, { - "id": 665, + "id": 664, "name": "details", "kind": 1024, "kindString": "Property", @@ -56628,7 +57823,7 @@ } }, { - "id": 666, + "id": 665, "name": "hint", "kind": 1024, "kindString": "Property", @@ -56646,7 +57841,7 @@ } }, { - "id": 664, + "id": 663, "name": "message", "kind": 1024, "kindString": "Property", @@ -56669,10 +57864,10 @@ "title": "Properties", "kind": 1024, "children": [ - 667, - 665, 666, - 664 + 664, + 665, + 663 ] } ], @@ -56689,7 +57884,7 @@ } }, { - "id": 649, + "id": 648, "name": "status", "kind": 1024, "kindString": "Property", @@ -56711,7 +57906,7 @@ } }, { - "id": 650, + "id": 649, "name": "statusText", "kind": 1024, "kindString": "Property", @@ -56738,11 +57933,11 @@ "title": "Properties", "kind": 1024, "children": [ - 648, 647, 646, - 649, - 650 + 645, + 648, + 649 ] } ], @@ -56769,29 +57964,29 @@ "title": "Classes", "kind": 128, "children": [ - 610, + 609, 1, - 144, - 57, - 490 + 143, + 56, + 489 ] }, { "title": "Interfaces", "kind": 256, "children": [ - 645, - 651 + 644, + 650 ] }, { "title": "Type Aliases", "kind": 4194304, "children": [ - 662, - 660, - 643, - 658 + 661, + 659, + 642, + 657 ] } ], @@ -56812,14 +58007,14 @@ "originalName": "", "children": [ { - "id": 576, + "id": 588, "name": "REALTIME_LISTEN_TYPES", "kind": 8, "kindString": "Enumeration", "flags": {}, "children": [ { - "id": 577, + "id": 589, "name": "BROADCAST", "kind": 16, "kindString": "Enumeration Member", @@ -56838,7 +58033,7 @@ "defaultValue": "\"broadcast\"" }, { - "id": 579, + "id": 591, "name": "POSTGRES_CHANGES", "kind": 16, "kindString": "Enumeration Member", @@ -56860,7 +58055,7 @@ "defaultValue": "\"postgres_changes\"" }, { - "id": 578, + "id": 590, "name": "PRESENCE", "kind": 16, "kindString": "Enumeration Member", @@ -56884,9 +58079,9 @@ "title": "Enumeration Members", "kind": 16, "children": [ - 577, - 579, - 578 + 589, + 591, + 590 ] } ], @@ -56899,14 +58094,14 @@ ] }, { - "id": 580, + "id": 592, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT", "kind": 8, "kindString": "Enumeration", "flags": {}, "children": [ { - "id": 581, + "id": 593, "name": "ALL", "kind": 16, "kindString": "Enumeration Member", @@ -56925,7 +58120,7 @@ "defaultValue": "\"*\"" }, { - "id": 584, + "id": 596, "name": "DELETE", "kind": 16, "kindString": "Enumeration Member", @@ -56944,7 +58139,7 @@ "defaultValue": "\"DELETE\"" }, { - "id": 582, + "id": 594, "name": "INSERT", "kind": 16, "kindString": "Enumeration Member", @@ -56963,7 +58158,7 @@ "defaultValue": "\"INSERT\"" }, { - "id": 583, + "id": 595, "name": "UPDATE", "kind": 16, "kindString": "Enumeration Member", @@ -56987,10 +58182,10 @@ "title": "Enumeration Members", "kind": 16, "children": [ - 581, - 584, - 582, - 583 + 593, + 596, + 594, + 595 ] } ], @@ -57003,14 +58198,14 @@ ] }, { - "id": 585, + "id": 597, "name": "REALTIME_PRESENCE_LISTEN_EVENTS", "kind": 8, "kindString": "Enumeration", "flags": {}, "children": [ { - "id": 587, + "id": 599, "name": "JOIN", "kind": 16, "kindString": "Enumeration Member", @@ -57029,7 +58224,7 @@ "defaultValue": "\"join\"" }, { - "id": 588, + "id": 600, "name": "LEAVE", "kind": 16, "kindString": "Enumeration Member", @@ -57048,7 +58243,7 @@ "defaultValue": "\"leave\"" }, { - "id": 586, + "id": 598, "name": "SYNC", "kind": 16, "kindString": "Enumeration Member", @@ -57072,9 +58267,9 @@ "title": "Enumeration Members", "kind": 16, "children": [ - 587, - 588, - 586 + 599, + 600, + 598 ] } ], @@ -57087,14 +58282,14 @@ ] }, { - "id": 589, + "id": 601, "name": "REALTIME_SUBSCRIBE_STATES", "kind": 8, "kindString": "Enumeration", "flags": {}, "children": [ { - "id": 593, + "id": 605, "name": "CHANNEL_ERROR", "kind": 16, "kindString": "Enumeration Member", @@ -57113,7 +58308,7 @@ "defaultValue": "\"CHANNEL_ERROR\"" }, { - "id": 592, + "id": 604, "name": "CLOSED", "kind": 16, "kindString": "Enumeration Member", @@ -57132,7 +58327,7 @@ "defaultValue": "\"CLOSED\"" }, { - "id": 590, + "id": 602, "name": "SUBSCRIBED", "kind": 16, "kindString": "Enumeration Member", @@ -57151,7 +58346,7 @@ "defaultValue": "\"SUBSCRIBED\"" }, { - "id": 591, + "id": 603, "name": "TIMED_OUT", "kind": 16, "kindString": "Enumeration Member", @@ -57175,10 +58370,10 @@ "title": "Enumeration Members", "kind": 16, "children": [ - 593, - 592, - 590, - 591 + 605, + 604, + 602, + 603 ] } ], @@ -57511,7 +58706,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 115, + "line": 112, "character": 2 } ], @@ -57550,10 +58745,10 @@ }, "type": { "type": "reference", - "id": 479, + "id": 491, "name": "RealtimeClientOptions", "dereferenced": { - "id": 479, + "id": 491, "name": "RealtimeClientOptions", "kind": 4194304, "kindString": "Type alias", @@ -57568,14 +58763,14 @@ "type": { "type": "reflection", "declaration": { - "id": 480, + "id": 492, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 486, + "id": 498, "name": "decode", "kind": 1024, "kindString": "Property", @@ -57597,7 +58792,7 @@ } }, { - "id": 485, + "id": 497, "name": "encode", "kind": 1024, "kindString": "Property", @@ -57619,7 +58814,7 @@ } }, { - "id": 497, + "id": 509, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -57639,7 +58834,7 @@ } }, { - "id": 488, + "id": 500, "name": "headers", "kind": 1024, "kindString": "Property", @@ -57656,7 +58851,7 @@ "type": { "type": "reflection", "declaration": { - "id": 489, + "id": 501, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -57669,14 +58864,14 @@ } ], "indexSignature": { - "id": 490, + "id": 502, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 491, + "id": 503, "name": "key", "kind": 32768, "flags": {}, @@ -57695,7 +58890,7 @@ } }, { - "id": 483, + "id": 495, "name": "heartbeatIntervalMs", "kind": 1024, "kindString": "Property", @@ -57715,7 +58910,7 @@ } }, { - "id": 496, + "id": 508, "name": "log_level", "kind": 1024, "kindString": "Property", @@ -57752,7 +58947,7 @@ } }, { - "id": 484, + "id": 496, "name": "logger", "kind": 1024, "kindString": "Property", @@ -57774,7 +58969,7 @@ } }, { - "id": 492, + "id": 504, "name": "params", "kind": 1024, "kindString": "Property", @@ -57791,7 +58986,7 @@ "type": { "type": "reflection", "declaration": { - "id": 493, + "id": 505, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -57804,14 +58999,14 @@ } ], "indexSignature": { - "id": 494, + "id": 506, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 495, + "id": 507, "name": "key", "kind": 32768, "flags": {}, @@ -57830,7 +59025,7 @@ } }, { - "id": 487, + "id": 499, "name": "reconnectAfterMs", "kind": 1024, "kindString": "Property", @@ -57852,7 +59047,7 @@ } }, { - "id": 482, + "id": 494, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -57872,7 +59067,7 @@ } }, { - "id": 481, + "id": 493, "name": "transport", "kind": 1024, "kindString": "Property", @@ -57897,17 +59092,17 @@ "title": "Properties", "kind": 1024, "children": [ - 486, - 485, + 498, 497, - 488, - 483, + 509, + 500, + 495, + 508, 496, - 484, - 492, - 487, - 482, - 481 + 504, + 499, + 494, + 493 ] } ], @@ -57941,7 +59136,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 69, + "line": 65, "character": 2 } ], @@ -57962,6 +59157,34 @@ }, { "id": 365, + "name": "apiKey", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/RealtimeClient.ts", + "line": 66, + "character": 2 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "intrinsic", + "name": "string" + } + ] + }, + "defaultValue": "null" + }, + { + "id": 366, "name": "channels", "kind": 1024, "kindString": "Property", @@ -57969,7 +59192,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 70, + "line": 67, "character": 2 } ], @@ -57984,7 +59207,7 @@ "defaultValue": "[]" }, { - "id": 386, + "id": 387, "name": "conn", "kind": 1024, "kindString": "Property", @@ -57992,7 +59215,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 85, + "line": 82, "character": 2 } ], @@ -58012,7 +59235,7 @@ "defaultValue": "null" }, { - "id": 384, + "id": 385, "name": "decode", "kind": 1024, "kindString": "Property", @@ -58020,7 +59243,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 83, + "line": 80, "character": 2 } ], @@ -58032,7 +59255,7 @@ } }, { - "id": 383, + "id": 384, "name": "encode", "kind": 1024, "kindString": "Property", @@ -58040,7 +59263,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 82, + "line": 79, "character": 2 } ], @@ -58052,7 +59275,7 @@ } }, { - "id": 366, + "id": 367, "name": "endPoint", "kind": 1024, "kindString": "Property", @@ -58060,7 +59283,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 71, + "line": 68, "character": 2 } ], @@ -58071,7 +59294,7 @@ "defaultValue": "''" }, { - "id": 395, + "id": 396, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -58079,28 +59302,28 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 99, + "line": 96, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 396, + "id": 397, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 397, + "id": 398, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 398, + "id": 399, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -58124,7 +59347,73 @@ } }, { - "id": 399, + "id": 400, + "name": "init", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "qualifiedName": "RequestInit", + "package": "typescript", + "name": "RequestInit" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "qualifiedName": "Response", + "package": "typescript", + "name": "Response" + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + }, + { + "id": 401, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 402, + "name": "input", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "qualifiedName": "Request", + "package": "typescript", + "name": "Request" + }, + { + "type": "reference", + "qualifiedName": "URL", + "package": "typescript", + "name": "URL" + } + ] + } + }, + { + "id": 403, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -58159,7 +59448,7 @@ } }, { - "id": 367, + "id": 368, "name": "headers", "kind": 1024, "kindString": "Property", @@ -58169,27 +59458,27 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 72, + "line": 69, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 368, + "id": 369, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": { - "id": 369, + "id": 370, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 370, + "id": 371, "name": "key", "kind": 32768, "flags": {}, @@ -58209,7 +59498,7 @@ "defaultValue": "DEFAULT_HEADERS" }, { - "id": 377, + "id": 378, "name": "heartbeatIntervalMs", "kind": 1024, "kindString": "Property", @@ -58217,7 +59506,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 76, + "line": 73, "character": 2 } ], @@ -58228,7 +59517,7 @@ "defaultValue": "30000" }, { - "id": 378, + "id": 379, "name": "heartbeatTimer", "kind": 1024, "kindString": "Property", @@ -58236,7 +59525,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 77, + "line": 74, "character": 2 } ], @@ -58249,16 +59538,16 @@ }, { "type": "reference", - "qualifiedName": "global.NodeJS.Timer", + "qualifiedName": "global.NodeJS.Timeout", "package": "@types/node", - "name": "Timer" + "name": "Timeout" } ] }, "defaultValue": "undefined" }, { - "id": 382, + "id": 383, "name": "logger", "kind": 1024, "kindString": "Property", @@ -58266,7 +59555,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 81, + "line": 78, "character": 2 } ], @@ -58279,7 +59568,7 @@ "defaultValue": "noop" }, { - "id": 371, + "id": 372, "name": "params", "kind": 1024, "kindString": "Property", @@ -58289,27 +59578,27 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 73, + "line": 70, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 372, + "id": 373, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": { - "id": 373, + "id": 374, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 374, + "id": 375, "name": "key", "kind": 32768, "flags": {}, @@ -58329,7 +59618,7 @@ "defaultValue": "{}" }, { - "id": 379, + "id": 380, "name": "pendingHeartbeatRef", "kind": 1024, "kindString": "Property", @@ -58337,7 +59626,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 78, + "line": 75, "character": 2 } ], @@ -58357,7 +59646,7 @@ "defaultValue": "null" }, { - "id": 385, + "id": 386, "name": "reconnectAfterMs", "kind": 1024, "kindString": "Property", @@ -58365,7 +59654,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 84, + "line": 81, "character": 2 } ], @@ -58377,7 +59666,7 @@ } }, { - "id": 381, + "id": 382, "name": "reconnectTimer", "kind": 1024, "kindString": "Property", @@ -58385,7 +59674,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 80, + "line": 77, "character": 2 } ], @@ -58395,7 +59684,7 @@ } }, { - "id": 380, + "id": 381, "name": "ref", "kind": 1024, "kindString": "Property", @@ -58403,7 +59692,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 79, + "line": 76, "character": 2 } ], @@ -58414,7 +59703,7 @@ "defaultValue": "0" }, { - "id": 387, + "id": 388, "name": "sendBuffer", "kind": 1024, "kindString": "Property", @@ -58422,7 +59711,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 86, + "line": 83, "character": 2 } ], @@ -58438,7 +59727,7 @@ "defaultValue": "[]" }, { - "id": 388, + "id": 389, "name": "serializer", "kind": 1024, "kindString": "Property", @@ -58446,7 +59735,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 87, + "line": 84, "character": 2 } ], @@ -58457,7 +59746,7 @@ "defaultValue": "..." }, { - "id": 389, + "id": 390, "name": "stateChangeCallbacks", "kind": 1024, "kindString": "Property", @@ -58465,21 +59754,21 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 88, + "line": 85, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 390, + "id": 391, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 392, + "id": 393, "name": "close", "kind": 1024, "kindString": "Property", @@ -58487,30 +59776,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 90, - "character": 4 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - } - }, - { - "id": 393, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/RealtimeClient.ts", - "line": 91, + "line": 87, "character": 4 } ], @@ -58526,14 +59792,14 @@ }, { "id": 394, - "name": "message", + "name": "error", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 92, + "line": 88, "character": 4 } ], @@ -58548,8 +59814,8 @@ } }, { - "id": 391, - "name": "open", + "id": 395, + "name": "message", "kind": 1024, "kindString": "Property", "flags": {}, @@ -58569,6 +59835,29 @@ "name": "Function" } } + }, + { + "id": 392, + "name": "open", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/RealtimeClient.ts", + "line": 86, + "character": 4 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "qualifiedName": "Function", + "package": "typescript", + "name": "Function" + } + } } ], "groups": [ @@ -58576,10 +59865,10 @@ "title": "Properties", "kind": 1024, "children": [ - 392, 393, 394, - 391 + 395, + 392 ] } ] @@ -58588,7 +59877,7 @@ "defaultValue": "..." }, { - "id": 375, + "id": 376, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -58596,7 +59885,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 74, + "line": 71, "character": 2 } ], @@ -58607,7 +59896,7 @@ "defaultValue": "DEFAULT_TIMEOUT" }, { - "id": 376, + "id": 377, "name": "transport", "kind": 1024, "kindString": "Property", @@ -58615,18 +59904,26 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 75, + "line": 72, "character": 2 } ], "type": { - "type": "reference", - "name": "WebSocketLikeConstructor" - }, - "defaultValue": "WebSocketVariant" + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "name": "WebSocketLikeConstructor" + } + ] + } }, { - "id": 422, + "id": 426, "name": "channel", "kind": 2048, "kindString": "Method", @@ -58634,20 +59931,20 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 261, + "line": 274, "character": 2 } ], "signatures": [ { - "id": 423, + "id": 427, "name": "channel", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 424, + "id": 428, "name": "topic", "kind": 32768, "kindString": "Parameter", @@ -58658,7 +59955,7 @@ } }, { - "id": 425, + "id": 429, "name": "params", "kind": 32768, "kindString": "Parameter", @@ -58920,7 +60217,7 @@ ] }, { - "id": 400, + "id": 404, "name": "connect", "kind": 2048, "kindString": "Method", @@ -58928,13 +60225,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 153, + "line": 157, "character": 2 } ], "signatures": [ { - "id": 401, + "id": 405, "name": "connect", "kind": 4096, "kindString": "Call signature", @@ -58950,7 +60247,7 @@ ] }, { - "id": 418, + "id": 422, "name": "connectionState", "kind": 2048, "kindString": "Method", @@ -58958,13 +60255,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 241, + "line": 254, "character": 2 } ], "signatures": [ { - "id": 419, + "id": 423, "name": "connectionState", "kind": 4096, "kindString": "Call signature", @@ -58980,7 +60277,7 @@ ] }, { - "id": 402, + "id": 406, "name": "disconnect", "kind": 2048, "kindString": "Method", @@ -58988,13 +60285,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 182, + "line": 195, "character": 2 } ], "signatures": [ { - "id": 403, + "id": 407, "name": "disconnect", "kind": 4096, "kindString": "Call signature", @@ -59004,7 +60301,7 @@ }, "parameters": [ { - "id": 404, + "id": 408, "name": "code", "kind": 32768, "kindString": "Parameter", @@ -59020,7 +60317,7 @@ } }, { - "id": 405, + "id": 409, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -59044,7 +60341,7 @@ ] }, { - "id": 406, + "id": 410, "name": "getChannels", "kind": 2048, "kindString": "Method", @@ -59052,13 +60349,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 200, + "line": 213, "character": 2 } ], "signatures": [ { - "id": 407, + "id": 411, "name": "getChannels", "kind": 4096, "kindString": "Call signature", @@ -59078,7 +60375,7 @@ ] }, { - "id": 420, + "id": 424, "name": "isConnected", "kind": 2048, "kindString": "Method", @@ -59086,13 +60383,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 257, + "line": 270, "character": 2 } ], "signatures": [ { - "id": 421, + "id": 425, "name": "isConnected", "kind": 4096, "kindString": "Call signature", @@ -59108,7 +60405,7 @@ ] }, { - "id": 413, + "id": 417, "name": "log", "kind": 2048, "kindString": "Method", @@ -59116,13 +60413,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 234, + "line": 247, "character": 2 } ], "signatures": [ { - "id": 414, + "id": 418, "name": "log", "kind": 4096, "kindString": "Call signature", @@ -59133,7 +60430,7 @@ }, "parameters": [ { - "id": 415, + "id": 419, "name": "kind", "kind": 32768, "kindString": "Parameter", @@ -59144,7 +60441,7 @@ } }, { - "id": 416, + "id": 420, "name": "msg", "kind": 32768, "kindString": "Parameter", @@ -59155,7 +60452,7 @@ } }, { - "id": 417, + "id": 421, "name": "data", "kind": 32768, "kindString": "Parameter", @@ -59176,7 +60473,7 @@ ] }, { - "id": 426, + "id": 430, "name": "push", "kind": 2048, "kindString": "Method", @@ -59184,13 +60481,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 275, + "line": 288, "character": 2 } ], "signatures": [ { - "id": 427, + "id": 431, "name": "push", "kind": 4096, "kindString": "Call signature", @@ -59201,17 +60498,17 @@ }, "parameters": [ { - "id": 428, + "id": 432, "name": "data", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 498, + "id": 510, "name": "RealtimeMessage", "dereferenced": { - "id": 498, + "id": 510, "name": "RealtimeMessage", "kind": 4194304, "kindString": "Type alias", @@ -59226,14 +60523,14 @@ "type": { "type": "reflection", "declaration": { - "id": 499, + "id": 511, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 501, + "id": 513, "name": "event", "kind": 1024, "kindString": "Property", @@ -59251,7 +60548,7 @@ } }, { - "id": 504, + "id": 516, "name": "join_ref", "kind": 1024, "kindString": "Property", @@ -59271,7 +60568,7 @@ } }, { - "id": 502, + "id": 514, "name": "payload", "kind": 1024, "kindString": "Property", @@ -59289,7 +60586,7 @@ } }, { - "id": 503, + "id": 515, "name": "ref", "kind": 1024, "kindString": "Property", @@ -59307,7 +60604,7 @@ } }, { - "id": 500, + "id": 512, "name": "topic", "kind": 1024, "kindString": "Property", @@ -59330,11 +60627,11 @@ "title": "Properties", "kind": 1024, "children": [ - 501, - 504, - 502, - 503, - 500 + 513, + 516, + 514, + 515, + 512 ] } ], @@ -59359,7 +60656,7 @@ ] }, { - "id": 411, + "id": 415, "name": "removeAllChannels", "kind": 2048, "kindString": "Method", @@ -59367,13 +60664,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 221, + "line": 234, "character": 8 } ], "signatures": [ { - "id": 412, + "id": 416, "name": "removeAllChannels", "kind": 4096, "kindString": "Call signature", @@ -59388,7 +60685,7 @@ "type": "array", "elementType": { "type": "reference", - "id": 575, + "id": 587, "name": "RealtimeRemoveChannelResponse" } } @@ -59401,7 +60698,7 @@ ] }, { - "id": 408, + "id": 412, "name": "removeChannel", "kind": 2048, "kindString": "Method", @@ -59409,13 +60706,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 208, + "line": 221, "character": 8 } ], "signatures": [ { - "id": 409, + "id": 413, "name": "removeChannel", "kind": 4096, "kindString": "Call signature", @@ -59425,7 +60722,7 @@ }, "parameters": [ { - "id": 410, + "id": 414, "name": "channel", "kind": 32768, "kindString": "Parameter", @@ -59506,7 +60803,7 @@ "typeArguments": [ { "type": "reference", - "id": 575, + "id": 587, "name": "RealtimeRemoveChannelResponse" } ], @@ -59518,7 +60815,7 @@ ] }, { - "id": 429, + "id": 433, "name": "setAuth", "kind": 2048, "kindString": "Method", @@ -59526,13 +60823,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 295, + "line": 308, "character": 2 } ], "signatures": [ { - "id": 430, + "id": 434, "name": "setAuth", "kind": 4096, "kindString": "Call signature", @@ -59542,7 +60839,7 @@ }, "parameters": [ { - "id": 431, + "id": 435, "name": "token", "kind": 32768, "kindString": "Parameter", @@ -59587,49 +60884,50 @@ "children": [ 364, 365, - 386, - 384, - 383, 366, - 395, - 367, - 377, - 378, - 382, - 371, - 379, - 385, - 381, - 380, 387, + 385, + 384, + 367, + 396, + 368, + 378, + 379, + 383, + 372, + 380, + 386, + 382, + 381, 388, 389, - 375, - 376 + 390, + 376, + 377 ] }, { "title": "Methods", "kind": 2048, "children": [ - 422, - 400, - 418, - 402, - 406, - 420, - 413, 426, - 411, - 408, - 429 + 404, + 422, + 406, + 410, + 424, + 417, + 430, + 415, + 412, + 433 ] } ], "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 68, + "line": 64, "character": 21 } ] @@ -60547,7 +61845,7 @@ ], "type": { "type": "reference", - "id": 566, + "id": 578, "typeArguments": [ { "type": "reflection", @@ -60562,7 +61860,7 @@ ], "name": "RealtimePresenceState", "dereferenced": { - "id": 566, + "id": 578, "name": "RealtimePresenceState", "kind": 4194304, "kindString": "Type alias", @@ -60576,7 +61874,7 @@ ], "typeParameter": [ { - "id": 574, + "id": 586, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -60584,7 +61882,7 @@ "type": { "type": "reflection", "declaration": { - "id": 570, + "id": 582, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -60597,14 +61895,14 @@ } ], "indexSignature": { - "id": 571, + "id": 583, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 572, + "id": 584, "name": "key", "kind": 32768, "flags": {}, @@ -60624,7 +61922,7 @@ "default": { "type": "reflection", "declaration": { - "id": 573, + "id": 585, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -60643,7 +61941,7 @@ "type": { "type": "reflection", "declaration": { - "id": 567, + "id": 579, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -60656,14 +61954,14 @@ } ], "indexSignature": { - "id": 568, + "id": 580, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 569, + "id": 581, "name": "key", "kind": 32768, "flags": {}, @@ -60680,7 +61978,7 @@ "typeArguments": [ { "type": "reference", - "id": 574, + "id": 586, "name": "T" } ], @@ -60793,7 +62091,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 115, + "line": 112, "character": 2 } ], @@ -60832,10 +62130,10 @@ }, "type": { "type": "reference", - "id": 479, + "id": 491, "name": "RealtimeClientOptions", "dereferenced": { - "id": 479, + "id": 491, "name": "RealtimeClientOptions", "kind": 4194304, "kindString": "Type alias", @@ -60850,14 +62148,14 @@ "type": { "type": "reflection", "declaration": { - "id": 480, + "id": 492, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 486, + "id": 498, "name": "decode", "kind": 1024, "kindString": "Property", @@ -60879,7 +62177,7 @@ } }, { - "id": 485, + "id": 497, "name": "encode", "kind": 1024, "kindString": "Property", @@ -60901,7 +62199,7 @@ } }, { - "id": 497, + "id": 509, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -60921,7 +62219,7 @@ } }, { - "id": 488, + "id": 500, "name": "headers", "kind": 1024, "kindString": "Property", @@ -60938,7 +62236,7 @@ "type": { "type": "reflection", "declaration": { - "id": 489, + "id": 501, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -60951,14 +62249,14 @@ } ], "indexSignature": { - "id": 490, + "id": 502, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 491, + "id": 503, "name": "key", "kind": 32768, "flags": {}, @@ -60977,7 +62275,7 @@ } }, { - "id": 483, + "id": 495, "name": "heartbeatIntervalMs", "kind": 1024, "kindString": "Property", @@ -60997,7 +62295,7 @@ } }, { - "id": 496, + "id": 508, "name": "log_level", "kind": 1024, "kindString": "Property", @@ -61034,7 +62332,7 @@ } }, { - "id": 484, + "id": 496, "name": "logger", "kind": 1024, "kindString": "Property", @@ -61056,7 +62354,7 @@ } }, { - "id": 492, + "id": 504, "name": "params", "kind": 1024, "kindString": "Property", @@ -61073,7 +62371,7 @@ "type": { "type": "reflection", "declaration": { - "id": 493, + "id": 505, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -61086,14 +62384,14 @@ } ], "indexSignature": { - "id": 494, + "id": 506, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 495, + "id": 507, "name": "key", "kind": 32768, "flags": {}, @@ -61112,7 +62410,7 @@ } }, { - "id": 487, + "id": 499, "name": "reconnectAfterMs", "kind": 1024, "kindString": "Property", @@ -61134,7 +62432,7 @@ } }, { - "id": 482, + "id": 494, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -61154,7 +62452,7 @@ } }, { - "id": 481, + "id": 493, "name": "transport", "kind": 1024, "kindString": "Property", @@ -61179,17 +62477,17 @@ "title": "Properties", "kind": 1024, "children": [ - 486, - 485, + 498, 497, - 488, - 483, + 509, + 500, + 495, + 508, 496, - 484, - 492, - 487, - 482, - 481 + 504, + 499, + 494, + 493 ] } ], @@ -61223,7 +62521,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 69, + "line": 65, "character": 2 } ], @@ -61244,6 +62542,34 @@ }, { "id": 365, + "name": "apiKey", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/RealtimeClient.ts", + "line": 66, + "character": 2 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "intrinsic", + "name": "string" + } + ] + }, + "defaultValue": "null" + }, + { + "id": 366, "name": "channels", "kind": 1024, "kindString": "Property", @@ -61251,7 +62577,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 70, + "line": 67, "character": 2 } ], @@ -61266,7 +62592,7 @@ "defaultValue": "[]" }, { - "id": 386, + "id": 387, "name": "conn", "kind": 1024, "kindString": "Property", @@ -61274,7 +62600,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 85, + "line": 82, "character": 2 } ], @@ -61294,7 +62620,7 @@ "defaultValue": "null" }, { - "id": 384, + "id": 385, "name": "decode", "kind": 1024, "kindString": "Property", @@ -61302,7 +62628,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 83, + "line": 80, "character": 2 } ], @@ -61314,7 +62640,7 @@ } }, { - "id": 383, + "id": 384, "name": "encode", "kind": 1024, "kindString": "Property", @@ -61322,7 +62648,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 82, + "line": 79, "character": 2 } ], @@ -61334,7 +62660,7 @@ } }, { - "id": 366, + "id": 367, "name": "endPoint", "kind": 1024, "kindString": "Property", @@ -61342,7 +62668,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 71, + "line": 68, "character": 2 } ], @@ -61353,7 +62679,7 @@ "defaultValue": "''" }, { - "id": 395, + "id": 396, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -61361,28 +62687,28 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 99, + "line": 96, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 396, + "id": 397, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 397, + "id": 398, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 398, + "id": 399, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -61406,7 +62732,73 @@ } }, { - "id": 399, + "id": 400, + "name": "init", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "qualifiedName": "RequestInit", + "package": "typescript", + "name": "RequestInit" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "qualifiedName": "Response", + "package": "typescript", + "name": "Response" + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + }, + { + "id": 401, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 402, + "name": "input", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "qualifiedName": "Request", + "package": "typescript", + "name": "Request" + }, + { + "type": "reference", + "qualifiedName": "URL", + "package": "typescript", + "name": "URL" + } + ] + } + }, + { + "id": 403, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -61441,7 +62833,7 @@ } }, { - "id": 367, + "id": 368, "name": "headers", "kind": 1024, "kindString": "Property", @@ -61451,27 +62843,27 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 72, + "line": 69, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 368, + "id": 369, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": { - "id": 369, + "id": 370, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 370, + "id": 371, "name": "key", "kind": 32768, "flags": {}, @@ -61491,7 +62883,7 @@ "defaultValue": "DEFAULT_HEADERS" }, { - "id": 377, + "id": 378, "name": "heartbeatIntervalMs", "kind": 1024, "kindString": "Property", @@ -61499,7 +62891,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 76, + "line": 73, "character": 2 } ], @@ -61510,7 +62902,7 @@ "defaultValue": "30000" }, { - "id": 378, + "id": 379, "name": "heartbeatTimer", "kind": 1024, "kindString": "Property", @@ -61518,7 +62910,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 77, + "line": 74, "character": 2 } ], @@ -61531,16 +62923,16 @@ }, { "type": "reference", - "qualifiedName": "global.NodeJS.Timer", + "qualifiedName": "global.NodeJS.Timeout", "package": "@types/node", - "name": "Timer" + "name": "Timeout" } ] }, "defaultValue": "undefined" }, { - "id": 382, + "id": 383, "name": "logger", "kind": 1024, "kindString": "Property", @@ -61548,7 +62940,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 81, + "line": 78, "character": 2 } ], @@ -61561,7 +62953,7 @@ "defaultValue": "noop" }, { - "id": 371, + "id": 372, "name": "params", "kind": 1024, "kindString": "Property", @@ -61571,27 +62963,27 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 73, + "line": 70, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 372, + "id": 373, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": { - "id": 373, + "id": 374, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 374, + "id": 375, "name": "key", "kind": 32768, "flags": {}, @@ -61611,7 +63003,7 @@ "defaultValue": "{}" }, { - "id": 379, + "id": 380, "name": "pendingHeartbeatRef", "kind": 1024, "kindString": "Property", @@ -61619,7 +63011,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 78, + "line": 75, "character": 2 } ], @@ -61639,7 +63031,7 @@ "defaultValue": "null" }, { - "id": 385, + "id": 386, "name": "reconnectAfterMs", "kind": 1024, "kindString": "Property", @@ -61647,7 +63039,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 84, + "line": 81, "character": 2 } ], @@ -61659,7 +63051,7 @@ } }, { - "id": 381, + "id": 382, "name": "reconnectTimer", "kind": 1024, "kindString": "Property", @@ -61667,7 +63059,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 80, + "line": 77, "character": 2 } ], @@ -61677,7 +63069,7 @@ } }, { - "id": 380, + "id": 381, "name": "ref", "kind": 1024, "kindString": "Property", @@ -61685,7 +63077,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 79, + "line": 76, "character": 2 } ], @@ -61696,7 +63088,7 @@ "defaultValue": "0" }, { - "id": 387, + "id": 388, "name": "sendBuffer", "kind": 1024, "kindString": "Property", @@ -61704,7 +63096,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 86, + "line": 83, "character": 2 } ], @@ -61720,7 +63112,7 @@ "defaultValue": "[]" }, { - "id": 388, + "id": 389, "name": "serializer", "kind": 1024, "kindString": "Property", @@ -61728,7 +63120,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 87, + "line": 84, "character": 2 } ], @@ -61739,7 +63131,7 @@ "defaultValue": "..." }, { - "id": 389, + "id": 390, "name": "stateChangeCallbacks", "kind": 1024, "kindString": "Property", @@ -61747,21 +63139,21 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 88, + "line": 85, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 390, + "id": 391, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 392, + "id": 393, "name": "close", "kind": 1024, "kindString": "Property", @@ -61769,30 +63161,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 90, - "character": 4 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - } - }, - { - "id": 393, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/RealtimeClient.ts", - "line": 91, + "line": 87, "character": 4 } ], @@ -61808,14 +63177,14 @@ }, { "id": 394, - "name": "message", + "name": "error", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 92, + "line": 88, "character": 4 } ], @@ -61830,8 +63199,8 @@ } }, { - "id": 391, - "name": "open", + "id": 395, + "name": "message", "kind": 1024, "kindString": "Property", "flags": {}, @@ -61851,6 +63220,29 @@ "name": "Function" } } + }, + { + "id": 392, + "name": "open", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/RealtimeClient.ts", + "line": 86, + "character": 4 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "qualifiedName": "Function", + "package": "typescript", + "name": "Function" + } + } } ], "groups": [ @@ -61858,10 +63250,10 @@ "title": "Properties", "kind": 1024, "children": [ - 392, 393, 394, - 391 + 395, + 392 ] } ] @@ -61870,7 +63262,7 @@ "defaultValue": "..." }, { - "id": 375, + "id": 376, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -61878,7 +63270,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 74, + "line": 71, "character": 2 } ], @@ -61889,7 +63281,7 @@ "defaultValue": "DEFAULT_TIMEOUT" }, { - "id": 376, + "id": 377, "name": "transport", "kind": 1024, "kindString": "Property", @@ -61897,18 +63289,26 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 75, + "line": 72, "character": 2 } ], "type": { - "type": "reference", - "name": "WebSocketLikeConstructor" - }, - "defaultValue": "WebSocketVariant" + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "name": "WebSocketLikeConstructor" + } + ] + } }, { - "id": 422, + "id": 426, "name": "channel", "kind": 2048, "kindString": "Method", @@ -61916,20 +63316,20 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 261, + "line": 274, "character": 2 } ], "signatures": [ { - "id": 423, + "id": 427, "name": "channel", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 424, + "id": 428, "name": "topic", "kind": 32768, "kindString": "Parameter", @@ -61940,7 +63340,7 @@ } }, { - "id": 425, + "id": 429, "name": "params", "kind": 32768, "kindString": "Parameter", @@ -62202,7 +63602,7 @@ ] }, { - "id": 400, + "id": 404, "name": "connect", "kind": 2048, "kindString": "Method", @@ -62210,13 +63610,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 153, + "line": 157, "character": 2 } ], "signatures": [ { - "id": 401, + "id": 405, "name": "connect", "kind": 4096, "kindString": "Call signature", @@ -62232,7 +63632,7 @@ ] }, { - "id": 418, + "id": 422, "name": "connectionState", "kind": 2048, "kindString": "Method", @@ -62240,13 +63640,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 241, + "line": 254, "character": 2 } ], "signatures": [ { - "id": 419, + "id": 423, "name": "connectionState", "kind": 4096, "kindString": "Call signature", @@ -62262,7 +63662,7 @@ ] }, { - "id": 402, + "id": 406, "name": "disconnect", "kind": 2048, "kindString": "Method", @@ -62270,13 +63670,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 182, + "line": 195, "character": 2 } ], "signatures": [ { - "id": 403, + "id": 407, "name": "disconnect", "kind": 4096, "kindString": "Call signature", @@ -62286,7 +63686,7 @@ }, "parameters": [ { - "id": 404, + "id": 408, "name": "code", "kind": 32768, "kindString": "Parameter", @@ -62302,7 +63702,7 @@ } }, { - "id": 405, + "id": 409, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -62326,7 +63726,7 @@ ] }, { - "id": 406, + "id": 410, "name": "getChannels", "kind": 2048, "kindString": "Method", @@ -62334,13 +63734,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 200, + "line": 213, "character": 2 } ], "signatures": [ { - "id": 407, + "id": 411, "name": "getChannels", "kind": 4096, "kindString": "Call signature", @@ -62360,7 +63760,7 @@ ] }, { - "id": 420, + "id": 424, "name": "isConnected", "kind": 2048, "kindString": "Method", @@ -62368,13 +63768,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 257, + "line": 270, "character": 2 } ], "signatures": [ { - "id": 421, + "id": 425, "name": "isConnected", "kind": 4096, "kindString": "Call signature", @@ -62390,7 +63790,7 @@ ] }, { - "id": 413, + "id": 417, "name": "log", "kind": 2048, "kindString": "Method", @@ -62398,13 +63798,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 234, + "line": 247, "character": 2 } ], "signatures": [ { - "id": 414, + "id": 418, "name": "log", "kind": 4096, "kindString": "Call signature", @@ -62415,7 +63815,7 @@ }, "parameters": [ { - "id": 415, + "id": 419, "name": "kind", "kind": 32768, "kindString": "Parameter", @@ -62426,7 +63826,7 @@ } }, { - "id": 416, + "id": 420, "name": "msg", "kind": 32768, "kindString": "Parameter", @@ -62437,7 +63837,7 @@ } }, { - "id": 417, + "id": 421, "name": "data", "kind": 32768, "kindString": "Parameter", @@ -62458,7 +63858,7 @@ ] }, { - "id": 426, + "id": 430, "name": "push", "kind": 2048, "kindString": "Method", @@ -62466,13 +63866,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 275, + "line": 288, "character": 2 } ], "signatures": [ { - "id": 427, + "id": 431, "name": "push", "kind": 4096, "kindString": "Call signature", @@ -62483,17 +63883,17 @@ }, "parameters": [ { - "id": 428, + "id": 432, "name": "data", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 498, + "id": 510, "name": "RealtimeMessage", "dereferenced": { - "id": 498, + "id": 510, "name": "RealtimeMessage", "kind": 4194304, "kindString": "Type alias", @@ -62508,14 +63908,14 @@ "type": { "type": "reflection", "declaration": { - "id": 499, + "id": 511, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 501, + "id": 513, "name": "event", "kind": 1024, "kindString": "Property", @@ -62533,7 +63933,7 @@ } }, { - "id": 504, + "id": 516, "name": "join_ref", "kind": 1024, "kindString": "Property", @@ -62553,7 +63953,7 @@ } }, { - "id": 502, + "id": 514, "name": "payload", "kind": 1024, "kindString": "Property", @@ -62571,7 +63971,7 @@ } }, { - "id": 503, + "id": 515, "name": "ref", "kind": 1024, "kindString": "Property", @@ -62589,7 +63989,7 @@ } }, { - "id": 500, + "id": 512, "name": "topic", "kind": 1024, "kindString": "Property", @@ -62612,11 +64012,11 @@ "title": "Properties", "kind": 1024, "children": [ - 501, - 504, - 502, - 503, - 500 + 513, + 516, + 514, + 515, + 512 ] } ], @@ -62641,7 +64041,7 @@ ] }, { - "id": 411, + "id": 415, "name": "removeAllChannels", "kind": 2048, "kindString": "Method", @@ -62649,13 +64049,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 221, + "line": 234, "character": 8 } ], "signatures": [ { - "id": 412, + "id": 416, "name": "removeAllChannels", "kind": 4096, "kindString": "Call signature", @@ -62670,7 +64070,7 @@ "type": "array", "elementType": { "type": "reference", - "id": 575, + "id": 587, "name": "RealtimeRemoveChannelResponse" } } @@ -62683,7 +64083,7 @@ ] }, { - "id": 408, + "id": 412, "name": "removeChannel", "kind": 2048, "kindString": "Method", @@ -62691,13 +64091,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 208, + "line": 221, "character": 8 } ], "signatures": [ { - "id": 409, + "id": 413, "name": "removeChannel", "kind": 4096, "kindString": "Call signature", @@ -62707,7 +64107,7 @@ }, "parameters": [ { - "id": 410, + "id": 414, "name": "channel", "kind": 32768, "kindString": "Parameter", @@ -62788,7 +64188,7 @@ "typeArguments": [ { "type": "reference", - "id": 575, + "id": 587, "name": "RealtimeRemoveChannelResponse" } ], @@ -62800,7 +64200,7 @@ ] }, { - "id": 429, + "id": 433, "name": "setAuth", "kind": 2048, "kindString": "Method", @@ -62808,13 +64208,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 295, + "line": 308, "character": 2 } ], "signatures": [ { - "id": 430, + "id": 434, "name": "setAuth", "kind": 4096, "kindString": "Call signature", @@ -62824,7 +64224,7 @@ }, "parameters": [ { - "id": 431, + "id": 435, "name": "token", "kind": 32768, "kindString": "Parameter", @@ -62869,49 +64269,50 @@ "children": [ 364, 365, - 386, - 384, - 383, 366, - 395, - 367, - 377, - 378, - 382, - 371, - 379, - 385, - 381, - 380, 387, + 385, + 384, + 367, + 396, + 368, + 378, + 379, + 383, + 372, + 380, + 386, + 382, + 381, 388, 389, - 375, - 376 + 390, + 376, + 377 ] }, { "title": "Methods", "kind": 2048, "children": [ - 422, - 400, - 418, - 402, - 406, - 420, - 413, 426, - 411, - 408, - 429 + 404, + 422, + 406, + 410, + 424, + 417, + 430, + 415, + 412, + 433 ] } ], "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 68, + "line": 64, "character": 21 } ] @@ -63341,7 +64742,7 @@ "flags": {}, "type": { "type": "reference", - "id": 546, + "id": 558, "typeArguments": [ { "type": "reference", @@ -63505,7 +64906,7 @@ "flags": {}, "type": { "type": "reference", - "id": 556, + "id": 568, "typeArguments": [ { "type": "reference", @@ -63601,7 +65002,7 @@ "flags": {}, "type": { "type": "reference", - "id": 505, + "id": 517, "typeArguments": [ { "type": "literal", @@ -63610,7 +65011,7 @@ ], "name": "RealtimePostgresChangesFilter", "dereferenced": { - "id": 505, + "id": 517, "name": "RealtimePostgresChangesFilter", "kind": 4194304, "kindString": "Type alias", @@ -63624,7 +65025,7 @@ ], "typeParameter": [ { - "id": 511, + "id": 523, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -63636,7 +65037,7 @@ [ { "type": "reference", - "id": 580, + "id": 592, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT" }, "" @@ -63648,14 +65049,14 @@ "type": { "type": "reflection", "declaration": { - "id": 506, + "id": 518, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 507, + "id": 519, "name": "event", "kind": 1024, "kindString": "Property", @@ -63672,13 +65073,13 @@ ], "type": { "type": "reference", - "id": 511, + "id": 523, "name": "T", "dereferenced": {} } }, { - "id": 510, + "id": 522, "name": "filter", "kind": 1024, "kindString": "Property", @@ -63701,7 +65102,7 @@ } }, { - "id": 508, + "id": 520, "name": "schema", "kind": 1024, "kindString": "Property", @@ -63722,7 +65123,7 @@ } }, { - "id": 509, + "id": 521, "name": "table", "kind": 1024, "kindString": "Property", @@ -63750,10 +65151,10 @@ "title": "Properties", "kind": 1024, "children": [ - 507, - 510, - 508, - 509 + 519, + 522, + 520, + 521 ] } ], @@ -63799,7 +65200,7 @@ "flags": {}, "type": { "type": "reference", - "id": 512, + "id": 524, "typeArguments": [ { "type": "reference", @@ -63895,7 +65296,7 @@ "flags": {}, "type": { "type": "reference", - "id": 505, + "id": 517, "typeArguments": [ { "type": "literal", @@ -63904,7 +65305,7 @@ ], "name": "RealtimePostgresChangesFilter", "dereferenced": { - "id": 505, + "id": 517, "name": "RealtimePostgresChangesFilter", "kind": 4194304, "kindString": "Type alias", @@ -63918,7 +65319,7 @@ ], "typeParameter": [ { - "id": 511, + "id": 523, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -63930,7 +65331,7 @@ [ { "type": "reference", - "id": 580, + "id": 592, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT" }, "" @@ -63942,14 +65343,14 @@ "type": { "type": "reflection", "declaration": { - "id": 506, + "id": 518, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 507, + "id": 519, "name": "event", "kind": 1024, "kindString": "Property", @@ -63966,13 +65367,13 @@ ], "type": { "type": "reference", - "id": 511, + "id": 523, "name": "T", "dereferenced": {} } }, { - "id": 510, + "id": 522, "name": "filter", "kind": 1024, "kindString": "Property", @@ -63995,7 +65396,7 @@ } }, { - "id": 508, + "id": 520, "name": "schema", "kind": 1024, "kindString": "Property", @@ -64016,7 +65417,7 @@ } }, { - "id": 509, + "id": 521, "name": "table", "kind": 1024, "kindString": "Property", @@ -64044,10 +65445,10 @@ "title": "Properties", "kind": 1024, "children": [ - 507, - 510, - 508, - 509 + 519, + 522, + 520, + 521 ] } ], @@ -64093,7 +65494,7 @@ "flags": {}, "type": { "type": "reference", - "id": 517, + "id": 529, "typeArguments": [ { "type": "reference", @@ -64189,7 +65590,7 @@ "flags": {}, "type": { "type": "reference", - "id": 505, + "id": 517, "typeArguments": [ { "type": "literal", @@ -64198,7 +65599,7 @@ ], "name": "RealtimePostgresChangesFilter", "dereferenced": { - "id": 505, + "id": 517, "name": "RealtimePostgresChangesFilter", "kind": 4194304, "kindString": "Type alias", @@ -64212,7 +65613,7 @@ ], "typeParameter": [ { - "id": 511, + "id": 523, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -64224,7 +65625,7 @@ [ { "type": "reference", - "id": 580, + "id": 592, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT" }, "" @@ -64236,14 +65637,14 @@ "type": { "type": "reflection", "declaration": { - "id": 506, + "id": 518, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 507, + "id": 519, "name": "event", "kind": 1024, "kindString": "Property", @@ -64260,13 +65661,13 @@ ], "type": { "type": "reference", - "id": 511, + "id": 523, "name": "T", "dereferenced": {} } }, { - "id": 510, + "id": 522, "name": "filter", "kind": 1024, "kindString": "Property", @@ -64289,7 +65690,7 @@ } }, { - "id": 508, + "id": 520, "name": "schema", "kind": 1024, "kindString": "Property", @@ -64310,7 +65711,7 @@ } }, { - "id": 509, + "id": 521, "name": "table", "kind": 1024, "kindString": "Property", @@ -64338,10 +65739,10 @@ "title": "Properties", "kind": 1024, "children": [ - 507, - 510, - 508, - 509 + 519, + 522, + 520, + 521 ] } ], @@ -64387,7 +65788,7 @@ "flags": {}, "type": { "type": "reference", - "id": 527, + "id": 539, "typeArguments": [ { "type": "reference", @@ -64483,7 +65884,7 @@ "flags": {}, "type": { "type": "reference", - "id": 505, + "id": 517, "typeArguments": [ { "type": "literal", @@ -64492,7 +65893,7 @@ ], "name": "RealtimePostgresChangesFilter", "dereferenced": { - "id": 505, + "id": 517, "name": "RealtimePostgresChangesFilter", "kind": 4194304, "kindString": "Type alias", @@ -64506,7 +65907,7 @@ ], "typeParameter": [ { - "id": 511, + "id": 523, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -64518,7 +65919,7 @@ [ { "type": "reference", - "id": 580, + "id": 592, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT" }, "" @@ -64530,14 +65931,14 @@ "type": { "type": "reflection", "declaration": { - "id": 506, + "id": 518, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 507, + "id": 519, "name": "event", "kind": 1024, "kindString": "Property", @@ -64554,13 +65955,13 @@ ], "type": { "type": "reference", - "id": 511, + "id": 523, "name": "T", "dereferenced": {} } }, { - "id": 510, + "id": 522, "name": "filter", "kind": 1024, "kindString": "Property", @@ -64583,7 +65984,7 @@ } }, { - "id": 508, + "id": 520, "name": "schema", "kind": 1024, "kindString": "Property", @@ -64604,7 +66005,7 @@ } }, { - "id": 509, + "id": 521, "name": "table", "kind": 1024, "kindString": "Property", @@ -64632,10 +66033,10 @@ "title": "Properties", "kind": 1024, "children": [ - 507, - 510, - 508, - 509 + 519, + 522, + 520, + 521 ] } ], @@ -64681,7 +66082,7 @@ "flags": {}, "type": { "type": "reference", - "id": 536, + "id": 548, "typeArguments": [ { "type": "reference", @@ -65218,7 +66619,7 @@ ], "type": { "type": "reference", - "id": 566, + "id": 578, "typeArguments": [ { "type": "reference", @@ -65973,7 +67374,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 115, + "line": 112, "character": 2 } ], @@ -66012,10 +67413,10 @@ }, "type": { "type": "reference", - "id": 479, + "id": 491, "name": "RealtimeClientOptions", "dereferenced": { - "id": 479, + "id": 491, "name": "RealtimeClientOptions", "kind": 4194304, "kindString": "Type alias", @@ -66030,14 +67431,14 @@ "type": { "type": "reflection", "declaration": { - "id": 480, + "id": 492, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 486, + "id": 498, "name": "decode", "kind": 1024, "kindString": "Property", @@ -66059,7 +67460,7 @@ } }, { - "id": 485, + "id": 497, "name": "encode", "kind": 1024, "kindString": "Property", @@ -66081,7 +67482,7 @@ } }, { - "id": 497, + "id": 509, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -66101,7 +67502,7 @@ } }, { - "id": 488, + "id": 500, "name": "headers", "kind": 1024, "kindString": "Property", @@ -66118,7 +67519,7 @@ "type": { "type": "reflection", "declaration": { - "id": 489, + "id": 501, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -66131,14 +67532,14 @@ } ], "indexSignature": { - "id": 490, + "id": 502, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 491, + "id": 503, "name": "key", "kind": 32768, "flags": {}, @@ -66157,7 +67558,7 @@ } }, { - "id": 483, + "id": 495, "name": "heartbeatIntervalMs", "kind": 1024, "kindString": "Property", @@ -66177,7 +67578,7 @@ } }, { - "id": 496, + "id": 508, "name": "log_level", "kind": 1024, "kindString": "Property", @@ -66214,7 +67615,7 @@ } }, { - "id": 484, + "id": 496, "name": "logger", "kind": 1024, "kindString": "Property", @@ -66236,7 +67637,7 @@ } }, { - "id": 492, + "id": 504, "name": "params", "kind": 1024, "kindString": "Property", @@ -66253,7 +67654,7 @@ "type": { "type": "reflection", "declaration": { - "id": 493, + "id": 505, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -66266,14 +67667,14 @@ } ], "indexSignature": { - "id": 494, + "id": 506, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 495, + "id": 507, "name": "key", "kind": 32768, "flags": {}, @@ -66292,7 +67693,7 @@ } }, { - "id": 487, + "id": 499, "name": "reconnectAfterMs", "kind": 1024, "kindString": "Property", @@ -66314,7 +67715,7 @@ } }, { - "id": 482, + "id": 494, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -66334,7 +67735,7 @@ } }, { - "id": 481, + "id": 493, "name": "transport", "kind": 1024, "kindString": "Property", @@ -66359,17 +67760,17 @@ "title": "Properties", "kind": 1024, "children": [ - 486, - 485, + 498, 497, - 488, - 483, + 509, + 500, + 495, + 508, 496, - 484, - 492, - 487, - 482, - 481 + 504, + 499, + 494, + 493 ] } ], @@ -66403,7 +67804,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 69, + "line": 65, "character": 2 } ], @@ -66424,6 +67825,34 @@ }, { "id": 365, + "name": "apiKey", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/RealtimeClient.ts", + "line": 66, + "character": 2 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "intrinsic", + "name": "string" + } + ] + }, + "defaultValue": "null" + }, + { + "id": 366, "name": "channels", "kind": 1024, "kindString": "Property", @@ -66431,7 +67860,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 70, + "line": 67, "character": 2 } ], @@ -66446,7 +67875,7 @@ "defaultValue": "[]" }, { - "id": 386, + "id": 387, "name": "conn", "kind": 1024, "kindString": "Property", @@ -66454,7 +67883,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 85, + "line": 82, "character": 2 } ], @@ -66474,7 +67903,7 @@ "defaultValue": "null" }, { - "id": 384, + "id": 385, "name": "decode", "kind": 1024, "kindString": "Property", @@ -66482,7 +67911,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 83, + "line": 80, "character": 2 } ], @@ -66494,7 +67923,7 @@ } }, { - "id": 383, + "id": 384, "name": "encode", "kind": 1024, "kindString": "Property", @@ -66502,7 +67931,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 82, + "line": 79, "character": 2 } ], @@ -66514,7 +67943,7 @@ } }, { - "id": 366, + "id": 367, "name": "endPoint", "kind": 1024, "kindString": "Property", @@ -66522,7 +67951,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 71, + "line": 68, "character": 2 } ], @@ -66533,7 +67962,7 @@ "defaultValue": "''" }, { - "id": 395, + "id": 396, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -66541,28 +67970,28 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 99, + "line": 96, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 396, + "id": 397, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 397, + "id": 398, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 398, + "id": 399, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -66586,7 +68015,73 @@ } }, { - "id": 399, + "id": 400, + "name": "init", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "qualifiedName": "RequestInit", + "package": "typescript", + "name": "RequestInit" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "qualifiedName": "Response", + "package": "typescript", + "name": "Response" + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + }, + { + "id": 401, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 402, + "name": "input", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "qualifiedName": "Request", + "package": "typescript", + "name": "Request" + }, + { + "type": "reference", + "qualifiedName": "URL", + "package": "typescript", + "name": "URL" + } + ] + } + }, + { + "id": 403, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -66621,7 +68116,7 @@ } }, { - "id": 367, + "id": 368, "name": "headers", "kind": 1024, "kindString": "Property", @@ -66631,27 +68126,27 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 72, + "line": 69, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 368, + "id": 369, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": { - "id": 369, + "id": 370, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 370, + "id": 371, "name": "key", "kind": 32768, "flags": {}, @@ -66671,7 +68166,7 @@ "defaultValue": "DEFAULT_HEADERS" }, { - "id": 377, + "id": 378, "name": "heartbeatIntervalMs", "kind": 1024, "kindString": "Property", @@ -66679,7 +68174,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 76, + "line": 73, "character": 2 } ], @@ -66690,7 +68185,7 @@ "defaultValue": "30000" }, { - "id": 378, + "id": 379, "name": "heartbeatTimer", "kind": 1024, "kindString": "Property", @@ -66698,7 +68193,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 77, + "line": 74, "character": 2 } ], @@ -66711,16 +68206,16 @@ }, { "type": "reference", - "qualifiedName": "global.NodeJS.Timer", + "qualifiedName": "global.NodeJS.Timeout", "package": "@types/node", - "name": "Timer" + "name": "Timeout" } ] }, "defaultValue": "undefined" }, { - "id": 382, + "id": 383, "name": "logger", "kind": 1024, "kindString": "Property", @@ -66728,7 +68223,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 81, + "line": 78, "character": 2 } ], @@ -66741,7 +68236,7 @@ "defaultValue": "noop" }, { - "id": 371, + "id": 372, "name": "params", "kind": 1024, "kindString": "Property", @@ -66751,27 +68246,27 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 73, + "line": 70, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 372, + "id": 373, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": { - "id": 373, + "id": 374, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 374, + "id": 375, "name": "key", "kind": 32768, "flags": {}, @@ -66791,7 +68286,7 @@ "defaultValue": "{}" }, { - "id": 379, + "id": 380, "name": "pendingHeartbeatRef", "kind": 1024, "kindString": "Property", @@ -66799,7 +68294,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 78, + "line": 75, "character": 2 } ], @@ -66819,7 +68314,7 @@ "defaultValue": "null" }, { - "id": 385, + "id": 386, "name": "reconnectAfterMs", "kind": 1024, "kindString": "Property", @@ -66827,7 +68322,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 84, + "line": 81, "character": 2 } ], @@ -66839,7 +68334,7 @@ } }, { - "id": 381, + "id": 382, "name": "reconnectTimer", "kind": 1024, "kindString": "Property", @@ -66847,7 +68342,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 80, + "line": 77, "character": 2 } ], @@ -66857,7 +68352,7 @@ } }, { - "id": 380, + "id": 381, "name": "ref", "kind": 1024, "kindString": "Property", @@ -66865,7 +68360,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 79, + "line": 76, "character": 2 } ], @@ -66876,7 +68371,7 @@ "defaultValue": "0" }, { - "id": 387, + "id": 388, "name": "sendBuffer", "kind": 1024, "kindString": "Property", @@ -66884,7 +68379,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 86, + "line": 83, "character": 2 } ], @@ -66900,7 +68395,7 @@ "defaultValue": "[]" }, { - "id": 388, + "id": 389, "name": "serializer", "kind": 1024, "kindString": "Property", @@ -66908,7 +68403,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 87, + "line": 84, "character": 2 } ], @@ -66919,7 +68414,7 @@ "defaultValue": "..." }, { - "id": 389, + "id": 390, "name": "stateChangeCallbacks", "kind": 1024, "kindString": "Property", @@ -66927,21 +68422,21 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 88, + "line": 85, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 390, + "id": 391, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 392, + "id": 393, "name": "close", "kind": 1024, "kindString": "Property", @@ -66949,30 +68444,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 90, - "character": 4 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - } - }, - { - "id": 393, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/RealtimeClient.ts", - "line": 91, + "line": 87, "character": 4 } ], @@ -66988,14 +68460,14 @@ }, { "id": 394, - "name": "message", + "name": "error", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 92, + "line": 88, "character": 4 } ], @@ -67010,8 +68482,8 @@ } }, { - "id": 391, - "name": "open", + "id": 395, + "name": "message", "kind": 1024, "kindString": "Property", "flags": {}, @@ -67031,6 +68503,29 @@ "name": "Function" } } + }, + { + "id": 392, + "name": "open", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/RealtimeClient.ts", + "line": 86, + "character": 4 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "qualifiedName": "Function", + "package": "typescript", + "name": "Function" + } + } } ], "groups": [ @@ -67038,10 +68533,10 @@ "title": "Properties", "kind": 1024, "children": [ - 392, 393, 394, - 391 + 395, + 392 ] } ] @@ -67050,7 +68545,7 @@ "defaultValue": "..." }, { - "id": 375, + "id": 376, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -67058,7 +68553,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 74, + "line": 71, "character": 2 } ], @@ -67069,7 +68564,7 @@ "defaultValue": "DEFAULT_TIMEOUT" }, { - "id": 376, + "id": 377, "name": "transport", "kind": 1024, "kindString": "Property", @@ -67077,18 +68572,26 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 75, + "line": 72, "character": 2 } ], "type": { - "type": "reference", - "name": "WebSocketLikeConstructor" - }, - "defaultValue": "WebSocketVariant" + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "name": "WebSocketLikeConstructor" + } + ] + } }, { - "id": 422, + "id": 426, "name": "channel", "kind": 2048, "kindString": "Method", @@ -67096,20 +68599,20 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 261, + "line": 274, "character": 2 } ], "signatures": [ { - "id": 423, + "id": 427, "name": "channel", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 424, + "id": 428, "name": "topic", "kind": 32768, "kindString": "Parameter", @@ -67120,7 +68623,7 @@ } }, { - "id": 425, + "id": 429, "name": "params", "kind": 32768, "kindString": "Parameter", @@ -67382,7 +68885,7 @@ ] }, { - "id": 400, + "id": 404, "name": "connect", "kind": 2048, "kindString": "Method", @@ -67390,13 +68893,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 153, + "line": 157, "character": 2 } ], "signatures": [ { - "id": 401, + "id": 405, "name": "connect", "kind": 4096, "kindString": "Call signature", @@ -67412,7 +68915,7 @@ ] }, { - "id": 418, + "id": 422, "name": "connectionState", "kind": 2048, "kindString": "Method", @@ -67420,13 +68923,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 241, + "line": 254, "character": 2 } ], "signatures": [ { - "id": 419, + "id": 423, "name": "connectionState", "kind": 4096, "kindString": "Call signature", @@ -67442,7 +68945,7 @@ ] }, { - "id": 402, + "id": 406, "name": "disconnect", "kind": 2048, "kindString": "Method", @@ -67450,13 +68953,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 182, + "line": 195, "character": 2 } ], "signatures": [ { - "id": 403, + "id": 407, "name": "disconnect", "kind": 4096, "kindString": "Call signature", @@ -67466,7 +68969,7 @@ }, "parameters": [ { - "id": 404, + "id": 408, "name": "code", "kind": 32768, "kindString": "Parameter", @@ -67482,7 +68985,7 @@ } }, { - "id": 405, + "id": 409, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -67506,7 +69009,7 @@ ] }, { - "id": 406, + "id": 410, "name": "getChannels", "kind": 2048, "kindString": "Method", @@ -67514,13 +69017,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 200, + "line": 213, "character": 2 } ], "signatures": [ { - "id": 407, + "id": 411, "name": "getChannels", "kind": 4096, "kindString": "Call signature", @@ -67540,7 +69043,7 @@ ] }, { - "id": 420, + "id": 424, "name": "isConnected", "kind": 2048, "kindString": "Method", @@ -67548,13 +69051,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 257, + "line": 270, "character": 2 } ], "signatures": [ { - "id": 421, + "id": 425, "name": "isConnected", "kind": 4096, "kindString": "Call signature", @@ -67570,7 +69073,7 @@ ] }, { - "id": 413, + "id": 417, "name": "log", "kind": 2048, "kindString": "Method", @@ -67578,13 +69081,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 234, + "line": 247, "character": 2 } ], "signatures": [ { - "id": 414, + "id": 418, "name": "log", "kind": 4096, "kindString": "Call signature", @@ -67595,7 +69098,7 @@ }, "parameters": [ { - "id": 415, + "id": 419, "name": "kind", "kind": 32768, "kindString": "Parameter", @@ -67606,7 +69109,7 @@ } }, { - "id": 416, + "id": 420, "name": "msg", "kind": 32768, "kindString": "Parameter", @@ -67617,7 +69120,7 @@ } }, { - "id": 417, + "id": 421, "name": "data", "kind": 32768, "kindString": "Parameter", @@ -67638,7 +69141,7 @@ ] }, { - "id": 426, + "id": 430, "name": "push", "kind": 2048, "kindString": "Method", @@ -67646,13 +69149,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 275, + "line": 288, "character": 2 } ], "signatures": [ { - "id": 427, + "id": 431, "name": "push", "kind": 4096, "kindString": "Call signature", @@ -67663,17 +69166,17 @@ }, "parameters": [ { - "id": 428, + "id": 432, "name": "data", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 498, + "id": 510, "name": "RealtimeMessage", "dereferenced": { - "id": 498, + "id": 510, "name": "RealtimeMessage", "kind": 4194304, "kindString": "Type alias", @@ -67688,14 +69191,14 @@ "type": { "type": "reflection", "declaration": { - "id": 499, + "id": 511, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 501, + "id": 513, "name": "event", "kind": 1024, "kindString": "Property", @@ -67713,7 +69216,7 @@ } }, { - "id": 504, + "id": 516, "name": "join_ref", "kind": 1024, "kindString": "Property", @@ -67733,7 +69236,7 @@ } }, { - "id": 502, + "id": 514, "name": "payload", "kind": 1024, "kindString": "Property", @@ -67751,7 +69254,7 @@ } }, { - "id": 503, + "id": 515, "name": "ref", "kind": 1024, "kindString": "Property", @@ -67769,7 +69272,7 @@ } }, { - "id": 500, + "id": 512, "name": "topic", "kind": 1024, "kindString": "Property", @@ -67792,11 +69295,11 @@ "title": "Properties", "kind": 1024, "children": [ - 501, - 504, - 502, - 503, - 500 + 513, + 516, + 514, + 515, + 512 ] } ], @@ -67821,7 +69324,7 @@ ] }, { - "id": 411, + "id": 415, "name": "removeAllChannels", "kind": 2048, "kindString": "Method", @@ -67829,13 +69332,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 221, + "line": 234, "character": 8 } ], "signatures": [ { - "id": 412, + "id": 416, "name": "removeAllChannels", "kind": 4096, "kindString": "Call signature", @@ -67850,7 +69353,7 @@ "type": "array", "elementType": { "type": "reference", - "id": 575, + "id": 587, "name": "RealtimeRemoveChannelResponse" } } @@ -67863,7 +69366,7 @@ ] }, { - "id": 408, + "id": 412, "name": "removeChannel", "kind": 2048, "kindString": "Method", @@ -67871,13 +69374,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 208, + "line": 221, "character": 8 } ], "signatures": [ { - "id": 409, + "id": 413, "name": "removeChannel", "kind": 4096, "kindString": "Call signature", @@ -67887,7 +69390,7 @@ }, "parameters": [ { - "id": 410, + "id": 414, "name": "channel", "kind": 32768, "kindString": "Parameter", @@ -68225,49 +69728,50 @@ "children": [ 364, 365, - 386, - 384, - 383, 366, - 395, - 367, - 377, - 378, - 382, - 371, - 379, - 385, - 381, - 380, 387, + 385, + 384, + 367, + 396, + 368, + 378, + 379, + 383, + 372, + 380, + 386, + 382, + 381, 388, 389, - 375, - 376 + 390, + 376, + 377 ] }, { "title": "Methods", "kind": 2048, "children": [ - 422, - 400, - 418, - 402, - 406, - 420, - 413, 426, - 411, - 408, - 429 + 404, + 422, + 406, + 410, + 424, + 417, + 430, + 415, + 412, + 433 ] } ], "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 68, + "line": 64, "character": 21 } ] @@ -68844,7 +70348,7 @@ "type": "reference", "id": 64, "name": "default", - "dereferenced": "[Circular ~.children.5.children.31.signatures.0.parameters.0.type.dereferenced]" + "dereferenced": "[Circular ~.children.5.children.32.signatures.0.parameters.0.type.dereferenced]" } }, { @@ -68997,7 +70501,7 @@ "type": "reference", "id": 64, "name": "default", - "dereferenced": "[Circular ~.children.5.children.31.signatures.0.parameters.0.type.dereferenced]" + "dereferenced": "[Circular ~.children.5.children.32.signatures.0.parameters.0.type.dereferenced]" } }, { @@ -69065,7 +70569,7 @@ ], "type": { "type": "reference", - "id": 566, + "id": 578, "typeArguments": [ { "type": "reflection", @@ -69080,7 +70584,7 @@ ], "name": "RealtimePresenceState", "dereferenced": { - "id": 566, + "id": 578, "name": "RealtimePresenceState", "kind": 4194304, "kindString": "Type alias", @@ -69094,7 +70598,7 @@ ], "typeParameter": [ { - "id": 574, + "id": 586, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -69102,7 +70606,7 @@ "type": { "type": "reflection", "declaration": { - "id": 570, + "id": 582, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -69115,14 +70619,14 @@ } ], "indexSignature": { - "id": 571, + "id": 583, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 572, + "id": 584, "name": "key", "kind": 32768, "flags": {}, @@ -69142,7 +70646,7 @@ "default": { "type": "reflection", "declaration": { - "id": 573, + "id": 585, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -69161,7 +70665,7 @@ "type": { "type": "reflection", "declaration": { - "id": 567, + "id": 579, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -69174,14 +70678,14 @@ } ], "indexSignature": { - "id": 568, + "id": 580, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 569, + "id": 581, "name": "key", "kind": 32768, "flags": {}, @@ -69198,7 +70702,7 @@ "typeArguments": [ { "type": "reference", - "id": 574, + "id": 586, "name": "T" } ], @@ -69316,49 +70820,50 @@ "children": [ 364, 365, - 386, - 384, - 383, 366, - 395, - 367, - 377, - 378, - 382, - 371, - 379, - 385, - 381, - 380, 387, + 385, + 384, + 367, + 396, + 368, + 378, + 379, + 383, + 372, + 380, + 386, + 382, + 381, 388, 389, - 375, - 376 + 390, + 376, + 377 ] }, { "title": "Methods", "kind": 2048, "children": [ - 422, - 400, - 418, - 402, - 406, - 420, - 413, 426, - 411, - 408, - 429 + 404, + 422, + 406, + 410, + 424, + 417, + 430, + 415, + 412, + 433 ] } ], "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 68, + "line": 64, "character": 21 } ] @@ -69788,7 +71293,7 @@ "flags": {}, "type": { "type": "reference", - "id": 546, + "id": 558, "typeArguments": [ { "type": "reference", @@ -69952,7 +71457,7 @@ "flags": {}, "type": { "type": "reference", - "id": 556, + "id": 568, "typeArguments": [ { "type": "reference", @@ -70048,7 +71553,7 @@ "flags": {}, "type": { "type": "reference", - "id": 505, + "id": 517, "typeArguments": [ { "type": "literal", @@ -70057,7 +71562,7 @@ ], "name": "RealtimePostgresChangesFilter", "dereferenced": { - "id": 505, + "id": 517, "name": "RealtimePostgresChangesFilter", "kind": 4194304, "kindString": "Type alias", @@ -70071,7 +71576,7 @@ ], "typeParameter": [ { - "id": 511, + "id": 523, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -70083,7 +71588,7 @@ [ { "type": "reference", - "id": 580, + "id": 592, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT" }, "" @@ -70095,14 +71600,14 @@ "type": { "type": "reflection", "declaration": { - "id": 506, + "id": 518, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 507, + "id": 519, "name": "event", "kind": 1024, "kindString": "Property", @@ -70119,13 +71624,13 @@ ], "type": { "type": "reference", - "id": 511, + "id": 523, "name": "T", "dereferenced": {} } }, { - "id": 510, + "id": 522, "name": "filter", "kind": 1024, "kindString": "Property", @@ -70148,7 +71653,7 @@ } }, { - "id": 508, + "id": 520, "name": "schema", "kind": 1024, "kindString": "Property", @@ -70169,7 +71674,7 @@ } }, { - "id": 509, + "id": 521, "name": "table", "kind": 1024, "kindString": "Property", @@ -70197,10 +71702,10 @@ "title": "Properties", "kind": 1024, "children": [ - 507, - 510, - 508, - 509 + 519, + 522, + 520, + 521 ] } ], @@ -70246,7 +71751,7 @@ "flags": {}, "type": { "type": "reference", - "id": 512, + "id": 524, "typeArguments": [ { "type": "reference", @@ -70342,7 +71847,7 @@ "flags": {}, "type": { "type": "reference", - "id": 505, + "id": 517, "typeArguments": [ { "type": "literal", @@ -70351,7 +71856,7 @@ ], "name": "RealtimePostgresChangesFilter", "dereferenced": { - "id": 505, + "id": 517, "name": "RealtimePostgresChangesFilter", "kind": 4194304, "kindString": "Type alias", @@ -70365,7 +71870,7 @@ ], "typeParameter": [ { - "id": 511, + "id": 523, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -70377,7 +71882,7 @@ [ { "type": "reference", - "id": 580, + "id": 592, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT" }, "" @@ -70389,14 +71894,14 @@ "type": { "type": "reflection", "declaration": { - "id": 506, + "id": 518, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 507, + "id": 519, "name": "event", "kind": 1024, "kindString": "Property", @@ -70413,13 +71918,13 @@ ], "type": { "type": "reference", - "id": 511, + "id": 523, "name": "T", "dereferenced": {} } }, { - "id": 510, + "id": 522, "name": "filter", "kind": 1024, "kindString": "Property", @@ -70442,7 +71947,7 @@ } }, { - "id": 508, + "id": 520, "name": "schema", "kind": 1024, "kindString": "Property", @@ -70463,7 +71968,7 @@ } }, { - "id": 509, + "id": 521, "name": "table", "kind": 1024, "kindString": "Property", @@ -70491,10 +71996,10 @@ "title": "Properties", "kind": 1024, "children": [ - 507, - 510, - 508, - 509 + 519, + 522, + 520, + 521 ] } ], @@ -70540,7 +72045,7 @@ "flags": {}, "type": { "type": "reference", - "id": 517, + "id": 529, "typeArguments": [ { "type": "reference", @@ -70636,7 +72141,7 @@ "flags": {}, "type": { "type": "reference", - "id": 505, + "id": 517, "typeArguments": [ { "type": "literal", @@ -70645,7 +72150,7 @@ ], "name": "RealtimePostgresChangesFilter", "dereferenced": { - "id": 505, + "id": 517, "name": "RealtimePostgresChangesFilter", "kind": 4194304, "kindString": "Type alias", @@ -70659,7 +72164,7 @@ ], "typeParameter": [ { - "id": 511, + "id": 523, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -70671,7 +72176,7 @@ [ { "type": "reference", - "id": 580, + "id": 592, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT" }, "" @@ -70683,14 +72188,14 @@ "type": { "type": "reflection", "declaration": { - "id": 506, + "id": 518, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 507, + "id": 519, "name": "event", "kind": 1024, "kindString": "Property", @@ -70707,13 +72212,13 @@ ], "type": { "type": "reference", - "id": 511, + "id": 523, "name": "T", "dereferenced": {} } }, { - "id": 510, + "id": 522, "name": "filter", "kind": 1024, "kindString": "Property", @@ -70736,7 +72241,7 @@ } }, { - "id": 508, + "id": 520, "name": "schema", "kind": 1024, "kindString": "Property", @@ -70757,7 +72262,7 @@ } }, { - "id": 509, + "id": 521, "name": "table", "kind": 1024, "kindString": "Property", @@ -70785,10 +72290,10 @@ "title": "Properties", "kind": 1024, "children": [ - 507, - 510, - 508, - 509 + 519, + 522, + 520, + 521 ] } ], @@ -70834,7 +72339,7 @@ "flags": {}, "type": { "type": "reference", - "id": 527, + "id": 539, "typeArguments": [ { "type": "reference", @@ -70930,7 +72435,7 @@ "flags": {}, "type": { "type": "reference", - "id": 505, + "id": 517, "typeArguments": [ { "type": "literal", @@ -70939,7 +72444,7 @@ ], "name": "RealtimePostgresChangesFilter", "dereferenced": { - "id": 505, + "id": 517, "name": "RealtimePostgresChangesFilter", "kind": 4194304, "kindString": "Type alias", @@ -70953,7 +72458,7 @@ ], "typeParameter": [ { - "id": 511, + "id": 523, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -70965,7 +72470,7 @@ [ { "type": "reference", - "id": 580, + "id": 592, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT" }, "" @@ -70977,14 +72482,14 @@ "type": { "type": "reflection", "declaration": { - "id": 506, + "id": 518, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 507, + "id": 519, "name": "event", "kind": 1024, "kindString": "Property", @@ -71001,13 +72506,13 @@ ], "type": { "type": "reference", - "id": 511, + "id": 523, "name": "T", "dereferenced": {} } }, { - "id": 510, + "id": 522, "name": "filter", "kind": 1024, "kindString": "Property", @@ -71030,7 +72535,7 @@ } }, { - "id": 508, + "id": 520, "name": "schema", "kind": 1024, "kindString": "Property", @@ -71051,7 +72556,7 @@ } }, { - "id": 509, + "id": 521, "name": "table", "kind": 1024, "kindString": "Property", @@ -71079,10 +72584,10 @@ "title": "Properties", "kind": 1024, "children": [ - 507, - 510, - 508, - 509 + 519, + 522, + 520, + 521 ] } ], @@ -71128,7 +72633,7 @@ "flags": {}, "type": { "type": "reference", - "id": 536, + "id": 548, "typeArguments": [ { "type": "reference", @@ -71665,7 +73170,7 @@ ], "type": { "type": "reference", - "id": 566, + "id": 578, "typeArguments": [ { "type": "reference", @@ -72412,7 +73917,7 @@ "typeArguments": [ { "type": "reference", - "id": 575, + "id": 587, "name": "RealtimeRemoveChannelResponse" } ], @@ -72424,7 +73929,7 @@ ] }, { - "id": 429, + "id": 433, "name": "setAuth", "kind": 2048, "kindString": "Method", @@ -72432,13 +73937,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 295, + "line": 308, "character": 2 } ], "signatures": [ { - "id": 430, + "id": 434, "name": "setAuth", "kind": 4096, "kindString": "Call signature", @@ -72448,7 +73953,7 @@ }, "parameters": [ { - "id": 431, + "id": 435, "name": "token", "kind": 32768, "kindString": "Parameter", @@ -72493,49 +73998,50 @@ "children": [ 364, 365, - 386, - 384, - 383, 366, - 395, - 367, - 377, - 378, - 382, - 371, - 379, - 385, - 381, - 380, 387, + 385, + 384, + 367, + 396, + 368, + 378, + 379, + 383, + 372, + 380, + 386, + 382, + 381, 388, 389, - 375, - 376 + 390, + 376, + 377 ] }, { "title": "Methods", "kind": 2048, "children": [ - 422, - 400, - 418, - 402, - 406, - 420, - 413, 426, - 411, - 408, - 429 + 404, + 422, + 406, + 410, + 424, + 417, + 430, + 415, + 412, + 433 ] } ], "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 68, + "line": 64, "character": 21 } ] @@ -72905,7 +74411,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 115, + "line": 112, "character": 2 } ], @@ -72944,10 +74450,10 @@ }, "type": { "type": "reference", - "id": 479, + "id": 491, "name": "RealtimeClientOptions", "dereferenced": { - "id": 479, + "id": 491, "name": "RealtimeClientOptions", "kind": 4194304, "kindString": "Type alias", @@ -72962,14 +74468,14 @@ "type": { "type": "reflection", "declaration": { - "id": 480, + "id": 492, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 486, + "id": 498, "name": "decode", "kind": 1024, "kindString": "Property", @@ -72991,7 +74497,7 @@ } }, { - "id": 485, + "id": 497, "name": "encode", "kind": 1024, "kindString": "Property", @@ -73013,7 +74519,7 @@ } }, { - "id": 497, + "id": 509, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -73033,7 +74539,7 @@ } }, { - "id": 488, + "id": 500, "name": "headers", "kind": 1024, "kindString": "Property", @@ -73050,7 +74556,7 @@ "type": { "type": "reflection", "declaration": { - "id": 489, + "id": 501, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -73063,14 +74569,14 @@ } ], "indexSignature": { - "id": 490, + "id": 502, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 491, + "id": 503, "name": "key", "kind": 32768, "flags": {}, @@ -73089,7 +74595,7 @@ } }, { - "id": 483, + "id": 495, "name": "heartbeatIntervalMs", "kind": 1024, "kindString": "Property", @@ -73109,7 +74615,7 @@ } }, { - "id": 496, + "id": 508, "name": "log_level", "kind": 1024, "kindString": "Property", @@ -73146,7 +74652,7 @@ } }, { - "id": 484, + "id": 496, "name": "logger", "kind": 1024, "kindString": "Property", @@ -73168,7 +74674,7 @@ } }, { - "id": 492, + "id": 504, "name": "params", "kind": 1024, "kindString": "Property", @@ -73185,7 +74691,7 @@ "type": { "type": "reflection", "declaration": { - "id": 493, + "id": 505, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -73198,14 +74704,14 @@ } ], "indexSignature": { - "id": 494, + "id": 506, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 495, + "id": 507, "name": "key", "kind": 32768, "flags": {}, @@ -73224,7 +74730,7 @@ } }, { - "id": 487, + "id": 499, "name": "reconnectAfterMs", "kind": 1024, "kindString": "Property", @@ -73246,7 +74752,7 @@ } }, { - "id": 482, + "id": 494, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -73266,7 +74772,7 @@ } }, { - "id": 481, + "id": 493, "name": "transport", "kind": 1024, "kindString": "Property", @@ -73291,17 +74797,17 @@ "title": "Properties", "kind": 1024, "children": [ - 486, - 485, + 498, 497, - 488, - 483, + 509, + 500, + 495, + 508, 496, - 484, - 492, - 487, - 482, - 481 + 504, + 499, + 494, + 493 ] } ], @@ -73335,7 +74841,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 69, + "line": 65, "character": 2 } ], @@ -73356,6 +74862,34 @@ }, { "id": 365, + "name": "apiKey", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/RealtimeClient.ts", + "line": 66, + "character": 2 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "intrinsic", + "name": "string" + } + ] + }, + "defaultValue": "null" + }, + { + "id": 366, "name": "channels", "kind": 1024, "kindString": "Property", @@ -73363,7 +74897,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 70, + "line": 67, "character": 2 } ], @@ -73378,7 +74912,7 @@ "defaultValue": "[]" }, { - "id": 386, + "id": 387, "name": "conn", "kind": 1024, "kindString": "Property", @@ -73386,7 +74920,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 85, + "line": 82, "character": 2 } ], @@ -73406,7 +74940,7 @@ "defaultValue": "null" }, { - "id": 384, + "id": 385, "name": "decode", "kind": 1024, "kindString": "Property", @@ -73414,7 +74948,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 83, + "line": 80, "character": 2 } ], @@ -73426,7 +74960,7 @@ } }, { - "id": 383, + "id": 384, "name": "encode", "kind": 1024, "kindString": "Property", @@ -73434,7 +74968,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 82, + "line": 79, "character": 2 } ], @@ -73446,7 +74980,7 @@ } }, { - "id": 366, + "id": 367, "name": "endPoint", "kind": 1024, "kindString": "Property", @@ -73454,7 +74988,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 71, + "line": 68, "character": 2 } ], @@ -73465,7 +74999,7 @@ "defaultValue": "''" }, { - "id": 395, + "id": 396, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -73473,28 +75007,28 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 99, + "line": 96, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 396, + "id": 397, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 397, + "id": 398, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 398, + "id": 399, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -73518,7 +75052,73 @@ } }, { - "id": 399, + "id": 400, + "name": "init", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "qualifiedName": "RequestInit", + "package": "typescript", + "name": "RequestInit" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "qualifiedName": "Response", + "package": "typescript", + "name": "Response" + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + }, + { + "id": 401, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 402, + "name": "input", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "qualifiedName": "Request", + "package": "typescript", + "name": "Request" + }, + { + "type": "reference", + "qualifiedName": "URL", + "package": "typescript", + "name": "URL" + } + ] + } + }, + { + "id": 403, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -73553,7 +75153,7 @@ } }, { - "id": 367, + "id": 368, "name": "headers", "kind": 1024, "kindString": "Property", @@ -73563,27 +75163,27 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 72, + "line": 69, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 368, + "id": 369, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": { - "id": 369, + "id": 370, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 370, + "id": 371, "name": "key", "kind": 32768, "flags": {}, @@ -73603,7 +75203,7 @@ "defaultValue": "DEFAULT_HEADERS" }, { - "id": 377, + "id": 378, "name": "heartbeatIntervalMs", "kind": 1024, "kindString": "Property", @@ -73611,7 +75211,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 76, + "line": 73, "character": 2 } ], @@ -73622,7 +75222,7 @@ "defaultValue": "30000" }, { - "id": 378, + "id": 379, "name": "heartbeatTimer", "kind": 1024, "kindString": "Property", @@ -73630,7 +75230,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 77, + "line": 74, "character": 2 } ], @@ -73643,16 +75243,16 @@ }, { "type": "reference", - "qualifiedName": "global.NodeJS.Timer", + "qualifiedName": "global.NodeJS.Timeout", "package": "@types/node", - "name": "Timer" + "name": "Timeout" } ] }, "defaultValue": "undefined" }, { - "id": 382, + "id": 383, "name": "logger", "kind": 1024, "kindString": "Property", @@ -73660,7 +75260,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 81, + "line": 78, "character": 2 } ], @@ -73673,7 +75273,7 @@ "defaultValue": "noop" }, { - "id": 371, + "id": 372, "name": "params", "kind": 1024, "kindString": "Property", @@ -73683,27 +75283,27 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 73, + "line": 70, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 372, + "id": 373, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": { - "id": 373, + "id": 374, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 374, + "id": 375, "name": "key", "kind": 32768, "flags": {}, @@ -73723,7 +75323,7 @@ "defaultValue": "{}" }, { - "id": 379, + "id": 380, "name": "pendingHeartbeatRef", "kind": 1024, "kindString": "Property", @@ -73731,7 +75331,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 78, + "line": 75, "character": 2 } ], @@ -73751,7 +75351,7 @@ "defaultValue": "null" }, { - "id": 385, + "id": 386, "name": "reconnectAfterMs", "kind": 1024, "kindString": "Property", @@ -73759,7 +75359,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 84, + "line": 81, "character": 2 } ], @@ -73771,7 +75371,7 @@ } }, { - "id": 381, + "id": 382, "name": "reconnectTimer", "kind": 1024, "kindString": "Property", @@ -73779,7 +75379,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 80, + "line": 77, "character": 2 } ], @@ -73789,7 +75389,7 @@ } }, { - "id": 380, + "id": 381, "name": "ref", "kind": 1024, "kindString": "Property", @@ -73797,7 +75397,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 79, + "line": 76, "character": 2 } ], @@ -73808,7 +75408,7 @@ "defaultValue": "0" }, { - "id": 387, + "id": 388, "name": "sendBuffer", "kind": 1024, "kindString": "Property", @@ -73816,7 +75416,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 86, + "line": 83, "character": 2 } ], @@ -73832,7 +75432,7 @@ "defaultValue": "[]" }, { - "id": 388, + "id": 389, "name": "serializer", "kind": 1024, "kindString": "Property", @@ -73840,7 +75440,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 87, + "line": 84, "character": 2 } ], @@ -73851,7 +75451,7 @@ "defaultValue": "..." }, { - "id": 389, + "id": 390, "name": "stateChangeCallbacks", "kind": 1024, "kindString": "Property", @@ -73859,21 +75459,21 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 88, + "line": 85, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 390, + "id": 391, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 392, + "id": 393, "name": "close", "kind": 1024, "kindString": "Property", @@ -73881,30 +75481,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 90, - "character": 4 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - } - }, - { - "id": 393, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/RealtimeClient.ts", - "line": 91, + "line": 87, "character": 4 } ], @@ -73920,14 +75497,14 @@ }, { "id": 394, - "name": "message", + "name": "error", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 92, + "line": 88, "character": 4 } ], @@ -73942,8 +75519,8 @@ } }, { - "id": 391, - "name": "open", + "id": 395, + "name": "message", "kind": 1024, "kindString": "Property", "flags": {}, @@ -73963,6 +75540,29 @@ "name": "Function" } } + }, + { + "id": 392, + "name": "open", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/RealtimeClient.ts", + "line": 86, + "character": 4 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "qualifiedName": "Function", + "package": "typescript", + "name": "Function" + } + } } ], "groups": [ @@ -73970,10 +75570,10 @@ "title": "Properties", "kind": 1024, "children": [ - 392, 393, 394, - 391 + 395, + 392 ] } ] @@ -73982,7 +75582,7 @@ "defaultValue": "..." }, { - "id": 375, + "id": 376, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -73990,7 +75590,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 74, + "line": 71, "character": 2 } ], @@ -74001,7 +75601,7 @@ "defaultValue": "DEFAULT_TIMEOUT" }, { - "id": 376, + "id": 377, "name": "transport", "kind": 1024, "kindString": "Property", @@ -74009,18 +75609,26 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 75, + "line": 72, "character": 2 } ], "type": { - "type": "reference", - "name": "WebSocketLikeConstructor" - }, - "defaultValue": "WebSocketVariant" + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "name": "WebSocketLikeConstructor" + } + ] + } }, { - "id": 422, + "id": 426, "name": "channel", "kind": 2048, "kindString": "Method", @@ -74028,20 +75636,20 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 261, + "line": 274, "character": 2 } ], "signatures": [ { - "id": 423, + "id": 427, "name": "channel", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 424, + "id": 428, "name": "topic", "kind": 32768, "kindString": "Parameter", @@ -74052,7 +75660,7 @@ } }, { - "id": 425, + "id": 429, "name": "params", "kind": 32768, "kindString": "Parameter", @@ -74314,7 +75922,7 @@ ] }, { - "id": 400, + "id": 404, "name": "connect", "kind": 2048, "kindString": "Method", @@ -74322,13 +75930,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 153, + "line": 157, "character": 2 } ], "signatures": [ { - "id": 401, + "id": 405, "name": "connect", "kind": 4096, "kindString": "Call signature", @@ -74344,7 +75952,7 @@ ] }, { - "id": 418, + "id": 422, "name": "connectionState", "kind": 2048, "kindString": "Method", @@ -74352,13 +75960,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 241, + "line": 254, "character": 2 } ], "signatures": [ { - "id": 419, + "id": 423, "name": "connectionState", "kind": 4096, "kindString": "Call signature", @@ -74374,7 +75982,7 @@ ] }, { - "id": 402, + "id": 406, "name": "disconnect", "kind": 2048, "kindString": "Method", @@ -74382,13 +75990,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 182, + "line": 195, "character": 2 } ], "signatures": [ { - "id": 403, + "id": 407, "name": "disconnect", "kind": 4096, "kindString": "Call signature", @@ -74398,7 +76006,7 @@ }, "parameters": [ { - "id": 404, + "id": 408, "name": "code", "kind": 32768, "kindString": "Parameter", @@ -74414,7 +76022,7 @@ } }, { - "id": 405, + "id": 409, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -74438,7 +76046,7 @@ ] }, { - "id": 406, + "id": 410, "name": "getChannels", "kind": 2048, "kindString": "Method", @@ -74446,13 +76054,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 200, + "line": 213, "character": 2 } ], "signatures": [ { - "id": 407, + "id": 411, "name": "getChannels", "kind": 4096, "kindString": "Call signature", @@ -74472,7 +76080,7 @@ ] }, { - "id": 420, + "id": 424, "name": "isConnected", "kind": 2048, "kindString": "Method", @@ -74480,13 +76088,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 257, + "line": 270, "character": 2 } ], "signatures": [ { - "id": 421, + "id": 425, "name": "isConnected", "kind": 4096, "kindString": "Call signature", @@ -74502,7 +76110,7 @@ ] }, { - "id": 413, + "id": 417, "name": "log", "kind": 2048, "kindString": "Method", @@ -74510,13 +76118,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 234, + "line": 247, "character": 2 } ], "signatures": [ { - "id": 414, + "id": 418, "name": "log", "kind": 4096, "kindString": "Call signature", @@ -74527,7 +76135,7 @@ }, "parameters": [ { - "id": 415, + "id": 419, "name": "kind", "kind": 32768, "kindString": "Parameter", @@ -74538,7 +76146,7 @@ } }, { - "id": 416, + "id": 420, "name": "msg", "kind": 32768, "kindString": "Parameter", @@ -74549,7 +76157,7 @@ } }, { - "id": 417, + "id": 421, "name": "data", "kind": 32768, "kindString": "Parameter", @@ -74570,7 +76178,7 @@ ] }, { - "id": 426, + "id": 430, "name": "push", "kind": 2048, "kindString": "Method", @@ -74578,13 +76186,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 275, + "line": 288, "character": 2 } ], "signatures": [ { - "id": 427, + "id": 431, "name": "push", "kind": 4096, "kindString": "Call signature", @@ -74595,17 +76203,17 @@ }, "parameters": [ { - "id": 428, + "id": 432, "name": "data", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 498, + "id": 510, "name": "RealtimeMessage", "dereferenced": { - "id": 498, + "id": 510, "name": "RealtimeMessage", "kind": 4194304, "kindString": "Type alias", @@ -74620,14 +76228,14 @@ "type": { "type": "reflection", "declaration": { - "id": 499, + "id": 511, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 501, + "id": 513, "name": "event", "kind": 1024, "kindString": "Property", @@ -74645,7 +76253,7 @@ } }, { - "id": 504, + "id": 516, "name": "join_ref", "kind": 1024, "kindString": "Property", @@ -74665,7 +76273,7 @@ } }, { - "id": 502, + "id": 514, "name": "payload", "kind": 1024, "kindString": "Property", @@ -74683,7 +76291,7 @@ } }, { - "id": 503, + "id": 515, "name": "ref", "kind": 1024, "kindString": "Property", @@ -74701,7 +76309,7 @@ } }, { - "id": 500, + "id": 512, "name": "topic", "kind": 1024, "kindString": "Property", @@ -74724,11 +76332,11 @@ "title": "Properties", "kind": 1024, "children": [ - 501, - 504, - 502, - 503, - 500 + 513, + 516, + 514, + 515, + 512 ] } ], @@ -74753,7 +76361,7 @@ ] }, { - "id": 411, + "id": 415, "name": "removeAllChannels", "kind": 2048, "kindString": "Method", @@ -74761,13 +76369,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 221, + "line": 234, "character": 8 } ], "signatures": [ { - "id": 412, + "id": 416, "name": "removeAllChannels", "kind": 4096, "kindString": "Call signature", @@ -74782,7 +76390,7 @@ "type": "array", "elementType": { "type": "reference", - "id": 575, + "id": 587, "name": "RealtimeRemoveChannelResponse" } } @@ -74795,7 +76403,7 @@ ] }, { - "id": 408, + "id": 412, "name": "removeChannel", "kind": 2048, "kindString": "Method", @@ -74803,13 +76411,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 208, + "line": 221, "character": 8 } ], "signatures": [ { - "id": 409, + "id": 413, "name": "removeChannel", "kind": 4096, "kindString": "Call signature", @@ -74819,7 +76427,7 @@ }, "parameters": [ { - "id": 410, + "id": 414, "name": "channel", "kind": 32768, "kindString": "Parameter", @@ -74840,7 +76448,7 @@ "typeArguments": [ { "type": "reference", - "id": 575, + "id": 587, "name": "RealtimeRemoveChannelResponse" } ], @@ -74852,7 +76460,7 @@ ] }, { - "id": 429, + "id": 433, "name": "setAuth", "kind": 2048, "kindString": "Method", @@ -74860,13 +76468,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 295, + "line": 308, "character": 2 } ], "signatures": [ { - "id": 430, + "id": 434, "name": "setAuth", "kind": 4096, "kindString": "Call signature", @@ -74876,7 +76484,7 @@ }, "parameters": [ { - "id": 431, + "id": 435, "name": "token", "kind": 32768, "kindString": "Parameter", @@ -74921,49 +76529,50 @@ "children": [ 364, 365, - 386, - 384, - 383, 366, - 395, - 367, - 377, - 378, - 382, - 371, - 379, - 385, - 381, - 380, 387, + 385, + 384, + 367, + 396, + 368, + 378, + 379, + 383, + 372, + 380, + 386, + 382, + 381, 388, 389, - 375, - 376 + 390, + 376, + 377 ] }, { "title": "Methods", "kind": 2048, "children": [ - 422, - 400, - 418, - 402, - 406, - 420, - 413, 426, - 411, - 408, - 429 + 404, + 422, + 406, + 410, + 424, + 417, + 430, + 415, + 412, + 433 ] } ], "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 68, + "line": 64, "character": 21 } ] @@ -75601,7 +77210,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 115, + "line": 112, "character": 2 } ], @@ -75640,10 +77249,10 @@ }, "type": { "type": "reference", - "id": 479, + "id": 491, "name": "RealtimeClientOptions", "dereferenced": { - "id": 479, + "id": 491, "name": "RealtimeClientOptions", "kind": 4194304, "kindString": "Type alias", @@ -75658,14 +77267,14 @@ "type": { "type": "reflection", "declaration": { - "id": 480, + "id": 492, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 486, + "id": 498, "name": "decode", "kind": 1024, "kindString": "Property", @@ -75687,7 +77296,7 @@ } }, { - "id": 485, + "id": 497, "name": "encode", "kind": 1024, "kindString": "Property", @@ -75709,7 +77318,7 @@ } }, { - "id": 497, + "id": 509, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -75729,7 +77338,7 @@ } }, { - "id": 488, + "id": 500, "name": "headers", "kind": 1024, "kindString": "Property", @@ -75746,7 +77355,7 @@ "type": { "type": "reflection", "declaration": { - "id": 489, + "id": 501, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -75759,14 +77368,14 @@ } ], "indexSignature": { - "id": 490, + "id": 502, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 491, + "id": 503, "name": "key", "kind": 32768, "flags": {}, @@ -75785,7 +77394,7 @@ } }, { - "id": 483, + "id": 495, "name": "heartbeatIntervalMs", "kind": 1024, "kindString": "Property", @@ -75805,7 +77414,7 @@ } }, { - "id": 496, + "id": 508, "name": "log_level", "kind": 1024, "kindString": "Property", @@ -75842,7 +77451,7 @@ } }, { - "id": 484, + "id": 496, "name": "logger", "kind": 1024, "kindString": "Property", @@ -75864,7 +77473,7 @@ } }, { - "id": 492, + "id": 504, "name": "params", "kind": 1024, "kindString": "Property", @@ -75881,7 +77490,7 @@ "type": { "type": "reflection", "declaration": { - "id": 493, + "id": 505, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -75894,14 +77503,14 @@ } ], "indexSignature": { - "id": 494, + "id": 506, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 495, + "id": 507, "name": "key", "kind": 32768, "flags": {}, @@ -75920,7 +77529,7 @@ } }, { - "id": 487, + "id": 499, "name": "reconnectAfterMs", "kind": 1024, "kindString": "Property", @@ -75942,7 +77551,7 @@ } }, { - "id": 482, + "id": 494, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -75962,7 +77571,7 @@ } }, { - "id": 481, + "id": 493, "name": "transport", "kind": 1024, "kindString": "Property", @@ -75987,17 +77596,17 @@ "title": "Properties", "kind": 1024, "children": [ - 486, - 485, + 498, 497, - 488, - 483, + 509, + 500, + 495, + 508, 496, - 484, - 492, - 487, - 482, - 481 + 504, + 499, + 494, + 493 ] } ], @@ -76031,7 +77640,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 69, + "line": 65, "character": 2 } ], @@ -76052,6 +77661,34 @@ }, { "id": 365, + "name": "apiKey", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/RealtimeClient.ts", + "line": 66, + "character": 2 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "intrinsic", + "name": "string" + } + ] + }, + "defaultValue": "null" + }, + { + "id": 366, "name": "channels", "kind": 1024, "kindString": "Property", @@ -76059,7 +77696,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 70, + "line": 67, "character": 2 } ], @@ -76074,7 +77711,7 @@ "defaultValue": "[]" }, { - "id": 386, + "id": 387, "name": "conn", "kind": 1024, "kindString": "Property", @@ -76082,7 +77719,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 85, + "line": 82, "character": 2 } ], @@ -76102,7 +77739,7 @@ "defaultValue": "null" }, { - "id": 384, + "id": 385, "name": "decode", "kind": 1024, "kindString": "Property", @@ -76110,7 +77747,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 83, + "line": 80, "character": 2 } ], @@ -76122,7 +77759,7 @@ } }, { - "id": 383, + "id": 384, "name": "encode", "kind": 1024, "kindString": "Property", @@ -76130,7 +77767,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 82, + "line": 79, "character": 2 } ], @@ -76142,7 +77779,7 @@ } }, { - "id": 366, + "id": 367, "name": "endPoint", "kind": 1024, "kindString": "Property", @@ -76150,7 +77787,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 71, + "line": 68, "character": 2 } ], @@ -76161,7 +77798,7 @@ "defaultValue": "''" }, { - "id": 395, + "id": 396, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -76169,28 +77806,28 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 99, + "line": 96, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 396, + "id": 397, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 397, + "id": 398, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 398, + "id": 399, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -76214,7 +77851,73 @@ } }, { - "id": 399, + "id": 400, + "name": "init", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "qualifiedName": "RequestInit", + "package": "typescript", + "name": "RequestInit" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "qualifiedName": "Response", + "package": "typescript", + "name": "Response" + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + }, + { + "id": 401, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 402, + "name": "input", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "qualifiedName": "Request", + "package": "typescript", + "name": "Request" + }, + { + "type": "reference", + "qualifiedName": "URL", + "package": "typescript", + "name": "URL" + } + ] + } + }, + { + "id": 403, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -76249,7 +77952,7 @@ } }, { - "id": 367, + "id": 368, "name": "headers", "kind": 1024, "kindString": "Property", @@ -76259,27 +77962,27 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 72, + "line": 69, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 368, + "id": 369, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": { - "id": 369, + "id": 370, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 370, + "id": 371, "name": "key", "kind": 32768, "flags": {}, @@ -76299,7 +78002,7 @@ "defaultValue": "DEFAULT_HEADERS" }, { - "id": 377, + "id": 378, "name": "heartbeatIntervalMs", "kind": 1024, "kindString": "Property", @@ -76307,7 +78010,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 76, + "line": 73, "character": 2 } ], @@ -76318,7 +78021,7 @@ "defaultValue": "30000" }, { - "id": 378, + "id": 379, "name": "heartbeatTimer", "kind": 1024, "kindString": "Property", @@ -76326,7 +78029,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 77, + "line": 74, "character": 2 } ], @@ -76339,16 +78042,16 @@ }, { "type": "reference", - "qualifiedName": "global.NodeJS.Timer", + "qualifiedName": "global.NodeJS.Timeout", "package": "@types/node", - "name": "Timer" + "name": "Timeout" } ] }, "defaultValue": "undefined" }, { - "id": 382, + "id": 383, "name": "logger", "kind": 1024, "kindString": "Property", @@ -76356,7 +78059,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 81, + "line": 78, "character": 2 } ], @@ -76369,7 +78072,7 @@ "defaultValue": "noop" }, { - "id": 371, + "id": 372, "name": "params", "kind": 1024, "kindString": "Property", @@ -76379,27 +78082,27 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 73, + "line": 70, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 372, + "id": 373, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": { - "id": 373, + "id": 374, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 374, + "id": 375, "name": "key", "kind": 32768, "flags": {}, @@ -76419,7 +78122,7 @@ "defaultValue": "{}" }, { - "id": 379, + "id": 380, "name": "pendingHeartbeatRef", "kind": 1024, "kindString": "Property", @@ -76427,7 +78130,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 78, + "line": 75, "character": 2 } ], @@ -76447,7 +78150,7 @@ "defaultValue": "null" }, { - "id": 385, + "id": 386, "name": "reconnectAfterMs", "kind": 1024, "kindString": "Property", @@ -76455,7 +78158,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 84, + "line": 81, "character": 2 } ], @@ -76467,7 +78170,7 @@ } }, { - "id": 381, + "id": 382, "name": "reconnectTimer", "kind": 1024, "kindString": "Property", @@ -76475,7 +78178,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 80, + "line": 77, "character": 2 } ], @@ -76485,7 +78188,7 @@ } }, { - "id": 380, + "id": 381, "name": "ref", "kind": 1024, "kindString": "Property", @@ -76493,7 +78196,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 79, + "line": 76, "character": 2 } ], @@ -76504,7 +78207,7 @@ "defaultValue": "0" }, { - "id": 387, + "id": 388, "name": "sendBuffer", "kind": 1024, "kindString": "Property", @@ -76512,7 +78215,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 86, + "line": 83, "character": 2 } ], @@ -76528,7 +78231,7 @@ "defaultValue": "[]" }, { - "id": 388, + "id": 389, "name": "serializer", "kind": 1024, "kindString": "Property", @@ -76536,7 +78239,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 87, + "line": 84, "character": 2 } ], @@ -76547,7 +78250,7 @@ "defaultValue": "..." }, { - "id": 389, + "id": 390, "name": "stateChangeCallbacks", "kind": 1024, "kindString": "Property", @@ -76555,21 +78258,21 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 88, + "line": 85, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 390, + "id": 391, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 392, + "id": 393, "name": "close", "kind": 1024, "kindString": "Property", @@ -76577,30 +78280,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 90, - "character": 4 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - } - }, - { - "id": 393, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/RealtimeClient.ts", - "line": 91, + "line": 87, "character": 4 } ], @@ -76616,14 +78296,14 @@ }, { "id": 394, - "name": "message", + "name": "error", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 92, + "line": 88, "character": 4 } ], @@ -76638,8 +78318,8 @@ } }, { - "id": 391, - "name": "open", + "id": 395, + "name": "message", "kind": 1024, "kindString": "Property", "flags": {}, @@ -76659,6 +78339,29 @@ "name": "Function" } } + }, + { + "id": 392, + "name": "open", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/RealtimeClient.ts", + "line": 86, + "character": 4 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "qualifiedName": "Function", + "package": "typescript", + "name": "Function" + } + } } ], "groups": [ @@ -76666,10 +78369,10 @@ "title": "Properties", "kind": 1024, "children": [ - 392, 393, 394, - 391 + 395, + 392 ] } ] @@ -76678,7 +78381,7 @@ "defaultValue": "..." }, { - "id": 375, + "id": 376, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -76686,7 +78389,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 74, + "line": 71, "character": 2 } ], @@ -76697,7 +78400,7 @@ "defaultValue": "DEFAULT_TIMEOUT" }, { - "id": 376, + "id": 377, "name": "transport", "kind": 1024, "kindString": "Property", @@ -76705,18 +78408,26 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 75, + "line": 72, "character": 2 } ], "type": { - "type": "reference", - "name": "WebSocketLikeConstructor" - }, - "defaultValue": "WebSocketVariant" + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "name": "WebSocketLikeConstructor" + } + ] + } }, { - "id": 422, + "id": 426, "name": "channel", "kind": 2048, "kindString": "Method", @@ -76724,20 +78435,20 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 261, + "line": 274, "character": 2 } ], "signatures": [ { - "id": 423, + "id": 427, "name": "channel", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 424, + "id": 428, "name": "topic", "kind": 32768, "kindString": "Parameter", @@ -76748,7 +78459,7 @@ } }, { - "id": 425, + "id": 429, "name": "params", "kind": 32768, "kindString": "Parameter", @@ -77010,7 +78721,7 @@ ] }, { - "id": 400, + "id": 404, "name": "connect", "kind": 2048, "kindString": "Method", @@ -77018,13 +78729,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 153, + "line": 157, "character": 2 } ], "signatures": [ { - "id": 401, + "id": 405, "name": "connect", "kind": 4096, "kindString": "Call signature", @@ -77040,7 +78751,7 @@ ] }, { - "id": 418, + "id": 422, "name": "connectionState", "kind": 2048, "kindString": "Method", @@ -77048,13 +78759,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 241, + "line": 254, "character": 2 } ], "signatures": [ { - "id": 419, + "id": 423, "name": "connectionState", "kind": 4096, "kindString": "Call signature", @@ -77070,7 +78781,7 @@ ] }, { - "id": 402, + "id": 406, "name": "disconnect", "kind": 2048, "kindString": "Method", @@ -77078,13 +78789,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 182, + "line": 195, "character": 2 } ], "signatures": [ { - "id": 403, + "id": 407, "name": "disconnect", "kind": 4096, "kindString": "Call signature", @@ -77094,7 +78805,7 @@ }, "parameters": [ { - "id": 404, + "id": 408, "name": "code", "kind": 32768, "kindString": "Parameter", @@ -77110,7 +78821,7 @@ } }, { - "id": 405, + "id": 409, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -77134,7 +78845,7 @@ ] }, { - "id": 406, + "id": 410, "name": "getChannels", "kind": 2048, "kindString": "Method", @@ -77142,13 +78853,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 200, + "line": 213, "character": 2 } ], "signatures": [ { - "id": 407, + "id": 411, "name": "getChannels", "kind": 4096, "kindString": "Call signature", @@ -77168,7 +78879,7 @@ ] }, { - "id": 420, + "id": 424, "name": "isConnected", "kind": 2048, "kindString": "Method", @@ -77176,13 +78887,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 257, + "line": 270, "character": 2 } ], "signatures": [ { - "id": 421, + "id": 425, "name": "isConnected", "kind": 4096, "kindString": "Call signature", @@ -77198,7 +78909,7 @@ ] }, { - "id": 413, + "id": 417, "name": "log", "kind": 2048, "kindString": "Method", @@ -77206,13 +78917,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 234, + "line": 247, "character": 2 } ], "signatures": [ { - "id": 414, + "id": 418, "name": "log", "kind": 4096, "kindString": "Call signature", @@ -77223,7 +78934,7 @@ }, "parameters": [ { - "id": 415, + "id": 419, "name": "kind", "kind": 32768, "kindString": "Parameter", @@ -77234,7 +78945,7 @@ } }, { - "id": 416, + "id": 420, "name": "msg", "kind": 32768, "kindString": "Parameter", @@ -77245,7 +78956,7 @@ } }, { - "id": 417, + "id": 421, "name": "data", "kind": 32768, "kindString": "Parameter", @@ -77266,7 +78977,7 @@ ] }, { - "id": 426, + "id": 430, "name": "push", "kind": 2048, "kindString": "Method", @@ -77274,13 +78985,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 275, + "line": 288, "character": 2 } ], "signatures": [ { - "id": 427, + "id": 431, "name": "push", "kind": 4096, "kindString": "Call signature", @@ -77291,17 +79002,17 @@ }, "parameters": [ { - "id": 428, + "id": 432, "name": "data", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 498, + "id": 510, "name": "RealtimeMessage", "dereferenced": { - "id": 498, + "id": 510, "name": "RealtimeMessage", "kind": 4194304, "kindString": "Type alias", @@ -77316,14 +79027,14 @@ "type": { "type": "reflection", "declaration": { - "id": 499, + "id": 511, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 501, + "id": 513, "name": "event", "kind": 1024, "kindString": "Property", @@ -77341,7 +79052,7 @@ } }, { - "id": 504, + "id": 516, "name": "join_ref", "kind": 1024, "kindString": "Property", @@ -77361,7 +79072,7 @@ } }, { - "id": 502, + "id": 514, "name": "payload", "kind": 1024, "kindString": "Property", @@ -77379,7 +79090,7 @@ } }, { - "id": 503, + "id": 515, "name": "ref", "kind": 1024, "kindString": "Property", @@ -77397,7 +79108,7 @@ } }, { - "id": 500, + "id": 512, "name": "topic", "kind": 1024, "kindString": "Property", @@ -77420,11 +79131,11 @@ "title": "Properties", "kind": 1024, "children": [ - 501, - 504, - 502, - 503, - 500 + 513, + 516, + 514, + 515, + 512 ] } ], @@ -77449,7 +79160,7 @@ ] }, { - "id": 411, + "id": 415, "name": "removeAllChannels", "kind": 2048, "kindString": "Method", @@ -77457,13 +79168,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 221, + "line": 234, "character": 8 } ], "signatures": [ { - "id": 412, + "id": 416, "name": "removeAllChannels", "kind": 4096, "kindString": "Call signature", @@ -77478,7 +79189,7 @@ "type": "array", "elementType": { "type": "reference", - "id": 575, + "id": 587, "name": "RealtimeRemoveChannelResponse" } } @@ -77491,7 +79202,7 @@ ] }, { - "id": 408, + "id": 412, "name": "removeChannel", "kind": 2048, "kindString": "Method", @@ -77499,13 +79210,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 208, + "line": 221, "character": 8 } ], "signatures": [ { - "id": 409, + "id": 413, "name": "removeChannel", "kind": 4096, "kindString": "Call signature", @@ -77515,7 +79226,7 @@ }, "parameters": [ { - "id": 410, + "id": 414, "name": "channel", "kind": 32768, "kindString": "Parameter", @@ -77536,7 +79247,7 @@ "typeArguments": [ { "type": "reference", - "id": 575, + "id": 587, "name": "RealtimeRemoveChannelResponse" } ], @@ -77548,7 +79259,7 @@ ] }, { - "id": 429, + "id": 433, "name": "setAuth", "kind": 2048, "kindString": "Method", @@ -77556,13 +79267,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 295, + "line": 308, "character": 2 } ], "signatures": [ { - "id": 430, + "id": 434, "name": "setAuth", "kind": 4096, "kindString": "Call signature", @@ -77572,7 +79283,7 @@ }, "parameters": [ { - "id": 431, + "id": 435, "name": "token", "kind": 32768, "kindString": "Parameter", @@ -77617,49 +79328,50 @@ "children": [ 364, 365, - 386, - 384, - 383, 366, - 395, - 367, - 377, - 378, - 382, - 371, - 379, - 385, - 381, - 380, 387, + 385, + 384, + 367, + 396, + 368, + 378, + 379, + 383, + 372, + 380, + 386, + 382, + 381, 388, 389, - 375, - 376 + 390, + 376, + 377 ] }, { "title": "Methods", "kind": 2048, "children": [ - 422, - 400, - 418, - 402, - 406, - 420, - 413, 426, - 411, - 408, - 429 + 404, + 422, + 406, + 410, + 424, + 417, + 430, + 415, + 412, + 433 ] } ], "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 68, + "line": 64, "character": 21 } ] @@ -78089,7 +79801,7 @@ "flags": {}, "type": { "type": "reference", - "id": 546, + "id": 558, "typeArguments": [ { "type": "reference", @@ -78253,7 +79965,7 @@ "flags": {}, "type": { "type": "reference", - "id": 556, + "id": 568, "typeArguments": [ { "type": "reference", @@ -78349,7 +80061,7 @@ "flags": {}, "type": { "type": "reference", - "id": 505, + "id": 517, "typeArguments": [ { "type": "literal", @@ -78358,7 +80070,7 @@ ], "name": "RealtimePostgresChangesFilter", "dereferenced": { - "id": 505, + "id": 517, "name": "RealtimePostgresChangesFilter", "kind": 4194304, "kindString": "Type alias", @@ -78372,7 +80084,7 @@ ], "typeParameter": [ { - "id": 511, + "id": 523, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -78384,7 +80096,7 @@ [ { "type": "reference", - "id": 580, + "id": 592, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT" }, "" @@ -78396,14 +80108,14 @@ "type": { "type": "reflection", "declaration": { - "id": 506, + "id": 518, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 507, + "id": 519, "name": "event", "kind": 1024, "kindString": "Property", @@ -78420,13 +80132,13 @@ ], "type": { "type": "reference", - "id": 511, + "id": 523, "name": "T", "dereferenced": {} } }, { - "id": 510, + "id": 522, "name": "filter", "kind": 1024, "kindString": "Property", @@ -78449,7 +80161,7 @@ } }, { - "id": 508, + "id": 520, "name": "schema", "kind": 1024, "kindString": "Property", @@ -78470,7 +80182,7 @@ } }, { - "id": 509, + "id": 521, "name": "table", "kind": 1024, "kindString": "Property", @@ -78498,10 +80210,10 @@ "title": "Properties", "kind": 1024, "children": [ - 507, - 510, - 508, - 509 + 519, + 522, + 520, + 521 ] } ], @@ -78547,7 +80259,7 @@ "flags": {}, "type": { "type": "reference", - "id": 512, + "id": 524, "typeArguments": [ { "type": "reference", @@ -78643,7 +80355,7 @@ "flags": {}, "type": { "type": "reference", - "id": 505, + "id": 517, "typeArguments": [ { "type": "literal", @@ -78652,7 +80364,7 @@ ], "name": "RealtimePostgresChangesFilter", "dereferenced": { - "id": 505, + "id": 517, "name": "RealtimePostgresChangesFilter", "kind": 4194304, "kindString": "Type alias", @@ -78666,7 +80378,7 @@ ], "typeParameter": [ { - "id": 511, + "id": 523, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -78678,7 +80390,7 @@ [ { "type": "reference", - "id": 580, + "id": 592, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT" }, "" @@ -78690,14 +80402,14 @@ "type": { "type": "reflection", "declaration": { - "id": 506, + "id": 518, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 507, + "id": 519, "name": "event", "kind": 1024, "kindString": "Property", @@ -78714,13 +80426,13 @@ ], "type": { "type": "reference", - "id": 511, + "id": 523, "name": "T", "dereferenced": {} } }, { - "id": 510, + "id": 522, "name": "filter", "kind": 1024, "kindString": "Property", @@ -78743,7 +80455,7 @@ } }, { - "id": 508, + "id": 520, "name": "schema", "kind": 1024, "kindString": "Property", @@ -78764,7 +80476,7 @@ } }, { - "id": 509, + "id": 521, "name": "table", "kind": 1024, "kindString": "Property", @@ -78792,10 +80504,10 @@ "title": "Properties", "kind": 1024, "children": [ - 507, - 510, - 508, - 509 + 519, + 522, + 520, + 521 ] } ], @@ -78841,7 +80553,7 @@ "flags": {}, "type": { "type": "reference", - "id": 517, + "id": 529, "typeArguments": [ { "type": "reference", @@ -78937,7 +80649,7 @@ "flags": {}, "type": { "type": "reference", - "id": 505, + "id": 517, "typeArguments": [ { "type": "literal", @@ -78946,7 +80658,7 @@ ], "name": "RealtimePostgresChangesFilter", "dereferenced": { - "id": 505, + "id": 517, "name": "RealtimePostgresChangesFilter", "kind": 4194304, "kindString": "Type alias", @@ -78960,7 +80672,7 @@ ], "typeParameter": [ { - "id": 511, + "id": 523, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -78972,7 +80684,7 @@ [ { "type": "reference", - "id": 580, + "id": 592, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT" }, "" @@ -78984,14 +80696,14 @@ "type": { "type": "reflection", "declaration": { - "id": 506, + "id": 518, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 507, + "id": 519, "name": "event", "kind": 1024, "kindString": "Property", @@ -79008,13 +80720,13 @@ ], "type": { "type": "reference", - "id": 511, + "id": 523, "name": "T", "dereferenced": {} } }, { - "id": 510, + "id": 522, "name": "filter", "kind": 1024, "kindString": "Property", @@ -79037,7 +80749,7 @@ } }, { - "id": 508, + "id": 520, "name": "schema", "kind": 1024, "kindString": "Property", @@ -79058,7 +80770,7 @@ } }, { - "id": 509, + "id": 521, "name": "table", "kind": 1024, "kindString": "Property", @@ -79086,10 +80798,10 @@ "title": "Properties", "kind": 1024, "children": [ - 507, - 510, - 508, - 509 + 519, + 522, + 520, + 521 ] } ], @@ -79135,7 +80847,7 @@ "flags": {}, "type": { "type": "reference", - "id": 527, + "id": 539, "typeArguments": [ { "type": "reference", @@ -79231,7 +80943,7 @@ "flags": {}, "type": { "type": "reference", - "id": 505, + "id": 517, "typeArguments": [ { "type": "literal", @@ -79240,7 +80952,7 @@ ], "name": "RealtimePostgresChangesFilter", "dereferenced": { - "id": 505, + "id": 517, "name": "RealtimePostgresChangesFilter", "kind": 4194304, "kindString": "Type alias", @@ -79254,7 +80966,7 @@ ], "typeParameter": [ { - "id": 511, + "id": 523, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -79266,7 +80978,7 @@ [ { "type": "reference", - "id": 580, + "id": 592, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT" }, "" @@ -79278,14 +80990,14 @@ "type": { "type": "reflection", "declaration": { - "id": 506, + "id": 518, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 507, + "id": 519, "name": "event", "kind": 1024, "kindString": "Property", @@ -79302,13 +81014,13 @@ ], "type": { "type": "reference", - "id": 511, + "id": 523, "name": "T", "dereferenced": {} } }, { - "id": 510, + "id": 522, "name": "filter", "kind": 1024, "kindString": "Property", @@ -79331,7 +81043,7 @@ } }, { - "id": 508, + "id": 520, "name": "schema", "kind": 1024, "kindString": "Property", @@ -79352,7 +81064,7 @@ } }, { - "id": 509, + "id": 521, "name": "table", "kind": 1024, "kindString": "Property", @@ -79380,10 +81092,10 @@ "title": "Properties", "kind": 1024, "children": [ - 507, - 510, - 508, - 509 + 519, + 522, + 520, + 521 ] } ], @@ -79429,7 +81141,7 @@ "flags": {}, "type": { "type": "reference", - "id": 536, + "id": 548, "typeArguments": [ { "type": "reference", @@ -79966,7 +81678,7 @@ ], "type": { "type": "reference", - "id": 566, + "id": 578, "typeArguments": [ { "type": "reference", @@ -81178,7 +82890,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 115, + "line": 112, "character": 2 } ], @@ -81217,10 +82929,10 @@ }, "type": { "type": "reference", - "id": 479, + "id": 491, "name": "RealtimeClientOptions", "dereferenced": { - "id": 479, + "id": 491, "name": "RealtimeClientOptions", "kind": 4194304, "kindString": "Type alias", @@ -81235,14 +82947,14 @@ "type": { "type": "reflection", "declaration": { - "id": 480, + "id": 492, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 486, + "id": 498, "name": "decode", "kind": 1024, "kindString": "Property", @@ -81264,7 +82976,7 @@ } }, { - "id": 485, + "id": 497, "name": "encode", "kind": 1024, "kindString": "Property", @@ -81286,7 +82998,7 @@ } }, { - "id": 497, + "id": 509, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -81306,7 +83018,7 @@ } }, { - "id": 488, + "id": 500, "name": "headers", "kind": 1024, "kindString": "Property", @@ -81323,7 +83035,7 @@ "type": { "type": "reflection", "declaration": { - "id": 489, + "id": 501, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -81336,14 +83048,14 @@ } ], "indexSignature": { - "id": 490, + "id": 502, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 491, + "id": 503, "name": "key", "kind": 32768, "flags": {}, @@ -81362,7 +83074,7 @@ } }, { - "id": 483, + "id": 495, "name": "heartbeatIntervalMs", "kind": 1024, "kindString": "Property", @@ -81382,7 +83094,7 @@ } }, { - "id": 496, + "id": 508, "name": "log_level", "kind": 1024, "kindString": "Property", @@ -81419,7 +83131,7 @@ } }, { - "id": 484, + "id": 496, "name": "logger", "kind": 1024, "kindString": "Property", @@ -81441,7 +83153,7 @@ } }, { - "id": 492, + "id": 504, "name": "params", "kind": 1024, "kindString": "Property", @@ -81458,7 +83170,7 @@ "type": { "type": "reflection", "declaration": { - "id": 493, + "id": 505, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -81471,14 +83183,14 @@ } ], "indexSignature": { - "id": 494, + "id": 506, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 495, + "id": 507, "name": "key", "kind": 32768, "flags": {}, @@ -81497,7 +83209,7 @@ } }, { - "id": 487, + "id": 499, "name": "reconnectAfterMs", "kind": 1024, "kindString": "Property", @@ -81519,7 +83231,7 @@ } }, { - "id": 482, + "id": 494, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -81539,7 +83251,7 @@ } }, { - "id": 481, + "id": 493, "name": "transport", "kind": 1024, "kindString": "Property", @@ -81564,17 +83276,17 @@ "title": "Properties", "kind": 1024, "children": [ - 486, - 485, + 498, 497, - 488, - 483, + 509, + 500, + 495, + 508, 496, - 484, - 492, - 487, - 482, - 481 + 504, + 499, + 494, + 493 ] } ], @@ -81608,7 +83320,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 69, + "line": 65, "character": 2 } ], @@ -81629,6 +83341,34 @@ }, { "id": 365, + "name": "apiKey", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/RealtimeClient.ts", + "line": 66, + "character": 2 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "intrinsic", + "name": "string" + } + ] + }, + "defaultValue": "null" + }, + { + "id": 366, "name": "channels", "kind": 1024, "kindString": "Property", @@ -81636,7 +83376,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 70, + "line": 67, "character": 2 } ], @@ -81651,7 +83391,7 @@ "defaultValue": "[]" }, { - "id": 386, + "id": 387, "name": "conn", "kind": 1024, "kindString": "Property", @@ -81659,7 +83399,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 85, + "line": 82, "character": 2 } ], @@ -81679,7 +83419,7 @@ "defaultValue": "null" }, { - "id": 384, + "id": 385, "name": "decode", "kind": 1024, "kindString": "Property", @@ -81687,7 +83427,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 83, + "line": 80, "character": 2 } ], @@ -81699,7 +83439,7 @@ } }, { - "id": 383, + "id": 384, "name": "encode", "kind": 1024, "kindString": "Property", @@ -81707,7 +83447,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 82, + "line": 79, "character": 2 } ], @@ -81719,7 +83459,7 @@ } }, { - "id": 366, + "id": 367, "name": "endPoint", "kind": 1024, "kindString": "Property", @@ -81727,7 +83467,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 71, + "line": 68, "character": 2 } ], @@ -81738,7 +83478,7 @@ "defaultValue": "''" }, { - "id": 395, + "id": 396, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -81746,28 +83486,28 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 99, + "line": 96, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 396, + "id": 397, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 397, + "id": 398, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 398, + "id": 399, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -81791,7 +83531,73 @@ } }, { - "id": 399, + "id": 400, + "name": "init", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "qualifiedName": "RequestInit", + "package": "typescript", + "name": "RequestInit" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "qualifiedName": "Response", + "package": "typescript", + "name": "Response" + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + }, + { + "id": 401, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 402, + "name": "input", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "qualifiedName": "Request", + "package": "typescript", + "name": "Request" + }, + { + "type": "reference", + "qualifiedName": "URL", + "package": "typescript", + "name": "URL" + } + ] + } + }, + { + "id": 403, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -81826,7 +83632,7 @@ } }, { - "id": 367, + "id": 368, "name": "headers", "kind": 1024, "kindString": "Property", @@ -81836,27 +83642,27 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 72, + "line": 69, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 368, + "id": 369, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": { - "id": 369, + "id": 370, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 370, + "id": 371, "name": "key", "kind": 32768, "flags": {}, @@ -81876,7 +83682,7 @@ "defaultValue": "DEFAULT_HEADERS" }, { - "id": 377, + "id": 378, "name": "heartbeatIntervalMs", "kind": 1024, "kindString": "Property", @@ -81884,7 +83690,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 76, + "line": 73, "character": 2 } ], @@ -81895,7 +83701,7 @@ "defaultValue": "30000" }, { - "id": 378, + "id": 379, "name": "heartbeatTimer", "kind": 1024, "kindString": "Property", @@ -81903,7 +83709,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 77, + "line": 74, "character": 2 } ], @@ -81916,16 +83722,16 @@ }, { "type": "reference", - "qualifiedName": "global.NodeJS.Timer", + "qualifiedName": "global.NodeJS.Timeout", "package": "@types/node", - "name": "Timer" + "name": "Timeout" } ] }, "defaultValue": "undefined" }, { - "id": 382, + "id": 383, "name": "logger", "kind": 1024, "kindString": "Property", @@ -81933,7 +83739,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 81, + "line": 78, "character": 2 } ], @@ -81946,7 +83752,7 @@ "defaultValue": "noop" }, { - "id": 371, + "id": 372, "name": "params", "kind": 1024, "kindString": "Property", @@ -81956,27 +83762,27 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 73, + "line": 70, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 372, + "id": 373, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": { - "id": 373, + "id": 374, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 374, + "id": 375, "name": "key", "kind": 32768, "flags": {}, @@ -81996,7 +83802,7 @@ "defaultValue": "{}" }, { - "id": 379, + "id": 380, "name": "pendingHeartbeatRef", "kind": 1024, "kindString": "Property", @@ -82004,7 +83810,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 78, + "line": 75, "character": 2 } ], @@ -82024,7 +83830,7 @@ "defaultValue": "null" }, { - "id": 385, + "id": 386, "name": "reconnectAfterMs", "kind": 1024, "kindString": "Property", @@ -82032,7 +83838,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 84, + "line": 81, "character": 2 } ], @@ -82044,7 +83850,7 @@ } }, { - "id": 381, + "id": 382, "name": "reconnectTimer", "kind": 1024, "kindString": "Property", @@ -82052,7 +83858,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 80, + "line": 77, "character": 2 } ], @@ -82062,7 +83868,7 @@ } }, { - "id": 380, + "id": 381, "name": "ref", "kind": 1024, "kindString": "Property", @@ -82070,7 +83876,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 79, + "line": 76, "character": 2 } ], @@ -82081,7 +83887,7 @@ "defaultValue": "0" }, { - "id": 387, + "id": 388, "name": "sendBuffer", "kind": 1024, "kindString": "Property", @@ -82089,7 +83895,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 86, + "line": 83, "character": 2 } ], @@ -82105,7 +83911,7 @@ "defaultValue": "[]" }, { - "id": 388, + "id": 389, "name": "serializer", "kind": 1024, "kindString": "Property", @@ -82113,7 +83919,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 87, + "line": 84, "character": 2 } ], @@ -82124,7 +83930,7 @@ "defaultValue": "..." }, { - "id": 389, + "id": 390, "name": "stateChangeCallbacks", "kind": 1024, "kindString": "Property", @@ -82132,21 +83938,21 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 88, + "line": 85, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 390, + "id": 391, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 392, + "id": 393, "name": "close", "kind": 1024, "kindString": "Property", @@ -82154,30 +83960,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 90, - "character": 4 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - } - }, - { - "id": 393, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/RealtimeClient.ts", - "line": 91, + "line": 87, "character": 4 } ], @@ -82193,14 +83976,14 @@ }, { "id": 394, - "name": "message", + "name": "error", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 92, + "line": 88, "character": 4 } ], @@ -82215,8 +83998,8 @@ } }, { - "id": 391, - "name": "open", + "id": 395, + "name": "message", "kind": 1024, "kindString": "Property", "flags": {}, @@ -82236,6 +84019,29 @@ "name": "Function" } } + }, + { + "id": 392, + "name": "open", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/RealtimeClient.ts", + "line": 86, + "character": 4 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "qualifiedName": "Function", + "package": "typescript", + "name": "Function" + } + } } ], "groups": [ @@ -82243,10 +84049,10 @@ "title": "Properties", "kind": 1024, "children": [ - 392, 393, 394, - 391 + 395, + 392 ] } ] @@ -82255,7 +84061,7 @@ "defaultValue": "..." }, { - "id": 375, + "id": 376, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -82263,7 +84069,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 74, + "line": 71, "character": 2 } ], @@ -82274,7 +84080,7 @@ "defaultValue": "DEFAULT_TIMEOUT" }, { - "id": 376, + "id": 377, "name": "transport", "kind": 1024, "kindString": "Property", @@ -82282,18 +84088,26 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 75, + "line": 72, "character": 2 } ], "type": { - "type": "reference", - "name": "WebSocketLikeConstructor" - }, - "defaultValue": "WebSocketVariant" + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "name": "WebSocketLikeConstructor" + } + ] + } }, { - "id": 422, + "id": 426, "name": "channel", "kind": 2048, "kindString": "Method", @@ -82301,20 +84115,20 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 261, + "line": 274, "character": 2 } ], "signatures": [ { - "id": 423, + "id": 427, "name": "channel", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 424, + "id": 428, "name": "topic", "kind": 32768, "kindString": "Parameter", @@ -82325,7 +84139,7 @@ } }, { - "id": 425, + "id": 429, "name": "params", "kind": 32768, "kindString": "Parameter", @@ -82587,7 +84401,7 @@ ] }, { - "id": 400, + "id": 404, "name": "connect", "kind": 2048, "kindString": "Method", @@ -82595,13 +84409,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 153, + "line": 157, "character": 2 } ], "signatures": [ { - "id": 401, + "id": 405, "name": "connect", "kind": 4096, "kindString": "Call signature", @@ -82617,7 +84431,7 @@ ] }, { - "id": 418, + "id": 422, "name": "connectionState", "kind": 2048, "kindString": "Method", @@ -82625,13 +84439,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 241, + "line": 254, "character": 2 } ], "signatures": [ { - "id": 419, + "id": 423, "name": "connectionState", "kind": 4096, "kindString": "Call signature", @@ -82647,7 +84461,7 @@ ] }, { - "id": 402, + "id": 406, "name": "disconnect", "kind": 2048, "kindString": "Method", @@ -82655,13 +84469,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 182, + "line": 195, "character": 2 } ], "signatures": [ { - "id": 403, + "id": 407, "name": "disconnect", "kind": 4096, "kindString": "Call signature", @@ -82671,7 +84485,7 @@ }, "parameters": [ { - "id": 404, + "id": 408, "name": "code", "kind": 32768, "kindString": "Parameter", @@ -82687,7 +84501,7 @@ } }, { - "id": 405, + "id": 409, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -82711,7 +84525,7 @@ ] }, { - "id": 406, + "id": 410, "name": "getChannels", "kind": 2048, "kindString": "Method", @@ -82719,13 +84533,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 200, + "line": 213, "character": 2 } ], "signatures": [ { - "id": 407, + "id": 411, "name": "getChannels", "kind": 4096, "kindString": "Call signature", @@ -82745,7 +84559,7 @@ ] }, { - "id": 420, + "id": 424, "name": "isConnected", "kind": 2048, "kindString": "Method", @@ -82753,13 +84567,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 257, + "line": 270, "character": 2 } ], "signatures": [ { - "id": 421, + "id": 425, "name": "isConnected", "kind": 4096, "kindString": "Call signature", @@ -82775,7 +84589,7 @@ ] }, { - "id": 413, + "id": 417, "name": "log", "kind": 2048, "kindString": "Method", @@ -82783,13 +84597,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 234, + "line": 247, "character": 2 } ], "signatures": [ { - "id": 414, + "id": 418, "name": "log", "kind": 4096, "kindString": "Call signature", @@ -82800,7 +84614,7 @@ }, "parameters": [ { - "id": 415, + "id": 419, "name": "kind", "kind": 32768, "kindString": "Parameter", @@ -82811,7 +84625,7 @@ } }, { - "id": 416, + "id": 420, "name": "msg", "kind": 32768, "kindString": "Parameter", @@ -82822,7 +84636,7 @@ } }, { - "id": 417, + "id": 421, "name": "data", "kind": 32768, "kindString": "Parameter", @@ -82843,7 +84657,7 @@ ] }, { - "id": 426, + "id": 430, "name": "push", "kind": 2048, "kindString": "Method", @@ -82851,13 +84665,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 275, + "line": 288, "character": 2 } ], "signatures": [ { - "id": 427, + "id": 431, "name": "push", "kind": 4096, "kindString": "Call signature", @@ -82868,17 +84682,17 @@ }, "parameters": [ { - "id": 428, + "id": 432, "name": "data", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 498, + "id": 510, "name": "RealtimeMessage", "dereferenced": { - "id": 498, + "id": 510, "name": "RealtimeMessage", "kind": 4194304, "kindString": "Type alias", @@ -82893,14 +84707,14 @@ "type": { "type": "reflection", "declaration": { - "id": 499, + "id": 511, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 501, + "id": 513, "name": "event", "kind": 1024, "kindString": "Property", @@ -82918,7 +84732,7 @@ } }, { - "id": 504, + "id": 516, "name": "join_ref", "kind": 1024, "kindString": "Property", @@ -82938,7 +84752,7 @@ } }, { - "id": 502, + "id": 514, "name": "payload", "kind": 1024, "kindString": "Property", @@ -82956,7 +84770,7 @@ } }, { - "id": 503, + "id": 515, "name": "ref", "kind": 1024, "kindString": "Property", @@ -82974,7 +84788,7 @@ } }, { - "id": 500, + "id": 512, "name": "topic", "kind": 1024, "kindString": "Property", @@ -82997,11 +84811,11 @@ "title": "Properties", "kind": 1024, "children": [ - 501, - 504, - 502, - 503, - 500 + 513, + 516, + 514, + 515, + 512 ] } ], @@ -83026,7 +84840,7 @@ ] }, { - "id": 411, + "id": 415, "name": "removeAllChannels", "kind": 2048, "kindString": "Method", @@ -83034,13 +84848,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 221, + "line": 234, "character": 8 } ], "signatures": [ { - "id": 412, + "id": 416, "name": "removeAllChannels", "kind": 4096, "kindString": "Call signature", @@ -83055,7 +84869,7 @@ "type": "array", "elementType": { "type": "reference", - "id": 575, + "id": 587, "name": "RealtimeRemoveChannelResponse" } } @@ -83068,7 +84882,7 @@ ] }, { - "id": 408, + "id": 412, "name": "removeChannel", "kind": 2048, "kindString": "Method", @@ -83076,13 +84890,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 208, + "line": 221, "character": 8 } ], "signatures": [ { - "id": 409, + "id": 413, "name": "removeChannel", "kind": 4096, "kindString": "Call signature", @@ -83092,7 +84906,7 @@ }, "parameters": [ { - "id": 410, + "id": 414, "name": "channel", "kind": 32768, "kindString": "Parameter", @@ -83113,7 +84927,7 @@ "typeArguments": [ { "type": "reference", - "id": 575, + "id": 587, "name": "RealtimeRemoveChannelResponse" } ], @@ -83125,7 +84939,7 @@ ] }, { - "id": 429, + "id": 433, "name": "setAuth", "kind": 2048, "kindString": "Method", @@ -83133,13 +84947,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 295, + "line": 308, "character": 2 } ], "signatures": [ { - "id": 430, + "id": 434, "name": "setAuth", "kind": 4096, "kindString": "Call signature", @@ -83149,7 +84963,7 @@ }, "parameters": [ { - "id": 431, + "id": 435, "name": "token", "kind": 32768, "kindString": "Parameter", @@ -83194,49 +85008,50 @@ "children": [ 364, 365, - 386, - 384, - 383, 366, - 395, - 367, - 377, - 378, - 382, - 371, - 379, - 385, - 381, - 380, 387, + 385, + 384, + 367, + 396, + 368, + 378, + 379, + 383, + 372, + 380, + 386, + 382, + 381, 388, 389, - 375, - 376 + 390, + 376, + 377 ] }, { "title": "Methods", "kind": 2048, "children": [ - 422, - 400, - 418, - 402, - 406, - 420, - 413, 426, - 411, - 408, - 429 + 404, + 422, + 406, + 410, + 424, + 417, + 430, + 415, + 412, + 433 ] } ], "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 68, + "line": 64, "character": 21 } ] @@ -83874,7 +85689,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 115, + "line": 112, "character": 2 } ], @@ -83913,10 +85728,10 @@ }, "type": { "type": "reference", - "id": 479, + "id": 491, "name": "RealtimeClientOptions", "dereferenced": { - "id": 479, + "id": 491, "name": "RealtimeClientOptions", "kind": 4194304, "kindString": "Type alias", @@ -83931,14 +85746,14 @@ "type": { "type": "reflection", "declaration": { - "id": 480, + "id": 492, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 486, + "id": 498, "name": "decode", "kind": 1024, "kindString": "Property", @@ -83960,7 +85775,7 @@ } }, { - "id": 485, + "id": 497, "name": "encode", "kind": 1024, "kindString": "Property", @@ -83982,7 +85797,7 @@ } }, { - "id": 497, + "id": 509, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -84002,7 +85817,7 @@ } }, { - "id": 488, + "id": 500, "name": "headers", "kind": 1024, "kindString": "Property", @@ -84019,7 +85834,7 @@ "type": { "type": "reflection", "declaration": { - "id": 489, + "id": 501, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -84032,14 +85847,14 @@ } ], "indexSignature": { - "id": 490, + "id": 502, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 491, + "id": 503, "name": "key", "kind": 32768, "flags": {}, @@ -84058,7 +85873,7 @@ } }, { - "id": 483, + "id": 495, "name": "heartbeatIntervalMs", "kind": 1024, "kindString": "Property", @@ -84078,7 +85893,7 @@ } }, { - "id": 496, + "id": 508, "name": "log_level", "kind": 1024, "kindString": "Property", @@ -84115,7 +85930,7 @@ } }, { - "id": 484, + "id": 496, "name": "logger", "kind": 1024, "kindString": "Property", @@ -84137,7 +85952,7 @@ } }, { - "id": 492, + "id": 504, "name": "params", "kind": 1024, "kindString": "Property", @@ -84154,7 +85969,7 @@ "type": { "type": "reflection", "declaration": { - "id": 493, + "id": 505, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -84167,14 +85982,14 @@ } ], "indexSignature": { - "id": 494, + "id": 506, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 495, + "id": 507, "name": "key", "kind": 32768, "flags": {}, @@ -84193,7 +86008,7 @@ } }, { - "id": 487, + "id": 499, "name": "reconnectAfterMs", "kind": 1024, "kindString": "Property", @@ -84215,7 +86030,7 @@ } }, { - "id": 482, + "id": 494, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -84235,7 +86050,7 @@ } }, { - "id": 481, + "id": 493, "name": "transport", "kind": 1024, "kindString": "Property", @@ -84260,17 +86075,17 @@ "title": "Properties", "kind": 1024, "children": [ - 486, - 485, + 498, 497, - 488, - 483, + 509, + 500, + 495, + 508, 496, - 484, - 492, - 487, - 482, - 481 + 504, + 499, + 494, + 493 ] } ], @@ -84304,7 +86119,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 69, + "line": 65, "character": 2 } ], @@ -84325,6 +86140,34 @@ }, { "id": 365, + "name": "apiKey", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/RealtimeClient.ts", + "line": 66, + "character": 2 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "intrinsic", + "name": "string" + } + ] + }, + "defaultValue": "null" + }, + { + "id": 366, "name": "channels", "kind": 1024, "kindString": "Property", @@ -84332,7 +86175,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 70, + "line": 67, "character": 2 } ], @@ -84347,7 +86190,7 @@ "defaultValue": "[]" }, { - "id": 386, + "id": 387, "name": "conn", "kind": 1024, "kindString": "Property", @@ -84355,7 +86198,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 85, + "line": 82, "character": 2 } ], @@ -84375,7 +86218,7 @@ "defaultValue": "null" }, { - "id": 384, + "id": 385, "name": "decode", "kind": 1024, "kindString": "Property", @@ -84383,7 +86226,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 83, + "line": 80, "character": 2 } ], @@ -84395,7 +86238,7 @@ } }, { - "id": 383, + "id": 384, "name": "encode", "kind": 1024, "kindString": "Property", @@ -84403,7 +86246,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 82, + "line": 79, "character": 2 } ], @@ -84415,7 +86258,7 @@ } }, { - "id": 366, + "id": 367, "name": "endPoint", "kind": 1024, "kindString": "Property", @@ -84423,7 +86266,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 71, + "line": 68, "character": 2 } ], @@ -84434,7 +86277,7 @@ "defaultValue": "''" }, { - "id": 395, + "id": 396, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -84442,28 +86285,28 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 99, + "line": 96, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 396, + "id": 397, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 397, + "id": 398, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 398, + "id": 399, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -84487,7 +86330,73 @@ } }, { - "id": 399, + "id": 400, + "name": "init", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "qualifiedName": "RequestInit", + "package": "typescript", + "name": "RequestInit" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "qualifiedName": "Response", + "package": "typescript", + "name": "Response" + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + }, + { + "id": 401, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 402, + "name": "input", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "qualifiedName": "Request", + "package": "typescript", + "name": "Request" + }, + { + "type": "reference", + "qualifiedName": "URL", + "package": "typescript", + "name": "URL" + } + ] + } + }, + { + "id": 403, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -84522,7 +86431,7 @@ } }, { - "id": 367, + "id": 368, "name": "headers", "kind": 1024, "kindString": "Property", @@ -84532,27 +86441,27 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 72, + "line": 69, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 368, + "id": 369, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": { - "id": 369, + "id": 370, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 370, + "id": 371, "name": "key", "kind": 32768, "flags": {}, @@ -84572,7 +86481,7 @@ "defaultValue": "DEFAULT_HEADERS" }, { - "id": 377, + "id": 378, "name": "heartbeatIntervalMs", "kind": 1024, "kindString": "Property", @@ -84580,7 +86489,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 76, + "line": 73, "character": 2 } ], @@ -84591,7 +86500,7 @@ "defaultValue": "30000" }, { - "id": 378, + "id": 379, "name": "heartbeatTimer", "kind": 1024, "kindString": "Property", @@ -84599,7 +86508,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 77, + "line": 74, "character": 2 } ], @@ -84612,16 +86521,16 @@ }, { "type": "reference", - "qualifiedName": "global.NodeJS.Timer", + "qualifiedName": "global.NodeJS.Timeout", "package": "@types/node", - "name": "Timer" + "name": "Timeout" } ] }, "defaultValue": "undefined" }, { - "id": 382, + "id": 383, "name": "logger", "kind": 1024, "kindString": "Property", @@ -84629,7 +86538,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 81, + "line": 78, "character": 2 } ], @@ -84642,7 +86551,7 @@ "defaultValue": "noop" }, { - "id": 371, + "id": 372, "name": "params", "kind": 1024, "kindString": "Property", @@ -84652,27 +86561,27 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 73, + "line": 70, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 372, + "id": 373, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": { - "id": 373, + "id": 374, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 374, + "id": 375, "name": "key", "kind": 32768, "flags": {}, @@ -84692,7 +86601,7 @@ "defaultValue": "{}" }, { - "id": 379, + "id": 380, "name": "pendingHeartbeatRef", "kind": 1024, "kindString": "Property", @@ -84700,7 +86609,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 78, + "line": 75, "character": 2 } ], @@ -84720,7 +86629,7 @@ "defaultValue": "null" }, { - "id": 385, + "id": 386, "name": "reconnectAfterMs", "kind": 1024, "kindString": "Property", @@ -84728,7 +86637,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 84, + "line": 81, "character": 2 } ], @@ -84740,7 +86649,7 @@ } }, { - "id": 381, + "id": 382, "name": "reconnectTimer", "kind": 1024, "kindString": "Property", @@ -84748,7 +86657,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 80, + "line": 77, "character": 2 } ], @@ -84758,7 +86667,7 @@ } }, { - "id": 380, + "id": 381, "name": "ref", "kind": 1024, "kindString": "Property", @@ -84766,7 +86675,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 79, + "line": 76, "character": 2 } ], @@ -84777,7 +86686,7 @@ "defaultValue": "0" }, { - "id": 387, + "id": 388, "name": "sendBuffer", "kind": 1024, "kindString": "Property", @@ -84785,7 +86694,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 86, + "line": 83, "character": 2 } ], @@ -84801,7 +86710,7 @@ "defaultValue": "[]" }, { - "id": 388, + "id": 389, "name": "serializer", "kind": 1024, "kindString": "Property", @@ -84809,7 +86718,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 87, + "line": 84, "character": 2 } ], @@ -84820,7 +86729,7 @@ "defaultValue": "..." }, { - "id": 389, + "id": 390, "name": "stateChangeCallbacks", "kind": 1024, "kindString": "Property", @@ -84828,21 +86737,21 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 88, + "line": 85, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 390, + "id": 391, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 392, + "id": 393, "name": "close", "kind": 1024, "kindString": "Property", @@ -84850,30 +86759,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 90, - "character": 4 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - } - }, - { - "id": 393, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/RealtimeClient.ts", - "line": 91, + "line": 87, "character": 4 } ], @@ -84889,14 +86775,14 @@ }, { "id": 394, - "name": "message", + "name": "error", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 92, + "line": 88, "character": 4 } ], @@ -84911,8 +86797,8 @@ } }, { - "id": 391, - "name": "open", + "id": 395, + "name": "message", "kind": 1024, "kindString": "Property", "flags": {}, @@ -84932,6 +86818,29 @@ "name": "Function" } } + }, + { + "id": 392, + "name": "open", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/RealtimeClient.ts", + "line": 86, + "character": 4 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "qualifiedName": "Function", + "package": "typescript", + "name": "Function" + } + } } ], "groups": [ @@ -84939,10 +86848,10 @@ "title": "Properties", "kind": 1024, "children": [ - 392, 393, 394, - 391 + 395, + 392 ] } ] @@ -84951,7 +86860,7 @@ "defaultValue": "..." }, { - "id": 375, + "id": 376, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -84959,7 +86868,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 74, + "line": 71, "character": 2 } ], @@ -84970,7 +86879,7 @@ "defaultValue": "DEFAULT_TIMEOUT" }, { - "id": 376, + "id": 377, "name": "transport", "kind": 1024, "kindString": "Property", @@ -84978,18 +86887,26 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 75, + "line": 72, "character": 2 } ], "type": { - "type": "reference", - "name": "WebSocketLikeConstructor" - }, - "defaultValue": "WebSocketVariant" + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "name": "WebSocketLikeConstructor" + } + ] + } }, { - "id": 422, + "id": 426, "name": "channel", "kind": 2048, "kindString": "Method", @@ -84997,20 +86914,20 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 261, + "line": 274, "character": 2 } ], "signatures": [ { - "id": 423, + "id": 427, "name": "channel", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 424, + "id": 428, "name": "topic", "kind": 32768, "kindString": "Parameter", @@ -85021,7 +86938,7 @@ } }, { - "id": 425, + "id": 429, "name": "params", "kind": 32768, "kindString": "Parameter", @@ -85283,7 +87200,7 @@ ] }, { - "id": 400, + "id": 404, "name": "connect", "kind": 2048, "kindString": "Method", @@ -85291,13 +87208,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 153, + "line": 157, "character": 2 } ], "signatures": [ { - "id": 401, + "id": 405, "name": "connect", "kind": 4096, "kindString": "Call signature", @@ -85313,7 +87230,7 @@ ] }, { - "id": 418, + "id": 422, "name": "connectionState", "kind": 2048, "kindString": "Method", @@ -85321,13 +87238,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 241, + "line": 254, "character": 2 } ], "signatures": [ { - "id": 419, + "id": 423, "name": "connectionState", "kind": 4096, "kindString": "Call signature", @@ -85343,7 +87260,7 @@ ] }, { - "id": 402, + "id": 406, "name": "disconnect", "kind": 2048, "kindString": "Method", @@ -85351,13 +87268,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 182, + "line": 195, "character": 2 } ], "signatures": [ { - "id": 403, + "id": 407, "name": "disconnect", "kind": 4096, "kindString": "Call signature", @@ -85367,7 +87284,7 @@ }, "parameters": [ { - "id": 404, + "id": 408, "name": "code", "kind": 32768, "kindString": "Parameter", @@ -85383,7 +87300,7 @@ } }, { - "id": 405, + "id": 409, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -85407,7 +87324,7 @@ ] }, { - "id": 406, + "id": 410, "name": "getChannels", "kind": 2048, "kindString": "Method", @@ -85415,13 +87332,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 200, + "line": 213, "character": 2 } ], "signatures": [ { - "id": 407, + "id": 411, "name": "getChannels", "kind": 4096, "kindString": "Call signature", @@ -85441,7 +87358,7 @@ ] }, { - "id": 420, + "id": 424, "name": "isConnected", "kind": 2048, "kindString": "Method", @@ -85449,13 +87366,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 257, + "line": 270, "character": 2 } ], "signatures": [ { - "id": 421, + "id": 425, "name": "isConnected", "kind": 4096, "kindString": "Call signature", @@ -85471,7 +87388,7 @@ ] }, { - "id": 413, + "id": 417, "name": "log", "kind": 2048, "kindString": "Method", @@ -85479,13 +87396,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 234, + "line": 247, "character": 2 } ], "signatures": [ { - "id": 414, + "id": 418, "name": "log", "kind": 4096, "kindString": "Call signature", @@ -85496,7 +87413,7 @@ }, "parameters": [ { - "id": 415, + "id": 419, "name": "kind", "kind": 32768, "kindString": "Parameter", @@ -85507,7 +87424,7 @@ } }, { - "id": 416, + "id": 420, "name": "msg", "kind": 32768, "kindString": "Parameter", @@ -85518,7 +87435,7 @@ } }, { - "id": 417, + "id": 421, "name": "data", "kind": 32768, "kindString": "Parameter", @@ -85539,7 +87456,7 @@ ] }, { - "id": 426, + "id": 430, "name": "push", "kind": 2048, "kindString": "Method", @@ -85547,13 +87464,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 275, + "line": 288, "character": 2 } ], "signatures": [ { - "id": 427, + "id": 431, "name": "push", "kind": 4096, "kindString": "Call signature", @@ -85564,17 +87481,17 @@ }, "parameters": [ { - "id": 428, + "id": 432, "name": "data", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 498, + "id": 510, "name": "RealtimeMessage", "dereferenced": { - "id": 498, + "id": 510, "name": "RealtimeMessage", "kind": 4194304, "kindString": "Type alias", @@ -85589,14 +87506,14 @@ "type": { "type": "reflection", "declaration": { - "id": 499, + "id": 511, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 501, + "id": 513, "name": "event", "kind": 1024, "kindString": "Property", @@ -85614,7 +87531,7 @@ } }, { - "id": 504, + "id": 516, "name": "join_ref", "kind": 1024, "kindString": "Property", @@ -85634,7 +87551,7 @@ } }, { - "id": 502, + "id": 514, "name": "payload", "kind": 1024, "kindString": "Property", @@ -85652,7 +87569,7 @@ } }, { - "id": 503, + "id": 515, "name": "ref", "kind": 1024, "kindString": "Property", @@ -85670,7 +87587,7 @@ } }, { - "id": 500, + "id": 512, "name": "topic", "kind": 1024, "kindString": "Property", @@ -85693,11 +87610,11 @@ "title": "Properties", "kind": 1024, "children": [ - 501, - 504, - 502, - 503, - 500 + 513, + 516, + 514, + 515, + 512 ] } ], @@ -85722,7 +87639,7 @@ ] }, { - "id": 411, + "id": 415, "name": "removeAllChannels", "kind": 2048, "kindString": "Method", @@ -85730,13 +87647,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 221, + "line": 234, "character": 8 } ], "signatures": [ { - "id": 412, + "id": 416, "name": "removeAllChannels", "kind": 4096, "kindString": "Call signature", @@ -85751,7 +87668,7 @@ "type": "array", "elementType": { "type": "reference", - "id": 575, + "id": 587, "name": "RealtimeRemoveChannelResponse" } } @@ -85764,7 +87681,7 @@ ] }, { - "id": 408, + "id": 412, "name": "removeChannel", "kind": 2048, "kindString": "Method", @@ -85772,13 +87689,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 208, + "line": 221, "character": 8 } ], "signatures": [ { - "id": 409, + "id": 413, "name": "removeChannel", "kind": 4096, "kindString": "Call signature", @@ -85788,7 +87705,7 @@ }, "parameters": [ { - "id": 410, + "id": 414, "name": "channel", "kind": 32768, "kindString": "Parameter", @@ -85809,7 +87726,7 @@ "typeArguments": [ { "type": "reference", - "id": 575, + "id": 587, "name": "RealtimeRemoveChannelResponse" } ], @@ -85821,7 +87738,7 @@ ] }, { - "id": 429, + "id": 433, "name": "setAuth", "kind": 2048, "kindString": "Method", @@ -85829,13 +87746,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 295, + "line": 308, "character": 2 } ], "signatures": [ { - "id": 430, + "id": 434, "name": "setAuth", "kind": 4096, "kindString": "Call signature", @@ -85845,7 +87762,7 @@ }, "parameters": [ { - "id": 431, + "id": 435, "name": "token", "kind": 32768, "kindString": "Parameter", @@ -85890,49 +87807,50 @@ "children": [ 364, 365, - 386, - 384, - 383, 366, - 395, - 367, - 377, - 378, - 382, - 371, - 379, - 385, - 381, - 380, 387, + 385, + 384, + 367, + 396, + 368, + 378, + 379, + 383, + 372, + 380, + 386, + 382, + 381, 388, 389, - 375, - 376 + 390, + 376, + 377 ] }, { "title": "Methods", "kind": 2048, "children": [ - 422, - 400, - 418, - 402, - 406, - 420, - 413, 426, - 411, - 408, - 429 + 404, + 422, + 406, + 410, + 424, + 417, + 430, + 415, + 412, + 433 ] } ], "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 68, + "line": 64, "character": 21 } ] @@ -86362,7 +88280,7 @@ "flags": {}, "type": { "type": "reference", - "id": 546, + "id": 558, "typeArguments": [ { "type": "reference", @@ -86526,7 +88444,7 @@ "flags": {}, "type": { "type": "reference", - "id": 556, + "id": 568, "typeArguments": [ { "type": "reference", @@ -86622,7 +88540,7 @@ "flags": {}, "type": { "type": "reference", - "id": 505, + "id": 517, "typeArguments": [ { "type": "literal", @@ -86631,7 +88549,7 @@ ], "name": "RealtimePostgresChangesFilter", "dereferenced": { - "id": 505, + "id": 517, "name": "RealtimePostgresChangesFilter", "kind": 4194304, "kindString": "Type alias", @@ -86645,7 +88563,7 @@ ], "typeParameter": [ { - "id": 511, + "id": 523, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -86657,7 +88575,7 @@ [ { "type": "reference", - "id": 580, + "id": 592, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT" }, "" @@ -86669,14 +88587,14 @@ "type": { "type": "reflection", "declaration": { - "id": 506, + "id": 518, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 507, + "id": 519, "name": "event", "kind": 1024, "kindString": "Property", @@ -86693,13 +88611,13 @@ ], "type": { "type": "reference", - "id": 511, + "id": 523, "name": "T", "dereferenced": {} } }, { - "id": 510, + "id": 522, "name": "filter", "kind": 1024, "kindString": "Property", @@ -86722,7 +88640,7 @@ } }, { - "id": 508, + "id": 520, "name": "schema", "kind": 1024, "kindString": "Property", @@ -86743,7 +88661,7 @@ } }, { - "id": 509, + "id": 521, "name": "table", "kind": 1024, "kindString": "Property", @@ -86771,10 +88689,10 @@ "title": "Properties", "kind": 1024, "children": [ - 507, - 510, - 508, - 509 + 519, + 522, + 520, + 521 ] } ], @@ -86820,7 +88738,7 @@ "flags": {}, "type": { "type": "reference", - "id": 512, + "id": 524, "typeArguments": [ { "type": "reference", @@ -86916,7 +88834,7 @@ "flags": {}, "type": { "type": "reference", - "id": 505, + "id": 517, "typeArguments": [ { "type": "literal", @@ -86925,7 +88843,7 @@ ], "name": "RealtimePostgresChangesFilter", "dereferenced": { - "id": 505, + "id": 517, "name": "RealtimePostgresChangesFilter", "kind": 4194304, "kindString": "Type alias", @@ -86939,7 +88857,7 @@ ], "typeParameter": [ { - "id": 511, + "id": 523, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -86951,7 +88869,7 @@ [ { "type": "reference", - "id": 580, + "id": 592, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT" }, "" @@ -86963,14 +88881,14 @@ "type": { "type": "reflection", "declaration": { - "id": 506, + "id": 518, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 507, + "id": 519, "name": "event", "kind": 1024, "kindString": "Property", @@ -86987,13 +88905,13 @@ ], "type": { "type": "reference", - "id": 511, + "id": 523, "name": "T", "dereferenced": {} } }, { - "id": 510, + "id": 522, "name": "filter", "kind": 1024, "kindString": "Property", @@ -87016,7 +88934,7 @@ } }, { - "id": 508, + "id": 520, "name": "schema", "kind": 1024, "kindString": "Property", @@ -87037,7 +88955,7 @@ } }, { - "id": 509, + "id": 521, "name": "table", "kind": 1024, "kindString": "Property", @@ -87065,10 +88983,10 @@ "title": "Properties", "kind": 1024, "children": [ - 507, - 510, - 508, - 509 + 519, + 522, + 520, + 521 ] } ], @@ -87114,7 +89032,7 @@ "flags": {}, "type": { "type": "reference", - "id": 517, + "id": 529, "typeArguments": [ { "type": "reference", @@ -87210,7 +89128,7 @@ "flags": {}, "type": { "type": "reference", - "id": 505, + "id": 517, "typeArguments": [ { "type": "literal", @@ -87219,7 +89137,7 @@ ], "name": "RealtimePostgresChangesFilter", "dereferenced": { - "id": 505, + "id": 517, "name": "RealtimePostgresChangesFilter", "kind": 4194304, "kindString": "Type alias", @@ -87233,7 +89151,7 @@ ], "typeParameter": [ { - "id": 511, + "id": 523, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -87245,7 +89163,7 @@ [ { "type": "reference", - "id": 580, + "id": 592, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT" }, "" @@ -87257,14 +89175,14 @@ "type": { "type": "reflection", "declaration": { - "id": 506, + "id": 518, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 507, + "id": 519, "name": "event", "kind": 1024, "kindString": "Property", @@ -87281,13 +89199,13 @@ ], "type": { "type": "reference", - "id": 511, + "id": 523, "name": "T", "dereferenced": {} } }, { - "id": 510, + "id": 522, "name": "filter", "kind": 1024, "kindString": "Property", @@ -87310,7 +89228,7 @@ } }, { - "id": 508, + "id": 520, "name": "schema", "kind": 1024, "kindString": "Property", @@ -87331,7 +89249,7 @@ } }, { - "id": 509, + "id": 521, "name": "table", "kind": 1024, "kindString": "Property", @@ -87359,10 +89277,10 @@ "title": "Properties", "kind": 1024, "children": [ - 507, - 510, - 508, - 509 + 519, + 522, + 520, + 521 ] } ], @@ -87408,7 +89326,7 @@ "flags": {}, "type": { "type": "reference", - "id": 527, + "id": 539, "typeArguments": [ { "type": "reference", @@ -87504,7 +89422,7 @@ "flags": {}, "type": { "type": "reference", - "id": 505, + "id": 517, "typeArguments": [ { "type": "literal", @@ -87513,7 +89431,7 @@ ], "name": "RealtimePostgresChangesFilter", "dereferenced": { - "id": 505, + "id": 517, "name": "RealtimePostgresChangesFilter", "kind": 4194304, "kindString": "Type alias", @@ -87527,7 +89445,7 @@ ], "typeParameter": [ { - "id": 511, + "id": 523, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -87539,7 +89457,7 @@ [ { "type": "reference", - "id": 580, + "id": 592, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT" }, "" @@ -87551,14 +89469,14 @@ "type": { "type": "reflection", "declaration": { - "id": 506, + "id": 518, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 507, + "id": 519, "name": "event", "kind": 1024, "kindString": "Property", @@ -87575,13 +89493,13 @@ ], "type": { "type": "reference", - "id": 511, + "id": 523, "name": "T", "dereferenced": {} } }, { - "id": 510, + "id": 522, "name": "filter", "kind": 1024, "kindString": "Property", @@ -87604,7 +89522,7 @@ } }, { - "id": 508, + "id": 520, "name": "schema", "kind": 1024, "kindString": "Property", @@ -87625,7 +89543,7 @@ } }, { - "id": 509, + "id": 521, "name": "table", "kind": 1024, "kindString": "Property", @@ -87653,10 +89571,10 @@ "title": "Properties", "kind": 1024, "children": [ - 507, - 510, - 508, - 509 + 519, + 522, + 520, + 521 ] } ], @@ -87702,7 +89620,7 @@ "flags": {}, "type": { "type": "reference", - "id": 536, + "id": 548, "typeArguments": [ { "type": "reference", @@ -88239,7 +90157,7 @@ ], "type": { "type": "reference", - "id": 566, + "id": 578, "typeArguments": [ { "type": "reference", @@ -89045,7 +90963,7 @@ ], "type": { "type": "reference", - "id": 566, + "id": 578, "typeArguments": [ { "type": "reflection", @@ -89060,7 +90978,7 @@ ], "name": "RealtimePresenceState", "dereferenced": { - "id": 566, + "id": 578, "name": "RealtimePresenceState", "kind": 4194304, "kindString": "Type alias", @@ -89074,7 +90992,7 @@ ], "typeParameter": [ { - "id": 574, + "id": 586, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -89082,7 +91000,7 @@ "type": { "type": "reflection", "declaration": { - "id": 570, + "id": 582, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -89095,14 +91013,14 @@ } ], "indexSignature": { - "id": 571, + "id": 583, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 572, + "id": 584, "name": "key", "kind": 32768, "flags": {}, @@ -89122,7 +91040,7 @@ "default": { "type": "reflection", "declaration": { - "id": 573, + "id": 585, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -89141,7 +91059,7 @@ "type": { "type": "reflection", "declaration": { - "id": 567, + "id": 579, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -89154,14 +91072,14 @@ } ], "indexSignature": { - "id": 568, + "id": 580, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 569, + "id": 581, "name": "key", "kind": 32768, "flags": {}, @@ -89178,7 +91096,7 @@ "typeArguments": [ { "type": "reference", - "id": 574, + "id": 586, "name": "T" } ], @@ -89493,7 +91411,7 @@ } }, { - "id": 479, + "id": 491, "name": "RealtimeClientOptions", "kind": 4194304, "kindString": "Type alias", @@ -89508,14 +91426,14 @@ "type": { "type": "reflection", "declaration": { - "id": 480, + "id": 492, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 486, + "id": 498, "name": "decode", "kind": 1024, "kindString": "Property", @@ -89537,7 +91455,7 @@ } }, { - "id": 485, + "id": 497, "name": "encode", "kind": 1024, "kindString": "Property", @@ -89559,7 +91477,7 @@ } }, { - "id": 497, + "id": 509, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -89579,7 +91497,7 @@ } }, { - "id": 488, + "id": 500, "name": "headers", "kind": 1024, "kindString": "Property", @@ -89596,7 +91514,7 @@ "type": { "type": "reflection", "declaration": { - "id": 489, + "id": 501, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -89609,14 +91527,14 @@ } ], "indexSignature": { - "id": 490, + "id": 502, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 491, + "id": 503, "name": "key", "kind": 32768, "flags": {}, @@ -89635,7 +91553,7 @@ } }, { - "id": 483, + "id": 495, "name": "heartbeatIntervalMs", "kind": 1024, "kindString": "Property", @@ -89655,7 +91573,7 @@ } }, { - "id": 496, + "id": 508, "name": "log_level", "kind": 1024, "kindString": "Property", @@ -89692,7 +91610,7 @@ } }, { - "id": 484, + "id": 496, "name": "logger", "kind": 1024, "kindString": "Property", @@ -89714,7 +91632,7 @@ } }, { - "id": 492, + "id": 504, "name": "params", "kind": 1024, "kindString": "Property", @@ -89731,7 +91649,7 @@ "type": { "type": "reflection", "declaration": { - "id": 493, + "id": 505, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -89744,14 +91662,14 @@ } ], "indexSignature": { - "id": 494, + "id": 506, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 495, + "id": 507, "name": "key", "kind": 32768, "flags": {}, @@ -89770,7 +91688,7 @@ } }, { - "id": 487, + "id": 499, "name": "reconnectAfterMs", "kind": 1024, "kindString": "Property", @@ -89792,7 +91710,7 @@ } }, { - "id": 482, + "id": 494, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -89812,7 +91730,7 @@ } }, { - "id": 481, + "id": 493, "name": "transport", "kind": 1024, "kindString": "Property", @@ -89837,17 +91755,17 @@ "title": "Properties", "kind": 1024, "children": [ - 486, - 485, + 498, 497, - 488, - 483, + 509, + 500, + 495, + 508, 496, - 484, - 492, - 487, - 482, - 481 + 504, + 499, + 494, + 493 ] } ], @@ -89862,7 +91780,7 @@ } }, { - "id": 498, + "id": 510, "name": "RealtimeMessage", "kind": 4194304, "kindString": "Type alias", @@ -89877,14 +91795,14 @@ "type": { "type": "reflection", "declaration": { - "id": 499, + "id": 511, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 501, + "id": 513, "name": "event", "kind": 1024, "kindString": "Property", @@ -89902,7 +91820,7 @@ } }, { - "id": 504, + "id": 516, "name": "join_ref", "kind": 1024, "kindString": "Property", @@ -89922,7 +91840,7 @@ } }, { - "id": 502, + "id": 514, "name": "payload", "kind": 1024, "kindString": "Property", @@ -89940,7 +91858,7 @@ } }, { - "id": 503, + "id": 515, "name": "ref", "kind": 1024, "kindString": "Property", @@ -89958,7 +91876,7 @@ } }, { - "id": 500, + "id": 512, "name": "topic", "kind": 1024, "kindString": "Property", @@ -89981,11 +91899,11 @@ "title": "Properties", "kind": 1024, "children": [ - 501, - 504, - 502, - 503, - 500 + 513, + 516, + 514, + 515, + 512 ] } ], @@ -90000,7 +91918,7 @@ } }, { - "id": 505, + "id": 517, "name": "RealtimePostgresChangesFilter", "kind": 4194304, "kindString": "Type alias", @@ -90014,7 +91932,7 @@ ], "typeParameter": [ { - "id": 511, + "id": 523, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -90026,7 +91944,7 @@ [ { "type": "reference", - "id": 580, + "id": 592, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT" }, "" @@ -90038,14 +91956,14 @@ "type": { "type": "reflection", "declaration": { - "id": 506, + "id": 518, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 507, + "id": 519, "name": "event", "kind": 1024, "kindString": "Property", @@ -90062,13 +91980,13 @@ ], "type": { "type": "reference", - "id": 511, + "id": 523, "name": "T", "dereferenced": {} } }, { - "id": 510, + "id": 522, "name": "filter", "kind": 1024, "kindString": "Property", @@ -90091,7 +92009,7 @@ } }, { - "id": 508, + "id": 520, "name": "schema", "kind": 1024, "kindString": "Property", @@ -90112,7 +92030,7 @@ } }, { - "id": 509, + "id": 521, "name": "table", "kind": 1024, "kindString": "Property", @@ -90140,10 +92058,10 @@ "title": "Properties", "kind": 1024, "children": [ - 507, - 510, - 508, - 509 + 519, + 522, + 520, + 521 ] } ], @@ -90158,7 +92076,7 @@ } }, { - "id": 512, + "id": 524, "name": "RealtimePostgresChangesPayload", "kind": 4194304, "kindString": "Type alias", @@ -90172,7 +92090,7 @@ ], "typeParameter": [ { - "id": 516, + "id": 528, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -90180,7 +92098,7 @@ "type": { "type": "reflection", "declaration": { - "id": 513, + "id": 525, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -90193,14 +92111,14 @@ } ], "indexSignature": { - "id": 514, + "id": 526, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 515, + "id": 527, "name": "key", "kind": 32768, "flags": {}, @@ -90223,7 +92141,7 @@ "type": "union", "types": [ { - "id": 517, + "id": 529, "name": "RealtimePostgresInsertPayload", "kind": 4194304, "kindString": "Type alias", @@ -90237,7 +92155,7 @@ ], "typeParameter": [ { - "id": 526, + "id": 538, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -90245,7 +92163,7 @@ "type": { "type": "reflection", "declaration": { - "id": 523, + "id": 535, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -90258,14 +92176,14 @@ } ], "indexSignature": { - "id": 524, + "id": 536, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 525, + "id": 537, "name": "key", "kind": 32768, "flags": {}, @@ -90294,14 +92212,14 @@ { "type": "reflection", "declaration": { - "id": 518, + "id": 530, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 519, + "id": 531, "name": "eventType", "kind": 1024, "kindString": "Property", @@ -90320,7 +92238,7 @@ [ { "type": "reference", - "id": 582, + "id": 594, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT.INSERT" }, "" @@ -90329,7 +92247,7 @@ } }, { - "id": 520, + "id": 532, "name": "new", "kind": 1024, "kindString": "Property", @@ -90343,12 +92261,12 @@ ], "type": { "type": "reference", - "id": 526, + "id": 538, "name": "T" } }, { - "id": 521, + "id": 533, "name": "old", "kind": 1024, "kindString": "Property", @@ -90363,7 +92281,7 @@ "type": { "type": "reflection", "declaration": { - "id": 522, + "id": 534, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -90384,9 +92302,9 @@ "title": "Properties", "kind": 1024, "children": [ - 519, - 520, - 521 + 531, + 532, + 533 ] } ], @@ -90403,7 +92321,7 @@ } }, { - "id": 527, + "id": 539, "name": "RealtimePostgresUpdatePayload", "kind": 4194304, "kindString": "Type alias", @@ -90417,7 +92335,7 @@ ], "typeParameter": [ { - "id": 535, + "id": 547, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -90425,7 +92343,7 @@ "type": { "type": "reflection", "declaration": { - "id": 532, + "id": 544, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -90438,14 +92356,14 @@ } ], "indexSignature": { - "id": 533, + "id": 545, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 534, + "id": 546, "name": "key", "kind": 32768, "flags": {}, @@ -90474,14 +92392,14 @@ { "type": "reflection", "declaration": { - "id": 528, + "id": 540, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 529, + "id": 541, "name": "eventType", "kind": 1024, "kindString": "Property", @@ -90500,7 +92418,7 @@ [ { "type": "reference", - "id": 583, + "id": 595, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT.UPDATE" }, "" @@ -90509,7 +92427,7 @@ } }, { - "id": 530, + "id": 542, "name": "new", "kind": 1024, "kindString": "Property", @@ -90523,12 +92441,12 @@ ], "type": { "type": "reference", - "id": 535, + "id": 547, "name": "T" } }, { - "id": 531, + "id": 543, "name": "old", "kind": 1024, "kindString": "Property", @@ -90545,7 +92463,7 @@ "typeArguments": [ { "type": "reference", - "id": 535, + "id": 547, "name": "T" } ], @@ -90560,9 +92478,9 @@ "title": "Properties", "kind": 1024, "children": [ - 529, - 530, - 531 + 541, + 542, + 543 ] } ], @@ -90579,7 +92497,7 @@ } }, { - "id": 536, + "id": 548, "name": "RealtimePostgresDeletePayload", "kind": 4194304, "kindString": "Type alias", @@ -90593,7 +92511,7 @@ ], "typeParameter": [ { - "id": 545, + "id": 557, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -90601,7 +92519,7 @@ "type": { "type": "reflection", "declaration": { - "id": 542, + "id": 554, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -90614,14 +92532,14 @@ } ], "indexSignature": { - "id": 543, + "id": 555, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 544, + "id": 556, "name": "key", "kind": 32768, "flags": {}, @@ -90650,14 +92568,14 @@ { "type": "reflection", "declaration": { - "id": 537, + "id": 549, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 538, + "id": 550, "name": "eventType", "kind": 1024, "kindString": "Property", @@ -90676,7 +92594,7 @@ [ { "type": "reference", - "id": 584, + "id": 596, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT.DELETE" }, "" @@ -90685,7 +92603,7 @@ } }, { - "id": 539, + "id": 551, "name": "new", "kind": 1024, "kindString": "Property", @@ -90700,7 +92618,7 @@ "type": { "type": "reflection", "declaration": { - "id": 540, + "id": 552, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -90716,7 +92634,7 @@ } }, { - "id": 541, + "id": 553, "name": "old", "kind": 1024, "kindString": "Property", @@ -90733,7 +92651,7 @@ "typeArguments": [ { "type": "reference", - "id": 545, + "id": 557, "name": "T" } ], @@ -90748,9 +92666,9 @@ "title": "Properties", "kind": 1024, "children": [ - 538, - 539, - 541 + 550, + 551, + 553 ] } ], @@ -90770,7 +92688,7 @@ } }, { - "id": 536, + "id": 548, "name": "RealtimePostgresDeletePayload", "kind": 4194304, "kindString": "Type alias", @@ -90784,7 +92702,7 @@ ], "typeParameter": [ { - "id": 545, + "id": 557, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -90792,7 +92710,7 @@ "type": { "type": "reflection", "declaration": { - "id": 542, + "id": 554, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -90805,14 +92723,14 @@ } ], "indexSignature": { - "id": 543, + "id": 555, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 544, + "id": 556, "name": "key", "kind": 32768, "flags": {}, @@ -90841,14 +92759,14 @@ { "type": "reflection", "declaration": { - "id": 537, + "id": 549, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 538, + "id": 550, "name": "eventType", "kind": 1024, "kindString": "Property", @@ -90867,7 +92785,7 @@ [ { "type": "reference", - "id": 584, + "id": 596, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT.DELETE" }, "" @@ -90876,7 +92794,7 @@ } }, { - "id": 539, + "id": 551, "name": "new", "kind": 1024, "kindString": "Property", @@ -90891,7 +92809,7 @@ "type": { "type": "reflection", "declaration": { - "id": 540, + "id": 552, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -90907,7 +92825,7 @@ } }, { - "id": 541, + "id": 553, "name": "old", "kind": 1024, "kindString": "Property", @@ -90924,7 +92842,7 @@ "typeArguments": [ { "type": "reference", - "id": 545, + "id": 557, "name": "T" } ], @@ -90939,9 +92857,9 @@ "title": "Properties", "kind": 1024, "children": [ - 538, - 539, - 541 + 550, + 551, + 553 ] } ], @@ -90958,7 +92876,7 @@ } }, { - "id": 517, + "id": 529, "name": "RealtimePostgresInsertPayload", "kind": 4194304, "kindString": "Type alias", @@ -90972,7 +92890,7 @@ ], "typeParameter": [ { - "id": 526, + "id": 538, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -90980,7 +92898,7 @@ "type": { "type": "reflection", "declaration": { - "id": 523, + "id": 535, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -90993,14 +92911,14 @@ } ], "indexSignature": { - "id": 524, + "id": 536, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 525, + "id": 537, "name": "key", "kind": 32768, "flags": {}, @@ -91029,14 +92947,14 @@ { "type": "reflection", "declaration": { - "id": 518, + "id": 530, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 519, + "id": 531, "name": "eventType", "kind": 1024, "kindString": "Property", @@ -91055,7 +92973,7 @@ [ { "type": "reference", - "id": 582, + "id": 594, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT.INSERT" }, "" @@ -91064,7 +92982,7 @@ } }, { - "id": 520, + "id": 532, "name": "new", "kind": 1024, "kindString": "Property", @@ -91078,12 +92996,12 @@ ], "type": { "type": "reference", - "id": 526, + "id": 538, "name": "T" } }, { - "id": 521, + "id": 533, "name": "old", "kind": 1024, "kindString": "Property", @@ -91098,7 +93016,7 @@ "type": { "type": "reflection", "declaration": { - "id": 522, + "id": 534, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -91119,9 +93037,9 @@ "title": "Properties", "kind": 1024, "children": [ - 519, - 520, - 521 + 531, + 532, + 533 ] } ], @@ -91138,7 +93056,7 @@ } }, { - "id": 527, + "id": 539, "name": "RealtimePostgresUpdatePayload", "kind": 4194304, "kindString": "Type alias", @@ -91152,7 +93070,7 @@ ], "typeParameter": [ { - "id": 535, + "id": 547, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -91160,7 +93078,7 @@ "type": { "type": "reflection", "declaration": { - "id": 532, + "id": 544, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -91173,14 +93091,14 @@ } ], "indexSignature": { - "id": 533, + "id": 545, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 534, + "id": 546, "name": "key", "kind": 32768, "flags": {}, @@ -91209,14 +93127,14 @@ { "type": "reflection", "declaration": { - "id": 528, + "id": 540, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 529, + "id": 541, "name": "eventType", "kind": 1024, "kindString": "Property", @@ -91235,7 +93153,7 @@ [ { "type": "reference", - "id": 583, + "id": 595, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT.UPDATE" }, "" @@ -91244,7 +93162,7 @@ } }, { - "id": 530, + "id": 542, "name": "new", "kind": 1024, "kindString": "Property", @@ -91258,12 +93176,12 @@ ], "type": { "type": "reference", - "id": 535, + "id": 547, "name": "T" } }, { - "id": 531, + "id": 543, "name": "old", "kind": 1024, "kindString": "Property", @@ -91280,7 +93198,7 @@ "typeArguments": [ { "type": "reference", - "id": 535, + "id": 547, "name": "T" } ], @@ -91295,9 +93213,9 @@ "title": "Properties", "kind": 1024, "children": [ - 529, - 530, - 531 + 541, + 542, + 543 ] } ], @@ -91314,7 +93232,7 @@ } }, { - "id": 546, + "id": 558, "name": "RealtimePresenceJoinPayload", "kind": 4194304, "kindString": "Type alias", @@ -91328,7 +93246,7 @@ ], "typeParameter": [ { - "id": 555, + "id": 567, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -91336,7 +93254,7 @@ "type": { "type": "reflection", "declaration": { - "id": 552, + "id": 564, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -91349,14 +93267,14 @@ } ], "indexSignature": { - "id": 553, + "id": 565, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 554, + "id": 566, "name": "key", "kind": 32768, "flags": {}, @@ -91378,14 +93296,14 @@ "type": { "type": "reflection", "declaration": { - "id": 547, + "id": 559, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 550, + "id": 562, "name": "currentPresences", "kind": 1024, "kindString": "Property", @@ -91404,7 +93322,7 @@ "typeArguments": [ { "type": "reference", - "id": 555, + "id": 567, "name": "T" } ], @@ -91413,7 +93331,7 @@ } }, { - "id": 548, + "id": 560, "name": "event", "kind": 1024, "kindString": "Property", @@ -91432,7 +93350,7 @@ [ { "type": "reference", - "id": 587, + "id": 599, "name": "REALTIME_PRESENCE_LISTEN_EVENTS.JOIN" }, "" @@ -91441,7 +93359,7 @@ } }, { - "id": 549, + "id": 561, "name": "key", "kind": 1024, "kindString": "Property", @@ -91459,7 +93377,7 @@ } }, { - "id": 551, + "id": 563, "name": "newPresences", "kind": 1024, "kindString": "Property", @@ -91478,7 +93396,7 @@ "typeArguments": [ { "type": "reference", - "id": 555, + "id": 567, "name": "T" } ], @@ -91492,10 +93410,10 @@ "title": "Properties", "kind": 1024, "children": [ - 550, - 548, - 549, - 551 + 562, + 560, + 561, + 563 ] } ], @@ -91510,7 +93428,7 @@ } }, { - "id": 556, + "id": 568, "name": "RealtimePresenceLeavePayload", "kind": 4194304, "kindString": "Type alias", @@ -91524,7 +93442,7 @@ ], "typeParameter": [ { - "id": 565, + "id": 577, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -91532,7 +93450,7 @@ "type": { "type": "reflection", "declaration": { - "id": 562, + "id": 574, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -91545,14 +93463,14 @@ } ], "indexSignature": { - "id": 563, + "id": 575, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 564, + "id": 576, "name": "key", "kind": 32768, "flags": {}, @@ -91574,14 +93492,14 @@ "type": { "type": "reflection", "declaration": { - "id": 557, + "id": 569, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 560, + "id": 572, "name": "currentPresences", "kind": 1024, "kindString": "Property", @@ -91600,7 +93518,7 @@ "typeArguments": [ { "type": "reference", - "id": 565, + "id": 577, "name": "T" } ], @@ -91609,7 +93527,7 @@ } }, { - "id": 558, + "id": 570, "name": "event", "kind": 1024, "kindString": "Property", @@ -91628,7 +93546,7 @@ [ { "type": "reference", - "id": 588, + "id": 600, "name": "REALTIME_PRESENCE_LISTEN_EVENTS.LEAVE" }, "" @@ -91637,7 +93555,7 @@ } }, { - "id": 559, + "id": 571, "name": "key", "kind": 1024, "kindString": "Property", @@ -91655,7 +93573,7 @@ } }, { - "id": 561, + "id": 573, "name": "leftPresences", "kind": 1024, "kindString": "Property", @@ -91674,7 +93592,7 @@ "typeArguments": [ { "type": "reference", - "id": 565, + "id": 577, "name": "T" } ], @@ -91688,10 +93606,10 @@ "title": "Properties", "kind": 1024, "children": [ - 560, - 558, - 559, - 561 + 572, + 570, + 571, + 573 ] } ], @@ -91706,7 +93624,7 @@ } }, { - "id": 566, + "id": 578, "name": "RealtimePresenceState", "kind": 4194304, "kindString": "Type alias", @@ -91720,7 +93638,7 @@ ], "typeParameter": [ { - "id": 574, + "id": 586, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -91728,7 +93646,7 @@ "type": { "type": "reflection", "declaration": { - "id": 570, + "id": 582, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -91741,14 +93659,14 @@ } ], "indexSignature": { - "id": 571, + "id": 583, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 572, + "id": 584, "name": "key", "kind": 32768, "flags": {}, @@ -91768,7 +93686,7 @@ "default": { "type": "reflection", "declaration": { - "id": 573, + "id": 585, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -91787,7 +93705,7 @@ "type": { "type": "reflection", "declaration": { - "id": 567, + "id": 579, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -91800,14 +93718,14 @@ } ], "indexSignature": { - "id": 568, + "id": 580, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 569, + "id": 581, "name": "key", "kind": 32768, "flags": {}, @@ -91824,7 +93742,7 @@ "typeArguments": [ { "type": "reference", - "id": 574, + "id": 586, "name": "T" } ], @@ -91836,7 +93754,7 @@ } }, { - "id": 575, + "id": 587, "name": "RealtimeRemoveChannelResponse", "kind": 4194304, "kindString": "Type alias", @@ -91867,7 +93785,7 @@ } }, { - "id": 594, + "id": 606, "name": "REALTIME_CHANNEL_STATES", "kind": 32, "kindString": "Variable", @@ -91896,10 +93814,10 @@ "title": "Enumerations", "kind": 8, "children": [ - 576, - 580, - 585, - 589 + 588, + 592, + 597, + 601 ] }, { @@ -91917,24 +93835,24 @@ "children": [ 347, 358, - 479, - 498, - 505, - 512, - 536, + 491, + 510, 517, - 527, - 546, - 556, - 566, - 575 + 524, + 548, + 529, + 539, + 558, + 568, + 578, + 587 ] }, { "title": "Variables", "kind": 32, "children": [ - 594 + 606 ] } ], @@ -91961,14 +93879,14 @@ "flags": {}, "children": [ { - "id": 445, + "id": 449, "name": "StorageApiError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 446, + "id": 450, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -91982,14 +93900,14 @@ ], "signatures": [ { - "id": 447, + "id": 451, "name": "new StorageApiError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 448, + "id": 452, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -92000,7 +93918,7 @@ } }, { - "id": 449, + "id": 453, "name": "status", "kind": 32768, "kindString": "Parameter", @@ -92013,24 +93931,24 @@ ], "type": { "type": "reference", - "id": 445, + "id": 449, "name": "StorageApiError" }, "overwrites": { "type": "reference", - "id": 442, + "id": 446, "name": "StorageError.constructor" } } ], "overwrites": { "type": "reference", - "id": 441, + "id": 445, "name": "StorageError.constructor" } }, { - "id": 450, + "id": 454, "name": "status", "kind": 1024, "kindString": "Property", @@ -92048,7 +93966,7 @@ } }, { - "id": 451, + "id": 455, "name": "toJSON", "kind": 2048, "kindString": "Method", @@ -92062,7 +93980,7 @@ ], "signatures": [ { - "id": 452, + "id": 456, "name": "toJSON", "kind": 4096, "kindString": "Call signature", @@ -92070,14 +93988,14 @@ "type": { "type": "reflection", "declaration": { - "id": 453, + "id": 457, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 455, + "id": 459, "name": "message", "kind": 1024, "kindString": "Property", @@ -92096,7 +94014,7 @@ "defaultValue": "..." }, { - "id": 454, + "id": 458, "name": "name", "kind": 1024, "kindString": "Property", @@ -92115,7 +94033,7 @@ "defaultValue": "..." }, { - "id": 456, + "id": 460, "name": "status", "kind": 1024, "kindString": "Property", @@ -92139,9 +94057,9 @@ "title": "Properties", "kind": 1024, "children": [ - 455, - 454, - 456 + 459, + 458, + 460 ] } ] @@ -92156,21 +94074,21 @@ "title": "Constructors", "kind": 512, "children": [ - 446 + 450 ] }, { "title": "Properties", "kind": 1024, "children": [ - 450 + 454 ] }, { "title": "Methods", "kind": 2048, "children": [ - 451 + 455 ] } ], @@ -92184,20 +94102,20 @@ "extendedTypes": [ { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } ] }, { - "id": 300, + "id": 304, "name": "StorageClient", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 301, + "id": 305, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -92211,14 +94129,14 @@ ], "signatures": [ { - "id": 302, + "id": 306, "name": "new StorageClient", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 303, + "id": 307, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -92229,7 +94147,7 @@ } }, { - "id": 304, + "id": 308, "name": "headers", "kind": 32768, "kindString": "Parameter", @@ -92237,20 +94155,20 @@ "type": { "type": "reflection", "declaration": { - "id": 305, + "id": 309, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": { - "id": 306, + "id": 310, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 307, + "id": 311, "name": "key", "kind": 32768, "flags": {}, @@ -92270,7 +94188,7 @@ "defaultValue": "{}" }, { - "id": 308, + "id": 312, "name": "fetch", "kind": 32768, "kindString": "Parameter", @@ -92280,21 +94198,21 @@ "type": { "type": "reflection", "declaration": { - "id": 309, + "id": 313, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 310, + "id": 314, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 311, + "id": 315, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -92307,7 +94225,7 @@ } }, { - "id": 312, + "id": 316, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -92344,7 +94262,7 @@ ], "type": { "type": "reference", - "id": 300, + "id": 304, "name": "StorageClient" }, "overwrites": { @@ -92361,7 +94279,7 @@ } }, { - "id": 343, + "id": 347, "name": "createBucket", "kind": 2048, "kindString": "Method", @@ -92375,7 +94293,7 @@ ], "signatures": [ { - "id": 344, + "id": 348, "name": "createBucket", "kind": 4096, "kindString": "Call signature", @@ -92386,7 +94304,7 @@ }, "parameters": [ { - "id": 345, + "id": 349, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -92400,7 +94318,7 @@ } }, { - "id": 346, + "id": 350, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -92408,14 +94326,14 @@ "type": { "type": "reflection", "declaration": { - "id": 347, + "id": 351, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 350, + "id": 354, "name": "allowedMimeTypes", "kind": 1024, "kindString": "Property", @@ -92450,7 +94368,7 @@ } }, { - "id": 349, + "id": 353, "name": "fileSizeLimit", "kind": 1024, "kindString": "Property", @@ -92486,7 +94404,7 @@ } }, { - "id": 348, + "id": 352, "name": "public", "kind": 1024, "kindString": "Property", @@ -92512,9 +94430,9 @@ "title": "Properties", "kind": 1024, "children": [ - 350, - 349, - 348 + 354, + 353, + 352 ] } ] @@ -92532,14 +94450,14 @@ { "type": "reflection", "declaration": { - "id": 351, + "id": 355, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 352, + "id": 356, "name": "data", "kind": 1024, "kindString": "Property", @@ -92556,7 +94474,7 @@ "typeArguments": [ { "type": "reference", - "id": 395, + "id": 399, "name": "Bucket" }, { @@ -92570,7 +94488,7 @@ } }, { - "id": 353, + "id": 357, "name": "error", "kind": 1024, "kindString": "Property", @@ -92593,8 +94511,8 @@ "title": "Properties", "kind": 1024, "children": [ - 352, - 353 + 356, + 357 ] } ] @@ -92603,14 +94521,14 @@ { "type": "reflection", "declaration": { - "id": 354, + "id": 358, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 355, + "id": 359, "name": "data", "kind": 1024, "kindString": "Property", @@ -92628,7 +94546,7 @@ } }, { - "id": 356, + "id": 360, "name": "error", "kind": 1024, "kindString": "Property", @@ -92642,7 +94560,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -92652,8 +94570,8 @@ "title": "Properties", "kind": 1024, "children": [ - 355, - 356 + 359, + 360 ] } ] @@ -92680,7 +94598,7 @@ } }, { - "id": 384, + "id": 388, "name": "deleteBucket", "kind": 2048, "kindString": "Method", @@ -92694,7 +94612,7 @@ ], "signatures": [ { - "id": 385, + "id": 389, "name": "deleteBucket", "kind": 4096, "kindString": "Call signature", @@ -92704,7 +94622,7 @@ }, "parameters": [ { - "id": 386, + "id": 390, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -92727,14 +94645,14 @@ { "type": "reflection", "declaration": { - "id": 387, + "id": 391, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 388, + "id": 392, "name": "data", "kind": 1024, "kindString": "Property", @@ -92749,14 +94667,14 @@ "type": { "type": "reflection", "declaration": { - "id": 389, + "id": 393, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 390, + "id": 394, "name": "message", "kind": 1024, "kindString": "Property", @@ -92779,7 +94697,7 @@ "title": "Properties", "kind": 1024, "children": [ - 390 + 394 ] } ] @@ -92787,7 +94705,7 @@ } }, { - "id": 391, + "id": 395, "name": "error", "kind": 1024, "kindString": "Property", @@ -92810,8 +94728,8 @@ "title": "Properties", "kind": 1024, "children": [ - 388, - 391 + 392, + 395 ] } ] @@ -92820,14 +94738,14 @@ { "type": "reflection", "declaration": { - "id": 392, + "id": 396, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 393, + "id": 397, "name": "data", "kind": 1024, "kindString": "Property", @@ -92845,7 +94763,7 @@ } }, { - "id": 394, + "id": 398, "name": "error", "kind": 1024, "kindString": "Property", @@ -92859,7 +94777,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -92869,8 +94787,8 @@ "title": "Properties", "kind": 1024, "children": [ - 393, - 394 + 397, + 398 ] } ] @@ -92897,7 +94815,7 @@ } }, { - "id": 373, + "id": 377, "name": "emptyBucket", "kind": 2048, "kindString": "Method", @@ -92911,7 +94829,7 @@ ], "signatures": [ { - "id": 374, + "id": 378, "name": "emptyBucket", "kind": 4096, "kindString": "Call signature", @@ -92921,7 +94839,7 @@ }, "parameters": [ { - "id": 375, + "id": 379, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -92944,14 +94862,14 @@ { "type": "reflection", "declaration": { - "id": 376, + "id": 380, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 377, + "id": 381, "name": "data", "kind": 1024, "kindString": "Property", @@ -92966,14 +94884,14 @@ "type": { "type": "reflection", "declaration": { - "id": 378, + "id": 382, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 379, + "id": 383, "name": "message", "kind": 1024, "kindString": "Property", @@ -92996,7 +94914,7 @@ "title": "Properties", "kind": 1024, "children": [ - 379 + 383 ] } ] @@ -93004,7 +94922,7 @@ } }, { - "id": 380, + "id": 384, "name": "error", "kind": 1024, "kindString": "Property", @@ -93027,8 +94945,8 @@ "title": "Properties", "kind": 1024, "children": [ - 377, - 380 + 381, + 384 ] } ] @@ -93037,14 +94955,14 @@ { "type": "reflection", "declaration": { - "id": 381, + "id": 385, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 382, + "id": 386, "name": "data", "kind": 1024, "kindString": "Property", @@ -93062,7 +94980,7 @@ } }, { - "id": 383, + "id": 387, "name": "error", "kind": 1024, "kindString": "Property", @@ -93076,7 +94994,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -93086,8 +95004,8 @@ "title": "Properties", "kind": 1024, "children": [ - 382, - 383 + 386, + 387 ] } ] @@ -93114,7 +95032,7 @@ } }, { - "id": 313, + "id": 317, "name": "from", "kind": 2048, "kindString": "Method", @@ -93128,7 +95046,7 @@ ], "signatures": [ { - "id": 314, + "id": 318, "name": "from", "kind": 4096, "kindString": "Call signature", @@ -93138,7 +95056,7 @@ }, "parameters": [ { - "id": 315, + "id": 319, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -93161,7 +95079,7 @@ ] }, { - "id": 334, + "id": 338, "name": "getBucket", "kind": 2048, "kindString": "Method", @@ -93175,7 +95093,7 @@ ], "signatures": [ { - "id": 335, + "id": 339, "name": "getBucket", "kind": 4096, "kindString": "Call signature", @@ -93185,7 +95103,7 @@ }, "parameters": [ { - "id": 336, + "id": 340, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -93208,14 +95126,14 @@ { "type": "reflection", "declaration": { - "id": 337, + "id": 341, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 338, + "id": 342, "name": "data", "kind": 1024, "kindString": "Property", @@ -93229,12 +95147,12 @@ ], "type": { "type": "reference", - "id": 395, + "id": 399, "name": "Bucket" } }, { - "id": 339, + "id": 343, "name": "error", "kind": 1024, "kindString": "Property", @@ -93257,8 +95175,8 @@ "title": "Properties", "kind": 1024, "children": [ - 338, - 339 + 342, + 343 ] } ] @@ -93267,14 +95185,14 @@ { "type": "reflection", "declaration": { - "id": 340, + "id": 344, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 341, + "id": 345, "name": "data", "kind": 1024, "kindString": "Property", @@ -93292,7 +95210,7 @@ } }, { - "id": 342, + "id": 346, "name": "error", "kind": 1024, "kindString": "Property", @@ -93306,7 +95224,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -93316,8 +95234,8 @@ "title": "Properties", "kind": 1024, "children": [ - 341, - 342 + 345, + 346 ] } ] @@ -93344,7 +95262,7 @@ } }, { - "id": 326, + "id": 330, "name": "listBuckets", "kind": 2048, "kindString": "Method", @@ -93358,7 +95276,7 @@ ], "signatures": [ { - "id": 327, + "id": 331, "name": "listBuckets", "kind": 4096, "kindString": "Call signature", @@ -93375,14 +95293,14 @@ { "type": "reflection", "declaration": { - "id": 328, + "id": 332, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 329, + "id": 333, "name": "data", "kind": 1024, "kindString": "Property", @@ -93398,13 +95316,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 395, + "id": 399, "name": "Bucket" } } }, { - "id": 330, + "id": 334, "name": "error", "kind": 1024, "kindString": "Property", @@ -93427,8 +95345,8 @@ "title": "Properties", "kind": 1024, "children": [ - 329, - 330 + 333, + 334 ] } ] @@ -93437,14 +95355,14 @@ { "type": "reflection", "declaration": { - "id": 331, + "id": 335, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 332, + "id": 336, "name": "data", "kind": 1024, "kindString": "Property", @@ -93462,7 +95380,7 @@ } }, { - "id": 333, + "id": 337, "name": "error", "kind": 1024, "kindString": "Property", @@ -93476,7 +95394,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -93486,8 +95404,8 @@ "title": "Properties", "kind": 1024, "children": [ - 332, - 333 + 336, + 337 ] } ] @@ -93514,7 +95432,7 @@ } }, { - "id": 357, + "id": 361, "name": "updateBucket", "kind": 2048, "kindString": "Method", @@ -93528,7 +95446,7 @@ ], "signatures": [ { - "id": 358, + "id": 362, "name": "updateBucket", "kind": 4096, "kindString": "Call signature", @@ -93538,7 +95456,7 @@ }, "parameters": [ { - "id": 359, + "id": 363, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -93552,7 +95470,7 @@ } }, { - "id": 360, + "id": 364, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -93560,14 +95478,14 @@ "type": { "type": "reflection", "declaration": { - "id": 361, + "id": 365, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 364, + "id": 368, "name": "allowedMimeTypes", "kind": 1024, "kindString": "Property", @@ -93602,7 +95520,7 @@ } }, { - "id": 363, + "id": 367, "name": "fileSizeLimit", "kind": 1024, "kindString": "Property", @@ -93638,7 +95556,7 @@ } }, { - "id": 362, + "id": 366, "name": "public", "kind": 1024, "kindString": "Property", @@ -93664,9 +95582,9 @@ "title": "Properties", "kind": 1024, "children": [ - 364, - 363, - 362 + 368, + 367, + 366 ] } ] @@ -93683,14 +95601,14 @@ { "type": "reflection", "declaration": { - "id": 365, + "id": 369, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 366, + "id": 370, "name": "data", "kind": 1024, "kindString": "Property", @@ -93705,14 +95623,14 @@ "type": { "type": "reflection", "declaration": { - "id": 367, + "id": 371, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 368, + "id": 372, "name": "message", "kind": 1024, "kindString": "Property", @@ -93735,7 +95653,7 @@ "title": "Properties", "kind": 1024, "children": [ - 368 + 372 ] } ] @@ -93743,7 +95661,7 @@ } }, { - "id": 369, + "id": 373, "name": "error", "kind": 1024, "kindString": "Property", @@ -93766,8 +95684,8 @@ "title": "Properties", "kind": 1024, "children": [ - 366, - 369 + 370, + 373 ] } ] @@ -93776,14 +95694,14 @@ { "type": "reflection", "declaration": { - "id": 370, + "id": 374, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 371, + "id": 375, "name": "data", "kind": 1024, "kindString": "Property", @@ -93801,7 +95719,7 @@ } }, { - "id": 372, + "id": 376, "name": "error", "kind": 1024, "kindString": "Property", @@ -93815,7 +95733,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -93825,8 +95743,8 @@ "title": "Properties", "kind": 1024, "children": [ - 371, - 372 + 375, + 376 ] } ] @@ -93858,20 +95776,20 @@ "title": "Constructors", "kind": 512, "children": [ - 301 + 305 ] }, { "title": "Methods", "kind": 2048, "children": [ - 343, - 384, - 373, - 313, - 334, - 326, - 357 + 347, + 388, + 377, + 317, + 338, + 330, + 361 ] } ], @@ -93891,14 +95809,14 @@ ] }, { - "id": 440, + "id": 444, "name": "StorageError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 441, + "id": 445, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -93912,14 +95830,14 @@ ], "signatures": [ { - "id": 442, + "id": 446, "name": "new StorageError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 443, + "id": 447, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -93932,7 +95850,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" }, "overwrites": { @@ -93952,7 +95870,7 @@ "title": "Constructors", "kind": 512, "children": [ - 441 + 445 ] } ], @@ -93974,25 +95892,25 @@ "extendedBy": [ { "type": "reference", - "id": 445, + "id": 449, "name": "StorageApiError" }, { "type": "reference", - "id": 458, + "id": 462, "name": "StorageUnknownError" } ] }, { - "id": 458, + "id": 462, "name": "StorageUnknownError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 459, + "id": 463, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -94006,14 +95924,14 @@ ], "signatures": [ { - "id": 460, + "id": 464, "name": "new StorageUnknownError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 461, + "id": 465, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -94024,7 +95942,7 @@ } }, { - "id": 462, + "id": 466, "name": "originalError", "kind": 32768, "kindString": "Parameter", @@ -94037,24 +95955,24 @@ ], "type": { "type": "reference", - "id": 458, + "id": 462, "name": "StorageUnknownError" }, "overwrites": { "type": "reference", - "id": 442, + "id": 446, "name": "StorageError.constructor" } } ], "overwrites": { "type": "reference", - "id": 441, + "id": 445, "name": "StorageError.constructor" } }, { - "id": 463, + "id": 467, "name": "originalError", "kind": 1024, "kindString": "Property", @@ -94077,14 +95995,14 @@ "title": "Constructors", "kind": 512, "children": [ - 459 + 463 ] }, { "title": "Properties", "kind": 1024, "children": [ - 463 + 467 ] } ], @@ -94098,20 +96016,20 @@ "extendedTypes": [ { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } ] }, { - "id": 395, + "id": 399, "name": "Bucket", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 400, + "id": 404, "name": "allowed_mime_types", "kind": 1024, "kindString": "Property", @@ -94134,7 +96052,7 @@ } }, { - "id": 401, + "id": 405, "name": "created_at", "kind": 1024, "kindString": "Property", @@ -94152,7 +96070,7 @@ } }, { - "id": 399, + "id": 403, "name": "file_size_limit", "kind": 1024, "kindString": "Property", @@ -94172,7 +96090,7 @@ } }, { - "id": 396, + "id": 400, "name": "id", "kind": 1024, "kindString": "Property", @@ -94190,7 +96108,7 @@ } }, { - "id": 397, + "id": 401, "name": "name", "kind": 1024, "kindString": "Property", @@ -94208,7 +96126,7 @@ } }, { - "id": 398, + "id": 402, "name": "owner", "kind": 1024, "kindString": "Property", @@ -94226,7 +96144,7 @@ } }, { - "id": 403, + "id": 407, "name": "public", "kind": 1024, "kindString": "Property", @@ -94244,7 +96162,7 @@ } }, { - "id": 402, + "id": 406, "name": "updated_at", "kind": 1024, "kindString": "Property", @@ -94267,14 +96185,14 @@ "title": "Properties", "kind": 1024, "children": [ + 404, + 405, + 403, 400, 401, - 399, - 396, - 397, - 398, - 403, - 402 + 402, + 407, + 406 ] } ], @@ -94287,14 +96205,14 @@ ] }, { - "id": 427, + "id": 431, "name": "FetchParameters", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 428, + "id": 432, "name": "signal", "kind": 1024, "kindString": "Property", @@ -94324,7 +96242,7 @@ "title": "Properties", "kind": 1024, "children": [ - 428 + 432 ] } ], @@ -94337,14 +96255,14 @@ ] }, { - "id": 404, + "id": 408, "name": "FileObject", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 406, + "id": 410, "name": "bucket_id", "kind": 1024, "kindString": "Property", @@ -94362,7 +96280,7 @@ } }, { - "id": 413, + "id": 417, "name": "buckets", "kind": 1024, "kindString": "Property", @@ -94376,17 +96294,17 @@ ], "type": { "type": "reference", - "id": 395, + "id": 399, "name": "Bucket", "dereferenced": { - "id": 395, + "id": 399, "name": "Bucket", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 400, + "id": 404, "name": "allowed_mime_types", "kind": 1024, "kindString": "Property", @@ -94409,7 +96327,7 @@ } }, { - "id": 401, + "id": 405, "name": "created_at", "kind": 1024, "kindString": "Property", @@ -94427,7 +96345,7 @@ } }, { - "id": 399, + "id": 403, "name": "file_size_limit", "kind": 1024, "kindString": "Property", @@ -94447,7 +96365,7 @@ } }, { - "id": 396, + "id": 400, "name": "id", "kind": 1024, "kindString": "Property", @@ -94465,7 +96383,7 @@ } }, { - "id": 397, + "id": 401, "name": "name", "kind": 1024, "kindString": "Property", @@ -94483,7 +96401,7 @@ } }, { - "id": 398, + "id": 402, "name": "owner", "kind": 1024, "kindString": "Property", @@ -94501,7 +96419,7 @@ } }, { - "id": 403, + "id": 407, "name": "public", "kind": 1024, "kindString": "Property", @@ -94519,7 +96437,7 @@ } }, { - "id": 402, + "id": 406, "name": "updated_at", "kind": 1024, "kindString": "Property", @@ -94542,14 +96460,14 @@ "title": "Properties", "kind": 1024, "children": [ + 404, + 405, + 403, 400, 401, - 399, - 396, - 397, - 398, - 403, - 402 + 402, + 407, + 406 ] } ], @@ -94564,7 +96482,7 @@ } }, { - "id": 410, + "id": 414, "name": "created_at", "kind": 1024, "kindString": "Property", @@ -94582,7 +96500,7 @@ } }, { - "id": 408, + "id": 412, "name": "id", "kind": 1024, "kindString": "Property", @@ -94600,7 +96518,7 @@ } }, { - "id": 411, + "id": 415, "name": "last_accessed_at", "kind": 1024, "kindString": "Property", @@ -94618,7 +96536,7 @@ } }, { - "id": 412, + "id": 416, "name": "metadata", "kind": 1024, "kindString": "Property", @@ -94648,7 +96566,7 @@ } }, { - "id": 405, + "id": 409, "name": "name", "kind": 1024, "kindString": "Property", @@ -94666,7 +96584,7 @@ } }, { - "id": 407, + "id": 411, "name": "owner", "kind": 1024, "kindString": "Property", @@ -94684,7 +96602,7 @@ } }, { - "id": 409, + "id": 413, "name": "updated_at", "kind": 1024, "kindString": "Property", @@ -94707,15 +96625,15 @@ "title": "Properties", "kind": 1024, "children": [ - 406, - 413, 410, - 408, - 411, + 417, + 414, 412, - 405, - 407, - 409 + 415, + 416, + 409, + 411, + 413 ] } ], @@ -94728,14 +96646,14 @@ ] }, { - "id": 417, + "id": 421, "name": "FileOptions", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 418, + "id": 422, "name": "cacheControl", "kind": 1024, "kindString": "Property", @@ -94758,7 +96676,7 @@ } }, { - "id": 419, + "id": 423, "name": "contentType", "kind": 1024, "kindString": "Property", @@ -94781,7 +96699,7 @@ } }, { - "id": 421, + "id": 425, "name": "duplex", "kind": 1024, "kindString": "Property", @@ -94804,7 +96722,7 @@ } }, { - "id": 420, + "id": 424, "name": "upsert", "kind": 1024, "kindString": "Property", @@ -94832,10 +96750,10 @@ "title": "Properties", "kind": 1024, "children": [ - 418, - 419, - 421, - 420 + 422, + 423, + 425, + 424 ] } ], @@ -94848,14 +96766,14 @@ ] }, { - "id": 429, + "id": 433, "name": "Metadata", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 430, + "id": 434, "name": "name", "kind": 1024, "kindString": "Property", @@ -94878,7 +96796,7 @@ "title": "Properties", "kind": 1024, "children": [ - 430 + 434 ] } ], @@ -94891,14 +96809,14 @@ ] }, { - "id": 422, + "id": 426, "name": "SearchOptions", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 423, + "id": 427, "name": "limit", "kind": 1024, "kindString": "Property", @@ -94921,7 +96839,7 @@ } }, { - "id": 424, + "id": 428, "name": "offset", "kind": 1024, "kindString": "Property", @@ -94944,7 +96862,7 @@ } }, { - "id": 426, + "id": 430, "name": "search", "kind": 1024, "kindString": "Property", @@ -94967,7 +96885,7 @@ } }, { - "id": 425, + "id": 429, "name": "sortBy", "kind": 1024, "kindString": "Property", @@ -94986,17 +96904,17 @@ ], "type": { "type": "reference", - "id": 414, + "id": 418, "name": "SortBy", "dereferenced": { - "id": 414, + "id": 418, "name": "SortBy", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 415, + "id": 419, "name": "column", "kind": 1024, "kindString": "Property", @@ -95016,7 +96934,7 @@ } }, { - "id": 416, + "id": 420, "name": "order", "kind": 1024, "kindString": "Property", @@ -95041,8 +96959,8 @@ "title": "Properties", "kind": 1024, "children": [ - 415, - 416 + 419, + 420 ] } ], @@ -95062,10 +96980,10 @@ "title": "Properties", "kind": 1024, "children": [ - 423, - 424, - 426, - 425 + 427, + 428, + 430, + 429 ] } ], @@ -95078,14 +96996,14 @@ ] }, { - "id": 414, + "id": 418, "name": "SortBy", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 415, + "id": 419, "name": "column", "kind": 1024, "kindString": "Property", @@ -95105,7 +97023,7 @@ } }, { - "id": 416, + "id": 420, "name": "order", "kind": 1024, "kindString": "Property", @@ -95130,8 +97048,8 @@ "title": "Properties", "kind": 1024, "children": [ - 415, - 416 + 419, + 420 ] } ], @@ -95144,14 +97062,14 @@ ] }, { - "id": 431, + "id": 435, "name": "TransformOptions", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 436, + "id": 440, "name": "format", "kind": 1024, "kindString": "Property", @@ -95175,7 +97093,7 @@ } }, { - "id": 433, + "id": 437, "name": "height", "kind": 1024, "kindString": "Property", @@ -95198,7 +97116,7 @@ } }, { - "id": 435, + "id": 439, "name": "quality", "kind": 1024, "kindString": "Property", @@ -95221,7 +97139,7 @@ } }, { - "id": 434, + "id": 438, "name": "resize", "kind": 1024, "kindString": "Property", @@ -95257,7 +97175,7 @@ } }, { - "id": 432, + "id": 436, "name": "width", "kind": 1024, "kindString": "Property", @@ -95285,11 +97203,11 @@ "title": "Properties", "kind": 1024, "children": [ - 436, - 433, - 435, - 434, - 432 + 440, + 437, + 439, + 438, + 436 ] } ], @@ -95302,7 +97220,7 @@ ] }, { - "id": 437, + "id": 441, "name": "isStorageError", "kind": 64, "kindString": "Function", @@ -95316,14 +97234,14 @@ ], "signatures": [ { - "id": 438, + "id": 442, "name": "isStorageError", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 439, + "id": 443, "name": "error", "kind": 32768, "kindString": "Parameter", @@ -95340,7 +97258,7 @@ "asserts": false, "targetType": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -95353,31 +97271,31 @@ "title": "Classes", "kind": 128, "children": [ - 445, - 300, - 440, - 458 + 449, + 304, + 444, + 462 ] }, { "title": "Interfaces", "kind": 256, "children": [ - 395, - 427, - 404, - 417, - 429, - 422, - 414, - 431 + 399, + 431, + 408, + 421, + 433, + 426, + 418, + 435 ] }, { "title": "Functions", "kind": 64, "children": [ - 437 + 441 ] } ], @@ -95753,7 +97671,7 @@ "typeArguments": [ { "type": "reference", - "id": 395, + "id": 399, "name": "Bucket" }, { @@ -95839,7 +97757,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -96046,7 +97964,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -96253,7 +98171,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -96349,7 +98267,7 @@ ], "type": { "type": "reference", - "id": 395, + "id": 399, "name": "Bucket" } }, @@ -96426,7 +98344,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -96508,7 +98426,7 @@ "type": "array", "elementType": { "type": "reference", - "id": 395, + "id": 399, "name": "Bucket" } } @@ -96586,7 +98504,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -96915,7 +98833,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -96974,7 +98892,7 @@ "extendedBy": [ { "type": "reference", - "id": 300, + "id": 304, "name": "StorageClient" } ] @@ -97179,7 +99097,7 @@ ] }, { - "id": 203, + "id": 207, "name": "copy", "kind": 2048, "kindString": "Method", @@ -97193,7 +99111,7 @@ ], "signatures": [ { - "id": 204, + "id": 208, "name": "copy", "kind": 4096, "kindString": "Call signature", @@ -97203,7 +99121,7 @@ }, "parameters": [ { - "id": 205, + "id": 209, "name": "fromPath", "kind": 32768, "kindString": "Parameter", @@ -97217,7 +99135,7 @@ } }, { - "id": 206, + "id": 210, "name": "toPath", "kind": 32768, "kindString": "Parameter", @@ -97240,14 +99158,14 @@ { "type": "reflection", "declaration": { - "id": 207, + "id": 211, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 208, + "id": 212, "name": "data", "kind": 1024, "kindString": "Property", @@ -97262,14 +99180,14 @@ "type": { "type": "reflection", "declaration": { - "id": 209, + "id": 213, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 210, + "id": 214, "name": "path", "kind": 1024, "kindString": "Property", @@ -97292,7 +99210,7 @@ "title": "Properties", "kind": 1024, "children": [ - 210 + 214 ] } ] @@ -97300,7 +99218,7 @@ } }, { - "id": 211, + "id": 215, "name": "error", "kind": 1024, "kindString": "Property", @@ -97323,8 +99241,8 @@ "title": "Properties", "kind": 1024, "children": [ - 208, - 211 + 212, + 215 ] } ] @@ -97333,14 +99251,14 @@ { "type": "reflection", "declaration": { - "id": 212, + "id": 216, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 213, + "id": 217, "name": "data", "kind": 1024, "kindString": "Property", @@ -97358,7 +99276,7 @@ } }, { - "id": 214, + "id": 218, "name": "error", "kind": 1024, "kindString": "Property", @@ -97372,7 +99290,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -97382,8 +99300,8 @@ "title": "Properties", "kind": 1024, "children": [ - 213, - 214 + 217, + 218 ] } ] @@ -97400,7 +99318,7 @@ ] }, { - "id": 165, + "id": 167, "name": "createSignedUploadUrl", "kind": 2048, "kindString": "Method", @@ -97414,7 +99332,7 @@ ], "signatures": [ { - "id": 166, + "id": 168, "name": "createSignedUploadUrl", "kind": 4096, "kindString": "Call signature", @@ -97424,7 +99342,7 @@ }, "parameters": [ { - "id": 167, + "id": 169, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -97447,14 +99365,14 @@ { "type": "reflection", "declaration": { - "id": 168, + "id": 170, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 169, + "id": 171, "name": "data", "kind": 1024, "kindString": "Property", @@ -97469,14 +99387,14 @@ "type": { "type": "reflection", "declaration": { - "id": 170, + "id": 172, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 173, + "id": 175, "name": "path", "kind": 1024, "kindString": "Property", @@ -97494,7 +99412,7 @@ } }, { - "id": 171, + "id": 173, "name": "signedUrl", "kind": 1024, "kindString": "Property", @@ -97512,7 +99430,7 @@ } }, { - "id": 172, + "id": 174, "name": "token", "kind": 1024, "kindString": "Property", @@ -97535,9 +99453,9 @@ "title": "Properties", "kind": 1024, "children": [ + 175, 173, - 171, - 172 + 174 ] } ] @@ -97545,7 +99463,7 @@ } }, { - "id": 174, + "id": 176, "name": "error", "kind": 1024, "kindString": "Property", @@ -97568,8 +99486,8 @@ "title": "Properties", "kind": 1024, "children": [ - 169, - 174 + 171, + 176 ] } ] @@ -97578,14 +99496,14 @@ { "type": "reflection", "declaration": { - "id": 175, + "id": 177, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 176, + "id": 178, "name": "data", "kind": 1024, "kindString": "Property", @@ -97603,7 +99521,7 @@ } }, { - "id": 177, + "id": 179, "name": "error", "kind": 1024, "kindString": "Property", @@ -97617,7 +99535,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -97627,8 +99545,8 @@ "title": "Properties", "kind": 1024, "children": [ - 176, - 177 + 178, + 179 ] } ] @@ -97645,7 +99563,7 @@ ] }, { - "id": 215, + "id": 219, "name": "createSignedUrl", "kind": 2048, "kindString": "Method", @@ -97659,7 +99577,7 @@ ], "signatures": [ { - "id": 216, + "id": 220, "name": "createSignedUrl", "kind": 4096, "kindString": "Call signature", @@ -97669,7 +99587,7 @@ }, "parameters": [ { - "id": 217, + "id": 221, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -97683,7 +99601,7 @@ } }, { - "id": 218, + "id": 222, "name": "expiresIn", "kind": 32768, "kindString": "Parameter", @@ -97697,7 +99615,7 @@ } }, { - "id": 219, + "id": 223, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -97707,14 +99625,14 @@ "type": { "type": "reflection", "declaration": { - "id": 220, + "id": 224, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 221, + "id": 225, "name": "download", "kind": 1024, "kindString": "Property", @@ -97746,7 +99664,7 @@ } }, { - "id": 222, + "id": 226, "name": "transform", "kind": 1024, "kindString": "Property", @@ -97765,17 +99683,17 @@ ], "type": { "type": "reference", - "id": 431, + "id": 435, "name": "TransformOptions", "dereferenced": { - "id": 431, + "id": 435, "name": "TransformOptions", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 436, + "id": 440, "name": "format", "kind": 1024, "kindString": "Property", @@ -97799,7 +99717,7 @@ } }, { - "id": 433, + "id": 437, "name": "height", "kind": 1024, "kindString": "Property", @@ -97822,7 +99740,7 @@ } }, { - "id": 435, + "id": 439, "name": "quality", "kind": 1024, "kindString": "Property", @@ -97845,7 +99763,7 @@ } }, { - "id": 434, + "id": 438, "name": "resize", "kind": 1024, "kindString": "Property", @@ -97881,7 +99799,7 @@ } }, { - "id": 432, + "id": 436, "name": "width", "kind": 1024, "kindString": "Property", @@ -97909,11 +99827,11 @@ "title": "Properties", "kind": 1024, "children": [ - 436, - 433, - 435, - 434, - 432 + 440, + 437, + 439, + 438, + 436 ] } ], @@ -97933,8 +99851,8 @@ "title": "Properties", "kind": 1024, "children": [ - 221, - 222 + 225, + 226 ] } ] @@ -97951,14 +99869,14 @@ { "type": "reflection", "declaration": { - "id": 223, + "id": 227, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 224, + "id": 228, "name": "data", "kind": 1024, "kindString": "Property", @@ -97973,14 +99891,14 @@ "type": { "type": "reflection", "declaration": { - "id": 225, + "id": 229, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 226, + "id": 230, "name": "signedUrl", "kind": 1024, "kindString": "Property", @@ -98003,7 +99921,7 @@ "title": "Properties", "kind": 1024, "children": [ - 226 + 230 ] } ] @@ -98011,7 +99929,7 @@ } }, { - "id": 227, + "id": 231, "name": "error", "kind": 1024, "kindString": "Property", @@ -98034,8 +99952,8 @@ "title": "Properties", "kind": 1024, "children": [ - 224, - 227 + 228, + 231 ] } ] @@ -98044,14 +99962,14 @@ { "type": "reflection", "declaration": { - "id": 228, + "id": 232, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 229, + "id": 233, "name": "data", "kind": 1024, "kindString": "Property", @@ -98069,7 +99987,7 @@ } }, { - "id": 230, + "id": 234, "name": "error", "kind": 1024, "kindString": "Property", @@ -98083,7 +100001,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -98093,8 +100011,8 @@ "title": "Properties", "kind": 1024, "children": [ - 229, - 230 + 233, + 234 ] } ] @@ -98111,7 +100029,7 @@ ] }, { - "id": 231, + "id": 235, "name": "createSignedUrls", "kind": 2048, "kindString": "Method", @@ -98125,7 +100043,7 @@ ], "signatures": [ { - "id": 232, + "id": 236, "name": "createSignedUrls", "kind": 4096, "kindString": "Call signature", @@ -98135,7 +100053,7 @@ }, "parameters": [ { - "id": 233, + "id": 237, "name": "paths", "kind": 32768, "kindString": "Parameter", @@ -98152,7 +100070,7 @@ } }, { - "id": 234, + "id": 238, "name": "expiresIn", "kind": 32768, "kindString": "Parameter", @@ -98166,7 +100084,7 @@ } }, { - "id": 235, + "id": 239, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -98176,14 +100094,14 @@ "type": { "type": "reflection", "declaration": { - "id": 236, + "id": 240, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 237, + "id": 241, "name": "download", "kind": 1024, "kindString": "Property", @@ -98218,7 +100136,7 @@ "title": "Properties", "kind": 1024, "children": [ - 237 + 241 ] } ] @@ -98235,14 +100153,14 @@ { "type": "reflection", "declaration": { - "id": 238, + "id": 242, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 239, + "id": 243, "name": "data", "kind": 1024, "kindString": "Property", @@ -98259,14 +100177,14 @@ "elementType": { "type": "reflection", "declaration": { - "id": 240, + "id": 244, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 241, + "id": 245, "name": "error", "kind": 1024, "kindString": "Property", @@ -98293,7 +100211,7 @@ } }, { - "id": 242, + "id": 246, "name": "path", "kind": 1024, "kindString": "Property", @@ -98320,7 +100238,7 @@ } }, { - "id": 243, + "id": 247, "name": "signedUrl", "kind": 1024, "kindString": "Property", @@ -98343,9 +100261,9 @@ "title": "Properties", "kind": 1024, "children": [ - 241, - 242, - 243 + 245, + 246, + 247 ] } ] @@ -98354,7 +100272,7 @@ } }, { - "id": 244, + "id": 248, "name": "error", "kind": 1024, "kindString": "Property", @@ -98377,8 +100295,8 @@ "title": "Properties", "kind": 1024, "children": [ - 239, - 244 + 243, + 248 ] } ] @@ -98387,14 +100305,14 @@ { "type": "reflection", "declaration": { - "id": 245, + "id": 249, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 246, + "id": 250, "name": "data", "kind": 1024, "kindString": "Property", @@ -98412,7 +100330,7 @@ } }, { - "id": 247, + "id": 251, "name": "error", "kind": 1024, "kindString": "Property", @@ -98426,7 +100344,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -98436,8 +100354,8 @@ "title": "Properties", "kind": 1024, "children": [ - 246, - 247 + 250, + 251 ] } ] @@ -98454,7 +100372,7 @@ ] }, { - "id": 248, + "id": 252, "name": "download", "kind": 2048, "kindString": "Method", @@ -98468,7 +100386,7 @@ ], "signatures": [ { - "id": 249, + "id": 253, "name": "download", "kind": 4096, "kindString": "Call signature", @@ -98478,7 +100396,7 @@ }, "parameters": [ { - "id": 250, + "id": 254, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -98492,7 +100410,7 @@ } }, { - "id": 251, + "id": 255, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -98502,14 +100420,14 @@ "type": { "type": "reflection", "declaration": { - "id": 252, + "id": 256, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 253, + "id": 257, "name": "transform", "kind": 1024, "kindString": "Property", @@ -98528,17 +100446,17 @@ ], "type": { "type": "reference", - "id": 431, + "id": 435, "name": "TransformOptions", "dereferenced": { - "id": 431, + "id": 435, "name": "TransformOptions", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 436, + "id": 440, "name": "format", "kind": 1024, "kindString": "Property", @@ -98562,7 +100480,7 @@ } }, { - "id": 433, + "id": 437, "name": "height", "kind": 1024, "kindString": "Property", @@ -98585,7 +100503,7 @@ } }, { - "id": 435, + "id": 439, "name": "quality", "kind": 1024, "kindString": "Property", @@ -98608,7 +100526,7 @@ } }, { - "id": 434, + "id": 438, "name": "resize", "kind": 1024, "kindString": "Property", @@ -98644,7 +100562,7 @@ } }, { - "id": 432, + "id": 436, "name": "width", "kind": 1024, "kindString": "Property", @@ -98672,11 +100590,11 @@ "title": "Properties", "kind": 1024, "children": [ - 436, - 433, - 435, - 434, - 432 + 440, + 437, + 439, + 438, + 436 ] } ], @@ -98696,7 +100614,7 @@ "title": "Properties", "kind": 1024, "children": [ - 253 + 257 ] } ] @@ -98713,14 +100631,14 @@ { "type": "reflection", "declaration": { - "id": 254, + "id": 258, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 255, + "id": 259, "name": "data", "kind": 1024, "kindString": "Property", @@ -98740,7 +100658,7 @@ } }, { - "id": 256, + "id": 260, "name": "error", "kind": 1024, "kindString": "Property", @@ -98763,8 +100681,8 @@ "title": "Properties", "kind": 1024, "children": [ - 255, - 256 + 259, + 260 ] } ] @@ -98773,14 +100691,14 @@ { "type": "reflection", "declaration": { - "id": 257, + "id": 261, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 258, + "id": 262, "name": "data", "kind": 1024, "kindString": "Property", @@ -98798,7 +100716,7 @@ } }, { - "id": 259, + "id": 263, "name": "error", "kind": 1024, "kindString": "Property", @@ -98812,7 +100730,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -98822,8 +100740,8 @@ "title": "Properties", "kind": 1024, "children": [ - 258, - 259 + 262, + 263 ] } ] @@ -98840,7 +100758,7 @@ ] }, { - "id": 260, + "id": 264, "name": "getPublicUrl", "kind": 2048, "kindString": "Method", @@ -98854,7 +100772,7 @@ ], "signatures": [ { - "id": 261, + "id": 265, "name": "getPublicUrl", "kind": 4096, "kindString": "Call signature", @@ -98864,7 +100782,7 @@ }, "parameters": [ { - "id": 262, + "id": 266, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -98878,7 +100796,7 @@ } }, { - "id": 263, + "id": 267, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -98888,14 +100806,14 @@ "type": { "type": "reflection", "declaration": { - "id": 264, + "id": 268, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 265, + "id": 269, "name": "download", "kind": 1024, "kindString": "Property", @@ -98927,7 +100845,7 @@ } }, { - "id": 266, + "id": 270, "name": "transform", "kind": 1024, "kindString": "Property", @@ -98946,17 +100864,17 @@ ], "type": { "type": "reference", - "id": 431, + "id": 435, "name": "TransformOptions", "dereferenced": { - "id": 431, + "id": 435, "name": "TransformOptions", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 436, + "id": 440, "name": "format", "kind": 1024, "kindString": "Property", @@ -98980,7 +100898,7 @@ } }, { - "id": 433, + "id": 437, "name": "height", "kind": 1024, "kindString": "Property", @@ -99003,7 +100921,7 @@ } }, { - "id": 435, + "id": 439, "name": "quality", "kind": 1024, "kindString": "Property", @@ -99026,7 +100944,7 @@ } }, { - "id": 434, + "id": 438, "name": "resize", "kind": 1024, "kindString": "Property", @@ -99062,7 +100980,7 @@ } }, { - "id": 432, + "id": 436, "name": "width", "kind": 1024, "kindString": "Property", @@ -99090,11 +101008,11 @@ "title": "Properties", "kind": 1024, "children": [ - 436, - 433, - 435, - 434, - 432 + 440, + 437, + 439, + 438, + 436 ] } ], @@ -99114,8 +101032,8 @@ "title": "Properties", "kind": 1024, "children": [ - 265, - 266 + 269, + 270 ] } ] @@ -99126,14 +101044,14 @@ "type": { "type": "reflection", "declaration": { - "id": 267, + "id": 271, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 268, + "id": 272, "name": "data", "kind": 1024, "kindString": "Property", @@ -99148,14 +101066,14 @@ "type": { "type": "reflection", "declaration": { - "id": 269, + "id": 273, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 270, + "id": 274, "name": "publicUrl", "kind": 1024, "kindString": "Property", @@ -99178,7 +101096,7 @@ "title": "Properties", "kind": 1024, "children": [ - 270 + 274 ] } ] @@ -99191,7 +101109,7 @@ "title": "Properties", "kind": 1024, "children": [ - 268 + 272 ] } ] @@ -99201,7 +101119,7 @@ ] }, { - "id": 280, + "id": 284, "name": "list", "kind": 2048, "kindString": "Method", @@ -99215,7 +101133,7 @@ ], "signatures": [ { - "id": 281, + "id": 285, "name": "list", "kind": 4096, "kindString": "Call signature", @@ -99225,7 +101143,7 @@ }, "parameters": [ { - "id": 282, + "id": 286, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -99241,7 +101159,7 @@ } }, { - "id": 283, + "id": 287, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -99250,17 +101168,17 @@ }, "type": { "type": "reference", - "id": 422, + "id": 426, "name": "SearchOptions", "dereferenced": { - "id": 422, + "id": 426, "name": "SearchOptions", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 423, + "id": 427, "name": "limit", "kind": 1024, "kindString": "Property", @@ -99283,7 +101201,7 @@ } }, { - "id": 424, + "id": 428, "name": "offset", "kind": 1024, "kindString": "Property", @@ -99306,7 +101224,7 @@ } }, { - "id": 426, + "id": 430, "name": "search", "kind": 1024, "kindString": "Property", @@ -99329,7 +101247,7 @@ } }, { - "id": 425, + "id": 429, "name": "sortBy", "kind": 1024, "kindString": "Property", @@ -99348,17 +101266,17 @@ ], "type": { "type": "reference", - "id": 414, + "id": 418, "name": "SortBy", "dereferenced": { - "id": 414, + "id": 418, "name": "SortBy", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 415, + "id": 419, "name": "column", "kind": 1024, "kindString": "Property", @@ -99378,7 +101296,7 @@ } }, { - "id": 416, + "id": 420, "name": "order", "kind": 1024, "kindString": "Property", @@ -99403,8 +101321,8 @@ "title": "Properties", "kind": 1024, "children": [ - 415, - 416 + 419, + 420 ] } ], @@ -99424,10 +101342,10 @@ "title": "Properties", "kind": 1024, "children": [ - 423, - 424, - 426, - 425 + 427, + 428, + 430, + 429 ] } ], @@ -99442,7 +101360,7 @@ } }, { - "id": 284, + "id": 288, "name": "parameters", "kind": 32768, "kindString": "Parameter", @@ -99451,17 +101369,17 @@ }, "type": { "type": "reference", - "id": 427, + "id": 431, "name": "FetchParameters", "dereferenced": { - "id": 427, + "id": 431, "name": "FetchParameters", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 428, + "id": 432, "name": "signal", "kind": 1024, "kindString": "Property", @@ -99491,7 +101409,7 @@ "title": "Properties", "kind": 1024, "children": [ - 428 + 432 ] } ], @@ -99515,14 +101433,14 @@ { "type": "reflection", "declaration": { - "id": 285, + "id": 289, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 286, + "id": 290, "name": "data", "kind": 1024, "kindString": "Property", @@ -99538,13 +101456,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 404, + "id": 408, "name": "FileObject" } } }, { - "id": 287, + "id": 291, "name": "error", "kind": 1024, "kindString": "Property", @@ -99567,8 +101485,8 @@ "title": "Properties", "kind": 1024, "children": [ - 286, - 287 + 290, + 291 ] } ] @@ -99577,14 +101495,14 @@ { "type": "reflection", "declaration": { - "id": 288, + "id": 292, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 289, + "id": 293, "name": "data", "kind": 1024, "kindString": "Property", @@ -99602,7 +101520,7 @@ } }, { - "id": 290, + "id": 294, "name": "error", "kind": 1024, "kindString": "Property", @@ -99616,7 +101534,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -99626,8 +101544,8 @@ "title": "Properties", "kind": 1024, "children": [ - 289, - 290 + 293, + 294 ] } ] @@ -99644,7 +101562,7 @@ ] }, { - "id": 191, + "id": 195, "name": "move", "kind": 2048, "kindString": "Method", @@ -99658,7 +101576,7 @@ ], "signatures": [ { - "id": 192, + "id": 196, "name": "move", "kind": 4096, "kindString": "Call signature", @@ -99668,7 +101586,7 @@ }, "parameters": [ { - "id": 193, + "id": 197, "name": "fromPath", "kind": 32768, "kindString": "Parameter", @@ -99682,7 +101600,7 @@ } }, { - "id": 194, + "id": 198, "name": "toPath", "kind": 32768, "kindString": "Parameter", @@ -99705,14 +101623,14 @@ { "type": "reflection", "declaration": { - "id": 195, + "id": 199, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 196, + "id": 200, "name": "data", "kind": 1024, "kindString": "Property", @@ -99727,14 +101645,14 @@ "type": { "type": "reflection", "declaration": { - "id": 197, + "id": 201, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 198, + "id": 202, "name": "message", "kind": 1024, "kindString": "Property", @@ -99757,7 +101675,7 @@ "title": "Properties", "kind": 1024, "children": [ - 198 + 202 ] } ] @@ -99765,7 +101683,7 @@ } }, { - "id": 199, + "id": 203, "name": "error", "kind": 1024, "kindString": "Property", @@ -99788,8 +101706,8 @@ "title": "Properties", "kind": 1024, "children": [ - 196, - 199 + 200, + 203 ] } ] @@ -99798,14 +101716,14 @@ { "type": "reflection", "declaration": { - "id": 200, + "id": 204, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 201, + "id": 205, "name": "data", "kind": 1024, "kindString": "Property", @@ -99823,7 +101741,7 @@ } }, { - "id": 202, + "id": 206, "name": "error", "kind": 1024, "kindString": "Property", @@ -99837,7 +101755,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -99847,8 +101765,8 @@ "title": "Properties", "kind": 1024, "children": [ - 201, - 202 + 205, + 206 ] } ] @@ -99865,7 +101783,7 @@ ] }, { - "id": 271, + "id": 275, "name": "remove", "kind": 2048, "kindString": "Method", @@ -99879,7 +101797,7 @@ ], "signatures": [ { - "id": 272, + "id": 276, "name": "remove", "kind": 4096, "kindString": "Call signature", @@ -99889,7 +101807,7 @@ }, "parameters": [ { - "id": 273, + "id": 277, "name": "paths", "kind": 32768, "kindString": "Parameter", @@ -99915,14 +101833,14 @@ { "type": "reflection", "declaration": { - "id": 274, + "id": 278, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 275, + "id": 279, "name": "data", "kind": 1024, "kindString": "Property", @@ -99938,13 +101856,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 404, + "id": 408, "name": "FileObject" } } }, { - "id": 276, + "id": 280, "name": "error", "kind": 1024, "kindString": "Property", @@ -99967,8 +101885,8 @@ "title": "Properties", "kind": 1024, "children": [ - 275, - 276 + 279, + 280 ] } ] @@ -99977,14 +101895,14 @@ { "type": "reflection", "declaration": { - "id": 277, + "id": 281, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 278, + "id": 282, "name": "data", "kind": 1024, "kindString": "Property", @@ -100002,7 +101920,7 @@ } }, { - "id": 279, + "id": 283, "name": "error", "kind": 1024, "kindString": "Property", @@ -100016,7 +101934,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -100026,8 +101944,8 @@ "title": "Properties", "kind": 1024, "children": [ - 278, - 279 + 282, + 283 ] } ] @@ -100044,7 +101962,7 @@ ] }, { - "id": 178, + "id": 180, "name": "update", "kind": 2048, "kindString": "Method", @@ -100058,7 +101976,7 @@ ], "signatures": [ { - "id": 179, + "id": 181, "name": "update", "kind": 4096, "kindString": "Call signature", @@ -100068,7 +101986,7 @@ }, "parameters": [ { - "id": 180, + "id": 182, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -100082,7 +102000,7 @@ } }, { - "id": 181, + "id": 183, "name": "fileBody", "kind": 32768, "kindString": "Parameter", @@ -100163,7 +102081,7 @@ } }, { - "id": 182, + "id": 184, "name": "fileOptions", "kind": 32768, "kindString": "Parameter", @@ -100172,17 +102090,17 @@ }, "type": { "type": "reference", - "id": 417, + "id": 421, "name": "FileOptions", "dereferenced": { - "id": 417, + "id": 421, "name": "FileOptions", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 418, + "id": 422, "name": "cacheControl", "kind": 1024, "kindString": "Property", @@ -100205,7 +102123,7 @@ } }, { - "id": 419, + "id": 423, "name": "contentType", "kind": 1024, "kindString": "Property", @@ -100228,7 +102146,7 @@ } }, { - "id": 421, + "id": 425, "name": "duplex", "kind": 1024, "kindString": "Property", @@ -100251,7 +102169,7 @@ } }, { - "id": 420, + "id": 424, "name": "upsert", "kind": 1024, "kindString": "Property", @@ -100279,10 +102197,10 @@ "title": "Properties", "kind": 1024, "children": [ - 418, - 419, - 421, - 420 + 422, + 423, + 425, + 424 ] } ], @@ -100306,14 +102224,14 @@ { "type": "reflection", "declaration": { - "id": 183, + "id": 185, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 184, + "id": 186, "name": "data", "kind": 1024, "kindString": "Property", @@ -100328,15 +102246,33 @@ "type": { "type": "reflection", "declaration": { - "id": 185, + "id": 187, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 186, - "name": "path", + "id": 190, + "name": "fullPath", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/packages/StorageFileApi.ts", + "line": 285, + "character": 42 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 188, + "name": "id", "kind": 1024, "kindString": "Property", "flags": {}, @@ -100351,6 +102287,24 @@ "type": "intrinsic", "name": "string" } + }, + { + "id": 189, + "name": "path", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/packages/StorageFileApi.ts", + "line": 285, + "character": 28 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } } ], "groups": [ @@ -100358,7 +102312,9 @@ "title": "Properties", "kind": 1024, "children": [ - 186 + 190, + 188, + 189 ] } ] @@ -100366,7 +102322,7 @@ } }, { - "id": 187, + "id": 191, "name": "error", "kind": 1024, "kindString": "Property", @@ -100389,8 +102345,8 @@ "title": "Properties", "kind": 1024, "children": [ - 184, - 187 + 186, + 191 ] } ] @@ -100399,14 +102355,14 @@ { "type": "reflection", "declaration": { - "id": 188, + "id": 192, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 189, + "id": 193, "name": "data", "kind": 1024, "kindString": "Property", @@ -100424,7 +102380,7 @@ } }, { - "id": 190, + "id": 194, "name": "error", "kind": 1024, "kindString": "Property", @@ -100438,7 +102394,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -100448,8 +102404,8 @@ "title": "Properties", "kind": 1024, "children": [ - 189, - 190 + 193, + 194 ] } ] @@ -100527,17 +102483,17 @@ }, "type": { "type": "reference", - "id": 417, + "id": 421, "name": "FileOptions", "dereferenced": { - "id": 417, + "id": 421, "name": "FileOptions", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 418, + "id": 422, "name": "cacheControl", "kind": 1024, "kindString": "Property", @@ -100560,7 +102516,7 @@ } }, { - "id": 419, + "id": 423, "name": "contentType", "kind": 1024, "kindString": "Property", @@ -100583,7 +102539,7 @@ } }, { - "id": 421, + "id": 425, "name": "duplex", "kind": 1024, "kindString": "Property", @@ -100606,7 +102562,7 @@ } }, { - "id": 420, + "id": 424, "name": "upsert", "kind": 1024, "kindString": "Property", @@ -100634,10 +102590,10 @@ "title": "Properties", "kind": 1024, "children": [ - 418, - 419, - 421, - 420 + 422, + 423, + 425, + 424 ] } ], @@ -100689,9 +102645,27 @@ "kindString": "Type literal", "flags": {}, "children": [ + { + "id": 147, + "name": "fullPath", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/packages/StorageFileApi.ts", + "line": 141, + "character": 42 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, { "id": 145, - "name": "path", + "name": "id", "kind": 1024, "kindString": "Property", "flags": {}, @@ -100706,6 +102680,24 @@ "type": "intrinsic", "name": "string" } + }, + { + "id": 146, + "name": "path", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/packages/StorageFileApi.ts", + "line": 141, + "character": 28 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } } ], "groups": [ @@ -100713,7 +102705,9 @@ "title": "Properties", "kind": 1024, "children": [ - 145 + 147, + 145, + 146 ] } ] @@ -100721,7 +102715,7 @@ } }, { - "id": 146, + "id": 148, "name": "error", "kind": 1024, "kindString": "Property", @@ -100745,7 +102739,7 @@ "kind": 1024, "children": [ 143, - 146 + 148 ] } ] @@ -100754,14 +102748,14 @@ { "type": "reflection", "declaration": { - "id": 147, + "id": 149, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 148, + "id": 150, "name": "data", "kind": 1024, "kindString": "Property", @@ -100779,7 +102773,7 @@ } }, { - "id": 149, + "id": 151, "name": "error", "kind": 1024, "kindString": "Property", @@ -100793,7 +102787,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -100803,8 +102797,8 @@ "title": "Properties", "kind": 1024, "children": [ - 148, - 149 + 150, + 151 ] } ] @@ -100821,7 +102815,7 @@ ] }, { - "id": 150, + "id": 152, "name": "uploadToSignedUrl", "kind": 2048, "kindString": "Method", @@ -100835,7 +102829,7 @@ ], "signatures": [ { - "id": 151, + "id": 153, "name": "uploadToSignedUrl", "kind": 4096, "kindString": "Call signature", @@ -100845,7 +102839,7 @@ }, "parameters": [ { - "id": 152, + "id": 154, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -100859,7 +102853,7 @@ } }, { - "id": 153, + "id": 155, "name": "token", "kind": 32768, "kindString": "Parameter", @@ -100873,7 +102867,7 @@ } }, { - "id": 154, + "id": 156, "name": "fileBody", "kind": 32768, "kindString": "Parameter", @@ -100887,7 +102881,7 @@ } }, { - "id": 155, + "id": 157, "name": "fileOptions", "kind": 32768, "kindString": "Parameter", @@ -100896,17 +102890,17 @@ }, "type": { "type": "reference", - "id": 417, + "id": 421, "name": "FileOptions", "dereferenced": { - "id": 417, + "id": 421, "name": "FileOptions", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 418, + "id": 422, "name": "cacheControl", "kind": 1024, "kindString": "Property", @@ -100929,7 +102923,7 @@ } }, { - "id": 419, + "id": 423, "name": "contentType", "kind": 1024, "kindString": "Property", @@ -100952,7 +102946,7 @@ } }, { - "id": 421, + "id": 425, "name": "duplex", "kind": 1024, "kindString": "Property", @@ -100975,7 +102969,7 @@ } }, { - "id": 420, + "id": 424, "name": "upsert", "kind": 1024, "kindString": "Property", @@ -101003,10 +102997,10 @@ "title": "Properties", "kind": 1024, "children": [ - 418, - 419, - 421, - 420 + 422, + 423, + 425, + 424 ] } ], @@ -101030,14 +103024,14 @@ { "type": "reflection", "declaration": { - "id": 156, + "id": 158, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 157, + "id": 159, "name": "data", "kind": 1024, "kindString": "Property", @@ -101052,14 +103046,14 @@ "type": { "type": "reflection", "declaration": { - "id": 158, + "id": 160, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 160, + "id": 162, "name": "fullPath", "kind": 1024, "kindString": "Property", @@ -101078,7 +103072,7 @@ "defaultValue": "data.Key" }, { - "id": 159, + "id": 161, "name": "path", "kind": 1024, "kindString": "Property", @@ -101102,8 +103096,8 @@ "title": "Properties", "kind": 1024, "children": [ - 160, - 159 + 162, + 161 ] } ] @@ -101112,7 +103106,7 @@ "defaultValue": "..." }, { - "id": 161, + "id": 163, "name": "error", "kind": 1024, "kindString": "Property", @@ -101136,8 +103130,8 @@ "title": "Properties", "kind": 1024, "children": [ - 157, - 161 + 159, + 163 ] } ] @@ -101146,14 +103140,14 @@ { "type": "reflection", "declaration": { - "id": 162, + "id": 164, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 163, + "id": 165, "name": "data", "kind": 1024, "kindString": "Property", @@ -101172,7 +103166,7 @@ "defaultValue": "null" }, { - "id": 164, + "id": 166, "name": "error", "kind": 1024, "kindString": "Property", @@ -101188,8 +103182,8 @@ "title": "Properties", "kind": 1024, "children": [ - 163, - 164 + 165, + 166 ] } ] @@ -101218,18 +103212,18 @@ "title": "Methods", "kind": 2048, "children": [ - 203, - 165, - 215, - 231, - 248, - 260, - 280, - 191, - 271, - 178, + 207, + 167, + 219, + 235, + 252, + 264, + 284, + 195, + 275, + 180, 137, - 150 + 152 ] } ], @@ -101280,6 +103274,330 @@ "flags": {}, "originalName": "", "children": [ + { + "id": 63, + "name": "FunctionRegion", + "kind": 8, + "kindString": "Enumeration", + "flags": {}, + "children": [ + { + "id": 64, + "name": "Any", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 45, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "any" + }, + "defaultValue": "\"any\"" + }, + { + "id": 65, + "name": "ApNortheast1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 46, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-northeast-1" + }, + "defaultValue": "\"ap-northeast-1\"" + }, + { + "id": 66, + "name": "ApNortheast2", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 47, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-northeast-2" + }, + "defaultValue": "\"ap-northeast-2\"" + }, + { + "id": 67, + "name": "ApSouth1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 48, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-south-1" + }, + "defaultValue": "\"ap-south-1\"" + }, + { + "id": 68, + "name": "ApSoutheast1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 49, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-southeast-1" + }, + "defaultValue": "\"ap-southeast-1\"" + }, + { + "id": 69, + "name": "ApSoutheast2", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 50, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-southeast-2" + }, + "defaultValue": "\"ap-southeast-2\"" + }, + { + "id": 70, + "name": "CaCentral1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 51, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ca-central-1" + }, + "defaultValue": "\"ca-central-1\"" + }, + { + "id": 71, + "name": "EuCentral1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 52, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "eu-central-1" + }, + "defaultValue": "\"eu-central-1\"" + }, + { + "id": 72, + "name": "EuWest1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 53, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "eu-west-1" + }, + "defaultValue": "\"eu-west-1\"" + }, + { + "id": 73, + "name": "EuWest2", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 54, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "eu-west-2" + }, + "defaultValue": "\"eu-west-2\"" + }, + { + "id": 74, + "name": "EuWest3", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 55, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "eu-west-3" + }, + "defaultValue": "\"eu-west-3\"" + }, + { + "id": 75, + "name": "SaEast1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 56, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "sa-east-1" + }, + "defaultValue": "\"sa-east-1\"" + }, + { + "id": 76, + "name": "UsEast1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 57, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "us-east-1" + }, + "defaultValue": "\"us-east-1\"" + }, + { + "id": 77, + "name": "UsWest1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 58, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "us-west-1" + }, + "defaultValue": "\"us-west-1\"" + }, + { + "id": 78, + "name": "UsWest2", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 59, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "us-west-2" + }, + "defaultValue": "\"us-west-2\"" + } + ], + "groups": [ + { + "title": "Enumeration Members", + "kind": 16, + "children": [ + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78 + ] + } + ], + "sources": [ + { + "fileName": "src/types.ts", + "line": 44, + "character": 12 + } + ] + }, { "id": 1, "name": "FunctionsClient", @@ -101296,7 +103614,7 @@ "sources": [ { "fileName": "src/FunctionsClient.ts", - "line": 16, + "line": 18, "character": 2 } ], @@ -101345,7 +103663,7 @@ "sources": [ { "fileName": "src/FunctionsClient.ts", - "line": 23, + "line": 26, "character": 6 } ], @@ -101435,7 +103753,7 @@ "sources": [ { "fileName": "src/FunctionsClient.ts", - "line": 22, + "line": 25, "character": 6 } ], @@ -101455,6 +103773,351 @@ "package": "typescript", "name": "Record" } + }, + { + "id": 13, + "name": "region", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/FunctionsClient.ts", + "line": 27, + "character": 6 + } + ], + "type": { + "type": "reference", + "id": 63, + "name": "FunctionRegion", + "dereferenced": { + "id": 63, + "name": "FunctionRegion", + "kind": 8, + "kindString": "Enumeration", + "flags": {}, + "children": [ + { + "id": 64, + "name": "Any", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 45, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "any" + }, + "defaultValue": "\"any\"" + }, + { + "id": 65, + "name": "ApNortheast1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 46, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-northeast-1" + }, + "defaultValue": "\"ap-northeast-1\"" + }, + { + "id": 66, + "name": "ApNortheast2", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 47, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-northeast-2" + }, + "defaultValue": "\"ap-northeast-2\"" + }, + { + "id": 67, + "name": "ApSouth1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 48, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-south-1" + }, + "defaultValue": "\"ap-south-1\"" + }, + { + "id": 68, + "name": "ApSoutheast1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 49, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-southeast-1" + }, + "defaultValue": "\"ap-southeast-1\"" + }, + { + "id": 69, + "name": "ApSoutheast2", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 50, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-southeast-2" + }, + "defaultValue": "\"ap-southeast-2\"" + }, + { + "id": 70, + "name": "CaCentral1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 51, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ca-central-1" + }, + "defaultValue": "\"ca-central-1\"" + }, + { + "id": 71, + "name": "EuCentral1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 52, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "eu-central-1" + }, + "defaultValue": "\"eu-central-1\"" + }, + { + "id": 72, + "name": "EuWest1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 53, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "eu-west-1" + }, + "defaultValue": "\"eu-west-1\"" + }, + { + "id": 73, + "name": "EuWest2", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 54, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "eu-west-2" + }, + "defaultValue": "\"eu-west-2\"" + }, + { + "id": 74, + "name": "EuWest3", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 55, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "eu-west-3" + }, + "defaultValue": "\"eu-west-3\"" + }, + { + "id": 75, + "name": "SaEast1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 56, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "sa-east-1" + }, + "defaultValue": "\"sa-east-1\"" + }, + { + "id": 76, + "name": "UsEast1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 57, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "us-east-1" + }, + "defaultValue": "\"us-east-1\"" + }, + { + "id": 77, + "name": "UsWest1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 58, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "us-west-1" + }, + "defaultValue": "\"us-west-1\"" + }, + { + "id": 78, + "name": "UsWest2", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 59, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "us-west-2" + }, + "defaultValue": "\"us-west-2\"" + } + ], + "groups": [ + { + "title": "Enumeration Members", + "kind": 16, + "children": [ + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78 + ] + } + ], + "sources": [ + { + "fileName": "src/types.ts", + "line": 44, + "character": 12 + } + ] + } + } } ], "groups": [ @@ -101463,7 +104126,8 @@ "kind": 1024, "children": [ 8, - 7 + 7, + 13 ] } ] @@ -101481,7 +104145,7 @@ ] }, { - "id": 15, + "id": 17, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -101491,28 +104155,28 @@ "sources": [ { "fileName": "src/FunctionsClient.ts", - "line": 14, + "line": 16, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 16, + "id": 18, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 17, + "id": 19, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 18, + "id": 20, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -101536,7 +104200,7 @@ } }, { - "id": 19, + "id": 21, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -101571,7 +104235,7 @@ } }, { - "id": 14, + "id": 15, "name": "headers", "kind": 1024, "kindString": "Property", @@ -101581,7 +104245,7 @@ "sources": [ { "fileName": "src/FunctionsClient.ts", - "line": 13, + "line": 14, "character": 12 } ], @@ -101603,7 +104267,352 @@ } }, { - "id": 13, + "id": 16, + "name": "region", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true + }, + "sources": [ + { + "fileName": "src/FunctionsClient.ts", + "line": 15, + "character": 12 + } + ], + "type": { + "type": "reference", + "id": 63, + "name": "FunctionRegion", + "dereferenced": { + "id": 63, + "name": "FunctionRegion", + "kind": 8, + "kindString": "Enumeration", + "flags": {}, + "children": [ + { + "id": 64, + "name": "Any", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 45, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "any" + }, + "defaultValue": "\"any\"" + }, + { + "id": 65, + "name": "ApNortheast1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 46, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-northeast-1" + }, + "defaultValue": "\"ap-northeast-1\"" + }, + { + "id": 66, + "name": "ApNortheast2", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 47, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-northeast-2" + }, + "defaultValue": "\"ap-northeast-2\"" + }, + { + "id": 67, + "name": "ApSouth1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 48, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-south-1" + }, + "defaultValue": "\"ap-south-1\"" + }, + { + "id": 68, + "name": "ApSoutheast1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 49, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-southeast-1" + }, + "defaultValue": "\"ap-southeast-1\"" + }, + { + "id": 69, + "name": "ApSoutheast2", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 50, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-southeast-2" + }, + "defaultValue": "\"ap-southeast-2\"" + }, + { + "id": 70, + "name": "CaCentral1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 51, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ca-central-1" + }, + "defaultValue": "\"ca-central-1\"" + }, + { + "id": 71, + "name": "EuCentral1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 52, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "eu-central-1" + }, + "defaultValue": "\"eu-central-1\"" + }, + { + "id": 72, + "name": "EuWest1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 53, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "eu-west-1" + }, + "defaultValue": "\"eu-west-1\"" + }, + { + "id": 73, + "name": "EuWest2", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 54, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "eu-west-2" + }, + "defaultValue": "\"eu-west-2\"" + }, + { + "id": 74, + "name": "EuWest3", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 55, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "eu-west-3" + }, + "defaultValue": "\"eu-west-3\"" + }, + { + "id": 75, + "name": "SaEast1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 56, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "sa-east-1" + }, + "defaultValue": "\"sa-east-1\"" + }, + { + "id": 76, + "name": "UsEast1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 57, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "us-east-1" + }, + "defaultValue": "\"us-east-1\"" + }, + { + "id": 77, + "name": "UsWest1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 58, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "us-west-1" + }, + "defaultValue": "\"us-west-1\"" + }, + { + "id": 78, + "name": "UsWest2", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 59, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "us-west-2" + }, + "defaultValue": "\"us-west-2\"" + } + ], + "groups": [ + { + "title": "Enumeration Members", + "kind": 16, + "children": [ + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78 + ] + } + ], + "sources": [ + { + "fileName": "src/types.ts", + "line": 44, + "character": 12 + } + ] + } + } + }, + { + "id": 14, "name": "url", "kind": 1024, "kindString": "Property", @@ -101613,7 +104622,7 @@ "sources": [ { "fileName": "src/FunctionsClient.ts", - "line": 12, + "line": 13, "character": 12 } ], @@ -101623,7 +104632,7 @@ } }, { - "id": 23, + "id": 25, "name": "invoke", "kind": 2048, "kindString": "Method", @@ -101631,13 +104640,13 @@ "sources": [ { "fileName": "src/FunctionsClient.ts", - "line": 44, + "line": 49, "character": 8 } ], "signatures": [ { - "id": 24, + "id": 26, "name": "invoke", "kind": 4096, "kindString": "Call signature", @@ -101647,7 +104656,7 @@ }, "typeParameter": [ { - "id": 25, + "id": 27, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -101660,7 +104669,7 @@ ], "parameters": [ { - "id": 26, + "id": 28, "name": "functionName", "kind": 32768, "kindString": "Parameter", @@ -101674,7 +104683,7 @@ } }, { - "id": 27, + "id": 29, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -101684,10 +104693,10 @@ }, "type": { "type": "reference", - "id": 28, + "id": 30, "name": "FunctionInvokeOptions", "dereferenced": { - "id": 28, + "id": 30, "name": "FunctionInvokeOptions", "kind": 4194304, "kindString": "Type alias", @@ -101695,21 +104704,21 @@ "sources": [ { "fileName": "src/types.ts", - "line": 44, + "line": 62, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 29, + "id": 31, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 35, + "id": 38, "name": "body", "kind": 1024, "kindString": "Property", @@ -101722,7 +104731,7 @@ "sources": [ { "fileName": "src/types.ts", - "line": 56, + "line": 78, "character": 2 } ], @@ -101791,7 +104800,7 @@ } }, { - "id": 30, + "id": 32, "name": "headers", "kind": 1024, "kindString": "Property", @@ -101804,14 +104813,14 @@ "sources": [ { "fileName": "src/types.ts", - "line": 48, + "line": 66, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 31, + "id": 33, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -101819,19 +104828,19 @@ "sources": [ { "fileName": "src/types.ts", - "line": 48, + "line": 66, "character": 12 } ], "indexSignature": { - "id": 32, + "id": 34, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 33, + "id": 35, "name": "key", "kind": 32768, "flags": {}, @@ -101850,7 +104859,7 @@ } }, { - "id": 34, + "id": 36, "name": "method", "kind": 1024, "kindString": "Property", @@ -101863,7 +104872,7 @@ "sources": [ { "fileName": "src/types.ts", - "line": 52, + "line": 70, "character": 2 } ], @@ -101892,6 +104901,354 @@ } ] } + }, + { + "id": 37, + "name": "region", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "The Region to invoke the function in." + }, + "sources": [ + { + "fileName": "src/types.ts", + "line": 74, + "character": 2 + } + ], + "type": { + "type": "reference", + "id": 63, + "name": "FunctionRegion", + "dereferenced": { + "id": 63, + "name": "FunctionRegion", + "kind": 8, + "kindString": "Enumeration", + "flags": {}, + "children": [ + { + "id": 64, + "name": "Any", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 45, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "any" + }, + "defaultValue": "\"any\"" + }, + { + "id": 65, + "name": "ApNortheast1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 46, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-northeast-1" + }, + "defaultValue": "\"ap-northeast-1\"" + }, + { + "id": 66, + "name": "ApNortheast2", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 47, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-northeast-2" + }, + "defaultValue": "\"ap-northeast-2\"" + }, + { + "id": 67, + "name": "ApSouth1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 48, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-south-1" + }, + "defaultValue": "\"ap-south-1\"" + }, + { + "id": 68, + "name": "ApSoutheast1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 49, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-southeast-1" + }, + "defaultValue": "\"ap-southeast-1\"" + }, + { + "id": 69, + "name": "ApSoutheast2", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 50, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-southeast-2" + }, + "defaultValue": "\"ap-southeast-2\"" + }, + { + "id": 70, + "name": "CaCentral1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 51, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ca-central-1" + }, + "defaultValue": "\"ca-central-1\"" + }, + { + "id": 71, + "name": "EuCentral1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 52, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "eu-central-1" + }, + "defaultValue": "\"eu-central-1\"" + }, + { + "id": 72, + "name": "EuWest1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 53, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "eu-west-1" + }, + "defaultValue": "\"eu-west-1\"" + }, + { + "id": 73, + "name": "EuWest2", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 54, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "eu-west-2" + }, + "defaultValue": "\"eu-west-2\"" + }, + { + "id": 74, + "name": "EuWest3", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 55, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "eu-west-3" + }, + "defaultValue": "\"eu-west-3\"" + }, + { + "id": 75, + "name": "SaEast1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 56, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "sa-east-1" + }, + "defaultValue": "\"sa-east-1\"" + }, + { + "id": 76, + "name": "UsEast1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 57, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "us-east-1" + }, + "defaultValue": "\"us-east-1\"" + }, + { + "id": 77, + "name": "UsWest1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 58, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "us-west-1" + }, + "defaultValue": "\"us-west-1\"" + }, + { + "id": 78, + "name": "UsWest2", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 59, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "us-west-2" + }, + "defaultValue": "\"us-west-2\"" + } + ], + "groups": [ + { + "title": "Enumeration Members", + "kind": 16, + "children": [ + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78 + ] + } + ], + "sources": [ + { + "fileName": "src/types.ts", + "line": 44, + "character": 12 + } + ] + } + } } ], "groups": [ @@ -101899,16 +105256,17 @@ "title": "Properties", "kind": 1024, "children": [ - 35, - 30, - 34 + 38, + 32, + 36, + 37 ] } ], "sources": [ { "fileName": "src/types.ts", - "line": 44, + "line": 62, "character": 36 } ] @@ -101924,11 +105282,11 @@ "typeArguments": [ { "type": "reference", - "id": 58, + "id": 61, "typeArguments": [ { "type": "reference", - "id": 25, + "id": 27, "name": "T" } ], @@ -101943,7 +105301,7 @@ ] }, { - "id": 20, + "id": 22, "name": "setAuth", "kind": 2048, "kindString": "Method", @@ -101951,13 +105309,13 @@ "sources": [ { "fileName": "src/FunctionsClient.ts", - "line": 35, + "line": 40, "character": 2 } ], "signatures": [ { - "id": 21, + "id": 23, "name": "setAuth", "kind": 4096, "kindString": "Call signature", @@ -101967,7 +105325,7 @@ }, "parameters": [ { - "id": 22, + "id": 24, "name": "token", "kind": 32768, "kindString": "Parameter", @@ -102001,37 +105359,38 @@ "title": "Properties", "kind": 1024, "children": [ + 17, 15, - 14, - 13 + 16, + 14 ] }, { "title": "Methods", "kind": 2048, "children": [ - 23, - 20 + 25, + 22 ] } ], "sources": [ { "fileName": "src/FunctionsClient.ts", - "line": 11, + "line": 12, "character": 13 } ] }, { - "id": 36, + "id": 39, "name": "FunctionsError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 37, + "id": 40, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -102045,14 +105404,14 @@ ], "signatures": [ { - "id": 38, + "id": 41, "name": "new FunctionsError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 39, + "id": 42, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -102063,7 +105422,7 @@ } }, { - "id": 40, + "id": 43, "name": "name", "kind": 32768, "kindString": "Parameter", @@ -102075,7 +105434,7 @@ "defaultValue": "'FunctionsError'" }, { - "id": 41, + "id": 44, "name": "context", "kind": 32768, "kindString": "Parameter", @@ -102090,7 +105449,7 @@ ], "type": { "type": "reference", - "id": 36, + "id": 39, "name": "FunctionsError" }, "overwrites": { @@ -102105,7 +105464,7 @@ } }, { - "id": 42, + "id": 45, "name": "context", "kind": 1024, "kindString": "Property", @@ -102128,14 +105487,14 @@ "title": "Constructors", "kind": 512, "children": [ - 37 + 40 ] }, { "title": "Properties", "kind": 1024, "children": [ - 42 + 45 ] } ], @@ -102157,30 +105516,30 @@ "extendedBy": [ { "type": "reference", - "id": 43, + "id": 46, "name": "FunctionsFetchError" }, { "type": "reference", - "id": 48, + "id": 51, "name": "FunctionsHttpError" }, { "type": "reference", - "id": 53, + "id": 56, "name": "FunctionsRelayError" } ] }, { - "id": 43, + "id": 46, "name": "FunctionsFetchError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 44, + "id": 47, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -102194,14 +105553,14 @@ ], "signatures": [ { - "id": 45, + "id": 48, "name": "new FunctionsFetchError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 46, + "id": 49, "name": "context", "kind": 32768, "kindString": "Parameter", @@ -102214,24 +105573,24 @@ ], "type": { "type": "reference", - "id": 43, + "id": 46, "name": "FunctionsFetchError" }, "overwrites": { "type": "reference", - "id": 38, + "id": 41, "name": "FunctionsError.constructor" } } ], "overwrites": { "type": "reference", - "id": 37, + "id": 40, "name": "FunctionsError.constructor" } }, { - "id": 47, + "id": 50, "name": "context", "kind": 1024, "kindString": "Property", @@ -102249,7 +105608,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 42, + "id": 45, "name": "FunctionsError.context" } } @@ -102259,14 +105618,14 @@ "title": "Constructors", "kind": 512, "children": [ - 44 + 47 ] }, { "title": "Properties", "kind": 1024, "children": [ - 47 + 50 ] } ], @@ -102280,20 +105639,20 @@ "extendedTypes": [ { "type": "reference", - "id": 36, + "id": 39, "name": "FunctionsError" } ] }, { - "id": 48, + "id": 51, "name": "FunctionsHttpError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 49, + "id": 52, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -102307,14 +105666,14 @@ ], "signatures": [ { - "id": 50, + "id": 53, "name": "new FunctionsHttpError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 51, + "id": 54, "name": "context", "kind": 32768, "kindString": "Parameter", @@ -102327,24 +105686,24 @@ ], "type": { "type": "reference", - "id": 48, + "id": 51, "name": "FunctionsHttpError" }, "overwrites": { "type": "reference", - "id": 38, + "id": 41, "name": "FunctionsError.constructor" } } ], "overwrites": { "type": "reference", - "id": 37, + "id": 40, "name": "FunctionsError.constructor" } }, { - "id": 52, + "id": 55, "name": "context", "kind": 1024, "kindString": "Property", @@ -102362,7 +105721,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 42, + "id": 45, "name": "FunctionsError.context" } } @@ -102372,14 +105731,14 @@ "title": "Constructors", "kind": 512, "children": [ - 49 + 52 ] }, { "title": "Properties", "kind": 1024, "children": [ - 52 + 55 ] } ], @@ -102393,20 +105752,20 @@ "extendedTypes": [ { "type": "reference", - "id": 36, + "id": 39, "name": "FunctionsError" } ] }, { - "id": 53, + "id": 56, "name": "FunctionsRelayError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 54, + "id": 57, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -102420,14 +105779,14 @@ ], "signatures": [ { - "id": 55, + "id": 58, "name": "new FunctionsRelayError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 56, + "id": 59, "name": "context", "kind": 32768, "kindString": "Parameter", @@ -102440,24 +105799,24 @@ ], "type": { "type": "reference", - "id": 53, + "id": 56, "name": "FunctionsRelayError" }, "overwrites": { "type": "reference", - "id": 38, + "id": 41, "name": "FunctionsError.constructor" } } ], "overwrites": { "type": "reference", - "id": 37, + "id": 40, "name": "FunctionsError.constructor" } }, { - "id": 57, + "id": 60, "name": "context", "kind": 1024, "kindString": "Property", @@ -102475,7 +105834,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 42, + "id": 45, "name": "FunctionsError.context" } } @@ -102485,14 +105844,14 @@ "title": "Constructors", "kind": 512, "children": [ - 54 + 57 ] }, { "title": "Properties", "kind": 1024, "children": [ - 57 + 60 ] } ], @@ -102506,13 +105865,13 @@ "extendedTypes": [ { "type": "reference", - "id": 36, + "id": 39, "name": "FunctionsError" } ] }, { - "id": 28, + "id": 30, "name": "FunctionInvokeOptions", "kind": 4194304, "kindString": "Type alias", @@ -102520,21 +105879,21 @@ "sources": [ { "fileName": "src/types.ts", - "line": 44, + "line": 62, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 29, + "id": 31, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 35, + "id": 38, "name": "body", "kind": 1024, "kindString": "Property", @@ -102547,7 +105906,7 @@ "sources": [ { "fileName": "src/types.ts", - "line": 56, + "line": 78, "character": 2 } ], @@ -102616,7 +105975,7 @@ } }, { - "id": 30, + "id": 32, "name": "headers", "kind": 1024, "kindString": "Property", @@ -102629,14 +105988,14 @@ "sources": [ { "fileName": "src/types.ts", - "line": 48, + "line": 66, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 31, + "id": 33, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -102644,19 +106003,19 @@ "sources": [ { "fileName": "src/types.ts", - "line": 48, + "line": 66, "character": 12 } ], "indexSignature": { - "id": 32, + "id": 34, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 33, + "id": 35, "name": "key", "kind": 32768, "flags": {}, @@ -102675,7 +106034,7 @@ } }, { - "id": 34, + "id": 36, "name": "method", "kind": 1024, "kindString": "Property", @@ -102688,7 +106047,7 @@ "sources": [ { "fileName": "src/types.ts", - "line": 52, + "line": 70, "character": 2 } ], @@ -102717,6 +106076,354 @@ } ] } + }, + { + "id": 37, + "name": "region", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "The Region to invoke the function in." + }, + "sources": [ + { + "fileName": "src/types.ts", + "line": 74, + "character": 2 + } + ], + "type": { + "type": "reference", + "id": 63, + "name": "FunctionRegion", + "dereferenced": { + "id": 63, + "name": "FunctionRegion", + "kind": 8, + "kindString": "Enumeration", + "flags": {}, + "children": [ + { + "id": 64, + "name": "Any", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 45, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "any" + }, + "defaultValue": "\"any\"" + }, + { + "id": 65, + "name": "ApNortheast1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 46, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-northeast-1" + }, + "defaultValue": "\"ap-northeast-1\"" + }, + { + "id": 66, + "name": "ApNortheast2", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 47, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-northeast-2" + }, + "defaultValue": "\"ap-northeast-2\"" + }, + { + "id": 67, + "name": "ApSouth1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 48, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-south-1" + }, + "defaultValue": "\"ap-south-1\"" + }, + { + "id": 68, + "name": "ApSoutheast1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 49, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-southeast-1" + }, + "defaultValue": "\"ap-southeast-1\"" + }, + { + "id": 69, + "name": "ApSoutheast2", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 50, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-southeast-2" + }, + "defaultValue": "\"ap-southeast-2\"" + }, + { + "id": 70, + "name": "CaCentral1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 51, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ca-central-1" + }, + "defaultValue": "\"ca-central-1\"" + }, + { + "id": 71, + "name": "EuCentral1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 52, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "eu-central-1" + }, + "defaultValue": "\"eu-central-1\"" + }, + { + "id": 72, + "name": "EuWest1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 53, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "eu-west-1" + }, + "defaultValue": "\"eu-west-1\"" + }, + { + "id": 73, + "name": "EuWest2", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 54, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "eu-west-2" + }, + "defaultValue": "\"eu-west-2\"" + }, + { + "id": 74, + "name": "EuWest3", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 55, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "eu-west-3" + }, + "defaultValue": "\"eu-west-3\"" + }, + { + "id": 75, + "name": "SaEast1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 56, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "sa-east-1" + }, + "defaultValue": "\"sa-east-1\"" + }, + { + "id": 76, + "name": "UsEast1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 57, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "us-east-1" + }, + "defaultValue": "\"us-east-1\"" + }, + { + "id": 77, + "name": "UsWest1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 58, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "us-west-1" + }, + "defaultValue": "\"us-west-1\"" + }, + { + "id": 78, + "name": "UsWest2", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 59, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "us-west-2" + }, + "defaultValue": "\"us-west-2\"" + } + ], + "groups": [ + { + "title": "Enumeration Members", + "kind": 16, + "children": [ + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78 + ] + } + ], + "sources": [ + { + "fileName": "src/types.ts", + "line": 44, + "character": 12 + } + ] + } + } } ], "groups": [ @@ -102724,16 +106431,17 @@ "title": "Properties", "kind": 1024, "children": [ - 35, - 30, - 34 + 38, + 32, + 36, + 37 ] } ], "sources": [ { "fileName": "src/types.ts", - "line": 44, + "line": 62, "character": 36 } ] @@ -102741,7 +106449,7 @@ } }, { - "id": 58, + "id": 61, "name": "FunctionsResponse", "kind": 4194304, "kindString": "Type alias", @@ -102755,7 +106463,7 @@ ], "typeParameter": [ { - "id": 59, + "id": 62, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -102772,23 +106480,30 @@ } ], "groups": [ + { + "title": "Enumerations", + "kind": 8, + "children": [ + 63 + ] + }, { "title": "Classes", "kind": 128, "children": [ 1, - 36, - 43, - 48, - 53 + 39, + 46, + 51, + 56 ] }, { "title": "Type Aliases", "kind": 4194304, "children": [ - 28, - 58 + 30, + 61 ] } ], diff --git a/apps/docs/spec/enrichments/tsdoc_v2/functions.json b/apps/docs/spec/enrichments/tsdoc_v2/functions.json index bee062bb846..bde5e93830d 100644 --- a/apps/docs/spec/enrichments/tsdoc_v2/functions.json +++ b/apps/docs/spec/enrichments/tsdoc_v2/functions.json @@ -6,6 +6,330 @@ "flags": {}, "originalName": "", "children": [ + { + "id": 63, + "name": "FunctionRegion", + "kind": 8, + "kindString": "Enumeration", + "flags": {}, + "children": [ + { + "id": 64, + "name": "Any", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 45, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "any" + }, + "defaultValue": "\"any\"" + }, + { + "id": 65, + "name": "ApNortheast1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 46, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-northeast-1" + }, + "defaultValue": "\"ap-northeast-1\"" + }, + { + "id": 66, + "name": "ApNortheast2", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 47, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-northeast-2" + }, + "defaultValue": "\"ap-northeast-2\"" + }, + { + "id": 67, + "name": "ApSouth1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 48, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-south-1" + }, + "defaultValue": "\"ap-south-1\"" + }, + { + "id": 68, + "name": "ApSoutheast1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 49, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-southeast-1" + }, + "defaultValue": "\"ap-southeast-1\"" + }, + { + "id": 69, + "name": "ApSoutheast2", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 50, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-southeast-2" + }, + "defaultValue": "\"ap-southeast-2\"" + }, + { + "id": 70, + "name": "CaCentral1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 51, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ca-central-1" + }, + "defaultValue": "\"ca-central-1\"" + }, + { + "id": 71, + "name": "EuCentral1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 52, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "eu-central-1" + }, + "defaultValue": "\"eu-central-1\"" + }, + { + "id": 72, + "name": "EuWest1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 53, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "eu-west-1" + }, + "defaultValue": "\"eu-west-1\"" + }, + { + "id": 73, + "name": "EuWest2", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 54, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "eu-west-2" + }, + "defaultValue": "\"eu-west-2\"" + }, + { + "id": 74, + "name": "EuWest3", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 55, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "eu-west-3" + }, + "defaultValue": "\"eu-west-3\"" + }, + { + "id": 75, + "name": "SaEast1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 56, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "sa-east-1" + }, + "defaultValue": "\"sa-east-1\"" + }, + { + "id": 76, + "name": "UsEast1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 57, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "us-east-1" + }, + "defaultValue": "\"us-east-1\"" + }, + { + "id": 77, + "name": "UsWest1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 58, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "us-west-1" + }, + "defaultValue": "\"us-west-1\"" + }, + { + "id": 78, + "name": "UsWest2", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 59, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "us-west-2" + }, + "defaultValue": "\"us-west-2\"" + } + ], + "groups": [ + { + "title": "Enumeration Members", + "kind": 16, + "children": [ + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78 + ] + } + ], + "sources": [ + { + "fileName": "src/types.ts", + "line": 44, + "character": 12 + } + ] + }, { "id": 1, "name": "FunctionsClient", @@ -22,7 +346,7 @@ "sources": [ { "fileName": "src/FunctionsClient.ts", - "line": 16, + "line": 18, "character": 2 } ], @@ -71,7 +395,7 @@ "sources": [ { "fileName": "src/FunctionsClient.ts", - "line": 23, + "line": 26, "character": 6 } ], @@ -161,7 +485,7 @@ "sources": [ { "fileName": "src/FunctionsClient.ts", - "line": 22, + "line": 25, "character": 6 } ], @@ -181,6 +505,27 @@ "package": "typescript", "name": "Record" } + }, + { + "id": 13, + "name": "region", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/FunctionsClient.ts", + "line": 27, + "character": 6 + } + ], + "type": { + "type": "reference", + "id": 63, + "name": "FunctionRegion" + } } ], "groups": [ @@ -189,7 +534,8 @@ "kind": 1024, "children": [ 8, - 7 + 7, + 13 ] } ] @@ -207,7 +553,7 @@ ] }, { - "id": 15, + "id": 17, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -217,28 +563,28 @@ "sources": [ { "fileName": "src/FunctionsClient.ts", - "line": 14, + "line": 16, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 16, + "id": 18, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 17, + "id": 19, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 18, + "id": 20, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -262,7 +608,7 @@ } }, { - "id": 19, + "id": 21, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -297,7 +643,7 @@ } }, { - "id": 14, + "id": 15, "name": "headers", "kind": 1024, "kindString": "Property", @@ -307,7 +653,7 @@ "sources": [ { "fileName": "src/FunctionsClient.ts", - "line": 13, + "line": 14, "character": 12 } ], @@ -329,7 +675,28 @@ } }, { - "id": 13, + "id": 16, + "name": "region", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true + }, + "sources": [ + { + "fileName": "src/FunctionsClient.ts", + "line": 15, + "character": 12 + } + ], + "type": { + "type": "reference", + "id": 63, + "name": "FunctionRegion" + } + }, + { + "id": 14, "name": "url", "kind": 1024, "kindString": "Property", @@ -339,7 +706,7 @@ "sources": [ { "fileName": "src/FunctionsClient.ts", - "line": 12, + "line": 13, "character": 12 } ], @@ -349,7 +716,7 @@ } }, { - "id": 23, + "id": 25, "name": "invoke", "kind": 2048, "kindString": "Method", @@ -357,13 +724,13 @@ "sources": [ { "fileName": "src/FunctionsClient.ts", - "line": 44, + "line": 49, "character": 8 } ], "signatures": [ { - "id": 24, + "id": 26, "name": "invoke", "kind": 4096, "kindString": "Call signature", @@ -373,7 +740,7 @@ }, "typeParameter": [ { - "id": 25, + "id": 27, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -386,7 +753,7 @@ ], "parameters": [ { - "id": 26, + "id": 28, "name": "functionName", "kind": 32768, "kindString": "Parameter", @@ -400,7 +767,7 @@ } }, { - "id": 27, + "id": 29, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -410,7 +777,7 @@ }, "type": { "type": "reference", - "id": 28, + "id": 30, "name": "FunctionInvokeOptions" }, "defaultValue": "{}" @@ -421,11 +788,11 @@ "typeArguments": [ { "type": "reference", - "id": 58, + "id": 61, "typeArguments": [ { "type": "reference", - "id": 25, + "id": 27, "name": "T" } ], @@ -440,7 +807,7 @@ ] }, { - "id": 20, + "id": 22, "name": "setAuth", "kind": 2048, "kindString": "Method", @@ -448,13 +815,13 @@ "sources": [ { "fileName": "src/FunctionsClient.ts", - "line": 35, + "line": 40, "character": 2 } ], "signatures": [ { - "id": 21, + "id": 23, "name": "setAuth", "kind": 4096, "kindString": "Call signature", @@ -464,7 +831,7 @@ }, "parameters": [ { - "id": 22, + "id": 24, "name": "token", "kind": 32768, "kindString": "Parameter", @@ -498,37 +865,38 @@ "title": "Properties", "kind": 1024, "children": [ + 17, 15, - 14, - 13 + 16, + 14 ] }, { "title": "Methods", "kind": 2048, "children": [ - 23, - 20 + 25, + 22 ] } ], "sources": [ { "fileName": "src/FunctionsClient.ts", - "line": 11, + "line": 12, "character": 13 } ] }, { - "id": 36, + "id": 39, "name": "FunctionsError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 37, + "id": 40, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -542,14 +910,14 @@ ], "signatures": [ { - "id": 38, + "id": 41, "name": "new FunctionsError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 39, + "id": 42, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -560,7 +928,7 @@ } }, { - "id": 40, + "id": 43, "name": "name", "kind": 32768, "kindString": "Parameter", @@ -572,7 +940,7 @@ "defaultValue": "'FunctionsError'" }, { - "id": 41, + "id": 44, "name": "context", "kind": 32768, "kindString": "Parameter", @@ -587,7 +955,7 @@ ], "type": { "type": "reference", - "id": 36, + "id": 39, "name": "FunctionsError" }, "overwrites": { @@ -602,7 +970,7 @@ } }, { - "id": 42, + "id": 45, "name": "context", "kind": 1024, "kindString": "Property", @@ -625,14 +993,14 @@ "title": "Constructors", "kind": 512, "children": [ - 37 + 40 ] }, { "title": "Properties", "kind": 1024, "children": [ - 42 + 45 ] } ], @@ -654,30 +1022,30 @@ "extendedBy": [ { "type": "reference", - "id": 43, + "id": 46, "name": "FunctionsFetchError" }, { "type": "reference", - "id": 48, + "id": 51, "name": "FunctionsHttpError" }, { "type": "reference", - "id": 53, + "id": 56, "name": "FunctionsRelayError" } ] }, { - "id": 43, + "id": 46, "name": "FunctionsFetchError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 44, + "id": 47, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -691,14 +1059,14 @@ ], "signatures": [ { - "id": 45, + "id": 48, "name": "new FunctionsFetchError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 46, + "id": 49, "name": "context", "kind": 32768, "kindString": "Parameter", @@ -711,24 +1079,24 @@ ], "type": { "type": "reference", - "id": 43, + "id": 46, "name": "FunctionsFetchError" }, "overwrites": { "type": "reference", - "id": 38, + "id": 41, "name": "FunctionsError.constructor" } } ], "overwrites": { "type": "reference", - "id": 37, + "id": 40, "name": "FunctionsError.constructor" } }, { - "id": 47, + "id": 50, "name": "context", "kind": 1024, "kindString": "Property", @@ -746,7 +1114,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 42, + "id": 45, "name": "FunctionsError.context" } } @@ -756,14 +1124,14 @@ "title": "Constructors", "kind": 512, "children": [ - 44 + 47 ] }, { "title": "Properties", "kind": 1024, "children": [ - 47 + 50 ] } ], @@ -777,20 +1145,20 @@ "extendedTypes": [ { "type": "reference", - "id": 36, + "id": 39, "name": "FunctionsError" } ] }, { - "id": 48, + "id": 51, "name": "FunctionsHttpError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 49, + "id": 52, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -804,14 +1172,14 @@ ], "signatures": [ { - "id": 50, + "id": 53, "name": "new FunctionsHttpError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 51, + "id": 54, "name": "context", "kind": 32768, "kindString": "Parameter", @@ -824,24 +1192,24 @@ ], "type": { "type": "reference", - "id": 48, + "id": 51, "name": "FunctionsHttpError" }, "overwrites": { "type": "reference", - "id": 38, + "id": 41, "name": "FunctionsError.constructor" } } ], "overwrites": { "type": "reference", - "id": 37, + "id": 40, "name": "FunctionsError.constructor" } }, { - "id": 52, + "id": 55, "name": "context", "kind": 1024, "kindString": "Property", @@ -859,7 +1227,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 42, + "id": 45, "name": "FunctionsError.context" } } @@ -869,14 +1237,14 @@ "title": "Constructors", "kind": 512, "children": [ - 49 + 52 ] }, { "title": "Properties", "kind": 1024, "children": [ - 52 + 55 ] } ], @@ -890,20 +1258,20 @@ "extendedTypes": [ { "type": "reference", - "id": 36, + "id": 39, "name": "FunctionsError" } ] }, { - "id": 53, + "id": 56, "name": "FunctionsRelayError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 54, + "id": 57, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -917,14 +1285,14 @@ ], "signatures": [ { - "id": 55, + "id": 58, "name": "new FunctionsRelayError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 56, + "id": 59, "name": "context", "kind": 32768, "kindString": "Parameter", @@ -937,24 +1305,24 @@ ], "type": { "type": "reference", - "id": 53, + "id": 56, "name": "FunctionsRelayError" }, "overwrites": { "type": "reference", - "id": 38, + "id": 41, "name": "FunctionsError.constructor" } } ], "overwrites": { "type": "reference", - "id": 37, + "id": 40, "name": "FunctionsError.constructor" } }, { - "id": 57, + "id": 60, "name": "context", "kind": 1024, "kindString": "Property", @@ -972,7 +1340,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 42, + "id": 45, "name": "FunctionsError.context" } } @@ -982,14 +1350,14 @@ "title": "Constructors", "kind": 512, "children": [ - 54 + 57 ] }, { "title": "Properties", "kind": 1024, "children": [ - 57 + 60 ] } ], @@ -1003,13 +1371,13 @@ "extendedTypes": [ { "type": "reference", - "id": 36, + "id": 39, "name": "FunctionsError" } ] }, { - "id": 28, + "id": 30, "name": "FunctionInvokeOptions", "kind": 4194304, "kindString": "Type alias", @@ -1017,21 +1385,21 @@ "sources": [ { "fileName": "src/types.ts", - "line": 44, + "line": 62, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 29, + "id": 31, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 35, + "id": 38, "name": "body", "kind": 1024, "kindString": "Property", @@ -1044,7 +1412,7 @@ "sources": [ { "fileName": "src/types.ts", - "line": 56, + "line": 78, "character": 2 } ], @@ -1113,7 +1481,7 @@ } }, { - "id": 30, + "id": 32, "name": "headers", "kind": 1024, "kindString": "Property", @@ -1126,14 +1494,14 @@ "sources": [ { "fileName": "src/types.ts", - "line": 48, + "line": 66, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 31, + "id": 33, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1141,19 +1509,19 @@ "sources": [ { "fileName": "src/types.ts", - "line": 48, + "line": 66, "character": 12 } ], "indexSignature": { - "id": 32, + "id": 34, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 33, + "id": 35, "name": "key", "kind": 32768, "flags": {}, @@ -1172,7 +1540,7 @@ } }, { - "id": 34, + "id": 36, "name": "method", "kind": 1024, "kindString": "Property", @@ -1185,7 +1553,7 @@ "sources": [ { "fileName": "src/types.ts", - "line": 52, + "line": 70, "character": 2 } ], @@ -1214,6 +1582,30 @@ } ] } + }, + { + "id": 37, + "name": "region", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "The Region to invoke the function in." + }, + "sources": [ + { + "fileName": "src/types.ts", + "line": 74, + "character": 2 + } + ], + "type": { + "type": "reference", + "id": 63, + "name": "FunctionRegion" + } } ], "groups": [ @@ -1221,16 +1613,17 @@ "title": "Properties", "kind": 1024, "children": [ - 35, - 30, - 34 + 38, + 32, + 36, + 37 ] } ], "sources": [ { "fileName": "src/types.ts", - "line": 44, + "line": 62, "character": 36 } ] @@ -1238,7 +1631,7 @@ } }, { - "id": 58, + "id": 61, "name": "FunctionsResponse", "kind": 4194304, "kindString": "Type alias", @@ -1252,7 +1645,7 @@ ], "typeParameter": [ { - "id": 59, + "id": 62, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -1267,7 +1660,7 @@ "typeArguments": [ { "type": "reference", - "id": 59, + "id": 62, "name": "T" } ], @@ -1282,23 +1675,30 @@ } ], "groups": [ + { + "title": "Enumerations", + "kind": 8, + "children": [ + 63 + ] + }, { "title": "Classes", "kind": 128, "children": [ 1, - 36, - 43, - 48, - 53 + 39, + 46, + 51, + 56 ] }, { "title": "Type Aliases", "kind": 4194304, "children": [ - 28, - 58 + 30, + 61 ] } ], diff --git a/apps/docs/spec/enrichments/tsdoc_v2/functions_dereferenced.json b/apps/docs/spec/enrichments/tsdoc_v2/functions_dereferenced.json index 09487d9edca..e48b3aa0691 100644 --- a/apps/docs/spec/enrichments/tsdoc_v2/functions_dereferenced.json +++ b/apps/docs/spec/enrichments/tsdoc_v2/functions_dereferenced.json @@ -6,6 +6,330 @@ "flags": {}, "originalName": "", "children": [ + { + "id": 63, + "name": "FunctionRegion", + "kind": 8, + "kindString": "Enumeration", + "flags": {}, + "children": [ + { + "id": 64, + "name": "Any", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 45, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "any" + }, + "defaultValue": "\"any\"" + }, + { + "id": 65, + "name": "ApNortheast1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 46, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-northeast-1" + }, + "defaultValue": "\"ap-northeast-1\"" + }, + { + "id": 66, + "name": "ApNortheast2", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 47, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-northeast-2" + }, + "defaultValue": "\"ap-northeast-2\"" + }, + { + "id": 67, + "name": "ApSouth1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 48, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-south-1" + }, + "defaultValue": "\"ap-south-1\"" + }, + { + "id": 68, + "name": "ApSoutheast1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 49, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-southeast-1" + }, + "defaultValue": "\"ap-southeast-1\"" + }, + { + "id": 69, + "name": "ApSoutheast2", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 50, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-southeast-2" + }, + "defaultValue": "\"ap-southeast-2\"" + }, + { + "id": 70, + "name": "CaCentral1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 51, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ca-central-1" + }, + "defaultValue": "\"ca-central-1\"" + }, + { + "id": 71, + "name": "EuCentral1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 52, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "eu-central-1" + }, + "defaultValue": "\"eu-central-1\"" + }, + { + "id": 72, + "name": "EuWest1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 53, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "eu-west-1" + }, + "defaultValue": "\"eu-west-1\"" + }, + { + "id": 73, + "name": "EuWest2", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 54, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "eu-west-2" + }, + "defaultValue": "\"eu-west-2\"" + }, + { + "id": 74, + "name": "EuWest3", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 55, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "eu-west-3" + }, + "defaultValue": "\"eu-west-3\"" + }, + { + "id": 75, + "name": "SaEast1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 56, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "sa-east-1" + }, + "defaultValue": "\"sa-east-1\"" + }, + { + "id": 76, + "name": "UsEast1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 57, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "us-east-1" + }, + "defaultValue": "\"us-east-1\"" + }, + { + "id": 77, + "name": "UsWest1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 58, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "us-west-1" + }, + "defaultValue": "\"us-west-1\"" + }, + { + "id": 78, + "name": "UsWest2", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 59, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "us-west-2" + }, + "defaultValue": "\"us-west-2\"" + } + ], + "groups": [ + { + "title": "Enumeration Members", + "kind": 16, + "children": [ + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78 + ] + } + ], + "sources": [ + { + "fileName": "src/types.ts", + "line": 44, + "character": 12 + } + ] + }, { "id": 1, "name": "FunctionsClient", @@ -22,7 +346,7 @@ "sources": [ { "fileName": "src/FunctionsClient.ts", - "line": 16, + "line": 18, "character": 2 } ], @@ -71,7 +395,7 @@ "sources": [ { "fileName": "src/FunctionsClient.ts", - "line": 23, + "line": 26, "character": 6 } ], @@ -161,7 +485,7 @@ "sources": [ { "fileName": "src/FunctionsClient.ts", - "line": 22, + "line": 25, "character": 6 } ], @@ -181,6 +505,351 @@ "package": "typescript", "name": "Record" } + }, + { + "id": 13, + "name": "region", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/FunctionsClient.ts", + "line": 27, + "character": 6 + } + ], + "type": { + "type": "reference", + "id": 63, + "name": "FunctionRegion", + "dereferenced": { + "id": 63, + "name": "FunctionRegion", + "kind": 8, + "kindString": "Enumeration", + "flags": {}, + "children": [ + { + "id": 64, + "name": "Any", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 45, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "any" + }, + "defaultValue": "\"any\"" + }, + { + "id": 65, + "name": "ApNortheast1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 46, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-northeast-1" + }, + "defaultValue": "\"ap-northeast-1\"" + }, + { + "id": 66, + "name": "ApNortheast2", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 47, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-northeast-2" + }, + "defaultValue": "\"ap-northeast-2\"" + }, + { + "id": 67, + "name": "ApSouth1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 48, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-south-1" + }, + "defaultValue": "\"ap-south-1\"" + }, + { + "id": 68, + "name": "ApSoutheast1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 49, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-southeast-1" + }, + "defaultValue": "\"ap-southeast-1\"" + }, + { + "id": 69, + "name": "ApSoutheast2", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 50, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-southeast-2" + }, + "defaultValue": "\"ap-southeast-2\"" + }, + { + "id": 70, + "name": "CaCentral1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 51, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ca-central-1" + }, + "defaultValue": "\"ca-central-1\"" + }, + { + "id": 71, + "name": "EuCentral1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 52, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "eu-central-1" + }, + "defaultValue": "\"eu-central-1\"" + }, + { + "id": 72, + "name": "EuWest1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 53, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "eu-west-1" + }, + "defaultValue": "\"eu-west-1\"" + }, + { + "id": 73, + "name": "EuWest2", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 54, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "eu-west-2" + }, + "defaultValue": "\"eu-west-2\"" + }, + { + "id": 74, + "name": "EuWest3", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 55, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "eu-west-3" + }, + "defaultValue": "\"eu-west-3\"" + }, + { + "id": 75, + "name": "SaEast1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 56, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "sa-east-1" + }, + "defaultValue": "\"sa-east-1\"" + }, + { + "id": 76, + "name": "UsEast1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 57, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "us-east-1" + }, + "defaultValue": "\"us-east-1\"" + }, + { + "id": 77, + "name": "UsWest1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 58, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "us-west-1" + }, + "defaultValue": "\"us-west-1\"" + }, + { + "id": 78, + "name": "UsWest2", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 59, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "us-west-2" + }, + "defaultValue": "\"us-west-2\"" + } + ], + "groups": [ + { + "title": "Enumeration Members", + "kind": 16, + "children": [ + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78 + ] + } + ], + "sources": [ + { + "fileName": "src/types.ts", + "line": 44, + "character": 12 + } + ] + } + } } ], "groups": [ @@ -189,7 +858,8 @@ "kind": 1024, "children": [ 8, - 7 + 7, + 13 ] } ] @@ -207,7 +877,7 @@ ] }, { - "id": 15, + "id": 17, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -217,28 +887,28 @@ "sources": [ { "fileName": "src/FunctionsClient.ts", - "line": 14, + "line": 16, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 16, + "id": 18, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 17, + "id": 19, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 18, + "id": 20, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -262,7 +932,7 @@ } }, { - "id": 19, + "id": 21, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -297,7 +967,7 @@ } }, { - "id": 14, + "id": 15, "name": "headers", "kind": 1024, "kindString": "Property", @@ -307,7 +977,7 @@ "sources": [ { "fileName": "src/FunctionsClient.ts", - "line": 13, + "line": 14, "character": 12 } ], @@ -329,7 +999,352 @@ } }, { - "id": 13, + "id": 16, + "name": "region", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true + }, + "sources": [ + { + "fileName": "src/FunctionsClient.ts", + "line": 15, + "character": 12 + } + ], + "type": { + "type": "reference", + "id": 63, + "name": "FunctionRegion", + "dereferenced": { + "id": 63, + "name": "FunctionRegion", + "kind": 8, + "kindString": "Enumeration", + "flags": {}, + "children": [ + { + "id": 64, + "name": "Any", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 45, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "any" + }, + "defaultValue": "\"any\"" + }, + { + "id": 65, + "name": "ApNortheast1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 46, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-northeast-1" + }, + "defaultValue": "\"ap-northeast-1\"" + }, + { + "id": 66, + "name": "ApNortheast2", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 47, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-northeast-2" + }, + "defaultValue": "\"ap-northeast-2\"" + }, + { + "id": 67, + "name": "ApSouth1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 48, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-south-1" + }, + "defaultValue": "\"ap-south-1\"" + }, + { + "id": 68, + "name": "ApSoutheast1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 49, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-southeast-1" + }, + "defaultValue": "\"ap-southeast-1\"" + }, + { + "id": 69, + "name": "ApSoutheast2", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 50, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-southeast-2" + }, + "defaultValue": "\"ap-southeast-2\"" + }, + { + "id": 70, + "name": "CaCentral1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 51, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ca-central-1" + }, + "defaultValue": "\"ca-central-1\"" + }, + { + "id": 71, + "name": "EuCentral1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 52, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "eu-central-1" + }, + "defaultValue": "\"eu-central-1\"" + }, + { + "id": 72, + "name": "EuWest1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 53, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "eu-west-1" + }, + "defaultValue": "\"eu-west-1\"" + }, + { + "id": 73, + "name": "EuWest2", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 54, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "eu-west-2" + }, + "defaultValue": "\"eu-west-2\"" + }, + { + "id": 74, + "name": "EuWest3", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 55, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "eu-west-3" + }, + "defaultValue": "\"eu-west-3\"" + }, + { + "id": 75, + "name": "SaEast1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 56, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "sa-east-1" + }, + "defaultValue": "\"sa-east-1\"" + }, + { + "id": 76, + "name": "UsEast1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 57, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "us-east-1" + }, + "defaultValue": "\"us-east-1\"" + }, + { + "id": 77, + "name": "UsWest1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 58, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "us-west-1" + }, + "defaultValue": "\"us-west-1\"" + }, + { + "id": 78, + "name": "UsWest2", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 59, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "us-west-2" + }, + "defaultValue": "\"us-west-2\"" + } + ], + "groups": [ + { + "title": "Enumeration Members", + "kind": 16, + "children": [ + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78 + ] + } + ], + "sources": [ + { + "fileName": "src/types.ts", + "line": 44, + "character": 12 + } + ] + } + } + }, + { + "id": 14, "name": "url", "kind": 1024, "kindString": "Property", @@ -339,7 +1354,7 @@ "sources": [ { "fileName": "src/FunctionsClient.ts", - "line": 12, + "line": 13, "character": 12 } ], @@ -349,7 +1364,7 @@ } }, { - "id": 23, + "id": 25, "name": "invoke", "kind": 2048, "kindString": "Method", @@ -357,13 +1372,13 @@ "sources": [ { "fileName": "src/FunctionsClient.ts", - "line": 44, + "line": 49, "character": 8 } ], "signatures": [ { - "id": 24, + "id": 26, "name": "invoke", "kind": 4096, "kindString": "Call signature", @@ -373,7 +1388,7 @@ }, "typeParameter": [ { - "id": 25, + "id": 27, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -386,7 +1401,7 @@ ], "parameters": [ { - "id": 26, + "id": 28, "name": "functionName", "kind": 32768, "kindString": "Parameter", @@ -400,7 +1415,7 @@ } }, { - "id": 27, + "id": 29, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -410,10 +1425,10 @@ }, "type": { "type": "reference", - "id": 28, + "id": 30, "name": "FunctionInvokeOptions", "dereferenced": { - "id": 28, + "id": 30, "name": "FunctionInvokeOptions", "kind": 4194304, "kindString": "Type alias", @@ -421,21 +1436,21 @@ "sources": [ { "fileName": "src/types.ts", - "line": 44, + "line": 62, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 29, + "id": 31, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 35, + "id": 38, "name": "body", "kind": 1024, "kindString": "Property", @@ -448,7 +1463,7 @@ "sources": [ { "fileName": "src/types.ts", - "line": 56, + "line": 78, "character": 2 } ], @@ -517,7 +1532,7 @@ } }, { - "id": 30, + "id": 32, "name": "headers", "kind": 1024, "kindString": "Property", @@ -530,14 +1545,14 @@ "sources": [ { "fileName": "src/types.ts", - "line": 48, + "line": 66, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 31, + "id": 33, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -545,19 +1560,19 @@ "sources": [ { "fileName": "src/types.ts", - "line": 48, + "line": 66, "character": 12 } ], "indexSignature": { - "id": 32, + "id": 34, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 33, + "id": 35, "name": "key", "kind": 32768, "flags": {}, @@ -576,7 +1591,7 @@ } }, { - "id": 34, + "id": 36, "name": "method", "kind": 1024, "kindString": "Property", @@ -589,7 +1604,7 @@ "sources": [ { "fileName": "src/types.ts", - "line": 52, + "line": 70, "character": 2 } ], @@ -618,6 +1633,354 @@ } ] } + }, + { + "id": 37, + "name": "region", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "The Region to invoke the function in." + }, + "sources": [ + { + "fileName": "src/types.ts", + "line": 74, + "character": 2 + } + ], + "type": { + "type": "reference", + "id": 63, + "name": "FunctionRegion", + "dereferenced": { + "id": 63, + "name": "FunctionRegion", + "kind": 8, + "kindString": "Enumeration", + "flags": {}, + "children": [ + { + "id": 64, + "name": "Any", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 45, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "any" + }, + "defaultValue": "\"any\"" + }, + { + "id": 65, + "name": "ApNortheast1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 46, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-northeast-1" + }, + "defaultValue": "\"ap-northeast-1\"" + }, + { + "id": 66, + "name": "ApNortheast2", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 47, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-northeast-2" + }, + "defaultValue": "\"ap-northeast-2\"" + }, + { + "id": 67, + "name": "ApSouth1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 48, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-south-1" + }, + "defaultValue": "\"ap-south-1\"" + }, + { + "id": 68, + "name": "ApSoutheast1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 49, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-southeast-1" + }, + "defaultValue": "\"ap-southeast-1\"" + }, + { + "id": 69, + "name": "ApSoutheast2", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 50, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-southeast-2" + }, + "defaultValue": "\"ap-southeast-2\"" + }, + { + "id": 70, + "name": "CaCentral1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 51, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ca-central-1" + }, + "defaultValue": "\"ca-central-1\"" + }, + { + "id": 71, + "name": "EuCentral1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 52, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "eu-central-1" + }, + "defaultValue": "\"eu-central-1\"" + }, + { + "id": 72, + "name": "EuWest1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 53, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "eu-west-1" + }, + "defaultValue": "\"eu-west-1\"" + }, + { + "id": 73, + "name": "EuWest2", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 54, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "eu-west-2" + }, + "defaultValue": "\"eu-west-2\"" + }, + { + "id": 74, + "name": "EuWest3", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 55, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "eu-west-3" + }, + "defaultValue": "\"eu-west-3\"" + }, + { + "id": 75, + "name": "SaEast1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 56, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "sa-east-1" + }, + "defaultValue": "\"sa-east-1\"" + }, + { + "id": 76, + "name": "UsEast1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 57, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "us-east-1" + }, + "defaultValue": "\"us-east-1\"" + }, + { + "id": 77, + "name": "UsWest1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 58, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "us-west-1" + }, + "defaultValue": "\"us-west-1\"" + }, + { + "id": 78, + "name": "UsWest2", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 59, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "us-west-2" + }, + "defaultValue": "\"us-west-2\"" + } + ], + "groups": [ + { + "title": "Enumeration Members", + "kind": 16, + "children": [ + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78 + ] + } + ], + "sources": [ + { + "fileName": "src/types.ts", + "line": 44, + "character": 12 + } + ] + } + } } ], "groups": [ @@ -625,16 +1988,17 @@ "title": "Properties", "kind": 1024, "children": [ - 35, - 30, - 34 + 38, + 32, + 36, + 37 ] } ], "sources": [ { "fileName": "src/types.ts", - "line": 44, + "line": 62, "character": 36 } ] @@ -650,11 +2014,11 @@ "typeArguments": [ { "type": "reference", - "id": 58, + "id": 61, "typeArguments": [ { "type": "reference", - "id": 25, + "id": 27, "name": "T" } ], @@ -669,7 +2033,7 @@ ] }, { - "id": 20, + "id": 22, "name": "setAuth", "kind": 2048, "kindString": "Method", @@ -677,13 +2041,13 @@ "sources": [ { "fileName": "src/FunctionsClient.ts", - "line": 35, + "line": 40, "character": 2 } ], "signatures": [ { - "id": 21, + "id": 23, "name": "setAuth", "kind": 4096, "kindString": "Call signature", @@ -693,7 +2057,7 @@ }, "parameters": [ { - "id": 22, + "id": 24, "name": "token", "kind": 32768, "kindString": "Parameter", @@ -727,37 +2091,38 @@ "title": "Properties", "kind": 1024, "children": [ + 17, 15, - 14, - 13 + 16, + 14 ] }, { "title": "Methods", "kind": 2048, "children": [ - 23, - 20 + 25, + 22 ] } ], "sources": [ { "fileName": "src/FunctionsClient.ts", - "line": 11, + "line": 12, "character": 13 } ] }, { - "id": 36, + "id": 39, "name": "FunctionsError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 37, + "id": 40, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -771,14 +2136,14 @@ ], "signatures": [ { - "id": 38, + "id": 41, "name": "new FunctionsError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 39, + "id": 42, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -789,7 +2154,7 @@ } }, { - "id": 40, + "id": 43, "name": "name", "kind": 32768, "kindString": "Parameter", @@ -801,7 +2166,7 @@ "defaultValue": "'FunctionsError'" }, { - "id": 41, + "id": 44, "name": "context", "kind": 32768, "kindString": "Parameter", @@ -816,7 +2181,7 @@ ], "type": { "type": "reference", - "id": 36, + "id": 39, "name": "FunctionsError" }, "overwrites": { @@ -831,7 +2196,7 @@ } }, { - "id": 42, + "id": 45, "name": "context", "kind": 1024, "kindString": "Property", @@ -854,14 +2219,14 @@ "title": "Constructors", "kind": 512, "children": [ - 37 + 40 ] }, { "title": "Properties", "kind": 1024, "children": [ - 42 + 45 ] } ], @@ -883,30 +2248,30 @@ "extendedBy": [ { "type": "reference", - "id": 43, + "id": 46, "name": "FunctionsFetchError" }, { "type": "reference", - "id": 48, + "id": 51, "name": "FunctionsHttpError" }, { "type": "reference", - "id": 53, + "id": 56, "name": "FunctionsRelayError" } ] }, { - "id": 43, + "id": 46, "name": "FunctionsFetchError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 44, + "id": 47, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -920,14 +2285,14 @@ ], "signatures": [ { - "id": 45, + "id": 48, "name": "new FunctionsFetchError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 46, + "id": 49, "name": "context", "kind": 32768, "kindString": "Parameter", @@ -940,24 +2305,24 @@ ], "type": { "type": "reference", - "id": 43, + "id": 46, "name": "FunctionsFetchError" }, "overwrites": { "type": "reference", - "id": 38, + "id": 41, "name": "FunctionsError.constructor" } } ], "overwrites": { "type": "reference", - "id": 37, + "id": 40, "name": "FunctionsError.constructor" } }, { - "id": 47, + "id": 50, "name": "context", "kind": 1024, "kindString": "Property", @@ -975,7 +2340,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 42, + "id": 45, "name": "FunctionsError.context" } } @@ -985,14 +2350,14 @@ "title": "Constructors", "kind": 512, "children": [ - 44 + 47 ] }, { "title": "Properties", "kind": 1024, "children": [ - 47 + 50 ] } ], @@ -1006,20 +2371,20 @@ "extendedTypes": [ { "type": "reference", - "id": 36, + "id": 39, "name": "FunctionsError" } ] }, { - "id": 48, + "id": 51, "name": "FunctionsHttpError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 49, + "id": 52, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -1033,14 +2398,14 @@ ], "signatures": [ { - "id": 50, + "id": 53, "name": "new FunctionsHttpError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 51, + "id": 54, "name": "context", "kind": 32768, "kindString": "Parameter", @@ -1053,24 +2418,24 @@ ], "type": { "type": "reference", - "id": 48, + "id": 51, "name": "FunctionsHttpError" }, "overwrites": { "type": "reference", - "id": 38, + "id": 41, "name": "FunctionsError.constructor" } } ], "overwrites": { "type": "reference", - "id": 37, + "id": 40, "name": "FunctionsError.constructor" } }, { - "id": 52, + "id": 55, "name": "context", "kind": 1024, "kindString": "Property", @@ -1088,7 +2453,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 42, + "id": 45, "name": "FunctionsError.context" } } @@ -1098,14 +2463,14 @@ "title": "Constructors", "kind": 512, "children": [ - 49 + 52 ] }, { "title": "Properties", "kind": 1024, "children": [ - 52 + 55 ] } ], @@ -1119,20 +2484,20 @@ "extendedTypes": [ { "type": "reference", - "id": 36, + "id": 39, "name": "FunctionsError" } ] }, { - "id": 53, + "id": 56, "name": "FunctionsRelayError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 54, + "id": 57, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -1146,14 +2511,14 @@ ], "signatures": [ { - "id": 55, + "id": 58, "name": "new FunctionsRelayError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 56, + "id": 59, "name": "context", "kind": 32768, "kindString": "Parameter", @@ -1166,24 +2531,24 @@ ], "type": { "type": "reference", - "id": 53, + "id": 56, "name": "FunctionsRelayError" }, "overwrites": { "type": "reference", - "id": 38, + "id": 41, "name": "FunctionsError.constructor" } } ], "overwrites": { "type": "reference", - "id": 37, + "id": 40, "name": "FunctionsError.constructor" } }, { - "id": 57, + "id": 60, "name": "context", "kind": 1024, "kindString": "Property", @@ -1201,7 +2566,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 42, + "id": 45, "name": "FunctionsError.context" } } @@ -1211,14 +2576,14 @@ "title": "Constructors", "kind": 512, "children": [ - 54 + 57 ] }, { "title": "Properties", "kind": 1024, "children": [ - 57 + 60 ] } ], @@ -1232,13 +2597,13 @@ "extendedTypes": [ { "type": "reference", - "id": 36, + "id": 39, "name": "FunctionsError" } ] }, { - "id": 28, + "id": 30, "name": "FunctionInvokeOptions", "kind": 4194304, "kindString": "Type alias", @@ -1246,21 +2611,21 @@ "sources": [ { "fileName": "src/types.ts", - "line": 44, + "line": 62, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 29, + "id": 31, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 35, + "id": 38, "name": "body", "kind": 1024, "kindString": "Property", @@ -1273,7 +2638,7 @@ "sources": [ { "fileName": "src/types.ts", - "line": 56, + "line": 78, "character": 2 } ], @@ -1342,7 +2707,7 @@ } }, { - "id": 30, + "id": 32, "name": "headers", "kind": 1024, "kindString": "Property", @@ -1355,14 +2720,14 @@ "sources": [ { "fileName": "src/types.ts", - "line": 48, + "line": 66, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 31, + "id": 33, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1370,19 +2735,19 @@ "sources": [ { "fileName": "src/types.ts", - "line": 48, + "line": 66, "character": 12 } ], "indexSignature": { - "id": 32, + "id": 34, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 33, + "id": 35, "name": "key", "kind": 32768, "flags": {}, @@ -1401,7 +2766,7 @@ } }, { - "id": 34, + "id": 36, "name": "method", "kind": 1024, "kindString": "Property", @@ -1414,7 +2779,7 @@ "sources": [ { "fileName": "src/types.ts", - "line": 52, + "line": 70, "character": 2 } ], @@ -1443,6 +2808,354 @@ } ] } + }, + { + "id": 37, + "name": "region", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "The Region to invoke the function in." + }, + "sources": [ + { + "fileName": "src/types.ts", + "line": 74, + "character": 2 + } + ], + "type": { + "type": "reference", + "id": 63, + "name": "FunctionRegion", + "dereferenced": { + "id": 63, + "name": "FunctionRegion", + "kind": 8, + "kindString": "Enumeration", + "flags": {}, + "children": [ + { + "id": 64, + "name": "Any", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 45, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "any" + }, + "defaultValue": "\"any\"" + }, + { + "id": 65, + "name": "ApNortheast1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 46, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-northeast-1" + }, + "defaultValue": "\"ap-northeast-1\"" + }, + { + "id": 66, + "name": "ApNortheast2", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 47, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-northeast-2" + }, + "defaultValue": "\"ap-northeast-2\"" + }, + { + "id": 67, + "name": "ApSouth1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 48, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-south-1" + }, + "defaultValue": "\"ap-south-1\"" + }, + { + "id": 68, + "name": "ApSoutheast1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 49, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-southeast-1" + }, + "defaultValue": "\"ap-southeast-1\"" + }, + { + "id": 69, + "name": "ApSoutheast2", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 50, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ap-southeast-2" + }, + "defaultValue": "\"ap-southeast-2\"" + }, + { + "id": 70, + "name": "CaCentral1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 51, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "ca-central-1" + }, + "defaultValue": "\"ca-central-1\"" + }, + { + "id": 71, + "name": "EuCentral1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 52, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "eu-central-1" + }, + "defaultValue": "\"eu-central-1\"" + }, + { + "id": 72, + "name": "EuWest1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 53, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "eu-west-1" + }, + "defaultValue": "\"eu-west-1\"" + }, + { + "id": 73, + "name": "EuWest2", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 54, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "eu-west-2" + }, + "defaultValue": "\"eu-west-2\"" + }, + { + "id": 74, + "name": "EuWest3", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 55, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "eu-west-3" + }, + "defaultValue": "\"eu-west-3\"" + }, + { + "id": 75, + "name": "SaEast1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 56, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "sa-east-1" + }, + "defaultValue": "\"sa-east-1\"" + }, + { + "id": 76, + "name": "UsEast1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 57, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "us-east-1" + }, + "defaultValue": "\"us-east-1\"" + }, + { + "id": 77, + "name": "UsWest1", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 58, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "us-west-1" + }, + "defaultValue": "\"us-west-1\"" + }, + { + "id": 78, + "name": "UsWest2", + "kind": 16, + "kindString": "Enumeration Member", + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 59, + "character": 2 + } + ], + "type": { + "type": "literal", + "value": "us-west-2" + }, + "defaultValue": "\"us-west-2\"" + } + ], + "groups": [ + { + "title": "Enumeration Members", + "kind": 16, + "children": [ + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78 + ] + } + ], + "sources": [ + { + "fileName": "src/types.ts", + "line": 44, + "character": 12 + } + ] + } + } } ], "groups": [ @@ -1450,16 +3163,17 @@ "title": "Properties", "kind": 1024, "children": [ - 35, - 30, - 34 + 38, + 32, + 36, + 37 ] } ], "sources": [ { "fileName": "src/types.ts", - "line": 44, + "line": 62, "character": 36 } ] @@ -1467,7 +3181,7 @@ } }, { - "id": 58, + "id": 61, "name": "FunctionsResponse", "kind": 4194304, "kindString": "Type alias", @@ -1481,7 +3195,7 @@ ], "typeParameter": [ { - "id": 59, + "id": 62, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -1498,23 +3212,30 @@ } ], "groups": [ + { + "title": "Enumerations", + "kind": 8, + "children": [ + 63 + ] + }, { "title": "Classes", "kind": 128, "children": [ 1, - 36, - 43, - 48, - 53 + 39, + 46, + 51, + 56 ] }, { "title": "Type Aliases", "kind": 4194304, "children": [ - 28, - 58 + 30, + 61 ] } ], diff --git a/apps/docs/spec/enrichments/tsdoc_v2/gotrue.json b/apps/docs/spec/enrichments/tsdoc_v2/gotrue.json index 1afada4ca19..3cebea10d0a 100644 --- a/apps/docs/spec/enrichments/tsdoc_v2/gotrue.json +++ b/apps/docs/spec/enrichments/tsdoc_v2/gotrue.json @@ -1,1149 +1,14 @@ { "id": 0, - "name": "@supabase/gotrue-js", + "name": "@supabase/auth-js", "kind": 1, "kindString": "Project", "flags": {}, "originalName": "", "children": [ - { - "id": 1017, - "name": "AuthApiError", - "kind": 128, - "kindString": "Class", - "flags": {}, - "children": [ - { - "id": 1018, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 19, - "character": 2 - } - ], - "signatures": [ - { - "id": 1019, - "name": "new AuthApiError", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 1020, - "name": "message", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1021, - "name": "status", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "type": { - "type": "reference", - "id": 1017, - "name": "AuthApiError" - }, - "overwrites": { - "type": "reference", - "id": 1012, - "name": "AuthError.constructor" - } - } - ], - "overwrites": { - "type": "reference", - "id": 1011, - "name": "AuthError.constructor" - } - }, - { - "id": 1022, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 17, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "overwrites": { - "type": "reference", - "id": 1015, - "name": "AuthError.status" - } - }, - { - "id": 1023, - "name": "toJSON", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 25, - "character": 2 - } - ], - "signatures": [ - { - "id": 1024, - "name": "toJSON", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reflection", - "declaration": { - "id": 1025, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 1027, - "name": "message", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 28, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 1026, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 27, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 1028, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 29, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "..." - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 1027, - 1026, - 1028 - ] - } - ] - } - } - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 1018 - ] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 1022 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 1023 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 16, - "character": 13 - } - ], - "extendedTypes": [ - { - "type": "reference", - "id": 1010, - "name": "AuthError" - } - ] - }, - { - "id": 1010, - "name": "AuthError", - "kind": 128, - "kindString": "Class", - "flags": {}, - "children": [ - { - "id": 1011, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 5, - "character": 2 - } - ], - "signatures": [ - { - "id": 1012, - "name": "new AuthError", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 1013, - "name": "message", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1014, - "name": "status", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "type": { - "type": "reference", - "id": 1010, - "name": "AuthError" - }, - "overwrites": { - "type": "reference", - "name": "Error.constructor" - } - } - ], - "overwrites": { - "type": "reference", - "name": "Error.constructor" - } - }, - { - "id": 1015, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 2, - "character": 2 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "number" - } - ] - } - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 1011 - ] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 1015 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 1, - "character": 13 - } - ], - "extendedTypes": [ - { - "type": "reference", - "qualifiedName": "Error", - "package": "typescript", - "name": "Error" - } - ], - "extendedBy": [ - { - "type": "reference", - "id": 1017, - "name": "AuthApiError" - }, - { - "type": "reference", - "id": 1030, - "name": "AuthUnknownError" - }, - { - "type": "reference", - "id": 1038, - "name": "CustomAuthError" - } - ] - }, - { - "id": 1090, - "name": "AuthImplicitGrantRedirectError", - "kind": 128, - "kindString": "Class", - "flags": {}, - "children": [ - { - "id": 1091, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 86, - "character": 2 - } - ], - "signatures": [ - { - "id": 1092, - "name": "new AuthImplicitGrantRedirectError", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 1093, - "name": "message", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1094, - "name": "details", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reflection", - "declaration": { - "id": 1095, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 1097, - "name": "code", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 86, - "character": 57 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1096, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 86, - "character": 42 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 1097, - 1096 - ] - } - ] - } - } - ] - }, - "defaultValue": "null" - } - ], - "type": { - "type": "reference", - "id": 1090, - "name": "AuthImplicitGrantRedirectError" - }, - "overwrites": { - "type": "reference", - "id": 1040, - "name": "CustomAuthError.constructor" - } - } - ], - "overwrites": { - "type": "reference", - "id": 1039, - "name": "CustomAuthError.constructor" - } - }, - { - "id": 1098, - "name": "details", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 85, - "character": 2 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reflection", - "declaration": { - "id": 1099, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 1101, - "name": "code", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 85, - "character": 28 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1100, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 85, - "character": 13 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 1101, - 1100 - ] - } - ] - } - } - ] - }, - "defaultValue": "null" - }, - { - "id": 1112, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 49, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "id": 1044, - "name": "CustomAuthError.name" - } - }, - { - "id": 1113, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 50, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "inheritedFrom": { - "type": "reference", - "id": 1045, - "name": "CustomAuthError.status" - } - }, - { - "id": 1102, - "name": "toJSON", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 91, - "character": 2 - } - ], - "signatures": [ - { - "id": 1103, - "name": "toJSON", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reflection", - "declaration": { - "id": 1104, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 1108, - "name": "details", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 96, - "character": 6 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reflection", - "declaration": { - "id": 1109, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 1111, - "name": "code", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 85, - "character": 28 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1110, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 85, - "character": 13 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 1111, - 1110 - ] - } - ] - } - } - ] - }, - "defaultValue": "..." - }, - { - "id": 1106, - "name": "message", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 94, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 1105, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 93, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 1107, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 95, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "..." - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 1108, - 1106, - 1105, - 1107 - ] - } - ] - } - }, - "overwrites": { - "type": "reference", - "id": 1047, - "name": "CustomAuthError.toJSON" - } - } - ], - "overwrites": { - "type": "reference", - "id": 1046, - "name": "CustomAuthError.toJSON" - } - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 1091 - ] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 1098, - 1112, - 1113 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 1102 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 84, - "character": 13 - } - ], - "extendedTypes": [ - { - "type": "reference", - "id": 1038, - "name": "CustomAuthError" - } - ] - }, - { - "id": 1077, - "name": "AuthInvalidCredentialsError", - "kind": 128, - "kindString": "Class", - "flags": {}, - "children": [ - { - "id": 1078, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 79, - "character": 2 - } - ], - "signatures": [ - { - "id": 1079, - "name": "new AuthInvalidCredentialsError", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 1080, - "name": "message", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "id": 1077, - "name": "AuthInvalidCredentialsError" - }, - "overwrites": { - "type": "reference", - "id": 1040, - "name": "CustomAuthError.constructor" - } - } - ], - "overwrites": { - "type": "reference", - "id": 1039, - "name": "CustomAuthError.constructor" - } - }, - { - "id": 1081, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 49, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "id": 1044, - "name": "CustomAuthError.name" - } - }, - { - "id": 1082, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 50, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "inheritedFrom": { - "type": "reference", - "id": 1045, - "name": "CustomAuthError.status" - } - }, - { - "id": 1083, - "name": "toJSON", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 57, - "character": 2 - } - ], - "signatures": [ - { - "id": 1084, - "name": "toJSON", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reflection", - "declaration": { - "id": 1085, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 1087, - "name": "message", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 60, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 1086, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 59, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 1088, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 61, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "..." - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 1087, - 1086, - 1088 - ] - } - ] - } - }, - "inheritedFrom": { - "type": "reference", - "id": 1047, - "name": "CustomAuthError.toJSON" - } - } - ], - "inheritedFrom": { - "type": "reference", - "id": 1046, - "name": "CustomAuthError.toJSON" - } - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 1078 - ] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 1081, - 1082 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 1083 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 78, - "character": 13 - } - ], - "extendedTypes": [ - { - "type": "reference", - "id": 1038, - "name": "CustomAuthError" - } - ] - }, { "id": 1065, - "name": "AuthInvalidTokenResponseError", + "name": "AuthApiError", "kind": 128, "kindString": "Class", "flags": {}, @@ -1157,60 +22,61 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 73, + "line": 21, "character": 2 } ], "signatures": [ { "id": 1067, - "name": "new AuthInvalidTokenResponseError", + "name": "new AuthApiError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, + "parameters": [ + { + "id": 1068, + "name": "message", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1069, + "name": "status", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], "type": { "type": "reference", "id": 1065, - "name": "AuthInvalidTokenResponseError" + "name": "AuthApiError" }, "overwrites": { "type": "reference", - "id": 1040, - "name": "CustomAuthError.constructor" + "id": 1060, + "name": "AuthError.constructor" } } ], "overwrites": { "type": "reference", - "id": 1039, - "name": "CustomAuthError.constructor" + "id": 1059, + "name": "AuthError.constructor" } }, { - "id": 1068, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 49, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "id": 1044, - "name": "CustomAuthError.name" - } - }, - { - "id": 1069, + "id": 1070, "name": "status", "kind": 1024, "kindString": "Property", @@ -1218,7 +84,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 50, + "line": 19, "character": 2 } ], @@ -1226,14 +92,14 @@ "type": "intrinsic", "name": "number" }, - "inheritedFrom": { + "overwrites": { "type": "reference", - "id": 1045, - "name": "CustomAuthError.status" + "id": 1063, + "name": "AuthError.status" } }, { - "id": 1070, + "id": 1071, "name": "toJSON", "kind": 2048, "kindString": "Method", @@ -1241,13 +107,13 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 57, + "line": 27, "character": 2 } ], "signatures": [ { - "id": 1071, + "id": 1072, "name": "toJSON", "kind": 4096, "kindString": "Call signature", @@ -1255,14 +121,14 @@ "type": { "type": "reflection", "declaration": { - "id": 1072, + "id": 1073, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 1074, + "id": 1075, "name": "message", "kind": 1024, "kindString": "Property", @@ -1270,7 +136,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 60, + "line": 30, "character": 6 } ], @@ -1281,7 +147,7 @@ "defaultValue": "..." }, { - "id": 1073, + "id": 1074, "name": "name", "kind": 1024, "kindString": "Property", @@ -1289,7 +155,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 59, + "line": 29, "character": 6 } ], @@ -1300,7 +166,7 @@ "defaultValue": "..." }, { - "id": 1075, + "id": 1076, "name": "status", "kind": 1024, "kindString": "Property", @@ -1308,7 +174,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 61, + "line": 31, "character": 6 } ], @@ -1324,26 +190,16 @@ "title": "Properties", "kind": 1024, "children": [ + 1075, 1074, - 1073, - 1075 + 1076 ] } ] } - }, - "inheritedFrom": { - "type": "reference", - "id": 1047, - "name": "CustomAuthError.toJSON" } } - ], - "inheritedFrom": { - "type": "reference", - "id": 1046, - "name": "CustomAuthError.toJSON" - } + ] } ], "groups": [ @@ -1358,42 +214,41 @@ "title": "Properties", "kind": 1024, "children": [ - 1068, - 1069 + 1070 ] }, { "title": "Methods", "kind": 2048, "children": [ - 1070 + 1071 ] } ], "sources": [ { "fileName": "src/lib/errors.ts", - "line": 72, + "line": 18, "character": 13 } ], "extendedTypes": [ { "type": "reference", - "id": 1038, - "name": "CustomAuthError" + "id": 1058, + "name": "AuthError" } ] }, { - "id": 1115, - "name": "AuthPKCEGrantCodeExchangeError", + "id": 1058, + "name": "AuthError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 1116, + "id": 1059, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -1401,20 +256,20 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 103, + "line": 7, "character": 2 } ], "signatures": [ { - "id": 1117, - "name": "new AuthPKCEGrantCodeExchangeError", + "id": 1060, + "name": "new AuthError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 1118, + "id": 1061, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -1425,7 +280,153 @@ } }, { - "id": 1119, + "id": 1062, + "name": "status", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "reference", + "id": 1058, + "name": "AuthError" + }, + "overwrites": { + "type": "reference", + "name": "Error.constructor" + } + } + ], + "overwrites": { + "type": "reference", + "name": "Error.constructor" + } + }, + { + "id": 1063, + "name": "status", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 4, + "character": 2 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 1059 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 1063 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 3, + "character": 13 + } + ], + "extendedTypes": [ + { + "type": "reference", + "qualifiedName": "Error", + "package": "typescript", + "name": "Error" + } + ], + "extendedBy": [ + { + "type": "reference", + "id": 1065, + "name": "AuthApiError" + }, + { + "type": "reference", + "id": 1078, + "name": "AuthUnknownError" + }, + { + "type": "reference", + "id": 1086, + "name": "CustomAuthError" + } + ] + }, + { + "id": 1138, + "name": "AuthImplicitGrantRedirectError", + "kind": 128, + "kindString": "Class", + "flags": {}, + "children": [ + { + "id": 1139, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 88, + "character": 2 + } + ], + "signatures": [ + { + "id": 1140, + "name": "new AuthImplicitGrantRedirectError", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "parameters": [ + { + "id": 1141, + "name": "message", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1142, "name": "details", "kind": 32768, "kindString": "Parameter", @@ -1440,14 +441,14 @@ { "type": "reflection", "declaration": { - "id": 1120, + "id": 1143, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 1122, + "id": 1145, "name": "code", "kind": 1024, "kindString": "Property", @@ -1455,7 +456,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 103, + "line": 88, "character": 57 } ], @@ -1465,7 +466,7 @@ } }, { - "id": 1121, + "id": 1144, "name": "error", "kind": 1024, "kindString": "Property", @@ -1473,7 +474,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 103, + "line": 88, "character": 42 } ], @@ -1488,8 +489,8 @@ "title": "Properties", "kind": 1024, "children": [ - 1122, - 1121 + 1145, + 1144 ] } ] @@ -1502,24 +503,24 @@ ], "type": { "type": "reference", - "id": 1115, - "name": "AuthPKCEGrantCodeExchangeError" + "id": 1138, + "name": "AuthImplicitGrantRedirectError" }, "overwrites": { "type": "reference", - "id": 1040, + "id": 1088, "name": "CustomAuthError.constructor" } } ], "overwrites": { "type": "reference", - "id": 1039, + "id": 1087, "name": "CustomAuthError.constructor" } }, { - "id": 1123, + "id": 1146, "name": "details", "kind": 1024, "kindString": "Property", @@ -1527,7 +528,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 102, + "line": 87, "character": 2 } ], @@ -1541,14 +542,14 @@ { "type": "reflection", "declaration": { - "id": 1124, + "id": 1147, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 1126, + "id": 1149, "name": "code", "kind": 1024, "kindString": "Property", @@ -1556,7 +557,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 102, + "line": 87, "character": 28 } ], @@ -1566,7 +567,7 @@ } }, { - "id": 1125, + "id": 1148, "name": "error", "kind": 1024, "kindString": "Property", @@ -1574,7 +575,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 102, + "line": 87, "character": 13 } ], @@ -1589,8 +590,8 @@ "title": "Properties", "kind": 1024, "children": [ - 1126, - 1125 + 1149, + 1148 ] } ] @@ -1601,7 +602,7 @@ "defaultValue": "null" }, { - "id": 1137, + "id": 1160, "name": "name", "kind": 1024, "kindString": "Property", @@ -1609,7 +610,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 49, + "line": 51, "character": 2 } ], @@ -1619,12 +620,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 1044, + "id": 1092, "name": "CustomAuthError.name" } }, { - "id": 1138, + "id": 1161, "name": "status", "kind": 1024, "kindString": "Property", @@ -1632,7 +633,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 50, + "line": 52, "character": 2 } ], @@ -1642,12 +643,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 1045, + "id": 1093, "name": "CustomAuthError.status" } }, { - "id": 1127, + "id": 1150, "name": "toJSON", "kind": 2048, "kindString": "Method", @@ -1655,13 +656,13 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 108, + "line": 93, "character": 2 } ], "signatures": [ { - "id": 1128, + "id": 1151, "name": "toJSON", "kind": 4096, "kindString": "Call signature", @@ -1669,14 +670,14 @@ "type": { "type": "reflection", "declaration": { - "id": 1129, + "id": 1152, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 1133, + "id": 1156, "name": "details", "kind": 1024, "kindString": "Property", @@ -1684,7 +685,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 113, + "line": 98, "character": 6 } ], @@ -1698,14 +699,14 @@ { "type": "reflection", "declaration": { - "id": 1134, + "id": 1157, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 1136, + "id": 1159, "name": "code", "kind": 1024, "kindString": "Property", @@ -1713,7 +714,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 102, + "line": 87, "character": 28 } ], @@ -1723,7 +724,7 @@ } }, { - "id": 1135, + "id": 1158, "name": "error", "kind": 1024, "kindString": "Property", @@ -1731,7 +732,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 102, + "line": 87, "character": 13 } ], @@ -1746,8 +747,8 @@ "title": "Properties", "kind": 1024, "children": [ - 1136, - 1135 + 1159, + 1158 ] } ] @@ -1758,7 +759,7 @@ "defaultValue": "..." }, { - "id": 1131, + "id": 1154, "name": "message", "kind": 1024, "kindString": "Property", @@ -1766,7 +767,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 111, + "line": 96, "character": 6 } ], @@ -1777,7 +778,7 @@ "defaultValue": "..." }, { - "id": 1130, + "id": 1153, "name": "name", "kind": 1024, "kindString": "Property", @@ -1785,7 +786,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 110, + "line": 95, "character": 6 } ], @@ -1796,11 +797,991 @@ "defaultValue": "..." }, { - "id": 1132, + "id": 1155, "name": "status", "kind": 1024, "kindString": "Property", "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 97, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "..." + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 1156, + 1154, + 1153, + 1155 + ] + } + ] + } + }, + "overwrites": { + "type": "reference", + "id": 1095, + "name": "CustomAuthError.toJSON" + } + } + ], + "overwrites": { + "type": "reference", + "id": 1094, + "name": "CustomAuthError.toJSON" + } + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 1139 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 1146, + 1160, + 1161 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 1150 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 86, + "character": 13 + } + ], + "extendedTypes": [ + { + "type": "reference", + "id": 1086, + "name": "CustomAuthError" + } + ] + }, + { + "id": 1125, + "name": "AuthInvalidCredentialsError", + "kind": 128, + "kindString": "Class", + "flags": {}, + "children": [ + { + "id": 1126, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 81, + "character": 2 + } + ], + "signatures": [ + { + "id": 1127, + "name": "new AuthInvalidCredentialsError", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "parameters": [ + { + "id": 1128, + "name": "message", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "id": 1125, + "name": "AuthInvalidCredentialsError" + }, + "overwrites": { + "type": "reference", + "id": 1088, + "name": "CustomAuthError.constructor" + } + } + ], + "overwrites": { + "type": "reference", + "id": 1087, + "name": "CustomAuthError.constructor" + } + }, + { + "id": 1129, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 51, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "id": 1092, + "name": "CustomAuthError.name" + } + }, + { + "id": 1130, + "name": "status", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 52, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "id": 1093, + "name": "CustomAuthError.status" + } + }, + { + "id": 1131, + "name": "toJSON", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 59, + "character": 2 + } + ], + "signatures": [ + { + "id": 1132, + "name": "toJSON", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 1133, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 1135, + "name": "message", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 62, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "..." + }, + { + "id": 1134, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 61, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "..." + }, + { + "id": 1136, + "name": "status", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 63, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "..." + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 1135, + 1134, + 1136 + ] + } + ] + } + }, + "inheritedFrom": { + "type": "reference", + "id": 1095, + "name": "CustomAuthError.toJSON" + } + } + ], + "inheritedFrom": { + "type": "reference", + "id": 1094, + "name": "CustomAuthError.toJSON" + } + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 1126 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 1129, + 1130 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 1131 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 80, + "character": 13 + } + ], + "extendedTypes": [ + { + "type": "reference", + "id": 1086, + "name": "CustomAuthError" + } + ] + }, + { + "id": 1113, + "name": "AuthInvalidTokenResponseError", + "kind": 128, + "kindString": "Class", + "flags": {}, + "children": [ + { + "id": 1114, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 75, + "character": 2 + } + ], + "signatures": [ + { + "id": 1115, + "name": "new AuthInvalidTokenResponseError", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "type": { + "type": "reference", + "id": 1113, + "name": "AuthInvalidTokenResponseError" + }, + "overwrites": { + "type": "reference", + "id": 1088, + "name": "CustomAuthError.constructor" + } + } + ], + "overwrites": { + "type": "reference", + "id": 1087, + "name": "CustomAuthError.constructor" + } + }, + { + "id": 1116, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 51, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "id": 1092, + "name": "CustomAuthError.name" + } + }, + { + "id": 1117, + "name": "status", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 52, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "id": 1093, + "name": "CustomAuthError.status" + } + }, + { + "id": 1118, + "name": "toJSON", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 59, + "character": 2 + } + ], + "signatures": [ + { + "id": 1119, + "name": "toJSON", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 1120, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 1122, + "name": "message", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 62, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "..." + }, + { + "id": 1121, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 61, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "..." + }, + { + "id": 1123, + "name": "status", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 63, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "..." + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 1122, + 1121, + 1123 + ] + } + ] + } + }, + "inheritedFrom": { + "type": "reference", + "id": 1095, + "name": "CustomAuthError.toJSON" + } + } + ], + "inheritedFrom": { + "type": "reference", + "id": 1094, + "name": "CustomAuthError.toJSON" + } + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 1114 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 1116, + 1117 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 1118 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 74, + "character": 13 + } + ], + "extendedTypes": [ + { + "type": "reference", + "id": 1086, + "name": "CustomAuthError" + } + ] + }, + { + "id": 1163, + "name": "AuthPKCEGrantCodeExchangeError", + "kind": 128, + "kindString": "Class", + "flags": {}, + "children": [ + { + "id": 1164, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 105, + "character": 2 + } + ], + "signatures": [ + { + "id": 1165, + "name": "new AuthPKCEGrantCodeExchangeError", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "parameters": [ + { + "id": 1166, + "name": "message", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1167, + "name": "details", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reflection", + "declaration": { + "id": 1168, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 1170, + "name": "code", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 105, + "character": 57 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1169, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 105, + "character": 42 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 1170, + 1169 + ] + } + ] + } + } + ] + }, + "defaultValue": "null" + } + ], + "type": { + "type": "reference", + "id": 1163, + "name": "AuthPKCEGrantCodeExchangeError" + }, + "overwrites": { + "type": "reference", + "id": 1088, + "name": "CustomAuthError.constructor" + } + } + ], + "overwrites": { + "type": "reference", + "id": 1087, + "name": "CustomAuthError.constructor" + } + }, + { + "id": 1171, + "name": "details", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 104, + "character": 2 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reflection", + "declaration": { + "id": 1172, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 1174, + "name": "code", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 104, + "character": 28 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1173, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 104, + "character": 13 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 1174, + 1173 + ] + } + ] + } + } + ] + }, + "defaultValue": "null" + }, + { + "id": 1185, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 51, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "id": 1092, + "name": "CustomAuthError.name" + } + }, + { + "id": 1186, + "name": "status", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 52, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "id": 1093, + "name": "CustomAuthError.status" + } + }, + { + "id": 1175, + "name": "toJSON", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 110, + "character": 2 + } + ], + "signatures": [ + { + "id": 1176, + "name": "toJSON", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 1177, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 1181, + "name": "details", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 115, + "character": 6 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reflection", + "declaration": { + "id": 1182, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 1184, + "name": "code", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 104, + "character": 28 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1183, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 104, + "character": 13 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 1184, + 1183 + ] + } + ] + } + } + ] + }, + "defaultValue": "..." + }, + { + "id": 1179, + "name": "message", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 113, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "..." + }, + { + "id": 1178, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": {}, "sources": [ { "fileName": "src/lib/errors.ts", @@ -1808,6 +1789,25 @@ "character": 6 } ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "..." + }, + { + "id": 1180, + "name": "status", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 114, + "character": 6 + } + ], "type": { "type": "intrinsic", "name": "number" @@ -1820,10 +1820,10 @@ "title": "Properties", "kind": 1024, "children": [ - 1133, - 1131, - 1130, - 1132 + 1181, + 1179, + 1178, + 1180 ] } ] @@ -1831,14 +1831,14 @@ }, "overwrites": { "type": "reference", - "id": 1047, + "id": 1095, "name": "CustomAuthError.toJSON" } } ], "overwrites": { "type": "reference", - "id": 1046, + "id": 1094, "name": "CustomAuthError.toJSON" } } @@ -1848,50 +1848,50 @@ "title": "Constructors", "kind": 512, "children": [ - 1116 + 1164 ] }, { "title": "Properties", "kind": 1024, "children": [ - 1123, - 1137, - 1138 + 1171, + 1185, + 1186 ] }, { "title": "Methods", "kind": 2048, "children": [ - 1127 + 1175 ] } ], "sources": [ { "fileName": "src/lib/errors.ts", - "line": 101, + "line": 103, "character": 13 } ], "extendedTypes": [ { "type": "reference", - "id": 1038, + "id": 1086, "name": "CustomAuthError" } ] }, { - "id": 1140, + "id": 1188, "name": "AuthRetryableFetchError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 1141, + "id": 1189, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -1899,20 +1899,20 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 119, + "line": 121, "character": 2 } ], "signatures": [ { - "id": 1142, + "id": 1190, "name": "new AuthRetryableFetchError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 1143, + "id": 1191, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -1923,7 +1923,7 @@ } }, { - "id": 1144, + "id": 1192, "name": "status", "kind": 32768, "kindString": "Parameter", @@ -1936,24 +1936,24 @@ ], "type": { "type": "reference", - "id": 1140, + "id": 1188, "name": "AuthRetryableFetchError" }, "overwrites": { "type": "reference", - "id": 1040, + "id": 1088, "name": "CustomAuthError.constructor" } } ], "overwrites": { "type": "reference", - "id": 1039, + "id": 1087, "name": "CustomAuthError.constructor" } }, { - "id": 1145, + "id": 1193, "name": "name", "kind": 1024, "kindString": "Property", @@ -1961,7 +1961,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 49, + "line": 51, "character": 2 } ], @@ -1971,12 +1971,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 1044, + "id": 1092, "name": "CustomAuthError.name" } }, { - "id": 1146, + "id": 1194, "name": "status", "kind": 1024, "kindString": "Property", @@ -1984,7 +1984,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 50, + "line": 52, "character": 2 } ], @@ -1994,12 +1994,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 1045, + "id": 1093, "name": "CustomAuthError.status" } }, { - "id": 1147, + "id": 1195, "name": "toJSON", "kind": 2048, "kindString": "Method", @@ -2007,13 +2007,13 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 57, + "line": 59, "character": 2 } ], "signatures": [ { - "id": 1148, + "id": 1196, "name": "toJSON", "kind": 4096, "kindString": "Call signature", @@ -2021,14 +2021,14 @@ "type": { "type": "reflection", "declaration": { - "id": 1149, + "id": 1197, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 1151, + "id": 1199, "name": "message", "kind": 1024, "kindString": "Property", @@ -2036,7 +2036,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 60, + "line": 62, "character": 6 } ], @@ -2047,7 +2047,7 @@ "defaultValue": "..." }, { - "id": 1150, + "id": 1198, "name": "name", "kind": 1024, "kindString": "Property", @@ -2055,7 +2055,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 59, + "line": 61, "character": 6 } ], @@ -2066,7 +2066,7 @@ "defaultValue": "..." }, { - "id": 1152, + "id": 1200, "name": "status", "kind": 1024, "kindString": "Property", @@ -2074,7 +2074,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 61, + "line": 63, "character": 6 } ], @@ -2090,9 +2090,9 @@ "title": "Properties", "kind": 1024, "children": [ - 1151, - 1150, - 1152 + 1199, + 1198, + 1200 ] } ] @@ -2100,14 +2100,14 @@ }, "inheritedFrom": { "type": "reference", - "id": 1047, + "id": 1095, "name": "CustomAuthError.toJSON" } } ], "inheritedFrom": { "type": "reference", - "id": 1046, + "id": 1094, "name": "CustomAuthError.toJSON" } } @@ -2117,49 +2117,49 @@ "title": "Constructors", "kind": 512, "children": [ - 1141 + 1189 ] }, { "title": "Properties", "kind": 1024, "children": [ - 1145, - 1146 + 1193, + 1194 ] }, { "title": "Methods", "kind": 2048, "children": [ - 1147 + 1195 ] } ], "sources": [ { "fileName": "src/lib/errors.ts", - "line": 118, + "line": 120, "character": 13 } ], "extendedTypes": [ { "type": "reference", - "id": 1038, + "id": 1086, "name": "CustomAuthError" } ] }, { - "id": 1053, + "id": 1101, "name": "AuthSessionMissingError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 1054, + "id": 1102, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -2167,37 +2167,37 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 67, + "line": 69, "character": 2 } ], "signatures": [ { - "id": 1055, + "id": 1103, "name": "new AuthSessionMissingError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "type": { "type": "reference", - "id": 1053, + "id": 1101, "name": "AuthSessionMissingError" }, "overwrites": { "type": "reference", - "id": 1040, + "id": 1088, "name": "CustomAuthError.constructor" } } ], "overwrites": { "type": "reference", - "id": 1039, + "id": 1087, "name": "CustomAuthError.constructor" } }, { - "id": 1056, + "id": 1104, "name": "name", "kind": 1024, "kindString": "Property", @@ -2205,7 +2205,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 49, + "line": 51, "character": 2 } ], @@ -2215,12 +2215,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 1044, + "id": 1092, "name": "CustomAuthError.name" } }, { - "id": 1057, + "id": 1105, "name": "status", "kind": 1024, "kindString": "Property", @@ -2228,7 +2228,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 50, + "line": 52, "character": 2 } ], @@ -2238,12 +2238,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 1045, + "id": 1093, "name": "CustomAuthError.status" } }, { - "id": 1058, + "id": 1106, "name": "toJSON", "kind": 2048, "kindString": "Method", @@ -2251,13 +2251,13 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 57, + "line": 59, "character": 2 } ], "signatures": [ { - "id": 1059, + "id": 1107, "name": "toJSON", "kind": 4096, "kindString": "Call signature", @@ -2265,14 +2265,14 @@ "type": { "type": "reflection", "declaration": { - "id": 1060, + "id": 1108, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 1062, + "id": 1110, "name": "message", "kind": 1024, "kindString": "Property", @@ -2280,7 +2280,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 60, + "line": 62, "character": 6 } ], @@ -2291,7 +2291,7 @@ "defaultValue": "..." }, { - "id": 1061, + "id": 1109, "name": "name", "kind": 1024, "kindString": "Property", @@ -2299,7 +2299,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 59, + "line": 61, "character": 6 } ], @@ -2310,7 +2310,7 @@ "defaultValue": "..." }, { - "id": 1063, + "id": 1111, "name": "status", "kind": 1024, "kindString": "Property", @@ -2318,7 +2318,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 61, + "line": 63, "character": 6 } ], @@ -2334,9 +2334,9 @@ "title": "Properties", "kind": 1024, "children": [ - 1062, - 1061, - 1063 + 1110, + 1109, + 1111 ] } ] @@ -2344,14 +2344,14 @@ }, "inheritedFrom": { "type": "reference", - "id": 1047, + "id": 1095, "name": "CustomAuthError.toJSON" } } ], "inheritedFrom": { "type": "reference", - "id": 1046, + "id": 1094, "name": "CustomAuthError.toJSON" } } @@ -2361,49 +2361,49 @@ "title": "Constructors", "kind": 512, "children": [ - 1054 + 1102 ] }, { "title": "Properties", "kind": 1024, "children": [ - 1056, - 1057 + 1104, + 1105 ] }, { "title": "Methods", "kind": 2048, "children": [ - 1058 + 1106 ] } ], "sources": [ { "fileName": "src/lib/errors.ts", - "line": 66, + "line": 68, "character": 13 } ], "extendedTypes": [ { "type": "reference", - "id": 1038, + "id": 1086, "name": "CustomAuthError" } ] }, { - "id": 1030, + "id": 1078, "name": "AuthUnknownError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 1031, + "id": 1079, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -2411,20 +2411,20 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 41, + "line": 43, "character": 2 } ], "signatures": [ { - "id": 1032, + "id": 1080, "name": "new AuthUnknownError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 1033, + "id": 1081, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -2435,7 +2435,7 @@ } }, { - "id": 1034, + "id": 1082, "name": "originalError", "kind": 32768, "kindString": "Parameter", @@ -2448,24 +2448,24 @@ ], "type": { "type": "reference", - "id": 1030, + "id": 1078, "name": "AuthUnknownError" }, "overwrites": { "type": "reference", - "id": 1012, + "id": 1060, "name": "AuthError.constructor" } } ], "overwrites": { "type": "reference", - "id": 1011, + "id": 1059, "name": "AuthError.constructor" } }, { - "id": 1035, + "id": 1083, "name": "originalError", "kind": 1024, "kindString": "Property", @@ -2473,7 +2473,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 39, + "line": 41, "character": 2 } ], @@ -2483,7 +2483,7 @@ } }, { - "id": 1036, + "id": 1084, "name": "status", "kind": 1024, "kindString": "Property", @@ -2491,7 +2491,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 2, + "line": 4, "character": 2 } ], @@ -2510,7 +2510,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 1015, + "id": 1063, "name": "AuthError.status" } } @@ -2520,35 +2520,35 @@ "title": "Constructors", "kind": 512, "children": [ - 1031 + 1079 ] }, { "title": "Properties", "kind": 1024, "children": [ - 1035, - 1036 + 1083, + 1084 ] } ], "sources": [ { "fileName": "src/lib/errors.ts", - "line": 38, + "line": 40, "character": 13 } ], "extendedTypes": [ { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } ] }, { - "id": 1154, + "id": 1202, "name": "AuthWeakPasswordError", "kind": 128, "kindString": "Class", @@ -2558,7 +2558,7 @@ }, "children": [ { - "id": 1155, + "id": 1203, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -2566,20 +2566,20 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 139, + "line": 141, "character": 2 } ], "signatures": [ { - "id": 1156, + "id": 1204, "name": "new AuthWeakPasswordError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 1157, + "id": 1205, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -2590,7 +2590,7 @@ } }, { - "id": 1158, + "id": 1206, "name": "status", "kind": 32768, "kindString": "Parameter", @@ -2601,7 +2601,7 @@ } }, { - "id": 1159, + "id": 1207, "name": "reasons", "kind": 32768, "kindString": "Parameter", @@ -2617,24 +2617,24 @@ ], "type": { "type": "reference", - "id": 1154, + "id": 1202, "name": "AuthWeakPasswordError" }, "overwrites": { "type": "reference", - "id": 1040, + "id": 1088, "name": "CustomAuthError.constructor" } } ], "overwrites": { "type": "reference", - "id": 1039, + "id": 1087, "name": "CustomAuthError.constructor" } }, { - "id": 1161, + "id": 1209, "name": "name", "kind": 1024, "kindString": "Property", @@ -2642,7 +2642,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 49, + "line": 51, "character": 2 } ], @@ -2652,12 +2652,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 1044, + "id": 1092, "name": "CustomAuthError.name" } }, { - "id": 1160, + "id": 1208, "name": "reasons", "kind": 1024, "kindString": "Property", @@ -2668,7 +2668,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 137, + "line": 139, "character": 2 } ], @@ -2681,7 +2681,7 @@ } }, { - "id": 1162, + "id": 1210, "name": "status", "kind": 1024, "kindString": "Property", @@ -2689,7 +2689,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 50, + "line": 52, "character": 2 } ], @@ -2699,12 +2699,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 1045, + "id": 1093, "name": "CustomAuthError.status" } }, { - "id": 1163, + "id": 1211, "name": "toJSON", "kind": 2048, "kindString": "Method", @@ -2712,13 +2712,13 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 57, + "line": 59, "character": 2 } ], "signatures": [ { - "id": 1164, + "id": 1212, "name": "toJSON", "kind": 4096, "kindString": "Call signature", @@ -2726,14 +2726,14 @@ "type": { "type": "reflection", "declaration": { - "id": 1165, + "id": 1213, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 1167, + "id": 1215, "name": "message", "kind": 1024, "kindString": "Property", @@ -2741,7 +2741,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 60, + "line": 62, "character": 6 } ], @@ -2752,7 +2752,7 @@ "defaultValue": "..." }, { - "id": 1166, + "id": 1214, "name": "name", "kind": 1024, "kindString": "Property", @@ -2760,7 +2760,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 59, + "line": 61, "character": 6 } ], @@ -2771,7 +2771,7 @@ "defaultValue": "..." }, { - "id": 1168, + "id": 1216, "name": "status", "kind": 1024, "kindString": "Property", @@ -2779,7 +2779,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 61, + "line": 63, "character": 6 } ], @@ -2795,9 +2795,9 @@ "title": "Properties", "kind": 1024, "children": [ - 1167, - 1166, - 1168 + 1215, + 1214, + 1216 ] } ] @@ -2805,14 +2805,14 @@ }, "inheritedFrom": { "type": "reference", - "id": 1047, + "id": 1095, "name": "CustomAuthError.toJSON" } } ], "inheritedFrom": { "type": "reference", - "id": 1046, + "id": 1094, "name": "CustomAuthError.toJSON" } } @@ -2822,50 +2822,50 @@ "title": "Constructors", "kind": 512, "children": [ - 1155 + 1203 ] }, { "title": "Properties", "kind": 1024, "children": [ - 1161, - 1160, - 1162 + 1209, + 1208, + 1210 ] }, { "title": "Methods", "kind": 2048, "children": [ - 1163 + 1211 ] } ], "sources": [ { "fileName": "src/lib/errors.ts", - "line": 133, + "line": 135, "character": 13 } ], "extendedTypes": [ { "type": "reference", - "id": 1038, + "id": 1086, "name": "CustomAuthError" } ] }, { - "id": 1038, + "id": 1086, "name": "CustomAuthError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 1039, + "id": 1087, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -2873,20 +2873,20 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 51, + "line": 53, "character": 2 } ], "signatures": [ { - "id": 1040, + "id": 1088, "name": "new CustomAuthError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 1041, + "id": 1089, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -2897,7 +2897,7 @@ } }, { - "id": 1042, + "id": 1090, "name": "name", "kind": 32768, "kindString": "Parameter", @@ -2908,7 +2908,7 @@ } }, { - "id": 1043, + "id": 1091, "name": "status", "kind": 32768, "kindString": "Parameter", @@ -2921,24 +2921,24 @@ ], "type": { "type": "reference", - "id": 1038, + "id": 1086, "name": "CustomAuthError" }, "overwrites": { "type": "reference", - "id": 1012, + "id": 1060, "name": "AuthError.constructor" } } ], "overwrites": { "type": "reference", - "id": 1011, + "id": 1059, "name": "AuthError.constructor" } }, { - "id": 1044, + "id": 1092, "name": "name", "kind": 1024, "kindString": "Property", @@ -2946,7 +2946,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 49, + "line": 51, "character": 2 } ], @@ -2960,7 +2960,7 @@ } }, { - "id": 1045, + "id": 1093, "name": "status", "kind": 1024, "kindString": "Property", @@ -2968,7 +2968,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 50, + "line": 52, "character": 2 } ], @@ -2978,12 +2978,12 @@ }, "overwrites": { "type": "reference", - "id": 1015, + "id": 1063, "name": "AuthError.status" } }, { - "id": 1046, + "id": 1094, "name": "toJSON", "kind": 2048, "kindString": "Method", @@ -2991,13 +2991,13 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 57, + "line": 59, "character": 2 } ], "signatures": [ { - "id": 1047, + "id": 1095, "name": "toJSON", "kind": 4096, "kindString": "Call signature", @@ -3005,14 +3005,14 @@ "type": { "type": "reflection", "declaration": { - "id": 1048, + "id": 1096, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 1050, + "id": 1098, "name": "message", "kind": 1024, "kindString": "Property", @@ -3020,7 +3020,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 60, + "line": 62, "character": 6 } ], @@ -3031,7 +3031,7 @@ "defaultValue": "..." }, { - "id": 1049, + "id": 1097, "name": "name", "kind": 1024, "kindString": "Property", @@ -3039,7 +3039,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 59, + "line": 61, "character": 6 } ], @@ -3050,7 +3050,7 @@ "defaultValue": "..." }, { - "id": 1051, + "id": 1099, "name": "status", "kind": 1024, "kindString": "Property", @@ -3058,7 +3058,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 61, + "line": 63, "character": 6 } ], @@ -3074,9 +3074,9 @@ "title": "Properties", "kind": 1024, "children": [ - 1050, - 1049, - 1051 + 1098, + 1097, + 1099 ] } ] @@ -3091,73 +3091,73 @@ "title": "Constructors", "kind": 512, "children": [ - 1039 + 1087 ] }, { "title": "Properties", "kind": 1024, "children": [ - 1044, - 1045 + 1092, + 1093 ] }, { "title": "Methods", "kind": 2048, "children": [ - 1046 + 1094 ] } ], "sources": [ { "fileName": "src/lib/errors.ts", - "line": 48, + "line": 50, "character": 13 } ], "extendedTypes": [ { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } ], "extendedBy": [ { "type": "reference", - "id": 1053, + "id": 1101, "name": "AuthSessionMissingError" }, { "type": "reference", - "id": 1065, + "id": 1113, "name": "AuthInvalidTokenResponseError" }, { "type": "reference", - "id": 1077, + "id": 1125, "name": "AuthInvalidCredentialsError" }, { "type": "reference", - "id": 1090, + "id": 1138, "name": "AuthImplicitGrantRedirectError" }, { "type": "reference", - "id": 1115, + "id": 1163, "name": "AuthPKCEGrantCodeExchangeError" }, { "type": "reference", - "id": 1140, + "id": 1188, "name": "AuthRetryableFetchError" }, { "type": "reference", - "id": 1154, + "id": 1202, "name": "AuthWeakPasswordError" } ] @@ -3404,7 +3404,7 @@ ], "type": { "type": "reference", - "id": 966, + "id": 1012, "name": "GoTrueAdminMFAApi" } }, @@ -3440,7 +3440,7 @@ "flags": {}, "type": { "type": "reference", - "id": 645, + "id": 685, "name": "AdminUserAttributes" } } @@ -3450,7 +3450,7 @@ "typeArguments": [ { "type": "reference", - "id": 567, + "id": 607, "name": "UserResponse" } ], @@ -3506,7 +3506,7 @@ "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "If true, then the user will be soft-deleted from the auth schema.\nDefaults to false for backward compatibility.\n\nThis function should only be called on a server. Never expose your `service_role` key in the browser.\n" + "shortText": "If true, then the user will be soft-deleted (setting `deleted_at` to the current timestamp and disabling their account while preserving their data) from the auth schema.\nDefaults to false for backward compatibility.\n\nThis function should only be called on a server. Never expose your `service_role` key in the browser.\n" }, "type": { "type": "intrinsic", @@ -3520,7 +3520,7 @@ "typeArguments": [ { "type": "reference", - "id": 567, + "id": 607, "name": "UserResponse" } ], @@ -3563,7 +3563,7 @@ "flags": {}, "type": { "type": "reference", - "id": 810, + "id": 855, "name": "GenerateLinkParams" } } @@ -3573,7 +3573,7 @@ "typeArguments": [ { "type": "reference", - "id": 811, + "id": 856, "name": "GenerateLinkResponse" } ], @@ -3628,7 +3628,7 @@ "typeArguments": [ { "type": "reference", - "id": 567, + "id": 607, "name": "UserResponse" } ], @@ -3762,7 +3762,7 @@ "typeArguments": [ { "type": "reference", - "id": 567, + "id": 607, "name": "UserResponse" } ], @@ -3811,7 +3811,7 @@ }, "type": { "type": "reference", - "id": 991, + "id": 1039, "name": "PageParams" } } @@ -3891,7 +3891,7 @@ "type": "array", "elementType": { "type": "reference", - "id": 616, + "id": 656, "name": "User" } } @@ -3911,7 +3911,7 @@ }, { "type": "reference", - "id": 984, + "id": 1032, "name": "Pagination" } ] @@ -4024,7 +4024,7 @@ ], "type": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } } @@ -4170,7 +4170,7 @@ }, { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } ] @@ -4243,7 +4243,7 @@ }, "type": { "type": "reference", - "id": 645, + "id": 685, "name": "AdminUserAttributes" } } @@ -4253,7 +4253,7 @@ "typeArguments": [ { "type": "reference", - "id": 567, + "id": 607, "name": "UserResponse" } ], @@ -4319,7 +4319,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 164, + "line": 175, "character": 2 } ], @@ -4342,7 +4342,7 @@ "flags": {}, "type": { "type": "reference", - "id": 484, + "id": 490, "name": "GoTrueClientOptions" } } @@ -4367,7 +4367,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 116, + "line": 125, "character": 2 } ], @@ -4389,18 +4389,18 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 120, + "line": 129, "character": 2 } ], "type": { "type": "reference", - "id": 921, + "id": 967, "name": "GoTrueMFAApi" } }, { - "id": 139, + "id": 143, "name": "exchangeCodeForSession", "kind": 2048, "kindString": "Method", @@ -4408,13 +4408,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 503, + "line": 571, "character": 8 } ], "signatures": [ { - "id": 140, + "id": 144, "name": "exchangeCodeForSession", "kind": 4096, "kindString": "Call signature", @@ -4424,7 +4424,7 @@ }, "parameters": [ { - "id": 141, + "id": 145, "name": "authCode", "kind": 32768, "kindString": "Parameter", @@ -4440,7 +4440,7 @@ "typeArguments": [ { "type": "reference", - "id": 532, + "id": 557, "name": "AuthTokenResponse" } ], @@ -4452,7 +4452,7 @@ ] }, { - "id": 178, + "id": 182, "name": "getSession", "kind": 2048, "kindString": "Method", @@ -4460,19 +4460,20 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 849, + "line": 926, "character": 8 } ], "signatures": [ { - "id": 179, + "id": 183, "name": "getSession", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Returns the session, refreshing it if necessary.\nThe session returned can be null if the session is not detected which can happen in the event a user is not signed-in or has logged out." + "shortText": "Returns the session, refreshing it if necessary.", + "text": "The session returned can be null if the session is not detected which can happen in the event a user is not signed-in or has logged out.\n\n**IMPORTANT:** This method loads values directly from the storage attached\nto the client. If that storage is based on request cookies for example,\nthe values in it may not be authentic and therefore it's strongly advised\nagainst using this method and its results in such circumstances. A warning\nwill be emitted if this is detected. Use {@link #getUser()} instead.\n" }, "type": { "type": "reference", @@ -4483,14 +4484,14 @@ { "type": "reflection", "declaration": { - "id": 180, + "id": 184, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 181, + "id": 185, "name": "data", "kind": 1024, "kindString": "Property", @@ -4498,21 +4499,21 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 940, + "line": 1028, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 182, + "id": 186, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 183, + "id": 187, "name": "session", "kind": 1024, "kindString": "Property", @@ -4520,13 +4521,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 941, + "line": 1029, "character": 14 } ], "type": { "type": "reference", - "id": 578, + "id": 618, "name": "Session" } } @@ -4536,7 +4537,7 @@ "title": "Properties", "kind": 1024, "children": [ - 183 + 187 ] } ] @@ -4544,7 +4545,7 @@ } }, { - "id": 184, + "id": 188, "name": "error", "kind": 1024, "kindString": "Property", @@ -4552,7 +4553,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 943, + "line": 1031, "character": 12 } ], @@ -4567,8 +4568,8 @@ "title": "Properties", "kind": 1024, "children": [ - 181, - 184 + 185, + 188 ] } ] @@ -4577,14 +4578,14 @@ { "type": "reflection", "declaration": { - "id": 185, + "id": 189, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 186, + "id": 190, "name": "data", "kind": 1024, "kindString": "Property", @@ -4592,21 +4593,21 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 946, + "line": 1034, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 187, + "id": 191, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 188, + "id": 192, "name": "session", "kind": 1024, "kindString": "Property", @@ -4614,7 +4615,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 947, + "line": 1035, "character": 14 } ], @@ -4629,7 +4630,7 @@ "title": "Properties", "kind": 1024, "children": [ - 188 + 192 ] } ] @@ -4637,7 +4638,7 @@ } }, { - "id": 189, + "id": 193, "name": "error", "kind": 1024, "kindString": "Property", @@ -4645,13 +4646,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 949, + "line": 1037, "character": 12 } ], "type": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } } @@ -4661,8 +4662,8 @@ "title": "Properties", "kind": 1024, "children": [ - 186, - 189 + 190, + 193 ] } ] @@ -4671,14 +4672,14 @@ { "type": "reflection", "declaration": { - "id": 190, + "id": 194, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 191, + "id": 195, "name": "data", "kind": 1024, "kindString": "Property", @@ -4686,21 +4687,21 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 952, + "line": 1040, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 192, + "id": 196, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 193, + "id": 197, "name": "session", "kind": 1024, "kindString": "Property", @@ -4708,7 +4709,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 953, + "line": 1041, "character": 14 } ], @@ -4723,7 +4724,7 @@ "title": "Properties", "kind": 1024, "children": [ - 193 + 197 ] } ] @@ -4731,7 +4732,7 @@ } }, { - "id": 194, + "id": 198, "name": "error", "kind": 1024, "kindString": "Property", @@ -4739,7 +4740,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 955, + "line": 1043, "character": 12 } ], @@ -4754,8 +4755,8 @@ "title": "Properties", "kind": 1024, "children": [ - 191, - 194 + 195, + 198 ] } ] @@ -4772,7 +4773,7 @@ ] }, { - "id": 241, + "id": 245, "name": "getUser", "kind": 2048, "kindString": "Method", @@ -4780,23 +4781,23 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1052, + "line": 1166, "character": 8 } ], "signatures": [ { - "id": 242, + "id": 246, "name": "getUser", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Gets the current user details if there is an existing session." + "shortText": "Gets the current user details if there is an existing session. This method\nperforms a network request to the Supabase Auth server, so the returned\nvalue is authentic and can be used to base authorization rules on." }, "parameters": [ { - "id": 243, + "id": 247, "name": "jwt", "kind": 32768, "kindString": "Parameter", @@ -4804,7 +4805,7 @@ "isOptional": true }, "comment": { - "shortText": "Takes in an optional access token jwt. If no jwt is provided, getUser() will attempt to get the jwt from the current session.\n" + "shortText": "Takes in an optional access token JWT. If no JWT is provided, the JWT from the current session is used.\n" }, "type": { "type": "intrinsic", @@ -4817,7 +4818,7 @@ "typeArguments": [ { "type": "reference", - "id": 567, + "id": 607, "name": "UserResponse" } ], @@ -4829,7 +4830,7 @@ ] }, { - "id": 345, + "id": 349, "name": "getUserIdentities", "kind": 2048, "kindString": "Method", @@ -4837,13 +4838,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1591, + "line": 1710, "character": 8 } ], "signatures": [ { - "id": 346, + "id": 350, "name": "getUserIdentities", "kind": 4096, "kindString": "Call signature", @@ -4860,14 +4861,14 @@ { "type": "reflection", "declaration": { - "id": 347, + "id": 351, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 348, + "id": 352, "name": "data", "kind": 1024, "kindString": "Property", @@ -4875,21 +4876,21 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1593, + "line": 1712, "character": 8 } ], "type": { "type": "reflection", "declaration": { - "id": 349, + "id": 353, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 350, + "id": 354, "name": "identities", "kind": 1024, "kindString": "Property", @@ -4897,7 +4898,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1594, + "line": 1713, "character": 10 } ], @@ -4905,7 +4906,7 @@ "type": "array", "elementType": { "type": "reference", - "id": 590, + "id": 630, "name": "UserIdentity" } } @@ -4916,7 +4917,7 @@ "title": "Properties", "kind": 1024, "children": [ - 350 + 354 ] } ] @@ -4924,7 +4925,7 @@ } }, { - "id": 351, + "id": 355, "name": "error", "kind": 1024, "kindString": "Property", @@ -4932,7 +4933,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1596, + "line": 1715, "character": 8 } ], @@ -4947,8 +4948,8 @@ "title": "Properties", "kind": 1024, "children": [ - 348, - 351 + 352, + 355 ] } ] @@ -4957,14 +4958,14 @@ { "type": "reflection", "declaration": { - "id": 352, + "id": 356, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 353, + "id": 357, "name": "data", "kind": 1024, "kindString": "Property", @@ -4972,7 +4973,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1598, + "line": 1717, "character": 8 } ], @@ -4982,7 +4983,7 @@ } }, { - "id": 354, + "id": 358, "name": "error", "kind": 1024, "kindString": "Property", @@ -4990,13 +4991,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1598, + "line": 1717, "character": 20 } ], "type": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } } @@ -5006,8 +5007,8 @@ "title": "Properties", "kind": 1024, "children": [ - 353, - 354 + 357, + 358 ] } ] @@ -5024,7 +5025,7 @@ ] }, { - "id": 126, + "id": 127, "name": "initialize", "kind": 2048, "kindString": "Method", @@ -5032,13 +5033,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 259, + "line": 278, "character": 8 } ], "signatures": [ { - "id": 127, + "id": 128, "name": "initialize", "kind": 4096, "kindString": "Call signature", @@ -5051,7 +5052,7 @@ "typeArguments": [ { "type": "reference", - "id": 974, + "id": 1022, "name": "InitializeResult" } ], @@ -5063,7 +5064,7 @@ ] }, { - "id": 355, + "id": 359, "name": "linkIdentity", "kind": 2048, "kindString": "Method", @@ -5071,13 +5072,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1615, + "line": 1734, "character": 8 } ], "signatures": [ { - "id": 356, + "id": 360, "name": "linkIdentity", "kind": 4096, "kindString": "Call signature", @@ -5087,14 +5088,14 @@ }, "parameters": [ { - "id": 357, + "id": 361, "name": "credentials", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 715, + "id": 760, "name": "SignInWithOAuthCredentials" } } @@ -5104,7 +5105,7 @@ "typeArguments": [ { "type": "reference", - "id": 545, + "id": 585, "name": "OAuthResponse" } ], @@ -5116,7 +5117,7 @@ ] }, { - "id": 317, + "id": 321, "name": "onAuthStateChange", "kind": 2048, "kindString": "Method", @@ -5124,13 +5125,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1487, + "line": 1608, "character": 2 } ], "signatures": [ { - "id": 318, + "id": 322, "name": "onAuthStateChange", "kind": 4096, "kindString": "Call signature", @@ -5140,7 +5141,7 @@ }, "parameters": [ { - "id": 319, + "id": 323, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -5151,33 +5152,33 @@ "type": { "type": "reflection", "declaration": { - "id": 320, + "id": 324, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 321, + "id": 325, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 322, + "id": 326, "name": "event", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 474, + "id": 480, "name": "AuthChangeEvent" } }, { - "id": 323, + "id": 327, "name": "session", "kind": 32768, "kindString": "Parameter", @@ -5191,7 +5192,7 @@ }, { "type": "reference", - "id": 578, + "id": 618, "name": "Session" } ] @@ -5228,14 +5229,14 @@ "type": { "type": "reflection", "declaration": { - "id": 324, + "id": 328, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 325, + "id": 329, "name": "data", "kind": 1024, "kindString": "Property", @@ -5243,21 +5244,21 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1490, + "line": 1611, "character": 4 } ], "type": { "type": "reflection", "declaration": { - "id": 326, + "id": 330, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 327, + "id": 331, "name": "subscription", "kind": 1024, "kindString": "Property", @@ -5265,13 +5266,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1490, + "line": 1611, "character": 12 } ], "type": { "type": "reference", - "id": 656, + "id": 696, "name": "Subscription" } } @@ -5281,7 +5282,7 @@ "title": "Properties", "kind": 1024, "children": [ - 327 + 331 ] } ] @@ -5294,7 +5295,7 @@ "title": "Properties", "kind": 1024, "children": [ - 325 + 329 ] } ] @@ -5304,7 +5305,7 @@ ] }, { - "id": 171, + "id": 175, "name": "reauthenticate", "kind": 2048, "kindString": "Method", @@ -5312,13 +5313,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 768, + "line": 838, "character": 8 } ], "signatures": [ { - "id": 172, + "id": 176, "name": "reauthenticate", "kind": 4096, "kindString": "Call signature", @@ -5331,7 +5332,7 @@ "typeArguments": [ { "type": "reference", - "id": 504, + "id": 515, "name": "AuthResponse" } ], @@ -5343,7 +5344,7 @@ ] }, { - "id": 278, + "id": 282, "name": "refreshSession", "kind": 2048, "kindString": "Method", @@ -5351,13 +5352,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1253, + "line": 1374, "character": 8 } ], "signatures": [ { - "id": 279, + "id": 283, "name": "refreshSession", "kind": 4096, "kindString": "Call signature", @@ -5367,7 +5368,7 @@ }, "parameters": [ { - "id": 280, + "id": 284, "name": "currentSession", "kind": 32768, "kindString": "Parameter", @@ -5380,14 +5381,14 @@ "type": { "type": "reflection", "declaration": { - "id": 281, + "id": 285, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 282, + "id": 286, "name": "refresh_token", "kind": 1024, "kindString": "Property", @@ -5395,7 +5396,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1253, + "line": 1374, "character": 42 } ], @@ -5410,7 +5411,7 @@ "title": "Properties", "kind": 1024, "children": [ - 282 + 286 ] } ] @@ -5423,7 +5424,7 @@ "typeArguments": [ { "type": "reference", - "id": 504, + "id": 515, "name": "AuthResponse" } ], @@ -5435,7 +5436,7 @@ ] }, { - "id": 175, + "id": 179, "name": "resend", "kind": 2048, "kindString": "Method", @@ -5443,13 +5444,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 803, + "line": 873, "character": 8 } ], "signatures": [ { - "id": 176, + "id": 180, "name": "resend", "kind": 4096, "kindString": "Call signature", @@ -5459,14 +5460,14 @@ }, "parameters": [ { - "id": 177, + "id": 181, "name": "credentials", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 758, + "id": 803, "name": "ResendParams" } } @@ -5476,7 +5477,7 @@ "typeArguments": [ { "type": "reference", - "id": 517, + "id": 542, "name": "AuthOtpResponse" } ], @@ -5488,7 +5489,7 @@ ] }, { - "id": 331, + "id": 335, "name": "resetPasswordForEmail", "kind": 2048, "kindString": "Method", @@ -5496,13 +5497,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1543, + "line": 1664, "character": 8 } ], "signatures": [ { - "id": 332, + "id": 336, "name": "resetPasswordForEmail", "kind": 4096, "kindString": "Call signature", @@ -5512,7 +5513,7 @@ }, "parameters": [ { - "id": 333, + "id": 337, "name": "email", "kind": 32768, "kindString": "Parameter", @@ -5526,7 +5527,7 @@ } }, { - "id": 334, + "id": 338, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -5534,14 +5535,14 @@ "type": { "type": "reflection", "declaration": { - "id": 335, + "id": 339, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 337, + "id": 341, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -5554,7 +5555,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1547, + "line": 1668, "character": 6 } ], @@ -5564,7 +5565,7 @@ } }, { - "id": 336, + "id": 340, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -5577,7 +5578,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1546, + "line": 1667, "character": 6 } ], @@ -5592,8 +5593,8 @@ "title": "Properties", "kind": 1024, "children": [ - 337, - 336 + 341, + 340 ] } ] @@ -5608,70 +5609,6 @@ { "type": "union", "types": [ - { - "type": "reflection", - "declaration": { - "id": 338, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 339, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 1551, - "character": 8 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 340, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {} - } - } - }, - { - "id": 341, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 1552, - "character": 8 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 339, - 341 - ] - } - ] - } - }, { "type": "reflection", "declaration": { @@ -5690,17 +5627,23 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1554, + "line": 1672, "character": 8 } ], "type": { - "type": "literal", - "value": null + "type": "reflection", + "declaration": { + "id": 344, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {} + } } }, { - "id": 344, + "id": 345, "name": "error", "kind": 1024, "kindString": "Property", @@ -5708,14 +5651,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1554, - "character": 20 + "line": 1673, + "character": 8 } ], "type": { - "type": "reference", - "id": 1010, - "name": "AuthError" + "type": "literal", + "value": null } } ], @@ -5725,7 +5667,66 @@ "kind": 1024, "children": [ 343, - 344 + 345 + ] + } + ] + } + }, + { + "type": "reflection", + "declaration": { + "id": 346, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 347, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 1675, + "character": 8 + } + ], + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 348, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 1675, + "character": 20 + } + ], + "type": { + "type": "reference", + "id": 1058, + "name": "AuthError" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 347, + 348 ] } ] @@ -5742,7 +5743,7 @@ ] }, { - "id": 266, + "id": 270, "name": "setSession", "kind": 2048, "kindString": "Method", @@ -5750,13 +5751,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1178, + "line": 1299, "character": 8 } ], "signatures": [ { - "id": 267, + "id": 271, "name": "setSession", "kind": 4096, "kindString": "Call signature", @@ -5766,7 +5767,7 @@ }, "parameters": [ { - "id": 268, + "id": 272, "name": "currentSession", "kind": 32768, "kindString": "Parameter", @@ -5777,14 +5778,14 @@ "type": { "type": "reflection", "declaration": { - "id": 269, + "id": 273, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 270, + "id": 274, "name": "access_token", "kind": 1024, "kindString": "Property", @@ -5792,7 +5793,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1179, + "line": 1300, "character": 4 } ], @@ -5802,7 +5803,7 @@ } }, { - "id": 271, + "id": 275, "name": "refresh_token", "kind": 1024, "kindString": "Property", @@ -5810,7 +5811,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1180, + "line": 1301, "character": 4 } ], @@ -5825,8 +5826,8 @@ "title": "Properties", "kind": 1024, "children": [ - 270, - 271 + 274, + 275 ] } ] @@ -5839,7 +5840,7 @@ "typeArguments": [ { "type": "reference", - "id": 504, + "id": 515, "name": "AuthResponse" } ], @@ -5851,7 +5852,63 @@ ] }, { - "id": 159, + "id": 131, + "name": "signInAnonymously", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 368, + "character": 8 + } + ], + "signatures": [ + { + "id": 132, + "name": "signInAnonymously", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Creates a new anonymous user.", + "returns": "A session where the is_anonymous claim in the access token JWT set to true\n" + }, + "parameters": [ + { + "id": 133, + "name": "credentials", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "id": 706, + "name": "SignInAnonymouslyCredentials" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "id": 515, + "name": "AuthResponse" + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + }, + { + "id": 163, "name": "signInWithIdToken", "kind": 2048, "kindString": "Method", @@ -5859,13 +5916,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 554, + "line": 621, "character": 8 } ], "signatures": [ { - "id": 160, + "id": 164, "name": "signInWithIdToken", "kind": 4096, "kindString": "Call signature", @@ -5875,14 +5932,14 @@ }, "parameters": [ { - "id": 161, + "id": 165, "name": "credentials", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 727, + "id": 772, "name": "SignInWithIdTokenCredentials" } } @@ -5892,7 +5949,7 @@ "typeArguments": [ { "type": "reference", - "id": 532, + "id": 557, "name": "AuthTokenResponse" } ], @@ -5904,7 +5961,7 @@ ] }, { - "id": 136, + "id": 140, "name": "signInWithOAuth", "kind": 2048, "kindString": "Method", @@ -5912,13 +5969,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 489, + "line": 557, "character": 8 } ], "signatures": [ { - "id": 137, + "id": 141, "name": "signInWithOAuth", "kind": 4096, "kindString": "Call signature", @@ -5928,14 +5985,14 @@ }, "parameters": [ { - "id": 138, + "id": 142, "name": "credentials", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 715, + "id": 760, "name": "SignInWithOAuthCredentials" } } @@ -5945,7 +6002,7 @@ "typeArguments": [ { "type": "reference", - "id": 545, + "id": 585, "name": "OAuthResponse" } ], @@ -5957,7 +6014,7 @@ ] }, { - "id": 162, + "id": 166, "name": "signInWithOtp", "kind": 2048, "kindString": "Method", @@ -5965,13 +6022,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 611, + "line": 678, "character": 8 } ], "signatures": [ { - "id": 163, + "id": 167, "name": "signInWithOtp", "kind": 4096, "kindString": "Call signature", @@ -5982,14 +6039,14 @@ }, "parameters": [ { - "id": 164, + "id": 168, "name": "credentials", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 697, + "id": 742, "name": "SignInWithPasswordlessCredentials" } } @@ -5999,7 +6056,7 @@ "typeArguments": [ { "type": "reference", - "id": 517, + "id": 542, "name": "AuthOtpResponse" } ], @@ -6011,7 +6068,7 @@ ] }, { - "id": 133, + "id": 137, "name": "signInWithPassword", "kind": 2048, "kindString": "Method", @@ -6019,13 +6076,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 433, + "line": 492, "character": 8 } ], "signatures": [ { - "id": 134, + "id": 138, "name": "signInWithPassword", "kind": 4096, "kindString": "Call signature", @@ -6036,14 +6093,14 @@ }, "parameters": [ { - "id": 135, + "id": 139, "name": "credentials", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 683, + "id": 729, "name": "SignInWithPasswordCredentials" } } @@ -6053,8 +6110,8 @@ "typeArguments": [ { "type": "reference", - "id": 532, - "name": "AuthTokenResponse" + "id": 570, + "name": "AuthTokenResponsePassword" } ], "qualifiedName": "Promise", @@ -6065,7 +6122,7 @@ ] }, { - "id": 168, + "id": 172, "name": "signInWithSSO", "kind": 2048, "kindString": "Method", @@ -6073,13 +6130,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 729, + "line": 799, "character": 8 } ], "signatures": [ { - "id": 169, + "id": 173, "name": "signInWithSSO", "kind": 4096, "kindString": "Call signature", @@ -6090,14 +6147,14 @@ }, "parameters": [ { - "id": 170, + "id": 174, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 772, + "id": 817, "name": "SignInWithSSO" } } @@ -6107,7 +6164,7 @@ "typeArguments": [ { "type": "reference", - "id": 558, + "id": 598, "name": "SSOResponse" } ], @@ -6119,7 +6176,7 @@ ] }, { - "id": 307, + "id": 311, "name": "signOut", "kind": 2048, "kindString": "Method", @@ -6127,13 +6184,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1447, + "line": 1568, "character": 8 } ], "signatures": [ { - "id": 308, + "id": 312, "name": "signOut", "kind": 4096, "kindString": "Call signature", @@ -6144,14 +6201,14 @@ }, "parameters": [ { - "id": 309, + "id": 313, "name": "options", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 995, + "id": 1043, "name": "SignOut" }, "defaultValue": "..." @@ -6163,14 +6220,14 @@ { "type": "reflection", "declaration": { - "id": 310, + "id": 314, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 311, + "id": 315, "name": "error", "kind": 1024, "kindString": "Property", @@ -6178,7 +6235,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1447, + "line": 1568, "character": 67 } ], @@ -6191,7 +6248,7 @@ }, { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } ] @@ -6203,7 +6260,7 @@ "title": "Properties", "kind": 1024, "children": [ - 311 + 315 ] } ] @@ -6218,7 +6275,7 @@ ] }, { - "id": 130, + "id": 134, "name": "signUp", "kind": 2048, "kindString": "Method", @@ -6226,13 +6283,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 354, + "line": 413, "character": 8 } ], "signatures": [ { - "id": 131, + "id": 135, "name": "signUp", "kind": 4096, "kindString": "Call signature", @@ -6244,14 +6301,14 @@ }, "parameters": [ { - "id": 132, + "id": 136, "name": "credentials", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 666, + "id": 712, "name": "SignUpWithPasswordCredentials" } } @@ -6261,7 +6318,7 @@ "typeArguments": [ { "type": "reference", - "id": 504, + "id": 515, "name": "AuthResponse" } ], @@ -6273,7 +6330,7 @@ ] }, { - "id": 413, + "id": 417, "name": "startAutoRefresh", "kind": 2048, "kindString": "Method", @@ -6281,13 +6338,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 2023, + "line": 2142, "character": 8 } ], "signatures": [ { - "id": 414, + "id": 418, "name": "startAutoRefresh", "kind": 4096, "kindString": "Call signature", @@ -6312,7 +6369,7 @@ ] }, { - "id": 415, + "id": 419, "name": "stopAutoRefresh", "kind": 2048, "kindString": "Method", @@ -6320,13 +6377,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 2036, + "line": 2155, "character": 8 } ], "signatures": [ { - "id": 416, + "id": 420, "name": "stopAutoRefresh", "kind": 4096, "kindString": "Call signature", @@ -6351,7 +6408,7 @@ ] }, { - "id": 358, + "id": 362, "name": "unlinkIdentity", "kind": 2048, "kindString": "Method", @@ -6359,13 +6416,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1651, + "line": 1770, "character": 8 } ], "signatures": [ { - "id": 359, + "id": 363, "name": "unlinkIdentity", "kind": 4096, "kindString": "Call signature", @@ -6375,14 +6432,14 @@ }, "parameters": [ { - "id": 360, + "id": 364, "name": "identity", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 590, + "id": 630, "name": "UserIdentity" } } @@ -6393,70 +6450,6 @@ { "type": "union", "types": [ - { - "type": "reflection", - "declaration": { - "id": 361, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 362, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 1653, - "character": 8 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 363, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {} - } - } - }, - { - "id": 364, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 1654, - "character": 8 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 362, - 364 - ] - } - ] - } - }, { "type": "reflection", "declaration": { @@ -6475,17 +6468,23 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1656, + "line": 1772, "character": 8 } ], "type": { - "type": "literal", - "value": null + "type": "reflection", + "declaration": { + "id": 367, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {} + } } }, { - "id": 367, + "id": 368, "name": "error", "kind": 1024, "kindString": "Property", @@ -6493,14 +6492,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1656, - "character": 20 + "line": 1773, + "character": 8 } ], "type": { - "type": "reference", - "id": 1010, - "name": "AuthError" + "type": "literal", + "value": null } } ], @@ -6510,7 +6508,66 @@ "kind": 1024, "children": [ 366, - 367 + 368 + ] + } + ] + } + }, + { + "type": "reflection", + "declaration": { + "id": 369, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 370, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 1775, + "character": 8 + } + ], + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 371, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 1775, + "character": 20 + } + ], + "type": { + "type": "reference", + "id": 1058, + "name": "AuthError" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 370, + 371 ] } ] @@ -6527,7 +6584,7 @@ ] }, { - "id": 247, + "id": 251, "name": "updateUser", "kind": 2048, "kindString": "Method", @@ -6535,13 +6592,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1098, + "line": 1219, "character": 8 } ], "signatures": [ { - "id": 248, + "id": 252, "name": "updateUser", "kind": 4096, "kindString": "Call signature", @@ -6551,19 +6608,19 @@ }, "parameters": [ { - "id": 249, + "id": 253, "name": "attributes", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 639, + "id": 679, "name": "UserAttributes" } }, { - "id": 250, + "id": 254, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -6571,14 +6628,14 @@ "type": { "type": "reflection", "declaration": { - "id": 251, + "id": 255, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 252, + "id": 256, "name": "emailRedirectTo", "kind": 1024, "kindString": "Property", @@ -6588,7 +6645,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1101, + "line": 1222, "character": 6 } ], @@ -6603,7 +6660,7 @@ "title": "Properties", "kind": 1024, "children": [ - 252 + 256 ] } ] @@ -6617,7 +6674,7 @@ "typeArguments": [ { "type": "reference", - "id": 567, + "id": 607, "name": "UserResponse" } ], @@ -6629,7 +6686,7 @@ ] }, { - "id": 165, + "id": 169, "name": "verifyOtp", "kind": 2048, "kindString": "Method", @@ -6637,13 +6694,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 666, + "line": 733, "character": 8 } ], "signatures": [ { - "id": 166, + "id": 170, "name": "verifyOtp", "kind": 4096, "kindString": "Call signature", @@ -6653,14 +6710,14 @@ }, "parameters": [ { - "id": 167, + "id": 171, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 736, + "id": 781, "name": "VerifyOtpParams" } } @@ -6670,7 +6727,7 @@ "typeArguments": [ { "type": "reference", - "id": 504, + "id": 515, "name": "AuthResponse" } ], @@ -6702,64 +6759,65 @@ "title": "Methods", "kind": 2048, "children": [ - 139, - 178, - 241, - 345, - 126, - 355, - 317, - 171, - 278, + 143, + 182, + 245, + 349, + 127, + 359, + 321, 175, - 331, - 266, - 159, - 136, - 162, - 133, - 168, - 307, - 130, - 413, - 415, - 358, - 247, - 165 + 282, + 179, + 335, + 270, + 131, + 163, + 140, + 166, + 137, + 172, + 311, + 134, + 417, + 419, + 362, + 251, + 169 ] } ], "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 107, + "line": 116, "character": 21 } ] }, { - "id": 464, + "id": 470, "name": "NavigatorLockAcquireTimeoutError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 465, + "id": 471, "name": "constructor", "kind": 512, "kindString": "Constructor", "flags": {}, "signatures": [ { - "id": 466, + "id": 472, "name": "new NavigatorLockAcquireTimeoutError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 467, + "id": 473, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -6772,7 +6830,7 @@ ], "type": { "type": "reference", - "id": 464, + "id": 470, "name": "NavigatorLockAcquireTimeoutError" }, "inheritedFrom": { @@ -6787,7 +6845,7 @@ } }, { - "id": 468, + "id": 474, "name": "isAcquireTimeout", "kind": 1024, "kindString": "Property", @@ -6798,7 +6856,7 @@ "sources": [ { "fileName": "src/lib/locks.ts", - "line": 19, + "line": 24, "character": 18 } ], @@ -6818,21 +6876,21 @@ "title": "Constructors", "kind": 512, "children": [ - 465 + 471 ] }, { "title": "Properties", "kind": 1024, "children": [ - 468 + 474 ] } ], "sources": [ { "fileName": "src/lib/locks.ts", - "line": 26, + "line": 31, "character": 13 } ], @@ -6844,7 +6902,7 @@ ] }, { - "id": 587, + "id": 627, "name": "AMREntry", "kind": 256, "kindString": "Interface", @@ -6861,7 +6919,7 @@ }, "children": [ { - "id": 588, + "id": 628, "name": "method", "kind": 1024, "kindString": "Property", @@ -6872,7 +6930,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 221, + "line": 262, "character": 2 } ], @@ -6882,7 +6940,7 @@ } }, { - "id": 589, + "id": 629, "name": "timestamp", "kind": 1024, "kindString": "Property", @@ -6893,7 +6951,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 227, + "line": 268, "character": 2 } ], @@ -6908,28 +6966,28 @@ "title": "Properties", "kind": 1024, "children": [ - 588, - 589 + 628, + 629 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 219, + "line": 260, "character": 17 } ] }, { - "id": 645, + "id": 685, "name": "AdminUserAttributes", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 647, + "id": 687, "name": "app_metadata", "kind": 1024, "kindString": "Property", @@ -6943,7 +7001,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 357, + "line": 398, "character": 2 } ], @@ -6953,7 +7011,7 @@ } }, { - "id": 650, + "id": 690, "name": "ban_duration", "kind": 1024, "kindString": "Property", @@ -6967,7 +7025,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 383, + "line": 424, "character": 2 } ], @@ -6977,7 +7035,7 @@ } }, { - "id": 654, + "id": 694, "name": "email", "kind": 1024, "kindString": "Property", @@ -6990,7 +7048,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 308, + "line": 349, "character": 2 } ], @@ -7004,7 +7062,7 @@ } }, { - "id": 648, + "id": 688, "name": "email_confirm", "kind": 1024, "kindString": "Property", @@ -7018,7 +7076,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 364, + "line": 405, "character": 2 } ], @@ -7028,7 +7086,7 @@ } }, { - "id": 653, + "id": 693, "name": "nonce", "kind": 1024, "kindString": "Property", @@ -7042,7 +7100,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 325, + "line": 366, "character": 2 } ], @@ -7056,7 +7114,7 @@ } }, { - "id": 652, + "id": 692, "name": "password", "kind": 1024, "kindString": "Property", @@ -7069,7 +7127,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 318, + "line": 359, "character": 2 } ], @@ -7083,7 +7141,7 @@ } }, { - "id": 655, + "id": 695, "name": "phone", "kind": 1024, "kindString": "Property", @@ -7096,7 +7154,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 313, + "line": 354, "character": 2 } ], @@ -7110,7 +7168,7 @@ } }, { - "id": 649, + "id": 689, "name": "phone_confirm", "kind": 1024, "kindString": "Property", @@ -7124,7 +7182,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 371, + "line": 412, "character": 2 } ], @@ -7134,7 +7192,7 @@ } }, { - "id": 651, + "id": 691, "name": "role", "kind": 1024, "kindString": "Property", @@ -7148,7 +7206,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 392, + "line": 433, "character": 2 } ], @@ -7158,7 +7216,7 @@ } }, { - "id": 646, + "id": 686, "name": "user_metadata", "kind": 1024, "kindString": "Property", @@ -7166,13 +7224,13 @@ "isOptional": true }, "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", + "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.", "text": "The `user_metadata` should be a JSON object that includes user-specific info, such as their first and last name.\n\nNote: When using the GoTrueAdminApi and wanting to modify a user's metadata,\nthis attribute is used instead of UserAttributes data.\n\n" }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 347, + "line": 388, "character": 2 } ], @@ -7187,23 +7245,23 @@ "title": "Properties", "kind": 1024, "children": [ - 647, - 650, - 654, - 648, - 653, - 652, - 655, - 649, - 651, - 646 + 687, + 690, + 694, + 688, + 693, + 692, + 695, + 689, + 691, + 686 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 336, + "line": 377, "character": 17 } ], @@ -7213,7 +7271,7 @@ "typeArguments": [ { "type": "reference", - "id": 639, + "id": 679, "name": "UserAttributes" }, { @@ -7228,7 +7286,7 @@ ] }, { - "id": 602, + "id": 642, "name": "Factor", "kind": 256, "kindString": "Interface", @@ -7252,7 +7310,7 @@ }, "children": [ { - "id": 607, + "id": 647, "name": "created_at", "kind": 1024, "kindString": "Property", @@ -7260,7 +7318,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 266, + "line": 307, "character": 2 } ], @@ -7270,7 +7328,7 @@ } }, { - "id": 605, + "id": 645, "name": "factor_type", "kind": 1024, "kindString": "Property", @@ -7281,7 +7339,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 261, + "line": 302, "character": 2 } ], @@ -7291,7 +7349,7 @@ } }, { - "id": 604, + "id": 644, "name": "friendly_name", "kind": 1024, "kindString": "Property", @@ -7304,7 +7362,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 255, + "line": 296, "character": 2 } ], @@ -7314,7 +7372,7 @@ } }, { - "id": 603, + "id": 643, "name": "id", "kind": 1024, "kindString": "Property", @@ -7325,7 +7383,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 252, + "line": 293, "character": 2 } ], @@ -7335,7 +7393,7 @@ } }, { - "id": 606, + "id": 646, "name": "status", "kind": 1024, "kindString": "Property", @@ -7346,7 +7404,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 264, + "line": 305, "character": 2 } ], @@ -7365,7 +7423,7 @@ } }, { - "id": 608, + "id": 648, "name": "updated_at", "kind": 1024, "kindString": "Property", @@ -7373,7 +7431,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 267, + "line": 308, "character": 2 } ], @@ -7388,32 +7446,32 @@ "title": "Properties", "kind": 1024, "children": [ - 607, - 605, - 604, - 603, - 606, - 608 + 647, + 645, + 644, + 643, + 646, + 648 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 250, + "line": 291, "character": 17 } ] }, { - "id": 807, + "id": 852, "name": "GenerateLinkOptions", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 808, + "id": 853, "name": "data", "kind": 1024, "kindString": "Property", @@ -7421,13 +7479,13 @@ "isOptional": true }, "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", + "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.", "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n" }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 680, + "line": 728, "character": 2 } ], @@ -7437,7 +7495,7 @@ } }, { - "id": 809, + "id": 854, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -7450,7 +7508,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 682, + "line": 730, "character": 2 } ], @@ -7465,21 +7523,21 @@ "title": "Properties", "kind": 1024, "children": [ - 808, - 809 + 853, + 854 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 674, + "line": 722, "character": 17 } ] }, { - "id": 966, + "id": 1012, "name": "GoTrueAdminMFAApi", "kind": 256, "kindString": "Interface", @@ -7495,14 +7553,14 @@ }, "children": [ { - "id": 970, + "id": 1016, "name": "deleteFactor", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 971, + "id": 1017, "name": "deleteFactor", "kind": 4096, "kindString": "Call signature", @@ -7522,14 +7580,14 @@ }, "parameters": [ { - "id": 972, + "id": 1018, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 950, + "id": 996, "name": "AuthMFAAdminDeleteFactorParams" } } @@ -7539,7 +7597,7 @@ "typeArguments": [ { "type": "reference", - "id": 941, + "id": 987, "name": "AuthMFAAdminDeleteFactorResponse" } ], @@ -7551,14 +7609,14 @@ ] }, { - "id": 967, + "id": 1013, "name": "listFactors", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 968, + "id": 1014, "name": "listFactors", "kind": 4096, "kindString": "Call signature", @@ -7568,14 +7626,14 @@ }, "parameters": [ { - "id": 969, + "id": 1015, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 963, + "id": 1009, "name": "AuthMFAAdminListFactorsParams" } } @@ -7585,7 +7643,7 @@ "typeArguments": [ { "type": "reference", - "id": 954, + "id": 1000, "name": "AuthMFAAdminListFactorsResponse" } ], @@ -7602,21 +7660,21 @@ "title": "Methods", "kind": 2048, "children": [ - 970, - 967 + 1016, + 1013 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 1012, + "line": 1062, "character": 17 } ] }, { - "id": 921, + "id": 967, "name": "GoTrueMFAApi", "kind": 256, "kindString": "Interface", @@ -7626,14 +7684,14 @@ }, "children": [ { - "id": 925, + "id": 971, "name": "challenge", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 926, + "id": 972, "name": "challenge", "kind": 4096, "kindString": "Call signature", @@ -7643,14 +7701,14 @@ }, "parameters": [ { - "id": 927, + "id": 973, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 845, + "id": 890, "name": "MFAChallengeParams" } } @@ -7660,7 +7718,7 @@ "typeArguments": [ { "type": "reference", - "id": 889, + "id": 935, "name": "AuthMFAChallengeResponse" } ], @@ -7672,14 +7730,14 @@ ] }, { - "id": 934, + "id": 980, "name": "challengeAndVerify", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 935, + "id": 981, "name": "challengeAndVerify", "kind": 4096, "kindString": "Call signature", @@ -7689,14 +7747,14 @@ }, "parameters": [ { - "id": 936, + "id": 982, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 848, + "id": 893, "name": "MFAChallengeAndVerifyParams" } } @@ -7706,7 +7764,7 @@ "typeArguments": [ { "type": "reference", - "id": 852, + "id": 897, "name": "AuthMFAVerifyResponse" } ], @@ -7718,14 +7776,14 @@ ] }, { - "id": 922, + "id": 968, "name": "enroll", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 923, + "id": 969, "name": "enroll", "kind": 4096, "kindString": "Call signature", @@ -7736,14 +7794,14 @@ }, "parameters": [ { - "id": 924, + "id": 970, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 832, + "id": 877, "name": "MFAEnrollParams" } } @@ -7753,7 +7811,7 @@ "typeArguments": [ { "type": "reference", - "id": 865, + "id": 910, "name": "AuthMFAEnrollResponse" } ], @@ -7765,14 +7823,14 @@ ] }, { - "id": 939, + "id": 985, "name": "getAuthenticatorAssuranceLevel", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 940, + "id": 986, "name": "getAuthenticatorAssuranceLevel", "kind": 4096, "kindString": "Call signature", @@ -7786,7 +7844,7 @@ "typeArguments": [ { "type": "reference", - "id": 910, + "id": 956, "name": "AuthMFAGetAuthenticatorAssuranceLevelResponse" } ], @@ -7798,14 +7856,14 @@ ] }, { - "id": 937, + "id": 983, "name": "listFactors", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 938, + "id": 984, "name": "listFactors", "kind": 4096, "kindString": "Call signature", @@ -7832,7 +7890,7 @@ "typeArguments": [ { "type": "reference", - "id": 899, + "id": 945, "name": "AuthMFAListFactorsResponse" } ], @@ -7844,14 +7902,14 @@ ] }, { - "id": 931, + "id": 977, "name": "unenroll", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 932, + "id": 978, "name": "unenroll", "kind": 4096, "kindString": "Call signature", @@ -7861,14 +7919,14 @@ }, "parameters": [ { - "id": 933, + "id": 979, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 837, + "id": 882, "name": "MFAUnenrollParams" } } @@ -7878,7 +7936,7 @@ "typeArguments": [ { "type": "reference", - "id": 880, + "id": 926, "name": "AuthMFAUnenrollResponse" } ], @@ -7890,14 +7948,14 @@ ] }, { - "id": 928, + "id": 974, "name": "verify", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 929, + "id": 975, "name": "verify", "kind": 4096, "kindString": "Call signature", @@ -7907,14 +7965,14 @@ }, "parameters": [ { - "id": 930, + "id": 976, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 840, + "id": 885, "name": "MFAVerifyParams" } } @@ -7924,7 +7982,7 @@ "typeArguments": [ { "type": "reference", - "id": 852, + "id": 897, "name": "AuthMFAVerifyResponse" } ], @@ -7941,33 +7999,33 @@ "title": "Methods", "kind": 2048, "children": [ - 925, - 934, - 922, - 939, - 937, - 931, - 928 + 971, + 980, + 968, + 985, + 983, + 977, + 974 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 899, + "line": 949, "character": 17 } ] }, { - "id": 578, + "id": 618, "name": "Session", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 581, + "id": 621, "name": "access_token", "kind": 1024, "kindString": "Property", @@ -7978,7 +8036,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 194, + "line": 235, "character": 2 } ], @@ -7988,7 +8046,7 @@ } }, { - "id": 584, + "id": 624, "name": "expires_at", "kind": 1024, "kindString": "Property", @@ -8001,7 +8059,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 206, + "line": 247, "character": 2 } ], @@ -8011,7 +8069,7 @@ } }, { - "id": 583, + "id": 623, "name": "expires_in", "kind": 1024, "kindString": "Property", @@ -8022,7 +8080,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 202, + "line": 243, "character": 2 } ], @@ -8032,7 +8090,7 @@ } }, { - "id": 580, + "id": 620, "name": "provider_refresh_token", "kind": 1024, "kindString": "Property", @@ -8045,7 +8103,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 190, + "line": 231, "character": 2 } ], @@ -8064,7 +8122,7 @@ } }, { - "id": 579, + "id": 619, "name": "provider_token", "kind": 1024, "kindString": "Property", @@ -8077,7 +8135,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 185, + "line": 226, "character": 2 } ], @@ -8096,7 +8154,7 @@ } }, { - "id": 582, + "id": 622, "name": "refresh_token", "kind": 1024, "kindString": "Property", @@ -8107,7 +8165,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 198, + "line": 239, "character": 2 } ], @@ -8117,7 +8175,7 @@ } }, { - "id": 585, + "id": 625, "name": "token_type", "kind": 1024, "kindString": "Property", @@ -8125,7 +8183,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 207, + "line": 248, "character": 2 } ], @@ -8135,7 +8193,7 @@ } }, { - "id": 586, + "id": 626, "name": "user", "kind": 1024, "kindString": "Property", @@ -8143,13 +8201,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 208, + "line": 249, "character": 2 } ], "type": { "type": "reference", - "id": 616, + "id": 656, "name": "User" } } @@ -8159,34 +8217,34 @@ "title": "Properties", "kind": 1024, "children": [ - 581, - 584, - 583, - 580, - 579, - 582, - 585, - 586 + 621, + 624, + 623, + 620, + 619, + 622, + 625, + 626 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 181, + "line": 222, "character": 17 } ] }, { - "id": 656, + "id": 696, "name": "Subscription", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 657, + "id": 697, "name": "id", "kind": 1024, "kindString": "Property", @@ -8197,7 +8255,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 399, + "line": 440, "character": 2 } ], @@ -8207,7 +8265,7 @@ } }, { - "id": 658, + "id": 698, "name": "callback", "kind": 2048, "kindString": "Method", @@ -8215,13 +8273,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 403, + "line": 444, "character": 2 } ], "signatures": [ { - "id": 659, + "id": 699, "name": "callback", "kind": 4096, "kindString": "Call signature", @@ -8231,19 +8289,19 @@ }, "parameters": [ { - "id": 660, + "id": 700, "name": "event", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 474, + "id": 480, "name": "AuthChangeEvent" } }, { - "id": 661, + "id": 701, "name": "session", "kind": 32768, "kindString": "Parameter", @@ -8257,7 +8315,7 @@ }, { "type": "reference", - "id": 578, + "id": 618, "name": "Session" } ] @@ -8272,7 +8330,7 @@ ] }, { - "id": 662, + "id": 702, "name": "unsubscribe", "kind": 2048, "kindString": "Method", @@ -8280,13 +8338,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 407, + "line": 448, "character": 2 } ], "signatures": [ { - "id": 663, + "id": 703, "name": "unsubscribe", "kind": 4096, "kindString": "Call signature", @@ -8307,35 +8365,35 @@ "title": "Properties", "kind": 1024, "children": [ - 657 + 697 ] }, { "title": "Methods", "kind": 2048, "children": [ - 658, - 662 + 698, + 702 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 395, + "line": 436, "character": 17 } ] }, { - "id": 664, + "id": 704, "name": "UpdatableFactorAttributes", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 665, + "id": 705, "name": "friendlyName", "kind": 1024, "kindString": "Property", @@ -8343,7 +8401,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 411, + "line": 452, "character": 2 } ], @@ -8358,27 +8416,27 @@ "title": "Properties", "kind": 1024, "children": [ - 665 + 705 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 410, + "line": 451, "character": 17 } ] }, { - "id": 616, + "id": 656, "name": "User", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 627, + "id": 667, "name": "action_link", "kind": 1024, "kindString": "Property", @@ -8388,7 +8446,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 290, + "line": 331, "character": 2 } ], @@ -8398,7 +8456,7 @@ } }, { - "id": 618, + "id": 658, "name": "app_metadata", "kind": 1024, "kindString": "Property", @@ -8406,18 +8464,18 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 281, + "line": 322, "character": 2 } ], "type": { "type": "reference", - "id": 609, + "id": 649, "name": "UserAppMetadata" } }, { - "id": 620, + "id": 660, "name": "aud", "kind": 1024, "kindString": "Property", @@ -8425,7 +8483,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 283, + "line": 324, "character": 2 } ], @@ -8435,7 +8493,7 @@ } }, { - "id": 621, + "id": 661, "name": "confirmation_sent_at", "kind": 1024, "kindString": "Property", @@ -8445,7 +8503,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 284, + "line": 325, "character": 2 } ], @@ -8455,7 +8513,7 @@ } }, { - "id": 631, + "id": 671, "name": "confirmed_at", "kind": 1024, "kindString": "Property", @@ -8465,7 +8523,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 294, + "line": 335, "character": 2 } ], @@ -8475,7 +8533,7 @@ } }, { - "id": 630, + "id": 670, "name": "created_at", "kind": 1024, "kindString": "Property", @@ -8483,7 +8541,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 293, + "line": 334, "character": 2 } ], @@ -8493,7 +8551,7 @@ } }, { - "id": 628, + "id": 668, "name": "email", "kind": 1024, "kindString": "Property", @@ -8503,7 +8561,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 291, + "line": 332, "character": 2 } ], @@ -8513,7 +8571,7 @@ } }, { - "id": 623, + "id": 663, "name": "email_change_sent_at", "kind": 1024, "kindString": "Property", @@ -8523,7 +8581,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 286, + "line": 327, "character": 2 } ], @@ -8533,7 +8591,7 @@ } }, { - "id": 632, + "id": 672, "name": "email_confirmed_at", "kind": 1024, "kindString": "Property", @@ -8543,7 +8601,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 295, + "line": 336, "character": 2 } ], @@ -8553,7 +8611,7 @@ } }, { - "id": 638, + "id": 678, "name": "factors", "kind": 1024, "kindString": "Property", @@ -8563,7 +8621,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 301, + "line": 342, "character": 2 } ], @@ -8571,13 +8629,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 602, + "id": 642, "name": "Factor" } } }, { - "id": 617, + "id": 657, "name": "id", "kind": 1024, "kindString": "Property", @@ -8585,7 +8643,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 280, + "line": 321, "character": 2 } ], @@ -8595,7 +8653,7 @@ } }, { - "id": 637, + "id": 677, "name": "identities", "kind": 1024, "kindString": "Property", @@ -8605,7 +8663,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 300, + "line": 341, "character": 2 } ], @@ -8613,13 +8671,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 590, + "id": 630, "name": "UserIdentity" } } }, { - "id": 626, + "id": 666, "name": "invited_at", "kind": 1024, "kindString": "Property", @@ -8629,7 +8687,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 289, + "line": 330, "character": 2 } ], @@ -8639,7 +8697,7 @@ } }, { - "id": 634, + "id": 674, "name": "last_sign_in_at", "kind": 1024, "kindString": "Property", @@ -8649,7 +8707,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 297, + "line": 338, "character": 2 } ], @@ -8659,7 +8717,7 @@ } }, { - "id": 624, + "id": 664, "name": "new_email", "kind": 1024, "kindString": "Property", @@ -8669,7 +8727,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 287, + "line": 328, "character": 2 } ], @@ -8679,7 +8737,7 @@ } }, { - "id": 625, + "id": 665, "name": "new_phone", "kind": 1024, "kindString": "Property", @@ -8689,7 +8747,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 288, + "line": 329, "character": 2 } ], @@ -8699,7 +8757,7 @@ } }, { - "id": 629, + "id": 669, "name": "phone", "kind": 1024, "kindString": "Property", @@ -8709,7 +8767,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 292, + "line": 333, "character": 2 } ], @@ -8719,7 +8777,7 @@ } }, { - "id": 633, + "id": 673, "name": "phone_confirmed_at", "kind": 1024, "kindString": "Property", @@ -8729,7 +8787,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 296, + "line": 337, "character": 2 } ], @@ -8739,7 +8797,7 @@ } }, { - "id": 622, + "id": 662, "name": "recovery_sent_at", "kind": 1024, "kindString": "Property", @@ -8749,7 +8807,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 285, + "line": 326, "character": 2 } ], @@ -8759,7 +8817,7 @@ } }, { - "id": 635, + "id": 675, "name": "role", "kind": 1024, "kindString": "Property", @@ -8769,7 +8827,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 298, + "line": 339, "character": 2 } ], @@ -8779,7 +8837,7 @@ } }, { - "id": 636, + "id": 676, "name": "updated_at", "kind": 1024, "kindString": "Property", @@ -8789,7 +8847,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 299, + "line": 340, "character": 2 } ], @@ -8799,7 +8857,7 @@ } }, { - "id": 619, + "id": 659, "name": "user_metadata", "kind": 1024, "kindString": "Property", @@ -8807,13 +8865,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 282, + "line": 323, "character": 2 } ], "type": { "type": "reference", - "id": 613, + "id": 653, "name": "UserMetadata" } } @@ -8823,48 +8881,48 @@ "title": "Properties", "kind": 1024, "children": [ - 627, - 618, - 620, - 621, - 631, - 630, - 628, - 623, - 632, - 638, - 617, - 637, - 626, - 634, - 624, - 625, - 629, - 633, - 622, - 635, - 636, - 619 + 667, + 658, + 660, + 661, + 671, + 670, + 668, + 663, + 672, + 678, + 657, + 677, + 666, + 674, + 664, + 665, + 669, + 673, + 662, + 675, + 676, + 659 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 279, + "line": 320, "character": 17 } ] }, { - "id": 609, + "id": 649, "name": "UserAppMetadata", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 610, + "id": 650, "name": "provider", "kind": 1024, "kindString": "Property", @@ -8874,7 +8932,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 271, + "line": 312, "character": 2 } ], @@ -8889,26 +8947,26 @@ "title": "Properties", "kind": 1024, "children": [ - 610 + 650 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 270, + "line": 311, "character": 17 } ], "indexSignature": { - "id": 611, + "id": 651, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 612, + "id": 652, "name": "key", "kind": 32768, "flags": {}, @@ -8925,14 +8983,14 @@ } }, { - "id": 639, + "id": 679, "name": "UserAttributes", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 644, + "id": 684, "name": "data", "kind": 1024, "kindString": "Property", @@ -8940,13 +8998,13 @@ "isOptional": true }, "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", + "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.", "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n\n" }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 333, + "line": 374, "character": 2 } ], @@ -8956,7 +9014,7 @@ } }, { - "id": 640, + "id": 680, "name": "email", "kind": 1024, "kindString": "Property", @@ -8969,7 +9027,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 308, + "line": 349, "character": 2 } ], @@ -8979,7 +9037,7 @@ } }, { - "id": 643, + "id": 683, "name": "nonce", "kind": 1024, "kindString": "Property", @@ -8993,7 +9051,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 325, + "line": 366, "character": 2 } ], @@ -9003,7 +9061,7 @@ } }, { - "id": 642, + "id": 682, "name": "password", "kind": 1024, "kindString": "Property", @@ -9016,7 +9074,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 318, + "line": 359, "character": 2 } ], @@ -9026,7 +9084,7 @@ } }, { - "id": 641, + "id": 681, "name": "phone", "kind": 1024, "kindString": "Property", @@ -9039,7 +9097,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 313, + "line": 354, "character": 2 } ], @@ -9054,31 +9112,31 @@ "title": "Properties", "kind": 1024, "children": [ - 644, - 640, - 643, - 642, - 641 + 684, + 680, + 683, + 682, + 681 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 304, + "line": 345, "character": 17 } ] }, { - "id": 590, + "id": 630, "name": "UserIdentity", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 599, + "id": 639, "name": "created_at", "kind": 1024, "kindString": "Property", @@ -9088,7 +9146,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 238, + "line": 279, "character": 2 } ], @@ -9098,7 +9156,7 @@ } }, { - "id": 591, + "id": 631, "name": "id", "kind": 1024, "kindString": "Property", @@ -9106,7 +9164,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 231, + "line": 272, "character": 2 } ], @@ -9116,7 +9174,7 @@ } }, { - "id": 593, + "id": 633, "name": "identity_data", "kind": 1024, "kindString": "Property", @@ -9126,27 +9184,27 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 233, + "line": 274, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 594, + "id": 634, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": { - "id": 595, + "id": 635, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 596, + "id": 636, "name": "key", "kind": 32768, "flags": {}, @@ -9165,7 +9223,7 @@ } }, { - "id": 597, + "id": 637, "name": "identity_id", "kind": 1024, "kindString": "Property", @@ -9173,7 +9231,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 236, + "line": 277, "character": 2 } ], @@ -9183,7 +9241,7 @@ } }, { - "id": 600, + "id": 640, "name": "last_sign_in_at", "kind": 1024, "kindString": "Property", @@ -9193,7 +9251,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 239, + "line": 280, "character": 2 } ], @@ -9203,7 +9261,7 @@ } }, { - "id": 598, + "id": 638, "name": "provider", "kind": 1024, "kindString": "Property", @@ -9211,7 +9269,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 237, + "line": 278, "character": 2 } ], @@ -9221,7 +9279,7 @@ } }, { - "id": 601, + "id": 641, "name": "updated_at", "kind": 1024, "kindString": "Property", @@ -9231,7 +9289,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 240, + "line": 281, "character": 2 } ], @@ -9241,7 +9299,7 @@ } }, { - "id": 592, + "id": 632, "name": "user_id", "kind": 1024, "kindString": "Property", @@ -9249,7 +9307,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 232, + "line": 273, "character": 2 } ], @@ -9264,27 +9322,27 @@ "title": "Properties", "kind": 1024, "children": [ - 599, - 591, - 593, - 597, - 600, - 598, - 601, - 592 + 639, + 631, + 633, + 637, + 640, + 638, + 641, + 632 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 230, + "line": 271, "character": 17 } ] }, { - "id": 613, + "id": 653, "name": "UserMetadata", "kind": 256, "kindString": "Interface", @@ -9292,19 +9350,19 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 275, + "line": 316, "character": 17 } ], "indexSignature": { - "id": 614, + "id": 654, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 615, + "id": 655, "name": "key", "kind": 32768, "flags": {}, @@ -9321,14 +9379,14 @@ } }, { - "id": 745, + "id": 790, "name": "VerifyEmailOtpParams", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 746, + "id": 791, "name": "email", "kind": 1024, "kindString": "Property", @@ -9339,7 +9397,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 570, + "line": 618, "character": 2 } ], @@ -9349,7 +9407,7 @@ } }, { - "id": 749, + "id": 794, "name": "options", "kind": 1024, "kindString": "Property", @@ -9359,21 +9417,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 575, + "line": 623, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 750, + "id": 795, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 752, + "id": 797, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -9392,7 +9450,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 583, + "line": 631, "character": 4 } ], @@ -9402,7 +9460,7 @@ } }, { - "id": 751, + "id": 796, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -9415,7 +9473,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 577, + "line": 625, "character": 4 } ], @@ -9430,8 +9488,8 @@ "title": "Properties", "kind": 1024, "children": [ - 752, - 751 + 797, + 796 ] } ] @@ -9439,7 +9497,7 @@ } }, { - "id": 747, + "id": 792, "name": "token", "kind": 1024, "kindString": "Property", @@ -9450,7 +9508,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 572, + "line": 620, "character": 2 } ], @@ -9460,7 +9518,7 @@ } }, { - "id": 748, + "id": 793, "name": "type", "kind": 1024, "kindString": "Property", @@ -9471,13 +9529,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 574, + "line": 622, "character": 2 } ], "type": { "type": "reference", - "id": 757, + "id": 802, "name": "EmailOtpType" } } @@ -9487,30 +9545,30 @@ "title": "Properties", "kind": 1024, "children": [ - 746, - 749, - 747, - 748 + 791, + 794, + 792, + 793 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 568, + "line": 616, "character": 17 } ] }, { - "id": 737, + "id": 782, "name": "VerifyMobileOtpParams", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 741, + "id": 786, "name": "options", "kind": 1024, "kindString": "Property", @@ -9520,21 +9578,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 556, + "line": 604, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 742, + "id": 787, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 744, + "id": 789, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -9553,7 +9611,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 565, + "line": 613, "character": 4 } ], @@ -9563,7 +9621,7 @@ } }, { - "id": 743, + "id": 788, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -9576,7 +9634,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 558, + "line": 606, "character": 4 } ], @@ -9591,8 +9649,8 @@ "title": "Properties", "kind": 1024, "children": [ - 744, - 743 + 789, + 788 ] } ] @@ -9600,7 +9658,7 @@ } }, { - "id": 738, + "id": 783, "name": "phone", "kind": 1024, "kindString": "Property", @@ -9611,7 +9669,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 551, + "line": 599, "character": 2 } ], @@ -9621,7 +9679,7 @@ } }, { - "id": 739, + "id": 784, "name": "token", "kind": 1024, "kindString": "Property", @@ -9632,7 +9690,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 553, + "line": 601, "character": 2 } ], @@ -9642,7 +9700,7 @@ } }, { - "id": 740, + "id": 785, "name": "type", "kind": 1024, "kindString": "Property", @@ -9653,13 +9711,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 555, + "line": 603, "character": 2 } ], "type": { "type": "reference", - "id": 756, + "id": 801, "name": "MobileOtpType" } } @@ -9669,30 +9727,30 @@ "title": "Properties", "kind": 1024, "children": [ - 741, - 738, - 739, - 740 + 786, + 783, + 784, + 785 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 549, + "line": 597, "character": 17 } ] }, { - "id": 753, + "id": 798, "name": "VerifyTokenHashParams", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 754, + "id": 799, "name": "token_hash", "kind": 1024, "kindString": "Property", @@ -9703,7 +9761,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 589, + "line": 637, "character": 2 } ], @@ -9713,7 +9771,7 @@ } }, { - "id": 755, + "id": 800, "name": "type", "kind": 1024, "kindString": "Property", @@ -9724,13 +9782,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 592, + "line": 640, "character": 2 } ], "type": { "type": "reference", - "id": 757, + "id": 802, "name": "EmailOtpType" } } @@ -9740,21 +9798,21 @@ "title": "Properties", "kind": 1024, "children": [ - 754, - 755 + 799, + 800 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 587, + "line": 635, "character": 17 } ] }, { - "id": 474, + "id": 480, "name": "AuthChangeEvent", "kind": 4194304, "kindString": "Type alias", @@ -9795,14 +9853,14 @@ }, { "type": "reference", - "id": 473, + "id": 479, "name": "AuthChangeEventMFA" } ] } }, { - "id": 473, + "id": 479, "name": "AuthChangeEventMFA", "kind": 4194304, "kindString": "Type alias", @@ -9820,7 +9878,7 @@ } }, { - "id": 714, + "id": 759, "name": "AuthFlowType", "kind": 4194304, "kindString": "Type alias", @@ -9828,7 +9886,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 517, + "line": 565, "character": 12 } ], @@ -9847,7 +9905,7 @@ } }, { - "id": 950, + "id": 996, "name": "AuthMFAAdminDeleteFactorParams", "kind": 4194304, "kindString": "Type alias", @@ -9863,21 +9921,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 978, + "line": 1028, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 951, + "id": 997, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 952, + "id": 998, "name": "id", "kind": 1024, "kindString": "Property", @@ -9888,7 +9946,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 980, + "line": 1030, "character": 2 } ], @@ -9898,7 +9956,7 @@ } }, { - "id": 953, + "id": 999, "name": "userId", "kind": 1024, "kindString": "Property", @@ -9909,7 +9967,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 983, + "line": 1033, "character": 2 } ], @@ -9924,15 +9982,15 @@ "title": "Properties", "kind": 1024, "children": [ - 952, - 953 + 998, + 999 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 978, + "line": 1028, "character": 45 } ] @@ -9940,7 +9998,7 @@ } }, { - "id": 941, + "id": 987, "name": "AuthMFAAdminDeleteFactorResponse", "kind": 4194304, "kindString": "Type alias", @@ -9956,13 +10014,618 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 965, + "line": 1015, "character": 12 } ], "type": { "type": "union", "types": [ + { + "type": "reflection", + "declaration": { + "id": 988, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 989, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1017, + "character": 6 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 990, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 991, + "name": "id", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "comment": { + "shortText": "ID of the factor that was successfully deleted." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1019, + "character": 8 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 991 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1017, + "character": 12 + } + ] + } + } + }, + { + "id": 992, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1021, + "character": 6 + } + ], + "type": { + "type": "literal", + "value": null + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 989, + 992 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1016, + "character": 4 + } + ] + } + }, + { + "type": "reflection", + "declaration": { + "id": 993, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 994, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1023, + "character": 6 + } + ], + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 995, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1023, + "character": 18 + } + ], + "type": { + "type": "reference", + "id": 1058, + "name": "AuthError" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 994, + 995 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1023, + "character": 4 + } + ] + } + } + ] + } + }, + { + "id": 1009, + "name": "AuthMFAAdminListFactorsParams", + "kind": 4194304, + "kindString": "Type alias", + "flags": {}, + "comment": { + "tags": [ + { + "tag": "expermental", + "text": "\n" + } + ] + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1052, + "character": 12 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1010, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 1011, + "name": "userId", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "comment": { + "shortText": "ID of the user." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1054, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 1011 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1052, + "character": 44 + } + ] + } + } + }, + { + "id": 1000, + "name": "AuthMFAAdminListFactorsResponse", + "kind": 4194304, + "kindString": "Type alias", + "flags": {}, + "comment": { + "tags": [ + { + "tag": "expermental", + "text": "\n" + } + ] + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1039, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 1001, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 1002, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1041, + "character": 6 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1003, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 1004, + "name": "factors", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "comment": { + "shortText": "All factors attached to the user." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1043, + "character": 8 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "id": 642, + "name": "Factor" + } + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 1004 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1041, + "character": 12 + } + ] + } + } + }, + { + "id": 1005, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1045, + "character": 6 + } + ], + "type": { + "type": "literal", + "value": null + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 1002, + 1005 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1040, + "character": 4 + } + ] + } + }, + { + "type": "reflection", + "declaration": { + "id": 1006, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 1007, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1047, + "character": 6 + } + ], + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 1008, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1047, + "character": 18 + } + ], + "type": { + "type": "reference", + "id": 1058, + "name": "AuthError" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 1007, + 1008 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1047, + "character": 4 + } + ] + } + } + ] + } + }, + { + "id": 935, + "name": "AuthMFAChallengeResponse", + "kind": 4194304, + "kindString": "Type alias", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 892, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 936, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 937, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 894, + "character": 6 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 938, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 940, + "name": "expires_at", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "comment": { + "shortText": "Timestamp in UNIX seconds when this challenge will no longer be usable." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 899, + "character": 8 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 939, + "name": "id", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "comment": { + "shortText": "ID of the newly created challenge." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 896, + "character": 8 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 940, + 939 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 894, + "character": 12 + } + ] + } + } + }, + { + "id": 941, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 901, + "character": 6 + } + ], + "type": { + "type": "literal", + "value": null + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 937, + 941 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 893, + "character": 4 + } + ] + } + }, { "type": "reflection", "declaration": { @@ -9981,62 +10644,17 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 967, + "line": 903, "character": 6 } ], "type": { - "type": "reflection", - "declaration": { - "id": 944, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 945, - "name": "id", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "ID of the factor that was successfully deleted." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 969, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 945 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 967, - "character": 12 - } - ] - } + "type": "literal", + "value": null } }, { - "id": 946, + "id": 944, "name": "error", "kind": 1024, "kindString": "Property", @@ -10044,13 +10662,14 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 971, - "character": 6 + "line": 903, + "character": 18 } ], "type": { - "type": "literal", - "value": null + "type": "reference", + "id": 1058, + "name": "AuthError" } } ], @@ -10060,903 +10679,14 @@ "kind": 1024, "children": [ 943, - 946 + 944 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 966, - "character": 4 - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 947, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 948, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 973, - "character": 6 - } - ], - "type": { - "type": "literal", - "value": null - } - }, - { - "id": 949, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 973, - "character": 18 - } - ], - "type": { - "type": "reference", - "id": 1010, - "name": "AuthError" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 948, - 949 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 973, - "character": 4 - } - ] - } - } - ] - } - }, - { - "id": 963, - "name": "AuthMFAAdminListFactorsParams", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "comment": { - "tags": [ - { - "tag": "expermental", - "text": "\n" - } - ] - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 1002, - "character": 12 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 964, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 965, - "name": "userId", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "ID of the user." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 1004, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 965 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 1002, - "character": 44 - } - ] - } - } - }, - { - "id": 954, - "name": "AuthMFAAdminListFactorsResponse", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "comment": { - "tags": [ - { - "tag": "expermental", - "text": "\n" - } - ] - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 989, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 955, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 956, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 991, - "character": 6 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 957, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 958, - "name": "factors", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "All factors attached to the user." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 993, - "character": 8 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "id": 602, - "name": "Factor" - } - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 958 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 991, - "character": 12 - } - ] - } - } - }, - { - "id": 959, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 995, - "character": 6 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 956, - 959 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 990, - "character": 4 - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 960, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 961, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 997, - "character": 6 - } - ], - "type": { - "type": "literal", - "value": null - } - }, - { - "id": 962, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 997, - "character": 18 - } - ], - "type": { - "type": "reference", - "id": 1010, - "name": "AuthError" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 961, - 962 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 997, - "character": 4 - } - ] - } - } - ] - } - }, - { - "id": 889, - "name": "AuthMFAChallengeResponse", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 842, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 890, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 891, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 844, - "character": 6 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 892, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 894, - "name": "expires_at", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "Timestamp in UNIX seconds when this challenge will no longer be usable." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 849, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 893, - "name": "id", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "ID of the newly created challenge." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 846, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 894, - 893 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 844, - "character": 12 - } - ] - } - } - }, - { - "id": 895, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 851, - "character": 6 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 891, - 895 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 843, - "character": 4 - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 896, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 897, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 853, - "character": 6 - } - ], - "type": { - "type": "literal", - "value": null - } - }, - { - "id": 898, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 853, - "character": 18 - } - ], - "type": { - "type": "reference", - "id": 1010, - "name": "AuthError" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 897, - 898 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 853, - "character": 4 - } - ] - } - } - ] - } - }, - { - "id": 865, - "name": "AuthMFAEnrollResponse", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 799, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 866, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 867, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 801, - "character": 6 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 868, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 869, - "name": "id", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "ID of the factor that was just enrolled (in an unverified state)." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 803, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 871, - "name": "totp", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "TOTP enrollment information." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 809, - "character": 8 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 872, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 873, - "name": "qr_code", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "Contains a QR code encoding the authenticator URI. You can\nconvert it to a URL by prepending `data:image/svg+xml;utf-8,` to\nthe value. Avoid logging this value to the console." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 813, - "character": 10 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 874, - "name": "secret", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The TOTP secret (also encoded in the QR code). Show this secret\nin a password-style field to the user, in case they are unable to\nscan the QR code. Avoid logging this value to the console." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 818, - "character": 10 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 875, - "name": "uri", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The authenticator URI encoded within the QR code, should you need\nto use it. Avoid loggin this value to the console." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 822, - "character": 10 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 873, - 874, - 875 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 809, - "character": 14 - } - ] - } - } - }, - { - "id": 870, - "name": "type", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "Type of MFA factor. Only `totp` supported for now." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 806, - "character": 8 - } - ], - "type": { - "type": "literal", - "value": "totp" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 869, - 871, - 870 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 801, - "character": 12 - } - ] - } - } - }, - { - "id": 876, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 825, - "character": 6 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 867, - 876 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 800, - "character": 4 - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 877, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 878, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 828, - "character": 6 - } - ], - "type": { - "type": "literal", - "value": null - } - }, - { - "id": 879, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 829, - "character": 6 - } - ], - "type": { - "type": "reference", - "id": 1010, - "name": "AuthError" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 878, - 879 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 827, + "line": 903, "character": 4 } ] @@ -10967,14 +10697,14 @@ }, { "id": 910, - "name": "AuthMFAGetAuthenticatorAssuranceLevelResponse", + "name": "AuthMFAEnrollResponse", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/lib/types.ts", - "line": 870, + "line": 847, "character": 12 } ], @@ -10999,7 +10729,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 872, + "line": 849, "character": 6 } ], @@ -11012,8 +10742,360 @@ "kindString": "Type literal", "flags": {}, "children": [ + { + "id": 921, + "name": "friendly_name", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "Friendly name of the factor, useful for distinguishing between factors" + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 873, + "character": 8 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 914, + "name": "id", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "comment": { + "shortText": "ID of the factor that was just enrolled (in an unverified state)." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 851, + "character": 8 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, { "id": 916, + "name": "totp", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "comment": { + "shortText": "TOTP enrollment information." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 857, + "character": 8 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 917, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 918, + "name": "qr_code", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "comment": { + "shortText": "Contains a QR code encoding the authenticator URI. You can\nconvert it to a URL by prepending `data:image/svg+xml;utf-8,` to\nthe value. Avoid logging this value to the console." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 861, + "character": 10 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 919, + "name": "secret", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "comment": { + "shortText": "The TOTP secret (also encoded in the QR code). Show this secret\nin a password-style field to the user, in case they are unable to\nscan the QR code. Avoid logging this value to the console." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 866, + "character": 10 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 920, + "name": "uri", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "comment": { + "shortText": "The authenticator URI encoded within the QR code, should you need\nto use it. Avoid loggin this value to the console." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 870, + "character": 10 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 918, + 919, + 920 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 857, + "character": 14 + } + ] + } + } + }, + { + "id": 915, + "name": "type", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "comment": { + "shortText": "Type of MFA factor. Only `totp` supported for now." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 854, + "character": 8 + } + ], + "type": { + "type": "literal", + "value": "totp" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 921, + 914, + 916, + 915 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 849, + "character": 12 + } + ] + } + } + }, + { + "id": 922, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 875, + "character": 6 + } + ], + "type": { + "type": "literal", + "value": null + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 912, + 922 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 848, + "character": 4 + } + ] + } + }, + { + "type": "reflection", + "declaration": { + "id": 923, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 924, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 878, + "character": 6 + } + ], + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 925, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 879, + "character": 6 + } + ], + "type": { + "type": "reference", + "id": 1058, + "name": "AuthError" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 924, + 925 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 877, + "character": 4 + } + ] + } + } + ] + } + }, + { + "id": 956, + "name": "AuthMFAGetAuthenticatorAssuranceLevelResponse", + "kind": 4194304, + "kindString": "Type alias", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 920, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 957, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 958, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 922, + "character": 6 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 959, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 962, "name": "currentAuthenticationMethods", "kind": 1024, "kindString": "Property", @@ -11024,7 +11106,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 889, + "line": 939, "character": 8 } ], @@ -11032,13 +11114,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 587, + "id": 627, "name": "AMREntry" } } }, { - "id": 914, + "id": 960, "name": "currentLevel", "kind": 1024, "kindString": "Property", @@ -11049,7 +11131,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 874, + "line": 924, "character": 8 } ], @@ -11058,7 +11140,7 @@ "types": [ { "type": "reference", - "id": 909, + "id": 955, "name": "AuthenticatorAssuranceLevels" }, { @@ -11069,7 +11151,7 @@ } }, { - "id": 915, + "id": 961, "name": "nextLevel", "kind": 1024, "kindString": "Property", @@ -11086,7 +11168,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 882, + "line": 932, "character": 8 } ], @@ -11095,7 +11177,7 @@ "types": [ { "type": "reference", - "id": 909, + "id": 955, "name": "AuthenticatorAssuranceLevels" }, { @@ -11111,16 +11193,16 @@ "title": "Properties", "kind": 1024, "children": [ - 916, - 914, - 915 + 962, + 960, + 961 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 872, + "line": 922, "character": 12 } ] @@ -11128,7 +11210,7 @@ } }, { - "id": 917, + "id": 963, "name": "error", "kind": 1024, "kindString": "Property", @@ -11136,7 +11218,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 891, + "line": 941, "character": 6 } ], @@ -11151,15 +11233,15 @@ "title": "Properties", "kind": 1024, "children": [ - 912, - 917 + 958, + 963 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 871, + "line": 921, "character": 4 } ] @@ -11168,14 +11250,14 @@ { "type": "reflection", "declaration": { - "id": 918, + "id": 964, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 919, + "id": 965, "name": "data", "kind": 1024, "kindString": "Property", @@ -11183,7 +11265,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 893, + "line": 943, "character": 6 } ], @@ -11193,7 +11275,7 @@ } }, { - "id": 920, + "id": 966, "name": "error", "kind": 1024, "kindString": "Property", @@ -11201,13 +11283,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 893, + "line": 943, "character": 18 } ], "type": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } } @@ -11217,15 +11299,15 @@ "title": "Properties", "kind": 1024, "children": [ - 919, - 920 + 965, + 966 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 893, + "line": 943, "character": 4 } ] @@ -11235,7 +11317,7 @@ } }, { - "id": 899, + "id": 945, "name": "AuthMFAListFactorsResponse", "kind": 4194304, "kindString": "Type alias", @@ -11243,7 +11325,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 855, + "line": 905, "character": 12 } ], @@ -11253,14 +11335,14 @@ { "type": "reflection", "declaration": { - "id": 900, + "id": 946, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 901, + "id": 947, "name": "data", "kind": 1024, "kindString": "Property", @@ -11268,21 +11350,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 857, + "line": 907, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 902, + "id": 948, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 903, + "id": 949, "name": "all", "kind": 1024, "kindString": "Property", @@ -11293,7 +11375,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 859, + "line": 909, "character": 8 } ], @@ -11301,13 +11383,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 602, + "id": 642, "name": "Factor" } } }, { - "id": 904, + "id": 950, "name": "totp", "kind": 1024, "kindString": "Property", @@ -11318,7 +11400,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 862, + "line": 912, "character": 8 } ], @@ -11326,7 +11408,7 @@ "type": "array", "elementType": { "type": "reference", - "id": 602, + "id": 642, "name": "Factor" } } @@ -11337,15 +11419,15 @@ "title": "Properties", "kind": 1024, "children": [ - 903, - 904 + 949, + 950 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 857, + "line": 907, "character": 12 } ] @@ -11353,7 +11435,7 @@ } }, { - "id": 905, + "id": 951, "name": "error", "kind": 1024, "kindString": "Property", @@ -11361,7 +11443,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 864, + "line": 914, "character": 6 } ], @@ -11376,15 +11458,15 @@ "title": "Properties", "kind": 1024, "children": [ - 901, - 905 + 947, + 951 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 856, + "line": 906, "character": 4 } ] @@ -11393,14 +11475,14 @@ { "type": "reflection", "declaration": { - "id": 906, + "id": 952, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 907, + "id": 953, "name": "data", "kind": 1024, "kindString": "Property", @@ -11408,7 +11490,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 866, + "line": 916, "character": 6 } ], @@ -11418,7 +11500,7 @@ } }, { - "id": 908, + "id": 954, "name": "error", "kind": 1024, "kindString": "Property", @@ -11426,13 +11508,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 866, + "line": 916, "character": 18 } ], "type": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } } @@ -11442,15 +11524,15 @@ "title": "Properties", "kind": 1024, "children": [ - 907, - 908 + 953, + 954 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 866, + "line": 916, "character": 4 } ] @@ -11460,7 +11542,7 @@ } }, { - "id": 880, + "id": 926, "name": "AuthMFAUnenrollResponse", "kind": 4194304, "kindString": "Type alias", @@ -11468,7 +11550,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 832, + "line": 882, "character": 12 } ], @@ -11478,14 +11560,14 @@ { "type": "reflection", "declaration": { - "id": 881, + "id": 927, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 882, + "id": 928, "name": "data", "kind": 1024, "kindString": "Property", @@ -11493,21 +11575,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 834, + "line": 884, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 883, + "id": 929, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 884, + "id": 930, "name": "id", "kind": 1024, "kindString": "Property", @@ -11518,7 +11600,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 836, + "line": 886, "character": 8 } ], @@ -11533,14 +11615,14 @@ "title": "Properties", "kind": 1024, "children": [ - 884 + 930 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 834, + "line": 884, "character": 12 } ] @@ -11548,7 +11630,7 @@ } }, { - "id": 885, + "id": 931, "name": "error", "kind": 1024, "kindString": "Property", @@ -11556,7 +11638,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 838, + "line": 888, "character": 6 } ], @@ -11571,15 +11653,15 @@ "title": "Properties", "kind": 1024, "children": [ - 882, - 885 + 928, + 931 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 833, + "line": 883, "character": 4 } ] @@ -11588,14 +11670,14 @@ { "type": "reflection", "declaration": { - "id": 886, + "id": 932, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 887, + "id": 933, "name": "data", "kind": 1024, "kindString": "Property", @@ -11603,7 +11685,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 840, + "line": 890, "character": 6 } ], @@ -11613,7 +11695,7 @@ } }, { - "id": 888, + "id": 934, "name": "error", "kind": 1024, "kindString": "Property", @@ -11621,13 +11703,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 840, + "line": 890, "character": 18 } ], "type": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } } @@ -11637,15 +11719,15 @@ "title": "Properties", "kind": 1024, "children": [ - 887, - 888 + 933, + 934 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 840, + "line": 890, "character": 4 } ] @@ -11655,7 +11737,7 @@ } }, { - "id": 852, + "id": 897, "name": "AuthMFAVerifyResponse", "kind": 4194304, "kindString": "Type alias", @@ -11663,7 +11745,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 774, + "line": 822, "character": 12 } ], @@ -11673,14 +11755,14 @@ { "type": "reflection", "declaration": { - "id": 853, + "id": 898, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 854, + "id": 899, "name": "data", "kind": 1024, "kindString": "Property", @@ -11688,21 +11770,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 776, + "line": 824, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 855, + "id": 900, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 856, + "id": 901, "name": "access_token", "kind": 1024, "kindString": "Property", @@ -11713,7 +11795,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 778, + "line": 826, "character": 8 } ], @@ -11723,7 +11805,7 @@ } }, { - "id": 858, + "id": 903, "name": "expires_in", "kind": 1024, "kindString": "Property", @@ -11734,7 +11816,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 784, + "line": 832, "character": 8 } ], @@ -11744,7 +11826,7 @@ } }, { - "id": 859, + "id": 904, "name": "refresh_token", "kind": 1024, "kindString": "Property", @@ -11755,7 +11837,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 787, + "line": 835, "character": 8 } ], @@ -11765,7 +11847,7 @@ } }, { - "id": 857, + "id": 902, "name": "token_type", "kind": 1024, "kindString": "Property", @@ -11776,7 +11858,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 781, + "line": 829, "character": 8 } ], @@ -11786,7 +11868,7 @@ } }, { - "id": 860, + "id": 905, "name": "user", "kind": 1024, "kindString": "Property", @@ -11797,13 +11879,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 790, + "line": 838, "character": 8 } ], "type": { "type": "reference", - "id": 616, + "id": 656, "name": "User" } } @@ -11813,18 +11895,18 @@ "title": "Properties", "kind": 1024, "children": [ - 856, - 858, - 859, - 857, - 860 + 901, + 903, + 904, + 902, + 905 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 776, + "line": 824, "character": 12 } ] @@ -11832,7 +11914,7 @@ } }, { - "id": 861, + "id": 906, "name": "error", "kind": 1024, "kindString": "Property", @@ -11840,7 +11922,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 792, + "line": 840, "character": 6 } ], @@ -11855,15 +11937,15 @@ "title": "Properties", "kind": 1024, "children": [ - 854, - 861 + 899, + 906 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 775, + "line": 823, "character": 4 } ] @@ -11872,14 +11954,14 @@ { "type": "reflection", "declaration": { - "id": 862, + "id": 907, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 863, + "id": 908, "name": "data", "kind": 1024, "kindString": "Property", @@ -11887,7 +11969,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 795, + "line": 843, "character": 6 } ], @@ -11897,7 +11979,7 @@ } }, { - "id": 864, + "id": 909, "name": "error", "kind": 1024, "kindString": "Property", @@ -11905,13 +11987,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 796, + "line": 844, "character": 6 } ], "type": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } } @@ -11921,15 +12003,15 @@ "title": "Properties", "kind": 1024, "children": [ - 863, - 864 + 908, + 909 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 794, + "line": 842, "character": 4 } ] @@ -11939,7 +12021,7 @@ } }, { - "id": 517, + "id": 542, "name": "AuthOtpResponse", "kind": 4194304, "kindString": "Type alias", @@ -11951,7 +12033,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 106, + "line": 129, "character": 12 } ], @@ -11961,14 +12043,14 @@ { "type": "reflection", "declaration": { - "id": 518, + "id": 543, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 519, + "id": 544, "name": "data", "kind": 1024, "kindString": "Property", @@ -11976,21 +12058,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 108, + "line": 131, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 520, + "id": 545, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 523, + "id": 548, "name": "messageId", "kind": 1024, "kindString": "Property", @@ -12000,7 +12082,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 108, + "line": 131, "character": 41 } ], @@ -12019,7 +12101,7 @@ } }, { - "id": 522, + "id": 547, "name": "session", "kind": 1024, "kindString": "Property", @@ -12027,7 +12109,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 108, + "line": 131, "character": 26 } ], @@ -12037,7 +12119,7 @@ } }, { - "id": 521, + "id": 546, "name": "user", "kind": 1024, "kindString": "Property", @@ -12045,7 +12127,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 108, + "line": 131, "character": 14 } ], @@ -12060,16 +12142,16 @@ "title": "Properties", "kind": 1024, "children": [ - 523, - 522, - 521 + 548, + 547, + 546 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 108, + "line": 131, "character": 12 } ] @@ -12077,7 +12159,7 @@ } }, { - "id": 524, + "id": 549, "name": "error", "kind": 1024, "kindString": "Property", @@ -12085,7 +12167,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 109, + "line": 132, "character": 6 } ], @@ -12100,15 +12182,15 @@ "title": "Properties", "kind": 1024, "children": [ - 519, - 524 + 544, + 549 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 107, + "line": 130, "character": 4 } ] @@ -12117,14 +12199,14 @@ { "type": "reflection", "declaration": { - "id": 525, + "id": 550, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 526, + "id": 551, "name": "data", "kind": 1024, "kindString": "Property", @@ -12132,21 +12214,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 112, + "line": 135, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 527, + "id": 552, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 530, + "id": 555, "name": "messageId", "kind": 1024, "kindString": "Property", @@ -12156,7 +12238,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 112, + "line": 135, "character": 41 } ], @@ -12175,7 +12257,7 @@ } }, { - "id": 529, + "id": 554, "name": "session", "kind": 1024, "kindString": "Property", @@ -12183,7 +12265,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 112, + "line": 135, "character": 26 } ], @@ -12193,7 +12275,7 @@ } }, { - "id": 528, + "id": 553, "name": "user", "kind": 1024, "kindString": "Property", @@ -12201,7 +12283,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 112, + "line": 135, "character": 14 } ], @@ -12216,16 +12298,16 @@ "title": "Properties", "kind": 1024, "children": [ - 530, - 529, - 528 + 555, + 554, + 553 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 112, + "line": 135, "character": 12 } ] @@ -12233,7 +12315,7 @@ } }, { - "id": 531, + "id": 556, "name": "error", "kind": 1024, "kindString": "Property", @@ -12241,13 +12323,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 113, + "line": 136, "character": 6 } ], "type": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } } @@ -12257,15 +12339,15 @@ "title": "Properties", "kind": 1024, "children": [ - 526, - 531 + 551, + 556 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 111, + "line": 134, "character": 4 } ] @@ -12275,7 +12357,7 @@ } }, { - "id": 504, + "id": 515, "name": "AuthResponse", "kind": 4194304, "kindString": "Type alias", @@ -12283,7 +12365,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 85, + "line": 91, "character": 12 } ], @@ -12293,14 +12375,14 @@ { "type": "reflection", "declaration": { - "id": 505, + "id": 516, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 506, + "id": 517, "name": "data", "kind": 1024, "kindString": "Property", @@ -12308,21 +12390,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 87, + "line": 93, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 507, + "id": 518, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 509, + "id": 520, "name": "session", "kind": 1024, "kindString": "Property", @@ -12330,7 +12412,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 89, + "line": 95, "character": 8 } ], @@ -12339,7 +12421,7 @@ "types": [ { "type": "reference", - "id": 578, + "id": 618, "name": "Session" }, { @@ -12350,7 +12432,7 @@ } }, { - "id": 508, + "id": 519, "name": "user", "kind": 1024, "kindString": "Property", @@ -12358,7 +12440,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 88, + "line": 94, "character": 8 } ], @@ -12367,7 +12449,7 @@ "types": [ { "type": "reference", - "id": 616, + "id": 656, "name": "User" }, { @@ -12383,15 +12465,15 @@ "title": "Properties", "kind": 1024, "children": [ - 509, - 508 + 520, + 519 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 87, + "line": 93, "character": 12 } ] @@ -12399,7 +12481,7 @@ } }, { - "id": 510, + "id": 521, "name": "error", "kind": 1024, "kindString": "Property", @@ -12407,7 +12489,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 91, + "line": 97, "character": 6 } ], @@ -12422,15 +12504,15 @@ "title": "Properties", "kind": 1024, "children": [ - 506, - 510 + 517, + 521 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 86, + "line": 92, "character": 4 } ] @@ -12439,14 +12521,14 @@ { "type": "reflection", "declaration": { - "id": 511, + "id": 522, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 512, + "id": 523, "name": "data", "kind": 1024, "kindString": "Property", @@ -12454,21 +12536,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 94, + "line": 100, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 513, + "id": 524, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 515, + "id": 526, "name": "session", "kind": 1024, "kindString": "Property", @@ -12476,7 +12558,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 96, + "line": 102, "character": 8 } ], @@ -12486,7 +12568,7 @@ } }, { - "id": 514, + "id": 525, "name": "user", "kind": 1024, "kindString": "Property", @@ -12494,7 +12576,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 95, + "line": 101, "character": 8 } ], @@ -12509,15 +12591,15 @@ "title": "Properties", "kind": 1024, "children": [ - 515, - 514 + 526, + 525 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 94, + "line": 100, "character": 12 } ] @@ -12525,7 +12607,7 @@ } }, { - "id": 516, + "id": 527, "name": "error", "kind": 1024, "kindString": "Property", @@ -12533,13 +12615,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 98, + "line": 104, "character": 6 } ], "type": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } } @@ -12549,15 +12631,15 @@ "title": "Properties", "kind": 1024, "children": [ - 512, - 516 + 523, + 527 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 93, + "line": 99, "character": 4 } ] @@ -12567,15 +12649,15 @@ } }, { - "id": 532, - "name": "AuthTokenResponse", + "id": 528, + "name": "AuthResponsePassword", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/lib/types.ts", - "line": 116, + "line": 107, "character": 12 } ], @@ -12585,14 +12667,14 @@ { "type": "reflection", "declaration": { - "id": 533, + "id": 529, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 534, + "id": 530, "name": "data", "kind": 1024, "kindString": "Property", @@ -12600,21 +12682,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 118, + "line": 109, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 535, + "id": 531, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 537, + "id": 533, "name": "session", "kind": 1024, "kindString": "Property", @@ -12622,22 +12704,180 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 120, + "line": 111, "character": 8 } ], "type": { - "type": "reference", - "id": 578, - "name": "Session" + "type": "union", + "types": [ + { + "type": "reference", + "id": 618, + "name": "Session" + }, + { + "type": "literal", + "value": null + } + ] } }, { - "id": 536, + "id": 532, "name": "user", "kind": 1024, "kindString": "Property", "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 110, + "character": 8 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 656, + "name": "User" + }, + { + "type": "literal", + "value": null + } + ] + } + }, + { + "id": 534, + "name": "weak_password", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 112, + "character": 8 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 511, + "name": "WeakPassword" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 533, + 532, + 534 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 109, + "character": 12 + } + ] + } + } + }, + { + "id": 535, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 114, + "character": 6 + } + ], + "type": { + "type": "literal", + "value": null + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 530, + 535 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 108, + "character": 4 + } + ] + } + }, + { + "type": "reflection", + "declaration": { + "id": 536, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 537, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 117, + "character": 6 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 538, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 540, + "name": "session", + "kind": 1024, + "kindString": "Property", + "flags": {}, "sources": [ { "fileName": "src/lib/types.ts", @@ -12645,9 +12885,174 @@ "character": 8 } ], + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 539, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 118, + "character": 8 + } + ], + "type": { + "type": "literal", + "value": null + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 540, + 539 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 117, + "character": 12 + } + ] + } + } + }, + { + "id": 541, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 121, + "character": 6 + } + ], + "type": { + "type": "reference", + "id": 1058, + "name": "AuthError" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 537, + 541 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 116, + "character": 4 + } + ] + } + } + ] + } + }, + { + "id": 557, + "name": "AuthTokenResponse", + "kind": 4194304, + "kindString": "Type alias", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 139, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 558, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 559, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 141, + "character": 6 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 560, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 562, + "name": "session", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 143, + "character": 8 + } + ], "type": { "type": "reference", - "id": 616, + "id": 618, + "name": "Session" + } + }, + { + "id": 561, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 142, + "character": 8 + } + ], + "type": { + "type": "reference", + "id": 656, "name": "User" } } @@ -12657,15 +13062,15 @@ "title": "Properties", "kind": 1024, "children": [ - 537, - 536 + 562, + 561 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 118, + "line": 141, "character": 12 } ] @@ -12673,7 +13078,7 @@ } }, { - "id": 538, + "id": 563, "name": "error", "kind": 1024, "kindString": "Property", @@ -12681,7 +13086,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 122, + "line": 145, "character": 6 } ], @@ -12696,15 +13101,15 @@ "title": "Properties", "kind": 1024, "children": [ - 534, - 538 + 559, + 563 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 117, + "line": 140, "character": 4 } ] @@ -12713,14 +13118,14 @@ { "type": "reflection", "declaration": { - "id": 539, + "id": 564, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 540, + "id": 565, "name": "data", "kind": 1024, "kindString": "Property", @@ -12728,21 +13133,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 125, + "line": 148, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 541, + "id": 566, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 543, + "id": 568, "name": "session", "kind": 1024, "kindString": "Property", @@ -12750,7 +13155,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 127, + "line": 150, "character": 8 } ], @@ -12760,7 +13165,7 @@ } }, { - "id": 542, + "id": 567, "name": "user", "kind": 1024, "kindString": "Property", @@ -12768,7 +13173,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 126, + "line": 149, "character": 8 } ], @@ -12783,15 +13188,15 @@ "title": "Properties", "kind": 1024, "children": [ - 543, - 542 + 568, + 567 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 125, + "line": 148, "character": 12 } ] @@ -12799,7 +13204,7 @@ } }, { - "id": 544, + "id": 569, "name": "error", "kind": 1024, "kindString": "Property", @@ -12807,13 +13212,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 129, + "line": 152, "character": 6 } ], "type": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } } @@ -12823,15 +13228,15 @@ "title": "Properties", "kind": 1024, "children": [ - 540, - 544 + 565, + 569 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 124, + "line": 147, "character": 4 } ] @@ -12841,7 +13246,324 @@ } }, { - "id": 909, + "id": 570, + "name": "AuthTokenResponsePassword", + "kind": 4194304, + "kindString": "Type alias", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 155, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 571, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 572, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 157, + "character": 6 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 573, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 575, + "name": "session", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 159, + "character": 8 + } + ], + "type": { + "type": "reference", + "id": 618, + "name": "Session" + } + }, + { + "id": 574, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 158, + "character": 8 + } + ], + "type": { + "type": "reference", + "id": 656, + "name": "User" + } + }, + { + "id": 576, + "name": "weakPassword", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 160, + "character": 8 + } + ], + "type": { + "type": "reference", + "id": 511, + "name": "WeakPassword" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 575, + 574, + 576 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 157, + "character": 12 + } + ] + } + } + }, + { + "id": 577, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 162, + "character": 6 + } + ], + "type": { + "type": "literal", + "value": null + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 572, + 577 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 156, + "character": 4 + } + ] + } + }, + { + "type": "reflection", + "declaration": { + "id": 578, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 579, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 165, + "character": 6 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 580, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 582, + "name": "session", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 167, + "character": 8 + } + ], + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 581, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 166, + "character": 8 + } + ], + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 583, + "name": "weakPassword", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 168, + "character": 8 + } + ], + "type": { + "type": "literal", + "value": null + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 582, + 581, + 583 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 165, + "character": 12 + } + ] + } + } + }, + { + "id": 584, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 170, + "character": 6 + } + ], + "type": { + "type": "reference", + "id": 1058, + "name": "AuthError" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 579, + 584 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 164, + "character": 4 + } + ] + } + } + ] + } + }, + { + "id": 955, "name": "AuthenticatorAssuranceLevels", "kind": 4194304, "kindString": "Type alias", @@ -12849,7 +13571,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 868, + "line": 918, "character": 12 } ], @@ -12868,7 +13590,7 @@ } }, { - "id": 977, + "id": 1025, "name": "CallRefreshTokenResult", "kind": 4194304, "kindString": "Type alias", @@ -12876,7 +13598,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1043, + "line": 1104, "character": 12 } ], @@ -12886,14 +13608,14 @@ { "type": "reflection", "declaration": { - "id": 978, + "id": 1026, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 980, + "id": 1028, "name": "error", "kind": 1024, "kindString": "Property", @@ -12901,7 +13623,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1046, + "line": 1107, "character": 6 } ], @@ -12911,7 +13633,7 @@ } }, { - "id": 979, + "id": 1027, "name": "session", "kind": 1024, "kindString": "Property", @@ -12919,13 +13641,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1045, + "line": 1106, "character": 6 } ], "type": { "type": "reference", - "id": 578, + "id": 618, "name": "Session" } } @@ -12935,15 +13657,15 @@ "title": "Properties", "kind": 1024, "children": [ - 980, - 979 + 1028, + 1027 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 1044, + "line": 1105, "character": 4 } ] @@ -12952,14 +13674,14 @@ { "type": "reflection", "declaration": { - "id": 981, + "id": 1029, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 983, + "id": 1031, "name": "error", "kind": 1024, "kindString": "Property", @@ -12967,18 +13689,18 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1050, + "line": 1111, "character": 6 } ], "type": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } }, { - "id": 982, + "id": 1030, "name": "session", "kind": 1024, "kindString": "Property", @@ -12986,7 +13708,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1049, + "line": 1110, "character": 6 } ], @@ -13001,15 +13723,15 @@ "title": "Properties", "kind": 1024, "children": [ - 983, - 982 + 1031, + 1030 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 1048, + "line": 1109, "character": 4 } ] @@ -13019,7 +13741,7 @@ } }, { - "id": 757, + "id": 802, "name": "EmailOtpType", "kind": 4194304, "kindString": "Type alias", @@ -13027,7 +13749,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 596, + "line": 644, "character": 12 } ], @@ -13062,7 +13784,7 @@ } }, { - "id": 801, + "id": 846, "name": "GenerateEmailChangeLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -13070,21 +13792,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 663, + "line": 711, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 802, + "id": 847, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 804, + "id": 849, "name": "email", "kind": 1024, "kindString": "Property", @@ -13095,7 +13817,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 666, + "line": 714, "character": 2 } ], @@ -13105,7 +13827,7 @@ } }, { - "id": 805, + "id": 850, "name": "newEmail", "kind": 1024, "kindString": "Property", @@ -13116,7 +13838,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 670, + "line": 718, "character": 2 } ], @@ -13126,7 +13848,7 @@ } }, { - "id": 806, + "id": 851, "name": "options", "kind": 1024, "kindString": "Property", @@ -13136,7 +13858,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 671, + "line": 719, "character": 2 } ], @@ -13145,7 +13867,7 @@ "typeArguments": [ { "type": "reference", - "id": 807, + "id": 852, "name": "GenerateLinkOptions" }, { @@ -13159,7 +13881,7 @@ } }, { - "id": 803, + "id": 848, "name": "type", "kind": 1024, "kindString": "Property", @@ -13167,7 +13889,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 664, + "line": 712, "character": 2 } ], @@ -13191,17 +13913,17 @@ "title": "Properties", "kind": 1024, "children": [ - 804, - 805, - 806, - 803 + 849, + 850, + 851, + 848 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 663, + "line": 711, "character": 44 } ] @@ -13209,7 +13931,7 @@ } }, { - "id": 791, + "id": 836, "name": "GenerateInviteOrMagiclinkParams", "kind": 4194304, "kindString": "Type alias", @@ -13217,21 +13939,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 649, + "line": 697, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 792, + "id": 837, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 794, + "id": 839, "name": "email", "kind": 1024, "kindString": "Property", @@ -13242,7 +13964,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 652, + "line": 700, "character": 2 } ], @@ -13252,7 +13974,7 @@ } }, { - "id": 795, + "id": 840, "name": "options", "kind": 1024, "kindString": "Property", @@ -13262,7 +13984,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 653, + "line": 701, "character": 2 } ], @@ -13271,7 +13993,7 @@ "typeArguments": [ { "type": "reference", - "id": 807, + "id": 852, "name": "GenerateLinkOptions" }, { @@ -13294,7 +14016,7 @@ } }, { - "id": 793, + "id": 838, "name": "type", "kind": 1024, "kindString": "Property", @@ -13302,7 +14024,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 650, + "line": 698, "character": 2 } ], @@ -13326,16 +14048,16 @@ "title": "Properties", "kind": 1024, "children": [ - 794, - 795, - 793 + 839, + 840, + 838 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 649, + "line": 697, "character": 46 } ] @@ -13343,7 +14065,7 @@ } }, { - "id": 810, + "id": 855, "name": "GenerateLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -13351,7 +14073,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 685, + "line": 733, "character": 12 } ], @@ -13360,29 +14082,29 @@ "types": [ { "type": "reference", - "id": 785, + "id": 830, "name": "GenerateSignupLinkParams" }, { "type": "reference", - "id": 791, + "id": 836, "name": "GenerateInviteOrMagiclinkParams" }, { "type": "reference", - "id": 796, + "id": 841, "name": "GenerateRecoveryLinkParams" }, { "type": "reference", - "id": 801, + "id": 846, "name": "GenerateEmailChangeLinkParams" } ] } }, { - "id": 824, + "id": 869, "name": "GenerateLinkProperties", "kind": 4194304, "kindString": "Type alias", @@ -13393,21 +14115,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 708, + "line": 756, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 825, + "id": 870, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 826, + "id": 871, "name": "action_link", "kind": 1024, "kindString": "Property", @@ -13418,7 +14140,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 713, + "line": 761, "character": 2 } ], @@ -13428,7 +14150,7 @@ } }, { - "id": 827, + "id": 872, "name": "email_otp", "kind": 1024, "kindString": "Property", @@ -13439,7 +14161,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 718, + "line": 766, "character": 2 } ], @@ -13449,7 +14171,7 @@ } }, { - "id": 828, + "id": 873, "name": "hashed_token", "kind": 1024, "kindString": "Property", @@ -13460,7 +14182,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 722, + "line": 770, "character": 2 } ], @@ -13470,7 +14192,7 @@ } }, { - "id": 829, + "id": 874, "name": "redirect_to", "kind": 1024, "kindString": "Property", @@ -13481,7 +14203,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 724, + "line": 772, "character": 2 } ], @@ -13491,7 +14213,7 @@ } }, { - "id": 830, + "id": 875, "name": "verification_type", "kind": 1024, "kindString": "Property", @@ -13502,13 +14224,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 726, + "line": 774, "character": 2 } ], "type": { "type": "reference", - "id": 831, + "id": 876, "name": "GenerateLinkType" } } @@ -13518,18 +14240,18 @@ "title": "Properties", "kind": 1024, "children": [ - 826, - 827, - 828, - 829, - 830 + 871, + 872, + 873, + 874, + 875 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 708, + "line": 756, "character": 37 } ] @@ -13537,7 +14259,7 @@ } }, { - "id": 811, + "id": 856, "name": "GenerateLinkResponse", "kind": 4194304, "kindString": "Type alias", @@ -13545,7 +14267,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 691, + "line": 739, "character": 12 } ], @@ -13555,14 +14277,14 @@ { "type": "reflection", "declaration": { - "id": 812, + "id": 857, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 813, + "id": 858, "name": "data", "kind": 1024, "kindString": "Property", @@ -13570,21 +14292,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 693, + "line": 741, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 814, + "id": 859, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 815, + "id": 860, "name": "properties", "kind": 1024, "kindString": "Property", @@ -13592,18 +14314,18 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 694, + "line": 742, "character": 8 } ], "type": { "type": "reference", - "id": 824, + "id": 869, "name": "GenerateLinkProperties" } }, { - "id": 816, + "id": 861, "name": "user", "kind": 1024, "kindString": "Property", @@ -13611,13 +14333,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 695, + "line": 743, "character": 8 } ], "type": { "type": "reference", - "id": 616, + "id": 656, "name": "User" } } @@ -13627,15 +14349,15 @@ "title": "Properties", "kind": 1024, "children": [ - 815, - 816 + 860, + 861 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 693, + "line": 741, "character": 12 } ] @@ -13643,7 +14365,7 @@ } }, { - "id": 817, + "id": 862, "name": "error", "kind": 1024, "kindString": "Property", @@ -13651,7 +14373,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 697, + "line": 745, "character": 6 } ], @@ -13666,15 +14388,15 @@ "title": "Properties", "kind": 1024, "children": [ - 813, - 817 + 858, + 862 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 692, + "line": 740, "character": 4 } ] @@ -13683,14 +14405,14 @@ { "type": "reflection", "declaration": { - "id": 818, + "id": 863, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 819, + "id": 864, "name": "data", "kind": 1024, "kindString": "Property", @@ -13698,21 +14420,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 700, + "line": 748, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 820, + "id": 865, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 821, + "id": 866, "name": "properties", "kind": 1024, "kindString": "Property", @@ -13720,7 +14442,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 701, + "line": 749, "character": 8 } ], @@ -13730,7 +14452,7 @@ } }, { - "id": 822, + "id": 867, "name": "user", "kind": 1024, "kindString": "Property", @@ -13738,7 +14460,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 702, + "line": 750, "character": 8 } ], @@ -13753,15 +14475,15 @@ "title": "Properties", "kind": 1024, "children": [ - 821, - 822 + 866, + 867 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 700, + "line": 748, "character": 12 } ] @@ -13769,7 +14491,7 @@ } }, { - "id": 823, + "id": 868, "name": "error", "kind": 1024, "kindString": "Property", @@ -13777,13 +14499,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 704, + "line": 752, "character": 6 } ], "type": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } } @@ -13793,15 +14515,15 @@ "title": "Properties", "kind": 1024, "children": [ - 819, - 823 + 864, + 868 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 699, + "line": 747, "character": 4 } ] @@ -13811,7 +14533,7 @@ } }, { - "id": 831, + "id": 876, "name": "GenerateLinkType", "kind": 4194304, "kindString": "Type alias", @@ -13819,7 +14541,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 729, + "line": 777, "character": 12 } ], @@ -13854,7 +14576,7 @@ } }, { - "id": 796, + "id": 841, "name": "GenerateRecoveryLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -13862,21 +14584,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 656, + "line": 704, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 797, + "id": 842, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 799, + "id": 844, "name": "email", "kind": 1024, "kindString": "Property", @@ -13887,7 +14609,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 659, + "line": 707, "character": 2 } ], @@ -13897,7 +14619,7 @@ } }, { - "id": 800, + "id": 845, "name": "options", "kind": 1024, "kindString": "Property", @@ -13907,7 +14629,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 660, + "line": 708, "character": 2 } ], @@ -13916,7 +14638,7 @@ "typeArguments": [ { "type": "reference", - "id": 807, + "id": 852, "name": "GenerateLinkOptions" }, { @@ -13930,7 +14652,7 @@ } }, { - "id": 798, + "id": 843, "name": "type", "kind": 1024, "kindString": "Property", @@ -13938,7 +14660,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 657, + "line": 705, "character": 2 } ], @@ -13953,16 +14675,16 @@ "title": "Properties", "kind": 1024, "children": [ - 799, - 800, - 798 + 844, + 845, + 843 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 656, + "line": 704, "character": 41 } ] @@ -13970,7 +14692,7 @@ } }, { - "id": 785, + "id": 830, "name": "GenerateSignupLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -13978,21 +14700,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 642, + "line": 690, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 786, + "id": 831, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 788, + "id": 833, "name": "email", "kind": 1024, "kindString": "Property", @@ -14000,7 +14722,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 644, + "line": 692, "character": 2 } ], @@ -14010,7 +14732,7 @@ } }, { - "id": 790, + "id": 835, "name": "options", "kind": 1024, "kindString": "Property", @@ -14020,7 +14742,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 646, + "line": 694, "character": 2 } ], @@ -14029,7 +14751,7 @@ "typeArguments": [ { "type": "reference", - "id": 807, + "id": 852, "name": "GenerateLinkOptions" }, { @@ -14052,7 +14774,7 @@ } }, { - "id": 789, + "id": 834, "name": "password", "kind": 1024, "kindString": "Property", @@ -14060,7 +14782,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 645, + "line": 693, "character": 2 } ], @@ -14070,7 +14792,7 @@ } }, { - "id": 787, + "id": 832, "name": "type", "kind": 1024, "kindString": "Property", @@ -14078,7 +14800,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 643, + "line": 691, "character": 2 } ], @@ -14093,17 +14815,17 @@ "title": "Properties", "kind": 1024, "children": [ - 788, - 790, - 789, - 787 + 833, + 835, + 834, + 832 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 642, + "line": 690, "character": 39 } ] @@ -14111,7 +14833,7 @@ } }, { - "id": 484, + "id": 490, "name": "GoTrueClientOptions", "kind": 4194304, "kindString": "Type alias", @@ -14126,14 +14848,14 @@ "type": { "type": "reflection", "declaration": { - "id": 485, + "id": 491, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 493, + "id": 499, "name": "autoRefreshToken", "kind": 1024, "kindString": "Property", @@ -14153,7 +14875,7 @@ } }, { - "id": 498, + "id": 504, "name": "debug", "kind": 1024, "kindString": "Property", @@ -14177,7 +14899,7 @@ { "type": "reflection", "declaration": { - "id": 499, + "id": 505, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -14191,14 +14913,14 @@ ], "signatures": [ { - "id": 500, + "id": 506, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 501, + "id": 507, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -14209,7 +14931,7 @@ } }, { - "id": 502, + "id": 508, "name": "args", "kind": 32768, "kindString": "Parameter", @@ -14237,7 +14959,7 @@ } }, { - "id": 492, + "id": 498, "name": "detectSessionInUrl", "kind": 1024, "kindString": "Property", @@ -14257,7 +14979,7 @@ } }, { - "id": 496, + "id": 502, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -14277,7 +14999,7 @@ } }, { - "id": 497, + "id": 503, "name": "flowType", "kind": 1024, "kindString": "Property", @@ -14293,12 +15015,12 @@ ], "type": { "type": "reference", - "id": 714, + "id": 759, "name": "AuthFlowType" } }, { - "id": 487, + "id": 493, "name": "headers", "kind": 1024, "kindString": "Property", @@ -14315,7 +15037,7 @@ "type": { "type": "reflection", "declaration": { - "id": 488, + "id": 494, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -14328,14 +15050,14 @@ } ], "indexSignature": { - "id": 489, + "id": 495, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 490, + "id": 496, "name": "key", "kind": 32768, "flags": {}, @@ -14354,7 +15076,7 @@ } }, { - "id": 503, + "id": 509, "name": "lock", "kind": 1024, "kindString": "Property", @@ -14379,12 +15101,12 @@ ], "type": { "type": "reference", - "id": 475, + "id": 481, "name": "LockFunc" } }, { - "id": 494, + "id": 500, "name": "persistSession", "kind": 1024, "kindString": "Property", @@ -14404,7 +15126,7 @@ } }, { - "id": 495, + "id": 501, "name": "storage", "kind": 1024, "kindString": "Property", @@ -14420,12 +15142,12 @@ ], "type": { "type": "reference", - "id": 973, + "id": 1019, "name": "SupportedStorage" } }, { - "id": 491, + "id": 497, "name": "storageKey", "kind": 1024, "kindString": "Property", @@ -14445,7 +15167,7 @@ } }, { - "id": 486, + "id": 492, "name": "url", "kind": 1024, "kindString": "Property", @@ -14470,17 +15192,17 @@ "title": "Properties", "kind": 1024, "children": [ - 493, + 499, + 504, 498, - 492, - 496, - 497, - 487, + 502, 503, - 494, - 495, - 491, - 486 + 493, + 509, + 500, + 501, + 497, + 492 ] } ], @@ -14495,7 +15217,7 @@ } }, { - "id": 974, + "id": 1022, "name": "InitializeResult", "kind": 4194304, "kindString": "Type alias", @@ -14503,21 +15225,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1041, + "line": 1102, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 975, + "id": 1023, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 976, + "id": 1024, "name": "error", "kind": 1024, "kindString": "Property", @@ -14525,7 +15247,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1041, + "line": 1102, "character": 33 } ], @@ -14534,7 +15256,7 @@ "types": [ { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" }, { @@ -14550,14 +15272,14 @@ "title": "Properties", "kind": 1024, "children": [ - 976 + 1024 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 1041, + "line": 1102, "character": 31 } ] @@ -14565,7 +15287,7 @@ } }, { - "id": 475, + "id": 481, "name": "LockFunc", "kind": 4194304, "kindString": "Type alias", @@ -14580,7 +15302,7 @@ "type": { "type": "reflection", "declaration": { - "id": 476, + "id": 482, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -14594,7 +15316,7 @@ ], "signatures": [ { - "id": 477, + "id": 483, "name": "__type", "kind": 4096, "kindString": "Call signature", @@ -14610,7 +15332,7 @@ }, "typeParameter": [ { - "id": 483, + "id": 489, "name": "R", "kind": 131072, "kindString": "Type parameter", @@ -14619,7 +15341,7 @@ ], "parameters": [ { - "id": 478, + "id": 484, "name": "name", "kind": 32768, "kindString": "Parameter", @@ -14633,7 +15355,7 @@ } }, { - "id": 479, + "id": 485, "name": "acquireTimeout", "kind": 32768, "kindString": "Parameter", @@ -14647,7 +15369,7 @@ } }, { - "id": 480, + "id": 486, "name": "fn", "kind": 32768, "kindString": "Parameter", @@ -14658,7 +15380,7 @@ "type": { "type": "reflection", "declaration": { - "id": 481, + "id": 487, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -14672,7 +15394,7 @@ ], "signatures": [ { - "id": 482, + "id": 488, "name": "__type", "kind": 4096, "kindString": "Call signature", @@ -14682,7 +15404,7 @@ "typeArguments": [ { "type": "reference", - "id": 483, + "id": 489, "name": "R" } ], @@ -14701,7 +15423,7 @@ "typeArguments": [ { "type": "reference", - "id": 483, + "id": 489, "name": "R" } ], @@ -14715,7 +15437,7 @@ } }, { - "id": 848, + "id": 893, "name": "MFAChallengeAndVerifyParams", "kind": 4194304, "kindString": "Type alias", @@ -14723,21 +15445,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 767, + "line": 815, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 849, + "id": 894, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 851, + "id": 896, "name": "code", "kind": 1024, "kindString": "Property", @@ -14748,7 +15470,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 771, + "line": 819, "character": 2 } ], @@ -14758,7 +15480,7 @@ } }, { - "id": 850, + "id": 895, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -14769,7 +15491,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 769, + "line": 817, "character": 2 } ], @@ -14784,15 +15506,15 @@ "title": "Properties", "kind": 1024, "children": [ - 851, - 850 + 896, + 895 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 767, + "line": 815, "character": 42 } ] @@ -14800,7 +15522,7 @@ } }, { - "id": 845, + "id": 890, "name": "MFAChallengeParams", "kind": 4194304, "kindString": "Type alias", @@ -14808,21 +15530,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 762, + "line": 810, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 846, + "id": 891, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 847, + "id": 892, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -14833,7 +15555,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 764, + "line": 812, "character": 2 } ], @@ -14848,14 +15570,14 @@ "title": "Properties", "kind": 1024, "children": [ - 847 + 892 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 762, + "line": 810, "character": 33 } ] @@ -14863,7 +15585,7 @@ } }, { - "id": 832, + "id": 877, "name": "MFAEnrollParams", "kind": 4194304, "kindString": "Type alias", @@ -14871,21 +15593,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 737, + "line": 785, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 833, + "id": 878, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 834, + "id": 879, "name": "factorType", "kind": 1024, "kindString": "Property", @@ -14896,7 +15618,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 739, + "line": 787, "character": 2 } ], @@ -14906,7 +15628,7 @@ } }, { - "id": 836, + "id": 881, "name": "friendlyName", "kind": 1024, "kindString": "Property", @@ -14919,7 +15641,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 743, + "line": 791, "character": 2 } ], @@ -14929,7 +15651,7 @@ } }, { - "id": 835, + "id": 880, "name": "issuer", "kind": 1024, "kindString": "Property", @@ -14942,7 +15664,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 741, + "line": 789, "character": 2 } ], @@ -14957,16 +15679,16 @@ "title": "Properties", "kind": 1024, "children": [ - 834, - 836, - 835 + 879, + 881, + 880 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 737, + "line": 785, "character": 30 } ] @@ -14974,7 +15696,7 @@ } }, { - "id": 837, + "id": 882, "name": "MFAUnenrollParams", "kind": 4194304, "kindString": "Type alias", @@ -14982,21 +15704,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 746, + "line": 794, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 838, + "id": 883, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 839, + "id": 884, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -15007,7 +15729,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 748, + "line": 796, "character": 2 } ], @@ -15022,14 +15744,14 @@ "title": "Properties", "kind": 1024, "children": [ - 839 + 884 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 746, + "line": 794, "character": 32 } ] @@ -15037,7 +15759,7 @@ } }, { - "id": 840, + "id": 885, "name": "MFAVerifyParams", "kind": 4194304, "kindString": "Type alias", @@ -15045,21 +15767,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 751, + "line": 799, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 841, + "id": 886, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 843, + "id": 888, "name": "challengeId", "kind": 1024, "kindString": "Property", @@ -15070,7 +15792,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 756, + "line": 804, "character": 2 } ], @@ -15080,7 +15802,7 @@ } }, { - "id": 844, + "id": 889, "name": "code", "kind": 1024, "kindString": "Property", @@ -15091,7 +15813,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 759, + "line": 807, "character": 2 } ], @@ -15101,7 +15823,7 @@ } }, { - "id": 842, + "id": 887, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -15112,7 +15834,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 753, + "line": 801, "character": 2 } ], @@ -15127,16 +15849,16 @@ "title": "Properties", "kind": 1024, "children": [ - 843, - 844, - 842 + 888, + 889, + 887 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 751, + "line": 799, "character": 30 } ] @@ -15144,7 +15866,7 @@ } }, { - "id": 756, + "id": 801, "name": "MobileOtpType", "kind": 4194304, "kindString": "Type alias", @@ -15152,7 +15874,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 595, + "line": 643, "character": 12 } ], @@ -15171,7 +15893,7 @@ } }, { - "id": 545, + "id": 585, "name": "OAuthResponse", "kind": 4194304, "kindString": "Type alias", @@ -15179,7 +15901,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 132, + "line": 173, "character": 12 } ], @@ -15189,14 +15911,14 @@ { "type": "reflection", "declaration": { - "id": 546, + "id": 586, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 547, + "id": 587, "name": "data", "kind": 1024, "kindString": "Property", @@ -15204,21 +15926,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 134, + "line": 175, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 548, + "id": 588, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 549, + "id": 589, "name": "provider", "kind": 1024, "kindString": "Property", @@ -15226,18 +15948,18 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 135, + "line": 176, "character": 8 } ], "type": { "type": "reference", - "id": 472, + "id": 478, "name": "Provider" } }, { - "id": 550, + "id": 590, "name": "url", "kind": 1024, "kindString": "Property", @@ -15245,7 +15967,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 136, + "line": 177, "character": 8 } ], @@ -15260,15 +15982,15 @@ "title": "Properties", "kind": 1024, "children": [ - 549, - 550 + 589, + 590 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 134, + "line": 175, "character": 12 } ] @@ -15276,7 +15998,7 @@ } }, { - "id": 551, + "id": 591, "name": "error", "kind": 1024, "kindString": "Property", @@ -15284,7 +16006,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 138, + "line": 179, "character": 6 } ], @@ -15299,15 +16021,15 @@ "title": "Properties", "kind": 1024, "children": [ - 547, - 551 + 587, + 591 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 133, + "line": 174, "character": 4 } ] @@ -15316,14 +16038,14 @@ { "type": "reflection", "declaration": { - "id": 552, + "id": 592, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 553, + "id": 593, "name": "data", "kind": 1024, "kindString": "Property", @@ -15331,21 +16053,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 141, + "line": 182, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 554, + "id": 594, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 555, + "id": 595, "name": "provider", "kind": 1024, "kindString": "Property", @@ -15353,18 +16075,18 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 142, + "line": 183, "character": 8 } ], "type": { "type": "reference", - "id": 472, + "id": 478, "name": "Provider" } }, { - "id": 556, + "id": 596, "name": "url", "kind": 1024, "kindString": "Property", @@ -15372,7 +16094,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 143, + "line": 184, "character": 8 } ], @@ -15387,15 +16109,15 @@ "title": "Properties", "kind": 1024, "children": [ - 555, - 556 + 595, + 596 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 141, + "line": 182, "character": 12 } ] @@ -15403,7 +16125,7 @@ } }, { - "id": 557, + "id": 597, "name": "error", "kind": 1024, "kindString": "Property", @@ -15411,13 +16133,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 145, + "line": 186, "character": 6 } ], "type": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } } @@ -15427,15 +16149,15 @@ "title": "Properties", "kind": 1024, "children": [ - 553, - 557 + 593, + 597 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 140, + "line": 181, "character": 4 } ] @@ -15445,7 +16167,7 @@ } }, { - "id": 991, + "id": 1039, "name": "PageParams", "kind": 4194304, "kindString": "Type alias", @@ -15453,21 +16175,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1060, + "line": 1121, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 992, + "id": 1040, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 993, + "id": 1041, "name": "page", "kind": 1024, "kindString": "Property", @@ -15480,7 +16202,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1062, + "line": 1123, "character": 2 } ], @@ -15490,7 +16212,7 @@ } }, { - "id": 994, + "id": 1042, "name": "perPage", "kind": 1024, "kindString": "Property", @@ -15503,7 +16225,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1064, + "line": 1125, "character": 2 } ], @@ -15518,15 +16240,15 @@ "title": "Properties", "kind": 1024, "children": [ - 993, - 994 + 1041, + 1042 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 1060, + "line": 1121, "character": 25 } ] @@ -15534,7 +16256,7 @@ } }, { - "id": 984, + "id": 1032, "name": "Pagination", "kind": 4194304, "kindString": "Type alias", @@ -15542,21 +16264,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1053, + "line": 1114, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 985, + "id": 1033, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 987, + "id": 1035, "name": "lastPage", "kind": 1024, "kindString": "Property", @@ -15564,7 +16286,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1056, + "line": 1117, "character": 2 } ], @@ -15574,7 +16296,7 @@ } }, { - "id": 986, + "id": 1034, "name": "nextPage", "kind": 1024, "kindString": "Property", @@ -15582,7 +16304,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1055, + "line": 1116, "character": 2 } ], @@ -15601,7 +16323,7 @@ } }, { - "id": 988, + "id": 1036, "name": "total", "kind": 1024, "kindString": "Property", @@ -15609,7 +16331,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1057, + "line": 1118, "character": 2 } ], @@ -15624,28 +16346,28 @@ "title": "Properties", "kind": 1024, "children": [ - 987, - 986, - 988 + 1035, + 1034, + 1036 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 1053, + "line": 1114, "character": 25 } ], "indexSignature": { - "id": 989, + "id": 1037, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 990, + "id": 1038, "name": "key", "kind": 32768, "flags": {}, @@ -15664,7 +16386,7 @@ } }, { - "id": 472, + "id": 478, "name": "Provider", "kind": 4194304, "kindString": "Type alias", @@ -15770,7 +16492,7 @@ } }, { - "id": 758, + "id": 803, "name": "ResendParams", "kind": 4194304, "kindString": "Type alias", @@ -15778,7 +16500,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 598, + "line": 646, "character": 12 } ], @@ -15788,14 +16510,14 @@ { "type": "reflection", "declaration": { - "id": 759, + "id": 804, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 761, + "id": 806, "name": "email", "kind": 1024, "kindString": "Property", @@ -15803,7 +16525,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 601, + "line": 649, "character": 6 } ], @@ -15813,7 +16535,7 @@ } }, { - "id": 762, + "id": 807, "name": "options", "kind": 1024, "kindString": "Property", @@ -15823,21 +16545,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 602, + "line": 650, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 763, + "id": 808, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 765, + "id": 810, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -15850,7 +16572,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 606, + "line": 654, "character": 8 } ], @@ -15860,7 +16582,7 @@ } }, { - "id": 764, + "id": 809, "name": "emailRedirectTo", "kind": 1024, "kindString": "Property", @@ -15873,7 +16595,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 604, + "line": 652, "character": 8 } ], @@ -15888,15 +16610,15 @@ "title": "Properties", "kind": 1024, "children": [ - 765, - 764 + 810, + 809 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 602, + "line": 650, "character": 16 } ] @@ -15904,7 +16626,7 @@ } }, { - "id": 760, + "id": 805, "name": "type", "kind": 1024, "kindString": "Property", @@ -15912,7 +16634,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 600, + "line": 648, "character": 6 } ], @@ -15921,7 +16643,7 @@ "typeArguments": [ { "type": "reference", - "id": 757, + "id": 802, "name": "EmailOtpType" }, { @@ -15949,16 +16671,16 @@ "title": "Properties", "kind": 1024, "children": [ - 761, - 762, - 760 + 806, + 807, + 805 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 599, + "line": 647, "character": 4 } ] @@ -15967,14 +16689,14 @@ { "type": "reflection", "declaration": { - "id": 766, + "id": 811, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 769, + "id": 814, "name": "options", "kind": 1024, "kindString": "Property", @@ -15984,21 +16706,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 612, + "line": 660, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 770, + "id": 815, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 771, + "id": 816, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -16011,7 +16733,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 614, + "line": 662, "character": 8 } ], @@ -16026,14 +16748,14 @@ "title": "Properties", "kind": 1024, "children": [ - 771 + 816 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 612, + "line": 660, "character": 16 } ] @@ -16041,7 +16763,7 @@ } }, { - "id": 768, + "id": 813, "name": "phone", "kind": 1024, "kindString": "Property", @@ -16049,7 +16771,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 611, + "line": 659, "character": 6 } ], @@ -16059,7 +16781,7 @@ } }, { - "id": 767, + "id": 812, "name": "type", "kind": 1024, "kindString": "Property", @@ -16067,7 +16789,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 610, + "line": 658, "character": 6 } ], @@ -16076,7 +16798,7 @@ "typeArguments": [ { "type": "reference", - "id": 756, + "id": 801, "name": "MobileOtpType" }, { @@ -16104,16 +16826,16 @@ "title": "Properties", "kind": 1024, "children": [ - 769, - 768, - 767 + 814, + 813, + 812 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 609, + "line": 657, "character": 4 } ] @@ -16123,7 +16845,7 @@ } }, { - "id": 558, + "id": 598, "name": "SSOResponse", "kind": 4194304, "kindString": "Type alias", @@ -16131,7 +16853,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 148, + "line": 189, "character": 12 } ], @@ -16141,14 +16863,14 @@ { "type": "reflection", "declaration": { - "id": 559, + "id": 599, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 560, + "id": 600, "name": "data", "kind": 1024, "kindString": "Property", @@ -16156,21 +16878,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 150, + "line": 191, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 561, + "id": 601, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 562, + "id": 602, "name": "url", "kind": 1024, "kindString": "Property", @@ -16182,7 +16904,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 158, + "line": 199, "character": 8 } ], @@ -16197,14 +16919,14 @@ "title": "Properties", "kind": 1024, "children": [ - 562 + 602 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 150, + "line": 191, "character": 12 } ] @@ -16212,7 +16934,7 @@ } }, { - "id": 563, + "id": 603, "name": "error", "kind": 1024, "kindString": "Property", @@ -16220,7 +16942,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 160, + "line": 201, "character": 6 } ], @@ -16235,15 +16957,15 @@ "title": "Properties", "kind": 1024, "children": [ - 560, - 563 + 600, + 603 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 149, + "line": 190, "character": 4 } ] @@ -16252,14 +16974,14 @@ { "type": "reflection", "declaration": { - "id": 564, + "id": 604, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 565, + "id": 605, "name": "data", "kind": 1024, "kindString": "Property", @@ -16267,7 +16989,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 163, + "line": 204, "character": 6 } ], @@ -16277,7 +16999,7 @@ } }, { - "id": 566, + "id": 606, "name": "error", "kind": 1024, "kindString": "Property", @@ -16285,13 +17007,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 164, + "line": 205, "character": 6 } ], "type": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } } @@ -16301,15 +17023,15 @@ "title": "Properties", "kind": 1024, "children": [ - 565, - 566 + 605, + 606 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 162, + "line": 203, "character": 4 } ] @@ -16319,75 +17041,29 @@ } }, { - "id": 727, - "name": "SignInWithIdTokenCredentials", + "id": 706, + "name": "SignInAnonymouslyCredentials", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/lib/types.ts", - "line": 533, + "line": 455, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 728, + "id": 707, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 731, - "name": "access_token", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "If the ID token contains an `at_hash` claim, then the hash of this value is compared to the value in the ID token." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 539, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 732, - "name": "nonce", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "If the ID token contains a `nonce` claim, then the hash of this value is compared to the value in the ID token." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 541, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 733, + "id": 708, "name": "options", "kind": 1024, "kindString": "Property", @@ -16397,21 +17073,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 542, + "line": 456, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 734, + "id": 709, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 735, + "id": 711, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -16424,7 +17100,187 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 544, + "line": 464, + "character": 4 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 710, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.", + "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n" + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 462, + "character": 4 + } + ], + "type": { + "type": "intrinsic", + "name": "object" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 711, + 710 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 456, + "character": 12 + } + ] + } + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 708 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 455, + "character": 43 + } + ] + } + } + }, + { + "id": 772, + "name": "SignInWithIdTokenCredentials", + "kind": 4194304, + "kindString": "Type alias", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 581, + "character": 12 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 773, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 776, + "name": "access_token", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "If the ID token contains an `at_hash` claim, then the hash of this value is compared to the value in the ID token." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 587, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 777, + "name": "nonce", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "If the ID token contains a `nonce` claim, then the hash of this value is compared to the value in the ID token." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 589, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 778, + "name": "options", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 590, + "character": 2 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 779, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 780, + "name": "captchaToken", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "Verification token received when the user completes the captcha on the site." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 592, "character": 4 } ], @@ -16439,14 +17295,14 @@ "title": "Properties", "kind": 1024, "children": [ - 735 + 780 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 542, + "line": 590, "character": 12 } ] @@ -16454,7 +17310,7 @@ } }, { - "id": 729, + "id": 774, "name": "provider", "kind": 1024, "kindString": "Property", @@ -16465,7 +17321,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 535, + "line": 583, "character": 2 } ], @@ -16496,7 +17352,7 @@ } }, { - "id": 730, + "id": 775, "name": "token", "kind": 1024, "kindString": "Property", @@ -16507,7 +17363,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 537, + "line": 585, "character": 2 } ], @@ -16522,18 +17378,18 @@ "title": "Properties", "kind": 1024, "children": [ - 731, - 732, - 733, - 729, - 730 + 776, + 777, + 778, + 774, + 775 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 533, + "line": 581, "character": 43 } ] @@ -16541,7 +17397,7 @@ } }, { - "id": 715, + "id": 760, "name": "SignInWithOAuthCredentials", "kind": 4194304, "kindString": "Type alias", @@ -16549,21 +17405,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 518, + "line": 566, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 716, + "id": 761, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 718, + "id": 763, "name": "options", "kind": 1024, "kindString": "Property", @@ -16573,21 +17429,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 521, + "line": 569, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 719, + "id": 764, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 722, + "id": 767, "name": "queryParams", "kind": 1024, "kindString": "Property", @@ -16600,14 +17456,14 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 527, + "line": 575, "character": 4 } ], "type": { "type": "reflection", "declaration": { - "id": 723, + "id": 768, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -16615,19 +17471,19 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 527, + "line": 575, "character": 18 } ], "indexSignature": { - "id": 724, + "id": 769, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 725, + "id": 770, "name": "key", "kind": 32768, "flags": {}, @@ -16646,7 +17502,7 @@ } }, { - "id": 720, + "id": 765, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -16659,7 +17515,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 523, + "line": 571, "character": 4 } ], @@ -16669,7 +17525,7 @@ } }, { - "id": 721, + "id": 766, "name": "scopes", "kind": 1024, "kindString": "Property", @@ -16682,7 +17538,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 525, + "line": 573, "character": 4 } ], @@ -16692,7 +17548,7 @@ } }, { - "id": 726, + "id": 771, "name": "skipBrowserRedirect", "kind": 1024, "kindString": "Property", @@ -16705,7 +17561,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 529, + "line": 577, "character": 4 } ], @@ -16720,17 +17576,17 @@ "title": "Properties", "kind": 1024, "children": [ - 722, - 720, - 721, - 726 + 767, + 765, + 766, + 771 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 521, + "line": 569, "character": 12 } ] @@ -16738,7 +17594,7 @@ } }, { - "id": 717, + "id": 762, "name": "provider", "kind": 1024, "kindString": "Property", @@ -16749,13 +17605,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 520, + "line": 568, "character": 2 } ], "type": { "type": "reference", - "id": 472, + "id": 478, "name": "Provider" } } @@ -16765,15 +17621,15 @@ "title": "Properties", "kind": 1024, "children": [ - 718, - 717 + 763, + 762 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 518, + "line": 566, "character": 41 } ] @@ -16781,7 +17637,7 @@ } }, { - "id": 683, + "id": 729, "name": "SignInWithPasswordCredentials", "kind": 4194304, "kindString": "Type alias", @@ -16789,7 +17645,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 451, + "line": 505, "character": 12 } ], @@ -16799,14 +17655,14 @@ { "type": "reflection", "declaration": { - "id": 684, + "id": 730, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 685, + "id": 731, "name": "email", "kind": 1024, "kindString": "Property", @@ -16817,7 +17673,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 454, + "line": 508, "character": 6 } ], @@ -16827,7 +17683,7 @@ } }, { - "id": 687, + "id": 733, "name": "options", "kind": 1024, "kindString": "Property", @@ -16837,21 +17693,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 457, + "line": 511, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 688, + "id": 734, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 689, + "id": 735, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -16864,7 +17720,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 459, + "line": 513, "character": 8 } ], @@ -16879,14 +17735,14 @@ "title": "Properties", "kind": 1024, "children": [ - 689 + 735 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 457, + "line": 511, "character": 16 } ] @@ -16894,7 +17750,7 @@ } }, { - "id": 686, + "id": 732, "name": "password", "kind": 1024, "kindString": "Property", @@ -16905,7 +17761,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 456, + "line": 510, "character": 6 } ], @@ -16920,16 +17776,16 @@ "title": "Properties", "kind": 1024, "children": [ - 685, - 687, - 686 + 731, + 733, + 732 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 452, + "line": 506, "character": 4 } ] @@ -16938,14 +17794,14 @@ { "type": "reflection", "declaration": { - "id": 690, + "id": 736, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 693, + "id": 739, "name": "options", "kind": 1024, "kindString": "Property", @@ -16955,21 +17811,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 467, + "line": 521, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 694, + "id": 740, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 696, + "id": 741, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -16982,7 +17838,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 475, + "line": 523, "character": 8 } ], @@ -16990,30 +17846,6 @@ "type": "intrinsic", "name": "string" } - }, - { - "id": 695, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", - "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n" - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 473, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "object" - } } ], "groups": [ @@ -17021,15 +17853,14 @@ "title": "Properties", "kind": 1024, "children": [ - 696, - 695 + 741 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 467, + "line": 521, "character": 16 } ] @@ -17037,7 +17868,7 @@ } }, { - "id": 692, + "id": 738, "name": "password", "kind": 1024, "kindString": "Property", @@ -17048,7 +17879,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 466, + "line": 520, "character": 6 } ], @@ -17058,7 +17889,7 @@ } }, { - "id": 691, + "id": 737, "name": "phone", "kind": 1024, "kindString": "Property", @@ -17069,7 +17900,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 464, + "line": 518, "character": 6 } ], @@ -17084,16 +17915,16 @@ "title": "Properties", "kind": 1024, "children": [ - 693, - 692, - 691 + 739, + 738, + 737 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 462, + "line": 516, "character": 4 } ] @@ -17103,7 +17934,7 @@ } }, { - "id": 697, + "id": 742, "name": "SignInWithPasswordlessCredentials", "kind": 4194304, "kindString": "Type alias", @@ -17111,7 +17942,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 479, + "line": 527, "character": 12 } ], @@ -17121,14 +17952,14 @@ { "type": "reflection", "declaration": { - "id": 698, + "id": 743, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 699, + "id": 744, "name": "email", "kind": 1024, "kindString": "Property", @@ -17139,7 +17970,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 482, + "line": 530, "character": 6 } ], @@ -17149,7 +17980,7 @@ } }, { - "id": 700, + "id": 745, "name": "options", "kind": 1024, "kindString": "Property", @@ -17159,21 +17990,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 483, + "line": 531, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 701, + "id": 746, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 705, + "id": 750, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -17186,7 +18017,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 495, + "line": 543, "character": 8 } ], @@ -17196,7 +18027,7 @@ } }, { - "id": 704, + "id": 749, "name": "data", "kind": 1024, "kindString": "Property", @@ -17204,13 +18035,13 @@ "isOptional": true }, "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", + "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.", "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n" }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 493, + "line": 541, "character": 8 } ], @@ -17220,7 +18051,7 @@ } }, { - "id": 702, + "id": 747, "name": "emailRedirectTo", "kind": 1024, "kindString": "Property", @@ -17233,7 +18064,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 485, + "line": 533, "character": 8 } ], @@ -17243,7 +18074,7 @@ } }, { - "id": 703, + "id": 748, "name": "shouldCreateUser", "kind": 1024, "kindString": "Property", @@ -17256,7 +18087,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 487, + "line": 535, "character": 8 } ], @@ -17271,17 +18102,17 @@ "title": "Properties", "kind": 1024, "children": [ - 705, - 704, - 702, - 703 + 750, + 749, + 747, + 748 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 483, + "line": 531, "character": 16 } ] @@ -17294,15 +18125,15 @@ "title": "Properties", "kind": 1024, "children": [ - 699, - 700 + 744, + 745 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 480, + "line": 528, "character": 4 } ] @@ -17311,14 +18142,14 @@ { "type": "reflection", "declaration": { - "id": 706, + "id": 751, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 708, + "id": 753, "name": "options", "kind": 1024, "kindString": "Property", @@ -17328,21 +18159,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 501, + "line": 549, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 709, + "id": 754, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 712, + "id": 757, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -17355,7 +18186,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 511, + "line": 559, "character": 8 } ], @@ -17365,7 +18196,7 @@ } }, { - "id": 713, + "id": 758, "name": "channel", "kind": 1024, "kindString": "Property", @@ -17378,7 +18209,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 513, + "line": 561, "character": 8 } ], @@ -17397,7 +18228,7 @@ } }, { - "id": 711, + "id": 756, "name": "data", "kind": 1024, "kindString": "Property", @@ -17405,13 +18236,13 @@ "isOptional": true }, "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", + "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.", "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n" }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 509, + "line": 557, "character": 8 } ], @@ -17421,7 +18252,7 @@ } }, { - "id": 710, + "id": 755, "name": "shouldCreateUser", "kind": 1024, "kindString": "Property", @@ -17434,7 +18265,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 503, + "line": 551, "character": 8 } ], @@ -17449,17 +18280,17 @@ "title": "Properties", "kind": 1024, "children": [ - 712, - 713, - 711, - 710 + 757, + 758, + 756, + 755 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 501, + "line": 549, "character": 16 } ] @@ -17467,7 +18298,7 @@ } }, { - "id": 707, + "id": 752, "name": "phone", "kind": 1024, "kindString": "Property", @@ -17478,7 +18309,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 500, + "line": 548, "character": 6 } ], @@ -17493,15 +18324,15 @@ "title": "Properties", "kind": 1024, "children": [ - 708, - 707 + 753, + 752 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 498, + "line": 546, "character": 4 } ] @@ -17511,7 +18342,7 @@ } }, { - "id": 772, + "id": 817, "name": "SignInWithSSO", "kind": 4194304, "kindString": "Type alias", @@ -17519,7 +18350,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 618, + "line": 666, "character": 12 } ], @@ -17529,14 +18360,14 @@ { "type": "reflection", "declaration": { - "id": 773, + "id": 818, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 775, + "id": 820, "name": "options", "kind": 1024, "kindString": "Property", @@ -17546,21 +18377,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 623, + "line": 671, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 776, + "id": 821, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 778, + "id": 823, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -17573,7 +18404,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 627, + "line": 675, "character": 8 } ], @@ -17583,7 +18414,7 @@ } }, { - "id": 777, + "id": 822, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -17596,7 +18427,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 625, + "line": 673, "character": 8 } ], @@ -17611,15 +18442,15 @@ "title": "Properties", "kind": 1024, "children": [ - 778, - 777 + 823, + 822 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 623, + "line": 671, "character": 16 } ] @@ -17627,7 +18458,7 @@ } }, { - "id": 774, + "id": 819, "name": "providerId", "kind": 1024, "kindString": "Property", @@ -17638,7 +18469,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 621, + "line": 669, "character": 6 } ], @@ -17653,15 +18484,15 @@ "title": "Properties", "kind": 1024, "children": [ - 775, - 774 + 820, + 819 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 619, + "line": 667, "character": 4 } ] @@ -17670,14 +18501,14 @@ { "type": "reflection", "declaration": { - "id": 779, + "id": 824, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 780, + "id": 825, "name": "domain", "kind": 1024, "kindString": "Property", @@ -17688,7 +18519,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 632, + "line": 680, "character": 6 } ], @@ -17698,7 +18529,7 @@ } }, { - "id": 781, + "id": 826, "name": "options", "kind": 1024, "kindString": "Property", @@ -17708,21 +18539,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 634, + "line": 682, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 782, + "id": 827, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 784, + "id": 829, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -17735,7 +18566,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 638, + "line": 686, "character": 8 } ], @@ -17745,7 +18576,7 @@ } }, { - "id": 783, + "id": 828, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -17758,7 +18589,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 636, + "line": 684, "character": 8 } ], @@ -17773,15 +18604,15 @@ "title": "Properties", "kind": 1024, "children": [ - 784, - 783 + 829, + 828 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 634, + "line": 682, "character": 16 } ] @@ -17794,15 +18625,15 @@ "title": "Properties", "kind": 1024, "children": [ - 780, - 781 + 825, + 826 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 630, + "line": 678, "character": 4 } ] @@ -17812,7 +18643,7 @@ } }, { - "id": 995, + "id": 1043, "name": "SignOut", "kind": 4194304, "kindString": "Type alias", @@ -17820,21 +18651,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1067, + "line": 1128, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 996, + "id": 1044, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 997, + "id": 1045, "name": "scope", "kind": 1024, "kindString": "Property", @@ -17847,7 +18678,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1078, + "line": 1139, "character": 2 } ], @@ -17875,14 +18706,14 @@ "title": "Properties", "kind": 1024, "children": [ - 997 + 1045 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 1067, + "line": 1128, "character": 22 } ] @@ -17890,7 +18721,7 @@ } }, { - "id": 666, + "id": 712, "name": "SignUpWithPasswordCredentials", "kind": 4194304, "kindString": "Type alias", @@ -17898,7 +18729,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 414, + "line": 468, "character": 12 } ], @@ -17908,14 +18739,14 @@ { "type": "reflection", "declaration": { - "id": 667, + "id": 713, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 668, + "id": 714, "name": "email", "kind": 1024, "kindString": "Property", @@ -17926,7 +18757,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 417, + "line": 471, "character": 6 } ], @@ -17936,7 +18767,7 @@ } }, { - "id": 670, + "id": 716, "name": "options", "kind": 1024, "kindString": "Property", @@ -17946,21 +18777,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 420, + "line": 474, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 671, + "id": 717, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 674, + "id": 720, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -17973,7 +18804,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 430, + "line": 484, "character": 8 } ], @@ -17983,7 +18814,7 @@ } }, { - "id": 673, + "id": 719, "name": "data", "kind": 1024, "kindString": "Property", @@ -17991,13 +18822,13 @@ "isOptional": true }, "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", + "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.", "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n" }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 428, + "line": 482, "character": 8 } ], @@ -18007,7 +18838,7 @@ } }, { - "id": 672, + "id": 718, "name": "emailRedirectTo", "kind": 1024, "kindString": "Property", @@ -18020,7 +18851,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 422, + "line": 476, "character": 8 } ], @@ -18035,16 +18866,16 @@ "title": "Properties", "kind": 1024, "children": [ - 674, - 673, - 672 + 720, + 719, + 718 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 420, + "line": 474, "character": 16 } ] @@ -18052,7 +18883,7 @@ } }, { - "id": 669, + "id": 715, "name": "password", "kind": 1024, "kindString": "Property", @@ -18063,7 +18894,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 419, + "line": 473, "character": 6 } ], @@ -18078,16 +18909,16 @@ "title": "Properties", "kind": 1024, "children": [ - 668, - 670, - 669 + 714, + 716, + 715 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 415, + "line": 469, "character": 4 } ] @@ -18096,14 +18927,14 @@ { "type": "reflection", "declaration": { - "id": 675, + "id": 721, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 678, + "id": 724, "name": "options", "kind": 1024, "kindString": "Property", @@ -18113,21 +18944,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 438, + "line": 492, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 679, + "id": 725, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 681, + "id": 727, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -18140,7 +18971,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 446, + "line": 500, "character": 8 } ], @@ -18150,7 +18981,7 @@ } }, { - "id": 682, + "id": 728, "name": "channel", "kind": 1024, "kindString": "Property", @@ -18163,7 +18994,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 448, + "line": 502, "character": 8 } ], @@ -18182,7 +19013,7 @@ } }, { - "id": 680, + "id": 726, "name": "data", "kind": 1024, "kindString": "Property", @@ -18190,13 +19021,13 @@ "isOptional": true }, "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", + "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.", "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n" }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 444, + "line": 498, "character": 8 } ], @@ -18211,16 +19042,16 @@ "title": "Properties", "kind": 1024, "children": [ - 681, - 682, - 680 + 727, + 728, + 726 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 438, + "line": 492, "character": 16 } ] @@ -18228,7 +19059,7 @@ } }, { - "id": 677, + "id": 723, "name": "password", "kind": 1024, "kindString": "Property", @@ -18239,7 +19070,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 437, + "line": 491, "character": 6 } ], @@ -18249,7 +19080,7 @@ } }, { - "id": 676, + "id": 722, "name": "phone", "kind": 1024, "kindString": "Property", @@ -18260,7 +19091,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 435, + "line": 489, "character": 6 } ], @@ -18275,16 +19106,16 @@ "title": "Properties", "kind": 1024, "children": [ - 678, - 677, - 676 + 724, + 723, + 722 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 433, + "line": 487, "character": 4 } ] @@ -18294,7 +19125,7 @@ } }, { - "id": 973, + "id": 1019, "name": "SupportedStorage", "kind": 4194304, "kindString": "Type alias", @@ -18302,50 +19133,106 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1039, + "line": 1089, "character": 12 } ], "type": { - "type": "reference", - "typeArguments": [ + "type": "intersection", + "types": [ { "type": "reference", "typeArguments": [ { "type": "reference", - "qualifiedName": "Storage", - "package": "typescript", - "name": "Storage" - }, - { - "type": "union", - "types": [ + "typeArguments": [ { - "type": "literal", - "value": "getItem" + "type": "reference", + "qualifiedName": "Storage", + "package": "typescript", + "name": "Storage" }, { - "type": "literal", - "value": "setItem" - }, - { - "type": "literal", - "value": "removeItem" + "type": "union", + "types": [ + { + "type": "literal", + "value": "getItem" + }, + { + "type": "literal", + "value": "setItem" + }, + { + "type": "literal", + "value": "removeItem" + } + ] } - ] + ], + "qualifiedName": "Pick", + "package": "typescript", + "name": "Pick" } ], - "qualifiedName": "Pick", - "package": "typescript", - "name": "Pick" + "name": "PromisifyMethods" + }, + { + "type": "reflection", + "declaration": { + "id": 1020, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 1021, + "name": "isServer", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "If set to `true` signals to the library that the storage medium is used\non a server and the values may not be authentic, such as reading from\nrequest cookies. Implementations should not set this to true if the client\nis used on a server that reads storage information from authenticated\nsources, such as a secure database or file." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1099, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 1021 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1091, + "character": 4 + } + ] + } } - ], - "name": "PromisifyMethods" + ] } }, { - "id": 567, + "id": 607, "name": "UserResponse", "kind": 4194304, "kindString": "Type alias", @@ -18353,7 +19240,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 167, + "line": 208, "character": 12 } ], @@ -18363,14 +19250,14 @@ { "type": "reflection", "declaration": { - "id": 568, + "id": 608, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 569, + "id": 609, "name": "data", "kind": 1024, "kindString": "Property", @@ -18378,21 +19265,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 169, + "line": 210, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 570, + "id": 610, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 571, + "id": 611, "name": "user", "kind": 1024, "kindString": "Property", @@ -18400,13 +19287,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 170, + "line": 211, "character": 8 } ], "type": { "type": "reference", - "id": 616, + "id": 656, "name": "User" } } @@ -18416,14 +19303,14 @@ "title": "Properties", "kind": 1024, "children": [ - 571 + 611 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 169, + "line": 210, "character": 12 } ] @@ -18431,7 +19318,7 @@ } }, { - "id": 572, + "id": 612, "name": "error", "kind": 1024, "kindString": "Property", @@ -18439,7 +19326,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 172, + "line": 213, "character": 6 } ], @@ -18454,15 +19341,15 @@ "title": "Properties", "kind": 1024, "children": [ - 569, - 572 + 609, + 612 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 168, + "line": 209, "character": 4 } ] @@ -18471,14 +19358,14 @@ { "type": "reflection", "declaration": { - "id": 573, + "id": 613, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 574, + "id": 614, "name": "data", "kind": 1024, "kindString": "Property", @@ -18486,21 +19373,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 175, + "line": 216, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 575, + "id": 615, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 576, + "id": 616, "name": "user", "kind": 1024, "kindString": "Property", @@ -18508,7 +19395,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 176, + "line": 217, "character": 8 } ], @@ -18523,14 +19410,14 @@ "title": "Properties", "kind": 1024, "children": [ - 576 + 616 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 175, + "line": 216, "character": 12 } ] @@ -18538,7 +19425,7 @@ } }, { - "id": 577, + "id": 617, "name": "error", "kind": 1024, "kindString": "Property", @@ -18546,13 +19433,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 178, + "line": 219, "character": 6 } ], "type": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } } @@ -18562,15 +19449,15 @@ "title": "Properties", "kind": 1024, "children": [ - 574, - 577 + 614, + 617 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 174, + "line": 215, "character": 4 } ] @@ -18580,7 +19467,7 @@ } }, { - "id": 736, + "id": 781, "name": "VerifyOtpParams", "kind": 4194304, "kindString": "Type alias", @@ -18588,7 +19475,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 548, + "line": 596, "character": 12 } ], @@ -18597,24 +19484,192 @@ "types": [ { "type": "reference", - "id": 737, + "id": 782, "name": "VerifyMobileOtpParams" }, { "type": "reference", - "id": 745, + "id": 790, "name": "VerifyEmailOtpParams" }, { "type": "reference", - "id": 753, + "id": 798, "name": "VerifyTokenHashParams" } ] } }, { - "id": 469, + "id": 511, + "name": "WeakPassword", + "kind": 4194304, + "kindString": "Type alias", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 86, + "character": 12 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 512, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 514, + "name": "message", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 88, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 513, + "name": "reasons", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 87, + "character": 2 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "id": 510, + "name": "WeakPasswordReasons" + } + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 514, + 513 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 86, + "character": 27 + } + ] + } + } + }, + { + "id": 510, + "name": "WeakPasswordReasons", + "kind": 4194304, + "kindString": "Type alias", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 85, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "length" + }, + { + "type": "literal", + "value": "characters" + }, + { + "type": "literal", + "value": "pwned" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 460, + "name": "AuthAdminApi", + "kind": 32, + "kindString": "Variable", + "flags": { + "isConst": true + }, + "sources": [ + { + "fileName": "src/AuthAdminApi.ts", + "line": 3, + "character": 6 + } + ], + "type": { + "type": "query", + "queryType": { + "type": "reference", + "id": 1, + "name": "default" + } + }, + "defaultValue": "GoTrueAdminApi" + }, + { + "id": 461, + "name": "AuthClient", + "kind": 32, + "kindString": "Variable", + "flags": { + "isConst": true + }, + "sources": [ + { + "fileName": "src/AuthClient.ts", + "line": 3, + "character": 6 + } + ], + "type": { + "type": "query", + "queryType": { + "type": "reference", + "id": 78, + "name": "default" + } + }, + "defaultValue": "GoTrueClient" + }, + { + "id": 475, "name": "lockInternals", "kind": 32, "kindString": "Variable", @@ -18639,14 +19694,14 @@ "type": { "type": "reflection", "declaration": { - "id": 470, + "id": 476, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 471, + "id": 477, "name": "debug", "kind": 1024, "kindString": "Property", @@ -18678,7 +19733,7 @@ "title": "Properties", "kind": 1024, "children": [ - 471 + 477 ] } ] @@ -18687,7 +19742,7 @@ "defaultValue": "..." }, { - "id": 1001, + "id": 1049, "name": "isAuthApiError", "kind": 64, "kindString": "Function", @@ -18695,20 +19750,20 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 34, + "line": 36, "character": 16 } ], "signatures": [ { - "id": 1002, + "id": 1050, "name": "isAuthApiError", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 1003, + "id": 1051, "name": "error", "kind": 32768, "kindString": "Parameter", @@ -18725,7 +19780,7 @@ "asserts": false, "targetType": { "type": "reference", - "id": 1017, + "id": 1065, "name": "AuthApiError" } } @@ -18733,7 +19788,7 @@ ] }, { - "id": 998, + "id": 1046, "name": "isAuthError", "kind": 64, "kindString": "Function", @@ -18741,20 +19796,20 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 12, + "line": 14, "character": 16 } ], "signatures": [ { - "id": 999, + "id": 1047, "name": "isAuthError", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 1000, + "id": 1048, "name": "error", "kind": 32768, "kindString": "Parameter", @@ -18771,7 +19826,7 @@ "asserts": false, "targetType": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } } @@ -18779,7 +19834,7 @@ ] }, { - "id": 1004, + "id": 1052, "name": "isAuthRetryableFetchError", "kind": 64, "kindString": "Function", @@ -18787,20 +19842,20 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 124, + "line": 126, "character": 16 } ], "signatures": [ { - "id": 1005, + "id": 1053, "name": "isAuthRetryableFetchError", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 1006, + "id": 1054, "name": "error", "kind": 32768, "kindString": "Parameter", @@ -18817,7 +19872,7 @@ "asserts": false, "targetType": { "type": "reference", - "id": 1140, + "id": 1188, "name": "AuthRetryableFetchError" } } @@ -18825,7 +19880,7 @@ ] }, { - "id": 1007, + "id": 1055, "name": "isAuthWeakPasswordError", "kind": 64, "kindString": "Function", @@ -18833,20 +19888,20 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 146, + "line": 148, "character": 16 } ], "signatures": [ { - "id": 1008, + "id": 1056, "name": "isAuthWeakPasswordError", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 1009, + "id": 1057, "name": "error", "kind": 32768, "kindString": "Parameter", @@ -18863,7 +19918,7 @@ "asserts": false, "targetType": { "type": "reference", - "id": 1154, + "id": 1202, "name": "AuthWeakPasswordError" } } @@ -18871,7 +19926,7 @@ ] }, { - "id": 456, + "id": 462, "name": "navigatorLock", "kind": 64, "kindString": "Function", @@ -18879,30 +19934,24 @@ "sources": [ { "fileName": "src/lib/locks.ts", - "line": 55, + "line": 58, "character": 22 } ], "signatures": [ { - "id": 457, + "id": 463, "name": "navigatorLock", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { "shortText": "Implements a global exclusive lock using the Navigator LockManager API. It\nis available on all browsers released after 2022-03-15 with Safari being the\nlast one to release support. If the API is not available, this function will\nthrow. Make sure you check availablility before configuring {@link\nGoTrueClient}.", - "text": "You can turn on debugging by setting the `supabase.gotrue-js.locks.debug`\nlocal storage item to `true`.\n\nInternals:\n\nSince the LockManager API does not preserve stack traces for the async\nfunction passed in the `request` method, a trick is used where acquiring the\nlock releases a previously started promise to run the operation in the `fn`\nfunction. The lock waits for that promise to finish (with or without error),\nwhile the function will finally wait for the result anyway.\n", - "tags": [ - { - "tag": "experimental", - "text": "\n" - } - ] + "text": "You can turn on debugging by setting the `supabase.gotrue-js.locks.debug`\nlocal storage item to `true`.\n\nInternals:\n\nSince the LockManager API does not preserve stack traces for the async\nfunction passed in the `request` method, a trick is used where acquiring the\nlock releases a previously started promise to run the operation in the `fn`\nfunction. The lock waits for that promise to finish (with or without error),\nwhile the function will finally wait for the result anyway.\n" }, "typeParameter": [ { - "id": 458, + "id": 464, "name": "R", "kind": 131072, "kindString": "Type parameter", @@ -18911,7 +19960,7 @@ ], "parameters": [ { - "id": 459, + "id": 465, "name": "name", "kind": 32768, "kindString": "Parameter", @@ -18925,7 +19974,7 @@ } }, { - "id": 460, + "id": 466, "name": "acquireTimeout", "kind": 32768, "kindString": "Parameter", @@ -18939,7 +19988,7 @@ } }, { - "id": 461, + "id": 467, "name": "fn", "kind": 32768, "kindString": "Parameter", @@ -18950,14 +19999,14 @@ "type": { "type": "reflection", "declaration": { - "id": 462, + "id": 468, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 463, + "id": 469, "name": "__type", "kind": 4096, "kindString": "Call signature", @@ -18967,7 +20016,7 @@ "typeArguments": [ { "type": "reference", - "id": 458, + "id": 464, "name": "R" } ], @@ -18986,7 +20035,7 @@ "typeArguments": [ { "type": "reference", - "id": 458, + "id": 464, "name": "R" } ], @@ -19003,119 +20052,126 @@ "title": "Classes", "kind": 128, "children": [ - 1017, - 1010, - 1090, - 1077, 1065, - 1115, - 1140, - 1053, - 1030, - 1154, - 1038, + 1058, + 1138, + 1125, + 1113, + 1163, + 1188, + 1101, + 1078, + 1202, + 1086, 1, 78, - 464 + 470 ] }, { "title": "Interfaces", "kind": 256, "children": [ - 587, - 645, - 602, - 807, - 966, - 921, - 578, + 627, + 685, + 642, + 852, + 1012, + 967, + 618, + 696, + 704, 656, - 664, - 616, - 609, - 639, - 590, - 613, - 745, - 737, - 753 + 649, + 679, + 630, + 653, + 790, + 782, + 798 ] }, { "title": "Type Aliases", "kind": 4194304, "children": [ - 474, - 473, - 714, - 950, - 941, - 963, - 954, - 889, - 865, + 480, + 479, + 759, + 996, + 987, + 1009, + 1000, + 935, 910, - 899, - 880, - 852, - 517, - 504, - 532, - 909, - 977, - 757, + 956, + 945, + 926, + 897, + 542, + 515, + 528, + 557, + 570, + 955, + 1025, + 802, + 846, + 836, + 855, + 869, + 856, + 876, + 841, + 830, + 490, + 1022, + 481, + 893, + 890, + 877, + 882, + 885, 801, - 791, - 810, - 824, - 811, - 831, - 796, - 785, - 484, - 974, - 475, - 848, - 845, - 832, - 837, - 840, - 756, - 545, - 991, - 984, - 472, - 758, - 558, - 727, - 715, - 683, - 697, + 585, + 1039, + 1032, + 478, + 803, + 598, + 706, 772, - 995, - 666, - 973, - 567, - 736 + 760, + 729, + 742, + 817, + 1043, + 712, + 1019, + 607, + 781, + 511, + 510 ] }, { "title": "Variables", "kind": 32, "children": [ - 469 + 460, + 461, + 475 ] }, { "title": "Functions", "kind": 64, "children": [ - 1001, - 998, - 1004, - 1007, - 456 + 1049, + 1046, + 1052, + 1055, + 462 ] } ], diff --git a/apps/docs/spec/enrichments/tsdoc_v2/gotrue_dereferenced.json b/apps/docs/spec/enrichments/tsdoc_v2/gotrue_dereferenced.json index 9af7b7ffb39..e494bd0d10c 100644 --- a/apps/docs/spec/enrichments/tsdoc_v2/gotrue_dereferenced.json +++ b/apps/docs/spec/enrichments/tsdoc_v2/gotrue_dereferenced.json @@ -1,1149 +1,14 @@ { "id": 0, - "name": "@supabase/gotrue-js", + "name": "@supabase/auth-js", "kind": 1, "kindString": "Project", "flags": {}, "originalName": "", "children": [ - { - "id": 1017, - "name": "AuthApiError", - "kind": 128, - "kindString": "Class", - "flags": {}, - "children": [ - { - "id": 1018, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 19, - "character": 2 - } - ], - "signatures": [ - { - "id": 1019, - "name": "new AuthApiError", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 1020, - "name": "message", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1021, - "name": "status", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "type": { - "type": "reference", - "id": 1017, - "name": "AuthApiError" - }, - "overwrites": { - "type": "reference", - "id": 1012, - "name": "AuthError.constructor" - } - } - ], - "overwrites": { - "type": "reference", - "id": 1011, - "name": "AuthError.constructor" - } - }, - { - "id": 1022, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 17, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "overwrites": { - "type": "reference", - "id": 1015, - "name": "AuthError.status" - } - }, - { - "id": 1023, - "name": "toJSON", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 25, - "character": 2 - } - ], - "signatures": [ - { - "id": 1024, - "name": "toJSON", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reflection", - "declaration": { - "id": 1025, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 1027, - "name": "message", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 28, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 1026, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 27, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 1028, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 29, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "..." - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 1027, - 1026, - 1028 - ] - } - ] - } - } - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 1018 - ] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 1022 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 1023 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 16, - "character": 13 - } - ], - "extendedTypes": [ - { - "type": "reference", - "id": 1010, - "name": "AuthError" - } - ] - }, - { - "id": 1010, - "name": "AuthError", - "kind": 128, - "kindString": "Class", - "flags": {}, - "children": [ - { - "id": 1011, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 5, - "character": 2 - } - ], - "signatures": [ - { - "id": 1012, - "name": "new AuthError", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 1013, - "name": "message", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1014, - "name": "status", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "type": { - "type": "reference", - "id": 1010, - "name": "AuthError" - }, - "overwrites": { - "type": "reference", - "name": "Error.constructor" - } - } - ], - "overwrites": { - "type": "reference", - "name": "Error.constructor" - } - }, - { - "id": 1015, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 2, - "character": 2 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "number" - } - ] - } - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 1011 - ] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 1015 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 1, - "character": 13 - } - ], - "extendedTypes": [ - { - "type": "reference", - "qualifiedName": "Error", - "package": "typescript", - "name": "Error" - } - ], - "extendedBy": [ - { - "type": "reference", - "id": 1017, - "name": "AuthApiError" - }, - { - "type": "reference", - "id": 1030, - "name": "AuthUnknownError" - }, - { - "type": "reference", - "id": 1038, - "name": "CustomAuthError" - } - ] - }, - { - "id": 1090, - "name": "AuthImplicitGrantRedirectError", - "kind": 128, - "kindString": "Class", - "flags": {}, - "children": [ - { - "id": 1091, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 86, - "character": 2 - } - ], - "signatures": [ - { - "id": 1092, - "name": "new AuthImplicitGrantRedirectError", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 1093, - "name": "message", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1094, - "name": "details", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reflection", - "declaration": { - "id": 1095, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 1097, - "name": "code", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 86, - "character": 57 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1096, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 86, - "character": 42 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 1097, - 1096 - ] - } - ] - } - } - ] - }, - "defaultValue": "null" - } - ], - "type": { - "type": "reference", - "id": 1090, - "name": "AuthImplicitGrantRedirectError" - }, - "overwrites": { - "type": "reference", - "id": 1040, - "name": "CustomAuthError.constructor" - } - } - ], - "overwrites": { - "type": "reference", - "id": 1039, - "name": "CustomAuthError.constructor" - } - }, - { - "id": 1098, - "name": "details", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 85, - "character": 2 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reflection", - "declaration": { - "id": 1099, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 1101, - "name": "code", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 85, - "character": 28 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1100, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 85, - "character": 13 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 1101, - 1100 - ] - } - ] - } - } - ] - }, - "defaultValue": "null" - }, - { - "id": 1112, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 49, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "id": 1044, - "name": "CustomAuthError.name" - } - }, - { - "id": 1113, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 50, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "inheritedFrom": { - "type": "reference", - "id": 1045, - "name": "CustomAuthError.status" - } - }, - { - "id": 1102, - "name": "toJSON", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 91, - "character": 2 - } - ], - "signatures": [ - { - "id": 1103, - "name": "toJSON", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reflection", - "declaration": { - "id": 1104, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 1108, - "name": "details", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 96, - "character": 6 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reflection", - "declaration": { - "id": 1109, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 1111, - "name": "code", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 85, - "character": 28 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1110, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 85, - "character": 13 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 1111, - 1110 - ] - } - ] - } - } - ] - }, - "defaultValue": "..." - }, - { - "id": 1106, - "name": "message", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 94, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 1105, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 93, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 1107, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 95, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "..." - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 1108, - 1106, - 1105, - 1107 - ] - } - ] - } - }, - "overwrites": { - "type": "reference", - "id": 1047, - "name": "CustomAuthError.toJSON" - } - } - ], - "overwrites": { - "type": "reference", - "id": 1046, - "name": "CustomAuthError.toJSON" - } - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 1091 - ] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 1098, - 1112, - 1113 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 1102 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 84, - "character": 13 - } - ], - "extendedTypes": [ - { - "type": "reference", - "id": 1038, - "name": "CustomAuthError" - } - ] - }, - { - "id": 1077, - "name": "AuthInvalidCredentialsError", - "kind": 128, - "kindString": "Class", - "flags": {}, - "children": [ - { - "id": 1078, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 79, - "character": 2 - } - ], - "signatures": [ - { - "id": 1079, - "name": "new AuthInvalidCredentialsError", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 1080, - "name": "message", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "id": 1077, - "name": "AuthInvalidCredentialsError" - }, - "overwrites": { - "type": "reference", - "id": 1040, - "name": "CustomAuthError.constructor" - } - } - ], - "overwrites": { - "type": "reference", - "id": 1039, - "name": "CustomAuthError.constructor" - } - }, - { - "id": 1081, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 49, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "id": 1044, - "name": "CustomAuthError.name" - } - }, - { - "id": 1082, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 50, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "inheritedFrom": { - "type": "reference", - "id": 1045, - "name": "CustomAuthError.status" - } - }, - { - "id": 1083, - "name": "toJSON", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 57, - "character": 2 - } - ], - "signatures": [ - { - "id": 1084, - "name": "toJSON", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reflection", - "declaration": { - "id": 1085, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 1087, - "name": "message", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 60, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 1086, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 59, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 1088, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 61, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "..." - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 1087, - 1086, - 1088 - ] - } - ] - } - }, - "inheritedFrom": { - "type": "reference", - "id": 1047, - "name": "CustomAuthError.toJSON" - } - } - ], - "inheritedFrom": { - "type": "reference", - "id": 1046, - "name": "CustomAuthError.toJSON" - } - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 1078 - ] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 1081, - 1082 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 1083 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 78, - "character": 13 - } - ], - "extendedTypes": [ - { - "type": "reference", - "id": 1038, - "name": "CustomAuthError" - } - ] - }, { "id": 1065, - "name": "AuthInvalidTokenResponseError", + "name": "AuthApiError", "kind": 128, "kindString": "Class", "flags": {}, @@ -1157,60 +22,61 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 73, + "line": 21, "character": 2 } ], "signatures": [ { "id": 1067, - "name": "new AuthInvalidTokenResponseError", + "name": "new AuthApiError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, + "parameters": [ + { + "id": 1068, + "name": "message", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1069, + "name": "status", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], "type": { "type": "reference", "id": 1065, - "name": "AuthInvalidTokenResponseError" + "name": "AuthApiError" }, "overwrites": { "type": "reference", - "id": 1040, - "name": "CustomAuthError.constructor" + "id": 1060, + "name": "AuthError.constructor" } } ], "overwrites": { "type": "reference", - "id": 1039, - "name": "CustomAuthError.constructor" + "id": 1059, + "name": "AuthError.constructor" } }, { - "id": 1068, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 49, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "id": 1044, - "name": "CustomAuthError.name" - } - }, - { - "id": 1069, + "id": 1070, "name": "status", "kind": 1024, "kindString": "Property", @@ -1218,7 +84,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 50, + "line": 19, "character": 2 } ], @@ -1226,14 +92,14 @@ "type": "intrinsic", "name": "number" }, - "inheritedFrom": { + "overwrites": { "type": "reference", - "id": 1045, - "name": "CustomAuthError.status" + "id": 1063, + "name": "AuthError.status" } }, { - "id": 1070, + "id": 1071, "name": "toJSON", "kind": 2048, "kindString": "Method", @@ -1241,13 +107,13 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 57, + "line": 27, "character": 2 } ], "signatures": [ { - "id": 1071, + "id": 1072, "name": "toJSON", "kind": 4096, "kindString": "Call signature", @@ -1255,14 +121,14 @@ "type": { "type": "reflection", "declaration": { - "id": 1072, + "id": 1073, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 1074, + "id": 1075, "name": "message", "kind": 1024, "kindString": "Property", @@ -1270,7 +136,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 60, + "line": 30, "character": 6 } ], @@ -1281,7 +147,7 @@ "defaultValue": "..." }, { - "id": 1073, + "id": 1074, "name": "name", "kind": 1024, "kindString": "Property", @@ -1289,7 +155,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 59, + "line": 29, "character": 6 } ], @@ -1300,7 +166,7 @@ "defaultValue": "..." }, { - "id": 1075, + "id": 1076, "name": "status", "kind": 1024, "kindString": "Property", @@ -1308,7 +174,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 61, + "line": 31, "character": 6 } ], @@ -1324,26 +190,16 @@ "title": "Properties", "kind": 1024, "children": [ + 1075, 1074, - 1073, - 1075 + 1076 ] } ] } - }, - "inheritedFrom": { - "type": "reference", - "id": 1047, - "name": "CustomAuthError.toJSON" } } - ], - "inheritedFrom": { - "type": "reference", - "id": 1046, - "name": "CustomAuthError.toJSON" - } + ] } ], "groups": [ @@ -1358,42 +214,41 @@ "title": "Properties", "kind": 1024, "children": [ - 1068, - 1069 + 1070 ] }, { "title": "Methods", "kind": 2048, "children": [ - 1070 + 1071 ] } ], "sources": [ { "fileName": "src/lib/errors.ts", - "line": 72, + "line": 18, "character": 13 } ], "extendedTypes": [ { "type": "reference", - "id": 1038, - "name": "CustomAuthError" + "id": 1058, + "name": "AuthError" } ] }, { - "id": 1115, - "name": "AuthPKCEGrantCodeExchangeError", + "id": 1058, + "name": "AuthError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 1116, + "id": 1059, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -1401,20 +256,20 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 103, + "line": 7, "character": 2 } ], "signatures": [ { - "id": 1117, - "name": "new AuthPKCEGrantCodeExchangeError", + "id": 1060, + "name": "new AuthError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 1118, + "id": 1061, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -1425,7 +280,153 @@ } }, { - "id": 1119, + "id": 1062, + "name": "status", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "reference", + "id": 1058, + "name": "AuthError" + }, + "overwrites": { + "type": "reference", + "name": "Error.constructor" + } + } + ], + "overwrites": { + "type": "reference", + "name": "Error.constructor" + } + }, + { + "id": 1063, + "name": "status", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 4, + "character": 2 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 1059 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 1063 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 3, + "character": 13 + } + ], + "extendedTypes": [ + { + "type": "reference", + "qualifiedName": "Error", + "package": "typescript", + "name": "Error" + } + ], + "extendedBy": [ + { + "type": "reference", + "id": 1065, + "name": "AuthApiError" + }, + { + "type": "reference", + "id": 1078, + "name": "AuthUnknownError" + }, + { + "type": "reference", + "id": 1086, + "name": "CustomAuthError" + } + ] + }, + { + "id": 1138, + "name": "AuthImplicitGrantRedirectError", + "kind": 128, + "kindString": "Class", + "flags": {}, + "children": [ + { + "id": 1139, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 88, + "character": 2 + } + ], + "signatures": [ + { + "id": 1140, + "name": "new AuthImplicitGrantRedirectError", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "parameters": [ + { + "id": 1141, + "name": "message", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1142, "name": "details", "kind": 32768, "kindString": "Parameter", @@ -1440,14 +441,14 @@ { "type": "reflection", "declaration": { - "id": 1120, + "id": 1143, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 1122, + "id": 1145, "name": "code", "kind": 1024, "kindString": "Property", @@ -1455,7 +456,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 103, + "line": 88, "character": 57 } ], @@ -1465,7 +466,7 @@ } }, { - "id": 1121, + "id": 1144, "name": "error", "kind": 1024, "kindString": "Property", @@ -1473,7 +474,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 103, + "line": 88, "character": 42 } ], @@ -1488,8 +489,8 @@ "title": "Properties", "kind": 1024, "children": [ - 1122, - 1121 + 1145, + 1144 ] } ] @@ -1502,24 +503,24 @@ ], "type": { "type": "reference", - "id": 1115, - "name": "AuthPKCEGrantCodeExchangeError" + "id": 1138, + "name": "AuthImplicitGrantRedirectError" }, "overwrites": { "type": "reference", - "id": 1040, + "id": 1088, "name": "CustomAuthError.constructor" } } ], "overwrites": { "type": "reference", - "id": 1039, + "id": 1087, "name": "CustomAuthError.constructor" } }, { - "id": 1123, + "id": 1146, "name": "details", "kind": 1024, "kindString": "Property", @@ -1527,7 +528,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 102, + "line": 87, "character": 2 } ], @@ -1541,14 +542,14 @@ { "type": "reflection", "declaration": { - "id": 1124, + "id": 1147, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 1126, + "id": 1149, "name": "code", "kind": 1024, "kindString": "Property", @@ -1556,7 +557,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 102, + "line": 87, "character": 28 } ], @@ -1566,7 +567,7 @@ } }, { - "id": 1125, + "id": 1148, "name": "error", "kind": 1024, "kindString": "Property", @@ -1574,7 +575,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 102, + "line": 87, "character": 13 } ], @@ -1589,8 +590,8 @@ "title": "Properties", "kind": 1024, "children": [ - 1126, - 1125 + 1149, + 1148 ] } ] @@ -1601,7 +602,7 @@ "defaultValue": "null" }, { - "id": 1137, + "id": 1160, "name": "name", "kind": 1024, "kindString": "Property", @@ -1609,7 +610,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 49, + "line": 51, "character": 2 } ], @@ -1619,12 +620,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 1044, + "id": 1092, "name": "CustomAuthError.name" } }, { - "id": 1138, + "id": 1161, "name": "status", "kind": 1024, "kindString": "Property", @@ -1632,7 +633,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 50, + "line": 52, "character": 2 } ], @@ -1642,12 +643,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 1045, + "id": 1093, "name": "CustomAuthError.status" } }, { - "id": 1127, + "id": 1150, "name": "toJSON", "kind": 2048, "kindString": "Method", @@ -1655,13 +656,13 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 108, + "line": 93, "character": 2 } ], "signatures": [ { - "id": 1128, + "id": 1151, "name": "toJSON", "kind": 4096, "kindString": "Call signature", @@ -1669,14 +670,14 @@ "type": { "type": "reflection", "declaration": { - "id": 1129, + "id": 1152, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 1133, + "id": 1156, "name": "details", "kind": 1024, "kindString": "Property", @@ -1684,7 +685,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 113, + "line": 98, "character": 6 } ], @@ -1698,14 +699,14 @@ { "type": "reflection", "declaration": { - "id": 1134, + "id": 1157, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 1136, + "id": 1159, "name": "code", "kind": 1024, "kindString": "Property", @@ -1713,7 +714,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 102, + "line": 87, "character": 28 } ], @@ -1723,7 +724,7 @@ } }, { - "id": 1135, + "id": 1158, "name": "error", "kind": 1024, "kindString": "Property", @@ -1731,7 +732,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 102, + "line": 87, "character": 13 } ], @@ -1746,8 +747,8 @@ "title": "Properties", "kind": 1024, "children": [ - 1136, - 1135 + 1159, + 1158 ] } ] @@ -1758,7 +759,7 @@ "defaultValue": "..." }, { - "id": 1131, + "id": 1154, "name": "message", "kind": 1024, "kindString": "Property", @@ -1766,7 +767,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 111, + "line": 96, "character": 6 } ], @@ -1777,7 +778,7 @@ "defaultValue": "..." }, { - "id": 1130, + "id": 1153, "name": "name", "kind": 1024, "kindString": "Property", @@ -1785,7 +786,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 110, + "line": 95, "character": 6 } ], @@ -1796,11 +797,991 @@ "defaultValue": "..." }, { - "id": 1132, + "id": 1155, "name": "status", "kind": 1024, "kindString": "Property", "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 97, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "..." + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 1156, + 1154, + 1153, + 1155 + ] + } + ] + } + }, + "overwrites": { + "type": "reference", + "id": 1095, + "name": "CustomAuthError.toJSON" + } + } + ], + "overwrites": { + "type": "reference", + "id": 1094, + "name": "CustomAuthError.toJSON" + } + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 1139 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 1146, + 1160, + 1161 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 1150 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 86, + "character": 13 + } + ], + "extendedTypes": [ + { + "type": "reference", + "id": 1086, + "name": "CustomAuthError" + } + ] + }, + { + "id": 1125, + "name": "AuthInvalidCredentialsError", + "kind": 128, + "kindString": "Class", + "flags": {}, + "children": [ + { + "id": 1126, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 81, + "character": 2 + } + ], + "signatures": [ + { + "id": 1127, + "name": "new AuthInvalidCredentialsError", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "parameters": [ + { + "id": 1128, + "name": "message", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "id": 1125, + "name": "AuthInvalidCredentialsError" + }, + "overwrites": { + "type": "reference", + "id": 1088, + "name": "CustomAuthError.constructor" + } + } + ], + "overwrites": { + "type": "reference", + "id": 1087, + "name": "CustomAuthError.constructor" + } + }, + { + "id": 1129, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 51, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "id": 1092, + "name": "CustomAuthError.name" + } + }, + { + "id": 1130, + "name": "status", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 52, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "id": 1093, + "name": "CustomAuthError.status" + } + }, + { + "id": 1131, + "name": "toJSON", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 59, + "character": 2 + } + ], + "signatures": [ + { + "id": 1132, + "name": "toJSON", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 1133, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 1135, + "name": "message", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 62, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "..." + }, + { + "id": 1134, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 61, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "..." + }, + { + "id": 1136, + "name": "status", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 63, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "..." + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 1135, + 1134, + 1136 + ] + } + ] + } + }, + "inheritedFrom": { + "type": "reference", + "id": 1095, + "name": "CustomAuthError.toJSON" + } + } + ], + "inheritedFrom": { + "type": "reference", + "id": 1094, + "name": "CustomAuthError.toJSON" + } + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 1126 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 1129, + 1130 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 1131 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 80, + "character": 13 + } + ], + "extendedTypes": [ + { + "type": "reference", + "id": 1086, + "name": "CustomAuthError" + } + ] + }, + { + "id": 1113, + "name": "AuthInvalidTokenResponseError", + "kind": 128, + "kindString": "Class", + "flags": {}, + "children": [ + { + "id": 1114, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 75, + "character": 2 + } + ], + "signatures": [ + { + "id": 1115, + "name": "new AuthInvalidTokenResponseError", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "type": { + "type": "reference", + "id": 1113, + "name": "AuthInvalidTokenResponseError" + }, + "overwrites": { + "type": "reference", + "id": 1088, + "name": "CustomAuthError.constructor" + } + } + ], + "overwrites": { + "type": "reference", + "id": 1087, + "name": "CustomAuthError.constructor" + } + }, + { + "id": 1116, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 51, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "id": 1092, + "name": "CustomAuthError.name" + } + }, + { + "id": 1117, + "name": "status", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 52, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "id": 1093, + "name": "CustomAuthError.status" + } + }, + { + "id": 1118, + "name": "toJSON", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 59, + "character": 2 + } + ], + "signatures": [ + { + "id": 1119, + "name": "toJSON", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 1120, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 1122, + "name": "message", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 62, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "..." + }, + { + "id": 1121, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 61, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "..." + }, + { + "id": 1123, + "name": "status", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 63, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "..." + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 1122, + 1121, + 1123 + ] + } + ] + } + }, + "inheritedFrom": { + "type": "reference", + "id": 1095, + "name": "CustomAuthError.toJSON" + } + } + ], + "inheritedFrom": { + "type": "reference", + "id": 1094, + "name": "CustomAuthError.toJSON" + } + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 1114 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 1116, + 1117 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 1118 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 74, + "character": 13 + } + ], + "extendedTypes": [ + { + "type": "reference", + "id": 1086, + "name": "CustomAuthError" + } + ] + }, + { + "id": 1163, + "name": "AuthPKCEGrantCodeExchangeError", + "kind": 128, + "kindString": "Class", + "flags": {}, + "children": [ + { + "id": 1164, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 105, + "character": 2 + } + ], + "signatures": [ + { + "id": 1165, + "name": "new AuthPKCEGrantCodeExchangeError", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "parameters": [ + { + "id": 1166, + "name": "message", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1167, + "name": "details", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reflection", + "declaration": { + "id": 1168, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 1170, + "name": "code", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 105, + "character": 57 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1169, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 105, + "character": 42 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 1170, + 1169 + ] + } + ] + } + } + ] + }, + "defaultValue": "null" + } + ], + "type": { + "type": "reference", + "id": 1163, + "name": "AuthPKCEGrantCodeExchangeError" + }, + "overwrites": { + "type": "reference", + "id": 1088, + "name": "CustomAuthError.constructor" + } + } + ], + "overwrites": { + "type": "reference", + "id": 1087, + "name": "CustomAuthError.constructor" + } + }, + { + "id": 1171, + "name": "details", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 104, + "character": 2 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reflection", + "declaration": { + "id": 1172, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 1174, + "name": "code", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 104, + "character": 28 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1173, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 104, + "character": 13 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 1174, + 1173 + ] + } + ] + } + } + ] + }, + "defaultValue": "null" + }, + { + "id": 1185, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 51, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "id": 1092, + "name": "CustomAuthError.name" + } + }, + { + "id": 1186, + "name": "status", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 52, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "id": 1093, + "name": "CustomAuthError.status" + } + }, + { + "id": 1175, + "name": "toJSON", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 110, + "character": 2 + } + ], + "signatures": [ + { + "id": 1176, + "name": "toJSON", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 1177, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 1181, + "name": "details", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 115, + "character": 6 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reflection", + "declaration": { + "id": 1182, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 1184, + "name": "code", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 104, + "character": 28 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1183, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 104, + "character": 13 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 1184, + 1183 + ] + } + ] + } + } + ] + }, + "defaultValue": "..." + }, + { + "id": 1179, + "name": "message", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 113, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "..." + }, + { + "id": 1178, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": {}, "sources": [ { "fileName": "src/lib/errors.ts", @@ -1808,6 +1789,25 @@ "character": 6 } ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "..." + }, + { + "id": 1180, + "name": "status", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 114, + "character": 6 + } + ], "type": { "type": "intrinsic", "name": "number" @@ -1820,10 +1820,10 @@ "title": "Properties", "kind": 1024, "children": [ - 1133, - 1131, - 1130, - 1132 + 1181, + 1179, + 1178, + 1180 ] } ] @@ -1831,14 +1831,14 @@ }, "overwrites": { "type": "reference", - "id": 1047, + "id": 1095, "name": "CustomAuthError.toJSON" } } ], "overwrites": { "type": "reference", - "id": 1046, + "id": 1094, "name": "CustomAuthError.toJSON" } } @@ -1848,50 +1848,50 @@ "title": "Constructors", "kind": 512, "children": [ - 1116 + 1164 ] }, { "title": "Properties", "kind": 1024, "children": [ - 1123, - 1137, - 1138 + 1171, + 1185, + 1186 ] }, { "title": "Methods", "kind": 2048, "children": [ - 1127 + 1175 ] } ], "sources": [ { "fileName": "src/lib/errors.ts", - "line": 101, + "line": 103, "character": 13 } ], "extendedTypes": [ { "type": "reference", - "id": 1038, + "id": 1086, "name": "CustomAuthError" } ] }, { - "id": 1140, + "id": 1188, "name": "AuthRetryableFetchError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 1141, + "id": 1189, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -1899,20 +1899,20 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 119, + "line": 121, "character": 2 } ], "signatures": [ { - "id": 1142, + "id": 1190, "name": "new AuthRetryableFetchError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 1143, + "id": 1191, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -1923,7 +1923,7 @@ } }, { - "id": 1144, + "id": 1192, "name": "status", "kind": 32768, "kindString": "Parameter", @@ -1936,24 +1936,24 @@ ], "type": { "type": "reference", - "id": 1140, + "id": 1188, "name": "AuthRetryableFetchError" }, "overwrites": { "type": "reference", - "id": 1040, + "id": 1088, "name": "CustomAuthError.constructor" } } ], "overwrites": { "type": "reference", - "id": 1039, + "id": 1087, "name": "CustomAuthError.constructor" } }, { - "id": 1145, + "id": 1193, "name": "name", "kind": 1024, "kindString": "Property", @@ -1961,7 +1961,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 49, + "line": 51, "character": 2 } ], @@ -1971,12 +1971,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 1044, + "id": 1092, "name": "CustomAuthError.name" } }, { - "id": 1146, + "id": 1194, "name": "status", "kind": 1024, "kindString": "Property", @@ -1984,7 +1984,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 50, + "line": 52, "character": 2 } ], @@ -1994,12 +1994,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 1045, + "id": 1093, "name": "CustomAuthError.status" } }, { - "id": 1147, + "id": 1195, "name": "toJSON", "kind": 2048, "kindString": "Method", @@ -2007,13 +2007,13 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 57, + "line": 59, "character": 2 } ], "signatures": [ { - "id": 1148, + "id": 1196, "name": "toJSON", "kind": 4096, "kindString": "Call signature", @@ -2021,14 +2021,14 @@ "type": { "type": "reflection", "declaration": { - "id": 1149, + "id": 1197, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 1151, + "id": 1199, "name": "message", "kind": 1024, "kindString": "Property", @@ -2036,7 +2036,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 60, + "line": 62, "character": 6 } ], @@ -2047,7 +2047,7 @@ "defaultValue": "..." }, { - "id": 1150, + "id": 1198, "name": "name", "kind": 1024, "kindString": "Property", @@ -2055,7 +2055,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 59, + "line": 61, "character": 6 } ], @@ -2066,7 +2066,7 @@ "defaultValue": "..." }, { - "id": 1152, + "id": 1200, "name": "status", "kind": 1024, "kindString": "Property", @@ -2074,7 +2074,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 61, + "line": 63, "character": 6 } ], @@ -2090,9 +2090,9 @@ "title": "Properties", "kind": 1024, "children": [ - 1151, - 1150, - 1152 + 1199, + 1198, + 1200 ] } ] @@ -2100,14 +2100,14 @@ }, "inheritedFrom": { "type": "reference", - "id": 1047, + "id": 1095, "name": "CustomAuthError.toJSON" } } ], "inheritedFrom": { "type": "reference", - "id": 1046, + "id": 1094, "name": "CustomAuthError.toJSON" } } @@ -2117,49 +2117,49 @@ "title": "Constructors", "kind": 512, "children": [ - 1141 + 1189 ] }, { "title": "Properties", "kind": 1024, "children": [ - 1145, - 1146 + 1193, + 1194 ] }, { "title": "Methods", "kind": 2048, "children": [ - 1147 + 1195 ] } ], "sources": [ { "fileName": "src/lib/errors.ts", - "line": 118, + "line": 120, "character": 13 } ], "extendedTypes": [ { "type": "reference", - "id": 1038, + "id": 1086, "name": "CustomAuthError" } ] }, { - "id": 1053, + "id": 1101, "name": "AuthSessionMissingError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 1054, + "id": 1102, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -2167,37 +2167,37 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 67, + "line": 69, "character": 2 } ], "signatures": [ { - "id": 1055, + "id": 1103, "name": "new AuthSessionMissingError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "type": { "type": "reference", - "id": 1053, + "id": 1101, "name": "AuthSessionMissingError" }, "overwrites": { "type": "reference", - "id": 1040, + "id": 1088, "name": "CustomAuthError.constructor" } } ], "overwrites": { "type": "reference", - "id": 1039, + "id": 1087, "name": "CustomAuthError.constructor" } }, { - "id": 1056, + "id": 1104, "name": "name", "kind": 1024, "kindString": "Property", @@ -2205,7 +2205,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 49, + "line": 51, "character": 2 } ], @@ -2215,12 +2215,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 1044, + "id": 1092, "name": "CustomAuthError.name" } }, { - "id": 1057, + "id": 1105, "name": "status", "kind": 1024, "kindString": "Property", @@ -2228,7 +2228,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 50, + "line": 52, "character": 2 } ], @@ -2238,12 +2238,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 1045, + "id": 1093, "name": "CustomAuthError.status" } }, { - "id": 1058, + "id": 1106, "name": "toJSON", "kind": 2048, "kindString": "Method", @@ -2251,13 +2251,13 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 57, + "line": 59, "character": 2 } ], "signatures": [ { - "id": 1059, + "id": 1107, "name": "toJSON", "kind": 4096, "kindString": "Call signature", @@ -2265,14 +2265,14 @@ "type": { "type": "reflection", "declaration": { - "id": 1060, + "id": 1108, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 1062, + "id": 1110, "name": "message", "kind": 1024, "kindString": "Property", @@ -2280,7 +2280,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 60, + "line": 62, "character": 6 } ], @@ -2291,7 +2291,7 @@ "defaultValue": "..." }, { - "id": 1061, + "id": 1109, "name": "name", "kind": 1024, "kindString": "Property", @@ -2299,7 +2299,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 59, + "line": 61, "character": 6 } ], @@ -2310,7 +2310,7 @@ "defaultValue": "..." }, { - "id": 1063, + "id": 1111, "name": "status", "kind": 1024, "kindString": "Property", @@ -2318,7 +2318,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 61, + "line": 63, "character": 6 } ], @@ -2334,9 +2334,9 @@ "title": "Properties", "kind": 1024, "children": [ - 1062, - 1061, - 1063 + 1110, + 1109, + 1111 ] } ] @@ -2344,14 +2344,14 @@ }, "inheritedFrom": { "type": "reference", - "id": 1047, + "id": 1095, "name": "CustomAuthError.toJSON" } } ], "inheritedFrom": { "type": "reference", - "id": 1046, + "id": 1094, "name": "CustomAuthError.toJSON" } } @@ -2361,49 +2361,49 @@ "title": "Constructors", "kind": 512, "children": [ - 1054 + 1102 ] }, { "title": "Properties", "kind": 1024, "children": [ - 1056, - 1057 + 1104, + 1105 ] }, { "title": "Methods", "kind": 2048, "children": [ - 1058 + 1106 ] } ], "sources": [ { "fileName": "src/lib/errors.ts", - "line": 66, + "line": 68, "character": 13 } ], "extendedTypes": [ { "type": "reference", - "id": 1038, + "id": 1086, "name": "CustomAuthError" } ] }, { - "id": 1030, + "id": 1078, "name": "AuthUnknownError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 1031, + "id": 1079, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -2411,20 +2411,20 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 41, + "line": 43, "character": 2 } ], "signatures": [ { - "id": 1032, + "id": 1080, "name": "new AuthUnknownError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 1033, + "id": 1081, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -2435,7 +2435,7 @@ } }, { - "id": 1034, + "id": 1082, "name": "originalError", "kind": 32768, "kindString": "Parameter", @@ -2448,24 +2448,24 @@ ], "type": { "type": "reference", - "id": 1030, + "id": 1078, "name": "AuthUnknownError" }, "overwrites": { "type": "reference", - "id": 1012, + "id": 1060, "name": "AuthError.constructor" } } ], "overwrites": { "type": "reference", - "id": 1011, + "id": 1059, "name": "AuthError.constructor" } }, { - "id": 1035, + "id": 1083, "name": "originalError", "kind": 1024, "kindString": "Property", @@ -2473,7 +2473,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 39, + "line": 41, "character": 2 } ], @@ -2483,7 +2483,7 @@ } }, { - "id": 1036, + "id": 1084, "name": "status", "kind": 1024, "kindString": "Property", @@ -2491,7 +2491,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 2, + "line": 4, "character": 2 } ], @@ -2510,7 +2510,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 1015, + "id": 1063, "name": "AuthError.status" } } @@ -2520,35 +2520,35 @@ "title": "Constructors", "kind": 512, "children": [ - 1031 + 1079 ] }, { "title": "Properties", "kind": 1024, "children": [ - 1035, - 1036 + 1083, + 1084 ] } ], "sources": [ { "fileName": "src/lib/errors.ts", - "line": 38, + "line": 40, "character": 13 } ], "extendedTypes": [ { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } ] }, { - "id": 1154, + "id": 1202, "name": "AuthWeakPasswordError", "kind": 128, "kindString": "Class", @@ -2558,7 +2558,7 @@ }, "children": [ { - "id": 1155, + "id": 1203, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -2566,20 +2566,20 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 139, + "line": 141, "character": 2 } ], "signatures": [ { - "id": 1156, + "id": 1204, "name": "new AuthWeakPasswordError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 1157, + "id": 1205, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -2590,7 +2590,7 @@ } }, { - "id": 1158, + "id": 1206, "name": "status", "kind": 32768, "kindString": "Parameter", @@ -2601,7 +2601,7 @@ } }, { - "id": 1159, + "id": 1207, "name": "reasons", "kind": 32768, "kindString": "Parameter", @@ -2617,24 +2617,24 @@ ], "type": { "type": "reference", - "id": 1154, + "id": 1202, "name": "AuthWeakPasswordError" }, "overwrites": { "type": "reference", - "id": 1040, + "id": 1088, "name": "CustomAuthError.constructor" } } ], "overwrites": { "type": "reference", - "id": 1039, + "id": 1087, "name": "CustomAuthError.constructor" } }, { - "id": 1161, + "id": 1209, "name": "name", "kind": 1024, "kindString": "Property", @@ -2642,7 +2642,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 49, + "line": 51, "character": 2 } ], @@ -2652,12 +2652,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 1044, + "id": 1092, "name": "CustomAuthError.name" } }, { - "id": 1160, + "id": 1208, "name": "reasons", "kind": 1024, "kindString": "Property", @@ -2668,7 +2668,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 137, + "line": 139, "character": 2 } ], @@ -2681,7 +2681,7 @@ } }, { - "id": 1162, + "id": 1210, "name": "status", "kind": 1024, "kindString": "Property", @@ -2689,7 +2689,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 50, + "line": 52, "character": 2 } ], @@ -2699,12 +2699,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 1045, + "id": 1093, "name": "CustomAuthError.status" } }, { - "id": 1163, + "id": 1211, "name": "toJSON", "kind": 2048, "kindString": "Method", @@ -2712,13 +2712,13 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 57, + "line": 59, "character": 2 } ], "signatures": [ { - "id": 1164, + "id": 1212, "name": "toJSON", "kind": 4096, "kindString": "Call signature", @@ -2726,14 +2726,14 @@ "type": { "type": "reflection", "declaration": { - "id": 1165, + "id": 1213, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 1167, + "id": 1215, "name": "message", "kind": 1024, "kindString": "Property", @@ -2741,7 +2741,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 60, + "line": 62, "character": 6 } ], @@ -2752,7 +2752,7 @@ "defaultValue": "..." }, { - "id": 1166, + "id": 1214, "name": "name", "kind": 1024, "kindString": "Property", @@ -2760,7 +2760,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 59, + "line": 61, "character": 6 } ], @@ -2771,7 +2771,7 @@ "defaultValue": "..." }, { - "id": 1168, + "id": 1216, "name": "status", "kind": 1024, "kindString": "Property", @@ -2779,7 +2779,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 61, + "line": 63, "character": 6 } ], @@ -2795,9 +2795,9 @@ "title": "Properties", "kind": 1024, "children": [ - 1167, - 1166, - 1168 + 1215, + 1214, + 1216 ] } ] @@ -2805,14 +2805,14 @@ }, "inheritedFrom": { "type": "reference", - "id": 1047, + "id": 1095, "name": "CustomAuthError.toJSON" } } ], "inheritedFrom": { "type": "reference", - "id": 1046, + "id": 1094, "name": "CustomAuthError.toJSON" } } @@ -2822,50 +2822,50 @@ "title": "Constructors", "kind": 512, "children": [ - 1155 + 1203 ] }, { "title": "Properties", "kind": 1024, "children": [ - 1161, - 1160, - 1162 + 1209, + 1208, + 1210 ] }, { "title": "Methods", "kind": 2048, "children": [ - 1163 + 1211 ] } ], "sources": [ { "fileName": "src/lib/errors.ts", - "line": 133, + "line": 135, "character": 13 } ], "extendedTypes": [ { "type": "reference", - "id": 1038, + "id": 1086, "name": "CustomAuthError" } ] }, { - "id": 1038, + "id": 1086, "name": "CustomAuthError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 1039, + "id": 1087, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -2873,20 +2873,20 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 51, + "line": 53, "character": 2 } ], "signatures": [ { - "id": 1040, + "id": 1088, "name": "new CustomAuthError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 1041, + "id": 1089, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -2897,7 +2897,7 @@ } }, { - "id": 1042, + "id": 1090, "name": "name", "kind": 32768, "kindString": "Parameter", @@ -2908,7 +2908,7 @@ } }, { - "id": 1043, + "id": 1091, "name": "status", "kind": 32768, "kindString": "Parameter", @@ -2921,24 +2921,24 @@ ], "type": { "type": "reference", - "id": 1038, + "id": 1086, "name": "CustomAuthError" }, "overwrites": { "type": "reference", - "id": 1012, + "id": 1060, "name": "AuthError.constructor" } } ], "overwrites": { "type": "reference", - "id": 1011, + "id": 1059, "name": "AuthError.constructor" } }, { - "id": 1044, + "id": 1092, "name": "name", "kind": 1024, "kindString": "Property", @@ -2946,7 +2946,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 49, + "line": 51, "character": 2 } ], @@ -2960,7 +2960,7 @@ } }, { - "id": 1045, + "id": 1093, "name": "status", "kind": 1024, "kindString": "Property", @@ -2968,7 +2968,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 50, + "line": 52, "character": 2 } ], @@ -2978,12 +2978,12 @@ }, "overwrites": { "type": "reference", - "id": 1015, + "id": 1063, "name": "AuthError.status" } }, { - "id": 1046, + "id": 1094, "name": "toJSON", "kind": 2048, "kindString": "Method", @@ -2991,13 +2991,13 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 57, + "line": 59, "character": 2 } ], "signatures": [ { - "id": 1047, + "id": 1095, "name": "toJSON", "kind": 4096, "kindString": "Call signature", @@ -3005,14 +3005,14 @@ "type": { "type": "reflection", "declaration": { - "id": 1048, + "id": 1096, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 1050, + "id": 1098, "name": "message", "kind": 1024, "kindString": "Property", @@ -3020,7 +3020,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 60, + "line": 62, "character": 6 } ], @@ -3031,7 +3031,7 @@ "defaultValue": "..." }, { - "id": 1049, + "id": 1097, "name": "name", "kind": 1024, "kindString": "Property", @@ -3039,7 +3039,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 59, + "line": 61, "character": 6 } ], @@ -3050,7 +3050,7 @@ "defaultValue": "..." }, { - "id": 1051, + "id": 1099, "name": "status", "kind": 1024, "kindString": "Property", @@ -3058,7 +3058,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 61, + "line": 63, "character": 6 } ], @@ -3074,9 +3074,9 @@ "title": "Properties", "kind": 1024, "children": [ - 1050, - 1049, - 1051 + 1098, + 1097, + 1099 ] } ] @@ -3091,73 +3091,73 @@ "title": "Constructors", "kind": 512, "children": [ - 1039 + 1087 ] }, { "title": "Properties", "kind": 1024, "children": [ - 1044, - 1045 + 1092, + 1093 ] }, { "title": "Methods", "kind": 2048, "children": [ - 1046 + 1094 ] } ], "sources": [ { "fileName": "src/lib/errors.ts", - "line": 48, + "line": 50, "character": 13 } ], "extendedTypes": [ { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } ], "extendedBy": [ { "type": "reference", - "id": 1053, + "id": 1101, "name": "AuthSessionMissingError" }, { "type": "reference", - "id": 1065, + "id": 1113, "name": "AuthInvalidTokenResponseError" }, { "type": "reference", - "id": 1077, + "id": 1125, "name": "AuthInvalidCredentialsError" }, { "type": "reference", - "id": 1090, + "id": 1138, "name": "AuthImplicitGrantRedirectError" }, { "type": "reference", - "id": 1115, + "id": 1163, "name": "AuthPKCEGrantCodeExchangeError" }, { "type": "reference", - "id": 1140, + "id": 1188, "name": "AuthRetryableFetchError" }, { "type": "reference", - "id": 1154, + "id": 1202, "name": "AuthWeakPasswordError" } ] @@ -3404,10 +3404,10 @@ ], "type": { "type": "reference", - "id": 966, + "id": 1012, "name": "GoTrueAdminMFAApi", "dereferenced": { - "id": 966, + "id": 1012, "name": "GoTrueAdminMFAApi", "kind": 256, "kindString": "Interface", @@ -3423,14 +3423,14 @@ }, "children": [ { - "id": 970, + "id": 1016, "name": "deleteFactor", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 971, + "id": 1017, "name": "deleteFactor", "kind": 4096, "kindString": "Call signature", @@ -3450,17 +3450,17 @@ }, "parameters": [ { - "id": 972, + "id": 1018, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 950, + "id": 996, "name": "AuthMFAAdminDeleteFactorParams", "dereferenced": { - "id": 950, + "id": 996, "name": "AuthMFAAdminDeleteFactorParams", "kind": 4194304, "kindString": "Type alias", @@ -3476,21 +3476,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 978, + "line": 1028, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 951, + "id": 997, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 952, + "id": 998, "name": "id", "kind": 1024, "kindString": "Property", @@ -3501,7 +3501,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 980, + "line": 1030, "character": 2 } ], @@ -3511,7 +3511,7 @@ } }, { - "id": 953, + "id": 999, "name": "userId", "kind": 1024, "kindString": "Property", @@ -3522,7 +3522,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 983, + "line": 1033, "character": 2 } ], @@ -3537,15 +3537,15 @@ "title": "Properties", "kind": 1024, "children": [ - 952, - 953 + 998, + 999 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 978, + "line": 1028, "character": 45 } ] @@ -3560,7 +3560,7 @@ "typeArguments": [ { "type": "reference", - "id": 941, + "id": 987, "name": "AuthMFAAdminDeleteFactorResponse" } ], @@ -3572,14 +3572,14 @@ ] }, { - "id": 967, + "id": 1013, "name": "listFactors", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 968, + "id": 1014, "name": "listFactors", "kind": 4096, "kindString": "Call signature", @@ -3589,17 +3589,17 @@ }, "parameters": [ { - "id": 969, + "id": 1015, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 963, + "id": 1009, "name": "AuthMFAAdminListFactorsParams", "dereferenced": { - "id": 963, + "id": 1009, "name": "AuthMFAAdminListFactorsParams", "kind": 4194304, "kindString": "Type alias", @@ -3615,21 +3615,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1002, + "line": 1052, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 964, + "id": 1010, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 965, + "id": 1011, "name": "userId", "kind": 1024, "kindString": "Property", @@ -3640,7 +3640,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1004, + "line": 1054, "character": 2 } ], @@ -3655,14 +3655,14 @@ "title": "Properties", "kind": 1024, "children": [ - 965 + 1011 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 1002, + "line": 1052, "character": 44 } ] @@ -3677,7 +3677,7 @@ "typeArguments": [ { "type": "reference", - "id": 954, + "id": 1000, "name": "AuthMFAAdminListFactorsResponse" } ], @@ -3694,15 +3694,15 @@ "title": "Methods", "kind": 2048, "children": [ - 970, - 967 + 1016, + 1013 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 1012, + "line": 1062, "character": 17 } ] @@ -3741,17 +3741,17 @@ "flags": {}, "type": { "type": "reference", - "id": 645, + "id": 685, "name": "AdminUserAttributes", "dereferenced": { - "id": 645, + "id": 685, "name": "AdminUserAttributes", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 647, + "id": 687, "name": "app_metadata", "kind": 1024, "kindString": "Property", @@ -3765,7 +3765,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 357, + "line": 398, "character": 2 } ], @@ -3775,7 +3775,7 @@ } }, { - "id": 650, + "id": 690, "name": "ban_duration", "kind": 1024, "kindString": "Property", @@ -3789,7 +3789,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 383, + "line": 424, "character": 2 } ], @@ -3799,7 +3799,7 @@ } }, { - "id": 654, + "id": 694, "name": "email", "kind": 1024, "kindString": "Property", @@ -3812,7 +3812,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 308, + "line": 349, "character": 2 } ], @@ -3826,7 +3826,7 @@ } }, { - "id": 648, + "id": 688, "name": "email_confirm", "kind": 1024, "kindString": "Property", @@ -3840,7 +3840,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 364, + "line": 405, "character": 2 } ], @@ -3850,7 +3850,7 @@ } }, { - "id": 653, + "id": 693, "name": "nonce", "kind": 1024, "kindString": "Property", @@ -3864,7 +3864,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 325, + "line": 366, "character": 2 } ], @@ -3878,7 +3878,7 @@ } }, { - "id": 652, + "id": 692, "name": "password", "kind": 1024, "kindString": "Property", @@ -3891,7 +3891,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 318, + "line": 359, "character": 2 } ], @@ -3905,7 +3905,7 @@ } }, { - "id": 655, + "id": 695, "name": "phone", "kind": 1024, "kindString": "Property", @@ -3918,7 +3918,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 313, + "line": 354, "character": 2 } ], @@ -3932,7 +3932,7 @@ } }, { - "id": 649, + "id": 689, "name": "phone_confirm", "kind": 1024, "kindString": "Property", @@ -3946,7 +3946,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 371, + "line": 412, "character": 2 } ], @@ -3956,7 +3956,7 @@ } }, { - "id": 651, + "id": 691, "name": "role", "kind": 1024, "kindString": "Property", @@ -3970,7 +3970,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 392, + "line": 433, "character": 2 } ], @@ -3980,7 +3980,7 @@ } }, { - "id": 646, + "id": 686, "name": "user_metadata", "kind": 1024, "kindString": "Property", @@ -3988,13 +3988,13 @@ "isOptional": true }, "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", + "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.", "text": "The `user_metadata` should be a JSON object that includes user-specific info, such as their first and last name.\n\nNote: When using the GoTrueAdminApi and wanting to modify a user's metadata,\nthis attribute is used instead of UserAttributes data.\n\n" }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 347, + "line": 388, "character": 2 } ], @@ -4009,23 +4009,23 @@ "title": "Properties", "kind": 1024, "children": [ - 647, - 650, - 654, - 648, - 653, - 652, - 655, - 649, - 651, - 646 + 687, + 690, + 694, + 688, + 693, + 692, + 695, + 689, + 691, + 686 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 336, + "line": 377, "character": 17 } ], @@ -4035,7 +4035,7 @@ "typeArguments": [ { "type": "reference", - "id": 639, + "id": 679, "name": "UserAttributes" }, { @@ -4057,7 +4057,7 @@ "typeArguments": [ { "type": "reference", - "id": 567, + "id": 607, "name": "UserResponse" } ], @@ -4113,7 +4113,7 @@ "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "If true, then the user will be soft-deleted from the auth schema.\nDefaults to false for backward compatibility.\n\nThis function should only be called on a server. Never expose your `service_role` key in the browser.\n" + "shortText": "If true, then the user will be soft-deleted (setting `deleted_at` to the current timestamp and disabling their account while preserving their data) from the auth schema.\nDefaults to false for backward compatibility.\n\nThis function should only be called on a server. Never expose your `service_role` key in the browser.\n" }, "type": { "type": "intrinsic", @@ -4127,7 +4127,7 @@ "typeArguments": [ { "type": "reference", - "id": 567, + "id": 607, "name": "UserResponse" } ], @@ -4170,10 +4170,10 @@ "flags": {}, "type": { "type": "reference", - "id": 810, + "id": 855, "name": "GenerateLinkParams", "dereferenced": { - "id": 810, + "id": 855, "name": "GenerateLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -4181,7 +4181,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 685, + "line": 733, "character": 12 } ], @@ -4189,7 +4189,7 @@ "type": "union", "types": [ { - "id": 785, + "id": 830, "name": "GenerateSignupLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -4197,21 +4197,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 642, + "line": 690, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 786, + "id": 831, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 788, + "id": 833, "name": "email", "kind": 1024, "kindString": "Property", @@ -4219,7 +4219,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 644, + "line": 692, "character": 2 } ], @@ -4229,7 +4229,7 @@ } }, { - "id": 790, + "id": 835, "name": "options", "kind": 1024, "kindString": "Property", @@ -4239,7 +4239,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 646, + "line": 694, "character": 2 } ], @@ -4248,7 +4248,7 @@ "typeArguments": [ { "type": "reference", - "id": 807, + "id": 852, "name": "GenerateLinkOptions" }, { @@ -4271,7 +4271,7 @@ } }, { - "id": 789, + "id": 834, "name": "password", "kind": 1024, "kindString": "Property", @@ -4279,7 +4279,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 645, + "line": 693, "character": 2 } ], @@ -4289,7 +4289,7 @@ } }, { - "id": 787, + "id": 832, "name": "type", "kind": 1024, "kindString": "Property", @@ -4297,7 +4297,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 643, + "line": 691, "character": 2 } ], @@ -4312,17 +4312,17 @@ "title": "Properties", "kind": 1024, "children": [ - 788, - 790, - 789, - 787 + 833, + 835, + 834, + 832 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 642, + "line": 690, "character": 39 } ] @@ -4330,7 +4330,7 @@ } }, { - "id": 791, + "id": 836, "name": "GenerateInviteOrMagiclinkParams", "kind": 4194304, "kindString": "Type alias", @@ -4338,21 +4338,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 649, + "line": 697, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 792, + "id": 837, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 794, + "id": 839, "name": "email", "kind": 1024, "kindString": "Property", @@ -4363,7 +4363,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 652, + "line": 700, "character": 2 } ], @@ -4373,7 +4373,7 @@ } }, { - "id": 795, + "id": 840, "name": "options", "kind": 1024, "kindString": "Property", @@ -4383,7 +4383,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 653, + "line": 701, "character": 2 } ], @@ -4392,7 +4392,7 @@ "typeArguments": [ { "type": "reference", - "id": 807, + "id": 852, "name": "GenerateLinkOptions" }, { @@ -4415,7 +4415,7 @@ } }, { - "id": 793, + "id": 838, "name": "type", "kind": 1024, "kindString": "Property", @@ -4423,7 +4423,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 650, + "line": 698, "character": 2 } ], @@ -4447,16 +4447,16 @@ "title": "Properties", "kind": 1024, "children": [ - 794, - 795, - 793 + 839, + 840, + 838 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 649, + "line": 697, "character": 46 } ] @@ -4464,7 +4464,7 @@ } }, { - "id": 796, + "id": 841, "name": "GenerateRecoveryLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -4472,21 +4472,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 656, + "line": 704, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 797, + "id": 842, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 799, + "id": 844, "name": "email", "kind": 1024, "kindString": "Property", @@ -4497,7 +4497,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 659, + "line": 707, "character": 2 } ], @@ -4507,7 +4507,7 @@ } }, { - "id": 800, + "id": 845, "name": "options", "kind": 1024, "kindString": "Property", @@ -4517,7 +4517,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 660, + "line": 708, "character": 2 } ], @@ -4526,7 +4526,7 @@ "typeArguments": [ { "type": "reference", - "id": 807, + "id": 852, "name": "GenerateLinkOptions" }, { @@ -4540,7 +4540,7 @@ } }, { - "id": 798, + "id": 843, "name": "type", "kind": 1024, "kindString": "Property", @@ -4548,7 +4548,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 657, + "line": 705, "character": 2 } ], @@ -4563,16 +4563,16 @@ "title": "Properties", "kind": 1024, "children": [ - 799, - 800, - 798 + 844, + 845, + 843 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 656, + "line": 704, "character": 41 } ] @@ -4580,7 +4580,7 @@ } }, { - "id": 801, + "id": 846, "name": "GenerateEmailChangeLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -4588,21 +4588,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 663, + "line": 711, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 802, + "id": 847, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 804, + "id": 849, "name": "email", "kind": 1024, "kindString": "Property", @@ -4613,7 +4613,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 666, + "line": 714, "character": 2 } ], @@ -4623,7 +4623,7 @@ } }, { - "id": 805, + "id": 850, "name": "newEmail", "kind": 1024, "kindString": "Property", @@ -4634,7 +4634,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 670, + "line": 718, "character": 2 } ], @@ -4644,7 +4644,7 @@ } }, { - "id": 806, + "id": 851, "name": "options", "kind": 1024, "kindString": "Property", @@ -4654,7 +4654,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 671, + "line": 719, "character": 2 } ], @@ -4663,7 +4663,7 @@ "typeArguments": [ { "type": "reference", - "id": 807, + "id": 852, "name": "GenerateLinkOptions" }, { @@ -4677,7 +4677,7 @@ } }, { - "id": 803, + "id": 848, "name": "type", "kind": 1024, "kindString": "Property", @@ -4685,7 +4685,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 664, + "line": 712, "character": 2 } ], @@ -4709,17 +4709,17 @@ "title": "Properties", "kind": 1024, "children": [ - 804, - 805, - 806, - 803 + 849, + 850, + 851, + 848 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 663, + "line": 711, "character": 44 } ] @@ -4737,7 +4737,7 @@ "typeArguments": [ { "type": "reference", - "id": 811, + "id": 856, "name": "GenerateLinkResponse" } ], @@ -4792,7 +4792,7 @@ "typeArguments": [ { "type": "reference", - "id": 567, + "id": 607, "name": "UserResponse" } ], @@ -4926,7 +4926,7 @@ "typeArguments": [ { "type": "reference", - "id": 567, + "id": 607, "name": "UserResponse" } ], @@ -4975,10 +4975,10 @@ }, "type": { "type": "reference", - "id": 991, + "id": 1039, "name": "PageParams", "dereferenced": { - "id": 991, + "id": 1039, "name": "PageParams", "kind": 4194304, "kindString": "Type alias", @@ -4986,21 +4986,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1060, + "line": 1121, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 992, + "id": 1040, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 993, + "id": 1041, "name": "page", "kind": 1024, "kindString": "Property", @@ -5013,7 +5013,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1062, + "line": 1123, "character": 2 } ], @@ -5023,7 +5023,7 @@ } }, { - "id": 994, + "id": 1042, "name": "perPage", "kind": 1024, "kindString": "Property", @@ -5036,7 +5036,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1064, + "line": 1125, "character": 2 } ], @@ -5051,15 +5051,15 @@ "title": "Properties", "kind": 1024, "children": [ - 993, - 994 + 1041, + 1042 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 1060, + "line": 1121, "character": 25 } ] @@ -5144,7 +5144,7 @@ "type": "array", "elementType": { "type": "reference", - "id": 616, + "id": 656, "name": "User" } } @@ -5164,7 +5164,7 @@ }, { "type": "reference", - "id": 984, + "id": 1032, "name": "Pagination" } ] @@ -5277,7 +5277,7 @@ ], "type": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } } @@ -5423,7 +5423,7 @@ }, { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } ] @@ -5496,17 +5496,17 @@ }, "type": { "type": "reference", - "id": 645, + "id": 685, "name": "AdminUserAttributes", "dereferenced": { - "id": 645, + "id": 685, "name": "AdminUserAttributes", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 647, + "id": 687, "name": "app_metadata", "kind": 1024, "kindString": "Property", @@ -5520,7 +5520,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 357, + "line": 398, "character": 2 } ], @@ -5530,7 +5530,7 @@ } }, { - "id": 650, + "id": 690, "name": "ban_duration", "kind": 1024, "kindString": "Property", @@ -5544,7 +5544,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 383, + "line": 424, "character": 2 } ], @@ -5554,7 +5554,7 @@ } }, { - "id": 654, + "id": 694, "name": "email", "kind": 1024, "kindString": "Property", @@ -5567,7 +5567,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 308, + "line": 349, "character": 2 } ], @@ -5581,7 +5581,7 @@ } }, { - "id": 648, + "id": 688, "name": "email_confirm", "kind": 1024, "kindString": "Property", @@ -5595,7 +5595,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 364, + "line": 405, "character": 2 } ], @@ -5605,7 +5605,7 @@ } }, { - "id": 653, + "id": 693, "name": "nonce", "kind": 1024, "kindString": "Property", @@ -5619,7 +5619,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 325, + "line": 366, "character": 2 } ], @@ -5633,7 +5633,7 @@ } }, { - "id": 652, + "id": 692, "name": "password", "kind": 1024, "kindString": "Property", @@ -5646,7 +5646,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 318, + "line": 359, "character": 2 } ], @@ -5660,7 +5660,7 @@ } }, { - "id": 655, + "id": 695, "name": "phone", "kind": 1024, "kindString": "Property", @@ -5673,7 +5673,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 313, + "line": 354, "character": 2 } ], @@ -5687,7 +5687,7 @@ } }, { - "id": 649, + "id": 689, "name": "phone_confirm", "kind": 1024, "kindString": "Property", @@ -5701,7 +5701,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 371, + "line": 412, "character": 2 } ], @@ -5711,7 +5711,7 @@ } }, { - "id": 651, + "id": 691, "name": "role", "kind": 1024, "kindString": "Property", @@ -5725,7 +5725,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 392, + "line": 433, "character": 2 } ], @@ -5735,7 +5735,7 @@ } }, { - "id": 646, + "id": 686, "name": "user_metadata", "kind": 1024, "kindString": "Property", @@ -5743,13 +5743,13 @@ "isOptional": true }, "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", + "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.", "text": "The `user_metadata` should be a JSON object that includes user-specific info, such as their first and last name.\n\nNote: When using the GoTrueAdminApi and wanting to modify a user's metadata,\nthis attribute is used instead of UserAttributes data.\n\n" }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 347, + "line": 388, "character": 2 } ], @@ -5764,23 +5764,23 @@ "title": "Properties", "kind": 1024, "children": [ - 647, - 650, - 654, - 648, - 653, - 652, - 655, - 649, - 651, - 646 + 687, + 690, + 694, + 688, + 693, + 692, + 695, + 689, + 691, + 686 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 336, + "line": 377, "character": 17 } ], @@ -5790,7 +5790,7 @@ "typeArguments": [ { "type": "reference", - "id": 639, + "id": 679, "name": "UserAttributes" }, { @@ -5812,7 +5812,7 @@ "typeArguments": [ { "type": "reference", - "id": 567, + "id": 607, "name": "UserResponse" } ], @@ -5878,7 +5878,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 164, + "line": 175, "character": 2 } ], @@ -5901,10 +5901,10 @@ "flags": {}, "type": { "type": "reference", - "id": 484, + "id": 490, "name": "GoTrueClientOptions", "dereferenced": { - "id": 484, + "id": 490, "name": "GoTrueClientOptions", "kind": 4194304, "kindString": "Type alias", @@ -5919,14 +5919,14 @@ "type": { "type": "reflection", "declaration": { - "id": 485, + "id": 491, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 493, + "id": 499, "name": "autoRefreshToken", "kind": 1024, "kindString": "Property", @@ -5946,7 +5946,7 @@ } }, { - "id": 498, + "id": 504, "name": "debug", "kind": 1024, "kindString": "Property", @@ -5970,7 +5970,7 @@ { "type": "reflection", "declaration": { - "id": 499, + "id": 505, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5984,14 +5984,14 @@ ], "signatures": [ { - "id": 500, + "id": 506, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 501, + "id": 507, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -6002,7 +6002,7 @@ } }, { - "id": 502, + "id": 508, "name": "args", "kind": 32768, "kindString": "Parameter", @@ -6030,7 +6030,7 @@ } }, { - "id": 492, + "id": 498, "name": "detectSessionInUrl", "kind": 1024, "kindString": "Property", @@ -6050,7 +6050,7 @@ } }, { - "id": 496, + "id": 502, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -6070,7 +6070,7 @@ } }, { - "id": 497, + "id": 503, "name": "flowType", "kind": 1024, "kindString": "Property", @@ -6086,10 +6086,10 @@ ], "type": { "type": "reference", - "id": 714, + "id": 759, "name": "AuthFlowType", "dereferenced": { - "id": 714, + "id": 759, "name": "AuthFlowType", "kind": 4194304, "kindString": "Type alias", @@ -6097,7 +6097,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 517, + "line": 565, "character": 12 } ], @@ -6118,7 +6118,7 @@ } }, { - "id": 487, + "id": 493, "name": "headers", "kind": 1024, "kindString": "Property", @@ -6135,7 +6135,7 @@ "type": { "type": "reflection", "declaration": { - "id": 488, + "id": 494, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -6148,14 +6148,14 @@ } ], "indexSignature": { - "id": 489, + "id": 495, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 490, + "id": 496, "name": "key", "kind": 32768, "flags": {}, @@ -6174,7 +6174,7 @@ } }, { - "id": 503, + "id": 509, "name": "lock", "kind": 1024, "kindString": "Property", @@ -6199,10 +6199,10 @@ ], "type": { "type": "reference", - "id": 475, + "id": 481, "name": "LockFunc", "dereferenced": { - "id": 475, + "id": 481, "name": "LockFunc", "kind": 4194304, "kindString": "Type alias", @@ -6217,7 +6217,7 @@ "type": { "type": "reflection", "declaration": { - "id": 476, + "id": 482, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -6231,7 +6231,7 @@ ], "signatures": [ { - "id": 477, + "id": 483, "name": "__type", "kind": 4096, "kindString": "Call signature", @@ -6247,7 +6247,7 @@ }, "typeParameter": [ { - "id": 483, + "id": 489, "name": "R", "kind": 131072, "kindString": "Type parameter", @@ -6256,7 +6256,7 @@ ], "parameters": [ { - "id": 478, + "id": 484, "name": "name", "kind": 32768, "kindString": "Parameter", @@ -6270,7 +6270,7 @@ } }, { - "id": 479, + "id": 485, "name": "acquireTimeout", "kind": 32768, "kindString": "Parameter", @@ -6284,7 +6284,7 @@ } }, { - "id": 480, + "id": 486, "name": "fn", "kind": 32768, "kindString": "Parameter", @@ -6295,7 +6295,7 @@ "type": { "type": "reflection", "declaration": { - "id": 481, + "id": 487, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -6309,7 +6309,7 @@ ], "signatures": [ { - "id": 482, + "id": 488, "name": "__type", "kind": 4096, "kindString": "Call signature", @@ -6319,7 +6319,7 @@ "typeArguments": [ { "type": "reference", - "id": 483, + "id": 489, "name": "R" } ], @@ -6338,7 +6338,7 @@ "typeArguments": [ { "type": "reference", - "id": 483, + "id": 489, "name": "R" } ], @@ -6354,7 +6354,7 @@ } }, { - "id": 494, + "id": 500, "name": "persistSession", "kind": 1024, "kindString": "Property", @@ -6374,7 +6374,7 @@ } }, { - "id": 495, + "id": 501, "name": "storage", "kind": 1024, "kindString": "Property", @@ -6390,10 +6390,10 @@ ], "type": { "type": "reference", - "id": 973, + "id": 1019, "name": "SupportedStorage", "dereferenced": { - "id": 973, + "id": 1019, "name": "SupportedStorage", "kind": 4194304, "kindString": "Type alias", @@ -6401,52 +6401,108 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1039, + "line": 1089, "character": 12 } ], "type": { - "type": "reference", - "typeArguments": [ + "type": "intersection", + "types": [ { "type": "reference", "typeArguments": [ { "type": "reference", - "qualifiedName": "Storage", - "package": "typescript", - "name": "Storage" - }, - { - "type": "union", - "types": [ + "typeArguments": [ { - "type": "literal", - "value": "getItem" + "type": "reference", + "qualifiedName": "Storage", + "package": "typescript", + "name": "Storage" }, { - "type": "literal", - "value": "setItem" - }, - { - "type": "literal", - "value": "removeItem" + "type": "union", + "types": [ + { + "type": "literal", + "value": "getItem" + }, + { + "type": "literal", + "value": "setItem" + }, + { + "type": "literal", + "value": "removeItem" + } + ] } - ] + ], + "qualifiedName": "Pick", + "package": "typescript", + "name": "Pick" } ], - "qualifiedName": "Pick", - "package": "typescript", - "name": "Pick" + "name": "PromisifyMethods" + }, + { + "type": "reflection", + "declaration": { + "id": 1020, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 1021, + "name": "isServer", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "If set to `true` signals to the library that the storage medium is used\non a server and the values may not be authentic, such as reading from\nrequest cookies. Implementations should not set this to true if the client\nis used on a server that reads storage information from authenticated\nsources, such as a secure database or file." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1099, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 1021 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1091, + "character": 4 + } + ] + } } - ], - "name": "PromisifyMethods" + ] } } } }, { - "id": 491, + "id": 497, "name": "storageKey", "kind": 1024, "kindString": "Property", @@ -6466,7 +6522,7 @@ } }, { - "id": 486, + "id": 492, "name": "url", "kind": 1024, "kindString": "Property", @@ -6491,17 +6547,17 @@ "title": "Properties", "kind": 1024, "children": [ - 493, + 499, + 504, 498, - 492, - 496, - 497, - 487, + 502, 503, - 494, - 495, - 491, - 486 + 493, + 509, + 500, + 501, + 497, + 492 ] } ], @@ -6538,7 +6594,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 116, + "line": 125, "character": 2 } ], @@ -6788,10 +6844,10 @@ ], "type": { "type": "reference", - "id": 966, + "id": 1012, "name": "GoTrueAdminMFAApi", "dereferenced": { - "id": 966, + "id": 1012, "name": "GoTrueAdminMFAApi", "kind": 256, "kindString": "Interface", @@ -6807,14 +6863,14 @@ }, "children": [ { - "id": 970, + "id": 1016, "name": "deleteFactor", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 971, + "id": 1017, "name": "deleteFactor", "kind": 4096, "kindString": "Call signature", @@ -6834,17 +6890,17 @@ }, "parameters": [ { - "id": 972, + "id": 1018, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 950, + "id": 996, "name": "AuthMFAAdminDeleteFactorParams", "dereferenced": { - "id": 950, + "id": 996, "name": "AuthMFAAdminDeleteFactorParams", "kind": 4194304, "kindString": "Type alias", @@ -6860,21 +6916,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 978, + "line": 1028, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 951, + "id": 997, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 952, + "id": 998, "name": "id", "kind": 1024, "kindString": "Property", @@ -6885,7 +6941,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 980, + "line": 1030, "character": 2 } ], @@ -6895,7 +6951,7 @@ } }, { - "id": 953, + "id": 999, "name": "userId", "kind": 1024, "kindString": "Property", @@ -6906,7 +6962,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 983, + "line": 1033, "character": 2 } ], @@ -6921,15 +6977,15 @@ "title": "Properties", "kind": 1024, "children": [ - 952, - 953 + 998, + 999 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 978, + "line": 1028, "character": 45 } ] @@ -6944,7 +7000,7 @@ "typeArguments": [ { "type": "reference", - "id": 941, + "id": 987, "name": "AuthMFAAdminDeleteFactorResponse" } ], @@ -6956,14 +7012,14 @@ ] }, { - "id": 967, + "id": 1013, "name": "listFactors", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 968, + "id": 1014, "name": "listFactors", "kind": 4096, "kindString": "Call signature", @@ -6973,17 +7029,17 @@ }, "parameters": [ { - "id": 969, + "id": 1015, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 963, + "id": 1009, "name": "AuthMFAAdminListFactorsParams", "dereferenced": { - "id": 963, + "id": 1009, "name": "AuthMFAAdminListFactorsParams", "kind": 4194304, "kindString": "Type alias", @@ -6999,21 +7055,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1002, + "line": 1052, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 964, + "id": 1010, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 965, + "id": 1011, "name": "userId", "kind": 1024, "kindString": "Property", @@ -7024,7 +7080,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1004, + "line": 1054, "character": 2 } ], @@ -7039,14 +7095,14 @@ "title": "Properties", "kind": 1024, "children": [ - 965 + 1011 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 1002, + "line": 1052, "character": 44 } ] @@ -7061,7 +7117,7 @@ "typeArguments": [ { "type": "reference", - "id": 954, + "id": 1000, "name": "AuthMFAAdminListFactorsResponse" } ], @@ -7078,15 +7134,15 @@ "title": "Methods", "kind": 2048, "children": [ - 970, - 967 + 1016, + 1013 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 1012, + "line": 1062, "character": 17 } ] @@ -7125,17 +7181,17 @@ "flags": {}, "type": { "type": "reference", - "id": 645, + "id": 685, "name": "AdminUserAttributes", "dereferenced": { - "id": 645, + "id": 685, "name": "AdminUserAttributes", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 647, + "id": 687, "name": "app_metadata", "kind": 1024, "kindString": "Property", @@ -7149,7 +7205,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 357, + "line": 398, "character": 2 } ], @@ -7159,7 +7215,7 @@ } }, { - "id": 650, + "id": 690, "name": "ban_duration", "kind": 1024, "kindString": "Property", @@ -7173,7 +7229,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 383, + "line": 424, "character": 2 } ], @@ -7183,7 +7239,7 @@ } }, { - "id": 654, + "id": 694, "name": "email", "kind": 1024, "kindString": "Property", @@ -7196,7 +7252,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 308, + "line": 349, "character": 2 } ], @@ -7210,7 +7266,7 @@ } }, { - "id": 648, + "id": 688, "name": "email_confirm", "kind": 1024, "kindString": "Property", @@ -7224,7 +7280,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 364, + "line": 405, "character": 2 } ], @@ -7234,7 +7290,7 @@ } }, { - "id": 653, + "id": 693, "name": "nonce", "kind": 1024, "kindString": "Property", @@ -7248,7 +7304,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 325, + "line": 366, "character": 2 } ], @@ -7262,7 +7318,7 @@ } }, { - "id": 652, + "id": 692, "name": "password", "kind": 1024, "kindString": "Property", @@ -7275,7 +7331,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 318, + "line": 359, "character": 2 } ], @@ -7289,7 +7345,7 @@ } }, { - "id": 655, + "id": 695, "name": "phone", "kind": 1024, "kindString": "Property", @@ -7302,7 +7358,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 313, + "line": 354, "character": 2 } ], @@ -7316,7 +7372,7 @@ } }, { - "id": 649, + "id": 689, "name": "phone_confirm", "kind": 1024, "kindString": "Property", @@ -7330,7 +7386,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 371, + "line": 412, "character": 2 } ], @@ -7340,7 +7396,7 @@ } }, { - "id": 651, + "id": 691, "name": "role", "kind": 1024, "kindString": "Property", @@ -7354,7 +7410,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 392, + "line": 433, "character": 2 } ], @@ -7364,7 +7420,7 @@ } }, { - "id": 646, + "id": 686, "name": "user_metadata", "kind": 1024, "kindString": "Property", @@ -7372,13 +7428,13 @@ "isOptional": true }, "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", + "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.", "text": "The `user_metadata` should be a JSON object that includes user-specific info, such as their first and last name.\n\nNote: When using the GoTrueAdminApi and wanting to modify a user's metadata,\nthis attribute is used instead of UserAttributes data.\n\n" }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 347, + "line": 388, "character": 2 } ], @@ -7393,23 +7449,23 @@ "title": "Properties", "kind": 1024, "children": [ - 647, - 650, - 654, - 648, - 653, - 652, - 655, - 649, - 651, - 646 + 687, + 690, + 694, + 688, + 693, + 692, + 695, + 689, + 691, + 686 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 336, + "line": 377, "character": 17 } ], @@ -7419,7 +7475,7 @@ "typeArguments": [ { "type": "reference", - "id": 639, + "id": 679, "name": "UserAttributes" }, { @@ -7441,7 +7497,7 @@ "typeArguments": [ { "type": "reference", - "id": 567, + "id": 607, "name": "UserResponse" } ], @@ -7497,7 +7553,7 @@ "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "If true, then the user will be soft-deleted from the auth schema.\nDefaults to false for backward compatibility.\n\nThis function should only be called on a server. Never expose your `service_role` key in the browser.\n" + "shortText": "If true, then the user will be soft-deleted (setting `deleted_at` to the current timestamp and disabling their account while preserving their data) from the auth schema.\nDefaults to false for backward compatibility.\n\nThis function should only be called on a server. Never expose your `service_role` key in the browser.\n" }, "type": { "type": "intrinsic", @@ -7511,7 +7567,7 @@ "typeArguments": [ { "type": "reference", - "id": 567, + "id": 607, "name": "UserResponse" } ], @@ -7554,10 +7610,10 @@ "flags": {}, "type": { "type": "reference", - "id": 810, + "id": 855, "name": "GenerateLinkParams", "dereferenced": { - "id": 810, + "id": 855, "name": "GenerateLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -7565,7 +7621,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 685, + "line": 733, "character": 12 } ], @@ -7573,7 +7629,7 @@ "type": "union", "types": [ { - "id": 785, + "id": 830, "name": "GenerateSignupLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -7581,21 +7637,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 642, + "line": 690, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 786, + "id": 831, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 788, + "id": 833, "name": "email", "kind": 1024, "kindString": "Property", @@ -7603,7 +7659,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 644, + "line": 692, "character": 2 } ], @@ -7613,7 +7669,7 @@ } }, { - "id": 790, + "id": 835, "name": "options", "kind": 1024, "kindString": "Property", @@ -7623,7 +7679,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 646, + "line": 694, "character": 2 } ], @@ -7632,7 +7688,7 @@ "typeArguments": [ { "type": "reference", - "id": 807, + "id": 852, "name": "GenerateLinkOptions" }, { @@ -7655,7 +7711,7 @@ } }, { - "id": 789, + "id": 834, "name": "password", "kind": 1024, "kindString": "Property", @@ -7663,7 +7719,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 645, + "line": 693, "character": 2 } ], @@ -7673,7 +7729,7 @@ } }, { - "id": 787, + "id": 832, "name": "type", "kind": 1024, "kindString": "Property", @@ -7681,7 +7737,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 643, + "line": 691, "character": 2 } ], @@ -7696,17 +7752,17 @@ "title": "Properties", "kind": 1024, "children": [ - 788, - 790, - 789, - 787 + 833, + 835, + 834, + 832 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 642, + "line": 690, "character": 39 } ] @@ -7714,7 +7770,7 @@ } }, { - "id": 791, + "id": 836, "name": "GenerateInviteOrMagiclinkParams", "kind": 4194304, "kindString": "Type alias", @@ -7722,21 +7778,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 649, + "line": 697, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 792, + "id": 837, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 794, + "id": 839, "name": "email", "kind": 1024, "kindString": "Property", @@ -7747,7 +7803,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 652, + "line": 700, "character": 2 } ], @@ -7757,7 +7813,7 @@ } }, { - "id": 795, + "id": 840, "name": "options", "kind": 1024, "kindString": "Property", @@ -7767,7 +7823,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 653, + "line": 701, "character": 2 } ], @@ -7776,7 +7832,7 @@ "typeArguments": [ { "type": "reference", - "id": 807, + "id": 852, "name": "GenerateLinkOptions" }, { @@ -7799,7 +7855,7 @@ } }, { - "id": 793, + "id": 838, "name": "type", "kind": 1024, "kindString": "Property", @@ -7807,7 +7863,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 650, + "line": 698, "character": 2 } ], @@ -7831,16 +7887,16 @@ "title": "Properties", "kind": 1024, "children": [ - 794, - 795, - 793 + 839, + 840, + 838 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 649, + "line": 697, "character": 46 } ] @@ -7848,7 +7904,7 @@ } }, { - "id": 796, + "id": 841, "name": "GenerateRecoveryLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -7856,21 +7912,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 656, + "line": 704, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 797, + "id": 842, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 799, + "id": 844, "name": "email", "kind": 1024, "kindString": "Property", @@ -7881,7 +7937,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 659, + "line": 707, "character": 2 } ], @@ -7891,7 +7947,7 @@ } }, { - "id": 800, + "id": 845, "name": "options", "kind": 1024, "kindString": "Property", @@ -7901,7 +7957,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 660, + "line": 708, "character": 2 } ], @@ -7910,7 +7966,7 @@ "typeArguments": [ { "type": "reference", - "id": 807, + "id": 852, "name": "GenerateLinkOptions" }, { @@ -7924,7 +7980,7 @@ } }, { - "id": 798, + "id": 843, "name": "type", "kind": 1024, "kindString": "Property", @@ -7932,7 +7988,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 657, + "line": 705, "character": 2 } ], @@ -7947,16 +8003,16 @@ "title": "Properties", "kind": 1024, "children": [ - 799, - 800, - 798 + 844, + 845, + 843 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 656, + "line": 704, "character": 41 } ] @@ -7964,7 +8020,7 @@ } }, { - "id": 801, + "id": 846, "name": "GenerateEmailChangeLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -7972,21 +8028,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 663, + "line": 711, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 802, + "id": 847, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 804, + "id": 849, "name": "email", "kind": 1024, "kindString": "Property", @@ -7997,7 +8053,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 666, + "line": 714, "character": 2 } ], @@ -8007,7 +8063,7 @@ } }, { - "id": 805, + "id": 850, "name": "newEmail", "kind": 1024, "kindString": "Property", @@ -8018,7 +8074,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 670, + "line": 718, "character": 2 } ], @@ -8028,7 +8084,7 @@ } }, { - "id": 806, + "id": 851, "name": "options", "kind": 1024, "kindString": "Property", @@ -8038,7 +8094,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 671, + "line": 719, "character": 2 } ], @@ -8047,7 +8103,7 @@ "typeArguments": [ { "type": "reference", - "id": 807, + "id": 852, "name": "GenerateLinkOptions" }, { @@ -8061,7 +8117,7 @@ } }, { - "id": 803, + "id": 848, "name": "type", "kind": 1024, "kindString": "Property", @@ -8069,7 +8125,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 664, + "line": 712, "character": 2 } ], @@ -8093,17 +8149,17 @@ "title": "Properties", "kind": 1024, "children": [ - 804, - 805, - 806, - 803 + 849, + 850, + 851, + 848 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 663, + "line": 711, "character": 44 } ] @@ -8121,7 +8177,7 @@ "typeArguments": [ { "type": "reference", - "id": 811, + "id": 856, "name": "GenerateLinkResponse" } ], @@ -8176,7 +8232,7 @@ "typeArguments": [ { "type": "reference", - "id": 567, + "id": 607, "name": "UserResponse" } ], @@ -8310,7 +8366,7 @@ "typeArguments": [ { "type": "reference", - "id": 567, + "id": 607, "name": "UserResponse" } ], @@ -8359,10 +8415,10 @@ }, "type": { "type": "reference", - "id": 991, + "id": 1039, "name": "PageParams", "dereferenced": { - "id": 991, + "id": 1039, "name": "PageParams", "kind": 4194304, "kindString": "Type alias", @@ -8370,21 +8426,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1060, + "line": 1121, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 992, + "id": 1040, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 993, + "id": 1041, "name": "page", "kind": 1024, "kindString": "Property", @@ -8397,7 +8453,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1062, + "line": 1123, "character": 2 } ], @@ -8407,7 +8463,7 @@ } }, { - "id": 994, + "id": 1042, "name": "perPage", "kind": 1024, "kindString": "Property", @@ -8420,7 +8476,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1064, + "line": 1125, "character": 2 } ], @@ -8435,15 +8491,15 @@ "title": "Properties", "kind": 1024, "children": [ - 993, - 994 + 1041, + 1042 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 1060, + "line": 1121, "character": 25 } ] @@ -8528,7 +8584,7 @@ "type": "array", "elementType": { "type": "reference", - "id": 616, + "id": 656, "name": "User" } } @@ -8548,7 +8604,7 @@ }, { "type": "reference", - "id": 984, + "id": 1032, "name": "Pagination" } ] @@ -8661,7 +8717,7 @@ ], "type": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } } @@ -8807,7 +8863,7 @@ }, { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } ] @@ -8880,17 +8936,17 @@ }, "type": { "type": "reference", - "id": 645, + "id": 685, "name": "AdminUserAttributes", "dereferenced": { - "id": 645, + "id": 685, "name": "AdminUserAttributes", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 647, + "id": 687, "name": "app_metadata", "kind": 1024, "kindString": "Property", @@ -8904,7 +8960,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 357, + "line": 398, "character": 2 } ], @@ -8914,7 +8970,7 @@ } }, { - "id": 650, + "id": 690, "name": "ban_duration", "kind": 1024, "kindString": "Property", @@ -8928,7 +8984,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 383, + "line": 424, "character": 2 } ], @@ -8938,7 +8994,7 @@ } }, { - "id": 654, + "id": 694, "name": "email", "kind": 1024, "kindString": "Property", @@ -8951,7 +9007,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 308, + "line": 349, "character": 2 } ], @@ -8965,7 +9021,7 @@ } }, { - "id": 648, + "id": 688, "name": "email_confirm", "kind": 1024, "kindString": "Property", @@ -8979,7 +9035,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 364, + "line": 405, "character": 2 } ], @@ -8989,7 +9045,7 @@ } }, { - "id": 653, + "id": 693, "name": "nonce", "kind": 1024, "kindString": "Property", @@ -9003,7 +9059,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 325, + "line": 366, "character": 2 } ], @@ -9017,7 +9073,7 @@ } }, { - "id": 652, + "id": 692, "name": "password", "kind": 1024, "kindString": "Property", @@ -9030,7 +9086,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 318, + "line": 359, "character": 2 } ], @@ -9044,7 +9100,7 @@ } }, { - "id": 655, + "id": 695, "name": "phone", "kind": 1024, "kindString": "Property", @@ -9057,7 +9113,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 313, + "line": 354, "character": 2 } ], @@ -9071,7 +9127,7 @@ } }, { - "id": 649, + "id": 689, "name": "phone_confirm", "kind": 1024, "kindString": "Property", @@ -9085,7 +9141,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 371, + "line": 412, "character": 2 } ], @@ -9095,7 +9151,7 @@ } }, { - "id": 651, + "id": 691, "name": "role", "kind": 1024, "kindString": "Property", @@ -9109,7 +9165,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 392, + "line": 433, "character": 2 } ], @@ -9119,7 +9175,7 @@ } }, { - "id": 646, + "id": 686, "name": "user_metadata", "kind": 1024, "kindString": "Property", @@ -9127,13 +9183,13 @@ "isOptional": true }, "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", + "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.", "text": "The `user_metadata` should be a JSON object that includes user-specific info, such as their first and last name.\n\nNote: When using the GoTrueAdminApi and wanting to modify a user's metadata,\nthis attribute is used instead of UserAttributes data.\n\n" }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 347, + "line": 388, "character": 2 } ], @@ -9148,23 +9204,23 @@ "title": "Properties", "kind": 1024, "children": [ - 647, - 650, - 654, - 648, - 653, - 652, - 655, - 649, - 651, - 646 + 687, + 690, + 694, + 688, + 693, + 692, + 695, + 689, + 691, + 686 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 336, + "line": 377, "character": 17 } ], @@ -9174,7 +9230,7 @@ "typeArguments": [ { "type": "reference", - "id": 639, + "id": 679, "name": "UserAttributes" }, { @@ -9196,7 +9252,7 @@ "typeArguments": [ { "type": "reference", - "id": 567, + "id": 607, "name": "UserResponse" } ], @@ -9260,16 +9316,16 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 120, + "line": 129, "character": 2 } ], "type": { "type": "reference", - "id": 921, + "id": 967, "name": "GoTrueMFAApi", "dereferenced": { - "id": 921, + "id": 967, "name": "GoTrueMFAApi", "kind": 256, "kindString": "Interface", @@ -9279,14 +9335,14 @@ }, "children": [ { - "id": 925, + "id": 971, "name": "challenge", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 926, + "id": 972, "name": "challenge", "kind": 4096, "kindString": "Call signature", @@ -9296,17 +9352,17 @@ }, "parameters": [ { - "id": 927, + "id": 973, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 845, + "id": 890, "name": "MFAChallengeParams", "dereferenced": { - "id": 845, + "id": 890, "name": "MFAChallengeParams", "kind": 4194304, "kindString": "Type alias", @@ -9314,21 +9370,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 762, + "line": 810, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 846, + "id": 891, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 847, + "id": 892, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -9339,7 +9395,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 764, + "line": 812, "character": 2 } ], @@ -9354,14 +9410,14 @@ "title": "Properties", "kind": 1024, "children": [ - 847 + 892 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 762, + "line": 810, "character": 33 } ] @@ -9376,7 +9432,7 @@ "typeArguments": [ { "type": "reference", - "id": 889, + "id": 935, "name": "AuthMFAChallengeResponse" } ], @@ -9388,14 +9444,14 @@ ] }, { - "id": 934, + "id": 980, "name": "challengeAndVerify", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 935, + "id": 981, "name": "challengeAndVerify", "kind": 4096, "kindString": "Call signature", @@ -9405,17 +9461,17 @@ }, "parameters": [ { - "id": 936, + "id": 982, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 848, + "id": 893, "name": "MFAChallengeAndVerifyParams", "dereferenced": { - "id": 848, + "id": 893, "name": "MFAChallengeAndVerifyParams", "kind": 4194304, "kindString": "Type alias", @@ -9423,21 +9479,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 767, + "line": 815, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 849, + "id": 894, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 851, + "id": 896, "name": "code", "kind": 1024, "kindString": "Property", @@ -9448,7 +9504,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 771, + "line": 819, "character": 2 } ], @@ -9458,7 +9514,7 @@ } }, { - "id": 850, + "id": 895, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -9469,7 +9525,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 769, + "line": 817, "character": 2 } ], @@ -9484,15 +9540,15 @@ "title": "Properties", "kind": 1024, "children": [ - 851, - 850 + 896, + 895 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 767, + "line": 815, "character": 42 } ] @@ -9507,7 +9563,7 @@ "typeArguments": [ { "type": "reference", - "id": 852, + "id": 897, "name": "AuthMFAVerifyResponse" } ], @@ -9519,14 +9575,14 @@ ] }, { - "id": 922, + "id": 968, "name": "enroll", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 923, + "id": 969, "name": "enroll", "kind": 4096, "kindString": "Call signature", @@ -9537,17 +9593,17 @@ }, "parameters": [ { - "id": 924, + "id": 970, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 832, + "id": 877, "name": "MFAEnrollParams", "dereferenced": { - "id": 832, + "id": 877, "name": "MFAEnrollParams", "kind": 4194304, "kindString": "Type alias", @@ -9555,21 +9611,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 737, + "line": 785, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 833, + "id": 878, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 834, + "id": 879, "name": "factorType", "kind": 1024, "kindString": "Property", @@ -9580,7 +9636,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 739, + "line": 787, "character": 2 } ], @@ -9590,7 +9646,7 @@ } }, { - "id": 836, + "id": 881, "name": "friendlyName", "kind": 1024, "kindString": "Property", @@ -9603,7 +9659,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 743, + "line": 791, "character": 2 } ], @@ -9613,7 +9669,7 @@ } }, { - "id": 835, + "id": 880, "name": "issuer", "kind": 1024, "kindString": "Property", @@ -9626,7 +9682,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 741, + "line": 789, "character": 2 } ], @@ -9641,16 +9697,16 @@ "title": "Properties", "kind": 1024, "children": [ - 834, - 836, - 835 + 879, + 881, + 880 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 737, + "line": 785, "character": 30 } ] @@ -9665,7 +9721,7 @@ "typeArguments": [ { "type": "reference", - "id": 865, + "id": 910, "name": "AuthMFAEnrollResponse" } ], @@ -9677,14 +9733,14 @@ ] }, { - "id": 939, + "id": 985, "name": "getAuthenticatorAssuranceLevel", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 940, + "id": 986, "name": "getAuthenticatorAssuranceLevel", "kind": 4096, "kindString": "Call signature", @@ -9698,7 +9754,7 @@ "typeArguments": [ { "type": "reference", - "id": 910, + "id": 956, "name": "AuthMFAGetAuthenticatorAssuranceLevelResponse" } ], @@ -9710,14 +9766,14 @@ ] }, { - "id": 937, + "id": 983, "name": "listFactors", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 938, + "id": 984, "name": "listFactors", "kind": 4096, "kindString": "Call signature", @@ -9744,7 +9800,7 @@ "typeArguments": [ { "type": "reference", - "id": 899, + "id": 945, "name": "AuthMFAListFactorsResponse" } ], @@ -9756,14 +9812,14 @@ ] }, { - "id": 931, + "id": 977, "name": "unenroll", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 932, + "id": 978, "name": "unenroll", "kind": 4096, "kindString": "Call signature", @@ -9773,17 +9829,17 @@ }, "parameters": [ { - "id": 933, + "id": 979, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 837, + "id": 882, "name": "MFAUnenrollParams", "dereferenced": { - "id": 837, + "id": 882, "name": "MFAUnenrollParams", "kind": 4194304, "kindString": "Type alias", @@ -9791,21 +9847,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 746, + "line": 794, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 838, + "id": 883, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 839, + "id": 884, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -9816,7 +9872,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 748, + "line": 796, "character": 2 } ], @@ -9831,14 +9887,14 @@ "title": "Properties", "kind": 1024, "children": [ - 839 + 884 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 746, + "line": 794, "character": 32 } ] @@ -9853,7 +9909,7 @@ "typeArguments": [ { "type": "reference", - "id": 880, + "id": 926, "name": "AuthMFAUnenrollResponse" } ], @@ -9865,14 +9921,14 @@ ] }, { - "id": 928, + "id": 974, "name": "verify", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 929, + "id": 975, "name": "verify", "kind": 4096, "kindString": "Call signature", @@ -9882,17 +9938,17 @@ }, "parameters": [ { - "id": 930, + "id": 976, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 840, + "id": 885, "name": "MFAVerifyParams", "dereferenced": { - "id": 840, + "id": 885, "name": "MFAVerifyParams", "kind": 4194304, "kindString": "Type alias", @@ -9900,21 +9956,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 751, + "line": 799, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 841, + "id": 886, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 843, + "id": 888, "name": "challengeId", "kind": 1024, "kindString": "Property", @@ -9925,7 +9981,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 756, + "line": 804, "character": 2 } ], @@ -9935,7 +9991,7 @@ } }, { - "id": 844, + "id": 889, "name": "code", "kind": 1024, "kindString": "Property", @@ -9946,7 +10002,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 759, + "line": 807, "character": 2 } ], @@ -9956,7 +10012,7 @@ } }, { - "id": 842, + "id": 887, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -9967,7 +10023,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 753, + "line": 801, "character": 2 } ], @@ -9982,16 +10038,16 @@ "title": "Properties", "kind": 1024, "children": [ - 843, - 844, - 842 + 888, + 889, + 887 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 751, + "line": 799, "character": 30 } ] @@ -10006,7 +10062,7 @@ "typeArguments": [ { "type": "reference", - "id": 852, + "id": 897, "name": "AuthMFAVerifyResponse" } ], @@ -10023,20 +10079,20 @@ "title": "Methods", "kind": 2048, "children": [ - 925, - 934, - 922, - 939, - 937, - 931, - 928 + 971, + 980, + 968, + 985, + 983, + 977, + 974 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 899, + "line": 949, "character": 17 } ] @@ -10044,7 +10100,7 @@ } }, { - "id": 139, + "id": 143, "name": "exchangeCodeForSession", "kind": 2048, "kindString": "Method", @@ -10052,13 +10108,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 503, + "line": 571, "character": 8 } ], "signatures": [ { - "id": 140, + "id": 144, "name": "exchangeCodeForSession", "kind": 4096, "kindString": "Call signature", @@ -10068,7 +10124,7 @@ }, "parameters": [ { - "id": 141, + "id": 145, "name": "authCode", "kind": 32768, "kindString": "Parameter", @@ -10084,7 +10140,7 @@ "typeArguments": [ { "type": "reference", - "id": 532, + "id": 557, "name": "AuthTokenResponse" } ], @@ -10096,7 +10152,7 @@ ] }, { - "id": 178, + "id": 182, "name": "getSession", "kind": 2048, "kindString": "Method", @@ -10104,19 +10160,20 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 849, + "line": 926, "character": 8 } ], "signatures": [ { - "id": 179, + "id": 183, "name": "getSession", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Returns the session, refreshing it if necessary.\nThe session returned can be null if the session is not detected which can happen in the event a user is not signed-in or has logged out." + "shortText": "Returns the session, refreshing it if necessary.", + "text": "The session returned can be null if the session is not detected which can happen in the event a user is not signed-in or has logged out.\n\n**IMPORTANT:** This method loads values directly from the storage attached\nto the client. If that storage is based on request cookies for example,\nthe values in it may not be authentic and therefore it's strongly advised\nagainst using this method and its results in such circumstances. A warning\nwill be emitted if this is detected. Use {@link #getUser()} instead.\n" }, "type": { "type": "reference", @@ -10127,14 +10184,14 @@ { "type": "reflection", "declaration": { - "id": 180, + "id": 184, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 181, + "id": 185, "name": "data", "kind": 1024, "kindString": "Property", @@ -10142,21 +10199,21 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 940, + "line": 1028, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 182, + "id": 186, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 183, + "id": 187, "name": "session", "kind": 1024, "kindString": "Property", @@ -10164,13 +10221,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 941, + "line": 1029, "character": 14 } ], "type": { "type": "reference", - "id": 578, + "id": 618, "name": "Session" } } @@ -10180,7 +10237,7 @@ "title": "Properties", "kind": 1024, "children": [ - 183 + 187 ] } ] @@ -10188,7 +10245,7 @@ } }, { - "id": 184, + "id": 188, "name": "error", "kind": 1024, "kindString": "Property", @@ -10196,7 +10253,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 943, + "line": 1031, "character": 12 } ], @@ -10211,8 +10268,8 @@ "title": "Properties", "kind": 1024, "children": [ - 181, - 184 + 185, + 188 ] } ] @@ -10221,14 +10278,14 @@ { "type": "reflection", "declaration": { - "id": 185, + "id": 189, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 186, + "id": 190, "name": "data", "kind": 1024, "kindString": "Property", @@ -10236,21 +10293,21 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 946, + "line": 1034, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 187, + "id": 191, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 188, + "id": 192, "name": "session", "kind": 1024, "kindString": "Property", @@ -10258,7 +10315,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 947, + "line": 1035, "character": 14 } ], @@ -10273,7 +10330,7 @@ "title": "Properties", "kind": 1024, "children": [ - 188 + 192 ] } ] @@ -10281,7 +10338,7 @@ } }, { - "id": 189, + "id": 193, "name": "error", "kind": 1024, "kindString": "Property", @@ -10289,13 +10346,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 949, + "line": 1037, "character": 12 } ], "type": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } } @@ -10305,8 +10362,8 @@ "title": "Properties", "kind": 1024, "children": [ - 186, - 189 + 190, + 193 ] } ] @@ -10315,14 +10372,14 @@ { "type": "reflection", "declaration": { - "id": 190, + "id": 194, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 191, + "id": 195, "name": "data", "kind": 1024, "kindString": "Property", @@ -10330,21 +10387,21 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 952, + "line": 1040, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 192, + "id": 196, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 193, + "id": 197, "name": "session", "kind": 1024, "kindString": "Property", @@ -10352,7 +10409,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 953, + "line": 1041, "character": 14 } ], @@ -10367,7 +10424,7 @@ "title": "Properties", "kind": 1024, "children": [ - 193 + 197 ] } ] @@ -10375,7 +10432,7 @@ } }, { - "id": 194, + "id": 198, "name": "error", "kind": 1024, "kindString": "Property", @@ -10383,7 +10440,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 955, + "line": 1043, "character": 12 } ], @@ -10398,8 +10455,8 @@ "title": "Properties", "kind": 1024, "children": [ - 191, - 194 + 195, + 198 ] } ] @@ -10416,7 +10473,7 @@ ] }, { - "id": 241, + "id": 245, "name": "getUser", "kind": 2048, "kindString": "Method", @@ -10424,23 +10481,23 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1052, + "line": 1166, "character": 8 } ], "signatures": [ { - "id": 242, + "id": 246, "name": "getUser", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Gets the current user details if there is an existing session." + "shortText": "Gets the current user details if there is an existing session. This method\nperforms a network request to the Supabase Auth server, so the returned\nvalue is authentic and can be used to base authorization rules on." }, "parameters": [ { - "id": 243, + "id": 247, "name": "jwt", "kind": 32768, "kindString": "Parameter", @@ -10448,7 +10505,7 @@ "isOptional": true }, "comment": { - "shortText": "Takes in an optional access token jwt. If no jwt is provided, getUser() will attempt to get the jwt from the current session.\n" + "shortText": "Takes in an optional access token JWT. If no JWT is provided, the JWT from the current session is used.\n" }, "type": { "type": "intrinsic", @@ -10461,7 +10518,7 @@ "typeArguments": [ { "type": "reference", - "id": 567, + "id": 607, "name": "UserResponse" } ], @@ -10473,7 +10530,7 @@ ] }, { - "id": 345, + "id": 349, "name": "getUserIdentities", "kind": 2048, "kindString": "Method", @@ -10481,13 +10538,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1591, + "line": 1710, "character": 8 } ], "signatures": [ { - "id": 346, + "id": 350, "name": "getUserIdentities", "kind": 4096, "kindString": "Call signature", @@ -10504,14 +10561,14 @@ { "type": "reflection", "declaration": { - "id": 347, + "id": 351, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 348, + "id": 352, "name": "data", "kind": 1024, "kindString": "Property", @@ -10519,21 +10576,21 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1593, + "line": 1712, "character": 8 } ], "type": { "type": "reflection", "declaration": { - "id": 349, + "id": 353, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 350, + "id": 354, "name": "identities", "kind": 1024, "kindString": "Property", @@ -10541,7 +10598,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1594, + "line": 1713, "character": 10 } ], @@ -10549,7 +10606,7 @@ "type": "array", "elementType": { "type": "reference", - "id": 590, + "id": 630, "name": "UserIdentity" } } @@ -10560,7 +10617,7 @@ "title": "Properties", "kind": 1024, "children": [ - 350 + 354 ] } ] @@ -10568,7 +10625,7 @@ } }, { - "id": 351, + "id": 355, "name": "error", "kind": 1024, "kindString": "Property", @@ -10576,7 +10633,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1596, + "line": 1715, "character": 8 } ], @@ -10591,8 +10648,8 @@ "title": "Properties", "kind": 1024, "children": [ - 348, - 351 + 352, + 355 ] } ] @@ -10601,14 +10658,14 @@ { "type": "reflection", "declaration": { - "id": 352, + "id": 356, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 353, + "id": 357, "name": "data", "kind": 1024, "kindString": "Property", @@ -10616,7 +10673,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1598, + "line": 1717, "character": 8 } ], @@ -10626,7 +10683,7 @@ } }, { - "id": 354, + "id": 358, "name": "error", "kind": 1024, "kindString": "Property", @@ -10634,13 +10691,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1598, + "line": 1717, "character": 20 } ], "type": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } } @@ -10650,8 +10707,8 @@ "title": "Properties", "kind": 1024, "children": [ - 353, - 354 + 357, + 358 ] } ] @@ -10668,7 +10725,7 @@ ] }, { - "id": 126, + "id": 127, "name": "initialize", "kind": 2048, "kindString": "Method", @@ -10676,13 +10733,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 259, + "line": 278, "character": 8 } ], "signatures": [ { - "id": 127, + "id": 128, "name": "initialize", "kind": 4096, "kindString": "Call signature", @@ -10695,7 +10752,7 @@ "typeArguments": [ { "type": "reference", - "id": 974, + "id": 1022, "name": "InitializeResult" } ], @@ -10707,7 +10764,7 @@ ] }, { - "id": 355, + "id": 359, "name": "linkIdentity", "kind": 2048, "kindString": "Method", @@ -10715,13 +10772,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1615, + "line": 1734, "character": 8 } ], "signatures": [ { - "id": 356, + "id": 360, "name": "linkIdentity", "kind": 4096, "kindString": "Call signature", @@ -10731,17 +10788,17 @@ }, "parameters": [ { - "id": 357, + "id": 361, "name": "credentials", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 715, + "id": 760, "name": "SignInWithOAuthCredentials", "dereferenced": { - "id": 715, + "id": 760, "name": "SignInWithOAuthCredentials", "kind": 4194304, "kindString": "Type alias", @@ -10749,21 +10806,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 518, + "line": 566, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 716, + "id": 761, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 718, + "id": 763, "name": "options", "kind": 1024, "kindString": "Property", @@ -10773,21 +10830,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 521, + "line": 569, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 719, + "id": 764, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 722, + "id": 767, "name": "queryParams", "kind": 1024, "kindString": "Property", @@ -10800,14 +10857,14 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 527, + "line": 575, "character": 4 } ], "type": { "type": "reflection", "declaration": { - "id": 723, + "id": 768, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -10815,19 +10872,19 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 527, + "line": 575, "character": 18 } ], "indexSignature": { - "id": 724, + "id": 769, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 725, + "id": 770, "name": "key", "kind": 32768, "flags": {}, @@ -10846,7 +10903,7 @@ } }, { - "id": 720, + "id": 765, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -10859,7 +10916,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 523, + "line": 571, "character": 4 } ], @@ -10869,7 +10926,7 @@ } }, { - "id": 721, + "id": 766, "name": "scopes", "kind": 1024, "kindString": "Property", @@ -10882,7 +10939,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 525, + "line": 573, "character": 4 } ], @@ -10892,7 +10949,7 @@ } }, { - "id": 726, + "id": 771, "name": "skipBrowserRedirect", "kind": 1024, "kindString": "Property", @@ -10905,7 +10962,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 529, + "line": 577, "character": 4 } ], @@ -10920,17 +10977,17 @@ "title": "Properties", "kind": 1024, "children": [ - 722, - 720, - 721, - 726 + 767, + 765, + 766, + 771 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 521, + "line": 569, "character": 12 } ] @@ -10938,7 +10995,7 @@ } }, { - "id": 717, + "id": 762, "name": "provider", "kind": 1024, "kindString": "Property", @@ -10949,16 +11006,16 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 520, + "line": 568, "character": 2 } ], "type": { "type": "reference", - "id": 472, + "id": 478, "name": "Provider", "dereferenced": { - "id": 472, + "id": 478, "name": "Provider", "kind": 4194304, "kindString": "Type alias", @@ -11071,15 +11128,15 @@ "title": "Properties", "kind": 1024, "children": [ - 718, - 717 + 763, + 762 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 518, + "line": 566, "character": 41 } ] @@ -11094,7 +11151,7 @@ "typeArguments": [ { "type": "reference", - "id": 545, + "id": 585, "name": "OAuthResponse" } ], @@ -11106,7 +11163,7 @@ ] }, { - "id": 317, + "id": 321, "name": "onAuthStateChange", "kind": 2048, "kindString": "Method", @@ -11114,13 +11171,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1487, + "line": 1608, "character": 2 } ], "signatures": [ { - "id": 318, + "id": 322, "name": "onAuthStateChange", "kind": 4096, "kindString": "Call signature", @@ -11130,7 +11187,7 @@ }, "parameters": [ { - "id": 319, + "id": 323, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -11141,33 +11198,33 @@ "type": { "type": "reflection", "declaration": { - "id": 320, + "id": 324, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 321, + "id": 325, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 322, + "id": 326, "name": "event", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 474, + "id": 480, "name": "AuthChangeEvent" } }, { - "id": 323, + "id": 327, "name": "session", "kind": 32768, "kindString": "Parameter", @@ -11181,7 +11238,7 @@ }, { "type": "reference", - "id": 578, + "id": 618, "name": "Session" } ] @@ -11218,14 +11275,14 @@ "type": { "type": "reflection", "declaration": { - "id": 324, + "id": 328, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 325, + "id": 329, "name": "data", "kind": 1024, "kindString": "Property", @@ -11233,21 +11290,21 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1490, + "line": 1611, "character": 4 } ], "type": { "type": "reflection", "declaration": { - "id": 326, + "id": 330, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 327, + "id": 331, "name": "subscription", "kind": 1024, "kindString": "Property", @@ -11255,23 +11312,23 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1490, + "line": 1611, "character": 12 } ], "type": { "type": "reference", - "id": 656, + "id": 696, "name": "Subscription", "dereferenced": { - "id": 656, + "id": 696, "name": "Subscription", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 657, + "id": 697, "name": "id", "kind": 1024, "kindString": "Property", @@ -11282,7 +11339,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 399, + "line": 440, "character": 2 } ], @@ -11292,7 +11349,7 @@ } }, { - "id": 658, + "id": 698, "name": "callback", "kind": 2048, "kindString": "Method", @@ -11300,13 +11357,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 403, + "line": 444, "character": 2 } ], "signatures": [ { - "id": 659, + "id": 699, "name": "callback", "kind": 4096, "kindString": "Call signature", @@ -11316,17 +11373,17 @@ }, "parameters": [ { - "id": 660, + "id": 700, "name": "event", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 474, + "id": 480, "name": "AuthChangeEvent", "dereferenced": { - "id": 474, + "id": 480, "name": "AuthChangeEvent", "kind": 4194304, "kindString": "Type alias", @@ -11366,7 +11423,7 @@ "value": "USER_UPDATED" }, { - "id": 473, + "id": 479, "name": "AuthChangeEventMFA", "kind": 4194304, "kindString": "Type alias", @@ -11389,7 +11446,7 @@ } }, { - "id": 661, + "id": 701, "name": "session", "kind": 32768, "kindString": "Parameter", @@ -11403,7 +11460,7 @@ }, { "type": "reference", - "id": 578, + "id": 618, "name": "Session" } ] @@ -11418,7 +11475,7 @@ ] }, { - "id": 662, + "id": 702, "name": "unsubscribe", "kind": 2048, "kindString": "Method", @@ -11426,13 +11483,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 407, + "line": 448, "character": 2 } ], "signatures": [ { - "id": 663, + "id": 703, "name": "unsubscribe", "kind": 4096, "kindString": "Call signature", @@ -11453,22 +11510,22 @@ "title": "Properties", "kind": 1024, "children": [ - 657 + 697 ] }, { "title": "Methods", "kind": 2048, "children": [ - 658, - 662 + 698, + 702 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 395, + "line": 436, "character": 17 } ] @@ -11481,7 +11538,7 @@ "title": "Properties", "kind": 1024, "children": [ - 327 + 331 ] } ] @@ -11494,7 +11551,7 @@ "title": "Properties", "kind": 1024, "children": [ - 325 + 329 ] } ] @@ -11504,7 +11561,7 @@ ] }, { - "id": 171, + "id": 175, "name": "reauthenticate", "kind": 2048, "kindString": "Method", @@ -11512,13 +11569,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 768, + "line": 838, "character": 8 } ], "signatures": [ { - "id": 172, + "id": 176, "name": "reauthenticate", "kind": 4096, "kindString": "Call signature", @@ -11531,7 +11588,7 @@ "typeArguments": [ { "type": "reference", - "id": 504, + "id": 515, "name": "AuthResponse" } ], @@ -11543,7 +11600,7 @@ ] }, { - "id": 278, + "id": 282, "name": "refreshSession", "kind": 2048, "kindString": "Method", @@ -11551,13 +11608,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1253, + "line": 1374, "character": 8 } ], "signatures": [ { - "id": 279, + "id": 283, "name": "refreshSession", "kind": 4096, "kindString": "Call signature", @@ -11567,7 +11624,7 @@ }, "parameters": [ { - "id": 280, + "id": 284, "name": "currentSession", "kind": 32768, "kindString": "Parameter", @@ -11580,14 +11637,14 @@ "type": { "type": "reflection", "declaration": { - "id": 281, + "id": 285, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 282, + "id": 286, "name": "refresh_token", "kind": 1024, "kindString": "Property", @@ -11595,7 +11652,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1253, + "line": 1374, "character": 42 } ], @@ -11610,7 +11667,7 @@ "title": "Properties", "kind": 1024, "children": [ - 282 + 286 ] } ] @@ -11623,7 +11680,7 @@ "typeArguments": [ { "type": "reference", - "id": 504, + "id": 515, "name": "AuthResponse" } ], @@ -11635,7 +11692,7 @@ ] }, { - "id": 175, + "id": 179, "name": "resend", "kind": 2048, "kindString": "Method", @@ -11643,13 +11700,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 803, + "line": 873, "character": 8 } ], "signatures": [ { - "id": 176, + "id": 180, "name": "resend", "kind": 4096, "kindString": "Call signature", @@ -11659,17 +11716,17 @@ }, "parameters": [ { - "id": 177, + "id": 181, "name": "credentials", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 758, + "id": 803, "name": "ResendParams", "dereferenced": { - "id": 758, + "id": 803, "name": "ResendParams", "kind": 4194304, "kindString": "Type alias", @@ -11677,7 +11734,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 598, + "line": 646, "character": 12 } ], @@ -11687,14 +11744,14 @@ { "type": "reflection", "declaration": { - "id": 759, + "id": 804, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 761, + "id": 806, "name": "email", "kind": 1024, "kindString": "Property", @@ -11702,7 +11759,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 601, + "line": 649, "character": 6 } ], @@ -11712,7 +11769,7 @@ } }, { - "id": 762, + "id": 807, "name": "options", "kind": 1024, "kindString": "Property", @@ -11722,21 +11779,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 602, + "line": 650, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 763, + "id": 808, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 765, + "id": 810, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -11749,7 +11806,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 606, + "line": 654, "character": 8 } ], @@ -11759,7 +11816,7 @@ } }, { - "id": 764, + "id": 809, "name": "emailRedirectTo", "kind": 1024, "kindString": "Property", @@ -11772,7 +11829,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 604, + "line": 652, "character": 8 } ], @@ -11787,15 +11844,15 @@ "title": "Properties", "kind": 1024, "children": [ - 765, - 764 + 810, + 809 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 602, + "line": 650, "character": 16 } ] @@ -11803,7 +11860,7 @@ } }, { - "id": 760, + "id": 805, "name": "type", "kind": 1024, "kindString": "Property", @@ -11811,7 +11868,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 600, + "line": 648, "character": 6 } ], @@ -11820,7 +11877,7 @@ "typeArguments": [ { "type": "reference", - "id": 757, + "id": 802, "name": "EmailOtpType" }, { @@ -11848,16 +11905,16 @@ "title": "Properties", "kind": 1024, "children": [ - 761, - 762, - 760 + 806, + 807, + 805 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 599, + "line": 647, "character": 4 } ] @@ -11866,14 +11923,14 @@ { "type": "reflection", "declaration": { - "id": 766, + "id": 811, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 769, + "id": 814, "name": "options", "kind": 1024, "kindString": "Property", @@ -11883,21 +11940,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 612, + "line": 660, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 770, + "id": 815, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 771, + "id": 816, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -11910,7 +11967,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 614, + "line": 662, "character": 8 } ], @@ -11925,14 +11982,14 @@ "title": "Properties", "kind": 1024, "children": [ - 771 + 816 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 612, + "line": 660, "character": 16 } ] @@ -11940,7 +11997,7 @@ } }, { - "id": 768, + "id": 813, "name": "phone", "kind": 1024, "kindString": "Property", @@ -11948,7 +12005,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 611, + "line": 659, "character": 6 } ], @@ -11958,7 +12015,7 @@ } }, { - "id": 767, + "id": 812, "name": "type", "kind": 1024, "kindString": "Property", @@ -11966,7 +12023,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 610, + "line": 658, "character": 6 } ], @@ -11975,7 +12032,7 @@ "typeArguments": [ { "type": "reference", - "id": 756, + "id": 801, "name": "MobileOtpType" }, { @@ -12003,16 +12060,16 @@ "title": "Properties", "kind": 1024, "children": [ - 769, - 768, - 767 + 814, + 813, + 812 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 609, + "line": 657, "character": 4 } ] @@ -12029,7 +12086,7 @@ "typeArguments": [ { "type": "reference", - "id": 517, + "id": 542, "name": "AuthOtpResponse" } ], @@ -12041,7 +12098,7 @@ ] }, { - "id": 331, + "id": 335, "name": "resetPasswordForEmail", "kind": 2048, "kindString": "Method", @@ -12049,13 +12106,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1543, + "line": 1664, "character": 8 } ], "signatures": [ { - "id": 332, + "id": 336, "name": "resetPasswordForEmail", "kind": 4096, "kindString": "Call signature", @@ -12065,7 +12122,7 @@ }, "parameters": [ { - "id": 333, + "id": 337, "name": "email", "kind": 32768, "kindString": "Parameter", @@ -12079,7 +12136,7 @@ } }, { - "id": 334, + "id": 338, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -12087,14 +12144,14 @@ "type": { "type": "reflection", "declaration": { - "id": 335, + "id": 339, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 337, + "id": 341, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -12107,7 +12164,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1547, + "line": 1668, "character": 6 } ], @@ -12117,7 +12174,7 @@ } }, { - "id": 336, + "id": 340, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -12130,7 +12187,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1546, + "line": 1667, "character": 6 } ], @@ -12145,8 +12202,8 @@ "title": "Properties", "kind": 1024, "children": [ - 337, - 336 + 341, + 340 ] } ] @@ -12161,70 +12218,6 @@ { "type": "union", "types": [ - { - "type": "reflection", - "declaration": { - "id": 338, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 339, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 1551, - "character": 8 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 340, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {} - } - } - }, - { - "id": 341, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 1552, - "character": 8 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 339, - 341 - ] - } - ] - } - }, { "type": "reflection", "declaration": { @@ -12243,17 +12236,23 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1554, + "line": 1672, "character": 8 } ], "type": { - "type": "literal", - "value": null + "type": "reflection", + "declaration": { + "id": 344, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {} + } } }, { - "id": 344, + "id": 345, "name": "error", "kind": 1024, "kindString": "Property", @@ -12261,14 +12260,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1554, - "character": 20 + "line": 1673, + "character": 8 } ], "type": { - "type": "reference", - "id": 1010, - "name": "AuthError" + "type": "literal", + "value": null } } ], @@ -12278,7 +12276,66 @@ "kind": 1024, "children": [ 343, - 344 + 345 + ] + } + ] + } + }, + { + "type": "reflection", + "declaration": { + "id": 346, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 347, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 1675, + "character": 8 + } + ], + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 348, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 1675, + "character": 20 + } + ], + "type": { + "type": "reference", + "id": 1058, + "name": "AuthError" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 347, + 348 ] } ] @@ -12295,7 +12352,7 @@ ] }, { - "id": 266, + "id": 270, "name": "setSession", "kind": 2048, "kindString": "Method", @@ -12303,13 +12360,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1178, + "line": 1299, "character": 8 } ], "signatures": [ { - "id": 267, + "id": 271, "name": "setSession", "kind": 4096, "kindString": "Call signature", @@ -12319,7 +12376,7 @@ }, "parameters": [ { - "id": 268, + "id": 272, "name": "currentSession", "kind": 32768, "kindString": "Parameter", @@ -12330,14 +12387,14 @@ "type": { "type": "reflection", "declaration": { - "id": 269, + "id": 273, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 270, + "id": 274, "name": "access_token", "kind": 1024, "kindString": "Property", @@ -12345,7 +12402,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1179, + "line": 1300, "character": 4 } ], @@ -12355,7 +12412,7 @@ } }, { - "id": 271, + "id": 275, "name": "refresh_token", "kind": 1024, "kindString": "Property", @@ -12363,7 +12420,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1180, + "line": 1301, "character": 4 } ], @@ -12378,8 +12435,8 @@ "title": "Properties", "kind": 1024, "children": [ - 270, - 271 + 274, + 275 ] } ] @@ -12392,7 +12449,7 @@ "typeArguments": [ { "type": "reference", - "id": 504, + "id": 515, "name": "AuthResponse" } ], @@ -12404,109 +12461,66 @@ ] }, { - "id": 159, - "name": "signInWithIdToken", + "id": 131, + "name": "signInAnonymously", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 554, + "line": 368, "character": 8 } ], "signatures": [ { - "id": 160, - "name": "signInWithIdToken", + "id": 132, + "name": "signInAnonymously", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Allows signing in with an OIDC ID token. The authentication provider used\nshould be enabled and configured." + "shortText": "Creates a new anonymous user.", + "returns": "A session where the is_anonymous claim in the access token JWT set to true\n" }, "parameters": [ { - "id": 161, + "id": 133, "name": "credentials", "kind": 32768, "kindString": "Parameter", - "flags": {}, + "flags": { + "isOptional": true + }, "type": { "type": "reference", - "id": 727, - "name": "SignInWithIdTokenCredentials", + "id": 706, + "name": "SignInAnonymouslyCredentials", "dereferenced": { - "id": 727, - "name": "SignInWithIdTokenCredentials", + "id": 706, + "name": "SignInAnonymouslyCredentials", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/lib/types.ts", - "line": 533, + "line": 455, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 728, + "id": 707, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 731, - "name": "access_token", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "If the ID token contains an `at_hash` claim, then the hash of this value is compared to the value in the ID token." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 539, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 732, - "name": "nonce", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "If the ID token contains a `nonce` claim, then the hash of this value is compared to the value in the ID token." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 541, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 733, + "id": 708, "name": "options", "kind": 1024, "kindString": "Property", @@ -12516,21 +12530,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 542, + "line": 456, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 734, + "id": 709, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 735, + "id": 711, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -12543,7 +12557,240 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 544, + "line": 464, + "character": 4 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 710, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.", + "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n" + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 462, + "character": 4 + } + ], + "type": { + "type": "intrinsic", + "name": "object" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 711, + 710 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 456, + "character": 12 + } + ] + } + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 708 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 455, + "character": 43 + } + ] + } + } + } + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "id": 515, + "name": "AuthResponse" + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + }, + { + "id": 163, + "name": "signInWithIdToken", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 621, + "character": 8 + } + ], + "signatures": [ + { + "id": 164, + "name": "signInWithIdToken", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Allows signing in with an OIDC ID token. The authentication provider used\nshould be enabled and configured." + }, + "parameters": [ + { + "id": 165, + "name": "credentials", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "id": 772, + "name": "SignInWithIdTokenCredentials", + "dereferenced": { + "id": 772, + "name": "SignInWithIdTokenCredentials", + "kind": 4194304, + "kindString": "Type alias", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 581, + "character": 12 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 773, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 776, + "name": "access_token", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "If the ID token contains an `at_hash` claim, then the hash of this value is compared to the value in the ID token." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 587, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 777, + "name": "nonce", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "If the ID token contains a `nonce` claim, then the hash of this value is compared to the value in the ID token." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 589, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 778, + "name": "options", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 590, + "character": 2 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 779, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 780, + "name": "captchaToken", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "Verification token received when the user completes the captcha on the site." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 592, "character": 4 } ], @@ -12558,14 +12805,14 @@ "title": "Properties", "kind": 1024, "children": [ - 735 + 780 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 542, + "line": 590, "character": 12 } ] @@ -12573,7 +12820,7 @@ } }, { - "id": 729, + "id": 774, "name": "provider", "kind": 1024, "kindString": "Property", @@ -12584,7 +12831,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 535, + "line": 583, "character": 2 } ], @@ -12615,7 +12862,7 @@ } }, { - "id": 730, + "id": 775, "name": "token", "kind": 1024, "kindString": "Property", @@ -12626,7 +12873,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 537, + "line": 585, "character": 2 } ], @@ -12641,18 +12888,18 @@ "title": "Properties", "kind": 1024, "children": [ - 731, - 732, - 733, - 729, - 730 + 776, + 777, + 778, + 774, + 775 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 533, + "line": 581, "character": 43 } ] @@ -12667,7 +12914,7 @@ "typeArguments": [ { "type": "reference", - "id": 532, + "id": 557, "name": "AuthTokenResponse" } ], @@ -12679,7 +12926,7 @@ ] }, { - "id": 136, + "id": 140, "name": "signInWithOAuth", "kind": 2048, "kindString": "Method", @@ -12687,13 +12934,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 489, + "line": 557, "character": 8 } ], "signatures": [ { - "id": 137, + "id": 141, "name": "signInWithOAuth", "kind": 4096, "kindString": "Call signature", @@ -12703,17 +12950,17 @@ }, "parameters": [ { - "id": 138, + "id": 142, "name": "credentials", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 715, + "id": 760, "name": "SignInWithOAuthCredentials", "dereferenced": { - "id": 715, + "id": 760, "name": "SignInWithOAuthCredentials", "kind": 4194304, "kindString": "Type alias", @@ -12721,21 +12968,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 518, + "line": 566, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 716, + "id": 761, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 718, + "id": 763, "name": "options", "kind": 1024, "kindString": "Property", @@ -12745,21 +12992,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 521, + "line": 569, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 719, + "id": 764, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 722, + "id": 767, "name": "queryParams", "kind": 1024, "kindString": "Property", @@ -12772,14 +13019,14 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 527, + "line": 575, "character": 4 } ], "type": { "type": "reflection", "declaration": { - "id": 723, + "id": 768, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -12787,19 +13034,19 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 527, + "line": 575, "character": 18 } ], "indexSignature": { - "id": 724, + "id": 769, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 725, + "id": 770, "name": "key", "kind": 32768, "flags": {}, @@ -12818,7 +13065,7 @@ } }, { - "id": 720, + "id": 765, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -12831,7 +13078,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 523, + "line": 571, "character": 4 } ], @@ -12841,7 +13088,7 @@ } }, { - "id": 721, + "id": 766, "name": "scopes", "kind": 1024, "kindString": "Property", @@ -12854,7 +13101,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 525, + "line": 573, "character": 4 } ], @@ -12864,7 +13111,7 @@ } }, { - "id": 726, + "id": 771, "name": "skipBrowserRedirect", "kind": 1024, "kindString": "Property", @@ -12877,7 +13124,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 529, + "line": 577, "character": 4 } ], @@ -12892,17 +13139,17 @@ "title": "Properties", "kind": 1024, "children": [ - 722, - 720, - 721, - 726 + 767, + 765, + 766, + 771 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 521, + "line": 569, "character": 12 } ] @@ -12910,7 +13157,7 @@ } }, { - "id": 717, + "id": 762, "name": "provider", "kind": 1024, "kindString": "Property", @@ -12921,16 +13168,16 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 520, + "line": 568, "character": 2 } ], "type": { "type": "reference", - "id": 472, + "id": 478, "name": "Provider", "dereferenced": { - "id": 472, + "id": 478, "name": "Provider", "kind": 4194304, "kindString": "Type alias", @@ -13043,15 +13290,15 @@ "title": "Properties", "kind": 1024, "children": [ - 718, - 717 + 763, + 762 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 518, + "line": 566, "character": 41 } ] @@ -13066,7 +13313,7 @@ "typeArguments": [ { "type": "reference", - "id": 545, + "id": 585, "name": "OAuthResponse" } ], @@ -13078,7 +13325,7 @@ ] }, { - "id": 162, + "id": 166, "name": "signInWithOtp", "kind": 2048, "kindString": "Method", @@ -13086,13 +13333,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 611, + "line": 678, "character": 8 } ], "signatures": [ { - "id": 163, + "id": 167, "name": "signInWithOtp", "kind": 4096, "kindString": "Call signature", @@ -13103,17 +13350,17 @@ }, "parameters": [ { - "id": 164, + "id": 168, "name": "credentials", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 697, + "id": 742, "name": "SignInWithPasswordlessCredentials", "dereferenced": { - "id": 697, + "id": 742, "name": "SignInWithPasswordlessCredentials", "kind": 4194304, "kindString": "Type alias", @@ -13121,7 +13368,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 479, + "line": 527, "character": 12 } ], @@ -13131,14 +13378,14 @@ { "type": "reflection", "declaration": { - "id": 698, + "id": 743, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 699, + "id": 744, "name": "email", "kind": 1024, "kindString": "Property", @@ -13149,7 +13396,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 482, + "line": 530, "character": 6 } ], @@ -13159,7 +13406,7 @@ } }, { - "id": 700, + "id": 745, "name": "options", "kind": 1024, "kindString": "Property", @@ -13169,21 +13416,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 483, + "line": 531, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 701, + "id": 746, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 705, + "id": 750, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -13196,7 +13443,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 495, + "line": 543, "character": 8 } ], @@ -13206,7 +13453,7 @@ } }, { - "id": 704, + "id": 749, "name": "data", "kind": 1024, "kindString": "Property", @@ -13214,13 +13461,13 @@ "isOptional": true }, "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", + "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.", "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n" }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 493, + "line": 541, "character": 8 } ], @@ -13230,7 +13477,7 @@ } }, { - "id": 702, + "id": 747, "name": "emailRedirectTo", "kind": 1024, "kindString": "Property", @@ -13243,7 +13490,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 485, + "line": 533, "character": 8 } ], @@ -13253,7 +13500,7 @@ } }, { - "id": 703, + "id": 748, "name": "shouldCreateUser", "kind": 1024, "kindString": "Property", @@ -13266,7 +13513,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 487, + "line": 535, "character": 8 } ], @@ -13281,17 +13528,17 @@ "title": "Properties", "kind": 1024, "children": [ - 705, - 704, - 702, - 703 + 750, + 749, + 747, + 748 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 483, + "line": 531, "character": 16 } ] @@ -13304,15 +13551,15 @@ "title": "Properties", "kind": 1024, "children": [ - 699, - 700 + 744, + 745 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 480, + "line": 528, "character": 4 } ] @@ -13321,14 +13568,14 @@ { "type": "reflection", "declaration": { - "id": 706, + "id": 751, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 708, + "id": 753, "name": "options", "kind": 1024, "kindString": "Property", @@ -13338,21 +13585,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 501, + "line": 549, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 709, + "id": 754, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 712, + "id": 757, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -13365,7 +13612,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 511, + "line": 559, "character": 8 } ], @@ -13375,7 +13622,7 @@ } }, { - "id": 713, + "id": 758, "name": "channel", "kind": 1024, "kindString": "Property", @@ -13388,7 +13635,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 513, + "line": 561, "character": 8 } ], @@ -13407,7 +13654,7 @@ } }, { - "id": 711, + "id": 756, "name": "data", "kind": 1024, "kindString": "Property", @@ -13415,13 +13662,13 @@ "isOptional": true }, "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", + "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.", "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n" }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 509, + "line": 557, "character": 8 } ], @@ -13431,7 +13678,7 @@ } }, { - "id": 710, + "id": 755, "name": "shouldCreateUser", "kind": 1024, "kindString": "Property", @@ -13444,7 +13691,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 503, + "line": 551, "character": 8 } ], @@ -13459,17 +13706,17 @@ "title": "Properties", "kind": 1024, "children": [ - 712, - 713, - 711, - 710 + 757, + 758, + 756, + 755 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 501, + "line": 549, "character": 16 } ] @@ -13477,7 +13724,7 @@ } }, { - "id": 707, + "id": 752, "name": "phone", "kind": 1024, "kindString": "Property", @@ -13488,7 +13735,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 500, + "line": 548, "character": 6 } ], @@ -13503,15 +13750,15 @@ "title": "Properties", "kind": 1024, "children": [ - 708, - 707 + 753, + 752 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 498, + "line": 546, "character": 4 } ] @@ -13528,7 +13775,7 @@ "typeArguments": [ { "type": "reference", - "id": 517, + "id": 542, "name": "AuthOtpResponse" } ], @@ -13540,7 +13787,7 @@ ] }, { - "id": 133, + "id": 137, "name": "signInWithPassword", "kind": 2048, "kindString": "Method", @@ -13548,13 +13795,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 433, + "line": 492, "character": 8 } ], "signatures": [ { - "id": 134, + "id": 138, "name": "signInWithPassword", "kind": 4096, "kindString": "Call signature", @@ -13565,17 +13812,17 @@ }, "parameters": [ { - "id": 135, + "id": 139, "name": "credentials", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 683, + "id": 729, "name": "SignInWithPasswordCredentials", "dereferenced": { - "id": 683, + "id": 729, "name": "SignInWithPasswordCredentials", "kind": 4194304, "kindString": "Type alias", @@ -13583,7 +13830,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 451, + "line": 505, "character": 12 } ], @@ -13593,14 +13840,14 @@ { "type": "reflection", "declaration": { - "id": 684, + "id": 730, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 685, + "id": 731, "name": "email", "kind": 1024, "kindString": "Property", @@ -13611,7 +13858,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 454, + "line": 508, "character": 6 } ], @@ -13621,7 +13868,7 @@ } }, { - "id": 687, + "id": 733, "name": "options", "kind": 1024, "kindString": "Property", @@ -13631,21 +13878,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 457, + "line": 511, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 688, + "id": 734, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 689, + "id": 735, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -13658,7 +13905,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 459, + "line": 513, "character": 8 } ], @@ -13673,14 +13920,14 @@ "title": "Properties", "kind": 1024, "children": [ - 689 + 735 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 457, + "line": 511, "character": 16 } ] @@ -13688,7 +13935,7 @@ } }, { - "id": 686, + "id": 732, "name": "password", "kind": 1024, "kindString": "Property", @@ -13699,7 +13946,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 456, + "line": 510, "character": 6 } ], @@ -13714,16 +13961,16 @@ "title": "Properties", "kind": 1024, "children": [ - 685, - 687, - 686 + 731, + 733, + 732 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 452, + "line": 506, "character": 4 } ] @@ -13732,14 +13979,14 @@ { "type": "reflection", "declaration": { - "id": 690, + "id": 736, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 693, + "id": 739, "name": "options", "kind": 1024, "kindString": "Property", @@ -13749,21 +13996,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 467, + "line": 521, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 694, + "id": 740, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 696, + "id": 741, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -13776,7 +14023,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 475, + "line": 523, "character": 8 } ], @@ -13784,30 +14031,6 @@ "type": "intrinsic", "name": "string" } - }, - { - "id": 695, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", - "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n" - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 473, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "object" - } } ], "groups": [ @@ -13815,15 +14038,14 @@ "title": "Properties", "kind": 1024, "children": [ - 696, - 695 + 741 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 467, + "line": 521, "character": 16 } ] @@ -13831,7 +14053,7 @@ } }, { - "id": 692, + "id": 738, "name": "password", "kind": 1024, "kindString": "Property", @@ -13842,7 +14064,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 466, + "line": 520, "character": 6 } ], @@ -13852,7 +14074,7 @@ } }, { - "id": 691, + "id": 737, "name": "phone", "kind": 1024, "kindString": "Property", @@ -13863,7 +14085,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 464, + "line": 518, "character": 6 } ], @@ -13878,16 +14100,16 @@ "title": "Properties", "kind": 1024, "children": [ - 693, - 692, - 691 + 739, + 738, + 737 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 462, + "line": 516, "character": 4 } ] @@ -13904,8 +14126,8 @@ "typeArguments": [ { "type": "reference", - "id": 532, - "name": "AuthTokenResponse" + "id": 570, + "name": "AuthTokenResponsePassword" } ], "qualifiedName": "Promise", @@ -13916,7 +14138,7 @@ ] }, { - "id": 168, + "id": 172, "name": "signInWithSSO", "kind": 2048, "kindString": "Method", @@ -13924,13 +14146,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 729, + "line": 799, "character": 8 } ], "signatures": [ { - "id": 169, + "id": 173, "name": "signInWithSSO", "kind": 4096, "kindString": "Call signature", @@ -13941,17 +14163,17 @@ }, "parameters": [ { - "id": 170, + "id": 174, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 772, + "id": 817, "name": "SignInWithSSO", "dereferenced": { - "id": 772, + "id": 817, "name": "SignInWithSSO", "kind": 4194304, "kindString": "Type alias", @@ -13959,7 +14181,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 618, + "line": 666, "character": 12 } ], @@ -13969,14 +14191,14 @@ { "type": "reflection", "declaration": { - "id": 773, + "id": 818, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 775, + "id": 820, "name": "options", "kind": 1024, "kindString": "Property", @@ -13986,21 +14208,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 623, + "line": 671, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 776, + "id": 821, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 778, + "id": 823, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -14013,7 +14235,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 627, + "line": 675, "character": 8 } ], @@ -14023,7 +14245,7 @@ } }, { - "id": 777, + "id": 822, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -14036,7 +14258,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 625, + "line": 673, "character": 8 } ], @@ -14051,15 +14273,15 @@ "title": "Properties", "kind": 1024, "children": [ - 778, - 777 + 823, + 822 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 623, + "line": 671, "character": 16 } ] @@ -14067,7 +14289,7 @@ } }, { - "id": 774, + "id": 819, "name": "providerId", "kind": 1024, "kindString": "Property", @@ -14078,7 +14300,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 621, + "line": 669, "character": 6 } ], @@ -14093,15 +14315,15 @@ "title": "Properties", "kind": 1024, "children": [ - 775, - 774 + 820, + 819 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 619, + "line": 667, "character": 4 } ] @@ -14110,14 +14332,14 @@ { "type": "reflection", "declaration": { - "id": 779, + "id": 824, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 780, + "id": 825, "name": "domain", "kind": 1024, "kindString": "Property", @@ -14128,7 +14350,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 632, + "line": 680, "character": 6 } ], @@ -14138,7 +14360,7 @@ } }, { - "id": 781, + "id": 826, "name": "options", "kind": 1024, "kindString": "Property", @@ -14148,21 +14370,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 634, + "line": 682, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 782, + "id": 827, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 784, + "id": 829, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -14175,7 +14397,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 638, + "line": 686, "character": 8 } ], @@ -14185,7 +14407,7 @@ } }, { - "id": 783, + "id": 828, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -14198,7 +14420,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 636, + "line": 684, "character": 8 } ], @@ -14213,15 +14435,15 @@ "title": "Properties", "kind": 1024, "children": [ - 784, - 783 + 829, + 828 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 634, + "line": 682, "character": 16 } ] @@ -14234,15 +14456,15 @@ "title": "Properties", "kind": 1024, "children": [ - 780, - 781 + 825, + 826 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 630, + "line": 678, "character": 4 } ] @@ -14259,7 +14481,7 @@ "typeArguments": [ { "type": "reference", - "id": 558, + "id": 598, "name": "SSOResponse" } ], @@ -14271,7 +14493,7 @@ ] }, { - "id": 307, + "id": 311, "name": "signOut", "kind": 2048, "kindString": "Method", @@ -14279,13 +14501,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1447, + "line": 1568, "character": 8 } ], "signatures": [ { - "id": 308, + "id": 312, "name": "signOut", "kind": 4096, "kindString": "Call signature", @@ -14296,17 +14518,17 @@ }, "parameters": [ { - "id": 309, + "id": 313, "name": "options", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 995, + "id": 1043, "name": "SignOut", "dereferenced": { - "id": 995, + "id": 1043, "name": "SignOut", "kind": 4194304, "kindString": "Type alias", @@ -14314,21 +14536,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1067, + "line": 1128, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 996, + "id": 1044, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 997, + "id": 1045, "name": "scope", "kind": 1024, "kindString": "Property", @@ -14341,7 +14563,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1078, + "line": 1139, "character": 2 } ], @@ -14369,14 +14591,14 @@ "title": "Properties", "kind": 1024, "children": [ - 997 + 1045 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 1067, + "line": 1128, "character": 22 } ] @@ -14393,14 +14615,14 @@ { "type": "reflection", "declaration": { - "id": 310, + "id": 314, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 311, + "id": 315, "name": "error", "kind": 1024, "kindString": "Property", @@ -14408,7 +14630,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1447, + "line": 1568, "character": 67 } ], @@ -14421,7 +14643,7 @@ }, { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } ] @@ -14433,7 +14655,7 @@ "title": "Properties", "kind": 1024, "children": [ - 311 + 315 ] } ] @@ -14448,7 +14670,7 @@ ] }, { - "id": 130, + "id": 134, "name": "signUp", "kind": 2048, "kindString": "Method", @@ -14456,13 +14678,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 354, + "line": 413, "character": 8 } ], "signatures": [ { - "id": 131, + "id": 135, "name": "signUp", "kind": 4096, "kindString": "Call signature", @@ -14474,17 +14696,17 @@ }, "parameters": [ { - "id": 132, + "id": 136, "name": "credentials", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 666, + "id": 712, "name": "SignUpWithPasswordCredentials", "dereferenced": { - "id": 666, + "id": 712, "name": "SignUpWithPasswordCredentials", "kind": 4194304, "kindString": "Type alias", @@ -14492,7 +14714,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 414, + "line": 468, "character": 12 } ], @@ -14502,14 +14724,14 @@ { "type": "reflection", "declaration": { - "id": 667, + "id": 713, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 668, + "id": 714, "name": "email", "kind": 1024, "kindString": "Property", @@ -14520,7 +14742,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 417, + "line": 471, "character": 6 } ], @@ -14530,7 +14752,7 @@ } }, { - "id": 670, + "id": 716, "name": "options", "kind": 1024, "kindString": "Property", @@ -14540,21 +14762,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 420, + "line": 474, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 671, + "id": 717, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 674, + "id": 720, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -14567,7 +14789,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 430, + "line": 484, "character": 8 } ], @@ -14577,7 +14799,7 @@ } }, { - "id": 673, + "id": 719, "name": "data", "kind": 1024, "kindString": "Property", @@ -14585,13 +14807,13 @@ "isOptional": true }, "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", + "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.", "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n" }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 428, + "line": 482, "character": 8 } ], @@ -14601,7 +14823,7 @@ } }, { - "id": 672, + "id": 718, "name": "emailRedirectTo", "kind": 1024, "kindString": "Property", @@ -14614,7 +14836,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 422, + "line": 476, "character": 8 } ], @@ -14629,16 +14851,16 @@ "title": "Properties", "kind": 1024, "children": [ - 674, - 673, - 672 + 720, + 719, + 718 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 420, + "line": 474, "character": 16 } ] @@ -14646,7 +14868,7 @@ } }, { - "id": 669, + "id": 715, "name": "password", "kind": 1024, "kindString": "Property", @@ -14657,7 +14879,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 419, + "line": 473, "character": 6 } ], @@ -14672,16 +14894,16 @@ "title": "Properties", "kind": 1024, "children": [ - 668, - 670, - 669 + 714, + 716, + 715 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 415, + "line": 469, "character": 4 } ] @@ -14690,14 +14912,14 @@ { "type": "reflection", "declaration": { - "id": 675, + "id": 721, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 678, + "id": 724, "name": "options", "kind": 1024, "kindString": "Property", @@ -14707,21 +14929,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 438, + "line": 492, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 679, + "id": 725, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 681, + "id": 727, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -14734,7 +14956,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 446, + "line": 500, "character": 8 } ], @@ -14744,7 +14966,7 @@ } }, { - "id": 682, + "id": 728, "name": "channel", "kind": 1024, "kindString": "Property", @@ -14757,7 +14979,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 448, + "line": 502, "character": 8 } ], @@ -14776,7 +14998,7 @@ } }, { - "id": 680, + "id": 726, "name": "data", "kind": 1024, "kindString": "Property", @@ -14784,13 +15006,13 @@ "isOptional": true }, "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", + "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.", "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n" }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 444, + "line": 498, "character": 8 } ], @@ -14805,16 +15027,16 @@ "title": "Properties", "kind": 1024, "children": [ - 681, - 682, - 680 + 727, + 728, + 726 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 438, + "line": 492, "character": 16 } ] @@ -14822,7 +15044,7 @@ } }, { - "id": 677, + "id": 723, "name": "password", "kind": 1024, "kindString": "Property", @@ -14833,7 +15055,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 437, + "line": 491, "character": 6 } ], @@ -14843,7 +15065,7 @@ } }, { - "id": 676, + "id": 722, "name": "phone", "kind": 1024, "kindString": "Property", @@ -14854,7 +15076,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 435, + "line": 489, "character": 6 } ], @@ -14869,16 +15091,16 @@ "title": "Properties", "kind": 1024, "children": [ - 678, - 677, - 676 + 724, + 723, + 722 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 433, + "line": 487, "character": 4 } ] @@ -14895,7 +15117,7 @@ "typeArguments": [ { "type": "reference", - "id": 504, + "id": 515, "name": "AuthResponse" } ], @@ -14907,7 +15129,7 @@ ] }, { - "id": 413, + "id": 417, "name": "startAutoRefresh", "kind": 2048, "kindString": "Method", @@ -14915,13 +15137,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 2023, + "line": 2142, "character": 8 } ], "signatures": [ { - "id": 414, + "id": 418, "name": "startAutoRefresh", "kind": 4096, "kindString": "Call signature", @@ -14946,7 +15168,7 @@ ] }, { - "id": 415, + "id": 419, "name": "stopAutoRefresh", "kind": 2048, "kindString": "Method", @@ -14954,13 +15176,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 2036, + "line": 2155, "character": 8 } ], "signatures": [ { - "id": 416, + "id": 420, "name": "stopAutoRefresh", "kind": 4096, "kindString": "Call signature", @@ -14985,7 +15207,7 @@ ] }, { - "id": 358, + "id": 362, "name": "unlinkIdentity", "kind": 2048, "kindString": "Method", @@ -14993,13 +15215,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1651, + "line": 1770, "character": 8 } ], "signatures": [ { - "id": 359, + "id": 363, "name": "unlinkIdentity", "kind": 4096, "kindString": "Call signature", @@ -15009,24 +15231,24 @@ }, "parameters": [ { - "id": 360, + "id": 364, "name": "identity", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 590, + "id": 630, "name": "UserIdentity", "dereferenced": { - "id": 590, + "id": 630, "name": "UserIdentity", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 599, + "id": 639, "name": "created_at", "kind": 1024, "kindString": "Property", @@ -15036,7 +15258,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 238, + "line": 279, "character": 2 } ], @@ -15046,7 +15268,7 @@ } }, { - "id": 591, + "id": 631, "name": "id", "kind": 1024, "kindString": "Property", @@ -15054,7 +15276,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 231, + "line": 272, "character": 2 } ], @@ -15064,7 +15286,7 @@ } }, { - "id": 593, + "id": 633, "name": "identity_data", "kind": 1024, "kindString": "Property", @@ -15074,27 +15296,27 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 233, + "line": 274, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 594, + "id": 634, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": { - "id": 595, + "id": 635, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 596, + "id": 636, "name": "key", "kind": 32768, "flags": {}, @@ -15113,7 +15335,7 @@ } }, { - "id": 597, + "id": 637, "name": "identity_id", "kind": 1024, "kindString": "Property", @@ -15121,7 +15343,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 236, + "line": 277, "character": 2 } ], @@ -15131,7 +15353,7 @@ } }, { - "id": 600, + "id": 640, "name": "last_sign_in_at", "kind": 1024, "kindString": "Property", @@ -15141,7 +15363,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 239, + "line": 280, "character": 2 } ], @@ -15151,7 +15373,7 @@ } }, { - "id": 598, + "id": 638, "name": "provider", "kind": 1024, "kindString": "Property", @@ -15159,7 +15381,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 237, + "line": 278, "character": 2 } ], @@ -15169,7 +15391,7 @@ } }, { - "id": 601, + "id": 641, "name": "updated_at", "kind": 1024, "kindString": "Property", @@ -15179,7 +15401,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 240, + "line": 281, "character": 2 } ], @@ -15189,7 +15411,7 @@ } }, { - "id": 592, + "id": 632, "name": "user_id", "kind": 1024, "kindString": "Property", @@ -15197,7 +15419,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 232, + "line": 273, "character": 2 } ], @@ -15212,21 +15434,21 @@ "title": "Properties", "kind": 1024, "children": [ - 599, - 591, - 593, - 597, - 600, - 598, - 601, - 592 + 639, + 631, + 633, + 637, + 640, + 638, + 641, + 632 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 230, + "line": 271, "character": 17 } ] @@ -15240,70 +15462,6 @@ { "type": "union", "types": [ - { - "type": "reflection", - "declaration": { - "id": 361, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 362, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 1653, - "character": 8 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 363, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {} - } - } - }, - { - "id": 364, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 1654, - "character": 8 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 362, - 364 - ] - } - ] - } - }, { "type": "reflection", "declaration": { @@ -15322,17 +15480,23 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1656, + "line": 1772, "character": 8 } ], "type": { - "type": "literal", - "value": null + "type": "reflection", + "declaration": { + "id": 367, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {} + } } }, { - "id": 367, + "id": 368, "name": "error", "kind": 1024, "kindString": "Property", @@ -15340,14 +15504,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1656, - "character": 20 + "line": 1773, + "character": 8 } ], "type": { - "type": "reference", - "id": 1010, - "name": "AuthError" + "type": "literal", + "value": null } } ], @@ -15357,7 +15520,66 @@ "kind": 1024, "children": [ 366, - 367 + 368 + ] + } + ] + } + }, + { + "type": "reflection", + "declaration": { + "id": 369, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 370, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 1775, + "character": 8 + } + ], + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 371, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 1775, + "character": 20 + } + ], + "type": { + "type": "reference", + "id": 1058, + "name": "AuthError" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 370, + 371 ] } ] @@ -15374,7 +15596,7 @@ ] }, { - "id": 247, + "id": 251, "name": "updateUser", "kind": 2048, "kindString": "Method", @@ -15382,13 +15604,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1098, + "line": 1219, "character": 8 } ], "signatures": [ { - "id": 248, + "id": 252, "name": "updateUser", "kind": 4096, "kindString": "Call signature", @@ -15398,24 +15620,24 @@ }, "parameters": [ { - "id": 249, + "id": 253, "name": "attributes", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 639, + "id": 679, "name": "UserAttributes", "dereferenced": { - "id": 639, + "id": 679, "name": "UserAttributes", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 644, + "id": 684, "name": "data", "kind": 1024, "kindString": "Property", @@ -15423,13 +15645,13 @@ "isOptional": true }, "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", + "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.", "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n\n" }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 333, + "line": 374, "character": 2 } ], @@ -15439,7 +15661,7 @@ } }, { - "id": 640, + "id": 680, "name": "email", "kind": 1024, "kindString": "Property", @@ -15452,7 +15674,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 308, + "line": 349, "character": 2 } ], @@ -15462,7 +15684,7 @@ } }, { - "id": 643, + "id": 683, "name": "nonce", "kind": 1024, "kindString": "Property", @@ -15476,7 +15698,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 325, + "line": 366, "character": 2 } ], @@ -15486,7 +15708,7 @@ } }, { - "id": 642, + "id": 682, "name": "password", "kind": 1024, "kindString": "Property", @@ -15499,7 +15721,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 318, + "line": 359, "character": 2 } ], @@ -15509,7 +15731,7 @@ } }, { - "id": 641, + "id": 681, "name": "phone", "kind": 1024, "kindString": "Property", @@ -15522,7 +15744,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 313, + "line": 354, "character": 2 } ], @@ -15537,18 +15759,18 @@ "title": "Properties", "kind": 1024, "children": [ - 644, - 640, - 643, - 642, - 641 + 684, + 680, + 683, + 682, + 681 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 304, + "line": 345, "character": 17 } ] @@ -15556,7 +15778,7 @@ } }, { - "id": 250, + "id": 254, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -15564,14 +15786,14 @@ "type": { "type": "reflection", "declaration": { - "id": 251, + "id": 255, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 252, + "id": 256, "name": "emailRedirectTo", "kind": 1024, "kindString": "Property", @@ -15581,7 +15803,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 1101, + "line": 1222, "character": 6 } ], @@ -15596,7 +15818,7 @@ "title": "Properties", "kind": 1024, "children": [ - 252 + 256 ] } ] @@ -15610,7 +15832,7 @@ "typeArguments": [ { "type": "reference", - "id": 567, + "id": 607, "name": "UserResponse" } ], @@ -15622,7 +15844,7 @@ ] }, { - "id": 165, + "id": 169, "name": "verifyOtp", "kind": 2048, "kindString": "Method", @@ -15630,13 +15852,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 666, + "line": 733, "character": 8 } ], "signatures": [ { - "id": 166, + "id": 170, "name": "verifyOtp", "kind": 4096, "kindString": "Call signature", @@ -15646,17 +15868,17 @@ }, "parameters": [ { - "id": 167, + "id": 171, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 736, + "id": 781, "name": "VerifyOtpParams", "dereferenced": { - "id": 736, + "id": 781, "name": "VerifyOtpParams", "kind": 4194304, "kindString": "Type alias", @@ -15664,7 +15886,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 548, + "line": 596, "character": 12 } ], @@ -15672,14 +15894,14 @@ "type": "union", "types": [ { - "id": 737, + "id": 782, "name": "VerifyMobileOtpParams", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 741, + "id": 786, "name": "options", "kind": 1024, "kindString": "Property", @@ -15689,21 +15911,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 556, + "line": 604, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 742, + "id": 787, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 744, + "id": 789, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -15722,7 +15944,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 565, + "line": 613, "character": 4 } ], @@ -15732,7 +15954,7 @@ } }, { - "id": 743, + "id": 788, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -15745,7 +15967,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 558, + "line": 606, "character": 4 } ], @@ -15760,8 +15982,8 @@ "title": "Properties", "kind": 1024, "children": [ - 744, - 743 + 789, + 788 ] } ] @@ -15769,7 +15991,7 @@ } }, { - "id": 738, + "id": 783, "name": "phone", "kind": 1024, "kindString": "Property", @@ -15780,7 +16002,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 551, + "line": 599, "character": 2 } ], @@ -15790,7 +16012,7 @@ } }, { - "id": 739, + "id": 784, "name": "token", "kind": 1024, "kindString": "Property", @@ -15801,7 +16023,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 553, + "line": 601, "character": 2 } ], @@ -15811,7 +16033,7 @@ } }, { - "id": 740, + "id": 785, "name": "type", "kind": 1024, "kindString": "Property", @@ -15822,16 +16044,16 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 555, + "line": 603, "character": 2 } ], "type": { "type": "reference", - "id": 756, + "id": 801, "name": "MobileOtpType", "dereferenced": { - "id": 756, + "id": 801, "name": "MobileOtpType", "kind": 4194304, "kindString": "Type alias", @@ -15839,7 +16061,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 595, + "line": 643, "character": 12 } ], @@ -15865,30 +16087,30 @@ "title": "Properties", "kind": 1024, "children": [ - 741, - 738, - 739, - 740 + 786, + 783, + 784, + 785 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 549, + "line": 597, "character": 17 } ] }, { - "id": 745, + "id": 790, "name": "VerifyEmailOtpParams", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 746, + "id": 791, "name": "email", "kind": 1024, "kindString": "Property", @@ -15899,7 +16121,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 570, + "line": 618, "character": 2 } ], @@ -15909,7 +16131,7 @@ } }, { - "id": 749, + "id": 794, "name": "options", "kind": 1024, "kindString": "Property", @@ -15919,21 +16141,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 575, + "line": 623, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 750, + "id": 795, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 752, + "id": 797, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -15952,7 +16174,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 583, + "line": 631, "character": 4 } ], @@ -15962,7 +16184,7 @@ } }, { - "id": 751, + "id": 796, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -15975,7 +16197,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 577, + "line": 625, "character": 4 } ], @@ -15990,8 +16212,8 @@ "title": "Properties", "kind": 1024, "children": [ - 752, - 751 + 797, + 796 ] } ] @@ -15999,7 +16221,7 @@ } }, { - "id": 747, + "id": 792, "name": "token", "kind": 1024, "kindString": "Property", @@ -16010,7 +16232,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 572, + "line": 620, "character": 2 } ], @@ -16020,7 +16242,7 @@ } }, { - "id": 748, + "id": 793, "name": "type", "kind": 1024, "kindString": "Property", @@ -16031,16 +16253,16 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 574, + "line": 622, "character": 2 } ], "type": { "type": "reference", - "id": 757, + "id": 802, "name": "EmailOtpType", "dereferenced": { - "id": 757, + "id": 802, "name": "EmailOtpType", "kind": 4194304, "kindString": "Type alias", @@ -16048,7 +16270,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 596, + "line": 644, "character": 12 } ], @@ -16090,30 +16312,30 @@ "title": "Properties", "kind": 1024, "children": [ - 746, - 749, - 747, - 748 + 791, + 794, + 792, + 793 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 568, + "line": 616, "character": 17 } ] }, { - "id": 753, + "id": 798, "name": "VerifyTokenHashParams", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 754, + "id": 799, "name": "token_hash", "kind": 1024, "kindString": "Property", @@ -16124,7 +16346,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 589, + "line": 637, "character": 2 } ], @@ -16134,7 +16356,7 @@ } }, { - "id": 755, + "id": 800, "name": "type", "kind": 1024, "kindString": "Property", @@ -16145,16 +16367,16 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 592, + "line": 640, "character": 2 } ], "type": { "type": "reference", - "id": 757, + "id": 802, "name": "EmailOtpType", "dereferenced": { - "id": 757, + "id": 802, "name": "EmailOtpType", "kind": 4194304, "kindString": "Type alias", @@ -16162,7 +16384,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 596, + "line": 644, "character": 12 } ], @@ -16204,15 +16426,15 @@ "title": "Properties", "kind": 1024, "children": [ - 754, - 755 + 799, + 800 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 587, + "line": 635, "character": 17 } ] @@ -16228,7 +16450,7 @@ "typeArguments": [ { "type": "reference", - "id": 504, + "id": 515, "name": "AuthResponse" } ], @@ -16260,64 +16482,65 @@ "title": "Methods", "kind": 2048, "children": [ - 139, - 178, - 241, - 345, - 126, - 355, - 317, - 171, - 278, + 143, + 182, + 245, + 349, + 127, + 359, + 321, 175, - 331, - 266, - 159, - 136, - 162, - 133, - 168, - 307, - 130, - 413, - 415, - 358, - 247, - 165 + 282, + 179, + 335, + 270, + 131, + 163, + 140, + 166, + 137, + 172, + 311, + 134, + 417, + 419, + 362, + 251, + 169 ] } ], "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 107, + "line": 116, "character": 21 } ] }, { - "id": 464, + "id": 470, "name": "NavigatorLockAcquireTimeoutError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 465, + "id": 471, "name": "constructor", "kind": 512, "kindString": "Constructor", "flags": {}, "signatures": [ { - "id": 466, + "id": 472, "name": "new NavigatorLockAcquireTimeoutError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 467, + "id": 473, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -16330,7 +16553,7 @@ ], "type": { "type": "reference", - "id": 464, + "id": 470, "name": "NavigatorLockAcquireTimeoutError" }, "inheritedFrom": { @@ -16345,7 +16568,7 @@ } }, { - "id": 468, + "id": 474, "name": "isAcquireTimeout", "kind": 1024, "kindString": "Property", @@ -16356,7 +16579,7 @@ "sources": [ { "fileName": "src/lib/locks.ts", - "line": 19, + "line": 24, "character": 18 } ], @@ -16376,21 +16599,21 @@ "title": "Constructors", "kind": 512, "children": [ - 465 + 471 ] }, { "title": "Properties", "kind": 1024, "children": [ - 468 + 474 ] } ], "sources": [ { "fileName": "src/lib/locks.ts", - "line": 26, + "line": 31, "character": 13 } ], @@ -16402,7 +16625,7 @@ ] }, { - "id": 587, + "id": 627, "name": "AMREntry", "kind": 256, "kindString": "Interface", @@ -16419,7 +16642,7 @@ }, "children": [ { - "id": 588, + "id": 628, "name": "method", "kind": 1024, "kindString": "Property", @@ -16430,7 +16653,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 221, + "line": 262, "character": 2 } ], @@ -16440,7 +16663,7 @@ } }, { - "id": 589, + "id": 629, "name": "timestamp", "kind": 1024, "kindString": "Property", @@ -16451,7 +16674,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 227, + "line": 268, "character": 2 } ], @@ -16466,28 +16689,28 @@ "title": "Properties", "kind": 1024, "children": [ - 588, - 589 + 628, + 629 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 219, + "line": 260, "character": 17 } ] }, { - "id": 645, + "id": 685, "name": "AdminUserAttributes", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 647, + "id": 687, "name": "app_metadata", "kind": 1024, "kindString": "Property", @@ -16501,7 +16724,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 357, + "line": 398, "character": 2 } ], @@ -16511,7 +16734,7 @@ } }, { - "id": 650, + "id": 690, "name": "ban_duration", "kind": 1024, "kindString": "Property", @@ -16525,7 +16748,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 383, + "line": 424, "character": 2 } ], @@ -16535,7 +16758,7 @@ } }, { - "id": 654, + "id": 694, "name": "email", "kind": 1024, "kindString": "Property", @@ -16548,7 +16771,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 308, + "line": 349, "character": 2 } ], @@ -16562,7 +16785,7 @@ } }, { - "id": 648, + "id": 688, "name": "email_confirm", "kind": 1024, "kindString": "Property", @@ -16576,7 +16799,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 364, + "line": 405, "character": 2 } ], @@ -16586,7 +16809,7 @@ } }, { - "id": 653, + "id": 693, "name": "nonce", "kind": 1024, "kindString": "Property", @@ -16600,7 +16823,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 325, + "line": 366, "character": 2 } ], @@ -16614,7 +16837,7 @@ } }, { - "id": 652, + "id": 692, "name": "password", "kind": 1024, "kindString": "Property", @@ -16627,7 +16850,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 318, + "line": 359, "character": 2 } ], @@ -16641,7 +16864,7 @@ } }, { - "id": 655, + "id": 695, "name": "phone", "kind": 1024, "kindString": "Property", @@ -16654,7 +16877,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 313, + "line": 354, "character": 2 } ], @@ -16668,7 +16891,7 @@ } }, { - "id": 649, + "id": 689, "name": "phone_confirm", "kind": 1024, "kindString": "Property", @@ -16682,7 +16905,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 371, + "line": 412, "character": 2 } ], @@ -16692,7 +16915,7 @@ } }, { - "id": 651, + "id": 691, "name": "role", "kind": 1024, "kindString": "Property", @@ -16706,7 +16929,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 392, + "line": 433, "character": 2 } ], @@ -16716,7 +16939,7 @@ } }, { - "id": 646, + "id": 686, "name": "user_metadata", "kind": 1024, "kindString": "Property", @@ -16724,13 +16947,13 @@ "isOptional": true }, "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", + "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.", "text": "The `user_metadata` should be a JSON object that includes user-specific info, such as their first and last name.\n\nNote: When using the GoTrueAdminApi and wanting to modify a user's metadata,\nthis attribute is used instead of UserAttributes data.\n\n" }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 347, + "line": 388, "character": 2 } ], @@ -16745,23 +16968,23 @@ "title": "Properties", "kind": 1024, "children": [ - 647, - 650, - 654, - 648, - 653, - 652, - 655, - 649, - 651, - 646 + 687, + 690, + 694, + 688, + 693, + 692, + 695, + 689, + 691, + 686 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 336, + "line": 377, "character": 17 } ], @@ -16771,7 +16994,7 @@ "typeArguments": [ { "type": "reference", - "id": 639, + "id": 679, "name": "UserAttributes" }, { @@ -16786,7 +17009,7 @@ ] }, { - "id": 602, + "id": 642, "name": "Factor", "kind": 256, "kindString": "Interface", @@ -16810,7 +17033,7 @@ }, "children": [ { - "id": 607, + "id": 647, "name": "created_at", "kind": 1024, "kindString": "Property", @@ -16818,7 +17041,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 266, + "line": 307, "character": 2 } ], @@ -16828,7 +17051,7 @@ } }, { - "id": 605, + "id": 645, "name": "factor_type", "kind": 1024, "kindString": "Property", @@ -16839,7 +17062,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 261, + "line": 302, "character": 2 } ], @@ -16849,7 +17072,7 @@ } }, { - "id": 604, + "id": 644, "name": "friendly_name", "kind": 1024, "kindString": "Property", @@ -16862,7 +17085,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 255, + "line": 296, "character": 2 } ], @@ -16872,7 +17095,7 @@ } }, { - "id": 603, + "id": 643, "name": "id", "kind": 1024, "kindString": "Property", @@ -16883,7 +17106,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 252, + "line": 293, "character": 2 } ], @@ -16893,7 +17116,7 @@ } }, { - "id": 606, + "id": 646, "name": "status", "kind": 1024, "kindString": "Property", @@ -16904,7 +17127,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 264, + "line": 305, "character": 2 } ], @@ -16923,7 +17146,7 @@ } }, { - "id": 608, + "id": 648, "name": "updated_at", "kind": 1024, "kindString": "Property", @@ -16931,7 +17154,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 267, + "line": 308, "character": 2 } ], @@ -16946,32 +17169,32 @@ "title": "Properties", "kind": 1024, "children": [ - 607, - 605, - 604, - 603, - 606, - 608 + 647, + 645, + 644, + 643, + 646, + 648 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 250, + "line": 291, "character": 17 } ] }, { - "id": 807, + "id": 852, "name": "GenerateLinkOptions", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 808, + "id": 853, "name": "data", "kind": 1024, "kindString": "Property", @@ -16979,13 +17202,13 @@ "isOptional": true }, "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", + "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.", "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n" }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 680, + "line": 728, "character": 2 } ], @@ -16995,7 +17218,7 @@ } }, { - "id": 809, + "id": 854, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -17008,7 +17231,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 682, + "line": 730, "character": 2 } ], @@ -17023,21 +17246,21 @@ "title": "Properties", "kind": 1024, "children": [ - 808, - 809 + 853, + 854 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 674, + "line": 722, "character": 17 } ] }, { - "id": 966, + "id": 1012, "name": "GoTrueAdminMFAApi", "kind": 256, "kindString": "Interface", @@ -17053,14 +17276,14 @@ }, "children": [ { - "id": 970, + "id": 1016, "name": "deleteFactor", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 971, + "id": 1017, "name": "deleteFactor", "kind": 4096, "kindString": "Call signature", @@ -17080,17 +17303,17 @@ }, "parameters": [ { - "id": 972, + "id": 1018, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 950, + "id": 996, "name": "AuthMFAAdminDeleteFactorParams", "dereferenced": { - "id": 950, + "id": 996, "name": "AuthMFAAdminDeleteFactorParams", "kind": 4194304, "kindString": "Type alias", @@ -17106,21 +17329,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 978, + "line": 1028, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 951, + "id": 997, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 952, + "id": 998, "name": "id", "kind": 1024, "kindString": "Property", @@ -17131,7 +17354,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 980, + "line": 1030, "character": 2 } ], @@ -17141,7 +17364,7 @@ } }, { - "id": 953, + "id": 999, "name": "userId", "kind": 1024, "kindString": "Property", @@ -17152,7 +17375,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 983, + "line": 1033, "character": 2 } ], @@ -17167,15 +17390,15 @@ "title": "Properties", "kind": 1024, "children": [ - 952, - 953 + 998, + 999 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 978, + "line": 1028, "character": 45 } ] @@ -17190,7 +17413,7 @@ "typeArguments": [ { "type": "reference", - "id": 941, + "id": 987, "name": "AuthMFAAdminDeleteFactorResponse" } ], @@ -17202,14 +17425,14 @@ ] }, { - "id": 967, + "id": 1013, "name": "listFactors", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 968, + "id": 1014, "name": "listFactors", "kind": 4096, "kindString": "Call signature", @@ -17219,17 +17442,17 @@ }, "parameters": [ { - "id": 969, + "id": 1015, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 963, + "id": 1009, "name": "AuthMFAAdminListFactorsParams", "dereferenced": { - "id": 963, + "id": 1009, "name": "AuthMFAAdminListFactorsParams", "kind": 4194304, "kindString": "Type alias", @@ -17245,21 +17468,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1002, + "line": 1052, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 964, + "id": 1010, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 965, + "id": 1011, "name": "userId", "kind": 1024, "kindString": "Property", @@ -17270,7 +17493,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1004, + "line": 1054, "character": 2 } ], @@ -17285,14 +17508,14 @@ "title": "Properties", "kind": 1024, "children": [ - 965 + 1011 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 1002, + "line": 1052, "character": 44 } ] @@ -17307,7 +17530,7 @@ "typeArguments": [ { "type": "reference", - "id": 954, + "id": 1000, "name": "AuthMFAAdminListFactorsResponse" } ], @@ -17324,21 +17547,21 @@ "title": "Methods", "kind": 2048, "children": [ - 970, - 967 + 1016, + 1013 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 1012, + "line": 1062, "character": 17 } ] }, { - "id": 921, + "id": 967, "name": "GoTrueMFAApi", "kind": 256, "kindString": "Interface", @@ -17348,14 +17571,14 @@ }, "children": [ { - "id": 925, + "id": 971, "name": "challenge", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 926, + "id": 972, "name": "challenge", "kind": 4096, "kindString": "Call signature", @@ -17365,17 +17588,17 @@ }, "parameters": [ { - "id": 927, + "id": 973, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 845, + "id": 890, "name": "MFAChallengeParams", "dereferenced": { - "id": 845, + "id": 890, "name": "MFAChallengeParams", "kind": 4194304, "kindString": "Type alias", @@ -17383,21 +17606,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 762, + "line": 810, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 846, + "id": 891, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 847, + "id": 892, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -17408,7 +17631,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 764, + "line": 812, "character": 2 } ], @@ -17423,14 +17646,14 @@ "title": "Properties", "kind": 1024, "children": [ - 847 + 892 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 762, + "line": 810, "character": 33 } ] @@ -17445,7 +17668,7 @@ "typeArguments": [ { "type": "reference", - "id": 889, + "id": 935, "name": "AuthMFAChallengeResponse" } ], @@ -17457,14 +17680,14 @@ ] }, { - "id": 934, + "id": 980, "name": "challengeAndVerify", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 935, + "id": 981, "name": "challengeAndVerify", "kind": 4096, "kindString": "Call signature", @@ -17474,17 +17697,17 @@ }, "parameters": [ { - "id": 936, + "id": 982, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 848, + "id": 893, "name": "MFAChallengeAndVerifyParams", "dereferenced": { - "id": 848, + "id": 893, "name": "MFAChallengeAndVerifyParams", "kind": 4194304, "kindString": "Type alias", @@ -17492,21 +17715,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 767, + "line": 815, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 849, + "id": 894, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 851, + "id": 896, "name": "code", "kind": 1024, "kindString": "Property", @@ -17517,7 +17740,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 771, + "line": 819, "character": 2 } ], @@ -17527,7 +17750,7 @@ } }, { - "id": 850, + "id": 895, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -17538,7 +17761,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 769, + "line": 817, "character": 2 } ], @@ -17553,15 +17776,15 @@ "title": "Properties", "kind": 1024, "children": [ - 851, - 850 + 896, + 895 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 767, + "line": 815, "character": 42 } ] @@ -17576,7 +17799,7 @@ "typeArguments": [ { "type": "reference", - "id": 852, + "id": 897, "name": "AuthMFAVerifyResponse" } ], @@ -17588,14 +17811,14 @@ ] }, { - "id": 922, + "id": 968, "name": "enroll", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 923, + "id": 969, "name": "enroll", "kind": 4096, "kindString": "Call signature", @@ -17606,17 +17829,17 @@ }, "parameters": [ { - "id": 924, + "id": 970, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 832, + "id": 877, "name": "MFAEnrollParams", "dereferenced": { - "id": 832, + "id": 877, "name": "MFAEnrollParams", "kind": 4194304, "kindString": "Type alias", @@ -17624,21 +17847,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 737, + "line": 785, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 833, + "id": 878, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 834, + "id": 879, "name": "factorType", "kind": 1024, "kindString": "Property", @@ -17649,7 +17872,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 739, + "line": 787, "character": 2 } ], @@ -17659,7 +17882,7 @@ } }, { - "id": 836, + "id": 881, "name": "friendlyName", "kind": 1024, "kindString": "Property", @@ -17672,7 +17895,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 743, + "line": 791, "character": 2 } ], @@ -17682,7 +17905,7 @@ } }, { - "id": 835, + "id": 880, "name": "issuer", "kind": 1024, "kindString": "Property", @@ -17695,7 +17918,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 741, + "line": 789, "character": 2 } ], @@ -17710,16 +17933,16 @@ "title": "Properties", "kind": 1024, "children": [ - 834, - 836, - 835 + 879, + 881, + 880 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 737, + "line": 785, "character": 30 } ] @@ -17734,7 +17957,7 @@ "typeArguments": [ { "type": "reference", - "id": 865, + "id": 910, "name": "AuthMFAEnrollResponse" } ], @@ -17746,14 +17969,14 @@ ] }, { - "id": 939, + "id": 985, "name": "getAuthenticatorAssuranceLevel", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 940, + "id": 986, "name": "getAuthenticatorAssuranceLevel", "kind": 4096, "kindString": "Call signature", @@ -17767,7 +17990,7 @@ "typeArguments": [ { "type": "reference", - "id": 910, + "id": 956, "name": "AuthMFAGetAuthenticatorAssuranceLevelResponse" } ], @@ -17779,14 +18002,14 @@ ] }, { - "id": 937, + "id": 983, "name": "listFactors", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 938, + "id": 984, "name": "listFactors", "kind": 4096, "kindString": "Call signature", @@ -17813,7 +18036,7 @@ "typeArguments": [ { "type": "reference", - "id": 899, + "id": 945, "name": "AuthMFAListFactorsResponse" } ], @@ -17825,14 +18048,14 @@ ] }, { - "id": 931, + "id": 977, "name": "unenroll", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 932, + "id": 978, "name": "unenroll", "kind": 4096, "kindString": "Call signature", @@ -17842,17 +18065,17 @@ }, "parameters": [ { - "id": 933, + "id": 979, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 837, + "id": 882, "name": "MFAUnenrollParams", "dereferenced": { - "id": 837, + "id": 882, "name": "MFAUnenrollParams", "kind": 4194304, "kindString": "Type alias", @@ -17860,21 +18083,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 746, + "line": 794, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 838, + "id": 883, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 839, + "id": 884, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -17885,7 +18108,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 748, + "line": 796, "character": 2 } ], @@ -17900,14 +18123,14 @@ "title": "Properties", "kind": 1024, "children": [ - 839 + 884 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 746, + "line": 794, "character": 32 } ] @@ -17922,7 +18145,7 @@ "typeArguments": [ { "type": "reference", - "id": 880, + "id": 926, "name": "AuthMFAUnenrollResponse" } ], @@ -17934,14 +18157,14 @@ ] }, { - "id": 928, + "id": 974, "name": "verify", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 929, + "id": 975, "name": "verify", "kind": 4096, "kindString": "Call signature", @@ -17951,17 +18174,17 @@ }, "parameters": [ { - "id": 930, + "id": 976, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 840, + "id": 885, "name": "MFAVerifyParams", "dereferenced": { - "id": 840, + "id": 885, "name": "MFAVerifyParams", "kind": 4194304, "kindString": "Type alias", @@ -17969,21 +18192,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 751, + "line": 799, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 841, + "id": 886, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 843, + "id": 888, "name": "challengeId", "kind": 1024, "kindString": "Property", @@ -17994,7 +18217,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 756, + "line": 804, "character": 2 } ], @@ -18004,7 +18227,7 @@ } }, { - "id": 844, + "id": 889, "name": "code", "kind": 1024, "kindString": "Property", @@ -18015,7 +18238,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 759, + "line": 807, "character": 2 } ], @@ -18025,7 +18248,7 @@ } }, { - "id": 842, + "id": 887, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -18036,7 +18259,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 753, + "line": 801, "character": 2 } ], @@ -18051,16 +18274,16 @@ "title": "Properties", "kind": 1024, "children": [ - 843, - 844, - 842 + 888, + 889, + 887 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 751, + "line": 799, "character": 30 } ] @@ -18075,7 +18298,7 @@ "typeArguments": [ { "type": "reference", - "id": 852, + "id": 897, "name": "AuthMFAVerifyResponse" } ], @@ -18092,33 +18315,33 @@ "title": "Methods", "kind": 2048, "children": [ - 925, - 934, - 922, - 939, - 937, - 931, - 928 + 971, + 980, + 968, + 985, + 983, + 977, + 974 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 899, + "line": 949, "character": 17 } ] }, { - "id": 578, + "id": 618, "name": "Session", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 581, + "id": 621, "name": "access_token", "kind": 1024, "kindString": "Property", @@ -18129,7 +18352,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 194, + "line": 235, "character": 2 } ], @@ -18139,7 +18362,7 @@ } }, { - "id": 584, + "id": 624, "name": "expires_at", "kind": 1024, "kindString": "Property", @@ -18152,7 +18375,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 206, + "line": 247, "character": 2 } ], @@ -18162,7 +18385,7 @@ } }, { - "id": 583, + "id": 623, "name": "expires_in", "kind": 1024, "kindString": "Property", @@ -18173,7 +18396,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 202, + "line": 243, "character": 2 } ], @@ -18183,7 +18406,7 @@ } }, { - "id": 580, + "id": 620, "name": "provider_refresh_token", "kind": 1024, "kindString": "Property", @@ -18196,7 +18419,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 190, + "line": 231, "character": 2 } ], @@ -18215,7 +18438,7 @@ } }, { - "id": 579, + "id": 619, "name": "provider_token", "kind": 1024, "kindString": "Property", @@ -18228,7 +18451,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 185, + "line": 226, "character": 2 } ], @@ -18247,7 +18470,7 @@ } }, { - "id": 582, + "id": 622, "name": "refresh_token", "kind": 1024, "kindString": "Property", @@ -18258,7 +18481,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 198, + "line": 239, "character": 2 } ], @@ -18268,7 +18491,7 @@ } }, { - "id": 585, + "id": 625, "name": "token_type", "kind": 1024, "kindString": "Property", @@ -18276,7 +18499,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 207, + "line": 248, "character": 2 } ], @@ -18286,7 +18509,7 @@ } }, { - "id": 586, + "id": 626, "name": "user", "kind": 1024, "kindString": "Property", @@ -18294,23 +18517,23 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 208, + "line": 249, "character": 2 } ], "type": { "type": "reference", - "id": 616, + "id": 656, "name": "User", "dereferenced": { - "id": 616, + "id": 656, "name": "User", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 627, + "id": 667, "name": "action_link", "kind": 1024, "kindString": "Property", @@ -18320,7 +18543,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 290, + "line": 331, "character": 2 } ], @@ -18330,7 +18553,7 @@ } }, { - "id": 618, + "id": 658, "name": "app_metadata", "kind": 1024, "kindString": "Property", @@ -18338,23 +18561,23 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 281, + "line": 322, "character": 2 } ], "type": { "type": "reference", - "id": 609, + "id": 649, "name": "UserAppMetadata", "dereferenced": { - "id": 609, + "id": 649, "name": "UserAppMetadata", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 610, + "id": 650, "name": "provider", "kind": 1024, "kindString": "Property", @@ -18364,7 +18587,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 271, + "line": 312, "character": 2 } ], @@ -18379,26 +18602,26 @@ "title": "Properties", "kind": 1024, "children": [ - 610 + 650 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 270, + "line": 311, "character": 17 } ], "indexSignature": { - "id": 611, + "id": 651, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 612, + "id": 652, "name": "key", "kind": 32768, "flags": {}, @@ -18417,7 +18640,7 @@ } }, { - "id": 620, + "id": 660, "name": "aud", "kind": 1024, "kindString": "Property", @@ -18425,7 +18648,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 283, + "line": 324, "character": 2 } ], @@ -18435,7 +18658,7 @@ } }, { - "id": 621, + "id": 661, "name": "confirmation_sent_at", "kind": 1024, "kindString": "Property", @@ -18445,7 +18668,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 284, + "line": 325, "character": 2 } ], @@ -18455,7 +18678,7 @@ } }, { - "id": 631, + "id": 671, "name": "confirmed_at", "kind": 1024, "kindString": "Property", @@ -18465,7 +18688,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 294, + "line": 335, "character": 2 } ], @@ -18475,7 +18698,7 @@ } }, { - "id": 630, + "id": 670, "name": "created_at", "kind": 1024, "kindString": "Property", @@ -18483,7 +18706,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 293, + "line": 334, "character": 2 } ], @@ -18493,7 +18716,7 @@ } }, { - "id": 628, + "id": 668, "name": "email", "kind": 1024, "kindString": "Property", @@ -18503,7 +18726,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 291, + "line": 332, "character": 2 } ], @@ -18513,7 +18736,7 @@ } }, { - "id": 623, + "id": 663, "name": "email_change_sent_at", "kind": 1024, "kindString": "Property", @@ -18523,7 +18746,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 286, + "line": 327, "character": 2 } ], @@ -18533,7 +18756,7 @@ } }, { - "id": 632, + "id": 672, "name": "email_confirmed_at", "kind": 1024, "kindString": "Property", @@ -18543,7 +18766,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 295, + "line": 336, "character": 2 } ], @@ -18553,7 +18776,7 @@ } }, { - "id": 638, + "id": 678, "name": "factors", "kind": 1024, "kindString": "Property", @@ -18563,7 +18786,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 301, + "line": 342, "character": 2 } ], @@ -18571,13 +18794,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 602, + "id": 642, "name": "Factor" } } }, { - "id": 617, + "id": 657, "name": "id", "kind": 1024, "kindString": "Property", @@ -18585,7 +18808,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 280, + "line": 321, "character": 2 } ], @@ -18595,7 +18818,7 @@ } }, { - "id": 637, + "id": 677, "name": "identities", "kind": 1024, "kindString": "Property", @@ -18605,7 +18828,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 300, + "line": 341, "character": 2 } ], @@ -18613,13 +18836,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 590, + "id": 630, "name": "UserIdentity" } } }, { - "id": 626, + "id": 666, "name": "invited_at", "kind": 1024, "kindString": "Property", @@ -18629,7 +18852,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 289, + "line": 330, "character": 2 } ], @@ -18639,7 +18862,7 @@ } }, { - "id": 634, + "id": 674, "name": "last_sign_in_at", "kind": 1024, "kindString": "Property", @@ -18649,7 +18872,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 297, + "line": 338, "character": 2 } ], @@ -18659,7 +18882,7 @@ } }, { - "id": 624, + "id": 664, "name": "new_email", "kind": 1024, "kindString": "Property", @@ -18669,7 +18892,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 287, + "line": 328, "character": 2 } ], @@ -18679,7 +18902,7 @@ } }, { - "id": 625, + "id": 665, "name": "new_phone", "kind": 1024, "kindString": "Property", @@ -18689,7 +18912,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 288, + "line": 329, "character": 2 } ], @@ -18699,7 +18922,7 @@ } }, { - "id": 629, + "id": 669, "name": "phone", "kind": 1024, "kindString": "Property", @@ -18709,7 +18932,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 292, + "line": 333, "character": 2 } ], @@ -18719,7 +18942,7 @@ } }, { - "id": 633, + "id": 673, "name": "phone_confirmed_at", "kind": 1024, "kindString": "Property", @@ -18729,7 +18952,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 296, + "line": 337, "character": 2 } ], @@ -18739,7 +18962,7 @@ } }, { - "id": 622, + "id": 662, "name": "recovery_sent_at", "kind": 1024, "kindString": "Property", @@ -18749,7 +18972,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 285, + "line": 326, "character": 2 } ], @@ -18759,7 +18982,7 @@ } }, { - "id": 635, + "id": 675, "name": "role", "kind": 1024, "kindString": "Property", @@ -18769,7 +18992,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 298, + "line": 339, "character": 2 } ], @@ -18779,7 +19002,7 @@ } }, { - "id": 636, + "id": 676, "name": "updated_at", "kind": 1024, "kindString": "Property", @@ -18789,7 +19012,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 299, + "line": 340, "character": 2 } ], @@ -18799,7 +19022,7 @@ } }, { - "id": 619, + "id": 659, "name": "user_metadata", "kind": 1024, "kindString": "Property", @@ -18807,16 +19030,16 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 282, + "line": 323, "character": 2 } ], "type": { "type": "reference", - "id": 613, + "id": 653, "name": "UserMetadata", "dereferenced": { - "id": 613, + "id": 653, "name": "UserMetadata", "kind": 256, "kindString": "Interface", @@ -18824,19 +19047,19 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 275, + "line": 316, "character": 17 } ], "indexSignature": { - "id": 614, + "id": 654, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 615, + "id": 655, "name": "key", "kind": 32768, "flags": {}, @@ -18860,35 +19083,35 @@ "title": "Properties", "kind": 1024, "children": [ - 627, - 618, - 620, - 621, - 631, - 630, - 628, - 623, - 632, - 638, - 617, - 637, - 626, - 634, - 624, - 625, - 629, - 633, - 622, - 635, - 636, - 619 + 667, + 658, + 660, + 661, + 671, + 670, + 668, + 663, + 672, + 678, + 657, + 677, + 666, + 674, + 664, + 665, + 669, + 673, + 662, + 675, + 676, + 659 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 279, + "line": 320, "character": 17 } ] @@ -18901,34 +19124,34 @@ "title": "Properties", "kind": 1024, "children": [ - 581, - 584, - 583, - 580, - 579, - 582, - 585, - 586 + 621, + 624, + 623, + 620, + 619, + 622, + 625, + 626 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 181, + "line": 222, "character": 17 } ] }, { - "id": 656, + "id": 696, "name": "Subscription", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 657, + "id": 697, "name": "id", "kind": 1024, "kindString": "Property", @@ -18939,7 +19162,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 399, + "line": 440, "character": 2 } ], @@ -18949,7 +19172,7 @@ } }, { - "id": 658, + "id": 698, "name": "callback", "kind": 2048, "kindString": "Method", @@ -18957,13 +19180,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 403, + "line": 444, "character": 2 } ], "signatures": [ { - "id": 659, + "id": 699, "name": "callback", "kind": 4096, "kindString": "Call signature", @@ -18973,17 +19196,17 @@ }, "parameters": [ { - "id": 660, + "id": 700, "name": "event", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 474, + "id": 480, "name": "AuthChangeEvent", "dereferenced": { - "id": 474, + "id": 480, "name": "AuthChangeEvent", "kind": 4194304, "kindString": "Type alias", @@ -19023,7 +19246,7 @@ "value": "USER_UPDATED" }, { - "id": 473, + "id": 479, "name": "AuthChangeEventMFA", "kind": 4194304, "kindString": "Type alias", @@ -19046,7 +19269,7 @@ } }, { - "id": 661, + "id": 701, "name": "session", "kind": 32768, "kindString": "Parameter", @@ -19060,7 +19283,7 @@ }, { "type": "reference", - "id": 578, + "id": 618, "name": "Session" } ] @@ -19075,7 +19298,7 @@ ] }, { - "id": 662, + "id": 702, "name": "unsubscribe", "kind": 2048, "kindString": "Method", @@ -19083,13 +19306,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 407, + "line": 448, "character": 2 } ], "signatures": [ { - "id": 663, + "id": 703, "name": "unsubscribe", "kind": 4096, "kindString": "Call signature", @@ -19110,35 +19333,35 @@ "title": "Properties", "kind": 1024, "children": [ - 657 + 697 ] }, { "title": "Methods", "kind": 2048, "children": [ - 658, - 662 + 698, + 702 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 395, + "line": 436, "character": 17 } ] }, { - "id": 664, + "id": 704, "name": "UpdatableFactorAttributes", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 665, + "id": 705, "name": "friendlyName", "kind": 1024, "kindString": "Property", @@ -19146,7 +19369,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 411, + "line": 452, "character": 2 } ], @@ -19161,27 +19384,27 @@ "title": "Properties", "kind": 1024, "children": [ - 665 + 705 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 410, + "line": 451, "character": 17 } ] }, { - "id": 616, + "id": 656, "name": "User", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 627, + "id": 667, "name": "action_link", "kind": 1024, "kindString": "Property", @@ -19191,7 +19414,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 290, + "line": 331, "character": 2 } ], @@ -19201,7 +19424,7 @@ } }, { - "id": 618, + "id": 658, "name": "app_metadata", "kind": 1024, "kindString": "Property", @@ -19209,23 +19432,23 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 281, + "line": 322, "character": 2 } ], "type": { "type": "reference", - "id": 609, + "id": 649, "name": "UserAppMetadata", "dereferenced": { - "id": 609, + "id": 649, "name": "UserAppMetadata", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 610, + "id": 650, "name": "provider", "kind": 1024, "kindString": "Property", @@ -19235,7 +19458,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 271, + "line": 312, "character": 2 } ], @@ -19250,26 +19473,26 @@ "title": "Properties", "kind": 1024, "children": [ - 610 + 650 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 270, + "line": 311, "character": 17 } ], "indexSignature": { - "id": 611, + "id": 651, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 612, + "id": 652, "name": "key", "kind": 32768, "flags": {}, @@ -19288,7 +19511,7 @@ } }, { - "id": 620, + "id": 660, "name": "aud", "kind": 1024, "kindString": "Property", @@ -19296,7 +19519,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 283, + "line": 324, "character": 2 } ], @@ -19306,598 +19529,13 @@ } }, { - "id": 621, + "id": 661, "name": "confirmation_sent_at", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 284, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 631, - "name": "confirmed_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 294, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 630, - "name": "created_at", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 293, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 628, - "name": "email", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 291, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 623, - "name": "email_change_sent_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 286, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 632, - "name": "email_confirmed_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 295, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 638, - "name": "factors", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 301, - "character": 2 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "id": 602, - "name": "Factor" - } - } - }, - { - "id": 617, - "name": "id", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 280, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 637, - "name": "identities", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 300, - "character": 2 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "id": 590, - "name": "UserIdentity" - } - } - }, - { - "id": 626, - "name": "invited_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 289, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 634, - "name": "last_sign_in_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 297, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 624, - "name": "new_email", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 287, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 625, - "name": "new_phone", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 288, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 629, - "name": "phone", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 292, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 633, - "name": "phone_confirmed_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 296, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 622, - "name": "recovery_sent_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 285, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 635, - "name": "role", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 298, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 636, - "name": "updated_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 299, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 619, - "name": "user_metadata", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 282, - "character": 2 - } - ], - "type": { - "type": "reference", - "id": 613, - "name": "UserMetadata", - "dereferenced": { - "id": 613, - "name": "UserMetadata", - "kind": 256, - "kindString": "Interface", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 275, - "character": 17 - } - ], - "indexSignature": { - "id": 614, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": {}, - "parameters": [ - { - "id": 615, - "name": "key", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - } - } - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 627, - 618, - 620, - 621, - 631, - 630, - 628, - 623, - 632, - 638, - 617, - 637, - 626, - 634, - 624, - 625, - 629, - 633, - 622, - 635, - 636, - 619 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 279, - "character": 17 - } - ] - }, - { - "id": 609, - "name": "UserAppMetadata", - "kind": 256, - "kindString": "Interface", - "flags": {}, - "children": [ - { - "id": 610, - "name": "provider", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 271, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 610 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 270, - "character": 17 - } - ], - "indexSignature": { - "id": 611, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": {}, - "parameters": [ - { - "id": 612, - "name": "key", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - } - }, - { - "id": 639, - "name": "UserAttributes", - "kind": 256, - "kindString": "Interface", - "flags": {}, - "children": [ - { - "id": 644, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", - "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n\n" - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 333, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "object" - } - }, - { - "id": 640, - "name": "email", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "The user's email." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 308, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 643, - "name": "nonce", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "The nonce sent for reauthentication if the user's password is to be updated.", - "text": "Call reauthenticate() to obtain the nonce first.\n" - }, "sources": [ { "fileName": "src/lib/types.ts", @@ -19911,20 +19549,17 @@ } }, { - "id": 642, - "name": "password", + "id": 671, + "name": "confirmed_at", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "comment": { - "shortText": "The user's password." - }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 318, + "line": 335, "character": 2 } ], @@ -19934,20 +19569,443 @@ } }, { - "id": 641, + "id": 670, + "name": "created_at", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 334, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 668, + "name": "email", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 332, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 663, + "name": "email_change_sent_at", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 327, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 672, + "name": "email_confirmed_at", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 336, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 678, + "name": "factors", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 342, + "character": 2 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "id": 642, + "name": "Factor" + } + } + }, + { + "id": 657, + "name": "id", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 321, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 677, + "name": "identities", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 341, + "character": 2 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "id": 630, + "name": "UserIdentity" + } + } + }, + { + "id": 666, + "name": "invited_at", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 330, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 674, + "name": "last_sign_in_at", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 338, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 664, + "name": "new_email", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 328, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 665, + "name": "new_phone", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 329, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 669, "name": "phone", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "comment": { - "shortText": "The user's phone." + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 333, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 673, + "name": "phone_confirmed_at", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 313, + "line": 337, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 662, + "name": "recovery_sent_at", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 326, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 675, + "name": "role", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 339, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 676, + "name": "updated_at", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 340, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 659, + "name": "user_metadata", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 323, + "character": 2 + } + ], + "type": { + "type": "reference", + "id": 653, + "name": "UserMetadata", + "dereferenced": { + "id": 653, + "name": "UserMetadata", + "kind": 256, + "kindString": "Interface", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 316, + "character": 17 + } + ], + "indexSignature": { + "id": 654, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ + { + "id": 655, + "name": "key", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + } + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 667, + 658, + 660, + 661, + 671, + 670, + 668, + 663, + 672, + 678, + 657, + 677, + 666, + 674, + 664, + 665, + 669, + 673, + 662, + 675, + 676, + 659 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 320, + "character": 17 + } + ] + }, + { + "id": 649, + "name": "UserAppMetadata", + "kind": 256, + "kindString": "Interface", + "flags": {}, + "children": [ + { + "id": 650, + "name": "provider", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 312, "character": 2 } ], @@ -19962,31 +20020,196 @@ "title": "Properties", "kind": 1024, "children": [ - 644, - 640, - 643, - 642, - 641 + 650 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 304, + "line": 311, + "character": 17 + } + ], + "indexSignature": { + "id": 651, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ + { + "id": 652, + "name": "key", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + }, + { + "id": 679, + "name": "UserAttributes", + "kind": 256, + "kindString": "Interface", + "flags": {}, + "children": [ + { + "id": 684, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.", + "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n\n" + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 374, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "object" + } + }, + { + "id": 680, + "name": "email", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "The user's email." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 349, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 683, + "name": "nonce", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "The nonce sent for reauthentication if the user's password is to be updated.", + "text": "Call reauthenticate() to obtain the nonce first.\n" + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 366, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 682, + "name": "password", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "The user's password." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 359, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 681, + "name": "phone", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "The user's phone." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 354, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 684, + 680, + 683, + 682, + 681 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 345, "character": 17 } ] }, { - "id": 590, + "id": 630, "name": "UserIdentity", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 599, + "id": 639, "name": "created_at", "kind": 1024, "kindString": "Property", @@ -19996,7 +20219,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 238, + "line": 279, "character": 2 } ], @@ -20006,7 +20229,7 @@ } }, { - "id": 591, + "id": 631, "name": "id", "kind": 1024, "kindString": "Property", @@ -20014,7 +20237,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 231, + "line": 272, "character": 2 } ], @@ -20024,7 +20247,7 @@ } }, { - "id": 593, + "id": 633, "name": "identity_data", "kind": 1024, "kindString": "Property", @@ -20034,27 +20257,27 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 233, + "line": 274, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 594, + "id": 634, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": { - "id": 595, + "id": 635, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 596, + "id": 636, "name": "key", "kind": 32768, "flags": {}, @@ -20073,7 +20296,7 @@ } }, { - "id": 597, + "id": 637, "name": "identity_id", "kind": 1024, "kindString": "Property", @@ -20081,7 +20304,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 236, + "line": 277, "character": 2 } ], @@ -20091,7 +20314,7 @@ } }, { - "id": 600, + "id": 640, "name": "last_sign_in_at", "kind": 1024, "kindString": "Property", @@ -20101,7 +20324,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 239, + "line": 280, "character": 2 } ], @@ -20111,7 +20334,7 @@ } }, { - "id": 598, + "id": 638, "name": "provider", "kind": 1024, "kindString": "Property", @@ -20119,7 +20342,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 237, + "line": 278, "character": 2 } ], @@ -20129,7 +20352,7 @@ } }, { - "id": 601, + "id": 641, "name": "updated_at", "kind": 1024, "kindString": "Property", @@ -20139,7 +20362,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 240, + "line": 281, "character": 2 } ], @@ -20149,7 +20372,7 @@ } }, { - "id": 592, + "id": 632, "name": "user_id", "kind": 1024, "kindString": "Property", @@ -20157,7 +20380,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 232, + "line": 273, "character": 2 } ], @@ -20172,27 +20395,27 @@ "title": "Properties", "kind": 1024, "children": [ - 599, - 591, - 593, - 597, - 600, - 598, - 601, - 592 + 639, + 631, + 633, + 637, + 640, + 638, + 641, + 632 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 230, + "line": 271, "character": 17 } ] }, { - "id": 613, + "id": 653, "name": "UserMetadata", "kind": 256, "kindString": "Interface", @@ -20200,19 +20423,19 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 275, + "line": 316, "character": 17 } ], "indexSignature": { - "id": 614, + "id": 654, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 615, + "id": 655, "name": "key", "kind": 32768, "flags": {}, @@ -20229,14 +20452,14 @@ } }, { - "id": 745, + "id": 790, "name": "VerifyEmailOtpParams", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 746, + "id": 791, "name": "email", "kind": 1024, "kindString": "Property", @@ -20247,7 +20470,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 570, + "line": 618, "character": 2 } ], @@ -20257,7 +20480,7 @@ } }, { - "id": 749, + "id": 794, "name": "options", "kind": 1024, "kindString": "Property", @@ -20267,21 +20490,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 575, + "line": 623, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 750, + "id": 795, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 752, + "id": 797, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -20300,7 +20523,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 583, + "line": 631, "character": 4 } ], @@ -20310,7 +20533,7 @@ } }, { - "id": 751, + "id": 796, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -20323,7 +20546,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 577, + "line": 625, "character": 4 } ], @@ -20338,8 +20561,8 @@ "title": "Properties", "kind": 1024, "children": [ - 752, - 751 + 797, + 796 ] } ] @@ -20347,7 +20570,7 @@ } }, { - "id": 747, + "id": 792, "name": "token", "kind": 1024, "kindString": "Property", @@ -20358,7 +20581,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 572, + "line": 620, "character": 2 } ], @@ -20368,7 +20591,7 @@ } }, { - "id": 748, + "id": 793, "name": "type", "kind": 1024, "kindString": "Property", @@ -20379,16 +20602,16 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 574, + "line": 622, "character": 2 } ], "type": { "type": "reference", - "id": 757, + "id": 802, "name": "EmailOtpType", "dereferenced": { - "id": 757, + "id": 802, "name": "EmailOtpType", "kind": 4194304, "kindString": "Type alias", @@ -20396,7 +20619,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 596, + "line": 644, "character": 12 } ], @@ -20438,30 +20661,30 @@ "title": "Properties", "kind": 1024, "children": [ - 746, - 749, - 747, - 748 + 791, + 794, + 792, + 793 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 568, + "line": 616, "character": 17 } ] }, { - "id": 737, + "id": 782, "name": "VerifyMobileOtpParams", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 741, + "id": 786, "name": "options", "kind": 1024, "kindString": "Property", @@ -20471,21 +20694,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 556, + "line": 604, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 742, + "id": 787, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 744, + "id": 789, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -20504,7 +20727,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 565, + "line": 613, "character": 4 } ], @@ -20514,7 +20737,7 @@ } }, { - "id": 743, + "id": 788, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -20527,7 +20750,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 558, + "line": 606, "character": 4 } ], @@ -20542,8 +20765,8 @@ "title": "Properties", "kind": 1024, "children": [ - 744, - 743 + 789, + 788 ] } ] @@ -20551,7 +20774,7 @@ } }, { - "id": 738, + "id": 783, "name": "phone", "kind": 1024, "kindString": "Property", @@ -20562,7 +20785,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 551, + "line": 599, "character": 2 } ], @@ -20572,7 +20795,7 @@ } }, { - "id": 739, + "id": 784, "name": "token", "kind": 1024, "kindString": "Property", @@ -20583,7 +20806,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 553, + "line": 601, "character": 2 } ], @@ -20593,7 +20816,7 @@ } }, { - "id": 740, + "id": 785, "name": "type", "kind": 1024, "kindString": "Property", @@ -20604,16 +20827,16 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 555, + "line": 603, "character": 2 } ], "type": { "type": "reference", - "id": 756, + "id": 801, "name": "MobileOtpType", "dereferenced": { - "id": 756, + "id": 801, "name": "MobileOtpType", "kind": 4194304, "kindString": "Type alias", @@ -20621,7 +20844,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 595, + "line": 643, "character": 12 } ], @@ -20647,30 +20870,30 @@ "title": "Properties", "kind": 1024, "children": [ - 741, - 738, - 739, - 740 + 786, + 783, + 784, + 785 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 549, + "line": 597, "character": 17 } ] }, { - "id": 753, + "id": 798, "name": "VerifyTokenHashParams", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 754, + "id": 799, "name": "token_hash", "kind": 1024, "kindString": "Property", @@ -20681,7 +20904,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 589, + "line": 637, "character": 2 } ], @@ -20691,7 +20914,7 @@ } }, { - "id": 755, + "id": 800, "name": "type", "kind": 1024, "kindString": "Property", @@ -20702,16 +20925,16 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 592, + "line": 640, "character": 2 } ], "type": { "type": "reference", - "id": 757, + "id": 802, "name": "EmailOtpType", "dereferenced": { - "id": 757, + "id": 802, "name": "EmailOtpType", "kind": 4194304, "kindString": "Type alias", @@ -20719,7 +20942,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 596, + "line": 644, "character": 12 } ], @@ -20761,21 +20984,21 @@ "title": "Properties", "kind": 1024, "children": [ - 754, - 755 + 799, + 800 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 587, + "line": 635, "character": 17 } ] }, { - "id": 474, + "id": 480, "name": "AuthChangeEvent", "kind": 4194304, "kindString": "Type alias", @@ -20815,7 +21038,7 @@ "value": "USER_UPDATED" }, { - "id": 473, + "id": 479, "name": "AuthChangeEventMFA", "kind": 4194304, "kindString": "Type alias", @@ -20836,7 +21059,7 @@ } }, { - "id": 473, + "id": 479, "name": "AuthChangeEventMFA", "kind": 4194304, "kindString": "Type alias", @@ -20854,7 +21077,7 @@ } }, { - "id": 714, + "id": 759, "name": "AuthFlowType", "kind": 4194304, "kindString": "Type alias", @@ -20862,7 +21085,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 517, + "line": 565, "character": 12 } ], @@ -20881,7 +21104,7 @@ } }, { - "id": 950, + "id": 996, "name": "AuthMFAAdminDeleteFactorParams", "kind": 4194304, "kindString": "Type alias", @@ -20897,21 +21120,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 978, + "line": 1028, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 951, + "id": 997, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 952, + "id": 998, "name": "id", "kind": 1024, "kindString": "Property", @@ -20922,7 +21145,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 980, + "line": 1030, "character": 2 } ], @@ -20932,7 +21155,7 @@ } }, { - "id": 953, + "id": 999, "name": "userId", "kind": 1024, "kindString": "Property", @@ -20943,7 +21166,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 983, + "line": 1033, "character": 2 } ], @@ -20958,15 +21181,15 @@ "title": "Properties", "kind": 1024, "children": [ - 952, - 953 + 998, + 999 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 978, + "line": 1028, "character": 45 } ] @@ -20974,7 +21197,7 @@ } }, { - "id": 941, + "id": 987, "name": "AuthMFAAdminDeleteFactorResponse", "kind": 4194304, "kindString": "Type alias", @@ -20990,13 +21213,618 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 965, + "line": 1015, "character": 12 } ], "type": { "type": "union", "types": [ + { + "type": "reflection", + "declaration": { + "id": 988, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 989, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1017, + "character": 6 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 990, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 991, + "name": "id", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "comment": { + "shortText": "ID of the factor that was successfully deleted." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1019, + "character": 8 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 991 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1017, + "character": 12 + } + ] + } + } + }, + { + "id": 992, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1021, + "character": 6 + } + ], + "type": { + "type": "literal", + "value": null + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 989, + 992 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1016, + "character": 4 + } + ] + } + }, + { + "type": "reflection", + "declaration": { + "id": 993, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 994, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1023, + "character": 6 + } + ], + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 995, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1023, + "character": 18 + } + ], + "type": { + "type": "reference", + "id": 1058, + "name": "AuthError" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 994, + 995 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1023, + "character": 4 + } + ] + } + } + ] + } + }, + { + "id": 1009, + "name": "AuthMFAAdminListFactorsParams", + "kind": 4194304, + "kindString": "Type alias", + "flags": {}, + "comment": { + "tags": [ + { + "tag": "expermental", + "text": "\n" + } + ] + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1052, + "character": 12 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1010, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 1011, + "name": "userId", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "comment": { + "shortText": "ID of the user." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1054, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 1011 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1052, + "character": 44 + } + ] + } + } + }, + { + "id": 1000, + "name": "AuthMFAAdminListFactorsResponse", + "kind": 4194304, + "kindString": "Type alias", + "flags": {}, + "comment": { + "tags": [ + { + "tag": "expermental", + "text": "\n" + } + ] + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1039, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 1001, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 1002, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1041, + "character": 6 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1003, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 1004, + "name": "factors", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "comment": { + "shortText": "All factors attached to the user." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1043, + "character": 8 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "id": 642, + "name": "Factor" + } + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 1004 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1041, + "character": 12 + } + ] + } + } + }, + { + "id": 1005, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1045, + "character": 6 + } + ], + "type": { + "type": "literal", + "value": null + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 1002, + 1005 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1040, + "character": 4 + } + ] + } + }, + { + "type": "reflection", + "declaration": { + "id": 1006, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 1007, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1047, + "character": 6 + } + ], + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 1008, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1047, + "character": 18 + } + ], + "type": { + "type": "reference", + "id": 1058, + "name": "AuthError" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 1007, + 1008 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1047, + "character": 4 + } + ] + } + } + ] + } + }, + { + "id": 935, + "name": "AuthMFAChallengeResponse", + "kind": 4194304, + "kindString": "Type alias", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 892, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 936, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 937, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 894, + "character": 6 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 938, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 940, + "name": "expires_at", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "comment": { + "shortText": "Timestamp in UNIX seconds when this challenge will no longer be usable." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 899, + "character": 8 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 939, + "name": "id", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "comment": { + "shortText": "ID of the newly created challenge." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 896, + "character": 8 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 940, + 939 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 894, + "character": 12 + } + ] + } + } + }, + { + "id": 941, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 901, + "character": 6 + } + ], + "type": { + "type": "literal", + "value": null + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 937, + 941 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 893, + "character": 4 + } + ] + } + }, { "type": "reflection", "declaration": { @@ -21015,62 +21843,17 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 967, + "line": 903, "character": 6 } ], "type": { - "type": "reflection", - "declaration": { - "id": 944, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 945, - "name": "id", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "ID of the factor that was successfully deleted." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 969, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 945 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 967, - "character": 12 - } - ] - } + "type": "literal", + "value": null } }, { - "id": 946, + "id": 944, "name": "error", "kind": 1024, "kindString": "Property", @@ -21078,13 +21861,14 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 971, - "character": 6 + "line": 903, + "character": 18 } ], "type": { - "type": "literal", - "value": null + "type": "reference", + "id": 1058, + "name": "AuthError" } } ], @@ -21094,903 +21878,14 @@ "kind": 1024, "children": [ 943, - 946 + 944 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 966, - "character": 4 - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 947, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 948, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 973, - "character": 6 - } - ], - "type": { - "type": "literal", - "value": null - } - }, - { - "id": 949, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 973, - "character": 18 - } - ], - "type": { - "type": "reference", - "id": 1010, - "name": "AuthError" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 948, - 949 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 973, - "character": 4 - } - ] - } - } - ] - } - }, - { - "id": 963, - "name": "AuthMFAAdminListFactorsParams", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "comment": { - "tags": [ - { - "tag": "expermental", - "text": "\n" - } - ] - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 1002, - "character": 12 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 964, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 965, - "name": "userId", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "ID of the user." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 1004, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 965 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 1002, - "character": 44 - } - ] - } - } - }, - { - "id": 954, - "name": "AuthMFAAdminListFactorsResponse", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "comment": { - "tags": [ - { - "tag": "expermental", - "text": "\n" - } - ] - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 989, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 955, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 956, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 991, - "character": 6 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 957, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 958, - "name": "factors", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "All factors attached to the user." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 993, - "character": 8 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "id": 602, - "name": "Factor" - } - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 958 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 991, - "character": 12 - } - ] - } - } - }, - { - "id": 959, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 995, - "character": 6 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 956, - 959 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 990, - "character": 4 - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 960, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 961, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 997, - "character": 6 - } - ], - "type": { - "type": "literal", - "value": null - } - }, - { - "id": 962, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 997, - "character": 18 - } - ], - "type": { - "type": "reference", - "id": 1010, - "name": "AuthError" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 961, - 962 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 997, - "character": 4 - } - ] - } - } - ] - } - }, - { - "id": 889, - "name": "AuthMFAChallengeResponse", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 842, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 890, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 891, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 844, - "character": 6 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 892, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 894, - "name": "expires_at", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "Timestamp in UNIX seconds when this challenge will no longer be usable." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 849, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 893, - "name": "id", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "ID of the newly created challenge." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 846, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 894, - 893 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 844, - "character": 12 - } - ] - } - } - }, - { - "id": 895, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 851, - "character": 6 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 891, - 895 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 843, - "character": 4 - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 896, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 897, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 853, - "character": 6 - } - ], - "type": { - "type": "literal", - "value": null - } - }, - { - "id": 898, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 853, - "character": 18 - } - ], - "type": { - "type": "reference", - "id": 1010, - "name": "AuthError" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 897, - 898 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 853, - "character": 4 - } - ] - } - } - ] - } - }, - { - "id": 865, - "name": "AuthMFAEnrollResponse", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 799, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 866, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 867, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 801, - "character": 6 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 868, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 869, - "name": "id", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "ID of the factor that was just enrolled (in an unverified state)." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 803, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 871, - "name": "totp", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "TOTP enrollment information." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 809, - "character": 8 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 872, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 873, - "name": "qr_code", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "Contains a QR code encoding the authenticator URI. You can\nconvert it to a URL by prepending `data:image/svg+xml;utf-8,` to\nthe value. Avoid logging this value to the console." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 813, - "character": 10 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 874, - "name": "secret", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The TOTP secret (also encoded in the QR code). Show this secret\nin a password-style field to the user, in case they are unable to\nscan the QR code. Avoid logging this value to the console." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 818, - "character": 10 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 875, - "name": "uri", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The authenticator URI encoded within the QR code, should you need\nto use it. Avoid loggin this value to the console." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 822, - "character": 10 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 873, - 874, - 875 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 809, - "character": 14 - } - ] - } - } - }, - { - "id": 870, - "name": "type", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "Type of MFA factor. Only `totp` supported for now." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 806, - "character": 8 - } - ], - "type": { - "type": "literal", - "value": "totp" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 869, - 871, - 870 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 801, - "character": 12 - } - ] - } - } - }, - { - "id": 876, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 825, - "character": 6 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 867, - 876 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 800, - "character": 4 - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 877, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 878, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 828, - "character": 6 - } - ], - "type": { - "type": "literal", - "value": null - } - }, - { - "id": 879, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 829, - "character": 6 - } - ], - "type": { - "type": "reference", - "id": 1010, - "name": "AuthError" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 878, - 879 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 827, + "line": 903, "character": 4 } ] @@ -22001,14 +21896,14 @@ }, { "id": 910, - "name": "AuthMFAGetAuthenticatorAssuranceLevelResponse", + "name": "AuthMFAEnrollResponse", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/lib/types.ts", - "line": 870, + "line": 847, "character": 12 } ], @@ -22033,7 +21928,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 872, + "line": 849, "character": 6 } ], @@ -22046,8 +21941,360 @@ "kindString": "Type literal", "flags": {}, "children": [ + { + "id": 921, + "name": "friendly_name", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "Friendly name of the factor, useful for distinguishing between factors" + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 873, + "character": 8 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 914, + "name": "id", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "comment": { + "shortText": "ID of the factor that was just enrolled (in an unverified state)." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 851, + "character": 8 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, { "id": 916, + "name": "totp", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "comment": { + "shortText": "TOTP enrollment information." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 857, + "character": 8 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 917, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 918, + "name": "qr_code", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "comment": { + "shortText": "Contains a QR code encoding the authenticator URI. You can\nconvert it to a URL by prepending `data:image/svg+xml;utf-8,` to\nthe value. Avoid logging this value to the console." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 861, + "character": 10 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 919, + "name": "secret", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "comment": { + "shortText": "The TOTP secret (also encoded in the QR code). Show this secret\nin a password-style field to the user, in case they are unable to\nscan the QR code. Avoid logging this value to the console." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 866, + "character": 10 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 920, + "name": "uri", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "comment": { + "shortText": "The authenticator URI encoded within the QR code, should you need\nto use it. Avoid loggin this value to the console." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 870, + "character": 10 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 918, + 919, + 920 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 857, + "character": 14 + } + ] + } + } + }, + { + "id": 915, + "name": "type", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "comment": { + "shortText": "Type of MFA factor. Only `totp` supported for now." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 854, + "character": 8 + } + ], + "type": { + "type": "literal", + "value": "totp" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 921, + 914, + 916, + 915 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 849, + "character": 12 + } + ] + } + } + }, + { + "id": 922, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 875, + "character": 6 + } + ], + "type": { + "type": "literal", + "value": null + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 912, + 922 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 848, + "character": 4 + } + ] + } + }, + { + "type": "reflection", + "declaration": { + "id": 923, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 924, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 878, + "character": 6 + } + ], + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 925, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 879, + "character": 6 + } + ], + "type": { + "type": "reference", + "id": 1058, + "name": "AuthError" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 924, + 925 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 877, + "character": 4 + } + ] + } + } + ] + } + }, + { + "id": 956, + "name": "AuthMFAGetAuthenticatorAssuranceLevelResponse", + "kind": 4194304, + "kindString": "Type alias", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 920, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 957, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 958, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 922, + "character": 6 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 959, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 962, "name": "currentAuthenticationMethods", "kind": 1024, "kindString": "Property", @@ -22058,7 +22305,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 889, + "line": 939, "character": 8 } ], @@ -22066,13 +22313,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 587, + "id": 627, "name": "AMREntry" } } }, { - "id": 914, + "id": 960, "name": "currentLevel", "kind": 1024, "kindString": "Property", @@ -22083,7 +22330,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 874, + "line": 924, "character": 8 } ], @@ -22092,7 +22339,7 @@ "types": [ { "type": "reference", - "id": 909, + "id": 955, "name": "AuthenticatorAssuranceLevels" }, { @@ -22103,7 +22350,7 @@ } }, { - "id": 915, + "id": 961, "name": "nextLevel", "kind": 1024, "kindString": "Property", @@ -22120,7 +22367,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 882, + "line": 932, "character": 8 } ], @@ -22129,7 +22376,7 @@ "types": [ { "type": "reference", - "id": 909, + "id": 955, "name": "AuthenticatorAssuranceLevels" }, { @@ -22145,16 +22392,16 @@ "title": "Properties", "kind": 1024, "children": [ - 916, - 914, - 915 + 962, + 960, + 961 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 872, + "line": 922, "character": 12 } ] @@ -22162,7 +22409,7 @@ } }, { - "id": 917, + "id": 963, "name": "error", "kind": 1024, "kindString": "Property", @@ -22170,7 +22417,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 891, + "line": 941, "character": 6 } ], @@ -22185,15 +22432,15 @@ "title": "Properties", "kind": 1024, "children": [ - 912, - 917 + 958, + 963 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 871, + "line": 921, "character": 4 } ] @@ -22202,14 +22449,14 @@ { "type": "reflection", "declaration": { - "id": 918, + "id": 964, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 919, + "id": 965, "name": "data", "kind": 1024, "kindString": "Property", @@ -22217,7 +22464,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 893, + "line": 943, "character": 6 } ], @@ -22227,7 +22474,7 @@ } }, { - "id": 920, + "id": 966, "name": "error", "kind": 1024, "kindString": "Property", @@ -22235,13 +22482,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 893, + "line": 943, "character": 18 } ], "type": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } } @@ -22251,15 +22498,15 @@ "title": "Properties", "kind": 1024, "children": [ - 919, - 920 + 965, + 966 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 893, + "line": 943, "character": 4 } ] @@ -22269,7 +22516,7 @@ } }, { - "id": 899, + "id": 945, "name": "AuthMFAListFactorsResponse", "kind": 4194304, "kindString": "Type alias", @@ -22277,7 +22524,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 855, + "line": 905, "character": 12 } ], @@ -22287,14 +22534,14 @@ { "type": "reflection", "declaration": { - "id": 900, + "id": 946, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 901, + "id": 947, "name": "data", "kind": 1024, "kindString": "Property", @@ -22302,21 +22549,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 857, + "line": 907, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 902, + "id": 948, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 903, + "id": 949, "name": "all", "kind": 1024, "kindString": "Property", @@ -22327,7 +22574,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 859, + "line": 909, "character": 8 } ], @@ -22335,13 +22582,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 602, + "id": 642, "name": "Factor" } } }, { - "id": 904, + "id": 950, "name": "totp", "kind": 1024, "kindString": "Property", @@ -22352,7 +22599,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 862, + "line": 912, "character": 8 } ], @@ -22360,7 +22607,7 @@ "type": "array", "elementType": { "type": "reference", - "id": 602, + "id": 642, "name": "Factor" } } @@ -22371,15 +22618,15 @@ "title": "Properties", "kind": 1024, "children": [ - 903, - 904 + 949, + 950 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 857, + "line": 907, "character": 12 } ] @@ -22387,7 +22634,7 @@ } }, { - "id": 905, + "id": 951, "name": "error", "kind": 1024, "kindString": "Property", @@ -22395,7 +22642,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 864, + "line": 914, "character": 6 } ], @@ -22410,15 +22657,15 @@ "title": "Properties", "kind": 1024, "children": [ - 901, - 905 + 947, + 951 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 856, + "line": 906, "character": 4 } ] @@ -22427,14 +22674,14 @@ { "type": "reflection", "declaration": { - "id": 906, + "id": 952, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 907, + "id": 953, "name": "data", "kind": 1024, "kindString": "Property", @@ -22442,7 +22689,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 866, + "line": 916, "character": 6 } ], @@ -22452,7 +22699,7 @@ } }, { - "id": 908, + "id": 954, "name": "error", "kind": 1024, "kindString": "Property", @@ -22460,13 +22707,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 866, + "line": 916, "character": 18 } ], "type": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } } @@ -22476,15 +22723,15 @@ "title": "Properties", "kind": 1024, "children": [ - 907, - 908 + 953, + 954 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 866, + "line": 916, "character": 4 } ] @@ -22494,7 +22741,7 @@ } }, { - "id": 880, + "id": 926, "name": "AuthMFAUnenrollResponse", "kind": 4194304, "kindString": "Type alias", @@ -22502,7 +22749,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 832, + "line": 882, "character": 12 } ], @@ -22512,14 +22759,14 @@ { "type": "reflection", "declaration": { - "id": 881, + "id": 927, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 882, + "id": 928, "name": "data", "kind": 1024, "kindString": "Property", @@ -22527,21 +22774,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 834, + "line": 884, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 883, + "id": 929, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 884, + "id": 930, "name": "id", "kind": 1024, "kindString": "Property", @@ -22552,7 +22799,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 836, + "line": 886, "character": 8 } ], @@ -22567,14 +22814,14 @@ "title": "Properties", "kind": 1024, "children": [ - 884 + 930 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 834, + "line": 884, "character": 12 } ] @@ -22582,7 +22829,7 @@ } }, { - "id": 885, + "id": 931, "name": "error", "kind": 1024, "kindString": "Property", @@ -22590,7 +22837,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 838, + "line": 888, "character": 6 } ], @@ -22605,15 +22852,15 @@ "title": "Properties", "kind": 1024, "children": [ - 882, - 885 + 928, + 931 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 833, + "line": 883, "character": 4 } ] @@ -22622,14 +22869,14 @@ { "type": "reflection", "declaration": { - "id": 886, + "id": 932, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 887, + "id": 933, "name": "data", "kind": 1024, "kindString": "Property", @@ -22637,7 +22884,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 840, + "line": 890, "character": 6 } ], @@ -22647,7 +22894,7 @@ } }, { - "id": 888, + "id": 934, "name": "error", "kind": 1024, "kindString": "Property", @@ -22655,13 +22902,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 840, + "line": 890, "character": 18 } ], "type": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } } @@ -22671,15 +22918,15 @@ "title": "Properties", "kind": 1024, "children": [ - 887, - 888 + 933, + 934 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 840, + "line": 890, "character": 4 } ] @@ -22689,7 +22936,7 @@ } }, { - "id": 852, + "id": 897, "name": "AuthMFAVerifyResponse", "kind": 4194304, "kindString": "Type alias", @@ -22697,7 +22944,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 774, + "line": 822, "character": 12 } ], @@ -22707,14 +22954,14 @@ { "type": "reflection", "declaration": { - "id": 853, + "id": 898, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 854, + "id": 899, "name": "data", "kind": 1024, "kindString": "Property", @@ -22722,21 +22969,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 776, + "line": 824, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 855, + "id": 900, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 856, + "id": 901, "name": "access_token", "kind": 1024, "kindString": "Property", @@ -22747,7 +22994,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 778, + "line": 826, "character": 8 } ], @@ -22757,7 +23004,7 @@ } }, { - "id": 858, + "id": 903, "name": "expires_in", "kind": 1024, "kindString": "Property", @@ -22768,7 +23015,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 784, + "line": 832, "character": 8 } ], @@ -22778,7 +23025,7 @@ } }, { - "id": 859, + "id": 904, "name": "refresh_token", "kind": 1024, "kindString": "Property", @@ -22789,7 +23036,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 787, + "line": 835, "character": 8 } ], @@ -22799,7 +23046,7 @@ } }, { - "id": 857, + "id": 902, "name": "token_type", "kind": 1024, "kindString": "Property", @@ -22810,7 +23057,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 781, + "line": 829, "character": 8 } ], @@ -22820,7 +23067,7 @@ } }, { - "id": 860, + "id": 905, "name": "user", "kind": 1024, "kindString": "Property", @@ -22831,13 +23078,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 790, + "line": 838, "character": 8 } ], "type": { "type": "reference", - "id": 616, + "id": 656, "name": "User" } } @@ -22847,18 +23094,18 @@ "title": "Properties", "kind": 1024, "children": [ - 856, - 858, - 859, - 857, - 860 + 901, + 903, + 904, + 902, + 905 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 776, + "line": 824, "character": 12 } ] @@ -22866,7 +23113,7 @@ } }, { - "id": 861, + "id": 906, "name": "error", "kind": 1024, "kindString": "Property", @@ -22874,7 +23121,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 792, + "line": 840, "character": 6 } ], @@ -22889,15 +23136,15 @@ "title": "Properties", "kind": 1024, "children": [ - 854, - 861 + 899, + 906 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 775, + "line": 823, "character": 4 } ] @@ -22906,14 +23153,14 @@ { "type": "reflection", "declaration": { - "id": 862, + "id": 907, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 863, + "id": 908, "name": "data", "kind": 1024, "kindString": "Property", @@ -22921,7 +23168,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 795, + "line": 843, "character": 6 } ], @@ -22931,7 +23178,7 @@ } }, { - "id": 864, + "id": 909, "name": "error", "kind": 1024, "kindString": "Property", @@ -22939,13 +23186,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 796, + "line": 844, "character": 6 } ], "type": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } } @@ -22955,15 +23202,15 @@ "title": "Properties", "kind": 1024, "children": [ - 863, - 864 + 908, + 909 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 794, + "line": 842, "character": 4 } ] @@ -22973,7 +23220,7 @@ } }, { - "id": 517, + "id": 542, "name": "AuthOtpResponse", "kind": 4194304, "kindString": "Type alias", @@ -22985,7 +23232,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 106, + "line": 129, "character": 12 } ], @@ -22995,14 +23242,14 @@ { "type": "reflection", "declaration": { - "id": 518, + "id": 543, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 519, + "id": 544, "name": "data", "kind": 1024, "kindString": "Property", @@ -23010,21 +23257,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 108, + "line": 131, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 520, + "id": 545, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 523, + "id": 548, "name": "messageId", "kind": 1024, "kindString": "Property", @@ -23034,7 +23281,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 108, + "line": 131, "character": 41 } ], @@ -23053,7 +23300,7 @@ } }, { - "id": 522, + "id": 547, "name": "session", "kind": 1024, "kindString": "Property", @@ -23061,7 +23308,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 108, + "line": 131, "character": 26 } ], @@ -23071,7 +23318,7 @@ } }, { - "id": 521, + "id": 546, "name": "user", "kind": 1024, "kindString": "Property", @@ -23079,7 +23326,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 108, + "line": 131, "character": 14 } ], @@ -23094,16 +23341,16 @@ "title": "Properties", "kind": 1024, "children": [ - 523, - 522, - 521 + 548, + 547, + 546 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 108, + "line": 131, "character": 12 } ] @@ -23111,7 +23358,7 @@ } }, { - "id": 524, + "id": 549, "name": "error", "kind": 1024, "kindString": "Property", @@ -23119,7 +23366,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 109, + "line": 132, "character": 6 } ], @@ -23134,15 +23381,15 @@ "title": "Properties", "kind": 1024, "children": [ - 519, - 524 + 544, + 549 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 107, + "line": 130, "character": 4 } ] @@ -23151,14 +23398,14 @@ { "type": "reflection", "declaration": { - "id": 525, + "id": 550, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 526, + "id": 551, "name": "data", "kind": 1024, "kindString": "Property", @@ -23166,21 +23413,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 112, + "line": 135, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 527, + "id": 552, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 530, + "id": 555, "name": "messageId", "kind": 1024, "kindString": "Property", @@ -23190,7 +23437,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 112, + "line": 135, "character": 41 } ], @@ -23209,7 +23456,7 @@ } }, { - "id": 529, + "id": 554, "name": "session", "kind": 1024, "kindString": "Property", @@ -23217,7 +23464,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 112, + "line": 135, "character": 26 } ], @@ -23227,7 +23474,7 @@ } }, { - "id": 528, + "id": 553, "name": "user", "kind": 1024, "kindString": "Property", @@ -23235,7 +23482,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 112, + "line": 135, "character": 14 } ], @@ -23250,16 +23497,16 @@ "title": "Properties", "kind": 1024, "children": [ - 530, - 529, - 528 + 555, + 554, + 553 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 112, + "line": 135, "character": 12 } ] @@ -23267,7 +23514,7 @@ } }, { - "id": 531, + "id": 556, "name": "error", "kind": 1024, "kindString": "Property", @@ -23275,13 +23522,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 113, + "line": 136, "character": 6 } ], "type": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } } @@ -23291,15 +23538,15 @@ "title": "Properties", "kind": 1024, "children": [ - 526, - 531 + 551, + 556 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 111, + "line": 134, "character": 4 } ] @@ -23309,7 +23556,7 @@ } }, { - "id": 504, + "id": 515, "name": "AuthResponse", "kind": 4194304, "kindString": "Type alias", @@ -23317,7 +23564,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 85, + "line": 91, "character": 12 } ], @@ -23327,14 +23574,14 @@ { "type": "reflection", "declaration": { - "id": 505, + "id": 516, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 506, + "id": 517, "name": "data", "kind": 1024, "kindString": "Property", @@ -23342,21 +23589,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 87, + "line": 93, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 507, + "id": 518, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 509, + "id": 520, "name": "session", "kind": 1024, "kindString": "Property", @@ -23364,7 +23611,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 89, + "line": 95, "character": 8 } ], @@ -23373,7 +23620,7 @@ "types": [ { "type": "reference", - "id": 578, + "id": 618, "name": "Session" }, { @@ -23384,7 +23631,7 @@ } }, { - "id": 508, + "id": 519, "name": "user", "kind": 1024, "kindString": "Property", @@ -23392,7 +23639,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 88, + "line": 94, "character": 8 } ], @@ -23401,7 +23648,7 @@ "types": [ { "type": "reference", - "id": 616, + "id": 656, "name": "User" }, { @@ -23417,15 +23664,15 @@ "title": "Properties", "kind": 1024, "children": [ - 509, - 508 + 520, + 519 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 87, + "line": 93, "character": 12 } ] @@ -23433,7 +23680,7 @@ } }, { - "id": 510, + "id": 521, "name": "error", "kind": 1024, "kindString": "Property", @@ -23441,7 +23688,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 91, + "line": 97, "character": 6 } ], @@ -23456,15 +23703,15 @@ "title": "Properties", "kind": 1024, "children": [ - 506, - 510 + 517, + 521 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 86, + "line": 92, "character": 4 } ] @@ -23473,14 +23720,14 @@ { "type": "reflection", "declaration": { - "id": 511, + "id": 522, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 512, + "id": 523, "name": "data", "kind": 1024, "kindString": "Property", @@ -23488,21 +23735,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 94, + "line": 100, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 513, + "id": 524, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 515, + "id": 526, "name": "session", "kind": 1024, "kindString": "Property", @@ -23510,7 +23757,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 96, + "line": 102, "character": 8 } ], @@ -23520,7 +23767,7 @@ } }, { - "id": 514, + "id": 525, "name": "user", "kind": 1024, "kindString": "Property", @@ -23528,7 +23775,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 95, + "line": 101, "character": 8 } ], @@ -23543,15 +23790,15 @@ "title": "Properties", "kind": 1024, "children": [ - 515, - 514 + 526, + 525 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 94, + "line": 100, "character": 12 } ] @@ -23559,7 +23806,7 @@ } }, { - "id": 516, + "id": 527, "name": "error", "kind": 1024, "kindString": "Property", @@ -23567,13 +23814,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 98, + "line": 104, "character": 6 } ], "type": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } } @@ -23583,15 +23830,15 @@ "title": "Properties", "kind": 1024, "children": [ - 512, - 516 + 523, + 527 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 93, + "line": 99, "character": 4 } ] @@ -23601,15 +23848,15 @@ } }, { - "id": 532, - "name": "AuthTokenResponse", + "id": 528, + "name": "AuthResponsePassword", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/lib/types.ts", - "line": 116, + "line": 107, "character": 12 } ], @@ -23619,14 +23866,14 @@ { "type": "reflection", "declaration": { - "id": 533, + "id": 529, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 534, + "id": 530, "name": "data", "kind": 1024, "kindString": "Property", @@ -23634,21 +23881,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 118, + "line": 109, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 535, + "id": 531, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 537, + "id": 533, "name": "session", "kind": 1024, "kindString": "Property", @@ -23656,22 +23903,180 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 120, + "line": 111, "character": 8 } ], "type": { - "type": "reference", - "id": 578, - "name": "Session" + "type": "union", + "types": [ + { + "type": "reference", + "id": 618, + "name": "Session" + }, + { + "type": "literal", + "value": null + } + ] } }, { - "id": 536, + "id": 532, "name": "user", "kind": 1024, "kindString": "Property", "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 110, + "character": 8 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 656, + "name": "User" + }, + { + "type": "literal", + "value": null + } + ] + } + }, + { + "id": 534, + "name": "weak_password", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 112, + "character": 8 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 511, + "name": "WeakPassword" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 533, + 532, + 534 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 109, + "character": 12 + } + ] + } + } + }, + { + "id": 535, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 114, + "character": 6 + } + ], + "type": { + "type": "literal", + "value": null + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 530, + 535 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 108, + "character": 4 + } + ] + } + }, + { + "type": "reflection", + "declaration": { + "id": 536, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 537, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 117, + "character": 6 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 538, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 540, + "name": "session", + "kind": 1024, + "kindString": "Property", + "flags": {}, "sources": [ { "fileName": "src/lib/types.ts", @@ -23679,9 +24084,174 @@ "character": 8 } ], + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 539, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 118, + "character": 8 + } + ], + "type": { + "type": "literal", + "value": null + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 540, + 539 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 117, + "character": 12 + } + ] + } + } + }, + { + "id": 541, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 121, + "character": 6 + } + ], + "type": { + "type": "reference", + "id": 1058, + "name": "AuthError" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 537, + 541 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 116, + "character": 4 + } + ] + } + } + ] + } + }, + { + "id": 557, + "name": "AuthTokenResponse", + "kind": 4194304, + "kindString": "Type alias", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 139, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 558, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 559, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 141, + "character": 6 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 560, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 562, + "name": "session", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 143, + "character": 8 + } + ], "type": { "type": "reference", - "id": 616, + "id": 618, + "name": "Session" + } + }, + { + "id": 561, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 142, + "character": 8 + } + ], + "type": { + "type": "reference", + "id": 656, "name": "User" } } @@ -23691,15 +24261,15 @@ "title": "Properties", "kind": 1024, "children": [ - 537, - 536 + 562, + 561 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 118, + "line": 141, "character": 12 } ] @@ -23707,7 +24277,7 @@ } }, { - "id": 538, + "id": 563, "name": "error", "kind": 1024, "kindString": "Property", @@ -23715,7 +24285,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 122, + "line": 145, "character": 6 } ], @@ -23730,15 +24300,15 @@ "title": "Properties", "kind": 1024, "children": [ - 534, - 538 + 559, + 563 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 117, + "line": 140, "character": 4 } ] @@ -23747,14 +24317,14 @@ { "type": "reflection", "declaration": { - "id": 539, + "id": 564, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 540, + "id": 565, "name": "data", "kind": 1024, "kindString": "Property", @@ -23762,21 +24332,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 125, + "line": 148, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 541, + "id": 566, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 543, + "id": 568, "name": "session", "kind": 1024, "kindString": "Property", @@ -23784,7 +24354,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 127, + "line": 150, "character": 8 } ], @@ -23794,7 +24364,7 @@ } }, { - "id": 542, + "id": 567, "name": "user", "kind": 1024, "kindString": "Property", @@ -23802,7 +24372,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 126, + "line": 149, "character": 8 } ], @@ -23817,15 +24387,15 @@ "title": "Properties", "kind": 1024, "children": [ - 543, - 542 + 568, + 567 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 125, + "line": 148, "character": 12 } ] @@ -23833,7 +24403,7 @@ } }, { - "id": 544, + "id": 569, "name": "error", "kind": 1024, "kindString": "Property", @@ -23841,13 +24411,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 129, + "line": 152, "character": 6 } ], "type": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } } @@ -23857,15 +24427,15 @@ "title": "Properties", "kind": 1024, "children": [ - 540, - 544 + 565, + 569 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 124, + "line": 147, "character": 4 } ] @@ -23875,7 +24445,324 @@ } }, { - "id": 909, + "id": 570, + "name": "AuthTokenResponsePassword", + "kind": 4194304, + "kindString": "Type alias", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 155, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 571, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 572, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 157, + "character": 6 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 573, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 575, + "name": "session", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 159, + "character": 8 + } + ], + "type": { + "type": "reference", + "id": 618, + "name": "Session" + } + }, + { + "id": 574, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 158, + "character": 8 + } + ], + "type": { + "type": "reference", + "id": 656, + "name": "User" + } + }, + { + "id": 576, + "name": "weakPassword", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 160, + "character": 8 + } + ], + "type": { + "type": "reference", + "id": 511, + "name": "WeakPassword" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 575, + 574, + 576 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 157, + "character": 12 + } + ] + } + } + }, + { + "id": 577, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 162, + "character": 6 + } + ], + "type": { + "type": "literal", + "value": null + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 572, + 577 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 156, + "character": 4 + } + ] + } + }, + { + "type": "reflection", + "declaration": { + "id": 578, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 579, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 165, + "character": 6 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 580, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 582, + "name": "session", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 167, + "character": 8 + } + ], + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 581, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 166, + "character": 8 + } + ], + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 583, + "name": "weakPassword", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 168, + "character": 8 + } + ], + "type": { + "type": "literal", + "value": null + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 582, + 581, + 583 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 165, + "character": 12 + } + ] + } + } + }, + { + "id": 584, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 170, + "character": 6 + } + ], + "type": { + "type": "reference", + "id": 1058, + "name": "AuthError" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 579, + 584 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 164, + "character": 4 + } + ] + } + } + ] + } + }, + { + "id": 955, "name": "AuthenticatorAssuranceLevels", "kind": 4194304, "kindString": "Type alias", @@ -23883,7 +24770,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 868, + "line": 918, "character": 12 } ], @@ -23902,7 +24789,7 @@ } }, { - "id": 977, + "id": 1025, "name": "CallRefreshTokenResult", "kind": 4194304, "kindString": "Type alias", @@ -23910,7 +24797,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1043, + "line": 1104, "character": 12 } ], @@ -23920,14 +24807,14 @@ { "type": "reflection", "declaration": { - "id": 978, + "id": 1026, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 980, + "id": 1028, "name": "error", "kind": 1024, "kindString": "Property", @@ -23935,7 +24822,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1046, + "line": 1107, "character": 6 } ], @@ -23945,7 +24832,7 @@ } }, { - "id": 979, + "id": 1027, "name": "session", "kind": 1024, "kindString": "Property", @@ -23953,13 +24840,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1045, + "line": 1106, "character": 6 } ], "type": { "type": "reference", - "id": 578, + "id": 618, "name": "Session" } } @@ -23969,15 +24856,15 @@ "title": "Properties", "kind": 1024, "children": [ - 980, - 979 + 1028, + 1027 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 1044, + "line": 1105, "character": 4 } ] @@ -23986,14 +24873,14 @@ { "type": "reflection", "declaration": { - "id": 981, + "id": 1029, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 983, + "id": 1031, "name": "error", "kind": 1024, "kindString": "Property", @@ -24001,18 +24888,18 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1050, + "line": 1111, "character": 6 } ], "type": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } }, { - "id": 982, + "id": 1030, "name": "session", "kind": 1024, "kindString": "Property", @@ -24020,7 +24907,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1049, + "line": 1110, "character": 6 } ], @@ -24035,15 +24922,15 @@ "title": "Properties", "kind": 1024, "children": [ - 983, - 982 + 1031, + 1030 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 1048, + "line": 1109, "character": 4 } ] @@ -24053,7 +24940,7 @@ } }, { - "id": 757, + "id": 802, "name": "EmailOtpType", "kind": 4194304, "kindString": "Type alias", @@ -24061,7 +24948,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 596, + "line": 644, "character": 12 } ], @@ -24096,7 +24983,7 @@ } }, { - "id": 801, + "id": 846, "name": "GenerateEmailChangeLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -24104,21 +24991,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 663, + "line": 711, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 802, + "id": 847, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 804, + "id": 849, "name": "email", "kind": 1024, "kindString": "Property", @@ -24129,7 +25016,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 666, + "line": 714, "character": 2 } ], @@ -24139,7 +25026,7 @@ } }, { - "id": 805, + "id": 850, "name": "newEmail", "kind": 1024, "kindString": "Property", @@ -24150,7 +25037,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 670, + "line": 718, "character": 2 } ], @@ -24160,7 +25047,7 @@ } }, { - "id": 806, + "id": 851, "name": "options", "kind": 1024, "kindString": "Property", @@ -24170,7 +25057,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 671, + "line": 719, "character": 2 } ], @@ -24179,7 +25066,7 @@ "typeArguments": [ { "type": "reference", - "id": 807, + "id": 852, "name": "GenerateLinkOptions" }, { @@ -24193,7 +25080,7 @@ } }, { - "id": 803, + "id": 848, "name": "type", "kind": 1024, "kindString": "Property", @@ -24201,7 +25088,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 664, + "line": 712, "character": 2 } ], @@ -24225,17 +25112,17 @@ "title": "Properties", "kind": 1024, "children": [ - 804, - 805, - 806, - 803 + 849, + 850, + 851, + 848 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 663, + "line": 711, "character": 44 } ] @@ -24243,7 +25130,7 @@ } }, { - "id": 791, + "id": 836, "name": "GenerateInviteOrMagiclinkParams", "kind": 4194304, "kindString": "Type alias", @@ -24251,21 +25138,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 649, + "line": 697, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 792, + "id": 837, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 794, + "id": 839, "name": "email", "kind": 1024, "kindString": "Property", @@ -24276,7 +25163,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 652, + "line": 700, "character": 2 } ], @@ -24286,7 +25173,7 @@ } }, { - "id": 795, + "id": 840, "name": "options", "kind": 1024, "kindString": "Property", @@ -24296,7 +25183,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 653, + "line": 701, "character": 2 } ], @@ -24305,7 +25192,7 @@ "typeArguments": [ { "type": "reference", - "id": 807, + "id": 852, "name": "GenerateLinkOptions" }, { @@ -24328,7 +25215,7 @@ } }, { - "id": 793, + "id": 838, "name": "type", "kind": 1024, "kindString": "Property", @@ -24336,7 +25223,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 650, + "line": 698, "character": 2 } ], @@ -24360,16 +25247,16 @@ "title": "Properties", "kind": 1024, "children": [ - 794, - 795, - 793 + 839, + 840, + 838 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 649, + "line": 697, "character": 46 } ] @@ -24377,7 +25264,7 @@ } }, { - "id": 810, + "id": 855, "name": "GenerateLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -24385,7 +25272,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 685, + "line": 733, "character": 12 } ], @@ -24393,7 +25280,7 @@ "type": "union", "types": [ { - "id": 785, + "id": 830, "name": "GenerateSignupLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -24401,21 +25288,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 642, + "line": 690, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 786, + "id": 831, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 788, + "id": 833, "name": "email", "kind": 1024, "kindString": "Property", @@ -24423,7 +25310,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 644, + "line": 692, "character": 2 } ], @@ -24433,7 +25320,7 @@ } }, { - "id": 790, + "id": 835, "name": "options", "kind": 1024, "kindString": "Property", @@ -24443,7 +25330,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 646, + "line": 694, "character": 2 } ], @@ -24452,7 +25339,7 @@ "typeArguments": [ { "type": "reference", - "id": 807, + "id": 852, "name": "GenerateLinkOptions" }, { @@ -24475,7 +25362,7 @@ } }, { - "id": 789, + "id": 834, "name": "password", "kind": 1024, "kindString": "Property", @@ -24483,7 +25370,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 645, + "line": 693, "character": 2 } ], @@ -24493,7 +25380,7 @@ } }, { - "id": 787, + "id": 832, "name": "type", "kind": 1024, "kindString": "Property", @@ -24501,7 +25388,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 643, + "line": 691, "character": 2 } ], @@ -24516,17 +25403,17 @@ "title": "Properties", "kind": 1024, "children": [ - 788, - 790, - 789, - 787 + 833, + 835, + 834, + 832 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 642, + "line": 690, "character": 39 } ] @@ -24534,7 +25421,7 @@ } }, { - "id": 791, + "id": 836, "name": "GenerateInviteOrMagiclinkParams", "kind": 4194304, "kindString": "Type alias", @@ -24542,21 +25429,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 649, + "line": 697, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 792, + "id": 837, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 794, + "id": 839, "name": "email", "kind": 1024, "kindString": "Property", @@ -24567,7 +25454,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 652, + "line": 700, "character": 2 } ], @@ -24577,7 +25464,7 @@ } }, { - "id": 795, + "id": 840, "name": "options", "kind": 1024, "kindString": "Property", @@ -24587,7 +25474,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 653, + "line": 701, "character": 2 } ], @@ -24596,7 +25483,7 @@ "typeArguments": [ { "type": "reference", - "id": 807, + "id": 852, "name": "GenerateLinkOptions" }, { @@ -24619,7 +25506,7 @@ } }, { - "id": 793, + "id": 838, "name": "type", "kind": 1024, "kindString": "Property", @@ -24627,7 +25514,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 650, + "line": 698, "character": 2 } ], @@ -24651,16 +25538,16 @@ "title": "Properties", "kind": 1024, "children": [ - 794, - 795, - 793 + 839, + 840, + 838 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 649, + "line": 697, "character": 46 } ] @@ -24668,7 +25555,7 @@ } }, { - "id": 796, + "id": 841, "name": "GenerateRecoveryLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -24676,21 +25563,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 656, + "line": 704, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 797, + "id": 842, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 799, + "id": 844, "name": "email", "kind": 1024, "kindString": "Property", @@ -24701,7 +25588,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 659, + "line": 707, "character": 2 } ], @@ -24711,7 +25598,7 @@ } }, { - "id": 800, + "id": 845, "name": "options", "kind": 1024, "kindString": "Property", @@ -24721,7 +25608,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 660, + "line": 708, "character": 2 } ], @@ -24730,7 +25617,7 @@ "typeArguments": [ { "type": "reference", - "id": 807, + "id": 852, "name": "GenerateLinkOptions" }, { @@ -24744,7 +25631,7 @@ } }, { - "id": 798, + "id": 843, "name": "type", "kind": 1024, "kindString": "Property", @@ -24752,7 +25639,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 657, + "line": 705, "character": 2 } ], @@ -24767,16 +25654,16 @@ "title": "Properties", "kind": 1024, "children": [ - 799, - 800, - 798 + 844, + 845, + 843 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 656, + "line": 704, "character": 41 } ] @@ -24784,7 +25671,7 @@ } }, { - "id": 801, + "id": 846, "name": "GenerateEmailChangeLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -24792,21 +25679,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 663, + "line": 711, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 802, + "id": 847, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 804, + "id": 849, "name": "email", "kind": 1024, "kindString": "Property", @@ -24817,7 +25704,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 666, + "line": 714, "character": 2 } ], @@ -24827,7 +25714,7 @@ } }, { - "id": 805, + "id": 850, "name": "newEmail", "kind": 1024, "kindString": "Property", @@ -24838,7 +25725,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 670, + "line": 718, "character": 2 } ], @@ -24848,7 +25735,7 @@ } }, { - "id": 806, + "id": 851, "name": "options", "kind": 1024, "kindString": "Property", @@ -24858,7 +25745,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 671, + "line": 719, "character": 2 } ], @@ -24867,7 +25754,7 @@ "typeArguments": [ { "type": "reference", - "id": 807, + "id": 852, "name": "GenerateLinkOptions" }, { @@ -24881,7 +25768,7 @@ } }, { - "id": 803, + "id": 848, "name": "type", "kind": 1024, "kindString": "Property", @@ -24889,7 +25776,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 664, + "line": 712, "character": 2 } ], @@ -24913,17 +25800,17 @@ "title": "Properties", "kind": 1024, "children": [ - 804, - 805, - 806, - 803 + 849, + 850, + 851, + 848 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 663, + "line": 711, "character": 44 } ] @@ -24934,7 +25821,7 @@ } }, { - "id": 824, + "id": 869, "name": "GenerateLinkProperties", "kind": 4194304, "kindString": "Type alias", @@ -24945,21 +25832,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 708, + "line": 756, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 825, + "id": 870, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 826, + "id": 871, "name": "action_link", "kind": 1024, "kindString": "Property", @@ -24970,7 +25857,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 713, + "line": 761, "character": 2 } ], @@ -24980,7 +25867,7 @@ } }, { - "id": 827, + "id": 872, "name": "email_otp", "kind": 1024, "kindString": "Property", @@ -24991,7 +25878,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 718, + "line": 766, "character": 2 } ], @@ -25001,7 +25888,7 @@ } }, { - "id": 828, + "id": 873, "name": "hashed_token", "kind": 1024, "kindString": "Property", @@ -25012,7 +25899,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 722, + "line": 770, "character": 2 } ], @@ -25022,7 +25909,7 @@ } }, { - "id": 829, + "id": 874, "name": "redirect_to", "kind": 1024, "kindString": "Property", @@ -25033,7 +25920,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 724, + "line": 772, "character": 2 } ], @@ -25043,7 +25930,7 @@ } }, { - "id": 830, + "id": 875, "name": "verification_type", "kind": 1024, "kindString": "Property", @@ -25054,16 +25941,16 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 726, + "line": 774, "character": 2 } ], "type": { "type": "reference", - "id": 831, + "id": 876, "name": "GenerateLinkType", "dereferenced": { - "id": 831, + "id": 876, "name": "GenerateLinkType", "kind": 4194304, "kindString": "Type alias", @@ -25071,7 +25958,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 729, + "line": 777, "character": 12 } ], @@ -25113,18 +26000,18 @@ "title": "Properties", "kind": 1024, "children": [ - 826, - 827, - 828, - 829, - 830 + 871, + 872, + 873, + 874, + 875 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 708, + "line": 756, "character": 37 } ] @@ -25132,7 +26019,7 @@ } }, { - "id": 811, + "id": 856, "name": "GenerateLinkResponse", "kind": 4194304, "kindString": "Type alias", @@ -25140,7 +26027,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 691, + "line": 739, "character": 12 } ], @@ -25150,14 +26037,14 @@ { "type": "reflection", "declaration": { - "id": 812, + "id": 857, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 813, + "id": 858, "name": "data", "kind": 1024, "kindString": "Property", @@ -25165,21 +26052,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 693, + "line": 741, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 814, + "id": 859, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 815, + "id": 860, "name": "properties", "kind": 1024, "kindString": "Property", @@ -25187,18 +26074,18 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 694, + "line": 742, "character": 8 } ], "type": { "type": "reference", - "id": 824, + "id": 869, "name": "GenerateLinkProperties" } }, { - "id": 816, + "id": 861, "name": "user", "kind": 1024, "kindString": "Property", @@ -25206,13 +26093,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 695, + "line": 743, "character": 8 } ], "type": { "type": "reference", - "id": 616, + "id": 656, "name": "User" } } @@ -25222,15 +26109,15 @@ "title": "Properties", "kind": 1024, "children": [ - 815, - 816 + 860, + 861 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 693, + "line": 741, "character": 12 } ] @@ -25238,7 +26125,7 @@ } }, { - "id": 817, + "id": 862, "name": "error", "kind": 1024, "kindString": "Property", @@ -25246,7 +26133,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 697, + "line": 745, "character": 6 } ], @@ -25261,15 +26148,15 @@ "title": "Properties", "kind": 1024, "children": [ - 813, - 817 + 858, + 862 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 692, + "line": 740, "character": 4 } ] @@ -25278,14 +26165,14 @@ { "type": "reflection", "declaration": { - "id": 818, + "id": 863, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 819, + "id": 864, "name": "data", "kind": 1024, "kindString": "Property", @@ -25293,21 +26180,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 700, + "line": 748, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 820, + "id": 865, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 821, + "id": 866, "name": "properties", "kind": 1024, "kindString": "Property", @@ -25315,7 +26202,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 701, + "line": 749, "character": 8 } ], @@ -25325,7 +26212,7 @@ } }, { - "id": 822, + "id": 867, "name": "user", "kind": 1024, "kindString": "Property", @@ -25333,7 +26220,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 702, + "line": 750, "character": 8 } ], @@ -25348,15 +26235,15 @@ "title": "Properties", "kind": 1024, "children": [ - 821, - 822 + 866, + 867 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 700, + "line": 748, "character": 12 } ] @@ -25364,7 +26251,7 @@ } }, { - "id": 823, + "id": 868, "name": "error", "kind": 1024, "kindString": "Property", @@ -25372,13 +26259,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 704, + "line": 752, "character": 6 } ], "type": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } } @@ -25388,15 +26275,15 @@ "title": "Properties", "kind": 1024, "children": [ - 819, - 823 + 864, + 868 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 699, + "line": 747, "character": 4 } ] @@ -25406,7 +26293,7 @@ } }, { - "id": 831, + "id": 876, "name": "GenerateLinkType", "kind": 4194304, "kindString": "Type alias", @@ -25414,7 +26301,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 729, + "line": 777, "character": 12 } ], @@ -25449,7 +26336,7 @@ } }, { - "id": 796, + "id": 841, "name": "GenerateRecoveryLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -25457,21 +26344,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 656, + "line": 704, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 797, + "id": 842, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 799, + "id": 844, "name": "email", "kind": 1024, "kindString": "Property", @@ -25482,7 +26369,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 659, + "line": 707, "character": 2 } ], @@ -25492,7 +26379,7 @@ } }, { - "id": 800, + "id": 845, "name": "options", "kind": 1024, "kindString": "Property", @@ -25502,7 +26389,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 660, + "line": 708, "character": 2 } ], @@ -25511,7 +26398,7 @@ "typeArguments": [ { "type": "reference", - "id": 807, + "id": 852, "name": "GenerateLinkOptions" }, { @@ -25525,7 +26412,7 @@ } }, { - "id": 798, + "id": 843, "name": "type", "kind": 1024, "kindString": "Property", @@ -25533,7 +26420,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 657, + "line": 705, "character": 2 } ], @@ -25548,16 +26435,16 @@ "title": "Properties", "kind": 1024, "children": [ - 799, - 800, - 798 + 844, + 845, + 843 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 656, + "line": 704, "character": 41 } ] @@ -25565,7 +26452,7 @@ } }, { - "id": 785, + "id": 830, "name": "GenerateSignupLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -25573,21 +26460,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 642, + "line": 690, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 786, + "id": 831, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 788, + "id": 833, "name": "email", "kind": 1024, "kindString": "Property", @@ -25595,7 +26482,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 644, + "line": 692, "character": 2 } ], @@ -25605,7 +26492,7 @@ } }, { - "id": 790, + "id": 835, "name": "options", "kind": 1024, "kindString": "Property", @@ -25615,7 +26502,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 646, + "line": 694, "character": 2 } ], @@ -25624,7 +26511,7 @@ "typeArguments": [ { "type": "reference", - "id": 807, + "id": 852, "name": "GenerateLinkOptions" }, { @@ -25647,7 +26534,7 @@ } }, { - "id": 789, + "id": 834, "name": "password", "kind": 1024, "kindString": "Property", @@ -25655,7 +26542,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 645, + "line": 693, "character": 2 } ], @@ -25665,7 +26552,7 @@ } }, { - "id": 787, + "id": 832, "name": "type", "kind": 1024, "kindString": "Property", @@ -25673,7 +26560,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 643, + "line": 691, "character": 2 } ], @@ -25688,17 +26575,17 @@ "title": "Properties", "kind": 1024, "children": [ - 788, - 790, - 789, - 787 + 833, + 835, + 834, + 832 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 642, + "line": 690, "character": 39 } ] @@ -25706,7 +26593,7 @@ } }, { - "id": 484, + "id": 490, "name": "GoTrueClientOptions", "kind": 4194304, "kindString": "Type alias", @@ -25721,14 +26608,14 @@ "type": { "type": "reflection", "declaration": { - "id": 485, + "id": 491, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 493, + "id": 499, "name": "autoRefreshToken", "kind": 1024, "kindString": "Property", @@ -25748,7 +26635,7 @@ } }, { - "id": 498, + "id": 504, "name": "debug", "kind": 1024, "kindString": "Property", @@ -25772,7 +26659,7 @@ { "type": "reflection", "declaration": { - "id": 499, + "id": 505, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -25786,14 +26673,14 @@ ], "signatures": [ { - "id": 500, + "id": 506, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 501, + "id": 507, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -25804,7 +26691,7 @@ } }, { - "id": 502, + "id": 508, "name": "args", "kind": 32768, "kindString": "Parameter", @@ -25832,7 +26719,7 @@ } }, { - "id": 492, + "id": 498, "name": "detectSessionInUrl", "kind": 1024, "kindString": "Property", @@ -25852,7 +26739,7 @@ } }, { - "id": 496, + "id": 502, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -25872,7 +26759,7 @@ } }, { - "id": 497, + "id": 503, "name": "flowType", "kind": 1024, "kindString": "Property", @@ -25888,10 +26775,10 @@ ], "type": { "type": "reference", - "id": 714, + "id": 759, "name": "AuthFlowType", "dereferenced": { - "id": 714, + "id": 759, "name": "AuthFlowType", "kind": 4194304, "kindString": "Type alias", @@ -25899,7 +26786,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 517, + "line": 565, "character": 12 } ], @@ -25920,7 +26807,7 @@ } }, { - "id": 487, + "id": 493, "name": "headers", "kind": 1024, "kindString": "Property", @@ -25937,7 +26824,7 @@ "type": { "type": "reflection", "declaration": { - "id": 488, + "id": 494, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -25950,14 +26837,14 @@ } ], "indexSignature": { - "id": 489, + "id": 495, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 490, + "id": 496, "name": "key", "kind": 32768, "flags": {}, @@ -25976,7 +26863,7 @@ } }, { - "id": 503, + "id": 509, "name": "lock", "kind": 1024, "kindString": "Property", @@ -26001,10 +26888,10 @@ ], "type": { "type": "reference", - "id": 475, + "id": 481, "name": "LockFunc", "dereferenced": { - "id": 475, + "id": 481, "name": "LockFunc", "kind": 4194304, "kindString": "Type alias", @@ -26019,7 +26906,7 @@ "type": { "type": "reflection", "declaration": { - "id": 476, + "id": 482, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -26033,7 +26920,7 @@ ], "signatures": [ { - "id": 477, + "id": 483, "name": "__type", "kind": 4096, "kindString": "Call signature", @@ -26049,7 +26936,7 @@ }, "typeParameter": [ { - "id": 483, + "id": 489, "name": "R", "kind": 131072, "kindString": "Type parameter", @@ -26058,7 +26945,7 @@ ], "parameters": [ { - "id": 478, + "id": 484, "name": "name", "kind": 32768, "kindString": "Parameter", @@ -26072,7 +26959,7 @@ } }, { - "id": 479, + "id": 485, "name": "acquireTimeout", "kind": 32768, "kindString": "Parameter", @@ -26086,7 +26973,7 @@ } }, { - "id": 480, + "id": 486, "name": "fn", "kind": 32768, "kindString": "Parameter", @@ -26097,7 +26984,7 @@ "type": { "type": "reflection", "declaration": { - "id": 481, + "id": 487, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -26111,7 +26998,7 @@ ], "signatures": [ { - "id": 482, + "id": 488, "name": "__type", "kind": 4096, "kindString": "Call signature", @@ -26121,7 +27008,7 @@ "typeArguments": [ { "type": "reference", - "id": 483, + "id": 489, "name": "R" } ], @@ -26140,7 +27027,7 @@ "typeArguments": [ { "type": "reference", - "id": 483, + "id": 489, "name": "R" } ], @@ -26156,7 +27043,7 @@ } }, { - "id": 494, + "id": 500, "name": "persistSession", "kind": 1024, "kindString": "Property", @@ -26176,7 +27063,7 @@ } }, { - "id": 495, + "id": 501, "name": "storage", "kind": 1024, "kindString": "Property", @@ -26192,10 +27079,10 @@ ], "type": { "type": "reference", - "id": 973, + "id": 1019, "name": "SupportedStorage", "dereferenced": { - "id": 973, + "id": 1019, "name": "SupportedStorage", "kind": 4194304, "kindString": "Type alias", @@ -26203,52 +27090,108 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1039, + "line": 1089, "character": 12 } ], "type": { - "type": "reference", - "typeArguments": [ + "type": "intersection", + "types": [ { "type": "reference", "typeArguments": [ { "type": "reference", - "qualifiedName": "Storage", - "package": "typescript", - "name": "Storage" - }, - { - "type": "union", - "types": [ + "typeArguments": [ { - "type": "literal", - "value": "getItem" + "type": "reference", + "qualifiedName": "Storage", + "package": "typescript", + "name": "Storage" }, { - "type": "literal", - "value": "setItem" - }, - { - "type": "literal", - "value": "removeItem" + "type": "union", + "types": [ + { + "type": "literal", + "value": "getItem" + }, + { + "type": "literal", + "value": "setItem" + }, + { + "type": "literal", + "value": "removeItem" + } + ] } - ] + ], + "qualifiedName": "Pick", + "package": "typescript", + "name": "Pick" } ], - "qualifiedName": "Pick", - "package": "typescript", - "name": "Pick" + "name": "PromisifyMethods" + }, + { + "type": "reflection", + "declaration": { + "id": 1020, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 1021, + "name": "isServer", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "If set to `true` signals to the library that the storage medium is used\non a server and the values may not be authentic, such as reading from\nrequest cookies. Implementations should not set this to true if the client\nis used on a server that reads storage information from authenticated\nsources, such as a secure database or file." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1099, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 1021 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1091, + "character": 4 + } + ] + } } - ], - "name": "PromisifyMethods" + ] } } } }, { - "id": 491, + "id": 497, "name": "storageKey", "kind": 1024, "kindString": "Property", @@ -26268,7 +27211,7 @@ } }, { - "id": 486, + "id": 492, "name": "url", "kind": 1024, "kindString": "Property", @@ -26293,17 +27236,17 @@ "title": "Properties", "kind": 1024, "children": [ - 493, + 499, + 504, 498, - 492, - 496, - 497, - 487, + 502, 503, - 494, - 495, - 491, - 486 + 493, + 509, + 500, + 501, + 497, + 492 ] } ], @@ -26318,7 +27261,7 @@ } }, { - "id": 974, + "id": 1022, "name": "InitializeResult", "kind": 4194304, "kindString": "Type alias", @@ -26326,21 +27269,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1041, + "line": 1102, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 975, + "id": 1023, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 976, + "id": 1024, "name": "error", "kind": 1024, "kindString": "Property", @@ -26348,7 +27291,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1041, + "line": 1102, "character": 33 } ], @@ -26357,7 +27300,7 @@ "types": [ { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" }, { @@ -26373,14 +27316,14 @@ "title": "Properties", "kind": 1024, "children": [ - 976 + 1024 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 1041, + "line": 1102, "character": 31 } ] @@ -26388,7 +27331,7 @@ } }, { - "id": 475, + "id": 481, "name": "LockFunc", "kind": 4194304, "kindString": "Type alias", @@ -26403,7 +27346,7 @@ "type": { "type": "reflection", "declaration": { - "id": 476, + "id": 482, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -26417,7 +27360,7 @@ ], "signatures": [ { - "id": 477, + "id": 483, "name": "__type", "kind": 4096, "kindString": "Call signature", @@ -26433,7 +27376,7 @@ }, "typeParameter": [ { - "id": 483, + "id": 489, "name": "R", "kind": 131072, "kindString": "Type parameter", @@ -26442,7 +27385,7 @@ ], "parameters": [ { - "id": 478, + "id": 484, "name": "name", "kind": 32768, "kindString": "Parameter", @@ -26456,7 +27399,7 @@ } }, { - "id": 479, + "id": 485, "name": "acquireTimeout", "kind": 32768, "kindString": "Parameter", @@ -26470,7 +27413,7 @@ } }, { - "id": 480, + "id": 486, "name": "fn", "kind": 32768, "kindString": "Parameter", @@ -26481,7 +27424,7 @@ "type": { "type": "reflection", "declaration": { - "id": 481, + "id": 487, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -26495,7 +27438,7 @@ ], "signatures": [ { - "id": 482, + "id": 488, "name": "__type", "kind": 4096, "kindString": "Call signature", @@ -26505,7 +27448,7 @@ "typeArguments": [ { "type": "reference", - "id": 483, + "id": 489, "name": "R" } ], @@ -26524,7 +27467,7 @@ "typeArguments": [ { "type": "reference", - "id": 483, + "id": 489, "name": "R" } ], @@ -26538,7 +27481,7 @@ } }, { - "id": 848, + "id": 893, "name": "MFAChallengeAndVerifyParams", "kind": 4194304, "kindString": "Type alias", @@ -26546,21 +27489,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 767, + "line": 815, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 849, + "id": 894, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 851, + "id": 896, "name": "code", "kind": 1024, "kindString": "Property", @@ -26571,7 +27514,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 771, + "line": 819, "character": 2 } ], @@ -26581,7 +27524,7 @@ } }, { - "id": 850, + "id": 895, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -26592,7 +27535,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 769, + "line": 817, "character": 2 } ], @@ -26607,15 +27550,15 @@ "title": "Properties", "kind": 1024, "children": [ - 851, - 850 + 896, + 895 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 767, + "line": 815, "character": 42 } ] @@ -26623,7 +27566,7 @@ } }, { - "id": 845, + "id": 890, "name": "MFAChallengeParams", "kind": 4194304, "kindString": "Type alias", @@ -26631,21 +27574,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 762, + "line": 810, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 846, + "id": 891, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 847, + "id": 892, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -26656,7 +27599,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 764, + "line": 812, "character": 2 } ], @@ -26671,14 +27614,14 @@ "title": "Properties", "kind": 1024, "children": [ - 847 + 892 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 762, + "line": 810, "character": 33 } ] @@ -26686,7 +27629,7 @@ } }, { - "id": 832, + "id": 877, "name": "MFAEnrollParams", "kind": 4194304, "kindString": "Type alias", @@ -26694,21 +27637,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 737, + "line": 785, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 833, + "id": 878, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 834, + "id": 879, "name": "factorType", "kind": 1024, "kindString": "Property", @@ -26719,7 +27662,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 739, + "line": 787, "character": 2 } ], @@ -26729,7 +27672,7 @@ } }, { - "id": 836, + "id": 881, "name": "friendlyName", "kind": 1024, "kindString": "Property", @@ -26742,7 +27685,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 743, + "line": 791, "character": 2 } ], @@ -26752,7 +27695,7 @@ } }, { - "id": 835, + "id": 880, "name": "issuer", "kind": 1024, "kindString": "Property", @@ -26765,7 +27708,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 741, + "line": 789, "character": 2 } ], @@ -26780,16 +27723,16 @@ "title": "Properties", "kind": 1024, "children": [ - 834, - 836, - 835 + 879, + 881, + 880 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 737, + "line": 785, "character": 30 } ] @@ -26797,7 +27740,7 @@ } }, { - "id": 837, + "id": 882, "name": "MFAUnenrollParams", "kind": 4194304, "kindString": "Type alias", @@ -26805,21 +27748,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 746, + "line": 794, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 838, + "id": 883, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 839, + "id": 884, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -26830,7 +27773,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 748, + "line": 796, "character": 2 } ], @@ -26845,14 +27788,14 @@ "title": "Properties", "kind": 1024, "children": [ - 839 + 884 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 746, + "line": 794, "character": 32 } ] @@ -26860,7 +27803,7 @@ } }, { - "id": 840, + "id": 885, "name": "MFAVerifyParams", "kind": 4194304, "kindString": "Type alias", @@ -26868,21 +27811,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 751, + "line": 799, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 841, + "id": 886, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 843, + "id": 888, "name": "challengeId", "kind": 1024, "kindString": "Property", @@ -26893,7 +27836,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 756, + "line": 804, "character": 2 } ], @@ -26903,7 +27846,7 @@ } }, { - "id": 844, + "id": 889, "name": "code", "kind": 1024, "kindString": "Property", @@ -26914,7 +27857,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 759, + "line": 807, "character": 2 } ], @@ -26924,7 +27867,7 @@ } }, { - "id": 842, + "id": 887, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -26935,7 +27878,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 753, + "line": 801, "character": 2 } ], @@ -26950,16 +27893,16 @@ "title": "Properties", "kind": 1024, "children": [ - 843, - 844, - 842 + 888, + 889, + 887 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 751, + "line": 799, "character": 30 } ] @@ -26967,7 +27910,7 @@ } }, { - "id": 756, + "id": 801, "name": "MobileOtpType", "kind": 4194304, "kindString": "Type alias", @@ -26975,7 +27918,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 595, + "line": 643, "character": 12 } ], @@ -26994,7 +27937,7 @@ } }, { - "id": 545, + "id": 585, "name": "OAuthResponse", "kind": 4194304, "kindString": "Type alias", @@ -27002,7 +27945,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 132, + "line": 173, "character": 12 } ], @@ -27012,14 +27955,14 @@ { "type": "reflection", "declaration": { - "id": 546, + "id": 586, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 547, + "id": 587, "name": "data", "kind": 1024, "kindString": "Property", @@ -27027,21 +27970,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 134, + "line": 175, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 548, + "id": 588, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 549, + "id": 589, "name": "provider", "kind": 1024, "kindString": "Property", @@ -27049,18 +27992,18 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 135, + "line": 176, "character": 8 } ], "type": { "type": "reference", - "id": 472, + "id": 478, "name": "Provider" } }, { - "id": 550, + "id": 590, "name": "url", "kind": 1024, "kindString": "Property", @@ -27068,7 +28011,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 136, + "line": 177, "character": 8 } ], @@ -27083,15 +28026,15 @@ "title": "Properties", "kind": 1024, "children": [ - 549, - 550 + 589, + 590 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 134, + "line": 175, "character": 12 } ] @@ -27099,7 +28042,7 @@ } }, { - "id": 551, + "id": 591, "name": "error", "kind": 1024, "kindString": "Property", @@ -27107,7 +28050,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 138, + "line": 179, "character": 6 } ], @@ -27122,15 +28065,15 @@ "title": "Properties", "kind": 1024, "children": [ - 547, - 551 + 587, + 591 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 133, + "line": 174, "character": 4 } ] @@ -27139,14 +28082,14 @@ { "type": "reflection", "declaration": { - "id": 552, + "id": 592, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 553, + "id": 593, "name": "data", "kind": 1024, "kindString": "Property", @@ -27154,21 +28097,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 141, + "line": 182, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 554, + "id": 594, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 555, + "id": 595, "name": "provider", "kind": 1024, "kindString": "Property", @@ -27176,18 +28119,18 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 142, + "line": 183, "character": 8 } ], "type": { "type": "reference", - "id": 472, + "id": 478, "name": "Provider" } }, { - "id": 556, + "id": 596, "name": "url", "kind": 1024, "kindString": "Property", @@ -27195,7 +28138,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 143, + "line": 184, "character": 8 } ], @@ -27210,15 +28153,15 @@ "title": "Properties", "kind": 1024, "children": [ - 555, - 556 + 595, + 596 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 141, + "line": 182, "character": 12 } ] @@ -27226,7 +28169,7 @@ } }, { - "id": 557, + "id": 597, "name": "error", "kind": 1024, "kindString": "Property", @@ -27234,13 +28177,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 145, + "line": 186, "character": 6 } ], "type": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } } @@ -27250,15 +28193,15 @@ "title": "Properties", "kind": 1024, "children": [ - 553, - 557 + 593, + 597 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 140, + "line": 181, "character": 4 } ] @@ -27268,7 +28211,7 @@ } }, { - "id": 991, + "id": 1039, "name": "PageParams", "kind": 4194304, "kindString": "Type alias", @@ -27276,21 +28219,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1060, + "line": 1121, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 992, + "id": 1040, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 993, + "id": 1041, "name": "page", "kind": 1024, "kindString": "Property", @@ -27303,7 +28246,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1062, + "line": 1123, "character": 2 } ], @@ -27313,7 +28256,7 @@ } }, { - "id": 994, + "id": 1042, "name": "perPage", "kind": 1024, "kindString": "Property", @@ -27326,7 +28269,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1064, + "line": 1125, "character": 2 } ], @@ -27341,15 +28284,15 @@ "title": "Properties", "kind": 1024, "children": [ - 993, - 994 + 1041, + 1042 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 1060, + "line": 1121, "character": 25 } ] @@ -27357,7 +28300,7 @@ } }, { - "id": 984, + "id": 1032, "name": "Pagination", "kind": 4194304, "kindString": "Type alias", @@ -27365,21 +28308,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1053, + "line": 1114, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 985, + "id": 1033, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 987, + "id": 1035, "name": "lastPage", "kind": 1024, "kindString": "Property", @@ -27387,7 +28330,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1056, + "line": 1117, "character": 2 } ], @@ -27397,7 +28340,7 @@ } }, { - "id": 986, + "id": 1034, "name": "nextPage", "kind": 1024, "kindString": "Property", @@ -27405,7 +28348,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1055, + "line": 1116, "character": 2 } ], @@ -27424,7 +28367,7 @@ } }, { - "id": 988, + "id": 1036, "name": "total", "kind": 1024, "kindString": "Property", @@ -27432,7 +28375,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1057, + "line": 1118, "character": 2 } ], @@ -27447,28 +28390,28 @@ "title": "Properties", "kind": 1024, "children": [ - 987, - 986, - 988 + 1035, + 1034, + 1036 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 1053, + "line": 1114, "character": 25 } ], "indexSignature": { - "id": 989, + "id": 1037, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 990, + "id": 1038, "name": "key", "kind": 32768, "flags": {}, @@ -27487,7 +28430,7 @@ } }, { - "id": 472, + "id": 478, "name": "Provider", "kind": 4194304, "kindString": "Type alias", @@ -27593,7 +28536,7 @@ } }, { - "id": 758, + "id": 803, "name": "ResendParams", "kind": 4194304, "kindString": "Type alias", @@ -27601,7 +28544,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 598, + "line": 646, "character": 12 } ], @@ -27611,14 +28554,14 @@ { "type": "reflection", "declaration": { - "id": 759, + "id": 804, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 761, + "id": 806, "name": "email", "kind": 1024, "kindString": "Property", @@ -27626,7 +28569,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 601, + "line": 649, "character": 6 } ], @@ -27636,7 +28579,7 @@ } }, { - "id": 762, + "id": 807, "name": "options", "kind": 1024, "kindString": "Property", @@ -27646,21 +28589,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 602, + "line": 650, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 763, + "id": 808, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 765, + "id": 810, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -27673,7 +28616,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 606, + "line": 654, "character": 8 } ], @@ -27683,7 +28626,7 @@ } }, { - "id": 764, + "id": 809, "name": "emailRedirectTo", "kind": 1024, "kindString": "Property", @@ -27696,7 +28639,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 604, + "line": 652, "character": 8 } ], @@ -27711,15 +28654,15 @@ "title": "Properties", "kind": 1024, "children": [ - 765, - 764 + 810, + 809 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 602, + "line": 650, "character": 16 } ] @@ -27727,7 +28670,7 @@ } }, { - "id": 760, + "id": 805, "name": "type", "kind": 1024, "kindString": "Property", @@ -27735,7 +28678,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 600, + "line": 648, "character": 6 } ], @@ -27744,7 +28687,7 @@ "typeArguments": [ { "type": "reference", - "id": 757, + "id": 802, "name": "EmailOtpType" }, { @@ -27772,16 +28715,16 @@ "title": "Properties", "kind": 1024, "children": [ - 761, - 762, - 760 + 806, + 807, + 805 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 599, + "line": 647, "character": 4 } ] @@ -27790,14 +28733,14 @@ { "type": "reflection", "declaration": { - "id": 766, + "id": 811, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 769, + "id": 814, "name": "options", "kind": 1024, "kindString": "Property", @@ -27807,21 +28750,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 612, + "line": 660, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 770, + "id": 815, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 771, + "id": 816, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -27834,7 +28777,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 614, + "line": 662, "character": 8 } ], @@ -27849,14 +28792,14 @@ "title": "Properties", "kind": 1024, "children": [ - 771 + 816 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 612, + "line": 660, "character": 16 } ] @@ -27864,7 +28807,7 @@ } }, { - "id": 768, + "id": 813, "name": "phone", "kind": 1024, "kindString": "Property", @@ -27872,7 +28815,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 611, + "line": 659, "character": 6 } ], @@ -27882,7 +28825,7 @@ } }, { - "id": 767, + "id": 812, "name": "type", "kind": 1024, "kindString": "Property", @@ -27890,7 +28833,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 610, + "line": 658, "character": 6 } ], @@ -27899,7 +28842,7 @@ "typeArguments": [ { "type": "reference", - "id": 756, + "id": 801, "name": "MobileOtpType" }, { @@ -27927,16 +28870,16 @@ "title": "Properties", "kind": 1024, "children": [ - 769, - 768, - 767 + 814, + 813, + 812 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 609, + "line": 657, "character": 4 } ] @@ -27946,7 +28889,7 @@ } }, { - "id": 558, + "id": 598, "name": "SSOResponse", "kind": 4194304, "kindString": "Type alias", @@ -27954,7 +28897,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 148, + "line": 189, "character": 12 } ], @@ -27964,14 +28907,14 @@ { "type": "reflection", "declaration": { - "id": 559, + "id": 599, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 560, + "id": 600, "name": "data", "kind": 1024, "kindString": "Property", @@ -27979,21 +28922,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 150, + "line": 191, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 561, + "id": 601, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 562, + "id": 602, "name": "url", "kind": 1024, "kindString": "Property", @@ -28005,7 +28948,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 158, + "line": 199, "character": 8 } ], @@ -28020,14 +28963,14 @@ "title": "Properties", "kind": 1024, "children": [ - 562 + 602 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 150, + "line": 191, "character": 12 } ] @@ -28035,7 +28978,7 @@ } }, { - "id": 563, + "id": 603, "name": "error", "kind": 1024, "kindString": "Property", @@ -28043,7 +28986,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 160, + "line": 201, "character": 6 } ], @@ -28058,15 +29001,15 @@ "title": "Properties", "kind": 1024, "children": [ - 560, - 563 + 600, + 603 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 149, + "line": 190, "character": 4 } ] @@ -28075,14 +29018,14 @@ { "type": "reflection", "declaration": { - "id": 564, + "id": 604, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 565, + "id": 605, "name": "data", "kind": 1024, "kindString": "Property", @@ -28090,7 +29033,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 163, + "line": 204, "character": 6 } ], @@ -28100,7 +29043,7 @@ } }, { - "id": 566, + "id": 606, "name": "error", "kind": 1024, "kindString": "Property", @@ -28108,13 +29051,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 164, + "line": 205, "character": 6 } ], "type": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } } @@ -28124,15 +29067,15 @@ "title": "Properties", "kind": 1024, "children": [ - 565, - 566 + 605, + 606 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 162, + "line": 203, "character": 4 } ] @@ -28142,75 +29085,29 @@ } }, { - "id": 727, - "name": "SignInWithIdTokenCredentials", + "id": 706, + "name": "SignInAnonymouslyCredentials", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/lib/types.ts", - "line": 533, + "line": 455, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 728, + "id": 707, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 731, - "name": "access_token", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "If the ID token contains an `at_hash` claim, then the hash of this value is compared to the value in the ID token." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 539, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 732, - "name": "nonce", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "If the ID token contains a `nonce` claim, then the hash of this value is compared to the value in the ID token." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 541, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 733, + "id": 708, "name": "options", "kind": 1024, "kindString": "Property", @@ -28220,21 +29117,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 542, + "line": 456, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 734, + "id": 709, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 735, + "id": 711, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -28247,7 +29144,187 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 544, + "line": 464, + "character": 4 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 710, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.", + "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n" + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 462, + "character": 4 + } + ], + "type": { + "type": "intrinsic", + "name": "object" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 711, + 710 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 456, + "character": 12 + } + ] + } + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 708 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 455, + "character": 43 + } + ] + } + } + }, + { + "id": 772, + "name": "SignInWithIdTokenCredentials", + "kind": 4194304, + "kindString": "Type alias", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 581, + "character": 12 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 773, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 776, + "name": "access_token", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "If the ID token contains an `at_hash` claim, then the hash of this value is compared to the value in the ID token." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 587, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 777, + "name": "nonce", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "If the ID token contains a `nonce` claim, then the hash of this value is compared to the value in the ID token." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 589, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 778, + "name": "options", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 590, + "character": 2 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 779, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 780, + "name": "captchaToken", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "Verification token received when the user completes the captcha on the site." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 592, "character": 4 } ], @@ -28262,14 +29339,14 @@ "title": "Properties", "kind": 1024, "children": [ - 735 + 780 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 542, + "line": 590, "character": 12 } ] @@ -28277,7 +29354,7 @@ } }, { - "id": 729, + "id": 774, "name": "provider", "kind": 1024, "kindString": "Property", @@ -28288,7 +29365,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 535, + "line": 583, "character": 2 } ], @@ -28319,7 +29396,7 @@ } }, { - "id": 730, + "id": 775, "name": "token", "kind": 1024, "kindString": "Property", @@ -28330,7 +29407,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 537, + "line": 585, "character": 2 } ], @@ -28345,18 +29422,18 @@ "title": "Properties", "kind": 1024, "children": [ - 731, - 732, - 733, - 729, - 730 + 776, + 777, + 778, + 774, + 775 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 533, + "line": 581, "character": 43 } ] @@ -28364,7 +29441,7 @@ } }, { - "id": 715, + "id": 760, "name": "SignInWithOAuthCredentials", "kind": 4194304, "kindString": "Type alias", @@ -28372,21 +29449,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 518, + "line": 566, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 716, + "id": 761, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 718, + "id": 763, "name": "options", "kind": 1024, "kindString": "Property", @@ -28396,21 +29473,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 521, + "line": 569, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 719, + "id": 764, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 722, + "id": 767, "name": "queryParams", "kind": 1024, "kindString": "Property", @@ -28423,14 +29500,14 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 527, + "line": 575, "character": 4 } ], "type": { "type": "reflection", "declaration": { - "id": 723, + "id": 768, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -28438,19 +29515,19 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 527, + "line": 575, "character": 18 } ], "indexSignature": { - "id": 724, + "id": 769, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 725, + "id": 770, "name": "key", "kind": 32768, "flags": {}, @@ -28469,7 +29546,7 @@ } }, { - "id": 720, + "id": 765, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -28482,7 +29559,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 523, + "line": 571, "character": 4 } ], @@ -28492,7 +29569,7 @@ } }, { - "id": 721, + "id": 766, "name": "scopes", "kind": 1024, "kindString": "Property", @@ -28505,7 +29582,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 525, + "line": 573, "character": 4 } ], @@ -28515,7 +29592,7 @@ } }, { - "id": 726, + "id": 771, "name": "skipBrowserRedirect", "kind": 1024, "kindString": "Property", @@ -28528,7 +29605,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 529, + "line": 577, "character": 4 } ], @@ -28543,17 +29620,17 @@ "title": "Properties", "kind": 1024, "children": [ - 722, - 720, - 721, - 726 + 767, + 765, + 766, + 771 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 521, + "line": 569, "character": 12 } ] @@ -28561,7 +29638,7 @@ } }, { - "id": 717, + "id": 762, "name": "provider", "kind": 1024, "kindString": "Property", @@ -28572,16 +29649,16 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 520, + "line": 568, "character": 2 } ], "type": { "type": "reference", - "id": 472, + "id": 478, "name": "Provider", "dereferenced": { - "id": 472, + "id": 478, "name": "Provider", "kind": 4194304, "kindString": "Type alias", @@ -28694,15 +29771,15 @@ "title": "Properties", "kind": 1024, "children": [ - 718, - 717 + 763, + 762 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 518, + "line": 566, "character": 41 } ] @@ -28710,7 +29787,7 @@ } }, { - "id": 683, + "id": 729, "name": "SignInWithPasswordCredentials", "kind": 4194304, "kindString": "Type alias", @@ -28718,7 +29795,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 451, + "line": 505, "character": 12 } ], @@ -28728,14 +29805,14 @@ { "type": "reflection", "declaration": { - "id": 684, + "id": 730, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 685, + "id": 731, "name": "email", "kind": 1024, "kindString": "Property", @@ -28746,7 +29823,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 454, + "line": 508, "character": 6 } ], @@ -28756,7 +29833,7 @@ } }, { - "id": 687, + "id": 733, "name": "options", "kind": 1024, "kindString": "Property", @@ -28766,21 +29843,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 457, + "line": 511, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 688, + "id": 734, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 689, + "id": 735, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -28793,7 +29870,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 459, + "line": 513, "character": 8 } ], @@ -28808,14 +29885,14 @@ "title": "Properties", "kind": 1024, "children": [ - 689 + 735 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 457, + "line": 511, "character": 16 } ] @@ -28823,7 +29900,7 @@ } }, { - "id": 686, + "id": 732, "name": "password", "kind": 1024, "kindString": "Property", @@ -28834,7 +29911,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 456, + "line": 510, "character": 6 } ], @@ -28849,16 +29926,16 @@ "title": "Properties", "kind": 1024, "children": [ - 685, - 687, - 686 + 731, + 733, + 732 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 452, + "line": 506, "character": 4 } ] @@ -28867,14 +29944,14 @@ { "type": "reflection", "declaration": { - "id": 690, + "id": 736, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 693, + "id": 739, "name": "options", "kind": 1024, "kindString": "Property", @@ -28884,21 +29961,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 467, + "line": 521, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 694, + "id": 740, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 696, + "id": 741, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -28911,7 +29988,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 475, + "line": 523, "character": 8 } ], @@ -28919,30 +29996,6 @@ "type": "intrinsic", "name": "string" } - }, - { - "id": 695, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", - "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n" - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 473, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "object" - } } ], "groups": [ @@ -28950,15 +30003,14 @@ "title": "Properties", "kind": 1024, "children": [ - 696, - 695 + 741 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 467, + "line": 521, "character": 16 } ] @@ -28966,7 +30018,7 @@ } }, { - "id": 692, + "id": 738, "name": "password", "kind": 1024, "kindString": "Property", @@ -28977,7 +30029,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 466, + "line": 520, "character": 6 } ], @@ -28987,7 +30039,7 @@ } }, { - "id": 691, + "id": 737, "name": "phone", "kind": 1024, "kindString": "Property", @@ -28998,7 +30050,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 464, + "line": 518, "character": 6 } ], @@ -29013,16 +30065,16 @@ "title": "Properties", "kind": 1024, "children": [ - 693, - 692, - 691 + 739, + 738, + 737 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 462, + "line": 516, "character": 4 } ] @@ -29032,7 +30084,7 @@ } }, { - "id": 697, + "id": 742, "name": "SignInWithPasswordlessCredentials", "kind": 4194304, "kindString": "Type alias", @@ -29040,7 +30092,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 479, + "line": 527, "character": 12 } ], @@ -29050,14 +30102,14 @@ { "type": "reflection", "declaration": { - "id": 698, + "id": 743, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 699, + "id": 744, "name": "email", "kind": 1024, "kindString": "Property", @@ -29068,7 +30120,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 482, + "line": 530, "character": 6 } ], @@ -29078,7 +30130,7 @@ } }, { - "id": 700, + "id": 745, "name": "options", "kind": 1024, "kindString": "Property", @@ -29088,21 +30140,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 483, + "line": 531, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 701, + "id": 746, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 705, + "id": 750, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -29115,7 +30167,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 495, + "line": 543, "character": 8 } ], @@ -29125,7 +30177,7 @@ } }, { - "id": 704, + "id": 749, "name": "data", "kind": 1024, "kindString": "Property", @@ -29133,13 +30185,13 @@ "isOptional": true }, "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", + "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.", "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n" }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 493, + "line": 541, "character": 8 } ], @@ -29149,7 +30201,7 @@ } }, { - "id": 702, + "id": 747, "name": "emailRedirectTo", "kind": 1024, "kindString": "Property", @@ -29162,7 +30214,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 485, + "line": 533, "character": 8 } ], @@ -29172,7 +30224,7 @@ } }, { - "id": 703, + "id": 748, "name": "shouldCreateUser", "kind": 1024, "kindString": "Property", @@ -29185,7 +30237,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 487, + "line": 535, "character": 8 } ], @@ -29200,17 +30252,17 @@ "title": "Properties", "kind": 1024, "children": [ - 705, - 704, - 702, - 703 + 750, + 749, + 747, + 748 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 483, + "line": 531, "character": 16 } ] @@ -29223,15 +30275,15 @@ "title": "Properties", "kind": 1024, "children": [ - 699, - 700 + 744, + 745 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 480, + "line": 528, "character": 4 } ] @@ -29240,14 +30292,14 @@ { "type": "reflection", "declaration": { - "id": 706, + "id": 751, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 708, + "id": 753, "name": "options", "kind": 1024, "kindString": "Property", @@ -29257,21 +30309,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 501, + "line": 549, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 709, + "id": 754, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 712, + "id": 757, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -29284,7 +30336,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 511, + "line": 559, "character": 8 } ], @@ -29294,7 +30346,7 @@ } }, { - "id": 713, + "id": 758, "name": "channel", "kind": 1024, "kindString": "Property", @@ -29307,7 +30359,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 513, + "line": 561, "character": 8 } ], @@ -29326,7 +30378,7 @@ } }, { - "id": 711, + "id": 756, "name": "data", "kind": 1024, "kindString": "Property", @@ -29334,13 +30386,13 @@ "isOptional": true }, "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", + "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.", "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n" }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 509, + "line": 557, "character": 8 } ], @@ -29350,7 +30402,7 @@ } }, { - "id": 710, + "id": 755, "name": "shouldCreateUser", "kind": 1024, "kindString": "Property", @@ -29363,7 +30415,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 503, + "line": 551, "character": 8 } ], @@ -29378,17 +30430,17 @@ "title": "Properties", "kind": 1024, "children": [ - 712, - 713, - 711, - 710 + 757, + 758, + 756, + 755 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 501, + "line": 549, "character": 16 } ] @@ -29396,7 +30448,7 @@ } }, { - "id": 707, + "id": 752, "name": "phone", "kind": 1024, "kindString": "Property", @@ -29407,7 +30459,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 500, + "line": 548, "character": 6 } ], @@ -29422,15 +30474,15 @@ "title": "Properties", "kind": 1024, "children": [ - 708, - 707 + 753, + 752 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 498, + "line": 546, "character": 4 } ] @@ -29440,7 +30492,7 @@ } }, { - "id": 772, + "id": 817, "name": "SignInWithSSO", "kind": 4194304, "kindString": "Type alias", @@ -29448,7 +30500,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 618, + "line": 666, "character": 12 } ], @@ -29458,14 +30510,14 @@ { "type": "reflection", "declaration": { - "id": 773, + "id": 818, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 775, + "id": 820, "name": "options", "kind": 1024, "kindString": "Property", @@ -29475,21 +30527,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 623, + "line": 671, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 776, + "id": 821, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 778, + "id": 823, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -29502,7 +30554,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 627, + "line": 675, "character": 8 } ], @@ -29512,7 +30564,7 @@ } }, { - "id": 777, + "id": 822, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -29525,7 +30577,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 625, + "line": 673, "character": 8 } ], @@ -29540,15 +30592,15 @@ "title": "Properties", "kind": 1024, "children": [ - 778, - 777 + 823, + 822 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 623, + "line": 671, "character": 16 } ] @@ -29556,7 +30608,7 @@ } }, { - "id": 774, + "id": 819, "name": "providerId", "kind": 1024, "kindString": "Property", @@ -29567,7 +30619,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 621, + "line": 669, "character": 6 } ], @@ -29582,15 +30634,15 @@ "title": "Properties", "kind": 1024, "children": [ - 775, - 774 + 820, + 819 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 619, + "line": 667, "character": 4 } ] @@ -29599,14 +30651,14 @@ { "type": "reflection", "declaration": { - "id": 779, + "id": 824, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 780, + "id": 825, "name": "domain", "kind": 1024, "kindString": "Property", @@ -29617,7 +30669,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 632, + "line": 680, "character": 6 } ], @@ -29627,7 +30679,7 @@ } }, { - "id": 781, + "id": 826, "name": "options", "kind": 1024, "kindString": "Property", @@ -29637,21 +30689,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 634, + "line": 682, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 782, + "id": 827, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 784, + "id": 829, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -29664,7 +30716,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 638, + "line": 686, "character": 8 } ], @@ -29674,7 +30726,7 @@ } }, { - "id": 783, + "id": 828, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -29687,7 +30739,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 636, + "line": 684, "character": 8 } ], @@ -29702,15 +30754,15 @@ "title": "Properties", "kind": 1024, "children": [ - 784, - 783 + 829, + 828 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 634, + "line": 682, "character": 16 } ] @@ -29723,15 +30775,15 @@ "title": "Properties", "kind": 1024, "children": [ - 780, - 781 + 825, + 826 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 630, + "line": 678, "character": 4 } ] @@ -29741,7 +30793,7 @@ } }, { - "id": 995, + "id": 1043, "name": "SignOut", "kind": 4194304, "kindString": "Type alias", @@ -29749,21 +30801,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1067, + "line": 1128, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 996, + "id": 1044, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 997, + "id": 1045, "name": "scope", "kind": 1024, "kindString": "Property", @@ -29776,7 +30828,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1078, + "line": 1139, "character": 2 } ], @@ -29804,14 +30856,14 @@ "title": "Properties", "kind": 1024, "children": [ - 997 + 1045 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 1067, + "line": 1128, "character": 22 } ] @@ -29819,7 +30871,7 @@ } }, { - "id": 666, + "id": 712, "name": "SignUpWithPasswordCredentials", "kind": 4194304, "kindString": "Type alias", @@ -29827,7 +30879,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 414, + "line": 468, "character": 12 } ], @@ -29837,14 +30889,14 @@ { "type": "reflection", "declaration": { - "id": 667, + "id": 713, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 668, + "id": 714, "name": "email", "kind": 1024, "kindString": "Property", @@ -29855,7 +30907,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 417, + "line": 471, "character": 6 } ], @@ -29865,7 +30917,7 @@ } }, { - "id": 670, + "id": 716, "name": "options", "kind": 1024, "kindString": "Property", @@ -29875,21 +30927,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 420, + "line": 474, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 671, + "id": 717, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 674, + "id": 720, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -29902,7 +30954,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 430, + "line": 484, "character": 8 } ], @@ -29912,7 +30964,7 @@ } }, { - "id": 673, + "id": 719, "name": "data", "kind": 1024, "kindString": "Property", @@ -29920,13 +30972,13 @@ "isOptional": true }, "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", + "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.", "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n" }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 428, + "line": 482, "character": 8 } ], @@ -29936,7 +30988,7 @@ } }, { - "id": 672, + "id": 718, "name": "emailRedirectTo", "kind": 1024, "kindString": "Property", @@ -29949,7 +31001,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 422, + "line": 476, "character": 8 } ], @@ -29964,16 +31016,16 @@ "title": "Properties", "kind": 1024, "children": [ - 674, - 673, - 672 + 720, + 719, + 718 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 420, + "line": 474, "character": 16 } ] @@ -29981,7 +31033,7 @@ } }, { - "id": 669, + "id": 715, "name": "password", "kind": 1024, "kindString": "Property", @@ -29992,7 +31044,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 419, + "line": 473, "character": 6 } ], @@ -30007,16 +31059,16 @@ "title": "Properties", "kind": 1024, "children": [ - 668, - 670, - 669 + 714, + 716, + 715 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 415, + "line": 469, "character": 4 } ] @@ -30025,14 +31077,14 @@ { "type": "reflection", "declaration": { - "id": 675, + "id": 721, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 678, + "id": 724, "name": "options", "kind": 1024, "kindString": "Property", @@ -30042,21 +31094,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 438, + "line": 492, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 679, + "id": 725, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 681, + "id": 727, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -30069,7 +31121,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 446, + "line": 500, "character": 8 } ], @@ -30079,7 +31131,7 @@ } }, { - "id": 682, + "id": 728, "name": "channel", "kind": 1024, "kindString": "Property", @@ -30092,7 +31144,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 448, + "line": 502, "character": 8 } ], @@ -30111,7 +31163,7 @@ } }, { - "id": 680, + "id": 726, "name": "data", "kind": 1024, "kindString": "Property", @@ -30119,13 +31171,13 @@ "isOptional": true }, "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", + "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.raw_user_meta_data` column.", "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n" }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 444, + "line": 498, "character": 8 } ], @@ -30140,16 +31192,16 @@ "title": "Properties", "kind": 1024, "children": [ - 681, - 682, - 680 + 727, + 728, + 726 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 438, + "line": 492, "character": 16 } ] @@ -30157,7 +31209,7 @@ } }, { - "id": 677, + "id": 723, "name": "password", "kind": 1024, "kindString": "Property", @@ -30168,7 +31220,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 437, + "line": 491, "character": 6 } ], @@ -30178,7 +31230,7 @@ } }, { - "id": 676, + "id": 722, "name": "phone", "kind": 1024, "kindString": "Property", @@ -30189,7 +31241,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 435, + "line": 489, "character": 6 } ], @@ -30204,16 +31256,16 @@ "title": "Properties", "kind": 1024, "children": [ - 678, - 677, - 676 + 724, + 723, + 722 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 433, + "line": 487, "character": 4 } ] @@ -30223,7 +31275,7 @@ } }, { - "id": 973, + "id": 1019, "name": "SupportedStorage", "kind": 4194304, "kindString": "Type alias", @@ -30231,50 +31283,106 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 1039, + "line": 1089, "character": 12 } ], "type": { - "type": "reference", - "typeArguments": [ + "type": "intersection", + "types": [ { "type": "reference", "typeArguments": [ { "type": "reference", - "qualifiedName": "Storage", - "package": "typescript", - "name": "Storage" - }, - { - "type": "union", - "types": [ + "typeArguments": [ { - "type": "literal", - "value": "getItem" + "type": "reference", + "qualifiedName": "Storage", + "package": "typescript", + "name": "Storage" }, { - "type": "literal", - "value": "setItem" - }, - { - "type": "literal", - "value": "removeItem" + "type": "union", + "types": [ + { + "type": "literal", + "value": "getItem" + }, + { + "type": "literal", + "value": "setItem" + }, + { + "type": "literal", + "value": "removeItem" + } + ] } - ] + ], + "qualifiedName": "Pick", + "package": "typescript", + "name": "Pick" } ], - "qualifiedName": "Pick", - "package": "typescript", - "name": "Pick" + "name": "PromisifyMethods" + }, + { + "type": "reflection", + "declaration": { + "id": 1020, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 1021, + "name": "isServer", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "If set to `true` signals to the library that the storage medium is used\non a server and the values may not be authentic, such as reading from\nrequest cookies. Implementations should not set this to true if the client\nis used on a server that reads storage information from authenticated\nsources, such as a secure database or file." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1099, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 1021 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1091, + "character": 4 + } + ] + } } - ], - "name": "PromisifyMethods" + ] } }, { - "id": 567, + "id": 607, "name": "UserResponse", "kind": 4194304, "kindString": "Type alias", @@ -30282,7 +31390,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 167, + "line": 208, "character": 12 } ], @@ -30292,14 +31400,14 @@ { "type": "reflection", "declaration": { - "id": 568, + "id": 608, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 569, + "id": 609, "name": "data", "kind": 1024, "kindString": "Property", @@ -30307,21 +31415,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 169, + "line": 210, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 570, + "id": 610, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 571, + "id": 611, "name": "user", "kind": 1024, "kindString": "Property", @@ -30329,13 +31437,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 170, + "line": 211, "character": 8 } ], "type": { "type": "reference", - "id": 616, + "id": 656, "name": "User" } } @@ -30345,14 +31453,14 @@ "title": "Properties", "kind": 1024, "children": [ - 571 + 611 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 169, + "line": 210, "character": 12 } ] @@ -30360,7 +31468,7 @@ } }, { - "id": 572, + "id": 612, "name": "error", "kind": 1024, "kindString": "Property", @@ -30368,7 +31476,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 172, + "line": 213, "character": 6 } ], @@ -30383,15 +31491,15 @@ "title": "Properties", "kind": 1024, "children": [ - 569, - 572 + 609, + 612 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 168, + "line": 209, "character": 4 } ] @@ -30400,14 +31508,14 @@ { "type": "reflection", "declaration": { - "id": 573, + "id": 613, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 574, + "id": 614, "name": "data", "kind": 1024, "kindString": "Property", @@ -30415,21 +31523,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 175, + "line": 216, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 575, + "id": 615, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 576, + "id": 616, "name": "user", "kind": 1024, "kindString": "Property", @@ -30437,7 +31545,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 176, + "line": 217, "character": 8 } ], @@ -30452,14 +31560,14 @@ "title": "Properties", "kind": 1024, "children": [ - 576 + 616 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 175, + "line": 216, "character": 12 } ] @@ -30467,7 +31575,7 @@ } }, { - "id": 577, + "id": 617, "name": "error", "kind": 1024, "kindString": "Property", @@ -30475,13 +31583,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 178, + "line": 219, "character": 6 } ], "type": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } } @@ -30491,15 +31599,15 @@ "title": "Properties", "kind": 1024, "children": [ - 574, - 577 + 614, + 617 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 174, + "line": 215, "character": 4 } ] @@ -30509,7 +31617,7 @@ } }, { - "id": 736, + "id": 781, "name": "VerifyOtpParams", "kind": 4194304, "kindString": "Type alias", @@ -30517,7 +31625,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 548, + "line": 596, "character": 12 } ], @@ -30525,14 +31633,14 @@ "type": "union", "types": [ { - "id": 737, + "id": 782, "name": "VerifyMobileOtpParams", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 741, + "id": 786, "name": "options", "kind": 1024, "kindString": "Property", @@ -30542,21 +31650,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 556, + "line": 604, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 742, + "id": 787, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 744, + "id": 789, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -30575,7 +31683,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 565, + "line": 613, "character": 4 } ], @@ -30585,7 +31693,7 @@ } }, { - "id": 743, + "id": 788, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -30598,7 +31706,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 558, + "line": 606, "character": 4 } ], @@ -30613,8 +31721,8 @@ "title": "Properties", "kind": 1024, "children": [ - 744, - 743 + 789, + 788 ] } ] @@ -30622,7 +31730,7 @@ } }, { - "id": 738, + "id": 783, "name": "phone", "kind": 1024, "kindString": "Property", @@ -30633,7 +31741,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 551, + "line": 599, "character": 2 } ], @@ -30643,7 +31751,7 @@ } }, { - "id": 739, + "id": 784, "name": "token", "kind": 1024, "kindString": "Property", @@ -30654,7 +31762,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 553, + "line": 601, "character": 2 } ], @@ -30664,7 +31772,7 @@ } }, { - "id": 740, + "id": 785, "name": "type", "kind": 1024, "kindString": "Property", @@ -30675,16 +31783,16 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 555, + "line": 603, "character": 2 } ], "type": { "type": "reference", - "id": 756, + "id": 801, "name": "MobileOtpType", "dereferenced": { - "id": 756, + "id": 801, "name": "MobileOtpType", "kind": 4194304, "kindString": "Type alias", @@ -30692,7 +31800,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 595, + "line": 643, "character": 12 } ], @@ -30718,30 +31826,30 @@ "title": "Properties", "kind": 1024, "children": [ - 741, - 738, - 739, - 740 + 786, + 783, + 784, + 785 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 549, + "line": 597, "character": 17 } ] }, { - "id": 745, + "id": 790, "name": "VerifyEmailOtpParams", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 746, + "id": 791, "name": "email", "kind": 1024, "kindString": "Property", @@ -30752,7 +31860,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 570, + "line": 618, "character": 2 } ], @@ -30762,7 +31870,7 @@ } }, { - "id": 749, + "id": 794, "name": "options", "kind": 1024, "kindString": "Property", @@ -30772,21 +31880,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 575, + "line": 623, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 750, + "id": 795, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 752, + "id": 797, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -30805,7 +31913,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 583, + "line": 631, "character": 4 } ], @@ -30815,7 +31923,7 @@ } }, { - "id": 751, + "id": 796, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -30828,7 +31936,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 577, + "line": 625, "character": 4 } ], @@ -30843,8 +31951,8 @@ "title": "Properties", "kind": 1024, "children": [ - 752, - 751 + 797, + 796 ] } ] @@ -30852,7 +31960,7 @@ } }, { - "id": 747, + "id": 792, "name": "token", "kind": 1024, "kindString": "Property", @@ -30863,7 +31971,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 572, + "line": 620, "character": 2 } ], @@ -30873,7 +31981,7 @@ } }, { - "id": 748, + "id": 793, "name": "type", "kind": 1024, "kindString": "Property", @@ -30884,16 +31992,16 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 574, + "line": 622, "character": 2 } ], "type": { "type": "reference", - "id": 757, + "id": 802, "name": "EmailOtpType", "dereferenced": { - "id": 757, + "id": 802, "name": "EmailOtpType", "kind": 4194304, "kindString": "Type alias", @@ -30901,7 +32009,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 596, + "line": 644, "character": 12 } ], @@ -30943,30 +32051,30 @@ "title": "Properties", "kind": 1024, "children": [ - 746, - 749, - 747, - 748 + 791, + 794, + 792, + 793 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 568, + "line": 616, "character": 17 } ] }, { - "id": 753, + "id": 798, "name": "VerifyTokenHashParams", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 754, + "id": 799, "name": "token_hash", "kind": 1024, "kindString": "Property", @@ -30977,7 +32085,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 589, + "line": 637, "character": 2 } ], @@ -30987,7 +32095,7 @@ } }, { - "id": 755, + "id": 800, "name": "type", "kind": 1024, "kindString": "Property", @@ -30998,16 +32106,16 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 592, + "line": 640, "character": 2 } ], "type": { "type": "reference", - "id": 757, + "id": 802, "name": "EmailOtpType", "dereferenced": { - "id": 757, + "id": 802, "name": "EmailOtpType", "kind": 4194304, "kindString": "Type alias", @@ -31015,7 +32123,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 596, + "line": 644, "character": 12 } ], @@ -31057,15 +32165,15 @@ "title": "Properties", "kind": 1024, "children": [ - 754, - 755 + 799, + 800 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 587, + "line": 635, "character": 17 } ] @@ -31074,7 +32182,175 @@ } }, { - "id": 469, + "id": 511, + "name": "WeakPassword", + "kind": 4194304, + "kindString": "Type alias", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 86, + "character": 12 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 512, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 514, + "name": "message", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 88, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 513, + "name": "reasons", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 87, + "character": 2 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "id": 510, + "name": "WeakPasswordReasons" + } + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 514, + 513 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 86, + "character": 27 + } + ] + } + } + }, + { + "id": 510, + "name": "WeakPasswordReasons", + "kind": 4194304, + "kindString": "Type alias", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 85, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "length" + }, + { + "type": "literal", + "value": "characters" + }, + { + "type": "literal", + "value": "pwned" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 460, + "name": "AuthAdminApi", + "kind": 32, + "kindString": "Variable", + "flags": { + "isConst": true + }, + "sources": [ + { + "fileName": "src/AuthAdminApi.ts", + "line": 3, + "character": 6 + } + ], + "type": { + "type": "query", + "queryType": { + "type": "reference", + "id": 1, + "name": "default" + } + }, + "defaultValue": "GoTrueAdminApi" + }, + { + "id": 461, + "name": "AuthClient", + "kind": 32, + "kindString": "Variable", + "flags": { + "isConst": true + }, + "sources": [ + { + "fileName": "src/AuthClient.ts", + "line": 3, + "character": 6 + } + ], + "type": { + "type": "query", + "queryType": { + "type": "reference", + "id": 78, + "name": "default" + } + }, + "defaultValue": "GoTrueClient" + }, + { + "id": 475, "name": "lockInternals", "kind": 32, "kindString": "Variable", @@ -31099,14 +32375,14 @@ "type": { "type": "reflection", "declaration": { - "id": 470, + "id": 476, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 471, + "id": 477, "name": "debug", "kind": 1024, "kindString": "Property", @@ -31138,7 +32414,7 @@ "title": "Properties", "kind": 1024, "children": [ - 471 + 477 ] } ] @@ -31147,7 +32423,7 @@ "defaultValue": "..." }, { - "id": 1001, + "id": 1049, "name": "isAuthApiError", "kind": 64, "kindString": "Function", @@ -31155,20 +32431,20 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 34, + "line": 36, "character": 16 } ], "signatures": [ { - "id": 1002, + "id": 1050, "name": "isAuthApiError", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 1003, + "id": 1051, "name": "error", "kind": 32768, "kindString": "Parameter", @@ -31185,7 +32461,7 @@ "asserts": false, "targetType": { "type": "reference", - "id": 1017, + "id": 1065, "name": "AuthApiError" } } @@ -31193,7 +32469,7 @@ ] }, { - "id": 998, + "id": 1046, "name": "isAuthError", "kind": 64, "kindString": "Function", @@ -31201,20 +32477,20 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 12, + "line": 14, "character": 16 } ], "signatures": [ { - "id": 999, + "id": 1047, "name": "isAuthError", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 1000, + "id": 1048, "name": "error", "kind": 32768, "kindString": "Parameter", @@ -31231,7 +32507,7 @@ "asserts": false, "targetType": { "type": "reference", - "id": 1010, + "id": 1058, "name": "AuthError" } } @@ -31239,7 +32515,7 @@ ] }, { - "id": 1004, + "id": 1052, "name": "isAuthRetryableFetchError", "kind": 64, "kindString": "Function", @@ -31247,20 +32523,20 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 124, + "line": 126, "character": 16 } ], "signatures": [ { - "id": 1005, + "id": 1053, "name": "isAuthRetryableFetchError", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 1006, + "id": 1054, "name": "error", "kind": 32768, "kindString": "Parameter", @@ -31277,7 +32553,7 @@ "asserts": false, "targetType": { "type": "reference", - "id": 1140, + "id": 1188, "name": "AuthRetryableFetchError" } } @@ -31285,7 +32561,7 @@ ] }, { - "id": 1007, + "id": 1055, "name": "isAuthWeakPasswordError", "kind": 64, "kindString": "Function", @@ -31293,20 +32569,20 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 146, + "line": 148, "character": 16 } ], "signatures": [ { - "id": 1008, + "id": 1056, "name": "isAuthWeakPasswordError", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 1009, + "id": 1057, "name": "error", "kind": 32768, "kindString": "Parameter", @@ -31323,7 +32599,7 @@ "asserts": false, "targetType": { "type": "reference", - "id": 1154, + "id": 1202, "name": "AuthWeakPasswordError" } } @@ -31331,7 +32607,7 @@ ] }, { - "id": 456, + "id": 462, "name": "navigatorLock", "kind": 64, "kindString": "Function", @@ -31339,30 +32615,24 @@ "sources": [ { "fileName": "src/lib/locks.ts", - "line": 55, + "line": 58, "character": 22 } ], "signatures": [ { - "id": 457, + "id": 463, "name": "navigatorLock", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { "shortText": "Implements a global exclusive lock using the Navigator LockManager API. It\nis available on all browsers released after 2022-03-15 with Safari being the\nlast one to release support. If the API is not available, this function will\nthrow. Make sure you check availablility before configuring {@link\nGoTrueClient}.", - "text": "You can turn on debugging by setting the `supabase.gotrue-js.locks.debug`\nlocal storage item to `true`.\n\nInternals:\n\nSince the LockManager API does not preserve stack traces for the async\nfunction passed in the `request` method, a trick is used where acquiring the\nlock releases a previously started promise to run the operation in the `fn`\nfunction. The lock waits for that promise to finish (with or without error),\nwhile the function will finally wait for the result anyway.\n", - "tags": [ - { - "tag": "experimental", - "text": "\n" - } - ] + "text": "You can turn on debugging by setting the `supabase.gotrue-js.locks.debug`\nlocal storage item to `true`.\n\nInternals:\n\nSince the LockManager API does not preserve stack traces for the async\nfunction passed in the `request` method, a trick is used where acquiring the\nlock releases a previously started promise to run the operation in the `fn`\nfunction. The lock waits for that promise to finish (with or without error),\nwhile the function will finally wait for the result anyway.\n" }, "typeParameter": [ { - "id": 458, + "id": 464, "name": "R", "kind": 131072, "kindString": "Type parameter", @@ -31371,7 +32641,7 @@ ], "parameters": [ { - "id": 459, + "id": 465, "name": "name", "kind": 32768, "kindString": "Parameter", @@ -31385,7 +32655,7 @@ } }, { - "id": 460, + "id": 466, "name": "acquireTimeout", "kind": 32768, "kindString": "Parameter", @@ -31399,7 +32669,7 @@ } }, { - "id": 461, + "id": 467, "name": "fn", "kind": 32768, "kindString": "Parameter", @@ -31410,14 +32680,14 @@ "type": { "type": "reflection", "declaration": { - "id": 462, + "id": 468, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 463, + "id": 469, "name": "__type", "kind": 4096, "kindString": "Call signature", @@ -31427,7 +32697,7 @@ "typeArguments": [ { "type": "reference", - "id": 458, + "id": 464, "name": "R" } ], @@ -31446,7 +32716,7 @@ "typeArguments": [ { "type": "reference", - "id": 458, + "id": 464, "name": "R" } ], @@ -31463,119 +32733,126 @@ "title": "Classes", "kind": 128, "children": [ - 1017, - 1010, - 1090, - 1077, 1065, - 1115, - 1140, - 1053, - 1030, - 1154, - 1038, + 1058, + 1138, + 1125, + 1113, + 1163, + 1188, + 1101, + 1078, + 1202, + 1086, 1, 78, - 464 + 470 ] }, { "title": "Interfaces", "kind": 256, "children": [ - 587, - 645, - 602, - 807, - 966, - 921, - 578, + 627, + 685, + 642, + 852, + 1012, + 967, + 618, + 696, + 704, 656, - 664, - 616, - 609, - 639, - 590, - 613, - 745, - 737, - 753 + 649, + 679, + 630, + 653, + 790, + 782, + 798 ] }, { "title": "Type Aliases", "kind": 4194304, "children": [ - 474, - 473, - 714, - 950, - 941, - 963, - 954, - 889, - 865, + 480, + 479, + 759, + 996, + 987, + 1009, + 1000, + 935, 910, - 899, - 880, - 852, - 517, - 504, - 532, - 909, - 977, - 757, + 956, + 945, + 926, + 897, + 542, + 515, + 528, + 557, + 570, + 955, + 1025, + 802, + 846, + 836, + 855, + 869, + 856, + 876, + 841, + 830, + 490, + 1022, + 481, + 893, + 890, + 877, + 882, + 885, 801, - 791, - 810, - 824, - 811, - 831, - 796, - 785, - 484, - 974, - 475, - 848, - 845, - 832, - 837, - 840, - 756, - 545, - 991, - 984, - 472, - 758, - 558, - 727, - 715, - 683, - 697, + 585, + 1039, + 1032, + 478, + 803, + 598, + 706, 772, - 995, - 666, - 973, - 567, - 736 + 760, + 729, + 742, + 817, + 1043, + 712, + 1019, + 607, + 781, + 511, + 510 ] }, { "title": "Variables", "kind": 32, "children": [ - 469 + 460, + 461, + 475 ] }, { "title": "Functions", "kind": 64, "children": [ - 1001, - 998, - 1004, - 1007, - 456 + 1049, + 1046, + 1052, + 1055, + 462 ] } ], diff --git a/apps/docs/spec/enrichments/tsdoc_v2/postgrest.json b/apps/docs/spec/enrichments/tsdoc_v2/postgrest.json index 03926da8a62..c86852b3ecb 100644 --- a/apps/docs/spec/enrichments/tsdoc_v2/postgrest.json +++ b/apps/docs/spec/enrichments/tsdoc_v2/postgrest.json @@ -7,7 +7,7 @@ "originalName": "", "children": [ { - "id": 610, + "id": 609, "name": "PostgrestBuilder", "kind": 128, "kindString": "Class", @@ -16,7 +16,7 @@ }, "children": [ { - "id": 611, + "id": 610, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -24,20 +24,20 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 19, + "line": 20, "character": 2 } ], "signatures": [ { - "id": 612, + "id": 611, "name": "new PostgrestBuilder", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "typeParameter": [ { - "id": 613, + "id": 612, "name": "Result", "kind": 131072, "kindString": "Type parameter", @@ -46,18 +46,18 @@ ], "parameters": [ { - "id": 614, + "id": 613, "name": "builder", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "reference", - "id": 613, + "id": 612, "name": "Result" } ], @@ -67,11 +67,11 @@ ], "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "reference", - "id": 613, + "id": 612, "name": "Result" } ], @@ -81,7 +81,7 @@ ] }, { - "id": 619, + "id": 618, "name": "body", "kind": 1024, "kindString": "Property", @@ -92,7 +92,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 13, + "line": 14, "character": 12 } ], @@ -102,7 +102,7 @@ } }, { - "id": 622, + "id": 621, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -112,28 +112,28 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 16, + "line": 17, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 623, + "id": 622, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 624, + "id": 623, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 625, + "id": 624, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -157,7 +157,7 @@ } }, { - "id": 626, + "id": 625, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -192,7 +192,7 @@ } }, { - "id": 617, + "id": 616, "name": "headers", "kind": 1024, "kindString": "Property", @@ -202,7 +202,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 11, + "line": 12, "character": 12 } ], @@ -224,7 +224,7 @@ } }, { - "id": 627, + "id": 626, "name": "isMaybeSingle", "kind": 1024, "kindString": "Property", @@ -234,7 +234,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 17, + "line": 18, "character": 12 } ], @@ -244,7 +244,7 @@ } }, { - "id": 615, + "id": 614, "name": "method", "kind": 1024, "kindString": "Property", @@ -254,7 +254,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 9, + "line": 10, "character": 12 } ], @@ -285,7 +285,7 @@ } }, { - "id": 618, + "id": 617, "name": "schema", "kind": 1024, "kindString": "Property", @@ -296,7 +296,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 12, + "line": 13, "character": 12 } ], @@ -306,7 +306,7 @@ } }, { - "id": 620, + "id": 619, "name": "shouldThrowOnError", "kind": 1024, "kindString": "Property", @@ -316,7 +316,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 14, + "line": 15, "character": 12 } ], @@ -327,7 +327,7 @@ "defaultValue": "false" }, { - "id": 621, + "id": 620, "name": "signal", "kind": 1024, "kindString": "Property", @@ -338,7 +338,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 15, + "line": 16, "character": 12 } ], @@ -350,7 +350,7 @@ } }, { - "id": 616, + "id": 615, "name": "url", "kind": 1024, "kindString": "Property", @@ -360,7 +360,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 10, + "line": 11, "character": 12 } ], @@ -372,7 +372,7 @@ } }, { - "id": 630, + "id": 629, "name": "then", "kind": 2048, "kindString": "Method", @@ -380,31 +380,31 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 49, + "line": 50, "character": 2 } ], "signatures": [ { - "id": 631, + "id": 630, "name": "then", "kind": 4096, "kindString": "Call signature", "flags": {}, "typeParameter": [ { - "id": 632, + "id": 631, "name": "TResult1", "kind": 131072, "kindString": "Type parameter", "flags": {}, "default": { "type": "reference", - "id": 658, + "id": 657, "typeArguments": [ { "type": "reference", - "id": 613, + "id": 612, "name": "Result" } ], @@ -412,7 +412,7 @@ } }, { - "id": 633, + "id": 632, "name": "TResult2", "kind": 131072, "kindString": "Type parameter", @@ -425,7 +425,7 @@ ], "parameters": [ { - "id": 634, + "id": 633, "name": "onfulfilled", "kind": 32768, "kindString": "Parameter", @@ -442,32 +442,32 @@ { "type": "reflection", "declaration": { - "id": 635, + "id": 634, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 636, + "id": 635, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 637, + "id": 636, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 658, + "id": 657, "typeArguments": [ { "type": "reference", - "id": 613, + "id": 612, "name": "Result" } ], @@ -480,7 +480,7 @@ "types": [ { "type": "reference", - "id": 475, + "id": 474, "name": "TResult1" }, { @@ -488,7 +488,7 @@ "typeArguments": [ { "type": "reference", - "id": 475, + "id": 474, "name": "TResult1" } ], @@ -506,7 +506,7 @@ } }, { - "id": 638, + "id": 637, "name": "onrejected", "kind": 32768, "kindString": "Parameter", @@ -523,21 +523,21 @@ { "type": "reflection", "declaration": { - "id": 639, + "id": 638, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 640, + "id": 639, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 641, + "id": 640, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -553,7 +553,7 @@ "types": [ { "type": "reference", - "id": 476, + "id": 475, "name": "TResult2" }, { @@ -561,7 +561,7 @@ "typeArguments": [ { "type": "reference", - "id": 476, + "id": 475, "name": "TResult2" } ], @@ -587,12 +587,12 @@ "types": [ { "type": "reference", - "id": 475, + "id": 474, "name": "TResult1" }, { "type": "reference", - "id": 476, + "id": 475, "name": "TResult2" } ] @@ -614,7 +614,7 @@ } }, { - "id": 628, + "id": 627, "name": "throwOnError", "kind": 2048, "kindString": "Method", @@ -622,13 +622,13 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 44, + "line": 45, "character": 2 } ], "signatures": [ { - "id": 629, + "id": 628, "name": "throwOnError", "kind": 4096, "kindString": "Call signature", @@ -639,11 +639,11 @@ }, "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "reference", - "id": 613, + "id": 612, "name": "Result" } ], @@ -658,43 +658,43 @@ "title": "Constructors", "kind": 512, "children": [ - 611 + 610 ] }, { "title": "Properties", "kind": 1024, "children": [ - 619, - 622, - 617, - 627, - 615, 618, - 620, 621, - 616 + 616, + 626, + 614, + 617, + 619, + 620, + 615 ] }, { "title": "Methods", "kind": 2048, "children": [ - 630, - 628 + 629, + 627 ] } ], "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 6, + "line": 7, "character": 30 } ], "typeParameter": [ { - "id": 642, + "id": 641, "name": "Result", "kind": 131072, "kindString": "Type parameter", @@ -704,7 +704,7 @@ "extendedBy": [ { "type": "reference", - "id": 490, + "id": 489, "name": "PostgrestTransformBuilder" } ], @@ -714,11 +714,11 @@ "typeArguments": [ { "type": "reference", - "id": 658, + "id": 657, "typeArguments": [ { "type": "reference", - "id": 613, + "id": 612, "name": "Result" } ], @@ -1325,7 +1325,7 @@ ], "type": { "type": "reference", - "id": 57, + "id": 56, "typeArguments": [ { "type": "reference", @@ -1453,7 +1453,7 @@ ], "type": { "type": "reference", - "id": 57, + "id": 56, "typeArguments": [ { "type": "reference", @@ -1528,61 +1528,11 @@ ], "name": "default" } - }, - { - "id": 38, - "name": "from", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Perform a query on a table or a view." - }, - "parameters": [ - { - "id": 39, - "name": "relation", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "shortText": "The table or view name to query\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "id": 57, - "typeArguments": [ - { - "type": "reference", - "id": 6, - "name": "Schema" - }, - { - "type": "intrinsic", - "name": "any" - }, - { - "type": "intrinsic", - "name": "any" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "default" - } } ] }, { - "id": 44, + "id": 42, "name": "rpc", "kind": 2048, "kindString": "Method", @@ -1590,13 +1540,13 @@ "sources": [ { "fileName": "src/PostgrestClient.ts", - "line": 123, + "line": 124, "character": 2 } ], "signatures": [ { - "id": 45, + "id": 43, "name": "rpc", "kind": 4096, "kindString": "Call signature", @@ -1606,8 +1556,8 @@ }, "typeParameter": [ { - "id": 46, - "name": "FunctionName", + "id": 44, + "name": "FnName", "kind": 131072, "kindString": "Type parameter", "flags": {}, @@ -1617,8 +1567,8 @@ } }, { - "id": 47, - "name": "Function_", + "id": 45, + "name": "Fn", "kind": 131072, "kindString": "Type parameter", "flags": {}, @@ -1630,7 +1580,7 @@ ], "parameters": [ { - "id": 48, + "id": 46, "name": "fn", "kind": 32768, "kindString": "Parameter", @@ -1640,12 +1590,12 @@ }, "type": { "type": "reference", - "id": 46, - "name": "FunctionName" + "id": 44, + "name": "FnName" } }, { - "id": 49, + "id": 47, "name": "args", "kind": 32768, "kindString": "Parameter", @@ -1661,14 +1611,14 @@ }, "objectType": { "type": "reference", - "id": 47, - "name": "Function_" + "id": 45, + "name": "Fn" } }, "defaultValue": "{}" }, { - "id": 50, + "id": 48, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -1680,14 +1630,14 @@ "type": { "type": "reflection", "declaration": { - "id": 51, + "id": 49, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 53, + "id": 52, "name": "count", "kind": 1024, "kindString": "Property", @@ -1723,7 +1673,30 @@ } }, { - "id": 52, + "id": 51, + "name": "get", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "When set to `true`, the function will be called with\nread-only access mode." + }, + "sources": [ + { + "fileName": "src/PostgrestClient.ts", + "line": 133, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 50, "name": "head", "kind": 1024, "kindString": "Property", @@ -1736,7 +1709,7 @@ "sources": [ { "fileName": "src/PostgrestClient.ts", - "line": 133, + "line": 132, "character": 6 } ], @@ -1751,8 +1724,9 @@ "title": "Properties", "kind": 1024, "children": [ - 53, - 52 + 52, + 51, + 50 ] } ] @@ -1763,7 +1737,7 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", @@ -1780,8 +1754,8 @@ }, "objectType": { "type": "reference", - "id": 47, - "name": "Function_" + "id": 45, + "name": "Fn" } }, "extendsType": { @@ -1856,8 +1830,8 @@ }, "objectType": { "type": "reference", - "id": 47, - "name": "Function_" + "id": 45, + "name": "Fn" } }, { @@ -1875,7 +1849,7 @@ ] }, { - "id": 40, + "id": 38, "name": "schema", "kind": 2048, "kindString": "Method", @@ -1883,13 +1857,13 @@ "sources": [ { "fileName": "src/PostgrestClient.ts", - "line": 88, + "line": 87, "character": 2 } ], "signatures": [ { - "id": 41, + "id": 39, "name": "schema", "kind": 4096, "kindString": "Call signature", @@ -1900,7 +1874,7 @@ }, "typeParameter": [ { - "id": 42, + "id": 40, "name": "DynamicSchema", "kind": 131072, "kindString": "Type parameter", @@ -1913,7 +1887,7 @@ ], "parameters": [ { - "id": 43, + "id": 41, "name": "schema", "kind": 32768, "kindString": "Parameter", @@ -1923,7 +1897,7 @@ }, "type": { "type": "reference", - "id": 42, + "id": 40, "name": "DynamicSchema" } } @@ -1939,7 +1913,7 @@ }, { "type": "reference", - "id": 42, + "id": 40, "name": "DynamicSchema" }, { @@ -1948,7 +1922,7 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 42, + "id": 40, "name": "DynamicSchema" }, "objectType": { @@ -2007,8 +1981,8 @@ "kind": 2048, "children": [ 25, - 44, - 40 + 42, + 38 ] } ], @@ -2021,7 +1995,7 @@ ], "typeParameter": [ { - "id": 54, + "id": 53, "name": "Database", "kind": 131072, "kindString": "Type parameter", @@ -2035,7 +2009,7 @@ } }, { - "id": 55, + "id": 54, "name": "SchemaName", "kind": 131072, "kindString": "Type parameter", @@ -2101,7 +2075,7 @@ } }, { - "id": 56, + "id": 55, "name": "Schema", "kind": 131072, "kindString": "Type parameter", @@ -2151,28 +2125,28 @@ ] }, { - "id": 144, + "id": 143, "name": "PostgrestFilterBuilder", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 145, + "id": 144, "name": "constructor", "kind": 512, "kindString": "Constructor", "flags": {}, "signatures": [ { - "id": 146, + "id": 145, "name": "new PostgrestFilterBuilder", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "typeParameter": [ { - "id": 147, + "id": 146, "name": "Schema", "kind": 131072, "kindString": "Type parameter", @@ -2183,7 +2157,7 @@ } }, { - "id": 148, + "id": 147, "name": "Row", "kind": 131072, "kindString": "Type parameter", @@ -2206,14 +2180,14 @@ } }, { - "id": 149, + "id": 148, "name": "Result", "kind": 131072, "kindString": "Type parameter", "flags": {} }, { - "id": 150, + "id": 149, "name": "RelationName", "kind": 131072, "kindString": "Type parameter", @@ -2224,7 +2198,7 @@ } }, { - "id": 151, + "id": 150, "name": "Relationships", "kind": 131072, "kindString": "Type parameter", @@ -2237,18 +2211,18 @@ ], "parameters": [ { - "id": 152, + "id": 151, "name": "builder", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "reference", - "id": 149, + "id": 148, "name": "Result" } ], @@ -2258,31 +2232,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -2290,19 +2264,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 492, + "id": 491, "name": "default.constructor" } } ], "inheritedFrom": { "type": "reference", - "id": 491, + "id": 490, "name": "default.constructor" } }, { - "id": 462, + "id": 461, "name": "body", "kind": 1024, "kindString": "Property", @@ -2313,7 +2287,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 13, + "line": 14, "character": 12 } ], @@ -2323,12 +2297,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 582, + "id": 581, "name": "default.body" } }, { - "id": 465, + "id": 464, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -2338,28 +2312,28 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 16, + "line": 17, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 466, + "id": 465, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 467, + "id": 466, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 468, + "id": 467, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -2383,7 +2357,7 @@ } }, { - "id": 469, + "id": 468, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -2418,12 +2392,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 585, + "id": 584, "name": "default.fetch" } }, { - "id": 460, + "id": 459, "name": "headers", "kind": 1024, "kindString": "Property", @@ -2433,7 +2407,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 11, + "line": 12, "character": 12 } ], @@ -2455,12 +2429,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 580, + "id": 579, "name": "default.headers" } }, { - "id": 470, + "id": 469, "name": "isMaybeSingle", "kind": 1024, "kindString": "Property", @@ -2470,7 +2444,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 17, + "line": 18, "character": 12 } ], @@ -2480,12 +2454,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 590, + "id": 589, "name": "default.isMaybeSingle" } }, { - "id": 458, + "id": 457, "name": "method", "kind": 1024, "kindString": "Property", @@ -2495,7 +2469,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 9, + "line": 10, "character": 12 } ], @@ -2526,12 +2500,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 578, + "id": 577, "name": "default.method" } }, { - "id": 461, + "id": 460, "name": "schema", "kind": 1024, "kindString": "Property", @@ -2542,7 +2516,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 12, + "line": 13, "character": 12 } ], @@ -2552,12 +2526,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 581, + "id": 580, "name": "default.schema" } }, { - "id": 463, + "id": 462, "name": "shouldThrowOnError", "kind": 1024, "kindString": "Property", @@ -2567,7 +2541,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 14, + "line": 15, "character": 12 } ], @@ -2578,12 +2552,12 @@ "defaultValue": "false", "inheritedFrom": { "type": "reference", - "id": 583, + "id": 582, "name": "default.shouldThrowOnError" } }, { - "id": 464, + "id": 463, "name": "signal", "kind": 1024, "kindString": "Property", @@ -2594,7 +2568,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 15, + "line": 16, "character": 12 } ], @@ -2606,12 +2580,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 584, + "id": 583, "name": "default.signal" } }, { - "id": 459, + "id": 458, "name": "url", "kind": 1024, "kindString": "Property", @@ -2621,7 +2595,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 10, + "line": 11, "character": 12 } ], @@ -2633,12 +2607,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 579, + "id": 578, "name": "default.url" } }, { - "id": 430, + "id": 429, "name": "abortSignal", "kind": 2048, "kindString": "Method", @@ -2652,7 +2626,7 @@ ], "signatures": [ { - "id": 431, + "id": 430, "name": "abortSignal", "kind": 4096, "kindString": "Call signature", @@ -2662,7 +2636,7 @@ }, "parameters": [ { - "id": 432, + "id": 431, "name": "signal", "kind": 32768, "kindString": "Parameter", @@ -2680,31 +2654,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -2712,19 +2686,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 551, + "id": 550, "name": "default.abortSignal" } } ], "inheritedFrom": { "type": "reference", - "id": 550, + "id": 549, "name": "default.abortSignal" } }, { - "id": 274, + "id": 273, "name": "containedBy", "kind": 2048, "kindString": "Method", @@ -2738,7 +2712,7 @@ ], "signatures": [ { - "id": 275, + "id": 274, "name": "containedBy", "kind": 4096, "kindString": "Call signature", @@ -2748,7 +2722,7 @@ }, "typeParameter": [ { - "id": 276, + "id": 275, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -2761,7 +2735,7 @@ ], "parameters": [ { - "id": 277, + "id": 276, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -2771,12 +2745,12 @@ }, "type": { "type": "reference", - "id": 276, + "id": 275, "name": "ColumnName" } }, { - "id": 278, + "id": 277, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -2816,12 +2790,12 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 276, + "id": 275, "name": "ColumnName" }, "objectType": { "type": "reference", - "id": 148, + "id": 147, "name": "Row" } } @@ -2833,31 +2807,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -2865,7 +2839,7 @@ } }, { - "id": 279, + "id": 278, "name": "containedBy", "kind": 4096, "kindString": "Call signature", @@ -2875,7 +2849,7 @@ }, "parameters": [ { - "id": 280, + "id": 279, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -2889,7 +2863,7 @@ } }, { - "id": 281, + "id": 280, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -2937,31 +2911,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -2971,7 +2945,7 @@ ] }, { - "id": 266, + "id": 265, "name": "contains", "kind": 2048, "kindString": "Method", @@ -2985,7 +2959,7 @@ ], "signatures": [ { - "id": 267, + "id": 266, "name": "contains", "kind": 4096, "kindString": "Call signature", @@ -2995,7 +2969,7 @@ }, "typeParameter": [ { - "id": 268, + "id": 267, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -3008,7 +2982,7 @@ ], "parameters": [ { - "id": 269, + "id": 268, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -3018,12 +2992,12 @@ }, "type": { "type": "reference", - "id": 268, + "id": 267, "name": "ColumnName" } }, { - "id": 270, + "id": 269, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -3063,12 +3037,12 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 268, + "id": 267, "name": "ColumnName" }, "objectType": { "type": "reference", - "id": 148, + "id": 147, "name": "Row" } } @@ -3080,31 +3054,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -3112,7 +3086,7 @@ } }, { - "id": 271, + "id": 270, "name": "contains", "kind": 4096, "kindString": "Call signature", @@ -3122,7 +3096,7 @@ }, "parameters": [ { - "id": 272, + "id": 271, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -3136,7 +3110,7 @@ } }, { - "id": 273, + "id": 272, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -3184,31 +3158,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -3218,7 +3192,7 @@ ] }, { - "id": 439, + "id": 438, "name": "csv", "kind": 2048, "kindString": "Method", @@ -3232,7 +3206,7 @@ ], "signatures": [ { - "id": 440, + "id": 439, "name": "csv", "kind": 4096, "kindString": "Call signature", @@ -3242,7 +3216,7 @@ }, "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "intrinsic", @@ -3253,19 +3227,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 560, + "id": 559, "name": "default.csv" } } ], "inheritedFrom": { "type": "reference", - "id": 559, + "id": 558, "name": "default.csv" } }, { - "id": 153, + "id": 152, "name": "eq", "kind": 2048, "kindString": "Method", @@ -3279,7 +3253,7 @@ ], "signatures": [ { - "id": 154, + "id": 153, "name": "eq", "kind": 4096, "kindString": "Call signature", @@ -3290,7 +3264,7 @@ }, "typeParameter": [ { - "id": 155, + "id": 154, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -3303,7 +3277,7 @@ ], "parameters": [ { - "id": 156, + "id": 155, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -3313,12 +3287,12 @@ }, "type": { "type": "reference", - "id": 155, + "id": 154, "name": "ColumnName" } }, { - "id": 157, + "id": 156, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -3333,12 +3307,12 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 155, + "id": 154, "name": "ColumnName" }, "objectType": { "type": "reference", - "id": 148, + "id": 147, "name": "Row" } } @@ -3351,31 +3325,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -3383,7 +3357,7 @@ } }, { - "id": 158, + "id": 157, "name": "eq", "kind": 4096, "kindString": "Call signature", @@ -3394,7 +3368,7 @@ }, "typeParameter": [ { - "id": 159, + "id": 158, "name": "Value", "kind": 131072, "kindString": "Type parameter", @@ -3407,7 +3381,7 @@ ], "parameters": [ { - "id": 160, + "id": 159, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -3421,7 +3395,7 @@ } }, { - "id": 161, + "id": 160, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -3434,7 +3408,7 @@ "typeArguments": [ { "type": "reference", - "id": 159, + "id": 158, "name": "Value" } ], @@ -3446,31 +3420,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -3480,7 +3454,7 @@ ] }, { - "id": 443, + "id": 442, "name": "explain", "kind": 2048, "kindString": "Method", @@ -3488,23 +3462,24 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 255, + "line": 259, "character": 2 } ], "signatures": [ { - "id": 444, + "id": 443, "name": "explain", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Return `data` as the EXPLAIN plan for the query." + "shortText": "Return `data` as the EXPLAIN plan for the query.", + "text": "You need to enable the\n[db_plan_enabled](https://supabase.com/docs/guides/database/debugging-performance#enabling-explain)\nsetting before using this method.\n" }, "parameters": [ { - "id": 445, + "id": 444, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -3516,14 +3491,14 @@ "type": { "type": "reflection", "declaration": { - "id": 446, + "id": 445, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 447, + "id": 446, "name": "analyze", "kind": 1024, "kindString": "Property", @@ -3536,7 +3511,7 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 263, + "line": 267, "character": 4 } ], @@ -3546,7 +3521,7 @@ } }, { - "id": 450, + "id": 449, "name": "buffers", "kind": 1024, "kindString": "Property", @@ -3559,7 +3534,7 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 266, + "line": 270, "character": 4 } ], @@ -3569,7 +3544,7 @@ } }, { - "id": 452, + "id": 451, "name": "format", "kind": 1024, "kindString": "Property", @@ -3582,7 +3557,7 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 268, + "line": 272, "character": 4 } ], @@ -3601,7 +3576,7 @@ } }, { - "id": 449, + "id": 448, "name": "settings", "kind": 1024, "kindString": "Property", @@ -3614,7 +3589,7 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 265, + "line": 269, "character": 4 } ], @@ -3624,7 +3599,7 @@ } }, { - "id": 448, + "id": 447, "name": "verbose", "kind": 1024, "kindString": "Property", @@ -3637,7 +3612,7 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 264, + "line": 268, "character": 4 } ], @@ -3647,7 +3622,7 @@ } }, { - "id": 451, + "id": 450, "name": "wal", "kind": 1024, "kindString": "Property", @@ -3660,7 +3635,7 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 267, + "line": 271, "character": 4 } ], @@ -3675,12 +3650,12 @@ "title": "Properties", "kind": 1024, "children": [ - 447, - 450, - 452, + 446, 449, + 451, 448, - 451 + 447, + 450 ] } ] @@ -3694,7 +3669,7 @@ "types": [ { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "intrinsic", @@ -3705,7 +3680,7 @@ }, { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "array", @@ -3733,19 +3708,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 564, + "id": 563, "name": "default.explain" } } ], "inheritedFrom": { "type": "reference", - "id": 563, + "id": 562, "name": "default.explain" } }, { - "id": 369, + "id": 368, "name": "filter", "kind": 2048, "kindString": "Method", @@ -3759,7 +3734,7 @@ ], "signatures": [ { - "id": 370, + "id": 369, "name": "filter", "kind": 4096, "kindString": "Call signature", @@ -3770,7 +3745,7 @@ }, "typeParameter": [ { - "id": 371, + "id": 370, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -3783,7 +3758,7 @@ ], "parameters": [ { - "id": 372, + "id": 371, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -3793,12 +3768,12 @@ }, "type": { "type": "reference", - "id": 371, + "id": 370, "name": "ColumnName" } }, { - "id": 373, + "id": 372, "name": "operator", "kind": 32768, "kindString": "Parameter", @@ -3905,7 +3880,7 @@ } }, { - "id": 374, + "id": 373, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -3921,31 +3896,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -3953,7 +3928,7 @@ } }, { - "id": 375, + "id": 374, "name": "filter", "kind": 4096, "kindString": "Call signature", @@ -3964,7 +3939,7 @@ }, "parameters": [ { - "id": 376, + "id": 375, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -3978,7 +3953,7 @@ } }, { - "id": 377, + "id": 376, "name": "operator", "kind": 32768, "kindString": "Parameter", @@ -3992,7 +3967,7 @@ } }, { - "id": 378, + "id": 377, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -4008,31 +3983,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -4042,7 +4017,7 @@ ] }, { - "id": 441, + "id": 440, "name": "geojson", "kind": 2048, "kindString": "Method", @@ -4056,7 +4031,7 @@ ], "signatures": [ { - "id": 442, + "id": 441, "name": "geojson", "kind": 4096, "kindString": "Call signature", @@ -4066,7 +4041,7 @@ }, "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "reference", @@ -4089,19 +4064,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 562, + "id": 561, "name": "default.geojson" } } ], "inheritedFrom": { "type": "reference", - "id": 561, + "id": 560, "name": "default.geojson" } }, { - "id": 170, + "id": 169, "name": "gt", "kind": 2048, "kindString": "Method", @@ -4115,7 +4090,7 @@ ], "signatures": [ { - "id": 171, + "id": 170, "name": "gt", "kind": 4096, "kindString": "Call signature", @@ -4125,7 +4100,7 @@ }, "typeParameter": [ { - "id": 172, + "id": 171, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -4138,7 +4113,7 @@ ], "parameters": [ { - "id": 173, + "id": 172, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -4148,12 +4123,12 @@ }, "type": { "type": "reference", - "id": 172, + "id": 171, "name": "ColumnName" } }, { - "id": 174, + "id": 173, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -4165,12 +4140,12 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 172, + "id": 171, "name": "ColumnName" }, "objectType": { "type": "reference", - "id": 148, + "id": 147, "name": "Row" } } @@ -4178,31 +4153,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -4210,7 +4185,7 @@ } }, { - "id": 175, + "id": 174, "name": "gt", "kind": 4096, "kindString": "Call signature", @@ -4220,7 +4195,7 @@ }, "parameters": [ { - "id": 176, + "id": 175, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -4234,7 +4209,7 @@ } }, { - "id": 177, + "id": 176, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -4250,31 +4225,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -4284,7 +4259,7 @@ ] }, { - "id": 178, + "id": 177, "name": "gte", "kind": 2048, "kindString": "Method", @@ -4298,7 +4273,7 @@ ], "signatures": [ { - "id": 179, + "id": 178, "name": "gte", "kind": 4096, "kindString": "Call signature", @@ -4308,7 +4283,7 @@ }, "typeParameter": [ { - "id": 180, + "id": 179, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -4321,7 +4296,7 @@ ], "parameters": [ { - "id": 181, + "id": 180, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -4331,12 +4306,12 @@ }, "type": { "type": "reference", - "id": 180, + "id": 179, "name": "ColumnName" } }, { - "id": 182, + "id": 181, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -4348,12 +4323,12 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 180, + "id": 179, "name": "ColumnName" }, "objectType": { "type": "reference", - "id": 148, + "id": 147, "name": "Row" } } @@ -4361,31 +4336,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -4393,7 +4368,7 @@ } }, { - "id": 183, + "id": 182, "name": "gte", "kind": 4096, "kindString": "Call signature", @@ -4403,7 +4378,7 @@ }, "parameters": [ { - "id": 184, + "id": 183, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -4417,7 +4392,7 @@ } }, { - "id": 185, + "id": 184, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -4433,31 +4408,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -4467,7 +4442,7 @@ ] }, { - "id": 226, + "id": 225, "name": "ilike", "kind": 2048, "kindString": "Method", @@ -4481,7 +4456,7 @@ ], "signatures": [ { - "id": 227, + "id": 226, "name": "ilike", "kind": 4096, "kindString": "Call signature", @@ -4491,7 +4466,7 @@ }, "typeParameter": [ { - "id": 228, + "id": 227, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -4504,7 +4479,7 @@ ], "parameters": [ { - "id": 229, + "id": 228, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -4514,12 +4489,12 @@ }, "type": { "type": "reference", - "id": 228, + "id": 227, "name": "ColumnName" } }, { - "id": 230, + "id": 229, "name": "pattern", "kind": 32768, "kindString": "Parameter", @@ -4535,31 +4510,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -4567,7 +4542,7 @@ } }, { - "id": 231, + "id": 230, "name": "ilike", "kind": 4096, "kindString": "Call signature", @@ -4577,7 +4552,7 @@ }, "parameters": [ { - "id": 232, + "id": 231, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -4591,7 +4566,7 @@ } }, { - "id": 233, + "id": 232, "name": "pattern", "kind": 32768, "kindString": "Parameter", @@ -4607,31 +4582,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -4641,7 +4616,7 @@ ] }, { - "id": 234, + "id": 233, "name": "ilikeAllOf", "kind": 2048, "kindString": "Method", @@ -4655,7 +4630,7 @@ ], "signatures": [ { - "id": 235, + "id": 234, "name": "ilikeAllOf", "kind": 4096, "kindString": "Call signature", @@ -4665,7 +4640,7 @@ }, "typeParameter": [ { - "id": 236, + "id": 235, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -4678,7 +4653,7 @@ ], "parameters": [ { - "id": 237, + "id": 236, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -4688,12 +4663,12 @@ }, "type": { "type": "reference", - "id": 236, + "id": 235, "name": "ColumnName" } }, { - "id": 238, + "id": 237, "name": "patterns", "kind": 32768, "kindString": "Parameter", @@ -4716,31 +4691,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -4748,7 +4723,7 @@ } }, { - "id": 239, + "id": 238, "name": "ilikeAllOf", "kind": 4096, "kindString": "Call signature", @@ -4758,7 +4733,7 @@ }, "parameters": [ { - "id": 240, + "id": 239, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -4772,7 +4747,7 @@ } }, { - "id": 241, + "id": 240, "name": "patterns", "kind": 32768, "kindString": "Parameter", @@ -4795,31 +4770,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -4829,7 +4804,7 @@ ] }, { - "id": 242, + "id": 241, "name": "ilikeAnyOf", "kind": 2048, "kindString": "Method", @@ -4843,7 +4818,7 @@ ], "signatures": [ { - "id": 243, + "id": 242, "name": "ilikeAnyOf", "kind": 4096, "kindString": "Call signature", @@ -4853,7 +4828,7 @@ }, "typeParameter": [ { - "id": 244, + "id": 243, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -4866,7 +4841,7 @@ ], "parameters": [ { - "id": 245, + "id": 244, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -4876,12 +4851,12 @@ }, "type": { "type": "reference", - "id": 244, + "id": 243, "name": "ColumnName" } }, { - "id": 246, + "id": 245, "name": "patterns", "kind": 32768, "kindString": "Parameter", @@ -4904,31 +4879,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -4936,7 +4911,7 @@ } }, { - "id": 247, + "id": 246, "name": "ilikeAnyOf", "kind": 4096, "kindString": "Call signature", @@ -4946,7 +4921,7 @@ }, "parameters": [ { - "id": 248, + "id": 247, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -4960,7 +4935,7 @@ } }, { - "id": 249, + "id": 248, "name": "patterns", "kind": 32768, "kindString": "Parameter", @@ -4983,31 +4958,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -5017,7 +4992,7 @@ ] }, { - "id": 258, + "id": 257, "name": "in", "kind": 2048, "kindString": "Method", @@ -5031,7 +5006,7 @@ ], "signatures": [ { - "id": 259, + "id": 258, "name": "in", "kind": 4096, "kindString": "Call signature", @@ -5041,7 +5016,7 @@ }, "typeParameter": [ { - "id": 260, + "id": 259, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -5054,7 +5029,7 @@ ], "parameters": [ { - "id": 261, + "id": 260, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -5064,12 +5039,12 @@ }, "type": { "type": "reference", - "id": 260, + "id": 259, "name": "ColumnName" } }, { - "id": 262, + "id": 261, "name": "values", "kind": 32768, "kindString": "Parameter", @@ -5086,12 +5061,12 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 260, + "id": 259, "name": "ColumnName" }, "objectType": { "type": "reference", - "id": 148, + "id": 147, "name": "Row" } } @@ -5101,31 +5076,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -5133,7 +5108,7 @@ } }, { - "id": 263, + "id": 262, "name": "in", "kind": 4096, "kindString": "Call signature", @@ -5143,7 +5118,7 @@ }, "parameters": [ { - "id": 264, + "id": 263, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -5157,7 +5132,7 @@ } }, { - "id": 265, + "id": 264, "name": "values", "kind": 32768, "kindString": "Parameter", @@ -5180,31 +5155,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -5214,7 +5189,7 @@ ] }, { - "id": 250, + "id": 249, "name": "is", "kind": 2048, "kindString": "Method", @@ -5228,7 +5203,7 @@ ], "signatures": [ { - "id": 251, + "id": 250, "name": "is", "kind": 4096, "kindString": "Call signature", @@ -5239,7 +5214,7 @@ }, "typeParameter": [ { - "id": 252, + "id": 251, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -5252,7 +5227,7 @@ ], "parameters": [ { - "id": 253, + "id": 252, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -5262,12 +5237,12 @@ }, "type": { "type": "reference", - "id": 252, + "id": 251, "name": "ColumnName" } }, { - "id": 254, + "id": 253, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -5285,12 +5260,12 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 252, + "id": 251, "name": "ColumnName" }, "objectType": { "type": "reference", - "id": 148, + "id": 147, "name": "Row" } }, @@ -5307,12 +5282,12 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 252, + "id": 251, "name": "ColumnName" }, "objectType": { "type": "reference", - "id": 148, + "id": 147, "name": "Row" } }, @@ -5329,12 +5304,12 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 252, + "id": 251, "name": "ColumnName" }, "objectType": { "type": "reference", - "id": 148, + "id": 147, "name": "Row" } }, @@ -5350,31 +5325,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -5382,7 +5357,7 @@ } }, { - "id": 255, + "id": 254, "name": "is", "kind": 4096, "kindString": "Call signature", @@ -5393,7 +5368,7 @@ }, "parameters": [ { - "id": 256, + "id": 255, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -5407,7 +5382,7 @@ } }, { - "id": 257, + "id": 256, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -5432,31 +5407,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -5466,7 +5441,7 @@ ] }, { - "id": 202, + "id": 201, "name": "like", "kind": 2048, "kindString": "Method", @@ -5480,7 +5455,7 @@ ], "signatures": [ { - "id": 203, + "id": 202, "name": "like", "kind": 4096, "kindString": "Call signature", @@ -5490,7 +5465,7 @@ }, "typeParameter": [ { - "id": 204, + "id": 203, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -5503,7 +5478,7 @@ ], "parameters": [ { - "id": 205, + "id": 204, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -5513,12 +5488,12 @@ }, "type": { "type": "reference", - "id": 204, + "id": 203, "name": "ColumnName" } }, { - "id": 206, + "id": 205, "name": "pattern", "kind": 32768, "kindString": "Parameter", @@ -5534,31 +5509,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -5566,7 +5541,7 @@ } }, { - "id": 207, + "id": 206, "name": "like", "kind": 4096, "kindString": "Call signature", @@ -5576,7 +5551,7 @@ }, "parameters": [ { - "id": 208, + "id": 207, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -5590,7 +5565,7 @@ } }, { - "id": 209, + "id": 208, "name": "pattern", "kind": 32768, "kindString": "Parameter", @@ -5606,31 +5581,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -5640,7 +5615,7 @@ ] }, { - "id": 210, + "id": 209, "name": "likeAllOf", "kind": 2048, "kindString": "Method", @@ -5654,7 +5629,7 @@ ], "signatures": [ { - "id": 211, + "id": 210, "name": "likeAllOf", "kind": 4096, "kindString": "Call signature", @@ -5664,7 +5639,7 @@ }, "typeParameter": [ { - "id": 212, + "id": 211, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -5677,7 +5652,7 @@ ], "parameters": [ { - "id": 213, + "id": 212, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -5687,12 +5662,12 @@ }, "type": { "type": "reference", - "id": 212, + "id": 211, "name": "ColumnName" } }, { - "id": 214, + "id": 213, "name": "patterns", "kind": 32768, "kindString": "Parameter", @@ -5715,31 +5690,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -5747,7 +5722,7 @@ } }, { - "id": 215, + "id": 214, "name": "likeAllOf", "kind": 4096, "kindString": "Call signature", @@ -5757,7 +5732,7 @@ }, "parameters": [ { - "id": 216, + "id": 215, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -5771,7 +5746,7 @@ } }, { - "id": 217, + "id": 216, "name": "patterns", "kind": 32768, "kindString": "Parameter", @@ -5794,31 +5769,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -5828,7 +5803,7 @@ ] }, { - "id": 218, + "id": 217, "name": "likeAnyOf", "kind": 2048, "kindString": "Method", @@ -5842,7 +5817,7 @@ ], "signatures": [ { - "id": 219, + "id": 218, "name": "likeAnyOf", "kind": 4096, "kindString": "Call signature", @@ -5852,7 +5827,7 @@ }, "typeParameter": [ { - "id": 220, + "id": 219, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -5865,7 +5840,7 @@ ], "parameters": [ { - "id": 221, + "id": 220, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -5875,12 +5850,12 @@ }, "type": { "type": "reference", - "id": 220, + "id": 219, "name": "ColumnName" } }, { - "id": 222, + "id": 221, "name": "patterns", "kind": 32768, "kindString": "Parameter", @@ -5903,31 +5878,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -5935,7 +5910,7 @@ } }, { - "id": 223, + "id": 222, "name": "likeAnyOf", "kind": 4096, "kindString": "Call signature", @@ -5945,7 +5920,7 @@ }, "parameters": [ { - "id": 224, + "id": 223, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -5959,7 +5934,7 @@ } }, { - "id": 225, + "id": 224, "name": "patterns", "kind": 32768, "kindString": "Parameter", @@ -5982,31 +5957,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -6016,7 +5991,7 @@ ] }, { - "id": 415, + "id": 414, "name": "limit", "kind": 2048, "kindString": "Method", @@ -6030,7 +6005,7 @@ ], "signatures": [ { - "id": 416, + "id": 415, "name": "limit", "kind": 4096, "kindString": "Call signature", @@ -6040,7 +6015,7 @@ }, "parameters": [ { - "id": 417, + "id": 416, "name": "count", "kind": 32768, "kindString": "Parameter", @@ -6054,7 +6029,7 @@ } }, { - "id": 418, + "id": 417, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -6066,14 +6041,14 @@ "type": { "type": "reflection", "declaration": { - "id": 419, + "id": 418, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 420, + "id": 419, "name": "foreignTable", "kind": 1024, "kindString": "Property", @@ -6096,7 +6071,7 @@ } }, { - "id": 421, + "id": 420, "name": "referencedTable", "kind": 1024, "kindString": "Property", @@ -6124,8 +6099,8 @@ "title": "Properties", "kind": 1024, "children": [ - 420, - 421 + 419, + 420 ] } ] @@ -6136,31 +6111,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -6168,19 +6143,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 536, + "id": 535, "name": "default.limit" } } ], "inheritedFrom": { "type": "reference", - "id": 535, + "id": 534, "name": "default.limit" } }, { - "id": 186, + "id": 185, "name": "lt", "kind": 2048, "kindString": "Method", @@ -6194,7 +6169,7 @@ ], "signatures": [ { - "id": 187, + "id": 186, "name": "lt", "kind": 4096, "kindString": "Call signature", @@ -6204,7 +6179,7 @@ }, "typeParameter": [ { - "id": 188, + "id": 187, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -6217,7 +6192,7 @@ ], "parameters": [ { - "id": 189, + "id": 188, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -6227,12 +6202,12 @@ }, "type": { "type": "reference", - "id": 188, + "id": 187, "name": "ColumnName" } }, { - "id": 190, + "id": 189, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -6244,12 +6219,12 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 188, + "id": 187, "name": "ColumnName" }, "objectType": { "type": "reference", - "id": 148, + "id": 147, "name": "Row" } } @@ -6257,31 +6232,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -6289,7 +6264,7 @@ } }, { - "id": 191, + "id": 190, "name": "lt", "kind": 4096, "kindString": "Call signature", @@ -6299,7 +6274,7 @@ }, "parameters": [ { - "id": 192, + "id": 191, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -6313,7 +6288,7 @@ } }, { - "id": 193, + "id": 192, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -6329,31 +6304,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -6363,7 +6338,7 @@ ] }, { - "id": 194, + "id": 193, "name": "lte", "kind": 2048, "kindString": "Method", @@ -6377,7 +6352,7 @@ ], "signatures": [ { - "id": 195, + "id": 194, "name": "lte", "kind": 4096, "kindString": "Call signature", @@ -6387,7 +6362,7 @@ }, "typeParameter": [ { - "id": 196, + "id": 195, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -6400,7 +6375,7 @@ ], "parameters": [ { - "id": 197, + "id": 196, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -6410,12 +6385,12 @@ }, "type": { "type": "reference", - "id": 196, + "id": 195, "name": "ColumnName" } }, { - "id": 198, + "id": 197, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -6427,12 +6402,12 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 196, + "id": 195, "name": "ColumnName" }, "objectType": { "type": "reference", - "id": 148, + "id": 147, "name": "Row" } } @@ -6440,31 +6415,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -6472,7 +6447,7 @@ } }, { - "id": 199, + "id": 198, "name": "lte", "kind": 4096, "kindString": "Call signature", @@ -6482,7 +6457,7 @@ }, "parameters": [ { - "id": 200, + "id": 199, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -6496,7 +6471,7 @@ } }, { - "id": 201, + "id": 200, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -6512,31 +6487,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -6546,7 +6521,7 @@ ] }, { - "id": 346, + "id": 345, "name": "match", "kind": 2048, "kindString": "Method", @@ -6560,7 +6535,7 @@ ], "signatures": [ { - "id": 347, + "id": 346, "name": "match", "kind": 4096, "kindString": "Call signature", @@ -6570,7 +6545,7 @@ }, "typeParameter": [ { - "id": 348, + "id": 347, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -6583,7 +6558,7 @@ ], "parameters": [ { - "id": 349, + "id": 348, "name": "query", "kind": 32768, "kindString": "Parameter", @@ -6596,19 +6571,19 @@ "typeArguments": [ { "type": "reference", - "id": 348, + "id": 347, "name": "ColumnName" }, { "type": "indexedAccess", "indexType": { "type": "reference", - "id": 348, + "id": 347, "name": "ColumnName" }, "objectType": { "type": "reference", - "id": 148, + "id": 147, "name": "Row" } } @@ -6621,31 +6596,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -6653,7 +6628,7 @@ } }, { - "id": 350, + "id": 349, "name": "match", "kind": 4096, "kindString": "Call signature", @@ -6663,7 +6638,7 @@ }, "parameters": [ { - "id": 351, + "id": 350, "name": "query", "kind": 32768, "kindString": "Parameter", @@ -6691,31 +6666,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -6725,7 +6700,7 @@ ] }, { - "id": 436, + "id": 435, "name": "maybeSingle", "kind": 2048, "kindString": "Method", @@ -6739,7 +6714,7 @@ ], "signatures": [ { - "id": 437, + "id": 436, "name": "maybeSingle", "kind": 4096, "kindString": "Call signature", @@ -6750,7 +6725,7 @@ }, "typeParameter": [ { - "id": 438, + "id": 437, "name": "ResultOne", "kind": 131072, "kindString": "Type parameter", @@ -6759,7 +6734,7 @@ "type": "conditional", "checkType": { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, "extendsType": { @@ -6782,7 +6757,7 @@ ], "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "union", @@ -6793,7 +6768,7 @@ }, { "type": "reference", - "id": 438, + "id": 437, "name": "ResultOne" } ] @@ -6803,19 +6778,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 557, + "id": 556, "name": "default.maybeSingle" } } ], "inheritedFrom": { "type": "reference", - "id": 556, + "id": 555, "name": "default.maybeSingle" } }, { - "id": 162, + "id": 161, "name": "neq", "kind": 2048, "kindString": "Method", @@ -6829,7 +6804,7 @@ ], "signatures": [ { - "id": 163, + "id": 162, "name": "neq", "kind": 4096, "kindString": "Call signature", @@ -6839,7 +6814,7 @@ }, "typeParameter": [ { - "id": 164, + "id": 163, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -6852,7 +6827,7 @@ ], "parameters": [ { - "id": 165, + "id": 164, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -6862,12 +6837,12 @@ }, "type": { "type": "reference", - "id": 164, + "id": 163, "name": "ColumnName" } }, { - "id": 166, + "id": 165, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -6879,12 +6854,12 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 164, + "id": 163, "name": "ColumnName" }, "objectType": { "type": "reference", - "id": 148, + "id": 147, "name": "Row" } } @@ -6892,31 +6867,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -6924,7 +6899,7 @@ } }, { - "id": 167, + "id": 166, "name": "neq", "kind": 4096, "kindString": "Call signature", @@ -6934,7 +6909,7 @@ }, "parameters": [ { - "id": 168, + "id": 167, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -6948,7 +6923,7 @@ } }, { - "id": 169, + "id": 168, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -6964,31 +6939,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -6998,7 +6973,7 @@ ] }, { - "id": 352, + "id": 351, "name": "not", "kind": 2048, "kindString": "Method", @@ -7012,7 +6987,7 @@ ], "signatures": [ { - "id": 353, + "id": 352, "name": "not", "kind": 4096, "kindString": "Call signature", @@ -7023,7 +6998,7 @@ }, "typeParameter": [ { - "id": 354, + "id": 353, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -7036,7 +7011,7 @@ ], "parameters": [ { - "id": 355, + "id": 354, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -7046,12 +7021,12 @@ }, "type": { "type": "reference", - "id": 354, + "id": 353, "name": "ColumnName" } }, { - "id": 356, + "id": 355, "name": "operator", "kind": 32768, "kindString": "Parameter", @@ -7065,7 +7040,7 @@ } }, { - "id": 357, + "id": 356, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -7077,12 +7052,12 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 354, + "id": 353, "name": "ColumnName" }, "objectType": { "type": "reference", - "id": 148, + "id": 147, "name": "Row" } } @@ -7090,31 +7065,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -7122,7 +7097,7 @@ } }, { - "id": 358, + "id": 357, "name": "not", "kind": 4096, "kindString": "Call signature", @@ -7133,7 +7108,7 @@ }, "parameters": [ { - "id": 359, + "id": 358, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -7147,7 +7122,7 @@ } }, { - "id": 360, + "id": 359, "name": "operator", "kind": 32768, "kindString": "Parameter", @@ -7161,7 +7136,7 @@ } }, { - "id": 361, + "id": 360, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -7177,31 +7152,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -7211,7 +7186,7 @@ ] }, { - "id": 362, + "id": 361, "name": "or", "kind": 2048, "kindString": "Method", @@ -7225,7 +7200,7 @@ ], "signatures": [ { - "id": 363, + "id": 362, "name": "or", "kind": 4096, "kindString": "Call signature", @@ -7236,7 +7211,7 @@ }, "parameters": [ { - "id": 364, + "id": 363, "name": "filters", "kind": 32768, "kindString": "Parameter", @@ -7250,7 +7225,7 @@ } }, { - "id": 365, + "id": 364, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -7262,14 +7237,14 @@ "type": { "type": "reflection", "declaration": { - "id": 366, + "id": 365, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 367, + "id": 366, "name": "foreignTable", "kind": 1024, "kindString": "Property", @@ -7292,7 +7267,7 @@ } }, { - "id": 368, + "id": 367, "name": "referencedTable", "kind": 1024, "kindString": "Property", @@ -7320,8 +7295,8 @@ "title": "Properties", "kind": 1024, "children": [ - 367, - 368 + 366, + 367 ] } ] @@ -7332,31 +7307,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -7366,7 +7341,7 @@ ] }, { - "id": 384, + "id": 383, "name": "order", "kind": 2048, "kindString": "Method", @@ -7380,7 +7355,7 @@ ], "signatures": [ { - "id": 385, + "id": 384, "name": "order", "kind": 4096, "kindString": "Call signature", @@ -7391,7 +7366,7 @@ }, "typeParameter": [ { - "id": 386, + "id": 385, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -7404,7 +7379,7 @@ ], "parameters": [ { - "id": 387, + "id": 386, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -7414,12 +7389,12 @@ }, "type": { "type": "reference", - "id": 386, + "id": 385, "name": "ColumnName" } }, { - "id": 388, + "id": 387, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -7432,14 +7407,14 @@ "type": { "type": "reflection", "declaration": { - "id": 389, + "id": 388, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 390, + "id": 389, "name": "ascending", "kind": 1024, "kindString": "Property", @@ -7461,31 +7436,31 @@ "name": "boolean" } }, + { + "id": 390, + "name": "nullsFirst", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "If `true`, `null`s appear first. If `false`,\n`null`s appear last." + }, + "sources": [ + { + "fileName": "src/PostgrestTransformBuilder.ts", + "line": 57, + "character": 37 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, { "id": 391, - "name": "nullsFirst", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "If `true`, `null`s appear first. If `false`,\n`null`s appear last." - }, - "sources": [ - { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 57, - "character": 37 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 392, "name": "referencedTable", "kind": 1024, "kindString": "Property", @@ -7513,9 +7488,9 @@ "title": "Properties", "kind": 1024, "children": [ + 389, 390, - 391, - 392 + 391 ] } ] @@ -7525,31 +7500,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -7557,12 +7532,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 505, + "id": 504, "name": "default.order" } }, { - "id": 393, + "id": 392, "name": "order", "kind": 4096, "kindString": "Call signature", @@ -7573,7 +7548,7 @@ }, "parameters": [ { - "id": 394, + "id": 393, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -7587,7 +7562,7 @@ } }, { - "id": 395, + "id": 394, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -7600,14 +7575,14 @@ "type": { "type": "reflection", "declaration": { - "id": 396, + "id": 395, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 397, + "id": 396, "name": "ascending", "kind": 1024, "kindString": "Property", @@ -7630,7 +7605,7 @@ } }, { - "id": 398, + "id": 397, "name": "nullsFirst", "kind": 1024, "kindString": "Property", @@ -7653,7 +7628,7 @@ } }, { - "id": 399, + "id": 398, "name": "referencedTable", "kind": 1024, "kindString": "Property", @@ -7681,9 +7656,9 @@ "title": "Properties", "kind": 1024, "children": [ + 396, 397, - 398, - 399 + 398 ] } ] @@ -7693,31 +7668,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -7725,12 +7700,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 513, + "id": 512, "name": "default.order" } }, { - "id": 400, + "id": 399, "name": "order", "kind": 4096, "kindString": "Call signature", @@ -7747,7 +7722,7 @@ }, "typeParameter": [ { - "id": 401, + "id": 400, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -7760,7 +7735,7 @@ ], "parameters": [ { - "id": 402, + "id": 401, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -7770,12 +7745,12 @@ }, "type": { "type": "reference", - "id": 401, + "id": 400, "name": "ColumnName" } }, { - "id": 403, + "id": 402, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -7788,14 +7763,14 @@ "type": { "type": "reflection", "declaration": { - "id": 404, + "id": 403, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 405, + "id": 404, "name": "ascending", "kind": 1024, "kindString": "Property", @@ -7815,7 +7790,7 @@ } }, { - "id": 407, + "id": 406, "name": "foreignTable", "kind": 1024, "kindString": "Property", @@ -7835,7 +7810,7 @@ } }, { - "id": 406, + "id": 405, "name": "nullsFirst", "kind": 1024, "kindString": "Property", @@ -7860,9 +7835,9 @@ "title": "Properties", "kind": 1024, "children": [ - 405, - 407, - 406 + 404, + 406, + 405 ] } ] @@ -7872,31 +7847,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -7904,12 +7879,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 520, + "id": 519, "name": "default.order" } }, { - "id": 408, + "id": 407, "name": "order", "kind": 4096, "kindString": "Call signature", @@ -7926,7 +7901,7 @@ }, "parameters": [ { - "id": 409, + "id": 408, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -7940,7 +7915,7 @@ } }, { - "id": 410, + "id": 409, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -7953,14 +7928,14 @@ "type": { "type": "reflection", "declaration": { - "id": 411, + "id": 410, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 412, + "id": 411, "name": "ascending", "kind": 1024, "kindString": "Property", @@ -7980,7 +7955,7 @@ } }, { - "id": 414, + "id": 413, "name": "foreignTable", "kind": 1024, "kindString": "Property", @@ -8000,7 +7975,7 @@ } }, { - "id": 413, + "id": 412, "name": "nullsFirst", "kind": 1024, "kindString": "Property", @@ -8025,9 +8000,9 @@ "title": "Properties", "kind": 1024, "children": [ - 412, - 414, - 413 + 411, + 413, + 412 ] } ] @@ -8037,31 +8012,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -8069,19 +8044,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 528, + "id": 527, "name": "default.order" } } ], "inheritedFrom": { "type": "reference", - "id": 504, + "id": 503, "name": "default.order" } }, { - "id": 322, + "id": 321, "name": "overlaps", "kind": 2048, "kindString": "Method", @@ -8095,7 +8070,7 @@ ], "signatures": [ { - "id": 323, + "id": 322, "name": "overlaps", "kind": 4096, "kindString": "Call signature", @@ -8105,7 +8080,7 @@ }, "typeParameter": [ { - "id": 324, + "id": 323, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -8118,7 +8093,7 @@ ], "parameters": [ { - "id": 325, + "id": 324, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -8128,12 +8103,12 @@ }, "type": { "type": "reference", - "id": 324, + "id": 323, "name": "ColumnName" } }, { - "id": 326, + "id": 325, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -8157,12 +8132,12 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 324, + "id": 323, "name": "ColumnName" }, "objectType": { "type": "reference", - "id": 148, + "id": 147, "name": "Row" } } @@ -8174,31 +8149,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -8206,7 +8181,7 @@ } }, { - "id": 327, + "id": 326, "name": "overlaps", "kind": 4096, "kindString": "Call signature", @@ -8216,7 +8191,7 @@ }, "parameters": [ { - "id": 328, + "id": 327, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -8230,7 +8205,7 @@ } }, { - "id": 329, + "id": 328, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -8262,31 +8237,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -8296,7 +8271,7 @@ ] }, { - "id": 422, + "id": 421, "name": "range", "kind": 2048, "kindString": "Method", @@ -8310,7 +8285,7 @@ ], "signatures": [ { - "id": 423, + "id": 422, "name": "range", "kind": 4096, "kindString": "Call signature", @@ -8320,7 +8295,7 @@ }, "parameters": [ { - "id": 424, + "id": 423, "name": "from", "kind": 32768, "kindString": "Parameter", @@ -8334,7 +8309,7 @@ } }, { - "id": 425, + "id": 424, "name": "to", "kind": 32768, "kindString": "Parameter", @@ -8348,7 +8323,7 @@ } }, { - "id": 426, + "id": 425, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -8360,14 +8335,14 @@ "type": { "type": "reflection", "declaration": { - "id": 427, + "id": 426, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 428, + "id": 427, "name": "foreignTable", "kind": 1024, "kindString": "Property", @@ -8390,7 +8365,7 @@ } }, { - "id": 429, + "id": 428, "name": "referencedTable", "kind": 1024, "kindString": "Property", @@ -8418,8 +8393,8 @@ "title": "Properties", "kind": 1024, "children": [ - 428, - 429 + 427, + 428 ] } ] @@ -8430,31 +8405,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -8462,19 +8437,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 543, + "id": 542, "name": "default.range" } } ], "inheritedFrom": { "type": "reference", - "id": 542, + "id": 541, "name": "default.range" } }, { - "id": 314, + "id": 313, "name": "rangeAdjacent", "kind": 2048, "kindString": "Method", @@ -8488,7 +8463,7 @@ ], "signatures": [ { - "id": 315, + "id": 314, "name": "rangeAdjacent", "kind": 4096, "kindString": "Call signature", @@ -8498,7 +8473,7 @@ }, "typeParameter": [ { - "id": 316, + "id": 315, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -8511,7 +8486,7 @@ ], "parameters": [ { - "id": 317, + "id": 316, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -8521,12 +8496,12 @@ }, "type": { "type": "reference", - "id": 316, + "id": 315, "name": "ColumnName" } }, { - "id": 318, + "id": 317, "name": "range", "kind": 32768, "kindString": "Parameter", @@ -8542,31 +8517,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -8574,7 +8549,7 @@ } }, { - "id": 319, + "id": 318, "name": "rangeAdjacent", "kind": 4096, "kindString": "Call signature", @@ -8584,7 +8559,7 @@ }, "parameters": [ { - "id": 320, + "id": 319, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -8598,7 +8573,7 @@ } }, { - "id": 321, + "id": 320, "name": "range", "kind": 32768, "kindString": "Parameter", @@ -8614,31 +8589,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -8648,7 +8623,7 @@ ] }, { - "id": 282, + "id": 281, "name": "rangeGt", "kind": 2048, "kindString": "Method", @@ -8662,7 +8637,7 @@ ], "signatures": [ { - "id": 283, + "id": 282, "name": "rangeGt", "kind": 4096, "kindString": "Call signature", @@ -8672,7 +8647,7 @@ }, "typeParameter": [ { - "id": 284, + "id": 283, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -8685,7 +8660,7 @@ ], "parameters": [ { - "id": 285, + "id": 284, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -8695,12 +8670,12 @@ }, "type": { "type": "reference", - "id": 284, + "id": 283, "name": "ColumnName" } }, { - "id": 286, + "id": 285, "name": "range", "kind": 32768, "kindString": "Parameter", @@ -8716,31 +8691,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -8748,7 +8723,7 @@ } }, { - "id": 287, + "id": 286, "name": "rangeGt", "kind": 4096, "kindString": "Call signature", @@ -8758,7 +8733,7 @@ }, "parameters": [ { - "id": 288, + "id": 287, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -8772,7 +8747,7 @@ } }, { - "id": 289, + "id": 288, "name": "range", "kind": 32768, "kindString": "Parameter", @@ -8788,31 +8763,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -8822,7 +8797,7 @@ ] }, { - "id": 290, + "id": 289, "name": "rangeGte", "kind": 2048, "kindString": "Method", @@ -8836,7 +8811,7 @@ ], "signatures": [ { - "id": 291, + "id": 290, "name": "rangeGte", "kind": 4096, "kindString": "Call signature", @@ -8846,7 +8821,7 @@ }, "typeParameter": [ { - "id": 292, + "id": 291, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -8859,7 +8834,7 @@ ], "parameters": [ { - "id": 293, + "id": 292, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -8869,12 +8844,12 @@ }, "type": { "type": "reference", - "id": 292, + "id": 291, "name": "ColumnName" } }, { - "id": 294, + "id": 293, "name": "range", "kind": 32768, "kindString": "Parameter", @@ -8890,31 +8865,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -8922,7 +8897,7 @@ } }, { - "id": 295, + "id": 294, "name": "rangeGte", "kind": 4096, "kindString": "Call signature", @@ -8932,7 +8907,7 @@ }, "parameters": [ { - "id": 296, + "id": 295, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -8946,7 +8921,7 @@ } }, { - "id": 297, + "id": 296, "name": "range", "kind": 32768, "kindString": "Parameter", @@ -8962,31 +8937,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -8996,7 +8971,7 @@ ] }, { - "id": 298, + "id": 297, "name": "rangeLt", "kind": 2048, "kindString": "Method", @@ -9010,7 +8985,7 @@ ], "signatures": [ { - "id": 299, + "id": 298, "name": "rangeLt", "kind": 4096, "kindString": "Call signature", @@ -9020,7 +8995,7 @@ }, "typeParameter": [ { - "id": 300, + "id": 299, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -9033,7 +9008,7 @@ ], "parameters": [ { - "id": 301, + "id": 300, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -9043,12 +9018,12 @@ }, "type": { "type": "reference", - "id": 300, + "id": 299, "name": "ColumnName" } }, { - "id": 302, + "id": 301, "name": "range", "kind": 32768, "kindString": "Parameter", @@ -9064,31 +9039,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -9096,7 +9071,7 @@ } }, { - "id": 303, + "id": 302, "name": "rangeLt", "kind": 4096, "kindString": "Call signature", @@ -9106,7 +9081,7 @@ }, "parameters": [ { - "id": 304, + "id": 303, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -9120,7 +9095,7 @@ } }, { - "id": 305, + "id": 304, "name": "range", "kind": 32768, "kindString": "Parameter", @@ -9136,31 +9111,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -9170,7 +9145,7 @@ ] }, { - "id": 306, + "id": 305, "name": "rangeLte", "kind": 2048, "kindString": "Method", @@ -9184,7 +9159,7 @@ ], "signatures": [ { - "id": 307, + "id": 306, "name": "rangeLte", "kind": 4096, "kindString": "Call signature", @@ -9194,7 +9169,7 @@ }, "typeParameter": [ { - "id": 308, + "id": 307, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -9207,7 +9182,7 @@ ], "parameters": [ { - "id": 309, + "id": 308, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -9217,12 +9192,12 @@ }, "type": { "type": "reference", - "id": 308, + "id": 307, "name": "ColumnName" } }, { - "id": 310, + "id": 309, "name": "range", "kind": 32768, "kindString": "Parameter", @@ -9238,31 +9213,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -9270,7 +9245,7 @@ } }, { - "id": 311, + "id": 310, "name": "rangeLte", "kind": 4096, "kindString": "Call signature", @@ -9280,7 +9255,7 @@ }, "parameters": [ { - "id": 312, + "id": 311, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -9294,7 +9269,7 @@ } }, { - "id": 313, + "id": 312, "name": "range", "kind": 32768, "kindString": "Parameter", @@ -9310,31 +9285,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -9344,7 +9319,7 @@ ] }, { - "id": 455, + "id": 454, "name": "returns", "kind": 2048, "kindString": "Method", @@ -9352,13 +9327,13 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 307, + "line": 311, "character": 2 } ], "signatures": [ { - "id": 456, + "id": 455, "name": "returns", "kind": 4096, "kindString": "Call signature", @@ -9368,7 +9343,7 @@ }, "typeParameter": [ { - "id": 457, + "id": 456, "name": "NewResult", "kind": 131072, "kindString": "Type parameter", @@ -9380,31 +9355,31 @@ ], "type": { "type": "reference", - "id": 490, + "id": 489, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 457, + "id": 456, "name": "NewResult" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -9412,19 +9387,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 576, + "id": 575, "name": "default.returns" } } ], "inheritedFrom": { "type": "reference", - "id": 575, + "id": 574, "name": "default.returns" } }, { - "id": 453, + "id": 452, "name": "rollback", "kind": 2048, "kindString": "Method", @@ -9432,13 +9407,13 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 293, + "line": 297, "character": 2 } ], "signatures": [ { - "id": 454, + "id": 453, "name": "rollback", "kind": 4096, "kindString": "Call signature", @@ -9449,31 +9424,31 @@ }, "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -9481,19 +9456,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 574, + "id": 573, "name": "default.rollback" } } ], "inheritedFrom": { "type": "reference", - "id": 573, + "id": 572, "name": "default.rollback" } }, { - "id": 379, + "id": 378, "name": "select", "kind": 2048, "kindString": "Method", @@ -9507,7 +9482,7 @@ ], "signatures": [ { - "id": 380, + "id": 379, "name": "select", "kind": 4096, "kindString": "Call signature", @@ -9518,7 +9493,7 @@ }, "typeParameter": [ { - "id": 381, + "id": 380, "name": "Query", "kind": 131072, "kindString": "Type parameter", @@ -9533,7 +9508,7 @@ } }, { - "id": 382, + "id": 381, "name": "NewResultOne", "kind": 131072, "kindString": "Type parameter", @@ -9543,27 +9518,27 @@ "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" }, { "type": "reference", - "id": 381, + "id": 380, "name": "Query" } ], @@ -9573,7 +9548,7 @@ ], "parameters": [ { - "id": 383, + "id": 382, "name": "columns", "kind": 32768, "kindString": "Parameter", @@ -9585,41 +9560,41 @@ }, "type": { "type": "reference", - "id": 381, + "id": 380, "name": "Query" } } ], "type": { "type": "reference", - "id": 490, + "id": 489, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "array", "elementType": { "type": "reference", - "id": 382, + "id": 381, "name": "NewResultOne" } }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -9627,19 +9602,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 500, + "id": 499, "name": "default.select" } } ], "inheritedFrom": { "type": "reference", - "id": 499, + "id": 498, "name": "default.select" } }, { - "id": 433, + "id": 432, "name": "single", "kind": 2048, "kindString": "Method", @@ -9653,7 +9628,7 @@ ], "signatures": [ { - "id": 434, + "id": 433, "name": "single", "kind": 4096, "kindString": "Call signature", @@ -9664,7 +9639,7 @@ }, "typeParameter": [ { - "id": 435, + "id": 434, "name": "ResultOne", "kind": 131072, "kindString": "Type parameter", @@ -9673,7 +9648,7 @@ "type": "conditional", "checkType": { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, "extendsType": { @@ -9696,11 +9671,11 @@ ], "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "reference", - "id": 435, + "id": 434, "name": "ResultOne" } ], @@ -9708,19 +9683,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 554, + "id": 553, "name": "default.single" } } ], "inheritedFrom": { "type": "reference", - "id": 553, + "id": 552, "name": "default.single" } }, { - "id": 330, + "id": 329, "name": "textSearch", "kind": 2048, "kindString": "Method", @@ -9734,7 +9709,7 @@ ], "signatures": [ { - "id": 331, + "id": 330, "name": "textSearch", "kind": 4096, "kindString": "Call signature", @@ -9744,7 +9719,7 @@ }, "typeParameter": [ { - "id": 332, + "id": 331, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -9757,7 +9732,7 @@ ], "parameters": [ { - "id": 333, + "id": 332, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -9767,12 +9742,12 @@ }, "type": { "type": "reference", - "id": 332, + "id": 331, "name": "ColumnName" } }, { - "id": 334, + "id": 333, "name": "query", "kind": 32768, "kindString": "Parameter", @@ -9786,7 +9761,7 @@ } }, { - "id": 335, + "id": 334, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -9799,14 +9774,14 @@ "type": { "type": "reflection", "declaration": { - "id": 336, + "id": 335, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 337, + "id": 336, "name": "config", "kind": 1024, "kindString": "Property", @@ -9829,7 +9804,7 @@ } }, { - "id": 338, + "id": 337, "name": "type", "kind": 1024, "kindString": "Property", @@ -9870,8 +9845,8 @@ "title": "Properties", "kind": 1024, "children": [ - 337, - 338 + 336, + 337 ] } ] @@ -9881,31 +9856,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -9913,7 +9888,7 @@ } }, { - "id": 339, + "id": 338, "name": "textSearch", "kind": 4096, "kindString": "Call signature", @@ -9923,7 +9898,7 @@ }, "parameters": [ { - "id": 340, + "id": 339, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -9937,7 +9912,7 @@ } }, { - "id": 341, + "id": 340, "name": "query", "kind": 32768, "kindString": "Parameter", @@ -9951,7 +9926,7 @@ } }, { - "id": 342, + "id": 341, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -9964,14 +9939,14 @@ "type": { "type": "reflection", "declaration": { - "id": 343, + "id": 342, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 344, + "id": 343, "name": "config", "kind": 1024, "kindString": "Property", @@ -9994,7 +9969,7 @@ } }, { - "id": 345, + "id": 344, "name": "type", "kind": 1024, "kindString": "Property", @@ -10035,8 +10010,8 @@ "title": "Properties", "kind": 1024, "children": [ - 344, - 345 + 343, + 344 ] } ] @@ -10046,31 +10021,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -10080,7 +10055,7 @@ ] }, { - "id": 473, + "id": 472, "name": "then", "kind": 2048, "kindString": "Method", @@ -10088,31 +10063,31 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 49, + "line": 50, "character": 2 } ], "signatures": [ { - "id": 474, + "id": 473, "name": "then", "kind": 4096, "kindString": "Call signature", "flags": {}, "typeParameter": [ { - "id": 475, + "id": 474, "name": "TResult1", "kind": 131072, "kindString": "Type parameter", "flags": {}, "default": { "type": "reference", - "id": 658, + "id": 657, "typeArguments": [ { "type": "reference", - "id": 149, + "id": 148, "name": "Result" } ], @@ -10120,7 +10095,7 @@ } }, { - "id": 476, + "id": 475, "name": "TResult2", "kind": 131072, "kindString": "Type parameter", @@ -10133,7 +10108,7 @@ ], "parameters": [ { - "id": 477, + "id": 476, "name": "onfulfilled", "kind": 32768, "kindString": "Parameter", @@ -10150,32 +10125,32 @@ { "type": "reflection", "declaration": { - "id": 478, + "id": 477, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 479, + "id": 478, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 480, + "id": 479, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 658, + "id": 657, "typeArguments": [ { "type": "reference", - "id": 149, + "id": 148, "name": "Result" } ], @@ -10188,7 +10163,7 @@ "types": [ { "type": "reference", - "id": 475, + "id": 474, "name": "TResult1" }, { @@ -10196,7 +10171,7 @@ "typeArguments": [ { "type": "reference", - "id": 475, + "id": 474, "name": "TResult1" } ], @@ -10214,7 +10189,7 @@ } }, { - "id": 481, + "id": 480, "name": "onrejected", "kind": 32768, "kindString": "Parameter", @@ -10231,21 +10206,21 @@ { "type": "reflection", "declaration": { - "id": 482, + "id": 481, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 483, + "id": 482, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 484, + "id": 483, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -10261,7 +10236,7 @@ "types": [ { "type": "reference", - "id": 476, + "id": 475, "name": "TResult2" }, { @@ -10269,7 +10244,7 @@ "typeArguments": [ { "type": "reference", - "id": 476, + "id": 475, "name": "TResult2" } ], @@ -10295,12 +10270,12 @@ "types": [ { "type": "reference", - "id": 475, + "id": 474, "name": "TResult1" }, { "type": "reference", - "id": 476, + "id": 475, "name": "TResult2" } ] @@ -10312,19 +10287,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 594, + "id": 593, "name": "default.then" } } ], "inheritedFrom": { "type": "reference", - "id": 593, + "id": 592, "name": "default.then" } }, { - "id": 471, + "id": 470, "name": "throwOnError", "kind": 2048, "kindString": "Method", @@ -10332,13 +10307,13 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 44, + "line": 45, "character": 2 } ], "signatures": [ { - "id": 472, + "id": 471, "name": "throwOnError", "kind": 4096, "kindString": "Call signature", @@ -10349,31 +10324,31 @@ }, "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -10381,14 +10356,14 @@ }, "inheritedFrom": { "type": "reference", - "id": 592, + "id": 591, "name": "default.throwOnError" } } ], "inheritedFrom": { "type": "reference", - "id": 591, + "id": 590, "name": "default.throwOnError" } } @@ -10398,69 +10373,69 @@ "title": "Constructors", "kind": 512, "children": [ - 145 + 144 ] }, { "title": "Properties", "kind": 1024, "children": [ - 462, - 465, - 460, - 470, - 458, 461, - 463, 464, - 459 + 459, + 469, + 457, + 460, + 462, + 463, + 458 ] }, { "title": "Methods", "kind": 2048, "children": [ - 430, - 274, - 266, - 439, - 153, - 443, - 369, - 441, - 170, - 178, - 226, - 234, - 242, - 258, - 250, - 202, - 210, - 218, - 415, - 186, - 194, - 346, - 436, - 162, - 352, - 362, - 384, - 322, - 422, - 314, - 282, - 290, - 298, - 306, - 455, - 453, - 379, - 433, - 330, - 473, - 471 + 429, + 273, + 265, + 438, + 152, + 442, + 368, + 440, + 169, + 177, + 225, + 233, + 241, + 257, + 249, + 201, + 209, + 217, + 414, + 185, + 193, + 345, + 435, + 161, + 351, + 361, + 383, + 321, + 421, + 313, + 281, + 289, + 297, + 305, + 454, + 452, + 378, + 432, + 329, + 472, + 470 ] } ], @@ -10473,7 +10448,7 @@ ], "typeParameter": [ { - "id": 485, + "id": 484, "name": "Schema", "kind": 131072, "kindString": "Type parameter", @@ -10484,7 +10459,7 @@ } }, { - "id": 486, + "id": 485, "name": "Row", "kind": 131072, "kindString": "Type parameter", @@ -10507,14 +10482,14 @@ } }, { - "id": 487, + "id": 486, "name": "Result", "kind": 131072, "kindString": "Type parameter", "flags": {} }, { - "id": 488, + "id": 487, "name": "RelationName", "kind": 131072, "kindString": "Type parameter", @@ -10525,7 +10500,7 @@ } }, { - "id": 489, + "id": 488, "name": "Relationships", "kind": 131072, "kindString": "Type parameter", @@ -10539,31 +10514,31 @@ "extendedTypes": [ { "type": "reference", - "id": 490, + "id": 489, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -10572,14 +10547,14 @@ ] }, { - "id": 57, + "id": 56, "name": "PostgrestQueryBuilder", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 58, + "id": 57, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -10593,14 +10568,14 @@ ], "signatures": [ { - "id": 59, + "id": 58, "name": "new PostgrestQueryBuilder", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "typeParameter": [ { - "id": 60, + "id": 59, "name": "Schema", "kind": 131072, "kindString": "Type parameter", @@ -10611,7 +10586,7 @@ } }, { - "id": 61, + "id": 60, "name": "Relation", "kind": 131072, "kindString": "Type parameter", @@ -10631,7 +10606,7 @@ } }, { - "id": 62, + "id": 61, "name": "RelationName", "kind": 131072, "kindString": "Type parameter", @@ -10642,7 +10617,7 @@ } }, { - "id": 65, + "id": 64, "name": "Relationships", "kind": 131072, "kindString": "Type parameter", @@ -10651,20 +10626,20 @@ "type": "conditional", "checkType": { "type": "reference", - "id": 61, + "id": 60, "name": "Relation" }, "extendsType": { "type": "reflection", "declaration": { - "id": 63, + "id": 62, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 64, + "id": 63, "name": "Relationships", "kind": 1024, "kindString": "Property", @@ -10687,7 +10662,7 @@ "title": "Properties", "kind": 1024, "children": [ - 64 + 63 ] } ] @@ -10706,7 +10681,7 @@ ], "parameters": [ { - "id": 66, + "id": 65, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -10719,7 +10694,7 @@ } }, { - "id": 67, + "id": 66, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -10727,14 +10702,14 @@ "type": { "type": "reflection", "declaration": { - "id": 68, + "id": 67, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 71, + "id": 70, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -10751,21 +10726,21 @@ "type": { "type": "reflection", "declaration": { - "id": 72, + "id": 71, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 73, + "id": 72, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 74, + "id": 73, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -10789,7 +10764,7 @@ } }, { - "id": 75, + "id": 74, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -10824,7 +10799,7 @@ } }, { - "id": 69, + "id": 68, "name": "headers", "kind": 1024, "kindString": "Property", @@ -10856,7 +10831,7 @@ } }, { - "id": 70, + "id": 69, "name": "schema", "kind": 1024, "kindString": "Property", @@ -10881,9 +10856,9 @@ "title": "Properties", "kind": 1024, "children": [ - 71, - 69, - 70 + 70, + 68, + 69 ] } ] @@ -10893,26 +10868,26 @@ ], "type": { "type": "reference", - "id": 57, + "id": 56, "typeArguments": [ { "type": "reference", - "id": 60, + "id": 59, "name": "Schema" }, { "type": "reference", - "id": 61, + "id": 60, "name": "Relation" }, { "type": "reference", - "id": 62, + "id": 61, "name": "RelationName" }, { "type": "reference", - "id": 65, + "id": 64, "name": "Relationships" } ], @@ -10922,7 +10897,7 @@ ] }, { - "id": 80, + "id": 79, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -10939,21 +10914,21 @@ "type": { "type": "reflection", "declaration": { - "id": 81, + "id": 80, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 82, + "id": 81, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 83, + "id": 82, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -10977,7 +10952,7 @@ } }, { - "id": 84, + "id": 83, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -11012,7 +10987,7 @@ } }, { - "id": 77, + "id": 76, "name": "headers", "kind": 1024, "kindString": "Property", @@ -11042,7 +11017,7 @@ } }, { - "id": 78, + "id": 77, "name": "schema", "kind": 1024, "kindString": "Property", @@ -11062,7 +11037,7 @@ } }, { - "id": 79, + "id": 78, "name": "signal", "kind": 1024, "kindString": "Property", @@ -11084,7 +11059,7 @@ } }, { - "id": 76, + "id": 75, "name": "url", "kind": 1024, "kindString": "Property", @@ -11104,7 +11079,7 @@ } }, { - "id": 133, + "id": 132, "name": "delete", "kind": 2048, "kindString": "Method", @@ -11118,7 +11093,7 @@ ], "signatures": [ { - "id": 134, + "id": 133, "name": "delete", "kind": 4096, "kindString": "Call signature", @@ -11129,7 +11104,7 @@ }, "parameters": [ { - "id": 135, + "id": 134, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -11141,14 +11116,14 @@ "type": { "type": "reflection", "declaration": { - "id": 136, + "id": 135, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 137, + "id": 136, "name": "count", "kind": 1024, "kindString": "Property", @@ -11189,7 +11164,7 @@ "title": "Properties", "kind": 1024, "children": [ - 137 + 136 ] } ] @@ -11200,11 +11175,11 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 60, + "id": 59, "name": "Schema" }, { @@ -11215,7 +11190,7 @@ }, "objectType": { "type": "reference", - "id": 61, + "id": 60, "name": "Relation" } }, @@ -11225,12 +11200,12 @@ }, { "type": "reference", - "id": 62, + "id": 61, "name": "RelationName" }, { "type": "reference", - "id": 65, + "id": 64, "name": "Relationships" } ], @@ -11240,7 +11215,7 @@ ] }, { - "id": 94, + "id": 93, "name": "insert", "kind": 2048, "kindString": "Method", @@ -11254,7 +11229,7 @@ ], "signatures": [ { - "id": 95, + "id": 94, "name": "insert", "kind": 4096, "kindString": "Call signature", @@ -11265,7 +11240,7 @@ }, "typeParameter": [ { - "id": 96, + "id": 95, "name": "Row", "kind": 131072, "kindString": "Type parameter", @@ -11290,7 +11265,7 @@ ], "parameters": [ { - "id": 97, + "id": 96, "name": "values", "kind": 32768, "kindString": "Parameter", @@ -11300,12 +11275,12 @@ }, "type": { "type": "reference", - "id": 96, + "id": 95, "name": "Row" } }, { - "id": 98, + "id": 97, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -11318,14 +11293,14 @@ "type": { "type": "reflection", "declaration": { - "id": 99, + "id": 98, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 100, + "id": 99, "name": "count", "kind": 1024, "kindString": "Property", @@ -11366,7 +11341,7 @@ "title": "Properties", "kind": 1024, "children": [ - 100 + 99 ] } ] @@ -11376,11 +11351,11 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 60, + "id": 59, "name": "Schema" }, { @@ -11391,7 +11366,7 @@ }, "objectType": { "type": "reference", - "id": 61, + "id": 60, "name": "Relation" } }, @@ -11401,12 +11376,12 @@ }, { "type": "reference", - "id": 62, + "id": 61, "name": "RelationName" }, { "type": "reference", - "id": 65, + "id": 64, "name": "Relationships" } ], @@ -11414,7 +11389,7 @@ } }, { - "id": 101, + "id": 100, "name": "insert", "kind": 4096, "kindString": "Call signature", @@ -11425,7 +11400,7 @@ }, "typeParameter": [ { - "id": 102, + "id": 101, "name": "Row", "kind": 131072, "kindString": "Type parameter", @@ -11450,7 +11425,7 @@ ], "parameters": [ { - "id": 103, + "id": 102, "name": "values", "kind": 32768, "kindString": "Parameter", @@ -11462,13 +11437,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 102, + "id": 101, "name": "Row" } } }, { - "id": 104, + "id": 103, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -11481,14 +11456,14 @@ "type": { "type": "reflection", "declaration": { - "id": 105, + "id": 104, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 106, + "id": 105, "name": "count", "kind": 1024, "kindString": "Property", @@ -11524,7 +11499,7 @@ } }, { - "id": 107, + "id": 106, "name": "defaultToNull", "kind": 1024, "kindString": "Property", @@ -11552,8 +11527,8 @@ "title": "Properties", "kind": 1024, "children": [ - 106, - 107 + 105, + 106 ] } ] @@ -11563,11 +11538,11 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 60, + "id": 59, "name": "Schema" }, { @@ -11578,7 +11553,7 @@ }, "objectType": { "type": "reference", - "id": 61, + "id": 60, "name": "Relation" } }, @@ -11588,12 +11563,12 @@ }, { "type": "reference", - "id": 62, + "id": 61, "name": "RelationName" }, { "type": "reference", - "id": 65, + "id": 64, "name": "Relationships" } ], @@ -11603,7 +11578,7 @@ ] }, { - "id": 85, + "id": 84, "name": "select", "kind": 2048, "kindString": "Method", @@ -11617,7 +11592,7 @@ ], "signatures": [ { - "id": 86, + "id": 85, "name": "select", "kind": 4096, "kindString": "Call signature", @@ -11627,7 +11602,7 @@ }, "typeParameter": [ { - "id": 87, + "id": 86, "name": "Query", "kind": 131072, "kindString": "Type parameter", @@ -11642,7 +11617,7 @@ } }, { - "id": 88, + "id": 87, "name": "ResultOne", "kind": 131072, "kindString": "Type parameter", @@ -11652,7 +11627,7 @@ "typeArguments": [ { "type": "reference", - "id": 60, + "id": 59, "name": "Schema" }, { @@ -11663,23 +11638,23 @@ }, "objectType": { "type": "reference", - "id": 61, + "id": 60, "name": "Relation" } }, { "type": "reference", - "id": 62, + "id": 61, "name": "RelationName" }, { "type": "reference", - "id": 65, + "id": 64, "name": "Relationships" }, { "type": "reference", - "id": 87, + "id": 86, "name": "Query" } ], @@ -11689,7 +11664,7 @@ ], "parameters": [ { - "id": 89, + "id": 88, "name": "columns", "kind": 32768, "kindString": "Parameter", @@ -11701,12 +11676,12 @@ }, "type": { "type": "reference", - "id": 87, + "id": 86, "name": "Query" } }, { - "id": 90, + "id": 89, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -11718,14 +11693,14 @@ "type": { "type": "reflection", "declaration": { - "id": 91, + "id": 90, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 93, + "id": 92, "name": "count", "kind": 1024, "kindString": "Property", @@ -11761,7 +11736,7 @@ } }, { - "id": 92, + "id": 91, "name": "head", "kind": 1024, "kindString": "Property", @@ -11789,8 +11764,8 @@ "title": "Properties", "kind": 1024, "children": [ - 93, - 92 + 92, + 91 ] } ] @@ -11801,11 +11776,11 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 60, + "id": 59, "name": "Schema" }, { @@ -11816,7 +11791,7 @@ }, "objectType": { "type": "reference", - "id": 61, + "id": 60, "name": "Relation" } }, @@ -11824,18 +11799,18 @@ "type": "array", "elementType": { "type": "reference", - "id": 88, + "id": 87, "name": "ResultOne" } }, { "type": "reference", - "id": 62, + "id": 61, "name": "RelationName" }, { "type": "reference", - "id": 65, + "id": 64, "name": "Relationships" } ], @@ -11845,7 +11820,7 @@ ] }, { - "id": 126, + "id": 125, "name": "update", "kind": 2048, "kindString": "Method", @@ -11859,7 +11834,7 @@ ], "signatures": [ { - "id": 127, + "id": 126, "name": "update", "kind": 4096, "kindString": "Call signature", @@ -11870,7 +11845,7 @@ }, "typeParameter": [ { - "id": 128, + "id": 127, "name": "Row", "kind": 131072, "kindString": "Type parameter", @@ -11895,7 +11870,7 @@ ], "parameters": [ { - "id": 129, + "id": 128, "name": "values", "kind": 32768, "kindString": "Parameter", @@ -11905,12 +11880,12 @@ }, "type": { "type": "reference", - "id": 128, + "id": 127, "name": "Row" } }, { - "id": 130, + "id": 129, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -11922,14 +11897,14 @@ "type": { "type": "reflection", "declaration": { - "id": 131, + "id": 130, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 132, + "id": 131, "name": "count", "kind": 1024, "kindString": "Property", @@ -11970,7 +11945,7 @@ "title": "Properties", "kind": 1024, "children": [ - 132 + 131 ] } ] @@ -11981,11 +11956,11 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 60, + "id": 59, "name": "Schema" }, { @@ -11996,7 +11971,7 @@ }, "objectType": { "type": "reference", - "id": 61, + "id": 60, "name": "Relation" } }, @@ -12006,12 +11981,12 @@ }, { "type": "reference", - "id": 62, + "id": 61, "name": "RelationName" }, { "type": "reference", - "id": 65, + "id": 64, "name": "Relationships" } ], @@ -12021,7 +11996,7 @@ ] }, { - "id": 108, + "id": 107, "name": "upsert", "kind": 2048, "kindString": "Method", @@ -12035,7 +12010,7 @@ ], "signatures": [ { - "id": 109, + "id": 108, "name": "upsert", "kind": 4096, "kindString": "Call signature", @@ -12046,7 +12021,7 @@ }, "typeParameter": [ { - "id": 110, + "id": 109, "name": "Row", "kind": 131072, "kindString": "Type parameter", @@ -12071,7 +12046,7 @@ ], "parameters": [ { - "id": 111, + "id": 110, "name": "values", "kind": 32768, "kindString": "Parameter", @@ -12081,12 +12056,12 @@ }, "type": { "type": "reference", - "id": 110, + "id": 109, "name": "Row" } }, { - "id": 112, + "id": 111, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -12099,14 +12074,14 @@ "type": { "type": "reflection", "declaration": { - "id": 113, + "id": 112, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 116, + "id": 115, "name": "count", "kind": 1024, "kindString": "Property", @@ -12142,7 +12117,7 @@ } }, { - "id": 115, + "id": 114, "name": "ignoreDuplicates", "kind": 1024, "kindString": "Property", @@ -12165,7 +12140,7 @@ } }, { - "id": 114, + "id": 113, "name": "onConflict", "kind": 1024, "kindString": "Property", @@ -12193,9 +12168,9 @@ "title": "Properties", "kind": 1024, "children": [ - 116, 115, - 114 + 114, + 113 ] } ] @@ -12205,11 +12180,11 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 60, + "id": 59, "name": "Schema" }, { @@ -12220,7 +12195,7 @@ }, "objectType": { "type": "reference", - "id": 61, + "id": 60, "name": "Relation" } }, @@ -12230,12 +12205,12 @@ }, { "type": "reference", - "id": 62, + "id": 61, "name": "RelationName" }, { "type": "reference", - "id": 65, + "id": 64, "name": "Relationships" } ], @@ -12243,7 +12218,7 @@ } }, { - "id": 117, + "id": 116, "name": "upsert", "kind": 4096, "kindString": "Call signature", @@ -12254,7 +12229,7 @@ }, "typeParameter": [ { - "id": 118, + "id": 117, "name": "Row", "kind": 131072, "kindString": "Type parameter", @@ -12279,7 +12254,7 @@ ], "parameters": [ { - "id": 119, + "id": 118, "name": "values", "kind": 32768, "kindString": "Parameter", @@ -12291,13 +12266,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 118, + "id": 117, "name": "Row" } } }, { - "id": 120, + "id": 119, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -12310,14 +12285,14 @@ "type": { "type": "reflection", "declaration": { - "id": 121, + "id": 120, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 124, + "id": 123, "name": "count", "kind": 1024, "kindString": "Property", @@ -12353,7 +12328,7 @@ } }, { - "id": 125, + "id": 124, "name": "defaultToNull", "kind": 1024, "kindString": "Property", @@ -12376,7 +12351,7 @@ } }, { - "id": 123, + "id": 122, "name": "ignoreDuplicates", "kind": 1024, "kindString": "Property", @@ -12399,7 +12374,7 @@ } }, { - "id": 122, + "id": 121, "name": "onConflict", "kind": 1024, "kindString": "Property", @@ -12427,10 +12402,10 @@ "title": "Properties", "kind": 1024, "children": [ - 124, - 125, 123, - 122 + 124, + 122, + 121 ] } ] @@ -12440,11 +12415,11 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 60, + "id": 59, "name": "Schema" }, { @@ -12455,7 +12430,7 @@ }, "objectType": { "type": "reference", - "id": 61, + "id": 60, "name": "Relation" } }, @@ -12465,12 +12440,12 @@ }, { "type": "reference", - "id": 62, + "id": 61, "name": "RelationName" }, { "type": "reference", - "id": 65, + "id": 64, "name": "Relationships" } ], @@ -12485,29 +12460,29 @@ "title": "Constructors", "kind": 512, "children": [ - 58 + 57 ] }, { "title": "Properties", "kind": 1024, "children": [ - 80, + 79, + 76, 77, 78, - 79, - 76 + 75 ] }, { "title": "Methods", "kind": 2048, "children": [ - 133, - 94, - 85, - 126, - 108 + 132, + 93, + 84, + 125, + 107 ] } ], @@ -12520,7 +12495,7 @@ ], "typeParameter": [ { - "id": 138, + "id": 137, "name": "Schema", "kind": 131072, "kindString": "Type parameter", @@ -12531,7 +12506,7 @@ } }, { - "id": 139, + "id": 138, "name": "Relation", "kind": 131072, "kindString": "Type parameter", @@ -12551,7 +12526,7 @@ } }, { - "id": 140, + "id": 139, "name": "RelationName", "kind": 131072, "kindString": "Type parameter", @@ -12562,7 +12537,7 @@ } }, { - "id": 143, + "id": 142, "name": "Relationships", "kind": 131072, "kindString": "Type parameter", @@ -12571,20 +12546,20 @@ "type": "conditional", "checkType": { "type": "reference", - "id": 61, + "id": 60, "name": "Relation" }, "extendsType": { "type": "reflection", "declaration": { - "id": 141, + "id": 140, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 142, + "id": 141, "name": "Relationships", "kind": 1024, "kindString": "Property", @@ -12607,7 +12582,7 @@ "title": "Properties", "kind": 1024, "children": [ - 142 + 141 ] } ], @@ -12633,28 +12608,28 @@ ] }, { - "id": 490, + "id": 489, "name": "PostgrestTransformBuilder", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 491, + "id": 490, "name": "constructor", "kind": 512, "kindString": "Constructor", "flags": {}, "signatures": [ { - "id": 492, + "id": 491, "name": "new PostgrestTransformBuilder", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "typeParameter": [ { - "id": 493, + "id": 492, "name": "Schema", "kind": 131072, "kindString": "Type parameter", @@ -12665,7 +12640,7 @@ } }, { - "id": 494, + "id": 493, "name": "Row", "kind": 131072, "kindString": "Type parameter", @@ -12688,14 +12663,14 @@ } }, { - "id": 495, + "id": 494, "name": "Result", "kind": 131072, "kindString": "Type parameter", "flags": {} }, { - "id": 496, + "id": 495, "name": "RelationName", "kind": 131072, "kindString": "Type parameter", @@ -12706,7 +12681,7 @@ } }, { - "id": 497, + "id": 496, "name": "Relationships", "kind": 131072, "kindString": "Type parameter", @@ -12719,18 +12694,18 @@ ], "parameters": [ { - "id": 498, + "id": 497, "name": "builder", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "reference", - "id": 495, + "id": 494, "name": "Result" } ], @@ -12740,31 +12715,31 @@ ], "type": { "type": "reference", - "id": 490, + "id": 489, "typeArguments": [ { "type": "reference", - "id": 493, + "id": 492, "name": "Schema" }, { "type": "reference", - "id": 494, + "id": 493, "name": "Row" }, { "type": "reference", - "id": 495, + "id": 494, "name": "Result" }, { "type": "reference", - "id": 496, + "id": 495, "name": "RelationName" }, { "type": "reference", - "id": 497, + "id": 496, "name": "Relationships" } ], @@ -12772,19 +12747,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 612, + "id": 611, "name": "default.constructor" } } ], "inheritedFrom": { "type": "reference", - "id": 611, + "id": 610, "name": "default.constructor" } }, { - "id": 582, + "id": 581, "name": "body", "kind": 1024, "kindString": "Property", @@ -12795,7 +12770,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 13, + "line": 14, "character": 12 } ], @@ -12805,12 +12780,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 619, + "id": 618, "name": "default.body" } }, { - "id": 585, + "id": 584, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -12820,28 +12795,28 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 16, + "line": 17, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 586, + "id": 585, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 587, + "id": 586, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 588, + "id": 587, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -12865,7 +12840,7 @@ } }, { - "id": 589, + "id": 588, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -12900,12 +12875,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 622, + "id": 621, "name": "default.fetch" } }, { - "id": 580, + "id": 579, "name": "headers", "kind": 1024, "kindString": "Property", @@ -12915,7 +12890,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 11, + "line": 12, "character": 12 } ], @@ -12937,12 +12912,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 617, + "id": 616, "name": "default.headers" } }, { - "id": 590, + "id": 589, "name": "isMaybeSingle", "kind": 1024, "kindString": "Property", @@ -12952,7 +12927,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 17, + "line": 18, "character": 12 } ], @@ -12962,12 +12937,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 627, + "id": 626, "name": "default.isMaybeSingle" } }, { - "id": 578, + "id": 577, "name": "method", "kind": 1024, "kindString": "Property", @@ -12977,7 +12952,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 9, + "line": 10, "character": 12 } ], @@ -13008,12 +12983,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 615, + "id": 614, "name": "default.method" } }, { - "id": 581, + "id": 580, "name": "schema", "kind": 1024, "kindString": "Property", @@ -13024,7 +12999,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 12, + "line": 13, "character": 12 } ], @@ -13034,12 +13009,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 618, + "id": 617, "name": "default.schema" } }, { - "id": 583, + "id": 582, "name": "shouldThrowOnError", "kind": 1024, "kindString": "Property", @@ -13049,7 +13024,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 14, + "line": 15, "character": 12 } ], @@ -13060,12 +13035,12 @@ "defaultValue": "false", "inheritedFrom": { "type": "reference", - "id": 620, + "id": 619, "name": "default.shouldThrowOnError" } }, { - "id": 584, + "id": 583, "name": "signal", "kind": 1024, "kindString": "Property", @@ -13076,7 +13051,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 15, + "line": 16, "character": 12 } ], @@ -13088,12 +13063,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 621, + "id": 620, "name": "default.signal" } }, { - "id": 579, + "id": 578, "name": "url", "kind": 1024, "kindString": "Property", @@ -13103,7 +13078,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 10, + "line": 11, "character": 12 } ], @@ -13115,12 +13090,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 616, + "id": 615, "name": "default.url" } }, { - "id": 550, + "id": 549, "name": "abortSignal", "kind": 2048, "kindString": "Method", @@ -13134,7 +13109,7 @@ ], "signatures": [ { - "id": 551, + "id": 550, "name": "abortSignal", "kind": 4096, "kindString": "Call signature", @@ -13144,7 +13119,7 @@ }, "parameters": [ { - "id": 552, + "id": 551, "name": "signal", "kind": 32768, "kindString": "Parameter", @@ -13162,31 +13137,31 @@ ], "type": { "type": "reference", - "id": 490, + "id": 489, "typeArguments": [ { "type": "reference", - "id": 493, + "id": 492, "name": "Schema" }, { "type": "reference", - "id": 494, + "id": 493, "name": "Row" }, { "type": "reference", - "id": 495, + "id": 494, "name": "Result" }, { "type": "reference", - "id": 496, + "id": 495, "name": "RelationName" }, { "type": "reference", - "id": 497, + "id": 496, "name": "Relationships" } ], @@ -13196,7 +13171,7 @@ ] }, { - "id": 559, + "id": 558, "name": "csv", "kind": 2048, "kindString": "Method", @@ -13210,7 +13185,7 @@ ], "signatures": [ { - "id": 560, + "id": 559, "name": "csv", "kind": 4096, "kindString": "Call signature", @@ -13220,7 +13195,7 @@ }, "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "intrinsic", @@ -13233,7 +13208,7 @@ ] }, { - "id": 563, + "id": 562, "name": "explain", "kind": 2048, "kindString": "Method", @@ -13241,23 +13216,24 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 255, + "line": 259, "character": 2 } ], "signatures": [ { - "id": 564, + "id": 563, "name": "explain", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Return `data` as the EXPLAIN plan for the query." + "shortText": "Return `data` as the EXPLAIN plan for the query.", + "text": "You need to enable the\n[db_plan_enabled](https://supabase.com/docs/guides/database/debugging-performance#enabling-explain)\nsetting before using this method.\n" }, "parameters": [ { - "id": 565, + "id": 564, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -13269,14 +13245,14 @@ "type": { "type": "reflection", "declaration": { - "id": 566, + "id": 565, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 567, + "id": 566, "name": "analyze", "kind": 1024, "kindString": "Property", @@ -13289,7 +13265,7 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 263, + "line": 267, "character": 4 } ], @@ -13299,7 +13275,7 @@ } }, { - "id": 570, + "id": 569, "name": "buffers", "kind": 1024, "kindString": "Property", @@ -13312,7 +13288,7 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 266, + "line": 270, "character": 4 } ], @@ -13322,7 +13298,7 @@ } }, { - "id": 572, + "id": 571, "name": "format", "kind": 1024, "kindString": "Property", @@ -13335,7 +13311,7 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 268, + "line": 272, "character": 4 } ], @@ -13354,7 +13330,7 @@ } }, { - "id": 569, + "id": 568, "name": "settings", "kind": 1024, "kindString": "Property", @@ -13367,7 +13343,7 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 265, + "line": 269, "character": 4 } ], @@ -13377,7 +13353,7 @@ } }, { - "id": 568, + "id": 567, "name": "verbose", "kind": 1024, "kindString": "Property", @@ -13390,7 +13366,7 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 264, + "line": 268, "character": 4 } ], @@ -13400,7 +13376,7 @@ } }, { - "id": 571, + "id": 570, "name": "wal", "kind": 1024, "kindString": "Property", @@ -13413,7 +13389,7 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 267, + "line": 271, "character": 4 } ], @@ -13428,12 +13404,12 @@ "title": "Properties", "kind": 1024, "children": [ - 567, - 570, - 572, + 566, 569, + 571, 568, - 571 + 567, + 570 ] } ] @@ -13447,7 +13423,7 @@ "types": [ { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "intrinsic", @@ -13458,7 +13434,7 @@ }, { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "array", @@ -13488,7 +13464,7 @@ ] }, { - "id": 561, + "id": 560, "name": "geojson", "kind": 2048, "kindString": "Method", @@ -13502,7 +13478,7 @@ ], "signatures": [ { - "id": 562, + "id": 561, "name": "geojson", "kind": 4096, "kindString": "Call signature", @@ -13512,7 +13488,7 @@ }, "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "reference", @@ -13537,7 +13513,7 @@ ] }, { - "id": 535, + "id": 534, "name": "limit", "kind": 2048, "kindString": "Method", @@ -13551,7 +13527,7 @@ ], "signatures": [ { - "id": 536, + "id": 535, "name": "limit", "kind": 4096, "kindString": "Call signature", @@ -13561,7 +13537,7 @@ }, "parameters": [ { - "id": 537, + "id": 536, "name": "count", "kind": 32768, "kindString": "Parameter", @@ -13575,7 +13551,7 @@ } }, { - "id": 538, + "id": 537, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -13587,14 +13563,14 @@ "type": { "type": "reflection", "declaration": { - "id": 539, + "id": 538, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 540, + "id": 539, "name": "foreignTable", "kind": 1024, "kindString": "Property", @@ -13617,7 +13593,7 @@ } }, { - "id": 541, + "id": 540, "name": "referencedTable", "kind": 1024, "kindString": "Property", @@ -13645,8 +13621,8 @@ "title": "Properties", "kind": 1024, "children": [ - 540, - 541 + 539, + 540 ] } ] @@ -13657,31 +13633,31 @@ ], "type": { "type": "reference", - "id": 490, + "id": 489, "typeArguments": [ { "type": "reference", - "id": 493, + "id": 492, "name": "Schema" }, { "type": "reference", - "id": 494, + "id": 493, "name": "Row" }, { "type": "reference", - "id": 495, + "id": 494, "name": "Result" }, { "type": "reference", - "id": 496, + "id": 495, "name": "RelationName" }, { "type": "reference", - "id": 497, + "id": 496, "name": "Relationships" } ], @@ -13691,7 +13667,7 @@ ] }, { - "id": 556, + "id": 555, "name": "maybeSingle", "kind": 2048, "kindString": "Method", @@ -13705,7 +13681,7 @@ ], "signatures": [ { - "id": 557, + "id": 556, "name": "maybeSingle", "kind": 4096, "kindString": "Call signature", @@ -13716,7 +13692,7 @@ }, "typeParameter": [ { - "id": 558, + "id": 557, "name": "ResultOne", "kind": 131072, "kindString": "Type parameter", @@ -13725,7 +13701,7 @@ "type": "conditional", "checkType": { "type": "reference", - "id": 495, + "id": 494, "name": "Result" }, "extendsType": { @@ -13748,7 +13724,7 @@ ], "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "union", @@ -13759,7 +13735,7 @@ }, { "type": "reference", - "id": 438, + "id": 437, "name": "ResultOne" } ] @@ -13771,7 +13747,7 @@ ] }, { - "id": 504, + "id": 503, "name": "order", "kind": 2048, "kindString": "Method", @@ -13785,7 +13761,7 @@ ], "signatures": [ { - "id": 505, + "id": 504, "name": "order", "kind": 4096, "kindString": "Call signature", @@ -13796,7 +13772,7 @@ }, "typeParameter": [ { - "id": 506, + "id": 505, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -13809,7 +13785,7 @@ ], "parameters": [ { - "id": 507, + "id": 506, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -13819,12 +13795,12 @@ }, "type": { "type": "reference", - "id": 386, + "id": 385, "name": "ColumnName" } }, { - "id": 508, + "id": 507, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -13837,14 +13813,14 @@ "type": { "type": "reflection", "declaration": { - "id": 509, + "id": 508, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 510, + "id": 509, "name": "ascending", "kind": 1024, "kindString": "Property", @@ -13866,31 +13842,31 @@ "name": "boolean" } }, + { + "id": 510, + "name": "nullsFirst", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "If `true`, `null`s appear first. If `false`,\n`null`s appear last." + }, + "sources": [ + { + "fileName": "src/PostgrestTransformBuilder.ts", + "line": 57, + "character": 37 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, { "id": 511, - "name": "nullsFirst", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "If `true`, `null`s appear first. If `false`,\n`null`s appear last." - }, - "sources": [ - { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 57, - "character": 37 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 512, "name": "referencedTable", "kind": 1024, "kindString": "Property", @@ -13918,9 +13894,9 @@ "title": "Properties", "kind": 1024, "children": [ + 509, 510, - 511, - 512 + 511 ] } ] @@ -13930,31 +13906,31 @@ ], "type": { "type": "reference", - "id": 490, + "id": 489, "typeArguments": [ { "type": "reference", - "id": 493, + "id": 492, "name": "Schema" }, { "type": "reference", - "id": 494, + "id": 493, "name": "Row" }, { "type": "reference", - "id": 495, + "id": 494, "name": "Result" }, { "type": "reference", - "id": 496, + "id": 495, "name": "RelationName" }, { "type": "reference", - "id": 497, + "id": 496, "name": "Relationships" } ], @@ -13962,7 +13938,7 @@ } }, { - "id": 513, + "id": 512, "name": "order", "kind": 4096, "kindString": "Call signature", @@ -13973,7 +13949,7 @@ }, "parameters": [ { - "id": 514, + "id": 513, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -13987,7 +13963,7 @@ } }, { - "id": 515, + "id": 514, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -14000,14 +13976,14 @@ "type": { "type": "reflection", "declaration": { - "id": 516, + "id": 515, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 517, + "id": 516, "name": "ascending", "kind": 1024, "kindString": "Property", @@ -14030,7 +14006,7 @@ } }, { - "id": 518, + "id": 517, "name": "nullsFirst", "kind": 1024, "kindString": "Property", @@ -14053,7 +14029,7 @@ } }, { - "id": 519, + "id": 518, "name": "referencedTable", "kind": 1024, "kindString": "Property", @@ -14081,9 +14057,9 @@ "title": "Properties", "kind": 1024, "children": [ + 516, 517, - 518, - 519 + 518 ] } ] @@ -14093,31 +14069,31 @@ ], "type": { "type": "reference", - "id": 490, + "id": 489, "typeArguments": [ { "type": "reference", - "id": 493, + "id": 492, "name": "Schema" }, { "type": "reference", - "id": 494, + "id": 493, "name": "Row" }, { "type": "reference", - "id": 495, + "id": 494, "name": "Result" }, { "type": "reference", - "id": 496, + "id": 495, "name": "RelationName" }, { "type": "reference", - "id": 497, + "id": 496, "name": "Relationships" } ], @@ -14125,7 +14101,7 @@ } }, { - "id": 520, + "id": 519, "name": "order", "kind": 4096, "kindString": "Call signature", @@ -14142,7 +14118,7 @@ }, "typeParameter": [ { - "id": 521, + "id": 520, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -14155,7 +14131,7 @@ ], "parameters": [ { - "id": 522, + "id": 521, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -14165,12 +14141,12 @@ }, "type": { "type": "reference", - "id": 401, + "id": 400, "name": "ColumnName" } }, { - "id": 523, + "id": 522, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -14183,14 +14159,14 @@ "type": { "type": "reflection", "declaration": { - "id": 524, + "id": 523, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 525, + "id": 524, "name": "ascending", "kind": 1024, "kindString": "Property", @@ -14210,7 +14186,7 @@ } }, { - "id": 527, + "id": 526, "name": "foreignTable", "kind": 1024, "kindString": "Property", @@ -14230,7 +14206,7 @@ } }, { - "id": 526, + "id": 525, "name": "nullsFirst", "kind": 1024, "kindString": "Property", @@ -14255,9 +14231,9 @@ "title": "Properties", "kind": 1024, "children": [ - 525, - 527, - 526 + 524, + 526, + 525 ] } ] @@ -14267,31 +14243,31 @@ ], "type": { "type": "reference", - "id": 490, + "id": 489, "typeArguments": [ { "type": "reference", - "id": 493, + "id": 492, "name": "Schema" }, { "type": "reference", - "id": 494, + "id": 493, "name": "Row" }, { "type": "reference", - "id": 495, + "id": 494, "name": "Result" }, { "type": "reference", - "id": 496, + "id": 495, "name": "RelationName" }, { "type": "reference", - "id": 497, + "id": 496, "name": "Relationships" } ], @@ -14299,7 +14275,7 @@ } }, { - "id": 528, + "id": 527, "name": "order", "kind": 4096, "kindString": "Call signature", @@ -14316,7 +14292,7 @@ }, "parameters": [ { - "id": 529, + "id": 528, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -14330,7 +14306,7 @@ } }, { - "id": 530, + "id": 529, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -14343,14 +14319,14 @@ "type": { "type": "reflection", "declaration": { - "id": 531, + "id": 530, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 532, + "id": 531, "name": "ascending", "kind": 1024, "kindString": "Property", @@ -14370,7 +14346,7 @@ } }, { - "id": 534, + "id": 533, "name": "foreignTable", "kind": 1024, "kindString": "Property", @@ -14390,7 +14366,7 @@ } }, { - "id": 533, + "id": 532, "name": "nullsFirst", "kind": 1024, "kindString": "Property", @@ -14415,9 +14391,9 @@ "title": "Properties", "kind": 1024, "children": [ - 532, - 534, - 533 + 531, + 533, + 532 ] } ] @@ -14427,31 +14403,31 @@ ], "type": { "type": "reference", - "id": 490, + "id": 489, "typeArguments": [ { "type": "reference", - "id": 493, + "id": 492, "name": "Schema" }, { "type": "reference", - "id": 494, + "id": 493, "name": "Row" }, { "type": "reference", - "id": 495, + "id": 494, "name": "Result" }, { "type": "reference", - "id": 496, + "id": 495, "name": "RelationName" }, { "type": "reference", - "id": 497, + "id": 496, "name": "Relationships" } ], @@ -14461,7 +14437,7 @@ ] }, { - "id": 542, + "id": 541, "name": "range", "kind": 2048, "kindString": "Method", @@ -14475,7 +14451,7 @@ ], "signatures": [ { - "id": 543, + "id": 542, "name": "range", "kind": 4096, "kindString": "Call signature", @@ -14485,7 +14461,7 @@ }, "parameters": [ { - "id": 544, + "id": 543, "name": "from", "kind": 32768, "kindString": "Parameter", @@ -14499,7 +14475,7 @@ } }, { - "id": 545, + "id": 544, "name": "to", "kind": 32768, "kindString": "Parameter", @@ -14513,7 +14489,7 @@ } }, { - "id": 546, + "id": 545, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -14525,14 +14501,14 @@ "type": { "type": "reflection", "declaration": { - "id": 547, + "id": 546, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 548, + "id": 547, "name": "foreignTable", "kind": 1024, "kindString": "Property", @@ -14555,7 +14531,7 @@ } }, { - "id": 549, + "id": 548, "name": "referencedTable", "kind": 1024, "kindString": "Property", @@ -14583,8 +14559,8 @@ "title": "Properties", "kind": 1024, "children": [ - 548, - 549 + 547, + 548 ] } ] @@ -14595,31 +14571,31 @@ ], "type": { "type": "reference", - "id": 490, + "id": 489, "typeArguments": [ { "type": "reference", - "id": 493, + "id": 492, "name": "Schema" }, { "type": "reference", - "id": 494, + "id": 493, "name": "Row" }, { "type": "reference", - "id": 495, + "id": 494, "name": "Result" }, { "type": "reference", - "id": 496, + "id": 495, "name": "RelationName" }, { "type": "reference", - "id": 497, + "id": 496, "name": "Relationships" } ], @@ -14629,7 +14605,7 @@ ] }, { - "id": 575, + "id": 574, "name": "returns", "kind": 2048, "kindString": "Method", @@ -14637,13 +14613,13 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 307, + "line": 311, "character": 2 } ], "signatures": [ { - "id": 576, + "id": 575, "name": "returns", "kind": 4096, "kindString": "Call signature", @@ -14653,7 +14629,7 @@ }, "typeParameter": [ { - "id": 577, + "id": 576, "name": "NewResult", "kind": 131072, "kindString": "Type parameter", @@ -14665,31 +14641,31 @@ ], "type": { "type": "reference", - "id": 490, + "id": 489, "typeArguments": [ { "type": "reference", - "id": 493, + "id": 492, "name": "Schema" }, { "type": "reference", - "id": 494, + "id": 493, "name": "Row" }, { "type": "reference", - "id": 457, + "id": 456, "name": "NewResult" }, { "type": "reference", - "id": 496, + "id": 495, "name": "RelationName" }, { "type": "reference", - "id": 497, + "id": 496, "name": "Relationships" } ], @@ -14699,7 +14675,7 @@ ] }, { - "id": 573, + "id": 572, "name": "rollback", "kind": 2048, "kindString": "Method", @@ -14707,13 +14683,13 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 293, + "line": 297, "character": 2 } ], "signatures": [ { - "id": 574, + "id": 573, "name": "rollback", "kind": 4096, "kindString": "Call signature", @@ -14724,31 +14700,31 @@ }, "type": { "type": "reference", - "id": 490, + "id": 489, "typeArguments": [ { "type": "reference", - "id": 493, + "id": 492, "name": "Schema" }, { "type": "reference", - "id": 494, + "id": 493, "name": "Row" }, { "type": "reference", - "id": 495, + "id": 494, "name": "Result" }, { "type": "reference", - "id": 496, + "id": 495, "name": "RelationName" }, { "type": "reference", - "id": 497, + "id": 496, "name": "Relationships" } ], @@ -14758,7 +14734,7 @@ ] }, { - "id": 499, + "id": 498, "name": "select", "kind": 2048, "kindString": "Method", @@ -14772,7 +14748,7 @@ ], "signatures": [ { - "id": 500, + "id": 499, "name": "select", "kind": 4096, "kindString": "Call signature", @@ -14783,7 +14759,7 @@ }, "typeParameter": [ { - "id": 501, + "id": 500, "name": "Query", "kind": 131072, "kindString": "Type parameter", @@ -14798,7 +14774,7 @@ } }, { - "id": 502, + "id": 501, "name": "NewResultOne", "kind": 131072, "kindString": "Type parameter", @@ -14808,27 +14784,27 @@ "typeArguments": [ { "type": "reference", - "id": 493, + "id": 492, "name": "Schema" }, { "type": "reference", - "id": 494, + "id": 493, "name": "Row" }, { "type": "reference", - "id": 496, + "id": 495, "name": "RelationName" }, { "type": "reference", - "id": 497, + "id": 496, "name": "Relationships" }, { "type": "reference", - "id": 381, + "id": 380, "name": "Query" } ], @@ -14838,7 +14814,7 @@ ], "parameters": [ { - "id": 503, + "id": 502, "name": "columns", "kind": 32768, "kindString": "Parameter", @@ -14850,41 +14826,41 @@ }, "type": { "type": "reference", - "id": 381, + "id": 380, "name": "Query" } } ], "type": { "type": "reference", - "id": 490, + "id": 489, "typeArguments": [ { "type": "reference", - "id": 493, + "id": 492, "name": "Schema" }, { "type": "reference", - "id": 494, + "id": 493, "name": "Row" }, { "type": "array", "elementType": { "type": "reference", - "id": 382, + "id": 381, "name": "NewResultOne" } }, { "type": "reference", - "id": 496, + "id": 495, "name": "RelationName" }, { "type": "reference", - "id": 497, + "id": 496, "name": "Relationships" } ], @@ -14894,7 +14870,7 @@ ] }, { - "id": 553, + "id": 552, "name": "single", "kind": 2048, "kindString": "Method", @@ -14908,7 +14884,7 @@ ], "signatures": [ { - "id": 554, + "id": 553, "name": "single", "kind": 4096, "kindString": "Call signature", @@ -14919,7 +14895,7 @@ }, "typeParameter": [ { - "id": 555, + "id": 554, "name": "ResultOne", "kind": 131072, "kindString": "Type parameter", @@ -14928,7 +14904,7 @@ "type": "conditional", "checkType": { "type": "reference", - "id": 495, + "id": 494, "name": "Result" }, "extendsType": { @@ -14951,11 +14927,11 @@ ], "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "reference", - "id": 435, + "id": 434, "name": "ResultOne" } ], @@ -14965,7 +14941,7 @@ ] }, { - "id": 593, + "id": 592, "name": "then", "kind": 2048, "kindString": "Method", @@ -14973,31 +14949,31 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 49, + "line": 50, "character": 2 } ], "signatures": [ { - "id": 594, + "id": 593, "name": "then", "kind": 4096, "kindString": "Call signature", "flags": {}, "typeParameter": [ { - "id": 595, + "id": 594, "name": "TResult1", "kind": 131072, "kindString": "Type parameter", "flags": {}, "default": { "type": "reference", - "id": 658, + "id": 657, "typeArguments": [ { "type": "reference", - "id": 495, + "id": 494, "name": "Result" } ], @@ -15005,7 +14981,7 @@ } }, { - "id": 596, + "id": 595, "name": "TResult2", "kind": 131072, "kindString": "Type parameter", @@ -15018,7 +14994,7 @@ ], "parameters": [ { - "id": 597, + "id": 596, "name": "onfulfilled", "kind": 32768, "kindString": "Parameter", @@ -15035,32 +15011,32 @@ { "type": "reflection", "declaration": { - "id": 598, + "id": 597, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 599, + "id": 598, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 600, + "id": 599, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 658, + "id": 657, "typeArguments": [ { "type": "reference", - "id": 495, + "id": 494, "name": "Result" } ], @@ -15073,7 +15049,7 @@ "types": [ { "type": "reference", - "id": 475, + "id": 474, "name": "TResult1" }, { @@ -15081,7 +15057,7 @@ "typeArguments": [ { "type": "reference", - "id": 475, + "id": 474, "name": "TResult1" } ], @@ -15099,7 +15075,7 @@ } }, { - "id": 601, + "id": 600, "name": "onrejected", "kind": 32768, "kindString": "Parameter", @@ -15116,21 +15092,21 @@ { "type": "reflection", "declaration": { - "id": 602, + "id": 601, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 603, + "id": 602, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 604, + "id": 603, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -15146,7 +15122,7 @@ "types": [ { "type": "reference", - "id": 476, + "id": 475, "name": "TResult2" }, { @@ -15154,7 +15130,7 @@ "typeArguments": [ { "type": "reference", - "id": 476, + "id": 475, "name": "TResult2" } ], @@ -15180,12 +15156,12 @@ "types": [ { "type": "reference", - "id": 475, + "id": 474, "name": "TResult1" }, { "type": "reference", - "id": 476, + "id": 475, "name": "TResult2" } ] @@ -15197,19 +15173,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 631, + "id": 630, "name": "default.then" } } ], "inheritedFrom": { "type": "reference", - "id": 630, + "id": 629, "name": "default.then" } }, { - "id": 591, + "id": 590, "name": "throwOnError", "kind": 2048, "kindString": "Method", @@ -15217,13 +15193,13 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 44, + "line": 45, "character": 2 } ], "signatures": [ { - "id": 592, + "id": 591, "name": "throwOnError", "kind": 4096, "kindString": "Call signature", @@ -15234,31 +15210,31 @@ }, "type": { "type": "reference", - "id": 490, + "id": 489, "typeArguments": [ { "type": "reference", - "id": 493, + "id": 492, "name": "Schema" }, { "type": "reference", - "id": 494, + "id": 493, "name": "Row" }, { "type": "reference", - "id": 495, + "id": 494, "name": "Result" }, { "type": "reference", - "id": 496, + "id": 495, "name": "RelationName" }, { "type": "reference", - "id": 497, + "id": 496, "name": "Relationships" } ], @@ -15266,14 +15242,14 @@ }, "inheritedFrom": { "type": "reference", - "id": 629, + "id": 628, "name": "default.throwOnError" } } ], "inheritedFrom": { "type": "reference", - "id": 628, + "id": 627, "name": "default.throwOnError" } } @@ -15283,42 +15259,42 @@ "title": "Constructors", "kind": 512, "children": [ - 491 + 490 ] }, { "title": "Properties", "kind": 1024, "children": [ - 582, - 585, - 580, - 590, - 578, 581, - 583, 584, - 579 + 579, + 589, + 577, + 580, + 582, + 583, + 578 ] }, { "title": "Methods", "kind": 2048, "children": [ - 550, - 559, - 563, - 561, - 535, - 556, - 504, - 542, - 575, - 573, - 499, - 553, - 593, - 591 + 549, + 558, + 562, + 560, + 534, + 555, + 503, + 541, + 574, + 572, + 498, + 552, + 592, + 590 ] } ], @@ -15331,7 +15307,7 @@ ], "typeParameter": [ { - "id": 605, + "id": 604, "name": "Schema", "kind": 131072, "kindString": "Type parameter", @@ -15342,7 +15318,7 @@ } }, { - "id": 606, + "id": 605, "name": "Row", "kind": 131072, "kindString": "Type parameter", @@ -15365,14 +15341,14 @@ } }, { - "id": 607, + "id": 606, "name": "Result", "kind": 131072, "kindString": "Type parameter", "flags": {} }, { - "id": 608, + "id": 607, "name": "RelationName", "kind": 131072, "kindString": "Type parameter", @@ -15383,7 +15359,7 @@ } }, { - "id": 609, + "id": 608, "name": "Relationships", "kind": 131072, "kindString": "Type parameter", @@ -15397,11 +15373,11 @@ "extendedTypes": [ { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "reference", - "id": 495, + "id": 494, "name": "Result" } ], @@ -15411,20 +15387,20 @@ "extendedBy": [ { "type": "reference", - "id": 144, + "id": 143, "name": "PostgrestFilterBuilder" } ] }, { - "id": 645, + "id": 644, "name": "PostgrestResponseFailure", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 648, + "id": 647, "name": "count", "kind": 1024, "kindString": "Property", @@ -15442,7 +15418,7 @@ } }, { - "id": 647, + "id": 646, "name": "data", "kind": 1024, "kindString": "Property", @@ -15460,7 +15436,7 @@ } }, { - "id": 646, + "id": 645, "name": "error", "kind": 1024, "kindString": "Property", @@ -15474,12 +15450,12 @@ ], "type": { "type": "reference", - "id": 662, + "id": 661, "name": "PostgrestError" } }, { - "id": 649, + "id": 648, "name": "status", "kind": 1024, "kindString": "Property", @@ -15501,7 +15477,7 @@ } }, { - "id": 650, + "id": 649, "name": "statusText", "kind": 1024, "kindString": "Property", @@ -15528,11 +15504,11 @@ "title": "Properties", "kind": 1024, "children": [ - 648, 647, 646, - 649, - 650 + 645, + 648, + 649 ] } ], @@ -15551,14 +15527,14 @@ ] }, { - "id": 651, + "id": 650, "name": "PostgrestResponseSuccess", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 654, + "id": 653, "name": "count", "kind": 1024, "kindString": "Property", @@ -15585,7 +15561,7 @@ } }, { - "id": 653, + "id": 652, "name": "data", "kind": 1024, "kindString": "Property", @@ -15599,12 +15575,12 @@ ], "type": { "type": "reference", - "id": 657, + "id": 656, "name": "T" } }, { - "id": 652, + "id": 651, "name": "error", "kind": 1024, "kindString": "Property", @@ -15622,7 +15598,7 @@ } }, { - "id": 655, + "id": 654, "name": "status", "kind": 1024, "kindString": "Property", @@ -15644,7 +15620,7 @@ } }, { - "id": 656, + "id": 655, "name": "statusText", "kind": 1024, "kindString": "Property", @@ -15671,11 +15647,11 @@ "title": "Properties", "kind": 1024, "children": [ - 654, 653, 652, - 655, - 656 + 651, + 654, + 655 ] } ], @@ -15688,7 +15664,7 @@ ], "typeParameter": [ { - "id": 657, + "id": 656, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -15703,7 +15679,7 @@ ] }, { - "id": 662, + "id": 661, "name": "PostgrestError", "kind": 4194304, "kindString": "Type alias", @@ -15722,14 +15698,14 @@ "type": { "type": "reflection", "declaration": { - "id": 663, + "id": 662, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 667, + "id": 666, "name": "code", "kind": 1024, "kindString": "Property", @@ -15747,7 +15723,7 @@ } }, { - "id": 665, + "id": 664, "name": "details", "kind": 1024, "kindString": "Property", @@ -15765,7 +15741,7 @@ } }, { - "id": 666, + "id": 665, "name": "hint", "kind": 1024, "kindString": "Property", @@ -15783,7 +15759,7 @@ } }, { - "id": 664, + "id": 663, "name": "message", "kind": 1024, "kindString": "Property", @@ -15806,10 +15782,10 @@ "title": "Properties", "kind": 1024, "children": [ - 667, - 665, 666, - 664 + 664, + 665, + 663 ] } ], @@ -15824,7 +15800,7 @@ } }, { - "id": 660, + "id": 659, "name": "PostgrestMaybeSingleResponse", "kind": 4194304, "kindString": "Type alias", @@ -15838,7 +15814,7 @@ ], "typeParameter": [ { - "id": 661, + "id": 660, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -15847,14 +15823,14 @@ ], "type": { "type": "reference", - "id": 658, + "id": 657, "typeArguments": [ { "type": "union", "types": [ { "type": "reference", - "id": 661, + "id": 660, "name": "T" }, { @@ -15868,7 +15844,7 @@ } }, { - "id": 643, + "id": 642, "name": "PostgrestResponse", "kind": 4194304, "kindString": "Type alias", @@ -15882,7 +15858,7 @@ ], "typeParameter": [ { - "id": 644, + "id": 643, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -15891,13 +15867,13 @@ ], "type": { "type": "reference", - "id": 658, + "id": 657, "typeArguments": [ { "type": "array", "elementType": { "type": "reference", - "id": 644, + "id": 643, "name": "T" } } @@ -15906,7 +15882,7 @@ } }, { - "id": 658, + "id": 657, "name": "PostgrestSingleResponse", "kind": 4194304, "kindString": "Type alias", @@ -15920,7 +15896,7 @@ ], "typeParameter": [ { - "id": 659, + "id": 658, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -15932,11 +15908,11 @@ "types": [ { "type": "reference", - "id": 651, + "id": 650, "typeArguments": [ { "type": "reference", - "id": 659, + "id": 658, "name": "T" } ], @@ -15944,7 +15920,7 @@ }, { "type": "reference", - "id": 645, + "id": 644, "name": "PostgrestResponseFailure" } ] @@ -15956,29 +15932,29 @@ "title": "Classes", "kind": 128, "children": [ - 610, + 609, 1, - 144, - 57, - 490 + 143, + 56, + 489 ] }, { "title": "Interfaces", "kind": 256, "children": [ - 645, - 651 + 644, + 650 ] }, { "title": "Type Aliases", "kind": 4194304, "children": [ - 662, - 660, - 643, - 658 + 661, + 659, + 642, + 657 ] } ], diff --git a/apps/docs/spec/enrichments/tsdoc_v2/postgrest_dereferenced.json b/apps/docs/spec/enrichments/tsdoc_v2/postgrest_dereferenced.json index a8afd821eaa..d66bb39748b 100644 --- a/apps/docs/spec/enrichments/tsdoc_v2/postgrest_dereferenced.json +++ b/apps/docs/spec/enrichments/tsdoc_v2/postgrest_dereferenced.json @@ -7,7 +7,7 @@ "originalName": "", "children": [ { - "id": 610, + "id": 609, "name": "PostgrestBuilder", "kind": 128, "kindString": "Class", @@ -16,7 +16,7 @@ }, "children": [ { - "id": 611, + "id": 610, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -24,20 +24,20 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 19, + "line": 20, "character": 2 } ], "signatures": [ { - "id": 612, + "id": 611, "name": "new PostgrestBuilder", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "typeParameter": [ { - "id": 613, + "id": 612, "name": "Result", "kind": 131072, "kindString": "Type parameter", @@ -46,24 +46,24 @@ ], "parameters": [ { - "id": 614, + "id": 613, "name": "builder", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "reference", - "id": 613, + "id": 612, "name": "Result" } ], "name": "default", "dereferenced": { - "id": 610, + "id": 609, "name": "PostgrestBuilder", "kind": 128, "kindString": "Class", @@ -76,43 +76,43 @@ "title": "Constructors", "kind": 512, "children": [ - 611 + 610 ] }, { "title": "Properties", "kind": 1024, "children": [ - 619, - 622, - 617, - 627, - 615, 618, - 620, 621, - 616 + 616, + 626, + 614, + 617, + 619, + 620, + 615 ] }, { "title": "Methods", "kind": 2048, "children": [ - 630, - 628 + 629, + 627 ] } ], "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 6, + "line": 7, "character": 30 } ], "typeParameter": [ { - "id": 642, + "id": 641, "name": "Result", "kind": 131072, "kindString": "Type parameter", @@ -122,7 +122,7 @@ "extendedBy": [ { "type": "reference", - "id": 490, + "id": 489, "name": "PostgrestTransformBuilder" } ], @@ -132,11 +132,11 @@ "typeArguments": [ { "type": "reference", - "id": 658, + "id": 657, "typeArguments": [ { "type": "reference", - "id": 613, + "id": 612, "name": "Result" } ], @@ -154,11 +154,11 @@ ], "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "reference", - "id": 613, + "id": 612, "name": "Result" } ], @@ -168,7 +168,7 @@ ] }, { - "id": 619, + "id": 618, "name": "body", "kind": 1024, "kindString": "Property", @@ -179,7 +179,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 13, + "line": 14, "character": 12 } ], @@ -189,7 +189,7 @@ } }, { - "id": 622, + "id": 621, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -199,28 +199,28 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 16, + "line": 17, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 623, + "id": 622, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 624, + "id": 623, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 625, + "id": 624, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -244,7 +244,7 @@ } }, { - "id": 626, + "id": 625, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -279,7 +279,7 @@ } }, { - "id": 617, + "id": 616, "name": "headers", "kind": 1024, "kindString": "Property", @@ -289,7 +289,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 11, + "line": 12, "character": 12 } ], @@ -311,7 +311,7 @@ } }, { - "id": 627, + "id": 626, "name": "isMaybeSingle", "kind": 1024, "kindString": "Property", @@ -321,7 +321,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 17, + "line": 18, "character": 12 } ], @@ -331,7 +331,7 @@ } }, { - "id": 615, + "id": 614, "name": "method", "kind": 1024, "kindString": "Property", @@ -341,7 +341,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 9, + "line": 10, "character": 12 } ], @@ -372,7 +372,7 @@ } }, { - "id": 618, + "id": 617, "name": "schema", "kind": 1024, "kindString": "Property", @@ -383,7 +383,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 12, + "line": 13, "character": 12 } ], @@ -393,7 +393,7 @@ } }, { - "id": 620, + "id": 619, "name": "shouldThrowOnError", "kind": 1024, "kindString": "Property", @@ -403,7 +403,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 14, + "line": 15, "character": 12 } ], @@ -414,7 +414,7 @@ "defaultValue": "false" }, { - "id": 621, + "id": 620, "name": "signal", "kind": 1024, "kindString": "Property", @@ -425,7 +425,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 15, + "line": 16, "character": 12 } ], @@ -437,7 +437,7 @@ } }, { - "id": 616, + "id": 615, "name": "url", "kind": 1024, "kindString": "Property", @@ -447,7 +447,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 10, + "line": 11, "character": 12 } ], @@ -459,7 +459,7 @@ } }, { - "id": 630, + "id": 629, "name": "then", "kind": 2048, "kindString": "Method", @@ -467,31 +467,31 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 49, + "line": 50, "character": 2 } ], "signatures": [ { - "id": 631, + "id": 630, "name": "then", "kind": 4096, "kindString": "Call signature", "flags": {}, "typeParameter": [ { - "id": 632, + "id": 631, "name": "TResult1", "kind": 131072, "kindString": "Type parameter", "flags": {}, "default": { "type": "reference", - "id": 658, + "id": 657, "typeArguments": [ { "type": "reference", - "id": 613, + "id": 612, "name": "Result" } ], @@ -499,7 +499,7 @@ } }, { - "id": 633, + "id": 632, "name": "TResult2", "kind": 131072, "kindString": "Type parameter", @@ -512,7 +512,7 @@ ], "parameters": [ { - "id": 634, + "id": 633, "name": "onfulfilled", "kind": 32768, "kindString": "Parameter", @@ -529,32 +529,32 @@ { "type": "reflection", "declaration": { - "id": 635, + "id": 634, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 636, + "id": 635, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 637, + "id": 636, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 658, + "id": 657, "typeArguments": [ { "type": "reference", - "id": 613, + "id": 612, "name": "Result" } ], @@ -567,7 +567,7 @@ "types": [ { "type": "reference", - "id": 475, + "id": 474, "name": "TResult1" }, { @@ -575,7 +575,7 @@ "typeArguments": [ { "type": "reference", - "id": 475, + "id": 474, "name": "TResult1" } ], @@ -593,7 +593,7 @@ } }, { - "id": 638, + "id": 637, "name": "onrejected", "kind": 32768, "kindString": "Parameter", @@ -610,21 +610,21 @@ { "type": "reflection", "declaration": { - "id": 639, + "id": 638, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 640, + "id": 639, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 641, + "id": 640, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -640,7 +640,7 @@ "types": [ { "type": "reference", - "id": 476, + "id": 475, "name": "TResult2" }, { @@ -648,7 +648,7 @@ "typeArguments": [ { "type": "reference", - "id": 476, + "id": 475, "name": "TResult2" } ], @@ -674,12 +674,12 @@ "types": [ { "type": "reference", - "id": 475, + "id": 474, "name": "TResult1" }, { "type": "reference", - "id": 476, + "id": 475, "name": "TResult2" } ] @@ -701,7 +701,7 @@ } }, { - "id": 628, + "id": 627, "name": "throwOnError", "kind": 2048, "kindString": "Method", @@ -709,13 +709,13 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 44, + "line": 45, "character": 2 } ], "signatures": [ { - "id": 629, + "id": 628, "name": "throwOnError", "kind": 4096, "kindString": "Call signature", @@ -726,11 +726,11 @@ }, "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "reference", - "id": 613, + "id": 612, "name": "Result" } ], @@ -745,43 +745,43 @@ "title": "Constructors", "kind": 512, "children": [ - 611 + 610 ] }, { "title": "Properties", "kind": 1024, "children": [ - 619, - 622, - 617, - 627, - 615, 618, - 620, 621, - 616 + 616, + 626, + 614, + 617, + 619, + 620, + 615 ] }, { "title": "Methods", "kind": 2048, "children": [ - 630, - 628 + 629, + 627 ] } ], "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 6, + "line": 7, "character": 30 } ], "typeParameter": [ { - "id": 642, + "id": 641, "name": "Result", "kind": 131072, "kindString": "Type parameter", @@ -791,7 +791,7 @@ "extendedBy": [ { "type": "reference", - "id": 490, + "id": 489, "name": "PostgrestTransformBuilder" } ], @@ -801,11 +801,11 @@ "typeArguments": [ { "type": "reference", - "id": 658, + "id": 657, "typeArguments": [ { "type": "reference", - "id": 613, + "id": 612, "name": "Result" } ], @@ -1415,7 +1415,7 @@ ], "type": { "type": "reference", - "id": 57, + "id": 56, "typeArguments": [ { "type": "reference", @@ -1544,7 +1544,7 @@ ], "type": { "type": "reference", - "id": 57, + "id": 56, "typeArguments": [ { "type": "reference", @@ -1619,61 +1619,11 @@ ], "name": "default" } - }, - { - "id": 38, - "name": "from", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Perform a query on a table or a view." - }, - "parameters": [ - { - "id": 39, - "name": "relation", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "shortText": "The table or view name to query\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "id": 57, - "typeArguments": [ - { - "type": "reference", - "id": 6, - "name": "Schema" - }, - { - "type": "intrinsic", - "name": "any" - }, - { - "type": "intrinsic", - "name": "any" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "default" - } } ] }, { - "id": 44, + "id": 42, "name": "rpc", "kind": 2048, "kindString": "Method", @@ -1681,13 +1631,13 @@ "sources": [ { "fileName": "src/PostgrestClient.ts", - "line": 123, + "line": 124, "character": 2 } ], "signatures": [ { - "id": 45, + "id": 43, "name": "rpc", "kind": 4096, "kindString": "Call signature", @@ -1697,8 +1647,8 @@ }, "typeParameter": [ { - "id": 46, - "name": "FunctionName", + "id": 44, + "name": "FnName", "kind": 131072, "kindString": "Type parameter", "flags": {}, @@ -1708,8 +1658,8 @@ } }, { - "id": 47, - "name": "Function_", + "id": 45, + "name": "Fn", "kind": 131072, "kindString": "Type parameter", "flags": {}, @@ -1721,7 +1671,7 @@ ], "parameters": [ { - "id": 48, + "id": 46, "name": "fn", "kind": 32768, "kindString": "Parameter", @@ -1731,13 +1681,13 @@ }, "type": { "type": "reference", - "id": 46, - "name": "FunctionName", + "id": 44, + "name": "FnName", "dereferenced": {} } }, { - "id": 49, + "id": 47, "name": "args", "kind": 32768, "kindString": "Parameter", @@ -1753,14 +1703,14 @@ }, "objectType": { "type": "reference", - "id": 47, - "name": "Function_" + "id": 45, + "name": "Fn" } }, "defaultValue": "{}" }, { - "id": 50, + "id": 48, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -1772,14 +1722,14 @@ "type": { "type": "reflection", "declaration": { - "id": 51, + "id": 49, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 53, + "id": 52, "name": "count", "kind": 1024, "kindString": "Property", @@ -1815,7 +1765,30 @@ } }, { - "id": 52, + "id": 51, + "name": "get", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "When set to `true`, the function will be called with\nread-only access mode." + }, + "sources": [ + { + "fileName": "src/PostgrestClient.ts", + "line": 133, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 50, "name": "head", "kind": 1024, "kindString": "Property", @@ -1828,7 +1801,7 @@ "sources": [ { "fileName": "src/PostgrestClient.ts", - "line": 133, + "line": 132, "character": 6 } ], @@ -1843,8 +1816,9 @@ "title": "Properties", "kind": 1024, "children": [ - 53, - 52 + 52, + 51, + 50 ] } ] @@ -1855,7 +1829,7 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", @@ -1872,8 +1846,8 @@ }, "objectType": { "type": "reference", - "id": 47, - "name": "Function_" + "id": 45, + "name": "Fn" } }, "extendsType": { @@ -1948,8 +1922,8 @@ }, "objectType": { "type": "reference", - "id": 47, - "name": "Function_" + "id": 45, + "name": "Fn" } }, { @@ -1967,7 +1941,7 @@ ] }, { - "id": 40, + "id": 38, "name": "schema", "kind": 2048, "kindString": "Method", @@ -1975,13 +1949,13 @@ "sources": [ { "fileName": "src/PostgrestClient.ts", - "line": 88, + "line": 87, "character": 2 } ], "signatures": [ { - "id": 41, + "id": 39, "name": "schema", "kind": 4096, "kindString": "Call signature", @@ -1992,7 +1966,7 @@ }, "typeParameter": [ { - "id": 42, + "id": 40, "name": "DynamicSchema", "kind": 131072, "kindString": "Type parameter", @@ -2005,7 +1979,7 @@ ], "parameters": [ { - "id": 43, + "id": 41, "name": "schema", "kind": 32768, "kindString": "Parameter", @@ -2015,7 +1989,7 @@ }, "type": { "type": "reference", - "id": 42, + "id": 40, "name": "DynamicSchema", "dereferenced": {} } @@ -2032,7 +2006,7 @@ }, { "type": "reference", - "id": 42, + "id": 40, "name": "DynamicSchema" }, { @@ -2041,7 +2015,7 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 42, + "id": 40, "name": "DynamicSchema" }, "objectType": { @@ -2100,8 +2074,8 @@ "kind": 2048, "children": [ 25, - 44, - 40 + 42, + 38 ] } ], @@ -2114,7 +2088,7 @@ ], "typeParameter": [ { - "id": 54, + "id": 53, "name": "Database", "kind": 131072, "kindString": "Type parameter", @@ -2128,7 +2102,7 @@ } }, { - "id": 55, + "id": 54, "name": "SchemaName", "kind": 131072, "kindString": "Type parameter", @@ -2194,7 +2168,7 @@ } }, { - "id": 56, + "id": 55, "name": "Schema", "kind": 131072, "kindString": "Type parameter", @@ -2244,28 +2218,28 @@ ] }, { - "id": 144, + "id": 143, "name": "PostgrestFilterBuilder", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 145, + "id": 144, "name": "constructor", "kind": 512, "kindString": "Constructor", "flags": {}, "signatures": [ { - "id": 146, + "id": 145, "name": "new PostgrestFilterBuilder", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "typeParameter": [ { - "id": 147, + "id": 146, "name": "Schema", "kind": 131072, "kindString": "Type parameter", @@ -2276,7 +2250,7 @@ } }, { - "id": 148, + "id": 147, "name": "Row", "kind": 131072, "kindString": "Type parameter", @@ -2299,14 +2273,14 @@ } }, { - "id": 149, + "id": 148, "name": "Result", "kind": 131072, "kindString": "Type parameter", "flags": {} }, { - "id": 150, + "id": 149, "name": "RelationName", "kind": 131072, "kindString": "Type parameter", @@ -2317,7 +2291,7 @@ } }, { - "id": 151, + "id": 150, "name": "Relationships", "kind": 131072, "kindString": "Type parameter", @@ -2330,24 +2304,24 @@ ], "parameters": [ { - "id": 152, + "id": 151, "name": "builder", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "reference", - "id": 149, + "id": 148, "name": "Result" } ], "name": "default", "dereferenced": { - "id": 610, + "id": 609, "name": "PostgrestBuilder", "kind": 128, "kindString": "Class", @@ -2356,7 +2330,7 @@ }, "children": [ { - "id": 611, + "id": 610, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -2364,20 +2338,20 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 19, + "line": 20, "character": 2 } ], "signatures": [ { - "id": 612, + "id": 611, "name": "new PostgrestBuilder", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "typeParameter": [ { - "id": 613, + "id": 612, "name": "Result", "kind": 131072, "kindString": "Type parameter", @@ -2386,18 +2360,18 @@ ], "parameters": [ { - "id": 614, + "id": 613, "name": "builder", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "reference", - "id": 613, + "id": 612, "name": "Result" } ], @@ -2408,11 +2382,11 @@ ], "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "reference", - "id": 613, + "id": 612, "name": "Result" } ], @@ -2422,7 +2396,7 @@ ] }, { - "id": 619, + "id": 618, "name": "body", "kind": 1024, "kindString": "Property", @@ -2433,7 +2407,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 13, + "line": 14, "character": 12 } ], @@ -2443,7 +2417,7 @@ } }, { - "id": 622, + "id": 621, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -2453,28 +2427,28 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 16, + "line": 17, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 623, + "id": 622, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 624, + "id": 623, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 625, + "id": 624, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -2498,7 +2472,7 @@ } }, { - "id": 626, + "id": 625, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -2533,7 +2507,7 @@ } }, { - "id": 617, + "id": 616, "name": "headers", "kind": 1024, "kindString": "Property", @@ -2543,7 +2517,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 11, + "line": 12, "character": 12 } ], @@ -2565,7 +2539,7 @@ } }, { - "id": 627, + "id": 626, "name": "isMaybeSingle", "kind": 1024, "kindString": "Property", @@ -2575,7 +2549,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 17, + "line": 18, "character": 12 } ], @@ -2585,7 +2559,7 @@ } }, { - "id": 615, + "id": 614, "name": "method", "kind": 1024, "kindString": "Property", @@ -2595,7 +2569,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 9, + "line": 10, "character": 12 } ], @@ -2626,7 +2600,7 @@ } }, { - "id": 618, + "id": 617, "name": "schema", "kind": 1024, "kindString": "Property", @@ -2637,7 +2611,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 12, + "line": 13, "character": 12 } ], @@ -2647,7 +2621,7 @@ } }, { - "id": 620, + "id": 619, "name": "shouldThrowOnError", "kind": 1024, "kindString": "Property", @@ -2657,7 +2631,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 14, + "line": 15, "character": 12 } ], @@ -2668,7 +2642,7 @@ "defaultValue": "false" }, { - "id": 621, + "id": 620, "name": "signal", "kind": 1024, "kindString": "Property", @@ -2679,7 +2653,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 15, + "line": 16, "character": 12 } ], @@ -2691,7 +2665,7 @@ } }, { - "id": 616, + "id": 615, "name": "url", "kind": 1024, "kindString": "Property", @@ -2701,7 +2675,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 10, + "line": 11, "character": 12 } ], @@ -2713,7 +2687,7 @@ } }, { - "id": 630, + "id": 629, "name": "then", "kind": 2048, "kindString": "Method", @@ -2721,31 +2695,31 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 49, + "line": 50, "character": 2 } ], "signatures": [ { - "id": 631, + "id": 630, "name": "then", "kind": 4096, "kindString": "Call signature", "flags": {}, "typeParameter": [ { - "id": 632, + "id": 631, "name": "TResult1", "kind": 131072, "kindString": "Type parameter", "flags": {}, "default": { "type": "reference", - "id": 658, + "id": 657, "typeArguments": [ { "type": "reference", - "id": 613, + "id": 612, "name": "Result" } ], @@ -2753,7 +2727,7 @@ } }, { - "id": 633, + "id": 632, "name": "TResult2", "kind": 131072, "kindString": "Type parameter", @@ -2766,7 +2740,7 @@ ], "parameters": [ { - "id": 634, + "id": 633, "name": "onfulfilled", "kind": 32768, "kindString": "Parameter", @@ -2783,32 +2757,32 @@ { "type": "reflection", "declaration": { - "id": 635, + "id": 634, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 636, + "id": 635, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 637, + "id": 636, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 658, + "id": 657, "typeArguments": [ { "type": "reference", - "id": 613, + "id": 612, "name": "Result" } ], @@ -2821,7 +2795,7 @@ "types": [ { "type": "reference", - "id": 475, + "id": 474, "name": "TResult1" }, { @@ -2829,7 +2803,7 @@ "typeArguments": [ { "type": "reference", - "id": 475, + "id": 474, "name": "TResult1" } ], @@ -2847,7 +2821,7 @@ } }, { - "id": 638, + "id": 637, "name": "onrejected", "kind": 32768, "kindString": "Parameter", @@ -2864,21 +2838,21 @@ { "type": "reflection", "declaration": { - "id": 639, + "id": 638, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 640, + "id": 639, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 641, + "id": 640, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -2894,7 +2868,7 @@ "types": [ { "type": "reference", - "id": 476, + "id": 475, "name": "TResult2" }, { @@ -2902,7 +2876,7 @@ "typeArguments": [ { "type": "reference", - "id": 476, + "id": 475, "name": "TResult2" } ], @@ -2928,12 +2902,12 @@ "types": [ { "type": "reference", - "id": 475, + "id": 474, "name": "TResult1" }, { "type": "reference", - "id": 476, + "id": 475, "name": "TResult2" } ] @@ -2955,7 +2929,7 @@ } }, { - "id": 628, + "id": 627, "name": "throwOnError", "kind": 2048, "kindString": "Method", @@ -2963,13 +2937,13 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 44, + "line": 45, "character": 2 } ], "signatures": [ { - "id": 629, + "id": 628, "name": "throwOnError", "kind": 4096, "kindString": "Call signature", @@ -2980,11 +2954,11 @@ }, "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "reference", - "id": 613, + "id": 612, "name": "Result" } ], @@ -2999,43 +2973,43 @@ "title": "Constructors", "kind": 512, "children": [ - 611 + 610 ] }, { "title": "Properties", "kind": 1024, "children": [ - 619, - 622, - 617, - 627, - 615, 618, - 620, 621, - 616 + 616, + 626, + 614, + 617, + 619, + 620, + 615 ] }, { "title": "Methods", "kind": 2048, "children": [ - 630, - 628 + 629, + 627 ] } ], "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 6, + "line": 7, "character": 30 } ], "typeParameter": [ { - "id": 642, + "id": 641, "name": "Result", "kind": 131072, "kindString": "Type parameter", @@ -3045,7 +3019,7 @@ "extendedBy": [ { "type": "reference", - "id": 490, + "id": 489, "name": "PostgrestTransformBuilder" } ], @@ -3055,11 +3029,11 @@ "typeArguments": [ { "type": "reference", - "id": 658, + "id": 657, "typeArguments": [ { "type": "reference", - "id": 613, + "id": 612, "name": "Result" } ], @@ -3077,31 +3051,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -3109,19 +3083,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 492, + "id": 491, "name": "default.constructor" } } ], "inheritedFrom": { "type": "reference", - "id": 491, + "id": 490, "name": "default.constructor" } }, { - "id": 462, + "id": 461, "name": "body", "kind": 1024, "kindString": "Property", @@ -3132,7 +3106,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 13, + "line": 14, "character": 12 } ], @@ -3142,12 +3116,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 582, + "id": 581, "name": "default.body" } }, { - "id": 465, + "id": 464, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -3157,28 +3131,28 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 16, + "line": 17, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 466, + "id": 465, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 467, + "id": 466, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 468, + "id": 467, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -3202,7 +3176,7 @@ } }, { - "id": 469, + "id": 468, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -3237,12 +3211,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 585, + "id": 584, "name": "default.fetch" } }, { - "id": 460, + "id": 459, "name": "headers", "kind": 1024, "kindString": "Property", @@ -3252,7 +3226,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 11, + "line": 12, "character": 12 } ], @@ -3274,12 +3248,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 580, + "id": 579, "name": "default.headers" } }, { - "id": 470, + "id": 469, "name": "isMaybeSingle", "kind": 1024, "kindString": "Property", @@ -3289,7 +3263,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 17, + "line": 18, "character": 12 } ], @@ -3299,12 +3273,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 590, + "id": 589, "name": "default.isMaybeSingle" } }, { - "id": 458, + "id": 457, "name": "method", "kind": 1024, "kindString": "Property", @@ -3314,7 +3288,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 9, + "line": 10, "character": 12 } ], @@ -3345,12 +3319,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 578, + "id": 577, "name": "default.method" } }, { - "id": 461, + "id": 460, "name": "schema", "kind": 1024, "kindString": "Property", @@ -3361,7 +3335,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 12, + "line": 13, "character": 12 } ], @@ -3371,12 +3345,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 581, + "id": 580, "name": "default.schema" } }, { - "id": 463, + "id": 462, "name": "shouldThrowOnError", "kind": 1024, "kindString": "Property", @@ -3386,7 +3360,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 14, + "line": 15, "character": 12 } ], @@ -3397,12 +3371,12 @@ "defaultValue": "false", "inheritedFrom": { "type": "reference", - "id": 583, + "id": 582, "name": "default.shouldThrowOnError" } }, { - "id": 464, + "id": 463, "name": "signal", "kind": 1024, "kindString": "Property", @@ -3413,7 +3387,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 15, + "line": 16, "character": 12 } ], @@ -3425,12 +3399,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 584, + "id": 583, "name": "default.signal" } }, { - "id": 459, + "id": 458, "name": "url", "kind": 1024, "kindString": "Property", @@ -3440,7 +3414,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 10, + "line": 11, "character": 12 } ], @@ -3452,12 +3426,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 579, + "id": 578, "name": "default.url" } }, { - "id": 430, + "id": 429, "name": "abortSignal", "kind": 2048, "kindString": "Method", @@ -3471,7 +3445,7 @@ ], "signatures": [ { - "id": 431, + "id": 430, "name": "abortSignal", "kind": 4096, "kindString": "Call signature", @@ -3481,7 +3455,7 @@ }, "parameters": [ { - "id": 432, + "id": 431, "name": "signal", "kind": 32768, "kindString": "Parameter", @@ -3499,31 +3473,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -3531,19 +3505,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 551, + "id": 550, "name": "default.abortSignal" } } ], "inheritedFrom": { "type": "reference", - "id": 550, + "id": 549, "name": "default.abortSignal" } }, { - "id": 274, + "id": 273, "name": "containedBy", "kind": 2048, "kindString": "Method", @@ -3557,7 +3531,7 @@ ], "signatures": [ { - "id": 275, + "id": 274, "name": "containedBy", "kind": 4096, "kindString": "Call signature", @@ -3567,7 +3541,7 @@ }, "typeParameter": [ { - "id": 276, + "id": 275, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -3580,7 +3554,7 @@ ], "parameters": [ { - "id": 277, + "id": 276, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -3590,13 +3564,13 @@ }, "type": { "type": "reference", - "id": 276, + "id": 275, "name": "ColumnName", "dereferenced": {} } }, { - "id": 278, + "id": 277, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -3636,12 +3610,12 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 276, + "id": 275, "name": "ColumnName" }, "objectType": { "type": "reference", - "id": 148, + "id": 147, "name": "Row" } } @@ -3653,31 +3627,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -3685,7 +3659,7 @@ } }, { - "id": 279, + "id": 278, "name": "containedBy", "kind": 4096, "kindString": "Call signature", @@ -3695,7 +3669,7 @@ }, "parameters": [ { - "id": 280, + "id": 279, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -3709,7 +3683,7 @@ } }, { - "id": 281, + "id": 280, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -3757,31 +3731,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -3791,7 +3765,7 @@ ] }, { - "id": 266, + "id": 265, "name": "contains", "kind": 2048, "kindString": "Method", @@ -3805,7 +3779,7 @@ ], "signatures": [ { - "id": 267, + "id": 266, "name": "contains", "kind": 4096, "kindString": "Call signature", @@ -3815,7 +3789,7 @@ }, "typeParameter": [ { - "id": 268, + "id": 267, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -3828,7 +3802,7 @@ ], "parameters": [ { - "id": 269, + "id": 268, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -3838,13 +3812,13 @@ }, "type": { "type": "reference", - "id": 268, + "id": 267, "name": "ColumnName", "dereferenced": {} } }, { - "id": 270, + "id": 269, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -3884,12 +3858,12 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 268, + "id": 267, "name": "ColumnName" }, "objectType": { "type": "reference", - "id": 148, + "id": 147, "name": "Row" } } @@ -3901,31 +3875,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -3933,7 +3907,7 @@ } }, { - "id": 271, + "id": 270, "name": "contains", "kind": 4096, "kindString": "Call signature", @@ -3943,7 +3917,7 @@ }, "parameters": [ { - "id": 272, + "id": 271, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -3957,7 +3931,7 @@ } }, { - "id": 273, + "id": 272, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -4005,31 +3979,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -4039,7 +4013,7 @@ ] }, { - "id": 439, + "id": 438, "name": "csv", "kind": 2048, "kindString": "Method", @@ -4053,7 +4027,7 @@ ], "signatures": [ { - "id": 440, + "id": 439, "name": "csv", "kind": 4096, "kindString": "Call signature", @@ -4063,7 +4037,7 @@ }, "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "intrinsic", @@ -4074,19 +4048,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 560, + "id": 559, "name": "default.csv" } } ], "inheritedFrom": { "type": "reference", - "id": 559, + "id": 558, "name": "default.csv" } }, { - "id": 153, + "id": 152, "name": "eq", "kind": 2048, "kindString": "Method", @@ -4100,7 +4074,7 @@ ], "signatures": [ { - "id": 154, + "id": 153, "name": "eq", "kind": 4096, "kindString": "Call signature", @@ -4111,7 +4085,7 @@ }, "typeParameter": [ { - "id": 155, + "id": 154, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -4124,7 +4098,7 @@ ], "parameters": [ { - "id": 156, + "id": 155, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -4134,13 +4108,13 @@ }, "type": { "type": "reference", - "id": 155, + "id": 154, "name": "ColumnName", "dereferenced": {} } }, { - "id": 157, + "id": 156, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -4155,12 +4129,12 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 155, + "id": 154, "name": "ColumnName" }, "objectType": { "type": "reference", - "id": 148, + "id": 147, "name": "Row" } } @@ -4173,31 +4147,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -4205,7 +4179,7 @@ } }, { - "id": 158, + "id": 157, "name": "eq", "kind": 4096, "kindString": "Call signature", @@ -4216,7 +4190,7 @@ }, "typeParameter": [ { - "id": 159, + "id": 158, "name": "Value", "kind": 131072, "kindString": "Type parameter", @@ -4229,7 +4203,7 @@ ], "parameters": [ { - "id": 160, + "id": 159, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -4243,7 +4217,7 @@ } }, { - "id": 161, + "id": 160, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -4256,7 +4230,7 @@ "typeArguments": [ { "type": "reference", - "id": 159, + "id": 158, "name": "Value" } ], @@ -4268,31 +4242,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -4302,7 +4276,7 @@ ] }, { - "id": 443, + "id": 442, "name": "explain", "kind": 2048, "kindString": "Method", @@ -4310,23 +4284,24 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 255, + "line": 259, "character": 2 } ], "signatures": [ { - "id": 444, + "id": 443, "name": "explain", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Return `data` as the EXPLAIN plan for the query." + "shortText": "Return `data` as the EXPLAIN plan for the query.", + "text": "You need to enable the\n[db_plan_enabled](https://supabase.com/docs/guides/database/debugging-performance#enabling-explain)\nsetting before using this method.\n" }, "parameters": [ { - "id": 445, + "id": 444, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -4338,14 +4313,14 @@ "type": { "type": "reflection", "declaration": { - "id": 446, + "id": 445, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 447, + "id": 446, "name": "analyze", "kind": 1024, "kindString": "Property", @@ -4358,7 +4333,7 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 263, + "line": 267, "character": 4 } ], @@ -4368,7 +4343,7 @@ } }, { - "id": 450, + "id": 449, "name": "buffers", "kind": 1024, "kindString": "Property", @@ -4381,7 +4356,7 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 266, + "line": 270, "character": 4 } ], @@ -4391,7 +4366,7 @@ } }, { - "id": 452, + "id": 451, "name": "format", "kind": 1024, "kindString": "Property", @@ -4404,7 +4379,7 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 268, + "line": 272, "character": 4 } ], @@ -4423,7 +4398,7 @@ } }, { - "id": 449, + "id": 448, "name": "settings", "kind": 1024, "kindString": "Property", @@ -4436,7 +4411,7 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 265, + "line": 269, "character": 4 } ], @@ -4446,7 +4421,7 @@ } }, { - "id": 448, + "id": 447, "name": "verbose", "kind": 1024, "kindString": "Property", @@ -4459,7 +4434,7 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 264, + "line": 268, "character": 4 } ], @@ -4469,7 +4444,7 @@ } }, { - "id": 451, + "id": 450, "name": "wal", "kind": 1024, "kindString": "Property", @@ -4482,7 +4457,7 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 267, + "line": 271, "character": 4 } ], @@ -4497,12 +4472,12 @@ "title": "Properties", "kind": 1024, "children": [ - 447, - 450, - 452, + 446, 449, + 451, 448, - 451 + 447, + 450 ] } ] @@ -4516,7 +4491,7 @@ "types": [ { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "intrinsic", @@ -4527,7 +4502,7 @@ }, { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "array", @@ -4555,19 +4530,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 564, + "id": 563, "name": "default.explain" } } ], "inheritedFrom": { "type": "reference", - "id": 563, + "id": 562, "name": "default.explain" } }, { - "id": 369, + "id": 368, "name": "filter", "kind": 2048, "kindString": "Method", @@ -4581,7 +4556,7 @@ ], "signatures": [ { - "id": 370, + "id": 369, "name": "filter", "kind": 4096, "kindString": "Call signature", @@ -4592,7 +4567,7 @@ }, "typeParameter": [ { - "id": 371, + "id": 370, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -4605,7 +4580,7 @@ ], "parameters": [ { - "id": 372, + "id": 371, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -4615,13 +4590,13 @@ }, "type": { "type": "reference", - "id": 371, + "id": 370, "name": "ColumnName", "dereferenced": {} } }, { - "id": 373, + "id": 372, "name": "operator", "kind": 32768, "kindString": "Parameter", @@ -4728,7 +4703,7 @@ } }, { - "id": 374, + "id": 373, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -4744,31 +4719,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -4776,7 +4751,7 @@ } }, { - "id": 375, + "id": 374, "name": "filter", "kind": 4096, "kindString": "Call signature", @@ -4787,7 +4762,7 @@ }, "parameters": [ { - "id": 376, + "id": 375, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -4801,7 +4776,7 @@ } }, { - "id": 377, + "id": 376, "name": "operator", "kind": 32768, "kindString": "Parameter", @@ -4815,7 +4790,7 @@ } }, { - "id": 378, + "id": 377, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -4831,31 +4806,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -4865,7 +4840,7 @@ ] }, { - "id": 441, + "id": 440, "name": "geojson", "kind": 2048, "kindString": "Method", @@ -4879,7 +4854,7 @@ ], "signatures": [ { - "id": 442, + "id": 441, "name": "geojson", "kind": 4096, "kindString": "Call signature", @@ -4889,7 +4864,7 @@ }, "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "reference", @@ -4912,19 +4887,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 562, + "id": 561, "name": "default.geojson" } } ], "inheritedFrom": { "type": "reference", - "id": 561, + "id": 560, "name": "default.geojson" } }, { - "id": 170, + "id": 169, "name": "gt", "kind": 2048, "kindString": "Method", @@ -4938,7 +4913,7 @@ ], "signatures": [ { - "id": 171, + "id": 170, "name": "gt", "kind": 4096, "kindString": "Call signature", @@ -4948,7 +4923,7 @@ }, "typeParameter": [ { - "id": 172, + "id": 171, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -4961,7 +4936,7 @@ ], "parameters": [ { - "id": 173, + "id": 172, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -4971,13 +4946,13 @@ }, "type": { "type": "reference", - "id": 172, + "id": 171, "name": "ColumnName", "dereferenced": {} } }, { - "id": 174, + "id": 173, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -4989,12 +4964,12 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 172, + "id": 171, "name": "ColumnName" }, "objectType": { "type": "reference", - "id": 148, + "id": 147, "name": "Row" } } @@ -5002,31 +4977,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -5034,7 +5009,7 @@ } }, { - "id": 175, + "id": 174, "name": "gt", "kind": 4096, "kindString": "Call signature", @@ -5044,7 +5019,7 @@ }, "parameters": [ { - "id": 176, + "id": 175, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -5058,7 +5033,7 @@ } }, { - "id": 177, + "id": 176, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -5074,31 +5049,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -5108,7 +5083,7 @@ ] }, { - "id": 178, + "id": 177, "name": "gte", "kind": 2048, "kindString": "Method", @@ -5122,7 +5097,7 @@ ], "signatures": [ { - "id": 179, + "id": 178, "name": "gte", "kind": 4096, "kindString": "Call signature", @@ -5132,7 +5107,7 @@ }, "typeParameter": [ { - "id": 180, + "id": 179, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -5145,7 +5120,7 @@ ], "parameters": [ { - "id": 181, + "id": 180, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -5155,13 +5130,13 @@ }, "type": { "type": "reference", - "id": 180, + "id": 179, "name": "ColumnName", "dereferenced": {} } }, { - "id": 182, + "id": 181, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -5173,12 +5148,12 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 180, + "id": 179, "name": "ColumnName" }, "objectType": { "type": "reference", - "id": 148, + "id": 147, "name": "Row" } } @@ -5186,31 +5161,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -5218,7 +5193,7 @@ } }, { - "id": 183, + "id": 182, "name": "gte", "kind": 4096, "kindString": "Call signature", @@ -5228,7 +5203,7 @@ }, "parameters": [ { - "id": 184, + "id": 183, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -5242,7 +5217,7 @@ } }, { - "id": 185, + "id": 184, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -5258,31 +5233,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -5292,7 +5267,7 @@ ] }, { - "id": 226, + "id": 225, "name": "ilike", "kind": 2048, "kindString": "Method", @@ -5306,7 +5281,7 @@ ], "signatures": [ { - "id": 227, + "id": 226, "name": "ilike", "kind": 4096, "kindString": "Call signature", @@ -5316,7 +5291,7 @@ }, "typeParameter": [ { - "id": 228, + "id": 227, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -5329,7 +5304,7 @@ ], "parameters": [ { - "id": 229, + "id": 228, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -5339,13 +5314,13 @@ }, "type": { "type": "reference", - "id": 228, + "id": 227, "name": "ColumnName", "dereferenced": {} } }, { - "id": 230, + "id": 229, "name": "pattern", "kind": 32768, "kindString": "Parameter", @@ -5361,31 +5336,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -5393,7 +5368,7 @@ } }, { - "id": 231, + "id": 230, "name": "ilike", "kind": 4096, "kindString": "Call signature", @@ -5403,7 +5378,7 @@ }, "parameters": [ { - "id": 232, + "id": 231, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -5417,7 +5392,7 @@ } }, { - "id": 233, + "id": 232, "name": "pattern", "kind": 32768, "kindString": "Parameter", @@ -5433,31 +5408,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -5467,7 +5442,7 @@ ] }, { - "id": 234, + "id": 233, "name": "ilikeAllOf", "kind": 2048, "kindString": "Method", @@ -5481,7 +5456,7 @@ ], "signatures": [ { - "id": 235, + "id": 234, "name": "ilikeAllOf", "kind": 4096, "kindString": "Call signature", @@ -5491,7 +5466,7 @@ }, "typeParameter": [ { - "id": 236, + "id": 235, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -5504,7 +5479,7 @@ ], "parameters": [ { - "id": 237, + "id": 236, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -5514,13 +5489,13 @@ }, "type": { "type": "reference", - "id": 236, + "id": 235, "name": "ColumnName", "dereferenced": {} } }, { - "id": 238, + "id": 237, "name": "patterns", "kind": 32768, "kindString": "Parameter", @@ -5543,31 +5518,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -5575,7 +5550,7 @@ } }, { - "id": 239, + "id": 238, "name": "ilikeAllOf", "kind": 4096, "kindString": "Call signature", @@ -5585,7 +5560,7 @@ }, "parameters": [ { - "id": 240, + "id": 239, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -5599,7 +5574,7 @@ } }, { - "id": 241, + "id": 240, "name": "patterns", "kind": 32768, "kindString": "Parameter", @@ -5622,31 +5597,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -5656,7 +5631,7 @@ ] }, { - "id": 242, + "id": 241, "name": "ilikeAnyOf", "kind": 2048, "kindString": "Method", @@ -5670,7 +5645,7 @@ ], "signatures": [ { - "id": 243, + "id": 242, "name": "ilikeAnyOf", "kind": 4096, "kindString": "Call signature", @@ -5680,7 +5655,7 @@ }, "typeParameter": [ { - "id": 244, + "id": 243, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -5693,7 +5668,7 @@ ], "parameters": [ { - "id": 245, + "id": 244, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -5703,13 +5678,13 @@ }, "type": { "type": "reference", - "id": 244, + "id": 243, "name": "ColumnName", "dereferenced": {} } }, { - "id": 246, + "id": 245, "name": "patterns", "kind": 32768, "kindString": "Parameter", @@ -5732,31 +5707,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -5764,7 +5739,7 @@ } }, { - "id": 247, + "id": 246, "name": "ilikeAnyOf", "kind": 4096, "kindString": "Call signature", @@ -5774,7 +5749,7 @@ }, "parameters": [ { - "id": 248, + "id": 247, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -5788,7 +5763,7 @@ } }, { - "id": 249, + "id": 248, "name": "patterns", "kind": 32768, "kindString": "Parameter", @@ -5811,31 +5786,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -5845,7 +5820,7 @@ ] }, { - "id": 258, + "id": 257, "name": "in", "kind": 2048, "kindString": "Method", @@ -5859,7 +5834,7 @@ ], "signatures": [ { - "id": 259, + "id": 258, "name": "in", "kind": 4096, "kindString": "Call signature", @@ -5869,7 +5844,7 @@ }, "typeParameter": [ { - "id": 260, + "id": 259, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -5882,7 +5857,7 @@ ], "parameters": [ { - "id": 261, + "id": 260, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -5892,13 +5867,13 @@ }, "type": { "type": "reference", - "id": 260, + "id": 259, "name": "ColumnName", "dereferenced": {} } }, { - "id": 262, + "id": 261, "name": "values", "kind": 32768, "kindString": "Parameter", @@ -5915,12 +5890,12 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 260, + "id": 259, "name": "ColumnName" }, "objectType": { "type": "reference", - "id": 148, + "id": 147, "name": "Row" } } @@ -5930,31 +5905,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -5962,7 +5937,7 @@ } }, { - "id": 263, + "id": 262, "name": "in", "kind": 4096, "kindString": "Call signature", @@ -5972,7 +5947,7 @@ }, "parameters": [ { - "id": 264, + "id": 263, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -5986,7 +5961,7 @@ } }, { - "id": 265, + "id": 264, "name": "values", "kind": 32768, "kindString": "Parameter", @@ -6009,31 +5984,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -6043,7 +6018,7 @@ ] }, { - "id": 250, + "id": 249, "name": "is", "kind": 2048, "kindString": "Method", @@ -6057,7 +6032,7 @@ ], "signatures": [ { - "id": 251, + "id": 250, "name": "is", "kind": 4096, "kindString": "Call signature", @@ -6068,7 +6043,7 @@ }, "typeParameter": [ { - "id": 252, + "id": 251, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -6081,7 +6056,7 @@ ], "parameters": [ { - "id": 253, + "id": 252, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -6091,13 +6066,13 @@ }, "type": { "type": "reference", - "id": 252, + "id": 251, "name": "ColumnName", "dereferenced": {} } }, { - "id": 254, + "id": 253, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -6115,12 +6090,12 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 252, + "id": 251, "name": "ColumnName" }, "objectType": { "type": "reference", - "id": 148, + "id": 147, "name": "Row" } }, @@ -6137,12 +6112,12 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 252, + "id": 251, "name": "ColumnName" }, "objectType": { "type": "reference", - "id": 148, + "id": 147, "name": "Row" } }, @@ -6159,12 +6134,12 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 252, + "id": 251, "name": "ColumnName" }, "objectType": { "type": "reference", - "id": 148, + "id": 147, "name": "Row" } }, @@ -6180,31 +6155,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -6212,7 +6187,7 @@ } }, { - "id": 255, + "id": 254, "name": "is", "kind": 4096, "kindString": "Call signature", @@ -6223,7 +6198,7 @@ }, "parameters": [ { - "id": 256, + "id": 255, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -6237,7 +6212,7 @@ } }, { - "id": 257, + "id": 256, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -6262,31 +6237,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -6296,7 +6271,7 @@ ] }, { - "id": 202, + "id": 201, "name": "like", "kind": 2048, "kindString": "Method", @@ -6310,7 +6285,7 @@ ], "signatures": [ { - "id": 203, + "id": 202, "name": "like", "kind": 4096, "kindString": "Call signature", @@ -6320,7 +6295,7 @@ }, "typeParameter": [ { - "id": 204, + "id": 203, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -6333,7 +6308,7 @@ ], "parameters": [ { - "id": 205, + "id": 204, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -6343,13 +6318,13 @@ }, "type": { "type": "reference", - "id": 204, + "id": 203, "name": "ColumnName", "dereferenced": {} } }, { - "id": 206, + "id": 205, "name": "pattern", "kind": 32768, "kindString": "Parameter", @@ -6365,31 +6340,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -6397,7 +6372,7 @@ } }, { - "id": 207, + "id": 206, "name": "like", "kind": 4096, "kindString": "Call signature", @@ -6407,7 +6382,7 @@ }, "parameters": [ { - "id": 208, + "id": 207, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -6421,7 +6396,7 @@ } }, { - "id": 209, + "id": 208, "name": "pattern", "kind": 32768, "kindString": "Parameter", @@ -6437,31 +6412,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -6471,7 +6446,7 @@ ] }, { - "id": 210, + "id": 209, "name": "likeAllOf", "kind": 2048, "kindString": "Method", @@ -6485,7 +6460,7 @@ ], "signatures": [ { - "id": 211, + "id": 210, "name": "likeAllOf", "kind": 4096, "kindString": "Call signature", @@ -6495,7 +6470,7 @@ }, "typeParameter": [ { - "id": 212, + "id": 211, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -6508,7 +6483,7 @@ ], "parameters": [ { - "id": 213, + "id": 212, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -6518,13 +6493,13 @@ }, "type": { "type": "reference", - "id": 212, + "id": 211, "name": "ColumnName", "dereferenced": {} } }, { - "id": 214, + "id": 213, "name": "patterns", "kind": 32768, "kindString": "Parameter", @@ -6547,31 +6522,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -6579,7 +6554,7 @@ } }, { - "id": 215, + "id": 214, "name": "likeAllOf", "kind": 4096, "kindString": "Call signature", @@ -6589,7 +6564,7 @@ }, "parameters": [ { - "id": 216, + "id": 215, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -6603,7 +6578,7 @@ } }, { - "id": 217, + "id": 216, "name": "patterns", "kind": 32768, "kindString": "Parameter", @@ -6626,31 +6601,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -6660,7 +6635,7 @@ ] }, { - "id": 218, + "id": 217, "name": "likeAnyOf", "kind": 2048, "kindString": "Method", @@ -6674,7 +6649,7 @@ ], "signatures": [ { - "id": 219, + "id": 218, "name": "likeAnyOf", "kind": 4096, "kindString": "Call signature", @@ -6684,7 +6659,7 @@ }, "typeParameter": [ { - "id": 220, + "id": 219, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -6697,7 +6672,7 @@ ], "parameters": [ { - "id": 221, + "id": 220, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -6707,13 +6682,13 @@ }, "type": { "type": "reference", - "id": 220, + "id": 219, "name": "ColumnName", "dereferenced": {} } }, { - "id": 222, + "id": 221, "name": "patterns", "kind": 32768, "kindString": "Parameter", @@ -6736,31 +6711,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -6768,7 +6743,7 @@ } }, { - "id": 223, + "id": 222, "name": "likeAnyOf", "kind": 4096, "kindString": "Call signature", @@ -6778,7 +6753,7 @@ }, "parameters": [ { - "id": 224, + "id": 223, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -6792,7 +6767,7 @@ } }, { - "id": 225, + "id": 224, "name": "patterns", "kind": 32768, "kindString": "Parameter", @@ -6815,31 +6790,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -6849,7 +6824,7 @@ ] }, { - "id": 415, + "id": 414, "name": "limit", "kind": 2048, "kindString": "Method", @@ -6863,7 +6838,7 @@ ], "signatures": [ { - "id": 416, + "id": 415, "name": "limit", "kind": 4096, "kindString": "Call signature", @@ -6873,7 +6848,7 @@ }, "parameters": [ { - "id": 417, + "id": 416, "name": "count", "kind": 32768, "kindString": "Parameter", @@ -6887,7 +6862,7 @@ } }, { - "id": 418, + "id": 417, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -6899,14 +6874,14 @@ "type": { "type": "reflection", "declaration": { - "id": 419, + "id": 418, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 420, + "id": 419, "name": "foreignTable", "kind": 1024, "kindString": "Property", @@ -6929,7 +6904,7 @@ } }, { - "id": 421, + "id": 420, "name": "referencedTable", "kind": 1024, "kindString": "Property", @@ -6957,8 +6932,8 @@ "title": "Properties", "kind": 1024, "children": [ - 420, - 421 + 419, + 420 ] } ] @@ -6969,31 +6944,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -7001,19 +6976,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 536, + "id": 535, "name": "default.limit" } } ], "inheritedFrom": { "type": "reference", - "id": 535, + "id": 534, "name": "default.limit" } }, { - "id": 186, + "id": 185, "name": "lt", "kind": 2048, "kindString": "Method", @@ -7027,7 +7002,7 @@ ], "signatures": [ { - "id": 187, + "id": 186, "name": "lt", "kind": 4096, "kindString": "Call signature", @@ -7037,7 +7012,7 @@ }, "typeParameter": [ { - "id": 188, + "id": 187, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -7050,7 +7025,7 @@ ], "parameters": [ { - "id": 189, + "id": 188, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -7060,13 +7035,13 @@ }, "type": { "type": "reference", - "id": 188, + "id": 187, "name": "ColumnName", "dereferenced": {} } }, { - "id": 190, + "id": 189, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -7078,12 +7053,12 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 188, + "id": 187, "name": "ColumnName" }, "objectType": { "type": "reference", - "id": 148, + "id": 147, "name": "Row" } } @@ -7091,31 +7066,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -7123,7 +7098,7 @@ } }, { - "id": 191, + "id": 190, "name": "lt", "kind": 4096, "kindString": "Call signature", @@ -7133,7 +7108,7 @@ }, "parameters": [ { - "id": 192, + "id": 191, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -7147,7 +7122,7 @@ } }, { - "id": 193, + "id": 192, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -7163,31 +7138,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -7197,7 +7172,7 @@ ] }, { - "id": 194, + "id": 193, "name": "lte", "kind": 2048, "kindString": "Method", @@ -7211,7 +7186,7 @@ ], "signatures": [ { - "id": 195, + "id": 194, "name": "lte", "kind": 4096, "kindString": "Call signature", @@ -7221,7 +7196,7 @@ }, "typeParameter": [ { - "id": 196, + "id": 195, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -7234,7 +7209,7 @@ ], "parameters": [ { - "id": 197, + "id": 196, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -7244,13 +7219,13 @@ }, "type": { "type": "reference", - "id": 196, + "id": 195, "name": "ColumnName", "dereferenced": {} } }, { - "id": 198, + "id": 197, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -7262,12 +7237,12 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 196, + "id": 195, "name": "ColumnName" }, "objectType": { "type": "reference", - "id": 148, + "id": 147, "name": "Row" } } @@ -7275,31 +7250,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -7307,7 +7282,7 @@ } }, { - "id": 199, + "id": 198, "name": "lte", "kind": 4096, "kindString": "Call signature", @@ -7317,7 +7292,7 @@ }, "parameters": [ { - "id": 200, + "id": 199, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -7331,7 +7306,7 @@ } }, { - "id": 201, + "id": 200, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -7347,31 +7322,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -7381,7 +7356,7 @@ ] }, { - "id": 346, + "id": 345, "name": "match", "kind": 2048, "kindString": "Method", @@ -7395,7 +7370,7 @@ ], "signatures": [ { - "id": 347, + "id": 346, "name": "match", "kind": 4096, "kindString": "Call signature", @@ -7405,7 +7380,7 @@ }, "typeParameter": [ { - "id": 348, + "id": 347, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -7418,7 +7393,7 @@ ], "parameters": [ { - "id": 349, + "id": 348, "name": "query", "kind": 32768, "kindString": "Parameter", @@ -7431,19 +7406,19 @@ "typeArguments": [ { "type": "reference", - "id": 348, + "id": 347, "name": "ColumnName" }, { "type": "indexedAccess", "indexType": { "type": "reference", - "id": 348, + "id": 347, "name": "ColumnName" }, "objectType": { "type": "reference", - "id": 148, + "id": 147, "name": "Row" } } @@ -7456,31 +7431,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -7488,7 +7463,7 @@ } }, { - "id": 350, + "id": 349, "name": "match", "kind": 4096, "kindString": "Call signature", @@ -7498,7 +7473,7 @@ }, "parameters": [ { - "id": 351, + "id": 350, "name": "query", "kind": 32768, "kindString": "Parameter", @@ -7526,31 +7501,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -7560,7 +7535,7 @@ ] }, { - "id": 436, + "id": 435, "name": "maybeSingle", "kind": 2048, "kindString": "Method", @@ -7574,7 +7549,7 @@ ], "signatures": [ { - "id": 437, + "id": 436, "name": "maybeSingle", "kind": 4096, "kindString": "Call signature", @@ -7585,7 +7560,7 @@ }, "typeParameter": [ { - "id": 438, + "id": 437, "name": "ResultOne", "kind": 131072, "kindString": "Type parameter", @@ -7594,7 +7569,7 @@ "type": "conditional", "checkType": { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, "extendsType": { @@ -7617,7 +7592,7 @@ ], "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "union", @@ -7628,7 +7603,7 @@ }, { "type": "reference", - "id": 438, + "id": 437, "name": "ResultOne" } ] @@ -7638,19 +7613,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 557, + "id": 556, "name": "default.maybeSingle" } } ], "inheritedFrom": { "type": "reference", - "id": 556, + "id": 555, "name": "default.maybeSingle" } }, { - "id": 162, + "id": 161, "name": "neq", "kind": 2048, "kindString": "Method", @@ -7664,7 +7639,7 @@ ], "signatures": [ { - "id": 163, + "id": 162, "name": "neq", "kind": 4096, "kindString": "Call signature", @@ -7674,7 +7649,7 @@ }, "typeParameter": [ { - "id": 164, + "id": 163, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -7687,7 +7662,7 @@ ], "parameters": [ { - "id": 165, + "id": 164, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -7697,13 +7672,13 @@ }, "type": { "type": "reference", - "id": 164, + "id": 163, "name": "ColumnName", "dereferenced": {} } }, { - "id": 166, + "id": 165, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -7715,12 +7690,12 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 164, + "id": 163, "name": "ColumnName" }, "objectType": { "type": "reference", - "id": 148, + "id": 147, "name": "Row" } } @@ -7728,31 +7703,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -7760,7 +7735,7 @@ } }, { - "id": 167, + "id": 166, "name": "neq", "kind": 4096, "kindString": "Call signature", @@ -7770,7 +7745,7 @@ }, "parameters": [ { - "id": 168, + "id": 167, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -7784,7 +7759,7 @@ } }, { - "id": 169, + "id": 168, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -7800,31 +7775,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -7834,7 +7809,7 @@ ] }, { - "id": 352, + "id": 351, "name": "not", "kind": 2048, "kindString": "Method", @@ -7848,7 +7823,7 @@ ], "signatures": [ { - "id": 353, + "id": 352, "name": "not", "kind": 4096, "kindString": "Call signature", @@ -7859,7 +7834,7 @@ }, "typeParameter": [ { - "id": 354, + "id": 353, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -7872,7 +7847,7 @@ ], "parameters": [ { - "id": 355, + "id": 354, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -7882,13 +7857,13 @@ }, "type": { "type": "reference", - "id": 354, + "id": 353, "name": "ColumnName", "dereferenced": {} } }, { - "id": 356, + "id": 355, "name": "operator", "kind": 32768, "kindString": "Parameter", @@ -7902,7 +7877,7 @@ } }, { - "id": 357, + "id": 356, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -7914,12 +7889,12 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 354, + "id": 353, "name": "ColumnName" }, "objectType": { "type": "reference", - "id": 148, + "id": 147, "name": "Row" } } @@ -7927,31 +7902,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -7959,7 +7934,7 @@ } }, { - "id": 358, + "id": 357, "name": "not", "kind": 4096, "kindString": "Call signature", @@ -7970,7 +7945,7 @@ }, "parameters": [ { - "id": 359, + "id": 358, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -7984,7 +7959,7 @@ } }, { - "id": 360, + "id": 359, "name": "operator", "kind": 32768, "kindString": "Parameter", @@ -7998,7 +7973,7 @@ } }, { - "id": 361, + "id": 360, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -8014,31 +7989,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -8048,7 +8023,7 @@ ] }, { - "id": 362, + "id": 361, "name": "or", "kind": 2048, "kindString": "Method", @@ -8062,7 +8037,7 @@ ], "signatures": [ { - "id": 363, + "id": 362, "name": "or", "kind": 4096, "kindString": "Call signature", @@ -8073,7 +8048,7 @@ }, "parameters": [ { - "id": 364, + "id": 363, "name": "filters", "kind": 32768, "kindString": "Parameter", @@ -8087,7 +8062,7 @@ } }, { - "id": 365, + "id": 364, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -8099,14 +8074,14 @@ "type": { "type": "reflection", "declaration": { - "id": 366, + "id": 365, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 367, + "id": 366, "name": "foreignTable", "kind": 1024, "kindString": "Property", @@ -8129,7 +8104,7 @@ } }, { - "id": 368, + "id": 367, "name": "referencedTable", "kind": 1024, "kindString": "Property", @@ -8157,8 +8132,8 @@ "title": "Properties", "kind": 1024, "children": [ - 367, - 368 + 366, + 367 ] } ] @@ -8169,31 +8144,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -8203,7 +8178,7 @@ ] }, { - "id": 384, + "id": 383, "name": "order", "kind": 2048, "kindString": "Method", @@ -8217,7 +8192,7 @@ ], "signatures": [ { - "id": 385, + "id": 384, "name": "order", "kind": 4096, "kindString": "Call signature", @@ -8228,7 +8203,7 @@ }, "typeParameter": [ { - "id": 386, + "id": 385, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -8241,7 +8216,7 @@ ], "parameters": [ { - "id": 387, + "id": 386, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -8251,13 +8226,13 @@ }, "type": { "type": "reference", - "id": 386, + "id": 385, "name": "ColumnName", "dereferenced": {} } }, { - "id": 388, + "id": 387, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -8270,14 +8245,14 @@ "type": { "type": "reflection", "declaration": { - "id": 389, + "id": 388, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 390, + "id": 389, "name": "ascending", "kind": 1024, "kindString": "Property", @@ -8299,31 +8274,31 @@ "name": "boolean" } }, + { + "id": 390, + "name": "nullsFirst", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "If `true`, `null`s appear first. If `false`,\n`null`s appear last." + }, + "sources": [ + { + "fileName": "src/PostgrestTransformBuilder.ts", + "line": 57, + "character": 37 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, { "id": 391, - "name": "nullsFirst", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "If `true`, `null`s appear first. If `false`,\n`null`s appear last." - }, - "sources": [ - { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 57, - "character": 37 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 392, "name": "referencedTable", "kind": 1024, "kindString": "Property", @@ -8351,9 +8326,9 @@ "title": "Properties", "kind": 1024, "children": [ + 389, 390, - 391, - 392 + 391 ] } ] @@ -8363,31 +8338,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -8395,12 +8370,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 505, + "id": 504, "name": "default.order" } }, { - "id": 393, + "id": 392, "name": "order", "kind": 4096, "kindString": "Call signature", @@ -8411,7 +8386,7 @@ }, "parameters": [ { - "id": 394, + "id": 393, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -8425,7 +8400,7 @@ } }, { - "id": 395, + "id": 394, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -8438,14 +8413,14 @@ "type": { "type": "reflection", "declaration": { - "id": 396, + "id": 395, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 397, + "id": 396, "name": "ascending", "kind": 1024, "kindString": "Property", @@ -8468,7 +8443,7 @@ } }, { - "id": 398, + "id": 397, "name": "nullsFirst", "kind": 1024, "kindString": "Property", @@ -8491,7 +8466,7 @@ } }, { - "id": 399, + "id": 398, "name": "referencedTable", "kind": 1024, "kindString": "Property", @@ -8519,9 +8494,9 @@ "title": "Properties", "kind": 1024, "children": [ + 396, 397, - 398, - 399 + 398 ] } ] @@ -8531,31 +8506,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -8563,12 +8538,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 513, + "id": 512, "name": "default.order" } }, { - "id": 400, + "id": 399, "name": "order", "kind": 4096, "kindString": "Call signature", @@ -8585,7 +8560,7 @@ }, "typeParameter": [ { - "id": 401, + "id": 400, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -8598,7 +8573,7 @@ ], "parameters": [ { - "id": 402, + "id": 401, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -8608,13 +8583,13 @@ }, "type": { "type": "reference", - "id": 401, + "id": 400, "name": "ColumnName", "dereferenced": {} } }, { - "id": 403, + "id": 402, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -8627,14 +8602,14 @@ "type": { "type": "reflection", "declaration": { - "id": 404, + "id": 403, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 405, + "id": 404, "name": "ascending", "kind": 1024, "kindString": "Property", @@ -8654,7 +8629,7 @@ } }, { - "id": 407, + "id": 406, "name": "foreignTable", "kind": 1024, "kindString": "Property", @@ -8674,7 +8649,7 @@ } }, { - "id": 406, + "id": 405, "name": "nullsFirst", "kind": 1024, "kindString": "Property", @@ -8699,9 +8674,9 @@ "title": "Properties", "kind": 1024, "children": [ - 405, - 407, - 406 + 404, + 406, + 405 ] } ] @@ -8711,31 +8686,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -8743,12 +8718,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 520, + "id": 519, "name": "default.order" } }, { - "id": 408, + "id": 407, "name": "order", "kind": 4096, "kindString": "Call signature", @@ -8765,7 +8740,7 @@ }, "parameters": [ { - "id": 409, + "id": 408, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -8779,7 +8754,7 @@ } }, { - "id": 410, + "id": 409, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -8792,14 +8767,14 @@ "type": { "type": "reflection", "declaration": { - "id": 411, + "id": 410, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 412, + "id": 411, "name": "ascending", "kind": 1024, "kindString": "Property", @@ -8819,7 +8794,7 @@ } }, { - "id": 414, + "id": 413, "name": "foreignTable", "kind": 1024, "kindString": "Property", @@ -8839,7 +8814,7 @@ } }, { - "id": 413, + "id": 412, "name": "nullsFirst", "kind": 1024, "kindString": "Property", @@ -8864,9 +8839,9 @@ "title": "Properties", "kind": 1024, "children": [ - 412, - 414, - 413 + 411, + 413, + 412 ] } ] @@ -8876,31 +8851,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -8908,19 +8883,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 528, + "id": 527, "name": "default.order" } } ], "inheritedFrom": { "type": "reference", - "id": 504, + "id": 503, "name": "default.order" } }, { - "id": 322, + "id": 321, "name": "overlaps", "kind": 2048, "kindString": "Method", @@ -8934,7 +8909,7 @@ ], "signatures": [ { - "id": 323, + "id": 322, "name": "overlaps", "kind": 4096, "kindString": "Call signature", @@ -8944,7 +8919,7 @@ }, "typeParameter": [ { - "id": 324, + "id": 323, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -8957,7 +8932,7 @@ ], "parameters": [ { - "id": 325, + "id": 324, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -8967,13 +8942,13 @@ }, "type": { "type": "reference", - "id": 324, + "id": 323, "name": "ColumnName", "dereferenced": {} } }, { - "id": 326, + "id": 325, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -8997,12 +8972,12 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 324, + "id": 323, "name": "ColumnName" }, "objectType": { "type": "reference", - "id": 148, + "id": 147, "name": "Row" } } @@ -9014,31 +8989,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -9046,7 +9021,7 @@ } }, { - "id": 327, + "id": 326, "name": "overlaps", "kind": 4096, "kindString": "Call signature", @@ -9056,7 +9031,7 @@ }, "parameters": [ { - "id": 328, + "id": 327, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -9070,7 +9045,7 @@ } }, { - "id": 329, + "id": 328, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -9102,31 +9077,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -9136,7 +9111,7 @@ ] }, { - "id": 422, + "id": 421, "name": "range", "kind": 2048, "kindString": "Method", @@ -9150,7 +9125,7 @@ ], "signatures": [ { - "id": 423, + "id": 422, "name": "range", "kind": 4096, "kindString": "Call signature", @@ -9160,7 +9135,7 @@ }, "parameters": [ { - "id": 424, + "id": 423, "name": "from", "kind": 32768, "kindString": "Parameter", @@ -9174,7 +9149,7 @@ } }, { - "id": 425, + "id": 424, "name": "to", "kind": 32768, "kindString": "Parameter", @@ -9188,7 +9163,7 @@ } }, { - "id": 426, + "id": 425, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -9200,14 +9175,14 @@ "type": { "type": "reflection", "declaration": { - "id": 427, + "id": 426, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 428, + "id": 427, "name": "foreignTable", "kind": 1024, "kindString": "Property", @@ -9230,7 +9205,7 @@ } }, { - "id": 429, + "id": 428, "name": "referencedTable", "kind": 1024, "kindString": "Property", @@ -9258,8 +9233,8 @@ "title": "Properties", "kind": 1024, "children": [ - 428, - 429 + 427, + 428 ] } ] @@ -9270,31 +9245,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -9302,19 +9277,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 543, + "id": 542, "name": "default.range" } } ], "inheritedFrom": { "type": "reference", - "id": 542, + "id": 541, "name": "default.range" } }, { - "id": 314, + "id": 313, "name": "rangeAdjacent", "kind": 2048, "kindString": "Method", @@ -9328,7 +9303,7 @@ ], "signatures": [ { - "id": 315, + "id": 314, "name": "rangeAdjacent", "kind": 4096, "kindString": "Call signature", @@ -9338,7 +9313,7 @@ }, "typeParameter": [ { - "id": 316, + "id": 315, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -9351,7 +9326,7 @@ ], "parameters": [ { - "id": 317, + "id": 316, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -9361,13 +9336,13 @@ }, "type": { "type": "reference", - "id": 316, + "id": 315, "name": "ColumnName", "dereferenced": {} } }, { - "id": 318, + "id": 317, "name": "range", "kind": 32768, "kindString": "Parameter", @@ -9383,31 +9358,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -9415,7 +9390,7 @@ } }, { - "id": 319, + "id": 318, "name": "rangeAdjacent", "kind": 4096, "kindString": "Call signature", @@ -9425,7 +9400,7 @@ }, "parameters": [ { - "id": 320, + "id": 319, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -9439,7 +9414,7 @@ } }, { - "id": 321, + "id": 320, "name": "range", "kind": 32768, "kindString": "Parameter", @@ -9455,31 +9430,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -9489,7 +9464,7 @@ ] }, { - "id": 282, + "id": 281, "name": "rangeGt", "kind": 2048, "kindString": "Method", @@ -9503,7 +9478,7 @@ ], "signatures": [ { - "id": 283, + "id": 282, "name": "rangeGt", "kind": 4096, "kindString": "Call signature", @@ -9513,7 +9488,7 @@ }, "typeParameter": [ { - "id": 284, + "id": 283, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -9526,7 +9501,7 @@ ], "parameters": [ { - "id": 285, + "id": 284, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -9536,13 +9511,13 @@ }, "type": { "type": "reference", - "id": 284, + "id": 283, "name": "ColumnName", "dereferenced": {} } }, { - "id": 286, + "id": 285, "name": "range", "kind": 32768, "kindString": "Parameter", @@ -9558,31 +9533,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -9590,7 +9565,7 @@ } }, { - "id": 287, + "id": 286, "name": "rangeGt", "kind": 4096, "kindString": "Call signature", @@ -9600,7 +9575,7 @@ }, "parameters": [ { - "id": 288, + "id": 287, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -9614,7 +9589,7 @@ } }, { - "id": 289, + "id": 288, "name": "range", "kind": 32768, "kindString": "Parameter", @@ -9630,31 +9605,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -9664,7 +9639,7 @@ ] }, { - "id": 290, + "id": 289, "name": "rangeGte", "kind": 2048, "kindString": "Method", @@ -9678,7 +9653,7 @@ ], "signatures": [ { - "id": 291, + "id": 290, "name": "rangeGte", "kind": 4096, "kindString": "Call signature", @@ -9688,7 +9663,7 @@ }, "typeParameter": [ { - "id": 292, + "id": 291, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -9701,7 +9676,7 @@ ], "parameters": [ { - "id": 293, + "id": 292, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -9711,13 +9686,13 @@ }, "type": { "type": "reference", - "id": 292, + "id": 291, "name": "ColumnName", "dereferenced": {} } }, { - "id": 294, + "id": 293, "name": "range", "kind": 32768, "kindString": "Parameter", @@ -9733,31 +9708,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -9765,7 +9740,7 @@ } }, { - "id": 295, + "id": 294, "name": "rangeGte", "kind": 4096, "kindString": "Call signature", @@ -9775,7 +9750,7 @@ }, "parameters": [ { - "id": 296, + "id": 295, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -9789,7 +9764,7 @@ } }, { - "id": 297, + "id": 296, "name": "range", "kind": 32768, "kindString": "Parameter", @@ -9805,31 +9780,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -9839,7 +9814,7 @@ ] }, { - "id": 298, + "id": 297, "name": "rangeLt", "kind": 2048, "kindString": "Method", @@ -9853,7 +9828,7 @@ ], "signatures": [ { - "id": 299, + "id": 298, "name": "rangeLt", "kind": 4096, "kindString": "Call signature", @@ -9863,7 +9838,7 @@ }, "typeParameter": [ { - "id": 300, + "id": 299, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -9876,7 +9851,7 @@ ], "parameters": [ { - "id": 301, + "id": 300, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -9886,13 +9861,13 @@ }, "type": { "type": "reference", - "id": 300, + "id": 299, "name": "ColumnName", "dereferenced": {} } }, { - "id": 302, + "id": 301, "name": "range", "kind": 32768, "kindString": "Parameter", @@ -9908,31 +9883,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -9940,7 +9915,7 @@ } }, { - "id": 303, + "id": 302, "name": "rangeLt", "kind": 4096, "kindString": "Call signature", @@ -9950,7 +9925,7 @@ }, "parameters": [ { - "id": 304, + "id": 303, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -9964,7 +9939,7 @@ } }, { - "id": 305, + "id": 304, "name": "range", "kind": 32768, "kindString": "Parameter", @@ -9980,31 +9955,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -10014,7 +9989,7 @@ ] }, { - "id": 306, + "id": 305, "name": "rangeLte", "kind": 2048, "kindString": "Method", @@ -10028,7 +10003,7 @@ ], "signatures": [ { - "id": 307, + "id": 306, "name": "rangeLte", "kind": 4096, "kindString": "Call signature", @@ -10038,7 +10013,7 @@ }, "typeParameter": [ { - "id": 308, + "id": 307, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -10051,7 +10026,7 @@ ], "parameters": [ { - "id": 309, + "id": 308, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -10061,13 +10036,13 @@ }, "type": { "type": "reference", - "id": 308, + "id": 307, "name": "ColumnName", "dereferenced": {} } }, { - "id": 310, + "id": 309, "name": "range", "kind": 32768, "kindString": "Parameter", @@ -10083,31 +10058,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -10115,7 +10090,7 @@ } }, { - "id": 311, + "id": 310, "name": "rangeLte", "kind": 4096, "kindString": "Call signature", @@ -10125,7 +10100,7 @@ }, "parameters": [ { - "id": 312, + "id": 311, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -10139,7 +10114,7 @@ } }, { - "id": 313, + "id": 312, "name": "range", "kind": 32768, "kindString": "Parameter", @@ -10155,31 +10130,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -10189,7 +10164,7 @@ ] }, { - "id": 455, + "id": 454, "name": "returns", "kind": 2048, "kindString": "Method", @@ -10197,13 +10172,13 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 307, + "line": 311, "character": 2 } ], "signatures": [ { - "id": 456, + "id": 455, "name": "returns", "kind": 4096, "kindString": "Call signature", @@ -10213,7 +10188,7 @@ }, "typeParameter": [ { - "id": 457, + "id": 456, "name": "NewResult", "kind": 131072, "kindString": "Type parameter", @@ -10225,31 +10200,31 @@ ], "type": { "type": "reference", - "id": 490, + "id": 489, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 457, + "id": 456, "name": "NewResult" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -10257,19 +10232,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 576, + "id": 575, "name": "default.returns" } } ], "inheritedFrom": { "type": "reference", - "id": 575, + "id": 574, "name": "default.returns" } }, { - "id": 453, + "id": 452, "name": "rollback", "kind": 2048, "kindString": "Method", @@ -10277,13 +10252,13 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 293, + "line": 297, "character": 2 } ], "signatures": [ { - "id": 454, + "id": 453, "name": "rollback", "kind": 4096, "kindString": "Call signature", @@ -10294,31 +10269,31 @@ }, "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -10326,19 +10301,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 574, + "id": 573, "name": "default.rollback" } } ], "inheritedFrom": { "type": "reference", - "id": 573, + "id": 572, "name": "default.rollback" } }, { - "id": 379, + "id": 378, "name": "select", "kind": 2048, "kindString": "Method", @@ -10352,7 +10327,7 @@ ], "signatures": [ { - "id": 380, + "id": 379, "name": "select", "kind": 4096, "kindString": "Call signature", @@ -10363,7 +10338,7 @@ }, "typeParameter": [ { - "id": 381, + "id": 380, "name": "Query", "kind": 131072, "kindString": "Type parameter", @@ -10378,7 +10353,7 @@ } }, { - "id": 382, + "id": 381, "name": "NewResultOne", "kind": 131072, "kindString": "Type parameter", @@ -10388,27 +10363,27 @@ "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" }, { "type": "reference", - "id": 381, + "id": 380, "name": "Query" } ], @@ -10418,7 +10393,7 @@ ], "parameters": [ { - "id": 383, + "id": 382, "name": "columns", "kind": 32768, "kindString": "Parameter", @@ -10430,7 +10405,7 @@ }, "type": { "type": "reference", - "id": 381, + "id": 380, "name": "Query", "dereferenced": {} } @@ -10438,34 +10413,34 @@ ], "type": { "type": "reference", - "id": 490, + "id": 489, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "array", "elementType": { "type": "reference", - "id": 382, + "id": 381, "name": "NewResultOne" } }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -10473,19 +10448,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 500, + "id": 499, "name": "default.select" } } ], "inheritedFrom": { "type": "reference", - "id": 499, + "id": 498, "name": "default.select" } }, { - "id": 433, + "id": 432, "name": "single", "kind": 2048, "kindString": "Method", @@ -10499,7 +10474,7 @@ ], "signatures": [ { - "id": 434, + "id": 433, "name": "single", "kind": 4096, "kindString": "Call signature", @@ -10510,7 +10485,7 @@ }, "typeParameter": [ { - "id": 435, + "id": 434, "name": "ResultOne", "kind": 131072, "kindString": "Type parameter", @@ -10519,7 +10494,7 @@ "type": "conditional", "checkType": { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, "extendsType": { @@ -10542,11 +10517,11 @@ ], "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "reference", - "id": 435, + "id": 434, "name": "ResultOne" } ], @@ -10554,19 +10529,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 554, + "id": 553, "name": "default.single" } } ], "inheritedFrom": { "type": "reference", - "id": 553, + "id": 552, "name": "default.single" } }, { - "id": 330, + "id": 329, "name": "textSearch", "kind": 2048, "kindString": "Method", @@ -10580,7 +10555,7 @@ ], "signatures": [ { - "id": 331, + "id": 330, "name": "textSearch", "kind": 4096, "kindString": "Call signature", @@ -10590,7 +10565,7 @@ }, "typeParameter": [ { - "id": 332, + "id": 331, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -10603,7 +10578,7 @@ ], "parameters": [ { - "id": 333, + "id": 332, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -10613,13 +10588,13 @@ }, "type": { "type": "reference", - "id": 332, + "id": 331, "name": "ColumnName", "dereferenced": {} } }, { - "id": 334, + "id": 333, "name": "query", "kind": 32768, "kindString": "Parameter", @@ -10633,7 +10608,7 @@ } }, { - "id": 335, + "id": 334, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -10646,14 +10621,14 @@ "type": { "type": "reflection", "declaration": { - "id": 336, + "id": 335, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 337, + "id": 336, "name": "config", "kind": 1024, "kindString": "Property", @@ -10676,7 +10651,7 @@ } }, { - "id": 338, + "id": 337, "name": "type", "kind": 1024, "kindString": "Property", @@ -10717,8 +10692,8 @@ "title": "Properties", "kind": 1024, "children": [ - 337, - 338 + 336, + 337 ] } ] @@ -10728,31 +10703,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -10760,7 +10735,7 @@ } }, { - "id": 339, + "id": 338, "name": "textSearch", "kind": 4096, "kindString": "Call signature", @@ -10770,7 +10745,7 @@ }, "parameters": [ { - "id": 340, + "id": 339, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -10784,7 +10759,7 @@ } }, { - "id": 341, + "id": 340, "name": "query", "kind": 32768, "kindString": "Parameter", @@ -10798,7 +10773,7 @@ } }, { - "id": 342, + "id": 341, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -10811,14 +10786,14 @@ "type": { "type": "reflection", "declaration": { - "id": 343, + "id": 342, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 344, + "id": 343, "name": "config", "kind": 1024, "kindString": "Property", @@ -10841,7 +10816,7 @@ } }, { - "id": 345, + "id": 344, "name": "type", "kind": 1024, "kindString": "Property", @@ -10882,8 +10857,8 @@ "title": "Properties", "kind": 1024, "children": [ - 344, - 345 + 343, + 344 ] } ] @@ -10893,31 +10868,31 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -10927,7 +10902,7 @@ ] }, { - "id": 473, + "id": 472, "name": "then", "kind": 2048, "kindString": "Method", @@ -10935,31 +10910,31 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 49, + "line": 50, "character": 2 } ], "signatures": [ { - "id": 474, + "id": 473, "name": "then", "kind": 4096, "kindString": "Call signature", "flags": {}, "typeParameter": [ { - "id": 475, + "id": 474, "name": "TResult1", "kind": 131072, "kindString": "Type parameter", "flags": {}, "default": { "type": "reference", - "id": 658, + "id": 657, "typeArguments": [ { "type": "reference", - "id": 149, + "id": 148, "name": "Result" } ], @@ -10967,7 +10942,7 @@ } }, { - "id": 476, + "id": 475, "name": "TResult2", "kind": 131072, "kindString": "Type parameter", @@ -10980,7 +10955,7 @@ ], "parameters": [ { - "id": 477, + "id": 476, "name": "onfulfilled", "kind": 32768, "kindString": "Parameter", @@ -10997,32 +10972,32 @@ { "type": "reflection", "declaration": { - "id": 478, + "id": 477, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 479, + "id": 478, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 480, + "id": 479, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 658, + "id": 657, "typeArguments": [ { "type": "reference", - "id": 149, + "id": 148, "name": "Result" } ], @@ -11035,7 +11010,7 @@ "types": [ { "type": "reference", - "id": 475, + "id": 474, "name": "TResult1" }, { @@ -11043,7 +11018,7 @@ "typeArguments": [ { "type": "reference", - "id": 475, + "id": 474, "name": "TResult1" } ], @@ -11061,7 +11036,7 @@ } }, { - "id": 481, + "id": 480, "name": "onrejected", "kind": 32768, "kindString": "Parameter", @@ -11078,21 +11053,21 @@ { "type": "reflection", "declaration": { - "id": 482, + "id": 481, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 483, + "id": 482, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 484, + "id": 483, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -11108,7 +11083,7 @@ "types": [ { "type": "reference", - "id": 476, + "id": 475, "name": "TResult2" }, { @@ -11116,7 +11091,7 @@ "typeArguments": [ { "type": "reference", - "id": 476, + "id": 475, "name": "TResult2" } ], @@ -11142,12 +11117,12 @@ "types": [ { "type": "reference", - "id": 475, + "id": 474, "name": "TResult1" }, { "type": "reference", - "id": 476, + "id": 475, "name": "TResult2" } ] @@ -11159,19 +11134,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 594, + "id": 593, "name": "default.then" } } ], "inheritedFrom": { "type": "reference", - "id": 593, + "id": 592, "name": "default.then" } }, { - "id": 471, + "id": 470, "name": "throwOnError", "kind": 2048, "kindString": "Method", @@ -11179,13 +11154,13 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 44, + "line": 45, "character": 2 } ], "signatures": [ { - "id": 472, + "id": 471, "name": "throwOnError", "kind": 4096, "kindString": "Call signature", @@ -11196,31 +11171,31 @@ }, "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -11228,14 +11203,14 @@ }, "inheritedFrom": { "type": "reference", - "id": 592, + "id": 591, "name": "default.throwOnError" } } ], "inheritedFrom": { "type": "reference", - "id": 591, + "id": 590, "name": "default.throwOnError" } } @@ -11245,69 +11220,69 @@ "title": "Constructors", "kind": 512, "children": [ - 145 + 144 ] }, { "title": "Properties", "kind": 1024, "children": [ - 462, - 465, - 460, - 470, - 458, 461, - 463, 464, - 459 + 459, + 469, + 457, + 460, + 462, + 463, + 458 ] }, { "title": "Methods", "kind": 2048, "children": [ - 430, - 274, - 266, - 439, - 153, - 443, - 369, - 441, - 170, - 178, - 226, - 234, - 242, - 258, - 250, - 202, - 210, - 218, - 415, - 186, - 194, - 346, - 436, - 162, - 352, - 362, - 384, - 322, - 422, - 314, - 282, - 290, - 298, - 306, - 455, - 453, - 379, - 433, - 330, - 473, - 471 + 429, + 273, + 265, + 438, + 152, + 442, + 368, + 440, + 169, + 177, + 225, + 233, + 241, + 257, + 249, + 201, + 209, + 217, + 414, + 185, + 193, + 345, + 435, + 161, + 351, + 361, + 383, + 321, + 421, + 313, + 281, + 289, + 297, + 305, + 454, + 452, + 378, + 432, + 329, + 472, + 470 ] } ], @@ -11320,7 +11295,7 @@ ], "typeParameter": [ { - "id": 485, + "id": 484, "name": "Schema", "kind": 131072, "kindString": "Type parameter", @@ -11331,7 +11306,7 @@ } }, { - "id": 486, + "id": 485, "name": "Row", "kind": 131072, "kindString": "Type parameter", @@ -11354,14 +11329,14 @@ } }, { - "id": 487, + "id": 486, "name": "Result", "kind": 131072, "kindString": "Type parameter", "flags": {} }, { - "id": 488, + "id": 487, "name": "RelationName", "kind": 131072, "kindString": "Type parameter", @@ -11372,7 +11347,7 @@ } }, { - "id": 489, + "id": 488, "name": "Relationships", "kind": 131072, "kindString": "Type parameter", @@ -11386,31 +11361,31 @@ "extendedTypes": [ { "type": "reference", - "id": 490, + "id": 489, "typeArguments": [ { "type": "reference", - "id": 147, + "id": 146, "name": "Schema" }, { "type": "reference", - "id": 148, + "id": 147, "name": "Row" }, { "type": "reference", - "id": 149, + "id": 148, "name": "Result" }, { "type": "reference", - "id": 150, + "id": 149, "name": "RelationName" }, { "type": "reference", - "id": 151, + "id": 150, "name": "Relationships" } ], @@ -11419,14 +11394,14 @@ ] }, { - "id": 57, + "id": 56, "name": "PostgrestQueryBuilder", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 58, + "id": 57, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -11440,14 +11415,14 @@ ], "signatures": [ { - "id": 59, + "id": 58, "name": "new PostgrestQueryBuilder", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "typeParameter": [ { - "id": 60, + "id": 59, "name": "Schema", "kind": 131072, "kindString": "Type parameter", @@ -11458,7 +11433,7 @@ } }, { - "id": 61, + "id": 60, "name": "Relation", "kind": 131072, "kindString": "Type parameter", @@ -11478,7 +11453,7 @@ } }, { - "id": 62, + "id": 61, "name": "RelationName", "kind": 131072, "kindString": "Type parameter", @@ -11489,7 +11464,7 @@ } }, { - "id": 65, + "id": 64, "name": "Relationships", "kind": 131072, "kindString": "Type parameter", @@ -11498,20 +11473,20 @@ "type": "conditional", "checkType": { "type": "reference", - "id": 61, + "id": 60, "name": "Relation" }, "extendsType": { "type": "reflection", "declaration": { - "id": 63, + "id": 62, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 64, + "id": 63, "name": "Relationships", "kind": 1024, "kindString": "Property", @@ -11534,7 +11509,7 @@ "title": "Properties", "kind": 1024, "children": [ - 64 + 63 ] } ] @@ -11553,7 +11528,7 @@ ], "parameters": [ { - "id": 66, + "id": 65, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -11566,7 +11541,7 @@ } }, { - "id": 67, + "id": 66, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -11574,14 +11549,14 @@ "type": { "type": "reflection", "declaration": { - "id": 68, + "id": 67, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 71, + "id": 70, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -11598,21 +11573,21 @@ "type": { "type": "reflection", "declaration": { - "id": 72, + "id": 71, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 73, + "id": 72, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 74, + "id": 73, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -11636,7 +11611,7 @@ } }, { - "id": 75, + "id": 74, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -11671,7 +11646,7 @@ } }, { - "id": 69, + "id": 68, "name": "headers", "kind": 1024, "kindString": "Property", @@ -11703,7 +11678,7 @@ } }, { - "id": 70, + "id": 69, "name": "schema", "kind": 1024, "kindString": "Property", @@ -11728,9 +11703,9 @@ "title": "Properties", "kind": 1024, "children": [ - 71, - 69, - 70 + 70, + 68, + 69 ] } ] @@ -11740,26 +11715,26 @@ ], "type": { "type": "reference", - "id": 57, + "id": 56, "typeArguments": [ { "type": "reference", - "id": 60, + "id": 59, "name": "Schema" }, { "type": "reference", - "id": 61, + "id": 60, "name": "Relation" }, { "type": "reference", - "id": 62, + "id": 61, "name": "RelationName" }, { "type": "reference", - "id": 65, + "id": 64, "name": "Relationships" } ], @@ -11769,7 +11744,7 @@ ] }, { - "id": 80, + "id": 79, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -11786,21 +11761,21 @@ "type": { "type": "reflection", "declaration": { - "id": 81, + "id": 80, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 82, + "id": 81, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 83, + "id": 82, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -11824,7 +11799,7 @@ } }, { - "id": 84, + "id": 83, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -11859,7 +11834,7 @@ } }, { - "id": 77, + "id": 76, "name": "headers", "kind": 1024, "kindString": "Property", @@ -11889,7 +11864,7 @@ } }, { - "id": 78, + "id": 77, "name": "schema", "kind": 1024, "kindString": "Property", @@ -11909,7 +11884,7 @@ } }, { - "id": 79, + "id": 78, "name": "signal", "kind": 1024, "kindString": "Property", @@ -11931,7 +11906,7 @@ } }, { - "id": 76, + "id": 75, "name": "url", "kind": 1024, "kindString": "Property", @@ -11951,7 +11926,7 @@ } }, { - "id": 133, + "id": 132, "name": "delete", "kind": 2048, "kindString": "Method", @@ -11965,7 +11940,7 @@ ], "signatures": [ { - "id": 134, + "id": 133, "name": "delete", "kind": 4096, "kindString": "Call signature", @@ -11976,7 +11951,7 @@ }, "parameters": [ { - "id": 135, + "id": 134, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -11988,14 +11963,14 @@ "type": { "type": "reflection", "declaration": { - "id": 136, + "id": 135, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 137, + "id": 136, "name": "count", "kind": 1024, "kindString": "Property", @@ -12036,7 +12011,7 @@ "title": "Properties", "kind": 1024, "children": [ - 137 + 136 ] } ] @@ -12047,11 +12022,11 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 60, + "id": 59, "name": "Schema" }, { @@ -12062,7 +12037,7 @@ }, "objectType": { "type": "reference", - "id": 61, + "id": 60, "name": "Relation" } }, @@ -12072,12 +12047,12 @@ }, { "type": "reference", - "id": 62, + "id": 61, "name": "RelationName" }, { "type": "reference", - "id": 65, + "id": 64, "name": "Relationships" } ], @@ -12087,7 +12062,7 @@ ] }, { - "id": 94, + "id": 93, "name": "insert", "kind": 2048, "kindString": "Method", @@ -12101,7 +12076,7 @@ ], "signatures": [ { - "id": 95, + "id": 94, "name": "insert", "kind": 4096, "kindString": "Call signature", @@ -12112,7 +12087,7 @@ }, "typeParameter": [ { - "id": 96, + "id": 95, "name": "Row", "kind": 131072, "kindString": "Type parameter", @@ -12137,7 +12112,7 @@ ], "parameters": [ { - "id": 97, + "id": 96, "name": "values", "kind": 32768, "kindString": "Parameter", @@ -12147,13 +12122,13 @@ }, "type": { "type": "reference", - "id": 96, + "id": 95, "name": "Row", "dereferenced": {} } }, { - "id": 98, + "id": 97, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -12166,14 +12141,14 @@ "type": { "type": "reflection", "declaration": { - "id": 99, + "id": 98, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 100, + "id": 99, "name": "count", "kind": 1024, "kindString": "Property", @@ -12214,7 +12189,7 @@ "title": "Properties", "kind": 1024, "children": [ - 100 + 99 ] } ] @@ -12224,11 +12199,11 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 60, + "id": 59, "name": "Schema" }, { @@ -12239,7 +12214,7 @@ }, "objectType": { "type": "reference", - "id": 61, + "id": 60, "name": "Relation" } }, @@ -12249,12 +12224,12 @@ }, { "type": "reference", - "id": 62, + "id": 61, "name": "RelationName" }, { "type": "reference", - "id": 65, + "id": 64, "name": "Relationships" } ], @@ -12262,7 +12237,7 @@ } }, { - "id": 101, + "id": 100, "name": "insert", "kind": 4096, "kindString": "Call signature", @@ -12273,7 +12248,7 @@ }, "typeParameter": [ { - "id": 102, + "id": 101, "name": "Row", "kind": 131072, "kindString": "Type parameter", @@ -12298,7 +12273,7 @@ ], "parameters": [ { - "id": 103, + "id": 102, "name": "values", "kind": 32768, "kindString": "Parameter", @@ -12310,13 +12285,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 102, + "id": 101, "name": "Row" } } }, { - "id": 104, + "id": 103, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -12329,14 +12304,14 @@ "type": { "type": "reflection", "declaration": { - "id": 105, + "id": 104, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 106, + "id": 105, "name": "count", "kind": 1024, "kindString": "Property", @@ -12372,7 +12347,7 @@ } }, { - "id": 107, + "id": 106, "name": "defaultToNull", "kind": 1024, "kindString": "Property", @@ -12400,8 +12375,8 @@ "title": "Properties", "kind": 1024, "children": [ - 106, - 107 + 105, + 106 ] } ] @@ -12411,11 +12386,11 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 60, + "id": 59, "name": "Schema" }, { @@ -12426,7 +12401,7 @@ }, "objectType": { "type": "reference", - "id": 61, + "id": 60, "name": "Relation" } }, @@ -12436,12 +12411,12 @@ }, { "type": "reference", - "id": 62, + "id": 61, "name": "RelationName" }, { "type": "reference", - "id": 65, + "id": 64, "name": "Relationships" } ], @@ -12451,7 +12426,7 @@ ] }, { - "id": 85, + "id": 84, "name": "select", "kind": 2048, "kindString": "Method", @@ -12465,7 +12440,7 @@ ], "signatures": [ { - "id": 86, + "id": 85, "name": "select", "kind": 4096, "kindString": "Call signature", @@ -12475,7 +12450,7 @@ }, "typeParameter": [ { - "id": 87, + "id": 86, "name": "Query", "kind": 131072, "kindString": "Type parameter", @@ -12490,7 +12465,7 @@ } }, { - "id": 88, + "id": 87, "name": "ResultOne", "kind": 131072, "kindString": "Type parameter", @@ -12500,7 +12475,7 @@ "typeArguments": [ { "type": "reference", - "id": 60, + "id": 59, "name": "Schema" }, { @@ -12511,23 +12486,23 @@ }, "objectType": { "type": "reference", - "id": 61, + "id": 60, "name": "Relation" } }, { "type": "reference", - "id": 62, + "id": 61, "name": "RelationName" }, { "type": "reference", - "id": 65, + "id": 64, "name": "Relationships" }, { "type": "reference", - "id": 87, + "id": 86, "name": "Query" } ], @@ -12537,7 +12512,7 @@ ], "parameters": [ { - "id": 89, + "id": 88, "name": "columns", "kind": 32768, "kindString": "Parameter", @@ -12549,13 +12524,13 @@ }, "type": { "type": "reference", - "id": 87, + "id": 86, "name": "Query", "dereferenced": {} } }, { - "id": 90, + "id": 89, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -12567,14 +12542,14 @@ "type": { "type": "reflection", "declaration": { - "id": 91, + "id": 90, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 93, + "id": 92, "name": "count", "kind": 1024, "kindString": "Property", @@ -12610,7 +12585,7 @@ } }, { - "id": 92, + "id": 91, "name": "head", "kind": 1024, "kindString": "Property", @@ -12638,8 +12613,8 @@ "title": "Properties", "kind": 1024, "children": [ - 93, - 92 + 92, + 91 ] } ] @@ -12650,11 +12625,11 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 60, + "id": 59, "name": "Schema" }, { @@ -12665,7 +12640,7 @@ }, "objectType": { "type": "reference", - "id": 61, + "id": 60, "name": "Relation" } }, @@ -12673,18 +12648,18 @@ "type": "array", "elementType": { "type": "reference", - "id": 88, + "id": 87, "name": "ResultOne" } }, { "type": "reference", - "id": 62, + "id": 61, "name": "RelationName" }, { "type": "reference", - "id": 65, + "id": 64, "name": "Relationships" } ], @@ -12694,7 +12669,7 @@ ] }, { - "id": 126, + "id": 125, "name": "update", "kind": 2048, "kindString": "Method", @@ -12708,7 +12683,7 @@ ], "signatures": [ { - "id": 127, + "id": 126, "name": "update", "kind": 4096, "kindString": "Call signature", @@ -12719,7 +12694,7 @@ }, "typeParameter": [ { - "id": 128, + "id": 127, "name": "Row", "kind": 131072, "kindString": "Type parameter", @@ -12744,7 +12719,7 @@ ], "parameters": [ { - "id": 129, + "id": 128, "name": "values", "kind": 32768, "kindString": "Parameter", @@ -12754,13 +12729,13 @@ }, "type": { "type": "reference", - "id": 128, + "id": 127, "name": "Row", "dereferenced": {} } }, { - "id": 130, + "id": 129, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -12772,14 +12747,14 @@ "type": { "type": "reflection", "declaration": { - "id": 131, + "id": 130, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 132, + "id": 131, "name": "count", "kind": 1024, "kindString": "Property", @@ -12820,7 +12795,7 @@ "title": "Properties", "kind": 1024, "children": [ - 132 + 131 ] } ] @@ -12831,11 +12806,11 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 60, + "id": 59, "name": "Schema" }, { @@ -12846,7 +12821,7 @@ }, "objectType": { "type": "reference", - "id": 61, + "id": 60, "name": "Relation" } }, @@ -12856,12 +12831,12 @@ }, { "type": "reference", - "id": 62, + "id": 61, "name": "RelationName" }, { "type": "reference", - "id": 65, + "id": 64, "name": "Relationships" } ], @@ -12871,7 +12846,7 @@ ] }, { - "id": 108, + "id": 107, "name": "upsert", "kind": 2048, "kindString": "Method", @@ -12885,7 +12860,7 @@ ], "signatures": [ { - "id": 109, + "id": 108, "name": "upsert", "kind": 4096, "kindString": "Call signature", @@ -12896,7 +12871,7 @@ }, "typeParameter": [ { - "id": 110, + "id": 109, "name": "Row", "kind": 131072, "kindString": "Type parameter", @@ -12921,7 +12896,7 @@ ], "parameters": [ { - "id": 111, + "id": 110, "name": "values", "kind": 32768, "kindString": "Parameter", @@ -12931,13 +12906,13 @@ }, "type": { "type": "reference", - "id": 110, + "id": 109, "name": "Row", "dereferenced": {} } }, { - "id": 112, + "id": 111, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -12950,14 +12925,14 @@ "type": { "type": "reflection", "declaration": { - "id": 113, + "id": 112, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 116, + "id": 115, "name": "count", "kind": 1024, "kindString": "Property", @@ -12993,7 +12968,7 @@ } }, { - "id": 115, + "id": 114, "name": "ignoreDuplicates", "kind": 1024, "kindString": "Property", @@ -13016,7 +12991,7 @@ } }, { - "id": 114, + "id": 113, "name": "onConflict", "kind": 1024, "kindString": "Property", @@ -13044,9 +13019,9 @@ "title": "Properties", "kind": 1024, "children": [ - 116, 115, - 114 + 114, + 113 ] } ] @@ -13056,11 +13031,11 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 60, + "id": 59, "name": "Schema" }, { @@ -13071,7 +13046,7 @@ }, "objectType": { "type": "reference", - "id": 61, + "id": 60, "name": "Relation" } }, @@ -13081,12 +13056,12 @@ }, { "type": "reference", - "id": 62, + "id": 61, "name": "RelationName" }, { "type": "reference", - "id": 65, + "id": 64, "name": "Relationships" } ], @@ -13094,7 +13069,7 @@ } }, { - "id": 117, + "id": 116, "name": "upsert", "kind": 4096, "kindString": "Call signature", @@ -13105,7 +13080,7 @@ }, "typeParameter": [ { - "id": 118, + "id": 117, "name": "Row", "kind": 131072, "kindString": "Type parameter", @@ -13130,7 +13105,7 @@ ], "parameters": [ { - "id": 119, + "id": 118, "name": "values", "kind": 32768, "kindString": "Parameter", @@ -13142,13 +13117,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 118, + "id": 117, "name": "Row" } } }, { - "id": 120, + "id": 119, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -13161,14 +13136,14 @@ "type": { "type": "reflection", "declaration": { - "id": 121, + "id": 120, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 124, + "id": 123, "name": "count", "kind": 1024, "kindString": "Property", @@ -13204,7 +13179,7 @@ } }, { - "id": 125, + "id": 124, "name": "defaultToNull", "kind": 1024, "kindString": "Property", @@ -13227,7 +13202,7 @@ } }, { - "id": 123, + "id": 122, "name": "ignoreDuplicates", "kind": 1024, "kindString": "Property", @@ -13250,7 +13225,7 @@ } }, { - "id": 122, + "id": 121, "name": "onConflict", "kind": 1024, "kindString": "Property", @@ -13278,10 +13253,10 @@ "title": "Properties", "kind": 1024, "children": [ - 124, - 125, 123, - 122 + 124, + 122, + 121 ] } ] @@ -13291,11 +13266,11 @@ ], "type": { "type": "reference", - "id": 144, + "id": 143, "typeArguments": [ { "type": "reference", - "id": 60, + "id": 59, "name": "Schema" }, { @@ -13306,7 +13281,7 @@ }, "objectType": { "type": "reference", - "id": 61, + "id": 60, "name": "Relation" } }, @@ -13316,12 +13291,12 @@ }, { "type": "reference", - "id": 62, + "id": 61, "name": "RelationName" }, { "type": "reference", - "id": 65, + "id": 64, "name": "Relationships" } ], @@ -13336,29 +13311,29 @@ "title": "Constructors", "kind": 512, "children": [ - 58 + 57 ] }, { "title": "Properties", "kind": 1024, "children": [ - 80, + 79, + 76, 77, 78, - 79, - 76 + 75 ] }, { "title": "Methods", "kind": 2048, "children": [ - 133, - 94, - 85, - 126, - 108 + 132, + 93, + 84, + 125, + 107 ] } ], @@ -13371,7 +13346,7 @@ ], "typeParameter": [ { - "id": 138, + "id": 137, "name": "Schema", "kind": 131072, "kindString": "Type parameter", @@ -13382,7 +13357,7 @@ } }, { - "id": 139, + "id": 138, "name": "Relation", "kind": 131072, "kindString": "Type parameter", @@ -13402,7 +13377,7 @@ } }, { - "id": 140, + "id": 139, "name": "RelationName", "kind": 131072, "kindString": "Type parameter", @@ -13413,7 +13388,7 @@ } }, { - "id": 143, + "id": 142, "name": "Relationships", "kind": 131072, "kindString": "Type parameter", @@ -13422,20 +13397,20 @@ "type": "conditional", "checkType": { "type": "reference", - "id": 61, + "id": 60, "name": "Relation" }, "extendsType": { "type": "reflection", "declaration": { - "id": 141, + "id": 140, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 142, + "id": 141, "name": "Relationships", "kind": 1024, "kindString": "Property", @@ -13458,7 +13433,7 @@ "title": "Properties", "kind": 1024, "children": [ - 142 + 141 ] } ], @@ -13484,28 +13459,28 @@ ] }, { - "id": 490, + "id": 489, "name": "PostgrestTransformBuilder", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 491, + "id": 490, "name": "constructor", "kind": 512, "kindString": "Constructor", "flags": {}, "signatures": [ { - "id": 492, + "id": 491, "name": "new PostgrestTransformBuilder", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "typeParameter": [ { - "id": 493, + "id": 492, "name": "Schema", "kind": 131072, "kindString": "Type parameter", @@ -13516,7 +13491,7 @@ } }, { - "id": 494, + "id": 493, "name": "Row", "kind": 131072, "kindString": "Type parameter", @@ -13539,14 +13514,14 @@ } }, { - "id": 495, + "id": 494, "name": "Result", "kind": 131072, "kindString": "Type parameter", "flags": {} }, { - "id": 496, + "id": 495, "name": "RelationName", "kind": 131072, "kindString": "Type parameter", @@ -13557,7 +13532,7 @@ } }, { - "id": 497, + "id": 496, "name": "Relationships", "kind": 131072, "kindString": "Type parameter", @@ -13570,24 +13545,24 @@ ], "parameters": [ { - "id": 498, + "id": 497, "name": "builder", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "reference", - "id": 495, + "id": 494, "name": "Result" } ], "name": "default", "dereferenced": { - "id": 610, + "id": 609, "name": "PostgrestBuilder", "kind": 128, "kindString": "Class", @@ -13596,7 +13571,7 @@ }, "children": [ { - "id": 611, + "id": 610, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -13604,20 +13579,20 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 19, + "line": 20, "character": 2 } ], "signatures": [ { - "id": 612, + "id": 611, "name": "new PostgrestBuilder", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "typeParameter": [ { - "id": 613, + "id": 612, "name": "Result", "kind": 131072, "kindString": "Type parameter", @@ -13626,18 +13601,18 @@ ], "parameters": [ { - "id": 614, + "id": 613, "name": "builder", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "reference", - "id": 613, + "id": 612, "name": "Result" } ], @@ -13648,11 +13623,11 @@ ], "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "reference", - "id": 613, + "id": 612, "name": "Result" } ], @@ -13662,7 +13637,7 @@ ] }, { - "id": 619, + "id": 618, "name": "body", "kind": 1024, "kindString": "Property", @@ -13673,7 +13648,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 13, + "line": 14, "character": 12 } ], @@ -13683,7 +13658,7 @@ } }, { - "id": 622, + "id": 621, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -13693,28 +13668,28 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 16, + "line": 17, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 623, + "id": 622, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 624, + "id": 623, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 625, + "id": 624, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -13738,7 +13713,7 @@ } }, { - "id": 626, + "id": 625, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -13773,7 +13748,7 @@ } }, { - "id": 617, + "id": 616, "name": "headers", "kind": 1024, "kindString": "Property", @@ -13783,7 +13758,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 11, + "line": 12, "character": 12 } ], @@ -13805,7 +13780,7 @@ } }, { - "id": 627, + "id": 626, "name": "isMaybeSingle", "kind": 1024, "kindString": "Property", @@ -13815,7 +13790,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 17, + "line": 18, "character": 12 } ], @@ -13825,7 +13800,7 @@ } }, { - "id": 615, + "id": 614, "name": "method", "kind": 1024, "kindString": "Property", @@ -13835,7 +13810,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 9, + "line": 10, "character": 12 } ], @@ -13866,7 +13841,7 @@ } }, { - "id": 618, + "id": 617, "name": "schema", "kind": 1024, "kindString": "Property", @@ -13877,7 +13852,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 12, + "line": 13, "character": 12 } ], @@ -13887,7 +13862,7 @@ } }, { - "id": 620, + "id": 619, "name": "shouldThrowOnError", "kind": 1024, "kindString": "Property", @@ -13897,7 +13872,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 14, + "line": 15, "character": 12 } ], @@ -13908,7 +13883,7 @@ "defaultValue": "false" }, { - "id": 621, + "id": 620, "name": "signal", "kind": 1024, "kindString": "Property", @@ -13919,7 +13894,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 15, + "line": 16, "character": 12 } ], @@ -13931,7 +13906,7 @@ } }, { - "id": 616, + "id": 615, "name": "url", "kind": 1024, "kindString": "Property", @@ -13941,7 +13916,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 10, + "line": 11, "character": 12 } ], @@ -13953,7 +13928,7 @@ } }, { - "id": 630, + "id": 629, "name": "then", "kind": 2048, "kindString": "Method", @@ -13961,31 +13936,31 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 49, + "line": 50, "character": 2 } ], "signatures": [ { - "id": 631, + "id": 630, "name": "then", "kind": 4096, "kindString": "Call signature", "flags": {}, "typeParameter": [ { - "id": 632, + "id": 631, "name": "TResult1", "kind": 131072, "kindString": "Type parameter", "flags": {}, "default": { "type": "reference", - "id": 658, + "id": 657, "typeArguments": [ { "type": "reference", - "id": 613, + "id": 612, "name": "Result" } ], @@ -13993,7 +13968,7 @@ } }, { - "id": 633, + "id": 632, "name": "TResult2", "kind": 131072, "kindString": "Type parameter", @@ -14006,7 +13981,7 @@ ], "parameters": [ { - "id": 634, + "id": 633, "name": "onfulfilled", "kind": 32768, "kindString": "Parameter", @@ -14023,32 +13998,32 @@ { "type": "reflection", "declaration": { - "id": 635, + "id": 634, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 636, + "id": 635, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 637, + "id": 636, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 658, + "id": 657, "typeArguments": [ { "type": "reference", - "id": 613, + "id": 612, "name": "Result" } ], @@ -14061,7 +14036,7 @@ "types": [ { "type": "reference", - "id": 475, + "id": 474, "name": "TResult1" }, { @@ -14069,7 +14044,7 @@ "typeArguments": [ { "type": "reference", - "id": 475, + "id": 474, "name": "TResult1" } ], @@ -14087,7 +14062,7 @@ } }, { - "id": 638, + "id": 637, "name": "onrejected", "kind": 32768, "kindString": "Parameter", @@ -14104,21 +14079,21 @@ { "type": "reflection", "declaration": { - "id": 639, + "id": 638, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 640, + "id": 639, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 641, + "id": 640, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -14134,7 +14109,7 @@ "types": [ { "type": "reference", - "id": 476, + "id": 475, "name": "TResult2" }, { @@ -14142,7 +14117,7 @@ "typeArguments": [ { "type": "reference", - "id": 476, + "id": 475, "name": "TResult2" } ], @@ -14168,12 +14143,12 @@ "types": [ { "type": "reference", - "id": 475, + "id": 474, "name": "TResult1" }, { "type": "reference", - "id": 476, + "id": 475, "name": "TResult2" } ] @@ -14195,7 +14170,7 @@ } }, { - "id": 628, + "id": 627, "name": "throwOnError", "kind": 2048, "kindString": "Method", @@ -14203,13 +14178,13 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 44, + "line": 45, "character": 2 } ], "signatures": [ { - "id": 629, + "id": 628, "name": "throwOnError", "kind": 4096, "kindString": "Call signature", @@ -14220,11 +14195,11 @@ }, "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "reference", - "id": 613, + "id": 612, "name": "Result" } ], @@ -14239,43 +14214,43 @@ "title": "Constructors", "kind": 512, "children": [ - 611 + 610 ] }, { "title": "Properties", "kind": 1024, "children": [ - 619, - 622, - 617, - 627, - 615, 618, - 620, 621, - 616 + 616, + 626, + 614, + 617, + 619, + 620, + 615 ] }, { "title": "Methods", "kind": 2048, "children": [ - 630, - 628 + 629, + 627 ] } ], "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 6, + "line": 7, "character": 30 } ], "typeParameter": [ { - "id": 642, + "id": 641, "name": "Result", "kind": 131072, "kindString": "Type parameter", @@ -14285,7 +14260,7 @@ "extendedBy": [ { "type": "reference", - "id": 490, + "id": 489, "name": "PostgrestTransformBuilder" } ], @@ -14295,11 +14270,11 @@ "typeArguments": [ { "type": "reference", - "id": 658, + "id": 657, "typeArguments": [ { "type": "reference", - "id": 613, + "id": 612, "name": "Result" } ], @@ -14317,31 +14292,31 @@ ], "type": { "type": "reference", - "id": 490, + "id": 489, "typeArguments": [ { "type": "reference", - "id": 493, + "id": 492, "name": "Schema" }, { "type": "reference", - "id": 494, + "id": 493, "name": "Row" }, { "type": "reference", - "id": 495, + "id": 494, "name": "Result" }, { "type": "reference", - "id": 496, + "id": 495, "name": "RelationName" }, { "type": "reference", - "id": 497, + "id": 496, "name": "Relationships" } ], @@ -14349,19 +14324,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 612, + "id": 611, "name": "default.constructor" } } ], "inheritedFrom": { "type": "reference", - "id": 611, + "id": 610, "name": "default.constructor" } }, { - "id": 582, + "id": 581, "name": "body", "kind": 1024, "kindString": "Property", @@ -14372,7 +14347,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 13, + "line": 14, "character": 12 } ], @@ -14382,12 +14357,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 619, + "id": 618, "name": "default.body" } }, { - "id": 585, + "id": 584, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -14397,28 +14372,28 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 16, + "line": 17, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 586, + "id": 585, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 587, + "id": 586, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 588, + "id": 587, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -14442,7 +14417,7 @@ } }, { - "id": 589, + "id": 588, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -14477,12 +14452,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 622, + "id": 621, "name": "default.fetch" } }, { - "id": 580, + "id": 579, "name": "headers", "kind": 1024, "kindString": "Property", @@ -14492,7 +14467,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 11, + "line": 12, "character": 12 } ], @@ -14514,12 +14489,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 617, + "id": 616, "name": "default.headers" } }, { - "id": 590, + "id": 589, "name": "isMaybeSingle", "kind": 1024, "kindString": "Property", @@ -14529,7 +14504,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 17, + "line": 18, "character": 12 } ], @@ -14539,12 +14514,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 627, + "id": 626, "name": "default.isMaybeSingle" } }, { - "id": 578, + "id": 577, "name": "method", "kind": 1024, "kindString": "Property", @@ -14554,7 +14529,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 9, + "line": 10, "character": 12 } ], @@ -14585,12 +14560,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 615, + "id": 614, "name": "default.method" } }, { - "id": 581, + "id": 580, "name": "schema", "kind": 1024, "kindString": "Property", @@ -14601,7 +14576,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 12, + "line": 13, "character": 12 } ], @@ -14611,12 +14586,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 618, + "id": 617, "name": "default.schema" } }, { - "id": 583, + "id": 582, "name": "shouldThrowOnError", "kind": 1024, "kindString": "Property", @@ -14626,7 +14601,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 14, + "line": 15, "character": 12 } ], @@ -14637,12 +14612,12 @@ "defaultValue": "false", "inheritedFrom": { "type": "reference", - "id": 620, + "id": 619, "name": "default.shouldThrowOnError" } }, { - "id": 584, + "id": 583, "name": "signal", "kind": 1024, "kindString": "Property", @@ -14653,7 +14628,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 15, + "line": 16, "character": 12 } ], @@ -14665,12 +14640,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 621, + "id": 620, "name": "default.signal" } }, { - "id": 579, + "id": 578, "name": "url", "kind": 1024, "kindString": "Property", @@ -14680,7 +14655,7 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 10, + "line": 11, "character": 12 } ], @@ -14692,12 +14667,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 616, + "id": 615, "name": "default.url" } }, { - "id": 550, + "id": 549, "name": "abortSignal", "kind": 2048, "kindString": "Method", @@ -14711,7 +14686,7 @@ ], "signatures": [ { - "id": 551, + "id": 550, "name": "abortSignal", "kind": 4096, "kindString": "Call signature", @@ -14721,7 +14696,7 @@ }, "parameters": [ { - "id": 552, + "id": 551, "name": "signal", "kind": 32768, "kindString": "Parameter", @@ -14739,31 +14714,31 @@ ], "type": { "type": "reference", - "id": 490, + "id": 489, "typeArguments": [ { "type": "reference", - "id": 493, + "id": 492, "name": "Schema" }, { "type": "reference", - "id": 494, + "id": 493, "name": "Row" }, { "type": "reference", - "id": 495, + "id": 494, "name": "Result" }, { "type": "reference", - "id": 496, + "id": 495, "name": "RelationName" }, { "type": "reference", - "id": 497, + "id": 496, "name": "Relationships" } ], @@ -14773,7 +14748,7 @@ ] }, { - "id": 559, + "id": 558, "name": "csv", "kind": 2048, "kindString": "Method", @@ -14787,7 +14762,7 @@ ], "signatures": [ { - "id": 560, + "id": 559, "name": "csv", "kind": 4096, "kindString": "Call signature", @@ -14797,7 +14772,7 @@ }, "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "intrinsic", @@ -14810,7 +14785,7 @@ ] }, { - "id": 563, + "id": 562, "name": "explain", "kind": 2048, "kindString": "Method", @@ -14818,23 +14793,24 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 255, + "line": 259, "character": 2 } ], "signatures": [ { - "id": 564, + "id": 563, "name": "explain", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Return `data` as the EXPLAIN plan for the query." + "shortText": "Return `data` as the EXPLAIN plan for the query.", + "text": "You need to enable the\n[db_plan_enabled](https://supabase.com/docs/guides/database/debugging-performance#enabling-explain)\nsetting before using this method.\n" }, "parameters": [ { - "id": 565, + "id": 564, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -14846,14 +14822,14 @@ "type": { "type": "reflection", "declaration": { - "id": 566, + "id": 565, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 567, + "id": 566, "name": "analyze", "kind": 1024, "kindString": "Property", @@ -14866,7 +14842,7 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 263, + "line": 267, "character": 4 } ], @@ -14876,7 +14852,7 @@ } }, { - "id": 570, + "id": 569, "name": "buffers", "kind": 1024, "kindString": "Property", @@ -14889,7 +14865,7 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 266, + "line": 270, "character": 4 } ], @@ -14899,7 +14875,7 @@ } }, { - "id": 572, + "id": 571, "name": "format", "kind": 1024, "kindString": "Property", @@ -14912,7 +14888,7 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 268, + "line": 272, "character": 4 } ], @@ -14931,7 +14907,7 @@ } }, { - "id": 569, + "id": 568, "name": "settings", "kind": 1024, "kindString": "Property", @@ -14944,7 +14920,7 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 265, + "line": 269, "character": 4 } ], @@ -14954,7 +14930,7 @@ } }, { - "id": 568, + "id": 567, "name": "verbose", "kind": 1024, "kindString": "Property", @@ -14967,7 +14943,7 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 264, + "line": 268, "character": 4 } ], @@ -14977,7 +14953,7 @@ } }, { - "id": 571, + "id": 570, "name": "wal", "kind": 1024, "kindString": "Property", @@ -14990,7 +14966,7 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 267, + "line": 271, "character": 4 } ], @@ -15005,12 +14981,12 @@ "title": "Properties", "kind": 1024, "children": [ - 567, - 570, - 572, + 566, 569, + 571, 568, - 571 + 567, + 570 ] } ] @@ -15024,7 +15000,7 @@ "types": [ { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "intrinsic", @@ -15035,7 +15011,7 @@ }, { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "array", @@ -15065,7 +15041,7 @@ ] }, { - "id": 561, + "id": 560, "name": "geojson", "kind": 2048, "kindString": "Method", @@ -15079,7 +15055,7 @@ ], "signatures": [ { - "id": 562, + "id": 561, "name": "geojson", "kind": 4096, "kindString": "Call signature", @@ -15089,7 +15065,7 @@ }, "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "reference", @@ -15114,7 +15090,7 @@ ] }, { - "id": 535, + "id": 534, "name": "limit", "kind": 2048, "kindString": "Method", @@ -15128,7 +15104,7 @@ ], "signatures": [ { - "id": 536, + "id": 535, "name": "limit", "kind": 4096, "kindString": "Call signature", @@ -15138,7 +15114,7 @@ }, "parameters": [ { - "id": 537, + "id": 536, "name": "count", "kind": 32768, "kindString": "Parameter", @@ -15152,7 +15128,7 @@ } }, { - "id": 538, + "id": 537, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -15164,14 +15140,14 @@ "type": { "type": "reflection", "declaration": { - "id": 539, + "id": 538, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 540, + "id": 539, "name": "foreignTable", "kind": 1024, "kindString": "Property", @@ -15194,7 +15170,7 @@ } }, { - "id": 541, + "id": 540, "name": "referencedTable", "kind": 1024, "kindString": "Property", @@ -15222,8 +15198,8 @@ "title": "Properties", "kind": 1024, "children": [ - 540, - 541 + 539, + 540 ] } ] @@ -15234,31 +15210,31 @@ ], "type": { "type": "reference", - "id": 490, + "id": 489, "typeArguments": [ { "type": "reference", - "id": 493, + "id": 492, "name": "Schema" }, { "type": "reference", - "id": 494, + "id": 493, "name": "Row" }, { "type": "reference", - "id": 495, + "id": 494, "name": "Result" }, { "type": "reference", - "id": 496, + "id": 495, "name": "RelationName" }, { "type": "reference", - "id": 497, + "id": 496, "name": "Relationships" } ], @@ -15268,7 +15244,7 @@ ] }, { - "id": 556, + "id": 555, "name": "maybeSingle", "kind": 2048, "kindString": "Method", @@ -15282,7 +15258,7 @@ ], "signatures": [ { - "id": 557, + "id": 556, "name": "maybeSingle", "kind": 4096, "kindString": "Call signature", @@ -15293,7 +15269,7 @@ }, "typeParameter": [ { - "id": 558, + "id": 557, "name": "ResultOne", "kind": 131072, "kindString": "Type parameter", @@ -15302,7 +15278,7 @@ "type": "conditional", "checkType": { "type": "reference", - "id": 495, + "id": 494, "name": "Result" }, "extendsType": { @@ -15325,7 +15301,7 @@ ], "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "union", @@ -15336,7 +15312,7 @@ }, { "type": "reference", - "id": 438, + "id": 437, "name": "ResultOne" } ] @@ -15348,7 +15324,7 @@ ] }, { - "id": 504, + "id": 503, "name": "order", "kind": 2048, "kindString": "Method", @@ -15362,7 +15338,7 @@ ], "signatures": [ { - "id": 505, + "id": 504, "name": "order", "kind": 4096, "kindString": "Call signature", @@ -15373,7 +15349,7 @@ }, "typeParameter": [ { - "id": 506, + "id": 505, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -15386,7 +15362,7 @@ ], "parameters": [ { - "id": 507, + "id": 506, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -15396,13 +15372,13 @@ }, "type": { "type": "reference", - "id": 386, + "id": 385, "name": "ColumnName", "dereferenced": {} } }, { - "id": 508, + "id": 507, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -15415,14 +15391,14 @@ "type": { "type": "reflection", "declaration": { - "id": 509, + "id": 508, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 510, + "id": 509, "name": "ascending", "kind": 1024, "kindString": "Property", @@ -15444,31 +15420,31 @@ "name": "boolean" } }, + { + "id": 510, + "name": "nullsFirst", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "If `true`, `null`s appear first. If `false`,\n`null`s appear last." + }, + "sources": [ + { + "fileName": "src/PostgrestTransformBuilder.ts", + "line": 57, + "character": 37 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, { "id": 511, - "name": "nullsFirst", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "If `true`, `null`s appear first. If `false`,\n`null`s appear last." - }, - "sources": [ - { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 57, - "character": 37 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 512, "name": "referencedTable", "kind": 1024, "kindString": "Property", @@ -15496,9 +15472,9 @@ "title": "Properties", "kind": 1024, "children": [ + 509, 510, - 511, - 512 + 511 ] } ] @@ -15508,31 +15484,31 @@ ], "type": { "type": "reference", - "id": 490, + "id": 489, "typeArguments": [ { "type": "reference", - "id": 493, + "id": 492, "name": "Schema" }, { "type": "reference", - "id": 494, + "id": 493, "name": "Row" }, { "type": "reference", - "id": 495, + "id": 494, "name": "Result" }, { "type": "reference", - "id": 496, + "id": 495, "name": "RelationName" }, { "type": "reference", - "id": 497, + "id": 496, "name": "Relationships" } ], @@ -15540,7 +15516,7 @@ } }, { - "id": 513, + "id": 512, "name": "order", "kind": 4096, "kindString": "Call signature", @@ -15551,7 +15527,7 @@ }, "parameters": [ { - "id": 514, + "id": 513, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -15565,7 +15541,7 @@ } }, { - "id": 515, + "id": 514, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -15578,14 +15554,14 @@ "type": { "type": "reflection", "declaration": { - "id": 516, + "id": 515, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 517, + "id": 516, "name": "ascending", "kind": 1024, "kindString": "Property", @@ -15608,7 +15584,7 @@ } }, { - "id": 518, + "id": 517, "name": "nullsFirst", "kind": 1024, "kindString": "Property", @@ -15631,7 +15607,7 @@ } }, { - "id": 519, + "id": 518, "name": "referencedTable", "kind": 1024, "kindString": "Property", @@ -15659,9 +15635,9 @@ "title": "Properties", "kind": 1024, "children": [ + 516, 517, - 518, - 519 + 518 ] } ] @@ -15671,31 +15647,31 @@ ], "type": { "type": "reference", - "id": 490, + "id": 489, "typeArguments": [ { "type": "reference", - "id": 493, + "id": 492, "name": "Schema" }, { "type": "reference", - "id": 494, + "id": 493, "name": "Row" }, { "type": "reference", - "id": 495, + "id": 494, "name": "Result" }, { "type": "reference", - "id": 496, + "id": 495, "name": "RelationName" }, { "type": "reference", - "id": 497, + "id": 496, "name": "Relationships" } ], @@ -15703,7 +15679,7 @@ } }, { - "id": 520, + "id": 519, "name": "order", "kind": 4096, "kindString": "Call signature", @@ -15720,7 +15696,7 @@ }, "typeParameter": [ { - "id": 521, + "id": 520, "name": "ColumnName", "kind": 131072, "kindString": "Type parameter", @@ -15733,7 +15709,7 @@ ], "parameters": [ { - "id": 522, + "id": 521, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -15743,13 +15719,13 @@ }, "type": { "type": "reference", - "id": 401, + "id": 400, "name": "ColumnName", "dereferenced": {} } }, { - "id": 523, + "id": 522, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -15762,14 +15738,14 @@ "type": { "type": "reflection", "declaration": { - "id": 524, + "id": 523, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 525, + "id": 524, "name": "ascending", "kind": 1024, "kindString": "Property", @@ -15789,7 +15765,7 @@ } }, { - "id": 527, + "id": 526, "name": "foreignTable", "kind": 1024, "kindString": "Property", @@ -15809,7 +15785,7 @@ } }, { - "id": 526, + "id": 525, "name": "nullsFirst", "kind": 1024, "kindString": "Property", @@ -15834,9 +15810,9 @@ "title": "Properties", "kind": 1024, "children": [ - 525, - 527, - 526 + 524, + 526, + 525 ] } ] @@ -15846,31 +15822,31 @@ ], "type": { "type": "reference", - "id": 490, + "id": 489, "typeArguments": [ { "type": "reference", - "id": 493, + "id": 492, "name": "Schema" }, { "type": "reference", - "id": 494, + "id": 493, "name": "Row" }, { "type": "reference", - "id": 495, + "id": 494, "name": "Result" }, { "type": "reference", - "id": 496, + "id": 495, "name": "RelationName" }, { "type": "reference", - "id": 497, + "id": 496, "name": "Relationships" } ], @@ -15878,7 +15854,7 @@ } }, { - "id": 528, + "id": 527, "name": "order", "kind": 4096, "kindString": "Call signature", @@ -15895,7 +15871,7 @@ }, "parameters": [ { - "id": 529, + "id": 528, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -15909,7 +15885,7 @@ } }, { - "id": 530, + "id": 529, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -15922,14 +15898,14 @@ "type": { "type": "reflection", "declaration": { - "id": 531, + "id": 530, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 532, + "id": 531, "name": "ascending", "kind": 1024, "kindString": "Property", @@ -15949,7 +15925,7 @@ } }, { - "id": 534, + "id": 533, "name": "foreignTable", "kind": 1024, "kindString": "Property", @@ -15969,7 +15945,7 @@ } }, { - "id": 533, + "id": 532, "name": "nullsFirst", "kind": 1024, "kindString": "Property", @@ -15994,9 +15970,9 @@ "title": "Properties", "kind": 1024, "children": [ - 532, - 534, - 533 + 531, + 533, + 532 ] } ] @@ -16006,31 +15982,31 @@ ], "type": { "type": "reference", - "id": 490, + "id": 489, "typeArguments": [ { "type": "reference", - "id": 493, + "id": 492, "name": "Schema" }, { "type": "reference", - "id": 494, + "id": 493, "name": "Row" }, { "type": "reference", - "id": 495, + "id": 494, "name": "Result" }, { "type": "reference", - "id": 496, + "id": 495, "name": "RelationName" }, { "type": "reference", - "id": 497, + "id": 496, "name": "Relationships" } ], @@ -16040,7 +16016,7 @@ ] }, { - "id": 542, + "id": 541, "name": "range", "kind": 2048, "kindString": "Method", @@ -16054,7 +16030,7 @@ ], "signatures": [ { - "id": 543, + "id": 542, "name": "range", "kind": 4096, "kindString": "Call signature", @@ -16064,7 +16040,7 @@ }, "parameters": [ { - "id": 544, + "id": 543, "name": "from", "kind": 32768, "kindString": "Parameter", @@ -16078,7 +16054,7 @@ } }, { - "id": 545, + "id": 544, "name": "to", "kind": 32768, "kindString": "Parameter", @@ -16092,7 +16068,7 @@ } }, { - "id": 546, + "id": 545, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -16104,14 +16080,14 @@ "type": { "type": "reflection", "declaration": { - "id": 547, + "id": 546, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 548, + "id": 547, "name": "foreignTable", "kind": 1024, "kindString": "Property", @@ -16134,7 +16110,7 @@ } }, { - "id": 549, + "id": 548, "name": "referencedTable", "kind": 1024, "kindString": "Property", @@ -16162,8 +16138,8 @@ "title": "Properties", "kind": 1024, "children": [ - 548, - 549 + 547, + 548 ] } ] @@ -16174,31 +16150,31 @@ ], "type": { "type": "reference", - "id": 490, + "id": 489, "typeArguments": [ { "type": "reference", - "id": 493, + "id": 492, "name": "Schema" }, { "type": "reference", - "id": 494, + "id": 493, "name": "Row" }, { "type": "reference", - "id": 495, + "id": 494, "name": "Result" }, { "type": "reference", - "id": 496, + "id": 495, "name": "RelationName" }, { "type": "reference", - "id": 497, + "id": 496, "name": "Relationships" } ], @@ -16208,7 +16184,7 @@ ] }, { - "id": 575, + "id": 574, "name": "returns", "kind": 2048, "kindString": "Method", @@ -16216,13 +16192,13 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 307, + "line": 311, "character": 2 } ], "signatures": [ { - "id": 576, + "id": 575, "name": "returns", "kind": 4096, "kindString": "Call signature", @@ -16232,7 +16208,7 @@ }, "typeParameter": [ { - "id": 577, + "id": 576, "name": "NewResult", "kind": 131072, "kindString": "Type parameter", @@ -16244,31 +16220,31 @@ ], "type": { "type": "reference", - "id": 490, + "id": 489, "typeArguments": [ { "type": "reference", - "id": 493, + "id": 492, "name": "Schema" }, { "type": "reference", - "id": 494, + "id": 493, "name": "Row" }, { "type": "reference", - "id": 457, + "id": 456, "name": "NewResult" }, { "type": "reference", - "id": 496, + "id": 495, "name": "RelationName" }, { "type": "reference", - "id": 497, + "id": 496, "name": "Relationships" } ], @@ -16278,7 +16254,7 @@ ] }, { - "id": 573, + "id": 572, "name": "rollback", "kind": 2048, "kindString": "Method", @@ -16286,13 +16262,13 @@ "sources": [ { "fileName": "src/PostgrestTransformBuilder.ts", - "line": 293, + "line": 297, "character": 2 } ], "signatures": [ { - "id": 574, + "id": 573, "name": "rollback", "kind": 4096, "kindString": "Call signature", @@ -16303,31 +16279,31 @@ }, "type": { "type": "reference", - "id": 490, + "id": 489, "typeArguments": [ { "type": "reference", - "id": 493, + "id": 492, "name": "Schema" }, { "type": "reference", - "id": 494, + "id": 493, "name": "Row" }, { "type": "reference", - "id": 495, + "id": 494, "name": "Result" }, { "type": "reference", - "id": 496, + "id": 495, "name": "RelationName" }, { "type": "reference", - "id": 497, + "id": 496, "name": "Relationships" } ], @@ -16337,7 +16313,7 @@ ] }, { - "id": 499, + "id": 498, "name": "select", "kind": 2048, "kindString": "Method", @@ -16351,7 +16327,7 @@ ], "signatures": [ { - "id": 500, + "id": 499, "name": "select", "kind": 4096, "kindString": "Call signature", @@ -16362,7 +16338,7 @@ }, "typeParameter": [ { - "id": 501, + "id": 500, "name": "Query", "kind": 131072, "kindString": "Type parameter", @@ -16377,7 +16353,7 @@ } }, { - "id": 502, + "id": 501, "name": "NewResultOne", "kind": 131072, "kindString": "Type parameter", @@ -16387,27 +16363,27 @@ "typeArguments": [ { "type": "reference", - "id": 493, + "id": 492, "name": "Schema" }, { "type": "reference", - "id": 494, + "id": 493, "name": "Row" }, { "type": "reference", - "id": 496, + "id": 495, "name": "RelationName" }, { "type": "reference", - "id": 497, + "id": 496, "name": "Relationships" }, { "type": "reference", - "id": 381, + "id": 380, "name": "Query" } ], @@ -16417,7 +16393,7 @@ ], "parameters": [ { - "id": 503, + "id": 502, "name": "columns", "kind": 32768, "kindString": "Parameter", @@ -16429,7 +16405,7 @@ }, "type": { "type": "reference", - "id": 381, + "id": 380, "name": "Query", "dereferenced": {} } @@ -16437,34 +16413,34 @@ ], "type": { "type": "reference", - "id": 490, + "id": 489, "typeArguments": [ { "type": "reference", - "id": 493, + "id": 492, "name": "Schema" }, { "type": "reference", - "id": 494, + "id": 493, "name": "Row" }, { "type": "array", "elementType": { "type": "reference", - "id": 382, + "id": 381, "name": "NewResultOne" } }, { "type": "reference", - "id": 496, + "id": 495, "name": "RelationName" }, { "type": "reference", - "id": 497, + "id": 496, "name": "Relationships" } ], @@ -16474,7 +16450,7 @@ ] }, { - "id": 553, + "id": 552, "name": "single", "kind": 2048, "kindString": "Method", @@ -16488,7 +16464,7 @@ ], "signatures": [ { - "id": 554, + "id": 553, "name": "single", "kind": 4096, "kindString": "Call signature", @@ -16499,7 +16475,7 @@ }, "typeParameter": [ { - "id": 555, + "id": 554, "name": "ResultOne", "kind": 131072, "kindString": "Type parameter", @@ -16508,7 +16484,7 @@ "type": "conditional", "checkType": { "type": "reference", - "id": 495, + "id": 494, "name": "Result" }, "extendsType": { @@ -16531,11 +16507,11 @@ ], "type": { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "reference", - "id": 435, + "id": 434, "name": "ResultOne" } ], @@ -16545,7 +16521,7 @@ ] }, { - "id": 593, + "id": 592, "name": "then", "kind": 2048, "kindString": "Method", @@ -16553,31 +16529,31 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 49, + "line": 50, "character": 2 } ], "signatures": [ { - "id": 594, + "id": 593, "name": "then", "kind": 4096, "kindString": "Call signature", "flags": {}, "typeParameter": [ { - "id": 595, + "id": 594, "name": "TResult1", "kind": 131072, "kindString": "Type parameter", "flags": {}, "default": { "type": "reference", - "id": 658, + "id": 657, "typeArguments": [ { "type": "reference", - "id": 495, + "id": 494, "name": "Result" } ], @@ -16585,7 +16561,7 @@ } }, { - "id": 596, + "id": 595, "name": "TResult2", "kind": 131072, "kindString": "Type parameter", @@ -16598,7 +16574,7 @@ ], "parameters": [ { - "id": 597, + "id": 596, "name": "onfulfilled", "kind": 32768, "kindString": "Parameter", @@ -16615,32 +16591,32 @@ { "type": "reflection", "declaration": { - "id": 598, + "id": 597, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 599, + "id": 598, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 600, + "id": 599, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 658, + "id": 657, "typeArguments": [ { "type": "reference", - "id": 495, + "id": 494, "name": "Result" } ], @@ -16653,7 +16629,7 @@ "types": [ { "type": "reference", - "id": 475, + "id": 474, "name": "TResult1" }, { @@ -16661,7 +16637,7 @@ "typeArguments": [ { "type": "reference", - "id": 475, + "id": 474, "name": "TResult1" } ], @@ -16679,7 +16655,7 @@ } }, { - "id": 601, + "id": 600, "name": "onrejected", "kind": 32768, "kindString": "Parameter", @@ -16696,21 +16672,21 @@ { "type": "reflection", "declaration": { - "id": 602, + "id": 601, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 603, + "id": 602, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 604, + "id": 603, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -16726,7 +16702,7 @@ "types": [ { "type": "reference", - "id": 476, + "id": 475, "name": "TResult2" }, { @@ -16734,7 +16710,7 @@ "typeArguments": [ { "type": "reference", - "id": 476, + "id": 475, "name": "TResult2" } ], @@ -16760,12 +16736,12 @@ "types": [ { "type": "reference", - "id": 475, + "id": 474, "name": "TResult1" }, { "type": "reference", - "id": 476, + "id": 475, "name": "TResult2" } ] @@ -16777,19 +16753,19 @@ }, "inheritedFrom": { "type": "reference", - "id": 631, + "id": 630, "name": "default.then" } } ], "inheritedFrom": { "type": "reference", - "id": 630, + "id": 629, "name": "default.then" } }, { - "id": 591, + "id": 590, "name": "throwOnError", "kind": 2048, "kindString": "Method", @@ -16797,13 +16773,13 @@ "sources": [ { "fileName": "src/PostgrestBuilder.ts", - "line": 44, + "line": 45, "character": 2 } ], "signatures": [ { - "id": 592, + "id": 591, "name": "throwOnError", "kind": 4096, "kindString": "Call signature", @@ -16814,31 +16790,31 @@ }, "type": { "type": "reference", - "id": 490, + "id": 489, "typeArguments": [ { "type": "reference", - "id": 493, + "id": 492, "name": "Schema" }, { "type": "reference", - "id": 494, + "id": 493, "name": "Row" }, { "type": "reference", - "id": 495, + "id": 494, "name": "Result" }, { "type": "reference", - "id": 496, + "id": 495, "name": "RelationName" }, { "type": "reference", - "id": 497, + "id": 496, "name": "Relationships" } ], @@ -16846,14 +16822,14 @@ }, "inheritedFrom": { "type": "reference", - "id": 629, + "id": 628, "name": "default.throwOnError" } } ], "inheritedFrom": { "type": "reference", - "id": 628, + "id": 627, "name": "default.throwOnError" } } @@ -16863,42 +16839,42 @@ "title": "Constructors", "kind": 512, "children": [ - 491 + 490 ] }, { "title": "Properties", "kind": 1024, "children": [ - 582, - 585, - 580, - 590, - 578, 581, - 583, 584, - 579 + 579, + 589, + 577, + 580, + 582, + 583, + 578 ] }, { "title": "Methods", "kind": 2048, "children": [ - 550, - 559, - 563, - 561, - 535, - 556, - 504, - 542, - 575, - 573, - 499, - 553, - 593, - 591 + 549, + 558, + 562, + 560, + 534, + 555, + 503, + 541, + 574, + 572, + 498, + 552, + 592, + 590 ] } ], @@ -16911,7 +16887,7 @@ ], "typeParameter": [ { - "id": 605, + "id": 604, "name": "Schema", "kind": 131072, "kindString": "Type parameter", @@ -16922,7 +16898,7 @@ } }, { - "id": 606, + "id": 605, "name": "Row", "kind": 131072, "kindString": "Type parameter", @@ -16945,14 +16921,14 @@ } }, { - "id": 607, + "id": 606, "name": "Result", "kind": 131072, "kindString": "Type parameter", "flags": {} }, { - "id": 608, + "id": 607, "name": "RelationName", "kind": 131072, "kindString": "Type parameter", @@ -16963,7 +16939,7 @@ } }, { - "id": 609, + "id": 608, "name": "Relationships", "kind": 131072, "kindString": "Type parameter", @@ -16977,11 +16953,11 @@ "extendedTypes": [ { "type": "reference", - "id": 610, + "id": 609, "typeArguments": [ { "type": "reference", - "id": 495, + "id": 494, "name": "Result" } ], @@ -16991,20 +16967,20 @@ "extendedBy": [ { "type": "reference", - "id": 144, + "id": 143, "name": "PostgrestFilterBuilder" } ] }, { - "id": 645, + "id": 644, "name": "PostgrestResponseFailure", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 648, + "id": 647, "name": "count", "kind": 1024, "kindString": "Property", @@ -17022,7 +16998,7 @@ } }, { - "id": 647, + "id": 646, "name": "data", "kind": 1024, "kindString": "Property", @@ -17040,7 +17016,7 @@ } }, { - "id": 646, + "id": 645, "name": "error", "kind": 1024, "kindString": "Property", @@ -17054,10 +17030,10 @@ ], "type": { "type": "reference", - "id": 662, + "id": 661, "name": "PostgrestError", "dereferenced": { - "id": 662, + "id": 661, "name": "PostgrestError", "kind": 4194304, "kindString": "Type alias", @@ -17076,14 +17052,14 @@ "type": { "type": "reflection", "declaration": { - "id": 663, + "id": 662, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 667, + "id": 666, "name": "code", "kind": 1024, "kindString": "Property", @@ -17101,7 +17077,7 @@ } }, { - "id": 665, + "id": 664, "name": "details", "kind": 1024, "kindString": "Property", @@ -17119,7 +17095,7 @@ } }, { - "id": 666, + "id": 665, "name": "hint", "kind": 1024, "kindString": "Property", @@ -17137,7 +17113,7 @@ } }, { - "id": 664, + "id": 663, "name": "message", "kind": 1024, "kindString": "Property", @@ -17160,10 +17136,10 @@ "title": "Properties", "kind": 1024, "children": [ - 667, - 665, 666, - 664 + 664, + 665, + 663 ] } ], @@ -17180,7 +17156,7 @@ } }, { - "id": 649, + "id": 648, "name": "status", "kind": 1024, "kindString": "Property", @@ -17202,7 +17178,7 @@ } }, { - "id": 650, + "id": 649, "name": "statusText", "kind": 1024, "kindString": "Property", @@ -17229,11 +17205,11 @@ "title": "Properties", "kind": 1024, "children": [ - 648, 647, 646, - 649, - 650 + 645, + 648, + 649 ] } ], @@ -17252,14 +17228,14 @@ ] }, { - "id": 651, + "id": 650, "name": "PostgrestResponseSuccess", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 654, + "id": 653, "name": "count", "kind": 1024, "kindString": "Property", @@ -17286,7 +17262,7 @@ } }, { - "id": 653, + "id": 652, "name": "data", "kind": 1024, "kindString": "Property", @@ -17300,13 +17276,13 @@ ], "type": { "type": "reference", - "id": 657, + "id": 656, "name": "T", "dereferenced": {} } }, { - "id": 652, + "id": 651, "name": "error", "kind": 1024, "kindString": "Property", @@ -17324,7 +17300,7 @@ } }, { - "id": 655, + "id": 654, "name": "status", "kind": 1024, "kindString": "Property", @@ -17346,7 +17322,7 @@ } }, { - "id": 656, + "id": 655, "name": "statusText", "kind": 1024, "kindString": "Property", @@ -17373,11 +17349,11 @@ "title": "Properties", "kind": 1024, "children": [ - 654, 653, 652, - 655, - 656 + 651, + 654, + 655 ] } ], @@ -17390,7 +17366,7 @@ ], "typeParameter": [ { - "id": 657, + "id": 656, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -17405,7 +17381,7 @@ ] }, { - "id": 662, + "id": 661, "name": "PostgrestError", "kind": 4194304, "kindString": "Type alias", @@ -17424,14 +17400,14 @@ "type": { "type": "reflection", "declaration": { - "id": 663, + "id": 662, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 667, + "id": 666, "name": "code", "kind": 1024, "kindString": "Property", @@ -17449,7 +17425,7 @@ } }, { - "id": 665, + "id": 664, "name": "details", "kind": 1024, "kindString": "Property", @@ -17467,7 +17443,7 @@ } }, { - "id": 666, + "id": 665, "name": "hint", "kind": 1024, "kindString": "Property", @@ -17485,7 +17461,7 @@ } }, { - "id": 664, + "id": 663, "name": "message", "kind": 1024, "kindString": "Property", @@ -17508,10 +17484,10 @@ "title": "Properties", "kind": 1024, "children": [ - 667, - 665, 666, - 664 + 664, + 665, + 663 ] } ], @@ -17526,7 +17502,7 @@ } }, { - "id": 660, + "id": 659, "name": "PostgrestMaybeSingleResponse", "kind": 4194304, "kindString": "Type alias", @@ -17540,7 +17516,7 @@ ], "typeParameter": [ { - "id": 661, + "id": 660, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -17549,14 +17525,14 @@ ], "type": { "type": "reference", - "id": 658, + "id": 657, "typeArguments": [ { "type": "union", "types": [ { "type": "reference", - "id": 661, + "id": 660, "name": "T" }, { @@ -17570,7 +17546,7 @@ } }, { - "id": 643, + "id": 642, "name": "PostgrestResponse", "kind": 4194304, "kindString": "Type alias", @@ -17584,7 +17560,7 @@ ], "typeParameter": [ { - "id": 644, + "id": 643, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -17593,13 +17569,13 @@ ], "type": { "type": "reference", - "id": 658, + "id": 657, "typeArguments": [ { "type": "array", "elementType": { "type": "reference", - "id": 644, + "id": 643, "name": "T" } } @@ -17608,7 +17584,7 @@ } }, { - "id": 658, + "id": 657, "name": "PostgrestSingleResponse", "kind": 4194304, "kindString": "Type alias", @@ -17622,7 +17598,7 @@ ], "typeParameter": [ { - "id": 659, + "id": 658, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -17633,14 +17609,14 @@ "type": "union", "types": [ { - "id": 651, + "id": 650, "name": "PostgrestResponseSuccess", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 654, + "id": 653, "name": "count", "kind": 1024, "kindString": "Property", @@ -17667,7 +17643,7 @@ } }, { - "id": 653, + "id": 652, "name": "data", "kind": 1024, "kindString": "Property", @@ -17681,13 +17657,13 @@ ], "type": { "type": "reference", - "id": 657, + "id": 656, "name": "T", "dereferenced": {} } }, { - "id": 652, + "id": 651, "name": "error", "kind": 1024, "kindString": "Property", @@ -17705,7 +17681,7 @@ } }, { - "id": 655, + "id": 654, "name": "status", "kind": 1024, "kindString": "Property", @@ -17727,7 +17703,7 @@ } }, { - "id": 656, + "id": 655, "name": "statusText", "kind": 1024, "kindString": "Property", @@ -17754,11 +17730,11 @@ "title": "Properties", "kind": 1024, "children": [ - 654, 653, 652, - 655, - 656 + 651, + 654, + 655 ] } ], @@ -17771,7 +17747,7 @@ ], "typeParameter": [ { - "id": 657, + "id": 656, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -17786,14 +17762,14 @@ ] }, { - "id": 645, + "id": 644, "name": "PostgrestResponseFailure", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 648, + "id": 647, "name": "count", "kind": 1024, "kindString": "Property", @@ -17811,7 +17787,7 @@ } }, { - "id": 647, + "id": 646, "name": "data", "kind": 1024, "kindString": "Property", @@ -17829,7 +17805,7 @@ } }, { - "id": 646, + "id": 645, "name": "error", "kind": 1024, "kindString": "Property", @@ -17843,10 +17819,10 @@ ], "type": { "type": "reference", - "id": 662, + "id": 661, "name": "PostgrestError", "dereferenced": { - "id": 662, + "id": 661, "name": "PostgrestError", "kind": 4194304, "kindString": "Type alias", @@ -17865,14 +17841,14 @@ "type": { "type": "reflection", "declaration": { - "id": 663, + "id": 662, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 667, + "id": 666, "name": "code", "kind": 1024, "kindString": "Property", @@ -17890,7 +17866,7 @@ } }, { - "id": 665, + "id": 664, "name": "details", "kind": 1024, "kindString": "Property", @@ -17908,7 +17884,7 @@ } }, { - "id": 666, + "id": 665, "name": "hint", "kind": 1024, "kindString": "Property", @@ -17926,7 +17902,7 @@ } }, { - "id": 664, + "id": 663, "name": "message", "kind": 1024, "kindString": "Property", @@ -17949,10 +17925,10 @@ "title": "Properties", "kind": 1024, "children": [ - 667, - 665, 666, - 664 + 664, + 665, + 663 ] } ], @@ -17969,7 +17945,7 @@ } }, { - "id": 649, + "id": 648, "name": "status", "kind": 1024, "kindString": "Property", @@ -17991,7 +17967,7 @@ } }, { - "id": 650, + "id": 649, "name": "statusText", "kind": 1024, "kindString": "Property", @@ -18018,11 +17994,11 @@ "title": "Properties", "kind": 1024, "children": [ - 648, 647, 646, - 649, - 650 + 645, + 648, + 649 ] } ], @@ -18049,29 +18025,29 @@ "title": "Classes", "kind": 128, "children": [ - 610, + 609, 1, - 144, - 57, - 490 + 143, + 56, + 489 ] }, { "title": "Interfaces", "kind": 256, "children": [ - 645, - 651 + 644, + 650 ] }, { "title": "Type Aliases", "kind": 4194304, "children": [ - 662, - 660, - 643, - 658 + 661, + 659, + 642, + 657 ] } ], diff --git a/apps/docs/spec/enrichments/tsdoc_v2/realtime.json b/apps/docs/spec/enrichments/tsdoc_v2/realtime.json index 86bb7080611..bb411c3a8a4 100644 --- a/apps/docs/spec/enrichments/tsdoc_v2/realtime.json +++ b/apps/docs/spec/enrichments/tsdoc_v2/realtime.json @@ -7,14 +7,14 @@ "originalName": "", "children": [ { - "id": 576, + "id": 588, "name": "REALTIME_LISTEN_TYPES", "kind": 8, "kindString": "Enumeration", "flags": {}, "children": [ { - "id": 577, + "id": 589, "name": "BROADCAST", "kind": 16, "kindString": "Enumeration Member", @@ -33,7 +33,7 @@ "defaultValue": "\"broadcast\"" }, { - "id": 579, + "id": 591, "name": "POSTGRES_CHANGES", "kind": 16, "kindString": "Enumeration Member", @@ -55,7 +55,7 @@ "defaultValue": "\"postgres_changes\"" }, { - "id": 578, + "id": 590, "name": "PRESENCE", "kind": 16, "kindString": "Enumeration Member", @@ -79,9 +79,9 @@ "title": "Enumeration Members", "kind": 16, "children": [ - 577, - 579, - 578 + 589, + 591, + 590 ] } ], @@ -94,14 +94,14 @@ ] }, { - "id": 580, + "id": 592, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT", "kind": 8, "kindString": "Enumeration", "flags": {}, "children": [ { - "id": 581, + "id": 593, "name": "ALL", "kind": 16, "kindString": "Enumeration Member", @@ -120,7 +120,7 @@ "defaultValue": "\"*\"" }, { - "id": 584, + "id": 596, "name": "DELETE", "kind": 16, "kindString": "Enumeration Member", @@ -139,7 +139,7 @@ "defaultValue": "\"DELETE\"" }, { - "id": 582, + "id": 594, "name": "INSERT", "kind": 16, "kindString": "Enumeration Member", @@ -158,7 +158,7 @@ "defaultValue": "\"INSERT\"" }, { - "id": 583, + "id": 595, "name": "UPDATE", "kind": 16, "kindString": "Enumeration Member", @@ -182,10 +182,10 @@ "title": "Enumeration Members", "kind": 16, "children": [ - 581, - 584, - 582, - 583 + 593, + 596, + 594, + 595 ] } ], @@ -198,14 +198,14 @@ ] }, { - "id": 585, + "id": 597, "name": "REALTIME_PRESENCE_LISTEN_EVENTS", "kind": 8, "kindString": "Enumeration", "flags": {}, "children": [ { - "id": 587, + "id": 599, "name": "JOIN", "kind": 16, "kindString": "Enumeration Member", @@ -224,7 +224,7 @@ "defaultValue": "\"join\"" }, { - "id": 588, + "id": 600, "name": "LEAVE", "kind": 16, "kindString": "Enumeration Member", @@ -243,7 +243,7 @@ "defaultValue": "\"leave\"" }, { - "id": 586, + "id": 598, "name": "SYNC", "kind": 16, "kindString": "Enumeration Member", @@ -267,9 +267,9 @@ "title": "Enumeration Members", "kind": 16, "children": [ - 587, - 588, - 586 + 599, + 600, + 598 ] } ], @@ -282,14 +282,14 @@ ] }, { - "id": 589, + "id": 601, "name": "REALTIME_SUBSCRIBE_STATES", "kind": 8, "kindString": "Enumeration", "flags": {}, "children": [ { - "id": 593, + "id": 605, "name": "CHANNEL_ERROR", "kind": 16, "kindString": "Enumeration Member", @@ -308,7 +308,7 @@ "defaultValue": "\"CHANNEL_ERROR\"" }, { - "id": 592, + "id": 604, "name": "CLOSED", "kind": 16, "kindString": "Enumeration Member", @@ -327,7 +327,7 @@ "defaultValue": "\"CLOSED\"" }, { - "id": 590, + "id": 602, "name": "SUBSCRIBED", "kind": 16, "kindString": "Enumeration Member", @@ -346,7 +346,7 @@ "defaultValue": "\"SUBSCRIBED\"" }, { - "id": 591, + "id": 603, "name": "TIMED_OUT", "kind": 16, "kindString": "Enumeration Member", @@ -370,10 +370,10 @@ "title": "Enumeration Members", "kind": 16, "children": [ - 593, - 592, - 590, - 591 + 605, + 604, + 602, + 603 ] } ], @@ -1217,7 +1217,7 @@ "flags": {}, "type": { "type": "reference", - "id": 546, + "id": 558, "typeArguments": [ { "type": "reference", @@ -1381,7 +1381,7 @@ "flags": {}, "type": { "type": "reference", - "id": 556, + "id": 568, "typeArguments": [ { "type": "reference", @@ -1477,7 +1477,7 @@ "flags": {}, "type": { "type": "reference", - "id": 505, + "id": 517, "typeArguments": [ { "type": "literal", @@ -1517,7 +1517,7 @@ "flags": {}, "type": { "type": "reference", - "id": 512, + "id": 524, "typeArguments": [ { "type": "reference", @@ -1613,7 +1613,7 @@ "flags": {}, "type": { "type": "reference", - "id": 505, + "id": 517, "typeArguments": [ { "type": "literal", @@ -1653,7 +1653,7 @@ "flags": {}, "type": { "type": "reference", - "id": 517, + "id": 529, "typeArguments": [ { "type": "reference", @@ -1749,7 +1749,7 @@ "flags": {}, "type": { "type": "reference", - "id": 505, + "id": 517, "typeArguments": [ { "type": "literal", @@ -1789,7 +1789,7 @@ "flags": {}, "type": { "type": "reference", - "id": 527, + "id": 539, "typeArguments": [ { "type": "reference", @@ -1885,7 +1885,7 @@ "flags": {}, "type": { "type": "reference", - "id": 505, + "id": 517, "typeArguments": [ { "type": "literal", @@ -1925,7 +1925,7 @@ "flags": {}, "type": { "type": "reference", - "id": 536, + "id": 548, "typeArguments": [ { "type": "reference", @@ -2462,7 +2462,7 @@ ], "type": { "type": "reference", - "id": 566, + "id": 578, "typeArguments": [ { "type": "reference", @@ -3217,7 +3217,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 115, + "line": 112, "character": 2 } ], @@ -3256,7 +3256,7 @@ }, "type": { "type": "reference", - "id": 479, + "id": 491, "name": "RealtimeClientOptions" } } @@ -3278,7 +3278,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 69, + "line": 65, "character": 2 } ], @@ -3299,6 +3299,34 @@ }, { "id": 365, + "name": "apiKey", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/RealtimeClient.ts", + "line": 66, + "character": 2 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "intrinsic", + "name": "string" + } + ] + }, + "defaultValue": "null" + }, + { + "id": 366, "name": "channels", "kind": 1024, "kindString": "Property", @@ -3306,7 +3334,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 70, + "line": 67, "character": 2 } ], @@ -3321,7 +3349,7 @@ "defaultValue": "[]" }, { - "id": 386, + "id": 387, "name": "conn", "kind": 1024, "kindString": "Property", @@ -3329,7 +3357,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 85, + "line": 82, "character": 2 } ], @@ -3349,7 +3377,7 @@ "defaultValue": "null" }, { - "id": 384, + "id": 385, "name": "decode", "kind": 1024, "kindString": "Property", @@ -3357,7 +3385,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 83, + "line": 80, "character": 2 } ], @@ -3369,7 +3397,7 @@ } }, { - "id": 383, + "id": 384, "name": "encode", "kind": 1024, "kindString": "Property", @@ -3377,7 +3405,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 82, + "line": 79, "character": 2 } ], @@ -3389,7 +3417,7 @@ } }, { - "id": 366, + "id": 367, "name": "endPoint", "kind": 1024, "kindString": "Property", @@ -3397,7 +3425,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 71, + "line": 68, "character": 2 } ], @@ -3408,7 +3436,7 @@ "defaultValue": "''" }, { - "id": 395, + "id": 396, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -3416,28 +3444,28 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 99, + "line": 96, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 396, + "id": 397, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 397, + "id": 398, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 398, + "id": 399, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -3461,7 +3489,73 @@ } }, { - "id": 399, + "id": 400, + "name": "init", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "qualifiedName": "RequestInit", + "package": "typescript", + "name": "RequestInit" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "qualifiedName": "Response", + "package": "typescript", + "name": "Response" + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + }, + { + "id": 401, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 402, + "name": "input", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "qualifiedName": "Request", + "package": "typescript", + "name": "Request" + }, + { + "type": "reference", + "qualifiedName": "URL", + "package": "typescript", + "name": "URL" + } + ] + } + }, + { + "id": 403, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -3496,7 +3590,7 @@ } }, { - "id": 367, + "id": 368, "name": "headers", "kind": 1024, "kindString": "Property", @@ -3506,27 +3600,27 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 72, + "line": 69, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 368, + "id": 369, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": { - "id": 369, + "id": 370, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 370, + "id": 371, "name": "key", "kind": 32768, "flags": {}, @@ -3546,7 +3640,7 @@ "defaultValue": "DEFAULT_HEADERS" }, { - "id": 377, + "id": 378, "name": "heartbeatIntervalMs", "kind": 1024, "kindString": "Property", @@ -3554,7 +3648,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 76, + "line": 73, "character": 2 } ], @@ -3565,7 +3659,7 @@ "defaultValue": "30000" }, { - "id": 378, + "id": 379, "name": "heartbeatTimer", "kind": 1024, "kindString": "Property", @@ -3573,7 +3667,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 77, + "line": 74, "character": 2 } ], @@ -3586,16 +3680,16 @@ }, { "type": "reference", - "qualifiedName": "global.NodeJS.Timer", + "qualifiedName": "global.NodeJS.Timeout", "package": "@types/node", - "name": "Timer" + "name": "Timeout" } ] }, "defaultValue": "undefined" }, { - "id": 382, + "id": 383, "name": "logger", "kind": 1024, "kindString": "Property", @@ -3603,7 +3697,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 81, + "line": 78, "character": 2 } ], @@ -3616,7 +3710,7 @@ "defaultValue": "noop" }, { - "id": 371, + "id": 372, "name": "params", "kind": 1024, "kindString": "Property", @@ -3626,27 +3720,27 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 73, + "line": 70, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 372, + "id": 373, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": { - "id": 373, + "id": 374, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 374, + "id": 375, "name": "key", "kind": 32768, "flags": {}, @@ -3666,7 +3760,7 @@ "defaultValue": "{}" }, { - "id": 379, + "id": 380, "name": "pendingHeartbeatRef", "kind": 1024, "kindString": "Property", @@ -3674,7 +3768,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 78, + "line": 75, "character": 2 } ], @@ -3694,7 +3788,7 @@ "defaultValue": "null" }, { - "id": 385, + "id": 386, "name": "reconnectAfterMs", "kind": 1024, "kindString": "Property", @@ -3702,7 +3796,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 84, + "line": 81, "character": 2 } ], @@ -3714,7 +3808,7 @@ } }, { - "id": 381, + "id": 382, "name": "reconnectTimer", "kind": 1024, "kindString": "Property", @@ -3722,7 +3816,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 80, + "line": 77, "character": 2 } ], @@ -3732,7 +3826,7 @@ } }, { - "id": 380, + "id": 381, "name": "ref", "kind": 1024, "kindString": "Property", @@ -3740,7 +3834,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 79, + "line": 76, "character": 2 } ], @@ -3751,7 +3845,7 @@ "defaultValue": "0" }, { - "id": 387, + "id": 388, "name": "sendBuffer", "kind": 1024, "kindString": "Property", @@ -3759,7 +3853,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 86, + "line": 83, "character": 2 } ], @@ -3775,7 +3869,7 @@ "defaultValue": "[]" }, { - "id": 388, + "id": 389, "name": "serializer", "kind": 1024, "kindString": "Property", @@ -3783,7 +3877,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 87, + "line": 84, "character": 2 } ], @@ -3794,7 +3888,7 @@ "defaultValue": "..." }, { - "id": 389, + "id": 390, "name": "stateChangeCallbacks", "kind": 1024, "kindString": "Property", @@ -3802,21 +3896,21 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 88, + "line": 85, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 390, + "id": 391, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 392, + "id": 393, "name": "close", "kind": 1024, "kindString": "Property", @@ -3824,30 +3918,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 90, - "character": 4 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - } - }, - { - "id": 393, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/RealtimeClient.ts", - "line": 91, + "line": 87, "character": 4 } ], @@ -3863,14 +3934,14 @@ }, { "id": 394, - "name": "message", + "name": "error", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 92, + "line": 88, "character": 4 } ], @@ -3885,8 +3956,8 @@ } }, { - "id": 391, - "name": "open", + "id": 395, + "name": "message", "kind": 1024, "kindString": "Property", "flags": {}, @@ -3906,6 +3977,29 @@ "name": "Function" } } + }, + { + "id": 392, + "name": "open", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/RealtimeClient.ts", + "line": 86, + "character": 4 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "qualifiedName": "Function", + "package": "typescript", + "name": "Function" + } + } } ], "groups": [ @@ -3913,10 +4007,10 @@ "title": "Properties", "kind": 1024, "children": [ - 392, 393, 394, - 391 + 395, + 392 ] } ] @@ -3925,7 +4019,7 @@ "defaultValue": "..." }, { - "id": 375, + "id": 376, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -3933,7 +4027,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 74, + "line": 71, "character": 2 } ], @@ -3944,7 +4038,7 @@ "defaultValue": "DEFAULT_TIMEOUT" }, { - "id": 376, + "id": 377, "name": "transport", "kind": 1024, "kindString": "Property", @@ -3952,18 +4046,26 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 75, + "line": 72, "character": 2 } ], "type": { - "type": "reference", - "name": "WebSocketLikeConstructor" - }, - "defaultValue": "WebSocketVariant" + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "name": "WebSocketLikeConstructor" + } + ] + } }, { - "id": 422, + "id": 426, "name": "channel", "kind": 2048, "kindString": "Method", @@ -3971,20 +4073,20 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 261, + "line": 274, "character": 2 } ], "signatures": [ { - "id": 423, + "id": 427, "name": "channel", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 424, + "id": 428, "name": "topic", "kind": 32768, "kindString": "Parameter", @@ -3995,7 +4097,7 @@ } }, { - "id": 425, + "id": 429, "name": "params", "kind": 32768, "kindString": "Parameter", @@ -4017,7 +4119,7 @@ ] }, { - "id": 400, + "id": 404, "name": "connect", "kind": 2048, "kindString": "Method", @@ -4025,13 +4127,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 153, + "line": 157, "character": 2 } ], "signatures": [ { - "id": 401, + "id": 405, "name": "connect", "kind": 4096, "kindString": "Call signature", @@ -4047,7 +4149,7 @@ ] }, { - "id": 418, + "id": 422, "name": "connectionState", "kind": 2048, "kindString": "Method", @@ -4055,13 +4157,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 241, + "line": 254, "character": 2 } ], "signatures": [ { - "id": 419, + "id": 423, "name": "connectionState", "kind": 4096, "kindString": "Call signature", @@ -4077,7 +4179,7 @@ ] }, { - "id": 402, + "id": 406, "name": "disconnect", "kind": 2048, "kindString": "Method", @@ -4085,13 +4187,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 182, + "line": 195, "character": 2 } ], "signatures": [ { - "id": 403, + "id": 407, "name": "disconnect", "kind": 4096, "kindString": "Call signature", @@ -4101,7 +4203,7 @@ }, "parameters": [ { - "id": 404, + "id": 408, "name": "code", "kind": 32768, "kindString": "Parameter", @@ -4117,7 +4219,7 @@ } }, { - "id": 405, + "id": 409, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -4141,7 +4243,7 @@ ] }, { - "id": 406, + "id": 410, "name": "getChannels", "kind": 2048, "kindString": "Method", @@ -4149,13 +4251,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 200, + "line": 213, "character": 2 } ], "signatures": [ { - "id": 407, + "id": 411, "name": "getChannels", "kind": 4096, "kindString": "Call signature", @@ -4175,7 +4277,7 @@ ] }, { - "id": 420, + "id": 424, "name": "isConnected", "kind": 2048, "kindString": "Method", @@ -4183,13 +4285,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 257, + "line": 270, "character": 2 } ], "signatures": [ { - "id": 421, + "id": 425, "name": "isConnected", "kind": 4096, "kindString": "Call signature", @@ -4205,7 +4307,7 @@ ] }, { - "id": 413, + "id": 417, "name": "log", "kind": 2048, "kindString": "Method", @@ -4213,13 +4315,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 234, + "line": 247, "character": 2 } ], "signatures": [ { - "id": 414, + "id": 418, "name": "log", "kind": 4096, "kindString": "Call signature", @@ -4230,7 +4332,7 @@ }, "parameters": [ { - "id": 415, + "id": 419, "name": "kind", "kind": 32768, "kindString": "Parameter", @@ -4241,7 +4343,7 @@ } }, { - "id": 416, + "id": 420, "name": "msg", "kind": 32768, "kindString": "Parameter", @@ -4252,7 +4354,7 @@ } }, { - "id": 417, + "id": 421, "name": "data", "kind": 32768, "kindString": "Parameter", @@ -4273,7 +4375,7 @@ ] }, { - "id": 426, + "id": 430, "name": "push", "kind": 2048, "kindString": "Method", @@ -4281,13 +4383,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 275, + "line": 288, "character": 2 } ], "signatures": [ { - "id": 427, + "id": 431, "name": "push", "kind": 4096, "kindString": "Call signature", @@ -4298,14 +4400,14 @@ }, "parameters": [ { - "id": 428, + "id": 432, "name": "data", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 498, + "id": 510, "name": "RealtimeMessage" } } @@ -4318,7 +4420,7 @@ ] }, { - "id": 411, + "id": 415, "name": "removeAllChannels", "kind": 2048, "kindString": "Method", @@ -4326,13 +4428,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 221, + "line": 234, "character": 8 } ], "signatures": [ { - "id": 412, + "id": 416, "name": "removeAllChannels", "kind": 4096, "kindString": "Call signature", @@ -4347,7 +4449,7 @@ "type": "array", "elementType": { "type": "reference", - "id": 575, + "id": 587, "name": "RealtimeRemoveChannelResponse" } } @@ -4360,7 +4462,7 @@ ] }, { - "id": 408, + "id": 412, "name": "removeChannel", "kind": 2048, "kindString": "Method", @@ -4368,13 +4470,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 208, + "line": 221, "character": 8 } ], "signatures": [ { - "id": 409, + "id": 413, "name": "removeChannel", "kind": 4096, "kindString": "Call signature", @@ -4384,7 +4486,7 @@ }, "parameters": [ { - "id": 410, + "id": 414, "name": "channel", "kind": 32768, "kindString": "Parameter", @@ -4404,7 +4506,7 @@ "typeArguments": [ { "type": "reference", - "id": 575, + "id": 587, "name": "RealtimeRemoveChannelResponse" } ], @@ -4416,7 +4518,7 @@ ] }, { - "id": 429, + "id": 433, "name": "setAuth", "kind": 2048, "kindString": "Method", @@ -4424,13 +4526,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 295, + "line": 308, "character": 2 } ], "signatures": [ { - "id": 430, + "id": 434, "name": "setAuth", "kind": 4096, "kindString": "Call signature", @@ -4440,7 +4542,7 @@ }, "parameters": [ { - "id": 431, + "id": 435, "name": "token", "kind": 32768, "kindString": "Parameter", @@ -4485,49 +4587,50 @@ "children": [ 364, 365, - 386, - 384, - 383, 366, - 395, - 367, - 377, - 378, - 382, - 371, - 379, - 385, - 381, - 380, 387, + 385, + 384, + 367, + 396, + 368, + 378, + 379, + 383, + 372, + 380, + 386, + 382, + 381, 388, 389, - 375, - 376 + 390, + 376, + 377 ] }, { "title": "Methods", "kind": 2048, "children": [ - 422, - 400, - 418, - 402, - 406, - 420, - 413, 426, - 411, - 408, - 429 + 404, + 422, + 406, + 410, + 424, + 417, + 430, + 415, + 412, + 433 ] } ], "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 68, + "line": 64, "character": 21 } ] @@ -4795,7 +4898,7 @@ ], "type": { "type": "reference", - "id": 566, + "id": 578, "typeArguments": [ { "type": "reflection", @@ -5113,7 +5216,7 @@ } }, { - "id": 479, + "id": 491, "name": "RealtimeClientOptions", "kind": 4194304, "kindString": "Type alias", @@ -5128,14 +5231,14 @@ "type": { "type": "reflection", "declaration": { - "id": 480, + "id": 492, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 486, + "id": 498, "name": "decode", "kind": 1024, "kindString": "Property", @@ -5157,7 +5260,7 @@ } }, { - "id": 485, + "id": 497, "name": "encode", "kind": 1024, "kindString": "Property", @@ -5179,7 +5282,7 @@ } }, { - "id": 497, + "id": 509, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -5199,7 +5302,7 @@ } }, { - "id": 488, + "id": 500, "name": "headers", "kind": 1024, "kindString": "Property", @@ -5216,7 +5319,7 @@ "type": { "type": "reflection", "declaration": { - "id": 489, + "id": 501, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5229,14 +5332,14 @@ } ], "indexSignature": { - "id": 490, + "id": 502, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 491, + "id": 503, "name": "key", "kind": 32768, "flags": {}, @@ -5255,7 +5358,7 @@ } }, { - "id": 483, + "id": 495, "name": "heartbeatIntervalMs", "kind": 1024, "kindString": "Property", @@ -5275,7 +5378,7 @@ } }, { - "id": 496, + "id": 508, "name": "log_level", "kind": 1024, "kindString": "Property", @@ -5312,7 +5415,7 @@ } }, { - "id": 484, + "id": 496, "name": "logger", "kind": 1024, "kindString": "Property", @@ -5334,7 +5437,7 @@ } }, { - "id": 492, + "id": 504, "name": "params", "kind": 1024, "kindString": "Property", @@ -5351,7 +5454,7 @@ "type": { "type": "reflection", "declaration": { - "id": 493, + "id": 505, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5364,14 +5467,14 @@ } ], "indexSignature": { - "id": 494, + "id": 506, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 495, + "id": 507, "name": "key", "kind": 32768, "flags": {}, @@ -5390,7 +5493,7 @@ } }, { - "id": 487, + "id": 499, "name": "reconnectAfterMs", "kind": 1024, "kindString": "Property", @@ -5412,7 +5515,7 @@ } }, { - "id": 482, + "id": 494, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -5432,7 +5535,7 @@ } }, { - "id": 481, + "id": 493, "name": "transport", "kind": 1024, "kindString": "Property", @@ -5457,17 +5560,17 @@ "title": "Properties", "kind": 1024, "children": [ - 486, - 485, + 498, 497, - 488, - 483, + 509, + 500, + 495, + 508, 496, - 484, - 492, - 487, - 482, - 481 + 504, + 499, + 494, + 493 ] } ], @@ -5482,7 +5585,7 @@ } }, { - "id": 498, + "id": 510, "name": "RealtimeMessage", "kind": 4194304, "kindString": "Type alias", @@ -5497,14 +5600,14 @@ "type": { "type": "reflection", "declaration": { - "id": 499, + "id": 511, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 501, + "id": 513, "name": "event", "kind": 1024, "kindString": "Property", @@ -5522,7 +5625,7 @@ } }, { - "id": 504, + "id": 516, "name": "join_ref", "kind": 1024, "kindString": "Property", @@ -5542,7 +5645,7 @@ } }, { - "id": 502, + "id": 514, "name": "payload", "kind": 1024, "kindString": "Property", @@ -5560,7 +5663,7 @@ } }, { - "id": 503, + "id": 515, "name": "ref", "kind": 1024, "kindString": "Property", @@ -5578,7 +5681,7 @@ } }, { - "id": 500, + "id": 512, "name": "topic", "kind": 1024, "kindString": "Property", @@ -5601,11 +5704,11 @@ "title": "Properties", "kind": 1024, "children": [ - 501, - 504, - 502, - 503, - 500 + 513, + 516, + 514, + 515, + 512 ] } ], @@ -5620,7 +5723,7 @@ } }, { - "id": 505, + "id": 517, "name": "RealtimePostgresChangesFilter", "kind": 4194304, "kindString": "Type alias", @@ -5634,7 +5737,7 @@ ], "typeParameter": [ { - "id": 511, + "id": 523, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -5646,7 +5749,7 @@ [ { "type": "reference", - "id": 580, + "id": 592, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT" }, "" @@ -5658,14 +5761,14 @@ "type": { "type": "reflection", "declaration": { - "id": 506, + "id": 518, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 507, + "id": 519, "name": "event", "kind": 1024, "kindString": "Property", @@ -5682,12 +5785,12 @@ ], "type": { "type": "reference", - "id": 511, + "id": 523, "name": "T" } }, { - "id": 510, + "id": 522, "name": "filter", "kind": 1024, "kindString": "Property", @@ -5710,7 +5813,7 @@ } }, { - "id": 508, + "id": 520, "name": "schema", "kind": 1024, "kindString": "Property", @@ -5731,7 +5834,7 @@ } }, { - "id": 509, + "id": 521, "name": "table", "kind": 1024, "kindString": "Property", @@ -5759,10 +5862,10 @@ "title": "Properties", "kind": 1024, "children": [ - 507, - 510, - 508, - 509 + 519, + 522, + 520, + 521 ] } ], @@ -5777,7 +5880,7 @@ } }, { - "id": 512, + "id": 524, "name": "RealtimePostgresChangesPayload", "kind": 4194304, "kindString": "Type alias", @@ -5791,7 +5894,7 @@ ], "typeParameter": [ { - "id": 516, + "id": 528, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -5799,7 +5902,7 @@ "type": { "type": "reflection", "declaration": { - "id": 513, + "id": 525, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5812,14 +5915,14 @@ } ], "indexSignature": { - "id": 514, + "id": 526, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 515, + "id": 527, "name": "key", "kind": 32768, "flags": {}, @@ -5843,11 +5946,11 @@ "types": [ { "type": "reference", - "id": 517, + "id": 529, "typeArguments": [ { "type": "reference", - "id": 516, + "id": 528, "name": "T" } ], @@ -5855,11 +5958,11 @@ }, { "type": "reference", - "id": 527, + "id": 539, "typeArguments": [ { "type": "reference", - "id": 516, + "id": 528, "name": "T" } ], @@ -5867,11 +5970,11 @@ }, { "type": "reference", - "id": 536, + "id": 548, "typeArguments": [ { "type": "reference", - "id": 516, + "id": 528, "name": "T" } ], @@ -5881,7 +5984,7 @@ } }, { - "id": 536, + "id": 548, "name": "RealtimePostgresDeletePayload", "kind": 4194304, "kindString": "Type alias", @@ -5895,7 +5998,7 @@ ], "typeParameter": [ { - "id": 545, + "id": 557, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -5903,7 +6006,7 @@ "type": { "type": "reflection", "declaration": { - "id": 542, + "id": 554, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5916,14 +6019,14 @@ } ], "indexSignature": { - "id": 543, + "id": 555, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 544, + "id": 556, "name": "key", "kind": 32768, "flags": {}, @@ -5952,14 +6055,14 @@ { "type": "reflection", "declaration": { - "id": 537, + "id": 549, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 538, + "id": 550, "name": "eventType", "kind": 1024, "kindString": "Property", @@ -5978,7 +6081,7 @@ [ { "type": "reference", - "id": 584, + "id": 596, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT.DELETE" }, "" @@ -5987,7 +6090,7 @@ } }, { - "id": 539, + "id": 551, "name": "new", "kind": 1024, "kindString": "Property", @@ -6002,7 +6105,7 @@ "type": { "type": "reflection", "declaration": { - "id": 540, + "id": 552, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -6018,7 +6121,7 @@ } }, { - "id": 541, + "id": 553, "name": "old", "kind": 1024, "kindString": "Property", @@ -6035,7 +6138,7 @@ "typeArguments": [ { "type": "reference", - "id": 545, + "id": 557, "name": "T" } ], @@ -6050,9 +6153,9 @@ "title": "Properties", "kind": 1024, "children": [ - 538, - 539, - 541 + 550, + 551, + 553 ] } ], @@ -6069,7 +6172,7 @@ } }, { - "id": 517, + "id": 529, "name": "RealtimePostgresInsertPayload", "kind": 4194304, "kindString": "Type alias", @@ -6083,7 +6186,7 @@ ], "typeParameter": [ { - "id": 526, + "id": 538, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -6091,7 +6194,7 @@ "type": { "type": "reflection", "declaration": { - "id": 523, + "id": 535, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -6104,14 +6207,14 @@ } ], "indexSignature": { - "id": 524, + "id": 536, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 525, + "id": 537, "name": "key", "kind": 32768, "flags": {}, @@ -6140,14 +6243,14 @@ { "type": "reflection", "declaration": { - "id": 518, + "id": 530, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 519, + "id": 531, "name": "eventType", "kind": 1024, "kindString": "Property", @@ -6166,7 +6269,7 @@ [ { "type": "reference", - "id": 582, + "id": 594, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT.INSERT" }, "" @@ -6175,7 +6278,7 @@ } }, { - "id": 520, + "id": 532, "name": "new", "kind": 1024, "kindString": "Property", @@ -6189,12 +6292,12 @@ ], "type": { "type": "reference", - "id": 526, + "id": 538, "name": "T" } }, { - "id": 521, + "id": 533, "name": "old", "kind": 1024, "kindString": "Property", @@ -6209,7 +6312,7 @@ "type": { "type": "reflection", "declaration": { - "id": 522, + "id": 534, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -6230,9 +6333,9 @@ "title": "Properties", "kind": 1024, "children": [ - 519, - 520, - 521 + 531, + 532, + 533 ] } ], @@ -6249,7 +6352,7 @@ } }, { - "id": 527, + "id": 539, "name": "RealtimePostgresUpdatePayload", "kind": 4194304, "kindString": "Type alias", @@ -6263,7 +6366,7 @@ ], "typeParameter": [ { - "id": 535, + "id": 547, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -6271,7 +6374,7 @@ "type": { "type": "reflection", "declaration": { - "id": 532, + "id": 544, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -6284,14 +6387,14 @@ } ], "indexSignature": { - "id": 533, + "id": 545, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 534, + "id": 546, "name": "key", "kind": 32768, "flags": {}, @@ -6320,14 +6423,14 @@ { "type": "reflection", "declaration": { - "id": 528, + "id": 540, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 529, + "id": 541, "name": "eventType", "kind": 1024, "kindString": "Property", @@ -6346,7 +6449,7 @@ [ { "type": "reference", - "id": 583, + "id": 595, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT.UPDATE" }, "" @@ -6355,7 +6458,7 @@ } }, { - "id": 530, + "id": 542, "name": "new", "kind": 1024, "kindString": "Property", @@ -6369,12 +6472,12 @@ ], "type": { "type": "reference", - "id": 535, + "id": 547, "name": "T" } }, { - "id": 531, + "id": 543, "name": "old", "kind": 1024, "kindString": "Property", @@ -6391,7 +6494,7 @@ "typeArguments": [ { "type": "reference", - "id": 535, + "id": 547, "name": "T" } ], @@ -6406,9 +6509,9 @@ "title": "Properties", "kind": 1024, "children": [ - 529, - 530, - 531 + 541, + 542, + 543 ] } ], @@ -6425,7 +6528,7 @@ } }, { - "id": 546, + "id": 558, "name": "RealtimePresenceJoinPayload", "kind": 4194304, "kindString": "Type alias", @@ -6439,7 +6542,7 @@ ], "typeParameter": [ { - "id": 555, + "id": 567, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -6447,7 +6550,7 @@ "type": { "type": "reflection", "declaration": { - "id": 552, + "id": 564, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -6460,14 +6563,14 @@ } ], "indexSignature": { - "id": 553, + "id": 565, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 554, + "id": 566, "name": "key", "kind": 32768, "flags": {}, @@ -6489,14 +6592,14 @@ "type": { "type": "reflection", "declaration": { - "id": 547, + "id": 559, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 550, + "id": 562, "name": "currentPresences", "kind": 1024, "kindString": "Property", @@ -6515,7 +6618,7 @@ "typeArguments": [ { "type": "reference", - "id": 555, + "id": 567, "name": "T" } ], @@ -6524,7 +6627,7 @@ } }, { - "id": 548, + "id": 560, "name": "event", "kind": 1024, "kindString": "Property", @@ -6543,7 +6646,7 @@ [ { "type": "reference", - "id": 587, + "id": 599, "name": "REALTIME_PRESENCE_LISTEN_EVENTS.JOIN" }, "" @@ -6552,7 +6655,7 @@ } }, { - "id": 549, + "id": 561, "name": "key", "kind": 1024, "kindString": "Property", @@ -6570,7 +6673,7 @@ } }, { - "id": 551, + "id": 563, "name": "newPresences", "kind": 1024, "kindString": "Property", @@ -6589,7 +6692,7 @@ "typeArguments": [ { "type": "reference", - "id": 555, + "id": 567, "name": "T" } ], @@ -6603,10 +6706,10 @@ "title": "Properties", "kind": 1024, "children": [ - 550, - 548, - 549, - 551 + 562, + 560, + 561, + 563 ] } ], @@ -6621,7 +6724,7 @@ } }, { - "id": 556, + "id": 568, "name": "RealtimePresenceLeavePayload", "kind": 4194304, "kindString": "Type alias", @@ -6635,7 +6738,7 @@ ], "typeParameter": [ { - "id": 565, + "id": 577, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -6643,7 +6746,7 @@ "type": { "type": "reflection", "declaration": { - "id": 562, + "id": 574, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -6656,14 +6759,14 @@ } ], "indexSignature": { - "id": 563, + "id": 575, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 564, + "id": 576, "name": "key", "kind": 32768, "flags": {}, @@ -6685,14 +6788,14 @@ "type": { "type": "reflection", "declaration": { - "id": 557, + "id": 569, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 560, + "id": 572, "name": "currentPresences", "kind": 1024, "kindString": "Property", @@ -6711,7 +6814,7 @@ "typeArguments": [ { "type": "reference", - "id": 565, + "id": 577, "name": "T" } ], @@ -6720,7 +6823,7 @@ } }, { - "id": 558, + "id": 570, "name": "event", "kind": 1024, "kindString": "Property", @@ -6739,7 +6842,7 @@ [ { "type": "reference", - "id": 588, + "id": 600, "name": "REALTIME_PRESENCE_LISTEN_EVENTS.LEAVE" }, "" @@ -6748,7 +6851,7 @@ } }, { - "id": 559, + "id": 571, "name": "key", "kind": 1024, "kindString": "Property", @@ -6766,7 +6869,7 @@ } }, { - "id": 561, + "id": 573, "name": "leftPresences", "kind": 1024, "kindString": "Property", @@ -6785,7 +6888,7 @@ "typeArguments": [ { "type": "reference", - "id": 565, + "id": 577, "name": "T" } ], @@ -6799,10 +6902,10 @@ "title": "Properties", "kind": 1024, "children": [ - 560, - 558, - 559, - 561 + 572, + 570, + 571, + 573 ] } ], @@ -6817,7 +6920,7 @@ } }, { - "id": 566, + "id": 578, "name": "RealtimePresenceState", "kind": 4194304, "kindString": "Type alias", @@ -6831,7 +6934,7 @@ ], "typeParameter": [ { - "id": 574, + "id": 586, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -6839,7 +6942,7 @@ "type": { "type": "reflection", "declaration": { - "id": 570, + "id": 582, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -6852,14 +6955,14 @@ } ], "indexSignature": { - "id": 571, + "id": 583, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 572, + "id": 584, "name": "key", "kind": 32768, "flags": {}, @@ -6879,7 +6982,7 @@ "default": { "type": "reflection", "declaration": { - "id": 573, + "id": 585, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -6898,7 +7001,7 @@ "type": { "type": "reflection", "declaration": { - "id": 567, + "id": 579, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -6911,14 +7014,14 @@ } ], "indexSignature": { - "id": 568, + "id": 580, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 569, + "id": 581, "name": "key", "kind": 32768, "flags": {}, @@ -6935,7 +7038,7 @@ "typeArguments": [ { "type": "reference", - "id": 574, + "id": 586, "name": "T" } ], @@ -6947,7 +7050,7 @@ } }, { - "id": 575, + "id": 587, "name": "RealtimeRemoveChannelResponse", "kind": 4194304, "kindString": "Type alias", @@ -6978,7 +7081,7 @@ } }, { - "id": 594, + "id": 606, "name": "REALTIME_CHANNEL_STATES", "kind": 32, "kindString": "Variable", @@ -7007,10 +7110,10 @@ "title": "Enumerations", "kind": 8, "children": [ - 576, - 580, - 585, - 589 + 588, + 592, + 597, + 601 ] }, { @@ -7028,24 +7131,24 @@ "children": [ 347, 358, - 479, - 498, - 505, - 512, - 536, + 491, + 510, 517, - 527, - 546, - 556, - 566, - 575 + 524, + 548, + 529, + 539, + 558, + 568, + 578, + 587 ] }, { "title": "Variables", "kind": 32, "children": [ - 594 + 606 ] } ], diff --git a/apps/docs/spec/enrichments/tsdoc_v2/realtime_dereferenced.json b/apps/docs/spec/enrichments/tsdoc_v2/realtime_dereferenced.json index 6e2146ee385..f64d1c9c777 100644 --- a/apps/docs/spec/enrichments/tsdoc_v2/realtime_dereferenced.json +++ b/apps/docs/spec/enrichments/tsdoc_v2/realtime_dereferenced.json @@ -7,14 +7,14 @@ "originalName": "", "children": [ { - "id": 576, + "id": 588, "name": "REALTIME_LISTEN_TYPES", "kind": 8, "kindString": "Enumeration", "flags": {}, "children": [ { - "id": 577, + "id": 589, "name": "BROADCAST", "kind": 16, "kindString": "Enumeration Member", @@ -33,7 +33,7 @@ "defaultValue": "\"broadcast\"" }, { - "id": 579, + "id": 591, "name": "POSTGRES_CHANGES", "kind": 16, "kindString": "Enumeration Member", @@ -55,7 +55,7 @@ "defaultValue": "\"postgres_changes\"" }, { - "id": 578, + "id": 590, "name": "PRESENCE", "kind": 16, "kindString": "Enumeration Member", @@ -79,9 +79,9 @@ "title": "Enumeration Members", "kind": 16, "children": [ - 577, - 579, - 578 + 589, + 591, + 590 ] } ], @@ -94,14 +94,14 @@ ] }, { - "id": 580, + "id": 592, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT", "kind": 8, "kindString": "Enumeration", "flags": {}, "children": [ { - "id": 581, + "id": 593, "name": "ALL", "kind": 16, "kindString": "Enumeration Member", @@ -120,7 +120,7 @@ "defaultValue": "\"*\"" }, { - "id": 584, + "id": 596, "name": "DELETE", "kind": 16, "kindString": "Enumeration Member", @@ -139,7 +139,7 @@ "defaultValue": "\"DELETE\"" }, { - "id": 582, + "id": 594, "name": "INSERT", "kind": 16, "kindString": "Enumeration Member", @@ -158,7 +158,7 @@ "defaultValue": "\"INSERT\"" }, { - "id": 583, + "id": 595, "name": "UPDATE", "kind": 16, "kindString": "Enumeration Member", @@ -182,10 +182,10 @@ "title": "Enumeration Members", "kind": 16, "children": [ - 581, - 584, - 582, - 583 + 593, + 596, + 594, + 595 ] } ], @@ -198,14 +198,14 @@ ] }, { - "id": 585, + "id": 597, "name": "REALTIME_PRESENCE_LISTEN_EVENTS", "kind": 8, "kindString": "Enumeration", "flags": {}, "children": [ { - "id": 587, + "id": 599, "name": "JOIN", "kind": 16, "kindString": "Enumeration Member", @@ -224,7 +224,7 @@ "defaultValue": "\"join\"" }, { - "id": 588, + "id": 600, "name": "LEAVE", "kind": 16, "kindString": "Enumeration Member", @@ -243,7 +243,7 @@ "defaultValue": "\"leave\"" }, { - "id": 586, + "id": 598, "name": "SYNC", "kind": 16, "kindString": "Enumeration Member", @@ -267,9 +267,9 @@ "title": "Enumeration Members", "kind": 16, "children": [ - 587, - 588, - 586 + 599, + 600, + 598 ] } ], @@ -282,14 +282,14 @@ ] }, { - "id": 589, + "id": 601, "name": "REALTIME_SUBSCRIBE_STATES", "kind": 8, "kindString": "Enumeration", "flags": {}, "children": [ { - "id": 593, + "id": 605, "name": "CHANNEL_ERROR", "kind": 16, "kindString": "Enumeration Member", @@ -308,7 +308,7 @@ "defaultValue": "\"CHANNEL_ERROR\"" }, { - "id": 592, + "id": 604, "name": "CLOSED", "kind": 16, "kindString": "Enumeration Member", @@ -327,7 +327,7 @@ "defaultValue": "\"CLOSED\"" }, { - "id": 590, + "id": 602, "name": "SUBSCRIBED", "kind": 16, "kindString": "Enumeration Member", @@ -346,7 +346,7 @@ "defaultValue": "\"SUBSCRIBED\"" }, { - "id": 591, + "id": 603, "name": "TIMED_OUT", "kind": 16, "kindString": "Enumeration Member", @@ -370,10 +370,10 @@ "title": "Enumeration Members", "kind": 16, "children": [ - 593, - 592, - 590, - 591 + 605, + 604, + 602, + 603 ] } ], @@ -706,7 +706,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 115, + "line": 112, "character": 2 } ], @@ -745,10 +745,10 @@ }, "type": { "type": "reference", - "id": 479, + "id": 491, "name": "RealtimeClientOptions", "dereferenced": { - "id": 479, + "id": 491, "name": "RealtimeClientOptions", "kind": 4194304, "kindString": "Type alias", @@ -763,14 +763,14 @@ "type": { "type": "reflection", "declaration": { - "id": 480, + "id": 492, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 486, + "id": 498, "name": "decode", "kind": 1024, "kindString": "Property", @@ -792,7 +792,7 @@ } }, { - "id": 485, + "id": 497, "name": "encode", "kind": 1024, "kindString": "Property", @@ -814,7 +814,7 @@ } }, { - "id": 497, + "id": 509, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -834,7 +834,7 @@ } }, { - "id": 488, + "id": 500, "name": "headers", "kind": 1024, "kindString": "Property", @@ -851,7 +851,7 @@ "type": { "type": "reflection", "declaration": { - "id": 489, + "id": 501, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -864,14 +864,14 @@ } ], "indexSignature": { - "id": 490, + "id": 502, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 491, + "id": 503, "name": "key", "kind": 32768, "flags": {}, @@ -890,7 +890,7 @@ } }, { - "id": 483, + "id": 495, "name": "heartbeatIntervalMs", "kind": 1024, "kindString": "Property", @@ -910,7 +910,7 @@ } }, { - "id": 496, + "id": 508, "name": "log_level", "kind": 1024, "kindString": "Property", @@ -947,7 +947,7 @@ } }, { - "id": 484, + "id": 496, "name": "logger", "kind": 1024, "kindString": "Property", @@ -969,7 +969,7 @@ } }, { - "id": 492, + "id": 504, "name": "params", "kind": 1024, "kindString": "Property", @@ -986,7 +986,7 @@ "type": { "type": "reflection", "declaration": { - "id": 493, + "id": 505, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -999,14 +999,14 @@ } ], "indexSignature": { - "id": 494, + "id": 506, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 495, + "id": 507, "name": "key", "kind": 32768, "flags": {}, @@ -1025,7 +1025,7 @@ } }, { - "id": 487, + "id": 499, "name": "reconnectAfterMs", "kind": 1024, "kindString": "Property", @@ -1047,7 +1047,7 @@ } }, { - "id": 482, + "id": 494, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -1067,7 +1067,7 @@ } }, { - "id": 481, + "id": 493, "name": "transport", "kind": 1024, "kindString": "Property", @@ -1092,17 +1092,17 @@ "title": "Properties", "kind": 1024, "children": [ - 486, - 485, + 498, 497, - 488, - 483, + 509, + 500, + 495, + 508, 496, - 484, - 492, - 487, - 482, - 481 + 504, + 499, + 494, + 493 ] } ], @@ -1136,7 +1136,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 69, + "line": 65, "character": 2 } ], @@ -1157,6 +1157,34 @@ }, { "id": 365, + "name": "apiKey", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/RealtimeClient.ts", + "line": 66, + "character": 2 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "intrinsic", + "name": "string" + } + ] + }, + "defaultValue": "null" + }, + { + "id": 366, "name": "channels", "kind": 1024, "kindString": "Property", @@ -1164,7 +1192,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 70, + "line": 67, "character": 2 } ], @@ -1179,7 +1207,7 @@ "defaultValue": "[]" }, { - "id": 386, + "id": 387, "name": "conn", "kind": 1024, "kindString": "Property", @@ -1187,7 +1215,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 85, + "line": 82, "character": 2 } ], @@ -1207,7 +1235,7 @@ "defaultValue": "null" }, { - "id": 384, + "id": 385, "name": "decode", "kind": 1024, "kindString": "Property", @@ -1215,7 +1243,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 83, + "line": 80, "character": 2 } ], @@ -1227,7 +1255,7 @@ } }, { - "id": 383, + "id": 384, "name": "encode", "kind": 1024, "kindString": "Property", @@ -1235,7 +1263,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 82, + "line": 79, "character": 2 } ], @@ -1247,7 +1275,7 @@ } }, { - "id": 366, + "id": 367, "name": "endPoint", "kind": 1024, "kindString": "Property", @@ -1255,7 +1283,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 71, + "line": 68, "character": 2 } ], @@ -1266,7 +1294,7 @@ "defaultValue": "''" }, { - "id": 395, + "id": 396, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -1274,28 +1302,28 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 99, + "line": 96, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 396, + "id": 397, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 397, + "id": 398, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 398, + "id": 399, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -1319,7 +1347,73 @@ } }, { - "id": 399, + "id": 400, + "name": "init", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "qualifiedName": "RequestInit", + "package": "typescript", + "name": "RequestInit" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "qualifiedName": "Response", + "package": "typescript", + "name": "Response" + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + }, + { + "id": 401, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 402, + "name": "input", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "qualifiedName": "Request", + "package": "typescript", + "name": "Request" + }, + { + "type": "reference", + "qualifiedName": "URL", + "package": "typescript", + "name": "URL" + } + ] + } + }, + { + "id": 403, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -1354,7 +1448,7 @@ } }, { - "id": 367, + "id": 368, "name": "headers", "kind": 1024, "kindString": "Property", @@ -1364,27 +1458,27 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 72, + "line": 69, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 368, + "id": 369, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": { - "id": 369, + "id": 370, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 370, + "id": 371, "name": "key", "kind": 32768, "flags": {}, @@ -1404,7 +1498,7 @@ "defaultValue": "DEFAULT_HEADERS" }, { - "id": 377, + "id": 378, "name": "heartbeatIntervalMs", "kind": 1024, "kindString": "Property", @@ -1412,7 +1506,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 76, + "line": 73, "character": 2 } ], @@ -1423,7 +1517,7 @@ "defaultValue": "30000" }, { - "id": 378, + "id": 379, "name": "heartbeatTimer", "kind": 1024, "kindString": "Property", @@ -1431,7 +1525,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 77, + "line": 74, "character": 2 } ], @@ -1444,16 +1538,16 @@ }, { "type": "reference", - "qualifiedName": "global.NodeJS.Timer", + "qualifiedName": "global.NodeJS.Timeout", "package": "@types/node", - "name": "Timer" + "name": "Timeout" } ] }, "defaultValue": "undefined" }, { - "id": 382, + "id": 383, "name": "logger", "kind": 1024, "kindString": "Property", @@ -1461,7 +1555,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 81, + "line": 78, "character": 2 } ], @@ -1474,7 +1568,7 @@ "defaultValue": "noop" }, { - "id": 371, + "id": 372, "name": "params", "kind": 1024, "kindString": "Property", @@ -1484,27 +1578,27 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 73, + "line": 70, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 372, + "id": 373, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": { - "id": 373, + "id": 374, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 374, + "id": 375, "name": "key", "kind": 32768, "flags": {}, @@ -1524,7 +1618,7 @@ "defaultValue": "{}" }, { - "id": 379, + "id": 380, "name": "pendingHeartbeatRef", "kind": 1024, "kindString": "Property", @@ -1532,7 +1626,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 78, + "line": 75, "character": 2 } ], @@ -1552,7 +1646,7 @@ "defaultValue": "null" }, { - "id": 385, + "id": 386, "name": "reconnectAfterMs", "kind": 1024, "kindString": "Property", @@ -1560,7 +1654,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 84, + "line": 81, "character": 2 } ], @@ -1572,7 +1666,7 @@ } }, { - "id": 381, + "id": 382, "name": "reconnectTimer", "kind": 1024, "kindString": "Property", @@ -1580,7 +1674,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 80, + "line": 77, "character": 2 } ], @@ -1590,7 +1684,7 @@ } }, { - "id": 380, + "id": 381, "name": "ref", "kind": 1024, "kindString": "Property", @@ -1598,7 +1692,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 79, + "line": 76, "character": 2 } ], @@ -1609,7 +1703,7 @@ "defaultValue": "0" }, { - "id": 387, + "id": 388, "name": "sendBuffer", "kind": 1024, "kindString": "Property", @@ -1617,7 +1711,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 86, + "line": 83, "character": 2 } ], @@ -1633,7 +1727,7 @@ "defaultValue": "[]" }, { - "id": 388, + "id": 389, "name": "serializer", "kind": 1024, "kindString": "Property", @@ -1641,7 +1735,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 87, + "line": 84, "character": 2 } ], @@ -1652,7 +1746,7 @@ "defaultValue": "..." }, { - "id": 389, + "id": 390, "name": "stateChangeCallbacks", "kind": 1024, "kindString": "Property", @@ -1660,21 +1754,21 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 88, + "line": 85, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 390, + "id": 391, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 392, + "id": 393, "name": "close", "kind": 1024, "kindString": "Property", @@ -1682,30 +1776,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 90, - "character": 4 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - } - }, - { - "id": 393, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/RealtimeClient.ts", - "line": 91, + "line": 87, "character": 4 } ], @@ -1721,14 +1792,14 @@ }, { "id": 394, - "name": "message", + "name": "error", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 92, + "line": 88, "character": 4 } ], @@ -1743,8 +1814,8 @@ } }, { - "id": 391, - "name": "open", + "id": 395, + "name": "message", "kind": 1024, "kindString": "Property", "flags": {}, @@ -1764,6 +1835,29 @@ "name": "Function" } } + }, + { + "id": 392, + "name": "open", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/RealtimeClient.ts", + "line": 86, + "character": 4 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "qualifiedName": "Function", + "package": "typescript", + "name": "Function" + } + } } ], "groups": [ @@ -1771,10 +1865,10 @@ "title": "Properties", "kind": 1024, "children": [ - 392, 393, 394, - 391 + 395, + 392 ] } ] @@ -1783,7 +1877,7 @@ "defaultValue": "..." }, { - "id": 375, + "id": 376, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -1791,7 +1885,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 74, + "line": 71, "character": 2 } ], @@ -1802,7 +1896,7 @@ "defaultValue": "DEFAULT_TIMEOUT" }, { - "id": 376, + "id": 377, "name": "transport", "kind": 1024, "kindString": "Property", @@ -1810,18 +1904,26 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 75, + "line": 72, "character": 2 } ], "type": { - "type": "reference", - "name": "WebSocketLikeConstructor" - }, - "defaultValue": "WebSocketVariant" + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "name": "WebSocketLikeConstructor" + } + ] + } }, { - "id": 422, + "id": 426, "name": "channel", "kind": 2048, "kindString": "Method", @@ -1829,20 +1931,20 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 261, + "line": 274, "character": 2 } ], "signatures": [ { - "id": 423, + "id": 427, "name": "channel", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 424, + "id": 428, "name": "topic", "kind": 32768, "kindString": "Parameter", @@ -1853,7 +1955,7 @@ } }, { - "id": 425, + "id": 429, "name": "params", "kind": 32768, "kindString": "Parameter", @@ -2115,7 +2217,7 @@ ] }, { - "id": 400, + "id": 404, "name": "connect", "kind": 2048, "kindString": "Method", @@ -2123,13 +2225,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 153, + "line": 157, "character": 2 } ], "signatures": [ { - "id": 401, + "id": 405, "name": "connect", "kind": 4096, "kindString": "Call signature", @@ -2145,7 +2247,7 @@ ] }, { - "id": 418, + "id": 422, "name": "connectionState", "kind": 2048, "kindString": "Method", @@ -2153,13 +2255,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 241, + "line": 254, "character": 2 } ], "signatures": [ { - "id": 419, + "id": 423, "name": "connectionState", "kind": 4096, "kindString": "Call signature", @@ -2175,7 +2277,7 @@ ] }, { - "id": 402, + "id": 406, "name": "disconnect", "kind": 2048, "kindString": "Method", @@ -2183,13 +2285,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 182, + "line": 195, "character": 2 } ], "signatures": [ { - "id": 403, + "id": 407, "name": "disconnect", "kind": 4096, "kindString": "Call signature", @@ -2199,7 +2301,7 @@ }, "parameters": [ { - "id": 404, + "id": 408, "name": "code", "kind": 32768, "kindString": "Parameter", @@ -2215,7 +2317,7 @@ } }, { - "id": 405, + "id": 409, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -2239,7 +2341,7 @@ ] }, { - "id": 406, + "id": 410, "name": "getChannels", "kind": 2048, "kindString": "Method", @@ -2247,13 +2349,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 200, + "line": 213, "character": 2 } ], "signatures": [ { - "id": 407, + "id": 411, "name": "getChannels", "kind": 4096, "kindString": "Call signature", @@ -2273,7 +2375,7 @@ ] }, { - "id": 420, + "id": 424, "name": "isConnected", "kind": 2048, "kindString": "Method", @@ -2281,13 +2383,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 257, + "line": 270, "character": 2 } ], "signatures": [ { - "id": 421, + "id": 425, "name": "isConnected", "kind": 4096, "kindString": "Call signature", @@ -2303,7 +2405,7 @@ ] }, { - "id": 413, + "id": 417, "name": "log", "kind": 2048, "kindString": "Method", @@ -2311,13 +2413,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 234, + "line": 247, "character": 2 } ], "signatures": [ { - "id": 414, + "id": 418, "name": "log", "kind": 4096, "kindString": "Call signature", @@ -2328,7 +2430,7 @@ }, "parameters": [ { - "id": 415, + "id": 419, "name": "kind", "kind": 32768, "kindString": "Parameter", @@ -2339,7 +2441,7 @@ } }, { - "id": 416, + "id": 420, "name": "msg", "kind": 32768, "kindString": "Parameter", @@ -2350,7 +2452,7 @@ } }, { - "id": 417, + "id": 421, "name": "data", "kind": 32768, "kindString": "Parameter", @@ -2371,7 +2473,7 @@ ] }, { - "id": 426, + "id": 430, "name": "push", "kind": 2048, "kindString": "Method", @@ -2379,13 +2481,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 275, + "line": 288, "character": 2 } ], "signatures": [ { - "id": 427, + "id": 431, "name": "push", "kind": 4096, "kindString": "Call signature", @@ -2396,17 +2498,17 @@ }, "parameters": [ { - "id": 428, + "id": 432, "name": "data", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 498, + "id": 510, "name": "RealtimeMessage", "dereferenced": { - "id": 498, + "id": 510, "name": "RealtimeMessage", "kind": 4194304, "kindString": "Type alias", @@ -2421,14 +2523,14 @@ "type": { "type": "reflection", "declaration": { - "id": 499, + "id": 511, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 501, + "id": 513, "name": "event", "kind": 1024, "kindString": "Property", @@ -2446,7 +2548,7 @@ } }, { - "id": 504, + "id": 516, "name": "join_ref", "kind": 1024, "kindString": "Property", @@ -2466,7 +2568,7 @@ } }, { - "id": 502, + "id": 514, "name": "payload", "kind": 1024, "kindString": "Property", @@ -2484,7 +2586,7 @@ } }, { - "id": 503, + "id": 515, "name": "ref", "kind": 1024, "kindString": "Property", @@ -2502,7 +2604,7 @@ } }, { - "id": 500, + "id": 512, "name": "topic", "kind": 1024, "kindString": "Property", @@ -2525,11 +2627,11 @@ "title": "Properties", "kind": 1024, "children": [ - 501, - 504, - 502, - 503, - 500 + 513, + 516, + 514, + 515, + 512 ] } ], @@ -2554,7 +2656,7 @@ ] }, { - "id": 411, + "id": 415, "name": "removeAllChannels", "kind": 2048, "kindString": "Method", @@ -2562,13 +2664,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 221, + "line": 234, "character": 8 } ], "signatures": [ { - "id": 412, + "id": 416, "name": "removeAllChannels", "kind": 4096, "kindString": "Call signature", @@ -2583,7 +2685,7 @@ "type": "array", "elementType": { "type": "reference", - "id": 575, + "id": 587, "name": "RealtimeRemoveChannelResponse" } } @@ -2596,7 +2698,7 @@ ] }, { - "id": 408, + "id": 412, "name": "removeChannel", "kind": 2048, "kindString": "Method", @@ -2604,13 +2706,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 208, + "line": 221, "character": 8 } ], "signatures": [ { - "id": 409, + "id": 413, "name": "removeChannel", "kind": 4096, "kindString": "Call signature", @@ -2620,7 +2722,7 @@ }, "parameters": [ { - "id": 410, + "id": 414, "name": "channel", "kind": 32768, "kindString": "Parameter", @@ -2701,7 +2803,7 @@ "typeArguments": [ { "type": "reference", - "id": 575, + "id": 587, "name": "RealtimeRemoveChannelResponse" } ], @@ -2713,7 +2815,7 @@ ] }, { - "id": 429, + "id": 433, "name": "setAuth", "kind": 2048, "kindString": "Method", @@ -2721,13 +2823,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 295, + "line": 308, "character": 2 } ], "signatures": [ { - "id": 430, + "id": 434, "name": "setAuth", "kind": 4096, "kindString": "Call signature", @@ -2737,7 +2839,7 @@ }, "parameters": [ { - "id": 431, + "id": 435, "name": "token", "kind": 32768, "kindString": "Parameter", @@ -2782,49 +2884,50 @@ "children": [ 364, 365, - 386, - 384, - 383, 366, - 395, - 367, - 377, - 378, - 382, - 371, - 379, - 385, - 381, - 380, 387, + 385, + 384, + 367, + 396, + 368, + 378, + 379, + 383, + 372, + 380, + 386, + 382, + 381, 388, 389, - 375, - 376 + 390, + 376, + 377 ] }, { "title": "Methods", "kind": 2048, "children": [ - 422, - 400, - 418, - 402, - 406, - 420, - 413, 426, - 411, - 408, - 429 + 404, + 422, + 406, + 410, + 424, + 417, + 430, + 415, + 412, + 433 ] } ], "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 68, + "line": 64, "character": 21 } ] @@ -3742,7 +3845,7 @@ ], "type": { "type": "reference", - "id": 566, + "id": 578, "typeArguments": [ { "type": "reflection", @@ -3757,7 +3860,7 @@ ], "name": "RealtimePresenceState", "dereferenced": { - "id": 566, + "id": 578, "name": "RealtimePresenceState", "kind": 4194304, "kindString": "Type alias", @@ -3771,7 +3874,7 @@ ], "typeParameter": [ { - "id": 574, + "id": 586, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -3779,7 +3882,7 @@ "type": { "type": "reflection", "declaration": { - "id": 570, + "id": 582, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3792,14 +3895,14 @@ } ], "indexSignature": { - "id": 571, + "id": 583, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 572, + "id": 584, "name": "key", "kind": 32768, "flags": {}, @@ -3819,7 +3922,7 @@ "default": { "type": "reflection", "declaration": { - "id": 573, + "id": 585, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3838,7 +3941,7 @@ "type": { "type": "reflection", "declaration": { - "id": 567, + "id": 579, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3851,14 +3954,14 @@ } ], "indexSignature": { - "id": 568, + "id": 580, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 569, + "id": 581, "name": "key", "kind": 32768, "flags": {}, @@ -3875,7 +3978,7 @@ "typeArguments": [ { "type": "reference", - "id": 574, + "id": 586, "name": "T" } ], @@ -3988,7 +4091,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 115, + "line": 112, "character": 2 } ], @@ -4027,10 +4130,10 @@ }, "type": { "type": "reference", - "id": 479, + "id": 491, "name": "RealtimeClientOptions", "dereferenced": { - "id": 479, + "id": 491, "name": "RealtimeClientOptions", "kind": 4194304, "kindString": "Type alias", @@ -4045,14 +4148,14 @@ "type": { "type": "reflection", "declaration": { - "id": 480, + "id": 492, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 486, + "id": 498, "name": "decode", "kind": 1024, "kindString": "Property", @@ -4074,7 +4177,7 @@ } }, { - "id": 485, + "id": 497, "name": "encode", "kind": 1024, "kindString": "Property", @@ -4096,7 +4199,7 @@ } }, { - "id": 497, + "id": 509, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -4116,7 +4219,7 @@ } }, { - "id": 488, + "id": 500, "name": "headers", "kind": 1024, "kindString": "Property", @@ -4133,7 +4236,7 @@ "type": { "type": "reflection", "declaration": { - "id": 489, + "id": 501, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4146,14 +4249,14 @@ } ], "indexSignature": { - "id": 490, + "id": 502, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 491, + "id": 503, "name": "key", "kind": 32768, "flags": {}, @@ -4172,7 +4275,7 @@ } }, { - "id": 483, + "id": 495, "name": "heartbeatIntervalMs", "kind": 1024, "kindString": "Property", @@ -4192,7 +4295,7 @@ } }, { - "id": 496, + "id": 508, "name": "log_level", "kind": 1024, "kindString": "Property", @@ -4229,7 +4332,7 @@ } }, { - "id": 484, + "id": 496, "name": "logger", "kind": 1024, "kindString": "Property", @@ -4251,7 +4354,7 @@ } }, { - "id": 492, + "id": 504, "name": "params", "kind": 1024, "kindString": "Property", @@ -4268,7 +4371,7 @@ "type": { "type": "reflection", "declaration": { - "id": 493, + "id": 505, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4281,14 +4384,14 @@ } ], "indexSignature": { - "id": 494, + "id": 506, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 495, + "id": 507, "name": "key", "kind": 32768, "flags": {}, @@ -4307,7 +4410,7 @@ } }, { - "id": 487, + "id": 499, "name": "reconnectAfterMs", "kind": 1024, "kindString": "Property", @@ -4329,7 +4432,7 @@ } }, { - "id": 482, + "id": 494, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -4349,7 +4452,7 @@ } }, { - "id": 481, + "id": 493, "name": "transport", "kind": 1024, "kindString": "Property", @@ -4374,17 +4477,17 @@ "title": "Properties", "kind": 1024, "children": [ - 486, - 485, + 498, 497, - 488, - 483, + 509, + 500, + 495, + 508, 496, - 484, - 492, - 487, - 482, - 481 + 504, + 499, + 494, + 493 ] } ], @@ -4418,7 +4521,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 69, + "line": 65, "character": 2 } ], @@ -4439,6 +4542,34 @@ }, { "id": 365, + "name": "apiKey", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/RealtimeClient.ts", + "line": 66, + "character": 2 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "intrinsic", + "name": "string" + } + ] + }, + "defaultValue": "null" + }, + { + "id": 366, "name": "channels", "kind": 1024, "kindString": "Property", @@ -4446,7 +4577,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 70, + "line": 67, "character": 2 } ], @@ -4461,7 +4592,7 @@ "defaultValue": "[]" }, { - "id": 386, + "id": 387, "name": "conn", "kind": 1024, "kindString": "Property", @@ -4469,7 +4600,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 85, + "line": 82, "character": 2 } ], @@ -4489,7 +4620,7 @@ "defaultValue": "null" }, { - "id": 384, + "id": 385, "name": "decode", "kind": 1024, "kindString": "Property", @@ -4497,7 +4628,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 83, + "line": 80, "character": 2 } ], @@ -4509,7 +4640,7 @@ } }, { - "id": 383, + "id": 384, "name": "encode", "kind": 1024, "kindString": "Property", @@ -4517,7 +4648,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 82, + "line": 79, "character": 2 } ], @@ -4529,7 +4660,7 @@ } }, { - "id": 366, + "id": 367, "name": "endPoint", "kind": 1024, "kindString": "Property", @@ -4537,7 +4668,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 71, + "line": 68, "character": 2 } ], @@ -4548,7 +4679,7 @@ "defaultValue": "''" }, { - "id": 395, + "id": 396, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -4556,28 +4687,28 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 99, + "line": 96, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 396, + "id": 397, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 397, + "id": 398, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 398, + "id": 399, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -4601,7 +4732,73 @@ } }, { - "id": 399, + "id": 400, + "name": "init", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "qualifiedName": "RequestInit", + "package": "typescript", + "name": "RequestInit" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "qualifiedName": "Response", + "package": "typescript", + "name": "Response" + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + }, + { + "id": 401, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 402, + "name": "input", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "qualifiedName": "Request", + "package": "typescript", + "name": "Request" + }, + { + "type": "reference", + "qualifiedName": "URL", + "package": "typescript", + "name": "URL" + } + ] + } + }, + { + "id": 403, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -4636,7 +4833,7 @@ } }, { - "id": 367, + "id": 368, "name": "headers", "kind": 1024, "kindString": "Property", @@ -4646,27 +4843,27 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 72, + "line": 69, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 368, + "id": 369, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": { - "id": 369, + "id": 370, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 370, + "id": 371, "name": "key", "kind": 32768, "flags": {}, @@ -4686,7 +4883,7 @@ "defaultValue": "DEFAULT_HEADERS" }, { - "id": 377, + "id": 378, "name": "heartbeatIntervalMs", "kind": 1024, "kindString": "Property", @@ -4694,7 +4891,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 76, + "line": 73, "character": 2 } ], @@ -4705,7 +4902,7 @@ "defaultValue": "30000" }, { - "id": 378, + "id": 379, "name": "heartbeatTimer", "kind": 1024, "kindString": "Property", @@ -4713,7 +4910,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 77, + "line": 74, "character": 2 } ], @@ -4726,16 +4923,16 @@ }, { "type": "reference", - "qualifiedName": "global.NodeJS.Timer", + "qualifiedName": "global.NodeJS.Timeout", "package": "@types/node", - "name": "Timer" + "name": "Timeout" } ] }, "defaultValue": "undefined" }, { - "id": 382, + "id": 383, "name": "logger", "kind": 1024, "kindString": "Property", @@ -4743,7 +4940,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 81, + "line": 78, "character": 2 } ], @@ -4756,7 +4953,7 @@ "defaultValue": "noop" }, { - "id": 371, + "id": 372, "name": "params", "kind": 1024, "kindString": "Property", @@ -4766,27 +4963,27 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 73, + "line": 70, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 372, + "id": 373, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": { - "id": 373, + "id": 374, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 374, + "id": 375, "name": "key", "kind": 32768, "flags": {}, @@ -4806,7 +5003,7 @@ "defaultValue": "{}" }, { - "id": 379, + "id": 380, "name": "pendingHeartbeatRef", "kind": 1024, "kindString": "Property", @@ -4814,7 +5011,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 78, + "line": 75, "character": 2 } ], @@ -4834,7 +5031,7 @@ "defaultValue": "null" }, { - "id": 385, + "id": 386, "name": "reconnectAfterMs", "kind": 1024, "kindString": "Property", @@ -4842,7 +5039,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 84, + "line": 81, "character": 2 } ], @@ -4854,7 +5051,7 @@ } }, { - "id": 381, + "id": 382, "name": "reconnectTimer", "kind": 1024, "kindString": "Property", @@ -4862,7 +5059,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 80, + "line": 77, "character": 2 } ], @@ -4872,7 +5069,7 @@ } }, { - "id": 380, + "id": 381, "name": "ref", "kind": 1024, "kindString": "Property", @@ -4880,7 +5077,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 79, + "line": 76, "character": 2 } ], @@ -4891,7 +5088,7 @@ "defaultValue": "0" }, { - "id": 387, + "id": 388, "name": "sendBuffer", "kind": 1024, "kindString": "Property", @@ -4899,7 +5096,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 86, + "line": 83, "character": 2 } ], @@ -4915,7 +5112,7 @@ "defaultValue": "[]" }, { - "id": 388, + "id": 389, "name": "serializer", "kind": 1024, "kindString": "Property", @@ -4923,7 +5120,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 87, + "line": 84, "character": 2 } ], @@ -4934,7 +5131,7 @@ "defaultValue": "..." }, { - "id": 389, + "id": 390, "name": "stateChangeCallbacks", "kind": 1024, "kindString": "Property", @@ -4942,21 +5139,21 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 88, + "line": 85, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 390, + "id": 391, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 392, + "id": 393, "name": "close", "kind": 1024, "kindString": "Property", @@ -4964,30 +5161,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 90, - "character": 4 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - } - }, - { - "id": 393, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/RealtimeClient.ts", - "line": 91, + "line": 87, "character": 4 } ], @@ -5003,14 +5177,14 @@ }, { "id": 394, - "name": "message", + "name": "error", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 92, + "line": 88, "character": 4 } ], @@ -5025,8 +5199,8 @@ } }, { - "id": 391, - "name": "open", + "id": 395, + "name": "message", "kind": 1024, "kindString": "Property", "flags": {}, @@ -5046,6 +5220,29 @@ "name": "Function" } } + }, + { + "id": 392, + "name": "open", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/RealtimeClient.ts", + "line": 86, + "character": 4 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "qualifiedName": "Function", + "package": "typescript", + "name": "Function" + } + } } ], "groups": [ @@ -5053,10 +5250,10 @@ "title": "Properties", "kind": 1024, "children": [ - 392, 393, 394, - 391 + 395, + 392 ] } ] @@ -5065,7 +5262,7 @@ "defaultValue": "..." }, { - "id": 375, + "id": 376, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -5073,7 +5270,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 74, + "line": 71, "character": 2 } ], @@ -5084,7 +5281,7 @@ "defaultValue": "DEFAULT_TIMEOUT" }, { - "id": 376, + "id": 377, "name": "transport", "kind": 1024, "kindString": "Property", @@ -5092,18 +5289,26 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 75, + "line": 72, "character": 2 } ], "type": { - "type": "reference", - "name": "WebSocketLikeConstructor" - }, - "defaultValue": "WebSocketVariant" + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "name": "WebSocketLikeConstructor" + } + ] + } }, { - "id": 422, + "id": 426, "name": "channel", "kind": 2048, "kindString": "Method", @@ -5111,20 +5316,20 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 261, + "line": 274, "character": 2 } ], "signatures": [ { - "id": 423, + "id": 427, "name": "channel", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 424, + "id": 428, "name": "topic", "kind": 32768, "kindString": "Parameter", @@ -5135,7 +5340,7 @@ } }, { - "id": 425, + "id": 429, "name": "params", "kind": 32768, "kindString": "Parameter", @@ -5397,7 +5602,7 @@ ] }, { - "id": 400, + "id": 404, "name": "connect", "kind": 2048, "kindString": "Method", @@ -5405,13 +5610,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 153, + "line": 157, "character": 2 } ], "signatures": [ { - "id": 401, + "id": 405, "name": "connect", "kind": 4096, "kindString": "Call signature", @@ -5427,7 +5632,7 @@ ] }, { - "id": 418, + "id": 422, "name": "connectionState", "kind": 2048, "kindString": "Method", @@ -5435,13 +5640,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 241, + "line": 254, "character": 2 } ], "signatures": [ { - "id": 419, + "id": 423, "name": "connectionState", "kind": 4096, "kindString": "Call signature", @@ -5457,7 +5662,7 @@ ] }, { - "id": 402, + "id": 406, "name": "disconnect", "kind": 2048, "kindString": "Method", @@ -5465,13 +5670,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 182, + "line": 195, "character": 2 } ], "signatures": [ { - "id": 403, + "id": 407, "name": "disconnect", "kind": 4096, "kindString": "Call signature", @@ -5481,7 +5686,7 @@ }, "parameters": [ { - "id": 404, + "id": 408, "name": "code", "kind": 32768, "kindString": "Parameter", @@ -5497,7 +5702,7 @@ } }, { - "id": 405, + "id": 409, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -5521,7 +5726,7 @@ ] }, { - "id": 406, + "id": 410, "name": "getChannels", "kind": 2048, "kindString": "Method", @@ -5529,13 +5734,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 200, + "line": 213, "character": 2 } ], "signatures": [ { - "id": 407, + "id": 411, "name": "getChannels", "kind": 4096, "kindString": "Call signature", @@ -5555,7 +5760,7 @@ ] }, { - "id": 420, + "id": 424, "name": "isConnected", "kind": 2048, "kindString": "Method", @@ -5563,13 +5768,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 257, + "line": 270, "character": 2 } ], "signatures": [ { - "id": 421, + "id": 425, "name": "isConnected", "kind": 4096, "kindString": "Call signature", @@ -5585,7 +5790,7 @@ ] }, { - "id": 413, + "id": 417, "name": "log", "kind": 2048, "kindString": "Method", @@ -5593,13 +5798,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 234, + "line": 247, "character": 2 } ], "signatures": [ { - "id": 414, + "id": 418, "name": "log", "kind": 4096, "kindString": "Call signature", @@ -5610,7 +5815,7 @@ }, "parameters": [ { - "id": 415, + "id": 419, "name": "kind", "kind": 32768, "kindString": "Parameter", @@ -5621,7 +5826,7 @@ } }, { - "id": 416, + "id": 420, "name": "msg", "kind": 32768, "kindString": "Parameter", @@ -5632,7 +5837,7 @@ } }, { - "id": 417, + "id": 421, "name": "data", "kind": 32768, "kindString": "Parameter", @@ -5653,7 +5858,7 @@ ] }, { - "id": 426, + "id": 430, "name": "push", "kind": 2048, "kindString": "Method", @@ -5661,13 +5866,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 275, + "line": 288, "character": 2 } ], "signatures": [ { - "id": 427, + "id": 431, "name": "push", "kind": 4096, "kindString": "Call signature", @@ -5678,17 +5883,17 @@ }, "parameters": [ { - "id": 428, + "id": 432, "name": "data", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 498, + "id": 510, "name": "RealtimeMessage", "dereferenced": { - "id": 498, + "id": 510, "name": "RealtimeMessage", "kind": 4194304, "kindString": "Type alias", @@ -5703,14 +5908,14 @@ "type": { "type": "reflection", "declaration": { - "id": 499, + "id": 511, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 501, + "id": 513, "name": "event", "kind": 1024, "kindString": "Property", @@ -5728,7 +5933,7 @@ } }, { - "id": 504, + "id": 516, "name": "join_ref", "kind": 1024, "kindString": "Property", @@ -5748,7 +5953,7 @@ } }, { - "id": 502, + "id": 514, "name": "payload", "kind": 1024, "kindString": "Property", @@ -5766,7 +5971,7 @@ } }, { - "id": 503, + "id": 515, "name": "ref", "kind": 1024, "kindString": "Property", @@ -5784,7 +5989,7 @@ } }, { - "id": 500, + "id": 512, "name": "topic", "kind": 1024, "kindString": "Property", @@ -5807,11 +6012,11 @@ "title": "Properties", "kind": 1024, "children": [ - 501, - 504, - 502, - 503, - 500 + 513, + 516, + 514, + 515, + 512 ] } ], @@ -5836,7 +6041,7 @@ ] }, { - "id": 411, + "id": 415, "name": "removeAllChannels", "kind": 2048, "kindString": "Method", @@ -5844,13 +6049,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 221, + "line": 234, "character": 8 } ], "signatures": [ { - "id": 412, + "id": 416, "name": "removeAllChannels", "kind": 4096, "kindString": "Call signature", @@ -5865,7 +6070,7 @@ "type": "array", "elementType": { "type": "reference", - "id": 575, + "id": 587, "name": "RealtimeRemoveChannelResponse" } } @@ -5878,7 +6083,7 @@ ] }, { - "id": 408, + "id": 412, "name": "removeChannel", "kind": 2048, "kindString": "Method", @@ -5886,13 +6091,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 208, + "line": 221, "character": 8 } ], "signatures": [ { - "id": 409, + "id": 413, "name": "removeChannel", "kind": 4096, "kindString": "Call signature", @@ -5902,7 +6107,7 @@ }, "parameters": [ { - "id": 410, + "id": 414, "name": "channel", "kind": 32768, "kindString": "Parameter", @@ -5983,7 +6188,7 @@ "typeArguments": [ { "type": "reference", - "id": 575, + "id": 587, "name": "RealtimeRemoveChannelResponse" } ], @@ -5995,7 +6200,7 @@ ] }, { - "id": 429, + "id": 433, "name": "setAuth", "kind": 2048, "kindString": "Method", @@ -6003,13 +6208,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 295, + "line": 308, "character": 2 } ], "signatures": [ { - "id": 430, + "id": 434, "name": "setAuth", "kind": 4096, "kindString": "Call signature", @@ -6019,7 +6224,7 @@ }, "parameters": [ { - "id": 431, + "id": 435, "name": "token", "kind": 32768, "kindString": "Parameter", @@ -6064,49 +6269,50 @@ "children": [ 364, 365, - 386, - 384, - 383, 366, - 395, - 367, - 377, - 378, - 382, - 371, - 379, - 385, - 381, - 380, 387, + 385, + 384, + 367, + 396, + 368, + 378, + 379, + 383, + 372, + 380, + 386, + 382, + 381, 388, 389, - 375, - 376 + 390, + 376, + 377 ] }, { "title": "Methods", "kind": 2048, "children": [ - 422, - 400, - 418, - 402, - 406, - 420, - 413, 426, - 411, - 408, - 429 + 404, + 422, + 406, + 410, + 424, + 417, + 430, + 415, + 412, + 433 ] } ], "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 68, + "line": 64, "character": 21 } ] @@ -6536,7 +6742,7 @@ "flags": {}, "type": { "type": "reference", - "id": 546, + "id": 558, "typeArguments": [ { "type": "reference", @@ -6700,7 +6906,7 @@ "flags": {}, "type": { "type": "reference", - "id": 556, + "id": 568, "typeArguments": [ { "type": "reference", @@ -6796,7 +7002,7 @@ "flags": {}, "type": { "type": "reference", - "id": 505, + "id": 517, "typeArguments": [ { "type": "literal", @@ -6805,7 +7011,7 @@ ], "name": "RealtimePostgresChangesFilter", "dereferenced": { - "id": 505, + "id": 517, "name": "RealtimePostgresChangesFilter", "kind": 4194304, "kindString": "Type alias", @@ -6819,7 +7025,7 @@ ], "typeParameter": [ { - "id": 511, + "id": 523, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -6831,7 +7037,7 @@ [ { "type": "reference", - "id": 580, + "id": 592, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT" }, "" @@ -6843,14 +7049,14 @@ "type": { "type": "reflection", "declaration": { - "id": 506, + "id": 518, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 507, + "id": 519, "name": "event", "kind": 1024, "kindString": "Property", @@ -6867,13 +7073,13 @@ ], "type": { "type": "reference", - "id": 511, + "id": 523, "name": "T", "dereferenced": {} } }, { - "id": 510, + "id": 522, "name": "filter", "kind": 1024, "kindString": "Property", @@ -6896,7 +7102,7 @@ } }, { - "id": 508, + "id": 520, "name": "schema", "kind": 1024, "kindString": "Property", @@ -6917,7 +7123,7 @@ } }, { - "id": 509, + "id": 521, "name": "table", "kind": 1024, "kindString": "Property", @@ -6945,10 +7151,10 @@ "title": "Properties", "kind": 1024, "children": [ - 507, - 510, - 508, - 509 + 519, + 522, + 520, + 521 ] } ], @@ -6994,7 +7200,7 @@ "flags": {}, "type": { "type": "reference", - "id": 512, + "id": 524, "typeArguments": [ { "type": "reference", @@ -7090,7 +7296,7 @@ "flags": {}, "type": { "type": "reference", - "id": 505, + "id": 517, "typeArguments": [ { "type": "literal", @@ -7099,7 +7305,7 @@ ], "name": "RealtimePostgresChangesFilter", "dereferenced": { - "id": 505, + "id": 517, "name": "RealtimePostgresChangesFilter", "kind": 4194304, "kindString": "Type alias", @@ -7113,7 +7319,7 @@ ], "typeParameter": [ { - "id": 511, + "id": 523, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -7125,7 +7331,7 @@ [ { "type": "reference", - "id": 580, + "id": 592, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT" }, "" @@ -7137,14 +7343,14 @@ "type": { "type": "reflection", "declaration": { - "id": 506, + "id": 518, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 507, + "id": 519, "name": "event", "kind": 1024, "kindString": "Property", @@ -7161,13 +7367,13 @@ ], "type": { "type": "reference", - "id": 511, + "id": 523, "name": "T", "dereferenced": {} } }, { - "id": 510, + "id": 522, "name": "filter", "kind": 1024, "kindString": "Property", @@ -7190,7 +7396,7 @@ } }, { - "id": 508, + "id": 520, "name": "schema", "kind": 1024, "kindString": "Property", @@ -7211,7 +7417,7 @@ } }, { - "id": 509, + "id": 521, "name": "table", "kind": 1024, "kindString": "Property", @@ -7239,10 +7445,10 @@ "title": "Properties", "kind": 1024, "children": [ - 507, - 510, - 508, - 509 + 519, + 522, + 520, + 521 ] } ], @@ -7288,7 +7494,7 @@ "flags": {}, "type": { "type": "reference", - "id": 517, + "id": 529, "typeArguments": [ { "type": "reference", @@ -7384,7 +7590,7 @@ "flags": {}, "type": { "type": "reference", - "id": 505, + "id": 517, "typeArguments": [ { "type": "literal", @@ -7393,7 +7599,7 @@ ], "name": "RealtimePostgresChangesFilter", "dereferenced": { - "id": 505, + "id": 517, "name": "RealtimePostgresChangesFilter", "kind": 4194304, "kindString": "Type alias", @@ -7407,7 +7613,7 @@ ], "typeParameter": [ { - "id": 511, + "id": 523, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -7419,7 +7625,7 @@ [ { "type": "reference", - "id": 580, + "id": 592, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT" }, "" @@ -7431,14 +7637,14 @@ "type": { "type": "reflection", "declaration": { - "id": 506, + "id": 518, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 507, + "id": 519, "name": "event", "kind": 1024, "kindString": "Property", @@ -7455,13 +7661,13 @@ ], "type": { "type": "reference", - "id": 511, + "id": 523, "name": "T", "dereferenced": {} } }, { - "id": 510, + "id": 522, "name": "filter", "kind": 1024, "kindString": "Property", @@ -7484,7 +7690,7 @@ } }, { - "id": 508, + "id": 520, "name": "schema", "kind": 1024, "kindString": "Property", @@ -7505,7 +7711,7 @@ } }, { - "id": 509, + "id": 521, "name": "table", "kind": 1024, "kindString": "Property", @@ -7533,10 +7739,10 @@ "title": "Properties", "kind": 1024, "children": [ - 507, - 510, - 508, - 509 + 519, + 522, + 520, + 521 ] } ], @@ -7582,7 +7788,7 @@ "flags": {}, "type": { "type": "reference", - "id": 527, + "id": 539, "typeArguments": [ { "type": "reference", @@ -7678,7 +7884,7 @@ "flags": {}, "type": { "type": "reference", - "id": 505, + "id": 517, "typeArguments": [ { "type": "literal", @@ -7687,7 +7893,7 @@ ], "name": "RealtimePostgresChangesFilter", "dereferenced": { - "id": 505, + "id": 517, "name": "RealtimePostgresChangesFilter", "kind": 4194304, "kindString": "Type alias", @@ -7701,7 +7907,7 @@ ], "typeParameter": [ { - "id": 511, + "id": 523, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -7713,7 +7919,7 @@ [ { "type": "reference", - "id": 580, + "id": 592, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT" }, "" @@ -7725,14 +7931,14 @@ "type": { "type": "reflection", "declaration": { - "id": 506, + "id": 518, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 507, + "id": 519, "name": "event", "kind": 1024, "kindString": "Property", @@ -7749,13 +7955,13 @@ ], "type": { "type": "reference", - "id": 511, + "id": 523, "name": "T", "dereferenced": {} } }, { - "id": 510, + "id": 522, "name": "filter", "kind": 1024, "kindString": "Property", @@ -7778,7 +7984,7 @@ } }, { - "id": 508, + "id": 520, "name": "schema", "kind": 1024, "kindString": "Property", @@ -7799,7 +8005,7 @@ } }, { - "id": 509, + "id": 521, "name": "table", "kind": 1024, "kindString": "Property", @@ -7827,10 +8033,10 @@ "title": "Properties", "kind": 1024, "children": [ - 507, - 510, - 508, - 509 + 519, + 522, + 520, + 521 ] } ], @@ -7876,7 +8082,7 @@ "flags": {}, "type": { "type": "reference", - "id": 536, + "id": 548, "typeArguments": [ { "type": "reference", @@ -8413,7 +8619,7 @@ ], "type": { "type": "reference", - "id": 566, + "id": 578, "typeArguments": [ { "type": "reference", @@ -9168,7 +9374,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 115, + "line": 112, "character": 2 } ], @@ -9207,10 +9413,10 @@ }, "type": { "type": "reference", - "id": 479, + "id": 491, "name": "RealtimeClientOptions", "dereferenced": { - "id": 479, + "id": 491, "name": "RealtimeClientOptions", "kind": 4194304, "kindString": "Type alias", @@ -9225,14 +9431,14 @@ "type": { "type": "reflection", "declaration": { - "id": 480, + "id": 492, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 486, + "id": 498, "name": "decode", "kind": 1024, "kindString": "Property", @@ -9254,7 +9460,7 @@ } }, { - "id": 485, + "id": 497, "name": "encode", "kind": 1024, "kindString": "Property", @@ -9276,7 +9482,7 @@ } }, { - "id": 497, + "id": 509, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -9296,7 +9502,7 @@ } }, { - "id": 488, + "id": 500, "name": "headers", "kind": 1024, "kindString": "Property", @@ -9313,7 +9519,7 @@ "type": { "type": "reflection", "declaration": { - "id": 489, + "id": 501, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -9326,14 +9532,14 @@ } ], "indexSignature": { - "id": 490, + "id": 502, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 491, + "id": 503, "name": "key", "kind": 32768, "flags": {}, @@ -9352,7 +9558,7 @@ } }, { - "id": 483, + "id": 495, "name": "heartbeatIntervalMs", "kind": 1024, "kindString": "Property", @@ -9372,7 +9578,7 @@ } }, { - "id": 496, + "id": 508, "name": "log_level", "kind": 1024, "kindString": "Property", @@ -9409,7 +9615,7 @@ } }, { - "id": 484, + "id": 496, "name": "logger", "kind": 1024, "kindString": "Property", @@ -9431,7 +9637,7 @@ } }, { - "id": 492, + "id": 504, "name": "params", "kind": 1024, "kindString": "Property", @@ -9448,7 +9654,7 @@ "type": { "type": "reflection", "declaration": { - "id": 493, + "id": 505, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -9461,14 +9667,14 @@ } ], "indexSignature": { - "id": 494, + "id": 506, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 495, + "id": 507, "name": "key", "kind": 32768, "flags": {}, @@ -9487,7 +9693,7 @@ } }, { - "id": 487, + "id": 499, "name": "reconnectAfterMs", "kind": 1024, "kindString": "Property", @@ -9509,7 +9715,7 @@ } }, { - "id": 482, + "id": 494, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -9529,7 +9735,7 @@ } }, { - "id": 481, + "id": 493, "name": "transport", "kind": 1024, "kindString": "Property", @@ -9554,17 +9760,17 @@ "title": "Properties", "kind": 1024, "children": [ - 486, - 485, + 498, 497, - 488, - 483, + 509, + 500, + 495, + 508, 496, - 484, - 492, - 487, - 482, - 481 + 504, + 499, + 494, + 493 ] } ], @@ -9598,7 +9804,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 69, + "line": 65, "character": 2 } ], @@ -9619,6 +9825,34 @@ }, { "id": 365, + "name": "apiKey", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/RealtimeClient.ts", + "line": 66, + "character": 2 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "intrinsic", + "name": "string" + } + ] + }, + "defaultValue": "null" + }, + { + "id": 366, "name": "channels", "kind": 1024, "kindString": "Property", @@ -9626,7 +9860,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 70, + "line": 67, "character": 2 } ], @@ -9641,7 +9875,7 @@ "defaultValue": "[]" }, { - "id": 386, + "id": 387, "name": "conn", "kind": 1024, "kindString": "Property", @@ -9649,7 +9883,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 85, + "line": 82, "character": 2 } ], @@ -9669,7 +9903,7 @@ "defaultValue": "null" }, { - "id": 384, + "id": 385, "name": "decode", "kind": 1024, "kindString": "Property", @@ -9677,7 +9911,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 83, + "line": 80, "character": 2 } ], @@ -9689,7 +9923,7 @@ } }, { - "id": 383, + "id": 384, "name": "encode", "kind": 1024, "kindString": "Property", @@ -9697,7 +9931,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 82, + "line": 79, "character": 2 } ], @@ -9709,7 +9943,7 @@ } }, { - "id": 366, + "id": 367, "name": "endPoint", "kind": 1024, "kindString": "Property", @@ -9717,7 +9951,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 71, + "line": 68, "character": 2 } ], @@ -9728,7 +9962,7 @@ "defaultValue": "''" }, { - "id": 395, + "id": 396, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -9736,28 +9970,28 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 99, + "line": 96, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 396, + "id": 397, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 397, + "id": 398, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 398, + "id": 399, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -9781,7 +10015,73 @@ } }, { - "id": 399, + "id": 400, + "name": "init", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "qualifiedName": "RequestInit", + "package": "typescript", + "name": "RequestInit" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "qualifiedName": "Response", + "package": "typescript", + "name": "Response" + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + }, + { + "id": 401, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 402, + "name": "input", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "qualifiedName": "Request", + "package": "typescript", + "name": "Request" + }, + { + "type": "reference", + "qualifiedName": "URL", + "package": "typescript", + "name": "URL" + } + ] + } + }, + { + "id": 403, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -9816,7 +10116,7 @@ } }, { - "id": 367, + "id": 368, "name": "headers", "kind": 1024, "kindString": "Property", @@ -9826,27 +10126,27 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 72, + "line": 69, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 368, + "id": 369, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": { - "id": 369, + "id": 370, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 370, + "id": 371, "name": "key", "kind": 32768, "flags": {}, @@ -9866,7 +10166,7 @@ "defaultValue": "DEFAULT_HEADERS" }, { - "id": 377, + "id": 378, "name": "heartbeatIntervalMs", "kind": 1024, "kindString": "Property", @@ -9874,7 +10174,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 76, + "line": 73, "character": 2 } ], @@ -9885,7 +10185,7 @@ "defaultValue": "30000" }, { - "id": 378, + "id": 379, "name": "heartbeatTimer", "kind": 1024, "kindString": "Property", @@ -9893,7 +10193,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 77, + "line": 74, "character": 2 } ], @@ -9906,16 +10206,16 @@ }, { "type": "reference", - "qualifiedName": "global.NodeJS.Timer", + "qualifiedName": "global.NodeJS.Timeout", "package": "@types/node", - "name": "Timer" + "name": "Timeout" } ] }, "defaultValue": "undefined" }, { - "id": 382, + "id": 383, "name": "logger", "kind": 1024, "kindString": "Property", @@ -9923,7 +10223,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 81, + "line": 78, "character": 2 } ], @@ -9936,7 +10236,7 @@ "defaultValue": "noop" }, { - "id": 371, + "id": 372, "name": "params", "kind": 1024, "kindString": "Property", @@ -9946,27 +10246,27 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 73, + "line": 70, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 372, + "id": 373, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": { - "id": 373, + "id": 374, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 374, + "id": 375, "name": "key", "kind": 32768, "flags": {}, @@ -9986,7 +10286,7 @@ "defaultValue": "{}" }, { - "id": 379, + "id": 380, "name": "pendingHeartbeatRef", "kind": 1024, "kindString": "Property", @@ -9994,7 +10294,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 78, + "line": 75, "character": 2 } ], @@ -10014,7 +10314,7 @@ "defaultValue": "null" }, { - "id": 385, + "id": 386, "name": "reconnectAfterMs", "kind": 1024, "kindString": "Property", @@ -10022,7 +10322,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 84, + "line": 81, "character": 2 } ], @@ -10034,7 +10334,7 @@ } }, { - "id": 381, + "id": 382, "name": "reconnectTimer", "kind": 1024, "kindString": "Property", @@ -10042,7 +10342,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 80, + "line": 77, "character": 2 } ], @@ -10052,7 +10352,7 @@ } }, { - "id": 380, + "id": 381, "name": "ref", "kind": 1024, "kindString": "Property", @@ -10060,7 +10360,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 79, + "line": 76, "character": 2 } ], @@ -10071,7 +10371,7 @@ "defaultValue": "0" }, { - "id": 387, + "id": 388, "name": "sendBuffer", "kind": 1024, "kindString": "Property", @@ -10079,7 +10379,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 86, + "line": 83, "character": 2 } ], @@ -10095,7 +10395,7 @@ "defaultValue": "[]" }, { - "id": 388, + "id": 389, "name": "serializer", "kind": 1024, "kindString": "Property", @@ -10103,7 +10403,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 87, + "line": 84, "character": 2 } ], @@ -10114,7 +10414,7 @@ "defaultValue": "..." }, { - "id": 389, + "id": 390, "name": "stateChangeCallbacks", "kind": 1024, "kindString": "Property", @@ -10122,21 +10422,21 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 88, + "line": 85, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 390, + "id": 391, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 392, + "id": 393, "name": "close", "kind": 1024, "kindString": "Property", @@ -10144,30 +10444,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 90, - "character": 4 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - } - }, - { - "id": 393, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/RealtimeClient.ts", - "line": 91, + "line": 87, "character": 4 } ], @@ -10183,14 +10460,14 @@ }, { "id": 394, - "name": "message", + "name": "error", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 92, + "line": 88, "character": 4 } ], @@ -10205,8 +10482,8 @@ } }, { - "id": 391, - "name": "open", + "id": 395, + "name": "message", "kind": 1024, "kindString": "Property", "flags": {}, @@ -10226,6 +10503,29 @@ "name": "Function" } } + }, + { + "id": 392, + "name": "open", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/RealtimeClient.ts", + "line": 86, + "character": 4 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "qualifiedName": "Function", + "package": "typescript", + "name": "Function" + } + } } ], "groups": [ @@ -10233,10 +10533,10 @@ "title": "Properties", "kind": 1024, "children": [ - 392, 393, 394, - 391 + 395, + 392 ] } ] @@ -10245,7 +10545,7 @@ "defaultValue": "..." }, { - "id": 375, + "id": 376, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -10253,7 +10553,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 74, + "line": 71, "character": 2 } ], @@ -10264,7 +10564,7 @@ "defaultValue": "DEFAULT_TIMEOUT" }, { - "id": 376, + "id": 377, "name": "transport", "kind": 1024, "kindString": "Property", @@ -10272,18 +10572,26 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 75, + "line": 72, "character": 2 } ], "type": { - "type": "reference", - "name": "WebSocketLikeConstructor" - }, - "defaultValue": "WebSocketVariant" + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "name": "WebSocketLikeConstructor" + } + ] + } }, { - "id": 422, + "id": 426, "name": "channel", "kind": 2048, "kindString": "Method", @@ -10291,20 +10599,20 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 261, + "line": 274, "character": 2 } ], "signatures": [ { - "id": 423, + "id": 427, "name": "channel", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 424, + "id": 428, "name": "topic", "kind": 32768, "kindString": "Parameter", @@ -10315,7 +10623,7 @@ } }, { - "id": 425, + "id": 429, "name": "params", "kind": 32768, "kindString": "Parameter", @@ -10577,7 +10885,7 @@ ] }, { - "id": 400, + "id": 404, "name": "connect", "kind": 2048, "kindString": "Method", @@ -10585,13 +10893,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 153, + "line": 157, "character": 2 } ], "signatures": [ { - "id": 401, + "id": 405, "name": "connect", "kind": 4096, "kindString": "Call signature", @@ -10607,7 +10915,7 @@ ] }, { - "id": 418, + "id": 422, "name": "connectionState", "kind": 2048, "kindString": "Method", @@ -10615,13 +10923,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 241, + "line": 254, "character": 2 } ], "signatures": [ { - "id": 419, + "id": 423, "name": "connectionState", "kind": 4096, "kindString": "Call signature", @@ -10637,7 +10945,7 @@ ] }, { - "id": 402, + "id": 406, "name": "disconnect", "kind": 2048, "kindString": "Method", @@ -10645,13 +10953,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 182, + "line": 195, "character": 2 } ], "signatures": [ { - "id": 403, + "id": 407, "name": "disconnect", "kind": 4096, "kindString": "Call signature", @@ -10661,7 +10969,7 @@ }, "parameters": [ { - "id": 404, + "id": 408, "name": "code", "kind": 32768, "kindString": "Parameter", @@ -10677,7 +10985,7 @@ } }, { - "id": 405, + "id": 409, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -10701,7 +11009,7 @@ ] }, { - "id": 406, + "id": 410, "name": "getChannels", "kind": 2048, "kindString": "Method", @@ -10709,13 +11017,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 200, + "line": 213, "character": 2 } ], "signatures": [ { - "id": 407, + "id": 411, "name": "getChannels", "kind": 4096, "kindString": "Call signature", @@ -10735,7 +11043,7 @@ ] }, { - "id": 420, + "id": 424, "name": "isConnected", "kind": 2048, "kindString": "Method", @@ -10743,13 +11051,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 257, + "line": 270, "character": 2 } ], "signatures": [ { - "id": 421, + "id": 425, "name": "isConnected", "kind": 4096, "kindString": "Call signature", @@ -10765,7 +11073,7 @@ ] }, { - "id": 413, + "id": 417, "name": "log", "kind": 2048, "kindString": "Method", @@ -10773,13 +11081,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 234, + "line": 247, "character": 2 } ], "signatures": [ { - "id": 414, + "id": 418, "name": "log", "kind": 4096, "kindString": "Call signature", @@ -10790,7 +11098,7 @@ }, "parameters": [ { - "id": 415, + "id": 419, "name": "kind", "kind": 32768, "kindString": "Parameter", @@ -10801,7 +11109,7 @@ } }, { - "id": 416, + "id": 420, "name": "msg", "kind": 32768, "kindString": "Parameter", @@ -10812,7 +11120,7 @@ } }, { - "id": 417, + "id": 421, "name": "data", "kind": 32768, "kindString": "Parameter", @@ -10833,7 +11141,7 @@ ] }, { - "id": 426, + "id": 430, "name": "push", "kind": 2048, "kindString": "Method", @@ -10841,13 +11149,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 275, + "line": 288, "character": 2 } ], "signatures": [ { - "id": 427, + "id": 431, "name": "push", "kind": 4096, "kindString": "Call signature", @@ -10858,17 +11166,17 @@ }, "parameters": [ { - "id": 428, + "id": 432, "name": "data", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 498, + "id": 510, "name": "RealtimeMessage", "dereferenced": { - "id": 498, + "id": 510, "name": "RealtimeMessage", "kind": 4194304, "kindString": "Type alias", @@ -10883,14 +11191,14 @@ "type": { "type": "reflection", "declaration": { - "id": 499, + "id": 511, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 501, + "id": 513, "name": "event", "kind": 1024, "kindString": "Property", @@ -10908,7 +11216,7 @@ } }, { - "id": 504, + "id": 516, "name": "join_ref", "kind": 1024, "kindString": "Property", @@ -10928,7 +11236,7 @@ } }, { - "id": 502, + "id": 514, "name": "payload", "kind": 1024, "kindString": "Property", @@ -10946,7 +11254,7 @@ } }, { - "id": 503, + "id": 515, "name": "ref", "kind": 1024, "kindString": "Property", @@ -10964,7 +11272,7 @@ } }, { - "id": 500, + "id": 512, "name": "topic", "kind": 1024, "kindString": "Property", @@ -10987,11 +11295,11 @@ "title": "Properties", "kind": 1024, "children": [ - 501, - 504, - 502, - 503, - 500 + 513, + 516, + 514, + 515, + 512 ] } ], @@ -11016,7 +11324,7 @@ ] }, { - "id": 411, + "id": 415, "name": "removeAllChannels", "kind": 2048, "kindString": "Method", @@ -11024,13 +11332,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 221, + "line": 234, "character": 8 } ], "signatures": [ { - "id": 412, + "id": 416, "name": "removeAllChannels", "kind": 4096, "kindString": "Call signature", @@ -11045,7 +11353,7 @@ "type": "array", "elementType": { "type": "reference", - "id": 575, + "id": 587, "name": "RealtimeRemoveChannelResponse" } } @@ -11058,7 +11366,7 @@ ] }, { - "id": 408, + "id": 412, "name": "removeChannel", "kind": 2048, "kindString": "Method", @@ -11066,13 +11374,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 208, + "line": 221, "character": 8 } ], "signatures": [ { - "id": 409, + "id": 413, "name": "removeChannel", "kind": 4096, "kindString": "Call signature", @@ -11082,7 +11390,7 @@ }, "parameters": [ { - "id": 410, + "id": 414, "name": "channel", "kind": 32768, "kindString": "Parameter", @@ -11420,49 +11728,50 @@ "children": [ 364, 365, - 386, - 384, - 383, 366, - 395, - 367, - 377, - 378, - 382, - 371, - 379, - 385, - 381, - 380, 387, + 385, + 384, + 367, + 396, + 368, + 378, + 379, + 383, + 372, + 380, + 386, + 382, + 381, 388, 389, - 375, - 376 + 390, + 376, + 377 ] }, { "title": "Methods", "kind": 2048, "children": [ - 422, - 400, - 418, - 402, - 406, - 420, - 413, 426, - 411, - 408, - 429 + 404, + 422, + 406, + 410, + 424, + 417, + 430, + 415, + 412, + 433 ] } ], "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 68, + "line": 64, "character": 21 } ] @@ -12039,7 +12348,7 @@ "type": "reference", "id": 64, "name": "default", - "dereferenced": "[Circular ~.children.5.children.31.signatures.0.parameters.0.type.dereferenced]" + "dereferenced": "[Circular ~.children.5.children.32.signatures.0.parameters.0.type.dereferenced]" } }, { @@ -12192,7 +12501,7 @@ "type": "reference", "id": 64, "name": "default", - "dereferenced": "[Circular ~.children.5.children.31.signatures.0.parameters.0.type.dereferenced]" + "dereferenced": "[Circular ~.children.5.children.32.signatures.0.parameters.0.type.dereferenced]" } }, { @@ -12260,7 +12569,7 @@ ], "type": { "type": "reference", - "id": 566, + "id": 578, "typeArguments": [ { "type": "reflection", @@ -12275,7 +12584,7 @@ ], "name": "RealtimePresenceState", "dereferenced": { - "id": 566, + "id": 578, "name": "RealtimePresenceState", "kind": 4194304, "kindString": "Type alias", @@ -12289,7 +12598,7 @@ ], "typeParameter": [ { - "id": 574, + "id": 586, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -12297,7 +12606,7 @@ "type": { "type": "reflection", "declaration": { - "id": 570, + "id": 582, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -12310,14 +12619,14 @@ } ], "indexSignature": { - "id": 571, + "id": 583, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 572, + "id": 584, "name": "key", "kind": 32768, "flags": {}, @@ -12337,7 +12646,7 @@ "default": { "type": "reflection", "declaration": { - "id": 573, + "id": 585, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -12356,7 +12665,7 @@ "type": { "type": "reflection", "declaration": { - "id": 567, + "id": 579, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -12369,14 +12678,14 @@ } ], "indexSignature": { - "id": 568, + "id": 580, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 569, + "id": 581, "name": "key", "kind": 32768, "flags": {}, @@ -12393,7 +12702,7 @@ "typeArguments": [ { "type": "reference", - "id": 574, + "id": 586, "name": "T" } ], @@ -12511,49 +12820,50 @@ "children": [ 364, 365, - 386, - 384, - 383, 366, - 395, - 367, - 377, - 378, - 382, - 371, - 379, - 385, - 381, - 380, 387, + 385, + 384, + 367, + 396, + 368, + 378, + 379, + 383, + 372, + 380, + 386, + 382, + 381, 388, 389, - 375, - 376 + 390, + 376, + 377 ] }, { "title": "Methods", "kind": 2048, "children": [ - 422, - 400, - 418, - 402, - 406, - 420, - 413, 426, - 411, - 408, - 429 + 404, + 422, + 406, + 410, + 424, + 417, + 430, + 415, + 412, + 433 ] } ], "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 68, + "line": 64, "character": 21 } ] @@ -12983,7 +13293,7 @@ "flags": {}, "type": { "type": "reference", - "id": 546, + "id": 558, "typeArguments": [ { "type": "reference", @@ -13147,7 +13457,7 @@ "flags": {}, "type": { "type": "reference", - "id": 556, + "id": 568, "typeArguments": [ { "type": "reference", @@ -13243,7 +13553,7 @@ "flags": {}, "type": { "type": "reference", - "id": 505, + "id": 517, "typeArguments": [ { "type": "literal", @@ -13252,7 +13562,7 @@ ], "name": "RealtimePostgresChangesFilter", "dereferenced": { - "id": 505, + "id": 517, "name": "RealtimePostgresChangesFilter", "kind": 4194304, "kindString": "Type alias", @@ -13266,7 +13576,7 @@ ], "typeParameter": [ { - "id": 511, + "id": 523, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -13278,7 +13588,7 @@ [ { "type": "reference", - "id": 580, + "id": 592, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT" }, "" @@ -13290,14 +13600,14 @@ "type": { "type": "reflection", "declaration": { - "id": 506, + "id": 518, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 507, + "id": 519, "name": "event", "kind": 1024, "kindString": "Property", @@ -13314,13 +13624,13 @@ ], "type": { "type": "reference", - "id": 511, + "id": 523, "name": "T", "dereferenced": {} } }, { - "id": 510, + "id": 522, "name": "filter", "kind": 1024, "kindString": "Property", @@ -13343,7 +13653,7 @@ } }, { - "id": 508, + "id": 520, "name": "schema", "kind": 1024, "kindString": "Property", @@ -13364,7 +13674,7 @@ } }, { - "id": 509, + "id": 521, "name": "table", "kind": 1024, "kindString": "Property", @@ -13392,10 +13702,10 @@ "title": "Properties", "kind": 1024, "children": [ - 507, - 510, - 508, - 509 + 519, + 522, + 520, + 521 ] } ], @@ -13441,7 +13751,7 @@ "flags": {}, "type": { "type": "reference", - "id": 512, + "id": 524, "typeArguments": [ { "type": "reference", @@ -13537,7 +13847,7 @@ "flags": {}, "type": { "type": "reference", - "id": 505, + "id": 517, "typeArguments": [ { "type": "literal", @@ -13546,7 +13856,7 @@ ], "name": "RealtimePostgresChangesFilter", "dereferenced": { - "id": 505, + "id": 517, "name": "RealtimePostgresChangesFilter", "kind": 4194304, "kindString": "Type alias", @@ -13560,7 +13870,7 @@ ], "typeParameter": [ { - "id": 511, + "id": 523, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -13572,7 +13882,7 @@ [ { "type": "reference", - "id": 580, + "id": 592, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT" }, "" @@ -13584,14 +13894,14 @@ "type": { "type": "reflection", "declaration": { - "id": 506, + "id": 518, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 507, + "id": 519, "name": "event", "kind": 1024, "kindString": "Property", @@ -13608,13 +13918,13 @@ ], "type": { "type": "reference", - "id": 511, + "id": 523, "name": "T", "dereferenced": {} } }, { - "id": 510, + "id": 522, "name": "filter", "kind": 1024, "kindString": "Property", @@ -13637,7 +13947,7 @@ } }, { - "id": 508, + "id": 520, "name": "schema", "kind": 1024, "kindString": "Property", @@ -13658,7 +13968,7 @@ } }, { - "id": 509, + "id": 521, "name": "table", "kind": 1024, "kindString": "Property", @@ -13686,10 +13996,10 @@ "title": "Properties", "kind": 1024, "children": [ - 507, - 510, - 508, - 509 + 519, + 522, + 520, + 521 ] } ], @@ -13735,7 +14045,7 @@ "flags": {}, "type": { "type": "reference", - "id": 517, + "id": 529, "typeArguments": [ { "type": "reference", @@ -13831,7 +14141,7 @@ "flags": {}, "type": { "type": "reference", - "id": 505, + "id": 517, "typeArguments": [ { "type": "literal", @@ -13840,7 +14150,7 @@ ], "name": "RealtimePostgresChangesFilter", "dereferenced": { - "id": 505, + "id": 517, "name": "RealtimePostgresChangesFilter", "kind": 4194304, "kindString": "Type alias", @@ -13854,7 +14164,7 @@ ], "typeParameter": [ { - "id": 511, + "id": 523, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -13866,7 +14176,7 @@ [ { "type": "reference", - "id": 580, + "id": 592, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT" }, "" @@ -13878,14 +14188,14 @@ "type": { "type": "reflection", "declaration": { - "id": 506, + "id": 518, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 507, + "id": 519, "name": "event", "kind": 1024, "kindString": "Property", @@ -13902,13 +14212,13 @@ ], "type": { "type": "reference", - "id": 511, + "id": 523, "name": "T", "dereferenced": {} } }, { - "id": 510, + "id": 522, "name": "filter", "kind": 1024, "kindString": "Property", @@ -13931,7 +14241,7 @@ } }, { - "id": 508, + "id": 520, "name": "schema", "kind": 1024, "kindString": "Property", @@ -13952,7 +14262,7 @@ } }, { - "id": 509, + "id": 521, "name": "table", "kind": 1024, "kindString": "Property", @@ -13980,10 +14290,10 @@ "title": "Properties", "kind": 1024, "children": [ - 507, - 510, - 508, - 509 + 519, + 522, + 520, + 521 ] } ], @@ -14029,7 +14339,7 @@ "flags": {}, "type": { "type": "reference", - "id": 527, + "id": 539, "typeArguments": [ { "type": "reference", @@ -14125,7 +14435,7 @@ "flags": {}, "type": { "type": "reference", - "id": 505, + "id": 517, "typeArguments": [ { "type": "literal", @@ -14134,7 +14444,7 @@ ], "name": "RealtimePostgresChangesFilter", "dereferenced": { - "id": 505, + "id": 517, "name": "RealtimePostgresChangesFilter", "kind": 4194304, "kindString": "Type alias", @@ -14148,7 +14458,7 @@ ], "typeParameter": [ { - "id": 511, + "id": 523, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -14160,7 +14470,7 @@ [ { "type": "reference", - "id": 580, + "id": 592, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT" }, "" @@ -14172,14 +14482,14 @@ "type": { "type": "reflection", "declaration": { - "id": 506, + "id": 518, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 507, + "id": 519, "name": "event", "kind": 1024, "kindString": "Property", @@ -14196,13 +14506,13 @@ ], "type": { "type": "reference", - "id": 511, + "id": 523, "name": "T", "dereferenced": {} } }, { - "id": 510, + "id": 522, "name": "filter", "kind": 1024, "kindString": "Property", @@ -14225,7 +14535,7 @@ } }, { - "id": 508, + "id": 520, "name": "schema", "kind": 1024, "kindString": "Property", @@ -14246,7 +14556,7 @@ } }, { - "id": 509, + "id": 521, "name": "table", "kind": 1024, "kindString": "Property", @@ -14274,10 +14584,10 @@ "title": "Properties", "kind": 1024, "children": [ - 507, - 510, - 508, - 509 + 519, + 522, + 520, + 521 ] } ], @@ -14323,7 +14633,7 @@ "flags": {}, "type": { "type": "reference", - "id": 536, + "id": 548, "typeArguments": [ { "type": "reference", @@ -14860,7 +15170,7 @@ ], "type": { "type": "reference", - "id": 566, + "id": 578, "typeArguments": [ { "type": "reference", @@ -15607,7 +15917,7 @@ "typeArguments": [ { "type": "reference", - "id": 575, + "id": 587, "name": "RealtimeRemoveChannelResponse" } ], @@ -15619,7 +15929,7 @@ ] }, { - "id": 429, + "id": 433, "name": "setAuth", "kind": 2048, "kindString": "Method", @@ -15627,13 +15937,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 295, + "line": 308, "character": 2 } ], "signatures": [ { - "id": 430, + "id": 434, "name": "setAuth", "kind": 4096, "kindString": "Call signature", @@ -15643,7 +15953,7 @@ }, "parameters": [ { - "id": 431, + "id": 435, "name": "token", "kind": 32768, "kindString": "Parameter", @@ -15688,49 +15998,50 @@ "children": [ 364, 365, - 386, - 384, - 383, 366, - 395, - 367, - 377, - 378, - 382, - 371, - 379, - 385, - 381, - 380, 387, + 385, + 384, + 367, + 396, + 368, + 378, + 379, + 383, + 372, + 380, + 386, + 382, + 381, 388, 389, - 375, - 376 + 390, + 376, + 377 ] }, { "title": "Methods", "kind": 2048, "children": [ - 422, - 400, - 418, - 402, - 406, - 420, - 413, 426, - 411, - 408, - 429 + 404, + 422, + 406, + 410, + 424, + 417, + 430, + 415, + 412, + 433 ] } ], "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 68, + "line": 64, "character": 21 } ] @@ -16100,7 +16411,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 115, + "line": 112, "character": 2 } ], @@ -16139,10 +16450,10 @@ }, "type": { "type": "reference", - "id": 479, + "id": 491, "name": "RealtimeClientOptions", "dereferenced": { - "id": 479, + "id": 491, "name": "RealtimeClientOptions", "kind": 4194304, "kindString": "Type alias", @@ -16157,14 +16468,14 @@ "type": { "type": "reflection", "declaration": { - "id": 480, + "id": 492, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 486, + "id": 498, "name": "decode", "kind": 1024, "kindString": "Property", @@ -16186,7 +16497,7 @@ } }, { - "id": 485, + "id": 497, "name": "encode", "kind": 1024, "kindString": "Property", @@ -16208,7 +16519,7 @@ } }, { - "id": 497, + "id": 509, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -16228,7 +16539,7 @@ } }, { - "id": 488, + "id": 500, "name": "headers", "kind": 1024, "kindString": "Property", @@ -16245,7 +16556,7 @@ "type": { "type": "reflection", "declaration": { - "id": 489, + "id": 501, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -16258,14 +16569,14 @@ } ], "indexSignature": { - "id": 490, + "id": 502, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 491, + "id": 503, "name": "key", "kind": 32768, "flags": {}, @@ -16284,7 +16595,7 @@ } }, { - "id": 483, + "id": 495, "name": "heartbeatIntervalMs", "kind": 1024, "kindString": "Property", @@ -16304,7 +16615,7 @@ } }, { - "id": 496, + "id": 508, "name": "log_level", "kind": 1024, "kindString": "Property", @@ -16341,7 +16652,7 @@ } }, { - "id": 484, + "id": 496, "name": "logger", "kind": 1024, "kindString": "Property", @@ -16363,7 +16674,7 @@ } }, { - "id": 492, + "id": 504, "name": "params", "kind": 1024, "kindString": "Property", @@ -16380,7 +16691,7 @@ "type": { "type": "reflection", "declaration": { - "id": 493, + "id": 505, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -16393,14 +16704,14 @@ } ], "indexSignature": { - "id": 494, + "id": 506, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 495, + "id": 507, "name": "key", "kind": 32768, "flags": {}, @@ -16419,7 +16730,7 @@ } }, { - "id": 487, + "id": 499, "name": "reconnectAfterMs", "kind": 1024, "kindString": "Property", @@ -16441,7 +16752,7 @@ } }, { - "id": 482, + "id": 494, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -16461,7 +16772,7 @@ } }, { - "id": 481, + "id": 493, "name": "transport", "kind": 1024, "kindString": "Property", @@ -16486,17 +16797,17 @@ "title": "Properties", "kind": 1024, "children": [ - 486, - 485, + 498, 497, - 488, - 483, + 509, + 500, + 495, + 508, 496, - 484, - 492, - 487, - 482, - 481 + 504, + 499, + 494, + 493 ] } ], @@ -16530,7 +16841,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 69, + "line": 65, "character": 2 } ], @@ -16551,6 +16862,34 @@ }, { "id": 365, + "name": "apiKey", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/RealtimeClient.ts", + "line": 66, + "character": 2 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "intrinsic", + "name": "string" + } + ] + }, + "defaultValue": "null" + }, + { + "id": 366, "name": "channels", "kind": 1024, "kindString": "Property", @@ -16558,7 +16897,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 70, + "line": 67, "character": 2 } ], @@ -16573,7 +16912,7 @@ "defaultValue": "[]" }, { - "id": 386, + "id": 387, "name": "conn", "kind": 1024, "kindString": "Property", @@ -16581,7 +16920,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 85, + "line": 82, "character": 2 } ], @@ -16601,7 +16940,7 @@ "defaultValue": "null" }, { - "id": 384, + "id": 385, "name": "decode", "kind": 1024, "kindString": "Property", @@ -16609,7 +16948,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 83, + "line": 80, "character": 2 } ], @@ -16621,7 +16960,7 @@ } }, { - "id": 383, + "id": 384, "name": "encode", "kind": 1024, "kindString": "Property", @@ -16629,7 +16968,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 82, + "line": 79, "character": 2 } ], @@ -16641,7 +16980,7 @@ } }, { - "id": 366, + "id": 367, "name": "endPoint", "kind": 1024, "kindString": "Property", @@ -16649,7 +16988,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 71, + "line": 68, "character": 2 } ], @@ -16660,7 +16999,7 @@ "defaultValue": "''" }, { - "id": 395, + "id": 396, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -16668,28 +17007,28 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 99, + "line": 96, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 396, + "id": 397, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 397, + "id": 398, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 398, + "id": 399, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -16713,7 +17052,73 @@ } }, { - "id": 399, + "id": 400, + "name": "init", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "qualifiedName": "RequestInit", + "package": "typescript", + "name": "RequestInit" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "qualifiedName": "Response", + "package": "typescript", + "name": "Response" + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + }, + { + "id": 401, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 402, + "name": "input", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "qualifiedName": "Request", + "package": "typescript", + "name": "Request" + }, + { + "type": "reference", + "qualifiedName": "URL", + "package": "typescript", + "name": "URL" + } + ] + } + }, + { + "id": 403, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -16748,7 +17153,7 @@ } }, { - "id": 367, + "id": 368, "name": "headers", "kind": 1024, "kindString": "Property", @@ -16758,27 +17163,27 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 72, + "line": 69, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 368, + "id": 369, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": { - "id": 369, + "id": 370, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 370, + "id": 371, "name": "key", "kind": 32768, "flags": {}, @@ -16798,7 +17203,7 @@ "defaultValue": "DEFAULT_HEADERS" }, { - "id": 377, + "id": 378, "name": "heartbeatIntervalMs", "kind": 1024, "kindString": "Property", @@ -16806,7 +17211,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 76, + "line": 73, "character": 2 } ], @@ -16817,7 +17222,7 @@ "defaultValue": "30000" }, { - "id": 378, + "id": 379, "name": "heartbeatTimer", "kind": 1024, "kindString": "Property", @@ -16825,7 +17230,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 77, + "line": 74, "character": 2 } ], @@ -16838,16 +17243,16 @@ }, { "type": "reference", - "qualifiedName": "global.NodeJS.Timer", + "qualifiedName": "global.NodeJS.Timeout", "package": "@types/node", - "name": "Timer" + "name": "Timeout" } ] }, "defaultValue": "undefined" }, { - "id": 382, + "id": 383, "name": "logger", "kind": 1024, "kindString": "Property", @@ -16855,7 +17260,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 81, + "line": 78, "character": 2 } ], @@ -16868,7 +17273,7 @@ "defaultValue": "noop" }, { - "id": 371, + "id": 372, "name": "params", "kind": 1024, "kindString": "Property", @@ -16878,27 +17283,27 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 73, + "line": 70, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 372, + "id": 373, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": { - "id": 373, + "id": 374, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 374, + "id": 375, "name": "key", "kind": 32768, "flags": {}, @@ -16918,7 +17323,7 @@ "defaultValue": "{}" }, { - "id": 379, + "id": 380, "name": "pendingHeartbeatRef", "kind": 1024, "kindString": "Property", @@ -16926,7 +17331,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 78, + "line": 75, "character": 2 } ], @@ -16946,7 +17351,7 @@ "defaultValue": "null" }, { - "id": 385, + "id": 386, "name": "reconnectAfterMs", "kind": 1024, "kindString": "Property", @@ -16954,7 +17359,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 84, + "line": 81, "character": 2 } ], @@ -16966,7 +17371,7 @@ } }, { - "id": 381, + "id": 382, "name": "reconnectTimer", "kind": 1024, "kindString": "Property", @@ -16974,7 +17379,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 80, + "line": 77, "character": 2 } ], @@ -16984,7 +17389,7 @@ } }, { - "id": 380, + "id": 381, "name": "ref", "kind": 1024, "kindString": "Property", @@ -16992,7 +17397,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 79, + "line": 76, "character": 2 } ], @@ -17003,7 +17408,7 @@ "defaultValue": "0" }, { - "id": 387, + "id": 388, "name": "sendBuffer", "kind": 1024, "kindString": "Property", @@ -17011,7 +17416,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 86, + "line": 83, "character": 2 } ], @@ -17027,7 +17432,7 @@ "defaultValue": "[]" }, { - "id": 388, + "id": 389, "name": "serializer", "kind": 1024, "kindString": "Property", @@ -17035,7 +17440,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 87, + "line": 84, "character": 2 } ], @@ -17046,7 +17451,7 @@ "defaultValue": "..." }, { - "id": 389, + "id": 390, "name": "stateChangeCallbacks", "kind": 1024, "kindString": "Property", @@ -17054,21 +17459,21 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 88, + "line": 85, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 390, + "id": 391, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 392, + "id": 393, "name": "close", "kind": 1024, "kindString": "Property", @@ -17076,30 +17481,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 90, - "character": 4 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - } - }, - { - "id": 393, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/RealtimeClient.ts", - "line": 91, + "line": 87, "character": 4 } ], @@ -17115,14 +17497,14 @@ }, { "id": 394, - "name": "message", + "name": "error", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 92, + "line": 88, "character": 4 } ], @@ -17137,8 +17519,8 @@ } }, { - "id": 391, - "name": "open", + "id": 395, + "name": "message", "kind": 1024, "kindString": "Property", "flags": {}, @@ -17158,6 +17540,29 @@ "name": "Function" } } + }, + { + "id": 392, + "name": "open", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/RealtimeClient.ts", + "line": 86, + "character": 4 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "qualifiedName": "Function", + "package": "typescript", + "name": "Function" + } + } } ], "groups": [ @@ -17165,10 +17570,10 @@ "title": "Properties", "kind": 1024, "children": [ - 392, 393, 394, - 391 + 395, + 392 ] } ] @@ -17177,7 +17582,7 @@ "defaultValue": "..." }, { - "id": 375, + "id": 376, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -17185,7 +17590,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 74, + "line": 71, "character": 2 } ], @@ -17196,7 +17601,7 @@ "defaultValue": "DEFAULT_TIMEOUT" }, { - "id": 376, + "id": 377, "name": "transport", "kind": 1024, "kindString": "Property", @@ -17204,18 +17609,26 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 75, + "line": 72, "character": 2 } ], "type": { - "type": "reference", - "name": "WebSocketLikeConstructor" - }, - "defaultValue": "WebSocketVariant" + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "name": "WebSocketLikeConstructor" + } + ] + } }, { - "id": 422, + "id": 426, "name": "channel", "kind": 2048, "kindString": "Method", @@ -17223,20 +17636,20 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 261, + "line": 274, "character": 2 } ], "signatures": [ { - "id": 423, + "id": 427, "name": "channel", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 424, + "id": 428, "name": "topic", "kind": 32768, "kindString": "Parameter", @@ -17247,7 +17660,7 @@ } }, { - "id": 425, + "id": 429, "name": "params", "kind": 32768, "kindString": "Parameter", @@ -17509,7 +17922,7 @@ ] }, { - "id": 400, + "id": 404, "name": "connect", "kind": 2048, "kindString": "Method", @@ -17517,13 +17930,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 153, + "line": 157, "character": 2 } ], "signatures": [ { - "id": 401, + "id": 405, "name": "connect", "kind": 4096, "kindString": "Call signature", @@ -17539,7 +17952,7 @@ ] }, { - "id": 418, + "id": 422, "name": "connectionState", "kind": 2048, "kindString": "Method", @@ -17547,13 +17960,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 241, + "line": 254, "character": 2 } ], "signatures": [ { - "id": 419, + "id": 423, "name": "connectionState", "kind": 4096, "kindString": "Call signature", @@ -17569,7 +17982,7 @@ ] }, { - "id": 402, + "id": 406, "name": "disconnect", "kind": 2048, "kindString": "Method", @@ -17577,13 +17990,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 182, + "line": 195, "character": 2 } ], "signatures": [ { - "id": 403, + "id": 407, "name": "disconnect", "kind": 4096, "kindString": "Call signature", @@ -17593,7 +18006,7 @@ }, "parameters": [ { - "id": 404, + "id": 408, "name": "code", "kind": 32768, "kindString": "Parameter", @@ -17609,7 +18022,7 @@ } }, { - "id": 405, + "id": 409, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -17633,7 +18046,7 @@ ] }, { - "id": 406, + "id": 410, "name": "getChannels", "kind": 2048, "kindString": "Method", @@ -17641,13 +18054,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 200, + "line": 213, "character": 2 } ], "signatures": [ { - "id": 407, + "id": 411, "name": "getChannels", "kind": 4096, "kindString": "Call signature", @@ -17667,7 +18080,7 @@ ] }, { - "id": 420, + "id": 424, "name": "isConnected", "kind": 2048, "kindString": "Method", @@ -17675,13 +18088,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 257, + "line": 270, "character": 2 } ], "signatures": [ { - "id": 421, + "id": 425, "name": "isConnected", "kind": 4096, "kindString": "Call signature", @@ -17697,7 +18110,7 @@ ] }, { - "id": 413, + "id": 417, "name": "log", "kind": 2048, "kindString": "Method", @@ -17705,13 +18118,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 234, + "line": 247, "character": 2 } ], "signatures": [ { - "id": 414, + "id": 418, "name": "log", "kind": 4096, "kindString": "Call signature", @@ -17722,7 +18135,7 @@ }, "parameters": [ { - "id": 415, + "id": 419, "name": "kind", "kind": 32768, "kindString": "Parameter", @@ -17733,7 +18146,7 @@ } }, { - "id": 416, + "id": 420, "name": "msg", "kind": 32768, "kindString": "Parameter", @@ -17744,7 +18157,7 @@ } }, { - "id": 417, + "id": 421, "name": "data", "kind": 32768, "kindString": "Parameter", @@ -17765,7 +18178,7 @@ ] }, { - "id": 426, + "id": 430, "name": "push", "kind": 2048, "kindString": "Method", @@ -17773,13 +18186,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 275, + "line": 288, "character": 2 } ], "signatures": [ { - "id": 427, + "id": 431, "name": "push", "kind": 4096, "kindString": "Call signature", @@ -17790,17 +18203,17 @@ }, "parameters": [ { - "id": 428, + "id": 432, "name": "data", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 498, + "id": 510, "name": "RealtimeMessage", "dereferenced": { - "id": 498, + "id": 510, "name": "RealtimeMessage", "kind": 4194304, "kindString": "Type alias", @@ -17815,14 +18228,14 @@ "type": { "type": "reflection", "declaration": { - "id": 499, + "id": 511, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 501, + "id": 513, "name": "event", "kind": 1024, "kindString": "Property", @@ -17840,7 +18253,7 @@ } }, { - "id": 504, + "id": 516, "name": "join_ref", "kind": 1024, "kindString": "Property", @@ -17860,7 +18273,7 @@ } }, { - "id": 502, + "id": 514, "name": "payload", "kind": 1024, "kindString": "Property", @@ -17878,7 +18291,7 @@ } }, { - "id": 503, + "id": 515, "name": "ref", "kind": 1024, "kindString": "Property", @@ -17896,7 +18309,7 @@ } }, { - "id": 500, + "id": 512, "name": "topic", "kind": 1024, "kindString": "Property", @@ -17919,11 +18332,11 @@ "title": "Properties", "kind": 1024, "children": [ - 501, - 504, - 502, - 503, - 500 + 513, + 516, + 514, + 515, + 512 ] } ], @@ -17948,7 +18361,7 @@ ] }, { - "id": 411, + "id": 415, "name": "removeAllChannels", "kind": 2048, "kindString": "Method", @@ -17956,13 +18369,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 221, + "line": 234, "character": 8 } ], "signatures": [ { - "id": 412, + "id": 416, "name": "removeAllChannels", "kind": 4096, "kindString": "Call signature", @@ -17977,7 +18390,7 @@ "type": "array", "elementType": { "type": "reference", - "id": 575, + "id": 587, "name": "RealtimeRemoveChannelResponse" } } @@ -17990,7 +18403,7 @@ ] }, { - "id": 408, + "id": 412, "name": "removeChannel", "kind": 2048, "kindString": "Method", @@ -17998,13 +18411,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 208, + "line": 221, "character": 8 } ], "signatures": [ { - "id": 409, + "id": 413, "name": "removeChannel", "kind": 4096, "kindString": "Call signature", @@ -18014,7 +18427,7 @@ }, "parameters": [ { - "id": 410, + "id": 414, "name": "channel", "kind": 32768, "kindString": "Parameter", @@ -18035,7 +18448,7 @@ "typeArguments": [ { "type": "reference", - "id": 575, + "id": 587, "name": "RealtimeRemoveChannelResponse" } ], @@ -18047,7 +18460,7 @@ ] }, { - "id": 429, + "id": 433, "name": "setAuth", "kind": 2048, "kindString": "Method", @@ -18055,13 +18468,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 295, + "line": 308, "character": 2 } ], "signatures": [ { - "id": 430, + "id": 434, "name": "setAuth", "kind": 4096, "kindString": "Call signature", @@ -18071,7 +18484,7 @@ }, "parameters": [ { - "id": 431, + "id": 435, "name": "token", "kind": 32768, "kindString": "Parameter", @@ -18116,49 +18529,50 @@ "children": [ 364, 365, - 386, - 384, - 383, 366, - 395, - 367, - 377, - 378, - 382, - 371, - 379, - 385, - 381, - 380, 387, + 385, + 384, + 367, + 396, + 368, + 378, + 379, + 383, + 372, + 380, + 386, + 382, + 381, 388, 389, - 375, - 376 + 390, + 376, + 377 ] }, { "title": "Methods", "kind": 2048, "children": [ - 422, - 400, - 418, - 402, - 406, - 420, - 413, 426, - 411, - 408, - 429 + 404, + 422, + 406, + 410, + 424, + 417, + 430, + 415, + 412, + 433 ] } ], "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 68, + "line": 64, "character": 21 } ] @@ -18796,7 +19210,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 115, + "line": 112, "character": 2 } ], @@ -18835,10 +19249,10 @@ }, "type": { "type": "reference", - "id": 479, + "id": 491, "name": "RealtimeClientOptions", "dereferenced": { - "id": 479, + "id": 491, "name": "RealtimeClientOptions", "kind": 4194304, "kindString": "Type alias", @@ -18853,14 +19267,14 @@ "type": { "type": "reflection", "declaration": { - "id": 480, + "id": 492, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 486, + "id": 498, "name": "decode", "kind": 1024, "kindString": "Property", @@ -18882,7 +19296,7 @@ } }, { - "id": 485, + "id": 497, "name": "encode", "kind": 1024, "kindString": "Property", @@ -18904,7 +19318,7 @@ } }, { - "id": 497, + "id": 509, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -18924,7 +19338,7 @@ } }, { - "id": 488, + "id": 500, "name": "headers", "kind": 1024, "kindString": "Property", @@ -18941,7 +19355,7 @@ "type": { "type": "reflection", "declaration": { - "id": 489, + "id": 501, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -18954,14 +19368,14 @@ } ], "indexSignature": { - "id": 490, + "id": 502, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 491, + "id": 503, "name": "key", "kind": 32768, "flags": {}, @@ -18980,7 +19394,7 @@ } }, { - "id": 483, + "id": 495, "name": "heartbeatIntervalMs", "kind": 1024, "kindString": "Property", @@ -19000,7 +19414,7 @@ } }, { - "id": 496, + "id": 508, "name": "log_level", "kind": 1024, "kindString": "Property", @@ -19037,7 +19451,7 @@ } }, { - "id": 484, + "id": 496, "name": "logger", "kind": 1024, "kindString": "Property", @@ -19059,7 +19473,7 @@ } }, { - "id": 492, + "id": 504, "name": "params", "kind": 1024, "kindString": "Property", @@ -19076,7 +19490,7 @@ "type": { "type": "reflection", "declaration": { - "id": 493, + "id": 505, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -19089,14 +19503,14 @@ } ], "indexSignature": { - "id": 494, + "id": 506, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 495, + "id": 507, "name": "key", "kind": 32768, "flags": {}, @@ -19115,7 +19529,7 @@ } }, { - "id": 487, + "id": 499, "name": "reconnectAfterMs", "kind": 1024, "kindString": "Property", @@ -19137,7 +19551,7 @@ } }, { - "id": 482, + "id": 494, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -19157,7 +19571,7 @@ } }, { - "id": 481, + "id": 493, "name": "transport", "kind": 1024, "kindString": "Property", @@ -19182,17 +19596,17 @@ "title": "Properties", "kind": 1024, "children": [ - 486, - 485, + 498, 497, - 488, - 483, + 509, + 500, + 495, + 508, 496, - 484, - 492, - 487, - 482, - 481 + 504, + 499, + 494, + 493 ] } ], @@ -19226,7 +19640,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 69, + "line": 65, "character": 2 } ], @@ -19247,6 +19661,34 @@ }, { "id": 365, + "name": "apiKey", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/RealtimeClient.ts", + "line": 66, + "character": 2 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "intrinsic", + "name": "string" + } + ] + }, + "defaultValue": "null" + }, + { + "id": 366, "name": "channels", "kind": 1024, "kindString": "Property", @@ -19254,7 +19696,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 70, + "line": 67, "character": 2 } ], @@ -19269,7 +19711,7 @@ "defaultValue": "[]" }, { - "id": 386, + "id": 387, "name": "conn", "kind": 1024, "kindString": "Property", @@ -19277,7 +19719,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 85, + "line": 82, "character": 2 } ], @@ -19297,7 +19739,7 @@ "defaultValue": "null" }, { - "id": 384, + "id": 385, "name": "decode", "kind": 1024, "kindString": "Property", @@ -19305,7 +19747,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 83, + "line": 80, "character": 2 } ], @@ -19317,7 +19759,7 @@ } }, { - "id": 383, + "id": 384, "name": "encode", "kind": 1024, "kindString": "Property", @@ -19325,7 +19767,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 82, + "line": 79, "character": 2 } ], @@ -19337,7 +19779,7 @@ } }, { - "id": 366, + "id": 367, "name": "endPoint", "kind": 1024, "kindString": "Property", @@ -19345,7 +19787,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 71, + "line": 68, "character": 2 } ], @@ -19356,7 +19798,7 @@ "defaultValue": "''" }, { - "id": 395, + "id": 396, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -19364,28 +19806,28 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 99, + "line": 96, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 396, + "id": 397, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 397, + "id": 398, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 398, + "id": 399, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -19409,7 +19851,73 @@ } }, { - "id": 399, + "id": 400, + "name": "init", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "qualifiedName": "RequestInit", + "package": "typescript", + "name": "RequestInit" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "qualifiedName": "Response", + "package": "typescript", + "name": "Response" + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + }, + { + "id": 401, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 402, + "name": "input", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "qualifiedName": "Request", + "package": "typescript", + "name": "Request" + }, + { + "type": "reference", + "qualifiedName": "URL", + "package": "typescript", + "name": "URL" + } + ] + } + }, + { + "id": 403, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -19444,7 +19952,7 @@ } }, { - "id": 367, + "id": 368, "name": "headers", "kind": 1024, "kindString": "Property", @@ -19454,27 +19962,27 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 72, + "line": 69, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 368, + "id": 369, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": { - "id": 369, + "id": 370, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 370, + "id": 371, "name": "key", "kind": 32768, "flags": {}, @@ -19494,7 +20002,7 @@ "defaultValue": "DEFAULT_HEADERS" }, { - "id": 377, + "id": 378, "name": "heartbeatIntervalMs", "kind": 1024, "kindString": "Property", @@ -19502,7 +20010,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 76, + "line": 73, "character": 2 } ], @@ -19513,7 +20021,7 @@ "defaultValue": "30000" }, { - "id": 378, + "id": 379, "name": "heartbeatTimer", "kind": 1024, "kindString": "Property", @@ -19521,7 +20029,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 77, + "line": 74, "character": 2 } ], @@ -19534,16 +20042,16 @@ }, { "type": "reference", - "qualifiedName": "global.NodeJS.Timer", + "qualifiedName": "global.NodeJS.Timeout", "package": "@types/node", - "name": "Timer" + "name": "Timeout" } ] }, "defaultValue": "undefined" }, { - "id": 382, + "id": 383, "name": "logger", "kind": 1024, "kindString": "Property", @@ -19551,7 +20059,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 81, + "line": 78, "character": 2 } ], @@ -19564,7 +20072,7 @@ "defaultValue": "noop" }, { - "id": 371, + "id": 372, "name": "params", "kind": 1024, "kindString": "Property", @@ -19574,27 +20082,27 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 73, + "line": 70, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 372, + "id": 373, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": { - "id": 373, + "id": 374, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 374, + "id": 375, "name": "key", "kind": 32768, "flags": {}, @@ -19614,7 +20122,7 @@ "defaultValue": "{}" }, { - "id": 379, + "id": 380, "name": "pendingHeartbeatRef", "kind": 1024, "kindString": "Property", @@ -19622,7 +20130,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 78, + "line": 75, "character": 2 } ], @@ -19642,7 +20150,7 @@ "defaultValue": "null" }, { - "id": 385, + "id": 386, "name": "reconnectAfterMs", "kind": 1024, "kindString": "Property", @@ -19650,7 +20158,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 84, + "line": 81, "character": 2 } ], @@ -19662,7 +20170,7 @@ } }, { - "id": 381, + "id": 382, "name": "reconnectTimer", "kind": 1024, "kindString": "Property", @@ -19670,7 +20178,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 80, + "line": 77, "character": 2 } ], @@ -19680,7 +20188,7 @@ } }, { - "id": 380, + "id": 381, "name": "ref", "kind": 1024, "kindString": "Property", @@ -19688,7 +20196,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 79, + "line": 76, "character": 2 } ], @@ -19699,7 +20207,7 @@ "defaultValue": "0" }, { - "id": 387, + "id": 388, "name": "sendBuffer", "kind": 1024, "kindString": "Property", @@ -19707,7 +20215,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 86, + "line": 83, "character": 2 } ], @@ -19723,7 +20231,7 @@ "defaultValue": "[]" }, { - "id": 388, + "id": 389, "name": "serializer", "kind": 1024, "kindString": "Property", @@ -19731,7 +20239,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 87, + "line": 84, "character": 2 } ], @@ -19742,7 +20250,7 @@ "defaultValue": "..." }, { - "id": 389, + "id": 390, "name": "stateChangeCallbacks", "kind": 1024, "kindString": "Property", @@ -19750,21 +20258,21 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 88, + "line": 85, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 390, + "id": 391, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 392, + "id": 393, "name": "close", "kind": 1024, "kindString": "Property", @@ -19772,30 +20280,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 90, - "character": 4 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - } - }, - { - "id": 393, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/RealtimeClient.ts", - "line": 91, + "line": 87, "character": 4 } ], @@ -19811,14 +20296,14 @@ }, { "id": 394, - "name": "message", + "name": "error", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 92, + "line": 88, "character": 4 } ], @@ -19833,8 +20318,8 @@ } }, { - "id": 391, - "name": "open", + "id": 395, + "name": "message", "kind": 1024, "kindString": "Property", "flags": {}, @@ -19854,6 +20339,29 @@ "name": "Function" } } + }, + { + "id": 392, + "name": "open", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/RealtimeClient.ts", + "line": 86, + "character": 4 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "qualifiedName": "Function", + "package": "typescript", + "name": "Function" + } + } } ], "groups": [ @@ -19861,10 +20369,10 @@ "title": "Properties", "kind": 1024, "children": [ - 392, 393, 394, - 391 + 395, + 392 ] } ] @@ -19873,7 +20381,7 @@ "defaultValue": "..." }, { - "id": 375, + "id": 376, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -19881,7 +20389,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 74, + "line": 71, "character": 2 } ], @@ -19892,7 +20400,7 @@ "defaultValue": "DEFAULT_TIMEOUT" }, { - "id": 376, + "id": 377, "name": "transport", "kind": 1024, "kindString": "Property", @@ -19900,18 +20408,26 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 75, + "line": 72, "character": 2 } ], "type": { - "type": "reference", - "name": "WebSocketLikeConstructor" - }, - "defaultValue": "WebSocketVariant" + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "name": "WebSocketLikeConstructor" + } + ] + } }, { - "id": 422, + "id": 426, "name": "channel", "kind": 2048, "kindString": "Method", @@ -19919,20 +20435,20 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 261, + "line": 274, "character": 2 } ], "signatures": [ { - "id": 423, + "id": 427, "name": "channel", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 424, + "id": 428, "name": "topic", "kind": 32768, "kindString": "Parameter", @@ -19943,7 +20459,7 @@ } }, { - "id": 425, + "id": 429, "name": "params", "kind": 32768, "kindString": "Parameter", @@ -20205,7 +20721,7 @@ ] }, { - "id": 400, + "id": 404, "name": "connect", "kind": 2048, "kindString": "Method", @@ -20213,13 +20729,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 153, + "line": 157, "character": 2 } ], "signatures": [ { - "id": 401, + "id": 405, "name": "connect", "kind": 4096, "kindString": "Call signature", @@ -20235,7 +20751,7 @@ ] }, { - "id": 418, + "id": 422, "name": "connectionState", "kind": 2048, "kindString": "Method", @@ -20243,13 +20759,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 241, + "line": 254, "character": 2 } ], "signatures": [ { - "id": 419, + "id": 423, "name": "connectionState", "kind": 4096, "kindString": "Call signature", @@ -20265,7 +20781,7 @@ ] }, { - "id": 402, + "id": 406, "name": "disconnect", "kind": 2048, "kindString": "Method", @@ -20273,13 +20789,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 182, + "line": 195, "character": 2 } ], "signatures": [ { - "id": 403, + "id": 407, "name": "disconnect", "kind": 4096, "kindString": "Call signature", @@ -20289,7 +20805,7 @@ }, "parameters": [ { - "id": 404, + "id": 408, "name": "code", "kind": 32768, "kindString": "Parameter", @@ -20305,7 +20821,7 @@ } }, { - "id": 405, + "id": 409, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -20329,7 +20845,7 @@ ] }, { - "id": 406, + "id": 410, "name": "getChannels", "kind": 2048, "kindString": "Method", @@ -20337,13 +20853,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 200, + "line": 213, "character": 2 } ], "signatures": [ { - "id": 407, + "id": 411, "name": "getChannels", "kind": 4096, "kindString": "Call signature", @@ -20363,7 +20879,7 @@ ] }, { - "id": 420, + "id": 424, "name": "isConnected", "kind": 2048, "kindString": "Method", @@ -20371,13 +20887,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 257, + "line": 270, "character": 2 } ], "signatures": [ { - "id": 421, + "id": 425, "name": "isConnected", "kind": 4096, "kindString": "Call signature", @@ -20393,7 +20909,7 @@ ] }, { - "id": 413, + "id": 417, "name": "log", "kind": 2048, "kindString": "Method", @@ -20401,13 +20917,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 234, + "line": 247, "character": 2 } ], "signatures": [ { - "id": 414, + "id": 418, "name": "log", "kind": 4096, "kindString": "Call signature", @@ -20418,7 +20934,7 @@ }, "parameters": [ { - "id": 415, + "id": 419, "name": "kind", "kind": 32768, "kindString": "Parameter", @@ -20429,7 +20945,7 @@ } }, { - "id": 416, + "id": 420, "name": "msg", "kind": 32768, "kindString": "Parameter", @@ -20440,7 +20956,7 @@ } }, { - "id": 417, + "id": 421, "name": "data", "kind": 32768, "kindString": "Parameter", @@ -20461,7 +20977,7 @@ ] }, { - "id": 426, + "id": 430, "name": "push", "kind": 2048, "kindString": "Method", @@ -20469,13 +20985,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 275, + "line": 288, "character": 2 } ], "signatures": [ { - "id": 427, + "id": 431, "name": "push", "kind": 4096, "kindString": "Call signature", @@ -20486,17 +21002,17 @@ }, "parameters": [ { - "id": 428, + "id": 432, "name": "data", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 498, + "id": 510, "name": "RealtimeMessage", "dereferenced": { - "id": 498, + "id": 510, "name": "RealtimeMessage", "kind": 4194304, "kindString": "Type alias", @@ -20511,14 +21027,14 @@ "type": { "type": "reflection", "declaration": { - "id": 499, + "id": 511, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 501, + "id": 513, "name": "event", "kind": 1024, "kindString": "Property", @@ -20536,7 +21052,7 @@ } }, { - "id": 504, + "id": 516, "name": "join_ref", "kind": 1024, "kindString": "Property", @@ -20556,7 +21072,7 @@ } }, { - "id": 502, + "id": 514, "name": "payload", "kind": 1024, "kindString": "Property", @@ -20574,7 +21090,7 @@ } }, { - "id": 503, + "id": 515, "name": "ref", "kind": 1024, "kindString": "Property", @@ -20592,7 +21108,7 @@ } }, { - "id": 500, + "id": 512, "name": "topic", "kind": 1024, "kindString": "Property", @@ -20615,11 +21131,11 @@ "title": "Properties", "kind": 1024, "children": [ - 501, - 504, - 502, - 503, - 500 + 513, + 516, + 514, + 515, + 512 ] } ], @@ -20644,7 +21160,7 @@ ] }, { - "id": 411, + "id": 415, "name": "removeAllChannels", "kind": 2048, "kindString": "Method", @@ -20652,13 +21168,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 221, + "line": 234, "character": 8 } ], "signatures": [ { - "id": 412, + "id": 416, "name": "removeAllChannels", "kind": 4096, "kindString": "Call signature", @@ -20673,7 +21189,7 @@ "type": "array", "elementType": { "type": "reference", - "id": 575, + "id": 587, "name": "RealtimeRemoveChannelResponse" } } @@ -20686,7 +21202,7 @@ ] }, { - "id": 408, + "id": 412, "name": "removeChannel", "kind": 2048, "kindString": "Method", @@ -20694,13 +21210,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 208, + "line": 221, "character": 8 } ], "signatures": [ { - "id": 409, + "id": 413, "name": "removeChannel", "kind": 4096, "kindString": "Call signature", @@ -20710,7 +21226,7 @@ }, "parameters": [ { - "id": 410, + "id": 414, "name": "channel", "kind": 32768, "kindString": "Parameter", @@ -20731,7 +21247,7 @@ "typeArguments": [ { "type": "reference", - "id": 575, + "id": 587, "name": "RealtimeRemoveChannelResponse" } ], @@ -20743,7 +21259,7 @@ ] }, { - "id": 429, + "id": 433, "name": "setAuth", "kind": 2048, "kindString": "Method", @@ -20751,13 +21267,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 295, + "line": 308, "character": 2 } ], "signatures": [ { - "id": 430, + "id": 434, "name": "setAuth", "kind": 4096, "kindString": "Call signature", @@ -20767,7 +21283,7 @@ }, "parameters": [ { - "id": 431, + "id": 435, "name": "token", "kind": 32768, "kindString": "Parameter", @@ -20812,49 +21328,50 @@ "children": [ 364, 365, - 386, - 384, - 383, 366, - 395, - 367, - 377, - 378, - 382, - 371, - 379, - 385, - 381, - 380, 387, + 385, + 384, + 367, + 396, + 368, + 378, + 379, + 383, + 372, + 380, + 386, + 382, + 381, 388, 389, - 375, - 376 + 390, + 376, + 377 ] }, { "title": "Methods", "kind": 2048, "children": [ - 422, - 400, - 418, - 402, - 406, - 420, - 413, 426, - 411, - 408, - 429 + 404, + 422, + 406, + 410, + 424, + 417, + 430, + 415, + 412, + 433 ] } ], "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 68, + "line": 64, "character": 21 } ] @@ -21284,7 +21801,7 @@ "flags": {}, "type": { "type": "reference", - "id": 546, + "id": 558, "typeArguments": [ { "type": "reference", @@ -21448,7 +21965,7 @@ "flags": {}, "type": { "type": "reference", - "id": 556, + "id": 568, "typeArguments": [ { "type": "reference", @@ -21544,7 +22061,7 @@ "flags": {}, "type": { "type": "reference", - "id": 505, + "id": 517, "typeArguments": [ { "type": "literal", @@ -21553,7 +22070,7 @@ ], "name": "RealtimePostgresChangesFilter", "dereferenced": { - "id": 505, + "id": 517, "name": "RealtimePostgresChangesFilter", "kind": 4194304, "kindString": "Type alias", @@ -21567,7 +22084,7 @@ ], "typeParameter": [ { - "id": 511, + "id": 523, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -21579,7 +22096,7 @@ [ { "type": "reference", - "id": 580, + "id": 592, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT" }, "" @@ -21591,14 +22108,14 @@ "type": { "type": "reflection", "declaration": { - "id": 506, + "id": 518, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 507, + "id": 519, "name": "event", "kind": 1024, "kindString": "Property", @@ -21615,13 +22132,13 @@ ], "type": { "type": "reference", - "id": 511, + "id": 523, "name": "T", "dereferenced": {} } }, { - "id": 510, + "id": 522, "name": "filter", "kind": 1024, "kindString": "Property", @@ -21644,7 +22161,7 @@ } }, { - "id": 508, + "id": 520, "name": "schema", "kind": 1024, "kindString": "Property", @@ -21665,7 +22182,7 @@ } }, { - "id": 509, + "id": 521, "name": "table", "kind": 1024, "kindString": "Property", @@ -21693,10 +22210,10 @@ "title": "Properties", "kind": 1024, "children": [ - 507, - 510, - 508, - 509 + 519, + 522, + 520, + 521 ] } ], @@ -21742,7 +22259,7 @@ "flags": {}, "type": { "type": "reference", - "id": 512, + "id": 524, "typeArguments": [ { "type": "reference", @@ -21838,7 +22355,7 @@ "flags": {}, "type": { "type": "reference", - "id": 505, + "id": 517, "typeArguments": [ { "type": "literal", @@ -21847,7 +22364,7 @@ ], "name": "RealtimePostgresChangesFilter", "dereferenced": { - "id": 505, + "id": 517, "name": "RealtimePostgresChangesFilter", "kind": 4194304, "kindString": "Type alias", @@ -21861,7 +22378,7 @@ ], "typeParameter": [ { - "id": 511, + "id": 523, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -21873,7 +22390,7 @@ [ { "type": "reference", - "id": 580, + "id": 592, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT" }, "" @@ -21885,14 +22402,14 @@ "type": { "type": "reflection", "declaration": { - "id": 506, + "id": 518, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 507, + "id": 519, "name": "event", "kind": 1024, "kindString": "Property", @@ -21909,13 +22426,13 @@ ], "type": { "type": "reference", - "id": 511, + "id": 523, "name": "T", "dereferenced": {} } }, { - "id": 510, + "id": 522, "name": "filter", "kind": 1024, "kindString": "Property", @@ -21938,7 +22455,7 @@ } }, { - "id": 508, + "id": 520, "name": "schema", "kind": 1024, "kindString": "Property", @@ -21959,7 +22476,7 @@ } }, { - "id": 509, + "id": 521, "name": "table", "kind": 1024, "kindString": "Property", @@ -21987,10 +22504,10 @@ "title": "Properties", "kind": 1024, "children": [ - 507, - 510, - 508, - 509 + 519, + 522, + 520, + 521 ] } ], @@ -22036,7 +22553,7 @@ "flags": {}, "type": { "type": "reference", - "id": 517, + "id": 529, "typeArguments": [ { "type": "reference", @@ -22132,7 +22649,7 @@ "flags": {}, "type": { "type": "reference", - "id": 505, + "id": 517, "typeArguments": [ { "type": "literal", @@ -22141,7 +22658,7 @@ ], "name": "RealtimePostgresChangesFilter", "dereferenced": { - "id": 505, + "id": 517, "name": "RealtimePostgresChangesFilter", "kind": 4194304, "kindString": "Type alias", @@ -22155,7 +22672,7 @@ ], "typeParameter": [ { - "id": 511, + "id": 523, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -22167,7 +22684,7 @@ [ { "type": "reference", - "id": 580, + "id": 592, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT" }, "" @@ -22179,14 +22696,14 @@ "type": { "type": "reflection", "declaration": { - "id": 506, + "id": 518, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 507, + "id": 519, "name": "event", "kind": 1024, "kindString": "Property", @@ -22203,13 +22720,13 @@ ], "type": { "type": "reference", - "id": 511, + "id": 523, "name": "T", "dereferenced": {} } }, { - "id": 510, + "id": 522, "name": "filter", "kind": 1024, "kindString": "Property", @@ -22232,7 +22749,7 @@ } }, { - "id": 508, + "id": 520, "name": "schema", "kind": 1024, "kindString": "Property", @@ -22253,7 +22770,7 @@ } }, { - "id": 509, + "id": 521, "name": "table", "kind": 1024, "kindString": "Property", @@ -22281,10 +22798,10 @@ "title": "Properties", "kind": 1024, "children": [ - 507, - 510, - 508, - 509 + 519, + 522, + 520, + 521 ] } ], @@ -22330,7 +22847,7 @@ "flags": {}, "type": { "type": "reference", - "id": 527, + "id": 539, "typeArguments": [ { "type": "reference", @@ -22426,7 +22943,7 @@ "flags": {}, "type": { "type": "reference", - "id": 505, + "id": 517, "typeArguments": [ { "type": "literal", @@ -22435,7 +22952,7 @@ ], "name": "RealtimePostgresChangesFilter", "dereferenced": { - "id": 505, + "id": 517, "name": "RealtimePostgresChangesFilter", "kind": 4194304, "kindString": "Type alias", @@ -22449,7 +22966,7 @@ ], "typeParameter": [ { - "id": 511, + "id": 523, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -22461,7 +22978,7 @@ [ { "type": "reference", - "id": 580, + "id": 592, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT" }, "" @@ -22473,14 +22990,14 @@ "type": { "type": "reflection", "declaration": { - "id": 506, + "id": 518, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 507, + "id": 519, "name": "event", "kind": 1024, "kindString": "Property", @@ -22497,13 +23014,13 @@ ], "type": { "type": "reference", - "id": 511, + "id": 523, "name": "T", "dereferenced": {} } }, { - "id": 510, + "id": 522, "name": "filter", "kind": 1024, "kindString": "Property", @@ -22526,7 +23043,7 @@ } }, { - "id": 508, + "id": 520, "name": "schema", "kind": 1024, "kindString": "Property", @@ -22547,7 +23064,7 @@ } }, { - "id": 509, + "id": 521, "name": "table", "kind": 1024, "kindString": "Property", @@ -22575,10 +23092,10 @@ "title": "Properties", "kind": 1024, "children": [ - 507, - 510, - 508, - 509 + 519, + 522, + 520, + 521 ] } ], @@ -22624,7 +23141,7 @@ "flags": {}, "type": { "type": "reference", - "id": 536, + "id": 548, "typeArguments": [ { "type": "reference", @@ -23161,7 +23678,7 @@ ], "type": { "type": "reference", - "id": 566, + "id": 578, "typeArguments": [ { "type": "reference", @@ -24373,7 +24890,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 115, + "line": 112, "character": 2 } ], @@ -24412,10 +24929,10 @@ }, "type": { "type": "reference", - "id": 479, + "id": 491, "name": "RealtimeClientOptions", "dereferenced": { - "id": 479, + "id": 491, "name": "RealtimeClientOptions", "kind": 4194304, "kindString": "Type alias", @@ -24430,14 +24947,14 @@ "type": { "type": "reflection", "declaration": { - "id": 480, + "id": 492, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 486, + "id": 498, "name": "decode", "kind": 1024, "kindString": "Property", @@ -24459,7 +24976,7 @@ } }, { - "id": 485, + "id": 497, "name": "encode", "kind": 1024, "kindString": "Property", @@ -24481,7 +24998,7 @@ } }, { - "id": 497, + "id": 509, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -24501,7 +25018,7 @@ } }, { - "id": 488, + "id": 500, "name": "headers", "kind": 1024, "kindString": "Property", @@ -24518,7 +25035,7 @@ "type": { "type": "reflection", "declaration": { - "id": 489, + "id": 501, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -24531,14 +25048,14 @@ } ], "indexSignature": { - "id": 490, + "id": 502, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 491, + "id": 503, "name": "key", "kind": 32768, "flags": {}, @@ -24557,7 +25074,7 @@ } }, { - "id": 483, + "id": 495, "name": "heartbeatIntervalMs", "kind": 1024, "kindString": "Property", @@ -24577,7 +25094,7 @@ } }, { - "id": 496, + "id": 508, "name": "log_level", "kind": 1024, "kindString": "Property", @@ -24614,7 +25131,7 @@ } }, { - "id": 484, + "id": 496, "name": "logger", "kind": 1024, "kindString": "Property", @@ -24636,7 +25153,7 @@ } }, { - "id": 492, + "id": 504, "name": "params", "kind": 1024, "kindString": "Property", @@ -24653,7 +25170,7 @@ "type": { "type": "reflection", "declaration": { - "id": 493, + "id": 505, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -24666,14 +25183,14 @@ } ], "indexSignature": { - "id": 494, + "id": 506, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 495, + "id": 507, "name": "key", "kind": 32768, "flags": {}, @@ -24692,7 +25209,7 @@ } }, { - "id": 487, + "id": 499, "name": "reconnectAfterMs", "kind": 1024, "kindString": "Property", @@ -24714,7 +25231,7 @@ } }, { - "id": 482, + "id": 494, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -24734,7 +25251,7 @@ } }, { - "id": 481, + "id": 493, "name": "transport", "kind": 1024, "kindString": "Property", @@ -24759,17 +25276,17 @@ "title": "Properties", "kind": 1024, "children": [ - 486, - 485, + 498, 497, - 488, - 483, + 509, + 500, + 495, + 508, 496, - 484, - 492, - 487, - 482, - 481 + 504, + 499, + 494, + 493 ] } ], @@ -24803,7 +25320,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 69, + "line": 65, "character": 2 } ], @@ -24824,6 +25341,34 @@ }, { "id": 365, + "name": "apiKey", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/RealtimeClient.ts", + "line": 66, + "character": 2 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "intrinsic", + "name": "string" + } + ] + }, + "defaultValue": "null" + }, + { + "id": 366, "name": "channels", "kind": 1024, "kindString": "Property", @@ -24831,7 +25376,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 70, + "line": 67, "character": 2 } ], @@ -24846,7 +25391,7 @@ "defaultValue": "[]" }, { - "id": 386, + "id": 387, "name": "conn", "kind": 1024, "kindString": "Property", @@ -24854,7 +25399,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 85, + "line": 82, "character": 2 } ], @@ -24874,7 +25419,7 @@ "defaultValue": "null" }, { - "id": 384, + "id": 385, "name": "decode", "kind": 1024, "kindString": "Property", @@ -24882,7 +25427,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 83, + "line": 80, "character": 2 } ], @@ -24894,7 +25439,7 @@ } }, { - "id": 383, + "id": 384, "name": "encode", "kind": 1024, "kindString": "Property", @@ -24902,7 +25447,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 82, + "line": 79, "character": 2 } ], @@ -24914,7 +25459,7 @@ } }, { - "id": 366, + "id": 367, "name": "endPoint", "kind": 1024, "kindString": "Property", @@ -24922,7 +25467,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 71, + "line": 68, "character": 2 } ], @@ -24933,7 +25478,7 @@ "defaultValue": "''" }, { - "id": 395, + "id": 396, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -24941,28 +25486,28 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 99, + "line": 96, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 396, + "id": 397, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 397, + "id": 398, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 398, + "id": 399, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -24986,7 +25531,73 @@ } }, { - "id": 399, + "id": 400, + "name": "init", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "qualifiedName": "RequestInit", + "package": "typescript", + "name": "RequestInit" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "qualifiedName": "Response", + "package": "typescript", + "name": "Response" + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + }, + { + "id": 401, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 402, + "name": "input", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "qualifiedName": "Request", + "package": "typescript", + "name": "Request" + }, + { + "type": "reference", + "qualifiedName": "URL", + "package": "typescript", + "name": "URL" + } + ] + } + }, + { + "id": 403, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -25021,7 +25632,7 @@ } }, { - "id": 367, + "id": 368, "name": "headers", "kind": 1024, "kindString": "Property", @@ -25031,27 +25642,27 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 72, + "line": 69, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 368, + "id": 369, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": { - "id": 369, + "id": 370, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 370, + "id": 371, "name": "key", "kind": 32768, "flags": {}, @@ -25071,7 +25682,7 @@ "defaultValue": "DEFAULT_HEADERS" }, { - "id": 377, + "id": 378, "name": "heartbeatIntervalMs", "kind": 1024, "kindString": "Property", @@ -25079,7 +25690,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 76, + "line": 73, "character": 2 } ], @@ -25090,7 +25701,7 @@ "defaultValue": "30000" }, { - "id": 378, + "id": 379, "name": "heartbeatTimer", "kind": 1024, "kindString": "Property", @@ -25098,7 +25709,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 77, + "line": 74, "character": 2 } ], @@ -25111,16 +25722,16 @@ }, { "type": "reference", - "qualifiedName": "global.NodeJS.Timer", + "qualifiedName": "global.NodeJS.Timeout", "package": "@types/node", - "name": "Timer" + "name": "Timeout" } ] }, "defaultValue": "undefined" }, { - "id": 382, + "id": 383, "name": "logger", "kind": 1024, "kindString": "Property", @@ -25128,7 +25739,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 81, + "line": 78, "character": 2 } ], @@ -25141,7 +25752,7 @@ "defaultValue": "noop" }, { - "id": 371, + "id": 372, "name": "params", "kind": 1024, "kindString": "Property", @@ -25151,27 +25762,27 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 73, + "line": 70, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 372, + "id": 373, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": { - "id": 373, + "id": 374, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 374, + "id": 375, "name": "key", "kind": 32768, "flags": {}, @@ -25191,7 +25802,7 @@ "defaultValue": "{}" }, { - "id": 379, + "id": 380, "name": "pendingHeartbeatRef", "kind": 1024, "kindString": "Property", @@ -25199,7 +25810,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 78, + "line": 75, "character": 2 } ], @@ -25219,7 +25830,7 @@ "defaultValue": "null" }, { - "id": 385, + "id": 386, "name": "reconnectAfterMs", "kind": 1024, "kindString": "Property", @@ -25227,7 +25838,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 84, + "line": 81, "character": 2 } ], @@ -25239,7 +25850,7 @@ } }, { - "id": 381, + "id": 382, "name": "reconnectTimer", "kind": 1024, "kindString": "Property", @@ -25247,7 +25858,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 80, + "line": 77, "character": 2 } ], @@ -25257,7 +25868,7 @@ } }, { - "id": 380, + "id": 381, "name": "ref", "kind": 1024, "kindString": "Property", @@ -25265,7 +25876,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 79, + "line": 76, "character": 2 } ], @@ -25276,7 +25887,7 @@ "defaultValue": "0" }, { - "id": 387, + "id": 388, "name": "sendBuffer", "kind": 1024, "kindString": "Property", @@ -25284,7 +25895,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 86, + "line": 83, "character": 2 } ], @@ -25300,7 +25911,7 @@ "defaultValue": "[]" }, { - "id": 388, + "id": 389, "name": "serializer", "kind": 1024, "kindString": "Property", @@ -25308,7 +25919,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 87, + "line": 84, "character": 2 } ], @@ -25319,7 +25930,7 @@ "defaultValue": "..." }, { - "id": 389, + "id": 390, "name": "stateChangeCallbacks", "kind": 1024, "kindString": "Property", @@ -25327,21 +25938,21 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 88, + "line": 85, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 390, + "id": 391, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 392, + "id": 393, "name": "close", "kind": 1024, "kindString": "Property", @@ -25349,30 +25960,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 90, - "character": 4 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - } - }, - { - "id": 393, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/RealtimeClient.ts", - "line": 91, + "line": 87, "character": 4 } ], @@ -25388,14 +25976,14 @@ }, { "id": 394, - "name": "message", + "name": "error", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 92, + "line": 88, "character": 4 } ], @@ -25410,8 +25998,8 @@ } }, { - "id": 391, - "name": "open", + "id": 395, + "name": "message", "kind": 1024, "kindString": "Property", "flags": {}, @@ -25431,6 +26019,29 @@ "name": "Function" } } + }, + { + "id": 392, + "name": "open", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/RealtimeClient.ts", + "line": 86, + "character": 4 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "qualifiedName": "Function", + "package": "typescript", + "name": "Function" + } + } } ], "groups": [ @@ -25438,10 +26049,10 @@ "title": "Properties", "kind": 1024, "children": [ - 392, 393, 394, - 391 + 395, + 392 ] } ] @@ -25450,7 +26061,7 @@ "defaultValue": "..." }, { - "id": 375, + "id": 376, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -25458,7 +26069,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 74, + "line": 71, "character": 2 } ], @@ -25469,7 +26080,7 @@ "defaultValue": "DEFAULT_TIMEOUT" }, { - "id": 376, + "id": 377, "name": "transport", "kind": 1024, "kindString": "Property", @@ -25477,18 +26088,26 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 75, + "line": 72, "character": 2 } ], "type": { - "type": "reference", - "name": "WebSocketLikeConstructor" - }, - "defaultValue": "WebSocketVariant" + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "name": "WebSocketLikeConstructor" + } + ] + } }, { - "id": 422, + "id": 426, "name": "channel", "kind": 2048, "kindString": "Method", @@ -25496,20 +26115,20 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 261, + "line": 274, "character": 2 } ], "signatures": [ { - "id": 423, + "id": 427, "name": "channel", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 424, + "id": 428, "name": "topic", "kind": 32768, "kindString": "Parameter", @@ -25520,7 +26139,7 @@ } }, { - "id": 425, + "id": 429, "name": "params", "kind": 32768, "kindString": "Parameter", @@ -25782,7 +26401,7 @@ ] }, { - "id": 400, + "id": 404, "name": "connect", "kind": 2048, "kindString": "Method", @@ -25790,13 +26409,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 153, + "line": 157, "character": 2 } ], "signatures": [ { - "id": 401, + "id": 405, "name": "connect", "kind": 4096, "kindString": "Call signature", @@ -25812,7 +26431,7 @@ ] }, { - "id": 418, + "id": 422, "name": "connectionState", "kind": 2048, "kindString": "Method", @@ -25820,13 +26439,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 241, + "line": 254, "character": 2 } ], "signatures": [ { - "id": 419, + "id": 423, "name": "connectionState", "kind": 4096, "kindString": "Call signature", @@ -25842,7 +26461,7 @@ ] }, { - "id": 402, + "id": 406, "name": "disconnect", "kind": 2048, "kindString": "Method", @@ -25850,13 +26469,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 182, + "line": 195, "character": 2 } ], "signatures": [ { - "id": 403, + "id": 407, "name": "disconnect", "kind": 4096, "kindString": "Call signature", @@ -25866,7 +26485,7 @@ }, "parameters": [ { - "id": 404, + "id": 408, "name": "code", "kind": 32768, "kindString": "Parameter", @@ -25882,7 +26501,7 @@ } }, { - "id": 405, + "id": 409, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -25906,7 +26525,7 @@ ] }, { - "id": 406, + "id": 410, "name": "getChannels", "kind": 2048, "kindString": "Method", @@ -25914,13 +26533,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 200, + "line": 213, "character": 2 } ], "signatures": [ { - "id": 407, + "id": 411, "name": "getChannels", "kind": 4096, "kindString": "Call signature", @@ -25940,7 +26559,7 @@ ] }, { - "id": 420, + "id": 424, "name": "isConnected", "kind": 2048, "kindString": "Method", @@ -25948,13 +26567,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 257, + "line": 270, "character": 2 } ], "signatures": [ { - "id": 421, + "id": 425, "name": "isConnected", "kind": 4096, "kindString": "Call signature", @@ -25970,7 +26589,7 @@ ] }, { - "id": 413, + "id": 417, "name": "log", "kind": 2048, "kindString": "Method", @@ -25978,13 +26597,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 234, + "line": 247, "character": 2 } ], "signatures": [ { - "id": 414, + "id": 418, "name": "log", "kind": 4096, "kindString": "Call signature", @@ -25995,7 +26614,7 @@ }, "parameters": [ { - "id": 415, + "id": 419, "name": "kind", "kind": 32768, "kindString": "Parameter", @@ -26006,7 +26625,7 @@ } }, { - "id": 416, + "id": 420, "name": "msg", "kind": 32768, "kindString": "Parameter", @@ -26017,7 +26636,7 @@ } }, { - "id": 417, + "id": 421, "name": "data", "kind": 32768, "kindString": "Parameter", @@ -26038,7 +26657,7 @@ ] }, { - "id": 426, + "id": 430, "name": "push", "kind": 2048, "kindString": "Method", @@ -26046,13 +26665,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 275, + "line": 288, "character": 2 } ], "signatures": [ { - "id": 427, + "id": 431, "name": "push", "kind": 4096, "kindString": "Call signature", @@ -26063,17 +26682,17 @@ }, "parameters": [ { - "id": 428, + "id": 432, "name": "data", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 498, + "id": 510, "name": "RealtimeMessage", "dereferenced": { - "id": 498, + "id": 510, "name": "RealtimeMessage", "kind": 4194304, "kindString": "Type alias", @@ -26088,14 +26707,14 @@ "type": { "type": "reflection", "declaration": { - "id": 499, + "id": 511, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 501, + "id": 513, "name": "event", "kind": 1024, "kindString": "Property", @@ -26113,7 +26732,7 @@ } }, { - "id": 504, + "id": 516, "name": "join_ref", "kind": 1024, "kindString": "Property", @@ -26133,7 +26752,7 @@ } }, { - "id": 502, + "id": 514, "name": "payload", "kind": 1024, "kindString": "Property", @@ -26151,7 +26770,7 @@ } }, { - "id": 503, + "id": 515, "name": "ref", "kind": 1024, "kindString": "Property", @@ -26169,7 +26788,7 @@ } }, { - "id": 500, + "id": 512, "name": "topic", "kind": 1024, "kindString": "Property", @@ -26192,11 +26811,11 @@ "title": "Properties", "kind": 1024, "children": [ - 501, - 504, - 502, - 503, - 500 + 513, + 516, + 514, + 515, + 512 ] } ], @@ -26221,7 +26840,7 @@ ] }, { - "id": 411, + "id": 415, "name": "removeAllChannels", "kind": 2048, "kindString": "Method", @@ -26229,13 +26848,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 221, + "line": 234, "character": 8 } ], "signatures": [ { - "id": 412, + "id": 416, "name": "removeAllChannels", "kind": 4096, "kindString": "Call signature", @@ -26250,7 +26869,7 @@ "type": "array", "elementType": { "type": "reference", - "id": 575, + "id": 587, "name": "RealtimeRemoveChannelResponse" } } @@ -26263,7 +26882,7 @@ ] }, { - "id": 408, + "id": 412, "name": "removeChannel", "kind": 2048, "kindString": "Method", @@ -26271,13 +26890,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 208, + "line": 221, "character": 8 } ], "signatures": [ { - "id": 409, + "id": 413, "name": "removeChannel", "kind": 4096, "kindString": "Call signature", @@ -26287,7 +26906,7 @@ }, "parameters": [ { - "id": 410, + "id": 414, "name": "channel", "kind": 32768, "kindString": "Parameter", @@ -26308,7 +26927,7 @@ "typeArguments": [ { "type": "reference", - "id": 575, + "id": 587, "name": "RealtimeRemoveChannelResponse" } ], @@ -26320,7 +26939,7 @@ ] }, { - "id": 429, + "id": 433, "name": "setAuth", "kind": 2048, "kindString": "Method", @@ -26328,13 +26947,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 295, + "line": 308, "character": 2 } ], "signatures": [ { - "id": 430, + "id": 434, "name": "setAuth", "kind": 4096, "kindString": "Call signature", @@ -26344,7 +26963,7 @@ }, "parameters": [ { - "id": 431, + "id": 435, "name": "token", "kind": 32768, "kindString": "Parameter", @@ -26389,49 +27008,50 @@ "children": [ 364, 365, - 386, - 384, - 383, 366, - 395, - 367, - 377, - 378, - 382, - 371, - 379, - 385, - 381, - 380, 387, + 385, + 384, + 367, + 396, + 368, + 378, + 379, + 383, + 372, + 380, + 386, + 382, + 381, 388, 389, - 375, - 376 + 390, + 376, + 377 ] }, { "title": "Methods", "kind": 2048, "children": [ - 422, - 400, - 418, - 402, - 406, - 420, - 413, 426, - 411, - 408, - 429 + 404, + 422, + 406, + 410, + 424, + 417, + 430, + 415, + 412, + 433 ] } ], "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 68, + "line": 64, "character": 21 } ] @@ -27069,7 +27689,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 115, + "line": 112, "character": 2 } ], @@ -27108,10 +27728,10 @@ }, "type": { "type": "reference", - "id": 479, + "id": 491, "name": "RealtimeClientOptions", "dereferenced": { - "id": 479, + "id": 491, "name": "RealtimeClientOptions", "kind": 4194304, "kindString": "Type alias", @@ -27126,14 +27746,14 @@ "type": { "type": "reflection", "declaration": { - "id": 480, + "id": 492, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 486, + "id": 498, "name": "decode", "kind": 1024, "kindString": "Property", @@ -27155,7 +27775,7 @@ } }, { - "id": 485, + "id": 497, "name": "encode", "kind": 1024, "kindString": "Property", @@ -27177,7 +27797,7 @@ } }, { - "id": 497, + "id": 509, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -27197,7 +27817,7 @@ } }, { - "id": 488, + "id": 500, "name": "headers", "kind": 1024, "kindString": "Property", @@ -27214,7 +27834,7 @@ "type": { "type": "reflection", "declaration": { - "id": 489, + "id": 501, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -27227,14 +27847,14 @@ } ], "indexSignature": { - "id": 490, + "id": 502, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 491, + "id": 503, "name": "key", "kind": 32768, "flags": {}, @@ -27253,7 +27873,7 @@ } }, { - "id": 483, + "id": 495, "name": "heartbeatIntervalMs", "kind": 1024, "kindString": "Property", @@ -27273,7 +27893,7 @@ } }, { - "id": 496, + "id": 508, "name": "log_level", "kind": 1024, "kindString": "Property", @@ -27310,7 +27930,7 @@ } }, { - "id": 484, + "id": 496, "name": "logger", "kind": 1024, "kindString": "Property", @@ -27332,7 +27952,7 @@ } }, { - "id": 492, + "id": 504, "name": "params", "kind": 1024, "kindString": "Property", @@ -27349,7 +27969,7 @@ "type": { "type": "reflection", "declaration": { - "id": 493, + "id": 505, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -27362,14 +27982,14 @@ } ], "indexSignature": { - "id": 494, + "id": 506, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 495, + "id": 507, "name": "key", "kind": 32768, "flags": {}, @@ -27388,7 +28008,7 @@ } }, { - "id": 487, + "id": 499, "name": "reconnectAfterMs", "kind": 1024, "kindString": "Property", @@ -27410,7 +28030,7 @@ } }, { - "id": 482, + "id": 494, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -27430,7 +28050,7 @@ } }, { - "id": 481, + "id": 493, "name": "transport", "kind": 1024, "kindString": "Property", @@ -27455,17 +28075,17 @@ "title": "Properties", "kind": 1024, "children": [ - 486, - 485, + 498, 497, - 488, - 483, + 509, + 500, + 495, + 508, 496, - 484, - 492, - 487, - 482, - 481 + 504, + 499, + 494, + 493 ] } ], @@ -27499,7 +28119,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 69, + "line": 65, "character": 2 } ], @@ -27520,6 +28140,34 @@ }, { "id": 365, + "name": "apiKey", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/RealtimeClient.ts", + "line": 66, + "character": 2 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "intrinsic", + "name": "string" + } + ] + }, + "defaultValue": "null" + }, + { + "id": 366, "name": "channels", "kind": 1024, "kindString": "Property", @@ -27527,7 +28175,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 70, + "line": 67, "character": 2 } ], @@ -27542,7 +28190,7 @@ "defaultValue": "[]" }, { - "id": 386, + "id": 387, "name": "conn", "kind": 1024, "kindString": "Property", @@ -27550,7 +28198,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 85, + "line": 82, "character": 2 } ], @@ -27570,7 +28218,7 @@ "defaultValue": "null" }, { - "id": 384, + "id": 385, "name": "decode", "kind": 1024, "kindString": "Property", @@ -27578,7 +28226,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 83, + "line": 80, "character": 2 } ], @@ -27590,7 +28238,7 @@ } }, { - "id": 383, + "id": 384, "name": "encode", "kind": 1024, "kindString": "Property", @@ -27598,7 +28246,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 82, + "line": 79, "character": 2 } ], @@ -27610,7 +28258,7 @@ } }, { - "id": 366, + "id": 367, "name": "endPoint", "kind": 1024, "kindString": "Property", @@ -27618,7 +28266,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 71, + "line": 68, "character": 2 } ], @@ -27629,7 +28277,7 @@ "defaultValue": "''" }, { - "id": 395, + "id": 396, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -27637,28 +28285,28 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 99, + "line": 96, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 396, + "id": 397, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 397, + "id": 398, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 398, + "id": 399, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -27682,7 +28330,73 @@ } }, { - "id": 399, + "id": 400, + "name": "init", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "qualifiedName": "RequestInit", + "package": "typescript", + "name": "RequestInit" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "qualifiedName": "Response", + "package": "typescript", + "name": "Response" + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + }, + { + "id": 401, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 402, + "name": "input", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "qualifiedName": "Request", + "package": "typescript", + "name": "Request" + }, + { + "type": "reference", + "qualifiedName": "URL", + "package": "typescript", + "name": "URL" + } + ] + } + }, + { + "id": 403, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -27717,7 +28431,7 @@ } }, { - "id": 367, + "id": 368, "name": "headers", "kind": 1024, "kindString": "Property", @@ -27727,27 +28441,27 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 72, + "line": 69, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 368, + "id": 369, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": { - "id": 369, + "id": 370, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 370, + "id": 371, "name": "key", "kind": 32768, "flags": {}, @@ -27767,7 +28481,7 @@ "defaultValue": "DEFAULT_HEADERS" }, { - "id": 377, + "id": 378, "name": "heartbeatIntervalMs", "kind": 1024, "kindString": "Property", @@ -27775,7 +28489,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 76, + "line": 73, "character": 2 } ], @@ -27786,7 +28500,7 @@ "defaultValue": "30000" }, { - "id": 378, + "id": 379, "name": "heartbeatTimer", "kind": 1024, "kindString": "Property", @@ -27794,7 +28508,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 77, + "line": 74, "character": 2 } ], @@ -27807,16 +28521,16 @@ }, { "type": "reference", - "qualifiedName": "global.NodeJS.Timer", + "qualifiedName": "global.NodeJS.Timeout", "package": "@types/node", - "name": "Timer" + "name": "Timeout" } ] }, "defaultValue": "undefined" }, { - "id": 382, + "id": 383, "name": "logger", "kind": 1024, "kindString": "Property", @@ -27824,7 +28538,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 81, + "line": 78, "character": 2 } ], @@ -27837,7 +28551,7 @@ "defaultValue": "noop" }, { - "id": 371, + "id": 372, "name": "params", "kind": 1024, "kindString": "Property", @@ -27847,27 +28561,27 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 73, + "line": 70, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 372, + "id": 373, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": { - "id": 373, + "id": 374, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 374, + "id": 375, "name": "key", "kind": 32768, "flags": {}, @@ -27887,7 +28601,7 @@ "defaultValue": "{}" }, { - "id": 379, + "id": 380, "name": "pendingHeartbeatRef", "kind": 1024, "kindString": "Property", @@ -27895,7 +28609,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 78, + "line": 75, "character": 2 } ], @@ -27915,7 +28629,7 @@ "defaultValue": "null" }, { - "id": 385, + "id": 386, "name": "reconnectAfterMs", "kind": 1024, "kindString": "Property", @@ -27923,7 +28637,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 84, + "line": 81, "character": 2 } ], @@ -27935,7 +28649,7 @@ } }, { - "id": 381, + "id": 382, "name": "reconnectTimer", "kind": 1024, "kindString": "Property", @@ -27943,7 +28657,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 80, + "line": 77, "character": 2 } ], @@ -27953,7 +28667,7 @@ } }, { - "id": 380, + "id": 381, "name": "ref", "kind": 1024, "kindString": "Property", @@ -27961,7 +28675,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 79, + "line": 76, "character": 2 } ], @@ -27972,7 +28686,7 @@ "defaultValue": "0" }, { - "id": 387, + "id": 388, "name": "sendBuffer", "kind": 1024, "kindString": "Property", @@ -27980,7 +28694,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 86, + "line": 83, "character": 2 } ], @@ -27996,7 +28710,7 @@ "defaultValue": "[]" }, { - "id": 388, + "id": 389, "name": "serializer", "kind": 1024, "kindString": "Property", @@ -28004,7 +28718,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 87, + "line": 84, "character": 2 } ], @@ -28015,7 +28729,7 @@ "defaultValue": "..." }, { - "id": 389, + "id": 390, "name": "stateChangeCallbacks", "kind": 1024, "kindString": "Property", @@ -28023,21 +28737,21 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 88, + "line": 85, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 390, + "id": 391, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 392, + "id": 393, "name": "close", "kind": 1024, "kindString": "Property", @@ -28045,30 +28759,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 90, - "character": 4 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - } - }, - { - "id": 393, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/RealtimeClient.ts", - "line": 91, + "line": 87, "character": 4 } ], @@ -28084,14 +28775,14 @@ }, { "id": 394, - "name": "message", + "name": "error", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 92, + "line": 88, "character": 4 } ], @@ -28106,8 +28797,8 @@ } }, { - "id": 391, - "name": "open", + "id": 395, + "name": "message", "kind": 1024, "kindString": "Property", "flags": {}, @@ -28127,6 +28818,29 @@ "name": "Function" } } + }, + { + "id": 392, + "name": "open", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/RealtimeClient.ts", + "line": 86, + "character": 4 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "qualifiedName": "Function", + "package": "typescript", + "name": "Function" + } + } } ], "groups": [ @@ -28134,10 +28848,10 @@ "title": "Properties", "kind": 1024, "children": [ - 392, 393, 394, - 391 + 395, + 392 ] } ] @@ -28146,7 +28860,7 @@ "defaultValue": "..." }, { - "id": 375, + "id": 376, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -28154,7 +28868,7 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 74, + "line": 71, "character": 2 } ], @@ -28165,7 +28879,7 @@ "defaultValue": "DEFAULT_TIMEOUT" }, { - "id": 376, + "id": 377, "name": "transport", "kind": 1024, "kindString": "Property", @@ -28173,18 +28887,26 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 75, + "line": 72, "character": 2 } ], "type": { - "type": "reference", - "name": "WebSocketLikeConstructor" - }, - "defaultValue": "WebSocketVariant" + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "name": "WebSocketLikeConstructor" + } + ] + } }, { - "id": 422, + "id": 426, "name": "channel", "kind": 2048, "kindString": "Method", @@ -28192,20 +28914,20 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 261, + "line": 274, "character": 2 } ], "signatures": [ { - "id": 423, + "id": 427, "name": "channel", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 424, + "id": 428, "name": "topic", "kind": 32768, "kindString": "Parameter", @@ -28216,7 +28938,7 @@ } }, { - "id": 425, + "id": 429, "name": "params", "kind": 32768, "kindString": "Parameter", @@ -28478,7 +29200,7 @@ ] }, { - "id": 400, + "id": 404, "name": "connect", "kind": 2048, "kindString": "Method", @@ -28486,13 +29208,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 153, + "line": 157, "character": 2 } ], "signatures": [ { - "id": 401, + "id": 405, "name": "connect", "kind": 4096, "kindString": "Call signature", @@ -28508,7 +29230,7 @@ ] }, { - "id": 418, + "id": 422, "name": "connectionState", "kind": 2048, "kindString": "Method", @@ -28516,13 +29238,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 241, + "line": 254, "character": 2 } ], "signatures": [ { - "id": 419, + "id": 423, "name": "connectionState", "kind": 4096, "kindString": "Call signature", @@ -28538,7 +29260,7 @@ ] }, { - "id": 402, + "id": 406, "name": "disconnect", "kind": 2048, "kindString": "Method", @@ -28546,13 +29268,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 182, + "line": 195, "character": 2 } ], "signatures": [ { - "id": 403, + "id": 407, "name": "disconnect", "kind": 4096, "kindString": "Call signature", @@ -28562,7 +29284,7 @@ }, "parameters": [ { - "id": 404, + "id": 408, "name": "code", "kind": 32768, "kindString": "Parameter", @@ -28578,7 +29300,7 @@ } }, { - "id": 405, + "id": 409, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -28602,7 +29324,7 @@ ] }, { - "id": 406, + "id": 410, "name": "getChannels", "kind": 2048, "kindString": "Method", @@ -28610,13 +29332,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 200, + "line": 213, "character": 2 } ], "signatures": [ { - "id": 407, + "id": 411, "name": "getChannels", "kind": 4096, "kindString": "Call signature", @@ -28636,7 +29358,7 @@ ] }, { - "id": 420, + "id": 424, "name": "isConnected", "kind": 2048, "kindString": "Method", @@ -28644,13 +29366,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 257, + "line": 270, "character": 2 } ], "signatures": [ { - "id": 421, + "id": 425, "name": "isConnected", "kind": 4096, "kindString": "Call signature", @@ -28666,7 +29388,7 @@ ] }, { - "id": 413, + "id": 417, "name": "log", "kind": 2048, "kindString": "Method", @@ -28674,13 +29396,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 234, + "line": 247, "character": 2 } ], "signatures": [ { - "id": 414, + "id": 418, "name": "log", "kind": 4096, "kindString": "Call signature", @@ -28691,7 +29413,7 @@ }, "parameters": [ { - "id": 415, + "id": 419, "name": "kind", "kind": 32768, "kindString": "Parameter", @@ -28702,7 +29424,7 @@ } }, { - "id": 416, + "id": 420, "name": "msg", "kind": 32768, "kindString": "Parameter", @@ -28713,7 +29435,7 @@ } }, { - "id": 417, + "id": 421, "name": "data", "kind": 32768, "kindString": "Parameter", @@ -28734,7 +29456,7 @@ ] }, { - "id": 426, + "id": 430, "name": "push", "kind": 2048, "kindString": "Method", @@ -28742,13 +29464,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 275, + "line": 288, "character": 2 } ], "signatures": [ { - "id": 427, + "id": 431, "name": "push", "kind": 4096, "kindString": "Call signature", @@ -28759,17 +29481,17 @@ }, "parameters": [ { - "id": 428, + "id": 432, "name": "data", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 498, + "id": 510, "name": "RealtimeMessage", "dereferenced": { - "id": 498, + "id": 510, "name": "RealtimeMessage", "kind": 4194304, "kindString": "Type alias", @@ -28784,14 +29506,14 @@ "type": { "type": "reflection", "declaration": { - "id": 499, + "id": 511, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 501, + "id": 513, "name": "event", "kind": 1024, "kindString": "Property", @@ -28809,7 +29531,7 @@ } }, { - "id": 504, + "id": 516, "name": "join_ref", "kind": 1024, "kindString": "Property", @@ -28829,7 +29551,7 @@ } }, { - "id": 502, + "id": 514, "name": "payload", "kind": 1024, "kindString": "Property", @@ -28847,7 +29569,7 @@ } }, { - "id": 503, + "id": 515, "name": "ref", "kind": 1024, "kindString": "Property", @@ -28865,7 +29587,7 @@ } }, { - "id": 500, + "id": 512, "name": "topic", "kind": 1024, "kindString": "Property", @@ -28888,11 +29610,11 @@ "title": "Properties", "kind": 1024, "children": [ - 501, - 504, - 502, - 503, - 500 + 513, + 516, + 514, + 515, + 512 ] } ], @@ -28917,7 +29639,7 @@ ] }, { - "id": 411, + "id": 415, "name": "removeAllChannels", "kind": 2048, "kindString": "Method", @@ -28925,13 +29647,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 221, + "line": 234, "character": 8 } ], "signatures": [ { - "id": 412, + "id": 416, "name": "removeAllChannels", "kind": 4096, "kindString": "Call signature", @@ -28946,7 +29668,7 @@ "type": "array", "elementType": { "type": "reference", - "id": 575, + "id": 587, "name": "RealtimeRemoveChannelResponse" } } @@ -28959,7 +29681,7 @@ ] }, { - "id": 408, + "id": 412, "name": "removeChannel", "kind": 2048, "kindString": "Method", @@ -28967,13 +29689,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 208, + "line": 221, "character": 8 } ], "signatures": [ { - "id": 409, + "id": 413, "name": "removeChannel", "kind": 4096, "kindString": "Call signature", @@ -28983,7 +29705,7 @@ }, "parameters": [ { - "id": 410, + "id": 414, "name": "channel", "kind": 32768, "kindString": "Parameter", @@ -29004,7 +29726,7 @@ "typeArguments": [ { "type": "reference", - "id": 575, + "id": 587, "name": "RealtimeRemoveChannelResponse" } ], @@ -29016,7 +29738,7 @@ ] }, { - "id": 429, + "id": 433, "name": "setAuth", "kind": 2048, "kindString": "Method", @@ -29024,13 +29746,13 @@ "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 295, + "line": 308, "character": 2 } ], "signatures": [ { - "id": 430, + "id": 434, "name": "setAuth", "kind": 4096, "kindString": "Call signature", @@ -29040,7 +29762,7 @@ }, "parameters": [ { - "id": 431, + "id": 435, "name": "token", "kind": 32768, "kindString": "Parameter", @@ -29085,49 +29807,50 @@ "children": [ 364, 365, - 386, - 384, - 383, 366, - 395, - 367, - 377, - 378, - 382, - 371, - 379, - 385, - 381, - 380, 387, + 385, + 384, + 367, + 396, + 368, + 378, + 379, + 383, + 372, + 380, + 386, + 382, + 381, 388, 389, - 375, - 376 + 390, + 376, + 377 ] }, { "title": "Methods", "kind": 2048, "children": [ - 422, - 400, - 418, - 402, - 406, - 420, - 413, 426, - 411, - 408, - 429 + 404, + 422, + 406, + 410, + 424, + 417, + 430, + 415, + 412, + 433 ] } ], "sources": [ { "fileName": "src/RealtimeClient.ts", - "line": 68, + "line": 64, "character": 21 } ] @@ -29557,7 +30280,7 @@ "flags": {}, "type": { "type": "reference", - "id": 546, + "id": 558, "typeArguments": [ { "type": "reference", @@ -29721,7 +30444,7 @@ "flags": {}, "type": { "type": "reference", - "id": 556, + "id": 568, "typeArguments": [ { "type": "reference", @@ -29817,7 +30540,7 @@ "flags": {}, "type": { "type": "reference", - "id": 505, + "id": 517, "typeArguments": [ { "type": "literal", @@ -29826,7 +30549,7 @@ ], "name": "RealtimePostgresChangesFilter", "dereferenced": { - "id": 505, + "id": 517, "name": "RealtimePostgresChangesFilter", "kind": 4194304, "kindString": "Type alias", @@ -29840,7 +30563,7 @@ ], "typeParameter": [ { - "id": 511, + "id": 523, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -29852,7 +30575,7 @@ [ { "type": "reference", - "id": 580, + "id": 592, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT" }, "" @@ -29864,14 +30587,14 @@ "type": { "type": "reflection", "declaration": { - "id": 506, + "id": 518, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 507, + "id": 519, "name": "event", "kind": 1024, "kindString": "Property", @@ -29888,13 +30611,13 @@ ], "type": { "type": "reference", - "id": 511, + "id": 523, "name": "T", "dereferenced": {} } }, { - "id": 510, + "id": 522, "name": "filter", "kind": 1024, "kindString": "Property", @@ -29917,7 +30640,7 @@ } }, { - "id": 508, + "id": 520, "name": "schema", "kind": 1024, "kindString": "Property", @@ -29938,7 +30661,7 @@ } }, { - "id": 509, + "id": 521, "name": "table", "kind": 1024, "kindString": "Property", @@ -29966,10 +30689,10 @@ "title": "Properties", "kind": 1024, "children": [ - 507, - 510, - 508, - 509 + 519, + 522, + 520, + 521 ] } ], @@ -30015,7 +30738,7 @@ "flags": {}, "type": { "type": "reference", - "id": 512, + "id": 524, "typeArguments": [ { "type": "reference", @@ -30111,7 +30834,7 @@ "flags": {}, "type": { "type": "reference", - "id": 505, + "id": 517, "typeArguments": [ { "type": "literal", @@ -30120,7 +30843,7 @@ ], "name": "RealtimePostgresChangesFilter", "dereferenced": { - "id": 505, + "id": 517, "name": "RealtimePostgresChangesFilter", "kind": 4194304, "kindString": "Type alias", @@ -30134,7 +30857,7 @@ ], "typeParameter": [ { - "id": 511, + "id": 523, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -30146,7 +30869,7 @@ [ { "type": "reference", - "id": 580, + "id": 592, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT" }, "" @@ -30158,14 +30881,14 @@ "type": { "type": "reflection", "declaration": { - "id": 506, + "id": 518, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 507, + "id": 519, "name": "event", "kind": 1024, "kindString": "Property", @@ -30182,13 +30905,13 @@ ], "type": { "type": "reference", - "id": 511, + "id": 523, "name": "T", "dereferenced": {} } }, { - "id": 510, + "id": 522, "name": "filter", "kind": 1024, "kindString": "Property", @@ -30211,7 +30934,7 @@ } }, { - "id": 508, + "id": 520, "name": "schema", "kind": 1024, "kindString": "Property", @@ -30232,7 +30955,7 @@ } }, { - "id": 509, + "id": 521, "name": "table", "kind": 1024, "kindString": "Property", @@ -30260,10 +30983,10 @@ "title": "Properties", "kind": 1024, "children": [ - 507, - 510, - 508, - 509 + 519, + 522, + 520, + 521 ] } ], @@ -30309,7 +31032,7 @@ "flags": {}, "type": { "type": "reference", - "id": 517, + "id": 529, "typeArguments": [ { "type": "reference", @@ -30405,7 +31128,7 @@ "flags": {}, "type": { "type": "reference", - "id": 505, + "id": 517, "typeArguments": [ { "type": "literal", @@ -30414,7 +31137,7 @@ ], "name": "RealtimePostgresChangesFilter", "dereferenced": { - "id": 505, + "id": 517, "name": "RealtimePostgresChangesFilter", "kind": 4194304, "kindString": "Type alias", @@ -30428,7 +31151,7 @@ ], "typeParameter": [ { - "id": 511, + "id": 523, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -30440,7 +31163,7 @@ [ { "type": "reference", - "id": 580, + "id": 592, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT" }, "" @@ -30452,14 +31175,14 @@ "type": { "type": "reflection", "declaration": { - "id": 506, + "id": 518, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 507, + "id": 519, "name": "event", "kind": 1024, "kindString": "Property", @@ -30476,13 +31199,13 @@ ], "type": { "type": "reference", - "id": 511, + "id": 523, "name": "T", "dereferenced": {} } }, { - "id": 510, + "id": 522, "name": "filter", "kind": 1024, "kindString": "Property", @@ -30505,7 +31228,7 @@ } }, { - "id": 508, + "id": 520, "name": "schema", "kind": 1024, "kindString": "Property", @@ -30526,7 +31249,7 @@ } }, { - "id": 509, + "id": 521, "name": "table", "kind": 1024, "kindString": "Property", @@ -30554,10 +31277,10 @@ "title": "Properties", "kind": 1024, "children": [ - 507, - 510, - 508, - 509 + 519, + 522, + 520, + 521 ] } ], @@ -30603,7 +31326,7 @@ "flags": {}, "type": { "type": "reference", - "id": 527, + "id": 539, "typeArguments": [ { "type": "reference", @@ -30699,7 +31422,7 @@ "flags": {}, "type": { "type": "reference", - "id": 505, + "id": 517, "typeArguments": [ { "type": "literal", @@ -30708,7 +31431,7 @@ ], "name": "RealtimePostgresChangesFilter", "dereferenced": { - "id": 505, + "id": 517, "name": "RealtimePostgresChangesFilter", "kind": 4194304, "kindString": "Type alias", @@ -30722,7 +31445,7 @@ ], "typeParameter": [ { - "id": 511, + "id": 523, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -30734,7 +31457,7 @@ [ { "type": "reference", - "id": 580, + "id": 592, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT" }, "" @@ -30746,14 +31469,14 @@ "type": { "type": "reflection", "declaration": { - "id": 506, + "id": 518, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 507, + "id": 519, "name": "event", "kind": 1024, "kindString": "Property", @@ -30770,13 +31493,13 @@ ], "type": { "type": "reference", - "id": 511, + "id": 523, "name": "T", "dereferenced": {} } }, { - "id": 510, + "id": 522, "name": "filter", "kind": 1024, "kindString": "Property", @@ -30799,7 +31522,7 @@ } }, { - "id": 508, + "id": 520, "name": "schema", "kind": 1024, "kindString": "Property", @@ -30820,7 +31543,7 @@ } }, { - "id": 509, + "id": 521, "name": "table", "kind": 1024, "kindString": "Property", @@ -30848,10 +31571,10 @@ "title": "Properties", "kind": 1024, "children": [ - 507, - 510, - 508, - 509 + 519, + 522, + 520, + 521 ] } ], @@ -30897,7 +31620,7 @@ "flags": {}, "type": { "type": "reference", - "id": 536, + "id": 548, "typeArguments": [ { "type": "reference", @@ -31434,7 +32157,7 @@ ], "type": { "type": "reference", - "id": 566, + "id": 578, "typeArguments": [ { "type": "reference", @@ -32240,7 +32963,7 @@ ], "type": { "type": "reference", - "id": 566, + "id": 578, "typeArguments": [ { "type": "reflection", @@ -32255,7 +32978,7 @@ ], "name": "RealtimePresenceState", "dereferenced": { - "id": 566, + "id": 578, "name": "RealtimePresenceState", "kind": 4194304, "kindString": "Type alias", @@ -32269,7 +32992,7 @@ ], "typeParameter": [ { - "id": 574, + "id": 586, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -32277,7 +33000,7 @@ "type": { "type": "reflection", "declaration": { - "id": 570, + "id": 582, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -32290,14 +33013,14 @@ } ], "indexSignature": { - "id": 571, + "id": 583, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 572, + "id": 584, "name": "key", "kind": 32768, "flags": {}, @@ -32317,7 +33040,7 @@ "default": { "type": "reflection", "declaration": { - "id": 573, + "id": 585, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -32336,7 +33059,7 @@ "type": { "type": "reflection", "declaration": { - "id": 567, + "id": 579, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -32349,14 +33072,14 @@ } ], "indexSignature": { - "id": 568, + "id": 580, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 569, + "id": 581, "name": "key", "kind": 32768, "flags": {}, @@ -32373,7 +33096,7 @@ "typeArguments": [ { "type": "reference", - "id": 574, + "id": 586, "name": "T" } ], @@ -32688,7 +33411,7 @@ } }, { - "id": 479, + "id": 491, "name": "RealtimeClientOptions", "kind": 4194304, "kindString": "Type alias", @@ -32703,14 +33426,14 @@ "type": { "type": "reflection", "declaration": { - "id": 480, + "id": 492, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 486, + "id": 498, "name": "decode", "kind": 1024, "kindString": "Property", @@ -32732,7 +33455,7 @@ } }, { - "id": 485, + "id": 497, "name": "encode", "kind": 1024, "kindString": "Property", @@ -32754,7 +33477,7 @@ } }, { - "id": 497, + "id": 509, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -32774,7 +33497,7 @@ } }, { - "id": 488, + "id": 500, "name": "headers", "kind": 1024, "kindString": "Property", @@ -32791,7 +33514,7 @@ "type": { "type": "reflection", "declaration": { - "id": 489, + "id": 501, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -32804,14 +33527,14 @@ } ], "indexSignature": { - "id": 490, + "id": 502, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 491, + "id": 503, "name": "key", "kind": 32768, "flags": {}, @@ -32830,7 +33553,7 @@ } }, { - "id": 483, + "id": 495, "name": "heartbeatIntervalMs", "kind": 1024, "kindString": "Property", @@ -32850,7 +33573,7 @@ } }, { - "id": 496, + "id": 508, "name": "log_level", "kind": 1024, "kindString": "Property", @@ -32887,7 +33610,7 @@ } }, { - "id": 484, + "id": 496, "name": "logger", "kind": 1024, "kindString": "Property", @@ -32909,7 +33632,7 @@ } }, { - "id": 492, + "id": 504, "name": "params", "kind": 1024, "kindString": "Property", @@ -32926,7 +33649,7 @@ "type": { "type": "reflection", "declaration": { - "id": 493, + "id": 505, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -32939,14 +33662,14 @@ } ], "indexSignature": { - "id": 494, + "id": 506, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 495, + "id": 507, "name": "key", "kind": 32768, "flags": {}, @@ -32965,7 +33688,7 @@ } }, { - "id": 487, + "id": 499, "name": "reconnectAfterMs", "kind": 1024, "kindString": "Property", @@ -32987,7 +33710,7 @@ } }, { - "id": 482, + "id": 494, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -33007,7 +33730,7 @@ } }, { - "id": 481, + "id": 493, "name": "transport", "kind": 1024, "kindString": "Property", @@ -33032,17 +33755,17 @@ "title": "Properties", "kind": 1024, "children": [ - 486, - 485, + 498, 497, - 488, - 483, + 509, + 500, + 495, + 508, 496, - 484, - 492, - 487, - 482, - 481 + 504, + 499, + 494, + 493 ] } ], @@ -33057,7 +33780,7 @@ } }, { - "id": 498, + "id": 510, "name": "RealtimeMessage", "kind": 4194304, "kindString": "Type alias", @@ -33072,14 +33795,14 @@ "type": { "type": "reflection", "declaration": { - "id": 499, + "id": 511, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 501, + "id": 513, "name": "event", "kind": 1024, "kindString": "Property", @@ -33097,7 +33820,7 @@ } }, { - "id": 504, + "id": 516, "name": "join_ref", "kind": 1024, "kindString": "Property", @@ -33117,7 +33840,7 @@ } }, { - "id": 502, + "id": 514, "name": "payload", "kind": 1024, "kindString": "Property", @@ -33135,7 +33858,7 @@ } }, { - "id": 503, + "id": 515, "name": "ref", "kind": 1024, "kindString": "Property", @@ -33153,7 +33876,7 @@ } }, { - "id": 500, + "id": 512, "name": "topic", "kind": 1024, "kindString": "Property", @@ -33176,11 +33899,11 @@ "title": "Properties", "kind": 1024, "children": [ - 501, - 504, - 502, - 503, - 500 + 513, + 516, + 514, + 515, + 512 ] } ], @@ -33195,7 +33918,7 @@ } }, { - "id": 505, + "id": 517, "name": "RealtimePostgresChangesFilter", "kind": 4194304, "kindString": "Type alias", @@ -33209,7 +33932,7 @@ ], "typeParameter": [ { - "id": 511, + "id": 523, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -33221,7 +33944,7 @@ [ { "type": "reference", - "id": 580, + "id": 592, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT" }, "" @@ -33233,14 +33956,14 @@ "type": { "type": "reflection", "declaration": { - "id": 506, + "id": 518, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 507, + "id": 519, "name": "event", "kind": 1024, "kindString": "Property", @@ -33257,13 +33980,13 @@ ], "type": { "type": "reference", - "id": 511, + "id": 523, "name": "T", "dereferenced": {} } }, { - "id": 510, + "id": 522, "name": "filter", "kind": 1024, "kindString": "Property", @@ -33286,7 +34009,7 @@ } }, { - "id": 508, + "id": 520, "name": "schema", "kind": 1024, "kindString": "Property", @@ -33307,7 +34030,7 @@ } }, { - "id": 509, + "id": 521, "name": "table", "kind": 1024, "kindString": "Property", @@ -33335,10 +34058,10 @@ "title": "Properties", "kind": 1024, "children": [ - 507, - 510, - 508, - 509 + 519, + 522, + 520, + 521 ] } ], @@ -33353,7 +34076,7 @@ } }, { - "id": 512, + "id": 524, "name": "RealtimePostgresChangesPayload", "kind": 4194304, "kindString": "Type alias", @@ -33367,7 +34090,7 @@ ], "typeParameter": [ { - "id": 516, + "id": 528, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -33375,7 +34098,7 @@ "type": { "type": "reflection", "declaration": { - "id": 513, + "id": 525, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -33388,14 +34111,14 @@ } ], "indexSignature": { - "id": 514, + "id": 526, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 515, + "id": 527, "name": "key", "kind": 32768, "flags": {}, @@ -33418,7 +34141,7 @@ "type": "union", "types": [ { - "id": 517, + "id": 529, "name": "RealtimePostgresInsertPayload", "kind": 4194304, "kindString": "Type alias", @@ -33432,7 +34155,7 @@ ], "typeParameter": [ { - "id": 526, + "id": 538, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -33440,7 +34163,7 @@ "type": { "type": "reflection", "declaration": { - "id": 523, + "id": 535, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -33453,14 +34176,14 @@ } ], "indexSignature": { - "id": 524, + "id": 536, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 525, + "id": 537, "name": "key", "kind": 32768, "flags": {}, @@ -33489,14 +34212,14 @@ { "type": "reflection", "declaration": { - "id": 518, + "id": 530, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 519, + "id": 531, "name": "eventType", "kind": 1024, "kindString": "Property", @@ -33515,7 +34238,7 @@ [ { "type": "reference", - "id": 582, + "id": 594, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT.INSERT" }, "" @@ -33524,7 +34247,7 @@ } }, { - "id": 520, + "id": 532, "name": "new", "kind": 1024, "kindString": "Property", @@ -33538,12 +34261,12 @@ ], "type": { "type": "reference", - "id": 526, + "id": 538, "name": "T" } }, { - "id": 521, + "id": 533, "name": "old", "kind": 1024, "kindString": "Property", @@ -33558,7 +34281,7 @@ "type": { "type": "reflection", "declaration": { - "id": 522, + "id": 534, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -33579,9 +34302,9 @@ "title": "Properties", "kind": 1024, "children": [ - 519, - 520, - 521 + 531, + 532, + 533 ] } ], @@ -33598,7 +34321,7 @@ } }, { - "id": 527, + "id": 539, "name": "RealtimePostgresUpdatePayload", "kind": 4194304, "kindString": "Type alias", @@ -33612,7 +34335,7 @@ ], "typeParameter": [ { - "id": 535, + "id": 547, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -33620,7 +34343,7 @@ "type": { "type": "reflection", "declaration": { - "id": 532, + "id": 544, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -33633,14 +34356,14 @@ } ], "indexSignature": { - "id": 533, + "id": 545, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 534, + "id": 546, "name": "key", "kind": 32768, "flags": {}, @@ -33669,14 +34392,14 @@ { "type": "reflection", "declaration": { - "id": 528, + "id": 540, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 529, + "id": 541, "name": "eventType", "kind": 1024, "kindString": "Property", @@ -33695,7 +34418,7 @@ [ { "type": "reference", - "id": 583, + "id": 595, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT.UPDATE" }, "" @@ -33704,7 +34427,7 @@ } }, { - "id": 530, + "id": 542, "name": "new", "kind": 1024, "kindString": "Property", @@ -33718,12 +34441,12 @@ ], "type": { "type": "reference", - "id": 535, + "id": 547, "name": "T" } }, { - "id": 531, + "id": 543, "name": "old", "kind": 1024, "kindString": "Property", @@ -33740,7 +34463,7 @@ "typeArguments": [ { "type": "reference", - "id": 535, + "id": 547, "name": "T" } ], @@ -33755,9 +34478,9 @@ "title": "Properties", "kind": 1024, "children": [ - 529, - 530, - 531 + 541, + 542, + 543 ] } ], @@ -33774,7 +34497,7 @@ } }, { - "id": 536, + "id": 548, "name": "RealtimePostgresDeletePayload", "kind": 4194304, "kindString": "Type alias", @@ -33788,7 +34511,7 @@ ], "typeParameter": [ { - "id": 545, + "id": 557, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -33796,7 +34519,7 @@ "type": { "type": "reflection", "declaration": { - "id": 542, + "id": 554, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -33809,14 +34532,14 @@ } ], "indexSignature": { - "id": 543, + "id": 555, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 544, + "id": 556, "name": "key", "kind": 32768, "flags": {}, @@ -33845,14 +34568,14 @@ { "type": "reflection", "declaration": { - "id": 537, + "id": 549, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 538, + "id": 550, "name": "eventType", "kind": 1024, "kindString": "Property", @@ -33871,7 +34594,7 @@ [ { "type": "reference", - "id": 584, + "id": 596, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT.DELETE" }, "" @@ -33880,7 +34603,7 @@ } }, { - "id": 539, + "id": 551, "name": "new", "kind": 1024, "kindString": "Property", @@ -33895,7 +34618,7 @@ "type": { "type": "reflection", "declaration": { - "id": 540, + "id": 552, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -33911,7 +34634,7 @@ } }, { - "id": 541, + "id": 553, "name": "old", "kind": 1024, "kindString": "Property", @@ -33928,7 +34651,7 @@ "typeArguments": [ { "type": "reference", - "id": 545, + "id": 557, "name": "T" } ], @@ -33943,9 +34666,9 @@ "title": "Properties", "kind": 1024, "children": [ - 538, - 539, - 541 + 550, + 551, + 553 ] } ], @@ -33965,7 +34688,7 @@ } }, { - "id": 536, + "id": 548, "name": "RealtimePostgresDeletePayload", "kind": 4194304, "kindString": "Type alias", @@ -33979,7 +34702,7 @@ ], "typeParameter": [ { - "id": 545, + "id": 557, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -33987,7 +34710,7 @@ "type": { "type": "reflection", "declaration": { - "id": 542, + "id": 554, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -34000,14 +34723,14 @@ } ], "indexSignature": { - "id": 543, + "id": 555, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 544, + "id": 556, "name": "key", "kind": 32768, "flags": {}, @@ -34036,14 +34759,14 @@ { "type": "reflection", "declaration": { - "id": 537, + "id": 549, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 538, + "id": 550, "name": "eventType", "kind": 1024, "kindString": "Property", @@ -34062,7 +34785,7 @@ [ { "type": "reference", - "id": 584, + "id": 596, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT.DELETE" }, "" @@ -34071,7 +34794,7 @@ } }, { - "id": 539, + "id": 551, "name": "new", "kind": 1024, "kindString": "Property", @@ -34086,7 +34809,7 @@ "type": { "type": "reflection", "declaration": { - "id": 540, + "id": 552, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -34102,7 +34825,7 @@ } }, { - "id": 541, + "id": 553, "name": "old", "kind": 1024, "kindString": "Property", @@ -34119,7 +34842,7 @@ "typeArguments": [ { "type": "reference", - "id": 545, + "id": 557, "name": "T" } ], @@ -34134,9 +34857,9 @@ "title": "Properties", "kind": 1024, "children": [ - 538, - 539, - 541 + 550, + 551, + 553 ] } ], @@ -34153,7 +34876,7 @@ } }, { - "id": 517, + "id": 529, "name": "RealtimePostgresInsertPayload", "kind": 4194304, "kindString": "Type alias", @@ -34167,7 +34890,7 @@ ], "typeParameter": [ { - "id": 526, + "id": 538, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -34175,7 +34898,7 @@ "type": { "type": "reflection", "declaration": { - "id": 523, + "id": 535, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -34188,14 +34911,14 @@ } ], "indexSignature": { - "id": 524, + "id": 536, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 525, + "id": 537, "name": "key", "kind": 32768, "flags": {}, @@ -34224,14 +34947,14 @@ { "type": "reflection", "declaration": { - "id": 518, + "id": 530, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 519, + "id": 531, "name": "eventType", "kind": 1024, "kindString": "Property", @@ -34250,7 +34973,7 @@ [ { "type": "reference", - "id": 582, + "id": 594, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT.INSERT" }, "" @@ -34259,7 +34982,7 @@ } }, { - "id": 520, + "id": 532, "name": "new", "kind": 1024, "kindString": "Property", @@ -34273,12 +34996,12 @@ ], "type": { "type": "reference", - "id": 526, + "id": 538, "name": "T" } }, { - "id": 521, + "id": 533, "name": "old", "kind": 1024, "kindString": "Property", @@ -34293,7 +35016,7 @@ "type": { "type": "reflection", "declaration": { - "id": 522, + "id": 534, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -34314,9 +35037,9 @@ "title": "Properties", "kind": 1024, "children": [ - 519, - 520, - 521 + 531, + 532, + 533 ] } ], @@ -34333,7 +35056,7 @@ } }, { - "id": 527, + "id": 539, "name": "RealtimePostgresUpdatePayload", "kind": 4194304, "kindString": "Type alias", @@ -34347,7 +35070,7 @@ ], "typeParameter": [ { - "id": 535, + "id": 547, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -34355,7 +35078,7 @@ "type": { "type": "reflection", "declaration": { - "id": 532, + "id": 544, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -34368,14 +35091,14 @@ } ], "indexSignature": { - "id": 533, + "id": 545, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 534, + "id": 546, "name": "key", "kind": 32768, "flags": {}, @@ -34404,14 +35127,14 @@ { "type": "reflection", "declaration": { - "id": 528, + "id": 540, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 529, + "id": 541, "name": "eventType", "kind": 1024, "kindString": "Property", @@ -34430,7 +35153,7 @@ [ { "type": "reference", - "id": 583, + "id": 595, "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT.UPDATE" }, "" @@ -34439,7 +35162,7 @@ } }, { - "id": 530, + "id": 542, "name": "new", "kind": 1024, "kindString": "Property", @@ -34453,12 +35176,12 @@ ], "type": { "type": "reference", - "id": 535, + "id": 547, "name": "T" } }, { - "id": 531, + "id": 543, "name": "old", "kind": 1024, "kindString": "Property", @@ -34475,7 +35198,7 @@ "typeArguments": [ { "type": "reference", - "id": 535, + "id": 547, "name": "T" } ], @@ -34490,9 +35213,9 @@ "title": "Properties", "kind": 1024, "children": [ - 529, - 530, - 531 + 541, + 542, + 543 ] } ], @@ -34509,7 +35232,7 @@ } }, { - "id": 546, + "id": 558, "name": "RealtimePresenceJoinPayload", "kind": 4194304, "kindString": "Type alias", @@ -34523,7 +35246,7 @@ ], "typeParameter": [ { - "id": 555, + "id": 567, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -34531,7 +35254,7 @@ "type": { "type": "reflection", "declaration": { - "id": 552, + "id": 564, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -34544,14 +35267,14 @@ } ], "indexSignature": { - "id": 553, + "id": 565, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 554, + "id": 566, "name": "key", "kind": 32768, "flags": {}, @@ -34573,14 +35296,14 @@ "type": { "type": "reflection", "declaration": { - "id": 547, + "id": 559, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 550, + "id": 562, "name": "currentPresences", "kind": 1024, "kindString": "Property", @@ -34599,7 +35322,7 @@ "typeArguments": [ { "type": "reference", - "id": 555, + "id": 567, "name": "T" } ], @@ -34608,7 +35331,7 @@ } }, { - "id": 548, + "id": 560, "name": "event", "kind": 1024, "kindString": "Property", @@ -34627,7 +35350,7 @@ [ { "type": "reference", - "id": 587, + "id": 599, "name": "REALTIME_PRESENCE_LISTEN_EVENTS.JOIN" }, "" @@ -34636,7 +35359,7 @@ } }, { - "id": 549, + "id": 561, "name": "key", "kind": 1024, "kindString": "Property", @@ -34654,7 +35377,7 @@ } }, { - "id": 551, + "id": 563, "name": "newPresences", "kind": 1024, "kindString": "Property", @@ -34673,7 +35396,7 @@ "typeArguments": [ { "type": "reference", - "id": 555, + "id": 567, "name": "T" } ], @@ -34687,10 +35410,10 @@ "title": "Properties", "kind": 1024, "children": [ - 550, - 548, - 549, - 551 + 562, + 560, + 561, + 563 ] } ], @@ -34705,7 +35428,7 @@ } }, { - "id": 556, + "id": 568, "name": "RealtimePresenceLeavePayload", "kind": 4194304, "kindString": "Type alias", @@ -34719,7 +35442,7 @@ ], "typeParameter": [ { - "id": 565, + "id": 577, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -34727,7 +35450,7 @@ "type": { "type": "reflection", "declaration": { - "id": 562, + "id": 574, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -34740,14 +35463,14 @@ } ], "indexSignature": { - "id": 563, + "id": 575, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 564, + "id": 576, "name": "key", "kind": 32768, "flags": {}, @@ -34769,14 +35492,14 @@ "type": { "type": "reflection", "declaration": { - "id": 557, + "id": 569, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 560, + "id": 572, "name": "currentPresences", "kind": 1024, "kindString": "Property", @@ -34795,7 +35518,7 @@ "typeArguments": [ { "type": "reference", - "id": 565, + "id": 577, "name": "T" } ], @@ -34804,7 +35527,7 @@ } }, { - "id": 558, + "id": 570, "name": "event", "kind": 1024, "kindString": "Property", @@ -34823,7 +35546,7 @@ [ { "type": "reference", - "id": 588, + "id": 600, "name": "REALTIME_PRESENCE_LISTEN_EVENTS.LEAVE" }, "" @@ -34832,7 +35555,7 @@ } }, { - "id": 559, + "id": 571, "name": "key", "kind": 1024, "kindString": "Property", @@ -34850,7 +35573,7 @@ } }, { - "id": 561, + "id": 573, "name": "leftPresences", "kind": 1024, "kindString": "Property", @@ -34869,7 +35592,7 @@ "typeArguments": [ { "type": "reference", - "id": 565, + "id": 577, "name": "T" } ], @@ -34883,10 +35606,10 @@ "title": "Properties", "kind": 1024, "children": [ - 560, - 558, - 559, - 561 + 572, + 570, + 571, + 573 ] } ], @@ -34901,7 +35624,7 @@ } }, { - "id": 566, + "id": 578, "name": "RealtimePresenceState", "kind": 4194304, "kindString": "Type alias", @@ -34915,7 +35638,7 @@ ], "typeParameter": [ { - "id": 574, + "id": 586, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -34923,7 +35646,7 @@ "type": { "type": "reflection", "declaration": { - "id": 570, + "id": 582, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -34936,14 +35659,14 @@ } ], "indexSignature": { - "id": 571, + "id": 583, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 572, + "id": 584, "name": "key", "kind": 32768, "flags": {}, @@ -34963,7 +35686,7 @@ "default": { "type": "reflection", "declaration": { - "id": 573, + "id": 585, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -34982,7 +35705,7 @@ "type": { "type": "reflection", "declaration": { - "id": 567, + "id": 579, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -34995,14 +35718,14 @@ } ], "indexSignature": { - "id": 568, + "id": 580, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 569, + "id": 581, "name": "key", "kind": 32768, "flags": {}, @@ -35019,7 +35742,7 @@ "typeArguments": [ { "type": "reference", - "id": 574, + "id": 586, "name": "T" } ], @@ -35031,7 +35754,7 @@ } }, { - "id": 575, + "id": 587, "name": "RealtimeRemoveChannelResponse", "kind": 4194304, "kindString": "Type alias", @@ -35062,7 +35785,7 @@ } }, { - "id": 594, + "id": 606, "name": "REALTIME_CHANNEL_STATES", "kind": 32, "kindString": "Variable", @@ -35091,10 +35814,10 @@ "title": "Enumerations", "kind": 8, "children": [ - 576, - 580, - 585, - 589 + 588, + 592, + 597, + 601 ] }, { @@ -35112,24 +35835,24 @@ "children": [ 347, 358, - 479, - 498, - 505, - 512, - 536, + 491, + 510, 517, - 527, - 546, - 556, - 566, - 575 + 524, + 548, + 529, + 539, + 558, + 568, + 578, + 587 ] }, { "title": "Variables", "kind": 32, "children": [ - 594 + 606 ] } ], diff --git a/apps/docs/spec/enrichments/tsdoc_v2/storage.json b/apps/docs/spec/enrichments/tsdoc_v2/storage.json index 189728b0816..bb6657db2fe 100644 --- a/apps/docs/spec/enrichments/tsdoc_v2/storage.json +++ b/apps/docs/spec/enrichments/tsdoc_v2/storage.json @@ -13,14 +13,14 @@ "flags": {}, "children": [ { - "id": 445, + "id": 449, "name": "StorageApiError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 446, + "id": 450, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -34,14 +34,14 @@ ], "signatures": [ { - "id": 447, + "id": 451, "name": "new StorageApiError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 448, + "id": 452, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -52,7 +52,7 @@ } }, { - "id": 449, + "id": 453, "name": "status", "kind": 32768, "kindString": "Parameter", @@ -65,24 +65,24 @@ ], "type": { "type": "reference", - "id": 445, + "id": 449, "name": "StorageApiError" }, "overwrites": { "type": "reference", - "id": 442, + "id": 446, "name": "StorageError.constructor" } } ], "overwrites": { "type": "reference", - "id": 441, + "id": 445, "name": "StorageError.constructor" } }, { - "id": 450, + "id": 454, "name": "status", "kind": 1024, "kindString": "Property", @@ -100,7 +100,7 @@ } }, { - "id": 451, + "id": 455, "name": "toJSON", "kind": 2048, "kindString": "Method", @@ -114,7 +114,7 @@ ], "signatures": [ { - "id": 452, + "id": 456, "name": "toJSON", "kind": 4096, "kindString": "Call signature", @@ -122,14 +122,14 @@ "type": { "type": "reflection", "declaration": { - "id": 453, + "id": 457, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 455, + "id": 459, "name": "message", "kind": 1024, "kindString": "Property", @@ -148,7 +148,7 @@ "defaultValue": "..." }, { - "id": 454, + "id": 458, "name": "name", "kind": 1024, "kindString": "Property", @@ -167,7 +167,7 @@ "defaultValue": "..." }, { - "id": 456, + "id": 460, "name": "status", "kind": 1024, "kindString": "Property", @@ -191,9 +191,9 @@ "title": "Properties", "kind": 1024, "children": [ - 455, - 454, - 456 + 459, + 458, + 460 ] } ] @@ -208,21 +208,21 @@ "title": "Constructors", "kind": 512, "children": [ - 446 + 450 ] }, { "title": "Properties", "kind": 1024, "children": [ - 450 + 454 ] }, { "title": "Methods", "kind": 2048, "children": [ - 451 + 455 ] } ], @@ -236,20 +236,20 @@ "extendedTypes": [ { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } ] }, { - "id": 300, + "id": 304, "name": "StorageClient", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 301, + "id": 305, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -263,14 +263,14 @@ ], "signatures": [ { - "id": 302, + "id": 306, "name": "new StorageClient", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 303, + "id": 307, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -281,7 +281,7 @@ } }, { - "id": 304, + "id": 308, "name": "headers", "kind": 32768, "kindString": "Parameter", @@ -289,20 +289,20 @@ "type": { "type": "reflection", "declaration": { - "id": 305, + "id": 309, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": { - "id": 306, + "id": 310, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 307, + "id": 311, "name": "key", "kind": 32768, "flags": {}, @@ -322,7 +322,7 @@ "defaultValue": "{}" }, { - "id": 308, + "id": 312, "name": "fetch", "kind": 32768, "kindString": "Parameter", @@ -332,21 +332,21 @@ "type": { "type": "reflection", "declaration": { - "id": 309, + "id": 313, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 310, + "id": 314, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 311, + "id": 315, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -359,7 +359,7 @@ } }, { - "id": 312, + "id": 316, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -396,7 +396,7 @@ ], "type": { "type": "reference", - "id": 300, + "id": 304, "name": "StorageClient" }, "overwrites": { @@ -413,7 +413,7 @@ } }, { - "id": 343, + "id": 347, "name": "createBucket", "kind": 2048, "kindString": "Method", @@ -427,7 +427,7 @@ ], "signatures": [ { - "id": 344, + "id": 348, "name": "createBucket", "kind": 4096, "kindString": "Call signature", @@ -438,7 +438,7 @@ }, "parameters": [ { - "id": 345, + "id": 349, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -452,7 +452,7 @@ } }, { - "id": 346, + "id": 350, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -460,14 +460,14 @@ "type": { "type": "reflection", "declaration": { - "id": 347, + "id": 351, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 350, + "id": 354, "name": "allowedMimeTypes", "kind": 1024, "kindString": "Property", @@ -502,7 +502,7 @@ } }, { - "id": 349, + "id": 353, "name": "fileSizeLimit", "kind": 1024, "kindString": "Property", @@ -538,7 +538,7 @@ } }, { - "id": 348, + "id": 352, "name": "public", "kind": 1024, "kindString": "Property", @@ -564,9 +564,9 @@ "title": "Properties", "kind": 1024, "children": [ - 350, - 349, - 348 + 354, + 353, + 352 ] } ] @@ -584,14 +584,14 @@ { "type": "reflection", "declaration": { - "id": 351, + "id": 355, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 352, + "id": 356, "name": "data", "kind": 1024, "kindString": "Property", @@ -608,7 +608,7 @@ "typeArguments": [ { "type": "reference", - "id": 395, + "id": 399, "name": "Bucket" }, { @@ -622,7 +622,7 @@ } }, { - "id": 353, + "id": 357, "name": "error", "kind": 1024, "kindString": "Property", @@ -645,8 +645,8 @@ "title": "Properties", "kind": 1024, "children": [ - 352, - 353 + 356, + 357 ] } ] @@ -655,14 +655,14 @@ { "type": "reflection", "declaration": { - "id": 354, + "id": 358, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 355, + "id": 359, "name": "data", "kind": 1024, "kindString": "Property", @@ -680,7 +680,7 @@ } }, { - "id": 356, + "id": 360, "name": "error", "kind": 1024, "kindString": "Property", @@ -694,7 +694,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -704,8 +704,8 @@ "title": "Properties", "kind": 1024, "children": [ - 355, - 356 + 359, + 360 ] } ] @@ -732,7 +732,7 @@ } }, { - "id": 384, + "id": 388, "name": "deleteBucket", "kind": 2048, "kindString": "Method", @@ -746,7 +746,7 @@ ], "signatures": [ { - "id": 385, + "id": 389, "name": "deleteBucket", "kind": 4096, "kindString": "Call signature", @@ -756,7 +756,7 @@ }, "parameters": [ { - "id": 386, + "id": 390, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -779,14 +779,14 @@ { "type": "reflection", "declaration": { - "id": 387, + "id": 391, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 388, + "id": 392, "name": "data", "kind": 1024, "kindString": "Property", @@ -801,14 +801,14 @@ "type": { "type": "reflection", "declaration": { - "id": 389, + "id": 393, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 390, + "id": 394, "name": "message", "kind": 1024, "kindString": "Property", @@ -831,7 +831,7 @@ "title": "Properties", "kind": 1024, "children": [ - 390 + 394 ] } ] @@ -839,7 +839,7 @@ } }, { - "id": 391, + "id": 395, "name": "error", "kind": 1024, "kindString": "Property", @@ -862,8 +862,8 @@ "title": "Properties", "kind": 1024, "children": [ - 388, - 391 + 392, + 395 ] } ] @@ -872,14 +872,14 @@ { "type": "reflection", "declaration": { - "id": 392, + "id": 396, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 393, + "id": 397, "name": "data", "kind": 1024, "kindString": "Property", @@ -897,7 +897,7 @@ } }, { - "id": 394, + "id": 398, "name": "error", "kind": 1024, "kindString": "Property", @@ -911,7 +911,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -921,8 +921,8 @@ "title": "Properties", "kind": 1024, "children": [ - 393, - 394 + 397, + 398 ] } ] @@ -949,7 +949,7 @@ } }, { - "id": 373, + "id": 377, "name": "emptyBucket", "kind": 2048, "kindString": "Method", @@ -963,7 +963,7 @@ ], "signatures": [ { - "id": 374, + "id": 378, "name": "emptyBucket", "kind": 4096, "kindString": "Call signature", @@ -973,7 +973,7 @@ }, "parameters": [ { - "id": 375, + "id": 379, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -996,14 +996,14 @@ { "type": "reflection", "declaration": { - "id": 376, + "id": 380, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 377, + "id": 381, "name": "data", "kind": 1024, "kindString": "Property", @@ -1018,14 +1018,14 @@ "type": { "type": "reflection", "declaration": { - "id": 378, + "id": 382, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 379, + "id": 383, "name": "message", "kind": 1024, "kindString": "Property", @@ -1048,7 +1048,7 @@ "title": "Properties", "kind": 1024, "children": [ - 379 + 383 ] } ] @@ -1056,7 +1056,7 @@ } }, { - "id": 380, + "id": 384, "name": "error", "kind": 1024, "kindString": "Property", @@ -1079,8 +1079,8 @@ "title": "Properties", "kind": 1024, "children": [ - 377, - 380 + 381, + 384 ] } ] @@ -1089,14 +1089,14 @@ { "type": "reflection", "declaration": { - "id": 381, + "id": 385, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 382, + "id": 386, "name": "data", "kind": 1024, "kindString": "Property", @@ -1114,7 +1114,7 @@ } }, { - "id": 383, + "id": 387, "name": "error", "kind": 1024, "kindString": "Property", @@ -1128,7 +1128,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -1138,8 +1138,8 @@ "title": "Properties", "kind": 1024, "children": [ - 382, - 383 + 386, + 387 ] } ] @@ -1166,7 +1166,7 @@ } }, { - "id": 313, + "id": 317, "name": "from", "kind": 2048, "kindString": "Method", @@ -1180,7 +1180,7 @@ ], "signatures": [ { - "id": 314, + "id": 318, "name": "from", "kind": 4096, "kindString": "Call signature", @@ -1190,7 +1190,7 @@ }, "parameters": [ { - "id": 315, + "id": 319, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -1213,7 +1213,7 @@ ] }, { - "id": 334, + "id": 338, "name": "getBucket", "kind": 2048, "kindString": "Method", @@ -1227,7 +1227,7 @@ ], "signatures": [ { - "id": 335, + "id": 339, "name": "getBucket", "kind": 4096, "kindString": "Call signature", @@ -1237,7 +1237,7 @@ }, "parameters": [ { - "id": 336, + "id": 340, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -1260,14 +1260,14 @@ { "type": "reflection", "declaration": { - "id": 337, + "id": 341, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 338, + "id": 342, "name": "data", "kind": 1024, "kindString": "Property", @@ -1281,12 +1281,12 @@ ], "type": { "type": "reference", - "id": 395, + "id": 399, "name": "Bucket" } }, { - "id": 339, + "id": 343, "name": "error", "kind": 1024, "kindString": "Property", @@ -1309,8 +1309,8 @@ "title": "Properties", "kind": 1024, "children": [ - 338, - 339 + 342, + 343 ] } ] @@ -1319,14 +1319,14 @@ { "type": "reflection", "declaration": { - "id": 340, + "id": 344, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 341, + "id": 345, "name": "data", "kind": 1024, "kindString": "Property", @@ -1344,7 +1344,7 @@ } }, { - "id": 342, + "id": 346, "name": "error", "kind": 1024, "kindString": "Property", @@ -1358,7 +1358,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -1368,8 +1368,8 @@ "title": "Properties", "kind": 1024, "children": [ - 341, - 342 + 345, + 346 ] } ] @@ -1396,7 +1396,7 @@ } }, { - "id": 326, + "id": 330, "name": "listBuckets", "kind": 2048, "kindString": "Method", @@ -1410,7 +1410,7 @@ ], "signatures": [ { - "id": 327, + "id": 331, "name": "listBuckets", "kind": 4096, "kindString": "Call signature", @@ -1427,14 +1427,14 @@ { "type": "reflection", "declaration": { - "id": 328, + "id": 332, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 329, + "id": 333, "name": "data", "kind": 1024, "kindString": "Property", @@ -1450,13 +1450,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 395, + "id": 399, "name": "Bucket" } } }, { - "id": 330, + "id": 334, "name": "error", "kind": 1024, "kindString": "Property", @@ -1479,8 +1479,8 @@ "title": "Properties", "kind": 1024, "children": [ - 329, - 330 + 333, + 334 ] } ] @@ -1489,14 +1489,14 @@ { "type": "reflection", "declaration": { - "id": 331, + "id": 335, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 332, + "id": 336, "name": "data", "kind": 1024, "kindString": "Property", @@ -1514,7 +1514,7 @@ } }, { - "id": 333, + "id": 337, "name": "error", "kind": 1024, "kindString": "Property", @@ -1528,7 +1528,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -1538,8 +1538,8 @@ "title": "Properties", "kind": 1024, "children": [ - 332, - 333 + 336, + 337 ] } ] @@ -1566,7 +1566,7 @@ } }, { - "id": 357, + "id": 361, "name": "updateBucket", "kind": 2048, "kindString": "Method", @@ -1580,7 +1580,7 @@ ], "signatures": [ { - "id": 358, + "id": 362, "name": "updateBucket", "kind": 4096, "kindString": "Call signature", @@ -1590,7 +1590,7 @@ }, "parameters": [ { - "id": 359, + "id": 363, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -1604,7 +1604,7 @@ } }, { - "id": 360, + "id": 364, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -1612,14 +1612,14 @@ "type": { "type": "reflection", "declaration": { - "id": 361, + "id": 365, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 364, + "id": 368, "name": "allowedMimeTypes", "kind": 1024, "kindString": "Property", @@ -1654,7 +1654,7 @@ } }, { - "id": 363, + "id": 367, "name": "fileSizeLimit", "kind": 1024, "kindString": "Property", @@ -1690,7 +1690,7 @@ } }, { - "id": 362, + "id": 366, "name": "public", "kind": 1024, "kindString": "Property", @@ -1716,9 +1716,9 @@ "title": "Properties", "kind": 1024, "children": [ - 364, - 363, - 362 + 368, + 367, + 366 ] } ] @@ -1735,14 +1735,14 @@ { "type": "reflection", "declaration": { - "id": 365, + "id": 369, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 366, + "id": 370, "name": "data", "kind": 1024, "kindString": "Property", @@ -1757,14 +1757,14 @@ "type": { "type": "reflection", "declaration": { - "id": 367, + "id": 371, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 368, + "id": 372, "name": "message", "kind": 1024, "kindString": "Property", @@ -1787,7 +1787,7 @@ "title": "Properties", "kind": 1024, "children": [ - 368 + 372 ] } ] @@ -1795,7 +1795,7 @@ } }, { - "id": 369, + "id": 373, "name": "error", "kind": 1024, "kindString": "Property", @@ -1818,8 +1818,8 @@ "title": "Properties", "kind": 1024, "children": [ - 366, - 369 + 370, + 373 ] } ] @@ -1828,14 +1828,14 @@ { "type": "reflection", "declaration": { - "id": 370, + "id": 374, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 371, + "id": 375, "name": "data", "kind": 1024, "kindString": "Property", @@ -1853,7 +1853,7 @@ } }, { - "id": 372, + "id": 376, "name": "error", "kind": 1024, "kindString": "Property", @@ -1867,7 +1867,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -1877,8 +1877,8 @@ "title": "Properties", "kind": 1024, "children": [ - 371, - 372 + 375, + 376 ] } ] @@ -1910,20 +1910,20 @@ "title": "Constructors", "kind": 512, "children": [ - 301 + 305 ] }, { "title": "Methods", "kind": 2048, "children": [ - 343, - 384, - 373, - 313, - 334, - 326, - 357 + 347, + 388, + 377, + 317, + 338, + 330, + 361 ] } ], @@ -1943,14 +1943,14 @@ ] }, { - "id": 440, + "id": 444, "name": "StorageError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 441, + "id": 445, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -1964,14 +1964,14 @@ ], "signatures": [ { - "id": 442, + "id": 446, "name": "new StorageError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 443, + "id": 447, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -1984,7 +1984,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" }, "overwrites": { @@ -2004,7 +2004,7 @@ "title": "Constructors", "kind": 512, "children": [ - 441 + 445 ] } ], @@ -2026,25 +2026,25 @@ "extendedBy": [ { "type": "reference", - "id": 445, + "id": 449, "name": "StorageApiError" }, { "type": "reference", - "id": 458, + "id": 462, "name": "StorageUnknownError" } ] }, { - "id": 458, + "id": 462, "name": "StorageUnknownError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 459, + "id": 463, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -2058,14 +2058,14 @@ ], "signatures": [ { - "id": 460, + "id": 464, "name": "new StorageUnknownError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 461, + "id": 465, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -2076,7 +2076,7 @@ } }, { - "id": 462, + "id": 466, "name": "originalError", "kind": 32768, "kindString": "Parameter", @@ -2089,24 +2089,24 @@ ], "type": { "type": "reference", - "id": 458, + "id": 462, "name": "StorageUnknownError" }, "overwrites": { "type": "reference", - "id": 442, + "id": 446, "name": "StorageError.constructor" } } ], "overwrites": { "type": "reference", - "id": 441, + "id": 445, "name": "StorageError.constructor" } }, { - "id": 463, + "id": 467, "name": "originalError", "kind": 1024, "kindString": "Property", @@ -2129,14 +2129,14 @@ "title": "Constructors", "kind": 512, "children": [ - 459 + 463 ] }, { "title": "Properties", "kind": 1024, "children": [ - 463 + 467 ] } ], @@ -2150,20 +2150,20 @@ "extendedTypes": [ { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } ] }, { - "id": 395, + "id": 399, "name": "Bucket", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 400, + "id": 404, "name": "allowed_mime_types", "kind": 1024, "kindString": "Property", @@ -2186,7 +2186,7 @@ } }, { - "id": 401, + "id": 405, "name": "created_at", "kind": 1024, "kindString": "Property", @@ -2204,7 +2204,7 @@ } }, { - "id": 399, + "id": 403, "name": "file_size_limit", "kind": 1024, "kindString": "Property", @@ -2224,7 +2224,7 @@ } }, { - "id": 396, + "id": 400, "name": "id", "kind": 1024, "kindString": "Property", @@ -2242,7 +2242,7 @@ } }, { - "id": 397, + "id": 401, "name": "name", "kind": 1024, "kindString": "Property", @@ -2260,7 +2260,7 @@ } }, { - "id": 398, + "id": 402, "name": "owner", "kind": 1024, "kindString": "Property", @@ -2278,7 +2278,7 @@ } }, { - "id": 403, + "id": 407, "name": "public", "kind": 1024, "kindString": "Property", @@ -2296,7 +2296,7 @@ } }, { - "id": 402, + "id": 406, "name": "updated_at", "kind": 1024, "kindString": "Property", @@ -2319,14 +2319,14 @@ "title": "Properties", "kind": 1024, "children": [ + 404, + 405, + 403, 400, 401, - 399, - 396, - 397, - 398, - 403, - 402 + 402, + 407, + 406 ] } ], @@ -2339,14 +2339,14 @@ ] }, { - "id": 427, + "id": 431, "name": "FetchParameters", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 428, + "id": 432, "name": "signal", "kind": 1024, "kindString": "Property", @@ -2376,7 +2376,7 @@ "title": "Properties", "kind": 1024, "children": [ - 428 + 432 ] } ], @@ -2389,14 +2389,14 @@ ] }, { - "id": 404, + "id": 408, "name": "FileObject", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 406, + "id": 410, "name": "bucket_id", "kind": 1024, "kindString": "Property", @@ -2414,7 +2414,7 @@ } }, { - "id": 413, + "id": 417, "name": "buckets", "kind": 1024, "kindString": "Property", @@ -2428,12 +2428,12 @@ ], "type": { "type": "reference", - "id": 395, + "id": 399, "name": "Bucket" } }, { - "id": 410, + "id": 414, "name": "created_at", "kind": 1024, "kindString": "Property", @@ -2451,7 +2451,7 @@ } }, { - "id": 408, + "id": 412, "name": "id", "kind": 1024, "kindString": "Property", @@ -2469,7 +2469,7 @@ } }, { - "id": 411, + "id": 415, "name": "last_accessed_at", "kind": 1024, "kindString": "Property", @@ -2487,7 +2487,7 @@ } }, { - "id": 412, + "id": 416, "name": "metadata", "kind": 1024, "kindString": "Property", @@ -2517,7 +2517,7 @@ } }, { - "id": 405, + "id": 409, "name": "name", "kind": 1024, "kindString": "Property", @@ -2535,7 +2535,7 @@ } }, { - "id": 407, + "id": 411, "name": "owner", "kind": 1024, "kindString": "Property", @@ -2553,7 +2553,7 @@ } }, { - "id": 409, + "id": 413, "name": "updated_at", "kind": 1024, "kindString": "Property", @@ -2576,15 +2576,15 @@ "title": "Properties", "kind": 1024, "children": [ - 406, - 413, 410, - 408, - 411, + 417, + 414, 412, - 405, - 407, - 409 + 415, + 416, + 409, + 411, + 413 ] } ], @@ -2597,14 +2597,14 @@ ] }, { - "id": 417, + "id": 421, "name": "FileOptions", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 418, + "id": 422, "name": "cacheControl", "kind": 1024, "kindString": "Property", @@ -2627,7 +2627,7 @@ } }, { - "id": 419, + "id": 423, "name": "contentType", "kind": 1024, "kindString": "Property", @@ -2650,7 +2650,7 @@ } }, { - "id": 421, + "id": 425, "name": "duplex", "kind": 1024, "kindString": "Property", @@ -2673,7 +2673,7 @@ } }, { - "id": 420, + "id": 424, "name": "upsert", "kind": 1024, "kindString": "Property", @@ -2701,10 +2701,10 @@ "title": "Properties", "kind": 1024, "children": [ - 418, - 419, - 421, - 420 + 422, + 423, + 425, + 424 ] } ], @@ -2717,14 +2717,14 @@ ] }, { - "id": 429, + "id": 433, "name": "Metadata", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 430, + "id": 434, "name": "name", "kind": 1024, "kindString": "Property", @@ -2747,7 +2747,7 @@ "title": "Properties", "kind": 1024, "children": [ - 430 + 434 ] } ], @@ -2760,14 +2760,14 @@ ] }, { - "id": 422, + "id": 426, "name": "SearchOptions", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 423, + "id": 427, "name": "limit", "kind": 1024, "kindString": "Property", @@ -2790,7 +2790,7 @@ } }, { - "id": 424, + "id": 428, "name": "offset", "kind": 1024, "kindString": "Property", @@ -2813,7 +2813,7 @@ } }, { - "id": 426, + "id": 430, "name": "search", "kind": 1024, "kindString": "Property", @@ -2836,7 +2836,7 @@ } }, { - "id": 425, + "id": 429, "name": "sortBy", "kind": 1024, "kindString": "Property", @@ -2855,7 +2855,7 @@ ], "type": { "type": "reference", - "id": 414, + "id": 418, "name": "SortBy" } } @@ -2865,10 +2865,10 @@ "title": "Properties", "kind": 1024, "children": [ - 423, - 424, - 426, - 425 + 427, + 428, + 430, + 429 ] } ], @@ -2881,14 +2881,14 @@ ] }, { - "id": 414, + "id": 418, "name": "SortBy", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 415, + "id": 419, "name": "column", "kind": 1024, "kindString": "Property", @@ -2908,7 +2908,7 @@ } }, { - "id": 416, + "id": 420, "name": "order", "kind": 1024, "kindString": "Property", @@ -2933,8 +2933,8 @@ "title": "Properties", "kind": 1024, "children": [ - 415, - 416 + 419, + 420 ] } ], @@ -2947,14 +2947,14 @@ ] }, { - "id": 431, + "id": 435, "name": "TransformOptions", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 436, + "id": 440, "name": "format", "kind": 1024, "kindString": "Property", @@ -2978,7 +2978,7 @@ } }, { - "id": 433, + "id": 437, "name": "height", "kind": 1024, "kindString": "Property", @@ -3001,7 +3001,7 @@ } }, { - "id": 435, + "id": 439, "name": "quality", "kind": 1024, "kindString": "Property", @@ -3024,7 +3024,7 @@ } }, { - "id": 434, + "id": 438, "name": "resize", "kind": 1024, "kindString": "Property", @@ -3060,7 +3060,7 @@ } }, { - "id": 432, + "id": 436, "name": "width", "kind": 1024, "kindString": "Property", @@ -3088,11 +3088,11 @@ "title": "Properties", "kind": 1024, "children": [ - 436, - 433, - 435, - 434, - 432 + 440, + 437, + 439, + 438, + 436 ] } ], @@ -3105,7 +3105,7 @@ ] }, { - "id": 437, + "id": 441, "name": "isStorageError", "kind": 64, "kindString": "Function", @@ -3119,14 +3119,14 @@ ], "signatures": [ { - "id": 438, + "id": 442, "name": "isStorageError", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 439, + "id": 443, "name": "error", "kind": 32768, "kindString": "Parameter", @@ -3143,7 +3143,7 @@ "asserts": false, "targetType": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -3156,31 +3156,31 @@ "title": "Classes", "kind": 128, "children": [ - 445, - 300, - 440, - 458 + 449, + 304, + 444, + 462 ] }, { "title": "Interfaces", "kind": 256, "children": [ - 395, - 427, - 404, - 417, - 429, - 422, - 414, - 431 + 399, + 431, + 408, + 421, + 433, + 426, + 418, + 435 ] }, { "title": "Functions", "kind": 64, "children": [ - 437 + 441 ] } ], @@ -3556,7 +3556,7 @@ "typeArguments": [ { "type": "reference", - "id": 395, + "id": 399, "name": "Bucket" }, { @@ -3642,7 +3642,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -3849,7 +3849,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -4056,7 +4056,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -4152,7 +4152,7 @@ ], "type": { "type": "reference", - "id": 395, + "id": 399, "name": "Bucket" } }, @@ -4229,7 +4229,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -4311,7 +4311,7 @@ "type": "array", "elementType": { "type": "reference", - "id": 395, + "id": 399, "name": "Bucket" } } @@ -4389,7 +4389,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -4718,7 +4718,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -4777,7 +4777,7 @@ "extendedBy": [ { "type": "reference", - "id": 300, + "id": 304, "name": "StorageClient" } ] @@ -4982,7 +4982,7 @@ ] }, { - "id": 203, + "id": 207, "name": "copy", "kind": 2048, "kindString": "Method", @@ -4996,7 +4996,7 @@ ], "signatures": [ { - "id": 204, + "id": 208, "name": "copy", "kind": 4096, "kindString": "Call signature", @@ -5006,7 +5006,7 @@ }, "parameters": [ { - "id": 205, + "id": 209, "name": "fromPath", "kind": 32768, "kindString": "Parameter", @@ -5020,7 +5020,7 @@ } }, { - "id": 206, + "id": 210, "name": "toPath", "kind": 32768, "kindString": "Parameter", @@ -5043,14 +5043,14 @@ { "type": "reflection", "declaration": { - "id": 207, + "id": 211, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 208, + "id": 212, "name": "data", "kind": 1024, "kindString": "Property", @@ -5065,14 +5065,14 @@ "type": { "type": "reflection", "declaration": { - "id": 209, + "id": 213, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 210, + "id": 214, "name": "path", "kind": 1024, "kindString": "Property", @@ -5095,7 +5095,7 @@ "title": "Properties", "kind": 1024, "children": [ - 210 + 214 ] } ] @@ -5103,7 +5103,7 @@ } }, { - "id": 211, + "id": 215, "name": "error", "kind": 1024, "kindString": "Property", @@ -5126,8 +5126,8 @@ "title": "Properties", "kind": 1024, "children": [ - 208, - 211 + 212, + 215 ] } ] @@ -5136,14 +5136,14 @@ { "type": "reflection", "declaration": { - "id": 212, + "id": 216, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 213, + "id": 217, "name": "data", "kind": 1024, "kindString": "Property", @@ -5161,7 +5161,7 @@ } }, { - "id": 214, + "id": 218, "name": "error", "kind": 1024, "kindString": "Property", @@ -5175,7 +5175,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -5185,8 +5185,8 @@ "title": "Properties", "kind": 1024, "children": [ - 213, - 214 + 217, + 218 ] } ] @@ -5203,7 +5203,7 @@ ] }, { - "id": 165, + "id": 167, "name": "createSignedUploadUrl", "kind": 2048, "kindString": "Method", @@ -5217,7 +5217,7 @@ ], "signatures": [ { - "id": 166, + "id": 168, "name": "createSignedUploadUrl", "kind": 4096, "kindString": "Call signature", @@ -5227,7 +5227,7 @@ }, "parameters": [ { - "id": 167, + "id": 169, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -5250,14 +5250,14 @@ { "type": "reflection", "declaration": { - "id": 168, + "id": 170, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 169, + "id": 171, "name": "data", "kind": 1024, "kindString": "Property", @@ -5272,14 +5272,14 @@ "type": { "type": "reflection", "declaration": { - "id": 170, + "id": 172, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 173, + "id": 175, "name": "path", "kind": 1024, "kindString": "Property", @@ -5297,7 +5297,7 @@ } }, { - "id": 171, + "id": 173, "name": "signedUrl", "kind": 1024, "kindString": "Property", @@ -5315,7 +5315,7 @@ } }, { - "id": 172, + "id": 174, "name": "token", "kind": 1024, "kindString": "Property", @@ -5338,9 +5338,9 @@ "title": "Properties", "kind": 1024, "children": [ + 175, 173, - 171, - 172 + 174 ] } ] @@ -5348,7 +5348,7 @@ } }, { - "id": 174, + "id": 176, "name": "error", "kind": 1024, "kindString": "Property", @@ -5371,8 +5371,8 @@ "title": "Properties", "kind": 1024, "children": [ - 169, - 174 + 171, + 176 ] } ] @@ -5381,14 +5381,14 @@ { "type": "reflection", "declaration": { - "id": 175, + "id": 177, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 176, + "id": 178, "name": "data", "kind": 1024, "kindString": "Property", @@ -5406,7 +5406,7 @@ } }, { - "id": 177, + "id": 179, "name": "error", "kind": 1024, "kindString": "Property", @@ -5420,7 +5420,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -5430,8 +5430,8 @@ "title": "Properties", "kind": 1024, "children": [ - 176, - 177 + 178, + 179 ] } ] @@ -5448,7 +5448,7 @@ ] }, { - "id": 215, + "id": 219, "name": "createSignedUrl", "kind": 2048, "kindString": "Method", @@ -5462,7 +5462,7 @@ ], "signatures": [ { - "id": 216, + "id": 220, "name": "createSignedUrl", "kind": 4096, "kindString": "Call signature", @@ -5472,7 +5472,7 @@ }, "parameters": [ { - "id": 217, + "id": 221, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -5486,7 +5486,7 @@ } }, { - "id": 218, + "id": 222, "name": "expiresIn", "kind": 32768, "kindString": "Parameter", @@ -5500,7 +5500,7 @@ } }, { - "id": 219, + "id": 223, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -5510,14 +5510,14 @@ "type": { "type": "reflection", "declaration": { - "id": 220, + "id": 224, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 221, + "id": 225, "name": "download", "kind": 1024, "kindString": "Property", @@ -5549,7 +5549,7 @@ } }, { - "id": 222, + "id": 226, "name": "transform", "kind": 1024, "kindString": "Property", @@ -5568,7 +5568,7 @@ ], "type": { "type": "reference", - "id": 431, + "id": 435, "name": "TransformOptions" } } @@ -5578,8 +5578,8 @@ "title": "Properties", "kind": 1024, "children": [ - 221, - 222 + 225, + 226 ] } ] @@ -5596,14 +5596,14 @@ { "type": "reflection", "declaration": { - "id": 223, + "id": 227, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 224, + "id": 228, "name": "data", "kind": 1024, "kindString": "Property", @@ -5618,14 +5618,14 @@ "type": { "type": "reflection", "declaration": { - "id": 225, + "id": 229, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 226, + "id": 230, "name": "signedUrl", "kind": 1024, "kindString": "Property", @@ -5648,7 +5648,7 @@ "title": "Properties", "kind": 1024, "children": [ - 226 + 230 ] } ] @@ -5656,7 +5656,7 @@ } }, { - "id": 227, + "id": 231, "name": "error", "kind": 1024, "kindString": "Property", @@ -5679,8 +5679,8 @@ "title": "Properties", "kind": 1024, "children": [ - 224, - 227 + 228, + 231 ] } ] @@ -5689,14 +5689,14 @@ { "type": "reflection", "declaration": { - "id": 228, + "id": 232, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 229, + "id": 233, "name": "data", "kind": 1024, "kindString": "Property", @@ -5714,7 +5714,7 @@ } }, { - "id": 230, + "id": 234, "name": "error", "kind": 1024, "kindString": "Property", @@ -5728,7 +5728,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -5738,8 +5738,8 @@ "title": "Properties", "kind": 1024, "children": [ - 229, - 230 + 233, + 234 ] } ] @@ -5756,7 +5756,7 @@ ] }, { - "id": 231, + "id": 235, "name": "createSignedUrls", "kind": 2048, "kindString": "Method", @@ -5770,7 +5770,7 @@ ], "signatures": [ { - "id": 232, + "id": 236, "name": "createSignedUrls", "kind": 4096, "kindString": "Call signature", @@ -5780,7 +5780,7 @@ }, "parameters": [ { - "id": 233, + "id": 237, "name": "paths", "kind": 32768, "kindString": "Parameter", @@ -5797,7 +5797,7 @@ } }, { - "id": 234, + "id": 238, "name": "expiresIn", "kind": 32768, "kindString": "Parameter", @@ -5811,7 +5811,7 @@ } }, { - "id": 235, + "id": 239, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -5821,14 +5821,14 @@ "type": { "type": "reflection", "declaration": { - "id": 236, + "id": 240, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 237, + "id": 241, "name": "download", "kind": 1024, "kindString": "Property", @@ -5863,7 +5863,7 @@ "title": "Properties", "kind": 1024, "children": [ - 237 + 241 ] } ] @@ -5880,14 +5880,14 @@ { "type": "reflection", "declaration": { - "id": 238, + "id": 242, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 239, + "id": 243, "name": "data", "kind": 1024, "kindString": "Property", @@ -5904,14 +5904,14 @@ "elementType": { "type": "reflection", "declaration": { - "id": 240, + "id": 244, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 241, + "id": 245, "name": "error", "kind": 1024, "kindString": "Property", @@ -5938,7 +5938,7 @@ } }, { - "id": 242, + "id": 246, "name": "path", "kind": 1024, "kindString": "Property", @@ -5965,7 +5965,7 @@ } }, { - "id": 243, + "id": 247, "name": "signedUrl", "kind": 1024, "kindString": "Property", @@ -5988,9 +5988,9 @@ "title": "Properties", "kind": 1024, "children": [ - 241, - 242, - 243 + 245, + 246, + 247 ] } ] @@ -5999,7 +5999,7 @@ } }, { - "id": 244, + "id": 248, "name": "error", "kind": 1024, "kindString": "Property", @@ -6022,8 +6022,8 @@ "title": "Properties", "kind": 1024, "children": [ - 239, - 244 + 243, + 248 ] } ] @@ -6032,14 +6032,14 @@ { "type": "reflection", "declaration": { - "id": 245, + "id": 249, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 246, + "id": 250, "name": "data", "kind": 1024, "kindString": "Property", @@ -6057,7 +6057,7 @@ } }, { - "id": 247, + "id": 251, "name": "error", "kind": 1024, "kindString": "Property", @@ -6071,7 +6071,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -6081,8 +6081,8 @@ "title": "Properties", "kind": 1024, "children": [ - 246, - 247 + 250, + 251 ] } ] @@ -6099,7 +6099,7 @@ ] }, { - "id": 248, + "id": 252, "name": "download", "kind": 2048, "kindString": "Method", @@ -6113,7 +6113,7 @@ ], "signatures": [ { - "id": 249, + "id": 253, "name": "download", "kind": 4096, "kindString": "Call signature", @@ -6123,7 +6123,7 @@ }, "parameters": [ { - "id": 250, + "id": 254, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -6137,7 +6137,7 @@ } }, { - "id": 251, + "id": 255, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -6147,14 +6147,14 @@ "type": { "type": "reflection", "declaration": { - "id": 252, + "id": 256, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 253, + "id": 257, "name": "transform", "kind": 1024, "kindString": "Property", @@ -6173,7 +6173,7 @@ ], "type": { "type": "reference", - "id": 431, + "id": 435, "name": "TransformOptions" } } @@ -6183,7 +6183,7 @@ "title": "Properties", "kind": 1024, "children": [ - 253 + 257 ] } ] @@ -6200,14 +6200,14 @@ { "type": "reflection", "declaration": { - "id": 254, + "id": 258, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 255, + "id": 259, "name": "data", "kind": 1024, "kindString": "Property", @@ -6227,7 +6227,7 @@ } }, { - "id": 256, + "id": 260, "name": "error", "kind": 1024, "kindString": "Property", @@ -6250,8 +6250,8 @@ "title": "Properties", "kind": 1024, "children": [ - 255, - 256 + 259, + 260 ] } ] @@ -6260,14 +6260,14 @@ { "type": "reflection", "declaration": { - "id": 257, + "id": 261, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 258, + "id": 262, "name": "data", "kind": 1024, "kindString": "Property", @@ -6285,7 +6285,7 @@ } }, { - "id": 259, + "id": 263, "name": "error", "kind": 1024, "kindString": "Property", @@ -6299,7 +6299,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -6309,8 +6309,8 @@ "title": "Properties", "kind": 1024, "children": [ - 258, - 259 + 262, + 263 ] } ] @@ -6327,7 +6327,7 @@ ] }, { - "id": 260, + "id": 264, "name": "getPublicUrl", "kind": 2048, "kindString": "Method", @@ -6341,7 +6341,7 @@ ], "signatures": [ { - "id": 261, + "id": 265, "name": "getPublicUrl", "kind": 4096, "kindString": "Call signature", @@ -6351,7 +6351,7 @@ }, "parameters": [ { - "id": 262, + "id": 266, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -6365,7 +6365,7 @@ } }, { - "id": 263, + "id": 267, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -6375,14 +6375,14 @@ "type": { "type": "reflection", "declaration": { - "id": 264, + "id": 268, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 265, + "id": 269, "name": "download", "kind": 1024, "kindString": "Property", @@ -6414,7 +6414,7 @@ } }, { - "id": 266, + "id": 270, "name": "transform", "kind": 1024, "kindString": "Property", @@ -6433,7 +6433,7 @@ ], "type": { "type": "reference", - "id": 431, + "id": 435, "name": "TransformOptions" } } @@ -6443,8 +6443,8 @@ "title": "Properties", "kind": 1024, "children": [ - 265, - 266 + 269, + 270 ] } ] @@ -6455,14 +6455,14 @@ "type": { "type": "reflection", "declaration": { - "id": 267, + "id": 271, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 268, + "id": 272, "name": "data", "kind": 1024, "kindString": "Property", @@ -6477,14 +6477,14 @@ "type": { "type": "reflection", "declaration": { - "id": 269, + "id": 273, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 270, + "id": 274, "name": "publicUrl", "kind": 1024, "kindString": "Property", @@ -6507,7 +6507,7 @@ "title": "Properties", "kind": 1024, "children": [ - 270 + 274 ] } ] @@ -6520,7 +6520,7 @@ "title": "Properties", "kind": 1024, "children": [ - 268 + 272 ] } ] @@ -6530,7 +6530,7 @@ ] }, { - "id": 280, + "id": 284, "name": "list", "kind": 2048, "kindString": "Method", @@ -6544,7 +6544,7 @@ ], "signatures": [ { - "id": 281, + "id": 285, "name": "list", "kind": 4096, "kindString": "Call signature", @@ -6554,7 +6554,7 @@ }, "parameters": [ { - "id": 282, + "id": 286, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -6570,7 +6570,7 @@ } }, { - "id": 283, + "id": 287, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -6579,12 +6579,12 @@ }, "type": { "type": "reference", - "id": 422, + "id": 426, "name": "SearchOptions" } }, { - "id": 284, + "id": 288, "name": "parameters", "kind": 32768, "kindString": "Parameter", @@ -6593,7 +6593,7 @@ }, "type": { "type": "reference", - "id": 427, + "id": 431, "name": "FetchParameters" } } @@ -6607,14 +6607,14 @@ { "type": "reflection", "declaration": { - "id": 285, + "id": 289, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 286, + "id": 290, "name": "data", "kind": 1024, "kindString": "Property", @@ -6630,13 +6630,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 404, + "id": 408, "name": "FileObject" } } }, { - "id": 287, + "id": 291, "name": "error", "kind": 1024, "kindString": "Property", @@ -6659,8 +6659,8 @@ "title": "Properties", "kind": 1024, "children": [ - 286, - 287 + 290, + 291 ] } ] @@ -6669,14 +6669,14 @@ { "type": "reflection", "declaration": { - "id": 288, + "id": 292, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 289, + "id": 293, "name": "data", "kind": 1024, "kindString": "Property", @@ -6694,7 +6694,7 @@ } }, { - "id": 290, + "id": 294, "name": "error", "kind": 1024, "kindString": "Property", @@ -6708,7 +6708,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -6718,8 +6718,8 @@ "title": "Properties", "kind": 1024, "children": [ - 289, - 290 + 293, + 294 ] } ] @@ -6736,7 +6736,7 @@ ] }, { - "id": 191, + "id": 195, "name": "move", "kind": 2048, "kindString": "Method", @@ -6750,7 +6750,7 @@ ], "signatures": [ { - "id": 192, + "id": 196, "name": "move", "kind": 4096, "kindString": "Call signature", @@ -6760,7 +6760,7 @@ }, "parameters": [ { - "id": 193, + "id": 197, "name": "fromPath", "kind": 32768, "kindString": "Parameter", @@ -6774,7 +6774,7 @@ } }, { - "id": 194, + "id": 198, "name": "toPath", "kind": 32768, "kindString": "Parameter", @@ -6797,14 +6797,14 @@ { "type": "reflection", "declaration": { - "id": 195, + "id": 199, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 196, + "id": 200, "name": "data", "kind": 1024, "kindString": "Property", @@ -6819,14 +6819,14 @@ "type": { "type": "reflection", "declaration": { - "id": 197, + "id": 201, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 198, + "id": 202, "name": "message", "kind": 1024, "kindString": "Property", @@ -6849,7 +6849,7 @@ "title": "Properties", "kind": 1024, "children": [ - 198 + 202 ] } ] @@ -6857,7 +6857,7 @@ } }, { - "id": 199, + "id": 203, "name": "error", "kind": 1024, "kindString": "Property", @@ -6880,8 +6880,8 @@ "title": "Properties", "kind": 1024, "children": [ - 196, - 199 + 200, + 203 ] } ] @@ -6890,14 +6890,14 @@ { "type": "reflection", "declaration": { - "id": 200, + "id": 204, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 201, + "id": 205, "name": "data", "kind": 1024, "kindString": "Property", @@ -6915,7 +6915,7 @@ } }, { - "id": 202, + "id": 206, "name": "error", "kind": 1024, "kindString": "Property", @@ -6929,7 +6929,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -6939,8 +6939,8 @@ "title": "Properties", "kind": 1024, "children": [ - 201, - 202 + 205, + 206 ] } ] @@ -6957,7 +6957,7 @@ ] }, { - "id": 271, + "id": 275, "name": "remove", "kind": 2048, "kindString": "Method", @@ -6971,7 +6971,7 @@ ], "signatures": [ { - "id": 272, + "id": 276, "name": "remove", "kind": 4096, "kindString": "Call signature", @@ -6981,7 +6981,7 @@ }, "parameters": [ { - "id": 273, + "id": 277, "name": "paths", "kind": 32768, "kindString": "Parameter", @@ -7007,14 +7007,14 @@ { "type": "reflection", "declaration": { - "id": 274, + "id": 278, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 275, + "id": 279, "name": "data", "kind": 1024, "kindString": "Property", @@ -7030,13 +7030,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 404, + "id": 408, "name": "FileObject" } } }, { - "id": 276, + "id": 280, "name": "error", "kind": 1024, "kindString": "Property", @@ -7059,8 +7059,8 @@ "title": "Properties", "kind": 1024, "children": [ - 275, - 276 + 279, + 280 ] } ] @@ -7069,14 +7069,14 @@ { "type": "reflection", "declaration": { - "id": 277, + "id": 281, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 278, + "id": 282, "name": "data", "kind": 1024, "kindString": "Property", @@ -7094,7 +7094,7 @@ } }, { - "id": 279, + "id": 283, "name": "error", "kind": 1024, "kindString": "Property", @@ -7108,7 +7108,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -7118,8 +7118,8 @@ "title": "Properties", "kind": 1024, "children": [ - 278, - 279 + 282, + 283 ] } ] @@ -7136,7 +7136,7 @@ ] }, { - "id": 178, + "id": 180, "name": "update", "kind": 2048, "kindString": "Method", @@ -7150,7 +7150,7 @@ ], "signatures": [ { - "id": 179, + "id": 181, "name": "update", "kind": 4096, "kindString": "Call signature", @@ -7160,7 +7160,7 @@ }, "parameters": [ { - "id": 180, + "id": 182, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -7174,7 +7174,7 @@ } }, { - "id": 181, + "id": 183, "name": "fileBody", "kind": 32768, "kindString": "Parameter", @@ -7255,7 +7255,7 @@ } }, { - "id": 182, + "id": 184, "name": "fileOptions", "kind": 32768, "kindString": "Parameter", @@ -7264,7 +7264,7 @@ }, "type": { "type": "reference", - "id": 417, + "id": 421, "name": "FileOptions" } } @@ -7278,14 +7278,14 @@ { "type": "reflection", "declaration": { - "id": 183, + "id": 185, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 184, + "id": 186, "name": "data", "kind": 1024, "kindString": "Property", @@ -7300,15 +7300,33 @@ "type": { "type": "reflection", "declaration": { - "id": 185, + "id": 187, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 186, - "name": "path", + "id": 190, + "name": "fullPath", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/packages/StorageFileApi.ts", + "line": 285, + "character": 42 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 188, + "name": "id", "kind": 1024, "kindString": "Property", "flags": {}, @@ -7323,6 +7341,24 @@ "type": "intrinsic", "name": "string" } + }, + { + "id": 189, + "name": "path", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/packages/StorageFileApi.ts", + "line": 285, + "character": 28 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } } ], "groups": [ @@ -7330,7 +7366,9 @@ "title": "Properties", "kind": 1024, "children": [ - 186 + 190, + 188, + 189 ] } ] @@ -7338,7 +7376,7 @@ } }, { - "id": 187, + "id": 191, "name": "error", "kind": 1024, "kindString": "Property", @@ -7361,8 +7399,8 @@ "title": "Properties", "kind": 1024, "children": [ - 184, - 187 + 186, + 191 ] } ] @@ -7371,14 +7409,14 @@ { "type": "reflection", "declaration": { - "id": 188, + "id": 192, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 189, + "id": 193, "name": "data", "kind": 1024, "kindString": "Property", @@ -7396,7 +7434,7 @@ } }, { - "id": 190, + "id": 194, "name": "error", "kind": 1024, "kindString": "Property", @@ -7410,7 +7448,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -7420,8 +7458,8 @@ "title": "Properties", "kind": 1024, "children": [ - 189, - 190 + 193, + 194 ] } ] @@ -7499,7 +7537,7 @@ }, "type": { "type": "reference", - "id": 417, + "id": 421, "name": "FileOptions" } } @@ -7541,9 +7579,27 @@ "kindString": "Type literal", "flags": {}, "children": [ + { + "id": 147, + "name": "fullPath", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/packages/StorageFileApi.ts", + "line": 141, + "character": 42 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, { "id": 145, - "name": "path", + "name": "id", "kind": 1024, "kindString": "Property", "flags": {}, @@ -7558,6 +7614,24 @@ "type": "intrinsic", "name": "string" } + }, + { + "id": 146, + "name": "path", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/packages/StorageFileApi.ts", + "line": 141, + "character": 28 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } } ], "groups": [ @@ -7565,7 +7639,9 @@ "title": "Properties", "kind": 1024, "children": [ - 145 + 147, + 145, + 146 ] } ] @@ -7573,7 +7649,7 @@ } }, { - "id": 146, + "id": 148, "name": "error", "kind": 1024, "kindString": "Property", @@ -7597,7 +7673,7 @@ "kind": 1024, "children": [ 143, - 146 + 148 ] } ] @@ -7606,14 +7682,14 @@ { "type": "reflection", "declaration": { - "id": 147, + "id": 149, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 148, + "id": 150, "name": "data", "kind": 1024, "kindString": "Property", @@ -7631,7 +7707,7 @@ } }, { - "id": 149, + "id": 151, "name": "error", "kind": 1024, "kindString": "Property", @@ -7645,7 +7721,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -7655,8 +7731,8 @@ "title": "Properties", "kind": 1024, "children": [ - 148, - 149 + 150, + 151 ] } ] @@ -7673,7 +7749,7 @@ ] }, { - "id": 150, + "id": 152, "name": "uploadToSignedUrl", "kind": 2048, "kindString": "Method", @@ -7687,7 +7763,7 @@ ], "signatures": [ { - "id": 151, + "id": 153, "name": "uploadToSignedUrl", "kind": 4096, "kindString": "Call signature", @@ -7697,7 +7773,7 @@ }, "parameters": [ { - "id": 152, + "id": 154, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -7711,7 +7787,7 @@ } }, { - "id": 153, + "id": 155, "name": "token", "kind": 32768, "kindString": "Parameter", @@ -7725,7 +7801,7 @@ } }, { - "id": 154, + "id": 156, "name": "fileBody", "kind": 32768, "kindString": "Parameter", @@ -7739,7 +7815,7 @@ } }, { - "id": 155, + "id": 157, "name": "fileOptions", "kind": 32768, "kindString": "Parameter", @@ -7748,7 +7824,7 @@ }, "type": { "type": "reference", - "id": 417, + "id": 421, "name": "FileOptions" } } @@ -7762,14 +7838,14 @@ { "type": "reflection", "declaration": { - "id": 156, + "id": 158, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 157, + "id": 159, "name": "data", "kind": 1024, "kindString": "Property", @@ -7784,14 +7860,14 @@ "type": { "type": "reflection", "declaration": { - "id": 158, + "id": 160, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 160, + "id": 162, "name": "fullPath", "kind": 1024, "kindString": "Property", @@ -7810,7 +7886,7 @@ "defaultValue": "data.Key" }, { - "id": 159, + "id": 161, "name": "path", "kind": 1024, "kindString": "Property", @@ -7834,8 +7910,8 @@ "title": "Properties", "kind": 1024, "children": [ - 160, - 159 + 162, + 161 ] } ] @@ -7844,7 +7920,7 @@ "defaultValue": "..." }, { - "id": 161, + "id": 163, "name": "error", "kind": 1024, "kindString": "Property", @@ -7868,8 +7944,8 @@ "title": "Properties", "kind": 1024, "children": [ - 157, - 161 + 159, + 163 ] } ] @@ -7878,14 +7954,14 @@ { "type": "reflection", "declaration": { - "id": 162, + "id": 164, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 163, + "id": 165, "name": "data", "kind": 1024, "kindString": "Property", @@ -7904,7 +7980,7 @@ "defaultValue": "null" }, { - "id": 164, + "id": 166, "name": "error", "kind": 1024, "kindString": "Property", @@ -7920,8 +7996,8 @@ "title": "Properties", "kind": 1024, "children": [ - 163, - 164 + 165, + 166 ] } ] @@ -7950,18 +8026,18 @@ "title": "Methods", "kind": 2048, "children": [ - 203, - 165, - 215, - 231, - 248, - 260, - 280, - 191, - 271, - 178, + 207, + 167, + 219, + 235, + 252, + 264, + 284, + 195, + 275, + 180, 137, - 150 + 152 ] } ], diff --git a/apps/docs/spec/enrichments/tsdoc_v2/storage_dereferenced.json b/apps/docs/spec/enrichments/tsdoc_v2/storage_dereferenced.json index a50733e80f6..d08ded60024 100644 --- a/apps/docs/spec/enrichments/tsdoc_v2/storage_dereferenced.json +++ b/apps/docs/spec/enrichments/tsdoc_v2/storage_dereferenced.json @@ -13,14 +13,14 @@ "flags": {}, "children": [ { - "id": 445, + "id": 449, "name": "StorageApiError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 446, + "id": 450, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -34,14 +34,14 @@ ], "signatures": [ { - "id": 447, + "id": 451, "name": "new StorageApiError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 448, + "id": 452, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -52,7 +52,7 @@ } }, { - "id": 449, + "id": 453, "name": "status", "kind": 32768, "kindString": "Parameter", @@ -65,24 +65,24 @@ ], "type": { "type": "reference", - "id": 445, + "id": 449, "name": "StorageApiError" }, "overwrites": { "type": "reference", - "id": 442, + "id": 446, "name": "StorageError.constructor" } } ], "overwrites": { "type": "reference", - "id": 441, + "id": 445, "name": "StorageError.constructor" } }, { - "id": 450, + "id": 454, "name": "status", "kind": 1024, "kindString": "Property", @@ -100,7 +100,7 @@ } }, { - "id": 451, + "id": 455, "name": "toJSON", "kind": 2048, "kindString": "Method", @@ -114,7 +114,7 @@ ], "signatures": [ { - "id": 452, + "id": 456, "name": "toJSON", "kind": 4096, "kindString": "Call signature", @@ -122,14 +122,14 @@ "type": { "type": "reflection", "declaration": { - "id": 453, + "id": 457, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 455, + "id": 459, "name": "message", "kind": 1024, "kindString": "Property", @@ -148,7 +148,7 @@ "defaultValue": "..." }, { - "id": 454, + "id": 458, "name": "name", "kind": 1024, "kindString": "Property", @@ -167,7 +167,7 @@ "defaultValue": "..." }, { - "id": 456, + "id": 460, "name": "status", "kind": 1024, "kindString": "Property", @@ -191,9 +191,9 @@ "title": "Properties", "kind": 1024, "children": [ - 455, - 454, - 456 + 459, + 458, + 460 ] } ] @@ -208,21 +208,21 @@ "title": "Constructors", "kind": 512, "children": [ - 446 + 450 ] }, { "title": "Properties", "kind": 1024, "children": [ - 450 + 454 ] }, { "title": "Methods", "kind": 2048, "children": [ - 451 + 455 ] } ], @@ -236,20 +236,20 @@ "extendedTypes": [ { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } ] }, { - "id": 300, + "id": 304, "name": "StorageClient", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 301, + "id": 305, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -263,14 +263,14 @@ ], "signatures": [ { - "id": 302, + "id": 306, "name": "new StorageClient", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 303, + "id": 307, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -281,7 +281,7 @@ } }, { - "id": 304, + "id": 308, "name": "headers", "kind": 32768, "kindString": "Parameter", @@ -289,20 +289,20 @@ "type": { "type": "reflection", "declaration": { - "id": 305, + "id": 309, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": { - "id": 306, + "id": 310, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 307, + "id": 311, "name": "key", "kind": 32768, "flags": {}, @@ -322,7 +322,7 @@ "defaultValue": "{}" }, { - "id": 308, + "id": 312, "name": "fetch", "kind": 32768, "kindString": "Parameter", @@ -332,21 +332,21 @@ "type": { "type": "reflection", "declaration": { - "id": 309, + "id": 313, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 310, + "id": 314, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 311, + "id": 315, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -359,7 +359,7 @@ } }, { - "id": 312, + "id": 316, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -396,7 +396,7 @@ ], "type": { "type": "reference", - "id": 300, + "id": 304, "name": "StorageClient" }, "overwrites": { @@ -413,7 +413,7 @@ } }, { - "id": 343, + "id": 347, "name": "createBucket", "kind": 2048, "kindString": "Method", @@ -427,7 +427,7 @@ ], "signatures": [ { - "id": 344, + "id": 348, "name": "createBucket", "kind": 4096, "kindString": "Call signature", @@ -438,7 +438,7 @@ }, "parameters": [ { - "id": 345, + "id": 349, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -452,7 +452,7 @@ } }, { - "id": 346, + "id": 350, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -460,14 +460,14 @@ "type": { "type": "reflection", "declaration": { - "id": 347, + "id": 351, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 350, + "id": 354, "name": "allowedMimeTypes", "kind": 1024, "kindString": "Property", @@ -502,7 +502,7 @@ } }, { - "id": 349, + "id": 353, "name": "fileSizeLimit", "kind": 1024, "kindString": "Property", @@ -538,7 +538,7 @@ } }, { - "id": 348, + "id": 352, "name": "public", "kind": 1024, "kindString": "Property", @@ -564,9 +564,9 @@ "title": "Properties", "kind": 1024, "children": [ - 350, - 349, - 348 + 354, + 353, + 352 ] } ] @@ -584,14 +584,14 @@ { "type": "reflection", "declaration": { - "id": 351, + "id": 355, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 352, + "id": 356, "name": "data", "kind": 1024, "kindString": "Property", @@ -608,7 +608,7 @@ "typeArguments": [ { "type": "reference", - "id": 395, + "id": 399, "name": "Bucket" }, { @@ -622,7 +622,7 @@ } }, { - "id": 353, + "id": 357, "name": "error", "kind": 1024, "kindString": "Property", @@ -645,8 +645,8 @@ "title": "Properties", "kind": 1024, "children": [ - 352, - 353 + 356, + 357 ] } ] @@ -655,14 +655,14 @@ { "type": "reflection", "declaration": { - "id": 354, + "id": 358, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 355, + "id": 359, "name": "data", "kind": 1024, "kindString": "Property", @@ -680,7 +680,7 @@ } }, { - "id": 356, + "id": 360, "name": "error", "kind": 1024, "kindString": "Property", @@ -694,7 +694,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -704,8 +704,8 @@ "title": "Properties", "kind": 1024, "children": [ - 355, - 356 + 359, + 360 ] } ] @@ -732,7 +732,7 @@ } }, { - "id": 384, + "id": 388, "name": "deleteBucket", "kind": 2048, "kindString": "Method", @@ -746,7 +746,7 @@ ], "signatures": [ { - "id": 385, + "id": 389, "name": "deleteBucket", "kind": 4096, "kindString": "Call signature", @@ -756,7 +756,7 @@ }, "parameters": [ { - "id": 386, + "id": 390, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -779,14 +779,14 @@ { "type": "reflection", "declaration": { - "id": 387, + "id": 391, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 388, + "id": 392, "name": "data", "kind": 1024, "kindString": "Property", @@ -801,14 +801,14 @@ "type": { "type": "reflection", "declaration": { - "id": 389, + "id": 393, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 390, + "id": 394, "name": "message", "kind": 1024, "kindString": "Property", @@ -831,7 +831,7 @@ "title": "Properties", "kind": 1024, "children": [ - 390 + 394 ] } ] @@ -839,7 +839,7 @@ } }, { - "id": 391, + "id": 395, "name": "error", "kind": 1024, "kindString": "Property", @@ -862,8 +862,8 @@ "title": "Properties", "kind": 1024, "children": [ - 388, - 391 + 392, + 395 ] } ] @@ -872,14 +872,14 @@ { "type": "reflection", "declaration": { - "id": 392, + "id": 396, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 393, + "id": 397, "name": "data", "kind": 1024, "kindString": "Property", @@ -897,7 +897,7 @@ } }, { - "id": 394, + "id": 398, "name": "error", "kind": 1024, "kindString": "Property", @@ -911,7 +911,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -921,8 +921,8 @@ "title": "Properties", "kind": 1024, "children": [ - 393, - 394 + 397, + 398 ] } ] @@ -949,7 +949,7 @@ } }, { - "id": 373, + "id": 377, "name": "emptyBucket", "kind": 2048, "kindString": "Method", @@ -963,7 +963,7 @@ ], "signatures": [ { - "id": 374, + "id": 378, "name": "emptyBucket", "kind": 4096, "kindString": "Call signature", @@ -973,7 +973,7 @@ }, "parameters": [ { - "id": 375, + "id": 379, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -996,14 +996,14 @@ { "type": "reflection", "declaration": { - "id": 376, + "id": 380, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 377, + "id": 381, "name": "data", "kind": 1024, "kindString": "Property", @@ -1018,14 +1018,14 @@ "type": { "type": "reflection", "declaration": { - "id": 378, + "id": 382, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 379, + "id": 383, "name": "message", "kind": 1024, "kindString": "Property", @@ -1048,7 +1048,7 @@ "title": "Properties", "kind": 1024, "children": [ - 379 + 383 ] } ] @@ -1056,7 +1056,7 @@ } }, { - "id": 380, + "id": 384, "name": "error", "kind": 1024, "kindString": "Property", @@ -1079,8 +1079,8 @@ "title": "Properties", "kind": 1024, "children": [ - 377, - 380 + 381, + 384 ] } ] @@ -1089,14 +1089,14 @@ { "type": "reflection", "declaration": { - "id": 381, + "id": 385, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 382, + "id": 386, "name": "data", "kind": 1024, "kindString": "Property", @@ -1114,7 +1114,7 @@ } }, { - "id": 383, + "id": 387, "name": "error", "kind": 1024, "kindString": "Property", @@ -1128,7 +1128,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -1138,8 +1138,8 @@ "title": "Properties", "kind": 1024, "children": [ - 382, - 383 + 386, + 387 ] } ] @@ -1166,7 +1166,7 @@ } }, { - "id": 313, + "id": 317, "name": "from", "kind": 2048, "kindString": "Method", @@ -1180,7 +1180,7 @@ ], "signatures": [ { - "id": 314, + "id": 318, "name": "from", "kind": 4096, "kindString": "Call signature", @@ -1190,7 +1190,7 @@ }, "parameters": [ { - "id": 315, + "id": 319, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -1213,7 +1213,7 @@ ] }, { - "id": 334, + "id": 338, "name": "getBucket", "kind": 2048, "kindString": "Method", @@ -1227,7 +1227,7 @@ ], "signatures": [ { - "id": 335, + "id": 339, "name": "getBucket", "kind": 4096, "kindString": "Call signature", @@ -1237,7 +1237,7 @@ }, "parameters": [ { - "id": 336, + "id": 340, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -1260,14 +1260,14 @@ { "type": "reflection", "declaration": { - "id": 337, + "id": 341, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 338, + "id": 342, "name": "data", "kind": 1024, "kindString": "Property", @@ -1281,12 +1281,12 @@ ], "type": { "type": "reference", - "id": 395, + "id": 399, "name": "Bucket" } }, { - "id": 339, + "id": 343, "name": "error", "kind": 1024, "kindString": "Property", @@ -1309,8 +1309,8 @@ "title": "Properties", "kind": 1024, "children": [ - 338, - 339 + 342, + 343 ] } ] @@ -1319,14 +1319,14 @@ { "type": "reflection", "declaration": { - "id": 340, + "id": 344, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 341, + "id": 345, "name": "data", "kind": 1024, "kindString": "Property", @@ -1344,7 +1344,7 @@ } }, { - "id": 342, + "id": 346, "name": "error", "kind": 1024, "kindString": "Property", @@ -1358,7 +1358,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -1368,8 +1368,8 @@ "title": "Properties", "kind": 1024, "children": [ - 341, - 342 + 345, + 346 ] } ] @@ -1396,7 +1396,7 @@ } }, { - "id": 326, + "id": 330, "name": "listBuckets", "kind": 2048, "kindString": "Method", @@ -1410,7 +1410,7 @@ ], "signatures": [ { - "id": 327, + "id": 331, "name": "listBuckets", "kind": 4096, "kindString": "Call signature", @@ -1427,14 +1427,14 @@ { "type": "reflection", "declaration": { - "id": 328, + "id": 332, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 329, + "id": 333, "name": "data", "kind": 1024, "kindString": "Property", @@ -1450,13 +1450,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 395, + "id": 399, "name": "Bucket" } } }, { - "id": 330, + "id": 334, "name": "error", "kind": 1024, "kindString": "Property", @@ -1479,8 +1479,8 @@ "title": "Properties", "kind": 1024, "children": [ - 329, - 330 + 333, + 334 ] } ] @@ -1489,14 +1489,14 @@ { "type": "reflection", "declaration": { - "id": 331, + "id": 335, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 332, + "id": 336, "name": "data", "kind": 1024, "kindString": "Property", @@ -1514,7 +1514,7 @@ } }, { - "id": 333, + "id": 337, "name": "error", "kind": 1024, "kindString": "Property", @@ -1528,7 +1528,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -1538,8 +1538,8 @@ "title": "Properties", "kind": 1024, "children": [ - 332, - 333 + 336, + 337 ] } ] @@ -1566,7 +1566,7 @@ } }, { - "id": 357, + "id": 361, "name": "updateBucket", "kind": 2048, "kindString": "Method", @@ -1580,7 +1580,7 @@ ], "signatures": [ { - "id": 358, + "id": 362, "name": "updateBucket", "kind": 4096, "kindString": "Call signature", @@ -1590,7 +1590,7 @@ }, "parameters": [ { - "id": 359, + "id": 363, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -1604,7 +1604,7 @@ } }, { - "id": 360, + "id": 364, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -1612,14 +1612,14 @@ "type": { "type": "reflection", "declaration": { - "id": 361, + "id": 365, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 364, + "id": 368, "name": "allowedMimeTypes", "kind": 1024, "kindString": "Property", @@ -1654,7 +1654,7 @@ } }, { - "id": 363, + "id": 367, "name": "fileSizeLimit", "kind": 1024, "kindString": "Property", @@ -1690,7 +1690,7 @@ } }, { - "id": 362, + "id": 366, "name": "public", "kind": 1024, "kindString": "Property", @@ -1716,9 +1716,9 @@ "title": "Properties", "kind": 1024, "children": [ - 364, - 363, - 362 + 368, + 367, + 366 ] } ] @@ -1735,14 +1735,14 @@ { "type": "reflection", "declaration": { - "id": 365, + "id": 369, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 366, + "id": 370, "name": "data", "kind": 1024, "kindString": "Property", @@ -1757,14 +1757,14 @@ "type": { "type": "reflection", "declaration": { - "id": 367, + "id": 371, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 368, + "id": 372, "name": "message", "kind": 1024, "kindString": "Property", @@ -1787,7 +1787,7 @@ "title": "Properties", "kind": 1024, "children": [ - 368 + 372 ] } ] @@ -1795,7 +1795,7 @@ } }, { - "id": 369, + "id": 373, "name": "error", "kind": 1024, "kindString": "Property", @@ -1818,8 +1818,8 @@ "title": "Properties", "kind": 1024, "children": [ - 366, - 369 + 370, + 373 ] } ] @@ -1828,14 +1828,14 @@ { "type": "reflection", "declaration": { - "id": 370, + "id": 374, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 371, + "id": 375, "name": "data", "kind": 1024, "kindString": "Property", @@ -1853,7 +1853,7 @@ } }, { - "id": 372, + "id": 376, "name": "error", "kind": 1024, "kindString": "Property", @@ -1867,7 +1867,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -1877,8 +1877,8 @@ "title": "Properties", "kind": 1024, "children": [ - 371, - 372 + 375, + 376 ] } ] @@ -1910,20 +1910,20 @@ "title": "Constructors", "kind": 512, "children": [ - 301 + 305 ] }, { "title": "Methods", "kind": 2048, "children": [ - 343, - 384, - 373, - 313, - 334, - 326, - 357 + 347, + 388, + 377, + 317, + 338, + 330, + 361 ] } ], @@ -1943,14 +1943,14 @@ ] }, { - "id": 440, + "id": 444, "name": "StorageError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 441, + "id": 445, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -1964,14 +1964,14 @@ ], "signatures": [ { - "id": 442, + "id": 446, "name": "new StorageError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 443, + "id": 447, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -1984,7 +1984,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" }, "overwrites": { @@ -2004,7 +2004,7 @@ "title": "Constructors", "kind": 512, "children": [ - 441 + 445 ] } ], @@ -2026,25 +2026,25 @@ "extendedBy": [ { "type": "reference", - "id": 445, + "id": 449, "name": "StorageApiError" }, { "type": "reference", - "id": 458, + "id": 462, "name": "StorageUnknownError" } ] }, { - "id": 458, + "id": 462, "name": "StorageUnknownError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 459, + "id": 463, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -2058,14 +2058,14 @@ ], "signatures": [ { - "id": 460, + "id": 464, "name": "new StorageUnknownError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 461, + "id": 465, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -2076,7 +2076,7 @@ } }, { - "id": 462, + "id": 466, "name": "originalError", "kind": 32768, "kindString": "Parameter", @@ -2089,24 +2089,24 @@ ], "type": { "type": "reference", - "id": 458, + "id": 462, "name": "StorageUnknownError" }, "overwrites": { "type": "reference", - "id": 442, + "id": 446, "name": "StorageError.constructor" } } ], "overwrites": { "type": "reference", - "id": 441, + "id": 445, "name": "StorageError.constructor" } }, { - "id": 463, + "id": 467, "name": "originalError", "kind": 1024, "kindString": "Property", @@ -2129,14 +2129,14 @@ "title": "Constructors", "kind": 512, "children": [ - 459 + 463 ] }, { "title": "Properties", "kind": 1024, "children": [ - 463 + 467 ] } ], @@ -2150,20 +2150,20 @@ "extendedTypes": [ { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } ] }, { - "id": 395, + "id": 399, "name": "Bucket", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 400, + "id": 404, "name": "allowed_mime_types", "kind": 1024, "kindString": "Property", @@ -2186,7 +2186,7 @@ } }, { - "id": 401, + "id": 405, "name": "created_at", "kind": 1024, "kindString": "Property", @@ -2204,7 +2204,7 @@ } }, { - "id": 399, + "id": 403, "name": "file_size_limit", "kind": 1024, "kindString": "Property", @@ -2224,7 +2224,7 @@ } }, { - "id": 396, + "id": 400, "name": "id", "kind": 1024, "kindString": "Property", @@ -2242,7 +2242,7 @@ } }, { - "id": 397, + "id": 401, "name": "name", "kind": 1024, "kindString": "Property", @@ -2260,7 +2260,7 @@ } }, { - "id": 398, + "id": 402, "name": "owner", "kind": 1024, "kindString": "Property", @@ -2278,7 +2278,7 @@ } }, { - "id": 403, + "id": 407, "name": "public", "kind": 1024, "kindString": "Property", @@ -2296,7 +2296,7 @@ } }, { - "id": 402, + "id": 406, "name": "updated_at", "kind": 1024, "kindString": "Property", @@ -2319,14 +2319,14 @@ "title": "Properties", "kind": 1024, "children": [ + 404, + 405, + 403, 400, 401, - 399, - 396, - 397, - 398, - 403, - 402 + 402, + 407, + 406 ] } ], @@ -2339,14 +2339,14 @@ ] }, { - "id": 427, + "id": 431, "name": "FetchParameters", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 428, + "id": 432, "name": "signal", "kind": 1024, "kindString": "Property", @@ -2376,7 +2376,7 @@ "title": "Properties", "kind": 1024, "children": [ - 428 + 432 ] } ], @@ -2389,14 +2389,14 @@ ] }, { - "id": 404, + "id": 408, "name": "FileObject", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 406, + "id": 410, "name": "bucket_id", "kind": 1024, "kindString": "Property", @@ -2414,7 +2414,7 @@ } }, { - "id": 413, + "id": 417, "name": "buckets", "kind": 1024, "kindString": "Property", @@ -2428,17 +2428,17 @@ ], "type": { "type": "reference", - "id": 395, + "id": 399, "name": "Bucket", "dereferenced": { - "id": 395, + "id": 399, "name": "Bucket", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 400, + "id": 404, "name": "allowed_mime_types", "kind": 1024, "kindString": "Property", @@ -2461,7 +2461,7 @@ } }, { - "id": 401, + "id": 405, "name": "created_at", "kind": 1024, "kindString": "Property", @@ -2479,7 +2479,7 @@ } }, { - "id": 399, + "id": 403, "name": "file_size_limit", "kind": 1024, "kindString": "Property", @@ -2499,7 +2499,7 @@ } }, { - "id": 396, + "id": 400, "name": "id", "kind": 1024, "kindString": "Property", @@ -2517,7 +2517,7 @@ } }, { - "id": 397, + "id": 401, "name": "name", "kind": 1024, "kindString": "Property", @@ -2535,7 +2535,7 @@ } }, { - "id": 398, + "id": 402, "name": "owner", "kind": 1024, "kindString": "Property", @@ -2553,7 +2553,7 @@ } }, { - "id": 403, + "id": 407, "name": "public", "kind": 1024, "kindString": "Property", @@ -2571,7 +2571,7 @@ } }, { - "id": 402, + "id": 406, "name": "updated_at", "kind": 1024, "kindString": "Property", @@ -2594,14 +2594,14 @@ "title": "Properties", "kind": 1024, "children": [ + 404, + 405, + 403, 400, 401, - 399, - 396, - 397, - 398, - 403, - 402 + 402, + 407, + 406 ] } ], @@ -2616,7 +2616,7 @@ } }, { - "id": 410, + "id": 414, "name": "created_at", "kind": 1024, "kindString": "Property", @@ -2634,7 +2634,7 @@ } }, { - "id": 408, + "id": 412, "name": "id", "kind": 1024, "kindString": "Property", @@ -2652,7 +2652,7 @@ } }, { - "id": 411, + "id": 415, "name": "last_accessed_at", "kind": 1024, "kindString": "Property", @@ -2670,7 +2670,7 @@ } }, { - "id": 412, + "id": 416, "name": "metadata", "kind": 1024, "kindString": "Property", @@ -2700,7 +2700,7 @@ } }, { - "id": 405, + "id": 409, "name": "name", "kind": 1024, "kindString": "Property", @@ -2718,7 +2718,7 @@ } }, { - "id": 407, + "id": 411, "name": "owner", "kind": 1024, "kindString": "Property", @@ -2736,7 +2736,7 @@ } }, { - "id": 409, + "id": 413, "name": "updated_at", "kind": 1024, "kindString": "Property", @@ -2759,15 +2759,15 @@ "title": "Properties", "kind": 1024, "children": [ - 406, - 413, 410, - 408, - 411, + 417, + 414, 412, - 405, - 407, - 409 + 415, + 416, + 409, + 411, + 413 ] } ], @@ -2780,14 +2780,14 @@ ] }, { - "id": 417, + "id": 421, "name": "FileOptions", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 418, + "id": 422, "name": "cacheControl", "kind": 1024, "kindString": "Property", @@ -2810,7 +2810,7 @@ } }, { - "id": 419, + "id": 423, "name": "contentType", "kind": 1024, "kindString": "Property", @@ -2833,7 +2833,7 @@ } }, { - "id": 421, + "id": 425, "name": "duplex", "kind": 1024, "kindString": "Property", @@ -2856,7 +2856,7 @@ } }, { - "id": 420, + "id": 424, "name": "upsert", "kind": 1024, "kindString": "Property", @@ -2884,10 +2884,10 @@ "title": "Properties", "kind": 1024, "children": [ - 418, - 419, - 421, - 420 + 422, + 423, + 425, + 424 ] } ], @@ -2900,14 +2900,14 @@ ] }, { - "id": 429, + "id": 433, "name": "Metadata", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 430, + "id": 434, "name": "name", "kind": 1024, "kindString": "Property", @@ -2930,7 +2930,7 @@ "title": "Properties", "kind": 1024, "children": [ - 430 + 434 ] } ], @@ -2943,14 +2943,14 @@ ] }, { - "id": 422, + "id": 426, "name": "SearchOptions", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 423, + "id": 427, "name": "limit", "kind": 1024, "kindString": "Property", @@ -2973,7 +2973,7 @@ } }, { - "id": 424, + "id": 428, "name": "offset", "kind": 1024, "kindString": "Property", @@ -2996,7 +2996,7 @@ } }, { - "id": 426, + "id": 430, "name": "search", "kind": 1024, "kindString": "Property", @@ -3019,7 +3019,7 @@ } }, { - "id": 425, + "id": 429, "name": "sortBy", "kind": 1024, "kindString": "Property", @@ -3038,17 +3038,17 @@ ], "type": { "type": "reference", - "id": 414, + "id": 418, "name": "SortBy", "dereferenced": { - "id": 414, + "id": 418, "name": "SortBy", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 415, + "id": 419, "name": "column", "kind": 1024, "kindString": "Property", @@ -3068,7 +3068,7 @@ } }, { - "id": 416, + "id": 420, "name": "order", "kind": 1024, "kindString": "Property", @@ -3093,8 +3093,8 @@ "title": "Properties", "kind": 1024, "children": [ - 415, - 416 + 419, + 420 ] } ], @@ -3114,10 +3114,10 @@ "title": "Properties", "kind": 1024, "children": [ - 423, - 424, - 426, - 425 + 427, + 428, + 430, + 429 ] } ], @@ -3130,14 +3130,14 @@ ] }, { - "id": 414, + "id": 418, "name": "SortBy", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 415, + "id": 419, "name": "column", "kind": 1024, "kindString": "Property", @@ -3157,7 +3157,7 @@ } }, { - "id": 416, + "id": 420, "name": "order", "kind": 1024, "kindString": "Property", @@ -3182,8 +3182,8 @@ "title": "Properties", "kind": 1024, "children": [ - 415, - 416 + 419, + 420 ] } ], @@ -3196,14 +3196,14 @@ ] }, { - "id": 431, + "id": 435, "name": "TransformOptions", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 436, + "id": 440, "name": "format", "kind": 1024, "kindString": "Property", @@ -3227,7 +3227,7 @@ } }, { - "id": 433, + "id": 437, "name": "height", "kind": 1024, "kindString": "Property", @@ -3250,7 +3250,7 @@ } }, { - "id": 435, + "id": 439, "name": "quality", "kind": 1024, "kindString": "Property", @@ -3273,7 +3273,7 @@ } }, { - "id": 434, + "id": 438, "name": "resize", "kind": 1024, "kindString": "Property", @@ -3309,7 +3309,7 @@ } }, { - "id": 432, + "id": 436, "name": "width", "kind": 1024, "kindString": "Property", @@ -3337,11 +3337,11 @@ "title": "Properties", "kind": 1024, "children": [ - 436, - 433, - 435, - 434, - 432 + 440, + 437, + 439, + 438, + 436 ] } ], @@ -3354,7 +3354,7 @@ ] }, { - "id": 437, + "id": 441, "name": "isStorageError", "kind": 64, "kindString": "Function", @@ -3368,14 +3368,14 @@ ], "signatures": [ { - "id": 438, + "id": 442, "name": "isStorageError", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 439, + "id": 443, "name": "error", "kind": 32768, "kindString": "Parameter", @@ -3392,7 +3392,7 @@ "asserts": false, "targetType": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -3405,31 +3405,31 @@ "title": "Classes", "kind": 128, "children": [ - 445, - 300, - 440, - 458 + 449, + 304, + 444, + 462 ] }, { "title": "Interfaces", "kind": 256, "children": [ - 395, - 427, - 404, - 417, - 429, - 422, - 414, - 431 + 399, + 431, + 408, + 421, + 433, + 426, + 418, + 435 ] }, { "title": "Functions", "kind": 64, "children": [ - 437 + 441 ] } ], @@ -3805,7 +3805,7 @@ "typeArguments": [ { "type": "reference", - "id": 395, + "id": 399, "name": "Bucket" }, { @@ -3891,7 +3891,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -4098,7 +4098,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -4305,7 +4305,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -4401,7 +4401,7 @@ ], "type": { "type": "reference", - "id": 395, + "id": 399, "name": "Bucket" } }, @@ -4478,7 +4478,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -4560,7 +4560,7 @@ "type": "array", "elementType": { "type": "reference", - "id": 395, + "id": 399, "name": "Bucket" } } @@ -4638,7 +4638,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -4967,7 +4967,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -5026,7 +5026,7 @@ "extendedBy": [ { "type": "reference", - "id": 300, + "id": 304, "name": "StorageClient" } ] @@ -5231,7 +5231,7 @@ ] }, { - "id": 203, + "id": 207, "name": "copy", "kind": 2048, "kindString": "Method", @@ -5245,7 +5245,7 @@ ], "signatures": [ { - "id": 204, + "id": 208, "name": "copy", "kind": 4096, "kindString": "Call signature", @@ -5255,7 +5255,7 @@ }, "parameters": [ { - "id": 205, + "id": 209, "name": "fromPath", "kind": 32768, "kindString": "Parameter", @@ -5269,7 +5269,7 @@ } }, { - "id": 206, + "id": 210, "name": "toPath", "kind": 32768, "kindString": "Parameter", @@ -5292,14 +5292,14 @@ { "type": "reflection", "declaration": { - "id": 207, + "id": 211, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 208, + "id": 212, "name": "data", "kind": 1024, "kindString": "Property", @@ -5314,14 +5314,14 @@ "type": { "type": "reflection", "declaration": { - "id": 209, + "id": 213, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 210, + "id": 214, "name": "path", "kind": 1024, "kindString": "Property", @@ -5344,7 +5344,7 @@ "title": "Properties", "kind": 1024, "children": [ - 210 + 214 ] } ] @@ -5352,7 +5352,7 @@ } }, { - "id": 211, + "id": 215, "name": "error", "kind": 1024, "kindString": "Property", @@ -5375,8 +5375,8 @@ "title": "Properties", "kind": 1024, "children": [ - 208, - 211 + 212, + 215 ] } ] @@ -5385,14 +5385,14 @@ { "type": "reflection", "declaration": { - "id": 212, + "id": 216, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 213, + "id": 217, "name": "data", "kind": 1024, "kindString": "Property", @@ -5410,7 +5410,7 @@ } }, { - "id": 214, + "id": 218, "name": "error", "kind": 1024, "kindString": "Property", @@ -5424,7 +5424,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -5434,8 +5434,8 @@ "title": "Properties", "kind": 1024, "children": [ - 213, - 214 + 217, + 218 ] } ] @@ -5452,7 +5452,7 @@ ] }, { - "id": 165, + "id": 167, "name": "createSignedUploadUrl", "kind": 2048, "kindString": "Method", @@ -5466,7 +5466,7 @@ ], "signatures": [ { - "id": 166, + "id": 168, "name": "createSignedUploadUrl", "kind": 4096, "kindString": "Call signature", @@ -5476,7 +5476,7 @@ }, "parameters": [ { - "id": 167, + "id": 169, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -5499,14 +5499,14 @@ { "type": "reflection", "declaration": { - "id": 168, + "id": 170, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 169, + "id": 171, "name": "data", "kind": 1024, "kindString": "Property", @@ -5521,14 +5521,14 @@ "type": { "type": "reflection", "declaration": { - "id": 170, + "id": 172, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 173, + "id": 175, "name": "path", "kind": 1024, "kindString": "Property", @@ -5546,7 +5546,7 @@ } }, { - "id": 171, + "id": 173, "name": "signedUrl", "kind": 1024, "kindString": "Property", @@ -5564,7 +5564,7 @@ } }, { - "id": 172, + "id": 174, "name": "token", "kind": 1024, "kindString": "Property", @@ -5587,9 +5587,9 @@ "title": "Properties", "kind": 1024, "children": [ + 175, 173, - 171, - 172 + 174 ] } ] @@ -5597,7 +5597,7 @@ } }, { - "id": 174, + "id": 176, "name": "error", "kind": 1024, "kindString": "Property", @@ -5620,8 +5620,8 @@ "title": "Properties", "kind": 1024, "children": [ - 169, - 174 + 171, + 176 ] } ] @@ -5630,14 +5630,14 @@ { "type": "reflection", "declaration": { - "id": 175, + "id": 177, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 176, + "id": 178, "name": "data", "kind": 1024, "kindString": "Property", @@ -5655,7 +5655,7 @@ } }, { - "id": 177, + "id": 179, "name": "error", "kind": 1024, "kindString": "Property", @@ -5669,7 +5669,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -5679,8 +5679,8 @@ "title": "Properties", "kind": 1024, "children": [ - 176, - 177 + 178, + 179 ] } ] @@ -5697,7 +5697,7 @@ ] }, { - "id": 215, + "id": 219, "name": "createSignedUrl", "kind": 2048, "kindString": "Method", @@ -5711,7 +5711,7 @@ ], "signatures": [ { - "id": 216, + "id": 220, "name": "createSignedUrl", "kind": 4096, "kindString": "Call signature", @@ -5721,7 +5721,7 @@ }, "parameters": [ { - "id": 217, + "id": 221, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -5735,7 +5735,7 @@ } }, { - "id": 218, + "id": 222, "name": "expiresIn", "kind": 32768, "kindString": "Parameter", @@ -5749,7 +5749,7 @@ } }, { - "id": 219, + "id": 223, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -5759,14 +5759,14 @@ "type": { "type": "reflection", "declaration": { - "id": 220, + "id": 224, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 221, + "id": 225, "name": "download", "kind": 1024, "kindString": "Property", @@ -5798,7 +5798,7 @@ } }, { - "id": 222, + "id": 226, "name": "transform", "kind": 1024, "kindString": "Property", @@ -5817,17 +5817,17 @@ ], "type": { "type": "reference", - "id": 431, + "id": 435, "name": "TransformOptions", "dereferenced": { - "id": 431, + "id": 435, "name": "TransformOptions", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 436, + "id": 440, "name": "format", "kind": 1024, "kindString": "Property", @@ -5851,7 +5851,7 @@ } }, { - "id": 433, + "id": 437, "name": "height", "kind": 1024, "kindString": "Property", @@ -5874,7 +5874,7 @@ } }, { - "id": 435, + "id": 439, "name": "quality", "kind": 1024, "kindString": "Property", @@ -5897,7 +5897,7 @@ } }, { - "id": 434, + "id": 438, "name": "resize", "kind": 1024, "kindString": "Property", @@ -5933,7 +5933,7 @@ } }, { - "id": 432, + "id": 436, "name": "width", "kind": 1024, "kindString": "Property", @@ -5961,11 +5961,11 @@ "title": "Properties", "kind": 1024, "children": [ - 436, - 433, - 435, - 434, - 432 + 440, + 437, + 439, + 438, + 436 ] } ], @@ -5985,8 +5985,8 @@ "title": "Properties", "kind": 1024, "children": [ - 221, - 222 + 225, + 226 ] } ] @@ -6003,14 +6003,14 @@ { "type": "reflection", "declaration": { - "id": 223, + "id": 227, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 224, + "id": 228, "name": "data", "kind": 1024, "kindString": "Property", @@ -6025,14 +6025,14 @@ "type": { "type": "reflection", "declaration": { - "id": 225, + "id": 229, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 226, + "id": 230, "name": "signedUrl", "kind": 1024, "kindString": "Property", @@ -6055,7 +6055,7 @@ "title": "Properties", "kind": 1024, "children": [ - 226 + 230 ] } ] @@ -6063,7 +6063,7 @@ } }, { - "id": 227, + "id": 231, "name": "error", "kind": 1024, "kindString": "Property", @@ -6086,8 +6086,8 @@ "title": "Properties", "kind": 1024, "children": [ - 224, - 227 + 228, + 231 ] } ] @@ -6096,14 +6096,14 @@ { "type": "reflection", "declaration": { - "id": 228, + "id": 232, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 229, + "id": 233, "name": "data", "kind": 1024, "kindString": "Property", @@ -6121,7 +6121,7 @@ } }, { - "id": 230, + "id": 234, "name": "error", "kind": 1024, "kindString": "Property", @@ -6135,7 +6135,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -6145,8 +6145,8 @@ "title": "Properties", "kind": 1024, "children": [ - 229, - 230 + 233, + 234 ] } ] @@ -6163,7 +6163,7 @@ ] }, { - "id": 231, + "id": 235, "name": "createSignedUrls", "kind": 2048, "kindString": "Method", @@ -6177,7 +6177,7 @@ ], "signatures": [ { - "id": 232, + "id": 236, "name": "createSignedUrls", "kind": 4096, "kindString": "Call signature", @@ -6187,7 +6187,7 @@ }, "parameters": [ { - "id": 233, + "id": 237, "name": "paths", "kind": 32768, "kindString": "Parameter", @@ -6204,7 +6204,7 @@ } }, { - "id": 234, + "id": 238, "name": "expiresIn", "kind": 32768, "kindString": "Parameter", @@ -6218,7 +6218,7 @@ } }, { - "id": 235, + "id": 239, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -6228,14 +6228,14 @@ "type": { "type": "reflection", "declaration": { - "id": 236, + "id": 240, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 237, + "id": 241, "name": "download", "kind": 1024, "kindString": "Property", @@ -6270,7 +6270,7 @@ "title": "Properties", "kind": 1024, "children": [ - 237 + 241 ] } ] @@ -6287,14 +6287,14 @@ { "type": "reflection", "declaration": { - "id": 238, + "id": 242, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 239, + "id": 243, "name": "data", "kind": 1024, "kindString": "Property", @@ -6311,14 +6311,14 @@ "elementType": { "type": "reflection", "declaration": { - "id": 240, + "id": 244, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 241, + "id": 245, "name": "error", "kind": 1024, "kindString": "Property", @@ -6345,7 +6345,7 @@ } }, { - "id": 242, + "id": 246, "name": "path", "kind": 1024, "kindString": "Property", @@ -6372,7 +6372,7 @@ } }, { - "id": 243, + "id": 247, "name": "signedUrl", "kind": 1024, "kindString": "Property", @@ -6395,9 +6395,9 @@ "title": "Properties", "kind": 1024, "children": [ - 241, - 242, - 243 + 245, + 246, + 247 ] } ] @@ -6406,7 +6406,7 @@ } }, { - "id": 244, + "id": 248, "name": "error", "kind": 1024, "kindString": "Property", @@ -6429,8 +6429,8 @@ "title": "Properties", "kind": 1024, "children": [ - 239, - 244 + 243, + 248 ] } ] @@ -6439,14 +6439,14 @@ { "type": "reflection", "declaration": { - "id": 245, + "id": 249, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 246, + "id": 250, "name": "data", "kind": 1024, "kindString": "Property", @@ -6464,7 +6464,7 @@ } }, { - "id": 247, + "id": 251, "name": "error", "kind": 1024, "kindString": "Property", @@ -6478,7 +6478,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -6488,8 +6488,8 @@ "title": "Properties", "kind": 1024, "children": [ - 246, - 247 + 250, + 251 ] } ] @@ -6506,7 +6506,7 @@ ] }, { - "id": 248, + "id": 252, "name": "download", "kind": 2048, "kindString": "Method", @@ -6520,7 +6520,7 @@ ], "signatures": [ { - "id": 249, + "id": 253, "name": "download", "kind": 4096, "kindString": "Call signature", @@ -6530,7 +6530,7 @@ }, "parameters": [ { - "id": 250, + "id": 254, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -6544,7 +6544,7 @@ } }, { - "id": 251, + "id": 255, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -6554,14 +6554,14 @@ "type": { "type": "reflection", "declaration": { - "id": 252, + "id": 256, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 253, + "id": 257, "name": "transform", "kind": 1024, "kindString": "Property", @@ -6580,17 +6580,17 @@ ], "type": { "type": "reference", - "id": 431, + "id": 435, "name": "TransformOptions", "dereferenced": { - "id": 431, + "id": 435, "name": "TransformOptions", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 436, + "id": 440, "name": "format", "kind": 1024, "kindString": "Property", @@ -6614,7 +6614,7 @@ } }, { - "id": 433, + "id": 437, "name": "height", "kind": 1024, "kindString": "Property", @@ -6637,7 +6637,7 @@ } }, { - "id": 435, + "id": 439, "name": "quality", "kind": 1024, "kindString": "Property", @@ -6660,7 +6660,7 @@ } }, { - "id": 434, + "id": 438, "name": "resize", "kind": 1024, "kindString": "Property", @@ -6696,7 +6696,7 @@ } }, { - "id": 432, + "id": 436, "name": "width", "kind": 1024, "kindString": "Property", @@ -6724,11 +6724,11 @@ "title": "Properties", "kind": 1024, "children": [ - 436, - 433, - 435, - 434, - 432 + 440, + 437, + 439, + 438, + 436 ] } ], @@ -6748,7 +6748,7 @@ "title": "Properties", "kind": 1024, "children": [ - 253 + 257 ] } ] @@ -6765,14 +6765,14 @@ { "type": "reflection", "declaration": { - "id": 254, + "id": 258, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 255, + "id": 259, "name": "data", "kind": 1024, "kindString": "Property", @@ -6792,7 +6792,7 @@ } }, { - "id": 256, + "id": 260, "name": "error", "kind": 1024, "kindString": "Property", @@ -6815,8 +6815,8 @@ "title": "Properties", "kind": 1024, "children": [ - 255, - 256 + 259, + 260 ] } ] @@ -6825,14 +6825,14 @@ { "type": "reflection", "declaration": { - "id": 257, + "id": 261, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 258, + "id": 262, "name": "data", "kind": 1024, "kindString": "Property", @@ -6850,7 +6850,7 @@ } }, { - "id": 259, + "id": 263, "name": "error", "kind": 1024, "kindString": "Property", @@ -6864,7 +6864,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -6874,8 +6874,8 @@ "title": "Properties", "kind": 1024, "children": [ - 258, - 259 + 262, + 263 ] } ] @@ -6892,7 +6892,7 @@ ] }, { - "id": 260, + "id": 264, "name": "getPublicUrl", "kind": 2048, "kindString": "Method", @@ -6906,7 +6906,7 @@ ], "signatures": [ { - "id": 261, + "id": 265, "name": "getPublicUrl", "kind": 4096, "kindString": "Call signature", @@ -6916,7 +6916,7 @@ }, "parameters": [ { - "id": 262, + "id": 266, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -6930,7 +6930,7 @@ } }, { - "id": 263, + "id": 267, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -6940,14 +6940,14 @@ "type": { "type": "reflection", "declaration": { - "id": 264, + "id": 268, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 265, + "id": 269, "name": "download", "kind": 1024, "kindString": "Property", @@ -6979,7 +6979,7 @@ } }, { - "id": 266, + "id": 270, "name": "transform", "kind": 1024, "kindString": "Property", @@ -6998,17 +6998,17 @@ ], "type": { "type": "reference", - "id": 431, + "id": 435, "name": "TransformOptions", "dereferenced": { - "id": 431, + "id": 435, "name": "TransformOptions", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 436, + "id": 440, "name": "format", "kind": 1024, "kindString": "Property", @@ -7032,7 +7032,7 @@ } }, { - "id": 433, + "id": 437, "name": "height", "kind": 1024, "kindString": "Property", @@ -7055,7 +7055,7 @@ } }, { - "id": 435, + "id": 439, "name": "quality", "kind": 1024, "kindString": "Property", @@ -7078,7 +7078,7 @@ } }, { - "id": 434, + "id": 438, "name": "resize", "kind": 1024, "kindString": "Property", @@ -7114,7 +7114,7 @@ } }, { - "id": 432, + "id": 436, "name": "width", "kind": 1024, "kindString": "Property", @@ -7142,11 +7142,11 @@ "title": "Properties", "kind": 1024, "children": [ - 436, - 433, - 435, - 434, - 432 + 440, + 437, + 439, + 438, + 436 ] } ], @@ -7166,8 +7166,8 @@ "title": "Properties", "kind": 1024, "children": [ - 265, - 266 + 269, + 270 ] } ] @@ -7178,14 +7178,14 @@ "type": { "type": "reflection", "declaration": { - "id": 267, + "id": 271, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 268, + "id": 272, "name": "data", "kind": 1024, "kindString": "Property", @@ -7200,14 +7200,14 @@ "type": { "type": "reflection", "declaration": { - "id": 269, + "id": 273, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 270, + "id": 274, "name": "publicUrl", "kind": 1024, "kindString": "Property", @@ -7230,7 +7230,7 @@ "title": "Properties", "kind": 1024, "children": [ - 270 + 274 ] } ] @@ -7243,7 +7243,7 @@ "title": "Properties", "kind": 1024, "children": [ - 268 + 272 ] } ] @@ -7253,7 +7253,7 @@ ] }, { - "id": 280, + "id": 284, "name": "list", "kind": 2048, "kindString": "Method", @@ -7267,7 +7267,7 @@ ], "signatures": [ { - "id": 281, + "id": 285, "name": "list", "kind": 4096, "kindString": "Call signature", @@ -7277,7 +7277,7 @@ }, "parameters": [ { - "id": 282, + "id": 286, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -7293,7 +7293,7 @@ } }, { - "id": 283, + "id": 287, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -7302,17 +7302,17 @@ }, "type": { "type": "reference", - "id": 422, + "id": 426, "name": "SearchOptions", "dereferenced": { - "id": 422, + "id": 426, "name": "SearchOptions", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 423, + "id": 427, "name": "limit", "kind": 1024, "kindString": "Property", @@ -7335,7 +7335,7 @@ } }, { - "id": 424, + "id": 428, "name": "offset", "kind": 1024, "kindString": "Property", @@ -7358,7 +7358,7 @@ } }, { - "id": 426, + "id": 430, "name": "search", "kind": 1024, "kindString": "Property", @@ -7381,7 +7381,7 @@ } }, { - "id": 425, + "id": 429, "name": "sortBy", "kind": 1024, "kindString": "Property", @@ -7400,17 +7400,17 @@ ], "type": { "type": "reference", - "id": 414, + "id": 418, "name": "SortBy", "dereferenced": { - "id": 414, + "id": 418, "name": "SortBy", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 415, + "id": 419, "name": "column", "kind": 1024, "kindString": "Property", @@ -7430,7 +7430,7 @@ } }, { - "id": 416, + "id": 420, "name": "order", "kind": 1024, "kindString": "Property", @@ -7455,8 +7455,8 @@ "title": "Properties", "kind": 1024, "children": [ - 415, - 416 + 419, + 420 ] } ], @@ -7476,10 +7476,10 @@ "title": "Properties", "kind": 1024, "children": [ - 423, - 424, - 426, - 425 + 427, + 428, + 430, + 429 ] } ], @@ -7494,7 +7494,7 @@ } }, { - "id": 284, + "id": 288, "name": "parameters", "kind": 32768, "kindString": "Parameter", @@ -7503,17 +7503,17 @@ }, "type": { "type": "reference", - "id": 427, + "id": 431, "name": "FetchParameters", "dereferenced": { - "id": 427, + "id": 431, "name": "FetchParameters", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 428, + "id": 432, "name": "signal", "kind": 1024, "kindString": "Property", @@ -7543,7 +7543,7 @@ "title": "Properties", "kind": 1024, "children": [ - 428 + 432 ] } ], @@ -7567,14 +7567,14 @@ { "type": "reflection", "declaration": { - "id": 285, + "id": 289, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 286, + "id": 290, "name": "data", "kind": 1024, "kindString": "Property", @@ -7590,13 +7590,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 404, + "id": 408, "name": "FileObject" } } }, { - "id": 287, + "id": 291, "name": "error", "kind": 1024, "kindString": "Property", @@ -7619,8 +7619,8 @@ "title": "Properties", "kind": 1024, "children": [ - 286, - 287 + 290, + 291 ] } ] @@ -7629,14 +7629,14 @@ { "type": "reflection", "declaration": { - "id": 288, + "id": 292, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 289, + "id": 293, "name": "data", "kind": 1024, "kindString": "Property", @@ -7654,7 +7654,7 @@ } }, { - "id": 290, + "id": 294, "name": "error", "kind": 1024, "kindString": "Property", @@ -7668,7 +7668,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -7678,8 +7678,8 @@ "title": "Properties", "kind": 1024, "children": [ - 289, - 290 + 293, + 294 ] } ] @@ -7696,7 +7696,7 @@ ] }, { - "id": 191, + "id": 195, "name": "move", "kind": 2048, "kindString": "Method", @@ -7710,7 +7710,7 @@ ], "signatures": [ { - "id": 192, + "id": 196, "name": "move", "kind": 4096, "kindString": "Call signature", @@ -7720,7 +7720,7 @@ }, "parameters": [ { - "id": 193, + "id": 197, "name": "fromPath", "kind": 32768, "kindString": "Parameter", @@ -7734,7 +7734,7 @@ } }, { - "id": 194, + "id": 198, "name": "toPath", "kind": 32768, "kindString": "Parameter", @@ -7757,14 +7757,14 @@ { "type": "reflection", "declaration": { - "id": 195, + "id": 199, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 196, + "id": 200, "name": "data", "kind": 1024, "kindString": "Property", @@ -7779,14 +7779,14 @@ "type": { "type": "reflection", "declaration": { - "id": 197, + "id": 201, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 198, + "id": 202, "name": "message", "kind": 1024, "kindString": "Property", @@ -7809,7 +7809,7 @@ "title": "Properties", "kind": 1024, "children": [ - 198 + 202 ] } ] @@ -7817,7 +7817,7 @@ } }, { - "id": 199, + "id": 203, "name": "error", "kind": 1024, "kindString": "Property", @@ -7840,8 +7840,8 @@ "title": "Properties", "kind": 1024, "children": [ - 196, - 199 + 200, + 203 ] } ] @@ -7850,14 +7850,14 @@ { "type": "reflection", "declaration": { - "id": 200, + "id": 204, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 201, + "id": 205, "name": "data", "kind": 1024, "kindString": "Property", @@ -7875,7 +7875,7 @@ } }, { - "id": 202, + "id": 206, "name": "error", "kind": 1024, "kindString": "Property", @@ -7889,7 +7889,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -7899,8 +7899,8 @@ "title": "Properties", "kind": 1024, "children": [ - 201, - 202 + 205, + 206 ] } ] @@ -7917,7 +7917,7 @@ ] }, { - "id": 271, + "id": 275, "name": "remove", "kind": 2048, "kindString": "Method", @@ -7931,7 +7931,7 @@ ], "signatures": [ { - "id": 272, + "id": 276, "name": "remove", "kind": 4096, "kindString": "Call signature", @@ -7941,7 +7941,7 @@ }, "parameters": [ { - "id": 273, + "id": 277, "name": "paths", "kind": 32768, "kindString": "Parameter", @@ -7967,14 +7967,14 @@ { "type": "reflection", "declaration": { - "id": 274, + "id": 278, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 275, + "id": 279, "name": "data", "kind": 1024, "kindString": "Property", @@ -7990,13 +7990,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 404, + "id": 408, "name": "FileObject" } } }, { - "id": 276, + "id": 280, "name": "error", "kind": 1024, "kindString": "Property", @@ -8019,8 +8019,8 @@ "title": "Properties", "kind": 1024, "children": [ - 275, - 276 + 279, + 280 ] } ] @@ -8029,14 +8029,14 @@ { "type": "reflection", "declaration": { - "id": 277, + "id": 281, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 278, + "id": 282, "name": "data", "kind": 1024, "kindString": "Property", @@ -8054,7 +8054,7 @@ } }, { - "id": 279, + "id": 283, "name": "error", "kind": 1024, "kindString": "Property", @@ -8068,7 +8068,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -8078,8 +8078,8 @@ "title": "Properties", "kind": 1024, "children": [ - 278, - 279 + 282, + 283 ] } ] @@ -8096,7 +8096,7 @@ ] }, { - "id": 178, + "id": 180, "name": "update", "kind": 2048, "kindString": "Method", @@ -8110,7 +8110,7 @@ ], "signatures": [ { - "id": 179, + "id": 181, "name": "update", "kind": 4096, "kindString": "Call signature", @@ -8120,7 +8120,7 @@ }, "parameters": [ { - "id": 180, + "id": 182, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -8134,7 +8134,7 @@ } }, { - "id": 181, + "id": 183, "name": "fileBody", "kind": 32768, "kindString": "Parameter", @@ -8215,7 +8215,7 @@ } }, { - "id": 182, + "id": 184, "name": "fileOptions", "kind": 32768, "kindString": "Parameter", @@ -8224,17 +8224,17 @@ }, "type": { "type": "reference", - "id": 417, + "id": 421, "name": "FileOptions", "dereferenced": { - "id": 417, + "id": 421, "name": "FileOptions", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 418, + "id": 422, "name": "cacheControl", "kind": 1024, "kindString": "Property", @@ -8257,7 +8257,7 @@ } }, { - "id": 419, + "id": 423, "name": "contentType", "kind": 1024, "kindString": "Property", @@ -8280,7 +8280,7 @@ } }, { - "id": 421, + "id": 425, "name": "duplex", "kind": 1024, "kindString": "Property", @@ -8303,7 +8303,7 @@ } }, { - "id": 420, + "id": 424, "name": "upsert", "kind": 1024, "kindString": "Property", @@ -8331,10 +8331,10 @@ "title": "Properties", "kind": 1024, "children": [ - 418, - 419, - 421, - 420 + 422, + 423, + 425, + 424 ] } ], @@ -8358,14 +8358,14 @@ { "type": "reflection", "declaration": { - "id": 183, + "id": 185, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 184, + "id": 186, "name": "data", "kind": 1024, "kindString": "Property", @@ -8380,15 +8380,33 @@ "type": { "type": "reflection", "declaration": { - "id": 185, + "id": 187, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 186, - "name": "path", + "id": 190, + "name": "fullPath", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/packages/StorageFileApi.ts", + "line": 285, + "character": 42 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 188, + "name": "id", "kind": 1024, "kindString": "Property", "flags": {}, @@ -8403,6 +8421,24 @@ "type": "intrinsic", "name": "string" } + }, + { + "id": 189, + "name": "path", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/packages/StorageFileApi.ts", + "line": 285, + "character": 28 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } } ], "groups": [ @@ -8410,7 +8446,9 @@ "title": "Properties", "kind": 1024, "children": [ - 186 + 190, + 188, + 189 ] } ] @@ -8418,7 +8456,7 @@ } }, { - "id": 187, + "id": 191, "name": "error", "kind": 1024, "kindString": "Property", @@ -8441,8 +8479,8 @@ "title": "Properties", "kind": 1024, "children": [ - 184, - 187 + 186, + 191 ] } ] @@ -8451,14 +8489,14 @@ { "type": "reflection", "declaration": { - "id": 188, + "id": 192, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 189, + "id": 193, "name": "data", "kind": 1024, "kindString": "Property", @@ -8476,7 +8514,7 @@ } }, { - "id": 190, + "id": 194, "name": "error", "kind": 1024, "kindString": "Property", @@ -8490,7 +8528,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -8500,8 +8538,8 @@ "title": "Properties", "kind": 1024, "children": [ - 189, - 190 + 193, + 194 ] } ] @@ -8579,17 +8617,17 @@ }, "type": { "type": "reference", - "id": 417, + "id": 421, "name": "FileOptions", "dereferenced": { - "id": 417, + "id": 421, "name": "FileOptions", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 418, + "id": 422, "name": "cacheControl", "kind": 1024, "kindString": "Property", @@ -8612,7 +8650,7 @@ } }, { - "id": 419, + "id": 423, "name": "contentType", "kind": 1024, "kindString": "Property", @@ -8635,7 +8673,7 @@ } }, { - "id": 421, + "id": 425, "name": "duplex", "kind": 1024, "kindString": "Property", @@ -8658,7 +8696,7 @@ } }, { - "id": 420, + "id": 424, "name": "upsert", "kind": 1024, "kindString": "Property", @@ -8686,10 +8724,10 @@ "title": "Properties", "kind": 1024, "children": [ - 418, - 419, - 421, - 420 + 422, + 423, + 425, + 424 ] } ], @@ -8741,9 +8779,27 @@ "kindString": "Type literal", "flags": {}, "children": [ + { + "id": 147, + "name": "fullPath", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/packages/StorageFileApi.ts", + "line": 141, + "character": 42 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, { "id": 145, - "name": "path", + "name": "id", "kind": 1024, "kindString": "Property", "flags": {}, @@ -8758,6 +8814,24 @@ "type": "intrinsic", "name": "string" } + }, + { + "id": 146, + "name": "path", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/packages/StorageFileApi.ts", + "line": 141, + "character": 28 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } } ], "groups": [ @@ -8765,7 +8839,9 @@ "title": "Properties", "kind": 1024, "children": [ - 145 + 147, + 145, + 146 ] } ] @@ -8773,7 +8849,7 @@ } }, { - "id": 146, + "id": 148, "name": "error", "kind": 1024, "kindString": "Property", @@ -8797,7 +8873,7 @@ "kind": 1024, "children": [ 143, - 146 + 148 ] } ] @@ -8806,14 +8882,14 @@ { "type": "reflection", "declaration": { - "id": 147, + "id": 149, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 148, + "id": 150, "name": "data", "kind": 1024, "kindString": "Property", @@ -8831,7 +8907,7 @@ } }, { - "id": 149, + "id": 151, "name": "error", "kind": 1024, "kindString": "Property", @@ -8845,7 +8921,7 @@ ], "type": { "type": "reference", - "id": 440, + "id": 444, "name": "StorageError" } } @@ -8855,8 +8931,8 @@ "title": "Properties", "kind": 1024, "children": [ - 148, - 149 + 150, + 151 ] } ] @@ -8873,7 +8949,7 @@ ] }, { - "id": 150, + "id": 152, "name": "uploadToSignedUrl", "kind": 2048, "kindString": "Method", @@ -8887,7 +8963,7 @@ ], "signatures": [ { - "id": 151, + "id": 153, "name": "uploadToSignedUrl", "kind": 4096, "kindString": "Call signature", @@ -8897,7 +8973,7 @@ }, "parameters": [ { - "id": 152, + "id": 154, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -8911,7 +8987,7 @@ } }, { - "id": 153, + "id": 155, "name": "token", "kind": 32768, "kindString": "Parameter", @@ -8925,7 +9001,7 @@ } }, { - "id": 154, + "id": 156, "name": "fileBody", "kind": 32768, "kindString": "Parameter", @@ -8939,7 +9015,7 @@ } }, { - "id": 155, + "id": 157, "name": "fileOptions", "kind": 32768, "kindString": "Parameter", @@ -8948,17 +9024,17 @@ }, "type": { "type": "reference", - "id": 417, + "id": 421, "name": "FileOptions", "dereferenced": { - "id": 417, + "id": 421, "name": "FileOptions", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 418, + "id": 422, "name": "cacheControl", "kind": 1024, "kindString": "Property", @@ -8981,7 +9057,7 @@ } }, { - "id": 419, + "id": 423, "name": "contentType", "kind": 1024, "kindString": "Property", @@ -9004,7 +9080,7 @@ } }, { - "id": 421, + "id": 425, "name": "duplex", "kind": 1024, "kindString": "Property", @@ -9027,7 +9103,7 @@ } }, { - "id": 420, + "id": 424, "name": "upsert", "kind": 1024, "kindString": "Property", @@ -9055,10 +9131,10 @@ "title": "Properties", "kind": 1024, "children": [ - 418, - 419, - 421, - 420 + 422, + 423, + 425, + 424 ] } ], @@ -9082,14 +9158,14 @@ { "type": "reflection", "declaration": { - "id": 156, + "id": 158, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 157, + "id": 159, "name": "data", "kind": 1024, "kindString": "Property", @@ -9104,14 +9180,14 @@ "type": { "type": "reflection", "declaration": { - "id": 158, + "id": 160, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 160, + "id": 162, "name": "fullPath", "kind": 1024, "kindString": "Property", @@ -9130,7 +9206,7 @@ "defaultValue": "data.Key" }, { - "id": 159, + "id": 161, "name": "path", "kind": 1024, "kindString": "Property", @@ -9154,8 +9230,8 @@ "title": "Properties", "kind": 1024, "children": [ - 160, - 159 + 162, + 161 ] } ] @@ -9164,7 +9240,7 @@ "defaultValue": "..." }, { - "id": 161, + "id": 163, "name": "error", "kind": 1024, "kindString": "Property", @@ -9188,8 +9264,8 @@ "title": "Properties", "kind": 1024, "children": [ - 157, - 161 + 159, + 163 ] } ] @@ -9198,14 +9274,14 @@ { "type": "reflection", "declaration": { - "id": 162, + "id": 164, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 163, + "id": 165, "name": "data", "kind": 1024, "kindString": "Property", @@ -9224,7 +9300,7 @@ "defaultValue": "null" }, { - "id": 164, + "id": 166, "name": "error", "kind": 1024, "kindString": "Property", @@ -9240,8 +9316,8 @@ "title": "Properties", "kind": 1024, "children": [ - 163, - 164 + 165, + 166 ] } ] @@ -9270,18 +9346,18 @@ "title": "Methods", "kind": 2048, "children": [ - 203, - 165, - 215, - 231, - 248, - 260, - 280, - 191, - 271, - 178, + 207, + 167, + 219, + 235, + 252, + 264, + 284, + 195, + 275, + 180, 137, - 150 + 152 ] } ], diff --git a/apps/docs/spec/enrichments/tsdoc_v2/supabase.json b/apps/docs/spec/enrichments/tsdoc_v2/supabase.json index 386f31604f9..8559fef0cbe 100644 --- a/apps/docs/spec/enrichments/tsdoc_v2/supabase.json +++ b/apps/docs/spec/enrichments/tsdoc_v2/supabase.json @@ -13,7 +13,7 @@ "flags": {}, "children": [ { - "id": 211, + "id": 213, "name": "QueryData", "kind": 16777216, "kindString": "Reference", @@ -21,14 +21,14 @@ "sources": [ { "fileName": "src/index.ts", - "line": 20, + "line": 22, "character": 50 } ], - "target": 106 + "target": 112 }, { - "id": 212, + "id": 214, "name": "QueryError", "kind": 16777216, "kindString": "Reference", @@ -36,14 +36,14 @@ "sources": [ { "fileName": "src/index.ts", - "line": 20, + "line": 22, "character": 61 } ], - "target": 110 + "target": 116 }, { - "id": 210, + "id": 212, "name": "QueryResult", "kind": 16777216, "kindString": "Reference", @@ -51,14 +51,14 @@ "sources": [ { "fileName": "src/index.ts", - "line": 20, + "line": 22, "character": 37 } ], - "target": 104 + "target": 110 }, { - "id": 209, + "id": 211, "name": "SupabaseClientOptions", "kind": 16777216, "kindString": "Reference", @@ -66,14 +66,14 @@ "sources": [ { "fileName": "src/index.ts", - "line": 20, + "line": 22, "character": 14 } ], - "target": 60 + "target": 70 }, { - "id": 113, + "id": 119, "name": "SupabaseClient", "kind": 128, "kindString": "Class", @@ -84,7 +84,7 @@ }, "children": [ { - "id": 114, + "id": 120, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -92,13 +92,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 83, + "line": 69, "character": 2 } ], "signatures": [ { - "id": 115, + "id": 121, "name": "new SupabaseClient", "kind": 16384, "kindString": "Constructor signature", @@ -108,7 +108,7 @@ }, "typeParameter": [ { - "id": 116, + "id": 122, "name": "Database", "kind": 131072, "kindString": "Type parameter", @@ -119,7 +119,7 @@ } }, { - "id": 117, + "id": 123, "name": "SchemaName", "kind": 131072, "kindString": "Type parameter", @@ -139,7 +139,7 @@ "operator": "keyof", "target": { "type": "reference", - "id": 116, + "id": 122, "name": "Database" } }, @@ -159,7 +159,7 @@ "operator": "keyof", "target": { "type": "reference", - "id": 116, + "id": 122, "name": "Database" } } @@ -168,14 +168,14 @@ } }, { - "id": 118, + "id": 124, "name": "Schema", "kind": 131072, "kindString": "Type parameter", "flags": {}, "type": { "type": "reference", - "id": 99, + "id": 105, "name": "GenericSchema" }, "default": { @@ -184,18 +184,18 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 117, + "id": 123, "name": "SchemaName" }, "objectType": { "type": "reference", - "id": 116, + "id": 122, "name": "Database" } }, "extendsType": { "type": "reference", - "id": 99, + "id": 105, "name": "GenericSchema" }, "trueType": { @@ -218,7 +218,7 @@ ], "parameters": [ { - "id": 119, + "id": 125, "name": "supabaseUrl", "kind": 32768, "kindString": "Parameter", @@ -232,7 +232,7 @@ } }, { - "id": 120, + "id": 126, "name": "supabaseKey", "kind": 32768, "kindString": "Parameter", @@ -246,7 +246,7 @@ } }, { - "id": 121, + "id": 127, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -255,11 +255,11 @@ }, "type": { "type": "reference", - "id": 60, + "id": 70, "typeArguments": [ { "type": "reference", - "id": 117, + "id": 123, "name": "SchemaName" } ], @@ -269,21 +269,21 @@ ], "type": { "type": "reference", - "id": 113, + "id": 119, "typeArguments": [ { "type": "reference", - "id": 116, + "id": 122, "name": "Database" }, { "type": "reference", - "id": 117, + "id": 123, "name": "SchemaName" }, { "type": "reference", - "id": 118, + "id": 124, "name": "Schema" } ], @@ -293,7 +293,7 @@ ] }, { - "id": 122, + "id": 128, "name": "auth", "kind": 1024, "kindString": "Property", @@ -304,7 +304,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 55, + "line": 43, "character": 2 } ], @@ -314,7 +314,7 @@ } }, { - "id": 125, + "id": 131, "name": "authUrl", "kind": 1024, "kindString": "Property", @@ -324,7 +324,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 59, + "line": 47, "character": 12 } ], @@ -334,7 +334,7 @@ } }, { - "id": 135, + "id": 141, "name": "changedAccessToken", "kind": 1024, "kindString": "Property", @@ -345,7 +345,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 65, + "line": 53, "character": 12 } ], @@ -355,7 +355,7 @@ } }, { - "id": 130, + "id": 136, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -366,28 +366,28 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 64, + "line": 52, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 131, + "id": 137, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 132, + "id": 138, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 133, + "id": 139, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -411,7 +411,7 @@ } }, { - "id": 134, + "id": 140, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -446,7 +446,7 @@ } }, { - "id": 127, + "id": 133, "name": "functionsUrl", "kind": 1024, "kindString": "Property", @@ -456,7 +456,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 61, + "line": 49, "character": 12 } ], @@ -466,7 +466,7 @@ } }, { - "id": 136, + "id": 142, "name": "headers", "kind": 1024, "kindString": "Property", @@ -476,46 +476,29 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 67, + "line": 55, "character": 12 } ], "type": { - "type": "reflection", - "declaration": { - "id": 137, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "indexSignature": { - "id": 138, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": {}, - "parameters": [ - { - "id": 139, - "name": "key", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "string" } - } + ], + "qualifiedName": "Record", + "package": "typescript", + "name": "Record" } }, { - "id": 123, + "id": 129, "name": "realtime", "kind": 1024, "kindString": "Property", @@ -523,7 +506,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 56, + "line": 44, "character": 2 } ], @@ -535,7 +518,7 @@ } }, { - "id": 124, + "id": 130, "name": "realtimeUrl", "kind": 1024, "kindString": "Property", @@ -545,7 +528,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 58, + "line": 46, "character": 12 } ], @@ -555,7 +538,7 @@ } }, { - "id": 128, + "id": 134, "name": "rest", "kind": 1024, "kindString": "Property", @@ -565,7 +548,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 62, + "line": 50, "character": 12 } ], @@ -574,12 +557,12 @@ "typeArguments": [ { "type": "reference", - "id": 116, + "id": 122, "name": "Database" }, { "type": "reference", - "id": 117, + "id": 123, "name": "SchemaName" }, { @@ -588,12 +571,12 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 117, + "id": 123, "name": "SchemaName" }, "objectType": { "type": "reference", - "id": 116, + "id": 122, "name": "Database" } }, @@ -626,7 +609,7 @@ } }, { - "id": 129, + "id": 135, "name": "storageKey", "kind": 1024, "kindString": "Property", @@ -636,7 +619,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 63, + "line": 51, "character": 12 } ], @@ -646,7 +629,7 @@ } }, { - "id": 126, + "id": 132, "name": "storageUrl", "kind": 1024, "kindString": "Property", @@ -656,7 +639,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 60, + "line": 48, "character": 12 } ], @@ -666,7 +649,7 @@ } }, { - "id": 141, + "id": 144, "name": "supabaseKey", "kind": 1024, "kindString": "Property", @@ -679,7 +662,7 @@ } }, { - "id": 140, + "id": 143, "name": "supabaseUrl", "kind": 1024, "kindString": "Property", @@ -692,7 +675,7 @@ } }, { - "id": 142, + "id": 145, "name": "functions", "kind": 262144, "kindString": "Accessor", @@ -700,13 +683,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 132, + "line": 118, "character": 6 } ], "getSignature": [ { - "id": 143, + "id": 146, "name": "functions", "kind": 524288, "kindString": "Get signature", @@ -724,7 +707,7 @@ ] }, { - "id": 144, + "id": 147, "name": "storage", "kind": 262144, "kindString": "Accessor", @@ -732,13 +715,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 142, + "line": 128, "character": 6 } ], "getSignature": [ { - "id": 145, + "id": 148, "name": "storage", "kind": 524288, "kindString": "Get signature", @@ -756,7 +739,7 @@ ] }, { - "id": 184, + "id": 186, "name": "_getAccessToken", "kind": 2048, "kindString": "Method", @@ -766,13 +749,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 259, + "line": 246, "character": 16 } ], "signatures": [ { - "id": 185, + "id": 187, "name": "_getAccessToken", "kind": 4096, "kindString": "Call signature", @@ -802,7 +785,7 @@ ] }, { - "id": 201, + "id": 203, "name": "_handleTokenChanged", "kind": 2048, "kindString": "Method", @@ -812,20 +795,20 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 310, + "line": 297, "character": 10 } ], "signatures": [ { - "id": 202, + "id": 204, "name": "_handleTokenChanged", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 203, + "id": 205, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -833,12 +816,12 @@ "type": { "type": "reference", "qualifiedName": "AuthChangeEvent", - "package": "@supabase/gotrue-js", + "package": "@supabase/auth-js", "name": "AuthChangeEvent" } }, { - "id": 204, + "id": 206, "name": "source", "kind": 32768, "kindString": "Parameter", @@ -858,7 +841,7 @@ } }, { - "id": 205, + "id": 207, "name": "token", "kind": 32768, "kindString": "Parameter", @@ -879,7 +862,7 @@ ] }, { - "id": 195, + "id": 197, "name": "_initRealtimeClient", "kind": 2048, "kindString": "Method", @@ -889,20 +872,20 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 296, + "line": 283, "character": 10 } ], "signatures": [ { - "id": 196, + "id": 198, "name": "_initRealtimeClient", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 197, + "id": 199, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -925,7 +908,7 @@ ] }, { - "id": 186, + "id": 188, "name": "_initSupabaseAuthClient", "kind": 2048, "kindString": "Method", @@ -935,32 +918,32 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 265, + "line": 252, "character": 10 } ], "signatures": [ { - "id": 187, + "id": 189, "name": "_initSupabaseAuthClient", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 188, + "id": 190, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions" } }, { - "id": 189, + "id": 191, "name": "headers", "kind": 32768, "kindString": "Parameter", @@ -985,7 +968,7 @@ } }, { - "id": 190, + "id": 192, "name": "fetch", "kind": 32768, "kindString": "Parameter", @@ -995,21 +978,21 @@ "type": { "type": "reflection", "declaration": { - "id": 191, + "id": 193, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 192, + "id": 194, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 193, + "id": 195, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -1033,7 +1016,7 @@ } }, { - "id": 194, + "id": 196, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -1076,7 +1059,7 @@ ] }, { - "id": 198, + "id": 200, "name": "_listenForAuthEvents", "kind": 2048, "kindString": "Method", @@ -1086,13 +1069,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 303, + "line": 290, "character": 10 } ], "signatures": [ { - "id": 199, + "id": 201, "name": "_listenForAuthEvents", "kind": 4096, "kindString": "Call signature", @@ -1100,7 +1083,7 @@ "type": { "type": "reflection", "declaration": { - "id": 200, + "id": 202, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1111,7 +1094,7 @@ ] }, { - "id": 173, + "id": 175, "name": "channel", "kind": 2048, "kindString": "Method", @@ -1119,13 +1102,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 231, + "line": 218, "character": 2 } ], "signatures": [ { - "id": 174, + "id": 176, "name": "channel", "kind": 4096, "kindString": "Call signature", @@ -1135,7 +1118,7 @@ }, "parameters": [ { - "id": 175, + "id": 177, "name": "name", "kind": 32768, "kindString": "Parameter", @@ -1149,7 +1132,7 @@ } }, { - "id": 176, + "id": 178, "name": "opts", "kind": 32768, "kindString": "Parameter", @@ -1176,7 +1159,7 @@ ] }, { - "id": 146, + "id": 149, "name": "from", "kind": 2048, "kindString": "Method", @@ -1184,13 +1167,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 146, + "line": 133, "character": 2 } ], "signatures": [ { - "id": 147, + "id": 150, "name": "from", "kind": 4096, "kindString": "Call signature", @@ -1200,7 +1183,7 @@ }, "typeParameter": [ { - "id": 148, + "id": 151, "name": "TableName", "kind": 131072, "kindString": "Type parameter", @@ -1211,21 +1194,21 @@ } }, { - "id": 149, + "id": 152, "name": "Table", "kind": 131072, "kindString": "Type parameter", "flags": {}, "type": { "type": "reference", - "id": 81, + "id": 91, "name": "GenericTable" } } ], "parameters": [ { - "id": 150, + "id": 153, "name": "relation", "kind": 32768, "kindString": "Parameter", @@ -1235,7 +1218,7 @@ }, "type": { "type": "reference", - "id": 148, + "id": 151, "name": "TableName" } } @@ -1245,25 +1228,30 @@ "typeArguments": [ { "type": "reference", - "id": 118, + "id": 124, "name": "Schema" }, { "type": "reference", - "id": 149, + "id": 152, "name": "Table" }, + { + "type": "reference", + "id": 151, + "name": "TableName" + }, { "type": "conditional", "checkType": { "type": "reference", - "id": 149, + "id": 152, "name": "Table" }, "extendsType": { "type": "reflection", "declaration": { - "id": 151, + "id": 154, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1288,7 +1276,7 @@ } }, { - "id": 152, + "id": 155, "name": "from", "kind": 4096, "kindString": "Call signature", @@ -1298,7 +1286,7 @@ }, "typeParameter": [ { - "id": 153, + "id": 156, "name": "ViewName", "kind": 131072, "kindString": "Type parameter", @@ -1309,91 +1297,18 @@ } }, { - "id": 154, + "id": 157, "name": "View", "kind": 131072, "kindString": "Type parameter", "flags": {}, "type": { "type": "reference", - "id": 94, + "id": 100, "name": "GenericView" } } ], - "parameters": [ - { - "id": 155, - "name": "relation", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "shortText": "The table or view name to query\n" - }, - "type": { - "type": "reference", - "id": 153, - "name": "ViewName" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 118, - "name": "Schema" - }, - { - "type": "reference", - "id": 154, - "name": "View" - }, - { - "type": "conditional", - "checkType": { - "type": "reference", - "id": 154, - "name": "View" - }, - "extendsType": { - "type": "reflection", - "declaration": { - "id": 156, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {} - } - }, - "trueType": { - "type": "reference", - "qualifiedName": "R", - "package": "@supabase/postgrest-js", - "name": "R" - }, - "falseType": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "qualifiedName": "PostgrestQueryBuilder", - "package": "@supabase/postgrest-js", - "name": "default" - } - }, - { - "id": 157, - "name": "from", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Perform a query on a table or a view." - }, "parameters": [ { "id": 158, @@ -1405,8 +1320,9 @@ "shortText": "The table or view name to query\n" }, "type": { - "type": "intrinsic", - "name": "string" + "type": "reference", + "id": 156, + "name": "ViewName" } } ], @@ -1415,16 +1331,46 @@ "typeArguments": [ { "type": "reference", - "id": 118, + "id": 124, "name": "Schema" }, { - "type": "intrinsic", - "name": "any" + "type": "reference", + "id": 157, + "name": "View" }, { - "type": "intrinsic", - "name": "unknown" + "type": "reference", + "id": 156, + "name": "ViewName" + }, + { + "type": "conditional", + "checkType": { + "type": "reference", + "id": 157, + "name": "View" + }, + "extendsType": { + "type": "reflection", + "declaration": { + "id": 159, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {} + } + }, + "trueType": { + "type": "reference", + "qualifiedName": "R", + "package": "@supabase/postgrest-js", + "name": "R" + }, + "falseType": { + "type": "intrinsic", + "name": "unknown" + } } ], "qualifiedName": "PostgrestQueryBuilder", @@ -1435,7 +1381,7 @@ ] }, { - "id": 177, + "id": 179, "name": "getChannels", "kind": 2048, "kindString": "Method", @@ -1443,13 +1389,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 238, + "line": 225, "character": 2 } ], "signatures": [ { - "id": 178, + "id": 180, "name": "getChannels", "kind": 4096, "kindString": "Call signature", @@ -1470,7 +1416,7 @@ ] }, { - "id": 182, + "id": 184, "name": "removeAllChannels", "kind": 2048, "kindString": "Method", @@ -1478,13 +1424,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 255, + "line": 242, "character": 2 } ], "signatures": [ { - "id": 183, + "id": 185, "name": "removeAllChannels", "kind": 4096, "kindString": "Call signature", @@ -1524,7 +1470,7 @@ ] }, { - "id": 179, + "id": 181, "name": "removeChannel", "kind": 2048, "kindString": "Method", @@ -1532,13 +1478,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 248, + "line": 235, "character": 2 } ], "signatures": [ { - "id": 180, + "id": 182, "name": "removeChannel", "kind": 4096, "kindString": "Call signature", @@ -1548,7 +1494,7 @@ }, "parameters": [ { - "id": 181, + "id": 183, "name": "channel", "kind": 32768, "kindString": "Parameter", @@ -1593,7 +1539,7 @@ ] }, { - "id": 163, + "id": 164, "name": "rpc", "kind": 2048, "kindString": "Method", @@ -1601,13 +1547,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 202, + "line": 191, "character": 2 } ], "signatures": [ { - "id": 164, + "id": 165, "name": "rpc", "kind": 4096, "kindString": "Call signature", @@ -1617,8 +1563,8 @@ }, "typeParameter": [ { - "id": 165, - "name": "FunctionName", + "id": 166, + "name": "FnName", "kind": 131072, "kindString": "Type parameter", "flags": {}, @@ -1628,21 +1574,21 @@ } }, { - "id": 166, - "name": "Function_", + "id": 167, + "name": "Fn", "kind": 131072, "kindString": "Type parameter", "flags": {}, "type": { "type": "reference", - "id": 95, + "id": 101, "name": "GenericFunction" } } ], "parameters": [ { - "id": 167, + "id": 168, "name": "fn", "kind": 32768, "kindString": "Parameter", @@ -1652,12 +1598,12 @@ }, "type": { "type": "reference", - "id": 165, - "name": "FunctionName" + "id": 166, + "name": "FnName" } }, { - "id": 168, + "id": 169, "name": "args", "kind": 32768, "kindString": "Parameter", @@ -1673,34 +1619,32 @@ }, "objectType": { "type": "reference", - "id": 166, - "name": "Function_" + "id": 167, + "name": "Fn" } }, "defaultValue": "{}" }, { - "id": 169, + "id": 170, "name": "options", "kind": 32768, "kindString": "Parameter", - "flags": { - "isOptional": true - }, + "flags": {}, "comment": { "shortText": "Named parameters" }, "type": { "type": "reflection", "declaration": { - "id": 170, + "id": 171, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 172, + "id": 174, "name": "count", "kind": 1024, "kindString": "Property", @@ -1713,7 +1657,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 210, + "line": 197, "character": 6 } ], @@ -1736,7 +1680,30 @@ } }, { - "id": 171, + "id": 173, + "name": "get", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "When set to `true`, the function will be called with\nread-only access mode." + }, + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 196, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 172, "name": "head", "kind": 1024, "kindString": "Property", @@ -1749,7 +1716,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 209, + "line": 195, "character": 6 } ], @@ -1764,13 +1731,15 @@ "title": "Properties", "kind": 1024, "children": [ - 172, - 171 + 174, + 173, + 172 ] } ] } - } + }, + "defaultValue": "{}" } ], "type": { @@ -1778,7 +1747,7 @@ "typeArguments": [ { "type": "reference", - "id": 118, + "id": 124, "name": "Schema" }, { @@ -1791,8 +1760,8 @@ }, "objectType": { "type": "reference", - "id": 166, - "name": "Function_" + "id": 167, + "name": "Fn" } }, "extendsType": { @@ -1867,10 +1836,14 @@ }, "objectType": { "type": "reference", - "id": 166, - "name": "Function_" + "id": 167, + "name": "Fn" } }, + { + "type": "intrinsic", + "name": "unknown" + }, { "type": "intrinsic", "name": "unknown" @@ -1884,7 +1857,7 @@ ] }, { - "id": 159, + "id": 160, "name": "schema", "kind": 2048, "kindString": "Method", @@ -1892,24 +1865,24 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 171, + "line": 157, "character": 2 } ], "signatures": [ { - "id": 160, + "id": 161, "name": "schema", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Perform a query on a schema distinct from the default schema supplied via\nthe `options.db.schema` constructor parameter.", + "shortText": "Select a schema to query or perform an function (rpc) call.", "text": "The schema needs to be on the list of exposed schemas inside Supabase.\n" }, "typeParameter": [ { - "id": 161, + "id": 162, "name": "DynamicSchema", "kind": 131072, "kindString": "Type parameter", @@ -1922,17 +1895,17 @@ ], "parameters": [ { - "id": 162, + "id": 163, "name": "schema", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The name of the schema to query\n" + "shortText": "The schema to query\n" }, "type": { "type": "reference", - "id": 161, + "id": 162, "name": "DynamicSchema" } } @@ -1942,12 +1915,12 @@ "typeArguments": [ { "type": "reference", - "id": 116, + "id": 122, "name": "Database" }, { "type": "reference", - "id": 161, + "id": 162, "name": "DynamicSchema" }, { @@ -1956,18 +1929,18 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 161, + "id": 162, "name": "DynamicSchema" }, "objectType": { "type": "reference", - "id": 116, + "id": 122, "name": "Database" } }, "extendsType": { "type": "reference", - "id": 99, + "id": 105, "name": "GenericSchema" }, "trueType": { @@ -2000,65 +1973,65 @@ "title": "Constructors", "kind": 512, "children": [ - 114 + 120 ] }, { "title": "Properties", "kind": 1024, "children": [ - 122, - 125, - 135, - 130, - 127, - 136, - 123, - 124, 128, - 129, - 126, + 131, 141, - 140 + 136, + 133, + 142, + 129, + 130, + 134, + 135, + 132, + 144, + 143 ] }, { "title": "Accessors", "kind": 262144, "children": [ - 142, - 144 + 145, + 147 ] }, { "title": "Methods", "kind": 2048, "children": [ - 184, - 201, - 195, 186, - 198, - 173, - 146, - 177, - 182, + 203, + 197, + 188, + 200, + 175, + 149, 179, - 163, - 159 + 184, + 181, + 164, + 160 ] } ], "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 43, + "line": 31, "character": 21 } ], "typeParameter": [ { - "id": 206, + "id": 208, "name": "Database", "kind": 131072, "kindString": "Type parameter", @@ -2069,7 +2042,7 @@ } }, { - "id": 207, + "id": 209, "name": "SchemaName", "kind": 131072, "kindString": "Type parameter", @@ -2086,7 +2059,7 @@ "operator": "keyof", "target": { "type": "reference", - "id": 116, + "id": 122, "name": "Database" } } @@ -2103,7 +2076,7 @@ "operator": "keyof", "target": { "type": "reference", - "id": 116, + "id": 122, "name": "Database" } }, @@ -2123,7 +2096,7 @@ "operator": "keyof", "target": { "type": "reference", - "id": 116, + "id": 122, "name": "Database" } } @@ -2132,14 +2105,14 @@ } }, { - "id": 208, + "id": 210, "name": "Schema", "kind": 131072, "kindString": "Type parameter", "flags": {}, "type": { "type": "reference", - "id": 99, + "id": 105, "name": "GenericSchema" }, "default": { @@ -2148,30 +2121,30 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 117, + "id": 123, "name": "SchemaName" }, "objectType": { "type": "reference", - "id": 116, + "id": 122, "name": "Database" } }, "extendsType": { "type": "reference", - "id": 99, + "id": 105, "name": "GenericSchema" }, "trueType": { "type": "indexedAccess", "indexType": { "type": "reference", - "id": 117, + "id": 123, "name": "SchemaName" }, "objectType": { "type": "reference", - "id": 116, + "id": 122, "name": "Database" } }, @@ -2192,7 +2165,7 @@ "sources": [ { "fileName": "src/index.ts", - "line": 25, + "line": 27, "character": 13 } ], @@ -2275,7 +2248,7 @@ "flags": {}, "type": { "type": "reference", - "id": 99, + "id": 105, "name": "GenericSchema" }, "default": { @@ -2295,7 +2268,7 @@ }, "extendsType": { "type": "reference", - "id": 99, + "id": 105, "name": "GenericSchema" }, "trueType": { @@ -2349,7 +2322,7 @@ }, "type": { "type": "reference", - "id": 60, + "id": 70, "typeArguments": [ { "type": "reference", @@ -2363,7 +2336,7 @@ ], "type": { "type": "reference", - "id": 113, + "id": 119, "typeArguments": [ { "type": "reference", @@ -2392,17 +2365,17 @@ "title": "References", "kind": 16777216, "children": [ - 211, + 213, + 214, 212, - 210, - 209 + 211 ] }, { "title": "Classes", "kind": 128, "children": [ - 113 + 119 ] }, { @@ -2428,6 +2401,178 @@ "kindString": "Module", "flags": {}, "children": [ + { + "id": 22, + "name": "DEFAULT_AUTH_OPTIONS", + "kind": 32, + "kindString": "Variable", + "flags": { + "isConst": true + }, + "sources": [ + { + "fileName": "src/lib/constants.ts", + "line": 28, + "character": 13 + } + ], + "type": { + "type": "reference", + "id": 68, + "name": "SupabaseAuthClientOptions" + }, + "defaultValue": "..." + }, + { + "id": 19, + "name": "DEFAULT_DB_OPTIONS", + "kind": 32, + "kindString": "Variable", + "flags": { + "isConst": true + }, + "sources": [ + { + "fileName": "src/lib/constants.ts", + "line": 24, + "character": 13 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 20, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 21, + "name": "schema", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/constants.ts", + "line": 25, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "'public'" + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 21 + ] + } + ] + } + }, + "defaultValue": "..." + }, + { + "id": 14, + "name": "DEFAULT_GLOBAL_OPTIONS", + "kind": 32, + "kindString": "Variable", + "flags": { + "isConst": true + }, + "sources": [ + { + "fileName": "src/lib/constants.ts", + "line": 20, + "character": 13 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 15, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 16, + "name": "headers", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/constants.ts", + "line": 21, + "character": 2 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 17, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 18, + "name": "X-Client-Info", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/constants.ts", + "line": 18, + "character": 33 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "..." + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 18 + ] + } + ] + } + }, + "defaultValue": "DEFAULT_HEADERS" + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 16 + ] + } + ] + } + }, + "defaultValue": "..." + }, { "id": 11, "name": "DEFAULT_HEADERS", @@ -2439,7 +2584,7 @@ "sources": [ { "fileName": "src/lib/constants.ts", - "line": 14, + "line": 18, "character": 13 } ], @@ -2461,7 +2606,7 @@ "sources": [ { "fileName": "src/lib/constants.ts", - "line": 14, + "line": 18, "character": 33 } ], @@ -2484,6 +2629,29 @@ } }, "defaultValue": "..." + }, + { + "id": 23, + "name": "DEFAULT_REALTIME_OPTIONS", + "kind": 32, + "kindString": "Variable", + "flags": { + "isConst": true + }, + "sources": [ + { + "fileName": "src/lib/constants.ts", + "line": 35, + "character": 13 + } + ], + "type": { + "type": "reference", + "qualifiedName": "RealtimeClientOptions", + "package": "@supabase/realtime-js", + "name": "RealtimeClientOptions" + }, + "defaultValue": "{}" } ], "groups": [ @@ -2491,7 +2659,11 @@ "title": "Variables", "kind": 32, "children": [ - 11 + 22, + 19, + 14, + 11, + 23 ] } ], @@ -2504,14 +2676,14 @@ ] }, { - "id": 14, + "id": 24, "name": "lib/fetch", "kind": 2, "kindString": "Module", "flags": {}, "children": [ { - "id": 28, + "id": 38, "name": "fetchWithAuth", "kind": 64, "kindString": "Function", @@ -2525,14 +2697,14 @@ ], "signatures": [ { - "id": 29, + "id": 39, "name": "fetchWithAuth", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 30, + "id": 40, "name": "supabaseKey", "kind": 32768, "kindString": "Parameter", @@ -2543,7 +2715,7 @@ } }, { - "id": 31, + "id": 41, "name": "getAccessToken", "kind": 32768, "kindString": "Parameter", @@ -2551,14 +2723,14 @@ "type": { "type": "reflection", "declaration": { - "id": 32, + "id": 42, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 33, + "id": 43, "name": "__type", "kind": 4096, "kindString": "Call signature", @@ -2590,7 +2762,7 @@ } }, { - "id": 34, + "id": 44, "name": "customFetch", "kind": 32768, "kindString": "Parameter", @@ -2600,21 +2772,21 @@ "type": { "type": "reflection", "declaration": { - "id": 35, + "id": 45, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 36, + "id": 46, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 37, + "id": 47, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -2638,7 +2810,7 @@ } }, { - "id": 38, + "id": 48, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -2676,21 +2848,21 @@ "type": { "type": "reflection", "declaration": { - "id": 39, + "id": 49, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 40, + "id": 50, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 41, + "id": 51, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -2714,7 +2886,7 @@ } }, { - "id": 42, + "id": 52, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -2751,7 +2923,7 @@ ] }, { - "id": 15, + "id": 25, "name": "resolveFetch", "kind": 64, "kindString": "Function", @@ -2765,14 +2937,14 @@ ], "signatures": [ { - "id": 16, + "id": 26, "name": "resolveFetch", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 17, + "id": 27, "name": "customFetch", "kind": 32768, "kindString": "Parameter", @@ -2782,21 +2954,21 @@ "type": { "type": "reflection", "declaration": { - "id": 18, + "id": 28, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 19, + "id": 29, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 20, + "id": 30, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -2820,7 +2992,7 @@ } }, { - "id": 21, + "id": 31, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -2858,21 +3030,21 @@ "type": { "type": "reflection", "declaration": { - "id": 22, + "id": 32, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 23, + "id": 33, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 24, + "id": 34, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -2896,7 +3068,7 @@ } }, { - "id": 25, + "id": 35, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -2933,7 +3105,7 @@ ] }, { - "id": 26, + "id": 36, "name": "resolveHeadersConstructor", "kind": 64, "kindString": "Function", @@ -2947,7 +3119,7 @@ ], "signatures": [ { - "id": 27, + "id": 37, "name": "resolveHeadersConstructor", "kind": 4096, "kindString": "Call signature", @@ -2965,9 +3137,9 @@ "title": "Functions", "kind": 64, "children": [ - 28, - 15, - 26 + 38, + 25, + 36 ] } ], @@ -2980,14 +3152,14 @@ ] }, { - "id": 43, + "id": 53, "name": "lib/helpers", "kind": 2, "kindString": "Module", "flags": {}, "children": [ { - "id": 49, + "id": 59, "name": "applySettingDefaults", "kind": 64, "kindString": "Function", @@ -3001,14 +3173,14 @@ ], "signatures": [ { - "id": 50, + "id": 60, "name": "applySettingDefaults", "kind": 4096, "kindString": "Call signature", "flags": {}, "typeParameter": [ { - "id": 51, + "id": 61, "name": "Database", "kind": 131072, "kindString": "Type parameter", @@ -3019,7 +3191,7 @@ } }, { - "id": 52, + "id": 62, "name": "SchemaName", "kind": 131072, "kindString": "Type parameter", @@ -3039,7 +3211,7 @@ "operator": "keyof", "target": { "type": "reference", - "id": 51, + "id": 61, "name": "Database" } }, @@ -3059,7 +3231,7 @@ "operator": "keyof", "target": { "type": "reference", - "id": 51, + "id": 61, "name": "Database" } } @@ -3070,18 +3242,18 @@ ], "parameters": [ { - "id": 53, + "id": 63, "name": "options", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 60, + "id": 70, "typeArguments": [ { "type": "reference", - "id": 52, + "id": 62, "name": "SchemaName" } ], @@ -3089,14 +3261,14 @@ } }, { - "id": 54, + "id": 64, "name": "defaults", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 60, + "id": 70, "typeArguments": [ { "type": "intrinsic", @@ -3109,11 +3281,11 @@ ], "type": { "type": "reference", - "id": 60, + "id": 70, "typeArguments": [ { "type": "reference", - "id": 52, + "id": 62, "name": "SchemaName" } ], @@ -3123,7 +3295,7 @@ ] }, { - "id": 55, + "id": 65, "name": "isBrowser", "kind": 64, "kindString": "Function", @@ -3137,7 +3309,7 @@ ], "signatures": [ { - "id": 56, + "id": 66, "name": "isBrowser", "kind": 4096, "kindString": "Call signature", @@ -3150,7 +3322,7 @@ ] }, { - "id": 46, + "id": 56, "name": "stripTrailingSlash", "kind": 64, "kindString": "Function", @@ -3164,14 +3336,14 @@ ], "signatures": [ { - "id": 47, + "id": 57, "name": "stripTrailingSlash", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 48, + "id": 58, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -3190,7 +3362,7 @@ ] }, { - "id": 44, + "id": 54, "name": "uuid", "kind": 64, "kindString": "Function", @@ -3204,7 +3376,7 @@ ], "signatures": [ { - "id": 45, + "id": 55, "name": "uuid", "kind": 4096, "kindString": "Call signature", @@ -3222,10 +3394,10 @@ "title": "Functions", "kind": 64, "children": [ - 49, - 55, - 46, - 44 + 59, + 65, + 56, + 54 ] } ], @@ -3238,14 +3410,14 @@ ] }, { - "id": 57, + "id": 67, "name": "lib/types", "kind": 2, "kindString": "Module", "flags": {}, "children": [ { - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions", "kind": 256, "kindString": "Interface", @@ -3260,12 +3432,12 @@ "extendedTypes": [ { "type": "reference", - "name": "GoTrueClientOptions" + "name": "AuthClientOptions" } ] }, { - "id": 59, + "id": 69, "name": "Fetch", "kind": 4194304, "kindString": "Type alias", @@ -3281,7 +3453,7 @@ "type": "query", "queryType": { "type": "reference", - "id": 18, + "id": 28, "qualifiedName": "fetch", "package": "typescript", "name": "fetch" @@ -3289,7 +3461,7 @@ } }, { - "id": 95, + "id": 101, "name": "GenericFunction", "kind": 4194304, "kindString": "Type alias", @@ -3297,21 +3469,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 89, + "line": 85, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 96, + "id": 102, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 97, + "id": 103, "name": "Args", "kind": 1024, "kindString": "Property", @@ -3319,7 +3491,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 90, + "line": 86, "character": 2 } ], @@ -3341,7 +3513,7 @@ } }, { - "id": 98, + "id": 104, "name": "Returns", "kind": 1024, "kindString": "Property", @@ -3349,7 +3521,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 91, + "line": 87, "character": 2 } ], @@ -3364,15 +3536,15 @@ "title": "Properties", "kind": 1024, "children": [ - 97, - 98 + 103, + 104 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 89, + "line": 85, "character": 30 } ] @@ -3380,7 +3552,7 @@ } }, { - "id": 91, + "id": 97, "name": "GenericNonUpdatableView", "kind": 4194304, "kindString": "Type alias", @@ -3388,21 +3560,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 83, + "line": 79, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 92, + "id": 98, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 93, + "id": 99, "name": "Row", "kind": 1024, "kindString": "Property", @@ -3410,7 +3582,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 84, + "line": 80, "character": 2 } ], @@ -3437,14 +3609,14 @@ "title": "Properties", "kind": 1024, "children": [ - 93 + 99 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 83, + "line": 79, "character": 38 } ] @@ -3452,7 +3624,7 @@ } }, { - "id": 99, + "id": 105, "name": "GenericSchema", "kind": 4194304, "kindString": "Type alias", @@ -3460,21 +3632,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 94, + "line": 90, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 100, + "id": 106, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 103, + "id": 109, "name": "Functions", "kind": 1024, "kindString": "Property", @@ -3482,7 +3654,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 97, + "line": 93, "character": 2 } ], @@ -3495,7 +3667,7 @@ }, { "type": "reference", - "id": 95, + "id": 101, "name": "GenericFunction" } ], @@ -3505,7 +3677,7 @@ } }, { - "id": 101, + "id": 107, "name": "Tables", "kind": 1024, "kindString": "Property", @@ -3513,7 +3685,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 95, + "line": 91, "character": 2 } ], @@ -3526,7 +3698,7 @@ }, { "type": "reference", - "id": 81, + "id": 91, "name": "GenericTable" } ], @@ -3536,7 +3708,7 @@ } }, { - "id": 102, + "id": 108, "name": "Views", "kind": 1024, "kindString": "Property", @@ -3544,7 +3716,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 96, + "line": 92, "character": 2 } ], @@ -3557,7 +3729,7 @@ }, { "type": "reference", - "id": 94, + "id": 100, "name": "GenericView" } ], @@ -3572,16 +3744,16 @@ "title": "Properties", "kind": 1024, "children": [ - 103, - 101, - 102 + 109, + 107, + 108 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 94, + "line": 90, "character": 28 } ] @@ -3589,7 +3761,7 @@ } }, { - "id": 81, + "id": 91, "name": "GenericTable", "kind": 4194304, "kindString": "Type alias", @@ -3604,14 +3776,14 @@ "type": { "type": "reflection", "declaration": { - "id": 82, + "id": 92, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 84, + "id": 94, "name": "Insert", "kind": 1024, "kindString": "Property", @@ -3641,7 +3813,7 @@ } }, { - "id": 83, + "id": 93, "name": "Row", "kind": 1024, "kindString": "Property", @@ -3671,7 +3843,7 @@ } }, { - "id": 85, + "id": 95, "name": "Update", "kind": 1024, "kindString": "Property", @@ -3706,9 +3878,9 @@ "title": "Properties", "kind": 1024, "children": [ - 84, - 83, - 85 + 94, + 93, + 95 ] } ], @@ -3723,7 +3895,7 @@ } }, { - "id": 86, + "id": 96, "name": "GenericUpdatableView", "kind": 4194304, "kindString": "Type alias", @@ -3736,128 +3908,13 @@ } ], "type": { - "type": "reflection", - "declaration": { - "id": 87, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 89, - "name": "Insert", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 79, - "character": 2 - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" - } - }, - { - "id": 88, - "name": "Row", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 78, - "character": 2 - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" - } - }, - { - "id": 90, - "name": "Update", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 80, - "character": 2 - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 89, - 88, - 90 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 77, - "character": 35 - } - ] - } + "type": "reference", + "id": 91, + "name": "GenericTable" } }, { - "id": 94, + "id": 100, "name": "GenericView", "kind": 4194304, "kindString": "Type alias", @@ -3865,7 +3922,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 87, + "line": 83, "character": 12 } ], @@ -3874,19 +3931,19 @@ "types": [ { "type": "reference", - "id": 86, + "id": 96, "name": "GenericUpdatableView" }, { "type": "reference", - "id": 91, + "id": 97, "name": "GenericNonUpdatableView" } ] } }, { - "id": 106, + "id": 112, "name": "QueryData", "kind": 4194304, "kindString": "Type alias", @@ -3894,13 +3951,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 104, + "line": 100, "character": 12 } ], "typeParameter": [ { - "id": 109, + "id": 115, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -3911,7 +3968,7 @@ "type": "conditional", "checkType": { "type": "reference", - "id": 109, + "id": 115, "name": "T" }, "extendsType": { @@ -3920,14 +3977,14 @@ { "type": "reflection", "declaration": { - "id": 107, + "id": 113, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 108, + "id": 114, "name": "data", "kind": 1024, "kindString": "Property", @@ -3935,7 +3992,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 104, + "line": 100, "character": 51 } ], @@ -3950,14 +4007,14 @@ "title": "Properties", "kind": 1024, "children": [ - 108 + 114 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 104, + "line": 100, "character": 49 } ] @@ -3991,7 +4048,7 @@ } }, { - "id": 110, + "id": 116, "name": "QueryError", "kind": 4194304, "kindString": "Type alias", @@ -3999,7 +4056,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 105, + "line": 101, "character": 12 } ], @@ -4011,7 +4068,7 @@ } }, { - "id": 104, + "id": 110, "name": "QueryResult", "kind": 4194304, "kindString": "Type alias", @@ -4022,13 +4079,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 103, + "line": 99, "character": 12 } ], "typeParameter": [ { - "id": 105, + "id": 111, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -4039,7 +4096,7 @@ "type": "conditional", "checkType": { "type": "reference", - "id": 105, + "id": 111, "name": "T" }, "extendsType": { @@ -4065,7 +4122,7 @@ } }, { - "id": 60, + "id": 70, "name": "SupabaseClientOptions", "kind": 4194304, "kindString": "Type alias", @@ -4079,7 +4136,7 @@ ], "typeParameter": [ { - "id": 80, + "id": 90, "name": "SchemaName", "kind": 131072, "kindString": "Type parameter", @@ -4089,14 +4146,14 @@ "type": { "type": "reflection", "declaration": { - "id": 61, + "id": 71, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 65, + "id": 75, "name": "auth", "kind": 1024, "kindString": "Property", @@ -4113,14 +4170,14 @@ "type": { "type": "reflection", "declaration": { - "id": 66, + "id": 76, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 67, + "id": 77, "name": "autoRefreshToken", "kind": 1024, "kindString": "Property", @@ -4143,7 +4200,7 @@ } }, { - "id": 73, + "id": 83, "name": "debug", "kind": 1024, "kindString": "Property", @@ -4168,13 +4225,13 @@ }, "objectType": { "type": "reference", - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions" } } }, { - "id": 70, + "id": 80, "name": "detectSessionInUrl", "kind": 1024, "kindString": "Property", @@ -4197,7 +4254,7 @@ } }, { - "id": 72, + "id": 82, "name": "flowType", "kind": 1024, "kindString": "Property", @@ -4222,13 +4279,13 @@ }, "objectType": { "type": "reference", - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions" } } }, { - "id": 74, + "id": 84, "name": "lock", "kind": 1024, "kindString": "Property", @@ -4259,13 +4316,13 @@ }, "objectType": { "type": "reference", - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions" } } }, { - "id": 69, + "id": 79, "name": "persistSession", "kind": 1024, "kindString": "Property", @@ -4288,7 +4345,7 @@ } }, { - "id": 71, + "id": 81, "name": "storage", "kind": 1024, "kindString": "Property", @@ -4313,13 +4370,13 @@ }, "objectType": { "type": "reference", - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions" } } }, { - "id": 68, + "id": 78, "name": "storageKey", "kind": 1024, "kindString": "Property", @@ -4347,14 +4404,14 @@ "title": "Properties", "kind": 1024, "children": [ - 67, - 73, - 70, - 72, - 74, - 69, - 71, - 68 + 77, + 83, + 80, + 82, + 84, + 79, + 81, + 78 ] } ], @@ -4369,7 +4426,7 @@ } }, { - "id": 62, + "id": 72, "name": "db", "kind": 1024, "kindString": "Property", @@ -4389,14 +4446,14 @@ "type": { "type": "reflection", "declaration": { - "id": 63, + "id": 73, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 64, + "id": 74, "name": "schema", "kind": 1024, "kindString": "Property", @@ -4412,7 +4469,7 @@ ], "type": { "type": "reference", - "id": 80, + "id": 90, "name": "SchemaName" } } @@ -4422,7 +4479,7 @@ "title": "Properties", "kind": 1024, "children": [ - 64 + 74 ] } ], @@ -4437,7 +4494,7 @@ } }, { - "id": 76, + "id": 86, "name": "global", "kind": 1024, "kindString": "Property", @@ -4454,14 +4511,14 @@ "type": { "type": "reflection", "declaration": { - "id": 77, + "id": 87, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 78, + "id": 88, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -4480,12 +4537,12 @@ ], "type": { "type": "reference", - "id": 59, + "id": 69, "name": "Fetch" } }, { - "id": 79, + "id": 89, "name": "headers", "kind": 1024, "kindString": "Property", @@ -4525,8 +4582,8 @@ "title": "Properties", "kind": 1024, "children": [ - 78, - 79 + 88, + 89 ] } ], @@ -4541,7 +4598,7 @@ } }, { - "id": 75, + "id": 85, "name": "realtime", "kind": 1024, "kindString": "Property", @@ -4571,10 +4628,10 @@ "title": "Properties", "kind": 1024, "children": [ - 65, - 62, - 76, - 75 + 75, + 72, + 86, + 85 ] } ], @@ -4594,24 +4651,24 @@ "title": "Interfaces", "kind": 256, "children": [ - 58 + 68 ] }, { "title": "Type Aliases", "kind": 4194304, "children": [ - 59, - 95, + 69, + 101, + 97, + 105, 91, - 99, - 81, - 86, - 94, - 106, + 96, + 100, + 112, + 116, 110, - 104, - 60 + 70 ] } ], @@ -4624,14 +4681,14 @@ ] }, { - "id": 111, + "id": 117, "name": "lib/version", "kind": 2, "kindString": "Module", "flags": {}, "children": [ { - "id": 112, + "id": 118, "name": "version", "kind": 32, "kindString": "Variable", @@ -4657,7 +4714,7 @@ "title": "Variables", "kind": 32, "children": [ - 112 + 118 ] } ], @@ -4677,10 +4734,10 @@ "children": [ 1, 10, - 14, - 43, - 57, - 111 + 24, + 53, + 67, + 117 ] } ] diff --git a/apps/docs/spec/enrichments/tsdoc_v2/supabase_dereferenced.json b/apps/docs/spec/enrichments/tsdoc_v2/supabase_dereferenced.json index 24e4fe88094..a55da42b5e9 100644 --- a/apps/docs/spec/enrichments/tsdoc_v2/supabase_dereferenced.json +++ b/apps/docs/spec/enrichments/tsdoc_v2/supabase_dereferenced.json @@ -13,7 +13,7 @@ "flags": {}, "children": [ { - "id": 211, + "id": 213, "name": "QueryData", "kind": 16777216, "kindString": "Reference", @@ -21,14 +21,14 @@ "sources": [ { "fileName": "src/index.ts", - "line": 20, + "line": 22, "character": 50 } ], - "target": 106 + "target": 112 }, { - "id": 212, + "id": 214, "name": "QueryError", "kind": 16777216, "kindString": "Reference", @@ -36,14 +36,14 @@ "sources": [ { "fileName": "src/index.ts", - "line": 20, + "line": 22, "character": 61 } ], - "target": 110 + "target": 116 }, { - "id": 210, + "id": 212, "name": "QueryResult", "kind": 16777216, "kindString": "Reference", @@ -51,14 +51,14 @@ "sources": [ { "fileName": "src/index.ts", - "line": 20, + "line": 22, "character": 37 } ], - "target": 104 + "target": 110 }, { - "id": 209, + "id": 211, "name": "SupabaseClientOptions", "kind": 16777216, "kindString": "Reference", @@ -66,14 +66,14 @@ "sources": [ { "fileName": "src/index.ts", - "line": 20, + "line": 22, "character": 14 } ], - "target": 60 + "target": 70 }, { - "id": 113, + "id": 119, "name": "SupabaseClient", "kind": 128, "kindString": "Class", @@ -84,7 +84,7 @@ }, "children": [ { - "id": 114, + "id": 120, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -92,13 +92,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 83, + "line": 69, "character": 2 } ], "signatures": [ { - "id": 115, + "id": 121, "name": "new SupabaseClient", "kind": 16384, "kindString": "Constructor signature", @@ -108,7 +108,7 @@ }, "typeParameter": [ { - "id": 116, + "id": 122, "name": "Database", "kind": 131072, "kindString": "Type parameter", @@ -119,7 +119,7 @@ } }, { - "id": 117, + "id": 123, "name": "SchemaName", "kind": 131072, "kindString": "Type parameter", @@ -139,7 +139,7 @@ "operator": "keyof", "target": { "type": "reference", - "id": 116, + "id": 122, "name": "Database" } }, @@ -159,7 +159,7 @@ "operator": "keyof", "target": { "type": "reference", - "id": 116, + "id": 122, "name": "Database" } } @@ -168,14 +168,14 @@ } }, { - "id": 118, + "id": 124, "name": "Schema", "kind": 131072, "kindString": "Type parameter", "flags": {}, "type": { "type": "reference", - "id": 99, + "id": 105, "name": "GenericSchema" }, "default": { @@ -184,18 +184,18 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 117, + "id": 123, "name": "SchemaName" }, "objectType": { "type": "reference", - "id": 116, + "id": 122, "name": "Database" } }, "extendsType": { "type": "reference", - "id": 99, + "id": 105, "name": "GenericSchema" }, "trueType": { @@ -218,7 +218,7 @@ ], "parameters": [ { - "id": 119, + "id": 125, "name": "supabaseUrl", "kind": 32768, "kindString": "Parameter", @@ -232,7 +232,7 @@ } }, { - "id": 120, + "id": 126, "name": "supabaseKey", "kind": 32768, "kindString": "Parameter", @@ -246,7 +246,7 @@ } }, { - "id": 121, + "id": 127, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -255,17 +255,17 @@ }, "type": { "type": "reference", - "id": 60, + "id": 70, "typeArguments": [ { "type": "reference", - "id": 117, + "id": 123, "name": "SchemaName" } ], "name": "SupabaseClientOptions", "dereferenced": { - "id": 60, + "id": 70, "name": "SupabaseClientOptions", "kind": 4194304, "kindString": "Type alias", @@ -279,7 +279,7 @@ ], "typeParameter": [ { - "id": 80, + "id": 90, "name": "SchemaName", "kind": 131072, "kindString": "Type parameter", @@ -289,14 +289,14 @@ "type": { "type": "reflection", "declaration": { - "id": 61, + "id": 71, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 65, + "id": 75, "name": "auth", "kind": 1024, "kindString": "Property", @@ -313,14 +313,14 @@ "type": { "type": "reflection", "declaration": { - "id": 66, + "id": 76, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 67, + "id": 77, "name": "autoRefreshToken", "kind": 1024, "kindString": "Property", @@ -343,7 +343,7 @@ } }, { - "id": 73, + "id": 83, "name": "debug", "kind": 1024, "kindString": "Property", @@ -368,13 +368,13 @@ }, "objectType": { "type": "reference", - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions" } } }, { - "id": 70, + "id": 80, "name": "detectSessionInUrl", "kind": 1024, "kindString": "Property", @@ -397,7 +397,7 @@ } }, { - "id": 72, + "id": 82, "name": "flowType", "kind": 1024, "kindString": "Property", @@ -422,13 +422,13 @@ }, "objectType": { "type": "reference", - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions" } } }, { - "id": 74, + "id": 84, "name": "lock", "kind": 1024, "kindString": "Property", @@ -459,13 +459,13 @@ }, "objectType": { "type": "reference", - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions" } } }, { - "id": 69, + "id": 79, "name": "persistSession", "kind": 1024, "kindString": "Property", @@ -488,7 +488,7 @@ } }, { - "id": 71, + "id": 81, "name": "storage", "kind": 1024, "kindString": "Property", @@ -513,13 +513,13 @@ }, "objectType": { "type": "reference", - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions" } } }, { - "id": 68, + "id": 78, "name": "storageKey", "kind": 1024, "kindString": "Property", @@ -547,14 +547,14 @@ "title": "Properties", "kind": 1024, "children": [ - 67, - 73, - 70, - 72, - 74, - 69, - 71, - 68 + 77, + 83, + 80, + 82, + 84, + 79, + 81, + 78 ] } ], @@ -569,7 +569,7 @@ } }, { - "id": 62, + "id": 72, "name": "db", "kind": 1024, "kindString": "Property", @@ -589,14 +589,14 @@ "type": { "type": "reflection", "declaration": { - "id": 63, + "id": 73, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 64, + "id": 74, "name": "schema", "kind": 1024, "kindString": "Property", @@ -612,7 +612,7 @@ ], "type": { "type": "reference", - "id": 80, + "id": 90, "name": "SchemaName", "dereferenced": {} } @@ -623,7 +623,7 @@ "title": "Properties", "kind": 1024, "children": [ - 64 + 74 ] } ], @@ -638,7 +638,7 @@ } }, { - "id": 76, + "id": 86, "name": "global", "kind": 1024, "kindString": "Property", @@ -655,14 +655,14 @@ "type": { "type": "reflection", "declaration": { - "id": 77, + "id": 87, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 78, + "id": 88, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -681,10 +681,10 @@ ], "type": { "type": "reference", - "id": 59, + "id": 69, "name": "Fetch", "dereferenced": { - "id": 59, + "id": 69, "name": "Fetch", "kind": 4194304, "kindString": "Type alias", @@ -700,7 +700,7 @@ "type": "query", "queryType": { "type": "reference", - "id": 18, + "id": 28, "qualifiedName": "fetch", "package": "typescript", "name": "fetch" @@ -710,7 +710,7 @@ } }, { - "id": 79, + "id": 89, "name": "headers", "kind": 1024, "kindString": "Property", @@ -750,8 +750,8 @@ "title": "Properties", "kind": 1024, "children": [ - 78, - 79 + 88, + 89 ] } ], @@ -766,7 +766,7 @@ } }, { - "id": 75, + "id": 85, "name": "realtime", "kind": 1024, "kindString": "Property", @@ -796,10 +796,10 @@ "title": "Properties", "kind": 1024, "children": [ - 65, - 62, - 76, - 75 + 75, + 72, + 86, + 85 ] } ], @@ -818,21 +818,21 @@ ], "type": { "type": "reference", - "id": 113, + "id": 119, "typeArguments": [ { "type": "reference", - "id": 116, + "id": 122, "name": "Database" }, { "type": "reference", - "id": 117, + "id": 123, "name": "SchemaName" }, { "type": "reference", - "id": 118, + "id": 124, "name": "Schema" } ], @@ -842,7 +842,7 @@ ] }, { - "id": 122, + "id": 128, "name": "auth", "kind": 1024, "kindString": "Property", @@ -853,7 +853,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 55, + "line": 43, "character": 2 } ], @@ -863,7 +863,7 @@ } }, { - "id": 125, + "id": 131, "name": "authUrl", "kind": 1024, "kindString": "Property", @@ -873,7 +873,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 59, + "line": 47, "character": 12 } ], @@ -883,7 +883,7 @@ } }, { - "id": 135, + "id": 141, "name": "changedAccessToken", "kind": 1024, "kindString": "Property", @@ -894,7 +894,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 65, + "line": 53, "character": 12 } ], @@ -904,7 +904,7 @@ } }, { - "id": 130, + "id": 136, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -915,28 +915,28 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 64, + "line": 52, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 131, + "id": 137, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 132, + "id": 138, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 133, + "id": 139, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -960,7 +960,7 @@ } }, { - "id": 134, + "id": 140, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -995,7 +995,7 @@ } }, { - "id": 127, + "id": 133, "name": "functionsUrl", "kind": 1024, "kindString": "Property", @@ -1005,7 +1005,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 61, + "line": 49, "character": 12 } ], @@ -1015,7 +1015,7 @@ } }, { - "id": 136, + "id": 142, "name": "headers", "kind": 1024, "kindString": "Property", @@ -1025,46 +1025,29 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 67, + "line": 55, "character": 12 } ], "type": { - "type": "reflection", - "declaration": { - "id": 137, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "indexSignature": { - "id": 138, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": {}, - "parameters": [ - { - "id": 139, - "name": "key", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "string" } - } + ], + "qualifiedName": "Record", + "package": "typescript", + "name": "Record" } }, { - "id": 123, + "id": 129, "name": "realtime", "kind": 1024, "kindString": "Property", @@ -1072,7 +1055,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 56, + "line": 44, "character": 2 } ], @@ -1084,7 +1067,7 @@ } }, { - "id": 124, + "id": 130, "name": "realtimeUrl", "kind": 1024, "kindString": "Property", @@ -1094,7 +1077,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 58, + "line": 46, "character": 12 } ], @@ -1104,7 +1087,7 @@ } }, { - "id": 128, + "id": 134, "name": "rest", "kind": 1024, "kindString": "Property", @@ -1114,7 +1097,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 62, + "line": 50, "character": 12 } ], @@ -1123,12 +1106,12 @@ "typeArguments": [ { "type": "reference", - "id": 116, + "id": 122, "name": "Database" }, { "type": "reference", - "id": 117, + "id": 123, "name": "SchemaName" }, { @@ -1137,12 +1120,12 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 117, + "id": 123, "name": "SchemaName" }, "objectType": { "type": "reference", - "id": 116, + "id": 122, "name": "Database" } }, @@ -1175,7 +1158,7 @@ } }, { - "id": 129, + "id": 135, "name": "storageKey", "kind": 1024, "kindString": "Property", @@ -1185,7 +1168,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 63, + "line": 51, "character": 12 } ], @@ -1195,7 +1178,7 @@ } }, { - "id": 126, + "id": 132, "name": "storageUrl", "kind": 1024, "kindString": "Property", @@ -1205,7 +1188,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 60, + "line": 48, "character": 12 } ], @@ -1215,7 +1198,7 @@ } }, { - "id": 141, + "id": 144, "name": "supabaseKey", "kind": 1024, "kindString": "Property", @@ -1228,7 +1211,7 @@ } }, { - "id": 140, + "id": 143, "name": "supabaseUrl", "kind": 1024, "kindString": "Property", @@ -1241,7 +1224,7 @@ } }, { - "id": 142, + "id": 145, "name": "functions", "kind": 262144, "kindString": "Accessor", @@ -1249,13 +1232,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 132, + "line": 118, "character": 6 } ], "getSignature": [ { - "id": 143, + "id": 146, "name": "functions", "kind": 524288, "kindString": "Get signature", @@ -1273,7 +1256,7 @@ ] }, { - "id": 144, + "id": 147, "name": "storage", "kind": 262144, "kindString": "Accessor", @@ -1281,13 +1264,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 142, + "line": 128, "character": 6 } ], "getSignature": [ { - "id": 145, + "id": 148, "name": "storage", "kind": 524288, "kindString": "Get signature", @@ -1305,7 +1288,7 @@ ] }, { - "id": 184, + "id": 186, "name": "_getAccessToken", "kind": 2048, "kindString": "Method", @@ -1315,13 +1298,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 259, + "line": 246, "character": 16 } ], "signatures": [ { - "id": 185, + "id": 187, "name": "_getAccessToken", "kind": 4096, "kindString": "Call signature", @@ -1351,7 +1334,7 @@ ] }, { - "id": 201, + "id": 203, "name": "_handleTokenChanged", "kind": 2048, "kindString": "Method", @@ -1361,20 +1344,20 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 310, + "line": 297, "character": 10 } ], "signatures": [ { - "id": 202, + "id": 204, "name": "_handleTokenChanged", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 203, + "id": 205, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -1382,12 +1365,12 @@ "type": { "type": "reference", "qualifiedName": "AuthChangeEvent", - "package": "@supabase/gotrue-js", + "package": "@supabase/auth-js", "name": "AuthChangeEvent" } }, { - "id": 204, + "id": 206, "name": "source", "kind": 32768, "kindString": "Parameter", @@ -1407,7 +1390,7 @@ } }, { - "id": 205, + "id": 207, "name": "token", "kind": 32768, "kindString": "Parameter", @@ -1428,7 +1411,7 @@ ] }, { - "id": 195, + "id": 197, "name": "_initRealtimeClient", "kind": 2048, "kindString": "Method", @@ -1438,20 +1421,20 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 296, + "line": 283, "character": 10 } ], "signatures": [ { - "id": 196, + "id": 198, "name": "_initRealtimeClient", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 197, + "id": 199, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -1474,7 +1457,7 @@ ] }, { - "id": 186, + "id": 188, "name": "_initSupabaseAuthClient", "kind": 2048, "kindString": "Method", @@ -1484,30 +1467,30 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 265, + "line": 252, "character": 10 } ], "signatures": [ { - "id": 187, + "id": 189, "name": "_initSupabaseAuthClient", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 188, + "id": 190, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions", "dereferenced": { - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions", "kind": 256, "kindString": "Interface", @@ -1522,14 +1505,14 @@ "extendedTypes": [ { "type": "reference", - "name": "GoTrueClientOptions" + "name": "AuthClientOptions" } ] } } }, { - "id": 189, + "id": 191, "name": "headers", "kind": 32768, "kindString": "Parameter", @@ -1554,7 +1537,7 @@ } }, { - "id": 190, + "id": 192, "name": "fetch", "kind": 32768, "kindString": "Parameter", @@ -1564,21 +1547,21 @@ "type": { "type": "reflection", "declaration": { - "id": 191, + "id": 193, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 192, + "id": 194, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 193, + "id": 195, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -1602,7 +1585,7 @@ } }, { - "id": 194, + "id": 196, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -1645,7 +1628,7 @@ ] }, { - "id": 198, + "id": 200, "name": "_listenForAuthEvents", "kind": 2048, "kindString": "Method", @@ -1655,13 +1638,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 303, + "line": 290, "character": 10 } ], "signatures": [ { - "id": 199, + "id": 201, "name": "_listenForAuthEvents", "kind": 4096, "kindString": "Call signature", @@ -1669,7 +1652,7 @@ "type": { "type": "reflection", "declaration": { - "id": 200, + "id": 202, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1680,7 +1663,7 @@ ] }, { - "id": 173, + "id": 175, "name": "channel", "kind": 2048, "kindString": "Method", @@ -1688,13 +1671,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 231, + "line": 218, "character": 2 } ], "signatures": [ { - "id": 174, + "id": 176, "name": "channel", "kind": 4096, "kindString": "Call signature", @@ -1704,7 +1687,7 @@ }, "parameters": [ { - "id": 175, + "id": 177, "name": "name", "kind": 32768, "kindString": "Parameter", @@ -1718,7 +1701,7 @@ } }, { - "id": 176, + "id": 178, "name": "opts", "kind": 32768, "kindString": "Parameter", @@ -1745,7 +1728,7 @@ ] }, { - "id": 146, + "id": 149, "name": "from", "kind": 2048, "kindString": "Method", @@ -1753,13 +1736,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 146, + "line": 133, "character": 2 } ], "signatures": [ { - "id": 147, + "id": 150, "name": "from", "kind": 4096, "kindString": "Call signature", @@ -1769,7 +1752,7 @@ }, "typeParameter": [ { - "id": 148, + "id": 151, "name": "TableName", "kind": 131072, "kindString": "Type parameter", @@ -1780,21 +1763,21 @@ } }, { - "id": 149, + "id": 152, "name": "Table", "kind": 131072, "kindString": "Type parameter", "flags": {}, "type": { "type": "reference", - "id": 81, + "id": 91, "name": "GenericTable" } } ], "parameters": [ { - "id": 150, + "id": 153, "name": "relation", "kind": 32768, "kindString": "Parameter", @@ -1804,7 +1787,7 @@ }, "type": { "type": "reference", - "id": 148, + "id": 151, "name": "TableName", "dereferenced": {} } @@ -1815,25 +1798,30 @@ "typeArguments": [ { "type": "reference", - "id": 118, + "id": 124, "name": "Schema" }, { "type": "reference", - "id": 149, + "id": 152, "name": "Table" }, + { + "type": "reference", + "id": 151, + "name": "TableName" + }, { "type": "conditional", "checkType": { "type": "reference", - "id": 149, + "id": 152, "name": "Table" }, "extendsType": { "type": "reflection", "declaration": { - "id": 151, + "id": 154, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1858,7 +1846,7 @@ } }, { - "id": 152, + "id": 155, "name": "from", "kind": 4096, "kindString": "Call signature", @@ -1868,7 +1856,7 @@ }, "typeParameter": [ { - "id": 153, + "id": 156, "name": "ViewName", "kind": 131072, "kindString": "Type parameter", @@ -1879,92 +1867,18 @@ } }, { - "id": 154, + "id": 157, "name": "View", "kind": 131072, "kindString": "Type parameter", "flags": {}, "type": { "type": "reference", - "id": 94, + "id": 100, "name": "GenericView" } } ], - "parameters": [ - { - "id": 155, - "name": "relation", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "shortText": "The table or view name to query\n" - }, - "type": { - "type": "reference", - "id": 153, - "name": "ViewName", - "dereferenced": {} - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 118, - "name": "Schema" - }, - { - "type": "reference", - "id": 154, - "name": "View" - }, - { - "type": "conditional", - "checkType": { - "type": "reference", - "id": 154, - "name": "View" - }, - "extendsType": { - "type": "reflection", - "declaration": { - "id": 156, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {} - } - }, - "trueType": { - "type": "reference", - "qualifiedName": "R", - "package": "@supabase/postgrest-js", - "name": "R" - }, - "falseType": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "qualifiedName": "PostgrestQueryBuilder", - "package": "@supabase/postgrest-js", - "name": "default" - } - }, - { - "id": 157, - "name": "from", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Perform a query on a table or a view." - }, "parameters": [ { "id": 158, @@ -1976,8 +1890,10 @@ "shortText": "The table or view name to query\n" }, "type": { - "type": "intrinsic", - "name": "string" + "type": "reference", + "id": 156, + "name": "ViewName", + "dereferenced": {} } } ], @@ -1986,16 +1902,46 @@ "typeArguments": [ { "type": "reference", - "id": 118, + "id": 124, "name": "Schema" }, { - "type": "intrinsic", - "name": "any" + "type": "reference", + "id": 157, + "name": "View" }, { - "type": "intrinsic", - "name": "unknown" + "type": "reference", + "id": 156, + "name": "ViewName" + }, + { + "type": "conditional", + "checkType": { + "type": "reference", + "id": 157, + "name": "View" + }, + "extendsType": { + "type": "reflection", + "declaration": { + "id": 159, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {} + } + }, + "trueType": { + "type": "reference", + "qualifiedName": "R", + "package": "@supabase/postgrest-js", + "name": "R" + }, + "falseType": { + "type": "intrinsic", + "name": "unknown" + } } ], "qualifiedName": "PostgrestQueryBuilder", @@ -2006,7 +1952,7 @@ ] }, { - "id": 177, + "id": 179, "name": "getChannels", "kind": 2048, "kindString": "Method", @@ -2014,13 +1960,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 238, + "line": 225, "character": 2 } ], "signatures": [ { - "id": 178, + "id": 180, "name": "getChannels", "kind": 4096, "kindString": "Call signature", @@ -2041,7 +1987,7 @@ ] }, { - "id": 182, + "id": 184, "name": "removeAllChannels", "kind": 2048, "kindString": "Method", @@ -2049,13 +1995,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 255, + "line": 242, "character": 2 } ], "signatures": [ { - "id": 183, + "id": 185, "name": "removeAllChannels", "kind": 4096, "kindString": "Call signature", @@ -2095,7 +2041,7 @@ ] }, { - "id": 179, + "id": 181, "name": "removeChannel", "kind": 2048, "kindString": "Method", @@ -2103,13 +2049,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 248, + "line": 235, "character": 2 } ], "signatures": [ { - "id": 180, + "id": 182, "name": "removeChannel", "kind": 4096, "kindString": "Call signature", @@ -2119,7 +2065,7 @@ }, "parameters": [ { - "id": 181, + "id": 183, "name": "channel", "kind": 32768, "kindString": "Parameter", @@ -2164,7 +2110,7 @@ ] }, { - "id": 163, + "id": 164, "name": "rpc", "kind": 2048, "kindString": "Method", @@ -2172,13 +2118,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 202, + "line": 191, "character": 2 } ], "signatures": [ { - "id": 164, + "id": 165, "name": "rpc", "kind": 4096, "kindString": "Call signature", @@ -2188,8 +2134,8 @@ }, "typeParameter": [ { - "id": 165, - "name": "FunctionName", + "id": 166, + "name": "FnName", "kind": 131072, "kindString": "Type parameter", "flags": {}, @@ -2199,21 +2145,21 @@ } }, { - "id": 166, - "name": "Function_", + "id": 167, + "name": "Fn", "kind": 131072, "kindString": "Type parameter", "flags": {}, "type": { "type": "reference", - "id": 95, + "id": 101, "name": "GenericFunction" } } ], "parameters": [ { - "id": 167, + "id": 168, "name": "fn", "kind": 32768, "kindString": "Parameter", @@ -2223,13 +2169,13 @@ }, "type": { "type": "reference", - "id": 165, - "name": "FunctionName", + "id": 166, + "name": "FnName", "dereferenced": {} } }, { - "id": 168, + "id": 169, "name": "args", "kind": 32768, "kindString": "Parameter", @@ -2245,34 +2191,32 @@ }, "objectType": { "type": "reference", - "id": 166, - "name": "Function_" + "id": 167, + "name": "Fn" } }, "defaultValue": "{}" }, { - "id": 169, + "id": 170, "name": "options", "kind": 32768, "kindString": "Parameter", - "flags": { - "isOptional": true - }, + "flags": {}, "comment": { "shortText": "Named parameters" }, "type": { "type": "reflection", "declaration": { - "id": 170, + "id": 171, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 172, + "id": 174, "name": "count", "kind": 1024, "kindString": "Property", @@ -2285,7 +2229,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 210, + "line": 197, "character": 6 } ], @@ -2308,7 +2252,30 @@ } }, { - "id": 171, + "id": 173, + "name": "get", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "When set to `true`, the function will be called with\nread-only access mode." + }, + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 196, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 172, "name": "head", "kind": 1024, "kindString": "Property", @@ -2321,7 +2288,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 209, + "line": 195, "character": 6 } ], @@ -2336,13 +2303,15 @@ "title": "Properties", "kind": 1024, "children": [ - 172, - 171 + 174, + 173, + 172 ] } ] } - } + }, + "defaultValue": "{}" } ], "type": { @@ -2350,7 +2319,7 @@ "typeArguments": [ { "type": "reference", - "id": 118, + "id": 124, "name": "Schema" }, { @@ -2363,8 +2332,8 @@ }, "objectType": { "type": "reference", - "id": 166, - "name": "Function_" + "id": 167, + "name": "Fn" } }, "extendsType": { @@ -2439,10 +2408,14 @@ }, "objectType": { "type": "reference", - "id": 166, - "name": "Function_" + "id": 167, + "name": "Fn" } }, + { + "type": "intrinsic", + "name": "unknown" + }, { "type": "intrinsic", "name": "unknown" @@ -2456,7 +2429,7 @@ ] }, { - "id": 159, + "id": 160, "name": "schema", "kind": 2048, "kindString": "Method", @@ -2464,24 +2437,24 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 171, + "line": 157, "character": 2 } ], "signatures": [ { - "id": 160, + "id": 161, "name": "schema", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Perform a query on a schema distinct from the default schema supplied via\nthe `options.db.schema` constructor parameter.", + "shortText": "Select a schema to query or perform an function (rpc) call.", "text": "The schema needs to be on the list of exposed schemas inside Supabase.\n" }, "typeParameter": [ { - "id": 161, + "id": 162, "name": "DynamicSchema", "kind": 131072, "kindString": "Type parameter", @@ -2494,17 +2467,17 @@ ], "parameters": [ { - "id": 162, + "id": 163, "name": "schema", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The name of the schema to query\n" + "shortText": "The schema to query\n" }, "type": { "type": "reference", - "id": 161, + "id": 162, "name": "DynamicSchema", "dereferenced": {} } @@ -2515,12 +2488,12 @@ "typeArguments": [ { "type": "reference", - "id": 116, + "id": 122, "name": "Database" }, { "type": "reference", - "id": 161, + "id": 162, "name": "DynamicSchema" }, { @@ -2529,18 +2502,18 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 161, + "id": 162, "name": "DynamicSchema" }, "objectType": { "type": "reference", - "id": 116, + "id": 122, "name": "Database" } }, "extendsType": { "type": "reference", - "id": 99, + "id": 105, "name": "GenericSchema" }, "trueType": { @@ -2573,65 +2546,65 @@ "title": "Constructors", "kind": 512, "children": [ - 114 + 120 ] }, { "title": "Properties", "kind": 1024, "children": [ - 122, - 125, - 135, - 130, - 127, - 136, - 123, - 124, 128, - 129, - 126, + 131, 141, - 140 + 136, + 133, + 142, + 129, + 130, + 134, + 135, + 132, + 144, + 143 ] }, { "title": "Accessors", "kind": 262144, "children": [ - 142, - 144 + 145, + 147 ] }, { "title": "Methods", "kind": 2048, "children": [ - 184, - 201, - 195, 186, - 198, - 173, - 146, - 177, - 182, + 203, + 197, + 188, + 200, + 175, + 149, 179, - 163, - 159 + 184, + 181, + 164, + 160 ] } ], "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 43, + "line": 31, "character": 21 } ], "typeParameter": [ { - "id": 206, + "id": 208, "name": "Database", "kind": 131072, "kindString": "Type parameter", @@ -2642,7 +2615,7 @@ } }, { - "id": 207, + "id": 209, "name": "SchemaName", "kind": 131072, "kindString": "Type parameter", @@ -2659,7 +2632,7 @@ "operator": "keyof", "target": { "type": "reference", - "id": 116, + "id": 122, "name": "Database" } } @@ -2676,7 +2649,7 @@ "operator": "keyof", "target": { "type": "reference", - "id": 116, + "id": 122, "name": "Database" } }, @@ -2696,7 +2669,7 @@ "operator": "keyof", "target": { "type": "reference", - "id": 116, + "id": 122, "name": "Database" } } @@ -2705,14 +2678,14 @@ } }, { - "id": 208, + "id": 210, "name": "Schema", "kind": 131072, "kindString": "Type parameter", "flags": {}, "type": { "type": "reference", - "id": 99, + "id": 105, "name": "GenericSchema" }, "default": { @@ -2721,30 +2694,30 @@ "type": "indexedAccess", "indexType": { "type": "reference", - "id": 117, + "id": 123, "name": "SchemaName" }, "objectType": { "type": "reference", - "id": 116, + "id": 122, "name": "Database" } }, "extendsType": { "type": "reference", - "id": 99, + "id": 105, "name": "GenericSchema" }, "trueType": { "type": "indexedAccess", "indexType": { "type": "reference", - "id": 117, + "id": 123, "name": "SchemaName" }, "objectType": { "type": "reference", - "id": 116, + "id": 122, "name": "Database" } }, @@ -2765,7 +2738,7 @@ "sources": [ { "fileName": "src/index.ts", - "line": 25, + "line": 27, "character": 13 } ], @@ -2848,7 +2821,7 @@ "flags": {}, "type": { "type": "reference", - "id": 99, + "id": 105, "name": "GenericSchema" }, "default": { @@ -2868,7 +2841,7 @@ }, "extendsType": { "type": "reference", - "id": 99, + "id": 105, "name": "GenericSchema" }, "trueType": { @@ -2922,7 +2895,7 @@ }, "type": { "type": "reference", - "id": 60, + "id": 70, "typeArguments": [ { "type": "reference", @@ -2932,7 +2905,7 @@ ], "name": "SupabaseClientOptions", "dereferenced": { - "id": 60, + "id": 70, "name": "SupabaseClientOptions", "kind": 4194304, "kindString": "Type alias", @@ -2946,7 +2919,7 @@ ], "typeParameter": [ { - "id": 80, + "id": 90, "name": "SchemaName", "kind": 131072, "kindString": "Type parameter", @@ -2956,14 +2929,14 @@ "type": { "type": "reflection", "declaration": { - "id": 61, + "id": 71, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 65, + "id": 75, "name": "auth", "kind": 1024, "kindString": "Property", @@ -2980,14 +2953,14 @@ "type": { "type": "reflection", "declaration": { - "id": 66, + "id": 76, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 67, + "id": 77, "name": "autoRefreshToken", "kind": 1024, "kindString": "Property", @@ -3010,7 +2983,7 @@ } }, { - "id": 73, + "id": 83, "name": "debug", "kind": 1024, "kindString": "Property", @@ -3035,13 +3008,13 @@ }, "objectType": { "type": "reference", - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions" } } }, { - "id": 70, + "id": 80, "name": "detectSessionInUrl", "kind": 1024, "kindString": "Property", @@ -3064,7 +3037,7 @@ } }, { - "id": 72, + "id": 82, "name": "flowType", "kind": 1024, "kindString": "Property", @@ -3089,13 +3062,13 @@ }, "objectType": { "type": "reference", - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions" } } }, { - "id": 74, + "id": 84, "name": "lock", "kind": 1024, "kindString": "Property", @@ -3126,13 +3099,13 @@ }, "objectType": { "type": "reference", - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions" } } }, { - "id": 69, + "id": 79, "name": "persistSession", "kind": 1024, "kindString": "Property", @@ -3155,7 +3128,7 @@ } }, { - "id": 71, + "id": 81, "name": "storage", "kind": 1024, "kindString": "Property", @@ -3180,13 +3153,13 @@ }, "objectType": { "type": "reference", - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions" } } }, { - "id": 68, + "id": 78, "name": "storageKey", "kind": 1024, "kindString": "Property", @@ -3214,14 +3187,14 @@ "title": "Properties", "kind": 1024, "children": [ - 67, - 73, - 70, - 72, - 74, - 69, - 71, - 68 + 77, + 83, + 80, + 82, + 84, + 79, + 81, + 78 ] } ], @@ -3236,7 +3209,7 @@ } }, { - "id": 62, + "id": 72, "name": "db", "kind": 1024, "kindString": "Property", @@ -3256,14 +3229,14 @@ "type": { "type": "reflection", "declaration": { - "id": 63, + "id": 73, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 64, + "id": 74, "name": "schema", "kind": 1024, "kindString": "Property", @@ -3279,7 +3252,7 @@ ], "type": { "type": "reference", - "id": 80, + "id": 90, "name": "SchemaName", "dereferenced": {} } @@ -3290,7 +3263,7 @@ "title": "Properties", "kind": 1024, "children": [ - 64 + 74 ] } ], @@ -3305,7 +3278,7 @@ } }, { - "id": 76, + "id": 86, "name": "global", "kind": 1024, "kindString": "Property", @@ -3322,14 +3295,14 @@ "type": { "type": "reflection", "declaration": { - "id": 77, + "id": 87, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 78, + "id": 88, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -3348,10 +3321,10 @@ ], "type": { "type": "reference", - "id": 59, + "id": 69, "name": "Fetch", "dereferenced": { - "id": 59, + "id": 69, "name": "Fetch", "kind": 4194304, "kindString": "Type alias", @@ -3367,7 +3340,7 @@ "type": "query", "queryType": { "type": "reference", - "id": 18, + "id": 28, "qualifiedName": "fetch", "package": "typescript", "name": "fetch" @@ -3377,7 +3350,7 @@ } }, { - "id": 79, + "id": 89, "name": "headers", "kind": 1024, "kindString": "Property", @@ -3417,8 +3390,8 @@ "title": "Properties", "kind": 1024, "children": [ - 78, - 79 + 88, + 89 ] } ], @@ -3433,7 +3406,7 @@ } }, { - "id": 75, + "id": 85, "name": "realtime", "kind": 1024, "kindString": "Property", @@ -3463,10 +3436,10 @@ "title": "Properties", "kind": 1024, "children": [ - 65, - 62, - 76, - 75 + 75, + 72, + 86, + 85 ] } ], @@ -3485,7 +3458,7 @@ ], "type": { "type": "reference", - "id": 113, + "id": 119, "typeArguments": [ { "type": "reference", @@ -3514,17 +3487,17 @@ "title": "References", "kind": 16777216, "children": [ - 211, + 213, + 214, 212, - 210, - 209 + 211 ] }, { "title": "Classes", "kind": 128, "children": [ - 113 + 119 ] }, { @@ -3550,6 +3523,178 @@ "kindString": "Module", "flags": {}, "children": [ + { + "id": 22, + "name": "DEFAULT_AUTH_OPTIONS", + "kind": 32, + "kindString": "Variable", + "flags": { + "isConst": true + }, + "sources": [ + { + "fileName": "src/lib/constants.ts", + "line": 28, + "character": 13 + } + ], + "type": { + "type": "reference", + "id": 68, + "name": "SupabaseAuthClientOptions" + }, + "defaultValue": "..." + }, + { + "id": 19, + "name": "DEFAULT_DB_OPTIONS", + "kind": 32, + "kindString": "Variable", + "flags": { + "isConst": true + }, + "sources": [ + { + "fileName": "src/lib/constants.ts", + "line": 24, + "character": 13 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 20, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 21, + "name": "schema", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/constants.ts", + "line": 25, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "'public'" + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 21 + ] + } + ] + } + }, + "defaultValue": "..." + }, + { + "id": 14, + "name": "DEFAULT_GLOBAL_OPTIONS", + "kind": 32, + "kindString": "Variable", + "flags": { + "isConst": true + }, + "sources": [ + { + "fileName": "src/lib/constants.ts", + "line": 20, + "character": 13 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 15, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 16, + "name": "headers", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/constants.ts", + "line": 21, + "character": 2 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 17, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 18, + "name": "X-Client-Info", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/constants.ts", + "line": 18, + "character": 33 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "..." + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 18 + ] + } + ] + } + }, + "defaultValue": "DEFAULT_HEADERS" + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 16 + ] + } + ] + } + }, + "defaultValue": "..." + }, { "id": 11, "name": "DEFAULT_HEADERS", @@ -3561,7 +3706,7 @@ "sources": [ { "fileName": "src/lib/constants.ts", - "line": 14, + "line": 18, "character": 13 } ], @@ -3583,7 +3728,7 @@ "sources": [ { "fileName": "src/lib/constants.ts", - "line": 14, + "line": 18, "character": 33 } ], @@ -3606,6 +3751,29 @@ } }, "defaultValue": "..." + }, + { + "id": 23, + "name": "DEFAULT_REALTIME_OPTIONS", + "kind": 32, + "kindString": "Variable", + "flags": { + "isConst": true + }, + "sources": [ + { + "fileName": "src/lib/constants.ts", + "line": 35, + "character": 13 + } + ], + "type": { + "type": "reference", + "qualifiedName": "RealtimeClientOptions", + "package": "@supabase/realtime-js", + "name": "RealtimeClientOptions" + }, + "defaultValue": "{}" } ], "groups": [ @@ -3613,7 +3781,11 @@ "title": "Variables", "kind": 32, "children": [ - 11 + 22, + 19, + 14, + 11, + 23 ] } ], @@ -3626,14 +3798,14 @@ ] }, { - "id": 14, + "id": 24, "name": "lib/fetch", "kind": 2, "kindString": "Module", "flags": {}, "children": [ { - "id": 28, + "id": 38, "name": "fetchWithAuth", "kind": 64, "kindString": "Function", @@ -3647,14 +3819,14 @@ ], "signatures": [ { - "id": 29, + "id": 39, "name": "fetchWithAuth", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 30, + "id": 40, "name": "supabaseKey", "kind": 32768, "kindString": "Parameter", @@ -3665,7 +3837,7 @@ } }, { - "id": 31, + "id": 41, "name": "getAccessToken", "kind": 32768, "kindString": "Parameter", @@ -3673,14 +3845,14 @@ "type": { "type": "reflection", "declaration": { - "id": 32, + "id": 42, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 33, + "id": 43, "name": "__type", "kind": 4096, "kindString": "Call signature", @@ -3712,7 +3884,7 @@ } }, { - "id": 34, + "id": 44, "name": "customFetch", "kind": 32768, "kindString": "Parameter", @@ -3722,21 +3894,21 @@ "type": { "type": "reflection", "declaration": { - "id": 35, + "id": 45, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 36, + "id": 46, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 37, + "id": 47, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -3760,7 +3932,7 @@ } }, { - "id": 38, + "id": 48, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -3798,21 +3970,21 @@ "type": { "type": "reflection", "declaration": { - "id": 39, + "id": 49, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 40, + "id": 50, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 41, + "id": 51, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -3836,7 +4008,7 @@ } }, { - "id": 42, + "id": 52, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -3873,7 +4045,7 @@ ] }, { - "id": 15, + "id": 25, "name": "resolveFetch", "kind": 64, "kindString": "Function", @@ -3887,14 +4059,14 @@ ], "signatures": [ { - "id": 16, + "id": 26, "name": "resolveFetch", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 17, + "id": 27, "name": "customFetch", "kind": 32768, "kindString": "Parameter", @@ -3904,21 +4076,21 @@ "type": { "type": "reflection", "declaration": { - "id": 18, + "id": 28, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 19, + "id": 29, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 20, + "id": 30, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -3942,7 +4114,7 @@ } }, { - "id": 21, + "id": 31, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -3980,21 +4152,21 @@ "type": { "type": "reflection", "declaration": { - "id": 22, + "id": 32, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 23, + "id": 33, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 24, + "id": 34, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -4018,7 +4190,7 @@ } }, { - "id": 25, + "id": 35, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -4055,7 +4227,7 @@ ] }, { - "id": 26, + "id": 36, "name": "resolveHeadersConstructor", "kind": 64, "kindString": "Function", @@ -4069,7 +4241,7 @@ ], "signatures": [ { - "id": 27, + "id": 37, "name": "resolveHeadersConstructor", "kind": 4096, "kindString": "Call signature", @@ -4087,9 +4259,9 @@ "title": "Functions", "kind": 64, "children": [ - 28, - 15, - 26 + 38, + 25, + 36 ] } ], @@ -4102,14 +4274,14 @@ ] }, { - "id": 43, + "id": 53, "name": "lib/helpers", "kind": 2, "kindString": "Module", "flags": {}, "children": [ { - "id": 49, + "id": 59, "name": "applySettingDefaults", "kind": 64, "kindString": "Function", @@ -4123,14 +4295,14 @@ ], "signatures": [ { - "id": 50, + "id": 60, "name": "applySettingDefaults", "kind": 4096, "kindString": "Call signature", "flags": {}, "typeParameter": [ { - "id": 51, + "id": 61, "name": "Database", "kind": 131072, "kindString": "Type parameter", @@ -4141,7 +4313,7 @@ } }, { - "id": 52, + "id": 62, "name": "SchemaName", "kind": 131072, "kindString": "Type parameter", @@ -4161,7 +4333,7 @@ "operator": "keyof", "target": { "type": "reference", - "id": 51, + "id": 61, "name": "Database" } }, @@ -4181,7 +4353,7 @@ "operator": "keyof", "target": { "type": "reference", - "id": 51, + "id": 61, "name": "Database" } } @@ -4192,24 +4364,24 @@ ], "parameters": [ { - "id": 53, + "id": 63, "name": "options", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 60, + "id": 70, "typeArguments": [ { "type": "reference", - "id": 52, + "id": 62, "name": "SchemaName" } ], "name": "SupabaseClientOptions", "dereferenced": { - "id": 60, + "id": 70, "name": "SupabaseClientOptions", "kind": 4194304, "kindString": "Type alias", @@ -4223,7 +4395,7 @@ ], "typeParameter": [ { - "id": 80, + "id": 90, "name": "SchemaName", "kind": 131072, "kindString": "Type parameter", @@ -4233,14 +4405,14 @@ "type": { "type": "reflection", "declaration": { - "id": 61, + "id": 71, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 65, + "id": 75, "name": "auth", "kind": 1024, "kindString": "Property", @@ -4257,14 +4429,14 @@ "type": { "type": "reflection", "declaration": { - "id": 66, + "id": 76, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 67, + "id": 77, "name": "autoRefreshToken", "kind": 1024, "kindString": "Property", @@ -4287,7 +4459,7 @@ } }, { - "id": 73, + "id": 83, "name": "debug", "kind": 1024, "kindString": "Property", @@ -4312,13 +4484,13 @@ }, "objectType": { "type": "reference", - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions" } } }, { - "id": 70, + "id": 80, "name": "detectSessionInUrl", "kind": 1024, "kindString": "Property", @@ -4341,7 +4513,7 @@ } }, { - "id": 72, + "id": 82, "name": "flowType", "kind": 1024, "kindString": "Property", @@ -4366,13 +4538,13 @@ }, "objectType": { "type": "reference", - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions" } } }, { - "id": 74, + "id": 84, "name": "lock", "kind": 1024, "kindString": "Property", @@ -4403,13 +4575,13 @@ }, "objectType": { "type": "reference", - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions" } } }, { - "id": 69, + "id": 79, "name": "persistSession", "kind": 1024, "kindString": "Property", @@ -4432,7 +4604,7 @@ } }, { - "id": 71, + "id": 81, "name": "storage", "kind": 1024, "kindString": "Property", @@ -4457,13 +4629,13 @@ }, "objectType": { "type": "reference", - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions" } } }, { - "id": 68, + "id": 78, "name": "storageKey", "kind": 1024, "kindString": "Property", @@ -4491,14 +4663,14 @@ "title": "Properties", "kind": 1024, "children": [ - 67, - 73, - 70, - 72, - 74, - 69, - 71, - 68 + 77, + 83, + 80, + 82, + 84, + 79, + 81, + 78 ] } ], @@ -4513,7 +4685,7 @@ } }, { - "id": 62, + "id": 72, "name": "db", "kind": 1024, "kindString": "Property", @@ -4533,14 +4705,14 @@ "type": { "type": "reflection", "declaration": { - "id": 63, + "id": 73, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 64, + "id": 74, "name": "schema", "kind": 1024, "kindString": "Property", @@ -4556,7 +4728,7 @@ ], "type": { "type": "reference", - "id": 80, + "id": 90, "name": "SchemaName", "dereferenced": {} } @@ -4567,7 +4739,7 @@ "title": "Properties", "kind": 1024, "children": [ - 64 + 74 ] } ], @@ -4582,7 +4754,7 @@ } }, { - "id": 76, + "id": 86, "name": "global", "kind": 1024, "kindString": "Property", @@ -4599,14 +4771,14 @@ "type": { "type": "reflection", "declaration": { - "id": 77, + "id": 87, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 78, + "id": 88, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -4625,10 +4797,10 @@ ], "type": { "type": "reference", - "id": 59, + "id": 69, "name": "Fetch", "dereferenced": { - "id": 59, + "id": 69, "name": "Fetch", "kind": 4194304, "kindString": "Type alias", @@ -4644,7 +4816,7 @@ "type": "query", "queryType": { "type": "reference", - "id": 18, + "id": 28, "qualifiedName": "fetch", "package": "typescript", "name": "fetch" @@ -4654,7 +4826,7 @@ } }, { - "id": 79, + "id": 89, "name": "headers", "kind": 1024, "kindString": "Property", @@ -4694,8 +4866,8 @@ "title": "Properties", "kind": 1024, "children": [ - 78, - 79 + 88, + 89 ] } ], @@ -4710,7 +4882,7 @@ } }, { - "id": 75, + "id": 85, "name": "realtime", "kind": 1024, "kindString": "Property", @@ -4740,10 +4912,10 @@ "title": "Properties", "kind": 1024, "children": [ - 65, - 62, - 76, - 75 + 75, + 72, + 86, + 85 ] } ], @@ -4760,14 +4932,14 @@ } }, { - "id": 54, + "id": 64, "name": "defaults", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 60, + "id": 70, "typeArguments": [ { "type": "intrinsic", @@ -4776,7 +4948,7 @@ ], "name": "SupabaseClientOptions", "dereferenced": { - "id": 60, + "id": 70, "name": "SupabaseClientOptions", "kind": 4194304, "kindString": "Type alias", @@ -4790,7 +4962,7 @@ ], "typeParameter": [ { - "id": 80, + "id": 90, "name": "SchemaName", "kind": 131072, "kindString": "Type parameter", @@ -4800,14 +4972,14 @@ "type": { "type": "reflection", "declaration": { - "id": 61, + "id": 71, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 65, + "id": 75, "name": "auth", "kind": 1024, "kindString": "Property", @@ -4824,14 +4996,14 @@ "type": { "type": "reflection", "declaration": { - "id": 66, + "id": 76, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 67, + "id": 77, "name": "autoRefreshToken", "kind": 1024, "kindString": "Property", @@ -4854,7 +5026,7 @@ } }, { - "id": 73, + "id": 83, "name": "debug", "kind": 1024, "kindString": "Property", @@ -4879,13 +5051,13 @@ }, "objectType": { "type": "reference", - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions" } } }, { - "id": 70, + "id": 80, "name": "detectSessionInUrl", "kind": 1024, "kindString": "Property", @@ -4908,7 +5080,7 @@ } }, { - "id": 72, + "id": 82, "name": "flowType", "kind": 1024, "kindString": "Property", @@ -4933,13 +5105,13 @@ }, "objectType": { "type": "reference", - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions" } } }, { - "id": 74, + "id": 84, "name": "lock", "kind": 1024, "kindString": "Property", @@ -4970,13 +5142,13 @@ }, "objectType": { "type": "reference", - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions" } } }, { - "id": 69, + "id": 79, "name": "persistSession", "kind": 1024, "kindString": "Property", @@ -4999,7 +5171,7 @@ } }, { - "id": 71, + "id": 81, "name": "storage", "kind": 1024, "kindString": "Property", @@ -5024,13 +5196,13 @@ }, "objectType": { "type": "reference", - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions" } } }, { - "id": 68, + "id": 78, "name": "storageKey", "kind": 1024, "kindString": "Property", @@ -5058,14 +5230,14 @@ "title": "Properties", "kind": 1024, "children": [ - 67, - 73, - 70, - 72, - 74, - 69, - 71, - 68 + 77, + 83, + 80, + 82, + 84, + 79, + 81, + 78 ] } ], @@ -5080,7 +5252,7 @@ } }, { - "id": 62, + "id": 72, "name": "db", "kind": 1024, "kindString": "Property", @@ -5100,14 +5272,14 @@ "type": { "type": "reflection", "declaration": { - "id": 63, + "id": 73, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 64, + "id": 74, "name": "schema", "kind": 1024, "kindString": "Property", @@ -5123,7 +5295,7 @@ ], "type": { "type": "reference", - "id": 80, + "id": 90, "name": "SchemaName", "dereferenced": {} } @@ -5134,7 +5306,7 @@ "title": "Properties", "kind": 1024, "children": [ - 64 + 74 ] } ], @@ -5149,7 +5321,7 @@ } }, { - "id": 76, + "id": 86, "name": "global", "kind": 1024, "kindString": "Property", @@ -5166,14 +5338,14 @@ "type": { "type": "reflection", "declaration": { - "id": 77, + "id": 87, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 78, + "id": 88, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -5192,10 +5364,10 @@ ], "type": { "type": "reference", - "id": 59, + "id": 69, "name": "Fetch", "dereferenced": { - "id": 59, + "id": 69, "name": "Fetch", "kind": 4194304, "kindString": "Type alias", @@ -5211,7 +5383,7 @@ "type": "query", "queryType": { "type": "reference", - "id": 18, + "id": 28, "qualifiedName": "fetch", "package": "typescript", "name": "fetch" @@ -5221,7 +5393,7 @@ } }, { - "id": 79, + "id": 89, "name": "headers", "kind": 1024, "kindString": "Property", @@ -5261,8 +5433,8 @@ "title": "Properties", "kind": 1024, "children": [ - 78, - 79 + 88, + 89 ] } ], @@ -5277,7 +5449,7 @@ } }, { - "id": 75, + "id": 85, "name": "realtime", "kind": 1024, "kindString": "Property", @@ -5307,10 +5479,10 @@ "title": "Properties", "kind": 1024, "children": [ - 65, - 62, - 76, - 75 + 75, + 72, + 86, + 85 ] } ], @@ -5329,11 +5501,11 @@ ], "type": { "type": "reference", - "id": 60, + "id": 70, "typeArguments": [ { "type": "reference", - "id": 52, + "id": 62, "name": "SchemaName" } ], @@ -5343,7 +5515,7 @@ ] }, { - "id": 55, + "id": 65, "name": "isBrowser", "kind": 64, "kindString": "Function", @@ -5357,7 +5529,7 @@ ], "signatures": [ { - "id": 56, + "id": 66, "name": "isBrowser", "kind": 4096, "kindString": "Call signature", @@ -5370,7 +5542,7 @@ ] }, { - "id": 46, + "id": 56, "name": "stripTrailingSlash", "kind": 64, "kindString": "Function", @@ -5384,14 +5556,14 @@ ], "signatures": [ { - "id": 47, + "id": 57, "name": "stripTrailingSlash", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 48, + "id": 58, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -5410,7 +5582,7 @@ ] }, { - "id": 44, + "id": 54, "name": "uuid", "kind": 64, "kindString": "Function", @@ -5424,7 +5596,7 @@ ], "signatures": [ { - "id": 45, + "id": 55, "name": "uuid", "kind": 4096, "kindString": "Call signature", @@ -5442,10 +5614,10 @@ "title": "Functions", "kind": 64, "children": [ - 49, - 55, - 46, - 44 + 59, + 65, + 56, + 54 ] } ], @@ -5458,14 +5630,14 @@ ] }, { - "id": 57, + "id": 67, "name": "lib/types", "kind": 2, "kindString": "Module", "flags": {}, "children": [ { - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions", "kind": 256, "kindString": "Interface", @@ -5480,12 +5652,12 @@ "extendedTypes": [ { "type": "reference", - "name": "GoTrueClientOptions" + "name": "AuthClientOptions" } ] }, { - "id": 59, + "id": 69, "name": "Fetch", "kind": 4194304, "kindString": "Type alias", @@ -5501,7 +5673,7 @@ "type": "query", "queryType": { "type": "reference", - "id": 18, + "id": 28, "qualifiedName": "fetch", "package": "typescript", "name": "fetch" @@ -5509,7 +5681,7 @@ } }, { - "id": 95, + "id": 101, "name": "GenericFunction", "kind": 4194304, "kindString": "Type alias", @@ -5517,21 +5689,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 89, + "line": 85, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 96, + "id": 102, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 97, + "id": 103, "name": "Args", "kind": 1024, "kindString": "Property", @@ -5539,7 +5711,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 90, + "line": 86, "character": 2 } ], @@ -5561,7 +5733,7 @@ } }, { - "id": 98, + "id": 104, "name": "Returns", "kind": 1024, "kindString": "Property", @@ -5569,7 +5741,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 91, + "line": 87, "character": 2 } ], @@ -5584,15 +5756,15 @@ "title": "Properties", "kind": 1024, "children": [ - 97, - 98 + 103, + 104 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 89, + "line": 85, "character": 30 } ] @@ -5600,7 +5772,7 @@ } }, { - "id": 91, + "id": 97, "name": "GenericNonUpdatableView", "kind": 4194304, "kindString": "Type alias", @@ -5608,21 +5780,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 83, + "line": 79, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 92, + "id": 98, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 93, + "id": 99, "name": "Row", "kind": 1024, "kindString": "Property", @@ -5630,7 +5802,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 84, + "line": 80, "character": 2 } ], @@ -5657,14 +5829,14 @@ "title": "Properties", "kind": 1024, "children": [ - 93 + 99 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 83, + "line": 79, "character": 38 } ] @@ -5672,7 +5844,7 @@ } }, { - "id": 99, + "id": 105, "name": "GenericSchema", "kind": 4194304, "kindString": "Type alias", @@ -5680,21 +5852,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 94, + "line": 90, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 100, + "id": 106, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 103, + "id": 109, "name": "Functions", "kind": 1024, "kindString": "Property", @@ -5702,7 +5874,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 97, + "line": 93, "character": 2 } ], @@ -5715,7 +5887,7 @@ }, { "type": "reference", - "id": 95, + "id": 101, "name": "GenericFunction" } ], @@ -5725,7 +5897,7 @@ } }, { - "id": 101, + "id": 107, "name": "Tables", "kind": 1024, "kindString": "Property", @@ -5733,7 +5905,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 95, + "line": 91, "character": 2 } ], @@ -5746,7 +5918,7 @@ }, { "type": "reference", - "id": 81, + "id": 91, "name": "GenericTable" } ], @@ -5756,7 +5928,7 @@ } }, { - "id": 102, + "id": 108, "name": "Views", "kind": 1024, "kindString": "Property", @@ -5764,7 +5936,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 96, + "line": 92, "character": 2 } ], @@ -5777,7 +5949,7 @@ }, { "type": "reference", - "id": 94, + "id": 100, "name": "GenericView" } ], @@ -5792,16 +5964,16 @@ "title": "Properties", "kind": 1024, "children": [ - 103, - 101, - 102 + 109, + 107, + 108 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 94, + "line": 90, "character": 28 } ] @@ -5809,7 +5981,7 @@ } }, { - "id": 81, + "id": 91, "name": "GenericTable", "kind": 4194304, "kindString": "Type alias", @@ -5824,14 +5996,14 @@ "type": { "type": "reflection", "declaration": { - "id": 82, + "id": 92, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 84, + "id": 94, "name": "Insert", "kind": 1024, "kindString": "Property", @@ -5861,7 +6033,7 @@ } }, { - "id": 83, + "id": 93, "name": "Row", "kind": 1024, "kindString": "Property", @@ -5891,7 +6063,7 @@ } }, { - "id": 85, + "id": 95, "name": "Update", "kind": 1024, "kindString": "Property", @@ -5926,9 +6098,9 @@ "title": "Properties", "kind": 1024, "children": [ - 84, - 83, - 85 + 94, + 93, + 95 ] } ], @@ -5943,7 +6115,7 @@ } }, { - "id": 86, + "id": 96, "name": "GenericUpdatableView", "kind": 4194304, "kindString": "Type alias", @@ -5956,128 +6128,13 @@ } ], "type": { - "type": "reflection", - "declaration": { - "id": 87, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 89, - "name": "Insert", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 79, - "character": 2 - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" - } - }, - { - "id": 88, - "name": "Row", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 78, - "character": 2 - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" - } - }, - { - "id": 90, - "name": "Update", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 80, - "character": 2 - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 89, - 88, - 90 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 77, - "character": 35 - } - ] - } + "type": "reference", + "id": 91, + "name": "GenericTable" } }, { - "id": 94, + "id": 100, "name": "GenericView", "kind": 4194304, "kindString": "Type alias", @@ -6085,7 +6142,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 87, + "line": 83, "character": 12 } ], @@ -6093,7 +6150,7 @@ "type": "union", "types": [ { - "id": 86, + "id": 96, "name": "GenericUpdatableView", "kind": 4194304, "kindString": "Type alias", @@ -6105,81 +6162,40 @@ "character": 12 } ], + "type": { + "type": "reference", + "id": 91, + "name": "GenericTable" + } + }, + { + "id": 97, + "name": "GenericNonUpdatableView", + "kind": 4194304, + "kindString": "Type alias", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 79, + "character": 12 + } + ], "type": { "type": "reflection", "declaration": { - "id": 87, + "id": 98, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 89, - "name": "Insert", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 79, - "character": 2 - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" - } - }, - { - "id": 88, + "id": 99, "name": "Row", "kind": 1024, "kindString": "Property", "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 78, - "character": 2 - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" - } - }, - { - "id": 90, - "name": "Update", - "kind": 1024, - "kindString": "Property", - "flags": {}, "sources": [ { "fileName": "src/lib/types.ts", @@ -6210,88 +6226,14 @@ "title": "Properties", "kind": 1024, "children": [ - 89, - 88, - 90 + 99 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 77, - "character": 35 - } - ] - } - } - }, - { - "id": 91, - "name": "GenericNonUpdatableView", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 83, - "character": 12 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 92, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 93, - "name": "Row", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 84, - "character": 2 - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 93 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 83, + "line": 79, "character": 38 } ] @@ -6302,7 +6244,7 @@ } }, { - "id": 106, + "id": 112, "name": "QueryData", "kind": 4194304, "kindString": "Type alias", @@ -6310,13 +6252,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 104, + "line": 100, "character": 12 } ], "typeParameter": [ { - "id": 109, + "id": 115, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -6327,7 +6269,7 @@ "type": "conditional", "checkType": { "type": "reference", - "id": 109, + "id": 115, "name": "T" }, "extendsType": { @@ -6336,14 +6278,14 @@ { "type": "reflection", "declaration": { - "id": 107, + "id": 113, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 108, + "id": 114, "name": "data", "kind": 1024, "kindString": "Property", @@ -6351,7 +6293,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 104, + "line": 100, "character": 51 } ], @@ -6366,14 +6308,14 @@ "title": "Properties", "kind": 1024, "children": [ - 108 + 114 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 104, + "line": 100, "character": 49 } ] @@ -6407,7 +6349,7 @@ } }, { - "id": 110, + "id": 116, "name": "QueryError", "kind": 4194304, "kindString": "Type alias", @@ -6415,7 +6357,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 105, + "line": 101, "character": 12 } ], @@ -6427,7 +6369,7 @@ } }, { - "id": 104, + "id": 110, "name": "QueryResult", "kind": 4194304, "kindString": "Type alias", @@ -6438,13 +6380,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 103, + "line": 99, "character": 12 } ], "typeParameter": [ { - "id": 105, + "id": 111, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -6455,7 +6397,7 @@ "type": "conditional", "checkType": { "type": "reference", - "id": 105, + "id": 111, "name": "T" }, "extendsType": { @@ -6481,7 +6423,7 @@ } }, { - "id": 60, + "id": 70, "name": "SupabaseClientOptions", "kind": 4194304, "kindString": "Type alias", @@ -6495,7 +6437,7 @@ ], "typeParameter": [ { - "id": 80, + "id": 90, "name": "SchemaName", "kind": 131072, "kindString": "Type parameter", @@ -6505,14 +6447,14 @@ "type": { "type": "reflection", "declaration": { - "id": 61, + "id": 71, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 65, + "id": 75, "name": "auth", "kind": 1024, "kindString": "Property", @@ -6529,14 +6471,14 @@ "type": { "type": "reflection", "declaration": { - "id": 66, + "id": 76, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 67, + "id": 77, "name": "autoRefreshToken", "kind": 1024, "kindString": "Property", @@ -6559,7 +6501,7 @@ } }, { - "id": 73, + "id": 83, "name": "debug", "kind": 1024, "kindString": "Property", @@ -6584,13 +6526,13 @@ }, "objectType": { "type": "reference", - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions" } } }, { - "id": 70, + "id": 80, "name": "detectSessionInUrl", "kind": 1024, "kindString": "Property", @@ -6613,7 +6555,7 @@ } }, { - "id": 72, + "id": 82, "name": "flowType", "kind": 1024, "kindString": "Property", @@ -6638,13 +6580,13 @@ }, "objectType": { "type": "reference", - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions" } } }, { - "id": 74, + "id": 84, "name": "lock", "kind": 1024, "kindString": "Property", @@ -6675,13 +6617,13 @@ }, "objectType": { "type": "reference", - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions" } } }, { - "id": 69, + "id": 79, "name": "persistSession", "kind": 1024, "kindString": "Property", @@ -6704,7 +6646,7 @@ } }, { - "id": 71, + "id": 81, "name": "storage", "kind": 1024, "kindString": "Property", @@ -6729,13 +6671,13 @@ }, "objectType": { "type": "reference", - "id": 58, + "id": 68, "name": "SupabaseAuthClientOptions" } } }, { - "id": 68, + "id": 78, "name": "storageKey", "kind": 1024, "kindString": "Property", @@ -6763,14 +6705,14 @@ "title": "Properties", "kind": 1024, "children": [ - 67, - 73, - 70, - 72, - 74, - 69, - 71, - 68 + 77, + 83, + 80, + 82, + 84, + 79, + 81, + 78 ] } ], @@ -6785,7 +6727,7 @@ } }, { - "id": 62, + "id": 72, "name": "db", "kind": 1024, "kindString": "Property", @@ -6805,14 +6747,14 @@ "type": { "type": "reflection", "declaration": { - "id": 63, + "id": 73, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 64, + "id": 74, "name": "schema", "kind": 1024, "kindString": "Property", @@ -6828,7 +6770,7 @@ ], "type": { "type": "reference", - "id": 80, + "id": 90, "name": "SchemaName", "dereferenced": {} } @@ -6839,7 +6781,7 @@ "title": "Properties", "kind": 1024, "children": [ - 64 + 74 ] } ], @@ -6854,7 +6796,7 @@ } }, { - "id": 76, + "id": 86, "name": "global", "kind": 1024, "kindString": "Property", @@ -6871,14 +6813,14 @@ "type": { "type": "reflection", "declaration": { - "id": 77, + "id": 87, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 78, + "id": 88, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -6897,10 +6839,10 @@ ], "type": { "type": "reference", - "id": 59, + "id": 69, "name": "Fetch", "dereferenced": { - "id": 59, + "id": 69, "name": "Fetch", "kind": 4194304, "kindString": "Type alias", @@ -6916,7 +6858,7 @@ "type": "query", "queryType": { "type": "reference", - "id": 18, + "id": 28, "qualifiedName": "fetch", "package": "typescript", "name": "fetch" @@ -6926,7 +6868,7 @@ } }, { - "id": 79, + "id": 89, "name": "headers", "kind": 1024, "kindString": "Property", @@ -6966,8 +6908,8 @@ "title": "Properties", "kind": 1024, "children": [ - 78, - 79 + 88, + 89 ] } ], @@ -6982,7 +6924,7 @@ } }, { - "id": 75, + "id": 85, "name": "realtime", "kind": 1024, "kindString": "Property", @@ -7012,10 +6954,10 @@ "title": "Properties", "kind": 1024, "children": [ - 65, - 62, - 76, - 75 + 75, + 72, + 86, + 85 ] } ], @@ -7035,24 +6977,24 @@ "title": "Interfaces", "kind": 256, "children": [ - 58 + 68 ] }, { "title": "Type Aliases", "kind": 4194304, "children": [ - 59, - 95, + 69, + 101, + 97, + 105, 91, - 99, - 81, - 86, - 94, - 106, + 96, + 100, + 112, + 116, 110, - 104, - 60 + 70 ] } ], @@ -7065,14 +7007,14 @@ ] }, { - "id": 111, + "id": 117, "name": "lib/version", "kind": 2, "kindString": "Module", "flags": {}, "children": [ { - "id": 112, + "id": 118, "name": "version", "kind": 32, "kindString": "Variable", @@ -7098,7 +7040,7 @@ "title": "Variables", "kind": 32, "children": [ - 112 + 118 ] } ], @@ -7118,10 +7060,10 @@ "children": [ 1, 10, - 14, - 43, - 57, - 111 + 24, + 53, + 67, + 117 ] } ] diff --git a/apps/docs/spec/examples/examples.yml b/apps/docs/spec/examples/examples.yml index 064e259a03e..60d35abbfaa 100644 --- a/apps/docs/spec/examples/examples.yml +++ b/apps/docs/spec/examples/examples.yml @@ -119,7 +119,7 @@ functions: - **Confirm email** determines if users need to confirm their email address after signing up. - If **Confirm email** is enabled, a `user` is returned but `session` is null. - If **Confirm email** is disabled, both a `user` and a `session` are returned. - - By default, when the user confirms their email address, they are redirected to the [`SITE_URL`](https://supabase.com/docs/reference/auth/config#site_url). You can modify your `SITE_URL` or add additional redirect URLs in [your project](https://supabase.com/dashboard/project/_/auth/url-configuration). + - By default, when the user confirms their email address, they are redirected to the [`SITE_URL`](https://supabase.com/docs/guides/auth/concepts/redirect-urls). You can modify your `SITE_URL` or add additional redirect URLs in [your project](https://supabase.com/dashboard/project/_/auth/url-configuration). - If signUp() is called for an existing confirmed user: - When both **Confirm email** and **Confirm phone** (even when phone provider is disabled) are enabled in [your project](/dashboard/project/_/auth/providers), an obfuscated/fake user object is returned. - When either **Confirm email** or **Confirm phone** (even when phone provider is disabled) is disabled, the error message, `User already registered` is returned. @@ -193,7 +193,7 @@ functions: - This method is used for passwordless sign-ins where a OTP is sent to the user's email or phone number. - If you're using an email, you can configure whether you want the user to receive a magiclink or a OTP. - If you're using phone, you can configure whether you want the user to receive a OTP. - - The magic link's destination URL is determined by the [`SITE_URL`](https://supabase.com/docs/reference/auth/config#site_url). You can modify the `SITE_URL` or add additional redirect URLs in [your project](https://supabase.com/dashboard/project/_/auth/url-configuration). + - The magic link's destination URL is determined by the [`SITE_URL`](https://supabase.com/docs/guides/auth/concepts/redirect-urls). You can modify the `SITE_URL` or add additional redirect URLs in [your project](https://supabase.com/dashboard/project/_/auth/url-configuration). examples: - id: sign-in-with-email. name: Sign in with email. @@ -236,7 +236,7 @@ functions: name: Sign in using a third-party provider with redirect isSpotlight: false description: | - When the third-party provider successfully authenticates the user, the provider will redirect the user to the URL specified in the `redirectTo` parameter. This parameter defaults to the [`SITE_URL`](https://supabase.com/docs/reference/auth/config#site_url). It does not redirect the user immediately after invoking this method. + When the third-party provider successfully authenticates the user, the provider will redirect the user to the URL specified in the `redirectTo` parameter. This parameter defaults to the [`SITE_URL`](https://supabase.com/docs/guides/auth/concepts/redirect-urls). It does not redirect the user immediately after invoking this method. You can modify the `SITE_URL` or add additional redirect URLs in [your project](https://supabase.com/dashboard/project/_/auth/url-configuration). js: | ```js diff --git a/apps/docs/spec/supabase_csharp_v0.yml b/apps/docs/spec/supabase_csharp_v0.yml index ba906a6bda2..e09549dafbb 100644 --- a/apps/docs/spec/supabase_csharp_v0.yml +++ b/apps/docs/spec/supabase_csharp_v0.yml @@ -123,7 +123,7 @@ functions: - **Confirm email** determines if users need to confirm their email address after signing up. - If **Confirm email** is enabled, a `user` is returned but `session` is null. - If **Confirm email** is disabled, both a `user` and a `session` are returned. - - When the user confirms their email address, they are redirected to the [`SITE_URL`](https://supabase.com/docs/reference/auth/config#site_url) by default. You can modify your `SITE_URL` or add additional redirect URLs in [your project](https://supabase.com/dashboard/project/_/auth/url-configuration). + - When the user confirms their email address, they are redirected to the [`SITE_URL`](https://supabase.com/docs/guides/auth/concepts/redirect-urls) by default. You can modify your `SITE_URL` or add additional redirect URLs in [your project](https://supabase.com/dashboard/project/_/auth/url-configuration). - If SignUp() is called for an existing confirmed user: - When both **Confirm email** and **Confirm phone** (even when phone provider is disabled) are enabled in [your project](/dashboard/project/_/auth/providers), an obfuscated/fake user object is returned. - When either **Confirm email** or **Confirm phone** (even when phone provider is disabled) is disabled, the error message, `User already registered` is returned. @@ -162,7 +162,7 @@ functions: - This method is used for passwordless sign-ins where a OTP is sent to the user's email or phone number. - If you're using an email, you can configure whether you want the user to receive a magiclink or a OTP. - If you're using phone, you can configure whether you want the user to receive a OTP. - - The magic link's destination URL is determined by the [`SITE_URL`](https://supabase.com/docs/reference/auth/config#site_url). You can modify the `SITE_URL` or add additional redirect urls in [your project](https://supabase.com/dashboard/project/_/auth/settings). + - The magic link's destination URL is determined by the [`SITE_URL`](https://supabase.com/docs/guides/auth/concepts/redirect-urls). You can modify the `SITE_URL` or add additional redirect urls in [your project](https://supabase.com/dashboard/project/_/auth/settings). examples: - id: sign-in-with-email name: Send Magic Link. diff --git a/apps/docs/spec/supabase_dart_v1.yml b/apps/docs/spec/supabase_dart_v1.yml index 718dc716054..18a9ed5a224 100644 --- a/apps/docs/spec/supabase_dart_v1.yml +++ b/apps/docs/spec/supabase_dart_v1.yml @@ -60,7 +60,7 @@ functions: - **Confirm email** determines if users need to confirm their email address after signing up. - If **Confirm email** is enabled, a `user` is returned but `session` is null. - If **Confirm email** is disabled, both a `user` and a `session` are returned. - - When the user confirms their email address, they are redirected to the [`SITE_URL`](https://supabase.com/docs/reference/auth/config#site_url) by default. You can modify your `SITE_URL` or add additional redirect URLs in [your project](https://supabase.com/dashboard/project/_/auth/url-configuration). + - When the user confirms their email address, they are redirected to the [`SITE_URL`](https://supabase.com/docs/guides/auth/concepts/redirect-urls) by default. You can modify your `SITE_URL` or add additional redirect URLs in [your project](https://supabase.com/dashboard/project/_/auth/url-configuration). - If signUp() is called for an existing confirmed user: - If **Confirm email** is enabled in [your project](https://supabase.com/dashboard/project/_/auth/providers), an obfuscated/fake user object is returned. - If **Confirm email** is disabled, the error message, `User already registered` is returned. @@ -141,7 +141,7 @@ functions: - This method is used for passwordless sign-ins where a OTP is sent to the user's email or phone number. - If you're using an email, you can configure whether you want the user to receive a magiclink or a OTP. - If you're using phone, you can configure whether you want the user to receive a OTP. - - The magic link's destination URL is determined by the [`SITE_URL`](https://supabase.com/docs/reference/auth/config#site_url). You can modify the `SITE_URL` or add additional redirect urls in [your project](https://supabase.com/dashboard/project/_/auth/url-configuration). + - The magic link's destination URL is determined by the [`SITE_URL`](https://supabase.com/docs/guides/auth/concepts/redirect-urls). You can modify the `SITE_URL` or add additional redirect urls in [your project](https://supabase.com/dashboard/project/_/auth/url-configuration). examples: - id: sign-in-with-email name: Sign in with email. diff --git a/apps/docs/spec/supabase_dart_v2.yml b/apps/docs/spec/supabase_dart_v2.yml index 2b5492ccf20..c3f461e7b1c 100644 --- a/apps/docs/spec/supabase_dart_v2.yml +++ b/apps/docs/spec/supabase_dart_v2.yml @@ -117,7 +117,7 @@ functions: - **Confirm email** determines if users need to confirm their email address after signing up. - If **Confirm email** is enabled, a `user` is returned but `session` is null. - If **Confirm email** is disabled, both a `user` and a `session` are returned. - - When the user confirms their email address, they are redirected to the [`SITE_URL`](https://supabase.com/docs/reference/auth/config#site_url) by default. You can modify your `SITE_URL` or add additional redirect URLs in [your project](https://supabase.com/dashboard/project/_/auth/url-configuration). + - When the user confirms their email address, they are redirected to the [`SITE_URL`](https://supabase.com/docs/guides/auth/concepts/redirect-urls) by default. You can modify your `SITE_URL` or add additional redirect URLs in [your project](https://supabase.com/dashboard/project/_/auth/url-configuration). - If signUp() is called for an existing confirmed user: - When both **Confirm email** and **Confirm phone** (even when phone provider is disabled) are enabled in [your project](/dashboard/project/_/auth/providers), an obfuscated/fake user object is returned. - When either **Confirm email** or **Confirm phone** (even when phone provider is disabled) is disabled, the error message, `User already registered` is returned. @@ -189,7 +189,39 @@ functions: final Session? session = res.session; final User? user = res.user; ``` - + - id: sign-in-anonymously + title: 'signInAnonymously()' + description: | + Creates an anonymous user. + notes: | + - Returns an anonymous user + - It is recommended to set up captcha for anonymous sign-ins to prevent abuse. You can pass in the captcha token in the `options` param. + params: + - name: data + isOptional: true + type: Map + description: The user's metadata to be stored in the user's object. + - name: captchaToken + isOptional: true + type: String + description: The captcha token to be used for captcha verification. + examples: + - id: sign-in-anonymously + name: Create an anonymous user + isSpotlight: true + code: | + ```dart + await supabase.auth.signInAnonymously(); + ``` + - id: sign-in-anonymously-with-user-metadata + name: Create an anonymous user with custom user metadata + isSpotlight: false + code: | + ```dart + await supabase.auth.signInAnonymously( + data: {'hello': 'world'}, + ); + ``` - id: sign-in-with-password title: 'signInWithPassword()' description: | @@ -244,7 +276,7 @@ functions: - This method is used for passwordless sign-ins where an OTP is sent to the user's email or phone number. - If you're using an email, you can configure whether you want the user to receive a magiclink or an OTP. - If you're using phone, you can configure whether you want the user to receive an OTP. - - The magic link's destination URL is determined by the [`SITE_URL`](https://supabase.com/docs/reference/auth/config#site_url). You can modify the `SITE_URL` or add additional redirect urls in [your project](https://supabase.com/dashboard/project/_/auth/url-configuration). + - The magic link's destination URL is determined by the [`SITE_URL`](https://supabase.com/docs/guides/auth/concepts/redirect-urls). You can modify the `SITE_URL` or add additional redirect urls in [your project](https://supabase.com/dashboard/project/_/auth/url-configuration). params: - name: email isOptional: true @@ -552,6 +584,35 @@ functions: notes: | - The `verifyOtp` method takes in different verification types. If a phone number is used, the type can either be `sms` or `phone_change`. If an email address is used, the type can be one of the following: `signup`, `magiclink`, `recovery`, `invite` or `email_change`. - The verification type used should be determined based on the corresponding auth method called before `verifyOtp` to sign up or sign in a user. + params: + - name: token + isOptional: false + type: String + description: The token that user was sent to their email or mobile phone + - name: type + isOptional: false + type: OtpType + description: Type of the OTP to verify + - name: email + isOptional: true + type: String + description: Email address that the OTP was sent to + - name: phone + isOptional: true + type: String + description: Phone number that the OTP was sent to + - name: redirectTo + isOptional: true + type: String + description: URI to redirect the user to after the OTP is verified + - name: captchaToken + isOptional: true + type: String + description: The captcha token to be used for captcha verification + - name: tokenHash + isOptional: true + type: String + description: Token used in an email link examples: - id: verify-sms-one-time-password(otp) name: Verify SMS One-Time Password (OTP) @@ -610,6 +671,36 @@ functions: - In order to use the `updateUser()` method, the user needs to be signed in first. - By default, email updates sends a confirmation link to both the user's current and new email. To only send a confirmation link to the user's new email, disable **Secure email change** in your project's [email auth provider settings](https://supabase.com/dashboard/project/_/auth/providers). + params: + - name: attributes + isOptional: false + type: UserAttributes + description: Attributes to update for the user. + subContent: + - name: email + isOptional: true + type: String + description: The new email address for the user. + - name: phone + isOptional: true + type: String + description: The new phone number for the user. + - name: password + isOptional: true + type: String + description: The new password for the user. + - name: data + isOptional: true + type: Map + description: The user's metadata to be stored in the user's object. + - name: nonce + isOptional: true + type: String + description: The nonce sent for reauthentication if the user's password is to be updated. + - name: emailRedirectTo + isOptional: true + type: String + description: The URI to redirect the user to after the email is updated. examples: - id: update-the-email-for-an-authenticated-user name: Update the email for an authenticated user @@ -659,6 +750,88 @@ functions: nonce: '123456', )); ``` + - id: get-user-identities + title: 'getUserIdentities()' + description: | + Gets all the identities linked to a user. + notes: | + - The user needs to be signed in to call `getUserIdentities()`. + examples: + - id: get-user-identities + name: Returns a list of identities linked to the user + isSpotlight: true + code: | + ```dart + final identities = await supabase.auth.getUserIdentities(); + ``` + - id: link-identity + title: 'linkIdentity()' + description: | + Links an oauth identity to an existing user. This method supports the PKCE flow. + notes: | + - The **Enable Manual Linking** option must be enabled from your [project's authentication settings](/dashboard/project/_/settings/auth). + - The user needs to be signed in to call `linkIdentity()`. + - If the candidate identity is already linked to the existing user or another user, `linkIdentity()` will fail. + params: + - name: provider + isOptional: false + type: OAuthProvider + description: The provider to link the identity to. + - name: redirectTo + isOptional: true + type: String + description: The URL to redirect the user to after they sign in with the third-party provider. + - name: scopes + isOptional: true + type: String + description: A list of scopes to request from the third-party provider. + - name: authScreenLaunchMode + isOptional: true + type: LaunchMode + description: The launch mode for the auth screen. Defaults to `LaunchMode.platformDefault`. + - name: queryParams + isOptional: true + type: Map + description: Additional query parameters to be passed to the OAuth flow. + examples: + - id: link-identity + name: Link an identity to a user + isSpotlight: true + code: | + ```dart + await supabase.auth.linkIdentity(OAuthProvider.google); + ``` + - id: unlink-identity + title: 'unlinkIdentity()' + description: | + Unlinks an identity from a user by deleting it. The user will no longer be able to sign in with that identity once it's unlinked. + params: + - name: identity + isOptional: false + type: UserIdentity + description: The user identity to unlink. + notes: | + - The **Enable Manual Linking** option must be enabled from your [project's authentication settings](/dashboard/project/_/settings/auth). + - The user needs to be signed in to call `unlinkIdentity()`. + - The user must have at least 2 identities in order to unlink an identity. + - The identity to be unlinked must belong to the user. + examples: + - id: unlink-identity + name: Unlink an identity + isSpotlight: true + code: | + ```dart + // retrieve all identites linked to a user + final identities = await supabase.auth.getUserIdentities(); + + // find the google identity + final googleIdentity = identities.firstWhere( + (element) => element.provider == 'google', + ); + + // unlink the google identity + await supabase.auth.unlinkIdentity(googleIdentity); + ``` - id: send-password-reauthentication title: 'reauthenticate()' notes: | @@ -760,6 +933,11 @@ functions: - The refresh token can only be used once to obtain a new session. - [Refresh token rotation](/docs/guides/cli/config#auth.enable_refresh_token_rotation) is enabled by default on all projects to guard against replay attacks. - You can configure the [`REFRESH_TOKEN_REUSE_INTERVAL`](/docs/guides/cli/config#auth.refresh_token_reuse_interval) which provides a short window in which the same refresh token can be used multiple times in the event of concurrency or offline issues. + params: + - name: refreshToken + isOptional: false + type: String + description: Refresh token to use to get a new session. examples: - id: refresh-the-session name: Refresh the session @@ -805,6 +983,19 @@ functions: - To create a challenge, see [`mfa.challenge()`](/docs/reference/dart/auth-mfa-challenge). - To verify a challenge, see [`mfa.verify()`](/docs/reference/dart/auth-mfa-verify). - To create and verify a challenge in a single step, see [`mfa.challengeAndVerify()`](/docs/reference/dart/auth-mfa-challengeandverify). + params: + - name: factorType + isOptional: true + type: String + description: Type of factor being enrolled. + - name: issuer + isOptional: true + type: String + description: Domain which the user is enrolled with. + - name: friendlyName + isOptional: true + type: String + description: Human readable name assigned to the factor. examples: - id: enroll-totp-factor name: Enroll a time-based, one-time password (TOTP) factor @@ -821,6 +1012,11 @@ functions: Prepares a challenge used to verify that a user has access to a MFA factor. - An [enrolled factor](/docs/reference/dart/auth-mfa-enroll) is required before creating a challenge. - To verify a challenge, see [`mfa.verify()`](/docs/reference/dart/auth-mfa-verify). + params: + - name: factorId + isOptional: false + type: String + description: System assigned identifier for authenticator device as returned by enroll examples: - id: create-mfa-challenge name: Create a challenge for a factor @@ -836,6 +1032,19 @@ functions: notes: | Verifies a code against a challenge. The verification code is provided by the user by entering a code seen in their authenticator app. - To verify a challenge, please [create a challenge](/docs/reference/dart/auth-mfa-challenge) first. + params: + - name: factorId + isOptional: false + type: String + description: System assigned identifier for authenticator device as returned by enroll + - name: challengeId + isOptional: false + type: String + description: The ID of the challenge to verify + - name: code + isOptional: false + type: String + description: The verification code on the user's authenticator app examples: - id: verify-challenge name: Verify a challenge for a factor @@ -854,6 +1063,15 @@ functions: Helper method which creates a challenge and immediately uses the given code to verify against it thereafter. The verification code is provided by the user by entering a code seen in their authenticator app. - An [enrolled factor](/docs/reference/dart/auth-mfa-enroll) is required before invoking `challengeAndVerify()`. - Executes [`mfa.challenge()`](/docs/reference/dart/auth-mfa-challenge) and [`mfa.verify()`](/docs/reference/dart/auth-mfa-verify) in a single step. + params: + - name: factorId + isOptional: false + type: String + description: System assigned identifier for authenticator device as returned by enroll + - name: code + isOptional: false + type: String + description: The verification code on the user's authenticator app examples: - id: challenge-and-verify name: Create and verify a challenge for a factor @@ -870,7 +1088,11 @@ functions: notes: | Unenroll removes a MFA factor. A user has to have an `aal2` authenticator level in order to unenroll a `verified` factor. - + params: + - name: factorId + isOptional: false + type: String + description: System assigned identifier for authenticator device as returned by enroll examples: - id: unenroll-a-factor name: Unenroll a factor @@ -918,6 +1140,11 @@ functions: Get user by id. - Fetches the user object from the database based on the user's id. - The `getUserById()` method requires the user's id which maps to the `auth.users.id` column. + params: + - name: uid + isOptional: false + type: String + description: User ID of the user to fetch. examples: - id: fetch-the-user-object-using-the-access-token-jwt name: Fetch the user object using the access_token jwt @@ -932,6 +1159,15 @@ functions: notes: | Get a list of users. - Defaults to return 50 users per page. + params: + - name: page + isOptional: true + type: int + description: What page of users to return. + - name: page + isOptional: true + type: int + description: How many users to be returned per page. Defaults to 50. examples: - id: get-a-full-list-of-users name: Get a page of users @@ -959,6 +1195,44 @@ functions: - To confirm the user's email address or phone number, set `email_confirm` or `phone_confirm` to true. Both arguments default to false. - `createUser()` will not send a confirmation email to the user. You can use [`inviteUserByEmail()`](/docs/reference/dart/auth-admin-inviteuserbyemail) if you want to send them an email invite instead. - If you are sure that the created user's email or phone number is legitimate and verified, you can set the `email_confirm` or `phone_confirm` param to `true`. + params: + - name: attributes + isOptional: false + type: AdminUserAttributes + description: Attributes to create the user with. + subContent: + - name: email + isOptional: false + type: String + description: The email address of the user. + - name: password + isOptional: false + type: String + description: The password of the user. + - name: phone + isOptional: true + type: String + description: The phone number of the user. + - name: userMetadata + isOptional: true + type: Map + description: A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column. + - name: appMetadata + isOptional: true + type: Map + description: A custom data object to store the user's application specific metadata. This maps to the `auth.users.app_metadata` column. + - name: emailConfirm + isOptional: true + type: bool + description: Whether to confirm the user's email address. + - name: phoneConfirm + isOptional: true + type: bool + description: Whether to confirm the user's phone number. + - name: banDuration + isOptional: true + type: String + description: Determines how long a user is banned for. Some possible durations include '300ms', '2h45m'. examples: - id: create-a-new-user-with-custom-user-metadata name: With custom user metadata @@ -994,6 +1268,11 @@ functions: notes: | Delete a user. - The `deleteUser()` method requires the user's ID, which maps to the `auth.users.id` column. + params: + - name: id + isOptional: false + type: String + description: ID of the user to be deleted. examples: - id: removes-a-user name: Removes a user @@ -1007,6 +1286,19 @@ functions: title: 'inviteUserByEmail()' notes: | Sends an invite link to the user's email address. + params: + - name: email + isOptional: false + type: String + description: Email address of the user to invite. + - name: redirectTo + isOptional: true + type: String + description: URI to redirect the user to after they open the invite link. + - name: data + isOptional: true + type: Map + description: A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column. examples: - id: invite-a-user name: Invite a user @@ -1024,6 +1316,27 @@ functions: - The following types can be passed into `generateLink()`: `signup`, `magiclink`, `invite`, `recovery`, `emailChangeCurrent`, `emailChangeNew`, `phoneChange`. - `generateLink()` only generates the email link for `email_change_email` if the "Secure email change" setting is enabled under the "Email" provider in your Supabase project. - `generateLink()` handles the creation of the user for `signup`, `invite` and `magiclink`. + params: + - name: type + isOptional: false + type: GenerateLinkType + description: The type of invite link to generate. + - name: email + isOptional: false + type: String + description: Email address of the user to invite. + - name: password + isOptional: true + type: String + description: Password for the user. Required for `signup` type. + - name: redirectTo + isOptional: true + type: String + description: URI to redirect the user to after they open the invite link. + - name: data + isOptional: true + type: Map + description: A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column. examples: - id: generate-a-signup-link name: Generate a signup link @@ -1039,6 +1352,48 @@ functions: ``` - id: update-user-by-id title: 'updateUserById()' + params: + - name: uid + isOptional: false + type: GenerateLinkType + description: User ID of the user to update. + - name: attributes + isOptional: false + type: AdminUserAttributes + description: Attributes to update for the user. + subContent: + - name: email + isOptional: false + type: String + description: The email address of the user. + - name: password + isOptional: false + type: String + description: The password of the user. + - name: phone + isOptional: true + type: String + description: The phone number of the user. + - name: userMetadata + isOptional: true + type: Map + description: A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column. + - name: appMetadata + isOptional: true + type: Map + description: A custom data object to store the user's application specific metadata. This maps to the `auth.users.app_metadata` column. + - name: emailConfirm + isOptional: true + type: bool + description: Whether to confirm the user's email address. + - name: phoneConfirm + isOptional: true + type: bool + description: Whether to confirm the user's phone number. + - name: banDuration + isOptional: true + type: String + description: Determines how long a user is banned for. Some possible durations include '300ms', '2h45m'. examples: - id: updates-a-users-email name: Updates a user's email @@ -1059,6 +1414,23 @@ functions: notes: | - Requires an Authorization header. - Invoke params generally match the [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) spec. + params: + - name: functionName + isOptional: false + type: String + description: The name of the function to invoke. + - name: headers + isOptional: true + type: Map + description: Custom headers to send with the request. + - name: body + isOptional: true + type: Map + description: The body of the request. + - name: method + isOptional: true + type: HttpMethod + description: HTTP method of the request. Defaults to POST. examples: - id: basic-invocation name: Basic invocation. diff --git a/apps/docs/spec/supabase_js_v2.yml b/apps/docs/spec/supabase_js_v2.yml index 66ba85c94bc..34b4b83a3d4 100644 --- a/apps/docs/spec/supabase_js_v2.yml +++ b/apps/docs/spec/supabase_js_v2.yml @@ -226,13 +226,13 @@ functions: - id: sign-up title: 'signUp()' - $ref: '@supabase/gotrue-js.GoTrueClient.signUp' + $ref: '@supabase/auth-js.GoTrueClient.signUp' notes: | - By default, the user needs to verify their email address before logging in. To turn this off, disable **Confirm email** in [your project](/dashboard/project/_/auth/providers). - **Confirm email** determines if users need to confirm their email address after signing up. - If **Confirm email** is enabled, a `user` is returned but `session` is null. - If **Confirm email** is disabled, both a `user` and a `session` are returned. - - When the user confirms their email address, they are redirected to the [`SITE_URL`](/docs/reference/auth/config#site_url) by default. You can modify your `SITE_URL` or add additional redirect URLs in [your project](/dashboard/project/_/auth/url-configuration). + - When the user confirms their email address, they are redirected to the [`SITE_URL`](/docs/guides/auth/concepts/redirect-urls) by default. You can modify your `SITE_URL` or add additional redirect URLs in [your project](/dashboard/project/_/auth/url-configuration). - If signUp() is called for an existing confirmed user: - When both **Confirm email** and **Confirm phone** (even when phone provider is disabled) are enabled in [your project](/dashboard/project/_/auth/providers), an obfuscated/fake user object is returned. - When either **Confirm email** or **Confirm phone** (even when phone provider is disabled) is disabled, the error message, `User already registered` is returned. @@ -313,7 +313,7 @@ functions: - id: on-auth-state-change title: 'onAuthStateChange()' - $ref: '@supabase/gotrue-js.GoTrueClient.onAuthStateChange' + $ref: '@supabase/auth-js.GoTrueClient.onAuthStateChange' notes: | - Subscribes to important events occurring on the user's session. - Use on the frontend/client. It is less useful on the server. @@ -506,9 +506,39 @@ functions: }) ``` + - id: sign-in-anonymously + title: 'signInAnonymously()' + $ref: '@supabase/auth-js.GoTrueClient.signInAnonymously' + notes: | + - Returns an anonymous user + - It is recommended to set up captcha for anonymous sign-ins to prevent abuse. You can pass in the captcha token in the `options` param. + examples: + - id: sign-in-anonymously + name: Create an anonymous user + isSpotlight: true + code: | + ```js + const { data, error } = await supabase.auth.signInAnonymously({ + options: { + captchaToken + } + }); + ``` + - id: sign-in-anonymously-with-user-metadata + name: Create an anonymous user with custom user metadata + isSpotlight: false + code: | + ```js + const { data, error } = await supabase.auth.signInAnonymously({ + options: { + data + } + }) + ``` + - id: sign-in-with-password title: 'signInWithPassword()' - $ref: '@supabase/gotrue-js.GoTrueClient.signInWithPassword' + $ref: '@supabase/auth-js.GoTrueClient.signInWithPassword' notes: | - Requires either an email and password or a phone number and password. examples: @@ -534,14 +564,14 @@ functions: ``` - id: sign-in-with-otp title: 'signInWithOtp()' - $ref: '@supabase/gotrue-js.GoTrueClient.signInWithOtp' + $ref: '@supabase/auth-js.GoTrueClient.signInWithOtp' notes: | - Requires either an email or phone number. - This method is used for passwordless sign-ins where a OTP is sent to the user's email or phone number. - - If the user doesn't exist, `signInWithOtp()` will signup the user instead. To restrict this behaviour, you can set `shouldCreateUser` in `SignInWithPasswordlessCredentials.options` to `false`. + - If the user doesn't exist, `signInWithOtp()` will signup the user instead. To restrict this behavior, you can set `shouldCreateUser` in `SignInWithPasswordlessCredentials.options` to `false`. - If you're using an email, you can configure whether you want the user to receive a magiclink or a OTP. - If you're using phone, you can configure whether you want the user to receive a OTP. - - The magic link's destination URL is determined by the [`SITE_URL`](/docs/reference/auth/config#site_url). + - The magic link's destination URL is determined by the [`SITE_URL`](/docs/guides/auth/concepts/redirect-urls). - See [redirect URLs and wildcards](/docs/guides/auth#redirect-urls-and-wildcards) to add additional redirect URLs to your project. - Magic links and OTPs share the same implementation. To send users a one-time code instead of a magic link, [modify the magic link email template](/dashboard/project/_/auth/templates) to include `{{ .Token }}` instead of `{{ .ConfirmationURL }}`. - See our [Twilio Phone Auth Guide](/docs/guides/auth/phone-login/twilio) for details about configuring WhatsApp sign in. @@ -584,7 +614,7 @@ functions: ``` - id: sign-in-with-oauth title: 'signInWithOAuth()' - $ref: '@supabase/gotrue-js.GoTrueClient.signInWithOAuth' + $ref: '@supabase/auth-js.GoTrueClient.signInWithOAuth' notes: | - This method is used for signing in using a third-party provider. - Supabase supports many different [third-party providers](/docs/guides/auth#configure-third-party-providers). @@ -602,7 +632,7 @@ functions: name: Sign in using a third-party provider with redirect isSpotlight: false description: | - - When the third-party provider successfully authenticates the user, the provider redirects the user to the URL specified in the `redirectTo` parameter. This parameter defaults to the [`SITE_URL`](/docs/reference/auth/config#site_url). It does not redirect the user immediately after invoking this method. + - When the third-party provider successfully authenticates the user, the provider redirects the user to the URL specified in the `redirectTo` parameter. This parameter defaults to the [`SITE_URL`](/docs/guides/auth/concepts/redirect-urls). It does not redirect the user immediately after invoking this method. - See [redirect URLs and wildcards](/docs/guides/auth#redirect-urls-and-wildcards) to add additional redirect URLs to your project. code: | ```js @@ -654,7 +684,7 @@ functions: - id: sign-in-with-id-token title: 'signInWithIdToken' - $ref: '@supabase/gotrue-js.GoTrueClient.signInWithIdToken' + $ref: '@supabase/auth-js.GoTrueClient.signInWithIdToken' examples: - id: sign-in-with-id-token name: 'Sign In using ID Token' @@ -667,7 +697,7 @@ functions: ``` - id: sign-in-with-sso title: 'signInWithSSO()' - $ref: '@supabase/gotrue-js.GoTrueClient.signInWithSSO' + $ref: '@supabase/auth-js.GoTrueClient.signInWithSSO' notes: | - Before you can call this method you need to [establish a connection](/docs/guides/auth/sso/auth-sso-saml#managing-saml-20-connections) to an identity provider. Use the [CLI commands](/docs/reference/cli/supabase-sso) to do this. - If you've associated an email domain to the identity provider, you can use the `domain` property to start a sign-in flow. @@ -711,7 +741,7 @@ functions: ``` - id: sign-out title: 'signOut()' - $ref: '@supabase/gotrue-js.GoTrueClient.signOut' + $ref: '@supabase/auth-js.GoTrueClient.signOut' notes: | - In order to use the `signOut()` method, the user needs to be signed in first. - By default, `signOut()` uses the global scope, which signs out all other sessions that the user is logged into as well. @@ -726,7 +756,7 @@ functions: ``` - id: verify-otp title: 'verifyOtp()' - $ref: '@supabase/gotrue-js.GoTrueClient.verifyOtp' + $ref: '@supabase/auth-js.GoTrueClient.verifyOtp' notes: | - The `verifyOtp` method takes in different verification types. If a phone number is used, the type can either be `sms` or `phone_change`. If an email address is used, the type can be one of the following: `email`, `recovery`, `invite` or `email_change` (`signup` and `magiclink` types are deprecated). - The verification type used should be determined based on the corresponding auth method called before `verifyOtp` to sign up / sign-in a user. @@ -755,7 +785,7 @@ functions: ``` - id: get-session title: 'getSession()' - $ref: '@supabase/gotrue-js.GoTrueClient.getSession' + $ref: '@supabase/auth-js.GoTrueClient.getSession' notes: | - This method retrieves the current local session (i.e local storage). - The session contains a signed JWT and unencoded session data. @@ -771,7 +801,7 @@ functions: ``` - id: start-auto-refresh title: 'startAutoRefresh()' - $ref: '@supabase/gotrue-js.GoTrueClient.startAutoRefresh' + $ref: '@supabase/auth-js.GoTrueClient.startAutoRefresh' notes: | - Only useful in non-browser environments such as React Native or Electron. - The Supabase Auth library automatically starts and stops proactively refreshing the session when a tab is focused or not. @@ -796,7 +826,7 @@ functions: ``` - id: stop-auto-refresh title: 'stopAutoRefresh()' - $ref: '@supabase/gotrue-js.GoTrueClient.stopAutoRefresh' + $ref: '@supabase/auth-js.GoTrueClient.stopAutoRefresh' notes: | - Only useful in non-browser environments such as React Native or Electron. - The Supabase Auth library automatically starts and stops proactively refreshing the session when a tab is focused or not. @@ -821,7 +851,7 @@ functions: ``` - id: get-user title: 'getUser()' - $ref: '@supabase/gotrue-js.GoTrueClient.getUser' + $ref: '@supabase/auth-js.GoTrueClient.getUser' notes: | - This method fetches the user object from the database instead of local session. - This method is useful for checking if the user is authorized because it validates the user's access token JWT on the server. @@ -843,7 +873,7 @@ functions: ``` - id: update-user title: 'updateUser()' - $ref: '@supabase/gotrue-js.GoTrueClient.updateUser' + $ref: '@supabase/auth-js.GoTrueClient.updateUser' notes: | - In order to use the `updateUser()` method, the user needs to be signed in first. - By default, email updates sends a confirmation link to both the user's current and new email. @@ -902,7 +932,7 @@ functions: ``` - id: get-user-identities title: 'getUserIdentities()' - $ref: '@supabase/gotrue-js.GoTrueClient.getUserIdentities' + $ref: '@supabase/auth-js.GoTrueClient.getUserIdentities' notes: | - The user needs to be signed in to call `getUserIdentities()`. examples: @@ -915,7 +945,7 @@ functions: ``` - id: link-identity title: 'linkIdentity()' - $ref: '@supabase/gotrue-js.GoTrueClient.linkIdentity' + $ref: '@supabase/auth-js.GoTrueClient.linkIdentity' notes: | - The **Enable Manual Linking** option must be enabled from your [project's authentication settings](/dashboard/project/_/settings/auth). - The user needs to be signed in to call `linkIdentity()`. @@ -930,7 +960,7 @@ functions: ``` - id: unlink-identity title: 'unlinkIdentity()' - $ref: '@supabase/gotrue-js.GoTrueClient.unlinkIdentity' + $ref: '@supabase/auth-js.GoTrueClient.unlinkIdentity' notes: | - The **Enable Manual Linking** option must be enabled from your [project's authentication settings](/dashboard/project/_/settings/auth). - The user needs to be signed in to call `unlinkIdentity()`. @@ -955,7 +985,7 @@ functions: ``` - id: send-password-reauthentication title: 'reauthenticate()' - $ref: '@supabase/gotrue-js.GoTrueClient.reauthenticate' + $ref: '@supabase/auth-js.GoTrueClient.reauthenticate' notes: | - This method is used together with `updateUser()` when a user's password needs to be updated. - If you require your user to reauthenticate before updating their password, you need to enable the **Secure password change** option in your [project's email provider settings](/dashboard/project/_/auth/providers). @@ -972,7 +1002,7 @@ functions: ``` - id: resend-email-or-phone-otps title: 'resend()' - $ref: '@supabase/gotrue-js.GoTrueClient.resend' + $ref: '@supabase/auth-js.GoTrueClient.resend' notes: | - Resends a signup confirmation, email change or phone change email to the user. - Passwordless sign-ins can be resent by calling the `signInWithOtp()` method again. @@ -1026,7 +1056,7 @@ functions: ``` - id: set-session title: 'setSession()' - $ref: '@supabase/gotrue-js.GoTrueClient.setSession' + $ref: '@supabase/auth-js.GoTrueClient.setSession' notes: | - `setSession()` takes in a refresh token and uses it to get a new session. - The refresh token can only be used once to obtain a new session. @@ -1046,7 +1076,7 @@ functions: ``` - id: refresh-session title: 'refreshSession()' - $ref: '@supabase/gotrue-js.GoTrueClient.refreshSession' + $ref: '@supabase/auth-js.GoTrueClient.refreshSession' notes: | - This method will refresh and return a new session whether the current one is expired or not. examples: @@ -1069,7 +1099,7 @@ functions: - id: exchange-code-for-session title: 'exchangeCodeForSession()' - $ref: '@supabase/gotrue-js.GoTrueClient.exchangeCodeForSession' + $ref: '@supabase/auth-js.GoTrueClient.exchangeCodeForSession' notes: | - Used when `flowType` is set to `pkce` in client options. examples: @@ -1090,7 +1120,7 @@ functions: Having a 2nd TOTP factor for recovery frees the user of the burden of having to store their recovery codes somewhere. It also reduces the attack surface since multiple recovery codes are usually generated compared to just having 1 backup TOTP factor. - id: mfa-enroll title: 'mfa.enroll()' - $ref: '@supabase/gotrue-js.GoTrueMFAApi.enroll' + $ref: '@supabase/auth-js.GoTrueMFAApi.enroll' notes: | - Currently, `totp` is the only supported `factorType`. The returned `id` should be used to create a challenge. - To create a challenge, see [`mfa.challenge()`](/docs/reference/javascript/auth-mfa-challenge). @@ -1118,7 +1148,7 @@ functions: ``` - id: mfa-challenge title: 'mfa.challenge()' - $ref: '@supabase/gotrue-js.GoTrueMFAApi.challenge' + $ref: '@supabase/auth-js.GoTrueMFAApi.challenge' notes: | - An [enrolled factor](/docs/reference/javascript/auth-mfa-enroll) is required before creating a challenge. - To verify a challenge, see [`mfa.verify()`](/docs/reference/javascript/auth-mfa-verify). @@ -1134,7 +1164,7 @@ functions: ``` - id: mfa-verify title: 'mfa.verify()' - $ref: '@supabase/gotrue-js.GoTrueMFAApi.verify' + $ref: '@supabase/auth-js.GoTrueMFAApi.verify' notes: | - To verify a challenge, please [create a challenge](/docs/reference/javascript/auth-mfa-challenge) first. examples: @@ -1151,7 +1181,7 @@ functions: ``` - id: mfa-challenge-and-verify title: 'mfa.challengeAndVerify()' - $ref: '@supabase/gotrue-js.GoTrueMFAApi.challengeAndVerify' + $ref: '@supabase/auth-js.GoTrueMFAApi.challengeAndVerify' notes: | - An [enrolled factor](/docs/reference/javascript/auth-mfa-enroll) is required before invoking `challengeAndVerify()`. - Executes [`mfa.challenge()`](/docs/reference/javascript/auth-mfa-challenge) and [`mfa.verify()`](/docs/reference/javascript/auth-mfa-verify) in a single step. @@ -1168,7 +1198,7 @@ functions: ``` - id: mfa-unenroll title: 'mfa.unenroll()' - $ref: '@supabase/gotrue-js.GoTrueMFAApi.unenroll' + $ref: '@supabase/auth-js.GoTrueMFAApi.unenroll' examples: - id: unenroll-a-factor name: Unenroll a factor @@ -1181,7 +1211,7 @@ functions: ``` - id: mfa-get-authenticator-assurance-level title: 'mfa.getAuthenticatorAssuranceLevel()' - $ref: '@supabase/gotrue-js.GoTrueMFAApi.getAuthenticatorAssuranceLevel' + $ref: '@supabase/auth-js.GoTrueMFAApi.getAuthenticatorAssuranceLevel' notes: | - Authenticator Assurance Level (AAL) is the measure of the strength of an authentication mechanism. - In Supabase, having an AAL of `aal1` refers to having the 1st factor of authentication such as an email and password or OAuth sign-in while `aal2` refers to the 2nd factor of authentication such as a time-based, one-time-password (TOTP). @@ -1221,7 +1251,7 @@ functions: - id: get-user-by-id title: 'getUserById()' - $ref: '@supabase/gotrue-js.GoTrueAdminApi.getUserById' + $ref: '@supabase/auth-js.GoTrueAdminApi.getUserById' notes: | - Fetches the user object from the database based on the user's id. - The `getUserById()` method requires the user's id which maps to the `auth.users.id` column. @@ -1236,7 +1266,7 @@ functions: - id: list-users title: 'listUsers()' - $ref: '@supabase/gotrue-js.GoTrueAdminApi.listUsers' + $ref: '@supabase/auth-js.GoTrueAdminApi.listUsers' notes: | - Defaults to return 50 users per page. examples: @@ -1259,7 +1289,7 @@ functions: ``` - id: create-user title: 'createUser()' - $ref: '@supabase/gotrue-js.GoTrueAdminApi.createUser' + $ref: '@supabase/auth-js.GoTrueAdminApi.createUser' notes: | - To confirm the user's email address or phone number, set `email_confirm` or `phone_confirm` to true. Both arguments default to false. - `createUser()` will not send a confirmation email to the user. You can use [`inviteUserByEmail()`](/docs/reference/javascript/auth-admin-inviteuserbyemail) if you want to send them an email invite instead. @@ -1296,7 +1326,7 @@ functions: ``` - id: delete-user title: 'deleteUser()' - $ref: '@supabase/gotrue-js.GoTrueAdminApi.deleteUser' + $ref: '@supabase/auth-js.GoTrueAdminApi.deleteUser' notes: | - The `deleteUser()` method requires the user's ID, which maps to the `auth.users.id` column. examples: @@ -1312,11 +1342,11 @@ functions: - id: invite-user-by-email title: 'inviteUserByEmail()' - $ref: '@supabase/gotrue-js.GoTrueAdminApi.inviteUserByEmail' + $ref: '@supabase/auth-js.GoTrueAdminApi.inviteUserByEmail' notes: | - Sends an invite link to the user's email address. - The `inviteUserByEmail()` method is typically used by administrators to invite users to join the application. - - Note that PKCE is not supported when using `inviteUserByEmail`. This is because the browser initiating the invite is often different from the browser acecpting the invite which makes it difficult to provide the security guarantees required of the PKCE flow. + - Note that PKCE is not supported when using `inviteUserByEmail`. This is because the browser initiating the invite is often different from the browser accepting the invite which makes it difficult to provide the security guarantees required of the PKCE flow. examples: - id: invite-a-user name: Invite a user @@ -1328,7 +1358,7 @@ functions: - id: reset-password-for-email title: 'resetPasswordForEmail()' - $ref: '@supabase/gotrue-js.GoTrueClient.resetPasswordForEmail' + $ref: '@supabase/auth-js.GoTrueClient.resetPasswordForEmail' notes: | - The password reset flow consist of 2 broad steps: (i) Allow the user to login via the password reset link; (ii) Update the user's password. - The `resetPasswordForEmail()` only sends a password reset link to the user's email. @@ -1386,7 +1416,7 @@ functions: - id: generate-link title: 'generateLink()' - $ref: '@supabase/gotrue-js.GoTrueAdminApi.generateLink' + $ref: '@supabase/auth-js.GoTrueAdminApi.generateLink' notes: | - The following types can be passed into `generateLink()`: `signup`, `magiclink`, `invite`, `recovery`, `email_change_current`, `email_change_new`, `phone_change`. - `generateLink()` only generates the email link for `email_change_email` if the **Secure email change** is enabled in your project's [email auth provider settings](/dashboard/project/_/auth/providers). @@ -1455,7 +1485,7 @@ functions: - id: update-user-by-id title: 'updateUserById()' - $ref: '@supabase/gotrue-js.GoTrueAdminApi.updateUserById' + $ref: '@supabase/auth-js.GoTrueAdminApi.updateUserById' examples: - id: updates-a-users-email name: Updates a user's email @@ -1519,7 +1549,7 @@ functions: ``` - id: mfa-list-factors title: 'mfa.listFactors()' - $ref: '@supabase/gotrue-js.GoTrueAdminMFAApi.listFactors' + $ref: '@supabase/auth-js.GoTrueAdminMFAApi.listFactors' examples: - id: list-factors name: List all factors for a user @@ -1530,7 +1560,7 @@ functions: ``` - id: mfa-delete-factor title: 'mfa.deleteFactor()' - $ref: '@supabase/gotrue-js.GoTrueAdminMFAApi.deleteFactor' + $ref: '@supabase/auth-js.GoTrueAdminMFAApi.deleteFactor' examples: - id: delete-factor name: Delete a factor for a user @@ -2515,6 +2545,8 @@ functions: select 'Hello world'; $$ language sql; ``` + + To call Postgres functions on [Read Replicas](/docs/guides/platform/read-replicas), use the `get: true` option. $ref: '@supabase/postgrest-js.PostgrestClient.rpc' examples: - id: call-a-postgres-function-without-arguments @@ -2629,6 +2661,28 @@ functions: description: | Postgres functions that return tables can also be combined with [Filters](/docs/reference/javascript/using-filters) and [Modifiers](/docs/reference/javascript/using-modifiers). hideCodeBlock: true + - id: call-a-read-only-postgres-function + name: Call a read-only Postgres function + code: | + ```ts + const { data, error } = await supabase.rpc('hello_world', { get: true }) + ``` + data: + sql: | + ```sql + create function hello_world() returns text as $$ + select 'Hello world'; + $$ language sql; + ``` + response: | + ```json + { + "data": "Hello world", + "status": 200, + "statusText": "OK" + } + ``` + hideCodeBlock: true - id: using-filters title: Using Filters @@ -4895,7 +4949,7 @@ functions: notes: | - Requires an Authorization header. - Invoke params generally match the [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) spec. - - When you pass in a body to your function, we automatically attach the Content-Type header for `Blob`, `ArrayBuffer`, `File`, `FormData` and `String`. If it doesn't match any of these types we assume the payload is `json`, serialise it and attach the `Content-Type` header as `application/json`. You can override this behaviour by passing in a `Content-Type` header of your own. + - When you pass in a body to your function, we automatically attach the Content-Type header for `Blob`, `ArrayBuffer`, `File`, `FormData` and `String`. If it doesn't match any of these types we assume the payload is `json`, serialize it and attach the `Content-Type` header as `application/json`. You can override this behavior by passing in a `Content-Type` header of your own. - Responses are automatically parsed as `json`, `blob` and `form-data` depending on the `Content-Type` header sent by your function. Responses are parsed as `text` by default. examples: - id: basic-invocation @@ -4961,6 +5015,36 @@ functions: method: 'DELETE' }) ``` + - id: regional-invocation + name: Invoking a Function in the UsEast1 region + description: | + Here are the available regions: + - `FunctionRegion.Any` + - `FunctionRegion.ApNortheast1` + - `FunctionRegion.ApNortheast2` + - `FunctionRegion.ApSouth1` + - `FunctionRegion.ApSoutheast1` + - `FunctionRegion.ApSoutheast2` + - `FunctionRegion.CaCentral1` + - `FunctionRegion.EuCentral1` + - `FunctionRegion.EuWest1` + - `FunctionRegion.EuWest2` + - `FunctionRegion.EuWest3` + - `FunctionRegion.SaEast1` + - `FunctionRegion.UsEast1` + - `FunctionRegion.UsWest1` + - `FunctionRegion.UsWest2` + isSpotlight: true + code: | + ```js + import { createClient, FunctionRegion } from '@supabase/supabase-js' + + const { data, error } = await supabase.functions.invoke('hello', { + body: { foo: 'bar' }, + region: FunctionRegion.UsEast1 + }) + ``` + - id: calling-with-get-verb name: Calling with GET HTTP verb description: | diff --git a/apps/docs/spec/supabase_kt_v1.yml b/apps/docs/spec/supabase_kt_v1.yml index 58eed518bca..114da14f8cd 100644 --- a/apps/docs/spec/supabase_kt_v1.yml +++ b/apps/docs/spec/supabase_kt_v1.yml @@ -2098,7 +2098,7 @@ functions: - **Confirm email** determines if users need to confirm their email address after signing up. - If **Confirm email** is enabled, the return value is the user and you won't be logged in automatically. - If **Confirm email** is disabled, the return value is null and you will be logged in instead. - - When the user confirms their email address, they are redirected to the [`SITE_URL`](https://supabase.com/docs/reference/auth/config#site_url) by default. You can modify your `SITE_URL` or add additional redirect URLs in [your project](https://supabase.com/dashboard/project/_/auth/url-configuration). + - When the user confirms their email address, they are redirected to the [`SITE_URL`](https://supabase.com/docs/guides/auth/concepts/redirect-urls) by default. You can modify your `SITE_URL` or add additional redirect URLs in [your project](https://supabase.com/dashboard/project/_/auth/url-configuration). - To learn how to handle OTP links & OAuth refer to [initializing](/docs/reference/kotlin/initializing) - If signUpWith() is called for an existing confirmed user: - If **Confirm email** is enabled in [your project](https://supabase.com/dashboard/project/_/auth/providers), an obfuscated/fake user object is returned. @@ -2202,7 +2202,7 @@ functions: - If the user doesn't exist, `sendOtpTo()` will signup the user instead. To restrict this behavior, you can set `createUser` to `false`. - If you're using an email, you can configure whether you want the user to receive a magiclink or a OTP. - If you're using phone, you can configure whether you want the user to receive a OTP. - - The magic link's destination URL is determined by the [`SITE_URL`](/docs/reference/auth/config#site_url). + - The magic link's destination URL is determined by the [`SITE_URL`](/docs/guides/auth/concepts/redirect-urls). - See [redirect URLs and wildcards](/docs/guides/auth/overview#redirect-urls-and-wildcards) to add additional redirect URLs to your project. - To learn how to handle OTP links & OAuth refer to [initializing](/docs/reference/kotlin/initializing) - Magic links and OTPs share the same implementation. To send users a one-time code instead of a magic link, [modify the magic link email template](https://supabase.com/dashboard/project/_/auth/templates) to include `{{ .Token }}` instead of `{{ .ConfirmationURL }}`. @@ -2256,7 +2256,7 @@ functions: name: Create a custom url isSpotlight: false description: | - - When the third-party provider successfully authenticates the user, the provider redirects the user to the URL specified in the `redirectUrl` parameter. This parameter defaults to the [`SITE_URL`](/docs/reference/auth/config#site_url). It does not redirect the user immediately after invoking this method. + - When the third-party provider successfully authenticates the user, the provider redirects the user to the URL specified in the `redirectUrl` parameter. This parameter defaults to the [`SITE_URL`](/docs/guides/auth/concepts/redirect-urls). It does not redirect the user immediately after invoking this method. - See [redirect URLs and wildcards](/docs/guides/auth/overview#redirect-urls-and-wildcards) to add additional redirect URLs to your project. - oAuthUrl() provides the URL which needs to be opened in a browser. - The redirectTo URL needs to be setup correctly in your project under Authentication -> URL Configuration -> Redirect URLs. diff --git a/apps/docs/spec/supabase_kt_v2.yml b/apps/docs/spec/supabase_kt_v2.yml index c7880a741e0..3d0a1b44996 100644 --- a/apps/docs/spec/supabase_kt_v2.yml +++ b/apps/docs/spec/supabase_kt_v2.yml @@ -57,7 +57,7 @@ functions: scheme = "deeplink scheme" // On Android only, you can set OAuth and SSO logins to open in a custom tab, rather than an external browser: - defaultExternalAuthAction = ExternalAuthAction.CUSTOM_TABS //defaults to EXTERNAL_BROWSER + defaultExternalAuthAction = ExternalAuthAction.CustomTabs() //defaults to ExternalAuthAction.ExternalBrowser } ``` 4. **Call platform specific function on startup** \ @@ -80,6 +80,45 @@ functions: } ``` That's it! If you already implemented deeplinks to handle OTPs and OAuth you don't have to change anything! + params: + - name: supabaseUrl + isOptional: false + type: String + description: The unique Supabase URL which is supplied when you create a new project in your project dashboard. + - name: supabaseKey + isOptional: false + type: String + description: The unique Supabase Key which is supplied when you create a new project in your project dashboard. + - name: builder + isOptional: true + type: SupabaseClientBuilder.() -> Unit + description: Apply additional configuration and install plugins. + subContent: + - name: useHTTPS + isOptional: true + type: Boolean + description: Whether to use HTTPS for network requests. Will be set automatically depending on your Supabase url, but can be changed manually. + - name: httpEngine + isOptional: true + type: HttpClientEngine? + description: Custom Ktor Client engine. Shouldn't be set manually as Ktor uses an engine from your dependencies, but can be set to a MockEngine for tests. + - name: ignoreModulesInUrl + isOptional: true + type: Boolean + description: Whether to ignore if [supabaseUrl] contains modules like 'realtime' or 'auth'. If false, an exception will be thrown. Defaults to false. + - name: requestTimeout + isOptional: true + type: Duration + description: Timeout after network requests throw a `HttpRequestTimeoutException`. Defaults to 10 seconds. + - name: defaultLogLevel + isOptional: true + type: LogLevel + description: The default log level used for plugins. Can be overridden per plugin. Defaults to `LogLevel.INFO`. + - name: defaultSerializer + isOptional: true + type: SupabaseSerializer + description: The default serializer used to serialize and deserialize custom data types. Defaults to `KotlinXSerializer`. + examples: - id: initialize-client name: Initialize Client @@ -275,6 +314,19 @@ functions: - When calling a `decode` method, you have to provide a [serializable class](/docs/reference/kotlin/installing#serialization) as the type parameter. - You can provide a `Columns` object to select specific columns. - You can provide a [filter](/docs/reference/kotlin/using-filters) block to filter the results + params: + - name: columns + isOptional: true + type: Columns + description: The columns to retrieve, defaults to `Columns.ALL`. You can also use `Columns.list`, `Columns.type` or `Columns.raw` to specify the columns. + - name: head + isOptional: true + type: Boolean + description: If true, select will delete the selected data. + - name: request + isOptional: true + type: PostgrestRequestBuilder.() -> Unit + description: Additional configuration & filtering for the request. examples: - id: getting-your-data name: Getting your data @@ -340,10 +392,10 @@ functions: code: | ```kotlin val count = supabase.from("countries") - .select(head = true) { - count(Count.EXACT) - } - .count()!! + .select { + count(Count.EXACT) + } + .count()!! ``` - id: querying-json-data name: Querying JSON data @@ -371,6 +423,16 @@ functions: - When calling an `insert` method, you have to provide a [serializable value](/docs/reference/kotlin/installing#serialization). - By default, every time you run `insert()`, the client library will make a `select` to return the full record. This is convenient, but it can also cause problems if your policies are not configured to allow the `select` operation. + params: + - name: value # This function has two signatures: "value: T" and "values: List" + isOptional: false + type: T or List + description: The value(s) you want to insert. `T` can be any serializable type. + - name: request + isOptional: true + type: PostgrestRequestBuilder.() -> Unit + description: Additional configuration & filtering for the request. + examples: - id: create-a-record name: Create a record @@ -407,6 +469,15 @@ functions: notes: | - `update()` should always be combined with a [filter](/docs/reference/kotlin/using-filters) block to avoid updating all records. - When calling `insert` or `update`, you have to provide a [serializable value](/docs/reference/kotlin/installing#serialization) in the function parameter. + params: + - name: value + type: T or PostgrestUpdate.() -> Unit = {} + isOptional: false + description: The new value, can be either a serializable value or PostgrestUpdate DSL where you can set new values per column. + - name: request + isOptional: true + type: PostgrestRequestBuilder.() -> Unit + description: Additional configuration & filtering for the request. examples: - id: updating-your-data name: Updating your data @@ -500,6 +571,27 @@ functions: - Primary keys must be natural, not surrogate. There are however, [workarounds](https://github.com/PostgREST/postgrest/issues/1118) for surrogate primary keys. - If you need to insert new data and update existing data at the same time, use [Postgres triggers](https://github.com/supabase/postgrest-js/issues/173#issuecomment-825124550). - When calling `insert` or `update`, you have to provide a [serializable value](/docs/reference/kotlin/installing#serialization) in the function parameter. + params: + - name: value # This function has two signatures: "value: T" and "values: List" + isOptional: false + type: T or List + description: The value(s) you want to insert. `T` can be any serializable type. + - name: onConflict + isOptional: true + type: String? + description: Comma-separated UNIQUE column(s) to specify how duplicate rows are determined. Two rows are duplicates if all the `onConflict` columns are equal. + - name: defaultToNull + isOptional: true + type: Boolean + description: Make missing fields default to `null`. Otherwise, use the default value for the column. This only applies when inserting new rows, not when merging with existing rows under + - name: ignoreDuplicates + isOptional: true + type: Boolean + description: If `true`, duplicate rows are ignored. If `false`, duplicate rows are merged with existing rows. + - name: request + isOptional: true + type: PostgrestRequestBuilder.() -> Unit + description: Additional configuration & filtering for the request. examples: - id: upsert-your-data name: Upsert your data @@ -542,6 +634,11 @@ functions: rows visible through `SELECT` policies are deleted. Note that by default no rows are visible, so you need at least one `SELECT`/`ALL` policy that makes the rows visible. + params: + - name: request + isOptional: true + type: PostgrestRequestBuilder.() -> Unit + description: Additional configuration & filtering for the request. examples: - id: delete-records name: Delete records @@ -578,6 +675,23 @@ functions: It's especially useful when the logic rarely changes - like password resets and updates. - When calling `rpc` with parameters, you have to provide a [serializable value](/docs/reference/kotlin/installing#serialization) in the function parameter. + params: + - name: function + isOptional: false + type: String + description: The name of the function + - name: parameters + isOptional: true # Not directly `optional`, as there are two overloads one with and one without `parameters`. + type: T + description: Parameters to pass to the function. T can be any serializable type. + - name: method + isOptional: true + type: RpcMethod + description: The HTTP method to use. Defaults to `RpcMethod.POST` + - name: request + isOptional: true + type: PostgrestRequestBuilder.() -> Unit + description: Additional configuration & filtering for the request. examples: - id: call-a-stored-procedure name: Call a stored procedure @@ -758,7 +872,15 @@ functions: title: or() description: | Finds all rows satisfying at least one of the filters. - notes: | + params: + - name: negate + isOptional: true + type: Boolean + description: If true, negate the entire block. + - name: block + isOptional: false + type: PostgrestFilterBuilder.() -> Unit + description: The block to apply the `or` filter to. examples: - id: with-select name: With `select()` @@ -800,6 +922,19 @@ functions: Finds all rows that don't satisfy the filter. notes: | - `.filterNot()` expects you to use the raw [PostgREST syntax](https://postgrest.org/en/stable/api.html#horizontal-filtering-rows) for the filter names and values. + params: + - name: column + isOptional: false + type: String + description: The column to filter on. + - name: operator + isOptional: false + type: FilterOperator + description: The operator to use for the filter. + - name: value + isOptional: false + type: Any + description: The value to filter with. examples: - id: with-select name: With `select()` @@ -817,6 +952,15 @@ functions: title: eq() description: | Finds all rows whose value on the stated `column` exactly matches the specified `value`. + params: + - name: column + isOptional: false + type: String + description: The column to filter on. + - name: value + isOptional: false + type: Any + description: The value to filter with. examples: - id: with-select name: With `select()` @@ -873,6 +1017,15 @@ functions: title: neq() description: | Finds all rows whose value on the stated `column` doesn't match the specified `value`. + params: + - name: column + isOptional: false + type: String + description: The column to filter on. + - name: value + isOptional: false + type: Any + description: The value to filter with. examples: - id: with-select name: With `select()` @@ -927,6 +1080,15 @@ functions: title: gt() description: | Finds all rows whose value on the stated `column` is greater than the specified `value`. + params: + - name: column + isOptional: false + type: String + description: The column to filter on. + - name: value + isOptional: false + type: Any + description: The value to filter with. examples: - id: with-select name: With `select()` @@ -983,6 +1145,15 @@ functions: title: gte() description: | Finds all rows whose value on the stated `column` is greater than or equal to the specified `value`. + params: + - name: column + isOptional: false + type: String + description: The column to filter on. + - name: value + isOptional: false + type: Any + description: The value to filter with. examples: - id: with-select name: With `select()` @@ -1039,6 +1210,15 @@ functions: title: lt() description: | Finds all rows whose value on the stated `column` is less than the specified `value`. + params: + - name: column + isOptional: false + type: String + description: The column to filter on. + - name: value + isOptional: false + type: Any + description: The value to filter with. examples: - id: with-select name: With `select()` @@ -1095,6 +1275,15 @@ functions: title: lte() description: | Finds all rows whose value on the stated `column` is less than or equal to the specified `value`. + params: + - name: column + isOptional: false + type: String + description: The column to filter on. + - name: value + isOptional: false + type: Any + description: The value to filter with. examples: - id: with-select name: With `select()` @@ -1151,6 +1340,15 @@ functions: title: like() description: | Finds all rows whose value in the stated `column` matches the supplied `pattern` (case sensitive). + params: + - name: column + isOptional: false + type: String + description: The column to filter on. + - name: pattern + isOptional: false + type: String + description: The pattern to match with. examples: - id: with-select name: With `select()` @@ -1207,6 +1405,15 @@ functions: title: ilike() description: | Finds all rows whose value in the stated `column` matches the supplied `pattern` (case insensitive). + params: + - name: column + isOptional: false + type: String + description: The column to filter on. + - name: pattern + isOptional: false + type: String + description: The pattern to match with. examples: - id: with-select name: With `select()` @@ -1265,6 +1472,15 @@ functions: A check for exact equality (null, true, false), finds all rows whose value on the stated `column` exactly match the specified `value`. `is_` and `in_` filter methods are suffixed with `_` to avoid collisions with reserved keywords. + params: + - name: column + isOptional: false + type: String + description: The column to filter on. + - name: value + isOptional: false + type: Boolean? + description: The value to filter with. examples: - id: with-select name: With `select()` @@ -1321,6 +1537,15 @@ functions: title: in_() description: | Finds all rows whose value on the stated `column` is found on the specified `values`. + params: + - name: column + isOptional: false + type: String + description: The column to filter on. + - name: values + isOptional: false + type: List + description: The values to filter with. examples: - id: with-select name: With `select()` @@ -1375,6 +1600,17 @@ functions: - id: contains title: contains() + description: | + Only relevant for jsonb, array, and range columns. Match only rows where `column` contains every element appearing in `value`. + params: + - name: column + isOptional: false + type: String + description: The jsonb, array, or range column to filter on + - name: value + isOptional: false + type: List + description: The jsonb, array, or range value to filter with examples: - id: with-select name: With `select()` @@ -1431,6 +1667,15 @@ functions: title: rangeLt() description: | Only relevant for range columns. Match only rows where every element in column is less than any element in range. + params: + - name: column + isOptional: false + type: String + description: The column to filter on. + - name: values + isOptional: false + type: Pair + description: The values to filter with. examples: - id: with-select name: With `select()` @@ -1486,7 +1731,15 @@ functions: title: rangeGt() description: | Only relevant for range columns. Match only rows where every element in column is greater than any element in range. - + params: + - name: column + isOptional: false + type: String + description: The column to filter on. + - name: values + isOptional: false + type: Pair + description: The values to filter with. examples: - id: with-select name: With `select()` @@ -1542,6 +1795,15 @@ functions: title: rangeGte() description: | Only relevant for range columns. Match only rows where every element in column is either contained in range or greater than any element in range. + params: + - name: column + isOptional: false + type: String + description: The column to filter on. + - name: values + isOptional: false + type: Pair + description: The values to filter with. examples: - id: with-select name: With `select()` @@ -1597,7 +1859,15 @@ functions: title: rangeLte() description: | Only relevant for range columns. Match only rows where every element in column is either contained in range or less than any element in range. - + params: + - name: column + isOptional: false + type: String + description: The column to filter on. + - name: values + isOptional: false + type: Pair + description: The values to filter with. $ref: '@supabase/postgrest-js.PostgrestFilterBuilder.rangeLte' examples: - id: with-select @@ -1654,7 +1924,15 @@ functions: title: rangeAdjacent() description: | Only relevant for range columns. Match only rows where column is mutually exclusive to range and there can be no element between the two ranges. - + params: + - name: column + isOptional: false + type: String + description: The column to filter on. + - name: values + isOptional: false + type: Pair + description: The values to filter with. examples: - id: with-select name: With `select()` @@ -1707,7 +1985,15 @@ functions: $ref: '@supabase/postgrest-js.PostgrestFilterBuilder.overlaps' description: | Only relevant for array and range columns. Match only rows where column and value have an element in common. - + params: + - name: column + isOptional: false + type: String + description: The column to filter on. + - name: values + isOptional: false + type: List + description: The values to filter with. examples: - id: on-array-columns name: On array columns @@ -1806,6 +2092,23 @@ functions: Only relevant for text and tsvector columns. Match only rows where `column` matches the query string in `query`. For more information, see [Postgres full text search](https://supabase.com/docs/guides/database/full-text-search). + params: + - name: column + isOptional: false + type: String + description: The text or tsvector column to filter on + - name: query + isOptional: false + type: String + description: The query text to match with + - name: textSearchType + isOptional: true + type: TextSearchType + description: The type of text search to use. Defaults to `TextSearchType.NONE`. + - name: config + isOptional: true + type: String + description: The text search configuration to use. examples: - id: text-search name: Text search @@ -1878,6 +2181,19 @@ functions: $ref: '@supabase/postgrest-js.PostgrestFilterBuilder.filter' notes: | filter() expects you to use the raw PostgREST syntax for the filter values. + params: + - name: column + isOptional: false + type: String + description: The column to filter on. + - name: operator + isOptional: false + type: FilterOperator + description: The operator to use for the filter. + - name: value + isOptional: false + type: Any + description: The value to filter with. examples: - id: with-select name: With `select()` @@ -1990,6 +2306,11 @@ functions: - id: db-modifiers-select title: select() $ref: '@supabase/postgrest-js.PostgrestTransformBuilder.select' + params: + - name: columns + isOptional: true + type: Columns + description: The columns to select. examples: - id: with-upsert name: With `upsert()` @@ -2031,6 +2352,23 @@ functions: description: | Order the query result by column. $ref: '@supabase/postgrest-js.PostgrestTransformBuilder.order' + params: + - name: column + isOptional: false + type: String + description: The column to order by. + - name: order + isOptional: false + type: Order + description: The order to use. + - name: nullsFirst + isOptional: true + type: Boolean + description: Whether to order nulls first. + - name: referencedTable + isOptional: true + type: String + description: The foreign table to order by. examples: - id: with-select name: With `select()` @@ -2089,7 +2427,7 @@ functions: supabase.from("countries").select( columns = columns ) { - order(column = "id", order = Order.ASCENDING, foreignTable = "cities") + order(column = "id", order = Order.ASCENDING, referencedTable = "cities") } ``` data: @@ -2149,6 +2487,15 @@ functions: description: | Limit the query result by count. $ref: '@supabase/postgrest-js.PostgrestTransformBuilder.limit' + params: + - name: count + isOptional: false + type: Long + description: The number of rows to limit the result to. + - name: referencedTable + isOptional: true + type: String + description: The foreign table to limit by. examples: - id: with-select name: With `select()` @@ -2198,7 +2545,7 @@ functions: supabase.from("countries").select( columns = columns ) { - limit(count = 1, foreignTable = "cities") + limit(count = 1, referencedTable = "cities") } ``` data: @@ -2245,6 +2592,19 @@ functions: title: range() description: | Limit the query result by from and to inclusively. + params: + - name: from + isOptional: false + type: Long + description: The start of the range. + - name: to + isOptional: false + type: Long + description: The end of the range. + - name: referencedTable + isOptional: true + type: String + description: The foreign table to limit by. examples: - id: with-select name: With `select()` @@ -2372,6 +2732,31 @@ functions: It's best to only enable this for testing environments but if you wish to enable it for production you can provide additional protection by using a `pre-request` function. Follow the [Performance Debugging Guide](/docs/guides/api/rest/debugging-performance) to enable the functionality on your project. + params: + - name: analyze + isOptional: true + type: Boolean + description: If `true`, the query will be executed and the actual run time will be returned + - name: verbose + isOptional: true + type: Boolean + description: If `true`, the query identifier will be returned and `data` will include the output columns of the query + - name: settings + isOptional: true + type: Boolean + description: If `true`, include information on configuration parameters that affect query planning + - name: buffers + isOptional: true + type: Boolean + description: If `true`, include information on buffer usage + - name: wal + isOptional: true + type: Boolean + description: If `true`, include information on WAL record generation + - name: format + isOptional: true + type: String + description: The format of the output, can be `"text"` (default) or `"json"` examples: - id: get-execution-plan name: Get the execution plan @@ -2426,11 +2811,41 @@ functions: - **Confirm email** determines if users need to confirm their email address after signing up. - If **Confirm email** is enabled, the return value is the user and you won't be logged in automatically. - If **Confirm email** is disabled, the return value is null and you will be logged in instead. - - When the user confirms their email address, they are redirected to the [`SITE_URL`](https://supabase.com/docs/reference/auth/config#site_url) by default. You can modify your `SITE_URL` or add additional redirect URLs in [your project](https://supabase.com/dashboard/project/_/auth/url-configuration). + - When the user confirms their email address, they are redirected to the [`SITE_URL`](https://supabase.com/docs/guides/auth/concepts/redirect-urls) by default. You can modify your `SITE_URL` or add additional redirect URLs in [your project](https://supabase.com/dashboard/project/_/auth/url-configuration). - To learn how to handle OTP links & OAuth refer to [initializing](/docs/reference/kotlin/initializing) - If signUpWith() is called for an existing confirmed user: - When both **Confirm email** and **Confirm phone** (even when phone provider is disabled) are enabled in [your project](/dashboard/project/_/auth/providers), an obfuscated/fake user object is returned. - When either **Confirm email** or **Confirm phone** (even when phone provider is disabled) is disabled, the error message, `User already registered` is returned. + params: + - name: provider + isOptional: false + type: Email or Phone + description: The provider to use for the user's authentication. In this case `Email` or `Phone`. + - name: redirectUrl + isOptional: true + type: String? + description: The redirect url to use. If you don't specify this, the platform specific will be used, like deeplinks on android. + - name: config + isOptional: true + type: Email.Config.() -> Unit or Phone.Config.() -> Unit + description: The configuration for signing in with `Email` or `Phone`. + subContent: + - name: password + isOptional: false + type: String + description: The user's password + - name: email/phone + isOptional: false + type: String + description: The user's email or phone. + - name: captchaToken + isOptional: true + type: String? + description: The captcha token when having captcha enabled. + - name: data + isOptional: true + type: JsonObject? + description: Extra user data to pass in. examples: - id: sign-up-email name: Sign up with email @@ -2442,8 +2857,19 @@ functions: password = "example-password" } ``` - - id: sign-up-phone - name: Sign up with a phone number + - id: sign-up-phone-whatsapp + name: Sign up with a phone number and password (whatsapp) + isSpotlight: true + code: | + ```kotlin + val user = supabase.auth.signUpWith(Phone) { + phone = "+4912345679" + password = "example-password" + channel = Phone.Channel.WHATSAPP + } + ``` + - id: sign-up-phone-sms + name: Sign up with a phone number and password (sms) isSpotlight: true code: | ```kotlin @@ -2477,12 +2903,69 @@ functions: password = "example-password" } ``` + - id: sign-in-anonymously + title: 'signInAnonymously()' + notes: | + - Creates an anonymous user. + - The user can be retrieved by calling `supabase.auth.currentUserOrNull()`. + - It is recommended to set up captcha for anonymous sign-ins to prevent abuse. You can pass in the captcha token in the `options` param. + params: + - name: captchaToken + isOptional: true + type: String? + description: The captcha token when having captcha enabled. + - name: data + isOptional: true + type: JsonObject? or T + description: Extra user data to pass in. + examples: + - id: sign-in-anonymously + name: Create an anonymous user + isSpotlight: true + code: | + ```kotlin + supabase.auth.signInAnonymously(captchaToken = "token") + ``` + - id: sign-in-anonymously-with-user-metadata + name: Create an anonymous user with custom user metadata + isSpotlight: false + code: | + ```kotlin + supabase.auth.signInAnonymously(data = customUserData) + ``` + - id: sign-in-with-password title: 'signInWith()' $ref: '@supabase/gotrue-js.GoTrueClient.signInWithPassword' notes: | Logs in an existing user. - Requires either an email and password or a phone number and password. + params: + - name: provider + isOptional: false + type: Email or Phone + description: The provider to use for the user's authentication, in this case `Email` or `Phone`. + - name: redirectUrl + isOptional: true + type: String? + description: The redirect url to use. If you don't specify this, the platform specific will be used, like deeplinks on android. + - name: config + isOptional: true + type: Email.Config.() -> Unit or Phone.Config.() -> Unit + description: The configuration for signing in with `Email` or `Phone`. + subContent: + - name: password + isOptional: false + type: String + description: The user's password + - name: email/phone + isOptional: false + type: String + description: The user's email or phone. + - name: captchaToken + isOptional: true + type: String? + description: The captcha token when having captcha enabled. examples: - id: sign-in-with-email-and-password name: Sign in with email and password @@ -2504,9 +2987,46 @@ functions: password = "example-password" } ``` + - id: sign-in-with-id-token + title: 'signInWithIdToken' + params: + - name: provider + isOptional: false + type: IDToken + description: The provider to use for the user's authentication. For this method it will be `IDToken`. + - name: redirectUrl + isOptional: true + type: String? + description: The redirect url to use. If you don't specify this, the platform specific will be used, like deeplinks on android. + - name: config + isOptional: true + type: IDToken.Config.() -> Unit + description: The configuration for signing in with an id token. + subContent: + - name: idToken + isOptional: false + type: String + description: OIDC ID token issued by the specified provider. The `iss` claim in the ID token must match the supplied provider. Some ID tokens contain an `at_hash` which require that you provide an `access_token` value to be accepted properly. If the token contains a `nonce` claim you must supply the nonce used to obtain the ID token. + - name: provider + isOptional: false + type: IDTokenProvider + description: The provider of the id token. Only `Apple`, `Google`, `Facebook` and `Azure` are supported. + - name: accessToken + isOptional: true + type: String? + description: If the ID token contains an `at_hash` claim, then the hash of this value is compared to the value in the ID token. + - name: nonce + isOptional: true + type: String? + description: If the ID token contains a `nonce` claim, then the hash of this value is compared to the value in the ID token. + - name: captchaToken + isOptional: true + type: String? + description: The captcha token when having captcha enabled. + + examples: - id: sign-in-with-id-token - name: Sign in with id token - isSpotlight: false + name: 'Sign In using ID Token' code: | ```kotlin supabase.auth.signInWith(IDToken) { @@ -2519,7 +3039,6 @@ functions: } } ``` - - id: sign-in-with-otp title: 'signInWith(OTP)' $ref: '@supabase/gotrue-js.GoTrueClient.signInWithOtp' @@ -2531,10 +3050,32 @@ functions: - The method `signUpWith(OTP)` does the exact same thing as `signInWith(OTP)`, so it doesn't matter which one you use. - If you're using an email, you can configure whether you want the user to receive a magiclink or a OTP. - If you're using phone, you can configure whether you want the user to receive a OTP. - - The magic link's destination URL is determined by the [`SITE_URL`](/docs/reference/auth/config#site_url). + - The magic link's destination URL is determined by the [`SITE_URL`](/docs/guides/auth/concepts/redirect-urls). - See [redirect URLs and wildcards](/docs/guides/auth/overview#redirect-urls-and-wildcards) to add additional redirect URLs to your project. - To learn how to handle OTP links & OAuth refer to [initializing](/docs/reference/kotlin/initializing) - Magic links and OTPs share the same implementation. To send users a one-time code instead of a magic link, [modify the magic link email template](https://supabase.com/dashboard/project/_/auth/templates) to include `{{ .Token }}` instead of `{{ .ConfirmationURL }}`. + params: + - name: provider + isOptional: false + type: OTP + description: The provider to use for the user's authentication, in this case `OTP`. + - name: redirectUrl + isOptional: true + type: String? + description: The redirect url to use. If you don't specify this, the platform specific will be used, like deeplinks on android. + - name: config + isOptional: true + type: OTP.Config.() -> Unit + description: The configuration for signing in with `OTP`. + subContent: + - name: email/phone + isOptional: false + type: String + description: The user's email or phone. + - name: captchaToken + isOptional: true + type: String? + description: The captcha token when having captcha enabled. examples: - id: sign-in-with-email name: Sign in with email @@ -2563,6 +3104,28 @@ functions: - This method is used for signing in using a third-party provider. - Supabase supports many different [third-party providers](https://supabase.com/docs/guides/auth#providers). - To learn how to handle OTP links & OAuth refer to [initializing](/docs/reference/kotlin/initializing) + params: + - name: provider + isOptional: false + type: OAuthProvider + description: The OAuth provider to use for the user's authentication, for example `Google` or `Github`. + - name: redirectUrl + isOptional: true + type: String? + description: The redirect url to use. If you don't specify this, the platform specific will be used, like deeplinks on android. + - name: config + isOptional: true + type: ExternalAuthConfig.() -> Unit + description: The configuration for signing in with an OAuth provider. + subContent: + - name: scopes + isOptional: true + type: MutableList + description: The scopes to request from the OAuth provider. + - name: queryParams + isOptional: true + type: MutableMap + description: Additional query parameters to use. examples: - id: sign-in-using-a-third-party-provider name: Sign in using a third-party provider @@ -2585,7 +3148,7 @@ functions: name: Create a custom url isSpotlight: false description: | - - When the third-party provider successfully authenticates the user, the provider redirects the user to the URL specified in the `redirectUrl` parameter. This parameter defaults to the [`SITE_URL`](/docs/reference/auth/config#site_url). It does not redirect the user immediately after invoking this method. + - When the third-party provider successfully authenticates the user, the provider redirects the user to the URL specified in the `redirectUrl` parameter. This parameter defaults to the [`SITE_URL`](/docs/guides/auth/concepts/redirect-urls). It does not redirect the user immediately after invoking this method. - See [redirect URLs and wildcards](/docs/guides/auth/overview#redirect-urls-and-wildcards) to add additional redirect URLs to your project. - getOAuthUrl() provides the URL which needs to be opened in a browser. - The redirectTo URL needs to be setup correctly in your project under Authentication -> URL Configuration -> Redirect URLs. @@ -2616,7 +3179,28 @@ functions: - Mapping specific user email addresses with an identity provider. - Using different hints to identity the identity provider to be used by the user, like a company-specific page, IP address or other tracking information. - To learn how to handle OTP links & OAuth refer to [initializing](/docs/reference/kotlin/initializing) - + params: + - name: provider + isOptional: false + type: SSO + description: The OAuth provider to use for the user's authentication, in this case `SSO`. + - name: redirectUrl + isOptional: true + type: String? + description: The redirect url to use. If you don't specify this, the platform specific will be used, like deeplinks on android. + - name: config + isOptional: true + type: ExternalAuthConfig.() -> Unit + description: The configuration for signing in with an OAuth provider. + subContent: + - name: providerId/domain + isOptional: false + type: String + description: The providerId or domain. + - name: captchaToken + isOptional: true + type: String? + description: The captcha token when having captcha enabled. examples: - id: sign-in-with-domain name: Sign in with email domain @@ -2640,7 +3224,7 @@ functions: // Useful when you need to map a user's sign in request according // to different rules that can't use email domains. - supabase.auth.signInWith(SSO){ + supabase.auth.signInWith(SSO) { providerId = "21648a9d-8d5a-4555-a9d1-d6375dc14e92" } @@ -2652,6 +3236,11 @@ functions: notes: | Logs out the current user. - In order to use the `signOut()` method, the user needs to be signed in first. + params: + - name: scope + isOptional: true + type: SignOutScope + description: The scope of the sign-out. examples: - id: sign-out name: Sign out @@ -2680,6 +3269,23 @@ functions: notes: | - Verifying an OTP is done through either `verifyPhoneOtp` or `verifyEmailOtp`. - The verification type used should be determined based on the corresponding auth method called before using `verifyPhoneOtp`/`verifyEmailOtp` to sign up / sign-in a user. + params: + - name: type + isOptional: false + type: OtpType.Email or OtpType.Phone + description: The OTP type. Depending on the type, an email or phone has to be specified as parameter. + - name: email/phone + isOptional: false + type: String + description: The email or phone number, depending on which type you specified. + - name: token + isOptional: false + type: String + description: The token to verify. + - name: captchaToken + isOptional: true + type: String? + description: The captcha token when having captcha enabled. examples: - id: verify-email-otp(otp) name: Verify an Email OTP @@ -2711,7 +3317,7 @@ functions: title: 'reauthenticate()' $ref: '@supabase/gotrue-js.GoTrueClient.reauthenticate' notes: | - - This method is used together with `modifyUser()` when a user's password needs to be updated. + - This method is used together with `updateUser()` when a user's password needs to be updated. - This method will send a nonce to the user's email. If the user doesn't have a confirmed email address, the method will send the nonce to the user's confirmed phone number instead. examples: - id: send-reauthentication-nonce @@ -2730,6 +3336,19 @@ functions: - Passwordless sign-ins can be resent by calling the `signInWith(OTP)` method again. - Password recovery emails can be resent by calling the `resetPasswordForEmail()` method again. - This method will only resend an email or phone OTP to the user if there was an initial signup, email change or phone change request being made. + params: + - name: type + isOptional: false + type: OtpType.Email or OtpType.Phone + description: The OTP type. Depending on the type, an email or phone has to be specified as parameter. + - name: email/phone + isOptional: false + type: String + description: The email or phone number, depending on which type you specified. + - name: captchaToken + isOptional: true + type: String? + description: The captcha token when having captcha enabled. examples: - id: resend-email-signup-confirmation name: Resend an email signup confirmation @@ -2780,6 +3399,11 @@ functions: - This method gets the user object from the current session. - Fetches the user object from the database instead of local session. - Should be used only when you require the most current user data. For faster results, `getCurrentSessionOrNull()?.user` is recommended. + params: + - name: jwt + isOptional: false + type: String + description: The JWT token. examples: - id: get-the-logged-in-user-with-the-current-existing-session name: Get the logged in user with the current session @@ -2798,13 +3422,46 @@ functions: val user = supabase.auth.retrieveUser("JWT") ``` - id: update-user - title: 'modifyUser()' + title: 'updateUser()' $ref: '@supabase/gotrue-js.GoTrueClient.updateUser' notes: | Modifies the user data. - - In order to use the `modifyUser()` method, the user needs to be signed in first. + - In order to use the `updateUser()` method, the user needs to be signed in first. - By default, email updates sends a confirmation link to both the user's current and new email. To only send a confirmation link to the user's new email, disable **Secure email change** in your project's [email auth provider settings](https://supabase.com/dashboard/project/_/auth/providers). + params: + - name: updateCurrentUser + isOptional: true + type: Boolean + description: Whether to update the local session with the new user. Defaults to `true`. + - name: redirectUrl + isOptional: true + type: String? + description: The redirect url to use. If you don't specify this, the platform specific will be used, like deeplinks on android. + - name: config + isOptional: false + type: UserUpdateBuilder.() -> Unit + subContent: + - name: email + isOptional: true + type: String? + description: The new email. + - name: password + isOptional: true + type: String? + description: The new password. + - name: phone + isOptional: true + type: String? + description: The new phone number. + - name: nonce + isOptional: true + type: String? + description: The nonce sent for reauthentication if the user's password is to be updated. + - name: data + isOptional: true + type: JsonObject + description: The new user data. examples: - id: update-the-email-for-an-authenticated-user name: Update the email for an authenticated user @@ -2812,7 +3469,7 @@ functions: isSpotlight: false code: | ```kotlin - val user = supabase.auth.modifyUser { + val user = supabase.auth.updateUser { email = "newEmail@email.com" } ``` @@ -2821,7 +3478,7 @@ functions: isSpotlight: false code: | ```kotlin - val user = supabase.auth.modifyUser { + val user = supabase.auth.updateUser { password = "secretPassword" } ``` @@ -2830,7 +3487,7 @@ functions: isSpotlight: true code: | ```kotlin - val user = supabase.auth.modifyUser { + val user = supabase.auth.updateUser { data { put("name", "John") } @@ -2860,6 +3517,28 @@ functions: - The user needs to be signed in to call `linkIdentity()`. - If the candidate identity is already linked to the existing user or another user, `linkIdentity()` will fail. - This method works similarly to `signInWith()` using an OAuthProvider. To learn how to handle OTP links & OAuth refer to [initializing](/docs/reference/kotlin/initializing) + params: + - name: provider + isOptional: false + type: OAuthProvider + description: The OAuth provider you want to link the user with. + - name: redirectUrl + isOptional: true + type: String? + description: The redirect url to use. If you don't specify this, the platform specific will be used, like deeplinks on android. + - name: config + isOptional: true + type: ExternalAuthConfigDefaults.() -> Unit + description: Extra configuration. + subContent: + - name: scopes + isOptional: true + type: MutableList + description: The scopes to request from the OAuth provider. + - name: queryParams + isOptional: true + type: MutableMap + description: Additional query parameters to use. examples: - id: link-identity name: Link an identity to a user @@ -2879,6 +3558,15 @@ functions: - The user needs to be signed in to call `unlinkIdentity()`. - The user must have at least 2 identities in order to unlink an identity. - The identity to be unlinked must belong to the user. + params: + - name: identityId + isOptional: false + type: String + description: The id of the OAuth identity + - name: updateLocalUser + isOptional: true + type: Boolean + description: Whether to delete the identity from the local user or not. Defaults to `true`. examples: - id: unlink-identity name: Unlink an identity @@ -2902,6 +3590,11 @@ functions: - `importSession()` takes in a UserSession. - [Refresh token rotation](/docs/reference/auth/config#refresh_token_rotation_enabled) is enabled by default on all projects to guard against replay attacks. - You can configure the [`REFRESH_TOKEN_REUSE_INTERVAL`](https://supabase.com/docs/reference/auth/config#refresh_token_reuse_interval) which provides a short window in which the same refresh token can be used multiple times in the event of concurrency or offline issues. + params: + - name: session + isOptional: false + type: UserSession + description: The session to set. examples: - id: refresh-the-session name: Set local session @@ -2918,6 +3611,11 @@ functions: This method will refresh the session whether the current one is expired or not. - This is done automatically, but can be disabled in the Auth config. + params: + - name: refreshToken + isOptional: false + type: String + description: The refresh token to use. examples: - id: refresh-current-session name: Refresh current session @@ -2983,14 +3681,27 @@ functions: Sends a password reset request to the given email address. - The password reset flow consist of 2 broad steps: (i) Allow the user to login via the password reset link; (ii) Update the user's password. - The `resetPasswordForEmail()` only sends a password reset link to the user's email. - To update the user's password, see [`modifyUser()`](/docs/reference/kotlin/auth-updateuser). + To update the user's password, see [`updateUser()`](/docs/reference/kotlin/auth-updateuser). - The user gets redirected back to your app, assuming you setup [OTP handling](/docs/reference/kotlin/initializing) - - After the user has been redirected successfully, prompt them for a new password and call `modifyUser()`: + - After the user has been redirected successfully, prompt them for a new password and call `updateUser()`: ```kotlin - supabase.auth.modifyUser { + supabase.auth.updateUser { password = "1234567" } ``` + params: + - name: email + isOptional: false + type: String + description: The email to send the password reset email to. + - name: redirectUrl + isOptional: true + type: String? + description: The redirect url to use. If you don't specify this, the platform specific will be used, like deeplinks on android. + - name: captchaToken + isOptional: true + type: String? + description: The captcha token when having captcha enabled. examples: - id: send-password-reset-email name: Send password reset email @@ -3004,6 +3715,15 @@ functions: $ref: '@supabase/gotrue-js.GoTrueClient.exchangeCodeForSession' notes: | - Used when `flowType` is set to `FlowType.PKCE` in the Auth configuration. + params: + - name: code + isOptional: false + type: String + description: The code to exchange. + - name: saveSession + isOptional: true + type: Boolean + description: Whether to save the session. Defaults to true. examples: - id: exchange-auth-code name: Exchange Auth Code @@ -3029,6 +3749,19 @@ functions: - To create a challenge, see [`mfa.createChallenge()`](/docs/reference/kotlin/auth-mfa-challenge). - To verify a challenge, see [`mfa.verifyChallenge()`](/docs/reference/kotlin/auth-mfa-verify). - To create and verify a challenge in a single step, see [`mfa.createChallengeAndVerify()`](/docs/reference/kotlin/auth-mfa-challengeandverify). + params: + - name: factorType + isOptional: false + type: FactorType + description: The type of MFA factor to enroll. Currently only supports `FactorType.TOTP`. + - name: issuer + isOptional: true + type: String? + description: Domain which the user is enrolling with. + - name: friendlyName + isOptional: true + type: String? + description: Human readable name assigned to a device. examples: - id: enroll-totp-factor name: Enroll a time-based, one-time password (TOTP) factor @@ -3064,6 +3797,11 @@ functions: Creates a challenge for a factor. - An [enrolled factor](/docs/reference/kotlin/auth-mfa-enroll) is required before creating a challenge. - To verify a challenge, see [`mfa.verifyChallenge()`](/docs/reference/kotlin/auth-mfa-verify). + params: + - name: factorId + isOptional: false + type: String + description: The id of the MFA factor you want to create a challenge for. examples: - id: create-mfa-challenge name: Create a challenge for a factor @@ -3078,6 +3816,23 @@ functions: notes: | Verifies a challenge for a factor. - To verify a challenge, please [create a challenge](/docs/reference/kotlin/auth-mfa-challenge) first. + params: + - name: factorId + isOptional: false + type: String + description: The id of the MFA factor to verify. + - name: challengeId + isOptional: false + type: String + description: The id of the challenge to verify. + - name: code + isOptional: false + type: String + description: The code used to verify. + - name: saveSession + isOptional: true + type: Boolean + description: Whether to save the session. Defaults to true. examples: - id: verify-challenge name: Verify a challenge for a factor @@ -3098,6 +3853,19 @@ functions: Creates and verifies a challenge for a factor. - An [enrolled factor](/docs/reference/kotlin/auth-mfa-enroll) is required before invoking `createChallengeAndVerify()`. - Executes [`mfa.createChallenge()`](/docs/reference/kotlin/auth-mfa-challenge) and [`mfa.verifyChallenge()`](/docs/reference/kotlin/auth-mfa-verify) in a single step. + params: + - name: factorId + isOptional: false + type: String + description: The id of the MFA factor to verify. + - name: code + isOptional: false + type: String + description: The code used to verify. + - name: saveSession + isOptional: true + type: Boolean + description: Whether to save the session. Defaults to true. examples: - id: challenge-and-verify name: Create and verify a challenge for a factor @@ -3115,6 +3883,11 @@ functions: $ref: '@supabase/gotrue-js.GoTrueMFAApi.unenroll' notes: | Unenroll removes a MFA factor. A user has to have an `AAL2` authentication level in order to unenroll a verified factor. + params: + - name: factorId + isOptional: false + type: String + description: The id of the factor you want to unenroll. examples: - id: unenroll-a-factor name: Unenroll a factor @@ -3180,7 +3953,7 @@ functions: supabase.auth.importAuthToken("service_role") // Access auth admin api - val adminGoTrueClient = supabase.auth.admin + val adminAuthClient = supabase.auth.admin ``` - id: get-user-by-id @@ -3189,6 +3962,11 @@ functions: notes: | Fetches the user object from the database based on the user's id. - The `retrieveUserById()` method requires the user's id which maps to the `auth.users.id` column. + params: + - name: uid + isOptional: false + type: String + description: The id of the user you want to retrieve. examples: - id: fetch-the-user-object-using-the-access-token-jwt name: Fetch the user object using the access_token jwt @@ -3204,6 +3982,15 @@ functions: notes: | Retrieves a list of users. - Defaults to return 50 users per page. + params: + - name: page + isOptional: true + type: Int + description: The page number to retrieve. + - name: perPage + isOptional: true + type: Int + description: The number of users to retrieve per page. examples: - id: get-a-full-list-of-users name: Get a page of users @@ -3228,6 +4015,32 @@ functions: notes: | Creates a new user. - To confirm the user's email address or phone number, set `autoConfirm` to true. Both arguments default to false. + params: + - name: builder + isOptional: false + type: AdminUserBuilder.Email.() -> Unit or AdminUserBuilder.Phone.() -> Unit + description: The builder to create a new user. + subContent: + - name: email/phone + isOptional: true + type: String + description: The new user's email or phone. + - name: password + isOptional: false + type: String + description: The user's password. + - name: autoConfirm + isOptional: true + type: Boolean + description: Whether to auto-confirm the user's email or phone number. + - name: userMetadata + isOptional: true + type: JsonObject? + description: Custom user metadata. + - name: appMetadata + isOptional: true + type: JsonObject? + description: Custom app metadata. examples: - id: create-a-new-user-with-email-custom-user-metadata name: Create user with email @@ -3281,6 +4094,11 @@ functions: notes: | Deletes a user from the database. - The `deleteUser()` method requires the user's ID, which maps to the `auth.users.id` column. + params: + - name: uid + isOptional: false + type: String + description: The id of the user you want to delete. examples: - id: removes-a-user name: Removes a user @@ -3295,6 +4113,19 @@ functions: $ref: '@supabase/gotrue-js.GoTrueAdminApi.inviteUserByEmail' notes: | Sends an invite link to the user's email address. + params: + - name: email + isOptional: false + type: String + description: The email to send the invite to. + - name: redirectTo + isOptional: true + type: String + description: The redirect url to use. If you don't specify this, the platform specific will be used, like deeplinks on android. + - name: data + isOptional: true + type: JsonObject + description: Custom data to create the user with. examples: - id: invite-a-user name: Invite a user @@ -3316,6 +4147,19 @@ functions: $ref: '@supabase/gotrue-js.GoTrueAdminApi.generateLink' notes: | Generates email links and OTPs to be sent via a custom email provider. + params: + - name: type + isOptional: false + type: LinkType + description: The type of link to generate, e.g. `LinkType.Signup`. + - name: redirectTo + isOptional: true + type: String + description: The redirect url to use. If you don't specify this, the platform specific will be used, like deeplinks on android. + - name: config + isOptional: true + type: C.() -> Unit + description: The builder to create a new link. examples: - id: generate-a-signup-link name: Generate a signup link @@ -3377,6 +4221,52 @@ functions: $ref: '@supabase/gotrue-js.GoTrueAdminApi.updateUserById' notes: | Updates the user data. + params: + - name: uid + isOptional: false + type: String + description: The id of the user you want to update. + - name: builder + isOptional: false + type: AdminUserUpdateBuilder.() -> Unit + description: The builder to update the user. + subContent: + - name: email + isOptional: true + type: String + description: The new email. + - name: phone + isOptional: true + type: String + description: The new phone number. + - name: password + isOptional: true + type: String + description: The new password. + - name: userMetadata + isOptional: true + type: JsonObject? + description: Custom user metadata. + - name: appMetadata + isOptional: true + type: JsonObject? + description: Custom app metadata. + - name: emailConfirm + isOptional: true + type: Boolean + description: Whether to confirm the user's email. + - name: phoneConfirm + isOptional: true + type: Boolean + description: Whether to confirm the user's phone number. + - name: banDuration + isOptional: true + type: String + description: The format for the ban duration follows a strict sequence of decimal numbers with a unit suffix. Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". + - name: role + isOptional: true + type: String + description: The `role` claim set in the user's access token JWT. When a user signs up, this role is set to `authenticated` by default. You should only modify the `role` if you need to provision several levels of admin access that have different permissions on individual columns in your database. examples: - id: updates-a-users-email name: Updates a user's email @@ -3440,7 +4330,11 @@ functions: title: 'mfa.listFactors()' notes: | Lists all factors associated to a user. - $ref: '@supabase/gotrue-js.GoTrueAdminMFAApi.listFactors' + params: + - name: uid + isOptional: false + type: String + description: The id of the user you want to list factors for. examples: - id: list-factors name: List all factors for a user @@ -3451,9 +4345,17 @@ functions: ``` - id: mfa-delete-factor title: 'mfa.deleteFactor()' - $ref: '@supabase/gotrue-js.GoTrueAdminMFAApi.deleteFactor' notes: | Deletes a factor on a user. This will log the user out of all active sessions if the deleted factor was verified. + params: + - name: uid + isOptional: false + type: String + description: The id of the user you want to delete a factor for. + - name: factorId + isOptional: false + type: String + description: The id of the factor you want to delete. examples: - id: delete-factor name: Delete a factor for a user @@ -3469,6 +4371,19 @@ functions: - When invoking a function with parameters, you have to provide a [serializable value](/docs/reference/kotlin/installing#serialization) in the function parameter. notes: | - Requires an Authorization header. + params: + - name: function + isOptional: false + type: String + description: The name of the function to invoke. + - name: body + isOptional: true + type: T + description: The body to send with the request. T can be any serializable type. + - name: headers + isOptional: true + type: Headers + description: The headers to send with the request. examples: - id: basic-invocation name: Basic invocation @@ -3833,13 +4748,31 @@ functions: - `buckets` table permissions: `insert` - `objects` table permissions: none - Refer to the [Storage guide](/docs/guides/storage/security/access-control) on how access control works + params: + - name: id + isOptional: false + type: String + description: The id of the bucket you want to create. + - name: builder + isOptional: true + type: BucketBuilder.() -> Unit + description: The builder to create a new bucket. + subContent: + - name: public + isOptional: true + type: Boolean + description: Whether the bucket is public or not. + - name: fileSizeLimit + isOptional: true + type: FileSizeLimit + description: The maximum file size. examples: - id: create-bucket name: Create bucket isSpotlight: true code: | ```kotlin - supabase.storage.createBucket(name = "icons", id = "icons") { + supabase.storage.createBucket(id = "icons") { public = true fileSizeLimit = 5.megabytes } @@ -3852,6 +4785,24 @@ functions: - `buckets` table permissions: `select` and `update` - `objects` table permissions: none - Refer to the [Storage guide](/docs/guides/storage/security/access-control) on how access control works + params: + - name: id + isOptional: false + type: String + description: The id of the bucket you want to create. + - name: builder + isOptional: true + type: BucketBuilder.() -> Unit + description: The builder to create a new bucket. + subContent: + - name: public + isOptional: true + type: Boolean + description: Whether the bucket is public or not. + - name: fileSizeLimit + isOptional: true + type: FileSizeLimit + description: The maximum file size. examples: - id: update-bucket name: Update bucket @@ -3873,6 +4824,11 @@ functions: - `buckets` table permissions: `select` - `objects` table permissions: `select` and `delete` - Refer to the [Storage guide](/docs/guides/storage/security/access-control) on how access control works + params: + - name: bucketId + isOptional: false + type: String + description: The id of the bucket you want to empty. examples: - id: empty-bucket name: Empty bucket @@ -3889,6 +4845,11 @@ functions: - `buckets` table permissions: `select` and `delete` - `objects` table permissions: none - Refer to the [Storage guide](/docs/guides/storage/security/access-control) on how access control works + params: + - name: bucketId + isOptional: false + type: String + description: The id of the bucket you want to delete. examples: - id: delete-bucket name: Delete bucket @@ -3907,6 +4868,19 @@ functions: - `objects` table permissions: `insert` - Refer to the [Storage guide](/docs/guides/storage/security/access-control) on how access control works - Resumable uploads use a `Disk` cache by default to store the upload urls. You can customize that in the Auth config by changing the `resumable.cache` property. + params: + - name: path + isOptional: false + type: String + description: The path of the file you want to upload. + - name: data + isOptional: false + type: ByteArray + description: The data of the file you want to upload. + - name: upsert + isOptional: true + type: Boolean + description: Whether to overwrite the file if it already exists. examples: - id: upload-file name: Upload file @@ -4011,6 +4985,19 @@ functions: - `buckets` table permissions: none - `objects` table permissions: `update` and `select` - Refer to the [Storage guide](/docs/guides/storage/security/access-control) on how access control works + params: + - name: path + isOptional: false + type: String + description: The path of the file you want to upload. + - name: data + isOptional: false + type: ByteArray + description: The data of the file you want to upload. + - name: upsert + isOptional: true + type: Boolean + description: Whether to overwrite the file if it already exists. examples: - id: update-file name: Update file @@ -4031,6 +5018,15 @@ functions: - `buckets` table permissions: none - `objects` table permissions: `update` and `select` - Refer to the [Storage guide](/docs/guides/storage/security/access-control) on how access control works + params: + - name: from + isOptional: false + type: String + description: The path of the file you want to move. + - name: to + isOptional: false + type: String + description: The new path of the file. examples: - id: move-file name: Move file @@ -4048,6 +5044,15 @@ functions: - `buckets` table permissions: none - `objects` table permissions: `insert` and `select` - Refer to the [Storage guide](/docs/guides/storage/security/access-control) on how access control works + params: + - name: from + isOptional: false + type: String + description: The path of the file you want to copy. + - name: to + isOptional: false + type: String + description: The new path of the file. examples: - id: copy-file name: Copy file @@ -4064,6 +5069,40 @@ functions: - `buckets` table permissions: none - `objects` table permissions: `select` - Refer to the [Storage guide](/docs/guides/storage/security/access-control) on how access control works + params: + - name: path + isOptional: false + type: String + description: The path of the file you want to create a signed url for. + - name: expiresIn + isOptional: false + type: Duration + description: The duration the signed url should be valid for. + - name: builder + isOptional: true + type: ImageTransformation.() -> Unit + description: The transformation to apply to the image. + subContent: + - name: width + isOptional: true + type: Int + description: The width of the image. + - name: height + isOptional: true + type: Int + description: The height of the image. + - name: resize + isOptional: true + type: Resize + description: The resize mode of the image. + - name: quality + isOptional: true + type: Int + description: The quality of the image. (Percentage 1-100, defaults to 80) + - name: format + isOptional: true + type: String + description: Specify in which format you want the image to receive. (Defaults to 'origin', which means the original format) examples: - id: create-signed-url name: Create Signed URL @@ -4091,6 +5130,15 @@ functions: - `buckets` table permissions: none - `objects` table permissions: `select` - Refer to the [Storage guide](/docs/guides/storage/security/access-control) on how access control works + params: + - name: expiresIn + isOptional: false + type: Duration + description: The duration the signed url should be valid for. + - name: paths + isOptional: false + type: vararg String + description: The paths of the files you want to create signed urls for. examples: - id: create-signed-urls name: Create Signed URLs @@ -4107,6 +5155,11 @@ functions: - `buckets` table permissions: none - `objects` table permissions: `insert` - Refer to the [Storage guide](/docs/guides/storage/security/access-control) on how access control works + params: + - name: path + isOptional: false + type: String + description: The path of the file you want to upload. examples: - id: create-signed-upload-url name: Create Signed Upload URL @@ -4123,6 +5176,19 @@ functions: - `buckets` table permissions: none - `objects` table permissions: none - Refer to the [Storage guide](/docs/guides/storage/security/access-control) on how access control works + params: + - name: path + isOptional: false + type: String + description: The path of the file you want to upload. + - name: token + isOptional: false + type: String + description: The token you received from `createSignedUploadUrl`. + - name: data + isOptional: true + type: ByteArray + description: The data of the file you want to upload. examples: - id: upload-to-signed-url name: Upload to a signed URL @@ -4142,6 +5208,11 @@ functions: - `buckets` table permissions: none - `objects` table permissions: none - Refer to the [Storage guide](/docs/guides/storage/security/access-control) on how access control works + params: + - name: path + isOptional: false + type: String + description: The path of the file you want to get the public url for. examples: - id: returns-the-url-for-an-asset-in-a-public-bucket name: Returns the URL for an asset in a public bucket @@ -4168,6 +5239,11 @@ functions: - `buckets` table permissions: none - `objects` table permissions: `select` - Refer to the [Storage guide](/docs/guides/storage/security/access-control) on how access control works + params: + - name: path + isOptional: false + type: String + description: The path of the file you want to download. examples: - id: download-file-authenticated name: Download file from non-public bucket @@ -4235,6 +5311,11 @@ functions: - `buckets` table permissions: none - `objects` table permissions: `delete` and `select` - Refer to the [Storage guide](/docs/guides/storage/security/access-control) on how access control works + params: + - name: paths + isOptional: false + type: vararg String + description: The paths of the files you want to remove. examples: - id: delete-file name: Delete file diff --git a/apps/docs/spec/supabase_py_v2.yml b/apps/docs/spec/supabase_py_v2.yml index 1b9bb492e5f..45b09edd786 100644 --- a/apps/docs/spec/supabase_py_v2.yml +++ b/apps/docs/spec/supabase_py_v2.yml @@ -40,14 +40,16 @@ functions: code: | ``` import os - from supabase import create_client, Client, ClientOptions + from supabase import create_client, Client + from supabase.client import ClientOptions url: str = os.environ.get("SUPABASE_URL") key: str = os.environ.get("SUPABASE_KEY") supabase: Client = create_client(url, key, options=ClientOptions( postgrest_client_timeout=10, - storage_client_timeout=10 + storage_client_timeout=10, + schema="public", )) ``` @@ -58,7 +60,7 @@ functions: - **Confirm email** determines if users need to confirm their email address after signing up. - If **Confirm email** is enabled, a `user` is returned but `session` is null. - If **Confirm email** is disabled, both a `user` and a `session` are returned. - - By default, when the user confirms their email address, they are redirected to the [`SITE_URL`](https://supabase.com/docs/reference/auth/config#site_url). You can modify your `SITE_URL` or add additional redirect URLs in [your project](https://supabase.com/dashboard/project/_/auth/url-configuration). + - By default, when the user confirms their email address, they are redirected to the [`SITE_URL`](https://supabase.com/docs/guides/auth/concepts/redirect-urls). You can modify your `SITE_URL` or add additional redirect URLs in [your project](https://supabase.com/dashboard/project/_/auth/url-configuration). - If sign_up() is called for an existing confirmed user: - When both **Confirm email** and **Confirm phone** (even when phone provider is disabled) are enabled in [your project](/dashboard/project/_/auth/providers), an obfuscated/fake user object is returned. - When either **Confirm email** or **Confirm phone** (even when phone provider is disabled) is disabled, the error message, `User already registered` is returned. @@ -68,25 +70,35 @@ functions: name: Sign up code: | ``` - res = supabase.auth.sign_up({ - "email": 'example@email.com', - "password": 'example-password', - }) + res = supabase.auth.sign_up( + email= 'example@email.com', + password= 'example-password', + ) ``` - id: sign-up-with-additional-user-metadata name: Sign up with additional user metadata code: | ``` - res = supabase.auth.sign_up({ - "email": 'example@email.com', - "password": 'example-password', - "options": { - "data": { - "first_name": 'John', - "age": 27, - } + res = supabase.auth.sign_up( + email= 'example@email.com', + password= 'example-password', + data= { + first_name= 'John', + age= 27, } - }) + ) + ``` + - id: sign-up-with-redirect + name: Sign up with a redirect URL + description: | + - See [redirect URLs and wildcards](/docs/guides/auth/concepts/redirect-urls) to add additional redirect URLs to your project. + code: | + ``` + res = supabase.auth.sign_up( + email= 'example@email.com', + password= 'example-password', + redirect_to= 'https://example.com/welcome' + ) ``` - id: sign-in-with-password title: 'sign_in_with_password' @@ -120,7 +132,7 @@ functions: - If the user doesn't exist, `sign_in_with_otp()` will signup the user instead. To restrict this behavior, you can set `should_create_user` in `SignInWithPasswordlessCredentials.options` to `false`. - If you're using an email, you can configure whether you want the user to receive a magiclink or a OTP. - If you're using phone, you can configure whether you want the user to receive a OTP. - - The magic link's destination URL is determined by the [`SITE_URL`](/docs/reference/auth/config#site_url). + - The magic link's destination URL is determined by the [`SITE_URL`](/docs/guides/auth/concepts/redirect-urls). - See [redirect URLs and wildcards](/docs/guides/auth/overview#redirect-urls-and-wildcards) to add additional redirect URLs to your project. - Magic links and OTPs share the same implementation. To send users a one-time code instead of a magic link, [modify the magic link email template](https://supabase.com/dashboard/project/_/auth/templates) to include `{{ .Token }}` instead of `{{ .ConfirmationURL }}`. examples: @@ -166,7 +178,7 @@ functions: name: Sign in using a third-party provider with redirect isSpotlight: false description: | - - When the third-party provider successfully authenticates the user, the provider redirects the user to the URL specified in the `redirectTo` parameter. This parameter defaults to the [`SITE_URL`](/docs/reference/auth/config#site_url). It does not redirect the user immediately after invoking this method. + - When the third-party provider successfully authenticates the user, the provider redirects the user to the URL specified in the `redirectTo` parameter. This parameter defaults to the [`SITE_URL`](/docs/guides/auth/concepts/redirect-urls). It does not redirect the user immediately after invoking this method. - See [redirect URLs and wildcards](/docs/guides/auth/overview#redirect-urls-and-wildcards) to add additional redirect URLs to your project. code: | ``` diff --git a/apps/docs/spec/supabase_swift_v1.yml b/apps/docs/spec/supabase_swift_v1.yml index 5e76cc23425..fbfcbff9555 100644 --- a/apps/docs/spec/supabase_swift_v1.yml +++ b/apps/docs/spec/supabase_swift_v1.yml @@ -85,7 +85,7 @@ functions: - **Confirm email** determines if users need to confirm their email address after signing up. - If **Confirm email** is enabled, a `user` is returned but `session` is null. - If **Confirm email** is disabled, both a `user` and a `session` are returned. - - When the user confirms their email address, they are redirected to the [`SITE_URL`](/docs/reference/auth/config#site_url) by default. You can modify your `SITE_URL` or add additional redirect URLs in [your project](/dashboard/project/_/auth/url-configuration). + - When the user confirms their email address, they are redirected to the [`SITE_URL`](/docs/guides/auth/concepts/redirect-urls) by default. You can modify your `SITE_URL` or add additional redirect URLs in [your project](/dashboard/project/_/auth/url-configuration). - If signUp() is called for an existing confirmed user: - If **Confirm email** is enabled in [your project](/dashboard/project/_/auth/providers), an obfuscated/fake user object is returned. - If **Confirm email** is disabled, the error message, `User already registered` is returned. @@ -168,7 +168,7 @@ functions: - If the user doesn't exist, `signInWithOTP()` will signup the user instead. To restrict this behavior, you can set `shouldCreateUser` to `false`. - If you're using an email, you can configure whether you want the user to receive a magiclink or a OTP. - If you're using phone, you can configure whether you want the user to receive a OTP. - - The magic link's destination URL is determined by the [`SITE_URL`](/docs/reference/auth/config#site_url). + - The magic link's destination URL is determined by the [`SITE_URL`](/docs/guides/auth/concepts/redirect-urls). - See [redirect URLs and wildcards](/docs/guides/auth#redirect-urls-and-wildcards) to add additional redirect URLs to your project. - Magic links and OTPs share the same implementation. To send users a one-time code instead of a magic link, [modify the magic link email template](/dashboard/project/_/auth/templates) to include `{{ .Token }}` instead of `{{ .ConfirmationURL }}`. - When using magic links, specify a `redirectTo` that matches a configured url scheme in your iOS app, so Supabase can correctly redirect back to your app. @@ -227,7 +227,7 @@ functions: name: Sign in using a third-party provider with redirect isSpotlight: false description: | - - When the third-party provider successfully authenticates the user, the provider redirects the user to the URL specified in the `redirectTo` parameter. This parameter defaults to the [`SITE_URL`](/docs/reference/auth/config#site_url). It does not redirect the user immediately after invoking this method. + - When the third-party provider successfully authenticates the user, the provider redirects the user to the URL specified in the `redirectTo` parameter. This parameter defaults to the [`SITE_URL`](/docs/guides/auth/concepts/redirect-urls). It does not redirect the user immediately after invoking this method. - See [redirect URLs and wildcards](/docs/guides/auth/overview#redirect-urls-and-wildcards) to add additional redirect URLs to your project. - getOAuthSignInURL() provides the URL which needs to be opened in a SFSafariViewController instance. - The redirectTo URL needs to be setup correctly in your project under Authentication -> URL Configuration -> Redirect URLs. @@ -3183,8 +3183,9 @@ functions: .upload( path: "public/\(fileName)", file: fileData, - fileOptions: FileOptions( + options: FileOptions( cacheControl: "3600", + contentType: "image/png", upsert: false ) ) @@ -3210,8 +3211,9 @@ functions: .update( path: "public/\(fileName)", file: fileData, - fileOptions: FileOptions( + options: FileOptions( cacheControl: "3600", + contentType: "image/png", upsert: true ) ) diff --git a/apps/docs/spec/supabase_swift_v2.yml b/apps/docs/spec/supabase_swift_v2.yml index 4e1413ba8ff..66f2b5e2457 100644 --- a/apps/docs/spec/supabase_swift_v2.yml +++ b/apps/docs/spec/supabase_swift_v2.yml @@ -85,14 +85,14 @@ functions: - **Confirm email** determines if users need to confirm their email address after signing up. - If **Confirm email** is enabled, a `user` is returned but `session` is null. - If **Confirm email** is disabled, both a `user` and a `session` are returned. - - When the user confirms their email address, they are redirected to the [`SITE_URL`](/docs/reference/auth/config#site_url) by default. You can modify your `SITE_URL` or add additional redirect URLs in [your project](/dashboard/project/_/auth/url-configuration). + - When the user confirms their email address, they are redirected to the [`SITE_URL`](/docs/guides/auth/concepts/redirect-urls) by default. You can modify your `SITE_URL` or add additional redirect URLs in [your project](/dashboard/project/_/auth/url-configuration). - If signUp() is called for an existing confirmed user: - When both **Confirm email** and **Confirm phone** (even when phone provider is disabled) are enabled in [your project](/dashboard/project/_/auth/providers), an obfuscated/fake user object is returned. - When either **Confirm email** or **Confirm phone** (even when phone provider is disabled) is disabled, the error message, `User already registered` is returned. - To fetch the currently logged-in user, refer to [`getUser()`](/docs/reference/swift/get-user). examples: - id: sign-up - name: Sign up + name: Sign up with email and password isSpotlight: true code: | ```swift @@ -101,6 +101,30 @@ functions: password: "example-password" ) ``` + - id: sign-up-phone + name: Sign up with a phone number and password (SMS) + isSpotlight: true + code: | + ```swift + try await supabase.auth.signUp( + phone: "123456789", + password: "example-password", + channel: "sms" + ) + ``` + - id: sign-up-phone-whatsapp + name: Sign up with a phone number and password (whatsapp) + isSpotlight: true + description: | + The user will be sent a WhatsApp message which contains a OTP. By default, a given user can only request a OTP once every 60 seconds. Note that a user will need to have a valid WhatsApp account that is linked to Twilio in order to use this feature. + code: | + ```swift + try await supabase.auth.signUp( + phone: "123456789", + password: "example-password", + channel: "whatsapp" + ) + ``` - id: sign-up-with-additional-user-metadata name: Sign up with additional user metadata isSpotlight: false @@ -120,6 +144,7 @@ functions: - id: sign-up-with-redirect name: Sign up with a redirect URL description: | + - You can provide a default redirect URL when initializing the client. - See [redirect URLs and wildcards](/docs/guides/auth/overview#redirect-urls-and-wildcards) to add additional redirect URLs to your project. code: | ```swift @@ -129,6 +154,92 @@ functions: redirectTo: URL(string: "https://example.com/welcome")! ) ``` + - id: on-auth-state-change + title: "onAuthStateChange()" + notes: | + - Subscribes to important events occurring on the user's session. + - Emitted events: + - `INITIAL_SESSION` + - Emitted right after the Supabase client is constructed and the initial session from storage is loaded. + - `SIGNED_IN` + - Emitted each time a user session is confirmed or re-established, including on user sign in. + - Avoid making assumptions as to when this event is fired, this may occur even when the user is already signed in. Instead, check the user object attached to the event to see if a new user has signed in and update your application's UI. + - `SIGNED_OUT` + - Emitted when the user signs out. This can be after: + - A call to `supabase.auth.signOut()`. + - After the user's session has expired for any reason: + - User has signed out on another device. + - The session has reached its timebox limit or inactivity timeout. + - User has signed in on another device with single session per user enabled. + - Check the [User Sessions](/docs/guides/auth/sessions) docs for more information. + - Use this to clean up any local storage your application has associated with the user. + - `TOKEN_REFRESHED` + - Emitted each time a new access and refresh token are fetched for the signed in user. + - It's best practice and highly recommended to extract the access token (JWT) and store it in memory for further use in your application. + - Avoid frequent calls to `supabase.auth.session` for the same purpose. + - There is a background process that keeps track of when the session should be refreshed so you will always receive valid tokens by listening to this event. + - The frequency of this event is related to the JWT expiry limit configured on your project. + - `USER_UPDATED` + - Emitted each time the `supabase.auth.update(user:)` method finishes successfully. Listen to it to update your application's UI based on new profile information. + - `PASSWORD_RECOVERY` + - Emitted instead of the `SIGNED_IN` event when the user lands on a page that includes a password recovery link in the URL. + - Use it to show a UI to the user where they can [reset their password](/docs/guides/auth/passwords#resetting-a-users-password-forgot-password). + + examples: + - id: listen-to-auth-changes + name: Listen to auth changes + isSpotlight: true + code: | + ```swift + + // Using AsyncStream + for await (event, session) in await supabase.auth.authStateChanges { + print(event, session) + } + + // Using Closure + let subscription = await supabase.auth.onAuthStateChange { event, session in + print(event, session) + } + + // call remove() to remove subscription + subscription.remove() + ``` + description: | + - When using closure based, remember to call `remove()` on the returned subscription. + - When using AsyncStream, it automatically removes the subscription when AsyncStream is canceled, or finishes. + - id: list-to-a-specific-event + name: Listen to a specific event + code: | + ```swift + for await (_, session) in await supabase.auth.authStateChanges + .filter({ $0.event == .signedIn }) { + // handle signIn event. + } + ``` + - id: sign-in-anonymously + title: "signInAnonymously()" + notes: | + - Returns an anonymous user + - It is recommended to set up captcha for anonymous sign-ins to prevent abuse. You can pass in the captcha token in the `options` param. + examples: + - id: sign-in-anonymously + name: Create an anonymous user + isSpotlight: true + code: | + ```swift + let session = try await supabase.auth.signInAnonymously(captchaToken: captchaToken) + ``` + - id: sign-in-anonymously-with-user-metadata + name: Create an anonymous user with custom user metadata + isSpotlight: false + code: | + ```swift + let session = try await supabase.auth.signInAnonymously( + data: customData, + captchaToken: captchaToken + ) + ``` - id: sign-in-with-password title: "signInWithPassword()" notes: | @@ -164,14 +275,14 @@ functions: - id: sign-in-with-otp title: "signInWithOTP()" notes: | + - Requires either an email or phone number. - This method is used for passwordless sign-ins where a OTP is sent to the user's email or phone number. - - If the user doesn't exist, `signInWithOTP()` will signup the user instead. To restrict this behavior, you can set `shouldCreateUser` to `false`. + - If the user doesn't exist, `signInWithOTP()` will signup the user instead. To restrict this behavior, you can set `shouldCreateUser` to `false``. - If you're using an email, you can configure whether you want the user to receive a magiclink or a OTP. - If you're using phone, you can configure whether you want the user to receive a OTP. - - The magic link's destination URL is determined by the [`SITE_URL`](/docs/reference/auth/config#site_url). + - The magic link's destination URL is determined by the [`SITE_URL`](/docs/guides/auth/concepts/redirect-urls). - See [redirect URLs and wildcards](/docs/guides/auth#redirect-urls-and-wildcards) to add additional redirect URLs to your project. - Magic links and OTPs share the same implementation. To send users a one-time code instead of a magic link, [modify the magic link email template](/dashboard/project/_/auth/templates) to include `{{ .Token }}` instead of `{{ .ConfirmationURL }}`. - - When using magic links, specify a `redirectTo` that matches a configured url scheme in your iOS app, so Supabase can correctly redirect back to your app. - See our [Twilio Phone Auth Guide](/docs/guides/auth/phone-login/twilio) for details about configuring WhatsApp sign in. examples: - id: sign-in-with-email @@ -193,13 +304,55 @@ functions: ```swift try await supabase.auth.signInWithOTP(phone: "+13334445555") ``` + - id: sign-in-with-whatsapp-otp + name: Sign in with WhatsApp OTP + isSpotlight: false + description: The user will be sent a WhatsApp message which contains a OTP. By default, a given user can only request a OTP once every 60 seconds. Note that a user will need to have a valid WhatsApp account that is linked to Twilio in order to use this feature. + code: | + ```swift + try await supabase.auth.signInWithOTP( + phone: "+13334445555", + channel: "whatsapp" + ) + ``` - id: sign-in-with-oauth - title: "getOAuthSignInURL()" + title: "signInWithOAuth()" notes: | - This method is used for signing in using a third-party provider. - Supabase supports many different [third-party providers](https://supabase.com/docs/guides/auth#providers). examples: - - id: sign-in-using-a-third-party-provider + - id: sign-in-using-ASWebAuthenticationSession + name: Sign in with OAuth using ASWebAuthenticationSession + isSpotlight: true + description: | + - Use `configure` parameter to customize the `ASWebAuthenticationSession` + code: | + ```swift + let session = try await supabase.auth.signInWithOAuth( + provider: .github + ) { (session: ASWebAuthenticationSession) in + // customize session + } + ``` + + - id: sign-in-using-generic-flow + name: Sign in with OAuth and customize flow + isSpotlight: true + description: | + - Use `launchFlow` parameter to customize the flow. + code: | + ```swift + let session = try await supabase.auth.signInWithOAuth( + provider: .github + ) { url in + // use url to start OAuth flow + // and return a result url that contains the OAuth token. + // ... + return resultURL + } + ``` + + - id: sign-in-using-manual-implementation name: Sign in using a third-party provider isSpotlight: true description: | @@ -208,7 +361,7 @@ functions: - When using `ASWebAuthenticationSession` or any other implementation, use the returning URL as input to `session(from:)` method. code: | ```swift - let url = try await supabase.auth.getOAuthSignInURL(provider: .github) + let url = try await supabase.auth.getOAuthSignInURL(provider: .github, redirectTo: URL(string: "my-app-scheme://")) let session = ASWebAuthenticationSession(url: url, callbackURLScheme: "my-app-scheme") { url, error in guard let url else { return } @@ -223,21 +376,6 @@ functions: session.start() ``` - - id: sign-in-using-a-third-party-provider-with-redirect - name: Sign in using a third-party provider with redirect - isSpotlight: false - description: | - - When the third-party provider successfully authenticates the user, the provider redirects the user to the URL specified in the `redirectTo` parameter. This parameter defaults to the [`SITE_URL`](/docs/reference/auth/config#site_url). It does not redirect the user immediately after invoking this method. - - See [redirect URLs and wildcards](/docs/guides/auth/overview#redirect-urls-and-wildcards) to add additional redirect URLs to your project. - - getOAuthSignInURL() provides the URL which needs to be opened in a SFSafariViewController instance. - - The redirectTo URL needs to be setup correctly in your project under Authentication -> URL Configuration -> Redirect URLs. - code: | - ```swift - let url = try await supabase.auth.getOAuthSignInURL( - provider: .google, - redirectTo: URL(string: "https://example.com/welcome")! - ) - ``` - id: sign-in-with-scopes name: Sign in with scopes isSpotlight: false @@ -246,7 +384,7 @@ functions: You may also need to specify the scopes in the provider's OAuth app settings, depending on the provider. The list of scopes will be documented by the third-party provider you are using and specifying scopes will enable you to use the OAuth provider token to call additional APIs supported by the third-party provider to get more information. code: | ```swift - let url = try await supabase.auth.getOAuthSignInURL( + let url = try await supabase.auth.signInWithOAuth( provider: .github, scopes: "repo gist notifications" ) @@ -267,6 +405,45 @@ functions: ) ) ``` + - id: sign-in-with-sso + title: 'signInWithSSO()' + notes: | + - Before you can call this method you need to [establish a connection](/docs/guides/auth/sso/auth-sso-saml#managing-saml-20-connections) to an identity provider. Use the [CLI commands](/docs/reference/cli/supabase-sso) to do this. + - If you've associated an email domain to the identity provider, you can use the `domain` property to start a sign-in flow. + - In case you need to use a different way to start the authentication flow with an identity provider, you can use the `providerId` property. For example: + - Mapping specific user email addresses with an identity provider. + - Using different hints to identity the identity provider to be used by the user, like a company-specific page, IP address or other tracking information. + examples: + - id: sign-in-with-domain + name: Sign in with email domain + isSpotlight: true + code: | + ```swift + // You can extract the user's email domain and use it to trigger the + // authentication flow with the correct identity provider. + + let url = try await await supabase.auth.signInWithSSO{ + domain: "company.com" + } + + // Open the URL using your preferred method to complete sign-in process. + UIApplication.shared.open(url) + ``` + - id: sign-in-with-provider-uuid + name: Sign in with provider UUID + isSpotlight: true + code: | + ```swift + // Useful when you need to map a user's sign in request according + // to different rules that can't use email domains. + + let url = try await supabase.auth.signInWithSSO{ + providerId: "21648a9d-8d5a-4555-a9d1-d6375dc14e92" + } + + // Open the URL using your preferred method to complete sign-in process. + UIApplication.shared.open(url) + ``` - id: sign-out title: "signOut()" notes: | @@ -375,6 +552,58 @@ functions: ) ) ``` + - id: get-user-identities + title: "userIdentities()" + notes: | + - The user needs to be signed in to call `userIdentities()`. + examples: + - id: get-user-identities + name: Returns a list of identities linked to the user + isSpotlight: true + code: | + ```swift + let identities = try await supabase.auth.userIdentities() + ``` + - id: unlink-identity + title: 'unlinkIdentity()' + notes: | + - The **Enable Manual Linking** option must be enabled from your [project's authentication settings](/dashboard/project/_/settings/auth). + - The user needs to be signed in to call `unlinkIdentity()`. + - The user must have at least 2 identities in order to unlink an identity. + - The identity to be unlinked must belong to the user. + examples: + - id: unlink-identity + name: Unlink an identity + isSpotlight: true + code: | + ```swift + // retrieve all identites linked to a user + let identities = try await supabase.auth.userIdentities() + + // find the google identity + let googleIdentity = identities.first { + $0.provider == .google + } + + // unlink the google identity + try await supabase.auth.unlinkIdentity(googleIdentity) + ``` + - id: send-password-reauthentication + title: "reauthenticate()" + notes: | + - This method is used together with `update(user:)` when a user's password needs to be updated. + - If you require your user to reauthenticate before updating their password, you need to enable the **Secure password change** option in your [project's email provider settings](/dashboard/project/_/auth/providers). + - A user is only require to reauthenticate before updating their password if **Secure password change** is enabled and the user **hasn't recently signed in**. A user is deemed recently signed in if the session was created in the last 24 hours. + - This method will send a nonce to the user's email. If the user doesn't have a confirmed email address, the method will send the nonce to the user's confirmed phone number instead. + examples: + - id: send-reauthentication-nonce + name: Send reauthentication nonce + description: Sends a reauthentication nonce to the user's email or phone number. + isSpotlight: true + code: | + ```swift + try await supabase.auth.reauthenticate() + ``` - id: resend-email-or-phone-otps title: "resend()" notes: | @@ -461,29 +690,7 @@ functions: ```swift let session = try await supabase.auth.refreshSession(refreshToken: "custom-refresh-token") ``` - - id: on-auth-state-change - title: "authStateChanges" - notes: | - - Types of auth events: `INITIAL_SESSION`, `SIGNED_IN`, `SIGNED_OUT`, `TOKEN_REFRESHED`, `USER_UPDATED`, `PASSWORD_RECOVERY`, `MFA_CHALLENGE_VERIFIED` - - The `INITIAL_SESSION` can be used to allow you to invoke the callback function when `authStateChanges` is first called. - examples: - - id: listen-to-auth-changes - name: Listen to auth changes - isSpotlight: true - code: | - ```swift - for await (event, session) in await supabase.auth.authStateChanges { - print(event, session) - } - ``` - - id: list-to-a-specific-event - name: Listen to a specific event - code: | - ```swift - for await (_, session) in await supabase.auth.authStateChanges.filter({ $0.event == .signedIn }) { - // handle signIn event. - } - ``` + - id: exchange-code-for-session title: "exchangeCodeForSession()" notes: | @@ -628,6 +835,41 @@ functions: ```swift let factors = try await supabase.auth.mfa.listFactors() ``` + - id: admin-api + title: 'Overview' + notes: | + - Any method under the `supabase.auth.admin` namespace requires a `service_role` key. + - These methods are considered admin methods and should be called on a trusted server. Never expose your `service_role` key in the browser. + examples: + - id: create-auth-admin-client + name: Create server-side auth client + isSpotlight: true + code: | + ```swift + import Supabase + + let supabase = SupabaseClient( + supabaseURL: supabaseURL, + supabaseKey: serviceRoleKey + ) + + // Access auth admin api + let adminAuthClient = supabase.auth.admin + ``` + - id: delete-user + title: 'deleteUser()' + notes: | + - The `deleteUser()` method requires the user's ID, which maps to the `auth.users.id` column. + examples: + - id: removes-a-user + name: Removes a user + isSpotlight: true + code: | + ```swift + try await supabase.auth.admin.deleteUser( + id: "715ed5db-f090-4b8c-a067-640ecee36aa0" + ) + ``` - id: select title: "Fetch data: select()" notes: | @@ -1318,8 +1560,8 @@ functions: let country: Country = try await supabase.database .from("countries") - // use `returning: .representation` to return the created object. - .insert(Country(id: 1, name: "Denmark"), returning: .representation) + .insert(Country(id: 1, name: "Denmark")) + .select() // specify you want a single value returned, otherwise it returns a list. .single() .execute() @@ -1438,8 +1680,9 @@ functions: let country: Country = try await supabase.database .from("countries") - .update(["name": "Australia"], returning: .representation) + .update(["name": "Australia"]) .eq("id", value: 1) + .select() // If you know this query should return a single object, append a `single()` modifier to it. .single() .execute() @@ -1497,10 +1740,10 @@ functions: street: "Melrose Place", postcode: "90210" ) - ), - returning: .representation + ) ) .eq("address->postcode", value: "90210") + .select() .execute() .value ``` @@ -2711,6 +2954,95 @@ functions: By default, the data is returned in JSON format, but can also be returned as Comma Separated Values. hideCodeBlock: true isSpotlight: true + - id: explain + title: Using Explain + description: | + For debugging slow queries, you can get the [Postgres `EXPLAIN` execution plan](https://www.postgresql.org/docs/current/sql-explain.html) of a query + using the `explain()` method. This works on any query, even for `rpc()` or writes. + + Explain is not enabled by default as it can reveal sensitive information about your database. + It's best to only enable this for testing environments but if you wish to enable it for production you can provide additional protection by using a `pre-request` function. + + Follow the [Performance Debugging Guide](/docs/guides/database/debugging-performance) to enable the functionality on your project. + examples: + - id: get-execution-plan + name: Get the execution plan + code: | + ```swift + try await supabase + .from("countries") + .select() + .explain() + .execute() + .value + ``` + data: + sql: | + ```sql + create table + countries (id int8 primary key, name text); + + insert into + countries (id, name) + values + (1, 'Afghanistan'), + (2, 'Albania'), + (3, 'Algeria'); + ``` + response: | + ``` + Aggregate (cost=33.34..33.36 rows=1 width=112) + -> Limit (cost=0.00..18.33 rows=1000 width=40) + -> Seq Scan on countries (cost=0.00..22.00 rows=1200 width=40) + ``` + description: | + By default, the data is returned in TEXT format, but can also be returned as JSON by using the `format` parameter. + hideCodeBlock: true + isSpotlight: true + + - id: get-execution-plan-with-analyze-and-verbose + name: Get the execution plan with analyze and verbose + code: | + ```swift + try await supabase + .from("countries") + .select() + .explain( + analyze: true, + verbose: true + ) + .execute() + .value + ``` + data: + sql: | + ```sql + create table + countries (id int8 primary key, name text); + + insert into + countries (id, name) + values + (1, 'Afghanistan'), + (2, 'Albania'), + (3, 'Algeria'); + ``` + response: | + ``` + Aggregate (cost=33.34..33.36 rows=1 width=112) (actual time=0.041..0.041 rows=1 loops=1) + Output: NULL::bigint, count(ROW(countries.id, countries.name)), COALESCE(json_agg(ROW(countries.id, countries.name)), '[]'::json), NULLIF(current_setting('response.headers'::text, true), ''::text), NULLIF(current_setting('response.status'::text, true), ''::text) + -> Limit (cost=0.00..18.33 rows=1000 width=40) (actual time=0.005..0.006 rows=3 loops=1) + Output: countries.id, countries.name + -> Seq Scan on public.countries (cost=0.00..22.00 rows=1200 width=40) (actual time=0.004..0.005 rows=3 loops=1) + Output: countries.id, countries.name + Query Identifier: -4730654291623321173 + Planning Time: 0.407 ms + Execution Time: 0.119 ms + ``` + description: | + By default, the data is returned in TEXT format, but can also be returned as JSON by using the `format` parameter. + hideCodeBlock: true + isSpotlight: false - id: invoke title: invoke() description: | @@ -2754,6 +3086,18 @@ functions: print(type(of: response)) // String? ``` + - id: invocation-with-streamed-response + name: Invocation with streamed response + description: | + - Use this method to return an `AsyncStream` when the function returns `Content-Type` = `text/event-stream`. + isSpotlight: true + code: | + ```swift + var response = Data() + for try await data try await supabase.functions._invokeWithStreamedResponse("hello") { + response.append(data) + } + ``` - id: error-handling name: Error handling description: | @@ -2797,6 +3141,37 @@ functions: ) ) ``` + - id: regional-invocation + name: Invoking a Function in the UsEast1 region + description: | + Here are the available regions: + - `FunctionRegion.any` + - `FunctionRegion.apNortheast1` + - `FunctionRegion.apNortheast2` + - `FunctionRegion.apSouth1` + - `FunctionRegion.apSoutheast1` + - `FunctionRegion.apSoutheast2` + - `FunctionRegion.caCentral1` + - `FunctionRegion.euCentral1` + - `FunctionRegion.euWest1` + - `FunctionRegion.euWest2` + - `FunctionRegion.euWest3` + - `FunctionRegion.saEast1` + - `FunctionRegion.usEast1` + - `FunctionRegion.usWest1` + - `FunctionRegion.usWest2` + isSpotlight: true + code: | + ```swift + let response = try await supabase.functions + .invoke( + "hello", + options: FunctionInvokeOptions( + body: ["foo": "bar"], + region: .usEast1 + ) + ) + ``` - id: calling-with-delete-verb name: Calling with DELETE HTTP verb description: | @@ -2841,139 +3216,285 @@ functions: - By default, listening to database changes is disabled for new projects due to database performance and security concerns. You can turn it on by managing Realtime's [replication](/docs/guides/api#realtime-api-overview). - You can receive the "previous" data for updates and deletes by setting the table's `REPLICA IDENTITY` to `FULL` (e.g., `ALTER TABLE your_table REPLICA IDENTITY FULL;`). - Row level security is not applied to delete statements. When RLS is enabled and replica identity is set to full, only the primary key is sent to clients. + - Use AsyncStream or callbacks for listening to changes. examples: - id: listen-to-broadcast name: Listen to broadcast messages isSpotlight: true code: | ```swift - let channel = supabase - .realtime - .channel("room1") + let channel = await supabase.channel("room1") - channel - .on("broadcast", filter: ChannelFilter(event: "cursor-pos")) { message in - print("Cursor position received!", message.payload) - } - .subscribe { status, error in - if status == .subscribed { - Task { - await channel.send( - type: .broadcast, - event: "cursor-pos", - payload: ["x": Double.random(in: 0...1), "y": Double.random(in: 0...1)] - ) - } - } + let broadcastStream = await channel.broadcastStream(event: "cursor-pos") + + await channel.subscribe() + + Task { + for await message in broadcastMessage { + print("Cursor position received", message.payload) } + } + + Task { + await channel.broadcast( + event: "cursor-pos", + message: [ + "x": .double(.random(in: 0...1)), + "y": .double(.random(in: 0...1)) + ] + ) + } ``` - - id: listen-to-presence-sync - name: Listen to presence sync + + - id: listen-to-broadcast-callback + name: Listen to broadcast messages using callback isSpotlight: true code: | ```swift - let channel = supabase.realtime.channel("room1") - channel - .on("presence", filter: ChannelFilter(event: "sync")) { _ in - print("Synced presence state: ", channel.presenceState()) - } - .subscribe { status, error in - if status == .subscribed { - Task { - await channel.track(["online_at": Date().ISO8601Format()]) - } - } - } + let channel = await supabase.channel("room1") + + let subscription = await channel.onBroadcast(event: "cursor-pos") { message in + print("Cursor position received", message.payload) + } + + await channel.subscribe() + + await channel.broadcast( + event: "cursor-pos", + message: [ + "x": .double(.random(in: 0...1)), + "y": .double(.random(in: 0...1)) + ] + ) + + // remove subscription some time later + subscription.remove() ``` - - id: listen-to-presence-join - name: Listen to presence join - isSpotlight: true + + - id: listen-to-presence-updates + name: Listen to presence updates code: | ```swift - let channel = supabase.realtime.channel("room1") - channel - .on("presence", filter: ChannelFilter(event: "join")) { message in - print("Newly joined presences: ", message.payload) + struct PresenceState: Codable { + let username: String + } + + let channel = await supabase.channel("channelId") + + let presenceChange = await channel.presenceChange() + + await channel.subscribe() + + Task { + for await presence in presenceChange { + let joins = try presence.decodeJoins(as: PresenceState.self) + let leaves = try presence.decodeLeaves(as: PresenceState.self) } - .subscribe { status, error in - if status == .subscribed { - Task { - await channel.track(["online_at": Date().ISO8601Format()]) - } - } - } - ``` - - id: listen-to-presence-leave - name: Listen to presence leave - isSpotlight: true + } + + // Send your own state + Task { + try await channel.track(PresenceState(username: "John")) + } + + - id: listen-to-presence-updates-callback + name: Listen to presence updates using callback code: | ```swift - let channel = supabase.realtime.channel("room1") - channel - .on("presence", filter: ChannelFilter(event: "leave")) { message in - print("Newly left presences: ", message.payload) - } - .subscribe { status, error in - if status == .subscribed { - Task { - await channel.track(["online_at": Date().ISO8601Format()]) - await channel.untrack() - } - } - } + struct PresenceState: Codable { + let username: String + } + + let channel = await supabase.channel("channelId") + + let subscription = await channel.onPresenceChange() { presence in + let joins = try presence.decodeJoins(as: PresenceState.self) + let leaves = try presence.decodeLeaves(as: PresenceState.self) + } + + await channel.subscribe() + + // Send your own state + try await channel.track(PresenceState(username: "John")) + + // remove subscription some time later + subscription.remove() ``` + - id: listen-to-all-database-changes name: Listen to all database changes - isSpotlight: true code: | ```swift - supabase.realtime - .channel("room1") - .on("postgres_changes", filter: ChannelFilter(event: "*", schema: "*")) { message in - print("Change received!", message.payload) + let channel = await supabase.channel("channelId") + + let changeStream = await channel.postgresChange(AnyAction.self, schema: "public") + + await channel.subscribe() + + for await change in changeStream { + switch change { + case .delete(let action): print("Deleted: \(action.oldRecord)") + case .insert(let action): print("Inserted: \(action.record)") + case .select(let action): print("Selected: \(action.record)") + case .update(let action): print("Updated": \(action.oldRecord) with \(action.record)") } - .subscribe() + } + ``` + - id: listen-to-all-database-changes-callback + name: Listen to all database changes using callback + code: | + ```swift + let channel = await supabase.channel("channelId") + + let subscription = await channel.onPostgresChange(AnyAction.self, schema: "public") { change in + switch change { + case .delete(let action): print("Deleted: \(action.oldRecord)") + case .insert(let action): print("Inserted: \(action.record)") + case .select(let action): print("Selected: \(action.record)") + case .update(let action): print("Updated": \(action.oldRecord) with \(action.record)") + } + } + + await channel.subscribe() + + // remove subscription some time later + subscription.remove() ``` - id: listen-to-a-specific-table name: Listen to a specific table code: | ```swift - supabase.realtime - .channel("room1") - .on("postgres_changes", filter: ChannelFilter(event: "*", schema: "public", table: "countries")) { message in - print("Change received!", message.payload) + let channel = await supabase.channel("channelId") + + let changeStream = await channel.postgresChange( + AnyAction.self, + schema: "public", + table: "users" + ) + + await channel.subscribe() + + for await change in changeStream { + switch change { + case .delete(let action): print("Deleted: \(action.oldRecord)") + case .insert(let action): print("Inserted: \(action.record)") + case .select(let action): print("Selected: \(action.record)") + case .update(let action): print("Updated": \(action.oldRecord) with \(action.record)") } - .subscribe() + } + ``` + - id: listen-to-a-specific-table-callback + name: Listen to a specific table using callback + code: | + ```swift + let channel = await supabase.channel("channelId") + + let subscription = await channel.onPostgresChange( + AnyAction.self, + schema: "public", + table: "users" + ) { change in + switch change { + case .delete(let action): print("Deleted: \(action.oldRecord)") + case .insert(let action): print("Inserted: \(action.record)") + case .select(let action): print("Selected: \(action.record)") + case .update(let action): print("Updated": \(action.oldRecord) with \(action.record)") + } + } + + await channel.subscribe() + + // remove subscription some time later + subscription.remove() ``` - id: listen-to-inserts name: Listen to inserts code: | ```swift - supabase.realtime - .channel("room1") - .on("postgres_changes", filter: ChannelFilter(event: "INSERT", schema: "public", table: "countries")) { message in - print("Change received!", message.payload) - } - .subscribe() + let channel = await supabase.channel("channelId") + + let insertions = await channel.postgresChange( + InsertAction.self, + schema: "public", + table: "users" + ) + + await channel.subscribe() + + for await insert in insertions { + print("Inserted: \(insert.record)") + } + ``` + - id: listen-to-inserts-callback + name: Listen to inserts using callback + code: | + ```swift + let channel = await supabase.channel("channelId") + + let subscription = await channel.onPostgresChange( + InsertAction.self, + schema: "public", + table: "users" + ) { insert in + print("Inserted: \(insert.record)") + } + + await channel.subscribe() + + // remove subscription some time later + subscription.remove() ``` - id: listen-to-updates name: Listen to updates description: | By default, Supabase will send only the updated record. If you want to receive the previous values as well you can - enable full replication for the table you are listening to: + enable full replication for the table you are listening too: ```sql alter table "your_table" replica identity full; ``` code: | ```swift - supabase.realtime - .channel("room1") - .on("postgres_changes", filter: ChannelFilter(event: "UPDATE", schema: "public", table: "countries")) { message in - print("Change received!", message.payload) - } - .subscribe() + let channel = await supabase.channel("channelId") + + let updates = await channel.postgresChange( + UpdateAction.self, + schema: "public", + table: "users" + ) + + await channel.subscribe() + + for await update in updates { + print("Updated: \(update.oldRecord) with \(update.record)") + } + ``` + - id: listen-to-updates-callback + name: Listen to updates using callback + description: | + By default, Supabase will send only the updated record. If you want to receive the previous values as well you can + enable full replication for the table you are listening too: + + ```sql + alter table "your_table" replica identity full; ``` + code: | + ```swift + let channel = await supabase.channel("channelId") + + let subscription = await channel.onPostgresChange( + UpdateAction.self, + schema: "public", + table: "users" + ) { update in + print("Updated: \(update.oldRecord) with \(update.record)") + } + + await channel.subscribe() + + // remove subscription some time later + subscription.remove() + ``` - id: listen-to-deletes name: Listen to deletes description: | @@ -2985,131 +3506,142 @@ functions: ``` code: | ```swift - supabase.realtime - .channel("room1") - .on("postgres_changes", filter: ChannelFilter(event: "DELETE", schema: "public", table: "countries")) { message in - print("Change received!", message.payload) - } - .subscribe() + let channel = await supabase.channel("channelId") + + let deletions = await channel.postgresChange( + DeleteAction.self, + schema: "public", + table: "users" + ) + + await channel.subscribe() + + for await deletion in deletions { + print("Deleted: \(deletion.oldRecord)") + } + ``` + - id: listen-to-deletes-callback + name: Listen to deletes using callback + description: | + By default, Supabase does not send deleted records. If you want to receive the deleted record you can + enable full replication for the table you are listening too: + + ```sql + alter table "your_table" replica identity full; ``` - - id: listen-to-multiple-events - name: Listen to multiple events - description: You can chain listeners if you want to listen to multiple events for each table. code: | ```swift - supabase.realtime - .channel("room1") - .on("postgres_changes", filter: ChannelFilter(event: "INSERT", schema: "public", table: "countries"), handler: handleRecordInserted) - .on("postgres_changes", filter: ChannelFilter(event: "DELETE", schema: "public", table: "countries"), handler: handleRecordDeleted) - .subscribe() + let channel = await supabase.channel("channelId") - func handleRecordInserted(_ message: Message) { - // handle message + let subscription = await channel.onPostgresChange( + DeleteAction.self, + schema: "public", + table: "users" + ) { deletion in + print("Deleted: \(deletion.oldRecord)") } - func handleRecordDeleted(_ message: Message) { - // handle message - } + await channel.subscribe() + + // remove subscription some time later + subscription.remove() ``` - id: listening-to-row-level-changes name: Listen to row level changes - description: You can listen to individual rows using the format `{table}:{col}=eq.{val}` - where `{col}` is the column name, and `{val}` is the value which you want to match. - notes: | - - ``eq`` filter works with all database types as under the hood, it's casting both the filter value and the database value to the correct type and then comparing them. code: | ```swift - supabase.realtime - .channel("room1") - .on( - "postgres_changes", - filter: ChannelFilter( - event: "INSERT", - schema: "public", - table: "countries", - filter: "id=eq.200" - ), - handler: handleRecordInserted - ) - .subscribe() + let channel = await supabase.channel("channelId") - func handleRecordInserted(_ message: Message) { - // handle message - } + let deletions = await channel.postgresChange( + DeleteAction.self, + schema: "public", + table: "users", + filter: "id=eq.1" + ) + + await channel.subscribe() + + for await deletion in deletions { + print("Deleted: \(deletion.oldRecord)") + } ``` - - id: broadcast-message - title: broadcastMessage() - description: | - Broadcast a message to all connected clients to a channel. - notes: | - - When using REST you don't need to subscribe to the channel - examples: - - id: send-a-message - name: Send a message via websocket - isSpotlight: true + - id: listening-to-row-level-changes-callback + name: Listen to row level changes using callback code: | ```swift - supabase.realtime - .channel("room1") - .subscribe { status, error in - if status == .subscribed { - Task { - await channel.send( - type: "broadcast", - event: "cursor-pos", - payload: ["x": Double.random(in: 0...1), "y": Double.random(in: 0...1)] - ) - } - } - } - ``` - - id: send-a-message-via-rest - name: Send a message via REST - isSpotlight: true - code: | - ```swift - await supabase.realtime - .channel("room1") - .send( - type: "broadcast", - event: "cursor-pos", - payload: ["x": Double.random(in: 0...1), "y": Double.random(in: 0...1)] - ) - ``` - - id: get-channels - title: channels - examples: - - id: get-all-channels - name: Get all channels - isSpotlight: true - code: | - ```swift - let channels = supabase.realtime.channels + let channel = await supabase.channel("channelId") + + let subscription = await channel.onPostgresChange( + DeleteAction.self, + schema: "public", + table: "users", + filter: "id=eq.1" + ) { deletion in + print("Deleted: \(deletion.oldRecord)") + } + + await channel.subscribe() + + // remove subscription some time later + subscription.remove() ``` - id: remove-channel - title: removeChannel() + description: | + Unsubscribes and removes Realtime channel from Realtime client. + title: "removeChannel()" notes: | - - Removing a channel is a great way to maintain the performance of your project's Realtime service as well as your database if you're listening to Postgres changes. Supabase will automatically handle cleanup 30 seconds after a client is disconnected, but unused channels may cause degradation as more clients are simultaneously subscribed. + - Removing a channel is a great way to maintain the performance of your project's Realtime service as well as your database if you're listening to Postgres changes. + - Supabase will automatically handle cleanup 30 seconds after a client is disconnected, but unused channels may cause degradation as more clients are simultaneously subscribed. + - If you removed all channels, the client automatically disconnects from the Realtime websocket. This can be disabled in the Realtime config by setting `disconnectOnNoSubscriptions` to false. examples: - id: removes-a-channel - name: Removes a channel + name: Remove a channel isSpotlight: true code: | ```swift - supabase.realtime.remove(myChannel) - ``` + let channel = await supabase.channel("channelId") + //... + await supabase.removeChannel(channel) + ``` + - id: unsubscribe-channel + name: Unsubscribe from a channel + isSpotlight: true + code: | + ```swift + let channel = await supabase.channel("channelId") + + //... + await channel.unsubscribe() + ``` - id: remove-all-channels title: removeAllChannels() + $ref: "@supabase/supabase-js.index.SupabaseClient.removeAllChannels" notes: | + Unsubscribes and removes all Realtime channels from Realtime client. - Removing channels is a great way to maintain the performance of your project's Realtime service as well as your database if you're listening to Postgres changes. Supabase will automatically handle cleanup 30 seconds after a client is disconnected, but unused channels may cause degradation as more clients are simultaneously subscribed. + - If you removed all channels, the client automatically disconnects from the Realtime websocket. This can be disabled in the Realtime config by setting `disconnectOnNoSubscriptions` to false. examples: - id: remove-all-channels name: Remove all channels isSpotlight: true code: | ```swift - supabase.realtime.removeAllChannels() + await supabase.removeAllChannels() + ``` + - id: get-channels + title: getChannels() + $ref: "@supabase/supabase-js.index.SupabaseClient.getChannels" + notes: | + Returns all Realtime channels. + examples: + - id: get-all-channels + name: Get all channels + isSpotlight: true + code: | + ```swift + let channels = await supabase.channels ``` - id: list-buckets @@ -3247,8 +3779,9 @@ functions: .upload( path: "public/\(fileName)", file: fileData, - fileOptions: FileOptions( + options: FileOptions( cacheControl: "3600", + contentType: "image/png", upsert: false ) ) @@ -3274,8 +3807,9 @@ functions: .update( path: "public/\(fileName)", file: fileData, - fileOptions: FileOptions( + options: FileOptions( cacheControl: "3600", + contentType: "image/png", upsert: true ) ) @@ -3367,6 +3901,25 @@ functions: note: | You can also sepcify a `String` in the `download` parameter to define the file name for the downloaded asset. + - id: from-create-signed-urls + title: from.createSignedUrls() + notes: | + - RLS policy permissions required: + - `buckets` table permissions: none + - `objects` table permissions: `select` + - Refer to the [Storage guide](/docs/guides/storage/security/access-control) on how access control works + examples: + - id: create-signed-urls + name: Create Signed URLs + isSpotlight: true + code: | + ```swift + let urls = try await supabase + .storage + .from("avatars") + .createSignedURLs(paths: ["folder/avatar1.png", "folder/avatar2.png"], expiresIn: 60) + ``` + - id: from-get-public-url title: from.getPublicUrl() notes: | diff --git a/apps/docs/tsconfig.json b/apps/docs/tsconfig.json index cbc90dcb0d5..69ffa9315d0 100644 --- a/apps/docs/tsconfig.json +++ b/apps/docs/tsconfig.json @@ -7,7 +7,7 @@ "~/*": ["./*"], "@ui/*": ["./../../packages/ui/src/*"] // handle ui package paths }, - "target": "es2015", + "target": "ES2021", "lib": ["dom", "dom.iterable", "esnext"], "allowJs": true, "skipLibCheck": true, diff --git a/apps/docs/types/api.d.ts b/apps/docs/types/api.d.ts index 2cc2f1a9c47..e86ac47b93f 100644 --- a/apps/docs/types/api.d.ts +++ b/apps/docs/types/api.d.ts @@ -41,6 +41,14 @@ export interface paths { /** Send exit survey to HubSpot */ post: operations['SendExitSurveyController_sendExitSurvey'] } + '/platform/feedback/upgrade': { + /** Send upgrade survey to survey_responses table */ + post: operations['SendUpgradeSurveyController_sendUpgradeSurvey'] + } + '/platform/feedback/docs': { + /** Send feedback on docs */ + post: operations['SendDocsFeedbackController_sendDocsFeedback'] + } '/platform/signup': { /** Sign up with email and password */ post: operations['SignUpController_signUp'] @@ -100,6 +108,10 @@ export interface paths { /** Gets project backups */ get: operations['BackupsController_getBackups'] } + '/platform/database/{ref}/backups/enable-physical-backups': { + /** Enable usage of physical backups */ + post: operations['BackupsController_enablePhysicalBackup'] + } '/platform/database/{ref}/backups/download': { /** Download project backup */ post: operations['BackupsController_downloadBackup'] @@ -583,6 +595,50 @@ export interface paths { /** Gets project's usage api requests count */ get: operations['UsageApiController_getApiRequestsCount'] } + '/platform/projects/{ref}/analytics/warehouse/tenant': { + /** Gets project's warehouse tenant from logflare */ + get: operations['TenantController_getTenant'] + } + '/platform/projects/{ref}/analytics/warehouse/collections': { + /** Lists project's warehouse collections from logflare */ + get: operations['CollectionController_listCollections'] + /** Create a warehouse collection */ + post: operations['CollectionController_createCollection'] + } + '/platform/projects/{ref}/analytics/warehouse/collections/{token}': { + /** Get a warehouse collection */ + get: operations['CollectionController_getCollection'] + /** Delete a warehouse collection */ + delete: operations['CollectionController_deleteCollection'] + /** Update a warehouse collection */ + patch: operations['CollectionController_updateCollection'] + } + '/platform/projects/{ref}/analytics/warehouse/access-tokens': { + /** Lists project's warehouse access tokens from logflare */ + get: operations['AccessTokenController_listAccessTokens'] + /** Create a warehouse access token */ + post: operations['AccessTokenController_createAccessToken'] + } + '/platform/projects/{ref}/analytics/warehouse/access-tokens/{token}': { + /** Delete a warehouse access token */ + delete: operations['AccessTokenController_deleteAccessToken'] + } + '/platform/projects/{ref}/analytics/warehouse/endpoints': { + /** Lists project's warehouse endpoints from logflare */ + get: operations['EndpointController_listEndpoints'] + /** Create a warehouse endpoint */ + post: operations['EndpointController_createEndpoint'] + } + '/platform/projects/{ref}/analytics/warehouse/endpoints/{token}': { + /** Update a warehouse endpoint */ + put: operations['EndpointController_updateEndpoint'] + /** Delete a warehouse endpoint */ + delete: operations['EndpointController_deleteEndpoint'] + } + '/platform/projects/{ref}/analytics/warehouse/query': { + /** Lists project's warehouse queries from logflare */ + get: operations['WarehouseQueryController_runQuery'] + } '/platform/projects/{ref}/config/pgbouncer': { /** Gets project's pgbouncer config */ get: operations['PgbouncerConfigController_getPgbouncerConfig'] @@ -699,6 +755,16 @@ export interface paths { /** Deletes objects */ delete: operations['StorageObjectsController_deleteObjects'] } + '/platform/storage/{ref}/credentials': { + /** Gets project storage credentials */ + get: operations['StorageS3CredentialsController_getAllCredentials'] + /** Creates project storage credential */ + post: operations['StorageS3CredentialsController_createCredential'] + } + '/platform/storage/{ref}/credentials/{id}': { + /** Deletes project storage credential */ + delete: operations['StorageS3CredentialsController_deleteCredential'] + } '/platform/stripe/invoices': { /** Gets invoices for the given customer */ get: operations['InvoicesController_getInvoices'] @@ -822,14 +888,6 @@ export interface paths { /** Get GitHub connection branch */ get: operations['GitHubBranchesController_getConnectionBranch'] } - '/platform/integrations/github/pull-requests/{connectionId}': { - /** List GitHub connection pull requests */ - get: operations['GitHubPullRequestsController_getConnectionPullRequests'] - } - '/platform/integrations/github/pull-requests/{connectionId}/{branchName}': { - /** List GitHub pull requests for a specific branch */ - get: operations['GitHubPullRequestsController_validateConnectionBranch'] - } '/platform/integrations/github/repositories': { /** Gets GitHub repositories for user */ get: operations['GitHubRepositoriesController_listRepositories'] @@ -864,12 +922,24 @@ export interface paths { /** Reset JWT if leaked keys found by GitHub secret scanning */ post: operations['GithubSecretAlertController_resetJwt'] } + '/system/projects/{ref}/functions/{function_slug}': { + /** + * Update a function + * @description Updates a function with the specified slug and project. + */ + patch: operations['SystemFunctionSlugController_updateFunction'] + } '/system/projects/{ref}/functions': { /** * List all functions * @description Returns all functions you've previously added to the specified project. */ get: operations['SystemFunctionsController_getFunctions'] + /** + * Create a function + * @description Creates a function and adds it to the specified project. + */ + post: operations['SystemFunctionsController_createFunction'] /** Deletes all Edge Functions from a project */ delete: operations['SystemFunctionsController_systemDeleteAllFunctions'] } @@ -944,6 +1014,10 @@ export interface paths { /** Updates restriction status of an org */ put: operations['OrgRestrictionsSystemController_updateRestriction'] } + '/system/partner-organizations': { + /** Creates a partner organization */ + post: operations['AwsPartnerOrganizationsSystemController_createPartnerOrganization'] + } '/system/integrations/vercel/webhooks': { /** Processes Vercel event */ post: operations['VercelWebhooksController_processEvent'] @@ -1020,6 +1094,10 @@ export interface paths { /** Gets project backups */ get: operations['BackupsController_getBackups'] } + '/v0/database/{ref}/backups/enable-physical-backups': { + /** Enable usage of physical backups */ + post: operations['BackupsController_enablePhysicalBackup'] + } '/v0/database/{ref}/backups/download': { /** Download project backup */ post: operations['BackupsController_downloadBackup'] @@ -1353,6 +1431,50 @@ export interface paths { /** Gets project's usage api requests count */ get: operations['UsageApiController_getApiRequestsCount'] } + '/v0/projects/{ref}/analytics/warehouse/tenant': { + /** Gets project's warehouse tenant from logflare */ + get: operations['TenantController_getTenant'] + } + '/v0/projects/{ref}/analytics/warehouse/collections': { + /** Lists project's warehouse collections from logflare */ + get: operations['CollectionController_listCollections'] + /** Create a warehouse collection */ + post: operations['CollectionController_createCollection'] + } + '/v0/projects/{ref}/analytics/warehouse/collections/{token}': { + /** Get a warehouse collection */ + get: operations['CollectionController_getCollection'] + /** Delete a warehouse collection */ + delete: operations['CollectionController_deleteCollection'] + /** Update a warehouse collection */ + patch: operations['CollectionController_updateCollection'] + } + '/v0/projects/{ref}/analytics/warehouse/access-tokens': { + /** Lists project's warehouse access tokens from logflare */ + get: operations['AccessTokenController_listAccessTokens'] + /** Create a warehouse access token */ + post: operations['AccessTokenController_createAccessToken'] + } + '/v0/projects/{ref}/analytics/warehouse/access-tokens/{token}': { + /** Delete a warehouse access token */ + delete: operations['AccessTokenController_deleteAccessToken'] + } + '/v0/projects/{ref}/analytics/warehouse/endpoints': { + /** Lists project's warehouse endpoints from logflare */ + get: operations['EndpointController_listEndpoints'] + /** Create a warehouse endpoint */ + post: operations['EndpointController_createEndpoint'] + } + '/v0/projects/{ref}/analytics/warehouse/endpoints/{token}': { + /** Update a warehouse endpoint */ + put: operations['EndpointController_updateEndpoint'] + /** Delete a warehouse endpoint */ + delete: operations['EndpointController_deleteEndpoint'] + } + '/v0/projects/{ref}/analytics/warehouse/query': { + /** Lists project's warehouse queries from logflare */ + get: operations['WarehouseQueryController_runQuery'] + } '/v0/projects/{ref}/config/pgbouncer': { /** Gets project's pgbouncer config */ get: operations['PgbouncerConfigController_getPgbouncerConfig'] @@ -1451,6 +1573,16 @@ export interface paths { /** Deletes objects */ delete: operations['StorageObjectsController_deleteObjects'] } + '/v0/storage/{ref}/credentials': { + /** Gets project storage credentials */ + get: operations['StorageS3CredentialsController_getAllCredentials'] + /** Creates project storage credential */ + post: operations['StorageS3CredentialsController_createCredential'] + } + '/v0/storage/{ref}/credentials/{id}': { + /** Deletes project storage credential */ + delete: operations['StorageS3CredentialsController_deleteCredential'] + } '/v1/branches/{branch_id}': { /** * Get database branch config @@ -1468,6 +1600,13 @@ export interface paths { */ patch: operations['BranchController_updateBranch'] } + '/v1/branches/{branch_id}/reset': { + /** + * Resets a database branch + * @description Resets the specified database branch + */ + post: operations['BranchController_resetBranch'] + } '/v1/projects': { /** * List all projects @@ -1640,6 +1779,18 @@ export interface paths { /** Updates a project's auth config */ patch: operations['V1AuthConfigController_updateV1AuthConfig'] } + '/v1/projects/{ref}/config/auth/third-party-auth': { + /** Lists all third-party auth integrations */ + get: operations['ThirdPartyAuthController_listTPAForProject'] + /** Creates a new third-party auth integration */ + post: operations['ThirdPartyAuthController_createTPAForProject'] + } + '/v1/projects/{ref}/config/auth/third-party-auth/{tpa_id}': { + /** Get a third-party integration */ + get: operations['ThirdPartyAuthController_getTPAForProject'] + /** Removes a third-party auth integration */ + delete: operations['ThirdPartyAuthController_deleteTPAForProject'] + } '/v1/projects/{ref}/config/auth/sso/providers': { /** Lists all SSO providers */ get: operations['ProvidersController_listAllProviders'] @@ -1860,6 +2011,20 @@ export interface components { additionalFeedback?: string exitAction?: string } + SendUpgradeSurveyBody: { + orgSlug?: string + prevPlan?: string + currentPlan?: string + reasons: string[] + additionalFeedback?: string + } + SendDocsFeedbackBody: { + page: string + isHelpful: boolean + title: string + feedback?: string + team?: string + } SignUpBody: { email: string password: string @@ -1899,11 +2064,13 @@ export interface components { MAILER_SUBJECTS_RECOVERY: string MAILER_SUBJECTS_EMAIL_CHANGE: string MAILER_SUBJECTS_MAGIC_LINK: string + MAILER_SUBJECTS_REAUTHENTICATION: string MAILER_TEMPLATES_INVITE_CONTENT: string MAILER_TEMPLATES_CONFIRMATION_CONTENT: string MAILER_TEMPLATES_RECOVERY_CONTENT: string MAILER_TEMPLATES_EMAIL_CHANGE_CONTENT: string MAILER_TEMPLATES_MAGIC_LINK_CONTENT: string + MAILER_TEMPLATES_REAUTHENTICATION_CONTENT: string MFA_MAX_ENROLLED_FACTORS: number URI_ALLOW_LIST: string EXTERNAL_ANONYMOUS_USERS_ENABLED: boolean @@ -1959,6 +2126,10 @@ export interface components { HOOK_PASSWORD_VERIFICATION_ATTEMPT_URI: string HOOK_CUSTOM_ACCESS_TOKEN_ENABLED: boolean HOOK_CUSTOM_ACCESS_TOKEN_URI: string + HOOK_SEND_SMS_ENABLED: boolean + HOOK_SEND_SMS_URI: string + HOOK_SEND_EMAIL_ENABLED: boolean + HOOK_SEND_EMAIL_URI: string EXTERNAL_APPLE_ENABLED: boolean EXTERNAL_APPLE_CLIENT_ID: string EXTERNAL_APPLE_SECRET: string @@ -2042,7 +2213,9 @@ export interface components { MAILER_SUBJECTS_RECOVERY?: string MAILER_SUBJECTS_EMAIL_CHANGE?: string MAILER_SUBJECTS_MAGIC_LINK?: string + MAILER_SUBJECTS_REAUTHENTICATION?: string MAILER_TEMPLATES_INVITE_CONTENT?: string + MAILER_TEMPLATES_REAUTHENTICATION_CONTENT?: string MAILER_TEMPLATES_CONFIRMATION_CONTENT?: string MAILER_TEMPLATES_RECOVERY_CONTENT?: string MAILER_TEMPLATES_EMAIL_CHANGE_CONTENT?: string @@ -2107,6 +2280,10 @@ export interface components { HOOK_PASSWORD_VERIFICATION_ATTEMPT_URI?: string HOOK_CUSTOM_ACCESS_TOKEN_ENABLED?: boolean HOOK_CUSTOM_ACCESS_TOKEN_URI?: string + HOOK_SEND_SMS_ENABLED?: boolean + HOOK_SEND_SMS_URI?: string + HOOK_SEND_EMAIL_ENABLED?: boolean + HOOK_SEND_EMAIL_URI?: string EXTERNAL_APPLE_ENABLED?: boolean EXTERNAL_APPLE_CLIENT_ID?: string EXTERNAL_APPLE_SECRET?: string @@ -2207,6 +2384,7 @@ export interface components { updated_at?: string is_sso_user?: boolean deleted_at?: string + is_anonymous?: boolean } UsersResponse: { total: number @@ -2263,14 +2441,17 @@ export interface components { migrated_at: string | null } OrganizationResponse: { + /** @enum {string|null} */ + restriction_status: 'grace_period' | 'grace_period_over' | 'restricted' | null id: number slug: string name: string - billing_email: string + billing_email: string | null is_owner: boolean - stripe_customer_id: string - subscription_id?: string + stripe_customer_id: string | null + subscription_id: string | null opt_in_tags: string[] + restriction_data: Record } GetOrganizationByFlyOrganizationIdResponse: { slug: string @@ -2788,7 +2969,7 @@ export interface components { payment_method_card_details?: components['schemas']['PaymentMethodCardDetails'] billing_via_partner: boolean /** @enum {string} */ - billing_partner: 'fly' + billing_partner: 'fly' | 'aws' scheduled_plan_change: components['schemas']['ScheduledPlanChange'] | null customer_balance: number nano_enabled: boolean @@ -3785,6 +3966,30 @@ export interface components { > result?: Record[] } + LFUser: { + token: string + metadata: { + project_ref?: string + } + } + LFSource: { + token: string + id: number + name: string + } + LFEndpoint: { + token: string + id: number + name: string + description: string + query: string + language: Record + sandboxable: boolean | null + cache_duration_seconds: number + proactive_requerying_seconds: number + max_limit: number + enable_auth: number + } PgbouncerConfigResponse: { default_pool_size?: number ignore_startup_parameters?: string @@ -3835,11 +4040,14 @@ export interface components { } UpdatePostgrestConfigBody: { max_rows?: number + db_pool?: number db_extra_search_path?: string db_schema?: string } V1PostgrestConfigResponse: { max_rows: number + /** @description If `null`, the value is automatically configured based on compute size. */ + db_pool: number | null db_schema: string db_extra_search_path: string } @@ -4118,6 +4326,23 @@ export interface components { DeleteObjectsBody: { paths: string[] } + GetStorageCredential: { + id: string + description: string + created_at: string + } + GetStorageCredentialsResponse: { + data: components['schemas']['GetStorageCredential'][] + } + CreateStorageCredentialBody: { + description: string + } + CreateStorageCredentialResponse: { + id: string + access_key: string + secret_key: string + description: string + } Invoice: { id: string invoice_pdf: string @@ -4355,6 +4580,11 @@ export interface components { public_key: string token_name?: string } + V1UpdateFunctionBody: { + name?: string + body?: string + verify_jwt?: boolean + } FunctionResponse: { id: string slug: string @@ -4369,6 +4599,12 @@ export interface components { entrypoint_path?: string import_map_path?: string } + V1CreateFunctionBody: { + slug: string + name: string + body: string + verify_jwt?: boolean + } SecretResponse: { name: string value: string @@ -4493,6 +4729,7 @@ export interface components { /** @enum {string} */ tier: 'tier_payg' | 'tier_pro' | 'tier_free' | 'tier_team' | 'tier_enterprise' price_id?: string + skip_free_plan_validations?: boolean } RestrictionData: { grace_period_end?: string @@ -4523,6 +4760,15 @@ export interface components { restriction_data?: components['schemas']['RestrictionData'] message?: string } + CreateAwsPartnerOrganizationBody: { + primary_email: string + name: string + } + AwsPartnerOrganizationResponse: { + id: number + slug: string + name: string + } GetMetricsBody: { /** @enum {string} */ metric: 'user_queries' @@ -4565,6 +4811,7 @@ export interface components { branch_name?: string git_branch?: string reset_on_push?: boolean + persistent?: boolean } BranchResponse: { id: string @@ -4575,11 +4822,18 @@ export interface components { git_branch?: string pr_number?: number reset_on_push: boolean + persistent: boolean /** @enum {string} */ status: 'CREATING_PROJECT' | 'RUNNING_MIGRATIONS' | 'MIGRATIONS_PASSED' | 'MIGRATIONS_FAILED' created_at: string updated_at: string } + BranchDeleteResponse: { + message: string + } + BranchResetResponse: { + message: string + } V1DatabaseResponse: { /** @description Database host */ host: string @@ -4604,6 +4858,19 @@ export interface components { */ created_at: string database?: components['schemas']['V1DatabaseResponse'] + /** @enum {string} */ + status: + | 'ACTIVE_HEALTHY' + | 'ACTIVE_UNHEALTHY' + | 'COMING_UP' + | 'GOING_DOWN' + | 'INACTIVE' + | 'INIT_FAILED' + | 'REMOVED' + | 'RESTORING' + | 'UNKNOWN' + | 'UPGRADING' + | 'PAUSING' } V1CreateProjectBody: { /** @description Database password */ @@ -4643,6 +4910,11 @@ export interface components { /** @deprecated */ kps_enabled?: boolean desired_instance_size?: components['schemas']['DesiredInstanceSize'] + /** + * @description Template URL used to create the project from the CLI. + * @example https://github.com/supabase/supabase/tree/master/examples/slack-clone/nextjs-slack-clone + */ + template_url?: string } ApiKeyResponse: { name: string @@ -4693,6 +4965,8 @@ export interface components { } PostgrestConfigWithJWTSecretResponse: { max_rows: number + /** @description If `null`, the value is automatically configured based on compute size. */ + db_pool: number | null db_schema: string db_extra_search_path: string jwt_secret?: string @@ -4925,11 +5199,13 @@ export interface components { mailer_subjects_invite: string | null mailer_subjects_magic_link: string | null mailer_subjects_recovery: string | null + mailer_subjects_reauthentication: string | null mailer_templates_confirmation_content: string | null mailer_templates_email_change_content: string | null mailer_templates_invite_content: string | null mailer_templates_magic_link_content: string | null mailer_templates_recovery_content: string | null + mailer_templates_reauthentication_content: string | null mfa_max_enrolled_factors: number | null password_hibp_enabled: boolean | null password_min_length: number | null @@ -5001,11 +5277,13 @@ export interface components { mailer_subjects_recovery?: string mailer_subjects_email_change?: string mailer_subjects_magic_link?: string + mailer_subjects_reauthentication?: string mailer_templates_invite_content?: string mailer_templates_confirmation_content?: string mailer_templates_recovery_content?: string mailer_templates_email_change_content?: string mailer_templates_magic_link_content?: string + mailer_templates_reauthentication_content?: string mfa_max_enrolled_factors?: number uri_allow_list?: string external_anonymous_users_enabled?: boolean @@ -5066,6 +5344,10 @@ export interface components { hook_password_verification_attempt_uri?: string hook_custom_access_token_enabled?: boolean hook_custom_access_token_uri?: string + hook_send_sms_enabled?: boolean + hook_send_sms_uri?: string + hook_send_email_enabled?: boolean + hook_send_email_uri?: string external_apple_enabled?: boolean external_apple_client_id?: string external_apple_secret?: string @@ -5131,6 +5413,22 @@ export interface components { external_zoom_client_id?: string external_zoom_secret?: string } + CreateThirdPartyAuthBody: { + oidc_issuer_url?: string + jwks_url?: string + custom_jwks?: Record + } + ThirdPartyAuth: { + id: string + type: string + oidc_issuer_url?: string | null + jwks_url?: string | null + custom_jwks?: unknown + resolved_jwks?: unknown + inserted_at: string + updated_at: string + resolved_at?: string | null + } AttributeValue: { default?: Record | number | string | boolean name?: string @@ -5232,12 +5530,6 @@ export interface components { V1RestorePitrBody: { recovery_time_target_unix: number } - V1CreateFunctionBody: { - slug: string - name: string - body: string - verify_jwt?: boolean - } FunctionSlugResponse: { id: string slug: string @@ -5252,11 +5544,6 @@ export interface components { entrypoint_path?: string import_map_path?: string } - V1UpdateFunctionBody: { - name?: string - body?: string - verify_jwt?: boolean - } V1StorageBucketResponse: { id: string name: string @@ -5650,6 +5937,44 @@ export interface operations { } } } + /** Send upgrade survey to survey_responses table */ + SendUpgradeSurveyController_sendUpgradeSurvey: { + requestBody: { + content: { + 'application/json': components['schemas']['SendUpgradeSurveyBody'] + } + } + responses: { + 201: { + content: { + 'application/json': components['schemas']['SendFeedbackResponse'] + } + } + /** @description Failed to send upgrade survey */ + 500: { + content: never + } + } + } + /** Send feedback on docs */ + SendDocsFeedbackController_sendDocsFeedback: { + requestBody: { + content: { + 'application/json': components['schemas']['SendDocsFeedbackBody'] + } + } + responses: { + 201: { + content: { + 'application/json': components['schemas']['SendFeedbackResponse'] + } + } + /** @description Failed to send feedback for docs */ + 500: { + content: never + } + } + } /** Sign up with email and password */ SignUpController_signUp: { requestBody: { @@ -5870,7 +6195,13 @@ export interface operations { parameters: { path: { ref: string - template: 'confirmation' | 'email-change' | 'invite' | 'magic-link' | 'recovery' + template: + | 'confirmation' + | 'email-change' + | 'invite' + | 'magic-link' + | 'recovery' + | 'reauthentication' } } responses: { @@ -5986,6 +6317,24 @@ export interface operations { } } } + /** Enable usage of physical backups */ + BackupsController_enablePhysicalBackup: { + parameters: { + path: { + /** @description Project ref */ + ref: string + } + } + responses: { + 201: { + content: never + } + /** @description Failed to enable usage of physical backups */ + 500: { + content: never + } + } + } /** Download project backup */ BackupsController_downloadBackup: { parameters: { @@ -9653,6 +10002,270 @@ export interface operations { } } } + /** Gets project's warehouse tenant from logflare */ + TenantController_getTenant: { + parameters: { + path: { + /** @description Project ref */ + ref: string + } + } + responses: { + 200: { + content: { + 'application/json': components['schemas']['LFUser'] + } + } + 403: { + content: never + } + /** @description Failed to fetch or provision warehouse tenant */ + 500: { + content: never + } + } + } + /** Lists project's warehouse collections from logflare */ + CollectionController_listCollections: { + parameters: { + path: { + /** @description Project ref */ + ref: string + } + } + responses: { + 200: { + content: { + 'application/json': components['schemas']['LFSource'][] + } + } + 403: { + content: never + } + /** @description Failed to fetch warehouse collections */ + 500: { + content: never + } + } + } + /** Create a warehouse collection */ + CollectionController_createCollection: { + responses: { + 201: { + content: { + 'application/json': components['schemas']['LFSource'] + } + } + 403: { + content: never + } + /** @description Failed to create warehouse collection */ + 500: { + content: never + } + } + } + /** Get a warehouse collection */ + CollectionController_getCollection: { + responses: { + 200: { + content: { + 'application/json': components['schemas']['LFSource'] + } + } + 403: { + content: never + } + /** @description Failed to fetch warehouse collection */ + 500: { + content: never + } + } + } + /** Delete a warehouse collection */ + CollectionController_deleteCollection: { + responses: { + 200: { + content: { + 'application/json': components['schemas']['LFSource'] + } + } + 403: { + content: never + } + /** @description Failed to delete warehouse collection */ + 500: { + content: never + } + } + } + /** Update a warehouse collection */ + CollectionController_updateCollection: { + responses: { + 200: { + content: { + 'application/json': components['schemas']['LFSource'] + } + } + 403: { + content: never + } + /** @description Failed to update warehouse collection */ + 500: { + content: never + } + } + } + /** Lists project's warehouse access tokens from logflare */ + AccessTokenController_listAccessTokens: { + parameters: { + path: { + /** @description Project ref */ + ref: string + } + } + responses: { + 200: { + content: { + 'application/json': components['schemas']['LFSource'][] + } + } + 403: { + content: never + } + /** @description Failed to fetch warehouse access tokens */ + 500: { + content: never + } + } + } + /** Create a warehouse access token */ + AccessTokenController_createAccessToken: { + responses: { + 201: { + content: { + 'application/json': components['schemas']['LFSource'] + } + } + 403: { + content: never + } + /** @description Failed to create warehouse access token */ + 500: { + content: never + } + } + } + /** Delete a warehouse access token */ + AccessTokenController_deleteAccessToken: { + responses: { + 200: { + content: { + 'application/json': components['schemas']['LFSource'] + } + } + 403: { + content: never + } + /** @description Failed to delete warehouse access token */ + 500: { + content: never + } + } + } + /** Lists project's warehouse endpoints from logflare */ + EndpointController_listEndpoints: { + parameters: { + path: { + /** @description Project ref */ + ref: string + } + } + responses: { + 200: { + content: { + 'application/json': components['schemas']['LFEndpoint'][] + } + } + 403: { + content: never + } + /** @description Failed to fetch warehouse endpoints */ + 500: { + content: never + } + } + } + /** Create a warehouse endpoint */ + EndpointController_createEndpoint: { + responses: { + 201: { + content: { + 'application/json': components['schemas']['LFEndpoint'] + } + } + 403: { + content: never + } + /** @description Failed to create warehouse endpoint */ + 500: { + content: never + } + } + } + /** Update a warehouse endpoint */ + EndpointController_updateEndpoint: { + responses: { + 200: { + content: { + 'application/json': components['schemas']['LFEndpoint'] + } + } + 403: { + content: never + } + /** @description Failed to update warehouse endpoint */ + 500: { + content: never + } + } + } + /** Delete a warehouse endpoint */ + EndpointController_deleteEndpoint: { + responses: { + 200: { + content: never + } + 403: { + content: never + } + /** @description Failed to delete warehouse endpoint */ + 500: { + content: never + } + } + } + /** Lists project's warehouse queries from logflare */ + WarehouseQueryController_runQuery: { + parameters: { + path: { + /** @description Project ref */ + ref: string + } + } + responses: { + 200: { + content: never + } + 403: { + content: never + } + /** @description Failed to fetch warehouse endpoints */ + 500: { + content: never + } + } + } /** Gets project's pgbouncer config */ PgbouncerConfigController_getPgbouncerConfig: { parameters: { @@ -10439,6 +11052,80 @@ export interface operations { } } } + /** Gets project storage credentials */ + StorageS3CredentialsController_getAllCredentials: { + parameters: { + path: { + /** @description Project ref */ + ref: string + } + } + responses: { + 200: { + content: { + 'application/json': components['schemas']['GetStorageCredentialsResponse'] + } + } + 403: { + content: never + } + /** @description Failed to get project storage credentials */ + 500: { + content: never + } + } + } + /** Creates project storage credential */ + StorageS3CredentialsController_createCredential: { + parameters: { + path: { + /** @description Project ref */ + ref: string + } + } + requestBody: { + content: { + 'application/json': components['schemas']['CreateStorageCredentialBody'] + } + } + responses: { + 201: { + content: { + 'application/json': components['schemas']['CreateStorageCredentialResponse'] + } + } + 403: { + content: never + } + /** @description Failed to create project storage credential */ + 500: { + content: never + } + } + } + /** Deletes project storage credential */ + StorageS3CredentialsController_deleteCredential: { + parameters: { + path: { + /** @description Project ref */ + ref: string + /** @description Storage credential id */ + id: string + } + } + responses: { + 200: { + content: never + } + 403: { + content: never + } + /** @description Failed to delete project storage credential */ + 500: { + content: never + } + } + } /** Gets invoices for the given customer */ InvoicesController_getInvoices: { parameters: { @@ -10739,7 +11426,7 @@ export interface operations { parameters: { query: { /** @description Filter results by integration name. Optional */ - integration_name: string + integration_name: unknown } } responses: { @@ -11079,52 +11766,6 @@ export interface operations { } } } - /** List GitHub connection pull requests */ - GitHubPullRequestsController_getConnectionPullRequests: { - parameters: { - query: { - pr_number: number[] - } - path: { - connectionId: number - } - } - responses: { - 200: { - content: { - 'application/json': Record[] - } - } - /** @description Failed to list GitHub connection pull requests */ - 500: { - content: never - } - } - } - /** List GitHub pull requests for a specific branch */ - GitHubPullRequestsController_validateConnectionBranch: { - parameters: { - query?: { - per_page?: number - page?: number - } - path: { - connectionId: number - branchName: string - } - } - responses: { - 200: { - content: { - 'application/json': Record[] - } - } - /** @description Failed to validate GitHub connection branch */ - 500: { - content: never - } - } - } /** Gets GitHub repositories for user */ GitHubRepositoriesController_listRepositories: { responses: { @@ -11176,7 +11817,13 @@ export interface operations { parameters: { path: { ref: string - template: 'confirmation' | 'email-change' | 'invite' | 'magic-link' | 'recovery' + template: + | 'confirmation' + | 'email-change' + | 'invite' + | 'magic-link' + | 'recovery' + | 'reauthentication' } } responses: { @@ -11338,6 +11985,48 @@ export interface operations { } } } + /** + * Update a function + * @description Updates a function with the specified slug and project. + */ + SystemFunctionSlugController_updateFunction: { + parameters: { + query?: { + slug?: string + name?: string + verify_jwt?: boolean + import_map?: boolean + entrypoint_path?: string + import_map_path?: string + } + path: { + /** @description Project ref */ + ref: string + /** @description Function slug */ + function_slug: string + } + } + requestBody: { + content: { + 'application/json': components['schemas']['V1UpdateFunctionBody'] + 'application/vnd.denoland.eszip': components['schemas']['V1UpdateFunctionBody'] + } + } + responses: { + 200: { + content: { + 'application/json': components['schemas']['FunctionResponse'] + } + } + 403: { + content: never + } + /** @description Failed to update function with given slug */ + 500: { + content: never + } + } + } /** * List all functions * @description Returns all functions you've previously added to the specified project. @@ -11364,6 +12053,46 @@ export interface operations { } } } + /** + * Create a function + * @description Creates a function and adds it to the specified project. + */ + SystemFunctionsController_createFunction: { + parameters: { + query?: { + slug?: string + name?: string + verify_jwt?: boolean + import_map?: boolean + entrypoint_path?: string + import_map_path?: string + } + path: { + /** @description Project ref */ + ref: string + } + } + requestBody: { + content: { + 'application/json': components['schemas']['V1CreateFunctionBody'] + 'application/vnd.denoland.eszip': components['schemas']['V1CreateFunctionBody'] + } + } + responses: { + 201: { + content: { + 'application/json': components['schemas']['FunctionResponse'] + } + } + 403: { + content: never + } + /** @description Failed to create project's function */ + 500: { + content: never + } + } + } /** Deletes all Edge Functions from a project */ SystemFunctionsController_systemDeleteAllFunctions: { parameters: { @@ -11732,6 +12461,25 @@ export interface operations { } } } + /** Creates a partner organization */ + AwsPartnerOrganizationsSystemController_createPartnerOrganization: { + requestBody: { + content: { + 'application/json': components['schemas']['CreateAwsPartnerOrganizationBody'] + } + } + responses: { + 201: { + content: { + 'application/json': components['schemas']['AwsPartnerOrganizationResponse'] + } + } + /** @description Unexpected error creating a partner organization */ + 500: { + content: never + } + } + } /** Processes Vercel event */ VercelWebhooksController_processEvent: { parameters: { @@ -11845,7 +12593,9 @@ export interface operations { } responses: { 200: { - content: never + content: { + 'application/json': components['schemas']['BranchDeleteResponse'] + } } /** @description Failed to delete database branch */ 500: { @@ -11881,6 +12631,29 @@ export interface operations { } } } + /** + * Resets a database branch + * @description Resets the specified database branch + */ + BranchController_resetBranch: { + parameters: { + path: { + /** @description Branch ID */ + branch_id: string + } + } + responses: { + 201: { + content: { + 'application/json': components['schemas']['BranchResetResponse'] + } + } + /** @description Failed to reset database branch */ + 500: { + content: never + } + } + } /** * List all projects * @description Returns a list of all projects you've previously created. @@ -12833,6 +13606,89 @@ export interface operations { } } } + /** Lists all third-party auth integrations */ + ThirdPartyAuthController_listTPAForProject: { + parameters: { + path: { + /** @description Project ref */ + ref: string + } + } + responses: { + 200: { + content: { + 'application/json': components['schemas']['ThirdPartyAuth'][] + } + } + 403: { + content: never + } + } + } + /** Creates a new third-party auth integration */ + ThirdPartyAuthController_createTPAForProject: { + parameters: { + path: { + /** @description Project ref */ + ref: string + } + } + requestBody: { + content: { + 'application/json': components['schemas']['CreateThirdPartyAuthBody'] + } + } + responses: { + 201: { + content: { + 'application/json': components['schemas']['ThirdPartyAuth'] + } + } + 403: { + content: never + } + } + } + /** Get a third-party integration */ + ThirdPartyAuthController_getTPAForProject: { + parameters: { + path: { + /** @description Project ref */ + ref: string + tpa_id: string + } + } + responses: { + 200: { + content: { + 'application/json': components['schemas']['ThirdPartyAuth'] + } + } + 403: { + content: never + } + } + } + /** Removes a third-party auth integration */ + ThirdPartyAuthController_deleteTPAForProject: { + parameters: { + path: { + /** @description Project ref */ + ref: string + tpa_id: string + } + } + responses: { + 200: { + content: { + 'application/json': components['schemas']['ThirdPartyAuth'] + } + } + 403: { + content: never + } + } + } /** Lists all SSO providers */ ProvidersController_listAllProviders: { parameters: { diff --git a/apps/storybook/package.json b/apps/storybook/package.json index 9fedddb1606..26e70bc3464 100644 --- a/apps/storybook/package.json +++ b/apps/storybook/package.json @@ -24,7 +24,7 @@ "@storybook/test": "^8.0.0-rc.1", "react": "^18.2.0", "react-dom": "^18.2.0", - "storybook": "^8.0.0-rc.1" + "storybook": "^8.0.4" }, "dependencies": { "@storybook/node-logger": "^8.0.0-rc.1" diff --git a/apps/studio/.nvmrc b/apps/studio/.nvmrc deleted file mode 100644 index 3c032078a4a..00000000000 --- a/apps/studio/.nvmrc +++ /dev/null @@ -1 +0,0 @@ -18 diff --git a/apps/studio/Dockerfile b/apps/studio/Dockerfile index c56fbd311c0..89eb1e38891 100644 --- a/apps/studio/Dockerfile +++ b/apps/studio/Dockerfile @@ -8,7 +8,7 @@ # docker builder prune # docker build . -f studio/Dockerfile --target production -t studio:latest --no-cache -FROM node:18-slim as base +FROM node:20-slim as base # Fixes issues with Sentry CLI and SSL certificates during build # TODO: Git is added because it's needed to build libpg, remove it once they publish a binary on the S3 bucket @@ -27,7 +27,7 @@ WORKDIR /app FROM base as turbo COPY . . -RUN npx turbo@1.12.3 prune --scope=studio --docker +RUN npx turbo@1.13.2 prune --scope=studio --docker # Install dev dependencies (only if needed) FROM base as deps @@ -56,5 +56,5 @@ COPY --from=builder /app/apps/studio/.next/standalone ./ COPY --from=builder /app/apps/studio/.next/static ./apps/studio/.next/static EXPOSE 3000 ENTRYPOINT ["docker-entrypoint.sh"] -HEALTHCHECK --interval=5s --timeout=5s --retries=3 CMD node -e "require('http').get('http://localhost:3000/api/profile', (r) => {if (r.statusCode !== 200) throw new Error(r.statusCode)})" +HEALTHCHECK --interval=5s --timeout=5s --retries=3 CMD node -e "fetch('http://localhost:3000/api/profile').then((r) => {if (r.status !== 200) throw new Error(r.status)})" CMD ["node", "apps/studio/server.js"] diff --git a/apps/studio/components/grid/components/footer/Footer.tsx b/apps/studio/components/grid/components/footer/Footer.tsx index a2b7435596e..98d023d30c1 100644 --- a/apps/studio/components/grid/components/footer/Footer.tsx +++ b/apps/studio/components/grid/components/footer/Footer.tsx @@ -38,7 +38,7 @@ const Footer = ({ isLoading, isRefetching }: FooterProps) => { width={75} options={['definition', 'data']} activeOption={selectedView} - borderOverride="border-gray-500" + borderOverride="border" onClickOption={setSelectedView} /> diff --git a/apps/studio/components/grid/components/footer/pagination/Pagination.tsx b/apps/studio/components/grid/components/footer/pagination/Pagination.tsx index bc866bad1b0..5df372be147 100644 --- a/apps/studio/components/grid/components/footer/pagination/Pagination.tsx +++ b/apps/studio/components/grid/components/footer/pagination/Pagination.tsx @@ -190,34 +190,30 @@ const Pagination = ({ isLoading: isLoadingRows = false }: PaginationProps) => { setIsConfirmPreviousModalOpen(false)} - onSelectConfirm={() => { + title="Confirm moving to previous page" + confirmLabel="Confirm" + onCancel={() => setIsConfirmPreviousModalOpen(false)} + onConfirm={() => { onConfirmPreviousPage() }} > - -

    - The currently selected lines will be deselected, do you want to proceed? -

    -
    +

    + The currently selected lines will be deselected, do you want to proceed? +

    setIsConfirmNextModalOpen(false)} - onSelectConfirm={() => { + title="Confirm moving to next page" + confirmLabel="Confirm" + onCancel={() => setIsConfirmNextModalOpen(false)} + onConfirm={() => { onConfirmNextPage() }} > - -

    - The currently selected lines will be deselected, do you want to proceed? -

    -
    +

    + The currently selected lines will be deselected, do you want to proceed? +

    )} diff --git a/apps/studio/components/grid/components/header/Header.tsx b/apps/studio/components/grid/components/header/Header.tsx index 03495120e1a..05c34564a71 100644 --- a/apps/studio/components/grid/components/header/Header.tsx +++ b/apps/studio/components/grid/components/header/Header.tsx @@ -377,7 +377,7 @@ const RowHeader = ({ table, sorts, filters }: RowHeaderProps) => { )} -
    +
    setIsOpen(false)} - onSelectConfirm={() => { + variant={'destructive'} + title="Confirm to delete" + confirmLabel="Delete" + confirmLabelLoading="Deleting" + onCancel={() => setIsOpen(false)} + onConfirm={() => { if (token) onDeleteToken(token.id) }} > - -

    - {`This action cannot be undone. Are you sure you want to delete "${token?.name}" token?`} -

    -
    +

    + {`This action cannot be undone. Are you sure you want to delete "${token?.name}" token?`} +

    ) diff --git a/apps/studio/components/interfaces/Account/AuditLogs.tsx b/apps/studio/components/interfaces/Account/AuditLogs.tsx index 2273b229437..5af85ed5787 100644 --- a/apps/studio/components/interfaces/Account/AuditLogs.tsx +++ b/apps/studio/components/interfaces/Account/AuditLogs.tsx @@ -3,10 +3,11 @@ import dayjs from 'dayjs' import { useEffect, useState } from 'react' import { Alert, Button, IconArrowDown, IconArrowUp, IconRefreshCw } from 'ui' -import { FilterPopover, LogDetailsPanel } from 'components/interfaces/AuditLogs' +import { LogDetailsPanel } from 'components/interfaces/AuditLogs' import Table from 'components/to-be-cleaned/Table' import AlertError from 'components/ui/AlertError' import { DatePicker } from 'components/ui/DatePicker' +import { FilterPopover } from 'components/ui/FilterPopover' import ShimmeringLoader from 'components/ui/ShimmeringLoader' import type { AuditLog } from 'data/organizations/organization-audit-logs-query' import { useOrganizationsQuery } from 'data/organizations/organizations-query' diff --git a/apps/studio/components/interfaces/Account/Preferences/AccountDeletion.tsx b/apps/studio/components/interfaces/Account/Preferences/AccountDeletion.tsx new file mode 100644 index 00000000000..69eeb340a98 --- /dev/null +++ b/apps/studio/components/interfaces/Account/Preferences/AccountDeletion.tsx @@ -0,0 +1,27 @@ +import Panel from 'components/ui/Panel' +import { AlertDescription_Shadcn_, AlertTitle_Shadcn_, Alert_Shadcn_ } from 'ui' +import { CriticalIcon } from 'ui-patterns/Icons/StatusIcons' +import { DeleteAccountButton } from './DeleteAccountButton' + +export const AccountDeletion = () => { + return ( + <> + + + + + Request for account deletion + + Deleting your account is permanent and cannot be undone. Your data will be deleted + within 30 days, except we may retain some metadata and logs for longer where required + or permitted by law. + + + + + + + + + ) +} diff --git a/apps/studio/components/interfaces/Account/Preferences/DeleteAccountButton.tsx b/apps/studio/components/interfaces/Account/Preferences/DeleteAccountButton.tsx new file mode 100644 index 00000000000..abe01bb2986 --- /dev/null +++ b/apps/studio/components/interfaces/Account/Preferences/DeleteAccountButton.tsx @@ -0,0 +1,173 @@ +import { zodResolver } from '@hookform/resolvers/zod' +import { SupportCategories } from '@supabase/shared-types/out/constants' +import { useEffect, useState } from 'react' +import { useForm } from 'react-hook-form' +import toast from 'react-hot-toast' +import * as z from 'zod' + +import { useSendSupportTicketMutation } from 'data/feedback/support-ticket-send' +import { useOrganizationsQuery } from 'data/organizations/organizations-query' +import { useProfile } from 'lib/profile' +import { + Button, + Dialog, + DialogContent, + DialogDescription, + DialogHeader, + DialogSection, + DialogSectionSeparator, + DialogTitle, + DialogTrigger, + FormControl_Shadcn_, + FormField_Shadcn_, + FormItem_Shadcn_, + FormLabel_Shadcn_, + Form_Shadcn_, + Input_Shadcn_, +} from 'ui' + +export const DeleteAccountButton = () => { + const { profile } = useProfile() + const [isOpen, setIsOpen] = useState(false) + const { data: organizations, isSuccess } = useOrganizationsQuery() + + const accountEmail = profile?.primary_email + const FormSchema = z.object({ account: z.string() }) + const form = useForm>({ + mode: 'onBlur', + reValidateMode: 'onBlur', + resolver: zodResolver(FormSchema), + defaultValues: { account: '' }, + }) + const { account } = form.watch() + + const { mutate: submitSupportTicket, isLoading } = useSendSupportTicketMutation({ + onSuccess: () => { + setIsOpen(false) + toast.success( + 'Successfully submitted account deletion request - we will reach out to you via email once the request is completed!', + { duration: 8000 } + ) + }, + onError: (error) => { + toast.error(`Failed to submit account deletion request: ${error}`) + }, + }) + + const onConfirmDelete = async () => { + if (!accountEmail) return console.error('Account information is required') + + const payload = { + subject: 'Account Deletion Request', + message: 'I want to delete my account.', + category: SupportCategories.PROBLEM, + severity: 'Low', + allowSupportAccess: false, + verified: true, + projectRef: 'no-project', + } + + submitSupportTicket(payload) + } + + useEffect(() => { + if (isOpen && form !== undefined) form.reset({ account: '' }) + }, [form, isOpen]) + + return ( + + + + + + + {(organizations ?? []).length > 0 ? ( + <> + Leave all organizations before requesting account deletion + + This will allow us to process your account deletion request faster + + + ) : ( + <> + Are you sure you want to delete your account? + + Deleting your account is permanent and{' '} + cannot be undone + + + )} + + + {isSuccess && ( + <> + {organizations.length > 0 ? ( + + + Before submitting an account deletion request, please ensure that your account is + not part of any organization. This can be done by leaving leaving or deleting the + organizations that you are a part of. + + + + ) : ( + +
    onConfirmDelete())} + > + ( + + + Please type{' '} + {profile?.primary_email ?? ''} to + confirm + + + + + + )} + /> + +
    + +
    + +
    + )} + + )} +
    +
    + ) +} diff --git a/apps/studio/components/interfaces/Account/TOTPFactors/AddNewFactorModal.tsx b/apps/studio/components/interfaces/Account/TOTPFactors/AddNewFactorModal.tsx index 62d943f4895..c425c0276c2 100644 --- a/apps/studio/components/interfaces/Account/TOTPFactors/AddNewFactorModal.tsx +++ b/apps/studio/components/interfaces/Account/TOTPFactors/AddNewFactorModal.tsx @@ -64,29 +64,27 @@ const FirstStep = ({ visible, name, enroll, setName, isEnrolling, onClose }: Fir { + onCancel={onClose} + onConfirm={() => { enroll({ factorType: 'totp', friendlyName: name, }) }} > - -
    - setName(e.target.value)} - /> -
    -
    +
    + setName(e.target.value)} + /> +
    ) } @@ -152,65 +150,63 @@ const SecondStep = ({ { + onCancel={() => { // If a factor has been created (but not verified), unenroll it. This will be run as a // side effect so that it's not confusing to the user why the modal stays open while // unenrolling. if (factor) unenroll({ factorId: factor.id }) }} - onSelectConfirm={() => factor && challengeAndVerify({ factorId: factor.id, code })} + onConfirm={() => factor && challengeAndVerify({ factorId: factor.id, code })} > - - <> -
    - - Use an authenticator app to scan the following QR code, and provide the code from the - app to complete the enrolment. - + <> +
    + + Use an authenticator app to scan the following QR code, and provide the code from the + app to complete the enrolment. + +
    + {isLoading && ( +
    +
    - {isLoading && ( -
    - + )} + {factor && ( + <> +
    +
    + {factor.totp.uri} +
    - )} - {factor && ( - <> -
    -
    - {factor.totp.uri} -
    -
    -
    - - } - /> -
    -
    - setCode(e.target.value)} - /> -
    - - )} - - +
    + + } + /> +
    +
    + setCode(e.target.value)} + /> +
    + + )} + ) } diff --git a/apps/studio/components/interfaces/Account/TOTPFactors/DeleteFactorModal.tsx b/apps/studio/components/interfaces/Account/TOTPFactors/DeleteFactorModal.tsx index 37fb4319ee9..9aed5f1f80b 100644 --- a/apps/studio/components/interfaces/Account/TOTPFactors/DeleteFactorModal.tsx +++ b/apps/studio/components/interfaces/Account/TOTPFactors/DeleteFactorModal.tsx @@ -34,45 +34,36 @@ const DeleteFactorModal = ({ factorId && unenroll({ factorId })} + onCancel={onClose} + onConfirm={() => factorId && unenroll({ factorId })} + alert={{ + title: lastFactorToBeDeleted + ? 'Multi-factor authentication will be disabled' + : 'This action cannot be undone', + description: lastFactorToBeDeleted + ? 'There are no other factors that are set up once you delete this factor, as such your account will no longer be guarded by multi-factor authentication' + : 'You will no longer be able to use this authenticator app for multi-factor authentication when signing in to the dashboard', + }} > - - - - - {lastFactorToBeDeleted - ? 'Multi-factor authentication will be disabled' - : 'This action cannot be undone'} - - - {lastFactorToBeDeleted - ? 'There are no other factors that are set up once you delete this factor, as such your account will no longer be guarded by multi-factor authentication' - : 'You will no longer be able to use this authenticator app for multi-factor authentication when signing in to the dashboard'} - - -
    -

    Before deleting this factor, consider:

    -
      - {lastFactorToBeDeleted ? ( - <> -
    • Adding another authenticator app as a factor prior to deleting
    • -
    • Ensure that your account does not need multi-factor authentication
    • - - ) : ( - <> -
    • Your backup authenticator app is still available to use
    • -
    • Adding another authenticator app thereafter as a backup
    • - - )} -
    -
    -
    +

    Before deleting this factor, consider:

    +
      + {lastFactorToBeDeleted ? ( + <> +
    • Adding another authenticator app as a factor prior to deleting
    • +
    • Ensure that your account does not need multi-factor authentication
    • + + ) : ( + <> +
    • Your backup authenticator app is still available to use
    • +
    • Adding another authenticator app thereafter as a backup
    • + + )} +
    ) } diff --git a/apps/studio/components/interfaces/App/AppBannerWrapper.tsx b/apps/studio/components/interfaces/App/AppBannerWrapper.tsx index 8c4aa827cd7..1d922af9845 100644 --- a/apps/studio/components/interfaces/App/AppBannerWrapper.tsx +++ b/apps/studio/components/interfaces/App/AppBannerWrapper.tsx @@ -1,9 +1,10 @@ import { useMonaco } from '@monaco-editor/react' import { useTheme } from 'next-themes' -import { PropsWithChildren, useEffect } from 'react' +import { PropsWithChildren, useMemo } from 'react' import IncidentBanner from 'components/layouts/AppLayout/IncidentBanner' import { NoticeBanner } from 'components/layouts/AppLayout/NoticeBanner' +import { RestrictrionBanner } from 'components/layouts/AppLayout/RestrictionBanner' import { getTheme } from 'components/ui/CodeEditor' import { useFlag } from 'hooks' @@ -14,7 +15,9 @@ const AppBannerWrapper = ({ children }: PropsWithChildren<{}>) => { const ongoingIncident = useFlag('ongoingIncident') const showNoticeBanner = useFlag('showNoticeBanner') - useEffect(() => { + // Define the supabase theme for Monaco before anything is rendered. Using useEffect would sometime load the theme + // after the editor was loaded, so it looked off. useMemo will always be run before rendering + useMemo(() => { if (monaco && resolvedTheme) { const mode: any = getTheme(resolvedTheme) monaco.editor.defineTheme('supabase', mode) @@ -26,6 +29,7 @@ const AppBannerWrapper = ({ children }: PropsWithChildren<{}>) => {
    {ongoingIncident && } {showNoticeBanner && } +
    {children}
    diff --git a/apps/studio/components/interfaces/App/FeaturePreview/CLSPreview.tsx b/apps/studio/components/interfaces/App/FeaturePreview/CLSPreview.tsx index bfff28e84f1..2ba030e0281 100644 --- a/apps/studio/components/interfaces/App/FeaturePreview/CLSPreview.tsx +++ b/apps/studio/components/interfaces/App/FeaturePreview/CLSPreview.tsx @@ -44,7 +44,7 @@ const CLSPreview = () => {
  • diff --git a/apps/studio/components/interfaces/AuditLogs/index.ts b/apps/studio/components/interfaces/AuditLogs/index.ts index 082c6e83fde..25dafb4f074 100644 --- a/apps/studio/components/interfaces/AuditLogs/index.ts +++ b/apps/studio/components/interfaces/AuditLogs/index.ts @@ -1,2 +1 @@ -export { default as FilterPopover } from './FilterPopover' export { default as LogDetailsPanel } from './LogDetailsPanel' diff --git a/apps/studio/components/interfaces/Auth/AuthProvidersForm/AuthProvidersForm.tsx b/apps/studio/components/interfaces/Auth/AuthProvidersForm/AuthProvidersForm.tsx index 1329e50d50f..2ac9bfd9095 100644 --- a/apps/studio/components/interfaces/Auth/AuthProvidersForm/AuthProvidersForm.tsx +++ b/apps/studio/components/interfaces/Auth/AuthProvidersForm/AuthProvidersForm.tsx @@ -2,10 +2,19 @@ import { useParams } from 'common' import { FormHeader } from 'components/ui/Forms' import { HorizontalShimmerWithIcon } from 'components/ui/Shimmers' import { useAuthConfigQuery } from 'data/auth/auth-config-query' -import { AlertDescription_Shadcn_, AlertTitle_Shadcn_, Alert_Shadcn_, IconAlertCircle } from 'ui' +import { + AlertDescription_Shadcn_, + AlertTitle_Shadcn_, + Alert_Shadcn_, + Button, + IconAlertCircle, +} from 'ui' import { PROVIDERS_SCHEMAS } from '../AuthProvidersFormValidation' import { ProviderCollapsibleClasses } from './AuthProvidersForm.constants' import ProviderForm from './ProviderForm' +import { WarningIcon } from 'ui-patterns/Icons/StatusIcons' +import Link from 'next/link' +import { ExternalLink } from 'lucide-react' const AuthProvidersForm = () => { const { ref: projectRef } = useParams() @@ -25,6 +34,28 @@ const AuthProvidersForm = () => { />
    + {authConfig?.EXTERNAL_EMAIL_ENABLED && authConfig?.MAILER_OTP_EXP > 3600 && ( + + +
    + OTP expiry exceeds recommended threshold + +

    + We have detected that you have enabled the email provider with the OTP expiry set + to more than an hour. It is recommended to set this value to less than an hour. +

    + +
    +
    +
    + )} {isLoading && PROVIDERS_SCHEMAS.map((provider) => (
    { const doubleNegativeKeys = ['MAILER_AUTOCONFIRM', 'SMS_AUTOCONFIRM'] const canUpdateConfig = useCheckPermissions(PermissionAction.UPDATE, 'custom_config_gotrue') + const { data: settings } = useProjectApiQuery({ projectRef }) + const apiUrl = `${settings?.autoApiService.protocol}://${settings?.autoApiService.endpoint}` + const { data: customDomainData } = useCustomDomainsQuery({ projectRef }) + const generateInitialValues = () => { const initialValues: { [x: string]: string | boolean } = {} @@ -176,7 +181,7 @@ const ProviderForm = ({ config, provider }: ProviderFormProps) => { value={ customDomainData?.customDomain?.status === 'active' ? `https://${customDomainData.customDomain?.hostname}/auth/v1/callback` - : `https://${projectRef}.supabase.co/auth/v1/callback` + : `${apiUrl}/auth/v1/callback` } descriptionText={ diff --git a/apps/studio/components/interfaces/Auth/AuthTemplatesValidation.tsx b/apps/studio/components/interfaces/Auth/AuthTemplatesValidation.tsx index bd35698a3f4..d6e8f48ae09 100644 --- a/apps/studio/components/interfaces/Auth/AuthTemplatesValidation.tsx +++ b/apps/studio/components/interfaces/Auth/AuthTemplatesValidation.tsx @@ -24,6 +24,7 @@ const CONFIRMATION: FormSchema = { - \`{{ .SiteURL }}\` : The URL of the site - \`{{ .Email }}\` : The user's email address - \`{{ .Data }}\` : The user's \`user_metadata\` +- \`{{ .RedirectTo }}\` : The URL of \`emailRedirectTo\` passed in options `, }, }, @@ -58,6 +59,7 @@ const INVITE: FormSchema = { - \`{{ .SiteURL }}\` : The URL of the site - \`{{ .Email }}\` : The user's email address - \`{{ .Data }}\` : The user's \`user_metadata\` +- \`{{ .RedirectTo }}\` : The URL of \`redirectTo\` passed in options `, }, }, @@ -92,6 +94,7 @@ const MAGIC_LINK: FormSchema = { - \`{{ .SiteURL }}\` : The URL of the site - \`{{ .Email }}\` : The user's email address - \`{{ .Data }}\` : The user's \`user_metadata\` +- \`{{ .RedirectTo }}\` : The URL of \`emailRedirectTo\` passed in options `, }, }, @@ -127,6 +130,7 @@ const EMAIL_CHANGE: FormSchema = { - \`{{ .Email }}\` : The original user's email address - \`{{ .NewEmail }}\` : The user's new email address - \`{{ .Data }}\` : The user's \`user_metadata\` +- \`{{ .RedirectTo }}\` : The URL of \`emailRedirectTo\` passed in options `, }, }, @@ -161,6 +165,7 @@ const RECOVERY: FormSchema = { - \`{{ .SiteURL }}\` : The URL of the site - \`{{ .Email }}\` : The user's email address - \`{{ .Data }}\` : The user's \`user_metadata\` +- \`{{ .RedirectTo }}\` : The URL of \`redirectTo\` passed in options `, }, }, diff --git a/apps/studio/components/interfaces/Auth/BasicAuthSettingsForm/BasicAuthSettingsForm.tsx b/apps/studio/components/interfaces/Auth/BasicAuthSettingsForm/BasicAuthSettingsForm.tsx index 1f92215b86e..f9a44561ca4 100644 --- a/apps/studio/components/interfaces/Auth/BasicAuthSettingsForm/BasicAuthSettingsForm.tsx +++ b/apps/studio/components/interfaces/Auth/BasicAuthSettingsForm/BasicAuthSettingsForm.tsx @@ -31,7 +31,10 @@ import { useAuthConfigUpdateMutation } from 'data/auth/auth-config-update-mutati import { useOrgSubscriptionQuery } from 'data/subscriptions/org-subscription-query' import { useCheckPermissions, useSelectedOrganization } from 'hooks' import { IS_PLATFORM } from 'lib/constants' +import Link from 'next/link' +import { WarningIcon } from 'ui-patterns/Icons/StatusIcons' import FormField from '../AuthProvidersForm/FormField' +import { ExternalLink } from 'lucide-react' // Use a const string to represent no chars option. Represented as empty string on the backend side. const NO_REQUIRED_CHARACTERS = 'NO_REQUIRED_CHARS' @@ -41,18 +44,20 @@ const LOWER_UPPER_DIGITS_SYMBOLS = LOWER_UPPER_DIGITS + ':!@#$%^&*()_+-=[]{};\'\ const schema = object({ DISABLE_SIGNUP: boolean().required(), + EXTERNAL_ANONYMOUS_USERS_ENABLED: boolean().required(), SECURITY_MANUAL_LINKING_ENABLED: boolean().required(), SITE_URL: string().required('Must have a Site URL'), SECURITY_CAPTCHA_ENABLED: boolean().required(), SECURITY_CAPTCHA_SECRET: string().when('SECURITY_CAPTCHA_ENABLED', { is: true, - then: string().required('Must have a Captcha secret'), + then: (schema) => schema.required('Must have a Captcha secret'), }), SECURITY_CAPTCHA_PROVIDER: string().when('SECURITY_CAPTCHA_ENABLED', { is: true, - then: string() - .oneOf(['hcaptcha', 'turnstile']) - .required('Captcha provider must be either hcaptcha or turnstile'), + then: (schema) => + schema + .oneOf(['hcaptcha', 'turnstile']) + .required('Captcha provider must be either hcaptcha or turnstile'), }), SESSIONS_TIMEBOX: number().min(0, 'Must be a positive number'), SESSIONS_INACTIVITY_TIMEOUT: number().min(0, 'Must be a positive number'), @@ -101,6 +106,7 @@ const BasicAuthSettingsForm = () => { const INITIAL_VALUES = { DISABLE_SIGNUP: !authConfig?.DISABLE_SIGNUP, + EXTERNAL_ANONYMOUS_USERS_ENABLED: authConfig?.EXTERNAL_ANONYMOUS_USERS_ENABLED, SECURITY_MANUAL_LINKING_ENABLED: authConfig?.SECURITY_MANUAL_LINKING_ENABLED || false, SITE_URL: authConfig?.SITE_URL, SECURITY_CAPTCHA_ENABLED: authConfig?.SECURITY_CAPTCHA_ENABLED || false, @@ -202,6 +208,84 @@ const BasicAuthSettingsForm = () => { } disabled={!canUpdateConfig} /> + + } + disabled={!canUpdateConfig} + /> + {values.EXTERNAL_ANONYMOUS_USERS_ENABLED && ( +
    + + +
    + + Anonymous users will use the{' '} + authenticated role when signing in + + +

    + As a result, anonymous users will be subjected to RLS policies that + apply to the public and{' '} + authenticated roles. We strongly + advise{' '} + + reviewing your RLS policies + {' '} + to ensure that access to your data is restricted where required. +

    + +
    +
    +
    + {!values.SECURITY_CAPTCHA_ENABLED && ( + + + + We highly recommend{' '} + { + const el = document.getElementById('enable-captcha') + if (el) el.scrollIntoView({ behavior: 'smooth', block: 'center' }) + }} + > + enabling captcha + {' '} + for anonymous sign-ins + + + This will prevent potential abuse on sign-ins which may bloat your + database and incur costs for monthly active users (MAU) + + + )} +
    + )} Passwords}> @@ -309,7 +393,10 @@ const BasicAuthSettingsForm = () => { /> - Bot and Abuse Protection}> + Bot and Abuse Protection} + > { + const querySkeleton = `create policy "${name}" on "${schema}"."${table}" as ${behavior} for ${command} to ${roles}` + const query = + command === 'insert' + ? `${querySkeleton} with check (${check});` + : `${querySkeleton} using (${using})${(check ?? '').length > 0 ? `with check (${check});` : ';'}` + return query +} + +export const generateAlterPolicyQuery = ({ + name, + newName, + schema, + table, + command, + roles, + using, + check, +}: { + name: string + newName: string + schema: string + table: string + command: string + roles: string + using: string + check: string +}) => { + const querySkeleton = `alter policy "${name}" on "${schema}"."${table}" to ${roles}` + const query = + command === 'insert' + ? `${querySkeleton} with check (${check});` + : `${querySkeleton} using (${using})${(check ?? '').length > 0 ? `with check (${check});` : ';'}` + if (newName === name) return query + else return `${query}\n${querySkeleton} rename to "${newName}"` +} + +export const checkIfPolicyHasChanged = ( + selectedPolicy: PostgresPolicy, + policyForm: { + name: string + roles: string[] + check: string | null + definition: string | null + } +) => { + if (selectedPolicy.command === 'INSERT' && selectedPolicy.check !== policyForm.check) { + return true + } + if ( + selectedPolicy.command !== 'INSERT' && + (selectedPolicy.definition !== policyForm.definition || + selectedPolicy.check !== policyForm.check) + ) { + return true + } + if (selectedPolicy.name !== policyForm.name) { + return true + } + if (!isEqual(selectedPolicy.roles, policyForm.roles)) { + return true + } + return false +} diff --git a/apps/studio/components/interfaces/Auth/Policies/AIPolicyEditorPanel/AIPolicyHeader.tsx b/apps/studio/components/interfaces/Auth/Policies/AIPolicyEditorPanel/AIPolicyHeader.tsx index ced99acc728..f9c2eb98f55 100644 --- a/apps/studio/components/interfaces/Auth/Policies/AIPolicyEditorPanel/AIPolicyHeader.tsx +++ b/apps/studio/components/interfaces/Auth/Policies/AIPolicyEditorPanel/AIPolicyHeader.tsx @@ -1,7 +1,13 @@ import type { PostgresPolicy } from '@supabase/postgres-meta' -import clsx from 'clsx' import { PanelLeftClose, PanelRightClose, X } from 'lucide-react' +import { useState } from 'react' + +import { useIsRLSAIAssistantEnabled } from 'components/interfaces/App/FeaturePreview/FeaturePreviewContext' import { + CollapsibleContent_Shadcn_, + CollapsibleTrigger_Shadcn_, + Collapsible_Shadcn_, + IconChevronDown, SheetClose, SheetHeader, SheetTitle, @@ -20,31 +26,87 @@ export const AIPolicyHeader = ({ assistantVisible: boolean setAssistantVisible: (v: boolean) => void }) => { + const [showDetails, setShowDetails] = useState(false) + const isAiAssistantEnabled = useIsRLSAIAssistantEnabled() + return ( - -
    + +
    Close
    - - {selectedPolicy !== undefined - ? `Update policy: ${selectedPolicy.name}` - : 'Create a new Row Level Security policy'} - +
    + + {selectedPolicy !== undefined + ? `Update policy: ${selectedPolicy.name}` + : 'Create a new Row Level Security policy'} + + {isAiAssistantEnabled && selectedPolicy !== undefined && ( + + +
    +

    + View policy details +

    + +
    +
    + +
    +
    +
    +

    Name:

    +

    {selectedPolicy?.name}

    +
    +
    +

    Action:

    +

    {selectedPolicy?.action}

    +
    +
    +

    Command:

    +

    {selectedPolicy?.command}

    +
    +
    +

    Target roles:

    +

    {selectedPolicy?.roles.join(', ')}

    +
    +
    +

    USING expression:

    +

    {selectedPolicy?.definition}

    +
    +
    +

    CHECK expression:

    +

    + {selectedPolicy?.check ?? 'None'} +

    +
    +
    +
    +
    +
    + )} +
    @@ -53,8 +115,7 @@ export const AIPolicyHeader = ({ aria-controls="ai-chat-assistant" className={cn( !assistantVisible ? 'text-foreground-lighter' : 'text-light', - 'hover:text-foreground', - 'transition' + 'mt-1 hover:text-foreground transition' )} onClick={() => setAssistantVisible(!assistantVisible)} > diff --git a/apps/studio/components/interfaces/Auth/Policies/AIPolicyEditorPanel/LockedQuerySection.tsx b/apps/studio/components/interfaces/Auth/Policies/AIPolicyEditorPanel/LockedQuerySection.tsx new file mode 100644 index 00000000000..224a8499203 --- /dev/null +++ b/apps/studio/components/interfaces/Auth/Policies/AIPolicyEditorPanel/LockedQuerySection.tsx @@ -0,0 +1,171 @@ +import { PostgresPolicy } from '@supabase/postgres-meta' +import { Lock } from 'lucide-react' +import { useRouter } from 'next/router' + +import { useParams } from 'common' +import { Button } from 'ui' +import { generateAlterPolicyQuery, generateCreatePolicyQuery } from './AIPolicyEditorPanel.utils' + +interface LockedCreateQuerySection { + schema: string + selectedPolicy?: PostgresPolicy + formFields: { name: string; table: string; behavior: string; command: string; roles: string } + editorOneRef: any + editorTwoRef: any +} + +export const LockedCreateQuerySection = ({ + schema, + selectedPolicy, + formFields, + editorOneRef, + editorTwoRef, +}: LockedCreateQuerySection) => { + const router = useRouter() + const { ref } = useParams() + + const isEditing = selectedPolicy !== undefined + const { name, table, behavior, command, roles } = formFields + + return ( +
    +
    +
    +
    + +
    +

    + Use options above to edit +

    +
    + +
    +
    +

    1

    +

    + {isEditing ? 'alter' : 'create'} policy " + {name.length === 0 ? 'policy_name' : name}" +

    +
    +
    +

    2

    +

    + on "{schema}"." + {table}" +

    +
    + {!isEditing && ( + <> +
    +

    3

    +

    + as {behavior.toLocaleUpperCase()} +

    +
    +
    +

    4

    +

    + for {command.toLocaleUpperCase()} +

    +
    + + )} +
    +

    5

    +

    + to {roles.length === 0 ? 'public' : roles} +

    +
    +
    +

    6

    +

    + {command === 'insert' ? 'with check' : 'using'}{' '} + ( +

    +
    +
    + ) +} + +export const LockedRenameQuerySection = ({ + oldName, + newName, + schema, + table, + lineNumber, +}: { + oldName: string + newName: string + schema: string + table: string + lineNumber: number +}) => { + return ( +
    +
    +
    +

    + {lineNumber} +

    +
    +

    + alter policy {oldName} +

    +
    +
    +
    +

    + {lineNumber + 1} +

    +
    +

    + on "{schema}"."{table}" +

    +
    +
    +
    +

    + {lineNumber + 2} +

    +
    +

    + rename to "{newName}"; +

    +
    +
    + ) +} diff --git a/apps/studio/components/interfaces/Auth/Policies/AIPolicyEditorPanel/Message.tsx b/apps/studio/components/interfaces/Auth/Policies/AIPolicyEditorPanel/Message.tsx index fbc544fe9c0..de1f663d796 100644 --- a/apps/studio/components/interfaces/Auth/Policies/AIPolicyEditorPanel/Message.tsx +++ b/apps/studio/components/interfaces/Auth/Policies/AIPolicyEditorPanel/Message.tsx @@ -71,7 +71,7 @@ const Message = memo(function Message({ {createdAt && ( {dayjs(createdAt).fromNow()} )} - {isDebug && Debug request} + {isDebug && Debug request}
    void -} - -const PolicyDetails = ({ policy, showDetails, toggleShowDetails }: PolicyDetailsProps) => { - if (!policy) return null - - return ( - - -
    -

    - View policy details -

    - -
    -
    - -
    -
    -
    -

    Name:

    -

    {policy.name}

    -
    -
    -

    Action:

    -

    {policy.action}

    -
    -
    -

    Command:

    -

    {policy.command}

    -
    -
    -

    Target roles:

    -

    {policy.roles.join(', ')}

    -
    -
    -

    USING expression:

    -

    {policy.definition}

    -
    -
    -

    CHECK expression:

    -

    - {policy.check ?? 'None'} -

    -
    -
    -
    -
    -
    - ) -} - -export default PolicyDetails diff --git a/apps/studio/components/interfaces/Auth/Policies/AIPolicyEditorPanel/PolicyDetailsV2.tsx b/apps/studio/components/interfaces/Auth/Policies/AIPolicyEditorPanel/PolicyDetailsV2.tsx new file mode 100644 index 00000000000..d4c2f60bfba --- /dev/null +++ b/apps/studio/components/interfaces/Auth/Policies/AIPolicyEditorPanel/PolicyDetailsV2.tsx @@ -0,0 +1,254 @@ +import { useEffect } from 'react' + +import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext' +import { useDatabaseRolesQuery } from 'data/database-roles/database-roles-query' +import { useTablesQuery } from 'data/tables/tables-query' +import { + FormControl_Shadcn_, + FormField_Shadcn_, + FormItem_Shadcn_, + FormLabel_Shadcn_, + FormMessage_Shadcn_, + Input_Shadcn_, + RadioGroupLargeItem_Shadcn_, + RadioGroup_Shadcn_, + ScrollArea, + SelectContent_Shadcn_, + SelectGroup_Shadcn_, + SelectItem_Shadcn_, + SelectTrigger_Shadcn_, + Select_Shadcn_, +} from 'ui' +import { MultiSelectV2 } from 'ui-patterns/MultiSelect/MultiSelectV2' + +interface PolicyDetailsV2Props { + schema: string + searchString?: string + selectedTable?: string + isEditing: boolean + form: any + onUpdateCommand: (command: string) => void +} + +export const PolicyDetailsV2 = ({ + schema, + searchString, + selectedTable, + isEditing, + form, + onUpdateCommand, +}: PolicyDetailsV2Props) => { + const { project } = useProjectContext() + + const { data: tables, isSuccess: isSuccessTables } = useTablesQuery({ + projectRef: project?.ref, + connectionString: project?.connectionString, + schema: schema, + sortByProperty: 'name', + includeColumns: true, + }) + + const { data: dbRoles } = useDatabaseRolesQuery({ + projectRef: project?.ref, + connectionString: project?.connectionString, + }) + const formattedRoles = (dbRoles ?? []) + .map((role) => { + return { + id: role.id, + name: role.name, + value: role.name, + disabled: false, + } + }) + .sort((a, b) => a.name.localeCompare(b.name)) + + useEffect(() => { + if (!isEditing && selectedTable === undefined) { + const table = tables?.find( + (table) => + table.schema === schema && + (table.id.toString() === searchString || table.name === searchString) + ) + if (table) { + form.setValue('table', table.name) + } else if (isSuccessTables && tables.length > 0) { + form.setValue('table', tables[0].name) + } + } + }, [isEditing, form, searchString, tables, isSuccessTables, selectedTable]) + + return ( + <> +
    +
    + ( + + Policy Name + + + + + + )} + /> + + ( + + +

    Table

    +

    + on clause +

    +
    + + form.setValue('table', value)} + > + + {schema}.{field.value} + + + + 7 ? 'h-[200px]' : ''}> + {(tables ?? []).map((table) => ( + + {table.name} + + ))} + + + + + + +
    + )} + /> + + ( + + +

    Policy Behavior

    +

    + as clause +

    +
    + + form.setValue('behavior', value)} + > + + {field.value} + + + + +

    Permissive

    +

    + Policies are combined using the "OR" Boolean operator +

    +
    + +

    Restrictive

    +

    + Policies are combined using the "AND" Boolean operator +

    +
    +
    +
    +
    +
    + +
    + )} + /> + + ( + + +

    Policy Command

    +

    + for clause +

    +
    + + { + form.setValue('command', value) + onUpdateCommand(value) + }} + className={`grid grid-cols-10 gap-3 ${isEditing ? 'opacity-50' : ''}`} + > + {['select', 'insert', 'update', 'delete', 'all'].map((x) => ( + + ))} + + + +
    + )} + /> + + ( + + +

    Target Roles

    +

    + to clause +

    +
    + + form.setValue('roles', roles.join(', '))} + /> + + +
    + )} + /> +
    +
    + + ) +} diff --git a/apps/studio/components/interfaces/Auth/Policies/AIPolicyEditorPanel/PolicyTemplates.tsx b/apps/studio/components/interfaces/Auth/Policies/AIPolicyEditorPanel/PolicyTemplates.tsx index 62f1fffdf32..73fefa60219 100644 --- a/apps/studio/components/interfaces/Auth/Policies/AIPolicyEditorPanel/PolicyTemplates.tsx +++ b/apps/studio/components/interfaces/Auth/Policies/AIPolicyEditorPanel/PolicyTemplates.tsx @@ -1,3 +1,4 @@ +import { PostgresPolicy } from '@supabase/postgres-meta' import { Search } from 'lucide-react' import { useState } from 'react' import { Badge, HoverCard, HoverCardContent, HoverCardTrigger, Input, cn } from 'ui' @@ -10,21 +11,35 @@ import NoSearchResults from 'components/ui/NoSearchResults' import { getGeneralPolicyTemplates } from '../PolicyEditorModal/PolicyEditorModal.constants' interface PolicyTemplatesProps { + schema: string + table: string + selectedPolicy?: PostgresPolicy selectedTemplate?: string - onSelectTemplate: (template: { id: string; content: string }) => void + onSelectTemplate: (template: any) => void } -export const PolicyTemplates = ({ selectedTemplate, onSelectTemplate }: PolicyTemplatesProps) => { +export const PolicyTemplates = ({ + schema, + table, + selectedPolicy, + selectedTemplate, + onSelectTemplate, +}: PolicyTemplatesProps) => { const [search, setSearch] = useState('') - const templates = getGeneralPolicyTemplates('schema_name', 'table_name') + const templates = getGeneralPolicyTemplates(schema, table.length > 0 ? table : 'table_name') + + const baseTemplates = + selectedPolicy !== undefined + ? templates.filter((t) => t.command === selectedPolicy.command) + : templates const filteredTemplates = search.length > 0 - ? templates.filter( + ? baseTemplates.filter( (template) => template.name.toLowerCase().includes(search.toLowerCase()) || template.command.toLowerCase().includes(search.toLowerCase()) ) - : templates + : baseTemplates return (
    @@ -47,7 +62,7 @@ export const PolicyTemplates = ({ selectedTemplate, onSelectTemplate }: PolicyTe
    {filteredTemplates.map((template) => { return ( - + onSelectTemplate({ id: template.id, content: template.statement })} + onClick={() => onSelectTemplate(template)} hideChevron fixedHeight={false} icon={
    {template.command} @@ -90,7 +110,7 @@ export const PolicyTemplates = ({ selectedTemplate, onSelectTemplate }: PolicyTe hideWhenDetached side="left" align="center" - className="w-96 flex" + className="w-[500px] flex" animate="slide-in" > > onSelectDebug: () => void }) => { + const isAiAssistantEnabled = useIsRLSAIAssistantEnabled() const formattedError = (error?.formattedError?.split('\n') ?? [])?.filter((x: string) => x.length > 0) ?? [] @@ -74,7 +76,7 @@ const QueryError = ({ {open ? 'Hide error details' : 'Show error details'} - {!hasHipaaAddon && ( + {!hasHipaaAddon && isAiAssistantEnabled && ( - -
    -
    - ) : null} - - {incomingChange ? ( - (diffEditorRef.current = editor)} - options={{ - wordWrap: 'on', - renderSideBySide: false, - scrollBeyondLastLine: false, - renderOverviewRuler: false, - renderLineHighlight: 'none', - minimap: { enabled: false }, - occurrencesHighlight: false, - folding: false, - selectionHighlight: false, - lineHeight: 20, - padding: { top: 10, bottom: 10 }, - }} - /> - ) : null} -
    - -
    - -
    - {error !== undefined && ( - - )} - - -
    - - -
    -
    -
    -
    -
    - {assistantVisible && ( -
    +
    + onClosingPanel()}> + - - - - Templates - - {!hasHipaaAddon && ( - - Assistant - - )} - - - - - - - - - append({ - content: message, - role: 'user', - createdAt: new Date(), - }) - } - onDiff={updateEditorWithCheckForDiff} - onChange={setIsAssistantChatInputEmpty} - loading={isLoading || isDebugSqlLoading} - /> - - -
    - )} +
    + - { - isTogglingPreviewRef.current = false - setIsClosingPolicyEditorPanel(false) - }} - onSelectConfirm={() => { - if (isTogglingPreviewRef.current) { - snap.setSelectedFeaturePreview(LOCAL_STORAGE_KEYS.UI_PREVIEW_RLS_AI_ASSISTANT) - snap.setShowFeaturePreviewModal(!snap.showFeaturePreviewModal) - } - onSelectCancel() - isTogglingPreviewRef.current = false - setIsClosingPolicyEditorPanel(false) - }} - > - -

    - Are you sure you want to close the editor? Any unsaved changes on your policy and - conversations with the Assistant will be lost. -

    -
    -
    - - +
    + {incomingChange ? ( +
    +
    + + Accept changes from assistant +
    +
    + + +
    +
    + ) : null} + + {incomingChange ? ( + (diffEditorRef.current = editor)} + options={{ + wordWrap: 'on', + renderSideBySide: false, + scrollBeyondLastLine: false, + renderOverviewRuler: false, + renderLineHighlight: 'none', + minimap: { enabled: false }, + occurrencesHighlight: false, + folding: false, + selectionHighlight: false, + lineHeight: 20, + padding: { top: 10, bottom: 10 }, + }} + /> + ) : null} + + {isAiAssistantEnabled ? ( +
    + +
    + ) : ( + <> + { + setFieldError(undefined) + if (!['update', 'all'].includes(command)) setShowCheckBlock(false) + }} + /> +
    + + +
    + { + setExpOneContentHeight(editorOneRef.current?.getContentHeight() ?? 0) + setExpOneLineCount( + editorOneRef.current?.getModel()?.getLineCount() ?? 1 + ) + }} + onMount={() => { + setTimeout(() => { + setExpOneContentHeight( + editorOneRef.current?.getContentHeight() ?? 0 + ) + setExpOneLineCount( + editorOneRef.current?.getModel()?.getLineCount() ?? 1 + ) + }, 200) + }} + /> +
    + +
    +
    +
    +

    + {7 + expOneLineCount} +

    +
    +

    + {showCheckBlock ? ( + <> + with check{' '} + ( + + ) : ( + <> + ); + + )} +

    +
    +
    + + {showCheckBlock && ( + <> +
    + { + setExpTwoContentHeight( + editorTwoRef.current?.getContentHeight() ?? 0 + ) + setExpTwoLineCount( + editorTwoRef.current?.getModel()?.getLineCount() ?? 1 + ) + }} + onMount={() => { + setTimeout(() => { + setExpTwoContentHeight( + editorTwoRef.current?.getContentHeight() ?? 0 + ) + setExpTwoLineCount( + editorTwoRef.current?.getModel()?.getLineCount() ?? 1 + ) + }, 200) + }} + /> +
    +
    +
    +
    +

    + {8 + expOneLineCount + expTwoLineCount} +

    +
    +

    + ); +

    +
    +
    + + )} + + {isRenamingPolicy && ( + + )} + + {fieldError !== undefined && ( +

    {fieldError}

    + )} + + {supportWithCheck && ( +
    + { + setFieldError(undefined) + setShowCheckBlock(!showCheckBlock) + }} + /> + + Use check expression + +
    + )} +
    + + )} + +
    + {error !== undefined && ( + { + setTabId('conversation') + onSelectDebug() + }} + open={errorPanelOpen} + setOpen={setErrorPanelOpen} + /> + )} + + + + +
    +
    +
    + {assistantVisible && ( +
    + + + setTabId('templates')} + className="px-0 data-[state=active]:bg-transparent" + > + Templates + + {isAiAssistantEnabled && !hasHipaaAddon && ( + setTabId('conversation')} + className="px-0 data-[state=active]:bg-transparent" + > + Assistant + + )} + + + + { + if (isAiAssistantEnabled) { + updateEditorWithCheckForDiff({ + id: value.id, + content: value.statement, + }) + } else { + form.setValue('name', value.name) + form.setValue('behavior', 'permissive') + form.setValue('command', value.command.toLowerCase()) + form.setValue('roles', value.roles.join(', ') ?? '') + + setUsing(` ${value.definition}`) + setCheck(` ${value.check}`) + setExpOneLineCount(1) + setExpTwoLineCount(1) + setFieldError(undefined) + + if (!['update', 'all'].includes(value.command.toLowerCase())) { + setShowCheckBlock(false) + } else if (value.check.length > 0) { + setShowCheckBlock(true) + } else { + setShowCheckBlock(false) + } + } + }} + /> + + + + + append({ + content: message, + role: 'user', + createdAt: new Date(), + }) + } + onDiff={updateEditorWithCheckForDiff} + onChange={setIsAssistantChatInputEmpty} + loading={isLoading || isDebugSqlLoading} + /> + + +
    + )} + + + + + + { + setIsClosingPolicyEditorPanel(false) + }} + onConfirm={() => { + onSelectCancel() + setIsClosingPolicyEditorPanel(false) + }} + > +

    + Are you sure you want to close the editor? Any unsaved changes on your policy and + conversations with the Assistant will be lost. +

    +
    ) }) diff --git a/apps/studio/components/interfaces/Auth/Policies/Policies.tsx b/apps/studio/components/interfaces/Auth/Policies/Policies.tsx index 0848cb88244..a299ea11ac1 100644 --- a/apps/studio/components/interfaces/Auth/Policies/Policies.tsx +++ b/apps/studio/components/interfaces/Auth/Policies/Policies.tsx @@ -1,52 +1,45 @@ import type { PostgresPolicy, PostgresTable } from '@supabase/postgres-meta' -import { useParams } from 'common/hooks' -import { PolicyEditorModal, PolicyTableRow } from 'components/interfaces/Auth/Policies' import { isEmpty } from 'lodash' +import { HelpCircle } from 'lucide-react' import { useRouter } from 'next/router' -import { useCallback, useState } from 'react' +import { useState } from 'react' import toast from 'react-hot-toast' -import { IconHelpCircle } from 'ui' -import ConfirmModal from 'ui-patterns/Dialogs/ConfirmDialog' -import { useIsRLSAIAssistantEnabled } from 'components/interfaces/App/FeaturePreview/FeaturePreviewContext' +import { useParams } from 'common' +import { PolicyTableRow } from 'components/interfaces/Auth/Policies' import ProtectedSchemaWarning from 'components/interfaces/Database/ProtectedSchemaWarning' import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext' import NoSearchResults from 'components/to-be-cleaned/NoSearchResults' import ProductEmptyState from 'components/to-be-cleaned/ProductEmptyState' import InformationBox from 'components/ui/InformationBox' -import { useDatabasePolicyCreateMutation } from 'data/database-policies/database-policy-create-mutation' import { useDatabasePolicyDeleteMutation } from 'data/database-policies/database-policy-delete-mutation' -import { useDatabasePolicyUpdateMutation } from 'data/database-policies/database-policy-update-mutation' import { useTableUpdateMutation } from 'data/tables/table-update-mutation' -import { useTableEditorStateSnapshot } from 'state/table-editor' +import ConfirmModal from 'ui-patterns/Dialogs/ConfirmDialog' interface PoliciesProps { + schema: string tables: PostgresTable[] hasTables: boolean isLocked: boolean + onSelectCreatePolicy: (table: string) => void onSelectEditPolicy: (policy: PostgresPolicy) => void } const Policies = ({ + schema, tables, hasTables, isLocked, + onSelectCreatePolicy, onSelectEditPolicy: onSelectEditPolicyAI, }: PoliciesProps) => { const router = useRouter() const { ref } = useParams() const { project } = useProjectContext() - const snap = useTableEditorStateSnapshot() - const isAiAssistantEnabled = useIsRLSAIAssistantEnabled() - const [selectedSchemaAndTable, setSelectedSchemaAndTable] = useState({}) const [selectedTableToToggleRLS, setSelectedTableToToggleRLS] = useState({}) - const [RLSEditorWithAIShown, showRLSEditorWithAI] = useState(false) - const [selectedPolicyToEdit, setSelectedPolicyToEdit] = useState({}) const [selectedPolicyToDelete, setSelectedPolicyToDelete] = useState({}) - const { mutateAsync: createDatabasePolicy } = useDatabasePolicyCreateMutation() - const { mutateAsync: updateDatabasePolicy } = useDatabasePolicyUpdateMutation() const { mutate: updateTable } = useTableUpdateMutation({ onError: (error) => { toast.error(`Failed to toggle RLS: ${error.message}`) @@ -64,14 +57,6 @@ const Policies = ({ }, }) - const closePolicyEditorModal = useCallback(() => { - setSelectedPolicyToEdit({}) - setSelectedSchemaAndTable({}) - if (RLSEditorWithAIShown) { - showRLSEditorWithAI(false) - } - }, [RLSEditorWithAIShown]) - const closeConfirmModal = () => { setSelectedPolicyToDelete({}) setSelectedTableToToggleRLS({}) @@ -81,28 +66,14 @@ const Policies = ({ setSelectedTableToToggleRLS(table) } - const onSelectCreatePolicy = (table: any) => { - setSelectedSchemaAndTable({ schema: table.schema, table: table.name }) - } - const onSelectEditPolicy = (policy: any) => { - if (isAiAssistantEnabled) { - onSelectEditPolicyAI(policy) - } else { - setSelectedPolicyToEdit(policy) - setSelectedSchemaAndTable({ schema: policy.schema, table: policy.table }) - } + onSelectEditPolicyAI(policy) } const onSelectDeletePolicy = (policy: any) => { setSelectedPolicyToDelete(policy) } - const onSavePolicySuccess = useCallback(async () => { - toast.success('Policy successfully saved!') - closePolicyEditorModal() - }, [closePolicyEditorModal]) - // Methods that involve some API const onToggleRLS = async () => { const payload = { @@ -119,46 +90,6 @@ const Policies = ({ }) } - const onCreatePolicy = useCallback( - async (payload: any) => { - if (!project) { - console.error('Project is required') - return true - } - - try { - await createDatabasePolicy({ - projectRef: project.ref, - connectionString: project.connectionString, - payload, - }) - return false - } catch (error) { - return true - } - }, - [project] - ) - - const onUpdatePolicy = async (payload: any) => { - if (!project) { - console.error('Project is required') - return true - } - - try { - await updateDatabasePolicy({ - projectRef: project.ref, - connectionString: project.connectionString, - id: payload.id, - payload, - }) - return false - } catch (error) { - return true - } - } - const onDeletePolicy = async () => { if (!project) return console.error('Project is required') deleteDatabasePolicy({ @@ -182,7 +113,7 @@ const Policies = ({
    } + icon={} description={

    @@ -208,15 +139,15 @@ const Policies = ({ return ( <>

    - {isLocked && } + {isLocked && } {tables.length > 0 ? ( - tables.map((table: any) => ( + tables.map((table) => (
    onSelectCreatePolicy(table.name)} onSelectEditPolicy={onSelectEditPolicy} onSelectDeletePolicy={onSelectDeletePolicy} /> @@ -227,18 +158,6 @@ const Policies = ({ ) : null}
    - -
    {isLoading && } - {isError && } + {isError && } {isSuccess && ( > 'email' = email + (select auth.jwt()) ->> 'email' = email ) with check ( - auth.jwt() ->> 'email' = email + (select auth.jwt()) ->> 'email' = email );`.trim(), name: 'Enable update for users based on email', - definition: `auth.jwt() ->> 'email' = email`, - check: `auth.jwt() ->> 'email' = email`, + definition: `(select auth.jwt()) ->> 'email' = email`, + check: `(select auth.jwt()) ->> 'email' = email`, command: 'UPDATE', roles: [], }, @@ -75,12 +75,12 @@ for update using ( 'This policy assumes that your table has a column "user_id", and allows users to delete rows which the "user_id" column matches their ID', statement: ` create policy "Enable delete for users based on user_id" -on ${schema}.${table} +on "${schema}"."${table}" for delete using ( - auth.uid() = user_id + (select auth.uid()) = user_id );`.trim(), name: 'Enable delete for users based on user_id', - definition: 'auth.uid() = user_id', + definition: '(select auth.uid()) = user_id', check: '', command: 'DELETE', roles: [], @@ -93,15 +93,13 @@ for delete using ( 'This policy assumes that your table has a column "user_id", and allows users to insert rows which the "user_id" column matches their ID', statement: ` create policy "Enable insert for users based on user_id" -on ${schema}.${table} -for insert using ( - auth.uid() = user_id -) with check ( - auth.uid() = user_id +on "${schema}"."${table}" +for insert with check ( + (select auth.uid()) = user_id );`.trim(), name: 'Enable insert for users based on user_id', - definition: 'auth.uid() = user_id', - check: 'auth.uid() = user_id', + definition: '', + check: '(select auth.uid()) = user_id', command: 'INSERT', roles: [], }, @@ -115,14 +113,14 @@ Query across tables to build more advanced RLS rules Assuming 2 tables called \`teams\` and \`members\`, you can query both tables in the policy to control access to the members table.`, statement: ` -create policy "Team members can update team details if they belong to the team" +create policy "Members can update team details if they belong to the team" on teams for update using ( - auth.uid() in ( + (select auth.uid()) in ( select user_id from members where team_id = id ) ); `.trim(), - definition: `auth.uid() in (select user_id from members where team_id = id)`, + definition: `(select auth.uid()) in (select user_id from members where team_id = id)`, check: '', command: 'UPDATE', roles: [], @@ -161,10 +159,10 @@ for all using ( description: ` Implement a TTL-like feature that you see in Instagram stories or Snapchat where messages expire after a day. -Assuming a \`stories\` table, rows under the table are available only if they have been created within the last 24 hours.`, +Rows under the table are available only if they have been created within the last 24 hours.`, statement: ` create policy "Stories are live for a day" -on stories +on "${schema}"."${table}" for select using ( created_at > (current_timestamp - interval '1 day') ); diff --git a/apps/studio/components/interfaces/Auth/Policies/PolicyEditorModal/PolicyEditorModalTitle.tsx b/apps/studio/components/interfaces/Auth/Policies/PolicyEditorModal/PolicyEditorModalTitle.tsx index 8ac09122ea2..27545786dde 100644 --- a/apps/studio/components/interfaces/Auth/Policies/PolicyEditorModal/PolicyEditorModalTitle.tsx +++ b/apps/studio/components/interfaces/Auth/Policies/PolicyEditorModal/PolicyEditorModalTitle.tsx @@ -1,9 +1,8 @@ import { noop } from 'lodash' +import { FlaskConical } from 'lucide-react' import { Button, IconChevronLeft, IconExternalLink } from 'ui' import { POLICY_MODAL_VIEWS } from 'components/interfaces/Auth/Policies' -import { FlaskConical } from 'lucide-react' -import { useAppStateSnapshot } from 'state/app-state' interface PolicyEditorModalTitleProps { view: string @@ -24,8 +23,6 @@ const PolicyEditorModalTitle = ({ onSelectBackFromTemplates = noop, onToggleFeaturePreviewModal, }: PolicyEditorModalTitleProps) => { - const snap = useAppStateSnapshot() - const getTitle = () => { if (view === POLICY_MODAL_VIEWS.EDITOR || view === POLICY_MODAL_VIEWS.SELECTION) { return `${isNewPolicy ? 'Adding new policy to' : 'Editing policy from'} ${schema}.${table}` diff --git a/apps/studio/components/interfaces/Auth/Policies/PolicyEditorModal/index.tsx b/apps/studio/components/interfaces/Auth/Policies/PolicyEditorModal/index.tsx index 83dc6de9ec8..9c7fd55179b 100644 --- a/apps/studio/components/interfaces/Auth/Policies/PolicyEditorModal/index.tsx +++ b/apps/studio/components/interfaces/Auth/Policies/PolicyEditorModal/index.tsx @@ -187,21 +187,19 @@ const PolicyEditorModal = ({
    setIsClosingPolicyEditorModal(false)} - onSelectConfirm={() => { + title="Discard changes" + confirmLabel="Discard" + onCancel={() => setIsClosingPolicyEditorModal(false)} + onConfirm={() => { onSelectCancel() setIsClosingPolicyEditorModal(false) setIsDirty(false) }} > - -

    - There are unsaved changes. Are you sure you want to close the editor? Your changes - will be lost. -

    -
    +

    + There are unsaved changes. Are you sure you want to close the editor? Your changes will + be lost. +

    {view === POLICY_MODAL_VIEWS.SELECTION ? ( - ) : ( -
    - )} + ) : null}
    ) diff --git a/apps/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyRow.tsx b/apps/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyRow.tsx index 18f049616b5..4bbed5c6dbb 100644 --- a/apps/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyRow.tsx +++ b/apps/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyRow.tsx @@ -3,6 +3,7 @@ import type { PostgresPolicy } from '@supabase/postgres-meta' import { PermissionAction } from '@supabase/shared-types/out/constants' import { noop } from 'lodash' import { + Badge, Button, DropdownMenu, DropdownMenuContent, @@ -16,6 +17,8 @@ import { import Panel from 'components/ui/Panel' import { useCheckPermissions } from 'hooks' +import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext' +import { useAuthConfigQuery } from 'data/auth/auth-config-query' interface PolicyRowProps { policy: PostgresPolicy @@ -30,6 +33,15 @@ const PolicyRow = ({ }: PolicyRowProps) => { const canUpdatePolicies = useCheckPermissions(PermissionAction.TENANT_SQL_ADMIN_WRITE, 'policies') + const { project } = useProjectContext() + const { data: authConfig } = useAuthConfigQuery({ projectRef: project?.ref }) + + // TODO(km): Simple check for roles that allow authenticated access. + // In the future, we'll use splinter to return proper warnings for policies that allow anonymous user access. + const appliesToAnonymousUsers = + authConfig?.EXTERNAL_ANONYMOUS_USERS_ENABLED && + (policy.roles.includes('authenticated') || policy.roles.includes('public')) + return (

    {policy.command}

    {policy.name}

    + {appliesToAnonymousUsers ? ( + Applies to anonymous users + ) : null}

    Applied to:

    @@ -84,15 +99,15 @@ const PolicyRow = ({ icon={} /> - + onSelectEditPolicy(policy)}> -

    Edit

    +

    Edit policy

    onSelectDeletePolicy(policy)}> -

    Delete

    +

    Delete policy

    diff --git a/apps/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyTableRowHeader.tsx b/apps/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyTableRowHeader.tsx index 46df0828dc0..03584b4e021 100644 --- a/apps/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyTableRowHeader.tsx +++ b/apps/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyTableRowHeader.tsx @@ -4,29 +4,26 @@ import { PermissionAction } from '@supabase/shared-types/out/constants' import { noop } from 'lodash' import Link from 'next/link' import { useRouter } from 'next/router' -import { Badge, Button, IconLock } from 'ui' import { useCheckPermissions } from 'hooks' -import { useIsRLSAIAssistantEnabled } from 'components/interfaces/App/FeaturePreview/FeaturePreviewContext' +import { Badge, Button, IconLock } from 'ui' interface PolicyTableRowHeaderProps { table: PostgresTable isLocked: boolean onSelectToggleRLS: (table: PostgresTable) => void - onSelectCreatePolicy: (table: PostgresTable) => void + onSelectCreatePolicy: () => void } const PolicyTableRowHeader = ({ table, isLocked, onSelectToggleRLS = noop, - onSelectCreatePolicy = noop, + onSelectCreatePolicy, }: PolicyTableRowHeaderProps) => { const router = useRouter() const { ref } = router.query - const isAiAssistantEnabled = useIsRLSAIAssistantEnabled() const canToggleRLS = useCheckPermissions(PermissionAction.TENANT_SQL_ADMIN_WRITE, 'tables') - const canCreatePolicies = useCheckPermissions(PermissionAction.TENANT_SQL_ADMIN_WRITE, 'policies') return (
    @@ -36,13 +33,13 @@ const PolicyTableRowHeader = ({
    {isLocked && ( - + Locked )} - + {table.rls_enabled ? 'Row Level Security enabled' : 'Row Level Security disabled'}
    @@ -78,36 +75,9 @@ const PolicyTableRowHeader = ({ )} - {!isAiAssistantEnabled && ( - - - - - {!canCreatePolicies && ( - - - -
    - - You need additional permissions to create RLS policies - -
    -
    -
    - )} -
    - )} +
    )} diff --git a/apps/studio/components/interfaces/Auth/Policies/PolicyTableRow/index.tsx b/apps/studio/components/interfaces/Auth/Policies/PolicyTableRow/index.tsx index b2dc06136fb..6c6d8c19ae0 100644 --- a/apps/studio/components/interfaces/Auth/Policies/PolicyTableRow/index.tsx +++ b/apps/studio/components/interfaces/Auth/Policies/PolicyTableRow/index.tsx @@ -13,7 +13,7 @@ interface PolicyTableRowProps { table: PostgresTable isLocked: boolean onSelectToggleRLS: (table: PostgresTable) => void - onSelectCreatePolicy: (table: PostgresTable) => void + onSelectCreatePolicy: () => void onSelectEditPolicy: (policy: PostgresPolicy) => void onSelectDeletePolicy: (policy: PostgresPolicy) => void } @@ -22,7 +22,7 @@ const PolicyTableRow = ({ table, isLocked, onSelectToggleRLS = noop, - onSelectCreatePolicy = noop, + onSelectCreatePolicy, onSelectEditPolicy = noop, onSelectDeletePolicy = noop, }: PolicyTableRowProps) => { diff --git a/apps/studio/components/interfaces/Auth/RateLimits/RateLimits.tsx b/apps/studio/components/interfaces/Auth/RateLimits/RateLimits.tsx index 5aa395d8608..fa189b7e79a 100644 --- a/apps/studio/components/interfaces/Auth/RateLimits/RateLimits.tsx +++ b/apps/studio/components/interfaces/Auth/RateLimits/RateLimits.tsx @@ -12,9 +12,7 @@ import { FormControl_Shadcn_, FormField_Shadcn_, FormItem_Shadcn_, - FormMessage_Shadcn_, Form_Shadcn_, - IconAlertCircle, Input_Shadcn_, } from 'ui' import * as z from 'zod' @@ -32,8 +30,9 @@ import { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader' import { useAuthConfigQuery } from 'data/auth/auth-config-query' import { useAuthConfigUpdateMutation } from 'data/auth/auth-config-update-mutation' import { useCheckPermissions } from 'hooks' -import { isSmtpEnabled } from '../SmtpForm/SmtpForm.utils' import toast from 'react-hot-toast' +import { WarningIcon } from 'ui-patterns/Icons/StatusIcons' +import { isSmtpEnabled } from '../SmtpForm/SmtpForm.utils' const RateLimits = () => { const formId = 'auth-rate-limits-form' @@ -58,6 +57,7 @@ const RateLimits = () => { const canUpdateEmailLimit = authConfig?.EXTERNAL_EMAIL_ENABLED && isSmtpEnabled(authConfig) const canUpdateSMSRateLimit = authConfig?.EXTERNAL_PHONE_ENABLED && !authConfig?.SMS_AUTOCONFIRM + const canUpdateAnonymousUsersRateLimit = authConfig?.EXTERNAL_ANONYMOUS_USERS_ENABLED const FormSchema = z.object({ RATE_LIMIT_TOKEN_REFRESH: z.coerce @@ -76,6 +76,10 @@ const RateLimits = () => { .number() .min(0, 'Must be not be lower than 0') .max(32767, 'Must not be more than 32,767 an hour'), + RATE_LIMIT_ANONYMOUS_USERS: z.coerce + .number() + .min(0, 'Must be not be lower than 0') + .max(32767, 'Must not be more than 32,767 an hour'), }) const form = useForm>({ @@ -97,6 +101,7 @@ const RateLimits = () => { 'RATE_LIMIT_VERIFY', 'RATE_LIMIT_EMAIL_SENT', 'RATE_LIMIT_SMS_SENT', + 'RATE_LIMIT_ANONYMOUS_USERS', ] as (keyof typeof payload)[] params.forEach((param) => { if (data[param] !== authConfig?.[param]) payload[param] = data[param] @@ -112,6 +117,7 @@ const RateLimits = () => { RATE_LIMIT_VERIFY: authConfig.RATE_LIMIT_VERIFY, RATE_LIMIT_EMAIL_SENT: authConfig.RATE_LIMIT_EMAIL_SENT, RATE_LIMIT_SMS_SENT: authConfig.RATE_LIMIT_SMS_SENT, + RATE_LIMIT_ANONYMOUS_USERS: authConfig.RATE_LIMIT_ANONYMOUS_USERS, }) } // eslint-disable-next-line react-hooks/exhaustive-deps @@ -173,39 +179,42 @@ const RateLimits = () => { - - {!canUpdateEmailLimit && ( + {!authConfig.EXTERNAL_EMAIL_ENABLED ? ( - + - {!authConfig.EXTERNAL_EMAIL_ENABLED && - 'Enable email-based logins to update this configuration'} - {!isSmtpEnabled(authConfig) && - 'Custom SMTP provider is required to update this configuration'} + Email-based logins are not enabled for your project - +

    - {!authConfig.EXTERNAL_EMAIL_ENABLED && - 'Head over to the providers page to enable email provider before updating your rate limit'} - {!isSmtpEnabled(authConfig) && - 'The built-in email service has a fixed rate limit. You will need to set up your own custom SMTP provider to update your email rate limit'} + Enable email-based logins to update this rate limit

    -
    - )} + ) : !isSmtpEnabled(authConfig) ? ( + + + + Custom SMTP provider is required to update this configuration + + +

    + The built-in email service has a fixed rate limit. You will need to + set up your own custom SMTP provider to update your email rate limit +

    + +
    +
    + ) : null} )} /> @@ -239,21 +248,19 @@ const RateLimits = () => { {...field} /> - {!canUpdateSMSRateLimit && ( - + - Enable phone-based logins to update this configuration + Phone-based logins are not enabled for your project - +

    - Head over to the providers page to enable phone provider and phone - confirmations before updating your rate limit + Enable phone-based logins to update this rate limit

    -
    @@ -271,7 +278,8 @@ const RateLimits = () => { - Number of sessions that can be refreshed in a 5 minute interval + Number of sessions that can be refreshed in a 5 minute interval per IP + address.

    } > @@ -295,7 +303,6 @@ const RateLimits = () => {

    )} - )} /> @@ -309,7 +316,7 @@ const RateLimits = () => { description={

    Number of OTP/Magic link verifications that can be made in a 5 minute - interval + interval per IP address.

    } > @@ -331,7 +338,57 @@ const RateLimits = () => { This is equivalent to {field.value * 12} requests per hour

    )} - + + )} + /> + + + + + Number of anonymous sign-ins that can be made per hour per IP address. +

    + } + > + Rate limit for anonymous users +
    + } + > + + ( + + + + + {!canUpdateAnonymousUsersRateLimit && ( + + + + Anonymous logins are not enabled for your project + + +

    + Enable anonymous logins to update this rate limit +

    + +
    +
    + )}
    )} /> diff --git a/apps/studio/components/interfaces/Auth/SmtpForm/SmtpForm.tsx b/apps/studio/components/interfaces/Auth/SmtpForm/SmtpForm.tsx index f7197f87c0b..0299a71e1cb 100644 --- a/apps/studio/components/interfaces/Auth/SmtpForm/SmtpForm.tsx +++ b/apps/studio/components/interfaces/Auth/SmtpForm/SmtpForm.tsx @@ -277,6 +277,18 @@ const SmtpForm = () => { } > + {values['SMTP_HOST'] && values['SMTP_HOST'].endsWith('.gmail.com') && ( + + + Check your SMTP provider + + Not all SMTP providers are designed for the email sending required by + Supabase Auth. It looks like the SMTP provider you entered is designed for + sending personal email messages and not for sending transactional messages. + Although you can ignore this warning, email deliverability may be impacted. + + + )} - @@ -224,35 +224,30 @@ const UserDropdown = ({ setIsDeleteModalOpen(false)} - onSelectConfirm={() => { + title="Confirm to delete" + confirmLabel="Delete" + onCancel={() => setIsDeleteModalOpen(false)} + onConfirm={() => { handleDelete() }} > - -

    - This is permanent! Are you sure you want to delete user {user.email}? -

    -
    +

    + This is permanent! Are you sure you want to delete user {user.email}? +

    setIsDeleteFactorsModalOpen(false)} - onSelectConfirm={() => { + title="Confirm to delete" + confirmLabel="Delete" + onCancel={() => setIsDeleteFactorsModalOpen(false)} + onConfirm={() => { handleDeleteFactors() }} > - -

    - This is permanent! Are you sure you want to delete the user's MFA factors? -

    -
    +

    + This is permanent! Are you sure you want to delete the user's MFA factors? +

    ) diff --git a/apps/studio/components/interfaces/Auth/Users/Users.tsx b/apps/studio/components/interfaces/Auth/Users/Users.tsx index 15554149a33..a3c286eab1e 100644 --- a/apps/studio/components/interfaces/Auth/Users/Users.tsx +++ b/apps/studio/components/interfaces/Auth/Users/Users.tsx @@ -7,12 +7,12 @@ import { useIsAPIDocsSidePanelEnabled } from 'components/interfaces/App/FeatureP import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext' import APIDocsButton from 'components/ui/APIDocsButton' import NoPermission from 'components/ui/NoPermission' +import { authKeys } from 'data/auth/keys' import { useUsersQuery } from 'data/auth/users-query' import { useCheckPermissions, usePermissionsLoaded } from 'hooks' import { Button, IconRefreshCw, IconSearch, IconX, Input, Listbox } from 'ui' import AddUserDropdown from './AddUserDropdown' import UsersList from './UsersList' -import { authKeys } from 'data/auth/keys' const Users = () => { const queryClient = useQueryClient() @@ -23,7 +23,8 @@ const Users = () => { const [page, setPage] = useState(1) const [search, setSearch] = useState('') const [filterKeywords, setFilterKeywords] = useState('') - const [filterVerified, setFilterVerified] = useState<'verified' | 'unverified'>() + type Filter = 'verified' | 'unverified' | 'anonymous' + const [filter, setFilter] = useState() const canReadUsers = useCheckPermissions(PermissionAction.TENANT_SQL_SELECT, 'auth.users') const isPermissionsLoaded = usePermissionsLoaded() @@ -41,14 +42,15 @@ const Users = () => { projectRef, page, keywords: filterKeywords, - verified: filterVerified, + filter, + connectionString: project?.connectionString!, }, { keepPreviousData: true, onSuccess(data) { if (data.users.length <= 0 && data.total > 0) { queryClient.removeQueries( - authKeys.users(projectRef, { page, keywords: filterKeywords, verified: filterVerified }) + authKeys.users(projectRef, { page, keywords: filterKeywords, filter }) ) setPage((prev) => prev - 1) @@ -57,14 +59,14 @@ const Users = () => { } ) - function onVerifiedFilterChange(e: any) { - setFilterVerified(e) + function onVerifiedFilterChange(val: Filter) { + setFilter(val) } function clearSearch() { setSearch('') setFilterKeywords('') - setFilterVerified(undefined) + setFilter(undefined) } return ( @@ -96,7 +98,7 @@ const Users = () => { /> { Un-Verified Users + + Anonymous Users +
    @@ -139,7 +144,6 @@ const Users = () => { page={page} setPage={setPage} keywords={filterKeywords} - verified={filterVerified} total={data?.total ?? 0} users={data?.users ?? []} isLoading={isLoading} diff --git a/apps/studio/components/interfaces/Auth/Users/UsersList.tsx b/apps/studio/components/interfaces/Auth/Users/UsersList.tsx index 1c1d5d5b8f3..863684be636 100644 --- a/apps/studio/components/interfaces/Auth/Users/UsersList.tsx +++ b/apps/studio/components/interfaces/Auth/Users/UsersList.tsx @@ -16,8 +16,6 @@ interface UsersListProps { page: number setPage: (page: number) => void keywords: string - verified?: 'verified' | 'unverified' - total: number users: User[] isLoading: boolean diff --git a/apps/studio/components/interfaces/Auth/Users/UsersListItem.tsx b/apps/studio/components/interfaces/Auth/Users/UsersListItem.tsx index dc2d8eb11ee..42eae7eadd2 100644 --- a/apps/studio/components/interfaces/Auth/Users/UsersListItem.tsx +++ b/apps/studio/components/interfaces/Auth/Users/UsersListItem.tsx @@ -40,16 +40,18 @@ const UserListItem = ({ {!user.phone ? '-' : user.phone} - {user?.raw_app_meta_data?.provider} + + {user.is_anonymous ? 'Anonymous' : user?.raw_app_meta_data?.provider} + {createdAt?.format('DD MMM, YYYY HH:mm')} - {!isUserConfirmed ? ( - Waiting for verification.. - ) : user.last_sign_in_at ? ( + {user?.last_sign_in_at ? ( lastSignedIn?.format('DD MMM, YYYY HH:mm') + ) : !isUserConfirmed ? ( + Waiting for verification.. ) : ( 'Never' )} diff --git a/apps/studio/components/interfaces/Auth/Users/UsersListItemSkeleton.tsx b/apps/studio/components/interfaces/Auth/Users/UsersListItemSkeleton.tsx index d3b9bfbdab6..5cc5ba87e15 100644 --- a/apps/studio/components/interfaces/Auth/Users/UsersListItemSkeleton.tsx +++ b/apps/studio/components/interfaces/Auth/Users/UsersListItemSkeleton.tsx @@ -27,7 +27,7 @@ const UsersListItemSkeleton = () => { - diff --git a/apps/studio/components/interfaces/Billing/InvoiceStatusBadge.tsx b/apps/studio/components/interfaces/Billing/InvoiceStatusBadge.tsx index 4e5ca362712..5de180c7bcd 100644 --- a/apps/studio/components/interfaces/Billing/InvoiceStatusBadge.tsx +++ b/apps/studio/components/interfaces/Billing/InvoiceStatusBadge.tsx @@ -7,29 +7,32 @@ interface InvoiceStatusBadgeProps { status: InvoiceStatus } -const invoiceStatusMapping: Record = { +const invoiceStatusMapping: Record< + InvoiceStatus, + { label: string; badgeVariant: React.ComponentProps['variant'] } +> = { [InvoiceStatus.DRAFT]: { label: 'Upcoming', - badgeColor: 'yellow', + badgeVariant: 'warning', }, [InvoiceStatus.PAID]: { label: 'Paid', - badgeColor: 'green', + badgeVariant: 'brand', }, [InvoiceStatus.VOID]: { label: 'Forgiven', - badgeColor: 'green', + badgeVariant: 'brand', }, // We do not want to overcomplicate it for the user, so we'll treat uncollectible/open the same from a user perspective // it's an outstanding invoice [InvoiceStatus.UNCOLLECTIBLE]: { label: 'Outstanding', - badgeColor: 'red', + badgeVariant: 'destructive', }, [InvoiceStatus.OPEN]: { label: 'Outstanding', - badgeColor: 'red', + badgeVariant: 'destructive', }, } @@ -42,8 +45,7 @@ const InvoiceStatusBadge = ({ status }: InvoiceStatusBadgeProps) => { {statusMapping?.label || status} diff --git a/apps/studio/components/interfaces/Billing/Subscription/Subscription.utils.ts b/apps/studio/components/interfaces/Billing/Subscription/Subscription.utils.ts index 24ffa175b3a..af17a9ea6fa 100644 --- a/apps/studio/components/interfaces/Billing/Subscription/Subscription.utils.ts +++ b/apps/studio/components/interfaces/Billing/Subscription/Subscription.utils.ts @@ -17,3 +17,16 @@ export const subscriptionHasHipaaAddon = (subscription?: OrgSubscription): boole (addon) => addon.supabase_prod_id === 'addon_security_hipaa' ) } + +export const billingPartnerLabel = (billingPartner?: string) => { + if (!billingPartner) return billingPartner + + switch (billingPartner) { + case 'fly': + return 'Fly.io' + case 'aws': + return 'AWS' + default: + return billingPartner + } +} diff --git a/apps/studio/components/interfaces/BranchManagement/BranchManagement.tsx b/apps/studio/components/interfaces/BranchManagement/BranchManagement.tsx index 5dfd87fe071..5e90f0db918 100644 --- a/apps/studio/components/interfaces/BranchManagement/BranchManagement.tsx +++ b/apps/studio/components/interfaces/BranchManagement/BranchManagement.tsx @@ -13,16 +13,7 @@ import { useBranchesDisableMutation } from 'data/branches/branches-disable-mutat import { Branch, useBranchesQuery } from 'data/branches/branches-query' import { useGitHubConnectionsQuery } from 'data/integrations/github-connections-query' import { useSelectedOrganization, useSelectedProject } from 'hooks' -import { - AlertDescription_Shadcn_, - AlertTitle_Shadcn_, - Alert_Shadcn_, - Button, - IconAlertTriangle, - IconExternalLink, - IconGitHub, - Modal, -} from 'ui' +import { Button, IconExternalLink, IconGitHub } from 'ui' import ConfirmationModal from 'ui-patterns/Dialogs/ConfirmationModal' import TextConfirmModal from 'ui-patterns/Dialogs/TextConfirmModal' import { BranchLoader, BranchManagementSection, BranchRow } from './BranchPanels' @@ -344,44 +335,28 @@ const BranchManagement = () => { /> onConfirmDisableBranching()} - onSelectCancel={() => setShowDisableBranching(false)} + title="Confirm disable branching for project" + confirmLabel="Confirm disable branching" + confirmLabelLoading="Disabling branching..." + onConfirm={() => onConfirmDisableBranching()} + onCancel={() => setShowDisableBranching(false)} + alert={{ + title: 'This action cannot be undone', + description: + 'All database preview branches will be removed upon disabling branching. You may still re-enable branching again thereafter, but your existing preview branches will not be restored.', + }} > - -
    - - - This action cannot be undone - - All database preview branches will be removed upon disabling branching. You may - still re-enable branching again thereafter, but your existing preview branches will - not be restored. - - -
      -
    • -
      - Before you disable branching, consider: -
        -
      • - Your project no longer requires database previews. -
      • -
      • - None of your database previews are currently being used in any app. -
      • -
      -
      -
    • -
    -
    -
    +

    Before you disable branching, consider:

    +
      +
    • Your project no longer requires database previews.
    • +
    • + None of your database previews are currently being used in any app. +
    • +
    setShowCreateBranch(false)} /> diff --git a/apps/studio/components/interfaces/BranchManagement/BranchPanels.tsx b/apps/studio/components/interfaces/BranchManagement/BranchPanels.tsx index 8c573523dd2..2eca1cb9d78 100644 --- a/apps/studio/components/interfaces/BranchManagement/BranchPanels.tsx +++ b/apps/studio/components/interfaces/BranchManagement/BranchPanels.tsx @@ -1,12 +1,16 @@ +import * as Tooltip from '@radix-ui/react-tooltip' import { useParams } from 'common' import dayjs from 'dayjs' -import { GitPullRequest } from 'lucide-react' +import { Clock, GitPullRequest, Infinity, RefreshCw, Trash2 } from 'lucide-react' import Link from 'next/link' -import { PropsWithChildren, ReactNode } from 'react' +import { PropsWithChildren, ReactNode, useState } from 'react' +import toast from 'react-hot-toast' import { useInView } from 'react-intersection-observer' import ShimmeringLoader from 'components/ui/ShimmeringLoader' import { useBranchQuery } from 'data/branches/branch-query' +import { useBranchResetMutation } from 'data/branches/branch-reset-mutation' +import { useBranchUpdateMutation } from 'data/branches/branch-update-mutation' import type { Branch } from 'data/branches/branches-query' import { Badge, @@ -19,8 +23,8 @@ import { IconExternalLink, IconMoreVertical, IconShield, - IconTrash, } from 'ui' +import ConfirmationModal from 'ui-patterns/Dialogs/ConfirmationModal' import BranchStatusBadge from './BranchStatusBadge' interface BranchManagementSectionProps { @@ -111,20 +115,80 @@ export const BranchRow = ({ } ) + const [showBranchModeSwitch, setShowBranchModeSwitch] = useState(false) + + const { mutate: updateBranch, isLoading: isUpdating } = useBranchUpdateMutation({ + onSuccess() { + toast.success('Successfully updated branch') + setShowBranchModeSwitch(false) + }, + }) + + const onUpdateBranchPersistentMode = () => { + if (projectRef == undefined) return console.error('Project ref is required') + updateBranch({ id: branch.id, projectRef, persistent: !branch.persistent }) + } + + const [showConfirmResetModal, setShowConfirmResetModal] = useState(false) + + const { mutate, isLoading: isResetting } = useBranchResetMutation({ + onSuccess() { + toast.success('Success! Please allow a few seconds for the branch to reset.') + setShowConfirmResetModal(false) + }, + }) + + function onConfirmReset() { + if (!projectRef) { + throw new Error('Invalid project reference') + } + + mutate({ id: branch.id, projectRef }) + } + return (
    - - {isActive && Current} + + + + + {branch.persistent && ( + + + +
    + + {branch.name} is a persistent branch and will remain active even after the + underlying PR is closed + +
    +
    +
    + )} +
    + + {isActive && Current}
    - {branch.pr_number !== undefined && ( -
    - - #{branch.pr_number} - -
    - -

    Open

    -
    - - -
    - )} - {isMain ? (
    ) : (
    - + {branch.pr_number === undefined ? ( + + ) : ( +
    + + #{branch.pr_number} + + + +
    + )}
    )}
    diff --git a/apps/studio/components/interfaces/BranchManagement/BranchStatusBadge.tsx b/apps/studio/components/interfaces/BranchManagement/BranchStatusBadge.tsx index c08b1669fc4..8267e633682 100644 --- a/apps/studio/components/interfaces/BranchManagement/BranchStatusBadge.tsx +++ b/apps/studio/components/interfaces/BranchManagement/BranchStatusBadge.tsx @@ -1,6 +1,6 @@ import type { BranchData } from 'data/branches/branch-query' import type { Branch } from 'data/branches/branches-query' -import { Badge_Shadcn_ } from 'ui' +import { Badge } from 'ui' import { StatusIcon } from 'ui-patterns/Icons/StatusIcons' type Status = Branch['status'] | BranchData['status'] @@ -51,12 +51,12 @@ const BranchStatusBadge = ({ status }: BranchStatusBadgeProps) => { const isWaiting = WAITING_STATUSES.includes(status) return ( - + {(isUnhealthy || isWaiting) && ( )} {STATUS_TO_LABEL[status]} - + ) } diff --git a/apps/studio/components/interfaces/Database/Backups/BackupItem.tsx b/apps/studio/components/interfaces/Database/Backups/BackupItem.tsx index 007c84f945a..d9c8e3144c6 100644 --- a/apps/studio/components/interfaces/Database/Backups/BackupItem.tsx +++ b/apps/studio/components/interfaces/Database/Backups/BackupItem.tsx @@ -57,7 +57,7 @@ const BackupItem = ({ index, isHealthy, backup, projectRef, onSelectBackup }: Ba )}
    ) - return Backup In Progress... + return Backup In Progress... } const generateBackupName = (backup: any) => { diff --git a/apps/studio/components/interfaces/Database/Backups/BackupsEmpty.tsx b/apps/studio/components/interfaces/Database/Backups/BackupsEmpty.tsx index 451ab6786a4..263e2cd71ad 100644 --- a/apps/studio/components/interfaces/Database/Backups/BackupsEmpty.tsx +++ b/apps/studio/components/interfaces/Database/Backups/BackupsEmpty.tsx @@ -2,7 +2,7 @@ import { IconInfo } from 'ui' const BackupsEmpty = () => { return ( -
    +

    No backups created yet - check again tomorrow.

    diff --git a/apps/studio/components/interfaces/Database/Backups/BackupsList.tsx b/apps/studio/components/interfaces/Database/Backups/BackupsList.tsx index cf631b5419b..99e30235aa5 100644 --- a/apps/studio/components/interfaces/Database/Backups/BackupsList.tsx +++ b/apps/studio/components/interfaces/Database/Backups/BackupsList.tsx @@ -107,26 +107,22 @@ const BackupsList = () => {
    setSelectedBackup(undefined)} - onSelectConfirm={() => { + onCancel={() => setSelectedBackup(undefined)} + onConfirm={() => { if (selectedBackup === undefined) return console.error('Backup required') restoreFromBackup({ ref: projectRef, backup: selectedBackup }) }} > - -
    -

    - Are you sure you want to restore from - {dayjs(selectedBackup?.inserted_at).format('DD MMM YYYY')}? This will destroy any new - data written since this backup was made. -

    -
    -
    +

    + Are you sure you want to restore from + {dayjs(selectedBackup?.inserted_at).format('DD MMM YYYY')}? This will destroy any new data + written since this backup was made. +

    ) diff --git a/apps/studio/components/interfaces/Database/EnumeratedTypes/CreateEnumeratedTypeSidePanel.tsx b/apps/studio/components/interfaces/Database/EnumeratedTypes/CreateEnumeratedTypeSidePanel.tsx index 05dcf9740e0..a52ea05ad7a 100644 --- a/apps/studio/components/interfaces/Database/EnumeratedTypes/CreateEnumeratedTypeSidePanel.tsx +++ b/apps/studio/components/interfaces/Database/EnumeratedTypes/CreateEnumeratedTypeSidePanel.tsx @@ -28,6 +28,7 @@ import * as z from 'zod' import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext' import { useEnumeratedTypeCreateMutation } from 'data/enumerated-types/enumerated-type-create-mutation' import EnumeratedTypeValueRow from './EnumeratedTypeValueRow' +import { NATIVE_POSTGRES_TYPES } from './EnumeratedTypes.constants' interface CreateEnumeratedTypeSidePanelProps { visible: boolean @@ -51,7 +52,13 @@ const CreateEnumeratedTypeSidePanel = ({ }) const FormSchema = z.object({ - name: z.string().min(1, 'Please provide a name for your enumerated type').default(''), + name: z + .string() + .min(1, 'Please provide a name for your enumerated type') + .refine((value) => !NATIVE_POSTGRES_TYPES.includes(value), { + message: 'Name cannot be a native Postgres data type', + }) + .default(''), description: z.string().default('').optional(), values: z .object({ value: z.string().min(1, 'Please provide a value') }) diff --git a/apps/studio/components/interfaces/Database/EnumeratedTypes/DeleteEnumeratedTypeModal.tsx b/apps/studio/components/interfaces/Database/EnumeratedTypes/DeleteEnumeratedTypeModal.tsx index 543d9c03522..5d54690663d 100644 --- a/apps/studio/components/interfaces/Database/EnumeratedTypes/DeleteEnumeratedTypeModal.tsx +++ b/apps/studio/components/interfaces/Database/EnumeratedTypes/DeleteEnumeratedTypeModal.tsx @@ -46,40 +46,32 @@ const DeleteEnumeratedTypeModal = ({ return ( Confirm to delete enumerated type{' '} {selectedEnumeratedType?.name} } - buttonLabel="Confirm delete" - buttonLoadingLabel="Deleting..." - onSelectConfirm={() => onConfirmDeleteType()} - onSelectCancel={onClose} + confirmLabel="Confirm delete" + confirmLabelLoading="Deleting..." + onCancel={onClose} + onConfirm={() => onConfirmDeleteType()} + alert={{ + title: 'This action cannot be undone', + description: + 'You will need to re-create the enumerated type if you want to revert the deletion.', + }} > - -
    - - - This action cannot be undone - - You will need to re-create the enumerated type if you want to revert the deletion. - - -
    - Before deleting this enumerated type, consider: -
      -
    • - This enumerated type is no longer in use in any tables or functions -
    • -
    -
    -
    -
    +

    Before deleting this enumerated type, consider:

    +
      +
    • + This enumerated type is no longer in use in any tables or functions +
    • +
    ) } diff --git a/apps/studio/components/interfaces/Database/EnumeratedTypes/EnumeratedTypes.constants.ts b/apps/studio/components/interfaces/Database/EnumeratedTypes/EnumeratedTypes.constants.ts new file mode 100644 index 00000000000..766bd65b186 --- /dev/null +++ b/apps/studio/components/interfaces/Database/EnumeratedTypes/EnumeratedTypes.constants.ts @@ -0,0 +1,64 @@ +// [Joshen] Just FYI I do think that we should merge this with whats in SidePanelEditor.constants.ts +// Such that dashboard can work with _all_ native Postgres data types as listed here +// https://supabase.com/docs/guides/database/tables#data-types +// But for now, just make sure users cannot created enum types that share the same name as a native type + +import { + DATE_TYPES, + JSON_TYPES, + NUMERICAL_TYPES, + OTHER_DATA_TYPES, + TEXT_TYPES, + TIMESTAMP_TYPES, + TIME_TYPES, +} from 'components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.constants' + +export const NATIVE_POSTGRES_TYPES = [ + ...NUMERICAL_TYPES, + ...TEXT_TYPES, + ...JSON_TYPES, + ...TIMESTAMP_TYPES, + ...TIME_TYPES, + ...DATE_TYPES, + ...OTHER_DATA_TYPES, + 'bigint', + 'bigserial', + 'bit', + 'bit varying', + 'boolean', + 'box', + 'bytea', + 'char', + 'character', + 'character varying', + 'cidr', + 'circle', + 'date', + 'double precision', + 'inet', + 'int', + 'integer', + 'interval', + 'line', + 'lseg', + 'macaddr', + 'macaddr8', + 'money', + 'numeric', + 'decimal', + 'path', + 'pg_lsn', + 'pg_snapshot', + 'point', + 'polygon', + 'real', + 'smallint', + 'smallserial', + 'serial', + 'time with timezone', + 'timestamp with timezone', + 'tsquery', + 'tsvector', + 'txid_snapshot', + 'xml', +] diff --git a/apps/studio/components/interfaces/Database/Extensions/EnableExtensionModal.tsx b/apps/studio/components/interfaces/Database/Extensions/EnableExtensionModal.tsx index 94f8df1e0e4..a657a4469b6 100644 --- a/apps/studio/components/interfaces/Database/Extensions/EnableExtensionModal.tsx +++ b/apps/studio/components/interfaces/Database/Extensions/EnableExtensionModal.tsx @@ -197,7 +197,7 @@ const EnableExtensionModal = ({ visible, extension, onCancel }: EnableExtensionM You can still enable the extension, but pg_cron jobs may not run due to the - behaviour of Fly projects. + behavior of Fly projects. diff --git a/apps/studio/components/interfaces/Database/Extensions/ExtensionCard.tsx b/apps/studio/components/interfaces/Database/Extensions/ExtensionCard.tsx index d9911285bc5..820fec90bf2 100644 --- a/apps/studio/components/interfaces/Database/Extensions/ExtensionCard.tsx +++ b/apps/studio/components/interfaces/Database/Extensions/ExtensionCard.tsx @@ -125,7 +125,7 @@ const ExtensionCard = ({ extension }: ExtensionCardProps) => {
    Schema: - {`${extension.schema}`} + {`${extension.schema}`}
    )} @@ -139,17 +139,15 @@ const ExtensionCard = ({ extension }: ExtensionCardProps) => { /> setIsDisableModalOpen(false)} - onSelectConfirm={() => onConfirmDisable()} + title="Confirm to disable extension" + confirmLabel="Disable" + confirmLabelLoading="Disabling" + onCancel={() => setIsDisableModalOpen(false)} + onConfirm={() => onConfirmDisable()} > - -

    - Are you sure you want to turn OFF the "{extension.name}" extension? -

    -
    +

    + Are you sure you want to turn OFF the "{extension.name}" extension? +

    ) diff --git a/apps/studio/components/interfaces/Database/Extensions/Extensions.constants.ts b/apps/studio/components/interfaces/Database/Extensions/Extensions.constants.ts index a725a810c92..d2df793eefc 100644 --- a/apps/studio/components/interfaces/Database/Extensions/Extensions.constants.ts +++ b/apps/studio/components/interfaces/Database/Extensions/Extensions.constants.ts @@ -12,6 +12,7 @@ export const HIDDEN_EXTENSIONS = [ 'pg_visibility', 'pgstattuple', 'supabase_vault', + 'supautils', 'intagg', 'xml2', 'pg_tle', diff --git a/apps/studio/components/interfaces/Database/Extensions/Extensions.tsx b/apps/studio/components/interfaces/Database/Extensions/Extensions.tsx index 65ebcfbca1c..b85ed367187 100644 --- a/apps/studio/components/interfaces/Database/Extensions/Extensions.tsx +++ b/apps/studio/components/interfaces/Database/Extensions/Extensions.tsx @@ -28,13 +28,15 @@ const Extensions = () => { const extensions = filterString.length === 0 ? data ?? [] - : (data ?? []).filter((ext) => ext.name.includes(filterString)) - const extensionsWithoutHidden = extensions.filter( - (ext: any) => !HIDDEN_EXTENSIONS.includes(ext.name) - ) + : (data ?? []).filter((ext) => + // if the filter string contains pg, ignore it since some of the extensions may be listed without the + // pg prefix (pgvector is listed as vector) + ext.name.includes(filterString.replace('pg', '')) + ) + const extensionsWithoutHidden = extensions.filter((ext) => !HIDDEN_EXTENSIONS.includes(ext.name)) const [enabledExtensions, disabledExtensions] = partition( extensionsWithoutHidden, - (ext: any) => !isNull(ext.installed_version) + (ext) => !isNull(ext.installed_version) ) const canUpdateExtensions = useCheckPermissions( diff --git a/apps/studio/components/interfaces/Database/Functions/CreateFunction.tsx b/apps/studio/components/interfaces/Database/Functions/CreateFunction.tsx deleted file mode 100644 index a031f03a86d..00000000000 --- a/apps/studio/components/interfaces/Database/Functions/CreateFunction.tsx +++ /dev/null @@ -1,605 +0,0 @@ -import { zodResolver } from '@hookform/resolvers/zod' -import { PostgresFunction } from '@supabase/postgres-meta' -import { isEmpty, isNull, keyBy, mapValues, partition } from 'lodash' -import { useEffect, useState } from 'react' -import { SubmitHandler, useFieldArray, useForm } from 'react-hook-form' -import toast from 'react-hot-toast' -import z from 'zod' -import { Plus, Trash } from 'lucide-react' - -import { POSTGRES_DATA_TYPES } from 'components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.constants' -import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext' -import SchemaSelector from 'components/ui/SchemaSelector' -import SqlEditor from 'components/ui/SqlEditor' -import { useDatabaseExtensionsQuery } from 'data/database-extensions/database-extensions-query' -import { useDatabaseFunctionCreateMutation } from 'data/database-functions/database-functions-create-mutation' -import { useDatabaseFunctionUpdateMutation } from 'data/database-functions/database-functions-update-mutation' -import { EXCLUDED_SCHEMAS } from 'lib/constants/schemas' -import { FormSchema } from 'types' -import { - Button, - FormControl_Shadcn_, - FormDescription_Shadcn_, - FormField_Shadcn_, - FormItem_Shadcn_, - FormLabel_Shadcn_, - FormMessage_Shadcn_, - Form_Shadcn_, - Input_Shadcn_, - Modal, - Radio, - ScrollArea, - SelectContent_Shadcn_, - SelectItem_Shadcn_, - SelectTrigger_Shadcn_, - SelectValue_Shadcn_, - Select_Shadcn_, - SidePanel, - Toggle, -} from 'ui' -import ConfirmationModal from 'ui-patterns/Dialogs/ConfirmationModal' -import { FormItemLayout } from 'ui-patterns/form/FormItemLayout/FormItemLayout' -import { convertArgumentTypes, convertConfigParams } from './Functions.utils' - -const FORM_ID = 'create-function-sidepanel' - -interface CreateFunctionProps { - func?: PostgresFunction - visible: boolean - setVisible: (value: boolean) => void -} - -const FormSchema = z.object({ - name: z.string().trim().min(1), - schema: z.string().trim().min(1), - args: z.array(z.object({ name: z.string().trim().min(1), type: z.string().trim() })), - behavior: z.enum(['IMMUTABLE', 'STABLE', 'VOLATILE']), - definition: z.string().trim(), - language: z.string().trim(), - return_type: z.string().trim(), - security_definer: z.boolean(), - config_params: z - .array(z.object({ name: z.string().trim().min(1), value: z.string().trim().min(1) })) - .optional(), -}) - -const CreateFunction = ({ func, visible, setVisible }: CreateFunctionProps) => { - const { project } = useProjectContext() - const [isClosingPanel, setIsClosingPanel] = useState(false) - const [advancedSettingsShown, setAdvancedSettingsShown] = useState(false) - - const isEditing = !!func?.id - - const form = useForm>({ - resolver: zodResolver(FormSchema), - }) - - const { mutate: createDatabaseFunction, isLoading: isCreating } = - useDatabaseFunctionCreateMutation() - const { mutate: updateDatabaseFunction, isLoading: isUpdating } = - useDatabaseFunctionUpdateMutation() - - function isClosingSidePanel() { - form.formState.isDirty ? setIsClosingPanel(true) : setVisible(!visible) - } - - const onSubmit: SubmitHandler> = async (data) => { - if (!project) return console.error('Project is required') - const payload = { - ...data, - args: data.args.map((x) => `${x.name} ${x.type}`), - config_params: mapValues(keyBy(data.config_params, 'name'), 'value') as Record, - } - - if (isEditing) { - updateDatabaseFunction( - { - id: func.id, - projectRef: project.ref, - connectionString: project.connectionString, - payload, - }, - { - onSuccess: () => { - toast.success(`Successfully updated function ${data.name}`) - setVisible(!visible) - }, - } - ) - } else { - createDatabaseFunction( - { - projectRef: project.ref, - connectionString: project.connectionString, - payload, - }, - { - onSuccess: () => { - toast.success(`Successfully created function ${data.name}`) - setVisible(!visible) - }, - } - ) - } - } - - useEffect(() => { - if (visible) { - form.reset({ - name: func?.name ?? '', - schema: func?.schema ?? 'public', - args: convertArgumentTypes(func?.argument_types || '').value, - behavior: func?.behavior ?? 'VOLATILE', - definition: func?.definition ?? '', - language: func?.language ?? 'plpgsql', - return_type: func?.return_type ?? 'void', - security_definer: func?.security_definer ?? false, - config_params: convertConfigParams(func?.config_params).value, - }) - } - }, [visible, func]) - - return ( - isClosingSidePanel()} - customFooter={ -
    - - - -
    - } - > - -
    - - ( - - - - - - )} - /> - - - - ( - - - field.onChange(name)} - /> - - - )} - /> - {!isEditing && ( - ( - - {/* Form selects don't need form controls, otherwise the CSS gets weird */} - - - - - - {['void', 'record', 'trigger', 'integer', ...POSTGRES_DATA_TYPES].map( - (option) => ( - - {option} - - ) - )} - - - - )} - /> - )} - - - - - - - - ( - -
    - - Definition - - -

    The language below should be written in `plpgsql`.

    - {!isEditing &&

    Change the language in the advanced settings below.

    } -
    -
    - -
    - - { - field.onChange(value) - }} - contextmenu={false} - /> - -
    - - -
    - )} - /> -
    - - {isEditing ? null : ( - <> - -
    - setAdvancedSettingsShown(!advancedSettingsShown)} - label="Show advanced settings" - checked={advancedSettingsShown} - labelOptional="These are settings that might be familiar for Postgres developers" - /> -
    -
    - {advancedSettingsShown && ( - <> - -
    - - ( - - - - - - - - immutable - - - stable - - - volatile - - - - - )} - /> -
    -
    - - - - - - -
    -
    Type of security
    - ( - - - {/* TODO: This RadioGroup imports Formik state, replace it with a clean component */} - - field.onChange(event.target.value == 'SECURITY_DEFINER') - } - value={field.value ? 'SECURITY_DEFINER' : 'SECURITY_INVOKER'} - > - - Function is to be executed with the privileges of the user - that calls it. - - } - /> - - Function is to be executed with the privileges of the user - that created it. - - } - /> - - - - - )} - /> -
    -
    - - )} - - )} - -
    - - setIsClosingPanel(false)} - onSelectConfirm={() => { - setIsClosingPanel(false) - setVisible(!visible) - }} - > - -

    - There are unsaved changes. Are you sure you want to close the panel? Your changes will - be lost. -

    -
    -
    -
    - ) -} - -export default CreateFunction - -interface FormFieldConfigParamsProps { - readonly?: boolean -} - -const FormFieldArgs = ({ readonly }: FormFieldConfigParamsProps) => { - const { fields, append, remove } = useFieldArray>({ - name: 'args', - }) - - return ( - <> -
    -
    Arguments
    -

    - Arguments can be referenced in the function body using either names or numbers. -

    -
    -
    - {readonly && isEmpty(fields) && ( - No argument for this function - )} - {fields.map((field, index) => { - return ( -
    - ( - - - - - - - )} - /> - ( - - - {readonly ? ( - - ) : ( - - - - - - - {['integer', ...POSTGRES_DATA_TYPES].map((option) => ( - - {option} - - ))} - - - - )} - - - - )} - /> - - {!readonly && ( -
    - ) - })} - - {!readonly && ( - - )} -
    - - ) -} - -interface FormFieldConfigParamsProps { - readonly?: boolean -} - -const FormFieldConfigParams = ({ readonly }: FormFieldConfigParamsProps) => { - const { fields, append, remove } = useFieldArray>({ - name: 'config_params', - }) - - return ( - <> -
    Configuration parameters
    -
    - {readonly && isEmpty(fields) && ( - No argument for this function - )} - {fields.map((field, index) => { - return ( -
    - ( - - - - - - - )} - /> - ( - - - - - - - )} - /> - - {!readonly && ( -
    - ) - })} - - {!readonly && ( - - )} -
    - - ) -} - -const FormFieldLanguage = () => { - const { project } = useProjectContext() - - const { data } = useDatabaseExtensionsQuery({ - projectRef: project?.ref, - connectionString: project?.connectionString, - }) - - const [enabledExtensions] = partition(data ?? [], (ext) => !isNull(ext.installed_version)) - - return ( - ( - - {/* Form selects don't need form controls, otherwise the CSS gets weird */} - - - - - - {enabledExtensions - .filter((ex) => { - return ex.name.startsWith('pl') - }) - .map((option) => ( - - {option.name} - - ))} - - - - )} - /> - ) -} diff --git a/apps/studio/components/interfaces/Database/Functions/CreateFunction/CreateFunctionHeader.tsx b/apps/studio/components/interfaces/Database/Functions/CreateFunction/CreateFunctionHeader.tsx new file mode 100644 index 00000000000..bf8eb775cfc --- /dev/null +++ b/apps/studio/components/interfaces/Database/Functions/CreateFunction/CreateFunctionHeader.tsx @@ -0,0 +1,64 @@ +import { X } from 'lucide-react' + +import { SheetClose, SheetHeader, SheetTitle, cn } from 'ui' + +export const CreateFunctionHeader = ({ + selectedFunction, + assistantVisible, + setAssistantVisible, +}: { + selectedFunction?: string + assistantVisible: boolean + setAssistantVisible: (v: boolean) => void +}) => { + return ( + +
    + + + Close + + + {selectedFunction !== undefined + ? `Edit '${selectedFunction}' function` + : 'Add a new function'} + +
    + {/* + + + + + {assistantVisible ? 'Hide' : 'Show'} tools + + */} +
    + ) +} diff --git a/apps/studio/components/interfaces/Database/Functions/CreateFunction/FunctionEditor.tsx b/apps/studio/components/interfaces/Database/Functions/CreateFunction/FunctionEditor.tsx new file mode 100644 index 00000000000..8742807280e --- /dev/null +++ b/apps/studio/components/interfaces/Database/Functions/CreateFunction/FunctionEditor.tsx @@ -0,0 +1,59 @@ +import { Maximize2, Minimize2 } from 'lucide-react' + +import SqlEditor from 'components/ui/SqlEditor' +import { + Button, + FormControl_Shadcn_, + TooltipContent_Shadcn_, + TooltipTrigger_Shadcn_, + Tooltip_Shadcn_, + cn, +} from 'ui' + +export const FunctionEditor = ({ + field, + focused, + setFocused, +}: { + field: any + focused: boolean + setFocused: (b: boolean) => void +}) => { + return ( +
    + + { + field.onChange(value) + }} + contextmenu={false} + /> + +
    + + + + + + {focused ? 'Minimize editor' : 'Maximize editor'} + + +
    +
    + ) +} diff --git a/apps/studio/components/interfaces/Database/Functions/CreateFunction/index.tsx b/apps/studio/components/interfaces/Database/Functions/CreateFunction/index.tsx new file mode 100644 index 00000000000..c299d209d8a --- /dev/null +++ b/apps/studio/components/interfaces/Database/Functions/CreateFunction/index.tsx @@ -0,0 +1,632 @@ +import { zodResolver } from '@hookform/resolvers/zod' +import { PostgresFunction } from '@supabase/postgres-meta' +import { isEmpty, isNull, keyBy, mapValues, partition } from 'lodash' +import { useEffect, useState } from 'react' +import { SubmitHandler, useFieldArray, useForm } from 'react-hook-form' +import toast from 'react-hot-toast' +import z from 'zod' +import { Plus, Trash } from 'lucide-react' + +import { POSTGRES_DATA_TYPES } from 'components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.constants' +import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext' +import SchemaSelector from 'components/ui/SchemaSelector' +import { useDatabaseExtensionsQuery } from 'data/database-extensions/database-extensions-query' +import { useDatabaseFunctionCreateMutation } from 'data/database-functions/database-functions-create-mutation' +import { useDatabaseFunctionUpdateMutation } from 'data/database-functions/database-functions-update-mutation' +import { EXCLUDED_SCHEMAS } from 'lib/constants/schemas' +import type { FormSchema } from 'types' +import { + Button, + FormControl_Shadcn_, + FormDescription_Shadcn_, + FormField_Shadcn_, + FormItem_Shadcn_, + FormLabel_Shadcn_, + FormMessage_Shadcn_, + Form_Shadcn_, + Input_Shadcn_, + Modal, + Radio, + SelectContent_Shadcn_, + SelectItem_Shadcn_, + SelectTrigger_Shadcn_, + SelectValue_Shadcn_, + Select_Shadcn_, + Separator, + Sheet, + ScrollArea, + SheetContent, + SheetFooter, + SheetSection, + Toggle, + cn, +} from 'ui' +import ConfirmationModal from 'ui-patterns/Dialogs/ConfirmationModal' +import { FormItemLayout } from 'ui-patterns/form/FormItemLayout/FormItemLayout' +import { convertArgumentTypes, convertConfigParams } from '../Functions.utils' +import { CreateFunctionHeader } from './CreateFunctionHeader' +import { FunctionEditor } from './FunctionEditor' + +const FORM_ID = 'create-function-sidepanel' + +interface CreateFunctionProps { + func?: PostgresFunction + visible: boolean + setVisible: (value: boolean) => void +} + +const FormSchema = z.object({ + name: z.string().trim().min(1), + schema: z.string().trim().min(1), + args: z.array(z.object({ name: z.string().trim().min(1), type: z.string().trim() })), + behavior: z.enum(['IMMUTABLE', 'STABLE', 'VOLATILE']), + definition: z.string().trim().min(1), + language: z.string().trim(), + return_type: z.string().trim(), + security_definer: z.boolean(), + config_params: z + .array(z.object({ name: z.string().trim().min(1), value: z.string().trim().min(1) })) + .optional(), +}) + +const CreateFunction = ({ func, visible, setVisible }: CreateFunctionProps) => { + const { project } = useProjectContext() + const [isClosingPanel, setIsClosingPanel] = useState(false) + const [advancedSettingsShown, setAdvancedSettingsShown] = useState(false) + // For now, there's no AI assistant for functions + const [assistantVisible, setAssistantVisible] = useState(false) + const [focusedEditor, setFocusedEditor] = useState(false) + + const isEditing = !!func?.id + + const form = useForm>({ + resolver: zodResolver(FormSchema), + }) + + const { mutate: createDatabaseFunction, isLoading: isCreating } = + useDatabaseFunctionCreateMutation() + const { mutate: updateDatabaseFunction, isLoading: isUpdating } = + useDatabaseFunctionUpdateMutation() + + function isClosingSidePanel() { + form.formState.isDirty ? setIsClosingPanel(true) : setVisible(!visible) + } + + const onSubmit: SubmitHandler> = async (data) => { + if (!project) return console.error('Project is required') + const payload = { + ...data, + args: data.args.map((x) => `${x.name} ${x.type}`), + config_params: mapValues(keyBy(data.config_params, 'name'), 'value') as Record, + } + + if (isEditing) { + updateDatabaseFunction( + { + id: func.id, + projectRef: project.ref, + connectionString: project.connectionString, + payload, + }, + { + onSuccess: () => { + toast.success(`Successfully updated function ${data.name}`) + setVisible(!visible) + }, + } + ) + } else { + createDatabaseFunction( + { + projectRef: project.ref, + connectionString: project.connectionString, + payload, + }, + { + onSuccess: () => { + toast.success(`Successfully created function ${data.name}`) + setVisible(!visible) + }, + } + ) + } + } + + useEffect(() => { + if (visible) { + form.reset({ + name: func?.name ?? '', + schema: func?.schema ?? 'public', + args: convertArgumentTypes(func?.argument_types || '').value, + behavior: func?.behavior ?? 'VOLATILE', + definition: func?.definition ?? '', + language: func?.language ?? 'plpgsql', + return_type: func?.return_type ?? 'void', + security_definer: func?.security_definer ?? false, + config_params: convertConfigParams(func?.config_params).value, + }) + } + }, [visible, func]) + + return ( + isClosingSidePanel()}> + +
    + + + +
    + + ( + + + + + + )} + /> + + + + ( + + + field.onChange(name)} + /> + + + )} + /> + {!isEditing && ( + ( + + {/* Form selects don't need form controls, otherwise the CSS gets weird */} + + + + + + + {['void', 'record', 'trigger', 'integer', ...POSTGRES_DATA_TYPES].map( + (option) => ( + + {option} + + ) + )} + + + + + )} + /> + )} + + + + + + + + ( + +
    + + Definition + + +

    + The language below should be written in plpgsql. +

    + {!isEditing &&

    Change the language in the Advanced Settings below.

    } +
    +
    +
    + +
    + + +
    + )} + /> +
    + + {isEditing ? ( + <> + ) : ( + <> + +
    + setAdvancedSettingsShown(!advancedSettingsShown)} + label="Show advanced settings" + checked={advancedSettingsShown} + labelOptional="These are settings that might be familiar for Postgres developers" + /> +
    +
    + {advancedSettingsShown && ( + <> + + + ( + + {/* Form selects don't need form controls, otherwise the CSS gets weird */} + + + + + + + immutable + + + stable + + + volatile + + + + + )} + /> + + + + + + + +
    Type of Security
    + ( + + + {/* TODO: This RadioGroup imports Formik state, replace it with a clean component */} + + field.onChange(event.target.value == 'SECURITY_DEFINER') + } + value={field.value ? 'SECURITY_DEFINER' : 'SECURITY_INVOKER'} + > + + Function is to be executed with the privileges of the user + that calls it. + + } + /> + + Function is to be executed with the privileges of the user + that created it. + + } + /> + + + + + )} + /> +
    + + )} + + )} + +
    + + + + +
    + {assistantVisible ? ( +
    + {/* This is where the AI assistant would be added */} +
    + ) : null} + setIsClosingPanel(false)} + onConfirm={() => { + setIsClosingPanel(false) + setVisible(!visible) + }} + > +

    + There are unsaved changes. Are you sure you want to close the panel? Your changes will + be lost. +

    +
    +
    +
    + ) +} + +export default CreateFunction + +interface FormFieldConfigParamsProps { + readonly?: boolean +} + +const FormFieldArgs = ({ readonly }: FormFieldConfigParamsProps) => { + const { fields, append, remove } = useFieldArray>({ + name: 'args', + }) + + return ( + <> +
    +
    Arguments
    +

    + Arguments can be referenced in the function body using either names or numbers. +

    +
    +
    + {readonly && isEmpty(fields) && ( + No argument for this function + )} + {fields.map((field, index) => { + return ( +
    + ( + + + + + + + )} + /> + ( + + + {readonly ? ( + + ) : ( + <> + + + + + + + {['integer', ...POSTGRES_DATA_TYPES].map((option) => ( + + {option} + + ))} + + + + + )} + + + + )} + /> + + {!readonly && ( +
    + ) + })} + + {!readonly && ( + + )} +
    + + ) +} + +interface FormFieldConfigParamsProps { + readonly?: boolean +} + +const FormFieldConfigParams = ({ readonly }: FormFieldConfigParamsProps) => { + const { fields, append, remove } = useFieldArray>({ + name: 'config_params', + }) + + return ( + <> +
    Configuration Parameters
    +
    + {readonly && isEmpty(fields) && ( + No argument for this function + )} + {fields.map((field, index) => { + return ( +
    + ( + + + + + + + )} + /> + ( + + + + + + + )} + /> + + {!readonly && ( +
    + ) + })} + + {!readonly && ( + + )} +
    + + ) +} + +const FormFieldLanguage = () => { + const { project } = useProjectContext() + + const { data } = useDatabaseExtensionsQuery({ + projectRef: project?.ref, + connectionString: project?.connectionString, + }) + + const [enabledExtensions] = partition(data ?? [], (ext) => !isNull(ext.installed_version)) + + return ( + ( + + {/* Form selects don't need form controls, otherwise the CSS gets weird */} + + + + + + {enabledExtensions + .filter((ex) => { + return ex.name.startsWith('pl') + }) + .map((option) => ( + + {option.name} + + ))} + + + + )} + /> + ) +} diff --git a/apps/studio/components/interfaces/Database/Functions/FunctionsList/FunctionsList.tsx b/apps/studio/components/interfaces/Database/Functions/FunctionsList/FunctionsList.tsx index 4fb98099095..8fe6fe053fd 100644 --- a/apps/studio/components/interfaces/Database/Functions/FunctionsList/FunctionsList.tsx +++ b/apps/studio/components/interfaces/Database/Functions/FunctionsList/FunctionsList.tsx @@ -2,9 +2,10 @@ import * as Tooltip from '@radix-ui/react-tooltip' import type { PostgresFunction } from '@supabase/postgres-meta' import { PermissionAction } from '@supabase/shared-types/out/constants' import { noop, partition } from 'lodash' -import { useState } from 'react' +import { useRouter } from 'next/router' import { Button, IconSearch, Input } from 'ui' +import { useParams } from 'common' import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext' import ProductEmptyState from 'components/to-be-cleaned/ProductEmptyState' import Table from 'components/to-be-cleaned/Table' @@ -15,6 +16,7 @@ import { useDatabaseFunctionsQuery } from 'data/database-functions/database-func import { useSchemasQuery } from 'data/database/schemas-query' import { useCheckPermissions } from 'hooks' import { EXCLUDED_SCHEMAS } from 'lib/constants/schemas' +import { useEffect } from 'react' import ProtectedSchemaWarning from '../../ProtectedSchemaWarning' import FunctionList from './FunctionList' @@ -30,8 +32,33 @@ const FunctionsList = ({ deleteFunction = noop, }: FunctionsListProps) => { const { project } = useProjectContext() - const [selectedSchema, setSelectedSchema] = useState('public') - const [filterString, setFilterString] = useState('') + const router = useRouter() + const { schema, search } = useParams() + const selectedSchema = schema ?? 'public' + const filterString = search ?? '' + + const setSelectedSchema = (s: string) => { + const url = new URL(document.URL) + url.searchParams.delete('search') + url.searchParams.set('schema', s) + router.push(url) + } + const setFilterString = (str: string) => { + const url = new URL(document.URL) + if (str === '') { + url.searchParams.delete('search') + } else { + url.searchParams.set('search', str) + } + router.push(url) + } + + // update the url to point to public schema + useEffect(() => { + if (schema !== selectedSchema) { + setSelectedSchema(selectedSchema) + } + }, []) const canCreateFunctions = useCheckPermissions( PermissionAction.TENANT_SQL_ADMIN_WRITE, @@ -45,8 +72,8 @@ const FunctionsList = ({ const [protectedSchemas] = partition(schemas ?? [], (schema) => EXCLUDED_SCHEMAS.includes(schema?.name ?? '') ) - const schema = schemas?.find((schema) => schema.name === selectedSchema) - const isLocked = protectedSchemas.some((s) => s.id === schema?.id) + const foundSchema = schemas?.find((schema) => schema.name === selectedSchema) + const isLocked = protectedSchemas.some((s) => s.id === foundSchema?.id) const { data: functions, diff --git a/apps/studio/components/interfaces/Database/Hooks/EditHookPanel.tsx b/apps/studio/components/interfaces/Database/Hooks/EditHookPanel.tsx index c978ecc60d5..facc120d93e 100644 --- a/apps/studio/components/interfaces/Database/Hooks/EditHookPanel.tsx +++ b/apps/studio/components/interfaces/Database/Hooks/EditHookPanel.tsx @@ -310,21 +310,19 @@ const EditHookPanel = ({ visible, selectedHook, onClose }: EditHookPanelProps) = setIsClosingPanel(false)} - onSelectConfirm={() => { + title="Discard changes" + confirmLabel="Discard" + onCancel={() => setIsClosingPanel(false)} + onConfirm={() => { setIsClosingPanel(false) setIsEdited(false) onClose() }} > - -

    - There are unsaved changes. Are you sure you want to close the panel? Your changes will - be lost. -

    -
    +

    + There are unsaved changes. Are you sure you want to close the panel? Your changes will be + lost. +

    ) diff --git a/apps/studio/components/interfaces/Database/Hooks/HooksList/HooksList.tsx b/apps/studio/components/interfaces/Database/Hooks/HooksList/HooksList.tsx index 62a2fcd0390..6a2aabfa437 100644 --- a/apps/studio/components/interfaces/Database/Hooks/HooksList/HooksList.tsx +++ b/apps/studio/components/interfaces/Database/Hooks/HooksList/HooksList.tsx @@ -7,7 +7,6 @@ import { Button, IconExternalLink, IconSearch, Input } from 'ui' import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext' import AlertError from 'components/ui/AlertError' -import { FormHeader } from 'components/ui/Forms' import NoSearchResults from 'components/ui/NoSearchResults' import { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader' import { useDatabaseHooksQuery } from 'data/database-triggers/database-triggers-query' @@ -45,95 +44,87 @@ const HooksList = ({ createHook = noop, editHook = noop, deleteHook = noop }: Ho const isPermissionsLoaded = usePermissionsLoaded() return ( - <> +
    - } + value={filterString} + className="w-64" + onChange={(e) => setFilterString(e.target.value)} /> -
    -
    -
    - } - value={filterString} - className="w-64" - onChange={(e) => setFilterString(e.target.value)} - /> -
    - + + + - - - - - {isPermissionsLoaded && !canCreateWebhooks && ( - - - -
    - - You need additional permissions to create webhooks - -
    -
    -
    - )} -
    -
    + Create a new hook + + + {isPermissionsLoaded && !canCreateWebhooks && ( + + + +
    + + You need additional permissions to create webhooks + +
    +
    +
    + )} +
    - - {isLoading && ( -
    - -
    - )} - - {isError && } - - {isSuccess && - (hooks.length <= 0 ? ( - - ) : ( - <> - {filteredHooks.length <= 0 && ( - setFilterString('')} - /> - )} - {filteredHookSchemas.map((schema: any) => ( - - ))} - - ))}
    - + + {isLoading && ( +
    + +
    + )} + + {isError && } + + {isSuccess && + (hooks.length <= 0 ? ( + + ) : ( + <> + {filteredHooks.length <= 0 && ( + setFilterString('')} + /> + )} + {filteredHookSchemas.map((schema: any) => ( + + ))} + + ))} +
    ) } diff --git a/apps/studio/components/interfaces/Database/Indexes/CreateIndexSidePanel.tsx b/apps/studio/components/interfaces/Database/Indexes/CreateIndexSidePanel.tsx index d7fa601be4c..db61e85a643 100644 --- a/apps/studio/components/interfaces/Database/Indexes/CreateIndexSidePanel.tsx +++ b/apps/studio/components/interfaces/Database/Indexes/CreateIndexSidePanel.tsx @@ -2,6 +2,7 @@ import Link from 'next/link' import { useEffect, useMemo, useState } from 'react' import toast from 'react-hot-toast' +import { SelectValue } from '@ui/components/shadcn/ui/select' import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext' import { CodeEditor } from 'components/ui/CodeEditor' import ShimmeringLoader from 'components/ui/ShimmeringLoader' @@ -10,8 +11,19 @@ import { useSchemasQuery } from 'data/database/schemas-query' import { useTableColumnsQuery } from 'data/database/table-columns-query' import { useEntityTypesQuery } from 'data/entity-types/entity-types-infinite-query' import { useExecuteSqlMutation } from 'data/sql/execute-sql-mutation' -import { Button, Input, Listbox, SidePanel } from 'ui' +import { + Button, + Input, + SelectContent_Shadcn_, + SelectItem_Shadcn_, + SelectSeparator_Shadcn_, + SelectTrigger_Shadcn_, + SelectValue_Shadcn_, + Select_Shadcn_, + SidePanel, +} from 'ui' import MultiSelect, { MultiSelectOption } from 'ui-patterns/MultiSelect' +import { FormItemLayout } from 'ui-patterns/form/FormItemLayout/FormItemLayout' import { INDEX_TYPES } from './Indexes.constants' interface CreateIndexSidePanelProps { @@ -22,7 +34,7 @@ interface CreateIndexSidePanelProps { const CreateIndexSidePanel = ({ visible, onClose }: CreateIndexSidePanelProps) => { const { project } = useProjectContext() const [selectedSchema, setSelectedSchema] = useState('public') - const [selectedEntity, setSelectedEntity] = useState('---') + const [selectedEntity, setSelectedEntity] = useState(undefined) const [selectedColumns, setSelectedColumns] = useState([]) const [selectedIndexType, setSelectedIndexType] = useState(INDEX_TYPES[0].value) @@ -92,14 +104,14 @@ CREATE INDEX ON "${selectedSchema}"."${selectedEntity}" USING ${selectedIndexTyp useEffect(() => { if (visible) { setSelectedSchema('public') - setSelectedEntity('---') + setSelectedEntity('') setSelectedColumns([]) setSelectedIndexType(INDEX_TYPES[0].value) } }, [visible]) useEffect(() => { - setSelectedEntity('---') + setSelectedEntity('') setSelectedColumns([]) setSelectedIndexType(INDEX_TYPES[0].value) }, [selectedSchema]) @@ -109,6 +121,8 @@ CREATE INDEX ON "${selectedSchema}"."${selectedEntity}" USING ${selectedIndexTyp setSelectedIndexType(INDEX_TYPES[0].value) }, [selectedEntity]) + const isSelectEntityDisabled = entityTypes.length === 0 + return (
    - - {(schemas ?? []).map((schema) => ( - - {schema.name} - - ))} - - - {entityTypes.length === 0 ? ( -
    -

    Select a table

    - -
    - ) : ( - + - - --- - - {(entityTypes ?? []).map((entity) => ( - - {entity.name} - - ))} - - )} + + {selectedSchema} + + + {(schemas ?? []).map((schema) => ( + + {schema.name} + + ))} + + + - {selectedEntity !== '---' && ( -
    -

    Select up to 32 columns

    + + + + + {selectedEntity} + + + + {(entityTypes ?? []).map((entity) => ( + + {entity.name} + + ))} + + + + + {selectedEntity && ( + {isLoadingTableColumns && } {isSuccessTableColumns && ( )} -
    + )}
    @@ -182,21 +208,43 @@ CREATE INDEX ON "${selectedSchema}"."${selectedEntity}" USING ${selectedIndexTyp <> - - {INDEX_TYPES.map((index) => ( - -

    {index.name}

    - {index.description.split('\n').map((x, idx) => ( -

    {x}

    + + + + {selectedIndexType} + + + + {INDEX_TYPES.map((index, i) => ( + <> + +
    + {index.name} + {index.description.split('\n').map((x, idx) => ( + + {x} + + ))} +
    +
    + {i < INDEX_TYPES.length - 1 && } + ))} -
    - ))} -
    + + +
    diff --git a/apps/studio/components/interfaces/Database/Indexes/Indexes.tsx b/apps/studio/components/interfaces/Database/Indexes/Indexes.tsx index 08a58863830..14f9af79eaa 100644 --- a/apps/studio/components/interfaces/Database/Indexes/Indexes.tsx +++ b/apps/studio/components/interfaces/Database/Indexes/Indexes.tsx @@ -1,23 +1,10 @@ import { partition, sortBy } from 'lodash' -import Link from 'next/link' -import { useState } from 'react' +import { useEffect, useState } from 'react' import toast from 'react-hot-toast' -import { - AlertDescription_Shadcn_, - AlertTitle_Shadcn_, - Alert_Shadcn_, - Button, - IconAlertCircle, - IconAlertTriangle, - IconExternalLink, - IconSearch, - IconTrash, - Input, - Modal, - SidePanel, -} from 'ui' +import { Button, IconAlertCircle, IconSearch, IconTrash, Input, SidePanel } from 'ui' import ConfirmationModal from 'ui-patterns/Dialogs/ConfirmationModal' +import { useParams } from 'common' import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext' import Table from 'components/to-be-cleaned/Table' import AlertError from 'components/ui/AlertError' @@ -32,13 +19,15 @@ import ProtectedSchemaWarning from '../ProtectedSchemaWarning' import CreateIndexSidePanel from './CreateIndexSidePanel' const Indexes = () => { + const { project } = useProjectContext() + const { schema: urlSchema, table } = useParams() + const [search, setSearch] = useState('') const [selectedSchema, setSelectedSchema] = useState('public') const [showCreateIndex, setShowCreateIndex] = useState(false) const [selectedIndex, setSelectedIndex] = useState() const [selectedIndexToDelete, setSelectedIndexToDelete] = useState() - const { project } = useProjectContext() const { data: allIndexes, refetch: refetchIndexes, @@ -93,38 +82,20 @@ const Indexes = () => { }) } + useEffect(() => { + if (urlSchema !== undefined) { + const schema = schemas?.find((s) => s.name === urlSchema) + if (schema !== undefined) setSelectedSchema(schema.name) + } + }, [urlSchema, isSuccessSchemas]) + + useEffect(() => { + if (table !== undefined) setSearch(table) + }, [table]) + return ( <>
    -
    -
    -

    Database Indexes

    -
    - Improve query performance against your database -
    -
    -
    - - -
    -
    -
    @@ -264,48 +235,41 @@ const Indexes = () => { setShowCreateIndex(false)} /> Confirm to delete index {selectedIndexToDelete?.name} } - buttonLabel="Confirm delete" - buttonLoadingLabel="Deleting..." - onSelectConfirm={() => + confirmLabel="Confirm delete" + confirmLabelLoading="Deleting..." + onConfirm={() => selectedIndexToDelete !== undefined ? onConfirmDeleteIndex(selectedIndexToDelete) : {} } - onSelectCancel={() => setSelectedIndexToDelete(undefined)} + onCancel={() => setSelectedIndexToDelete(undefined)} + alert={{ + title: 'This action cannot be undone', + description: + 'Deleting an index that is still in use will cause queries to slow down, and in some cases causing significant performance issues.', + }} > - -
    - - - This action cannot be undone - - Deleting an index that is still in use will cause queries to slow down, and in some - cases causing significant performance issues. - - -
      -
    • -
      - Before deleting this index, consider: -
        -
      • This index is no longer in use
      • -
      • - The table which the index is on is not currently in use, as dropping an index - requires a short exclusive access lock on the table. -
      • -
      -
      -
    • -
    -
    -
    +
      +
    • +
      + Before deleting this index, consider: +
        +
      • This index is no longer in use
      • +
      • + The table which the index is on is not currently in use, as dropping an index + requires a short exclusive access lock on the table. +
      • +
      +
      +
    • +
    ) diff --git a/apps/studio/components/interfaces/Database/Migrations/Migrations.tsx b/apps/studio/components/interfaces/Database/Migrations/Migrations.tsx index d752098009c..74896cc2b27 100644 --- a/apps/studio/components/interfaces/Database/Migrations/Migrations.tsx +++ b/apps/studio/components/interfaces/Database/Migrations/Migrations.tsx @@ -1,7 +1,7 @@ import dayjs from 'dayjs' import Link from 'next/link' import { useState } from 'react' -import { Alert, Button, IconExternalLink, IconSearch, Input, SidePanel } from 'ui' +import { Alert, Button, IconSearch, Input, SidePanel } from 'ui' import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext' import Table from 'components/to-be-cleaned/Table' @@ -28,131 +28,109 @@ const Migrations = () => { return ( <> -
    -
    -
    -

    Database Migrations

    -
    - History of migrations that have been run on your database -
    -
    -
    - -
    + {isLoading && ( +
    + + +
    + )} - {isLoading && ( -
    - - - +
    + {isError && ( + + + Contact support + + , + ]} + > +

    + Try refreshing your browser, but if the issue persists, please reach out to us via + support. +

    +

    Error: {(error as any)?.message ?? 'Unknown'}

    +
    + )} + {isSuccess && ( +
    + {data.result.length <= 0 && } + + {data.result.length > 0 && ( + <> +
    + setSearch(e.target.value)} + icon={} + /> +
    +
    + Version + , + Name, + Inserted at (UTC), + , + ]} + body={ + migrations.length > 0 ? ( + migrations.map((migration) => { + // [Joshen] LEFT OFF HERE + const insertedAt = dayjs(migration.version, 'YYYYMMDDHHmmss').format( + 'DD MMM YYYY, HH:mm:ss' + ) + + return ( + + {migration.version} + + {migration?.name ?? 'Name not available'} + + {insertedAt} + + + + + ) + }) + ) : ( + + +

    No results found

    +

    + Your search for "{search}" did not return any results +

    +
    +
    + ) + } + /> + + )} )} - -
    - {isError && ( - - - Contact support - - , - ]} - > -

    - Try refreshing your browser, but if the issue persists, please reach out to us via - support. -

    -

    Error: {(error as any)?.message ?? 'Unknown'}

    -
    - )} - {isSuccess && ( -
    - {data.result.length <= 0 && } - - {data.result.length > 0 && ( - <> -
    - setSearch(e.target.value)} - icon={} - /> -
    -
    - Version - , - Name, - Inserted at (UTC), - , - ]} - body={ - migrations.length > 0 ? ( - migrations.map((migration) => { - // [Joshen] LEFT OFF HERE - const insertedAt = dayjs(migration.version, 'YYYYMMDDHHmmss').format( - 'DD MMM YYYY, HH:mm:ss' - ) - - return ( - - {migration.version} - - {migration?.name ?? 'Name not available'} - - {insertedAt} - - - - - ) - }) - ) : ( - - -

    No results found

    -

    - Your search for "{search}" did not return any results -

    -
    -
    - ) - } - /> - - )} - - )} - } - title="You need additional permissions to update database replications" + title="You need additional permissions to update database publications" /> )} @@ -173,21 +173,19 @@ const PublicationsList = ({ onSelectPublication = noop }: PublicationsListProps) setToggleListenEventValue(null)} - onSelectConfirm={() => { + title={`Confirm to toggle sending ${toggleListenEventValue?.event.event.toLowerCase()} events`} + confirmLabel="Confirm" + confirmLabelLoading="Updating" + onCancel={() => setToggleListenEventValue(null)} + onConfirm={() => { toggleListenEvent() }} > - -

    - Are you sure you want to {toggleListenEventValue?.currentStatus ? 'stop' : 'start'}{' '} - sending {toggleListenEventValue?.event.event.toLowerCase()} events for{' '} - {toggleListenEventValue?.publication.name}? -

    -
    +

    + Are you sure you want to {toggleListenEventValue?.currentStatus ? 'stop' : 'start'}{' '} + sending {toggleListenEventValue?.event.event.toLowerCase()} events for{' '} + {toggleListenEventValue?.publication.name}? +

    ) diff --git a/apps/studio/components/interfaces/Database/Publications/PublicationsTableItem.tsx b/apps/studio/components/interfaces/Database/Publications/PublicationsTableItem.tsx index 08aa8acb6dc..d7d8deb5670 100644 --- a/apps/studio/components/interfaces/Database/Publications/PublicationsTableItem.tsx +++ b/apps/studio/components/interfaces/Database/Publications/PublicationsTableItem.tsx @@ -79,7 +79,7 @@ const PublicationsTableItem = ({ table, selectedPublication }: PublicationsTable
    {enabledForAllTables ? ( - + Enabled  for all tables diff --git a/apps/studio/components/interfaces/Database/Roles/CreateRolePanel.tsx b/apps/studio/components/interfaces/Database/Roles/CreateRolePanel.tsx index 3fc02a62cc7..de9d9e846ee 100644 --- a/apps/studio/components/interfaces/Database/Roles/CreateRolePanel.tsx +++ b/apps/studio/components/interfaces/Database/Roles/CreateRolePanel.tsx @@ -26,22 +26,22 @@ interface CreateRolePanelProps { const FormSchema = z.object({ name: z.string().trim().min(1, 'You must provide a name').default(''), - is_superuser: z.boolean().default(false), - can_login: z.boolean().default(false), - can_create_role: z.boolean().default(false), - can_create_db: z.boolean().default(false), - is_replication_role: z.boolean().default(false), - can_bypass_rls: z.boolean().default(false), + isSuperuser: z.boolean().default(false), + canLogin: z.boolean().default(false), + canCreateRole: z.boolean().default(false), + canCreateDb: z.boolean().default(false), + isReplicationRole: z.boolean().default(false), + canBypassRls: z.boolean().default(false), }) const initialValues = { name: '', - is_superuser: false, - can_login: false, - can_create_role: false, - can_create_db: false, - is_replication_role: false, - can_bypass_rls: false, + isSuperuser: false, + canLogin: false, + canCreateRole: false, + canCreateDb: false, + isReplicationRole: false, + canBypassRls: false, } const CreateRolePanel = ({ visible, onClose }: CreateRolePanelProps) => { @@ -54,8 +54,8 @@ const CreateRolePanel = ({ visible, onClose }: CreateRolePanelProps) => { }) const { mutate: createDatabaseRole, isLoading: isCreating } = useDatabaseRoleCreateMutation({ - onSuccess: (res) => { - toast.success(`Successfully created new role: ${res.name}`) + onSuccess: (_, vars) => { + toast.success(`Successfully created new role: ${vars.payload.name}`) handleClose() }, }) diff --git a/apps/studio/components/interfaces/Database/Roles/DeleteRoleModal.tsx b/apps/studio/components/interfaces/Database/Roles/DeleteRoleModal.tsx index efb5dfdd93c..4422024b5c2 100644 --- a/apps/studio/components/interfaces/Database/Roles/DeleteRoleModal.tsx +++ b/apps/studio/components/interfaces/Database/Roles/DeleteRoleModal.tsx @@ -27,7 +27,7 @@ const DeleteRoleModal = ({ role, visible, onClose }: DeleteRoleModalProps) => { deleteDatabaseRole({ projectRef: project.ref, connectionString: project.connectionString, - id: role.id.toString(), + id: role.id, }) } diff --git a/apps/studio/components/interfaces/Database/Roles/RoleRow.tsx b/apps/studio/components/interfaces/Database/Roles/RoleRow.tsx index a138fd08ee9..ae1f6eb55bd 100644 --- a/apps/studio/components/interfaces/Database/Roles/RoleRow.tsx +++ b/apps/studio/components/interfaces/Database/Roles/RoleRow.tsx @@ -1,5 +1,4 @@ import * as Tooltip from '@radix-ui/react-tooltip' -import type { PostgresRole } from '@supabase/postgres-meta' import { useState } from 'react' import toast from 'react-hot-toast' import { @@ -18,13 +17,14 @@ import { } from 'ui' import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext' +import { PgRole } from 'data/database-roles/database-roles-query' import { useDatabaseRoleUpdateMutation } from 'data/database-roles/database-role-update-mutation' import { ROLE_PERMISSIONS } from './Roles.constants' interface RoleRowProps { - role: PostgresRole + role: PgRole disabled?: boolean - onSelectDelete: (role: PostgresRole) => void + onSelectDelete: (role: PgRole) => void } const RoleRow = ({ role, disabled = false, onSelectDelete }: RoleRowProps) => { @@ -33,25 +33,22 @@ const RoleRow = ({ role, disabled = false, onSelectDelete }: RoleRowProps) => { const { mutate: updateDatabaseRole, isLoading: isUpdating } = useDatabaseRoleUpdateMutation() - const { - is_superuser, - can_login, - can_create_role, - can_create_db, - is_replication_role, - can_bypass_rls, - } = role + const { isSuperuser, canLogin, canCreateRole, canCreateDb, isReplicationRole, canBypassRls } = + role - const onSaveChanges = async (values: any, { resetForm }: any) => { + const onSaveChanges = async (values: Partial, { resetForm }: any) => { if (!project) return console.error('Project is required') - const { is_superuser, is_replication_role, ...payload } = values + const changed = Object.fromEntries( + Object.entries(values).filter(([k, v]) => v !== (role as any)[k]) + ) + updateDatabaseRole( { projectRef: project.ref, connectionString: project.connectionString, id: role.id, - payload, + payload: changed, }, { onSuccess: () => { @@ -66,12 +63,12 @@ const RoleRow = ({ role, disabled = false, onSelectDelete }: RoleRowProps) => {
    {
    - {role.active_connections > 0 && ( + {role.activeConnections > 0 && (
    @@ -129,10 +126,10 @@ const RoleRow = ({ role, disabled = false, onSelectDelete }: RoleRowProps) => {

    0 ? 'text-foreground' : 'text-foreground-light' + role.activeConnections > 0 ? 'text-foreground' : 'text-foreground-light' }`} > - {role.active_connections} connections + {role.activeConnections} connections

    {!disabled && ( diff --git a/apps/studio/components/interfaces/Database/Roles/Roles.constants.ts b/apps/studio/components/interfaces/Database/Roles/Roles.constants.ts index a8b661eec69..377dd9589c6 100644 --- a/apps/studio/components/interfaces/Database/Roles/Roles.constants.ts +++ b/apps/studio/components/interfaces/Database/Roles/Roles.constants.ts @@ -33,35 +33,35 @@ export const SYSTEM_ROLES = [ ] as const export const ROLE_PERMISSIONS = { - can_login: { + canLogin: { disabled: false, description: 'User can login', grant_by_dashboard: true, }, - can_create_role: { + canCreateRole: { disabled: false, description: 'User can create roles', grant_by_dashboard: true, }, - can_create_db: { + canCreateDb: { disabled: false, description: 'User can create databases', grant_by_dashboard: true, }, - can_bypass_rls: { - disabled: true, + canBypassRls: { + disabled: false, description: 'User bypasses every row level security policy', - grant_by_dashboard: false, + grant_by_dashboard: true, }, - is_superuser: { + isSuperuser: { disabled: true, description: 'User is a Superuser', grant_by_dashboard: false, }, - is_replication_role: { - disabled: true, + isReplicationRole: { + disabled: false, description: 'User can initiate streaming replication and put the system in and out of backup mode', - grant_by_dashboard: false, + grant_by_dashboard: true, }, } as const diff --git a/apps/studio/components/interfaces/Database/Roles/RolesList.tsx b/apps/studio/components/interfaces/Database/Roles/RolesList.tsx index 9a3b5c0ae33..089efbe930e 100644 --- a/apps/studio/components/interfaces/Database/Roles/RolesList.tsx +++ b/apps/studio/components/interfaces/Database/Roles/RolesList.tsx @@ -1,11 +1,11 @@ import * as Tooltip from '@radix-ui/react-tooltip' import { PermissionAction } from '@supabase/shared-types/out/constants' import { partition, sortBy } from 'lodash' +import { Plus, Search, X } from 'lucide-react' import { useState } from 'react' -import { Badge, Button, IconPlus, IconSearch, IconX, Input } from 'ui' +import { Badge, Button, Input } from 'ui' import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext' -import { FormHeader } from 'components/ui/Forms' import NoSearchResults from 'components/ui/NoSearchResults' import SparkBar from 'components/ui/SparkBar' import { useDatabaseRolesQuery } from 'data/database-roles/database-roles-query' @@ -42,161 +42,154 @@ const RolesList = () => { const roles = sortBy(data ?? [], (r) => r.name.toLocaleLowerCase()) const filteredRoles = ( - filterType === 'active' ? roles.filter((role) => role.active_connections > 0) : roles + filterType === 'active' ? roles.filter((role) => role.activeConnections > 0) : roles ).filter((role) => role.name.includes(filterString)) const [supabaseRoles, otherRoles] = partition(filteredRoles, (role) => SUPABASE_ROLES.includes(role.name as SUPABASE_ROLE) ) const totalActiveConnections = roles - .map((role) => role.active_connections) + .map((role) => role.activeConnections) .reduce((a, b) => a + b, 0) // order the roles with active connections by number of connections, most connections first const rolesWithActiveConnections = sortBy( - roles.filter((role) => role.active_connections > 0), - (r) => -r.active_connections + roles.filter((role) => role.activeConnections > 0), + (r) => -r.activeConnections ) return ( <> -
    -
    - +
    + } + value={filterString} + onChange={(event: any) => setFilterString(event.target.value)} + actions={ + filterString && ( + + ) + } /> -
    - -
    -
    - } - value={filterString} - onChange={(event: any) => setFilterString(event.target.value)} - actions={ - filterString && ( - - ) - } - /> -
    - -
    - -
    +
    + +
    +
    -
    - - -
    - 0.9 * maxConnectionLimit - ? 'bg-red-800' - : totalActiveConnections > 0.75 * maxConnectionLimit - ? 'bg-amber-900' - : 'bg-green-800' - } - labelTop={ - Number.isInteger(maxConnectionLimit) - ? `${totalActiveConnections}/${maxConnectionLimit}` - : `${totalActiveConnections}` - } - labelBottom="Active connections" - /> -
    -
    +
    +
    + + +
    + 0.9 * maxConnectionLimit + ? 'bg-destructive' + : totalActiveConnections > 0.75 * maxConnectionLimit + ? 'bg-warning' + : undefined + } + labelTop={ + Number.isInteger(maxConnectionLimit) + ? `${totalActiveConnections}/${maxConnectionLimit}` + : `${totalActiveConnections}` + } + labelBottom="Active connections" + /> +
    +
    + + +
    +

    Connections by roles:

    + {rolesWithActiveConnections.map((role) => ( +
    + {role.name}: {role.activeConnections} +
    + ))} +
    +
    +
    + + + + + {!canUpdateRoles && (
    -

    Connections by roles:

    - {rolesWithActiveConnections.map((role) => ( -
    - {role.name}: {role.active_connections} -
    - ))} + You need additional permissions to add a new role
    -
    - - - - - {!canUpdateRoles && ( - - -
    - You need additional permissions to add a new role -
    -
    - )} -
    -
    + )} +
    +
    -
    +
    + {supabaseRoles.length > 0 && (

    Roles managed by Supabase

    - Protected + Protected
    {isLoading ? Array.from({ length: 5 }).map((_, i) => ) - : supabaseRoles.map((role, i: number) => ( + : supabaseRoles.map((role) => ( { /> ))}
    + )} + {otherRoles.length > 0 && (

    Other database roles

    @@ -213,7 +208,7 @@ const RolesList = () => { {isLoading ? Array.from({ length: 3 }).map((_, i) => ) - : otherRoles.map((role, i: number) => ( + : otherRoles.map((role) => ( { /> ))}
    -
    - - {filterString.length > 0 && filteredRoles.length === 0 && ( - setFilterString('')} /> )}
    + {filterString.length > 0 && filteredRoles.length === 0 && ( + setFilterString('')} /> + )} + setIsCreatingRole(false)} /> void onAddColumn: () => void onEditColumn: (column: any) => void onDeleteColumn: (column: any) => void } const ColumnList = ({ - table, - onSelectBack = noop, onAddColumn = noop, onEditColumn = noop, onDeleteColumn = noop, }: ColumnListProps) => { + const { id, ref } = useParams() const [filterString, setFilterString] = useState('') - const { data: selectedTable, error, isError, isLoading, isSuccess } = useTable(table.id) + const { data: selectedTable, error, isError, isLoading, isSuccess } = useTable(Number(id)) const columns = (filterString.length === 0 ? selectedTable?.columns ?? [] : selectedTable?.columns?.filter((column: any) => column.name.includes(filterString))) ?? [] - const isLocked = EXCLUDED_SCHEMAS.includes(table.schema ?? '') + const isLocked = EXCLUDED_SCHEMAS.includes(selectedTable?.schema ?? '') const canUpdateColumns = useCheckPermissions(PermissionAction.TENANT_SQL_ADMIN_WRITE, 'columns') return (
    -
    -
    -

    Database Tables

    - -

    {table.name}

    -
    -
    -
    - {isLocked && } + {isLocked && } {isLoading && } {isError && ( )} diff --git a/apps/studio/components/interfaces/Database/Tables/TableList.tsx b/apps/studio/components/interfaces/Database/Tables/TableList.tsx index 4d14ce53614..c973aa89c73 100644 --- a/apps/studio/components/interfaces/Database/Tables/TableList.tsx +++ b/apps/studio/components/interfaces/Database/Tables/TableList.tsx @@ -1,9 +1,12 @@ import * as Tooltip from '@radix-ui/react-tooltip' import { PermissionAction } from '@supabase/shared-types/out/constants' import { noop, partition } from 'lodash' +import { Columns } from 'lucide-react' +import Link from 'next/link' import { useRouter } from 'next/router' import { useState } from 'react' +import { useParams } from 'common' import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext' import Table from 'components/to-be-cleaned/Table' import AlertError from 'components/ui/AlertError' @@ -22,7 +25,6 @@ import { DropdownMenuItem, DropdownMenuTrigger, IconCheck, - IconColumns, IconEdit, IconEye, IconMoreVertical, @@ -38,16 +40,15 @@ interface TableListProps { onAddTable: () => void onEditTable: (table: any) => void onDeleteTable: (table: any) => void - onOpenTable: (table: any) => void } const TableList = ({ onAddTable = noop, onEditTable = noop, onDeleteTable = noop, - onOpenTable = noop, }: TableListProps) => { const router = useRouter() + const { ref } = useParams() const { project } = useProjectContext() const snap = useTableEditorStateSnapshot() @@ -98,8 +99,6 @@ const TableList = ({ return (
    -

    Database Tables

    -
    {!isLocked && ( diff --git a/apps/studio/components/interfaces/Database/Triggers/CreateTrigger.tsx b/apps/studio/components/interfaces/Database/Triggers/CreateTrigger.tsx index cab4eb7602c..17a8499e988 100644 --- a/apps/studio/components/interfaces/Database/Triggers/CreateTrigger.tsx +++ b/apps/studio/components/interfaces/Database/Triggers/CreateTrigger.tsx @@ -383,20 +383,18 @@ const CreateTrigger = ({ trigger, visible, setVisible }: CreateTriggerProps) => setIsClosingPanel(false)} - onSelectConfirm={() => { + title="Discard changes" + confirmLabel="Discard" + onCancel={() => setIsClosingPanel(false)} + onConfirm={() => { setIsClosingPanel(false) setVisible(!visible) }} > - -

    - There are unsaved changes. Are you sure you want to close the panel? Your changes - will be lost. -

    -
    +

    + There are unsaved changes. Are you sure you want to close the panel? Your changes + will be lost. +

    ) : ( @@ -458,7 +456,7 @@ const SelectEnabledMode = observer(({}) => { label="Origin" > Origin - This is a default behaviour + This is a default behavior { diff --git a/apps/studio/components/interfaces/Database/Wrappers/CreateWrapper.tsx b/apps/studio/components/interfaces/Database/Wrappers/CreateWrapper.tsx index cfd602e31fb..2dfcda06694 100644 --- a/apps/studio/components/interfaces/Database/Wrappers/CreateWrapper.tsx +++ b/apps/studio/components/interfaces/Database/Wrappers/CreateWrapper.tsx @@ -16,6 +16,7 @@ import { FormSectionLabel, FormsContainer, } from 'components/ui/Forms' +import { useDatabaseExtensionsQuery } from 'data/database-extensions/database-extensions-query' import { invalidateSchemasQuery } from 'data/database/schemas-query' import { useFDWCreateMutation } from 'data/fdw/fdw-create-mutation' import { useCheckPermissions } from 'hooks' @@ -62,6 +63,16 @@ const CreateWrapper = () => { } : {} + const { data } = useDatabaseExtensionsQuery({ + projectRef: project?.ref, + connectionString: project?.connectionString, + }) + + const wrappersExtension = data?.find((ext) => ext.name === 'wrappers') + + const hasRequiredVersion = + (wrappersExtension?.installed_version ?? '') >= (wrapperMeta?.minimumExtensionVersion ?? '') + if (wrapperMeta === undefined) { return (
    @@ -79,6 +90,37 @@ const CreateWrapper = () => { ) } + if (!hasRequiredVersion) { + const databaseNeedsUpgrading = + wrappersExtension?.installed_version !== wrappersExtension?.default_version + + return ( +
    +
    +

    Your extension version is outdated for this wrapper.

    +

    + The wrapper type {type} requires a minimum extension version of{' '} + {wrapperMeta.minimumExtensionVersion}. You have version{' '} + {wrappersExtension?.installed_version} installed. Please{' '} + {databaseNeedsUpgrading && 'upgrade your database then '}reinstall the extension to + create this wrapper. +

    +
    + +
    + ) + } + const onUpdateTable = (values: any) => { setNewTables((prev) => { // if the new values have tableIndex, we are editing an existing table diff --git a/apps/studio/components/interfaces/Database/Wrappers/Wrappers.constants.ts b/apps/studio/components/interfaces/Database/Wrappers/Wrappers.constants.ts index cb67d097fb9..1e55b30080f 100644 --- a/apps/studio/components/interfaces/Database/Wrappers/Wrappers.constants.ts +++ b/apps/studio/components/interfaces/Database/Wrappers/Wrappers.constants.ts @@ -9,6 +9,10 @@ export const WRAPPER_HANDLERS = { BIG_QUERY: 'big_query_fdw_handler', AIRTABLE: 'airtable_fdw_handler', LOGFLARE: 'logflare_fdw_handler', + AUTH0: 'auth0_fdw_handler', + COGNITO: 'cognito_fdw_handler', + MSSQL: 'mssql_fdw_handler', + REDIS: 'redis_fdw_handler', } export const WRAPPERS: WrapperMeta[] = [ @@ -219,6 +223,14 @@ export const WRAPPERS: WrapperMeta[] = [ required: true, type: 'text', }, + { + name: 'rowid_column', + label: 'Row ID Column', + defaultValue: 'id', + editable: true, + required: true, + type: 'text', + }, ], }, { @@ -360,6 +372,14 @@ export const WRAPPERS: WrapperMeta[] = [ required: true, type: 'text', }, + { + name: 'rowid_column', + label: 'Row ID Column', + defaultValue: 'id', + editable: true, + required: true, + type: 'text', + }, ], }, { @@ -399,6 +419,14 @@ export const WRAPPERS: WrapperMeta[] = [ required: true, type: 'text', }, + { + name: 'rowid_column', + label: 'Row ID Column', + defaultValue: 'id', + editable: true, + required: true, + type: 'text', + }, ], }, ], @@ -807,4 +835,335 @@ export const WRAPPERS: WrapperMeta[] = [ }, ], }, + { + name: 'auth0_wrapper', + handlerName: WRAPPER_HANDLERS.AUTH0, + validatorName: 'auth0_fdw_validator', + icon: `${BASE_PATH}/img/icons/auth0-icon.svg`, + extensionName: 'Auth0Fdw', + label: 'Auth0', + docsUrl: 'https://supabase.com/docs/guides/database/extensions/wrappers/auth0', + minimumExtensionVersion: '0.3.0', + server: { + options: [ + { + name: 'api_key_id', + label: 'Auth0 API key or PAT', + required: true, + encrypted: true, + hidden: true, + }, + { + name: 'url', + label: 'Auth0 API URL', + defaultValue: 'https://dev-.us.auth0.com/api/v2/users', + required: false, + encrypted: false, + hidden: false, + }, + ], + }, + tables: [ + { + label: 'Users', + description: 'Auth0 Users', + availableColumns: [ + { + name: 'user_id', + type: 'text', + }, + { + name: 'email', + type: 'text', + }, + { + name: 'email_verified', + type: 'boolean', + }, + { + name: 'username', + type: 'text', + }, + { + name: 'phone_number', + type: 'text', + }, + { + name: 'phone_verified', + type: 'boolean', + }, + { + name: 'created_at', + type: 'jsonb', + }, + { + name: 'updated_at', + type: 'jsonb', + }, + { + name: 'identities', + type: 'jsonb', + }, + { + name: 'app_metadata', + type: 'jsonb', + }, + { + name: 'user_metadata', + type: 'jsonb', + }, + { + name: 'picture', + type: 'text', + }, + { + name: 'name', + type: 'text', + }, + { + name: 'nickname', + type: 'text', + }, + { + name: 'multifactor', + type: 'jsonb', + }, + { + name: 'last_ip', + type: 'text', + }, + { + name: 'last_login', + type: 'jsonb', + }, + { + name: 'logins_count', + type: 'integer', + }, + { + name: 'blocked', + type: 'boolean', + }, + { + name: 'given_name', + type: 'text', + }, + { + name: 'family_name', + type: 'text', + }, + ], + options: [ + { + name: 'object', + defaultValue: 'users', + editable: false, + required: true, + type: 'text', + }, + ], + }, + ], + }, + { + name: 'cognito_wrapper', + handlerName: WRAPPER_HANDLERS.COGNITO, + validatorName: 'cognito_fdw_validator', + icon: `${BASE_PATH}/img/icons/cognito-icon.svg`, + extensionName: 'CognitoFdw', + label: 'Cognito', + docsUrl: 'https://supabase.com/docs/guides/database/extensions/wrappers/cognito', + minimumExtensionVersion: '0.3.0', + server: { + options: [ + { + name: 'aws_access_key_id', + label: 'AWS Access Key ID', + required: true, + encrypted: false, + hidden: false, + }, + { + name: 'api_key_id', + label: 'AWS Secret Key', + required: true, + encrypted: true, + hidden: true, + }, + { + name: 'region', + label: 'Region', + required: true, + encrypted: false, + hidden: false, + }, + { + name: 'user_pool_id', + label: 'User Pool ID', + required: true, + encrypted: false, + hidden: false, + }, + ], + }, + tables: [ + { + label: 'Users', + description: 'Cognito Users', + availableColumns: [ + { + name: 'email', + type: 'text', + }, + { + name: 'created_at', + type: 'text', + }, + { + name: 'email_verified', + type: 'boolean', + }, + { + name: 'identities', + type: 'jsonb', + }, + { + name: 'username', + type: 'text', + }, + { + name: 'status', + type: 'text', + }, + ], + options: [ + { + name: 'object', + defaultValue: 'users', + editable: false, + required: true, + type: 'text', + }, + ], + }, + ], + }, + { + name: 'mssql_wrapper', + handlerName: WRAPPER_HANDLERS.MSSQL, + validatorName: 'mssql_fdw_validator', + icon: `${BASE_PATH}/img/icons/mssql-icon.svg`, + extensionName: 'mssqlFdw', + label: 'Microsoft SQL Server', + docsUrl: 'https://supabase.com/docs/guides/database/extensions/wrappers/mssql', + minimumExtensionVersion: '0.3.0', + server: { + options: [ + { + name: 'conn_string_id', + label: 'Connection String', + required: true, + encrypted: true, + hidden: true, + }, + ], + }, + tables: [ + { + label: 'Microsoft SQL Server Table', + description: 'Map to an Microsoft SQL Server Table', + options: [ + { + name: 'table', + label: 'MSSQL Table', + editable: true, + required: true, + type: 'text', + }, + ], + }, + ], + }, + { + name: 'redis_wrapper', + handlerName: WRAPPER_HANDLERS.REDIS, + validatorName: 'redis_fdw_validator', + icon: `${BASE_PATH}/img/icons/redis-icon.svg`, + extensionName: 'redisFdw', + label: 'Redis', + docsUrl: 'https://supabase.com/docs/guides/database/extensions/wrappers/redis', + minimumExtensionVersion: '0.3.0', + server: { + options: [ + { + name: 'conn_url_id', + label: 'Connection URL', + required: true, + encrypted: true, + hidden: true, + }, + ], + }, + tables: [ + { + label: 'Redis Table', + description: 'Map to an Redis Table', + options: [ + { + name: 'src_type', + label: 'Source Type', + editable: true, + required: true, + type: 'select', + defaultValue: 'list', + options: [ + { + label: 'list', + value: 'list', + }, + { + label: 'set', + value: 'set', + }, + { + label: 'hash', + value: 'hash', + }, + { + label: 'zset', + value: 'zset', + }, + { + label: 'stream', + value: 'stream', + }, + { + label: 'multi_list', + value: 'multi_list', + }, + { + label: 'multi_set', + value: 'multi_set', + }, + { + label: 'multi_hash', + value: 'multi_hash', + }, + { + label: 'multi_zset', + value: 'multi_zset', + }, + ], + }, + { + name: 'src_key', + label: 'Source Key', + editable: true, + required: false, + type: 'text', + }, + ], + }, + ], + }, ] diff --git a/apps/studio/components/interfaces/Database/Wrappers/Wrappers.tsx b/apps/studio/components/interfaces/Database/Wrappers/Wrappers.tsx index bc5f3358a6d..05b2d08d4ae 100644 --- a/apps/studio/components/interfaces/Database/Wrappers/Wrappers.tsx +++ b/apps/studio/components/interfaces/Database/Wrappers/Wrappers.tsx @@ -1,30 +1,20 @@ import { groupBy } from 'lodash' -import Link from 'next/link' import { useState } from 'react' import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext' -import { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader' -import { useDatabaseExtensionsQuery } from 'data/database-extensions/database-extensions-query' import { FDW, useFDWsQuery } from 'data/fdw/fdws-query' -import { Button, IconExternalLink } from 'ui' import DeleteWrapperModal from './DeleteWrapperModal' import WrapperRow from './WrapperRow' import { WRAPPERS } from './Wrappers.constants' import WrappersDisabledState from './WrappersDisabledState' import WrappersDropdown from './WrappersDropdown' -const Wrappers = () => { +const Wrappers = ({ isEnabled }: { isEnabled: boolean }) => { const { project } = useProjectContext() - const { data, isLoading } = useFDWsQuery({ + const { data } = useFDWsQuery({ projectRef: project?.ref, connectionString: project?.connectionString, }) - const { data: exts, isLoading: isLoadingExtensions } = useDatabaseExtensionsQuery({ - projectRef: project?.ref, - connectionString: project?.connectionString, - }) - const wrappersExtension = (exts ?? []).find((ext) => ext.name === 'wrappers') - const vaultExtension = (exts ?? []).find((ext) => ext.name === 'supabase_vault') const [open, setOpen] = useState('') const [selectedWrapperToDelete, setSelectedWrapperToDelete] = useState() @@ -32,82 +22,50 @@ const Wrappers = () => { const wrappers = data?.result ?? [] const groupedWrappers = groupBy(wrappers, 'handler') - const isWrappersEnabled = - wrappersExtension !== undefined && - wrappersExtension.installed_version !== null && - vaultExtension !== undefined && - vaultExtension.installed_version !== null - return ( <> -
    -
    -
    -

    Foreign Data Wrappers

    -
    - Query your data warehouse directly from your database, or third-party APIs using SQL. + {isEnabled ? ( +
    + {wrappers.length === 0 ? ( +
    +

    No wrappers created yet

    +
    -
    -
    - - {isWrappersEnabled && } -
    + ) : ( + <> + {/* [Joshen] This probably needs to change anyways so dont get too stuck with this */} + {WRAPPERS.map((wrapper, i) => { + const createdWrappers = groupedWrappers[wrapper.handlerName] ?? [] + if (createdWrappers.length > 0) { + return ( + { + if (open !== wrapperName) setOpen(wrapperName) + else setOpen('') + }} + onSelectDelete={setSelectedWrapperToDelete} + /> + ) + } else { + return null + } + })} + + )}
    + ) : ( + + )} - {isLoadingExtensions || isLoading ? ( -
    - -
    - ) : isWrappersEnabled ? ( -
    - {wrappers.length === 0 ? ( -
    -

    No wrappers created yet

    - -
    - ) : ( - <> - {/* [Joshen] This probably needs to change anyways so dont get too stuck with this */} - {WRAPPERS.map((wrapper, i) => { - const createdWrappers = groupedWrappers[wrapper.handlerName] ?? [] - if (createdWrappers.length > 0) { - return ( - { - if (open !== wrapperName) setOpen(wrapperName) - else setOpen('') - }} - onSelectDelete={setSelectedWrapperToDelete} - /> - ) - } else { - return null - } - })} - - )} -
    - ) : ( - - )} -
    setSelectedWrapperToDelete(undefined)} diff --git a/apps/studio/components/interfaces/Database/Wrappers/Wrappers.types.ts b/apps/studio/components/interfaces/Database/Wrappers/Wrappers.types.ts index d5b57e66937..a95aaed81b5 100644 --- a/apps/studio/components/interfaces/Database/Wrappers/Wrappers.types.ts +++ b/apps/studio/components/interfaces/Database/Wrappers/Wrappers.types.ts @@ -8,6 +8,7 @@ export type WrapperMeta = { server: Server tables: Table[] docsUrl: string + minimumExtensionVersion?: string } export type ServerOption = { diff --git a/apps/studio/components/interfaces/Database/Wrappers/WrappersDisabledState.tsx b/apps/studio/components/interfaces/Database/Wrappers/WrappersDisabledState.tsx index a7cc80093fa..dd3f98d1a3c 100644 --- a/apps/studio/components/interfaces/Database/Wrappers/WrappersDisabledState.tsx +++ b/apps/studio/components/interfaces/Database/Wrappers/WrappersDisabledState.tsx @@ -67,14 +67,14 @@ const WrappersDisabledState = () => { } } finally { setIsEnabling(false) - if (!hasError) toast.success('Wrappers is now enabled!') + if (!hasError) toast.success('Wrappers are now enabled!') } } return (
    - {required ? 'Required' : 'Optional'} + + {required ? 'Required' : 'Optional'} +
    {format && (
    diff --git a/apps/studio/components/interfaces/Docs/Snippets.ts b/apps/studio/components/interfaces/Docs/Snippets.ts index 465fb71b996..93f23714aa3 100644 --- a/apps/studio/components/interfaces/Docs/Snippets.ts +++ b/apps/studio/components/interfaces/Docs/Snippets.ts @@ -637,7 +637,7 @@ let { data, error } = await supabase.auth.verifyOtp({ code: ` curl -X POST '${endpoint}/auth/v1/invite' \\ -H "apikey: ${apiKey}" \\ --H "Authorization: Bearer ${apiKey}" \\ +-H "Authorization: Bearer USER_TOKEN" \\ -H "Content-Type: application/json" \\ -d '{ "email": "someone@email.com" @@ -710,7 +710,7 @@ let { data, error } = await supabase.auth.resetPasswordForEmail(email) code: ` curl -X PUT '${endpoint}/auth/v1/user' \\ -H "apikey: ${apiKey}" \\ --H "Authorization: Bearer " \\ +-H "Authorization: Bearer USER_TOKEN" \\ -H "Content-Type: application/json" \\ -d '{ "email": "someone@email.com", diff --git a/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecrets.tsx b/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecrets.tsx index 53bd9781550..00c93883347 100644 --- a/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecrets.tsx +++ b/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecrets.tsx @@ -121,22 +121,20 @@ const EdgeFunctionSecrets = () => { setSelectedSecret(undefined)} - onSelectConfirm={() => { + confirmLabel="Delete secret" + confirmLabelLoading="Deleting secret" + title={`Confirm to delete secret "${selectedSecret?.name}"`} + onCancel={() => setSelectedSecret(undefined)} + onConfirm={() => { if (selectedSecret !== undefined) { deleteSecret({ projectRef, secrets: [selectedSecret.name] }) } }} > - -

    - Before removing this secret, do ensure that none of your edge functions are currently - actively using this secret. This action cannot be undone. -

    -
    +

    + Before removing this secret, do ensure that none of your edge functions are currently + actively using this secret. This action cannot be undone. +

    ) diff --git a/apps/studio/components/interfaces/Home/ClientLibrary.tsx b/apps/studio/components/interfaces/Home/ClientLibrary.tsx index 63996fe2d52..72c1f029b4c 100644 --- a/apps/studio/components/interfaces/Home/ClientLibrary.tsx +++ b/apps/studio/components/interfaces/Home/ClientLibrary.tsx @@ -29,7 +29,7 @@ const ClientLibrary = ({
    - {language} {!officialSupport && Community} + {language} {!officialSupport && Community}
    diff --git a/apps/studio/components/interfaces/Home/Connect/Connect.constants.ts b/apps/studio/components/interfaces/Home/Connect/Connect.constants.ts index 7293d31270b..00f6e5aebd0 100644 --- a/apps/studio/components/interfaces/Home/Connect/Connect.constants.ts +++ b/apps/studio/components/interfaces/Home/Connect/Connect.constants.ts @@ -63,10 +63,30 @@ export const FRAMEWORKS: ConnectionType[] = [ guideLink: 'https://supabase.com/docs/guides/getting-started/quickstarts/reactjs', children: [ { - key: 'supabasejs', - label: 'Supabase-js', - children: [], - icon: 'supabase', + key: 'create-react-app', + label: 'Create React App', + icon: 'react', + children: [ + { + key: 'supabasejs', + label: 'supabase-js', + icon: 'supabase', + children: [], + }, + ], + }, + { + key: 'vite', + label: 'Vite', + icon: 'vite', + children: [ + { + key: 'supabasejs', + label: 'Supabase-js', + children: [], + icon: 'supabase', + }, + ], }, ], }, @@ -169,6 +189,20 @@ export const FRAMEWORKS: ConnectionType[] = [ }, ], }, + { + key: 'flutter', + label: 'Flutter', + icon: 'flutter', + guideLink: 'https://supabase.com/docs/guides/getting-started/tutorials/with-flutter', + children: [ + { + key: 'supabaseflutter', + label: 'supabase-flutter', + children: [], + icon: 'supabase', + }, + ], + }, ] export const ORMS: ConnectionType[] = [ diff --git a/apps/studio/components/interfaces/Home/Connect/content/flutter/supabaseflutter/content.tsx b/apps/studio/components/interfaces/Home/Connect/content/flutter/supabaseflutter/content.tsx new file mode 100644 index 00000000000..16358840cfb --- /dev/null +++ b/apps/studio/components/interfaces/Home/Connect/content/flutter/supabaseflutter/content.tsx @@ -0,0 +1,93 @@ +import type { ContentFileProps } from 'components/interfaces/Home/Connect/Connect.types' + +import { + ConnectTabs, + ConnectTabTriggers, + ConnectTabTrigger, + ConnectTabContent, +} from 'components/interfaces/Home/Connect/ConnectTabs' +import SimpleCodeBlock from 'components/to-be-cleaned/SimpleCodeBlock' + +const ContentFile = ({ projectKeys }: ContentFileProps) => { + return ( + + + + + + + + + {` +import 'package:supabase_flutter/supabase_flutter.dart'; + +Future main() async { + await Supabase.initialize( + url: ${projectKeys.apiUrl ?? 'your-project-url'}, + anonKey: ${projectKeys.anonKey ?? 'your-anon-key'}, + ); + runApp(MyApp()); +} + `} + + + + + + {` +class MyApp extends StatelessWidget { + const MyApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + title: 'Todos', + home: HomePage(), + ); + } +} + +class HomePage extends StatefulWidget { + const HomePage({super.key}); + + @override + State createState() => _HomePageState(); +} + +class _HomePageState extends State { + final _future = Supabase.instance.client + .from('todos') + .select(); + + @override + Widget build(BuildContext context) { + return Scaffold( + body: FutureBuilder( + future: _future, + builder: (context, snapshot) { + if (!snapshot.hasData) { + return const Center(child: CircularProgressIndicator()); + } + final todos = snapshot.data!; + return ListView.builder( + itemCount: todos.length, + itemBuilder: ((context, index) { + final todo = todos[index]; + return ListTile( + title: Text(todo['name']), + ); + }), + ); + }, + ), + ); + } +} +`} + + + + ) +} + +export default ContentFile diff --git a/apps/studio/components/interfaces/Home/Connect/content/react/supabasejs/content.tsx b/apps/studio/components/interfaces/Home/Connect/content/react/create-react-app/supabasejs/content.tsx similarity index 88% rename from apps/studio/components/interfaces/Home/Connect/content/react/supabasejs/content.tsx rename to apps/studio/components/interfaces/Home/Connect/content/react/create-react-app/supabasejs/content.tsx index 3a6e6e6a2f1..11c0702f741 100644 --- a/apps/studio/components/interfaces/Home/Connect/content/react/supabasejs/content.tsx +++ b/apps/studio/components/interfaces/Home/Connect/content/react/create-react-app/supabasejs/content.tsx @@ -20,8 +20,8 @@ const ContentFile = ({ projectKeys }: ContentFileProps) => { {` -SUPABASE_URL=${projectKeys.apiUrl ?? 'your-project-url'} -SUPABASE_KEY=${projectKeys.anonKey ?? 'your-anon-key'} +REACT_APP_SUPABASE_URL=${projectKeys.apiUrl ?? 'your-project-url'} +REACT_APP_SUPABASE_KEY=${projectKeys.anonKey ?? 'your-anon-key'} `} @@ -31,8 +31,8 @@ SUPABASE_KEY=${projectKeys.anonKey ?? 'your-anon-key'} {` import { createClient } from "@supabase/supabase-js"; -const supabaseUrl = process.env.NEXT_PUBLIC_SUPABASE_URL; -const supabaseKey = process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY; +const supabaseUrl = process.env.REACT_APP_SUPABASE_URL; +const supabaseKey = process.env.REACT_APP_SUPABASE_ANON_KEY; export const supabase = createClient(supabaseUrl, supabaseKey); `} diff --git a/apps/studio/components/interfaces/Home/Connect/content/react/vite/supabasejs/content.tsx b/apps/studio/components/interfaces/Home/Connect/content/react/vite/supabasejs/content.tsx new file mode 100644 index 00000000000..86ad9bb36fe --- /dev/null +++ b/apps/studio/components/interfaces/Home/Connect/content/react/vite/supabasejs/content.tsx @@ -0,0 +1,80 @@ +import type { ContentFileProps } from 'components/interfaces/Home/Connect/Connect.types' + +import { + ConnectTabs, + ConnectTabTrigger, + ConnectTabTriggers, + ConnectTabContent, +} from 'components/interfaces/Home/Connect/ConnectTabs' +import SimpleCodeBlock from 'components/to-be-cleaned/SimpleCodeBlock' + +const ContentFile = ({ projectKeys }: ContentFileProps) => { + return ( + + + + + + + + + + {` +VITE_SUPABASE_URL=${projectKeys.apiUrl ?? 'your-project-url'} +VITE_SUPABASE_ANON_KEY=${projectKeys.anonKey ?? 'your-anon-key'} + `} + + + + + + {` +import { createClient } from '@supabase/supabase-js'; + +const supabaseUrl = import.meta.env.VITE_SUPABASE_URL; +const supabaseKey = import.meta.env.VITE_SUPABASE_ANON_KEY; +const supabase = createClient(supabaseUrl, supabaseKey); + +export default supabase + `} + + + + + + {` +import { useState, useEffect } from 'react' +import { supabase } from '../utils/supabase' + +function Page() { + const [todos, setTodos] = useState([]) + + useEffect(() => { + function getTodos() { + const { data: todos } = await supabase.from('todos').select() + + if (todos.length > 1) { + setTodos(todos) + } + } + + getTodos() + }, []) + + return ( +
    + {todos.map((todo) => ( +
  • {todo}
  • + ))} +
    + ) +} +export default Page +`} +
    +
    +
    + ) +} + +export default ContentFile diff --git a/apps/studio/components/interfaces/Home/Home.constants.ts b/apps/studio/components/interfaces/Home/Home.constants.ts index b80dd551fa2..ee33d1b4140 100644 --- a/apps/studio/components/interfaces/Home/Home.constants.ts +++ b/apps/studio/components/interfaces/Home/Home.constants.ts @@ -30,10 +30,10 @@ export const CLIENT_LIBRARIES = [ }, { language: 'Swift', - officialSupport: false, + officialSupport: true, releaseState: undefined, docsUrl: 'https://supabase.com/docs/reference/swift/initializing', - gitUrl: 'https://github.com/supabase-community/supabase-swift', + gitUrl: 'https://github.com/supabase/supabase-swift', }, { language: 'Kotlin', @@ -81,40 +81,16 @@ export const EXAMPLE_PROJECTS = [ description: 'Example app of real-time chat using supabase realtime api', url: 'https://github.com/shwosner/realtime-chat-supabase-react', }, - { - framework: 'JavaScript', - title: 'Vanilla-js Auth app', - description: 'Example app of real-time chat using supabase realtime api', - url: 'https://github.com/supabase/examples/tree/main/supabase-js-v1/auth/javascript-auth', - }, - { - framework: 'React', - title: 'React Native todo list app', - description: 'React Native Todo List example with Expo', - url: 'https://github.com/supabase/examples/tree/main/supabase-js-v1/todo-list/expo-todo-list', - }, { framework: 'nextjs', title: 'Next.js todo list app', description: 'Next.js todo list example', url: 'https://github.com/supabase/supabase/tree/master/examples/todo-list/nextjs-todo-list', }, - { - framework: 'React', - title: 'React todo List app', - description: 'React todo List example', - url: 'https://github.com/supabase/examples/tree/main/supabase-js-v1/todo-list/react-todo-list', - }, { framework: 'Svelte', title: 'Svelte todo list app', description: 'Sveltejs todo with TailwindCSS and Snowpack', url: 'https://github.com/supabase/supabase/tree/master/examples/todo-list/sveltejs-todo-list', }, - { - framework: 'VueJS', - title: 'Vue.js todo list app', - description: 'Vue.js todo app using TypeScript', - url: 'https://github.com/supabase/examples/tree/main/supabase-js-v1/todo-list/vue3-ts-todo-list', - }, ] diff --git a/apps/studio/components/interfaces/Home/ProjectList/ProjectCard.tsx b/apps/studio/components/interfaces/Home/ProjectList/ProjectCard.tsx index 36741d0d1b0..7834f039f58 100644 --- a/apps/studio/components/interfaces/Home/ProjectList/ProjectCard.tsx +++ b/apps/studio/components/interfaces/Home/ProjectList/ProjectCard.tsx @@ -5,6 +5,7 @@ import type { IntegrationProjectConnection } from 'data/integrations/integration import type { ProjectInfo } from 'data/projects/projects-query' import type { ResourceWarning } from 'data/usage/resource-warnings-query' import { BASE_PATH } from 'lib/constants' +import InlineSVG from 'react-inlinesvg' import { inferProjectStatus } from './ProjectCard.utils' import { ProjectCardStatus } from './ProjectCardStatus' @@ -26,7 +27,7 @@ const ProjectCard = ({ const { name, ref: projectRef } = project const desc = `${project.cloud_provider} | ${project.region}` - const isBranchingEnabled = project.preview_branch_refs.length > 0 + const isBranchingEnabled = project.preview_branch_refs?.length > 0 const isGithubIntegrated = githubIntegration !== undefined const isVercelIntegrated = vercelIntegration !== undefined const githubRepository = githubIntegration?.metadata.name ?? undefined @@ -43,22 +44,22 @@ const ProjectCard = ({ {desc}
    {isVercelIntegrated && ( -
    - +
    )} {isBranchingEnabled && ( -
    +
    )} {isGithubIntegrated && ( <> -
    +

    {githubRepository}

    diff --git a/apps/studio/components/interfaces/Home/ProjectList/ProjectList.tsx b/apps/studio/components/interfaces/Home/ProjectList/ProjectList.tsx index 758c23f4a04..f2ee1a1dba4 100644 --- a/apps/studio/components/interfaces/Home/ProjectList/ProjectList.tsx +++ b/apps/studio/components/interfaces/Home/ProjectList/ProjectList.tsx @@ -13,7 +13,6 @@ import { useOrganizationsQuery } from 'data/organizations/organizations-query' import { usePermissionsQuery } from 'data/permissions/permissions-query' import { ProjectInfo, useProjectsQuery } from 'data/projects/projects-query' import { ResourceWarning, useResourceWarningsQuery } from 'data/usage/resource-warnings-query' -import { useSelectedOrganization } from 'hooks' import { IS_PLATFORM } from 'lib/constants' import { makeRandomString } from 'lib/helpers' import type { Organization, ResponseError } from 'types' @@ -113,7 +112,7 @@ type OrganizationProjectsProps = { } const OrganizationProjects = ({ - organization: { name, slug }, + organization, projects, overdueInvoices, resourceWarnings, @@ -126,7 +125,6 @@ const OrganizationProjects = ({ rewriteHref, search, }: OrganizationProjectsProps) => { - const organization = useSelectedOrganization() const isEmpty = !projects || projects.length === 0 const sortedProjects = [...(projects || [])].sort((a, b) => a.name.localeCompare(b.name)) const filteredProjects = @@ -164,14 +162,35 @@ const OrganizationProjects = ({ if (search.length > 0 && filteredProjects.length === 0) return null return ( -
    +
    -

    {name}

    +

    {organization.name}

    {!!overdueInvoices.length && (
    +
    + )} + {organization?.restriction_status === 'grace_period' && ( +
    + +
    + )} + {organization?.restriction_status === 'grace_period_over' && ( +
    + +
    + )} + {organization?.restriction_status === 'restricted' && ( +
    +
    )} @@ -199,7 +218,7 @@ const OrganizationProjects = ({ />
    ) : isEmpty ? ( - + ) : ( filteredProjects?.map((project) => ( { return ( -
    +

    No projects

    Get started by creating a new project.

    diff --git a/apps/studio/components/interfaces/Integrations/IntegrationConnection.tsx b/apps/studio/components/interfaces/Integrations/IntegrationConnection.tsx index 3f4974ec761..bcf89ee7ca9 100644 --- a/apps/studio/components/interfaces/Integrations/IntegrationConnection.tsx +++ b/apps/studio/components/interfaces/Integrations/IntegrationConnection.tsx @@ -137,29 +137,26 @@ const IntegrationConnectionItem = forwardRef - - {type === 'GitHub' && isBranchingEnabled && ( - - - Branching will be disabled for this project - - Deleting this GitHub connection will remove all preview branches on this project, - and also disable branching for {project.name} - - - )} -

    - This action cannot be undone. Are you sure you want to delete this {type} connection? -

    -
    +

    + This action cannot be undone. Are you sure you want to delete this {type} connection? +

    ) diff --git a/apps/studio/components/interfaces/Integrations/IntegrationPanels.tsx b/apps/studio/components/interfaces/Integrations/IntegrationPanels.tsx index baa2bbdcbf8..e8062bc61a8 100644 --- a/apps/studio/components/interfaces/Integrations/IntegrationPanels.tsx +++ b/apps/studio/components/interfaces/Integrations/IntegrationPanels.tsx @@ -103,9 +103,7 @@ const IntegrationInstallation = React.forwardRef - - {integration.metadata?.account.type} - + {integration.metadata?.account.type}
    diff --git a/apps/studio/components/interfaces/Integrations/Integrations-Vercel.constants.ts b/apps/studio/components/interfaces/Integrations/Integrations-Vercel.constants.ts index f41d20f9616..21ef731872d 100644 --- a/apps/studio/components/interfaces/Integrations/Integrations-Vercel.constants.ts +++ b/apps/studio/components/interfaces/Integrations/Integrations-Vercel.constants.ts @@ -39,6 +39,10 @@ const ENV_VAR_KEYS = { key: 'SUPABASE_SERVICE_ROLE_KEY', type: 'encrypted', }, + SUPABASE_JWT_SECRET: { + key: 'SUPABASE_JWT_SECRET', + type: 'encrypted', + }, NEXT_PUBLIC_SUPABASE_ANON_KEY: { key: 'NEXT_PUBLIC_SUPABASE_ANON_KEY', type: 'encrypted', diff --git a/apps/studio/components/interfaces/Integrations/OrganizationPicker.tsx b/apps/studio/components/interfaces/Integrations/OrganizationPicker.tsx index e4ca69f3e94..1953efb56ad 100644 --- a/apps/studio/components/interfaces/Integrations/OrganizationPicker.tsx +++ b/apps/studio/components/interfaces/Integrations/OrganizationPicker.tsx @@ -78,7 +78,7 @@ const OrganizationPicker = ({ {selectedOrg?.name ? selectedOrg?.name : 'Choose an organization'} {selectedOrg && configurationId && installed[selectedOrg.slug] && ( - Integration Installed + Integration Installed )}
    @@ -113,9 +113,7 @@ const OrganizationPicker = ({ > {org.name}{' '} {configurationId && installed[org.slug] && ( - - Integration Installed - + Integration Installed )} ) diff --git a/apps/studio/components/interfaces/Linter/LintPageTabs.tsx b/apps/studio/components/interfaces/Linter/LintPageTabs.tsx new file mode 100644 index 00000000000..6a7d17602c0 --- /dev/null +++ b/apps/studio/components/interfaces/Linter/LintPageTabs.tsx @@ -0,0 +1,129 @@ +import { MessageSquareMore } from 'lucide-react' + +import { InformationCircleIcon } from '@heroicons/react/16/solid' + +import { + TabsList_Shadcn_, + TabsTrigger_Shadcn_, + Tabs_Shadcn_, + TooltipContent_Shadcn_, + TooltipTrigger_Shadcn_, + Tooltip_Shadcn_, + cn, +} from 'ui' + +import { LINTER_LEVELS, LINT_TABS } from 'components/interfaces/Linter/Linter.constants' +import ShimmeringLoader from 'components/ui/ShimmeringLoader' +import { Lint } from 'data/lint/lint-query' +import { useRouter } from 'next/router' + +interface LintPageTabsProps { + currentTab: string + setCurrentTab: (value: LINTER_LEVELS) => void + setSelectedLint: (value: Lint | null) => void + isLoading: boolean + activeLints: Lint[] +} +const LintPageTabs = ({ + currentTab, + setCurrentTab, + setSelectedLint, + isLoading, + activeLints, +}: LintPageTabsProps) => { + const router = useRouter() + + const warnLintsCount = activeLints.filter((x) => x.level === 'WARN').length + const errorLintsCount = activeLints.filter((x) => x.level === 'ERROR').length + const infoLintsCount = activeLints.filter((x) => x.level === 'INFO').length + + const LintCountLabel = ({ tab }: { tab: (typeof LINT_TABS)[number] }) => { + let count = 0 + let label = '' + if (tab.id === LINTER_LEVELS.ERROR) { + count = errorLintsCount + label = 'errors' + } + + if (tab.id === LINTER_LEVELS.WARN) { + count = warnLintsCount + label = 'warnings' + } + + if (tab.id === LINTER_LEVELS.INFO) { + count = infoLintsCount + label = 'suggestions' + } + + return ( + + {isLoading ? ( + + ) : ( + <> + {count} {label} + + )} + + ) + } + + return ( + { + setCurrentTab(value as LINTER_LEVELS) + setSelectedLint(null) + const { sort, search, ...rest } = router.query + router.push({ ...router, query: { ...rest, preset: value } }) + }} + > + + {LINT_TABS.map((tab) => ( + + {tab.id === currentTab && ( +
    + )} +
    + + + + + {tab.label} + + + + + {tab.description} + +
    + + + ))} + + + ) +} + +export default LintPageTabs diff --git a/apps/studio/components/interfaces/Linter/Linter.constants.ts b/apps/studio/components/interfaces/Linter/Linter.constants.ts new file mode 100644 index 00000000000..c19aa38c748 --- /dev/null +++ b/apps/studio/components/interfaces/Linter/Linter.constants.ts @@ -0,0 +1,33 @@ +import { Lint } from 'data/lint/lint-query' +export enum LINTER_LEVELS { + ERROR = 'ERROR', + WARN = 'WARN', + INFO = 'INFO', +} + +export type LintInfo = { + name: string + title: string + icon: JSX.Element + link: (args: { projectRef: string; metadata: Lint['metadata'] }) => string + linkText: string + docsLink: string +} + +export const LINT_TABS = [ + { + id: LINTER_LEVELS.ERROR, + label: 'Errors', + description: 'You should consider these issues urgent and and fix them as soon as you can.', + }, + { + id: LINTER_LEVELS.WARN, + label: 'Warnings ', + description: 'You should try and read through these issues and fix them if necessary.', + }, + { + id: LINTER_LEVELS.INFO, + label: 'Info ', + description: 'You should read through these suggestions and consider implementing them.', + }, +] diff --git a/apps/studio/components/interfaces/Linter/Linter.utils.tsx b/apps/studio/components/interfaces/Linter/Linter.utils.tsx new file mode 100644 index 00000000000..14778af87fe --- /dev/null +++ b/apps/studio/components/interfaces/Linter/Linter.utils.tsx @@ -0,0 +1,233 @@ +import { Box, Clock, Eye, Lock, Ruler, Table2, TextSearch, Unlock, User } from 'lucide-react' +import Link from 'next/link' + +import { LINTER_LEVELS, LintInfo } from 'components/interfaces/Linter/Linter.constants' +import { LINT_TYPES, Lint } from 'data/lint/lint-query' +import { Badge, Button } from 'ui' + +export const lintInfoMap: LintInfo[] = [ + { + name: 'unindexed_foreign_keys', + title: 'Unindexed foreign keys', + icon: , + link: ({ projectRef, metadata }) => + `/project/${projectRef}/database/indexes?schema=${metadata?.schema}`, + linkText: 'Create an index', + docsLink: + 'https://supabase.com/docs/guides/database/database-linter?queryGroups=lint&lint=0001_unindexed_foreign_keys', + }, + { + name: 'auth_users_exposed', + title: 'Exposed Auth Users', + icon: , + link: ({ projectRef }) => `/project/${projectRef}/editor`, + linkText: 'View table', + docsLink: + 'https://supabase.com/docs/guides/database/database-linter?queryGroups=lint&lint=0002_auth_users_exposed', + }, + { + name: 'auth_rls_initplan', + title: 'Auth RLS Initialization Plan', + icon: , + link: ({ projectRef }) => `/project/${projectRef}/auth/policies`, + linkText: 'View policies', + docsLink: + 'https://supabase.com/docs/guides/database/database-linter?queryGroups=lint&lint=0003_auth_rls_initplan', + }, + { + name: 'no_primary_key', + title: 'No Primary Key', + icon: , + link: ({ projectRef }) => `/project/${projectRef}/editor`, + linkText: 'View table', + docsLink: + 'https://supabase.com/docs/guides/database/database-linter?queryGroups=lint&lint=0004_no_primary_key', + }, + { + name: 'unused_index', + title: 'Unused Index', + icon: , + link: ({ projectRef, metadata }) => + `/project/${projectRef}/database/indexes?schema=${metadata?.schema}&table=${metadata?.name}`, + linkText: 'View index', + docsLink: + 'https://supabase.com/docs/guides/database/database-linter?queryGroups=lint&lint=0005_unused_index', + }, + { + name: 'multiple_permissive_policies', + title: 'Multiple Permissive Policies', + icon: , + link: ({ projectRef, metadata }) => + `/project/${projectRef}/auth/policies?schema=${metadata?.schema}&search=${metadata?.name}`, + linkText: 'View policies', + docsLink: + 'https://supabase.com/docs/guides/database/database-linter?queryGroups=lint&lint=0006_multiple_permissive_policies', + }, + { + name: 'policy_exists_rls_disabled', + title: 'Policy Exists RLS Disabled', + icon: , + link: ({ projectRef, metadata }) => + `/project/${projectRef}/auth/policies?schema=${metadata?.schema}&search=${metadata?.name}`, + linkText: 'View policies', + docsLink: + 'https://supabase.com/docs/guides/database/database-linter?queryGroups=lint&lint=0007_policy_exists_rls_disabled', + }, + { + name: 'rls_enabled_no_policy', + title: 'RLS Enabled No Policy', + icon: , + link: ({ projectRef, metadata }) => + `/project/${projectRef}/auth/policies?schema=${metadata?.schema}&search=${metadata?.name}`, + linkText: 'View table', + docsLink: + 'https://supabase.com/docs/guides/database/database-linter?queryGroups=lint&lint=0008_rls_enabled_no_policy', + }, + { + name: 'duplicate_index', + title: 'Duplicate Index', + icon: , + link: ({ projectRef, metadata }) => + `/project/${projectRef}/database/indexes?schema=${metadata?.schema}&table=${metadata?.name}`, + linkText: 'View index', + docsLink: + 'https://supabase.com/docs/guides/database/database-linter?queryGroups=lint&lint=0009_duplicate_index', + }, + { + name: 'security_definer_view', + title: 'Security Definer View', + icon: , + link: () => + 'https://supabase.com/docs/guides/database/database-linter?queryGroups=lint&lint=0010_security_definer_view', + linkText: 'View docs', + docsLink: + 'https://supabase.com/docs/guides/database/database-linter?queryGroups=lint&lint=0010_security_definer_view', + }, + { + name: 'function_search_path_mutable', + title: 'Function Search Path Mutable', + icon: , + link: ({ projectRef, metadata }) => + `/project/${projectRef}/database/functions?schema=${metadata?.schema}&search=${metadata?.name}`, + linkText: 'View functions', + docsLink: + 'https://supabase.com/docs/guides/database/database-linter?queryGroups=lint&lint=0011_function_search_path_mutable', + }, + { + name: 'rls_disabled_in_public', + title: 'RLS Disabled in Public', + icon: , + link: ({ projectRef, metadata }) => + `/project/${projectRef}/auth/policies?schema=${metadata?.schema}&search=${metadata?.name}`, + linkText: 'View policies', + docsLink: + 'https://supabase.com/docs/guides/database/database-linter?queryGroups=lint&lint=0013_rls_disabled_in_public', + }, + { + name: 'extension_in_public', + title: 'Extension in Public', + icon: , + link: ({ projectRef, metadata }) => + `/project/${projectRef}/database/extensions?filter=${metadata?.name}`, + linkText: 'View extension', + docsLink: + 'https://supabase.com/docs/guides/database/database-linter?queryGroups=lint&lint=0014_extension_in_public', + }, + { + name: 'auth_otp_long_expiry', + title: 'Auth OTP Long Expiry', + icon: , + link: ({ projectRef }) => `/project/${projectRef}/auth/providers`, + linkText: 'View settings', + docsLink: 'https://supabase.com/docs/guides/platform/going-into-prod#security', + }, + { + name: 'auth_otp_short_length', + title: 'Auth OTP Short Length', + icon: , + link: ({ projectRef }) => `/project/${projectRef}/auth/providers`, + linkText: 'View settings', + docsLink: 'https://supabase.com/docs/guides/platform/going-into-prod#security', + }, + { + name: 'rls_references_user_metadata', + title: 'RLS references user metadata', + icon: , + link: ({ projectRef }) => `/project/${projectRef}/auth/policies`, + linkText: 'View policies', + docsLink: + 'https://supabase.com/docs/guides/database/database-linter?queryGroups=lint&lint=0015_rls_references_user_metadata', + }, +] + +export const LintCTA = ({ + title, + projectRef, + metadata, +}: { + title: LINT_TYPES + projectRef: string + metadata: Lint['metadata'] +}) => { + const lintInfo = lintInfoMap.find((item) => item.name === title) + + if (!lintInfo) { + return null + } + + const link = lintInfo.link({ projectRef, metadata }) + const linkText = lintInfo.linkText + + return ( + + ) +} + +export const EntityTypeIcon = ({ type }: { type: string | undefined }) => { + switch (type) { + case 'table': + return + case 'view': + return + case 'auth': + return + default: + return + } +} + +export const LintEntity = ({ metadata }: { metadata: Lint['metadata'] }) => { + return ( + (metadata && + (metadata.entity || + (metadata.schema && metadata.name && `${metadata.schema}.${metadata.name}`))) ?? + undefined + ) +} + +export const LintCategoryBadge = ({ category }: { category: string }) => { + return ( + + {category.toLowerCase()} + + ) +} + +export const NoIssuesFound = ({ level }: { level: string }) => { + const noun = level === LINTER_LEVELS.ERROR ? 'errors' : 'warnings' + return ( +
    + +
    +

    No {noun} detected

    +

    + Congrats! There are no {noun} detected for this database +

    +
    +
    + ) +} diff --git a/apps/studio/components/interfaces/Linter/LinterDataGrid.tsx b/apps/studio/components/interfaces/Linter/LinterDataGrid.tsx new file mode 100644 index 00000000000..5f59baa25a6 --- /dev/null +++ b/apps/studio/components/interfaces/Linter/LinterDataGrid.tsx @@ -0,0 +1,266 @@ +import { ExternalLink, X } from 'lucide-react' +import Link from 'next/link' +import { useRef, useState } from 'react' +import DataGrid, { Column, DataGridHandle, Row } from 'react-data-grid' +import ReactMarkdown from 'react-markdown' + +import { useParams } from 'common' +import { LINTER_LEVELS } from 'components/interfaces/Linter/Linter.constants' +import { LintEntity, NoIssuesFound, lintInfoMap } from 'components/interfaces/Linter/Linter.utils' +import { Lint } from 'data/lint/lint-query' +import { + Button, + ResizableHandle, + ResizablePanel, + ResizablePanelGroup, + TabsContent_Shadcn_, + TabsList_Shadcn_, + TabsTrigger_Shadcn_, + Tabs_Shadcn_, + cn, +} from 'ui' +import { GenericSkeletonLoader } from 'ui-patterns' +import { EntityTypeIcon, LintCTA, LintCategoryBadge } from './Linter.utils' + +interface LinterDataGridProps { + isLoading: boolean + filteredLints: Lint[] + selectedLint: Lint | null + setSelectedLint: (value: Lint | null) => void + currentTab: LINTER_LEVELS +} + +const LinterDataGrid = ({ + isLoading, + filteredLints, + selectedLint, + setSelectedLint, + currentTab, +}: LinterDataGridProps) => { + const gridRef = useRef(null) + const { ref } = useParams() + + const [view, setView] = useState<'details' | 'suggestion'>('details') + + const lintCols = [ + { + id: 'name', + name: 'Issue type', + description: undefined, + minWidth: 240, + value: (row: any) => ( +
    + + {lintInfoMap.find((item) => row.name === item.name)?.icon} + + {

    {lintInfoMap.find((item) => row.name === item.name)?.title}

    } +
    + ), + }, + { + id: 'metadata.name', + name: 'Entity/item', + description: undefined, + minWidth: 230, + value: (row: any) => ( +
    + + + + +
    + ), + }, + { + id: 'description', + name: 'Description', + description: undefined, + minWidth: 400, + value: (row: any) => {row.description}, + }, + ] + + const columns = lintCols.map((col) => { + const result: Column = { + key: col.id, + name: col.name, + resizable: true, + minWidth: col.minWidth ?? 120, + headerCellClass: 'first:pl-6 cursor-pointer', + renderHeaderCell: () => { + return ( +
    +
    +

    {col.name}

    + {col.description &&

    {col.description}

    } +
    +
    + ) + }, + renderCell: (props) => { + const value = col.value(props.row) + + return ( +
    + {value} +
    + ) + }, + } + return result + }) + + return ( + + + { + const isSelected = lint.cache_key === selectedLint?.cache_key + return [ + `${isSelected ? 'bg-surface-300 dark:bg-surface-300' : 'bg-200'} cursor-pointer`, + `${isSelected ? '[&>div:first-child]:border-l-4 border-l-secondary [&>div]:border-l-foreground' : ''}`, + '[&>.rdg-cell]:border-box [&>.rdg-cell]:outline-none [&>.rdg-cell]:shadow-none', + '[&>.rdg-cell:first-child>div]:ml-4', + ].join(' ') + }} + renderers={{ + renderRow(idx, props) { + return ( + { + if (typeof idx === 'number' && idx >= 0) { + setSelectedLint(props.row) + gridRef.current?.scrollToCell({ idx: 0, rowIdx: idx }) + } + }} + /> + ) + }, + noRowsFallback: isLoading ? ( +
    + +
    + ) : ( + + ), + }} + /> +
    + {selectedLint !== null && ( + <> + + + +
    +
    +
    +
    + )} + + + + + )} + + ) +} + +export default LinterDataGrid diff --git a/apps/studio/components/interfaces/Linter/LinterFilters.tsx b/apps/studio/components/interfaces/Linter/LinterFilters.tsx new file mode 100644 index 00000000000..1fcab85e326 --- /dev/null +++ b/apps/studio/components/interfaces/Linter/LinterFilters.tsx @@ -0,0 +1,52 @@ +import { LINTER_LEVELS, LINT_TABS } from 'components/interfaces/Linter/Linter.constants' +import { FilterPopover } from 'components/ui/FilterPopover' +import { Lint } from 'data/lint/lint-query' + +interface LinterFiltersProps { + filterOptions: { + name: string + value: string + }[] + activeLints: Lint[] + currentTab: LINTER_LEVELS + filters: { level: LINTER_LEVELS; filters: string[] }[] + setFilters: (value: { level: LINTER_LEVELS; filters: string[] }[]) => void +} + +const LinterFilters = ({ + filterOptions, + activeLints, + currentTab, + filters, + setFilters, +}: LinterFiltersProps) => { + const updateFilters = (level: LINTER_LEVELS, newFilters: string[]) => { + const updatedFilters = [...filters] + + const index = updatedFilters.findIndex((filter) => filter.level === level) + if (index !== -1) { + updatedFilters[index] = { ...updatedFilters[index], filters: newFilters } + setFilters(updatedFilters) + } + } + + return ( +
    + {LINT_TABS.map((tab) => ( +
    + x.level === tab.id).length === 0} + labelKey="name" + valueKey="value" + activeOptions={filters.find((filter) => filter.level === tab.id)?.filters || []} + onSaveFilters={(values) => updateFilters(tab.id, values)} + /> +
    + ))} +
    + ) +} + +export default LinterFilters diff --git a/apps/studio/components/interfaces/Linter/LinterPageFooter.tsx b/apps/studio/components/interfaces/Linter/LinterPageFooter.tsx new file mode 100644 index 00000000000..119c064c91c --- /dev/null +++ b/apps/studio/components/interfaces/Linter/LinterPageFooter.tsx @@ -0,0 +1,40 @@ +import { Button } from 'ui' +import { Markdown } from '../Markdown' + +interface LinterPageFooterProps { + isLoading: boolean + isRefetching: boolean + refetch: () => void +} + +const LinterPageFooter = ({ isLoading, isRefetching, refetch }: LinterPageFooterProps) => { + return ( +
    +
    +

    Reset suggestions

    +

    + Consider resetting the analysis making any changes +

    + + +
    +
    +

    How are these suggestions generated?

    + +
    +
    + ) +} + +export default LinterPageFooter diff --git a/apps/studio/components/interfaces/Organization/AuditLogs/AuditLogs.tsx b/apps/studio/components/interfaces/Organization/AuditLogs/AuditLogs.tsx index f5e5e328ad5..0fb189e20da 100644 --- a/apps/studio/components/interfaces/Organization/AuditLogs/AuditLogs.tsx +++ b/apps/studio/components/interfaces/Organization/AuditLogs/AuditLogs.tsx @@ -17,11 +17,12 @@ import { IconUser, } from 'ui' -import { FilterPopover, LogDetailsPanel } from 'components/interfaces/AuditLogs' +import { LogDetailsPanel } from 'components/interfaces/AuditLogs' import { ScaffoldContainerLegacy } from 'components/layouts/Scaffold' import Table from 'components/to-be-cleaned/Table' import AlertError from 'components/ui/AlertError' import { DatePicker } from 'components/ui/DatePicker' +import { FilterPopover } from 'components/ui/FilterPopover' import ShimmeringLoader from 'components/ui/ShimmeringLoader' import { AuditLog, diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/BillingAddress/BillingAddress.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/BillingAddress/BillingAddress.tsx index 454956fb6ec..b7dd9644694 100644 --- a/apps/studio/components/interfaces/Organization/BillingSettings/BillingAddress/BillingAddress.tsx +++ b/apps/studio/components/interfaces/Organization/BillingSettings/BillingAddress/BillingAddress.tsx @@ -65,7 +65,7 @@ const BillingAddress = () => {
    -

    Billing Address

    +

    Billing Address

    This will be reflected in every upcoming invoice, past invoices are not affected

    diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/BillingBreakdown.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/BillingBreakdown.tsx index adeb36cb37f..2db03ab302a 100644 --- a/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/BillingBreakdown.tsx +++ b/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/BillingBreakdown.tsx @@ -32,7 +32,7 @@ const BillingBreakdown = () => {
    -

    Billing breakdown

    +

    Billing Breakdown

    Current billing cycle: {billingCycleStart.format('MMM DD')} -{' '} {billingCycleEnd.format('MMM DD')} diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/BillingEmail.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/BillingEmail.tsx index 1dbe974b405..d45216904b2 100644 --- a/apps/studio/components/interfaces/Organization/BillingSettings/BillingEmail.tsx +++ b/apps/studio/components/interfaces/Organization/BillingSettings/BillingEmail.tsx @@ -52,7 +52,7 @@ const BillingEmail = () => {

    -

    Email Recipient

    +

    Email Recipient

    All billing correspondence will go to this email

    diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/BillingSettings.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/BillingSettings.tsx index a92669de10b..6ac079293c9 100644 --- a/apps/studio/components/interfaces/Organization/BillingSettings/BillingSettings.tsx +++ b/apps/studio/components/interfaces/Organization/BillingSettings/BillingSettings.tsx @@ -1,21 +1,32 @@ import { ScaffoldContainer, ScaffoldDivider } from 'components/layouts/Scaffold' +import { useIsFeatureEnabled } from 'hooks' import BillingAddress from './BillingAddress/BillingAddress' +import BillingBreakdown from './BillingBreakdown/BillingBreakdown' import BillingEmail from './BillingEmail' import CostControl from './CostControl/CostControl' import CreditBalance from './CreditBalance' import PaymentMethods from './PaymentMethods/PaymentMethods' import Subscription from './Subscription/Subscription' import TaxID from './TaxID/TaxID' -import BillingBreakdown from './BillingBreakdown/BillingBreakdown' -import { useIsFeatureEnabled } from 'hooks' +import { useParams } from 'common' +import { useOrgSubscriptionQuery } from '../../../../data/subscriptions/org-subscription-query' const BillingSettings = () => { const { - billingAccountData: billingAccountDataEnabled, - billingPaymentMethods: billingPaymentMethodsEnabled, - billingCredits: billingCreditsEnabled, + billingAccountData: isBillingAccountDataEnabledOnProfileLevel, + billingPaymentMethods: isBillingPaymentMethodsEnabledOnProfileLevel, + billingCredits: isBillingCreditsEnabledOnProfileLevel, } = useIsFeatureEnabled(['billing:account_data', 'billing:payment_methods', 'billing:credits']) + const { slug: orgSlug } = useParams() + const { data: subscription } = useOrgSubscriptionQuery({ orgSlug }) + const isNotOrgWithPartnerBilling = !subscription?.billing_via_partner ?? true + + const billingAccountDataEnabled = + isBillingAccountDataEnabledOnProfileLevel && isNotOrgWithPartnerBilling + const billingPaymentMethodsEnabled = + isBillingPaymentMethodsEnabledOnProfileLevel && isNotOrgWithPartnerBilling + return ( <> @@ -34,7 +45,7 @@ const BillingSettings = () => { - {billingCreditsEnabled && ( + {isBillingCreditsEnabledOnProfileLevel && ( <> diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/CostControl/CostControl.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/CostControl/CostControl.tsx index b55eab52ee0..1860dda5a0c 100644 --- a/apps/studio/components/interfaces/Organization/BillingSettings/CostControl/CostControl.tsx +++ b/apps/studio/components/interfaces/Organization/BillingSettings/CostControl/CostControl.tsx @@ -59,7 +59,7 @@ const CostControl = ({}: CostControlProps) => {
    -

    Cost Control

    +

    Cost Control

    Control whether to use beyond your plans included quota

    diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/CreditBalance.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/CreditBalance.tsx index 9c809c4aaa9..8dd878640f3 100644 --- a/apps/studio/components/interfaces/Organization/BillingSettings/CreditBalance.tsx +++ b/apps/studio/components/interfaces/Organization/BillingSettings/CreditBalance.tsx @@ -28,9 +28,9 @@ const CreditBalance = () => {
    -

    Credit balance

    +

    Credit Balance

    {isCredit && You have credits available} - {isDebt && Outstanding payments} + {isDebt && Outstanding payments}

    Charges will be deducted from your balance first diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/PaymentMethods/PaymentMethods.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/PaymentMethods/PaymentMethods.tsx index 044cd902616..6ff7ab6dcc0 100644 --- a/apps/studio/components/interfaces/Organization/BillingSettings/PaymentMethods/PaymentMethods.tsx +++ b/apps/studio/components/interfaces/Organization/BillingSettings/PaymentMethods/PaymentMethods.tsx @@ -67,7 +67,7 @@ const PaymentMethods = () => {

    -

    Payment methods

    +

    Payment Methods

    After adding a payment method, make sure to mark it as active to use it for billing. You can remove unused cards. @@ -168,14 +168,11 @@ const PaymentMethods = () => { {paymentMethod.card.exp_year}

    - {isActive && Active} + {isActive && Active} {canUpdatePaymentMethods && !isActive ? ( - diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/Restriction.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/Restriction.tsx new file mode 100644 index 00000000000..26cf4799ddd --- /dev/null +++ b/apps/studio/components/interfaces/Organization/BillingSettings/Restriction.tsx @@ -0,0 +1,158 @@ +import dayjs from 'dayjs' +import { ExternalLink } from 'lucide-react' +import Link from 'next/link' + +import { useOrgSubscriptionQuery } from 'data/subscriptions/org-subscription-query' +import { useOrgUsageQuery } from 'data/usage/org-usage-query' +import { useSelectedOrganization } from 'hooks' +import { AlertDescription_Shadcn_, AlertTitle_Shadcn_, Alert_Shadcn_, Button } from 'ui' +import { CriticalIcon, WarningIcon } from 'ui-patterns/Icons/StatusIcons' + +export const Restriction = () => { + const org = useSelectedOrganization() + const { data: usage, isSuccess: isSuccessOrgUsage } = useOrgUsageQuery({ orgSlug: org?.slug }) + const { data: subscription, isSuccess: isSuccessSubscription } = useOrgSubscriptionQuery({ + orgSlug: org?.slug, + }) + + const hasExceededAnyLimits = Boolean( + usage?.usages.find( + (metric) => + !metric.unlimited && metric.capped && metric.usage > (metric?.pricing_free_units ?? 0) + ) + ) + + // don't show any alerts until everything has been fetched + if (!isSuccessOrgUsage || !isSuccessSubscription || !org) { + return null + } + + let shownAlert: 'exceededLimits' | 'gracePeriod' | 'gracePeriodOver' | 'restricted' | null = null + + if (subscription && hasExceededAnyLimits && !org?.restriction_status) { + shownAlert = 'exceededLimits' + } else if (org?.restriction_status === 'grace_period') { + shownAlert = 'gracePeriod' + } else if (org?.restriction_status === 'grace_period_over') { + shownAlert = 'gracePeriodOver' + } else if (org?.restriction_status === 'restricted') { + shownAlert = 'restricted' + } + + if (shownAlert === null) { + return null + } + + return ( + <> + {shownAlert === 'exceededLimits' && ( + + + + + Your organization's usage has exceeded its included quota + + +

    + Your projects can become unresponsive or enter read-only mode.{' '} + {subscription.plan.id === 'free' + ? 'Please upgrade to the Pro plan to ensure that your projects remain available.' + : 'Please disable spend cap to ensure that your projects remain available.'} +

    +
    + + +
    +
    +
    + )} + {shownAlert === 'gracePeriod' && ( + + + Your grace period has started. + +

    + Your organization is over its quota. You can continue with projects until your grace + period ends on{' '} + + {dayjs(org.restriction_data['grace_period_end']).format('DD MMM, YYYY')} + + . After that, requests that go over your quota will no longer be served. Reduce your + usage below your plan's quota or upgrade your plan. +

    +
    + + {/* [Joshen] TODO update once docs are live */} + {/* */} +
    +
    +
    + )} + {shownAlert === 'gracePeriodOver' && ( + + + Your grace period is over. + +

    + You have exceeded your plan’s quota in the past and your grace period ended on{' '} + + {dayjs(org.restriction_data['grace_period_end']).format('DD MMM, YYYY')} + + . Service restrictions will apply if your usage is above your quota. If service + restrictions are active, your projects will no longer be able to serve requests. + Reduce your usage below your plan’s quota or upgrade your plan. +

    +
    + + {/* [Joshen] TODO update once docs are live */} + {/* */} +
    +
    +
    + )} + {shownAlert === 'restricted' && ( + + + All services are restricted. + +

    + Your projects are currently under service restrictions and are not able to serve + requests. You have exceeded your plan’s quota and your grace period ended on{' '} + + {dayjs(org.restriction_data['grace_period_end']).format('DD MMM, YYYY')} + + . Upgrade to lift restrictions or wait until your quota refills. +

    +
    + + {/* [Joshen] TODO update once docs are live */} + {/* */} +
    +
    +
    + )} + + ) +} diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/EnterpriseCard.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/EnterpriseCard.tsx index 2bf411ae287..d85e884eae3 100644 --- a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/EnterpriseCard.tsx +++ b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/EnterpriseCard.tsx @@ -1,15 +1,16 @@ import clsx from 'clsx' import { PricingInformation } from 'shared-data' import { Button, IconCheck } from 'ui' +import { pickFeatures } from 'shared-data/plans' export interface EnterpriseCardProps { plan: PricingInformation isCurrentPlan: boolean - billingViaPartner: boolean + billingPartner: 'fly' | 'aws' | undefined } -const EnterpriseCard = ({ plan, isCurrentPlan, billingViaPartner }: EnterpriseCardProps) => { - const features = billingViaPartner ? plan.featuresPartner : plan.features +const EnterpriseCard = ({ plan, isCurrentPlan, billingPartner }: EnterpriseCardProps) => { + const features = pickFeatures(plan, billingPartner) return (
    { const router = useRouter() const selectedOrganization = useSelectedOrganization() const slug = selectedOrganization?.slug + const originalPlanRef = useRef() + const [showExitSurvey, setShowExitSurvey] = useState(false) + const [showUpgradeSurvey, setShowUpgradeSurvey] = useState(false) const [selectedPaymentMethod, setSelectedPaymentMethod] = useState() const [showDowngradeError, setShowDowngradeError] = useState(false) const [selectedTier, setSelectedTier] = useState<'tier_free' | 'tier_pro' | 'tier_team'>() @@ -69,7 +74,9 @@ const PlanUpdateSidePanel = () => { snap.setPanelKey(undefined) } - const { data: subscription } = useOrgSubscriptionQuery({ orgSlug: slug }) + const { data: subscription, isSuccess: isSuccessSubscription } = useOrgSubscriptionQuery({ + orgSlug: slug, + }) const { data: plans, isLoading: isLoadingPlans } = useOrgPlansQuery({ orgSlug: slug }) const { data: membersExceededLimit } = useFreeProjectLimitCheckQuery({ slug }) const { mutate: updateOrgSubscription, isLoading: isUpdating } = useOrgSubscriptionUpdateMutation( @@ -79,6 +86,7 @@ const PlanUpdateSidePanel = () => { setSelectedTier(undefined) onClose() window.scrollTo({ top: 0, left: 0, behavior: 'smooth' }) + setShowUpgradeSurvey(true) }, onError: (error) => { toast.error(`Unable to update subscription: ${error.message}`) @@ -87,6 +95,7 @@ const PlanUpdateSidePanel = () => { ) const billingViaPartner = subscription?.billing_via_partner === true + const billingPartner = subscription?.billing_partner const paymentViaInvoice = subscription?.payment_method_type === 'invoice' const { @@ -127,6 +136,12 @@ const PlanUpdateSidePanel = () => { // eslint-disable-next-line react-hooks/exhaustive-deps }, [visible]) + useEffect(() => { + if (visible && isSuccessSubscription) { + originalPlanRef.current = subscription.plan.id + } + }, [visible, isSuccessSubscription]) + const onConfirmDowngrade = () => { setSelectedTier(undefined) if (hasMembersExceedingFreeTierLimit) { @@ -181,7 +196,8 @@ const PlanUpdateSidePanel = () => { const price = planMeta?.price ?? 0 const isDowngradeOption = planMeta?.change_type === 'downgrade' const isCurrentPlan = planMeta?.id === subscription?.plan?.id - const features = billingViaPartner ? plan.featuresPartner : plan.features + const features = pickFeatures(plan, billingPartner) + const footer = pickFooter(plan, billingPartner) if (plan.id === 'tier_enterprise') { return ( @@ -189,7 +205,7 @@ const PlanUpdateSidePanel = () => { key={plan.id} plan={plan} isCurrentPlan={isCurrentPlan} - billingViaPartner={billingViaPartner} + billingPartner={billingPartner} /> ) } @@ -209,7 +225,7 @@ const PlanUpdateSidePanel = () => { Current plan
    ) : plan.nameBadge ? ( -
    +
    {plan.nameBadge}
    ) : ( @@ -312,11 +328,9 @@ const PlanUpdateSidePanel = () => {
    - {(plan.footer || (billingViaPartner && plan.footerPartner)) && ( + {footer && (
    -

    - {billingViaPartner ? plan.footerPartner || plan.footer : plan.footer} -

    +

    {footer}

    )}
    @@ -532,8 +546,9 @@ const PlanUpdateSidePanel = () => { ) : (

    - This organization is billed through our partner Fly.io and you will be charged by - them directly. + This organization is billed through our partner{' '} + {billingPartnerLabel(subscription?.billing_partner)} and you will be charged by them + directly.

    {subscriptionPreview?.billed_via_partner && subscriptionPreview?.plan_change_type === 'downgrade' && ( @@ -559,6 +574,16 @@ const PlanUpdateSidePanel = () => { if (success) onClose() }} /> + + { + setShowUpgradeSurvey(false) + if (success) onClose() + }} + /> ) } diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/Subscription.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/Subscription.tsx index b2f6ecfe848..db3a0f34162 100644 --- a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/Subscription.tsx +++ b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/Subscription.tsx @@ -12,8 +12,8 @@ import ShimmeringLoader from 'components/ui/ShimmeringLoader' import SparkBar from 'components/ui/SparkBar' import { useOrganizationBillingSubscriptionCancelSchedule } from 'data/subscriptions/org-subscription-cancel-schedule-mutation' import { useOrgSubscriptionQuery } from 'data/subscriptions/org-subscription-query' -import { useOrgUsageQuery } from 'data/usage/org-usage-query' import { useFlag } from 'hooks' +import { ExternalLink } from 'lucide-react' import { useOrgSettingsPageStateSnapshot } from 'state/organization-settings' import { Alert, @@ -22,9 +22,9 @@ import { Alert_Shadcn_, Button, IconCalendar, - IconExternalLink, } from 'ui' import ProjectUpdateDisabledTooltip from '../ProjectUpdateDisabledTooltip' +import { Restriction } from '../Restriction' import PlanUpdateSidePanel from './PlanUpdateSidePanel' const Subscription = () => { @@ -40,8 +40,6 @@ const Subscription = () => { isSuccess, } = useOrgSubscriptionQuery({ orgSlug: slug }) - const { data: usage } = useOrgUsageQuery({ orgSlug: slug }) - const { mutate: cancelSubscriptionSchedule, isLoading: cancelSubscriptionScheduleLoading } = useOrganizationBillingSubscriptionCancelSchedule() @@ -54,60 +52,22 @@ const Subscription = () => { const canChangeTier = !projectUpdateDisabled && !['enterprise'].includes(currentPlan?.id ?? '') - const hasExceededAnyLimits = Boolean( - usage?.usages.find( - (metric) => - !metric.unlimited && metric.capped && metric.usage > (metric?.pricing_free_units ?? 0) - ) - ) - return ( <> - {subscription && hasExceededAnyLimits && ( -
    - - - - -
    , - ]} - > -

    - Your projects can become unresponsive or enter read-only mode.{' '} - {subscription.plan.id === 'free' - ? 'Please upgrade to the Pro plan to ensure that your projects remain available.' - : 'Please disable Spend Cap to ensure that your projects remain available.'} -

    - -
    - )} - +
    + +
    -

    Subscription Plan

    +

    Subscription Plan

    More information

    Pricing

    - +
    diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/UpgradeModal.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/UpgradeModal.tsx new file mode 100644 index 00000000000..57b10fd0acf --- /dev/null +++ b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/UpgradeModal.tsx @@ -0,0 +1,127 @@ +import { includes, without } from 'lodash' +import { useReducer, useState } from 'react' +import toast from 'react-hot-toast' + +import { useParams } from 'common' +import { useSendUpgradeFeedbackMutation } from 'data/feedback/upgrade-survey-send' +import type { OrgSubscription } from 'data/subscriptions/types' +import { Input, Modal } from 'ui' +import { generateUpgradeReasons } from '../helpers' + +export interface UpgradeSurveyModalProps { + visible: boolean + originalPlan?: string + subscription?: OrgSubscription + onClose: (success?: boolean) => void +} + +// Upgrade survey is from free plan to pro/teams plan and from pro to teams plan +const UpgradeSurveyModal = ({ + visible, + originalPlan, + subscription, + onClose, +}: UpgradeSurveyModalProps) => { + const { slug } = useParams() + const [message, setMessage] = useState('') + const [selectedReasons, dispatchSelectedReasons] = useReducer(reducer, []) + + const upgradeReasons = generateUpgradeReasons(originalPlan, subscription?.plan.id) + + const { mutate: sendUpgradeSurvey, isLoading: isSubmitting } = useSendUpgradeFeedbackMutation({ + onError: (error) => { + toast.error(`Failed to submit survey: ${error.message}`) + }, + onSuccess: () => { + onClose(true) + window.scrollTo({ top: 0, left: 0, behavior: 'smooth' }) + }, + }) + + function reducer(state: any, action: any) { + if (includes(state, action.target.value)) { + return without(state, action.target.value) + } else { + return [...state, action.target.value] + } + } + + const onSubmit = async () => { + if (selectedReasons.length === 0) { + return toast.error('Please select at least one reason for upgrading your subscription') + } + sendUpgradeSurvey({ + orgSlug: slug, + prevPlan: originalPlan, + currentPlan: subscription?.plan?.id, + reasons: selectedReasons, + message: message.trim() || undefined, + }) + } + + return ( + <> + + +
    +

    + What reasons motivated your decision to upgrade? Your feedback helps us improve + Supabase as much as we can. +

    +
    +
    + {upgradeReasons.map((option) => { + const active = selectedReasons.find((x) => x === option) + return ( + + ) + })} +
    +
    + setMessage(event.target.value)} + label="Anything else that we can improve on?" + /> +
    +
    +
    +
    +
    + + ) +} + +export default UpgradeSurveyModal diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/TaxID/TaxID.constants.ts b/apps/studio/components/interfaces/Organization/BillingSettings/TaxID/TaxID.constants.ts index 9595d935efb..24fccf80fb8 100644 --- a/apps/studio/components/interfaces/Organization/BillingSettings/TaxID/TaxID.constants.ts +++ b/apps/studio/components/interfaces/Organization/BillingSettings/TaxID/TaxID.constants.ts @@ -25,6 +25,18 @@ export const TAX_IDS: TaxId[] = [ placeholder: 'ATU12345678', vatPrefix: 'ATU', }, + { + name: 'AD NRT', + code: 'ad_nrt', + country: 'Andorra', + placeholder: 'A-123456-Z', + }, + { + name: 'AR CUIT', + code: 'ar_cuit', + country: 'Argentina', + placeholder: '12-3456789-01', + }, { name: 'AU ABN', code: 'au_abn', @@ -44,6 +56,12 @@ export const TAX_IDS: TaxId[] = [ placeholder: 'BE0123456789', vatPrefix: 'BE', }, + { + name: 'BO TIN', + code: 'bo_tin', + country: 'Bolivia', + placeholder: '123456789', + }, { name: 'BG VAT', code: 'eu_vat', @@ -112,6 +130,24 @@ export const TAX_IDS: TaxId[] = [ country: 'Chile', placeholder: '12.345.678-K', }, + { + name: 'CN TIN', + code: 'cn_tin', + country: 'China', + placeholder: '123456789012345678', + }, + { + name: 'CO NIT', + code: 'co_nit', + country: 'Colombia', + placeholder: '123.456.789-0', + }, + { + name: 'CR TIN', + code: 'cr_tin', + country: 'Costa Rica', + placeholder: '1-234-567890', + }, { name: 'CY VAT', code: 'eu_vat', @@ -140,6 +176,12 @@ export const TAX_IDS: TaxId[] = [ placeholder: 'DK12345678', vatPrefix: 'DK', }, + { + name: 'DO RCN', + code: 'do_rcn', + country: 'Dominican Republic', + placeholder: '123-4567890-1', + }, { name: 'EE VAT', code: 'eu_vat', @@ -258,6 +300,12 @@ export const TAX_IDS: TaxId[] = [ country: 'Japan', placeholder: '1234567891234', }, + { + name: 'KE PIN', + code: 'ke_pin', + country: 'Kenya', + placeholder: 'P000111111A', + }, { name: 'JP RN', code: 'jp_rn', @@ -341,6 +389,18 @@ export const TAX_IDS: TaxId[] = [ country: 'Norway', placeholder: '123456789MVA', }, + { + name: 'PE RUC', + code: 'pe_ruc', + country: 'Peru', + placeholder: '12345678901', + }, + { + name: 'PH TIN', + code: 'ph_tin', + country: 'Philippines', + placeholder: '123456789012', + }, { name: 'NZ GST', code: 'nz_gst', @@ -386,6 +446,12 @@ export const TAX_IDS: TaxId[] = [ country: 'Saudi Arabia', placeholder: '123456789012345', }, + { + name: 'RS PIB', + code: 'rs_pib', + country: 'Serbia', + placeholder: '123456789', + }, { name: 'SE VAT', code: 'eu_vat', @@ -425,6 +491,12 @@ export const TAX_IDS: TaxId[] = [ country: 'Thailand', placeholder: '1234567891234', }, + { + name: 'TR TIN', + code: 'tr_tin', + country: 'Turkey', + placeholder: '0123456789', + }, { name: 'TW VAT', code: 'tw_vat', @@ -456,4 +528,22 @@ export const TAX_IDS: TaxId[] = [ country: 'South Africa', placeholder: '4123456789', }, + { + name: 'UY RUC', + code: 'uy_ruc', + country: 'Uruguay', + placeholder: '123456789012', + }, + { + name: 'VE RIF', + code: 've_rif', + country: 'Venezuela', + placeholder: 'A-12345678-9', + }, + { + name: 'VN TIN', + code: 'vn_tin', + country: 'Vietnam', + placeholder: '1234567890', + }, ] diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/TaxID/TaxID.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/TaxID/TaxID.tsx index 66a8ed0bace..ac96aa369f2 100644 --- a/apps/studio/components/interfaces/Organization/BillingSettings/TaxID/TaxID.tsx +++ b/apps/studio/components/interfaces/Organization/BillingSettings/TaxID/TaxID.tsx @@ -135,7 +135,7 @@ const TaxID = () => {
    -

    Tax ID

    +

    Tax ID

    Add tax ID(s) to have them appear in your invoices. Old invoices are not affected.

    diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/helpers.ts b/apps/studio/components/interfaces/Organization/BillingSettings/helpers.ts index a2ec7ee44cb..420adce0739 100644 --- a/apps/studio/components/interfaces/Organization/BillingSettings/helpers.ts +++ b/apps/studio/components/interfaces/Organization/BillingSettings/helpers.ts @@ -23,3 +23,29 @@ export const billingMetricUnit = (pricingMetric: PricingMetric) => { return null } } + +export const generateUpgradeReasons = (originalPlan?: string, upgradedPlan?: string) => { + const reasons = [ + 'Current plan limits are not enough for me', + 'I want better customer support from Supabase', + 'I am migrating from a previous project', + ] + + if (originalPlan === undefined || upgradedPlan === undefined) { + reasons.push('None of the above') + return reasons + } + + if (originalPlan === 'free' && upgradedPlan === 'pro') { + reasons.push('Need more compute') + reasons.push( + 'I want access to additional features like branching, daily backups, custom domain and PITR' + ) + } else if (upgradedPlan === 'team') { + reasons.push('I want access to SOC2 and HIPAA compliance') + } + + reasons.push('None of the above') + + return reasons +} diff --git a/apps/studio/components/interfaces/Organization/Documents/SOC2.tsx b/apps/studio/components/interfaces/Organization/Documents/SOC2.tsx index 675fe63790b..c2417c023b8 100644 --- a/apps/studio/components/interfaces/Organization/Documents/SOC2.tsx +++ b/apps/studio/components/interfaces/Organization/Documents/SOC2.tsx @@ -73,53 +73,46 @@ const SOC2 = () => { )} setIsOpen(false)} size="large" - onSelectConfirm={() => { + title="Non-Disclosure Agreement to access Supabase's SOC2 Report" + confirmLabel="I agree" + confirmLabelLoading="Downloading" + onCancel={() => setIsOpen(false)} + onConfirm={() => { if (slug) fetchSOC2(slug) }} > - -
    -
      -
    1. The information that you are about to access is confidential.
    2. +
        +
      1. The information that you are about to access is confidential.
      2. +
      3. + Your access to our SOC 2 materials is governed by confidentiality obligations + contained in the agreement between Supabase, Inc ("Supabase", "we", "our" or "us") and + the Supabase customer that has authorized you to access our platform to obtain this + information (our "Customer"). +
      4. +
      5. + You must ensure that you treat the information in our SOC 2 materials in accordance + with those confidentiality obligations, as communicated to you by the Customer. +
      6. +
      7. + By clicking "I agree" below or otherwise accessing our SOC 2 materials, you: +
          +
        1. acknowledge that you have read and understood this Confidentiality Notice;
        2. - Your access to our SOC 2 materials is governed by confidentiality obligations - contained in the agreement between Supabase, Inc ("Supabase", "we", "our" or "us") - and the Supabase customer that has authorized you to access our platform to obtain - this information (our "Customer"). -
        3. -
        4. - You must ensure that you treat the information in our SOC 2 materials in - accordance with those confidentiality obligations, as communicated to you by the - Customer. -
        5. -
        6. - By clicking "I agree" below or otherwise accessing our SOC 2 materials, you: -
            -
          1. - acknowledge that you have read and understood this Confidentiality Notice; -
          2. -
          3. - confirm that you have been authorized by the Customer to access this - information, and your use of our SOC 2 materials is subject to the - confidentiality obligations owed by the Customer to us. -
          4. -
          -
        7. -
        8. - This Confidentiality Notice does not substitute or supersede any agreement between - us and the Customer, or any internal rules or policies that the Customer requires - you to comply with in your access to and use of confidential information. However, - your failure to comply with this Confidentiality Notice may be used to determine - whether the Customer has complied with its confidentiality obligations to us. + confirm that you have been authorized by the Customer to access this information, + and your use of our SOC 2 materials is subject to the confidentiality obligations + owed by the Customer to us.
        -
    -
    + +
  • + This Confidentiality Notice does not substitute or supersede any agreement between us + and the Customer, or any internal rules or policies that the Customer requires you to + comply with in your access to and use of confidential information. However, your + failure to comply with this Confidentiality Notice may be used to determine whether + the Customer has complied with its confidentiality obligations to us. +
  • +
    diff --git a/apps/studio/components/interfaces/Organization/Documents/TIA.tsx b/apps/studio/components/interfaces/Organization/Documents/TIA.tsx index e1cd3a42075..a869a73d753 100644 --- a/apps/studio/components/interfaces/Organization/Documents/TIA.tsx +++ b/apps/studio/components/interfaces/Organization/Documents/TIA.tsx @@ -19,7 +19,7 @@ const TIA = () => { { <>

    Create a new organization

    @@ -361,7 +360,7 @@ const NewOrgForm = ({ onPaymentMethodReset }: NewOrgFormProps) => { icon={} onClick={() => resetPaymentMethod()} disabled={newOrgLoading} - className="hover:border-gray-500" + className="hover:border-muted" />
    diff --git a/apps/studio/components/interfaces/Organization/NewProject/FreeProjectLimitWarning.tsx b/apps/studio/components/interfaces/Organization/NewProject/FreeProjectLimitWarning.tsx index 0aefed076b3..3ce18b3a6ef 100644 --- a/apps/studio/components/interfaces/Organization/NewProject/FreeProjectLimitWarning.tsx +++ b/apps/studio/components/interfaces/Organization/NewProject/FreeProjectLimitWarning.tsx @@ -1,5 +1,5 @@ import Link from 'next/link' -import { Button, IconAlertCircle } from 'ui' +import { Admonition, Button, IconAlertCircle } from 'ui' import InformationBox from 'components/ui/InformationBox' import type { MemberWithFreeProjectLimit } from 'data/organizations/free-project-limit-check-query' @@ -14,8 +14,38 @@ const FreeProjectLimitWarning = ({ orgSlug, }: FreeProjectLimitWarningProps) => { return ( -
    - + +

    + The following members have reached their maximum limits for the number of active free + plan projects within organizations where they are an administrator or owner: +

    +
      + {membersExceededLimit.map((member, idx: number) => ( +
    • + {member.username || member.primary_email} (Limit: {member.free_project_limit} free + projects) +
    • + ))} +
    +

    + These members will need to either delete, pause, or upgrade one or more of these + projects before you're able to create a free project within this organization. +

    + +
    + +
    +
    + } + > + {/* } defaultVisibility={true} hideCollapse @@ -46,8 +76,8 @@ const FreeProjectLimitWarning = ({
    } - /> -
    + /> */} + ) } diff --git a/apps/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel/index.tsx b/apps/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel/index.tsx index 780ce02d523..6b2d2adac67 100644 --- a/apps/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel/index.tsx +++ b/apps/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel/index.tsx @@ -385,7 +385,7 @@ const PublishAppSidePanel = ({

    Authorize API access for {values.name}

    - Preview + Preview
    diff --git a/apps/studio/components/interfaces/Organization/TeamSettings/MemberActions.tsx b/apps/studio/components/interfaces/Organization/TeamSettings/MemberActions.tsx index 2d8601065eb..84fdd96ea17 100644 --- a/apps/studio/components/interfaces/Organization/TeamSettings/MemberActions.tsx +++ b/apps/studio/components/interfaces/Organization/TeamSettings/MemberActions.tsx @@ -190,18 +190,16 @@ const MemberActions = ({ member, roles }: MemberActionsProps) => { setIsDeleteModalOpen(false)} - onSelectConfirm={() => { + title="Confirm to remove" + confirmLabel="Remove" + onCancel={() => setIsDeleteModalOpen(false)} + onConfirm={() => { handleMemberDelete() }} > - -

    - This is permanent! Are you sure you want to remove {member.primary_email} -

    -
    +

    + This is permanent! Are you sure you want to remove {member.primary_email} +

    ) diff --git a/apps/studio/components/interfaces/Organization/TeamSettings/MembersView.tsx b/apps/studio/components/interfaces/Organization/TeamSettings/MembersView.tsx index 2ad30f5a162..e3398e18b46 100644 --- a/apps/studio/components/interfaces/Organization/TeamSettings/MembersView.tsx +++ b/apps/studio/components/interfaces/Organization/TeamSettings/MembersView.tsx @@ -203,7 +203,9 @@ const MembersView = ({ searchString }: MembersViewProps) => { {x.invited_id && x.invited_at && ( - + {isInviteExpired(x.invited_at) ? 'Expired' : 'Invited'} )} diff --git a/apps/studio/components/interfaces/Organization/TeamSettings/RolesHelperModal/RolesHelperModal.constants.ts b/apps/studio/components/interfaces/Organization/TeamSettings/RolesHelperModal/RolesHelperModal.constants.ts index 5ed8b2d051f..6f2a5189fe9 100644 --- a/apps/studio/components/interfaces/Organization/TeamSettings/RolesHelperModal/RolesHelperModal.constants.ts +++ b/apps/studio/components/interfaces/Organization/TeamSettings/RolesHelperModal/RolesHelperModal.constants.ts @@ -456,7 +456,7 @@ const DATABASE_PERMISSIONS = { }, }, { - description: 'Can read database replications', + description: 'Can read database publications', permissions: { owner: true, admin: true, @@ -466,7 +466,7 @@ const DATABASE_PERMISSIONS = { }, }, { - description: 'Can update database replications', + description: 'Can update database publications', permissions: { owner: true, admin: true, diff --git a/apps/studio/components/interfaces/Organization/TeamSettings/TeamSettings.tsx b/apps/studio/components/interfaces/Organization/TeamSettings/TeamSettings.tsx index ded65f8c175..bc0d2e958ae 100644 --- a/apps/studio/components/interfaces/Organization/TeamSettings/TeamSettings.tsx +++ b/apps/studio/components/interfaces/Organization/TeamSettings/TeamSettings.tsx @@ -144,18 +144,16 @@ const TeamSettings = () => { setIsLeaveTeamModalOpen(false)} - onSelectConfirm={() => { + title="Are you sure?" + confirmLabel="Leave" + onCancel={() => setIsLeaveTeamModalOpen(false)} + onConfirm={() => { leaveTeam() }} > - -

    - Are you sure you want to leave this organization? This is permanent. -

    -
    +

    + Are you sure you want to leave this organization? This is permanent. +

    ) diff --git a/apps/studio/components/interfaces/Organization/Usage/SectionContent.tsx b/apps/studio/components/interfaces/Organization/Usage/SectionContent.tsx index b17ef43462c..1e5b4c9d4d8 100644 --- a/apps/studio/components/interfaces/Organization/Usage/SectionContent.tsx +++ b/apps/studio/components/interfaces/Organization/Usage/SectionContent.tsx @@ -26,7 +26,7 @@ const SectionContent = ({

    {name}

    - {includedInPlan === false && Not included} + {includedInPlan === false && Not included}
    {description.split('\n').map((value, idx) => ( diff --git a/apps/studio/components/interfaces/Organization/Usage/Usage.constants.tsx b/apps/studio/components/interfaces/Organization/Usage/Usage.constants.tsx index d4e6a4708ed..ef3afbb64ac 100644 --- a/apps/studio/components/interfaces/Organization/Usage/Usage.constants.tsx +++ b/apps/studio/components/interfaces/Organization/Usage/Usage.constants.tsx @@ -82,11 +82,13 @@ export const USAGE_CATEGORIES: CategoryMeta[] = [ { key: EgressType.DATABASE, name: 'Database Egress', color: 'green' }, { key: EgressType.STORAGE, name: 'Storage Egress', color: 'blue' }, { key: EgressType.REALTIME, name: 'Realtime Egress', color: 'orange' }, + { key: EgressType.FUNCTIONS, name: 'Functions Egress', color: 'purple' }, + { key: EgressType.SUPAVISOR, name: 'Supavisor Egress', color: 'red' }, ], name: 'Total Egress', unit: 'bytes', description: - 'Contains any outgoing traffic (egress) from your database.\nBilling is based on the total sum of egress in GB throughout your billing period.', + 'Contains any outgoing traffic (includes Database, Storage, Realtime, Auth, API, Edge Functions, Supavisor) from your database.\nBilling is based on the total sum of egress in GB throughout your billing period.', chartDescription: 'The data refreshes every 24 hours.', }, ], diff --git a/apps/studio/components/interfaces/Organization/Usage/Usage.tsx b/apps/studio/components/interfaces/Organization/Usage/Usage.tsx index f9dae822e37..fb0501db851 100644 --- a/apps/studio/components/interfaces/Organization/Usage/Usage.tsx +++ b/apps/studio/components/interfaces/Organization/Usage/Usage.tsx @@ -10,15 +10,15 @@ import InformationBox from 'components/ui/InformationBox' import ShimmeringLoader from 'components/ui/ShimmeringLoader' import { useProjectsQuery } from 'data/projects/projects-query' import { useOrgSubscriptionQuery } from 'data/subscriptions/org-subscription-query' -import { useOrgUsageQuery } from 'data/usage/org-usage-query' import { useSelectedOrganization } from 'hooks' import { TIME_PERIODS_BILLING, TIME_PERIODS_REPORTS } from 'lib/constants/metrics' import Link from 'next/link' -import { Alert, Button, IconExternalLink, IconInfo, Listbox } from 'ui' +import { Button, IconExternalLink, IconInfo, Listbox } from 'ui' +import { Restriction } from '../BillingSettings/Restriction' import Activity from './Activity' import Bandwidth from './Bandwidth' -import SizeAndCounts from './SizeAndCounts' import Compute from './Compute' +import SizeAndCounts from './SizeAndCounts' import TotalUsage from './TotalUsage' const Usage = () => { @@ -36,8 +36,6 @@ const Usage = () => { isSuccess: isSuccessSubscription, } = useOrgSubscriptionQuery({ orgSlug: slug }) - const { data: usage } = useOrgUsageQuery({ orgSlug: slug }) - const orgProjects = projects?.filter((project) => project.organization_id === organization?.id) useEffect(() => { @@ -94,13 +92,6 @@ const Usage = () => { ? orgProjects?.find((it) => it.ref === selectedProjectRef) : undefined - const hasExceededAnyLimits = Boolean( - usage?.usages.find( - (metric) => - !metric.unlimited && metric.capped && metric.usage > (metric?.pricing_free_units ?? 0) - ) - ) - return ( <> @@ -170,33 +161,7 @@ const Usage = () => {
    - {!selectedProject && subscription && hasExceededAnyLimits && ( - - - - {subscription.plan.id === 'free' ? 'Upgrade plan' : 'Change spend cap'} - - , - ]} - > - Your projects can become unresponsive or enter read-only mode.{' '} - {subscription.plan.id === 'free' - ? 'Please upgrade to the Pro plan to ensure that your projects remain available.' - : 'Please disable spend cap to ensure that your projects remain available.'} - - - )} - - {selectedProjectRef && ( + {selectedProjectRef ? ( { icon={} /> + ) : ( + + + )} {

    {bucket.name}

    - + {bucket.public ? 'Public' : 'Private'}
    diff --git a/apps/studio/components/interfaces/ProjectAPIDocs/Content/RPC.tsx b/apps/studio/components/interfaces/ProjectAPIDocs/Content/RPC.tsx index 09cc8e1d785..a3b7410d771 100644 --- a/apps/studio/components/interfaces/ProjectAPIDocs/Content/RPC.tsx +++ b/apps/studio/components/interfaces/ProjectAPIDocs/Content/RPC.tsx @@ -60,7 +60,7 @@ const RPC = ({ language }: ContentProps) => { {parameter.type} {parameter.required ? ( - Required + Required ) : (

    Optional

    )} diff --git a/apps/studio/components/interfaces/QueryPerformance/IndexAdvisorDisabledState.tsx b/apps/studio/components/interfaces/QueryPerformance/IndexAdvisorDisabledState.tsx new file mode 100644 index 00000000000..f25c2cf93ce --- /dev/null +++ b/apps/studio/components/interfaces/QueryPerformance/IndexAdvisorDisabledState.tsx @@ -0,0 +1,97 @@ +import { ExternalLink } from 'lucide-react' + +import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext' +import { useDatabaseExtensionEnableMutation } from 'data/database-extensions/database-extension-enable-mutation' +import { useDatabaseExtensionsQuery } from 'data/database-extensions/database-extensions-query' +import { AlertDescription_Shadcn_, AlertTitle_Shadcn_, Alert_Shadcn_, Button } from 'ui' +import { Markdown } from '../Markdown' +import Link from 'next/link' +import { useParams } from 'common' + +export const IndexAdvisorDisabledState = () => { + const { ref } = useParams() + const { project } = useProjectContext() + const { data: extensions } = useDatabaseExtensionsQuery({ + projectRef: project?.ref, + connectionString: project?.connectionString, + }) + const hypopgExtension = (extensions ?? []).find((ext) => ext.name === 'hypopg') + const indexAdvisorExtension = (extensions ?? []).find((ext) => ext.name === 'index_advisor') + + const { mutateAsync: enableExtension, isLoading: isEnablingExtension } = + useDatabaseExtensionEnableMutation() + + const onEnableIndexAdvisor = async () => { + if (project === undefined) return console.error('Project is required') + if (hypopgExtension?.installed_version === null) { + await enableExtension({ + projectRef: project?.ref, + connectionString: project?.connectionString, + name: hypopgExtension.name, + schema: hypopgExtension?.schema ?? 'extensions', + version: hypopgExtension.default_version, + }) + } + if (indexAdvisorExtension?.installed_version === null) { + await enableExtension({ + projectRef: project?.ref, + connectionString: project?.connectionString, + name: indexAdvisorExtension.name, + schema: indexAdvisorExtension?.schema ?? 'extensions', + version: indexAdvisorExtension.default_version, + }) + } + } + + return ( + + + + + + + + + +
    + + + ) +} diff --git a/apps/studio/components/interfaces/QueryPerformance/IndexEfficiencyNotice.tsx b/apps/studio/components/interfaces/QueryPerformance/IndexEfficiencyNotice.tsx new file mode 100644 index 00000000000..e512a2019c7 --- /dev/null +++ b/apps/studio/components/interfaces/QueryPerformance/IndexEfficiencyNotice.tsx @@ -0,0 +1,88 @@ +import { AlertCircle, CheckCircle } from 'lucide-react' + +import { AccordionTrigger } from '@ui/components/shadcn/ui/accordion' +import { useParams } from 'common' +import { AccordionContent_Shadcn_, AccordionItem_Shadcn_, Accordion_Shadcn_ } from 'ui' +import { PRESET_CONFIG } from '../Reports/Reports.constants' +import { Presets } from '../Reports/Reports.types' +import { queriesFactory } from '../Reports/Reports.utils' + +interface IndexEfficiencyNoticeProps { + isLoading: boolean +} + +// [Joshen] Currently not used, might be deprecated - just double checking first +export const IndexEfficiencyNotice = ({ isLoading }: IndexEfficiencyNoticeProps) => { + const { ref: projectRef } = useParams() + const config = PRESET_CONFIG[Presets.QUERY_PERFORMANCE] + const hooks = queriesFactory(config.queries, projectRef ?? 'default') + + const queryHitRate = hooks.queryHitRate() + const indexHitRate = queryHitRate.data?.[0]?.ratio + const tableHitRate = queryHitRate.data?.[1]?.ratio + const showIndexWarning = + indexHitRate && tableHitRate && (indexHitRate <= 0.99 || tableHitRate <= 0.99) + + const checkAlert = + const warnAlert = + const dangerAlert = + + return ( + + + +
    + Index Efficiency + {showIndexWarning ? warnAlert : checkAlert} +
    +
    + + {!isLoading && queryHitRate && ( +
    +
    +
    +

    Index Hit Rate

    +
    + {indexHitRate >= 0.99 + ? checkAlert + : indexHitRate >= 0.95 + ? warnAlert + : dangerAlert} +
    + + {queryHitRate?.data && (queryHitRate?.data[0]?.ratio * 100).toFixed(2)} + + % +
    +
    +
    + +
    + {queryHitRate?.data![1]?.name == 'table hit rate' && 'Table Hit Rate'} +
    + {tableHitRate >= 0.99 + ? checkAlert + : tableHitRate >= 0.95 + ? warnAlert + : dangerAlert} +
    + + {queryHitRate?.data && (queryHitRate?.data[1]?.ratio * 100).toFixed(2)} + + % +
    +
    +
    +
    + +

    + For best performance, ensure that the cache hit rate ratios above 99%.
    {' '} + Consider upgrading to an instance with more memory if the ratios dip below 95%. +

    +
    + )} +
    +
    +
    + ) +} diff --git a/apps/studio/components/interfaces/QueryPerformance/QueryDetail.tsx b/apps/studio/components/interfaces/QueryPerformance/QueryDetail.tsx new file mode 100644 index 00000000000..f4236a5491d --- /dev/null +++ b/apps/studio/components/interfaces/QueryPerformance/QueryDetail.tsx @@ -0,0 +1,99 @@ +import { + AlertDescription_Shadcn_, + AlertTitle_Shadcn_, + Alert_Shadcn_, + Button, + CodeBlock, + cn, +} from 'ui' +import { + QUERY_PERFORMANCE_REPORTS, + QUERY_PERFORMANCE_REPORT_TYPES, +} from './QueryPerformance.constants' +import { format } from 'sql-formatter' +import { useEffect, useState } from 'react' +import { QueryPanelContainer, QueryPanelSection } from './QueryPanel' +import { Lightbulb } from 'lucide-react' + +interface QueryDetailProps { + reportType: QUERY_PERFORMANCE_REPORT_TYPES + selectedRow: any + onClickViewSuggestion: () => void +} + +export const QueryDetail = ({ + reportType, + selectedRow, + onClickViewSuggestion, +}: QueryDetailProps) => { + // [Joshen] TODO implement this logic once the linter rules are in + const isLinterWarning = false + const report = QUERY_PERFORMANCE_REPORTS[reportType] + const [query, setQuery] = useState(selectedRow?.['query']) + + useEffect(() => { + if (selectedRow !== undefined) { + try { + const formattedQuery = format(selectedRow['query'], { + language: 'postgresql', + keywordCase: 'lower', + }) + setQuery(formattedQuery) + } catch (err) { + setQuery(selectedRow['query']) + } + } + }, [selectedRow]) + + return ( + + +

    Query pattern

    + code]:m-0 [&>code>span]:flex [&>code>span]:flex-wrap' + )} + /> + {isLinterWarning && ( + + + Suggested optimization: Add an index + + Adding an index will help this query execute faster + + + + + + )} +
    +
    + + {report + .filter((x) => x.id !== 'query') + .map((x) => { + const isTime = x.name.includes('time') + const formattedValue = isTime + ? `${selectedRow?.[x.id].toFixed(2)}ms` + : String(selectedRow?.[x.id]) + return ( +
    +

    {x.name}

    +

    {formattedValue}

    +
    + ) + })} +
    + + ) +} diff --git a/apps/studio/components/interfaces/QueryPerformance/QueryIndexes.tsx b/apps/studio/components/interfaces/QueryPerformance/QueryIndexes.tsx new file mode 100644 index 00000000000..139ed61b913 --- /dev/null +++ b/apps/studio/components/interfaces/QueryPerformance/QueryIndexes.tsx @@ -0,0 +1,320 @@ +import { Check, Lightbulb, Table2 } from 'lucide-react' +import { useState } from 'react' +import toast from 'react-hot-toast' + +import { AccordionTrigger } from '@ui/components/shadcn/ui/accordion' +import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext' +import AlertError from 'components/ui/AlertError' +import { useDatabaseExtensionsQuery } from 'data/database-extensions/database-extensions-query' +import { useGetIndexAdvisorResult } from 'data/database/retrieve-index-advisor-result-query' +import { useGetIndexesFromSelectQuery } from 'data/database/retrieve-index-from-select-query' +import { useExecuteSqlMutation } from 'data/sql/execute-sql-mutation' +import { + AccordionContent_Shadcn_, + AccordionItem_Shadcn_, + Accordion_Shadcn_, + AlertDescription_Shadcn_, + AlertTitle_Shadcn_, + Alert_Shadcn_, + Button, + CodeBlock, + CollapsibleContent_Shadcn_, + CollapsibleTrigger_Shadcn_, + Collapsible_Shadcn_, + cn, +} from 'ui' +import { GenericSkeletonLoader } from 'ui-patterns' +import { IndexAdvisorDisabledState } from './IndexAdvisorDisabledState' +import { QueryPanelContainer, QueryPanelScoreSection, QueryPanelSection } from './QueryPanel' + +interface QueryIndexesProps { + selectedRow: any +} + +// [Joshen] There's several more UX things we can do to help ease the learning curve of indexes I think +// e.g understanding "costs", what numbers of "costs" are actually considered insignificant + +export const QueryIndexes = ({ selectedRow }: QueryIndexesProps) => { + // [Joshen] TODO implement this logic once the linter rules are in + const isLinterWarning = false + const { project } = useProjectContext() + const [showStartupCosts, setShowStartupCosts] = useState(false) + + const { + data: usedIndexes, + isSuccess, + isLoading, + } = useGetIndexesFromSelectQuery({ + projectRef: project?.ref, + connectionString: project?.connectionString, + query: selectedRow?.['query'], + }) + + const { data: extensions, isLoading: isLoadingExtensions } = useDatabaseExtensionsQuery({ + projectRef: project?.ref, + connectionString: project?.connectionString, + }) + + const hypopgExtension = (extensions ?? []).find((ext) => ext.name === 'hypopg') + const indexAdvisorExtension = (extensions ?? []).find((ext) => ext.name === 'index_advisor') + const isIndexAdvisorAvailable = + indexAdvisorExtension !== undefined && + indexAdvisorExtension.installed_version !== null && + hypopgExtension !== undefined && + hypopgExtension.installed_version !== null + + const { + data: indexAdvisorResult, + error: indexAdvisorError, + refetch, + isError: isErrorIndexAdvisorResult, + isSuccess: isSuccessIndexAdvisorResult, + isLoading: isLoadingIndexAdvisorResult, + } = useGetIndexAdvisorResult( + { + projectRef: project?.ref, + connectionString: project?.connectionString, + query: selectedRow?.['query'], + }, + { enabled: isIndexAdvisorAvailable } + ) + + const { + index_statements, + startup_cost_after, + startup_cost_before, + total_cost_after, + total_cost_before, + } = indexAdvisorResult ?? { index_statements: [], total_cost_after: 0, total_cost_before: 0 } + const hasIndexRecommendation = isSuccessIndexAdvisorResult && index_statements.length > 0 + const totalImprovement = isSuccessIndexAdvisorResult + ? ((total_cost_before - total_cost_after) / total_cost_before) * 100 + : 0 + + const { mutate: execute, isLoading: isExecuting } = useExecuteSqlMutation({ + onSuccess: async () => { + await refetch() + toast.success(`Successfully created index`) + }, + onError: (error) => { + toast.error(`Failed to create index: ${error.message}`) + }, + }) + + const createIndex = () => { + if (index_statements.length === 0) return + + execute({ + projectRef: project?.ref, + connectionString: project?.connectionString, + sql: index_statements.join(';\n') + ';', + }) + } + + return ( + + +
    +

    Indexes in use

    +

    + This query is using the following index{(usedIndexes ?? []).length > 1 ? 's' : ''}: +

    +
    + {isLoading && } + {isSuccess && ( +
    + {usedIndexes.length === 0 && ( +
    +

    + No indexes are involved in this query +

    +

    + Indexes may not necessarily be used if they incur a higher cost when executing the + query +

    +
    + )} + {usedIndexes.map((index) => { + return ( +
    +
    + + + {index.schema}.{index.table} + +
    + {index.name} +
    + ) + })} +
    + )} +
    + +
    + + +
    +

    New index recommendations

    + {isLoadingExtensions ? ( + + ) : !isIndexAdvisorAvailable ? ( + + ) : ( + <> + {isLoadingIndexAdvisorResult && } + {isErrorIndexAdvisorResult && ( + + )} + {isSuccessIndexAdvisorResult && ( + <> + {(index_statements ?? []).length === 0 ? ( + + + This query is optimized + + Recommendations for indexes will show here + + + ) : ( + <> + {isLinterWarning ? ( + + + + We have {index_statements.length} index recommendation + {index_statements.length > 1 ? 's' : ''} + + + You can improve this query's performance by{' '} + {totalImprovement.toFixed(2)}% by + adding the following suggested{' '} + {index_statements.length > 1 ? 'indexes' : 'index'} + + + ) : ( +

    + Creating the following {index_statements.length > 1 ? 'indexes' : 'index'}{' '} + on public.files can improve this query's + performance by{' '} + {totalImprovement.toFixed(2)}%: +

    + )} + code]:m-0 [&>code>span]:flex [&>code>span]:flex-wrap' + )} + /> +

    + This recommendation serves to prevent your queries from slowing down as your + application grows, and hence the index may not be used immediately after + it's created. (e.g If your table is still small at this time) +

    + + )} + + )} + + )} +
    + {isIndexAdvisorAvailable && hasIndexRecommendation && ( + <> +
    +

    Query costs

    +
    + + + + + + + View {showStartupCosts ? 'less' : 'more'} + + +
    +
    +
    +

    FAQ

    + + + + What units are cost in? + + + Costs are in an arbitrary unit, and do not represent a unit of time. The units + are anchored (by default) to a single sequential page read costing 1.0 units. + They do, however, serve as a predictor of higher execution times. + + + + + How should I prioritize start up and total cost? + + +

    This depends on the expected size of the result set from the query.

    +

    + For queries that return a small number or rows, the startup cost is more + critical and minimizing startup cost can lead to faster response times, + especially in interactive applications. +

    +

    + For queries that return a large number of rows, the total cost becomes more + important, and optimizing it will help in efficiently using resources and + reducing overall query execution time. +

    +
    +
    +
    +
    + + )} +
    + + {isIndexAdvisorAvailable && hasIndexRecommendation && ( +
    +
    + Apply index to database + + This will run the SQL that is shown above + +
    + +
    + )} + + ) +} diff --git a/apps/studio/components/interfaces/QueryPerformance/QueryPanel.tsx b/apps/studio/components/interfaces/QueryPerformance/QueryPanel.tsx new file mode 100644 index 00000000000..1613ccef24b --- /dev/null +++ b/apps/studio/components/interfaces/QueryPerformance/QueryPanel.tsx @@ -0,0 +1,88 @@ +import { InformationCircleIcon } from '@heroicons/react/16/solid' +import { ArrowDown, ArrowUp } from 'lucide-react' +import { PropsWithChildren } from 'react' +import { TooltipContent_Shadcn_, TooltipTrigger_Shadcn_, Tooltip_Shadcn_, cn } from 'ui' + +export const QueryPanelContainer = ({ + children, + className, +}: PropsWithChildren<{ className?: string }>) => ( +
    {children}
    +) + +export const QueryPanelSection = ({ + children, + className, +}: PropsWithChildren<{ className?: string }>) => ( +
    {children}
    +) + +export const QueryPanelScoreSection = ({ + className, + name, + description, + before, + after, + hideArrowMarkers = false, +}: { + className?: string + name: string + description: string + before?: number + after?: number + hideArrowMarkers?: boolean +}) => ( +
    +
    + {name} + + + + + + {description} + + +
    +
    +
    + Currently: + + {before} + +
    + {before !== undefined && after !== undefined && before !== after && ( +
    + With index: + {after} + {before !== undefined && !hideArrowMarkers && ( +
    + {after > before ? ( + + ) : ( + + )} + {before !== 0 && ( + before ? 'text-warning' : 'text-brand' + )} + > + {(((before - after) / before) * 100).toFixed(2)}% + + )} +
    + )} +
    + )} +
    +
    +) diff --git a/apps/studio/components/interfaces/QueryPerformance/QueryPerformance.constants.ts b/apps/studio/components/interfaces/QueryPerformance/QueryPerformance.constants.ts new file mode 100644 index 00000000000..e787e221407 --- /dev/null +++ b/apps/studio/components/interfaces/QueryPerformance/QueryPerformance.constants.ts @@ -0,0 +1,35 @@ +export enum QUERY_PERFORMANCE_REPORT_TYPES { + MOST_TIME_CONSUMING = 'most_time_consuming', + MOST_FREQUENT = 'most_frequent', + SLOWEST_EXECUTION = 'slowest_execution', +} + +export const QUERY_PERFORMANCE_REPORTS = { + [QUERY_PERFORMANCE_REPORT_TYPES.MOST_TIME_CONSUMING]: [ + { id: 'query', name: 'Query', description: undefined, minWidth: 600 }, + { id: 'rolname', name: 'Role', description: undefined, minWidth: undefined }, + { id: 'calls', name: 'Calls', description: undefined, minWidth: undefined }, + { id: 'total_time', name: 'Total time', description: 'latency', minWidth: 180 }, + { id: 'prop_total_time', name: 'Time consumed', description: undefined, minWidth: 150 }, + ], + [QUERY_PERFORMANCE_REPORT_TYPES.MOST_FREQUENT]: [ + { id: 'query', name: 'Query', description: undefined, minWidth: 600 }, + { id: 'rolname', name: 'Role', description: undefined, minWidth: undefined }, + { id: 'avg_rows', name: 'Avg. Rows', description: undefined, minWidth: undefined }, + { id: 'calls', name: 'Calls', description: undefined, minWidth: undefined }, + { id: 'max_time', name: 'Max time', description: undefined, minWidth: undefined }, + { id: 'mean_time', name: 'Mean time', description: undefined, minWidth: undefined }, + { id: 'min_time', name: 'Min time', description: undefined, minWidth: undefined }, + { id: 'total_time', name: 'Total time', description: 'latency', minWidth: 180 }, + ], + [QUERY_PERFORMANCE_REPORT_TYPES.SLOWEST_EXECUTION]: [ + { id: 'query', name: 'Query', description: undefined, minWidth: 600 }, + { id: 'rolname', name: 'Role', description: undefined, minWidth: undefined }, + { id: 'avg_rows', name: 'Avg. Rows', description: undefined, minWidth: undefined }, + { id: 'calls', name: 'Calls', description: undefined, minWidth: undefined }, + { id: 'max_time', name: 'Max time', description: undefined, minWidth: undefined }, + { id: 'mean_time', name: 'Mean time', description: undefined, minWidth: undefined }, + { id: 'min_time', name: 'Min time', description: undefined, minWidth: undefined }, + { id: 'total_time', name: 'Total time', description: 'latency', minWidth: 180 }, + ], +} as const diff --git a/apps/studio/components/interfaces/QueryPerformance/QueryPerformance.tsx b/apps/studio/components/interfaces/QueryPerformance/QueryPerformance.tsx new file mode 100644 index 00000000000..b6b8c845417 --- /dev/null +++ b/apps/studio/components/interfaces/QueryPerformance/QueryPerformance.tsx @@ -0,0 +1,245 @@ +import { InformationCircleIcon } from '@heroicons/react/16/solid' +import { useRouter } from 'next/router' +import { useMemo, useState } from 'react' +import toast from 'react-hot-toast' + +import { useParams } from 'common' +import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext' +import { executeSql } from 'data/sql/execute-sql-query' +import { DbQueryHook } from 'hooks/analytics/useDbQuery' +import { + Button, + TabsList_Shadcn_, + TabsTrigger_Shadcn_, + Tabs_Shadcn_, + TooltipContent_Shadcn_, + TooltipTrigger_Shadcn_, + Tooltip_Shadcn_, + cn, +} from 'ui' +import ConfirmModal from 'ui-patterns/Dialogs/ConfirmDialog' +import ShimmeringLoader from 'ui-patterns/ShimmeringLoader' +import { Markdown } from '../Markdown' +import { useQueryPerformanceQuery } from '../Reports/Reports.queries' +import { PresetHookResult } from '../Reports/Reports.utils' +import { QUERY_PERFORMANCE_REPORT_TYPES } from './QueryPerformance.constants' +import { QueryPerformanceFilterBar } from './QueryPerformanceFilterBar' +import { QueryPerformanceGrid } from './QueryPerformanceGrid' +import { useLocalStorageQuery } from 'hooks' +import { LOCAL_STORAGE_KEYS } from 'lib/constants' +import { X } from 'lucide-react' + +interface QueryPerformanceProps { + queryHitRate: PresetHookResult + queryPerformanceQuery: DbQueryHook +} + +export const QueryPerformance = ({ + queryHitRate, + queryPerformanceQuery, +}: QueryPerformanceProps) => { + const router = useRouter() + const { preset } = useParams() + const { project } = useProjectContext() + const [page, setPage] = useState( + (preset as QUERY_PERFORMANCE_REPORT_TYPES) ?? QUERY_PERFORMANCE_REPORT_TYPES.MOST_TIME_CONSUMING + ) + const [showResetgPgStatStatements, setShowResetgPgStatStatements] = useState(false) + + const [showBottomSection, setShowBottomSection] = useLocalStorageQuery( + LOCAL_STORAGE_KEYS.QUERY_PERF_SHOW_BOTTOM_SECTION, + true + ) + + const handleRefresh = () => { + queryPerformanceQuery.runQuery() + queryHitRate.runQuery() + } + + const { data: mostTimeConsumingQueries, isLoading: isLoadingMTC } = useQueryPerformanceQuery({ + preset: 'mostTimeConsuming', + }) + const { data: mostFrequentlyInvoked, isLoading: isLoadingMFI } = useQueryPerformanceQuery({ + preset: 'mostFrequentlyInvoked', + }) + const { data: slowestExecutionTime, isLoading: isLoadingMMF } = useQueryPerformanceQuery({ + preset: 'slowestExecutionTime', + }) + + const QUERY_PERFORMANCE_TABS = useMemo(() => { + return [ + { + id: QUERY_PERFORMANCE_REPORT_TYPES.MOST_TIME_CONSUMING, + label: 'Most time consuming', + description: 'Lists queries ordered by their cumulative total execution time.', + isLoading: isLoadingMTC, + max: + (mostTimeConsumingQueries ?? []).length > 0 + ? Math.max(...(mostTimeConsumingQueries ?? []).map((x: any) => x.total_time)).toFixed(2) + : undefined, + }, + { + id: QUERY_PERFORMANCE_REPORT_TYPES.MOST_FREQUENT, + label: 'Most frequent', + description: 'Lists queries in order of their execution count', + isLoading: isLoadingMFI, + max: + (mostFrequentlyInvoked ?? []).length > 0 + ? Math.max(...(mostFrequentlyInvoked ?? []).map((x: any) => x.calls)).toFixed(2) + : undefined, + }, + { + id: QUERY_PERFORMANCE_REPORT_TYPES.SLOWEST_EXECUTION, + label: 'Slowest execution', + description: 'Lists queries ordered by their maximum execution time', + isLoading: isLoadingMMF, + max: + (slowestExecutionTime ?? []).length > 0 + ? Math.max(...(slowestExecutionTime ?? []).map((x: any) => x.max_time)).toFixed(2) + : undefined, + }, + ] + }, [ + isLoadingMFI, + isLoadingMMF, + isLoadingMTC, + mostFrequentlyInvoked, + mostTimeConsumingQueries, + slowestExecutionTime, + ]) + + return ( + <> + { + setPage(value as QUERY_PERFORMANCE_REPORT_TYPES) + const { sort, search, ...rest } = router.query + router.push({ ...router, query: { ...rest, preset: value } }) + }} + > + + {QUERY_PERFORMANCE_TABS.map((tab) => ( + + {tab.id === page && ( +
    + )} + +
    + {tab.label} + + + + + {tab.description} + +
    + {tab.isLoading ? ( + + ) : tab.max === undefined ? ( + + No data yet + + ) : ( + + {Number(tab.max).toLocaleString()} + {tab.id !== QUERY_PERFORMANCE_REPORT_TYPES.MOST_FREQUENT ? 'ms' : ' calls'} + + )} + + {tab.id === page && ( +
    + )} + + ))} + + + +
    + { + setShowResetgPgStatStatements(true) + }} + /> +
    + + + +
    + +
    +

    Reset report

    +

    + Consider resetting the analysis after optimizing any queries +

    + +
    +
    +

    How is this report generated?

    + +
    +
    + + setShowResetgPgStatStatements(false)} + onSelectConfirm={async () => { + try { + await executeSql({ + projectRef: project?.ref, + connectionString: project?.connectionString, + sql: `SELECT pg_stat_statements_reset();`, + }) + handleRefresh() + setShowResetgPgStatStatements(false) + } catch (error: any) { + toast.error(`Failed to reset analysis: ${error.message}`) + } + }} + /> + + ) +} diff --git a/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceFilterBar.tsx b/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceFilterBar.tsx new file mode 100644 index 00000000000..514b38331a2 --- /dev/null +++ b/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceFilterBar.tsx @@ -0,0 +1,155 @@ +import { ArrowDown, ArrowUp, RefreshCw } from 'lucide-react' +import { useRouter } from 'next/router' +import { useState } from 'react' + +import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext' +import { FilterPopover } from 'components/ui/FilterPopover' +import { useDatabaseRolesQuery } from 'data/database-roles/database-roles-query' +import { useLocalStorageQuery } from 'hooks' +import { DbQueryHook } from 'hooks/analytics/useDbQuery' +import { LOCAL_STORAGE_KEYS } from 'lib/constants' +import { + Button, + DropdownMenu, + DropdownMenuContent, + DropdownMenuRadioGroup, + DropdownMenuRadioItem, + DropdownMenuTrigger, +} from 'ui' +import { QueryPerformanceSort } from '../Reports/Reports.queries' +import { TextSearchPopover } from './TextSearchPopover' + +export const QueryPerformanceFilterBar = ({ + queryPerformanceQuery, + onResetReportClick, +}: { + queryPerformanceQuery: DbQueryHook + onResetReportClick?: () => void +}) => { + const router = useRouter() + const { project } = useProjectContext() + const [showBottomSection, setShowBottomSection] = useLocalStorageQuery( + LOCAL_STORAGE_KEYS.QUERY_PERF_SHOW_BOTTOM_SECTION, + true + ) + const defaultSearchQueryValue = router.query.search ? String(router.query.search) : '' + const defaultFilterRoles = router.query.roles ? (router.query.roles as string[]) : [] + const defaultSortByValue = router.query.sort + ? ({ column: router.query.sort, order: router.query.order } as QueryPerformanceSort) + : undefined + + const [searchInputVal, setSearchInputVal] = useState(defaultSearchQueryValue) + const [filters, setFilters] = useState<{ roles: string[]; query: string }>({ + roles: typeof defaultFilterRoles === 'string' ? [defaultFilterRoles] : defaultFilterRoles, + query: '', + }) + // [Joshen] This is for the old UI, can deprecated after + const [sortByValue, setSortByValue] = useState( + defaultSortByValue ?? { column: 'prop_total_time', order: 'desc' } + ) + + const { isLoading, isRefetching } = queryPerformanceQuery + const { data, isLoading: isLoadingRoles } = useDatabaseRolesQuery({ + projectRef: project?.ref, + connectionString: project?.connectionString, + }) + const roles = (data ?? []).sort((a, b) => a.name.localeCompare(b.name)) + + const onSearchQueryChange = (value: string) => { + setSearchInputVal(value) + + if (!value || typeof value !== 'string') { + // if user has deleted the search query, remove it from the url + const { search, ...rest } = router.query + router.push({ ...router, query: { ...rest } }) + } else { + router.push({ ...router, query: { ...router.query, search: value } }) + } + } + + const onFilterRolesChange = (roles: string[]) => { + setFilters({ ...filters, roles }) + router.push({ ...router, query: { ...router.query, roles } }) + } + + function getSortButtonLabel() { + if (defaultSortByValue?.order === 'desc') { + return 'Sorted by latency - high to low' + } else { + return 'Sorted by latency - low to high' + } + } + + const onSortChange = (order: 'asc' | 'desc') => { + setSortByValue({ column: 'prop_total_time', order }) + router.push({ ...router, query: { ...router.query, sort: 'prop_total_time', order } }) + } + + return ( +
    +
    +
    +

    Filter by

    + + + +
    + + + + + + onSortChange(value)} + > + + Sort by latency - high to low + + + Sort by latency - low to high + + + + +
    +
    + +
    + {!showBottomSection && onResetReportClick && ( + + )} + +
    +
    + ) +} diff --git a/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceGrid.tsx b/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceGrid.tsx new file mode 100644 index 00000000000..85ed9bf35c8 --- /dev/null +++ b/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceGrid.tsx @@ -0,0 +1,241 @@ +import { ArrowDown, ArrowUp, TextSearch, X } from 'lucide-react' +import { useRouter } from 'next/router' +import { useEffect, useRef, useState } from 'react' +import DataGrid, { Column, DataGridHandle, Row } from 'react-data-grid' + +import { useParams } from 'common' +import { DbQueryHook } from 'hooks/analytics/useDbQuery' +import { + Button, + ResizableHandle, + ResizablePanel, + ResizablePanelGroup, + TabsContent_Shadcn_, + TabsList_Shadcn_, + TabsTrigger_Shadcn_, + Tabs_Shadcn_, + cn, +} from 'ui' +import { GenericSkeletonLoader } from 'ui-patterns' +import { QueryPerformanceSort } from '../Reports/Reports.queries' +import { QueryDetail } from './QueryDetail' +import { QueryIndexes } from './QueryIndexes' +import { + QUERY_PERFORMANCE_REPORTS, + QUERY_PERFORMANCE_REPORT_TYPES, +} from './QueryPerformance.constants' + +interface QueryPerformanceGridProps { + queryPerformanceQuery: DbQueryHook +} + +export const QueryPerformanceGrid = ({ queryPerformanceQuery }: QueryPerformanceGridProps) => { + const router = useRouter() + const gridRef = useRef(null) + const { preset, sort: urlSort, order, roles, search } = useParams() + const { isLoading } = queryPerformanceQuery + + const defaultSortValue = router.query.sort + ? ({ column: router.query.sort, order: router.query.order } as QueryPerformanceSort) + : undefined + + const [view, setView] = useState<'details' | 'suggestion'>('details') + const [sort, setSort] = useState(defaultSortValue) + const [selectedRow, setSelectedRow] = useState() + const reportType = + (preset as QUERY_PERFORMANCE_REPORT_TYPES) ?? QUERY_PERFORMANCE_REPORT_TYPES.MOST_TIME_CONSUMING + + const columns = QUERY_PERFORMANCE_REPORTS[reportType].map((col) => { + const result: Column = { + key: col.id, + name: col.name, + resizable: true, + minWidth: col.minWidth ?? 120, + headerCellClass: 'first:pl-6 cursor-pointer', + renderHeaderCell: () => { + return ( +
    onSortChange(col.id)} + > +
    +

    {col.name}

    + {col.description &&

    {col.description}

    } +
    + {sort?.column === col.id && ( + <>{sort.order === 'desc' ? : } + )} +
    + ) + }, + renderCell: (props) => { + const value = props.row?.[col.id] + const isTime = col.name.includes('time') + const formattedValue = isTime + ? `${Number(value.toFixed(2)).toLocaleString()}ms` + : value.toLocaleString() + return ( +
    +

    {formattedValue}

    + {isTime &&

    {(value / 1000).toFixed(2)}s

    } +
    + ) + }, + } + return result + }) + + const selectedQuery = + selectedRow !== undefined ? queryPerformanceQuery.data?.[selectedRow]['query'] : undefined + const showIndexSuggestions = (selectedQuery ?? '').trim().toLowerCase().startsWith('select') + + const onSortChange = (column: string) => { + let updatedSort = undefined + + if (sort?.column === column) { + if (sort.order === 'desc') { + updatedSort = { column, order: 'asc' } + } else { + updatedSort = undefined + } + } else { + updatedSort = { column, order: 'desc' } + } + + setSort(updatedSort as QueryPerformanceSort) + + if (updatedSort === undefined) { + const { sort, order, ...otherParams } = router.query + router.push({ ...router, query: otherParams }) + } else { + router.push({ + ...router, + query: { ...router.query, sort: updatedSort.column, order: updatedSort.order }, + }) + } + } + + useEffect(() => { + setSelectedRow(undefined) + }, [preset, search, roles, urlSort, order]) + + return ( + + + { + const isSelected = idx === selectedRow + return [ + `${isSelected ? 'bg-surface-300 dark:bg-surface-300' : 'bg-200'} cursor-pointer`, + `${isSelected ? '[&>div:first-child]:border-l-4 border-l-secondary [&>div]:border-l-foreground' : ''}`, + '[&>.rdg-cell]:border-box [&>.rdg-cell]:outline-none [&>.rdg-cell]:shadow-none', + '[&>.rdg-cell:first-child>div]:ml-4', + ].join(' ') + }} + renderers={{ + renderRow(idx, props) { + return ( + { + if (typeof idx === 'number' && idx >= 0) { + setSelectedRow(idx) + gridRef.current?.scrollToCell({ idx: 0, rowIdx: idx }) + + const selectedQuery = queryPerformanceQuery.data[idx]['query'] + if (!(selectedQuery ?? '').trim().toLowerCase().startsWith('select')) { + setView('details') + } + } + }} + /> + ) + }, + noRowsFallback: isLoading ? ( +
    + +
    + ) : ( +
    + +
    +

    No queries detected

    +

    + There are no actively running queries that match the criteria +

    +
    +
    + ), + }} + /> +
    + {selectedRow !== undefined && ( + <> + + + + + +
    + setSearch(event.target.value)} + rows={4} + className="text-xs font-mono tracking-tight" + placeholder="Search for a query" + onKeyDown={(event) => { + if (event.metaKey && event.code === 'Enter') applySearch() + }} + /> +
    +
    + + +
    +
    + + ) +} diff --git a/apps/studio/components/interfaces/Realtime/Inspector/ApplyConfigModal.tsx b/apps/studio/components/interfaces/Realtime/Inspector/ApplyConfigModal.tsx deleted file mode 100644 index 45cdf42973c..00000000000 --- a/apps/studio/components/interfaces/Realtime/Inspector/ApplyConfigModal.tsx +++ /dev/null @@ -1,31 +0,0 @@ -import { Modal } from 'ui' - -import ConfirmationModal from 'ui-patterns/Dialogs/ConfirmationModal' - -interface ApplyConfigModalProps { - visible: boolean - onSelectCancel: () => void - onSelectConfirm: () => void -} - -export const ApplyConfigModal = (props: ApplyConfigModalProps) => { - return ( - - -
    -

    -

    - The realtime inspector will clear currently collected messages and start listening for - new messages matching the updated filters. -

    -
    -
    -
    - ) -} diff --git a/apps/studio/components/interfaces/Realtime/Inspector/MessagesTable.tsx b/apps/studio/components/interfaces/Realtime/Inspector/MessagesTable.tsx index 3078c96e5f2..11e493aebf4 100644 --- a/apps/studio/components/interfaces/Realtime/Inspector/MessagesTable.tsx +++ b/apps/studio/components/interfaces/Realtime/Inspector/MessagesTable.tsx @@ -73,9 +73,9 @@ const NoResultAlert = ({

    Listen to a table for changes

    Tables must have realtime enabled

    - +
    diff --git a/apps/studio/components/interfaces/Realtime/Inspector/RealtimeFilterPopover/index.tsx b/apps/studio/components/interfaces/Realtime/Inspector/RealtimeFilterPopover/index.tsx index b17fcd6aab9..62d4c522a09 100644 --- a/apps/studio/components/interfaces/Realtime/Inspector/RealtimeFilterPopover/index.tsx +++ b/apps/studio/components/interfaces/Realtime/Inspector/RealtimeFilterPopover/index.tsx @@ -18,10 +18,10 @@ import { } from 'ui' import Telemetry from 'lib/telemetry' -import { ApplyConfigModal } from '../ApplyConfigModal' import { RealtimeConfig } from '../useRealtimeMessages' import { FilterSchema } from './FilterSchema' import { FilterTable } from './FilterTable' +import ConfirmationModal from 'ui-patterns/Dialogs/ConfirmationModal' interface RealtimeFilterPopoverProps { config: RealtimeConfig @@ -60,7 +60,7 @@ export const RealtimeFilterPopover = ({ config, onChangeConfig }: RealtimeFilter {isFiltered ? ( <> Filtered by - table: {config.table} + table: {config.table} ) : ( Filter messages @@ -194,10 +194,14 @@ export const RealtimeFilterPopover = ({ config, onChangeConfig }: RealtimeFilter
    - setApplyConfigOpen(false)} - onSelectConfirm={() => { + onCancel={() => setApplyConfigOpen(false)} + onConfirm={() => { Telemetry.sendEvent( { category: 'realtime_inspector', @@ -211,7 +215,12 @@ export const RealtimeFilterPopover = ({ config, onChangeConfig }: RealtimeFilter setApplyConfigOpen(false) setOpen(false) }} - /> + > +

    + The realtime inspector will clear currently collected messages and start listening for new + messages matching the updated filters. +

    + ) } diff --git a/apps/studio/components/interfaces/Realtime/Inspector/RealtimeTokensPopover/index.tsx b/apps/studio/components/interfaces/Realtime/Inspector/RealtimeTokensPopover/index.tsx index 765f89444a1..d874a9c8e92 100644 --- a/apps/studio/components/interfaces/Realtime/Inspector/RealtimeTokensPopover/index.tsx +++ b/apps/studio/components/interfaces/Realtime/Inspector/RealtimeTokensPopover/index.tsx @@ -28,9 +28,8 @@ export const RealtimeTokensPopover = ({ config, onChangeConfig }: RealtimeTokens : undefined const anonRoleKey = apiService?.service_api_keys.find((x) => x.name === 'anon key') - ? apiService.serviceApiKey + ? apiService.defaultApiKey : undefined - const { data: postgrestConfig } = useProjectPostgrestConfigQuery( { projectRef: config.projectRef, @@ -59,27 +58,30 @@ export const RealtimeTokensPopover = ({ config, onChangeConfig }: RealtimeTokens }, [snap.role]) useEffect(() => { - let token: string | undefined - let bearer: string | null = null + const triggerUpdateTokenBearer = async () => { + let token: string | undefined + let bearer: string | null = null - if ( - config.projectRef !== undefined && - jwtSecret !== undefined && - snap.role !== undefined && - snap.role.type === 'postgrest' - ) { - token = anonRoleKey - getRoleImpersonationJWT(config.projectRef, jwtSecret, snap.role) - .then((token) => (bearer = token)) - .catch((err) => toast.error(`Failed to get JWT for role: ${err.message}`)) - } else { - token = serviceRoleKey + if ( + config.projectRef !== undefined && + jwtSecret !== undefined && + snap.role !== undefined && + snap.role.type === 'postgrest' + ) { + token = anonRoleKey + await getRoleImpersonationJWT(config.projectRef, jwtSecret, snap.role) + .then((b) => (bearer = b)) + .catch((err) => toast.error(`Failed to get JWT for role: ${err.message}`)) + } else { + token = serviceRoleKey + } + if (token) { + onChangeConfig({ ...config, token, bearer }) + } } - if (token) { - onChangeConfig({ ...config, token, bearer }) - } - }, [config.projectRef, jwtSecret, serviceRoleKey, snap.role]) + triggerUpdateTokenBearer() + }, [snap.role, anonRoleKey, serviceRoleKey]) return } diff --git a/apps/studio/components/interfaces/Realtime/Inspector/index.tsx b/apps/studio/components/interfaces/Realtime/Inspector/index.tsx index 010e985a032..718ae8ec315 100644 --- a/apps/studio/components/interfaces/Realtime/Inspector/index.tsx +++ b/apps/studio/components/interfaces/Realtime/Inspector/index.tsx @@ -32,7 +32,7 @@ export const RealtimeInspector = () => { enableBroadcast: true, }) - const { logData, sendMessage } = useRealtimeMessages(realtimeConfig) + const { logData, sendMessage } = useRealtimeMessages(realtimeConfig, setRealtimeConfig) return (
    diff --git a/apps/studio/components/interfaces/Realtime/Inspector/useRealtimeMessages.ts b/apps/studio/components/interfaces/Realtime/Inspector/useRealtimeMessages.ts index 6e3dd7a23ab..cb4c57e7e18 100644 --- a/apps/studio/components/interfaces/Realtime/Inspector/useRealtimeMessages.ts +++ b/apps/studio/components/interfaces/Realtime/Inspector/useRealtimeMessages.ts @@ -1,6 +1,6 @@ import { RealtimeChannel, SupabaseClient } from '@supabase/supabase-js' import { sortBy, take } from 'lodash' -import { useCallback, useEffect, useReducer, useState } from 'react' +import { Dispatch, SetStateAction, useCallback, useEffect, useReducer, useState } from 'react' import toast from 'react-hot-toast' import { useProjectApiQuery } from 'data/config/project-api-query' @@ -50,20 +50,25 @@ export interface RealtimeConfig { enableDbChanges: boolean } -export const useRealtimeMessages = ({ - enabled, - channelName, - projectRef, - logLevel, - token, - schema, - table, - filter, - bearer, - enablePresence, - enableDbChanges, - enableBroadcast, -}: RealtimeConfig) => { +export const useRealtimeMessages = ( + config: RealtimeConfig, + setRealtimeConfig: Dispatch> +) => { + const { + enabled, + channelName, + projectRef, + logLevel, + token, + schema, + table, + filter, + bearer, + enablePresence, + enableDbChanges, + enableBroadcast, + } = config + const { data } = useProjectApiQuery({ projectRef: projectRef }) // the default host is prod until the correct one comes through an API call. @@ -97,7 +102,8 @@ export const useRealtimeMessages = ({ }, } const newClient = new SupabaseClient(host, token, opts) - if (bearer != '') { + + if (bearer) { newClient.realtime.setAuth(bearer) } @@ -170,6 +176,14 @@ export const useRealtimeMessages = ({ } } else if (status === 'CLOSED') { // console.log(`Realtime Channel status: ${status}`) + } else if (status === 'CHANNEL_ERROR') { + toast.error( + 'Failed to connect to the channel: This may be due to restrictive RLS policies. Check your role and try again.' + ) + + newChannel.unsubscribe() + setChannel(undefined) + setRealtimeConfig({ ...config, enabled: false }) } else { // console.error(`Realtime Channel error status: ${status}`) // console.error(`Realtime Channel error: ${error}`) diff --git a/apps/studio/components/interfaces/Reports/ReportHeader.tsx b/apps/studio/components/interfaces/Reports/ReportHeader.tsx index 39a68e44057..65eee3aefe3 100644 --- a/apps/studio/components/interfaces/Reports/ReportHeader.tsx +++ b/apps/studio/components/interfaces/Reports/ReportHeader.tsx @@ -2,11 +2,9 @@ import { Button, IconRefreshCw } from 'ui' interface Props { title: string - onRefresh: () => void - isLoading: boolean } -const ReportHeader: React.FC = ({ title, onRefresh, isLoading }) => ( +const ReportHeader: React.FC = ({ title }) => (

    {title}

    diff --git a/apps/studio/components/interfaces/Reports/ReportQueryPerformanceTableRow.tsx b/apps/studio/components/interfaces/Reports/ReportQueryPerformanceTableRow.tsx deleted file mode 100644 index 83cec5b027a..00000000000 --- a/apps/studio/components/interfaces/Reports/ReportQueryPerformanceTableRow.tsx +++ /dev/null @@ -1,51 +0,0 @@ -import Table from 'components/to-be-cleaned/Table' -import React from 'react' -import { cn } from 'ui' -import { Editor } from '@monaco-editor/react' - -type Props = { - sql: string - colSpan: number - children: React.ReactNode -} - -const ReportQueryPerformanceTableRow = ({ sql, colSpan, children }: Props) => { - const [expanded, setExpanded] = React.useState(false) - - return ( - <> - setExpanded(!expanded)}>{children} -
    - {expanded && ( - - )} - - - ) -} - -export default ReportQueryPerformanceTableRow diff --git a/apps/studio/components/interfaces/Reports/Reports.constants.ts b/apps/studio/components/interfaces/Reports/Reports.constants.ts index 4ceed4d9dcc..7741f6bfe2d 100644 --- a/apps/studio/components/interfaces/Reports/Reports.constants.ts +++ b/apps/studio/components/interfaces/Reports/Reports.constants.ts @@ -297,7 +297,7 @@ select inner join pg_authid as auth on statements.userid = auth.oid ${where || ''} ${orderBy || 'order by statements.calls desc'} - limit 10;`, + limit 20;`, }, mostTimeConsuming: { queryType: 'db', @@ -313,7 +313,7 @@ select inner join pg_authid as auth on statements.userid = auth.oid ${where || ''} ${orderBy || 'order by total_time desc'} - limit 10;`, + limit 20;`, }, slowestExecutionTime: { queryType: 'db', @@ -338,7 +338,7 @@ select inner join pg_authid as auth on statements.userid = auth.oid ${where || ''} ${orderBy || 'order by max_time desc'} - limit 10`, + limit 20`, }, queryHitRate: { queryType: 'db', diff --git a/apps/studio/components/interfaces/Reports/Reports.queries.ts b/apps/studio/components/interfaces/Reports/Reports.queries.ts index a20c94b481b..64486f1a41f 100644 --- a/apps/studio/components/interfaces/Reports/Reports.queries.ts +++ b/apps/studio/components/interfaces/Reports/Reports.queries.ts @@ -2,30 +2,44 @@ import { PRESET_CONFIG } from './Reports.constants' import { Presets } from './Reports.types' import useDbQuery from 'hooks/analytics/useDbQuery' -type QueryPerformanceQueryOpts = { - searchQuery: string - preset: 'mostFrequentlyInvoked' | 'mostTimeConsuming' | 'slowestExecutionTime' | 'queryHitRate' - orderBy: string | 'lat_asc' | 'lat_desc' +export type QueryPerformanceSort = { + column: + | 'total_time' + | 'prop_total_time' + | 'calls' + | 'avg_rows' + | 'max_time' + | 'mean_time' + | 'min_time' + order: 'asc' | 'desc' } + +type QueryPerformanceQueryOpts = { + preset: 'mostFrequentlyInvoked' | 'mostTimeConsuming' | 'slowestExecutionTime' | 'queryHitRate' + searchQuery?: string + orderBy?: QueryPerformanceSort + roles?: string[] +} + export const useQueryPerformanceQuery = ({ preset, orderBy, - searchQuery, + searchQuery = '', + roles, }: QueryPerformanceQueryOpts) => { const queryPerfQueries = PRESET_CONFIG[Presets.QUERY_PERFORMANCE] const baseSQL = queryPerfQueries.queries[preset] - if (orderBy !== 'lat_asc' && orderBy !== 'lat_desc') { - // Default to lat_desc if not specified or invalid - orderBy = 'lat_desc' - } - - const whereSql = searchQuery - ? `WHERE auth.rolname ~ '${searchQuery}' OR statements.query ~ '${searchQuery}'` - : '' - const orderBySql = orderBy === 'lat_asc' ? 'ORDER BY total_time asc' : 'ORDER BY total_time desc' - - const sql = baseSQL.sql([], whereSql, orderBySql) + const whereSql = [ + roles !== undefined && roles.length > 0 + ? `auth.rolname in (${roles.map((r) => `'${r}'`).join(', ')})` + : '', + searchQuery.length > 0 ? `statements.query ~ '${searchQuery}'` : '', + ] + .filter((x) => x.length > 0) + .join(' OR ') + const orderBySql = orderBy && `ORDER BY ${orderBy.column} ${orderBy.order}` + const sql = baseSQL.sql([], whereSql.length > 0 ? `WHERE ${whereSql}` : undefined, orderBySql) return useDbQuery(sql, undefined, whereSql, orderBySql) } diff --git a/apps/studio/components/interfaces/Reports/Reports.tsx b/apps/studio/components/interfaces/Reports/Reports.tsx index 541acc09ae3..e036c0521dd 100644 --- a/apps/studio/components/interfaces/Reports/Reports.tsx +++ b/apps/studio/components/interfaces/Reports/Reports.tsx @@ -193,7 +193,7 @@ const Reports = () => { /* * handleChartSelection() * - * Handler for the chart behaviour + * Handler for the chart behavior */ function handleChartSelection({ metric, value }: any) { if (value) { @@ -351,7 +351,7 @@ const Reports = () => {
    {hasEdits && (
    - There are unsaved changes + There are unsaved changes
    )} {hasEdits && ( diff --git a/apps/studio/components/interfaces/Reports/Reports.utils.tsx b/apps/studio/components/interfaces/Reports/Reports.utils.tsx index cbf86b4693c..eede5de73bc 100644 --- a/apps/studio/components/interfaces/Reports/Reports.utils.tsx +++ b/apps/studio/components/interfaces/Reports/Reports.utils.tsx @@ -10,7 +10,7 @@ export const queryParamsToObject = (params: string) => { } // generate hooks based on preset config -type PresetHookResult = LogsQueryHook | DbQueryHook +export type PresetHookResult = LogsQueryHook | DbQueryHook type PresetHooks = Record PresetHookResult> export const queriesFactory = ( diff --git a/apps/studio/components/interfaces/RoleImpersonationSelector/UserImpersonationSelector.tsx b/apps/studio/components/interfaces/RoleImpersonationSelector/UserImpersonationSelector.tsx index 9f496518209..fe801037454 100644 --- a/apps/studio/components/interfaces/RoleImpersonationSelector/UserImpersonationSelector.tsx +++ b/apps/studio/components/interfaces/RoleImpersonationSelector/UserImpersonationSelector.tsx @@ -17,6 +17,7 @@ const UserImpersonationSelector = () => { const { data, isSuccess, isLoading, isError, error, isFetching, isPreviousData } = useUsersQuery( { projectRef: project?.ref, + connectionString: project?.connectionString, keywords: debouncedSearchText || undefined, }, { @@ -137,7 +138,9 @@ interface UserRowProps { const UserImpersonatingRow = ({ user, onClick, isImpersonating = false }: UserRowProps) => { const avatarUrl = getAvatarUrl(user) - const displayName = getDisplayName(user, user.email ?? user.phone ?? user.id ?? 'Unknown') + const displayName = + getDisplayName(user, user.email ?? user.phone ?? user.id ?? 'Unknown') + + (user.is_anonymous ? ' (anonymous)' : '') return (
    @@ -173,7 +176,9 @@ interface UserRowProps { const UserRow = ({ user, onClick, isImpersonating = false }: UserRowProps) => { const avatarUrl = getAvatarUrl(user) - const displayName = getDisplayName(user, user.email ?? user.phone ?? user.id ?? 'Unknown') + const displayName = + getDisplayName(user, user.email ?? user.phone ?? user.id ?? 'Unknown') + + (user.is_anonymous ? ' (anonymous)' : '') return (
    diff --git a/apps/studio/components/interfaces/SQLEditor/AiAssistantPanel/Message.tsx b/apps/studio/components/interfaces/SQLEditor/AiAssistantPanel/Message.tsx index efc128f7dad..edd29cd1987 100644 --- a/apps/studio/components/interfaces/SQLEditor/AiAssistantPanel/Message.tsx +++ b/apps/studio/components/interfaces/SQLEditor/AiAssistantPanel/Message.tsx @@ -67,7 +67,7 @@ const Message = memo(function Message({ {createdAt && ( {dayjs(createdAt).fromNow()} )} - {isDebug && Debug request} + {isDebug && Debug request}
    {' '} {action}
    diff --git a/apps/studio/components/interfaces/SQLEditor/DownloadSnippetModal.tsx b/apps/studio/components/interfaces/SQLEditor/DownloadSnippetModal.tsx index 2d0c335907c..db3651b251e 100644 --- a/apps/studio/components/interfaces/SQLEditor/DownloadSnippetModal.tsx +++ b/apps/studio/components/interfaces/SQLEditor/DownloadSnippetModal.tsx @@ -78,7 +78,7 @@ const DownloadSnippetModal = ({ id, ...props }: DownloadSnippetModalProps) => { width={75} options={['CLI', 'NPM']} activeOption={selectedView} - borderOverride="border-gray-100" + borderOverride="border-muted" onClickOption={() => selectedView === 'CLI' ? setSelectedView('NPM') : setSelectedView('CLI') } diff --git a/apps/studio/components/interfaces/SQLEditor/SQLEditor.queries.ts b/apps/studio/components/interfaces/SQLEditor/SQLEditor.queries.ts index 4aa2a91e71b..f0675ca6c1c 100644 --- a/apps/studio/components/interfaces/SQLEditor/SQLEditor.queries.ts +++ b/apps/studio/components/interfaces/SQLEditor/SQLEditor.queries.ts @@ -517,29 +517,29 @@ alter table public.role_permissions create policy "Allow logged-in read access" on public.users for select using (auth.role() = 'authenticated'); create policy "Allow individual insert access" on public.users - for insert with check (auth.uid() = id); + for insert with check ((select auth.uid()) = id); create policy "Allow individual update access" on public.users - for update using ( auth.uid() = id ); + for update using ( (select auth.uid()) = id ); create policy "Allow logged-in read access" on public.channels for select using (auth.role() = 'authenticated'); create policy "Allow individual insert access" on public.channels - for insert with check (auth.uid() = created_by); + for insert with check ((select auth.uid()) = created_by); create policy "Allow individual delete access" on public.channels - for delete using (auth.uid() = created_by); + for delete using ((select auth.uid()) = created_by); create policy "Allow authorized delete access" on public.channels for delete using (authorize('channels.delete', auth.uid())); create policy "Allow logged-in read access" on public.messages for select using (auth.role() = 'authenticated'); create policy "Allow individual insert access" on public.messages - for insert with check (auth.uid() = user_id); + for insert with check ((select auth.uid()) = user_id); create policy "Allow individual update access" on public.messages - for update using (auth.uid() = user_id); + for update using ((select auth.uid()) = user_id); create policy "Allow individual delete access" on public.messages - for delete using (auth.uid() = user_id); + for delete using ((select auth.uid()) = user_id); create policy "Allow authorized delete access" on public.messages for delete using (authorize('messages.delete', auth.uid())); create policy "Allow individual read access" on public.user_roles - for select using (auth.uid() = user_id); + for select using ((select auth.uid()) = user_id); -- Send "previous data" on change alter table public.users @@ -638,11 +638,11 @@ alter table todos enable row level security; create policy "Individuals can create todos." on todos for insert with check (auth.uid() = user_id); create policy "Individuals can view their own todos. " on todos for - select using (auth.uid() = user_id); + select using ((select auth.uid()) = user_id); create policy "Individuals can update their own todos." on todos for - update using (auth.uid() = user_id); + update using ((select auth.uid()) = user_id); create policy "Individuals can delete their own todos." on todos for - delete using (auth.uid() = user_id); + delete using ((select auth.uid()) = user_id); `.trim(), }, { @@ -668,9 +668,9 @@ create table users ( alter table users enable row level security; create policy "Can view own user data." on users - for select using (auth.uid() = id); + for select using ((select auth.uid()) = id); create policy "Can update own user data." on users - for update using (auth.uid() = id); + for update using ((select auth.uid()) = id); /** * This trigger automatically creates a user entry when a new user signs up via Supabase Auth. @@ -801,7 +801,7 @@ create table subscriptions ( alter table subscriptions enable row level security; create policy "Can only view own subs data." on subscriptions - for select using (auth.uid() = user_id); + for select using ((select auth.uid()) = user_id); /** * REALTIME SUBSCRIPTIONS @@ -838,10 +838,10 @@ create policy "Public profiles are viewable by everyone." on profiles for select using (true); create policy "Users can insert their own profile." on profiles - for insert with check (auth.uid() = id); + for insert with check ((select auth.uid()) = id); create policy "Users can update own profile." on profiles - for update using (auth.uid() = id); + for update using ((select auth.uid()) = id); -- This trigger automatically creates a profile entry when a new user signs up via Supabase Auth. -- See https://supabase.com/docs/guides/auth/managing-user-data#using-triggers for more details. diff --git a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/ChartConfig.tsx b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/ChartConfig.tsx index 431a42ca8dc..b996596a834 100644 --- a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/ChartConfig.tsx +++ b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/ChartConfig.tsx @@ -20,7 +20,7 @@ import { type Results = { rows: readonly any[] } export type ChartConfig = { - type: 'bar' | 'line' + type: 'bar' cumulative: boolean xKey: string yKey: string @@ -87,7 +87,7 @@ export function ChartConfig({ results = { rows: [] }, config, onConfigChange }: return ( <> - + {config.type === 'bar' && ( - + <>

    Chart options

    diff --git a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/ReadOnlyBadge.tsx b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/ReadOnlyBadge.tsx index 0024fec9e56..1facb570ca6 100644 --- a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/ReadOnlyBadge.tsx +++ b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/ReadOnlyBadge.tsx @@ -10,7 +10,7 @@ const ReadOnlyBadge = ({ id }: ReadOnlyBadgeProps) => { const snippet = snap.snippets[id] const isSnippetOwner = user?.user_metadata?.user_name === snippet?.snippet?.owner?.username - return <>{isSnippetOwner ? null : Read-only} + return <>{isSnippetOwner ? null : Read-only} } export default ReadOnlyBadge diff --git a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/Results.tsx b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/Results.tsx index 615b4e79081..87f2e91fbbb 100644 --- a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/Results.tsx +++ b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/Results.tsx @@ -90,8 +90,7 @@ const Results = ({ id, rows }: { id: string; rows: readonly any[] }) => { '[&>.rdg-cell]:items-center'} onSelectedCellChange={onSelectedCellChange} /> diff --git a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/ResultsDropdown.tsx b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/ResultsDropdown.tsx index af21687008e..7cd4448d153 100644 --- a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/ResultsDropdown.tsx +++ b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/ResultsDropdown.tsx @@ -1,6 +1,5 @@ import { compact, isObject, isString, map } from 'lodash' -// @ts-ignore -import MarkdownTable from 'markdown-table' +import { markdownTable } from 'markdown-table' import { useRouter } from 'next/router' import { useMemo, useRef } from 'react' import { CSVLink } from 'react-csv' @@ -90,7 +89,7 @@ const ResultsDropdown = ({ id }: ResultsDropdownProps) => { return temp }) const table = [columns].concat(rows) - const markdownData = MarkdownTable(table) + const markdownData = markdownTable(table) copyToClipboard(markdownData, () => { toast.success('Copied results to clipboard') @@ -137,20 +136,18 @@ const ResultsDropdown = ({ id }: ResultsDropdownProps) => { /> - <> - - -

    Download CSV

    -
    - - -

    Copy as markdown

    -
    - - -

    Copy as JSON

    -
    - + + +

    Download CSV

    +
    + + +

    Copy as markdown

    +
    + + +

    Copy as JSON

    +
    ) diff --git a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityPanel.tsx b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityPanel.tsx index 7077a5ff1d1..e976d4c9587 100644 --- a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityPanel.tsx +++ b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityPanel.tsx @@ -1,12 +1,16 @@ -import { useState } from 'react' +import { useQueryClient } from '@tanstack/react-query' +import { useParams } from 'common' +import toast from 'react-hot-toast' + +import { useContentQuery } from 'data/content/content-query' +import { useContentUpsertMutation } from 'data/content/content-upsert-mutation' +import { contentKeys } from 'data/content/keys' +import { useSqlEditorStateSnapshot } from 'state/sql-editor' +import { TabsContent_Shadcn_, TabsList_Shadcn_, TabsTrigger_Shadcn_, Tabs_Shadcn_ } from 'ui' +import { ChartConfig } from './ChartConfig' import ResultsDropdown from './ResultsDropdown' import UtilityActions from './UtilityActions' import UtilityTabResults from './UtilityTabResults' -import { useSqlEditorStateSnapshot } from 'state/sql-editor' - -import { TabsContent_Shadcn_, TabsList_Shadcn_, TabsTrigger_Shadcn_, Tabs_Shadcn_ } from 'ui' -import { ChartConfig } from './ChartConfig' -import { useFlag } from 'hooks' export type UtilityPanelProps = { id: string @@ -17,6 +21,13 @@ export type UtilityPanelProps = { executeQuery: () => void } +const DEFAULT_CHART_CONFIG = { + type: 'bar', + cumulative: false, + xKey: '', + yKey: '', +} as const + const UtilityPanel = ({ id, isExecuting, @@ -26,19 +37,80 @@ const UtilityPanel = ({ executeQuery, }: UtilityPanelProps) => { const snap = useSqlEditorStateSnapshot() + const { ref } = useParams() + const { data } = useContentQuery(ref) + const snippet = snap.snippets[id]?.snippet + + const queryKeys = contentKeys.list(ref) + + const upsertContent = useContentUpsertMutation({ + invalidateQueriesOnSuccess: false, + // Optimistic update to the cache + onMutate: async (newContentSnippet) => { + const { payload } = newContentSnippet + + // No need to update the cache for non-SQL content + if (payload.type !== 'sql') return + if (!('chart' in payload.content)) return + + // Cancel any existing queries so that the new content is fetched + await queryClient.cancelQueries(queryKeys) + + const newSnippet = { + ...snippet, + content: { + ...snippet.content, + chart: payload.content.chart, + }, + } + + snap.updateSnippet(id, newSnippet) + }, + onError: async (err, newContent, context) => { + toast.error(`Failed to update chart. Please try again.`) + }, + }) + const queryClient = useQueryClient() + + function getChartConfig() { + if (!snippet || snippet.type !== 'sql') { + return DEFAULT_CHART_CONFIG + } + + if (!snippet.content.chart) { + return DEFAULT_CHART_CONFIG + } + + return snippet.content.chart + } + + const chartConfig = getChartConfig() + const result = snap.results[id]?.[0] - const showCharts = useFlag('showSQLEditorCharts') + function onConfigChange(config: ChartConfig) { + if (!ref || !snippet.id) { + return + } - const [config, setConfig] = useState({ - type: 'bar', - cumulative: false, - xKey: '', - yKey: '', - }) + upsertContent.mutateAsync({ + projectRef: ref, + payload: { + ...snippet, + id: snippet.id, + description: snippet.description || '', + project_id: snippet.project_id || 0, + content: { + ...snippet.content, + content_id: id, + chart: config, + }, + }, + }) + } return ( - +
    @@ -47,13 +119,12 @@ const UtilityPanel = ({ (result?.rows ?? []).length > 0 && `(${result.rows.length.toLocaleString()})`} - {showCharts && ( - - Chart - - )} + + + Chart +
    -
    +
    {result && result.rows && } - {showCharts && ( - - - - )} + + + ) } diff --git a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityTabResults.tsx b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityTabResults.tsx index caad3ab674e..60925f083bd 100644 --- a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityTabResults.tsx +++ b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityTabResults.tsx @@ -165,7 +165,14 @@ const UtilityTabResults = ({ id, isExecuting }: UtilityTabResultsProps) => { }) setSelectedDiffType(DiffType.Modification) } catch (error: unknown) { - if (isError(error)) toast.error(`Failed to debug: ${error.message}`) + // [Joshen] There's a tendency for the SQL debug to chuck a lengthy error message + // that's not relevant for the user - so we prettify it here by avoiding to return the + // entire error body from the assistant + if (isError(error)) { + toast.error( + `Sorry, the assistant failed to debug your query! Please try again with a different one.` + ) + } } }} > diff --git a/apps/studio/components/interfaces/Settings/API/JWTSettings.tsx b/apps/studio/components/interfaces/Settings/API/JWTSettings.tsx index cec5547d958..e967351ba96 100644 --- a/apps/studio/components/interfaces/Settings/API/JWTSettings.tsx +++ b/apps/studio/components/interfaces/Settings/API/JWTSettings.tsx @@ -213,32 +213,31 @@ const JWTSettings = () => { setIsGeneratingKey(false)} - onSelectConfirm={() => handleJwtSecretUpdate('ROLL', setIsGeneratingKey)} - > - - - - This will invalidate all existing API keys - + title="Confirm to generate a new JWT secret" + confirmLabel="Generate new secret" + confirmLabelLoading="Generating" + onCancel={() => setIsGeneratingKey(false)} + onConfirm={() => handleJwtSecretUpdate('ROLL', setIsGeneratingKey)} + alert={{ + title: 'This will invalidate all existing API keys', + description: ( + <> Generating a new JWT secret will invalidate all of your API keys, including your service_role and{' '} anon keys. Your project will also be restarted during this process, which will terminate any existing connections. You may receive API errors for up to 2 minutes while the new secret is deployed. - - -

    - This action cannot be undone and the old JWT secret will be lost. All existing API keys - will be invalidated, and any open connections will be terminated. -

    -
    + + ), + }} + > +

    + This action cannot be undone and the old JWT secret will be lost. All existing API keys + will be invalidated, and any open connections will be terminated. +

    { addresses. Enabling the dedicated IPv4 add-on allows you to directly connect to your database via a IPv4 address.

    +

    If you are connecting via our connection pooler, you do not need this add-on as our pooler resolves to IPv4 addresses. You can check your connection info in your{' '} @@ -208,7 +209,9 @@ const IPv4SidePanel = () => {

    {formatCurrency(option.price)}

    -

    / month

    +

    + / month / database +

    @@ -233,9 +236,17 @@ const IPv4SidePanel = () => { minute.

    - Upon clicking confirm, the amount of{' '} - {formatCurrency(selectedIPv4?.price)}{' '} - will be added to your monthly invoice. + By default, this is only applied to the Primary database for your project. If{' '} + + Read replicas + {' '} + are used, each replica also gets its own IPv4 address, with a corresponding{' '} + {formatCurrency(selectedIPv4?.price)} + charge.

    )} diff --git a/apps/studio/components/interfaces/Settings/Database/BannedIPs.tsx b/apps/studio/components/interfaces/Settings/Database/BannedIPs.tsx index 57d11287a6d..6b3ec7a5302 100644 --- a/apps/studio/components/interfaces/Settings/Database/BannedIPs.tsx +++ b/apps/studio/components/interfaces/Settings/Database/BannedIPs.tsx @@ -89,7 +89,7 @@ const BannedIPs = () => {

    {ip}

    - {ip === userIPAddress && Your IP address} + {ip === userIPAddress && Your IP address}
    ) } diff --git a/apps/studio/components/interfaces/Settings/Database/ConnectionPooling/ConnectionPooling.constants.ts b/apps/studio/components/interfaces/Settings/Database/ConnectionPooling/ConnectionPooling.constants.ts index 3d7f7ea2653..6b6e15d41bb 100644 --- a/apps/studio/components/interfaces/Settings/Database/ConnectionPooling/ConnectionPooling.constants.ts +++ b/apps/studio/components/interfaces/Settings/Database/ConnectionPooling/ConnectionPooling.constants.ts @@ -3,27 +3,27 @@ export const POOLING_OPTIMIZATIONS = { ci_nano: { - maxClientConn: 100, - poolSize: 10, + maxClientConn: 200, + poolSize: 15, }, ci_micro: { maxClientConn: 200, poolSize: 15, }, ci_small: { - maxClientConn: 200, + maxClientConn: 400, poolSize: 15, }, ci_medium: { - maxClientConn: 200, + maxClientConn: 600, poolSize: 15, }, ci_large: { - maxClientConn: 300, - poolSize: 15, + maxClientConn: 800, + poolSize: 20, }, ci_xlarge: { - maxClientConn: 700, + maxClientConn: 1000, poolSize: 20, }, ci_2xlarge: { diff --git a/apps/studio/components/interfaces/Settings/Database/ConnectionPooling/ConnectionPooling.tsx b/apps/studio/components/interfaces/Settings/Database/ConnectionPooling/ConnectionPooling.tsx index b2c2d607a66..7d761f8a3b7 100644 --- a/apps/studio/components/interfaces/Settings/Database/ConnectionPooling/ConnectionPooling.tsx +++ b/apps/studio/components/interfaces/Settings/Database/ConnectionPooling/ConnectionPooling.tsx @@ -18,16 +18,15 @@ import { FormLabel_Shadcn_, FormMessage_Shadcn_, Form_Shadcn_, - IconAlertTriangle, IconExternalLink, Input_Shadcn_, Listbox, + Separator, } from 'ui' import z from 'zod' import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext' import AlertError from 'components/ui/AlertError' -import Divider from 'components/ui/Divider' import { FormActions } from 'components/ui/Forms' import Panel from 'components/ui/Panel' import ShimmeringLoader from 'components/ui/ShimmeringLoader' @@ -72,9 +71,7 @@ export const ConnectionPooling = () => { const poolingOptimizations = POOLING_OPTIMIZATIONS[ (computeInstance?.variant.identifier as keyof typeof POOLING_OPTIMIZATIONS) ?? - project?.infra_compute_size === 'nano' - ? 'ci_nano' - : 'ci_micro' + (project?.infra_compute_size === 'nano' ? 'ci_nano' : 'ci_micro') ] const defaultPoolSize = poolingOptimizations.poolSize ?? 15 const defaultMaxClientConn = poolingOptimizations.maxClientConn ?? 200 @@ -166,7 +163,7 @@ export const ConnectionPooling = () => { ? 'Connection Pooling is not available for this project' : 'Connection pooling configuration'}

    - Supavisor + Supavisor
    - + ))} @@ -236,6 +233,7 @@ export const ConnectionPooling = () => { field.onChange(value)} @@ -254,6 +252,36 @@ export const ConnectionPooling = () => { + + {poolingConfiguration?.pool_mode === 'transaction' && ( + + + + Pool mode is permanently set to Transaction on port 6543 + + + You can use Session mode by connecting to the pooler on port 5432 + instead + + + + )} + + {field.value === 'transaction' && + poolingConfiguration?.pool_mode === 'session' && ( + + + + Pool mode will be set to transaction permanently on port 6543 + + + This will take into effect once saved. You can use session mode by + pointing the pooler connection to use port 5432. + + + + )} +

    Specify when a connection can be returned to the pool.{' '} @@ -262,23 +290,12 @@ export const ConnectionPooling = () => { onClick={() => snap.setShowPoolingModeHelper(true)} className="cursor-pointer underline underline-offset-2" > - Unsure which pooling mode to use? + Learn more about pool modes + .

    - {field.value === 'session' && ( - - - Set to transaction mode to use both pooling modes concurrently - - - Session mode can be used concurrently with transaction mode by using - 5432 for session and 6543 for transaction. However, by configuring the - pooler mode to session here, you will not be able to use transaction - mode at the same time. - - - )}
    + )} @@ -304,15 +321,15 @@ export const ConnectionPooling = () => { Number(form.getValues('default_pool_size') ?? 15) > maxConnData.maxConnections * 0.8 && (
    - - - - Pool size is greater than 80% of the max connections ( - {maxConnData.maxConnections}) on your database + + + Set to transaction mode to use both pooling modes concurrently - This may result in instability and unreliability with your database - connections. + Session mode can be used concurrently with transaction mode by using + 5432 for session and 6543 for transaction. However, by configuring + the pooler mode to session here, you will not be able to use + transaction mode at the same time.
    diff --git a/apps/studio/components/interfaces/Settings/Database/DatabaseSettings/DatabaseConnectionString.tsx b/apps/studio/components/interfaces/Settings/Database/DatabaseSettings/DatabaseConnectionString.tsx index 78e327fd269..3c504dc8a0d 100644 --- a/apps/studio/components/interfaces/Settings/Database/DatabaseSettings/DatabaseConnectionString.tsx +++ b/apps/studio/components/interfaces/Settings/Database/DatabaseSettings/DatabaseConnectionString.tsx @@ -7,8 +7,6 @@ import { CollapsibleContent_Shadcn_, CollapsibleTrigger_Shadcn_, Collapsible_Shadcn_, - IconChevronDown, - IconExternalLink, Input, Separator, Tabs, @@ -34,6 +32,7 @@ import { getConnectionStrings, getPoolerTld, } from './DatabaseSettings.utils' +import { ChevronDown, ExternalLink } from 'lucide-react' const CONNECTION_TYPES = [ { id: 'uri', label: 'URI' }, @@ -174,7 +173,7 @@ export const DatabaseConnectionString = ({ appearance }: DatabaseConnectionStrin appearance === 'minimal' && 'border-0 shadow-none' )} bodyClassName={cn(appearance === 'minimal' && 'bg-transparent')} - headerClasses={cn(appearance === 'minimal' && 'bg-transparent')} + titleClasses={cn(appearance === 'minimal' && 'bg-transparent')} title={
    {readReplicasEnabled && } - @@ -261,7 +263,7 @@ export const DatabaseConnectionString = ({ appearance }: DatabaseConnectionStrin

    How to connect to a different database or switch to another user

    - Connecting to SQL Alchemy

    - { if (!ref) return console.error('Project ref is required') await applyNetworkRestrictions({ projectRef: ref, - dbAllowedCidrs: ['127.0.0.1/32'], - dbAllowedCidrsV6: ['::1/128'], + dbAllowedCidrs: [], + dbAllowedCidrsV6: [], }) } diff --git a/apps/studio/components/interfaces/Settings/Database/NetworkRestrictions/NetworkRestrictions.tsx b/apps/studio/components/interfaces/Settings/Database/NetworkRestrictions/NetworkRestrictions.tsx index e9ca3edfdf1..86b4248febb 100644 --- a/apps/studio/components/interfaces/Settings/Database/NetworkRestrictions/NetworkRestrictions.tsx +++ b/apps/studio/components/interfaces/Settings/Database/NetworkRestrictions/NetworkRestrictions.tsx @@ -112,10 +112,7 @@ const NetworkRestrictions = () => { const hasApplyError = restrictionStatus === 'stored' const isUninitialized = restrictedIps.length === 0 && restrictionStatus.length === 0 const isAllowedAll = restrictedIps.includes('0.0.0.0/0') && restrictedIps.includes('::/0') - const isDisallowedAll = - restrictedIps.length === 2 && - restrictedIps.includes('127.0.0.1/32') && - restrictedIps.includes('::1/128') + const isDisallowedAll = restrictedIps.length === 0 if (!hasAccessToRestrictions) return <> @@ -301,9 +298,7 @@ const NetworkRestrictions = () => {
    - - {ipv4Restrictions.includes(ip) ? 'IPv4' : 'IPv6'} - + {ipv4Restrictions.includes(ip) ? 'IPv4' : 'IPv6'}

    {ip}

    - -

    - A connection pooler is a system (external to Postgres) which manages Postgres - connections by allocating connections whenever clients make requests. -

    + + A connection pooler is a system (external to Postgres) which manages Postgres + connections by allocating connections whenever clients make requests. + {primaryConfig?.pool_mode === 'session' && ( - - - - Pooling mode is currently configured to use session mode - - - To use transaction mode concurrently with session mode, change the pooling mode to - transaction first in the{' '} - { - snap.setShowPoolingModeHelper(false) - navigateToPoolerSettings() - }} - > - connection pooling settings - - . After this, you can use transaction mode on port 6543 and session mode on port 5432. - - +
    + + + + Pooling mode is currently configured to use session mode + + + To use transaction mode concurrently with session mode, change the pooling mode to + transaction first in the{' '} + { + snap.setShowPoolingModeHelper(false) + navigateToPoolerSettings() + }} + > + connection pooling settings + + . After this, you can use transaction mode on port 6543 and session mode on port + 5432. + + +
    )} snap.setShowPoolingModeHelper(false)}> diff --git a/apps/studio/components/interfaces/Settings/Database/UsePoolerCheckbox.tsx b/apps/studio/components/interfaces/Settings/Database/UsePoolerCheckbox.tsx index 3249b13db58..3e3451582b7 100644 --- a/apps/studio/components/interfaces/Settings/Database/UsePoolerCheckbox.tsx +++ b/apps/studio/components/interfaces/Settings/Database/UsePoolerCheckbox.tsx @@ -1,4 +1,5 @@ import { useParams } from 'common' +import { useRouter } from 'next/router' import { useState } from 'react' import { Badge, @@ -20,6 +21,7 @@ import { useProjectSettingsQuery } from 'data/config/project-settings-query' import { usePoolingConfigurationQuery } from 'data/database/pooling-configuration-query' import { useDatabaseSelectorStateSnapshot } from 'state/database-selector' import { useDatabaseSettingsStateSnapshot } from 'state/database-settings' +import Link from 'next/link' interface UsePoolerCheckboxInterface { id: string @@ -36,6 +38,7 @@ export const UsePoolerCheckbox = ({ onCheckedChange, onSelectPoolingMode, }: UsePoolerCheckboxInterface) => { + const router = useRouter() const [open, setOpen] = useState(false) const { ref: projectRef } = useParams() const { project } = useProjectContext() @@ -46,6 +49,7 @@ export const UsePoolerCheckbox = ({ const { data: settings, isSuccess: isSuccessSettings } = useProjectSettingsQuery({ projectRef }) const { data: pgBouncerStatus } = usePgBouncerStatus({ projectRef: projectRef }) + const isDatabaseSettingsPage = router.pathname.endsWith('/settings/database') const readReplicasEnabled = project?.is_read_replicas_enabled const poolingConfiguration = readReplicasEnabled ? data?.find((x) => x.identifier === state.selectedDatabaseId) @@ -116,22 +120,31 @@ export const UsePoolerCheckbox = ({

    To use transaction mode, change the pool mode in the{' '} - { - const el = document.getElementById('connection-pooler') - if (el) { - setOpen(false) - el.scrollIntoView({ - behavior: 'smooth', - block: 'center', - }) - } - }} - > - pooling configuration settings - {' '} + {isDatabaseSettingsPage ? ( + { + const el = document.getElementById('connection-pooler') + if (el) { + setOpen(false) + el.scrollIntoView({ + behavior: 'smooth', + block: 'center', + }) + } + }} + > + pooling configuration settings + + ) : ( + + pooling configuration settings + + )}{' '} to use transaction mode first.

    @@ -161,9 +174,9 @@ export const UsePoolerCheckbox = ({ )}

    - {isSuccess && checked && Supavisor} + {isSuccess && checked && Supavisor} {isSuccessSettings && ( - + {checked ? 'Resolves to IPv4' : resolvesToIpV6 @@ -171,7 +184,9 @@ export const UsePoolerCheckbox = ({ : 'Will resolve to IPv6'} )} - {pgBouncerStatus?.active && PgBouncer pending removal} + {pgBouncerStatus?.active && ( + PgBouncer pending removal + )}
    diff --git a/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainActivate.tsx b/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainActivate.tsx index 74959f2a485..758fb335633 100644 --- a/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainActivate.tsx +++ b/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainActivate.tsx @@ -147,20 +147,18 @@ const CustomDomainActivate = ({ projectRef, customDomain }: CustomDomainActivate size="small" loading={isCheckingRecord || isActivating} visible={isActivateConfirmModalVisible} - header={ -
    + title={ + <> Are you sure you want to activate the custom domain{' '} {customDomain.hostname} for the project? -
    + } - buttonLabel="Activate" - buttonLoadingLabel="Activating" - onSelectCancel={() => setIsActivateConfirmModalVisible(false)} - onSelectConfirm={onActivateCustomDomain} + confirmLabel="Activate" + confirmLabelLoading="Activating" + onCancel={() => setIsActivateConfirmModalVisible(false)} + onConfirm={onActivateCustomDomain} > - -

    The existing Supabase subdomain will be deactivated.

    -
    +

    The existing Supabase subdomain will be deactivated.

    ) diff --git a/apps/studio/components/interfaces/Settings/General/Infrastructure/PauseProjectButton.tsx b/apps/studio/components/interfaces/Settings/General/Infrastructure/PauseProjectButton.tsx index 82d7d190067..53bc74a3069 100644 --- a/apps/studio/components/interfaces/Settings/General/Infrastructure/PauseProjectButton.tsx +++ b/apps/studio/components/interfaces/Settings/General/Infrastructure/PauseProjectButton.tsx @@ -94,22 +94,19 @@ const PauseProjectButton = () => { ) : null} setIsModalOpen(false)} - onSelectConfirm={requestPauseProject} + title="Pause this project?" + confirmLabel="Pause project" + confirmLabelLoading="Pausing project" + onCancel={() => setIsModalOpen(false)} + onConfirm={requestPauseProject} > - -

    - Are you sure you want to pause this project? It will not be accessible until you unpause - it. -

    -
    +

    + Are you sure you want to pause this project? It will not be accessible until you unpause + it. +

    ) diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/DeployNewReplicaPanel.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/DeployNewReplicaPanel.tsx index d7b7fa7b37a..acb257b643a 100644 --- a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/DeployNewReplicaPanel.tsx +++ b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/DeployNewReplicaPanel.tsx @@ -20,6 +20,8 @@ import { useSelectedOrganization, useSelectedProject } from 'hooks' import { AWS_REGIONS, AWS_REGIONS_DEFAULT, AWS_REGIONS_KEYS, BASE_PATH } from 'lib/constants' import { AVAILABLE_REPLICA_REGIONS, AWS_REGIONS_VALUES } from './InstanceConfiguration.constants' import { useBackupsQuery } from 'data/database/backups-query' +import { useEnablePhysicalBackupsMutation } from 'data/database/enable-physical-backups-mutation' +import { ExternalLink } from 'lucide-react' // [Joshen] FYI this is purely for AWS only, need to update to support Fly eventually @@ -39,12 +41,33 @@ const DeployNewReplicaPanel = ({ const { ref: projectRef } = useParams() const project = useSelectedProject() const org = useSelectedOrganization() + const [refetchInterval, setRefetchInterval] = useState(false) const { data } = useReadReplicasQuery({ projectRef }) - const { data: backups } = useBackupsQuery({ projectRef }) + const { data: backups } = useBackupsQuery( + { projectRef }, + { + refetchInterval, + refetchOnWindowFocus: false, + onSuccess: (data) => { + if (data.walg_enabled) setRefetchInterval(false) + }, + } + ) const { data: addons, isSuccess } = useProjectAddonsQuery({ projectRef }) const { data: subscription } = useOrgSubscriptionQuery({ orgSlug: org?.slug }) + const { mutate: enablePhysicalBackups, isLoading: isEnabling } = useEnablePhysicalBackupsMutation( + { + onSuccess: () => { + toast.success( + 'Physical backups are currently being enabled, please check back in a few minutes!' + ) + setRefetchInterval(5000) + }, + } + ) + const { mutate: setUpReplica, isLoading: isSettingUp } = useReadReplicaSetUpMutation({ onSuccess: () => { const region = AVAILABLE_REPLICA_REGIONS.find((r) => r.key === selectedRegion)?.name @@ -128,37 +151,77 @@ const DeployNewReplicaPanel = ({ - Point in time recovery is required to deploy replicas + {refetchInterval !== false + ? 'Physical backups are currently being enabled' + : 'Physical backups are required to deploy replicas'} - {isFreePlan ? ( - - To enable PITR, you may first upgrade your organization's plan to at least Pro, then - purchase the PITR add on for your project via the{' '} - - project settings - - . - - ) : ( - - Enable the add-on in your project's settings first before deploying read replicas. + {refetchInterval === false && ( + + Physical backups are used under the hood to spin up read replicas for your project. )} - - + Enable physical backups + + + + )} + + )} + + {currentComputeAddon === undefined && ( + + + + Project required to at least be on a Small compute + + + + This is to ensure that read replicas can keep up with the primary databases' + activities. + +
    + + +
    )} @@ -253,9 +316,9 @@ const DeployNewReplicaPanel = ({ href="https://supabase.com/docs/guides/platform/org-based-billing#usage-based-billing-for-compute" target="_blank" rel="noreferrer" - className="underline" + className="underline hover:text-foreground transition" > - Usage-based billing + usage-based billing {' '} for compute.

    diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/DropAllReplicasConfirmationModal.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/DropAllReplicasConfirmationModal.tsx index 76e71c4117d..f3b973fc212 100644 --- a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/DropAllReplicasConfirmationModal.tsx +++ b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/DropAllReplicasConfirmationModal.tsx @@ -59,31 +59,24 @@ const DropAllReplicasConfirmationModal = ({ return ( onCancel()} - onSelectConfirm={() => onConfirmRemove()} + title="Confirm to drop all read replicas?" + confirmLabel="Drop all replicas" + confirmLabelLoading="Dropping all replicas" + onCancel={() => onCancel()} + onConfirm={() => onConfirmRemove()} + alert={{ + title: 'This action cannot be undone', + description: 'You may still deploy new replicas in this region thereafter', + }} > - - - - This action cannot be undone - - You may still deploy new replicas in this region thereafter - - -
    -

    Before deleting all replicas, consider:

    -
      -
    • Network traffic from this region may slow down
    • -
    -
    -
    +

    Before deleting all replicas, consider:

    +
      +
    • Network traffic from this region may slow down
    • +
    ) } diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/DropReplicaConfirmationModal.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/DropReplicaConfirmationModal.tsx index 50ea8ea2e21..096b5196991 100644 --- a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/DropReplicaConfirmationModal.tsx +++ b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/DropReplicaConfirmationModal.tsx @@ -43,34 +43,27 @@ const DropReplicaConfirmationModal = ({ return ( onCancel()} - onSelectConfirm={() => onConfirmRemove()} + title={`Confirm to drop selected replica? (ID: ${formattedId})`} + confirmLabel="Drop replica" + confirmLabelLoading="Dropping replica" + onCancel={() => onCancel()} + onConfirm={() => onConfirmRemove()} + alert={{ + title: 'This action cannot be undone', + description: 'You may still deploy a new replica in this region thereafter', + }} > - - - - This action cannot be undone - - You may still deploy a new replica in this region thereafter - - -
    -

    Before deleting this replica, consider:

    -
      -
    • - Network traffic from this region may slow down, especially if you have no other - replicas in this region -
    • -
    -
    -
    +

    Before deleting this replica, consider:

    +
      +
    • + Network traffic from this region may slow down, especially if you have no other replicas + in this region +
    • +
    ) } diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/InstanceConfiguration.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/InstanceConfiguration.tsx index cbe5fb1cf77..3d9d7be27be 100644 --- a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/InstanceConfiguration.tsx +++ b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/InstanceConfiguration.tsx @@ -285,24 +285,22 @@ const InstanceConfigurationUI = () => { {/* setSelectedReplicaToRestart(undefined)} - onSelectConfirm={() => onConfirmRestartReplica()} + title="Confirm to restart selected replica?" + confirmLabel="Restart replica" + confirmLabelLoading="Restarting replica" + onCancel={() => setSelectedReplicaToRestart(undefined)} + onConfirm={() => onConfirmRestartReplica()} > - -

    Before restarting the replica, consider:

    -
      -
    • - Network traffic from this region may slow down while the replica is restarting, - especially if you have no other replicas in this region -
    • -
    -

    - Are you sure you want to restart this replica (ID: {selectedReplicaToRestart?.id}) now?{' '} -

    -
    +

    Before restarting the replica, consider:

    +
      +
    • + Network traffic from this region may slow down while the replica is restarting, + especially if you have no other replicas in this region +
    • +
    +

    + Are you sure you want to restart this replica (ID: {selectedReplicaToRestart?.id}) now?{' '} +

    */} ) diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/InstanceNode.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/InstanceNode.tsx index 2272b91597c..df440d33c96 100644 --- a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/InstanceNode.tsx +++ b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/InstanceNode.tsx @@ -195,12 +195,12 @@ export const ReplicaNode = ({ data }: NodeProps) => { Replica {id.length > 0 && `(ID: ${formatDatabaseID(id)})`}

    {status === REPLICA_STATUS.ACTIVE_HEALTHY ? ( - Healthy + Healthy ) : status === REPLICA_STATUS.INIT_READ_REPLICA ? ( - Initializing + Initializing ) : status === REPLICA_STATUS.INIT_READ_REPLICA_FAILED ? ( <> - Init failed + Init failed @@ -211,11 +211,11 @@ export const ReplicaNode = ({ data }: NodeProps) => { ) : status === REPLICA_STATUS.COMING_UP ? ( - Coming up + Coming up ) : status === REPLICA_STATUS.RESTORING ? ( - Restoring + Restoring ) : ( - Unhealthy + Unhealthy )}
    diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/MapView.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/MapView.tsx index fb606996d5d..11c371bb4e1 100644 --- a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/MapView.tsx +++ b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/MapView.tsx @@ -258,11 +258,11 @@ const MapView = ({ onSelectDeployNewReplica, onSelectDropReplica }: MapViewProps `(ID: ${formatDatabaseID(database.identifier)})` }`} {database.status === PROJECT_STATUS.ACTIVE_HEALTHY ? ( - Healthy + Healthy ) : database.status === PROJECT_STATUS.COMING_UP ? ( - Coming up + Coming up ) : ( - Unhealthy + Unhealthy )}

    AWS • {database.size}

    diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx index 4fe696a9d87..50218409f95 100644 --- a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx +++ b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx @@ -174,7 +174,7 @@ const InfrastructureInfo = () => { isOnLatestVersion && ( - + Latest diff --git a/apps/studio/components/interfaces/Settings/Integrations/VercelIntegration/VercelIntegrationConnectionForm.tsx b/apps/studio/components/interfaces/Settings/Integrations/VercelIntegration/VercelIntegrationConnectionForm.tsx index 493d1bbf1be..d24d6f2ce8d 100644 --- a/apps/studio/components/interfaces/Settings/Integrations/VercelIntegration/VercelIntegrationConnectionForm.tsx +++ b/apps/studio/components/interfaces/Settings/Integrations/VercelIntegration/VercelIntegrationConnectionForm.tsx @@ -23,7 +23,6 @@ import type { IntegrationProjectConnection, } from 'data/integrations/integrations.types' import { useVercelConnectionUpdateMutation } from 'data/integrations/vercel-connection-update-mutate' -import { useFlag } from 'hooks' const VercelIntegrationConnectionForm = ({ connection, @@ -32,7 +31,6 @@ const VercelIntegrationConnectionForm = ({ connection: IntegrationProjectConnection integration: Integration }) => { - const enableVercelConnectionsConfig = useFlag('enableVercelConnectionsConfig') const config = connection.metadata.supabaseConfig const FormSchema = z.object({ @@ -61,11 +59,6 @@ const VercelIntegrationConnectionForm = ({ }) function onSubmit(data: z.infer) { - /** - * remove this hardcoded if statement when we are ready to enable this feature - */ - if (!enableVercelConnectionsConfig) return - const metadata = { ...connection.metadata, } @@ -101,10 +94,7 @@ const VercelIntegrationConnectionForm = ({
    - +
    {/* {isUpdatingVercelConnection && 'isUpdatingVercelConnection'} */}
    @@ -124,7 +114,6 @@ const VercelIntegrationConnectionForm = ({
    { field.onChange(e) @@ -151,7 +140,6 @@ const VercelIntegrationConnectionForm = ({
    { field.onChange(e) @@ -182,7 +170,6 @@ const VercelIntegrationConnectionForm = ({ { field.onChange(e) @@ -208,7 +195,6 @@ const VercelIntegrationConnectionForm = ({ { field.onChange(e) diff --git a/apps/studio/components/interfaces/Settings/Logs/Logs.SavedQueriesItem.tsx b/apps/studio/components/interfaces/Settings/Logs/Logs.SavedQueriesItem.tsx index 0b4fa8195c0..c72039b9996 100644 --- a/apps/studio/components/interfaces/Settings/Logs/Logs.SavedQueriesItem.tsx +++ b/apps/studio/components/interfaces/Settings/Logs/Logs.SavedQueriesItem.tsx @@ -132,20 +132,18 @@ const SavedQueriesItem = ({ item }: SavedQueriesItemProps) => { { + confirmLabel="Delete query" + title="Confirm to delete saved query" + onCancel={() => { setShowConfirmModal(false) }} - onSelectConfirm={onConfirmDelete} + onConfirm={onConfirmDelete} > - -

    - Are you sure you want to delete {item.name}? -

    -
    +

    + Are you sure you want to delete {item.name}? +

    } > - + {warnings.length} {warnings.length > 1 ? 'warnings' : 'warning'} diff --git a/apps/studio/components/interfaces/Settings/Vault/Keys/EncryptionKeysManagement.tsx b/apps/studio/components/interfaces/Settings/Vault/Keys/EncryptionKeysManagement.tsx index 1704d357e3b..23922a0d677 100644 --- a/apps/studio/components/interfaces/Settings/Vault/Keys/EncryptionKeysManagement.tsx +++ b/apps/studio/components/interfaces/Settings/Vault/Keys/EncryptionKeysManagement.tsx @@ -8,7 +8,6 @@ import toast from 'react-hot-toast' import { useParams } from 'common' import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext' -import Divider from 'components/ui/Divider' import { usePgSodiumKeyCreateMutation } from 'data/pg-sodium-keys/pg-sodium-key-create-mutation' import { usePgSodiumKeyDeleteMutation } from 'data/pg-sodium-keys/pg-sodium-key-delete-mutation' import { usePgSodiumKeysQuery } from 'data/pg-sodium-keys/pg-sodium-keys-query' @@ -26,6 +25,7 @@ import { Input, Listbox, Modal, + Separator, } from 'ui' const DEFAULT_KEY_NAME = 'No description provided' @@ -263,7 +263,7 @@ const EncryptionKeysManagement = () => { - {idx !== keys.length - 1 && } + {idx !== keys.length - 1 && } ) })} diff --git a/apps/studio/components/interfaces/Settings/Vault/Secrets/SecretsManagement.tsx b/apps/studio/components/interfaces/Settings/Vault/Secrets/SecretsManagement.tsx index 99ffbf7048f..886528736a3 100644 --- a/apps/studio/components/interfaces/Settings/Vault/Secrets/SecretsManagement.tsx +++ b/apps/studio/components/interfaces/Settings/Vault/Secrets/SecretsManagement.tsx @@ -6,11 +6,19 @@ import { Fragment, useEffect, useState } from 'react' import { useParams } from 'common' import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext' -import Divider from 'components/ui/Divider' import { useVaultSecretsQuery } from 'data/vault/vault-secrets-query' import { useCheckPermissions } from 'hooks' import type { VaultSecret } from 'types' -import { Button, IconExternalLink, IconLoader, IconSearch, IconX, Input, Listbox } from 'ui' +import { + Button, + IconExternalLink, + IconLoader, + IconSearch, + IconX, + Input, + Listbox, + Separator, +} from 'ui' import AddNewSecretModal from './AddNewSecretModal' import DeleteSecretModal from './DeleteSecretModal' import EditSecretModal from './EditSecretModal' @@ -172,7 +180,7 @@ const SecretsManagement = () => { onSelectEdit={setSelectedSecretToEdit} onSelectRemove={setSelectedSecretToRemove} /> - {idx !== secrets.length - 1 && } + {idx !== secrets.length - 1 && } ) })} diff --git a/apps/studio/components/interfaces/SignIn/PasswordConditionsHelper.tsx b/apps/studio/components/interfaces/SignIn/PasswordConditionsHelper.tsx index 00d6402a817..8e0c4cfbf86 100644 --- a/apps/studio/components/interfaces/SignIn/PasswordConditionsHelper.tsx +++ b/apps/studio/components/interfaces/SignIn/PasswordConditionsHelper.tsx @@ -15,7 +15,8 @@ const PasswordConditionsHelper = ({ password }: PasswordConditionsHelperProps) = - + + {password.length > 72 && } ) } diff --git a/apps/studio/components/interfaces/SignIn/SignInMfaForm.tsx b/apps/studio/components/interfaces/SignIn/SignInMfaForm.tsx index 3dd480112ef..b50a163975f 100644 --- a/apps/studio/components/interfaces/SignIn/SignInMfaForm.tsx +++ b/apps/studio/components/interfaces/SignIn/SignInMfaForm.tsx @@ -1,4 +1,4 @@ -import type { AuthError } from '@supabase/gotrue-js' +import type { AuthError } from '@supabase/auth-js' import type { Factor } from '@supabase/supabase-js' import { useQueryClient } from '@tanstack/react-query' import Link from 'next/link' diff --git a/apps/studio/components/interfaces/Support/Success.tsx b/apps/studio/components/interfaces/Support/Success.tsx index a654305183e..b58b409c17f 100644 --- a/apps/studio/components/interfaces/Support/Success.tsx +++ b/apps/studio/components/interfaces/Support/Success.tsx @@ -1,8 +1,7 @@ import Link from 'next/link' import { useState } from 'react' -import { Button, IconCheck, IconExternalLink, IconMail, IconSearch, Input } from 'ui' +import { Button, IconCheck, IconExternalLink, IconMail, IconSearch, Input, Separator } from 'ui' -import Divider from 'components/ui/Divider' import { CATEGORY_OPTIONS } from './Support.constants' import { useProfile } from 'lib/profile' @@ -36,7 +35,7 @@ const Success = ({ sentCategory = '' }: SuccessProps) => { {categoriesToShowAdditionalResources.includes(sentCategory) && ( <>
    - +

    In the meantime, tap into our community

    @@ -72,7 +71,7 @@ const Success = ({ sentCategory = '' }: SuccessProps) => { )}
    - +
    diff --git a/apps/studio/components/interfaces/Support/SupportForm.tsx b/apps/studio/components/interfaces/Support/SupportForm.tsx index 11eb7c4e590..d2abdeff670 100644 --- a/apps/studio/components/interfaces/Support/SupportForm.tsx +++ b/apps/studio/components/interfaces/Support/SupportForm.tsx @@ -6,7 +6,6 @@ import { ChangeEvent, useEffect, useRef, useState } from 'react' import toast from 'react-hot-toast' import { useParams } from 'common' -import Divider from 'components/ui/Divider' import InformationBox from 'components/ui/InformationBox' import ShimmeringLoader from 'components/ui/ShimmeringLoader' import { getProjectAuthConfig } from 'data/auth/auth-config-query' @@ -34,6 +33,7 @@ import { IconX, Input, Listbox, + Separator, } from 'ui' import MultiSelect from 'ui-patterns/MultiSelect' import DisabledStateForFreeTier from './DisabledStateForFreeTier' @@ -532,7 +532,7 @@ const SupportForm = ({ setSentCategory }: SupportFormProps) => {
    )} - + {!isDisabled ? ( <> diff --git a/apps/studio/components/interfaces/TableGridEditor/DeleteConfirmationDialogs.tsx b/apps/studio/components/interfaces/TableGridEditor/DeleteConfirmationDialogs.tsx index 1fae2696aaf..a76fd8a4bf6 100644 --- a/apps/studio/components/interfaces/TableGridEditor/DeleteConfirmationDialogs.tsx +++ b/apps/studio/components/interfaces/TableGridEditor/DeleteConfirmationDialogs.tsx @@ -1,6 +1,15 @@ import Link from 'next/link' import toast from 'react-hot-toast' -import { Alert, Button, Checkbox, IconExternalLink, Modal } from 'ui' +import { + Alert, + AlertDescription_Shadcn_, + AlertTitle_Shadcn_, + Alert_Shadcn_, + Button, + Checkbox, + IconExternalLink, + Modal, +} from 'ui' import type { SupaRow } from 'components/grid' import { formatFilterURLParams } from 'components/grid/SupabaseGrid.utils' @@ -19,16 +28,12 @@ import { useGetImpersonatedRole } from 'state/role-impersonation-state' import { useTableEditorStateSnapshot } from 'state/table-editor' export type DeleteConfirmationDialogsProps = { - projectRef?: string selectedTable?: TableLike - includeColumns?: boolean onAfterDeleteTable?: (tables: TableLike[]) => void } const DeleteConfirmationDialogs = ({ - projectRef, selectedTable, - includeColumns = false, onAfterDeleteTable = noop, }: DeleteConfirmationDialogsProps) => { const { project } = useProjectContext() @@ -152,6 +157,7 @@ const DeleteConfirmationDialogs = ({ const onConfirmDeleteColumn = async () => { if (!(snap.confirmationDialog?.type === 'column')) return + if (project === undefined) return const selectedColumnToDelete = snap.confirmationDialog.column if (selectedColumnToDelete === undefined) return @@ -159,7 +165,7 @@ const DeleteConfirmationDialogs = ({ deleteColumn({ id: selectedColumnToDelete.id, cascade: isDeleteWithCascade, - projectRef: projectRef!, + projectRef: project.ref, connectionString: project?.connectionString, table: selectedTable, }) @@ -223,40 +229,39 @@ const DeleteConfirmationDialogs = ({ return ( <> { + confirmLabel="Delete" + confirmLabelLoading="Deleting" + onCancel={() => { snap.closeConfirmationDialog() }} - onSelectConfirm={onConfirmDeleteColumn} + onConfirm={onConfirmDeleteColumn} > - -
    -

    - Are you sure you want to delete the selected column? This action cannot be undone. -

    - snap.toggleConfirmationIsWithCascade()} - /> - {isDeleteWithCascade && ( - -

    - All dependent objects will be removed, as will any objects that depend on them, - recursively. -

    +
    +

    + Are you sure you want to delete the selected column? This action cannot be undone. +

    + snap.toggleConfirmationIsWithCascade()} + /> + {isDeleteWithCascade && ( + + + All dependent objects will be removed, as will any objects that depend on them, + recursively. + + - - )} -
    - + + + )} +
    {`Confirm deletion of table "${selectedTable?.name}"`} } - buttonLabel="Delete" - buttonLoadingLabel="Deleting" - onSelectCancel={() => { + confirmLabel="Delete" + confirmLabelLoading="Deleting" + onCancel={() => { snap.closeConfirmationDialog() }} - onSelectConfirm={onConfirmDeleteTable} + onConfirm={onConfirmDeleteTable} > - -
    -

    - Are you sure you want to delete the selected table? This action cannot be undone. -

    - snap.toggleConfirmationIsWithCascade(!isDeleteWithCascade)} - /> - {isDeleteWithCascade && ( - -

    - All dependent objects will be removed, as will any objects that depend on them, - recursively. -

    - -
    - )} -
    -
    +
    +

    + Are you sure you want to delete the selected table? This action cannot be undone. +

    + snap.toggleConfirmationIsWithCascade(!isDeleteWithCascade)} + /> + {isDeleteWithCascade && ( + +

    + All dependent objects will be removed, as will any objects that depend on them, + recursively. +

    + +
    + )} +
    Confirm to delete the selected row{numRows > 1 && 's'} } - buttonLabel="Delete" - buttonLoadingLabel="Deleting" - onSelectCancel={() => snap.closeConfirmationDialog()} - onSelectConfirm={() => onConfirmDeleteRow()} + confirmLabel="Delete" + confirmLabelLoading="Deleting" + onCancel={() => snap.closeConfirmationDialog()} + onConfirm={() => onConfirmDeleteRow()} > - -
    -

    - Are you sure you want to delete {isAllRowsSelected ? 'all' : 'the selected'}{' '} - {numRows > 1 && `${numRows} `}row - {numRows > 1 && 's'}? This action cannot be undone. -

    -
    -
    +
    +

    + Are you sure you want to delete {isAllRowsSelected ? 'all' : 'the selected'}{' '} + {numRows > 1 && `${numRows} `}row + {numRows > 1 && 's'}? This action cannot be undone. +

    +
    ) diff --git a/apps/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx b/apps/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx index c7bbabce030..c9564ac693f 100644 --- a/apps/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx +++ b/apps/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx @@ -6,17 +6,18 @@ import { Lock, MousePointer2, PlusCircle } from 'lucide-react' import Link from 'next/link' import { useState } from 'react' import toast from 'react-hot-toast' -import { Button, Modal, PopoverContent_Shadcn_, PopoverTrigger_Shadcn_, Popover_Shadcn_ } from 'ui' +import { Button, PopoverContent_Shadcn_, PopoverTrigger_Shadcn_, Popover_Shadcn_ } from 'ui' import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext' import APIDocsButton from 'components/ui/APIDocsButton' -import ConfirmationModal from 'ui-patterns/Dialogs/ConfirmationModal' -import ConfirmModal from 'ui-patterns/Dialogs/ConfirmDialog' import { useDatabasePoliciesQuery } from 'data/database-policies/database-policies-query' import { useDatabasePublicationsQuery } from 'data/database-publications/database-publications-query' import { useDatabasePublicationUpdateMutation } from 'data/database-publications/database-publications-update-mutation' import { useTableUpdateMutation } from 'data/tables/table-update-mutation' import { useCheckPermissions, useIsFeatureEnabled } from 'hooks' +import { EXCLUDED_SCHEMAS } from 'lib/constants/schemas' +import ConfirmModal from 'ui-patterns/Dialogs/ConfirmDialog' +import ConfirmationModal from 'ui-patterns/Dialogs/ConfirmationModal' import { RoleImpersonationPopover } from '../RoleImpersonationSelector' export interface GridHeaderActionsProps { @@ -30,6 +31,7 @@ const GridHeaderActions = ({ table, isViewSelected, isTableSelected }: GridHeade const { ref } = useParams() const { project } = useProjectContext() const realtimeEnabled = useIsFeatureEnabled('realtime:all') + const isLocked = EXCLUDED_SCHEMAS.includes(table.schema) const { mutate: updateTable } = useTableUpdateMutation({ onError: (error) => { @@ -149,7 +151,7 @@ const GridHeaderActions = ({ table, isViewSelected, isTableSelected }: GridHeade {isTableSelected ? ( table.rls_enabled ? ( <> - {policies.length < 1 ? ( + {policies.length < 1 && !isLocked ? ( @@ -215,9 +220,9 @@ const GridHeaderActions = ({ table, isViewSelected, isTableSelected }: GridHeade

    - Row Level Security (RLS) + Row Level Security (RLS)

    -
    +

    You can restrict and control who can read, write and update data in this table using Row Level Security. @@ -226,14 +231,16 @@ const GridHeaderActions = ({ table, isViewSelected, isTableSelected }: GridHeade With RLS enabled, anonymous users will not be able to read/write data in the table.

    -
    - -
    + {!isLocked && ( +
    + +
    + )}
    @@ -263,13 +270,13 @@ const GridHeaderActions = ({ table, isViewSelected, isTableSelected }: GridHeade setShowEnableRealtime(false)} - onSelectConfirm={() => toggleRealtime()} + title={`${isRealtimeEnabled ? 'Disable' : 'Enable'} realtime for ${table.name}`} + confirmLabel={`${isRealtimeEnabled ? 'Disable' : 'Enable'} realtime`} + confirmLabelLoading={`${isRealtimeEnabled ? 'Disabling' : 'Enabling'} realtime`} + onCancel={() => setShowEnableRealtime(false)} + onConfirm={() => toggleRealtime()} > - +

    Once realtime has been {isRealtimeEnabled ? 'disabled' : 'enabled'}, the table will{' '} {isRealtimeEnabled ? 'no longer ' : ''}broadcast any changes to authorized subscribers. @@ -277,13 +284,13 @@ const GridHeaderActions = ({ table, isViewSelected, isTableSelected }: GridHeade {!isRealtimeEnabled && (

    You may also select which events to broadcast to subscribers on the{' '} - - database replication + + database publications {' '} settings.

    )} - +
    { } return ( -
    +
    { resetBreadcrumbs={resetBreadcrumbs} />
    -
    +
    diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.utils.ts b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.utils.ts index 55e83c2a5d0..647ba32d1e8 100644 --- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.utils.ts +++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.utils.ts @@ -86,7 +86,6 @@ const parseValue = (originalValue: any, format: string) => { try { if ( originalValue === null || - (Array.isArray(originalValue) && originalValue.length === 0) || (typeof originalValue === 'string' && originalValue.length === 0) ) { return originalValue diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/TextEditor.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/TextEditor.tsx index 0fc87addb3e..5e0c20ea30b 100644 --- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/TextEditor.tsx +++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/TextEditor.tsx @@ -53,7 +53,7 @@ export const TextEditor = ({
    diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.constants.ts b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.constants.ts index a57859a09a9..971c016b150 100644 --- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.constants.ts +++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.constants.ts @@ -18,7 +18,7 @@ export const DATE_TYPES = ['date'] export const TIME_TYPES = ['time', 'timetz'] export const DATETIME_TYPES = concat(TIMESTAMP_TYPES, DATE_TYPES, TIME_TYPES) -const OTHER_DATA_TYPES = ['uuid', 'bool', 'vector'] +export const OTHER_DATA_TYPES = ['uuid', 'bool', 'vector'] export const POSTGRES_DATA_TYPES = sortBy( concat(NUMERICAL_TYPES, JSON_TYPES, TEXT_TYPES, DATETIME_TYPES, OTHER_DATA_TYPES) ) diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.tsx index bbac0394d9f..97cb7db0674 100644 --- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.tsx +++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.tsx @@ -642,21 +642,19 @@ const SidePanelEditor = ({ /> setIsClosingPanel(false)} - onSelectConfirm={() => { + title="Discard changes" + confirmLabel="Discard" + onCancel={() => setIsClosingPanel(false)} + onConfirm={() => { setIsClosingPanel(false) setIsEdited(false) snap.closeSidePanel() }} > - -

    - There are unsaved changes. Are you sure you want to close the panel? Your changes will - be lost. -

    -
    +

    + There are unsaved changes. Are you sure you want to close the panel? Your changes will be + lost. +

    ) diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.utils.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.utils.tsx index 49ea8ba7f10..52550161d1e 100644 --- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.utils.tsx +++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.utils.tsx @@ -858,7 +858,7 @@ export const insertRowsViaSpreadsheet = async ( formattedRow[header] = tryParseJson(row[header]) } else if (row[header] === '') { // if the cell is empty string, convert it to NULL - formattedRow[header] = null + formattedRow[header] = column?.is_nullable ? null : '' } else { formattedRow[header] = row[header] } @@ -907,6 +907,8 @@ export const insertTableRows = async ( const column = table.columns?.find((c) => c.name === header) if ((column?.data_type ?? '') === 'ARRAY' || (column?.format ?? '').includes('json')) { formattedRow[header] = tryParseJson(row[header]) + } else if (row[header] === '') { + formattedRow[header] = column?.is_nullable ? null : '' } else { formattedRow[header] = row[header] } diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImportPreview.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImportPreview.tsx index e9c0c638637..e275feb3196 100644 --- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImportPreview.tsx +++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImportPreview.tsx @@ -63,8 +63,8 @@ const SpreadsheetImportPreview = ({

    Preview data to be imported

    - {!isCompatible && Data incompatible} - {errors.length > 0 && {errors.length} issues found} + {!isCompatible && Data incompatible} + {errors.length > 0 && {errors.length} issues found}
    - +
    {children}
    diff --git a/apps/studio/components/layouts/AccountLayout/AccountLayout.tsx b/apps/studio/components/layouts/AccountLayout/AccountLayout.tsx index 9ff40c78187..58df7e7a6ee 100644 --- a/apps/studio/components/layouts/AccountLayout/AccountLayout.tsx +++ b/apps/studio/components/layouts/AccountLayout/AccountLayout.tsx @@ -1,6 +1,6 @@ import Head from 'next/head' import { useRouter } from 'next/router' -import { PropsWithChildren } from 'react' +import { PropsWithChildren, useEffect } from 'react' import { useOrganizationsQuery } from 'data/organizations/organizations-query' import { useFlag, useSelectedOrganization, withAuth } from 'hooks' @@ -31,6 +31,12 @@ const AccountLayout = ({ children, title, breadcrumbs }: PropsWithChildren { + if (!IS_PLATFORM) { + router.push('/project/default') + } + }, [router]) + const organizationsLinks = (organizations ?? []) .map((organization) => ({ isActive: diff --git a/apps/studio/components/layouts/AccountLayout/WithSidebar.tsx b/apps/studio/components/layouts/AccountLayout/WithSidebar.tsx index 2a308c682cd..a418d090ba4 100644 --- a/apps/studio/components/layouts/AccountLayout/WithSidebar.tsx +++ b/apps/studio/components/layouts/AccountLayout/WithSidebar.tsx @@ -98,7 +98,7 @@ const SectionWithHeaders = ({ section, subitems, subitemsParentKey }: SectionWit {section.heading && } {section.versionLabel && (
    - {section.versionLabel} + {section.versionLabel}
    )} { diff --git a/apps/studio/components/layouts/AppLayout/BranchDropdown.tsx b/apps/studio/components/layouts/AppLayout/BranchDropdown.tsx index 17f9a772ba0..03fbc79e652 100644 --- a/apps/studio/components/layouts/AppLayout/BranchDropdown.tsx +++ b/apps/studio/components/layouts/AppLayout/BranchDropdown.tsx @@ -107,9 +107,9 @@ const BranchDropdown = ({ isNewNav = false }: BranchDropdownProps) => {

    {selectedBranch?.name}

    {selectedBranch?.is_default ? ( - Production + Production ) : ( - Preview Branch + Preview Branch )}
    diff --git a/apps/studio/components/layouts/AppLayout/EnableBranchingButton/BranchingWaitListPopover.tsx b/apps/studio/components/layouts/AppLayout/EnableBranchingButton/BranchingWaitListPopover.tsx index c0b5387905b..1c906eecb1e 100644 --- a/apps/studio/components/layouts/AppLayout/EnableBranchingButton/BranchingWaitListPopover.tsx +++ b/apps/studio/components/layouts/AppLayout/EnableBranchingButton/BranchingWaitListPopover.tsx @@ -26,7 +26,7 @@ const BranchingWaitListPopover = ({ isNewNav = false }: BranchingWaitListPopover
    - Alpha Testing + Alpha Testing
    diff --git a/apps/studio/components/layouts/AppLayout/EnableBranchingButton/GithubRepositorySelection.tsx b/apps/studio/components/layouts/AppLayout/EnableBranchingButton/GithubRepositorySelection.tsx index dfd40edd4f6..3f0172a0298 100644 --- a/apps/studio/components/layouts/AppLayout/EnableBranchingButton/GithubRepositorySelection.tsx +++ b/apps/studio/components/layouts/AppLayout/EnableBranchingButton/GithubRepositorySelection.tsx @@ -47,7 +47,7 @@ const GithubRepositorySelection = ({

    Git Connection

    - Required + Required

    {githubConnection !== undefined diff --git a/apps/studio/components/layouts/AppLayout/IncidentBanner.tsx b/apps/studio/components/layouts/AppLayout/IncidentBanner.tsx index 9b661f3c384..d2fd5030540 100644 --- a/apps/studio/components/layouts/AppLayout/IncidentBanner.tsx +++ b/apps/studio/components/layouts/AppLayout/IncidentBanner.tsx @@ -1,5 +1,5 @@ +import { ExternalLink } from 'lucide-react' import Link from 'next/link' -import { IconExternalLink } from 'ui' const IncidentBanner = () => { return ( @@ -8,7 +8,7 @@ const IncidentBanner = () => {

    We are currently investigating a technical issue, follow status.supabase.com for updates

    - +
    ) diff --git a/apps/studio/components/layouts/AppLayout/NoticeBanner.tsx b/apps/studio/components/layouts/AppLayout/NoticeBanner.tsx index 679a75318a5..ca5b12fe04f 100644 --- a/apps/studio/components/layouts/AppLayout/NoticeBanner.tsx +++ b/apps/studio/components/layouts/AppLayout/NoticeBanner.tsx @@ -1,11 +1,12 @@ import { useSupabaseClient } from '@supabase/auth-helpers-react' import { useQuery } from '@tanstack/react-query' +import { ExternalLink } from 'lucide-react' import { useRouter } from 'next/router' -import { useParams } from 'common' +import { useParams } from 'common' import { useAppBannerContext } from 'components/interfaces/App/AppBannerWrapperContext' import { useProfile } from 'lib/profile' -import { Button, IconExternalLink } from 'ui' +import { Button } from 'ui' // [Joshen] For this notice specifically, just FYI // 1 month after 26th Jan we'll need to add some contextual information about this deprecation @@ -96,7 +97,7 @@ export const NoticeBanner = () => { 'We are migrating our infrastructure from IPv4 to IPv6. Please migrate now. You can ignore this warning if you have already migrated.'}

    diff --git a/apps/studio/components/layouts/AppLayout/RestrictionBanner.tsx b/apps/studio/components/layouts/AppLayout/RestrictionBanner.tsx new file mode 100644 index 00000000000..47884e803fe --- /dev/null +++ b/apps/studio/components/layouts/AppLayout/RestrictionBanner.tsx @@ -0,0 +1,40 @@ +import dayjs from 'dayjs' +import Link from 'next/link' + +import { useOrganizationsQuery } from 'data/organizations/organizations-query' +import { useSelectedProject } from 'hooks' +import { AlertTitle_Shadcn_, Alert_Shadcn_, Button } from 'ui' +import { CriticalIcon, WarningIcon } from 'ui-patterns/Icons/StatusIcons' + +/** + * Shown on projects in organization which are above their qouta + */ +export const RestrictrionBanner = () => { + const project = useSelectedProject() + const { data } = useOrganizationsQuery() + const currentOrg = data?.find((org) => org.id === project?.organization_id) + + if (!currentOrg?.restriction_status) return null + + return ( + + + {currentOrg.restriction_status === 'restricted' ? : } + + {currentOrg.restriction_status === 'grace_period' && + `Your organization has exceeded its quota. You are given a grace period until ${dayjs(currentOrg.restriction_data['grace_period_end']).format('DD MMM, YYYY')}`} + {currentOrg.restriction_status === 'grace_period_over' && + `Your grace period is over and your project will not be able to serve requests when you used up your quota.`} + {currentOrg.restriction_status === 'restricted' && + 'Your project is unable to serve any requests as your organization has used up its quota.'} + + + + + ) +} diff --git a/apps/studio/components/layouts/AuthLayout/AuthLayout.tsx b/apps/studio/components/layouts/AuthLayout/AuthLayout.tsx index 8c05659a12b..888cd787cfd 100644 --- a/apps/studio/components/layouts/AuthLayout/AuthLayout.tsx +++ b/apps/studio/components/layouts/AuthLayout/AuthLayout.tsx @@ -6,6 +6,8 @@ import { useIsColumnLevelPrivilegesEnabled } from 'components/interfaces/App/Fea import { ProductMenu } from 'components/ui/ProductMenu' import { useAuthConfigPrefetch } from 'data/auth/auth-config-query' import { withAuth } from 'hooks' +import Link from 'next/link' +import { AlertDescription_Shadcn_, AlertTitle_Shadcn_, Alert_Shadcn_, Button } from 'ui' import { ProjectLayout } from '../' import { generateAuthMenu } from './AuthLayout.utils' @@ -13,7 +15,7 @@ export interface AuthLayoutProps { title?: string } -const AuthLayout = ({ title, children }: PropsWithChildren) => { +const AuthProductMenu = () => { const { ref: projectRef = 'default' } = useParams() const columnLevelPrivileges = useIsColumnLevelPrivilegesEnabled() @@ -22,16 +24,36 @@ const AuthLayout = ({ title, children }: PropsWithChildren) => const router = useRouter() const page = router.pathname.split('/')[4] + return ( + <> + + {columnLevelPrivileges && ( +
    + + + Column Privileges has been shifted + + +

    It can now be found in the menu under the database section.

    + +
    +
    +
    + )} + + ) +} + +const AuthLayout = ({ title, children }: PropsWithChildren) => { return ( - } + productMenu={} isBlocking={false} >
    diff --git a/apps/studio/components/layouts/AuthLayout/AuthLayout.utils.ts b/apps/studio/components/layouts/AuthLayout/AuthLayout.utils.ts index bbdf9edad7e..731fba6a04a 100644 --- a/apps/studio/components/layouts/AuthLayout/AuthLayout.utils.ts +++ b/apps/studio/components/layouts/AuthLayout/AuthLayout.utils.ts @@ -1,10 +1,7 @@ import type { ProductMenuGroup } from 'components/ui/ProductMenu/ProductMenu.types' import { IS_PLATFORM } from 'lib/constants' -export const generateAuthMenu = ( - ref: string, - options: { columnLevelPrivileges?: boolean } = {} -): ProductMenuGroup[] => { +export const generateAuthMenu = (ref: string): ProductMenuGroup[] => { return [ { title: 'Manage', @@ -19,17 +16,6 @@ export const generateAuthMenu = ( url: `/project/${ref}/auth/policies`, items: [], }, - ...(options?.columnLevelPrivileges - ? [ - { - name: 'Column Privileges', - key: 'column-privileges', - url: `/project/${ref}/auth/column-privileges`, - items: [], - label: 'ALPHA', - }, - ] - : []), ...(IS_PLATFORM ? [ { diff --git a/apps/studio/components/layouts/DatabaseLayout/DatabaseLayout.tsx b/apps/studio/components/layouts/DatabaseLayout/DatabaseLayout.tsx index 735ebbaba78..019e7932833 100644 --- a/apps/studio/components/layouts/DatabaseLayout/DatabaseLayout.tsx +++ b/apps/studio/components/layouts/DatabaseLayout/DatabaseLayout.tsx @@ -1,10 +1,13 @@ import { useRouter } from 'next/router' import { PropsWithChildren } from 'react' +import { useIsColumnLevelPrivilegesEnabled } from 'components/interfaces/App/FeaturePreview/FeaturePreviewContext' import { ProductMenu } from 'components/ui/ProductMenu' import { useDatabaseExtensionsQuery } from 'data/database-extensions/database-extensions-query' import { useProjectAddonsQuery } from 'data/subscriptions/project-addons-query' import { useSelectedProject, withAuth } from 'hooks' +import Link from 'next/link' +import { AlertDescription_Shadcn_, AlertTitle_Shadcn_, Alert_Shadcn_ } from 'ui' import { ProjectLayout } from '../' import { generateDatabaseMenu } from './DatabaseMenu.utils' @@ -12,7 +15,7 @@ export interface DatabaseLayoutProps { title?: string } -const DatabaseLayout = ({ children }: PropsWithChildren) => { +const DatabaseProductMenu = () => { const project = useSelectedProject() const router = useRouter() @@ -26,18 +29,40 @@ const DatabaseLayout = ({ children }: PropsWithChildren) => const pgNetExtensionExists = (data ?? []).find((ext) => ext.name === 'pg_net') !== undefined const pitrEnabled = addons?.selected_addons.find((addon) => addon.type === 'pitr') !== undefined + const columnLevelPrivileges = useIsColumnLevelPrivilegesEnabled() return ( - - } - isBlocking={false} - > + <> + +
    + + + Replication section has been renamed + + +

    + It can be now found under{' '} + + Publications + +

    +
    +
    +
    + + ) +} + +const DatabaseLayout = ({ children }: PropsWithChildren) => { + return ( + } isBlocking={false}>
    {children}
    diff --git a/apps/studio/components/layouts/DatabaseLayout/DatabaseMenu.utils.ts b/apps/studio/components/layouts/DatabaseLayout/DatabaseMenu.utils.tsx similarity index 59% rename from apps/studio/components/layouts/DatabaseLayout/DatabaseMenu.utils.ts rename to apps/studio/components/layouts/DatabaseLayout/DatabaseMenu.utils.tsx index 4f6f6f81c07..b967be91515 100644 --- a/apps/studio/components/layouts/DatabaseLayout/DatabaseMenu.utils.ts +++ b/apps/studio/components/layouts/DatabaseLayout/DatabaseMenu.utils.tsx @@ -1,23 +1,28 @@ import type { ProductMenuGroup } from 'components/ui/ProductMenu/ProductMenu.types' import type { Project } from 'data/projects/project-detail-query' import { IS_PLATFORM } from 'lib/constants' +import { ArrowUpRight } from 'lucide-react' export const generateDatabaseMenu = ( project?: Project, - flags?: { pgNetExtensionExists: boolean; pitrEnabled: boolean } + flags?: { + pgNetExtensionExists: boolean + pitrEnabled: boolean + columnLevelPrivileges: boolean + } ): ProductMenuGroup[] => { const ref = project?.ref ?? 'default' - const { pgNetExtensionExists, pitrEnabled } = flags || {} + const { pgNetExtensionExists, pitrEnabled, columnLevelPrivileges } = flags || {} return [ { - title: 'Database', + title: 'Database Management', items: [ { name: 'Tables', key: 'tables', url: `/project/${ref}/database/tables`, items: [] }, { - name: 'Schema Visualizer', - key: 'schemas', - url: `/project/${ref}/database/schemas`, + name: 'Functions', + key: 'functions', + url: `/project/${ref}/database/functions`, items: [], }, { @@ -27,9 +32,10 @@ export const generateDatabaseMenu = ( items: [], }, { - name: 'Functions', - key: 'functions', - url: `/project/${ref}/database/functions`, + name: 'Enumerated Types', + key: 'types', + url: `/project/${ref}/database/types`, + items: [], }, { @@ -38,29 +44,47 @@ export const generateDatabaseMenu = ( url: `/project/${ref}/database/extensions`, items: [], }, - { name: 'Roles', key: 'roles', url: `/project/${ref}/database/roles`, items: [] }, { - name: 'Replication', - key: 'replication', - url: `/project/${ref}/database/replication`, + name: 'Indexes', + key: 'indexes', + url: `/project/${ref}/database/indexes`, items: [], }, - ...(!!pgNetExtensionExists + { + name: 'Publications', + key: 'publications', + url: `/project/${ref}/database/publications`, + items: [], + }, + ], + }, + { + title: 'Access Control', + items: [ + { name: 'Roles', key: 'roles', url: `/project/${ref}/database/roles`, items: [] }, + ...(columnLevelPrivileges ? [ { - name: 'Webhooks', - key: 'hooks', - url: `/project/${ref}/database/hooks`, + name: 'Column Privileges', + key: 'column-privileges', + url: `/project/${ref}/database/column-privileges`, items: [], + label: 'ALPHA', }, ] : []), { - name: 'Wrappers', - key: 'wrappers', - url: `/project/${ref}/database/wrappers`, + name: 'Policies', + key: 'policies', + url: `/project/${ref}/auth/policies`, + rightIcon: , items: [], }, + ], + }, + { + title: 'Platform', + items: [ ...(IS_PLATFORM ? [ { @@ -73,22 +97,55 @@ export const generateDatabaseMenu = ( }, ] : []), + { + name: 'Wrappers', + key: 'wrappers', + url: `/project/${ref}/database/wrappers`, + items: [], + }, { name: 'Migrations', key: 'migrations', url: `/project/${ref}/database/migrations`, items: [], }, + ...(!!pgNetExtensionExists + ? [ + { + name: 'Webhooks', + key: 'hooks', + url: `/project/${ref}/database/hooks`, + items: [], + }, + ] + : []), + ], + }, + { + title: 'Tools', + items: [ { - name: 'Indexes', - key: 'indexes', - url: `/project/${ref}/database/indexes`, + name: 'Schema Visualizer', + key: 'schemas', + url: `/project/${ref}/database/schemas`, items: [], }, { - name: 'Enumerated Types', - key: 'types', - url: `/project/${ref}/database/types`, + name: 'Query Performance', + key: 'query-performance', + url: `/project/${ref}/database/query-performance`, + items: [], + }, + { + name: 'Security Advisor', + key: 'security-advisor', + url: `/project/${ref}/database/security-advisor`, + items: [], + }, + { + name: 'Performance Advisor', + key: 'performance-advisor', + url: `/project/${ref}/database/performance-advisor`, items: [], }, ], diff --git a/apps/studio/components/layouts/IntegrationsLayout/GitHubIntegrationWindowLayout.tsx b/apps/studio/components/layouts/IntegrationsLayout/GitHubIntegrationWindowLayout.tsx deleted file mode 100644 index f08a6ca6c0e..00000000000 --- a/apps/studio/components/layouts/IntegrationsLayout/GitHubIntegrationWindowLayout.tsx +++ /dev/null @@ -1,24 +0,0 @@ -import { PropsWithChildren } from 'react' - -import { BASE_PATH } from 'lib/constants' -import IntegrationWindowLayout from './IntegrationWindowLayout' - -const GITHUB_ICON = ( -
    - GitHub Icon -
    -) - -const GitHubIntegrationWindowLayout = ({ children }: PropsWithChildren<{}>) => { - return ( - - {children} - - ) -} - -export default GitHubIntegrationWindowLayout diff --git a/apps/studio/components/layouts/IntegrationsLayout/VercelIntegrationWindowLayout.tsx b/apps/studio/components/layouts/IntegrationsLayout/VercelIntegrationWindowLayout.tsx index 53e287a291a..9f272918926 100644 --- a/apps/studio/components/layouts/IntegrationsLayout/VercelIntegrationWindowLayout.tsx +++ b/apps/studio/components/layouts/IntegrationsLayout/VercelIntegrationWindowLayout.tsx @@ -1,4 +1,5 @@ import { PropsWithChildren } from 'react' +import InlineSVG from 'react-inlinesvg' import { useParams } from 'common' import { BASE_PATH } from 'lib/constants' @@ -6,8 +7,8 @@ import IntegrationWindowLayout from './IntegrationWindowLayout' import { useIntegrationInstallationSnapshot } from 'state/integration-installation' const VERCEL_ICON = ( -
    - Vercel Icon +
    +
    ) diff --git a/apps/studio/components/layouts/OrganizationLayout.tsx b/apps/studio/components/layouts/OrganizationLayout.tsx index 7e18c7a7df7..c0f60b76f7b 100644 --- a/apps/studio/components/layouts/OrganizationLayout.tsx +++ b/apps/studio/components/layouts/OrganizationLayout.tsx @@ -8,13 +8,17 @@ import { AccountLayout } from './' import { ScaffoldContainer, ScaffoldDivider, ScaffoldHeader, ScaffoldTitle } from './Scaffold' import SettingsLayout from './SettingsLayout/SettingsLayout' import Link from 'next/link' +import { useOrgSubscriptionQuery } from '../../data/subscriptions/org-subscription-query' const OrganizationLayout = ({ children }: PropsWithChildren<{}>) => { const selectedOrganization = useSelectedOrganization() const router = useRouter() const { slug } = useParams() - const invoicesEnabled = useIsFeatureEnabled('billing:invoices') + const invoicesEnabledOnProfileLevel = useIsFeatureEnabled('billing:invoices') + const { data: subscription } = useOrgSubscriptionQuery({ orgSlug: slug }) + const isNotOrgWithPartnerBilling = !subscription?.billing_via_partner ?? true + const invoicesEnabled = invoicesEnabledOnProfileLevel && isNotOrgWithPartnerBilling const navLayoutV2 = useFlag('navigationLayoutV2') diff --git a/apps/studio/components/layouts/ProjectLayout/BuildingState.tsx b/apps/studio/components/layouts/ProjectLayout/BuildingState.tsx index b139e9a5d34..d80e19dd831 100644 --- a/apps/studio/components/layouts/ProjectLayout/BuildingState.tsx +++ b/apps/studio/components/layouts/ProjectLayout/BuildingState.tsx @@ -54,7 +54,7 @@ const BuildingState = () => {

    {project?.name}

    - +
    diff --git a/apps/studio/components/layouts/ProjectLayout/ConnectingState.tsx b/apps/studio/components/layouts/ProjectLayout/ConnectingState.tsx index e6a81cbf9fa..66405e469eb 100644 --- a/apps/studio/components/layouts/ProjectLayout/ConnectingState.tsx +++ b/apps/studio/components/layouts/ProjectLayout/ConnectingState.tsx @@ -45,7 +45,7 @@ const ConnectingState = ({ project }: ConnectingStateProps) => {

    {project.name}

    - +
    Connecting to project diff --git a/apps/studio/components/layouts/ProjectLayout/LayoutHeader/LayoutHeader.tsx b/apps/studio/components/layouts/ProjectLayout/LayoutHeader/LayoutHeader.tsx index 4b601acbf6a..d2a80118c41 100644 --- a/apps/studio/components/layouts/ProjectLayout/LayoutHeader/LayoutHeader.tsx +++ b/apps/studio/components/layouts/ProjectLayout/LayoutHeader/LayoutHeader.tsx @@ -33,7 +33,9 @@ const LayoutHeader = ({ customHeaderComponents, breadcrumbs = [], headerBorder = } }, [orgUsage]) - const { data: subscription } = useOrgSubscriptionQuery({ orgSlug: selectedOrganization?.slug }) + const { data: subscription } = useOrgSubscriptionQuery({ + orgSlug: selectedOrganization?.slug, + }) const projectHasNoLimits = subscription?.usage_billing_enabled === true @@ -77,7 +79,7 @@ const LayoutHeader = ({ customHeaderComponents, breadcrumbs = [], headerBorder = {showOverUsageBadge && (
    - Exceeding usage limits + Exceeding usage limits
    )} diff --git a/apps/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopoverV2/NotificationRow.tsx b/apps/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopoverV2/NotificationRow.tsx index a423c544eea..395d1e0d1c0 100644 --- a/apps/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopoverV2/NotificationRow.tsx +++ b/apps/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopoverV2/NotificationRow.tsx @@ -1,11 +1,10 @@ import * as Tooltip from '@radix-ui/react-tooltip' -import clsx from 'clsx' import dayjs from 'dayjs' import { ArchiveRestoreIcon } from 'lucide-react' import Link from 'next/link' import { useEffect, useRef } from 'react' import { useInView } from 'react-intersection-observer' -import { Button, IconArchive, IconExternalLink } from 'ui' +import { Button, IconArchive, IconExternalLink, cn } from 'ui' import { Markdown } from 'components/interfaces/Markdown' import { CriticalIcon, WarningIcon } from 'ui-patterns/Icons/StatusIcons' @@ -17,7 +16,8 @@ import type { Organization } from 'types' interface NotificationRowProps { setRowHeight: (idx: number, height: number) => void getProject: (ref: string) => ProjectInfo - getOrganization: (id: number) => Organization + getOrganizationById: (id: number) => Organization + getOrganizationBySlug: (slug: string) => Organization onUpdateNotificationStatus: (id: string, status: 'archived' | 'seen') => void queueMarkRead: (id: string) => void } @@ -28,7 +28,8 @@ const NotificationRow: ItemRenderer = ({ item: notification, setRowHeight, getProject, - getOrganization, + getOrganizationById, + getOrganizationBySlug, onUpdateNotificationStatus, queueMarkRead, }) => { @@ -38,7 +39,12 @@ const NotificationRow: ItemRenderer = ({ const data = notification.data as NotificationData const project = data.project_ref !== undefined ? getProject(data.project_ref) : undefined - const organization = project !== undefined ? getOrganization(project.organization_id) : undefined + const organization = + data.org_slug !== undefined + ? getOrganizationBySlug(data.org_slug) + : project !== undefined + ? getOrganizationById(project.organization_id) + : undefined const daysFromNow = dayjs().diff(dayjs(notification.inserted_at), 'day') const formattedTimeFromNow = dayjs(notification.inserted_at).fromNow() @@ -65,7 +71,7 @@ const NotificationRow: ItemRenderer = ({ return (
    { const [open, setOpen] = useState(false) @@ -108,9 +107,9 @@ const NotificationsPopoverV2 = () => { )} icon={ hasCritical ? ( - + ) : hasWarning ? ( - + ) : hasNewNotifications ? (
    { ) : null } iconRight={ - { } }, getProject: (ref: string) => projects?.find((project) => project.ref === ref)!, - getOrganization: (id: number) => organizations?.find((org) => org.id === id)!, + getOrganizationById: (id: number) => + organizations?.find((org) => org.id === id)!, + getOrganizationBySlug: (slug: string) => + organizations?.find((org) => org.slug === slug)!, onUpdateNotificationStatus: (id: string, status: 'archived' | 'seen') => { updateNotifications({ ids: [id], status }) }, @@ -223,7 +225,7 @@ const NotificationsPopoverV2 = () => { /> ) : (
    - +

    {activeTab === 'archived' @@ -257,7 +259,7 @@ const NotificationsPopoverV2 = () => { disabled={isArchiving} loading={isArchiving} type="text" - icon={} + icon={} onClick={() => archiveAllNotifications()} > Archive all diff --git a/apps/studio/components/layouts/ProjectLayout/PausingState.tsx b/apps/studio/components/layouts/ProjectLayout/PausingState.tsx index 5b371dab83d..71478e500b3 100644 --- a/apps/studio/components/layouts/ProjectLayout/PausingState.tsx +++ b/apps/studio/components/layouts/ProjectLayout/PausingState.tsx @@ -43,7 +43,7 @@ const PausingState = ({ project }: PausingStateProps) => {

    {project.name}

    - +
    Pausing project diff --git a/apps/studio/components/layouts/ProjectSettingsLayout/SettingsLayout.tsx b/apps/studio/components/layouts/ProjectSettingsLayout/SettingsLayout.tsx index 422b1d34784..72937b8a775 100644 --- a/apps/studio/components/layouts/ProjectSettingsLayout/SettingsLayout.tsx +++ b/apps/studio/components/layouts/ProjectSettingsLayout/SettingsLayout.tsx @@ -1,11 +1,12 @@ import { useIsFeatureEnabled, useSelectedOrganization, useSelectedProject, withAuth } from 'hooks' import { useRouter } from 'next/router' -import { PropsWithChildren } from 'react' +import { PropsWithChildren, useEffect } from 'react' import { generateSettingsMenu } from './SettingsMenu.utils' import { useParams } from 'common' import { ProductMenu } from 'components/ui/ProductMenu' import { ProjectLayout } from '..' +import { IS_PLATFORM } from 'lib/constants' interface SettingsLayoutProps { title?: string @@ -17,6 +18,12 @@ const SettingsLayout = ({ title, children }: PropsWithChildren { + if (!IS_PLATFORM) { + router.push('/project/default') + } + }, [router]) + // billing pages live under /billing/invoices and /billing/subscription, etc // so we need to pass the [5]th part of the url to the menu const page = router.pathname.includes('billing') diff --git a/apps/studio/components/layouts/ReportsLayout/ReportsMenu.tsx b/apps/studio/components/layouts/ReportsLayout/ReportsMenu.tsx index 4d84ce59141..aafa4b0905e 100644 --- a/apps/studio/components/layouts/ReportsLayout/ReportsMenu.tsx +++ b/apps/studio/components/layouts/ReportsLayout/ReportsMenu.tsx @@ -1,41 +1,39 @@ -import { CreateReportModal } from 'components/interfaces/Reports/Reports.CreateReportModal' -import { UpdateCustomReportModal } from 'components/interfaces/Reports/Reports.UpdateModal' -import ConfirmationModal from 'ui-patterns/Dialogs/ConfirmationModal' -import ShimmeringLoader from 'components/ui/ShimmeringLoader' -import { useContentDeleteMutation } from 'data/content/content-delete-mutation' -import { useContentInsertMutation } from 'data/content/content-insert-mutation' -import { Content, useContentQuery } from 'data/content/content-query' -import { useContentUpsertMutation } from 'data/content/content-upsert-mutation' -import { useIsFeatureEnabled, useSelectedProject } from 'hooks' -import { uuidv4 } from 'lib/helpers' +import { ChevronDown, Edit2, Plus, Trash } from 'lucide-react' import Link from 'next/link' import { useRouter } from 'next/router' import React from 'react' import toast from 'react-hot-toast' + +import { CreateReportModal } from 'components/interfaces/Reports/Reports.CreateReportModal' +import { UpdateCustomReportModal } from 'components/interfaces/Reports/Reports.UpdateModal' +import ShimmeringLoader from 'components/ui/ShimmeringLoader' +import { useContentDeleteMutation } from 'data/content/content-delete-mutation' +import { Content, useContentQuery } from 'data/content/content-query' +import { useContentUpsertMutation } from 'data/content/content-upsert-mutation' +import { useIsFeatureEnabled, useSelectedProject } from 'hooks' import { + AlertDescription_Shadcn_, + AlertTitle_Shadcn_, + Alert_Shadcn_, Button, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, - IconChevronDown, - IconEdit2, - IconPlus, - IconTrash, Menu, - Modal, cn, } from 'ui' +import ConfirmationModal from 'ui-patterns/Dialogs/ConfirmationModal' const ReportsMenu = () => { const router = useRouter() - const insertReport = useContentInsertMutation() + const { id } = router.query + const project = useSelectedProject() const deleteReport = useContentDeleteMutation() const updateReport = useContentUpsertMutation() + const storageEnabled = useIsFeatureEnabled('project_storage:all') - const project = useSelectedProject() - const { id } = router.query const pageKey = (id || router.pathname.split('/')[4]) as string const ref = project?.ref ?? 'default' @@ -44,8 +42,6 @@ const ReportsMenu = () => { const [showUpdateReportModal, setShowUpdateReportModal] = React.useState(false) const [selectedReport, setSelectedReport] = React.useState() - const storageEnabled = useIsFeatureEnabled('project_storage:all') - const { data: content, isLoading } = useContentQuery(ref) function getReportMenuItems() { @@ -103,53 +99,10 @@ const ReportsMenu = () => { key: 'database', url: `/project/${ref}/reports/database`, }, - { - name: 'Query Performance', - key: 'query-performance', - url: `/project/${ref}/reports/query-performance`, - }, ], }, ] - async function createCustomReport({ name, description }: { name: string; description?: string }) { - try { - if (!ref) return - - const res = await insertReport.mutateAsync({ - projectRef: ref, - payload: { - id: uuidv4(), - type: 'report', - name, - description: description || '', - visibility: 'project', - content: { - schema_version: 1, - period_start: { - time_period: '7d', - date: '', - }, - period_end: { - time_period: 'today', - date: '', - }, - interval: '1d', - layout: [], - }, - }, - }) - toast.success('New report created') - - const newReportId = res[0].id - setShowNewReportModal(false) - router.push(`/project/${ref}/reports/${newReportId}`) - } catch (error) { - toast.error(`Failed to create report. Check console for more details.`) - console.error(error) - } - } - return ( {isLoading ? ( @@ -159,7 +112,7 @@ const ReportsMenu = () => {
    ) : ( -
    +
    + {reportMenuItems.length > 0 ? ( -
    - +
    + Your custom reports} + /> {reportMenuItems.map((item, idx) => ( {
    ) : null} - {menuItems.map((item, idx) => ( -
    + + {menuItems.map((item) => ( +
    {item.items ? ( <> - + {item.title}} />
    {item.items.map((subItem) => (
  • { ) : null}
  • ))} + + {/* [Joshen] Temp notice while we shift some pages on 040424 - can probably remove in 3 months perhaps */} + + + Query Performance and Project Linter reports have been shifted + + +

    They can now be found in the menu under the database section.

    + +
    +
    + { try { @@ -281,14 +254,16 @@ const ReportsMenu = () => { description: selectedReport?.description || '', }} /> + { + onCancel={() => setDeleteModalOpen(false)} + onConfirm={async () => { if (selectedReport) { if (!selectedReport.id) return await deleteReport.mutateAsync({ @@ -300,18 +275,14 @@ const ReportsMenu = () => { } setDeleteModalOpen(false) }} - onSelectCancel={() => setDeleteModalOpen(false)} > - -
    -
    -
    -

    Are you sure you want to delete '{selectedReport?.name}'?

    -
    -
    +
    +
    +

    Are you sure you want to delete '{selectedReport?.name}'?

    - +
    + { diff --git a/apps/studio/components/layouts/SQLEditorLayout/QueryItem.tsx b/apps/studio/components/layouts/SQLEditorLayout/QueryItem.tsx index d260d20d1a5..8a564009c02 100644 --- a/apps/studio/components/layouts/SQLEditorLayout/QueryItem.tsx +++ b/apps/studio/components/layouts/SQLEditorLayout/QueryItem.tsx @@ -28,6 +28,7 @@ import type { SqlSnippet } from 'data/content/sql-snippets-query' import { useSqlEditorStateSnapshot } from 'state/sql-editor' import { CriticalIcon, WarningIcon } from 'ui-patterns/Icons/StatusIcons' import { QueryItemActions } from './QueryItemActions' +import { Eye, Unlock } from 'lucide-react' export interface QueryItemProps { tabInfo: SqlSnippet @@ -188,58 +189,50 @@ const QueryItem = ({ onComplete={() => setRenameModalOpen(false)} /> setDeleteModalOpen(false)} + variant={'destructive'} + onCancel={() => setDeleteModalOpen(false)} + onConfirm={onConfirmDelete} + alert={ + visibility === 'project' + ? { + title: 'This SQL snippet will be lost forever', + description: + 'Deleting this query will remove it for all members of the project team.', + } + : undefined + } > - - {visibility === 'project' && ( - - - This SQL snippet will be lost forever - - Deleting this query will remove it for all members of the project team. - - - )} -

    Are you sure you want to delete '{name}'?

    -
    +

    Are you sure you want to delete '{name}'?

    setShareModalOpen(false)} + onCancel={() => setShareModalOpen(false)} + onConfirm={onConfirmShare} + alert={{ + title: 'This SQL query will become public to all team members', + description: 'Anyone with access to the project can view it', + }} > - - - - - This SQL query will become public to all team members - - - Anyone with access to the project can view it - - -
      -
    • - - Project members will have read-only access to this query. -
    • -
    • - - Anyone will be able to duplicate it to their personal snippets. -
    • -
    -
    +
      +
    • + + Project members will have read-only access to this query. +
    • +
    • + + Anyone will be able to duplicate it to their personal snippets. +
    • +
    {
    1 ? 'ies' : 'y'}`} - buttonLoadingLabel="Deleting query" + title="Confirm to delete query" + confirmLabel={`Delete ${selectedQueries.length.toLocaleString()} quer${selectedQueries.length > 1 ? 'ies' : 'y'}`} + confirmLabelLoading="Deleting query" size="medium" loading={isDeleting} visible={showDeleteModal} - onSelectConfirm={onConfirmDelete} - onSelectCancel={() => setShowDeleteModal(false)} - danger + onConfirm={onConfirmDelete} + onCancel={() => setShowDeleteModal(false)} + variant={'destructive'} + alert={{ + title: 'This action cannot be undone', + description: 'The selected SQL snippets cannot be recovered once deleted', + }} > - -
    -
    -
    - - - This action cannot be undone - - The selected SQL snippets cannot be recovered once deleted - - -

    - Are you sure you want to delete the selected {selectedQueries.length} quer - {selectedQueries.length > 1 ? 'ies' : 'y'}? -

    -
    -
    -
    -
    +

    + Are you sure you want to delete the selected {selectedQueries.length} quer + {selectedQueries.length > 1 ? 'ies' : 'y'}? +

    ) diff --git a/apps/studio/components/layouts/Scaffold.tsx b/apps/studio/components/layouts/Scaffold.tsx index 71d3ea68279..f9f13485c62 100644 --- a/apps/studio/components/layouts/Scaffold.tsx +++ b/apps/studio/components/layouts/Scaffold.tsx @@ -3,11 +3,8 @@ import { cn } from 'ui' const maxWidthClasses = 'mx-auto w-full max-w-[1600px]' const paddingClasses = 'px-6 lg:px-14 xl:px-28 2xl:px-32' - const maxWidthClassesColumn = 'min-w-[420px]' -// lg: pt - 8 - const ScaffoldHeader = React.forwardRef>( ({ className, ...props }, ref) => { return ( @@ -31,7 +28,7 @@ const ScaffoldContainer = React.forwardRef>( ({ className, ...props }, ref) => { - return
    + return
    } ) diff --git a/apps/studio/components/layouts/StorageLayout/BucketRow.tsx b/apps/studio/components/layouts/StorageLayout/BucketRow.tsx index 3d69401793b..85c5ef1cf27 100644 --- a/apps/studio/components/layouts/StorageLayout/BucketRow.tsx +++ b/apps/studio/components/layouts/StorageLayout/BucketRow.tsx @@ -15,6 +15,7 @@ import { IconLoader, IconTrash, IconXCircle, + cn, } from 'ui' import type { Bucket } from 'data/storage/buckets-query' @@ -50,7 +51,7 @@ const BucketRow = ({ {/* Even though we trim whitespaces from bucket names, there may be some existing buckets with trailing whitespaces. */}

    {bucket.name}

    - {bucket.public && Public} + {bucket.public && Public}
    - {/* [JOSHEN TODO] need to change this */} - {false ? ( - - ) : canUpdateBuckets && isSelected ? ( + {canUpdateBuckets && isSelected ? ( + /> {
    - + All buckets} /> {isLoading && (
    @@ -146,7 +146,7 @@ const StorageMenu = () => {
    - + Configuration} />

    Policies

    diff --git a/apps/studio/components/layouts/VercelIntegrationLayout.tsx b/apps/studio/components/layouts/VercelIntegrationLayout.tsx index 34bf4f2983a..cd57fb5bbb1 100644 --- a/apps/studio/components/layouts/VercelIntegrationLayout.tsx +++ b/apps/studio/components/layouts/VercelIntegrationLayout.tsx @@ -1,8 +1,8 @@ import Head from 'next/head' import type { PropsWithChildren } from 'react' -import Divider from 'components/ui/Divider' import { BASE_PATH } from 'lib/constants' +import { Separator } from 'ui' const VercelIntegrationLayout = ({ children }: PropsWithChildren<{}>) => { return ( @@ -27,7 +27,7 @@ const VercelIntegrationLayout = ({ children }: PropsWithChildren<{}>) => {
    - +
    {children}
    diff --git a/apps/studio/components/to-be-cleaned/Charts/ChartHandler.types.ts b/apps/studio/components/to-be-cleaned/Charts/ChartHandler.types.ts index 9cfdbbf1429..e6b0f65b178 100644 --- a/apps/studio/components/to-be-cleaned/Charts/ChartHandler.types.ts +++ b/apps/studio/components/to-be-cleaned/Charts/ChartHandler.types.ts @@ -3,7 +3,6 @@ export interface ChartData { yAxisLimit?: number maximum?: number total: number - totalAverage: number totalGrouped: Attribute data: DataPoint[] } diff --git a/apps/studio/components/to-be-cleaned/Charts/ChartRenderer.tsx b/apps/studio/components/to-be-cleaned/Charts/ChartRenderer.tsx index ff6e0ee43da..cfd484c30d3 100644 --- a/apps/studio/components/to-be-cleaned/Charts/ChartRenderer.tsx +++ b/apps/studio/components/to-be-cleaned/Charts/ChartRenderer.tsx @@ -46,17 +46,19 @@ const Header = ({ let title = '' + const isByteAttribute = + format === 'bytes' || + attribute.includes('ingress') || + attribute.includes('egress') || + attribute.includes('bytes') + if (focus) { if (!data) { title = '' } else if (format === '%') { title = Number(data[focus]?.[attribute]).toFixed(2) } else { - if ( - attribute.includes('ingress') || - attribute.includes('egress') || - attribute.includes('bytes') - ) { + if (isByteAttribute) { title = formatBytes(data[focus]?.[attribute]) } else { title = data[focus]?.[attribute]?.toLocaleString() @@ -66,11 +68,7 @@ const Header = ({ if (format === '%' && highlightedValue) { title = highlightedValue.toFixed(2) } else { - if ( - attribute.includes('ingress') || - attribute.includes('egress') || - attribute.includes('bytes') - ) { + if (isByteAttribute) { title = formatBytes(highlightedValue) } else { title = highlightedValue?.toLocaleString() @@ -91,7 +89,7 @@ const Header = ({ } > {title} - {format} + {!isByteAttribute && {format}} ) const date = ( diff --git a/apps/studio/components/to-be-cleaned/Reports/Reports.constants.ts b/apps/studio/components/to-be-cleaned/Reports/Reports.constants.ts deleted file mode 100644 index bcb6cd0a382..00000000000 --- a/apps/studio/components/to-be-cleaned/Reports/Reports.constants.ts +++ /dev/null @@ -1,19 +0,0 @@ -export const NEW_REPORT_SKELETON = { - name: 'new report', - description: '', - type: 'report', - visibility: 'project', - content: { - schema_version: 1, - period_start: { - time_period: '7d', - date: '', - }, - period_end: { - time_period: 'today', - date: '', - }, - interval: '1d', - layout: [], - }, -} diff --git a/apps/studio/components/to-be-cleaned/Reports/Reports.utils.ts b/apps/studio/components/to-be-cleaned/Reports/Reports.utils.ts deleted file mode 100644 index 95f69d1d70f..00000000000 --- a/apps/studio/components/to-be-cleaned/Reports/Reports.utils.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { useProjectContentStore } from 'stores/projectContentStore' -import { NEW_REPORT_SKELETON } from './Reports.constants' - -/* - * createReport() - * - * Creates a new report with a basic skeleton - * also pushes route to new report - * - * returns :object - */ -export const createReport = async ({ router }: any) => { - const { ref } = router.query - // [Alaister] despite it's name, useProjectContentStore is not a real react hook - // so we can safely disable the eslint rule here - // eslint-disable-next-line react-hooks/rules-of-hooks - const contentStore = useProjectContentStore(ref) - const { data: newReport, error } = await contentStore.create(NEW_REPORT_SKELETON) - - if (error) throw error - - await contentStore.load() - router.push(`/project/${ref}/reports/${newReport[0].id}`) -} diff --git a/apps/studio/components/to-be-cleaned/Storage/DeleteBucketModal.tsx b/apps/studio/components/to-be-cleaned/Storage/DeleteBucketModal.tsx index 969b924b20b..61422b8d88a 100644 --- a/apps/studio/components/to-be-cleaned/Storage/DeleteBucketModal.tsx +++ b/apps/studio/components/to-be-cleaned/Storage/DeleteBucketModal.tsx @@ -89,7 +89,7 @@ const DeleteBucketModal = ({ visible = false, bucket, onClose }: DeleteBucketMod title: 'You cannot recover this bucket once deleted.', description: 'All bucket data will be lost.', }} - confirmLabel={`Delete bucket ${bucket?.name}`} + confirmLabel="Delete bucket" /> ) } diff --git a/apps/studio/components/to-be-cleaned/Storage/EmptyBucketModal.tsx b/apps/studio/components/to-be-cleaned/Storage/EmptyBucketModal.tsx index c8ec9060e0c..4ea1860f3fe 100644 --- a/apps/studio/components/to-be-cleaned/Storage/EmptyBucketModal.tsx +++ b/apps/studio/components/to-be-cleaned/Storage/EmptyBucketModal.tsx @@ -40,24 +40,19 @@ export const EmptyBucketModal = ({ visible = false, bucket, onClose }: EmptyBuck return ( onClose()} - onSelectConfirm={onEmptyBucket} - header={`Confirm to delete all contents from ${bucket?.name}`} - buttonLabel="Empty bucket" + onCancel={() => onClose()} + onConfirm={onEmptyBucket} + alert={{ + title: 'This action cannot be undone', + description: 'The contents of your bucket cannot be recovered once deleted', + }} > - - - - This action cannot be undone - - The contents of your bucket cannot be recovered once deleted - - -

    Are you sure you want to empty the bucket "{bucket?.name}"?

    -
    +

    Are you sure you want to empty the bucket "{bucket?.name}"?

    ) } diff --git a/apps/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerColumn.tsx b/apps/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerColumn.tsx index 19a316628d6..8ac8f205a55 100644 --- a/apps/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerColumn.tsx +++ b/apps/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerColumn.tsx @@ -38,7 +38,7 @@ const DragOverOverlay = ({ isOpen, onDragLeave, onDrop, folderIsEmpty }: any) => > {!folderIsEmpty && (
    diff --git a/apps/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePolicies.constants.ts b/apps/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePolicies.constants.ts index 12b24f53f32..4e9e1df63d7 100644 --- a/apps/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePolicies.constants.ts +++ b/apps/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePolicies.constants.ts @@ -46,10 +46,10 @@ CREATE POLICY "policy_name" ON storage.objects FOR {operation} {USING | WITH CHECK} ( -- restrict bucket bucket_id = {bucket_name} - and auth.uid()::text = (storage.foldername(name))[1] + and (select auth.uid()::text) = (storage.foldername(name))[1] ); `.trim(), - definition: `bucket_id = {bucket_id} AND auth.uid()::text = (storage.foldername(name))[1]`, + definition: `bucket_id = {bucket_id} AND (select auth.uid()::text) = (storage.foldername(name))[1]`, allowedOperations: [], }, { @@ -64,7 +64,7 @@ ON storage.objects FOR {operation} {USING | WITH CHECK} ( -- restrict bucket bucket_id = {bucket_name} AND (storage.foldername(name))[1] = 'private' - AND auth.role() = 'authenticated' + AND (select auth.role()) = 'authenticated' ); `.trim(), definition: `bucket_id = {bucket_id} AND (storage.foldername(name))[1] = 'private' AND auth.role() = 'authenticated'`, @@ -82,10 +82,10 @@ ON storage.objects FOR {operation} {USING | WITH CHECK} ( -- restrict bucket bucket_id = {bucket_name} AND (storage.foldername(name))[1] = 'admin' AND (storage.foldername(name))[2] = 'assets' - AND auth.uid()::text = 'd7bed83c-44a0-4a4f-925f-efc384ea1e50' + AND (select auth.uid()::text) = 'd7bed83c-44a0-4a4f-925f-efc384ea1e50' ); `.trim(), - definition: `bucket_id = {bucket_id} AND (storage.foldername(name))[1] = 'admin' AND (storage.foldername(name))[2] = 'assets' AND auth.uid()::text = 'd7bed83c-44a0-4a4f-925f-efc384ea1e50'`, + definition: `bucket_id = {bucket_id} AND (storage.foldername(name))[1] = 'admin' AND (storage.foldername(name))[2] = 'assets' AND (select auth.uid()::text) = 'd7bed83c-44a0-4a4f-925f-efc384ea1e50'`, allowedOperations: [], }, { @@ -99,10 +99,10 @@ ON storage.objects FOR {operation} {USING | WITH CHECK} ( -- restrict bucket bucket_id = {bucket_name} AND name = 'admin/assets/Costa Rican Frog.jpg' - AND auth.uid()::text = 'd7bed83c-44a0-4a4f-925f-efc384ea1e50' + AND (select auth.uid()::text) = 'd7bed83c-44a0-4a4f-925f-efc384ea1e50' ); `.trim(), - definition: `bucket_id = {bucket_id} AND name = 'admin/assets/Costa Rican Frog.jpg' AND auth.uid()::text = 'd7bed83c-44a0-4a4f-925f-efc384ea1e50'`, + definition: `bucket_id = {bucket_id} AND name = 'admin/assets/Costa Rican Frog.jpg' AND (select auth.uid()::text) = 'd7bed83c-44a0-4a4f-925f-efc384ea1e50'`, allowedOperations: [], }, ] diff --git a/apps/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePolicies.tsx b/apps/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePolicies.tsx index e2aa4a00942..c8b4955b263 100644 --- a/apps/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePolicies.tsx +++ b/apps/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePolicies.tsx @@ -209,7 +209,7 @@ const StoragePolicies = () => { ) })} -
    +

    You may also write policies for the tables under the storage schema directly for greater control diff --git a/apps/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesBucketRow.tsx b/apps/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesBucketRow.tsx index d5e5a96c2be..14fbecab63f 100644 --- a/apps/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesBucketRow.tsx +++ b/apps/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesBucketRow.tsx @@ -95,7 +95,7 @@ const StoragePoliciesBucketRow = ({

    {label}

    - {bucket.public && Public} + {bucket.public && Public}
    +
    + + )} +
    + +
    + { + setOpenCreateCred(open) + if (!open) setShowSuccess(false) + }} + > + + + + + { + if (showSuccess) { + e.preventDefault() + } + }} + > + {showSuccess ? ( + <> +
    + Save your new S3 access keys + + You won't be able to see them again. If you lose these access keys, you'll + need to create a new ones. + +
    + + + + + + + +
    + +
    + + ) : ( + <> +
    + Create new S3 access keys + + S3 access keys provide full access to all S3 operations across all buckets + and bypass any existing RLS policies. + +
    + { + e.preventDefault() + + const formData = new FormData(e.target as HTMLFormElement) + const description = formData.get('description') as string + + await createS3AccessKey.mutateAsync({ description }) + setShowSuccess(true) + }} + > + + + + +
    + +
    + + + )} +
    + + } + /> + +
    + {!isProjectActive ? ( + + + Can't fetch S3 access keys + + To fetch your S3 access keys, you need to restore your project. + +
    + +
    +
    + ) : ( + <> + {storageCredsQuery.isLoading ? ( +
    + +
    + ) : ( +
    +
    -
    - -
    -
    Description, + Access key ID, + Created at, + , + ]} + body={ + hasStorageCreds ? ( + storageCreds.data?.map((cred) => ( + { + setDeleteCredId(cred.id) + setOpenDeleteDialog(true) + }} + /> + )) + ) : ( + + +

    No access keys created

    +

    + There are no access keys associated with your project yet +

    +
    +
    + ) + } + /> + + )} + + )} + + + + + + Revoke S3 access keys + + This action is irreversible and requests made with these access keys will stop working. + +
    + + +
    +
    +
    + + ) +} + +function StorageCredItem({ + description, + id, + created_at, + access_key, + onDeleteClick, +}: { + description: string + id: string + created_at: string + access_key: string + onDeleteClick: (id: string) => void +}) { + function daysSince(date: string) { + const now = new Date() + const created = new Date(date) + const diffInDays = differenceInDays(now, created) + + if (diffInDays === 0) { + return 'Today' + } else if (diffInDays === 1) { + return `${diffInDays} day ago` + } else { + return `${diffInDays} days ago` + } + } + + return ( +
    + + + + + + ) +} diff --git a/apps/studio/components/ui/Charts/AreaChart.stories.tsx b/apps/studio/components/ui/Charts/AreaChart.stories.tsx index ebcad3f384e..635c2abb439 100644 --- a/apps/studio/components/ui/Charts/AreaChart.stories.tsx +++ b/apps/studio/components/ui/Charts/AreaChart.stories.tsx @@ -1,11 +1,11 @@ -import { ComponentMeta } from '@storybook/react' +import { StoryObj } from '@storybook/react' import dayjs from 'dayjs' import React from 'react' import Chart, { AreaChartProps } from './AreaChart' export default { title: 'Charts', -} as ComponentMeta +} as StoryObj const DATA = [290, 430, 649, 422, 321, 893, 111].map((value, index) => ({ ram_usage: value, diff --git a/apps/studio/components/ui/Charts/BarChart.stories.tsx b/apps/studio/components/ui/Charts/BarChart.stories.tsx index cb8489dafc7..d3df720127d 100644 --- a/apps/studio/components/ui/Charts/BarChart.stories.tsx +++ b/apps/studio/components/ui/Charts/BarChart.stories.tsx @@ -1,11 +1,11 @@ -import { ComponentMeta } from '@storybook/react' +import { StoryObj } from '@storybook/react' import dayjs from 'dayjs' import React from 'react' import Chart, { BarChartProps } from './BarChart' export default { title: 'Charts', -} as ComponentMeta +} as StoryObj const DATA = [290, 430, 649, 422, 321, 893, 111].map((value, index) => ({ ram_usage: value, diff --git a/apps/studio/components/ui/Charts/StackedBarChart.stories.tsx b/apps/studio/components/ui/Charts/StackedBarChart.stories.tsx index 0ce36d93de4..acb8dcca092 100644 --- a/apps/studio/components/ui/Charts/StackedBarChart.stories.tsx +++ b/apps/studio/components/ui/Charts/StackedBarChart.stories.tsx @@ -1,12 +1,12 @@ import React from 'react' -import { ComponentMeta } from '@storybook/react' +import { StoryObj } from '@storybook/react' import dayjs from 'dayjs' import Chart from './StackedBarChart' import { DEFAULT_STACK_COLORS, genStackColorScales } from './Charts.constants' export default { title: 'Charts/StackedBarChart', -} as ComponentMeta +} as StoryObj const DATA = [290, 430, 649, 422, 321].flatMap((value, index) => [ { diff --git a/apps/studio/components/ui/ConditionalWrap.tsx b/apps/studio/components/ui/ConditionalWrap.tsx deleted file mode 100644 index 65afdda1e1b..00000000000 --- a/apps/studio/components/ui/ConditionalWrap.tsx +++ /dev/null @@ -1,12 +0,0 @@ -import { cloneElement } from 'react' - -type ConditionalWrapProps = { - condition: boolean - wrap: (children: JSX.Element | null) => JSX.Element - children: JSX.Element | null -} - -const ConditionalWrap = ({ condition, children, wrap }: ConditionalWrapProps) => - condition ? cloneElement(wrap(children)) : children - -export default ConditionalWrap diff --git a/apps/studio/components/ui/Divider.tsx b/apps/studio/components/ui/Divider.tsx deleted file mode 100644 index 50ad397a0cc..00000000000 --- a/apps/studio/components/ui/Divider.tsx +++ /dev/null @@ -1,3 +0,0 @@ -export default function Divider({ light }: { light: Boolean }) { - return
    -} diff --git a/apps/studio/components/interfaces/AuditLogs/FilterPopover.tsx b/apps/studio/components/ui/FilterPopover.tsx similarity index 63% rename from apps/studio/components/interfaces/AuditLogs/FilterPopover.tsx rename to apps/studio/components/ui/FilterPopover.tsx index b0da2dd4967..390f897715c 100644 --- a/apps/studio/components/interfaces/AuditLogs/FilterPopover.tsx +++ b/apps/studio/components/ui/FilterPopover.tsx @@ -1,5 +1,5 @@ import { useState } from 'react' -import { Button, Checkbox, Popover } from 'ui' +import { Button, Checkbox, Popover, ScrollArea } from 'ui' interface FilterPopoverProps { options: any[] @@ -7,19 +7,20 @@ interface FilterPopoverProps { valueKey: string labelKey: string name: string + variant?: 'rectangular' | 'rounded' onSaveFilters: (options: string[]) => void + disabled?: boolean } -// [Joshen] Form + Checkbox.Group doesn't seem to work properly RE form state -// hence why the manual implementation here as a workaround - -const FilterPopover = ({ +export const FilterPopover = ({ options = [], activeOptions = [], valueKey, labelKey, name, + variant = 'rectangular', onSaveFilters, + disabled, }: FilterPopoverProps) => { const [open, setOpen] = useState(false) const [selectedOptions, setSelectedOptions] = useState([]) @@ -33,30 +34,34 @@ const FilterPopover = ({ setOpen(!open)} header={
    Select {name.toLowerCase()}
    } overlay={ <> -
    - { - const value = event.target.value - if (selectedOptions.includes(value)) { - setSelectedOptions(selectedOptions.filter((x) => x !== value)) - } else { - setSelectedOptions(selectedOptions.concat(value)) - } - }} - options={options.map((option) => { - return { - value: option[valueKey], - label: option[labelKey], - defaultChecked: activeOptions.includes(option[valueKey]), - } - })} - > +
    + 7 ? 'h-[205px]' : ''}> + { + const value = event.target.value + if (selectedOptions.includes(value)) { + setSelectedOptions(selectedOptions.filter((x) => x !== value)) + } else { + setSelectedOptions(selectedOptions.concat(value)) + } + }} + options={options.map((option) => { + return { + value: option[valueKey], + label: option[labelKey], + defaultChecked: activeOptions.includes(option[valueKey]), + } + })} + /> +
    )} + {actions}
    - {docsUrl !== undefined && ( - - )}
    ) } diff --git a/apps/studio/components/ui/InformationBox.tsx b/apps/studio/components/ui/InformationBox.tsx index cc5381ab7de..1ea7c26661c 100644 --- a/apps/studio/components/ui/InformationBox.tsx +++ b/apps/studio/components/ui/InformationBox.tsx @@ -36,7 +36,7 @@ const InformationBox = ({ >
    -
    +
    {icon && {icon}}
    {title}
    diff --git a/apps/studio/components/ui/Panel.tsx b/apps/studio/components/ui/Panel.tsx index 2352ebd31a0..76965332a19 100644 --- a/apps/studio/components/ui/Panel.tsx +++ b/apps/studio/components/ui/Panel.tsx @@ -5,20 +5,20 @@ interface PanelProps { bodyClassName?: string className?: string footer?: JSX.Element | false - hideHeaderStyling?: boolean loading?: boolean noMargin?: boolean title?: ReactNode | false wrapWithLoading?: boolean noHideOverflow?: boolean - headerClasses?: string + titleClasses?: string } function Panel(props: PropsWithChildren) { const content = (
    ) { {props.title && (
    -
    {props.title}
    + {props.title}
    )} -
    {props.children}
    - + {props.children} {props.footer && ( -
    +
    {props.footer}
    )} diff --git a/apps/studio/components/ui/PasswordStrengthBar.tsx b/apps/studio/components/ui/PasswordStrengthBar.tsx index 00af5a2b8cf..4ee9414cdb3 100644 --- a/apps/studio/components/ui/PasswordStrengthBar.tsx +++ b/apps/studio/components/ui/PasswordStrengthBar.tsx @@ -39,7 +39,7 @@ const PasswordStrengthBar = ({ ? passwordStrengthMessage : 'This is the password to your postgres database, so it must be strong and hard to guess.'}{' '} Generate a password diff --git a/apps/studio/components/ui/ProductMenu/ProductMenu.tsx b/apps/studio/components/ui/ProductMenu/ProductMenu.tsx index 2993d7d1535..8e81e63af56 100644 --- a/apps/studio/components/ui/ProductMenu/ProductMenu.tsx +++ b/apps/studio/components/ui/ProductMenu/ProductMenu.tsx @@ -17,12 +17,11 @@ const ProductMenu = ({ page, menu }: ProductMenuProps) => {
    +
    {group.title} - {group.isPreview && Not production ready} + {group.isPreview && Not production ready}
    ) : null } @@ -34,6 +33,7 @@ const ProductMenu = ({ page, menu }: ProductMenuProps) => { url={item.url} name={item.name} icon={item.icon} + rightIcon={item.rightIcon} isActive={page === item.key} isExternal={item.isExternal} target={item.isExternal ? '_blank' : '_self'} @@ -43,7 +43,7 @@ const ProductMenu = ({ page, menu }: ProductMenuProps) => {
    - {idx !== menu.length - 1 &&
    } + {idx !== menu.length - 1 &&
    }
    ))} diff --git a/apps/studio/components/ui/ProductMenu/ProductMenu.types.ts b/apps/studio/components/ui/ProductMenu/ProductMenu.types.ts index d91295eef8a..d0a6d31523b 100644 --- a/apps/studio/components/ui/ProductMenu/ProductMenu.types.ts +++ b/apps/studio/components/ui/ProductMenu/ProductMenu.types.ts @@ -13,6 +13,7 @@ export interface ProductMenuGroupItem { url: string items: any[] icon?: ReactNode + rightIcon?: ReactNode isExternal?: boolean disabled?: boolean label?: string diff --git a/apps/studio/components/ui/ProductMenu/ProductMenuItem.tsx b/apps/studio/components/ui/ProductMenu/ProductMenuItem.tsx index d926e01a4bc..5441340bb8d 100644 --- a/apps/studio/components/ui/ProductMenu/ProductMenuItem.tsx +++ b/apps/studio/components/ui/ProductMenu/ProductMenuItem.tsx @@ -7,6 +7,7 @@ interface ProductMenuItemProps { isActive: boolean isExternal?: boolean icon?: ReactNode + rightIcon?: ReactNode url?: string target?: '_blank' | '_self' onClick?: () => void @@ -20,6 +21,7 @@ const ProductMenuItem = ({ isActive, isExternal, icon, + rightIcon, url = '', target = '_self', onClick, @@ -35,8 +37,9 @@ const ProductMenuItem = ({ className={'flex items-center gap-2 truncate w-full ' + textClassName} > {name} - {label !== undefined && {label}} + {label !== undefined && {label}}
    + {rightIcon &&
    {rightIcon}
    }
    ) diff --git a/apps/studio/components/ui/SchemaSelector.tsx b/apps/studio/components/ui/SchemaSelector.tsx index 49ae9392028..737b95efd80 100644 --- a/apps/studio/components/ui/SchemaSelector.tsx +++ b/apps/studio/components/ui/SchemaSelector.tsx @@ -77,7 +77,7 @@ const SchemaSelector = ({ Failed to load schemas - Error: {schemasError?.message} + Error: {(schemasError as any)?.message}
    - + diff --git a/apps/studio/components/ui/SparkBar.tsx b/apps/studio/components/ui/SparkBar.tsx index 44c31d56bee..41352b4b831 100644 --- a/apps/studio/components/ui/SparkBar.tsx +++ b/apps/studio/components/ui/SparkBar.tsx @@ -16,7 +16,7 @@ interface SparkBarProps { const SparkBar = ({ max = 100, value = 0, - barClass = '', + barClass = 'bg-foreground', bgClass = '', type = 'vertical', borderClass = '', @@ -48,7 +48,7 @@ const SparkBar = ({ )}
    {description !== undefined &&

    {description}

    }
    diff --git a/apps/studio/contributing/contributing-checklists.md b/apps/studio/contributing/contributing-checklists.md deleted file mode 100644 index 9e547cbe5e9..00000000000 --- a/apps/studio/contributing/contributing-checklists.md +++ /dev/null @@ -1,95 +0,0 @@ -# Checklists for contributing to the Supabase Dashboard - -First, we appreciate the time you've taken to contribute to Supabase! Thank you! - -The following is a set of checklists to help make sure the code we contribute to the Dashboard is well tested. If you've made changes to any specific tools, please take a couple of minutes and go through the relevant checklist below. - -You don't need to go through all of these for every PR you contribute. These checklists should help remind you of the important things to test after you've made changes to a feature. For example, if you make changes to the Table Editor, just run through that checklist below. - -**Note**: not all of these tools are available in the self-hosted Dashboard. If your PR is related to Storage, Edge Functions, Logs Explorer or Organization settings, just leave a comment on the PR and a Supabase team member will have a look for you. - -## Tools and features - -### Table Editor - -- [ ] Go to **Table Editor** - - [ ] Create a **new table** - - [ ] Add different fields and types: at least one nullable, one with default generated value (like `now()`), at least one date field - - [ ] Insert a few rows into the table - - [ ] Edit the row with the default spreadsheet view - - [ ] Edit the row with the Side Panel editor (the expand button to the left of the ID column for each row) - - [ ] Add a filter - - [ ] Sort the rows - - [ ] Create a new column and then add a new row - -### Authentication / User management - -- [ ] Go to **Authentication** - - [ ] Invite a new user - - [ ] Search the list of users - - [ ] Go to Policies and create a new policy for a table - - [ ] Check logs view - - [ ] Go to settings and check that any changes you make get saved - - [ ] General - - [ ] Add a redirect URL - - [ ] Enable a couple of Auth providers - -### Storage - -- [ ] Go to **Storage** - - [ ] Go to **Settings** and try to change the upload size limit (unless on Free plan) - - [ ] **Create a new bucket** - - [ ] Go to your new **bucket** (check if it is public or private) - - [ ] Upload a file - - [ ] Create a folder - - [ ] Upload a file to your new folder - - [ ] Download the file - - [ ] Copy URL for your file and open it in new incognito tab (check that it respects private/public setting) - - [ ] Go to **Policies**: add a policy for a bucket - - [ ] Change public/private status for your bucket - - [ ] Check if objects respect private/public setting - -### SQL Editor - -- [ ] Go to **SQL editor** - - [ ] Create **new query** - - [ ] Run a query (ex: `select * from extensions.pg_stat_statements`) and check that it returns results - - [ ] Download a csv of the results (via the Results dropdown above the preview table) - - [ ] Go to **Welcome** and choose and run a template (ex: "Create table") - - [ ] Switch between queries, rename one of your queries, refresh page, delete one of your queries - -### Edge Functions - -- [ ] Go to **Edge Functions** - - [ ] See that any functions you've created are listed - - [ ] Click a function and see that its **Metrics** are displaying - - [ ] Switch to **Details** - you should see the details of your function - - [ ] Switch to **Invocations** and **Logs** - to see logs of recent activity - -### Logs Explorer - -- [ ] Go to **Logs Explorer** - - [ ] Switch to **Templates** and select one - - [ ] Check that query results are displaying properly - - [ ] Make a change to the query from the template, save this query - - [ ] Switch to **Saved** - you should see your new query, run it and check the results - - [ ] Switch to **Recent** - you should be able to see recent queries you've run - -### Database settings - -- [ ] Go to **Database** - - [ ] You should see any tables you have created - - [ ] Click on a table column, try and edit it - - [ ] Go to **Roles** - check if roles are displayed - - [ ] Go to **Extensions** - filter the extensions, try enabling and disabling an extension - - [ ] Go to **Replication** — enable, disable few event types for `supabase_realtime` add some tables to replication - - [ ] Go to **API Logs**, **Postgres Logs**, **Realtime Logs** - - [ ] Check filtering: time range, product, status, method - -### Org settings - -- [ ] Go to **Organizations** and select your organization - - [ ] On **General** - you should be able to rename your organization - - [ ] On **Team** - you should be able to invite team members - - [ ] On **Billing** - you should be able to see your project details and change billing address and email - - [ ] On **Invoices** - you should be able to download recent invoices diff --git a/apps/studio/data/analytics/constants.ts b/apps/studio/data/analytics/constants.ts index 2ae4371e2fe..556dc996957 100644 --- a/apps/studio/data/analytics/constants.ts +++ b/apps/studio/data/analytics/constants.ts @@ -12,7 +12,6 @@ export interface AnalyticsData { data: DataPoint[] format: string total: number - totalAverage: number yAxisLimit: number hasNoData?: boolean } diff --git a/apps/studio/data/analytics/org-daily-stats-query.ts b/apps/studio/data/analytics/org-daily-stats-query.ts index 90202c60cf7..ba7bb6917d7 100644 --- a/apps/studio/data/analytics/org-daily-stats-query.ts +++ b/apps/studio/data/analytics/org-daily-stats-query.ts @@ -10,6 +10,8 @@ export enum EgressType { AUTH = 'egress_auth', STORAGE = 'egress_storage', REALTIME = 'egress_realtime', + FUNCTIONS = 'egress_functions', + SUPAVISOR = 'egress_supavisor', UNIFIED = 'egress', } diff --git a/apps/studio/data/api.d.ts b/apps/studio/data/api.d.ts index ff60579d4ca..b5b1734786c 100644 --- a/apps/studio/data/api.d.ts +++ b/apps/studio/data/api.d.ts @@ -41,6 +41,14 @@ export interface paths { /** Send exit survey to HubSpot */ post: operations['SendExitSurveyController_sendExitSurvey'] } + '/platform/feedback/upgrade': { + /** Send upgrade survey to survey_responses table */ + post: operations['SendUpgradeSurveyController_sendUpgradeSurvey'] + } + '/platform/feedback/docs': { + /** Send feedback on docs */ + post: operations['SendDocsFeedbackController_sendDocsFeedback'] + } '/platform/signup': { /** Sign up with email and password */ post: operations['SignUpController_signUp'] @@ -100,6 +108,10 @@ export interface paths { /** Gets project backups */ get: operations['BackupsController_getBackups'] } + '/platform/database/{ref}/backups/enable-physical-backups': { + /** Enable usage of physical backups */ + post: operations['BackupsController_enablePhysicalBackup'] + } '/platform/database/{ref}/backups/download': { /** Download project backup */ post: operations['BackupsController_downloadBackup'] @@ -591,6 +603,50 @@ export interface paths { /** Gets project's usage api requests count */ get: operations['UsageApiController_getApiRequestsCount'] } + '/platform/projects/{ref}/analytics/warehouse/tenant': { + /** Gets project's warehouse tenant from logflare */ + get: operations['TenantController_getTenant'] + } + '/platform/projects/{ref}/analytics/warehouse/collections': { + /** Lists project's warehouse collections from logflare */ + get: operations['CollectionController_listCollections'] + /** Create a warehouse collection */ + post: operations['CollectionController_createCollection'] + } + '/platform/projects/{ref}/analytics/warehouse/collections/{token}': { + /** Get a warehouse collection */ + get: operations['CollectionController_getCollection'] + /** Delete a warehouse collection */ + delete: operations['CollectionController_deleteCollection'] + /** Update a warehouse collection */ + patch: operations['CollectionController_updateCollection'] + } + '/platform/projects/{ref}/analytics/warehouse/access-tokens': { + /** Lists project's warehouse access tokens from logflare */ + get: operations['AccessTokenController_listAccessTokens'] + /** Create a warehouse access token */ + post: operations['AccessTokenController_createAccessToken'] + } + '/platform/projects/{ref}/analytics/warehouse/access-tokens/{token}': { + /** Delete a warehouse access token */ + delete: operations['AccessTokenController_deleteAccessToken'] + } + '/platform/projects/{ref}/analytics/warehouse/endpoints': { + /** Lists project's warehouse endpoints from logflare */ + get: operations['EndpointController_listEndpoints'] + /** Create a warehouse endpoint */ + post: operations['EndpointController_createEndpoint'] + } + '/platform/projects/{ref}/analytics/warehouse/endpoints/{token}': { + /** Update a warehouse endpoint */ + put: operations['EndpointController_updateEndpoint'] + /** Delete a warehouse endpoint */ + delete: operations['EndpointController_deleteEndpoint'] + } + '/platform/projects/{ref}/analytics/warehouse/query': { + /** Lists project's warehouse queries from logflare */ + get: operations['QueryController_runQuery'] + } '/platform/projects/{ref}/config/pgbouncer': { /** Gets project's pgbouncer config */ get: operations['PgbouncerConfigController_getPgbouncerConfig'] @@ -707,6 +763,16 @@ export interface paths { /** Deletes objects */ delete: operations['StorageObjectsController_deleteObjects'] } + '/platform/storage/{ref}/credentials': { + /** Gets project storage credentials */ + get: operations['StorageS3CredentialsController_getAllCredentials'] + /** Creates project storage credential */ + post: operations['StorageS3CredentialsController_createCredential'] + } + '/platform/storage/{ref}/credentials/{id}': { + /** Deletes project storage credential */ + delete: operations['StorageS3CredentialsController_deleteCredential'] + } '/platform/stripe/invoices': { /** Gets invoices for the given customer */ get: operations['InvoicesController_getInvoices'] @@ -864,12 +930,24 @@ export interface paths { /** Reset JWT if leaked keys found by GitHub secret scanning */ post: operations['GithubSecretAlertController_resetJwt'] } + '/system/projects/{ref}/functions/{function_slug}': { + /** + * Update a function + * @description Updates a function with the specified slug and project. + */ + patch: operations['SystemFunctionSlugController_updateFunction'] + } '/system/projects/{ref}/functions': { /** * List all functions * @description Returns all functions you've previously added to the specified project. */ get: operations['SystemFunctionsController_getFunctions'] + /** + * Create a function + * @description Creates a function and adds it to the specified project. + */ + post: operations['SystemFunctionsController_createFunction'] /** Deletes all Edge Functions from a project */ delete: operations['SystemFunctionsController_systemDeleteAllFunctions'] } @@ -944,6 +1022,10 @@ export interface paths { /** Updates restriction status of an org */ put: operations['OrgRestrictionsSystemController_updateRestriction'] } + '/system/partner-organizations': { + /** Creates a partner organization */ + post: operations['AwsPartnerOrganizationsSystemController_createPartnerOrganization'] + } '/system/integrations/vercel/webhooks': { /** Processes Vercel event */ post: operations['VercelWebhooksController_processEvent'] @@ -1020,6 +1102,10 @@ export interface paths { /** Gets project backups */ get: operations['BackupsController_getBackups'] } + '/v0/database/{ref}/backups/enable-physical-backups': { + /** Enable usage of physical backups */ + post: operations['BackupsController_enablePhysicalBackup'] + } '/v0/database/{ref}/backups/download': { /** Download project backup */ post: operations['BackupsController_downloadBackup'] @@ -1353,6 +1439,50 @@ export interface paths { /** Gets project's usage api requests count */ get: operations['UsageApiController_getApiRequestsCount'] } + '/v0/projects/{ref}/analytics/warehouse/tenant': { + /** Gets project's warehouse tenant from logflare */ + get: operations['TenantController_getTenant'] + } + '/v0/projects/{ref}/analytics/warehouse/collections': { + /** Lists project's warehouse collections from logflare */ + get: operations['CollectionController_listCollections'] + /** Create a warehouse collection */ + post: operations['CollectionController_createCollection'] + } + '/v0/projects/{ref}/analytics/warehouse/collections/{token}': { + /** Get a warehouse collection */ + get: operations['CollectionController_getCollection'] + /** Delete a warehouse collection */ + delete: operations['CollectionController_deleteCollection'] + /** Update a warehouse collection */ + patch: operations['CollectionController_updateCollection'] + } + '/v0/projects/{ref}/analytics/warehouse/access-tokens': { + /** Lists project's warehouse access tokens from logflare */ + get: operations['AccessTokenController_listAccessTokens'] + /** Create a warehouse access token */ + post: operations['AccessTokenController_createAccessToken'] + } + '/v0/projects/{ref}/analytics/warehouse/access-tokens/{token}': { + /** Delete a warehouse access token */ + delete: operations['AccessTokenController_deleteAccessToken'] + } + '/v0/projects/{ref}/analytics/warehouse/endpoints': { + /** Lists project's warehouse endpoints from logflare */ + get: operations['EndpointController_listEndpoints'] + /** Create a warehouse endpoint */ + post: operations['EndpointController_createEndpoint'] + } + '/v0/projects/{ref}/analytics/warehouse/endpoints/{token}': { + /** Update a warehouse endpoint */ + put: operations['EndpointController_updateEndpoint'] + /** Delete a warehouse endpoint */ + delete: operations['EndpointController_deleteEndpoint'] + } + '/v0/projects/{ref}/analytics/warehouse/query': { + /** Lists project's warehouse queries from logflare */ + get: operations['QueryController_runQuery'] + } '/v0/projects/{ref}/config/pgbouncer': { /** Gets project's pgbouncer config */ get: operations['PgbouncerConfigController_getPgbouncerConfig'] @@ -1451,6 +1581,16 @@ export interface paths { /** Deletes objects */ delete: operations['StorageObjectsController_deleteObjects'] } + '/v0/storage/{ref}/credentials': { + /** Gets project storage credentials */ + get: operations['StorageS3CredentialsController_getAllCredentials'] + /** Creates project storage credential */ + post: operations['StorageS3CredentialsController_createCredential'] + } + '/v0/storage/{ref}/credentials/{id}': { + /** Deletes project storage credential */ + delete: operations['StorageS3CredentialsController_deleteCredential'] + } '/v1/branches/{branch_id}': { /** * Get database branch config @@ -1468,6 +1608,13 @@ export interface paths { */ patch: operations['BranchController_updateBranch'] } + '/v1/branches/{branch_id}/reset': { + /** + * Resets a database branch + * @description Resets the specified database branch + */ + post: operations['BranchController_resetBranch'] + } '/v1/projects': { /** * List all projects @@ -1640,6 +1787,18 @@ export interface paths { /** Updates a project's auth config */ patch: operations['V1AuthConfigController_updateV1AuthConfig'] } + '/v1/projects/{ref}/config/auth/third-party-auth': { + /** Lists all third-party auth integrations */ + get: operations['ThirdPartyAuthController_listTPAForProject'] + /** Creates a new third-party auth integration */ + post: operations['ThirdPartyAuthController_createTPAForProject'] + } + '/v1/projects/{ref}/config/auth/third-party-auth/{tpa_id}': { + /** Get a third-party integration */ + get: operations['ThirdPartyAuthController_getTPAForProject'] + /** Removes a third-party auth integration */ + delete: operations['ThirdPartyAuthController_deleteTPAForProject'] + } '/v1/projects/{ref}/config/auth/sso/providers': { /** Lists all SSO providers */ get: operations['ProvidersController_listAllProviders'] @@ -1860,6 +2019,19 @@ export interface components { additionalFeedback?: string exitAction?: string } + SendUpgradeSurveyBody: { + orgSlug?: string + prevPlan?: string + currentPlan?: string + reasons: string[] + additionalFeedback?: string + } + SendDocsFeedbackBody: { + page: string + isHelpful: boolean + title: string + feedback: string + } SignUpBody: { email: string password: string @@ -1899,11 +2071,13 @@ export interface components { MAILER_SUBJECTS_RECOVERY: string MAILER_SUBJECTS_EMAIL_CHANGE: string MAILER_SUBJECTS_MAGIC_LINK: string + MAILER_SUBJECTS_REAUTHENTICATION: string MAILER_TEMPLATES_INVITE_CONTENT: string MAILER_TEMPLATES_CONFIRMATION_CONTENT: string MAILER_TEMPLATES_RECOVERY_CONTENT: string MAILER_TEMPLATES_EMAIL_CHANGE_CONTENT: string MAILER_TEMPLATES_MAGIC_LINK_CONTENT: string + MAILER_TEMPLATES_REAUTHENTICATION_CONTENT: string MFA_MAX_ENROLLED_FACTORS: number URI_ALLOW_LIST: string EXTERNAL_ANONYMOUS_USERS_ENABLED: boolean @@ -1959,6 +2133,10 @@ export interface components { HOOK_PASSWORD_VERIFICATION_ATTEMPT_URI: string HOOK_CUSTOM_ACCESS_TOKEN_ENABLED: boolean HOOK_CUSTOM_ACCESS_TOKEN_URI: string + HOOK_SEND_SMS_ENABLED: boolean + HOOK_SEND_SMS_URI: string + HOOK_SEND_EMAIL_ENABLED: boolean + HOOK_SEND_EMAIL_URI: string EXTERNAL_APPLE_ENABLED: boolean EXTERNAL_APPLE_CLIENT_ID: string EXTERNAL_APPLE_SECRET: string @@ -2042,7 +2220,9 @@ export interface components { MAILER_SUBJECTS_RECOVERY?: string MAILER_SUBJECTS_EMAIL_CHANGE?: string MAILER_SUBJECTS_MAGIC_LINK?: string + MAILER_SUBJECTS_REAUTHENTICATION?: string MAILER_TEMPLATES_INVITE_CONTENT?: string + MAILER_TEMPLATES_REAUTHENTICATION_CONTENT?: string MAILER_TEMPLATES_CONFIRMATION_CONTENT?: string MAILER_TEMPLATES_RECOVERY_CONTENT?: string MAILER_TEMPLATES_EMAIL_CHANGE_CONTENT?: string @@ -2107,6 +2287,10 @@ export interface components { HOOK_PASSWORD_VERIFICATION_ATTEMPT_URI?: string HOOK_CUSTOM_ACCESS_TOKEN_ENABLED?: boolean HOOK_CUSTOM_ACCESS_TOKEN_URI?: string + HOOK_SEND_SMS_ENABLED?: boolean + HOOK_SEND_SMS_URI?: string + HOOK_SEND_EMAIL_ENABLED?: boolean + HOOK_SEND_EMAIL_URI?: string EXTERNAL_APPLE_ENABLED?: boolean EXTERNAL_APPLE_CLIENT_ID?: string EXTERNAL_APPLE_SECRET?: string @@ -2821,7 +3005,7 @@ export interface components { payment_method_card_details?: components['schemas']['PaymentMethodCardDetails'] billing_via_partner: boolean /** @enum {string} */ - billing_partner: 'fly' + billing_partner: 'fly' | 'aws' scheduled_plan_change: components['schemas']['ScheduledPlanChange'] | null customer_balance: number nano_enabled: boolean @@ -3818,6 +4002,30 @@ export interface components { > result?: Record[] } + LFUser: { + token: string + metadata: { + project_ref?: string + } + } + LFSource: { + token: string + id: number + name: string + } + LFEndpoint: { + token: string + id: number + name: string + description: string + query: string + language: Record + sandboxable: boolean | null + cache_duration_seconds: number + proactive_requerying_seconds: number + max_limit: number + enable_auth: number + } PgbouncerConfigResponse: { default_pool_size?: number ignore_startup_parameters?: string @@ -4151,6 +4359,23 @@ export interface components { DeleteObjectsBody: { paths: string[] } + GetStorageCredential: { + id: string + description: string + created_at: string + } + GetStorageCredentialsResponse: { + data: components['schemas']['GetStorageCredential'][] + } + CreateStorageCredentialBody: { + description: string + } + CreateStorageCredentialResponse: { + id: string + access_key: string + secret_key: string + description: string + } Invoice: { id: string invoice_pdf: string @@ -4388,6 +4613,11 @@ export interface components { public_key: string token_name?: string } + V1UpdateFunctionBody: { + name?: string + body?: string + verify_jwt?: boolean + } FunctionResponse: { id: string slug: string @@ -4402,6 +4632,12 @@ export interface components { entrypoint_path?: string import_map_path?: string } + V1CreateFunctionBody: { + slug: string + name: string + body: string + verify_jwt?: boolean + } SecretResponse: { name: string value: string @@ -4556,6 +4792,15 @@ export interface components { restriction_data?: components['schemas']['RestrictionData'] message?: string } + CreateAwsPartnerOrganizationBody: { + primary_email: string + name: string + } + AwsPartnerOrganizationResponse: { + id: number + slug: string + name: string + } GetMetricsBody: { /** @enum {string} */ metric: 'user_queries' @@ -4598,6 +4843,7 @@ export interface components { branch_name?: string git_branch?: string reset_on_push?: boolean + persistent?: boolean } BranchResponse: { id: string @@ -4608,11 +4854,18 @@ export interface components { git_branch?: string pr_number?: number reset_on_push: boolean + persistent: boolean /** @enum {string} */ status: 'CREATING_PROJECT' | 'RUNNING_MIGRATIONS' | 'MIGRATIONS_PASSED' | 'MIGRATIONS_FAILED' created_at: string updated_at: string } + BranchDeleteResponse: { + message: string + } + BranchResetResponse: { + message: string + } V1DatabaseResponse: { /** @description Database host */ host: string @@ -4637,6 +4890,19 @@ export interface components { */ created_at: string database?: components['schemas']['V1DatabaseResponse'] + /** @enum {string} */ + status: + | 'ACTIVE_HEALTHY' + | 'ACTIVE_UNHEALTHY' + | 'COMING_UP' + | 'GOING_DOWN' + | 'INACTIVE' + | 'INIT_FAILED' + | 'REMOVED' + | 'RESTORING' + | 'UNKNOWN' + | 'UPGRADING' + | 'PAUSING' } V1CreateProjectBody: { /** @description Database password */ @@ -4676,6 +4942,11 @@ export interface components { /** @deprecated */ kps_enabled?: boolean desired_instance_size?: components['schemas']['DesiredInstanceSize'] + /** + * @description Template URL used to create the project from the CLI. + * @example https://github.com/supabase/supabase/tree/master/examples/slack-clone/nextjs-slack-clone + */ + template_url?: string } ApiKeyResponse: { name: string @@ -4958,11 +5229,13 @@ export interface components { mailer_subjects_invite: string | null mailer_subjects_magic_link: string | null mailer_subjects_recovery: string | null + mailer_subjects_reauthentication: string | null mailer_templates_confirmation_content: string | null mailer_templates_email_change_content: string | null mailer_templates_invite_content: string | null mailer_templates_magic_link_content: string | null mailer_templates_recovery_content: string | null + mailer_templates_reauthentication_content: string | null mfa_max_enrolled_factors: number | null password_hibp_enabled: boolean | null password_min_length: number | null @@ -5034,11 +5307,13 @@ export interface components { mailer_subjects_recovery?: string mailer_subjects_email_change?: string mailer_subjects_magic_link?: string + mailer_subjects_reauthentication?: string mailer_templates_invite_content?: string mailer_templates_confirmation_content?: string mailer_templates_recovery_content?: string mailer_templates_email_change_content?: string mailer_templates_magic_link_content?: string + mailer_templates_reauthentication_content?: string mfa_max_enrolled_factors?: number uri_allow_list?: string external_anonymous_users_enabled?: boolean @@ -5099,6 +5374,10 @@ export interface components { hook_password_verification_attempt_uri?: string hook_custom_access_token_enabled?: boolean hook_custom_access_token_uri?: string + hook_send_sms_enabled?: boolean + hook_send_sms_uri?: string + hook_send_email_enabled?: boolean + hook_send_email_uri?: string external_apple_enabled?: boolean external_apple_client_id?: string external_apple_secret?: string @@ -5164,6 +5443,22 @@ export interface components { external_zoom_client_id?: string external_zoom_secret?: string } + CreateThirdPartyAuthBody: { + oidc_issuer_url?: string + jwks_url?: string + custom_jwks?: Record + } + ThirdPartyAuth: { + id: string + type: string + oidc_issuer_url?: string | null + jwks_url?: string | null + custom_jwks?: unknown + resolved_jwks?: unknown + inserted_at: string + updated_at: string + resolved_at?: string | null + } AttributeValue: { default?: Record | number | string | boolean name?: string @@ -5265,12 +5560,6 @@ export interface components { V1RestorePitrBody: { recovery_time_target_unix: number } - V1CreateFunctionBody: { - slug: string - name: string - body: string - verify_jwt?: boolean - } FunctionSlugResponse: { id: string slug: string @@ -5285,11 +5574,6 @@ export interface components { entrypoint_path?: string import_map_path?: string } - V1UpdateFunctionBody: { - name?: string - body?: string - verify_jwt?: boolean - } V1StorageBucketResponse: { id: string name: string @@ -5683,6 +5967,44 @@ export interface operations { } } } + /** Send upgrade survey to survey_responses table */ + SendUpgradeSurveyController_sendUpgradeSurvey: { + requestBody: { + content: { + 'application/json': components['schemas']['SendUpgradeSurveyBody'] + } + } + responses: { + 201: { + content: { + 'application/json': components['schemas']['SendFeedbackResponse'] + } + } + /** @description Failed to send upgrade survey */ + 500: { + content: never + } + } + } + /** Send feedback on docs */ + SendDocsFeedbackController_sendDocsFeedback: { + requestBody: { + content: { + 'application/json': components['schemas']['SendDocsFeedbackBody'] + } + } + responses: { + 201: { + content: { + 'application/json': components['schemas']['SendFeedbackResponse'] + } + } + /** @description Failed to send feedback for docs */ + 500: { + content: never + } + } + } /** Sign up with email and password */ SignUpController_signUp: { requestBody: { @@ -5903,7 +6225,13 @@ export interface operations { parameters: { path: { ref: string - template: 'confirmation' | 'email-change' | 'invite' | 'magic-link' | 'recovery' + template: + | 'confirmation' + | 'email-change' + | 'invite' + | 'magic-link' + | 'recovery' + | 'reauthentication' } } responses: { @@ -6019,6 +6347,24 @@ export interface operations { } } } + /** Enable usage of physical backups */ + BackupsController_enablePhysicalBackup: { + parameters: { + path: { + /** @description Project ref */ + ref: string + } + } + responses: { + 201: { + content: never + } + /** @description Failed to enable usage of physical backups */ + 500: { + content: never + } + } + } /** Download project backup */ BackupsController_downloadBackup: { parameters: { @@ -7932,32 +8278,22 @@ export interface operations { } } } - /** Run sql query */ + /** Lists project's warehouse queries from logflare */ QueryController_runQuery: { parameters: { - header: { - 'x-connection-encrypted': string - } path: { /** @description Project ref */ ref: string } } - requestBody: { - content: { - 'application/json': components['schemas']['RunQueryBody'] - } - } responses: { - 201: { - content: { - 'application/json': Record - } + 200: { + content: never } 403: { content: never } - /** @description Failed to run sql query */ + /** @description Failed to fetch warehouse endpoints */ 500: { content: never } @@ -9743,6 +10079,249 @@ export interface operations { } } } + /** Gets project's warehouse tenant from logflare */ + TenantController_getTenant: { + parameters: { + path: { + /** @description Project ref */ + ref: string + } + } + responses: { + 200: { + content: { + 'application/json': components['schemas']['LFUser'] + } + } + 403: { + content: never + } + /** @description Failed to fetch or provision warehouse tenant */ + 500: { + content: never + } + } + } + /** Lists project's warehouse collections from logflare */ + CollectionController_listCollections: { + parameters: { + path: { + /** @description Project ref */ + ref: string + } + } + responses: { + 200: { + content: { + 'application/json': components['schemas']['LFSource'][] + } + } + 403: { + content: never + } + /** @description Failed to fetch warehouse collections */ + 500: { + content: never + } + } + } + /** Create a warehouse collection */ + CollectionController_createCollection: { + responses: { + 201: { + content: { + 'application/json': components['schemas']['LFSource'] + } + } + 403: { + content: never + } + /** @description Failed to create warehouse collection */ + 500: { + content: never + } + } + } + /** Get a warehouse collection */ + CollectionController_getCollection: { + responses: { + 200: { + content: { + 'application/json': components['schemas']['LFSource'] + } + } + 403: { + content: never + } + /** @description Failed to fetch warehouse collection */ + 500: { + content: never + } + } + } + /** Delete a warehouse collection */ + CollectionController_deleteCollection: { + responses: { + 200: { + content: { + 'application/json': components['schemas']['LFSource'] + } + } + 403: { + content: never + } + /** @description Failed to delete warehouse collection */ + 500: { + content: never + } + } + } + /** Update a warehouse collection */ + CollectionController_updateCollection: { + responses: { + 200: { + content: { + 'application/json': components['schemas']['LFSource'] + } + } + 403: { + content: never + } + /** @description Failed to update warehouse collection */ + 500: { + content: never + } + } + } + /** Lists project's warehouse access tokens from logflare */ + AccessTokenController_listAccessTokens: { + parameters: { + path: { + /** @description Project ref */ + ref: string + } + } + responses: { + 200: { + content: { + 'application/json': components['schemas']['LFSource'][] + } + } + 403: { + content: never + } + /** @description Failed to fetch warehouse access tokens */ + 500: { + content: never + } + } + } + /** Create a warehouse access token */ + AccessTokenController_createAccessToken: { + responses: { + 201: { + content: { + 'application/json': components['schemas']['LFSource'] + } + } + 403: { + content: never + } + /** @description Failed to create warehouse access token */ + 500: { + content: never + } + } + } + /** Delete a warehouse access token */ + AccessTokenController_deleteAccessToken: { + responses: { + 200: { + content: { + 'application/json': components['schemas']['LFSource'] + } + } + 403: { + content: never + } + /** @description Failed to delete warehouse access token */ + 500: { + content: never + } + } + } + /** Lists project's warehouse endpoints from logflare */ + EndpointController_listEndpoints: { + parameters: { + path: { + /** @description Project ref */ + ref: string + } + } + responses: { + 200: { + content: { + 'application/json': components['schemas']['LFEndpoint'][] + } + } + 403: { + content: never + } + /** @description Failed to fetch warehouse endpoints */ + 500: { + content: never + } + } + } + /** Create a warehouse endpoint */ + EndpointController_createEndpoint: { + responses: { + 201: { + content: { + 'application/json': components['schemas']['LFEndpoint'] + } + } + 403: { + content: never + } + /** @description Failed to create warehouse endpoint */ + 500: { + content: never + } + } + } + /** Update a warehouse endpoint */ + EndpointController_updateEndpoint: { + responses: { + 200: { + content: { + 'application/json': components['schemas']['LFEndpoint'] + } + } + 403: { + content: never + } + /** @description Failed to update warehouse endpoint */ + 500: { + content: never + } + } + } + /** Delete a warehouse endpoint */ + EndpointController_deleteEndpoint: { + responses: { + 200: { + content: never + } + 403: { + content: never + } + /** @description Failed to delete warehouse endpoint */ + 500: { + content: never + } + } + } /** Gets project's pgbouncer config */ PgbouncerConfigController_getPgbouncerConfig: { parameters: { @@ -10529,6 +11108,80 @@ export interface operations { } } } + /** Gets project storage credentials */ + StorageS3CredentialsController_getAllCredentials: { + parameters: { + path: { + /** @description Project ref */ + ref: string + } + } + responses: { + 200: { + content: { + 'application/json': components['schemas']['GetStorageCredentialsResponse'] + } + } + 403: { + content: never + } + /** @description Failed to get project storage credentials */ + 500: { + content: never + } + } + } + /** Creates project storage credential */ + StorageS3CredentialsController_createCredential: { + parameters: { + path: { + /** @description Project ref */ + ref: string + } + } + requestBody: { + content: { + 'application/json': components['schemas']['CreateStorageCredentialBody'] + } + } + responses: { + 201: { + content: { + 'application/json': components['schemas']['CreateStorageCredentialResponse'] + } + } + 403: { + content: never + } + /** @description Failed to create project storage credential */ + 500: { + content: never + } + } + } + /** Deletes project storage credential */ + StorageS3CredentialsController_deleteCredential: { + parameters: { + path: { + /** @description Project ref */ + ref: string + /** @description Storage credential id */ + id: string + } + } + responses: { + 200: { + content: never + } + 403: { + content: never + } + /** @description Failed to delete project storage credential */ + 500: { + content: never + } + } + } /** Gets invoices for the given customer */ InvoicesController_getInvoices: { parameters: { @@ -11220,7 +11873,13 @@ export interface operations { parameters: { path: { ref: string - template: 'confirmation' | 'email-change' | 'invite' | 'magic-link' | 'recovery' + template: + | 'confirmation' + | 'email-change' + | 'invite' + | 'magic-link' + | 'recovery' + | 'reauthentication' } } responses: { @@ -11382,6 +12041,48 @@ export interface operations { } } } + /** + * Update a function + * @description Updates a function with the specified slug and project. + */ + SystemFunctionSlugController_updateFunction: { + parameters: { + query?: { + slug?: string + name?: string + verify_jwt?: boolean + import_map?: boolean + entrypoint_path?: string + import_map_path?: string + } + path: { + /** @description Project ref */ + ref: string + /** @description Function slug */ + function_slug: string + } + } + requestBody: { + content: { + 'application/json': components['schemas']['V1UpdateFunctionBody'] + 'application/vnd.denoland.eszip': components['schemas']['V1UpdateFunctionBody'] + } + } + responses: { + 200: { + content: { + 'application/json': components['schemas']['FunctionResponse'] + } + } + 403: { + content: never + } + /** @description Failed to update function with given slug */ + 500: { + content: never + } + } + } /** * List all functions * @description Returns all functions you've previously added to the specified project. @@ -11408,6 +12109,46 @@ export interface operations { } } } + /** + * Create a function + * @description Creates a function and adds it to the specified project. + */ + SystemFunctionsController_createFunction: { + parameters: { + query?: { + slug?: string + name?: string + verify_jwt?: boolean + import_map?: boolean + entrypoint_path?: string + import_map_path?: string + } + path: { + /** @description Project ref */ + ref: string + } + } + requestBody: { + content: { + 'application/json': components['schemas']['V1CreateFunctionBody'] + 'application/vnd.denoland.eszip': components['schemas']['V1CreateFunctionBody'] + } + } + responses: { + 201: { + content: { + 'application/json': components['schemas']['FunctionResponse'] + } + } + 403: { + content: never + } + /** @description Failed to create project's function */ + 500: { + content: never + } + } + } /** Deletes all Edge Functions from a project */ SystemFunctionsController_systemDeleteAllFunctions: { parameters: { @@ -11776,6 +12517,25 @@ export interface operations { } } } + /** Creates a partner organization */ + AwsPartnerOrganizationsSystemController_createPartnerOrganization: { + requestBody: { + content: { + 'application/json': components['schemas']['CreateAwsPartnerOrganizationBody'] + } + } + responses: { + 201: { + content: { + 'application/json': components['schemas']['AwsPartnerOrganizationResponse'] + } + } + /** @description Unexpected error creating a partner organization */ + 500: { + content: never + } + } + } /** Processes Vercel event */ VercelWebhooksController_processEvent: { parameters: { @@ -11889,7 +12649,9 @@ export interface operations { } responses: { 200: { - content: never + content: { + 'application/json': components['schemas']['BranchDeleteResponse'] + } } /** @description Failed to delete database branch */ 500: { @@ -11925,6 +12687,29 @@ export interface operations { } } } + /** + * Resets a database branch + * @description Resets the specified database branch + */ + BranchController_resetBranch: { + parameters: { + path: { + /** @description Branch ID */ + branch_id: string + } + } + responses: { + 201: { + content: { + 'application/json': components['schemas']['BranchResetResponse'] + } + } + /** @description Failed to reset database branch */ + 500: { + content: never + } + } + } /** * List all projects * @description Returns a list of all projects you've previously created. @@ -12877,6 +13662,89 @@ export interface operations { } } } + /** Lists all third-party auth integrations */ + ThirdPartyAuthController_listTPAForProject: { + parameters: { + path: { + /** @description Project ref */ + ref: string + } + } + responses: { + 200: { + content: { + 'application/json': components['schemas']['ThirdPartyAuth'][] + } + } + 403: { + content: never + } + } + } + /** Creates a new third-party auth integration */ + ThirdPartyAuthController_createTPAForProject: { + parameters: { + path: { + /** @description Project ref */ + ref: string + } + } + requestBody: { + content: { + 'application/json': components['schemas']['CreateThirdPartyAuthBody'] + } + } + responses: { + 201: { + content: { + 'application/json': components['schemas']['ThirdPartyAuth'] + } + } + 403: { + content: never + } + } + } + /** Get a third-party integration */ + ThirdPartyAuthController_getTPAForProject: { + parameters: { + path: { + /** @description Project ref */ + ref: string + tpa_id: string + } + } + responses: { + 200: { + content: { + 'application/json': components['schemas']['ThirdPartyAuth'] + } + } + 403: { + content: never + } + } + } + /** Removes a third-party auth integration */ + ThirdPartyAuthController_deleteTPAForProject: { + parameters: { + path: { + /** @description Project ref */ + ref: string + tpa_id: string + } + } + responses: { + 200: { + content: { + 'application/json': components['schemas']['ThirdPartyAuth'] + } + } + 403: { + content: never + } + } + } /** Lists all SSO providers */ ProvidersController_listAllProviders: { parameters: { diff --git a/apps/studio/data/auth/keys.ts b/apps/studio/data/auth/keys.ts index 69772361641..1fecbe4e947 100644 --- a/apps/studio/data/auth/keys.ts +++ b/apps/studio/data/auth/keys.ts @@ -4,7 +4,7 @@ export const authKeys = { params?: { page: number | undefined keywords: string | undefined - verified: string | undefined + filter: string | undefined } ) => ['auth', projectRef, 'users', ...(params ? [params] : [])] as const, authConfig: (projectRef: string | undefined) => ['auth', projectRef, 'config'] as const, diff --git a/apps/studio/data/auth/users-query.ts b/apps/studio/data/auth/users-query.ts index 8a9486f302a..9b8be7acc5e 100644 --- a/apps/studio/data/auth/users-query.ts +++ b/apps/studio/data/auth/users-query.ts @@ -1,33 +1,44 @@ import { useQuery, UseQueryOptions } from '@tanstack/react-query' +import type { components } from 'data/api' import { get, handleError } from 'data/fetchers' import type { ResponseError } from 'types' import { authKeys } from './keys' -import type { components } from 'data/api' + +type Filter = 'verified' | 'unverified' | 'anonymous' export type UsersVariables = { projectRef?: string + connectionString?: string page?: number keywords?: string - verified?: 'verified' | 'unverified' + filter?: Filter } export const USERS_PAGE_LIMIT = 10 export type User = components['schemas']['UserBody'] export async function getUsers( - { projectRef, page = 1, keywords = '', verified }: UsersVariables, + { projectRef, page = 1, keywords = '', filter }: UsersVariables, signal?: AbortSignal ) { if (!projectRef) throw new Error('Project ref is required') const limit = USERS_PAGE_LIMIT const offset = (page - 1) * 10 - const query: { limit: string; offset: string; keywords: string; verified?: string } = { + const query: { + limit: string + offset: string + keywords: string + verified?: Filter + } = { limit: limit.toString(), offset: offset.toString(), keywords, } - if (verified) query.verified = verified + + if (filter) { + query.verified = filter + } const { data, error } = await get(`/platform/auth/{ref}/users`, { params: { @@ -45,11 +56,21 @@ export type UsersData = Awaited> export type UsersError = ResponseError export const useUsersQuery = ( - { projectRef, page, keywords, verified }: UsersVariables, + { projectRef, page, keywords, filter, connectionString }: UsersVariables, { enabled = true, ...options }: UseQueryOptions = {} ) => useQuery( - authKeys.users(projectRef, { page, keywords, verified }), - ({ signal }) => getUsers({ projectRef, page, keywords, verified }, signal), + authKeys.users(projectRef, { page, keywords, filter }), + ({ signal }) => + getUsers( + { + projectRef, + page, + keywords, + filter, + connectionString, + }, + signal + ), { enabled: enabled && typeof projectRef !== 'undefined', ...options } ) diff --git a/apps/studio/data/branches/branch-reset-mutation.ts b/apps/studio/data/branches/branch-reset-mutation.ts new file mode 100644 index 00000000000..9637e3347da --- /dev/null +++ b/apps/studio/data/branches/branch-reset-mutation.ts @@ -0,0 +1,51 @@ +import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query' +import { toast } from 'react-hot-toast' + +import { post } from 'data/fetchers' +import type { ResponseError } from 'types' +import { branchKeys } from './keys' + +export type BranchResetVariables = { + id: string + projectRef: string +} + +export async function resetBranch({ id }: Pick) { + const { data, error } = await post('/v1/branches/{branch_id}/reset', { + params: { path: { branch_id: id } }, + }) + + if (error) throw error + return data +} + +type BranchResetData = Awaited> + +export const useBranchResetMutation = ({ + onSuccess, + onError, + ...options +}: Omit< + UseMutationOptions, + 'mutationFn' +> = {}) => { + const queryClient = useQueryClient() + return useMutation( + (vars) => resetBranch(vars), + { + async onSuccess(data, variables, context) { + const { projectRef } = variables + await queryClient.invalidateQueries(branchKeys.list(projectRef)) + await onSuccess?.(data, variables, context) + }, + async onError(data, variables, context) { + if (onError === undefined) { + toast.error(`Failed to reset branch: ${data.message}`) + } else { + onError(data, variables, context) + } + }, + ...options, + } + ) +} diff --git a/apps/studio/data/branches/branch-update-mutation.ts b/apps/studio/data/branches/branch-update-mutation.ts index 5ccec5ecbd8..a49d26359c9 100644 --- a/apps/studio/data/branches/branch-update-mutation.ts +++ b/apps/studio/data/branches/branch-update-mutation.ts @@ -10,9 +10,15 @@ export type BranchUpdateVariables = { projectRef: string branchName?: string gitBranch?: string + persistent?: boolean } -export async function updateBranch({ id, branchName, gitBranch }: BranchUpdateVariables) { +export async function updateBranch({ + id, + branchName, + gitBranch, + persistent, +}: BranchUpdateVariables) { const { data, error } = await patch('/v1/branches/{branch_id}', { params: { path: { branch_id: id }, @@ -20,6 +26,7 @@ export async function updateBranch({ id, branchName, gitBranch }: BranchUpdateVa body: { branch_name: branchName, git_branch: gitBranch, + persistent, }, }) diff --git a/apps/studio/data/content/content-upsert-mutation.ts b/apps/studio/data/content/content-upsert-mutation.ts index a3fe29ef1cd..06cf8f8f176 100644 --- a/apps/studio/data/content/content-upsert-mutation.ts +++ b/apps/studio/data/content/content-upsert-mutation.ts @@ -45,11 +45,14 @@ export type UpsertContentData = Awaited> export const useContentUpsertMutation = ({ onError, onSuccess, + invalidateQueriesOnSuccess = true, ...options }: Omit< UseMutationOptions, 'mutationFn' -> = {}) => { +> & { + invalidateQueriesOnSuccess?: boolean +} = {}) => { const queryClient = useQueryClient() return useMutation( @@ -57,7 +60,9 @@ export const useContentUpsertMutation = ({ { async onSuccess(data, variables, context) { const { projectRef } = variables - await queryClient.invalidateQueries(contentKeys.list(projectRef)) + if (invalidateQueriesOnSuccess) { + await queryClient.invalidateQueries(contentKeys.list(projectRef)) + } await onSuccess?.(data, variables, context) }, async onError(data, variables, context) { diff --git a/apps/studio/data/database-policies/database-policy-update-mutation.ts b/apps/studio/data/database-policies/database-policy-update-mutation.ts index 6accc7fdc9d..075873820c1 100644 --- a/apps/studio/data/database-policies/database-policy-update-mutation.ts +++ b/apps/studio/data/database-policies/database-policy-update-mutation.ts @@ -10,10 +10,10 @@ export type DatabasePolicyUpdateVariables = { connectionString?: string id: number payload: { - name: string - definition: string - check: string - roles: string[] + name?: string + definition?: string + check?: string + roles?: string[] } } diff --git a/apps/studio/data/database-roles/database-role-create-mutation.ts b/apps/studio/data/database-roles/database-role-create-mutation.ts index ecaaa44fa47..7601b21e30d 100644 --- a/apps/studio/data/database-roles/database-role-create-mutation.ts +++ b/apps/studio/data/database-roles/database-role-create-mutation.ts @@ -1,12 +1,12 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query' +import pgMeta from '@supabase/pg-meta' import { toast } from 'react-hot-toast' -import { post } from 'data/fetchers' import type { ResponseError } from 'types' -import { databaseRolesKeys } from './keys' -import type { components } from 'data/api' +import { executeSql } from 'data/sql/execute-sql-query' +import { invalidateRolesQuery } from './database-roles-query' -type CreateRoleBody = components['schemas']['CreateRoleBody'] +type CreateRoleBody = Parameters[0] export type DatabaseRoleCreateVariables = { projectRef: string @@ -19,20 +19,14 @@ export async function createDatabaseRole({ connectionString, payload, }: DatabaseRoleCreateVariables) { - let headers = new Headers() - if (connectionString) headers.set('x-connection-encrypted', connectionString) - - const { data, error } = await post('/platform/pg-meta/{ref}/roles', { - params: { - header: { 'x-connection-encrypted': connectionString! }, - path: { ref: projectRef }, - }, - body: payload, - headers, + const sql = pgMeta.roles.create(payload).sql + const { result } = await executeSql({ + projectRef, + connectionString, + sql, + queryKey: ['roles', 'create'], }) - - if (error) throw error - return data + return result } type DatabaseRoleCreateData = Awaited> @@ -52,7 +46,7 @@ export const useDatabaseRoleCreateMutation = ({ { async onSuccess(data, variables, context) { const { projectRef } = variables - await queryClient.invalidateQueries(databaseRolesKeys.list(projectRef)) + await invalidateRolesQuery(queryClient, projectRef) await onSuccess?.(data, variables, context) }, async onError(data, variables, context) { diff --git a/apps/studio/data/database-roles/database-role-delete-mutation.ts b/apps/studio/data/database-roles/database-role-delete-mutation.ts index ac0569614ab..c2e7ddda4e7 100644 --- a/apps/studio/data/database-roles/database-role-delete-mutation.ts +++ b/apps/studio/data/database-roles/database-role-delete-mutation.ts @@ -1,35 +1,34 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query' +import pgMeta from '@supabase/pg-meta' import { toast } from 'react-hot-toast' -import { del } from 'data/fetchers' import type { ResponseError } from 'types' -import { databaseRolesKeys } from './keys' +import { executeSql } from 'data/sql/execute-sql-query' +import { invalidateRolesQuery } from './database-roles-query' + +type DropRoleBody = Parameters[1] export type DatabaseRoleDeleteVariables = { projectRef: string connectionString?: string - id: string + id: number + payload?: DropRoleBody } export async function deleteDatabaseRole({ projectRef, connectionString, id, + payload, }: DatabaseRoleDeleteVariables) { - let headers = new Headers() - if (connectionString) headers.set('x-connection-encrypted', connectionString) - - const { data, error } = await del('/platform/pg-meta/{ref}/roles', { - params: { - header: { 'x-connection-encrypted': connectionString! }, - path: { ref: projectRef }, - query: { id }, - }, - headers, + const sql = pgMeta.roles.remove({ id }, payload).sql + const { result } = await executeSql({ + projectRef, + connectionString, + sql, + queryKey: ['roles', 'delete'], }) - - if (error) throw error - return data + return result } type DatabaseRoleDeleteData = Awaited> @@ -49,7 +48,7 @@ export const useDatabaseRoleDeleteMutation = ({ { async onSuccess(data, variables, context) { const { projectRef } = variables - await queryClient.invalidateQueries(databaseRolesKeys.list(projectRef)) + await invalidateRolesQuery(queryClient, projectRef) await onSuccess?.(data, variables, context) }, async onError(data, variables, context) { diff --git a/apps/studio/data/database-roles/database-role-update-mutation.ts b/apps/studio/data/database-roles/database-role-update-mutation.ts index c8876fb55e7..a0d90520269 100644 --- a/apps/studio/data/database-roles/database-role-update-mutation.ts +++ b/apps/studio/data/database-roles/database-role-update-mutation.ts @@ -1,12 +1,12 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query' +import pgMeta from '@supabase/pg-meta' import { toast } from 'react-hot-toast' -import { patch } from 'data/fetchers' import type { ResponseError } from 'types' -import { databaseRolesKeys } from './keys' -import type { components } from 'data/api' +import { executeSql } from 'data/sql/execute-sql-query' +import { invalidateRolesQuery } from './database-roles-query' -type UpdateRoleBody = components['schemas']['UpdateRoleBody'] +type UpdateRoleBody = Parameters[1] export type DatabaseRoleUpdateVariables = { projectRef: string @@ -21,21 +21,14 @@ export async function updateDatabaseRole({ id, payload, }: DatabaseRoleUpdateVariables) { - let headers = new Headers() - if (connectionString) headers.set('x-connection-encrypted', connectionString) - - const { data, error } = await patch('/platform/pg-meta/{ref}/roles', { - params: { - header: { 'x-connection-encrypted': connectionString! }, - path: { ref: projectRef }, - query: { id }, - }, - body: payload, - headers, + const sql = pgMeta.roles.update({ id }, payload).sql + const { result } = await executeSql({ + projectRef, + connectionString, + sql, + queryKey: ['roles', 'update'], }) - - if (error) throw error - return data + return result } type DatabaseRoleUpdateData = Awaited> @@ -55,7 +48,7 @@ export const useDatabaseRoleUpdateMutation = ({ { async onSuccess(data, variables, context) { const { projectRef } = variables - await queryClient.invalidateQueries(databaseRolesKeys.list(projectRef)) + await invalidateRolesQuery(queryClient, projectRef) await onSuccess?.(data, variables, context) }, async onError(data, variables, context) { diff --git a/apps/studio/data/database-roles/database-roles-query.ts b/apps/studio/data/database-roles/database-roles-query.ts index fc107b656a2..e347af6f236 100644 --- a/apps/studio/data/database-roles/database-roles-query.ts +++ b/apps/studio/data/database-roles/database-roles-query.ts @@ -1,49 +1,41 @@ -import { UseQueryOptions, useQuery } from '@tanstack/react-query' -import type { PostgresRole } from '@supabase/postgres-meta' +import pgMeta from '@supabase/pg-meta' +import { QueryClient, UseQueryOptions } from '@tanstack/react-query' +import { z } from 'zod' -import { get } from 'data/fetchers' -import type { ResponseError } from 'types' -import { databaseRolesKeys } from './keys' +import { ExecuteSqlData, useExecuteSqlQuery } from 'data/sql/execute-sql-query' +import { sqlKeys } from 'data/sql/keys' export type DatabaseRolesVariables = { projectRef?: string connectionString?: string } -export async function getDatabaseRoles( - { projectRef, connectionString }: DatabaseRolesVariables, - signal?: AbortSignal -) { - if (!projectRef) throw new Error('projectRef is required') +export type PgRole = z.infer - let headers = new Headers() - if (connectionString) headers.set('x-connection-encrypted', connectionString) +const pgMetaRolesList = pgMeta.roles.list() - const { data, error } = await get('/platform/pg-meta/{ref}/roles', { - params: { - header: { 'x-connection-encrypted': connectionString! }, - path: { ref: projectRef }, - }, - headers, - signal, - }) - - if (error) throw error - return data as PostgresRole[] -} - -export type DatabaseRolesData = Awaited> -export type DatabaseRolesError = ResponseError +export type DatabaseRolesData = z.infer +export type DatabaseRolesError = unknown export const useDatabaseRolesQuery = ( { projectRef, connectionString }: DatabaseRolesVariables, - { enabled = true, ...options }: UseQueryOptions = {} + options: UseQueryOptions = {} ) => - useQuery( - databaseRolesKeys.list(projectRef), - ({ signal }) => getDatabaseRoles({ projectRef, connectionString }, signal), + useExecuteSqlQuery( { - enabled: enabled && typeof projectRef !== 'undefined', + projectRef, + connectionString, + sql: pgMetaRolesList.sql, + queryKey: ['roles', 'list'], + }, + { + select(data) { + return data.result + }, ...options, } ) + +export function invalidateRolesQuery(client: QueryClient, projectRef: string | undefined) { + return client.invalidateQueries(sqlKeys.query(projectRef, ['roles', 'list'])) +} diff --git a/apps/studio/data/database-roles/keys.ts b/apps/studio/data/database-roles/keys.ts deleted file mode 100644 index 34ca7337bf4..00000000000 --- a/apps/studio/data/database-roles/keys.ts +++ /dev/null @@ -1,3 +0,0 @@ -export const databaseRolesKeys = { - list: (projectRef: string | undefined) => ['projects', projectRef, 'database-roles'] as const, -} diff --git a/apps/studio/data/database/enable-physical-backups-mutation.ts b/apps/studio/data/database/enable-physical-backups-mutation.ts new file mode 100644 index 00000000000..2dd09381db0 --- /dev/null +++ b/apps/studio/data/database/enable-physical-backups-mutation.ts @@ -0,0 +1,45 @@ +import { useMutation, UseMutationOptions } from '@tanstack/react-query' +import { toast } from 'react-hot-toast' + +import { post } from 'data/fetchers' +import type { ResponseError } from 'types' + +export type EnablePhysicalBackupsVariables = { + ref: string +} + +export async function enablePhysicalBackups({ ref }: EnablePhysicalBackupsVariables) { + const { data, error } = await post('/platform/database/{ref}/backups/enable-physical-backups', { + params: { path: { ref } }, + }) + if (error) throw error + return data +} + +type BackupRestoreData = Awaited> + +export const useEnablePhysicalBackupsMutation = ({ + onSuccess, + onError, + ...options +}: Omit< + UseMutationOptions, + 'mutationFn' +> = {}) => { + return useMutation( + (vars) => enablePhysicalBackups(vars), + { + async onSuccess(data, variables, context) { + await onSuccess?.(data, variables, context) + }, + async onError(data, variables, context) { + if (onError === undefined) { + toast.error(`Failed to enable physical backups: ${data.message}`) + } else { + onError(data, variables, context) + } + }, + ...options, + } + ) +} diff --git a/apps/studio/data/database/hooks-enable-mutation.ts b/apps/studio/data/database/hooks-enable-mutation.ts index 504e891968e..68563763610 100644 --- a/apps/studio/data/database/hooks-enable-mutation.ts +++ b/apps/studio/data/database/hooks-enable-mutation.ts @@ -3,7 +3,7 @@ import { toast } from 'react-hot-toast' import { post } from 'data/fetchers' import type { ResponseError } from 'types' -import { databaseKeys } from './keys' +import { invalidateSchemasQuery } from './schemas-query' export type HooksEnableVariables = { ref: string @@ -34,7 +34,7 @@ export const useHooksEnableMutation = ({ async onSuccess(data, variables, context) { const { ref } = variables await onSuccess?.(data, variables, context) - await queryClient.invalidateQueries(databaseKeys.schemaList(ref)) + await invalidateSchemasQuery(queryClient, ref) }, async onError(data, variables, context) { if (onError === undefined) { diff --git a/apps/studio/data/database/keys.ts b/apps/studio/data/database/keys.ts index dbaccaee8f9..f80f1063f18 100644 --- a/apps/studio/data/database/keys.ts +++ b/apps/studio/data/database/keys.ts @@ -1,6 +1,9 @@ export const databaseKeys = { - schemaList: (projectRef: string | undefined) => ['projects', projectRef, 'schemas'] as const, backups: (projectRef: string | undefined) => [projectRef, 'database', 'backups'] as const, poolingConfiguration: (projectRef: string | undefined) => [projectRef, 'database', 'pooling-configuration'] as const, + indexesFromQuery: (projectRef: string | undefined, query: string) => + ['projects', projectRef, 'indexes', { query }] as const, + indexAdvisorFromQuery: (projectRef: string | undefined, query: string) => + ['projects', projectRef, 'index-advisor', { query }] as const, } diff --git a/apps/studio/data/database/retrieve-index-advisor-result-query.ts b/apps/studio/data/database/retrieve-index-advisor-result-query.ts new file mode 100644 index 00000000000..9dae39adb96 --- /dev/null +++ b/apps/studio/data/database/retrieve-index-advisor-result-query.ts @@ -0,0 +1,59 @@ +import { useQuery, UseQueryOptions } from '@tanstack/react-query' + +import { executeSql } from 'data/sql/execute-sql-query' +import type { ResponseError } from 'types' +import { databaseKeys } from './keys' + +export type GetIndexAdvisorResultVariables = { + projectRef?: string + connectionString?: string + query: string +} + +export type GetIndexAdvisorResultResponse = { + errors: string[] + index_statements: string[] + startup_cost_before: number + startup_cost_after: number + total_cost_before: number + total_cost_after: number +} + +export async function getIndexAdvisorResult({ + projectRef, + connectionString, + query, +}: GetIndexAdvisorResultVariables) { + if (!projectRef) throw new Error('Project ref is required') + + const { result } = await executeSql({ + projectRef, + connectionString, + sql: `select * from index_advisor('${query}');`, + }) + return result[0] as GetIndexAdvisorResultResponse +} + +export type GetIndexAdvisorResultData = Awaited> +export type GetIndexAdvisorResultError = ResponseError + +export const useGetIndexAdvisorResult = ( + { projectRef, connectionString, query }: GetIndexAdvisorResultVariables, + { + enabled = true, + ...options + }: UseQueryOptions = {} +) => + useQuery( + databaseKeys.indexAdvisorFromQuery(projectRef, query), + () => getIndexAdvisorResult({ projectRef, connectionString, query }), + { + retry: false, + enabled: + enabled && + typeof projectRef !== 'undefined' && + typeof query !== 'undefined' && + (query.startsWith('select') || query.startsWith('SELECT')), + ...options, + } + ) diff --git a/apps/studio/data/database/retrieve-index-from-select-query.ts b/apps/studio/data/database/retrieve-index-from-select-query.ts new file mode 100644 index 00000000000..050b0aedd25 --- /dev/null +++ b/apps/studio/data/database/retrieve-index-from-select-query.ts @@ -0,0 +1,118 @@ +import { useQuery, UseQueryOptions } from '@tanstack/react-query' + +import { executeSql } from 'data/sql/execute-sql-query' +import type { ResponseError } from 'types' +import { databaseKeys } from './keys' + +export type GetInvolvedIndexesFromSelectQueryVariables = { + projectRef?: string + connectionString?: string + query: string +} + +export type GetInvolvedIndexesFromSelectQueryResponse = { + name: string + schema: string + table: string +} + +// [Joshen] This is experimental - hence why i'm chucking a create or replace query like this here + +export async function getInvolvedIndexesInSelectQuery({ + projectRef, + connectionString, + query, +}: GetInvolvedIndexesFromSelectQueryVariables) { + if (!projectRef) throw new Error('Project ref is required') + + try { + const { result } = await executeSql({ + projectRef, + connectionString, + sql: ` +CREATE OR REPLACE FUNCTION pg_temp.explain_query(query TEXT) RETURNS JSONB AS $$ +DECLARE + explain_result JSONB; + prepared_statement_name TEXT := 'query_to_explain'; + n_args INT; +BEGIN + -- Disallow multiple statements + IF query ILIKE '%;%' THEN + RAISE EXCEPTION 'Query must not contain a semicolon'; + END IF; + + -- Construct the parameterized query + EXECUTE 'PREPARE ' || prepared_statement_name || ' AS ' || query; + + -- Detect how many arguments are present in the prepared statement + SELECT COALESCE(array_length(parameter_types, 1), 0) + INTO n_args + FROM pg_prepared_statements + WHERE name = prepared_statement_name + LIMIT 1; + + -- Construct the EXECUTE statement with parameters using dynamic SQL construction + IF n_args > 0 THEN + EXECUTE 'EXPLAIN (FORMAT JSON) EXECUTE ' || prepared_statement_name || '(' || quote_literal($1) || ')' INTO explain_result; + ELSE + EXECUTE 'EXPLAIN (FORMAT JSON) EXECUTE ' || prepared_statement_name INTO explain_result; + END IF; + + -- Deallocate the prepared statement + EXECUTE 'DEALLOCATE ' || prepared_statement_name; + + -- Return the explain result + RETURN explain_result; +END; +$$ LANGUAGE plpgsql; +select pg_temp.explain_query('${query}') as plans; +`.trim(), + }) + + const involvedIndexes = result[0].plans + .filter((plan: any) => 'Index Name' in plan['Plan']) + .map((plan: any) => `'${plan['Plan']['Index Name']}'`) + + if (involvedIndexes.length === 0) return [] + + const { result: indexResult } = await executeSql({ + projectRef, + connectionString, + sql: `select schemaname as schema, tablename as table, indexname as name from pg_indexes where indexname in (${involvedIndexes.join(', ')});`, + }) + + return indexResult as GetInvolvedIndexesFromSelectQueryResponse[] + } catch (err) { + return [] + } +} + +export type GetInvolvedIndexesFromSelectQueryData = Awaited< + ReturnType +> +export type GetInvolvedIndexesFromSelectQueryError = ResponseError + +export const useGetIndexesFromSelectQuery = ( + { projectRef, connectionString, query }: GetInvolvedIndexesFromSelectQueryVariables, + { + enabled = true, + ...options + }: UseQueryOptions< + GetInvolvedIndexesFromSelectQueryData, + GetInvolvedIndexesFromSelectQueryError, + TData + > = {} +) => + useQuery( + databaseKeys.indexesFromQuery(projectRef, query), + () => getInvolvedIndexesInSelectQuery({ projectRef, connectionString, query }), + { + retry: false, + enabled: + enabled && + typeof projectRef !== 'undefined' && + typeof query !== 'undefined' && + (query.startsWith('select') || query.startsWith('SELECT')), + ...options, + } + ) diff --git a/apps/studio/data/database/schema-create-mutation.ts b/apps/studio/data/database/schema-create-mutation.ts index 4bdc1aca4f8..81499a34b97 100644 --- a/apps/studio/data/database/schema-create-mutation.ts +++ b/apps/studio/data/database/schema-create-mutation.ts @@ -1,9 +1,10 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query' +import pgMeta from '@supabase/pg-meta' import { toast } from 'react-hot-toast' -import { post } from 'data/fetchers' import type { ResponseError } from 'types' -import { databaseKeys } from './keys' +import { executeSql } from 'data/sql/execute-sql-query' +import { invalidateSchemasQuery } from './schemas-query' export type SchemaCreateVariables = { name: string @@ -12,23 +13,14 @@ export type SchemaCreateVariables = { } export async function createSchema({ name, projectRef, connectionString }: SchemaCreateVariables) { - if (!projectRef) throw new Error('projectRef is required') - if (!connectionString) throw new Error('Connection string is required') - - let headers = new Headers() - headers.set('x-connection-encrypted', connectionString) - - const { data, error } = await post('/platform/pg-meta/{ref}/schemas', { - params: { - header: { 'x-connection-encrypted': connectionString }, - path: { ref: projectRef }, - }, - body: { name, owner: 'postgres' }, - headers: Object.fromEntries(headers), + const sql = pgMeta.schemas.create({ name, owner: 'postgres' }).sql + const { result } = await executeSql({ + projectRef, + connectionString, + sql, + queryKey: ['schema', 'create'], }) - - if (error) throw error - return data + return result } type SchemaCreateData = Awaited> @@ -47,7 +39,7 @@ export const useSchemaCreateMutation = ({ { async onSuccess(data, variables, context) { const { projectRef } = variables - await queryClient.invalidateQueries(databaseKeys.schemaList(projectRef)) + await invalidateSchemasQuery(queryClient, projectRef) await onSuccess?.(data, variables, context) }, async onError(data, variables, context) { diff --git a/apps/studio/data/database/schemas-query.ts b/apps/studio/data/database/schemas-query.ts index 4fdbf7a1d51..e93928dabc1 100644 --- a/apps/studio/data/database/schemas-query.ts +++ b/apps/studio/data/database/schemas-query.ts @@ -1,61 +1,41 @@ -import { QueryClient, useQuery, UseQueryOptions } from '@tanstack/react-query' +import pgMeta from '@supabase/pg-meta' +import { QueryClient, UseQueryOptions } from '@tanstack/react-query' +import { z } from 'zod' -import type { components } from 'data/api' -import { get } from 'data/fetchers' -import type { ResponseError } from 'types' -import { databaseKeys } from './keys' +import { ExecuteSqlData, useExecuteSqlQuery } from 'data/sql/execute-sql-query' +import { sqlKeys } from 'data/sql/keys' export type SchemasVariables = { projectRef?: string connectionString?: string } -export type Schema = components['schemas']['PostgresSchema'] +export type Schema = z.infer -export async function getSchemas( - { projectRef, connectionString }: SchemasVariables, - signal?: AbortSignal -) { - if (!projectRef) { - throw new Error('projectRef is required') - } +const pgMetaSchemasList = pgMeta.schemas.list() - let headers = new Headers() - if (connectionString) headers.set('x-connection-encrypted', connectionString) - - const { data, error } = await get('/platform/pg-meta/{ref}/schemas', { - params: { - header: { - 'x-connection-encrypted': connectionString!, - }, - path: { - ref: projectRef, - }, - }, - headers: Object.fromEntries(headers), - signal, - }) - - if (error) { - throw error - } - - return data -} - -export type SchemasData = Awaited> -export type SchemasError = ResponseError +export type SchemasData = z.infer +export type SchemasError = unknown export const useSchemasQuery = ( { projectRef, connectionString }: SchemasVariables, - { enabled = true, ...options }: UseQueryOptions = {} + options: UseQueryOptions = {} ) => - useQuery( - databaseKeys.schemaList(projectRef), - ({ signal }) => getSchemas({ projectRef, connectionString }, signal), - { enabled: enabled && typeof projectRef !== 'undefined', staleTime: 0, ...options } + useExecuteSqlQuery( + { + projectRef, + connectionString, + sql: pgMetaSchemasList.sql, + queryKey: ['schemas', 'list'], + }, + { + select(data) { + return data.result + }, + ...options, + } ) export function invalidateSchemasQuery(client: QueryClient, projectRef: string | undefined) { - return client.invalidateQueries(databaseKeys.schemaList(projectRef)) + return client.invalidateQueries(sqlKeys.query(projectRef, ['schemas', 'list'])) } diff --git a/apps/studio/data/feedback/upgrade-survey-send.ts b/apps/studio/data/feedback/upgrade-survey-send.ts new file mode 100644 index 00000000000..2aa263d80db --- /dev/null +++ b/apps/studio/data/feedback/upgrade-survey-send.ts @@ -0,0 +1,59 @@ +import { useMutation, UseMutationOptions } from '@tanstack/react-query' +import toast from 'react-hot-toast' + +// import { post } from 'lib/common/fetch' +import { handleError, post } from 'data/fetchers' +import { API_URL } from 'lib/constants' +import type { ResponseError } from 'types' + +export type SendUpgradeFeedbackVariables = { + orgSlug?: string + prevPlan?: string + currentPlan?: string + reasons: string[] + message?: string +} + +export async function sendUpgradeFeedback({ + orgSlug, + prevPlan, + currentPlan, + reasons, + message, +}: SendUpgradeFeedbackVariables) { + const { data, error } = await post('/platform/feedback/upgrade', { + body: { + ...(orgSlug !== undefined && { orgSlug }), + ...(prevPlan !== undefined && { prevPlan }), + ...(currentPlan !== undefined && { currentPlan }), + reasons, + ...(message !== undefined && { additionalFeedback: message }), + }, + }) + if (error) handleError(error) + return data +} + +type SendUpgradeFeedbackData = Awaited> + +export const useSendUpgradeFeedbackMutation = ({ + onError, + ...options +}: Omit< + UseMutationOptions, + 'mutationFn' +> = {}) => { + return useMutation( + (vars) => sendUpgradeFeedback(vars), + { + async onError(data, variables, context) { + if (onError === undefined) { + toast.error(`Failed to submit upgrade survey: ${data.message}`) + } else { + onError(data, variables, context) + } + }, + ...options, + } + ) +} diff --git a/apps/studio/data/integrations/github-connections-query.ts b/apps/studio/data/integrations/github-connections-query.ts index 638445d0297..b173daa6a39 100644 --- a/apps/studio/data/integrations/github-connections-query.ts +++ b/apps/studio/data/integrations/github-connections-query.ts @@ -41,6 +41,6 @@ export const useGitHubConnectionsQuery = ( return useQuery( integrationKeys.githubConnectionsList(organizationId), ({ signal }) => getGitHubConnections({ organizationId }, signal), - { enabled, ...options } + { enabled: enabled && typeof organizationId !== 'undefined', ...options } ) } diff --git a/apps/studio/data/lint/keys.ts b/apps/studio/data/lint/keys.ts new file mode 100644 index 00000000000..7a59b16dce2 --- /dev/null +++ b/apps/studio/data/lint/keys.ts @@ -0,0 +1,3 @@ +export const lintKeys = { + lint: (projectRef: string | undefined) => ['projects', projectRef, 'lint'] as const, +} diff --git a/apps/studio/data/lint/lint-query.ts b/apps/studio/data/lint/lint-query.ts new file mode 100644 index 00000000000..938223f4b30 --- /dev/null +++ b/apps/studio/data/lint/lint-query.ts @@ -0,0 +1,815 @@ +import { UseQueryOptions, useQuery } from '@tanstack/react-query' + +import { executeSql } from '../sql/execute-sql-query' +import { lintKeys } from './keys' + +export const LINT_SQL = /* SQL */ `set local search_path = ''; + +( +with foreign_keys as ( + select + cl.relnamespace::regnamespace::text as schema_name, + cl.relname as table_name, + cl.oid as table_oid, + ct.conname as fkey_name, + ct.conkey as col_attnums + from + pg_catalog.pg_constraint ct + join pg_catalog.pg_class cl -- fkey owning table + on ct.conrelid = cl.oid + left join pg_catalog.pg_depend d + on d.objid = cl.oid + and d.deptype = 'e' + where + ct.contype = 'f' -- foreign key constraints + and d.objid is null -- exclude tables that are dependencies of extensions + and cl.relnamespace::regnamespace::text not in ( + 'pg_catalog', 'information_schema', 'auth', 'storage', 'vault', 'extensions' + ) +), +index_ as ( + select + pi.indrelid as table_oid, + indexrelid::regclass as index_, + string_to_array(indkey::text, ' ')::smallint[] as col_attnums + from + pg_catalog.pg_index pi + where + indisvalid +) +select + 'unindexed_foreign_keys' as name, + 'INFO' as level, + 'EXTERNAL' as facing, + array['PERFORMANCE'] as categories, + 'Identifies foreign key constraints without a covering index, which can impact database performance.' as description, + format( + 'Table \`%s.%s\` has a foreign key \`%s\` without a covering index. This can lead to suboptimal query performance.', + fk.schema_name, + fk.table_name, + fk.fkey_name + ) as detail, + 'https://supabase.com/docs/guides/database/database-linter?lint=0001_unindexed_foreign_keys' as remediation, + jsonb_build_object( + 'schema', fk.schema_name, + 'name', fk.table_name, + 'type', 'table', + 'fkey_name', fk.fkey_name, + 'fkey_columns', fk.col_attnums + ) as metadata, + format('unindexed_foreign_keys_%s_%s_%s', fk.schema_name, fk.table_name, fk.fkey_name) as cache_key +from + foreign_keys fk + left join index_ idx + on fk.table_oid = idx.table_oid + and fk.col_attnums = idx.col_attnums + left join pg_catalog.pg_depend dep + on idx.table_oid = dep.objid + and dep.deptype = 'e' +where + idx.index_ is null + and fk.schema_name not in ( + '_timescaledb_internal', 'auth', 'cron', 'extensions', 'graphql', 'graphql_public', 'information_schema', 'net', 'pgroonga', 'pgsodium', 'pgsodium_masks', 'pgtle', 'pgbouncer', 'pg_catalog', 'pgtle', 'realtime', 'repack', 'storage', 'supabase_functions', 'supabase_migrations', 'tiger', 'topology', 'vault' + ) + and dep.objid is null -- exclude tables owned by extensions +order by + fk.schema_name, + fk.table_name, + fk.fkey_name) +union all +( +select + 'auth_users_exposed' as name, + 'WARN' as level, + 'EXTERNAL' as facing, + array['SECURITY'] as categories, + 'Detects if auth.users is exposed to anon or authenticated roles via a view or materialized view in the public schema, potentially compromising user data security.' as description, + format( + 'View/Materialized View "%s" in the public schema may expose \`auth.users\` data to anon or authenticated roles.', + c.relname + ) as detail, + 'https://supabase.com/docs/guides/database/database-linter?lint=0002_auth_users_exposed' as remediation, + jsonb_build_object( + 'schema', 'public', + 'name', c.relname, + 'type', 'view', + 'exposed_to', array_remove(array_agg(DISTINCT case when pg_catalog.has_table_privilege('anon', c.oid, 'SELECT') then 'anon' when pg_catalog.has_table_privilege('authenticated', c.oid, 'SELECT') then 'authenticated' end), null) + ) as metadata, + format('auth_users_exposed_%s_%s', 'public', c.relname) as cache_key +from + -- Identify the oid for auth.users + pg_catalog.pg_class auth_users_pg_class + join pg_catalog.pg_namespace auth_users_pg_namespace + on auth_users_pg_class.relnamespace = auth_users_pg_namespace.oid + and auth_users_pg_class.relname = 'users' + and auth_users_pg_namespace.nspname = 'auth' + -- Depends on auth.users + join pg_catalog.pg_depend d + on d.refobjid = auth_users_pg_class.oid + join pg_catalog.pg_rewrite r + on r.oid = d.objid + join pg_catalog.pg_class c + on c.oid = r.ev_class + join pg_catalog.pg_namespace n + on n.oid = c.relnamespace + join pg_catalog.pg_class pg_class_auth_users + on d.refobjid = pg_class_auth_users.oid +where + d.deptype = 'n' + and n.nspname = 'public' + and ( + pg_catalog.has_table_privilege('anon', c.oid, 'SELECT') + or pg_catalog.has_table_privilege('authenticated', c.oid, 'SELECT') + ) + -- Exclude self + and c.relname <> '0002_auth_users_exposed' + -- There are 3 insecure configurations + and + ( + -- Materialized views don't support RLS so this is insecure by default + (c.relkind in ('m')) -- m for materialized view + or + -- Standard View, accessible to anon or authenticated that is security_definer + ( + c.relkind = 'v' -- v for view + -- Exclude security invoker views + and not ( + lower(coalesce(c.reloptions::text,'{}'))::text[] + && array[ + 'security_invoker=1', + 'security_invoker=true', + 'security_invoker=yes', + 'security_invoker=on' + ] + ) + ) + or + -- Standard View, security invoker, but no RLS enabled on auth.users + ( + c.relkind in ('v') -- v for view + -- is security invoker + and ( + lower(coalesce(c.reloptions::text,'{}'))::text[] + && array[ + 'security_invoker=1', + 'security_invoker=true', + 'security_invoker=yes', + 'security_invoker=on' + ] + ) + and not pg_class_auth_users.relrowsecurity + ) + ) +group by + c.relname, c.oid) +union all +( +with policies as ( + select + nsp.nspname as schema_name, + pb.tablename as table_name, + pc.relrowsecurity as is_rls_active, + polname as policy_name, + polpermissive as is_permissive, -- if not, then restrictive + (select array_agg(r::regrole) from unnest(polroles) as x(r)) as roles, + case polcmd + when 'r' then 'SELECT' + when 'a' then 'INSERT' + when 'w' then 'UPDATE' + when 'd' then 'DELETE' + when '*' then 'ALL' + end as command, + qual, + with_check + from + pg_catalog.pg_policy pa + join pg_catalog.pg_class pc + on pa.polrelid = pc.oid + join pg_catalog.pg_namespace nsp + on pc.relnamespace = nsp.oid + join pg_catalog.pg_policies pb + on pc.relname = pb.tablename + and nsp.nspname = pb.schemaname + and pa.polname = pb.policyname +) +select + 'auth_rls_initplan' as name, + 'WARN' as level, + 'EXTERNAL' as facing, + array['PERFORMANCE'] as categories, + 'Detects if calls to \`auth.()\` in RLS policies are being unnecessarily re-evaluated for each row' as description, + format( + 'Table \`%s.%s\` has a row level security policy \`%s\` that re-evaluates an auth.() for each row. This produces suboptimal query performance at scale. Resolve the issue by replacing \`auth.()\` with \`(select auth.())\`. See [docs](https://supabase.com/docs/guides/database/postgres/row-level-security#call-functions-with-select) for more info.', + schema_name, + table_name, + policy_name + ) as detail, + 'https://supabase.com/docs/guides/database/database-linter?lint=0003_auth_rls_initplan' as remediation, + jsonb_build_object( + 'schema', schema_name, + 'name', table_name, + 'type', 'table' + ) as metadata, + format('auth_rls_init_plan_%s_%s_%s', schema_name, table_name, policy_name) as cache_key +from + policies +where + is_rls_active + and schema_name not in ( + '_timescaledb_internal', 'auth', 'cron', 'extensions', 'graphql', 'graphql_public', 'information_schema', 'net', 'pgroonga', 'pgsodium', 'pgsodium_masks', 'pgtle', 'pgbouncer', 'pg_catalog', 'pgtle', 'realtime', 'repack', 'storage', 'supabase_functions', 'supabase_migrations', 'tiger', 'topology', 'vault' + ) + and ( + ( + -- Example: auth.uid() + qual ~ '(auth)\.(uid|jwt|role|email)\(\)' + -- Example: select auth.uid() + and lower(qual) !~ 'select\s+(auth)\.(uid|jwt|role|email)\(\)' + ) + or + ( + -- Example: auth.uid() + with_check ~ '(auth)\.(uid|jwt|role|email)\(\)' + -- Example: select auth.uid() + and lower(with_check) !~ 'select\s+(auth)\.(uid|jwt|role|email)\(\)' + ) + )) +union all +( +select + 'no_primary_key' as name, + 'INFO' as level, + 'EXTERNAL' as facing, + array['PERFORMANCE'] as categories, + 'Detects if a table does not have a primary key. Tables without a primary key can be inefficient to interact with at scale.' as description, + format( + 'Table \`%s.%s\` does not have a primary key', + pgns.nspname, + pgc.relname + ) as detail, + 'https://supabase.com/docs/guides/database/database-linter?lint=0004_no_primary_key' as remediation, + jsonb_build_object( + 'schema', pgns.nspname, + 'name', pgc.relname, + 'type', 'table' + ) as metadata, + format( + 'no_primary_key_%s_%s', + pgns.nspname, + pgc.relname + ) as cache_key +from + pg_catalog.pg_class pgc + join pg_catalog.pg_namespace pgns + on pgns.oid = pgc.relnamespace + left join pg_catalog.pg_index pgi + on pgi.indrelid = pgc.oid + left join pg_catalog.pg_depend dep + on pgc.oid = dep.objid + and dep.deptype = 'e' +where + pgc.relkind = 'r' -- regular tables + and pgns.nspname not in ( + 'auth', 'cron', 'extensions', 'graphql', 'graphql_public', 'information_schema', 'net', 'pgsodium', 'pgsodium_masks', 'pgbouncer', 'pg_catalog', 'pgtle', 'realtime', 'storage', 'supabase_functions', 'supabase_migrations', 'vault' + ) + and dep.objid is null -- exclude tables owned by extensions +group by + pgc.oid, + pgns.nspname, + pgc.relname +having + max(coalesce(pgi.indisprimary, false)::int) = 0) +union all +( +select + 'unused_index' as name, + 'INFO' as level, + 'EXTERNAL' as facing, + array['PERFORMANCE'] as categories, + 'Detects if an index has never been used and may be a candidate for removal.' as description, + format( + 'Index \`%s\` on table \`%s.%s\` has not been used', + psui.indexrelname, + psui.schemaname, + psui.relname + ) as detail, + 'https://supabase.com/docs/guides/database/database-linter?lint=0005_unused_index' as remediation, + jsonb_build_object( + 'schema', psui.schemaname, + 'name', psui.relname, + 'type', 'table' + ) as metadata, + format( + 'unused_index_%s_%s_%s', + psui.schemaname, + psui.relname, + psui.indexrelname + ) as cache_key + +from + pg_catalog.pg_stat_user_indexes psui + join pg_catalog.pg_index pi + on psui.indexrelid = pi.indexrelid + left join pg_catalog.pg_depend dep + on psui.relid = dep.objid + and dep.deptype = 'e' +where + psui.idx_scan = 0 + and not pi.indisunique + and not pi.indisprimary + and dep.objid is null -- exclude tables owned by extensions + and psui.schemaname not in ( + '_timescaledb_internal', 'auth', 'cron', 'extensions', 'graphql', 'graphql_public', 'information_schema', 'net', 'pgroonga', 'pgsodium', 'pgsodium_masks', 'pgtle', 'pgbouncer', 'pg_catalog', 'pgtle', 'realtime', 'repack', 'storage', 'supabase_functions', 'supabase_migrations', 'tiger', 'topology', 'vault' + )) +union all +( +select + 'multiple_permissive_policies' as name, + 'WARN' as level, + 'EXTERNAL' as facing, + array['PERFORMANCE'] as categories, + 'Detects if multiple permissive row level security policies are present on a table for the same \`role\` and \`action\` (e.g. insert). Multiple permissive policies are suboptimal for performance as each policy must be executed for every relevant query.' as description, + format( + 'Table \`%s.%s\` has multiple permissive policies for role \`%s\` for action \`%s\`. Policies include \`%s\`', + n.nspname, + c.relname, + r.rolname, + act.cmd, + array_agg(p.polname order by p.polname) + ) as detail, + 'https://supabase.com/docs/guides/database/database-linter?lint=0006_multiple_permissive_policies' as remediation, + jsonb_build_object( + 'schema', n.nspname, + 'name', c.relname, + 'type', 'table' + ) as metadata, + format( + 'multiple_permissive_policies_%s_%s_%s_%s', + n.nspname, + c.relname, + r.rolname, + act.cmd + ) as cache_key +from + pg_catalog.pg_policy p + join pg_catalog.pg_class c + on p.polrelid = c.oid + join pg_catalog.pg_namespace n + on c.relnamespace = n.oid + join pg_catalog.pg_roles r + on p.polroles @> array[r.oid] + or p.polroles = array[0::oid] + left join pg_catalog.pg_depend dep + on c.oid = dep.objid + and dep.deptype = 'e', + lateral ( + select x.cmd + from unnest(( + select + case p.polcmd + when 'r' then array['SELECT'] + when 'a' then array['INSERT'] + when 'w' then array['UPDATE'] + when 'd' then array['DELETE'] + when '*' then array['SELECT', 'INSERT', 'UPDATE', 'DELETE'] + else array['ERROR'] + end as actions + )) x(cmd) + ) act(cmd) +where + c.relkind = 'r' -- regular tables + and n.nspname not in ( + '_timescaledb_internal', 'auth', 'cron', 'extensions', 'graphql', 'graphql_public', 'information_schema', 'net', 'pgroonga', 'pgsodium', 'pgsodium_masks', 'pgtle', 'pgbouncer', 'pg_catalog', 'pgtle', 'realtime', 'repack', 'storage', 'supabase_functions', 'supabase_migrations', 'tiger', 'topology', 'vault' + ) + and r.rolname not like 'pg_%' + and r.rolname not like 'supabase%admin' + and not r.rolbypassrls + and dep.objid is null -- exclude tables owned by extensions +group by + n.nspname, + c.relname, + r.rolname, + act.cmd +having + count(1) > 1) +union all +( +select + 'policy_exists_rls_disabled' as name, + 'INFO' as level, + 'EXTERNAL' as facing, + array['SECURITY'] as categories, + 'Detects cases where row level security (RLS) policies have been created, but RLS has not been enabled for the underlying table.' as description, + format( + 'Table \`%s.%s\` has RLS policies but RLS is not enabled on the table. Policies include %s.', + n.nspname, + c.relname, + array_agg(p.polname order by p.polname) + ) as detail, + 'https://supabase.com/docs/guides/database/database-linter?lint=0007_policy_exists_rls_disabled' as remediation, + jsonb_build_object( + 'schema', n.nspname, + 'name', c.relname, + 'type', 'table' + ) as metadata, + format( + 'policy_exists_rls_disabled_%s_%s', + n.nspname, + c.relname + ) as cache_key +from + pg_catalog.pg_policy p + join pg_catalog.pg_class c + on p.polrelid = c.oid + join pg_catalog.pg_namespace n + on c.relnamespace = n.oid + left join pg_catalog.pg_depend dep + on c.oid = dep.objid + and dep.deptype = 'e' +where + c.relkind = 'r' -- regular tables + and n.nspname not in ( + '_timescaledb_internal', 'auth', 'cron', 'extensions', 'graphql', 'graphql_public', 'information_schema', 'net', 'pgroonga', 'pgsodium', 'pgsodium_masks', 'pgtle', 'pgbouncer', 'pg_catalog', 'pgtle', 'realtime', 'repack', 'storage', 'supabase_functions', 'supabase_migrations', 'tiger', 'topology', 'vault' + ) + -- RLS is disabled + and not c.relrowsecurity + and dep.objid is null -- exclude tables owned by extensions +group by + n.nspname, + c.relname) +union all +( +select + 'rls_enabled_no_policy' as name, + 'INFO' as level, + 'EXTERNAL' as facing, + array['SECURITY'] as categories, + 'Detects cases where row level security (RLS) has been enabled on a table but no RLS policies have been created.' as description, + format( + 'Table \`%s.%s\` has RLS enabled, but no policies exist', + n.nspname, + c.relname + ) as detail, + 'https://supabase.com/docs/guides/database/database-linter?lint=0008_rls_enabled_no_policy' as remediation, + jsonb_build_object( + 'schema', n.nspname, + 'name', c.relname, + 'type', 'table' + ) as metadata, + format( + 'rls_enabled_no_policy_%s_%s', + n.nspname, + c.relname + ) as cache_key +from + pg_catalog.pg_class c + left join pg_catalog.pg_policy p + on p.polrelid = c.oid + join pg_catalog.pg_namespace n + on c.relnamespace = n.oid + left join pg_catalog.pg_depend dep + on c.oid = dep.objid + and dep.deptype = 'e' +where + c.relkind = 'r' -- regular tables + and n.nspname not in ( + '_timescaledb_internal', 'auth', 'cron', 'extensions', 'graphql', 'graphql_public', 'information_schema', 'net', 'pgroonga', 'pgsodium', 'pgsodium_masks', 'pgtle', 'pgbouncer', 'pg_catalog', 'pgtle', 'realtime', 'repack', 'storage', 'supabase_functions', 'supabase_migrations', 'tiger', 'topology', 'vault' + ) + -- RLS is enabled + and c.relrowsecurity + and p.polname is null + and dep.objid is null -- exclude tables owned by extensions +group by + n.nspname, + c.relname) +union all +( +select + 'duplicate_index' as name, + 'WARN' as level, + 'EXTERNAL' as facing, + array['PERFORMANCE'] as categories, + 'Detects cases where two ore more identical indexes exist.' as description, + format( + 'Table \`%s.%s\` has identical indexes %s. Drop all except one of them', + n.nspname, + c.relname, + array_agg(pi.indexname order by pi.indexname) + ) as detail, + 'https://supabase.com/docs/guides/database/database-linter?lint=0009_duplicate_index' as remediation, + jsonb_build_object( + 'schema', n.nspname, + 'name', c.relname, + 'type', case + when c.relkind = 'r' then 'table' + when c.relkind = 'm' then 'materialized view' + else 'ERROR' + end, + 'indexes', array_agg(pi.indexname order by pi.indexname) + ) as metadata, + format( + 'duplicate_index_%s_%s_%s', + n.nspname, + c.relname, + array_agg(pi.indexname order by pi.indexname) + ) as cache_key +from + pg_catalog.pg_indexes pi + join pg_catalog.pg_namespace n + on n.nspname = pi.schemaname + join pg_catalog.pg_class c + on pi.tablename = c.relname + and n.oid = c.relnamespace + left join pg_catalog.pg_depend dep + on c.oid = dep.objid + and dep.deptype = 'e' +where + c.relkind in ('r', 'm') -- tables and materialized views + and n.nspname not in ( + '_timescaledb_internal', 'auth', 'cron', 'extensions', 'graphql', 'graphql_public', 'information_schema', 'net', 'pgroonga', 'pgsodium', 'pgsodium_masks', 'pgtle', 'pgbouncer', 'pg_catalog', 'pgtle', 'realtime', 'repack', 'storage', 'supabase_functions', 'supabase_migrations', 'tiger', 'topology', 'vault' + ) + and dep.objid is null -- exclude tables owned by extensions +group by + n.nspname, + c.relkind, + c.relname, + replace(pi.indexdef, pi.indexname, '') +having + count(*) > 1) +union all +( +select + 'security_definer_view' as name, + 'WARN' as level, + 'EXTERNAL' as facing, + array['SECURITY'] as categories, + 'Detects views that are SECURITY DEFINER meaning that they ignore row level security (RLS) policies.' as description, + format( + 'View \`%s.%s\` is SECURITY DEFINER', + n.nspname, + c.relname + ) as detail, + 'https://supabase.com/docs/guides/database/database-linter?lint=0010_security_definer_view' as remediation, + jsonb_build_object( + 'schema', n.nspname, + 'name', c.relname, + 'type', 'view' + ) as metadata, + format( + 'security_definer_view_%s_%s', + n.nspname, + c.relname + ) as cache_key +from + pg_catalog.pg_class c + join pg_catalog.pg_namespace n + on n.oid = c.relnamespace + left join pg_catalog.pg_depend dep + on c.oid = dep.objid + and dep.deptype = 'e' +where + c.relkind = 'v' + and n.nspname = 'public' + and dep.objid is null -- exclude views owned by extensions + and not ( + lower(coalesce(c.reloptions::text,'{}'))::text[] + && array[ + 'security_invoker=1', + 'security_invoker=true', + 'security_invoker=yes', + 'security_invoker=on' + ] + )) +union all +( +select + 'function_search_path_mutable' as name, + 'WARN' as level, + 'EXTERNAL' as facing, + array['SECURITY'] as categories, + 'Detects functions with a mutable search_path parameter which could fail to execute successfully for some roles.' as description, + format( + 'Function \`%s.%s\` has a role mutable search_path', + n.nspname, + p.proname + ) as detail, + 'https://supabase.com/docs/guides/database/database-linter?lint=0011_function_search_path_mutable' as remediation, + jsonb_build_object( + 'schema', n.nspname, + 'name', p.proname, + 'type', 'function' + ) as metadata, + format( + 'function_search_path_mutable_%s_%s_%s', + n.nspname, + p.proname, + md5(p.prosrc) -- required when function is polymorphic + ) as cache_key +from + pg_catalog.pg_proc p + join pg_catalog.pg_namespace n + on p.pronamespace = n.oid + left join pg_catalog.pg_depend dep + on p.oid = dep.objid + and dep.deptype = 'e' +where + n.nspname not in ( + '_timescaledb_internal', 'auth', 'cron', 'extensions', 'graphql', 'graphql_public', 'information_schema', 'net', 'pgroonga', 'pgsodium', 'pgsodium_masks', 'pgtle', 'pgbouncer', 'pg_catalog', 'pgtle', 'realtime', 'repack', 'storage', 'supabase_functions', 'supabase_migrations', 'tiger', 'topology', 'vault' + ) + and dep.objid is null -- exclude functions owned by extensions + -- Search path not set to '' + and not coalesce(p.proconfig, '{}') && array['search_path=""']) +union all +( +select + 'rls_disabled_in_public' as name, + 'ERROR' as level, + 'EXTERNAL' as facing, + array['SECURITY'] as categories, + 'Detects cases where row level security (RLS) has not been enabled on a table in the \`public\` schema.' as description, + format( + 'Table \`%s.%s\` is public, but RLS has not been enabled.', + n.nspname, + c.relname + ) as detail, + 'https://supabase.com/docs/guides/database/database-linter?lint=0013_rls_disabled_in_public' as remediation, + jsonb_build_object( + 'schema', n.nspname, + 'name', c.relname, + 'type', 'table' + ) as metadata, + format( + 'rls_disabled_in_public_%s_%s', + n.nspname, + c.relname + ) as cache_key +from + pg_catalog.pg_class c + join pg_catalog.pg_namespace n + on c.relnamespace = n.oid +where + c.relkind = 'r' -- regular tables + and n.nspname = 'public' + -- RLS is disabled + and not c.relrowsecurity) +union all +( +select + 'extension_in_public' as name, + 'WARN' as level, + 'EXTERNAL' as facing, + array['SECURITY'] as categories, + 'Detects extensions installed in the \`public\` schema.' as description, + format( + 'Extension \`%s\` is installed in the public schema. Move it to another schema.', + pe.extname + ) as detail, + 'https://supabase.com/docs/guides/database/database-linter?lint=0014_extension_in_public' as remediation, + jsonb_build_object( + 'schema', pe.extnamespace::regnamespace, + 'name', pe.extname, + 'type', 'extension' + ) as metadata, + format( + 'extension_in_public_%s', + pe.extname + ) as cache_key +from + pg_catalog.pg_extension pe +where + -- plpgsql is installed by default in public and outside user control + -- confirmed safe + pe.extname not in ('plpgsql') + and pe.extnamespace::regnamespace::text = 'public') +union all +( +with policies as ( + select + nsp.nspname as schema_name, + pb.tablename as table_name, + polname as policy_name, + qual, + with_check + from + pg_catalog.pg_policy pa + join pg_catalog.pg_class pc + on pa.polrelid = pc.oid + join pg_catalog.pg_namespace nsp + on pc.relnamespace = nsp.oid + join pg_catalog.pg_policies pb + on pc.relname = pb.tablename + and nsp.nspname = pb.schemaname + and pa.polname = pb.policyname +) +select + 'rls_references_user_metadata' as name, + 'ERROR' as level, + 'EXTERNAL' as facing, + array['SECURITY'] as categories, + 'Detects when Supabase Auth user_metadata is referenced insecurely in a row level security (RLS) policy.' as description, + format( + 'Table \`%s.%s\` has a row level security policy \`%s\` that references Supabase Auth \`user_metadata\`. \`user_metadata\` is editable by end users and should never be used in a security context.', + schema_name, + table_name, + policy_name + ) as detail, + 'https://supabase.com/docs/guides/database/database-linter?lint=0015_rls_references_user_metadata' as remediation, + jsonb_build_object( + 'schema', schema_name, + 'name', table_name, + 'type', 'table' + ) as metadata, + format('rls_references_user_metadata_%s_%s_%s', schema_name, table_name, policy_name) as cache_key +from + policies +where + schema_name not in ( + '_timescaledb_internal', 'auth', 'cron', 'extensions', 'graphql', 'graphql_public', 'information_schema', 'net', 'pgroonga', 'pgsodium', 'pgsodium_masks', 'pgtle', 'pgbouncer', 'pg_catalog', 'pgtle', 'realtime', 'repack', 'storage', 'supabase_functions', 'supabase_migrations', 'tiger', 'topology', 'vault' + ) + and ( + -- Example: auth.jwt() -> 'user_metadata' + -- False positives are possible, but it isn't practical to string match + -- If false positive rate is too high, this expression can iterate + qual like '%auth.jwt()%user_metadata%' + or qual like '%current_setting(%request.jwt.claims%)%user_metadata%' + or with_check like '%auth.jwt()%user_metadata%' + or with_check like '%current_setting(%request.jwt.claims%)%user_metadata%' + ))`.trim() + +// Array of all lint rules we handle right now. +export const LINT_TYPES = [ + 'unindexed_foreign_keys', + 'auth_users_exposed', + 'auth_rls_initplan', + 'no_primary_key', + 'unused_index', + 'multiple_permissive_policies', + 'policy_exists_rls_disabled', + 'rls_enabled_no_policy', + 'duplicate_index', + 'security_definer_view', + 'function_search_path_mutable', + 'rls_disabled_in_public', + 'extension_in_public', + 'auth_otp_long_expiry', + 'auth_otp_short_length', + 'rls_references_user_metadata', +] as const + +export type LINT_TYPES = (typeof LINT_TYPES)[number] + +export type Lint = { + name: LINT_TYPES + level: 'ERROR' | 'WARN' | 'INFO' + facing: string + categories: ['PERFORMANCE' | 'SECURITY'] + description: string + detail: string + remediation: any + metadata: { + schema?: string + name?: string + entity?: string + type?: 'table' | 'view' | 'auth' | 'function' | 'extension' + fkey_name?: string + fkey_columns?: number[] + } | null + cache_key: string +} + +export type ProjectLintsVariables = { + projectRef?: string + connectionString?: string +} + +const getProjectLints = async ( + { projectRef, connectionString }: ProjectLintsVariables, + signal?: AbortSignal +) => { + const { result } = await executeSql( + { + projectRef, + connectionString, + sql: LINT_SQL, + queryKey: lintKeys.lint(projectRef), + }, + signal + ) + + return result +} + +export type ProjectLintsData = Lint[] +export type ProjectLintsError = unknown + +export const useProjectLintsQuery = ( + { projectRef, connectionString }: ProjectLintsVariables, + { enabled, ...options }: UseQueryOptions = {} +) => + useQuery( + lintKeys.lint(projectRef), + ({ signal }) => getProjectLints({ projectRef, connectionString }, signal), + { + enabled: enabled && typeof projectRef !== 'undefined', + ...options, + } + ) diff --git a/apps/studio/data/sql/execute-sql-query.ts b/apps/studio/data/sql/execute-sql-query.ts index 5e8b4fbf8a1..b3aec849476 100644 --- a/apps/studio/data/sql/execute-sql-query.ts +++ b/apps/studio/data/sql/execute-sql-query.ts @@ -52,7 +52,7 @@ export async function executeSql( }, body: { query: sql }, headers: Object.fromEntries(headers), - }) + } as any) // Needed to fix generated api types for now if (error) { if ( diff --git a/apps/studio/data/sql/format-sql-query.ts b/apps/studio/data/sql/format-sql-query.ts index 06254c55d40..21fb9de81d4 100644 --- a/apps/studio/data/sql/format-sql-query.ts +++ b/apps/studio/data/sql/format-sql-query.ts @@ -21,10 +21,7 @@ export async function formatQuery( { query: sql }, { headers: Object.fromEntries(headers), signal } ) - if (response.error) { - throw response.error - } - + if (response.error) throw response.error return { result: response } } diff --git a/apps/studio/data/storage/s3-access-key-create-mutation.ts b/apps/studio/data/storage/s3-access-key-create-mutation.ts new file mode 100644 index 00000000000..c97b186d714 --- /dev/null +++ b/apps/studio/data/storage/s3-access-key-create-mutation.ts @@ -0,0 +1,47 @@ +import { useMutation, useQueryClient } from '@tanstack/react-query' +import { storageCredentialsKeys } from './s3-access-key-keys' +import { post } from 'data/fetchers' + +type CreateS3AccessKeyCredential = { + description: string + projectRef?: string +} +const createS3AccessKeyCredential = async ({ + description, + projectRef, +}: CreateS3AccessKeyCredential) => { + if (!projectRef) { + throw new Error('projectRef is required') + } + + const res = await post('/platform/storage/{ref}/credentials', { + params: { + path: { + ref: projectRef, + }, + }, + body: { + description, + }, + }) + + return res +} + +type S3AccessKeyCreateMutation = { + projectRef?: string +} + +export function useS3AccessKeyCreateMutation({ projectRef }: S3AccessKeyCreateMutation) { + const queryClient = useQueryClient() + + const keys = storageCredentialsKeys.credentials(projectRef) + + return useMutation({ + mutationFn: ({ description }: { description: string }) => + createS3AccessKeyCredential({ description, projectRef }), + onSettled: () => { + queryClient.invalidateQueries(keys) + }, + }) +} diff --git a/apps/studio/data/storage/s3-access-key-delete-mutation.ts b/apps/studio/data/storage/s3-access-key-delete-mutation.ts new file mode 100644 index 00000000000..06fef9a3717 --- /dev/null +++ b/apps/studio/data/storage/s3-access-key-delete-mutation.ts @@ -0,0 +1,38 @@ +import { useMutation, useQueryClient } from '@tanstack/react-query' +import { storageCredentialsKeys } from './s3-access-key-keys' +import { del } from 'data/fetchers' + +type S3AccessKeyDeleteMutation = { + projectRef?: string + id?: string +} + +const deleteS3AccessKeyCredential = async ({ projectRef, id }: S3AccessKeyDeleteMutation) => { + if (!projectRef || !id) { + throw new Error('projectRef and id are required') + } + + const res = await del('/platform/storage/{ref}/credentials/{id}', { + params: { + path: { + ref: projectRef, + id, + }, + }, + }) + + return res +} + +export function useS3AccessKeyDeleteMutation({ projectRef }: S3AccessKeyDeleteMutation) { + const queryClient = useQueryClient() + + const keys = storageCredentialsKeys.credentials(projectRef) + + return useMutation({ + mutationFn: ({ id }: { id: string }) => deleteS3AccessKeyCredential({ projectRef, id }), + onSettled: () => { + queryClient.invalidateQueries(keys) + }, + }) +} diff --git a/apps/studio/data/storage/s3-access-key-keys.ts b/apps/studio/data/storage/s3-access-key-keys.ts new file mode 100644 index 00000000000..cdaf774b7c2 --- /dev/null +++ b/apps/studio/data/storage/s3-access-key-keys.ts @@ -0,0 +1,4 @@ +export const storageCredentialsKeys = { + credentials: (projectRef: string | undefined) => + ['projects', projectRef, 'storage-credentials'] as const, +} diff --git a/apps/studio/data/storage/s3-access-key-query.ts b/apps/studio/data/storage/s3-access-key-query.ts new file mode 100644 index 00000000000..9c8bd3e89b4 --- /dev/null +++ b/apps/studio/data/storage/s3-access-key-query.ts @@ -0,0 +1,45 @@ +import { useQuery } from '@tanstack/react-query' +import { storageCredentialsKeys } from './s3-access-key-keys' +import { get } from 'data/fetchers' + +type FetchStorageCredentials = { + projectRef?: string +} +async function fetchStorageCredentials({ projectRef }: FetchStorageCredentials) { + if (!projectRef) { + throw new Error('projectRef is required') + } + + const res = await get('/platform/storage/{ref}/credentials', { + params: { + path: { + ref: projectRef, + }, + }, + }) + + // Generated types by openapi are wrong so we need to cast it. + return res.data as any as { + data: { + id: string + created_at: string + access_key: string + description: string + }[] + } +} + +type StorageCredentialsQuery = { + projectRef?: string +} +export function useStorageCredentialsQuery({ projectRef }: StorageCredentialsQuery) { + const keys = storageCredentialsKeys.credentials(projectRef) + + const query = useQuery({ + queryKey: keys, + queryFn: () => fetchStorageCredentials({ projectRef }), + enabled: projectRef !== undefined, + }) + + return query +} diff --git a/apps/studio/data/tables/table-create-mutation.ts b/apps/studio/data/tables/table-create-mutation.ts index ad99da6c144..9678ed1e4e1 100644 --- a/apps/studio/data/tables/table-create-mutation.ts +++ b/apps/studio/data/tables/table-create-mutation.ts @@ -50,7 +50,10 @@ export const useTableCreateMutation = ({ async onSuccess(data, variables, context) { const { projectRef, payload } = variables - await queryClient.invalidateQueries(tableKeys.list(projectRef, payload.schema)) + await Promise.all([ + queryClient.invalidateQueries(tableKeys.list(projectRef, payload.schema, true)), + queryClient.invalidateQueries(tableKeys.list(projectRef, payload.schema, false)), + ]) await onSuccess?.(data, variables, context) }, async onError(data, variables, context) { diff --git a/apps/studio/data/tables/table-delete-mutation.ts b/apps/studio/data/tables/table-delete-mutation.ts index 1f445aca64d..42de4ddbc98 100644 --- a/apps/studio/data/tables/table-delete-mutation.ts +++ b/apps/studio/data/tables/table-delete-mutation.ts @@ -55,7 +55,8 @@ export const useTableDeleteMutation = ({ async onSuccess(data, variables, context) { const { id, projectRef, schema } = variables await Promise.all([ - queryClient.invalidateQueries(tableKeys.list(projectRef, schema)), + queryClient.invalidateQueries(tableKeys.list(projectRef, schema, true)), + queryClient.invalidateQueries(tableKeys.list(projectRef, schema, false)), queryClient.invalidateQueries(tableKeys.table(projectRef, id)), queryClient.invalidateQueries(entityTypeKeys.list(projectRef)), // invalidate all views from this schema diff --git a/apps/studio/hooks/analytics/useDbQuery.tsx b/apps/studio/hooks/analytics/useDbQuery.tsx index c0d2d99ea34..6c13374ea53 100644 --- a/apps/studio/hooks/analytics/useDbQuery.tsx +++ b/apps/studio/hooks/analytics/useDbQuery.tsx @@ -10,6 +10,7 @@ import { executeSql } from 'data/sql/execute-sql-query' export interface DbQueryHook { isLoading: boolean + isRefetching: boolean error: string data: T[] params: BaseReportParams @@ -59,7 +60,8 @@ const useDbQuery = ( return { error, data, - isLoading: isLoading || isRefetching, + isLoading, + isRefetching, params, runQuery: refetch, resolvedSql, diff --git a/apps/studio/hooks/ui/useUrlState.ts b/apps/studio/hooks/ui/useUrlState.ts index ef8bf5c0657..d08217df167 100644 --- a/apps/studio/hooks/ui/useUrlState.ts +++ b/apps/studio/hooks/ui/useUrlState.ts @@ -1,11 +1,11 @@ -import { useCallback } from 'react' import { useRouter } from 'next/router' +import { Dispatch, SetStateAction, useCallback, useMemo } from 'react' export type UrlStateParams = { [k: string]: string | string[] | undefined } -export function useUrlState({ +export function useUrlState({ replace = true, arrayKeys = [], }: { @@ -14,22 +14,26 @@ export function useUrlState({ */ replace?: boolean arrayKeys?: string[] -} = {}) { - const arrayKeysSet = new Set(arrayKeys) +} = {}): [ValueParams, Dispatch>] { + const stringifiedArrayKeys = JSON.stringify(arrayKeys) + // eslint-disable-next-line react-hooks/exhaustive-deps + const arrayKeysSet = useMemo(() => new Set(arrayKeys), [stringifiedArrayKeys]) const router = useRouter() - const params: UrlStateParams = Object.fromEntries( - Object.entries(router.query).map(([key, value]) => { - if (arrayKeysSet.has(key)) { - return Array.isArray(value) ? [key, value] : [key, [value]] - } + const params: ValueParams = useMemo(() => { + return Object.fromEntries( + Object.entries(router.query).map(([key, value]) => { + if (arrayKeysSet.has(key)) { + return Array.isArray(value) ? [key, value] : [key, [value]] + } - return [key, value] - }) - ) + return [key, value] + }) + ) + }, [arrayKeysSet, router.query]) - const setParams = useCallback( - (newParams: UrlStateParams | ((previousParams: UrlStateParams) => UrlStateParams)) => { + const setParams: Dispatch> = useCallback( + (newParams) => { const nextParams = typeof newParams === 'function' ? newParams(params) : newParams let newQuery = Object.fromEntries( Object.entries({ ...params, ...nextParams }).filter(([, value]) => Boolean(value)) diff --git a/apps/studio/lib/constants/index.ts b/apps/studio/lib/constants/index.ts index d0388fd4c7d..0e55cf6dc87 100644 --- a/apps/studio/lib/constants/index.ts +++ b/apps/studio/lib/constants/index.ts @@ -48,6 +48,10 @@ export const LOCAL_STORAGE_KEYS = { PGBOUNCER_IPV6_DEPRECATION_WARNING: 'pgbouncer-ipv6-deprecation-warning-dismissed', VERCEL_IPV6_DEPRECATION_WARNING: 'vercel-ipv6-deprecation-warning-dismissed', PGBOUNCER_DEPRECATION_WARNING: 'pgbouncer-deprecation-warning-dismissed', + + PROJECT_LINT_IGNORE_LIST: 'supabase-project-lint-ignore-list', + + QUERY_PERF_SHOW_BOTTOM_SECTION: 'supabase-query-perf-show-bottom-section', } export const OPT_IN_TAGS = { diff --git a/apps/studio/lib/constants/metrics.tsx b/apps/studio/lib/constants/metrics.tsx index 8e26b057e86..39ef4556079 100644 --- a/apps/studio/lib/constants/metrics.tsx +++ b/apps/studio/lib/constants/metrics.tsx @@ -1,36 +1,42 @@ -import { IconActivity, IconArchive, IconDatabase, IconKey, IconHeart } from 'ui' +import { Auth, Realtime, Storage } from 'icons' +import { ActivityIcon, DatabaseIcon, ServerIcon, HeartIcon } from 'lucide-react' export const METRIC_CATEGORIES = { API: { label: 'All API usage', - icon: , + icon: , key: 'api', }, API_DATABASE: { label: 'Database API', - icon: , + icon: , key: 'api_database', }, API_AUTH: { label: 'Auth API', - icon: , + icon: , key: 'api_auth', }, API_STORAGE: { label: 'Storage API', - icon: , + icon: , key: 'api_storage', }, API_REALTIME: { label: 'Realtime API', - icon: '', + icon: , key: 'api_realtime', }, INSTANCE: { label: 'Instance health', - icon: , + icon: , key: 'instance', }, + SUPAVISOR: { + label: 'Supavisor', + icon: , + key: 'supavisor', + }, } export const METRICS = [ @@ -314,6 +320,14 @@ export const METRICS = [ provider: 'daily-stats', category: METRIC_CATEGORIES.API, }, + + /** Supavisor */ + { + key: 'total_supavisor_egress_bytes', + label: 'Supavisor Egress', + provider: 'daily-stats', + category: METRIC_CATEGORIES.SUPAVISOR, + }, ] export const TIME_PERIODS_BILLING = [ diff --git a/apps/studio/lib/gotrue.ts b/apps/studio/lib/gotrue.ts index 140cddcfe22..dc77fa3d5d0 100644 --- a/apps/studio/lib/gotrue.ts +++ b/apps/studio/lib/gotrue.ts @@ -1,4 +1,4 @@ -import type { Session, User } from '@supabase/gotrue-js' +import type { Session, User } from '@supabase/auth-js' import { gotrueClient } from 'common' export const auth = gotrueClient diff --git a/apps/studio/lib/role-impersonation.ts b/apps/studio/lib/role-impersonation.ts index 4901119789a..77a9c1a4439 100644 --- a/apps/studio/lib/role-impersonation.ts +++ b/apps/studio/lib/role-impersonation.ts @@ -49,6 +49,7 @@ function getPostgrestClaims(projectRef: string, role: PostgrestImpersonationRole session_id: uuidv4(), sub: user.id, user_metadata: user.raw_user_meta_data, + is_anonymous: user.is_anonymous, } } diff --git a/apps/studio/lib/schemas.ts b/apps/studio/lib/schemas.ts index 16cdc6231d4..97dedc72055 100644 --- a/apps/studio/lib/schemas.ts +++ b/apps/studio/lib/schemas.ts @@ -5,5 +5,10 @@ import YupPassword from 'yup-password' YupPassword(yup) export const passwordSchema = yup.object({ - password: yup.string().password().required().label('Password'), + password: yup + .string() + .password() + .required() + .max(72, 'Password cannot exceed 72 characters') + .label('Password'), }) diff --git a/apps/studio/lib/vercelConfigs.ts b/apps/studio/lib/vercelConfigs.ts index d0dd57aa583..a8787eb79f1 100644 --- a/apps/studio/lib/vercelConfigs.ts +++ b/apps/studio/lib/vercelConfigs.ts @@ -186,11 +186,11 @@ create policy "Public profiles are viewable by everyone." create policy "Users can insert their own profile." on profiles for insert - with check ( auth.uid() = id ); + with check ( (select auth.uid()) = id ); create policy "Users can update own profile." on profiles for update - using ( auth.uid() = id ); + using ( (select auth.uid()) = id ); -- Create a trigger to sync profiles and auth.users create function public.handle_new_user() @@ -249,7 +249,7 @@ create policy "Posts are viewable by everyone." create policy "Users can post as themselves." on posts for insert - with check ( auth.uid() = "authorId" ); + with check ( (select auth.uid()) = "authorId" ); -- Create a table for sites create table sites ( @@ -269,7 +269,7 @@ create policy "Sites are viewable by everyone." create policy "Users can create their own sites." on sites for insert - with check ( auth.uid() = "ownerId" ); + with check ( (select auth.uid()) = "ownerId" ); -- Create a table for votes create table votes ( @@ -289,11 +289,11 @@ create policy "Votes are viewable by everyone" create policy "Users can vote as themselves" on votes for insert - with check (auth.uid() = "userId"); + with check ((select auth.uid()) = "userId"); create policy "Users can update their own votes" on votes for update - using ( auth.uid() = "userId" ); + using ( (select auth.uid()) = "userId" ); -- Set up Realtime! diff --git a/apps/studio/localStores/storageExplorer/StorageExplorerStore.tsx b/apps/studio/localStores/storageExplorer/StorageExplorerStore.tsx index fd525d6b9b0..88f72d9052e 100644 --- a/apps/studio/localStores/storageExplorer/StorageExplorerStore.tsx +++ b/apps/studio/localStores/storageExplorer/StorageExplorerStore.tsx @@ -1188,15 +1188,15 @@ class StorageExplorerStore { const files = await this.getAllItemsAlongFolder(folder) await this.deleteFiles(files, isDeleteFolder) - const isFolderOpen = this.openedFolders[this.openedFolders.length - 1]?.name === folder.name - if (isFolderOpen) { - this.popColumnAtIndex(folder.columnIndex) - this.popOpenedFoldersAtIndex(folder.columnIndex - 1) - } + this.popColumnAtIndex(folder.columnIndex) + this.popOpenedFoldersAtIndex(folder.columnIndex - 1) - const parentFolderPrefix = this.openedFolders.map((folder) => folder.name).join('/') - if (parentFolderPrefix.length > 0) { - await this.validateParentFolderEmpty(parentFolderPrefix) + if (folder.columnIndex > 0) { + const parentFolderPrefix = this.openedFolders + .slice(0, folder.columnIndex) + .map((folder) => folder.name) + .join('/') + if (parentFolderPrefix.length > 0) await this.validateParentFolderEmpty(parentFolderPrefix) } await this.refetchAllOpenedFolders() diff --git a/apps/studio/next.config.js b/apps/studio/next.config.js index 0c33363bf66..e5a71a47086 100644 --- a/apps/studio/next.config.js +++ b/apps/studio/next.config.js @@ -24,6 +24,11 @@ if (SUPABASE_URL) { SUPABASE_LOCAL_PROJECTS_URL_WS = `ws://${wsUrl} wss://${wsUrl}` } +// Needed to test docs search in local dev +const SUPABASE_DOCS_PROJECT_URL = process.env.NEXT_PUBLIC_SUPABASE_URL + ? new URL(process.env.NEXT_PUBLIC_SUPABASE_URL).origin + : '' + const SUPABASE_STAGING_PROJECTS_URL = 'https://*.supabase.red' const SUPABASE_STAGING_PROJECTS_URL_WS = 'wss://*.supabase.red' const SUPABASE_COM_URL = 'https://supabase.com' @@ -58,7 +63,7 @@ const csp = [ process.env.NEXT_PUBLIC_ENVIRONMENT === 'local' || process.env.NEXT_PUBLIC_ENVIRONMENT === 'staging' ? [ - `default-src 'self' ${DEFAULT_SRC_URLS} ${SUPABASE_STAGING_PROJECTS_URL} ${SUPABASE_STAGING_PROJECTS_URL_WS} ${VERCEL_LIVE_URL} ${PUSHER_URL} ${PUSHER_URL_WS};`, + `default-src 'self' ${DEFAULT_SRC_URLS} ${SUPABASE_STAGING_PROJECTS_URL} ${SUPABASE_STAGING_PROJECTS_URL_WS} ${VERCEL_LIVE_URL} ${PUSHER_URL} ${PUSHER_URL_WS} ${SUPABASE_DOCS_PROJECT_URL};`, `script-src 'self' 'unsafe-eval' 'unsafe-inline' ${SCRIPT_SRC_URLS} ${VERCEL_LIVE_URL};`, `frame-src 'self' ${FRAME_SRC_URLS} ${VERCEL_LIVE_URL};`, `img-src 'self' blob: data: ${IMG_SRC_URLS} ${SUPABASE_STAGING_PROJECTS_URL} ${VERCEL_URL};`, @@ -186,6 +191,11 @@ const nextConfig = { destination: '/project/:ref/database/tables', permanent: true, }, + { + source: '/project/:ref/database/replication', + destination: '/project/:ref/database/publications', + permanent: true, + }, { source: '/project/:ref/database/graphiql', destination: '/project/:ref/api/graphiql', @@ -344,6 +354,26 @@ const nextConfig = { destination: '/project/:ref/sql/new', permanent: true, }, + { + permanent: true, + source: '/project/:ref/reports/linter', + destination: '/project/:ref/database/linter', + }, + { + permanent: true, + source: '/project/:ref/reports/query-performance', + destination: '/project/:ref/database/query-performance', + }, + { + permanent: true, + source: '/project/:ref/auth/column-privileges', + destination: '/project/:ref/database/column-privileges', + }, + { + permanent: true, + source: '/project/:ref/database/linter', + destination: '/project/:ref/database/security-advisor', + }, ...(process.env.NEXT_PUBLIC_BASE_PATH?.length ? [ { diff --git a/apps/studio/package.json b/apps/studio/package.json index af058be1ed5..49dba5fe13d 100644 --- a/apps/studio/package.json +++ b/apps/studio/package.json @@ -22,25 +22,25 @@ "@graphiql/toolkit": "^0.9.1", "@hcaptcha/react-hcaptcha": "^1.8.1", "@headlessui/react": "^1.7.17", - "@monaco-editor/react": "^4.5.2", - "@next/bundle-analyzer": "^13.5.6", + "@heroicons/react": "^2.1.3", + "@monaco-editor/react": "^4.6.0", + "@next/bundle-analyzer": "^14.2.0", "@radix-ui/react-popover": "^1.0.7", "@radix-ui/react-tooltip": "^1.0.7", "@scaleleap/pg-format": "^1.0.0", - "@sentry/nextjs": "^7.77.0", - "@serafin/schema-builder": "^0.18.2", + "@sentry/nextjs": "^7.108.0", "@stripe/react-stripe-js": "^2.5.0", "@stripe/stripe-js": "^3.0.5", "@supabase/auth-helpers-react": "^0.4.2", + "@supabase/pg-meta": "*", "@supabase/shared-types": "0.1.55", - "@supabase/supabase-js": "^2.39.3", - "@tanstack/react-query": "^4.35.7", - "@tanstack/react-query-devtools": "^4.35.7", + "@supabase/supabase-js": "^2.41.1", + "@tanstack/react-query": "4.35.7", + "@tanstack/react-query-devtools": "4.35.7", "@uidotdev/usehooks": "^2.4.1", "@zip.js/zip.js": "^2.7.29", - "ai": "^2.2.26", + "ai": "^2.2.31", "ai-commands": "*", - "ajv": "^8.6.3", "awesome-debounce-promise": "^2.1.0", "clsx": "^1.2.1", "common": "*", @@ -56,17 +56,16 @@ "immutability-helper": "^3.1.1", "ip-num": "^1.5.1", "json-logic-js": "^2.0.2", - "jsonrepair": "^3.2.3", "lodash": "^4.17.21", "lucide-react": "^0.338.0", - "markdown-table": "=2.0.0", + "markdown-table": "^3.0.3", "mobx": "^6.10.2", "mobx-react-lite": "^4.0.5", "monaco-editor": "0.33.0", - "next": "^13.5.6", - "next-themes": "^0.2.1", + "next": "^14.2.0", + "next-themes": "^0.3.0", "openai": "^4.20.1", - "openapi-fetch": "^0.6.1", + "openapi-fetch": "^0.6.2", "p-queue": "^6.6.2", "papaparse": "^5.3.1", "path-to-regexp": "^6.2.0", @@ -95,14 +94,14 @@ "recharts": "^2.8.0", "semver": "^6.3.1", "shared-data": "*", - "sql-formatter": "^12.2.0", + "sql-formatter": "^13.1.0", "sqlstring": "^2.3.2", "ui": "*", "ui-patterns": "*", "uuid": "^9.0.1", - "valtio": "^1.11.2", - "yup": "^0.32.11", - "yup-password": "^0.2.2", + "valtio": "^1.12.0", + "yup": "^1.4.0", + "yup-password": "^0.3.0", "zxcvbn": "^4.4.2" }, "devDependencies": { @@ -139,7 +138,7 @@ "autoprefixer": "^10.4.14", "common": "*", "config": "*", - "eslint-config-next": "^14.1.0", + "eslint-config-next": "^14.2.0", "jest": "^29.7.0", "jest-canvas-mock": "^2.5.2", "jest-environment-jsdom": "^29.7.0", @@ -149,6 +148,6 @@ "prettier": "^4.0.0-alpha.8", "storybook-dark-mode": "^3.0.1", "tailwindcss": "^3.4.1", - "typescript": "^5.2.2" + "typescript": "^5.4.3" } } diff --git a/apps/studio/pages/_app.tsx b/apps/studio/pages/_app.tsx index f2febfb2485..87cf59be24f 100644 --- a/apps/studio/pages/_app.tsx +++ b/apps/studio/pages/_app.tsx @@ -34,7 +34,7 @@ import toast from 'react-hot-toast' import { PortalToast, Toaster } from 'ui' import { ConsentToast } from 'ui-patterns/ConsentToast' -import Favicons from 'components/head/Favicons' +import MetaFaviconsPagesRouter from 'common/MetaFavicons/pages-router' import { AppBannerWrapper, CommandMenuWrapper, @@ -149,8 +149,7 @@ function CustomApp({ Component, pageProps }: AppPropsWithLayout) { Supabase - - + diff --git a/apps/studio/pages/account/me.tsx b/apps/studio/pages/account/me.tsx index d301d240215..8d1ddc8feb7 100644 --- a/apps/studio/pages/account/me.tsx +++ b/apps/studio/pages/account/me.tsx @@ -4,6 +4,7 @@ import { ThemeSettings, ThemeSettingsOld, } from 'components/interfaces/Account/Preferences' +import { AccountDeletion } from 'components/interfaces/Account/Preferences/AccountDeletion' import { ProfileInformation } from 'components/interfaces/Account/Preferences/ProfileInformation' import { AccountLayout } from 'components/layouts' import AlertError from 'components/ui/AlertError' @@ -74,6 +75,10 @@ const ProfileCard = () => {
    + +
    + +
    ) } diff --git a/apps/studio/pages/account/security.tsx b/apps/studio/pages/account/security.tsx index 4ca6e0ae9e4..a6772a7cce0 100644 --- a/apps/studio/pages/account/security.tsx +++ b/apps/studio/pages/account/security.tsx @@ -42,7 +42,7 @@ const Security: NextPageWithLayout = () => {
    {data ? ( - + {data.totp.length} app{data.totp.length === 1 ? '' : 's'} configured ) : null} diff --git a/apps/studio/pages/api/auth/[ref]/config.ts b/apps/studio/pages/api/auth/[ref]/config.ts index 7d1726a04c7..a01dcca261b 100644 --- a/apps/studio/pages/api/auth/[ref]/config.ts +++ b/apps/studio/pages/api/auth/[ref]/config.ts @@ -1,5 +1,7 @@ import { NextApiRequest, NextApiResponse } from 'next' import apiWrapper from 'lib/api/apiWrapper' +import { get } from 'lib/common/fetch' +import { constructHeaders } from 'lib/api/apiHelpers' export default (req: NextApiRequest, res: NextApiResponse) => apiWrapper(req, res, handler) @@ -18,6 +20,11 @@ async function handler(req: NextApiRequest, res: NextApiResponse) { } const handleGetAll = async (req: NextApiRequest, res: NextApiResponse) => { + const headers = constructHeaders({}) + const url = `${process.env.SUPABASE_URL}/auth/v1/settings` + const { external, disable_signup, mailer_autoconfirm, phone_autoconfirm } = await get(url, { + headers, + }) // Platform only API return res.status(200).json({ app_version: '', @@ -27,13 +34,13 @@ const handleGetAll = async (req: NextApiRequest, res: NextApiResponse) => { isFreeTier: true, SITE_URL: '', OPERATOR_TOKEN: null, - DISABLE_SIGNUP: false, + DISABLE_SIGNUP: disable_signup ?? false, RATE_LIMIT_HEADER: null, JWT_EXP: 3600, JWT_AUD: '', JWT_DEFAULT_GROUP_NAME: '', URI_ALLOW_LIST: '', - MAILER_AUTOCONFIRM: false, + MAILER_AUTOCONFIRM: mailer_autoconfirm ?? false, MAILER_OTP_EXP: 86400, MAILER_URLPATHS_INVITE: '', MAILER_URLPATHS_CONFIRMATION: '', @@ -46,64 +53,65 @@ const handleGetAll = async (req: NextApiRequest, res: NextApiResponse) => { SMTP_USER: null, SMTP_PASS: null, SMTP_MAX_FREQUENCY: 0, - EXTERNAL_EMAIL_ENABLED: true, - EXTERNAL_PHONE_ENABLED: true, - EXTERNAL_APPLE_ENABLED: false, + EXTERNAL_ANONYMOUS_USERS_ENABLED: external?.anonymous_users ?? true, + EXTERNAL_EMAIL_ENABLED: external?.email ?? true, + EXTERNAL_PHONE_ENABLED: external?.phone ?? true, + EXTERNAL_APPLE_ENABLED: external?.apple ?? false, EXTERNAL_APPLE_CLIENT_ID: null, EXTERNAL_APPLE_SECRET: null, - EXTERNAL_AZURE_ENABLED: false, + EXTERNAL_AZURE_ENABLED: external?.azure ?? false, EXTERNAL_AZURE_CLIENT_ID: null, EXTERNAL_AZURE_SECRET: null, EXTERNAL_AZURE_URL: null, - EXTERNAL_BITBUCKET_ENABLED: false, + EXTERNAL_BITBUCKET_ENABLED: external?.bitbucket ?? false, EXTERNAL_BITBUCKET_CLIENT_ID: null, EXTERNAL_BITBUCKET_SECRET: null, - EXTERNAL_DISCORD_ENABLED: false, + EXTERNAL_DISCORD_ENABLED: external?.discord ?? false, EXTERNAL_DISCORD_CLIENT_ID: null, EXTERNAL_DISCORD_SECRET: null, - EXTERNAL_FACEBOOK_ENABLED: false, + EXTERNAL_FACEBOOK_ENABLED: external?.facebook ?? false, EXTERNAL_FACEBOOK_CLIENT_ID: null, EXTERNAL_FACEBOOK_SECRET: null, - EXTERNAL_FIGMA_ENABLED: false, + EXTERNAL_FIGMA_ENABLED: external?.figma ?? false, EXTERNAL_FIGMA_CLIENT_ID: null, EXTERNAL_FIGMA_SECRET: null, - EXTERNAL_GITHUB_ENABLED: false, + EXTERNAL_GITHUB_ENABLED: external?.github ?? false, EXTERNAL_GITHUB_CLIENT_ID: null, EXTERNAL_GITHUB_SECRET: null, - EXTERNAL_GITLAB_ENABLED: false, + EXTERNAL_GITLAB_ENABLED: external?.gitlab ?? false, EXTERNAL_GITLAB_CLIENT_ID: null, EXTERNAL_GITLAB_SECRET: null, EXTERNAL_GITLAB_REDIRECT_URI: null, - EXTERNAL_GOOGLE_ENABLED: false, + EXTERNAL_GOOGLE_ENABLED: external?.google ?? false, EXTERNAL_GOOGLE_CLIENT_ID: null, EXTERNAL_GOOGLE_SECRET: null, - EXTERNAL_KAKAO_ENABLED: false, + EXTERNAL_KAKAO_ENABLED: external?.kakao ?? false, EXTERNAL_KAKAO_CLIENT_ID: null, EXTERNAL_KAKAO_SECRET: null, - EXTERNAL_KEYCLOAK_ENABLED: false, + EXTERNAL_KEYCLOAK_ENABLED: external?.keycloak ?? false, EXTERNAL_KEYCLOAK_CLIENT_ID: null, EXTERNAL_KEYCLOAK_SECRET: null, EXTERNAL_KEYCLOAK_URL: null, - EXTERNAL_NOTION_ENABLED: false, + EXTERNAL_NOTION_ENABLED: external?.notion ?? false, EXTERNAL_NOTION_CLIENT_ID: null, EXTERNAL_NOTION_SECRET: null, - EXTERNAL_SPOTIFY_ENABLED: false, + EXTERNAL_SPOTIFY_ENABLED: external?.spotify ?? false, EXTERNAL_SPOTIFY_CLIENT_ID: null, EXTERNAL_SPOTIFY_SECRET: null, - EXTERNAL_SLACK_ENABLED: false, + EXTERNAL_SLACK_ENABLED: external?.slack ?? false, EXTERNAL_SLACK_CLIENT_ID: null, EXTERNAL_SLACK_SECRET: null, - EXTERNAL_TWITTER_ENABLED: false, + EXTERNAL_TWITTER_ENABLED: external?.twitter ?? false, EXTERNAL_TWITTER_CLIENT_ID: null, EXTERNAL_TWITTER_SECRET: null, - EXTERNAL_TWITCH_ENABLED: false, + EXTERNAL_TWITCH_ENABLED: external?.twitch ?? false, EXTERNAL_TWITCH_CLIENT_ID: null, EXTERNAL_TWITCH_SECRET: null, - EXTERNAL_WORKOS_ENABLED: false, + EXTERNAL_WORKOS_ENABLED: external?.workos ?? false, EXTERNAL_WORKOS_CLIENT_ID: null, EXTERNAL_WORKOS_SECRET: null, EXTERNAL_WORKOS_URL: null, - EXTERNAL_ZOOM_ENABLED: false, + EXTERNAL_ZOOM_ENABLED: external?.zoom ?? false, EXTERNAL_ZOOM_CLIENT_ID: null, EXTERNAL_ZOOM_SECRET: null, MAILER_SUBJECTS_INVITE: 'You have been invited', @@ -128,7 +136,7 @@ const handleGetAll = async (req: NextApiRequest, res: NextApiResponse) => { '

    Magic Link

    \n\n

    Follow this link to login:

    \n

    Log In

    ', PASSWORD_MIN_LENGTH: 6, SMTP_SENDER_NAME: null, - SMS_AUTOCONFIRM: false, + SMS_AUTOCONFIRM: phone_autoconfirm ?? false, SMS_MAX_FREQUENCY: 0, SMS_OTP_EXP: 60, SMS_OTP_LENGTH: 6, @@ -148,6 +156,7 @@ const handleGetAll = async (req: NextApiRequest, res: NextApiResponse) => { SECURITY_REFRESH_TOKEN_REUSE_INTERVAL: '10', RATE_LIMIT_EMAIL_SENT: 0, RATE_LIMIT_SMS_SENT: 0, + RATE_LIMIT_ANONYMOUS_USERS: 0, MAILER_SECURE_EMAIL_CHANGE_ENABLED: true, SMS_MESSAGEBIRD_ACCESS_KEY: null, SMS_MESSAGEBIRD_ORIGINATOR: null, diff --git a/apps/studio/pages/api/pg-meta/[ref]/foreign-tables.ts b/apps/studio/pages/api/pg-meta/[ref]/foreign-tables.ts index b5cf41f4be3..edf778d97d5 100644 --- a/apps/studio/pages/api/pg-meta/[ref]/foreign-tables.ts +++ b/apps/studio/pages/api/pg-meta/[ref]/foreign-tables.ts @@ -13,6 +13,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) { switch (method) { case 'GET': + if (req.query.id) return handleGetOne(req, res) return handleGetAll(req, res) default: res.setHeader('Allow', ['GET']) @@ -30,3 +31,14 @@ const handleGetAll = async (req: NextApiRequest, res: NextApiResponse) => { } return res.status(200).json(response) } + +const handleGetOne = async (req: NextApiRequest, res: NextApiResponse) => { + const headers = constructHeaders(req.headers) + let response = await get(`${PG_META_URL}/foreign-tables/${req.query.id}`, { + headers, + }) + if (response.error) { + return res.status(400).json({ error: response.error }) + } + return res.status(200).json(response) +} diff --git a/apps/studio/pages/api/projects/[ref]/infra-monitoring.ts b/apps/studio/pages/api/projects/[ref]/infra-monitoring.ts index 35523e117a2..4a954d96839 100644 --- a/apps/studio/pages/api/projects/[ref]/infra-monitoring.ts +++ b/apps/studio/pages/api/projects/[ref]/infra-monitoring.ts @@ -21,7 +21,6 @@ const handleGetAll = async (req: NextApiRequest, res: NextApiResponse) => { data: [], yAxisLimit: 0, format: '%', - totalAverage: 0, total: 0, } return res.status(200).json(response) diff --git a/apps/studio/pages/api/storage/[ref]/buckets/[id]/objects/list.ts b/apps/studio/pages/api/storage/[ref]/buckets/[id]/objects/list.ts index d4dc551668b..26fa43271f3 100644 --- a/apps/studio/pages/api/storage/[ref]/buckets/[id]/objects/list.ts +++ b/apps/studio/pages/api/storage/[ref]/buckets/[id]/objects/list.ts @@ -23,7 +23,7 @@ const handlePost = async (req: NextApiRequest, res: NextApiResponse) => { const { id } = req.query const { path, ...params } = req.body - const { data, error } = await supabase.storage.from(id as string).list(path, params) + const { data, error } = await supabase.storage.from(id as string).list(path, params.options) if (error) { return res.status(500).json({ error: error.message }) } diff --git a/apps/studio/pages/new/[slug].tsx b/apps/studio/pages/new/[slug].tsx index 6176128b3a3..8e4ee8884e5 100644 --- a/apps/studio/pages/new/[slug].tsx +++ b/apps/studio/pages/new/[slug].tsx @@ -6,7 +6,7 @@ import Link from 'next/link' import { useRouter } from 'next/router' import { PropsWithChildren, useEffect, useRef, useState } from 'react' import toast from 'react-hot-toast' -import { Badge, Button, IconExternalLink, IconUsers, Input, Listbox } from 'ui' +import { Badge, Button, IconExternalLink, IconUsers, Input, Listbox, Separator } from 'ui' import { FreeProjectLimitWarning, @@ -300,11 +300,16 @@ const Wizard: NextPageWithLayout = () => { return (

    Create a new project

    +

    + Your project will have its own dedicated instance and full postgres database. +
    + An API will be set up so you can easily interact with your new database. +
    +

    } footer={ @@ -334,26 +339,13 @@ const Wizard: NextPageWithLayout = () => { } > <> - -

    - Your project will have its own dedicated instance and full postgres database. -
    - An API will be set up so you can easily interact with your new database. -
    -

    -
    {projectCreationDisabled ? ( - + ) : ( - <> - +
    + {(organizations?.length ?? 0) > 0 && ( { {canCreateProject && ( <> - + { {showNonProdFields && ( - + { )} {cloudProviderEnabled && showNonProdFields && ( - + { )} {orgSubscription?.plan.id !== 'free' && ( - + {
    {instanceSizeSpecs[option].label} @@ -537,7 +509,7 @@ const Wizard: NextPageWithLayout = () => { )} - + 0} @@ -559,7 +531,7 @@ const Wizard: NextPageWithLayout = () => { /> - + { )} - {isAdmin && ( + {isAdmin && freePlanWithExceedingLimits && slug && ( - {freePlanWithExceedingLimits && slug && ( -
    - -
    - )} +
    )} - +
    )} diff --git a/apps/studio/pages/org/[slug]/index.tsx b/apps/studio/pages/org/[slug]/index.tsx index 060d94ab9e9..7015f5098b6 100644 --- a/apps/studio/pages/org/[slug]/index.tsx +++ b/apps/studio/pages/org/[slug]/index.tsx @@ -74,7 +74,7 @@ const ProjectsPage: NextPageWithLayout = () => { {isSuccessProjects && ( <> {(projects?.length ?? 0) === 0 ? ( -
    +

    No projects

    diff --git a/apps/studio/pages/org/_/[[...routeSlug]].tsx b/apps/studio/pages/org/_/[[...routeSlug]].tsx index eacdedd5584..3418a92f500 100644 --- a/apps/studio/pages/org/_/[[...routeSlug]].tsx +++ b/apps/studio/pages/org/_/[[...routeSlug]].tsx @@ -67,7 +67,7 @@ const GenericOrganizationPage: NextPage = () => { ) : organizations?.length === 0 ? ( -

    +

    You are not part of any organizations yet

    diff --git a/apps/studio/pages/project/[ref]/auth/policies.tsx b/apps/studio/pages/project/[ref]/auth/policies.tsx index 86b2e177206..a1e9203d74b 100644 --- a/apps/studio/pages/project/[ref]/auth/policies.tsx +++ b/apps/studio/pages/project/[ref]/auth/policies.tsx @@ -1,11 +1,7 @@ -import * as Tooltip from '@radix-ui/react-tooltip' import type { PostgresPolicy, PostgresTable } from '@supabase/postgres-meta' import { PermissionAction } from '@supabase/shared-types/out/constants' -import { partition } from 'lodash' -import { useEffect, useState } from 'react' +import { useState } from 'react' -import { useParams } from 'common' -import { useIsRLSAIAssistantEnabled } from 'components/interfaces/App/FeaturePreview/FeaturePreviewContext' import { Policies } from 'components/interfaces/Auth/Policies' import { AIPolicyEditorPanel } from 'components/interfaces/Auth/Policies/AIPolicyEditorPanel' import { AuthLayout } from 'components/layouts' @@ -17,11 +13,19 @@ import { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader' import { useDatabasePoliciesQuery } from 'data/database-policies/database-policies-query' import { useSchemasQuery } from 'data/database/schemas-query' import { useTablesQuery } from 'data/tables/tables-query' -import { useCheckPermissions, usePermissionsLoaded } from 'hooks' +import { useCheckPermissions, usePermissionsLoaded, useUrlState } from 'hooks' import { EXCLUDED_SCHEMAS } from 'lib/constants/schemas' -import { useTableEditorStateSnapshot } from 'state/table-editor' +import { partition } from 'lodash' import type { NextPageWithLayout } from 'types' -import { Button, IconExternalLink, IconSearch, Input } from 'ui' +import { + Button, + IconExternalLink, + IconSearch, + Input, + TooltipContent_Shadcn_, + TooltipTrigger_Shadcn_, + Tooltip_Shadcn_, +} from 'ui' /** * Filter tables by table name and policy name @@ -59,22 +63,16 @@ const onFilterTables = ( } const AuthPoliciesPage: NextPageWithLayout = () => { - const { search, schema } = useParams() + const [params, setParams] = useUrlState<{ + schema?: string + search?: string + }>() + const { schema = 'public', search: searchString = '' } = params const { project } = useProjectContext() - const snap = useTableEditorStateSnapshot() - const [searchString, setSearchString] = useState('') + const [selectedTable, setSelectedTable] = useState() const [showPolicyAiEditor, setShowPolicyAiEditor] = useState(false) const [selectedPolicyToEdit, setSelectedPolicyToEdit] = useState() - const isAiAssistantEnabled = useIsRLSAIAssistantEnabled() - - useEffect(() => { - if (search) setSearchString(search) - }, [search]) - - useEffect(() => { - if (schema) snap.setSelectedSchemaName(schema) - }, [schema]) const { data: schemas } = useSchemasQuery({ projectRef: project?.ref, @@ -83,7 +81,7 @@ const AuthPoliciesPage: NextPageWithLayout = () => { const [protectedSchemas] = partition(schemas, (schema) => EXCLUDED_SCHEMAS.includes(schema?.name ?? '') ) - const selectedSchema = schemas?.find((schema) => schema.name === snap.selectedSchemaName) + const selectedSchema = schemas?.find((s) => s.name === schema) const isLocked = protectedSchemas.some((s) => s.id === selectedSchema?.id) const { data: policies } = useDatabasePoliciesQuery({ @@ -100,13 +98,14 @@ const AuthPoliciesPage: NextPageWithLayout = () => { } = useTablesQuery({ projectRef: project?.ref, connectionString: project?.connectionString, - schema: snap.selectedSchemaName, + schema: schema, }) const filteredTables = onFilterTables(tables ?? [], policies ?? [], searchString) const canReadPolicies = useCheckPermissions(PermissionAction.TENANT_SQL_ADMIN_READ, 'policies') const canCreatePolicies = useCheckPermissions(PermissionAction.TENANT_SQL_ADMIN_WRITE, 'policies') const isPermissionsLoaded = usePermissionsLoaded() + const schemaHasNoTables = (tables ?? []).length === 0 if (isPermissionsLoaded && !canReadPolicies) { return @@ -121,18 +120,20 @@ const AuthPoliciesPage: NextPageWithLayout = () => { className="w-[260px]" size="small" showError={false} - selectedSchemaName={snap.selectedSchemaName} - onSelectSchema={(schema: string) => { - snap.setSelectedSchemaName(schema) - setSearchString('') + selectedSchemaName={schema} + onSelectSchema={(schema) => { + setParams({ ...params, search: undefined, schema }) }} /> setSearchString(e.target.value)} + value={searchString || ''} + onChange={(e) => { + const str = e.target.value + setParams({ ...params, search: str === '' ? undefined : str }) + }} icon={} />

    @@ -146,36 +147,27 @@ const AuthPoliciesPage: NextPageWithLayout = () => { Documentation - {isAiAssistantEnabled && ( - - - - - {isPermissionsLoaded && !canCreatePolicies && ( - - - -
    - - You need additional permissions to create RLS policies - -
    -
    -
    - )} -
    - )} + + + + + + {(!canCreatePolicies || schemaHasNoTables) && ( + + {!canCreatePolicies + ? 'You need additional permissions to create RLS policies' + : schemaHasNoTables + ? `No table in schema ${schema} to create policies on` + : null} + + )} +
    @@ -186,9 +178,14 @@ const AuthPoliciesPage: NextPageWithLayout = () => { {isSuccess && ( 0} isLocked={isLocked} + onSelectCreatePolicy={(table: string) => { + setShowPolicyAiEditor(true) + setSelectedTable(table) + }} onSelectEditPolicy={(policy) => { setSelectedPolicyToEdit(policy) setShowPolicyAiEditor(true) @@ -198,8 +195,12 @@ const AuthPoliciesPage: NextPageWithLayout = () => { { + setSelectedTable(undefined) setShowPolicyAiEditor(false) setSelectedPolicyToEdit(undefined) }} diff --git a/apps/studio/pages/project/[ref]/database/backups/pitr.tsx b/apps/studio/pages/project/[ref]/database/backups/pitr.tsx index 7e8b641d68a..dfd2e0b03c6 100644 --- a/apps/studio/pages/project/[ref]/database/backups/pitr.tsx +++ b/apps/studio/pages/project/[ref]/database/backups/pitr.tsx @@ -1,9 +1,11 @@ import { PermissionAction } from '@supabase/shared-types/out/constants' +import DatabaseBackupsNav from 'components/interfaces/Database/Backups/DatabaseBackupsNav' import { PITRNotice, PITRSelection } from 'components/interfaces/Database/Backups/PITR' import { DatabaseLayout } from 'components/layouts' import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext' import { ScaffoldContainer, ScaffoldSection } from 'components/layouts/Scaffold' import AlertError from 'components/ui/AlertError' +import { FormHeader } from 'components/ui/Forms' import NoPermission from 'components/ui/NoPermission' import { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader' import UpgradeToPro from 'components/ui/UpgradeToPro' @@ -11,7 +13,6 @@ import { useBackupsQuery } from 'data/database/backups-query' import { useOrgSubscriptionQuery } from 'data/subscriptions/org-subscription-query' import { useCheckPermissions, usePermissionsLoaded, useSelectedOrganization } from 'hooks' import type { NextPageWithLayout } from 'types' -import DatabaseBackupsNav from 'components/interfaces/Database/Backups/DatabaseBackupsNav' const DatabasePhysicalBackups: NextPageWithLayout = () => { const { project } = useProjectContext() @@ -22,7 +23,7 @@ const DatabasePhysicalBackups: NextPageWithLayout = () => {
    -

    Database Backups

    +
    diff --git a/apps/studio/pages/project/[ref]/database/backups/scheduled.tsx b/apps/studio/pages/project/[ref]/database/backups/scheduled.tsx index d702ce67417..ed71ee3b923 100644 --- a/apps/studio/pages/project/[ref]/database/backups/scheduled.tsx +++ b/apps/studio/pages/project/[ref]/database/backups/scheduled.tsx @@ -1,19 +1,19 @@ import { PermissionAction } from '@supabase/shared-types/out/constants' -import { useRouter } from 'next/router' import { BackupsList } from 'components/interfaces/Database' +import DatabaseBackupsNav from 'components/interfaces/Database/Backups/DatabaseBackupsNav' import { DatabaseLayout } from 'components/layouts' import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext' import { ScaffoldContainer, ScaffoldSection } from 'components/layouts/Scaffold' import AlertError from 'components/ui/AlertError' +import { FormHeader } from 'components/ui/Forms' import InformationBox from 'components/ui/InformationBox' import NoPermission from 'components/ui/NoPermission' import { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader' import { useBackupsQuery } from 'data/database/backups-query' import { useCheckPermissions, usePermissionsLoaded } from 'hooks' import type { NextPageWithLayout } from 'types' -import { IconInfo, Tabs } from 'ui' -import DatabaseBackupsNav from 'components/interfaces/Database/Backups/DatabaseBackupsNav' +import { IconInfo } from 'ui' const DatabaseScheduledBackups: NextPageWithLayout = () => { const { project } = useProjectContext() @@ -36,7 +36,7 @@ const DatabaseScheduledBackups: NextPageWithLayout = () => {
    -

    Database Backups

    +
    diff --git a/apps/studio/pages/project/[ref]/auth/column-privileges.tsx b/apps/studio/pages/project/[ref]/database/column-privileges.tsx similarity index 96% rename from apps/studio/pages/project/[ref]/auth/column-privileges.tsx rename to apps/studio/pages/project/[ref]/database/column-privileges.tsx index 3ca71115b86..98372f0fed5 100644 --- a/apps/studio/pages/project/[ref]/auth/column-privileges.tsx +++ b/apps/studio/pages/project/[ref]/database/column-privileges.tsx @@ -1,4 +1,3 @@ -import type { PostgresRole } from '@supabase/postgres-meta' import { useParams } from 'common' import { XIcon } from 'lucide-react' import Link from 'next/link' @@ -23,20 +22,20 @@ import { import PrivilegesHead from 'components/interfaces/Database/Privileges/PrivilegesHead' import PrivilegesTable from 'components/interfaces/Database/Privileges/PrivilegesTable' import ProtectedSchemaWarning from 'components/interfaces/Database/ProtectedSchemaWarning' -import { AuthLayout } from 'components/layouts' +import { DatabaseLayout } from 'components/layouts' import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext' import { ScaffoldContainer, ScaffoldSection } from 'components/layouts/Scaffold' import AlertError from 'components/ui/AlertError' import { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader' -import { useDatabaseRolesQuery } from 'data/database-roles/database-roles-query' +import { PgRole, useDatabaseRolesQuery } from 'data/database-roles/database-roles-query' import { useColumnPrivilegesQuery } from 'data/privileges/column-privileges-query' import { useTablePrivilegesQuery } from 'data/privileges/table-privileges-query' import { useTablesQuery } from 'data/tables/tables-query' import { useLocalStorage } from 'hooks' import { LOCAL_STORAGE_KEYS } from 'lib/constants' import { EXCLUDED_SCHEMAS } from 'lib/constants/schemas' -import type { NextPageWithLayout } from 'types' import { useAppStateSnapshot } from 'state/app-state' +import type { NextPageWithLayout } from 'types' const EDITABLE_ROLES = ['authenticated', 'anon', 'service_role'] @@ -133,11 +132,12 @@ const PrivilegesPage: NextPageWithLayout = () => { [allColumnPrivileges, selectedRole, selectedSchema, selectedTable] ) - const rolesList = - allRoles?.filter((role: PostgresRole) => EDITABLE_ROLES.includes(role.name)) ?? [] - const roles = rolesList.map((role: PostgresRole) => role.name) + const rolesList = allRoles?.filter((role: PgRole) => EDITABLE_ROLES.includes(role.name)) ?? [] + const roles = rolesList.map((role: PgRole) => role.name) - const table = tableList?.find((table) => table.name === selectedTable) + const table = tableList?.find( + (table) => table.schema === selectedSchema && table.name === selectedTable + ) const isLocked = EXCLUDED_SCHEMAS.includes(selectedSchema) const { @@ -375,6 +375,8 @@ const PrivilegesPage: NextPageWithLayout = () => { ) } -PrivilegesPage.getLayout = (page) => {page} +PrivilegesPage.getLayout = (page) => ( + {page} +) export default PrivilegesPage diff --git a/apps/studio/pages/project/[ref]/database/extensions.tsx b/apps/studio/pages/project/[ref]/database/extensions.tsx index c982c9dd42d..4341a4dd845 100644 --- a/apps/studio/pages/project/[ref]/database/extensions.tsx +++ b/apps/studio/pages/project/[ref]/database/extensions.tsx @@ -3,6 +3,7 @@ import { PermissionAction } from '@supabase/shared-types/out/constants' import { Extensions } from 'components/interfaces/Database' import { DatabaseLayout } from 'components/layouts' import { ScaffoldContainer, ScaffoldSection } from 'components/layouts/Scaffold' +import { FormHeader } from 'components/ui/Forms' import NoPermission from 'components/ui/NoPermission' import { useCheckPermissions, usePermissionsLoaded } from 'hooks' import type { NextPageWithLayout } from 'types' @@ -22,7 +23,7 @@ const DatabaseExtensions: NextPageWithLayout = () => {
    -

    Database Extensions

    +
    diff --git a/apps/studio/pages/project/[ref]/database/functions.tsx b/apps/studio/pages/project/[ref]/database/functions.tsx index 1d425a91d41..168eb7932e5 100644 --- a/apps/studio/pages/project/[ref]/database/functions.tsx +++ b/apps/studio/pages/project/[ref]/database/functions.tsx @@ -6,6 +6,7 @@ import { CreateFunction, DeleteFunction } from 'components/interfaces/Database' import FunctionsList from 'components/interfaces/Database/Functions/FunctionsList/FunctionsList' import { DatabaseLayout } from 'components/layouts' import { ScaffoldContainer, ScaffoldSection } from 'components/layouts/Scaffold' +import { FormHeader } from 'components/ui/Forms' import NoPermission from 'components/ui/NoPermission' import { useCheckPermissions, usePermissionsLoaded } from 'hooks' import type { NextPageWithLayout } from 'types' @@ -42,7 +43,7 @@ const FunctionsPage: NextPageWithLayout = () => {
    -

    Database Functions

    + { const { project } = useProjectContext() @@ -101,6 +102,10 @@ const HooksPage: NextPageWithLayout = () => {
    +
    diff --git a/apps/studio/pages/project/[ref]/database/indexes.tsx b/apps/studio/pages/project/[ref]/database/indexes.tsx index 72c8b34d418..ffa2e05883c 100644 --- a/apps/studio/pages/project/[ref]/database/indexes.tsx +++ b/apps/studio/pages/project/[ref]/database/indexes.tsx @@ -1,13 +1,51 @@ +import { ExternalLink } from 'lucide-react' + import Indexes from 'components/interfaces/Database/Indexes/Indexes' import { DatabaseLayout } from 'components/layouts' -import { ScaffoldContainer, ScaffoldSection } from 'components/layouts/Scaffold' +import { + ScaffoldContainer, + ScaffoldSection, + ScaffoldSectionContent, + ScaffoldSectionDetail, +} from 'components/layouts/Scaffold' +import { FormHeader } from 'components/ui/Forms' import type { NextPageWithLayout } from 'types' +import { Button } from 'ui' const IndexesPage: NextPageWithLayout = () => { return ( -
    + + + + + + + +
    diff --git a/apps/studio/pages/project/[ref]/database/migrations.tsx b/apps/studio/pages/project/[ref]/database/migrations.tsx index 9e8f9061dae..24a71088400 100644 --- a/apps/studio/pages/project/[ref]/database/migrations.tsx +++ b/apps/studio/pages/project/[ref]/database/migrations.tsx @@ -1,13 +1,41 @@ +import { ExternalLink } from 'lucide-react' + import Migrations from 'components/interfaces/Database/Migrations/Migrations' import { DatabaseLayout } from 'components/layouts' -import { ScaffoldContainer, ScaffoldSection } from 'components/layouts/Scaffold' +import { + ScaffoldContainer, + ScaffoldSection, + ScaffoldSectionContent, + ScaffoldSectionDetail, +} from 'components/layouts/Scaffold' import type { NextPageWithLayout } from 'types' +import { Button } from 'ui' +import { FormHeader } from 'components/ui/Forms' const MigrationsPage: NextPageWithLayout = () => { return ( -
    + + + + + + +
    diff --git a/apps/studio/pages/project/[ref]/database/performance-advisor.tsx b/apps/studio/pages/project/[ref]/database/performance-advisor.tsx new file mode 100644 index 00000000000..e8e1c8e5f85 --- /dev/null +++ b/apps/studio/pages/project/[ref]/database/performance-advisor.tsx @@ -0,0 +1,93 @@ +import { useParams } from 'common' +import { lintInfoMap } from 'components/interfaces/Linter/Linter.utils' +import { DatabaseLayout } from 'components/layouts' +import { FormHeader } from 'components/ui/Forms' +import { Lint, useProjectLintsQuery } from 'data/lint/lint-query' +import { useSelectedProject } from 'hooks' +import { useState } from 'react' +import type { NextPageWithLayout } from 'types' +import { LoadingLine } from 'ui' + +import LintPageTabs from 'components/interfaces/Linter/LintPageTabs' +import { LINTER_LEVELS } from 'components/interfaces/Linter/Linter.constants' +import LinterDataGrid from 'components/interfaces/Linter/LinterDataGrid' +import LinterFilters from 'components/interfaces/Linter/LinterFilters' +import LinterPageFooter from 'components/interfaces/Linter/LinterPageFooter' + +const ProjectLints: NextPageWithLayout = () => { + const project = useSelectedProject() + const { preset } = useParams() + + // need to maintain a list of filters for each tab + const [filters, setFilters] = useState<{ level: LINTER_LEVELS; filters: string[] }[]>([ + { level: LINTER_LEVELS.ERROR, filters: [] }, + { level: LINTER_LEVELS.WARN, filters: [] }, + { level: LINTER_LEVELS.INFO, filters: [] }, + ]) + + const [currentTab, setCurrentTab] = useState( + (preset as LINTER_LEVELS) ?? LINTER_LEVELS.ERROR + ) + const [selectedLint, setSelectedLint] = useState(null) + + const { data, isLoading, isRefetching, refetch } = useProjectLintsQuery({ + projectRef: project?.ref, + connectionString: project?.connectionString, + }) + + const activeLints = data?.filter((x) => x.categories.includes('PERFORMANCE')) || [] + + const currentTabFilters = (filters.find((filter) => filter.level === currentTab)?.filters || + []) as string[] + + const filteredLints = activeLints + .filter((x) => x.level === currentTab) + .filter((x) => (currentTabFilters.length > 0 ? currentTabFilters.includes(x.name) : x)) + + const filterOptions = lintInfoMap + // only show filters for lint types which are present in the results and not ignored + .filter((item) => + activeLints.some((lint) => lint.name === item.name && lint.level === currentTab) + ) + .map((type) => ({ + name: type.title, + value: type.name, + })) + + return ( +
    + + + + + + +
    + ) +} + +ProjectLints.getLayout = (page) => {page} + +export default ProjectLints diff --git a/apps/studio/pages/project/[ref]/database/replication.tsx b/apps/studio/pages/project/[ref]/database/publications.tsx similarity index 86% rename from apps/studio/pages/project/[ref]/database/replication.tsx rename to apps/studio/pages/project/[ref]/database/publications.tsx index 68bb20bab86..0d886f93a16 100644 --- a/apps/studio/pages/project/[ref]/database/replication.tsx +++ b/apps/studio/pages/project/[ref]/database/publications.tsx @@ -5,6 +5,7 @@ import { PublicationsList, PublicationsTables } from 'components/interfaces/Data import { DatabaseLayout } from 'components/layouts' import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext' import { ScaffoldContainer, ScaffoldSection } from 'components/layouts/Scaffold' +import { FormHeader } from 'components/ui/Forms' import NoPermission from 'components/ui/NoPermission' import { useDatabasePublicationsQuery } from 'data/database-publications/database-publications-query' import { useCheckPermissions, usePermissionsLoaded } from 'hooks' @@ -14,7 +15,7 @@ import type { NextPageWithLayout } from 'types' // makes it easier to manage state, but foresee that this page might // be consolidated somewhere else eventually for better UX -const DatabaseReplication: NextPageWithLayout = () => { +const DatabasePublications: NextPageWithLayout = () => { const { project } = useProjectContext() const { data } = useDatabasePublicationsQuery({ @@ -40,9 +41,7 @@ const DatabaseReplication: NextPageWithLayout = () => {
    -
    -

    Database Replications

    -
    + {selectedPublication === undefined ? ( ) : ( @@ -57,6 +56,6 @@ const DatabaseReplication: NextPageWithLayout = () => { ) } -DatabaseReplication.getLayout = (page) => {page} +DatabasePublications.getLayout = (page) => {page} -export default DatabaseReplication +export default DatabasePublications diff --git a/apps/studio/pages/project/[ref]/database/query-performance.tsx b/apps/studio/pages/project/[ref]/database/query-performance.tsx new file mode 100644 index 00000000000..983a1e418f0 --- /dev/null +++ b/apps/studio/pages/project/[ref]/database/query-performance.tsx @@ -0,0 +1,67 @@ +import { useRouter } from 'next/router' + +import { useParams } from 'common' +import { QueryPerformance } from 'components/interfaces/QueryPerformance/QueryPerformance' +import { QUERY_PERFORMANCE_REPORT_TYPES } from 'components/interfaces/QueryPerformance/QueryPerformance.constants' +import { PRESET_CONFIG } from 'components/interfaces/Reports/Reports.constants' +import { + QueryPerformanceSort, + useQueryPerformanceQuery, +} from 'components/interfaces/Reports/Reports.queries' +import { Presets } from 'components/interfaces/Reports/Reports.types' +import { queriesFactory } from 'components/interfaces/Reports/Reports.utils' +import { DatabaseLayout } from 'components/layouts' +import { FormHeader } from 'components/ui/Forms' +import { useFlag } from 'hooks' +import type { NextPageWithLayout } from 'types' + +const QueryPerformanceReport: NextPageWithLayout = () => { + const router = useRouter() + const { ref: projectRef } = useParams() + + // [Joshen] Has been false on configcat for a long time + const tableIndexEfficiencyEnabled = useFlag('tableIndexEfficiency') + const config = PRESET_CONFIG[Presets.QUERY_PERFORMANCE] + const hooks = queriesFactory(config.queries, projectRef ?? 'default') + const queryHitRate = hooks.queryHitRate() + + const orderBy = router.query.sort + ? ({ column: router.query.sort, order: router.query.order } as QueryPerformanceSort) + : undefined + const searchQuery = (router.query.search as string) || '' + const roles = router.query.roles || [] + const presetMap = { + [QUERY_PERFORMANCE_REPORT_TYPES.MOST_TIME_CONSUMING]: 'mostTimeConsuming', + [QUERY_PERFORMANCE_REPORT_TYPES.MOST_FREQUENT]: 'mostFrequentlyInvoked', + [QUERY_PERFORMANCE_REPORT_TYPES.SLOWEST_EXECUTION]: 'slowestExecutionTime', + } as const + const preset = + presetMap[router.query.preset as QUERY_PERFORMANCE_REPORT_TYPES] || 'mostTimeConsuming' + + const queryPerformanceQuery = useQueryPerformanceQuery({ + searchQuery, + orderBy, + preset, + roles: typeof roles === 'string' ? [roles] : roles, + }) + + return ( +
    + {/* [Joshen] Need to double check what this is about and if it's still relevant */} + {/* {tableIndexEfficiencyEnabled && } */} + + + +
    + ) +} + +QueryPerformanceReport.getLayout = (page) => ( + {page} +) + +export default QueryPerformanceReport diff --git a/apps/studio/pages/project/[ref]/database/roles.tsx b/apps/studio/pages/project/[ref]/database/roles.tsx index 6d4f48871ad..0ba69c26798 100644 --- a/apps/studio/pages/project/[ref]/database/roles.tsx +++ b/apps/studio/pages/project/[ref]/database/roles.tsx @@ -1,6 +1,7 @@ import { RolesList } from 'components/interfaces/Database' import { DatabaseLayout } from 'components/layouts' import { ScaffoldContainer, ScaffoldSection } from 'components/layouts/Scaffold' +import { FormHeader } from 'components/ui/Forms' import type { NextPageWithLayout } from 'types' const DatabaseRoles: NextPageWithLayout = () => { @@ -8,6 +9,10 @@ const DatabaseRoles: NextPageWithLayout = () => {
    +
    diff --git a/apps/studio/pages/project/[ref]/database/schemas.tsx b/apps/studio/pages/project/[ref]/database/schemas.tsx index 390eea29f1f..4723b20dcef 100644 --- a/apps/studio/pages/project/[ref]/database/schemas.tsx +++ b/apps/studio/pages/project/[ref]/database/schemas.tsx @@ -32,12 +32,12 @@ const SchemasPage: NextPageWithLayout = () => { return ( <>
    -
    +
    {isLoading && (
    )} - {isError && } + {isError && } {isSuccess && ( { + const project = useSelectedProject() + const { preset } = useParams() + + // need to maintain a list of filters for each tab + const [filters, setFilters] = useState<{ level: LINTER_LEVELS; filters: string[] }[]>([ + { level: LINTER_LEVELS.ERROR, filters: [] }, + { level: LINTER_LEVELS.WARN, filters: [] }, + { level: LINTER_LEVELS.INFO, filters: [] }, + ]) + + const [currentTab, setCurrentTab] = useState( + (preset as LINTER_LEVELS) ?? LINTER_LEVELS.ERROR + ) + const [selectedLint, setSelectedLint] = useState(null) + + const { + data, + isLoading: areLintsLoading, + isRefetching, + refetch: refetchLintsQuery, + } = useProjectLintsQuery({ + projectRef: project?.ref, + connectionString: project?.connectionString, + }) + + const { + data: authConfig, + isLoading: isAuthConfigLoading, + refetch: refetchAuthConfigQuery, + } = useAuthConfigQuery({ + projectRef: project?.ref, + }) + + const isLoading = areLintsLoading || isAuthConfigLoading + + const refetch = () => { + refetchLintsQuery() + refetchAuthConfigQuery() + } + + let clientLints: Lint[] = [] + + // [Alaister]: checking this client side for speed, but should be moved into the query if possible + if (authConfig?.EXTERNAL_EMAIL_ENABLED) { + if (authConfig.MAILER_OTP_EXP > 3600) { + clientLints.push({ + name: 'auth_otp_long_expiry', + level: 'WARN', + facing: 'EXTERNAL', + categories: ['SECURITY'], + description: 'OTP expiry exceeds recommended threshold', + detail: + 'We have detected that you have enabled the email provider with the OTP expiry set to more than an hour. It is recommended to set this value to less than an hour.', + cache_key: 'auth_otp_long_expiry', + remediation: 'https://supabase.com/docs/guides/platform/going-into-prod#security', + metadata: { + type: 'auth', + entity: 'Auth', + }, + }) + } + + if (authConfig.EXTERNAL_PHONE_ENABLED && authConfig.SMS_OTP_LENGTH <= 6) { + clientLints.push({ + name: 'auth_otp_short_length', + level: 'WARN', + facing: 'EXTERNAL', + categories: ['SECURITY'], + description: 'OTP length is less than recommended threshold', + detail: 'We have detected that you have set the OTP length to less than 6 characters', + cache_key: 'auth_otp_short_length', + remediation: 'https://supabase.com/docs/guides/platform/going-into-prod#security', + metadata: { + type: 'auth', + entity: 'Auth', + }, + }) + } + } + + const activeLints = [...(data ?? []), ...clientLints]?.filter((x) => + x.categories.includes('SECURITY') + ) + + const currentTabFilters = (filters.find((filter) => filter.level === currentTab)?.filters || + []) as string[] + + const filteredLints = activeLints + .filter((x) => x.level === currentTab) + .filter((x) => (currentTabFilters.length > 0 ? currentTabFilters.includes(x.name) : x)) + + const filterOptions = lintInfoMap + // only show filters for lint types which are present in the results and not ignored + .filter((item) => + activeLints.some((lint) => lint.name === item.name && lint.level === currentTab) + ) + .map((type) => ({ + name: type.title, + value: type.name, + })) + + return ( +
    + + + + + + +
    + ) +} + +ProjectLints.getLayout = (page) => {page} + +export default ProjectLints diff --git a/apps/studio/pages/project/[ref]/database/tables.tsx b/apps/studio/pages/project/[ref]/database/tables.tsx deleted file mode 100644 index 96804803cd2..00000000000 --- a/apps/studio/pages/project/[ref]/database/tables.tsx +++ /dev/null @@ -1,72 +0,0 @@ -import { useParams } from 'common' -import { useState } from 'react' -import type { PostgresTable } from '@supabase/postgres-meta' - -import { ColumnList, TableList } from 'components/interfaces/Database' -import { SidePanelEditor } from 'components/interfaces/TableGridEditor' -import DeleteConfirmationDialogs from 'components/interfaces/TableGridEditor/DeleteConfirmationDialogs' -import { DatabaseLayout } from 'components/layouts' -import { ScaffoldContainer, ScaffoldSection } from 'components/layouts/Scaffold' -import type { Table } from 'data/tables/table-query' -import { useTableEditorStateSnapshot } from 'state/table-editor' -import type { NextPageWithLayout } from 'types' -import useTable from 'hooks/misc/useTable' - -const DatabaseTables: NextPageWithLayout = () => { - const { ref: projectRef } = useParams() - - const snap = useTableEditorStateSnapshot() - const [selectedTable, setSelectedTable] = useState
    {description} +
    + {access_key} + + + +
    +
    {daysSince(created_at)} + + + + + + { + e.preventDefault() + onDeleteClick(id) + }} + > + + Revoke keys + + + +
    () - const { data: selectedTableData } = useTable(selectedTable?.id) - - // [Joshen] Separate state required to handle edit/delete table - // since selectedTable above handles the state for ColumnList - const [selectedTableToEdit, setSelectedTableToEdit] = useState
    () - - return ( - <> - - -
    - {selectedTable === undefined ? ( - { - setSelectedTableToEdit(table) - snap.onEditTable() - }} - onDeleteTable={(table) => { - setSelectedTableToEdit(table) - snap.onDeleteTable() - }} - onOpenTable={setSelectedTable} - /> - ) : ( - setSelectedTable(undefined)} - /> - )} -
    -
    -
    - - - - - ) -} - -DatabaseTables.getLayout = (page) => {page} - -export default DatabaseTables diff --git a/apps/studio/pages/project/[ref]/database/tables/[id].tsx b/apps/studio/pages/project/[ref]/database/tables/[id].tsx new file mode 100644 index 00000000000..0c30aca5cff --- /dev/null +++ b/apps/studio/pages/project/[ref]/database/tables/[id].tsx @@ -0,0 +1,52 @@ +import type { PostgresTable } from '@supabase/postgres-meta' + +import { useParams } from 'common' +import { ColumnList } from 'components/interfaces/Database' +import { SidePanelEditor } from 'components/interfaces/TableGridEditor' +import DeleteConfirmationDialogs from 'components/interfaces/TableGridEditor/DeleteConfirmationDialogs' +import { DatabaseLayout } from 'components/layouts' +import { ScaffoldContainer, ScaffoldSection } from 'components/layouts/Scaffold' +import { FormHeader } from 'components/ui/Forms' +import useTable from 'hooks/misc/useTable' +import { ChevronRight } from 'lucide-react' +import { useTableEditorStateSnapshot } from 'state/table-editor' +import type { NextPageWithLayout } from 'types' +import ShimmeringLoader from 'ui-patterns/ShimmeringLoader' + +const DatabaseTables: NextPageWithLayout = () => { + const { id } = useParams() + const snap = useTableEditorStateSnapshot() + const { data: selectedTable, isLoading } = useTable(Number(id)) + + return ( + <> + + +
    +
    + + + {isLoading ? ( + + ) : ( + + )} +
    + +
    +
    +
    + + + + + ) +} + +DatabaseTables.getLayout = (page) => {page} + +export default DatabaseTables diff --git a/apps/studio/pages/project/[ref]/database/tables/index.tsx b/apps/studio/pages/project/[ref]/database/tables/index.tsx new file mode 100644 index 00000000000..beeb36237cf --- /dev/null +++ b/apps/studio/pages/project/[ref]/database/tables/index.tsx @@ -0,0 +1,46 @@ +import { useState } from 'react' + +import { TableList } from 'components/interfaces/Database' +import { SidePanelEditor } from 'components/interfaces/TableGridEditor' +import DeleteConfirmationDialogs from 'components/interfaces/TableGridEditor/DeleteConfirmationDialogs' +import { DatabaseLayout } from 'components/layouts' +import { ScaffoldContainer, ScaffoldSection } from 'components/layouts/Scaffold' +import { FormHeader } from 'components/ui/Forms' +import type { Table } from 'data/tables/table-query' +import { useTableEditorStateSnapshot } from 'state/table-editor' +import type { NextPageWithLayout } from 'types' + +const DatabaseTables: NextPageWithLayout = () => { + const snap = useTableEditorStateSnapshot() + const [selectedTableToEdit, setSelectedTableToEdit] = useState
    () + + return ( + <> + + +
    + + { + setSelectedTableToEdit(table) + snap.onEditTable() + }} + onDeleteTable={(table) => { + setSelectedTableToEdit(table) + snap.onDeleteTable() + }} + /> +
    +
    +
    + + + + + ) +} + +DatabaseTables.getLayout = (page) => {page} + +export default DatabaseTables diff --git a/apps/studio/pages/project/[ref]/database/triggers.tsx b/apps/studio/pages/project/[ref]/database/triggers.tsx index 4fd2c098dce..f8daed7cf35 100644 --- a/apps/studio/pages/project/[ref]/database/triggers.tsx +++ b/apps/studio/pages/project/[ref]/database/triggers.tsx @@ -5,6 +5,7 @@ import { CreateTrigger, DeleteTrigger } from 'components/interfaces/Database' import TriggersList from 'components/interfaces/Database/Triggers/TriggersList/TriggersList' import { DatabaseLayout } from 'components/layouts' import { ScaffoldContainer, ScaffoldSection } from 'components/layouts/Scaffold' +import { FormHeader } from 'components/ui/Forms' import NoPermission from 'components/ui/NoPermission' import { useCheckPermissions, usePermissionsLoaded } from 'hooks' import type { NextPageWithLayout } from 'types' @@ -41,7 +42,7 @@ const TriggersPage: NextPageWithLayout = () => {
    -

    Database Triggers

    + { return ( - <> - - - -

    Database Enumerated Types

    -

    - Custom data types that you can use in your database tables or functions. -

    -
    - -
    - -
    -
    -
    - -
    -
    -
    - + + + + + + + + +
    + +
    +
    +
    ) } diff --git a/apps/studio/pages/project/[ref]/database/wrappers/index.tsx b/apps/studio/pages/project/[ref]/database/wrappers/index.tsx index 7b18ac978df..b1ed00123fc 100644 --- a/apps/studio/pages/project/[ref]/database/wrappers/index.tsx +++ b/apps/studio/pages/project/[ref]/database/wrappers/index.tsx @@ -1,31 +1,85 @@ import { PermissionAction } from '@supabase/shared-types/out/constants' +import { ExternalLink } from 'lucide-react' import { Wrappers } from 'components/interfaces/Database' +import WrappersDropdown from 'components/interfaces/Database/Wrappers/WrappersDropdown' import { DatabaseLayout } from 'components/layouts' -import { ScaffoldContainer, ScaffoldSection } from 'components/layouts/Scaffold' +import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext' +import { + ScaffoldContainer, + ScaffoldSection, + ScaffoldSectionContent, + ScaffoldSectionDetail, +} from 'components/layouts/Scaffold' +import { FormHeader } from 'components/ui/Forms' import NoPermission from 'components/ui/NoPermission' +import { useDatabaseExtensionsQuery } from 'data/database-extensions/database-extensions-query' +import { useFDWsQuery } from 'data/fdw/fdws-query' import { useCheckPermissions, usePermissionsLoaded } from 'hooks' import type { NextPageWithLayout } from 'types' +import { Button } from 'ui' +import { GenericSkeletonLoader } from 'ui-patterns' const DatabaseWrappers: NextPageWithLayout = () => { - const canReadWrappers = useCheckPermissions(PermissionAction.TENANT_SQL_ADMIN_READ, 'tables') + const { project } = useProjectContext() const isPermissionsLoaded = usePermissionsLoaded() + const canReadWrappers = useCheckPermissions(PermissionAction.TENANT_SQL_ADMIN_READ, 'tables') - if (isPermissionsLoaded && !canReadWrappers) { - return - } + const { isLoading: isLoadingFDWs } = useFDWsQuery({ + projectRef: project?.ref, + connectionString: project?.connectionString, + }) + const { data: exts, isLoading: isLoadingExtensions } = useDatabaseExtensionsQuery({ + projectRef: project?.ref, + connectionString: project?.connectionString, + }) + const wrappersExtension = (exts ?? []).find((ext) => ext.name === 'wrappers') + const vaultExtension = (exts ?? []).find((ext) => ext.name === 'supabase_vault') - return -} + const isWrappersEnabled = + wrappersExtension !== undefined && + wrappersExtension.installed_version !== null && + vaultExtension !== undefined && + vaultExtension.installed_version !== null -DatabaseWrappers.getLayout = (page) => ( - + return ( -
    {page}
    + + + + + + {isWrappersEnabled && } + + +
    + {isLoadingExtensions || isLoadingFDWs ? ( + + ) : isPermissionsLoaded && !canReadWrappers ? ( + + ) : ( + + )} +
    -
    -) + ) +} + +DatabaseWrappers.getLayout = (page) => {page} export default DatabaseWrappers diff --git a/apps/studio/pages/project/[ref]/editor/[id].tsx b/apps/studio/pages/project/[ref]/editor/[id].tsx index f392a1f4e77..0e861f5c716 100644 --- a/apps/studio/pages/project/[ref]/editor/[id].tsx +++ b/apps/studio/pages/project/[ref]/editor/[id].tsx @@ -24,7 +24,6 @@ const TableEditorPage: NextPageWithLayout = () => { theme={resolvedTheme?.includes('dark') ? 'dark' : 'light'} /> { // For simplicity for now, we just open the first table within the same schema diff --git a/apps/studio/pages/project/[ref]/logs/explorer/templates.tsx b/apps/studio/pages/project/[ref]/logs/explorer/templates.tsx index 633da843ac6..d4c6c17af2c 100644 --- a/apps/studio/pages/project/[ref]/logs/explorer/templates.tsx +++ b/apps/studio/pages/project/[ref]/logs/explorer/templates.tsx @@ -1,6 +1,7 @@ import { useParams } from 'common' import { useState } from 'react' -import { Button, IconCode, Popover } from 'ui' +import { Button, Popover, cn } from 'ui' +import { CodeIcon } from 'lucide-react' import { LogTemplate, TEMPLATES } from 'components/interfaces/Settings/Logs' import LogsLayout from 'components/layouts/LogsLayout/LogsLayout' @@ -14,7 +15,7 @@ export const LogsTemplatesPage: NextPageWithLayout = () => { return (
    -
    +
    {TEMPLATES.sort((a, b) => a.label!.localeCompare(b.label!)) .filter((template) => template.mode === 'custom') .map((template, i) => { @@ -37,20 +38,20 @@ const Template = ({ projectRef, template }: { projectRef?: string; template: Log title={template.label} icon={
    - +
    } - className="h-40" + className="h-44" linkHref={`/project/${projectRef}/logs/explorer?q=${encodeURI(template.searchString)}`} description={template.description} footer={ diff --git a/apps/studio/pages/project/[ref]/reports/api-overview.tsx b/apps/studio/pages/project/[ref]/reports/api-overview.tsx index 3e3abb54d1b..6774133f4ea 100644 --- a/apps/studio/pages/project/[ref]/reports/api-overview.tsx +++ b/apps/studio/pages/project/[ref]/reports/api-overview.tsx @@ -42,7 +42,7 @@ export const ApiReport: NextPageWithLayout = () => { return ( - +
    { - const router = useRouter() - const { ref: projectRef } = useParams() - const { project } = useProjectContext() - const [showResetgPgStatStatements, setShowResetgPgStatStatements] = useState(false) - - const tableIndexEfficiencyEnabled = useFlag('tableIndexEfficiency') - const config = PRESET_CONFIG[Presets.QUERY_PERFORMANCE] - const hooks = queriesFactory(config.queries, projectRef ?? 'default') - const queryHitRate = hooks.queryHitRate() - - const orderBy = (router.query.sort as 'lat_desc' | 'lat_asc') || 'lat_desc' - const searchQuery = (router.query.search as string) || '' - const presetMap = { - time: 'mostTimeConsuming', - frequent: 'mostFrequentlyInvoked', - slowest: 'slowestExecutionTime', - } as const - const preset = presetMap[router.query.preset as QueryPerformancePreset] || 'mostTimeConsuming' - - const queryPerformanceQuery = useQueryPerformanceQuery({ - searchQuery, - orderBy, - preset, - }) - - const isLoading = [queryPerformanceQuery.isLoading, queryHitRate.isLoading].every( - (value) => value - ) - - const handleRefresh = async () => { - queryPerformanceQuery.runQuery() - queryHitRate.runQuery() - } - - const checkAlert = ( -
    - -
    - ) - const warnAlert = ( -
    - -
    - ) - const dangerAlert = ( -
    - -
    - ) - - const indexHitRate = queryHitRate.data?.[0]?.ratio - const tableHitRate = queryHitRate.data?.[1]?.ratio - const showIndexWarning = - indexHitRate && tableHitRate && (indexHitRate <= 0.99 || tableHitRate <= 0.99) - - const headerText = ( -

    - Identify the queries that consume the most time and database resources. - {'\n\n'}It relies on the pg_stat_statements table. Read more about{' '} - - examining query performance - - .{'\n\n'}Consider resetting the analysis after optimizing any queries. -

    - ) - - const TimeConsumingHelperText = `This table lists queries ordered by their cumulative total execution time. - - It displays the total time a query has spent running and the proportion of total execution time the query has consumed. -` - - const MostFrequentHelperText = `This table lists queries in order of their execution count, providing insights into the most frequently executed queries. - - Pay attention to queries with high max_time or mean_time values that are called frequently, as they may benefit from optimization. -` - - const SlowestExecutionHelperText = `This table lists queries ordered by their maximum execution time. It shows outliers with high execution times. Queries with long execution times may benefit from optimization. - - Look for queries with high or mean execution times. These are often good candidates for optimization. -` - const panelClassNames = 'text-sm max-w-none flex flex-col gap-8 py-4' - const helperTextClassNames = 'prose text-sm max-w-2xl text-foreground-light' - - return ( -
    - - {tableIndexEfficiencyEnabled && ( - - - Index Efficiency - {showIndexWarning ? warnAlert : checkAlert} -
    - } - id="1" - className="flex flex-row gap-8" - > - {!isLoading && queryHitRate && ( -
    -
    -
    - Index Hit Rate -
    - {indexHitRate >= 0.99 - ? checkAlert - : indexHitRate >= 0.95 - ? warnAlert - : dangerAlert} -
    - - {queryHitRate?.data && (queryHitRate?.data[0]?.ratio * 100).toFixed(2)} - - % -
    -
    -
    - -
    - {queryHitRate?.data![1]?.name == 'table hit rate' && 'Table Hit Rate'} -
    - {tableHitRate >= 0.99 - ? checkAlert - : tableHitRate >= 0.95 - ? warnAlert - : dangerAlert} -
    - - {queryHitRate?.data && (queryHitRate?.data[1]?.ratio * 100).toFixed(2)} - - % -
    -
    -
    -
    -
    -

    - For best performance, ensure that the cache hit rate ratios above 99%.
    {' '} - Consider upgrading to an instance with more memory if the ratios dip below 95%. -

    -
    -
    - )} - - - )} - - {headerText} - -
    - -
    - - setShowResetgPgStatStatements(false)} - onSelectConfirm={async () => { - try { - await executeSql({ - projectRef: project?.ref, - connectionString: project?.connectionString, - sql: `SELECT pg_stat_statements_reset();`, - }) - setShowResetgPgStatStatements(false) - handleRefresh() - } catch (error) { - console.error(error) - } - }} - /> - -
    - { - // To reset the search and sort query params when switching tabs - const { sort, search, ...rest } = router.query - router.push({ - ...router, - query: { - ...rest, - preset: e, - }, - }) - }} - > - -
    - - {TimeConsumingHelperText} - -
    - -
    - Role - Query - Calls - Time Consumed - Total Time (Latency) - - } - body={ - !queryPerformanceQuery.isLoading ? ( - queryPerformanceQuery?.data?.map((item, i) => { - return ( - - - {item.rolname} - - -

    {item.query}

    -
    - {item.calls} - - {item.prop_total_time} - - - {item.total_time.toFixed(2)}ms - -
    - ) - }) - ) : ( - - ) - } - /> - - - - -
    - - {MostFrequentHelperText} - -
    - -
    - Role - Query - Avg. Roles - Calls - Max Time - Mean Time - Min Time - Total Time (Latency) - - } - body={ - queryPerformanceQuery.isLoading ? ( - - ) : ( - queryPerformanceQuery.data?.map((item, i) => { - return ( - - - {item.rolname} - - -

    {item.query}

    -
    - {item.avg_rows} - {item.calls} - - {item.max_time?.toFixed(2)}ms - - - {item.mean_time?.toFixed(2)}ms - - - {item.min_time?.toFixed(2)}ms - - - {item.total_time?.toFixed(2)}ms - -
    - ) - }) - ) - } - /> - - - - -
    - - {SlowestExecutionHelperText} - -
    - -
    - Role - Query - Avg Rows - Calls - Max Time - Mean Time - Min Time - Total Time (Latency) - - } - body={ - queryPerformanceQuery.isLoading ? ( - - ) : ( - queryPerformanceQuery.data?.map((item, i) => { - return ( - - - {item.rolname} - - -

    {item.query}

    -
    - {item.avg_rows} - {item.calls} - {item.max_time?.toFixed(2)}ms - {item.mean_time?.toFixed(2)}ms - {item.min_time?.toFixed(2)}ms - - {item.total_time?.toFixed(2)}ms - -
    - ) - }) - ) - } - /> - - - - - - - ) -} - -QueryPerformanceReport.getLayout = (page) => ( - {page} -) - -export default QueryPerformanceReport - -function QueryPerformanceFilterBar({ - isLoading, - onRefreshClick, -}: { - isLoading: boolean - onRefreshClick: () => void -}) { - const router = useRouter() - const defaultSearchQueryValue = router.query.search ? String(router.query.search) : '' - const defaultSortByValue = router.query.sort ? String(router.query.sort) : 'lat_desc' - const [searchInputVal, setSearchInputVal] = useState(defaultSearchQueryValue) - const [sortByValue, setSortByValue] = useState(defaultSortByValue) - - function getSortButtonLabel() { - const sort = router.query.sort as 'lat_desc' | 'lat_asc' - - if (sort === 'lat_desc') { - return 'Sorted by latency - high to low' - } else { - return 'Sorted by latency - low to high' - } - } - - function onSortChange(sort: string) { - setSortByValue(sort) - router.push({ - ...router, - query: { - ...router.query, - sort, - }, - }) - } - - const ButtonIcon = sortByValue === 'lat_desc' ? IconArrowDown : IconArrowUp - - return ( - <> -
    - { - e.preventDefault() - const formData = new FormData(e.target as HTMLFormElement) - const searchQuery = formData.get('search') - - if (!searchQuery || typeof searchQuery !== 'string') { - // if user has deleted the search query, remove it from the url - const { search, ...rest } = router.query - router.push({ - ...router, - query: { - ...rest, - }, - }) - return - } - - router.push({ - ...router, - query: { - ...router.query, - search: searchQuery, - }, - }) - }} - > - setSearchInputVal(e.target.value)} - autoComplete="off" - icon={ -
    - -
    - } - actions={ - searchInputVal !== '' && ( - - ) - } - /> - - - - - - - - Sort by latency - high to low - - - Sort by latency - low to high - - - - - -
    - -
    -
    - - ) -} - -function QueryPerformanceLoadingRow({ colSpan }: { colSpan: number }) { - return ( - <> - {Array(4) - .fill('') - .map((_, i) => ( -
    - - - ))} - - ) -} diff --git a/apps/studio/pages/project/[ref]/reports/storage.tsx b/apps/studio/pages/project/[ref]/reports/storage.tsx index 330f41e045f..1a1da3f76c9 100644 --- a/apps/studio/pages/project/[ref]/reports/storage.tsx +++ b/apps/studio/pages/project/[ref]/reports/storage.tsx @@ -45,7 +45,7 @@ export const StorageReport: NextPageWithLayout = () => { return ( - +
    { return ( -
    +
    +
    ) } diff --git a/apps/studio/pages/project/[ref]/sql/[id].tsx b/apps/studio/pages/project/[ref]/sql/[id].tsx index 7fa0997cde0..87f616494ce 100644 --- a/apps/studio/pages/project/[ref]/sql/[id].tsx +++ b/apps/studio/pages/project/[ref]/sql/[id].tsx @@ -23,7 +23,7 @@ import { useSnippets, useSqlEditorStateSnapshot } from 'state/sql-editor' const SqlEditor: NextPageWithLayout = () => { const router = useRouter() const monaco = useMonaco() - const { id, ref } = useParams() + const { id, ref, content } = useParams() const { project } = useProjectContext() const snap = useSqlEditorStateSnapshot() @@ -103,11 +103,11 @@ const SqlEditor: NextPageWithLayout = () => { } useEffect(() => { - if (id === 'new' && appSnap.dashboardHistory.sql !== undefined) { + if (id === 'new' && appSnap.dashboardHistory.sql !== undefined && content === undefined) { const snippet = snippets.find((snippet) => snippet.id === appSnap.dashboardHistory.sql) if (snippet !== undefined) router.push(`/project/${ref}/sql/${appSnap.dashboardHistory.sql}`) } - }, [id, snippets]) + }, [id, snippets, content]) // Enable pgsql format useEffect(() => { diff --git a/apps/studio/pages/vercel/integrate.tsx b/apps/studio/pages/vercel/integrate.tsx index ea09d378697..0fdbd91e290 100644 --- a/apps/studio/pages/vercel/integrate.tsx +++ b/apps/studio/pages/vercel/integrate.tsx @@ -1,4 +1,3 @@ -import Divider from 'components/ui/Divider' import { makeAutoObservable, runInAction } from 'mobx' import { observer, useLocalObservable } from 'mobx-react-lite' import Link from 'next/link' @@ -25,7 +24,7 @@ import { VERCEL_DEFAULT_EXTERNAL_ID, VERCEL_INTEGRATION_CONFIGS, } from 'lib/vercelConfigs' -import { Button, IconChevronRight, IconPlusCircle, IconX, Listbox, Select } from 'ui' +import { Button, IconChevronRight, IconPlusCircle, IconX, Listbox, Select, Separator } from 'ui' interface IVercelIntegrationStore { code: string @@ -441,7 +440,7 @@ const ProjectLinks = observer(() => {

    Link Vercel to Supabase

    Choose which of your Vercel projects to link to your existing Supabase projects.

    - +

    Vercel Projects

    @@ -449,7 +448,7 @@ const ProjectLinks = observer(() => {

    Supabase Projects

    - +
    {displayButton()}
    diff --git a/apps/studio/public/favicon/android-icon-144x144.png b/apps/studio/public/favicon/android-icon-144x144.png index 6bf7c690b84..0b375991a84 100644 Binary files a/apps/studio/public/favicon/android-icon-144x144.png and b/apps/studio/public/favicon/android-icon-144x144.png differ diff --git a/apps/studio/public/favicon/android-icon-192x192.png b/apps/studio/public/favicon/android-icon-192x192.png index ec26f1baeb3..d84f0567505 100644 Binary files a/apps/studio/public/favicon/android-icon-192x192.png and b/apps/studio/public/favicon/android-icon-192x192.png differ diff --git a/apps/studio/public/favicon/android-icon-36x36.png b/apps/studio/public/favicon/android-icon-36x36.png index 8622c9ec7e1..35ad4f1c585 100644 Binary files a/apps/studio/public/favicon/android-icon-36x36.png and b/apps/studio/public/favicon/android-icon-36x36.png differ diff --git a/apps/studio/public/favicon/android-icon-48x48.png b/apps/studio/public/favicon/android-icon-48x48.png index a3494d67f2f..9aa3e5e8a83 100644 Binary files a/apps/studio/public/favicon/android-icon-48x48.png and b/apps/studio/public/favicon/android-icon-48x48.png differ diff --git a/apps/studio/public/favicon/android-icon-72x72.png b/apps/studio/public/favicon/android-icon-72x72.png index 7ea05856c14..99ef50933b2 100644 Binary files a/apps/studio/public/favicon/android-icon-72x72.png and b/apps/studio/public/favicon/android-icon-72x72.png differ diff --git a/apps/studio/public/favicon/android-icon-96x96.png b/apps/studio/public/favicon/android-icon-96x96.png index f2bb98f0e06..e3180284847 100644 Binary files a/apps/studio/public/favicon/android-icon-96x96.png and b/apps/studio/public/favicon/android-icon-96x96.png differ diff --git a/apps/studio/public/favicon/apple-icon-114x114.png b/apps/studio/public/favicon/apple-icon-114x114.png index 40bb8dd9420..92fe03ae5dc 100644 Binary files a/apps/studio/public/favicon/apple-icon-114x114.png and b/apps/studio/public/favicon/apple-icon-114x114.png differ diff --git a/apps/studio/public/favicon/apple-icon-120x120.png b/apps/studio/public/favicon/apple-icon-120x120.png index e8cf4644d10..3274a504b87 100644 Binary files a/apps/studio/public/favicon/apple-icon-120x120.png and b/apps/studio/public/favicon/apple-icon-120x120.png differ diff --git a/apps/studio/public/favicon/apple-icon-144x144.png b/apps/studio/public/favicon/apple-icon-144x144.png index 6bf7c690b84..0b375991a84 100644 Binary files a/apps/studio/public/favicon/apple-icon-144x144.png and b/apps/studio/public/favicon/apple-icon-144x144.png differ diff --git a/apps/studio/public/favicon/apple-icon-152x152.png b/apps/studio/public/favicon/apple-icon-152x152.png index 0b89549ad18..fed0b817e8c 100644 Binary files a/apps/studio/public/favicon/apple-icon-152x152.png and b/apps/studio/public/favicon/apple-icon-152x152.png differ diff --git a/apps/studio/public/favicon/apple-icon-180x180.png b/apps/studio/public/favicon/apple-icon-180x180.png index 97fe683cb76..456f3c7dd9d 100644 Binary files a/apps/studio/public/favicon/apple-icon-180x180.png and b/apps/studio/public/favicon/apple-icon-180x180.png differ diff --git a/apps/studio/public/favicon/apple-icon-57x57.png b/apps/studio/public/favicon/apple-icon-57x57.png index 9bdd361ca0a..e8f2032bff5 100644 Binary files a/apps/studio/public/favicon/apple-icon-57x57.png and b/apps/studio/public/favicon/apple-icon-57x57.png differ diff --git a/apps/studio/public/favicon/apple-icon-60x60.png b/apps/studio/public/favicon/apple-icon-60x60.png index 4b76ede8d0b..7619397e3e3 100644 Binary files a/apps/studio/public/favicon/apple-icon-60x60.png and b/apps/studio/public/favicon/apple-icon-60x60.png differ diff --git a/apps/studio/public/favicon/apple-icon-72x72.png b/apps/studio/public/favicon/apple-icon-72x72.png index 7ea05856c14..99ef50933b2 100644 Binary files a/apps/studio/public/favicon/apple-icon-72x72.png and b/apps/studio/public/favicon/apple-icon-72x72.png differ diff --git a/apps/studio/public/favicon/apple-icon-76x76.png b/apps/studio/public/favicon/apple-icon-76x76.png index aa7ca8b06a0..83af926e5d5 100644 Binary files a/apps/studio/public/favicon/apple-icon-76x76.png and b/apps/studio/public/favicon/apple-icon-76x76.png differ diff --git a/apps/studio/public/favicon/apple-icon-precomposed.png b/apps/studio/public/favicon/apple-icon-precomposed.png index f0cbc3e201d..d84f0567505 100644 Binary files a/apps/studio/public/favicon/apple-icon-precomposed.png and b/apps/studio/public/favicon/apple-icon-precomposed.png differ diff --git a/apps/studio/public/favicon/apple-icon.png b/apps/studio/public/favicon/apple-icon.png index f0cbc3e201d..d84f0567505 100644 Binary files a/apps/studio/public/favicon/apple-icon.png and b/apps/studio/public/favicon/apple-icon.png differ diff --git a/apps/studio/public/favicon/browserconfig.xml b/apps/studio/public/favicon/browserconfig.xml index c5541482230..1a8136def88 100644 --- a/apps/studio/public/favicon/browserconfig.xml +++ b/apps/studio/public/favicon/browserconfig.xml @@ -1,2 +1,2 @@ -#ffffff \ No newline at end of file +#ffffff \ No newline at end of file diff --git a/apps/studio/public/favicon/favicon-128.png b/apps/studio/public/favicon/favicon-128.png new file mode 100644 index 00000000000..2482e4433b3 Binary files /dev/null and b/apps/studio/public/favicon/favicon-128.png differ diff --git a/apps/studio/public/favicon/favicon-16x16.png b/apps/studio/public/favicon/favicon-16x16.png index dbee77a1324..b65de8d0cd3 100644 Binary files a/apps/studio/public/favicon/favicon-16x16.png and b/apps/studio/public/favicon/favicon-16x16.png differ diff --git a/apps/studio/public/favicon/favicon-180x180.png b/apps/studio/public/favicon/favicon-180x180.png new file mode 100644 index 00000000000..456f3c7dd9d Binary files /dev/null and b/apps/studio/public/favicon/favicon-180x180.png differ diff --git a/apps/studio/public/favicon/favicon-196x196.png b/apps/studio/public/favicon/favicon-196x196.png new file mode 100644 index 00000000000..a8c2c723f79 Binary files /dev/null and b/apps/studio/public/favicon/favicon-196x196.png differ diff --git a/apps/studio/public/favicon/favicon-32x32.png b/apps/studio/public/favicon/favicon-32x32.png index 45f79f7f155..737dee885ea 100644 Binary files a/apps/studio/public/favicon/favicon-32x32.png and b/apps/studio/public/favicon/favicon-32x32.png differ diff --git a/apps/studio/public/favicon/favicon-48x48.png b/apps/studio/public/favicon/favicon-48x48.png new file mode 100644 index 00000000000..eb6a7ec729a Binary files /dev/null and b/apps/studio/public/favicon/favicon-48x48.png differ diff --git a/apps/studio/public/favicon/favicon-96x96.png b/apps/studio/public/favicon/favicon-96x96.png index f2bb98f0e06..e3180284847 100644 Binary files a/apps/studio/public/favicon/favicon-96x96.png and b/apps/studio/public/favicon/favicon-96x96.png differ diff --git a/apps/studio/public/favicon/manifest.json b/apps/studio/public/favicon/manifest.json index 3a90d23e45e..4efcf18e2ec 100644 --- a/apps/studio/public/favicon/manifest.json +++ b/apps/studio/public/favicon/manifest.json @@ -7,37 +7,37 @@ "background_color": "#1C1C1C", "icons": [ { - "src": "/android-icon-36x36.png", + "src": "/favicon/android-icon-36x36.png", "sizes": "36x36", "type": "image/png", "density": "0.75" }, { - "src": "/android-icon-48x48.png", + "src": "/favicon/android-icon-48x48.png", "sizes": "48x48", "type": "image/png", "density": "1.0" }, { - "src": "/android-icon-72x72.png", + "src": "/favicon/android-icon-72x72.png", "sizes": "72x72", "type": "image/png", "density": "1.5" }, { - "src": "/android-icon-96x96.png", + "src": "/favicon/android-icon-96x96.png", "sizes": "96x96", "type": "image/png", "density": "2.0" }, { - "src": "/android-icon-144x144.png", + "src": "/favicon/android-icon-144x144.png", "sizes": "144x144", "type": "image/png", "density": "3.0" }, { - "src": "/android-icon-192x192.png", + "src": "/favicon/android-icon-192x192.png", "sizes": "192x192", "type": "image/png", "density": "4.0" diff --git a/apps/studio/public/favicon/ms-icon-144x144.png b/apps/studio/public/favicon/ms-icon-144x144.png index 6bf7c690b84..0b375991a84 100644 Binary files a/apps/studio/public/favicon/ms-icon-144x144.png and b/apps/studio/public/favicon/ms-icon-144x144.png differ diff --git a/apps/studio/public/favicon/ms-icon-150x150.png b/apps/studio/public/favicon/ms-icon-150x150.png index 9a47ef140bc..a87e8ae2378 100644 Binary files a/apps/studio/public/favicon/ms-icon-150x150.png and b/apps/studio/public/favicon/ms-icon-150x150.png differ diff --git a/apps/studio/public/favicon/ms-icon-310x310.png b/apps/studio/public/favicon/ms-icon-310x310.png index 235986d9016..6cb63ac25b0 100644 Binary files a/apps/studio/public/favicon/ms-icon-310x310.png and b/apps/studio/public/favicon/ms-icon-310x310.png differ diff --git a/apps/studio/public/favicon/ms-icon-70x70.png b/apps/studio/public/favicon/ms-icon-70x70.png index b4a5974130b..5d6b8e395c2 100644 Binary files a/apps/studio/public/favicon/ms-icon-70x70.png and b/apps/studio/public/favicon/ms-icon-70x70.png differ diff --git a/apps/studio/public/img/icons/auth0-icon.svg b/apps/studio/public/img/icons/auth0-icon.svg new file mode 100644 index 00000000000..5b6732f68f8 --- /dev/null +++ b/apps/studio/public/img/icons/auth0-icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/studio/public/img/icons/cognito-icon.svg b/apps/studio/public/img/icons/cognito-icon.svg new file mode 100644 index 00000000000..3e6af00742e --- /dev/null +++ b/apps/studio/public/img/icons/cognito-icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/studio/public/img/icons/mssql-icon.svg b/apps/studio/public/img/icons/mssql-icon.svg new file mode 100644 index 00000000000..481af02ed9a --- /dev/null +++ b/apps/studio/public/img/icons/mssql-icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/studio/public/img/icons/redis-icon.svg b/apps/studio/public/img/icons/redis-icon.svg new file mode 100644 index 00000000000..c2f62d8766f --- /dev/null +++ b/apps/studio/public/img/icons/redis-icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/studio/public/img/libraries/vite-icon.svg b/apps/studio/public/img/libraries/vite-icon.svg new file mode 100644 index 00000000000..fdee69dbe83 --- /dev/null +++ b/apps/studio/public/img/libraries/vite-icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/studio/state/sql-editor.ts b/apps/studio/state/sql-editor.ts index 4f234c0863b..d32b62f2a12 100644 --- a/apps/studio/state/sql-editor.ts +++ b/apps/studio/state/sql-editor.ts @@ -95,6 +95,12 @@ export const sqlEditorState = proxy({ sqlEditorState.needsSaving.delete(id) }, + updateSnippet: (id: string, snippet: SqlSnippet) => { + if (sqlEditorState.snippets[id]) { + sqlEditorState.snippets[id].snippet = snippet + sqlEditorState.needsSaving.add(id) + } + }, setSplitSizes: (id: string, splitSizes: number[]) => { if (sqlEditorState.snippets[id]) { sqlEditorState.snippets[id].splitSizes = splitSizes diff --git a/apps/studio/styles/code.scss b/apps/studio/styles/code.scss index 3009884e0a3..6bc7f701e15 100644 --- a/apps/studio/styles/code.scss +++ b/apps/studio/styles/code.scss @@ -90,7 +90,10 @@ opacity: 0; position: absolute; visibility: hidden; - transition: opacity 200ms ease-in-out, visibility 200ms ease-in-out, bottom 200ms ease-in-out; + transition: + opacity 200ms ease-in-out, + visibility 200ms ease-in-out, + bottom 200ms ease-in-out; button { @apply rounded text-xs; diff --git a/apps/studio/styles/editor.scss b/apps/studio/styles/editor.scss index 4a76731d766..9c9236d76b3 100644 --- a/apps/studio/styles/editor.scss +++ b/apps/studio/styles/editor.scss @@ -27,4 +27,4 @@ input { @apply pr-10; } -} \ No newline at end of file +} diff --git a/apps/studio/styles/graphiql-base.scss b/apps/studio/styles/graphiql-base.scss index 1ef8ebdf1d9..eebcac28006 100644 --- a/apps/studio/styles/graphiql-base.scss +++ b/apps/studio/styles/graphiql-base.scss @@ -132,8 +132,7 @@ button.graphiql-tab-add > svg { /* The query editor and the toolbar */ .graphiql-container .graphiql-query-editor { - border-bottom: 1px solid - hsla(var(--color-neutral), var(--alpha-background-heavy)); + border-bottom: 1px solid hsla(var(--color-neutral), var(--alpha-background-heavy)); padding: var(--px-16); column-gap: var(--px-16); display: flex; @@ -175,9 +174,7 @@ button.graphiql-tab-add > svg { } /* The tab buttons to switch between editor tools */ -.graphiql-container - .graphiql-editor-tools - > button:not(.graphiql-toggle-editor-tools) { +.graphiql-container .graphiql-editor-tools > button:not(.graphiql-toggle-editor-tools) { padding: var(--px-8) var(--px-12); } @@ -219,14 +216,12 @@ button.graphiql-tab-add > svg { /* The footer below the response view */ .graphiql-container .graphiql-footer { - border-top: 1px solid - hsla(var(--color-neutral), var(--alpha-background-heavy)); + border-top: 1px solid hsla(var(--color-neutral), var(--alpha-background-heavy)); } /* The plugin container */ .graphiql-container .graphiql-plugin { - border-left: 1px solid - hsla(var(--color-neutral), var(--alpha-background-heavy)); + border-left: 1px solid hsla(var(--color-neutral), var(--alpha-background-heavy)); flex: 1; overflow-y: auto; padding: var(--px-16); @@ -239,8 +234,7 @@ button.graphiql-tab-add > svg { } .graphiql-horizontal-drag-bar:hover::after { - border: var(--px-2) solid - hsla(var(--color-neutral), var(--alpha-background-heavy)); + border: var(--px-2) solid hsla(var(--color-neutral), var(--alpha-background-heavy)); border-radius: var(--border-radius-2); content: ''; display: block; @@ -292,8 +286,7 @@ button.graphiql-tab-add > svg { /* A section inside the settings dialog */ .graphiql-dialog .graphiql-dialog-section { align-items: center; - border-top: 1px solid - hsla(var(--color-neutral), var(--alpha-background-heavy)); + border-top: 1px solid hsla(var(--color-neutral), var(--alpha-background-heavy)); display: flex; justify-content: space-between; padding: var(--px-24); diff --git a/apps/studio/styles/grid.scss b/apps/studio/styles/grid.scss index 8ed060f0e90..a89bea20d98 100644 --- a/apps/studio/styles/grid.scss +++ b/apps/studio/styles/grid.scss @@ -115,7 +115,7 @@ .rdg-row { @apply bg-studio transition-colors; - @apply hover:bg-surface-100; + @apply hover:bg-surface-200; } /* edit button */ diff --git a/apps/studio/styles/markdown-preview.scss b/apps/studio/styles/markdown-preview.scss index 742983e6b76..07e97c62972 100644 --- a/apps/studio/styles/markdown-preview.scss +++ b/apps/studio/styles/markdown-preview.scss @@ -2,7 +2,7 @@ @media (prefers-color-scheme: dark) { .markdown-body, - [data-theme="dark"] { + [data-theme='dark'] { /*dark*/ color-scheme: dark; --color-prettylights-syntax-comment: #8b949e; @@ -42,14 +42,14 @@ --color-canvas-subtle: #161b22; --color-border-default: #30363d; --color-border-muted: #21262d; - --color-neutral-muted: rgba(110,118,129,0.4); + --color-neutral-muted: rgba(110, 118, 129, 0.4); --color-accent-fg: #2f81f7; --color-accent-emphasis: #1f6feb; --color-success-fg: #3fb950; --color-success-emphasis: #238636; --color-attention-fg: #d29922; --color-attention-emphasis: #9e6a03; - --color-attention-subtle: rgba(187,128,9,0.15); + --color-attention-subtle: rgba(187, 128, 9, 0.15); --color-danger-fg: #f85149; --color-danger-emphasis: #da3633; --color-done-fg: #a371f7; @@ -59,7 +59,7 @@ @media (prefers-color-scheme: light) { .markdown-body, - [data-theme="light"] { + [data-theme='light'] { /*light*/ color-scheme: light; --color-prettylights-syntax-comment: #57606a; @@ -92,14 +92,14 @@ --color-prettylights-syntax-brackethighlighter-angle: #57606a; --color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f; --color-prettylights-syntax-constant-other-reference-link: #0a3069; - --color-fg-default: #1F2328; + --color-fg-default: #1f2328; --color-fg-muted: #656d76; --color-fg-subtle: #6e7781; --color-canvas-default: #ffffff; --color-canvas-subtle: #f6f8fa; --color-border-default: #d0d7de; - --color-border-muted: hsla(210,18%,87%,1); - --color-neutral-muted: rgba(175,184,193,0.2); + --color-border-muted: hsla(210, 18%, 87%, 1); + --color-neutral-muted: rgba(175, 184, 193, 0.2); --color-accent-fg: #0969da; --color-accent-emphasis: #0969da; --color-success-fg: #1a7f37; @@ -118,7 +118,8 @@ -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; margin: 0; - font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"; + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, + sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'; font-size: 16px; line-height: 1.5; word-wrap: break-word; @@ -181,9 +182,9 @@ } .markdown-body h1 { - margin: .67em 0; + margin: 0.67em 0; font-weight: var(--base-text-weight-semibold, 600); - padding-bottom: .3em; + padding-bottom: 0.3em; font-size: 2em; @apply border-b; } @@ -237,7 +238,7 @@ overflow: hidden; background: transparent; @apply border-b; - height: .25em; + height: 0.25em; padding: 0; margin: 24px 0; background-color: var(--color-border-default); @@ -253,33 +254,33 @@ line-height: inherit; } -.markdown-body [type=button], -.markdown-body [type=reset], -.markdown-body [type=submit] { +.markdown-body [type='button'], +.markdown-body [type='reset'], +.markdown-body [type='submit'] { -webkit-appearance: button; appearance: button; } -.markdown-body [type=checkbox], -.markdown-body [type=radio] { +.markdown-body [type='checkbox'], +.markdown-body [type='radio'] { box-sizing: border-box; padding: 0; } -.markdown-body [type=number]::-webkit-inner-spin-button, -.markdown-body [type=number]::-webkit-outer-spin-button { +.markdown-body [type='number']::-webkit-inner-spin-button, +.markdown-body [type='number']::-webkit-outer-spin-button { height: auto; } -.markdown-body [type=search]::-webkit-search-cancel-button, -.markdown-body [type=search]::-webkit-search-decoration { +.markdown-body [type='search']::-webkit-search-cancel-button, +.markdown-body [type='search']::-webkit-search-decoration { -webkit-appearance: none; appearance: none; } .markdown-body ::-webkit-input-placeholder { color: inherit; - opacity: .54; + opacity: 0.54; } .markdown-body ::-webkit-file-upload-button { @@ -299,13 +300,13 @@ .markdown-body hr::before { display: table; - content: ""; + content: ''; } .markdown-body hr::after { display: table; clear: both; - content: ""; + content: ''; } .markdown-body table { @@ -326,30 +327,30 @@ cursor: pointer; } -.markdown-body details:not([open])>*:not(summary) { +.markdown-body details:not([open]) > *:not(summary) { display: none !important; } .markdown-body a:focus, -.markdown-body [role=button]:focus, -.markdown-body input[type=radio]:focus, -.markdown-body input[type=checkbox]:focus { +.markdown-body [role='button']:focus, +.markdown-body input[type='radio']:focus, +.markdown-body input[type='checkbox']:focus { outline: 2px solid var(--color-accent-fg); outline-offset: -2px; box-shadow: none; } .markdown-body a:focus:not(:focus-visible), -.markdown-body [role=button]:focus:not(:focus-visible), -.markdown-body input[type=radio]:focus:not(:focus-visible), -.markdown-body input[type=checkbox]:focus:not(:focus-visible) { +.markdown-body [role='button']:focus:not(:focus-visible), +.markdown-body input[type='radio']:focus:not(:focus-visible), +.markdown-body input[type='checkbox']:focus:not(:focus-visible) { outline: solid 1px transparent; } .markdown-body a:focus-visible, -.markdown-body [role=button]:focus-visible, -.markdown-body input[type=radio]:focus-visible, -.markdown-body input[type=checkbox]:focus-visible { +.markdown-body [role='button']:focus-visible, +.markdown-body input[type='radio']:focus-visible, +.markdown-body input[type='checkbox']:focus-visible { outline: 2px solid var(--color-accent-fg); outline-offset: -2px; box-shadow: none; @@ -357,17 +358,24 @@ .markdown-body a:not([class]):focus, .markdown-body a:not([class]):focus-visible, -.markdown-body input[type=radio]:focus, -.markdown-body input[type=radio]:focus-visible, -.markdown-body input[type=checkbox]:focus, -.markdown-body input[type=checkbox]:focus-visible { +.markdown-body input[type='radio']:focus, +.markdown-body input[type='radio']:focus-visible, +.markdown-body input[type='checkbox']:focus, +.markdown-body input[type='checkbox']:focus-visible { outline-offset: 0; } .markdown-body kbd { display: inline-block; padding: 3px 5px; - font: 11px ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace; + font: + 11px ui-monospace, + SFMono-Regular, + SF Mono, + Menlo, + Consolas, + Liberation Mono, + monospace; line-height: 10px; color: var(--color-fg-default); vertical-align: middle; @@ -392,7 +400,7 @@ .markdown-body h2 { font-weight: var(--base-text-weight-semibold, 600); - padding-bottom: .3em; + padding-bottom: 0.3em; font-size: 1.5em; @apply border-b; } @@ -409,12 +417,12 @@ .markdown-body h5 { font-weight: var(--base-text-weight-semibold, 600); - font-size: .875em; + font-size: 0.875em; } .markdown-body h6 { font-weight: var(--base-text-weight-semibold, 600); - font-size: .85em; + font-size: 0.85em; color: var(--color-fg-muted); } @@ -427,7 +435,7 @@ margin: 0; padding: 0 1em; color: var(--color-fg-muted); - border-left: .25em solid var(--color-border-default); + border-left: 0.25em solid var(--color-border-default); } .markdown-body ul, @@ -456,14 +464,28 @@ .markdown-body tt, .markdown-body code, .markdown-body samp { - font-family: ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace; + font-family: + ui-monospace, + SFMono-Regular, + SF Mono, + Menlo, + Consolas, + Liberation Mono, + monospace; font-size: 12px; } .markdown-body pre { margin-top: 0; margin-bottom: 0; - font-family: ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace; + font-family: + ui-monospace, + SFMono-Regular, + SF Mono, + Menlo, + Consolas, + Liberation Mono, + monospace; font-size: 12px; word-wrap: normal; } @@ -488,20 +510,20 @@ .markdown-body::before { display: table; - content: ""; + content: ''; } .markdown-body::after { display: table; clear: both; - content: ""; + content: ''; } -.markdown-body>*:first-child { +.markdown-body > *:first-child { margin-top: 0 !important; } -.markdown-body>*:last-child { +.markdown-body > *:last-child { margin-bottom: 0 !important; } @@ -537,11 +559,11 @@ margin-bottom: 16px; } -.markdown-body blockquote>:first-child { +.markdown-body blockquote > :first-child { margin-top: 0; } -.markdown-body blockquote>:last-child { +.markdown-body blockquote > :last-child { margin-bottom: 0; } @@ -586,7 +608,7 @@ .markdown-body h5 code, .markdown-body h6 tt, .markdown-body h6 code { - padding: 0 .2em; + padding: 0 0.2em; font-size: inherit; } @@ -620,27 +642,27 @@ list-style-type: none; } -.markdown-body ol[type="a s"] { +.markdown-body ol[type='a s'] { list-style-type: lower-alpha; } -.markdown-body ol[type="A s"] { +.markdown-body ol[type='A s'] { list-style-type: upper-alpha; } -.markdown-body ol[type="i s"] { +.markdown-body ol[type='i s'] { list-style-type: lower-roman; } -.markdown-body ol[type="I s"] { +.markdown-body ol[type='I s'] { list-style-type: upper-roman; } -.markdown-body ol[type="1"] { +.markdown-body ol[type='1'] { list-style-type: decimal; } -.markdown-body div>ol:not([type]) { +.markdown-body div > ol:not([type]) { list-style-type: decimal; } @@ -652,12 +674,12 @@ margin-bottom: 0; } -.markdown-body li>p { +.markdown-body li > p { margin-top: 16px; } -.markdown-body li+li { - margin-top: .25em; +.markdown-body li + li { + margin-top: 0.25em; } .markdown-body dl { @@ -687,7 +709,7 @@ border: 1px solid var(--color-border-default); } -.markdown-body table td>:last-child { +.markdown-body table td > :last-child { margin-bottom: 0; } @@ -704,11 +726,11 @@ background-color: transparent; } -.markdown-body img[align=right] { +.markdown-body img[align='right'] { padding-left: 20px; } -.markdown-body img[align=left] { +.markdown-body img[align='left'] { padding-right: 20px; } @@ -723,7 +745,7 @@ overflow: hidden; } -.markdown-body span.frame>span { +.markdown-body span.frame > span { display: block; float: left; width: auto; @@ -751,7 +773,7 @@ clear: both; } -.markdown-body span.align-center>span { +.markdown-body span.align-center > span { display: block; margin: 13px auto 0; overflow: hidden; @@ -769,7 +791,7 @@ clear: both; } -.markdown-body span.align-right>span { +.markdown-body span.align-right > span { display: block; margin: 13px 0 0; overflow: hidden; @@ -799,7 +821,7 @@ overflow: hidden; } -.markdown-body span.float-right>span { +.markdown-body span.float-right > span { display: block; margin: 13px auto 0; overflow: hidden; @@ -808,7 +830,7 @@ .markdown-body code, .markdown-body tt { - padding: .2em .4em; + padding: 0.2em 0.4em; margin: 0; font-size: 85%; white-space: break-spaces; @@ -833,7 +855,7 @@ font-size: 100%; } -.markdown-body pre>code { +.markdown-body pre > code { padding: 0; margin: 0; word-break: normal; @@ -903,11 +925,11 @@ } .markdown-body [data-footnote-ref]::before { - content: "["; + content: '['; } .markdown-body [data-footnote-ref]::after { - content: "]"; + content: ']'; } .markdown-body .footnotes { @@ -937,7 +959,7 @@ bottom: -8px; left: -24px; pointer-events: none; - content: ""; + content: ''; border: 2px solid var(--color-accent-emphasis); border-radius: 6px; } @@ -1073,7 +1095,7 @@ .markdown-body g-emoji { display: inline-block; min-width: 1ch; - font-family: "Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"; + font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; font-size: 1em; font-style: normal !important; font-weight: var(--base-text-weight-normal, 400); @@ -1098,7 +1120,7 @@ cursor: pointer; } -.markdown-body .task-list-item+.task-list-item { +.markdown-body .task-list-item + .task-list-item { margin-top: 4px; } @@ -1107,12 +1129,12 @@ } .markdown-body .task-list-item-checkbox { - margin: 0 .2em .25em -1.4em; + margin: 0 0.2em 0.25em -1.4em; vertical-align: middle; } .markdown-body .contains-task-list:dir(rtl) .task-list-item-checkbox { - margin: 0 -1.6em .25em .2em; + margin: 0 -1.6em 0.25em 0.2em; } .markdown-body .contains-task-list { @@ -1136,14 +1158,14 @@ padding: var(--base-size-8) var(--base-size-16); margin-bottom: 16px; color: inherit; - border-left: .25em solid var(--color-border-default); + border-left: 0.25em solid var(--color-border-default); } -.markdown-body .markdown-alert>:first-child { +.markdown-body .markdown-alert > :first-child { margin-top: 0; } -.markdown-body .markdown-alert>:last-child { +.markdown-body .markdown-alert > :last-child { margin-bottom: 0; } @@ -1192,4 +1214,4 @@ .markdown-body .markdown-alert.markdown-alert-caution .markdown-alert-title { color: var(--color-danger-fg); -} \ No newline at end of file +} diff --git a/apps/studio/styles/monaco.scss b/apps/studio/styles/monaco.scss index a1a4d279935..9abbd76e8db 100644 --- a/apps/studio/styles/monaco.scss +++ b/apps/studio/styles/monaco.scss @@ -3,6 +3,16 @@ -webkit-text-size-adjust: 100%; } +.monaco-editor-alt.monaco-editor-alt, +.monaco-editor-alt > .monaco-editor { + --vscode-editor-background: hsl(var(--background-surface-300)) !important; + --vscode-editorGutter-background: hsl(var(--background-surface-300)) !important; +} + +.monaco-editor-alt .current-line { + border: 0 !important; +} + .monaco-editor, .monaco-diff-editor { --vscode-editor-background: hsl(var(--background-surface-200)) !important; diff --git a/apps/studio/styles/reactflow.scss b/apps/studio/styles/reactflow.scss index 083b194f818..3907847eae9 100644 --- a/apps/studio/styles/reactflow.scss +++ b/apps/studio/styles/reactflow.scss @@ -15,4 +15,4 @@ to { stroke-dashoffset: 100; } -} \ No newline at end of file +} diff --git a/apps/studio/styles/toast.scss b/apps/studio/styles/toast.scss index 03e7719f9a7..4463dff48b1 100644 --- a/apps/studio/styles/toast.scss +++ b/apps/studio/styles/toast.scss @@ -64,7 +64,9 @@ margin-bottom: 1rem; padding: 8px; border-radius: 1px; - box-shadow: 0 1px 10px 0 rgba(0, 0, 0, 0.1), 0 2px 15px 0 rgba(0, 0, 0, 0.05); + box-shadow: + 0 1px 10px 0 rgba(0, 0, 0, 0.1), + 0 2px 15px 0 rgba(0, 0, 0, 0.05); display: -ms-flexbox; display: flex; -ms-flex-pack: justify; @@ -559,4 +561,4 @@ } } -/*# sourceMappingURL=ReactToastify.css.map */ \ No newline at end of file +/*# sourceMappingURL=ReactToastify.css.map */ diff --git a/apps/studio/styles/ui.scss b/apps/studio/styles/ui.scss index cc1890276ca..334d4fd1c87 100644 --- a/apps/studio/styles/ui.scss +++ b/apps/studio/styles/ui.scss @@ -1,8 +1,3 @@ -.dark .sbui-default-button--dark-white { - @apply shadow-md text-typography-body-light border-gray-50 bg-white #{!important}; - text-shadow: none !important; -} - /* Brought over from platform to be cleaned if needed */ /* Form panels */ @@ -441,8 +436,3 @@ @apply stroke-foreground-lighter; } } - -// Used on radix popover contents so that the width matches the trigger -.popover-trigger-width { - width: var(--radix-popover-trigger-width); -} diff --git a/apps/studio/tests/components/Editor/RowEditor.utils.test.js b/apps/studio/tests/components/Editor/RowEditor.utils.test.js index 57e1958ef01..e74cbf507da 100644 --- a/apps/studio/tests/components/Editor/RowEditor.utils.test.js +++ b/apps/studio/tests/components/Editor/RowEditor.utils.test.js @@ -10,19 +10,6 @@ describe('parseValue', () => { expect(parseValue(originalValue, format)).toBeNull() }) - it('should return originalValue when it is an empty array', () => { - const originalValue = [] - const format = 'some format' - expect(parseValue(originalValue, format)).toEqual(originalValue) - }) - - it('should return originalValue when it is an empty object', () => { - const originalValue = {} - const format = 'some format' - const expectedValue = JSON.stringify(originalValue) - expect(parseValue(originalValue, format)).toEqual(expectedValue) - }) - it('should return originalValue when it is 0', () => { const originalValue = 0 const format = 'some format' @@ -41,6 +28,20 @@ describe('parseValue', () => { expect(parseValue(originalValue, format)).toEqual(originalValue) }) + it('should return JSON string representation when originalValue is an empty array', () => { + const originalValue = [] + const format = 'some format' + const expectedValue = JSON.stringify(originalValue) + expect(parseValue(originalValue, format)).toEqual(expectedValue) + }) + + it('should return JSON string representation when originalValue is an empty object', () => { + const originalValue = {} + const format = 'some format' + const expectedValue = JSON.stringify(originalValue) + expect(parseValue(originalValue, format)).toEqual(expectedValue) + }) + it('should return JSON string representation when originalValue is an object', () => { const originalValue = { key: 'value' } const format = 'some format' diff --git a/apps/studio/tests/pages/projects/Logs.utils.test.js b/apps/studio/tests/pages/projects/Logs.utils.test.js index bcc9cb45868..a03d832a813 100644 --- a/apps/studio/tests/pages/projects/Logs.utils.test.js +++ b/apps/studio/tests/pages/projects/Logs.utils.test.js @@ -24,7 +24,7 @@ describe.each(Object.values(LogsTableName))('%s', (table) => { { filter: { search_query: undefined } }, { filter: {} }, { filter: { search_query: '123test' }, contains: ['123test'] }, - // test behaviour with overrides + // test behavior with overrides { filter: { search_query: '123test', override: 'something' }, contains: ['123test', 'override', 'something'], diff --git a/apps/studio/tests/unit/destructive-query-check.test.ts b/apps/studio/tests/unit/destructive-query-check.test.ts index 2f4accb05f1..d25426900a7 100644 --- a/apps/studio/tests/unit/destructive-query-check.test.ts +++ b/apps/studio/tests/unit/destructive-query-check.test.ts @@ -34,7 +34,7 @@ describe(`destructive query check`, () => { const match = checkDestructiveQuery(stripIndent` create policy "Users can delete their own files" on storage.objects for delete to authenticated using ( - bucket id = 'files' and auth.uid () = owner + bucket id = 'files' and (select auth.uid()) = owner ); `) diff --git a/apps/studio/tsconfig.json b/apps/studio/tsconfig.json index 677ac2f3da9..882cc807fff 100644 --- a/apps/studio/tsconfig.json +++ b/apps/studio/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es5", + "target": "ES2021", "lib": ["dom", "dom.iterable", "esnext"], "allowJs": false, "skipLibCheck": true, diff --git a/apps/studio/types/base.ts b/apps/studio/types/base.ts index 373b42ace45..23c593e2307 100644 --- a/apps/studio/types/base.ts +++ b/apps/studio/types/base.ts @@ -1,5 +1,5 @@ -import jsonLogic from 'json-logic-js' import { PermissionAction } from '@supabase/shared-types/out/constants' +import jsonLogic from 'json-logic-js' export interface Organization { id: number @@ -10,6 +10,8 @@ export interface Organization { stripe_customer_id?: string opt_in_tags: string[] subscription_id?: string | null + restriction_status: 'grace_period' | 'grace_period_over' | 'restricted' | null + restriction_data: Record } /** @@ -88,7 +90,7 @@ export interface ResponseFailure { export type SupaResponse = T | ResponseFailure export interface ResponseError { - code?: number + code?: number | string message: string requestId?: string } diff --git a/apps/studio/types/userContent.ts b/apps/studio/types/userContent.ts index 83ea9647e77..bb652467872 100644 --- a/apps/studio/types/userContent.ts +++ b/apps/studio/types/userContent.ts @@ -39,6 +39,13 @@ export namespace SqlSnippets { // show sql snippet as a favorite. // this could be problematic if sql snippets have visibility that is != 'user' favorite: boolean + + chart?: { + type: 'bar' + cumulative: boolean + xKey: string + yKey: string + } } } diff --git a/apps/www/_alternatives/supabase-vs-auth0.mdx b/apps/www/_alternatives/supabase-vs-auth0.mdx index af4ee101034..a766f39cbeb 100644 --- a/apps/www/_alternatives/supabase-vs-auth0.mdx +++ b/apps/www/_alternatives/supabase-vs-auth0.mdx @@ -31,7 +31,7 @@ Row Level Security needs to be defined only once to implement authentication and ```sql create policy "Users can only view their own documents." on docs for select -using ( auth.uid() = user_id ); +using ( (select auth.uid()) = user_id ); ``` The RLS policy above will be enforced, no matter if you use the REST API, edge functions or other methods of accessing your data. diff --git a/apps/www/_blog/2020-08-05-supabase-auth.mdx b/apps/www/_blog/2020-08-05-supabase-auth.mdx index 5546d446dbb..5ddbb14d8d1 100644 --- a/apps/www/_blog/2020-08-05-supabase-auth.mdx +++ b/apps/www/_blog/2020-08-05-supabase-auth.mdx @@ -75,7 +75,7 @@ let user = await supabase.from('users').select('user_id, name').eq('user_id', lo // Returns { id: 'd0714948', name: 'Jane' ``` -... you can simply define a rule on your database table, `auth.uid() = user_id`, and your request will return the rows which pass the rule, even when you remove the filter from your middleware: +... you can simply define a rule on your database table, `(select auth.uid()) = user_id`, and your request will return the rows which pass the rule, even when you remove the filter from your middleware: ```js let user = await supabase.from('users').select('user_id, name')\n diff --git a/apps/www/_blog/2021-02-27-cracking-postgres-interview.mdx b/apps/www/_blog/2021-02-27-cracking-postgres-interview.mdx index 525b4485d83..e77e6f2ca3e 100644 --- a/apps/www/_blog/2021-02-27-cracking-postgres-interview.mdx +++ b/apps/www/_blog/2021-02-27-cracking-postgres-interview.mdx @@ -101,7 +101,7 @@ We use Row Level Security in Supabase as a way to grant/restrict access on a row ```sql CREATE POLICY "Individuals can only write their own messages." ON messages FOR - INSERT WITH CHECK (auth.uid() = user_id); + INSERT WITH CHECK ((select auth.uid()) = user_id); -- auth.uid() is a function provided by Supabase which plucks the uid out -- of the JWT sent along with an API request more on this here: diff --git a/apps/www/_blog/2021-03-30-supabase-storage.mdx b/apps/www/_blog/2021-03-30-supabase-storage.mdx index 66d4241f98b..31640c52109 100644 --- a/apps/www/_blog/2021-03-30-supabase-storage.mdx +++ b/apps/www/_blog/2021-03-30-supabase-storage.mdx @@ -131,7 +131,7 @@ create policy crud_uid_file on storage.objects for all using ( bucket_id = 'avatars' and name = 'folder/only_uid.jpg' - and auth.uid() = 'd8c7bce9-cfeb-497b-bd61-e66ce2cbdaa2' + and (select auth.uid()) = 'd8c7bce9-cfeb-497b-bd61-e66ce2cbdaa2' ); ``` diff --git a/apps/www/_blog/2021-12-01-realtime-row-level-security-in-postgresql.mdx b/apps/www/_blog/2021-12-01-realtime-row-level-security-in-postgresql.mdx index 2941605fd32..ac87bbf29ca 100644 --- a/apps/www/_blog/2021-12-01-realtime-row-level-security-in-postgresql.mdx +++ b/apps/www/_blog/2021-12-01-realtime-row-level-security-in-postgresql.mdx @@ -64,7 +64,7 @@ For example, the following policy would allow users to select their own rows in ```sql hideCopy create policy todo_select_policy on todos for select - using ( auth.uid() = user_id ); + using ( (select auth.uid()) = user_id ); ``` which is equivalent to adding diff --git a/apps/www/_blog/2022-08-24-building-a-realtime-trello-board-with-supabase-and-angular.mdx b/apps/www/_blog/2022-08-24-building-a-realtime-trello-board-with-supabase-and-angular.mdx index cd6380cef06..fd3ada15d18 100644 --- a/apps/www/_blog/2022-08-24-building-a-realtime-trello-board-with-supabase-and-angular.mdx +++ b/apps/www/_blog/2022-08-24-building-a-realtime-trello-board-with-supabase-and-angular.mdx @@ -177,7 +177,7 @@ create policy "Users can update their boards" on boards for ); create policy "Users can delete their created boards" on boards for - delete using (auth.uid() = creator); + delete using ((select auth.uid()) = creator); -- user_boards row level security alter table user_boards enable row level security; @@ -186,10 +186,10 @@ create policy "Users can add their boards" on user_boards for insert to authenticated with check (true); create policy "Users can view boards" on user_boards for - select using (auth.uid() = user_id); + select using ((select auth.uid()) = user_id); create policy "Users can delete their boards" on user_boards for - delete using (auth.uid() = user_id); + delete using ((select auth.uid()) = user_id); -- lists row level security alter table lists enable row level security; diff --git a/apps/www/_blog/2022-11-08-authentication-in-ionic-angular.mdx b/apps/www/_blog/2022-11-08-authentication-in-ionic-angular.mdx index d4440080197..ada48a190ef 100644 --- a/apps/www/_blog/2022-11-08-authentication-in-ionic-angular.mdx +++ b/apps/www/_blog/2022-11-08-authentication-in-ionic-angular.mdx @@ -115,7 +115,7 @@ create policy "Authenticated users can create groups." on groups for insert to authenticated with check (true); create policy "The owner can delete a group." on groups for - delete using (auth.uid() = creator); + delete using ((select auth.uid()) = creator); -- Message Policies create policy "Authenticated users can read messages." on messages diff --git a/apps/www/_blog/2022-11-17-fetching-and-caching-supabase-data-in-next-js-server-components.mdx b/apps/www/_blog/2022-11-17-fetching-and-caching-supabase-data-in-next-js-server-components.mdx index d602494629d..9bdcd9d41a8 100644 --- a/apps/www/_blog/2022-11-17-fetching-and-caching-supabase-data-in-next-js-server-components.mdx +++ b/apps/www/_blog/2022-11-17-fetching-and-caching-supabase-data-in-next-js-server-components.mdx @@ -384,7 +384,7 @@ But now we have loading spinners! Yuck! # Realtime -Realtime allows us to subscribe to changes in Supabase — inserted, updated or deleted posts — and update our UI dynamically. In order to receive realtime events, we need to [enable replication](https://supabase.com/dashboard/project/_/database/replication) on the posts table. +Realtime allows us to subscribe to changes in Supabase — inserted, updated or deleted posts — and update our UI dynamically. In order to receive realtime events, we need to [enable replication](https://supabase.com/dashboard/project/_/database/publications) on the posts table. Let’s merge the two previous concepts and fetch the initial state of our posts in a Server Component, and then render a Client Component to do client-y things — like subscribe to changes in the DB and update the UI dynamically: diff --git a/apps/www/_blog/2022-12-14-mfa-auth-via-rls.mdx b/apps/www/_blog/2022-12-14-mfa-auth-via-rls.mdx index 42bf196a8a0..baa4e2e1388 100644 --- a/apps/www/_blog/2022-12-14-mfa-auth-via-rls.mdx +++ b/apps/www/_blog/2022-12-14-mfa-auth-via-rls.mdx @@ -102,7 +102,7 @@ create policy "Enforce MFA for all end users." on table_name as restrictive to authenticated - using ( auth.jwt()->>'aal' = 'aal2' ); + using ( (select auth.jwt()->>'aal') = 'aal2' ); ``` _Enforce MFA for all end users_ @@ -120,7 +120,7 @@ create policy "Allow access on table only if user has gone through MFA" else array['aal1', 'aal2'] end as aal from auth.mfa_factors - where auth.uid() = user_id and status = 'verified' + where (select auth.uid()) = user_id and status = 'verified' )); ``` diff --git a/apps/www/_blog/2023-04-13-supabase-auth-sso-pkce.mdx b/apps/www/_blog/2023-04-13-supabase-auth-sso-pkce.mdx index c9b863c7c5a..d3ee41f5448 100644 --- a/apps/www/_blog/2023-04-13-supabase-auth-sso-pkce.mdx +++ b/apps/www/_blog/2023-04-13-supabase-auth-sso-pkce.mdx @@ -75,7 +75,7 @@ For example, you can use Row Level Security (RLS) to build multi-tenant applicat ```sql create policy "Only allow read-write access to tenants" on tablename as restrictive to authenticated using ( - tenant_id = (auth.jwt () -> 'app_metadata' ->> 'provider') + tenant_id = (select auth.jwt() -> 'app_metadata' ->> 'provider') ); ``` diff --git a/apps/www/_blog/2023-04-14-launch-week-7-community-highlights.mdx b/apps/www/_blog/2023-04-14-launch-week-7-community-highlights.mdx index 5bb4d6cacb3..0fbd8124bba 100644 --- a/apps/www/_blog/2023-04-14-launch-week-7-community-highlights.mdx +++ b/apps/www/_blog/2023-04-14-launch-week-7-community-highlights.mdx @@ -148,7 +148,7 @@ It’s becoming easier to build applications with any language. In the past few months, the community has rallied and shipped 3 new client libraries, complete with Docs: - Swift: - - [Documentation](/docs/reference/swift/introduction) | [Source Code](https://github.com/supabase-community/supabase-swift) + - [Documentation](/docs/reference/swift/introduction) | [Source Code](https://github.com/supabase/supabase-swift) - Shout-out to: [grsouza](https://github.com/grsouza) & [@maail](https://github.com/maail) - Python: - [Documentation](/docs/reference/python/initializing) | [Source Code](https://github.com/supabase-community/supabase-py) diff --git a/apps/www/_blog/2023-05-04-flutter-multi-factor-authentication.mdx b/apps/www/_blog/2023-05-04-flutter-multi-factor-authentication.mdx index 436c345aca7..954cc75165e 100644 --- a/apps/www/_blog/2023-05-04-flutter-multi-factor-authentication.mdx +++ b/apps/www/_blog/2023-05-04-flutter-multi-factor-authentication.mdx @@ -643,7 +643,7 @@ alter table -- Create a policy that only allows read if they user has signed in via MFA create policy "Users can view private_posts if they have signed in via MFA" on public.private_posts for select - to authenticated using (auth.jwt () - > > 'aal' = 'aal2'); + to authenticated using ((select auth.jwt() - >> 'aal') = 'aal2'); ``` `aal` here stands for [Authenticator Assurance Level](https://pages.nist.gov/800-63-3-Implementation-Resources/63B/AAL/), and it will be `aal1` for users who have only signed in with 1 sign-in method, and `aal2` for users who have completed the MFA flow. Checking the `aal` inside RLS policy ensures that the data cannot be viewed by users unless they complete the entire MFA flow. diff --git a/apps/www/_blog/2023-08-01-react-native-storage.mdx b/apps/www/_blog/2023-08-01-react-native-storage.mdx index a871528e296..1a48680ae32 100644 --- a/apps/www/_blog/2023-08-01-react-native-storage.mdx +++ b/apps/www/_blog/2023-08-01-react-native-storage.mdx @@ -68,8 +68,8 @@ You can either do this through the UI and pick from examples, or simply run my S CREATE POLICY "Enable storage access for users based on user_id" ON "storage"."objects" AS PERMISSIVE FOR ALL TO public -USING (bucket_id = 'files' AND auth.uid()::text = (storage.foldername(name))[1]) -WITH CHECK (bucket_id = 'files' AND auth.uid()::text = (storage.foldername(name))[1]) +USING (bucket_id = 'files' AND (SELECT auth.uid()::text )= (storage.foldername(name))[1]) +WITH CHECK (bucket_id = 'files' AND (SELECT auth.uid()::text) = (storage.foldername(name))[1]) ``` This will allow users to only access their own folder, and not any other files in the bucket. diff --git a/apps/www/_blog/2023-12-13-supavisor-postgres-connection-pooler.mdx b/apps/www/_blog/2023-12-13-supavisor-postgres-connection-pooler.mdx index 04d487edb73..a3687d25628 100644 --- a/apps/www/_blog/2023-12-13-supavisor-postgres-connection-pooler.mdx +++ b/apps/www/_blog/2023-12-13-supavisor-postgres-connection-pooler.mdx @@ -87,18 +87,18 @@ For the Supavisor rollout, we maintained consistent pooling settings between PgB Now, we're raising the client connection limit for smaller projects in Supavisor. Here are the updated default configurations: -| Database Size | default_pool_size | max_connections | default_max_clients | -| ------------- | ----------------- | --------------- | --------------------- | -| micro | 15 | 60 | 200 | -| small | 15 | 90 | 1000 (previously 200) | -| medium | 15 | 120 | 1000 (previously 200) | -| large | 15 | 160 | 1000 (previously 300) | -| xl | 20 | 240 | 1000 (previously 700) | -| 2xl | 25 | 380 | 1500 | -| 4xl | 32 | 480 | 3000 | -| 8xl | 64 | 490 | 6000 | -| 12xl | 96 | 500 | 9000 | -| 16xl | 128 | 500 | 12000 | +| Database Size | default_pool_size | max_connections | default_max_clients | +| ------------- | ----------------- | --------------- | ---------------------- | +| Micro | 15 | 60 | 200 | +| Small | 15 | 90 | 400 (previously 200) | +| Medium | 15 | 120 | 600 (previously 200) | +| Large | 20 | 160 | 800 (previously 300) | +| XL | 20 | 240 | 1,000 (previously 700) | +| 2XL | 25 | 380 | 1,500 | +| 4XL | 32 | 480 | 3,000 | +| 8XL | 64 | 490 | 6,000 | +| 12XL | 96 | 500 | 9,000 | +| 16XL | 128 | 500 | 12,000 | In this table: diff --git a/apps/www/_blog/2024-01-17-what-is-saml-authentication.mdx b/apps/www/_blog/2024-01-17-what-is-saml-authentication.mdx index 2fd73b52598..4672e464baf 100644 --- a/apps/www/_blog/2024-01-17-what-is-saml-authentication.mdx +++ b/apps/www/_blog/2024-01-17-what-is-saml-authentication.mdx @@ -135,7 +135,7 @@ on invited_users as restrictive for insert with check ( - sso_provider_id = auth.jwt()#>>'{amr,0,provider}' + sso_provider_id = (select auth.jwt()#>>'{amr,0,provider}') ); ``` diff --git a/apps/www/_blog/2024-01-26-flutter-figma-clone.mdx b/apps/www/_blog/2024-01-26-flutter-figma-clone.mdx index 8640a76f8c2..51c2c615d3f 100644 --- a/apps/www/_blog/2024-01-26-flutter-figma-clone.mdx +++ b/apps/www/_blog/2024-01-26-flutter-figma-clone.mdx @@ -860,6 +860,8 @@ This article only used circles and rectangles to keep things simple, but you can ## Resources -- [Create live cursor app with Flutter and Supabase video](https://www.youtube.com/watch?v=QhRNXlFLaeE) +- [Add live cursor sharing using Flutter and Supabase | Flutter Figma Clone #1](https://youtu.be/QhRNXlFLaeE?si=_hi5WcILUsAv8jJY) +- [Draw and sync canvas in real-time | Flutter Figma Clone #2](https://youtu.be/zKjrmAMf2Cs?si=i7zILCFKitjDb45K) +- [Track online users with Supabase Realtime Presence | Flutter Figma Clone #3](https://youtu.be/B2NZvZ2uLNs?si=0rMj7u1gaMH9Bmdm) - [How to build a real-time multiplayer game with Flutter Flame](https://supabase.com/blog/flutter-real-time-multiplayer-game) - [Getting started with Flutter authentication](https://supabase.com/blog/flutter-authentication) diff --git a/apps/www/_blog/2024-03-26-semantic-image-search-amazon-bedrock.mdx b/apps/www/_blog/2024-03-26-semantic-image-search-amazon-bedrock.mdx new file mode 100644 index 00000000000..6e6b9677b31 --- /dev/null +++ b/apps/www/_blog/2024-03-26-semantic-image-search-amazon-bedrock.mdx @@ -0,0 +1,247 @@ +--- +title: 'Implementing semantic image search with Amazon Titan and Supabase Vector' +description: 'Implementing semantic image search with Amazon Titan and Supabase Vector in Python.' +author: thor_schaeff +image: getting-started/amazon-bedrock/amazon-bedrock-supabase-vecs.png +thumb: getting-started/amazon-bedrock/amazon-bedrock-supabase-vecs.png +categories: + - engineering +tags: + - postgres + - developers + - ai +date: '2024-03-26' +toc_depth: 3 +--- + +[Amazon Bedrock](https://aws.amazon.com/bedrock) is a fully managed service that offers a choice of high-performing foundation models (FMs) from leading AI companies like AI21 Labs, Anthropic, Cohere, Meta, Mistral AI, Stability AI, and Amazon. Each model is accessible through a common API which implements a broad set of features to help build generative AI applications with security, privacy, and responsible AI in mind. + +[Amazon Titan](https://aws.amazon.com/bedrock/titan/) is a family of foundation models (FMs) for text and image generation, summarization, classification, open-ended Q&A, information extraction, and text or image search. + +In this post we'll look at how we can get started with Amazon Bedrock and Supabase Vector in Python using the Amazon Titan multimodal model and the [vecs client](/docs/guides/ai/vecs-python-client). + +You can find the full application code as a Python Poetry project on [GitHub](https://github.com/supabase/supabase/tree/master/examples/ai/aws_bedrock_image_search). + +## Create a new Python project with Poetry + +[Poetry](https://python-poetry.org/) provides packaging and dependency management for Python. If you haven't already, install poetry via pip: + +```shell +pip install poetry +``` + +Then initialize a new project: + +```shell +poetry new aws_bedrock_image_search +``` + +## Spin up a Postgres Database with pgvector + +If you haven't already, head over to [database.new](https://database.new) and create a new project. Every Supabase project comes with a full Postgres database and the [pgvector extension](/docs/guides/database/extensions/pgvector) preconfigured. + +When creating your project, make sure to note down your database password as you will need it to construct the `DB_URL` in the next step. + +You can find the database connection string in your Supabase Dashboard [database settings](https://supabase.com/dashboard/project/_/settings/database). Select "Use connection pooling" with `Mode: Session` for a direct connection to your Postgres database. It will look something like this: + +```txt +postgresql://postgres.[PROJECT-REF]:[YOUR-PASSWORD]@aws-0-[REGION].pooler.supabase.com:5432/postgres +``` + +## Install the dependencies + +We will need to add the following dependencies to our project: + +- [`vecs`](https://github.com/supabase/vecs#vecs): Supabase Vector Python Client. +- [`boto3`](https://boto3.amazonaws.com/v1/documentation/api/latest/index.html): AWS SDK for Python. +- [`matplotlib`](https://matplotlib.org/): for displaying our image result. + +```shell +poetry add vecs boto3 matplotlib +``` + +## Import the necessary dependencies + +At the top of your main python script, import the dependencies and store your `DB URL` from above in a variable: + +```python +import sys +import boto3 +import vecs +import json +import base64 +from matplotlib import pyplot as plt +from matplotlib import image as mpimg +from typing import Optional + +DB_CONNECTION = "postgresql://postgres.[PROJECT-REF]:[YOUR-PASSWORD]@aws-0-[REGION].pooler.supabase.com:5432/postgres" +``` + +Next, get the [credentials to your AWS account](https://boto3.amazonaws.com/v1/documentation/api/latest/guide/credentials.html) and instantiate the `boto3` client: + +```python +bedrock_client = boto3.client( + 'bedrock-runtime', + region_name='us-west-2', + # Credentials from your AWS account + aws_access_key_id='', + aws_secret_access_key='', + aws_session_token='', +) +``` + +## Create embeddings for your images + +In the root of your project, create a new folder called `images` and add some images. You can use the images from the example project on [GitHub](https://github.com/supabase/supabase/tree/master/examples/ai/aws_bedrock_image_search/images) or you can find license free images on [unsplash](https://unsplash.com). + +To send images to the Amazon Bedrock API we need to need to encode them as `base64` strings. Create the following helper methods: + +```python +def readFileAsBase64(file_path): + """Encode image as base64 string.""" + try: + with open(file_path, "rb") as image_file: + input_image = base64.b64encode(image_file.read()).decode("utf8") + return input_image + except: + print("bad file name") + sys.exit(0) + + +def construct_bedrock_image_body(base64_string): + """Construct the request body. + + https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters-titan-embed-mm.html + """ + return json.dumps( + { + "inputImage": base64_string, + "embeddingConfig": {"outputEmbeddingLength": 1024}, + } + ) + + +def get_embedding_from_titan_multimodal(body): + """Invoke the Amazon Titan Model via API request.""" + response = bedrock_client.invoke_model( + body=body, + modelId="amazon.titan-embed-image-v1", + accept="application/json", + contentType="application/json", + ) + + response_body = json.loads(response.get("body").read()) + print(response_body) + return response_body["embedding"] + + +def encode_image(file_path): + """Generate embedding for the image at file_path.""" + base64_string = readFileAsBase64(file_path) + body = construct_bedrock_image_body(base64_string) + emb = get_embedding_from_titan_multimodal(body) + return emb +``` + +Next, create a `seed` method, which will create a new Supabase Vector Collection, generate embeddings for your images, and upsert the embeddings into your database: + +```python +def seed(): + # create vector store client + vx = vecs.create_client(DB_CONNECTION) + + # get or create a collection of vectors with 1024 dimensions + images = vx.get_or_create_collection(name="image_vectors", dimension=1024) + + # Generate image embeddings with Amazon Titan Model + img_emb1 = encode_image('./images/one.jpg') + img_emb2 = encode_image('./images/two.jpg') + img_emb3 = encode_image('./images/three.jpg') + img_emb4 = encode_image('./images/four.jpg') + + # add records to the *images* collection + images.upsert( + records=[ + ( + "one.jpg", # the vector's identifier + img_emb1, # the vector. list or np.array + {"type": "jpg"} # associated metadata + ), ( + "two.jpg", + img_emb2, + {"type": "jpg"} + ), ( + "three.jpg", + img_emb3, + {"type": "jpg"} + ), ( + "four.jpg", + img_emb4, + {"type": "jpg"} + ) + ] + ) + print("Inserted images") + + # index the collection for fast search performance + images.create_index() + print("Created index") +``` + +Add this method as a script in your `pyproject.toml` file: + +```toml +[tool.poetry.scripts] +seed = "image_search.main:seed" +search = "image_search.main:search" +``` + +After activating the virtual environtment with `poetry shell` you can now run your seed script via `poetry run seed`. You can inspect the generated embeddings in your Supabase Dashboard by visiting the [Table Editor](https://supabase.com/dashboard/project/_/editor), selecting the `vecs` schema, and the `image_vectors` table. + +## Perform an image search from a text query + +With Supabase Vector we can easily query our embeddings. We can use either an image as the search input or alternatively we can generate an embedding from a string input and use that as the query input: + +```python +def search(query_term: Optional[str] = None): + if query_term is None: + query_term = sys.argv[1] + + # create vector store client + vx = vecs.create_client(DB_CONNECTION) + images = vx.get_or_create_collection(name="image_vectors", dimension=1024) + + # Encode text query + text_emb = get_embedding_from_titan_multimodal(json.dumps( + { + "inputText": query_term, + "embeddingConfig": {"outputEmbeddingLength": 1024}, + } + )) + + # query the collection filtering metadata for "type" = "jpg" + results = images.query( + data=text_emb, # required + limit=1, # number of records to return + filters={"type": {"$eq": "jpg"}}, # metadata filters + ) + result = results[0] + print(result) + plt.title(result) + image = mpimg.imread('./images/' + result) + plt.imshow(image) + plt.show() +``` + +By limiting the query to one result, we can show the most relevant image to the user. Finally we use `matplotlib` to show the image result to the user. + +That's it, go ahead and test it out by running `poetry run search` and you will be presented with an image of a "bike in front of a red brick wall". + +## Conclusion + +With just a couple of lines of Python you are able to implement image search as well as reverse image search using the Amazon Titan multimodal model and Supabase Vector. + +## More Supabase + +- [Getting started with Amazon Bedrock and vecs](/docs/guides/ai/integrations/amazon-bedrock) +- [Matryoshka embeddings: faster OpenAI vector search using Adaptive Retrieval](/blog/matryoshka-embeddings) diff --git a/apps/www/_blog/2024-04-01-pg-paper-dump.mdx b/apps/www/_blog/2024-04-01-pg-paper-dump.mdx new file mode 100644 index 00000000000..e7ba9c8f17d --- /dev/null +++ b/apps/www/_blog/2024-04-01-pg-paper-dump.mdx @@ -0,0 +1,68 @@ +--- +title: Announcing Data Preservation Service +description: Secure, reliable and timeless backups +author: long +image: 2024-04-01-pg-paper-dump/pg-paper-dump-thumb.png +thumb: 2024-04-01-pg-paper-dump/pg-paper-dump-thumb.png +categories: + - company +tags: + - announcements +date: '2024-04-01' +toc_depth: 3 +--- + +We live in a world where data is as critical as air and water, powering everything from global enterprises to personal projects. At Supabase, we create products that are not just cutting-edge but also secure, reliable, and now, timeless. + +Today, we are excited to introduce a groundbreaking service that bridges the digital divide with the most enduring medium known to humankind: paper. Meet [pg_paper_dump](https://github.com/supabase-community/pg_paper_dump), Supabase’s answer to the ultimate data preservation conundrum. + +## Why Paper? + +In the digital era, the threat landscape is constantly evolving, with new vulnerabilities emerging at a pace that's hard to keep up with. While digital backups are the norm, they are susceptible to cyber-attacks, hardware failures, and obsolescence. + +This vulnerability led us to think outside the digital box and into a realm that is impervious to hacking, immune to electromagnetic pulses, and resistant to time itself: physical paper. + +![Historical Paper Backup on Papyrus](/images/blog/2024-04-01-pg-paper-dump/historical-paper-backup.webp) + +Historical data backup on Papyrus that inspired `pg_paper_dump`. + +## How does `pg_paper_dump` work? + +### Backup Process + +1. **Select Your Data:** Choose the databases you wish to back up with `pg_paper_dump`. +2. **Encode and Print:** Our system encodes your data with Comic Sans and prints it onto durable paper. +3. **Secure Storage:** We store your paper backups in a location of your choice or utilize our secure Arctic Vault for maximum security. + +### Restoration Process + +1. **Select your recovery point:** Thanks to point-in-time recovery, we can restore your data up until any specific page. +2. **Restore:** Our Mechanical Turks are trained to decode data encoded in Comic Sans and will input your data with reasonable human-accuracy into your destination database. + +### Scaling data preservation with containers + +Our Analog Engineering team has developed a container orchestration protocol to coordinate the backup and restore process of large databases. + +![Scaling analog data preservation with container orchetration](/images/blog/2024-04-01-pg-paper-dump/paper-container.jpeg) + +## Who is pg_paper_dump for? + +- Companies that use fax machines. +- Future SOC 4 compliant companies. +- [Vogons](https://en.m.wikipedia.org/wiki/Vogon). + +## Features and Benefits + +- **Security:** Provides a level of security that is fundamentally beyond the reach of digital vulnerabilities. +- **Eco-conscious:** Our materials are selected for minimal environmental impact without compromising on durability or legibility. +- **Simplicity of Restoration:** When the time comes, restoring your data is as simple as taking the printed codes and typing them back into Supabase’s SQL editor. + +## Availability + +[Sign up](https://forms.supabase.com/pg-paper-dump) for our open beta to get access to `pg_paper_dump` now or try it out our self-hosted solution. + +As all of our products, we have open-sourced the code and made it available to the public to be used without any restrictions [here](https://github.com/supabase-community/pg_paper_dump). + +## The Future is Here + +We are offering a bridge between these worlds, providing a backup solution that stands the test of time. Join us in redefining data security and making history, one sheet at a time. diff --git a/apps/www/_blog/2024-04-11-postgres-roles-and-privileges.mdx b/apps/www/_blog/2024-04-11-postgres-roles-and-privileges.mdx new file mode 100644 index 00000000000..c876a6f2700 --- /dev/null +++ b/apps/www/_blog/2024-04-11-postgres-roles-and-privileges.mdx @@ -0,0 +1,748 @@ +--- +title: Postgres Roles and Privileges +description: A guide to Postgres roles and privileges +author: raminder_singh +image: 2024-04-11-postgres-roles/pg-roles-og.png +thumb: 2024-04-11-postgres-roles/pg-roles-og.png +categories: + - engineering +tags: + - supabase-engineering + - planetpg +date: '2024-04-11' +toc_depth: 3 +--- + +Controlling access to data in Postgres is paramount for data security. Postgres provides a robust and flexible permissions model for users to manage access to their data. The permissions model is based on the familiar object, privilege, role model but has subtleties which must be understood by a database administrator to create airtight access. In this post we will take a detailed look at how roles and permissions work in Postgres. + +# Basic Concepts + +Let's first understand some basic concepts which will be used throughout the rest of the post. + +## Database Object + +A database object is any entity created in the database. Tables, foreign tables, views, materialized views, types, domains, operators, functions, triggers etc. are database objects. Objects allow operations on them which vary for each object. For example, you can _select_ data from a table and you can _execute_ a function. + +## Privilege + +A privilege controls what operation is allowed to be run on a database object. For example, the `select` privilege on a table controls the ability to read data from the table. Similarly, the `execute` privilege controls the ability to execute a function. Privileges are assigned to roles. A role must have the permission for the operation it is performing on an object. + +## Role + +A role is a user or a group. A user is someone who can login to the database. A group is a collection of users to make it easier to manage privileges for users. Unlike a user, a group can't login to the database. The distinction between a user and a group doesn’t matter to Postgres for the most part as they are both roles, but it is still useful to think of them as separate concepts for ease of understanding. + +## Owner + +Every database object has an owner. The owner has complete control over the object. They can modify or delete the object or grant privileges to other users and groups. When a user creates a new object, they become the owner of the object. An owner can also transfer the ownership of objects to other roles. A role cannot be deleted before all its owned objects’ ownership is transferred to another role. + +With these basic terms defined, let's take a look at the permissions model in Postgres in depth. The rest of the post will be more like a tutorial, so you can follow along. I'll be using a hosted Supabase project, but you are free to use any Postgres installation. + +# Setting Up + +Create a new Supabase project (or use an existing one) and copy its connection string URI from the [Database Settings page](https://supabase.com/dashboard/project/_/settings/database). The URI looks like the following: + +```bash +postgres://[USER].[YOUR-PROJECT-REF]:[YOUR-PASSWORD]@[REGION-SUBDOMAIN].pooler.supabase.com:5432/postgres +``` + +Where `USER` is the user to connect as. `YOUR-PROJECT-REF` is a string uniquely identifying your project. `YOUR-PASSWORD` is the database password for the `USER` user and `REGION-SUBDOMAIN` is the subdomain where your database is hosted. + +Use the [`psql` command line tool](https://www.postgresql.org/download/) to connect to the database: + +```bash +➜ psql postgres://postgres.[YOUR-PROJECT-REF]:[YOUR-PASSWORD]@[REGION-SUBDOMAIN].pooler.supabase.com:5432/postgres +``` + +Once connected, confirm that you are connected as the `postgres` user by running `select current_role` command: + +```bash +# as postgres +postgres=> select current_role; +┌──────────────┐ +│ current_role │ +├──────────────┤ +│ portgres │ +└──────────────┘ +(1 row) +``` + +## Creating Roles + +Now, let's create two users named `junior_dev` and `senior_dev`. A database role can be created with the `create role` command. Since a user is a role that can login, use the `login` parameter: + +```bash +# as postgres +postgres=> create role junior_dev login password 'a long and secure password'; +CREATE ROLE +postgres=> create role senior_dev login password 'another long and secure password'; +CREATE ROLE +``` + +You can now confirm that the `junior_dev` and `senior_dev` users can login to the database: + +```bash +➜ psql postgres://junior_dev.[YOUR-PROJECT-REF]:[YOUR-PASSWORD]@[REGION-SUBDOMAIN].pooler.supabase.com:5432/postgres + +postgres=> select current_role; +┌──────────────┐ +│ current_role │ +├──────────────┤ +│ junior_dev │ +└──────────────┘ +(1 row) + +postgres=> exit + +➜ psql postgres://senior_dev.[YOUR-PROJECT-REF]:[YOUR-PASSWORD]@[REGION-SUBDOMAIN].pooler.supabase.com:5432/postgres + +postgres=> select current_role; +┌──────────────┐ +│ current_role │ +├──────────────┤ +│ senior_dev │ +└──────────────┘ +(1 row) +``` + +For the rest of the post, open three terminals and login each with `junior_dev`, `senior_dev` and `postgres` to easily switch between them. Each executed command will list at the beginning the user it should be executed as, for example: + +```bash +# as junior_dev +postgres=> this command should be executed from the junior_dev's terminal +``` + +## Creating Objects and Assigning Privileges + +Let's now try to create a table from as `junior_dev`: + +```bash +# as junior_dev +postgres=> create table public.apps(id serial primary key, name text); +ERROR: permission denied for schema public +LINE 1: create table public.apps(id serial primary key, name text); + ^ +``` + +What happened? The error `permission denied for schema public` tells us that `junior_dev` doesn't have some permission on the `public` schema. We can check existing permissions on a schema using the `dn+ ` command in `psql`: + +```bash +# as junior_dev +postgres=> \dn+ public + List of schemas +┌────────┬───────────────────┬────────────────────────────────────────┬────────────────────────┐ +│ Name │ Owner │ Access privileges │ Description │ +├────────┼───────────────────┼────────────────────────────────────────┼────────────────────────┤ +│ public │ pg_database_owner │ pg_database_owner=UC/pg_database_owner↵│ standard public schema │ +│ │ │ =U/pg_database_owner ↵│ │ +│ │ │ postgres=U/pg_database_owner ↵│ │ +│ │ │ anon=U/pg_database_owner ↵│ │ +│ │ │ authenticated=U/pg_database_owner ↵│ │ +│ │ │ service_role=U/pg_database_owner │ │ +└────────┴───────────────────┴────────────────────────────────────────┴────────────────────────┘ +(1 row) +``` + +Indeed, the `Access privileges` column doesn’t list `junior_dev` role anywhere, which means it doesn’t have any permission on the `public` schema. How do we fix this? The`postgres` user in Supabase hosted databases is a powerful role with more privileges than many other roles. Think of the `postgres` role as an admin role, although it is not a superuser. We can use this role to grant appropriate permissions. + +So, let’s switch to the `postgres` user connection and grant `junior_dev` the permission to create objects in the `public` schema. The general format of the `grant` command is `grant on to `. You can consult the [privileges page in Postgres documentation](https://www.postgresql.org/docs/current/ddl-priv.html) to find out the correct privilege name. + +```bash +# as postgres +postgres=> grant create on schema public to junior_dev; +GRANT +``` + +Let’s check the permissions again: + +```bash +# as junior_dev +postgres=> \dn+ public + List of schemas +┌────────┬───────────────────┬────────────────────────────────────────┬────────────────────────┐ +│ Name │ Owner │ Access privileges │ Description │ +├────────┼───────────────────┼────────────────────────────────────────┼────────────────────────┤ +│ public │ pg_database_owner │ pg_database_owner=UC/pg_database_owner↵│ standard public schema │ +│ │ │ =U/pg_database_owner ↵│ │ +│ │ │ postgres=U/pg_database_owner ↵│ │ +│ │ │ anon=U/pg_database_owner ↵│ │ +│ │ │ authenticated=U/pg_database_owner ↵│ │ +│ │ │ service_role=U/pg_database_owner ↵│ │ +│ │ │ junior_dev=C/pg_database_owner │ │ +└────────┴───────────────────┴────────────────────────────────────────┴────────────────────────┘ +(1 row) +``` + +This time we see a new line in the access privileges column: + + + +```bash +# as junior_dev +postgres=> create table public.apps(id serial primary key, name text); +CREATE TABLE +``` + +Let’s insert some data in it: + +```bash +# as junior_dev +postgres=> insert into public.apps(name) values ('next app'); +INSERT 0 1 +postgres=> select * from public.apps; +┌────┬──────────┐ +│ id │ name │ +├────┼──────────┤ +│ 1 │ next app │ +└────┴──────────┘ +(1 row) +``` + +Now switch to `senior_dev` and try to select data from the table: + +```bash +# as senior_dev +postgres=> select * from public.apps; +ERROR: permission denied for table apps +``` + +`senior_dev` can’t select data from the `public.apps` table. Let’s debug the permissions error as before. The command in `psql` to view table permissions is `\dp `: + +```bash +# as senior_dev +postgres=> \dp public.apps + Access privileges +┌────────┬──────┬───────┬───────────────────┬───────────────────┬──────────┐ +│ Schema │ Name │ Type │ Access privileges │ Column privileges │ Policies │ +├────────┼──────┼───────┼───────────────────┼───────────────────┼──────────┤ +│ public │ apps │ table │ │ │ │ +└────────┴──────┴───────┴───────────────────┴───────────────────┴──────────┘ +(1 row) +``` + +No access privileges are present at all. As we did before, let’s now switch to the `postgres` user and fix the permissions. The [privileges page](https://www.postgresql.org/docs/current/ddl-priv.html) tells us that we need to grant the `select` privilege to `senior_dev` for them to select data from the `public.apps` table: + +```bash +# as postgres +postgres=> grant select on table public.apps to senior_dev; +ERROR: permission denied for table apps +``` + +Why can’t `postgres` grant the `select` privilege? Because it is neither an owner, nor has it any access privileges on the table. But then how was `junior_dev` able to select data from the table? That is because `junior_dev` is the owner of the table: + +```bash +# as postgres +postgres=> \dt public.apps + List of relations +┌────────┬──────┬───────┬────────────┐ +│ Schema │ Name │ Type │ Owner │ +├────────┼──────┼───────┼────────────┤ +│ public │ apps │ table │ junior_dev │ +└────────┴──────┴───────┴────────────┘ +(1 row) +``` + +Since an owner has all the privileges on an object, `junior_dev` can select the data. `junior_dev` can also grant privileges on the owned objects to other roles. Let’s fix the permissions with `junior_dev`: + +```bash +# as junior_dev +postgres=> grant select on public.apps to senior_dev; +GRANT +``` + +Now `senior_dev` can select the data: + +```bash +# as senior_dev +postgres=> select * from public.apps; +┌────┬──────────┐ +│ id │ name │ +├────┼──────────┤ +│ 1 │ next app │ +└────┴──────────┘ +(1 row) +``` + +Another option in the above example would have been for `junior_dev` to grant the _privilege to grant the `select` privilege_ to the `postgres` role. The `postgres` role would then have been able to grant the `select` privilege to `senior_dev`. To try this, let’s revoke the previously granted privilege to `senior_dev` first: + +```bash +# as junior_dev +postgres=> revoke select on public.apps from senior_dev; +REVOKE +``` + +And then grant the `select` privilege `with grant option` to `postgres`: + +```bash +# as junior_dev +postgres=> grant select on public.apps to postgres with grant option; +GRANT +``` + +Now, if we view the permissions on the `public.apps` table: + +```bash +# as_junior_dev +postgres=> \dp public.apps + Access privileges +┌────────┬──────┬───────┬───────────────────────────────┬───────────────────┬──────────┐ +│ Schema │ Name │ Type │ Access privileges │ Column privileges │ Policies │ +├────────┼──────┼───────┼───────────────────────────────┼───────────────────┼──────────┤ +│ public │ apps │ table │ junior_dev=arwdDxt/junior_dev↵│ │ │ +│ │ │ │ postgres=r*/junior_dev │ │ │ +└────────┴──────┴───────┴───────────────────────────────┴───────────────────┴──────────┘ +(1 row) +``` + +Notice the `*` after the `r` in `postgres=r*/junior_dev`. which indicates that the `select` permission was granted `with grant option`. Now `postgres` can grant the `select` privilege to `senior_dev`: + +```bash +# as postgres +postgres=> grant select on table public.apps to senior_dev; +GRANT +``` + +And `senior_dev` has the `select` privilege and can select from the table again: + +```bash +# as senior_dev +postgres=> \dp public.apps + Access privileges +┌────────┬──────┬───────┬───────────────────────────────┬───────────────────┬──────────┐ +│ Schema │ Name │ Type │ Access privileges │ Column privileges │ Policies │ +├────────┼──────┼───────┼───────────────────────────────┼───────────────────┼──────────┤ +│ public │ apps │ table │ junior_dev=arwdDxt/junior_dev↵│ │ │ +│ │ │ │ postgres=r*/junior_dev ↵│ │ │ +│ │ │ │ senior_dev=r/postgres │ │ │ +└────────┴──────┴───────┴───────────────────────────────┴───────────────────┴──────────┘ +(1 row) + +postgres=> select * from public.apps; +┌────┬──────────┐ +│ id │ name │ +├────┼──────────┤ +│ 1 │ next app │ +└────┴──────────┘ +(1 row) +``` + +A `grant` command only adds privileges for existing objects. What if we want to grant certain privileges to objects as soon as they are created? That’s where default access privileges come in. + +### Default Access Privileges + +If `junior_dev` now creates another table, it has to grant the privileges again to `senior_dev`. To avoid doing this each time `junior_dev` creates a new table, we can alter `junior_dev`'s default access privileges. First let’s see the current default privileges on the `public` schema: + +```bash +# as junior_dev +postgres=> \ddp public + Default access privileges +┌────────────────┬────────┬──────────┬──────────────────────────────────────┐ +│ Owner │ Schema │ Type │ Access privileges │ +├────────────────┼────────┼──────────┼──────────────────────────────────────┤ +│ postgres │ public │ function │ postgres=X/postgres ↵│ +│ │ │ │ anon=X/postgres ↵│ +│ │ │ │ authenticated=X/postgres ↵│ +│ │ │ │ service_role=X/postgres │ +│ postgres │ public │ sequence │ postgres=rwU/postgres ↵│ +│ │ │ │ anon=rwU/postgres ↵│ +│ │ │ │ authenticated=rwU/postgres ↵│ +│ │ │ │ service_role=rwU/postgres │ +│ postgres │ public │ table │ postgres=arwdDxt/postgres ↵│ +│ │ │ │ anon=arwdDxt/postgres ↵│ +│ │ │ │ authenticated=arwdDxt/postgres ↵│ +│ │ │ │ service_role=arwdDxt/postgres │ +│ supabase_admin │ public │ function │ postgres=X/supabase_admin ↵│ +│ │ │ │ anon=X/supabase_admin ↵│ +│ │ │ │ authenticated=X/supabase_admin ↵│ +│ │ │ │ service_role=X/supabase_admin │ +│ supabase_admin │ public │ sequence │ postgres=rwU/supabase_admin ↵│ +│ │ │ │ anon=rwU/supabase_admin ↵│ +│ │ │ │ authenticated=rwU/supabase_admin ↵│ +│ │ │ │ service_role=rwU/supabase_admin │ +│ supabase_admin │ public │ table │ postgres=arwdDxt/supabase_admin ↵│ +│ │ │ │ anon=arwdDxt/supabase_admin ↵│ +│ │ │ │ authenticated=arwdDxt/supabase_admin↵│ +│ │ │ │ service_role=arwdDxt/supabase_admin │ +└────────────────┴────────┴──────────┴──────────────────────────────────────┘ +(6 rows) +``` + +Neither `junior_dev` nor `senior_dev` are listed. Let’s alter `junior_dev`'s default privileges: + +```bash +# as junior_dev +postgres=> alter default privileges in schema public grant select on tables to senior_dev; +ALTER DEFAULT PRIVILEGES +``` + +Here we are altering default privileges such that whenever `junior_dev` creates a new table in the `public` schema, `senior_dev` should be granted `select` privilege on it. Let’s check the privileges again: + +```bash +# as junior_dev +postgres=> \ddp public + Default access privileges +┌────────────────┬────────┬──────────┬──────────────────────────────────────┐ +│ Owner │ Schema │ Type │ Access privileges │ +├────────────────┼────────┼──────────┼──────────────────────────────────────┤ +│ junior_dev │ public │ table │ senior_dev=r/junior_dev │ +│ postgres │ public │ function │ postgres=X/postgres ↵│ +│ │ │ │ anon=X/postgres ↵│ +│ │ │ │ authenticated=X/postgres ↵│ +│ │ │ │ service_role=X/postgres │ +│ postgres │ public │ sequence │ postgres=rwU/postgres ↵│ +│ │ │ │ anon=rwU/postgres ↵│ +│ │ │ │ authenticated=rwU/postgres ↵│ +│ │ │ │ service_role=rwU/postgres │ +│ postgres │ public │ table │ postgres=arwdDxt/postgres ↵│ +│ │ │ │ anon=arwdDxt/postgres ↵│ +│ │ │ │ authenticated=arwdDxt/postgres ↵│ +│ │ │ │ service_role=arwdDxt/postgres │ +│ supabase_admin │ public │ function │ postgres=X/supabase_admin ↵│ +│ │ │ │ anon=X/supabase_admin ↵│ +│ │ │ │ authenticated=X/supabase_admin ↵│ +│ │ │ │ service_role=X/supabase_admin │ +│ supabase_admin │ public │ sequence │ postgres=rwU/supabase_admin ↵│ +│ │ │ │ anon=rwU/supabase_admin ↵│ +│ │ │ │ authenticated=rwU/supabase_admin ↵│ +│ │ │ │ service_role=rwU/supabase_admin │ +│ supabase_admin │ public │ table │ postgres=arwdDxt/supabase_admin ↵│ +│ │ │ │ anon=arwdDxt/supabase_admin ↵│ +│ │ │ │ authenticated=arwdDxt/supabase_admin↵│ +│ │ │ │ service_role=arwdDxt/supabase_admin │ +└────────────────┴────────┴──────────┴──────────────────────────────────────┘ +(7 rows) +``` + +The first line now indicates the default access privilege we just added. Let’s now create a new table and insert a row in it: + +```bash +# as junior_dev +postgres=> create table public.users(id serial primary key, name text); +CREATE TABLE +postgres=> insert into public.users(name) values ('john doe'); +INSERT 0 1 +``` + +Now try to select data in `public.users` from `senior_dev`: + +```bash +# as senior_dev +postgres=> select * from public.users; +┌────┬──────────┐ +│ id │ name │ +├────┼──────────┤ +│ 1 │ john doe │ +└────┴──────────┘ +(1 row) +``` + +Note that we were immediately able to select data from `public.users` without explicit grants from `junior_dev`. + +It is clear from above that the owner has all the privileges on an object which they can grant to other roles. But it can become cumbersome for the owner to keep granting the same privileges to every new role. There is a better way. We can ensure that objects are owned by a group and then any users which need access to those objects are assigned membership to the group. Let’s see how this works. + +## Creating Groups + +We want to create a new `developers` group which will own the `public.apps` table. Then we will make `junior_dev` and `senior_dev` members of the `developers` group. This will ensure that they both have the same kind of access, without explicitly granting privileges after creating a new object. + +First, let’s drop the `public.apps` table: + +```bash +# as junior_dev +postgres=> drop table public.apps; +DROP TABLE +``` + +Let’s also revoke the `create` privilege from `junior_dev` on the `public` schema: + +```bash +# as postgres +postgres=> revoke create on schema public from junior_dev; +REVOKE +``` + +Let’s create a `developers` group. Since a group is a role that is not allowed to login, use the `nologin` parameter: + +```bash +# as postgres +postgres=> create role developers nologin; +CREATE ROLE +``` + +You can't login with the `developers` role because we set the `nologin` parameter. The `login`/`nologin` parameters control the `login` attribute of a role. Earlier we also set the `password` attribute of the `junior_dev` and `senior_dev` roles. There are many other [role attributes](https://www.postgresql.org/docs/current/role-attributes.html) which we will talk about later in the post. + +Let’s give the `create` privilege to the `developers` group: + +```bash +# as postgres +postgres=> grant create on schema public to developers; +GRANT +``` + +Since `junior_dev` and `senior_dev` users do not have `create` privilege on the `public` schema, they can’t create objects in it. The `developers` group can, but we can’t login with it. So how do we create `public.apps` owned by `developers`? Well, a user can temporarily impersonate a group if they are a member of the group. So let’s ensure `junior_dev` and `senior_dev` are members of the `developers` group: + +```bash +# as postgres +postgres=> grant developers to junior_dev; +GRANT ROLE +postgres=> grant developers to senior_dev; +GRANT ROLE +``` + +The `grant to ` is another variant of the `grant` command but should be mentally read as `add to `. + + + +Now `junior_dev` (or `senior_dev`) can impersonate `developers`: + +```bash +# as junior_dev +postgres=> set role developers; +SET +postgres=> select current_role; +┌──────────────┐ +│ current_role │ +├──────────────┤ +│ developers │ +└──────────────┘ +(1 row) +``` + +And create the `public.apps` table: + +```bash +# as junior_dev +postgres=> create table public.apps(id serial primary key, name text); +CREATE TABLE +``` + +Which is owned by the `developers` group: + +```bash +# as junior_dev +postgres=> \dt public.apps + List of relations +┌────────┬──────┬───────┬────────────┐ +│ Schema │ Name │ Type │ Owner │ +├────────┼──────┼───────┼────────────┤ +│ public │ apps │ table │ developers │ +└────────┴──────┴───────┴────────────┘ +(1 row) +``` + +Now if you stop impersonation: + +```bash +# as junior_dev +postgres=> reset role; +RESET +postgres=> select current_role; +┌──────────────┐ +│ current_role │ +├──────────────┤ +│ junior_dev │ +└──────────────┘ +(1 row) +``` + +And try to insert or select data from `public.apps` it works: + +```bash +# as junior_dev or senior_dev +postgres=> insert into public.apps(name) values ('next app'); +INSERT 0 1 +postgres=> select * from public.apps; +┌────┬──────────┐ +│ id │ name │ +├────┼──────────┤ +│ 1 │ next app │ +└────┴──────────┘ +(1 row) +``` + +The reason `junior_dev` and `senior_dev` are able to insert and select data is because they are part of the `developers` group. If a new developer is created later, they are just a `grant developers to ` away from having the same access as every other developer. Contrast this with the previous method in which the new user would have to ask the owner of every object to grant them permissions. + +## Grant Options + +Making a user part of another group might grant it three abilities: + +1. The ability to impersonate the group. +2. The ability to inherit the permissions from the group. +3. The ability to add or remove other users from the group. + +All of these abilities can be controlled independently while running the `grant to ` command by using the `with
    - -