Skip to content

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

refactor(docs): type spec parsing + testing setup (#27931)

Charis7c204073027c
diff --git a/apps/docs/features/docs/GuidesMdx.utils.tsx b/apps/docs/features/docs/GuidesMdx.utils.tsx
index 1b45b259a94..dc3b05f13c6 100644
--- a/apps/docs/features/docs/GuidesMdx.utils.tsx
+++ b/apps/docs/features/docs/GuidesMdx.utils.tsx
@@ -1,13 +1,13 @@
import matter from 'gray-matter'
import { type Metadata, type ResolvingMetadata } from 'next'
import { redirect } from 'next/navigation'
-import { watch } from 'node:fs'
import { readFile, readdir } from 'node:fs/promises'
-import { extname, join, resolve, sep } from 'node:path'
-import { existsFile } from '~/features/helpers.fs'
+import { extname, join, sep } from 'node:path'
+
+import { cache_fullProcess_withDevCacheBust, existsFile } from '~/features/helpers.fs'
import type { OrPromise } from '~/features/helpers.types'
import { notFoundLink } from '~/features/recommendations/NotFound.utils'
-import { BASE_PATH, IS_DEV, MISC_URL } from '~/lib/constants'
+import { BASE_PATH, MISC_URL } from '~/lib/constants'
import { GUIDES_DIRECTORY, isValidGuideFrontmatter, type GuideFrontmatter } from '~/lib/docs'
import { newEditLink } from './GuidesMdx.template'
@@ -75,30 +75,12 @@ const getGuidesMarkdownInternal = async ({ slug }: { slug: string[] }) => {
* Caching this for the entire process is fine because the Markdown content is
* baked into each deployment and cannot change. There's also nothing sensitive
* here: this is just reading the public MDX files from the codebase.
- *
- * Unlike Next.js' unstable cache, this doesn't persist between deployments,
- * which we don't want because the content _will_ change.
*/
-const cache = <Args extends unknown[], Output>(fn: (...args: Args) => Promise<Output>) => {
- const _cache = new Map<string, Output>()
-
- if (IS_DEV) {
- watch(resolve(GUIDES_DIRECTORY), { recursive: true }, (_, filename) => {
- if (!filename) return
- const cacheKey = [{ slug: filename.replace(/\.mdx$/, '').split(sep) }]
- _cache.delete(JSON.stringify(cacheKey))
- })
- }
-
- return async (...args: Args) => {
- const cacheKey = JSON.stringify(args)
- if (!_cache.has(cacheKey)) {
- _cache.set(cacheKey, await fn(...args))
- }
- return _cache.get(cacheKey)!
- }
-}
-const getGuidesMarkdown = cache(getGuidesMarkdownInternal)
+const getGuidesMarkdown = cache_fullProcess_withDevCacheBust(
+ getGuidesMarkdownInternal,
+ GUIDES_DIRECTORY,
+ (filename: string) => JSON.stringify([{ slug: filename.replace(/\.mdx$/, '').split(sep) }])
+)
const genGuidesStaticParams = (directory?: string) => async () => {
const promises = directory
diff --git a/apps/docs/features/docs/Reference.typeSpec.test.ts b/apps/docs/features/docs/Reference.typeSpec.test.ts
new file mode 100644
index 00000000000..77eca1a1a74
--- /dev/null
+++ b/apps/docs/features/docs/Reference.typeSpec.test.ts
@@ -0,0 +1,21 @@
+import { describe, expect, it } from 'vitest'
+
+import { __parseTypeSpec } from './Reference.typeSpec'
+
+describe('TS type spec parsing', () => {
+ it('matches snapshot', async () => {
+ const parsed = await __parseTypeSpec()
+ const json = JSON.stringify(
+ parsed,
+ (key, value) => {
+ if (key === 'methods') {
+ return Object.fromEntries(value.entries())
+ } else {
+ return value
+ }
+ },
+ 2
+ )
+ expect(json).toMatchSnapshot()
+ })
+})
diff --git a/apps/docs/features/docs/Reference.typeSpec.ts b/apps/docs/features/docs/Reference.typeSpec.ts
new file mode 100644
index 00000000000..b7dc475a6de
--- /dev/null
+++ b/apps/docs/features/docs/Reference.typeSpec.ts
@@ -0,0 +1,655 @@
+/**
+ * Types and additional comments for the JavaScript library are found in the
+ * auto-generated TS typespec.
+ *
+ * The format of this typespec is difficult to walk, so we re-shape it for easy
+ * access to a function's type definition, given its name and module.
+ */
+
+import { join } from 'node:path'
+
+import { cache_fullProcess_withDevCacheBust } from '~/features/helpers.fs'
+import { SPEC_DIRECTORY } from '~/lib/docs'
+import _typeSpec from '~/spec/enrichments/tsdoc_v2/combined.json' assert { type: 'json' }
+
+// [Charis] 2024-07-10
+// Types are more trouble than they're worth here: manually defining the types
+// (correctly) is tedious, and inferring them will throw up a lot of type
+// errors. As long as everything is typed on the way out, and we code
+// defensively, it should be fine. Keep any unsafe type shenanigans isolated
+// to this file.
+const typeSpec = _typeSpec as any
+
+export const TYPESPEC_NODE_ANONYMOUS = Symbol('anonymous')
+
+/**
+ * Definitions for the methods and types defined in each Supabase JS client
+ * library.
+ */
+interface ModuleTypes {
+ name: string
+ methods: Map<string, MethodTypes>
+}
+
+/**
+ * Type definitions for a method (a function).
+ */
+export interface MethodTypes {
+ name: string | typeof TYPESPEC_NODE_ANONYMOUS
+ comment?: Comment
+ params: Array<ParamType>
+ ret: ReturnType | undefined
+}
+
+interface Comment {
+ shortText?: string
+ text?: string
+}
+
+interface ParamType {
+ name: string | typeof TYPESPEC_NODE_ANONYMOUS
+ comment?: Comment
+ isOptional?: boolean
+ type: Type | undefined
+}
+
+interface ReturnType {
+ type: Type | undefined
+}
+
+type Type = IntrinsicType | LiteralType | CustomType
+
+/**
+ * Type definition for an intrinsic (built-in) TypeScript type, for example,
+ * `string`, `boolean`.
+ */
+interface IntrinsicType {
+ type: 'intrinsic'
+ name?: string | typeof TYPESPEC_NODE_ANONYMOUS
+ comment?: Comment
+}
+
+interface LiteralType {
+ type: 'literal'
+ name?: string | typeof TYPESPEC_NODE_ANONYMOUS
+ comment?: Comment
+}
+
+type CustomType =
+ | NameOnlyType
+ | CustomObjectType
+ | CustomUnionType
+ | CustomFunctionType
+ | ArrayType
+ | RecordType
+ | IndexSignatureType
+ | PromiseType
+
+interface NameOnlyType {
+ type: 'nameOnly'
+ name: string | typeof TYPESPEC_NODE_ANONYMOUS
+}
+
+interface CustomObjectType {
+ type: 'customObject'
+ name?: string | typeof TYPESPEC_NODE_ANONYMOUS
+ comment?: Comment
+ properties: Array<PropertyType>
+}
+
+interface CustomUnionType {
+ type: 'customUnion'
+ name?: string | typeof TYPESPEC_NODE_ANONYMOUS
+ comment?: Comment
+ subTypes: Array<Type>
+}
+
+interface CustomFunctionType {
+ type: 'function'
+ name?: string | typeof TYPESPEC_NODE_ANONYMOUS
+ comment?: Comment
+ params: Array<ParamType>
+ ret: ReturnType | undefined
+}
+
+interface ArrayType {
+ type: 'array'
+ name?: string | typeof TYPESPEC_NODE_ANONYMOUS
+ comment?: Comment
+ elemType: Type | undefined
+}
+
+interface RecordType {
+ type: 'record'
+ name?: string | typeof TYPESPEC_NODE_ANONYMOUS
+ comment?: Comment
+ keyType: Type | undefined
+ valueType: Type | undefined
+}
+
+interface IndexSignatureType {
+ type: 'index signature'
+ name?: string | typeof TYPESPEC_NODE_ANONYMOUS
+ comment?: Comment
+ keyType: Type | undefined
+ valueType: Type | undefined
+}
+
+interface PromiseType {
+ type: 'promise'
+ name?: string | typeof TYPESPEC_NODE_ANONYMOUS
+ comment?: Comment
+ awaited: Type | undefined
+}
+
+/**
+ * Type definition for a property on a custom type definition.
+ */
+interface PropertyType {
+ name?: string | typeof TYPESPEC_NODE_ANONYMOUS
+ comment?: Comment
+ isOptional?: boolean
+ type: Type | undefined
+}
+
+// The following is the API of this module, and the only externally exposed
+// piece. Given a reference to a function (method), return its type definition.
+
+/**
+ * Get the type definition for a function (a method).
+ *
+ * @param ref The method identifier, in the form `@supabase/supabase-js.index.SupabaseClient.constructor`.
+ */
+export async function getTypeSpec(ref: string) {
+ const modules = await parseTypeSpec()
+
+ const delimiter = ref.indexOf('.')
+ const refMod = ref.substring(0, delimiter)
+
+ const mod = modules.find((mod) => mod.name === refMod)
+ return mod?.methods.get(ref)
+}
+
+const parseTypeSpec = cache_fullProcess_withDevCacheBust(
+ __parseTypeSpec,
+ join(SPEC_DIRECTORY, 'enrichments/tsdoc_v2/combined.json'),
+ () => JSON.stringify([])
+)
+
+/**
+ * @private
+ * Exposed for testing purposes only, PRIVATE DO NOT USE externally.
+ */
+export function __parseTypeSpec() {
+ const modules = (typeSpec.children ?? []).map(parseMod)
+ return modules as Array<ModuleTypes>
+}
+
+// Reading the type spec happens in several layers. The first layer is the
+// module: this corresponds roughly to the JS libraries for each product:
+// database, auth, storage, etc.
+
+function parseMod(mod: (typeof typeSpec)['children'][number]) {
+ const res: ModuleTypes = {
+ name: mod.name,
+ methods: new Map(),
+ }
+
+ // Build a map of nodes by their IDs for easy cross-referencing.
+ const targetMap = new Map<number, any>()
+ buildMap(mod, targetMap)
+
+ parseModInternal(mod, targetMap, [], res)
+
+ return res
+}
+
+function buildMap(node: any, map: Map<number, any>) {
+ if ('id' in node) {
+ map.set(node.id, node)
+ }
+ if ('children' in node) {
+ node.children.forEach((child: any) => buildMap(child, map))
+ }
+}
+
+// This layer is the top level of a module. Paths are tracked in this layer,
+// because they are needed to construct the $ref that will be used to reference
+// a specific type definition.
+
+function parseModInternal(
+ node: any,
+ map: Map<number, any>,
+ currentPath: Array<string>,
+ res: ModuleTypes
+) {
+ let updatedPath: Array<string>
+
+ switch (node.kindString) {
+ case 'Module':
+ updatedPath = [...currentPath, node.name]
+ node.children?.forEach((child: any) => parseModInternal(child, map, updatedPath, res))
+ return
+ // Some libraries have undefined where others have Project for the same type
+ // of top-level node.
+ case 'Project':
+ case undefined:
+ updatedPath = [...currentPath, node.name]
+ node.children?.forEach((child: any) => parseModInternal(child, map, updatedPath, res))
+ case 'Class':
+ updatedPath = [...currentPath, node.name]
+ node.children?.forEach((child: any) => parseModInternal(child, map, updatedPath, res))
+ return
+ case 'Constructor':
+ parseConstructor(node, map, currentPath, res)
+ case 'Method':
+ parseMethod(node, map, currentPath, res)
+ case 'Interface':
+ updatedPath = [...currentPath, node.name]
+ node.children?.forEach((child: any) => parseModInternal(child, map, updatedPath, res))
+ case 'Property':
+ case 'Reference':
+ default:
+ return undefined
+ }
+}
+
+/**
+ * Get the name for a node, which may be delegated or missing (placeholders
+ * are prefaced by two `__` in the type spec). If missing, use the anonymous
+ * symbol.
+ */
+function nameOrAnonymous(nodes: any) {
+ if (!Array.isArray(nodes)) {
+ nodes = [nodes]
+ }
+
+ for (const node of nodes) {
+ if (node.name && !node.name.startsWith('__')) {
+ return node.name
+ }
+ }
+
+ return TYPESPEC_NODE_ANONYMOUS
+}
+
+function parseConstructor(
+ node: any,
+ map: Map<number, any>,
+ currentPath: Array<string>,
+ res: ModuleTypes
+) {
+ const $ref = `${currentPath.join('.')}.constructor`
+
+ const signature = node.signatures[0]
+ if (!signature) return
+
+ const { params, ret, comment } = parseSignature(signature, map)
+
+ const types: MethodTypes = {
+ name: $ref,
+ params,
+ ret,
+ comment,
+ }
+
+ res.methods.set($ref, types)
+}
+
+function parseMethod(
+ node: any,
+ map: Map<number, any>,
+ currentPath: Array<string>,
+ res: ModuleTypes
+) {
+ const $ref = `${currentPath.join('.')}.${node.name}`
+
+ const signature = node.signatures[0]
+ if (!signature) return
+
+ const { params, ret, comment } = parseSignature(signature, map)
+
+ const types: MethodTypes = {
+ name: $ref,
+ params,
+ ret,
+ comment,
+ }
+
+ res.methods.set($ref, types)
+}
+
+function parseSignature(
+ signature: any,
+ map: Map<number, any>
+): { params: Array<ParamType>; ret: ReturnType; comment?: Comment } {
+ const params: Array<ParamType> = (signature.parameters ?? []).map((param: any) => {
+ const type = parseType(param.type, map)
+
+ const res: ParamType = {
+ name: nameOrAnonymous(param),
+ type,
+ }
+
+ if (param.flags?.isOptional) {
+ res.isOptional = true
+ }
+
+ if (param.comment) {
+ res.comment = param.comment
+ }
+
+ return res
+ })
+
+ let ret: ReturnType
+ if ('type' in signature) {
+ const retType = parseType(signature.type, map)
+ if (retType) {
+ ret = {
+ type: retType,
+ }
+ }
+ }
+
+ return {
+ params,
+ ret,
+ comment: signature.comment,
+ }
+}
+
+// This layer parses type definitions from the original typespec: these have
+// the format:
+//
+// ```
+// "type": {
+// "type": string,
+// "name": string
+// }
+// ```
+//
+// with additional properties depending on the type.
+
+function parseType(type: any, map: Map<number, any>) {
+ switch (type.type) {
+ case 'literal':
+ return type
+ case 'intrinsic':
+ return type
+ case 'reference':
+ return parseReferenceType(type, map)
+ case 'array':
+ return parseArrayType(type, map)
+ case 'union':
+ return parseUnionType(type, map)
+ case 'reflection':
+ return parseReflectionType(type, map)
+ case 'indexedAccess':
+ return parseIndexedAccessType(type, map)
+ case 'typeOperator':
+ return parseTypeOperatorType(type, map)
+ default:
+ break
+ }
+
+ // Some nested types are wrapped in a kind node
+ switch (type.kindString) {
+ case 'Type alias':
+ if (typeof type.type === 'object') {
+ return parseType(type.type, map)
+ }
+ case 'Interface':
+ return parseInterface(type, map)
+ default:
+ break
+ }
+
+ return undefined
+}
+
+/**
+ * For a type that aliases its type definition to another node, delegate
+ * parsing to the referenced node, but use the name and comment from the
+ * original type.
+ */
+function delegateParsing(original: any, referenced: any, map: Map<number, any>) {
+ const dereferencedType = parseType(referenced, map)
+
+ if (dereferencedType) {
+ dereferencedType.name = nameOrAnonymous([original, dereferencedType])
+ }
+
+ if (original.comment) {
+ dereferencedType.comment = {
+ ...dereferencedType.comment,
+ ...original.comment,
+ }
+ }
+
+ return dereferencedType
+}
+
+function parseReferenceType(type: any, map: Map<number, any>) {
+ if (type.dereferenced?.type) {
+ return delegateParsing(type, type.dereferenced.type, map)
+ }
+
+ if (type.dereferenced?.kindString) {
+ return delegateParsing(type, type.dereferenced, map)
+ }
+
+ if (type.package === 'typescript' && type.qualifiedName === 'Record') {
+ return parseRecordType(type, map)
+ }
+
+ if (type.package === 'typescript' && type.qualifiedName === 'Promise') {
+ return parsePromiseType(type, map)
+ }
+
+ if (type.package && type.qualifiedName) {
+ return {
+ type: 'nameOnly',
+ name:
+ type.package === 'typescript'
+ ? type.qualifiedName
+ : `${type.package}.${type.qualifiedName}`,
+ }
+ }
+
+ if (type.name === 'default' && type.typeArguments?.[0]) {
+ return parseType(type.typeArguments[0], map)
+ }
+
+ // If we still haven't produced a meaningful type, try looking up the reference
+ const referenced = map.get(type.id)
+ if (referenced) {
+ const maybeType =
+ typeof referenced.type === 'object' && 'type' in referenced.type
+ ? /* need to go down a level */ delegateParsing(type, referenced.type, map)
+ : delegateParsing(type, referenced, map)
+
+ if (maybeType) {
+ return maybeType
+ }
+ }
+
+ // Final fallback
+ if (type.name && type.name !== 'default' /* Not particularly meaningful */) {
+ return {
+ type: 'nameOnly',
+ name: type.name,
+ }
+ }
+
+ return undefined
+}
+
+function parseArrayType(type: any, map: Map<number, any>): ArrayType {
+ const elemType = parseType(type.elementType, map)
+
+ return {
+ type: 'array',
+ name: nameOrAnonymous(type),
+ elemType,
+ }
+}
+
+function parseUnionType(type: any, map: Map<number, any>): CustomUnionType {
+ // Need the Boolean filter because there are nulls in some of the nodes
+ const subTypes = type.types.filter(Boolean).map((type) => parseType(type, map))
+
+ return {
+ type: 'customUnion',
+ name: nameOrAnonymous(type),
+ subTypes,
+ }
+}
+
+function parseRecordType(type: any, map: Map<number, any>): RecordType {
+ const [keyType, valueType] = (type.typeArguments ?? []).map((type) => parseType(type, map))
+
+ return {
+ type: 'record',
+ name: nameOrAnonymous(type),
+ keyType,
+ valueType,
+ }
+}
+
+function parsePromiseType(type: any, map: Map<number, any>): PromiseType {
+ return {
+ type: 'promise',
+ name: nameOrAnonymous(type),
+ awaited: type.typeArguments?.[0] ? parseType(type.typeArguments[0], map) : undefined,
+ }
+}
+
+function parseReflectionType(type: any, map: Map<number, any>) {
+ if (!type.declaration) return undefined
+
+ let res: Type
+ switch (type.declaration.kindString) {
+ case 'Type literal':
+ res = parseTypeLiteral(type, map)
+ break
+ default:
+ break
+ }
+
+ return res
+}
+
+function parseTypeLiteral(type: any, map: Map<number, any>): Type {
+ const name = nameOrAnonymous(type)
+
+ if ('children' in type.declaration) {
+ const properties = type.declaration.children.map((child: any) => parseTypeInternals(child, map))
+ return {
+ name,
+ type: 'customObject',
+ properties,
+ } satisfies CustomObjectType
+ }
+
+ if ('signatures' in type.declaration && type.declaration.signatures[0]) {
+ const { params, ret, comment } = parseSignature(type.declaration.signatures[0], map)
+ return {
+ name,
+ type: 'function',
+ params,
+ ret,
+ comment,
+ }
+ }
+
+ if ('indexSignature' in type.declaration) {
+ const signature = type.declaration.indexSignature
+
+ return {
+ name,
+ type: 'index signature',
+ keyType: signature.parameters?.[0]
+ ? parseType(signature.parameters?.[0].type, map)
+ : undefined,
+ valueType: signature.type ? parseType(signature.type, map) : undefined,
+ }
+ }
+
+ return undefined
+}
+
+function parseIndexedAccessType(type: any, map: Map<number, any>) {
+ return {
+ type: 'nameOnly',
+ name: `${type.objectType?.name ?? ''}[${type.indexType.value ?? type.indexType.name ?? ''}]`,
+ }
+}
+
+function parseTypeOperatorType(type: any, map: Map<number, any>) {
+ switch (type.operator) {
+ case 'readonly':
+ return parseType(type.target, map)
+ default:
+ return undefined
+ }
+}
+
+function parseInterface(type: any, map: Map<number, any>): CustomObjectType {
+ const properties = (type.children ?? []).map((child) => parseTypeInternals(child, map))
+
+ return {
+ type: 'customObject',
+ name: nameOrAnonymous(type),
+ properties,
+ }
+}
+
+// This layer is for the sub-types that define a custom type, for example, the
+// properties of an interface.
+
+function parseTypeInternals(elem: any, map: Map<number, any>) {
+ switch (elem.kindString) {
+ case 'Property':
+ return parseInternalProperty(elem, map)
+ case 'Method':
+ if (elem.signatures?.[0]) {
+ const { params, ret, comment } = parseSignature(elem.signatures?.[0], map)
+ const res = {
+ type: 'function',
+ name: nameOrAnonymous(elem),
+ params,
+ ret,
+ comment,
+ } as CustomFunctionType
+
+ if (elem.comment) {
+ res.comment = { ...res.comment, ...elem.comment }
+ }
+
+ return res
+ }
+ default:
+ return undefined
+ }
+}
+
+function parseInternalProperty(elem: any, map: Map<number, any>) {
+ const name = nameOrAnonymous(elem)
+ const type = parseType(elem.type, map)
+
+ const res = {
+ name,
+ type,
+ } as PropertyType
+
+ if (elem.flags?.isOptional) {
+ res.isOptional = true
+ }
+
+ if (elem.comment) {
+ res.comment = elem.comment
+ }
+
+ return res
+}
diff --git a/apps/docs/features/docs/__snapshots__/Reference.typeSpec.test.ts.snap b/apps/docs/features/docs/__snapshots__/Reference.typeSpec.test.ts.snap
new file mode 100644
index 00000000000..1d02bea96e6
--- /dev/null
+++ b/apps/docs/features/docs/__snapshots__/Reference.typeSpec.test.ts.snap
@@ -0,0 +1,28574 @@
+// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
+
+exports[`TS type spec parsing > matches snapshot 1`] = `
+"[
+ {
+ "name": "@supabase/supabase-js",
+ "methods": {
+ "@supabase/supabase-js.index.SupabaseClient.constructor": {
+ "name": "@supabase/supabase-js.index.SupabaseClient.constructor",
+ "params": [
+ {
+ "name": "supabaseUrl",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The unique Supabase URL which is supplied when you create a new project in your project dashboard."
+ }
+ },
+ {
+ "name": "supabaseKey",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The unique Supabase Key which is supplied when you create a new project in your project dashboard."
+ }
+ },
+ {
+ "name": "options",
+ "type": {
+ "name": "SupabaseClientOptions",
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "auth",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "autoRefreshToken",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Automatically refreshes the token for logged-in users. Defaults to true."
+ }
+ },
+ {
+ "name": "debug",
+ "type": {
+ "type": "nameOnly",
+ "name": "SupabaseAuthClientOptions[debug]"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "If debug messages for authentication client are emitted. Can be used to inspect the behavior of the library."
+ }
+ },
+ {
+ "name": "detectSessionInUrl",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Detect a session from the URL. Used for OAuth login callbacks. Defaults to true."
+ }
+ },
+ {
+ "name": "flowType",
+ "type": {
+ "type": "nameOnly",
+ "name": "SupabaseAuthClientOptions[flowType]"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "OAuth flow to use - defaults to implicit flow. PKCE is recommended for mobile and server-side applications."
+ }
+ },
+ {
+ "name": "lock",
+ "type": {
+ "type": "nameOnly",
+ "name": "SupabaseAuthClientOptions[lock]"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Provide your own locking mechanism based on the environment. By default no locking is done at this time.",
+ "tags": [
+ {
+ "tag": "experimental",
+ "text": "\\n"
+ }
+ ]
+ }
+ },
+ {
+ "name": "persistSession",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Whether to persist a logged-in session to storage. Defaults to true."
+ }
+ },
+ {
+ "name": "storage",
+ "type": {
+ "type": "nameOnly",
+ "name": "SupabaseAuthClientOptions[storage]"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "A storage provider. Used to store the logged-in session."
+ }
+ },
+ {
+ "name": "storageKey",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Optional key name used for storing tokens in local storage."
+ }
+ }
+ ]
+ },
+ "isOptional": true
+ },
+ {
+ "name": "db",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "schema",
+ "type": {
+ "type": "nameOnly",
+ "name": "SchemaName"
+ },
+ "isOptional": true
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The Postgres schema which your tables belong to. Must be on the list of exposed schemas in Supabase. Defaults to \`public\`."
+ }
+ },
+ {
+ "name": "global",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "fetch",
+ "isOptional": true,
+ "comment": {
+ "shortText": "A custom \`fetch\` implementation."
+ }
+ },
+ {
+ "name": "headers",
+ "type": {
+ "type": "record",
+ "name": "Record",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Optional headers for initializing the client."
+ }
+ }
+ ]
+ },
+ "isOptional": true
+ },
+ {
+ "name": "realtime",
+ "type": {
+ "type": "nameOnly",
+ "name": "@supabase/realtime-js.RealtimeClientOptions"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Options passed to the realtime-js instance"
+ }
+ }
+ ]
+ },
+ "isOptional": true
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Database"
+ }
+ },
+ "comment": {
+ "shortText": "Create a new client for use in the browser."
+ }
+ },
+ "@supabase/supabase-js.index.SupabaseClient._getAccessToken": {
+ "name": "@supabase/supabase-js.index.SupabaseClient._getAccessToken",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "@supabase/supabase-js.index.SupabaseClient._handleTokenChanged": {
+ "name": "@supabase/supabase-js.index.SupabaseClient._handleTokenChanged",
+ "params": [
+ {
+ "name": "event",
+ "type": {
+ "type": "nameOnly",
+ "name": "@supabase/auth-js.AuthChangeEvent"
+ }
+ },
+ {
+ "name": "source",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "CLIENT"
+ },
+ {
+ "type": "literal",
+ "value": "STORAGE"
+ }
+ ]
+ }
+ },
+ {
+ "name": "token",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ },
+ "@supabase/supabase-js.index.SupabaseClient._initRealtimeClient": {
+ "name": "@supabase/supabase-js.index.SupabaseClient._initRealtimeClient",
+ "params": [
+ {
+ "name": "options",
+ "type": {
+ "type": "nameOnly",
+ "name": "@supabase/realtime-js.RealtimeClientOptions"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "@supabase/realtime-js.RealtimeClient"
+ }
+ }
+ },
+ "@supabase/supabase-js.index.SupabaseClient._initSupabaseAuthClient": {
+ "name": "@supabase/supabase-js.index.SupabaseClient._initSupabaseAuthClient",
+ "params": [
+ {
+ "type": {
+ "type": "customObject",
+ "name": "SupabaseAuthClientOptions",
+ "properties": []
+ }
+ },
+ {
+ "name": "headers",
+ "type": {
+ "type": "record",
+ "name": "Record",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "fetch",
+ "type": {
+ "type": "function",
+ "params": [
+ {
+ "name": "input",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "nameOnly",
+ "name": "RequestInfo"
+ },
+ {
+ "type": "nameOnly",
+ "name": "URL"
+ }
+ ]
+ }
+ },
+ {
+ "name": "init",
+ "type": {
+ "type": "nameOnly",
+ "name": "RequestInit"
+ },
+ "isOptional": true
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "nameOnly",
+ "name": "Response"
+ }
+ }
+ }
+ },
+ "isOptional": true
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "SupabaseAuthClient"
+ }
+ }
+ },
+ "@supabase/supabase-js.index.SupabaseClient._listenForAuthEvents": {
+ "name": "@supabase/supabase-js.index.SupabaseClient._listenForAuthEvents",
+ "params": []
+ },
+ "@supabase/supabase-js.index.SupabaseClient.channel": {
+ "name": "@supabase/supabase-js.index.SupabaseClient.channel",
+ "params": [
+ {
+ "name": "name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The name of the Realtime channel."
+ }
+ },
+ {
+ "name": "opts",
+ "type": {
+ "type": "nameOnly",
+ "name": "@supabase/realtime-js.RealtimeChannelOptions"
+ },
+ "comment": {
+ "shortText": "The options to pass to the Realtime channel.\\n\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "@supabase/realtime-js.RealtimeChannel"
+ }
+ },
+ "comment": {
+ "shortText": "Creates a Realtime channel with Broadcast, Presence, and Postgres Changes."
+ }
+ },
+ "@supabase/supabase-js.index.SupabaseClient.from": {
+ "name": "@supabase/supabase-js.index.SupabaseClient.from",
+ "params": [
+ {
+ "name": "relation",
+ "type": {
+ "type": "nameOnly",
+ "name": "TableName"
+ },
+ "comment": {
+ "shortText": "The table or view name to query\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "@supabase/postgrest-js.PostgrestQueryBuilder"
+ }
+ },
+ "comment": {
+ "shortText": "Perform a query on a table or a view."
+ }
+ },
+ "@supabase/supabase-js.index.SupabaseClient.getChannels": {
+ "name": "@supabase/supabase-js.index.SupabaseClient.getChannels",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "nameOnly",
+ "name": "@supabase/realtime-js.RealtimeChannel"
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Returns all Realtime channels."
+ }
+ },
+ "@supabase/supabase-js.index.SupabaseClient.removeAllChannels": {
+ "name": "@supabase/supabase-js.index.SupabaseClient.removeAllChannels",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "array",
+ "elemType": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "error"
+ },
+ {
+ "type": "literal",
+ "value": "ok"
+ },
+ {
+ "type": "literal",
+ "value": "timed out"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Unsubscribes and removes all Realtime channels from Realtime client."
+ }
+ },
+ "@supabase/supabase-js.index.SupabaseClient.removeChannel": {
+ "name": "@supabase/supabase-js.index.SupabaseClient.removeChannel",
+ "params": [
+ {
+ "name": "channel",
+ "type": {
+ "type": "nameOnly",
+ "name": "@supabase/realtime-js.RealtimeChannel"
+ },
+ "comment": {
+ "shortText": "The name of the Realtime channel.\\n\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "error"
+ },
+ {
+ "type": "literal",
+ "value": "ok"
+ },
+ {
+ "type": "literal",
+ "value": "timed out"
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Unsubscribes and removes Realtime channel from Realtime client."
+ }
+ },
+ "@supabase/supabase-js.index.SupabaseClient.rpc": {
+ "name": "@supabase/supabase-js.index.SupabaseClient.rpc",
+ "params": [
+ {
+ "name": "fn",
+ "type": {
+ "type": "nameOnly",
+ "name": "FnName"
+ },
+ "comment": {
+ "shortText": "The function name to call"
+ }
+ },
+ {
+ "name": "args",
+ "type": {
+ "type": "nameOnly",
+ "name": "Fn[Args]"
+ },
+ "comment": {
+ "shortText": "The arguments to pass to the function call"
+ }
+ },
+ {
+ "name": "options",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "count",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "exact"
+ },
+ {
+ "type": "literal",
+ "value": "planned"
+ },
+ {
+ "type": "literal",
+ "value": "estimated"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Count algorithm to use to count rows returned by the\\nfunction. Only applicable for [set-returning\\nfunctions](https://www.postgresql.org/docs/current/functions-srf.html).\\n\\n\`\\"exact\\"\`: Exact but slow count algorithm. Performs a \`COUNT(*)\` under the\\nhood.\\n\\n\`\\"planned\\"\`: Approximated but fast count algorithm. Uses the Postgres\\nstatistics under the hood.\\n\\n\`\\"estimated\\"\`: Uses exact count for low numbers and planned count for high\\nnumbers.\\n"
+ }
+ },
+ {
+ "name": "get",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "When set to \`true\`, the function will be called with\\nread-only access mode."
+ }
+ },
+ {
+ "name": "head",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "When set to \`true\`, \`data\` will not be returned.\\nUseful if you only need the count."
+ }
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Named parameters"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "@supabase/postgrest-js.PostgrestFilterBuilder"
+ }
+ },
+ "comment": {
+ "shortText": "Perform a function call."
+ }
+ },
+ "@supabase/supabase-js.index.SupabaseClient.schema": {
+ "name": "@supabase/supabase-js.index.SupabaseClient.schema",
+ "params": [
+ {
+ "name": "schema",
+ "type": {
+ "type": "nameOnly",
+ "name": "DynamicSchema"
+ },
+ "comment": {
+ "shortText": "The schema to query\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "@supabase/postgrest-js.PostgrestClient"
+ }
+ },
+ "comment": {
+ "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"
+ }
+ }
+ }
+ },
+ {
+ "name": "@supabase/auth-js",
+ "methods": {
+ "@supabase/auth-js.AuthApiError.constructor": {
+ "name": "@supabase/auth-js.AuthApiError.constructor",
+ "params": [
+ {
+ "name": "message",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "AuthApiError"
+ }
+ }
+ },
+ "@supabase/auth-js.AuthApiError.toJSON": {
+ "name": "@supabase/auth-js.AuthApiError.toJSON",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "message",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ }
+ ]
+ }
+ }
+ },
+ "@supabase/auth-js.AuthError.constructor": {
+ "name": "@supabase/auth-js.AuthError.constructor",
+ "params": [
+ {
+ "name": "message",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "isOptional": true
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "AuthError"
+ }
+ }
+ },
+ "@supabase/auth-js.AuthImplicitGrantRedirectError.constructor": {
+ "name": "@supabase/auth-js.AuthImplicitGrantRedirectError.constructor",
+ "params": [
+ {
+ "name": "message",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "details",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "code",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "AuthImplicitGrantRedirectError"
+ }
+ }
+ },
+ "@supabase/auth-js.AuthImplicitGrantRedirectError.toJSON": {
+ "name": "@supabase/auth-js.AuthImplicitGrantRedirectError.toJSON",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "details",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "code",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ },
+ {
+ "name": "message",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ }
+ ]
+ }
+ }
+ },
+ "@supabase/auth-js.AuthInvalidCredentialsError.constructor": {
+ "name": "@supabase/auth-js.AuthInvalidCredentialsError.constructor",
+ "params": [
+ {
+ "name": "message",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "AuthInvalidCredentialsError"
+ }
+ }
+ },
+ "@supabase/auth-js.AuthInvalidCredentialsError.toJSON": {
+ "name": "@supabase/auth-js.AuthInvalidCredentialsError.toJSON",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "message",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ }
+ ]
+ }
+ }
+ },
+ "@supabase/auth-js.AuthInvalidTokenResponseError.constructor": {
+ "name": "@supabase/auth-js.AuthInvalidTokenResponseError.constructor",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "AuthInvalidTokenResponseError"
+ }
+ }
+ },
+ "@supabase/auth-js.AuthInvalidTokenResponseError.toJSON": {
+ "name": "@supabase/auth-js.AuthInvalidTokenResponseError.toJSON",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "message",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ }
+ ]
+ }
+ }
+ },
+ "@supabase/auth-js.AuthPKCEGrantCodeExchangeError.constructor": {
+ "name": "@supabase/auth-js.AuthPKCEGrantCodeExchangeError.constructor",
+ "params": [
+ {
+ "name": "message",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "details",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "code",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "AuthPKCEGrantCodeExchangeError"
+ }
+ }
+ },
+ "@supabase/auth-js.AuthPKCEGrantCodeExchangeError.toJSON": {
+ "name": "@supabase/auth-js.AuthPKCEGrantCodeExchangeError.toJSON",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "details",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "code",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ },
+ {
+ "name": "message",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ }
+ ]
+ }
+ }
+ },
+ "@supabase/auth-js.AuthRetryableFetchError.constructor": {
+ "name": "@supabase/auth-js.AuthRetryableFetchError.constructor",
+ "params": [
+ {
+ "name": "message",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "AuthRetryableFetchError"
+ }
+ }
+ },
+ "@supabase/auth-js.AuthRetryableFetchError.toJSON": {
+ "name": "@supabase/auth-js.AuthRetryableFetchError.toJSON",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "message",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ }
+ ]
+ }
+ }
+ },
+ "@supabase/auth-js.AuthSessionMissingError.constructor": {
+ "name": "@supabase/auth-js.AuthSessionMissingError.constructor",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "AuthSessionMissingError"
+ }
+ }
+ },
+ "@supabase/auth-js.AuthSessionMissingError.toJSON": {
+ "name": "@supabase/auth-js.AuthSessionMissingError.toJSON",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "message",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ }
+ ]
+ }
+ }
+ },
+ "@supabase/auth-js.AuthUnknownError.constructor": {
+ "name": "@supabase/auth-js.AuthUnknownError.constructor",
+ "params": [
+ {
+ "name": "message",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "originalError",
+ "type": {
+ "type": "intrinsic",
+ "name": "unknown"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "AuthUnknownError"
+ }
+ }
+ },
+ "@supabase/auth-js.AuthWeakPasswordError.constructor": {
+ "name": "@supabase/auth-js.AuthWeakPasswordError.constructor",
+ "params": [
+ {
+ "name": "message",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "name": "reasons",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "AuthWeakPasswordError"
+ }
+ }
+ },
+ "@supabase/auth-js.AuthWeakPasswordError.toJSON": {
+ "name": "@supabase/auth-js.AuthWeakPasswordError.toJSON",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "message",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ }
+ ]
+ }
+ }
+ },
+ "@supabase/auth-js.CustomAuthError.constructor": {
+ "name": "@supabase/auth-js.CustomAuthError.constructor",
+ "params": [
+ {
+ "name": "message",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "CustomAuthError"
+ }
+ }
+ },
+ "@supabase/auth-js.CustomAuthError.toJSON": {
+ "name": "@supabase/auth-js.CustomAuthError.toJSON",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "message",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ }
+ ]
+ }
+ }
+ },
+ "@supabase/auth-js.GoTrueAdminApi.constructor": {
+ "name": "@supabase/auth-js.GoTrueAdminApi.constructor",
+ "params": [
+ {
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "fetch",
+ "type": {
+ "type": "function",
+ "params": [
+ {
+ "name": "input",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "nameOnly",
+ "name": "RequestInfo"
+ },
+ {
+ "type": "nameOnly",
+ "name": "URL"
+ }
+ ]
+ }
+ },
+ {
+ "name": "init",
+ "type": {
+ "type": "nameOnly",
+ "name": "RequestInit"
+ },
+ "isOptional": true
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "nameOnly",
+ "name": "Response"
+ }
+ }
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "headers",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "url",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ }
+ ]
+ },
+ "@supabase/auth-js.GoTrueAdminApi.createUser": {
+ "name": "@supabase/auth-js.GoTrueAdminApi.createUser",
+ "params": [
+ {
+ "name": "attributes",
+ "type": {
+ "type": "customObject",
+ "name": "AdminUserAttributes",
+ "properties": [
+ {
+ "name": "app_metadata",
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "A custom data object to store the user's application specific metadata. This maps to the \`auth.users.app_metadata\` column.",
+ "text": "Only a service role can modify.\\n\\nThe \`app_metadata\` should be a JSON object that includes app-specific info, such as identity providers, roles, and other\\naccess control information.\\n"
+ }
+ },
+ {
+ "name": "ban_duration",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Determines how long a user is banned for.",
+ "text": "The format for the ban duration follows a strict sequence of decimal numbers with a unit suffix.\\nValid time units are \\"ns\\", \\"us\\" (or \\"µs\\"), \\"ms\\", \\"s\\", \\"m\\", \\"h\\".\\n\\nFor example, some possible durations include: '300ms', '2h45m'.\\n\\nSetting the ban duration to 'none' lifts the ban on the user.\\n"
+ }
+ },
+ {
+ "name": "email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The user's email."
+ }
+ },
+ {
+ "name": "email_confirm",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Confirms the user's email address if set to true.",
+ "text": "Only a service role can modify.\\n"
+ }
+ },
+ {
+ "name": "nonce",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "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"
+ }
+ },
+ {
+ "name": "password",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The user's password."
+ }
+ },
+ {
+ "name": "phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The user's phone."
+ }
+ },
+ {
+ "name": "phone_confirm",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Confirms the user's phone number if set to true.",
+ "text": "Only a service role can modify.\\n"
+ }
+ },
+ {
+ "name": "role",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The \`role\` claim set in the user's access token JWT.",
+ "text": "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.\\n\\nSetting this role to \`service_role\` is not recommended as it grants the user admin privileges.\\n"
+ }
+ },
+ {
+ "name": "user_metadata",
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ },
+ "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 \`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"
+ }
+ }
+ ]
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "name": "UserResponse",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "user",
+ "type": {
+ "type": "customObject",
+ "name": "User",
+ "properties": [
+ {
+ "name": "action_link",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "app_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserAppMetadata",
+ "properties": [
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ }
+ ]
+ }
+ },
+ {
+ "name": "aud",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "confirmation_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_change_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "factors",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "Factor",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "factor_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "Type of factor. Only \`totp\` supported with this version but may change in\\nfuture versions."
+ }
+ },
+ {
+ "name": "friendly_name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Friendly name of the factor, useful to disambiguate between multiple factors."
+ }
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "ID of the factor."
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "verified"
+ },
+ {
+ "type": "literal",
+ "value": "unverified"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Factor's status."
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identities",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "UserIdentity",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identity_data",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "identity_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "invited_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "recovery_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "role",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserMetadata",
+ "properties": []
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "user",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "AuthError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Creates a new user.\\nThis function should only be called on a server. Never expose your \`service_role\` key in the browser."
+ }
+ },
+ "@supabase/auth-js.GoTrueAdminApi.deleteUser": {
+ "name": "@supabase/auth-js.GoTrueAdminApi.deleteUser",
+ "params": [
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The user id you want to remove."
+ }
+ },
+ {
+ "name": "shouldSoftDelete",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "comment": {
+ "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"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "name": "UserResponse",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "user",
+ "type": {
+ "type": "customObject",
+ "name": "User",
+ "properties": [
+ {
+ "name": "action_link",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "app_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserAppMetadata",
+ "properties": [
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ }
+ ]
+ }
+ },
+ {
+ "name": "aud",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "confirmation_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_change_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "factors",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "Factor",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "factor_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "Type of factor. Only \`totp\` supported with this version but may change in\\nfuture versions."
+ }
+ },
+ {
+ "name": "friendly_name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Friendly name of the factor, useful to disambiguate between multiple factors."
+ }
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "ID of the factor."
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "verified"
+ },
+ {
+ "type": "literal",
+ "value": "unverified"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Factor's status."
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identities",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "UserIdentity",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identity_data",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "identity_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "invited_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "recovery_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "role",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserMetadata",
+ "properties": []
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "user",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "AuthError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Delete a user. Requires a \`service_role\` key."
+ }
+ },
+ "@supabase/auth-js.GoTrueAdminApi.generateLink": {
+ "name": "@supabase/auth-js.GoTrueAdminApi.generateLink",
+ "params": [
+ {
+ "name": "params",
+ "type": {
+ "type": "customUnion",
+ "name": "GenerateLinkParams",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "options",
+ "type": {
+ "type": "nameOnly",
+ "name": "Pick"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "password",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "type",
+ "type": {
+ "type": "literal",
+ "value": "signup"
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The user's email"
+ }
+ },
+ {
+ "name": "options",
+ "type": {
+ "type": "nameOnly",
+ "name": "Pick"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "type",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "invite"
+ },
+ {
+ "type": "literal",
+ "value": "magiclink"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The user's email"
+ }
+ },
+ {
+ "name": "options",
+ "type": {
+ "type": "nameOnly",
+ "name": "Pick"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "type",
+ "type": {
+ "type": "literal",
+ "value": "recovery"
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The user's email"
+ }
+ },
+ {
+ "name": "newEmail",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The user's new email. Only required if type is 'email_change_current' or 'email_change_new'."
+ }
+ },
+ {
+ "name": "options",
+ "type": {
+ "type": "nameOnly",
+ "name": "Pick"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "type",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "email_change_current"
+ },
+ {
+ "type": "literal",
+ "value": "email_change_new"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "name": "GenerateLinkResponse",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "properties",
+ "type": {
+ "name": "GenerateLinkProperties",
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "action_link",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The email link to send to the user.\\nThe action_link follows the following format: auth/v1/verify?type={verification_type}&token={hashed_token}&redirect_to={redirect_to}"
+ }
+ },
+ {
+ "name": "email_otp",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The raw email OTP.\\nYou should send this in the email if you want your users to verify using an OTP instead of the action link."
+ }
+ },
+ {
+ "name": "hashed_token",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The hashed token appended to the action link."
+ }
+ },
+ {
+ "name": "redirect_to",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The URL appended to the action link."
+ }
+ },
+ {
+ "name": "verification_type",
+ "type": {
+ "type": "customUnion",
+ "name": "GenerateLinkType",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "signup"
+ },
+ {
+ "type": "literal",
+ "value": "invite"
+ },
+ {
+ "type": "literal",
+ "value": "magiclink"
+ },
+ {
+ "type": "literal",
+ "value": "recovery"
+ },
+ {
+ "type": "literal",
+ "value": "email_change_current"
+ },
+ {
+ "type": "literal",
+ "value": "email_change_new"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "The verification type that the email link is associated to."
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "user",
+ "type": {
+ "type": "customObject",
+ "name": "User",
+ "properties": [
+ {
+ "name": "action_link",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "app_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserAppMetadata",
+ "properties": [
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ }
+ ]
+ }
+ },
+ {
+ "name": "aud",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "confirmation_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_change_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "factors",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "Factor",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "factor_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "Type of factor. Only \`totp\` supported with this version but may change in\\nfuture versions."
+ }
+ },
+ {
+ "name": "friendly_name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Friendly name of the factor, useful to disambiguate between multiple factors."
+ }
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "ID of the factor."
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "verified"
+ },
+ {
+ "type": "literal",
+ "value": "unverified"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Factor's status."
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identities",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "UserIdentity",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identity_data",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "identity_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "invited_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "recovery_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "role",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserMetadata",
+ "properties": []
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "properties",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "user",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "AuthError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Generates email links and OTPs to be sent via a custom email provider."
+ }
+ },
+ "@supabase/auth-js.GoTrueAdminApi.getUserById": {
+ "name": "@supabase/auth-js.GoTrueAdminApi.getUserById",
+ "params": [
+ {
+ "name": "uid",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The user's unique identifier\\n\\nThis function should only be called on a server. Never expose your \`service_role\` key in the browser.\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "name": "UserResponse",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "user",
+ "type": {
+ "type": "customObject",
+ "name": "User",
+ "properties": [
+ {
+ "name": "action_link",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "app_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserAppMetadata",
+ "properties": [
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ }
+ ]
+ }
+ },
+ {
+ "name": "aud",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "confirmation_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_change_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "factors",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "Factor",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "factor_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "Type of factor. Only \`totp\` supported with this version but may change in\\nfuture versions."
+ }
+ },
+ {
+ "name": "friendly_name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Friendly name of the factor, useful to disambiguate between multiple factors."
+ }
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "ID of the factor."
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "verified"
+ },
+ {
+ "type": "literal",
+ "value": "unverified"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Factor's status."
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identities",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "UserIdentity",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identity_data",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "identity_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "invited_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "recovery_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "role",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserMetadata",
+ "properties": []
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "user",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "AuthError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Get user by id."
+ }
+ },
+ "@supabase/auth-js.GoTrueAdminApi.inviteUserByEmail": {
+ "name": "@supabase/auth-js.GoTrueAdminApi.inviteUserByEmail",
+ "params": [
+ {
+ "name": "email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The email address of the user."
+ }
+ },
+ {
+ "name": "options",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "A custom data object to store additional metadata about the user. This maps to the \`auth.users.user_metadata\` column."
+ }
+ },
+ {
+ "name": "redirectTo",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The URL which will be appended to the email link sent to the user's email address. Once clicked the user will end up on this URL."
+ }
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Additional options to be included when inviting.\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "name": "UserResponse",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "user",
+ "type": {
+ "type": "customObject",
+ "name": "User",
+ "properties": [
+ {
+ "name": "action_link",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "app_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserAppMetadata",
+ "properties": [
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ }
+ ]
+ }
+ },
+ {
+ "name": "aud",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "confirmation_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_change_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "factors",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "Factor",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "factor_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "Type of factor. Only \`totp\` supported with this version but may change in\\nfuture versions."
+ }
+ },
+ {
+ "name": "friendly_name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Friendly name of the factor, useful to disambiguate between multiple factors."
+ }
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "ID of the factor."
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "verified"
+ },
+ {
+ "type": "literal",
+ "value": "unverified"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Factor's status."
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identities",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "UserIdentity",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identity_data",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "identity_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "invited_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "recovery_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "role",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserMetadata",
+ "properties": []
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "user",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "AuthError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Sends an invite link to an email address."
+ }
+ },
+ "@supabase/auth-js.GoTrueAdminApi.listUsers": {
+ "name": "@supabase/auth-js.GoTrueAdminApi.listUsers",
+ "params": [
+ {
+ "name": "params",
+ "type": {
+ "name": "PageParams",
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "page",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The page number"
+ }
+ },
+ {
+ "name": "perPage",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Number of items returned per page"
+ }
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "An object which supports \`page\` and \`perPage\` as numbers, to alter the paginated results.\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data"
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "users"
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "AuthError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Get a list of users.",
+ "text": "This function should only be called on a server. Never expose your \`service_role\` key in the browser."
+ }
+ },
+ "@supabase/auth-js.GoTrueAdminApi.signOut": {
+ "name": "@supabase/auth-js.GoTrueAdminApi.signOut",
+ "params": [
+ {
+ "name": "jwt",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "A valid, logged-in JWT."
+ }
+ },
+ {
+ "name": "scope",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "global"
+ },
+ {
+ "type": "literal",
+ "value": "local"
+ },
+ {
+ "type": "literal",
+ "value": "others"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "The logout sope.\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "nameOnly",
+ "name": "AuthError"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Removes a logged-in session."
+ }
+ },
+ "@supabase/auth-js.GoTrueAdminApi.updateUserById": {
+ "name": "@supabase/auth-js.GoTrueAdminApi.updateUserById",
+ "params": [
+ {
+ "name": "uid",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "attributes",
+ "type": {
+ "type": "customObject",
+ "name": "AdminUserAttributes",
+ "properties": [
+ {
+ "name": "app_metadata",
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "A custom data object to store the user's application specific metadata. This maps to the \`auth.users.app_metadata\` column.",
+ "text": "Only a service role can modify.\\n\\nThe \`app_metadata\` should be a JSON object that includes app-specific info, such as identity providers, roles, and other\\naccess control information.\\n"
+ }
+ },
+ {
+ "name": "ban_duration",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Determines how long a user is banned for.",
+ "text": "The format for the ban duration follows a strict sequence of decimal numbers with a unit suffix.\\nValid time units are \\"ns\\", \\"us\\" (or \\"µs\\"), \\"ms\\", \\"s\\", \\"m\\", \\"h\\".\\n\\nFor example, some possible durations include: '300ms', '2h45m'.\\n\\nSetting the ban duration to 'none' lifts the ban on the user.\\n"
+ }
+ },
+ {
+ "name": "email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The user's email."
+ }
+ },
+ {
+ "name": "email_confirm",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Confirms the user's email address if set to true.",
+ "text": "Only a service role can modify.\\n"
+ }
+ },
+ {
+ "name": "nonce",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "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"
+ }
+ },
+ {
+ "name": "password",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The user's password."
+ }
+ },
+ {
+ "name": "phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The user's phone."
+ }
+ },
+ {
+ "name": "phone_confirm",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Confirms the user's phone number if set to true.",
+ "text": "Only a service role can modify.\\n"
+ }
+ },
+ {
+ "name": "role",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The \`role\` claim set in the user's access token JWT.",
+ "text": "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.\\n\\nSetting this role to \`service_role\` is not recommended as it grants the user admin privileges.\\n"
+ }
+ },
+ {
+ "name": "user_metadata",
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ },
+ "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 \`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"
+ }
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "The data you want to update.\\n\\nThis function should only be called on a server. Never expose your \`service_role\` key in the browser.\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "name": "UserResponse",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "user",
+ "type": {
+ "type": "customObject",
+ "name": "User",
+ "properties": [
+ {
+ "name": "action_link",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "app_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserAppMetadata",
+ "properties": [
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ }
+ ]
+ }
+ },
+ {
+ "name": "aud",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "confirmation_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_change_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "factors",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "Factor",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "factor_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "Type of factor. Only \`totp\` supported with this version but may change in\\nfuture versions."
+ }
+ },
+ {
+ "name": "friendly_name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Friendly name of the factor, useful to disambiguate between multiple factors."
+ }
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "ID of the factor."
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "verified"
+ },
+ {
+ "type": "literal",
+ "value": "unverified"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Factor's status."
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identities",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "UserIdentity",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identity_data",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "identity_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "invited_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "recovery_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "role",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserMetadata",
+ "properties": []
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "user",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "AuthError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Updates the user data."
+ }
+ },
+ "@supabase/auth-js.GoTrueClient.constructor": {
+ "name": "@supabase/auth-js.GoTrueClient.constructor",
+ "params": [
+ {
+ "name": "options",
+ "type": {
+ "name": "GoTrueClientOptions",
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "autoRefreshToken",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "debug",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ {
+ "type": "function",
+ "params": [
+ {
+ "name": "message",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "args",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ }
+ ]
+ },
+ "isOptional": true
+ },
+ {
+ "name": "detectSessionInUrl",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "fetch",
+ "type": {
+ "type": "nameOnly",
+ "name": "Fetch"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "flowType",
+ "type": {
+ "type": "customUnion",
+ "name": "AuthFlowType",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "implicit"
+ },
+ {
+ "type": "literal",
+ "value": "pkce"
+ }
+ ]
+ },
+ "isOptional": true
+ },
+ {
+ "name": "headers",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "lock",
+ "type": {
+ "name": "LockFunc",
+ "type": "function",
+ "params": [
+ {
+ "name": "name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "Name of the lock to be acquired."
+ }
+ },
+ {
+ "name": "acquireTimeout",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "comment": {
+ "shortText": "If negative, no timeout should occur. If positive it\\n should throw an Error with an \`isAcquireTimeout\`\\n property set to true if the operation fails to be\\n acquired after this much time (ms)."
+ }
+ },
+ {
+ "name": "fn",
+ "type": {
+ "type": "function",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "nameOnly",
+ "name": "R"
+ }
+ }
+ }
+ },
+ "comment": {
+ "shortText": "The operation to execute when the lock is acquired.\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "nameOnly",
+ "name": "R"
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Provide your own global lock implementation instead of the default\\nimplementation. The function should acquire a lock for the duration of the\\n\`fn\` async function, such that no other client instances will be able to\\nhold it at the same time.",
+ "tags": [
+ {
+ "tag": "experimental",
+ "text": "\\n"
+ }
+ ]
+ }
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Provide your own locking mechanism based on the environment. By default no locking is done at this time.",
+ "tags": [
+ {
+ "tag": "experimental",
+ "text": "\\n"
+ }
+ ]
+ }
+ },
+ {
+ "name": "persistSession",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "storage",
+ "isOptional": true
+ },
+ {
+ "name": "storageKey",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "url",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ }
+ ]
+ }
+ }
+ ],
+ "comment": {
+ "shortText": "Create a new client for use in the browser."
+ }
+ },
+ "@supabase/auth-js.GoTrueClient.exchangeCodeForSession": {
+ "name": "@supabase/auth-js.GoTrueClient.exchangeCodeForSession",
+ "params": [
+ {
+ "name": "authCode",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "name": "AuthTokenResponse",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "session",
+ "type": {
+ "type": "customObject",
+ "name": "Session",
+ "properties": [
+ {
+ "name": "access_token",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The access token jwt. It is recommended to set the JWT_EXPIRY to a shorter expiry value."
+ }
+ },
+ {
+ "name": "expires_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "A timestamp of when the token will expire. Returned when a login is confirmed."
+ }
+ },
+ {
+ "name": "expires_in",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "comment": {
+ "shortText": "The number of seconds until the token expires (since it was issued). Returned when a login is confirmed."
+ }
+ },
+ {
+ "name": "provider_refresh_token",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The oauth provider refresh token. If present, this can be used to refresh the provider_token via the oauth provider's API.\\nNot all oauth providers return a provider refresh token. If the provider_refresh_token is missing, please refer to the oauth provider's documentation for information on how to obtain the provider refresh token."
+ }
+ },
+ {
+ "name": "provider_token",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The oauth provider token. If present, this can be used to make external API requests to the oauth provider used."
+ }
+ },
+ {
+ "name": "refresh_token",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "A one-time used refresh token that never expires."
+ }
+ },
+ {
+ "name": "token_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "user",
+ "type": {
+ "type": "customObject",
+ "name": "User",
+ "properties": [
+ {
+ "name": "action_link",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "app_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserAppMetadata",
+ "properties": [
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ }
+ ]
+ }
+ },
+ {
+ "name": "aud",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "confirmation_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_change_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "factors",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "Factor",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "factor_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "Type of factor. Only \`totp\` supported with this version but may change in\\nfuture versions."
+ }
+ },
+ {
+ "name": "friendly_name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Friendly name of the factor, useful to disambiguate between multiple factors."
+ }
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "ID of the factor."
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "verified"
+ },
+ {
+ "type": "literal",
+ "value": "unverified"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Factor's status."
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identities",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "UserIdentity",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identity_data",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "identity_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "invited_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "recovery_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "role",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserMetadata",
+ "properties": []
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "user",
+ "type": {
+ "type": "customObject",
+ "name": "User",
+ "properties": [
+ {
+ "name": "action_link",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "app_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserAppMetadata",
+ "properties": [
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ }
+ ]
+ }
+ },
+ {
+ "name": "aud",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "confirmation_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_change_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "factors",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "Factor",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "factor_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "Type of factor. Only \`totp\` supported with this version but may change in\\nfuture versions."
+ }
+ },
+ {
+ "name": "friendly_name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Friendly name of the factor, useful to disambiguate between multiple factors."
+ }
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "ID of the factor."
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "verified"
+ },
+ {
+ "type": "literal",
+ "value": "unverified"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Factor's status."
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identities",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "UserIdentity",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identity_data",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "identity_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "invited_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "recovery_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "role",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserMetadata",
+ "properties": []
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "session",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "user",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "AuthError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Log in an existing user by exchanging an Auth Code issued during the PKCE flow."
+ }
+ },
+ "@supabase/auth-js.GoTrueClient.getSession": {
+ "name": "@supabase/auth-js.GoTrueClient.getSession",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "session",
+ "type": {
+ "type": "customObject",
+ "name": "Session",
+ "properties": [
+ {
+ "name": "access_token",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The access token jwt. It is recommended to set the JWT_EXPIRY to a shorter expiry value."
+ }
+ },
+ {
+ "name": "expires_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "A timestamp of when the token will expire. Returned when a login is confirmed."
+ }
+ },
+ {
+ "name": "expires_in",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "comment": {
+ "shortText": "The number of seconds until the token expires (since it was issued). Returned when a login is confirmed."
+ }
+ },
+ {
+ "name": "provider_refresh_token",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The oauth provider refresh token. If present, this can be used to refresh the provider_token via the oauth provider's API.\\nNot all oauth providers return a provider refresh token. If the provider_refresh_token is missing, please refer to the oauth provider's documentation for information on how to obtain the provider refresh token."
+ }
+ },
+ {
+ "name": "provider_token",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The oauth provider token. If present, this can be used to make external API requests to the oauth provider used."
+ }
+ },
+ {
+ "name": "refresh_token",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "A one-time used refresh token that never expires."
+ }
+ },
+ {
+ "name": "token_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "user",
+ "type": {
+ "type": "customObject",
+ "name": "User",
+ "properties": [
+ {
+ "name": "action_link",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "app_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserAppMetadata",
+ "properties": [
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ }
+ ]
+ }
+ },
+ {
+ "name": "aud",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "confirmation_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_change_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "factors",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "Factor",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "factor_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "Type of factor. Only \`totp\` supported with this version but may change in\\nfuture versions."
+ }
+ },
+ {
+ "name": "friendly_name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Friendly name of the factor, useful to disambiguate between multiple factors."
+ }
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "ID of the factor."
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "verified"
+ },
+ {
+ "type": "literal",
+ "value": "unverified"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Factor's status."
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identities",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "UserIdentity",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identity_data",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "identity_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "invited_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "recovery_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "role",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserMetadata",
+ "properties": []
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "session",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "AuthError"
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "session",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "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"
+ }
+ },
+ "@supabase/auth-js.GoTrueClient.getUser": {
+ "name": "@supabase/auth-js.GoTrueClient.getUser",
+ "params": [
+ {
+ "name": "jwt",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Takes in an optional access token JWT. If no JWT is provided, the JWT from the current session is used.\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "name": "UserResponse",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "user",
+ "type": {
+ "type": "customObject",
+ "name": "User",
+ "properties": [
+ {
+ "name": "action_link",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "app_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserAppMetadata",
+ "properties": [
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ }
+ ]
+ }
+ },
+ {
+ "name": "aud",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "confirmation_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_change_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "factors",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "Factor",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "factor_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "Type of factor. Only \`totp\` supported with this version but may change in\\nfuture versions."
+ }
+ },
+ {
+ "name": "friendly_name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Friendly name of the factor, useful to disambiguate between multiple factors."
+ }
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "ID of the factor."
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "verified"
+ },
+ {
+ "type": "literal",
+ "value": "unverified"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Factor's status."
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identities",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "UserIdentity",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identity_data",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "identity_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "invited_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "recovery_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "role",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserMetadata",
+ "properties": []
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "user",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "AuthError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "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."
+ }
+ },
+ "@supabase/auth-js.GoTrueClient.getUserIdentities": {
+ "name": "@supabase/auth-js.GoTrueClient.getUserIdentities",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "identities",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "UserIdentity",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identity_data",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "identity_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "AuthError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Gets all the identities linked to a user."
+ }
+ },
+ "@supabase/auth-js.GoTrueClient.initialize": {
+ "name": "@supabase/auth-js.GoTrueClient.initialize",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "name": "InitializeResult",
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "error",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "nameOnly",
+ "name": "AuthError"
+ },
+ {
+ "type": "literal",
+ "value": null
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Initializes the client session either from the url or from storage.\\nThis method is automatically called when instantiating the client, but should also be called\\nmanually when checking for an error from an auth redirect (oauth, magiclink, password recovery, etc)."
+ }
+ },
+ "@supabase/auth-js.GoTrueClient.linkIdentity": {
+ "name": "@supabase/auth-js.GoTrueClient.linkIdentity",
+ "params": [
+ {
+ "name": "credentials",
+ "type": {
+ "name": "SignInWithOAuthCredentials",
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "options",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "queryParams",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "An object of query params"
+ }
+ },
+ {
+ "name": "redirectTo",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "A URL to send the user to after they are confirmed."
+ }
+ },
+ {
+ "name": "scopes",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "A space-separated list of scopes granted to the OAuth application."
+ }
+ },
+ {
+ "name": "skipBrowserRedirect",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "If set to true does not immediately redirect the current browser context to visit the OAuth authorization page for the provider."
+ }
+ }
+ ]
+ },
+ "isOptional": true
+ },
+ {
+ "name": "provider",
+ "type": {
+ "type": "customUnion",
+ "name": "Provider",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "apple"
+ },
+ {
+ "type": "literal",
+ "value": "azure"
+ },
+ {
+ "type": "literal",
+ "value": "bitbucket"
+ },
+ {
+ "type": "literal",
+ "value": "discord"
+ },
+ {
+ "type": "literal",
+ "value": "facebook"
+ },
+ {
+ "type": "literal",
+ "value": "figma"
+ },
+ {
+ "type": "literal",
+ "value": "github"
+ },
+ {
+ "type": "literal",
+ "value": "gitlab"
+ },
+ {
+ "type": "literal",
+ "value": "google"
+ },
+ {
+ "type": "literal",
+ "value": "kakao"
+ },
+ {
+ "type": "literal",
+ "value": "keycloak"
+ },
+ {
+ "type": "literal",
+ "value": "linkedin"
+ },
+ {
+ "type": "literal",
+ "value": "linkedin_oidc"
+ },
+ {
+ "type": "literal",
+ "value": "notion"
+ },
+ {
+ "type": "literal",
+ "value": "slack"
+ },
+ {
+ "type": "literal",
+ "value": "spotify"
+ },
+ {
+ "type": "literal",
+ "value": "twitch"
+ },
+ {
+ "type": "literal",
+ "value": "twitter"
+ },
+ {
+ "type": "literal",
+ "value": "workos"
+ },
+ {
+ "type": "literal",
+ "value": "zoom"
+ },
+ {
+ "type": "literal",
+ "value": "fly"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "One of the providers supported by GoTrue."
+ }
+ }
+ ]
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "name": "OAuthResponse",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "provider",
+ "type": {
+ "type": "customUnion",
+ "name": "Provider",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "apple"
+ },
+ {
+ "type": "literal",
+ "value": "azure"
+ },
+ {
+ "type": "literal",
+ "value": "bitbucket"
+ },
+ {
+ "type": "literal",
+ "value": "discord"
+ },
+ {
+ "type": "literal",
+ "value": "facebook"
+ },
+ {
+ "type": "literal",
+ "value": "figma"
+ },
+ {
+ "type": "literal",
+ "value": "github"
+ },
+ {
+ "type": "literal",
+ "value": "gitlab"
+ },
+ {
+ "type": "literal",
+ "value": "google"
+ },
+ {
+ "type": "literal",
+ "value": "kakao"
+ },
+ {
+ "type": "literal",
+ "value": "keycloak"
+ },
+ {
+ "type": "literal",
+ "value": "linkedin"
+ },
+ {
+ "type": "literal",
+ "value": "linkedin_oidc"
+ },
+ {
+ "type": "literal",
+ "value": "notion"
+ },
+ {
+ "type": "literal",
+ "value": "slack"
+ },
+ {
+ "type": "literal",
+ "value": "spotify"
+ },
+ {
+ "type": "literal",
+ "value": "twitch"
+ },
+ {
+ "type": "literal",
+ "value": "twitter"
+ },
+ {
+ "type": "literal",
+ "value": "workos"
+ },
+ {
+ "type": "literal",
+ "value": "zoom"
+ },
+ {
+ "type": "literal",
+ "value": "fly"
+ }
+ ]
+ }
+ },
+ {
+ "name": "url",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "provider",
+ "type": {
+ "type": "customUnion",
+ "name": "Provider",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "apple"
+ },
+ {
+ "type": "literal",
+ "value": "azure"
+ },
+ {
+ "type": "literal",
+ "value": "bitbucket"
+ },
+ {
+ "type": "literal",
+ "value": "discord"
+ },
+ {
+ "type": "literal",
+ "value": "facebook"
+ },
+ {
+ "type": "literal",
+ "value": "figma"
+ },
+ {
+ "type": "literal",
+ "value": "github"
+ },
+ {
+ "type": "literal",
+ "value": "gitlab"
+ },
+ {
+ "type": "literal",
+ "value": "google"
+ },
+ {
+ "type": "literal",
+ "value": "kakao"
+ },
+ {
+ "type": "literal",
+ "value": "keycloak"
+ },
+ {
+ "type": "literal",
+ "value": "linkedin"
+ },
+ {
+ "type": "literal",
+ "value": "linkedin_oidc"
+ },
+ {
+ "type": "literal",
+ "value": "notion"
+ },
+ {
+ "type": "literal",
+ "value": "slack"
+ },
+ {
+ "type": "literal",
+ "value": "spotify"
+ },
+ {
+ "type": "literal",
+ "value": "twitch"
+ },
+ {
+ "type": "literal",
+ "value": "twitter"
+ },
+ {
+ "type": "literal",
+ "value": "workos"
+ },
+ {
+ "type": "literal",
+ "value": "zoom"
+ },
+ {
+ "type": "literal",
+ "value": "fly"
+ }
+ ]
+ }
+ },
+ {
+ "name": "url",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "AuthError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Links an oauth identity to an existing user.\\nThis method supports the PKCE flow."
+ }
+ },
+ "@supabase/auth-js.GoTrueClient.onAuthStateChange": {
+ "name": "@supabase/auth-js.GoTrueClient.onAuthStateChange",
+ "params": [
+ {
+ "name": "callback",
+ "type": {
+ "type": "function",
+ "params": [
+ {
+ "name": "event",
+ "type": {
+ "type": "customUnion",
+ "name": "AuthChangeEvent",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "INITIAL_SESSION"
+ },
+ {
+ "type": "literal",
+ "value": "PASSWORD_RECOVERY"
+ },
+ {
+ "type": "literal",
+ "value": "SIGNED_IN"
+ },
+ {
+ "type": "literal",
+ "value": "SIGNED_OUT"
+ },
+ {
+ "type": "literal",
+ "value": "TOKEN_REFRESHED"
+ },
+ {
+ "type": "literal",
+ "value": "USER_UPDATED"
+ },
+ {
+ "type": "literal",
+ "value": "MFA_CHALLENGE_VERIFIED"
+ }
+ ]
+ }
+ },
+ {
+ "name": "session",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "customObject",
+ "name": "Session",
+ "properties": [
+ {
+ "name": "access_token",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The access token jwt. It is recommended to set the JWT_EXPIRY to a shorter expiry value."
+ }
+ },
+ {
+ "name": "expires_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "A timestamp of when the token will expire. Returned when a login is confirmed."
+ }
+ },
+ {
+ "name": "expires_in",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "comment": {
+ "shortText": "The number of seconds until the token expires (since it was issued). Returned when a login is confirmed."
+ }
+ },
+ {
+ "name": "provider_refresh_token",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The oauth provider refresh token. If present, this can be used to refresh the provider_token via the oauth provider's API.\\nNot all oauth providers return a provider refresh token. If the provider_refresh_token is missing, please refer to the oauth provider's documentation for information on how to obtain the provider refresh token."
+ }
+ },
+ {
+ "name": "provider_token",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The oauth provider token. If present, this can be used to make external API requests to the oauth provider used."
+ }
+ },
+ {
+ "name": "refresh_token",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "A one-time used refresh token that never expires."
+ }
+ },
+ {
+ "name": "token_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "user",
+ "type": {
+ "type": "customObject",
+ "name": "User",
+ "properties": [
+ {
+ "name": "action_link",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "app_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserAppMetadata",
+ "properties": [
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ }
+ ]
+ }
+ },
+ {
+ "name": "aud",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "confirmation_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_change_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "factors",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "Factor",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "factor_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "Type of factor. Only \`totp\` supported with this version but may change in\\nfuture versions."
+ }
+ },
+ {
+ "name": "friendly_name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Friendly name of the factor, useful to disambiguate between multiple factors."
+ }
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "ID of the factor."
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "verified"
+ },
+ {
+ "type": "literal",
+ "value": "unverified"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Factor's status."
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identities",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "UserIdentity",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identity_data",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "identity_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "invited_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "recovery_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "role",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserMetadata",
+ "properties": []
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "intrinsic",
+ "name": "void"
+ },
+ {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "A callback function to be invoked when an auth event happens.\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "subscription",
+ "type": {
+ "type": "customObject",
+ "name": "Subscription",
+ "properties": [
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The subscriber UUID. This will be set by the client."
+ }
+ },
+ {
+ "type": "function",
+ "name": "callback",
+ "params": [
+ {
+ "name": "event",
+ "type": {
+ "type": "customUnion",
+ "name": "AuthChangeEvent",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "INITIAL_SESSION"
+ },
+ {
+ "type": "literal",
+ "value": "PASSWORD_RECOVERY"
+ },
+ {
+ "type": "literal",
+ "value": "SIGNED_IN"
+ },
+ {
+ "type": "literal",
+ "value": "SIGNED_OUT"
+ },
+ {
+ "type": "literal",
+ "value": "TOKEN_REFRESHED"
+ },
+ {
+ "type": "literal",
+ "value": "USER_UPDATED"
+ },
+ {
+ "type": "literal",
+ "value": "MFA_CHALLENGE_VERIFIED"
+ }
+ ]
+ }
+ },
+ {
+ "name": "session",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "customObject",
+ "name": "Session",
+ "properties": [
+ {
+ "name": "access_token",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The access token jwt. It is recommended to set the JWT_EXPIRY to a shorter expiry value."
+ }
+ },
+ {
+ "name": "expires_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "A timestamp of when the token will expire. Returned when a login is confirmed."
+ }
+ },
+ {
+ "name": "expires_in",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "comment": {
+ "shortText": "The number of seconds until the token expires (since it was issued). Returned when a login is confirmed."
+ }
+ },
+ {
+ "name": "provider_refresh_token",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The oauth provider refresh token. If present, this can be used to refresh the provider_token via the oauth provider's API.\\nNot all oauth providers return a provider refresh token. If the provider_refresh_token is missing, please refer to the oauth provider's documentation for information on how to obtain the provider refresh token."
+ }
+ },
+ {
+ "name": "provider_token",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The oauth provider token. If present, this can be used to make external API requests to the oauth provider used."
+ }
+ },
+ {
+ "name": "refresh_token",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "A one-time used refresh token that never expires."
+ }
+ },
+ {
+ "name": "token_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "user",
+ "type": {
+ "type": "customObject",
+ "name": "User",
+ "properties": [
+ {
+ "name": "action_link",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "app_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserAppMetadata",
+ "properties": [
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ }
+ ]
+ }
+ },
+ {
+ "name": "aud",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "confirmation_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_change_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "factors",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "Factor",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "factor_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "Type of factor. Only \`totp\` supported with this version but may change in\\nfuture versions."
+ }
+ },
+ {
+ "name": "friendly_name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Friendly name of the factor, useful to disambiguate between multiple factors."
+ }
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "ID of the factor."
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "verified"
+ },
+ {
+ "type": "literal",
+ "value": "unverified"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Factor's status."
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identities",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "UserIdentity",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identity_data",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "identity_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "invited_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "recovery_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "role",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserMetadata",
+ "properties": []
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ },
+ "comment": {
+ "shortText": "The function to call every time there is an event. eg: (eventName) => {}"
+ }
+ },
+ {
+ "type": "function",
+ "name": "unsubscribe",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ },
+ "comment": {
+ "shortText": "Call this to remove the listener."
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ },
+ "comment": {
+ "shortText": "Receive a notification every time an auth event happens."
+ }
+ },
+ "@supabase/auth-js.GoTrueClient.reauthenticate": {
+ "name": "@supabase/auth-js.GoTrueClient.reauthenticate",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "name": "AuthResponse",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "session",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "name": "Session",
+ "properties": [
+ {
+ "name": "access_token",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The access token jwt. It is recommended to set the JWT_EXPIRY to a shorter expiry value."
+ }
+ },
+ {
+ "name": "expires_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "A timestamp of when the token will expire. Returned when a login is confirmed."
+ }
+ },
+ {
+ "name": "expires_in",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "comment": {
+ "shortText": "The number of seconds until the token expires (since it was issued). Returned when a login is confirmed."
+ }
+ },
+ {
+ "name": "provider_refresh_token",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The oauth provider refresh token. If present, this can be used to refresh the provider_token via the oauth provider's API.\\nNot all oauth providers return a provider refresh token. If the provider_refresh_token is missing, please refer to the oauth provider's documentation for information on how to obtain the provider refresh token."
+ }
+ },
+ {
+ "name": "provider_token",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The oauth provider token. If present, this can be used to make external API requests to the oauth provider used."
+ }
+ },
+ {
+ "name": "refresh_token",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "A one-time used refresh token that never expires."
+ }
+ },
+ {
+ "name": "token_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "user",
+ "type": {
+ "type": "customObject",
+ "name": "User",
+ "properties": [
+ {
+ "name": "action_link",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "app_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserAppMetadata",
+ "properties": [
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ }
+ ]
+ }
+ },
+ {
+ "name": "aud",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "confirmation_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_change_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "factors",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "Factor",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "factor_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "Type of factor. Only \`totp\` supported with this version but may change in\\nfuture versions."
+ }
+ },
+ {
+ "name": "friendly_name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Friendly name of the factor, useful to disambiguate between multiple factors."
+ }
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "ID of the factor."
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "verified"
+ },
+ {
+ "type": "literal",
+ "value": "unverified"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Factor's status."
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identities",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "UserIdentity",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identity_data",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "identity_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "invited_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "recovery_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "role",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserMetadata",
+ "properties": []
+ }
+ }
+ ]
+ }
+ }
+ ]
+ },
+ {
+ "type": "literal",
+ "value": null
+ }
+ ]
+ }
+ },
+ {
+ "name": "user",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "name": "User",
+ "properties": [
+ {
+ "name": "action_link",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "app_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserAppMetadata",
+ "properties": [
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ }
+ ]
+ }
+ },
+ {
+ "name": "aud",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "confirmation_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_change_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "factors",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "Factor",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "factor_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "Type of factor. Only \`totp\` supported with this version but may change in\\nfuture versions."
+ }
+ },
+ {
+ "name": "friendly_name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Friendly name of the factor, useful to disambiguate between multiple factors."
+ }
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "ID of the factor."
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "verified"
+ },
+ {
+ "type": "literal",
+ "value": "unverified"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Factor's status."
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identities",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "UserIdentity",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identity_data",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "identity_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "invited_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "recovery_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "role",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserMetadata",
+ "properties": []
+ }
+ }
+ ]
+ },
+ {
+ "type": "literal",
+ "value": null
+ }
+ ]
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "session",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "user",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "AuthError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Sends a reauthentication OTP to the user's email or phone number.\\nRequires the user to be signed-in."
+ }
+ },
+ "@supabase/auth-js.GoTrueClient.refreshSession": {
+ "name": "@supabase/auth-js.GoTrueClient.refreshSession",
+ "params": [
+ {
+ "name": "currentSession",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "refresh_token",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The current session. If passed in, it must contain a refresh token.\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "name": "AuthResponse",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "session",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "name": "Session",
+ "properties": [
+ {
+ "name": "access_token",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The access token jwt. It is recommended to set the JWT_EXPIRY to a shorter expiry value."
+ }
+ },
+ {
+ "name": "expires_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "A timestamp of when the token will expire. Returned when a login is confirmed."
+ }
+ },
+ {
+ "name": "expires_in",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "comment": {
+ "shortText": "The number of seconds until the token expires (since it was issued). Returned when a login is confirmed."
+ }
+ },
+ {
+ "name": "provider_refresh_token",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The oauth provider refresh token. If present, this can be used to refresh the provider_token via the oauth provider's API.\\nNot all oauth providers return a provider refresh token. If the provider_refresh_token is missing, please refer to the oauth provider's documentation for information on how to obtain the provider refresh token."
+ }
+ },
+ {
+ "name": "provider_token",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The oauth provider token. If present, this can be used to make external API requests to the oauth provider used."
+ }
+ },
+ {
+ "name": "refresh_token",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "A one-time used refresh token that never expires."
+ }
+ },
+ {
+ "name": "token_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "user",
+ "type": {
+ "type": "customObject",
+ "name": "User",
+ "properties": [
+ {
+ "name": "action_link",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "app_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserAppMetadata",
+ "properties": [
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ }
+ ]
+ }
+ },
+ {
+ "name": "aud",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "confirmation_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_change_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "factors",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "Factor",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "factor_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "Type of factor. Only \`totp\` supported with this version but may change in\\nfuture versions."
+ }
+ },
+ {
+ "name": "friendly_name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Friendly name of the factor, useful to disambiguate between multiple factors."
+ }
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "ID of the factor."
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "verified"
+ },
+ {
+ "type": "literal",
+ "value": "unverified"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Factor's status."
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identities",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "UserIdentity",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identity_data",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "identity_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "invited_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "recovery_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "role",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserMetadata",
+ "properties": []
+ }
+ }
+ ]
+ }
+ }
+ ]
+ },
+ {
+ "type": "literal",
+ "value": null
+ }
+ ]
+ }
+ },
+ {
+ "name": "user",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "name": "User",
+ "properties": [
+ {
+ "name": "action_link",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "app_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserAppMetadata",
+ "properties": [
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ }
+ ]
+ }
+ },
+ {
+ "name": "aud",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "confirmation_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_change_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "factors",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "Factor",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "factor_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "Type of factor. Only \`totp\` supported with this version but may change in\\nfuture versions."
+ }
+ },
+ {
+ "name": "friendly_name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Friendly name of the factor, useful to disambiguate between multiple factors."
+ }
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "ID of the factor."
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "verified"
+ },
+ {
+ "type": "literal",
+ "value": "unverified"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Factor's status."
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identities",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "UserIdentity",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identity_data",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "identity_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "invited_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "recovery_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "role",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserMetadata",
+ "properties": []
+ }
+ }
+ ]
+ },
+ {
+ "type": "literal",
+ "value": null
+ }
+ ]
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "session",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "user",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "AuthError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Returns a new session, regardless of expiry status.\\nTakes in an optional current session. If not passed in, then refreshSession() will attempt to retrieve it from getSession().\\nIf the current session's refresh token is invalid, an error will be thrown."
+ }
+ },
+ "@supabase/auth-js.GoTrueClient.resend": {
+ "name": "@supabase/auth-js.GoTrueClient.resend",
+ "params": [
+ {
+ "name": "credentials",
+ "type": {
+ "type": "customUnion",
+ "name": "ResendParams",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "options",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "captchaToken",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Verification token received when the user completes the captcha on the site."
+ }
+ },
+ {
+ "name": "emailRedirectTo",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "A URL to send the user to after they have signed-in."
+ }
+ }
+ ]
+ },
+ "isOptional": true
+ },
+ {
+ "name": "type",
+ "type": {
+ "type": "nameOnly",
+ "name": "Extract"
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "options",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "captchaToken",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Verification token received when the user completes the captcha on the site."
+ }
+ }
+ ]
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "type",
+ "type": {
+ "type": "nameOnly",
+ "name": "Extract"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "name": "AuthOtpResponse",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "messageId",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "literal",
+ "value": null
+ }
+ ]
+ },
+ "isOptional": true
+ },
+ {
+ "name": "session",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "user",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "messageId",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "literal",
+ "value": null
+ }
+ ]
+ },
+ "isOptional": true
+ },
+ {
+ "name": "session",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "user",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "AuthError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Resends an existing signup confirmation email, email change email, SMS OTP or phone change OTP."
+ }
+ },
+ "@supabase/auth-js.GoTrueClient.resetPasswordForEmail": {
+ "name": "@supabase/auth-js.GoTrueClient.resetPasswordForEmail",
+ "params": [
+ {
+ "name": "email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The email address of the user."
+ }
+ },
+ {
+ "name": "options",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "captchaToken",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Verification token received when the user completes the captcha on the site.\\n"
+ }
+ },
+ {
+ "name": "redirectTo",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The URL to send the user to after they click the password reset link."
+ }
+ }
+ ]
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data"
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "AuthError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Sends a password reset request to an email address. This method supports the PKCE flow."
+ }
+ },
+ "@supabase/auth-js.GoTrueClient.setSession": {
+ "name": "@supabase/auth-js.GoTrueClient.setSession",
+ "params": [
+ {
+ "name": "currentSession",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "access_token",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "refresh_token",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "The current session that minimally contains an access token and refresh token.\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "name": "AuthResponse",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "session",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "name": "Session",
+ "properties": [
+ {
+ "name": "access_token",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The access token jwt. It is recommended to set the JWT_EXPIRY to a shorter expiry value."
+ }
+ },
+ {
+ "name": "expires_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "A timestamp of when the token will expire. Returned when a login is confirmed."
+ }
+ },
+ {
+ "name": "expires_in",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "comment": {
+ "shortText": "The number of seconds until the token expires (since it was issued). Returned when a login is confirmed."
+ }
+ },
+ {
+ "name": "provider_refresh_token",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The oauth provider refresh token. If present, this can be used to refresh the provider_token via the oauth provider's API.\\nNot all oauth providers return a provider refresh token. If the provider_refresh_token is missing, please refer to the oauth provider's documentation for information on how to obtain the provider refresh token."
+ }
+ },
+ {
+ "name": "provider_token",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The oauth provider token. If present, this can be used to make external API requests to the oauth provider used."
+ }
+ },
+ {
+ "name": "refresh_token",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "A one-time used refresh token that never expires."
+ }
+ },
+ {
+ "name": "token_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "user",
+ "type": {
+ "type": "customObject",
+ "name": "User",
+ "properties": [
+ {
+ "name": "action_link",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "app_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserAppMetadata",
+ "properties": [
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ }
+ ]
+ }
+ },
+ {
+ "name": "aud",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "confirmation_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_change_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "factors",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "Factor",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "factor_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "Type of factor. Only \`totp\` supported with this version but may change in\\nfuture versions."
+ }
+ },
+ {
+ "name": "friendly_name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Friendly name of the factor, useful to disambiguate between multiple factors."
+ }
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "ID of the factor."
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "verified"
+ },
+ {
+ "type": "literal",
+ "value": "unverified"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Factor's status."
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identities",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "UserIdentity",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identity_data",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "identity_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "invited_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "recovery_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "role",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserMetadata",
+ "properties": []
+ }
+ }
+ ]
+ }
+ }
+ ]
+ },
+ {
+ "type": "literal",
+ "value": null
+ }
+ ]
+ }
+ },
+ {
+ "name": "user",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "name": "User",
+ "properties": [
+ {
+ "name": "action_link",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "app_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserAppMetadata",
+ "properties": [
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ }
+ ]
+ }
+ },
+ {
+ "name": "aud",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "confirmation_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_change_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "factors",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "Factor",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "factor_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "Type of factor. Only \`totp\` supported with this version but may change in\\nfuture versions."
+ }
+ },
+ {
+ "name": "friendly_name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Friendly name of the factor, useful to disambiguate between multiple factors."
+ }
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "ID of the factor."
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "verified"
+ },
+ {
+ "type": "literal",
+ "value": "unverified"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Factor's status."
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identities",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "UserIdentity",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identity_data",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "identity_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "invited_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "recovery_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "role",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserMetadata",
+ "properties": []
+ }
+ }
+ ]
+ },
+ {
+ "type": "literal",
+ "value": null
+ }
+ ]
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "session",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "user",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "AuthError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Sets the session data from the current session. If the current session is expired, setSession will take care of refreshing it to obtain a new session.\\nIf the refresh token or access token in the current session is invalid, an error will be thrown."
+ }
+ },
+ "@supabase/auth-js.GoTrueClient.signInAnonymously": {
+ "name": "@supabase/auth-js.GoTrueClient.signInAnonymously",
+ "params": [
+ {
+ "name": "credentials",
+ "type": {
+ "name": "SignInAnonymouslyCredentials",
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "options",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "captchaToken",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Verification token received when the user completes the captcha on the site."
+ }
+ },
+ {
+ "name": "data",
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ },
+ "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"
+ }
+ }
+ ]
+ },
+ "isOptional": true
+ }
+ ]
+ },
+ "isOptional": true
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "name": "AuthResponse",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "session",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "name": "Session",
+ "properties": [
+ {
+ "name": "access_token",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The access token jwt. It is recommended to set the JWT_EXPIRY to a shorter expiry value."
+ }
+ },
+ {
+ "name": "expires_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "A timestamp of when the token will expire. Returned when a login is confirmed."
+ }
+ },
+ {
+ "name": "expires_in",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "comment": {
+ "shortText": "The number of seconds until the token expires (since it was issued). Returned when a login is confirmed."
+ }
+ },
+ {
+ "name": "provider_refresh_token",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The oauth provider refresh token. If present, this can be used to refresh the provider_token via the oauth provider's API.\\nNot all oauth providers return a provider refresh token. If the provider_refresh_token is missing, please refer to the oauth provider's documentation for information on how to obtain the provider refresh token."
+ }
+ },
+ {
+ "name": "provider_token",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The oauth provider token. If present, this can be used to make external API requests to the oauth provider used."
+ }
+ },
+ {
+ "name": "refresh_token",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "A one-time used refresh token that never expires."
+ }
+ },
+ {
+ "name": "token_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "user",
+ "type": {
+ "type": "customObject",
+ "name": "User",
+ "properties": [
+ {
+ "name": "action_link",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "app_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserAppMetadata",
+ "properties": [
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ }
+ ]
+ }
+ },
+ {
+ "name": "aud",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "confirmation_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_change_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "factors",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "Factor",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "factor_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "Type of factor. Only \`totp\` supported with this version but may change in\\nfuture versions."
+ }
+ },
+ {
+ "name": "friendly_name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Friendly name of the factor, useful to disambiguate between multiple factors."
+ }
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "ID of the factor."
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "verified"
+ },
+ {
+ "type": "literal",
+ "value": "unverified"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Factor's status."
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identities",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "UserIdentity",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identity_data",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "identity_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "invited_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "recovery_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "role",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserMetadata",
+ "properties": []
+ }
+ }
+ ]
+ }
+ }
+ ]
+ },
+ {
+ "type": "literal",
+ "value": null
+ }
+ ]
+ }
+ },
+ {
+ "name": "user",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "name": "User",
+ "properties": [
+ {
+ "name": "action_link",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "app_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserAppMetadata",
+ "properties": [
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ }
+ ]
+ }
+ },
+ {
+ "name": "aud",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "confirmation_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_change_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "factors",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "Factor",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "factor_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "Type of factor. Only \`totp\` supported with this version but may change in\\nfuture versions."
+ }
+ },
+ {
+ "name": "friendly_name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Friendly name of the factor, useful to disambiguate between multiple factors."
+ }
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "ID of the factor."
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "verified"
+ },
+ {
+ "type": "literal",
+ "value": "unverified"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Factor's status."
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identities",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "UserIdentity",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identity_data",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "identity_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "invited_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "recovery_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "role",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserMetadata",
+ "properties": []
+ }
+ }
+ ]
+ },
+ {
+ "type": "literal",
+ "value": null
+ }
+ ]
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "session",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "user",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "AuthError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Creates a new anonymous user.",
+ "returns": "A session where the is_anonymous claim in the access token JWT set to true\\n"
+ }
+ },
+ "@supabase/auth-js.GoTrueClient.signInWithIdToken": {
+ "name": "@supabase/auth-js.GoTrueClient.signInWithIdToken",
+ "params": [
+ {
+ "name": "credentials",
+ "type": {
+ "name": "SignInWithIdTokenCredentials",
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "access_token",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "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."
+ }
+ },
+ {
+ "name": "nonce",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "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."
+ }
+ },
+ {
+ "name": "options",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "captchaToken",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Verification token received when the user completes the captcha on the site."
+ }
+ }
+ ]
+ },
+ "isOptional": true
+ },
+ {
+ "name": "provider",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "google"
+ },
+ {
+ "type": "literal",
+ "value": "apple"
+ },
+ {
+ "type": "literal",
+ "value": "azure"
+ },
+ {
+ "type": "literal",
+ "value": "facebook"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Provider name or OIDC \`iss\` value identifying which provider should be used to verify the provided token. Supported names: \`google\`, \`apple\`, \`azure\`, \`facebook\`, \`keycloak\` (deprecated)."
+ }
+ },
+ {
+ "name": "token",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "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."
+ }
+ }
+ ]
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "name": "AuthTokenResponse",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "session",
+ "type": {
+ "type": "customObject",
+ "name": "Session",
+ "properties": [
+ {
+ "name": "access_token",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The access token jwt. It is recommended to set the JWT_EXPIRY to a shorter expiry value."
+ }
+ },
+ {
+ "name": "expires_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "A timestamp of when the token will expire. Returned when a login is confirmed."
+ }
+ },
+ {
+ "name": "expires_in",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "comment": {
+ "shortText": "The number of seconds until the token expires (since it was issued). Returned when a login is confirmed."
+ }
+ },
+ {
+ "name": "provider_refresh_token",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The oauth provider refresh token. If present, this can be used to refresh the provider_token via the oauth provider's API.\\nNot all oauth providers return a provider refresh token. If the provider_refresh_token is missing, please refer to the oauth provider's documentation for information on how to obtain the provider refresh token."
+ }
+ },
+ {
+ "name": "provider_token",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The oauth provider token. If present, this can be used to make external API requests to the oauth provider used."
+ }
+ },
+ {
+ "name": "refresh_token",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "A one-time used refresh token that never expires."
+ }
+ },
+ {
+ "name": "token_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "user",
+ "type": {
+ "type": "customObject",
+ "name": "User",
+ "properties": [
+ {
+ "name": "action_link",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "app_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserAppMetadata",
+ "properties": [
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ }
+ ]
+ }
+ },
+ {
+ "name": "aud",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "confirmation_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_change_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "factors",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "Factor",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "factor_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "Type of factor. Only \`totp\` supported with this version but may change in\\nfuture versions."
+ }
+ },
+ {
+ "name": "friendly_name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Friendly name of the factor, useful to disambiguate between multiple factors."
+ }
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "ID of the factor."
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "verified"
+ },
+ {
+ "type": "literal",
+ "value": "unverified"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Factor's status."
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identities",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "UserIdentity",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identity_data",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "identity_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "invited_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "recovery_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "role",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserMetadata",
+ "properties": []
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "user",
+ "type": {
+ "type": "customObject",
+ "name": "User",
+ "properties": [
+ {
+ "name": "action_link",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "app_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserAppMetadata",
+ "properties": [
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ }
+ ]
+ }
+ },
+ {
+ "name": "aud",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "confirmation_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_change_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "factors",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "Factor",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "factor_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "Type of factor. Only \`totp\` supported with this version but may change in\\nfuture versions."
+ }
+ },
+ {
+ "name": "friendly_name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Friendly name of the factor, useful to disambiguate between multiple factors."
+ }
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "ID of the factor."
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "verified"
+ },
+ {
+ "type": "literal",
+ "value": "unverified"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Factor's status."
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identities",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "UserIdentity",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identity_data",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "identity_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "invited_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "recovery_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "role",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserMetadata",
+ "properties": []
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "session",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "user",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "AuthError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Allows signing in with an OIDC ID token. The authentication provider used\\nshould be enabled and configured."
+ }
+ },
+ "@supabase/auth-js.GoTrueClient.signInWithOAuth": {
+ "name": "@supabase/auth-js.GoTrueClient.signInWithOAuth",
+ "params": [
+ {
+ "name": "credentials",
+ "type": {
+ "name": "SignInWithOAuthCredentials",
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "options",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "queryParams",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "An object of query params"
+ }
+ },
+ {
+ "name": "redirectTo",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "A URL to send the user to after they are confirmed."
+ }
+ },
+ {
+ "name": "scopes",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "A space-separated list of scopes granted to the OAuth application."
+ }
+ },
+ {
+ "name": "skipBrowserRedirect",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "If set to true does not immediately redirect the current browser context to visit the OAuth authorization page for the provider."
+ }
+ }
+ ]
+ },
+ "isOptional": true
+ },
+ {
+ "name": "provider",
+ "type": {
+ "type": "customUnion",
+ "name": "Provider",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "apple"
+ },
+ {
+ "type": "literal",
+ "value": "azure"
+ },
+ {
+ "type": "literal",
+ "value": "bitbucket"
+ },
+ {
+ "type": "literal",
+ "value": "discord"
+ },
+ {
+ "type": "literal",
+ "value": "facebook"
+ },
+ {
+ "type": "literal",
+ "value": "figma"
+ },
+ {
+ "type": "literal",
+ "value": "github"
+ },
+ {
+ "type": "literal",
+ "value": "gitlab"
+ },
+ {
+ "type": "literal",
+ "value": "google"
+ },
+ {
+ "type": "literal",
+ "value": "kakao"
+ },
+ {
+ "type": "literal",
+ "value": "keycloak"
+ },
+ {
+ "type": "literal",
+ "value": "linkedin"
+ },
+ {
+ "type": "literal",
+ "value": "linkedin_oidc"
+ },
+ {
+ "type": "literal",
+ "value": "notion"
+ },
+ {
+ "type": "literal",
+ "value": "slack"
+ },
+ {
+ "type": "literal",
+ "value": "spotify"
+ },
+ {
+ "type": "literal",
+ "value": "twitch"
+ },
+ {
+ "type": "literal",
+ "value": "twitter"
+ },
+ {
+ "type": "literal",
+ "value": "workos"
+ },
+ {
+ "type": "literal",
+ "value": "zoom"
+ },
+ {
+ "type": "literal",
+ "value": "fly"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "One of the providers supported by GoTrue."
+ }
+ }
+ ]
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "name": "OAuthResponse",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "provider",
+ "type": {
+ "type": "customUnion",
+ "name": "Provider",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "apple"
+ },
+ {
+ "type": "literal",
+ "value": "azure"
+ },
+ {
+ "type": "literal",
+ "value": "bitbucket"
+ },
+ {
+ "type": "literal",
+ "value": "discord"
+ },
+ {
+ "type": "literal",
+ "value": "facebook"
+ },
+ {
+ "type": "literal",
+ "value": "figma"
+ },
+ {
+ "type": "literal",
+ "value": "github"
+ },
+ {
+ "type": "literal",
+ "value": "gitlab"
+ },
+ {
+ "type": "literal",
+ "value": "google"
+ },
+ {
+ "type": "literal",
+ "value": "kakao"
+ },
+ {
+ "type": "literal",
+ "value": "keycloak"
+ },
+ {
+ "type": "literal",
+ "value": "linkedin"
+ },
+ {
+ "type": "literal",
+ "value": "linkedin_oidc"
+ },
+ {
+ "type": "literal",
+ "value": "notion"
+ },
+ {
+ "type": "literal",
+ "value": "slack"
+ },
+ {
+ "type": "literal",
+ "value": "spotify"
+ },
+ {
+ "type": "literal",
+ "value": "twitch"
+ },
+ {
+ "type": "literal",
+ "value": "twitter"
+ },
+ {
+ "type": "literal",
+ "value": "workos"
+ },
+ {
+ "type": "literal",
+ "value": "zoom"
+ },
+ {
+ "type": "literal",
+ "value": "fly"
+ }
+ ]
+ }
+ },
+ {
+ "name": "url",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "provider",
+ "type": {
+ "type": "customUnion",
+ "name": "Provider",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "apple"
+ },
+ {
+ "type": "literal",
+ "value": "azure"
+ },
+ {
+ "type": "literal",
+ "value": "bitbucket"
+ },
+ {
+ "type": "literal",
+ "value": "discord"
+ },
+ {
+ "type": "literal",
+ "value": "facebook"
+ },
+ {
+ "type": "literal",
+ "value": "figma"
+ },
+ {
+ "type": "literal",
+ "value": "github"
+ },
+ {
+ "type": "literal",
+ "value": "gitlab"
+ },
+ {
+ "type": "literal",
+ "value": "google"
+ },
+ {
+ "type": "literal",
+ "value": "kakao"
+ },
+ {
+ "type": "literal",
+ "value": "keycloak"
+ },
+ {
+ "type": "literal",
+ "value": "linkedin"
+ },
+ {
+ "type": "literal",
+ "value": "linkedin_oidc"
+ },
+ {
+ "type": "literal",
+ "value": "notion"
+ },
+ {
+ "type": "literal",
+ "value": "slack"
+ },
+ {
+ "type": "literal",
+ "value": "spotify"
+ },
+ {
+ "type": "literal",
+ "value": "twitch"
+ },
+ {
+ "type": "literal",
+ "value": "twitter"
+ },
+ {
+ "type": "literal",
+ "value": "workos"
+ },
+ {
+ "type": "literal",
+ "value": "zoom"
+ },
+ {
+ "type": "literal",
+ "value": "fly"
+ }
+ ]
+ }
+ },
+ {
+ "name": "url",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "AuthError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Log in an existing user via a third-party provider.\\nThis method supports the PKCE flow."
+ }
+ },
+ "@supabase/auth-js.GoTrueClient.signInWithOtp": {
+ "name": "@supabase/auth-js.GoTrueClient.signInWithOtp",
+ "params": [
+ {
+ "name": "credentials",
+ "type": {
+ "type": "customUnion",
+ "name": "SignInWithPasswordlessCredentials",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The user's email address."
+ }
+ },
+ {
+ "name": "options",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "captchaToken",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Verification token received when the user completes the captcha on the site."
+ }
+ },
+ {
+ "name": "data",
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ },
+ "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"
+ }
+ },
+ {
+ "name": "emailRedirectTo",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The redirect url embedded in the email link"
+ }
+ },
+ {
+ "name": "shouldCreateUser",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "If set to false, this method will not create a new user. Defaults to true."
+ }
+ }
+ ]
+ },
+ "isOptional": true
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "options",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "captchaToken",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Verification token received when the user completes the captcha on the site."
+ }
+ },
+ {
+ "name": "channel",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "sms"
+ },
+ {
+ "type": "literal",
+ "value": "whatsapp"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Messaging channel to use (e.g. whatsapp or sms)"
+ }
+ },
+ {
+ "name": "data",
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ },
+ "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"
+ }
+ },
+ {
+ "name": "shouldCreateUser",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "If set to false, this method will not create a new user. Defaults to true."
+ }
+ }
+ ]
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The user's phone number."
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "name": "AuthOtpResponse",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "messageId",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "literal",
+ "value": null
+ }
+ ]
+ },
+ "isOptional": true
+ },
+ {
+ "name": "session",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "user",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "messageId",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "literal",
+ "value": null
+ }
+ ]
+ },
+ "isOptional": true
+ },
+ {
+ "name": "session",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "user",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "AuthError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Log in a user using magiclink or a one-time password (OTP).",
+ "text": "If the \`{{ .ConfirmationURL }}\` variable is specified in the email template, a magiclink will be sent.\\nIf the \`{{ .Token }}\` variable is specified in the email template, an OTP will be sent.\\nIf you're using phone sign-ins, only an OTP will be sent. You won't be able to send a magiclink for phone sign-ins.\\n\\nBe aware that you may get back an error message that will not distinguish\\nbetween the cases where the account does not exist or, that the account\\ncan only be accessed via social login.\\n\\nDo note that you will need to configure a Whatsapp sender on Twilio\\nif you are using phone sign in with the 'whatsapp' channel. The whatsapp\\nchannel is not supported on other providers\\nat this time.\\nThis method supports PKCE when an email is passed.\\n"
+ }
+ },
+ "@supabase/auth-js.GoTrueClient.signInWithPassword": {
+ "name": "@supabase/auth-js.GoTrueClient.signInWithPassword",
+ "params": [
+ {
+ "name": "credentials",
+ "type": {
+ "type": "customUnion",
+ "name": "SignInWithPasswordCredentials",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The user's email address."
+ }
+ },
+ {
+ "name": "options",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "captchaToken",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Verification token received when the user completes the captcha on the site."
+ }
+ }
+ ]
+ },
+ "isOptional": true
+ },
+ {
+ "name": "password",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The user's password."
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "options",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "captchaToken",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Verification token received when the user completes the captcha on the site."
+ }
+ }
+ ]
+ },
+ "isOptional": true
+ },
+ {
+ "name": "password",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The user's password."
+ }
+ },
+ {
+ "name": "phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The user's phone number."
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "name": "AuthTokenResponsePassword",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "session",
+ "type": {
+ "type": "customObject",
+ "name": "Session",
+ "properties": [
+ {
+ "name": "access_token",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The access token jwt. It is recommended to set the JWT_EXPIRY to a shorter expiry value."
+ }
+ },
+ {
+ "name": "expires_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "A timestamp of when the token will expire. Returned when a login is confirmed."
+ }
+ },
+ {
+ "name": "expires_in",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "comment": {
+ "shortText": "The number of seconds until the token expires (since it was issued). Returned when a login is confirmed."
+ }
+ },
+ {
+ "name": "provider_refresh_token",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The oauth provider refresh token. If present, this can be used to refresh the provider_token via the oauth provider's API.\\nNot all oauth providers return a provider refresh token. If the provider_refresh_token is missing, please refer to the oauth provider's documentation for information on how to obtain the provider refresh token."
+ }
+ },
+ {
+ "name": "provider_token",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The oauth provider token. If present, this can be used to make external API requests to the oauth provider used."
+ }
+ },
+ {
+ "name": "refresh_token",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "A one-time used refresh token that never expires."
+ }
+ },
+ {
+ "name": "token_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "user",
+ "type": {
+ "type": "customObject",
+ "name": "User",
+ "properties": [
+ {
+ "name": "action_link",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "app_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserAppMetadata",
+ "properties": [
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ }
+ ]
+ }
+ },
+ {
+ "name": "aud",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "confirmation_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_change_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "factors",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "Factor",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "factor_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "Type of factor. Only \`totp\` supported with this version but may change in\\nfuture versions."
+ }
+ },
+ {
+ "name": "friendly_name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Friendly name of the factor, useful to disambiguate between multiple factors."
+ }
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "ID of the factor."
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "verified"
+ },
+ {
+ "type": "literal",
+ "value": "unverified"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Factor's status."
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identities",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "UserIdentity",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identity_data",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "identity_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "invited_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "recovery_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "role",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserMetadata",
+ "properties": []
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "user",
+ "type": {
+ "type": "customObject",
+ "name": "User",
+ "properties": [
+ {
+ "name": "action_link",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "app_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserAppMetadata",
+ "properties": [
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ }
+ ]
+ }
+ },
+ {
+ "name": "aud",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "confirmation_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_change_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "factors",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "Factor",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "factor_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "Type of factor. Only \`totp\` supported with this version but may change in\\nfuture versions."
+ }
+ },
+ {
+ "name": "friendly_name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Friendly name of the factor, useful to disambiguate between multiple factors."
+ }
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "ID of the factor."
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "verified"
+ },
+ {
+ "type": "literal",
+ "value": "unverified"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Factor's status."
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identities",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "UserIdentity",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identity_data",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "identity_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "invited_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "recovery_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "role",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserMetadata",
+ "properties": []
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "weakPassword",
+ "type": {
+ "name": "WeakPassword",
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "message",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "reasons",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customUnion",
+ "name": "WeakPasswordReasons",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "length"
+ },
+ {
+ "type": "literal",
+ "value": "characters"
+ },
+ {
+ "type": "literal",
+ "value": "pwned"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ }
+ }
+ ]
+ },
+ "isOptional": true
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "session",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "user",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "weakPassword",
+ "type": {
+ "type": "literal",
+ "value": null
+ },
+ "isOptional": true
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "AuthError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Log in an existing user with an email and password or phone and password.",
+ "text": "Be aware that you may get back an error message that will not distinguish\\nbetween the cases where the account does not exist or that the\\nemail/phone and password combination is wrong or that the account can only\\nbe accessed via social login.\\n"
+ }
+ },
+ "@supabase/auth-js.GoTrueClient.signInWithSSO": {
+ "name": "@supabase/auth-js.GoTrueClient.signInWithSSO",
+ "params": [
+ {
+ "name": "params",
+ "type": {
+ "type": "customUnion",
+ "name": "SignInWithSSO",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "options",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "captchaToken",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Verification token received when the user completes the captcha on the site."
+ }
+ },
+ {
+ "name": "redirectTo",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "A URL to send the user to after they have signed-in."
+ }
+ }
+ ]
+ },
+ "isOptional": true
+ },
+ {
+ "name": "providerId",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "UUID of the SSO provider to invoke single-sign on to."
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "domain",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "Domain name of the organization for which to invoke single-sign on."
+ }
+ },
+ {
+ "name": "options",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "captchaToken",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Verification token received when the user completes the captcha on the site."
+ }
+ },
+ {
+ "name": "redirectTo",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "A URL to send the user to after they have signed-in."
+ }
+ }
+ ]
+ },
+ "isOptional": true
+ }
+ ]
+ }
+ ]
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "name": "SSOResponse",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "url",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "URL to open in a browser which will complete the sign-in flow by\\ntaking the user to the identity provider's authentication flow.",
+ "text": "On browsers you can set the URL to \`window.location.href\` to take\\nthe user to the authentication flow.\\n"
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "AuthError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Attempts a single-sign on using an enterprise Identity Provider. A\\nsuccessful SSO attempt will redirect the current page to the identity\\nprovider authorization page. The redirect URL is implementation and SSO\\nprotocol specific.",
+ "text": "You can use it by providing a SSO domain. Typically you can extract this\\ndomain by asking users for their email address. If this domain is\\nregistered on the Auth instance the redirect will use that organization's\\ncurrently active SSO Identity Provider for the login.\\n\\nIf you have built an organization-specific login page, you can use the\\norganization's SSO Identity Provider UUID directly instead.\\n"
+ }
+ },
+ "@supabase/auth-js.GoTrueClient.signOut": {
+ "name": "@supabase/auth-js.GoTrueClient.signOut",
+ "params": [
+ {
+ "name": "options",
+ "type": {
+ "name": "SignOut",
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "scope",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "global"
+ },
+ {
+ "type": "literal",
+ "value": "local"
+ },
+ {
+ "type": "literal",
+ "value": "others"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Determines which sessions should be\\nlogged out. Global means all\\nsessions by this account. Local\\nmeans only this session. Others\\nmeans all other sessions except the\\ncurrent one. When using others,\\nthere is no sign-out event fired on\\nthe current session!"
+ }
+ }
+ ]
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "error",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "nameOnly",
+ "name": "AuthError"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Inside a browser context, \`signOut()\` will remove the logged in user from the browser session and log them out - removing all items from localstorage and then trigger a \`\\"SIGNED_OUT\\"\` event.",
+ "text": "For server-side management, you can revoke all refresh tokens for a user by passing a user's JWT through to \`auth.api.signOut(JWT: string)\`.\\nThere is no way to revoke a user's access token jwt until it expires. It is recommended to set a shorter expiry on the jwt for this reason.\\n\\nIf using \`others\` scope, no \`SIGNED_OUT\` event is fired!\\n"
+ }
+ },
+ "@supabase/auth-js.GoTrueClient.signUp": {
+ "name": "@supabase/auth-js.GoTrueClient.signUp",
+ "params": [
+ {
+ "name": "credentials",
+ "type": {
+ "type": "customUnion",
+ "name": "SignUpWithPasswordCredentials",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The user's email address."
+ }
+ },
+ {
+ "name": "options",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "captchaToken",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Verification token received when the user completes the captcha on the site."
+ }
+ },
+ {
+ "name": "data",
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ },
+ "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"
+ }
+ },
+ {
+ "name": "emailRedirectTo",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The redirect url embedded in the email link"
+ }
+ }
+ ]
+ },
+ "isOptional": true
+ },
+ {
+ "name": "password",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The user's password."
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "options",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "captchaToken",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Verification token received when the user completes the captcha on the site. Requires a configured WhatsApp sender on Twilio"
+ }
+ },
+ {
+ "name": "channel",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "sms"
+ },
+ {
+ "type": "literal",
+ "value": "whatsapp"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Messaging channel to use (e.g. whatsapp or sms)"
+ }
+ },
+ {
+ "name": "data",
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ },
+ "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"
+ }
+ }
+ ]
+ },
+ "isOptional": true
+ },
+ {
+ "name": "password",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The user's password."
+ }
+ },
+ {
+ "name": "phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The user's phone number."
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "name": "AuthResponse",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "session",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "name": "Session",
+ "properties": [
+ {
+ "name": "access_token",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The access token jwt. It is recommended to set the JWT_EXPIRY to a shorter expiry value."
+ }
+ },
+ {
+ "name": "expires_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "A timestamp of when the token will expire. Returned when a login is confirmed."
+ }
+ },
+ {
+ "name": "expires_in",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "comment": {
+ "shortText": "The number of seconds until the token expires (since it was issued). Returned when a login is confirmed."
+ }
+ },
+ {
+ "name": "provider_refresh_token",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The oauth provider refresh token. If present, this can be used to refresh the provider_token via the oauth provider's API.\\nNot all oauth providers return a provider refresh token. If the provider_refresh_token is missing, please refer to the oauth provider's documentation for information on how to obtain the provider refresh token."
+ }
+ },
+ {
+ "name": "provider_token",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The oauth provider token. If present, this can be used to make external API requests to the oauth provider used."
+ }
+ },
+ {
+ "name": "refresh_token",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "A one-time used refresh token that never expires."
+ }
+ },
+ {
+ "name": "token_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "user",
+ "type": {
+ "type": "customObject",
+ "name": "User",
+ "properties": [
+ {
+ "name": "action_link",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "app_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserAppMetadata",
+ "properties": [
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ }
+ ]
+ }
+ },
+ {
+ "name": "aud",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "confirmation_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_change_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "factors",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "Factor",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "factor_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "Type of factor. Only \`totp\` supported with this version but may change in\\nfuture versions."
+ }
+ },
+ {
+ "name": "friendly_name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Friendly name of the factor, useful to disambiguate between multiple factors."
+ }
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "ID of the factor."
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "verified"
+ },
+ {
+ "type": "literal",
+ "value": "unverified"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Factor's status."
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identities",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "UserIdentity",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identity_data",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "identity_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "invited_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "recovery_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "role",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserMetadata",
+ "properties": []
+ }
+ }
+ ]
+ }
+ }
+ ]
+ },
+ {
+ "type": "literal",
+ "value": null
+ }
+ ]
+ }
+ },
+ {
+ "name": "user",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "name": "User",
+ "properties": [
+ {
+ "name": "action_link",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "app_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserAppMetadata",
+ "properties": [
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ }
+ ]
+ }
+ },
+ {
+ "name": "aud",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "confirmation_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_change_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "factors",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "Factor",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "factor_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "Type of factor. Only \`totp\` supported with this version but may change in\\nfuture versions."
+ }
+ },
+ {
+ "name": "friendly_name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Friendly name of the factor, useful to disambiguate between multiple factors."
+ }
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "ID of the factor."
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "verified"
+ },
+ {
+ "type": "literal",
+ "value": "unverified"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Factor's status."
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identities",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "UserIdentity",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identity_data",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "identity_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "invited_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "recovery_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "role",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserMetadata",
+ "properties": []
+ }
+ }
+ ]
+ },
+ {
+ "type": "literal",
+ "value": null
+ }
+ ]
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "session",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "user",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "AuthError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Creates a new user.",
+ "text": "Be aware that if a user account exists in the system you may get back an\\nerror message that attempts to hide this information from the user.\\nThis method has support for PKCE via email signups. The PKCE flow cannot be used when autoconfirm is enabled.\\n",
+ "returns": "A logged-in session if the server has \\"autoconfirm\\" ON"
+ }
+ },
+ "@supabase/auth-js.GoTrueClient.startAutoRefresh": {
+ "name": "@supabase/auth-js.GoTrueClient.startAutoRefresh",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Starts an auto-refresh process in the background. The session is checked\\nevery few seconds. Close to the time of expiration a process is started to\\nrefresh the session. If refreshing fails it will be retried for as long as\\nnecessary.",
+ "text": "If you set the {@link GoTrueClientOptions#autoRefreshToken} you don't need\\nto call this function, it will be called for you.\\n\\nOn browsers the refresh process works only when the tab/window is in the\\nforeground to conserve resources as well as prevent race conditions and\\nflooding auth with requests. If you call this method any managed\\nvisibility change callback will be removed and you must manage visibility\\nchanges on your own.\\n\\nOn non-browser platforms the refresh process works *continuously* in the\\nbackground, which may not be desirable. You should hook into your\\nplatform's foreground indication mechanism and call these methods\\nappropriately to conserve resources.\\n\\n{@see #stopAutoRefresh}\\n"
+ }
+ },
+ "@supabase/auth-js.GoTrueClient.stopAutoRefresh": {
+ "name": "@supabase/auth-js.GoTrueClient.stopAutoRefresh",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Stops an active auto refresh process running in the background (if any).",
+ "text": "If you call this method any managed visibility change callback will be\\nremoved and you must manage visibility changes on your own.\\n\\nSee {@link #startAutoRefresh} for more details.\\n"
+ }
+ },
+ "@supabase/auth-js.GoTrueClient.unlinkIdentity": {
+ "name": "@supabase/auth-js.GoTrueClient.unlinkIdentity",
+ "params": [
+ {
+ "name": "identity",
+ "type": {
+ "type": "customObject",
+ "name": "UserIdentity",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identity_data",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "identity_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data"
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "AuthError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "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."
+ }
+ },
+ "@supabase/auth-js.GoTrueClient.updateUser": {
+ "name": "@supabase/auth-js.GoTrueClient.updateUser",
+ "params": [
+ {
+ "name": "attributes",
+ "type": {
+ "type": "customObject",
+ "name": "UserAttributes",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ },
+ "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"
+ }
+ },
+ {
+ "name": "email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The user's email."
+ }
+ },
+ {
+ "name": "nonce",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "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"
+ }
+ },
+ {
+ "name": "password",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The user's password."
+ }
+ },
+ {
+ "name": "phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The user's phone."
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "options",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "emailRedirectTo",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ }
+ ]
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "name": "UserResponse",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "user",
+ "type": {
+ "type": "customObject",
+ "name": "User",
+ "properties": [
+ {
+ "name": "action_link",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "app_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserAppMetadata",
+ "properties": [
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ }
+ ]
+ }
+ },
+ {
+ "name": "aud",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "confirmation_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_change_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "factors",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "Factor",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "factor_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "Type of factor. Only \`totp\` supported with this version but may change in\\nfuture versions."
+ }
+ },
+ {
+ "name": "friendly_name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Friendly name of the factor, useful to disambiguate between multiple factors."
+ }
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "ID of the factor."
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "verified"
+ },
+ {
+ "type": "literal",
+ "value": "unverified"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Factor's status."
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identities",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "UserIdentity",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identity_data",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "identity_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "invited_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "recovery_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "role",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserMetadata",
+ "properties": []
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "user",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "AuthError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Updates user data for a logged in user."
+ }
+ },
+ "@supabase/auth-js.GoTrueClient.verifyOtp": {
+ "name": "@supabase/auth-js.GoTrueClient.verifyOtp",
+ "params": [
+ {
+ "name": "params",
+ "type": {
+ "type": "customUnion",
+ "name": "VerifyOtpParams",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "name": "VerifyMobileOtpParams",
+ "properties": [
+ {
+ "name": "options",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "captchaToken",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Verification token received when the user completes the captcha on the site.",
+ "tags": [
+ {
+ "tag": "deprecated",
+ "text": "\\n"
+ }
+ ]
+ }
+ },
+ {
+ "name": "redirectTo",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "A URL to send the user to after they are confirmed."
+ }
+ }
+ ]
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The user's phone number."
+ }
+ },
+ {
+ "name": "token",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The otp sent to the user's phone number."
+ }
+ },
+ {
+ "name": "type",
+ "type": {
+ "type": "customUnion",
+ "name": "MobileOtpType",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "sms"
+ },
+ {
+ "type": "literal",
+ "value": "phone_change"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "The user's verification type."
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "name": "VerifyEmailOtpParams",
+ "properties": [
+ {
+ "name": "email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The user's email address."
+ }
+ },
+ {
+ "name": "options",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "captchaToken",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Verification token received when the user completes the captcha on the site.",
+ "tags": [
+ {
+ "tag": "deprecated",
+ "text": "\\n"
+ }
+ ]
+ }
+ },
+ {
+ "name": "redirectTo",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "A URL to send the user to after they are confirmed."
+ }
+ }
+ ]
+ },
+ "isOptional": true
+ },
+ {
+ "name": "token",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The otp sent to the user's email address."
+ }
+ },
+ {
+ "name": "type",
+ "type": {
+ "type": "customUnion",
+ "name": "EmailOtpType",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "signup"
+ },
+ {
+ "type": "literal",
+ "value": "invite"
+ },
+ {
+ "type": "literal",
+ "value": "magiclink"
+ },
+ {
+ "type": "literal",
+ "value": "recovery"
+ },
+ {
+ "type": "literal",
+ "value": "email_change"
+ },
+ {
+ "type": "literal",
+ "value": "email"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "The user's verification type."
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "name": "VerifyTokenHashParams",
+ "properties": [
+ {
+ "name": "token_hash",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The token hash used in an email link"
+ }
+ },
+ {
+ "name": "type",
+ "type": {
+ "type": "customUnion",
+ "name": "EmailOtpType",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "signup"
+ },
+ {
+ "type": "literal",
+ "value": "invite"
+ },
+ {
+ "type": "literal",
+ "value": "magiclink"
+ },
+ {
+ "type": "literal",
+ "value": "recovery"
+ },
+ {
+ "type": "literal",
+ "value": "email_change"
+ },
+ {
+ "type": "literal",
+ "value": "email"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "The user's verification type."
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "name": "AuthResponse",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "session",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "name": "Session",
+ "properties": [
+ {
+ "name": "access_token",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The access token jwt. It is recommended to set the JWT_EXPIRY to a shorter expiry value."
+ }
+ },
+ {
+ "name": "expires_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "A timestamp of when the token will expire. Returned when a login is confirmed."
+ }
+ },
+ {
+ "name": "expires_in",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "comment": {
+ "shortText": "The number of seconds until the token expires (since it was issued). Returned when a login is confirmed."
+ }
+ },
+ {
+ "name": "provider_refresh_token",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The oauth provider refresh token. If present, this can be used to refresh the provider_token via the oauth provider's API.\\nNot all oauth providers return a provider refresh token. If the provider_refresh_token is missing, please refer to the oauth provider's documentation for information on how to obtain the provider refresh token."
+ }
+ },
+ {
+ "name": "provider_token",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The oauth provider token. If present, this can be used to make external API requests to the oauth provider used."
+ }
+ },
+ {
+ "name": "refresh_token",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "A one-time used refresh token that never expires."
+ }
+ },
+ {
+ "name": "token_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "user",
+ "type": {
+ "type": "customObject",
+ "name": "User",
+ "properties": [
+ {
+ "name": "action_link",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "app_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserAppMetadata",
+ "properties": [
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ }
+ ]
+ }
+ },
+ {
+ "name": "aud",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "confirmation_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_change_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "factors",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "Factor",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "factor_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "Type of factor. Only \`totp\` supported with this version but may change in\\nfuture versions."
+ }
+ },
+ {
+ "name": "friendly_name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Friendly name of the factor, useful to disambiguate between multiple factors."
+ }
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "ID of the factor."
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "verified"
+ },
+ {
+ "type": "literal",
+ "value": "unverified"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Factor's status."
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identities",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "UserIdentity",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identity_data",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "identity_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "invited_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "recovery_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "role",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserMetadata",
+ "properties": []
+ }
+ }
+ ]
+ }
+ }
+ ]
+ },
+ {
+ "type": "literal",
+ "value": null
+ }
+ ]
+ }
+ },
+ {
+ "name": "user",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "name": "User",
+ "properties": [
+ {
+ "name": "action_link",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "app_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserAppMetadata",
+ "properties": [
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ }
+ ]
+ }
+ },
+ {
+ "name": "aud",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "confirmation_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_change_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "factors",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "Factor",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "factor_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "Type of factor. Only \`totp\` supported with this version but may change in\\nfuture versions."
+ }
+ },
+ {
+ "name": "friendly_name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Friendly name of the factor, useful to disambiguate between multiple factors."
+ }
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "ID of the factor."
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "verified"
+ },
+ {
+ "type": "literal",
+ "value": "unverified"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Factor's status."
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identities",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "UserIdentity",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identity_data",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "identity_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "invited_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "recovery_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "role",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserMetadata",
+ "properties": []
+ }
+ }
+ ]
+ },
+ {
+ "type": "literal",
+ "value": null
+ }
+ ]
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "session",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "user",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "AuthError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Log in a user given a User supplied OTP or TokenHash received through mobile or email."
+ }
+ },
+ "@supabase/auth-js.NavigatorLockAcquireTimeoutError.constructor": {
+ "name": "@supabase/auth-js.NavigatorLockAcquireTimeoutError.constructor",
+ "params": [
+ {
+ "name": "message",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "NavigatorLockAcquireTimeoutError"
+ }
+ }
+ },
+ "@supabase/auth-js.GoTrueAdminMFAApi.deleteFactor": {
+ "name": "@supabase/auth-js.GoTrueAdminMFAApi.deleteFactor",
+ "params": [
+ {
+ "name": "params",
+ "type": {
+ "name": "AuthMFAAdminDeleteFactorParams",
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "ID of the MFA factor to delete."
+ }
+ },
+ {
+ "name": "userId",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "ID of the user whose factor is being deleted."
+ }
+ }
+ ]
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "name": "AuthMFAAdminDeleteFactorResponse",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "ID of the factor that was successfully deleted."
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "AuthError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Deletes a factor on a user. This will log the user out of all active\\nsessions if the deleted factor was verified.",
+ "tags": [
+ {
+ "tag": "see",
+ "text": "{@link GoTrueMFAApi#unenroll}\\n"
+ },
+ {
+ "tag": "expermental",
+ "text": "\\n"
+ }
+ ]
+ }
+ },
+ "@supabase/auth-js.GoTrueAdminMFAApi.listFactors": {
+ "name": "@supabase/auth-js.GoTrueAdminMFAApi.listFactors",
+ "params": [
+ {
+ "name": "params",
+ "type": {
+ "name": "AuthMFAAdminListFactorsParams",
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "userId",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "ID of the user."
+ }
+ }
+ ]
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "name": "AuthMFAAdminListFactorsResponse",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "factors",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "Factor",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "factor_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "Type of factor. Only \`totp\` supported with this version but may change in\\nfuture versions."
+ }
+ },
+ {
+ "name": "friendly_name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Friendly name of the factor, useful to disambiguate between multiple factors."
+ }
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "ID of the factor."
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "verified"
+ },
+ {
+ "type": "literal",
+ "value": "unverified"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Factor's status."
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "comment": {
+ "shortText": "All factors attached to the user."
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "AuthError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Lists all factors associated to a user."
+ }
+ },
+ "@supabase/auth-js.GoTrueMFAApi.challenge": {
+ "name": "@supabase/auth-js.GoTrueMFAApi.challenge",
+ "params": [
+ {
+ "name": "params",
+ "type": {
+ "name": "MFAChallengeParams",
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "factorId",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "ID of the factor to be challenged. Returned in enroll()."
+ }
+ }
+ ]
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "name": "AuthMFAChallengeResponse",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "expires_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "comment": {
+ "shortText": "Timestamp in UNIX seconds when this challenge will no longer be usable."
+ }
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "ID of the newly created challenge."
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "AuthError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Prepares a challenge used to verify that a user has access to a MFA\\nfactor."
+ }
+ },
+ "@supabase/auth-js.GoTrueMFAApi.challengeAndVerify": {
+ "name": "@supabase/auth-js.GoTrueMFAApi.challengeAndVerify",
+ "params": [
+ {
+ "name": "params",
+ "type": {
+ "name": "MFAChallengeAndVerifyParams",
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "code",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "Verification code provided by the user."
+ }
+ },
+ {
+ "name": "factorId",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "ID of the factor being verified. Returned in enroll()."
+ }
+ }
+ ]
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "name": "AuthMFAVerifyResponse",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "access_token",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "New access token (JWT) after successful verification."
+ }
+ },
+ {
+ "name": "expires_in",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "comment": {
+ "shortText": "Number of seconds in which the access token will expire."
+ }
+ },
+ {
+ "name": "refresh_token",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "Refresh token you can use to obtain new access tokens when expired."
+ }
+ },
+ {
+ "name": "token_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "Type of token, typically \`Bearer\`."
+ }
+ },
+ {
+ "name": "user",
+ "type": {
+ "type": "customObject",
+ "name": "User",
+ "properties": [
+ {
+ "name": "action_link",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "app_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserAppMetadata",
+ "properties": [
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ }
+ ]
+ }
+ },
+ {
+ "name": "aud",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "confirmation_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_change_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "factors",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "Factor",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "factor_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "Type of factor. Only \`totp\` supported with this version but may change in\\nfuture versions."
+ }
+ },
+ {
+ "name": "friendly_name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Friendly name of the factor, useful to disambiguate between multiple factors."
+ }
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "ID of the factor."
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "verified"
+ },
+ {
+ "type": "literal",
+ "value": "unverified"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Factor's status."
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identities",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "UserIdentity",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identity_data",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "identity_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "invited_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "recovery_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "role",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserMetadata",
+ "properties": []
+ }
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Updated user profile."
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "AuthError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Helper method which creates a challenge and immediately uses the given code to verify against it thereafter. The verification code is\\nprovided by the user by entering a code seen in their authenticator app."
+ }
+ },
+ "@supabase/auth-js.GoTrueMFAApi.enroll": {
+ "name": "@supabase/auth-js.GoTrueMFAApi.enroll",
+ "params": [
+ {
+ "name": "params",
+ "type": {
+ "name": "MFAEnrollParams",
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "factorType",
+ "type": {
+ "type": "literal",
+ "value": "totp"
+ },
+ "comment": {
+ "shortText": "The type of factor being enrolled."
+ }
+ },
+ {
+ "name": "friendlyName",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Human readable name assigned to the factor."
+ }
+ },
+ {
+ "name": "issuer",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Domain which the user is enrolled with."
+ }
+ }
+ ]
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "name": "AuthMFAEnrollResponse",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "friendly_name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Friendly name of the factor, useful for distinguishing between factors"
+ }
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "ID of the factor that was just enrolled (in an unverified state)."
+ }
+ },
+ {
+ "name": "totp",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "qr_code",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "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."
+ }
+ },
+ {
+ "name": "secret",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "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."
+ }
+ },
+ {
+ "name": "uri",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The authenticator URI encoded within the QR code, should you need\\nto use it. Avoid loggin this value to the console."
+ }
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "TOTP enrollment information."
+ }
+ },
+ {
+ "name": "type",
+ "type": {
+ "type": "literal",
+ "value": "totp"
+ },
+ "comment": {
+ "shortText": "Type of MFA factor. Only \`totp\` supported for now."
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "AuthError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Starts the enrollment process for a new Multi-Factor Authentication (MFA)\\nfactor. This method creates a new \`unverified\` factor.\\nTo verify a factor, present the QR code or secret to the user and ask them to add it to their\\nauthenticator app.\\nThe user has to enter the code from their authenticator app to verify it.",
+ "text": "Upon verifying a factor, all other sessions are logged out and the current session's authenticator level is promoted to \`aal2\`.\\n\\n"
+ }
+ },
+ "@supabase/auth-js.GoTrueMFAApi.getAuthenticatorAssuranceLevel": {
+ "name": "@supabase/auth-js.GoTrueMFAApi.getAuthenticatorAssuranceLevel",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "name": "AuthMFAGetAuthenticatorAssuranceLevelResponse",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "currentAuthenticationMethods",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "AMREntry",
+ "properties": [
+ {
+ "name": "method",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "Authentication method name."
+ }
+ },
+ {
+ "name": "timestamp",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "comment": {
+ "shortText": "Timestamp when the method was successfully used. Represents number of\\nseconds since 1st January 1970 (UNIX epoch) in UTC."
+ }
+ }
+ ]
+ }
+ },
+ "comment": {
+ "shortText": "A list of all authentication methods attached to this session. Use\\nthe information here to detect the last time a user verified a\\nfactor, for example if implementing a step-up scenario."
+ }
+ },
+ {
+ "name": "currentLevel",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "customUnion",
+ "name": "AuthenticatorAssuranceLevels",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "aal1"
+ },
+ {
+ "type": "literal",
+ "value": "aal2"
+ }
+ ]
+ },
+ {
+ "type": "literal",
+ "value": null
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Current AAL level of the session."
+ }
+ },
+ {
+ "name": "nextLevel",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "customUnion",
+ "name": "AuthenticatorAssuranceLevels",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "aal1"
+ },
+ {
+ "type": "literal",
+ "value": "aal2"
+ }
+ ]
+ },
+ {
+ "type": "literal",
+ "value": null
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Next possible AAL level for the session. If the next level is higher\\nthan the current one, the user should go through MFA.",
+ "tags": [
+ {
+ "tag": "see",
+ "text": "{@link GoTrueMFAApi#challenge}\\n"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "AuthError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Returns the Authenticator Assurance Level (AAL) for the active session.",
+ "text": "- \`aal1\` (or \`null\`) means that the user's identity has been verified only\\nwith a conventional login (email+password, OTP, magic link, social login,\\netc.).\\n- \`aal2\` means that the user's identity has been verified both with a conventional login and at least one MFA factor.\\n\\nAlthough this method returns a promise, it's fairly quick (microseconds)\\nand rarely uses the network. You can use this to check whether the current\\nuser needs to be shown a screen to verify their MFA factors.\\n\\n"
+ }
+ },
+ "@supabase/auth-js.GoTrueMFAApi.listFactors": {
+ "name": "@supabase/auth-js.GoTrueMFAApi.listFactors",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "name": "AuthMFAListFactorsResponse",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "all",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "Factor",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "factor_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "Type of factor. Only \`totp\` supported with this version but may change in\\nfuture versions."
+ }
+ },
+ {
+ "name": "friendly_name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Friendly name of the factor, useful to disambiguate between multiple factors."
+ }
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "ID of the factor."
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "verified"
+ },
+ {
+ "type": "literal",
+ "value": "unverified"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Factor's status."
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "comment": {
+ "shortText": "All available factors (verified and unverified)."
+ }
+ },
+ {
+ "name": "totp",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "Factor",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "factor_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "Type of factor. Only \`totp\` supported with this version but may change in\\nfuture versions."
+ }
+ },
+ {
+ "name": "friendly_name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Friendly name of the factor, useful to disambiguate between multiple factors."
+ }
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "ID of the factor."
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "verified"
+ },
+ {
+ "type": "literal",
+ "value": "unverified"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Factor's status."
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "comment": {
+ "shortText": "Only verified TOTP factors. (A subset of \`all\`.)"
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "AuthError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Returns the list of MFA factors enabled for this user.",
+ "tags": [
+ {
+ "tag": "see",
+ "text": "{@link GoTrueMFAApi#enroll}"
+ },
+ {
+ "tag": "see",
+ "text": "{@link GoTrueMFAApi#getAuthenticatorAssuranceLevel}"
+ },
+ {
+ "tag": "see",
+ "text": "{@link GoTrueClient#getUser}\\n\\n"
+ }
+ ]
+ }
+ },
+ "@supabase/auth-js.GoTrueMFAApi.unenroll": {
+ "name": "@supabase/auth-js.GoTrueMFAApi.unenroll",
+ "params": [
+ {
+ "name": "params",
+ "type": {
+ "name": "MFAUnenrollParams",
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "factorId",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "ID of the factor being unenrolled."
+ }
+ }
+ ]
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "name": "AuthMFAUnenrollResponse",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "ID of the factor that was successfully unenrolled."
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "AuthError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Unenroll removes a MFA factor.\\nA user has to have an \`aal2\` authenticator level in order to unenroll a \`verified\` factor."
+ }
+ },
+ "@supabase/auth-js.GoTrueMFAApi.verify": {
+ "name": "@supabase/auth-js.GoTrueMFAApi.verify",
+ "params": [
+ {
+ "name": "params",
+ "type": {
+ "name": "MFAVerifyParams",
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "challengeId",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "ID of the challenge being verified. Returned in challenge()."
+ }
+ },
+ {
+ "name": "code",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "Verification code provided by the user."
+ }
+ },
+ {
+ "name": "factorId",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "ID of the factor being verified. Returned in enroll()."
+ }
+ }
+ ]
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "name": "AuthMFAVerifyResponse",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "access_token",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "New access token (JWT) after successful verification."
+ }
+ },
+ {
+ "name": "expires_in",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "comment": {
+ "shortText": "Number of seconds in which the access token will expire."
+ }
+ },
+ {
+ "name": "refresh_token",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "Refresh token you can use to obtain new access tokens when expired."
+ }
+ },
+ {
+ "name": "token_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "Type of token, typically \`Bearer\`."
+ }
+ },
+ {
+ "name": "user",
+ "type": {
+ "type": "customObject",
+ "name": "User",
+ "properties": [
+ {
+ "name": "action_link",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "app_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserAppMetadata",
+ "properties": [
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ }
+ ]
+ }
+ },
+ {
+ "name": "aud",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "confirmation_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_change_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "factors",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "Factor",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "factor_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "Type of factor. Only \`totp\` supported with this version but may change in\\nfuture versions."
+ }
+ },
+ {
+ "name": "friendly_name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Friendly name of the factor, useful to disambiguate between multiple factors."
+ }
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "ID of the factor."
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "verified"
+ },
+ {
+ "type": "literal",
+ "value": "unverified"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Factor's status."
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identities",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "UserIdentity",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identity_data",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "identity_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "invited_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "recovery_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "role",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserMetadata",
+ "properties": []
+ }
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Updated user profile."
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "AuthError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Verifies a code against a challenge. The verification code is\\nprovided by the user by entering a code seen in their authenticator app."
+ }
+ },
+ "@supabase/auth-js.Subscription.callback": {
+ "name": "@supabase/auth-js.Subscription.callback",
+ "params": [
+ {
+ "name": "event",
+ "type": {
+ "type": "customUnion",
+ "name": "AuthChangeEvent",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "INITIAL_SESSION"
+ },
+ {
+ "type": "literal",
+ "value": "PASSWORD_RECOVERY"
+ },
+ {
+ "type": "literal",
+ "value": "SIGNED_IN"
+ },
+ {
+ "type": "literal",
+ "value": "SIGNED_OUT"
+ },
+ {
+ "type": "literal",
+ "value": "TOKEN_REFRESHED"
+ },
+ {
+ "type": "literal",
+ "value": "USER_UPDATED"
+ },
+ {
+ "type": "literal",
+ "value": "MFA_CHALLENGE_VERIFIED"
+ }
+ ]
+ }
+ },
+ {
+ "name": "session",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "customObject",
+ "name": "Session",
+ "properties": [
+ {
+ "name": "access_token",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The access token jwt. It is recommended to set the JWT_EXPIRY to a shorter expiry value."
+ }
+ },
+ {
+ "name": "expires_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "A timestamp of when the token will expire. Returned when a login is confirmed."
+ }
+ },
+ {
+ "name": "expires_in",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "comment": {
+ "shortText": "The number of seconds until the token expires (since it was issued). Returned when a login is confirmed."
+ }
+ },
+ {
+ "name": "provider_refresh_token",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The oauth provider refresh token. If present, this can be used to refresh the provider_token via the oauth provider's API.\\nNot all oauth providers return a provider refresh token. If the provider_refresh_token is missing, please refer to the oauth provider's documentation for information on how to obtain the provider refresh token."
+ }
+ },
+ {
+ "name": "provider_token",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The oauth provider token. If present, this can be used to make external API requests to the oauth provider used."
+ }
+ },
+ {
+ "name": "refresh_token",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "A one-time used refresh token that never expires."
+ }
+ },
+ {
+ "name": "token_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "user",
+ "type": {
+ "type": "customObject",
+ "name": "User",
+ "properties": [
+ {
+ "name": "action_link",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "app_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserAppMetadata",
+ "properties": [
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ }
+ ]
+ }
+ },
+ {
+ "name": "aud",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "confirmation_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_change_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "email_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "factors",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "Factor",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "factor_type",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "Type of factor. Only \`totp\` supported with this version but may change in\\nfuture versions."
+ }
+ },
+ {
+ "name": "friendly_name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Friendly name of the factor, useful to disambiguate between multiple factors."
+ }
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "ID of the factor."
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "verified"
+ },
+ {
+ "type": "literal",
+ "value": "unverified"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Factor's status."
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identities",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "UserIdentity",
+ "properties": [
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "identity_data",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "identity_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "provider",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "invited_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "last_sign_in_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_email",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "new_phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "phone_confirmed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "recovery_sent_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "role",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "user_metadata",
+ "type": {
+ "type": "customObject",
+ "name": "UserMetadata",
+ "properties": []
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ },
+ "comment": {
+ "shortText": "The function to call every time there is an event. eg: (eventName) => {}"
+ }
+ },
+ "@supabase/auth-js.Subscription.unsubscribe": {
+ "name": "@supabase/auth-js.Subscription.unsubscribe",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ },
+ "comment": {
+ "shortText": "Call this to remove the listener."
+ }
+ }
+ }
+ },
+ {
+ "name": "@supabase/postgrest-js",
+ "methods": {
+ "@supabase/postgrest-js.PostgrestBuilder.constructor": {
+ "name": "@supabase/postgrest-js.PostgrestBuilder.constructor",
+ "params": [
+ {
+ "name": "builder"
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Result"
+ }
+ }
+ },
+ "@supabase/postgrest-js.PostgrestBuilder.then": {
+ "name": "@supabase/postgrest-js.PostgrestBuilder.then",
+ "params": [
+ {
+ "name": "onfulfilled",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "function",
+ "params": [
+ {
+ "name": "value",
+ "type": {
+ "type": "customUnion",
+ "name": "PostgrestSingleResponse",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "name": "PostgrestResponseSuccess",
+ "properties": [
+ {
+ "name": "count",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ ]
+ }
+ },
+ {
+ "name": "data",
+ "type": {
+ "type": "nameOnly",
+ "name": "T"
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "name": "statusText",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "name": "PostgrestResponseFailure",
+ "properties": [
+ {
+ "name": "count",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "data",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "name": "PostgrestError",
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "code",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "details",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "hint",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "message",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "name": "statusText",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "nameOnly",
+ "name": "TResult1"
+ },
+ {
+ "type": "nameOnly",
+ "name": "PromiseLike"
+ }
+ ]
+ }
+ }
+ }
+ ]
+ },
+ "isOptional": true
+ },
+ {
+ "name": "onrejected",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "function",
+ "params": [
+ {
+ "name": "reason",
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "nameOnly",
+ "name": "TResult2"
+ },
+ {
+ "type": "nameOnly",
+ "name": "PromiseLike"
+ }
+ ]
+ }
+ }
+ }
+ ]
+ },
+ "isOptional": true
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "PromiseLike"
+ }
+ }
+ },
+ "@supabase/postgrest-js.PostgrestBuilder.throwOnError": {
+ "name": "@supabase/postgrest-js.PostgrestBuilder.throwOnError",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Result"
+ }
+ },
+ "comment": {
+ "shortText": "If there's an error with the query, throwOnError will reject the promise by\\nthrowing the error instead of returning it as part of a successful response.",
+ "text": "{@link https://github.com/supabase/supabase-js/issues/92}\\n"
+ }
+ },
+ "@supabase/postgrest-js.PostgrestClient.constructor": {
+ "name": "@supabase/postgrest-js.PostgrestClient.constructor",
+ "params": [
+ {
+ "name": "url",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "URL of the PostgREST endpoint"
+ }
+ },
+ {
+ "name": "options",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "fetch",
+ "type": {
+ "type": "function",
+ "params": [
+ {
+ "name": "input",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "nameOnly",
+ "name": "RequestInfo"
+ },
+ {
+ "type": "nameOnly",
+ "name": "URL"
+ }
+ ]
+ }
+ },
+ {
+ "name": "init",
+ "type": {
+ "type": "nameOnly",
+ "name": "RequestInit"
+ },
+ "isOptional": true
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "nameOnly",
+ "name": "Response"
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Custom fetch\\n"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "headers",
+ "type": {
+ "type": "record",
+ "name": "Record",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Custom headers"
+ }
+ },
+ {
+ "name": "schema",
+ "type": {
+ "type": "nameOnly",
+ "name": "SchemaName"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Postgres schema to switch to"
+ }
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Named parameters"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Database"
+ }
+ },
+ "comment": {
+ "shortText": "Creates a PostgREST client."
+ }
+ },
+ "@supabase/postgrest-js.PostgrestClient.from": {
+ "name": "@supabase/postgrest-js.PostgrestClient.from",
+ "params": [
+ {
+ "name": "relation",
+ "type": {
+ "type": "nameOnly",
+ "name": "TableName"
+ },
+ "comment": {
+ "shortText": "The table or view name to query\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Perform a query on a table or a view."
+ }
+ },
+ "@supabase/postgrest-js.PostgrestClient.rpc": {
+ "name": "@supabase/postgrest-js.PostgrestClient.rpc",
+ "params": [
+ {
+ "name": "fn",
+ "type": {
+ "type": "nameOnly",
+ "name": "FnName"
+ },
+ "comment": {
+ "shortText": "The function name to call"
+ }
+ },
+ {
+ "name": "args",
+ "type": {
+ "type": "nameOnly",
+ "name": "Fn[Args]"
+ },
+ "comment": {
+ "shortText": "The arguments to pass to the function call"
+ }
+ },
+ {
+ "name": "options",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "count",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "exact"
+ },
+ {
+ "type": "literal",
+ "value": "planned"
+ },
+ {
+ "type": "literal",
+ "value": "estimated"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Count algorithm to use to count rows returned by the\\nfunction. Only applicable for [set-returning\\nfunctions](https://www.postgresql.org/docs/current/functions-srf.html).\\n\\n\`\\"exact\\"\`: Exact but slow count algorithm. Performs a \`COUNT(*)\` under the\\nhood.\\n\\n\`\\"planned\\"\`: Approximated but fast count algorithm. Uses the Postgres\\nstatistics under the hood.\\n\\n\`\\"estimated\\"\`: Uses exact count for low numbers and planned count for high\\nnumbers.\\n"
+ }
+ },
+ {
+ "name": "get",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "When set to \`true\`, the function will be called with\\nread-only access mode."
+ }
+ },
+ {
+ "name": "head",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "When set to \`true\`, \`data\` will not be returned.\\nUseful if you only need the count."
+ }
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Named parameters"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Perform a function call."
+ }
+ },
+ "@supabase/postgrest-js.PostgrestClient.schema": {
+ "name": "@supabase/postgrest-js.PostgrestClient.schema",
+ "params": [
+ {
+ "name": "schema",
+ "type": {
+ "type": "nameOnly",
+ "name": "DynamicSchema"
+ },
+ "comment": {
+ "shortText": "The schema to query\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Database"
+ }
+ },
+ "comment": {
+ "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"
+ }
+ },
+ "@supabase/postgrest-js.PostgrestFilterBuilder.constructor": {
+ "name": "@supabase/postgrest-js.PostgrestFilterBuilder.constructor",
+ "params": [
+ {
+ "name": "builder"
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ }
+ },
+ "@supabase/postgrest-js.PostgrestFilterBuilder.abortSignal": {
+ "name": "@supabase/postgrest-js.PostgrestFilterBuilder.abortSignal",
+ "params": [
+ {
+ "name": "signal",
+ "type": {
+ "type": "nameOnly",
+ "name": "AbortSignal"
+ },
+ "comment": {
+ "shortText": "The AbortSignal to use for the fetch request\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Set the AbortSignal for the fetch request."
+ }
+ },
+ "@supabase/postgrest-js.PostgrestFilterBuilder.containedBy": {
+ "name": "@supabase/postgrest-js.PostgrestFilterBuilder.containedBy",
+ "params": [
+ {
+ "name": "column",
+ "type": {
+ "type": "nameOnly",
+ "name": "ColumnName"
+ },
+ "comment": {
+ "shortText": "The jsonb, array, or range column to filter on"
+ }
+ },
+ {
+ "name": "value",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "record",
+ "name": "Record",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "unknown"
+ }
+ },
+ {
+ "type": "array",
+ "elemType": {
+ "type": "nameOnly",
+ "name": "Row[ColumnName]"
+ }
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "The jsonb, array, or range value to filter with\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Only relevant for jsonb, array, and range columns. Match only rows where\\nevery element appearing in \`column\` is contained by \`value\`."
+ }
+ },
+ "@supabase/postgrest-js.PostgrestFilterBuilder.contains": {
+ "name": "@supabase/postgrest-js.PostgrestFilterBuilder.contains",
+ "params": [
+ {
+ "name": "column",
+ "type": {
+ "type": "nameOnly",
+ "name": "ColumnName"
+ },
+ "comment": {
+ "shortText": "The jsonb, array, or range column to filter on"
+ }
+ },
+ {
+ "name": "value",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "record",
+ "name": "Record",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "unknown"
+ }
+ },
+ {
+ "type": "array",
+ "elemType": {
+ "type": "nameOnly",
+ "name": "Row[ColumnName]"
+ }
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "The jsonb, array, or range value to filter with\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Only relevant for jsonb, array, and range columns. Match only rows where\\n\`column\` contains every element appearing in \`value\`."
+ }
+ },
+ "@supabase/postgrest-js.PostgrestFilterBuilder.csv": {
+ "name": "@supabase/postgrest-js.PostgrestFilterBuilder.csv",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ "comment": {
+ "shortText": "Return \`data\` as a string in CSV format."
+ }
+ },
+ "@supabase/postgrest-js.PostgrestFilterBuilder.eq": {
+ "name": "@supabase/postgrest-js.PostgrestFilterBuilder.eq",
+ "params": [
+ {
+ "name": "column",
+ "type": {
+ "type": "nameOnly",
+ "name": "ColumnName"
+ },
+ "comment": {
+ "shortText": "The column to filter on"
+ }
+ },
+ {
+ "name": "value",
+ "type": {
+ "type": "nameOnly",
+ "name": "NonNullable"
+ },
+ "comment": {
+ "shortText": "The value to filter with\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Match only rows where \`column\` is equal to \`value\`.",
+ "text": "To check if the value of \`column\` is NULL, you should use \`.is()\` instead.\\n"
+ }
+ },
+ "@supabase/postgrest-js.PostgrestFilterBuilder.explain": {
+ "name": "@supabase/postgrest-js.PostgrestFilterBuilder.explain",
+ "params": [
+ {
+ "name": "options",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "analyze",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "If \`true\`, the query will be executed and the\\nactual run time will be returned\\n"
+ }
+ },
+ {
+ "name": "buffers",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "If \`true\`, include information on buffer usage\\n"
+ }
+ },
+ {
+ "name": "format",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "text"
+ },
+ {
+ "type": "literal",
+ "value": "json"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The format of the output, can be \`\\"text\\"\` (default)\\nor \`\\"json\\"\`\\n"
+ }
+ },
+ {
+ "name": "settings",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "If \`true\`, include information on configuration\\nparameters that affect query planning\\n"
+ }
+ },
+ {
+ "name": "verbose",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "If \`true\`, the query identifier will be returned\\nand \`data\` will include the output columns of the query\\n"
+ }
+ },
+ {
+ "name": "wal",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "If \`true\`, include information on WAL record generation\\n"
+ }
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Named parameters\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "array",
+ "elemType": {
+ "type": "record",
+ "name": "Record",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "unknown"
+ }
+ }
+ }
+ ]
+ }
+ },
+ "comment": {
+ "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"
+ }
+ },
+ "@supabase/postgrest-js.PostgrestFilterBuilder.filter": {
+ "name": "@supabase/postgrest-js.PostgrestFilterBuilder.filter",
+ "params": [
+ {
+ "name": "column",
+ "type": {
+ "type": "nameOnly",
+ "name": "ColumnName"
+ },
+ "comment": {
+ "shortText": "The column to filter on"
+ }
+ },
+ {
+ "name": "operator",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "nameOnly",
+ "name": "FilterOperator"
+ },
+ {
+ "type": "literal",
+ "value": "not.eq"
+ },
+ {
+ "type": "literal",
+ "value": "not.neq"
+ },
+ {
+ "type": "literal",
+ "value": "not.gt"
+ },
+ {
+ "type": "literal",
+ "value": "not.gte"
+ },
+ {
+ "type": "literal",
+ "value": "not.lt"
+ },
+ {
+ "type": "literal",
+ "value": "not.lte"
+ },
+ {
+ "type": "literal",
+ "value": "not.like"
+ },
+ {
+ "type": "literal",
+ "value": "not.ilike"
+ },
+ {
+ "type": "literal",
+ "value": "not.is"
+ },
+ {
+ "type": "literal",
+ "value": "not.in"
+ },
+ {
+ "type": "literal",
+ "value": "not.cs"
+ },
+ {
+ "type": "literal",
+ "value": "not.cd"
+ },
+ {
+ "type": "literal",
+ "value": "not.sl"
+ },
+ {
+ "type": "literal",
+ "value": "not.sr"
+ },
+ {
+ "type": "literal",
+ "value": "not.nxl"
+ },
+ {
+ "type": "literal",
+ "value": "not.nxr"
+ },
+ {
+ "type": "literal",
+ "value": "not.adj"
+ },
+ {
+ "type": "literal",
+ "value": "not.ov"
+ },
+ {
+ "type": "literal",
+ "value": "not.fts"
+ },
+ {
+ "type": "literal",
+ "value": "not.plfts"
+ },
+ {
+ "type": "literal",
+ "value": "not.phfts"
+ },
+ {
+ "type": "literal",
+ "value": "not.wfts"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "The operator to filter with, following PostgREST syntax"
+ }
+ },
+ {
+ "name": "value",
+ "type": {
+ "type": "intrinsic",
+ "name": "unknown"
+ },
+ "comment": {
+ "shortText": "The value to filter with, following PostgREST syntax\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Match only rows which satisfy the filter. This is an escape hatch - you\\nshould use the specific filter methods wherever possible.",
+ "text": "Unlike most filters, \`opearator\` and \`value\` are used as-is and need to\\nfollow [PostgREST\\nsyntax](https://postgrest.org/en/stable/api.html#operators). You also need\\nto make sure they are properly sanitized.\\n"
+ }
+ },
+ "@supabase/postgrest-js.PostgrestFilterBuilder.geojson": {
+ "name": "@supabase/postgrest-js.PostgrestFilterBuilder.geojson",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "record",
+ "name": "Record",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "unknown"
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Return \`data\` as an object in [GeoJSON](https://geojson.org) format."
+ }
+ },
+ "@supabase/postgrest-js.PostgrestFilterBuilder.gt": {
+ "name": "@supabase/postgrest-js.PostgrestFilterBuilder.gt",
+ "params": [
+ {
+ "name": "column",
+ "type": {
+ "type": "nameOnly",
+ "name": "ColumnName"
+ },
+ "comment": {
+ "shortText": "The column to filter on"
+ }
+ },
+ {
+ "name": "value",
+ "type": {
+ "type": "nameOnly",
+ "name": "Row[ColumnName]"
+ },
+ "comment": {
+ "shortText": "The value to filter with\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Match only rows where \`column\` is greater than \`value\`."
+ }
+ },
+ "@supabase/postgrest-js.PostgrestFilterBuilder.gte": {
+ "name": "@supabase/postgrest-js.PostgrestFilterBuilder.gte",
+ "params": [
+ {
+ "name": "column",
+ "type": {
+ "type": "nameOnly",
+ "name": "ColumnName"
+ },
+ "comment": {
+ "shortText": "The column to filter on"
+ }
+ },
+ {
+ "name": "value",
+ "type": {
+ "type": "nameOnly",
+ "name": "Row[ColumnName]"
+ },
+ "comment": {
+ "shortText": "The value to filter with\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Match only rows where \`column\` is greater than or equal to \`value\`."
+ }
+ },
+ "@supabase/postgrest-js.PostgrestFilterBuilder.ilike": {
+ "name": "@supabase/postgrest-js.PostgrestFilterBuilder.ilike",
+ "params": [
+ {
+ "name": "column",
+ "type": {
+ "type": "nameOnly",
+ "name": "ColumnName"
+ },
+ "comment": {
+ "shortText": "The column to filter on"
+ }
+ },
+ {
+ "name": "pattern",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The pattern to match with\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Match only rows where \`column\` matches \`pattern\` case-insensitively."
+ }
+ },
+ "@supabase/postgrest-js.PostgrestFilterBuilder.ilikeAllOf": {
+ "name": "@supabase/postgrest-js.PostgrestFilterBuilder.ilikeAllOf",
+ "params": [
+ {
+ "name": "column",
+ "type": {
+ "type": "nameOnly",
+ "name": "ColumnName"
+ },
+ "comment": {
+ "shortText": "The column to filter on"
+ }
+ },
+ {
+ "name": "patterns",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ "comment": {
+ "shortText": "The patterns to match with\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Match only rows where \`column\` matches all of \`patterns\` case-insensitively."
+ }
+ },
+ "@supabase/postgrest-js.PostgrestFilterBuilder.ilikeAnyOf": {
+ "name": "@supabase/postgrest-js.PostgrestFilterBuilder.ilikeAnyOf",
+ "params": [
+ {
+ "name": "column",
+ "type": {
+ "type": "nameOnly",
+ "name": "ColumnName"
+ },
+ "comment": {
+ "shortText": "The column to filter on"
+ }
+ },
+ {
+ "name": "patterns",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ "comment": {
+ "shortText": "The patterns to match with\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Match only rows where \`column\` matches any of \`patterns\` case-insensitively."
+ }
+ },
+ "@supabase/postgrest-js.PostgrestFilterBuilder.in": {
+ "name": "@supabase/postgrest-js.PostgrestFilterBuilder.in",
+ "params": [
+ {
+ "name": "column",
+ "type": {
+ "type": "nameOnly",
+ "name": "ColumnName"
+ },
+ "comment": {
+ "shortText": "The column to filter on"
+ }
+ },
+ {
+ "name": "values",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "nameOnly",
+ "name": "Row[ColumnName]"
+ }
+ },
+ "comment": {
+ "shortText": "The values array to filter with\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Match only rows where \`column\` is included in the \`values\` array."
+ }
+ },
+ "@supabase/postgrest-js.PostgrestFilterBuilder.is": {
+ "name": "@supabase/postgrest-js.PostgrestFilterBuilder.is",
+ "params": [
+ {
+ "name": "column",
+ "type": {
+ "type": "nameOnly",
+ "name": "ColumnName"
+ },
+ "comment": {
+ "shortText": "The column to filter on"
+ }
+ },
+ {
+ "name": "value",
+ "comment": {
+ "shortText": "The value to filter with\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Match only rows where \`column\` IS \`value\`.",
+ "text": "For non-boolean columns, this is only relevant for checking if the value of\\n\`column\` is NULL by setting \`value\` to \`null\`.\\n\\nFor boolean columns, you can also set \`value\` to \`true\` or \`false\` and it\\nwill behave the same way as \`.eq()\`.\\n"
+ }
+ },
+ "@supabase/postgrest-js.PostgrestFilterBuilder.like": {
+ "name": "@supabase/postgrest-js.PostgrestFilterBuilder.like",
+ "params": [
+ {
+ "name": "column",
+ "type": {
+ "type": "nameOnly",
+ "name": "ColumnName"
+ },
+ "comment": {
+ "shortText": "The column to filter on"
+ }
+ },
+ {
+ "name": "pattern",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The pattern to match with\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Match only rows where \`column\` matches \`pattern\` case-sensitively."
+ }
+ },
+ "@supabase/postgrest-js.PostgrestFilterBuilder.likeAllOf": {
+ "name": "@supabase/postgrest-js.PostgrestFilterBuilder.likeAllOf",
+ "params": [
+ {
+ "name": "column",
+ "type": {
+ "type": "nameOnly",
+ "name": "ColumnName"
+ },
+ "comment": {
+ "shortText": "The column to filter on"
+ }
+ },
+ {
+ "name": "patterns",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ "comment": {
+ "shortText": "The patterns to match with\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Match only rows where \`column\` matches all of \`patterns\` case-sensitively."
+ }
+ },
+ "@supabase/postgrest-js.PostgrestFilterBuilder.likeAnyOf": {
+ "name": "@supabase/postgrest-js.PostgrestFilterBuilder.likeAnyOf",
+ "params": [
+ {
+ "name": "column",
+ "type": {
+ "type": "nameOnly",
+ "name": "ColumnName"
+ },
+ "comment": {
+ "shortText": "The column to filter on"
+ }
+ },
+ {
+ "name": "patterns",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ "comment": {
+ "shortText": "The patterns to match with\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Match only rows where \`column\` matches any of \`patterns\` case-sensitively."
+ }
+ },
+ "@supabase/postgrest-js.PostgrestFilterBuilder.limit": {
+ "name": "@supabase/postgrest-js.PostgrestFilterBuilder.limit",
+ "params": [
+ {
+ "name": "count",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "comment": {
+ "shortText": "The maximum number of rows to return"
+ }
+ },
+ {
+ "name": "options",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "foreignTable",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Deprecated, use \`options.referencedTable\`\\ninstead\\n"
+ }
+ },
+ {
+ "name": "referencedTable",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Set this to limit rows of referenced\\ntables instead of the parent table"
+ }
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Named parameters"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Limit the query result by \`count\`."
+ }
+ },
+ "@supabase/postgrest-js.PostgrestFilterBuilder.lt": {
+ "name": "@supabase/postgrest-js.PostgrestFilterBuilder.lt",
+ "params": [
+ {
+ "name": "column",
+ "type": {
+ "type": "nameOnly",
+ "name": "ColumnName"
+ },
+ "comment": {
+ "shortText": "The column to filter on"
+ }
+ },
+ {
+ "name": "value",
+ "type": {
+ "type": "nameOnly",
+ "name": "Row[ColumnName]"
+ },
+ "comment": {
+ "shortText": "The value to filter with\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Match only rows where \`column\` is less than \`value\`."
+ }
+ },
+ "@supabase/postgrest-js.PostgrestFilterBuilder.lte": {
+ "name": "@supabase/postgrest-js.PostgrestFilterBuilder.lte",
+ "params": [
+ {
+ "name": "column",
+ "type": {
+ "type": "nameOnly",
+ "name": "ColumnName"
+ },
+ "comment": {
+ "shortText": "The column to filter on"
+ }
+ },
+ {
+ "name": "value",
+ "type": {
+ "type": "nameOnly",
+ "name": "Row[ColumnName]"
+ },
+ "comment": {
+ "shortText": "The value to filter with\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Match only rows where \`column\` is less than or equal to \`value\`."
+ }
+ },
+ "@supabase/postgrest-js.PostgrestFilterBuilder.match": {
+ "name": "@supabase/postgrest-js.PostgrestFilterBuilder.match",
+ "params": [
+ {
+ "name": "query",
+ "type": {
+ "type": "record",
+ "name": "Record",
+ "keyType": {
+ "type": "nameOnly",
+ "name": "ColumnName"
+ },
+ "valueType": {
+ "type": "nameOnly",
+ "name": "Row[ColumnName]"
+ }
+ },
+ "comment": {
+ "shortText": "The object to filter with, with column names as keys mapped\\nto their filter values\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Match only rows where each column in \`query\` keys is equal to its\\nassociated value. Shorthand for multiple \`.eq()\`s."
+ }
+ },
+ "@supabase/postgrest-js.PostgrestFilterBuilder.maybeSingle": {
+ "name": "@supabase/postgrest-js.PostgrestFilterBuilder.maybeSingle",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "nameOnly",
+ "name": "ResultOne"
+ }
+ ]
+ }
+ },
+ "comment": {
+ "shortText": "Return \`data\` as a single object instead of an array of objects.",
+ "text": "Query result must be zero or one row (e.g. using \`.limit(1)\`), otherwise\\nthis returns an error.\\n"
+ }
+ },
+ "@supabase/postgrest-js.PostgrestFilterBuilder.neq": {
+ "name": "@supabase/postgrest-js.PostgrestFilterBuilder.neq",
+ "params": [
+ {
+ "name": "column",
+ "type": {
+ "type": "nameOnly",
+ "name": "ColumnName"
+ },
+ "comment": {
+ "shortText": "The column to filter on"
+ }
+ },
+ {
+ "name": "value",
+ "type": {
+ "type": "nameOnly",
+ "name": "Row[ColumnName]"
+ },
+ "comment": {
+ "shortText": "The value to filter with\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Match only rows where \`column\` is not equal to \`value\`."
+ }
+ },
+ "@supabase/postgrest-js.PostgrestFilterBuilder.not": {
+ "name": "@supabase/postgrest-js.PostgrestFilterBuilder.not",
+ "params": [
+ {
+ "name": "column",
+ "type": {
+ "type": "nameOnly",
+ "name": "ColumnName"
+ },
+ "comment": {
+ "shortText": "The column to filter on"
+ }
+ },
+ {
+ "name": "operator",
+ "type": {
+ "type": "nameOnly",
+ "name": "FilterOperator"
+ },
+ "comment": {
+ "shortText": "The operator to be negated to filter with, following\\nPostgREST syntax"
+ }
+ },
+ {
+ "name": "value",
+ "type": {
+ "type": "nameOnly",
+ "name": "Row[ColumnName]"
+ },
+ "comment": {
+ "shortText": "The value to filter with, following PostgREST syntax\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Match only rows which doesn't satisfy the filter.",
+ "text": "Unlike most filters, \`opearator\` and \`value\` are used as-is and need to\\nfollow [PostgREST\\nsyntax](https://postgrest.org/en/stable/api.html#operators). You also need\\nto make sure they are properly sanitized.\\n"
+ }
+ },
+ "@supabase/postgrest-js.PostgrestFilterBuilder.or": {
+ "name": "@supabase/postgrest-js.PostgrestFilterBuilder.or",
+ "params": [
+ {
+ "name": "filters",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The filters to use, following PostgREST syntax"
+ }
+ },
+ {
+ "name": "options",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "foreignTable",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Deprecated, use \`referencedTable\` instead\\n"
+ }
+ },
+ {
+ "name": "referencedTable",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Set this to filter on referenced tables\\ninstead of the parent table"
+ }
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Named parameters"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Match only rows which satisfy at least one of the filters.",
+ "text": "Unlike most filters, \`filters\` is used as-is and needs to follow [PostgREST\\nsyntax](https://postgrest.org/en/stable/api.html#operators). You also need\\nto make sure it's properly sanitized.\\n\\nIt's currently not possible to do an \`.or()\` filter across multiple tables.\\n"
+ }
+ },
+ "@supabase/postgrest-js.PostgrestFilterBuilder.order": {
+ "name": "@supabase/postgrest-js.PostgrestFilterBuilder.order",
+ "params": [
+ {
+ "name": "column",
+ "type": {
+ "type": "nameOnly",
+ "name": "ColumnName"
+ },
+ "comment": {
+ "shortText": "The column to order by"
+ }
+ },
+ {
+ "name": "options",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "ascending",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "If \`true\`, the result will be in ascending order"
+ }
+ },
+ {
+ "name": "nullsFirst",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "If \`true\`, \`null\`s appear first. If \`false\`,\\n\`null\`s appear last."
+ }
+ },
+ {
+ "name": "referencedTable",
+ "type": {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Set this to order a referenced table by\\nits columns"
+ }
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Named parameters"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Order the query result by \`column\`.",
+ "text": "You can call this method multiple times to order by multiple columns.\\n\\nYou can order referenced tables, but it only affects the ordering of the\\nparent table if you use \`!inner\` in the query.\\n"
+ }
+ },
+ "@supabase/postgrest-js.PostgrestFilterBuilder.overlaps": {
+ "name": "@supabase/postgrest-js.PostgrestFilterBuilder.overlaps",
+ "params": [
+ {
+ "name": "column",
+ "type": {
+ "type": "nameOnly",
+ "name": "ColumnName"
+ },
+ "comment": {
+ "shortText": "The array or range column to filter on"
+ }
+ },
+ {
+ "name": "value",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "array",
+ "elemType": {
+ "type": "nameOnly",
+ "name": "Row[ColumnName]"
+ }
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "The array or range value to filter with\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Only relevant for array and range columns. Match only rows where\\n\`column\` and \`value\` have an element in common."
+ }
+ },
+ "@supabase/postgrest-js.PostgrestFilterBuilder.range": {
+ "name": "@supabase/postgrest-js.PostgrestFilterBuilder.range",
+ "params": [
+ {
+ "name": "from",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "comment": {
+ "shortText": "The starting index from which to limit the result"
+ }
+ },
+ {
+ "name": "to",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "comment": {
+ "shortText": "The last index to which to limit the result"
+ }
+ },
+ {
+ "name": "options",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "foreignTable",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Deprecated, use \`options.referencedTable\`\\ninstead\\n"
+ }
+ },
+ {
+ "name": "referencedTable",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Set this to limit rows of referenced\\ntables instead of the parent table"
+ }
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Named parameters"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Limit the query result by starting at an offset (\`from\`) and ending at the offset (\`from + to\`).\\nOnly records within this range are returned.\\nThis respects the query order and if there is no order clause the range could behave unexpectedly.\\nThe \`from\` and \`to\` values are 0-based and inclusive: \`range(1, 3)\` will include the second, third\\nand fourth rows of the query."
+ }
+ },
+ "@supabase/postgrest-js.PostgrestFilterBuilder.rangeAdjacent": {
+ "name": "@supabase/postgrest-js.PostgrestFilterBuilder.rangeAdjacent",
+ "params": [
+ {
+ "name": "column",
+ "type": {
+ "type": "nameOnly",
+ "name": "ColumnName"
+ },
+ "comment": {
+ "shortText": "The range column to filter on"
+ }
+ },
+ {
+ "name": "range",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The range to filter with\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Only relevant for range columns. Match only rows where \`column\` is\\nmutually exclusive to \`range\` and there can be no element between the two\\nranges."
+ }
+ },
+ "@supabase/postgrest-js.PostgrestFilterBuilder.rangeGt": {
+ "name": "@supabase/postgrest-js.PostgrestFilterBuilder.rangeGt",
+ "params": [
+ {
+ "name": "column",
+ "type": {
+ "type": "nameOnly",
+ "name": "ColumnName"
+ },
+ "comment": {
+ "shortText": "The range column to filter on"
+ }
+ },
+ {
+ "name": "range",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The range to filter with\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Only relevant for range columns. Match only rows where every element in\\n\`column\` is greater than any element in \`range\`."
+ }
+ },
+ "@supabase/postgrest-js.PostgrestFilterBuilder.rangeGte": {
+ "name": "@supabase/postgrest-js.PostgrestFilterBuilder.rangeGte",
+ "params": [
+ {
+ "name": "column",
+ "type": {
+ "type": "nameOnly",
+ "name": "ColumnName"
+ },
+ "comment": {
+ "shortText": "The range column to filter on"
+ }
+ },
+ {
+ "name": "range",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The range to filter with\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Only relevant for range columns. Match only rows where every element in\\n\`column\` is either contained in \`range\` or greater than any element in\\n\`range\`."
+ }
+ },
+ "@supabase/postgrest-js.PostgrestFilterBuilder.rangeLt": {
+ "name": "@supabase/postgrest-js.PostgrestFilterBuilder.rangeLt",
+ "params": [
+ {
+ "name": "column",
+ "type": {
+ "type": "nameOnly",
+ "name": "ColumnName"
+ },
+ "comment": {
+ "shortText": "The range column to filter on"
+ }
+ },
+ {
+ "name": "range",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The range to filter with\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Only relevant for range columns. Match only rows where every element in\\n\`column\` is less than any element in \`range\`."
+ }
+ },
+ "@supabase/postgrest-js.PostgrestFilterBuilder.rangeLte": {
+ "name": "@supabase/postgrest-js.PostgrestFilterBuilder.rangeLte",
+ "params": [
+ {
+ "name": "column",
+ "type": {
+ "type": "nameOnly",
+ "name": "ColumnName"
+ },
+ "comment": {
+ "shortText": "The range column to filter on"
+ }
+ },
+ {
+ "name": "range",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The range to filter with\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Only relevant for range columns. Match only rows where every element in\\n\`column\` is either contained in \`range\` or less than any element in\\n\`range\`."
+ }
+ },
+ "@supabase/postgrest-js.PostgrestFilterBuilder.returns": {
+ "name": "@supabase/postgrest-js.PostgrestFilterBuilder.returns",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Override the type of the returned \`data\`."
+ }
+ },
+ "@supabase/postgrest-js.PostgrestFilterBuilder.rollback": {
+ "name": "@supabase/postgrest-js.PostgrestFilterBuilder.rollback",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Rollback the query.",
+ "text": "\`data\` will still be returned, but the query is not committed.\\n"
+ }
+ },
+ "@supabase/postgrest-js.PostgrestFilterBuilder.select": {
+ "name": "@supabase/postgrest-js.PostgrestFilterBuilder.select",
+ "params": [
+ {
+ "name": "columns",
+ "type": {
+ "type": "nameOnly",
+ "name": "Query"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The columns to retrieve, separated by commas\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Perform a SELECT on the query result.",
+ "text": "By default, \`.insert()\`, \`.update()\`, \`.upsert()\`, and \`.delete()\` do not\\nreturn modified rows. By calling this method, modified rows are returned in\\n\`data\`.\\n"
+ }
+ },
+ "@supabase/postgrest-js.PostgrestFilterBuilder.single": {
+ "name": "@supabase/postgrest-js.PostgrestFilterBuilder.single",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "ResultOne"
+ }
+ },
+ "comment": {
+ "shortText": "Return \`data\` as a single object instead of an array of objects.",
+ "text": "Query result must be one row (e.g. using \`.limit(1)\`), otherwise this\\nreturns an error.\\n"
+ }
+ },
+ "@supabase/postgrest-js.PostgrestFilterBuilder.textSearch": {
+ "name": "@supabase/postgrest-js.PostgrestFilterBuilder.textSearch",
+ "params": [
+ {
+ "name": "column",
+ "type": {
+ "type": "nameOnly",
+ "name": "ColumnName"
+ },
+ "comment": {
+ "shortText": "The text or tsvector column to filter on"
+ }
+ },
+ {
+ "name": "query",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The query text to match with"
+ }
+ },
+ {
+ "name": "options",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "config",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The text search configuration to use"
+ }
+ },
+ {
+ "name": "type",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "plain"
+ },
+ {
+ "type": "literal",
+ "value": "phrase"
+ },
+ {
+ "type": "literal",
+ "value": "websearch"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Change how the \`query\` text is interpreted\\n"
+ }
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Named parameters"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Only relevant for text and tsvector columns. Match only rows where\\n\`column\` matches the query string in \`query\`."
+ }
+ },
+ "@supabase/postgrest-js.PostgrestFilterBuilder.then": {
+ "name": "@supabase/postgrest-js.PostgrestFilterBuilder.then",
+ "params": [
+ {
+ "name": "onfulfilled",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "function",
+ "params": [
+ {
+ "name": "value",
+ "type": {
+ "type": "customUnion",
+ "name": "PostgrestSingleResponse",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "name": "PostgrestResponseSuccess",
+ "properties": [
+ {
+ "name": "count",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ ]
+ }
+ },
+ {
+ "name": "data",
+ "type": {
+ "type": "nameOnly",
+ "name": "T"
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "name": "statusText",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "name": "PostgrestResponseFailure",
+ "properties": [
+ {
+ "name": "count",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "data",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "name": "PostgrestError",
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "code",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "details",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "hint",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "message",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "name": "statusText",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "nameOnly",
+ "name": "TResult1"
+ },
+ {
+ "type": "nameOnly",
+ "name": "PromiseLike"
+ }
+ ]
+ }
+ }
+ }
+ ]
+ },
+ "isOptional": true
+ },
+ {
+ "name": "onrejected",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "function",
+ "params": [
+ {
+ "name": "reason",
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "nameOnly",
+ "name": "TResult2"
+ },
+ {
+ "type": "nameOnly",
+ "name": "PromiseLike"
+ }
+ ]
+ }
+ }
+ }
+ ]
+ },
+ "isOptional": true
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "PromiseLike"
+ }
+ }
+ },
+ "@supabase/postgrest-js.PostgrestFilterBuilder.throwOnError": {
+ "name": "@supabase/postgrest-js.PostgrestFilterBuilder.throwOnError",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "If there's an error with the query, throwOnError will reject the promise by\\nthrowing the error instead of returning it as part of a successful response.",
+ "text": "{@link https://github.com/supabase/supabase-js/issues/92}\\n"
+ }
+ },
+ "@supabase/postgrest-js.PostgrestQueryBuilder.constructor": {
+ "name": "@supabase/postgrest-js.PostgrestQueryBuilder.constructor",
+ "params": [
+ {
+ "name": "url",
+ "type": {
+ "type": "nameOnly",
+ "name": "URL"
+ }
+ },
+ {
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "fetch",
+ "type": {
+ "type": "function",
+ "params": [
+ {
+ "name": "input",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "nameOnly",
+ "name": "RequestInfo"
+ },
+ {
+ "type": "nameOnly",
+ "name": "URL"
+ }
+ ]
+ }
+ },
+ {
+ "name": "init",
+ "type": {
+ "type": "nameOnly",
+ "name": "RequestInit"
+ },
+ "isOptional": true
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "nameOnly",
+ "name": "Response"
+ }
+ }
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "headers",
+ "type": {
+ "type": "record",
+ "name": "Record",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "schema",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ }
+ ]
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ }
+ },
+ "@supabase/postgrest-js.PostgrestQueryBuilder.delete": {
+ "name": "@supabase/postgrest-js.PostgrestQueryBuilder.delete",
+ "params": [
+ {
+ "name": "options",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "count",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "exact"
+ },
+ {
+ "type": "literal",
+ "value": "planned"
+ },
+ {
+ "type": "literal",
+ "value": "estimated"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Count algorithm to use to count deleted rows.\\n\\n\`\\"exact\\"\`: Exact but slow count algorithm. Performs a \`COUNT(*)\` under the\\nhood.\\n\\n\`\\"planned\\"\`: Approximated but fast count algorithm. Uses the Postgres\\nstatistics under the hood.\\n\\n\`\\"estimated\\"\`: Uses exact count for low numbers and planned count for high\\nnumbers.\\n"
+ }
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Named parameters\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Perform a DELETE on the table or view.",
+ "text": "By default, deleted rows are not returned. To return it, chain the call\\nwith \`.select()\` after filters.\\n"
+ }
+ },
+ "@supabase/postgrest-js.PostgrestQueryBuilder.insert": {
+ "name": "@supabase/postgrest-js.PostgrestQueryBuilder.insert",
+ "params": [
+ {
+ "name": "values",
+ "type": {
+ "type": "nameOnly",
+ "name": "Row"
+ },
+ "comment": {
+ "shortText": "The values to insert. Pass an object to insert a single row\\nor an array to insert multiple rows.\\n"
+ }
+ },
+ {
+ "name": "options",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "count",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "exact"
+ },
+ {
+ "type": "literal",
+ "value": "planned"
+ },
+ {
+ "type": "literal",
+ "value": "estimated"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Count algorithm to use to count inserted rows.\\n\\n\`\\"exact\\"\`: Exact but slow count algorithm. Performs a \`COUNT(*)\` under the\\nhood.\\n\\n\`\\"planned\\"\`: Approximated but fast count algorithm. Uses the Postgres\\nstatistics under the hood.\\n\\n\`\\"estimated\\"\`: Uses exact count for low numbers and planned count for high\\nnumbers.\\n"
+ }
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Named parameters\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Perform an INSERT into the table or view.",
+ "text": "By default, inserted rows are not returned. To return it, chain the call\\nwith \`.select()\`.\\n"
+ }
+ },
+ "@supabase/postgrest-js.PostgrestQueryBuilder.select": {
+ "name": "@supabase/postgrest-js.PostgrestQueryBuilder.select",
+ "params": [
+ {
+ "name": "columns",
+ "type": {
+ "type": "nameOnly",
+ "name": "Query"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The columns to retrieve, separated by commas. Columns can be renamed when returned with \`customName:columnName\`\\n"
+ }
+ },
+ {
+ "name": "options",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "count",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "exact"
+ },
+ {
+ "type": "literal",
+ "value": "planned"
+ },
+ {
+ "type": "literal",
+ "value": "estimated"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Count algorithm to use to count rows in the table or view.\\n\\n\`\\"exact\\"\`: Exact but slow count algorithm. Performs a \`COUNT(*)\` under the\\nhood.\\n\\n\`\\"planned\\"\`: Approximated but fast count algorithm. Uses the Postgres\\nstatistics under the hood.\\n\\n\`\\"estimated\\"\`: Uses exact count for low numbers and planned count for high\\nnumbers.\\n"
+ }
+ },
+ {
+ "name": "head",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "When set to \`true\`, \`data\` will not be returned.\\nUseful if you only need the count.\\n"
+ }
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Named parameters\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Perform a SELECT query on the table or view."
+ }
+ },
+ "@supabase/postgrest-js.PostgrestQueryBuilder.update": {
+ "name": "@supabase/postgrest-js.PostgrestQueryBuilder.update",
+ "params": [
+ {
+ "name": "values",
+ "type": {
+ "type": "nameOnly",
+ "name": "Row"
+ },
+ "comment": {
+ "shortText": "The values to update with\\n"
+ }
+ },
+ {
+ "name": "options",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "count",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "exact"
+ },
+ {
+ "type": "literal",
+ "value": "planned"
+ },
+ {
+ "type": "literal",
+ "value": "estimated"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Count algorithm to use to count updated rows.\\n\\n\`\\"exact\\"\`: Exact but slow count algorithm. Performs a \`COUNT(*)\` under the\\nhood.\\n\\n\`\\"planned\\"\`: Approximated but fast count algorithm. Uses the Postgres\\nstatistics under the hood.\\n\\n\`\\"estimated\\"\`: Uses exact count for low numbers and planned count for high\\nnumbers.\\n"
+ }
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Named parameters\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Perform an UPDATE on the table or view.",
+ "text": "By default, updated rows are not returned. To return it, chain the call\\nwith \`.select()\` after filters.\\n"
+ }
+ },
+ "@supabase/postgrest-js.PostgrestQueryBuilder.upsert": {
+ "name": "@supabase/postgrest-js.PostgrestQueryBuilder.upsert",
+ "params": [
+ {
+ "name": "values",
+ "type": {
+ "type": "nameOnly",
+ "name": "Row"
+ },
+ "comment": {
+ "shortText": "The values to upsert with. Pass an object to upsert a\\nsingle row or an array to upsert multiple rows.\\n"
+ }
+ },
+ {
+ "name": "options",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "count",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "exact"
+ },
+ {
+ "type": "literal",
+ "value": "planned"
+ },
+ {
+ "type": "literal",
+ "value": "estimated"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Count algorithm to use to count upserted rows.\\n\\n\`\\"exact\\"\`: Exact but slow count algorithm. Performs a \`COUNT(*)\` under the\\nhood.\\n\\n\`\\"planned\\"\`: Approximated but fast count algorithm. Uses the Postgres\\nstatistics under the hood.\\n\\n\`\\"estimated\\"\`: Uses exact count for low numbers and planned count for high\\nnumbers.\\n"
+ }
+ },
+ {
+ "name": "ignoreDuplicates",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "If \`true\`, duplicate rows are ignored. If\\n\`false\`, duplicate rows are merged with existing rows.\\n"
+ }
+ },
+ {
+ "name": "onConflict",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Comma-separated UNIQUE column(s) to specify how\\nduplicate rows are determined. Two rows are duplicates if all the\\n\`onConflict\` columns are equal.\\n"
+ }
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Named parameters\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Perform an UPSERT on the table or view. Depending on the column(s) passed\\nto \`onConflict\`, \`.upsert()\` allows you to perform the equivalent of\\n\`.insert()\` if a row with the corresponding \`onConflict\` columns doesn't\\nexist, or if it does exist, perform an alternative action depending on\\n\`ignoreDuplicates\`.",
+ "text": "By default, upserted rows are not returned. To return it, chain the call\\nwith \`.select()\`.\\n"
+ }
+ },
+ "@supabase/postgrest-js.PostgrestTransformBuilder.constructor": {
+ "name": "@supabase/postgrest-js.PostgrestTransformBuilder.constructor",
+ "params": [
+ {
+ "name": "builder"
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ }
+ },
+ "@supabase/postgrest-js.PostgrestTransformBuilder.abortSignal": {
+ "name": "@supabase/postgrest-js.PostgrestTransformBuilder.abortSignal",
+ "params": [
+ {
+ "name": "signal",
+ "type": {
+ "type": "nameOnly",
+ "name": "AbortSignal"
+ },
+ "comment": {
+ "shortText": "The AbortSignal to use for the fetch request\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Set the AbortSignal for the fetch request."
+ }
+ },
+ "@supabase/postgrest-js.PostgrestTransformBuilder.csv": {
+ "name": "@supabase/postgrest-js.PostgrestTransformBuilder.csv",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ "comment": {
+ "shortText": "Return \`data\` as a string in CSV format."
+ }
+ },
+ "@supabase/postgrest-js.PostgrestTransformBuilder.explain": {
+ "name": "@supabase/postgrest-js.PostgrestTransformBuilder.explain",
+ "params": [
+ {
+ "name": "options",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "analyze",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "If \`true\`, the query will be executed and the\\nactual run time will be returned\\n"
+ }
+ },
+ {
+ "name": "buffers",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "If \`true\`, include information on buffer usage\\n"
+ }
+ },
+ {
+ "name": "format",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "text"
+ },
+ {
+ "type": "literal",
+ "value": "json"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The format of the output, can be \`\\"text\\"\` (default)\\nor \`\\"json\\"\`\\n"
+ }
+ },
+ {
+ "name": "settings",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "If \`true\`, include information on configuration\\nparameters that affect query planning\\n"
+ }
+ },
+ {
+ "name": "verbose",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "If \`true\`, the query identifier will be returned\\nand \`data\` will include the output columns of the query\\n"
+ }
+ },
+ {
+ "name": "wal",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "If \`true\`, include information on WAL record generation\\n"
+ }
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Named parameters\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "array",
+ "elemType": {
+ "type": "record",
+ "name": "Record",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "unknown"
+ }
+ }
+ }
+ ]
+ }
+ },
+ "comment": {
+ "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"
+ }
+ },
+ "@supabase/postgrest-js.PostgrestTransformBuilder.geojson": {
+ "name": "@supabase/postgrest-js.PostgrestTransformBuilder.geojson",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "record",
+ "name": "Record",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "unknown"
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Return \`data\` as an object in [GeoJSON](https://geojson.org) format."
+ }
+ },
+ "@supabase/postgrest-js.PostgrestTransformBuilder.limit": {
+ "name": "@supabase/postgrest-js.PostgrestTransformBuilder.limit",
+ "params": [
+ {
+ "name": "count",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "comment": {
+ "shortText": "The maximum number of rows to return"
+ }
+ },
+ {
+ "name": "options",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "foreignTable",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Deprecated, use \`options.referencedTable\`\\ninstead\\n"
+ }
+ },
+ {
+ "name": "referencedTable",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Set this to limit rows of referenced\\ntables instead of the parent table"
+ }
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Named parameters"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Limit the query result by \`count\`."
+ }
+ },
+ "@supabase/postgrest-js.PostgrestTransformBuilder.maybeSingle": {
+ "name": "@supabase/postgrest-js.PostgrestTransformBuilder.maybeSingle",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "nameOnly",
+ "name": "ResultOne"
+ }
+ ]
+ }
+ },
+ "comment": {
+ "shortText": "Return \`data\` as a single object instead of an array of objects.",
+ "text": "Query result must be zero or one row (e.g. using \`.limit(1)\`), otherwise\\nthis returns an error.\\n"
+ }
+ },
+ "@supabase/postgrest-js.PostgrestTransformBuilder.order": {
+ "name": "@supabase/postgrest-js.PostgrestTransformBuilder.order",
+ "params": [
+ {
+ "name": "column",
+ "type": {
+ "type": "nameOnly",
+ "name": "ColumnName"
+ },
+ "comment": {
+ "shortText": "The column to order by"
+ }
+ },
+ {
+ "name": "options",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "ascending",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "If \`true\`, the result will be in ascending order"
+ }
+ },
+ {
+ "name": "nullsFirst",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "If \`true\`, \`null\`s appear first. If \`false\`,\\n\`null\`s appear last."
+ }
+ },
+ {
+ "name": "referencedTable",
+ "type": {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Set this to order a referenced table by\\nits columns"
+ }
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Named parameters"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Order the query result by \`column\`.",
+ "text": "You can call this method multiple times to order by multiple columns.\\n\\nYou can order referenced tables, but it only affects the ordering of the\\nparent table if you use \`!inner\` in the query.\\n"
+ }
+ },
+ "@supabase/postgrest-js.PostgrestTransformBuilder.range": {
+ "name": "@supabase/postgrest-js.PostgrestTransformBuilder.range",
+ "params": [
+ {
+ "name": "from",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "comment": {
+ "shortText": "The starting index from which to limit the result"
+ }
+ },
+ {
+ "name": "to",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "comment": {
+ "shortText": "The last index to which to limit the result"
+ }
+ },
+ {
+ "name": "options",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "foreignTable",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Deprecated, use \`options.referencedTable\`\\ninstead\\n"
+ }
+ },
+ {
+ "name": "referencedTable",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Set this to limit rows of referenced\\ntables instead of the parent table"
+ }
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Named parameters"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Limit the query result by starting at an offset (\`from\`) and ending at the offset (\`from + to\`).\\nOnly records within this range are returned.\\nThis respects the query order and if there is no order clause the range could behave unexpectedly.\\nThe \`from\` and \`to\` values are 0-based and inclusive: \`range(1, 3)\` will include the second, third\\nand fourth rows of the query."
+ }
+ },
+ "@supabase/postgrest-js.PostgrestTransformBuilder.returns": {
+ "name": "@supabase/postgrest-js.PostgrestTransformBuilder.returns",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Override the type of the returned \`data\`."
+ }
+ },
+ "@supabase/postgrest-js.PostgrestTransformBuilder.rollback": {
+ "name": "@supabase/postgrest-js.PostgrestTransformBuilder.rollback",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Rollback the query.",
+ "text": "\`data\` will still be returned, but the query is not committed.\\n"
+ }
+ },
+ "@supabase/postgrest-js.PostgrestTransformBuilder.select": {
+ "name": "@supabase/postgrest-js.PostgrestTransformBuilder.select",
+ "params": [
+ {
+ "name": "columns",
+ "type": {
+ "type": "nameOnly",
+ "name": "Query"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The columns to retrieve, separated by commas\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "Perform a SELECT on the query result.",
+ "text": "By default, \`.insert()\`, \`.update()\`, \`.upsert()\`, and \`.delete()\` do not\\nreturn modified rows. By calling this method, modified rows are returned in\\n\`data\`.\\n"
+ }
+ },
+ "@supabase/postgrest-js.PostgrestTransformBuilder.single": {
+ "name": "@supabase/postgrest-js.PostgrestTransformBuilder.single",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "ResultOne"
+ }
+ },
+ "comment": {
+ "shortText": "Return \`data\` as a single object instead of an array of objects.",
+ "text": "Query result must be one row (e.g. using \`.limit(1)\`), otherwise this\\nreturns an error.\\n"
+ }
+ },
+ "@supabase/postgrest-js.PostgrestTransformBuilder.then": {
+ "name": "@supabase/postgrest-js.PostgrestTransformBuilder.then",
+ "params": [
+ {
+ "name": "onfulfilled",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "function",
+ "params": [
+ {
+ "name": "value",
+ "type": {
+ "type": "customUnion",
+ "name": "PostgrestSingleResponse",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "name": "PostgrestResponseSuccess",
+ "properties": [
+ {
+ "name": "count",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ ]
+ }
+ },
+ {
+ "name": "data",
+ "type": {
+ "type": "nameOnly",
+ "name": "T"
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "name": "statusText",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "name": "PostgrestResponseFailure",
+ "properties": [
+ {
+ "name": "count",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "data",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "name": "PostgrestError",
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "code",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "details",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "hint",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "message",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "name": "statusText",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "nameOnly",
+ "name": "TResult1"
+ },
+ {
+ "type": "nameOnly",
+ "name": "PromiseLike"
+ }
+ ]
+ }
+ }
+ }
+ ]
+ },
+ "isOptional": true
+ },
+ {
+ "name": "onrejected",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "function",
+ "params": [
+ {
+ "name": "reason",
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "nameOnly",
+ "name": "TResult2"
+ },
+ {
+ "type": "nameOnly",
+ "name": "PromiseLike"
+ }
+ ]
+ }
+ }
+ }
+ ]
+ },
+ "isOptional": true
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "PromiseLike"
+ }
+ }
+ },
+ "@supabase/postgrest-js.PostgrestTransformBuilder.throwOnError": {
+ "name": "@supabase/postgrest-js.PostgrestTransformBuilder.throwOnError",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "Schema"
+ }
+ },
+ "comment": {
+ "shortText": "If there's an error with the query, throwOnError will reject the promise by\\nthrowing the error instead of returning it as part of a successful response.",
+ "text": "{@link https://github.com/supabase/supabase-js/issues/92}\\n"
+ }
+ }
+ }
+ },
+ {
+ "name": "@supabase/realtime-js",
+ "methods": {
+ "@supabase/realtime-js.RealtimeChannel.constructor": {
+ "name": "@supabase/realtime-js.RealtimeChannel.constructor",
+ "params": [
+ {
+ "name": "topic",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "params",
+ "type": {
+ "name": "RealtimeChannelOptions",
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "config",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "broadcast",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "ack",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "self",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "isOptional": true
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "self option enables client to receive message it broadcast\\nack option instructs server to acknowledge that broadcast message was received"
+ }
+ },
+ {
+ "name": "presence",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "key",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "key option is used to track presence payload across clients"
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "socket"
+ }
+ ]
+ },
+ "@supabase/realtime-js.RealtimeChannel._fetchWithTimeout": {
+ "name": "@supabase/realtime-js.RealtimeChannel._fetchWithTimeout",
+ "params": [
+ {
+ "name": "url",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "options",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ },
+ {
+ "name": "timeout",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "nameOnly",
+ "name": "Response"
+ }
+ }
+ }
+ },
+ "@supabase/realtime-js.RealtimeChannel.on": {
+ "name": "@supabase/realtime-js.RealtimeChannel.on",
+ "params": [
+ {
+ "name": "type",
+ "type": {
+ "type": "literal",
+ "value": "presence"
+ }
+ },
+ {
+ "name": "filter",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "event",
+ "type": {
+ "type": "literal",
+ "value": "sync"
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "callback",
+ "type": {
+ "type": "function",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ }
+ }
+ ],
+ "comment": {
+ "shortText": "Creates an event handler that listens to changes."
+ }
+ },
+ "@supabase/realtime-js.RealtimeChannel.presenceState": {
+ "name": "@supabase/realtime-js.RealtimeChannel.presenceState",
+ "params": [],
+ "ret": {
+ "type": {
+ "name": "RealtimePresenceState",
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "array",
+ "elemType": {
+ "type": "nameOnly",
+ "name": "Presence"
+ }
+ }
+ }
+ }
+ },
+ "@supabase/realtime-js.RealtimeChannel.send": {
+ "name": "@supabase/realtime-js.RealtimeChannel.send",
+ "params": [
+ {
+ "name": "args",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "event",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The name of the event being sent"
+ }
+ },
+ {
+ "name": "payload",
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Payload to be sent"
+ }
+ },
+ {
+ "name": "type",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "presence"
+ },
+ {
+ "type": "literal",
+ "value": "broadcast"
+ },
+ {
+ "type": "literal",
+ "value": "postgres_changes"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "The type of event to send"
+ }
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Arguments to send to channel"
+ }
+ },
+ {
+ "name": "opts",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ "comment": {
+ "shortText": "Options to be used during the send process\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "name": "RealtimeChannelSendResponse",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "ok"
+ },
+ {
+ "type": "literal",
+ "value": "timed out"
+ },
+ {
+ "type": "literal",
+ "value": "error"
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Sends a message into the channel."
+ }
+ },
+ "@supabase/realtime-js.RealtimeChannel.subscribe": {
+ "name": "@supabase/realtime-js.RealtimeChannel.subscribe",
+ "params": [
+ {
+ "name": "callback",
+ "type": {
+ "type": "function",
+ "params": [
+ {
+ "name": "status",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "SUBSCRIBED"
+ },
+ {
+ "type": "literal",
+ "value": "TIMED_OUT"
+ },
+ {
+ "type": "literal",
+ "value": "CLOSED"
+ },
+ {
+ "type": "literal",
+ "value": "CHANNEL_ERROR"
+ }
+ ]
+ }
+ },
+ {
+ "name": "err",
+ "type": {
+ "type": "nameOnly",
+ "name": "Error"
+ },
+ "isOptional": true
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "timeout",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ }
+ ],
+ "comment": {
+ "shortText": "Subscribe registers your client with the server"
+ }
+ },
+ "@supabase/realtime-js.RealtimeChannel.track": {
+ "name": "@supabase/realtime-js.RealtimeChannel.track",
+ "params": [
+ {
+ "name": "payload",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ },
+ {
+ "name": "opts",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "name": "RealtimeChannelSendResponse",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "ok"
+ },
+ {
+ "type": "literal",
+ "value": "timed out"
+ },
+ {
+ "type": "literal",
+ "value": "error"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "@supabase/realtime-js.RealtimeChannel.unsubscribe": {
+ "name": "@supabase/realtime-js.RealtimeChannel.unsubscribe",
+ "params": [
+ {
+ "name": "timeout",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "error"
+ },
+ {
+ "type": "literal",
+ "value": "ok"
+ },
+ {
+ "type": "literal",
+ "value": "timed out"
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Leaves the channel.",
+ "text": "Unsubscribes from server events, and instructs channel to terminate on server.\\nTriggers onClose() hooks.\\n\\nTo receive leave acknowledgements, use the a \`receive\` hook to bind to the server ack, ie:\\nchannel.unsubscribe().receive(\\"ok\\", () => alert(\\"left!\\") )\\n"
+ }
+ },
+ "@supabase/realtime-js.RealtimeChannel.untrack": {
+ "name": "@supabase/realtime-js.RealtimeChannel.untrack",
+ "params": [
+ {
+ "name": "opts",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "name": "RealtimeChannelSendResponse",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "ok"
+ },
+ {
+ "type": "literal",
+ "value": "timed out"
+ },
+ {
+ "type": "literal",
+ "value": "error"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "@supabase/realtime-js.RealtimeChannel.updateJoinPayload": {
+ "name": "@supabase/realtime-js.RealtimeChannel.updateJoinPayload",
+ "params": [
+ {
+ "name": "payload",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ },
+ "@supabase/realtime-js.RealtimeClient.constructor": {
+ "name": "@supabase/realtime-js.RealtimeClient.constructor",
+ "params": [
+ {
+ "name": "endPoint",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The string WebSocket endpoint, ie, \\"ws://example.com/socket\\", \\"wss://example.com\\", \\"/socket\\" (inherited host & protocol)"
+ }
+ },
+ {
+ "name": "options",
+ "type": {
+ "name": "RealtimeClientOptions",
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "decode",
+ "type": {
+ "type": "nameOnly",
+ "name": "Function"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "encode",
+ "type": {
+ "type": "nameOnly",
+ "name": "Function"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "fetch",
+ "type": {
+ "type": "nameOnly",
+ "name": "Fetch"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "headers",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "heartbeatIntervalMs",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "log_level",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "info"
+ },
+ {
+ "type": "literal",
+ "value": "debug"
+ },
+ {
+ "type": "literal",
+ "value": "warn"
+ },
+ {
+ "type": "literal",
+ "value": "error"
+ }
+ ]
+ },
+ "isOptional": true
+ },
+ {
+ "name": "logger",
+ "type": {
+ "type": "nameOnly",
+ "name": "Function"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "params",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "reconnectAfterMs",
+ "type": {
+ "type": "nameOnly",
+ "name": "Function"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "timeout",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "transport",
+ "type": {
+ "type": "nameOnly",
+ "name": "WebSocketLikeConstructor"
+ },
+ "isOptional": true
+ }
+ ]
+ },
+ "isOptional": true
+ }
+ ],
+ "comment": {
+ "shortText": "Initializes the Socket."
+ }
+ },
+ "@supabase/realtime-js.RealtimeClient.channel": {
+ "name": "@supabase/realtime-js.RealtimeClient.channel",
+ "params": [
+ {
+ "name": "topic",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "params",
+ "type": {
+ "name": "RealtimeChannelOptions",
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "config",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "broadcast",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "ack",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "self",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "isOptional": true
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "self option enables client to receive message it broadcast\\nack option instructs server to acknowledge that broadcast message was received"
+ }
+ },
+ {
+ "name": "presence",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "key",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "key option is used to track presence payload across clients"
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+ },
+ "@supabase/realtime-js.RealtimeClient.connect": {
+ "name": "@supabase/realtime-js.RealtimeClient.connect",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ },
+ "comment": {
+ "shortText": "Connects the socket, unless already connected."
+ }
+ },
+ "@supabase/realtime-js.RealtimeClient.connectionState": {
+ "name": "@supabase/realtime-js.RealtimeClient.connectionState",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "CONNECTION_STATE"
+ }
+ },
+ "comment": {
+ "shortText": "Returns the current state of the socket."
+ }
+ },
+ "@supabase/realtime-js.RealtimeClient.disconnect": {
+ "name": "@supabase/realtime-js.RealtimeClient.disconnect",
+ "params": [
+ {
+ "name": "code",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "A numeric status code to send on disconnect."
+ }
+ },
+ {
+ "name": "reason",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "A custom reason for the disconnect.\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ },
+ "comment": {
+ "shortText": "Disconnects the socket."
+ }
+ },
+ "@supabase/realtime-js.RealtimeClient.getChannels": {
+ "name": "@supabase/realtime-js.RealtimeClient.getChannels",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "array"
+ }
+ },
+ "comment": {
+ "shortText": "Returns all created channels"
+ }
+ },
+ "@supabase/realtime-js.RealtimeClient.isConnected": {
+ "name": "@supabase/realtime-js.RealtimeClient.isConnected",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ "comment": {
+ "shortText": "Returns \`true\` is the connection is open."
+ }
+ },
+ "@supabase/realtime-js.RealtimeClient.log": {
+ "name": "@supabase/realtime-js.RealtimeClient.log",
+ "params": [
+ {
+ "name": "kind",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "msg",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "data",
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ },
+ "isOptional": true
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ },
+ "comment": {
+ "shortText": "Logs the message.",
+ "text": "For customized logging, \`this.logger\` can be overridden.\\n"
+ }
+ },
+ "@supabase/realtime-js.RealtimeClient.push": {
+ "name": "@supabase/realtime-js.RealtimeClient.push",
+ "params": [
+ {
+ "name": "data",
+ "type": {
+ "name": "RealtimeMessage",
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "event",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "join_ref",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "payload",
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "name": "ref",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "topic",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ },
+ "comment": {
+ "shortText": "Push out a message if the socket is connected.",
+ "text": "If the socket is not connected, the message gets enqueued within a local buffer, and sent out when a connection is next established.\\n"
+ }
+ },
+ "@supabase/realtime-js.RealtimeClient.removeAllChannels": {
+ "name": "@supabase/realtime-js.RealtimeClient.removeAllChannels",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "array",
+ "elemType": {
+ "type": "customUnion",
+ "name": "RealtimeRemoveChannelResponse",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "ok"
+ },
+ {
+ "type": "literal",
+ "value": "timed out"
+ },
+ {
+ "type": "literal",
+ "value": "error"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Unsubscribes and removes all channels"
+ }
+ },
+ "@supabase/realtime-js.RealtimeClient.removeChannel": {
+ "name": "@supabase/realtime-js.RealtimeClient.removeChannel",
+ "params": [
+ {
+ "name": "channel",
+ "comment": {
+ "shortText": "A RealtimeChannel instance\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "name": "RealtimeRemoveChannelResponse",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "ok"
+ },
+ {
+ "type": "literal",
+ "value": "timed out"
+ },
+ {
+ "type": "literal",
+ "value": "error"
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Unsubscribes and removes a single channel"
+ }
+ },
+ "@supabase/realtime-js.RealtimeClient.setAuth": {
+ "name": "@supabase/realtime-js.RealtimeClient.setAuth",
+ "params": [
+ {
+ "name": "token",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "A JWT string.\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ },
+ "comment": {
+ "shortText": "Sets the JWT access token used for channel subscription authorization and Realtime RLS."
+ }
+ },
+ "@supabase/realtime-js.RealtimePresence.constructor": {
+ "name": "@supabase/realtime-js.RealtimePresence.constructor",
+ "params": [
+ {
+ "name": "channel",
+ "comment": {
+ "shortText": "The RealtimeChannel"
+ }
+ },
+ {
+ "name": "opts",
+ "type": {
+ "type": "nameOnly",
+ "name": "@types/phoenix.PresenceOpts"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The options,\\n for example \`{events: {state: 'state', diff: 'diff'}}\`\\n"
+ }
+ }
+ ],
+ "comment": {
+ "shortText": "Initializes the Presence."
+ }
+ }
+ }
+ },
+ {
+ "name": "@supabase/storage-js",
+ "methods": {
+ "@supabase/storage-js.index.StorageApiError.constructor": {
+ "name": "@supabase/storage-js.index.StorageApiError.constructor",
+ "params": [
+ {
+ "name": "message",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "StorageApiError"
+ }
+ }
+ },
+ "@supabase/storage-js.index.StorageApiError.toJSON": {
+ "name": "@supabase/storage-js.index.StorageApiError.toJSON",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "message",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "status",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ }
+ ]
+ }
+ }
+ },
+ "@supabase/storage-js.index.StorageClient.constructor": {
+ "name": "@supabase/storage-js.index.StorageClient.constructor",
+ "params": [
+ {
+ "name": "url",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "headers",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ },
+ {
+ "name": "fetch",
+ "type": {
+ "type": "function",
+ "params": [
+ {
+ "name": "input",
+ "type": {
+ "type": "nameOnly",
+ "name": "RequestInfo"
+ }
+ },
+ {
+ "name": "init",
+ "type": {
+ "type": "nameOnly",
+ "name": "RequestInit"
+ },
+ "isOptional": true
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "nameOnly",
+ "name": "Response"
+ }
+ }
+ }
+ },
+ "isOptional": true
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "StorageClient"
+ }
+ }
+ },
+ "@supabase/storage-js.index.StorageClient.createBucket": {
+ "name": "@supabase/storage-js.index.StorageClient.createBucket",
+ "params": [
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "A unique identifier for the bucket you are creating."
+ }
+ },
+ {
+ "name": "options",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "allowedMimeTypes",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "array",
+ "elemType": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "specifies the allowed mime types that this bucket can accept during upload.\\nThe default value is null, which allows files with all mime types to be uploaded.\\nEach mime type specified can be a wildcard, e.g. image/*, or a specific mime type, e.g. image/png."
+ }
+ },
+ {
+ "name": "fileSizeLimit",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "specifies the max file size in bytes that can be uploaded to this bucket.\\nThe global file size limit takes precedence over this value.\\nThe default value is null, which doesn't set a per bucket file size limit."
+ }
+ },
+ {
+ "name": "public",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "comment": {
+ "shortText": "The visibility of the bucket. Public buckets don't require an authorization token to download objects, but still require a valid token for all other operations. By default, buckets are private."
+ }
+ }
+ ]
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "nameOnly",
+ "name": "Pick"
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "StorageError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Creates a new Storage bucket",
+ "returns": "newly created bucket id\\n"
+ }
+ },
+ "@supabase/storage-js.index.StorageClient.deleteBucket": {
+ "name": "@supabase/storage-js.index.StorageClient.deleteBucket",
+ "params": [
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The unique identifier of the bucket you would like to delete.\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "message",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "StorageError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Deletes an existing bucket. A bucket can't be deleted with existing objects inside it.\\nYou must first \`empty()\` the bucket."
+ }
+ },
+ "@supabase/storage-js.index.StorageClient.emptyBucket": {
+ "name": "@supabase/storage-js.index.StorageClient.emptyBucket",
+ "params": [
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The unique identifier of the bucket you would like to empty.\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "message",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "StorageError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Removes all objects inside a single bucket."
+ }
+ },
+ "@supabase/storage-js.index.StorageClient.from": {
+ "name": "@supabase/storage-js.index.StorageClient.from",
+ "params": [
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The bucket id to operate on.\\n"
+ }
+ }
+ ],
+ "comment": {
+ "shortText": "Perform file operation in a bucket."
+ }
+ },
+ "@supabase/storage-js.index.StorageClient.getBucket": {
+ "name": "@supabase/storage-js.index.StorageClient.getBucket",
+ "params": [
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The unique identifier of the bucket you would like to retrieve.\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "name": "Bucket",
+ "properties": [
+ {
+ "name": "allowed_mime_types",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "file_size_limit",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "owner",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "public",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "StorageError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Retrieves the details of an existing Storage bucket."
+ }
+ },
+ "@supabase/storage-js.index.StorageClient.listBuckets": {
+ "name": "@supabase/storage-js.index.StorageClient.listBuckets",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "Bucket",
+ "properties": [
+ {
+ "name": "allowed_mime_types",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "file_size_limit",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "owner",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "public",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "StorageError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Retrieves the details of all Storage buckets within an existing project."
+ }
+ },
+ "@supabase/storage-js.index.StorageClient.updateBucket": {
+ "name": "@supabase/storage-js.index.StorageClient.updateBucket",
+ "params": [
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "A unique identifier for the bucket you are updating."
+ }
+ },
+ {
+ "name": "options",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "allowedMimeTypes",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "array",
+ "elemType": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "specifies the allowed mime types that this bucket can accept during upload.\\nThe default value is null, which allows files with all mime types to be uploaded.\\nEach mime type specified can be a wildcard, e.g. image/*, or a specific mime type, e.g. image/png.\\n"
+ }
+ },
+ {
+ "name": "fileSizeLimit",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "specifies the max file size in bytes that can be uploaded to this bucket.\\nThe global file size limit takes precedence over this value.\\nThe default value is null, which doesn't set a per bucket file size limit."
+ }
+ },
+ {
+ "name": "public",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "comment": {
+ "shortText": "The visibility of the bucket. Public buckets don't require an authorization token to download objects, but still require a valid token for all other operations."
+ }
+ }
+ ]
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "message",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "StorageError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Updates a Storage bucket"
+ }
+ },
+ "@supabase/storage-js.index.StorageError.constructor": {
+ "name": "@supabase/storage-js.index.StorageError.constructor",
+ "params": [
+ {
+ "name": "message",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "StorageError"
+ }
+ }
+ },
+ "@supabase/storage-js.index.StorageUnknownError.constructor": {
+ "name": "@supabase/storage-js.index.StorageUnknownError.constructor",
+ "params": [
+ {
+ "name": "message",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "originalError",
+ "type": {
+ "type": "intrinsic",
+ "name": "unknown"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "StorageUnknownError"
+ }
+ }
+ },
+ "@supabase/storage-js.packages/StorageBucketApi.default.constructor": {
+ "name": "@supabase/storage-js.packages/StorageBucketApi.default.constructor",
+ "params": [
+ {
+ "name": "url",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "headers",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ },
+ {
+ "name": "fetch",
+ "type": {
+ "type": "function",
+ "params": [
+ {
+ "name": "input",
+ "type": {
+ "type": "nameOnly",
+ "name": "RequestInfo"
+ }
+ },
+ {
+ "name": "init",
+ "type": {
+ "type": "nameOnly",
+ "name": "RequestInit"
+ },
+ "isOptional": true
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "nameOnly",
+ "name": "Response"
+ }
+ }
+ }
+ },
+ "isOptional": true
+ }
+ ]
+ },
+ "@supabase/storage-js.packages/StorageBucketApi.default.createBucket": {
+ "name": "@supabase/storage-js.packages/StorageBucketApi.default.createBucket",
+ "params": [
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "A unique identifier for the bucket you are creating."
+ }
+ },
+ {
+ "name": "options",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "allowedMimeTypes",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "array",
+ "elemType": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "specifies the allowed mime types that this bucket can accept during upload.\\nThe default value is null, which allows files with all mime types to be uploaded.\\nEach mime type specified can be a wildcard, e.g. image/*, or a specific mime type, e.g. image/png."
+ }
+ },
+ {
+ "name": "fileSizeLimit",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "specifies the max file size in bytes that can be uploaded to this bucket.\\nThe global file size limit takes precedence over this value.\\nThe default value is null, which doesn't set a per bucket file size limit."
+ }
+ },
+ {
+ "name": "public",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "comment": {
+ "shortText": "The visibility of the bucket. Public buckets don't require an authorization token to download objects, but still require a valid token for all other operations. By default, buckets are private."
+ }
+ }
+ ]
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "nameOnly",
+ "name": "Pick"
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "StorageError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Creates a new Storage bucket",
+ "returns": "newly created bucket id\\n"
+ }
+ },
+ "@supabase/storage-js.packages/StorageBucketApi.default.deleteBucket": {
+ "name": "@supabase/storage-js.packages/StorageBucketApi.default.deleteBucket",
+ "params": [
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The unique identifier of the bucket you would like to delete.\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "message",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "StorageError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Deletes an existing bucket. A bucket can't be deleted with existing objects inside it.\\nYou must first \`empty()\` the bucket."
+ }
+ },
+ "@supabase/storage-js.packages/StorageBucketApi.default.emptyBucket": {
+ "name": "@supabase/storage-js.packages/StorageBucketApi.default.emptyBucket",
+ "params": [
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The unique identifier of the bucket you would like to empty.\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "message",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "StorageError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Removes all objects inside a single bucket."
+ }
+ },
+ "@supabase/storage-js.packages/StorageBucketApi.default.getBucket": {
+ "name": "@supabase/storage-js.packages/StorageBucketApi.default.getBucket",
+ "params": [
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The unique identifier of the bucket you would like to retrieve.\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "name": "Bucket",
+ "properties": [
+ {
+ "name": "allowed_mime_types",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "file_size_limit",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "owner",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "public",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "StorageError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Retrieves the details of an existing Storage bucket."
+ }
+ },
+ "@supabase/storage-js.packages/StorageBucketApi.default.listBuckets": {
+ "name": "@supabase/storage-js.packages/StorageBucketApi.default.listBuckets",
+ "params": [],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "Bucket",
+ "properties": [
+ {
+ "name": "allowed_mime_types",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "file_size_limit",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "owner",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "public",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "StorageError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Retrieves the details of all Storage buckets within an existing project."
+ }
+ },
+ "@supabase/storage-js.packages/StorageBucketApi.default.updateBucket": {
+ "name": "@supabase/storage-js.packages/StorageBucketApi.default.updateBucket",
+ "params": [
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "A unique identifier for the bucket you are updating."
+ }
+ },
+ {
+ "name": "options",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "allowedMimeTypes",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "array",
+ "elemType": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "specifies the allowed mime types that this bucket can accept during upload.\\nThe default value is null, which allows files with all mime types to be uploaded.\\nEach mime type specified can be a wildcard, e.g. image/*, or a specific mime type, e.g. image/png.\\n"
+ }
+ },
+ {
+ "name": "fileSizeLimit",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "specifies the max file size in bytes that can be uploaded to this bucket.\\nThe global file size limit takes precedence over this value.\\nThe default value is null, which doesn't set a per bucket file size limit."
+ }
+ },
+ {
+ "name": "public",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "comment": {
+ "shortText": "The visibility of the bucket. Public buckets don't require an authorization token to download objects, but still require a valid token for all other operations."
+ }
+ }
+ ]
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "message",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "StorageError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Updates a Storage bucket"
+ }
+ },
+ "@supabase/storage-js.packages/StorageFileApi.default.constructor": {
+ "name": "@supabase/storage-js.packages/StorageFileApi.default.constructor",
+ "params": [
+ {
+ "name": "url",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "headers",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ },
+ {
+ "name": "bucketId",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "fetch",
+ "type": {
+ "type": "function",
+ "params": [
+ {
+ "name": "input",
+ "type": {
+ "type": "nameOnly",
+ "name": "RequestInfo"
+ }
+ },
+ {
+ "name": "init",
+ "type": {
+ "type": "nameOnly",
+ "name": "RequestInit"
+ },
+ "isOptional": true
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "nameOnly",
+ "name": "Response"
+ }
+ }
+ }
+ },
+ "isOptional": true
+ }
+ ]
+ },
+ "@supabase/storage-js.packages/StorageFileApi.default.copy": {
+ "name": "@supabase/storage-js.packages/StorageFileApi.default.copy",
+ "params": [
+ {
+ "name": "fromPath",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The original file path, including the current file name. For example \`folder/image.png\`."
+ }
+ },
+ {
+ "name": "toPath",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The new file path, including the new file name. For example \`folder/image-copy.png\`.\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "path",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "StorageError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Copies an existing file to a new path in the same bucket."
+ }
+ },
+ "@supabase/storage-js.packages/StorageFileApi.default.createSignedUploadUrl": {
+ "name": "@supabase/storage-js.packages/StorageFileApi.default.createSignedUploadUrl",
+ "params": [
+ {
+ "name": "path",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The file path, including the current file name. For example \`folder/image.png\`.\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "path",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "signedUrl",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "token",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "StorageError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Creates a signed upload URL.\\nSigned upload URLs can be used to upload files to the bucket without further authentication.\\nThey are valid for 2 hours."
+ }
+ },
+ "@supabase/storage-js.packages/StorageFileApi.default.createSignedUrl": {
+ "name": "@supabase/storage-js.packages/StorageFileApi.default.createSignedUrl",
+ "params": [
+ {
+ "name": "path",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The file path, including the current file name. For example \`folder/image.png\`."
+ }
+ },
+ {
+ "name": "expiresIn",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "comment": {
+ "shortText": "The number of seconds until the signed URL expires. For example, \`60\` for a URL which is valid for one minute."
+ }
+ },
+ {
+ "name": "options",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "download",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "triggers the file as a download if set to true. Set this parameter as the name of the file if you want to trigger the download with a different filename."
+ }
+ },
+ {
+ "name": "transform",
+ "type": {
+ "type": "customObject",
+ "name": "TransformOptions",
+ "properties": [
+ {
+ "name": "format",
+ "type": {
+ "type": "literal",
+ "value": "origin"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Specify the format of the image requested.",
+ "text": "When using 'origin' we force the format to be the same as the original image.\\nWhen this option is not passed in, images are optimized to modern image formats like Webp.\\n"
+ }
+ },
+ {
+ "name": "height",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The height of the image in pixels."
+ }
+ },
+ {
+ "name": "quality",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Set the quality of the returned image.\\nA number from 20 to 100, with 100 being the highest quality.\\nDefaults to 80"
+ }
+ },
+ {
+ "name": "resize",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "cover"
+ },
+ {
+ "type": "literal",
+ "value": "contain"
+ },
+ {
+ "type": "literal",
+ "value": "fill"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The resize mode can be cover, contain or fill. Defaults to cover.\\nCover resizes the image to maintain it's aspect ratio while filling the entire width and height.\\nContain resizes the image to maintain it's aspect ratio while fitting the entire image within the width and height.\\nFill resizes the image to fill the entire width and height. If the object's aspect ratio does not match the width and height, the image will be stretched to fit."
+ }
+ },
+ {
+ "name": "width",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The width of the image in pixels."
+ }
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Transform the asset before serving it to the client.\\n"
+ }
+ }
+ ]
+ },
+ "isOptional": true
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "signedUrl",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "StorageError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Creates a signed URL. Use a signed URL to share a file for a fixed amount of time."
+ }
+ },
+ "@supabase/storage-js.packages/StorageFileApi.default.createSignedUrls": {
+ "name": "@supabase/storage-js.packages/StorageFileApi.default.createSignedUrls",
+ "params": [
+ {
+ "name": "paths",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ "comment": {
+ "shortText": "The file paths to be downloaded, including the current file names. For example \`['folder/image.png', 'folder2/image2.png']\`."
+ }
+ },
+ {
+ "name": "expiresIn",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "comment": {
+ "shortText": "The number of seconds until the signed URLs expire. For example, \`60\` for URLs which are valid for one minute."
+ }
+ },
+ {
+ "name": "options",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "download",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "triggers the file as a download if set to true. Set this parameter as the name of the file if you want to trigger the download with a different filename.\\n"
+ }
+ }
+ ]
+ },
+ "isOptional": true
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "error",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "name": "path",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "name": "signedUrl",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "StorageError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Creates multiple signed URLs. Use a signed URL to share a file for a fixed amount of time."
+ }
+ },
+ "@supabase/storage-js.packages/StorageFileApi.default.download": {
+ "name": "@supabase/storage-js.packages/StorageFileApi.default.download",
+ "params": [
+ {
+ "name": "path",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The full path and file name of the file to be downloaded. For example \`folder/image.png\`."
+ }
+ },
+ {
+ "name": "options",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "transform",
+ "type": {
+ "type": "customObject",
+ "name": "TransformOptions",
+ "properties": [
+ {
+ "name": "format",
+ "type": {
+ "type": "literal",
+ "value": "origin"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Specify the format of the image requested.",
+ "text": "When using 'origin' we force the format to be the same as the original image.\\nWhen this option is not passed in, images are optimized to modern image formats like Webp.\\n"
+ }
+ },
+ {
+ "name": "height",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The height of the image in pixels."
+ }
+ },
+ {
+ "name": "quality",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Set the quality of the returned image.\\nA number from 20 to 100, with 100 being the highest quality.\\nDefaults to 80"
+ }
+ },
+ {
+ "name": "resize",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "cover"
+ },
+ {
+ "type": "literal",
+ "value": "contain"
+ },
+ {
+ "type": "literal",
+ "value": "fill"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The resize mode can be cover, contain or fill. Defaults to cover.\\nCover resizes the image to maintain it's aspect ratio while filling the entire width and height.\\nContain resizes the image to maintain it's aspect ratio while fitting the entire image within the width and height.\\nFill resizes the image to fill the entire width and height. If the object's aspect ratio does not match the width and height, the image will be stretched to fit."
+ }
+ },
+ {
+ "name": "width",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The width of the image in pixels."
+ }
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Transform the asset before serving it to the client.\\n"
+ }
+ }
+ ]
+ },
+ "isOptional": true
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "nameOnly",
+ "name": "Blob"
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "StorageError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Downloads a file from a private bucket. For public buckets, make a request to the URL returned from \`getPublicUrl\` instead."
+ }
+ },
+ "@supabase/storage-js.packages/StorageFileApi.default.getPublicUrl": {
+ "name": "@supabase/storage-js.packages/StorageFileApi.default.getPublicUrl",
+ "params": [
+ {
+ "name": "path",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The path and name of the file to generate the public URL for. For example \`folder/image.png\`."
+ }
+ },
+ {
+ "name": "options",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "download",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Triggers the file as a download if set to true. Set this parameter as the name of the file if you want to trigger the download with a different filename."
+ }
+ },
+ {
+ "name": "transform",
+ "type": {
+ "type": "customObject",
+ "name": "TransformOptions",
+ "properties": [
+ {
+ "name": "format",
+ "type": {
+ "type": "literal",
+ "value": "origin"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Specify the format of the image requested.",
+ "text": "When using 'origin' we force the format to be the same as the original image.\\nWhen this option is not passed in, images are optimized to modern image formats like Webp.\\n"
+ }
+ },
+ {
+ "name": "height",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The height of the image in pixels."
+ }
+ },
+ {
+ "name": "quality",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Set the quality of the returned image.\\nA number from 20 to 100, with 100 being the highest quality.\\nDefaults to 80"
+ }
+ },
+ {
+ "name": "resize",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "cover"
+ },
+ {
+ "type": "literal",
+ "value": "contain"
+ },
+ {
+ "type": "literal",
+ "value": "fill"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The resize mode can be cover, contain or fill. Defaults to cover.\\nCover resizes the image to maintain it's aspect ratio while filling the entire width and height.\\nContain resizes the image to maintain it's aspect ratio while fitting the entire image within the width and height.\\nFill resizes the image to fill the entire width and height. If the object's aspect ratio does not match the width and height, the image will be stretched to fit."
+ }
+ },
+ {
+ "name": "width",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The width of the image in pixels."
+ }
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Transform the asset before serving it to the client.\\n"
+ }
+ }
+ ]
+ },
+ "isOptional": true
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "publicUrl",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ },
+ "comment": {
+ "shortText": "A simple convenience function to get the URL for an asset in a public bucket. If you do not want to use this function, you can construct the public URL by concatenating the bucket URL with the path to the asset.\\nThis function does not verify if the bucket is public. If a public URL is created for a bucket which is not public, you will not be able to download the asset."
+ }
+ },
+ "@supabase/storage-js.packages/StorageFileApi.default.list": {
+ "name": "@supabase/storage-js.packages/StorageFileApi.default.list",
+ "params": [
+ {
+ "name": "path",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The folder path.\\n"
+ }
+ },
+ {
+ "name": "options",
+ "type": {
+ "type": "customObject",
+ "name": "SearchOptions",
+ "properties": [
+ {
+ "name": "limit",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": " The number of files you want to be returned."
+ }
+ },
+ {
+ "name": "offset",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The starting position."
+ }
+ },
+ {
+ "name": "search",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The search string to filter files by."
+ }
+ },
+ {
+ "name": "sortBy",
+ "type": {
+ "type": "customObject",
+ "name": "SortBy",
+ "properties": [
+ {
+ "name": "column",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "order",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The column to sort by. Can be any column inside a FileObject."
+ }
+ }
+ ]
+ },
+ "isOptional": true
+ },
+ {
+ "name": "parameters",
+ "type": {
+ "type": "customObject",
+ "name": "FetchParameters",
+ "properties": [
+ {
+ "name": "signal",
+ "type": {
+ "type": "nameOnly",
+ "name": "AbortSignal"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Pass in an AbortController's signal to cancel the request."
+ }
+ }
+ ]
+ },
+ "isOptional": true
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "FileObject",
+ "properties": [
+ {
+ "name": "bucket_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "buckets",
+ "type": {
+ "type": "customObject",
+ "name": "Bucket",
+ "properties": [
+ {
+ "name": "allowed_mime_types",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "file_size_limit",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "owner",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "public",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "last_accessed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "metadata",
+ "type": {
+ "type": "record",
+ "name": "Record",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ },
+ {
+ "name": "name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "owner",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "StorageError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Lists all the files within a bucket."
+ }
+ },
+ "@supabase/storage-js.packages/StorageFileApi.default.move": {
+ "name": "@supabase/storage-js.packages/StorageFileApi.default.move",
+ "params": [
+ {
+ "name": "fromPath",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The original file path, including the current file name. For example \`folder/image.png\`."
+ }
+ },
+ {
+ "name": "toPath",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The new file path, including the new file name. For example \`folder/image-new.png\`.\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "message",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "StorageError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Moves an existing file to a new path in the same bucket."
+ }
+ },
+ "@supabase/storage-js.packages/StorageFileApi.default.remove": {
+ "name": "@supabase/storage-js.packages/StorageFileApi.default.remove",
+ "params": [
+ {
+ "name": "paths",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ "comment": {
+ "shortText": "An array of files to delete, including the path and file name. For example [\`'folder/image.png'\`].\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "customObject",
+ "name": "FileObject",
+ "properties": [
+ {
+ "name": "bucket_id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "buckets",
+ "type": {
+ "type": "customObject",
+ "name": "Bucket",
+ "properties": [
+ {
+ "name": "allowed_mime_types",
+ "type": {
+ "type": "array",
+ "elemType": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "file_size_limit",
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "isOptional": true
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "owner",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "public",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "created_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "last_accessed_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "metadata",
+ "type": {
+ "type": "record",
+ "name": "Record",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ },
+ {
+ "name": "name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "owner",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "updated_at",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "StorageError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Deletes files within the same bucket"
+ }
+ },
+ "@supabase/storage-js.packages/StorageFileApi.default.update": {
+ "name": "@supabase/storage-js.packages/StorageFileApi.default.update",
+ "params": [
+ {
+ "name": "path",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The relative file path. Should be of the format \`folder/subfolder/filename.png\`. The bucket must already exist before attempting to update."
+ }
+ },
+ {
+ "name": "fileBody",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "nameOnly",
+ "name": "ArrayBuffer"
+ },
+ {
+ "type": "nameOnly",
+ "name": "ArrayBufferView"
+ },
+ {
+ "type": "nameOnly",
+ "name": "Blob"
+ },
+ {
+ "type": "nameOnly",
+ "name": "@types/node.Buffer"
+ },
+ {
+ "type": "nameOnly",
+ "name": "File"
+ },
+ {
+ "type": "nameOnly",
+ "name": "FormData"
+ },
+ {
+ "type": "nameOnly",
+ "name": "@types/node.NodeJS.ReadableStream"
+ },
+ {
+ "type": "nameOnly",
+ "name": "ReadableStream"
+ },
+ {
+ "type": "nameOnly",
+ "name": "URLSearchParams"
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "The body of the file to be stored in the bucket.\\n"
+ }
+ },
+ {
+ "name": "fileOptions",
+ "type": {
+ "type": "customObject",
+ "name": "FileOptions",
+ "properties": [
+ {
+ "name": "cacheControl",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The number of seconds the asset is cached in the browser and in the Supabase CDN. This is set in the \`Cache-Control: max-age=<seconds>\` header. Defaults to 3600 seconds."
+ }
+ },
+ {
+ "name": "contentType",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "the \`Content-Type\` header value. Should be specified if using a \`fileBody\` that is neither \`Blob\` nor \`File\` nor \`FormData\`, otherwise will default to \`text/plain;charset=UTF-8\`."
+ }
+ },
+ {
+ "name": "duplex",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The duplex option is a string parameter that enables or disables duplex streaming, allowing for both reading and writing data in the same stream. It can be passed as an option to the fetch() method."
+ }
+ },
+ {
+ "name": "upsert",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "When upsert is set to true, the file is overwritten if it exists. When set to false, an error is thrown if the object already exists. Defaults to false."
+ }
+ }
+ ]
+ },
+ "isOptional": true
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "fullPath",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "path",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "StorageError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Replaces an existing file at the specified path with a new one."
+ }
+ },
+ "@supabase/storage-js.packages/StorageFileApi.default.upload": {
+ "name": "@supabase/storage-js.packages/StorageFileApi.default.upload",
+ "params": [
+ {
+ "name": "path",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The file path, including the file name. Should be of the format \`folder/subfolder/filename.png\`. The bucket must already exist before attempting to upload."
+ }
+ },
+ {
+ "name": "fileBody",
+ "type": {
+ "type": "nameOnly",
+ "name": "FileBody"
+ },
+ "comment": {
+ "shortText": "The body of the file to be stored in the bucket.\\n"
+ }
+ },
+ {
+ "name": "fileOptions",
+ "type": {
+ "type": "customObject",
+ "name": "FileOptions",
+ "properties": [
+ {
+ "name": "cacheControl",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The number of seconds the asset is cached in the browser and in the Supabase CDN. This is set in the \`Cache-Control: max-age=<seconds>\` header. Defaults to 3600 seconds."
+ }
+ },
+ {
+ "name": "contentType",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "the \`Content-Type\` header value. Should be specified if using a \`fileBody\` that is neither \`Blob\` nor \`File\` nor \`FormData\`, otherwise will default to \`text/plain;charset=UTF-8\`."
+ }
+ },
+ {
+ "name": "duplex",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The duplex option is a string parameter that enables or disables duplex streaming, allowing for both reading and writing data in the same stream. It can be passed as an option to the fetch() method."
+ }
+ },
+ {
+ "name": "upsert",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "When upsert is set to true, the file is overwritten if it exists. When set to false, an error is thrown if the object already exists. Defaults to false."
+ }
+ }
+ ]
+ },
+ "isOptional": true
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "fullPath",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "id",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "path",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "nameOnly",
+ "name": "StorageError"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Uploads a file to an existing bucket."
+ }
+ },
+ "@supabase/storage-js.packages/StorageFileApi.default.uploadToSignedUrl": {
+ "name": "@supabase/storage-js.packages/StorageFileApi.default.uploadToSignedUrl",
+ "params": [
+ {
+ "name": "path",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The file path, including the file name. Should be of the format \`folder/subfolder/filename.png\`. The bucket must already exist before attempting to upload."
+ }
+ },
+ {
+ "name": "token",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The token generated from \`createSignedUploadUrl\`"
+ }
+ },
+ {
+ "name": "fileBody",
+ "type": {
+ "type": "nameOnly",
+ "name": "FileBody"
+ },
+ "comment": {
+ "shortText": "The body of the file to be stored in the bucket.\\n"
+ }
+ },
+ {
+ "name": "fileOptions",
+ "type": {
+ "type": "customObject",
+ "name": "FileOptions",
+ "properties": [
+ {
+ "name": "cacheControl",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The number of seconds the asset is cached in the browser and in the Supabase CDN. This is set in the \`Cache-Control: max-age=<seconds>\` header. Defaults to 3600 seconds."
+ }
+ },
+ {
+ "name": "contentType",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "the \`Content-Type\` header value. Should be specified if using a \`fileBody\` that is neither \`Blob\` nor \`File\` nor \`FormData\`, otherwise will default to \`text/plain;charset=UTF-8\`."
+ }
+ },
+ {
+ "name": "duplex",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The duplex option is a string parameter that enables or disables duplex streaming, allowing for both reading and writing data in the same stream. It can be passed as an option to the fetch() method."
+ }
+ },
+ {
+ "name": "upsert",
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "When upsert is set to true, the file is overwritten if it exists. When set to false, an error is thrown if the object already exists. Defaults to false."
+ }
+ }
+ ]
+ },
+ "isOptional": true
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "fullPath",
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "name": "path",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "data",
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "name": "error",
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Upload a file with a token generated from \`createSignedUploadUrl\`."
+ }
+ }
+ }
+ },
+ {
+ "name": "@supabase/functions-js",
+ "methods": {
+ "@supabase/functions-js.FunctionsClient.constructor": {
+ "name": "@supabase/functions-js.FunctionsClient.constructor",
+ "params": [
+ {
+ "name": "url",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "type": {
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "customFetch",
+ "type": {
+ "type": "function",
+ "params": [
+ {
+ "name": "input",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "nameOnly",
+ "name": "RequestInfo"
+ },
+ {
+ "type": "nameOnly",
+ "name": "URL"
+ }
+ ]
+ }
+ },
+ {
+ "name": "init",
+ "type": {
+ "type": "nameOnly",
+ "name": "RequestInit"
+ },
+ "isOptional": true
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "nameOnly",
+ "name": "Response"
+ }
+ }
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "headers",
+ "type": {
+ "type": "record",
+ "name": "Record",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ "isOptional": true
+ },
+ {
+ "name": "region",
+ "isOptional": true
+ }
+ ]
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "FunctionsClient"
+ }
+ }
+ },
+ "@supabase/functions-js.FunctionsClient.invoke": {
+ "name": "@supabase/functions-js.FunctionsClient.invoke",
+ "params": [
+ {
+ "name": "functionName",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "The name of the Function to invoke."
+ }
+ },
+ {
+ "name": "options",
+ "type": {
+ "name": "FunctionInvokeOptions",
+ "type": "customObject",
+ "properties": [
+ {
+ "name": "body",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "nameOnly",
+ "name": "File"
+ },
+ {
+ "type": "nameOnly",
+ "name": "Blob"
+ },
+ {
+ "type": "nameOnly",
+ "name": "ArrayBuffer"
+ },
+ {
+ "type": "nameOnly",
+ "name": "FormData"
+ },
+ {
+ "type": "nameOnly",
+ "name": "ReadableStream"
+ },
+ {
+ "type": "record",
+ "name": "Record",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The body of the request."
+ }
+ },
+ {
+ "name": "headers",
+ "type": {
+ "type": "index signature",
+ "keyType": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "valueType": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "Object representing the headers to send with the request."
+ }
+ },
+ {
+ "name": "method",
+ "type": {
+ "type": "customUnion",
+ "subTypes": [
+ {
+ "type": "literal",
+ "value": "POST"
+ },
+ {
+ "type": "literal",
+ "value": "GET"
+ },
+ {
+ "type": "literal",
+ "value": "PUT"
+ },
+ {
+ "type": "literal",
+ "value": "PATCH"
+ },
+ {
+ "type": "literal",
+ "value": "DELETE"
+ }
+ ]
+ },
+ "isOptional": true,
+ "comment": {
+ "shortText": "The HTTP verb of the request"
+ }
+ },
+ {
+ "name": "region",
+ "isOptional": true,
+ "comment": {
+ "shortText": "The Region to invoke the function in."
+ }
+ }
+ ]
+ },
+ "comment": {
+ "shortText": "Options for invoking the Function.\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "promise",
+ "name": "Promise",
+ "awaited": {
+ "type": "customUnion",
+ "name": "FunctionsResponse",
+ "subTypes": []
+ }
+ }
+ },
+ "comment": {
+ "shortText": "Invokes a function"
+ }
+ },
+ "@supabase/functions-js.FunctionsClient.setAuth": {
+ "name": "@supabase/functions-js.FunctionsClient.setAuth",
+ "params": [
+ {
+ "name": "token",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "comment": {
+ "shortText": "the new jwt token sent in the authorisation header\\n"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ },
+ "comment": {
+ "shortText": "Updates the authorization header"
+ }
+ },
+ "@supabase/functions-js.FunctionsError.constructor": {
+ "name": "@supabase/functions-js.FunctionsError.constructor",
+ "params": [
+ {
+ "name": "message",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "name",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "name": "context",
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ },
+ "isOptional": true
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "FunctionsError"
+ }
+ }
+ },
+ "@supabase/functions-js.FunctionsFetchError.constructor": {
+ "name": "@supabase/functions-js.FunctionsFetchError.constructor",
+ "params": [
+ {
+ "name": "context",
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "FunctionsFetchError"
+ }
+ }
+ },
+ "@supabase/functions-js.FunctionsHttpError.constructor": {
+ "name": "@supabase/functions-js.FunctionsHttpError.constructor",
+ "params": [
+ {
+ "name": "context",
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "FunctionsHttpError"
+ }
+ }
+ },
+ "@supabase/functions-js.FunctionsRelayError.constructor": {
+ "name": "@supabase/functions-js.FunctionsRelayError.constructor",
+ "params": [
+ {
+ "name": "context",
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "ret": {
+ "type": {
+ "type": "nameOnly",
+ "name": "FunctionsRelayError"
+ }
+ }
+ }
+ }
+ }
+]"
+`;
diff --git a/apps/docs/features/helpers.fs.ts b/apps/docs/features/helpers.fs.ts
index f99411b7696..2f1c5c6f84d 100644
--- a/apps/docs/features/helpers.fs.ts
+++ b/apps/docs/features/helpers.fs.ts
@@ -1,6 +1,49 @@
-import { stat } from 'fs/promises'
+import { watch } from 'node:fs'
+import { stat } from 'node:fs/promises'
-const existsFile = async (fullPath: string) => {
+import { IS_DEV } from '~/lib/constants'
+import type { OrPromise } from '~/features/helpers.types'
+
+/**
+ * Caches a function for the length of the server process.
+ *
+ * In DEV, watches a directory to cache bust on edit.
+ */
+export const cache_fullProcess_withDevCacheBust = <Args extends unknown[], Output>(
+ /**
+ * The function whose results to cache
+ */
+ fn: (...args: Args) => OrPromise<Output>,
+ /**
+ * The directory to watch for edits
+ */
+ watchDirectory: string,
+ /**
+ * A function that generates the cache key to bust, given the changed
+ * filename (relative to the watch directory)
+ */
+ genCacheKeyFromFilename: (filename: string) => string
+) => {
+ const _cache = new Map<string, Output>()
+
+ if (IS_DEV) {
+ watch(watchDirectory, { recursive: true }, (_, filename) => {
+ if (!filename) return
+ const cacheKey = genCacheKeyFromFilename(filename)
+ _cache.delete(cacheKey)
+ })
+ }
+
+ return async (...args: Args) => {
+ const cacheKey = JSON.stringify(args)
+ if (!_cache.has(cacheKey)) {
+ _cache.set(cacheKey, await fn(...args))
+ }
+ return _cache.get(cacheKey)!
+ }
+}
+
+export const existsFile = async (fullPath: string) => {
try {
await stat(fullPath)
return true
@@ -8,5 +51,3 @@ const existsFile = async (fullPath: string) => {
return false
}
}
-
-export { existsFile }
diff --git a/apps/docs/jest.config.mjs b/apps/docs/jest.config.mjs
deleted file mode 100644
index 296d4256ae6..00000000000
--- a/apps/docs/jest.config.mjs
+++ /dev/null
@@ -1,13 +0,0 @@
-import nextJest from 'next/jest.js'
-
-const createJestConfig = nextJest({
- // Provide the path to your Next.js app to load next.config.js and .env files in your test environment
- dir: './',
-})
-
-const config = {
- setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
- testEnvironment: 'jsdom',
-}
-
-export default createJestConfig(config)
diff --git a/apps/docs/jest.setup.js b/apps/docs/jest.setup.js
deleted file mode 100644
index c44951a680d..00000000000
--- a/apps/docs/jest.setup.js
+++ /dev/null
@@ -1 +0,0 @@
-import '@testing-library/jest-dom'
diff --git a/apps/docs/lib/constants.ts b/apps/docs/lib/constants.ts
index d146d838284..4729a0c07c5 100644
--- a/apps/docs/lib/constants.ts
+++ b/apps/docs/lib/constants.ts
@@ -1,8 +1,8 @@
export const API_URL = (
process.env.NODE_ENV === 'development'
? process.env.NEXT_PUBLIC_API_URL || 'http://localhost:8080'
- : process.env.NEXT_PUBLIC_API_URL!
-).replace(/\/platform$/, '')
+ : process.env.NEXT_PUBLIC_API_URL
+)?.replace(/\/platform$/, '')
export const BASE_PATH = process.env.NEXT_PUBLIC_BASE_PATH || '/docs'
export const BUILD_PREVIEW_HTML = process.env.NEXT_PUBLIC_BUILD_PREVIEW_HTML === 'true'
export const IS_DEV = process.env.NODE_ENV === 'development'
diff --git a/apps/docs/lib/docs.ts b/apps/docs/lib/docs.ts
index ecda299a499..a5e9e3ac86c 100644
--- a/apps/docs/lib/docs.ts
+++ b/apps/docs/lib/docs.ts
@@ -14,6 +14,7 @@ import codeHikeTheme from 'config/code-hike.theme.json' assert { type: 'json' }
const DOCS_DIRECTORY = join(dirname(fileURLToPath(import.meta.url)), '..')
export const GUIDES_DIRECTORY = join(DOCS_DIRECTORY, 'content/guides')
+export const SPEC_DIRECTORY = join(DOCS_DIRECTORY, 'spec')
export type GuideFrontmatter = {
title: string
diff --git a/apps/docs/package.json b/apps/docs/package.json
index 3ac2ef9cd57..6dee13afde0 100644
--- a/apps/docs/package.json
+++ b/apps/docs/package.json
@@ -10,7 +10,7 @@
"start": "next start",
"lint": "next lint",
"typecheck": "tsc --noEmit",
- "test": "jest --passWithNoTests",
+ "test": "vitest",
"build:sitemap": "node ./internals/generate-sitemap.mjs",
"embeddings": "tsx scripts/search/generate-embeddings.ts",
"embeddings:refresh": "npm run embeddings -- --refresh",
@@ -97,13 +97,14 @@
"dotenv": "^16.0.3",
"ejs": "^3.1.10",
"globby": "^13.2.2",
- "jest-environment-jsdom": "^29.7.0",
"nextjs-node-loader": "^1.1.5",
"npm-run-all": "^4.1.5",
"openapi-types": "^12.1.3",
"simple-git": "^3.24.0",
"tsconfig": "*",
"tsx": "^4.6.2",
- "typescript": "^5.5.0"
+ "typescript": "^5.5.0",
+ "vite-tsconfig-paths": "^4.3.2",
+ "vitest": "^2.0.2"
}
}
diff --git a/apps/docs/vitest.config.ts b/apps/docs/vitest.config.ts
new file mode 100644
index 00000000000..0e7ddac448c
--- /dev/null
+++ b/apps/docs/vitest.config.ts
@@ -0,0 +1,6 @@
+import { defineConfig } from 'vitest/config'
+import tsconfigPaths from 'vite-tsconfig-paths'
+
+export default defineConfig({
+ plugins: [tsconfigPaths({ root: import.meta.dirname })],
+})
diff --git a/package-lock.json b/package-lock.json
index f3f55c9efb2..1484faa9d43 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1005,14 +1005,15 @@
"dotenv": "^16.0.3",
"ejs": "^3.1.10",
"globby": "^13.2.2",
- "jest-environment-jsdom": "^29.7.0",
"nextjs-node-loader": "^1.1.5",
"npm-run-all": "^4.1.5",
"openapi-types": "^12.1.3",
"simple-git": "^3.24.0",
"tsconfig": "*",
"tsx": "^4.6.2",
- "typescript": "^5.5.0"
+ "typescript": "^5.5.0",
+ "vite-tsconfig-paths": "^4.3.2",
+ "vitest": "^2.0.2"
}
},
"apps/docs/node_modules/@tanstack/query-core": {
@@ -1046,6 +1047,181 @@
"@types/unist": "^2"
}
},
+ "apps/docs/node_modules/@vitest/expect": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-2.0.3.tgz",
+ "integrity": "sha512-X6AepoOYePM0lDNUPsGXTxgXZAl3EXd0GYe/MZyVE4HzkUqyUVC6S3PrY5mClDJ6/7/7vALLMV3+xD/Ko60Hqg==",
+ "dev": true,
+ "dependencies": {
+ "@vitest/spy": "2.0.3",
+ "@vitest/utils": "2.0.3",
+ "chai": "^5.1.1",
+ "tinyrainbow": "^1.2.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ }
+ },
+ "apps/docs/node_modules/@vitest/runner": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-2.0.3.tgz",
+ "integrity": "sha512-EmSP4mcjYhAcuBWwqgpjR3FYVeiA4ROzRunqKltWjBfLNs1tnMLtF+qtgd5ClTwkDP6/DGlKJTNa6WxNK0bNYQ==",
+ "dev": true,
+ "dependencies": {
+ "@vitest/utils": "2.0.3",
+ "pathe": "^1.1.2"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ }
+ },
+ "apps/docs/node_modules/@vitest/snapshot": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-2.0.3.tgz",
+ "integrity": "sha512-6OyA6v65Oe3tTzoSuRPcU6kh9m+mPL1vQ2jDlPdn9IQoUxl8rXhBnfICNOC+vwxWY684Vt5UPgtcA2aPFBb6wg==",
+ "dev": true,
+ "dependencies": {
+ "@vitest/pretty-format": "2.0.3",
+ "magic-string": "^0.30.10",
+ "pathe": "^1.1.2"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ }
+ },
+ "apps/docs/node_modules/@vitest/spy": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-2.0.3.tgz",
+ "integrity": "sha512-sfqyAw/ypOXlaj4S+w8689qKM1OyPOqnonqOc9T91DsoHbfN5mU7FdifWWv3MtQFf0lEUstEwR9L/q/M390C+A==",
+ "dev": true,
+ "dependencies": {
+ "tinyspy": "^3.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ }
+ },
+ "apps/docs/node_modules/@vitest/ui": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/@vitest/ui/-/ui-2.0.3.tgz",
+ "integrity": "sha512-UAkzHk5veR3NRF7BNUxWlLly7Cw7H+wzP3+eiMIVeKo3Md33Ey20rYsNQn/9McIqOeO02tMzqHhpThmjk1yRzw==",
+ "dev": true,
+ "optional": true,
+ "peer": true,
+ "dependencies": {
+ "@vitest/utils": "2.0.3",
+ "fast-glob": "^3.3.2",
+ "fflate": "^0.8.2",
+ "flatted": "^3.3.1",
+ "pathe": "^1.1.2",
+ "sirv": "^2.0.4",
+ "tinyrainbow": "^1.2.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ },
+ "peerDependencies": {
+ "vitest": "2.0.3"
+ }
+ },
+ "apps/docs/node_modules/@vitest/utils": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-2.0.3.tgz",
+ "integrity": "sha512-c/UdELMuHitQbbc/EVctlBaxoYAwQPQdSNwv7z/vHyBKy2edYZaFgptE27BRueZB7eW8po+cllotMNTDpL3HWg==",
+ "dev": true,
+ "dependencies": {
+ "@vitest/pretty-format": "2.0.3",
+ "estree-walker": "^3.0.3",
+ "loupe": "^3.1.1",
+ "tinyrainbow": "^1.2.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ }
+ },
+ "apps/docs/node_modules/assertion-error": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz",
+ "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==",
+ "dev": true,
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "apps/docs/node_modules/chai": {
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/chai/-/chai-5.1.1.tgz",
+ "integrity": "sha512-pT1ZgP8rPNqUgieVaEY+ryQr6Q4HXNg8Ei9UnLUrjN4IA7dvQC5JB+/kxVcPNDHyBcc/26CXPkbNzq3qwrOEKA==",
+ "dev": true,
+ "dependencies": {
+ "assertion-error": "^2.0.1",
+ "check-error": "^2.1.1",
+ "deep-eql": "^5.0.1",
+ "loupe": "^3.1.0",
+ "pathval": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "apps/docs/node_modules/check-error": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/check-error/-/check-error-2.1.1.tgz",
+ "integrity": "sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==",
+ "dev": true,
+ "engines": {
+ "node": ">= 16"
+ }
+ },
+ "apps/docs/node_modules/debug": {
+ "version": "4.3.5",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.5.tgz",
+ "integrity": "sha512-pt0bNEmneDIvdL1Xsd9oDQ/wrQRkXDT4AUWlNZNPKvW5x/jyO9VFXkJUP07vQ2upmw5PlaITaPKc31jK13V+jg==",
+ "dev": true,
+ "dependencies": {
+ "ms": "2.1.2"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "apps/docs/node_modules/deep-eql": {
+ "version": "5.0.2",
+ "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-5.0.2.tgz",
+ "integrity": "sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==",
+ "dev": true,
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "apps/docs/node_modules/execa": {
+ "version": "8.0.1",
+ "resolved": "https://registry.npmjs.org/execa/-/execa-8.0.1.tgz",
+ "integrity": "sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==",
+ "dev": true,
+ "dependencies": {
+ "cross-spawn": "^7.0.3",
+ "get-stream": "^8.0.1",
+ "human-signals": "^5.0.0",
+ "is-stream": "^3.0.0",
+ "merge-stream": "^2.0.0",
+ "npm-run-path": "^5.1.0",
+ "onetime": "^6.0.0",
+ "signal-exit": "^4.1.0",
+ "strip-final-newline": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=16.17"
+ },
+ "funding": {
+ "url": "https://github.com/sindresorhus/execa?sponsor=1"
+ }
+ },
"apps/docs/node_modules/framer-motion": {
"version": "11.0.3",
"resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-11.0.3.tgz",
@@ -1069,6 +1245,18 @@
}
}
},
+ "apps/docs/node_modules/get-stream": {
+ "version": "8.0.1",
+ "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-8.0.1.tgz",
+ "integrity": "sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==",
+ "dev": true,
+ "engines": {
+ "node": ">=16"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"apps/docs/node_modules/globby": {
"version": "13.2.2",
"dev": true,
@@ -1087,6 +1275,45 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
+ "apps/docs/node_modules/human-signals": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-5.0.0.tgz",
+ "integrity": "sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==",
+ "dev": true,
+ "engines": {
+ "node": ">=16.17.0"
+ }
+ },
+ "apps/docs/node_modules/is-stream": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz",
+ "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==",
+ "dev": true,
+ "engines": {
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "apps/docs/node_modules/loupe": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/loupe/-/loupe-3.1.1.tgz",
+ "integrity": "sha512-edNu/8D5MKVfGVFRhFf8aAxiTM6Wumfz5XsaatSxlD3w4R1d/WEKUTydCdPGbl9K7QG/Ca3GnDV2sIKIpXRQcw==",
+ "dev": true,
+ "dependencies": {
+ "get-func-name": "^2.0.1"
+ }
+ },
+ "apps/docs/node_modules/magic-string": {
+ "version": "0.30.10",
+ "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.10.tgz",
+ "integrity": "sha512-iIRwTIf0QKV3UAnYK4PU8uiEc4SRh5jX0mwpIwETPpHdhVM4f53RSwS/vXvN1JhGX+Cs7B8qIq3d6AH49O5fAQ==",
+ "dev": true,
+ "dependencies": {
+ "@jridgewell/sourcemap-codec": "^1.4.15"
+ }
+ },
"apps/docs/node_modules/mdast-util-from-markdown": {
"version": "1.3.1",
"license": "MIT",
@@ -1123,6 +1350,69 @@
],
"license": "MIT"
},
+ "apps/docs/node_modules/mimic-fn": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz",
+ "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==",
+ "dev": true,
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "apps/docs/node_modules/npm-run-path": {
+ "version": "5.3.0",
+ "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.3.0.tgz",
+ "integrity": "sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==",
+ "dev": true,
+ "dependencies": {
+ "path-key": "^4.0.0"
+ },
+ "engines": {
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "apps/docs/node_modules/onetime": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz",
+ "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==",
+ "dev": true,
+ "dependencies": {
+ "mimic-fn": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "apps/docs/node_modules/path-key": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz",
+ "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==",
+ "dev": true,
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "apps/docs/node_modules/pathval": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/pathval/-/pathval-2.0.0.tgz",
+ "integrity": "sha512-vE7JKRyES09KiunauX7nd2Q9/L7lhok4smP9RZTDeD4MVs72Dp2qNFVz39Nz5a0FVEW0BJR6C0DYrq6unoziZA==",
+ "dev": true,
+ "engines": {
+ "node": ">= 14.16"
+ }
+ },
"apps/docs/node_modules/remark": {
"version": "14.0.3",
"resolved": "https://registry.npmjs.org/remark/-/remark-14.0.3.tgz",
@@ -1163,6 +1453,122 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
+ "apps/docs/node_modules/strip-final-newline": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz",
+ "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==",
+ "dev": true,
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "apps/docs/node_modules/tinypool": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-1.0.0.tgz",
+ "integrity": "sha512-KIKExllK7jp3uvrNtvRBYBWBOAXSX8ZvoaD8T+7KB/QHIuoJW3Pmr60zucywjAlMb5TeXUkcs/MWeWLu0qvuAQ==",
+ "dev": true,
+ "engines": {
+ "node": "^18.0.0 || >=20.0.0"
+ }
+ },
+ "apps/docs/node_modules/tinyspy": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-3.0.0.tgz",
+ "integrity": "sha512-q5nmENpTHgiPVd1cJDDc9cVoYN5x4vCvwT3FMilvKPKneCBZAxn2YWQjDF0UMcE9k0Cay1gBiDfTMU0g+mPMQA==",
+ "dev": true,
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "apps/docs/node_modules/vite-node": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-2.0.3.tgz",
+ "integrity": "sha512-14jzwMx7XTcMB+9BhGQyoEAmSl0eOr3nrnn+Z12WNERtOvLN+d2scbRUvyni05rT3997Bg+rZb47NyP4IQPKXg==",
+ "dev": true,
+ "dependencies": {
+ "cac": "^6.7.14",
+ "debug": "^4.3.5",
+ "pathe": "^1.1.2",
+ "tinyrainbow": "^1.2.0",
+ "vite": "^5.0.0"
+ },
+ "bin": {
+ "vite-node": "vite-node.mjs"
+ },
+ "engines": {
+ "node": "^18.0.0 || >=20.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ }
+ },
+ "apps/docs/node_modules/vitest": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/vitest/-/vitest-2.0.3.tgz",
+ "integrity": "sha512-o3HRvU93q6qZK4rI2JrhKyZMMuxg/JRt30E6qeQs6ueaiz5hr1cPj+Sk2kATgQzMMqsa2DiNI0TIK++1ULx8Jw==",
+ "dev": true,
+ "dependencies": {
+ "@ampproject/remapping": "^2.3.0",
+ "@vitest/expect": "2.0.3",
+ "@vitest/pretty-format": "^2.0.3",
+ "@vitest/runner": "2.0.3",
+ "@vitest/snapshot": "2.0.3",
+ "@vitest/spy": "2.0.3",
+ "@vitest/utils": "2.0.3",
+ "chai": "^5.1.1",
+ "debug": "^4.3.5",
+ "execa": "^8.0.1",
+ "magic-string": "^0.30.10",
+ "pathe": "^1.1.2",
+ "std-env": "^3.7.0",
+ "tinybench": "^2.8.0",
+ "tinypool": "^1.0.0",
+ "tinyrainbow": "^1.2.0",
+ "vite": "^5.0.0",
+ "vite-node": "2.0.3",
+ "why-is-node-running": "^2.2.2"
+ },
+ "bin": {
+ "vitest": "vitest.mjs"
+ },
+ "engines": {
+ "node": "^18.0.0 || >=20.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ },
+ "peerDependencies": {
+ "@edge-runtime/vm": "*",
+ "@types/node": "^18.0.0 || >=20.0.0",
+ "@vitest/browser": "2.0.3",
+ "@vitest/ui": "2.0.3",
+ "happy-dom": "*",
+ "jsdom": "*"
+ },
+ "peerDependenciesMeta": {
+ "@edge-runtime/vm": {
+ "optional": true
+ },
+ "@types/node": {
+ "optional": true
+ },
+ "@vitest/browser": {
+ "optional": true
+ },
+ "@vitest/ui": {
+ "optional": true
+ },
+ "happy-dom": {
+ "optional": true
+ },
+ "jsdom": {
+ "optional": true
+ }
+ }
+ },
"apps/docs/spec/parser": {
"name": "@supabase/generator",
"version": "0.0.0",